1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,625257,e=>{"use strict";let t,r,n,i,a,s,o;var l,c,u,h=e.i(327193),d=e.i(961907),p=e.i(282889),m=e.i(475127),g=e.i(945334),f=Object.prototype.hasOwnProperty;function y(e,t,r){for(r of e.keys())if(b(r,t))return r}function b(e,t){var r,n,i;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((n=e.length)===t.length)for(;n--&&b(e[n],t[n]););return -1===n}if(r===Set){if(e.size!==t.size)return!1;for(n of e)if((i=n)&&"object"==typeof i&&!(i=y(t,i))||!t.has(i))return!1;return!0}if(r===Map){if(e.size!==t.size)return!1;for(n of e)if((i=n[0])&&"object"==typeof i&&!(i=y(t,i))||!b(n[1],t.get(i)))return!1;return!0}if(r===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(r===DataView){if((n=e.byteLength)===t.byteLength)for(;n--&&e.getInt8(n)===t.getInt8(n););return -1===n}if(ArrayBuffer.isView(e)){if((n=e.byteLength)===t.byteLength)for(;n--&&e[n]===t[n];);return -1===n}if(!r||"object"==typeof e){for(r in n=0,e)if(f.call(e,r)&&++n&&!f.call(t,r)||!(r in t)||!b(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!=e&&t!=t}var _=class extends Error{constructor(e){super(e),this.name="ShikiError"}},A=e.i(752259);function w(e,...t){return t.forEach(t=>{for(let r in t)e[r]=t[r]}),e}var S=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,v=class{static hasCaptures(e){return null!==e&&(S.lastIndex=0,S.test(e))}static replaceCaptures(e,t,r){return e.replace(S,(e,n,i,a)=>{let s=r[parseInt(n||i,10)];if(!s)return e;{let e=t.substring(s.start,s.end);for(;"."===e[0];)e=e.substring(1);switch(a){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}})}};function k(e,t){if(null===e&&null===t)return 0;if(!e)return -1;if(!t)return 1;let r=e.length,n=t.length;if(r===n){for(let n=0;n<r;n++){var i,a;let r=(i=e[n],i<(a=t[n])?-1:+(i>a));if(0!==r)return r}return 0}return r-n}function C(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function N(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var x=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}},L=class{constructor(e,t,r){this._colorMap=e,this._defaults=t,this._root=r}static createFromRawTheme(e,t){return this.createFromParsedTheme(function(e){if(!e||!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,r=[],n=0;for(let e=0,i=t.length;e<i;e++){let i,a=t[e];if(!a.settings)continue;if("string"==typeof a.scope){let e=a.scope;i=(e=(e=e.replace(/^[,]+/,"")).replace(/[,]+$/,"")).split(",")}else i=Array.isArray(a.scope)?a.scope:[""];let s=-1;if("string"==typeof a.settings.fontStyle){s=0;let e=a.settings.fontStyle.split(" ");for(let t=0,r=e.length;t<r;t++)switch(e[t]){case"italic":s|=1;break;case"bold":s|=2;break;case"underline":s|=4;break;case"strikethrough":s|=8}}let o=null;"string"==typeof a.settings.foreground&&C(a.settings.foreground)&&(o=a.settings.foreground);let l=null;"string"==typeof a.settings.background&&C(a.settings.background)&&(l=a.settings.background);for(let t=0,a=i.length;t<a;t++){let a=i[t].trim().split(" "),c=a[a.length-1],u=null;a.length>1&&(u=a.slice(0,a.length-1)).reverse(),r[n++]=new R(c,u,e,s,o,l)}}return r}(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort((e,t)=>{var r,n;let i=(r=e.scope,r<(n=t.scope)?-1:+(r>n));return 0!==i||0!==(i=k(e.parentScopes,t.parentScopes))?i:e.index-t.index});let r=0,n="#000000",i="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(r=t.fontStyle),null!==t.foreground&&(n=t.foreground),null!==t.background&&(i=t.background)}let a=new I(t),s=new P(r,a.getId(n),a.getId(i)),o=new M(new O(0,null,-1,0,0),[]);for(let t=0,r=e.length;t<r;t++){let r=e[t];o.insert(0,r.scope,r.parentScopes,r.fontStyle,a.getId(r.foreground),a.getId(r.background))}return new L(a,s,o)}(e,t)}_cachedMatchRoot=new x(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;let t=e.scopeName,r=this._cachedMatchRoot.get(t).find(t=>(function(e,t){if(0===t.length)return!0;for(let i=0;i<t.length;i++){var r,n;let a=t[i],s=!1;if(">"===a){if(i===t.length-1)return!1;a=t[++i],s=!0}for(;e&&(r=e.scopeName,!((n=a)===r||r.startsWith(n)&&"."===r[n.length]));){if(s)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0})(e.parent,t.parentScopes));return r?new P(r.fontStyle,r.foreground,r.background):null}},T=class e{constructor(e,t){this.parent=e,this.scopeName=t}static push(t,r){for(let n of r)t=new e(t,n);return t}static from(...t){let r=null;for(let n=0;n<t.length;n++)r=new e(r,t[n]);return r}push(t){return new e(this,t)}getSegments(){let e=this,t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}
1toString(){return this.getSegments().join(" ")}extends(e){return this===e||null!==this.parent&&this.parent.extends(e)}getExtensionIfDefined(e){let t=[],r=this;for(;r&&r!==e;)t.push(r.scopeName),r=r.parent;return r===e?t.reverse():void 0}},P=class{constructor(e,t,r){this.fontStyle=e,this.foregroundId=t,this.backgroundId=r}},R=class{constructor(e,t,r,n,i,a){this.scope=e,this.parentScopes=t,this.index=r,this.fontStyle=n,this.foreground=i,this.background=a}},E=((l=E||{})[l.NotSet=-1]="NotSet",l[l.None=0]="None",l[l.Italic=1]="Italic",l[l.Bold=2]="Bold",l[l.Underline=4]="Underline",l[l.Strikethrough=8]="Strikethrough",l),I=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,r=e.length;t<r;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(null===e)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},j=Object.freeze([]),O=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,r,n,i){this.scopeDepth=e,this.parentScopes=t||j,this.fontStyle=r,this.foreground=n,this.background=i}clone(){return new e(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let r=0,n=e.length;r<n;r++)t[r]=e[r].clone();return t}acceptOverwrite(e,t,r,n){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==r&&(this.foreground=r),0!==n&&(this.background=n)}},M=class e{constructor(e,t=[],r={}){this._mainRule=e,this._children=r,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let r=0,n=0;for(;">"===e.parentScopes[r]&&r++,">"===t.parentScopes[n]&&n++,!(r>=e.parentScopes.length)&&!(n>=t.parentScopes.length);){let i=t.parentScopes[n].length-e.parentScopes[r].length;if(0!==i)return i;r++,n++}return t.parentScopes.length-e.parentScopes.length}match(t){if(""!==t){let e,r,n=t.indexOf(".");if(-1===n?(e=t,r=""):(e=t.substring(0,n),r=t.substring(n+1)),this._children.hasOwnProperty(e))return this._children[e].match(r)}let r=this._rulesWithParentScopes.concat(this._mainRule);return r.sort(e._cmpBySpecificity),r}insert(t,r,n,i,a,s){let o,l,c;if(""===r)return void this._doInsertHere(t,n,i,a,s);let u=r.indexOf(".");-1===u?(o=r,l=""):(o=r.substring(0,u),l=r.substring(u+1)),this._children.hasOwnProperty(o)?c=this._children[o]:(c=new e(this._mainRule.clone(),O.cloneArr(this._rulesWithParentScopes)),this._children[o]=c),c.insert(t+1,l,n,i,a,s)}_doInsertHere(e,t,r,n,i){if(null===t)return void this._mainRule.acceptOverwrite(e,r,n,i);for(let a=0,s=this._rulesWithParentScopes.length;a<s;a++){let s=this._rulesWithParentScopes[a];if(0===k(s.parentScopes,t))return void s.acceptOverwrite(e,r,n,i)}-1===r&&(r=this._mainRule.fontStyle),0===n&&(n=this._mainRule.foreground),0===i&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new O(e,t,r,n,i))}},D=class e{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(t){let r=e.getLanguageId(t),n=e.getTokenType(t),i=e.getFontStyle(t);console.log({languageId:r,tokenType:n,fontStyle:i,foreground:e.getForeground(t),background:e.getBackground(t)})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return(1024&e)!=0}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(0xff8000&e)>>>15}static getBackground(e){return(0xff000000&e)>>>24}static set(t,r,n,i,a,s,o){let l=e.getLanguageId(t),c=e.getTokenType(t),u=+!!e.containsBalancedBrackets(t),h=e.getFontStyle(t),d=e.getForeground(t),p=e.getBackground(t);return 0!==r&&(l=r),8!==n&&(c=n),null!==i&&(u=+!!i),-1!==a&&(h=a),0!==s&&(d=s),0!==o&&(p=o),(l|c<<8|u<<10|h<<11|d<<15|p<<24)>>>0}};function G(e,t){var r;let n,i,a=[],s=(r=e,i=(n=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g).exec(r),{next:()=>{if(!i)return null;let e=i[0];return i=n.exec(r),e}}),o=s.next();for(;null!==o;){let e=0;if(2===o.length&&":"===o.charAt(1)){switch(o.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${o} in scope selector`)}o=s.next()}let t=c();if(a.push({matcher:t,priority:e}),","!==o)break;o=s.next()}return a;function l(){if("-"===o){o=s.next();let e=l();return t=>!!e&&!e(t)}if("("===o){o=s.next();let e=function(){let e=[],t=c();for(;t&&(e.push(t),"|"===o||","===o);){do o=s.next();while("|"===o||","===o)t=c()}return t=>e.some(e=>e(t))}();return")"===o&&(o=s.next()),e}if(B(o)){let e=[];do e.push(o),o=s.next();while(B(o))return r=>t(e,r)}return null}function c(){let e=[],t=l();for(;t;)e.push(t),t=l();return t=>e.every(e=>e(t))}}function B(e){return!!e&&!!e.match(/[\w\.:]+/)}var $=((c=$||{})[c.None=0]="None",c[c.NotBeginString=1]="NotBeginString",c[c.NotEndString=2]="NotEndString",c[c.NotBeginPosition=4]="NotBeginPosition",c[c.DebugCall=8]="DebugCall",c);function U(e){"function"==typeof e.dispose&&e.dispose()}var F=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},W=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},H=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},q=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new F(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new H;for(let r of e)!function(e,t,r,n){let i=r.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw Error(`No grammar provided for <${t}>`);return}let a=r.lookup(t);e instanceof F?V({baseGrammar:a,selfGrammar:i},n):z(e.ruleName,{baseGrammar:a,selfGrammar:i,repository:i.repository},n);let s=r.injections(e.scopeName);if(s)for(let e of s)n.add(new F(e))}(r,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof F){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName)||this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};function z(e,t,r){t.repository&&t.repository[e]&&X([t.repository[e]],t,r)}function V(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&X(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository}
1,t),e.selfGrammar.injections&&X(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function X(e,t,r){for(let n of e){if(r.visitedRule.has(n))continue;r.visitedRule.add(n);let e=n.repository?w({},t.repository,n.repository):t.repository;Array.isArray(n.patterns)&&X(n.patterns,{...t,repository:e},r);let i=n.include;if(!i)continue;let a=ee(i);switch(a.kind){case 0:V({...t,selfGrammar:t.baseGrammar},r);break;case 1:V(t,r);break;case 2:z(a.ruleName,{...t,repository:e},r);break;case 3:case 4:let s=a.scopeName===t.selfGrammar.scopeName?t.selfGrammar:a.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(s){let n={baseGrammar:t.baseGrammar,selfGrammar:s,repository:e};4===a.kind?z(a.ruleName,n,r):V(n,r)}else 4===a.kind?r.add(new W(a.scopeName,a.ruleName)):r.add(new F(a.scopeName))}}}var J=class{kind=0},Q=class{kind=1},Y=class{constructor(e){this.ruleName=e}kind=2},K=class{constructor(e){this.scopeName=e}kind=3},Z=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function ee(e){if("$base"
1===e)return new J;if("$self"===e)return new Q;let t=e.indexOf("#");return -1===t?new K(e):0===t?new Y(e.substring(1)):new Z(e.substring(0,t),e.substring(t+1))}var et=/\\(\d+)/,er=/\\(\d+)/g;Symbol("RuleId");var en=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,r,n){this.$location=e,this.id=t,this._name=r||null,this._nameIsCapturing=v.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=v.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${function e(t){let r=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===r?t:~r==t.length-1?e(t.substring(0,t.length-1)):t.substr(~r+1)}(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return this._nameIsCapturing&&null!==this._name&&null!==e&&null!==t?v.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?v.replaceCaptures(this._contentName,e,t):this._contentName}},ei=class extends en{retokenizeCapturedWithRuleId;constructor(e,t,r,n,i){super(e,t,r,n),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(e,t){throw Error("Not supported!")}compile(e,t){throw Error("Not supported!")}compileAG(e,t,r,n){throw Error("Not supported!")}},ea=class extends en{_match;captures;_cachedCompiledPatterns;constructor(e,t,r,n,i){super(e,t,r,null),this._match=new eu(n,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e).compileAG(e,r,n)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new eh,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},es=class extends en{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,r,n,i){super(e,t,r,n),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(let r of this.patterns)e.getRule(r).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e).compileAG(e,r,n)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new eh,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},eo=class extends en{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,r,n,i,a,s,o,l,c){super(e,t,r,n),this._begin=new eu(i,this.id),this.beginCaptures=a,this._end=new eu(s||"ï¿¿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=o,this.applyEndPatternLast=l||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e,t).compileAG(e,r,n)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){for(let t of(this._cachedCompiledPatterns=new eh,this.patterns))e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},el=class extends en{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,r,n,i,a,s,o,l){super(e,t,r,n),this._begin=new eu(i,this.id),this.beginCaptures=a,this.whileCaptures=o,this._while=ne
1w eu(s,-2),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e).compileAG(e,r,n)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns)for(let t of(this._cachedCompiledPatterns=new eh,this.patterns))e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,r,n){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,r,n)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new eh,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"ï¿¿"),this._cachedCompiledWhilePatterns}
1},ec=class e{static createCaptureRule(e,t,r,n,i){return e.registerRule(e=>new ei(t,e,r,n,i))}static getCompiledRuleId(t,r,n){return t.id||r.registerRule(i=>{if(t.id=i,t.match)return new ea(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,r,n));if(void 0===t.begin){t.repository&&(n=w({},n,t.repository));let i=t.patterns;return void 0===i&&t.include&&(i=[{include:t.include}]),new es(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(i,r,n))}return t.while?new el(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,r,n),t.while,e._compileCaptures(t.whileCaptures||t.captures,r,n),e._compilePatterns(t.patterns,r,n)):new eo(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,r,n),t.end,e._compileCaptures(t.endCaptures||t.captures,r,n),t.applyEndPatternLast,e._compilePatterns(t.patterns,r,n))}),t.id}static _compileCaptures(t,r,n){let i=[];if(t){let a=0;for(let e in t){if("$vscodeTextmateLocation"===e)continue;let t=parseInt(e,10);t>a&&(a=t)}for(let e=0;e<=a;e++)i[e]=null;for(let a in t){if("$vscodeTextmateLocation"===a)continue;let s=parseInt(a,10),o=0;t[a].patterns&&(o=e.getCompiledRuleId(t[a],r,n)),i[s]=e.createCaptureRule(r,t[a].$vscodeTextmateLocation,t[a].name,t[a].contentName,o)}}return i}static _compilePatterns(t,r,n){let i=[];if(t)for(let a=0,s=t.length;a<s;a++){let s=t[a],o=-1;if(s.include){let t=ee(s.include);switch(t.kind){case 0:case 1:o=e.getCompiledRuleId(n[s.include],r,n);break;case 2:let i=n[t.ruleName];i&&(o=e.getCompiledRuleId(i,r,n));break;case 3:case 4:let a=t.scopeName,l=4===t.kind?t.ruleName:null,c=r.getExternalGrammar(a,n);if(c)if(l){let t=c.repository[l];t&&(o=e.getCompiledRuleId(t,r,c.repository))}else o=e.getCompiledRuleId(c.repository.$self,r,c.repository)}}else o=e.getCompiledRuleId(s,r,n);if(-1!==o){let e=r.getRule(o),t=!1;if((e instanceof es||e instanceof eo||e instanceof el)&&e.hasMissingPatterns&&0===e.patterns.length&&(t=!0),t)continue;i.push(o)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},eu=class e{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&"string"==typeof e){const t=e.length;let r=0,n=[],i=!1;for(let a=0;a<t;a++)if("\\"===e.charAt(a)&&a+1<t){const t=e.charAt(a+1);"z"===t?(n.push(e.substring(r,a)),n.push("$(?!\\n)(?<!\\n)"),r=a+2):("A"===t||"G"===t)&&(i=!0),a++}this.hasAnchor=i,0===r?this.source=e:(n.push(e.substring(r,t)),this.source=n.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,"string"==typeof this.source?this.hasBackReferences=et.test(this.source):this.hasBackReferences=!1}clone(){return new e(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if("string"!=typeof this.source)throw Error("This method should only be called if the source is a string");let r=t.map(t=>e.substring(t.start,t.end));return er.lastIndex=0,this.source.replace(er,(e,t)=>N(r[parseInt(t,10)]||""))}_buildAnchorCache(){let e,t,r,n;if("string"!=typeof this.source)throw Error("This method should only be called if the source is a string");let i=[],a=[],s=[],o=[];for(e=0,t=this.source.length;e<t;e++)r=this.source.charAt(e),i[e]=r,a[e]=r,s[e]=r,o[e]=r,"\\"===r&&e+1<t&&("A"===(n=this.source.charAt(e+1))?(i[e+1]="ï¿¿",a[e+1]="ï¿¿",s[e+1]="A",o[e+1]="A"):"G"===n?(i[e+1]="ï¿¿",a[e+1]="G",s[e+1]="ï¿¿",o[e+1]="G"):(i[e+1]=n,a[e+1]=n,s[e+1]=n,o[e+1]=n),e
1++);return{A0_G0:i.join(""),A0_G1:a.join(""),A1_G0:s.join(""),A1_G1:o.join("")}}resolveAnchors(e,t){if(!this.hasAnchor||!this._anchorCache||"string"!=typeof this.source)return this.source;if(e)if(t)return this._anchorCache.A1_G1;else return this._anchorCache.A1_G0;return t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},eh=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(e=>e.source);this._cached=new ed(e,t,this._items.map(e=>e.ruleId))}return this._cached}compileAG(e,t,r){if(!this._hasAnchors)return this.compile(e);if(t)if(r)return this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,r)),this._anchorCache.A1_G1;else return this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,r)),this._anchorCache.A1_G0;return r?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,r)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,r)),this._anchorCache.A0_G0)}_resolveAnchors(e,t,r){return new ed(e,this._items.map(e=>e.resolveAnchors(t,r)),this._items.map(e=>e.ruleId))}},ed=class{constructor(e,t,r){this.regExps=t,this.rules=r,this.scanner=e.createOnigScanner(t)}scanner;dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){let e=[];for(let t=0,r=this.rules.length;t<r;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,r){let n=this.scanner.findNextMatchSync(e,t,r);return n?{ruleId:this.rules[n.index],captureIndices:n.captureIndices}:null}},ep=class{constructor(e,t){this.languageId=e,this.tokenType=t}},em=class e{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,t){this._defaultAttributes=new ep(e,8),this._embeddedLanguagesMatcher=new eg(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return null===t?e._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new ep(0,0);_getBasicScopeAttributes=new x(e=>new ep(this._scopeToLanguage(e),this._toStandardTokenType(e)));_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(t){let r=t.match(e.STANDARD_TOKEN_TYPE_REGEXP);if(!r)return 8;switch(r[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},eg=class{values;scopesRegExp;constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([e,t])=>N(e));
1t.sort(),t.reverse(),this.scopesRegExp=RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;let t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}};void 0!==A.default&&A.default.env.VSCODE_TEXTMATE_DEBUG;var ef=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function ey(e,t,r,n,i,a,s,o){let l=t.content.length,c=!1,u=-1;if(s){let s=function(e,t,r,n,i,a){let s=i.beginRuleCapturedEOL?0:-1,o=[];for(let t=i;t;t=t.pop()){let r=t.getRule(e);r instanceof el&&o.push({rule:r,stack:t})}for(let p=o.pop();p;p=o.pop()){var l,c,u,h,d;let{ruleScanner:o,findOptions:m}=(l=p.rule,c=e,u=p.stack.endRule,h=r,d=n===s,{ruleScanner:l.compileWhileAG(c,u,h,d),findOptions:0}),g=o.findNextMatchSync(t,n,m);if(g){if(-2!==g.ruleId){i=p.stack.pop();break}g.captureIndices&&g.captureIndices.length&&(a.produce(p.stack,g.captureIndices[0].start),e_(e,t,r,p.stack,a,p.rule.whileCaptures,g.captureIndices),a.produce(p.stack,g.captureIndices[0].end),s=g.captureIndices[0].end,g.captureIndices[0].end>n&&(n=g.captureIndices[0].end,r=!1))}else{i=p.stack.pop();break}}return{stack:i,linePos:n,anchorPosition:s,isFirstLine:r}}(e,t,r,n,i,a);i=s.stack,n=s.linePos,r=s.isFirstLine,u=s.anchorPosition}let h=Date.now();for(;!c;){if(0!==o&&Date.now()-h>o)return new ef(i,!0);!function(){let s=function(e,t,r,n,i,a){let s=function(e,t,r,n,i,a){let{ruleScanner:s,findOptions:o}=eb(i.getRule(e),e,i.endRule,r,n===a),l=s.findNextMatchSync(t,n,o);return l?{captureIndices:l.captureIndices,matchedRuleId:l.ruleId}:null}(e,t,r,n,i,a),o=e.getInjections();if(0===o.length)return s;let l=function(e,t,r,n,i,a,s){let o,l=Number.MAX_VALUE,c=null,u=0,h=a.contentNameScopesList.getScopeNames();for(let a=0,d=e.length;a<d;a++){let d=e[a];if(!d.matcher(h))continue;let{ruleScanner:p,findOptions:m}=eb(t.getRule(d.ruleId),t,null,n,i===s),g=p.findNextMatchSync(r,i,m);if(!g)continue;let f=g.captureIndices[0].start;if(!(f>=l)&&(l=f,c=g.captureIndices,o=g.ruleId,u=d.priority,l===i))break}return c?{priorityMatch:-1===u,captureIndices:c,matchedRuleId:o}:null}(o,e,t,r,n,i,a);if(!l)return s;if(!s)return l;let c=s.captureIndices[0].start,u=l.captureIndices[0].start;return u<c||l.priorityMatch&&u===c?l:s}(e,t,r,n,i,u);if(!s){a.produce(i,l),c=!0;return}let o=s.captureIndices,h=s.matchedRuleId,d=!!o&&o.length>0&&o[0].end>n;if(-1===h){let s=i.getRule(e);a.produce(i,o[0].start),i=i.withContentNameScopesList(i.nameScopesList),e_(e,t,r,i,a,s.endCaptures,o),a.produce(i,o[0].end);let h=i;if(i=i.parent,u=h.getAnchorPos(),!d&&h.getEnterPos()===n){i=h,a.produce(i,l),c=!0;return}}else{let s=e.getRule(h);a.produce(i,o[0].start);let p=i,m=s.getName(t.content,o),g=i.contentNameScopesList.pushAttributed(m,e);if(i=i.push(h,n,u,o[0].end===l,null,g,g),s instanceof eo){e_(e,t,r,i,a,s.beginCaptures,o),a.produce(i,o[0].end),u=o[0].end;let n=s.getContentName(t.content,o),h=g.pushAttributed(n,e);if(i=i.withContentNameScopesList(h),s.endHasBackReferences&&(i=i.withEndRule(s.getEndWithResolvedBackReferences(t.content,o))),!d&&p.hasSameRuleAs(i)){i=i.pop(),a.produce(i,l),c=!0;return}}else if(s instanceof el){e_(e,t,r,i,a,s.beginCaptures,o),a.produce(i,o[0].end),u=o[0].end;let n=s.getContentName(t.content,o),h=g.pushAttributed(n,e);if(i=i.withContentNameScopesList(h),s.whileHasBackReferences&&(i=i.withEndRule(s.getWhileWithResolvedBackReferences(t.content,o))),!d&&p.hasSameRuleAs(i)){i=i.pop(),a.produce(i,l),c=!0;return}}else if(e_(e,t,r,i,a,s.captures,o),a.produce(i,o[0].end),i=i.pop(),!d){i=i.safePop(),a.produce(i,l),c=!0;return}}o[0].end>n&&(n=o[0].end,r=!1)}()}return new ef(i,!1)}function eb(e,t,r,n,i){return{ruleScanner:e.compileAG(t,r,n,i),findOptions:0}}function e_(e,t,r,n,i,a,s){if(0===a.length)return;let o=t.content,l=Math.min(a.length,s.length),c=[],u=s[0].end;for(let t=0;t<l;t++){let l=a[t];if(null===l)continue;let h=s[t];if(0===h.length)continue;if(h.start>u)break;for(;c.length>0&&c[c.length-1].endPos<=h.start;
1)i.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?i.produceFromScopes(c[c.length-1].scopes,h.start):i.produce(n,h.start),l.retokenizeCapturedWithRuleId){let t=l.getName(o,s),a=n.contentNameScopesList.pushAttributed(t,e),c=l.getContentName(o,s),u=a.pushAttributed(c,e),d=n.push(l.retokenizeCapturedWithRuleId,h.start,-1,!1,null,a,u),p=e.createOnigString(o.substring(0,h.end));ey(e,p,r&&0===h.start,h.start,d,i,!1,0),U(p);continue}let d=l.getName(o,s);if(null!==d){let t=(c.length>0?c[c.length-1].scopes:n.contentNameScopesList).pushAttributed(d,e);c.push(new eA(t,h.end))}}for(;c.length>0;)i.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop()}var eA=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function ew(e,t,r,n,i){let a=G(t,eS),s=ec.getCompiledRuleId(r,n,i.repository);for(let r of a)e.push({debugSelector:t,matcher:r.matcher,ruleId:s,grammar:i,priority:r.priority})}function eS(e,t){if(t.length<e.length)return!1;let r=0;return e.every(e=>{for(let n=r;n<t.length;n++)if(function(e,t){if(!e)return!1;if(e===t)return!0;let r=t.length;return e.length>r&&e.substr(0,r)===t&&"."===e[r]}(t[n],e))return r=n+1,!0;return!1})}var ev=class{constructor(e,t,r,n,i,a,s,o){if(this._rootScopeName=e,this.balancedBracketSelectors=a,this._onigLib=o,this._basicScopeAttributesProvider=new em(r,n),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=s,this._grammar=ek(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(const e of Object.keys(i))for(const t of G(e,eS))this._tokenTypeMatchers.push({matcher:t.matcher,type:i[e]})}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(let e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){let e=[],t=this._rootScopeName,r=({lookup:e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e),injections:e=>this._grammarRepository.injections(e)}).lookup(t);if(r){let n=r.injections;if(n)for(let t in n)ew(e,t,n[t],this,r);let i=this._grammarRepository.injections(t);i&&i.forEach(t=>{let r=this.getExternalGrammar(t);if(r){let t=r.injectionSelector;t&&ew(e,t,r,this,r)}})}return e.sort((e,t)=>e.priority-t.priority),e}getInjections(){return null===this._injections&&(this._injections=this._collectInjections()),this._injections}registerRule(e){let t=++this._lastRuleId,r=e(t);return this._ruleId2desc[t]=r,r}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){let r=this._grammarRepository.lookup(e);if(r)return this._includedGrammars[e]=ek(r,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,r=0){let n=this._tokenize(e,t,!1,r);return{tokens:n.lineTokens.getResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}tokenizeLine2(e,t,r=0){let n=this._tokenize(e,t,!0,r);return{tokens:n.lineTokens.getBinaryResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}_tokenize(e,t,r,n){let i;if(-1===this._rootId&&(this._rootId=ec.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections()),t&&t!==eN.NULL)i=!1,t.reset();else{let e;i=!0;let r=this._basicScopeAttributesProvider.getDefaultAttributes(),n=this.themeProvider.getDefaults(),a=D.set(0,r.languageId,r.tokenType,null,n.fontStyle,n.foregroundId,n.backgroundId),s=this.getRule(this._rootId).getName(null,null);e=s?eC.createRootAndLookUpScopeName(s,a,this):eC.createRoot("unknown",a),t=new eN(null,this._rootId,-1,-1,!1,null,e,e)}e+="\n";let a=this.createOnigString(e),s=a.content.length,o=new eL(r,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=ey(this,a,i,0,t,o,!0,n);return U(a),{lineLength:s,lineTokens:o,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function ek(e,t){return(e=function e(t){return Array.isArray(t)?function(t){let r=[];for(let n=0,i=t.length;n<i;n++)r[n]=e(t[n]);return r}(t):t instanceof RegExp?t:"object"==typeof t?function(t){let r={};for(let n in t)r[n]=e(t[n]);return r}(t):t}(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName}
1,e.repository.$base=t||e.repository.$self,e}var eC=class e{constructor(e,t,r){this.parent=e,this.scopePath=t,this.tokenAttributes=r}static fromExtension(t,r){let n=t,i=t?.scopePath??null;for(let t of r)n=new e(n,i=T.push(i,t.scopeNames),t.encodedTokenAttributes);return n}static createRoot(t,r){return new e(null,new T(null,t),r)}static createRootAndLookUpScopeName(t,r,n){let i=n.getMetadataForScope(t),a=new T(null,t),s=n.themeProvider.themeMatch(a),o=e.mergeAttributes(r,i,s);return new e(null,a,o)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return e.equals(this,t)}static equals(e,t){for(;;){if(e===t||!e&&!t)return!0;if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,r){let n=-1,i=0,a=0;return null!==r&&(n=r.fontStyle,i=r.foregroundId,a=r.backgroundId),D.set(e,t.languageId,t.tokenType,null,n,i,a)}pushAttributed(t,r){if(null===t)return this;if(-1===t.indexOf(" "))return e._pushAttributed(this,t,r);let n=t.split(/ /g),i=this;for(let t of n)i=e._pushAttributed(i,t,r);return i}static _pushAttributed(t,r,n){let i=n.getMetadataForScope(r),a=t.scopePath.push(r),s=n.themeProvider.themeMatch(a),o=e.mergeAttributes(t.tokenAttributes,i,s);return new e(t,a,o)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){let t=[],r=this;for(;r&&r!==e;)t.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(r.parent?.scopePath??null)}),r=r.parent;return r===e?t.reverse():void 0}},eN=class e{constructor(e,t,r,n,i,a,s,o){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=i,this.endRule=a,this.nameScopesList=s,this.contentNameScopesList=o,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=n}_stackElementBrand=void 0;static NULL=new e(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return null!==t&&e._equals(this,t)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&eC.equals(e.contentNameScopesList,t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t||!e&&!t)return!0;if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){e._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,r,n,i,a,s,o){return new e(this,t,r,n,i,a,s,o)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){let e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(t){return this.endRule===t?this:new e(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,r){let n=eC.fromExtension(t?.nameScopesList??null,r.nameScopesList);return new e(t,r.ruleId,r.enterPos??-1,r.anchorPos??-1,r.beginRuleCapturedEOL,r.endRule,n,eC.fromExtension(n,r.contentNameScopesList))}},ex=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(e=>"*"===e?(this.allowAny=!0,[]):G(e,eS).map(e=>e.matcher)),this.unbalancedBracketScopes=t.flatMap(e=>G(e,eS).map(e=>e.matcher))}get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!this.allowAny}match(e){for(let t of this.unbalancedBracketScopes)if(t(e))return!1;for(let t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},eL=class{constructor(e,t,r,n){this.balancedBracketSelectors=n,this._emitBinaryTokens=e,this._tokenTypeOverrides=r,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let r=e?.tokenAttributes??0,n=!1;if(this.balancedBracketSelectors?.matchesAlways&&(n=!0),this._tokenTypeOverrides.length>
10||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let t=e?.getScopeNames()??[];for(let e of this._tokenTypeOverrides)e.matcher(t)&&(r=D.set(r,0,e.type,null,-1,0,0));this.balancedBracketSelectors&&(n=this.balancedBracketSelectors.match(t))}if(n&&(r=D.set(r,0,8,n,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===r){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(r),this._lastTokenEndIndex=t;return}let r=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:r}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);let r=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)r[e]=this._binaryTokens[e];return r}},eT=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(let e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,r,n,i){if(!this._grammars.has(e)){let a=this._rawGrammars.get(e);if(!a)return null;this._grammars.set(e,new ev(e,a,t,r,n,i,this,this._onigLib))}return this._grammars.get(e)}},eP=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new eT(L.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(L.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,r){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:r})}loadGrammarWithConfiguration(e,t,r){return this._loadGrammar(e,t,r.embeddedLanguages,r.tokenTypes,new ex(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,r,n,i){let a=new q(this._syncRegistry,e);for(;a.Q.length>0;)a.Q.map(e=>this._loadSingleGrammar(e.scopeName)),a.processQueue();return this._grammarForScopeName(e,t,r,n,i)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){let t=this._options.loadGrammar(e);if(t){let r="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,r)}}addGrammar(e,t=[],r=0,n=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,r,n)}_grammarForScopeName(e,t=0,r=null,n=null,i=null){return this._syncRegistry.grammarForScopeName(e,t,r,n,i)}},eR=eN.NULL;function eE(e,t){let r="string"==typeof e?{}:{...e.colorReplacements},n="string"==typeof e?e:e.name;for(let[e,i]of Object.entries(t?.colorReplacements||{}))"string"==typeof i?r[e]=i:e===n&&Object.assign(r,i);return r}function eI(e,t){return e&&t?.[e?.toLowerCase()]||e}async function ej(e){return Promise.resolve("function"==typeof e?e():e).then(e=>e.default||e)}function eO(e){return!e||["plaintext","txt","text","plain"].includes(e)}function eM(e){return"ansi"===e||eO(e)}function eD(e){return"none"===e}let eG=/(\r?\n)/g;function eB(e,t=!1){if(0===e.length)return[["",0]];let r=e.split(eG),n=0,i=[];for(let e=0;e<r.length;e+=2){let a=t?r[e]+(r[e+1]||""):r[e];i.push([a,n]),n+=r[e].length,n+=r[e+1]?.length||0}return i}let e$="__shiki_resolved";function eU(e){if(e?.[e$])return e;let t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:r,fg:n}=t;if(!r||!n){let e=t.settings?t.settings.find(e=>!e.name&&!e.scope):void 0;e?.settings?.foreground&&(n=e.settings.foreground),e?.settings?.background&&(r=e.settings.background),!n&&t?.colors?.["editor.foreground"]&&(n=t.colors["editor.foreground"]),!r&&t?.colors?.["editor.background"]&&(r=t.colors["editor.background"]),n||(n="light"===t.type?"#333333":"#bbbbbb"),r||(r="light"===t.type?"#fffffe":"#1e1e1e"),t.fg=n,t.bg=r}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let i=0,a=new Map;function s(e){if(a.has(e))return a.get(e);i+=1;let r=`#${i.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${r}`]?s(e):(a.set(e,r),r)}for(let e of(t.settings=t.settings.map(e=>{let r=e.settings?.foreground&&!e.settings.foreground.startsWith("#"),n=e.settings?.background&&!e.settings.background.startsWith("#");if(!r&&!n)return e;let i={...e,settings:{...e.settings}};if(r){let r=s(e.settings.foreground);t.colorReplacements[r]=e.settings.foreground,i.settings.foreground=r}if(n){let r=s(e.settings.background);t.colorReplacements[r]=e.settings.background,i.settings.background=r}return i}),Object.keys(t.colors||{})))if(("editor.foreground"===e||"editor.background"===e||e.startsWith("terminal.ansi"))&&!t.colors[e]?.startsWith("#")){let r=s(t.colors[e]);t.colorReplacements[r]=t.colors[e],t.colors[e]=r}return Object.defineProperty(t,e$,{enumerable:!1,writable:!1,value:!0}),t}async function eF(e){return[...new Set((await Promise.all(e.filter(e=>!eM(e)).map(async e=>await ej(e).then(e=>Array.isArray(e)?e:[e])))).flat())]}async function eW(e){return(await Promise.all(e.map(async e=>eD(e)?null:eU(await ej(e))))).filter(e=>!!e)}function eH(e,t){if(!t)return e;if(t[e]){let r=new Set([e]);for(;t[e];){if(e=t[e],r.has(e))throw new _(`Circular alias \`${[...r].join(" -> ")} -> ${e}\``);r.add(e)}}return e}var eq=class extends eP{_resolver;_themes;_langs;_alias;_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;constructor(e,t,r,n={}){super(e),this._resolver=e,this._themes=t,this._langs=r,this._alias=n,this._themes.map(e=>this.loadTheme(e)),this.loadLanguages(this._langs)}getTheme(e){return"string"==typeof e?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let t=eU(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=L.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=eH(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;let t=new Set([...this._langMap.values()].filter(t=>t.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);let r={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let n=this.loadGrammarWithConfiguration(e.scopeName,1,r);if(n.name=e.name,this._resolvedGrammars.set(e.name,n),e.aliases&&e.aliases.forEac
1h(t=>{this._alias[t]=e.name}),this._loadedLanguagesCache=null,t.size)for(let e of t)this._resolvedGrammars.delete(e.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(e.scopeName),this._syncRegistry?._grammars?.delete(e.scopeName),this.loadLanguage(this._langMap.get(e.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(let t of e)this.resolveEmbeddedLanguages(t);let t=[...this._langGraph.entries()],r=t.filter(([e,t])=>!t);if(r.length){let e=t.filter(([e,t])=>!!t&&(t.embeddedLanguages||t.embeddedLangs)?.some(e=>r.map(([e])=>e).includes(e))).filter(e=>!r.includes(e));throw new _(`Missing languages ${r.map(([e])=>`\`${e}\``).join(", ")}, required by ${e.map(([e])=>`\`${e}\``).join(", ")}`)}for(let[e,r]of t)this._resolver.addLanguage(r);for(let[e,r]of t)this.loadLanguage(r)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);let t=e.embeddedLanguages??e.embeddedLangs;if(t)for(let e of t)this._langGraph.set(e,this._langMap.get(e))}},ez=class{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:t=>e.createScanner(t),createOnigString:t=>e.createString(t)},t.forEach(e=>this.addLanguage(e))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){let t=e.split("."),r=[];for(let e=1;e<=t.length;e++){let n=t.slice(0,e).join(".");r=[...r,...this._injections.get(n)||[]]}return r}};let eV=0;async function eX(e){e.engine||console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,r,n]=await Promise.all([eW(e.themes||[]),eF(e.langs||[]),e.engine]);return function(e){let t;eV+=1,!1!==e.warnings&&eV>=10&&eV%10==0&&console.warn(`[Shiki] ${eV} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let r=!1;if(!e.engine)throw new _("`engine` option is required for synchronous mode");let n=(e.langs||[]).flat(1),i=(e.themes||[]).flat(1).map(eU),a=new eq(new ez(e.engine,n),i,n,e.langAlias);function s(e){if("none"===e)return{bg:"",fg:"",name:"none",settings:[],type:"dark"};c();let t=a.getTheme(e);if(!t)throw new _(`Theme \`${e}\` not found, you may need to load it first`);return t}function o(...e){c(),a.loadLanguages(e.flat(1))}function l(...e){for(let t of(c(),e.flat(1)))a.loadTheme(t)}function c(){if(r)throw new _("Shiki instance has been disposed")}function u(){r||(r=!0,a.dispose(),eV-=1)}return{setTheme:function(e){c();let r=s(e);return t!==e&&(a.setTheme(r),t=e),{theme:r,colorMap:a.getColorMap()}},getTheme:s,getLanguage:function(e){c();let t=a.getGrammar("string"==typeof e?e:e.name);if(!t)throw new _(`Language \`${e}\` not found, you may need to load it first`);return t},getLoadedThemes:function(){return c(),a.getLoadedThemes()},getLoadedLanguages:function(){return c(),a.getLoadedLanguages()},resolveLangAlias:function(t){return eH(t,e.langAlias)},loadLanguage:async function(...e){return o(await eF(e))},loadLanguageSync:o,loadTheme:async function(...e){return c(),l(await eW(e))},loadThemeSync:l,dispose:u,[Symbol.dispose]:u}}({...e,themes:t,langs:r,engine:n})}let eJ=new WeakMap;function eQ(e,t){eJ.set(e,t)}function eY(e){return eJ.get(e)}var eK=class e{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,r){return new e(Object.fromEntries((Array.isArray(r)?r:[r]).map(e=>[e,eR])),t)}constructor(...e){if(2===e.length){const[t,r]=e;this.lang=r,this._stacks=t}else{const[t,r,n]=e;this.lang=r,this._stacks={[n]:t}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){var t;let r,n;return t=this._stacks[e],r=[],n=new Set,!function e(t){if(n.has(t))return;n.add(t);let i=t?.nameScopesList?.scopeName;i&&r.push(i),t.parent&&e(t.parent)}(t),r}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};let eZ=/,/,e0=/ /;function e1(e,t,r={}){var n,i;let a,s,{theme:o=e.getLoadedThemes()[0]}=r;if(eO(e.resolveLangAlias(r.lang||"text"))||eD(o))return eB(t).map(e=>[{content:e[0],offset:e[1]}]);let{theme:l,colorMap:c}=e.setTheme(o),u=e.getLanguage(r.lang||"text");if(r.grammarState){if(r.grammarState.lang!==u.name)throw new _(`Grammar state language "${r.grammarState.lang}" does not match highlight language "${u.name}"`);if(!r.grammarState.themes.includes(l.name))throw new _(`Grammar state themes "${r.grammarState.themes}" do not contain highlight theme "${l.name}"`)}return s=new eK((a=e2(t,n=u,i=l,c,r)).stateStack,n.name,i.name),eQ(a.tokens,s),a.tokens}function e2(e,t,r,n,i){let a=eE(r,i),{tokenizeMaxLineLength:s=0,tokenizeTimeLimit:o=500,includeExplanation:l=!1}=i,c=eB(e),u=i.grammarState?function(e,t){if(!(e instanceof eK))throw new _("Invalid grammar state");return e.getInternalStack(t)}(i.grammarState,r.name)??eR:null!=i.grammarContextCode?e2(i.grammarContextCode,t,r,n,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack:eR,h=[],d=[];for(let e=0,i=c.length;e<i;e++){let i,p,[m,g]=c[e];if(""===m){h=[],d.push([]);continue}if(s>0&&m.length>=s){h=[],d.push([{content:m,offset:g,color:"",fontStyle:0}]);continue}l&&"tokenType"!==l&&(i=t.tokenizeLine(m,u,o).tokens,p=0);let f=t.tokenizeLine2(m,u,o),y=f.tokens.length/2;for(let e=0;e<y;e++){let t=f.tokens[2*e],s=e+1<y?f.tokens[2*e+2]:m.length;if(t===s)continue;let o=f.tokens[2*e+1],c=eI(n[D.getForeground(o)],a),u=D.getFontStyle(o),d={content:m.substring(t,s),offset:g+t,color:c,fontStyle:u};if("tokenType"===l)d.type=D.getTokenType(o);else if(l){let e=[];
1if("scopeName"!==l)for(let t of r.settings){let r;switch(typeof t.scope){case"string":r=t.scope.split(eZ).map(e=>e.trim());break;case"object":r=t.scope;break;default:continue}e.push({settings:t,selectors:r.map(e=>e.split(e0))})}d.explanation=[];let n=0;for(;t+n<s;){let t=i[p],r=m.substring(t.startIndex,t.endIndex);n+=r.length,d.explanation.push({content:r,scopes:"scopeName"===l?t.scopes.map(e=>({scopeName:e})):function(e,t){let r=[];for(let n=0,i=t.length;n<i;n++){let i=t[n];r[n]={scopeName:i,themeMatches:function(e,t,r){let n=[];for(let{selectors:i,settings:a}of e)for(let e of i)if(function(e,t,r){if(!e8(e.at(-1),t))return!1;let n=e.length-2,i=r.length-1;for(;n>=0&&i>=0;)e8(e[n],r[i])&&(n-=1),i-=1;return -1===n}(e,t,r)){n.push(a);break}return n}(e,i,t.slice(0,n))}}return r}(e,t.scopes)}),p+=1}}h.push(d)}d.push(h),h=[],u=f.ruleStack}return{tokens:d,stateStack:u}}function e8(e,t){return e===t||t.substring(0,e.length)===e&&"."===t[e.length]}function e6(e,t,r,n=e1){let i=Object.entries(r.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})),a=i.map(i=>{let a=n(e,t,{...r,theme:i.theme});return{tokens:a,state:eY(a),theme:"string"==typeof i.theme?i.theme:i.theme.name}}),s=function(...e){let t=e.map(()=>[]),r=e.length;for(let n=0;n<e[0].length;n++){let i=e.map(e=>e[n]),a=t.map(()=>[]);t.forEach((e,t)=>e.push(a[t]));let s=i.map(()=>0),o=i.map(e=>e[0]);for(;o.every(e=>e);){let e=Math.min(...o.map(e=>e.content.length));for(let t=0;t<r;t++){let r=o[t];r.content.length===e?(a[t].push(r),s[t]+=1,o[t]=i[t][s[t]]):(a[t].push({...r,content:r.content.slice(0,e)}),o[t]={...r,content:r.content.slice(e),offset:r.offset+e})}}}return t}(...a.map(e=>e.tokens)),o=s[0].map((e,t)=>e.map((e,n)=>{let a={content:e.content,variants:{},offset:e.offset};return"includeExplanation"in r&&r.includeExplanation&&(a.explanation=e.explanation),s.forEach((e,r)=>{let{content:s,explanation:o,offset:l,...c}=e[t][n];a.variants[i[r].color]=c}),a})),l=a[0].state?new eK(Object.fromEntries(a.map(e=>[e.theme,e.state?.getInternalStack(e.theme)])),a[0].state.lang):void 0;return l&&eQ(o,l),o}var e5=e.i(600577),e3=e.i(913800),e4=e.i(79694);let e9=/["&'<>`]/g,e7=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,te=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,tt=/[|\\{}()[\]^$+*?.]/g,tr=new WeakMap,tn=/[\dA-Fa-f]/,ti=/\d/,ta=["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","
1sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],ts={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
1:"â",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:"â¬"},to=["cent","copy","divide","gt","lt","not","para","times"],tl={}.hasOwnProperty,tc={};for(t in ts)tl.call(ts,t)&&(tc[ts[t]]=t);let tu=/[^\dA-Za-z]/;function th(e,t,r){var n,i;let a,s,o=(n=r.omitOptionalSemicolons,a="&#x"+e.toString(16).toUpperCase(),n&&t&&!tn.test(String.fromCharCode(t))?a:a+";");if((r.useNamedReferences||r.useShortestReferences)&&(s=function(e,t,r,n){let i=String.fromCharCode(e);if(tl.call(tc,i)){let e=tc[i],a="&"+e;return r&&ta.includes(e)&&!to.includes(e)&&(!n||t&&61!==t&&tu.test(String.fromCharCode(t)))?a:a+";"}return""}(e,t,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!s)&&r.useShortestReferences){let n,a=(i=r.omitOptionalSemicolons,n="&#"+String(e),i&&t&&!ti.test(String.fromCharCode(t))?n:n+";");a.length<o.length&&(o=a)}return s&&(!r.useShortestReferences||s.length<o.length)?s:o}function td(e,t){let r;var n,i=e,a=Object.assign({format:th},t);if(i=i.replace(a.subset?(n=a.subset,(r=tr.get(n))||(r=function(e){let t=[],r=-1;for(;++r<e.length;)t.push(e[r].replace(tt,"\\$&"));return RegExp("(?:"+t.join("|")+")","g")}(n),tr.set(n,r)),r):e9,s),a.subset||a.escapeOnly)return i;return i.replace(e7,function(e,t,r){return a.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,r.charCodeAt(t+2),a)}).replace(te,s);function s(e,t,r){return a.format(e.charCodeAt(0),r.charCodeAt(t+1),a)}}let tp=/^>|^->|<!--|-->|--!>|<!-$/g,tm=[">"],tg=["<",">"];function tf(e,t){let r=String(e);if("string"!=typeof t)throw TypeError("Expected character");let n=0,i=r.indexOf(t);for(;-1!==i;)n++,i=r.indexOf(t,i+t.length);return n}var ty=e.i(816220),tb=e.i(873138),t_=e.i(722365),tA=e.i(158206);let tw=tk(1),tS=tk(-1),tv=[];function tk(e){return function(t,r,n){let i=t?t.children:tv,a=(r||0)+e,s=i[a];if(!n)for(;s&&(0,tA.whitespace)(s);)a+=e,s=i[a];return s}}let tC={}.hasOwnProperty;function tN(e){return function(t,r,n){return tC.call(e,t.tagName)&&e[t.tagName](t,r,n)}}let tx=tN({body:function(e,t,r){let n=tw(r,t);return!n||"comment"!==n.type},caption:tL,colgroup:tL,dd:function(e,t,r){let n=tw(r,t);return!n||"element"===n.type&&("dt"===n.tagName||"dd"===n.tagName)},dt:function(e,t,r){let n=tw(r,t);return!!(n&&"element"===n.type&&("dt"===n.tagName||"dd"===n.tagName))},head:tL,html:function(e,t,r){let n=tw(r,t);return!n||"comment"!==n.type},li:function(e,t,r){let n=tw(r,t);return!n||"element"===n.type&&"li"===n.tagName},optgroup:function(e,t,r){let n=tw(r,t);return!n||"element"===n.type&&"optgroup"===n.tagName},option:function(e,t,r){let n=tw(r,t);return!n||"element"===n.type&&("option"===n.tagName||"optgroup"===n.tagName)},p:function(e,t,r){let n=tw(r,t);return n?"element"===n.type&&("address"===n.tagName||"article"===n.tagName||"aside"===n.tagName||"blockquote"===n.tagName||"details"===n.tagName||"div"===n.tagName||"dl"===n.tagName||"fieldset"===n.tagName||"figcaption"===n.tagName||"figure"===n.tagName||"footer"===n.tagName||"form"===n.tagName||"h1"===n.tagName||"h2"===n.tagName||"h3"===n.tagName||"h4"===n.tagName||"h5"===n.tagName||"h6"===n.tagName||"header"===n.tagName||"hgroup"===n.tagName||"hr"===n.tagName||"main"===n.tagName||"menu"===n.tagName||"nav"===n.tagName||"ol"===n.tagName||"p"===n.tagName||"pre"===n.tagName||"section"===n.tagName||"table"===n.tagName||"ul"===n.tagName):!r||"element"!==r.type||"a"!==r.tagName&&"audio"!==r.tagName&&"del"!==r.tagName&&"ins"!==r.tagName&&"map"!==r.tagName&&"noscript"!==r.tagName&&"video"!==r.tagName},rp:tT,rt:tT,tbody:function(e,t,r){let n=tw(r,t);return!n||"element"===n.type&&("tbody"===n.tagName||"tfoot"===n.tagName)},td:tP,tfoot:function(e,t,r){return!tw(r,t)},th:tP,thead:function(e,t,r){let n=tw(r,t);return!!(n&&"element"===n.type&&("tbody"===n.tagName||"tfoot"===n.tagName))},tr:function(e,t,r){let n=tw(r,t);return!n||"element"===n.type&&"tr"===n.tagName}});function tL(e,t,r){let n=tw(r,t,!0);return!n||"comment"!==n.type&&!("text"===n.type&&(0,tA.whitespace)(n.value.charAt(0)))}function tT(e,t,r){let n=tw(r,t);return!n||"element"===n.type&&("rp"===n.tagName||"rt"===n.tagName)}function tP(e,t,r){let n=tw(r,t);return!n||"element"===n.type&&("td"===n.tagName||"th"===n.tagName)}let tR=tN({body:function(e){let t=tw(e,-1,!0);return!t||"comment"!==t.type&&!("text"===t.type&&(0,tA.whitespace)(t.value.charAt(0)))&&("element"!==t.type||"meta"!==t.tagName&&"link"!==t.tagName&&"script"!==t.tagName&&"style"!==t.tagName&&"template"!==t.tagName)},colgroup:function(e,t,r){let n=tS(r,t),i=tw(e,-1,!0);return!(r&&n&&"element"===n.type&&"colgroup"===n.tagName&&tx(n,r.children.indexOf(n),r))&&!!(i&&"element"===i.type&&"col"===i.tagName)},head:function(e){let t=new Set;for(let r of e.children)if("element"===r.type&&("base"===r.tagName||"title"===r.tagName)){if(t.has(r.tagName))return!1;t.add(r.tagName)}let r=e.children[0];return!r||"element"===r.type},html:function(e){let t=tw(e,-1);return!t||"comment"!==t.type},tbody:function(e,t,r){let n=tS(r,t),i=tw(e,-1);return!(r&&n&&"element"===n.type&&("thead"===n.tagName||"tbody"===n.tagName)&&tx(n,r.children.indexOf(n),r))&&!!(i&&"element"===i.type&&"tr"===i.tagName)}}),tE={name:[[" \n\f\r &/=>".split("")," \n\f\r \"&'/=>
1`".split("")],["\0 \n\f\r \"&'/<=>".split(""),"\0 \n\f\r \"&'/<=>`".split("")]],unquoted:[[" \n\f\r &>".split(""),"\0 \n\f\r \"&'<=>`".split("")],["\0 \n\f\r \"&'<=>`".split(""),"\0 \n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]},tI=["<","&"];function tj(e,t,r,n){return r&&"element"===r.type&&("script"===r.tagName||"style"===r.tagName)?e.value:td(e.value,Object.assign({},n.settings.characterReferences,{subset:tI}))}let tO=(0,e4.zwitch)("type",{invalid:function(e){throw Error("Expected node, not `"+e+"`")},unknown:function(e){throw Error("Cannot compile unknown node `"+e.type+"`")},handlers:{comment:function(e,t,r,n){return n.settings.bogusComments?"<?"+td(e.value,Object.assign({},n.settings.characterReferences,{subset:tm}))+">":"<!--"+e.value.replace(tp,function(e){return td(e,Object.assign({},n.settings.characterReferences,{subset:tg}))})+"-->"},doctype:function(e,t,r,n){return"<!"+(n.settings.upperDoctype?"DOCTYPE":"doctype")+(n.settings.tightDoctype?"":" ")+"html>"},element:function(e,t,r,n){let i,a=n.schema,s="svg"!==a.space&&n.settings.omitOptionalTags,o="svg"===a.space?n.settings.closeEmptyElements:n.settings.voids.includes(e.tagName.toLowerCase()),l=[];"html"===a.space&&"svg"===e.tagName&&(n.schema=e3.svg);let c=function(e,t){let r,n=[],i=-1;if(t){for(r in t)if(null!==t[r]&&void 0!==t[r]){let i=function(e,t,r){let n,i=(0,tb.find)(e.schema,t),a=e.settings.allowParseErrors&&"html"===e.schema.space?0:1,s=+!e.settings.allowDangerousCharacters,o=e.quote;if(i.overloadedBoolean&&(r===i.attribute||""===r)?r=!0:(i.boolean||i.overloadedBoolean)&&("string"!=typeof r||r===i.attribute||""===r)&&(r=!!r),null==r||!1===r||"number"==typeof r&&Number.isNaN(r))return"";let l=td(i.attribute,Object.assign({},e.settings.characterReferences,{subset:tE.name[a][s]}));return!0===r||(r=Array.isArray(r)?(i.commaSeparated?ty.stringify:t_.stringify)(r,{padLeft:!e.settings.tightCommaSeparatedLists}):String(r),e.settings.collapseEmptyAttributes&&!r)?l:(e.settings.preferUnquoted&&(n=td(r,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:tE.unquoted[a][s]}))),n!==r&&(e.settings.quoteSmart&&tf(r,o)>tf(r,e.alternative)&&(o=e.alternative),n=o+td(r,Object.assign({},e.settings.characterReferences,{subset:("'"===o?tE.single:tE.double)[a][s],attribute:!0}))+o),l+(n?"="+n:n))}(e,r,t[r]);i&&n.push(i)}}for(;++i<n.length;){let t=e.settings.tightAttributes?n[i].charAt(n[i].length-1):void 0;i!==n.length-1&&'"'!==t&&"'"!==t&&(n[i]+=" ")}return n.join("")}(n,e.properties),u=n.all("html"===a.space&&"template"===e.tagName?e.content:e);return n.schema=a,u&&(o=!1),!c&&s&&tR(e,t,r)||(l.push("<",e.tagName,c?" "+c:""),o&&("svg"===a.space||n.settings.closeSelfClosing)&&(i=c.charAt(c.length-1),(!n.settings.tightSelfClosing||"/"===i||i&&'"'!==i&&"'"!==i)&&l.push(" "),l.push("/")),l.push(">")),l.push(u),o||s&&tx(e,t,r)||l.push("</"+e.tagName+">"),l.join("")},raw:function(e,t,r,n){return n.settings.allowDangerousHtml?e.value:tj(e,t,r,n)},root:function(e,t,r,n){return n.all(e)},text:tj}}),tM={},tD={},tG=[];function tB(e,t,r){return tO(e,t,r,this)}function t$(e){let t=[],r=e&&e.children||tG,n=-1;for(;++n<r.length;)t[n]=this.one(r[n],n,e);return t.join("")}let tU=/\s+/g;function tF(e,t){if(!t)return e;for(let r of(e.properties||={},e.properties.class||=[],"string"==typeof e.properties.class&&(e.properties.class=e.properties.class.split(tU)),Array.isArray(e.properties.class)||(e.properties.class=[]),Array.isArray(t)?t:t.split(tU)))r&&!e.properties.class.includes(r)&&e.properties.class.push(r);return e}let tW=/:?lang=["']([^"']+)["']/g,tH=/(?:```|~~~)([\w-]+)/g,tq=/\\begin\{([\w-]+)\}/g,tz=/<script\s+(?:type|lang)=["']([^"']+)["']/gi;function tV(e,t,r){let n=new Set;for(let t of e.matchAll(tW)){let e=t[1].toLowerCase().trim();e&&n.add(e)}for(let t of e.matchAll(tH)){let e=t[1].toLowerCase().trim();e&&n.add(e)}for(let t of e.matchAll(tq)){let e=t[1].toLowerCase().trim();e&&n.add(e)}
1for(let t of e.matchAll(tz)){let e=t[1].toLowerCase().trim(),r=e.includes("/")?e.split("/").pop():e;r&&n.add(r)}if(!r)return[...n];let i=r.getBundledLanguages();return[...n].filter(e=>e&&i[e])}let tX=["color","background-color"];function tJ(e){let t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&E.Italic&&(t["font-style"]="italic"),e.fontStyle&E.Bold&&(t["font-weight"]="bold");let r=[];e.fontStyle&E.Underline&&r.push("underline"),e.fontStyle&E.Strikethrough&&r.push("line-through"),r.length&&(t["text-decoration"]=r.join(" "))}return t}function tQ(e){return"string"==typeof e?e:Object.entries(e).map(([e,t])=>`${e}:${t}`).join(";")}let tY=[function(){let e=new WeakMap;function t(t){if(!e.has(t.meta)){var r;let i,a={lines:i=eB(r=t.source,!0).map(([e])=>e),indexToPos:function(e){if(e===r.length)return{line:i.length-1,character:i.at(-1).length};let t=e,n=0;for(let e of i){if(t<e.length)break;t-=e.length,n++}return{line:n,character:t}},posToIndex:function(e,t){let r=0;for(let t=0;t<e;t++)r+=i[t].length;return r+t}};function n(e){if("number"==typeof e){if(e<0||e>t.source.length)throw new _(`Invalid decoration offset: ${e}. Code length: ${t.source.length}`);return{...a.indexToPos(e),offset:e}}{let t=a.lines[e.line];if(void 0===t)throw new _(`Invalid decoration position ${JSON.stringify(e)}. Lines length: ${a.lines.length}`);let r=e.character;if(r<0&&(r=t.length+r),r<0||r>t.length)throw new _(`Invalid decoration position ${JSON.stringify(e)}. Line ${e.line} length: ${t.length}`);return{...e,character:r,offset:a.posToIndex(e.line,r)}}}let s=(t.options.decorations||[]).map(e=>({...e,start:n(e.start),end:n(e.end)}));(function(e){for(let t=0;t<e.length;t++){let r=e[t];if(r.start.offset>r.end.offset)throw new _(`Invalid decoration range: ${JSON.stringify(r.start)} - ${JSON.stringify(r.end)}`);for(let n=t+1;n<e.length;n++){let t=e[n],i=r.start.offset<=t.start.offset&&t.start.offset<r.end.offset,a=r.start.offset<t.end.offset&&t.end.offset<=r.end.offset,s=t.start.offset<=r.start.offset&&r.start.offset<t.end.offset,o=t.start.offset<r.end.offset&&r.end.offset<=t.end.offset;if(i||a||s||o){if(i&&a||s&&o||s&&r.start.offset===r.end.offset||a&&t.start.offset===t.end.offset)continue;throw new _(`Decorations ${JSON.stringify(r.start)} and ${JSON.stringify(t.start)} intersect.`)}}}})(s),e.set(t.meta,{decorations:s,converter:a,source:t.source})}return e.get(t.meta)}return{name:"shiki:decorations",tokens(e){if(this.options.decorations?.length){var r;let n;return(n=[...(r=t(this).decorations.flatMap(e=>[e.start.offset,e.end.offset]))instanceof Set?r:new Set(r)].sort((e,t)=>e-t)).length?e.map(e=>e.flatMap(e=>{let t=n.filter(t=>e.offset<t&&t<e.offset+e.content.length).map(t=>t-e.offset).sort((e,t)=>e-t);if(!t.length)return e;let r=0,i=[];for(let n of t)n>r&&i.push({...e,content:e.content.slice(r,n),offset:e.offset+r}),r=n;return r<e.content.length&&i.push({...e,content:e.content.slice(r),offset:e.offset+r}),i})):e}},code(e){if(!this.options.decorations?.length)return;let r=t(this),n=[...e.children].filter(e=>"element"===e.type&&"span"===e.tagName);if(n.length!==r.converter.lines.length)throw new _(`Number of lines in code element (${n.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function i(e,t,r,i){let s=n[e],o="",l=-1,c=-1;if(0===t&&(l=0),0===r&&(c=0),r===1/0&&(c=s.children.length),-1===l||-1===c)for(let e=0;e<s.children.length;e++)o+=function e(t){return"text"===t.type?t.value:"element"===t.type?t.children.map(e).join(""):""}(s.children[e]),-1===l&&o.length===t&&(l=e+1),-1===c&&o.length===r&&(c=e+1);if(-1===l)throw new _(`Failed to find start index for decoration ${JSON.stringify(i.start)}`);if(-1===c)throw new _(`Failed to find end index for decoration ${JSON.stringify(i.end)}`);let u=s.children.slice(l,c);if(i.alwaysWrap||u.length!==s.children.length)if(i.alwaysWrap||1!==u.length||"element"!==u[0].type){let e={type:"element",tagName:"span",properties:{},children:u};a(e,i,"wrapper"),s.children.splice(l,u.length,e)}else a(u[0],i,"token");else a(s,i,"line")}function a(e,t,r){let n=t.properties||{},i=t.transform||(e=>e);return e.tagName=t.tagName||"span",e.properties={...e.properties,...n,class:e.properties.class},t.properties?.class&&tF(e,t.properties.class),e=i(e,r)||e}let s=[];for(let e of r.decorations.sort((e,t)=>
1t.start.offset-e.start.offset||e.end.offset-t.end.offset)){let{start:t,end:r}=e;if(t.line===r.line)i(t.line,t.character,r.character,e);else if(t.line<r.line){i(t.line,t.character,1/0,e);for(let i=t.line+1;i<r.line;i++)s.unshift(()=>{var t;n[t=i]=a(n[t],e,"line")});i(r.line,0,r.character,e)}}s.forEach(e=>e())}}}()];function tK(e){let t=function(e){let t=[],r=[],n=[];for(let i of e)switch(i.enforce){case"pre":t.push(i);break;case"post":r.push(i);break;default:n.push(i)}return{pre:t,post:r,normal:n}}(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...tY]}var tZ=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],t0={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function t1(e){let t=e.shift();if("2"===t){let t=e.splice(0,3).map(e=>Number.parseInt(e));if(3!==t.length||t.some(e=>Number.isNaN(e)))return;return{type:"rgb",rgb:t}}if("5"===t){let t=e.shift();if(t)return{type:"table",index:Number(t)}}}var t2={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"};let t8=/#([0-9a-f]{3,8})/i,t6=/var\((--[\w-]+-ansi-[\w-]+)\)/,t5={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function t3(e,t,r={}){let n=e.resolveLangAlias(r.lang||"text"),{theme:i=e.getLoadedThemes()[0]}=r;if(!eO(n)&&!eD(i)&&"ansi"===n){let n,a,s,o,l,c,u,{theme:h}=e.setTheme(i);return n=eE(h,r),a=eB(t),s=function(e=t2){let t;function r(e){return`#${e.map(e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0")).join("")}`}return{value:function(n){switch(n.type){case"named":return e[n.name];case"rgb":return r(n.rgb);case"table":var i;return i=n.index,function(){if(t)return t;t=[];for(let r=0;r<tZ.length;r++)t.push(e[tZ[r]]);let n=[0,95,135,175,215,255];for(let e=0;e<6;e++)for(let i=0;i<6;i++)for(let a=0;a<6;a++)t.push(r([n[e],n[i],n[a]]));let i=8;for(let e=0;e<24;e++,i+=10)t.push(r([i,i,i]));return t}()[i]}}}}(Object.fromEntries(tZ.map(e=>{let t=`terminal.ansi${e[0].toUpperCase()}${e.substring(1)}`;return[e,h.colors?.[t]||t5[e]]}))),o=null,l=null,c=new Set,u={parse(e){let t=[],r=0;do{let n=function(e,t){let r=e.indexOf("\x1b",t);if(-1!==r&&"["===e[r+1]){let t=e.indexOf("m",r);if(-1!==t)return{sequence:e.substring(r+2,t).split(";"),startPosition:r,position:t+1}}return{position:e.length}}(e,r),i=n.sequence?e.substring(r,n.startPosition):e.substring(r);if(i.length>0&&t.push({value:i,foreground:o,background:l,decorations:new Set(c)}),n.sequence){let e=function(e){let t=[];for(;e.length>0;){let r=e.shift();if(!r)continue;let n=Number.parseInt(r);if(!Number.isNaN(n))if(0===n)t.push({type:"resetAll"});else if(n<=9)t0[n]&&t.push({type:"setDecoration",value:t0[n]});else if(n<=29){let e=t0[n-20];e&&(t.push({type:"resetDecoration",value:e}),"dim"===e&&t.push({type:"resetDecoration",value:"bold"}))}else if(n<=37)t.push({type:"setForegroundColor",value:{type:"named",name:tZ[n-30]}});else if(38===n){let r=t1(e);r&&t.push({type:"setForegroundColor",value:r})}else if(39===n)t.push({type:"resetForegroundColor"});else if(n<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:tZ[n-40]}});else if(48===n){let r=t1(e);r&&t.push({type:"setBackgroundColor",value:r})}else 49===n?t.push({type:"resetBackgroundColor"}):53===n?t.push({type:"setDecoration",value:"overline"}):55===n?t.push({type:"resetDecoration",value:"overline"}):n>=90&&n<=97?t.push({type:"setForegroundColor",value:{type:"named",name:tZ[n-90+8]}}):n>=100&&n<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:tZ[n-100+8]}})}return t}(n.sequence);for(let t of e)"resetAll"===t.type?(o=null,l=null,c.clear()):"resetForegroundColor"===t.type?o=null:"resetBackgroun
1dColor"===t.type?l=null:"resetDecoration"===t.type&&c.delete(t.value);for(let t of e)"setForegroundColor"===t.type?o=t.value:"setBackgroundColor"===t.type?l=t.value:"setDecoration"===t.type&&c.add(t.value)}r=n.position}while(r<e.length)return t}},a.map(e=>u.parse(e[0]).map(t=>{let r,i;t.decorations.has("reverse")?(r=t.background?s.value(t.background):h.bg,i=t.foreground?s.value(t.foreground):h.fg):(r=t.foreground?s.value(t.foreground):h.fg,i=t.background?s.value(t.background):void 0),r=eI(r,n),i=eI(i,n),t.decorations.has("dim")&&(r=function(e){let t=e.match(t8);if(t){let e=t[1];if(8===e.length){let t=Math.round(Number.parseInt(e.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${e.slice(0,6)}${t}`}if(6===e.length)return`#${e}80`;if(4===e.length){let t=e[0],r=e[1],n=e[2],i=e[3];return`#${t}${t}${r}${r}${n}${n}${Math.round(Number.parseInt(`${i}${i}`,16)/2).toString(16).padStart(2,"0")}`}else if(3===e.length){let t=e[0],r=e[1],n=e[2];return`#${t}${t}${r}${r}${n}${n}80`}}let r=e.match(t6);return r?`var(${r[1]}-dim)`:e}(r));let a=E.None;return t.decorations.has("bold")&&(a|=E.Bold),t.decorations.has("italic")&&(a|=E.Italic),t.decorations.has("underline")&&(a|=E.Underline),t.decorations.has("strikethrough")&&(a|=E.Strikethrough),{content:t.value,offset:e[1],color:r,bgColor:i,fontStyle:a}}))}return e1(e,t,r)}function t4(e,t,r){let n,i,a,s,o,l;if("themes"in r){let{defaultColor:c="light",cssVariablePrefix:u="--shiki-",colorsRendering:h="css-vars"}=r,d=Object.entries(r.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})).sort((e,t)=>e.color===c?-1:+(t.color===c));if(0===d.length)throw new _("`themes` option must not be empty");let p=e6(e,t,r,t3);if(l=eY(p),c&&"light-dark()"!==c&&!d.some(e=>e.color===c))throw new _(`\`themes\` option must contain the defaultColor key \`${c}\``);let m=d.map(t=>e.getTheme(t.theme)),g=d.map(e=>e.color);a=p.map(e=>e.map(e=>(function(e,t,r,n,i="css-vars"){let a={content:e.content,explanation:e.explanation,offset:e.offset},s=t.map(t=>tJ(e.variants[t])),o=new Set(s.flatMap(e=>Object.keys(e))),l={},c=(e,n)=>{let i="color"===n?"":"background-color"===n?"-bg":`-${n}`;return r+t[e]+("color"===n?"":i)};return s.forEach((e,r)=>{for(let a of o){let o=e[a]||"inherit";if(0===r&&n&&tX.includes(a))if("light-dark()"===n&&s.length>1){let e=t.findIndex(e=>"light"===e),n=t.findIndex(e=>"dark"===e);if(-1===e||-1===n)throw new _('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');l[a]=`light-dark(${s[e][a]||"inherit"}, ${s[n][a]||"inherit"})`,"css-vars"===i&&(l[c(r,a)]=o)}else l[a]=o;else"css-vars"===i&&(l[c(r,a)]=o)}}),a.htmlStyle=l,a})(e,g,u,c,h))),l&&eQ(a,l);let f=d.map(e=>eE(e.theme,r));i=t9(d,m,f,u,c,"fg",h),n=t9(d,m,f,u,c,"bg",h),s=`shiki-themes ${m.map(e=>e.name).join(" ")}`,o=c?void 0:[i,n].join(";")}else if("theme"in r){let o=eE(r.theme,r);a=t3(e,t,r);let c=e.getTheme(r.theme);n=eI(c.bg,o),i=eI(c.fg,o),s=c.name,l=eY(a)}else throw new _("Invalid options, either `theme` or `themes` must be provided");return{tokens:a,fg:i,bg:n,themeName:s,rootStyle:o,grammarState:l}}function t9(e,t,r,n,i,a,s){return e.map((o,l)=>{let c=eI(t[l][a],r[l])||"inherit",u=`${n+o.color}${"bg"===a?"-bg":""}:${c}`;if(0===l&&i){if("light-dark()"===i&&e.length>1){let n=e.findIndex(e=>"light"===e.color),i=e.findIndex(e=>"dark"===e.color);if(-1===n||-1===i)throw new _('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${eI(t[n][a],r[n])||"inherit"}, ${eI(t[i][a],r[i])||"inherit"});${u}`}return c}return"css-vars"===s?u:null}).filter(e=>!!e).join(";")}let t7=/^\s+$/,re=/^(\s*)(.*?)(\s*)$/;function rt(e,t,r,n={meta:{},options:r,codeToHast:(t,r)=>rt(e,t,r),codeToTokens:(t,r)=>t4(e,t,r)}){let i=t;for(let e of tK(r))i=e.preprocess?.call(n,i,r)||i;let{tokens:a,fg:s,bg:o,themeName:l,rootStyle:c,grammarState:u}=t4(e,i,r),{mergeWhitespaces:h=!0,mergeSameStyleTokens:d=!1}=r;!0===h?a=a.map(e=>{let t,r=[],n="";return e.forEach((i,a)=>{let s=!(i.fontStyle&&(i.fontStyle&E.Underline||i.fontStyle&E.Strikethrough));s&&t7.test(i.content)&&e[a+1]?(void 0===t&&(t=i.offset),n+=i.content):n?(s?r.push({...i,offset:t,content:n+i.content}):r.push({content:n,offset:t},i),t=void 0,n=""):r.push(i)}),r}):"never"===h&&(a=a.map(e=>e.flatMap(e=>{if(t7.test(e.content))return e;let t=e.content.match(re);if(!t)return e;let[,r,n,i]=t;if(!r&&!i)return e;let a=[{...e,offset:e.offset+r.length,content:n}];return r&&a.unshift({content:r,offset:e.offset}),i&&a.push({content:i,offset:e.offset+r.length+n.length}),a}))),d&&(a=a.map(e=>{let t=[];for(let r of e){if(0===t.length){t.push({...r});continue}
1let e=t.at(-1),n=tQ(e.htmlStyle||tJ(e)),i=tQ(r.htmlStyle||tJ(r)),a=e.fontStyle&&(e.fontStyle&E.Underline||e.fontStyle&E.Strikethrough),s=r.fontStyle&&(r.fontStyle&E.Underline||r.fontStyle&E.Strikethrough);a||s||n!==i?t.push({...r}):e.content+=r.content}return t}));let p={...n,get source(){return i}};for(let e of tK(r))a=e.tokens?.call(p,a)||a;return function(e,t,r,n=eY(e)){let i=tK(t),a=[],s={type:"root",children:[]},{structure:o="classic",tabindex:l="0"}=t,c={class:`shiki ${t.themeName||""}`};for(let[e,r]of(!1!==t.rootStyle&&(null!=t.rootStyle?c.style=t.rootStyle:c.style=`background-color:${t.bg};color:${t.fg}`),!1!==l&&null!=l&&(c.tabindex=l.toString()),Object.entries(t.meta||{})))e.startsWith("_")||(c[e]=r);let u={type:"element",tagName:"pre",properties:c,children:[],data:t.data},h={type:"element",tagName:"code",properties:{},children:a},d=[],p={...r,structure:o,addClassToHast:tF,get source(){return r.source},get tokens(){return e},get options(){return t},get root(){return s},get pre(){return u},get code(){return h},get lines(){return d}};if(e.forEach((e,t)=>{t&&("inline"===o?s.children.push({type:"element",tagName:"br",properties:{},children:[]}):"classic"===o&&a.push({type:"text",value:"\n"}));let r={type:"element",tagName:"span",properties:{class:"line"},children:[]},n=0;for(let a of e){let e={type:"element",tagName:"span",properties:{...a.htmlAttrs},children:[{type:"text",value:a.content}]},l=tQ(a.htmlStyle||tJ(a));for(let s of(l&&(e.properties.style=l),i))e=s?.span?.call(p,e,t+1,n,r,a)||e;"inline"===o?s.children.push(e):"classic"===o&&r.children.push(e),n+=a.content.length}if("classic"===o){for(let e of i)r=e?.line?.call(p,r,t+1)||r;d.push(r),a.push(r)}else"inline"===o&&d.push(r)}),"classic"===o){for(let e of i)h=e?.code?.call(p,h)||h;for(let e of(u.children.push(h),i))u=e?.pre?.call(p,u)||u;s.children.push(u)}else if("inline"===o){let e=[],t={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(let r of s.children)"element"===r.type&&"br"===r.tagName?(e.push(t),t={type:"element",tagName:"span",properties:{class:"line"},children:[]}):("element"===r.type||"text"===r.type)&&t.children.push(r);e.push(t);let r={type:"element",tagName:"code",properties:{},children:e};for(let e of i)r=e?.code?.call(p,r)||r;s.children=[];for(let e=0;e<r.children.length;e++){e>0&&s.children.push({type:"element",tagName:"br",properties:{},children:[]});let t=r.children[e];"element"===t.type&&s.children.push(...t.children)}}let m=s;for(let e of i)m=e?.root?.call(p,m)||m;return n&&eQ(m,n),m}(a,{...r,fg:s,bg:o,themeName:l,rootStyle:!1!==r.rootStyle&&(r.rootStyle??c)},p,u)}let rr=function(e,t){let r=t||tM,n=r.quote||'"';if('"'!==n&&"'"!==n)throw Error("Invalid quote `"+n+"`, expected `'` or `\"`");return({one:tB,all:t$,settings:{omitOptionalTags:r.omitOptionalTags||!1,allowParseErrors:r.allowParseErrors||!1,allowDangerousCharacters:r.allowDangerousCharacters||!1,quoteSmart:r.quoteSmart||!1,preferUnquoted:r.preferUnquoted||!1,tightAttributes:r.tightAttributes||!1,upperDoctype:r.upperDoctype||!1,tightDoctype:r.tightDoctype||!1,bogusComments:r.bogusComments||!1,tightCommaSeparatedLists:r.tightCommaSeparatedLists||!1,tightSelfClosing:r.tightSelfClosing||!1,collapseEmptyAttributes:r.collapseEmptyAttributes||!1,allowDangerousHtml:r.allowDangerousHtml||!1,voids:r.voids||e5.htmlVoidElements,characterReferences:r.characterReferences||tD,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:"svg"===r.space?e3.svg:e3.html,quote:n,alternative:'"'===n?"'":'"'}).one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)};async function rn(e){let t=await eX(e);return{getLastGrammarState:(...e)=>(function(...e){if(2===e.length)return eY(e[1]);let[t,r,n={}]=e,{lang:i="text",theme:a=t.getLoadedThemes()[0]}=n;if(eO(i)||eD(a))throw new _("Plain language does not have grammar state");if("ansi"===i)throw new _("ANSI language does not have grammar state");let{theme:s,colorMap:o}=t.setTheme(a),l=t.getLanguage(i);return new eK(e2(r,l,s,o,n).stateStack,l.name,s.name)})(t,...e),codeToTokensBase:(e,r)=>t3(t,e,r),codeToTokensWithThemes:(e,r)=>e6(t,e,r),codeToTokens:(e,r)=>t4(t,e,r),codeToHast:(e,r)=>rt(t,e,r),codeToHtml:(e,r)=>(function(e,t,r){let n={meta:{},options:r,codeToHast:(t,r)=>rt(e,t,r),codeToTokens:(t,r)=>t4(e,t,r)},i=rr(rt(e,t,r,n));for(let e of tK(r))i=e.postprocess?.call(n,i,r)||i;return i})(t,e,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}e.i(216920);var ri=e.i(7284);
1let ra=e=>{let t=(0,m.useRef)(e);return e===t.current||b(e,t.current)||(t.current=e),t.current},rs="plaintext",ro=e=>null==e?[]:Array.isArray(e)?e:[e],rl=e=>null==e?null:"string"==typeof e?`s:${e}`:`o:${e.name}::${e.scopeName}`,rc=e=>{let t=new Set,r=[];for(let n of e){let e=rl(n);null==e||t.has(e)||(t.add(e),r.push(n))}return r},ru={light:"github-light",dark:"github-dark"},rh=e=>{if("object"!=typeof e||null===e)return!1;let t=Array.isArray(e.tokenColors)||Array.isArray(e.settings),r="string"==typeof e.name||"string"==typeof e.type;return t&&r};async function rd(e,t,r,n){let i,{languageId:a,langsToLoad:s,themesToLoad:o,shikiOptions:l}=t,c=r.highlighter??await (async()=>{let t,i=await n(s,o,r.engine);return await i.loadLanguage(...(t=i.getBundledLanguages(),tV(e,a).flatMap(e=>t[e]??[]))),i})(),u=(i=c.getLoadedLanguages(),eM(a)||i.includes(a)?a:rs),d={...l,lang:u};return"html"===r.outputFormat?c.codeToHtml(e,d):(0,g.toJsxRuntime)(c.codeToHast(e,d),{jsx:h.jsx,jsxs:h.jsxs,Fragment:h.Fragment})}let rp=[{id:"abap",name:"ABAP",import:()=>e.A(961420)},{id:"actionscript-3",name:"ActionScript",import:()=>e.A(806262)},{id:"ada",name:"Ada",import:()=>e.A(744322)},{id:"angular-html",name:"Angular HTML",import:()=>e.A(464225)},{id:"angular-ts",name:"Angular TypeScript",import:()=>e.A(539975)},{id:"apache",name:"Apache Conf",import:()=>e.A(772320)},{id:"apex",name:"Apex",import:()=>e.A(768462)},{id:"apl",name:"APL",import:()=>e.A(147665)},{id:"applescript",name:"AppleScript",import:()=>e.A(479086)},{id:"ara",name:"Ara",import:()=>e.A(906200)},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>e.A(816773)},{id:"asm",name:"Assembly",import:()=>e.A(821842)},{id:"astro",name:"Astro",import:()=>e.A(187789)},{id:"awk",name:"AWK",import:()=>e.A(320985)},{id:"ballerina",name:"Ballerina",import:()=>e.A(469963)},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>e.A(84021)},{id:"beancount",name:"Beancount",import:()=>e.A(33963)},{id:"berry",name:"Berry",aliases:["be"],import:()=>e.A(366469)},{id:"bibtex",name:"BibTeX",import:()=>e.A(429994)},{id:"bicep",name:"Bicep",import:()=>e.A(248815)},{id:"bird2",name:"BIRD2 Configuration",aliases:["bird"],import:()=>e.A(278598)},{id:"blade",name:"Blade",import:()=>e.A(134449)},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>e.A(806203)},{id:"c",name:"C",import:()=>e.A(364026)},{id:"c3",name:"C3",import:()=>e.A(783941)},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>e.A(842182)},{id:"cairo",name:"Cairo",import:()=>e.A(193577)},{id:"clarity",name:"Clarity",import:()=>e.A(806296)},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>e.A(373095)},{id:"cmake",name:"CMake",import:()=>e.A(769367)},{id:"cobol",name:"COBOL",import:()=>e.A(369228)},{id:"codeowners",name:"CODEOWNERS",import:()=>e.A(968782)},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>e.A(612745)},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>e.A(551582)},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>e.A(19064)},{id:"coq",name:"Coq",import:()=>e.A(712684)},{id:"cpp",name:"C++",aliases:["c++"],import:()=>e.A(857390)},{id:"crystal",name:"Crystal",import:()=>e.A(181463)},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>e.A(26694)},{id:"css",name:"CSS",import:()=>e.A(952377)},{id:"csv",name:"CSV",import:()=>e.A(460900)},{id:"cue",name:"CUE",import:()=>e.A(797847)},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>e.A(368607)},{id:"d",name:"D",import:()=>e.A(278233)},{id:"dart",name:"Dart",import:()=>e.A(771374)},{id:"dax",name:"DAX",import:()=>e.A(628172)},{id:"desktop",name:"Desktop",import:()=>e.A(827667)},{id:"diff",name:"Diff",import:()=>e.A(127780)},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>e.A(452196)},{id:"dotenv",name:"dotEnv",import:()=>e.A(793152)},{id:"dream-maker",name:"Dream Maker",import:()=>e.A(368864)},{id:"edge",name:"Edge",import:()=>e.A(861702)},{id:"elixir",name:"Elixir",import:()=>e.A(499810)},{id:"elm",name:"Elm",import:()=>e.A(616375)},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>e.A(379289)},{id:"erb",name:"ERB",import:()=>e.A(915795)},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>e.A(973265)},{id:"fennel",name:"Fennel",import:()=>e.A(112784)},{id:"fish",name:"Fish",import:()=>e.A(419634)},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>e.A(866928)},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>e.A(949520)},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>e.A(57150)},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>e.A(682243)}
1,{id:"gdresource",name:"GDResource",aliases:["tscn","tres"],import:()=>e.A(85822)},{id:"gdscript",name:"GDScript",aliases:["gd"],import:()=>e.A(578668)},{id:"gdshader",name:"GDShader",import:()=>e.A(400878)},{id:"genie",name:"Genie",import:()=>e.A(168155)},{id:"gherkin",name:"Gherkin",import:()=>e.A(509887)},{id:"git-commit",name:"Git Commit Message",import:()=>e.A(944376)},{id:"git-rebase",name:"Git Rebase Message",import:()=>e.A(519057)},{id:"gleam",name:"Gleam",import:()=>e.A(809831)},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>e.A(214448)},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>e.A(400535)},{id:"glsl",name:"GLSL",import:()=>e.A(155978)},{id:"gn",name:"GN",import:()=>e.A(640004)},{id:"gnuplot",name:"Gnuplot",import:()=>e.A(90403)},{id:"go",name:"Go",import:()=>e.A(563101)},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>e.A(509909)},{id:"groovy",name:"Groovy",import:()=>e.A(826344)},{id:"hack",name:"Hack",import:()=>e.A(572262)},{id:"haml",name:"Ruby Haml",import:()=>e.A(246678)},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>e.A(613071)},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>e.A(319538)},{id:"haxe",name:"Haxe",import:()=>e.A(320292)},{id:"hcl",name:"HashiCorp HCL",import:()=>e.A(343456)},{id:"hjson",name:"Hjson",import:()=>e.A(918090)},{id:"hlsl",name:"HLSL",import:()=>e.A(357814)},{id:"html",name:"HTML",import:()=>e.A(725835)},{id:"html-derivative",name:"HTML (Derivative)",import:()=>e.A(568382)},{id:"http",name:"HTTP",import:()=>e.A(184320)},{id:"hurl",name:"Hurl",import:()=>e.A(820181)},{id:"hxml",name:"HXML",import:()=>e.A(874213)},{id:"hy",name:"Hy",import:()=>e.A(899332)},{id:"imba",name:"Imba",import:()=>e.A(445985)},{id:"ini",name:"INI",aliases:["properties"],import:()=>e.A(131263)},{id:"java",name:"Java",import:()=>e.A(742936)},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:()=>e.A(119796)},{id:"jinja",name:"Jinja",import:()=>e.A(966241)},{id:"jison",name:"Jison",import:()=>e.A(156447)},{id:"json",name:"JSON",import:()=>e.A(835638)},{id:"json5",name:"JSON5",import:()=>e.A(89330)},{id:"jsonc",name:"JSON with Comments",import:()=>e.A(53068)},{id:"jsonl",name:"JSON Lines",import:()=>e.A(323619)},{id:"jsonnet",name:"Jsonnet",import:()=>e.A(226807)},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>e.A(959115)},{id:"jsx",name:"JSX",import:()=>e.A(478223)},{id:"julia",name:"Julia",aliases:["jl"],import:()=>e.A(556654)},{id:"just",name:"Just",import:()=>e.A(762413)},{id:"kdl",name:"KDL",import:()=>e.A(346277)},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>e.A(716681)},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>e.A(316447)},{id:"latex",name:"LaTeX",import:()=>e.A(691191)},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>e.A(780784)},{id:"less",name:"Less",import:()=>e.A(304131)},{id:"liquid",name:"Liquid",import:()=>e.A(904827)},{id:"llvm",name:"LLVM IR",import:()=>e.A(764542)},{id:"log",name:"Log file",import:()=>e.A(751807)},{id:"logo",name:"Logo",import:()=>e.A(643058)},{id:"lua",name:"Lua",import:()=>e.A(566143)},{id:"luau",name:"Luau",import:()=>e.A(763588)},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>e.A(498121)},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>e.A(159960)},{id:"marko",name:"Marko",import:()=>e.A(701429)},{id:"matlab",name:"MATLAB",import:()=>e.A(850902)},{id:"mdc",name:"MDC",import:()=>e.A(492722)},{id:"mdx",name:"MDX",import:()=>e.A(915259)},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>e.A(619120)},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>e.A(220279)},{id:"mojo",name:"Mojo",import:()=>e.A(256102)},{id:"moonbit",name:"MoonBit",aliases:["mbt","mbti"],import:()=>e.A(521492)},{id:"move",name:"Move",import:()=>e.A(516703)},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>e.A(205732)},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>e.A(271303)},{id:"nextflow-groovy",name:"Nextflow Groovy",import:()=>e.A(365966)},{id:"nginx",name:"Nginx",import:()=>e.A(226156)},{id:"nim",name:"Nim",import:()=>e.A(830063)},{id:"nix",name:"Nix",import:()=>e.A(149040)},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>e.A(662626)},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>e.A(896991)},{id:"objective-cpp",name:"Objective-C++",import:()=>e.A(230751)},{id:"ocaml",name:"OCaml",import:()=>e.A(660109)},{id:"odin",name:"Odin",import:()=>e.A(41409)},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:()=>e.A(347008)},{id:"pascal",name:"Pascal",import:()=>e.A(300046)},{id:"perl",name:"Perl",import:()=>e.A(63034)},{id:"php",name:"PHP",import:()=>e.A(108614)},{id:"pkl",name:"Pkl",import:()=>e.A(346199)},{id:"plsql",name:"PL/SQL",import:()=>e.A(640127)},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>e.A(207567)},{id:"polar",name:"Polar",import:()=>e.A(843151)},{id:"postcss",name:"PostCSS",import:()=>e.A(308156)},{id:"powerquery",name:"PowerQuery",import:()=>e.A(193127)},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>e.A(826309)},{id:"prisma",name:"Prisma",import:()=>e.A(182692)},{id:"prolog",name:"Prolog",import:()=>e.A(387548)},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>e.A(345300)},{id:"pug",name:"Pug",aliases:["jade"],import:()=>e.A(143454)},{id:"puppet",name:"Puppet",import:()=>e.A(838783)},{id:"purescript",name:"PureScript",import:()=>e.A(8208)},{id:"python",name:"Python",aliases:["py"],import:()=>e.A(313432)},{id:"qml",name:"QML",import:()=>e.A(40752)},{id:"qmldir",name:"QML Directory",import:()=>e.A(933515)},{id:"qss",name:"Qt Style Sheets",import:()=>e.A(372773)},{id:"r",name:"R",import:()=>e.A(147634)},{id:"racket",name:"Racket",import:()=>e.A(314483)},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>e.A(583828)},{id:"razor",name:"ASP.NET Razor",import:()=>e.A(77483)},{id:"reg",name:"Windows Registry Script",import:()=>e.A(195464)},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>e.A(399747)},{id:"rel",name:"Rel",import:()=>e.A(514781)},{id:"riscv",name:"RISC-V",import:()=>e.A(972595)},{id:"ron",name:"RON",import:()=>e.A(35130)},{id:"rosmsg",name:"ROS Interface",import:()=>e.A(362607)}
1,{id:"rst",name:"reStructuredText",import:()=>e.A(679287)},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>e.A(894877)},{id:"rust",name:"Rust",aliases:["rs"],import:()=>e.A(738691)},{id:"sas",name:"SAS",import:()=>e.A(790226)},{id:"sass",name:"Sass",import:()=>e.A(6115)},{id:"scala",name:"Scala",import:()=>e.A(637755)},{id:"scheme",name:"Scheme",import:()=>e.A(524147)},{id:"scss",name:"SCSS",import:()=>e.A(183808)},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>e.A(999013)},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>e.A(884171)},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>e.A(455628)},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>e.A(276033)},{id:"smalltalk",name:"Smalltalk",import:()=>e.A(749389)},{id:"solidity",name:"Solidity",import:()=>e.A(518430)},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>e.A(236211)},{id:"sparql",name:"SPARQL",import:()=>e.A(602237)},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>e.A(294130)},{id:"sql",name:"SQL",import:()=>e.A(911243)},{id:"ssh-config",name:"SSH Config",import:()=>e.A(347123)},{id:"stata",name:"Stata",import:()=>e.A(373999)},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>e.A(123160)},{id:"surrealql",name:"SurrealQL",aliases:["surql"],import:()=>e.A(544793)},{id:"svelte",name:"Svelte",import:()=>e.A(225822)},{id:"swift",name:"Swift",import:()=>e.A(324931)},{id:"system-verilog",name:"SystemVerilog",import:()=>e.A(817011)},{id:"systemd",name:"Systemd Units",import:()=>e.A(872493)},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>e.A(107211)},{id:"tasl",name:"Tasl",import:()=>e.A(960111)},{id:"tcl",name:"Tcl",import:()=>e.A(809649)},{id:"templ",name:"Templ",import:()=>e.A(753559)},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>e.A(317658)}
1,{id:"tex",name:"TeX",import:()=>e.A(178096)},{id:"toml",name:"TOML",import:()=>e.A(224559)},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>e.A(608073)},{id:"tsv",name:"TSV",import:()=>e.A(653501)},{id:"tsx",name:"TSX",import:()=>e.A(760148)},{id:"turtle",name:"Turtle",import:()=>e.A(104174)},{id:"twig",name:"Twig",import:()=>e.A(978939)},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:()=>e.A(91323)},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>e.A(251941)},{id:"typst",name:"Typst",aliases:["typ"],import:()=>e.A(671342)},{id:"v",name:"V",import:()=>e.A(869288)},{id:"vala",name:"Vala",import:()=>e.A(512590)},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>e.A(583762)},{id:"verilog",name:"Verilog",import:()=>e.A(761622)},{id:"vhdl",name:"VHDL",import:()=>e.A(88665)},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>e.A(687953)},{id:"vue",name:"Vue",import:()=>e.A(366122)},{id:"vue-html",name:"Vue HTML",import:()=>e.A(526326)},{id:"vue-vine",name:"Vue Vine",import:()=>e.A(582534)},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>e.A(301359)},{id:"wasm",name:"WebAssembly",import:()=>e.A(123509)},{id:"wenyan",name:"Wenyan",aliases:["æè¨"],import:()=>e.A(790551)},{id:"wgsl",name:"WGSL",import:()=>e.A(645999)},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>e.A(84258)},{id:"wit",name:"WebAssembly Interface Types",import:()=>e.A(572203)},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>e.A(740617)},{id:"xml",name:"XML",import:()=>e.A(409255)},{id:"xsl",name:"XSL",import:()=>e.A(873366)},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>e.A(161150)},{id:"zenscript",name:"ZenScript",import:()=>e.A(21004)},{id:"zig",name:"Zig",import:()=>e.A(983740)}],rm=Object.fromEntries(rp.map(e=>[e.id,e.import])),rg=Object.fromEntries(rp.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),rf={...rm,...rg};var ry=Object.defineProperty,rb=Object.getOwnPropertyDescriptor,r_=Object.getOwnPropertyNames,rA=Object.prototype.hasOwnProperty,rw=e.i(52633),rS=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function rv(){return"u">typeof performance?performance.now():Date.now()}let rk=(e,t)=>e+(t-e%t)%t;async function rC(e){let t,r,n={};function i(e){r=e,n.HEAPU8=new Uint8Array(e),n.HEAPU32=new Uint32Array(e)}let a="u">typeof TextDecoder?new TextDecoder("utf8"):void 0;function s(e,t){return e?function(e,t,r=1024){let n=t+r,i=t;for(;e[i]&&!(i>=n);)++i;if(i-t>16&&e.buffer&&a)return a.decode(e.subarray(t,i));let s="";for(;t<i;){let r=e[t++];if(!(128&r)){s+=String.fromCharCode(r);continue}let n=63&e[t++];if((224&r)==192){s+=String.fromCharCode((31&r)<<6|n);continue}let i=63&e[t++];if((r=(240&r)==224?(15&r)<<12|n<<6|i:(7&r)<<18|n<<12|i<<6|63&e[t++])<65536)s+=String.fromCharCode(r);else{let e=r-65536;s+=String.fromCharCode(55296|e>>10,56320|1023&e)}}return s}(n.HEAPU8,e,t):""}let o={emscripten_get_now:rv,emscripten_memcpy_big:function(e,t,r){n.HEAPU8.copyWithin(e,t,t+r)},emscripten_resize_heap:function(e){let a=n.HEAPU8.length;if((e>>>=0)>0x80000000)return!1;for(let n=1;n<=4;n*=2){let s=a*(1+.2/n);if(s=Math.min(s,e+0x6000000),function(e){try{return t.grow(e-r.byteLength+65535>>>16),i(t.buffer),1}catch{}}(Math.min(0x80000000,rk(Math.max(e,s),65536))))return!0}return!1},fd_write:()=>0};async function l(){let r=await e({env:o,wasi_snapshot_preview1:o});i((t=r.memory).buffer),Object.assign(n,r),n.UTF8ToString=s}return await l(),n}var rN=Object.defineProperty,rx=(e,t,r)=>{let n;return(n="symbol"!=typeof t?t+"":t)in e?rN(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r};let rL=null;class rT{constructor(e){rx(this,"utf16Length"),rx(this,"utf8Length"),rx(this,"utf16Value"),rx(this,"utf8Value"),rx(this,"utf16OffsetToUtf8"),rx(this,"utf8OffsetToUtf16");const t=e.length,r=rT._utf8ByteLength(e),n=r!==t,i=n?new Uint32Array(t+1):null;n&&(i[t]=r);const a=n?new Uint32Array(r+1):null;n&&(a[r]=t);const s=new Uint8Array(r);let o=0;for(let r=0;r<t;r++){const l=e.charCodeAt(r);let c=l,u=!1;if(l>=55296&&l<=56319&&r+1<t){const t=e.charCodeAt(r+1);t>=56320&&t<=57343&&(c=(l-55296<<10)+65536|t-56320,u=!0)}n&&(i[r]=o,u&&(i[r+1]=o),c<=127?a[o+0]=r:c<=2047?(a[o+0]=r,a[o+1]=r):c<=65535?(a[o+0]=r,a[o+1]=r,a[o+2]=r):(a[o+0]=r,a[o+1]=r,a[o+2]=r,a[o+3]=r)),c<=127?
1s[o++]=c:(c<=2047?s[o++]=192|(1984&c)>>>6:(c<=65535?s[o++]=224|(61440&c)>>>12:(s[o++]=240|(1835008&c)>>>18,s[o++]=128|(258048&c)>>>12),s[o++]=128|(4032&c)>>>6),s[o++]=128|(63&c)>>>0),u&&r++}this.utf16Length=t,this.utf8Length=r,this.utf16Value=e,this.utf8Value=s,this.utf16OffsetToUtf8=i,this.utf8OffsetToUtf16=a}static _utf8ByteLength(e){let t=0;for(let r=0,n=e.length;r<n;r++){let i=e.charCodeAt(r),a=i,s=!1;if(i>=55296&&i<=56319&&r+1<n){let t=e.charCodeAt(r+1);t>=56320&&t<=57343&&(a=(i-55296<<10)+65536|t-56320,s=!0)}a<=127?t+=1:a<=2047?t+=2:a<=65535?t+=3:t+=4,s&&r++}return t}createString(e){let t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}let rP=class e{constructor(t){if(rx(this,"id",++e.LAST_ID),rx(this,"_onigBinding"),rx(this,"content"),rx(this,"utf16Length"),rx(this,"utf8Length"),rx(this,"utf16OffsetToUtf8"),rx(this,"utf8OffsetToUtf16"),rx(this,"ptr"),!rL)throw new rS("Must invoke loadWasm first.");this._onigBinding=rL,this.content=t;const r=new rT(t);this.utf16Length=r.utf16Length,this.utf8Length=r.utf8Length,this.utf16OffsetToUtf8=r.utf16OffsetToUtf8,this.utf8OffsetToUtf16=r.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||(e._sharedPtr=rL.omalloc(1e4)),e._sharedPtrInUse=!0,rL.HEAPU8.set(r.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=r.createString(rL)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===e._sharedPtr?e._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};rx(rP,"LAST_ID",0),rx(rP,"_sharedPtr",0),rx(rP,"_sharedPtrInUse",!1);class rR{constructor(e){if(rx(this,"_onigBinding"),rx(this,"_ptr"),!rL)throw new rS("Must invoke loadWasm first.");const t=[],r=[];for(let n=0,i=e.length;n<i;n++){const i=new rT(e[n]);t[n]=i.createString(rL),r[n]=i.utf8Length}const n=rL.omalloc(4*e.length);rL.HEAPU32.set(t,n/4);const i=rL.omalloc(4*e.length);rL.HEAPU32.set(r,i/4);const a=rL.createOnigScanner(n,i,e.length);for(let r=0,n=e.length;r<n;r++)rL.ofree(t[r]);rL.ofree(i),rL.ofree(n),0===a&&function(e){throw new rS(e.UTF8ToString(e.getLastO
1nigError()))}(rL),this._onigBinding=rL,this._ptr=a}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,r){let n=0;if("number"==typeof r&&(n=r),"string"==typeof e){e=new rP(e);let r=this._findNextMatchSync(e,t,!1,n);return e.dispose(),r}return this._findNextMatchSync(e,t,!1,n)}_findNextMatchSync(e,t,r,n){let i=this._onigBinding,a=i.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),n);if(0===a)return null;let s=i.HEAPU32,o=a/4,l=s[o++],c=s[o++],u=[];for(let t=0;t<c;t++){let r=e.convertUtf8OffsetToUtf16(s[o++]),n=e.convertUtf8OffsetToUtf16(s[o++]);u[t]={start:r,end:n,length:n-r}}return{index:l,captureIndices:u}}}function rE(e){return r||(r=async function(){rL=await rC(async t=>{let r=e;if("function"==typeof(r=await r)&&(r=await r(t)),"function"==typeof r&&(r=await r(t)),"function"==typeof r.instantiator)r=await r.instantiator(t);else if("function"==typeof r.default)r=await r.default(t);else{var n,i,a,s;if(void 0!==r.data&&(r=r.data),n=r,"u">typeof Response&&n instanceof Response){r="function"==typeof WebAssembly.instantiateStreaming?await (a=r,e=>WebAssembly.instantiateStreaming(a,e))(t):await (s=r,async e=>{let t=await s.arrayBuffer();return WebAssembly.instantiate(t,e)})(t)}else(i=r,"u">typeof ArrayBuffer&&(i instanceof ArrayBuffer||ArrayBuffer.isView(i))||void 0!==rw.Buffer&&rw.Buffer.isBuffer?.(i)||"u">typeof SharedArrayBuffer&&i instanceof SharedArrayBuffer||"u">typeof Uint32Array&&i instanceof Uint32Array||r instanceof WebAssembly.Module)?r=await rI(r)(t):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await rI(r.default)(t))}return"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}())}function rI(e){return t=>WebAssembly.instantiate(e,t)}async function rj(e){return e&&await rE(e),{createScanner:e=>new rR(e.map(e=>"string"==typeof e?e:e.source)),createString:e=>new rP(e)}}e.s(["createOnigurumaEngine",0,rj,"getDefaultWasmLoader",0,function(){return n},"loadWasm",0,rE,"setDefaultWasmLoader",0,function(e){n=e}],900417);var rO=e.i(900417),rM=(e=>{let t={};for(var r in e)ry(t,r,{get:e[r],enumerable:!0});return ry(t,Symbol.toStringTag,{value:"Module"}),t})({});((e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var i,a=r_(t),s=0,o=a.length;s<o;s++)i=a[s],rA.call(e,i)||i===r||ry(e,i,{get:(e=>t[e]).bind(null,i),enumerable:!(n=rb(t,i))||n.enumerable});return})(rM,rO,"default");let{getSingletonHighlighter:rD}=function(e,t){let r,n=async function(t={}){if(r){let e=await r;return await Promise.all([e.loadTheme(...t.themes||[]),e.loadLanguage(...t.langs||[])]),e}{r=e({...t,themes:[],langs:[]});let n=await r;return await Promise.all([n.loadTheme(...t.themes||[]),n.loadLanguage(...t.langs||[])]),n}};async function i(e,r){let i=await n({langs:[r.lang],themes:"theme"in r?[r.theme]:Object.values(r.themes)}),a=await t?.guessEmbeddedLanguages?.(e,r.lang,i);return a&&await i.loadLanguage(...a),i}return{getSingletonHighlighter:e=>n(e),codeToHtml:async(e,t)=>(await i(e,t)).codeToHtml(e,t),codeToHast:async(e,t)=>(await i(e,t)).codeToHast(e,t),codeToTokens:async(e,t)=>(await i(e,t)).codeToTokens(e,t),codeToTokensBase:async(e,t)=>(await i(e,t)).codeToTokensBase(e,t),codeToTokensWithThemes:async(e,t)=>(await i(e,t)).codeToTokensWithThemes(e,t),getLastGrammarState:async(e,t)=>(await n({langs:[t.lang],themes:[t.theme]})).getLastGrammarState(e,t)}}((i=(u={langs:rf,themes:Object.fromEntries([{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>e.A(886242)},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>e.A(710838)},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>e.A(933572)},{id:"ayu-light",displayName:"Ayu Light",type:"light",import:()=>e.A(2119)},{id:"ayu-mirage",displayName:"Ayu Mirage",type:"dark",import:()=>e.A(115102)},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>e.A(522365)},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>e.A(782807)},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>e.A(667213)}
1,{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>e.A(519355)},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>e.A(807667)},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>e.A(450180)},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>e.A(987642)},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>e.A(147631)},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>e.A(661886)},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>e.A(228267)},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>e.A(98718)},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>e.A(163167)},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>e.A(133885)},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>e.A(90349)},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>e.A(972808)},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>e.A(655630)},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:()=>e.A(95488)},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:()=>e.A(541220)},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:()=>e.A(50869)},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:()=>e.A(227029)},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:()=>e.A(200723)},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:()=>e.A(842129)},{id:"horizon",displayName:"Horizon",type:"dark",import:()=>e.A(489256)},{id:"horizon-bright",displayName:"Horizon Bright",type:"light",import:()=>e.A(175241)},{id:"houston",displayName:"Houston",type:"dark",import:()=>e.A(569885)},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>e.A(369308)},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>e.A(696442)},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>e.A(574416)},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>e.A(898187)},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>e.A(494309)},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>e.A(124272)},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>e.A(122669)},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>e.A(366451)},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>e.A(891154)},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>e.A(740673)},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>e.A(101774)},{id:"min-light",displayName:"Min Light",type:"light",import:()=>e.A(171597)},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>e.A(91021)},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>e.A(935799)},{id:"night-owl-light",displayName:"Night Owl Light",type:"light",import:()=>e.A(751916)},{id:"nord",displayName:"Nord",type:"dark",import:()=>e.A(708143)},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>e.A(968485)},{id:"one-light",displayName:"One Light",type:"light",import:()=>e.A(527890)},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>e.A(966111)},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>e.A(103814)},{id:"red",displayName:"Red",type:"dark",import:()=>e.A(301266)},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>e.A(979531)},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>e.A(320101)},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>e.A(605906)},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>e.A(125753)},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>e.A(360595)},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>e.A(676643)},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>e.A(634167)},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>e.A(85880)}
1,{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>e.A(607546)},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>e.A(349660)},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>e.A(975386)},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>e.A(918452)},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>e.A(948828)},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>e.A(897306)}].map(e=>[e.id,e.import])),engine:()=>(0,rM.createOnigurumaEngine)(e.A(286581))}).langs,a=u.themes,s=u.engine,async function(e){function t(t){if("string"==typeof t){if(eM(t=e.langAlias?.[t]||t))return[];let r=i[t];if(!r)throw new _(`Language \`${t}\` is not included in this bundle. You may want to load it from external source.`);return r}return t}function r(e){if(eD(e))return"none";if("string"==typeof e){let t=a[e];if(!t)throw new _(`Theme \`${e}\` is not included in this bundle. You may want to load it from external source.`);return t}return e}let n=(e.themes??[]).map(e=>r(e)),o=(e.langs??[]).map(e=>t(e)),l=await rn({engine:e.engine??s(),...e,themes:n,langs:o});return{...l,loadLanguage:(...e)=>l.loadLanguage(...e.map(t)),loadTheme:(...e)=>l.loadTheme(...e.map(r)),getBundledLanguages:()=>i,getBundledThemes:()=>a}}),{guessEmbeddedLanguages:tV}),rG=String.raw,rB=rG`\[\^?`,r$=`c.? | C(?:-.?)?|${rG`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${rG`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${rG`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${rG`o\{[^\}]*\}?`}|${rG`\d{1,3}`}`;RegExp(rG` 2 \\ (?: 3 ${r$} 4 | [gk]<[^>]*>? 5 | [gk]'[^']*'? 6 | . 7 ) 8 | \( (?: 9 \? (?: 10 [:=!>({] 11 | <[=!] 12 | <[^>]*> 13 | '[^']*' 14 | ~\|? 15 | #(?:[^)\\]|\\.?)* 16 | [^:)]*[:)] 17 )? 18 | \*[^\)]*\)? 19 )? 20 | (?:${/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/.source})+ 21 | ${rB} 22 | . 23`.replace(/\s+/g,""),"gsu"),RegExp(rG` 24 \\ (?: 25 ${r$} 26 | . 27 ) 28 | \[:(?:\^?\p{Alpha}+|\^):\] 29 | ${rB} 30 | && 31 | . 32`.replace(/\s+/g,""),"gsu");let rU=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"}),RegExp(String.raw`(?<noncapturingStart>${rU})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu");let rF=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`;RegExp(String.raw` 33\\(?: \d+ 34 | c[A-Za-z] 35 | [gk]<[^>]+> 36 | [pPu]\{[^\}]+\} 37 | u[A-Fa-f\d]{4} 38 | x[A-Fa-f\d]{2} 39 ) 40| \((?: \? (?: [:=!>] 41 | <(?:[=!]|[^>]+>) 42 | [A-Za-z\-]+: 43 | \(DEFINE\) 44 ))? 45| (?<qBase>${rF})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?) 46| \\?. 47`.replace(/\s+/g,""),"gsu");let rW=String.raw,rH=rW`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,rq=rW`\(\?R=(?<rDepth>[^\)]+)\)|${rH}`,rz=rW`\(\?<(?![=!])(?<captureName>[^>]+)>`;rW`${rz}|(?<unnamed>\()(?!\?)`,RegExp(rW`${rz}|${rq}|\(\?|\\?.`,"gsu");var rV=String.fromCodePoint,rX=String.raw,rJ={},rQ=globalThis.RegExp;function rY(e){let t=rV(e);return[t.toLowerCase(),t]}function rK(e,t){return(function(e,t){let r=[];for(let n=e;n<=t;n++)r.push(n);return r})(e,t).map(e=>rY(e))}async function rZ(t,r,n){return await rD({langs:t.filter(e=>null!=e&&("string"==typeof e?e in rf:"string"==typeof e.name&&"string"==typeof e.scopeName)),themes:r,engine:n??rj(e.A(286581))})}rJ.flagGroups=(()=>{try{new rQ("(?i:)")}catch{return!1}return!0})(),rJ.unicodeSets=(()=>{try{new rQ("[[]]","v")}catch{return!1}return!0})(),rJ.bugFlagVLiteralHyphenIsRange=!!rJ.unicodeSets&&(()=>{try{new rQ(rX`[\d\-a]`,"v")}catch{return!0}return!1})(),rJ.bugNestedClassIgnoresNegation=rJ.unicodeSets&&new rQ("[[^a]]","v").test("a"),rV(304),rV(305),rX`[\p{L}\p{M}\p{N}\p{Pc}]`,`C Other 48Cc Control cntrl 49Cf Format 50Cn Unassigned 51Co Private_Use 52Cs Surrogate 53L Letter 54LC Cased_Letter 55Ll Lowercase_Letter 56Lm Modifier_Letter 57Lo Other_Letter 58Lt Titlecase_Letter 59Lu Uppercase_Letter 60M Mark Combining_Mark 61Mc Spacing_Mark 62Me Enclosing_Mark 63Mn Nonspacing_Mark 64N Number 65Nd Decimal_Number digit 66Nl Letter_Number 67No Other_Number 68P Punctuation punct 69Pc Connector_Punctuation 70Pd Dash_Punctuation 71Pe Close_Punctuation 72Pf Final_Punctuation 73Pi Initial_Punctuation 74Po Other_Punctuation 75Ps Open_Punctuation 76S Symbol 77Sc Currency_Symbol 78Sk Modifier_Symbol 79Sm Math_Symbol 80So Other_Symbol 81Z Separator 82Zl Line_Separator 83Zp Paragraph_Separator 84Zs Space_Separator 85ASCII 86ASCII_Hex_Digit AHex 87Alphabetic Alpha 88Any 89Assigned 90Bidi_Control Bidi_C 91Bidi_Mirrored Bidi_M 92Case_Ignorable CI 93Cased 94Changes_When_Casefolded CWCF 95Changes_When_Casemapped CWCM 96Changes_When_Lowercased CWL 97Changes_When_NFKC_Casefolded CWKCF 98Changes_When_Titlecased CWT 99Changes_When_Uppercased CWU 100Dash 101Default_Ignorable_Code_Point DI 102Deprecated Dep 103Diacritic Dia 104Emoji 105Emoji_Component EComp 106Emoji_Modifier EMod 107Emoji_Modifier_Base EBase 108Emoji_Presentation EPres 109Extended_Pictographic ExtPict 110Extender Ext 111Grapheme_Base Gr_Base 112Grapheme_Extend Gr_Ext
113Hex_Digit Hex 114IDS_Binary_Operator IDSB 115IDS_Trinary_Operator IDST 116ID_Continue IDC 117ID_Start IDS 118Ideographic Ideo 119Join_Control Join_C 120Logical_Order_Exception LOE 121Lowercase Lower 122Math 123Noncharacter_Code_Point NChar 124Pattern_Syntax Pat_Syn 125Pattern_White_Space Pat_WS 126Quotation_Mark QMark 127Radical 128Regional_Indicator RI 129Sentence_Terminal STerm 130Soft_Dotted SD 131Terminal_Punctuation Term 132Unified_Ideograph UIdeo 133Uppercase Upper 134Variation_Selector VS 135White_Space space 136XID_Continue XIDC 137XID_Start XIDS`.split(/\s/).map(e=>[e.replace(/[- _]+/g,"").toLowerCase(),e]),rV(383),rV(383),rV(223),rV(7838),rV(107),rV(8490),rV(229),rV(8491),rV(969),rV(8486),[rY(453),rY(456),rY(459),rY(498),...rK(8072,8079),...rK(8088,8095),...rK(8104,8111),rY(8124),rY(8140),rY(8188)],rX`[\p{Alpha}\p{Nd}]`,rX`\p{Alpha}`,rX`\p{ASCII}`,rX`[\p{Zs}\t]`,rX`\p{Cc}`,rX`\p{Nd}`,rX`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`,rX`\p{Lower}`,rX`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`,rX`[\p{P}\p{S}]`,rX`\p{space}`,rX`\p{Upper}`,rX`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`,rX`\p{AHex}`,rX`\t`,rX`\n`,rX`\v`,rX`\f`,rX`\r`,rX`\u2028`,rX`\u2029`,rX`\uFEFF`;let r0=(o=(e,t,r,n={})=>((e,t,r,n={},i)=>{let[a,s]=(0,m.useState)(null),o=ra(t),l=ra(r),c=ra(n),u=(0,m.useMemo)(()=>{let{languageId:e,langsToLoad:t}=((e,t,r,n)=>{let i,a=ro(t),s=ro(n),o=[...a,...s],l=rs;if(null==e||"string"==typeof e&&!e.trim())return{languageId:l,langsToLoad:rc([...s,...a])};if("object"==typeof e)l=e.name,i=e;else{let t=e.toLowerCase(),n=e=>e?.toLowerCase()===t,a=o.find(e=>"object"==typeof e&&null!=e&&!!(n(e.name)||n(e.scopeName)||n(e.scopeName?.split(".").pop())||e.aliases?.some(n)||e.fileTypes?.some(n)));a?(l=a.name||e,i=a):r?.[e]?(l=r[e],i=r[e]):(l=e,i=e)}return{languageId:l,langsToLoad:rc([i,...s,...a])}})(o,c.customLanguages,c.langAlias,c.preloadLanguages),r=function(e){if("object"!=typeof e||null===e||rh(e))return{isMulti:!1,theme:e,themesToLoad:[e]};let t=Object.entries(e).filter(([e,t])=>""!==e.trim()&&("string"==typeof t&&""!==t.trim()||rh(t)));return 0===t.length?(console.warn("[react-shiki] invalid multi-theme config, falling back to defaults"),{isMulti:!0,themes:ru,themesToLoad:Object.values(ru)}):(t.length!==Object.keys(e).length&&console.warn("[react-shiki] multi-theme config contained invalid entries; they were dropped"),{isMulti:!0,themes:Object.fromEntries(t),themesToLoad:t.map(([,e])=>e)})}(l),n=((e,t,r)=>{let{delay:n,customLanguages:i,preloadLanguages:a,outputFormat:s,highlighter:o,langAlias:l,engine:c,defaultColor:u,cssVariablePrefix:h,showLineNumbers:d,startingLineNumber:p,transformers:m,...g}=r,f=[...m||[]];return d&&f.push(function(e=1){return{name:"react-shiki:line-numbers",code(t){if(this.addClassToHast(t,"rs-has-line-numbers"),1!==e){let r=t.properties?.style||"",n=r?`${r}; --line-start: ${e}`:`--line-start: ${e}`;t.properties={...t.properties,style:n}}},line(e){return this.addClassToHast(e,"rs-line-number"),e}}}(p)),{lang:e,...t.isMulti?{themes:t.themes,defaultColor:u,cssVariablePrefix:h}:{theme:t.theme},...g,transformers:f}})(e,r,c);return{languageId:e,langsToLoad:t,themesToLoad:r.themesToLoad,shikiOptions:n}},[o,l,c]),h=(0,m.useRef)(0),d=(0,m.useRef)({nextAllowedTime:0,timeoutId:void 0}),p=(0,m.useRef)(i);return p.current=i,(0,m.useEffect)(()=>{let t=++h.current;if(!u.languageId)return;let r=async()=>{try{let r=await rd(e,u,c,p.current);t===h.current&&s(r)}catch(e){console.error("[react-shiki] highlight failed",e)}};if(c.delay){var n;let e;n=c.delay,clearTimeout(d.current.timeoutId),e=Math.max(0,d.current.nextAllowedTime-Date.now()),d.current.timeoutId=setTimeout(()=>{r(),d.current.nextAllowedTime=Date.now()+n},e)}else r();return()=>{clearTimeout(d.current.timeoutId)}},[e,u,c]),a})(e,t,r,n,rZ),(0,m.forwardRef)(({language:e,theme:t,delay:r,transformers:n,defaultColor:i,cssVariablePrefix:a,addDefaultStyles:s=!0,style:l,langStyle:c,className:u,langClassName:d,showLanguage:p=!0,showLineNumbers:m=!1,startingLineNumber:g=1,children:f,as:y="div",customLanguages:b,preloadLanguages:_,...A},w)=>{let S={delay:r,transformers:n,customLanguages:b,preloadLanguages:_,showLineNumbers:m,defaultColor:i,cssVariablePrefix:a,startingLineNumber:g,...A},v="object"==typeof e?e.name||null:e?.trim()||null,k=o(f,e,t,S);return(0,h.jsxs)(y,{ref:w,"data-testid":"shiki-container","data-slot":"container",className:(0,ri.clsx)("rs-root","not-prose",s&&"rs-default-styles",u),style:l,children:[p&&v?(0,h.jsx)("span",{id:"language-label","data-slot":"language-label",className:(0,ri.clsx)("rs-language-label",d),style:c,children:v}
137):null,"string"==typeof k?(0,h.jsx)("div",{"data-slot":"content",dangerouslySetInnerHTML:{__html:k}}):k]})}));var r1=e.i(575007),r2=e.i(167881),r8=e.i(471435),r6=e.i(318203);e.s(["default",0,function({children:e}){let[t,r]=(0,m.useState)(!1),n=e=>{if("string"==typeof e)return e;if("number"==typeof e)return String(e);if(Array.isArray(e))return e.map(n).join("");if((0,m.isValidElement)(e)){let t=e.props;if(t.children)return n(t.children)}return""},i="string"==typeof e?e:n(e);return(0,h.jsxs)(r8.ScrollArea,{className:(0,r6.cn)("relative h-max max-w-full overflow-x-auto border"),children:[(0,h.jsx)(r0,{addDefaultStyles:!1,as:"div",className:"w-full text-[13px] [&>pre]:overflow-x-auto [&>pre]:whitespace-pre-wrap [&>pre]:break-words [&>pre]:bg-background [&>pre]:p-4 [&>pre]:text-foreground",language:"jsx",showLanguage:!1,theme:{name:"custom-theme",type:"dark",colors:{"editor.background":"var(--background)","editor.foreground":"var(--foreground)"},tokenColors:[{scope:["comment","punctuation.definition.comment"],settings:{foreground:"var(--muted-foreground)",fontStyle:"italic"}},{scope:["string","string.quoted"],settings:{foreground:"var(--foreground)"}},{scope:["keyword","keyword.control","keyword.operator","keyword.other"],settings:{foreground:"var(--primary)",fontStyle:"bold"}},{scope:["variable","variable.other","variable.parameter"],settings:{foreground:"var(--foreground)"}},{scope:["entity.name.function","support.function"],settings:{foreground:"var(--chart-3)"}},{scope:["constant","constant.numeric","constant.language"],settings:{foreground:"var(--chart-4)"}},{scope:["entity.name.type","entity.name.class"],settings:{foreground:"var(--chart-5)",fontStyle:"bold"}},{scope:["punctuation","punctuation.separator","punctuation.terminator"],settings:{foreground:"var(--muted-foreground)"}},{scope:["meta.brace","punctuation.section.brackets"],settings:{foreground:"var(--border)"}},{scope:["text","source"],settings:{foreground:"var(--foreground)"}}]},children:i.trim()||""}),(0,h.jsx)(r2.Button,{className:"absolute top-2 right-2 z-10 rounded-md hover:bg-accent hover:text-accent-foreground",onClick:()=>{navigator.clipboard.writeText(i),r(!0),setTimeout(()=>{r(!1)},3e3),(0,r1.toast)("Copied to clipboard")},variant:"ghost",children:t?(0,h.jsx)(d.Check,{className:"size-3"}):(0,h.jsx)(p.Clipboard,{className:"size-3"})})]})}],625257)},575007,e=>{"use strict";var t=e.i(327193),r=e.i(516266);function n(e){let{title:r}=e;return(0,t.jsxs)("div",{className:"relative retro",children:[(0,t.jsx)("div",{className:"flex rounded-lg bg-background shadow-lg ring-1 ring-black/5 w-full md:max-w-[364px] items-center p-4",children:(0,t.jsx)("div",{className:"flex flex-1 items-center",children:(0,t.jsx)("div",{className:"w-full",children:(0,t.jsx)("p",{className:"text-sm font-medium",children:r})})})}),(0,t.jsx)("div",{className:"absolute -top-1.5 w-1/2 left-1.5 h-1.5 bg-foreground dark:bg-ring"}),(0,t.jsx)("div",{className:"absolute -top-1.5 w-1/2 right-1.5 h-1.5 bg-foreground dark:bg-ring"}),(0,t.jsx)("div",{className:"absolute -bottom-1.5 w-1/2 left-1.5 h-1.5 bg-foreground dark:bg-ring"}),(0,t.jsx)("div",{className:"absolute -bottom-1.5 w-1/2 right-1.5 h-1.5 bg-foreground dark:bg-ring"}),(0,t.jsx)("div",{className:"absolute top-0 left-0 size-1.5 bg-foreground dark:bg-ring"}),(0,t.jsx)("div",{className:"absolute top-0 right-0 size-1.5 bg-foreground dark:bg-ring"}),(0,t.jsx)("div",{className:"absolute bottom-0 left-0 size-1.5 bg-foreground dark:bg-ring"}),(0,t.jsx)("div",{className:"absolute bottom-0 right-0 size-1.5 bg-foreground dark:bg-ring"}),(0,t.jsx)("div",{className:"absolute top-1 -left-1.5 h-1/2 w-1.5 bg-foreground dark:bg-ring"}),(0,t.jsx)("div",{className:"absolute bottom-1 -left-1.5 h-1/2 w-1.5 bg-foreground dark:bg-ring"}),(0,t.jsx)("div",{className:"absolute top-1 -right-1.5 h-1/2 w-1.5 bg-foreground dark:bg-ring"}),(0,t.jsx)("div",{className:"absolute bottom-1 -right-1.5 h-1/2 w-1.5 bg-foreground dark:bg-ring"})]})}e.s(["toast",0,function(e){return r.toast.custom(r=>(0,t.jsx)(n,{id:r,title:e}))}])},471435,e=>{"use strict";var t=e.i(327193),r=e.i(524574),n=e.i(318203);function i({className:e,orientation:a="vertical",...s}){return(0,t.jsx)(r.ScrollAreaScrollbar,{"data-slot":"scroll-area-scrollbar",orientation:a,className:(0,n.cn)("flex touch-none p-px transition-colors select-none","vertical"===a&&"h-full w-2.5 border-l border-l-transparent","horizontal"===a&&"h-2.5 flex-col border-t border-t-transparent",e),...s,children:(0,t.jsx)(r.ScrollAreaThumb,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}e.s(["ScrollArea",0,function({className:e,children:a,viewportRef:s,...o}){return(0,t.jsxs)(r.Root,{"data-slot":"scroll-area",className:(0,n.cn)("relative",e),...o,children:[(0,t.jsx)(r.Vie
137wport,{ref:s,"data-slot":"scroll-area-viewport",className:"focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",children:a}),(0,t.jsx)(i,{}),(0,t.jsx)(r.Corner,{})]})}])},524574,e=>{"use strict";var t=e.i(475127),r=e.i(943001),n=e.i(948983),i=e.i(767240),a=e.i(443644),s=e.i(79603),o=e.i(97229),l=e.i(91467),c=e.i(103512),u=e.i(515201),h=e.i(327193),d="ScrollArea",[p,m]=(0,i.createContextScope)(d),[g,f]=p(d),y=t.forwardRef((e,n)=>{let{__scopeScrollArea:i,type:s="hover",dir:l,scrollHideDelay:c=600,...u}=e,[d,p]=t.useState(null),[m,f]=t.useState(null),[y,b]=t.useState(null),[_,A]=t.useState(null),[w,S]=t.useState(null),[v,k]=t.useState(0),[C,N]=t.useState(0),[x,L]=t.useState(!1),[T,P]=t.useState(!1),R=(0,a.useComposedRefs)(n,p),E=(0,o.useDirection)(l);return(0,h.jsx)(g,{scope:i,type:s,dir:E,scrollHideDelay:c,scrollArea:d,viewport:m,onViewportChange:f,content:y,onContentChange:b,scrollbarX:_,onScrollbarXChange:A,scrollbarXEnabled:x,onScrollbarXEnabledChange:L,scrollbarY:w,onScrollbarYChange:S,scrollbarYEnabled:T,onScrollbarYEnabledChange:P,onCornerWidthChange:k,onCornerHeightChange:N,children:(0,h.jsx)(r.Primitive.div,{dir:E,...u,ref:R,style:{position:"relative","--radix-scroll-area-corner-width":v+"px","--radix-scroll-area-corner-height":C+"px",...e.style}})})});y.displayName=d;var b="ScrollAreaViewport",_=t.forwardRef((e,n)=>{let{__scopeScrollArea:i,children:s,nonce:o,...l}=e,c=f(b,i),u=t.useRef(null),d=(0,a.useComposedRefs)(n,u,c.onViewportChange);return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(A,{nonce:o}),(0,h.jsx)(r.Primitive.div,{"data-radix-scroll-area-viewport":"",...l,ref:d,style:{overflowX:c.scrollbarXEnabled?"scroll":"hidden",overflowY:c.scrollbarYEnabled?"scroll":"hidden",...e.style},children:(0,h.jsx)("div",{ref:c.onContentChange,style:{minWidth:"100%",display:"table"},children:s})})]})});_.displayName=b;var A=t.memo(({nonce:e})=>(0,h.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:e}),(e,t)=>e.nonce===t.nonce),w="ScrollAreaScrollbar",S=t.forwardRef((e,r)=>{let{forceMount:n,...i}=e,a=f(w,e.__scopeScrollArea),{onScrollbarXEnabledChange:s,onScrollbarYEnabledChange:o}=a,l="horizontal"===e.orientation;return t.useEffect(()=>(l?s(!0):o(!0),()=>{l?s(!1):o(!1)}),[l,s,o]),"hover"===a.type?(0,h.jsx)(v,{...i,ref:r,forceMount:n}):"scroll"===a.type?(0,h.jsx)(k,{...i,ref:r,forceMount:n}):"auto"===a.type?(0,h.jsx)(C,{...i,ref:r,forceMount:n}):"always"===a.type?(0,h.jsx)(N,{...i,ref:r,"data-state":"visible"}):null});S.displayName=w;var v=t.forwardRef((e,r)=>{let{forceMount:i,...a}=e,s=f(w,e.__scopeScrollArea),[o,l]=t.useState(!1);return t.useEffect(()=>{let e=s.scrollArea,t=0;if(e){let r=()=>{window.clearTimeout(t),l(!0)},n=()=>{t=window.setTimeout(()=>l(!1),s.scrollHideDelay)};return e.addEventListener("pointerenter",r),e.addEventListener("pointerleave",n),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",r),e.removeEventListener("pointerleave",n)}}},[s.scrollArea,s.scrollHideDelay]),(0,h.jsx)(n.Presence,{present:i||o,children:(0,h.jsx)(C,{"data-state":o?"visible":"hidden",...a,ref:r})})}),k=t.forwardRef((e,r)=>{var i;let{forceMount:a,...s}=e,o=f(w,e.__scopeScrollArea),l="horizontal"===e.orientation,c=H(()=>p("SCROLL_END"),100),[d,p]=(i={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},t.useReducer((e,t)=>i[e][t]??e,"hidden"));return t.useEffect(()=>{if("idle"===d){let e=window.setTimeout(()=>p("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(e)}},[d,o.scrollHideDelay,p]),t.useEffect(()=>{let e=o.viewport,t=l?"scrollLeft":"scrollTop";if(e){let r=e[t],n=()=>{let n=e[t];r!==n&&(p("SCROLL"),c()),r=n};return e.addEventListener("scroll",n),()=>e.removeEventListener("scroll",n)}}
137,[o.viewport,l,p,c]),(0,h.jsx)(n.Presence,{present:a||"hidden"!==d,children:(0,h.jsx)(N,{"data-state":"hidden"===d?"hidden":"visible",...s,ref:r,onPointerEnter:(0,u.composeEventHandlers)(e.onPointerEnter,()=>p("POINTER_ENTER")),onPointerLeave:(0,u.composeEventHandlers)(e.onPointerLeave,()=>p("POINTER_LEAVE"))})})}),C=t.forwardRef((e,r)=>{let i=f(w,e.__scopeScrollArea),{forceMount:a,...s}=e,[o,l]=t.useState(!1),c="horizontal"===e.orientation,u=H(()=>{if(i.viewport){let e=i.viewport.offsetWidth<i.viewport.scrollWidth,t=i.viewport.offsetHeight<i.viewport.scrollHeight;l(c?e:t)}},10);return q(i.viewport,u),q(i.content,u),(0,h.jsx)(n.Presence,{present:a||o,children:(0,h.jsx)(N,{"data-state":o?"visible":"hidden",...s,ref:r})})}),N=t.forwardRef((e,r)=>{let{orientation:n="vertical",...i}=e,a=f(w,e.__scopeScrollArea),s=t.useRef(null),o=t.useRef(0),[l,c]=t.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=B(l.viewport,l.content),d={...i,sizes:l,onSizesChange:c,hasThumb:!!(u>0&&u<1),onThumbChange:e=>s.current=e,onThumbPointerUp:()=>o.current=0,onThumbPointerDown:e=>o.current=e};function p(e,t){return function(e,t,r,n="ltr"){let i=$(r),a=t||i/2,s=r.scrollbar.paddingStart+a,o=r.scrollbar.size-r.scrollbar.paddingEnd-(i-a),l=r.content-r.viewport;return F([s,o],"ltr"===n?[0,l]:[-1*l,0])(e)}(e,o.current,l,t)}return"horizontal"===n?(0,h.jsx)(x,{...d,ref:r,onThumbPositionChange:()=>{if(a.viewport&&s.current){let e=U(a.viewport.scrollLeft,l,a.dir);s.current.style.transform=`translate3d(${e}px, 0, 0)`}},onWheelScroll:e=>{a.viewport&&(a.viewport.scrollLeft=e)},onDragScroll:e=>{a.viewport&&(a.viewport.scrollLeft=p(e,a.dir))}}):"vertical"===n?(0,h.jsx)(L,{...d,ref:r,onThumbPositionChange:()=>{if(a.viewport&&s.current){let e=U(a.viewport.scrollTop,l);s.current.style.transform=`translate3d(0, ${e}px, 0)`}},onWheelScroll:e=>{a.viewport&&(a.viewport.scrollTop=e)},onDragScroll:e=>{a.viewport&&(a.viewport.scrollTop=p(e))}}):null}),x=t.forwardRef((e,r)=>{let{sizes:n,onSizesChange:i,...s}=e,o=f(w,e.__scopeScrollArea),[l,c]=t.useState(),u=t.useRef(null),d=(0,a.useComposedRefs)(r,u,o.onScrollbarXChange);return t.useEffect(()=>{u.current&&c(getComputedStyle(u.current))},[u]),(0,h.jsx)(R,{"data-orientation":"horizontal",...s,ref:d,sizes:n,style:{bottom:0,left:"rtl"===o.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===o.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":$(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,r)=>{if(o.viewport){var n,i;let a=o.viewport.scrollLeft+t.deltaX;e.onWheelScroll(a),n=a,i=r,n>0&&n<i&&t.preventDefault()}},onResize:()=>{u.current&&o.viewport&&l&&i({content:o.viewport.scrollWidth,viewport:o.viewport.offsetWidth,scrollbar:{size:u.current.clientWidth,paddingStart:G(l.paddingLeft),paddingEnd:G(l.paddingRight)}})}})}),L=t.forwardRef((e,r)=>{let{sizes:n,onSizesChange:i,...s}=e,o=f(w,e.__scopeScrollArea),[l,c]=t.useState(),u=t.useRef(null),d=(0,a.useComposedRefs)(r,u,o.onScrollbarYChange);return t.useEffect(()=>{u.current&&c(getComputedStyle(u.current))},[u]),(0,h.jsx)(R,{"data-orientation":"vertical",...s,ref:d,sizes:n,style:{top:0,right:"ltr"===o.dir?0:void 0,left:"rtl"===o.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":$(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,r)=>{if(o.viewport){var n,i;let a=o.viewport.scrollTop+t.deltaY;e.onWheelScroll(a),n=a,i=r,n>0&&n<i&&t.preventDefault()}},onResize:()=>{u.current&&o.viewport&&l&&i({content:o.viewport.scrollHeight,viewport:o.viewport.offsetHeight,scrollbar:{size:u.current.clientHeight,paddingStart:G(l.paddingTop),paddingEnd:G(l.paddingBottom)}})}})}),[T,P]=p(w),R=t.forwardRef((e,n)=>{let{__scopeScrollArea:i,sizes:o,hasThumb:l,onThumbChange:c,onThumbPointerUp:d,onThumbPointerDown:p,onThumbPositionChange:m,onDragScroll:g,onWheelScroll:y,onResize:b,..._}=e,A=f(w,i),[S,v]=t.useState(null),k=(0,a.useComposedRefs)(n,v),C=t.useRef(null),N=t.useRef(""),x=A.viewport,L=o.content-o.viewport,P=(0,s.useCallbackRef)(y),R=(0,s.useCallbackRef)(m),E=H(b,10);function I(e){C.current&&g({x:e.clientX-C.current.left,y:e.clientY-C.current.top})}return t.useEffect(()=>{let e=e=>{let t=e.target;S?.contains(t)&&P(e,L)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[x,S,L,P]),t.useEffect(R,[o,R]),q(S,E),q(A.content,E),(0,h.jsx)(T,{scope:i,scrollbar:S,hasThumb:l,onThumbChange:(0,s.useCallbackRef)(c),onThumbPointerUp:(0,s.useCallbackRef)(d),onThumbPositionChange:R,onThumbPointerDown:(0,s.useCallbackRef)(p),children:(0,h.jsx)(r.Primitive.div,{..._,ref:k,style:{position:"absolute",..._.style},onPointerDown:(0,u.composeEventHandlers)(e.onPointerDown,e=>{0===e.button&&(e.target.setPointerCapture(e.pointerId),C.current=S.getBoundingClientRect(),N.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",A.viewport&&(A.viewport.style.scrollBehavior="auto"),I(e))}),onPointerMove:(0,u.composeEventHandlers)(e.onPointerMove,I),onPointerUp:(0,u.composeEventHandlers)(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=N.current,A.viewport&&(A.viewport.style.scrollBehavior=""),C.current=null})})})}),E="ScrollAreaThumb",I=t.forwardRef((e,t)=>
137{let{forceMount:r,...i}=e,a=P(E,e.__scopeScrollArea);return(0,h.jsx)(n.Presence,{present:r||a.hasThumb,children:(0,h.jsx)(j,{ref:t,...i})})}),j=t.forwardRef((e,n)=>{let{__scopeScrollArea:i,style:s,...o}=e,l=f(E,i),c=P(E,i),{onThumbPositionChange:d}=c,p=(0,a.useComposedRefs)(n,c.onThumbChange),m=t.useRef(void 0),g=H(()=>{m.current&&(m.current(),m.current=void 0)},100);return t.useEffect(()=>{let e=l.viewport;if(e){let t=()=>{g(),m.current||(m.current=W(e,d),d())};return d(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[l.viewport,g,d]),(0,h.jsx)(r.Primitive.div,{"data-state":c.hasThumb?"visible":"hidden",...o,ref:p,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...s},onPointerDownCapture:(0,u.composeEventHandlers)(e.onPointerDownCapture,e=>{let t=e.target.getBoundingClientRect(),r=e.clientX-t.left,n=e.clientY-t.top;c.onThumbPointerDown({x:r,y:n})}),onPointerUp:(0,u.composeEventHandlers)(e.onPointerUp,c.onThumbPointerUp)})});I.displayName=E;var O="ScrollAreaCorner",M=t.forwardRef((e,t)=>{let r=f(O,e.__scopeScrollArea),n=!!(r.scrollbarX&&r.scrollbarY);return"scroll"!==r.type&&n?(0,h.jsx)(D,{...e,ref:t}):null});M.displayName=O;var D=t.forwardRef((e,n)=>{let{__scopeScrollArea:i,...a}=e,s=f(O,i),[o,l]=t.useState(0),[c,u]=t.useState(0),d=!!(o&&c);return q(s.scrollbarX,()=>{let e=s.scrollbarX?.offsetHeight||0;s.onCornerHeightChange(e),u(e)}),q(s.scrollbarY,()=>{let e=s.scrollbarY?.offsetWidth||0;s.onCornerWidthChange(e),l(e)}),d?(0,h.jsx)(r.Primitive.div,{...a,ref:n,style:{width:o,height:c,position:"absolute",right:"ltr"===s.dir?0:void 0,left:"rtl"===s.dir?0:void 0,bottom:0,...e.style}}):null});function G(e){return e?parseInt(e,10):0}function B(e,t){let r=e/t;return isNaN(r)?0:r}function $(e){let t=B(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd;return Math.max((e.scrollbar.size-r)*t,18)}function U(e,t,r="ltr"){let n=$(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-i,s=t.content-t.viewport,o=(0,c.clamp)(e,"ltr"===r?[0,s]:[-1*s,0]);return F([0,s],[0,a-n])(o)}function F(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}var W=(e,t=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},n=0;return!function i(){let a={left:e.scrollLeft,top:e.scrollTop},s=r.left!==a.left,o=r.top!==a.top;(s||o)&&t(),r=a,n=window.requestAnimationFrame(i)}(),()=>window.cancelAnimationFrame(n)};function H(e,r){let n=(0,s.useCallbackRef)(e),i=t.useRef(0);return t.useEffect(()=>()=>window.clearTimeout(i.current),[]),t.useCallback(()=>{window.clearTimeout(i.current),i.current=window.setTimeout(n,r)},[n,r])}function q(e,t){let r=(0,s.useCallbackRef)(t);(0,l.useLayoutEffect)(()=>{let t=0;if(e){let n=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(r)});return n.observe(e),()=>{window.cancelAnimationFrame(t),n.unobserve(e)}}},[e,r])}e.s(["Corner",0,M,"Root",0,y,"ScrollArea",0,y,"ScrollAreaCorner",0,M,"ScrollAreaScrollbar",0,S,"ScrollAreaThumb",0,I,"ScrollAreaViewport",0,_,"Scrollbar",0,S,"Thumb",0,I,"Viewport",0,_,"createScrollAreaScope",0,m])},961907,282889,e=>{"use strict";var t=e.i(954797);e.s(["Check",()=>t.default],961907);let r=(0,e.i(829647).default)("clipboard",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}]]);e.s(["Clipboard",0,r],282889)}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.