@aquera/nile-elements 0.0.111 → 0.0.112
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/demo/filenames.txt +1 -1
- package/demo/variables.css +2 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/nile-badge/index.cjs.js +1 -1
- package/dist/nile-badge/index.esm.js +1 -1
- package/dist/nile-badge/nile-badge.cjs.js +1 -1
- package/dist/nile-badge/nile-badge.cjs.js.map +1 -1
- package/dist/nile-badge/nile-badge.esm.js +1 -1
- package/dist/nile-badge/nile-badge.test.cjs.js +1 -1
- package/dist/nile-badge/nile-badge.test.cjs.js.map +1 -1
- package/dist/nile-badge/nile-badge.test.esm.js +1 -1
- package/dist/nile-button/index.cjs.js +1 -1
- package/dist/nile-button/index.esm.js +1 -1
- package/dist/nile-button/nile-button.cjs.js +1 -1
- package/dist/nile-button/nile-button.cjs.js.map +1 -1
- package/dist/nile-button/nile-button.esm.js +1 -1
- package/dist/nile-button/nile-button.test.cjs.js +1 -1
- package/dist/nile-button/nile-button.test.cjs.js.map +1 -1
- package/dist/nile-button/nile-button.test.esm.js +1 -1
- package/dist/nile-calendar/nile-calendar.cjs.js +1 -1
- package/dist/nile-calendar/nile-calendar.cjs.js.map +1 -1
- package/dist/nile-calendar/nile-calendar.esm.js +7 -7
- package/dist/nile-dialog/index.cjs.js +1 -1
- package/dist/nile-dialog/index.esm.js +1 -1
- package/dist/nile-dialog/nile-dialog.cjs.js +1 -1
- package/dist/nile-dialog/nile-dialog.cjs.js.map +1 -1
- package/dist/nile-dialog/nile-dialog.esm.js +1 -1
- package/dist/nile-drawer/index.cjs.js +1 -1
- package/dist/nile-drawer/index.esm.js +1 -1
- package/dist/nile-drawer/nile-drawer.cjs.js +1 -1
- package/dist/nile-drawer/nile-drawer.cjs.js.map +1 -1
- package/dist/nile-drawer/nile-drawer.esm.js +1 -1
- package/dist/nile-drawer/nile-drawer.test.cjs.js +1 -1
- package/dist/nile-drawer/nile-drawer.test.cjs.js.map +1 -1
- package/dist/nile-drawer/nile-drawer.test.esm.js +1 -1
- package/dist/nile-highlighter/index.cjs.js +1 -1
- package/dist/nile-highlighter/index.esm.js +1 -1
- package/dist/nile-highlighter/nile-highlighter.cjs.js +1 -1
- package/dist/nile-highlighter/nile-highlighter.cjs.js.map +1 -1
- package/dist/nile-highlighter/nile-highlighter.esm.js +2 -2
- package/dist/nile-highlighter/theme-list.cjs.js +1 -1
- package/dist/nile-highlighter/theme-list.cjs.js.map +1 -1
- package/dist/nile-highlighter/theme-list.esm.js +1 -1
- package/dist/nile-icon/icons/svg/index.cjs.js +1 -1
- package/dist/nile-icon/icons/svg/index.esm.js +1 -1
- package/dist/nile-icon/icons/svg/insert-at-cursor.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/insert-at-cursor.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/insert-at-cursor.esm.js +1 -0
- package/dist/nile-icon/icons/svg/warning-01.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/warning-01.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/warning-01.esm.js +1 -0
- package/dist/nile-icon/index.cjs.js +1 -1
- package/dist/nile-icon/index.cjs.js.map +1 -1
- package/dist/nile-icon/index.esm.js +2 -2
- package/dist/nile-icon/nile-icon.test.cjs.js +1 -1
- package/dist/nile-icon/nile-icon.test.cjs.js.map +1 -1
- package/dist/nile-icon/nile-icon.test.esm.js +1 -1
- package/dist/nile-icon-button/index.cjs.js +1 -1
- package/dist/nile-icon-button/index.esm.js +1 -1
- package/dist/nile-icon-button/nile-icon-button.cjs.js +1 -1
- package/dist/nile-icon-button/nile-icon-button.cjs.js.map +1 -1
- package/dist/nile-icon-button/nile-icon-button.esm.js +1 -1
- package/dist/nile-input/index.cjs.js +1 -1
- package/dist/nile-input/index.esm.js +1 -1
- package/dist/nile-input/nile-input.cjs.js +1 -1
- package/dist/nile-input/nile-input.cjs.js.map +1 -1
- package/dist/nile-input/nile-input.esm.js +1 -1
- package/dist/nile-input/nile-input.test.cjs.js +1 -1
- package/dist/nile-input/nile-input.test.cjs.js.map +1 -1
- package/dist/nile-input/nile-input.test.esm.js +1 -1
- package/dist/nile-menu-item/index.cjs.js +1 -1
- package/dist/nile-menu-item/index.esm.js +1 -1
- package/dist/nile-menu-item/nile-menu-item.cjs.js +1 -1
- package/dist/nile-menu-item/nile-menu-item.cjs.js.map +1 -1
- package/dist/nile-menu-item/nile-menu-item.esm.js +1 -1
- package/dist/nile-option/index.cjs.js +1 -1
- package/dist/nile-option/index.esm.js +1 -1
- package/dist/nile-option/nile-option.cjs.js +1 -1
- package/dist/nile-option/nile-option.cjs.js.map +1 -1
- package/dist/nile-option/nile-option.esm.js +1 -1
- package/dist/nile-select/index.cjs.js +1 -1
- package/dist/nile-select/index.esm.js +1 -1
- package/dist/nile-select/nile-select.cjs.js +1 -1
- package/dist/nile-select/nile-select.cjs.js.map +1 -1
- package/dist/nile-select/nile-select.esm.js +1 -1
- package/dist/nile-tab/index.cjs.js +1 -1
- package/dist/nile-tab/index.esm.js +1 -1
- package/dist/nile-tab/nile-tab.cjs.js +1 -1
- package/dist/nile-tab/nile-tab.cjs.js.map +1 -1
- package/dist/nile-tab/nile-tab.esm.js +1 -1
- package/dist/nile-tab-group/index.cjs.js +1 -1
- package/dist/nile-tab-group/index.esm.js +1 -1
- package/dist/nile-tab-group/nile-tab-group.cjs.js +1 -1
- package/dist/nile-tab-group/nile-tab-group.cjs.js.map +1 -1
- package/dist/nile-tab-group/nile-tab-group.esm.js +1 -1
- package/dist/nile-tag/index.cjs.js +1 -1
- package/dist/nile-tag/index.esm.js +1 -1
- package/dist/nile-tag/nile-tag.cjs.js +1 -1
- package/dist/nile-tag/nile-tag.cjs.js.map +1 -1
- package/dist/nile-tag/nile-tag.esm.js +1 -1
- package/dist/nile-toast/index.cjs.js +1 -1
- package/dist/nile-toast/index.esm.js +1 -1
- package/dist/nile-toast/nile-toast.cjs.js +1 -1
- package/dist/nile-toast/nile-toast.cjs.js.map +1 -1
- package/dist/nile-toast/nile-toast.esm.js +1 -1
- package/dist/nile-tree/index.cjs.js +1 -1
- package/dist/nile-tree/index.esm.js +1 -1
- package/dist/nile-tree/nile-tree.cjs.js +1 -1
- package/dist/nile-tree/nile-tree.cjs.js.map +1 -1
- package/dist/nile-tree/nile-tree.esm.js +1 -1
- package/dist/nile-tree-item/index.cjs.js +1 -1
- package/dist/nile-tree-item/index.esm.js +1 -1
- package/dist/nile-tree-item/nile-tree-item.cjs.js +1 -1
- package/dist/nile-tree-item/nile-tree-item.cjs.js.map +1 -1
- package/dist/nile-tree-item/nile-tree-item.esm.js +1 -1
- package/dist/src/nile-calendar/nile-calendar.d.ts +4 -5
- package/dist/src/nile-calendar/nile-calendar.js +7 -17
- package/dist/src/nile-calendar/nile-calendar.js.map +1 -1
- package/dist/src/nile-highlighter/nile-highlighter.d.ts +2 -1
- package/dist/src/nile-highlighter/nile-highlighter.js +16 -11
- package/dist/src/nile-highlighter/nile-highlighter.js.map +1 -1
- package/dist/src/nile-icon/icons/svg/index.d.ts +2 -0
- package/dist/src/nile-icon/icons/svg/index.js +2 -0
- package/dist/src/nile-icon/icons/svg/index.js.map +1 -1
- package/dist/src/nile-icon/icons/svg/insert-at-cursor.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/insert-at-cursor.js +5 -0
- package/dist/src/nile-icon/icons/svg/insert-at-cursor.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/warning-01.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/warning-01.js +5 -0
- package/dist/src/nile-icon/icons/svg/warning-01.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/nile-calendar/nile-calendar.ts +10 -20
- package/src/nile-highlighter/nile-highlighter.ts +20 -13
- package/src/nile-icon/icons/svg/index.ts +2 -0
- package/src/nile-icon/icons/svg/insert-at-cursor.ts +5 -0
- package/src/nile-icon/icons/svg/warning-01.ts +5 -0
@@ -1,2 +1,2 @@
|
|
1
|
-
System.register(["tslib","../index-c7ad3b47.cjs.js","lit/decorators.js","./nile-highlighter.css.cjs.js","../internal/nile-element.cjs.js","./theme-list.cjs.js","../property-217fe924.cjs.js","lit"],function(_export,_context){"use strict";var t,e,n,i,r,o,s,l,a,_templateObject,_excluded,c,u,m,p,h,d,g,y,b,w,v,k,S,T,P,$,B,I,q,_,z,F,U,H,W,V,K,Q,Z,tt,ot,st,lt,at,ct,mt,pt,ht,dt,ft,gt,jt,yt,bt,wt,vt,kt,St,xt,Ct,Lt,At,Ot,Mt,Et,It,qt,_t,zt,Ft,Ut,Ht,Wt,Vt,Jt,Xt,Qt,Zt,te,ee,ne,ie,re,oe,se,ae,ce,ue,pe,de,fe,ye,be,we,ve,ke,Se,xe,Ae,Oe,Me,Te,Pe,Ne,De,Ee,$e,Be,Ie,Ge,qe,_e,ze,Fe,Ue,Ve,Je,Xe,Ze,nn,rn,on,ln,cn,hn,dn,gn,yn,bn,wn,vn,Rn,$n,Bn,In,_n,Hn,Vn,Jn,Qn,mi,pi,hi,ji,yi,bi,wi,vi,ki,Si,Ai,Oi;function _taggedTemplateLiteral(strings,raw){if(!raw){raw=strings.slice(0);}return Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}));}function _get(){if(typeof Reflect!=="undefined"&&Reflect.get){_get=Reflect.get.bind();}else{_get=function _get(target,property,receiver){var base=_superPropBase(target,property);if(!base)return;var desc=Object.getOwnPropertyDescriptor(base,property);if(desc.get){return desc.get.call(arguments.length<3?target:receiver);}return desc.value;};}return _get.apply(this,arguments);}function _superPropBase(object,property){while(!Object.prototype.hasOwnProperty.call(object,property)){object=_getPrototypeOf(object);if(object===null)break;}return object;}function _objectWithoutProperties(source,excluded){if(source==null)return{};var target=_objectWithoutPropertiesLoose(source,excluded);var key,i;if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i<sourceSymbolKeys.length;i++){key=sourceSymbolKeys[i];if(excluded.indexOf(key)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(source,key))continue;target[key]=source[key];}}return target;}function _objectWithoutPropertiesLoose(source,excluded){if(source==null)return{};var target={};for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){if(excluded.indexOf(key)>=0)continue;target[key]=source[key];}}return target;}function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArray(iter){if(typeof Symbol!=="undefined"&&iter[Symbol.iterator]!=null||iter["@@iterator"]!=null)return Array.from(iter);}function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr);}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t["return"]&&(u=t["return"](),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr;}function _createForOfIteratorHelper(o,allowArrayLike){var it=typeof Symbol!=="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&typeof o.length==="number"){if(it)o=it;var i=0;var F=function F(){};return{s:F,n:function n(){if(i>=o.length)return{done:true};return{done:false,value:o[i++]};},e:function(_e57){function e(_x12){return _e57.apply(this,arguments);}e.toString=function(){return _e57.toString();};return e;}(function(e){throw e;}),f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var normalCompletion=true,didErr=false,err;return{s:function s(){it=it.call(o);},n:function n(){var step=it.next();normalCompletion=step.done;return step;},e:function(_e58){function e(_x13){return _e58.apply(this,arguments);}e.toString=function(){return _e58.toString();};return e;}(function(e){didErr=true;err=e;}),f:function f(){try{if(!normalCompletion&&it["return"]!=null)it["return"]();}finally{if(didErr)throw err;}}};}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2;}function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return e;};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value;},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e];}try{define({},"");}catch(t){define=function define(t,e,r){return t[e]=r;};}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a;}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)};}catch(t){return{type:"throw",arg:t};}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,function(){return this;});var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach(function(e){define(t,e,function(t){return this._invoke(e,t);});});}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then(function(t){invoke("next",t,i,a);},function(t){invoke("throw",t,i,a);}):e.resolve(h).then(function(t){u.value=t,i(u);},function(t){return invoke("throw",t,i,a);});}a(c.arg);}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e(function(e,r){invoke(t,n,e,r);});}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0};}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u;}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg);}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done};}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg);}};}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y);}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e);}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e;}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0);}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next;};return i.next=i;}}throw new TypeError(_typeof(e)+" is not iterable");}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name));},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t;},e.awrap=function(t){return{__await:t};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,function(){return this;}),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next();});},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,function(){return this;}),define(g,"toString",function(){return"[object Generator]";}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next;}return next.done=!0,next;};},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t);},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval;},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o;}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break;}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a);},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y;},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y;}},"catch":function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r);}return o;}}throw Error("illegal catch attempt");},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y;}},e;}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(self,call){if(call&&(_typeof(call)==="object"||typeof call==="function")){return call;}else if(call!==void 0){throw new TypeError("Derived constructors may only return object or undefined");}return _assertThisInitialized(self);}function _assertThisInitialized(self){if(self===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function");}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});Object.defineProperty(subClass,"prototype",{writable:false});if(superClass)_setPrototypeOf(subClass,superClass);}function _wrapNativeSuper(Class){var _cache=typeof Map==="function"?new Map():undefined;_wrapNativeSuper=function _wrapNativeSuper(Class){if(Class===null||!_isNativeFunction(Class))return Class;if(typeof Class!=="function"){throw new TypeError("Super expression must either be null or a function");}if(typeof _cache!=="undefined"){if(_cache.has(Class))return _cache.get(Class);_cache.set(Class,Wrapper);}function Wrapper(){return _construct(Class,arguments,_getPrototypeOf(this).constructor);}Wrapper.prototype=Object.create(Class.prototype,{constructor:{value:Wrapper,enumerable:false,writable:true,configurable:true}});return _setPrototypeOf(Wrapper,Class);};return _wrapNativeSuper(Class);}function _construct(t,e,r){if(_isNativeReflectConstruct())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,e);var p=new(t.bind.apply(t,o))();return r&&_setPrototypeOf(p,r.prototype),p;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _isNativeFunction(fn){try{return Function.toString.call(fn).indexOf("[native code]")!==-1;}catch(e){return typeof fn==="function";}}function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(o,p){o.__proto__=p;return o;};return _setPrototypeOf(o,p);}function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o);};return _getPrototypeOf(o);}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable;})),t.push.apply(t,o);}return t;}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){_defineProperty(e,r,t[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));});}return e;}function _defineProperty(obj,key,value){key=_toPropertyKey(key);if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function f(){return"undefined"!=typeof performance?performance.now():Date.now();}function j(_x){return _j.apply(this,arguments);}function _j(){_j=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(t){var e,n,i,r,o,s,l,a;return _regeneratorRuntime().wrap(function _callee8$(_context9){while(1)switch(_context9.prev=_context9.next){case 0:l=function _l9(t,e){return t?function(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:1024;var i=e+n;var r=e;for(;t[r]&&!(r>=i);)++r;if(r-e>16&&t.buffer&&s)return s.decode(t.subarray(e,r));var o="";for(;e<r;){var _n50=t[e++];if(!(128&_n50)){o+=String.fromCharCode(_n50);continue;}var _i26=63&t[e++];if(192==(224&_n50)){o+=String.fromCharCode((31&_n50)<<6|_i26);continue;}var _r30=63&t[e++];if(_n50=224==(240&_n50)?(15&_n50)<<12|_i26<<6|_r30:(7&_n50)<<18|_i26<<12|_r30<<6|63&t[e++],_n50<65536)o+=String.fromCharCode(_n50);else{var _t103=_n50-65536;o+=String.fromCharCode(55296|_t103>>10,56320|1023&_t103);}}return o;}(i.HEAPU8,t,e):"";};o=function _o25(t){try{return e.grow(t-n.byteLength+65535>>>16),r(e.buffer),1;}catch(_unused){}};r=function _r32(t){n=t,i.HEAPU8=new Uint8Array(t),i.HEAPU32=new Uint32Array(t);};i={};s="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;a={emscripten_get_now:f,emscripten_memcpy_big:function emscripten_memcpy_big(t,e,n){i.HEAPU8.copyWithin(t,e,e+n);},emscripten_resize_heap:function emscripten_resize_heap(t){var e=i.HEAPU8.length,n=2147483648;if((t>>>=0)>n)return!1;for(var _i27=1;_i27<=4;_i27*=2){var _r31=e*(1+.2/_i27);_r31=Math.min(_r31,t+100663296);if(o(Math.min(n,g(Math.max(t,_r31),65536))))return!0;}return!1;},fd_write:function fd_write(){return 0;}};_context9.next=8;return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(){var n,o;return _regeneratorRuntime().wrap(function _callee7$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:n={env:a,wasi_snapshot_preview1:a};_context8.next=3;return t(n);case 3:o=_context8.sent;e=o.memory,r(e.buffer),Object.assign(i,o),i.UTF8ToString=l;case 5:case"end":return _context8.stop();}},_callee7);}))();case 8:return _context9.abrupt("return",i);case 9:case"end":return _context9.stop();}},_callee8);}));return _j.apply(this,arguments);}function x(t){if(y)return y;return y=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:_context4.next=2;return j(/*#__PURE__*/function(){var _ref2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(e){var n,i;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:n=t;_context3.next=3;return n;case 3:n=_context3.sent;_context3.t0="function"==typeof n;if(!_context3.t0){_context3.next=9;break;}_context3.next=8;return n(e);case 8:n=_context3.sent;case 9:_context3.t1="function"==typeof n;if(!_context3.t1){_context3.next=14;break;}_context3.next=13;return n(e);case 13:n=_context3.sent;case 14:if(!("function"==typeof n.instantiator)){_context3.next=20;break;}_context3.next=17;return n.instantiator(e);case 17:n=_context3.sent;_context3.next=57;break;case 20:if(function(t){return"function"==typeof t["default"];}(n)){_context3.next=54;break;}(function(t){return void 0!==t.data;})(n)&&(n=n.data);if(function(t){return"undefined"!=typeof Response&&t instanceof Response;}(n)){_context3.next=42;break;}if(function(t,_Buffer$isBuffer,_Buffer){return"undefined"!=typeof ArrayBuffer&&(t instanceof ArrayBuffer||ArrayBuffer.isView(t))||"undefined"!=typeof Buffer&&((_Buffer$isBuffer=(_Buffer=Buffer).isBuffer)===null||_Buffer$isBuffer===void 0?void 0:_Buffer$isBuffer.call(_Buffer,t))||"undefined"!=typeof SharedArrayBuffer&&t instanceof SharedArrayBuffer||"undefined"!=typeof Uint32Array&&t instanceof Uint32Array;}(n)){_context3.next=37;break;}if(!(n instanceof WebAssembly.Module)){_context3.next=30;break;}_context3.next=27;return C(n)(e);case 27:n=_context3.sent;_context3.next=35;break;case 30:_context3.t2="default"in n&&n["default"]instanceof WebAssembly.Module;if(!_context3.t2){_context3.next=35;break;}_context3.next=34;return C(n["default"])(e);case 34:n=_context3.sent;case 35:_context3.next=40;break;case 37:_context3.next=39;return C(n)(e);case 39:n=_context3.sent;case 40:_context3.next=52;break;case 42:if(!("function"==typeof WebAssembly.instantiateStreaming)){_context3.next=48;break;}_context3.next=45;return(i=n,function(t){return WebAssembly.instantiateStreaming(i,t);})(e);case 45:_context3.t3=_context3.sent;_context3.next=51;break;case 48:_context3.next=50;return function(t){return/*#__PURE__*/function(){var _ref3=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(e){var n;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=2;return t.arrayBuffer();case 2:n=_context2.sent;return _context2.abrupt("return",WebAssembly.instantiate(n,e));case 4:case"end":return _context2.stop();}},_callee);}));return function(_x3){return _ref3.apply(this,arguments);};}();}(n)(e);case 50:_context3.t3=_context3.sent;case 51:n=_context3.t3;case 52:_context3.next=57;break;case 54:_context3.next=56;return n["default"](e);case 56:n=_context3.sent;case 57:"instance"in n&&(n=n.instance);"exports"in n&&(n=n.exports);return _context3.abrupt("return",n);case 60:case"end":return _context3.stop();}},_callee2);}));return function(_x2){return _ref2.apply(this,arguments);};}());case 2:w=_context4.sent;case 3:case"end":return _context4.stop();}},_callee3);}))(),y;}function C(t){return function(e){return WebAssembly.instantiate(t,e);};}function L(_x4){return _L.apply(this,arguments);}function _L(){_L=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee9(t){return _regeneratorRuntime().wrap(function _callee9$(_context10){while(1)switch(_context10.prev=_context10.next){case 0:_context10.t0=t;if(!_context10.t0){_context10.next=4;break;}_context10.next=4;return x(t);case 4:return _context10.abrupt("return",{createScanner:function createScanner(t){return new S(t);},createString:function createString(t){return new k(t);}});case 5:case"end":return _context10.stop();}},_callee9);}));return _L.apply(this,arguments);}function A(t){return Array.isArray(t)?function(t){var e=[];for(var _n7=0,i=t.length;_n7<i;_n7++)e[_n7]=A(t[_n7]);return e;}(t):"object"==_typeof(t)?function(t){var e={};for(var _n8 in t)e[_n8]=A(t[_n8]);return e;}(t):t;}function O(t){for(var _len=arguments.length,e=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){e[_key-1]=arguments[_key];}return e.forEach(function(e){for(var _n9 in e)t[_n9]=e[_n9];}),t;}function M(t){var e=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===e?t:~e==t.length-1?M(t.substring(0,t.length-1)):t.substr(1+~e);}function N(t,e){return t<e?-1:t>e?1:0;}function D(t,e){if(null===t&&null===e)return 0;if(!t)return-1;if(!e)return 1;var n=t.length,i=e.length;if(n===i){for(var _i5=0;_i5<n;_i5++){var _n10=N(t[_i5],e[_i5]);if(0!==_n10)return _n10;}return 0;}return n-i;}function E(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 R(t){return t.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&");}function G(t,e){return e===t||t.startsWith(e)&&"."===t[e.length];}function J(t,e){var n=[],i=function(t){var e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=e.exec(t);return{next:function next(){if(!n)return null;var i=n[0];return n=e.exec(t),i;}};}(t);var r=i.next();for(;null!==r;){var _t24=0;if(2===r.length&&":"===r.charAt(1)){switch(r.charAt(0)){case"R":_t24=1;break;case"L":_t24=-1;break;default:console.log("Unknown priority ".concat(r," in scope selector"));}r=i.next();}var _e10=s();if(n.push({matcher:_e10,priority:_t24}),","!==r)break;r=i.next();}return n;function o(){if("-"===r){r=i.next();var _t25=o();return function(e){return!!_t25&&!_t25(e);};}if("("===r){r=i.next();var _t26=function(){var t=[];var e=s();for(;e&&(t.push(e),"|"===r||","===r);){do{r=i.next();}while("|"===r||","===r);e=s();}return function(e){return t.some(function(t){return t(e);});};}();return")"===r&&(r=i.next()),_t26;}if(X(r)){var _t27=[];do{_t27.push(r),r=i.next();}while(X(r));return function(n){return e(_t27,n);};}return null;}function s(){var t=[];var e=o();for(;e;)t.push(e),e=o();return function(e){return t.every(function(t){return t(e);});};}}function X(t){return!!t&&!!t.match(/[\w\.:]+/);}function Y(t){"function"==typeof t.dispose&&t.dispose();}function et(t,e,n,i){var r=n.lookup(t.scopeName);if(!r){if(t.scopeName===e)throw new Error("No grammar provided for <".concat(e,">"));return;}var o=n.lookup(e);t instanceof K?it({baseGrammar:o,selfGrammar:r},i):nt(t.ruleName,{baseGrammar:o,selfGrammar:r,repository:r.repository},i);var s=n.injections(t.scopeName);if(s){var _iterator4=_createForOfIteratorHelper(s),_step4;try{for(_iterator4.s();!(_step4=_iterator4.n()).done;){var _t29=_step4.value;i.add(new K(_t29));}}catch(err){_iterator4.e(err);}finally{_iterator4.f();}}}function nt(t,e,n){if(e.repository&&e.repository[t]){rt([e.repository[t]],e,n);}}function it(t,e){t.selfGrammar.patterns&&Array.isArray(t.selfGrammar.patterns)&&rt(t.selfGrammar.patterns,_objectSpread(_objectSpread({},t),{},{repository:t.selfGrammar.repository}),e),t.selfGrammar.injections&&rt(Object.values(t.selfGrammar.injections),_objectSpread(_objectSpread({},t),{},{repository:t.selfGrammar.repository}),e);}function rt(t,e,n){var _iterator5=_createForOfIteratorHelper(t),_step5;try{for(_iterator5.s();!(_step5=_iterator5.n()).done;){var i=_step5.value;if(n.visitedRule.has(i))continue;n.visitedRule.add(i);var _t30=i.repository?O({},e.repository,i.repository):e.repository;Array.isArray(i.patterns)&&rt(i.patterns,_objectSpread(_objectSpread({},e),{},{repository:_t30}),n);var _r8=i.include;if(!_r8)continue;var _o6=ut(_r8);switch(_o6.kind){case 0:it(_objectSpread(_objectSpread({},e),{},{selfGrammar:e.baseGrammar}),n);break;case 1:it(e,n);break;case 2:nt(_o6.ruleName,_objectSpread(_objectSpread({},e),{},{repository:_t30}),n);break;case 3:case 4:var _i6=_o6.scopeName===e.selfGrammar.scopeName?e.selfGrammar:_o6.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(_i6){var _r9={baseGrammar:e.baseGrammar,selfGrammar:_i6,repository:_t30};4===_o6.kind?nt(_o6.ruleName,_r9,n):it(_r9,n);}else 4===_o6.kind?n.add(new Q(_o6.scopeName,_o6.ruleName)):n.add(new K(_o6.scopeName));}}}catch(err){_iterator5.e(err);}finally{_iterator5.f();}}function ut(t){if("$base"===t)return new ot();if("$self"===t)return new st();var e=t.indexOf("#");if(-1===e)return new at(t);if(0===e)return new lt(t.substring(1));{var _n19=t.substring(0,e),i=t.substring(e+1);return new ct(_n19,i);}}function Tt(t,e,n,i,r,o,s,l){var a=e.content.length;var c=!1,u=-1;if(s){var _s8=function(t,e,n,i,r,o){var s=r.beginRuleCapturedEOL?0:-1;var l=[];for(var _e22=r;_e22;_e22=_e22.pop()){var _n23=_e22.getRule(t);_n23 instanceof wt&&l.push({rule:_n23,stack:_e22});}for(var _a4=l.pop();_a4;_a4=l.pop()){var _Nt=Nt(_a4.rule,t,_a4.stack.endRule,n,i===s),_l4=_Nt.ruleScanner,_c4=_Nt.findOptions,_u3=_l4.findNextMatchSync(e,i,_c4);if(!_u3){r=_a4.stack.pop();break;}if(_u3.ruleId!==dt){r=_a4.stack.pop();break;}_u3.captureIndices&&_u3.captureIndices.length&&(o.produce(_a4.stack,_u3.captureIndices[0].start),Dt(t,e,n,_a4.stack,o,_a4.rule.whileCaptures,_u3.captureIndices),o.produce(_a4.stack,_u3.captureIndices[0].end),s=_u3.captureIndices[0].end,_u3.captureIndices[0].end>i&&(i=_u3.captureIndices[0].end,n=!1));}return{stack:r,linePos:i,anchorPosition:s,isFirstLine:n};}(t,e,n,i,r,o);r=_s8.stack,i=_s8.linePos,n=_s8.isFirstLine,u=_s8.anchorPosition;}var m=Date.now();for(;!c;){if(0!==l){if(Date.now()-m>l)return new Mt(r,!0);}p();}return new Mt(r,!1);function p(){var s=function(t,e,n,i,r,o){var s=function(t,e,n,i,r,o){var s=r.getRule(t),_Pt=Pt(s,t,r.endRule,n,i===o),l=_Pt.ruleScanner,a=_Pt.findOptions,c=l.findNextMatchSync(e,i,a);if(c)return{captureIndices:c.captureIndices,matchedRuleId:c.ruleId};return null;}(t,e,n,i,r,o),l=t.getInjections();if(0===l.length)return s;var a=function(t,e,n,i,r,o,s){var l,a=Number.MAX_VALUE,c=null,u=0;var m=o.contentNameScopesList.getScopeNames();for(var _o12=0,_p=t.length;_o12<_p;_o12++){var _p2=t[_o12];if(!_p2.matcher(m))continue;var _h=e.getRule(_p2.ruleId),_Pt2=Pt(_h,e,null,i,r===s),_d=_Pt2.ruleScanner,_f=_Pt2.findOptions,_g=_d.findNextMatchSync(n,r,_f);if(!_g)continue;var _j2=_g.captureIndices[0].start;if(!(_j2>=a)&&(a=_j2,c=_g.captureIndices,l=_g.ruleId,u=_p2.priority,a===r))break;}if(c)return{priorityMatch:-1===u,captureIndices:c,matchedRuleId:l};return null;}(l,t,e,n,i,r,o);if(!a)return s;if(!s)return a;var c=s.captureIndices[0].start,u=a.captureIndices[0].start;if(u<c||a.priorityMatch&&u===c)return a;return s;}(t,e,n,i,r,u);if(!s)return o.produce(r,a),void(c=!0);var l=s.captureIndices,m=s.matchedRuleId,p=!!(l&&l.length>0)&&l[0].end>i;if(m===ht){var _s9=r.getRule(t);o.produce(r,l[0].start),r=r.withContentNameScopesList(r.nameScopesList),Dt(t,e,n,r,o,_s9.endCaptures,l),o.produce(r,l[0].end);var _m=r;if(r=r.parent,u=_m.getAnchorPos(),!p&&_m.getEnterPos()===i)return r=_m,o.produce(r,a),void(c=!0);}else{var _s10=t.getRule(m);o.produce(r,l[0].start);var _h2=r,_d2=_s10.getName(e.content,l),_f2=r.contentNameScopesList.pushAttributed(_d2,t);if(r=r.push(m,i,u,l[0].end===a,null,_f2,_f2),_s10 instanceof bt){var _i7=_s10;Dt(t,e,n,r,o,_i7.beginCaptures,l),o.produce(r,l[0].end),u=l[0].end;var _m2=_i7.getContentName(e.content,l),_d3=_f2.pushAttributed(_m2,t);if(r=r.withContentNameScopesList(_d3),_i7.endHasBackReferences&&(r=r.withEndRule(_i7.getEndWithResolvedBackReferences(e.content,l))),!p&&_h2.hasSameRuleAs(r))return r=r.pop(),o.produce(r,a),void(c=!0);}else if(_s10 instanceof wt){var _i8=_s10;Dt(t,e,n,r,o,_i8.beginCaptures,l),o.produce(r,l[0].end),u=l[0].end;var _m3=_i8.getContentName(e.content,l),_d4=_f2.pushAttributed(_m3,t);if(r=r.withContentNameScopesList(_d4),_i8.whileHasBackReferences&&(r=r.withEndRule(_i8.getWhileWithResolvedBackReferences(e.content,l))),!p&&_h2.hasSameRuleAs(r))return r=r.pop(),o.produce(r,a),void(c=!0);}else{if(Dt(t,e,n,r,o,_s10.captures,l),o.produce(r,l[0].end),r=r.pop(),!p)return r=r.safePop(),o.produce(r,a),void(c=!0);}}l[0].end>i&&(i=l[0].end,n=!1);}}function Pt(t,e,n,i,r){return{ruleScanner:t.compileAG(e,n,i,r),findOptions:0};}function Nt(t,e,n,i,r){return{ruleScanner:t.compileWhileAG(e,n,i,r),findOptions:0};}function Dt(t,e,n,i,r,o,s){if(0===o.length)return;var l=e.content,a=Math.min(o.length,s.length),c=[],u=s[0].end;for(var _e23=0;_e23<a;_e23++){var _a5=o[_e23];if(null===_a5)continue;var _m4=s[_e23];if(0===_m4.length)continue;if(_m4.start>u)break;for(;c.length>0&&c[c.length-1].endPos<=_m4.start;)r.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?r.produceFromScopes(c[c.length-1].scopes,_m4.start):r.produce(i,_m4.start),_a5.retokenizeCapturedWithRuleId){var _e24=_a5.getName(l,s),_o13=i.contentNameScopesList.pushAttributed(_e24,t),_c5=_a5.getContentName(l,s),_u4=_o13.pushAttributed(_c5,t),_p3=i.push(_a5.retokenizeCapturedWithRuleId,_m4.start,-1,!1,null,_o13,_u4),_h3=t.createOnigString(l.substring(0,_m4.end));Tt(t,_h3,n&&0===_m4.start,_m4.start,_p3,r,!1,0),Y(_h3);continue;}var _p4=_a5.getName(l,s);if(null!==_p4){var _e25=(c.length>0?c[c.length-1].scopes:i.contentNameScopesList).pushAttributed(_p4,t);c.push(new Et(_e25,_m4.end));}}for(;c.length>0;)r.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();}function Rt(t,e,n,i,r){var o=J(e,$t),s=vt.getCompiledRuleId(n,i,r.repository);var _iterator9=_createForOfIteratorHelper(o),_step9;try{for(_iterator9.s();!(_step9=_iterator9.n()).done;){var _n24=_step9.value;t.push({debugSelector:e,matcher:_n24.matcher,ruleId:s,grammar:r,priority:_n24.priority});}}catch(err){_iterator9.e(err);}finally{_iterator9.f();}}function $t(t,e){if(e.length<t.length)return!1;var n=0;return t.every(function(t){for(var i=n;i<e.length;i++)if(Bt(e[i],t))return n=i+1,!0;return!1;});}function Bt(t,e){if(!t)return!1;if(t===e)return!0;var n=e.length;return t.length>n&&t.substr(0,n)===e&&"."===t[n];}function Gt(t,e){return(t=A(t)).repository=t.repository||{},t.repository.$self={$vscodeTextmateLocation:t.$vscodeTextmateLocation,patterns:t.patterns,name:t.scopeName},t.repository.$base=e||t.repository.$self,t;}function Yt(t,e){var n={},i={};var r=-1;for(;++r<t.length;)Object.assign(n,t[r].property),Object.assign(i,t[r].normal);return new Xt(n,i,e);}function Kt(t){return t.toLowerCase();}function le(){return Math.pow(2,++Zt);}function me(t,e,n){n&&(t[e]=n);}function he(t){var e={},n={};var i;for(i in t.properties)if(pe.call(t.properties,i)){var _r14=t.properties[i],_o16=new ue(i,t.transform(t.attributes||{},i),_r14,t.space);t.mustUseProperty&&t.mustUseProperty.includes(i)&&(_o16.mustUseProperty=!0),e[i]=_o16,n[Kt(i)]=i,n[Kt(_o16.attribute)]=i;}return new Xt(e,n,t.space);}function ge(t,e){return e in t?t[e]:e;}function je(t,e){return ge(t,e.toLowerCase());}function Ce(t){return"-"+t.toLowerCase();}function Le(t){return t.charAt(1).toUpperCase();}function Re(t,e){return t=t.replace(e.subset?function(t){var e=Ee.get(t);e||(e=function(t){var e=[];var n=-1;for(;++n<t.length;)e.push(t[n].replace(De,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g");}(t),Ee.set(t,e));return e;}(e.subset):Te,n),e.subset||e.escapeOnly?t:t.replace(Pe,function(t,n,i){return e.format(1024*(t.charCodeAt(0)-55296)+t.charCodeAt(1)-56320+65536,i.charCodeAt(n+2),e);}).replace(Ne,n);function n(t,n,i){return e.format(t.charCodeAt(0),i.charCodeAt(n+1),e);}}function He(t,e,n){var i,r=function(t,e,n){var i="&#x"+t.toString(16).toUpperCase();return n&&e&&!$e.test(String.fromCharCode(e))?i:i+";";}(t,e,n.omitOptionalSemicolons);if((n.useNamedReferences||n.useShortestReferences)&&(i=function(t,e,n,i){var r=String.fromCharCode(t);if(_e.call(ze,r)){var _t70=ze[r],_o17="&"+_t70;return n&&Ie.includes(_t70)&&!qe.includes(_t70)&&(!i||e&&61!==e&&Ue.test(String.fromCharCode(e)))?_o17:_o17+";";}return"";}(t,e,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){var _i11=function(t,e,n){var i="&#"+String(t);return n&&e&&!Be.test(String.fromCharCode(e))?i:i+";";}(t,e,n.omitOptionalSemicolons);_i11.length<r.length&&(r=_i11);}return i&&(!n.useShortestReferences||i.length<r.length)?i:r;}function We(t,e){return Re(t,Object.assign({format:He},e));}function Ye(t,e){var n=String(t);if("string"!=typeof e)throw new TypeError("Expected character");var i=0,r=n.indexOf(e);for(;-1!==r;)i++,r=n.indexOf(e,r+e.length);return i;}function Ke(t,e){var n=e||{};return(""===t[t.length-1]?[].concat(_toConsumableArray(t),[""]):t).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim();}function Qe(t){return t.join(" ").trim();}function tn(t){return"object"==_typeof(t)?"text"===t.type&&en(t.value):en(t);}function en(t){return""===t.replace(Ze,"");}function sn(t){return function(e,n,i){var r=e?e.children:on;var o=(n||0)+t,s=r[o];if(!i)for(;s&&tn(s);)o+=t,s=r[o];return s;};}function an(t){return function(e,n,i){return ln.call(t,e.tagName)&&t[e.tagName](e,n,i);};}function un(t,e,n){var i=nn(n,e,!0);return!i||"comment"!==i.type&&!("text"===i.type&&tn(i.value.charAt(0)));}function mn(t,e,n){var i=nn(n,e);return!i||"element"===i.type&&("rp"===i.tagName||"rt"===i.tagName);}function pn(t,e,n){var i=nn(n,e);return!i||"element"===i.type&&("td"===i.tagName||"th"===i.tagName);}function fn(t,e,n){var i=function(t,e){var n=Kt(e);var i=e,r=Qt;if(n in t.normal)return t.property[t.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&ke.test(e)){if("-"===e.charAt(4)){var _t71=e.slice(5).replace(Se,Le);i="data"+_t71.charAt(0).toUpperCase()+_t71.slice(1);}else{var _t72=e.slice(4);if(!Se.test(_t72)){var _n32=_t72.replace(xe,Ce);"-"!==_n32.charAt(0)&&(_n32="-"+_n32),e="data"+_n32;}}r=ue;}return new r(i,e);}(t.schema,e),r=t.settings.allowParseErrors&&"html"===t.schema.space?0:1,o=t.settings.allowDangerousCharacters?0:1;var s,l=t.quote;if(!i.overloadedBoolean||n!==i.attribute&&""!==n?(i["boolean"]||i.overloadedBoolean&&"string"!=typeof n)&&(n=Boolean(n)):n=!0,null==n||!1===n||"number"==typeof n&&Number.isNaN(n))return"";var a=We(i.attribute,Object.assign({},t.settings.characterReferences,{subset:dn.name[r][o]}));return!0===n?a:(n=Array.isArray(n)?(i.commaSeparated?Ke:Qe)(n,{padLeft:!t.settings.tightCommaSeparatedLists}):String(n),t.settings.collapseEmptyAttributes&&!n?a:(t.settings.preferUnquoted&&(s=We(n,Object.assign({},t.settings.characterReferences,{attribute:!0,subset:dn.unquoted[r][o]}))),s!==n&&(t.settings.quoteSmart&&Ye(n,l)>Ye(n,t.alternative)&&(l=t.alternative),s=l+We(n,Object.assign({},t.settings.characterReferences,{subset:("'"===l?dn.single:dn["double"])[r][o],attribute:!0}))+l),a+(s?"="+s:s)));}function jn(t,e,n,i){return!n||"element"!==n.type||"script"!==n.tagName&&"style"!==n.tagName?We(t.value,Object.assign({},i.settings.characterReferences,{subset:gn})):t.value;}function kn(t,e,n){return yn(t,e,n,this);}function Sn(t){var e=[],n=t&&t.children||vn;var i=-1;for(;++i<n.length;)e[i]=this.one(n[i],i,t);return e.join("");}function xn(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1;var n=t.split(/(\r?\n)/g);var i=0;var r=[];for(var _t73=0;_t73<n.length;_t73+=2){var _n34;var _o18=e?n[_t73]+(n[_t73+1]||""):n[_t73];r.push([_o18,i]),i+=n[_t73].length,i+=((_n34=n[_t73+1])===null||_n34===void 0?void 0:_n34.length)||0;}return r;}function Cn(t){return!t||["plaintext","txt","text","plain"].includes(t);}function Ln(t){return"ansi"===t||Cn(t);}function An(t){return"none"===t;}function On(t){return An(t);}function Mn(t,e){var n;if(!e)return t;t.properties||(t.properties={}),(n=t.properties)["class"]||(n["class"]=[]),"string"==typeof t.properties["class"]&&(t.properties["class"]=t.properties["class"].split(/\s+/g)),Array.isArray(t.properties["class"])||(t.properties["class"]=[]);var i=Array.isArray(e)?e:e.split(/\s+/g);var _iterator19=_createForOfIteratorHelper(i),_step19;try{for(_iterator19.s();!(_step19=_iterator19.n()).done;){var _e34=_step19.value;_e34&&!t.properties["class"].includes(_e34)&&t.properties["class"].push(_e34);}}catch(err){_iterator19.e(err);}finally{_iterator19.f();}return t;}function Tn(_x5){return _Tn.apply(this,arguments);}function _Tn(){_Tn=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee10(t){return _regeneratorRuntime().wrap(function _callee10$(_context11){while(1)switch(_context11.prev=_context11.next){case 0:return _context11.abrupt("return",Promise.resolve("function"==typeof t?t():t).then(function(t){return t["default"]||t;}));case 1:case"end":return _context11.stop();}},_callee10);}));return _Tn.apply(this,arguments);}function Pn(t,e){var n="string"==typeof t?{}:_objectSpread({},t.colorReplacements),i="string"==typeof t?t:t.name;for(var _i12=0,_Object$entries=Object.entries((e===null||e===void 0?void 0:e.colorReplacements)||{});_i12<_Object$entries.length;_i12++){var _Object$entries$_i=_slicedToArray(_Object$entries[_i12],2),_t74=_Object$entries$_i[0],_r17=_Object$entries$_i[1];"string"==typeof _r17?n[_t74]=_r17:_t74===i&&Object.assign(n,_r17);}return n;}function Nn(t,e){return t&&(e===null||e===void 0?void 0:e[t===null||t===void 0?void 0:t.toLowerCase()])||t;}function Dn(t){var e={};return t.color&&(e.color=t.color),t.bgColor&&(e["background-color"]=t.bgColor),t.fontStyle&&(t.fontStyle&z.Italic&&(e["font-style"]="italic"),t.fontStyle&z.Bold&&(e["font-weight"]="bold"),t.fontStyle&z.Underline&&(e["text-decoration"]="underline")),e;}function En(t){return"string"==typeof t?t:Object.entries(t).map(function(_ref6){var _ref7=_slicedToArray(_ref6,2),t=_ref7[0],e=_ref7[1];return"".concat(t,":").concat(e);}).join(";");}function Gn(t,e){In.set(t,e);}function qn(t){return In.get(t);}function zn(t){var e=[],n=new Set();return function t(i,_i$nameScopesList){if(n.has(i))return;n.add(i);var r=i===null||i===void 0||(_i$nameScopesList=i.nameScopesList)===null||_i$nameScopesList===void 0?void 0:_i$nameScopesList.scopeName;r&&e.push(r),i.parent&&t(i.parent);}(t),e;}function Fn(){var t=new WeakMap();function e(e){if(!t.has(e.meta)){var _n37=function _n37(t){if("number"==typeof t){if(t<0||t>e.source.length)throw new Rn("Invalid decoration offset: ".concat(t,". Code length: ").concat(e.source.length));return _objectSpread(_objectSpread({},i.indexToPos(t)),{},{offset:t});}{var _e37=i.lines[t.line];if(void 0===_e37)throw new Rn("Invalid decoration position ".concat(JSON.stringify(t),". Lines length: ").concat(i.lines.length));if(t.character<0||t.character>_e37.length)throw new Rn("Invalid decoration position ".concat(JSON.stringify(t),". Line ").concat(t.line," length: ").concat(_e37.length));return _objectSpread(_objectSpread({},t),{},{offset:i.posToIndex(t.line,t.character)});}};var i=function(t){var e=xn(t,!0).map(function(_ref8){var _ref9=_slicedToArray(_ref8,1),t=_ref9[0];return t;});return{lines:e,indexToPos:function indexToPos(n){if(n===t.length)return{line:e.length-1,character:e[e.length-1].length};var i=n,r=0;var _iterator20=_createForOfIteratorHelper(e),_step20;try{for(_iterator20.s();!(_step20=_iterator20.n()).done;){var _t75=_step20.value;if(i<_t75.length)break;i-=_t75.length,r++;}}catch(err){_iterator20.e(err);}finally{_iterator20.f();}return{line:r,character:i};},posToIndex:function posToIndex(t,n){var i=0;for(var _n38=0;_n38<t;_n38++)i+=e[_n38].length;return i+=n,i;}};}(e.source),_r18=(e.options.decorations||[]).map(function(t){return _objectSpread(_objectSpread({},t),{},{start:_n37(t.start),end:_n37(t.end)});});!function(t){for(var _e38=0;_e38<t.length;_e38++){var _n39=t[_e38];if(_n39.start.offset>_n39.end.offset)throw new Rn("Invalid decoration range: ".concat(JSON.stringify(_n39.start)," - ").concat(JSON.stringify(_n39.end)));for(var _i13=_e38+1;_i13<t.length;_i13++){var _e39=t[_i13],_r19=_n39.start.offset<_e39.start.offset&&_e39.start.offset<_n39.end.offset,_o19=_n39.start.offset<_e39.end.offset&&_e39.end.offset<_n39.end.offset,_s12=_e39.start.offset<_n39.start.offset&&_n39.start.offset<_e39.end.offset,_l5=_e39.start.offset<_n39.end.offset&&_n39.end.offset<_e39.end.offset;if(_r19||_o19||_s12||_l5){if(_o19&&_o19)continue;if(_s12&&_l5)continue;throw new Rn("Decorations ".concat(JSON.stringify(_n39.start)," and ").concat(JSON.stringify(_e39.start)," intersect."));}}}}(_r18),t.set(e.meta,{decorations:_r18,converter:i,source:e.source});}return t.get(e.meta);}return{name:"shiki:decorations",tokens:function tokens(t){var _this$options$decorat;if(!((_this$options$decorat=this.options.decorations)!==null&&_this$options$decorat!==void 0&&_this$options$decorat.length))return;var n=function(t,e){var n=Array.from(e instanceof Set?e:new Set(e)).sort(function(t,e){return t-e;});return n.length?t.map(function(t){return t.flatMap(function(t){var e=n.filter(function(e){return t.offset<e&&e<t.offset+t.content.length;}).map(function(e){return e-t.offset;}).sort(function(t,e){return t-e;});return e.length?function(t,e){var n=0;var i=[];var _iterator21=_createForOfIteratorHelper(e),_step21;try{for(_iterator21.s();!(_step21=_iterator21.n()).done;){var _r20=_step21.value;_r20>n&&i.push(_objectSpread(_objectSpread({},t),{},{content:t.content.slice(n,_r20),offset:t.offset+n})),n=_r20;}}catch(err){_iterator21.e(err);}finally{_iterator21.f();}return n<t.content.length&&i.push(_objectSpread(_objectSpread({},t),{},{content:t.content.slice(n),offset:t.offset+n})),i;}(t,e):t;});}):t;}(t,e(this).decorations.flatMap(function(t){return[t.start.offset,t.end.offset];}));return n;},code:function code(t){var _this$options$decorat2;if(!((_this$options$decorat2=this.options.decorations)!==null&&_this$options$decorat2!==void 0&&_this$options$decorat2.length))return;var n=e(this),i=Array.from(t.children).filter(function(t){return"element"===t.type&&"span"===t.tagName;});if(i.length!==n.converter.lines.length)throw new Rn("Number of lines in code element (".concat(i.length,") does not match the number of lines in the source (").concat(n.converter.lines.length,"). Failed to apply decorations."));function r(t,e,n,r){var o=i[t];var l="",a=-1,c=-1;if(0===e&&(a=0),0===n&&(c=0),n===Number.POSITIVE_INFINITY&&(c=o.children.length),-1===a||-1===c)for(var _t76=0;_t76<o.children.length;_t76++)l+=Un(o.children[_t76]),-1===a&&l.length===e&&(a=_t76+1),-1===c&&l.length===n&&(c=_t76+1);if(-1===a)throw new Rn("Failed to find start index for decoration ".concat(JSON.stringify(r.start)));if(-1===c)throw new Rn("Failed to find end index for decoration ".concat(JSON.stringify(r.end)));var u=o.children.slice(a,c);if(r.alwaysWrap||u.length!==o.children.length){if(r.alwaysWrap||1!==u.length||"element"!==u[0].type){var _t77={type:"element",tagName:"span",properties:{},children:u};s(_t77,r,"wrapper"),o.children.splice(a,u.length,_t77);}else s(u[0],r,"token");}else s(o,r,"line");}function o(t,e){i[t]=s(i[t],e,"line");}function s(t,e,n){var _e$properties;var i=e.properties||{},r=e.transform||function(t){return t;};return t.tagName=e.tagName||"span",t.properties=_objectSpread(_objectSpread(_objectSpread({},t.properties),i),{},{"class":t.properties["class"]}),(_e$properties=e.properties)!==null&&_e$properties!==void 0&&_e$properties["class"]&&Mn(t,e.properties["class"]),t=r(t,n)||t;}var l=[],a=n.decorations.sort(function(t,e){return e.start.offset-t.start.offset;});var _iterator22=_createForOfIteratorHelper(a),_step22;try{var _loop=function _loop(){var t=_step22.value;var e=t.start,n=t.end;if(e.line===n.line)r(e.line,e.character,n.character,t);else if(e.line<n.line){r(e.line,e.character,Number.POSITIVE_INFINITY,t);var _loop2=function _loop2(_i14){l.unshift(function(){return o(_i14,t);});};for(var _i14=e.line+1;_i14<n.line;_i14++){_loop2(_i14);}r(n.line,0,n.character,t);}};for(_iterator22.s();!(_step22=_iterator22.n()).done;){_loop();}}catch(err){_iterator22.e(err);}finally{_iterator22.f();}l.forEach(function(t){return t();});}};}function Un(t){return"text"===t.type?t.value:"element"===t.type?t.children.map(Un).join(""):"";}function Wn(t){return[].concat(_toConsumableArray(t.transformers||[]),Hn);}function Xn(t,e){var n=t.indexOf("[",e);if(-1!==n){var _e40=t.indexOf("m",n);return{sequence:t.substring(n+2,_e40).split(";"),startPosition:n,position:_e40+1};}return{position:t.length};}function Yn(t,e){var n=1;var i=t[e+n++];var r;if("2"===i){var _i15=[t[e+n++],t[e+n++],t[e+n]].map(function(t){return Number.parseInt(t);});3!==_i15.length||_i15.some(function(t){return Number.isNaN(t);})||(r={type:"rgb",rgb:_i15});}else if("5"===i){var _i16=Number.parseInt(t[e+n]);Number.isNaN(_i16)||(r={type:"table",index:Number(_i16)});}return[n,r];}function Kn(t){var e=[];for(var _n40=0;_n40<t.length;_n40++){var i=t[_n40],_r21=Number.parseInt(i);if(!Number.isNaN(_r21))if(0===_r21)e.push({type:"resetAll"});else if(_r21<=9){Jn[_r21]&&e.push({type:"setDecoration",value:Jn[_r21]});}else if(_r21<=29){var _t78=Jn[_r21-20];_t78&&e.push({type:"resetDecoration",value:_t78});}else if(_r21<=37)e.push({type:"setForegroundColor",value:{type:"named",name:Vn[_r21-30]}});else if(38===_r21){var _Yn=Yn(t,_n40),_Yn2=_slicedToArray(_Yn,2),_i17=_Yn2[0],_r22=_Yn2[1];_r22&&e.push({type:"setForegroundColor",value:_r22}),_n40+=_i17;}else if(39===_r21)e.push({type:"resetForegroundColor"});else if(_r21<=47)e.push({type:"setBackgroundColor",value:{type:"named",name:Vn[_r21-40]}});else if(48===_r21){var _Yn3=Yn(t,_n40),_Yn4=_slicedToArray(_Yn3,2),_i18=_Yn4[0],_r23=_Yn4[1];_r23&&e.push({type:"setBackgroundColor",value:_r23}),_n40+=_i18;}else 49===_r21?e.push({type:"resetBackgroundColor"}):_r21>=90&&_r21<=97?e.push({type:"setForegroundColor",value:{type:"named",name:Vn[_r21-90+8]}}):_r21>=100&&_r21<=107&&e.push({type:"setBackgroundColor",value:{type:"named",name:Vn[_r21-100+8]}});}return e;}function Zn(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:Qn;function e(e){return t[e];}function n(t){return"#".concat(t.map(function(t){return Math.max(0,Math.min(t,255)).toString(16).padStart(2,"0");}).join(""));}var i;function r(t){return function(){if(i)return i;i=[];for(var _t79=0;_t79<Vn.length;_t79++)i.push(e(Vn[_t79]));var t=[0,95,135,175,215,255];for(var _e41=0;_e41<6;_e41++)for(var _r24=0;_r24<6;_r24++)for(var _o20=0;_o20<6;_o20++)i.push(n([t[_e41],t[_r24],t[_o20]]));var r=8;for(var _t80=0;_t80<24;_t80++,r+=10)i.push(n([r,r,r]));return i;}()[t];}return{value:function value(t){switch(t.type){case"named":return e(t.name);case"rgb":return n(t.rgb);case"table":return r(t.index);}}};}function ti(t,e,n){var i=Pn(t,n),r=xn(e),o=Zn(Object.fromEntries(Vn.map(function(e){var _t$colors;return[e,(_t$colors=t.colors)===null||_t$colors===void 0?void 0:_t$colors["terminal.ansi".concat(e[0].toUpperCase()).concat(e.substring(1))]];}))),s=function(){var t=null,e=null,n=new Set();return{parse:function parse(i){var r=[];var o=0;do{var _s13=Xn(i,o),_l6=_s13.sequence?i.substring(o,_s13.startPosition):i.substring(o);if(_l6.length>0&&r.push({value:_l6,foreground:t,background:e,decorations:new Set(n)}),_s13.sequence){var _i19=Kn(_s13.sequence);var _iterator23=_createForOfIteratorHelper(_i19),_step23;try{for(_iterator23.s();!(_step23=_iterator23.n()).done;){var _r25=_step23.value;"resetAll"===_r25.type?(t=null,e=null,n.clear()):"resetForegroundColor"===_r25.type?t=null:"resetBackgroundColor"===_r25.type?e=null:"resetDecoration"===_r25.type&&n["delete"](_r25.value);}}catch(err){_iterator23.e(err);}finally{_iterator23.f();}var _iterator24=_createForOfIteratorHelper(_i19),_step24;try{for(_iterator24.s();!(_step24=_iterator24.n()).done;){var _r26=_step24.value;"setForegroundColor"===_r26.type?t=_r26.value:"setBackgroundColor"===_r26.type?e=_r26.value:"setDecoration"===_r26.type&&n.add(_r26.value);}}catch(err){_iterator24.e(err);}finally{_iterator24.f();}}o=_s13.position;}while(o<i.length);return r;}};}();return r.map(function(e){return s.parse(e[0]).map(function(n){var r,s;n.decorations.has("reverse")?(r=n.background?o.value(n.background):t.bg,s=n.foreground?o.value(n.foreground):t.fg):(r=n.foreground?o.value(n.foreground):t.fg,s=n.background?o.value(n.background):void 0),r=Nn(r,i),s=Nn(s,i),n.decorations.has("dim")&&(r=function(t){var e=t.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(e){if(e[3]){var _t81=Math.round(Number.parseInt(e[3],16)/2).toString(16).padStart(2,"0");return"#".concat(e[1]).concat(e[2]).concat(_t81);}return e[2]?"#".concat(e[1]).concat(e[2],"80"):"#".concat(Array.from(e[1]).map(function(t){return"".concat(t).concat(t);}).join(""),"80");}var n=t.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?"var(".concat(n[1],"-dim)"):t;}(r));var l=z.None;return n.decorations.has("bold")&&(l|=z.Bold),n.decorations.has("italic")&&(l|=z.Italic),n.decorations.has("underline")&&(l|=z.Underline),{content:n.value,offset:e[1],color:r,bgColor:s,fontStyle:l};});});}function ei(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var _n$lang=n.lang,i=_n$lang===void 0?"text":_n$lang,_n$theme=n.theme,r=_n$theme===void 0?t.getLoadedThemes()[0]:_n$theme;if(Cn(i)||An(r))return xn(e).map(function(t){return[{content:t[0],offset:t[1]}];});var _t$setTheme=t.setTheme(r),o=_t$setTheme.theme,s=_t$setTheme.colorMap;if("ansi"===i)return ti(o,e,n);var l=t.getLanguage(i);if(n.grammarState){if(n.grammarState.lang!==l.name)throw new h("Grammar state language \"".concat(n.grammarState.lang,"\" does not match highlight language \"").concat(l.name,"\""));if(!n.grammarState.themes.includes(o.name))throw new h("Grammar state themes \"".concat(n.grammarState.themes,"\" do not contain highlight theme \"").concat(o.name,"\""));}return function(t,e,n,i,r){var o=ni(t,e,n,i,r),s=new _n(ni(t,e,n,i,r).stateStack,e.name,n.name);return Gn(o.tokens,s),o.tokens;}(e,l,o,s,n);}function ni(t,e,n,i,r){var _ref10;var o=Pn(n,r),_r$tokenizeMaxLineLen=r.tokenizeMaxLineLength,s=_r$tokenizeMaxLineLen===void 0?0:_r$tokenizeMaxLineLen,_r$tokenizeTimeLimit=r.tokenizeTimeLimit,l=_r$tokenizeTimeLimit===void 0?500:_r$tokenizeTimeLimit,a=xn(t);var c=r.grammarState?(_ref10=function(t,e){if(!(t instanceof _n))throw new Rn("Invalid grammar state");return t.getInternalStack(e);}(r.grammarState,n.name))!==null&&_ref10!==void 0?_ref10:Vt:null!=r.grammarContextCode?ni(r.grammarContextCode,e,n,i,_objectSpread(_objectSpread({},r),{},{grammarState:void 0,grammarContextCode:void 0})).stateStack:Vt,u=[];var m=[];for(var _t82=0,_h4=a.length;_t82<_h4;_t82++){var _a$_t=_slicedToArray(a[_t82],2),_h5=_a$_t[0],_d5=_a$_t[1];if(""===_h5){u=[],m.push([]);continue;}if(s>0&&_h5.length>=s){u=[],m.push([{content:_h5,offset:_d5,color:"",fontStyle:0}]);continue;}var _f3=void 0,_g2=void 0,_j3=void 0;r.includeExplanation&&(_f3=e.tokenizeLine(_h5,c),_g2=_f3.tokens,_j3=0);var _y=e.tokenizeLine2(_h5,c,l),_b=_y.tokens.length/2;for(var _t83=0;_t83<_b;_t83++){var _e42=_y.tokens[2*_t83],_s14=_t83+1<_b?_y.tokens[2*_t83+2]:_h5.length;if(_e42===_s14)continue;var _l7=_y.tokens[2*_t83+1],_a6=Nn(i[V.getForeground(_l7)],o),_c6=V.getFontStyle(_l7),_m5={content:_h5.substring(_e42,_s14),offset:_d5+_e42,color:_a6,fontStyle:_c6};if(r.includeExplanation){var _t84=[];if("scopeName"!==r.includeExplanation){var _iterator25=_createForOfIteratorHelper(n.settings),_step25;try{for(_iterator25.s();!(_step25=_iterator25.n()).done;){var _e43=_step25.value;var _n41=void 0;switch(_typeof(_e43.scope)){case"string":_n41=_e43.scope.split(/,/).map(function(t){return t.trim();});break;case"object":_n41=_e43.scope;break;default:continue;}_t84.push({settings:_e43,selectors:_n41.map(function(t){return t.split(/ /);})});}}catch(err){_iterator25.e(err);}finally{_iterator25.f();}}_m5.explanation=[];var _i20=0;for(;_e42+_i20<_s14;){var _e44=_g2[_j3],_n42=_h5.substring(_e44.startIndex,_e44.endIndex);_i20+=_n42.length,_m5.explanation.push({content:_n42,scopes:"scopeName"===r.includeExplanation?(p=_e44.scopes,p.map(function(t){return{scopeName:t};})):ii(_t84,_e44.scopes)}),_j3+=1;}}u.push(_m5);}m.push(u),u=[],c=_y.ruleStack;}var p;return{tokens:m,stateStack:c};}function ii(t,e){var n=[];for(var i=0,_r27=e.length;i<_r27;i++){var _r28=e[i];n[i]={scopeName:_r28,themeMatches:si(t,_r28,e.slice(0,i))};}return n;}function ri(t,e){return t===e||e.substring(0,t.length)===t&&"."===e[t.length];}function oi(t,e,n){if(!ri(t[t.length-1],e))return!1;var i=t.length-2,r=n.length-1;for(;i>=0&&r>=0;)ri(t[i],n[r])&&(i-=1),r-=1;return-1===i;}function si(t,e,n){var i=[];var _iterator26=_createForOfIteratorHelper(t),_step26;try{for(_iterator26.s();!(_step26=_iterator26.n()).done;){var _step26$value=_step26.value,_r29=_step26$value.selectors,_o21=_step26$value.settings;var _iterator27=_createForOfIteratorHelper(_r29),_step27;try{for(_iterator27.s();!(_step27=_iterator27.n()).done;){var _t85=_step27.value;if(oi(_t85,e,n)){i.push(_o21);break;}}}catch(err){_iterator27.e(err);}finally{_iterator27.f();}}}catch(err){_iterator26.e(err);}finally{_iterator26.f();}return i;}function li(t,e,n){var i=Object.entries(n.themes).filter(function(t){return t[1];}).map(function(t){return{color:t[0],theme:t[1]};}),r=i.map(function(i){var r=ei(t,e,_objectSpread(_objectSpread({},n),{},{theme:i.theme}));return{tokens:r,state:qn(r),theme:"string"==typeof i.theme?i.theme:i.theme.name};}),o=function(){for(var _len4=arguments.length,t=new Array(_len4),_key4=0;_key4<_len4;_key4++){t[_key4]=arguments[_key4];}var e=t.map(function(){return[];}),n=t.length;var _loop3=function _loop3(_i21){var r=t.map(function(t){return t[_i21];}),o=e.map(function(){return[];});e.forEach(function(t,e){return t.push(o[e]);});var s=r.map(function(){return 0;}),l=r.map(function(t){return t[0];});for(;l.every(function(t){return t;});){var _t86=Math.min.apply(Math,_toConsumableArray(l.map(function(t){return t.content.length;})));for(var _e45=0;_e45<n;_e45++){var _n43=l[_e45];_n43.content.length===_t86?(o[_e45].push(_n43),s[_e45]+=1,l[_e45]=r[_e45][s[_e45]]):(o[_e45].push(_objectSpread(_objectSpread({},_n43),{},{content:_n43.content.slice(0,_t86)})),l[_e45]=_objectSpread(_objectSpread({},_n43),{},{content:_n43.content.slice(_t86),offset:_n43.offset+_t86}));}}};for(var _i21=0;_i21<t[0].length;_i21++){_loop3(_i21);}return e;}.apply(void 0,_toConsumableArray(r.map(function(t){return t.tokens;}))),s=o[0].map(function(t,e){return t.map(function(t,r){var s={content:t.content,variants:{},offset:t.offset};return"includeExplanation"in n&&n.includeExplanation&&(s.explanation=t.explanation),o.forEach(function(t,n){var _t$e$r=t[e][r],o=_t$e$r.content,l=_t$e$r.explanation,a=_t$e$r.offset,c=_objectWithoutProperties(_t$e$r,_excluded);s.variants[i[n].color]=c;}),s;});}),l=r[0].state?new _n(Object.fromEntries(r.map(function(t){var _t$state;return[t.theme,(_t$state=t.state)===null||_t$state===void 0?void 0:_t$state.getInternalStack(t.theme)];})),r[0].state.lang):void 0;return l&&Gn(s,l),s;}function ai(t,e,n){var i,r,o,s,l,a;if("themes"in n){var _n$defaultColor=n.defaultColor,_c7=_n$defaultColor===void 0?"light":_n$defaultColor,_n$cssVariablePrefix=n.cssVariablePrefix,_u5=_n$cssVariablePrefix===void 0?"--shiki-":_n$cssVariablePrefix,_m6=Object.entries(n.themes).filter(function(t){return t[1];}).map(function(t){return{color:t[0],theme:t[1]};}).sort(function(t,e){return t.color===_c7?-1:e.color===_c7?1:0;});if(0===_m6.length)throw new h("`themes` option must not be empty");var _p5=li(t,e,n);if(a=qn(_p5),_c7&&!_m6.find(function(t){return t.color===_c7;}))throw new h("`themes` option must contain the defaultColor key `".concat(_c7,"`"));var _d6=_m6.map(function(e){return t.getTheme(e.theme);}),_f4=_m6.map(function(t){return t.color;});o=_p5.map(function(t){return t.map(function(t){return function(t,e,n,i){var r={content:t.content,explanation:t.explanation,offset:t.offset},o=e.map(function(e){return Dn(t.variants[e]);}),s=new Set(o.flatMap(function(t){return Object.keys(t);})),l={};return o.forEach(function(t,r){var _iterator28=_createForOfIteratorHelper(s),_step28;try{for(_iterator28.s();!(_step28=_iterator28.n()).done;){var _o22=_step28.value;var _s15=t[_o22]||"inherit";if(0===r&&i)l[_o22]=_s15;else{var _t87="color"===_o22?"":"background-color"===_o22?"-bg":"-".concat(_o22),_i22=n+e[r]+("color"===_o22?"":_t87);l[_i22]=_s15;}}}catch(err){_iterator28.e(err);}finally{_iterator28.f();}}),r.htmlStyle=l,r;}(t,_f4,_u5,_c7);});}),a&&Gn(o,a);var _g3=_m6.map(function(t){return Pn(t.theme,n);});r=_m6.map(function(t,e){return(0===e&&_c7?"":"".concat(_u5+t.color,":"))+(Nn(_d6[e].fg,_g3[e])||"inherit");}).join(";"),i=_m6.map(function(t,e){return(0===e&&_c7?"":"".concat(_u5+t.color,"-bg:"))+(Nn(_d6[e].bg,_g3[e])||"inherit");}).join(";"),s="shiki-themes ".concat(_d6.map(function(t){return t.name;}).join(" ")),l=_c7?void 0:[r,i].join(";");}else{if(!("theme"in n))throw new h("Invalid options, either `theme` or `themes` must be provided");{var _l8=Pn(n.theme,n);o=ei(t,e,n);var _c8=t.getTheme(n.theme);i=Nn(_c8.bg,_l8),r=Nn(_c8.fg,_l8),s=_c8.name,a=qn(o);}}return{tokens:o,fg:r,bg:i,themeName:s,rootStyle:l,grammarState:a};}function ci(t,e,n){var i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{meta:{},options:n,codeToHast:function codeToHast(e,n){return ci(t,e,n);},codeToTokens:function codeToTokens(e,n){return ai(t,e,n);}};var r=e;var _iterator29=_createForOfIteratorHelper(Wn(n)),_step29;try{for(_iterator29.s();!(_step29=_iterator29.n()).done;){var _t93$preprocess;var _t93=_step29.value;r=((_t93$preprocess=_t93.preprocess)===null||_t93$preprocess===void 0?void 0:_t93$preprocess.call(i,r,n))||r;}}catch(err){_iterator29.e(err);}finally{_iterator29.f();}var _ai=ai(t,r,n),o=_ai.tokens,s=_ai.fg,l=_ai.bg,a=_ai.themeName,c=_ai.rootStyle,u=_ai.grammarState;var _n$mergeWhitespaces=n.mergeWhitespaces,m=_n$mergeWhitespaces===void 0?!0:_n$mergeWhitespaces;!0===m?o=function(t){return t.map(function(t){var e=[];var n="",i=0;return t.forEach(function(r,o){var s=!(r.fontStyle&&r.fontStyle&z.Underline);s&&r.content.match(/^\s+$/)&&t[o+1]?(i||(i=r.offset),n+=r.content):n?(s?e.push(_objectSpread(_objectSpread({},r),{},{offset:i,content:n+r.content})):e.push({content:n,offset:i},r),i=0,n=""):e.push(r);}),e;});}(o):"never"===m&&(o=function(t){return t.map(function(t){return t.flatMap(function(t){if(t.content.match(/^\s+$/))return t;var e=t.content.match(/^(\s*)(.*?)(\s*)$/);if(!e)return t;var _e46=_slicedToArray(e,4),n=_e46[1],i=_e46[2],r=_e46[3];if(!n&&!r)return t;var o=[_objectSpread(_objectSpread({},t),{},{offset:t.offset+n.length,content:i})];return n&&o.unshift({content:n,offset:t.offset}),r&&o.push({content:r,offset:t.offset+n.length+i.length}),o;});});}(o));var p=_objectSpread(_objectSpread({},i),{},{get source(){return r;}});var _iterator30=_createForOfIteratorHelper(Wn(n)),_step30;try{for(_iterator30.s();!(_step30=_iterator30.n()).done;){var _t94$tokens;var _t94=_step30.value;o=((_t94$tokens=_t94.tokens)===null||_t94$tokens===void 0?void 0:_t94$tokens.call(p,o))||o;}}catch(err){_iterator30.e(err);}finally{_iterator30.f();}return function(t,e,n){var i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:qn(t);var r=Wn(e),o=[],s={type:"root",children:[]},_e$structure=e.structure,l=_e$structure===void 0?"classic":_e$structure,_e$tabindex=e.tabindex,a=_e$tabindex===void 0?"0":_e$tabindex;var c={type:"element",tagName:"pre",properties:_objectSpread(_objectSpread({"class":"shiki ".concat(e.themeName||""),style:e.rootStyle||"background-color:".concat(e.bg,";color:").concat(e.fg)},!1!==a&&null!=a?{tabindex:a.toString()}:{}),Object.fromEntries(Array.from(Object.entries(e.meta||{})).filter(function(_ref11){var _ref12=_slicedToArray(_ref11,1),t=_ref12[0];return!t.startsWith("_");}))),children:[]},u={type:"element",tagName:"code",properties:{},children:o};var m=[],p=_objectSpread(_objectSpread({},n),{},{structure:l,addClassToHast:Mn,get source(){return n.source;},get tokens(){return t;},get options(){return e;},get root(){return s;},get pre(){return c;},get code(){return u;},get lines(){return m;}});if(t.forEach(function(t,e){e&&("inline"===l?s.children.push({type:"element",tagName:"br",properties:{},children:[]}):"classic"===l&&o.push({type:"text",value:"\n"}));var n={type:"element",tagName:"span",properties:{"class":"line"},children:[]},i=0;var _iterator31=_createForOfIteratorHelper(t),_step31;try{for(_iterator31.s();!(_step31=_iterator31.n()).done;){var _o23=_step31.value;var _t89={type:"element",tagName:"span",properties:_objectSpread({},_o23.htmlAttrs),children:[{type:"text",value:_o23.content}]};_o23.htmlStyle;var _a7=En(_o23.htmlStyle||Dn(_o23));_a7&&(_t89.properties.style=_a7);var _iterator33=_createForOfIteratorHelper(r),_step33;try{for(_iterator33.s();!(_step33=_iterator33.n()).done;){var _s16$span;var _s16=_step33.value;_t89=(_s16===null||_s16===void 0||(_s16$span=_s16.span)===null||_s16$span===void 0?void 0:_s16$span.call(p,_t89,e+1,i,n,_o23))||_t89;}}catch(err){_iterator33.e(err);}finally{_iterator33.f();}"inline"===l?s.children.push(_t89):"classic"===l&&n.children.push(_t89),i+=_o23.content.length;}}catch(err){_iterator31.e(err);}finally{_iterator31.f();}if("classic"===l){var _iterator32=_createForOfIteratorHelper(r),_step32;try{for(_iterator32.s();!(_step32=_iterator32.n()).done;){var _t88$line;var _t88=_step32.value;n=(_t88===null||_t88===void 0||(_t88$line=_t88.line)===null||_t88$line===void 0?void 0:_t88$line.call(p,n,e+1))||n;}}catch(err){_iterator32.e(err);}finally{_iterator32.f();}m.push(n),o.push(n);}}),"classic"===l){var _iterator34=_createForOfIteratorHelper(r),_step34;try{for(_iterator34.s();!(_step34=_iterator34.n()).done;){var _t90$code;var _t90=_step34.value;u=(_t90===null||_t90===void 0||(_t90$code=_t90.code)===null||_t90$code===void 0?void 0:_t90$code.call(p,u))||u;}}catch(err){_iterator34.e(err);}finally{_iterator34.f();}c.children.push(u);var _iterator35=_createForOfIteratorHelper(r),_step35;try{for(_iterator35.s();!(_step35=_iterator35.n()).done;){var _t91$pre;var _t91=_step35.value;c=(_t91===null||_t91===void 0||(_t91$pre=_t91.pre)===null||_t91$pre===void 0?void 0:_t91$pre.call(p,c))||c;}}catch(err){_iterator35.e(err);}finally{_iterator35.f();}s.children.push(c);}var h=s;var _iterator36=_createForOfIteratorHelper(r),_step36;try{for(_iterator36.s();!(_step36=_iterator36.n()).done;){var _t92$root;var _t92=_step36.value;h=(_t92===null||_t92===void 0||(_t92$root=_t92.root)===null||_t92$root===void 0?void 0:_t92$root.call(p,h))||h;}}catch(err){_iterator36.e(err);}finally{_iterator36.f();}i&&Gn(h,i);return h;}(o,_objectSpread(_objectSpread({},n),{},{fg:s,bg:l,themeName:a,rootStyle:c}),p,u);}function ui(t,e,n){var i={meta:{},options:n,codeToHast:function codeToHast(e,n){return ci(t,e,n);},codeToTokens:function codeToTokens(e,n){return ai(t,e,n);}};var r=function(t,e){var n=e||bn,i=n.quote||'"',r='"'===i?"'":'"';if('"'!==i&&"'"!==i)throw new Error("Invalid quote `"+i+"`, expected `'` or `\"`");return{one:kn,all:Sn,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||Jt,characterReferences:n.characterReferences||wn,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:"svg"===n.space?Oe:Ae,quote:i,alternative:r}.one(Array.isArray(t)?{type:"root",children:t}:t,void 0,void 0);}(ci(t,e,n,i));var _iterator37=_createForOfIteratorHelper(Wn(n)),_step37;try{for(_iterator37.s();!(_step37=_iterator37.n()).done;){var _t95$postprocess;var _t95=_step37.value;r=((_t95$postprocess=_t95.postprocess)===null||_t95$postprocess===void 0?void 0:_t95$postprocess.call(i,r,n))||r;}}catch(err){_iterator37.e(err);}finally{_iterator37.f();}return r;}function di(t){if(t!==null&&t!==void 0&&t[hi])return t;var e=_objectSpread({},t);e.tokenColors&&!e.settings&&(e.settings=e.tokenColors,delete e.tokenColors),e.type||(e.type="dark"),e.colorReplacements=_objectSpread({},e.colorReplacements),e.settings||(e.settings=[]);var n=e.bg,i=e.fg;if(!n||!i){var _t96$settings,_t96$settings2,_e$colors,_e$colors2;var _t96=e.settings?e.settings.find(function(t){return!t.name&&!t.scope;}):void 0;_t96!==null&&_t96!==void 0&&(_t96$settings=_t96.settings)!==null&&_t96$settings!==void 0&&_t96$settings.foreground&&(i=_t96.settings.foreground),_t96!==null&&_t96!==void 0&&(_t96$settings2=_t96.settings)!==null&&_t96$settings2!==void 0&&_t96$settings2.background&&(n=_t96.settings.background),!i&&e!==null&&e!==void 0&&(_e$colors=e.colors)!==null&&_e$colors!==void 0&&_e$colors["editor.foreground"]&&(i=e.colors["editor.foreground"]),!n&&e!==null&&e!==void 0&&(_e$colors2=e.colors)!==null&&_e$colors2!==void 0&&_e$colors2["editor.background"]&&(n=e.colors["editor.background"]),i||(i="light"===e.type?mi.light:mi.dark),n||(n="light"===e.type?pi.light:pi.dark),e.fg=i,e.bg=n;}e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope||e.settings.unshift({settings:{foreground:e.fg,background:e.bg}});var r=0;var o=new Map();function s(t){var _e$colorReplacements;if(o.has(t))return o.get(t);r+=1;var n="#".concat(r.toString(16).padStart(8,"0").toLowerCase());return(_e$colorReplacements=e.colorReplacements)!==null&&_e$colorReplacements!==void 0&&_e$colorReplacements["#".concat(n)]?s(t):(o.set(t,n),n);}e.settings=e.settings.map(function(t){var _t$settings,_t$settings2;var n=((_t$settings=t.settings)===null||_t$settings===void 0?void 0:_t$settings.foreground)&&!t.settings.foreground.startsWith("#"),i=((_t$settings2=t.settings)===null||_t$settings2===void 0?void 0:_t$settings2.background)&&!t.settings.background.startsWith("#");if(!n&&!i)return t;var r=_objectSpread(_objectSpread({},t),{},{settings:_objectSpread({},t.settings)});if(n){var _n44=s(t.settings.foreground);e.colorReplacements[_n44]=t.settings.foreground,r.settings.foreground=_n44;}if(i){var _n45=s(t.settings.background);e.colorReplacements[_n45]=t.settings.background,r.settings.background=_n45;}return r;});for(var _i23=0,_Object$keys2=Object.keys(e.colors||{});_i23<_Object$keys2.length;_i23++){var _e$colors$_t;var _t97=_Object$keys2[_i23];if(("editor.foreground"===_t97||"editor.background"===_t97||_t97.startsWith("terminal.ansi"))&&!((_e$colors$_t=e.colors[_t97])!==null&&_e$colors$_t!==void 0&&_e$colors$_t.startsWith("#"))){var _n46=s(e.colors[_t97]);e.colorReplacements[_n46]=e.colors[_t97],e.colors[_t97]=_n46;}}return Object.defineProperty(e,hi,{enumerable:!1,writable:!1,value:!0}),e;}function fi(_x6){return _fi.apply(this,arguments);}function _fi(){_fi=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee12(t){return _regeneratorRuntime().wrap(function _callee12$(_context13){while(1)switch(_context13.prev=_context13.next){case 0:_context13.t0=Array;_context13.t1=Set;_context13.next=4;return Promise.all(t.filter(function(t){return!Ln(t);}).map(/*#__PURE__*/function(){var _ref25=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee11(t){return _regeneratorRuntime().wrap(function _callee11$(_context12){while(1)switch(_context12.prev=_context12.next){case 0:_context12.next=2;return Tn(t).then(function(t){return Array.isArray(t)?t:[t];});case 2:return _context12.abrupt("return",_context12.sent);case 3:case"end":return _context12.stop();}},_callee11);}));return function(_x10){return _ref25.apply(this,arguments);};}()));case 4:_context13.t2=_context13.sent.flat();_context13.t3=new _context13.t1(_context13.t2);return _context13.abrupt("return",_context13.t0.from.call(_context13.t0,_context13.t3));case 7:case"end":return _context13.stop();}},_callee12);}));return _fi.apply(this,arguments);}function gi(_x7){return _gi.apply(this,arguments);}function _gi(){_gi=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee14(t){return _regeneratorRuntime().wrap(function _callee14$(_context15){while(1)switch(_context15.prev=_context15.next){case 0:_context15.next=2;return Promise.all(t.map(/*#__PURE__*/function(){var _ref26=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee13(t){return _regeneratorRuntime().wrap(function _callee13$(_context14){while(1)switch(_context14.prev=_context14.next){case 0:if(!On(t)){_context14.next=4;break;}_context14.t0=null;_context14.next=9;break;case 4:_context14.t1=di;_context14.next=7;return Tn(t);case 7:_context14.t2=_context14.sent;_context14.t0=(0,_context14.t1)(_context14.t2);case 9:return _context14.abrupt("return",_context14.t0);case 10:case"end":return _context14.stop();}},_callee13);}));return function(_x11){return _ref26.apply(this,arguments);};}()));case 2:return _context15.abrupt("return",_context15.sent.filter(function(t){return!!t;}));case 3:case"end":return _context15.stop();}},_callee14);}));return _gi.apply(this,arguments);}function xi(){return _xi.apply(this,arguments);}function _xi(){_xi=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee17(){var t,_yield$Promise$all,_yield$Promise$all2,e,n,i,_args17=arguments;return _regeneratorRuntime().wrap(function _callee17$(_context18){while(1)switch(_context18.prev=_context18.next){case 0:t=_args17.length>0&&_args17[0]!==undefined?_args17[0]:{};t.loadWasm;_context18.next=4;return Promise.all([gi(t.themes||[]),fi(t.langs||[]),t.engine||L(t.loadWasm||b)]);case 4:_yield$Promise$all=_context18.sent;_yield$Promise$all2=_slicedToArray(_yield$Promise$all,3);e=_yield$Promise$all2[0];n=_yield$Promise$all2[1];i=_yield$Promise$all2[2];return _context18.abrupt("return",function(t){Si+=1,!1!==t.warnings&&Si>=10&&Si%10==0&&console.warn("[Shiki] ".concat(Si," 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."));var e=!1;if(!t.engine)throw new Rn("`engine` option is required for synchronous mode");var n=(t.langs||[]).flat(1),i=(t.themes||[]).flat(1).map(di),r=new ki(t.engine,n),o=new bi(r,i,n,t.langAlias);var s;function l(t){if("none"===t)return{bg:"",fg:"",name:"none",settings:[],type:"dark"};u();var e=o.getTheme(t);if(!e)throw new Rn("Theme `".concat(t,"` not found, you may need to load it first"));return e;}function a(){for(var _len7=arguments.length,t=new Array(_len7),_key7=0;_key7<_len7;_key7++){t[_key7]=arguments[_key7];}u(),o.loadLanguages(t.flat(1));}function c(){u();for(var _len8=arguments.length,t=new Array(_len8),_key8=0;_key8<_len8;_key8++){t[_key8]=arguments[_key8];}var _iterator41=_createForOfIteratorHelper(t.flat(1)),_step41;try{for(_iterator41.s();!(_step41=_iterator41.n()).done;){var _e56=_step41.value;o.loadTheme(_e56);}}catch(err){_iterator41.e(err);}finally{_iterator41.f();}}function u(){if(e)throw new Rn("Shiki instance has been disposed");}function m(){e||(e=!0,o.dispose(),Si-=1);}return _defineProperty({setTheme:function setTheme(t){u();var e=l(t);return s!==t&&(o.setTheme(e),s=t),{theme:e,colorMap:o.getColorMap()};},getTheme:l,getLanguage:function getLanguage(t){u();var e=o.getGrammar("string"==typeof t?t:t.name);if(!e)throw new Rn("Language `".concat(t,"` not found, you may need to load it first"));return e;},getLoadedThemes:function getLoadedThemes(){return u(),o.getLoadedThemes();},getLoadedLanguages:function getLoadedLanguages(){return u(),o.getLoadedLanguages();},loadLanguage:function(){var _loadLanguage=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee15(){var _len9,t,_key9,_args15=arguments;return _regeneratorRuntime().wrap(function _callee15$(_context16){while(1)switch(_context16.prev=_context16.next){case 0:for(_len9=_args15.length,t=new Array(_len9),_key9=0;_key9<_len9;_key9++){t[_key9]=_args15[_key9];}_context16.t0=a;_context16.next=4;return fi(t);case 4:_context16.t1=_context16.sent;return _context16.abrupt("return",(0,_context16.t0)(_context16.t1));case 6:case"end":return _context16.stop();}},_callee15);}));function loadLanguage(){return _loadLanguage.apply(this,arguments);}return loadLanguage;}(),loadLanguageSync:a,loadTheme:function(){var _loadTheme=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee16(){var _len10,t,_key10,_args16=arguments;return _regeneratorRuntime().wrap(function _callee16$(_context17){while(1)switch(_context17.prev=_context17.next){case 0:for(_len10=_args16.length,t=new Array(_len10),_key10=0;_key10<_len10;_key10++){t[_key10]=_args16[_key10];}u();_context17.t0=c;_context17.next=5;return gi(t);case 5:_context17.t1=_context17.sent;return _context17.abrupt("return",(0,_context17.t0)(_context17.t1));case 7:case"end":return _context17.stop();}},_callee16);}));function loadTheme(){return _loadTheme.apply(this,arguments);}return loadTheme;}(),loadThemeSync:c,dispose:m},Symbol.dispose,m);}(_objectSpread(_objectSpread({},t),{},{loadWasm:void 0,themes:e,langs:n,engine:i})));case 10:case"end":return _context18.stop();}},_callee17);}));return _xi.apply(this,arguments);}function Ci(){return _Ci.apply(this,arguments);}function _Ci(){_Ci=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee18(){var t,e,_args18=arguments;return _regeneratorRuntime().wrap(function _callee18$(_context19){while(1)switch(_context19.prev=_context19.next){case 0:t=_args18.length>0&&_args18[0]!==undefined?_args18[0]:{};_context19.next=3;return xi(t);case 3:e=_context19.sent;return _context19.abrupt("return",_objectSpread(_objectSpread({getLastGrammarState:function getLastGrammarState(){for(var _len11=arguments.length,t=new Array(_len11),_key11=0;_key11<_len11;_key11++){t[_key11]=arguments[_key11];}return function(){for(var _len12=arguments.length,t=new Array(_len12),_key12=0;_key12<_len12;_key12++){t[_key12]=arguments[_key12];}if(2===t.length)return qn(t[1]);var e=t[0],n=t[1],_t$=t[2],i=_t$===void 0?{}:_t$,_i$lang=i.lang,r=_i$lang===void 0?"text":_i$lang,_i$theme=i.theme,o=_i$theme===void 0?e.getLoadedThemes()[0]:_i$theme;if(Cn(r)||An(o))throw new h("Plain language does not have grammar state");if("ansi"===r)throw new h("ANSI language does not have grammar state");var _e$setTheme=e.setTheme(o),s=_e$setTheme.theme,l=_e$setTheme.colorMap,a=e.getLanguage(r);return new _n(ni(n,a,s,l,i).stateStack,a.name,s.name);}.apply(void 0,[e].concat(t));},codeToTokensBase:function codeToTokensBase(t,n){return ei(e,t,n);},codeToTokensWithThemes:function codeToTokensWithThemes(t,n){return li(e,t,n);},codeToTokens:function codeToTokens(t,n){return ai(e,t,n);},codeToHast:function codeToHast(t,n){return ci(e,t,n);},codeToHtml:function codeToHtml(t,n){return ui(e,t,n);}},e),{},{getInternalContext:function getInternalContext(){return e;}}));case 5:case"end":return _context19.stop();}},_callee18);}));return _Ci.apply(this,arguments);}function Li(t,e,n){var i,r,o;if(e)i=t,r=e,o=function o(){return L(n);};else{var _e52=t;i=_e52.langs,r=_e52.themes,o=_e52.engine;}return/*#__PURE__*/function(){var _ref23=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(t){var _t$themes,_t$langs;var e,n,s,l,a;return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:n=function _n49(t){if(On(t))return"none";if("string"==typeof t){var _e54=r[t];if(!_e54)throw new h("Theme `".concat(t,"` is not included in this bundle. You may want to load it from external source."));return _e54;}return t;};e=function _e55(t){if("string"==typeof t){if(Ln(t))return[];var _e53=i[t];if(!_e53)throw new h("Language `".concat(t,"` is not included in this bundle. You may want to load it from external source."));return _e53;}return t;};s=((_t$themes=t.themes)!==null&&_t$themes!==void 0?_t$themes:[]).map(function(t){return n(t);});l=((_t$langs=t.langs)!==null&&_t$langs!==void 0?_t$langs:[]).map(function(t){return e(t);});_context5.next=6;return Ci(_objectSpread(_objectSpread({engine:o()},t),{},{themes:s,langs:l}));case 6:a=_context5.sent;return _context5.abrupt("return",_objectSpread(_objectSpread({},a),{},{loadLanguage:function loadLanguage(){for(var _len5=arguments.length,t=new Array(_len5),_key5=0;_key5<_len5;_key5++){t[_key5]=arguments[_key5];}return a.loadLanguage.apply(a,_toConsumableArray(t.map(e)));},loadTheme:function loadTheme(){for(var _len6=arguments.length,t=new Array(_len6),_key6=0;_key6<_len6;_key6++){t[_key6]=arguments[_key6];}return a.loadTheme.apply(a,_toConsumableArray(t.map(n)));}}));case 8:case"end":return _context5.stop();}},_callee4);}));return function(_x8){return _ref23.apply(this,arguments);};}();}return{setters:[function(_tslib){t=_tslib.__decorate;},function(_index001CjsJs){e=_index001CjsJs.x;},function(_litDecoratorsJs){n=_litDecoratorsJs.state;i=_litDecoratorsJs.customElement;},function(_nileHighlighterCssCjsJs){r=_nileHighlighterCssCjsJs.s;},function(_internalNileElementCjsJs){o=_internalNileElementCjsJs.N;},function(_themeListCjsJs){s=_themeListCjsJs.t;l=_themeListCjsJs.l;},function(_property002CjsJs){a=_property002CjsJs.n;},function(_lit){}],execute:function execute(){_excluded=["content","explanation","offset"];c=[{id:"abap",name:"ABAP","import":function _import(){return _context["import"]("../abap-3b3fe406.cjs.js");}},{id:"actionscript-3",name:"ActionScript","import":function _import(){return _context["import"]("../actionscript-3-bfb4c9ee.cjs.js");}},{id:"ada",name:"Ada","import":function _import(){return _context["import"]("../ada-cf320841.cjs.js");}},{id:"angular-html",name:"Angular HTML","import":function _import(){return _context["import"]("../angular-html-2d4bdba3.cjs.js").then(function(t){return t.f;});}},{id:"angular-ts",name:"Angular TypeScript","import":function _import(){return _context["import"]("../angular-ts-f3444056.cjs.js");}},{id:"apache",name:"Apache Conf","import":function _import(){return _context["import"]("../apache-8c723a80.cjs.js");}},{id:"apex",name:"Apex","import":function _import(){return _context["import"]("../apex-4fae5b4b.cjs.js");}},{id:"apl",name:"APL","import":function _import(){return _context["import"]("../apl-6dcd4ac5.cjs.js");}},{id:"applescript",name:"AppleScript","import":function _import(){return _context["import"]("../applescript-a967e4a2.cjs.js");}},{id:"ara",name:"Ara","import":function _import(){return _context["import"]("../ara-6596ec94.cjs.js");}},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],"import":function _import(){return _context["import"]("../asciidoc-075b3bd4.cjs.js");}},{id:"asm",name:"Assembly","import":function _import(){return _context["import"]("../asm-d52952fd.cjs.js");}},{id:"astro",name:"Astro","import":function _import(){return _context["import"]("../astro-bbf64346.cjs.js");}},{id:"awk",name:"AWK","import":function _import(){return _context["import"]("../awk-e9ad4440.cjs.js");}},{id:"ballerina",name:"Ballerina","import":function _import(){return _context["import"]("../ballerina-6f045f76.cjs.js");}},{id:"bat",name:"Batch File",aliases:["batch"],"import":function _import(){return _context["import"]("../bat-f5ba0872.cjs.js");}},{id:"beancount",name:"Beancount","import":function _import(){return _context["import"]("../beancount-2bbbc8c1.cjs.js");}},{id:"berry",name:"Berry",aliases:["be"],"import":function _import(){return _context["import"]("../berry-af312840.cjs.js");}},{id:"bibtex",name:"BibTeX","import":function _import(){return _context["import"]("../bibtex-5fd34f10.cjs.js");}},{id:"bicep",name:"Bicep","import":function _import(){return _context["import"]("../bicep-5246d818.cjs.js");}},{id:"blade",name:"Blade","import":function _import(){return _context["import"]("../blade-fd536bb5.cjs.js");}},{id:"c",name:"C","import":function _import(){return _context["import"]("../c-37e019c9.cjs.js");}},{id:"cadence",name:"Cadence",aliases:["cdc"],"import":function _import(){return _context["import"]("../cadence-97777a1b.cjs.js");}},{id:"clarity",name:"Clarity","import":function _import(){return _context["import"]("../clarity-6587d016.cjs.js");}},{id:"clojure",name:"Clojure",aliases:["clj"],"import":function _import(){return _context["import"]("../clojure-eff435eb.cjs.js");}},{id:"cmake",name:"CMake","import":function _import(){return _context["import"]("../cmake-ef9020c2.cjs.js");}},{id:"cobol",name:"COBOL","import":function _import(){return _context["import"]("../cobol-17b383d2.cjs.js");}},{id:"codeowners",name:"CODEOWNERS","import":function _import(){return _context["import"]("../codeowners-e245640f.cjs.js");}},{id:"codeql",name:"CodeQL",aliases:["ql"],"import":function _import(){return _context["import"]("../codeql-6ec42332.cjs.js");}},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],"import":function _import(){return _context["import"]("../coffee-1e644abf.cjs.js");}},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],"import":function _import(){return _context["import"]("../common-lisp-166170ac.cjs.js");}},{id:"coq",name:"Coq","import":function _import(){return _context["import"]("../coq-cf4b22a1.cjs.js");}},{id:"cpp",name:"C++",aliases:["c++"],"import":function _import(){return _context["import"]("../cpp-4a7d85d2.cjs.js");}},{id:"crystal",name:"Crystal","import":function _import(){return _context["import"]("../crystal-14ac6a7a.cjs.js");}},{id:"csharp",name:"C#",aliases:["c#","cs"],"import":function _import(){return _context["import"]("../csharp-1d436933.cjs.js");}},{id:"css",name:"CSS","import":function _import(){return _context["import"]("../css-d2ca974d.cjs.js");}},{id:"csv",name:"CSV","import":function _import(){return _context["import"]("../csv-4de81c4f.cjs.js");}},{id:"cue",name:"CUE","import":function _import(){return _context["import"]("../cue-2d6c834f.cjs.js");}},{id:"cypher",name:"Cypher",aliases:["cql"],"import":function _import(){return _context["import"]("../cypher-08811c61.cjs.js");}},{id:"d",name:"D","import":function _import(){return _context["import"]("../d-c9d02fc4.cjs.js");}},{id:"dart",name:"Dart","import":function _import(){return _context["import"]("../dart-c67e4eb1.cjs.js");}},{id:"dax",name:"DAX","import":function _import(){return _context["import"]("../dax-b8740740.cjs.js");}},{id:"desktop",name:"Desktop","import":function _import(){return _context["import"]("../desktop-a8217439.cjs.js");}},{id:"diff",name:"Diff","import":function _import(){return _context["import"]("../diff-3b1ed2f7.cjs.js");}},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],"import":function _import(){return _context["import"]("../docker-5807f81f.cjs.js");}},{id:"dotenv",name:"dotEnv","import":function _import(){return _context["import"]("../dotenv-aa198bda.cjs.js");}},{id:"dream-maker",name:"Dream Maker","import":function _import(){return _context["import"]("../dream-maker-4174de10.cjs.js");}},{id:"edge",name:"Edge","import":function _import(){return _context["import"]("../edge-a5e6fbf8.cjs.js");}},{id:"elixir",name:"Elixir","import":function _import(){return _context["import"]("../elixir-326b4267.cjs.js");}},{id:"elm",name:"Elm","import":function _import(){return _context["import"]("../elm-9666a0ea.cjs.js");}},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],"import":function _import(){return _context["import"]("../emacs-lisp-d9c775dd.cjs.js");}},{id:"erb",name:"ERB","import":function _import(){return _context["import"]("../erb-da176591.cjs.js");}},{id:"erlang",name:"Erlang",aliases:["erl"],"import":function _import(){return _context["import"]("../erlang-a7ddbc2e.cjs.js");}},{id:"fennel",name:"Fennel","import":function _import(){return _context["import"]("../fennel-8fcc9497.cjs.js");}},{id:"fish",name:"Fish","import":function _import(){return _context["import"]("../fish-92e39221.cjs.js");}},{id:"fluent",name:"Fluent",aliases:["ftl"],"import":function _import(){return _context["import"]("../fluent-0af8d775.cjs.js");}},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],"import":function _import(){return _context["import"]("../fortran-fixed-form-03f47e7f.cjs.js");}},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],"import":function _import(){return _context["import"]("../fortran-free-form-0a4f78ab.cjs.js");}},{id:"fsharp",name:"F#",aliases:["f#","fs"],"import":function _import(){return _context["import"]("../fsharp-e47f1ac5.cjs.js");}},{id:"gdresource",name:"GDResource","import":function _import(){return _context["import"]("../gdresource-4a760fae.cjs.js");}},{id:"gdscript",name:"GDScript","import":function _import(){return _context["import"]("../gdscript-e74667f0.cjs.js");}},{id:"gdshader",name:"GDShader","import":function _import(){return _context["import"]("../gdshader-a8dc8334.cjs.js");}},{id:"genie",name:"Genie","import":function _import(){return _context["import"]("../genie-b345f8fd.cjs.js");}},{id:"gherkin",name:"Gherkin","import":function _import(){return _context["import"]("../gherkin-e7d3b8bf.cjs.js");}},{id:"git-commit",name:"Git Commit Message","import":function _import(){return _context["import"]("../git-commit-41b8df9e.cjs.js");}},{id:"git-rebase",name:"Git Rebase Message","import":function _import(){return _context["import"]("../git-rebase-db9d0393.cjs.js");}},{id:"gleam",name:"Gleam","import":function _import(){return _context["import"]("../gleam-17162417.cjs.js");}},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],"import":function _import(){return _context["import"]("../glimmer-js-1d7b2b30.cjs.js");}},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],"import":function _import(){return _context["import"]("../glimmer-ts-ff838ab5.cjs.js");}},{id:"glsl",name:"GLSL","import":function _import(){return _context["import"]("../glsl-97f52501.cjs.js");}},{id:"gnuplot",name:"Gnuplot","import":function _import(){return _context["import"]("../gnuplot-338e26cd.cjs.js");}},{id:"go",name:"Go","import":function _import(){return _context["import"]("../go-9bee484b.cjs.js");}},{id:"graphql",name:"GraphQL",aliases:["gql"],"import":function _import(){return _context["import"]("../graphql-590ff2c8.cjs.js");}},{id:"groovy",name:"Groovy","import":function _import(){return _context["import"]("../groovy-d10d625e.cjs.js");}},{id:"hack",name:"Hack","import":function _import(){return _context["import"]("../hack-df4b1838.cjs.js");}},{id:"haml",name:"Ruby Haml","import":function _import(){return _context["import"]("../haml-fc55d991.cjs.js");}},{id:"handlebars",name:"Handlebars",aliases:["hbs"],"import":function _import(){return _context["import"]("../handlebars-e654b969.cjs.js");}},{id:"haskell",name:"Haskell",aliases:["hs"],"import":function _import(){return _context["import"]("../haskell-2fd26c38.cjs.js");}},{id:"haxe",name:"Haxe","import":function _import(){return _context["import"]("../haxe-b971d379.cjs.js");}},{id:"hcl",name:"HashiCorp HCL","import":function _import(){return _context["import"]("../hcl-78a39e3b.cjs.js");}},{id:"hjson",name:"Hjson","import":function _import(){return _context["import"]("../hjson-e7fa4757.cjs.js");}},{id:"hlsl",name:"HLSL","import":function _import(){return _context["import"]("../hlsl-8dffacde.cjs.js");}},{id:"html",name:"HTML","import":function _import(){return _context["import"]("../html-e9105e52.cjs.js");}},{id:"html-derivative",name:"HTML (Derivative)","import":function _import(){return _context["import"]("../html-derivative-5770e3ee.cjs.js");}},{id:"http",name:"HTTP","import":function _import(){return _context["import"]("../http-cd87b042.cjs.js");}},{id:"hxml",name:"HXML","import":function _import(){return _context["import"]("../hxml-3e0a6d80.cjs.js");}},{id:"hy",name:"Hy","import":function _import(){return _context["import"]("../hy-431f15f8.cjs.js");}},{id:"imba",name:"Imba","import":function _import(){return _context["import"]("../imba-f4b37378.cjs.js");}},{id:"ini",name:"INI",aliases:["properties"],"import":function _import(){return _context["import"]("../ini-ad09f667.cjs.js");}},{id:"java",name:"Java","import":function _import(){return _context["import"]("../java-103ebcb7.cjs.js");}},{id:"javascript",name:"JavaScript",aliases:["js"],"import":function _import(){return _context["import"]("../javascript-1917eae5.cjs.js");}},{id:"jinja",name:"Jinja","import":function _import(){return _context["import"]("../jinja-3e4df6e6.cjs.js");}},{id:"jison",name:"Jison","import":function _import(){return _context["import"]("../jison-02d0c318.cjs.js");}},{id:"json",name:"JSON","import":function _import(){return _context["import"]("../json-1f14b548.cjs.js");}},{id:"json5",name:"JSON5","import":function _import(){return _context["import"]("../json5-6e80c3f0.cjs.js");}},{id:"jsonc",name:"JSON with Comments","import":function _import(){return _context["import"]("../jsonc-27fb4071.cjs.js");}},{id:"jsonl",name:"JSON Lines","import":function _import(){return _context["import"]("../jsonl-fff408ea.cjs.js");}},{id:"jsonnet",name:"Jsonnet","import":function _import(){return _context["import"]("../jsonnet-836c4375.cjs.js");}},{id:"jssm",name:"JSSM",aliases:["fsl"],"import":function _import(){return _context["import"]("../jssm-83ac5235.cjs.js");}},{id:"jsx",name:"JSX","import":function _import(){return _context["import"]("../jsx-32993c01.cjs.js");}},{id:"julia",name:"Julia",aliases:["jl"],"import":function _import(){return _context["import"]("../julia-8a8d3e5e.cjs.js");}},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],"import":function _import(){return _context["import"]("../kotlin-e78c75c3.cjs.js");}},{id:"kusto",name:"Kusto",aliases:["kql"],"import":function _import(){return _context["import"]("../kusto-b1798df9.cjs.js");}},{id:"latex",name:"LaTeX","import":function _import(){return _context["import"]("../latex-8fc6ef8b.cjs.js");}},{id:"lean",name:"Lean 4",aliases:["lean4"],"import":function _import(){return _context["import"]("../lean-da883fd7.cjs.js");}},{id:"less",name:"Less","import":function _import(){return _context["import"]("../less-d6d8f8d3.cjs.js");}},{id:"liquid",name:"Liquid","import":function _import(){return _context["import"]("../liquid-51fa0062.cjs.js");}},{id:"log",name:"Log file","import":function _import(){return _context["import"]("../log-8f1e1fb1.cjs.js");}},{id:"logo",name:"Logo","import":function _import(){return _context["import"]("../logo-03748707.cjs.js");}},{id:"lua",name:"Lua","import":function _import(){return _context["import"]("../lua-371a698b.cjs.js");}},{id:"luau",name:"Luau","import":function _import(){return _context["import"]("../luau-0b166b7a.cjs.js");}},{id:"make",name:"Makefile",aliases:["makefile"],"import":function _import(){return _context["import"]("../make-29615c5d.cjs.js");}},{id:"markdown",name:"Markdown",aliases:["md"],"import":function _import(){return _context["import"]("../markdown-88aff8dc.cjs.js");}},{id:"marko",name:"Marko","import":function _import(){return _context["import"]("../marko-f5133ada.cjs.js");}},{id:"matlab",name:"MATLAB","import":function _import(){return _context["import"]("../matlab-e1d026b3.cjs.js");}},{id:"mdc",name:"MDC","import":function _import(){return _context["import"]("../mdc-27a84b9c.cjs.js");}},{id:"mdx",name:"MDX","import":function _import(){return _context["import"]("../mdx-a859ee84.cjs.js");}},{id:"mermaid",name:"Mermaid",aliases:["mmd"],"import":function _import(){return _context["import"]("../mermaid-76489bb0.cjs.js");}},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],"import":function _import(){return _context["import"]("../mipsasm-535432b4.cjs.js");}},{id:"mojo",name:"Mojo","import":function _import(){return _context["import"]("../mojo-ce257175.cjs.js");}},{id:"move",name:"Move","import":function _import(){return _context["import"]("../move-9d03127a.cjs.js");}},{id:"narrat",name:"Narrat Language",aliases:["nar"],"import":function _import(){return _context["import"]("../narrat-222e74f7.cjs.js");}},{id:"nextflow",name:"Nextflow",aliases:["nf"],"import":function _import(){return _context["import"]("../nextflow-c666e91b.cjs.js");}},{id:"nginx",name:"Nginx","import":function _import(){return _context["import"]("../nginx-5a997e1c.cjs.js");}},{id:"nim",name:"Nim","import":function _import(){return _context["import"]("../nim-09970742.cjs.js");}},{id:"nix",name:"Nix","import":function _import(){return _context["import"]("../nix-74415e09.cjs.js");}},{id:"nushell",name:"nushell",aliases:["nu"],"import":function _import(){return _context["import"]("../nushell-f6109162.cjs.js");}},{id:"objective-c",name:"Objective-C",aliases:["objc"],"import":function _import(){return _context["import"]("../objective-c-d2813e22.cjs.js");}},{id:"objective-cpp",name:"Objective-C++","import":function _import(){return _context["import"]("../objective-cpp-24f71cc1.cjs.js");}},{id:"ocaml",name:"OCaml","import":function _import(){return _context["import"]("../ocaml-a645dc44.cjs.js");}},{id:"pascal",name:"Pascal","import":function _import(){return _context["import"]("../pascal-0e4492b8.cjs.js");}},{id:"perl",name:"Perl","import":function _import(){return _context["import"]("../perl-b65904c7.cjs.js");}},{id:"php",name:"PHP","import":function _import(){return _context["import"]("../php-78cc5bc5.cjs.js");}},{id:"plsql",name:"PL/SQL","import":function _import(){return _context["import"]("../plsql-9c8ee386.cjs.js");}},{id:"po",name:"Gettext PO",aliases:["pot","potx"],"import":function _import(){return _context["import"]("../po-24d97211.cjs.js");}},{id:"postcss",name:"PostCSS","import":function _import(){return _context["import"]("../postcss-c6ce33f2.cjs.js");}},{id:"powerquery",name:"PowerQuery","import":function _import(){return _context["import"]("../powerquery-b3cf2fe4.cjs.js");}},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],"import":function _import(){return _context["import"]("../powershell-0e474c98.cjs.js");}},{id:"prisma",name:"Prisma","import":function _import(){return _context["import"]("../prisma-6c07649f.cjs.js");}},{id:"prolog",name:"Prolog","import":function _import(){return _context["import"]("../prolog-5ca3d32a.cjs.js");}},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],"import":function _import(){return _context["import"]("../proto-936c4285.cjs.js");}},{id:"pug",name:"Pug",aliases:["jade"],"import":function _import(){return _context["import"]("../pug-c28ab4f7.cjs.js");}},{id:"puppet",name:"Puppet","import":function _import(){return _context["import"]("../puppet-0edcb77d.cjs.js");}},{id:"purescript",name:"PureScript","import":function _import(){return _context["import"]("../purescript-83578674.cjs.js");}},{id:"python",name:"Python",aliases:["py"],"import":function _import(){return _context["import"]("../python-cd582381.cjs.js");}},{id:"qml",name:"QML","import":function _import(){return _context["import"]("../qml-00d577fb.cjs.js");}},{id:"qmldir",name:"QML Directory","import":function _import(){return _context["import"]("../qmldir-de94058a.cjs.js");}},{id:"qss",name:"Qt Style Sheets","import":function _import(){return _context["import"]("../qss-b5aebc0c.cjs.js");}},{id:"r",name:"R","import":function _import(){return _context["import"]("../r-c4984884.cjs.js");}},{id:"racket",name:"Racket","import":function _import(){return _context["import"]("../racket-372dae17.cjs.js");}},{id:"raku",name:"Raku",aliases:["perl6"],"import":function _import(){return _context["import"]("../raku-28dac2ac.cjs.js");}},{id:"razor",name:"ASP.NET Razor","import":function _import(){return _context["import"]("../razor-f4bb50e8.cjs.js");}},{id:"reg",name:"Windows Registry Script","import":function _import(){return _context["import"]("../reg-c1ad966b.cjs.js");}},{id:"regexp",name:"RegExp",aliases:["regex"],"import":function _import(){return _context["import"]("../regexp-7d16f8f6.cjs.js");}},{id:"rel",name:"Rel","import":function _import(){return _context["import"]("../rel-094ef2ef.cjs.js");}},{id:"riscv",name:"RISC-V","import":function _import(){return _context["import"]("../riscv-fb8fefd5.cjs.js");}},{id:"rst",name:"reStructuredText","import":function _import(){return _context["import"]("../rst-7d1dcbeb.cjs.js");}},{id:"ruby",name:"Ruby",aliases:["rb"],"import":function _import(){return _context["import"]("../ruby-d81ebad6.cjs.js");}},{id:"rust",name:"Rust",aliases:["rs"],"import":function _import(){return _context["import"]("../rust-77f77dba.cjs.js");}},{id:"sas",name:"SAS","import":function _import(){return _context["import"]("../sas-a14318c4.cjs.js");}},{id:"sass",name:"Sass","import":function _import(){return _context["import"]("../sass-4bfa8a08.cjs.js");}},{id:"scala",name:"Scala","import":function _import(){return _context["import"]("../scala-1658f844.cjs.js");}},{id:"scheme",name:"Scheme","import":function _import(){return _context["import"]("../scheme-d005bc51.cjs.js");}},{id:"scss",name:"SCSS","import":function _import(){return _context["import"]("../scss-364d5c19.cjs.js");}},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],"import":function _import(){return _context["import"]("../shaderlab-ea1267a9.cjs.js");}},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],"import":function _import(){return _context["import"]("../shellscript-f4aa09bf.cjs.js");}},{id:"shellsession",name:"Shell Session",aliases:["console"],"import":function _import(){return _context["import"]("../shellsession-2d7b9cec.cjs.js");}},{id:"smalltalk",name:"Smalltalk","import":function _import(){return _context["import"]("../smalltalk-43107eda.cjs.js");}},{id:"solidity",name:"Solidity","import":function _import(){return _context["import"]("../solidity-84a42506.cjs.js");}},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],"import":function _import(){return _context["import"]("../soy-2da041dd.cjs.js");}},{id:"sparql",name:"SPARQL","import":function _import(){return _context["import"]("../sparql-ebe1ddf3.cjs.js");}},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],"import":function _import(){return _context["import"]("../splunk-fc51f2e0.cjs.js");}},{id:"sql",name:"SQL","import":function _import(){return _context["import"]("../sql-e6e7243e.cjs.js");}},{id:"ssh-config",name:"SSH Config","import":function _import(){return _context["import"]("../ssh-config-2c008f51.cjs.js");}},{id:"stata",name:"Stata","import":function _import(){return _context["import"]("../stata-78afb97b.cjs.js");}},{id:"stylus",name:"Stylus",aliases:["styl"],"import":function _import(){return _context["import"]("../stylus-5554b914.cjs.js");}},{id:"svelte",name:"Svelte","import":function _import(){return _context["import"]("../svelte-8fb85d06.cjs.js");}},{id:"swift",name:"Swift","import":function _import(){return _context["import"]("../swift-dac6ddb9.cjs.js");}},{id:"system-verilog",name:"SystemVerilog","import":function _import(){return _context["import"]("../system-verilog-7d2d7268.cjs.js");}},{id:"systemd",name:"Systemd Units","import":function _import(){return _context["import"]("../systemd-31f846dc.cjs.js");}},{id:"tasl",name:"Tasl","import":function _import(){return _context["import"]("../tasl-dd3832d4.cjs.js");}},{id:"tcl",name:"Tcl","import":function _import(){return _context["import"]("../tcl-24a48a31.cjs.js");}},{id:"templ",name:"Templ","import":function _import(){return _context["import"]("../templ-6a6a6d7d.cjs.js");}},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],"import":function _import(){return _context["import"]("../terraform-078a2082.cjs.js");}},{id:"tex",name:"TeX","import":function _import(){return _context["import"]("../tex-b259605b.cjs.js");}},{id:"toml",name:"TOML","import":function _import(){return _context["import"]("../toml-2ef20d80.cjs.js");}},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],"import":function _import(){return _context["import"]("../ts-tags-af8e1b26.cjs.js");}},{id:"tsv",name:"TSV","import":function _import(){return _context["import"]("../tsv-b349f4f0.cjs.js");}},{id:"tsx",name:"TSX","import":function _import(){return _context["import"]("../tsx-f1319b4c.cjs.js");}},{id:"turtle",name:"Turtle","import":function _import(){return _context["import"]("../turtle-302b3fe1.cjs.js");}},{id:"twig",name:"Twig","import":function _import(){return _context["import"]("../twig-2431875e.cjs.js");}},{id:"typescript",name:"TypeScript",aliases:["ts"],"import":function _import(){return _context["import"]("../typescript-9f93eb5f.cjs.js");}},{id:"typespec",name:"TypeSpec",aliases:["tsp"],"import":function _import(){return _context["import"]("../typespec-a81d15f9.cjs.js");}},{id:"typst",name:"Typst",aliases:["typ"],"import":function _import(){return _context["import"]("../typst-c0848aef.cjs.js");}},{id:"v",name:"V","import":function _import(){return _context["import"]("../v-305dc69d.cjs.js");}},{id:"vala",name:"Vala","import":function _import(){return _context["import"]("../vala-d72198fe.cjs.js");}},{id:"vb",name:"Visual Basic",aliases:["cmd"],"import":function _import(){return _context["import"]("../vb-22ba91f2.cjs.js");}},{id:"verilog",name:"Verilog","import":function _import(){return _context["import"]("../verilog-043463d1.cjs.js");}},{id:"vhdl",name:"VHDL","import":function _import(){return _context["import"]("../vhdl-67213687.cjs.js");}},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],"import":function _import(){return _context["import"]("../viml-5c38df6b.cjs.js");}},{id:"vue",name:"Vue","import":function _import(){return _context["import"]("../vue-1494cdce.cjs.js");}},{id:"vue-html",name:"Vue HTML","import":function _import(){return _context["import"]("../vue-html-36dd3960.cjs.js");}},{id:"vyper",name:"Vyper",aliases:["vy"],"import":function _import(){return _context["import"]("../vyper-5c49b1e6.cjs.js");}},{id:"wasm",name:"WebAssembly","import":function _import(){return _context["import"]("../wasm-8071bff6.cjs.js");}},{id:"wenyan",name:"Wenyan",aliases:["文言"],"import":function _import(){return _context["import"]("../wenyan-e2731fa1.cjs.js");}},{id:"wgsl",name:"WGSL","import":function _import(){return _context["import"]("../wgsl-239d9220.cjs.js");}},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],"import":function _import(){return _context["import"]("../wikitext-b9a7e67b.cjs.js");}},{id:"wolfram",name:"Wolfram",aliases:["wl"],"import":function _import(){return _context["import"]("../wolfram-52fe5a3c.cjs.js");}},{id:"xml",name:"XML","import":function _import(){return _context["import"]("../xml-667b435c.cjs.js");}},{id:"xsl",name:"XSL","import":function _import(){return _context["import"]("../xsl-6a5865d1.cjs.js");}},{id:"yaml",name:"YAML",aliases:["yml"],"import":function _import(){return _context["import"]("../yaml-bab9f143.cjs.js");}},{id:"zenscript",name:"ZenScript","import":function _import(){return _context["import"]("../zenscript-ba25033d.cjs.js");}},{id:"zig",name:"Zig","import":function _import(){return _context["import"]("../zig-97031b27.cjs.js");}}];u=_objectSpread(_objectSpread({},Object.fromEntries(c.map(function(t){return[t.id,t["import"]];}))),Object.fromEntries(c.flatMap(function(t){var _t$aliases;return((_t$aliases=t.aliases)===null||_t$aliases===void 0?void 0:_t$aliases.map(function(e){return[e,t["import"]];}))||[];})));m=[{id:"andromeeda",displayName:"Andromeeda",type:"dark","import":function _import(){return _context["import"]("../andromeeda-e75bca18.cjs.js");}},{id:"aurora-x",displayName:"Aurora X",type:"dark","import":function _import(){return _context["import"]("../aurora-x-38d2b9f7.cjs.js");}},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark","import":function _import(){return _context["import"]("../ayu-dark-67b69907.cjs.js");}},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark","import":function _import(){return _context["import"]("../catppuccin-frappe-eb77e95d.cjs.js");}},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light","import":function _import(){return _context["import"]("../catppuccin-latte-471f76fc.cjs.js");}},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark","import":function _import(){return _context["import"]("../catppuccin-macchiato-7ac78e7e.cjs.js");}},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark","import":function _import(){return _context["import"]("../catppuccin-mocha-3b00f8d6.cjs.js");}},{id:"dark-plus",displayName:"Dark Plus",type:"dark","import":function _import(){return _context["import"]("../dark-plus-06e38001.cjs.js");}},{id:"dracula",displayName:"Dracula Theme",type:"dark","import":function _import(){return _context["import"]("../dracula-194d4cbb.cjs.js");}},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark","import":function _import(){return _context["import"]("../dracula-soft-72e9ff7e.cjs.js");}},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark","import":function _import(){return _context["import"]("../everforest-dark-c1192a3d.cjs.js");}},{id:"everforest-light",displayName:"Everforest Light",type:"light","import":function _import(){return _context["import"]("../everforest-light-479f9dab.cjs.js");}},{id:"github-dark",displayName:"GitHub Dark",type:"dark","import":function _import(){return _context["import"]("../github-dark-f22dbc3f.cjs.js");}},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark","import":function _import(){return _context["import"]("../github-dark-default-450c7c01.cjs.js");}},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark","import":function _import(){return _context["import"]("../github-dark-dimmed-ef1406bd.cjs.js");}},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark","import":function _import(){return _context["import"]("../github-dark-high-contrast-60f6edfa.cjs.js");}},{id:"github-light",displayName:"GitHub Light",type:"light","import":function _import(){return _context["import"]("../github-light-9fcd2de8.cjs.js");}},{id:"github-light-default",displayName:"GitHub Light Default",type:"light","import":function _import(){return _context["import"]("../github-light-default-cf60a983.cjs.js");}},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light","import":function _import(){return _context["import"]("../github-light-high-contrast-ab424680.cjs.js");}},{id:"houston",displayName:"Houston",type:"dark","import":function _import(){return _context["import"]("../houston-c5fd415a.cjs.js");}},{id:"laserwave",displayName:"LaserWave",type:"dark","import":function _import(){return _context["import"]("../laserwave-00235336.cjs.js");}},{id:"light-plus",displayName:"Light Plus",type:"light","import":function _import(){return _context["import"]("../light-plus-4a1c9bf1.cjs.js");}},{id:"material-theme",displayName:"Material Theme",type:"dark","import":function _import(){return _context["import"]("../material-theme-6bd1a4ce.cjs.js");}},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark","import":function _import(){return _context["import"]("../material-theme-darker-ad11633a.cjs.js");}},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light","import":function _import(){return _context["import"]("../material-theme-lighter-d07fe9fc.cjs.js");}},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark","import":function _import(){return _context["import"]("../material-theme-ocean-6d08ece3.cjs.js");}},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark","import":function _import(){return _context["import"]("../material-theme-palenight-44924eac.cjs.js");}},{id:"min-dark",displayName:"Min Dark",type:"dark","import":function _import(){return _context["import"]("../min-dark-b1451b85.cjs.js");}},{id:"min-light",displayName:"Min Light",type:"light","import":function _import(){return _context["import"]("../min-light-415eaf98.cjs.js");}},{id:"monokai",displayName:"Monokai",type:"dark","import":function _import(){return _context["import"]("../monokai-95f92c88.cjs.js");}},{id:"night-owl",displayName:"Night Owl",type:"dark","import":function _import(){return _context["import"]("../night-owl-47fab5d4.cjs.js");}},{id:"nord",displayName:"Nord",type:"dark","import":function _import(){return _context["import"]("../nord-da5137c0.cjs.js");}},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark","import":function _import(){return _context["import"]("../one-dark-pro-9477257e.cjs.js");}},{id:"one-light",displayName:"One Light",type:"light","import":function _import(){return _context["import"]("../one-light-a7b00541.cjs.js");}},{id:"plastic",displayName:"Plastic",type:"dark","import":function _import(){return _context["import"]("../plastic-bf752d9d.cjs.js");}},{id:"poimandres",displayName:"Poimandres",type:"dark","import":function _import(){return _context["import"]("../poimandres-14854837.cjs.js");}},{id:"red",displayName:"Red",type:"dark","import":function _import(){return _context["import"]("../red-615dd95a.cjs.js");}},{id:"rose-pine",displayName:"Rosé Pine",type:"dark","import":function _import(){return _context["import"]("../rose-pine-107391a9.cjs.js");}},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light","import":function _import(){return _context["import"]("../rose-pine-dawn-05b4d628.cjs.js");}},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark","import":function _import(){return _context["import"]("../rose-pine-moon-bf66f2ee.cjs.js");}},{id:"slack-dark",displayName:"Slack Dark",type:"dark","import":function _import(){return _context["import"]("../slack-dark-9441e826.cjs.js");}},{id:"slack-ochin",displayName:"Slack Ochin",type:"light","import":function _import(){return _context["import"]("../slack-ochin-6028b180.cjs.js");}},{id:"snazzy-light",displayName:"Snazzy Light",type:"light","import":function _import(){return _context["import"]("../snazzy-light-b71cee57.cjs.js");}},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark","import":function _import(){return _context["import"]("../solarized-dark-054f28e7.cjs.js");}},{id:"solarized-light",displayName:"Solarized Light",type:"light","import":function _import(){return _context["import"]("../solarized-light-6e4ad359.cjs.js");}},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark","import":function _import(){return _context["import"]("../synthwave-84-d04f7cff.cjs.js");}},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark","import":function _import(){return _context["import"]("../tokyo-night-041a0b32.cjs.js");}},{id:"vesper",displayName:"Vesper",type:"dark","import":function _import(){return _context["import"]("../vesper-e992e238.cjs.js");}},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark","import":function _import(){return _context["import"]("../vitesse-black-5bf0580d.cjs.js");}},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark","import":function _import(){return _context["import"]("../vitesse-dark-05d3e2a3.cjs.js");}},{id:"vitesse-light",displayName:"Vitesse Light",type:"light","import":function _import(){return _context["import"]("../vitesse-light-357ec0ca.cjs.js");}}];p=Object.fromEntries(m.map(function(t){return[t.id,t["import"]];}));h=/*#__PURE__*/function(_Error){function h(t){var _this;_classCallCheck(this,h);_this=_callSuper(this,h,[t]),_this.name="ShikiError";return _this;}_inherits(h,_Error);return _createClass(h);}(/*#__PURE__*/_wrapNativeSuper(Error));d=/*#__PURE__*/function(_Error2){function d(t){var _this2;_classCallCheck(this,d);_this2=_callSuper(this,d,[t]),_this2.name="ShikiError";return _this2;}_inherits(d,_Error2);return _createClass(d);}(/*#__PURE__*/_wrapNativeSuper(Error));g=function g(t,e){return t+(e-t%e)%e;};w=null;v=/*#__PURE__*/function(){function v(t){_classCallCheck(this,v);_defineProperty(this,"utf16Length",void 0);_defineProperty(this,"utf8Length",void 0);_defineProperty(this,"utf16Value",void 0);_defineProperty(this,"utf8Value",void 0);_defineProperty(this,"utf16OffsetToUtf8",void 0);_defineProperty(this,"utf8OffsetToUtf16",void 0);var e=t.length,n=v._utf8ByteLength(t),i=n!==e,r=i?new Uint32Array(e+1):null;i&&(r[e]=n);var o=i?new Uint32Array(n+1):null;i&&(o[n]=e);var s=new Uint8Array(n);var l=0;for(var _n2=0;_n2<e;_n2++){var _a=t.charCodeAt(_n2);var _c=_a,_u=!1;if(_a>=55296&&_a<=56319&&_n2+1<e){var _e2=t.charCodeAt(_n2+1);_e2>=56320&&_e2<=57343&&(_c=65536+(_a-55296<<10)|_e2-56320,_u=!0);}i&&(r[_n2]=l,_u&&(r[_n2+1]=l),_c<=127?o[l+0]=_n2:_c<=2047?(o[l+0]=_n2,o[l+1]=_n2):_c<=65535?(o[l+0]=_n2,o[l+1]=_n2,o[l+2]=_n2):(o[l+0]=_n2,o[l+1]=_n2,o[l+2]=_n2,o[l+3]=_n2)),_c<=127?s[l++]=_c:_c<=2047?(s[l++]=192|(1984&_c)>>>6,s[l++]=128|(63&_c)>>>0):_c<=65535?(s[l++]=224|(61440&_c)>>>12,s[l++]=128|(4032&_c)>>>6,s[l++]=128|(63&_c)>>>0):(s[l++]=240|(1835008&_c)>>>18,s[l++]=128|(258048&_c)>>>12,s[l++]=128|(4032&_c)>>>6,s[l++]=128|(63&_c)>>>0),_u&&_n2++;}this.utf16Length=e,this.utf8Length=n,this.utf16Value=t,this.utf8Value=s,this.utf16OffsetToUtf8=r,this.utf8OffsetToUtf16=o;}return _createClass(v,[{key:"createString",value:function createString(t){var e=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,e),e;}}],[{key:"_utf8ByteLength",value:function _utf8ByteLength(t){var e=0;for(var _n3=0,_i=t.length;_n3<_i;_n3++){var _r=t.charCodeAt(_n3);var _o=_r,_s=!1;if(_r>=55296&&_r<=56319&&_n3+1<_i){var _e3=t.charCodeAt(_n3+1);_e3>=56320&&_e3<=57343&&(_o=65536+(_r-55296<<10)|_e3-56320,_s=!0);}e+=_o<=127?1:_o<=2047?2:_o<=65535?3:4,_s&&_n3++;}return e;}}]);}();k=/*#__PURE__*/function(){function k(t){_classCallCheck(this,k);_defineProperty(this,"id",++k.LAST_ID);_defineProperty(this,"_onigBinding",void 0);_defineProperty(this,"content",void 0);_defineProperty(this,"utf16Length",void 0);_defineProperty(this,"utf8Length",void 0);_defineProperty(this,"utf16OffsetToUtf8",void 0);_defineProperty(this,"utf8OffsetToUtf16",void 0);_defineProperty(this,"ptr",void 0);if(!w)throw new d("Must invoke loadWasm first.");this._onigBinding=w,this.content=t;var e=new v(t);this.utf16Length=e.utf16Length,this.utf8Length=e.utf8Length,this.utf16OffsetToUtf8=e.utf16OffsetToUtf8,this.utf8OffsetToUtf16=e.utf8OffsetToUtf16,this.utf8Length<1e4&&!k._sharedPtrInUse?(k._sharedPtr||(k._sharedPtr=w.omalloc(1e4)),k._sharedPtrInUse=!0,w.HEAPU8.set(e.utf8Value,k._sharedPtr),this.ptr=k._sharedPtr):this.ptr=e.createString(w);}return _createClass(k,[{key:"convertUtf8OffsetToUtf16",value:function convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t;}},{key:"convertUtf16OffsetToUtf8",value:function convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t;}},{key:"dispose",value:function dispose(){this.ptr===k._sharedPtr?k._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr);}}]);}();_defineProperty(k,"LAST_ID",0);_defineProperty(k,"_sharedPtr",0);_defineProperty(k,"_sharedPtrInUse",!1);S=/*#__PURE__*/function(){function S(t){_classCallCheck(this,S);_defineProperty(this,"_onigBinding",void 0);_defineProperty(this,"_ptr",void 0);if(!w)throw new d("Must invoke loadWasm first.");var e=[],n=[];for(var _i2=0,_r2=t.length;_i2<_r2;_i2++){var _r3=new v(t[_i2]);e[_i2]=_r3.createString(w),n[_i2]=_r3.utf8Length;}var i=w.omalloc(4*t.length);w.HEAPU32.set(e,i/4);var r=w.omalloc(4*t.length);w.HEAPU32.set(n,r/4);var o=w.createOnigScanner(i,r,t.length);for(var _n4=0,_i3=t.length;_n4<_i3;_n4++)w.ofree(e[_n4]);w.ofree(r),w.ofree(i),0===o&&function(t){throw new d(t.UTF8ToString(t.getLastOnigError()));}(w),this._onigBinding=w,this._ptr=o;}return _createClass(S,[{key:"dispose",value:function dispose(){this._onigBinding.freeOnigScanner(this._ptr);}},{key:"findNextMatchSync",value:function findNextMatchSync(t,e,n){var i=0;if("number"==typeof n&&(i=n),"string"==typeof t){t=new k(t);var _n5=this._findNextMatchSync(t,e,!1,i);return t.dispose(),_n5;}return this._findNextMatchSync(t,e,!1,i);}},{key:"_findNextMatchSync",value:function _findNextMatchSync(t,e,n,i){var r=this._onigBinding,o=r.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(e),i);if(0===o)return null;var s=r.HEAPU32;var l=o/4;var a=s[l++],c=s[l++],u=[];for(var _e4=0;_e4<c;_e4++){var _n6=t.convertUtf8OffsetToUtf16(s[l++]),_i4=t.convertUtf8OffsetToUtf16(s[l++]);u[_e4]={start:_n6,end:_i4,length:_i4-_n6};}return{index:a,captureIndices:u};}}]);}();T=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;P=/*#__PURE__*/function(){function P(){_classCallCheck(this,P);}return _createClass(P,null,[{key:"hasCaptures",value:function hasCaptures(t){return null!==t&&(T.lastIndex=0,T.test(t));}},{key:"replaceCaptures",value:function replaceCaptures(t,e,n){return t.replace(T,function(t,i,r,o){var s=n[parseInt(i||r,10)];if(!s)return t;{var _t2=e.substring(s.start,s.end);for(;"."===_t2[0];)_t2=_t2.substring(1);switch(o){case"downcase":return _t2.toLowerCase();case"upcase":return _t2.toUpperCase();default:return _t2;}}});}}]);}();$=/*#__PURE__*/function(){function $(t){_classCallCheck(this,$);this.fn=t,this.cache=new Map();}return _createClass($,[{key:"get",value:function get(t){if(this.cache.has(t))return this.cache.get(t);var e=this.fn(t);return this.cache.set(t,e),e;}}]);}();B=/*#__PURE__*/function(){function B(t,e,n){var _this3=this;_classCallCheck(this,B);this._colorMap=t,this._defaults=e,this._root=n,this._cachedMatchRoot=new $(function(t){return _this3._root.match(t);});}return _createClass(B,[{key:"getColorMap",value:function getColorMap(){return this._colorMap.getColorMap();}},{key:"getDefaults",value:function getDefaults(){return this._defaults;}},{key:"match",value:function match(t){if(null===t)return this._defaults;var e=t.scopeName,n=this._cachedMatchRoot.get(e).find(function(e){return function(t,e){if(0===e.length)return!0;for(var _n11=0;_n11<e.length;_n11++){var i=e[_n11],_r4=!1;if(">"===i){if(_n11===e.length-1)return!1;i=e[++_n11],_r4=!0;}for(;t&&!G(t.scopeName,i);){if(_r4)return!1;t=t.parent;}if(!t)return!1;t=t.parent;}return!0;}(t.parent,e.parentScopes);});return n?new q(n.fontStyle,n.foreground,n.background):null;}}],[{key:"createFromRawTheme",value:function createFromRawTheme(t,e){return this.createFromParsedTheme(function(t){if(!t)return[];if(!t.settings||!Array.isArray(t.settings))return[];var e=t.settings,n=[],i=0;for(var _t3=0,_r5=e.length;_t3<_r5;_t3++){var _r6=void 0,_o2=e[_t3];if(!_o2.settings)continue;if("string"==typeof _o2.scope){var _t4=_o2.scope;_t4=_t4.replace(/^[,]+/,""),_t4=_t4.replace(/[,]+$/,""),_r6=_t4.split(",");}else _r6=Array.isArray(_o2.scope)?_o2.scope:[""];var _s2=-1;if("string"==typeof _o2.settings.fontStyle){_s2=0;var _t5=_o2.settings.fontStyle.split(" ");for(var _e5=0,_n12=_t5.length;_e5<_n12;_e5++){switch(_t5[_e5]){case"italic":_s2|=1;break;case"bold":_s2|=2;break;case"underline":_s2|=4;break;case"strikethrough":_s2|=8;}}}var _l=null;"string"==typeof _o2.settings.foreground&&E(_o2.settings.foreground)&&(_l=_o2.settings.foreground);var _a2=null;"string"==typeof _o2.settings.background&&E(_o2.settings.background)&&(_a2=_o2.settings.background);for(var _e6=0,_o3=_r6.length;_e6<_o3;_e6++){var _o4=_r6[_e6].trim().split(" "),_c2=_o4[_o4.length-1],_u2=null;_o4.length>1&&(_u2=_o4.slice(0,_o4.length-1),_u2.reverse()),n[i++]=new _(_c2,_u2,_t3,_s2,_l,_a2);}}return n;}(t),e);}},{key:"createFromParsedTheme",value:function createFromParsedTheme(t,e){return function(t,e){t.sort(function(t,e){var n=N(t.scope,e.scope);return 0!==n?n:(n=D(t.parentScopes,e.parentScopes),0!==n?n:t.index-e.index);});var n=0,i="#000000",r="#ffffff";for(;t.length>=1&&""===t[0].scope;){var _e7=t.shift();-1!==_e7.fontStyle&&(n=_e7.fontStyle),null!==_e7.foreground&&(i=_e7.foreground),null!==_e7.background&&(r=_e7.background);}var o=new F(e),s=new q(n,o.getId(i),o.getId(r)),l=new W(new H(0,null,-1,0,0),[]);for(var _e8=0,_n13=t.length;_e8<_n13;_e8++){var _n14=t[_e8];l.insert(0,_n14.scope,_n14.parentScopes,_n14.fontStyle,o.getId(_n14.foreground),o.getId(_n14.background));}return new B(o,s,l);}(t,e);}}]);}();I=/*#__PURE__*/function(){function t(_t6,e){_classCallCheck(this,t);this.parent=_t6,this.scopeName=e;}return _createClass(t,[{key:"push",value:function push(e){return new t(this,e);}},{key:"getSegments",value:function getSegments(){var _t7=this;var e=[];for(;_t7;)e.push(_t7.scopeName),_t7=_t7.parent;return e.reverse(),e;}},{key:"toString",value:function toString(){return this.getSegments().join(" ");}},{key:"extends",value:function _extends(_t8){return this===_t8||null!==this.parent&&this.parent["extends"](_t8);}},{key:"getExtensionIfDefined",value:function getExtensionIfDefined(_t9){var e=[];var n=this;for(;n&&n!==_t9;)e.push(n.scopeName),n=n.parent;return n===_t9?e.reverse():void 0;}}],[{key:"push",value:function push(e,n){var _iterator=_createForOfIteratorHelper(n),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var i=_step.value;e=new t(e,i);}}catch(err){_iterator.e(err);}finally{_iterator.f();}return e;}},{key:"from",value:function from(){var n=null;for(var i=0;i<arguments.length;i++)n=new t(n,i<0||arguments.length<=i?undefined:arguments[i]);return n;}}]);}();q=/*#__PURE__*/_createClass(function q(t,e,n){_classCallCheck(this,q);this.fontStyle=t,this.foregroundId=e,this.backgroundId=n;});_=/*#__PURE__*/_createClass(function _(t,e,n,i,r,o){_classCallCheck(this,_);this.scope=t,this.parentScopes=e,this.index=n,this.fontStyle=i,this.foreground=r,this.background=o;});z=function(t){return 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;}(z||{});F=/*#__PURE__*/function(){function F(t){_classCallCheck(this,F);if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(t)){this._isFrozen=!0;for(var _e9=0,_n15=t.length;_e9<_n15;_e9++)this._color2id[t[_e9]]=_e9,this._id2color[_e9]=t[_e9];}else this._isFrozen=!1;}return _createClass(F,[{key:"getId",value:function getId(t){if(null===t)return 0;t=t.toUpperCase();var e=this._color2id[t];if(e)return e;if(this._isFrozen)throw new Error("Missing color in color map - ".concat(t));return e=++this._lastColorId,this._color2id[t]=e,this._id2color[e]=t,e;}},{key:"getColorMap",value:function getColorMap(){return this._id2color.slice(0);}}]);}();U=Object.freeze([]);H=/*#__PURE__*/function(){function t(_t10,e,n,i,r){_classCallCheck(this,t);this.scopeDepth=_t10,this.parentScopes=e||U,this.fontStyle=n,this.foreground=i,this.background=r;}return _createClass(t,[{key:"clone",value:function clone(){return new t(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background);}},{key:"acceptOverwrite",value:function acceptOverwrite(_t12,e,n,i){this.scopeDepth>_t12?console.log("how did this happen?"):this.scopeDepth=_t12,-1!==e&&(this.fontStyle=e),0!==n&&(this.foreground=n),0!==i&&(this.background=i);}}],[{key:"cloneArr",value:function cloneArr(_t11){var e=[];for(var _n16=0,i=_t11.length;_n16<i;_n16++)e[_n16]=_t11[_n16].clone();return e;}}]);}();W=/*#__PURE__*/function(){function t(_t13){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};_classCallCheck(this,t);this._mainRule=_t13,this._children=n,this._rulesWithParentScopes=e;}return _createClass(t,[{key:"match",value:function match(e){if(""!==e){var _t15,_n17,i=e.indexOf(".");if(-1===i?(_t15=e,_n17=""):(_t15=e.substring(0,i),_n17=e.substring(i+1)),this._children.hasOwnProperty(_t15))return this._children[_t15].match(_n17);}var n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(t._cmpBySpecificity),n;}},{key:"insert",value:function insert(e,n,i,r,o,s){if(""===n)return void this._doInsertHere(e,i,r,o,s);var l,a,c,u=n.indexOf(".");-1===u?(l=n,a=""):(l=n.substring(0,u),a=n.substring(u+1)),this._children.hasOwnProperty(l)?c=this._children[l]:(c=new t(this._mainRule.clone(),H.cloneArr(this._rulesWithParentScopes)),this._children[l]=c),c.insert(e+1,a,i,r,o,s);}},{key:"_doInsertHere",value:function _doInsertHere(_t16,e,n,i,r){if(null!==e){for(var _o5=0,_s3=this._rulesWithParentScopes.length;_o5<_s3;_o5++){var _s4=this._rulesWithParentScopes[_o5];if(0===D(_s4.parentScopes,e))return void _s4.acceptOverwrite(_t16,n,i,r);}-1===n&&(n=this._mainRule.fontStyle),0===i&&(i=this._mainRule.foreground),0===r&&(r=this._mainRule.background),this._rulesWithParentScopes.push(new H(_t16,e,n,i,r));}else this._mainRule.acceptOverwrite(_t16,n,i,r);}}],[{key:"_cmpBySpecificity",value:function _cmpBySpecificity(_t14,e){if(_t14.scopeDepth!==e.scopeDepth)return e.scopeDepth-_t14.scopeDepth;var n=0,i=0;for(;">"===_t14.parentScopes[n]&&n++,">"===e.parentScopes[i]&&i++,!(n>=_t14.parentScopes.length||i>=e.parentScopes.length);){var _r7=e.parentScopes[i].length-_t14.parentScopes[n].length;if(0!==_r7)return _r7;n++,i++;}return e.parentScopes.length-_t14.parentScopes.length;}}]);}();V=/*#__PURE__*/function(){function t(){_classCallCheck(this,t);}return _createClass(t,null,[{key:"toBinaryStr",value:function toBinaryStr(_t17){return _t17.toString(2).padStart(32,"0");}},{key:"print",value:function print(e){var n=t.getLanguageId(e),i=t.getTokenType(e),r=t.getFontStyle(e),o=t.getForeground(e),s=t.getBackground(e);console.log({languageId:n,tokenType:i,fontStyle:r,foreground:o,background:s});}},{key:"getLanguageId",value:function getLanguageId(_t18){return(255&_t18)>>>0;}},{key:"getTokenType",value:function getTokenType(_t19){return(768&_t19)>>>8;}},{key:"containsBalancedBrackets",value:function containsBalancedBrackets(_t20){return!!(1024&_t20);}},{key:"getFontStyle",value:function getFontStyle(_t21){return(30720&_t21)>>>11;}},{key:"getForeground",value:function getForeground(_t22){return(16744448&_t22)>>>15;}},{key:"getBackground",value:function getBackground(_t23){return(4278190080&_t23)>>>24;}},{key:"set",value:function set(e,n,i,r,o,s,l){var a=t.getLanguageId(e),c=t.getTokenType(e),u=t.containsBalancedBrackets(e)?1:0,m=t.getFontStyle(e),p=t.getForeground(e),h=t.getBackground(e);return 0!==n&&(a=n),8!==i&&(c=i),null!==r&&(u=r?1:0),-1!==o&&(m=o),0!==s&&(p=s),0!==l&&(h=l),(a|c<<8|u<<10|m<<11|p<<15|h<<24)>>>0;}}]);}();K=/*#__PURE__*/function(){function K(t){_classCallCheck(this,K);this.scopeName=t;}return _createClass(K,[{key:"toKey",value:function toKey(){return this.scopeName;}}]);}();Q=/*#__PURE__*/function(){function Q(t,e){_classCallCheck(this,Q);this.scopeName=t,this.ruleName=e;}return _createClass(Q,[{key:"toKey",value:function toKey(){return"".concat(this.scopeName,"#").concat(this.ruleName);}}]);}();Z=/*#__PURE__*/function(){function Z(){_classCallCheck(this,Z);this._references=[],this._seenReferenceKeys=new Set(),this.visitedRule=new Set();}return _createClass(Z,[{key:"references",get:function get(){return this._references;}},{key:"add",value:function add(t){var e=t.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(t));}}]);}();tt=/*#__PURE__*/function(){function tt(t,e){_classCallCheck(this,tt);this.repo=t,this.initialScopeName=e,this.seenFullScopeRequests=new Set(),this.seenPartialScopeRequests=new Set(),this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new K(this.initialScopeName)];}return _createClass(tt,[{key:"processQueue",value:function processQueue(){var t=this.Q;this.Q=[];var e=new Z();var _iterator2=_createForOfIteratorHelper(t),_step2;try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){var _n18=_step2.value;et(_n18,this.initialScopeName,this.repo,e);}}catch(err){_iterator2.e(err);}finally{_iterator2.f();}var _iterator3=_createForOfIteratorHelper(e.references),_step3;try{for(_iterator3.s();!(_step3=_iterator3.n()).done;){var _t28=_step3.value;if(_t28 instanceof K){if(this.seenFullScopeRequests.has(_t28.scopeName))continue;this.seenFullScopeRequests.add(_t28.scopeName),this.Q.push(_t28);}else{if(this.seenFullScopeRequests.has(_t28.scopeName))continue;if(this.seenPartialScopeRequests.has(_t28.toKey()))continue;this.seenPartialScopeRequests.add(_t28.toKey()),this.Q.push(_t28);}}}catch(err){_iterator3.e(err);}finally{_iterator3.f();}}}]);}();ot=/*#__PURE__*/_createClass(function ot(){_classCallCheck(this,ot);this.kind=0;});st=/*#__PURE__*/_createClass(function st(){_classCallCheck(this,st);this.kind=1;});lt=/*#__PURE__*/_createClass(function lt(t){_classCallCheck(this,lt);this.ruleName=t,this.kind=2;});at=/*#__PURE__*/_createClass(function at(t){_classCallCheck(this,at);this.scopeName=t,this.kind=3;});ct=/*#__PURE__*/_createClass(function ct(t,e){_classCallCheck(this,ct);this.scopeName=t,this.ruleName=e,this.kind=4;});mt=/\\(\d+)/;pt=/\\(\d+)/g;ht=-1;dt=-2;ft=/*#__PURE__*/function(){function ft(t,e,n,i){_classCallCheck(this,ft);this.$location=t,this.id=e,this._name=n||null,this._nameIsCapturing=P.hasCaptures(this._name),this._contentName=i||null,this._contentNameIsCapturing=P.hasCaptures(this._contentName);}return _createClass(ft,[{key:"debugName",get:function get(){var t=this.$location?"".concat(M(this.$location.filename),":").concat(this.$location.line):"unknown";return"".concat(this.constructor.name,"#").concat(this.id," @ ").concat(t);}},{key:"getName",value:function getName(t,e){return this._nameIsCapturing&&null!==this._name&&null!==t&&null!==e?P.replaceCaptures(this._name,t,e):this._name;}},{key:"getContentName",value:function getContentName(t,e){return this._contentNameIsCapturing&&null!==this._contentName?P.replaceCaptures(this._contentName,t,e):this._contentName;}}]);}();gt=/*#__PURE__*/function(_ft){function gt(t,e,n,i,r){var _this4;_classCallCheck(this,gt);_this4=_callSuper(this,gt,[t,e,n,i]),_this4.retokenizeCapturedWithRuleId=r;return _this4;}_inherits(gt,_ft);return _createClass(gt,[{key:"dispose",value:function dispose(){}},{key:"collectPatterns",value:function collectPatterns(t,e){throw new Error("Not supported!");}},{key:"compile",value:function compile(t,e){throw new Error("Not supported!");}},{key:"compileAG",value:function compileAG(t,e,n,i){throw new Error("Not supported!");}}]);}(ft);jt=/*#__PURE__*/function(_ft2){function jt(t,e,n,i,r){var _this5;_classCallCheck(this,jt);_this5=_callSuper(this,jt,[t,e,n,null]),_this5._match=new kt(i,_this5.id),_this5.captures=r,_this5._cachedCompiledPatterns=null;return _this5;}_inherits(jt,_ft2);return _createClass(jt,[{key:"dispose",value:function dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null);}},{key:"debugMatchRegExp",get:function get(){return"".concat(this._match.source);}},{key:"collectPatterns",value:function collectPatterns(t,e){e.push(this._match);}},{key:"compile",value:function compile(t,e){return this._getCachedCompiledPatterns(t).compile(t);}},{key:"compileAG",value:function compileAG(t,e,n,i){return this._getCachedCompiledPatterns(t).compileAG(t,n,i);}},{key:"_getCachedCompiledPatterns",value:function _getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new St(),this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns;}}]);}(ft);yt=/*#__PURE__*/function(_ft3){function yt(t,e,n,i,r){var _this6;_classCallCheck(this,yt);_this6=_callSuper(this,yt,[t,e,n,i]),_this6.patterns=r.patterns,_this6.hasMissingPatterns=r.hasMissingPatterns,_this6._cachedCompiledPatterns=null;return _this6;}_inherits(yt,_ft3);return _createClass(yt,[{key:"dispose",value:function dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null);}},{key:"collectPatterns",value:function collectPatterns(t,e){var _iterator6=_createForOfIteratorHelper(this.patterns),_step6;try{for(_iterator6.s();!(_step6=_iterator6.n()).done;){var _n20=_step6.value;t.getRule(_n20).collectPatterns(t,e);}}catch(err){_iterator6.e(err);}finally{_iterator6.f();}}},{key:"compile",value:function compile(t,e){return this._getCachedCompiledPatterns(t).compile(t);}},{key:"compileAG",value:function compileAG(t,e,n,i){return this._getCachedCompiledPatterns(t).compileAG(t,n,i);}},{key:"_getCachedCompiledPatterns",value:function _getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new St(),this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns;}}]);}(ft);bt=/*#__PURE__*/function(_ft4){function bt(t,e,n,i,r,o,s,l,a,c){var _this7;_classCallCheck(this,bt);_this7=_callSuper(this,bt,[t,e,n,i]),_this7._begin=new kt(r,_this7.id),_this7.beginCaptures=o,_this7._end=new kt(s||"",-1),_this7.endHasBackReferences=_this7._end.hasBackReferences,_this7.endCaptures=l,_this7.applyEndPatternLast=a||!1,_this7.patterns=c.patterns,_this7.hasMissingPatterns=c.hasMissingPatterns,_this7._cachedCompiledPatterns=null;return _this7;}_inherits(bt,_ft4);return _createClass(bt,[{key:"dispose",value:function dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null);}},{key:"debugBeginRegExp",get:function get(){return"".concat(this._begin.source);}},{key:"debugEndRegExp",get:function get(){return"".concat(this._end.source);}},{key:"getEndWithResolvedBackReferences",value:function getEndWithResolvedBackReferences(t,e){return this._end.resolveBackReferences(t,e);}},{key:"collectPatterns",value:function collectPatterns(t,e){e.push(this._begin);}},{key:"compile",value:function compile(t,e){return this._getCachedCompiledPatterns(t,e).compile(t);}},{key:"compileAG",value:function compileAG(t,e,n,i){return this._getCachedCompiledPatterns(t,e).compileAG(t,n,i);}},{key:"_getCachedCompiledPatterns",value:function _getCachedCompiledPatterns(t,e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new St();var _iterator7=_createForOfIteratorHelper(this.patterns),_step7;try{for(_iterator7.s();!(_step7=_iterator7.n()).done;){var _e11=_step7.value;t.getRule(_e11).collectPatterns(t,this._cachedCompiledPatterns);}}catch(err){_iterator7.e(err);}finally{_iterator7.f();}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;}}]);}(ft);wt=/*#__PURE__*/function(_ft5){function wt(t,e,n,i,r,o,s,l,a){var _this8;_classCallCheck(this,wt);_this8=_callSuper(this,wt,[t,e,n,i]),_this8._begin=new kt(r,_this8.id),_this8.beginCaptures=o,_this8.whileCaptures=l,_this8._while=new kt(s,dt),_this8.whileHasBackReferences=_this8._while.hasBackReferences,_this8.patterns=a.patterns,_this8.hasMissingPatterns=a.hasMissingPatterns,_this8._cachedCompiledPatterns=null,_this8._cachedCompiledWhilePatterns=null;return _this8;}_inherits(wt,_ft5);return _createClass(wt,[{key:"dispose",value:function dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null);}},{key:"debugBeginRegExp",get:function get(){return"".concat(this._begin.source);}},{key:"debugWhileRegExp",get:function get(){return"".concat(this._while.source);}},{key:"getWhileWithResolvedBackReferences",value:function getWhileWithResolvedBackReferences(t,e){return this._while.resolveBackReferences(t,e);}},{key:"collectPatterns",value:function collectPatterns(t,e){e.push(this._begin);}},{key:"compile",value:function compile(t,e){return this._getCachedCompiledPatterns(t).compile(t);}},{key:"compileAG",value:function compileAG(t,e,n,i){return this._getCachedCompiledPatterns(t).compileAG(t,n,i);}},{key:"_getCachedCompiledPatterns",value:function _getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new St();var _iterator8=_createForOfIteratorHelper(this.patterns),_step8;try{for(_iterator8.s();!(_step8=_iterator8.n()).done;){var _e12=_step8.value;t.getRule(_e12).collectPatterns(t,this._cachedCompiledPatterns);}}catch(err){_iterator8.e(err);}finally{_iterator8.f();}}return this._cachedCompiledPatterns;}},{key:"compileWhile",value:function compileWhile(t,e){return this._getCachedCompiledWhilePatterns(t,e).compile(t);}},{key:"compileWhileAG",value:function compileWhileAG(t,e,n,i){return this._getCachedCompiledWhilePatterns(t,e).compileAG(t,n,i);}},{key:"_getCachedCompiledWhilePatterns",value:function _getCachedCompiledWhilePatterns(t,e){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new St(),this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,e||""),this._cachedCompiledWhilePatterns;}}]);}(ft);vt=/*#__PURE__*/function(){function t(){_classCallCheck(this,t);}return _createClass(t,null,[{key:"createCaptureRule",value:function createCaptureRule(_t31,e,n,i,r){return _t31.registerRule(function(_t32){return new gt(e,_t32,n,i,r);});}},{key:"getCompiledRuleId",value:function getCompiledRuleId(e,n,i){return e.id||n.registerRule(function(r){if(e.id=r,e.match)return new jt(e.$vscodeTextmateLocation,e.id,e.name,e.match,t._compileCaptures(e.captures,n,i));if(void 0===e.begin){e.repository&&(i=O({},i,e.repository));var _r10=e.patterns;return void 0===_r10&&e.include&&(_r10=[{include:e.include}]),new yt(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,t._compilePatterns(_r10,n,i));}return e["while"]?new wt(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,t._compileCaptures(e.beginCaptures||e.captures,n,i),e["while"],t._compileCaptures(e.whileCaptures||e.captures,n,i),t._compilePatterns(e.patterns,n,i)):new bt(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,t._compileCaptures(e.beginCaptures||e.captures,n,i),e.end,t._compileCaptures(e.endCaptures||e.captures,n,i),e.applyEndPatternLast,t._compilePatterns(e.patterns,n,i));}),e.id;}},{key:"_compileCaptures",value:function _compileCaptures(e,n,i){var r=[];if(e){var _o7=0;for(var _t36 in e){if("$vscodeTextmateLocation"===_t36)continue;var _e13=parseInt(_t36,10);_e13>_o7&&(_o7=_e13);}for(var _t37=0;_t37<=_o7;_t37++)r[_t37]=null;for(var _o8 in e){if("$vscodeTextmateLocation"===_o8)continue;var _s5=parseInt(_o8,10);var _l2=0;e[_o8].patterns&&(_l2=t.getCompiledRuleId(e[_o8],n,i)),r[_s5]=t.createCaptureRule(n,e[_o8].$vscodeTextmateLocation,e[_o8].name,e[_o8].contentName,_l2);}}return r;}},{key:"_compilePatterns",value:function _compilePatterns(e,n,i){var r=[];if(e)for(var _o9=0,_s6=e.length;_o9<_s6;_o9++){var _s7=e[_o9];var _l3=-1;if(_s7.include){var _e14=ut(_s7.include);switch(_e14.kind){case 0:case 1:_l3=t.getCompiledRuleId(i[_s7.include],n,i);break;case 2:var _r11=i[_e14.ruleName];_r11&&(_l3=t.getCompiledRuleId(_r11,n,i));break;case 3:case 4:var _o10=_e14.scopeName,_a3=4===_e14.kind?_e14.ruleName:null,_c3=n.getExternalGrammar(_o10,i);if(_c3)if(_a3){var _e15=_c3.repository[_a3];_e15&&(_l3=t.getCompiledRuleId(_e15,n,_c3.repository));}else _l3=t.getCompiledRuleId(_c3.repository.$self,n,_c3.repository);}}else _l3=t.getCompiledRuleId(_s7,n,i);if(-1!==_l3){var _t35=n.getRule(_l3);var _e16=!1;if((_t35 instanceof yt||_t35 instanceof bt||_t35 instanceof wt)&&_t35.hasMissingPatterns&&0===_t35.patterns.length&&(_e16=!0),_e16)continue;r.push(_l3);}}return{patterns:r,hasMissingPatterns:(e?e.length:0)!==r.length};}}]);}();kt=/*#__PURE__*/function(){function t(_t38,e){_classCallCheck(this,t);if(_t38){var _e17=_t38.length;var _n21=0,i=[],_r12=!1;for(var _o11=0;_o11<_e17;_o11++){if("\\"===_t38.charAt(_o11)&&_o11+1<_e17){var _e18=_t38.charAt(_o11+1);"z"===_e18?(i.push(_t38.substring(_n21,_o11)),i.push("$(?!\\n)(?<!\\n)"),_n21=_o11+2):"A"!==_e18&&"G"!==_e18||(_r12=!0),_o11++;}}this.hasAnchor=_r12,0===_n21?this.source=_t38:(i.push(_t38.substring(_n21,_e17)),this.source=i.join(""));}else this.hasAnchor=!1,this.source=_t38;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=e,this.hasBackReferences=mt.test(this.source);}return _createClass(t,[{key:"clone",value:function clone(){return new t(this.source,this.ruleId);}},{key:"setSource",value:function setSource(_t39){this.source!==_t39&&(this.source=_t39,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()));}},{key:"resolveBackReferences",value:function resolveBackReferences(_t40,e){var n=e.map(function(e){return _t40.substring(e.start,e.end);});return pt.lastIndex=0,this.source.replace(pt,function(_t41,e){return R(n[parseInt(e,10)]||"");});}},{key:"_buildAnchorCache",value:function _buildAnchorCache(){var _t42,e,n,i,r=[],o=[],s=[],l=[];for(_t42=0,e=this.source.length;_t42<e;_t42++)n=this.source.charAt(_t42),r[_t42]=n,o[_t42]=n,s[_t42]=n,l[_t42]=n,"\\"===n&&_t42+1<e&&(i=this.source.charAt(_t42+1),"A"===i?(r[_t42+1]="",o[_t42+1]="",s[_t42+1]="A",l[_t42+1]="A"):"G"===i?(r[_t42+1]="",o[_t42+1]="G",s[_t42+1]="",l[_t42+1]="G"):(r[_t42+1]=i,o[_t42+1]=i,s[_t42+1]=i,l[_t42+1]=i),_t42++);return{A0_G0:r.join(""),A0_G1:o.join(""),A1_G0:s.join(""),A1_G1:l.join("")};}},{key:"resolveAnchors",value:function resolveAnchors(_t43,e){return this.hasAnchor&&this._anchorCache?_t43?e?this._anchorCache.A1_G1:this._anchorCache.A1_G0:e?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source;}}]);}();St=/*#__PURE__*/function(){function St(){_classCallCheck(this,St);this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null};}return _createClass(St,[{key:"dispose",value:function dispose(){this._disposeCaches();}},{key:"_disposeCaches",value:function _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);}},{key:"push",value:function push(t){this._items.push(t),this._hasAnchors=this._hasAnchors||t.hasAnchor;}},{key:"unshift",value:function unshift(t){this._items.unshift(t),this._hasAnchors=this._hasAnchors||t.hasAnchor;}},{key:"length",value:function length(){return this._items.length;}},{key:"setSource",value:function setSource(t,e){this._items[t].source!==e&&(this._disposeCaches(),this._items[t].setSource(e));}},{key:"compile",value:function compile(t){if(!this._cached){var _e19=this._items.map(function(t){return t.source;});this._cached=new xt(t,_e19,this._items.map(function(t){return t.ruleId;}));}return this._cached;}},{key:"compileAG",value:function 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);}},{key:"_resolveAnchors",value:function _resolveAnchors(t,e,n){var i=this._items.map(function(t){return t.resolveAnchors(e,n);});return new xt(t,i,this._items.map(function(t){return t.ruleId;}));}}]);}();xt=/*#__PURE__*/function(){function xt(t,e,n){_classCallCheck(this,xt);this.regExps=e,this.rules=n,this.scanner=t.createOnigScanner(e);}return _createClass(xt,[{key:"dispose",value:function dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose();}},{key:"toString",value:function toString(){var t=[];for(var _e20=0,_n22=this.rules.length;_e20<_n22;_e20++)t.push(" - "+this.rules[_e20]+": "+this.regExps[_e20]);return t.join("\n");}},{key:"findNextMatchSync",value:function findNextMatchSync(t,e,n){var i=this.scanner.findNextMatchSync(t,e,n);return i?{ruleId:this.rules[i.index],captureIndices:i.captureIndices}:null;}}]);}();Ct=/*#__PURE__*/_createClass(function Ct(t,e){_classCallCheck(this,Ct);this.languageId=t,this.tokenType=e;});Lt=/*#__PURE__*/function(){function t(_t44,e){var _this9=this;_classCallCheck(this,t);this._getBasicScopeAttributes=new $(function(_t45){var e=_this9._scopeToLanguage(_t45),n=_this9._toStandardTokenType(_t45);return new Ct(e,n);}),this._defaultAttributes=new Ct(_t44,8),this._embeddedLanguagesMatcher=new Ot(Object.entries(e||{}));}return _createClass(t,[{key:"getDefaultAttributes",value:function getDefaultAttributes(){return this._defaultAttributes;}},{key:"getBasicScopeAttributes",value:function getBasicScopeAttributes(e){return null===e?t._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e);}},{key:"_scopeToLanguage",value:function _scopeToLanguage(_t46){return this._embeddedLanguagesMatcher.match(_t46)||0;}},{key:"_toStandardTokenType",value:function _toStandardTokenType(e){var n=e.match(t.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!");}}]);}();Lt._NULL_SCOPE_METADATA=new Ct(0,0),Lt.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;At=Lt;Ot=/*#__PURE__*/function(){function Ot(t){_classCallCheck(this,Ot);if(0===t.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(t);var _e21=t.map(function(_ref4){var _ref5=_slicedToArray(_ref4,2),t=_ref5[0],e=_ref5[1];return R(t);});_e21.sort(),_e21.reverse(),this.scopesRegExp=new RegExp("^((".concat(_e21.join(")|("),"))($|\\.)"),"");}}return _createClass(Ot,[{key:"match",value:function match(t){if(!this.scopesRegExp)return;var e=t.match(this.scopesRegExp);return e?this.values.get(e[1]):void 0;}}]);}();"undefined"!=typeof process&&process.env.VSCODE_TEXTMATE_DEBUG;Mt=/*#__PURE__*/_createClass(function Mt(t,e){_classCallCheck(this,Mt);this.stack=t,this.stoppedEarly=e;});Et=/*#__PURE__*/_createClass(function Et(t,e){_classCallCheck(this,Et);this.scopes=t,this.endPos=e;});It=/*#__PURE__*/function(){function It(t,e,n,i,r,o,s,l){_classCallCheck(this,It);if(this._rootScopeName=t,this.balancedBracketSelectors=o,this._onigLib=l,this._basicScopeAttributesProvider=new At(n,i),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=s,this._grammar=Gt(e,null),this._injections=null,this._tokenTypeMatchers=[],r)for(var _i9=0,_Object$keys=Object.keys(r);_i9<_Object$keys.length;_i9++){var _t47=_Object$keys[_i9];var _e26=J(_t47,$t);var _iterator10=_createForOfIteratorHelper(_e26),_step10;try{for(_iterator10.s();!(_step10=_iterator10.n()).done;){var _n25=_step10.value;this._tokenTypeMatchers.push({matcher:_n25.matcher,type:r[_t47]});}}catch(err){_iterator10.e(err);}finally{_iterator10.f();}}}return _createClass(It,[{key:"themeProvider",get:function get(){return this._grammarRepository;}},{key:"dispose",value:function dispose(){var _iterator11=_createForOfIteratorHelper(this._ruleId2desc),_step11;try{for(_iterator11.s();!(_step11=_iterator11.n()).done;){var _t48=_step11.value;_t48&&_t48.dispose();}}catch(err){_iterator11.e(err);}finally{_iterator11.f();}}},{key:"createOnigScanner",value:function createOnigScanner(t){return this._onigLib.createOnigScanner(t);}},{key:"createOnigString",value:function createOnigString(t){return this._onigLib.createOnigString(t);}},{key:"getMetadataForScope",value:function getMetadataForScope(t){return this._basicScopeAttributesProvider.getBasicScopeAttributes(t);}},{key:"_collectInjections",value:function _collectInjections(){var _this10=this;var t=function t(_t49){return _t49===_this10._rootScopeName?_this10._grammar:_this10.getExternalGrammar(_t49);},e=[],n=this._rootScopeName,i=t(n);if(i){var _t50=i.injections;if(_t50)for(var _n26 in _t50)Rt(e,_n26,_t50[_n26],this,i);var _r13=this._grammarRepository.injections(n);_r13&&_r13.forEach(function(t){var n=_this10.getExternalGrammar(t);if(n){var _t51=n.injectionSelector;_t51&&Rt(e,_t51,n,_this10,n);}});}return e.sort(function(t,e){return t.priority-e.priority;}),e;}},{key:"getInjections",value:function getInjections(){return null===this._injections&&(this._injections=this._collectInjections()),this._injections;}},{key:"registerRule",value:function registerRule(t){var e=++this._lastRuleId,n=t(e);return this._ruleId2desc[e]=n,n;}},{key:"getRule",value:function getRule(t){return this._ruleId2desc[t];}},{key:"getExternalGrammar",value:function getExternalGrammar(t,e){if(this._includedGrammars[t])return this._includedGrammars[t];if(this._grammarRepository){var _n27=this._grammarRepository.lookup(t);if(_n27)return this._includedGrammars[t]=Gt(_n27,e&&e.$base),this._includedGrammars[t];}}},{key:"tokenizeLine",value:function tokenizeLine(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;var i=this._tokenize(t,e,!1,n);return{tokens:i.lineTokens.getResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly};}},{key:"tokenizeLine2",value:function tokenizeLine2(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;var i=this._tokenize(t,e,!0,n);return{tokens:i.lineTokens.getBinaryResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly};}},{key:"_tokenize",value:function _tokenize(t,e,n,i){var r;if(-1===this._rootId&&(this._rootId=vt.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections()),e&&e!==zt.NULL)r=!1,e.reset();else{r=!0;var _t52=this._basicScopeAttributesProvider.getDefaultAttributes(),_n28=this.themeProvider.getDefaults(),_i10=V.set(0,_t52.languageId,_t52.tokenType,null,_n28.fontStyle,_n28.foregroundId,_n28.backgroundId),_o14=this.getRule(this._rootId).getName(null,null);var _s11;_s11=_o14?qt.createRootAndLookUpScopeName(_o14,_i10,this):qt.createRoot("unknown",_i10),e=new zt(null,this._rootId,-1,-1,!1,null,_s11,_s11);}t+="\n";var o=this.createOnigString(t),s=o.content.length,l=new Ut(n,t,this._tokenTypeMatchers,this.balancedBracketSelectors),a=Tt(this,o,r,0,e,l,!0,i);return Y(o),{lineLength:s,lineTokens:l,ruleStack:a.stack,stoppedEarly:a.stoppedEarly};}}]);}();qt=/*#__PURE__*/function(){function t(_t53,e,n){_classCallCheck(this,t);this.parent=_t53,this.scopePath=e,this.tokenAttributes=n;}return _createClass(t,[{key:"scopeName",get:function get(){return this.scopePath.scopeName;}},{key:"toString",value:function toString(){return this.getScopeNames().join(" ");}},{key:"equals",value:function equals(e){return t.equals(this,e);}},{key:"pushAttributed",value:function pushAttributed(e,n){if(null===e)return this;if(-1===e.indexOf(" "))return t._pushAttributed(this,e,n);var i=e.split(/ /g);var r=this;var _iterator12=_createForOfIteratorHelper(i),_step12;try{for(_iterator12.s();!(_step12=_iterator12.n()).done;){var _e27=_step12.value;r=t._pushAttributed(r,_e27,n);}}catch(err){_iterator12.e(err);}finally{_iterator12.f();}return r;}},{key:"getScopeNames",value:function getScopeNames(){return this.scopePath.getSegments();}},{key:"getExtensionIfDefined",value:function getExtensionIfDefined(_t56){var e=[];var n=this;for(;n&&n!==_t56;){var _n$parent$scopePath,_n$parent;e.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined((_n$parent$scopePath=(_n$parent=n.parent)===null||_n$parent===void 0?void 0:_n$parent.scopePath)!==null&&_n$parent$scopePath!==void 0?_n$parent$scopePath:null)}),n=n.parent;}return n===_t56?e.reverse():void 0;}}],[{key:"fromExtension",value:function fromExtension(e,n){var _e$scopePath;var i=e,r=(_e$scopePath=e===null||e===void 0?void 0:e.scopePath)!==null&&_e$scopePath!==void 0?_e$scopePath:null;var _iterator13=_createForOfIteratorHelper(n),_step13;try{for(_iterator13.s();!(_step13=_iterator13.n()).done;){var _e28=_step13.value;r=I.push(r,_e28.scopeNames),i=new t(i,r,_e28.encodedTokenAttributes);}}catch(err){_iterator13.e(err);}finally{_iterator13.f();}return i;}},{key:"createRoot",value:function createRoot(e,n){return new t(null,new I(null,e),n);}},{key:"createRootAndLookUpScopeName",value:function createRootAndLookUpScopeName(e,n,i){var r=i.getMetadataForScope(e),o=new I(null,e),s=i.themeProvider.themeMatch(o),l=t.mergeAttributes(n,r,s);return new t(null,o,l);}},{key:"equals",value:function equals(_t54,e){for(;;){if(_t54===e)return!0;if(!_t54&&!e)return!0;if(!_t54||!e)return!1;if(_t54.scopeName!==e.scopeName||_t54.tokenAttributes!==e.tokenAttributes)return!1;_t54=_t54.parent,e=e.parent;}}},{key:"mergeAttributes",value:function mergeAttributes(_t55,e,n){var i=-1,r=0,o=0;return null!==n&&(i=n.fontStyle,r=n.foregroundId,o=n.backgroundId),V.set(_t55,e.languageId,e.tokenType,null,i,r,o);}},{key:"_pushAttributed",value:function _pushAttributed(e,n,i){var r=i.getMetadataForScope(n),o=e.scopePath.push(n),s=i.themeProvider.themeMatch(o),l=t.mergeAttributes(e.tokenAttributes,r,s);return new t(e,o,l);}}]);}();_t=/*#__PURE__*/function(){function t(_t57,e,n,i,r,o,s,l){_classCallCheck(this,t);this.parent=_t57,this.ruleId=e,this.beginRuleCapturedEOL=r,this.endRule=o,this.nameScopesList=s,this.contentNameScopesList=l,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=i;}return _createClass(t,[{key:"equals",value:function equals(e){return null!==e&&t._equals(this,e);}},{key:"clone",value:function clone(){return this;}},{key:"reset",value:function reset(){t._reset(this);}},{key:"pop",value:function pop(){return this.parent;}},{key:"safePop",value:function safePop(){return this.parent?this.parent:this;}},{key:"push",value:function push(e,n,i,r,o,s,l){return new t(this,e,n,i,r,o,s,l);}},{key:"getEnterPos",value:function getEnterPos(){return this._enterPos;}},{key:"getAnchorPos",value:function getAnchorPos(){return this._anchorPos;}},{key:"getRule",value:function getRule(_t61){return _t61.getRule(this.ruleId);}},{key:"toString",value:function toString(){var _t62=[];return this._writeString(_t62,0),"["+_t62.join(",")+"]";}},{key:"_writeString",value:function _writeString(_t63,e){var _this$nameScopesList,_this$contentNameScop;return this.parent&&(e=this.parent._writeString(_t63,e)),_t63[e++]="(".concat(this.ruleId,", ").concat((_this$nameScopesList=this.nameScopesList)===null||_this$nameScopesList===void 0?void 0:_this$nameScopesList.toString(),", ").concat((_this$contentNameScop=this.contentNameScopesList)===null||_this$contentNameScop===void 0?void 0:_this$contentNameScop.toString(),")"),e;}},{key:"withContentNameScopesList",value:function withContentNameScopesList(_t64){return this.contentNameScopesList===_t64?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,_t64);}},{key:"withEndRule",value:function withEndRule(e){return this.endRule===e?this:new t(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList);}},{key:"hasSameRuleAs",value:function hasSameRuleAs(_t65){var e=this;for(;e&&e._enterPos===_t65._enterPos;){if(e.ruleId===_t65.ruleId)return!0;e=e.parent;}return!1;}},{key:"toStateStackFrame",value:function toStateStackFrame(){var _this$nameScopesList$,_this$nameScopesList2,_this$parent$nameScop,_this$parent,_this$contentNameScop2,_this$contentNameScop3;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:(_this$nameScopesList$=(_this$nameScopesList2=this.nameScopesList)===null||_this$nameScopesList2===void 0?void 0:_this$nameScopesList2.getExtensionIfDefined((_this$parent$nameScop=(_this$parent=this.parent)===null||_this$parent===void 0?void 0:_this$parent.nameScopesList)!==null&&_this$parent$nameScop!==void 0?_this$parent$nameScop:null))!==null&&_this$nameScopesList$!==void 0?_this$nameScopesList$:[],contentNameScopesList:(_this$contentNameScop2=(_this$contentNameScop3=this.contentNameScopesList)===null||_this$contentNameScop3===void 0?void 0:_this$contentNameScop3.getExtensionIfDefined(this.nameScopesList))!==null&&_this$contentNameScop2!==void 0?_this$contentNameScop2:[]};}}],[{key:"_equals",value:function _equals(_t58,e){return _t58===e||!!this._structuralEquals(_t58,e)&&qt.equals(_t58.contentNameScopesList,e.contentNameScopesList);}},{key:"_structuralEquals",value:function _structuralEquals(_t59,e){for(;;){if(_t59===e)return!0;if(!_t59&&!e)return!0;if(!_t59||!e)return!1;if(_t59.depth!==e.depth||_t59.ruleId!==e.ruleId||_t59.endRule!==e.endRule)return!1;_t59=_t59.parent,e=e.parent;}}},{key:"_reset",value:function _reset(_t60){for(;_t60;)_t60._enterPos=-1,_t60._anchorPos=-1,_t60=_t60.parent;}},{key:"pushFrame",value:function pushFrame(e,n){var _e$nameScopesList,_n$enterPos,_n$anchorPos;var i=qt.fromExtension((_e$nameScopesList=e===null||e===void 0?void 0:e.nameScopesList)!==null&&_e$nameScopesList!==void 0?_e$nameScopesList:null,n.nameScopesList);return new t(e,n.ruleId,(_n$enterPos=n.enterPos)!==null&&_n$enterPos!==void 0?_n$enterPos:-1,(_n$anchorPos=n.anchorPos)!==null&&_n$anchorPos!==void 0?_n$anchorPos:-1,n.beginRuleCapturedEOL,n.endRule,i,qt.fromExtension(i,n.contentNameScopesList));}}]);}();_t.NULL=new _t(null,0,0,0,!1,null,null,null);zt=_t;Ft=/*#__PURE__*/function(){function Ft(t,e){var _this11=this;_classCallCheck(this,Ft);this.allowAny=!1,this.balancedBracketScopes=t.flatMap(function(t){return"*"===t?(_this11.allowAny=!0,[]):J(t,$t).map(function(t){return t.matcher;});}),this.unbalancedBracketScopes=e.flatMap(function(t){return J(t,$t).map(function(t){return t.matcher;});});}return _createClass(Ft,[{key:"matchesAlways",get:function get(){return this.allowAny&&0===this.unbalancedBracketScopes.length;}},{key:"matchesNever",get:function get(){return 0===this.balancedBracketScopes.length&&!this.allowAny;}},{key:"match",value:function match(t){var _iterator14=_createForOfIteratorHelper(this.unbalancedBracketScopes),_step14;try{for(_iterator14.s();!(_step14=_iterator14.n()).done;){var _e29=_step14.value;if(_e29(t))return!1;}}catch(err){_iterator14.e(err);}finally{_iterator14.f();}var _iterator15=_createForOfIteratorHelper(this.balancedBracketScopes),_step15;try{for(_iterator15.s();!(_step15=_iterator15.n()).done;){var _e30=_step15.value;if(_e30(t))return!0;}}catch(err){_iterator15.e(err);}finally{_iterator15.f();}return this.allowAny;}}]);}();Ut=/*#__PURE__*/function(){function Ut(t,e,n,i){_classCallCheck(this,Ut);this.balancedBracketSelectors=i,this._emitBinaryTokens=t,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0;}return _createClass(Ut,[{key:"produce",value:function produce(t,e){this.produceFromScopes(t.contentNameScopesList,e);}},{key:"produceFromScopes",value:function produceFromScopes(t,e){var _t$getScopeNames2;if(this._lastTokenEndIndex>=e)return;if(this._emitBinaryTokens){var _t$tokenAttributes,_this$balancedBracket;var _n29=(_t$tokenAttributes=t===null||t===void 0?void 0:t.tokenAttributes)!==null&&_t$tokenAttributes!==void 0?_t$tokenAttributes:0,i=!1;if((_this$balancedBracket=this.balancedBracketSelectors)!==null&&_this$balancedBracket!==void 0&&_this$balancedBracket.matchesAlways&&(i=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){var _t$getScopeNames;var _e31=(_t$getScopeNames=t===null||t===void 0?void 0:t.getScopeNames())!==null&&_t$getScopeNames!==void 0?_t$getScopeNames:[];var _iterator16=_createForOfIteratorHelper(this._tokenTypeOverrides),_step16;try{for(_iterator16.s();!(_step16=_iterator16.n()).done;){var _t66=_step16.value;_t66.matcher(_e31)&&(_n29=V.set(_n29,0,_t66.type,null,-1,0,0));}}catch(err){_iterator16.e(err);}finally{_iterator16.f();}this.balancedBracketSelectors&&(i=this.balancedBracketSelectors.match(_e31));}return i&&(_n29=V.set(_n29,0,8,i,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===_n29?void(this._lastTokenEndIndex=e):(this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(_n29),void(this._lastTokenEndIndex=e));}var n=(_t$getScopeNames2=t===null||t===void 0?void 0:t.getScopeNames())!==null&&_t$getScopeNames2!==void 0?_t$getScopeNames2:[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:e,scopes:n}),this._lastTokenEndIndex=e;}},{key:"getResult",value:function getResult(t,e){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===e-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(t,e),this._tokens[this._tokens.length-1].startIndex=0),this._tokens;}},{key:"getBinaryResult",value:function getBinaryResult(t,e){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===e-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(t,e),this._binaryTokens[this._binaryTokens.length-2]=0);var n=new Uint32Array(this._binaryTokens.length);for(var _t67=0,_e32=this._binaryTokens.length;_t67<_e32;_t67++)n[_t67]=this._binaryTokens[_t67];return n;}}]);}();Ht=/*#__PURE__*/function(){function Ht(t,e){_classCallCheck(this,Ht);this._onigLib=e,this._grammars=new Map(),this._rawGrammars=new Map(),this._injectionGrammars=new Map(),this._theme=t;}return _createClass(Ht,[{key:"dispose",value:function dispose(){var _iterator17=_createForOfIteratorHelper(this._grammars.values()),_step17;try{for(_iterator17.s();!(_step17=_iterator17.n()).done;){var _t68=_step17.value;_t68.dispose();}}catch(err){_iterator17.e(err);}finally{_iterator17.f();}}},{key:"setTheme",value:function setTheme(t){this._theme=t;}},{key:"getColorMap",value:function getColorMap(){return this._theme.getColorMap();}},{key:"addGrammar",value:function addGrammar(t,e){this._rawGrammars.set(t.scopeName,t),e&&this._injectionGrammars.set(t.scopeName,e);}},{key:"lookup",value:function lookup(t){return this._rawGrammars.get(t);}},{key:"injections",value:function injections(t){return this._injectionGrammars.get(t);}},{key:"getDefaults",value:function getDefaults(){return this._theme.getDefaults();}},{key:"themeMatch",value:function themeMatch(t){return this._theme.match(t);}},{key:"grammarForScopeName",value:function grammarForScopeName(t,e,n,i,r){if(!this._grammars.has(t)){var _o15=this._rawGrammars.get(t);if(!_o15)return null;this._grammars.set(t,function(t,e,n,i,r,o,s,l){return new It(t,e,n,i,r,o,s,l);}(t,_o15,e,n,i,r,this,this._onigLib));}return this._grammars.get(t);}}]);}();Wt=/*#__PURE__*/function(){function Wt(t){_classCallCheck(this,Wt);this._options=t,this._syncRegistry=new Ht(B.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map();}return _createClass(Wt,[{key:"dispose",value:function dispose(){this._syncRegistry.dispose();}},{key:"setTheme",value:function setTheme(t,e){this._syncRegistry.setTheme(B.createFromRawTheme(t,e));}},{key:"getColorMap",value:function getColorMap(){return this._syncRegistry.getColorMap();}},{key:"loadGrammarWithEmbeddedLanguages",value:function loadGrammarWithEmbeddedLanguages(t,e,n){return this.loadGrammarWithConfiguration(t,e,{embeddedLanguages:n});}},{key:"loadGrammarWithConfiguration",value:function loadGrammarWithConfiguration(t,e,n){return this._loadGrammar(t,e,n.embeddedLanguages,n.tokenTypes,new Ft(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]));}},{key:"loadGrammar",value:function loadGrammar(t){return this._loadGrammar(t,0,null,null,null);}},{key:"_loadGrammar",value:function _loadGrammar(t,e,n,i,r){var _this12=this;var o=new tt(this._syncRegistry,t);for(;o.Q.length>0;)o.Q.map(function(t){return _this12._loadSingleGrammar(t.scopeName);}),o.processQueue();return this._grammarForScopeName(t,e,n,i,r);}},{key:"_loadSingleGrammar",value:function _loadSingleGrammar(t){this._ensureGrammarCache.has(t)||(this._doLoadSingleGrammar(t),this._ensureGrammarCache.set(t,!0));}},{key:"_doLoadSingleGrammar",value:function _doLoadSingleGrammar(t){var e=this._options.loadGrammar(t);if(e){var _n30="function"==typeof this._options.getInjections?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(e,_n30);}}},{key:"addGrammar",value:function addGrammar(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;var i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:null;return this._syncRegistry.addGrammar(t,e),this._grammarForScopeName(t.scopeName,n,i);}},{key:"_grammarForScopeName",value:function _grammarForScopeName(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:null;var i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:null;var r=arguments.length>4&&arguments[4]!==undefined?arguments[4]:null;return this._syncRegistry.grammarForScopeName(t,e,n,i,r);}}]);}();Vt=zt.NULL;Jt=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];Xt=/*#__PURE__*/_createClass(function Xt(t,e,n){_classCallCheck(this,Xt);this.property=t,this.normal=e,n&&(this.space=n);});Xt.prototype.property={},Xt.prototype.normal={},Xt.prototype.space=null;Qt=/*#__PURE__*/_createClass(function Qt(t,e){_classCallCheck(this,Qt);this.property=t,this.attribute=e;});Qt.prototype.space=null,Qt.prototype["boolean"]=!1,Qt.prototype.booleanish=!1,Qt.prototype.overloadedBoolean=!1,Qt.prototype.number=!1,Qt.prototype.commaSeparated=!1,Qt.prototype.spaceSeparated=!1,Qt.prototype.commaOrSpaceSeparated=!1,Qt.prototype.mustUseProperty=!1,Qt.prototype.defined=!1;Zt=0;te=le();ee=le();ne=le();ie=le();re=le();oe=le();se=le();ae=Object.freeze({__proto__:null,"boolean":te,booleanish:ee,commaOrSpaceSeparated:se,commaSeparated:oe,number:ie,overloadedBoolean:ne,spaceSeparated:re});ce=Object.keys(ae);ue=/*#__PURE__*/function(_Qt){function ue(t,e,n,i){var _this13;_classCallCheck(this,ue);var r=-1;if(_this13=_callSuper(this,ue,[t,e]),me(_assertThisInitialized(_this13),"space",i),"number"==typeof n)for(;++r<ce.length;){var _t69=ce[r];me(_assertThisInitialized(_this13),ce[r],(n&ae[_t69])===ae[_t69]);}return _assertThisInitialized(_this13);}_inherits(ue,_Qt);return _createClass(ue);}(Qt);ue.prototype.defined=!0;pe={}.hasOwnProperty;de=he({space:"xlink",transform:function transform(t,e){return"xlink:"+e.slice(5).toLowerCase();},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});fe=he({space:"xml",transform:function transform(t,e){return"xml:"+e.slice(3).toLowerCase();},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});ye=he({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:je,properties:{xmlns:null,xmlnsXLink:null}});be=he({transform:function transform(t,e){return"role"===e?e:"aria-"+e.slice(4).toLowerCase();},properties:{ariaActiveDescendant:null,ariaAtomic:ee,ariaAutoComplete:null,ariaBusy:ee,ariaChecked:ee,ariaColCount:ie,ariaColIndex:ie,ariaColSpan:ie,ariaControls:re,ariaCurrent:null,ariaDescribedBy:re,ariaDetails:null,ariaDisabled:ee,ariaDropEffect:re,ariaErrorMessage:null,ariaExpanded:ee,ariaFlowTo:re,ariaGrabbed:ee,ariaHasPopup:null,ariaHidden:ee,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:re,ariaLevel:ie,ariaLive:null,ariaModal:ee,ariaMultiLine:ee,ariaMultiSelectable:ee,ariaOrientation:null,ariaOwns:re,ariaPlaceholder:null,ariaPosInSet:ie,ariaPressed:ee,ariaReadOnly:ee,ariaRelevant:null,ariaRequired:ee,ariaRoleDescription:re,ariaRowCount:ie,ariaRowIndex:ie,ariaRowSpan:ie,ariaSelected:ee,ariaSetSize:ie,ariaSort:null,ariaValueMax:ie,ariaValueMin:ie,ariaValueNow:ie,ariaValueText:null,role:null}});we=he({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:je,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:oe,acceptCharset:re,accessKey:re,action:null,allow:null,allowFullScreen:te,allowPaymentRequest:te,allowUserMedia:te,alt:null,as:null,async:te,autoCapitalize:null,autoComplete:re,autoFocus:te,autoPlay:te,blocking:re,capture:null,charSet:null,checked:te,cite:null,className:re,cols:ie,colSpan:null,content:null,contentEditable:ee,controls:te,controlsList:re,coords:ie|oe,crossOrigin:null,data:null,dateTime:null,decoding:null,"default":te,defer:te,dir:null,dirName:null,disabled:te,download:ne,draggable:ee,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:te,formTarget:null,headers:re,height:ie,hidden:te,high:ie,href:null,hrefLang:null,htmlFor:re,httpEquiv:re,id:null,imageSizes:null,imageSrcSet:null,inert:te,inputMode:null,integrity:null,is:null,isMap:te,itemId:null,itemProp:re,itemRef:re,itemScope:te,itemType:re,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:te,low:ie,manifest:null,max:null,maxLength:ie,media:null,method:null,min:null,minLength:ie,multiple:te,muted:te,name:null,nonce:null,noModule:te,noValidate:te,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:te,optimum:ie,pattern:null,ping:re,placeholder:null,playsInline:te,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:te,referrerPolicy:null,rel:re,required:te,reversed:te,rows:ie,rowSpan:ie,sandbox:re,scope:null,scoped:te,seamless:te,selected:te,shadowRootClonable:te,shadowRootDelegatesFocus:te,shadowRootMode:null,shape:null,size:ie,sizes:null,slot:null,span:ie,spellCheck:ee,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ie,step:null,style:null,tabIndex:ie,target:null,title:null,translate:null,type:null,typeMustMatch:te,useMap:null,value:ee,width:ie,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:re,axis:null,background:null,bgColor:null,border:ie,borderColor:null,bottomMargin:ie,cellPadding:null,cellSpacing:null,"char":null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:te,declare:te,event:null,face:null,frame:null,frameBorder:null,hSpace:ie,leftMargin:ie,link:null,longDesc:null,lowSrc:null,marginHeight:ie,marginWidth:ie,noResize:te,noHref:te,noShade:te,noWrap:te,object:null,profile:null,prompt:null,rev:null,rightMargin:ie,rules:null,scheme:null,scrolling:ee,standby:null,summary:null,text:null,topMargin:ie,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ie,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:te,disableRemotePlayback:te,prefix:null,property:null,results:ie,security:null,unselectable:null}});ve=he({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:ge,properties:{about:se,accentHeight:ie,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ie,amplitude:ie,arabicForm:null,ascent:ie,attributeName:null,attributeType:null,azimuth:ie,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ie,by:null,calcMode:null,capHeight:ie,className:re,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:ie,diffuseConstant:ie,direction:null,display:null,dur:null,divisor:ie,dominantBaseline:null,download:te,dx:null,dy:null,edgeMode:null,editable:null,elevation:ie,enableBackground:null,end:null,event:null,exponent:ie,externalResourcesRequired:null,fill:null,fillOpacity:ie,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:oe,g2:oe,glyphName:oe,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ie,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ie,horizOriginX:ie,horizOriginY:ie,id:null,ideographic:ie,imageRendering:null,initialVisibility:null,"in":null,in2:null,intercept:ie,k:ie,k1:ie,k2:ie,k3:ie,k4:ie,kernelMatrix:se,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ie,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ie,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:ie,overlineThickness:ie,paintOrder:null,panose1:null,path:null,pathLength:ie,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:re,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ie,pointsAtY:ie,pointsAtZ:ie,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:se,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:se,rev:se,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:se,requiredFeatures:se,requiredFonts:se,requiredFormats:se,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:ie,specularExponent:ie,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ie,strikethroughThickness:ie,string:null,stroke:null,strokeDashArray:se,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ie,strokeOpacity:ie,strokeWidth:null,style:null,surfaceScale:ie,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:se,tabIndex:ie,tableValues:null,target:null,targetX:ie,targetY:ie,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:se,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ie,underlineThickness:ie,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ie,values:null,vAlphabetic:ie,vMathematical:ie,vectorEffect:null,vHanging:ie,vIdeographic:ie,version:null,vertAdvY:ie,vertOriginX:ie,vertOriginY:ie,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ie,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}});ke=/^data[-\w.:]+$/i;Se=/-[a-z]/g;xe=/[A-Z]/g;Ae=Yt([fe,de,ye,be,we],"html");Oe=Yt([fe,de,ye,be,ve],"svg");Me={}.hasOwnProperty;Te=/["&'<>`]/g;Pe=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;Ne=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g;De=/[|\\{}()[\]^$+*?.]/g;Ee=new WeakMap();$e=/[\dA-Fa-f]/;Be=/\d/;Ie=["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"];Ge={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪","int":"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"};qe=["cent","copy","divide","gt","lt","not","para","times"];_e={}.hasOwnProperty;ze={};for(Fe in Ge)_e.call(Ge,Fe)&&(ze[Ge[Fe]]=Fe);Ue=/[^\dA-Za-z]/;Ve=/^>|^->|<!--|-->|--!>|<!-$/g;Je=[">"];Xe=["<",">"];Ze=/[ \t\n\f\r]/g;nn=sn(1);rn=sn(-1);on=[];ln={}.hasOwnProperty;cn=an({body:function body(t,e,n){var i=nn(n,e);return!i||"comment"!==i.type;},caption:un,colgroup:un,dd:function dd(t,e,n){var i=nn(n,e);return!i||"element"===i.type&&("dt"===i.tagName||"dd"===i.tagName);},dt:function dt(t,e,n){var i=nn(n,e);return Boolean(i&&"element"===i.type&&("dt"===i.tagName||"dd"===i.tagName));},head:un,html:function html(t,e,n){var i=nn(n,e);return!i||"comment"!==i.type;},li:function li(t,e,n){var i=nn(n,e);return!i||"element"===i.type&&"li"===i.tagName;},optgroup:function optgroup(t,e,n){var i=nn(n,e);return!i||"element"===i.type&&"optgroup"===i.tagName;},option:function option(t,e,n){var i=nn(n,e);return!i||"element"===i.type&&("option"===i.tagName||"optgroup"===i.tagName);},p:function p(t,e,n){var i=nn(n,e);return i?"element"===i.type&&("address"===i.tagName||"article"===i.tagName||"aside"===i.tagName||"blockquote"===i.tagName||"details"===i.tagName||"div"===i.tagName||"dl"===i.tagName||"fieldset"===i.tagName||"figcaption"===i.tagName||"figure"===i.tagName||"footer"===i.tagName||"form"===i.tagName||"h1"===i.tagName||"h2"===i.tagName||"h3"===i.tagName||"h4"===i.tagName||"h5"===i.tagName||"h6"===i.tagName||"header"===i.tagName||"hgroup"===i.tagName||"hr"===i.tagName||"main"===i.tagName||"menu"===i.tagName||"nav"===i.tagName||"ol"===i.tagName||"p"===i.tagName||"pre"===i.tagName||"section"===i.tagName||"table"===i.tagName||"ul"===i.tagName):!n||!("element"===n.type&&("a"===n.tagName||"audio"===n.tagName||"del"===n.tagName||"ins"===n.tagName||"map"===n.tagName||"noscript"===n.tagName||"video"===n.tagName));},rp:mn,rt:mn,tbody:function tbody(t,e,n){var i=nn(n,e);return!i||"element"===i.type&&("tbody"===i.tagName||"tfoot"===i.tagName);},td:pn,tfoot:function tfoot(t,e,n){return!nn(n,e);},th:pn,thead:function thead(t,e,n){var i=nn(n,e);return Boolean(i&&"element"===i.type&&("tbody"===i.tagName||"tfoot"===i.tagName));},tr:function tr(t,e,n){var i=nn(n,e);return!i||"element"===i.type&&"tr"===i.tagName;}});hn=an({body:function body(t){var e=nn(t,-1,!0);return!(e&&("comment"===e.type||"text"===e.type&&tn(e.value.charAt(0))||"element"===e.type&&("meta"===e.tagName||"link"===e.tagName||"script"===e.tagName||"style"===e.tagName||"template"===e.tagName)));},colgroup:function colgroup(t,e,n){var i=rn(n,e),r=nn(t,-1,!0);if(n&&i&&"element"===i.type&&"colgroup"===i.tagName&&cn(i,n.children.indexOf(i),n))return!1;return Boolean(r&&"element"===r.type&&"col"===r.tagName);},head:function head(t){var e=new Set();var _iterator18=_createForOfIteratorHelper(t.children),_step18;try{for(_iterator18.s();!(_step18=_iterator18.n()).done;){var _n31=_step18.value;if("element"===_n31.type&&("base"===_n31.tagName||"title"===_n31.tagName)){if(e.has(_n31.tagName))return!1;e.add(_n31.tagName);}}}catch(err){_iterator18.e(err);}finally{_iterator18.f();}var n=t.children[0];return!n||"element"===n.type;},html:function html(t){var e=nn(t,-1);return!e||"comment"!==e.type;},tbody:function tbody(t,e,n){var i=rn(n,e),r=nn(t,-1);if(n&&i&&"element"===i.type&&("thead"===i.tagName||"tbody"===i.tagName)&&cn(i,n.children.indexOf(i),n))return!1;return Boolean(r&&"element"===r.type&&"tr"===r.tagName);}});dn={name:[["\t\n\f\r &/=>".split(""),"\t\n\f\r \"&'/=>`".split("")],["\0\t\n\f\r \"&'/<=>".split(""),"\0\t\n\f\r \"&'/<=>`".split("")]],unquoted:[["\t\n\f\r &>".split(""),"\0\t\n\f\r \"&'<=>`".split("")],["\0\t\n\f\r \"&'<=>`".split(""),"\0\t\n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],"double":[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};gn=["<","&"];yn=function(t,e){var n=e||{};function i(e){var _r15;var r=i.invalid;var o=i.handlers;if(e&&Me.call(e,t)){var _n33=String(e[t]);r=Me.call(o,_n33)?o[_n33]:i.unknown;}for(var _len2=arguments.length,n=new Array(_len2>1?_len2-1:0),_key2=1;_key2<_len2;_key2++){n[_key2-1]=arguments[_key2];}if(r)return(_r15=r).call.apply(_r15,[this,e].concat(n));}return i.handlers=n.handlers||{},i.invalid=n.invalid,i.unknown=n.unknown,i;}("type",{invalid:function invalid(t){throw new Error("Expected node, not `"+t+"`");},unknown:function unknown(t){throw new Error("Cannot compile unknown node `"+t.type+"`");},handlers:{comment:function comment(t,e,n,i){return i.settings.bogusComments?"<?"+We(t.value,Object.assign({},i.settings.characterReferences,{subset:Je}))+">":"\x3c!--"+t.value.replace(Ve,function(t){return We(t,Object.assign({},i.settings.characterReferences,{subset:Xe}));})+"--\x3e";},doctype:function doctype(t,e,n,i){return"<!"+(i.settings.upperDoctype?"DOCTYPE":"doctype")+(i.settings.tightDoctype?"":" ")+"html>";},element:function element(t,e,n,i){var r=i.schema,o="svg"!==r.space&&i.settings.omitOptionalTags;var s="svg"===r.space?i.settings.closeEmptyElements:i.settings.voids.includes(t.tagName.toLowerCase());var l=[];var a;"html"===r.space&&"svg"===t.tagName&&(i.schema=Oe);var c=function(t,e){var n=[];var i,r=-1;if(e)for(i in e)if(null!==e[i]&&void 0!==e[i]){var _r16=fn(t,i,e[i]);_r16&&n.push(_r16);}for(;++r<n.length;){var _e33=t.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&'"'!==_e33&&"'"!==_e33&&(n[r]+=" ");}return n.join("");}(i,t.properties),u=i.all("html"===r.space&&"template"===t.tagName?t.content:t);return i.schema=r,u&&(s=!1),!c&&o&&hn(t,e,n)||(l.push("<",t.tagName,c?" "+c:""),s&&("svg"===r.space||i.settings.closeSelfClosing)&&(a=c.charAt(c.length-1),(!i.settings.tightSelfClosing||"/"===a||a&&'"'!==a&&"'"!==a)&&l.push(" "),l.push("/")),l.push(">")),l.push(u),s||o&&cn(t,e,n)||l.push("</"+t.tagName+">"),l.join("");},raw:function raw(t,e,n,i){return i.settings.allowDangerousHtml?t.value:jn(t,0,n,i);},root:function root(t,e,n,i){return i.all(t);},text:jn}});bn={};wn={};vn=[];Rn=/*#__PURE__*/function(_Error3){function Rn(t){var _this14;_classCallCheck(this,Rn);_this14=_callSuper(this,Rn,[t]),_this14.name="ShikiError";return _this14;}_inherits(Rn,_Error3);return _createClass(Rn);}(/*#__PURE__*/_wrapNativeSuper(Error));$n=Object.defineProperty;Bn=function Bn(t,e,n){return function(t,e,n){e in t?$n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;}(t,"symbol"!=_typeof(e)?e+"":e,n),n;};In=new WeakMap();_n=/*#__PURE__*/function(){function _n(){_classCallCheck(this,_n);for(var _len3=arguments.length,t=new Array(_len3),_key3=0;_key3<_len3;_key3++){t[_key3]=arguments[_key3];}if(Bn(this,"_stacks",{}),Bn(this,"lang"),2===t.length){var _e35=t[0],_n35=t[1];this.lang=_n35,this._stacks=_e35;}else{var _e36=t[0],_n36=t[1],i=t[2];this.lang=_n36,this._stacks=_defineProperty({},i,_e36);}}return _createClass(_n,[{key:"themes",get:function get(){return Object.keys(this._stacks);}},{key:"theme",get:function get(){return this.themes[0];}},{key:"_stack",get:function get(){return this._stacks[this.theme];}},{key:"getInternalStack",value:function getInternalStack(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:this.theme;return this._stacks[t];}},{key:"scopes",get:function get(){return zn(this._stacks[this.theme]);}},{key:"getScopes",value:function getScopes(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:this.theme;return zn(this._stacks[t]);}},{key:"toJSON",value:function toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.scopes};}}],[{key:"initial",value:function initial(t,e){return new _n(Object.fromEntries(function(t){return Array.isArray(t)?t:[t];}(e).map(function(t){return[t,Vt];})),t);}}]);}();Hn=[Fn()];Vn=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"];Jn={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};Qn={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"};mi={light:"#333333",dark:"#bbbbbb"};pi={light:"#fffffe",dark:"#1e1e1e"};hi="__shiki_resolved";ji=Object.defineProperty;yi=function yi(t,e,n){return function(t,e,n){e in t?ji(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;}(t,"symbol"!=_typeof(e)?e+"":e,n),n;};bi=/*#__PURE__*/function(_Wt){function bi(t,e,n){var _this15;var i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};_classCallCheck(this,bi);_this15=_callSuper(this,bi,[t]),_this15._resolver=t,_this15._themes=e,_this15._langs=n,_this15._alias=i,yi(_assertThisInitialized(_this15),"_resolvedThemes",new Map()),yi(_assertThisInitialized(_this15),"_resolvedGrammars",new Map()),yi(_assertThisInitialized(_this15),"_langMap",new Map()),yi(_assertThisInitialized(_this15),"_langGraph",new Map()),yi(_assertThisInitialized(_this15),"_textmateThemeCache",new WeakMap()),yi(_assertThisInitialized(_this15),"_loadedThemesCache",null),yi(_assertThisInitialized(_this15),"_loadedLanguagesCache",null),_this15._themes.map(function(t){return _this15.loadTheme(t);}),_this15.loadLanguages(_this15._langs);return _this15;}_inherits(bi,_Wt);return _createClass(bi,[{key:"getTheme",value:function getTheme(t){return"string"==typeof t?this._resolvedThemes.get(t):this.loadTheme(t);}},{key:"loadTheme",value:function loadTheme(t){var e=di(t);return e.name&&(this._resolvedThemes.set(e.name,e),this._loadedThemesCache=null),e;}},{key:"getLoadedThemes",value:function getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=_toConsumableArray(this._resolvedThemes.keys())),this._loadedThemesCache;}},{key:"setTheme",value:function setTheme(t){var e=this._textmateThemeCache.get(t);e||(e=B.createFromRawTheme(t),this._textmateThemeCache.set(t,e)),this._syncRegistry.setTheme(e);}},{key:"getGrammar",value:function getGrammar(t){if(this._alias[t]){var _e47=new Set([t]);for(;this._alias[t];){if(t=this._alias[t],_e47.has(t))throw new Rn("Circular alias `".concat(Array.from(_e47).join(" -> ")," -> ").concat(t,"`"));_e47.add(t);}}return this._resolvedGrammars.get(t);}},{key:"loadLanguage",value:function loadLanguage(t){var _this16=this;if(this.getGrammar(t.name))return;var e=new Set(_toConsumableArray(this._langMap.values()).filter(function(e){var _e$embeddedLangsLazy;return(_e$embeddedLangsLazy=e.embeddedLangsLazy)===null||_e$embeddedLangsLazy===void 0?void 0:_e$embeddedLangsLazy.includes(t.name);}));this._resolver.addLanguage(t);var n={balancedBracketSelectors:t.balancedBracketSelectors||["*"],unbalancedBracketSelectors:t.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(t.scopeName,t);var i=this.loadGrammarWithConfiguration(t.scopeName,1,n);if(i.name=t.name,this._resolvedGrammars.set(t.name,i),t.aliases&&t.aliases.forEach(function(e){_this16._alias[e]=t.name;}),this._loadedLanguagesCache=null,e.size){var _iterator38=_createForOfIteratorHelper(e),_step38;try{for(_iterator38.s();!(_step38=_iterator38.n()).done;){var _this$_syncRegistry,_this$_syncRegistry2;var _t98=_step38.value;this._resolvedGrammars["delete"](_t98.name),this._loadedLanguagesCache=null,(_this$_syncRegistry=this._syncRegistry)!==null&&_this$_syncRegistry!==void 0&&(_this$_syncRegistry=_this$_syncRegistry._injectionGrammars)!==null&&_this$_syncRegistry!==void 0&&_this$_syncRegistry["delete"](_t98.scopeName),(_this$_syncRegistry2=this._syncRegistry)!==null&&_this$_syncRegistry2!==void 0&&(_this$_syncRegistry2=_this$_syncRegistry2._grammars)!==null&&_this$_syncRegistry2!==void 0&&_this$_syncRegistry2["delete"](_t98.scopeName),this.loadLanguage(this._langMap.get(_t98.name));}}catch(err){_iterator38.e(err);}finally{_iterator38.f();}}}},{key:"dispose",value:function dispose(){_get(_getPrototypeOf(bi.prototype),"dispose",this).call(this),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null;}},{key:"loadLanguages",value:function loadLanguages(t){var _iterator39=_createForOfIteratorHelper(t),_step39;try{for(_iterator39.s();!(_step39=_iterator39.n()).done;){var _e50=_step39.value;this.resolveEmbeddedLanguages(_e50);}}catch(err){_iterator39.e(err);}finally{_iterator39.f();}var e=Array.from(this._langGraph.entries()),n=e.filter(function(_ref13){var _ref14=_slicedToArray(_ref13,2),t=_ref14[0],e=_ref14[1];return!e;});if(n.length){var _t99=e.filter(function(_ref15){var _e$embeddedLangs;var _ref16=_slicedToArray(_ref15,2),t=_ref16[0],e=_ref16[1];return e&&((_e$embeddedLangs=e.embeddedLangs)===null||_e$embeddedLangs===void 0?void 0:_e$embeddedLangs.some(function(t){return n.map(function(_ref17){var _ref18=_slicedToArray(_ref17,1),t=_ref18[0];return t;}).includes(t);}));}).filter(function(t){return!n.includes(t);});throw new Rn("Missing languages ".concat(n.map(function(_ref19){var _ref20=_slicedToArray(_ref19,1),t=_ref20[0];return"`".concat(t,"`");}).join(", "),", required by ").concat(_t99.map(function(_ref21){var _ref22=_slicedToArray(_ref21,1),t=_ref22[0];return"`".concat(t,"`");}).join(", ")));}for(var _i24=0,_e48=e;_i24<_e48.length;_i24++){var _e48$_i=_slicedToArray(_e48[_i24],2),_t100=_e48$_i[0],_n47=_e48$_i[1];this._resolver.addLanguage(_n47);}for(var _i25=0,_e49=e;_i25<_e49.length;_i25++){var _e49$_i=_slicedToArray(_e49[_i25],2),_t101=_e49$_i[0],_n48=_e49$_i[1];this.loadLanguage(_n48);}}},{key:"getLoadedLanguages",value:function getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=_toConsumableArray(new Set([].concat(_toConsumableArray(this._resolvedGrammars.keys()),_toConsumableArray(Object.keys(this._alias)))))),this._loadedLanguagesCache;}},{key:"resolveEmbeddedLanguages",value:function resolveEmbeddedLanguages(t){if(this._langMap.set(t.name,t),this._langGraph.set(t.name,t),t.embeddedLangs){var _iterator40=_createForOfIteratorHelper(t.embeddedLangs),_step40;try{for(_iterator40.s();!(_step40=_iterator40.n()).done;){var _e51=_step40.value;this._langGraph.set(_e51,this._langMap.get(_e51));}}catch(err){_iterator40.e(err);}finally{_iterator40.f();}}}}]);}(Wt);wi=Object.defineProperty;vi=function vi(t,e,n){return function(t,e,n){e in t?wi(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;}(t,"symbol"!=_typeof(e)?e+"":e,n),n;};ki=/*#__PURE__*/function(){function ki(t,e){var _this17=this;_classCallCheck(this,ki);vi(this,"_langs",new Map()),vi(this,"_scopeToLang",new Map()),vi(this,"_injections",new Map()),vi(this,"_onigLib"),this._onigLib={createOnigScanner:function createOnigScanner(e){return t.createScanner(e);},createOnigString:function createOnigString(e){return t.createString(e);}},e.forEach(function(t){return _this17.addLanguage(t);});}return _createClass(ki,[{key:"onigLib",get:function get(){return this._onigLib;}},{key:"getLangRegistration",value:function getLangRegistration(t){return this._langs.get(t);}},{key:"loadGrammar",value:function loadGrammar(t){return this._scopeToLang.get(t);}},{key:"addLanguage",value:function addLanguage(t){var _this18=this;this._langs.set(t.name,t),t.aliases&&t.aliases.forEach(function(e){_this18._langs.set(e,t);}),this._scopeToLang.set(t.scopeName,t),t.injectTo&&t.injectTo.forEach(function(e){_this18._injections.get(e)||_this18._injections.set(e,[]),_this18._injections.get(e).push(t.scopeName);});}},{key:"getInjections",value:function getInjections(t){var e=t.split(".");var n=[];for(var _t102=1;_t102<=e.length;_t102++){var i=e.slice(0,_t102).join(".");n=[].concat(_toConsumableArray(n),_toConsumableArray(this._injections.get(i)||[]));}return n;}}]);}();Si=0;Ai=Li({langs:u,themes:p,engine:function engine(){return L(_context["import"]("../wasm-69304cd7.cjs.js"));}});_export("N",Oi=/*#__PURE__*/function(_o24){function Oi(){var _this19;_classCallCheck(this,Oi);_this19=_callSuper(this,Oi,arguments),_this19.code="",_this19.language="javascript",_this19.theme="min-light",_this19.highlightedCode="";return _this19;}_inherits(Oi,_o24);return _createClass(Oi,[{key:"connectedCallback",value:function(){var _connectedCallback=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(){return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:_context6.next=2;return Ai({themes:_toConsumableArray(s),langs:_toConsumableArray(l)});case 2:this.highlighter=_context6.sent;case 3:case"end":return _context6.stop();}},_callee5,this);}));function connectedCallback(){return _connectedCallback.apply(this,arguments);}return connectedCallback;}()},{key:"updated",value:function(){var _updated=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(t){return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:_context7.t0=t.has("code")||t.has("language")||t.has("theme");if(!_context7.t0){_context7.next=5;break;}_context7.next=4;return this.highlighter.codeToHtml(this.code,{lang:this.language,theme:this.theme});case 4:this.highlightedCode=_context7.sent;case 5:case"end":return _context7.stop();}},_callee6,this);}));function updated(_x9){return _updated.apply(this,arguments);}return updated;}()},{key:"render",value:function render(){return e(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n\t\t\t\t<div class=\"code-container\" .innerHTML=","></div>\n\t\t\t"])),this.highlightedCode);}}],[{key:"styles",get:function get(){return[r];}}]);}(o));t([a({type:String})],Oi.prototype,"code",void 0),t([a({type:String,reflect:!0})],Oi.prototype,"language",void 0),t([a({type:String,reflect:!0})],Oi.prototype,"theme",void 0),t([n()],Oi.prototype,"highlightedCode",void 0),_export("N",Oi=t([i("nile-highlighter")],Oi));}};});
|
1
|
+
System.register(["tslib","../index-c7ad3b47.cjs.js","lit/decorators.js","./nile-highlighter.css.cjs.js","../internal/nile-element.cjs.js","../property-217fe924.cjs.js","lit"],function(_export,_context){"use strict";var t,e,n,i,r,o,s,_templateObject,_excluded,l,a,c,u,m,p,d,g,j,y,b,w,v,O,M,E,R,$,I,G,q,_,z,F,H,U,X,Y,K,Q,it,rt,ot,st,lt,ct,ut,mt,pt,ht,dt,ft,gt,jt,yt,bt,wt,vt,kt,St,xt,Ct,Lt,At,Nt,$t,It,Gt,qt,_t,zt,Ft,Ht,Ut,Wt,Vt,Yt,Kt,Qt,Zt,te,ee,ne,ie,re,se,le,ae,ue,pe,he,ge,je,ye,be,we,ve,ke,Ce,Le,Ae,Oe,Me,Te,Pe,Ne,Ee,Re,$e,Be,Ie,Ge,qe,_e,ze,Ue,We,Ve,Ke,tn,en,nn,on,ln,mn,pn,dn,gn,jn,yn,bn,Dn,En,Rn,$n,Gn,Fn,Un,Wn,Yn,ci,ui,mi,fi,gi,ji,yi,bi,wi,vi,Ci,Li;function _taggedTemplateLiteral(strings,raw){if(!raw){raw=strings.slice(0);}return Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}));}function _get(){if(typeof Reflect!=="undefined"&&Reflect.get){_get=Reflect.get.bind();}else{_get=function _get(target,property,receiver){var base=_superPropBase(target,property);if(!base)return;var desc=Object.getOwnPropertyDescriptor(base,property);if(desc.get){return desc.get.call(arguments.length<3?target:receiver);}return desc.value;};}return _get.apply(this,arguments);}function _superPropBase(object,property){while(!Object.prototype.hasOwnProperty.call(object,property)){object=_getPrototypeOf(object);if(object===null)break;}return object;}function _objectWithoutProperties(source,excluded){if(source==null)return{};var target=_objectWithoutPropertiesLoose(source,excluded);var key,i;if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i<sourceSymbolKeys.length;i++){key=sourceSymbolKeys[i];if(excluded.indexOf(key)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(source,key))continue;target[key]=source[key];}}return target;}function _objectWithoutPropertiesLoose(source,excluded){if(source==null)return{};var target={};for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){if(excluded.indexOf(key)>=0)continue;target[key]=source[key];}}return target;}function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArray(iter){if(typeof Symbol!=="undefined"&&iter[Symbol.iterator]!=null||iter["@@iterator"]!=null)return Array.from(iter);}function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr);}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t["return"]&&(u=t["return"](),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr;}function _createForOfIteratorHelper(o,allowArrayLike){var it=typeof Symbol!=="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&typeof o.length==="number"){if(it)o=it;var i=0;var F=function F(){};return{s:F,n:function n(){if(i>=o.length)return{done:true};return{done:false,value:o[i++]};},e:function(_e57){function e(_x13){return _e57.apply(this,arguments);}e.toString=function(){return _e57.toString();};return e;}(function(e){throw e;}),f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var normalCompletion=true,didErr=false,err;return{s:function s(){it=it.call(o);},n:function n(){var step=it.next();normalCompletion=step.done;return step;},e:function(_e58){function e(_x14){return _e58.apply(this,arguments);}e.toString=function(){return _e58.toString();};return e;}(function(e){didErr=true;err=e;}),f:function f(){try{if(!normalCompletion&&it["return"]!=null)it["return"]();}finally{if(didErr)throw err;}}};}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2;}function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return e;};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value;},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e];}try{define({},"");}catch(t){define=function define(t,e,r){return t[e]=r;};}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a;}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)};}catch(t){return{type:"throw",arg:t};}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,function(){return this;});var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach(function(e){define(t,e,function(t){return this._invoke(e,t);});});}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then(function(t){invoke("next",t,i,a);},function(t){invoke("throw",t,i,a);}):e.resolve(h).then(function(t){u.value=t,i(u);},function(t){return invoke("throw",t,i,a);});}a(c.arg);}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e(function(e,r){invoke(t,n,e,r);});}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0};}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u;}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg);}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done};}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg);}};}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y);}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e);}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e;}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0);}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next;};return i.next=i;}}throw new TypeError(_typeof(e)+" is not iterable");}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name));},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t;},e.awrap=function(t){return{__await:t};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,function(){return this;}),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next();});},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,function(){return this;}),define(g,"toString",function(){return"[object Generator]";}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next;}return next.done=!0,next;};},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t);},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval;},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o;}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break;}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a);},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y;},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y;}},"catch":function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r);}return o;}}throw Error("illegal catch attempt");},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y;}},e;}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(self,call){if(call&&(_typeof(call)==="object"||typeof call==="function")){return call;}else if(call!==void 0){throw new TypeError("Derived constructors may only return object or undefined");}return _assertThisInitialized(self);}function _assertThisInitialized(self){if(self===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function");}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});Object.defineProperty(subClass,"prototype",{writable:false});if(superClass)_setPrototypeOf(subClass,superClass);}function _wrapNativeSuper(Class){var _cache=typeof Map==="function"?new Map():undefined;_wrapNativeSuper=function _wrapNativeSuper(Class){if(Class===null||!_isNativeFunction(Class))return Class;if(typeof Class!=="function"){throw new TypeError("Super expression must either be null or a function");}if(typeof _cache!=="undefined"){if(_cache.has(Class))return _cache.get(Class);_cache.set(Class,Wrapper);}function Wrapper(){return _construct(Class,arguments,_getPrototypeOf(this).constructor);}Wrapper.prototype=Object.create(Class.prototype,{constructor:{value:Wrapper,enumerable:false,writable:true,configurable:true}});return _setPrototypeOf(Wrapper,Class);};return _wrapNativeSuper(Class);}function _construct(t,e,r){if(_isNativeReflectConstruct())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,e);var p=new(t.bind.apply(t,o))();return r&&_setPrototypeOf(p,r.prototype),p;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _isNativeFunction(fn){try{return Function.toString.call(fn).indexOf("[native code]")!==-1;}catch(e){return typeof fn==="function";}}function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(o,p){o.__proto__=p;return o;};return _setPrototypeOf(o,p);}function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o);};return _getPrototypeOf(o);}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable;})),t.push.apply(t,o);}return t;}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){_defineProperty(e,r,t[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));});}return e;}function _defineProperty(obj,key,value){key=_toPropertyKey(key);if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function h(){return"undefined"!=typeof performance?performance.now():Date.now();}function f(_x){return _f.apply(this,arguments);}function _f(){_f=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee9(t){var e,n,i,r,o,s,l,a;return _regeneratorRuntime().wrap(function _callee9$(_context10){while(1)switch(_context10.prev=_context10.next){case 0:l=function _l9(t,e){return t?function(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:1024;var i=e+n;var r=e;for(;t[r]&&!(r>=i);)++r;if(r-e>16&&t.buffer&&s)return s.decode(t.subarray(e,r));var o="";for(;e<r;){var _n50=t[e++];if(!(128&_n50)){o+=String.fromCharCode(_n50);continue;}var _i26=63&t[e++];if(192==(224&_n50)){o+=String.fromCharCode((31&_n50)<<6|_i26);continue;}var _r30=63&t[e++];if(_n50=224==(240&_n50)?(15&_n50)<<12|_i26<<6|_r30:(7&_n50)<<18|_i26<<12|_r30<<6|63&t[e++],_n50<65536)o+=String.fromCharCode(_n50);else{var _t103=_n50-65536;o+=String.fromCharCode(55296|_t103>>10,56320|1023&_t103);}}return o;}(i.HEAPU8,t,e):"";};o=function _o25(t){try{return e.grow(t-n.byteLength+65535>>>16),r(e.buffer),1;}catch(_unused){}};r=function _r32(t){n=t,i.HEAPU8=new Uint8Array(t),i.HEAPU32=new Uint32Array(t);};i={};s="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;a={emscripten_get_now:h,emscripten_memcpy_big:function emscripten_memcpy_big(t,e,n){i.HEAPU8.copyWithin(t,e,e+n);},emscripten_resize_heap:function emscripten_resize_heap(t){var e=i.HEAPU8.length,n=2147483648;if((t>>>=0)>n)return!1;for(var _i27=1;_i27<=4;_i27*=2){var _r31=e*(1+.2/_i27);_r31=Math.min(_r31,t+100663296);if(o(Math.min(n,d(Math.max(t,_r31),65536))))return!0;}return!1;},fd_write:function fd_write(){return 0;}};_context10.next=8;return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(){var n,o;return _regeneratorRuntime().wrap(function _callee8$(_context9){while(1)switch(_context9.prev=_context9.next){case 0:n={env:a,wasi_snapshot_preview1:a};_context9.next=3;return t(n);case 3:o=_context9.sent;e=o.memory,r(e.buffer),Object.assign(i,o),i.UTF8ToString=l;case 5:case"end":return _context9.stop();}},_callee8);}))();case 8:return _context10.abrupt("return",i);case 9:case"end":return _context10.stop();}},_callee9);}));return _f.apply(this,arguments);}function k(t){if(g)return g;return g=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:_context4.next=2;return f(/*#__PURE__*/function(){var _ref2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(e){var n,i;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:n=t;_context3.next=3;return n;case 3:n=_context3.sent;_context3.t0="function"==typeof n;if(!_context3.t0){_context3.next=9;break;}_context3.next=8;return n(e);case 8:n=_context3.sent;case 9:_context3.t1="function"==typeof n;if(!_context3.t1){_context3.next=14;break;}_context3.next=13;return n(e);case 13:n=_context3.sent;case 14:if(!("function"==typeof n.instantiator)){_context3.next=20;break;}_context3.next=17;return n.instantiator(e);case 17:n=_context3.sent;_context3.next=57;break;case 20:if(function(t){return"function"==typeof t["default"];}(n)){_context3.next=54;break;}(function(t){return void 0!==t.data;})(n)&&(n=n.data);if(function(t){return"undefined"!=typeof Response&&t instanceof Response;}(n)){_context3.next=42;break;}if(function(t,_Buffer$isBuffer,_Buffer){return"undefined"!=typeof ArrayBuffer&&(t instanceof ArrayBuffer||ArrayBuffer.isView(t))||"undefined"!=typeof Buffer&&((_Buffer$isBuffer=(_Buffer=Buffer).isBuffer)===null||_Buffer$isBuffer===void 0?void 0:_Buffer$isBuffer.call(_Buffer,t))||"undefined"!=typeof SharedArrayBuffer&&t instanceof SharedArrayBuffer||"undefined"!=typeof Uint32Array&&t instanceof Uint32Array;}(n)){_context3.next=37;break;}if(!(n instanceof WebAssembly.Module)){_context3.next=30;break;}_context3.next=27;return S(n)(e);case 27:n=_context3.sent;_context3.next=35;break;case 30:_context3.t2="default"in n&&n["default"]instanceof WebAssembly.Module;if(!_context3.t2){_context3.next=35;break;}_context3.next=34;return S(n["default"])(e);case 34:n=_context3.sent;case 35:_context3.next=40;break;case 37:_context3.next=39;return S(n)(e);case 39:n=_context3.sent;case 40:_context3.next=52;break;case 42:if(!("function"==typeof WebAssembly.instantiateStreaming)){_context3.next=48;break;}_context3.next=45;return(i=n,function(t){return WebAssembly.instantiateStreaming(i,t);})(e);case 45:_context3.t3=_context3.sent;_context3.next=51;break;case 48:_context3.next=50;return function(t){return/*#__PURE__*/function(){var _ref3=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(e){var n;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=2;return t.arrayBuffer();case 2:n=_context2.sent;return _context2.abrupt("return",WebAssembly.instantiate(n,e));case 4:case"end":return _context2.stop();}},_callee);}));return function(_x3){return _ref3.apply(this,arguments);};}();}(n)(e);case 50:_context3.t3=_context3.sent;case 51:n=_context3.t3;case 52:_context3.next=57;break;case 54:_context3.next=56;return n["default"](e);case 56:n=_context3.sent;case 57:"instance"in n&&(n=n.instance);"exports"in n&&(n=n.exports);return _context3.abrupt("return",n);case 60:case"end":return _context3.stop();}},_callee2);}));return function(_x2){return _ref2.apply(this,arguments);};}());case 2:y=_context4.sent;case 3:case"end":return _context4.stop();}},_callee3);}))(),g;}function S(t){return function(e){return WebAssembly.instantiate(t,e);};}function x(_x4){return _x5.apply(this,arguments);}function _x5(){_x5=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee10(t){return _regeneratorRuntime().wrap(function _callee10$(_context11){while(1)switch(_context11.prev=_context11.next){case 0:_context11.t0=t;if(!_context11.t0){_context11.next=4;break;}_context11.next=4;return k(t);case 4:return _context11.abrupt("return",{createScanner:function createScanner(t){return new v(t);},createString:function createString(t){return new w(t);}});case 5:case"end":return _context11.stop();}},_callee10);}));return _x5.apply(this,arguments);}function C(t){return Array.isArray(t)?function(t){var e=[];for(var _n7=0,i=t.length;_n7<i;_n7++)e[_n7]=C(t[_n7]);return e;}(t):"object"==_typeof(t)?function(t){var e={};for(var _n8 in t)e[_n8]=C(t[_n8]);return e;}(t):t;}function L(t){for(var _len=arguments.length,e=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){e[_key-1]=arguments[_key];}return e.forEach(function(e){for(var _n9 in e)t[_n9]=e[_n9];}),t;}function A(t){var e=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===e?t:~e==t.length-1?A(t.substring(0,t.length-1)):t.substr(1+~e);}function T(t,e){return t<e?-1:t>e?1:0;}function P(t,e){if(null===t&&null===e)return 0;if(!t)return-1;if(!e)return 1;var n=t.length,i=e.length;if(n===i){for(var _i5=0;_i5<n;_i5++){var _n10=T(t[_i5],e[_i5]);if(0!==_n10)return _n10;}return 0;}return n-i;}function N(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 D(t){return t.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&");}function B(t,e){return e===t||t.startsWith(e)&&"."===t[e.length];}function W(t,e){var n=[],i=function(t){var e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=e.exec(t);return{next:function next(){if(!n)return null;var i=n[0];return n=e.exec(t),i;}};}(t);var r=i.next();for(;null!==r;){var _t24=0;if(2===r.length&&":"===r.charAt(1)){switch(r.charAt(0)){case"R":_t24=1;break;case"L":_t24=-1;break;default:console.log("Unknown priority ".concat(r," in scope selector"));}r=i.next();}var _e10=s();if(n.push({matcher:_e10,priority:_t24}),","!==r)break;r=i.next();}return n;function o(){if("-"===r){r=i.next();var _t25=o();return function(e){return!!_t25&&!_t25(e);};}if("("===r){r=i.next();var _t26=function(){var t=[];var e=s();for(;e&&(t.push(e),"|"===r||","===r);){do{r=i.next();}while("|"===r||","===r);e=s();}return function(e){return t.some(function(t){return t(e);});};}();return")"===r&&(r=i.next()),_t26;}if(V(r)){var _t27=[];do{_t27.push(r),r=i.next();}while(V(r));return function(n){return e(_t27,n);};}return null;}function s(){var t=[];var e=o();for(;e;)t.push(e),e=o();return function(e){return t.every(function(t){return t(e);});};}}function V(t){return!!t&&!!t.match(/[\w\.:]+/);}function J(t){"function"==typeof t.dispose&&t.dispose();}function Z(t,e,n,i){var r=n.lookup(t.scopeName);if(!r){if(t.scopeName===e)throw new Error("No grammar provided for <".concat(e,">"));return;}var o=n.lookup(e);t instanceof X?et({baseGrammar:o,selfGrammar:r},i):tt(t.ruleName,{baseGrammar:o,selfGrammar:r,repository:r.repository},i);var s=n.injections(t.scopeName);if(s){var _iterator4=_createForOfIteratorHelper(s),_step4;try{for(_iterator4.s();!(_step4=_iterator4.n()).done;){var _t29=_step4.value;i.add(new X(_t29));}}catch(err){_iterator4.e(err);}finally{_iterator4.f();}}}function tt(t,e,n){if(e.repository&&e.repository[t]){nt([e.repository[t]],e,n);}}function et(t,e){t.selfGrammar.patterns&&Array.isArray(t.selfGrammar.patterns)&&nt(t.selfGrammar.patterns,_objectSpread(_objectSpread({},t),{},{repository:t.selfGrammar.repository}),e),t.selfGrammar.injections&&nt(Object.values(t.selfGrammar.injections),_objectSpread(_objectSpread({},t),{},{repository:t.selfGrammar.repository}),e);}function nt(t,e,n){var _iterator5=_createForOfIteratorHelper(t),_step5;try{for(_iterator5.s();!(_step5=_iterator5.n()).done;){var i=_step5.value;if(n.visitedRule.has(i))continue;n.visitedRule.add(i);var _t30=i.repository?L({},e.repository,i.repository):e.repository;Array.isArray(i.patterns)&&nt(i.patterns,_objectSpread(_objectSpread({},e),{},{repository:_t30}),n);var _r8=i.include;if(!_r8)continue;var _o6=at(_r8);switch(_o6.kind){case 0:et(_objectSpread(_objectSpread({},e),{},{selfGrammar:e.baseGrammar}),n);break;case 1:et(e,n);break;case 2:tt(_o6.ruleName,_objectSpread(_objectSpread({},e),{},{repository:_t30}),n);break;case 3:case 4:var _i6=_o6.scopeName===e.selfGrammar.scopeName?e.selfGrammar:_o6.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(_i6){var _r9={baseGrammar:e.baseGrammar,selfGrammar:_i6,repository:_t30};4===_o6.kind?tt(_o6.ruleName,_r9,n):et(_r9,n);}else 4===_o6.kind?n.add(new Y(_o6.scopeName,_o6.ruleName)):n.add(new X(_o6.scopeName));}}}catch(err){_iterator5.e(err);}finally{_iterator5.f();}}function at(t){if("$base"===t)return new it();if("$self"===t)return new rt();var e=t.indexOf("#");if(-1===e)return new st(t);if(0===e)return new ot(t.substring(1));{var _n19=t.substring(0,e),i=t.substring(e+1);return new lt(_n19,i);}}function Ot(t,e,n,i,r,o,s,l){var a=e.content.length;var c=!1,u=-1;if(s){var _s8=function(t,e,n,i,r,o){var s=r.beginRuleCapturedEOL?0:-1;var l=[];for(var _e22=r;_e22;_e22=_e22.pop()){var _n23=_e22.getRule(t);_n23 instanceof yt&&l.push({rule:_n23,stack:_e22});}for(var _a4=l.pop();_a4;_a4=l.pop()){var _Tt=Tt(_a4.rule,t,_a4.stack.endRule,n,i===s),_l4=_Tt.ruleScanner,_c4=_Tt.findOptions,_u3=_l4.findNextMatchSync(e,i,_c4);if(!_u3){r=_a4.stack.pop();break;}if(_u3.ruleId!==pt){r=_a4.stack.pop();break;}_u3.captureIndices&&_u3.captureIndices.length&&(o.produce(_a4.stack,_u3.captureIndices[0].start),Pt(t,e,n,_a4.stack,o,_a4.rule.whileCaptures,_u3.captureIndices),o.produce(_a4.stack,_u3.captureIndices[0].end),s=_u3.captureIndices[0].end,_u3.captureIndices[0].end>i&&(i=_u3.captureIndices[0].end,n=!1));}return{stack:r,linePos:i,anchorPosition:s,isFirstLine:n};}(t,e,n,i,r,o);r=_s8.stack,i=_s8.linePos,n=_s8.isFirstLine,u=_s8.anchorPosition;}var m=Date.now();for(;!c;){if(0!==l){if(Date.now()-m>l)return new At(r,!0);}p();}return new At(r,!1);function p(){var s=function(t,e,n,i,r,o){var s=function(t,e,n,i,r,o){var s=r.getRule(t),_Mt=Mt(s,t,r.endRule,n,i===o),l=_Mt.ruleScanner,a=_Mt.findOptions,c=l.findNextMatchSync(e,i,a);if(c)return{captureIndices:c.captureIndices,matchedRuleId:c.ruleId};return null;}(t,e,n,i,r,o),l=t.getInjections();if(0===l.length)return s;var a=function(t,e,n,i,r,o,s){var l,a=Number.MAX_VALUE,c=null,u=0;var m=o.contentNameScopesList.getScopeNames();for(var _o12=0,_p=t.length;_o12<_p;_o12++){var _p2=t[_o12];if(!_p2.matcher(m))continue;var _h=e.getRule(_p2.ruleId),_Mt2=Mt(_h,e,null,i,r===s),_d=_Mt2.ruleScanner,_f2=_Mt2.findOptions,_g=_d.findNextMatchSync(n,r,_f2);if(!_g)continue;var _j=_g.captureIndices[0].start;if(!(_j>=a)&&(a=_j,c=_g.captureIndices,l=_g.ruleId,u=_p2.priority,a===r))break;}if(c)return{priorityMatch:-1===u,captureIndices:c,matchedRuleId:l};return null;}(l,t,e,n,i,r,o);if(!a)return s;if(!s)return a;var c=s.captureIndices[0].start,u=a.captureIndices[0].start;if(u<c||a.priorityMatch&&u===c)return a;return s;}(t,e,n,i,r,u);if(!s)return o.produce(r,a),void(c=!0);var l=s.captureIndices,m=s.matchedRuleId,p=!!(l&&l.length>0)&&l[0].end>i;if(m===mt){var _s9=r.getRule(t);o.produce(r,l[0].start),r=r.withContentNameScopesList(r.nameScopesList),Pt(t,e,n,r,o,_s9.endCaptures,l),o.produce(r,l[0].end);var _m=r;if(r=r.parent,u=_m.getAnchorPos(),!p&&_m.getEnterPos()===i)return r=_m,o.produce(r,a),void(c=!0);}else{var _s10=t.getRule(m);o.produce(r,l[0].start);var _h2=r,_d2=_s10.getName(e.content,l),_f3=r.contentNameScopesList.pushAttributed(_d2,t);if(r=r.push(m,i,u,l[0].end===a,null,_f3,_f3),_s10 instanceof jt){var _i7=_s10;Pt(t,e,n,r,o,_i7.beginCaptures,l),o.produce(r,l[0].end),u=l[0].end;var _m2=_i7.getContentName(e.content,l),_d3=_f3.pushAttributed(_m2,t);if(r=r.withContentNameScopesList(_d3),_i7.endHasBackReferences&&(r=r.withEndRule(_i7.getEndWithResolvedBackReferences(e.content,l))),!p&&_h2.hasSameRuleAs(r))return r=r.pop(),o.produce(r,a),void(c=!0);}else if(_s10 instanceof yt){var _i8=_s10;Pt(t,e,n,r,o,_i8.beginCaptures,l),o.produce(r,l[0].end),u=l[0].end;var _m3=_i8.getContentName(e.content,l),_d4=_f3.pushAttributed(_m3,t);if(r=r.withContentNameScopesList(_d4),_i8.whileHasBackReferences&&(r=r.withEndRule(_i8.getWhileWithResolvedBackReferences(e.content,l))),!p&&_h2.hasSameRuleAs(r))return r=r.pop(),o.produce(r,a),void(c=!0);}else{if(Pt(t,e,n,r,o,_s10.captures,l),o.produce(r,l[0].end),r=r.pop(),!p)return r=r.safePop(),o.produce(r,a),void(c=!0);}}l[0].end>i&&(i=l[0].end,n=!1);}}function Mt(t,e,n,i,r){return{ruleScanner:t.compileAG(e,n,i,r),findOptions:0};}function Tt(t,e,n,i,r){return{ruleScanner:t.compileWhileAG(e,n,i,r),findOptions:0};}function Pt(t,e,n,i,r,o,s){if(0===o.length)return;var l=e.content,a=Math.min(o.length,s.length),c=[],u=s[0].end;for(var _e23=0;_e23<a;_e23++){var _a5=o[_e23];if(null===_a5)continue;var _m4=s[_e23];if(0===_m4.length)continue;if(_m4.start>u)break;for(;c.length>0&&c[c.length-1].endPos<=_m4.start;)r.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?r.produceFromScopes(c[c.length-1].scopes,_m4.start):r.produce(i,_m4.start),_a5.retokenizeCapturedWithRuleId){var _e24=_a5.getName(l,s),_o13=i.contentNameScopesList.pushAttributed(_e24,t),_c5=_a5.getContentName(l,s),_u4=_o13.pushAttributed(_c5,t),_p3=i.push(_a5.retokenizeCapturedWithRuleId,_m4.start,-1,!1,null,_o13,_u4),_h3=t.createOnigString(l.substring(0,_m4.end));Ot(t,_h3,n&&0===_m4.start,_m4.start,_p3,r,!1,0),J(_h3);continue;}var _p4=_a5.getName(l,s);if(null!==_p4){var _e25=(c.length>0?c[c.length-1].scopes:i.contentNameScopesList).pushAttributed(_p4,t);c.push(new Nt(_e25,_m4.end));}}for(;c.length>0;)r.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();}function Dt(t,e,n,i,r){var o=W(e,Et),s=bt.getCompiledRuleId(n,i,r.repository);var _iterator9=_createForOfIteratorHelper(o),_step9;try{for(_iterator9.s();!(_step9=_iterator9.n()).done;){var _n24=_step9.value;t.push({debugSelector:e,matcher:_n24.matcher,ruleId:s,grammar:r,priority:_n24.priority});}}catch(err){_iterator9.e(err);}finally{_iterator9.f();}}function Et(t,e){if(e.length<t.length)return!1;var n=0;return t.every(function(t){for(var i=n;i<e.length;i++)if(Rt(e[i],t))return n=i+1,!0;return!1;});}function Rt(t,e){if(!t)return!1;if(t===e)return!0;var n=e.length;return t.length>n&&t.substr(0,n)===e&&"."===t[n];}function Bt(t,e){return(t=C(t)).repository=t.repository||{},t.repository.$self={$vscodeTextmateLocation:t.$vscodeTextmateLocation,patterns:t.patterns,name:t.scopeName},t.repository.$base=e||t.repository.$self,t;}function Jt(t,e){var n={},i={};var r=-1;for(;++r<t.length;)Object.assign(n,t[r].property),Object.assign(i,t[r].normal);return new Vt(n,i,e);}function Xt(t){return t.toLowerCase();}function oe(){return Math.pow(2,++Kt);}function ce(t,e,n){n&&(t[e]=n);}function me(t){var e={},n={};var i;for(i in t.properties)if(ue.call(t.properties,i)){var _r14=t.properties[i],_o16=new ae(i,t.transform(t.attributes||{},i),_r14,t.space);t.mustUseProperty&&t.mustUseProperty.includes(i)&&(_o16.mustUseProperty=!0),e[i]=_o16,n[Xt(i)]=i,n[Xt(_o16.attribute)]=i;}return new Vt(e,n,t.space);}function de(t,e){return e in t?t[e]:e;}function fe(t,e){return de(t,e.toLowerCase());}function Se(t){return"-"+t.toLowerCase();}function xe(t){return t.charAt(1).toUpperCase();}function De(t,e){return t=t.replace(e.subset?function(t){var e=Ne.get(t);e||(e=function(t){var e=[];var n=-1;for(;++n<t.length;)e.push(t[n].replace(Pe,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g");}(t),Ne.set(t,e));return e;}(e.subset):Oe,n),e.subset||e.escapeOnly?t:t.replace(Me,function(t,n,i){return e.format(1024*(t.charCodeAt(0)-55296)+t.charCodeAt(1)-56320+65536,i.charCodeAt(n+2),e);}).replace(Te,n);function n(t,n,i){return e.format(t.charCodeAt(0),i.charCodeAt(n+1),e);}}function Fe(t,e,n){var i,r=function(t,e,n){var i="&#x"+t.toString(16).toUpperCase();return n&&e&&!Ee.test(String.fromCharCode(e))?i:i+";";}(t,e,n.omitOptionalSemicolons);if((n.useNamedReferences||n.useShortestReferences)&&(i=function(t,e,n,i){var r=String.fromCharCode(t);if(Ge.call(qe,r)){var _t70=qe[r],_o17="&"+_t70;return n&&$e.includes(_t70)&&!Ie.includes(_t70)&&(!i||e&&61!==e&&ze.test(String.fromCharCode(e)))?_o17:_o17+";";}return"";}(t,e,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){var _i11=function(t,e,n){var i="&#"+String(t);return n&&e&&!Re.test(String.fromCharCode(e))?i:i+";";}(t,e,n.omitOptionalSemicolons);_i11.length<r.length&&(r=_i11);}return i&&(!n.useShortestReferences||i.length<r.length)?i:r;}function He(t,e){return De(t,Object.assign({format:Fe},e));}function Je(t,e){var n=String(t);if("string"!=typeof e)throw new TypeError("Expected character");var i=0,r=n.indexOf(e);for(;-1!==r;)i++,r=n.indexOf(e,r+e.length);return i;}function Xe(t,e){var n=e||{};return(""===t[t.length-1]?[].concat(_toConsumableArray(t),[""]):t).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim();}function Ye(t){return t.join(" ").trim();}function Qe(t){return"object"==_typeof(t)?"text"===t.type&&Ze(t.value):Ze(t);}function Ze(t){return""===t.replace(Ke,"");}function rn(t){return function(e,n,i){var r=e?e.children:nn;var o=(n||0)+t,s=r[o];if(!i)for(;s&&Qe(s);)o+=t,s=r[o];return s;};}function sn(t){return function(e,n,i){return on.call(t,e.tagName)&&t[e.tagName](e,n,i);};}function an(t,e,n){var i=tn(n,e,!0);return!i||"comment"!==i.type&&!("text"===i.type&&Qe(i.value.charAt(0)));}function cn(t,e,n){var i=tn(n,e);return!i||"element"===i.type&&("rp"===i.tagName||"rt"===i.tagName);}function un(t,e,n){var i=tn(n,e);return!i||"element"===i.type&&("td"===i.tagName||"th"===i.tagName);}function hn(t,e,n){var i=function(t,e){var n=Xt(e);var i=e,r=Yt;if(n in t.normal)return t.property[t.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&we.test(e)){if("-"===e.charAt(4)){var _t71=e.slice(5).replace(ve,xe);i="data"+_t71.charAt(0).toUpperCase()+_t71.slice(1);}else{var _t72=e.slice(4);if(!ve.test(_t72)){var _n32=_t72.replace(ke,Se);"-"!==_n32.charAt(0)&&(_n32="-"+_n32),e="data"+_n32;}}r=ae;}return new r(i,e);}(t.schema,e),r=t.settings.allowParseErrors&&"html"===t.schema.space?0:1,o=t.settings.allowDangerousCharacters?0:1;var s,l=t.quote;if(!i.overloadedBoolean||n!==i.attribute&&""!==n?(i["boolean"]||i.overloadedBoolean&&"string"!=typeof n)&&(n=Boolean(n)):n=!0,null==n||!1===n||"number"==typeof n&&Number.isNaN(n))return"";var a=He(i.attribute,Object.assign({},t.settings.characterReferences,{subset:pn.name[r][o]}));return!0===n?a:(n=Array.isArray(n)?(i.commaSeparated?Xe:Ye)(n,{padLeft:!t.settings.tightCommaSeparatedLists}):String(n),t.settings.collapseEmptyAttributes&&!n?a:(t.settings.preferUnquoted&&(s=He(n,Object.assign({},t.settings.characterReferences,{attribute:!0,subset:pn.unquoted[r][o]}))),s!==n&&(t.settings.quoteSmart&&Je(n,l)>Je(n,t.alternative)&&(l=t.alternative),s=l+He(n,Object.assign({},t.settings.characterReferences,{subset:("'"===l?pn.single:pn["double"])[r][o],attribute:!0}))+l),a+(s?"="+s:s)));}function fn(t,e,n,i){return!n||"element"!==n.type||"script"!==n.tagName&&"style"!==n.tagName?He(t.value,Object.assign({},i.settings.characterReferences,{subset:dn})):t.value;}function wn(t,e,n){return gn(t,e,n,this);}function vn(t){var e=[],n=t&&t.children||bn;var i=-1;for(;++i<n.length;)e[i]=this.one(n[i],i,t);return e.join("");}function kn(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1;var n=t.split(/(\r?\n)/g);var i=0;var r=[];for(var _t73=0;_t73<n.length;_t73+=2){var _n34;var _o18=e?n[_t73]+(n[_t73+1]||""):n[_t73];r.push([_o18,i]),i+=n[_t73].length,i+=((_n34=n[_t73+1])===null||_n34===void 0?void 0:_n34.length)||0;}return r;}function Sn(t){return!t||["plaintext","txt","text","plain"].includes(t);}function xn(t){return"ansi"===t||Sn(t);}function Cn(t){return"none"===t;}function Ln(t){return Cn(t);}function An(t,e){var n;if(!e)return t;t.properties||(t.properties={}),(n=t.properties)["class"]||(n["class"]=[]),"string"==typeof t.properties["class"]&&(t.properties["class"]=t.properties["class"].split(/\s+/g)),Array.isArray(t.properties["class"])||(t.properties["class"]=[]);var i=Array.isArray(e)?e:e.split(/\s+/g);var _iterator19=_createForOfIteratorHelper(i),_step19;try{for(_iterator19.s();!(_step19=_iterator19.n()).done;){var _e34=_step19.value;_e34&&!t.properties["class"].includes(_e34)&&t.properties["class"].push(_e34);}}catch(err){_iterator19.e(err);}finally{_iterator19.f();}return t;}function On(_x6){return _On.apply(this,arguments);}function _On(){_On=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee11(t){return _regeneratorRuntime().wrap(function _callee11$(_context12){while(1)switch(_context12.prev=_context12.next){case 0:return _context12.abrupt("return",Promise.resolve("function"==typeof t?t():t).then(function(t){return t["default"]||t;}));case 1:case"end":return _context12.stop();}},_callee11);}));return _On.apply(this,arguments);}function Mn(t,e){var n="string"==typeof t?{}:_objectSpread({},t.colorReplacements),i="string"==typeof t?t:t.name;for(var _i12=0,_Object$entries=Object.entries((e===null||e===void 0?void 0:e.colorReplacements)||{});_i12<_Object$entries.length;_i12++){var _Object$entries$_i=_slicedToArray(_Object$entries[_i12],2),_t74=_Object$entries$_i[0],_r17=_Object$entries$_i[1];"string"==typeof _r17?n[_t74]=_r17:_t74===i&&Object.assign(n,_r17);}return n;}function Tn(t,e){return t&&(e===null||e===void 0?void 0:e[t===null||t===void 0?void 0:t.toLowerCase()])||t;}function Pn(t){var e={};return t.color&&(e.color=t.color),t.bgColor&&(e["background-color"]=t.bgColor),t.fontStyle&&(t.fontStyle&q.Italic&&(e["font-style"]="italic"),t.fontStyle&q.Bold&&(e["font-weight"]="bold"),t.fontStyle&q.Underline&&(e["text-decoration"]="underline")),e;}function Nn(t){return"string"==typeof t?t:Object.entries(t).map(function(_ref6){var _ref7=_slicedToArray(_ref6,2),t=_ref7[0],e=_ref7[1];return"".concat(t,":").concat(e);}).join(";");}function Bn(t,e){$n.set(t,e);}function In(t){return $n.get(t);}function qn(t){var e=[],n=new Set();return function t(i,_i$nameScopesList){if(n.has(i))return;n.add(i);var r=i===null||i===void 0||(_i$nameScopesList=i.nameScopesList)===null||_i$nameScopesList===void 0?void 0:_i$nameScopesList.scopeName;r&&e.push(r),i.parent&&t(i.parent);}(t),e;}function _n(){var t=new WeakMap();function e(e){if(!t.has(e.meta)){var _n37=function _n37(t){if("number"==typeof t){if(t<0||t>e.source.length)throw new Dn("Invalid decoration offset: ".concat(t,". Code length: ").concat(e.source.length));return _objectSpread(_objectSpread({},i.indexToPos(t)),{},{offset:t});}{var _e37=i.lines[t.line];if(void 0===_e37)throw new Dn("Invalid decoration position ".concat(JSON.stringify(t),". Lines length: ").concat(i.lines.length));if(t.character<0||t.character>_e37.length)throw new Dn("Invalid decoration position ".concat(JSON.stringify(t),". Line ").concat(t.line," length: ").concat(_e37.length));return _objectSpread(_objectSpread({},t),{},{offset:i.posToIndex(t.line,t.character)});}};var i=function(t){var e=kn(t,!0).map(function(_ref8){var _ref9=_slicedToArray(_ref8,1),t=_ref9[0];return t;});return{lines:e,indexToPos:function indexToPos(n){if(n===t.length)return{line:e.length-1,character:e[e.length-1].length};var i=n,r=0;var _iterator20=_createForOfIteratorHelper(e),_step20;try{for(_iterator20.s();!(_step20=_iterator20.n()).done;){var _t75=_step20.value;if(i<_t75.length)break;i-=_t75.length,r++;}}catch(err){_iterator20.e(err);}finally{_iterator20.f();}return{line:r,character:i};},posToIndex:function posToIndex(t,n){var i=0;for(var _n38=0;_n38<t;_n38++)i+=e[_n38].length;return i+=n,i;}};}(e.source),_r18=(e.options.decorations||[]).map(function(t){return _objectSpread(_objectSpread({},t),{},{start:_n37(t.start),end:_n37(t.end)});});!function(t){for(var _e38=0;_e38<t.length;_e38++){var _n39=t[_e38];if(_n39.start.offset>_n39.end.offset)throw new Dn("Invalid decoration range: ".concat(JSON.stringify(_n39.start)," - ").concat(JSON.stringify(_n39.end)));for(var _i13=_e38+1;_i13<t.length;_i13++){var _e39=t[_i13],_r19=_n39.start.offset<_e39.start.offset&&_e39.start.offset<_n39.end.offset,_o19=_n39.start.offset<_e39.end.offset&&_e39.end.offset<_n39.end.offset,_s12=_e39.start.offset<_n39.start.offset&&_n39.start.offset<_e39.end.offset,_l5=_e39.start.offset<_n39.end.offset&&_n39.end.offset<_e39.end.offset;if(_r19||_o19||_s12||_l5){if(_o19&&_o19)continue;if(_s12&&_l5)continue;throw new Dn("Decorations ".concat(JSON.stringify(_n39.start)," and ").concat(JSON.stringify(_e39.start)," intersect."));}}}}(_r18),t.set(e.meta,{decorations:_r18,converter:i,source:e.source});}return t.get(e.meta);}return{name:"shiki:decorations",tokens:function tokens(t){var _this$options$decorat;if(!((_this$options$decorat=this.options.decorations)!==null&&_this$options$decorat!==void 0&&_this$options$decorat.length))return;var n=function(t,e){var n=Array.from(e instanceof Set?e:new Set(e)).sort(function(t,e){return t-e;});return n.length?t.map(function(t){return t.flatMap(function(t){var e=n.filter(function(e){return t.offset<e&&e<t.offset+t.content.length;}).map(function(e){return e-t.offset;}).sort(function(t,e){return t-e;});return e.length?function(t,e){var n=0;var i=[];var _iterator21=_createForOfIteratorHelper(e),_step21;try{for(_iterator21.s();!(_step21=_iterator21.n()).done;){var _r20=_step21.value;_r20>n&&i.push(_objectSpread(_objectSpread({},t),{},{content:t.content.slice(n,_r20),offset:t.offset+n})),n=_r20;}}catch(err){_iterator21.e(err);}finally{_iterator21.f();}return n<t.content.length&&i.push(_objectSpread(_objectSpread({},t),{},{content:t.content.slice(n),offset:t.offset+n})),i;}(t,e):t;});}):t;}(t,e(this).decorations.flatMap(function(t){return[t.start.offset,t.end.offset];}));return n;},code:function code(t){var _this$options$decorat2;if(!((_this$options$decorat2=this.options.decorations)!==null&&_this$options$decorat2!==void 0&&_this$options$decorat2.length))return;var n=e(this),i=Array.from(t.children).filter(function(t){return"element"===t.type&&"span"===t.tagName;});if(i.length!==n.converter.lines.length)throw new Dn("Number of lines in code element (".concat(i.length,") does not match the number of lines in the source (").concat(n.converter.lines.length,"). Failed to apply decorations."));function r(t,e,n,r){var o=i[t];var l="",a=-1,c=-1;if(0===e&&(a=0),0===n&&(c=0),n===Number.POSITIVE_INFINITY&&(c=o.children.length),-1===a||-1===c)for(var _t76=0;_t76<o.children.length;_t76++)l+=zn(o.children[_t76]),-1===a&&l.length===e&&(a=_t76+1),-1===c&&l.length===n&&(c=_t76+1);if(-1===a)throw new Dn("Failed to find start index for decoration ".concat(JSON.stringify(r.start)));if(-1===c)throw new Dn("Failed to find end index for decoration ".concat(JSON.stringify(r.end)));var u=o.children.slice(a,c);if(r.alwaysWrap||u.length!==o.children.length){if(r.alwaysWrap||1!==u.length||"element"!==u[0].type){var _t77={type:"element",tagName:"span",properties:{},children:u};s(_t77,r,"wrapper"),o.children.splice(a,u.length,_t77);}else s(u[0],r,"token");}else s(o,r,"line");}function o(t,e){i[t]=s(i[t],e,"line");}function s(t,e,n){var _e$properties;var i=e.properties||{},r=e.transform||function(t){return t;};return t.tagName=e.tagName||"span",t.properties=_objectSpread(_objectSpread(_objectSpread({},t.properties),i),{},{"class":t.properties["class"]}),(_e$properties=e.properties)!==null&&_e$properties!==void 0&&_e$properties["class"]&&An(t,e.properties["class"]),t=r(t,n)||t;}var l=[],a=n.decorations.sort(function(t,e){return e.start.offset-t.start.offset;});var _iterator22=_createForOfIteratorHelper(a),_step22;try{var _loop=function _loop(){var t=_step22.value;var e=t.start,n=t.end;if(e.line===n.line)r(e.line,e.character,n.character,t);else if(e.line<n.line){r(e.line,e.character,Number.POSITIVE_INFINITY,t);var _loop2=function _loop2(_i14){l.unshift(function(){return o(_i14,t);});};for(var _i14=e.line+1;_i14<n.line;_i14++){_loop2(_i14);}r(n.line,0,n.character,t);}};for(_iterator22.s();!(_step22=_iterator22.n()).done;){_loop();}}catch(err){_iterator22.e(err);}finally{_iterator22.f();}l.forEach(function(t){return t();});}};}function zn(t){return"text"===t.type?t.value:"element"===t.type?t.children.map(zn).join(""):"";}function Hn(t){return[].concat(_toConsumableArray(t.transformers||[]),Fn);}function Vn(t,e){var n=t.indexOf("[",e);if(-1!==n){var _e40=t.indexOf("m",n);return{sequence:t.substring(n+2,_e40).split(";"),startPosition:n,position:_e40+1};}return{position:t.length};}function Jn(t,e){var n=1;var i=t[e+n++];var r;if("2"===i){var _i15=[t[e+n++],t[e+n++],t[e+n]].map(function(t){return Number.parseInt(t);});3!==_i15.length||_i15.some(function(t){return Number.isNaN(t);})||(r={type:"rgb",rgb:_i15});}else if("5"===i){var _i16=Number.parseInt(t[e+n]);Number.isNaN(_i16)||(r={type:"table",index:Number(_i16)});}return[n,r];}function Xn(t){var e=[];for(var _n40=0;_n40<t.length;_n40++){var i=t[_n40],_r21=Number.parseInt(i);if(!Number.isNaN(_r21))if(0===_r21)e.push({type:"resetAll"});else if(_r21<=9){Wn[_r21]&&e.push({type:"setDecoration",value:Wn[_r21]});}else if(_r21<=29){var _t78=Wn[_r21-20];_t78&&e.push({type:"resetDecoration",value:_t78});}else if(_r21<=37)e.push({type:"setForegroundColor",value:{type:"named",name:Un[_r21-30]}});else if(38===_r21){var _Jn=Jn(t,_n40),_Jn2=_slicedToArray(_Jn,2),_i17=_Jn2[0],_r22=_Jn2[1];_r22&&e.push({type:"setForegroundColor",value:_r22}),_n40+=_i17;}else if(39===_r21)e.push({type:"resetForegroundColor"});else if(_r21<=47)e.push({type:"setBackgroundColor",value:{type:"named",name:Un[_r21-40]}});else if(48===_r21){var _Jn3=Jn(t,_n40),_Jn4=_slicedToArray(_Jn3,2),_i18=_Jn4[0],_r23=_Jn4[1];_r23&&e.push({type:"setBackgroundColor",value:_r23}),_n40+=_i18;}else 49===_r21?e.push({type:"resetBackgroundColor"}):_r21>=90&&_r21<=97?e.push({type:"setForegroundColor",value:{type:"named",name:Un[_r21-90+8]}}):_r21>=100&&_r21<=107&&e.push({type:"setBackgroundColor",value:{type:"named",name:Un[_r21-100+8]}});}return e;}function Kn(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:Yn;function e(e){return t[e];}function n(t){return"#".concat(t.map(function(t){return Math.max(0,Math.min(t,255)).toString(16).padStart(2,"0");}).join(""));}var i;function r(t){return function(){if(i)return i;i=[];for(var _t79=0;_t79<Un.length;_t79++)i.push(e(Un[_t79]));var t=[0,95,135,175,215,255];for(var _e41=0;_e41<6;_e41++)for(var _r24=0;_r24<6;_r24++)for(var _o20=0;_o20<6;_o20++)i.push(n([t[_e41],t[_r24],t[_o20]]));var r=8;for(var _t80=0;_t80<24;_t80++,r+=10)i.push(n([r,r,r]));return i;}()[t];}return{value:function value(t){switch(t.type){case"named":return e(t.name);case"rgb":return n(t.rgb);case"table":return r(t.index);}}};}function Qn(t,e,n){var i=Mn(t,n),r=kn(e),o=Kn(Object.fromEntries(Un.map(function(e){var _t$colors;return[e,(_t$colors=t.colors)===null||_t$colors===void 0?void 0:_t$colors["terminal.ansi".concat(e[0].toUpperCase()).concat(e.substring(1))]];}))),s=function(){var t=null,e=null,n=new Set();return{parse:function parse(i){var r=[];var o=0;do{var _s13=Vn(i,o),_l6=_s13.sequence?i.substring(o,_s13.startPosition):i.substring(o);if(_l6.length>0&&r.push({value:_l6,foreground:t,background:e,decorations:new Set(n)}),_s13.sequence){var _i19=Xn(_s13.sequence);var _iterator23=_createForOfIteratorHelper(_i19),_step23;try{for(_iterator23.s();!(_step23=_iterator23.n()).done;){var _r25=_step23.value;"resetAll"===_r25.type?(t=null,e=null,n.clear()):"resetForegroundColor"===_r25.type?t=null:"resetBackgroundColor"===_r25.type?e=null:"resetDecoration"===_r25.type&&n["delete"](_r25.value);}}catch(err){_iterator23.e(err);}finally{_iterator23.f();}var _iterator24=_createForOfIteratorHelper(_i19),_step24;try{for(_iterator24.s();!(_step24=_iterator24.n()).done;){var _r26=_step24.value;"setForegroundColor"===_r26.type?t=_r26.value:"setBackgroundColor"===_r26.type?e=_r26.value:"setDecoration"===_r26.type&&n.add(_r26.value);}}catch(err){_iterator24.e(err);}finally{_iterator24.f();}}o=_s13.position;}while(o<i.length);return r;}};}();return r.map(function(e){return s.parse(e[0]).map(function(n){var r,s;n.decorations.has("reverse")?(r=n.background?o.value(n.background):t.bg,s=n.foreground?o.value(n.foreground):t.fg):(r=n.foreground?o.value(n.foreground):t.fg,s=n.background?o.value(n.background):void 0),r=Tn(r,i),s=Tn(s,i),n.decorations.has("dim")&&(r=function(t){var e=t.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(e){if(e[3]){var _t81=Math.round(Number.parseInt(e[3],16)/2).toString(16).padStart(2,"0");return"#".concat(e[1]).concat(e[2]).concat(_t81);}return e[2]?"#".concat(e[1]).concat(e[2],"80"):"#".concat(Array.from(e[1]).map(function(t){return"".concat(t).concat(t);}).join(""),"80");}var n=t.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?"var(".concat(n[1],"-dim)"):t;}(r));var l=q.None;return n.decorations.has("bold")&&(l|=q.Bold),n.decorations.has("italic")&&(l|=q.Italic),n.decorations.has("underline")&&(l|=q.Underline),{content:n.value,offset:e[1],color:r,bgColor:s,fontStyle:l};});});}function Zn(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var _n$lang=n.lang,i=_n$lang===void 0?"text":_n$lang,_n$theme=n.theme,r=_n$theme===void 0?t.getLoadedThemes()[0]:_n$theme;if(Sn(i)||Cn(r))return kn(e).map(function(t){return[{content:t[0],offset:t[1]}];});var _t$setTheme=t.setTheme(r),o=_t$setTheme.theme,s=_t$setTheme.colorMap;if("ansi"===i)return Qn(o,e,n);var l=t.getLanguage(i);if(n.grammarState){if(n.grammarState.lang!==l.name)throw new m("Grammar state language \"".concat(n.grammarState.lang,"\" does not match highlight language \"").concat(l.name,"\""));if(!n.grammarState.themes.includes(o.name))throw new m("Grammar state themes \"".concat(n.grammarState.themes,"\" do not contain highlight theme \"").concat(o.name,"\""));}return function(t,e,n,i,r){var o=ti(t,e,n,i,r),s=new Gn(ti(t,e,n,i,r).stateStack,e.name,n.name);return Bn(o.tokens,s),o.tokens;}(e,l,o,s,n);}function ti(t,e,n,i,r){var _ref10;var o=Mn(n,r),_r$tokenizeMaxLineLen=r.tokenizeMaxLineLength,s=_r$tokenizeMaxLineLen===void 0?0:_r$tokenizeMaxLineLen,_r$tokenizeTimeLimit=r.tokenizeTimeLimit,l=_r$tokenizeTimeLimit===void 0?500:_r$tokenizeTimeLimit,a=kn(t);var c=r.grammarState?(_ref10=function(t,e){if(!(t instanceof Gn))throw new Dn("Invalid grammar state");return t.getInternalStack(e);}(r.grammarState,n.name))!==null&&_ref10!==void 0?_ref10:Ut:null!=r.grammarContextCode?ti(r.grammarContextCode,e,n,i,_objectSpread(_objectSpread({},r),{},{grammarState:void 0,grammarContextCode:void 0})).stateStack:Ut,u=[];var m=[];for(var _t82=0,_h4=a.length;_t82<_h4;_t82++){var _a$_t=_slicedToArray(a[_t82],2),_h5=_a$_t[0],_d5=_a$_t[1];if(""===_h5){u=[],m.push([]);continue;}if(s>0&&_h5.length>=s){u=[],m.push([{content:_h5,offset:_d5,color:"",fontStyle:0}]);continue;}var _f4=void 0,_g2=void 0,_j2=void 0;r.includeExplanation&&(_f4=e.tokenizeLine(_h5,c),_g2=_f4.tokens,_j2=0);var _y=e.tokenizeLine2(_h5,c,l),_b2=_y.tokens.length/2;for(var _t83=0;_t83<_b2;_t83++){var _e42=_y.tokens[2*_t83],_s14=_t83+1<_b2?_y.tokens[2*_t83+2]:_h5.length;if(_e42===_s14)continue;var _l7=_y.tokens[2*_t83+1],_a6=Tn(i[U.getForeground(_l7)],o),_c6=U.getFontStyle(_l7),_m5={content:_h5.substring(_e42,_s14),offset:_d5+_e42,color:_a6,fontStyle:_c6};if(r.includeExplanation){var _t84=[];if("scopeName"!==r.includeExplanation){var _iterator25=_createForOfIteratorHelper(n.settings),_step25;try{for(_iterator25.s();!(_step25=_iterator25.n()).done;){var _e43=_step25.value;var _n41=void 0;switch(_typeof(_e43.scope)){case"string":_n41=_e43.scope.split(/,/).map(function(t){return t.trim();});break;case"object":_n41=_e43.scope;break;default:continue;}_t84.push({settings:_e43,selectors:_n41.map(function(t){return t.split(/ /);})});}}catch(err){_iterator25.e(err);}finally{_iterator25.f();}}_m5.explanation=[];var _i20=0;for(;_e42+_i20<_s14;){var _e44=_g2[_j2],_n42=_h5.substring(_e44.startIndex,_e44.endIndex);_i20+=_n42.length,_m5.explanation.push({content:_n42,scopes:"scopeName"===r.includeExplanation?(p=_e44.scopes,p.map(function(t){return{scopeName:t};})):ei(_t84,_e44.scopes)}),_j2+=1;}}u.push(_m5);}m.push(u),u=[],c=_y.ruleStack;}var p;return{tokens:m,stateStack:c};}function ei(t,e){var n=[];for(var i=0,_r27=e.length;i<_r27;i++){var _r28=e[i];n[i]={scopeName:_r28,themeMatches:ri(t,_r28,e.slice(0,i))};}return n;}function ni(t,e){return t===e||e.substring(0,t.length)===t&&"."===e[t.length];}function ii(t,e,n){if(!ni(t[t.length-1],e))return!1;var i=t.length-2,r=n.length-1;for(;i>=0&&r>=0;)ni(t[i],n[r])&&(i-=1),r-=1;return-1===i;}function ri(t,e,n){var i=[];var _iterator26=_createForOfIteratorHelper(t),_step26;try{for(_iterator26.s();!(_step26=_iterator26.n()).done;){var _step26$value=_step26.value,_r29=_step26$value.selectors,_o21=_step26$value.settings;var _iterator27=_createForOfIteratorHelper(_r29),_step27;try{for(_iterator27.s();!(_step27=_iterator27.n()).done;){var _t85=_step27.value;if(ii(_t85,e,n)){i.push(_o21);break;}}}catch(err){_iterator27.e(err);}finally{_iterator27.f();}}}catch(err){_iterator26.e(err);}finally{_iterator26.f();}return i;}function oi(t,e,n){var i=Object.entries(n.themes).filter(function(t){return t[1];}).map(function(t){return{color:t[0],theme:t[1]};}),r=i.map(function(i){var r=Zn(t,e,_objectSpread(_objectSpread({},n),{},{theme:i.theme}));return{tokens:r,state:In(r),theme:"string"==typeof i.theme?i.theme:i.theme.name};}),o=function(){for(var _len4=arguments.length,t=new Array(_len4),_key4=0;_key4<_len4;_key4++){t[_key4]=arguments[_key4];}var e=t.map(function(){return[];}),n=t.length;var _loop3=function _loop3(_i21){var r=t.map(function(t){return t[_i21];}),o=e.map(function(){return[];});e.forEach(function(t,e){return t.push(o[e]);});var s=r.map(function(){return 0;}),l=r.map(function(t){return t[0];});for(;l.every(function(t){return t;});){var _t86=Math.min.apply(Math,_toConsumableArray(l.map(function(t){return t.content.length;})));for(var _e45=0;_e45<n;_e45++){var _n43=l[_e45];_n43.content.length===_t86?(o[_e45].push(_n43),s[_e45]+=1,l[_e45]=r[_e45][s[_e45]]):(o[_e45].push(_objectSpread(_objectSpread({},_n43),{},{content:_n43.content.slice(0,_t86)})),l[_e45]=_objectSpread(_objectSpread({},_n43),{},{content:_n43.content.slice(_t86),offset:_n43.offset+_t86}));}}};for(var _i21=0;_i21<t[0].length;_i21++){_loop3(_i21);}return e;}.apply(void 0,_toConsumableArray(r.map(function(t){return t.tokens;}))),s=o[0].map(function(t,e){return t.map(function(t,r){var s={content:t.content,variants:{},offset:t.offset};return"includeExplanation"in n&&n.includeExplanation&&(s.explanation=t.explanation),o.forEach(function(t,n){var _t$e$r=t[e][r],o=_t$e$r.content,l=_t$e$r.explanation,a=_t$e$r.offset,c=_objectWithoutProperties(_t$e$r,_excluded);s.variants[i[n].color]=c;}),s;});}),l=r[0].state?new Gn(Object.fromEntries(r.map(function(t){var _t$state;return[t.theme,(_t$state=t.state)===null||_t$state===void 0?void 0:_t$state.getInternalStack(t.theme)];})),r[0].state.lang):void 0;return l&&Bn(s,l),s;}function si(t,e,n){var i,r,o,s,l,a;if("themes"in n){var _n$defaultColor=n.defaultColor,_c7=_n$defaultColor===void 0?"light":_n$defaultColor,_n$cssVariablePrefix=n.cssVariablePrefix,_u5=_n$cssVariablePrefix===void 0?"--shiki-":_n$cssVariablePrefix,_p5=Object.entries(n.themes).filter(function(t){return t[1];}).map(function(t){return{color:t[0],theme:t[1]};}).sort(function(t,e){return t.color===_c7?-1:e.color===_c7?1:0;});if(0===_p5.length)throw new m("`themes` option must not be empty");var _h6=oi(t,e,n);if(a=In(_h6),_c7&&!_p5.find(function(t){return t.color===_c7;}))throw new m("`themes` option must contain the defaultColor key `".concat(_c7,"`"));var _d6=_p5.map(function(e){return t.getTheme(e.theme);}),_f5=_p5.map(function(t){return t.color;});o=_h6.map(function(t){return t.map(function(t){return function(t,e,n,i){var r={content:t.content,explanation:t.explanation,offset:t.offset},o=e.map(function(e){return Pn(t.variants[e]);}),s=new Set(o.flatMap(function(t){return Object.keys(t);})),l={};return o.forEach(function(t,r){var _iterator28=_createForOfIteratorHelper(s),_step28;try{for(_iterator28.s();!(_step28=_iterator28.n()).done;){var _o22=_step28.value;var _s15=t[_o22]||"inherit";if(0===r&&i)l[_o22]=_s15;else{var _t87="color"===_o22?"":"background-color"===_o22?"-bg":"-".concat(_o22),_i22=n+e[r]+("color"===_o22?"":_t87);l[_i22]=_s15;}}}catch(err){_iterator28.e(err);}finally{_iterator28.f();}}),r.htmlStyle=l,r;}(t,_f5,_u5,_c7);});}),a&&Bn(o,a);var _g3=_p5.map(function(t){return Mn(t.theme,n);});r=_p5.map(function(t,e){return(0===e&&_c7?"":"".concat(_u5+t.color,":"))+(Tn(_d6[e].fg,_g3[e])||"inherit");}).join(";"),i=_p5.map(function(t,e){return(0===e&&_c7?"":"".concat(_u5+t.color,"-bg:"))+(Tn(_d6[e].bg,_g3[e])||"inherit");}).join(";"),s="shiki-themes ".concat(_d6.map(function(t){return t.name;}).join(" ")),l=_c7?void 0:[r,i].join(";");}else{if(!("theme"in n))throw new m("Invalid options, either `theme` or `themes` must be provided");{var _l8=Mn(n.theme,n);o=Zn(t,e,n);var _c8=t.getTheme(n.theme);i=Tn(_c8.bg,_l8),r=Tn(_c8.fg,_l8),s=_c8.name,a=In(o);}}return{tokens:o,fg:r,bg:i,themeName:s,rootStyle:l,grammarState:a};}function li(t,e,n){var i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{meta:{},options:n,codeToHast:function codeToHast(e,n){return li(t,e,n);},codeToTokens:function codeToTokens(e,n){return si(t,e,n);}};var r=e;var _iterator29=_createForOfIteratorHelper(Hn(n)),_step29;try{for(_iterator29.s();!(_step29=_iterator29.n()).done;){var _t93$preprocess;var _t93=_step29.value;r=((_t93$preprocess=_t93.preprocess)===null||_t93$preprocess===void 0?void 0:_t93$preprocess.call(i,r,n))||r;}}catch(err){_iterator29.e(err);}finally{_iterator29.f();}var _si=si(t,r,n),o=_si.tokens,s=_si.fg,l=_si.bg,a=_si.themeName,c=_si.rootStyle,u=_si.grammarState;var _n$mergeWhitespaces=n.mergeWhitespaces,m=_n$mergeWhitespaces===void 0?!0:_n$mergeWhitespaces;!0===m?o=function(t){return t.map(function(t){var e=[];var n="",i=0;return t.forEach(function(r,o){var s=!(r.fontStyle&&r.fontStyle&q.Underline);s&&r.content.match(/^\s+$/)&&t[o+1]?(i||(i=r.offset),n+=r.content):n?(s?e.push(_objectSpread(_objectSpread({},r),{},{offset:i,content:n+r.content})):e.push({content:n,offset:i},r),i=0,n=""):e.push(r);}),e;});}(o):"never"===m&&(o=function(t){return t.map(function(t){return t.flatMap(function(t){if(t.content.match(/^\s+$/))return t;var e=t.content.match(/^(\s*)(.*?)(\s*)$/);if(!e)return t;var _e46=_slicedToArray(e,4),n=_e46[1],i=_e46[2],r=_e46[3];if(!n&&!r)return t;var o=[_objectSpread(_objectSpread({},t),{},{offset:t.offset+n.length,content:i})];return n&&o.unshift({content:n,offset:t.offset}),r&&o.push({content:r,offset:t.offset+n.length+i.length}),o;});});}(o));var p=_objectSpread(_objectSpread({},i),{},{get source(){return r;}});var _iterator30=_createForOfIteratorHelper(Hn(n)),_step30;try{for(_iterator30.s();!(_step30=_iterator30.n()).done;){var _t94$tokens;var _t94=_step30.value;o=((_t94$tokens=_t94.tokens)===null||_t94$tokens===void 0?void 0:_t94$tokens.call(p,o))||o;}}catch(err){_iterator30.e(err);}finally{_iterator30.f();}return function(t,e,n){var i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:In(t);var r=Hn(e),o=[],s={type:"root",children:[]},_e$structure=e.structure,l=_e$structure===void 0?"classic":_e$structure,_e$tabindex=e.tabindex,a=_e$tabindex===void 0?"0":_e$tabindex;var c={type:"element",tagName:"pre",properties:_objectSpread(_objectSpread({"class":"shiki ".concat(e.themeName||""),style:e.rootStyle||"background-color:".concat(e.bg,";color:").concat(e.fg)},!1!==a&&null!=a?{tabindex:a.toString()}:{}),Object.fromEntries(Array.from(Object.entries(e.meta||{})).filter(function(_ref11){var _ref12=_slicedToArray(_ref11,1),t=_ref12[0];return!t.startsWith("_");}))),children:[]},u={type:"element",tagName:"code",properties:{},children:o};var m=[],p=_objectSpread(_objectSpread({},n),{},{structure:l,addClassToHast:An,get source(){return n.source;},get tokens(){return t;},get options(){return e;},get root(){return s;},get pre(){return c;},get code(){return u;},get lines(){return m;}});if(t.forEach(function(t,e){e&&("inline"===l?s.children.push({type:"element",tagName:"br",properties:{},children:[]}):"classic"===l&&o.push({type:"text",value:"\n"}));var n={type:"element",tagName:"span",properties:{"class":"line"},children:[]},i=0;var _iterator31=_createForOfIteratorHelper(t),_step31;try{for(_iterator31.s();!(_step31=_iterator31.n()).done;){var _o23=_step31.value;var _t89={type:"element",tagName:"span",properties:_objectSpread({},_o23.htmlAttrs),children:[{type:"text",value:_o23.content}]};_o23.htmlStyle;var _a7=Nn(_o23.htmlStyle||Pn(_o23));_a7&&(_t89.properties.style=_a7);var _iterator33=_createForOfIteratorHelper(r),_step33;try{for(_iterator33.s();!(_step33=_iterator33.n()).done;){var _s16$span;var _s16=_step33.value;_t89=(_s16===null||_s16===void 0||(_s16$span=_s16.span)===null||_s16$span===void 0?void 0:_s16$span.call(p,_t89,e+1,i,n,_o23))||_t89;}}catch(err){_iterator33.e(err);}finally{_iterator33.f();}"inline"===l?s.children.push(_t89):"classic"===l&&n.children.push(_t89),i+=_o23.content.length;}}catch(err){_iterator31.e(err);}finally{_iterator31.f();}if("classic"===l){var _iterator32=_createForOfIteratorHelper(r),_step32;try{for(_iterator32.s();!(_step32=_iterator32.n()).done;){var _t88$line;var _t88=_step32.value;n=(_t88===null||_t88===void 0||(_t88$line=_t88.line)===null||_t88$line===void 0?void 0:_t88$line.call(p,n,e+1))||n;}}catch(err){_iterator32.e(err);}finally{_iterator32.f();}m.push(n),o.push(n);}}),"classic"===l){var _iterator34=_createForOfIteratorHelper(r),_step34;try{for(_iterator34.s();!(_step34=_iterator34.n()).done;){var _t90$code;var _t90=_step34.value;u=(_t90===null||_t90===void 0||(_t90$code=_t90.code)===null||_t90$code===void 0?void 0:_t90$code.call(p,u))||u;}}catch(err){_iterator34.e(err);}finally{_iterator34.f();}c.children.push(u);var _iterator35=_createForOfIteratorHelper(r),_step35;try{for(_iterator35.s();!(_step35=_iterator35.n()).done;){var _t91$pre;var _t91=_step35.value;c=(_t91===null||_t91===void 0||(_t91$pre=_t91.pre)===null||_t91$pre===void 0?void 0:_t91$pre.call(p,c))||c;}}catch(err){_iterator35.e(err);}finally{_iterator35.f();}s.children.push(c);}var h=s;var _iterator36=_createForOfIteratorHelper(r),_step36;try{for(_iterator36.s();!(_step36=_iterator36.n()).done;){var _t92$root;var _t92=_step36.value;h=(_t92===null||_t92===void 0||(_t92$root=_t92.root)===null||_t92$root===void 0?void 0:_t92$root.call(p,h))||h;}}catch(err){_iterator36.e(err);}finally{_iterator36.f();}i&&Bn(h,i);return h;}(o,_objectSpread(_objectSpread({},n),{},{fg:s,bg:l,themeName:a,rootStyle:c}),p,u);}function ai(t,e,n){var i={meta:{},options:n,codeToHast:function codeToHast(e,n){return li(t,e,n);},codeToTokens:function codeToTokens(e,n){return si(t,e,n);}};var r=function(t,e){var n=e||jn,i=n.quote||'"',r='"'===i?"'":'"';if('"'!==i&&"'"!==i)throw new Error("Invalid quote `"+i+"`, expected `'` or `\"`");return{one:wn,all:vn,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||Wt,characterReferences:n.characterReferences||yn,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:"svg"===n.space?Le:Ce,quote:i,alternative:r}.one(Array.isArray(t)?{type:"root",children:t}:t,void 0,void 0);}(li(t,e,n,i));var _iterator37=_createForOfIteratorHelper(Hn(n)),_step37;try{for(_iterator37.s();!(_step37=_iterator37.n()).done;){var _t95$postprocess;var _t95=_step37.value;r=((_t95$postprocess=_t95.postprocess)===null||_t95$postprocess===void 0?void 0:_t95$postprocess.call(i,r,n))||r;}}catch(err){_iterator37.e(err);}finally{_iterator37.f();}return r;}function pi(t){if(t!==null&&t!==void 0&&t[mi])return t;var e=_objectSpread({},t);e.tokenColors&&!e.settings&&(e.settings=e.tokenColors,delete e.tokenColors),e.type||(e.type="dark"),e.colorReplacements=_objectSpread({},e.colorReplacements),e.settings||(e.settings=[]);var n=e.bg,i=e.fg;if(!n||!i){var _t96$settings,_t96$settings2,_e$colors,_e$colors2;var _t96=e.settings?e.settings.find(function(t){return!t.name&&!t.scope;}):void 0;_t96!==null&&_t96!==void 0&&(_t96$settings=_t96.settings)!==null&&_t96$settings!==void 0&&_t96$settings.foreground&&(i=_t96.settings.foreground),_t96!==null&&_t96!==void 0&&(_t96$settings2=_t96.settings)!==null&&_t96$settings2!==void 0&&_t96$settings2.background&&(n=_t96.settings.background),!i&&e!==null&&e!==void 0&&(_e$colors=e.colors)!==null&&_e$colors!==void 0&&_e$colors["editor.foreground"]&&(i=e.colors["editor.foreground"]),!n&&e!==null&&e!==void 0&&(_e$colors2=e.colors)!==null&&_e$colors2!==void 0&&_e$colors2["editor.background"]&&(n=e.colors["editor.background"]),i||(i="light"===e.type?ci.light:ci.dark),n||(n="light"===e.type?ui.light:ui.dark),e.fg=i,e.bg=n;}e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope||e.settings.unshift({settings:{foreground:e.fg,background:e.bg}});var r=0;var o=new Map();function s(t){var _e$colorReplacements;if(o.has(t))return o.get(t);r+=1;var n="#".concat(r.toString(16).padStart(8,"0").toLowerCase());return(_e$colorReplacements=e.colorReplacements)!==null&&_e$colorReplacements!==void 0&&_e$colorReplacements["#".concat(n)]?s(t):(o.set(t,n),n);}e.settings=e.settings.map(function(t){var _t$settings,_t$settings2;var n=((_t$settings=t.settings)===null||_t$settings===void 0?void 0:_t$settings.foreground)&&!t.settings.foreground.startsWith("#"),i=((_t$settings2=t.settings)===null||_t$settings2===void 0?void 0:_t$settings2.background)&&!t.settings.background.startsWith("#");if(!n&&!i)return t;var r=_objectSpread(_objectSpread({},t),{},{settings:_objectSpread({},t.settings)});if(n){var _n44=s(t.settings.foreground);e.colorReplacements[_n44]=t.settings.foreground,r.settings.foreground=_n44;}if(i){var _n45=s(t.settings.background);e.colorReplacements[_n45]=t.settings.background,r.settings.background=_n45;}return r;});for(var _i23=0,_Object$keys2=Object.keys(e.colors||{});_i23<_Object$keys2.length;_i23++){var _e$colors$_t;var _t97=_Object$keys2[_i23];if(("editor.foreground"===_t97||"editor.background"===_t97||_t97.startsWith("terminal.ansi"))&&!((_e$colors$_t=e.colors[_t97])!==null&&_e$colors$_t!==void 0&&_e$colors$_t.startsWith("#"))){var _n46=s(e.colors[_t97]);e.colorReplacements[_n46]=e.colors[_t97],e.colors[_t97]=_n46;}}return Object.defineProperty(e,mi,{enumerable:!1,writable:!1,value:!0}),e;}function hi(_x7){return _hi.apply(this,arguments);}function _hi(){_hi=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee13(t){return _regeneratorRuntime().wrap(function _callee13$(_context14){while(1)switch(_context14.prev=_context14.next){case 0:_context14.t0=Array;_context14.t1=Set;_context14.next=4;return Promise.all(t.filter(function(t){return!xn(t);}).map(/*#__PURE__*/function(){var _ref25=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee12(t){return _regeneratorRuntime().wrap(function _callee12$(_context13){while(1)switch(_context13.prev=_context13.next){case 0:_context13.next=2;return On(t).then(function(t){return Array.isArray(t)?t:[t];});case 2:return _context13.abrupt("return",_context13.sent);case 3:case"end":return _context13.stop();}},_callee12);}));return function(_x11){return _ref25.apply(this,arguments);};}()));case 4:_context14.t2=_context14.sent.flat();_context14.t3=new _context14.t1(_context14.t2);return _context14.abrupt("return",_context14.t0.from.call(_context14.t0,_context14.t3));case 7:case"end":return _context14.stop();}},_callee13);}));return _hi.apply(this,arguments);}function di(_x8){return _di.apply(this,arguments);}function _di(){_di=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee15(t){return _regeneratorRuntime().wrap(function _callee15$(_context16){while(1)switch(_context16.prev=_context16.next){case 0:_context16.next=2;return Promise.all(t.map(/*#__PURE__*/function(){var _ref26=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee14(t){return _regeneratorRuntime().wrap(function _callee14$(_context15){while(1)switch(_context15.prev=_context15.next){case 0:if(!Ln(t)){_context15.next=4;break;}_context15.t0=null;_context15.next=9;break;case 4:_context15.t1=pi;_context15.next=7;return On(t);case 7:_context15.t2=_context15.sent;_context15.t0=(0,_context15.t1)(_context15.t2);case 9:return _context15.abrupt("return",_context15.t0);case 10:case"end":return _context15.stop();}},_callee14);}));return function(_x12){return _ref26.apply(this,arguments);};}()));case 2:return _context16.abrupt("return",_context16.sent.filter(function(t){return!!t;}));case 3:case"end":return _context16.stop();}},_callee15);}));return _di.apply(this,arguments);}function ki(){return _ki.apply(this,arguments);}function _ki(){_ki=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee18(){var t,_yield$Promise$all,_yield$Promise$all2,e,n,i,_args18=arguments;return _regeneratorRuntime().wrap(function _callee18$(_context19){while(1)switch(_context19.prev=_context19.next){case 0:t=_args18.length>0&&_args18[0]!==undefined?_args18[0]:{};t.loadWasm;_context19.next=4;return Promise.all([di(t.themes||[]),hi(t.langs||[]),t.engine||x(t.loadWasm||j)]);case 4:_yield$Promise$all=_context19.sent;_yield$Promise$all2=_slicedToArray(_yield$Promise$all,3);e=_yield$Promise$all2[0];n=_yield$Promise$all2[1];i=_yield$Promise$all2[2];return _context19.abrupt("return",function(t){vi+=1,!1!==t.warnings&&vi>=10&&vi%10==0&&console.warn("[Shiki] ".concat(vi," 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."));var e=!1;if(!t.engine)throw new Dn("`engine` option is required for synchronous mode");var n=(t.langs||[]).flat(1),i=(t.themes||[]).flat(1).map(pi),r=new wi(t.engine,n),o=new ji(r,i,n,t.langAlias);var s;function l(t){if("none"===t)return{bg:"",fg:"",name:"none",settings:[],type:"dark"};u();var e=o.getTheme(t);if(!e)throw new Dn("Theme `".concat(t,"` not found, you may need to load it first"));return e;}function a(){for(var _len7=arguments.length,t=new Array(_len7),_key7=0;_key7<_len7;_key7++){t[_key7]=arguments[_key7];}u(),o.loadLanguages(t.flat(1));}function c(){u();for(var _len8=arguments.length,t=new Array(_len8),_key8=0;_key8<_len8;_key8++){t[_key8]=arguments[_key8];}var _iterator41=_createForOfIteratorHelper(t.flat(1)),_step41;try{for(_iterator41.s();!(_step41=_iterator41.n()).done;){var _e56=_step41.value;o.loadTheme(_e56);}}catch(err){_iterator41.e(err);}finally{_iterator41.f();}}function u(){if(e)throw new Dn("Shiki instance has been disposed");}function m(){e||(e=!0,o.dispose(),vi-=1);}return _defineProperty({setTheme:function setTheme(t){u();var e=l(t);return s!==t&&(o.setTheme(e),s=t),{theme:e,colorMap:o.getColorMap()};},getTheme:l,getLanguage:function getLanguage(t){u();var e=o.getGrammar("string"==typeof t?t:t.name);if(!e)throw new Dn("Language `".concat(t,"` not found, you may need to load it first"));return e;},getLoadedThemes:function getLoadedThemes(){return u(),o.getLoadedThemes();},getLoadedLanguages:function getLoadedLanguages(){return u(),o.getLoadedLanguages();},loadLanguage:function(){var _loadLanguage=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee16(){var _len9,t,_key9,_args16=arguments;return _regeneratorRuntime().wrap(function _callee16$(_context17){while(1)switch(_context17.prev=_context17.next){case 0:for(_len9=_args16.length,t=new Array(_len9),_key9=0;_key9<_len9;_key9++){t[_key9]=_args16[_key9];}_context17.t0=a;_context17.next=4;return hi(t);case 4:_context17.t1=_context17.sent;return _context17.abrupt("return",(0,_context17.t0)(_context17.t1));case 6:case"end":return _context17.stop();}},_callee16);}));function loadLanguage(){return _loadLanguage.apply(this,arguments);}return loadLanguage;}(),loadLanguageSync:a,loadTheme:function(){var _loadTheme=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee17(){var _len10,t,_key10,_args17=arguments;return _regeneratorRuntime().wrap(function _callee17$(_context18){while(1)switch(_context18.prev=_context18.next){case 0:for(_len10=_args17.length,t=new Array(_len10),_key10=0;_key10<_len10;_key10++){t[_key10]=_args17[_key10];}u();_context18.t0=c;_context18.next=5;return di(t);case 5:_context18.t1=_context18.sent;return _context18.abrupt("return",(0,_context18.t0)(_context18.t1));case 7:case"end":return _context18.stop();}},_callee17);}));function loadTheme(){return _loadTheme.apply(this,arguments);}return loadTheme;}(),loadThemeSync:c,dispose:m},Symbol.dispose,m);}(_objectSpread(_objectSpread({},t),{},{loadWasm:void 0,themes:e,langs:n,engine:i})));case 10:case"end":return _context19.stop();}},_callee18);}));return _ki.apply(this,arguments);}function Si(){return _Si.apply(this,arguments);}function _Si(){_Si=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee19(){var t,e,_args19=arguments;return _regeneratorRuntime().wrap(function _callee19$(_context20){while(1)switch(_context20.prev=_context20.next){case 0:t=_args19.length>0&&_args19[0]!==undefined?_args19[0]:{};_context20.next=3;return ki(t);case 3:e=_context20.sent;return _context20.abrupt("return",_objectSpread(_objectSpread({getLastGrammarState:function getLastGrammarState(){for(var _len11=arguments.length,t=new Array(_len11),_key11=0;_key11<_len11;_key11++){t[_key11]=arguments[_key11];}return function(){for(var _len12=arguments.length,t=new Array(_len12),_key12=0;_key12<_len12;_key12++){t[_key12]=arguments[_key12];}if(2===t.length)return In(t[1]);var e=t[0],n=t[1],_t$=t[2],i=_t$===void 0?{}:_t$,_i$lang=i.lang,r=_i$lang===void 0?"text":_i$lang,_i$theme=i.theme,o=_i$theme===void 0?e.getLoadedThemes()[0]:_i$theme;if(Sn(r)||Cn(o))throw new m("Plain language does not have grammar state");if("ansi"===r)throw new m("ANSI language does not have grammar state");var _e$setTheme=e.setTheme(o),s=_e$setTheme.theme,l=_e$setTheme.colorMap,a=e.getLanguage(r);return new Gn(ti(n,a,s,l,i).stateStack,a.name,s.name);}.apply(void 0,[e].concat(t));},codeToTokensBase:function codeToTokensBase(t,n){return Zn(e,t,n);},codeToTokensWithThemes:function codeToTokensWithThemes(t,n){return oi(e,t,n);},codeToTokens:function codeToTokens(t,n){return si(e,t,n);},codeToHast:function codeToHast(t,n){return li(e,t,n);},codeToHtml:function codeToHtml(t,n){return ai(e,t,n);}},e),{},{getInternalContext:function getInternalContext(){return e;}}));case 5:case"end":return _context20.stop();}},_callee19);}));return _Si.apply(this,arguments);}function xi(t,e,n){var i,r,o;if(e)i=t,r=e,o=function o(){return x(n);};else{var _e52=t;i=_e52.langs,r=_e52.themes,o=_e52.engine;}return/*#__PURE__*/function(){var _ref23=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(t){var _t$themes,_t$langs;var e,n,s,l,a;return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:n=function _n49(t){if(Ln(t))return"none";if("string"==typeof t){var _e54=r[t];if(!_e54)throw new m("Theme `".concat(t,"` is not included in this bundle. You may want to load it from external source."));return _e54;}return t;};e=function _e55(t){if("string"==typeof t){if(xn(t))return[];var _e53=i[t];if(!_e53)throw new m("Language `".concat(t,"` is not included in this bundle. You may want to load it from external source."));return _e53;}return t;};s=((_t$themes=t.themes)!==null&&_t$themes!==void 0?_t$themes:[]).map(function(t){return n(t);});l=((_t$langs=t.langs)!==null&&_t$langs!==void 0?_t$langs:[]).map(function(t){return e(t);});_context5.next=6;return Si(_objectSpread(_objectSpread({engine:o()},t),{},{themes:s,langs:l}));case 6:a=_context5.sent;return _context5.abrupt("return",_objectSpread(_objectSpread({},a),{},{loadLanguage:function loadLanguage(){for(var _len5=arguments.length,t=new Array(_len5),_key5=0;_key5<_len5;_key5++){t[_key5]=arguments[_key5];}return a.loadLanguage.apply(a,_toConsumableArray(t.map(e)));},loadTheme:function loadTheme(){for(var _len6=arguments.length,t=new Array(_len6),_key6=0;_key6<_len6;_key6++){t[_key6]=arguments[_key6];}return a.loadTheme.apply(a,_toConsumableArray(t.map(n)));}}));case 8:case"end":return _context5.stop();}},_callee4);}));return function(_x9){return _ref23.apply(this,arguments);};}();}return{setters:[function(_tslib){t=_tslib.__decorate;},function(_index001CjsJs){e=_index001CjsJs.x;},function(_litDecoratorsJs){n=_litDecoratorsJs.state;i=_litDecoratorsJs.customElement;},function(_nileHighlighterCssCjsJs){r=_nileHighlighterCssCjsJs.s;},function(_internalNileElementCjsJs){o=_internalNileElementCjsJs.N;},function(_property002CjsJs){s=_property002CjsJs.n;},function(_lit){}],execute:function execute(){_excluded=["content","explanation","offset"];l=[{id:"abap",name:"ABAP","import":function _import(){return _context["import"]("../abap-3b3fe406.cjs.js");}},{id:"actionscript-3",name:"ActionScript","import":function _import(){return _context["import"]("../actionscript-3-bfb4c9ee.cjs.js");}},{id:"ada",name:"Ada","import":function _import(){return _context["import"]("../ada-cf320841.cjs.js");}},{id:"angular-html",name:"Angular HTML","import":function _import(){return _context["import"]("../angular-html-2d4bdba3.cjs.js").then(function(t){return t.f;});}},{id:"angular-ts",name:"Angular TypeScript","import":function _import(){return _context["import"]("../angular-ts-f3444056.cjs.js");}},{id:"apache",name:"Apache Conf","import":function _import(){return _context["import"]("../apache-8c723a80.cjs.js");}},{id:"apex",name:"Apex","import":function _import(){return _context["import"]("../apex-4fae5b4b.cjs.js");}},{id:"apl",name:"APL","import":function _import(){return _context["import"]("../apl-6dcd4ac5.cjs.js");}},{id:"applescript",name:"AppleScript","import":function _import(){return _context["import"]("../applescript-a967e4a2.cjs.js");}},{id:"ara",name:"Ara","import":function _import(){return _context["import"]("../ara-6596ec94.cjs.js");}},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],"import":function _import(){return _context["import"]("../asciidoc-075b3bd4.cjs.js");}},{id:"asm",name:"Assembly","import":function _import(){return _context["import"]("../asm-d52952fd.cjs.js");}},{id:"astro",name:"Astro","import":function _import(){return _context["import"]("../astro-bbf64346.cjs.js");}},{id:"awk",name:"AWK","import":function _import(){return _context["import"]("../awk-e9ad4440.cjs.js");}},{id:"ballerina",name:"Ballerina","import":function _import(){return _context["import"]("../ballerina-6f045f76.cjs.js");}},{id:"bat",name:"Batch File",aliases:["batch"],"import":function _import(){return _context["import"]("../bat-f5ba0872.cjs.js");}},{id:"beancount",name:"Beancount","import":function _import(){return _context["import"]("../beancount-2bbbc8c1.cjs.js");}},{id:"berry",name:"Berry",aliases:["be"],"import":function _import(){return _context["import"]("../berry-af312840.cjs.js");}},{id:"bibtex",name:"BibTeX","import":function _import(){return _context["import"]("../bibtex-5fd34f10.cjs.js");}},{id:"bicep",name:"Bicep","import":function _import(){return _context["import"]("../bicep-5246d818.cjs.js");}},{id:"blade",name:"Blade","import":function _import(){return _context["import"]("../blade-fd536bb5.cjs.js");}},{id:"c",name:"C","import":function _import(){return _context["import"]("../c-37e019c9.cjs.js");}},{id:"cadence",name:"Cadence",aliases:["cdc"],"import":function _import(){return _context["import"]("../cadence-97777a1b.cjs.js");}},{id:"clarity",name:"Clarity","import":function _import(){return _context["import"]("../clarity-6587d016.cjs.js");}},{id:"clojure",name:"Clojure",aliases:["clj"],"import":function _import(){return _context["import"]("../clojure-eff435eb.cjs.js");}},{id:"cmake",name:"CMake","import":function _import(){return _context["import"]("../cmake-ef9020c2.cjs.js");}},{id:"cobol",name:"COBOL","import":function _import(){return _context["import"]("../cobol-17b383d2.cjs.js");}},{id:"codeowners",name:"CODEOWNERS","import":function _import(){return _context["import"]("../codeowners-e245640f.cjs.js");}},{id:"codeql",name:"CodeQL",aliases:["ql"],"import":function _import(){return _context["import"]("../codeql-6ec42332.cjs.js");}},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],"import":function _import(){return _context["import"]("../coffee-1e644abf.cjs.js");}},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],"import":function _import(){return _context["import"]("../common-lisp-166170ac.cjs.js");}},{id:"coq",name:"Coq","import":function _import(){return _context["import"]("../coq-cf4b22a1.cjs.js");}},{id:"cpp",name:"C++",aliases:["c++"],"import":function _import(){return _context["import"]("../cpp-4a7d85d2.cjs.js");}},{id:"crystal",name:"Crystal","import":function _import(){return _context["import"]("../crystal-14ac6a7a.cjs.js");}},{id:"csharp",name:"C#",aliases:["c#","cs"],"import":function _import(){return _context["import"]("../csharp-1d436933.cjs.js");}},{id:"css",name:"CSS","import":function _import(){return _context["import"]("../css-d2ca974d.cjs.js");}},{id:"csv",name:"CSV","import":function _import(){return _context["import"]("../csv-4de81c4f.cjs.js");}},{id:"cue",name:"CUE","import":function _import(){return _context["import"]("../cue-2d6c834f.cjs.js");}},{id:"cypher",name:"Cypher",aliases:["cql"],"import":function _import(){return _context["import"]("../cypher-08811c61.cjs.js");}},{id:"d",name:"D","import":function _import(){return _context["import"]("../d-c9d02fc4.cjs.js");}},{id:"dart",name:"Dart","import":function _import(){return _context["import"]("../dart-c67e4eb1.cjs.js");}},{id:"dax",name:"DAX","import":function _import(){return _context["import"]("../dax-b8740740.cjs.js");}},{id:"desktop",name:"Desktop","import":function _import(){return _context["import"]("../desktop-a8217439.cjs.js");}},{id:"diff",name:"Diff","import":function _import(){return _context["import"]("../diff-3b1ed2f7.cjs.js");}},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],"import":function _import(){return _context["import"]("../docker-5807f81f.cjs.js");}},{id:"dotenv",name:"dotEnv","import":function _import(){return _context["import"]("../dotenv-aa198bda.cjs.js");}},{id:"dream-maker",name:"Dream Maker","import":function _import(){return _context["import"]("../dream-maker-4174de10.cjs.js");}},{id:"edge",name:"Edge","import":function _import(){return _context["import"]("../edge-a5e6fbf8.cjs.js");}},{id:"elixir",name:"Elixir","import":function _import(){return _context["import"]("../elixir-326b4267.cjs.js");}},{id:"elm",name:"Elm","import":function _import(){return _context["import"]("../elm-9666a0ea.cjs.js");}},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],"import":function _import(){return _context["import"]("../emacs-lisp-d9c775dd.cjs.js");}},{id:"erb",name:"ERB","import":function _import(){return _context["import"]("../erb-da176591.cjs.js");}},{id:"erlang",name:"Erlang",aliases:["erl"],"import":function _import(){return _context["import"]("../erlang-a7ddbc2e.cjs.js");}},{id:"fennel",name:"Fennel","import":function _import(){return _context["import"]("../fennel-8fcc9497.cjs.js");}},{id:"fish",name:"Fish","import":function _import(){return _context["import"]("../fish-92e39221.cjs.js");}},{id:"fluent",name:"Fluent",aliases:["ftl"],"import":function _import(){return _context["import"]("../fluent-0af8d775.cjs.js");}},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],"import":function _import(){return _context["import"]("../fortran-fixed-form-03f47e7f.cjs.js");}},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],"import":function _import(){return _context["import"]("../fortran-free-form-0a4f78ab.cjs.js");}},{id:"fsharp",name:"F#",aliases:["f#","fs"],"import":function _import(){return _context["import"]("../fsharp-e47f1ac5.cjs.js");}},{id:"gdresource",name:"GDResource","import":function _import(){return _context["import"]("../gdresource-4a760fae.cjs.js");}},{id:"gdscript",name:"GDScript","import":function _import(){return _context["import"]("../gdscript-e74667f0.cjs.js");}},{id:"gdshader",name:"GDShader","import":function _import(){return _context["import"]("../gdshader-a8dc8334.cjs.js");}},{id:"genie",name:"Genie","import":function _import(){return _context["import"]("../genie-b345f8fd.cjs.js");}},{id:"gherkin",name:"Gherkin","import":function _import(){return _context["import"]("../gherkin-e7d3b8bf.cjs.js");}},{id:"git-commit",name:"Git Commit Message","import":function _import(){return _context["import"]("../git-commit-41b8df9e.cjs.js");}},{id:"git-rebase",name:"Git Rebase Message","import":function _import(){return _context["import"]("../git-rebase-db9d0393.cjs.js");}},{id:"gleam",name:"Gleam","import":function _import(){return _context["import"]("../gleam-17162417.cjs.js");}},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],"import":function _import(){return _context["import"]("../glimmer-js-1d7b2b30.cjs.js");}},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],"import":function _import(){return _context["import"]("../glimmer-ts-ff838ab5.cjs.js");}},{id:"glsl",name:"GLSL","import":function _import(){return _context["import"]("../glsl-97f52501.cjs.js");}},{id:"gnuplot",name:"Gnuplot","import":function _import(){return _context["import"]("../gnuplot-338e26cd.cjs.js");}},{id:"go",name:"Go","import":function _import(){return _context["import"]("../go-9bee484b.cjs.js");}},{id:"graphql",name:"GraphQL",aliases:["gql"],"import":function _import(){return _context["import"]("../graphql-590ff2c8.cjs.js");}},{id:"groovy",name:"Groovy","import":function _import(){return _context["import"]("../groovy-d10d625e.cjs.js");}},{id:"hack",name:"Hack","import":function _import(){return _context["import"]("../hack-df4b1838.cjs.js");}},{id:"haml",name:"Ruby Haml","import":function _import(){return _context["import"]("../haml-fc55d991.cjs.js");}},{id:"handlebars",name:"Handlebars",aliases:["hbs"],"import":function _import(){return _context["import"]("../handlebars-e654b969.cjs.js");}},{id:"haskell",name:"Haskell",aliases:["hs"],"import":function _import(){return _context["import"]("../haskell-2fd26c38.cjs.js");}},{id:"haxe",name:"Haxe","import":function _import(){return _context["import"]("../haxe-b971d379.cjs.js");}},{id:"hcl",name:"HashiCorp HCL","import":function _import(){return _context["import"]("../hcl-78a39e3b.cjs.js");}},{id:"hjson",name:"Hjson","import":function _import(){return _context["import"]("../hjson-e7fa4757.cjs.js");}},{id:"hlsl",name:"HLSL","import":function _import(){return _context["import"]("../hlsl-8dffacde.cjs.js");}},{id:"html",name:"HTML","import":function _import(){return _context["import"]("../html-e9105e52.cjs.js");}},{id:"html-derivative",name:"HTML (Derivative)","import":function _import(){return _context["import"]("../html-derivative-5770e3ee.cjs.js");}},{id:"http",name:"HTTP","import":function _import(){return _context["import"]("../http-cd87b042.cjs.js");}},{id:"hxml",name:"HXML","import":function _import(){return _context["import"]("../hxml-3e0a6d80.cjs.js");}},{id:"hy",name:"Hy","import":function _import(){return _context["import"]("../hy-431f15f8.cjs.js");}},{id:"imba",name:"Imba","import":function _import(){return _context["import"]("../imba-f4b37378.cjs.js");}},{id:"ini",name:"INI",aliases:["properties"],"import":function _import(){return _context["import"]("../ini-ad09f667.cjs.js");}},{id:"java",name:"Java","import":function _import(){return _context["import"]("../java-103ebcb7.cjs.js");}},{id:"javascript",name:"JavaScript",aliases:["js"],"import":function _import(){return _context["import"]("../javascript-1917eae5.cjs.js");}},{id:"jinja",name:"Jinja","import":function _import(){return _context["import"]("../jinja-3e4df6e6.cjs.js");}},{id:"jison",name:"Jison","import":function _import(){return _context["import"]("../jison-02d0c318.cjs.js");}},{id:"json",name:"JSON","import":function _import(){return _context["import"]("../json-1f14b548.cjs.js");}},{id:"json5",name:"JSON5","import":function _import(){return _context["import"]("../json5-6e80c3f0.cjs.js");}},{id:"jsonc",name:"JSON with Comments","import":function _import(){return _context["import"]("../jsonc-27fb4071.cjs.js");}},{id:"jsonl",name:"JSON Lines","import":function _import(){return _context["import"]("../jsonl-fff408ea.cjs.js");}},{id:"jsonnet",name:"Jsonnet","import":function _import(){return _context["import"]("../jsonnet-836c4375.cjs.js");}},{id:"jssm",name:"JSSM",aliases:["fsl"],"import":function _import(){return _context["import"]("../jssm-83ac5235.cjs.js");}},{id:"jsx",name:"JSX","import":function _import(){return _context["import"]("../jsx-32993c01.cjs.js");}},{id:"julia",name:"Julia",aliases:["jl"],"import":function _import(){return _context["import"]("../julia-8a8d3e5e.cjs.js");}},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],"import":function _import(){return _context["import"]("../kotlin-e78c75c3.cjs.js");}},{id:"kusto",name:"Kusto",aliases:["kql"],"import":function _import(){return _context["import"]("../kusto-b1798df9.cjs.js");}},{id:"latex",name:"LaTeX","import":function _import(){return _context["import"]("../latex-8fc6ef8b.cjs.js");}},{id:"lean",name:"Lean 4",aliases:["lean4"],"import":function _import(){return _context["import"]("../lean-da883fd7.cjs.js");}},{id:"less",name:"Less","import":function _import(){return _context["import"]("../less-d6d8f8d3.cjs.js");}},{id:"liquid",name:"Liquid","import":function _import(){return _context["import"]("../liquid-51fa0062.cjs.js");}},{id:"log",name:"Log file","import":function _import(){return _context["import"]("../log-8f1e1fb1.cjs.js");}},{id:"logo",name:"Logo","import":function _import(){return _context["import"]("../logo-03748707.cjs.js");}},{id:"lua",name:"Lua","import":function _import(){return _context["import"]("../lua-371a698b.cjs.js");}},{id:"luau",name:"Luau","import":function _import(){return _context["import"]("../luau-0b166b7a.cjs.js");}},{id:"make",name:"Makefile",aliases:["makefile"],"import":function _import(){return _context["import"]("../make-29615c5d.cjs.js");}},{id:"markdown",name:"Markdown",aliases:["md"],"import":function _import(){return _context["import"]("../markdown-88aff8dc.cjs.js");}},{id:"marko",name:"Marko","import":function _import(){return _context["import"]("../marko-f5133ada.cjs.js");}},{id:"matlab",name:"MATLAB","import":function _import(){return _context["import"]("../matlab-e1d026b3.cjs.js");}},{id:"mdc",name:"MDC","import":function _import(){return _context["import"]("../mdc-27a84b9c.cjs.js");}},{id:"mdx",name:"MDX","import":function _import(){return _context["import"]("../mdx-a859ee84.cjs.js");}},{id:"mermaid",name:"Mermaid",aliases:["mmd"],"import":function _import(){return _context["import"]("../mermaid-76489bb0.cjs.js");}},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],"import":function _import(){return _context["import"]("../mipsasm-535432b4.cjs.js");}},{id:"mojo",name:"Mojo","import":function _import(){return _context["import"]("../mojo-ce257175.cjs.js");}},{id:"move",name:"Move","import":function _import(){return _context["import"]("../move-9d03127a.cjs.js");}},{id:"narrat",name:"Narrat Language",aliases:["nar"],"import":function _import(){return _context["import"]("../narrat-222e74f7.cjs.js");}},{id:"nextflow",name:"Nextflow",aliases:["nf"],"import":function _import(){return _context["import"]("../nextflow-c666e91b.cjs.js");}},{id:"nginx",name:"Nginx","import":function _import(){return _context["import"]("../nginx-5a997e1c.cjs.js");}},{id:"nim",name:"Nim","import":function _import(){return _context["import"]("../nim-09970742.cjs.js");}},{id:"nix",name:"Nix","import":function _import(){return _context["import"]("../nix-74415e09.cjs.js");}},{id:"nushell",name:"nushell",aliases:["nu"],"import":function _import(){return _context["import"]("../nushell-f6109162.cjs.js");}},{id:"objective-c",name:"Objective-C",aliases:["objc"],"import":function _import(){return _context["import"]("../objective-c-d2813e22.cjs.js");}},{id:"objective-cpp",name:"Objective-C++","import":function _import(){return _context["import"]("../objective-cpp-24f71cc1.cjs.js");}},{id:"ocaml",name:"OCaml","import":function _import(){return _context["import"]("../ocaml-a645dc44.cjs.js");}},{id:"pascal",name:"Pascal","import":function _import(){return _context["import"]("../pascal-0e4492b8.cjs.js");}},{id:"perl",name:"Perl","import":function _import(){return _context["import"]("../perl-b65904c7.cjs.js");}},{id:"php",name:"PHP","import":function _import(){return _context["import"]("../php-78cc5bc5.cjs.js");}},{id:"plsql",name:"PL/SQL","import":function _import(){return _context["import"]("../plsql-9c8ee386.cjs.js");}},{id:"po",name:"Gettext PO",aliases:["pot","potx"],"import":function _import(){return _context["import"]("../po-24d97211.cjs.js");}},{id:"postcss",name:"PostCSS","import":function _import(){return _context["import"]("../postcss-c6ce33f2.cjs.js");}},{id:"powerquery",name:"PowerQuery","import":function _import(){return _context["import"]("../powerquery-b3cf2fe4.cjs.js");}},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],"import":function _import(){return _context["import"]("../powershell-0e474c98.cjs.js");}},{id:"prisma",name:"Prisma","import":function _import(){return _context["import"]("../prisma-6c07649f.cjs.js");}},{id:"prolog",name:"Prolog","import":function _import(){return _context["import"]("../prolog-5ca3d32a.cjs.js");}},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],"import":function _import(){return _context["import"]("../proto-936c4285.cjs.js");}},{id:"pug",name:"Pug",aliases:["jade"],"import":function _import(){return _context["import"]("../pug-c28ab4f7.cjs.js");}},{id:"puppet",name:"Puppet","import":function _import(){return _context["import"]("../puppet-0edcb77d.cjs.js");}},{id:"purescript",name:"PureScript","import":function _import(){return _context["import"]("../purescript-83578674.cjs.js");}},{id:"python",name:"Python",aliases:["py"],"import":function _import(){return _context["import"]("../python-cd582381.cjs.js");}},{id:"qml",name:"QML","import":function _import(){return _context["import"]("../qml-00d577fb.cjs.js");}},{id:"qmldir",name:"QML Directory","import":function _import(){return _context["import"]("../qmldir-de94058a.cjs.js");}},{id:"qss",name:"Qt Style Sheets","import":function _import(){return _context["import"]("../qss-b5aebc0c.cjs.js");}},{id:"r",name:"R","import":function _import(){return _context["import"]("../r-c4984884.cjs.js");}},{id:"racket",name:"Racket","import":function _import(){return _context["import"]("../racket-372dae17.cjs.js");}},{id:"raku",name:"Raku",aliases:["perl6"],"import":function _import(){return _context["import"]("../raku-28dac2ac.cjs.js");}},{id:"razor",name:"ASP.NET Razor","import":function _import(){return _context["import"]("../razor-f4bb50e8.cjs.js");}},{id:"reg",name:"Windows Registry Script","import":function _import(){return _context["import"]("../reg-c1ad966b.cjs.js");}},{id:"regexp",name:"RegExp",aliases:["regex"],"import":function _import(){return _context["import"]("../regexp-7d16f8f6.cjs.js");}},{id:"rel",name:"Rel","import":function _import(){return _context["import"]("../rel-094ef2ef.cjs.js");}},{id:"riscv",name:"RISC-V","import":function _import(){return _context["import"]("../riscv-fb8fefd5.cjs.js");}},{id:"rst",name:"reStructuredText","import":function _import(){return _context["import"]("../rst-7d1dcbeb.cjs.js");}},{id:"ruby",name:"Ruby",aliases:["rb"],"import":function _import(){return _context["import"]("../ruby-d81ebad6.cjs.js");}},{id:"rust",name:"Rust",aliases:["rs"],"import":function _import(){return _context["import"]("../rust-77f77dba.cjs.js");}},{id:"sas",name:"SAS","import":function _import(){return _context["import"]("../sas-a14318c4.cjs.js");}},{id:"sass",name:"Sass","import":function _import(){return _context["import"]("../sass-4bfa8a08.cjs.js");}},{id:"scala",name:"Scala","import":function _import(){return _context["import"]("../scala-1658f844.cjs.js");}},{id:"scheme",name:"Scheme","import":function _import(){return _context["import"]("../scheme-d005bc51.cjs.js");}},{id:"scss",name:"SCSS","import":function _import(){return _context["import"]("../scss-364d5c19.cjs.js");}},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],"import":function _import(){return _context["import"]("../shaderlab-ea1267a9.cjs.js");}},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],"import":function _import(){return _context["import"]("../shellscript-f4aa09bf.cjs.js");}},{id:"shellsession",name:"Shell Session",aliases:["console"],"import":function _import(){return _context["import"]("../shellsession-2d7b9cec.cjs.js");}},{id:"smalltalk",name:"Smalltalk","import":function _import(){return _context["import"]("../smalltalk-43107eda.cjs.js");}},{id:"solidity",name:"Solidity","import":function _import(){return _context["import"]("../solidity-84a42506.cjs.js");}},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],"import":function _import(){return _context["import"]("../soy-2da041dd.cjs.js");}},{id:"sparql",name:"SPARQL","import":function _import(){return _context["import"]("../sparql-ebe1ddf3.cjs.js");}},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],"import":function _import(){return _context["import"]("../splunk-fc51f2e0.cjs.js");}},{id:"sql",name:"SQL","import":function _import(){return _context["import"]("../sql-e6e7243e.cjs.js");}},{id:"ssh-config",name:"SSH Config","import":function _import(){return _context["import"]("../ssh-config-2c008f51.cjs.js");}},{id:"stata",name:"Stata","import":function _import(){return _context["import"]("../stata-78afb97b.cjs.js");}},{id:"stylus",name:"Stylus",aliases:["styl"],"import":function _import(){return _context["import"]("../stylus-5554b914.cjs.js");}},{id:"svelte",name:"Svelte","import":function _import(){return _context["import"]("../svelte-8fb85d06.cjs.js");}},{id:"swift",name:"Swift","import":function _import(){return _context["import"]("../swift-dac6ddb9.cjs.js");}},{id:"system-verilog",name:"SystemVerilog","import":function _import(){return _context["import"]("../system-verilog-7d2d7268.cjs.js");}},{id:"systemd",name:"Systemd Units","import":function _import(){return _context["import"]("../systemd-31f846dc.cjs.js");}},{id:"tasl",name:"Tasl","import":function _import(){return _context["import"]("../tasl-dd3832d4.cjs.js");}},{id:"tcl",name:"Tcl","import":function _import(){return _context["import"]("../tcl-24a48a31.cjs.js");}},{id:"templ",name:"Templ","import":function _import(){return _context["import"]("../templ-6a6a6d7d.cjs.js");}},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],"import":function _import(){return _context["import"]("../terraform-078a2082.cjs.js");}},{id:"tex",name:"TeX","import":function _import(){return _context["import"]("../tex-b259605b.cjs.js");}},{id:"toml",name:"TOML","import":function _import(){return _context["import"]("../toml-2ef20d80.cjs.js");}},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],"import":function _import(){return _context["import"]("../ts-tags-af8e1b26.cjs.js");}},{id:"tsv",name:"TSV","import":function _import(){return _context["import"]("../tsv-b349f4f0.cjs.js");}},{id:"tsx",name:"TSX","import":function _import(){return _context["import"]("../tsx-f1319b4c.cjs.js");}},{id:"turtle",name:"Turtle","import":function _import(){return _context["import"]("../turtle-302b3fe1.cjs.js");}},{id:"twig",name:"Twig","import":function _import(){return _context["import"]("../twig-2431875e.cjs.js");}},{id:"typescript",name:"TypeScript",aliases:["ts"],"import":function _import(){return _context["import"]("../typescript-9f93eb5f.cjs.js");}},{id:"typespec",name:"TypeSpec",aliases:["tsp"],"import":function _import(){return _context["import"]("../typespec-a81d15f9.cjs.js");}},{id:"typst",name:"Typst",aliases:["typ"],"import":function _import(){return _context["import"]("../typst-c0848aef.cjs.js");}},{id:"v",name:"V","import":function _import(){return _context["import"]("../v-305dc69d.cjs.js");}},{id:"vala",name:"Vala","import":function _import(){return _context["import"]("../vala-d72198fe.cjs.js");}},{id:"vb",name:"Visual Basic",aliases:["cmd"],"import":function _import(){return _context["import"]("../vb-22ba91f2.cjs.js");}},{id:"verilog",name:"Verilog","import":function _import(){return _context["import"]("../verilog-043463d1.cjs.js");}},{id:"vhdl",name:"VHDL","import":function _import(){return _context["import"]("../vhdl-67213687.cjs.js");}},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],"import":function _import(){return _context["import"]("../viml-5c38df6b.cjs.js");}},{id:"vue",name:"Vue","import":function _import(){return _context["import"]("../vue-1494cdce.cjs.js");}},{id:"vue-html",name:"Vue HTML","import":function _import(){return _context["import"]("../vue-html-36dd3960.cjs.js");}},{id:"vyper",name:"Vyper",aliases:["vy"],"import":function _import(){return _context["import"]("../vyper-5c49b1e6.cjs.js");}},{id:"wasm",name:"WebAssembly","import":function _import(){return _context["import"]("../wasm-8071bff6.cjs.js");}},{id:"wenyan",name:"Wenyan",aliases:["文言"],"import":function _import(){return _context["import"]("../wenyan-e2731fa1.cjs.js");}},{id:"wgsl",name:"WGSL","import":function _import(){return _context["import"]("../wgsl-239d9220.cjs.js");}},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],"import":function _import(){return _context["import"]("../wikitext-b9a7e67b.cjs.js");}},{id:"wolfram",name:"Wolfram",aliases:["wl"],"import":function _import(){return _context["import"]("../wolfram-52fe5a3c.cjs.js");}},{id:"xml",name:"XML","import":function _import(){return _context["import"]("../xml-667b435c.cjs.js");}},{id:"xsl",name:"XSL","import":function _import(){return _context["import"]("../xsl-6a5865d1.cjs.js");}},{id:"yaml",name:"YAML",aliases:["yml"],"import":function _import(){return _context["import"]("../yaml-bab9f143.cjs.js");}},{id:"zenscript",name:"ZenScript","import":function _import(){return _context["import"]("../zenscript-ba25033d.cjs.js");}},{id:"zig",name:"Zig","import":function _import(){return _context["import"]("../zig-97031b27.cjs.js");}}];a=_objectSpread(_objectSpread({},Object.fromEntries(l.map(function(t){return[t.id,t["import"]];}))),Object.fromEntries(l.flatMap(function(t){var _t$aliases;return((_t$aliases=t.aliases)===null||_t$aliases===void 0?void 0:_t$aliases.map(function(e){return[e,t["import"]];}))||[];})));c=[{id:"andromeeda",displayName:"Andromeeda",type:"dark","import":function _import(){return _context["import"]("../andromeeda-e75bca18.cjs.js");}},{id:"aurora-x",displayName:"Aurora X",type:"dark","import":function _import(){return _context["import"]("../aurora-x-38d2b9f7.cjs.js");}},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark","import":function _import(){return _context["import"]("../ayu-dark-67b69907.cjs.js");}},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark","import":function _import(){return _context["import"]("../catppuccin-frappe-eb77e95d.cjs.js");}},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light","import":function _import(){return _context["import"]("../catppuccin-latte-471f76fc.cjs.js");}},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark","import":function _import(){return _context["import"]("../catppuccin-macchiato-7ac78e7e.cjs.js");}},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark","import":function _import(){return _context["import"]("../catppuccin-mocha-3b00f8d6.cjs.js");}},{id:"dark-plus",displayName:"Dark Plus",type:"dark","import":function _import(){return _context["import"]("../dark-plus-06e38001.cjs.js");}},{id:"dracula",displayName:"Dracula Theme",type:"dark","import":function _import(){return _context["import"]("../dracula-194d4cbb.cjs.js");}},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark","import":function _import(){return _context["import"]("../dracula-soft-72e9ff7e.cjs.js");}},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark","import":function _import(){return _context["import"]("../everforest-dark-c1192a3d.cjs.js");}},{id:"everforest-light",displayName:"Everforest Light",type:"light","import":function _import(){return _context["import"]("../everforest-light-479f9dab.cjs.js");}},{id:"github-dark",displayName:"GitHub Dark",type:"dark","import":function _import(){return _context["import"]("../github-dark-f22dbc3f.cjs.js");}},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark","import":function _import(){return _context["import"]("../github-dark-default-450c7c01.cjs.js");}},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark","import":function _import(){return _context["import"]("../github-dark-dimmed-ef1406bd.cjs.js");}},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark","import":function _import(){return _context["import"]("../github-dark-high-contrast-60f6edfa.cjs.js");}},{id:"github-light",displayName:"GitHub Light",type:"light","import":function _import(){return _context["import"]("../github-light-9fcd2de8.cjs.js");}},{id:"github-light-default",displayName:"GitHub Light Default",type:"light","import":function _import(){return _context["import"]("../github-light-default-cf60a983.cjs.js");}},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light","import":function _import(){return _context["import"]("../github-light-high-contrast-ab424680.cjs.js");}},{id:"houston",displayName:"Houston",type:"dark","import":function _import(){return _context["import"]("../houston-c5fd415a.cjs.js");}},{id:"laserwave",displayName:"LaserWave",type:"dark","import":function _import(){return _context["import"]("../laserwave-00235336.cjs.js");}},{id:"light-plus",displayName:"Light Plus",type:"light","import":function _import(){return _context["import"]("../light-plus-4a1c9bf1.cjs.js");}},{id:"material-theme",displayName:"Material Theme",type:"dark","import":function _import(){return _context["import"]("../material-theme-6bd1a4ce.cjs.js");}},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark","import":function _import(){return _context["import"]("../material-theme-darker-ad11633a.cjs.js");}},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light","import":function _import(){return _context["import"]("../material-theme-lighter-d07fe9fc.cjs.js");}},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark","import":function _import(){return _context["import"]("../material-theme-ocean-6d08ece3.cjs.js");}},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark","import":function _import(){return _context["import"]("../material-theme-palenight-44924eac.cjs.js");}},{id:"min-dark",displayName:"Min Dark",type:"dark","import":function _import(){return _context["import"]("../min-dark-b1451b85.cjs.js");}},{id:"min-light",displayName:"Min Light",type:"light","import":function _import(){return _context["import"]("../min-light-415eaf98.cjs.js");}},{id:"monokai",displayName:"Monokai",type:"dark","import":function _import(){return _context["import"]("../monokai-95f92c88.cjs.js");}},{id:"night-owl",displayName:"Night Owl",type:"dark","import":function _import(){return _context["import"]("../night-owl-47fab5d4.cjs.js");}},{id:"nord",displayName:"Nord",type:"dark","import":function _import(){return _context["import"]("../nord-da5137c0.cjs.js");}},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark","import":function _import(){return _context["import"]("../one-dark-pro-9477257e.cjs.js");}},{id:"one-light",displayName:"One Light",type:"light","import":function _import(){return _context["import"]("../one-light-a7b00541.cjs.js");}},{id:"plastic",displayName:"Plastic",type:"dark","import":function _import(){return _context["import"]("../plastic-bf752d9d.cjs.js");}},{id:"poimandres",displayName:"Poimandres",type:"dark","import":function _import(){return _context["import"]("../poimandres-14854837.cjs.js");}},{id:"red",displayName:"Red",type:"dark","import":function _import(){return _context["import"]("../red-615dd95a.cjs.js");}},{id:"rose-pine",displayName:"Rosé Pine",type:"dark","import":function _import(){return _context["import"]("../rose-pine-107391a9.cjs.js");}},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light","import":function _import(){return _context["import"]("../rose-pine-dawn-05b4d628.cjs.js");}},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark","import":function _import(){return _context["import"]("../rose-pine-moon-bf66f2ee.cjs.js");}},{id:"slack-dark",displayName:"Slack Dark",type:"dark","import":function _import(){return _context["import"]("../slack-dark-9441e826.cjs.js");}},{id:"slack-ochin",displayName:"Slack Ochin",type:"light","import":function _import(){return _context["import"]("../slack-ochin-6028b180.cjs.js");}},{id:"snazzy-light",displayName:"Snazzy Light",type:"light","import":function _import(){return _context["import"]("../snazzy-light-b71cee57.cjs.js");}},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark","import":function _import(){return _context["import"]("../solarized-dark-054f28e7.cjs.js");}},{id:"solarized-light",displayName:"Solarized Light",type:"light","import":function _import(){return _context["import"]("../solarized-light-6e4ad359.cjs.js");}},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark","import":function _import(){return _context["import"]("../synthwave-84-d04f7cff.cjs.js");}},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark","import":function _import(){return _context["import"]("../tokyo-night-041a0b32.cjs.js");}},{id:"vesper",displayName:"Vesper",type:"dark","import":function _import(){return _context["import"]("../vesper-e992e238.cjs.js");}},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark","import":function _import(){return _context["import"]("../vitesse-black-5bf0580d.cjs.js");}},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark","import":function _import(){return _context["import"]("../vitesse-dark-05d3e2a3.cjs.js");}},{id:"vitesse-light",displayName:"Vitesse Light",type:"light","import":function _import(){return _context["import"]("../vitesse-light-357ec0ca.cjs.js");}}];u=Object.fromEntries(c.map(function(t){return[t.id,t["import"]];}));m=/*#__PURE__*/function(_Error){function m(t){var _this;_classCallCheck(this,m);_this=_callSuper(this,m,[t]),_this.name="ShikiError";return _this;}_inherits(m,_Error);return _createClass(m);}(/*#__PURE__*/_wrapNativeSuper(Error));p=/*#__PURE__*/function(_Error2){function p(t){var _this2;_classCallCheck(this,p);_this2=_callSuper(this,p,[t]),_this2.name="ShikiError";return _this2;}_inherits(p,_Error2);return _createClass(p);}(/*#__PURE__*/_wrapNativeSuper(Error));d=function d(t,e){return t+(e-t%e)%e;};y=null;b=/*#__PURE__*/function(){function b(t){_classCallCheck(this,b);_defineProperty(this,"utf16Length",void 0);_defineProperty(this,"utf8Length",void 0);_defineProperty(this,"utf16Value",void 0);_defineProperty(this,"utf8Value",void 0);_defineProperty(this,"utf16OffsetToUtf8",void 0);_defineProperty(this,"utf8OffsetToUtf16",void 0);var e=t.length,n=b._utf8ByteLength(t),i=n!==e,r=i?new Uint32Array(e+1):null;i&&(r[e]=n);var o=i?new Uint32Array(n+1):null;i&&(o[n]=e);var s=new Uint8Array(n);var l=0;for(var _n2=0;_n2<e;_n2++){var _a=t.charCodeAt(_n2);var _c=_a,_u=!1;if(_a>=55296&&_a<=56319&&_n2+1<e){var _e2=t.charCodeAt(_n2+1);_e2>=56320&&_e2<=57343&&(_c=65536+(_a-55296<<10)|_e2-56320,_u=!0);}i&&(r[_n2]=l,_u&&(r[_n2+1]=l),_c<=127?o[l+0]=_n2:_c<=2047?(o[l+0]=_n2,o[l+1]=_n2):_c<=65535?(o[l+0]=_n2,o[l+1]=_n2,o[l+2]=_n2):(o[l+0]=_n2,o[l+1]=_n2,o[l+2]=_n2,o[l+3]=_n2)),_c<=127?s[l++]=_c:_c<=2047?(s[l++]=192|(1984&_c)>>>6,s[l++]=128|(63&_c)>>>0):_c<=65535?(s[l++]=224|(61440&_c)>>>12,s[l++]=128|(4032&_c)>>>6,s[l++]=128|(63&_c)>>>0):(s[l++]=240|(1835008&_c)>>>18,s[l++]=128|(258048&_c)>>>12,s[l++]=128|(4032&_c)>>>6,s[l++]=128|(63&_c)>>>0),_u&&_n2++;}this.utf16Length=e,this.utf8Length=n,this.utf16Value=t,this.utf8Value=s,this.utf16OffsetToUtf8=r,this.utf8OffsetToUtf16=o;}return _createClass(b,[{key:"createString",value:function createString(t){var e=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,e),e;}}],[{key:"_utf8ByteLength",value:function _utf8ByteLength(t){var e=0;for(var _n3=0,_i=t.length;_n3<_i;_n3++){var _r=t.charCodeAt(_n3);var _o=_r,_s=!1;if(_r>=55296&&_r<=56319&&_n3+1<_i){var _e3=t.charCodeAt(_n3+1);_e3>=56320&&_e3<=57343&&(_o=65536+(_r-55296<<10)|_e3-56320,_s=!0);}e+=_o<=127?1:_o<=2047?2:_o<=65535?3:4,_s&&_n3++;}return e;}}]);}();w=/*#__PURE__*/function(){function w(t){_classCallCheck(this,w);_defineProperty(this,"id",++w.LAST_ID);_defineProperty(this,"_onigBinding",void 0);_defineProperty(this,"content",void 0);_defineProperty(this,"utf16Length",void 0);_defineProperty(this,"utf8Length",void 0);_defineProperty(this,"utf16OffsetToUtf8",void 0);_defineProperty(this,"utf8OffsetToUtf16",void 0);_defineProperty(this,"ptr",void 0);if(!y)throw new p("Must invoke loadWasm first.");this._onigBinding=y,this.content=t;var e=new b(t);this.utf16Length=e.utf16Length,this.utf8Length=e.utf8Length,this.utf16OffsetToUtf8=e.utf16OffsetToUtf8,this.utf8OffsetToUtf16=e.utf8OffsetToUtf16,this.utf8Length<1e4&&!w._sharedPtrInUse?(w._sharedPtr||(w._sharedPtr=y.omalloc(1e4)),w._sharedPtrInUse=!0,y.HEAPU8.set(e.utf8Value,w._sharedPtr),this.ptr=w._sharedPtr):this.ptr=e.createString(y);}return _createClass(w,[{key:"convertUtf8OffsetToUtf16",value:function convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t;}},{key:"convertUtf16OffsetToUtf8",value:function convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t;}},{key:"dispose",value:function dispose(){this.ptr===w._sharedPtr?w._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr);}}]);}();_defineProperty(w,"LAST_ID",0);_defineProperty(w,"_sharedPtr",0);_defineProperty(w,"_sharedPtrInUse",!1);v=/*#__PURE__*/function(){function v(t){_classCallCheck(this,v);_defineProperty(this,"_onigBinding",void 0);_defineProperty(this,"_ptr",void 0);if(!y)throw new p("Must invoke loadWasm first.");var e=[],n=[];for(var _i2=0,_r2=t.length;_i2<_r2;_i2++){var _r3=new b(t[_i2]);e[_i2]=_r3.createString(y),n[_i2]=_r3.utf8Length;}var i=y.omalloc(4*t.length);y.HEAPU32.set(e,i/4);var r=y.omalloc(4*t.length);y.HEAPU32.set(n,r/4);var o=y.createOnigScanner(i,r,t.length);for(var _n4=0,_i3=t.length;_n4<_i3;_n4++)y.ofree(e[_n4]);y.ofree(r),y.ofree(i),0===o&&function(t){throw new p(t.UTF8ToString(t.getLastOnigError()));}(y),this._onigBinding=y,this._ptr=o;}return _createClass(v,[{key:"dispose",value:function dispose(){this._onigBinding.freeOnigScanner(this._ptr);}},{key:"findNextMatchSync",value:function findNextMatchSync(t,e,n){var i=0;if("number"==typeof n&&(i=n),"string"==typeof t){t=new w(t);var _n5=this._findNextMatchSync(t,e,!1,i);return t.dispose(),_n5;}return this._findNextMatchSync(t,e,!1,i);}},{key:"_findNextMatchSync",value:function _findNextMatchSync(t,e,n,i){var r=this._onigBinding,o=r.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(e),i);if(0===o)return null;var s=r.HEAPU32;var l=o/4;var a=s[l++],c=s[l++],u=[];for(var _e4=0;_e4<c;_e4++){var _n6=t.convertUtf8OffsetToUtf16(s[l++]),_i4=t.convertUtf8OffsetToUtf16(s[l++]);u[_e4]={start:_n6,end:_i4,length:_i4-_n6};}return{index:a,captureIndices:u};}}]);}();O=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;M=/*#__PURE__*/function(){function M(){_classCallCheck(this,M);}return _createClass(M,null,[{key:"hasCaptures",value:function hasCaptures(t){return null!==t&&(O.lastIndex=0,O.test(t));}},{key:"replaceCaptures",value:function replaceCaptures(t,e,n){return t.replace(O,function(t,i,r,o){var s=n[parseInt(i||r,10)];if(!s)return t;{var _t2=e.substring(s.start,s.end);for(;"."===_t2[0];)_t2=_t2.substring(1);switch(o){case"downcase":return _t2.toLowerCase();case"upcase":return _t2.toUpperCase();default:return _t2;}}});}}]);}();E=/*#__PURE__*/function(){function E(t){_classCallCheck(this,E);this.fn=t,this.cache=new Map();}return _createClass(E,[{key:"get",value:function get(t){if(this.cache.has(t))return this.cache.get(t);var e=this.fn(t);return this.cache.set(t,e),e;}}]);}();R=/*#__PURE__*/function(){function R(t,e,n){var _this3=this;_classCallCheck(this,R);this._colorMap=t,this._defaults=e,this._root=n,this._cachedMatchRoot=new E(function(t){return _this3._root.match(t);});}return _createClass(R,[{key:"getColorMap",value:function getColorMap(){return this._colorMap.getColorMap();}},{key:"getDefaults",value:function getDefaults(){return this._defaults;}},{key:"match",value:function match(t){if(null===t)return this._defaults;var e=t.scopeName,n=this._cachedMatchRoot.get(e).find(function(e){return function(t,e){if(0===e.length)return!0;for(var _n11=0;_n11<e.length;_n11++){var i=e[_n11],_r4=!1;if(">"===i){if(_n11===e.length-1)return!1;i=e[++_n11],_r4=!0;}for(;t&&!B(t.scopeName,i);){if(_r4)return!1;t=t.parent;}if(!t)return!1;t=t.parent;}return!0;}(t.parent,e.parentScopes);});return n?new I(n.fontStyle,n.foreground,n.background):null;}}],[{key:"createFromRawTheme",value:function createFromRawTheme(t,e){return this.createFromParsedTheme(function(t){if(!t)return[];if(!t.settings||!Array.isArray(t.settings))return[];var e=t.settings,n=[],i=0;for(var _t3=0,_r5=e.length;_t3<_r5;_t3++){var _r6=void 0,_o2=e[_t3];if(!_o2.settings)continue;if("string"==typeof _o2.scope){var _t4=_o2.scope;_t4=_t4.replace(/^[,]+/,""),_t4=_t4.replace(/[,]+$/,""),_r6=_t4.split(",");}else _r6=Array.isArray(_o2.scope)?_o2.scope:[""];var _s2=-1;if("string"==typeof _o2.settings.fontStyle){_s2=0;var _t5=_o2.settings.fontStyle.split(" ");for(var _e5=0,_n12=_t5.length;_e5<_n12;_e5++){switch(_t5[_e5]){case"italic":_s2|=1;break;case"bold":_s2|=2;break;case"underline":_s2|=4;break;case"strikethrough":_s2|=8;}}}var _l=null;"string"==typeof _o2.settings.foreground&&N(_o2.settings.foreground)&&(_l=_o2.settings.foreground);var _a2=null;"string"==typeof _o2.settings.background&&N(_o2.settings.background)&&(_a2=_o2.settings.background);for(var _e6=0,_o3=_r6.length;_e6<_o3;_e6++){var _o4=_r6[_e6].trim().split(" "),_c2=_o4[_o4.length-1],_u2=null;_o4.length>1&&(_u2=_o4.slice(0,_o4.length-1),_u2.reverse()),n[i++]=new G(_c2,_u2,_t3,_s2,_l,_a2);}}return n;}(t),e);}},{key:"createFromParsedTheme",value:function createFromParsedTheme(t,e){return function(t,e){t.sort(function(t,e){var n=T(t.scope,e.scope);return 0!==n?n:(n=P(t.parentScopes,e.parentScopes),0!==n?n:t.index-e.index);});var n=0,i="#000000",r="#ffffff";for(;t.length>=1&&""===t[0].scope;){var _e7=t.shift();-1!==_e7.fontStyle&&(n=_e7.fontStyle),null!==_e7.foreground&&(i=_e7.foreground),null!==_e7.background&&(r=_e7.background);}var o=new _(e),s=new I(n,o.getId(i),o.getId(r)),l=new H(new F(0,null,-1,0,0),[]);for(var _e8=0,_n13=t.length;_e8<_n13;_e8++){var _n14=t[_e8];l.insert(0,_n14.scope,_n14.parentScopes,_n14.fontStyle,o.getId(_n14.foreground),o.getId(_n14.background));}return new R(o,s,l);}(t,e);}}]);}();$=/*#__PURE__*/function(){function t(_t6,e){_classCallCheck(this,t);this.parent=_t6,this.scopeName=e;}return _createClass(t,[{key:"push",value:function push(e){return new t(this,e);}},{key:"getSegments",value:function getSegments(){var _t7=this;var e=[];for(;_t7;)e.push(_t7.scopeName),_t7=_t7.parent;return e.reverse(),e;}},{key:"toString",value:function toString(){return this.getSegments().join(" ");}},{key:"extends",value:function _extends(_t8){return this===_t8||null!==this.parent&&this.parent["extends"](_t8);}},{key:"getExtensionIfDefined",value:function getExtensionIfDefined(_t9){var e=[];var n=this;for(;n&&n!==_t9;)e.push(n.scopeName),n=n.parent;return n===_t9?e.reverse():void 0;}}],[{key:"push",value:function push(e,n){var _iterator=_createForOfIteratorHelper(n),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var i=_step.value;e=new t(e,i);}}catch(err){_iterator.e(err);}finally{_iterator.f();}return e;}},{key:"from",value:function from(){var n=null;for(var i=0;i<arguments.length;i++)n=new t(n,i<0||arguments.length<=i?undefined:arguments[i]);return n;}}]);}();I=/*#__PURE__*/_createClass(function I(t,e,n){_classCallCheck(this,I);this.fontStyle=t,this.foregroundId=e,this.backgroundId=n;});G=/*#__PURE__*/_createClass(function G(t,e,n,i,r,o){_classCallCheck(this,G);this.scope=t,this.parentScopes=e,this.index=n,this.fontStyle=i,this.foreground=r,this.background=o;});q=function(t){return 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;}(q||{});_=/*#__PURE__*/function(){function _(t){_classCallCheck(this,_);if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(t)){this._isFrozen=!0;for(var _e9=0,_n15=t.length;_e9<_n15;_e9++)this._color2id[t[_e9]]=_e9,this._id2color[_e9]=t[_e9];}else this._isFrozen=!1;}return _createClass(_,[{key:"getId",value:function getId(t){if(null===t)return 0;t=t.toUpperCase();var e=this._color2id[t];if(e)return e;if(this._isFrozen)throw new Error("Missing color in color map - ".concat(t));return e=++this._lastColorId,this._color2id[t]=e,this._id2color[e]=t,e;}},{key:"getColorMap",value:function getColorMap(){return this._id2color.slice(0);}}]);}();z=Object.freeze([]);F=/*#__PURE__*/function(){function t(_t10,e,n,i,r){_classCallCheck(this,t);this.scopeDepth=_t10,this.parentScopes=e||z,this.fontStyle=n,this.foreground=i,this.background=r;}return _createClass(t,[{key:"clone",value:function clone(){return new t(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background);}},{key:"acceptOverwrite",value:function acceptOverwrite(_t12,e,n,i){this.scopeDepth>_t12?console.log("how did this happen?"):this.scopeDepth=_t12,-1!==e&&(this.fontStyle=e),0!==n&&(this.foreground=n),0!==i&&(this.background=i);}}],[{key:"cloneArr",value:function cloneArr(_t11){var e=[];for(var _n16=0,i=_t11.length;_n16<i;_n16++)e[_n16]=_t11[_n16].clone();return e;}}]);}();H=/*#__PURE__*/function(){function t(_t13){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};_classCallCheck(this,t);this._mainRule=_t13,this._children=n,this._rulesWithParentScopes=e;}return _createClass(t,[{key:"match",value:function match(e){if(""!==e){var _t15,_n17,i=e.indexOf(".");if(-1===i?(_t15=e,_n17=""):(_t15=e.substring(0,i),_n17=e.substring(i+1)),this._children.hasOwnProperty(_t15))return this._children[_t15].match(_n17);}var n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(t._cmpBySpecificity),n;}},{key:"insert",value:function insert(e,n,i,r,o,s){if(""===n)return void this._doInsertHere(e,i,r,o,s);var l,a,c,u=n.indexOf(".");-1===u?(l=n,a=""):(l=n.substring(0,u),a=n.substring(u+1)),this._children.hasOwnProperty(l)?c=this._children[l]:(c=new t(this._mainRule.clone(),F.cloneArr(this._rulesWithParentScopes)),this._children[l]=c),c.insert(e+1,a,i,r,o,s);}},{key:"_doInsertHere",value:function _doInsertHere(_t16,e,n,i,r){if(null!==e){for(var _o5=0,_s3=this._rulesWithParentScopes.length;_o5<_s3;_o5++){var _s4=this._rulesWithParentScopes[_o5];if(0===P(_s4.parentScopes,e))return void _s4.acceptOverwrite(_t16,n,i,r);}-1===n&&(n=this._mainRule.fontStyle),0===i&&(i=this._mainRule.foreground),0===r&&(r=this._mainRule.background),this._rulesWithParentScopes.push(new F(_t16,e,n,i,r));}else this._mainRule.acceptOverwrite(_t16,n,i,r);}}],[{key:"_cmpBySpecificity",value:function _cmpBySpecificity(_t14,e){if(_t14.scopeDepth!==e.scopeDepth)return e.scopeDepth-_t14.scopeDepth;var n=0,i=0;for(;">"===_t14.parentScopes[n]&&n++,">"===e.parentScopes[i]&&i++,!(n>=_t14.parentScopes.length||i>=e.parentScopes.length);){var _r7=e.parentScopes[i].length-_t14.parentScopes[n].length;if(0!==_r7)return _r7;n++,i++;}return e.parentScopes.length-_t14.parentScopes.length;}}]);}();U=/*#__PURE__*/function(){function t(){_classCallCheck(this,t);}return _createClass(t,null,[{key:"toBinaryStr",value:function toBinaryStr(_t17){return _t17.toString(2).padStart(32,"0");}},{key:"print",value:function print(e){var n=t.getLanguageId(e),i=t.getTokenType(e),r=t.getFontStyle(e),o=t.getForeground(e),s=t.getBackground(e);console.log({languageId:n,tokenType:i,fontStyle:r,foreground:o,background:s});}},{key:"getLanguageId",value:function getLanguageId(_t18){return(255&_t18)>>>0;}},{key:"getTokenType",value:function getTokenType(_t19){return(768&_t19)>>>8;}},{key:"containsBalancedBrackets",value:function containsBalancedBrackets(_t20){return!!(1024&_t20);}},{key:"getFontStyle",value:function getFontStyle(_t21){return(30720&_t21)>>>11;}},{key:"getForeground",value:function getForeground(_t22){return(16744448&_t22)>>>15;}},{key:"getBackground",value:function getBackground(_t23){return(4278190080&_t23)>>>24;}},{key:"set",value:function set(e,n,i,r,o,s,l){var a=t.getLanguageId(e),c=t.getTokenType(e),u=t.containsBalancedBrackets(e)?1:0,m=t.getFontStyle(e),p=t.getForeground(e),h=t.getBackground(e);return 0!==n&&(a=n),8!==i&&(c=i),null!==r&&(u=r?1:0),-1!==o&&(m=o),0!==s&&(p=s),0!==l&&(h=l),(a|c<<8|u<<10|m<<11|p<<15|h<<24)>>>0;}}]);}();X=/*#__PURE__*/function(){function X(t){_classCallCheck(this,X);this.scopeName=t;}return _createClass(X,[{key:"toKey",value:function toKey(){return this.scopeName;}}]);}();Y=/*#__PURE__*/function(){function Y(t,e){_classCallCheck(this,Y);this.scopeName=t,this.ruleName=e;}return _createClass(Y,[{key:"toKey",value:function toKey(){return"".concat(this.scopeName,"#").concat(this.ruleName);}}]);}();K=/*#__PURE__*/function(){function K(){_classCallCheck(this,K);this._references=[],this._seenReferenceKeys=new Set(),this.visitedRule=new Set();}return _createClass(K,[{key:"references",get:function get(){return this._references;}},{key:"add",value:function add(t){var e=t.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(t));}}]);}();Q=/*#__PURE__*/function(){function Q(t,e){_classCallCheck(this,Q);this.repo=t,this.initialScopeName=e,this.seenFullScopeRequests=new Set(),this.seenPartialScopeRequests=new Set(),this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new X(this.initialScopeName)];}return _createClass(Q,[{key:"processQueue",value:function processQueue(){var t=this.Q;this.Q=[];var e=new K();var _iterator2=_createForOfIteratorHelper(t),_step2;try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){var _n18=_step2.value;Z(_n18,this.initialScopeName,this.repo,e);}}catch(err){_iterator2.e(err);}finally{_iterator2.f();}var _iterator3=_createForOfIteratorHelper(e.references),_step3;try{for(_iterator3.s();!(_step3=_iterator3.n()).done;){var _t28=_step3.value;if(_t28 instanceof X){if(this.seenFullScopeRequests.has(_t28.scopeName))continue;this.seenFullScopeRequests.add(_t28.scopeName),this.Q.push(_t28);}else{if(this.seenFullScopeRequests.has(_t28.scopeName))continue;if(this.seenPartialScopeRequests.has(_t28.toKey()))continue;this.seenPartialScopeRequests.add(_t28.toKey()),this.Q.push(_t28);}}}catch(err){_iterator3.e(err);}finally{_iterator3.f();}}}]);}();it=/*#__PURE__*/_createClass(function it(){_classCallCheck(this,it);this.kind=0;});rt=/*#__PURE__*/_createClass(function rt(){_classCallCheck(this,rt);this.kind=1;});ot=/*#__PURE__*/_createClass(function ot(t){_classCallCheck(this,ot);this.ruleName=t,this.kind=2;});st=/*#__PURE__*/_createClass(function st(t){_classCallCheck(this,st);this.scopeName=t,this.kind=3;});lt=/*#__PURE__*/_createClass(function lt(t,e){_classCallCheck(this,lt);this.scopeName=t,this.ruleName=e,this.kind=4;});ct=/\\(\d+)/;ut=/\\(\d+)/g;mt=-1;pt=-2;ht=/*#__PURE__*/function(){function ht(t,e,n,i){_classCallCheck(this,ht);this.$location=t,this.id=e,this._name=n||null,this._nameIsCapturing=M.hasCaptures(this._name),this._contentName=i||null,this._contentNameIsCapturing=M.hasCaptures(this._contentName);}return _createClass(ht,[{key:"debugName",get:function get(){var t=this.$location?"".concat(A(this.$location.filename),":").concat(this.$location.line):"unknown";return"".concat(this.constructor.name,"#").concat(this.id," @ ").concat(t);}},{key:"getName",value:function getName(t,e){return this._nameIsCapturing&&null!==this._name&&null!==t&&null!==e?M.replaceCaptures(this._name,t,e):this._name;}},{key:"getContentName",value:function getContentName(t,e){return this._contentNameIsCapturing&&null!==this._contentName?M.replaceCaptures(this._contentName,t,e):this._contentName;}}]);}();dt=/*#__PURE__*/function(_ht){function dt(t,e,n,i,r){var _this4;_classCallCheck(this,dt);_this4=_callSuper(this,dt,[t,e,n,i]),_this4.retokenizeCapturedWithRuleId=r;return _this4;}_inherits(dt,_ht);return _createClass(dt,[{key:"dispose",value:function dispose(){}},{key:"collectPatterns",value:function collectPatterns(t,e){throw new Error("Not supported!");}},{key:"compile",value:function compile(t,e){throw new Error("Not supported!");}},{key:"compileAG",value:function compileAG(t,e,n,i){throw new Error("Not supported!");}}]);}(ht);ft=/*#__PURE__*/function(_ht2){function ft(t,e,n,i,r){var _this5;_classCallCheck(this,ft);_this5=_callSuper(this,ft,[t,e,n,null]),_this5._match=new wt(i,_this5.id),_this5.captures=r,_this5._cachedCompiledPatterns=null;return _this5;}_inherits(ft,_ht2);return _createClass(ft,[{key:"dispose",value:function dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null);}},{key:"debugMatchRegExp",get:function get(){return"".concat(this._match.source);}},{key:"collectPatterns",value:function collectPatterns(t,e){e.push(this._match);}},{key:"compile",value:function compile(t,e){return this._getCachedCompiledPatterns(t).compile(t);}},{key:"compileAG",value:function compileAG(t,e,n,i){return this._getCachedCompiledPatterns(t).compileAG(t,n,i);}},{key:"_getCachedCompiledPatterns",value:function _getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new vt(),this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns;}}]);}(ht);gt=/*#__PURE__*/function(_ht3){function gt(t,e,n,i,r){var _this6;_classCallCheck(this,gt);_this6=_callSuper(this,gt,[t,e,n,i]),_this6.patterns=r.patterns,_this6.hasMissingPatterns=r.hasMissingPatterns,_this6._cachedCompiledPatterns=null;return _this6;}_inherits(gt,_ht3);return _createClass(gt,[{key:"dispose",value:function dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null);}},{key:"collectPatterns",value:function collectPatterns(t,e){var _iterator6=_createForOfIteratorHelper(this.patterns),_step6;try{for(_iterator6.s();!(_step6=_iterator6.n()).done;){var _n20=_step6.value;t.getRule(_n20).collectPatterns(t,e);}}catch(err){_iterator6.e(err);}finally{_iterator6.f();}}},{key:"compile",value:function compile(t,e){return this._getCachedCompiledPatterns(t).compile(t);}},{key:"compileAG",value:function compileAG(t,e,n,i){return this._getCachedCompiledPatterns(t).compileAG(t,n,i);}},{key:"_getCachedCompiledPatterns",value:function _getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new vt(),this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns;}}]);}(ht);jt=/*#__PURE__*/function(_ht4){function jt(t,e,n,i,r,o,s,l,a,c){var _this7;_classCallCheck(this,jt);_this7=_callSuper(this,jt,[t,e,n,i]),_this7._begin=new wt(r,_this7.id),_this7.beginCaptures=o,_this7._end=new wt(s||"",-1),_this7.endHasBackReferences=_this7._end.hasBackReferences,_this7.endCaptures=l,_this7.applyEndPatternLast=a||!1,_this7.patterns=c.patterns,_this7.hasMissingPatterns=c.hasMissingPatterns,_this7._cachedCompiledPatterns=null;return _this7;}_inherits(jt,_ht4);return _createClass(jt,[{key:"dispose",value:function dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null);}},{key:"debugBeginRegExp",get:function get(){return"".concat(this._begin.source);}},{key:"debugEndRegExp",get:function get(){return"".concat(this._end.source);}},{key:"getEndWithResolvedBackReferences",value:function getEndWithResolvedBackReferences(t,e){return this._end.resolveBackReferences(t,e);}},{key:"collectPatterns",value:function collectPatterns(t,e){e.push(this._begin);}},{key:"compile",value:function compile(t,e){return this._getCachedCompiledPatterns(t,e).compile(t);}},{key:"compileAG",value:function compileAG(t,e,n,i){return this._getCachedCompiledPatterns(t,e).compileAG(t,n,i);}},{key:"_getCachedCompiledPatterns",value:function _getCachedCompiledPatterns(t,e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new vt();var _iterator7=_createForOfIteratorHelper(this.patterns),_step7;try{for(_iterator7.s();!(_step7=_iterator7.n()).done;){var _e11=_step7.value;t.getRule(_e11).collectPatterns(t,this._cachedCompiledPatterns);}}catch(err){_iterator7.e(err);}finally{_iterator7.f();}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;}}]);}(ht);yt=/*#__PURE__*/function(_ht5){function yt(t,e,n,i,r,o,s,l,a){var _this8;_classCallCheck(this,yt);_this8=_callSuper(this,yt,[t,e,n,i]),_this8._begin=new wt(r,_this8.id),_this8.beginCaptures=o,_this8.whileCaptures=l,_this8._while=new wt(s,pt),_this8.whileHasBackReferences=_this8._while.hasBackReferences,_this8.patterns=a.patterns,_this8.hasMissingPatterns=a.hasMissingPatterns,_this8._cachedCompiledPatterns=null,_this8._cachedCompiledWhilePatterns=null;return _this8;}_inherits(yt,_ht5);return _createClass(yt,[{key:"dispose",value:function dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null);}},{key:"debugBeginRegExp",get:function get(){return"".concat(this._begin.source);}},{key:"debugWhileRegExp",get:function get(){return"".concat(this._while.source);}},{key:"getWhileWithResolvedBackReferences",value:function getWhileWithResolvedBackReferences(t,e){return this._while.resolveBackReferences(t,e);}},{key:"collectPatterns",value:function collectPatterns(t,e){e.push(this._begin);}},{key:"compile",value:function compile(t,e){return this._getCachedCompiledPatterns(t).compile(t);}},{key:"compileAG",value:function compileAG(t,e,n,i){return this._getCachedCompiledPatterns(t).compileAG(t,n,i);}},{key:"_getCachedCompiledPatterns",value:function _getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new vt();var _iterator8=_createForOfIteratorHelper(this.patterns),_step8;try{for(_iterator8.s();!(_step8=_iterator8.n()).done;){var _e12=_step8.value;t.getRule(_e12).collectPatterns(t,this._cachedCompiledPatterns);}}catch(err){_iterator8.e(err);}finally{_iterator8.f();}}return this._cachedCompiledPatterns;}},{key:"compileWhile",value:function compileWhile(t,e){return this._getCachedCompiledWhilePatterns(t,e).compile(t);}},{key:"compileWhileAG",value:function compileWhileAG(t,e,n,i){return this._getCachedCompiledWhilePatterns(t,e).compileAG(t,n,i);}},{key:"_getCachedCompiledWhilePatterns",value:function _getCachedCompiledWhilePatterns(t,e){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new vt(),this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,e||""),this._cachedCompiledWhilePatterns;}}]);}(ht);bt=/*#__PURE__*/function(){function t(){_classCallCheck(this,t);}return _createClass(t,null,[{key:"createCaptureRule",value:function createCaptureRule(_t31,e,n,i,r){return _t31.registerRule(function(_t32){return new dt(e,_t32,n,i,r);});}},{key:"getCompiledRuleId",value:function getCompiledRuleId(e,n,i){return e.id||n.registerRule(function(r){if(e.id=r,e.match)return new ft(e.$vscodeTextmateLocation,e.id,e.name,e.match,t._compileCaptures(e.captures,n,i));if(void 0===e.begin){e.repository&&(i=L({},i,e.repository));var _r10=e.patterns;return void 0===_r10&&e.include&&(_r10=[{include:e.include}]),new gt(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,t._compilePatterns(_r10,n,i));}return e["while"]?new yt(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,t._compileCaptures(e.beginCaptures||e.captures,n,i),e["while"],t._compileCaptures(e.whileCaptures||e.captures,n,i),t._compilePatterns(e.patterns,n,i)):new jt(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,t._compileCaptures(e.beginCaptures||e.captures,n,i),e.end,t._compileCaptures(e.endCaptures||e.captures,n,i),e.applyEndPatternLast,t._compilePatterns(e.patterns,n,i));}),e.id;}},{key:"_compileCaptures",value:function _compileCaptures(e,n,i){var r=[];if(e){var _o7=0;for(var _t36 in e){if("$vscodeTextmateLocation"===_t36)continue;var _e13=parseInt(_t36,10);_e13>_o7&&(_o7=_e13);}for(var _t37=0;_t37<=_o7;_t37++)r[_t37]=null;for(var _o8 in e){if("$vscodeTextmateLocation"===_o8)continue;var _s5=parseInt(_o8,10);var _l2=0;e[_o8].patterns&&(_l2=t.getCompiledRuleId(e[_o8],n,i)),r[_s5]=t.createCaptureRule(n,e[_o8].$vscodeTextmateLocation,e[_o8].name,e[_o8].contentName,_l2);}}return r;}},{key:"_compilePatterns",value:function _compilePatterns(e,n,i){var r=[];if(e)for(var _o9=0,_s6=e.length;_o9<_s6;_o9++){var _s7=e[_o9];var _l3=-1;if(_s7.include){var _e14=at(_s7.include);switch(_e14.kind){case 0:case 1:_l3=t.getCompiledRuleId(i[_s7.include],n,i);break;case 2:var _r11=i[_e14.ruleName];_r11&&(_l3=t.getCompiledRuleId(_r11,n,i));break;case 3:case 4:var _o10=_e14.scopeName,_a3=4===_e14.kind?_e14.ruleName:null,_c3=n.getExternalGrammar(_o10,i);if(_c3)if(_a3){var _e15=_c3.repository[_a3];_e15&&(_l3=t.getCompiledRuleId(_e15,n,_c3.repository));}else _l3=t.getCompiledRuleId(_c3.repository.$self,n,_c3.repository);}}else _l3=t.getCompiledRuleId(_s7,n,i);if(-1!==_l3){var _t35=n.getRule(_l3);var _e16=!1;if((_t35 instanceof gt||_t35 instanceof jt||_t35 instanceof yt)&&_t35.hasMissingPatterns&&0===_t35.patterns.length&&(_e16=!0),_e16)continue;r.push(_l3);}}return{patterns:r,hasMissingPatterns:(e?e.length:0)!==r.length};}}]);}();wt=/*#__PURE__*/function(){function t(_t38,e){_classCallCheck(this,t);if(_t38){var _e17=_t38.length;var _n21=0,i=[],_r12=!1;for(var _o11=0;_o11<_e17;_o11++){if("\\"===_t38.charAt(_o11)&&_o11+1<_e17){var _e18=_t38.charAt(_o11+1);"z"===_e18?(i.push(_t38.substring(_n21,_o11)),i.push("$(?!\\n)(?<!\\n)"),_n21=_o11+2):"A"!==_e18&&"G"!==_e18||(_r12=!0),_o11++;}}this.hasAnchor=_r12,0===_n21?this.source=_t38:(i.push(_t38.substring(_n21,_e17)),this.source=i.join(""));}else this.hasAnchor=!1,this.source=_t38;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=e,this.hasBackReferences=ct.test(this.source);}return _createClass(t,[{key:"clone",value:function clone(){return new t(this.source,this.ruleId);}},{key:"setSource",value:function setSource(_t39){this.source!==_t39&&(this.source=_t39,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()));}},{key:"resolveBackReferences",value:function resolveBackReferences(_t40,e){var n=e.map(function(e){return _t40.substring(e.start,e.end);});return ut.lastIndex=0,this.source.replace(ut,function(_t41,e){return D(n[parseInt(e,10)]||"");});}},{key:"_buildAnchorCache",value:function _buildAnchorCache(){var _t42,e,n,i,r=[],o=[],s=[],l=[];for(_t42=0,e=this.source.length;_t42<e;_t42++)n=this.source.charAt(_t42),r[_t42]=n,o[_t42]=n,s[_t42]=n,l[_t42]=n,"\\"===n&&_t42+1<e&&(i=this.source.charAt(_t42+1),"A"===i?(r[_t42+1]="",o[_t42+1]="",s[_t42+1]="A",l[_t42+1]="A"):"G"===i?(r[_t42+1]="",o[_t42+1]="G",s[_t42+1]="",l[_t42+1]="G"):(r[_t42+1]=i,o[_t42+1]=i,s[_t42+1]=i,l[_t42+1]=i),_t42++);return{A0_G0:r.join(""),A0_G1:o.join(""),A1_G0:s.join(""),A1_G1:l.join("")};}},{key:"resolveAnchors",value:function resolveAnchors(_t43,e){return this.hasAnchor&&this._anchorCache?_t43?e?this._anchorCache.A1_G1:this._anchorCache.A1_G0:e?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source;}}]);}();vt=/*#__PURE__*/function(){function vt(){_classCallCheck(this,vt);this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null};}return _createClass(vt,[{key:"dispose",value:function dispose(){this._disposeCaches();}},{key:"_disposeCaches",value:function _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);}},{key:"push",value:function push(t){this._items.push(t),this._hasAnchors=this._hasAnchors||t.hasAnchor;}},{key:"unshift",value:function unshift(t){this._items.unshift(t),this._hasAnchors=this._hasAnchors||t.hasAnchor;}},{key:"length",value:function length(){return this._items.length;}},{key:"setSource",value:function setSource(t,e){this._items[t].source!==e&&(this._disposeCaches(),this._items[t].setSource(e));}},{key:"compile",value:function compile(t){if(!this._cached){var _e19=this._items.map(function(t){return t.source;});this._cached=new kt(t,_e19,this._items.map(function(t){return t.ruleId;}));}return this._cached;}},{key:"compileAG",value:function 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);}},{key:"_resolveAnchors",value:function _resolveAnchors(t,e,n){var i=this._items.map(function(t){return t.resolveAnchors(e,n);});return new kt(t,i,this._items.map(function(t){return t.ruleId;}));}}]);}();kt=/*#__PURE__*/function(){function kt(t,e,n){_classCallCheck(this,kt);this.regExps=e,this.rules=n,this.scanner=t.createOnigScanner(e);}return _createClass(kt,[{key:"dispose",value:function dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose();}},{key:"toString",value:function toString(){var t=[];for(var _e20=0,_n22=this.rules.length;_e20<_n22;_e20++)t.push(" - "+this.rules[_e20]+": "+this.regExps[_e20]);return t.join("\n");}},{key:"findNextMatchSync",value:function findNextMatchSync(t,e,n){var i=this.scanner.findNextMatchSync(t,e,n);return i?{ruleId:this.rules[i.index],captureIndices:i.captureIndices}:null;}}]);}();St=/*#__PURE__*/_createClass(function St(t,e){_classCallCheck(this,St);this.languageId=t,this.tokenType=e;});xt=/*#__PURE__*/function(){function t(_t44,e){var _this9=this;_classCallCheck(this,t);this._getBasicScopeAttributes=new E(function(_t45){var e=_this9._scopeToLanguage(_t45),n=_this9._toStandardTokenType(_t45);return new St(e,n);}),this._defaultAttributes=new St(_t44,8),this._embeddedLanguagesMatcher=new Lt(Object.entries(e||{}));}return _createClass(t,[{key:"getDefaultAttributes",value:function getDefaultAttributes(){return this._defaultAttributes;}},{key:"getBasicScopeAttributes",value:function getBasicScopeAttributes(e){return null===e?t._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e);}},{key:"_scopeToLanguage",value:function _scopeToLanguage(_t46){return this._embeddedLanguagesMatcher.match(_t46)||0;}},{key:"_toStandardTokenType",value:function _toStandardTokenType(e){var n=e.match(t.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!");}}]);}();xt._NULL_SCOPE_METADATA=new St(0,0),xt.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/;Ct=xt;Lt=/*#__PURE__*/function(){function Lt(t){_classCallCheck(this,Lt);if(0===t.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(t);var _e21=t.map(function(_ref4){var _ref5=_slicedToArray(_ref4,2),t=_ref5[0],e=_ref5[1];return D(t);});_e21.sort(),_e21.reverse(),this.scopesRegExp=new RegExp("^((".concat(_e21.join(")|("),"))($|\\.)"),"");}}return _createClass(Lt,[{key:"match",value:function match(t){if(!this.scopesRegExp)return;var e=t.match(this.scopesRegExp);return e?this.values.get(e[1]):void 0;}}]);}();"undefined"!=typeof process&&process.env.VSCODE_TEXTMATE_DEBUG;At=/*#__PURE__*/_createClass(function At(t,e){_classCallCheck(this,At);this.stack=t,this.stoppedEarly=e;});Nt=/*#__PURE__*/_createClass(function Nt(t,e){_classCallCheck(this,Nt);this.scopes=t,this.endPos=e;});$t=/*#__PURE__*/function(){function $t(t,e,n,i,r,o,s,l){_classCallCheck(this,$t);if(this._rootScopeName=t,this.balancedBracketSelectors=o,this._onigLib=l,this._basicScopeAttributesProvider=new Ct(n,i),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=s,this._grammar=Bt(e,null),this._injections=null,this._tokenTypeMatchers=[],r)for(var _i9=0,_Object$keys=Object.keys(r);_i9<_Object$keys.length;_i9++){var _t47=_Object$keys[_i9];var _e26=W(_t47,Et);var _iterator10=_createForOfIteratorHelper(_e26),_step10;try{for(_iterator10.s();!(_step10=_iterator10.n()).done;){var _n25=_step10.value;this._tokenTypeMatchers.push({matcher:_n25.matcher,type:r[_t47]});}}catch(err){_iterator10.e(err);}finally{_iterator10.f();}}}return _createClass($t,[{key:"themeProvider",get:function get(){return this._grammarRepository;}},{key:"dispose",value:function dispose(){var _iterator11=_createForOfIteratorHelper(this._ruleId2desc),_step11;try{for(_iterator11.s();!(_step11=_iterator11.n()).done;){var _t48=_step11.value;_t48&&_t48.dispose();}}catch(err){_iterator11.e(err);}finally{_iterator11.f();}}},{key:"createOnigScanner",value:function createOnigScanner(t){return this._onigLib.createOnigScanner(t);}},{key:"createOnigString",value:function createOnigString(t){return this._onigLib.createOnigString(t);}},{key:"getMetadataForScope",value:function getMetadataForScope(t){return this._basicScopeAttributesProvider.getBasicScopeAttributes(t);}},{key:"_collectInjections",value:function _collectInjections(){var _this10=this;var t=function t(_t49){return _t49===_this10._rootScopeName?_this10._grammar:_this10.getExternalGrammar(_t49);},e=[],n=this._rootScopeName,i=t(n);if(i){var _t50=i.injections;if(_t50)for(var _n26 in _t50)Dt(e,_n26,_t50[_n26],this,i);var _r13=this._grammarRepository.injections(n);_r13&&_r13.forEach(function(t){var n=_this10.getExternalGrammar(t);if(n){var _t51=n.injectionSelector;_t51&&Dt(e,_t51,n,_this10,n);}});}return e.sort(function(t,e){return t.priority-e.priority;}),e;}},{key:"getInjections",value:function getInjections(){return null===this._injections&&(this._injections=this._collectInjections()),this._injections;}},{key:"registerRule",value:function registerRule(t){var e=++this._lastRuleId,n=t(e);return this._ruleId2desc[e]=n,n;}},{key:"getRule",value:function getRule(t){return this._ruleId2desc[t];}},{key:"getExternalGrammar",value:function getExternalGrammar(t,e){if(this._includedGrammars[t])return this._includedGrammars[t];if(this._grammarRepository){var _n27=this._grammarRepository.lookup(t);if(_n27)return this._includedGrammars[t]=Bt(_n27,e&&e.$base),this._includedGrammars[t];}}},{key:"tokenizeLine",value:function tokenizeLine(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;var i=this._tokenize(t,e,!1,n);return{tokens:i.lineTokens.getResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly};}},{key:"tokenizeLine2",value:function tokenizeLine2(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;var i=this._tokenize(t,e,!0,n);return{tokens:i.lineTokens.getBinaryResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly};}},{key:"_tokenize",value:function _tokenize(t,e,n,i){var r;if(-1===this._rootId&&(this._rootId=bt.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections()),e&&e!==qt.NULL)r=!1,e.reset();else{r=!0;var _t52=this._basicScopeAttributesProvider.getDefaultAttributes(),_n28=this.themeProvider.getDefaults(),_i10=U.set(0,_t52.languageId,_t52.tokenType,null,_n28.fontStyle,_n28.foregroundId,_n28.backgroundId),_o14=this.getRule(this._rootId).getName(null,null);var _s11;_s11=_o14?It.createRootAndLookUpScopeName(_o14,_i10,this):It.createRoot("unknown",_i10),e=new qt(null,this._rootId,-1,-1,!1,null,_s11,_s11);}t+="\n";var o=this.createOnigString(t),s=o.content.length,l=new zt(n,t,this._tokenTypeMatchers,this.balancedBracketSelectors),a=Ot(this,o,r,0,e,l,!0,i);return J(o),{lineLength:s,lineTokens:l,ruleStack:a.stack,stoppedEarly:a.stoppedEarly};}}]);}();It=/*#__PURE__*/function(){function t(_t53,e,n){_classCallCheck(this,t);this.parent=_t53,this.scopePath=e,this.tokenAttributes=n;}return _createClass(t,[{key:"scopeName",get:function get(){return this.scopePath.scopeName;}},{key:"toString",value:function toString(){return this.getScopeNames().join(" ");}},{key:"equals",value:function equals(e){return t.equals(this,e);}},{key:"pushAttributed",value:function pushAttributed(e,n){if(null===e)return this;if(-1===e.indexOf(" "))return t._pushAttributed(this,e,n);var i=e.split(/ /g);var r=this;var _iterator12=_createForOfIteratorHelper(i),_step12;try{for(_iterator12.s();!(_step12=_iterator12.n()).done;){var _e27=_step12.value;r=t._pushAttributed(r,_e27,n);}}catch(err){_iterator12.e(err);}finally{_iterator12.f();}return r;}},{key:"getScopeNames",value:function getScopeNames(){return this.scopePath.getSegments();}},{key:"getExtensionIfDefined",value:function getExtensionIfDefined(_t56){var e=[];var n=this;for(;n&&n!==_t56;){var _n$parent$scopePath,_n$parent;e.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined((_n$parent$scopePath=(_n$parent=n.parent)===null||_n$parent===void 0?void 0:_n$parent.scopePath)!==null&&_n$parent$scopePath!==void 0?_n$parent$scopePath:null)}),n=n.parent;}return n===_t56?e.reverse():void 0;}}],[{key:"fromExtension",value:function fromExtension(e,n){var _e$scopePath;var i=e,r=(_e$scopePath=e===null||e===void 0?void 0:e.scopePath)!==null&&_e$scopePath!==void 0?_e$scopePath:null;var _iterator13=_createForOfIteratorHelper(n),_step13;try{for(_iterator13.s();!(_step13=_iterator13.n()).done;){var _e28=_step13.value;r=$.push(r,_e28.scopeNames),i=new t(i,r,_e28.encodedTokenAttributes);}}catch(err){_iterator13.e(err);}finally{_iterator13.f();}return i;}},{key:"createRoot",value:function createRoot(e,n){return new t(null,new $(null,e),n);}},{key:"createRootAndLookUpScopeName",value:function createRootAndLookUpScopeName(e,n,i){var r=i.getMetadataForScope(e),o=new $(null,e),s=i.themeProvider.themeMatch(o),l=t.mergeAttributes(n,r,s);return new t(null,o,l);}},{key:"equals",value:function equals(_t54,e){for(;;){if(_t54===e)return!0;if(!_t54&&!e)return!0;if(!_t54||!e)return!1;if(_t54.scopeName!==e.scopeName||_t54.tokenAttributes!==e.tokenAttributes)return!1;_t54=_t54.parent,e=e.parent;}}},{key:"mergeAttributes",value:function mergeAttributes(_t55,e,n){var i=-1,r=0,o=0;return null!==n&&(i=n.fontStyle,r=n.foregroundId,o=n.backgroundId),U.set(_t55,e.languageId,e.tokenType,null,i,r,o);}},{key:"_pushAttributed",value:function _pushAttributed(e,n,i){var r=i.getMetadataForScope(n),o=e.scopePath.push(n),s=i.themeProvider.themeMatch(o),l=t.mergeAttributes(e.tokenAttributes,r,s);return new t(e,o,l);}}]);}();Gt=/*#__PURE__*/function(){function t(_t57,e,n,i,r,o,s,l){_classCallCheck(this,t);this.parent=_t57,this.ruleId=e,this.beginRuleCapturedEOL=r,this.endRule=o,this.nameScopesList=s,this.contentNameScopesList=l,this._stackElementBrand=void 0,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=i;}return _createClass(t,[{key:"equals",value:function equals(e){return null!==e&&t._equals(this,e);}},{key:"clone",value:function clone(){return this;}},{key:"reset",value:function reset(){t._reset(this);}},{key:"pop",value:function pop(){return this.parent;}},{key:"safePop",value:function safePop(){return this.parent?this.parent:this;}},{key:"push",value:function push(e,n,i,r,o,s,l){return new t(this,e,n,i,r,o,s,l);}},{key:"getEnterPos",value:function getEnterPos(){return this._enterPos;}},{key:"getAnchorPos",value:function getAnchorPos(){return this._anchorPos;}},{key:"getRule",value:function getRule(_t61){return _t61.getRule(this.ruleId);}},{key:"toString",value:function toString(){var _t62=[];return this._writeString(_t62,0),"["+_t62.join(",")+"]";}},{key:"_writeString",value:function _writeString(_t63,e){var _this$nameScopesList,_this$contentNameScop;return this.parent&&(e=this.parent._writeString(_t63,e)),_t63[e++]="(".concat(this.ruleId,", ").concat((_this$nameScopesList=this.nameScopesList)===null||_this$nameScopesList===void 0?void 0:_this$nameScopesList.toString(),", ").concat((_this$contentNameScop=this.contentNameScopesList)===null||_this$contentNameScop===void 0?void 0:_this$contentNameScop.toString(),")"),e;}},{key:"withContentNameScopesList",value:function withContentNameScopesList(_t64){return this.contentNameScopesList===_t64?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,_t64);}},{key:"withEndRule",value:function withEndRule(e){return this.endRule===e?this:new t(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList);}},{key:"hasSameRuleAs",value:function hasSameRuleAs(_t65){var e=this;for(;e&&e._enterPos===_t65._enterPos;){if(e.ruleId===_t65.ruleId)return!0;e=e.parent;}return!1;}},{key:"toStateStackFrame",value:function toStateStackFrame(){var _this$nameScopesList$,_this$nameScopesList2,_this$parent$nameScop,_this$parent,_this$contentNameScop2,_this$contentNameScop3;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:(_this$nameScopesList$=(_this$nameScopesList2=this.nameScopesList)===null||_this$nameScopesList2===void 0?void 0:_this$nameScopesList2.getExtensionIfDefined((_this$parent$nameScop=(_this$parent=this.parent)===null||_this$parent===void 0?void 0:_this$parent.nameScopesList)!==null&&_this$parent$nameScop!==void 0?_this$parent$nameScop:null))!==null&&_this$nameScopesList$!==void 0?_this$nameScopesList$:[],contentNameScopesList:(_this$contentNameScop2=(_this$contentNameScop3=this.contentNameScopesList)===null||_this$contentNameScop3===void 0?void 0:_this$contentNameScop3.getExtensionIfDefined(this.nameScopesList))!==null&&_this$contentNameScop2!==void 0?_this$contentNameScop2:[]};}}],[{key:"_equals",value:function _equals(_t58,e){return _t58===e||!!this._structuralEquals(_t58,e)&&It.equals(_t58.contentNameScopesList,e.contentNameScopesList);}},{key:"_structuralEquals",value:function _structuralEquals(_t59,e){for(;;){if(_t59===e)return!0;if(!_t59&&!e)return!0;if(!_t59||!e)return!1;if(_t59.depth!==e.depth||_t59.ruleId!==e.ruleId||_t59.endRule!==e.endRule)return!1;_t59=_t59.parent,e=e.parent;}}},{key:"_reset",value:function _reset(_t60){for(;_t60;)_t60._enterPos=-1,_t60._anchorPos=-1,_t60=_t60.parent;}},{key:"pushFrame",value:function pushFrame(e,n){var _e$nameScopesList,_n$enterPos,_n$anchorPos;var i=It.fromExtension((_e$nameScopesList=e===null||e===void 0?void 0:e.nameScopesList)!==null&&_e$nameScopesList!==void 0?_e$nameScopesList:null,n.nameScopesList);return new t(e,n.ruleId,(_n$enterPos=n.enterPos)!==null&&_n$enterPos!==void 0?_n$enterPos:-1,(_n$anchorPos=n.anchorPos)!==null&&_n$anchorPos!==void 0?_n$anchorPos:-1,n.beginRuleCapturedEOL,n.endRule,i,It.fromExtension(i,n.contentNameScopesList));}}]);}();Gt.NULL=new Gt(null,0,0,0,!1,null,null,null);qt=Gt;_t=/*#__PURE__*/function(){function _t(t,e){var _this11=this;_classCallCheck(this,_t);this.allowAny=!1,this.balancedBracketScopes=t.flatMap(function(t){return"*"===t?(_this11.allowAny=!0,[]):W(t,Et).map(function(t){return t.matcher;});}),this.unbalancedBracketScopes=e.flatMap(function(t){return W(t,Et).map(function(t){return t.matcher;});});}return _createClass(_t,[{key:"matchesAlways",get:function get(){return this.allowAny&&0===this.unbalancedBracketScopes.length;}},{key:"matchesNever",get:function get(){return 0===this.balancedBracketScopes.length&&!this.allowAny;}},{key:"match",value:function match(t){var _iterator14=_createForOfIteratorHelper(this.unbalancedBracketScopes),_step14;try{for(_iterator14.s();!(_step14=_iterator14.n()).done;){var _e29=_step14.value;if(_e29(t))return!1;}}catch(err){_iterator14.e(err);}finally{_iterator14.f();}var _iterator15=_createForOfIteratorHelper(this.balancedBracketScopes),_step15;try{for(_iterator15.s();!(_step15=_iterator15.n()).done;){var _e30=_step15.value;if(_e30(t))return!0;}}catch(err){_iterator15.e(err);}finally{_iterator15.f();}return this.allowAny;}}]);}();zt=/*#__PURE__*/function(){function zt(t,e,n,i){_classCallCheck(this,zt);this.balancedBracketSelectors=i,this._emitBinaryTokens=t,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0;}return _createClass(zt,[{key:"produce",value:function produce(t,e){this.produceFromScopes(t.contentNameScopesList,e);}},{key:"produceFromScopes",value:function produceFromScopes(t,e){var _t$getScopeNames2;if(this._lastTokenEndIndex>=e)return;if(this._emitBinaryTokens){var _t$tokenAttributes,_this$balancedBracket;var _n29=(_t$tokenAttributes=t===null||t===void 0?void 0:t.tokenAttributes)!==null&&_t$tokenAttributes!==void 0?_t$tokenAttributes:0,i=!1;if((_this$balancedBracket=this.balancedBracketSelectors)!==null&&_this$balancedBracket!==void 0&&_this$balancedBracket.matchesAlways&&(i=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){var _t$getScopeNames;var _e31=(_t$getScopeNames=t===null||t===void 0?void 0:t.getScopeNames())!==null&&_t$getScopeNames!==void 0?_t$getScopeNames:[];var _iterator16=_createForOfIteratorHelper(this._tokenTypeOverrides),_step16;try{for(_iterator16.s();!(_step16=_iterator16.n()).done;){var _t66=_step16.value;_t66.matcher(_e31)&&(_n29=U.set(_n29,0,_t66.type,null,-1,0,0));}}catch(err){_iterator16.e(err);}finally{_iterator16.f();}this.balancedBracketSelectors&&(i=this.balancedBracketSelectors.match(_e31));}return i&&(_n29=U.set(_n29,0,8,i,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===_n29?void(this._lastTokenEndIndex=e):(this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(_n29),void(this._lastTokenEndIndex=e));}var n=(_t$getScopeNames2=t===null||t===void 0?void 0:t.getScopeNames())!==null&&_t$getScopeNames2!==void 0?_t$getScopeNames2:[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:e,scopes:n}),this._lastTokenEndIndex=e;}},{key:"getResult",value:function getResult(t,e){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===e-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(t,e),this._tokens[this._tokens.length-1].startIndex=0),this._tokens;}},{key:"getBinaryResult",value:function getBinaryResult(t,e){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===e-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(t,e),this._binaryTokens[this._binaryTokens.length-2]=0);var n=new Uint32Array(this._binaryTokens.length);for(var _t67=0,_e32=this._binaryTokens.length;_t67<_e32;_t67++)n[_t67]=this._binaryTokens[_t67];return n;}}]);}();Ft=/*#__PURE__*/function(){function Ft(t,e){_classCallCheck(this,Ft);this._onigLib=e,this._grammars=new Map(),this._rawGrammars=new Map(),this._injectionGrammars=new Map(),this._theme=t;}return _createClass(Ft,[{key:"dispose",value:function dispose(){var _iterator17=_createForOfIteratorHelper(this._grammars.values()),_step17;try{for(_iterator17.s();!(_step17=_iterator17.n()).done;){var _t68=_step17.value;_t68.dispose();}}catch(err){_iterator17.e(err);}finally{_iterator17.f();}}},{key:"setTheme",value:function setTheme(t){this._theme=t;}},{key:"getColorMap",value:function getColorMap(){return this._theme.getColorMap();}},{key:"addGrammar",value:function addGrammar(t,e){this._rawGrammars.set(t.scopeName,t),e&&this._injectionGrammars.set(t.scopeName,e);}},{key:"lookup",value:function lookup(t){return this._rawGrammars.get(t);}},{key:"injections",value:function injections(t){return this._injectionGrammars.get(t);}},{key:"getDefaults",value:function getDefaults(){return this._theme.getDefaults();}},{key:"themeMatch",value:function themeMatch(t){return this._theme.match(t);}},{key:"grammarForScopeName",value:function grammarForScopeName(t,e,n,i,r){if(!this._grammars.has(t)){var _o15=this._rawGrammars.get(t);if(!_o15)return null;this._grammars.set(t,function(t,e,n,i,r,o,s,l){return new $t(t,e,n,i,r,o,s,l);}(t,_o15,e,n,i,r,this,this._onigLib));}return this._grammars.get(t);}}]);}();Ht=/*#__PURE__*/function(){function Ht(t){_classCallCheck(this,Ht);this._options=t,this._syncRegistry=new Ft(R.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map();}return _createClass(Ht,[{key:"dispose",value:function dispose(){this._syncRegistry.dispose();}},{key:"setTheme",value:function setTheme(t,e){this._syncRegistry.setTheme(R.createFromRawTheme(t,e));}},{key:"getColorMap",value:function getColorMap(){return this._syncRegistry.getColorMap();}},{key:"loadGrammarWithEmbeddedLanguages",value:function loadGrammarWithEmbeddedLanguages(t,e,n){return this.loadGrammarWithConfiguration(t,e,{embeddedLanguages:n});}},{key:"loadGrammarWithConfiguration",value:function loadGrammarWithConfiguration(t,e,n){return this._loadGrammar(t,e,n.embeddedLanguages,n.tokenTypes,new _t(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]));}},{key:"loadGrammar",value:function loadGrammar(t){return this._loadGrammar(t,0,null,null,null);}},{key:"_loadGrammar",value:function _loadGrammar(t,e,n,i,r){var _this12=this;var o=new Q(this._syncRegistry,t);for(;o.Q.length>0;)o.Q.map(function(t){return _this12._loadSingleGrammar(t.scopeName);}),o.processQueue();return this._grammarForScopeName(t,e,n,i,r);}},{key:"_loadSingleGrammar",value:function _loadSingleGrammar(t){this._ensureGrammarCache.has(t)||(this._doLoadSingleGrammar(t),this._ensureGrammarCache.set(t,!0));}},{key:"_doLoadSingleGrammar",value:function _doLoadSingleGrammar(t){var e=this._options.loadGrammar(t);if(e){var _n30="function"==typeof this._options.getInjections?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(e,_n30);}}},{key:"addGrammar",value:function addGrammar(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;var i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:null;return this._syncRegistry.addGrammar(t,e),this._grammarForScopeName(t.scopeName,n,i);}},{key:"_grammarForScopeName",value:function _grammarForScopeName(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:null;var i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:null;var r=arguments.length>4&&arguments[4]!==undefined?arguments[4]:null;return this._syncRegistry.grammarForScopeName(t,e,n,i,r);}}]);}();Ut=qt.NULL;Wt=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];Vt=/*#__PURE__*/_createClass(function Vt(t,e,n){_classCallCheck(this,Vt);this.property=t,this.normal=e,n&&(this.space=n);});Vt.prototype.property={},Vt.prototype.normal={},Vt.prototype.space=null;Yt=/*#__PURE__*/_createClass(function Yt(t,e){_classCallCheck(this,Yt);this.property=t,this.attribute=e;});Yt.prototype.space=null,Yt.prototype["boolean"]=!1,Yt.prototype.booleanish=!1,Yt.prototype.overloadedBoolean=!1,Yt.prototype.number=!1,Yt.prototype.commaSeparated=!1,Yt.prototype.spaceSeparated=!1,Yt.prototype.commaOrSpaceSeparated=!1,Yt.prototype.mustUseProperty=!1,Yt.prototype.defined=!1;Kt=0;Qt=oe();Zt=oe();te=oe();ee=oe();ne=oe();ie=oe();re=oe();se=Object.freeze({__proto__:null,"boolean":Qt,booleanish:Zt,commaOrSpaceSeparated:re,commaSeparated:ie,number:ee,overloadedBoolean:te,spaceSeparated:ne});le=Object.keys(se);ae=/*#__PURE__*/function(_Yt){function ae(t,e,n,i){var _this13;_classCallCheck(this,ae);var r=-1;if(_this13=_callSuper(this,ae,[t,e]),ce(_assertThisInitialized(_this13),"space",i),"number"==typeof n)for(;++r<le.length;){var _t69=le[r];ce(_assertThisInitialized(_this13),le[r],(n&se[_t69])===se[_t69]);}return _assertThisInitialized(_this13);}_inherits(ae,_Yt);return _createClass(ae);}(Yt);ae.prototype.defined=!0;ue={}.hasOwnProperty;pe=me({space:"xlink",transform:function transform(t,e){return"xlink:"+e.slice(5).toLowerCase();},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});he=me({space:"xml",transform:function transform(t,e){return"xml:"+e.slice(3).toLowerCase();},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});ge=me({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:fe,properties:{xmlns:null,xmlnsXLink:null}});je=me({transform:function transform(t,e){return"role"===e?e:"aria-"+e.slice(4).toLowerCase();},properties:{ariaActiveDescendant:null,ariaAtomic:Zt,ariaAutoComplete:null,ariaBusy:Zt,ariaChecked:Zt,ariaColCount:ee,ariaColIndex:ee,ariaColSpan:ee,ariaControls:ne,ariaCurrent:null,ariaDescribedBy:ne,ariaDetails:null,ariaDisabled:Zt,ariaDropEffect:ne,ariaErrorMessage:null,ariaExpanded:Zt,ariaFlowTo:ne,ariaGrabbed:Zt,ariaHasPopup:null,ariaHidden:Zt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ne,ariaLevel:ee,ariaLive:null,ariaModal:Zt,ariaMultiLine:Zt,ariaMultiSelectable:Zt,ariaOrientation:null,ariaOwns:ne,ariaPlaceholder:null,ariaPosInSet:ee,ariaPressed:Zt,ariaReadOnly:Zt,ariaRelevant:null,ariaRequired:Zt,ariaRoleDescription:ne,ariaRowCount:ee,ariaRowIndex:ee,ariaRowSpan:ee,ariaSelected:Zt,ariaSetSize:ee,ariaSort:null,ariaValueMax:ee,ariaValueMin:ee,ariaValueNow:ee,ariaValueText:null,role:null}});ye=me({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:fe,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ie,acceptCharset:ne,accessKey:ne,action:null,allow:null,allowFullScreen:Qt,allowPaymentRequest:Qt,allowUserMedia:Qt,alt:null,as:null,async:Qt,autoCapitalize:null,autoComplete:ne,autoFocus:Qt,autoPlay:Qt,blocking:ne,capture:null,charSet:null,checked:Qt,cite:null,className:ne,cols:ee,colSpan:null,content:null,contentEditable:Zt,controls:Qt,controlsList:ne,coords:ee|ie,crossOrigin:null,data:null,dateTime:null,decoding:null,"default":Qt,defer:Qt,dir:null,dirName:null,disabled:Qt,download:te,draggable:Zt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Qt,formTarget:null,headers:ne,height:ee,hidden:Qt,high:ee,href:null,hrefLang:null,htmlFor:ne,httpEquiv:ne,id:null,imageSizes:null,imageSrcSet:null,inert:Qt,inputMode:null,integrity:null,is:null,isMap:Qt,itemId:null,itemProp:ne,itemRef:ne,itemScope:Qt,itemType:ne,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Qt,low:ee,manifest:null,max:null,maxLength:ee,media:null,method:null,min:null,minLength:ee,multiple:Qt,muted:Qt,name:null,nonce:null,noModule:Qt,noValidate:Qt,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:Qt,optimum:ee,pattern:null,ping:ne,placeholder:null,playsInline:Qt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Qt,referrerPolicy:null,rel:ne,required:Qt,reversed:Qt,rows:ee,rowSpan:ee,sandbox:ne,scope:null,scoped:Qt,seamless:Qt,selected:Qt,shadowRootClonable:Qt,shadowRootDelegatesFocus:Qt,shadowRootMode:null,shape:null,size:ee,sizes:null,slot:null,span:ee,spellCheck:Zt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ee,step:null,style:null,tabIndex:ee,target:null,title:null,translate:null,type:null,typeMustMatch:Qt,useMap:null,value:Zt,width:ee,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ne,axis:null,background:null,bgColor:null,border:ee,borderColor:null,bottomMargin:ee,cellPadding:null,cellSpacing:null,"char":null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Qt,declare:Qt,event:null,face:null,frame:null,frameBorder:null,hSpace:ee,leftMargin:ee,link:null,longDesc:null,lowSrc:null,marginHeight:ee,marginWidth:ee,noResize:Qt,noHref:Qt,noShade:Qt,noWrap:Qt,object:null,profile:null,prompt:null,rev:null,rightMargin:ee,rules:null,scheme:null,scrolling:Zt,standby:null,summary:null,text:null,topMargin:ee,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ee,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Qt,disableRemotePlayback:Qt,prefix:null,property:null,results:ee,security:null,unselectable:null}});be=me({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:de,properties:{about:re,accentHeight:ee,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ee,amplitude:ee,arabicForm:null,ascent:ee,attributeName:null,attributeType:null,azimuth:ee,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ee,by:null,calcMode:null,capHeight:ee,className:ne,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ee,diffuseConstant:ee,direction:null,display:null,dur:null,divisor:ee,dominantBaseline:null,download:Qt,dx:null,dy:null,edgeMode:null,editable:null,elevation:ee,enableBackground:null,end:null,event:null,exponent:ee,externalResourcesRequired:null,fill:null,fillOpacity:ee,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:ie,g2:ie,glyphName:ie,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ee,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ee,horizOriginX:ee,horizOriginY:ee,id:null,ideographic:ee,imageRendering:null,initialVisibility:null,"in":null,in2:null,intercept:ee,k:ee,k1:ee,k2:ee,k3:ee,k4:ee,kernelMatrix:re,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ee,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ee,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ee,overlineThickness:ee,paintOrder:null,panose1:null,path:null,pathLength:ee,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ne,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ee,pointsAtY:ee,pointsAtZ:ee,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:re,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:re,rev:re,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:re,requiredFeatures:re,requiredFonts:re,requiredFormats:re,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ee,specularExponent:ee,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ee,strikethroughThickness:ee,string:null,stroke:null,strokeDashArray:re,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ee,strokeOpacity:ee,strokeWidth:null,style:null,surfaceScale:ee,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:re,tabIndex:ee,tableValues:null,target:null,targetX:ee,targetY:ee,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:re,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ee,underlineThickness:ee,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ee,values:null,vAlphabetic:ee,vMathematical:ee,vectorEffect:null,vHanging:ee,vIdeographic:ee,version:null,vertAdvY:ee,vertOriginX:ee,vertOriginY:ee,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ee,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}});we=/^data[-\w.:]+$/i;ve=/-[a-z]/g;ke=/[A-Z]/g;Ce=Jt([he,pe,ge,je,ye],"html");Le=Jt([he,pe,ge,je,be],"svg");Ae={}.hasOwnProperty;Oe=/["&'<>`]/g;Me=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;Te=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g;Pe=/[|\\{}()[\]^$+*?.]/g;Ne=new WeakMap();Ee=/[\dA-Fa-f]/;Re=/\d/;$e=["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"];Be={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪","int":"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"};Ie=["cent","copy","divide","gt","lt","not","para","times"];Ge={}.hasOwnProperty;qe={};for(_e in Be)Ge.call(Be,_e)&&(qe[Be[_e]]=_e);ze=/[^\dA-Za-z]/;Ue=/^>|^->|<!--|-->|--!>|<!-$/g;We=[">"];Ve=["<",">"];Ke=/[ \t\n\f\r]/g;tn=rn(1);en=rn(-1);nn=[];on={}.hasOwnProperty;ln=sn({body:function body(t,e,n){var i=tn(n,e);return!i||"comment"!==i.type;},caption:an,colgroup:an,dd:function dd(t,e,n){var i=tn(n,e);return!i||"element"===i.type&&("dt"===i.tagName||"dd"===i.tagName);},dt:function dt(t,e,n){var i=tn(n,e);return Boolean(i&&"element"===i.type&&("dt"===i.tagName||"dd"===i.tagName));},head:an,html:function html(t,e,n){var i=tn(n,e);return!i||"comment"!==i.type;},li:function li(t,e,n){var i=tn(n,e);return!i||"element"===i.type&&"li"===i.tagName;},optgroup:function optgroup(t,e,n){var i=tn(n,e);return!i||"element"===i.type&&"optgroup"===i.tagName;},option:function option(t,e,n){var i=tn(n,e);return!i||"element"===i.type&&("option"===i.tagName||"optgroup"===i.tagName);},p:function p(t,e,n){var i=tn(n,e);return i?"element"===i.type&&("address"===i.tagName||"article"===i.tagName||"aside"===i.tagName||"blockquote"===i.tagName||"details"===i.tagName||"div"===i.tagName||"dl"===i.tagName||"fieldset"===i.tagName||"figcaption"===i.tagName||"figure"===i.tagName||"footer"===i.tagName||"form"===i.tagName||"h1"===i.tagName||"h2"===i.tagName||"h3"===i.tagName||"h4"===i.tagName||"h5"===i.tagName||"h6"===i.tagName||"header"===i.tagName||"hgroup"===i.tagName||"hr"===i.tagName||"main"===i.tagName||"menu"===i.tagName||"nav"===i.tagName||"ol"===i.tagName||"p"===i.tagName||"pre"===i.tagName||"section"===i.tagName||"table"===i.tagName||"ul"===i.tagName):!n||!("element"===n.type&&("a"===n.tagName||"audio"===n.tagName||"del"===n.tagName||"ins"===n.tagName||"map"===n.tagName||"noscript"===n.tagName||"video"===n.tagName));},rp:cn,rt:cn,tbody:function tbody(t,e,n){var i=tn(n,e);return!i||"element"===i.type&&("tbody"===i.tagName||"tfoot"===i.tagName);},td:un,tfoot:function tfoot(t,e,n){return!tn(n,e);},th:un,thead:function thead(t,e,n){var i=tn(n,e);return Boolean(i&&"element"===i.type&&("tbody"===i.tagName||"tfoot"===i.tagName));},tr:function tr(t,e,n){var i=tn(n,e);return!i||"element"===i.type&&"tr"===i.tagName;}});mn=sn({body:function body(t){var e=tn(t,-1,!0);return!(e&&("comment"===e.type||"text"===e.type&&Qe(e.value.charAt(0))||"element"===e.type&&("meta"===e.tagName||"link"===e.tagName||"script"===e.tagName||"style"===e.tagName||"template"===e.tagName)));},colgroup:function colgroup(t,e,n){var i=en(n,e),r=tn(t,-1,!0);if(n&&i&&"element"===i.type&&"colgroup"===i.tagName&&ln(i,n.children.indexOf(i),n))return!1;return Boolean(r&&"element"===r.type&&"col"===r.tagName);},head:function head(t){var e=new Set();var _iterator18=_createForOfIteratorHelper(t.children),_step18;try{for(_iterator18.s();!(_step18=_iterator18.n()).done;){var _n31=_step18.value;if("element"===_n31.type&&("base"===_n31.tagName||"title"===_n31.tagName)){if(e.has(_n31.tagName))return!1;e.add(_n31.tagName);}}}catch(err){_iterator18.e(err);}finally{_iterator18.f();}var n=t.children[0];return!n||"element"===n.type;},html:function html(t){var e=tn(t,-1);return!e||"comment"!==e.type;},tbody:function tbody(t,e,n){var i=en(n,e),r=tn(t,-1);if(n&&i&&"element"===i.type&&("thead"===i.tagName||"tbody"===i.tagName)&&ln(i,n.children.indexOf(i),n))return!1;return Boolean(r&&"element"===r.type&&"tr"===r.tagName);}});pn={name:[["\t\n\f\r &/=>".split(""),"\t\n\f\r \"&'/=>`".split("")],["\0\t\n\f\r \"&'/<=>".split(""),"\0\t\n\f\r \"&'/<=>`".split("")]],unquoted:[["\t\n\f\r &>".split(""),"\0\t\n\f\r \"&'<=>`".split("")],["\0\t\n\f\r \"&'<=>`".split(""),"\0\t\n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],"double":[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};dn=["<","&"];gn=function(t,e){var n=e||{};function i(e){var _r15;var r=i.invalid;var o=i.handlers;if(e&&Ae.call(e,t)){var _n33=String(e[t]);r=Ae.call(o,_n33)?o[_n33]:i.unknown;}for(var _len2=arguments.length,n=new Array(_len2>1?_len2-1:0),_key2=1;_key2<_len2;_key2++){n[_key2-1]=arguments[_key2];}if(r)return(_r15=r).call.apply(_r15,[this,e].concat(n));}return i.handlers=n.handlers||{},i.invalid=n.invalid,i.unknown=n.unknown,i;}("type",{invalid:function invalid(t){throw new Error("Expected node, not `"+t+"`");},unknown:function unknown(t){throw new Error("Cannot compile unknown node `"+t.type+"`");},handlers:{comment:function comment(t,e,n,i){return i.settings.bogusComments?"<?"+He(t.value,Object.assign({},i.settings.characterReferences,{subset:We}))+">":"\x3c!--"+t.value.replace(Ue,function(t){return He(t,Object.assign({},i.settings.characterReferences,{subset:Ve}));})+"--\x3e";},doctype:function doctype(t,e,n,i){return"<!"+(i.settings.upperDoctype?"DOCTYPE":"doctype")+(i.settings.tightDoctype?"":" ")+"html>";},element:function element(t,e,n,i){var r=i.schema,o="svg"!==r.space&&i.settings.omitOptionalTags;var s="svg"===r.space?i.settings.closeEmptyElements:i.settings.voids.includes(t.tagName.toLowerCase());var l=[];var a;"html"===r.space&&"svg"===t.tagName&&(i.schema=Le);var c=function(t,e){var n=[];var i,r=-1;if(e)for(i in e)if(null!==e[i]&&void 0!==e[i]){var _r16=hn(t,i,e[i]);_r16&&n.push(_r16);}for(;++r<n.length;){var _e33=t.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&'"'!==_e33&&"'"!==_e33&&(n[r]+=" ");}return n.join("");}(i,t.properties),u=i.all("html"===r.space&&"template"===t.tagName?t.content:t);return i.schema=r,u&&(s=!1),!c&&o&&mn(t,e,n)||(l.push("<",t.tagName,c?" "+c:""),s&&("svg"===r.space||i.settings.closeSelfClosing)&&(a=c.charAt(c.length-1),(!i.settings.tightSelfClosing||"/"===a||a&&'"'!==a&&"'"!==a)&&l.push(" "),l.push("/")),l.push(">")),l.push(u),s||o&&ln(t,e,n)||l.push("</"+t.tagName+">"),l.join("");},raw:function raw(t,e,n,i){return i.settings.allowDangerousHtml?t.value:fn(t,0,n,i);},root:function root(t,e,n,i){return i.all(t);},text:fn}});jn={};yn={};bn=[];Dn=/*#__PURE__*/function(_Error3){function Dn(t){var _this14;_classCallCheck(this,Dn);_this14=_callSuper(this,Dn,[t]),_this14.name="ShikiError";return _this14;}_inherits(Dn,_Error3);return _createClass(Dn);}(/*#__PURE__*/_wrapNativeSuper(Error));En=Object.defineProperty;Rn=function Rn(t,e,n){return function(t,e,n){e in t?En(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;}(t,"symbol"!=_typeof(e)?e+"":e,n),n;};$n=new WeakMap();Gn=/*#__PURE__*/function(){function Gn(){_classCallCheck(this,Gn);for(var _len3=arguments.length,t=new Array(_len3),_key3=0;_key3<_len3;_key3++){t[_key3]=arguments[_key3];}if(Rn(this,"_stacks",{}),Rn(this,"lang"),2===t.length){var _e35=t[0],_n35=t[1];this.lang=_n35,this._stacks=_e35;}else{var _e36=t[0],_n36=t[1],i=t[2];this.lang=_n36,this._stacks=_defineProperty({},i,_e36);}}return _createClass(Gn,[{key:"themes",get:function get(){return Object.keys(this._stacks);}},{key:"theme",get:function get(){return this.themes[0];}},{key:"_stack",get:function get(){return this._stacks[this.theme];}},{key:"getInternalStack",value:function getInternalStack(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:this.theme;return this._stacks[t];}},{key:"scopes",get:function get(){return qn(this._stacks[this.theme]);}},{key:"getScopes",value:function getScopes(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:this.theme;return qn(this._stacks[t]);}},{key:"toJSON",value:function toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.scopes};}}],[{key:"initial",value:function initial(t,e){return new Gn(Object.fromEntries(function(t){return Array.isArray(t)?t:[t];}(e).map(function(t){return[t,Ut];})),t);}}]);}();Fn=[_n()];Un=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"];Wn={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};Yn={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"};ci={light:"#333333",dark:"#bbbbbb"};ui={light:"#fffffe",dark:"#1e1e1e"};mi="__shiki_resolved";fi=Object.defineProperty;gi=function gi(t,e,n){return function(t,e,n){e in t?fi(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;}(t,"symbol"!=_typeof(e)?e+"":e,n),n;};ji=/*#__PURE__*/function(_Ht){function ji(t,e,n){var _this15;var i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};_classCallCheck(this,ji);_this15=_callSuper(this,ji,[t]),_this15._resolver=t,_this15._themes=e,_this15._langs=n,_this15._alias=i,gi(_assertThisInitialized(_this15),"_resolvedThemes",new Map()),gi(_assertThisInitialized(_this15),"_resolvedGrammars",new Map()),gi(_assertThisInitialized(_this15),"_langMap",new Map()),gi(_assertThisInitialized(_this15),"_langGraph",new Map()),gi(_assertThisInitialized(_this15),"_textmateThemeCache",new WeakMap()),gi(_assertThisInitialized(_this15),"_loadedThemesCache",null),gi(_assertThisInitialized(_this15),"_loadedLanguagesCache",null),_this15._themes.map(function(t){return _this15.loadTheme(t);}),_this15.loadLanguages(_this15._langs);return _this15;}_inherits(ji,_Ht);return _createClass(ji,[{key:"getTheme",value:function getTheme(t){return"string"==typeof t?this._resolvedThemes.get(t):this.loadTheme(t);}},{key:"loadTheme",value:function loadTheme(t){var e=pi(t);return e.name&&(this._resolvedThemes.set(e.name,e),this._loadedThemesCache=null),e;}},{key:"getLoadedThemes",value:function getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=_toConsumableArray(this._resolvedThemes.keys())),this._loadedThemesCache;}},{key:"setTheme",value:function setTheme(t){var e=this._textmateThemeCache.get(t);e||(e=R.createFromRawTheme(t),this._textmateThemeCache.set(t,e)),this._syncRegistry.setTheme(e);}},{key:"getGrammar",value:function getGrammar(t){if(this._alias[t]){var _e47=new Set([t]);for(;this._alias[t];){if(t=this._alias[t],_e47.has(t))throw new Dn("Circular alias `".concat(Array.from(_e47).join(" -> ")," -> ").concat(t,"`"));_e47.add(t);}}return this._resolvedGrammars.get(t);}},{key:"loadLanguage",value:function loadLanguage(t){var _this16=this;if(this.getGrammar(t.name))return;var e=new Set(_toConsumableArray(this._langMap.values()).filter(function(e){var _e$embeddedLangsLazy;return(_e$embeddedLangsLazy=e.embeddedLangsLazy)===null||_e$embeddedLangsLazy===void 0?void 0:_e$embeddedLangsLazy.includes(t.name);}));this._resolver.addLanguage(t);var n={balancedBracketSelectors:t.balancedBracketSelectors||["*"],unbalancedBracketSelectors:t.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(t.scopeName,t);var i=this.loadGrammarWithConfiguration(t.scopeName,1,n);if(i.name=t.name,this._resolvedGrammars.set(t.name,i),t.aliases&&t.aliases.forEach(function(e){_this16._alias[e]=t.name;}),this._loadedLanguagesCache=null,e.size){var _iterator38=_createForOfIteratorHelper(e),_step38;try{for(_iterator38.s();!(_step38=_iterator38.n()).done;){var _this$_syncRegistry,_this$_syncRegistry2;var _t98=_step38.value;this._resolvedGrammars["delete"](_t98.name),this._loadedLanguagesCache=null,(_this$_syncRegistry=this._syncRegistry)!==null&&_this$_syncRegistry!==void 0&&(_this$_syncRegistry=_this$_syncRegistry._injectionGrammars)!==null&&_this$_syncRegistry!==void 0&&_this$_syncRegistry["delete"](_t98.scopeName),(_this$_syncRegistry2=this._syncRegistry)!==null&&_this$_syncRegistry2!==void 0&&(_this$_syncRegistry2=_this$_syncRegistry2._grammars)!==null&&_this$_syncRegistry2!==void 0&&_this$_syncRegistry2["delete"](_t98.scopeName),this.loadLanguage(this._langMap.get(_t98.name));}}catch(err){_iterator38.e(err);}finally{_iterator38.f();}}}},{key:"dispose",value:function dispose(){_get(_getPrototypeOf(ji.prototype),"dispose",this).call(this),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null;}},{key:"loadLanguages",value:function loadLanguages(t){var _iterator39=_createForOfIteratorHelper(t),_step39;try{for(_iterator39.s();!(_step39=_iterator39.n()).done;){var _e50=_step39.value;this.resolveEmbeddedLanguages(_e50);}}catch(err){_iterator39.e(err);}finally{_iterator39.f();}var e=Array.from(this._langGraph.entries()),n=e.filter(function(_ref13){var _ref14=_slicedToArray(_ref13,2),t=_ref14[0],e=_ref14[1];return!e;});if(n.length){var _t99=e.filter(function(_ref15){var _e$embeddedLangs;var _ref16=_slicedToArray(_ref15,2),t=_ref16[0],e=_ref16[1];return e&&((_e$embeddedLangs=e.embeddedLangs)===null||_e$embeddedLangs===void 0?void 0:_e$embeddedLangs.some(function(t){return n.map(function(_ref17){var _ref18=_slicedToArray(_ref17,1),t=_ref18[0];return t;}).includes(t);}));}).filter(function(t){return!n.includes(t);});throw new Dn("Missing languages ".concat(n.map(function(_ref19){var _ref20=_slicedToArray(_ref19,1),t=_ref20[0];return"`".concat(t,"`");}).join(", "),", required by ").concat(_t99.map(function(_ref21){var _ref22=_slicedToArray(_ref21,1),t=_ref22[0];return"`".concat(t,"`");}).join(", ")));}for(var _i24=0,_e48=e;_i24<_e48.length;_i24++){var _e48$_i=_slicedToArray(_e48[_i24],2),_t100=_e48$_i[0],_n47=_e48$_i[1];this._resolver.addLanguage(_n47);}for(var _i25=0,_e49=e;_i25<_e49.length;_i25++){var _e49$_i=_slicedToArray(_e49[_i25],2),_t101=_e49$_i[0],_n48=_e49$_i[1];this.loadLanguage(_n48);}}},{key:"getLoadedLanguages",value:function getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=_toConsumableArray(new Set([].concat(_toConsumableArray(this._resolvedGrammars.keys()),_toConsumableArray(Object.keys(this._alias)))))),this._loadedLanguagesCache;}},{key:"resolveEmbeddedLanguages",value:function resolveEmbeddedLanguages(t){if(this._langMap.set(t.name,t),this._langGraph.set(t.name,t),t.embeddedLangs){var _iterator40=_createForOfIteratorHelper(t.embeddedLangs),_step40;try{for(_iterator40.s();!(_step40=_iterator40.n()).done;){var _e51=_step40.value;this._langGraph.set(_e51,this._langMap.get(_e51));}}catch(err){_iterator40.e(err);}finally{_iterator40.f();}}}}]);}(Ht);yi=Object.defineProperty;bi=function bi(t,e,n){return function(t,e,n){e in t?yi(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;}(t,"symbol"!=_typeof(e)?e+"":e,n),n;};wi=/*#__PURE__*/function(){function wi(t,e){var _this17=this;_classCallCheck(this,wi);bi(this,"_langs",new Map()),bi(this,"_scopeToLang",new Map()),bi(this,"_injections",new Map()),bi(this,"_onigLib"),this._onigLib={createOnigScanner:function createOnigScanner(e){return t.createScanner(e);},createOnigString:function createOnigString(e){return t.createString(e);}},e.forEach(function(t){return _this17.addLanguage(t);});}return _createClass(wi,[{key:"onigLib",get:function get(){return this._onigLib;}},{key:"getLangRegistration",value:function getLangRegistration(t){return this._langs.get(t);}},{key:"loadGrammar",value:function loadGrammar(t){return this._scopeToLang.get(t);}},{key:"addLanguage",value:function addLanguage(t){var _this18=this;this._langs.set(t.name,t),t.aliases&&t.aliases.forEach(function(e){_this18._langs.set(e,t);}),this._scopeToLang.set(t.scopeName,t),t.injectTo&&t.injectTo.forEach(function(e){_this18._injections.get(e)||_this18._injections.set(e,[]),_this18._injections.get(e).push(t.scopeName);});}},{key:"getInjections",value:function getInjections(t){var e=t.split(".");var n=[];for(var _t102=1;_t102<=e.length;_t102++){var i=e.slice(0,_t102).join(".");n=[].concat(_toConsumableArray(n),_toConsumableArray(this._injections.get(i)||[]));}return n;}}]);}();vi=0;Ci=xi({langs:a,themes:u,engine:function engine(){return x(_context["import"]("../wasm-69304cd7.cjs.js"));}});_export("N",Li=/*#__PURE__*/function(_o24){function Li(){var _this19;_classCallCheck(this,Li);_this19=_callSuper(this,Li,arguments),_this19.code="",_this19.language="javascript",_this19.theme="min-light",_this19.highlightedCode="";return _this19;}_inherits(Li,_o24);return _createClass(Li,[{key:"updated",value:function(){var _updated=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(t){return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:_context6.t0=t.has("language")||t.has("theme");if(!_context6.t0){_context6.next=4;break;}_context6.next=4;return this.updateHighlighter();case 4:_context6.t1=t.has("code")||t.has("language")||t.has("theme");if(!_context6.t1){_context6.next=8;break;}_context6.next=8;return this.updateHighlightedCode();case 8:case"end":return _context6.stop();}},_callee5,this);}));function updated(_x10){return _updated.apply(this,arguments);}return updated;}()},{key:"render",value:function render(){return e(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n\t\t\t\t<div class=\"code-container\" .innerHTML=","></div>\n\t\t\t"])),this.highlightedCode);}},{key:"updateHighlighter",value:function(){var _updateHighlighter=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(){return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:_context7.next=2;return Ci({themes:[this.theme],langs:[this.language]});case 2:this.highlighter=_context7.sent;case 3:case"end":return _context7.stop();}},_callee6,this);}));function updateHighlighter(){return _updateHighlighter.apply(this,arguments);}return updateHighlighter;}()},{key:"updateHighlightedCode",value:function(){var _updateHighlightedCode=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(){return _regeneratorRuntime().wrap(function _callee7$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:_context8.next=2;return this.highlighter.codeToHtml(this.code,{lang:this.language,theme:this.theme});case 2:this.highlightedCode=_context8.sent;case 3:case"end":return _context8.stop();}},_callee7,this);}));function updateHighlightedCode(){return _updateHighlightedCode.apply(this,arguments);}return updateHighlightedCode;}()}],[{key:"styles",get:function get(){return[r];}}]);}(o));t([s({type:String})],Li.prototype,"code",void 0),t([s({type:String,reflect:!0})],Li.prototype,"language",void 0),t([s({type:String,reflect:!0})],Li.prototype,"theme",void 0),t([n()],Li.prototype,"highlightedCode",void 0),_export("N",Li=t([i("nile-highlighter")],Li));}};});
|
2
2
|
//# sourceMappingURL=nile-highlighter.cjs.js.map
|