Evidence and archive

workbench.desktop.main.js · part 79

Full reference
Topics
Status
Showing all 60

60 text occurrences from desktop/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js, part 79. Every entry preserves the shipped literal and its saved verdict or selection reason.

File contents and all parts · All files

Shipped text

Uses "G" in a way that requires non-strict accuracy

Source: desktop/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js, bytes 8045834–8045888, SHA-256 b35a4645983afa89.

Jev judged not model-facing (confidence 0.07; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: Uses "G" in a way that requires non-strict accuracy

Uses "G" in a way that requires non-strict accuracy

Unexpected assertion kind "${e}"

Source: desktop/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js, bytes 8049021–8049055, SHA-256 163bbf8bb2ac4d6c.

Jev judged not model-facing (confidence 0.03; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: Unexpected assertion kind "${e}"

Unexpected assertion kind "${e}"

Unexpected named backref in transformed AST

Source: desktop/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js, bytes 8049121–8049166, SHA-256 d376ce9e3554944a.

Jev judged not model-facing (confidence 0.03; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: Unexpected named backref in transformed AST

Unexpected named backref in transformed AST

Use of case-insensitive backref to case-sensitive group requires target ES2025 o

Source: desktop/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js, bytes 8049285–8049388, SHA-256 607b2ce4e0f03a27.

Jev judged not model-facing (confidence 0.06; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy

Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy

Use of character class intersection requires min target ES2024

Source: desktop/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js, bytes 8050075–8050139, SHA-256 cd98908562a969c0.

Jev judged not model-facing (confidence 0.05; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: Use of character class intersection requires min target ES2024

Use of character class intersection requires min target ES2024

Uses nested character class in a way that requires min target ES2024

Source: desktop/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js, bytes 8051053–8051123, SHA-256 f8686768742fb3fc.

Jev judged not model-facing (confidence 0.06; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: Uses nested character class in a way that requires min target ES2024

Uses nested character class in a way that requires min target ES2024

Unicode property "${n}" can't be case-insensitive when other chars have specific

Source: desktop/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js, bytes 8051762–8051849, SHA-256 eb7b64f941e6a1df.

Jev judged not model-facing (confidence 0.05; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: Unicode property "${n}" can't be case-insensitive when other chars have specific case

Unicode property "${n}" can't be case-insensitive when other chars have specific case

Unexpected character set kind "${e}"

Source: desktop/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js, bytes 8051952–8051990, SHA-256 99421220b4e5b5a3.

Jev judged not model-facing (confidence 0.04; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: Unexpected character set kind "${e}"

Unexpected character set kind "${e}"

Unexpected non-recursive subroutine in transformed AST

Source: desktop/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js, bytes 8052580–8052636, SHA-256 fce1bae5347b7896.

Jev judged not model-facing (confidence 0.04; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: Unexpected non-recursive subroutine in transformed AST

Unexpected non-recursive subroutine in transformed AST

Cannot provide options when copying a regexp

Source: desktop/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js, bytes 8053383–8053429, SHA-256 88ad8b6f49184440.

Jev judged not model-facing (confidence 0.04; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: Cannot provide options when copying a regexp

Cannot provide options when copying a regexp

Invalid capture transfer to "${c}"

Source: desktop/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js, bytes 8054817–8054853, SHA-256 bd8cb6c5083ab1b9.

Jev judged not model-facing (confidence 0.03; role human). This is a classifier judgment, not proof of delivery.

Readable text: Invalid capture transfer to "${c}"

Invalid capture transfer to "${c}"

use strict

Source: desktop/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js, bytes 8056833–8056845, SHA-256 4ee188e1744c1981.

Jev judged not model-facing (confidence 0.03; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: use strict

use strict

use strict · byte 8057229

Source: desktop/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js, bytes 8057229–8057241, SHA-256 4ee188e1744c1981.

Jev judged not model-facing (confidence 0.03; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: use strict

use strict

use strict · byte 8059633

Source: desktop/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js, bytes 8059633–8059645, SHA-256 4ee188e1744c1981.

Jev judged not model-facing (confidence 0.03; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: use strict

use strict

use strict · byte 8059749

Source: desktop/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js, bytes 8059749–8059761, SHA-256 4ee188e1744c1981.

Jev judged not model-facing (confidence 0.03; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: use strict

use strict

var qn=Object.defineProperty;var ho=Object.getPrototypeOf;var po=Reflect.get;var

Source: desktop/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js, bytes 8059766–8232774, SHA-256 d48c36778d24be59.

Not classified: Complete source exceeds the request budget; needs a larger budget or local review.

Readable text: var qn=Object.defineProperty;var ho=Object.getPrototypeOf;var po=Reflect.get;var Vn=t=>{throw TypeError(t)};var fo=(t,e,n)=>e in t?qn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var go=(t,e)=>{for(var n in e)qn(t,n,{get:…

var qn=Object.defineProperty;var ho=Object.getPrototypeOf;var po=Reflect.get;var Vn=t=>{throw TypeError(t)};var fo=(t,e,n)=>e in t?qn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var go=(t,e)=>{for(var n in e)qn(t,n,{get:e[n],enumerable:!0})};var g=(t,e,n)=>fo(t,typeof e!="symbol"?e+"":e,n),zt=(t,e,n)=>e.has(t)||Vn("Cannot "+n);var G=(t,e,n)=>(zt(t,e,"read from private field"),n?n.call(t):e.get(t)),me=(t,e,n)=>e.has(t)?Vn("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),q=(t,e,n,r)=>(zt(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n),Wt=(t,e,n)=>(zt(t,e,"access private method"),n);var Xn=(t,e,n)=>po(ho(t),n,e);var E=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function mo(t){return Jt(t)}function Jt(t){return Array.isArray(t)?yo(t):t instanceof RegExp?t:typeof t=="object"?bo(t):t}function yo(t){let e=[];for(let n=0,r=t.length;n<r;n++)e[n]=Jt(t[n]);return e}function bo(t){let e={};for(let n in t)e[n]=Jt(t[n]);return e}function rr(t,...e){return e.forEach(n=>{for(let r in n)t[r]=n[r]}),t}function sr(t){let e=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return e===0?t:~e===t.length-1?sr(t.substring(0,t.length-1)):t.substr(~e+1)}var Ht=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,at=class{static hasCaptures(t){return t===null?!1:(Ht.lastIndex=0,Ht.test(t))}static replaceCaptures(t,e,n){return t.replace(Ht,(r,s,o,a)=>{let i=n[parseInt(s||o,10)];if(i){let l=e.substring(i.start,i.end);for(;l[0]===".";)l=l.substring(1);switch(a){case"downcase":return l.toLowerCase();case"upcase":return l.toUpperCase();default:return l}}else return r})}};function or(t,e){return t<e?-1:t>e?1:0}function ar(t,e){if(t===null&&e===null)return 0;if(!t)return-1;if(!e)return 1;let n=t.length,r=e.length;if(n===r){for(let s=0;s<n;s++){let o=or(t[s],e[s]);if(o!==0)return o}return 0}return n-r}function Kn(t){return!!(/^#[0-9a-f]{6}$/i.test(t)||/^#[0-9a-f]{8}$/i.test(t)||/^#[0-9a-f]{3}$/i.test(t)||/^#[0-9a-f]{4}$/i.test(t))}function ir(t){return t.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var lr=class{constructor(t){g(this,"cache",new Map);this.fn=t}get(t){if(this.cache.has(t))return this.cache.get(t);let e=this.fn(t);return this.cache.set(t,e),e}},De=class{constructor(t,e,n){g(this,"_cachedMatchRoot",new lr(t=>this._root.match(t)));this._colorMap=t,this._defaults=e,this._root=n}static createFromRawTheme(t,e){return this.createFromParsedTheme(ko(t),e)}static createFromParsedTheme(t,e){return _o(t,e)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(t){if(t===null)return this._defaults;let e=t.scopeName,r=this._cachedMatchRoot.get(e).find(s=>wo(t.parent,s.parentScopes));return r?new cr(r.fontStyle,r.foreground,r.background):null}},qt=class it{constructor(e,n){this.parent=e,this.scopeName=n}static push(e,n){for(let r of n)e=new it(e,r);return e}static from(...e){let n=null;for(let r=0;r<e.length;r++)n=new it(n,e[r]);return n}push(e){return new it(this,e)}getSegments(){let e=this,n=[];for(;e;)n.push(e.scopeName),e=e.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){let n=[],r=this;for(;r&&r!==e;)n.push(r.scopeName),r=r.parent;return r===e?n.reverse():void 0}};function wo(t,e){if(e.length===0)return!0;for(let n=0;n<e.length;n++){let r=e[n],s=!1;if(r===">"){if(n===e.length-1)return!1;r=e[++n],s=!0}for(;t&&!Co(t.scopeName,r);){if(s)return!1;t=t.parent}if(!t)return!1;t=t.parent}return!0}function Co(t,e){return e===t||t.startsWith(e)&&t[e.length]==="."}var cr=class{constructor(t,e,n){this.fontStyle=t,this.foregroundId=e,this.backgroundId=n}};function ko(t){if(!t)return[];if(!t.settings||!Array.isArray(t.settings))return[];let e=t.settings,n=[],r=0;for(let s=0,o=e.length;s<o;s++){let a=e[s];if(!a.settings)continue;let i;if(typeof a.scope=="string"){let h=a.scope;h=h.replace(/^[,]+/,""),h=h.replace(/[,]+$/,""),i=h.split(",")}else Array.isArray(a.scope)?i=a.scope:i=[""];let l=-1;if(typeof a.settings.fontStyle=="string"){l=0;let h=a.settings.fontStyle.split(" ");for(let p=0,d=h.length;p<d;p++)switch(h[p]){case"italic":l=l|1;break;case"bold":l=l|2;break;case"underline":l=l|4;break;case"strikethrough":l=l|8;break}}let c=null;typeof a.settings.foreground=="string"&&Kn(a.settings.foreground)&&(c=a.settings.foreground);let u=null;typeof a.settings.background=="string"&&Kn(a.settings.background)&&(u=a.settings.background);for(let h=0,p=i.length;h<p;h++){let f=i[h].trim().split(" "),C=f[f.length-1],w=null;f.length>1&&(w=f.slice(0,f.length-1),w.reverse()),n[r++]=new So(C,w,s,l,c,u)}}return n}var So=class{constructor(t,e,n,r,s,o){this.scope=t,this.parentScopes=e,this.index=n,this.fontStyle=r,this.foreground=s,this.background=o}},M=(t=>(t[t.NotSet=-1]="NotSet",t[t.None=0]="None",t[t.Italic=1]="Italic",t[t.Bold=2]="Bold",t[t.Underline=4]="Underline",t[t.Strikethrough=8]="Strikethrough",t))(M||{});function _o(t,e){t.sort((l,c)=>{let u=or(l.scope,c.scope);return u!==0||(u=ar(l.parentScopes,c.parentScopes),u!==0)?u:l.index-c.index});let n=0,r="#000000",s="#ffffff";for(;t.length>=1&&t[0].scope==="";){let l=t.shift();l.fontStyle!==-1&&(n=l.fontStyle),l.foreground!==null&&(r=l.foreground),l.background!==null&&(s=l.background)}let o=new xo(e),a=new cr(n,o.getId(r),o.getId(s)),i=new Ao(new Xt(0,null,-1,0,0),[]);for(let l=0,c=t.length;l<c;l++){let u=t[l];i.insert(0,u.scope,u.parentScopes,u.fontStyle,o.getId(u.foreground),o.getId(u.background))}return new De(o,a,i)}var xo=class{constructor(t){g(this,"_isFrozen");g(this,"_lastColorId");g(this,"_id2color");g(this,"_color2id");if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(t)){this._isFrozen=!0;for(let e=0,n=t.length;e<n;e++)this._color2id[t[e]]=e,this._id2color[e]=t[e]}else this._isFrozen=!1}getId(t){if(t===null)return 0;t=t.toUpperCase();let e=this._color2id[t];if(e)return e;if(this._isFrozen)throw new Error(`Missing color in color map - ${t}`);return e=++this._lastColorId,this._color2id[t]=e,this._id2color[e]=t,e}getColorMap(){return this._id2color.slice(0)}},vo=Object.freeze([]),Xt=class ur{constructor(e,n,r,s,o){g(this,"scopeDepth");g(this,"parentScopes");g(this,"fontStyle");g(this,"foreground");g(this,"background");this.scopeDepth=e,this.parentScopes=n||vo,this.fontStyle=r,this.foreground=s,this.background=o}clone(){return new ur(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let n=[];for(let r=0,s=e.length;r<s;r++)n[r]=e[r].clone();return n}acceptOverwrite(e,n,r,s){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,n!==-1&&(this.fontStyle=n),r!==0&&(this.foreground=r),s!==0&&(this.background=s)}},Ao=class Kt{constructor(e,n=[],r={}){g(this,"_rulesWithParentScopes");this._mainRule=e,this._children=r,this._rulesWithParentScopes=n}static _cmpBySpecificity(e,n){if(e.scopeDepth!==n.scopeDepth)return n.scopeDepth-e.scopeDepth;let r=0,s=0;for(;e.parentScopes[r]===">"&&r++,n.parentScopes[s]===">"&&s++,!(r>=e.parentScopes.length||s>=n.parentScopes.length);){let o=n.parentScopes[s].length-e.parentScopes[r].length;if(o!==0)return o;r++,s++}return n.parentScopes.length-e.parentScopes.length}match(e){if(e!==""){let r=e.indexOf("."),s,o;if(r===-1?(s=e,o=""):(s=e.substring(0,r),o=e.substring(r+1)),this._children.hasOwnProperty(s))return this._children[s].match(o)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(Kt._cmpBySpecificity),n}insert(e,n,r,s,o,a){if(n===""){this._doInsertHere(e,r,s,o,a);return}let i=n.indexOf("."),l,c;i===-1?(l=n,c=""):(l=n.substring(0,i),c=n.substring(i+1));let u;this._children.hasOwnProperty(l)?u=this._children[l]:(u=new Kt(this._mainRule.clone(),Xt.cloneArr(this._rulesWithParentScopes)),this._children[l]=u),u.insert(e+1,c,r,s,o,a)}_doInsertHere(e,n,r,s,o){if(n===null){this._mainRule.acceptOverwrite(e,r,s,o);return}for(let a=0,i=this._rulesWithParentScopes.length;a<i;a++){let l=this._rulesWithParentScopes[a];if(ar(l.parentScopes,n)===0){l.acceptOverwrite(e,r,s,o);return}}r===-1&&(r=this._mainRule.fontStyle),s===0&&(s=this._mainRule.foreground),o===0&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new Xt(e,n,r,s,o))}},ye=class j{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(e){let n=j.getLanguageId(e),r=j.getTokenType(e),s=j.getFontStyle(e),o=j.getForeground(e),a=j.getBackground(e);console.log({languageId:n,tokenType:r,fontStyle:s,foreground:o,background:a})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!==0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(e,n,r,s,o,a,i){let l=j.getLanguageId(e),c=j.getTokenType(e),u=j.containsBalancedBrackets(e)?1:0,h=j.getFontStyle(e),p=j.getForeground(e),d=j.getBackground(e);return n!==0&&(l=n),r!==8&&(c=r),s!==null&&(u=s?1:0),o!==-1&&(h=o),a!==0&&(p=a),i!==0&&(d=i),(l<<0|c<<8|u<<10|h<<11|p<<15|d<<24)>>>0}};function ct(t,e){let n=[],r=Eo(t),s=r.next();for(;s!==null;){let l=0;if(s.length===2&&s.charAt(1)===":"){switch(s.charAt(0)){case"R":l=1;break;case"L":l=-1;break;default:console.log(`Unknown priority ${s} in scope selector`)}s=r.next()}let c=a();if(n.push({matcher:c,priority:l}),s!==",")break;s=r.next()}return n;function o(){if(s==="-"){s=r.next();let l=o();return c=>!!l&&!l(c)}if(s==="("){s=r.next();let l=i();return s===")"&&(s=r.next()),l}if(Qn(s)){let l=[];do l.push(s),s=r.next();while(Qn(s));return c=>e(l,c)}return null}function a(){let l=[],c=o();for(;c;)l.push(c),c=o();return u=>l.every(h=>h(u))}function i(){let l=[],c=a();for(;c&&(l.push(c),s==="|"||s===",");){do s=r.next();while(s==="|"||s===",");c=a()}return u=>l.some(h=>h(u))}}function Qn(t){return!!t&&!!t.match(/[\w\.:]+/)}function Eo(t){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=e.exec(t);return{next:()=>{if(!n)return null;let r=n[0];return n=e.exec(t),r}}}function hr(t){typeof t.dispose=="function"&&t.dispose()}var Fe=class{constructor(t){this.scopeName=t}toKey(){return this.scopeName}},Io=class{constructor(t,e){this.scopeName=t,this.ruleName=e}toKey(){return`${this.scopeName}#${this.ruleName}`}},Ro=class{constructor(){g(this,"_references",[]);g(this,"_seenReferenceKeys",new Set);g(this,"visitedRule",new Set)}get references(){return this._references}add(t){let e=t.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(t))}},No=class{constructor(t,e){g(this,"seenFullScopeRequests",new Set);g(this,"seenPartialScopeRequests",new Set);g(this,"Q");this.repo=t,this.initialScopeName=e,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Fe(this.initialScopeName)]}processQueue(){let t=this.Q;this.Q=[];let e=new Ro;for(let n of t)Lo(n,this.initialScopeName,this.repo,e);for(let n of e.references)if(n instanceof Fe){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName)||this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}};function Lo(t,e,n,r){let s=n.lookup(t.scopeName);if(!s){if(t.scopeName===e)throw new Error(`No grammar provided for <${e}>`);return}let o=n.lookup(e);t instanceof Fe?lt({baseGrammar:o,selfGrammar:s},r):Qt(t.ruleName,{baseGrammar:o,selfGrammar:s,repository:s.repository},r);let a=n.injections(t.scopeName);if(a)for(let i of a)r.add(new Fe(i))}function Qt(t,e,n){if(e.repository&&e.repository[t]){let r=e.repository[t];ut([r],e,n)}}function lt(t,e){t.selfGrammar.patterns&&Array.isArray(t.selfGrammar.patterns)&&ut(t.selfGrammar.patterns,{...t,repository:t.selfGrammar.repository},e),t.selfGrammar.injections&&ut(Object.values(t.selfGrammar.injections),{...t,repository:t.selfGrammar.repository},e)}function ut(t,e,n){for(let r of t){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let s=r.repository?rr({},e.repository,r.repository):e.repository;Array.isArray(r.patterns)&&ut(r.patterns,{...e,repository:s},n);let o=r.include;if(!o)continue;let a=pr(o);switch(a.kind){case 0:lt({...e,selfGrammar:e.baseGrammar},n);break;case 1:lt(e,n);break;case 2:Qt(a.ruleName,{...e,repository:s},n);break;case 3:case 4:let i=a.scopeName===e.selfGrammar.scopeName?e.selfGrammar:a.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(i){let l={baseGrammar:e.baseGrammar,selfGrammar:i,repository:s};a.kind===4?Qt(a.ruleName,l,n):lt(l,n)}else a.kind===4?n.add(new Io(a.scopeName,a.ruleName)):n.add(new Fe(a.scopeName));break}}}var To=class{constructor(){g(this,"kind",0)}},Po=class{constructor(){g(this,"kind",1)}},Mo=class{constructor(t){g(this,"kind",2);this.ruleName=t}},$o=class{constructor(t){g(this,"kind",3);this.scopeName=t}},Oo=class{constructor(t,e){g(this,"kind",4);this.scopeName=t,this.ruleName=e}};function pr(t){if(t==="$base")return new To;if(t==="$self")return new Po;let e=t.indexOf("#");if(e===-1)return new $o(t);if(e===0)return new Mo(t.substring(1));{let n=t.substring(0,e),r=t.substring(e+1);return new Oo(n,r)}}var Go=/\\(\d+)/,Zn=/\\(\d+)/g,fc=Symbol("RuleId"),Bo=-1,fr=-2;var ze=class{constructor(t,e,n,r){g(this,"$location");g(this,"id");g(this,"_nameIsCapturing");g(this,"_name");g(this,"_contentNameIsCapturing");g(this,"_contentName");this.$location=t,this.id=e,this._name=n||null,this._nameIsCapturing=at.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=at.hasCaptures(this._contentName)}get debugName(){let t=this.$location?`${sr(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${t}`}getName(t,e){return!this._nameIsCapturing||this._name===null||t===null||e===null?this._name:at.replaceCaptures(this._name,t,e)}getContentName(t,e){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:at.replaceCaptures(this._contentName,t,e)}},Do=class extends ze{constructor(e,n,r,s,o){super(e,n,r,s);g(this,"retokenizeCapturedWithRuleId");this.retokenizeCapturedWithRuleId=o}dispose(){}collectPatterns(e,n){throw new Error("Not supported!")}compile(e,n){throw new Error("Not supported!")}compileAG(e,n,r,s){throw new Error("Not supported!")}},Fo=class extends ze{constructor(e,n,r,s,o){super(e,n,r,null);g(this,"_match");g(this,"captures");g(this,"_cachedCompiledPatterns");this._match=new Ue(s,this.id),this.captures=o,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,n){n.push(this._match)}compile(e,n){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,n,r,s){return this._getCachedCompiledPatterns(e).compileAG(e,r,s)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new je,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Yn=class extends ze{constructor(e,n,r,s,o){super(e,n,r,s);g(this,"hasMissingPatterns");g(this,"patterns");g(this,"_cachedCompiledPatterns");this.patterns=o.patterns,this.hasMissingPatterns=o.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,n){for(let r of this.patterns)e.getRule(r).collectPatterns(e,n)}compile(e,n){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,n,r,s){return this._getCachedCompiledPatterns(e).compileAG(e,r,s)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new je,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Zt=class extends ze{constructor(e,n,r,s,o,a,i,l,c,u){super(e,n,r,s);g(this,"_begin");g(this,"beginCaptures");g(this,"_end");g(this,"endHasBackReferences");g(this,"endCaptures");g(this,"applyEndPatternLast");g(this,"hasMissingPatterns");g(this,"patterns");g(this,"_cachedCompiledPatterns");this._begin=new Ue(o,this.id),this.beginCaptures=a,this._end=new Ue(i||"\uFFFF",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=l,this.applyEndPatternLast=c||!1,this.patterns=u.patterns,this.hasMissingPatterns=u.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,n){return this._end.resolveBackReferences(e,n)}collectPatterns(e,n){n.push(this._begin)}compile(e,n){return this._getCachedCompiledPatterns(e,n).compile(e)}compileAG(e,n,r,s){return this._getCachedCompiledPatterns(e,n).compileAG(e,r,s)}_getCachedCompiledPatterns(e,n){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new je;for(let r of this.patterns)e.getRule(r).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,n):this._cachedCompiledPatterns.setSource(0,n)),this._cachedCompiledPatterns}},ht=class extends ze{constructor(e,n,r,s,o,a,i,l,c){super(e,n,r,s);g(this,"_begin");g(this,"beginCaptures");g(this,"whileCaptures");g(this,"_while");g(this,"whileHasBackReferences");g(this,"hasMissingPatterns");g(this,"patterns");g(this,"_cachedCompiledPatterns");g(this,"_cachedCompiledWhilePatterns");this._begin=new Ue(o,this.id),this.beginCaptures=a,this.whileCaptures=l,this._while=new Ue(i,fr),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.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,n){return this._while.resolveBackReferences(e,n)}collectPatterns(e,n){n.push(this._begin)}compile(e,n){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,n,r,s){return this._getCachedCompiledPatterns(e).compileAG(e,r,s)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new je;for(let n of this.patterns)e.getRule(n).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,n){return this._getCachedCompiledWhilePatterns(e,n).compile(e)}compileWhileAG(e,n,r,s){return this._getCachedCompiledWhilePatterns(e,n).compileAG(e,r,s)}_getCachedCompiledWhilePatterns(e,n){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new je,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,n||"\uFFFF"),this._cachedCompiledWhilePatterns}},dr=class ${static createCaptureRule(e,n,r,s,o){return e.registerRule(a=>new Do(n,a,r,s,o))}static getCompiledRuleId(e,n,r){return e.id||n.registerRule(s=>{if(e.id=s,e.match)return new Fo(e.$vscodeTextmateLocation,e.id,e.name,e.match,$._compileCaptures(e.captures,n,r));if(typeof e.begin>"u"){e.repository&&(r=rr({},r,e.repository));let o=e.patterns;return typeof o>"u"&&e.include&&(o=[{include:e.include}]),new Yn(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,$._compilePatterns(o,n,r))}return e.while?new ht(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,$._compileCaptures(e.beginCaptures||e.captures,n,r),e.while,$._compileCaptures(e.whileCaptures||e.captures,n,r),$._compilePatterns(e.patterns,n,r)):new Zt(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,$._compileCaptures(e.beginCaptures||e.captures,n,r),e.end,$._compileCaptures(e.endCaptures||e.captures,n,r),e.applyEndPatternLast,$._compilePatterns(e.patterns,n,r))}),e.id}static _compileCaptures(e,n,r){let s=[];if(e){let o=0;for(let a in e){if(a==="$vscodeTextmateLocation")continue;let i=parseInt(a,10);i>o&&(o=i)}for(let a=0;a<=o;a++)s[a]=null;for(let a in e){if(a==="$vscodeTextmateLocation")continue;let i=parseInt(a,10),l=0;e[a].patterns&&(l=$.getCompiledRuleId(e[a],n,r)),s[i]=$.createCaptureRule(n,e[a].$vscodeTextmateLocation,e[a].name,e[a].contentName,l)}}return s}static _compilePatterns(e,n,r){let s=[];if(e)for(let o=0,a=e.length;o<a;o++){let i=e[o],l=-1;if(i.include){let c=pr(i.include);switch(c.kind){case 0:case 1:l=$.getCompiledRuleId(r[i.include],n,r);break;case 2:let u=r[c.ruleName];u&&(l=$.getCompiledRuleId(u,n,r));break;case 3:case 4:let h=c.scopeName,p=c.kind===4?c.ruleName:null,d=n.getExternalGrammar(h,r);if(d)if(p){let f=d.repository[p];f&&(l=$.getCompiledRuleId(f,n,d.repository))}else l=$.getCompiledRuleId(d.repository.$self,n,d.repository);break}}else l=$.getCompiledRuleId(i,n,r);if(l!==-1){let c=n.getRule(l),u=!1;if((c instanceof Yn||c instanceof Zt||c instanceof ht)&&c.hasMissingPatterns&&c.patterns.length===0&&(u=!0),u)continue;s.push(l)}}return{patterns:s,hasMissingPatterns:(e?e.length:0)!==s.length}}},Ue=class gr{constructor(e,n){g(this,"source");g(this,"ruleId");g(this,"hasAnchor");g(this,"hasBackReferences");g(this,"_anchorCache");if(e&&typeof e=="string"){let r=e.length,s=0,o=[],a=!1;for(let i=0;i<r;i++)if(e.charAt(i)==="\\"&&i+1<r){let c=e.charAt(i+1);c==="z"?(o.push(e.substring(s,i)),o.push("$(?!\\n)(?<!\\n)"),s=i+2):(c==="A"||c==="G")&&(a=!0),i++}this.hasAnchor=a,s===0?this.source=e:(o.push(e.substring(s,r)),this.source=o.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,typeof this.source=="string"?this.hasBackReferences=Go.test(this.source):this.hasBackReferences=!1}clone(){return new gr(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,n){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let r=n.map(s=>e.substring(s.start,s.end));return Zn.lastIndex=0,this.source.replace(Zn,(s,o)=>ir(r[parseInt(o,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let e=[],n=[],r=[],s=[],o,a,i,l;for(o=0,a=this.source.length;o<a;o++)i=this.source.charAt(o),e[o]=i,n[o]=i,r[o]=i,s[o]=i,i==="\\"&&o+1<a&&(l=this.source.charAt(o+1),l==="A"?(e[o+1]="\uFFFF",n[o+1]="\uFFFF",r[o+1]="A",s[o+1]="A"):l==="G"?(e[o+1]="\uFFFF",n[o+1]="G",r[o+1]="\uFFFF",s[o+1]="G"):(e[o+1]=l,n[o+1]=l,r[o+1]=l,s[o+1]=l),o++);return{A0_G0:e.join(""),A0_G1:n.join(""),A1_G0:r.join(""),A1_G1:s.join("")}}resolveAnchors(e,n){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:e?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},je=class{constructor(){g(this,"_items");g(this,"_hasAnchors");g(this,"_cached");g(this,"_anchorCache");this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(t){this._items.push(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}unshift(t){this._items.unshift(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}length(){return this._items.length}setSource(t,e){this._items[t].source!==e&&(this._disposeCaches(),this._items[t].setSource(e))}compile(t){if(!this._cached){let e=this._items.map(n=>n.source);this._cached=new Jn(t,e,this._items.map(n=>n.ruleId))}return this._cached}compileAG(t,e,n){return this._hasAnchors?e?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(t,e,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(t,e,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(t,e,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(t,e,n)),this._anchorCache.A0_G0):this.compile(t)}_resolveAnchors(t,e,n){let r=this._items.map(s=>s.resolveAnchors(e,n));return new Jn(t,r,this._items.map(s=>s.ruleId))}},Jn=class{constructor(t,e,n){g(this,"scanner");this.regExps=e,this.rules=n,this.scanner=t.createOnigScanner(e)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){let t=[];for(let e=0,n=this.rules.length;e<n;e++)t.push("   - "+this.rules[e]+": "+this.regExps[e]);return t.join(`
`)}findNextMatchSync(t,e,n){let r=this.scanner.findNextMatchSync(t,e,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},Vt=class{constructor(t,e){this.languageId=t,this.tokenType=e}},Q,Uo=(Q=class{constructor(e,n){g(this,"_defaultAttributes");g(this,"_embeddedLanguagesMatcher");g(this,"_getBasicScopeAttributes",new lr(e=>{let n=this._scopeToLanguage(e),r=this._toStandardTokenType(e);return new Vt(n,r)}));this._defaultAttributes=new Vt(e,8),this._embeddedLanguagesMatcher=new jo(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return e===null?Q._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){let n=e.match(Q.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}},g(Q,"_NULL_SCOPE_METADATA",new Vt(0,0)),g(Q,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/),Q),jo=class{constructor(t){g(this,"values");g(this,"scopesRegExp");if(t.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(t);let e=t.map(([n,r])=>ir(n));e.sort(),e.reverse(),this.scopesRegExp=new RegExp(`^((${e.join(")|(")}))($|\\.)`,"")}}match(t){if(!this.scopesRegExp)return;let e=t.match(this.scopesRegExp);if(e)return this.values.get(e[1])}},dc={InDebugMode:typeof process<"u"&&!!process.env.VSCODE_TEXTMATE_DEBUG},mr=!1,er=class{constructor(t,e){this.stack=t,this.stoppedEarly=e}};function yr(t,e,n,r,s,o,a,i){let l=e.content.length,c=!1,u=-1;if(a){let d=zo(t,e,n,r,s,o);s=d.stack,r=d.linePos,n=d.isFirstLine,u=d.anchorPosition}let h=Date.now();for(;!c;){if(i!==0&&Date.now()-h>i)return new er(s,!0);p()}return new er(s,!1);function p(){let d=Wo(t,e,n,r,s,u);if(!d){o.produce(s,l),c=!0;return}let f=d.captureIndices,C=d.matchedRuleId,w=f&&f.length>0?f[0].end>r:!1;if(C===Bo){let y=s.getRule(t);o.produce(s,f[0].start),s=s.withContentNameScopesList(s.nameScopesList),Ge(t,e,n,s,o,y.endCaptures,f),o.produce(s,f[0].end);let b=s;if(s=s.parent,u=b.getAnchorPos(),!w&&b.getEnterPos()===r){s=b,o.produce(s,l),c=!0;return}}else{let y=t.getRule(C);o.produce(s,f[0].start);let b=s,k=y.getName(e.content,f),x=s.contentNameScopesList.pushAttributed(k,t);if(s=s.push(C,r,u,f[0].end===l,null,x,x),y instanceof Zt){let v=y;Ge(t,e,n,s,o,v.beginCaptures,f),o.produce(s,f[0].end),u=f[0].end;let O=v.getContentName(e.content,f),B=x.pushAttributed(O,t);if(s=s.withContentNameScopesList(B),v.endHasBackReferences&&(s=s.withEndRule(v.getEndWithResolvedBackReferences(e.content,f))),!w&&b.hasSameRuleAs(s)){s=s.pop(),o.produce(s,l),c=!0;return}}else if(y instanceof ht){let v=y;Ge(t,e,n,s,o,v.beginCaptures,f),o.produce(s,f[0].end),u=f[0].end;let O=v.getContentName(e.content,f),B=x.pushAttributed(O,t);if(s=s.withContentNameScopesList(B),v.whileHasBackReferences&&(s=s.withEndRule(v.getWhileWithResolvedBackReferences(e.content,f))),!w&&b.hasSameRuleAs(s)){s=s.pop(),o.produce(s,l),c=!0;return}}else if(Ge(t,e,n,s,o,y.captures,f),o.produce(s,f[0].end),s=s.pop(),!w){s=s.safePop(),o.produce(s,l),c=!0;return}}f[0].end>r&&(r=f[0].end,n=!1)}}function zo(t,e,n,r,s,o){let a=s.beginRuleCapturedEOL?0:-1,i=[];for(let l=s;l;l=l.pop()){let c=l.getRule(t);c instanceof ht&&i.push({rule:c,stack:l})}for(let l=i.pop();l;l=i.pop()){let{ruleScanner:c,findOptions:u}=Vo(l.rule,t,l.stack.endRule,n,r===a),h=c.findNextMatchSync(e,r,u);if(h){if(h.ruleId!==fr){s=l.stack.pop();break}h.captureIndices&&h.captureIndices.length&&(o.produce(l.stack,h.captureIndices[0].start),Ge(t,e,n,l.stack,o,l.rule.whileCaptures,h.captureIndices),o.produce(l.stack,h.captureIndices[0].end),a=h.captureIndices[0].end,h.captureIndices[0].end>r&&(r=h.captureIndices[0].end,n=!1))}else{s=l.stack.pop();break}}return{stack:s,linePos:r,anchorPosition:a,isFirstLine:n}}function Wo(t,e,n,r,s,o){let a=Ho(t,e,n,r,s,o),i=t.getInjections();if(i.length===0)return a;let l=qo(i,t,e,n,r,s,o);if(!l)return a;if(!a)return l;let c=a.captureIndices[0].start,u=l.captureIndices[0].start;return u<c||l.priorityMatch&&u===c?l:a}function Ho(t,e,n,r,s,o){let a=s.getRule(t),{ruleScanner:i,findOptions:l}=br(a,t,s.endRule,n,r===o),c=i.findNextMatchSync(e,r,l);return c?{captureIndices:c.captureIndices,matchedRuleId:c.ruleId}:null}function qo(t,e,n,r,s,o,a){let i=Number.MAX_VALUE,l=null,c,u=0,h=o.contentNameScopesList.getScopeNames();for(let p=0,d=t.length;p<d;p++){let f=t[p];if(!f.matcher(h))continue;let C=e.getRule(f.ruleId),{ruleScanner:w,findOptions:y}=br(C,e,null,r,s===a),b=w.findNextMatchSync(n,s,y);if(!b)continue;let k=b.captureIndices[0].start;if(!(k>=i)&&(i=k,l=b.captureIndices,c=b.ruleId,u=f.priority,i===s))break}return l?{priorityMatch:u===-1,captureIndices:l,matchedRuleId:c}:null}function br(t,e,n,r,s){if(mr){let a=t.compile(e,n),i=wr(r,s);return{ruleScanner:a,findOptions:i}}return{ruleScanner:t.compileAG(e,n,r,s),findOptions:0}}function Vo(t,e,n,r,s){if(mr){let a=t.compileWhile(e,n),i=wr(r,s);return{ruleScanner:a,findOptions:i}}return{ruleScanner:t.compileWhileAG(e,n,r,s),findOptions:0}}function wr(t,e){let n=0;return t||(n|=1),e||(n|=4),n}function Ge(t,e,n,r,s,o,a){if(o.length===0)return;let i=e.content,l=Math.min(o.length,a.length),c=[],u=a[0].end;for(let h=0;h<l;h++){let p=o[h];if(p===null)continue;let d=a[h];if(d.length===0)continue;if(d.start>u)break;for(;c.length>0&&c[c.length-1].endPos<=d.start;)s.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?s.produceFromScopes(c[c.length-1].scopes,d.start):s.produce(r,d.start),p.retokenizeCapturedWithRuleId){let C=p.getName(i,a),w=r.contentNameScopesList.pushAttributed(C,t),y=p.getContentName(i,a),b=w.pushAttributed(y,t),k=r.push(p.retokenizeCapturedWithRuleId,d.start,-1,!1,null,w,b),x=t.createOnigString(i.substring(0,d.end));yr(t,x,n&&d.start===0,d.start,k,s,!1,0),hr(x);continue}let f=p.getName(i,a);if(f!==null){let w=(c.length>0?c[c.length-1].scopes:r.contentNameScopesList).pushAttributed(f,t);c.push(new Xo(w,d.end))}}for(;c.length>0;)s.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop()}var Xo=class{constructor(t,e){g(this,"scopes");g(this,"endPos");this.scopes=t,this.endPos=e}};function Ko(t,e,n,r,s,o,a,i){return new Zo(t,e,n,r,s,o,a,i)}function tr(t,e,n,r,s){let o=ct(e,pt),a=dr.getCompiledRuleId(n,r,s.repository);for(let i of o)t.push({debugSelector:e,matcher:i.matcher,ruleId:a,grammar:s,priority:i.priority})}function pt(t,e){if(e.length<t.length)return!1;let n=0;return t.every(r=>{for(let s=n;s<e.length;s++)if(Qo(e[s],r))return n=s+1,!0;return!1})}function Qo(t,e){if(!t)return!1;if(t===e)return!0;let n=e.length;return t.length>n&&t.substr(0,n)===e&&t[n]==="."}var Zo=class{constructor(t,e,n,r,s,o,a,i){g(this,"_rootId");g(this,"_lastRuleId");g(this,"_ruleId2desc");g(this,"_includedGrammars");g(this,"_grammarRepository");g(this,"_grammar");g(this,"_injections");g(this,"_basicScopeAttributesProvider");g(this,"_tokenTypeMatchers");if(this._rootScopeName=t,this.balancedBracketSelectors=o,this._onigLib=i,this._basicScopeAttributesProvider=new Uo(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=a,this._grammar=nr(e,null),this._injections=null,this._tokenTypeMatchers=[],s)for(let l of Object.keys(s)){let c=ct(l,pt);for(let u of c)this._tokenTypeMatchers.push({matcher:u.matcher,type:s[l]})}}get themeProvider(){return this._grammarRepository}dispose(){for(let t of this._ruleId2desc)t&&t.dispose()}createOnigScanner(t){return this._onigLib.createOnigScanner(t)}createOnigString(t){return this._onigLib.createOnigString(t)}getMetadataForScope(t){return this._basicScopeAttributesProvider.getBasicScopeAttributes(t)}_collectInjections(){let t={lookup:s=>s===this._rootScopeName?this._grammar:this.getExternalGrammar(s),injections:s=>this._grammarRepository.injections(s)},e=[],n=this._rootScopeName,r=t.lookup(n);if(r){let s=r.injections;if(s)for(let a in s)tr(e,a,s[a],this,r);let o=this._grammarRepository.injections(n);o&&o.forEach(a=>{let i=this.getExternalGrammar(a);if(i){let l=i.injectionSelector;l&&tr(e,l,i,this,i)}})}return e.sort((s,o)=>s.priority-o.priority),e}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(t){let e=++this._lastRuleId,n=t(e);return this._ruleId2desc[e]=n,n}getRule(t){return this._ruleId2desc[t]}getExternalGrammar(t,e){if(this._includedGrammars[t])return this._includedGrammars[t];if(this._grammarRepository){let n=this._grammarRepository.lookup(t);if(n)return this._includedGrammars[t]=nr(n,e&&e.$base),this._includedGrammars[t]}}tokenizeLine(t,e,n=0){let r=this._tokenize(t,e,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(t,e,n=0){let r=this._tokenize(t,e,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(t,e,n,r){this._rootId===-1&&(this._rootId=dr.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let s;if(!e||e===Yt.NULL){s=!0;let c=this._basicScopeAttributesProvider.getDefaultAttributes(),u=this.themeProvider.getDefaults(),h=ye.set(0,c.languageId,c.tokenType,null,u.fontStyle,u.foregroundId,u.backgroundId),p=this.getRule(this._rootId).getName(null,null),d;p?d=Be.createRootAndLookUpScopeName(p,h,this):d=Be.createRoot("unknown",h),e=new Yt(null,this._rootId,-1,-1,!1,null,d,d)}else s=!1,e.reset();t=t+`
`;let o=this.createOnigString(t),a=o.content.length,i=new Jo(n,t,this._tokenTypeMatchers,this.balancedBracketSelectors),l=yr(this,o,s,0,e,i,!0,r);return hr(o),{lineLength:a,lineTokens:i,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function nr(t,e){return t=mo(t),t.repository=t.repository||{},t.repository.$self={$vscodeTextmateLocation:t.$vscodeTextmateLocation,patterns:t.patterns,name:t.scopeName},t.repository.$base=e||t.repository.$self,t}var Be=class V{constructor(e,n,r){this.parent=e,this.scopePath=n,this.tokenAttributes=r}static fromExtension(e,n){let r=e,s=e?.scopePath??null;for(let o of n)s=qt.push(s,o.scopeNames),r=new V(r,s,o.encodedTokenAttributes);return r}static createRoot(e,n){return new V(null,new qt(null,e),n)}static createRootAndLookUpScopeName(e,n,r){let s=r.getMetadataForScope(e),o=new qt(null,e),a=r.themeProvider.themeMatch(o),i=V.mergeAttributes(n,s,a);return new V(null,o,i)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(e){return V.equals(this,e)}static equals(e,n){do{if(e===n||!e&&!n)return!0;if(!e||!n||e.scopeName!==n.scopeName||e.tokenAttributes!==n.tokenAttributes)return!1;e=e.parent,n=n.parent}while(!0)}static mergeAttributes(e,n,r){let s=-1,o=0,a=0;return r!==null&&(s=r.fontStyle,o=r.foregroundId,a=r.backgroundId),ye.set(e,n.languageId,n.tokenType,null,s,o,a)}pushAttributed(e,n){if(e===null)return this;if(e.indexOf(" ")===-1)return V._pushAttributed(this,e,n);let r=e.split(/ /g),s=this;for(let o of r)s=V._pushAttributed(s,o,n);return s}static _pushAttributed(e,n,r){let s=r.getMetadataForScope(n),o=e.scopePath.push(n),a=r.themeProvider.themeMatch(o),i=V.mergeAttributes(e.tokenAttributes,s,a);return new V(e,o,i)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){let n=[],r=this;for(;r&&r!==e;)n.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(r.parent?.scopePath??null)}),r=r.parent;return r===e?n.reverse():void 0}},z,Yt=(z=class{constructor(e,n,r,s,o,a,i,l){g(this,"_stackElementBrand");g(this,"_enterPos");g(this,"_anchorPos");g(this,"depth");this.parent=e,this.ruleId=n,this.beginRuleCapturedEOL=o,this.endRule=a,this.nameScopesList=i,this.contentNameScopesList=l,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=s}equals(e){return e===null?!1:z._equals(this,e)}static _equals(e,n){return e===n?!0:this._structuralEquals(e,n)?Be.equals(e.contentNameScopesList,n.contentNameScopesList):!1}static _structuralEquals(e,n){do{if(e===n||!e&&!n)return!0;if(!e||!n||e.depth!==n.depth||e.ruleId!==n.ruleId||e.endRule!==n.endRule)return!1;e=e.parent,n=n.parent}while(!0)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){z._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,n,r,s,o,a,i){return new z(this,e,n,r,s,o,a,i)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){let e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,n){return this.parent&&(n=this.parent._writeString(e,n)),e[n++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,n}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new z(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let n=this;for(;n&&n._enterPos===e._enterPos;){if(n.ruleId===e.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(e,n){let r=Be.fromExtension(e?.nameScopesList??null,n.nameScopesList);return new z(e,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,Be.fromExtension(r,n.contentNameScopesList))}},g(z,"NULL",new z(null,0,0,0,!1,null,null,null)),z),Yo=class{constructor(t,e){g(this,"balancedBracketScopes");g(this,"unbalancedBracketScopes");g(this,"allowAny",!1);this.balancedBracketScopes=t.flatMap(n=>n==="*"?(this.allowAny=!0,[]):ct(n,pt).map(r=>r.matcher)),this.unbalancedBracketScopes=e.flatMap(n=>ct(n,pt).map(r=>r.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(t){for(let e of this.unbalancedBracketScopes)if(e(t))return!1;for(let e of this.balancedBracketScopes)if(e(t))return!0;return this.allowAny}},Jo=class{constructor(t,e,n,r){g(this,"_emitBinaryTokens");g(this,"_lineText");g(this,"_tokens");g(this,"_binaryTokens");g(this,"_lastTokenEndIndex");g(this,"_tokenTypeOverrides");this.balancedBracketSelectors=r,this._emitBinaryTokens=t,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(t,e){this.produceFromScopes(t.contentNameScopesList,e)}produceFromScopes(t,e){if(this._lastTokenEndIndex>=e)return;if(this._emitBinaryTokens){let r=t?.tokenAttributes??0,s=!1;if(this.balancedBracketSelectors?.matchesAlways&&(s=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let o=t?.getScopeNames()??[];for(let a of this._tokenTypeOverrides)a.matcher(o)&&(r=ye.set(r,0,a.type,null,-1,0,0));this.balancedBracketSelectors&&(s=this.balancedBracketSelectors.match(o))}if(s&&(r=ye.set(r,0,8,s,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===r){this._lastTokenEndIndex=e;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(r),this._lastTokenEndIndex=e;return}let n=t?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:e,scopes:n}),this._lastTokenEndIndex=e}getResult(t,e){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===e-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(t,e),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(t,e){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===e-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(t,e),this._binaryTokens[this._binaryTokens.length-2]=0);let n=new Uint32Array(this._binaryTokens.length);for(let r=0,s=this._binaryTokens.length;r<s;r++)n[r]=this._binaryTokens[r];return n}},ea=class{constructor(t,e){g(this,"_grammars",new Map);g(this,"_rawGrammars",new Map);g(this,"_injectionGrammars",new Map);g(this,"_theme");this._onigLib=e,this._theme=t}dispose(){for(let t of this._grammars.values())t.dispose()}setTheme(t){this._theme=t}getColorMap(){return this._theme.getColorMap()}addGrammar(t,e){this._rawGrammars.set(t.scopeName,t),e&&this._injectionGrammars.set(t.scopeName,e)}lookup(t){return this._rawGrammars.get(t)}injections(t){return this._injectionGrammars.get(t)}getDefaults(){return this._theme.getDefaults()}themeMatch(t){return this._theme.match(t)}grammarForScopeName(t,e,n,r,s){if(!this._grammars.has(t)){let o=this._rawGrammars.get(t);if(!o)return null;this._grammars.set(t,Ko(t,o,e,n,r,s,this,this._onigLib))}return this._grammars.get(t)}},Cr=class{constructor(t){g(this,"_options");g(this,"_syncRegistry");g(this,"_ensureGrammarCache");this._options=t,this._syncRegistry=new ea(De.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,e){this._syncRegistry.setTheme(De.createFromRawTheme(t,e))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(t,e,n){return this.loadGrammarWithConfiguration(t,e,{embeddedLanguages:n})}loadGrammarWithConfiguration(t,e,n){return this._loadGrammar(t,e,n.embeddedLanguages,n.tokenTypes,new Yo(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,e,n,r,s){let o=new No(this._syncRegistry,t);for(;o.Q.length>0;)o.Q.map(a=>this._loadSingleGrammar(a.scopeName)),o.processQueue();return this._grammarForScopeName(t,e,n,r,s)}_loadSingleGrammar(t){this._ensureGrammarCache.has(t)||(this._doLoadSingleGrammar(t),this._ensureGrammarCache.set(t,!0))}_doLoadSingleGrammar(t){let e=this._options.loadGrammar(t);if(e){let n=typeof this._options.getInjections=="function"?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(e,n)}}addGrammar(t,e=[],n=0,r=null){return this._syncRegistry.addGrammar(t,e),this._grammarForScopeName(t.scopeName,n,r)}_grammarForScopeName(t,e=0,n=null,r=null,s=null){return this._syncRegistry.grammarForScopeName(t,e,n,r,s)}},ft=Yt.NULL;function He(t,e){let n=typeof t=="string"?{}:{...t.colorReplacements},r=typeof t=="string"?t:t.name;for(let[s,o]of Object.entries(e?.colorReplacements||{}))typeof o=="string"?n[s]=o:s===r&&Object.assign(n,o);return n}function Z(t,e){return t&&(e?.[t?.toLowerCase()]||t)}function vr(t){return Array.isArray(t)?t:[t]}async function en(t){return Promise.resolve(typeof t=="function"?t():t).then(e=>e.default||e)}function qe(t){return!t||["plaintext","txt","text","plain"].includes(t)}function Ar(t){return t==="ansi"||qe(t)}function Ve(t){return t==="none"}function Er(t){return Ve(t)}function Re(t,e=!1){if(t.length===0)return[["",0]];let n=t.split(/(\r?\n)/g),r=0,s=[];for(let o=0;o<n.length;o+=2){let a=e?n[o]+(n[o+1]||""):n[o];s.push([a,r]),r+=n[o].length,r+=n[o+1]?.length||0}return s}var kr={light:"#333333",dark:"#bbbbbb"},Sr={light:"#fffffe",dark:"#1e1e1e"},_r="__shiki_resolved";function dt(t){if(t?.[_r])return t;let e={...t};e.tokenColors&&!e.settings&&(e.settings=e.tokenColors,delete e.tokenColors),e.type||(e.type="dark"),e.colorReplacements={...e.colorReplacements},e.settings||(e.settings=[]);let{bg:n,fg:r}=e;if(!n||!r){let i=e.settings?e.settings.find(l=>!l.name&&!l.scope):void 0;i?.settings?.foreground&&(r=i.settings.foreground),i?.settings?.background&&(n=i.settings.background),!r&&e?.colors?.["editor.foreground"]&&(r=e.colors["editor.foreground"]),!n&&e?.colors?.["editor.background"]&&(n=e.colors["editor.background"]),r||(r=e.type==="light"?kr.light:kr.dark),n||(n=e.type==="light"?Sr.light:Sr.dark),e.fg=r,e.bg=n}e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope||e.settings.unshift({settings:{foreground:e.fg,background:e.bg}});let s=0,o=new Map;function a(i){if(o.has(i))return o.get(i);s+=1;let l=`#${s.toString(16).padStart(8,"0").toLowerCase()}`;return e.colorReplacements?.[`#${l}`]?a(i):(o.set(i,l),l)}e.settings=e.settings.map(i=>{let l=i.settings?.foreground&&!i.settings.foreground.startsWith("#"),c=i.settings?.background&&!i.settings.background.startsWith("#");if(!l&&!c)return i;let u={...i,settings:{...i.settings}};if(l){let h=a(i.settings.foreground);e.colorReplacements[h]=i.settings.foreground,u.settings.foreground=h}if(c){let h=a(i.settings.background);e.colorReplacements[h]=i.settings.background,u.settings.background=h}return u});for(let i of Object.keys(e.colors||{}))if((i==="editor.foreground"||i==="editor.background"||i.startsWith("terminal.ansi"))&&!e.colors[i]?.startsWith("#")){let l=a(e.colors[i]);e.colorReplacements[l]=e.colors[i],e.colors[i]=l}return Object.defineProperty(e,_r,{enumerable:!1,writable:!1,value:!0}),e}async function ta(t){return Array.from(new Set((await Promise.all(t.filter(e=>!Ar(e)).map(async e=>await en(e).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function na(t){return(await Promise.all(t.map(async e=>Er(e)?null:dt(await en(e))))).filter(e=>!!e)}function Ir(t,e){if(!e)return t;if(e[t]){let n=new Set([t]);for(;e[t];){if(t=e[t],n.has(t))throw new E(`Circular alias \`${Array.from(n).join(" -> ")} -> ${t}\``);n.add(t)}}return t}var ra=class extends Cr{constructor(e,n,r,s={}){super(e);g(this,"_resolvedThemes",new Map);g(this,"_resolvedGrammars",new Map);g(this,"_langMap",new Map);g(this,"_langGraph",new Map);g(this,"_textmateThemeCache",new WeakMap);g(this,"_loadedThemesCache",null);g(this,"_loadedLanguagesCache",null);this._resolver=e,this._themes=n,this._langs=r,this._alias=s,this._themes.map(o=>this.loadTheme(o)),this.loadLanguages(this._langs)}getTheme(e){return typeof e=="string"?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let n=dt(e);return n.name&&(this._resolvedThemes.set(n.name,n),this._loadedThemesCache=null),n}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let n=this._textmateThemeCache.get(e);n||(n=De.createFromRawTheme(e),this._textmateThemeCache.set(e,n)),this._syncRegistry.setTheme(n)}getGrammar(e){return e=Ir(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;let n=new Set([...this._langMap.values()].filter(o=>o.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);let r={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let s=this.loadGrammarWithConfiguration(e.scopeName,1,r);if(s.name=e.name,this._resolvedGrammars.set(e.name,s),e.aliases&&e.aliases.forEach(o=>{this._alias[o]=e.name}),this._loadedLanguagesCache=null,n.size)for(let o of n)this._resolvedGrammars.delete(o.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(o.scopeName),this._syncRegistry?._grammars?.delete(o.scopeName),this.loadLanguage(this._langMap.get(o.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(let s of e)this.resolveEmbeddedLanguages(s);let n=Array.from(this._langGraph.entries()),r=n.filter(([s,o])=>!o);if(r.length){let s=n.filter(([o,a])=>a?(a.embeddedLanguages||a.embeddedLangs)?.some(i=>r.map(([l])=>l).includes(i)):!1).filter(o=>!r.includes(o));throw new E(`Missing languages ${r.map(([o])=>`\`${o}\``).join(", ")}, required by ${s.map(([o])=>`\`${o}\``).join(", ")}`)}for(let[s,o]of n)this._resolver.addLanguage(o);for(let[s,o]of n)this.loadLanguage(o)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);let n=e.embeddedLanguages??e.embeddedLangs;if(n)for(let r of n)this._langGraph.set(r,this._langMap.get(r))}},sa=class{constructor(t,e){g(this,"_langs",new Map);g(this,"_scopeToLang",new Map);g(this,"_injections",new Map);g(this,"_onigLib");this._onigLib={createOnigScanner:n=>t.createScanner(n),createOnigString:n=>t.createString(n)},e.forEach(n=>this.addLanguage(n))}get onigLib(){return this._onigLib}getLangRegistration(t){return this._langs.get(t)}loadGrammar(t){return this._scopeToLang.get(t)}addLanguage(t){this._langs.set(t.name,t),t.aliases&&t.aliases.forEach(e=>{this._langs.set(e,t)}),this._scopeToLang.set(t.scopeName,t),t.injectTo&&t.injectTo.forEach(e=>{this._injections.get(e)||this._injections.set(e,[]),this._injections.get(e).push(t.scopeName)})}getInjections(t){let e=t.split("."),n=[];for(let r=1;r<=e.length;r++){let s=e.slice(0,r).join(".");n=[...n,...this._injections.get(s)||[]]}return n}},We=0;function tn(t){We+=1,t.warnings!==!1&&We>=10&&We%10===0&&console.warn(`[Shiki] ${We} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let e=!1;if(!t.engine)throw new E("`engine` option is required for synchronous mode");let n=(t.langs||[]).flat(1),r=(t.themes||[]).flat(1).map(dt),s=new ra(new sa(t.engine,n),r,n,t.langAlias),o;function a(b){return Ir(b,t.langAlias)}function i(b){w();let k=s.getGrammar(typeof b=="string"?b:b.name);if(!k)throw new E(`Language \`${b}\` not found, you may need to load it first`);return k}function l(b){if(b==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};w();let k=s.getTheme(b);if(!k)throw new E(`Theme \`${b}\` not found, you may need to load it first`);return k}function c(b){w();let k=l(b);return o!==b&&(s.setTheme(k),o=b),{theme:k,colorMap:s.getColorMap()}}function u(){return w(),s.getLoadedThemes()}function h(){return w(),s.getLoadedLanguages()}function p(...b){w(),s.loadLanguages(b.flat(1))}async function d(...b){return p(await ta(b))}function f(...b){w();for(let k of b.flat(1))s.loadTheme(k)}async function C(...b){return w(),f(await na(b))}function w(){if(e)throw new E("Shiki instance has been disposed")}function y(){e||(e=!0,s.dispose(),We-=1)}return{setTheme:c,getTheme:l,getLanguage:i,getLoadedThemes:u,getLoadedLanguages:h,resolveLangAlias:a,loadLanguage:d,loadLanguageSync:p,loadTheme:C,loadThemeSync:f,dispose:y,[Symbol.dispose]:y}}var Rr=new WeakMap;function Xe(t,e){Rr.set(t,e)}function Ne(t){return Rr.get(t)}var gt=class Nr{constructor(...e){g(this,"_stacks",{});g(this,"lang");if(e.length===2){let[n,r]=e;this.lang=r,this._stacks=n}else{let[n,r,s]=e;this.lang=r,this._stacks={[s]:n}}}get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(e,n){return new Nr(Object.fromEntries(vr(n).map(r=>[r,ft])),e)}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){return oa(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function oa(t){let e=[],n=new Set;function r(s){if(n.has(s))return;n.add(s);let o=s?.nameScopesList?.scopeName;o&&e.push(o),s.parent&&r(s.parent)}return r(t),e}function aa(t,e){if(!(t instanceof gt))throw new E("Invalid grammar state");return t.getInternalStack(e)}function nn(t,e,n={}){let{theme:r=t.getLoadedThemes()[0]}=n;if(qe(t.resolveLangAlias(n.lang||"text"))||Ve(r))return Re(e).map(i=>[{content:i[0],offset:i[1]}]);let{theme:s,colorMap:o}=t.setTheme(r),a=t.getLanguage(n.lang||"text");if(n.grammarState){if(n.grammarState.lang!==a.name)throw new E(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${a.name}"`);if(!n.grammarState.themes.includes(s.name))throw new E(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${s.name}"`)}return Tr(e,a,s,o,n)}function Lr(...t){if(t.length===2)return Ne(t[1]);let[e,n,r={}]=t,{lang:s="text",theme:o=e.getLoadedThemes()[0]}=r;if(qe(s)||Ve(o))throw new E("Plain language does not have grammar state");if(s==="ansi")throw new E("ANSI language does not have grammar state");let{theme:a,colorMap:i}=e.setTheme(o),l=e.getLanguage(s);return new gt(rn(n,l,a,i,r).stateStack,l.name,a.name)}function Tr(t,e,n,r,s){let o=rn(t,e,n,r,s),a=new gt(o.stateStack,e.name,n.name);return Xe(o.tokens,a),o.tokens}function rn(t,e,n,r,s){let o=He(n,s),{tokenizeMaxLineLength:a=0,tokenizeTimeLimit:i=500}=s,l=Re(t),c=s.grammarState?aa(s.grammarState,n.name)??ft:s.grammarContextCode!=null?rn(s.grammarContextCode,e,n,r,{...s,grammarState:void 0,grammarContextCode:void 0}).stateStack:ft,u=[],h=[];for(let p=0,d=l.length;p<d;p++){let[f,C]=l[p];if(f===""){u=[],h.push([]);continue}if(a>0&&f.length>=a){u=[],h.push([{content:f,offset:C,color:"",fontStyle:0}]);continue}let w,y,b;s.includeExplanation&&(w=e.tokenizeLine(f,c,i),y=w.tokens,b=0);let k=e.tokenizeLine2(f,c,i),x=k.tokens.length/2;for(let v=0;v<x;v++){let O=k.tokens[2*v],B=v+1<x?k.tokens[2*v+2]:f.length;if(O===B)continue;let X=k.tokens[2*v+1],ot=Z(r[ye.getForeground(X)],o),Ut=ye.getFontStyle(X),Oe={content:f.substring(O,B),offset:C+O,color:ot,fontStyle:Ut};if(s.includeExplanation){let ie=[];if(s.includeExplanation!=="scopeName")for(let K of n.settings){let Ie;switch(typeof K.scope){case"string":Ie=K.scope.split(/,/).map(jt=>jt.trim());break;case"object":Ie=K.scope;break;default:continue}ie.push({settings:K,selectors:Ie.map(jt=>jt.split(/ /))})}Oe.explanation=[];let Hn=0;for(;O+Hn<B;){let K=y[b],Ie=f.substring(K.startIndex,K.endIndex);Hn+=Ie.length,Oe.explanation.push({content:Ie,scopes:s.includeExplanation==="scopeName"?ia(K.scopes):la(ie,K.scopes)}),b+=1}}u.push(Oe)}h.push(u),u=[],c=k.ruleStack}return{tokens:h,stateStack:c}}function ia(t){return t.map(e=>({scopeName:e}))}function la(t,e){let n=[];for(let r=0,s=e.length;r<s;r++){let o=e[r];n[r]={scopeName:o,themeMatches:ua(t,o,e.slice(0,r))}}return n}function xr(t,e){return t===e||e.substring(0,t.length)===t&&e[t.length]==="."}function ca(t,e,n){if(!xr(t[t.length-1],e))return!1;let r=t.length-2,s=n.length-1;for(;r>=0&&s>=0;)xr(t[r],n[s])&&(r-=1),s-=1;return r===-1}function ua(t,e,n){let r=[];for(let{selectors:s,settings:o}of t)for(let a of s)if(ca(a,e,n)){r.push(o);break}return r}function mt(t,e,n,r=nn){let s=Object.entries(n.themes).filter(c=>c[1]).map(c=>({color:c[0],theme:c[1]})),o=s.map(c=>{let u=r(t,e,{...n,theme:c.theme});return{tokens:u,state:Ne(u),theme:typeof c.theme=="string"?c.theme:c.theme.name}}),a=ha(...o.map(c=>c.tokens)),i=a[0].map((c,u)=>c.map((h,p)=>{let d={content:h.content,variants:{},offset:h.offset};return"includeExplanation"in n&&n.includeExplanation&&(d.explanation=h.explanation),a.forEach((f,C)=>{let{content:w,explanation:y,offset:b,...k}=f[u][p];d.variants[s[C].color]=k}),d})),l=o[0].state?new gt(Object.fromEntries(o.map(c=>[c.theme,c.state?.getInternalStack(c.theme)])),o[0].state.lang):void 0;return l&&Xe(i,l),i}function ha(...t){let e=t.map(()=>[]),n=t.length;for(let r=0;r<t[0].length;r++){let s=t.map(l=>l[r]),o=e.map(()=>[]);e.forEach((l,c)=>l.push(o[c]));let a=s.map(()=>0),i=s.map(l=>l[0]);for(;i.every(l=>l);){let l=Math.min(...i.map(c=>c.content.length));for(let c=0;c<n;c++){let u=i[c];u.content.length===l?(o[c].push(u),a[c]+=1,i[c]=s[c][a[c]]):(o[c].push({...u,content:u.content.slice(0,l)}),i[c]={...u,content:u.content.slice(l),offset:u.offset+l})}}}return e}var Pr=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];var Y=class{constructor(e,n,r){this.normal=n,this.property=e,r&&(this.space=r)}};Y.prototype.normal={};Y.prototype.property={};Y.prototype.space=void 0;function sn(t,e){let n={},r={};for(let s of t)Object.assign(n,s.property),Object.assign(r,s.normal);return new Y(n,r,e)}function Ke(t){return t.toLowerCase()}var P=class{constructor(e,n){this.attribute=n,this.property=e}};P.prototype.attribute="";P.prototype.booleanish=!1;P.prototype.boolean=!1;P.prototype.commaOrSpaceSeparated=!1;P.prototype.commaSeparated=!1;P.prototype.defined=!1;P.prototype.mustUseProperty=!1;P.prototype.number=!1;P.prototype.overloadedBoolean=!1;P.prototype.property="";P.prototype.spaceSeparated=!1;P.prototype.space=void 0;var Qe={};go(Qe,{boolean:()=>S,booleanish:()=>I,commaOrSpaceSeparated:()=>D,commaSeparated:()=>le,number:()=>m,overloadedBoolean:()=>yt,spaceSeparated:()=>A});var pa=0,S=be(),I=be(),yt=be(),m=be(),A=be(),le=be(),D=be();function be(){return 2**++pa}var on=Object.keys(Qe),we=class extends P{constructor(e,n,r,s){let o=-1;if(super(e,n),Mr(this,"space",s),typeof r=="number")for(;++o<on.length;){let a=on[o];Mr(this,on[o],(r&Qe[a])===Qe[a])}}};we.prototype.defined=!0;function Mr(t,e,n){n&&(t[e]=n)}function W(t){let e={},n={};for(let[r,s]of Object.entries(t.properties)){let o=new we(r,t.transform(t.attributes||{},r),s,t.space);t.mustUseProperty&&t.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),e[r]=o,n[Ke(r)]=r,n[Ke(o.attribute)]=r}return new Y(e,n,t.space)}var an=W({properties:{ariaActiveDescendant:null,ariaAtomic:I,ariaAutoComplete:null,ariaBusy:I,ariaChecked:I,ariaColCount:m,ariaColIndex:m,ariaColSpan:m,ariaControls:A,ariaCurrent:null,ariaDescribedBy:A,ariaDetails:null,ariaDisabled:I,ariaDropEffect:A,ariaErrorMessage:null,ariaExpanded:I,ariaFlowTo:A,ariaGrabbed:I,ariaHasPopup:null,ariaHidden:I,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:A,ariaLevel:m,ariaLive:null,ariaModal:I,ariaMultiLine:I,ariaMultiSelectable:I,ariaOrientation:null,ariaOwns:A,ariaPlaceholder:null,ariaPosInSet:m,ariaPressed:I,ariaReadOnly:I,ariaRelevant:null,ariaRequired:I,ariaRoleDescription:A,ariaRowCount:m,ariaRowIndex:m,ariaRowSpan:m,ariaSelected:I,ariaSetSize:m,ariaSort:null,ariaValueMax:m,ariaValueMin:m,ariaValueNow:m,ariaValueText:null,role:null},transform(t,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()}});function bt(t,e){return e in t?t[e]:e}function wt(t,e){return bt(t,e.toLowerCase())}var $r=W({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:le,acceptCharset:A,accessKey:A,action:null,allow:null,allowFullScreen:S,allowPaymentRequest:S,allowUserMedia:S,alt:null,as:null,async:S,autoCapitalize:null,autoComplete:A,autoFocus:S,autoPlay:S,blocking:A,capture:null,charSet:null,checked:S,cite:null,className:A,cols:m,colSpan:null,content:null,contentEditable:I,controls:S,controlsList:A,coords:m|le,crossOrigin:null,data:null,dateTime:null,decoding:null,default:S,defer:S,dir:null,dirName:null,disabled:S,download:yt,draggable:I,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:S,formTarget:null,headers:A,height:m,hidden:yt,high:m,href:null,hrefLang:null,htmlFor:A,httpEquiv:A,id:null,imageSizes:null,imageSrcSet:null,inert:S,inputMode:null,integrity:null,is:null,isMap:S,itemId:null,itemProp:A,itemRef:A,itemScope:S,itemType:A,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:S,low:m,manifest:null,max:null,maxLength:m,media:null,method:null,min:null,minLength:m,multiple:S,muted:S,name:null,nonce:null,noModule:S,noValidate:S,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:S,optimum:m,pattern:null,ping:A,placeholder:null,playsInline:S,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:S,referrerPolicy:null,rel:A,required:S,reversed:S,rows:m,rowSpan:m,sandbox:A,scope:null,scoped:S,seamless:S,selected:S,shadowRootClonable:S,shadowRootDelegatesFocus:S,shadowRootMode:null,shape:null,size:m,sizes:null,slot:null,span:m,spellCheck:I,src:null,srcDoc:null,srcLang:null,srcSet:null,start:m,step:null,style:null,tabIndex:m,target:null,title:null,translate:null,type:null,typeMustMatch:S,useMap:null,value:I,width:m,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:A,axis:null,background:null,bgColor:null,border:m,borderColor:null,bottomMargin:m,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:S,declare:S,event:null,face:null,frame:null,frameBorder:null,hSpace:m,leftMargin:m,link:null,longDesc:null,lowSrc:null,marginHeight:m,marginWidth:m,noResize:S,noHref:S,noShade:S,noWrap:S,object:null,profile:null,prompt:null,rev:null,rightMargin:m,rules:null,scheme:null,scrolling:I,standby:null,summary:null,text:null,topMargin:m,valueType:null,version:null,vAlign:null,vLink:null,vSpace:m,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:S,disableRemotePlayback:S,prefix:null,property:null,results:m,security:null,unselectable:null},space:"html",transform:wt});var Or=W({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:D,accentHeight:m,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:m,amplitude:m,arabicForm:null,ascent:m,attributeName:null,attributeType:null,azimuth:m,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:m,by:null,calcMode:null,capHeight:m,className:A,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:m,diffuseConstant:m,direction:null,display:null,dur:null,divisor:m,dominantBaseline:null,download:S,dx:null,dy:null,edgeMode:null,editable:null,elevation:m,enableBackground:null,end:null,event:null,exponent:m,externalResourcesRequired:null,fill:null,fillOpacity:m,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:le,g2:le,glyphName:le,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:m,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:m,horizOriginX:m,horizOriginY:m,id:null,ideographic:m,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:m,k:m,k1:m,k2:m,k3:m,k4:m,kernelMatrix:D,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:m,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:m,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:m,overlineThickness:m,paintOrder:null,panose1:null,path:null,pathLength:m,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:A,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:m,pointsAtY:m,pointsAtZ:m,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:D,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:D,rev:D,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:D,requiredFeatures:D,requiredFonts:D,requiredFormats:D,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:m,specularExponent:m,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:m,strikethroughThickness:m,string:null,stroke:null,strokeDashArray:D,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:m,strokeOpacity:m,strokeWidth:null,style:null,surfaceScale:m,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:D,tabIndex:m,tableValues:null,target:null,targetX:m,targetY:m,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:D,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:m,underlineThickness:m,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:m,values:null,vAlphabetic:m,vMathematical:m,vectorEffect:null,vHanging:m,vIdeographic:m,version:null,vertAdvY:m,vertOriginX:m,vertOriginY:m,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:m,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:bt});var ln=W({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,e){return"xlink:"+e.slice(5).toLowerCase()}});var cn=W({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:wt});var un=W({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,e){return"xml:"+e.slice(3).toLowerCase()}});var fa=/[A-Z]/g,Gr=/-[a-z]/g,da=/^data[-\w.:]+$/i;function hn(t,e){let n=Ke(e),r=e,s=P;if(n in t.normal)return t.property[t.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&da.test(e)){if(e.charAt(4)==="-"){let o=e.slice(5).replace(Gr,ma);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{let o=e.slice(4);if(!Gr.test(o)){let a=o.replace(fa,ga);a.charAt(0)!=="-"&&(a="-"+a),e="data"+a}}s=we}return new s(r,e)}function ga(t){return"-"+t.toLowerCase()}function ma(t){return t.charAt(1).toUpperCase()}var Br=sn([an,$r,ln,cn,un],"html"),Ct=sn([an,Or,ln,cn,un],"svg");var Dr={}.hasOwnProperty;function Fr(t,e){let n=e||{};function r(s,...o){let a=r.invalid,i=r.handlers;if(s&&Dr.call(s,t)){let l=String(s[t]);a=Dr.call(i,l)?i[l]:r.unknown}if(a)return a.call(this,s,...o)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}var ya=/["&'<>`]/g,ba=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,wa=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Ca=/[|\\{}()[\]^$+*?.]/g,Ur=new WeakMap;function jr(t,e){if(t=t.replace(e.subset?ka(e.subset):ya,r),e.subset||e.escapeOnly)return t;return t.replace(ba,n).replace(wa,r);function n(s,o,a){return e.format((s.charCodeAt(0)-55296)*1024+s.charCodeAt(1)-56320+65536,a.charCodeAt(o+2),e)}function r(s,o,a){return e.format(s.charCodeAt(0),a.charCodeAt(o+1),e)}}function ka(t){let e=Ur.get(t);return e||(e=Sa(t),Ur.set(t,e)),e}function Sa(t){let e=[],n=-1;for(;++n<t.length;)e.push(t[n].replace(Ca,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g")}var _a=/[\dA-Fa-f]/;function zr(t,e,n){let r="&#x"+t.toString(16).toUpperCase();return n&&e&&!_a.test(String.fromCharCode(e))?r:r+";"}var xa=/\d/;function Wr(t,e,n){let r="&#"+String(t);return n&&e&&!xa.test(String.fromCharCode(e))?r:r+";"}var Hr=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"];var kt={nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",fnof:"\u0192",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",bull:"\u2022",hellip:"\u2026",prime:"\u2032",Prime:"\u2033",oline:"\u203E",frasl:"\u2044",weierp:"\u2118",image:"\u2111",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",quot:'"',amp:"&",lt:"<",gt:">",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",circ:"\u02C6",tilde:"\u02DC",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",permil:"\u2030",lsaquo:"\u2039",rsaquo:"\u203A",euro:"\u20AC"};var qr=["cent","copy","divide","gt","lt","not","para","times"];var Vr={}.hasOwnProperty,pn={},St;for(St in kt)Vr.call(kt,St)&&(pn[kt[St]]=St);var va=/[^\dA-Za-z]/;function Xr(t,e,n,r){let s=String.fromCharCode(t);if(Vr.call(pn,s)){let o=pn[s],a="&"+o;return n&&Hr.includes(o)&&!qr.includes(o)&&(!r||e&&e!==61&&va.test(String.fromCharCode(e)))?a:a+";"}return""}function Kr(t,e,n){let r=zr(t,e,n.omitOptionalSemicolons),s;if((n.useNamedReferences||n.useShortestReferences)&&(s=Xr(t,e,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!s)&&n.useShortestReferences){let o=Wr(t,e,n.omitOptionalSemicolons);o.length<r.length&&(r=o)}return s&&(!n.useShortestReferences||s.length<r.length)?s:r}function J(t,e){return jr(t,Object.assign({format:Kr},e))}var Aa=/^>|^->|<!--|-->|--!>|<!-$/g,Ea=[">"],Ia=["<",">"];function Qr(t,e,n,r){return r.settings.bogusComments?"<?"+J(t.value,Object.assign({},r.settings.characterReferences,{subset:Ea}))+">":"<!--"+t.value.replace(Aa,s)+"-->";function s(o){return J(o,Object.assign({},r.settings.characterReferences,{subset:Ia}))}}function Zr(t,e,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function fn(t,e){let n=String(t);if(typeof e!="string")throw new TypeError("Expected character");let r=0,s=n.indexOf(e);for(;s!==-1;)r++,s=n.indexOf(e,s+e.length);return r}function Yr(t,e){let n=e||{};return(t[t.length-1]===""?[...t,""]:t).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function Jr(t){return t.join(" ").trim()}var Ra=/[ \t\n\f\r]/g;function Ce(t){return typeof t=="object"?t.type==="text"?es(t.value):!1:es(t)}function es(t){return t.replace(Ra,"")===""}var R=ts(1),dn=ts(-1),Na=[];function ts(t){return e;function e(n,r,s){let o=n?n.children:Na,a=(r||0)+t,i=o[a];if(!s)for(;i&&Ce(i);)a+=t,i=o[a];return i}}var La={}.hasOwnProperty;function _t(t){return e;function e(n,r,s){return La.call(t,n.tagName)&&t[n.tagName](n,r,s)}}var Ze=_t({body:Pa,caption:gn,colgroup:gn,dd:Ga,dt:Oa,head:gn,html:Ta,li:$a,optgroup:Ba,option:Da,p:Ma,rp:ns,rt:ns,tbody:Ua,td:rs,tfoot:ja,th:rs,thead:Fa,tr:za});function gn(t,e,n){let r=R(n,e,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&Ce(r.value.charAt(0)))}function Ta(t,e,n){let r=R(n,e);return!r||r.type!=="comment"}function Pa(t,e,n){let r=R(n,e);return!r||r.type!=="comment"}function Ma(t,e,n){let r=R(n,e);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function $a(t,e,n){let r=R(n,e);return!r||r.type==="element"&&r.tagName==="li"}function Oa(t,e,n){let r=R(n,e);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function Ga(t,e,n){let r=R(n,e);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function ns(t,e,n){let r=R(n,e);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function Ba(t,e,n){let r=R(n,e);return!r||r.type==="element"&&r.tagName==="optgroup"}function Da(t,e,n){let r=R(n,e);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function Fa(t,e,n){let r=R(n,e);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function Ua(t,e,n){let r=R(n,e);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function ja(t,e,n){return!R(n,e)}function za(t,e,n){let r=R(n,e);return!r||r.type==="element"&&r.tagName==="tr"}function rs(t,e,n){let r=R(n,e);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}var ss=_t({body:qa,colgroup:Va,head:Ha,html:Wa,tbody:Xa});function Wa(t){let e=R(t,-1);return!e||e.type!=="comment"}function Ha(t){let e=new Set;for(let r of t.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(e.has(r.tagName))return!1;e.add(r.tagName)}let n=t.children[0];return!n||n.type==="element"}function qa(t){let e=R(t,-1,!0);return!e||e.type!=="comment"&&!(e.type==="text"&&Ce(e.value.charAt(0)))&&!(e.type==="element"&&(e.tagName==="meta"||e.tagName==="link"||e.tagName==="script"||e.tagName==="style"||e.tagName==="template"))}function Va(t,e,n){let r=dn(n,e),s=R(t,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&Ze(r,n.children.indexOf(r),n)?!1:!!(s&&s.type==="element"&&s.tagName==="col")}function Xa(t,e,n){let r=dn(n,e),s=R(t,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&Ze(r,n.children.indexOf(r),n)?!1:!!(s&&s.type==="element"&&s.tagName==="tr")}var xt={name:[[`	
\f\r &/=>`.split(""),`	
\f\r "&'/=>\``.split("")],[`\0	
\f\r "&'/<=>`.split(""),`\0	
\f\r "&'/<=>\``.split("")]],unquoted:[[`	
\f\r &>`.split(""),`\0	
\f\r "&'<=>\``.split("")],[`\0	
\f\r "&'<=>\``.split(""),`\0	
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function os(t,e,n,r){let s=r.schema,o=s.space==="svg"?!1:r.settings.omitOptionalTags,a=s.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(t.tagName.toLowerCase()),i=[],l;s.space==="html"&&t.tagName==="svg"&&(r.schema=Ct);let c=Ka(r,t.properties),u=r.all(s.space==="html"&&t.tagName==="template"?t.content:t);return r.schema=s,u&&(a=!1),(c||!o||!ss(t,e,n))&&(i.push("<",t.tagName,c?" "+c:""),a&&(s.space==="svg"||r.settings.closeSelfClosing)&&(l=c.charAt(c.length-1),(!r.settings.tightSelfClosing||l==="/"||l&&l!=='"'&&l!=="'")&&i.push(" "),i.push("/")),i.push(">")),i.push(u),!a&&(!o||!Ze(t,e,n))&&i.push("</"+t.tagName+">"),i.join("")}function Ka(t,e){let n=[],r=-1,s;if(e){for(s in e)if(e[s]!==null&&e[s]!==void 0){let o=Qa(t,s,e[s]);o&&n.push(o)}}for(;++r<n.length;){let o=t.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&o!=='"'&&o!=="'"&&(n[r]+=" ")}return n.join("")}function Qa(t,e,n){let r=hn(t.schema,e),s=t.settings.allowParseErrors&&t.schema.space==="html"?0:1,o=t.settings.allowDangerousCharacters?0:1,a=t.quote,i;if(r.overloadedBoolean&&(n===r.attribute||n==="")?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!="string"||n===r.attribute||n==="")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";let l=J(r.attribute,Object.assign({},t.settings.characterReferences,{subset:xt.name[s][o]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?Yr:Jr)(n,{padLeft:!t.settings.tightCommaSeparatedLists}):String(n),t.settings.collapseEmptyAttributes&&!n)?l:(t.settings.preferUnquoted&&(i=J(n,Object.assign({},t.settings.characterReferences,{attribute:!0,subset:xt.unquoted[s][o]}))),i!==n&&(t.settings.quoteSmart&&fn(n,a)>fn(n,t.alternative)&&(a=t.alternative),i=a+J(n,Object.assign({},t.settings.characterReferences,{subset:(a==="'"?xt.single:xt.double)[s][o],attribute:!0}))+a),l+(i&&"="+i))}var Za=["<","&"];function vt(t,e,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?t.value:J(t.value,Object.assign({},r.settings.characterReferences,{subset:Za}))}function as(t,e,n,r){return r.settings.allowDangerousHtml?t.value:vt(t,e,n,r)}function is(t,e,n,r){return r.all(t)}var ls=Fr("type",{invalid:Ya,unknown:Ja,handlers:{comment:Qr,doctype:Zr,element:os,raw:as,root:is,text:vt}});function Ya(t){throw new Error("Expected node, not `"+t+"`")}function Ja(t){let e=t;throw new Error("Cannot compile unknown node `"+e.type+"`")}var ei={},ti={},ni=[];function mn(t,e){let n=e||ei,r=n.quote||'"',s=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:ri,all:si,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||Pr,characterReferences:n.characterReferences||ti,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?Ct:Br,quote:r,alternative:s}.one(Array.isArray(t)?{type:"root",children:t}:t,void 0,void 0)}function ri(t,e,n){return ls(t,e,n,this)}function si(t){let e=[],n=t&&t.children||ni,r=-1;for(;++r<n.length;)e[r]=this.one(n[r],r,t);return e.join("")}function hs(t,e){var r;if(!e)return t;t.properties||(t.properties={}),(r=t.properties).class||(r.class=[]),typeof t.properties.class=="string"&&(t.properties.class=t.properties.class.split(/\s+/g)),Array.isArray(t.properties.class)||(t.properties.class=[]);let n=Array.isArray(e)?e:e.split(/\s+/g);for(let s of n)s&&!t.properties.class.includes(s)&&t.properties.class.push(s);return t}function ai(t){let e=Re(t,!0).map(([s])=>s);function n(s){if(s===t.length)return{line:e.length-1,character:e[e.length-1].length};let o=s,a=0;for(let i of e){if(o<i.length)break;o-=i.length,a++}return{line:a,character:o}}function r(s,o){let a=0;for(let i=0;i<s;i++)a+=e[i].length;return a+=o,a}return{lines:e,indexToPos:n,posToIndex:r}}var Cn="light-dark()",ii=["color","background-color"];function li(t,e){let n=0,r=[];for(let s of e)s>n&&r.push({...t,content:t.content.slice(n,s),offset:t.offset+n}),n=s;return n<t.content.length&&r.push({...t,content:t.content.slice(n),offset:t.offset+n}),r}function ci(t,e){let n=Array.from(e instanceof Set?e:new Set(e)).sort((r,s)=>r-s);return n.length?t.map(r=>r.flatMap(s=>{let o=n.filter(a=>s.offset<a&&a<s.offset+s.content.length).map(a=>a-s.offset).sort((a,i)=>a-i);return o.length?li(s,o):s})):t}function ui(t,e,n,r,s="css-vars"){let o={content:t.content,explanation:t.explanation,offset:t.offset},a=e.map(u=>At(t.variants[u])),i=new Set(a.flatMap(u=>Object.keys(u))),l={},c=(u,h)=>{let p=h==="color"?"":h==="background-color"?"-bg":`-${h}`;return n+e[u]+(h==="color"?"":p)};return a.forEach((u,h)=>{for(let p of i){let d=u[p]||"inherit";if(h===0&&r&&ii.includes(p))if(r===Cn&&a.length>1){let f=e.findIndex(w=>w==="light"),C=e.findIndex(w=>w==="dark");if(f===-1||C===-1)throw new E('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');l[p]=`light-dark(${a[f][p]||"inherit"}, ${a[C][p]||"inherit"})`,s==="css-vars"&&(l[c(h,p)]=d)}else l[p]=d;else s==="css-vars"&&(l[c(h,p)]=d)}}),o.htmlStyle=l,o}function At(t){let e={};if(t.color&&(e.color=t.color),t.bgColor&&(e["background-color"]=t.bgColor),t.fontStyle){t.fontStyle&M.Italic&&(e["font-style"]="italic"),t.fontStyle&M.Bold&&(e["font-weight"]="bold");let n=[];t.fontStyle&M.Underline&&n.push("underline"),t.fontStyle&M.Strikethrough&&n.push("line-through"),n.length&&(e["text-decoration"]=n.join(" "))}return e}function bn(t){return typeof t=="string"?t:Object.entries(t).map(([e,n])=>`${e}:${n}`).join(";")}function hi(){let t=new WeakMap;function e(n){if(!t.has(n.meta)){let s=function(a){if(typeof a=="number"){if(a<0||a>n.source.length)throw new E(`Invalid decoration offset: ${a}. Code length: ${n.source.length}`);return{...r.indexToPos(a),offset:a}}else{let i=r.lines[a.line];if(i===void 0)throw new E(`Invalid decoration position ${JSON.stringify(a)}. Lines length: ${r.lines.length}`);let l=a.character;if(l<0&&(l=i.length+l),l<0||l>i.length)throw new E(`Invalid decoration position ${JSON.stringify(a)}. Line ${a.line} length: ${i.length}`);return{...a,character:l,offset:r.posToIndex(a.line,l)}}},r=ai(n.source),o=(n.options.decorations||[]).map(a=>({...a,start:s(a.start),end:s(a.end)}));pi(o),t.set(n.meta,{decorations:o,converter:r,source:n.source})}return t.get(n.meta)}return{name:"shiki:decorations",tokens(n){if(this.options.decorations?.length)return ci(n,e(this).decorations.flatMap(r=>[r.start.offset,r.end.offset]))},code(n){if(!this.options.decorations?.length)return;let r=e(this),s=Array.from(n.children).filter(u=>u.type==="element"&&u.tagName==="span");if(s.length!==r.converter.lines.length)throw new E(`Number of lines in code element (${s.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function o(u,h,p,d){let f=s[u],C="",w=-1,y=-1;if(h===0&&(w=0),p===0&&(y=0),p===Number.POSITIVE_INFINITY&&(y=f.children.length),w===-1||y===-1)for(let k=0;k<f.children.length;k++)C+=ps(f.children[k]),w===-1&&C.length===h&&(w=k+1),y===-1&&C.length===p&&(y=k+1);if(w===-1)throw new E(`Failed to find start index for decoration ${JSON.stringify(d.start)}`);if(y===-1)throw new E(`Failed to find end index for decoration ${JSON.stringify(d.end)}`);let b=f.children.slice(w,y);if(!d.alwaysWrap&&b.length===f.children.length)i(f,d,"line");else if(!d.alwaysWrap&&b.length===1&&b[0].type==="element")i(b[0],d,"token");else{let k={type:"element",tagName:"span",properties:{},children:b};i(k,d,"wrapper"),f.children.splice(w,b.length,k)}}function a(u,h){s[u]=i(s[u],h,"line")}function i(u,h,p){let d=h.properties||{},f=h.transform||(C=>C);return u.tagName=h.tagName||"span",u.properties={...u.properties,...d,class:u.properties.class},h.properties?.class&&hs(u,h.properties.class),u=f(u,p)||u,u}let l=[],c=r.decorations.sort((u,h)=>h.start.offset-u.start.offset||u.end.offset-h.end.offset);for(let u of c){let{start:h,end:p}=u;if(h.line===p.line)o(h.line,h.character,p.character,u);else if(h.line<p.line){o(h.line,h.character,Number.POSITIVE_INFINITY,u);for(let d=h.line+1;d<p.line;d++)l.unshift(()=>a(d,u));o(p.line,0,p.character,u)}}l.forEach(u=>u())}}}function pi(t){for(let e=0;e<t.length;e++){let n=t[e];if(n.start.offset>n.end.offset)throw new E(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=e+1;r<t.length;r++){let s=t[r],o=n.start.offset<=s.start.offset&&s.start.offset<n.end.offset,a=n.start.offset<s.end.offset&&s.end.offset<=n.end.offset,i=s.start.offset<=n.start.offset&&n.start.offset<s.end.offset,l=s.start.offset<n.end.offset&&n.end.offset<=s.end.offset;if(o||a||i||l){if(o&&a||i&&l||i&&n.start.offset===n.end.offset||a&&s.start.offset===s.end.offset)continue;throw new E(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(s.start)} intersect.`)}}}}function ps(t){return t.type==="text"?t.value:t.type==="element"?t.children.map(ps).join(""):""}var fi=[hi()];function Et(t){let e=di(t.transformers||[]);return[...e.pre,...e.normal,...e.post,...fi]}function di(t){let e=[],n=[],r=[];for(let s of t)switch(s.enforce){case"pre":e.push(s);break;case"post":n.push(s);break;default:r.push(s)}return{pre:e,post:n,normal:r}}var ke=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],yn={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function gi(t,e){let n=t.indexOf("\x1B",e);if(n!==-1&&t[n+1]==="["){let r=t.indexOf("m",n);if(r!==-1)return{sequence:t.substring(n+2,r).split(";"),startPosition:n,position:r+1}}return{position:t.length}}function cs(t){let e=t.shift();if(e==="2"){let n=t.splice(0,3).map(r=>Number.parseInt(r));return n.length!==3||n.some(r=>Number.isNaN(r))?void 0:{type:"rgb",rgb:n}}else if(e==="5"){let n=t.shift();if(n)return{type:"table",index:Number(n)}}}function mi(t){let e=[];for(;t.length>0;){let n=t.shift();if(!n)continue;let r=Number.parseInt(n);if(!Number.isNaN(r))if(r===0)e.push({type:"resetAll"});else if(r<=9)yn[r]&&e.push({type:"setDecoration",value:yn[r]});else if(r<=29){let s=yn[r-20];s&&(e.push({type:"resetDecoration",value:s}),s==="dim"&&e.push({type:"resetDecoration",value:"bold"}))}else if(r<=37)e.push({type:"setForegroundColor",value:{type:"named",name:ke[r-30]}});else if(r===38){let s=cs(t);s&&e.push({type:"setForegroundColor",value:s})}else if(r===39)e.push({type:"resetForegroundColor"});else if(r<=47)e.push({type:"setBackgroundColor",value:{type:"named",name:ke[r-40]}});else if(r===48){let s=cs(t);s&&e.push({type:"setBackgroundColor",value:s})}else r===49?e.push({type:"resetBackgroundColor"}):r===53?e.push({type:"setDecoration",value:"overline"}):r===55?e.push({type:"resetDecoration",value:"overline"}):r>=90&&r<=97?e.push({type:"setForegroundColor",value:{type:"named",name:ke[r-90+8]}}):r>=100&&r<=107&&e.push({type:"setBackgroundColor",value:{type:"named",name:ke[r-100+8]}})}return e}function yi(){let t=null,e=null,n=new Set;return{parse(r){let s=[],o=0;do{let a=gi(r,o),i=a.sequence?r.substring(o,a.startPosition):r.substring(o);if(i.length>0&&s.push({value:i,foreground:t,background:e,decorations:new Set(n)}),a.sequence){let l=mi(a.sequence);for(let c of l)c.type==="resetAll"?(t=null,e=null,n.clear()):c.type==="resetForegroundColor"?t=null:c.type==="resetBackgroundColor"?e=null:c.type==="resetDecoration"&&n.delete(c.value);for(let c of l)c.type==="setForegroundColor"?t=c.value:c.type==="setBackgroundColor"?e=c.value:c.type==="setDecoration"&&n.add(c.value)}o=a.position}while(o<r.length);return s}}}var bi={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function wi(t=bi){function e(i){return t[i]}function n(i){return`#${i.map(l=>Math.max(0,Math.min(l,255)).toString(16).padStart(2,"0")).join("")}`}let r;function s(){if(r)return r;r=[];for(let c=0;c<ke.length;c++)r.push(e(ke[c]));let i=[0,95,135,175,215,255];for(let c=0;c<6;c++)for(let u=0;u<6;u++)for(let h=0;h<6;h++)r.push(n([i[c],i[u],i[h]]));let l=8;for(let c=0;c<24;c++,l+=10)r.push(n([l,l,l]));return r}function o(i){return s()[i]}function a(i){switch(i.type){case"named":return e(i.name);case"rgb":return n(i.rgb);case"table":return o(i.index)}}return{value:a}}var Ci={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 ki(t,e,n){let r=He(t,n),s=Re(e),o=wi(Object.fromEntries(ke.map(i=>{let l=`terminal.ansi${i[0].toUpperCase()}${i.substring(1)}`;return[i,t.colors?.[l]||Ci[i]]}))),a=yi();return s.map(i=>a.parse(i[0]).map(l=>{let c,u;l.decorations.has("reverse")?(c=l.background?o.value(l.background):t.bg,u=l.foreground?o.value(l.foreground):t.fg):(c=l.foreground?o.value(l.foreground):t.fg,u=l.background?o.value(l.background):void 0),c=Z(c,r),u=Z(u,r),l.decorations.has("dim")&&(c=Si(c));let h=M.None;return l.decorations.has("bold")&&(h|=M.Bold),l.decorations.has("italic")&&(h|=M.Italic),l.decorations.has("underline")&&(h|=M.Underline),l.decorations.has("strikethrough")&&(h|=M.Strikethrough),{content:l.value,offset:i[1],color:c,bgColor:u,fontStyle:h}}))}function Si(t){let e=t.match(/#([0-9a-f]{3,8})/i);if(e){let r=e[1];if(r.length===8){let s=Math.round(Number.parseInt(r.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${r.slice(0,6)}${s}`}else{if(r.length===6)return`#${r}80`;if(r.length===4){let s=r[0],o=r[1],a=r[2],i=r[3];return`#${s}${s}${o}${o}${a}${a}${Math.round(Number.parseInt(`${i}${i}`,16)/2).toString(16).padStart(2,"0")}`}else if(r.length===3){let s=r[0],o=r[1],a=r[2];return`#${s}${s}${o}${o}${a}${a}80`}}}let n=t.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:t}function wn(t,e,n={}){let r=t.resolveLangAlias(n.lang||"text"),{theme:s=t.getLoadedThemes()[0]}=n;if(!qe(r)&&!Ve(s)&&r==="ansi"){let{theme:o}=t.setTheme(s);return ki(o,e,n)}return nn(t,e,n)}function It(t,e,n){let r,s,o,a,i,l;if("themes"in n){let{defaultColor:c="light",cssVariablePrefix:u="--shiki-",colorsRendering:h="css-vars"}=n,p=Object.entries(n.themes).filter(y=>y[1]).map(y=>({color:y[0],theme:y[1]})).sort((y,b)=>y.color===c?-1:b.color===c?1:0);if(p.length===0)throw new E("`themes` option must not be empty");let d=mt(t,e,n,wn);if(l=Ne(d),c&&Cn!==c&&!p.find(y=>y.color===c))throw new E(`\`themes\` option must contain the defaultColor key \`${c}\``);let f=p.map(y=>t.getTheme(y.theme)),C=p.map(y=>y.color);o=d.map(y=>y.map(b=>ui(b,C,u,c,h))),l&&Xe(o,l);let w=p.map(y=>He(y.theme,n));s=us(p,f,w,u,c,"fg",h),r=us(p,f,w,u,c,"bg",h),a=`shiki-themes ${f.map(y=>y.name).join(" ")}`,i=c?void 0:[s,r].join(";")}else if("theme"in n){let c=He(n.theme,n);o=wn(t,e,n);let u=t.getTheme(n.theme);r=Z(u.bg,c),s=Z(u.fg,c),a=u.name,l=Ne(o)}else throw new E("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:s,bg:r,themeName:a,rootStyle:i,grammarState:l}}function us(t,e,n,r,s,o,a){return t.map((i,l)=>{let c=Z(e[l][o],n[l])||"inherit",u=`${r+i.color}${o==="bg"?"-bg":""}:${c}`;if(l===0&&s){if(s===Cn&&t.length>1){let h=t.findIndex(d=>d.color==="light"),p=t.findIndex(d=>d.color==="dark");if(h===-1||p===-1)throw new E('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${Z(e[h][o],n[h])||"inherit"}, ${Z(e[p][o],n[p])||"inherit"});${u}`}return c}return a==="css-vars"?u:null}).filter(i=>!!i).join(";")}function Rt(t,e,n,r={meta:{},options:n,codeToHast:(s,o)=>Rt(t,s,o),codeToTokens:(s,o)=>It(t,s,o)}){let s=e;for(let f of Et(n))s=f.preprocess?.call(r,s,n)||s;let{tokens:o,fg:a,bg:i,themeName:l,rootStyle:c,grammarState:u}=It(t,s,n),{mergeWhitespaces:h=!0,mergeSameStyleTokens:p=!1}=n;h===!0?o=xi(o):h==="never"&&(o=vi(o)),p&&(o=Ai(o));let d={...r,get source(){return s}};for(let f of Et(n))o=f.tokens?.call(d,o)||o;return _i(o,{...n,fg:a,bg:i,themeName:l,rootStyle:n.rootStyle===!1?!1:n.rootStyle??c},d,u)}function _i(t,e,n,r=Ne(t)){let s=Et(e),o=[],a={type:"root",children:[]},{structure:i="classic",tabindex:l="0"}=e,c={class:`shiki ${e.themeName||""}`};e.rootStyle!==!1&&(e.rootStyle!=null?c.style=e.rootStyle:c.style=`background-color:${e.bg};color:${e.fg}`),l!==!1&&l!=null&&(c.tabindex=l.toString());for(let[C,w]of Object.entries(e.meta||{}))C.startsWith("_")||(c[C]=w);let u={type:"element",tagName:"pre",properties:c,children:[],data:e.data},h={type:"element",tagName:"code",properties:{},children:o},p=[],d={...n,structure:i,addClassToHast:hs,get source(){return n.source},get tokens(){return t},get options(){return e},get root(){return a},get pre(){return u},get code(){return h},get lines(){return p}};if(t.forEach((C,w)=>{w&&(i==="inline"?a.children.push({type:"element",tagName:"br",properties:{},children:[]}):i==="classic"&&o.push({type:"text",value:`
`}));let y={type:"element",tagName:"span",properties:{class:"line"},children:[]},b=0;for(let k of C){let x={type:"element",tagName:"span",properties:{...k.htmlAttrs},children:[{type:"text",value:k.content}]},v=bn(k.htmlStyle||At(k));v&&(x.properties.style=v);for(let O of s)x=O?.span?.call(d,x,w+1,b,y,k)||x;i==="inline"?a.children.push(x):i==="classic"&&y.children.push(x),b+=k.content.length}if(i==="classic"){for(let k of s)y=k?.line?.call(d,y,w+1)||y;p.push(y),o.push(y)}else i==="inline"&&p.push(y)}),i==="classic"){for(let C of s)h=C?.code?.call(d,h)||h;u.children.push(h);for(let C of s)u=C?.pre?.call(d,u)||u;a.children.push(u)}else if(i==="inline"){let C=[],w={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(let b of a.children)b.type==="element"&&b.tagName==="br"?(C.push(w),w={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(b.type==="element"||b.type==="text")&&w.children.push(b);C.push(w);let y={type:"element",tagName:"code",properties:{},children:C};for(let b of s)y=b?.code?.call(d,y)||y;a.children=[];for(let b=0;b<y.children.length;b++){b>0&&a.children.push({type:"element",tagName:"br",properties:{},children:[]});let k=y.children[b];k.type==="element"&&a.children.push(...k.children)}}let f=a;for(let C of s)f=C?.root?.call(d,f)||f;return r&&Xe(f,r),f}function xi(t){return t.map(e=>{let n=[],r="",s;return e.forEach((o,a)=>{let i=!(o.fontStyle&&(o.fontStyle&M.Underline||o.fontStyle&M.Strikethrough));i&&o.content.match(/^\s+$/)&&e[a+1]?(s===void 0&&(s=o.offset),r+=o.content):r?(i?n.push({...o,offset:s,content:r+o.content}):n.push({content:r,offset:s},o),s=void 0,r=""):n.push(o)}),n})}function vi(t){return t.map(e=>e.flatMap(n=>{if(n.content.match(/^\s+$/))return n;let r=n.content.match(/^(\s*)(.*?)(\s*)$/);if(!r)return n;let[,s,o,a]=r;if(!s&&!a)return n;let i=[{...n,offset:n.offset+s.length,content:o}];return s&&i.unshift({content:s,offset:n.offset}),a&&i.push({content:a,offset:n.offset+s.length+o.length}),i}))}function Ai(t){return t.map(e=>{let n=[];for(let r of e){if(n.length===0){n.push({...r});continue}let s=n[n.length-1],o=bn(s.htmlStyle||At(s)),a=bn(r.htmlStyle||At(r)),i=s.fontStyle&&(s.fontStyle&M.Underline||s.fontStyle&M.Strikethrough),l=r.fontStyle&&(r.fontStyle&M.Underline||r.fontStyle&M.Strikethrough);!i&&!l&&o===a?s.content+=r.content:n.push({...r})}return n})}var Ei=mn;function Ii(t,e,n){let r={meta:{},options:n,codeToHast:(o,a)=>Rt(t,o,a),codeToTokens:(o,a)=>It(t,o,a)},s=Ei(Rt(t,e,n,r));for(let o of Et(n))s=o.postprocess?.call(r,s,n)||s;return s}function fs(t){let e=tn(t);return{getLastGrammarState:(...n)=>Lr(e,...n),codeToTokensBase:(n,r)=>wn(e,n,r),codeToTokensWithThemes:(n,r)=>mt(e,n,r),codeToTokens:(n,r)=>It(e,n,r),codeToHast:(n,r)=>Rt(e,n,r),codeToHtml:(n,r)=>Ii(e,n,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...e,getInternalContext:()=>e}}var ds=class{constructor(t,e={}){g(this,"regexps");this.patterns=t,this.options=e;let{forgiving:n=!1,cache:r,regexConstructor:s}=e;if(!s)throw new Error("Option `regexConstructor` is not provided");this.regexps=t.map(o=>{if(typeof o!="string")return o;let a=r?.get(o);if(a){if(a instanceof RegExp)return a;if(n)return null;throw a}try{let i=s(o);return r?.set(o,i),i}catch(i){if(r?.set(o,i),n)return null;throw i}})}findNextMatchSync(t,e,n){let r=typeof t=="string"?t:t.content,s=[];function o(a,i,l=0){return{index:a,captureIndices:i.indices.map(c=>c==null?{start:4294967295,end:4294967295,length:0}:{start:c[0]+l,end:c[1]+l,length:c[1]-c[0]})}}for(let a=0;a<this.regexps.length;a++){let i=this.regexps[a];if(i)try{i.lastIndex=e;let l=i.exec(r);if(!l)continue;if(l.index===e)return o(a,l,0);s.push([a,l,0])}catch(l){if(this.options.forgiving)continue;throw l}}if(s.length){let a=Math.min(...s.map(i=>i[1].index));for(let[i,l,c]of s)if(l.index===a)return o(i,l,c)}return null}};function ce(t){if([...t].length!==1)throw new Error(`Expected "${t}" to be a single code point`);return t.codePointAt(0)}function gs(t,e,n){return t.has(e)||t.set(e,n),t.get(e)}var Ye=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),L=String.raw;function ee(t,e){if(t==null)throw new Error(e??"Value expected");return t}var ks=L`\[\^?`,Ss=`c.? | C(?:-.?)?|${L`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${L`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${L`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${L`o\{[^\}]*\}?`}|${L`\d{1,3}`}`,Sn=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,Nt=new RegExp(L`
  \\ (?:
    ${Ss}
    | [gk]<[^>]*>?
    | [gk]'[^']*'?
    | .
  )
  | \( (?:
    \? (?:
      [:=!>({]
      | <[=!]
      | <[^>]*>
      | '[^']*'
      | ~\|?
      | #(?:[^)\\]|\\.?)*
      | [^:)]*[:)]
    )?
    | \*[^\)]*\)?
  )?
  | (?:${Sn.source})+
  | ${ks}
  | .
`.replace(/\s+/g,""),"gsu"),kn=new RegExp(L`
  \\ (?:
    ${Ss}
    | .
  )
  | \[:(?:\^?\p{Alpha}+|\^):\]
  | ${ks}
  | &&
  | .
`.replace(/\s+/g,""),"gsu");function _s(t,e={}){let n={flags:"",...e,rules:{captureGroup:!1,singleline:!1,...e.rules}};if(typeof t!="string")throw new Error("String expected as pattern");let r=Vi(n.flags),s=[r.extended],o={captureGroup:n.rules.captureGroup,getCurrentModX(){return s.at(-1)},numOpenGroups:0,popModX(){s.pop()},pushModX(h){s.push(h)},replaceCurrentModX(h){s[s.length-1]=h},singleline:n.rules.singleline},a=[],i;for(Nt.lastIndex=0;i=Nt.exec(t);){let h=Ri(o,t,i[0],Nt.lastIndex);h.tokens?a.push(...h.tokens):h.token&&a.push(h.token),h.lastIndex!==void 0&&(Nt.lastIndex=h.lastIndex)}let l=[],c=0;a.filter(h=>h.type==="GroupOpen").forEach(h=>{h.kind==="capturing"?h.number=++c:h.raw==="("&&l.push(h)}),c||l.forEach((h,p)=>{h.kind="capturing",h.number=p+1});let u=c||l.length;return{tokens:a.map(h=>h.type==="EscapedNumber"?Ki(h,u):h).flat(),flags:r}}function Ri(t,e,n,r){let[s,o]=n;if(n==="["||n==="[^"){let a=Ni(e,n,r);return{tokens:a.tokens,lastIndex:a.lastIndex}}if(s==="\\"){if("AbBGyYzZ".includes(o))return{token:ms(n,n)};if(/^\\g[<']/.test(n)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:Fi(n)}}if(/^\\k[<']/.test(n)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:vs(n)}}if(o==="K")return{token:As("keep",n)};if(o==="N"||o==="R")return{token:Se("newline",n,{negate:o==="N"})};if(o==="O")return{token:Se("any",n)};if(o==="X")return{token:Se("text_segment",n)};let a=xs(n,{inCharClass:!1});return Array.isArray(a)?{tokens:a}:{token:a}}if(s==="("){if(o==="*")return{token:Wi(n)};if(n==="(?{")throw new Error(`Unsupported callout "${n}"`);if(n.startsWith("(?#")){if(e[r]!==")")throw new Error('Unclosed comment group "(?#"');return{lastIndex:r+1}}if(/^\(\?[-imx]+[:)]$/.test(n))return{token:zi(n,t)};if(t.pushModX(t.getCurrentModX()),t.numOpenGroups++,n==="("&&!t.captureGroup||n==="(?:")return{token:Le("group",n)};if(n==="(?>")return{token:Le("atomic",n)};if(n==="(?="||n==="(?!"||n==="(?<="||n==="(?<!")return{token:Le(n[2]==="<"?"lookbehind":"lookahead",n,{negate:n.endsWith("!")})};if(n==="("&&t.captureGroup||n.startsWith("(?<")&&n.endsWith(">")||n.startsWith("(?'")&&n.endsWith("'"))return{token:Le("capturing",n,{...n!=="("&&{name:n.slice(3,-1)}})};if(n.startsWith("(?~")){if(n==="(?~|")throw new Error(`Unsupported absence function kind "${n}"`);return{token:Le("absence_repeater",n)}}throw n==="(?("?new Error(`Unsupported conditional "${n}"`):new Error(`Invalid or unsupported group option "${n}"`)}if(n===")"){if(t.popModX(),t.numOpenGroups--,t.numOpenGroups<0)throw new Error('Unmatched ")"');return{token:Gi(n)}}if(t.getCurrentModX()){if(n==="#"){let a=e.indexOf(`
`,r);return{lastIndex:a===-1?e.length:a}}if(/^\s$/.test(n)){let a=/\s+/y;return a.lastIndex=r,{lastIndex:a.exec(e)?a.lastIndex:r}}}if(n===".")return{token:Se("dot",n)};if(n==="^"||n==="$"){let a=t.singleline?{"^":L`\A`,$:L`\Z`}[n]:n;return{token:ms(a,n)}}return n==="|"?{token:Ti(n)}:Sn.test(n)?{tokens:Qi(n)}:{token:te(ce(n),n)}}function Ni(t,e,n){let r=[ys(e[1]==="^",e)],s=1,o;for(kn.lastIndex=n;o=kn.exec(t);){let a=o[0];if(a[0]==="["&&a[1]!==":")s++,r.push(ys(a[1]==="^",a));else if(a==="]"){if(r.at(-1).type==="CharacterClassOpen")r.push(te(93,a));else if(s--,r.push(Pi(a)),!s)break}else{let i=Li(a);Array.isArray(i)?r.push(...i):r.push(i)}}return{tokens:r,lastIndex:kn.lastIndex||t.length}}function Li(t){if(t[0]==="\\")return xs(t,{inCharClass:!0});if(t[0]==="["){let e=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(t);if(!e||!Ye.has(e.groups.name))throw new Error(`Invalid POSIX class "${t}"`);return Se("posix",t,{value:e.groups.name,negate:!!e.groups.negate})}return t==="-"?Mi(t):t==="&&"?$i(t):te(ce(t),t)}function xs(t,{inCharClass:e}){let n=t[1];if(n==="c"||n==="C")return ji(t);if("dDhHsSwW".includes(n))return Hi(t);if(t.startsWith(L`\o{`))throw new Error(`Incomplete, invalid, or unsupported octal code point "${t}"`);if(/^\\[pP]\{/.test(t)){if(t.length===3)throw new Error(`Incomplete or invalid Unicode property "${t}"`);return qi(t)}if(/^\\x[89A-Fa-f]\p{AHex}/u.test(t))try{let r=t.split(/\\x/).slice(1).map(a=>parseInt(a,16)),s=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(r)),o=new TextEncoder;return[...s].map(a=>{let i=[...o.encode(a)].map(l=>`\\x${l.toString(16)}`).join("");return te(ce(a),i)})}catch{throw new Error(`Multibyte code "${t}" incomplete or invalid in Oniguruma`)}if(n==="u"||n==="x")return te(Xi(t),t);if(bs.has(n))return te(bs.get(n),t);if(/\d/.test(n))return Oi(e,t);if(t==="\\")throw new Error(L`Incomplete escape "\"`);if(n==="M")throw new Error(`Unsupported meta "${t}"`);if([...t].length===2)return te(t.codePointAt(1),t);throw new Error(`Unexpected escape "${t}"`)}function Ti(t){return{type:"Alternator",raw:t}}function ms(t,e){return{type:"Assertion",kind:t,raw:e}}function vs(t){return{type:"Backreference",raw:t}}function te(t,e){return{type:"Character",value:t,raw:e}}function Pi(t){return{type:"CharacterClassClose",raw:t}}function Mi(t){return{type:"CharacterClassHyphen",raw:t}}function $i(t){return{type:"CharacterClassIntersector",raw:t}}function ys(t,e){return{type:"CharacterClassOpen",negate:t,raw:e}}function Se(t,e,n={}){return{type:"CharacterSet",kind:t,...n,raw:e}}function As(t,e,n={}){return t==="keep"?{type:"Directive",kind:t,raw:e}:{type:"Directive",kind:t,flags:ee(n.flags),raw:e}}function Oi(t,e){return{type:"EscapedNumber",inCharClass:t,raw:e}}function Gi(t){return{type:"GroupClose",raw:t}}function Le(t,e,n={}){return{type:"GroupOpen",kind:t,...n,raw:e}}function Bi(t,e,n,r){return{type:"NamedCallout",kind:t,tag:e,arguments:n,raw:r}}function Di(t,e,n,r){return{type:"Quantifier",kind:t,min:e,max:n,raw:r}}function Fi(t){return{type:"Subroutine",raw:t}}var Ui=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),bs=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]);function ji(t){let e=t[1]==="c"?t[2]:t[3];if(!e||!/[A-Za-z]/.test(e))throw new Error(`Unsupported control character "${t}"`);return te(ce(e.toUpperCase())-64,t)}function zi(t,e){let{on:n,off:r}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(t).groups;r??(r="");let s=(e.getCurrentModX()||n.includes("x"))&&!r.includes("x"),o=Cs(n),a=Cs(r),i={};if(o&&(i.enable=o),a&&(i.disable=a),t.endsWith(")"))return e.replaceCurrentModX(s),As("flags",t,{flags:i});if(t.endsWith(":"))return e.pushModX(s),e.numOpenGroups++,Le("group",t,{...(o||a)&&{flags:i}});throw new Error(`Unexpected flag modifier "${t}"`)}function Wi(t){let e=/\(\*(?<name>[A-Za-z_]\w*)?(?:\[(?<tag>(?:[A-Za-z_]\w*)?)\])?(?:\{(?<args>[^}]*)\})?\)/.exec(t);if(!e)throw new Error(`Incomplete or invalid named callout "${t}"`);let{name:n,tag:r,args:s}=e.groups;if(!n)throw new Error(`Invalid named callout "${t}"`);if(r==="")throw new Error(`Named callout tag with empty value not allowed "${t}"`);let o=s?s.split(",").filter(u=>u!=="").map(u=>/^[+-]?\d+$/.test(u)?+u:u):[],[a,i,l]=o,c=Ui.has(n)?n.toLowerCase():"custom";switch(c){case"fail":case"mismatch":case"skip":if(o.length>0)throw new Error(`Named callout arguments not allowed "${o}"`);break;case"error":if(o.length>1)throw new Error(`Named callout allows only one argument "${o}"`);if(typeof a=="string")throw new Error(`Named callout argument must be a number "${a}"`);break;case"max":if(!o.length||o.length>2)throw new Error(`Named callout must have one or two arguments "${o}"`);if(typeof a=="string"&&!/^[A-Za-z_]\w*$/.test(a))throw new Error(`Named callout argument one must be a tag or number "${a}"`);if(o.length===2&&(typeof i=="number"||!/^[<>X]$/.test(i)))throw new Error(`Named callout optional argument two must be '<', '>', or 'X' "${i}"`);break;case"count":case"total_count":if(o.length>1)throw new Error(`Named callout allows only one argument "${o}"`);if(o.length===1&&(typeof a=="number"||!/^[<>X]$/.test(a)))throw new Error(`Named callout optional argument must be '<', '>', or 'X' "${a}"`);break;case"cmp":if(o.length!==3)throw new Error(`Named callout must have three arguments "${o}"`);if(typeof a=="string"&&!/^[A-Za-z_]\w*$/.test(a))throw new Error(`Named callout argument one must be a tag or number "${a}"`);if(typeof i=="number"||!/^(?:[<>!=]=|[<>])$/.test(i))throw new Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${i}"`);if(typeof l=="string"&&!/^[A-Za-z_]\w*$/.test(l))throw new Error(`Named callout argument three must be a tag or number "${l}"`);break;case"custom":throw new Error(`Undefined callout name "${n}"`);default:throw new Error(`Unexpected named callout kind "${c}"`)}return Bi(c,r??null,s?.split(",")??null,t)}function ws(t){let e=null,n,r;if(t[0]==="{"){let{minStr:s,maxStr:o}=/^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(t).groups,a=1e5;if(+s>a||o&&+o>a)throw new Error("Quantifier value unsupported in Oniguruma");if(n=+s,r=o===void 0?+s:o===""?1/0:+o,n>r&&(e="possessive",[n,r]=[r,n]),t.endsWith("?")){if(e==="possessive")throw new Error('Unsupported possessive interval quantifier chain with "?"');e="lazy"}else e||(e="greedy")}else n=t[0]==="+"?1:0,r=t[0]==="?"?1:1/0,e=t[1]==="+"?"possessive":t[1]==="?"?"lazy":"greedy";return Di(e,n,r,t)}function Hi(t){let e=t[1].toLowerCase();return Se({d:"digit",h:"hex",s:"space",w:"word"}[e],t,{negate:t[1]!==e})}function qi(t){let{p:e,neg:n,value:r}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(t).groups;return Se("property",t,{value:r,negate:e==="P"&&!n||e==="p"&&!!n})}function Cs(t){let e={};return t.includes("i")&&(e.ignoreCase=!0),t.includes("m")&&(e.dotAll=!0),t.includes("x")&&(e.extended=!0),Object.keys(e).length?e:null}function Vi(t){let e={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1,textSegmentMode:null};for(let n=0;n<t.length;n++){let r=t[n];if(!"imxDPSWy".includes(r))throw new Error(`Invalid flag "${r}"`);if(r==="y"){if(!/^y{[gw]}/.test(t.slice(n)))throw new Error('Invalid or unspecified flag "y" mode');e.textSegmentMode=t[n+2]==="g"?"grapheme":"word",n+=3;continue}e[{i:"ignoreCase",m:"dotAll",x:"extended",D:"digitIsAscii",P:"posixIsAscii",S:"spaceIsAscii",W:"wordIsAscii"}[r]]=!0}return e}function Xi(t){if(/^(?:\\u(?!\p{AHex}{4})|\\x(?!\p{AHex}{1,2}|\{\p{AHex}{1,8}\}))/u.test(t))throw new Error(`Incomplete or invalid escape "${t}"`);let e=t[2]==="{"?/^\\x\{\s*(?<hex>\p{AHex}+)/u.exec(t).groups.hex:t.slice(2);return parseInt(e,16)}function Ki(t,e){let{raw:n,inCharClass:r}=t,s=n.slice(1);if(!r&&(s!=="0"&&s.length===1||s[0]!=="0"&&+s<=e))return[vs(n)];let o=[],a=s.match(/^[0-7]+|\d/g);for(let i=0;i<a.length;i++){let l=a[i],c;if(i===0&&l!=="8"&&l!=="9"){if(c=parseInt(l,8),c>127)throw new Error(L`Octal encoded byte above 177 unsupported "${n}"`)}else c=ce(l);o.push(te(c,(i===0?"\\":"")+l))}return o}function Qi(t){let e=[],n=new RegExp(Sn,"gy"),r;for(;r=n.exec(t);){let s=r[0];if(s[0]==="{"){let o=/^\{(?<min>\d+),(?<max>\d+)\}\??$/.exec(s);if(o){let{min:a,max:i}=o.groups;if(+a>+i&&s.endsWith("?")){n.lastIndex--,e.push(ws(s.slice(0,-1)));continue}}}e.push(ws(s))}return e}function Lt(t,e){if(!Array.isArray(t.body))throw new Error("Expected node with body array");if(t.body.length!==1)return!1;let n=t.body[0];return!e||Object.keys(e).every(r=>e[r]===n[r])}function Es(t){return Zi.has(t.type)}var Zi=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subroutine"]);function Pt(t,e={}){let n={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...e,rules:{captureGroup:!1,singleline:!1,...e.rules}},r=_s(t,{flags:n.flags,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline}}),s=(p,d)=>{let f=r.tokens[o.nextIndex];switch(o.parent=p,o.nextIndex++,f.type){case"Alternator":return ne();case"Assertion":return Yi(f);case"Backreference":return Ji(f,o);case"Character":return Te(f.value,{useLastValid:!!d.isCheckingRangeEnd});case"CharacterClassHyphen":return el(f,o,d);case"CharacterClassOpen":return tl(f,o,d);case"CharacterSet":return nl(f,o);case"Directive":return ll(f.kind,{flags:f.flags});case"GroupOpen":return rl(f,o,d);case"NamedCallout":return ul(f.kind,f.tag,f.arguments);case"Quantifier":return sl(f,o);case"Subroutine":return ol(f,o);default:throw new Error(`Unexpected token type "${f.type}"`)}},o={capturingGroups:[],hasNumberedRef:!1,namedGroupsByName:new Map,nextIndex:0,normalizeUnknownPropertyNames:n.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:n.skipBackrefValidation,skipLookbehindValidation:n.skipLookbehindValidation,skipPropertyNameValidation:n.skipPropertyNameValidation,subroutines:[],tokens:r.tokens,unicodePropertyMap:n.unicodePropertyMap,walk:s},a=pl(cl(r.flags)),i=a.body[0];for(;o.nextIndex<r.tokens.length;){let p=s(i,{});p.type==="Alternative"?(a.body.push(p),i=p):i.body.push(p)}let{capturingGroups:l,hasNumberedRef:c,namedGroupsByName:u,subroutines:h}=o;if(c&&u.size&&!n.rules.captureGroup)throw new Error("Numbered backref/subroutine not allowed when using named capture");for(let{ref:p}of h)if(typeof p=="number"){if(p>l.length)throw new Error("Subroutine uses a group number that's not defined");p&&(l[p-1].isSubroutined=!0)}else if(u.has(p)){if(u.get(p).length>1)throw new Error(L`Subroutine uses a duplicate group name "\g<${p}>"`);u.get(p)[0].isSubroutined=!0}else throw new Error(L`Subroutine uses a group name that's not defined "\g<${p}>"`);return a}function Yi({kind:t}){return Mt(ee({"^":"line_start",$:"line_end","\\A":"string_start","\\b":"word_boundary","\\B":"word_boundary","\\G":"search_start","\\y":"text_segment_boundary","\\Y":"text_segment_boundary","\\z":"string_end","\\Z":"string_end_newline"}[t],`Unexpected assertion kind "${t}"`),{negate:t===L`\B`||t===L`\Y`})}function Ji({raw:t},e){let n=/^\\k[<']/.test(t),r=n?t.slice(3,-1):t.slice(1),s=(o,a=!1)=>{let i=e.capturingGroups.length,l=!1;if(o>i)if(e.skipBackrefValidation)l=!0;else throw new Error(`Not enough capturing groups defined to the left "${t}"`);return e.hasNumberedRef=!0,Tt(a?i+1-o:o,{orphan:l})};if(n){let o=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(r);if(o)return s(+o.groups.num,!!o.groups.sign);if(/[-+]/.test(r))throw new Error(`Invalid backref name "${t}"`);if(!e.namedGroupsByName.has(r))throw new Error(`Group name not defined to the left "${t}"`);return Tt(r)}return s(+r)}function el(t,e,n){let{tokens:r,walk:s}=e,o=e.parent,a=o.body.at(-1),i=r[e.nextIndex];if(!n.isCheckingRangeEnd&&a&&a.type!=="CharacterClass"&&a.type!=="CharacterClassRange"&&i&&i.type!=="CharacterClassOpen"&&i.type!=="CharacterClassClose"&&i.type!=="CharacterClassIntersector"){let l=s(o,{...n,isCheckingRangeEnd:!0});if(a.type==="Character"&&l.type==="Character")return o.body.pop(),il(a,l);throw new Error("Invalid character class range")}return Te(ce("-"))}function tl({negate:t},e,n){let{tokens:r,walk:s}=e,o=r[e.nextIndex],a=[Je()],i=Ns(o);for(;i.type!=="CharacterClassClose";){if(i.type==="CharacterClassIntersector")a.push(Je()),e.nextIndex++;else{let c=a.at(-1);c.body.push(s(c,n))}i=Ns(r[e.nextIndex],o)}let l=Je({negate:t});return a.length===1?l.body=a[0].body:(l.kind="intersection",l.body=a.map(c=>c.body.length===1?c.body[0]:c)),e.nextIndex++,l}function nl({kind:t,negate:e,value:n},r){let{normalizeUnknownPropertyNames:s,skipPropertyNameValidation:o,unicodePropertyMap:a}=r;if(t==="property"){let i=Pe(n);if(Ye.has(i)&&!a?.has(i))t="posix",n=i;else return _e(n,{negate:e,normalizeUnknownPropertyNames:s,skipPropertyNameValidation:o,unicodePropertyMap:a})}return t==="posix"?hl(n,{negate:e}):$t(t,{negate:e})}function rl(t,e,n){let{tokens:r,capturingGroups:s,namedGroupsByName:o,skipLookbehindValidation:a,walk:i}=e,l=fl(t),c=l.type==="AbsenceFunction",u=Rs(l),h=u&&l.negate;if(l.type==="CapturingGroup"&&(s.push(l),l.name&&gs(o,l.name,[]).push(l)),c&&n.isInAbsenceFunction)throw new Error("Nested absence function not supported by Oniguruma");let p=Ls(r[e.nextIndex]);for(;p.type!=="GroupClose";){if(p.type==="Alternator")l.body.push(ne()),e.nextIndex++;else{let d=l.body.at(-1),f=i(d,{...n,isInAbsenceFunction:n.isInAbsenceFunction||c,isInLookbehind:n.isInLookbehind||u,isInNegLookbehind:n.isInNegLookbehind||h});if(d.body.push(f),(u||n.isInLookbehind)&&!a){let C="Lookbehind includes a pattern not allowed by Oniguruma";if(h||n.isInNegLookbehind){if(Is(f)||f.type==="CapturingGroup")throw new Error(C)}else if(Is(f)||Rs(f)&&f.negate)throw new Error(C)}}p=Ls(r[e.nextIndex])}return e.nextIndex++,l}function sl({kind:t,min:e,max:n},r){let s=r.parent,o=s.body.at(-1);if(!o||!Es(o))throw new Error("Quantifier requires a repeatable token");let a=xn(t,e,n,o);return s.body.pop(),a}function ol({raw:t},e){let{capturingGroups:n,subroutines:r}=e,s=t.slice(3,-1),o=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(s);if(o){let i=+o.groups.num,l=n.length;if(e.hasNumberedRef=!0,s={"":i,"+":l+i,"-":l+1-i}[o.groups.sign],s<1)throw new Error("Invalid subroutine number")}else s==="0"&&(s=0);let a=vn(s);return r.push(a),a}function al(t,e){if(t!=="repeater")throw new Error(`Unexpected absence function kind "${t}"`);return{type:"AbsenceFunction",kind:t,body:et(e?.body)}}function ne(t){return{type:"Alternative",body:Ts(t?.body)}}function Mt(t,e){let n={type:"Assertion",kind:t};return(t==="word_boundary"||t==="text_segment_boundary")&&(n.negate=!!e?.negate),n}function Tt(t,e){let n=!!e?.orphan;return{type:"Backreference",ref:t,...n&&{orphan:n}}}function _n(t,e){let n={name:void 0,isSubroutined:!1,...e};if(n.name!==void 0&&!dl(n.name))throw new Error(`Group name "${n.name}" invalid in Oniguruma`);return{type:"CapturingGroup",number:t,...n.name&&{name:n.name},...n.isSubroutined&&{isSubroutined:n.isSubroutined},body:et(e?.body)}}function Te(t,e){let n={useLastValid:!1,...e};if(t>1114111){let r=t.toString(16);if(n.useLastValid)t=1114111;else throw t>1310719?new Error(`Invalid code point out of range "\\x{${r}}"`):new Error(`Invalid code point out of range in JS "\\x{${r}}"`)}return{type:"Character",value:t}}function Je(t){let e={kind:"union",negate:!1,...t};return{type:"CharacterClass",kind:e.kind,negate:e.negate,body:Ts(t?.body)}}function il(t,e){if(e.value<t.value)throw new Error("Character class range out of order");return{type:"CharacterClassRange",min:t,max:e}}function $t(t,e){let n=!!e?.negate,r={type:"CharacterSet",kind:t};return(t==="digit"||t==="hex"||t==="newline"||t==="space"||t==="word")&&(r.negate=n),(t==="text_segment"||t==="newline"&&!n)&&(r.variableLength=!0),r}function ll(t,e={}){if(t==="keep")return{type:"Directive",kind:t};if(t==="flags")return{type:"Directive",kind:t,flags:ee(e.flags)};throw new Error(`Unexpected directive kind "${t}"`)}function cl(t){return{type:"Flags",...t}}function U(t){let e=t?.atomic,n=t?.flags;if(e&&n)throw new Error("Atomic group cannot have flags");return{type:"Group",...e&&{atomic:e},...n&&{flags:n},body:et(t?.body)}}function ue(t){let e={behind:!1,negate:!1,...t};return{type:"LookaroundAssertion",kind:e.behind?"lookbehind":"lookahead",negate:e.negate,body:et(t?.body)}}function ul(t,e,n){return{type:"NamedCallout",kind:t,tag:e,arguments:n}}function hl(t,e){let n=!!e?.negate;if(!Ye.has(t))throw new Error(`Invalid POSIX class "${t}"`);return{type:"CharacterSet",kind:"posix",value:t,negate:n}}function xn(t,e,n,r){if(e>n)throw new Error("Invalid reversed quantifier range");return{type:"Quantifier",kind:t,min:e,max:n,body:r}}function pl(t,e){return{type:"Regex",body:et(e?.body),flags:t}}function vn(t){return{type:"Subroutine",ref:t}}function _e(t,e){let n={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...e},r=n.unicodePropertyMap?.get(Pe(t));if(!r){if(n.normalizeUnknownPropertyNames)r=gl(t);else if(n.unicodePropertyMap&&!n.skipPropertyNameValidation)throw new Error(L`Invalid Unicode property "\p{${t}}"`)}return{type:"CharacterSet",kind:"property",value:r??t,negate:n.negate}}function fl({flags:t,kind:e,name:n,negate:r,number:s}){switch(e){case"absence_repeater":return al("repeater");case"atomic":return U({atomic:!0});case"capturing":return _n(s,{name:n});case"group":return U({flags:t});case"lookahead":case"lookbehind":return ue({behind:e==="lookbehind",negate:r});default:throw new Error(`Unexpected group kind "${e}"`)}}function et(t){if(t===void 0)t=[ne()];else if(!Array.isArray(t)||!t.length||!t.every(e=>e.type==="Alternative"))throw new Error("Invalid body; expected array of one or more Alternative nodes");return t}function Ts(t){if(t===void 0)t=[];else if(!Array.isArray(t)||!t.every(e=>!!e.type))throw new Error("Invalid body; expected array of nodes");return t}function Is(t){return t.type==="LookaroundAssertion"&&t.kind==="lookahead"}function Rs(t){return t.type==="LookaroundAssertion"&&t.kind==="lookbehind"}function dl(t){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(t)}function gl(t){return t.trim().replace(/[- _]+/g,"_").replace(/[A-Z][a-z]+(?=[A-Z])/g,"$&_").replace(/[A-Za-z]+/g,e=>e[0].toUpperCase()+e.slice(1).toLowerCase())}function Pe(t){return t.replace(/[- _]+/g,"").toLowerCase()}function Ns(t,e){return ee(t,`${e?.type==="Character"&&e.value===93?"Empty":"Unclosed"} character class`)}function Ls(t){return ee(t,"Unclosed group")}function xe(t,e,n=null){function r(o,a){for(let i=0;i<o.length;i++){let l=s(o[i],a,i,o);i=Math.max(-1,i+l)}}function s(o,a=null,i=null,l=null){let c=0,u=!1,h={node:o,parent:a,key:i,container:l,root:t,remove(){Ot(l).splice(Math.max(0,Me(i)+c),1),c--,u=!0},removeAllNextSiblings(){return Ot(l).splice(Me(i)+1)},removeAllPrevSiblings(){let y=Me(i)+c;return c-=y,Ot(l).splice(0,Math.max(0,y))},replaceWith(y,b={}){let k=!!b.traverse;l?l[Math.max(0,Me(i)+c)]=y:ee(a,"Can't replace root node")[i]=y,k&&s(y,a,i,l),u=!0},replaceWithMultiple(y,b={}){let k=!!b.traverse;if(Ot(l).splice(Math.max(0,Me(i)+c),1,...y),c+=y.length-1,k){let x=0;for(let v=0;v<y.length;v++)x+=s(y[v],a,Me(i)+v+x,l)}u=!0},skip(){u=!0}},{type:p}=o,d=e["*"],f=e[p],C=typeof d=="function"?d:d?.enter,w=typeof f=="function"?f:f?.enter;if(C?.(h,n),w?.(h,n),!u)switch(p){case"AbsenceFunction":case"CapturingGroup":case"Group":r(o.body,o);break;case"Alternative":case"CharacterClass":r(o.body,o);break;case"Assertion":case"Backreference":case"Character":case"CharacterSet":case"Directive":case"Flags":case"NamedCallout":case"Subroutine":break;case"CharacterClassRange":s(o.min,o,"min"),s(o.max,o,"max");break;case"LookaroundAssertion":r(o.body,o);break;case"Quantifier":s(o.body,o,"body");break;case"Regex":r(o.body,o),s(o.flags,o,"flags");break;default:throw new Error(`Unexpected node type "${p}"`)}return f?.exit?.(h,n),d?.exit?.(h,n),c}return s(t),t}function Ot(t){if(!Array.isArray(t))throw new Error("Container expected");return t}function Me(t){if(typeof t!="number")throw new Error("Numeric key expected");return t}var Ps=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function Ms(t,e){for(let n=0;n<t.length;n++)t[n]>=e&&t[n]++}function $s(t,e,n,r){return t.slice(0,e)+r+t.slice(e+n.length)}var F=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function tt(t,e,n,r){let s=new RegExp(String.raw`${e}|(?<$skip>\[\^?|\\?.)`,"gsu"),o=[!1],a=0,i="";for(let l of t.matchAll(s)){let{0:c,groups:{$skip:u}}=l;if(!u&&(!r||r===F.DEFAULT==!a)){n instanceof Function?i+=n(l,{context:a?F.CHAR_CLASS:F.DEFAULT,negated:o[o.length-1]}):i+=n;continue}c[0]==="["?(a++,o.push(c[1]==="^")):c==="]"&&a&&(a--,o.pop()),i+=c}return i}function An(t,e,n,r){tt(t,e,n,r)}function ml(t,e,n=0,r){if(!new RegExp(e,"su").test(t))return null;let s=new RegExp(`${e}|(?<$skip>\\\\?.)`,"gsu");s.lastIndex=n;let o=0,a;for(;a=s.exec(t);){let{0:i,groups:{$skip:l}}=a;if(!l&&(!r||r===F.DEFAULT==!o))return a;i==="["?o++:i==="]"&&o&&o--,s.lastIndex==a.index&&s.lastIndex++}return null}function nt(t,e,n){return!!ml(t,e,0,n)}function Os(t,e){let n=/\\?./gsu;n.lastIndex=e;let r=t.length,s=0,o=1,a;for(;a=n.exec(t);){let[i]=a;if(i==="[")s++;else if(s)i==="]"&&s--;else if(i==="(")o++;else if(i===")"&&(o--,!o)){r=a.index;break}}return t.slice(e,r)}var Gs=new RegExp(String.raw`(?<noncapturingStart>${Ps})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu");function In(t,e){let n=e?.hiddenCaptures??[],r=e?.captureTransfers??new Map;if(!/\(\?>/.test(t))return{pattern:t,captureTransfers:r,hiddenCaptures:n};let s="(?>",o="(?:(?=(",a=[0],i=[],l=0,c=0,u=NaN,h;do{h=!1;let p=0,d=0,f=!1,C;for(Gs.lastIndex=Number.isNaN(u)?0:u+o.length;C=Gs.exec(t);){let{0:w,index:y,groups:{capturingStart:b,noncapturingStart:k}}=C;if(w==="[")p++;else if(p)w==="]"&&p--;else if(w===s&&!f)u=y,f=!0;else if(f&&k)d++;else if(b)f?d++:(l++,a.push(l+c));else if(w===")"&&f){if(!d){c++;let x=l+c;if(t=`${t.slice(0,u)}${o}${t.slice(u+s.length,y)}))<$$${x}>)${t.slice(y+1)}`,h=!0,i.push(x),Ms(n,x),r.size){let v=new Map;r.forEach((O,B)=>{v.set(B>=x?B+1:B,O.map(X=>X>=x?X+1:X))}),r=v}break}d--}}}while(h);return n.push(...i),t=tt(t,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:p,groups:{backrefNum:d,wrappedBackrefNum:f}})=>{if(d){let C=+d;if(C>a.length-1)throw new Error(`Backref "${p}" greater than number of captures`);return`\\${a[C]}`}return`\\${f}`},F.DEFAULT),{pattern:t,captureTransfers:r,hiddenCaptures:n}}var Bs=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,En=new RegExp(String.raw`
\\(?: \d+
  | c[A-Za-z]
  | [gk]<[^>]+>
  | [pPu]\{[^\}]+\}
  | u[A-Fa-f\d]{4}
  | x[A-Fa-f\d]{2}
  )
| \((?: \? (?: [:=!>]
  | <(?:[=!]|[^>]+>)
  | [A-Za-z\-]+:
  | \(DEFINE\)
  ))?
| (?<qBase>${Bs})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
| \\?.
`.replace(/\s+/g,""),"gsu");function Rn(t){if(!new RegExp(`${Bs}\\+`).test(t))return{pattern:t};let e=[],n=null,r=null,s="",o=0,a;for(En.lastIndex=0;a=En.exec(t);){let{0:i,index:l,groups:{qBase:c,qMod:u,invalidQ:h}}=a;if(i==="[")o||(r=l),o++;else if(i==="]")o?o--:r=null;else if(!o)if(u==="+"&&s&&!s.startsWith("(")){if(h)throw new Error(`Invalid quantifier "${i}"`);let p=-1;if(/^\{\d+\}$/.test(c))t=$s(t,l+c.length,u,"");else{if(s===")"||s==="]"){let d=s===")"?n:r;if(d===null)throw new Error(`Invalid unmatched "${s}"`);t=`${t.slice(0,d)}(?>${t.slice(d,l)}${c})${t.slice(l+i.length)}`}else t=`${t.slice(0,l-s.length)}(?>${s}${c})${t.slice(l+i.length)}`;p+=4}En.lastIndex+=p}else i[0]==="("?e.push(l):i===")"&&(n=e.length?e.pop():null);s=i}return{pattern:t}}var H=String.raw,yl=H`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,Ln=H`\(\?R=(?<rDepth>[^\)]+)\)|${yl}`,Gt=H`\(\?<(?![=!])(?<captureName>[^>]+)>`,zs=H`${Gt}|(?<unnamed>\()(?!\?)`,ve=new RegExp(H`${Gt}|${Ln}|\(\?|\\?.`,"gsu"),Nn="Cannot use multiple overlapping recursions";function Ws(t,e){let{hiddenCaptures:n,mode:r}={hiddenCaptures:[],mode:"plugin",...e},s=e?.captureTransfers??new Map;if(!new RegExp(Ln,"su").test(t))return{pattern:t,captureTransfers:s,hiddenCaptures:n};if(r==="plugin"&&nt(t,H`\(\?\(DEFINE\)`,F.DEFAULT))throw new Error("DEFINE groups cannot be used with recursion");let o=[],a=nt(t,H`\\[1-9]`,F.DEFAULT),i=new Map,l=[],c=!1,u=0,h=0,p;for(ve.lastIndex=0;p=ve.exec(t);){let{0:d,groups:{captureName:f,rDepth:C,gRNameOrNum:w,gRDepth:y}}=p;if(d==="[")u++;else if(u)d==="]"&&u--;else if(C){if(Ds(C),c)throw new Error(Nn);if(a)throw new Error(`${r==="external"?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);let b=t.slice(0,p.index),k=t.slice(ve.lastIndex);if(nt(k,Ln,F.DEFAULT))throw new Error(Nn);let x=+C-1;t=Fs(b,k,x,!1,n,o,h),s=js(s,b,x,o.length,0,h);break}else if(w){Ds(y);let b=!1;for(let ie of l)if(ie.name===w||ie.num===+w){if(b=!0,ie.hasRecursedWithin)throw new Error(Nn);break}if(!b)throw new Error(H`Recursive \g cannot be used outside the referenced group "${r==="external"?w:H`\g<${w}&R=${y}>`}"`);let k=i.get(w),x=Os(t,k);if(a&&nt(x,H`${Gt}|\((?!\?)`,F.DEFAULT))throw new Error(`${r==="external"?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);let v=t.slice(k,p.index),O=x.slice(v.length+d.length),B=o.length,X=+y-1,ot=Fs(v,O,X,!0,n,o,h);s=js(s,v,X,o.length-B,B,h);let Ut=t.slice(0,k),Oe=t.slice(k+x.length);t=`${Ut}${ot}${Oe}`,ve.lastIndex+=ot.length-d.length-v.length-O.length,l.forEach(ie=>ie.hasRecursedWithin=!0),c=!0}else if(f)h++,i.set(String(h),ve.lastIndex),i.set(f,ve.lastIndex),l.push({num:h,name:f});else if(d[0]==="("){let b=d==="(";b&&(h++,i.set(String(h),ve.lastIndex)),l.push(b?{num:h}:{})}else d===")"&&l.pop()}return n.push(...o),{pattern:t,captureTransfers:s,hiddenCaptures:n}}function Ds(t){let e=`Max depth must be integer between 2 and 100; used ${t}`;if(!/^[1-9]\d*$/.test(t))throw new Error(e);if(t=+t,t<2||t>100)throw new Error(e)}function Fs(t,e,n,r,s,o,a){let i=new Set;r&&An(t+e,Gt,({groups:{captureName:c}})=>{i.add(c)},F.DEFAULT);let l=[n,r?i:null,s,o,a];return`${t}${Us(`(?:${t}`,"forward",...l)}(?:)${Us(`${e})`,"backward",...l)}${e}`}function Us(t,e,n,r,s,o,a){let l=u=>e==="forward"?u+2:n-u+2-1,c="";for(let u=0;u<n;u++){let h=l(u);c+=tt(t,H`${zs}|\\k<(?<backref>[^>]+)>`,({0:p,groups:{captureName:d,unnamed:f,backref:C}})=>{if(C&&r&&!r.has(C))return p;let w=`_$${h}`;if(f||d){let y=a+o.length+1;return o.push(y),bl(s,y),f?p:`(?<${d}${w}>`}return H`\k<${C}${w}>`},F.DEFAULT)}return c}function bl(t,e){for(let n=0;n<t.length;n++)t[n]>=e&&t[n]++}function js(t,e,n,r,s,o){if(t.size&&r){let a=0;An(e,zs,()=>a++,F.DEFAULT);let i=o-a+s,l=new Map;return t.forEach((c,u)=>{let h=(r-a*n)/n,p=a*n,d=u>i+a?u+r:u,f=[];for(let C of c)if(C<=i)f.push(C);else if(C>i+a+h)f.push(C+r);else if(C<=i+a)for(let w=0;w<=n;w++)f.push(C+a*w);else for(let w=0;w<=n;w++)f.push(C+p+h*w);l.set(d,f)}),l}return t}var T=String.fromCodePoint,_=String.raw,ae={flagGroups:(()=>{try{new RegExp("(?i:)")}catch{return!1}return!0})(),unicodeSets:(()=>{try{new RegExp("[[]]","v")}catch{return!1}return!0})()};ae.bugFlagVLiteralHyphenIsRange=ae.unicodeSets?(()=>{try{new RegExp(_`[\d\-a]`,"v")}catch{return!0}return!1})():!1;ae.bugNestedClassIgnoresNegation=ae.unicodeSets&&new RegExp("[[^a]]","v").test("a");function Bt(t,{enable:e,disable:n}){return{dotAll:!n?.dotAll&&!!(e?.dotAll||t.dotAll),ignoreCase:!n?.ignoreCase&&!!(e?.ignoreCase||t.ignoreCase)}}function rt(t,e,n){return t.has(e)||t.set(e,n),t.get(e)}function On(t,e){return Hs[t]>=Hs[e]}function wl(t,e){if(t==null)throw new Error(e??"Value expected");return t}var Hs={ES2025:2025,ES2024:2024,ES2018:2018},Cl={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function Qs(t={}){if({}.toString.call(t)!=="[object Object]")throw new Error("Unexpected options");if(t.target!==void 0&&!Cl[t.target])throw new Error(`Unexpected target "${t.target}"`);let e={accuracy:"default",avoidSubclass:!1,flags:"",global:!1,hasIndices:!1,lazyCompileLength:1/0,target:"auto",verbose:!1,...t,rules:{allowOrphanBackrefs:!1,asciiWordBoundaries:!1,captureGroup:!1,recursionLimit:20,singleline:!1,...t.rules}};return e.target==="auto"&&(e.target=ae.flagGroups?"ES2025":ae.unicodeSets?"ES2024":"ES2018"),e}var kl="[	-\r ]",Sl=new Set([T(304),T(305)]),re=_`[\p{L}\p{M}\p{N}\p{Pc}]`;function Zs(t){if(Sl.has(t))return[t];let e=new Set,n=t.toLowerCase(),r=n.toUpperCase(),s=vl.get(n),o=_l.get(n),a=xl.get(n);return[...r].length===1&&e.add(r),a&&e.add(a),s&&e.add(s),e.add(n),o&&e.add(o),[...e]}var Bn=new Map(`C Other
Cc Control cntrl
Cf Format
Cn Unassigned
Co Private_Use
Cs Surrogate
L Letter
LC Cased_Letter
Ll Lowercase_Letter
Lm Modifier_Letter
Lo Other_Letter
Lt Titlecase_Letter
Lu Uppercase_Letter
M Mark Combining_Mark
Mc Spacing_Mark
Me Enclosing_Mark
Mn Nonspacing_Mark
N Number
Nd Decimal_Number digit
Nl Letter_Number
No Other_Number
P Punctuation punct
Pc Connector_Punctuation
Pd Dash_Punctuation
Pe Close_Punctuation
Pf Final_Punctuation
Pi Initial_Punctuation
Po Other_Punctuation
Ps Open_Punctuation
S Symbol
Sc Currency_Symbol
Sk Modifier_Symbol
Sm Math_Symbol
So Other_Symbol
Z Separator
Zl Line_Separator
Zp Paragraph_Separator
Zs Space_Separator
ASCII
ASCII_Hex_Digit AHex
Alphabetic Alpha
Any
Assigned
Bidi_Control Bidi_C
Bidi_Mirrored Bidi_M
Case_Ignorable CI
Cased
Changes_When_Casefolded CWCF
Changes_When_Casemapped CWCM
Changes_When_Lowercased CWL
Changes_When_NFKC_Casefolded CWKCF
Changes_When_Titlecased CWT
Changes_When_Uppercased CWU
Dash
Default_Ignorable_Code_Point DI
Deprecated Dep
Diacritic Dia
Emoji
Emoji_Component EComp
Emoji_Modifier EMod
Emoji_Modifier_Base EBase
Emoji_Presentation EPres
Extended_Pictographic ExtPict
Extender Ext
Grapheme_Base Gr_Base
Grapheme_Extend Gr_Ext
Hex_Digit Hex
IDS_Binary_Operator IDSB
IDS_Trinary_Operator IDST
ID_Continue IDC
ID_Start IDS
Ideographic Ideo
Join_Control Join_C
Logical_Order_Exception LOE
Lowercase Lower
Math
Noncharacter_Code_Point NChar
Pattern_Syntax Pat_Syn
Pattern_White_Space Pat_WS
Quotation_Mark QMark
Radical
Regional_Indicator RI
Sentence_Terminal STerm
Soft_Dotted SD
Terminal_Punctuation Term
Unified_Ideograph UIdeo
Uppercase Upper
Variation_Selector VS
White_Space space
XID_Continue XIDC
XID_Start XIDS`.split(/\s/).map(t=>[Pe(t),t])),_l=new Map([["s",T(383)],[T(383),"s"]]),xl=new Map([[T(223),T(7838)],[T(107),T(8490)],[T(229),T(8491)],[T(969),T(8486)]]),vl=new Map([he(453),he(456),he(459),he(498),...Tn(8072,8079),...Tn(8088,8095),...Tn(8104,8111),he(8124),he(8140),he(8188)]),Al=new Map([["alnum",_`[\p{Alpha}\p{Nd}]`],["alpha",_`\p{Alpha}`],["ascii",_`\p{ASCII}`],["blank",_`[\p{Zs}\t]`],["cntrl",_`\p{Cc}`],["digit",_`\p{Nd}`],["graph",_`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",_`\p{Lower}`],["print",_`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",_`[\p{P}\p{S}]`],["space",_`\p{space}`],["upper",_`\p{Upper}`],["word",_`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",_`\p{AHex}`]]);function El(t,e){let n=[];for(let r=t;r<=e;r++)n.push(r);return n}function he(t){let e=T(t);return[e.toLowerCase(),e]}function Tn(t,e){return El(t,e).map(n=>he(n))}var Ys=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]);function Il(t,e){let n={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...e};Js(t);let r={accuracy:n.accuracy,asciiWordBoundaries:n.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:On(n.bestEffortTarget,"ES2024"),passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:t.flags.digitIsAscii,spaceIsAscii:t.flags.spaceIsAscii,wordIsAscii:t.flags.wordIsAscii};xe(t,Rl,r);let s={dotAll:t.flags.dotAll,ignoreCase:t.flags.ignoreCase},o={currentFlags:s,prevFlags:null,globalFlags:s,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:r.subroutineRefMap};xe(t,Nl,o);let a={groupsByName:o.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:o.reffedNodesByReferencer};return xe(t,Ll,a),t._originMap=o.groupOriginByCopy,t._strategy=r.strategy,t}var Rl={AbsenceFunction({node:t,parent:e,replaceWith:n}){let{body:r,kind:s}=t;if(s==="repeater"){let o=U();o.body[0].body.push(ue({negate:!0,body:r}),_e("Any"));let a=U();a.body[0].body.push(xn("greedy",0,1/0,o)),n(N(a,e),{traverse:!0})}else throw new Error('Unsupported absence function "(?~|"')},Alternative:{enter({node:t,parent:e,key:n},{flagDirectivesByAlt:r}){let s=t.body.filter(o=>o.kind==="flags");for(let o=n+1;o<e.body.length;o++){let a=e.body[o];rt(r,a,[]).push(...s)}},exit({node:t},{flagDirectivesByAlt:e}){if(e.get(t)?.length){let n=to(e.get(t));if(n){let r=U({flags:n});r.body[0].body=t.body,t.body=[N(r,t)]}}}},Assertion({node:t,parent:e,key:n,container:r,root:s,remove:o,replaceWith:a},i){let{kind:l,negate:c}=t,{asciiWordBoundaries:u,avoidSubclass:h,supportedGNodes:p,wordIsAscii:d}=i;if(l==="text_segment_boundary")throw new Error(`Unsupported text segment boundary "\\${c?"Y":"y"}"`);if(l==="line_end")a(N(ue({body:[ne({body:[Mt("string_end")]}),ne({body:[Te(10)]})]}),e));else if(l==="line_start")a(N(se(_`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),e));else if(l==="search_start")if(p.has(t))s.flags.sticky=!0,o();else{let f=r[n-1];if(f&&Gl(f))a(N(ue({negate:!0}),e));else{if(h)throw new Error(_`Uses "\G" in a way that requires a subclass`);a(pe(Mt("string_start"),e)),i.strategy="clip_search"}}else if(!(l==="string_end"||l==="string_start"))if(l==="string_end_newline")a(N(se(_`(?=\n?\z)`),e));else if(l==="word_boundary"){if(!d&&!u){let f=`(?:(?<=${re})(?!${re})|(?<!${re})(?=${re}))`,C=`(?:(?<=${re})(?=${re})|(?<!${re})(?!${re}))`;a(N(se(c?C:f),e))}}else throw new Error(`Unexpected assertion kind "${l}"`)},Backreference({node:t},{jsGroupNameMap:e}){let{ref:n}=t;typeof n=="string"&&!Mn(n)&&(n=Pn(n,e),t.ref=n)},CapturingGroup({node:t},{jsGroupNameMap:e,subroutineRefMap:n}){let{name:r}=t;r&&!Mn(r)&&(r=Pn(r,e),t.name=r),n.set(t.number,t),r&&n.set(r,t)},CharacterClassRange({node:t,parent:e,replaceWith:n}){if(e.kind==="intersection"){let r=Je({body:[t]});n(N(r,e),{traverse:!0})}},CharacterSet({node:t,parent:e,replaceWith:n},{accuracy:r,minTargetEs2024:s,digitIsAscii:o,spaceIsAscii:a,wordIsAscii:i}){let{kind:l,negate:c,value:u}=t;if(o&&(l==="digit"||u==="digit")){n(pe($t("digit",{negate:c}),e));return}if(a&&(l==="space"||u==="space")){n(N($n(se(kl),c),e));return}if(i&&(l==="word"||u==="word")){n(pe($t("word",{negate:c}),e));return}if(l==="any")n(pe(_e("Any"),e));else if(l==="digit")n(pe(_e("Nd",{negate:c}),e));else if(l!=="dot")if(l==="text_segment"){if(r==="strict")throw new Error(_`Use of "\X" requires non-strict accuracy`);let h="\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?",p=_`\p{RI}{2}|${h}(?:\u200D${h})*`;n(N(se(_`(?>\r\n|${s?_`\p{RGI_Emoji}`:p}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),e))}else if(l==="hex")n(pe(_e("AHex",{negate:c}),e));else if(l==="newline")n(N(se(c?`[^
]`:`(?>\r
?|[
\v\f\x85\u2028\u2029])`),e));else if(l==="posix")if(!s&&(u==="graph"||u==="print")){if(r==="strict")throw new Error(`POSIX class "${u}" requires min target ES2024 or non-strict accuracy`);let h={graph:"!-~",print:" -~"}[u];c&&(h=`\0-${T(h.codePointAt(0)-1)}${T(h.codePointAt(2)+1)}-\u{10FFFF}`),n(N(se(`[${h}]`),e))}else n(N($n(se(Al.get(u)),c),e));else if(l==="property")Bn.has(Pe(u))||(t.key="sc");else if(l==="space")n(pe(_e("space",{negate:c}),e));else if(l==="word")n(N($n(se(re),c),e));else throw new Error(`Unexpected character set kind "${l}"`)},Directive({node:t,parent:e,root:n,remove:r,replaceWith:s,removeAllPrevSiblings:o,removeAllNextSiblings:a}){let{kind:i,flags:l}=t;if(i==="flags")if(!l.enable&&!l.disable)r();else{let c=U({flags:l});c.body[0].body=a(),s(N(c,e),{traverse:!0})}else if(i==="keep"){let c=n.body[0],h=n.body.length===1&&Lt(c,{type:"Group"})&&c.body[0].body.length===1?c.body[0]:n;if(e.parent!==h||h.body.length>1)throw new Error(_`Uses "\K" in a way that's unsupported`);let p=ue({behind:!0});p.body[0].body=o(),s(N(p,e))}else throw new Error(`Unexpected directive kind "${i}"`)},Flags({node:t,parent:e}){if(t.posixIsAscii)throw new Error('Unsupported flag "P"');if(t.textSegmentMode==="word")throw new Error('Unsupported flag "y{w}"');["digitIsAscii","extended","posixIsAscii","spaceIsAscii","wordIsAscii","textSegmentMode"].forEach(n=>delete t[n]),Object.assign(t,{global:!1,hasIndices:!1,multiline:!1,sticky:t.sticky??!1}),e.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:t}){if(!t.flags)return;let{enable:e,disable:n}=t.flags;e?.extended&&delete e.extended,n?.extended&&delete n.extended,e?.dotAll&&n?.dotAll&&delete e.dotAll,e?.ignoreCase&&n?.ignoreCase&&delete e.ignoreCase,e&&!Object.keys(e).length&&delete t.flags.enable,n&&!Object.keys(n).length&&delete t.flags.disable,!t.flags.enable&&!t.flags.disable&&delete t.flags},LookaroundAssertion({node:t},e){let{kind:n}=t;n==="lookbehind"&&(e.passedLookbehind=!0)},NamedCallout({node:t,parent:e,replaceWith:n}){let{kind:r}=t;if(r==="fail")n(N(ue({negate:!0}),e));else throw new Error(`Unsupported named callout "(*${r.toUpperCase()}"`)},Quantifier({node:t}){if(t.body.type==="Quantifier"){let e=U();e.body[0].body.push(t.body),t.body=N(e,t)}},Regex:{enter({node:t},{supportedGNodes:e}){let n=[],r=!1,s=!1;for(let o of t.body)if(o.body.length===1&&o.body[0].kind==="search_start")o.body.pop();else{let a=ro(o.body);a?(r=!0,Array.isArray(a)?n.push(...a):n.push(a)):s=!0}r&&!s&&n.forEach(o=>e.add(o))},exit(t,{accuracy:e,passedLookbehind:n,strategy:r}){if(e==="strict"&&n&&r)throw new Error(_`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:t},{jsGroupNameMap:e}){let{ref:n}=t;typeof n=="string"&&!Mn(n)&&(n=Pn(n,e),t.ref=n)}},Nl={Backreference({node:t},{multiplexCapturesToLeftByRef:e,reffedNodesByReferencer:n}){let{orphan:r,ref:s}=t;r||n.set(t,[...e.get(s).map(({node:o})=>o)])},CapturingGroup:{enter({node:t,parent:e,replaceWith:n,skip:r},{groupOriginByCopy:s,groupsByName:o,multiplexCapturesToLeftByRef:a,openRefs:i,reffedNodesByReferencer:l}){let c=s.get(t);if(c&&i.has(t.number)){let h=pe(qs(t.number),e);l.set(h,i.get(t.number)),n(h);return}i.set(t.number,t),a.set(t.number,[]),t.name&&rt(a,t.name,[]);let u=a.get(t.name??t.number);for(let h=0;h<u.length;h++){let p=u[h];if(c===p.node||c&&c===p.origin||t===p.origin){u.splice(h,1);break}}if(a.get(t.number).push({node:t,origin:c}),t.name&&a.get(t.name).push({node:t,origin:c}),t.name){let h=rt(o,t.name,new Map),p=!1;if(c)p=!0;else for(let d of h.values())if(!d.hasDuplicateNameToRemove){p=!0;break}o.get(t.name).set(t,{node:t,hasDuplicateNameToRemove:p})}},exit({node:t},{openRefs:e}){e.delete(t.number)}},Group:{enter({node:t},e){e.prevFlags=e.currentFlags,t.flags&&(e.currentFlags=Bt(e.currentFlags,t.flags))},exit(t,e){e.currentFlags=e.prevFlags}},Subroutine({node:t,parent:e,replaceWith:n},r){let{isRecursive:s,ref:o}=t;if(s){let u=e;for(;(u=u.parent)&&!(u.type==="CapturingGroup"&&(u.name===o||u.number===o)););r.reffedNodesByReferencer.set(t,u);return}let a=r.subroutineRefMap.get(o),i=o===0,l=i?qs(0):eo(a,r.groupOriginByCopy,null),c=l;if(!i){let u=to(Ml(a,p=>p.type==="Group"&&!!p.flags)),h=u?Bt(r.globalFlags,u):r.globalFlags;Tl(h,r.currentFlags)||(c=U({flags:$l(h)}),c.body[0].body.push(l))}n(N(c,e),{traverse:!i})}},Ll={Backreference({node:t,parent:e,replaceWith:n},r){if(t.orphan){r.highestOrphanBackref=Math.max(r.highestOrphanBackref,t.ref);return}let o=r.reffedNodesByReferencer.get(t).filter(a=>Pl(a,t));if(!o.length)n(N(ue({negate:!0}),e));else if(o.length>1){let a=U({atomic:!0,body:o.reverse().map(i=>ne({body:[Tt(i.number)]}))});n(N(a,e))}else t.ref=o[0].number},CapturingGroup({node:t},e){t.number=++e.numCapturesToLeft,t.name&&e.groupsByName.get(t.name).get(t).hasDuplicateNameToRemove&&delete t.name},Regex:{exit({node:t},e){let n=Math.max(e.highestOrphanBackref-e.numCapturesToLeft,0);for(let r=0;r<n;r++){let s=_n();t.body.at(-1).body.push(s)}}},Subroutine({node:t},e){!t.isRecursive||t.ref===0||(t.ref=e.reffedNodesByReferencer.get(t).number)}};function Js(t){xe(t,{"*"({node:e,parent:n}){e.parent=n}})}function Tl(t,e){return t.dotAll===e.dotAll&&t.ignoreCase===e.ignoreCase}function Pl(t,e){let n=e;do{if(n.type==="Regex")return!1;if(n.type==="Alternative")continue;if(n===t)return!1;let r=no(n.parent);for(let s of r){if(s===n)break;if(s===t||so(s,t))return!0}}while(n=n.parent);throw new Error("Unexpected path")}function eo(t,e,n,r){let s=Array.isArray(t)?[]:{};for(let[o,a]of Object.entries(t))o==="parent"?s.parent=Array.isArray(n)?r:n:a&&typeof a=="object"?s[o]=eo(a,e,s,n):(o==="type"&&a==="CapturingGroup"&&e.set(s,e.get(t)??t),s[o]=a);return s}function qs(t){let e=vn(t);return e.isRecursive=!0,e}function Ml(t,e){let n=[];for(;t=t.parent;)(!e||e(t))&&n.push(t);return n}function Pn(t,e){if(e.has(t))return e.get(t);let n=`$${e.size}_${t.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/ug,"_")}`;return e.set(t,n),n}function to(t){let e=["dotAll","ignoreCase"],n={enable:{},disable:{}};return t.forEach(({flags:r})=>{e.forEach(s=>{r.enable?.[s]&&(delete n.disable[s],n.enable[s]=!0),r.disable?.[s]&&(n.disable[s]=!0)})}),Object.keys(n.enable).length||delete n.enable,Object.keys(n.disable).length||delete n.disable,n.enable||n.disable?n:null}function $l({dotAll:t,ignoreCase:e}){let n={};return(t||e)&&(n.enable={},t&&(n.enable.dotAll=!0),e&&(n.enable.ignoreCase=!0)),(!t||!e)&&(n.disable={},!t&&(n.disable.dotAll=!0),!e&&(n.disable.ignoreCase=!0)),n}function no(t){if(!t)throw new Error("Node expected");let{body:e}=t;return Array.isArray(e)?e:e?[e]:null}function ro(t){let e=t.find(n=>n.kind==="search_start"||Bl(n,{negate:!1})||!Ol(n));if(!e)return null;if(e.kind==="search_start")return e;if(e.type==="LookaroundAssertion")return e.body[0].body[0];if(e.type==="CapturingGroup"||e.type==="Group"){let n=[];for(let r of e.body){let s=ro(r.body);if(!s)return null;Array.isArray(s)?n.push(...s):n.push(s)}return n}return null}function so(t,e){let n=no(t)??[];for(let r of n)if(r===e||so(r,e))return!0;return!1}function Ol({type:t}){return t==="Assertion"||t==="Directive"||t==="LookaroundAssertion"}function Gl(t){let e=["Character","CharacterClass","CharacterSet"];return e.includes(t.type)||t.type==="Quantifier"&&t.min&&e.includes(t.body.type)}function Bl(t,e){let n={negate:null,...e};return t.type==="LookaroundAssertion"&&(n.negate===null||t.negate===n.negate)&&t.body.length===1&&Lt(t.body[0],{type:"Assertion",kind:"search_start"})}function Mn(t){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(t)}function se(t,e){let r=Pt(t,{...e,unicodePropertyMap:Bn}).body;return r.length>1||r[0].body.length>1?U({body:r}):r[0].body[0]}function $n(t,e){return t.negate=e,t}function pe(t,e){return t.parent=e,t}function N(t,e){return Js(t),t.parent=e,t}function Dl(t,e){let n=Qs(e),r=On(n.target,"ES2024"),s=On(n.target,"ES2025"),o=n.rules.recursionLimit;if(!Number.isInteger(o)||o<2||o>20)throw new Error("Invalid recursionLimit; use 2-20");let a=null,i=null;if(!s){let d=[t.flags.ignoreCase];xe(t,Fl,{getCurrentModI:()=>d.at(-1),popModI(){d.pop()},pushModI(f){d.push(f)},setHasCasedChar(){d.at(-1)?a=!0:i=!0}})}let l={dotAll:t.flags.dotAll,ignoreCase:!!((t.flags.ignoreCase||a)&&!i)},c=t,u={accuracy:n.accuracy,appliedGlobalFlags:l,captureMap:new Map,currentFlags:{dotAll:t.flags.dotAll,ignoreCase:t.flags.ignoreCase},inCharClass:!1,lastNode:c,originMap:t._originMap,recursionLimit:o,useAppliedIgnoreCase:!!(!s&&a&&i),useFlagMods:s,useFlagV:r,verbose:n.verbose};function h(d){return u.lastNode=c,c=d,wl(Ul[d.type],`Unexpected node type "${d.type}"`)(d,u,h)}let p={pattern:t.body.map(h).join("|"),flags:h(t.flags),options:{...t.options}};return r||(delete p.options.force.v,p.options.disable.v=!0,p.options.unicodeSetsPlugin=null),p._captureTransfers=new Map,p._hiddenCaptures=[],u.captureMap.forEach((d,f)=>{d.hidden&&p._hiddenCaptures.push(f),d.transferTo&&rt(p._captureTransfers,d.transferTo,[]).push(f)}),p}var Fl={"*":{enter({node:t},e){if(Xs(t)){let n=e.getCurrentModI();e.pushModI(t.flags?Bt({ignoreCase:n},t.flags).ignoreCase:n)}},exit({node:t},e){Xs(t)&&e.popModI()}},Backreference(t,e){e.setHasCasedChar()},Character({node:t},e){Dn(T(t.value))&&e.setHasCasedChar()},CharacterClassRange({node:t,skip:e},n){e(),oo(t,{firstOnly:!0}).length&&n.setHasCasedChar()},CharacterSet({node:t},e){t.kind==="property"&&Ys.has(t.value)&&e.setHasCasedChar()}},Ul={Alternative({body:t},e,n){return t.map(n).join("")},Assertion({kind:t,negate:e}){if(t==="string_end")return"$";if(t==="string_start")return"^";if(t==="word_boundary")return e?_`\B`:_`\b`;throw new Error(`Unexpected assertion kind "${t}"`)},Backreference({ref:t},e){if(typeof t!="number")throw new Error("Unexpected named backref in transformed AST");if(!e.useFlagMods&&e.accuracy==="strict"&&e.currentFlags.ignoreCase&&!e.captureMap.get(t).ignoreCase)throw new Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");return"\\"+t},CapturingGroup(t,e,n){let{body:r,name:s,number:o}=t,a={ignoreCase:e.currentFlags.ignoreCase},i=e.originMap.get(t);return i&&(a.hidden=!0,o>i.number&&(a.transferTo=i.number)),e.captureMap.set(o,a),`(${s?`?<${s}>`:""}${r.map(n).join("|")})`},Character({value:t},e){let n=T(t),r=$e(t,{escDigit:e.lastNode.type==="Backreference",inCharClass:e.inCharClass,useFlagV:e.useFlagV});if(r!==n)return r;if(e.useAppliedIgnoreCase&&e.currentFlags.ignoreCase&&Dn(n)){let s=Zs(n);return e.inCharClass?s.join(""):s.length>1?`[${s.join("")}]`:s[0]}return n},CharacterClass(t,e,n){let{kind:r,negate:s,parent:o}=t,{body:a}=t;if(r==="intersection"&&!e.useFlagV)throw new Error("Use of character class intersection requires min target ES2024");ae.bugFlagVLiteralHyphenIsRange&&e.useFlagV&&a.some(Ks)&&(a=[Te(45),...a.filter(c=>!Ks(c))]);let i=()=>`[${s?"^":""}${a.map(n).join(r==="intersection"?"&&":"")}]`;if(!e.inCharClass){if((!e.useFlagV||ae.bugNestedClassIgnoresNegation)&&!s){let u=a.filter(h=>h.type==="CharacterClass"&&h.kind==="union"&&h.negate);if(u.length){let h=U(),p=h.body[0];return h.parent=o,p.parent=h,a=a.filter(d=>!u.includes(d)),t.body=a,a.length?(t.parent=p,p.body.push(t)):h.body.pop(),u.forEach(d=>{let f=ne({body:[d]});d.parent=f,f.parent=h,h.body.push(f)}),n(h)}}e.inCharClass=!0;let c=i();return e.inCharClass=!1,c}let l=a[0];if(r==="union"&&!s&&l&&((!e.useFlagV||!e.verbose)&&o.kind==="union"&&!(ae.bugFlagVLiteralHyphenIsRange&&e.useFlagV)||!e.verbose&&o.kind==="intersection"&&a.length===1&&l.type!=="CharacterClassRange"))return a.map(n).join("");if(!e.useFlagV&&o.type==="CharacterClass")throw new Error("Uses nested character class in a way that requires min target ES2024");return i()},CharacterClassRange(t,e){let n=t.min.value,r=t.max.value,s={escDigit:!1,inCharClass:!0,useFlagV:e.useFlagV},o=$e(n,s),a=$e(r,s),i=new Set;if(e.useAppliedIgnoreCase&&e.currentFlags.ignoreCase){let l=oo(t);ql(l).forEach(u=>{i.add(Array.isArray(u)?`${$e(u[0],s)}-${$e(u[1],s)}`:$e(u,s))})}return`${o}-${a}${[...i].join("")}`},CharacterSet({kind:t,negate:e,value:n,key:r},s){if(t==="dot")return s.currentFlags.dotAll?s.appliedGlobalFlags.dotAll||s.useFlagMods?".":"[^]":_`[^\n]`;if(t==="digit")return e?_`\D`:_`\d`;if(t==="property"){if(s.useAppliedIgnoreCase&&s.currentFlags.ignoreCase&&Ys.has(n))throw new Error(`Unicode property "${n}" can't be case-insensitive when other chars have specific case`);return`${e?_`\P`:_`\p`}{${r?`${r}=`:""}${n}}`}if(t==="word")return e?_`\W`:_`\w`;throw new Error(`Unexpected character set kind "${t}"`)},Flags(t,e){return(e.appliedGlobalFlags.ignoreCase?"i":"")+(t.dotAll?"s":"")+(t.sticky?"y":"")},Group({atomic:t,body:e,flags:n,parent:r},s,o){let a=s.currentFlags;n&&(s.currentFlags=Bt(a,n));let i=e.map(o).join("|"),l=!s.verbose&&e.length===1&&r.type!=="Quantifier"&&!t&&(!s.useFlagMods||!n)?i:`(?${Vl(t,n,s.useFlagMods)}${i})`;return s.currentFlags=a,l},LookaroundAssertion({body:t,kind:e,negate:n},r,s){return`(?${`${e==="lookahead"?"":"<"}${n?"!":"="}`}${t.map(s).join("|")})`},Quantifier(t,e,n){return n(t.body)+Xl(t)},Subroutine({isRecursive:t,ref:e},n){if(!t)throw new Error("Unexpected non-recursive subroutine in transformed AST");let r=n.recursionLimit;return e===0?`(?R=${r})`:_`\g<${e}&R=${r}>`}},jl=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),zl=new Set(["-","\\","]","^","["]),Wl=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),Vs=new Map([[9,_`\t`],[10,_`\n`],[11,_`\v`],[12,_`\f`],[13,_`\r`],[8232,_`\u2028`],[8233,_`\u2029`],[65279,_`\uFEFF`]]),Hl=/^\p{Cased}$/u;function Dn(t){return Hl.test(t)}function oo(t,e){let n=!!e?.firstOnly,r=t.min.value,s=t.max.value,o=[];if(r<65&&(s===65535||s>=131071)||r===65536&&s>=131071)return o;for(let a=r;a<=s;a++){let i=T(a);if(!Dn(i))continue;let l=Zs(i).filter(c=>{let u=c.codePointAt(0);return u<r||u>s});if(l.length&&(o.push(...l),n))break}return o}function $e(t,{escDigit:e,inCharClass:n,useFlagV:r}){if(Vs.has(t))return Vs.get(t);if(t<32||t>126&&t<160||t>262143||e&&Kl(t))return t>255?`\\u{${t.toString(16).toUpperCase()}}`:`\\x${t.toString(16).toUpperCase().padStart(2,"0")}`;let s=n?r?Wl:zl:jl,o=T(t);return(s.has(o)?"\\":"")+o}function ql(t){let e=t.map(s=>s.codePointAt(0)).sort((s,o)=>s-o),n=[],r=null;for(let s=0;s<e.length;s++)e[s+1]===e[s]+1?r??(r=e[s]):r===null?n.push(e[s]):(n.push([r,e[s]]),r=null);return n}function Vl(t,e,n){if(t)return">";let r="";if(e&&n){let{enable:s,disable:o}=e;r=(s?.ignoreCase?"i":"")+(s?.dotAll?"s":"")+(o?"-":"")+(o?.ignoreCase?"i":"")+(o?.dotAll?"s":"")}return`${r}:`}function Xl({kind:t,max:e,min:n}){let r;return!n&&e===1?r="?":!n&&e===1/0?r="*":n===1&&e===1/0?r="+":n===e?r=`{${n}}`:r=`{${n},${e===1/0?"":e}}`,r+{greedy:"",lazy:"?",possessive:"+"}[t]}function Xs({type:t}){return t==="CapturingGroup"||t==="Group"||t==="LookaroundAssertion"}function Kl(t){return t>47&&t<58}function Ks({type:t,value:e}){return t==="Character"&&e===45}var fe,oe,Ae,de,Ee,st,Gn,ge,Ql=(ge=class extends RegExp{constructor(n,r,s){var e=(...Qp)=>(super(...Qp),me(this,st),me(this,fe,new Map),me(this,oe,null),me(this,Ae),me(this,de,null),me(this,Ee,null),g(this,"rawOptions",{}),this);let o=!!s?.lazyCompile;if(n instanceof RegExp){if(s)throw new Error("Cannot provide options when copying a regexp");let a=n;e(a,r),q(this,Ae,a.source),a instanceof ge&&(q(this,fe,G(a,fe)),q(this,de,G(a,de)),q(this,Ee,G(a,Ee)),this.rawOptions=a.rawOptions)}else{let a={hiddenCaptures:[],strategy:null,transfers:[],...s};e(o?"":n,r),q(this,Ae,n),q(this,fe,Yl(a.hiddenCaptures,a.transfers)),q(this,Ee,a.strategy),this.rawOptions=s??{}}o||q(this,oe,this)}get source(){return G(this,Ae)||"(?:)"}exec(n){if(!G(this,oe)){let{lazyCompile:o,...a}=this.rawOptions;q(this,oe,new ge(G(this,Ae),this.flags,a))}let r=this.global||this.sticky,s=this.lastIndex;if(G(this,Ee)==="clip_search"&&r&&s){this.lastIndex=0;let o=Wt(this,st,Gn).call(this,n.slice(s));return o&&(Zl(o,s,n,this.hasIndices),this.lastIndex+=s),o}return Wt(this,st,Gn).call(this,n)}},fe=new WeakMap,oe=new WeakMap,Ae=new WeakMap,de=new WeakMap,Ee=new WeakMap,st=new WeakSet,Gn=function(n){G(this,oe).lastIndex=this.lastIndex;let r=Xn(ge.prototype,this,"exec").call(G(this,oe),n);if(this.lastIndex=G(this,oe).lastIndex,!r||!G(this,fe).size)return r;let s=[...r];r.length=1;let o;this.hasIndices&&(o=[...r.indices],r.indices.length=1);let a=[0];for(let i=1;i<s.length;i++){let{hidden:l,transferTo:c}=G(this,fe).get(i)??{};if(l?a.push(null):(a.push(r.length),r.push(s[i]),this.hasIndices&&r.indices.push(o[i])),c&&s[i]!==void 0){let u=a[c];if(!u)throw new Error(`Invalid capture transfer to "${u}"`);if(r[u]=s[i],this.hasIndices&&(r.indices[u]=o[i]),r.groups){G(this,de)||q(this,de,Jl(this.source));let h=G(this,de).get(c);h&&(r.groups[h]=s[i],this.hasIndices&&(r.indices.groups[h]=o[i]))}}}return r},ge);function Zl(t,e,n,r){if(t.index+=e,t.input=n,r){let s=t.indices;for(let a=0;a<s.length;a++){let i=s[a];i&&(s[a]=[i[0]+e,i[1]+e])}let o=s.groups;o&&Object.keys(o).forEach(a=>{let i=o[a];i&&(o[a]=[i[0]+e,i[1]+e])})}}function Yl(t,e){let n=new Map;for(let r of t)n.set(r,{hidden:!0});for(let[r,s]of e)for(let o of s)rt(n,o,{}).transferTo=r;return n}function Jl(t){let e=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,n=new Map,r=0,s=0,o;for(;o=e.exec(t);){let{0:a,groups:{capture:i,name:l}}=o;a==="["?r++:r?a==="]"&&r--:i&&(s++,l&&n.set(s,l))}return n}function ao(t,e){let n=ec(t,e);return n.options?new Ql(n.pattern,n.flags,n.options):new RegExp(n.pattern,n.flags)}function ec(t,e){let n=Qs(e),r=Pt(t,{flags:n.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline},skipBackrefValidation:n.rules.allowOrphanBackrefs,unicodePropertyMap:Bn}),s=Il(r,{accuracy:n.accuracy,asciiWordBoundaries:n.rules.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,bestEffortTarget:n.target}),o=Dl(s,n),a=Ws(o.pattern,{captureTransfers:o._captureTransfers,hiddenCaptures:o._hiddenCaptures,mode:"external"}),i=Rn(a.pattern),l=In(i.pattern,{captureTransfers:a.captureTransfers,hiddenCaptures:a.hiddenCaptures}),c={pattern:l.pattern,flags:`${n.hasIndices?"d":""}${n.global?"g":""}${o.flags}${o.options.disable.v?"u":"v"}`};if(n.avoidSubclass){if(n.lazyCompileLength!==1/0)throw new Error("Lazy compilation requires subclass")}else{let u=l.hiddenCaptures.sort((f,C)=>f-C),h=Array.from(l.captureTransfers),p=s._strategy,d=c.pattern.length>=n.lazyCompileLength;(u.length||h.length||p||d)&&(c.options={...u.length&&{hiddenCaptures:u},...h.length&&{transfers:h},...p&&{strategy:p},...d&&{lazyCompile:d}})}return c}function io(t,e){return ao(t,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...e})}function Fn(t={}){let e=Object.assign({target:"auto",cache:new Map},t);return e.regexConstructor||(e.regexConstructor=n=>io(n,{target:e.target})),{createScanner(n){return new ds(n,e)},createString(n){return{content:n}}}}function Un(t){return t.split(/\r\n|\r|\n/).map(e=>[{content:e,col:0}])}var jn={name:"css-variables",type:"dark",fg:"var(--shiki-foreground)",bg:"var(--shiki-background)",settings:[{scope:["meta.embedded","meta.template.expression"],settings:{foreground:"var(--shiki-foreground)"}},{scope:["comment","punctuation.definition.comment"],settings:{foreground:"var(--shiki-token-comment)",fontStyle:"italic"}},{scope:["string","string.quoted","string.template","string.other.link"],settings:{foreground:"var(--shiki-token-string)"}},{scope:["string.regexp"],settings:{foreground:"var(--shiki-token-string-expression)"}},{scope:["constant.numeric"],settings:{foreground:"var(--shiki-token-constant)"}},{scope:["constant.language"],settings:{foreground:"var(--shiki-token-keyword)"}},{scope:["constant.character","constant.character.escape"],settings:{foreground:"var(--shiki-token-string-expression)"}},{scope:["constant.other"],settings:{foreground:"var(--shiki-token-constant)"}},{scope:["variable"],settings:{foreground:"var(--shiki-token-variable)"}},{scope:["variable.language"],settings:{foreground:"var(--shiki-token-language-variable)"}},{scope:["variable.parameter"],settings:{foreground:"var(--shiki-token-parameter)"}},{scope:["variable.other.constant"],settings:{foreground:"var(--shiki-token-constant-variable)"}},{scope:["variable.other.property","support.variable.property"],settings:{foreground:"var(--shiki-token-property)"}},{scope:["keyword","keyword.control","keyword.operator.new","keyword.operator.expression","keyword.operator.logical","keyword.operator.delete","storage","storage.type","storage.modifier"],settings:{foreground:"var(--shiki-token-keyword)"}},{scope:["entity.name.function","support.function"],settings:{foreground:"var(--shiki-token-function)"}},{scope:["entity.name.type","support.type","entity.name.type.class"],settings:{foreground:"var(--shiki-token-type)"}},{scope:["entity.name.class","support.class"],settings:{foreground:"var(--shiki-token-class)"}},{scope:["entity.name.tag","support.class.component","punctuation.definition.tag"],settings:{foreground:"var(--shiki-token-tag)"}},{scope:["entity.other.attribute-name"],settings:{foreground:"var(--shiki-token-attribute)"}},{scope:["entity.name.section"],settings:{foreground:"var(--shiki-token-keyword)"}},{scope:["entity.name.namespace","entity.name.module","entity.name.scope-resolution"],settings:{foreground:"var(--shiki-token-type)"}},{scope:["entity.other.inherited-class"],settings:{foreground:"var(--shiki-token-class)"}},{scope:["support.type.property-name","meta.object-literal.key"],settings:{foreground:"var(--shiki-token-property)"}},{scope:["support.constant"],settings:{foreground:"var(--shiki-token-constant)"}},{scope:["support.variable"],settings:{foreground:"var(--shiki-token-variable)"}},{scope:["punctuation","meta.brace","meta.delimiter","keyword.operator","keyword.operator.assignment"],settings:{foreground:"var(--shiki-token-punctuation)"}},{scope:["punctuation.definition.template-expression.begin","punctuation.definition.template-expression.end","punctuation.section.embedded"],settings:{foreground:"var(--shiki-token-keyword)"}},{scope:["markup.heading"],settings:{foreground:"var(--shiki-token-keyword)",fontStyle:"bold"}},{scope:["markup.bold"],settings:{fontStyle:"bold"}},{scope:["markup.italic"],settings:{fontStyle:"italic"}},{scope:["markup.strikethrough"],settings:{fontStyle:"strikethrough"}},{scope:["markup.inline.raw"],settings:{foreground:"var(--shiki-token-string)"}},{scope:["markup.underline.link"],settings:{foreground:"var(--shiki-token-link)"}},{scope:["markup.inserted"],settings:{foreground:"var(--shiki-token-constant)"}},{scope:["markup.deleted"],settings:{foreground:"var(--shiki-token-string)"}},{scope:["markup.changed"],settings:{foreground:"var(--shiki-token-keyword)"}},{scope:["markup.quote"],settings:{foreground:"var(--shiki-token-comment)"}}]};var tc={ts:"typescript",cts:"typescript",mts:"typescript",js:"javascript",cjs:"javascript",mjs:"javascript",py:"python",rs:"rust",md:"markdown",bash:"shellscript",sh:"shellscript",shell:"shellscript",zsh:"shellscript",yml:"yaml","c++":"cpp","c#":"csharp",cs:"csharp","f#":"fsharp",fs:"fsharp",kt:"kotlin",kts:"kotlin",rb:"ruby",docker:"dockerfile",ex:"elixir",exs:"elixir",erl:"erlang",hs:"haskell",ml:"ocaml",clj:"clojure","common-lisp":"lisp",tf:"terraform",tfvars:"terraform",protobuf:"proto",regex:"regexp",gql:"graphql",properties:"ini",jl:"julia",objc:"objective-c",make:"makefile",tex:"latex",ps:"powershell",ps1:"powershell",pwsh:"powershell"};function lo(t){let e=t.toLowerCase().trim();return tc[e]??e}function nc(t,e){let n=lo(e);return t.getLoadedLanguages().includes(n)}function co(t,e){let n=lo(e);return nc(t,n)?n:"text"}var zn=2e4,rc=2e5,sc={javascript:2500,jsx:2500,tsx:2500,java:7500,cpp:7500,csharp:2500};function oc(t){let e=sc[t];return e===void 0?zn:Math.min(e,zn)}function ac(t){let e=0,n=0;for(let r=0;r<t.length;r++){let s=t.charCodeAt(r);(s===10||s===13)&&(r-n>e&&(e=r-n),n=r+1)}return t.length-n>e&&(e=t.length-n),e}function ic(t){let e=0;return t.map(n=>{let r={content:n.content,color:n.color,fontStyle:n.fontStyle,col:e};return e+=n.content.length,r})}function uo(t,e,n){if(e.length>rc||ac(e)>zn)return Un(e);let r=co(t,n);try{return t.codeToTokens(e,{lang:r,theme:"css-variables",tokenizeMaxLineLength:oc(r)}).tokens.map(ic)}catch{return Un(e)}}function lc(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")}function cc(t){return`<pre class="shiki"><code><span class="line"><span>${lc(t)}</span></span></code></pre>`}function Wn(t,e,n){let r=co(t,n);try{return t.codeToHtml(e,{lang:r,theme:"css-variables"})}catch{return cc(e)}}var Dt=fs({themes:[jn],langs:[],engine:Fn()});function Ft(t){self.postMessage(t)}self.onmessage=t=>{let e=t.data;try{switch(e.type){case"loadGrammar":{Dt.loadLanguageSync(e.grammar);break}case"tokenize":{let n=Wn(Dt,e.code,e.lang);Ft({type:"tokenized",id:e.id,html:n});break}case"tokenizeLines":{let n=e.lines.map(r=>Wn(Dt,r,e.lang));Ft({type:"tokenizedLines",id:e.id,htmlLines:n});break}case"tokenizeStructured":{let n=uo(Dt,e.code,e.lang);Ft({type:"tokenizedStructured",id:e.id,tokens:n});break}default:{let n=e}}}catch(n){"id"in e?Ft({type:"error",id:e.id,message:n instanceof Error?n.message:String(n)}):console.error("Shiki worker rejected a grammar:",n)}};

@anysphere/ui Failed to create Shiki worker blob URL:

Source: desktop/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js, bytes 8233162–8233219, SHA-256 ce70be60cfe5104a.

Jev judged not model-facing (confidence 0.03; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: [@anysphere/ui] Failed to create Shiki worker blob URL:

[@anysphere/ui] Failed to create Shiki worker blob URL:

@anysphere/ui Failed to create Shiki worker: ${t instanceof Error?t.message:St

Source: desktop/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js, bytes 8233379–8233469, SHA-256 b0c5e32182c44b6d.

Jev judged not model-facing (confidence 0.03; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: [@anysphere/ui] Failed to create Shiki worker: ${t instanceof Error?t.message:String(t)}

[@anysphere/ui] Failed to create Shiki worker: ${t instanceof Error?t.message:String(t)}

use strict · byte 8233627

Source: desktop/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js, bytes 8233627–8233639, SHA-256 4ee188e1744c1981.

Jev judged not model-facing (confidence 0.03; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: use strict

use strict

use strict · byte 8233878

Source: desktop/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js, bytes 8233878–8233890, SHA-256 4ee188e1744c1981.

Jev judged not model-facing (confidence 0.03; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: use strict

use strict

use strict · byte 8234151

Source: desktop/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js, bytes 8234151–8234163, SHA-256 4ee188e1744c1981.

Jev judged not model-facing (confidence 0.04; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: use strict

use strict

Shiki worker error:

Source: desktop/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js, bytes 8234782–8234803, SHA-256 bf6ccab4275fbad1.

Jev judged not model-facing (confidence 0.04; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: Shiki worker error:

Shiki worker error:

Worker error

Source: desktop/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js, bytes 8234832–8234846, SHA-256 58bd19ef4a3cef8e.

Jev judged not model-facing (confidence 0.03; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: Worker error

Worker error

Shiki worker unresponsive

Source: desktop/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js, bytes 8235147–8235174, SHA-256 66862600dbece37d.

Jev judged not model-facing (confidence 0.04; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: Shiki worker unresponsive

Shiki worker unresponsive

Worker disposed

Source: desktop/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js, bytes 8235476–8235493, SHA-256 f3b1b9cde9c851d0.

Jev judged not model-facing (confidence 0.04; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: Worker disposed

Worker disposed

Pool disposed

Source: desktop/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js, bytes 8237510–8237525, SHA-256 8245bc061c167376.

Jev judged not model-facing (confidence 0.03; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: Pool disposed

Pool disposed

Pool disposed · byte 8237734

Source: desktop/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js, bytes 8237734–8237749, SHA-256 8245bc061c167376.

Jev judged not model-facing (confidence 0.03; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: Pool disposed

Pool disposed

Pool disposed · byte 8237896

Source: desktop/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js, bytes 8237896–8237911, SHA-256 8245bc061c167376.

Jev judged not model-facing (confidence 0.03; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: Pool disposed

Pool disposed

Pool disposed · byte 8238073

Source: desktop/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js, bytes 8238073–8238088, SHA-256 8245bc061c167376.

Jev judged not model-facing (confidence 0.03; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: Pool disposed

Pool disposed

Pool disposed · byte 8238279

Source: desktop/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js, bytes 8238279–8238294, SHA-256 8245bc061c167376.

Jev judged not model-facing (confidence 0.05; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: Pool disposed

Pool disposed

use strict · byte 8238431

Source: desktop/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js, bytes 8238431–8238443, SHA-256 4ee188e1744c1981.

Jev judged not model-facing (confidence 0.06; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: use strict

use strict

use strict · byte 8239975

Source: desktop/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js, bytes 8239975–8239987, SHA-256 4ee188e1744c1981.

Jev judged not model-facing (confidence 0.03; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: use strict

use strict

use strict · byte 8240708

Source: desktop/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js, bytes 8240708–8240720, SHA-256 4ee188e1744c1981.

Jev judged not model-facing (confidence 0.03; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: use strict

use strict

use strict · byte 8241256

Source: desktop/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js, bytes 8241256–8241268, SHA-256 4ee188e1744c1981.

Jev judged not model-facing (confidence 0.02; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: use strict

use strict

use strict · byte 8242290

Source: desktop/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js, bytes 8242290–8242302, SHA-256 4ee188e1744c1981.

Jev judged not model-facing (confidence 0.02; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: use strict

use strict

use strict · byte 8243626

Source: desktop/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js, bytes 8243626–8243638, SHA-256 4ee188e1744c1981.

Jev judged not model-facing (confidence 0.02; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: use strict

use strict

calc(${ t} ${yt})

Source: desktop/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js, bytes 8251810–8251831, SHA-256 be32025309412870.

Jev judged not model-facing (confidence 0.04; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: calc(${_t} * ${yt})

calc(${_t} * ${yt})

var(--ui-default-code-line-inset, ${R2t "--cursor-spacing-2-5" }) + ${R2t "--cur

Source: desktop/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js, bytes 8252169–8252269, SHA-256 f9b0efec4b3b919a.

Jev judged not model-facing (confidence 0.02; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: var(--ui-default-code-line-inset, ${R2t["--cursor-spacing-2-5"]}) + ${R2t["--cursor-spacing-2-5"]}

var(--ui-default-code-line-inset, ${R2t["--cursor-spacing-2-5"]}) + ${R2t["--cursor-spacing-2-5"]}

+ 28px + ${R2t "--cursor-spacing-3" }

Source: desktop/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js, bytes 8252275–8252315, SHA-256 669e22a20fe84e73.

Jev judged not model-facing (confidence 0.02; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: + 28px + ${R2t["--cursor-spacing-3"]}

 + 28px + ${R2t["--cursor-spacing-3"]}

calc(${Ut}ch + ${ei}${Ni})

Source: desktop/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js, bytes 8252412–8252440, SHA-256 116a7b1ad9152600.

Jev judged not model-facing (confidence 0.03; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: calc(${Ut}ch + ${ei}${Ni})

calc(${Ut}ch + ${ei}${Ni})

calc(${rt.start} ${yt})

Source: desktop/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js, bytes 8253100–8253127, SHA-256 b28d9ba3d0851574.

Jev judged not model-facing (confidence 0.03; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: calc(${rt.start} * ${yt})

calc(${rt.start} * ${yt})

calc(${ t-rt.end} ${yt})

Source: desktop/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js, bytes 8253269–8253297, SHA-256 42381b4e7d9fcb98.

Jev judged not model-facing (confidence 0.03; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: calc(${_t-rt.end} * ${yt})

calc(${_t-rt.end} * ${yt})

use strict · byte 8254103

Source: desktop/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js, bytes 8254103–8254115, SHA-256 4ee188e1744c1981.

Jev judged not model-facing (confidence 0.09; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: use strict

use strict

ui-1wm8ruf ui-1lfj9qp ui-1ja60sm ui-13r5tfd ui-o9w7m5 ui-lgbajd

Source: desktop/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js, bytes 8258015–8258080, SHA-256 3b033cd814938dc9.

Jev judged not model-facing (confidence 0.02; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: ui-1wm8ruf ui-1lfj9qp ui-1ja60sm ui-13r5tfd ui-o9w7m5 ui-lgbajd

ui-1wm8ruf ui-1lfj9qp ui-1ja60sm ui-13r5tfd ui-o9w7m5 ui-lgbajd

ui-1wm8ruf ui-1lfj9qp ui-1ja60sm ui-13r5tfd ui-o9w7m5 ui-lgbajd ui-uve7l6 ui-1xp

Source: desktop/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js, bytes 8258095–8258202, SHA-256 82694475cf4dab7f.

Jev judged not model-facing (confidence 0.02; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: ui-1wm8ruf ui-1lfj9qp ui-1ja60sm ui-13r5tfd ui-o9w7m5 ui-lgbajd ui-uve7l6 ui-1xpa7k ui-1rgtt3y ui-1uhho1l

ui-1wm8ruf ui-1lfj9qp ui-1ja60sm ui-13r5tfd ui-o9w7m5 ui-lgbajd ui-uve7l6 ui-1xpa7k ui-1rgtt3y ui-1uhho1l

ui-1ghz6dp ui-1heor9g ui-jb2p0i ui-1qlqyl8 ui-15bjb6t ui-1sdyfia ui-16b7oty ui-w

Source: desktop/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js, bytes 8258321–8258408, SHA-256 079f8c1b25162c11.

Jev judged not model-facing (confidence 0.02; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: ui-1ghz6dp ui-1heor9g ui-jb2p0i ui-1qlqyl8 ui-15bjb6t ui-1sdyfia ui-16b7oty ui-wp9v23

ui-1ghz6dp ui-1heor9g ui-jb2p0i ui-1qlqyl8 ui-15bjb6t ui-1sdyfia ui-16b7oty ui-wp9v23

ui-1ghz6dp ui-1heor9g ui-jb2p0i ui-1qlqyl8 ui-15bjb6t ui-1sdyfia ui-1q57ora ui-3

Source: desktop/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js, bytes 8258423–8258561, SHA-256 200439076da01bfe.

Jev judged not model-facing (confidence 0.02; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: ui-1ghz6dp ui-1heor9g ui-jb2p0i ui-1qlqyl8 ui-15bjb6t ui-1sdyfia ui-1q57ora ui-33uob6 ui-saxbkt ui-79ra4s ui-1043rbw ui-i07v4r ui-w2csxc

ui-1ghz6dp ui-1heor9g ui-jb2p0i ui-1qlqyl8 ui-15bjb6t ui-1sdyfia ui-1q57ora ui-33uob6 ui-saxbkt ui-79ra4s ui-1043rbw ui-i07v4r ui-w2csxc

ui-1ghz6dp ui-1heor9g ui-jb2p0i ui-1qlqyl8 ui-15bjb6t ui-16b7oty ui-wp9v23 ui-12

Source: desktop/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js, bytes 8258576–8258673, SHA-256 9fb85f31efef181f.

Jev judged not model-facing (confidence 0.02; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: ui-1ghz6dp ui-1heor9g ui-jb2p0i ui-1qlqyl8 ui-15bjb6t ui-16b7oty ui-wp9v23 ui-126k92a ui-j0a0fe

ui-1ghz6dp ui-1heor9g ui-jb2p0i ui-1qlqyl8 ui-15bjb6t ui-16b7oty ui-wp9v23 ui-126k92a ui-j0a0fe

ui-1ghz6dp ui-1heor9g ui-jb2p0i ui-1qlqyl8 ui-15bjb6t ui-1q57ora ui-33uob6 ui-sa

Source: desktop/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js, bytes 8258688–8258836, SHA-256 c50ca9b068435304.

Jev judged not model-facing (confidence 0.02; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: ui-1ghz6dp ui-1heor9g ui-jb2p0i ui-1qlqyl8 ui-15bjb6t ui-1q57ora ui-33uob6 ui-saxbkt ui-79ra4s ui-1043rbw ui-i07v4r ui-w2csxc ui-126k92a ui-j0a0fe

ui-1ghz6dp ui-1heor9g ui-jb2p0i ui-1qlqyl8 ui-15bjb6t ui-1q57ora ui-33uob6 ui-saxbkt ui-79ra4s ui-1043rbw ui-i07v4r ui-w2csxc ui-126k92a ui-j0a0fe

ui-default-code${i? ${i} :""}${v.className? ${v.className} :""}

Source: desktop/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js, bytes 8258881–8258948, SHA-256 cd4db7957a8bf599.

Jev judged not model-facing (confidence 0.02; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: ui-default-code${i?' ${i}':""}${v.className?' ${v.className}':""}

ui-default-code${i?` ${i}`:""}${v.className?` ${v.className}`:""}

${v.className}

Source: desktop/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js, bytes 8258926–8258943, SHA-256 1d137622ff468fe6.

Jev judged not model-facing (confidence 0.03; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: ${v.className}

 ${v.className}

ui-78zum5 ui-10fesj9

Source: desktop/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js, bytes 8259234–8259256, SHA-256 b41f8137016d7a40.

Jev judged not model-facing (confidence 0.03; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: ui-78zum5 ui-10fesj9

ui-78zum5 ui-10fesj9

ui-1264ykn ui-1jkygx ui-4b2ntj ui-y5h43f ui-1hr2gdg ui-87ps6o ui-2lah0s

Source: desktop/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js, bytes 8259350–8259423, SHA-256 74c785c5ee4334e6.

Jev judged not model-facing (confidence 0.02; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: ui-1264ykn ui-1jkygx ui-4b2ntj ui-y5h43f ui-1hr2gdg ui-87ps6o ui-2lah0s

ui-1264ykn ui-1jkygx ui-4b2ntj ui-y5h43f ui-1hr2gdg ui-87ps6o ui-2lah0s

ui-1iyjqo2 ui-16b7oty ui-o7x2bt ui-1sdyfia

Source: desktop/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js, bytes 8259520–8259564, SHA-256 c57b2c6ac8cf2ad8.

Jev judged not model-facing (confidence 0.02; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: ui-1iyjqo2 ui-16b7oty ui-o7x2bt ui-1sdyfia

ui-1iyjqo2 ui-16b7oty ui-o7x2bt ui-1sdyfia

ui-1iyjqo2 ui-16b7oty ui-o7x2bt ui-euugli ui-126k92a ui-j0a0fe

Source: desktop/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js, bytes 8259579–8259643, SHA-256 2b71c0d5a8e3166d.

Jev judged not model-facing (confidence 0.02; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: ui-1iyjqo2 ui-16b7oty ui-o7x2bt ui-euugli ui-126k92a ui-j0a0fe

ui-1iyjqo2 ui-16b7oty ui-o7x2bt ui-euugli ui-126k92a ui-j0a0fe

ui-default-code line ${N.className}

Source: desktop/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js, bytes 8259824–8259862, SHA-256 67eefa4625433de0.

Jev judged not model-facing (confidence 0.03; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: ui-default-code__line ${N.className}

ui-default-code__line ${N.className}

ui-default-code line-content ${$.className}

Source: desktop/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js, bytes 8259976–8260022, SHA-256 bb72a1e18f775ac1.

Jev judged not model-facing (confidence 0.03; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: ui-default-code__line-content ${$.className}

ui-default-code__line-content ${$.className}

calc(${Q} ${MJr "--cursor-line-height-base" } + 2 ${R2t "--cursor-spacing-1-

Source: desktop/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js, bytes 8262863–8262950, SHA-256 b3d550780ed01198.

Jev judged not model-facing (confidence 0.03; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: calc(${Q} * ${MJr["--cursor-line-height-base"]} + 2 * ${R2t["--cursor-spacing-1-5"]})

calc(${Q} * ${MJr["--cursor-line-height-base"]} + 2 * ${R2t["--cursor-spacing-1-5"]})

ui-3nfvp2 ui-6s0dn4 ui-l56j7k ui-1pwdyn5 ui-1vatr1o ui-2lah0s

Source: desktop/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js, bytes 8264464–8264527, SHA-256 2608baf08f6ec231.

Jev judged not model-facing (confidence 0.03; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: ui-3nfvp2 ui-6s0dn4 ui-l56j7k ui-1pwdyn5 ui-1vatr1o ui-2lah0s

ui-3nfvp2 ui-6s0dn4 ui-l56j7k ui-1pwdyn5 ui-1vatr1o ui-2lah0s

Copy code

Source: desktop/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js, bytes 8265371–8265382, SHA-256 d11cfdd98bfaf33c.

Jev judged not model-facing (confidence 0.04; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: Copy code

Copy code