@codingame/monaco-vscode-emmet-default-extension 26.2.1 → 27.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,33 @@
1
- (()=>{var e={528:(e,t,n)=>{"use strict";var r,o=n(9629),i=n(9838),s=n(9110),a=n(1155),u=n(4943),c=n(5731),l=n(3468),f=n(2140),p=n(8479),d=n(8449),m=n(8129),h=n(2387),g=n(5865),b=n(1319),y=n(6882),v=Function,x=function(e){try{return v('"use strict"; return ('+e+").constructor;")()}catch(e){}},w=n(9336),k=n(4940),A=function(){throw new l},S=w?function(){try{return A}catch(e){try{return w(arguments,"callee").get}catch(e){return A}}}():A,O=n(3558)(),C=n(6369),j=n(7345),T=n(7859),_=n(6095),E=n(4531),P={},$="undefined"!=typeof Uint8Array&&C?C(Uint8Array):r,R={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":O&&C?C([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":P,"%AsyncGenerator%":P,"%AsyncGeneratorFunction%":P,"%AsyncIteratorPrototype%":P,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":s,"%Float16Array%":"undefined"==typeof Float16Array?r:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":P,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":O&&C?C(C([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&O&&C?C((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":o,"%Object.getOwnPropertyDescriptor%":w,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":a,"%ReferenceError%":u,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&O&&C?C((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":O&&C?C(""[Symbol.iterator]()):r,"%Symbol%":O?Symbol:r,"%SyntaxError%":c,"%ThrowTypeError%":S,"%TypedArray%":$,"%TypeError%":l,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":f,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet,"%Function.prototype.call%":E,"%Function.prototype.apply%":_,"%Object.defineProperty%":k,"%Object.getPrototypeOf%":j,"%Math.abs%":p,"%Math.floor%":d,"%Math.max%":m,"%Math.min%":h,"%Math.pow%":g,"%Math.round%":b,"%Math.sign%":y,"%Reflect.getPrototypeOf%":T};if(C)try{null.error}catch(e){var I=C(C(e));R["%Error.prototype%"]=I}var M=function e(t){var n;if("%AsyncFunction%"===t)n=x("async function () {}");else if("%GeneratorFunction%"===t)n=x("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=x("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&C&&(n=C(o.prototype))}return R[t]=n,n},N={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},z=n(9138),F=n(8554),D=z.call(E,Array.prototype.concat),B=z.call(_,Array.prototype.splice),L=z.call(E,String.prototype.replace),U=z.call(E,String.prototype.slice),q=z.call(E,RegExp.prototype.exec),W=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,V=/\\(\\)?/g,G=function(e,t){var n,r=e;if(F(N,r)&&(r="%"+(n=N[r])[0]+"%"),F(R,r)){var o=R[r];if(o===P&&(o=M(r)),void 0===o&&!t)throw new l("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new c("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new l('"allowMissing" argument must be a boolean');if(null===q(/^%?[^%]*%?$/,e))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=U(e,0,1),n=U(e,-1);if("%"===t&&"%"!==n)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return L(e,W,function(e,t,n,o){r[r.length]=n?L(o,V,"$1"):t||e}),r}(e),r=n.length>0?n[0]:"",o=G("%"+r+"%",t),i=o.name,s=o.value,a=!1,u=o.alias;u&&(r=u[0],B(n,D([0,1],u)));for(var f=1,p=!0;f<n.length;f+=1){var d=n[f],m=U(d,0,1),h=U(d,-1);if(('"'===m||"'"===m||"`"===m||'"'===h||"'"===h||"`"===h)&&m!==h)throw new c("property names with quotes must have matching quotes");if("constructor"!==d&&p||(a=!0),F(R,i="%"+(r+="."+d)+"%"))s=R[i];else if(null!=s){if(!(d in s)){if(!t)throw new l("base intrinsic for "+e+" exists, but the property is not available.");return}if(w&&f+1>=n.length){var g=w(s,d);s=(p=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:s[d]}else p=F(s,d),s=s[d];p&&!a&&(R[i]=s)}}return s}},606:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentStreamReader=void 0;class n{document;start;_eof;_sof;pos;constructor(e,t,n){this.document=e,this.start=this.pos=t||0,this._sof=n?n[0]:0,this._eof=n?n[1]:e.getText().length}sof(){return this.pos<=this._sof}eof(){return this.pos>=this._eof}limit(e,t){return new n(this.document,e,[e,t])}peek(){return this.eof()?NaN:this.document.getText().charCodeAt(this.pos)}next(){if(this.eof())return NaN;const e=this.document.getText().charCodeAt(this.pos);return this.pos++,this.eof()&&(this.pos=this._eof),e}backUp(e){return this.pos-=e,this.pos<0&&(this.pos=0),this.peek()}current(){return this.substring(this.start,this.pos)}substring(e,t){return this.document.getText().substring(e,t)}error(e){return new Error(`${e} at offset ${this.pos}`)}eat(e){const t=this.peek(),n="function"==typeof e?e(t):t===e;return n&&this.next(),n}eatWhile(e){const t=this.pos;for(;!this.eof()&&this.eat(e););return this.pos!==t}}t.DocumentStreamReader=n},686:(e,t,n)=>{"use strict";var r=n(4940),o=n(5731),i=n(3468),s=n(9336);e.exports=function(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new i("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new i("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,u=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,l=arguments.length>6&&arguments[6],f=!!s&&s(e,t);if(r)r(e,t,{configurable:null===c&&f?f.configurable:!c,enumerable:null===a&&f?f.enumerable:!a,value:n,writable:null===u&&f?f.writable:!u});else{if(!l&&(a||u||c))throw new o("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},705:(e,t,n)=>{"use strict";var r=n(9617),o=Object.prototype.toString,i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){if(!r(t))throw new TypeError("iterator must be a function");var s;arguments.length>=3&&(s=n),"[object Array]"===o.call(e)?function(e,t,n){for(var r=0,o=e.length;r<o;r++)i.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))}(e,t,s):"string"==typeof e?function(e,t,n){for(var r=0,o=e.length;r<o;r++)null==n?t(e.charAt(r),r,e):t.call(n,e.charAt(r),r,e)}(e,t,s):function(e,t,n){for(var r in e)i.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))}(e,t,s)}},731:function(e,t,n){"use strict";var r,o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),s=0;s<n.length;s++)"default"!==n[s]&&o(t,e,n[s]);return i(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.matchTag=function(){if(!(0,u.validate)(!1)||!a.window.activeTextEditor)return;const e=a.window.activeTextEditor,t=e.document,n=(0,c.getRootNode)(t,!0);if(!n)return;const r=[];e.selections.forEach(e=>{const o=function(e,t,n){const r=e.offsetAt(n),o=(0,u.getHtmlFlatNode)(e.getText(),t,r,!0);if(!o)return;if(!o.open||!o.close||r>o.open.end&&r<o.close.start)return;const i=r<=o.open.end?o.close.start+2:o.start+1;return(0,u.offsetRangeToSelection)(e,i,i)}(t,n,e.start);o&&r.push(o)}),r.length&&(e.selections=r,e.revealRange(e.selections[r.length-1]))};const a=s(n(1398)),u=n(4900),c=n(8408)},789:function(e,t,n){"use strict";var r,o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),s=0;s<n.length;s++)"default"!==n[s]&&o(t,e,n[s]);return i(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.wrapWithAbbreviation=async function(e){if(!(0,u.validate)(!1))return!1;const t=a.window.activeTextEditor,n=t.document;(e=e||{}).language||(e.language=n.languageId);const r=g(e)||"html",o=(0,c.getRootNode)(n,!0),i=(0,u.getEmmetHelper)(),s=Array.from(t.selections).sort((e,t)=>e.start.compareTo(t.start)).map(e=>{let t=e;{let{start:e,end:r}=t;const i=n.offsetAt(e),s=n.getText(),c=(0,u.getHtmlFlatNode)(s,o,i,!0);if(c&&(0,u.isOffsetInsideOpenOrCloseTag)(c,i)){e=n.positionAt(c.start);const t=n.positionAt(c.end);r=t.isAfter(r)?t:r}const l=n.offsetAt(r),f=(0,u.getHtmlFlatNode)(s,o,l,!0);if(f&&(0,u.isOffsetInsideOpenOrCloseTag)(f,l)){const t=n.positionAt(f.start);e=t.isBefore(e)?t:e;const o=n.positionAt(f.end);r=o.isAfter(r)?o:r}t=new a.Range(e,r)}if(!t.isSingleLine&&0===t.end.character){const e=t.end.line-1;t=new a.Range(t.start,n.lineAt(e).range.end)}t.isEmpty&&(t=n.lineAt(t.start).range);const r=n.lineAt(t.start);return!r.isEmptyOrWhitespace&&r.firstNonWhitespaceCharacterIndex>t.start.character&&(t=t.with(new a.Position(t.start.line,r.firstNonWhitespaceCharacterIndex))),t}).reduce((e,t)=>(e.length>0&&t.intersection(e[e.length-1])?e.push(t.union(e.pop())):e.push(t),e),[]),l=t.selections;t.selections=s.map(e=>new a.Selection(e.start,e.end));const f=s.map(e=>{let t;const r=n.getText(e),o=n.lineAt(e.start).text.match(/^(\s*)/),i=o?o[1]:"";return t=e.isSingleLine?[r]:r.split("\n"+i).map(e=>e.trimEnd()),t=t.map(e=>e.replace(/(\$\d)/g,"\\$1")),{previewRange:e,originalRange:e,originalContent:r,textToWrapInPreview:t,baseIndent:i}}),{tabSize:p,insertSpaces:d}=t.options,b=d?" ".repeat(p):"\t";function y(){return t.edit(e=>{for(const t of f)e.replace(t.previewRange,t.originalContent),t.previewRange=t.originalRange},{undoStopBefore:!1,undoStopAfter:!1})}let v=!1;async function x(e,n){const o=e&&e.trim()&&i.isAbbreviationValid(r,e)?i.extractAbbreviationFromText(e,r):void 0;if(!o)return v&&(v=!1,await y()),!1;const{abbreviation:s,filter:u}=o;if(n){const e=f.map(e=>({syntax:r,abbreviation:s,rangeToReplace:e.originalRange,textToWrap:e.textToWrapInPreview,filter:u,indent:b,baseIndent:e.baseIndent}));return v=!0,function(e){let n=new a.Range(0,0,0,0),r=new a.Range(0,0,0,0),o=0;return t.edit(t=>{for(let i=0;i<f.length;i++){const s=h(e[i])||"";if(!s)break;const u=f[i].previewRange,c=s.replace(/\$\{[\d]*\}/g,"|").replace(/\$\{[\d]*:([^}]*)\}/g,(e,t)=>t).replace(/\\\$/g,"$");t.replace(u,c);const l=c.split("\n"),p=u.end.line-u.start.line+1,d=l.length-p,m=u.start.line+o;let g=u.start.character;const b=u.end.line+o+d;let y=l[l.length-1].length;i>0&&b===r.end.line?(g=r.end.character+(u.start.character-n.end.character),y+=g):i>0&&m===r.end.line?g=r.end.character+(u.start.character-n.end.character):1===l.length&&(y+=u.start.character),n=f[i].previewRange,r=new a.Range(m,g,b,y),f[i].previewRange=r,o+=d}},{undoStopBefore:!1,undoStopAfter:!1})}(e)}const c=f.map(e=>({syntax:r,abbreviation:s,rangeToReplace:e.originalRange,textToWrap:e.textToWrapInPreview,filter:u,indent:b}));return v&&(v=!1,await y()),m(t,c,!1)}let w="";const k=a.l10n.t("Enter Abbreviation"),A=e&&e.abbreviation?e.abbreviation:await a.window.showInputBox({prompt:k,validateInput:async function(e){return e!==w&&(w=e,await x(e,!0)),""}}),S=await x(A,!1);return S||(t.selections=l),S},t.expandEmmetAbbreviation=function(e){if(!(0,u.validate)()||!a.window.activeTextEditor)return p();if(1===a.window.activeTextEditor.selections.length&&a.window.activeTextEditor.selection.isEmpty){const e=a.window.activeTextEditor.selection.anchor;if(0===e.character)return p();const t=e.translate(0,-1),n=a.window.activeTextEditor.document.getText(new a.Range(t,e));if(" "===n||"\t"===n)return p()}if((e=e||{}).language){if((a.workspace.getConfiguration("emmet").excludeLanguages?a.workspace.getConfiguration("emmet").excludeLanguages:[]).includes(a.window.activeTextEditor.document.languageId))return p()}else e.language=a.window.activeTextEditor.document.languageId;const t=g(e);if(!t)return p();const n=a.window.activeTextEditor;if(!0===a.workspace.getConfiguration("emmet").triggerExpansionOnTab&&n.selections.find(e=>!e.isEmpty))return p();const r=[];let o,i=!0;const s=(0,u.getEmmetHelper)(),l=n.selections.slice(0);let f;function h(){if(f)return f;const e=!0===a.workspace.getConfiguration("emmet").optimizeStylesheetParsing;return f=1===n.selections.length&&(0,u.isStyleSheet)(n.document.languageId)&&e&&n.document.lineCount>1e3?(0,u.parsePartialStylesheet)(n.document,n.selection.isReversed?n.selection.anchor:n.selection.active):(0,c.getRootNode)(n.document,!0),f}return l.sort((e,t)=>{const n=e.isReversed?e.anchor:e.active,r=t.isReversed?t.anchor:t.active;return-1*n.compareTo(r)}),l.forEach(e=>{const c=e.isReversed?e.anchor:e.active,[l,f,p]=((e,t,r,o)=>{r=e.validatePosition(r);let i=t,c=e.getText(i);if(!i.isEmpty){const e=s.extractAbbreviationFromText(c,o);return e?[i,e.abbreviation,e.filter]:[null,"",""]}const l=n.document.lineAt(r.line).text.substr(0,r.character);if("html"===o){const e=l.match(/<(\w+)$/);if(e)return c=e[1],i=new a.Range(r.translate(0,-(c.length+1)),r),[i,c,""]}const f=s.extractAbbreviation((0,u.toLSTextDocument)(n.document),r,{lookAhead:!1});if(!f)return[null,"",""];const{abbreviationRange:p,abbreviation:d,filter:m}=f;return[new a.Range(p.start.line,p.start.character,p.end.line,p.end.character),d,m]})(n.document,e,c,t);if(!l)return;if(!s.isAbbreviationValid(t,f))return;if((0,u.isStyleSheet)(t)&&f.endsWith(":"))return;const m=n.document.offsetAt(c);let g=(0,u.getFlatNode)(h(),m,!0),b=!0,y=t;if("html"===n.document.languageId)if((0,u.isStyleAttribute)(g,m))y="css",b=!1;else{const e=(0,u.getEmbeddedCssNodeIfAny)(n.document,g,c);e&&(g=(0,u.getFlatNode)(e,m,!0),y="css")}b&&!d(n.document,h(),g,y,m,l)||(o?i&&o!==f&&(i=!1):o=f,r.push({syntax:y,abbreviation:f,rangeToReplace:l,filter:p}))}),m(n,r,i).then(e=>e?Promise.resolve(void 0):p())},t.isValidLocationForEmmetAbbreviation=d,t.getSyntaxFromArgs=g;const a=s(n(1398)),u=n(4900),c=n(8408),l=/[\u00a0]*[\d#\-\*\u2022]+\.?/,f=/^#[\da-fA-F]{0,6}$/;function p(){return!0===a.workspace.getConfiguration("emmet").triggerExpansionOnTab?a.commands.executeCommand("tab"):Promise.resolve(!0)}function d(e,t,n,r,o,i){if((0,u.isStyleSheet)(r)){if(t&&(t.comments||[]).some(e=>o>=e.start&&o<=e.end))return!1;if(!n)return!0;const s=e.getText(new a.Range(i.start.line,i.start.character,i.end.line,i.end.character));if(s.startsWith("@"))return!0;if("sass"!==r&&"stylus"!==r&&"property"===n.type){if(n.parent&&"rule"!==n.parent.type&&"at-rule"!==n.parent.type)return!1;const e=n;if(e.terminatorToken&&e.separator&&o>=e.separatorToken.end&&o<=e.terminatorToken.start&&!s.includes(":"))return f.test(s)||"!"===s;if(!e.terminatorToken&&e.separator&&o>=e.separatorToken.end&&!s.includes(":"))return f.test(s)||"!"===s;if(f.test(s)||"!"===s)return!1}if("rule"!==n.type&&"at-rule"!==n.type)return!0;const u=n;if(o>u.contentStartToken.end)return!0;if(u.parent&&("rule"===u.parent.type||"at-rule"===u.parent.type)&&u.selectorToken){const t=e.positionAt(o),n=e.positionAt(u.selectorToken.start),r=e.positionAt(u.selectorToken.end);if(t.line!==r.line&&n.character===i.start.character&&n.line===i.start.line)return!0}return!1}const s="<",c=n;let l=0;if(c){if("script"===c.name){const e=(c.attributes||[]).filter(e=>"type"===e.name.toString())[0],t=e?e.value.toString():"";return!!u.allowedMimeTypesInScriptTag.includes(t)||!(t&&"application/javascript"!==t&&"text/javascript"!==t||!g({language:"javascript"}))}if(!c.open||!c.close||!(c.open.end<=o&&o<=c.close.start))return!1;l=c.open.end;let e=c.firstChild;for(;e&&!(e.end>o);)l=e.end,e=e.nextSibling}const p=e.positionAt(l);let d=e.getText(new a.Range(p.line,p.character,i.start.line,i.start.character));if(d.length>500&&(d=d.substr(d.length-500)),!d.trim())return!0;let m=!0,h=!1,b=d.length-1;if(d[b]===s)return!1;for(;b>=0;){const e=d[b];if(b--,h||!/\s/.test(e))if("?"!==e||d[b]!==s){if(/\s/.test(e)&&d[b]===s)b--;else if(e===s||">"===e)if(b>=0&&"\\"===d[b])b--;else{if(">"===e){if(b>=0&&"="===d[b])continue;break}if(e===s){m=!h;break}}}else b--;else h=!0}return m}async function m(e,t,n){if(!t||0===t.length)return!1;let r=0;if(!n){t.sort((e,t)=>t.rangeToReplace.start.compareTo(e.rangeToReplace.start));for(const n of t){const t=h(n);t&&(await e.insertSnippet(new a.SnippetString(t),n.rangeToReplace,{undoStopBefore:!1,undoStopAfter:!1}),r++)}return r>0}const o=h(t[0]),i=t.map(e=>e.rangeToReplace);return!!o&&e.insertSnippet(new a.SnippetString(o),i)}function h(e){const t=(0,u.getEmmetHelper)(),n=t.getExpandOptions(e.syntax,(0,u.getEmmetConfiguration)(e.syntax),e.filter);let r;e.textToWrap&&(e.textToWrap=e.textToWrap.map(e=>e.replace(/\$\{/g,"\\${")),e.filter&&e.filter.includes("t")&&(e.textToWrap=e.textToWrap.map(e=>e.replace(l,"").trim())),n.text=e.textToWrap,n.options&&(e.rangeToReplace.isSingleLine||(n.options["output.inlineBreak"]=1),e.indent&&(n.options["output.indent"]=e.indent),e.baseIndent&&(n.options["output.baseIndent"]=e.baseIndent)));try{r=t.expandAbbreviation(e.abbreviation,n)}catch(e){a.window.showErrorMessage("Failed to expand abbreviation")}return r}function g(e){const t=(0,u.getMappingForIncludedLanguages)(),n=e.language,r=e.parentMode,o=a.workspace.getConfiguration("emmet").excludeLanguages?a.workspace.getConfiguration("emmet").excludeLanguages:[];if(o.includes(n))return;let i=(0,u.getEmmetMode)(t[n]??n,t,o);return i||(i=(0,u.getEmmetMode)(t[r]??r,t,o)),i}},1155:e=>{"use strict";e.exports=RangeError},1253:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>P,defaultOptions:()=>C,match:()=>j});var r=n(8769),o=n(6613);class i{constructor(e,t,n,r){this.stream=e,this.type=t,this.open=n,this.close=r,this.children=[],this.parent=null}get name(){return"tag"===this.type&&this.open?this.open&&this.open.name&&this.open.name.value:"#"+this.type}get attributes(){return this.open&&this.open.attributes}get start(){return this.open&&this.open.start}get end(){return this.close?this.close.end:this.open&&this.open.end}get firstChild(){return this.children[0]}get nextSibling(){const e=this.getIndex();return-1!==e?this.parent.children[e+1]:null}get previousSibling(){const e=this.getIndex();return-1!==e?this.parent.children[e-1]:null}getIndex(){return this.parent?this.parent.children.indexOf(this):-1}addChild(e){return this.removeChild(e),this.children.push(e),e.parent=this,this}removeChild(e){const t=this.children.indexOf(e);return-1!==t&&(this.children.splice(t,1),e.parent=null),this}}var s=function(e,t,n){return"function"==typeof t?function(e,t){const n=e.pos;if(e.eatWhile(t))return new a(e,n,e.pos);e.pos=n}(e,t):new a(e,t,n)};class a{constructor(e,t,n){this.stream=e,this.start=null!=t?t:e.start,this.end=null!=n?n:e.pos,this._value=null}get value(){if(null===this._value){const e=this.stream.start,t=this.stream.pos;this.stream.start=this.start,this.stream.pos=this.end,this._value=this.stream.current(),this.stream.start=e,this.stream.pos=t}return this._value}toString(){return this.value}valueOf(){return`${this.value} [${this.start}; ${this.end}]`}}const u={throws:!0};var c=function(e){const t=e.pos;if((0,o.Ji)(e,60,62,u)||(0,o.Ji)(e,91,93,u)||(0,o.Ji)(e,40,41,u)||(0,o.Ji)(e,123,125,u))return s(e,t)};function l(e){return c(e)||s(e,p)}function f(e){const t=e.pos;if((0,o.vP)(e)){const n=e.pos;let r,o;e.pos=t,e.next(),r=e.start=e.pos,e.pos=n,e.backUp(1),o=e.pos;const i=s(e,r,o);return e.pos=n,i}return c(e)||function(e){return s(e,m)}(e)}function p(e){return 61!==e&&!d(e)&&!(0,o.xC)(e)}function d(e){return 62===e||47===e}function m(e){return!(isNaN(e)||(0,o.vG)(e)||(0,o.xC)(e)||d(e))}var h=function(e){const t=e.pos;if(e.eat(60)){const n={type:e.eat(47)?"close":"open"};if((n.name=function(e){return s(e,g)}(e))&&("close"!==n.type&&(n.attributes=function(e){const t=[];let n;for(;!e.eof();)if(e.eatWhile(o.xC),n={start:e.pos},n.name=l(e))e.eat(61)?n.value=f(e):n.boolean=!0,n.end=e.pos,t.push(n);else{if(d(e.peek()))break;e.next()}return t}(e),e.eatWhile(o.xC),n.selfClosing=e.eat(47)),e.eat(62)))return Object.assign(s(e,t),n)}return e.pos=t,null};function g(e){return(0,o.gA)(e)||58===e||46===e||45===e||95===e}function b(e,t){const n=e.pos;for(let r=0;r<t.length;r++)if(!e.eat(t[r]))return e.pos=n,!1;return e.start=n,!0}function y(e,t,n,r){const o=e.pos;if(b(e,t)){for(;!e.eof();){if(b(e,n))return!0;e.next()}return!!r||(e.pos=o,!1)}return e.pos=o,null}function v(e){return e.split("").map(e=>e.charCodeAt(0))}const x=v("\x3c!--"),w=v("--\x3e");var k=function(e){const t=e.pos;if(y(e,x,w,!0)){const n=s(e,t);return n.type="comment",n}return null};const A=v("<![CDATA["),S=v("]]>");var O=function(e){const t=e.pos;if(y(e,A,S,!0)){const n=s(e,t);return n.type="cdata",n}return null};const C={xml:!1,special:["script","style"],empty:["img","meta","link","br","base","hr","area","wbr","col","embed","input","param","source","track"]};function j(e){if(60===e.peek())return k(e)||O(e)||h(e)}function T(e,t){const n=e.pos;for(;!e.eof();){if(b(e,t))return e.pos=e.start,h(e);e.next()}return e.pos=n,null}function _(e){return e.name?e.name.value.toLowerCase():`#${e.type}`}function E(e){return e[e.length-1]}const P=function(e,t){t=Object.assign({},C,t);const n="string"==typeof e?new r.A(e):e,o=new i(n,"root"),s=new Set(t.empty),a=t.special.reduce((e,t)=>e.set(t,v(`</${t}>`)),new Map),u=(e,n)=>e.selfClosing||!t.xml&&s.has(n);let c,l,f,p=[o];for(;!n.eof();)if(c=j(n))if(f=_(c),"open"===c.type)l=new i(n,"tag",c),E(p).addChild(l),a.has(f)?l.close=T(n,a.get(f)):u(c,f)||p.push(l);else if("close"===c.type){for(let e=p.length-1;e>0;e--)if(p[e].name.toLowerCase()===f){p[e].close=c,p=p.slice(0,e);break}}else E(p).addChild(new i(n,c.type,c));else n.next();return o}},1292:e=>{"use strict";e.exports=Object.getOwnPropertyDescriptor},1319:e=>{"use strict";e.exports=Math.round},1398:e=>{"use strict";e.exports=require("vscode")},1531:(e,t,n)=>{"use strict";var r=n(5387),o=n(2625),i=n(2730),s=n(5943);function a(e){return e.call.bind(e)}var u="undefined"!=typeof BigInt,c="undefined"!=typeof Symbol,l=a(Object.prototype.toString),f=a(Number.prototype.valueOf),p=a(String.prototype.valueOf),d=a(Boolean.prototype.valueOf);if(u)var m=a(BigInt.prototype.valueOf);if(c)var h=a(Symbol.prototype.valueOf);function g(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function b(e){return"[object Map]"===l(e)}function y(e){return"[object Set]"===l(e)}function v(e){return"[object WeakMap]"===l(e)}function x(e){return"[object WeakSet]"===l(e)}function w(e){return"[object ArrayBuffer]"===l(e)}function k(e){return"undefined"!=typeof ArrayBuffer&&(w.working?w(e):e instanceof ArrayBuffer)}function A(e){return"[object DataView]"===l(e)}function S(e){return"undefined"!=typeof DataView&&(A.working?A(e):e instanceof DataView)}t.isArgumentsObject=r,t.isGeneratorFunction=o,t.isTypedArray=s,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):s(e)||S(e)},t.isUint8Array=function(e){return"Uint8Array"===i(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===i(e)},t.isUint16Array=function(e){return"Uint16Array"===i(e)},t.isUint32Array=function(e){return"Uint32Array"===i(e)},t.isInt8Array=function(e){return"Int8Array"===i(e)},t.isInt16Array=function(e){return"Int16Array"===i(e)},t.isInt32Array=function(e){return"Int32Array"===i(e)},t.isFloat32Array=function(e){return"Float32Array"===i(e)},t.isFloat64Array=function(e){return"Float64Array"===i(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===i(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===i(e)},b.working="undefined"!=typeof Map&&b(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(b.working?b(e):e instanceof Map)},y.working="undefined"!=typeof Set&&y(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(y.working?y(e):e instanceof Set)},v.working="undefined"!=typeof WeakMap&&v(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(v.working?v(e):e instanceof WeakMap)},x.working="undefined"!=typeof WeakSet&&x(new WeakSet),t.isWeakSet=function(e){return x(e)},w.working="undefined"!=typeof ArrayBuffer&&w(new ArrayBuffer),t.isArrayBuffer=k,A.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&A(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=S;var O="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function C(e){return"[object SharedArrayBuffer]"===l(e)}function j(e){return void 0!==O&&(void 0===C.working&&(C.working=C(new O)),C.working?C(e):e instanceof O)}function T(e){return g(e,f)}function _(e){return g(e,p)}function E(e){return g(e,d)}function P(e){return u&&g(e,m)}function $(e){return c&&g(e,h)}t.isSharedArrayBuffer=j,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===l(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===l(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===l(e)},t.isGeneratorObject=function(e){return"[object Generator]"===l(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===l(e)},t.isNumberObject=T,t.isStringObject=_,t.isBooleanObject=E,t.isBigIntObject=P,t.isSymbolObject=$,t.isBoxedPrimitive=function(e){return T(e)||_(e)||E(e)||P(e)||$(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(k(e)||j(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})},1913:(e,t,n)=>{"use strict";var r=n(2908);e.exports=function(){return r()&&!!Symbol.toStringTag}},2140:e=>{"use strict";e.exports=URIError},2387:e=>{"use strict";e.exports=Math.min},2422:e=>{"use strict";e.exports=Number.isNaN||function(e){return e!=e}},2625:e=>{"use strict";var t,n=Object.prototype.toString,r=Function.prototype.toString,o=/^\s*(?:function)?\*/,i="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,s=Object.getPrototypeOf;e.exports=function(e){if("function"!=typeof e)return!1;if(o.test(r.call(e)))return!0;if(!i)return"[object GeneratorFunction]"===n.call(e);if(!s)return!1;if(void 0===t){var a=function(){if(!i)return!1;try{return Function("return function*() {}")()}catch(e){}}();t=!!a&&s(a)}return s(e)===t}},2730:(e,t,n)=>{"use strict";var r=n(705),o=n(4834),i=n(8498),s=n(9818),a=n(9336),u=s("Object.prototype.toString"),c=n(1913)(),l="undefined"==typeof globalThis?n.g:globalThis,f=o(),p=s("String.prototype.slice"),d=Object.getPrototypeOf,m=s("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n<e.length;n+=1)if(e[n]===t)return n;return-1},h={__proto__:null};r(f,c&&a&&d?function(e){var t=new l[e];if(Symbol.toStringTag in t){var n=d(t),r=a(n,Symbol.toStringTag);if(!r){var o=d(n);r=a(o,Symbol.toStringTag)}h["$"+e]=i(r.get)}}:function(e){var t=new l[e];h["$"+e]=i(t.slice)}),e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!c){var t=p(u(e),8,-1);return m(f,t)>-1?t:"Object"===t&&function(e){var t=!1;return r(h,function(n,r){if(!t)try{n(e),t=p(r,1)}catch(e){}}),t}(e)}return a?function(e){var t=!1;return r(h,function(n,r){if(!t)try{"$"+n(e)===r&&(t=p(r,1))}catch(e){}}),t}(e):null}},2907:function(e,t,n){"use strict";var r,o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),s=0;s<n.length;s++)"default"!==n[s]&&o(t,e,n[s]);return i(t,e),t}),a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.toggleComment=function(){if(!(0,c.validate)()||!u.window.activeTextEditor)return;u.workspace.getConfiguration("editor.comments").get("insertSpace")?(p="/* ",d=" */",m="\x3c!-- ",h=" --\x3e"):(p="/*",d="*/",m="\x3c!--",h="--\x3e");const e=u.window.activeTextEditor,t=(0,f.getRootNode)(e.document,!0);return t?e.edit(n=>{const r=[];Array.from(e.selections).reverse().forEach(n=>{const o=(0,c.isStyleSheet)(e.document.languageId)?b(e.document,n,t):function(e,t,n){const r=t.isReversed?t.active:t.anchor,o=t.isReversed?t.anchor:t.active,i=e.offsetAt(r),s=e.offsetAt(o),a=e.getText(),f=(0,c.getHtmlFlatNode)(a,n,i,!0),p=(0,c.getHtmlFlatNode)(a,n,s,!0);if(!f||!p)return[];if((0,c.sameNodes)(f,p)&&"style"===f.name&&f.open&&f.close&&f.open.end<i&&f.close.start>s){const n=" ".repeat(f.open.end)+a.substring(f.open.end,f.close.start),r=(0,l.default)(n);return b(e,t,r)}const d=(0,c.getNodesInBetween)(f,p);let y=[];return d.forEach(t=>{y=y.concat(g(t,e))}),"comment"===f.type||(y.push(new u.TextEdit((0,c.offsetRangeToVsRange)(e,d[0].start,d[0].start),m)),y.push(new u.TextEdit((0,c.offsetRangeToVsRange)(e,d[d.length-1].end,d[d.length-1].end),h))),y}(e.document,n,t);o.length>0&&r.push(o)}),r.sort((e,t)=>{const n=e[0].range.start.line-t[0].range.start.line;return 0===n?e[0].range.start.character-t[0].range.start.character:n});let o=new u.Position(0,0);for(const e of r)e[0].range.end.isAfterOrEqual(o)&&e.forEach(e=>{n.replace(e.range,e.newText),o=e.range.end})}):void 0};const u=s(n(1398)),c=n(4900),l=a(n(7545)),f=n(8408);let p,d,m,h;function g(e,t){let n=[];return"comment"===e.type?(n.push(new u.TextEdit((0,c.offsetRangeToVsRange)(t,e.start,e.start+m.length),"")),n.push(new u.TextEdit((0,c.offsetRangeToVsRange)(t,e.end-h.length,e.end),"")),n):(e.children.forEach(e=>{n=n.concat(g(e,t))}),n)}function b(e,t,n){const r=t.isReversed?t.active:t.anchor,o=t.isReversed?t.anchor:t.active;let i=e.offsetAt(r),s=e.offsetAt(o);const a=(0,c.getFlatNode)(n,i,!0),l=(0,c.getFlatNode)(n,s,!0);t.isEmpty?a&&(i=a.start,s=a.end,t=(0,c.offsetRangeToSelection)(e,i,s)):(i=function(e,t,n){for(const e of n.comments)if(e.start<=t&&t<=e.end)return t;if(!e)return t;if("property"===e.type)return e.start;const r=e;if(t<r.contentStartToken.end||!r.firstChild)return r.start;if(t<r.firstChild.start)return t;let o=r.firstChild;for(;o.nextSibling&&t>o.end;)o=o.nextSibling;return o.start}(a,i,n),s=function(e,t,n){for(const e of n.comments)if(e.start<=t&&t<=e.end)return t;if(!e)return t;if("property"===e.type)return e.end;const r=e;if(t===r.contentEndToken.end||!r.firstChild)return r.end;if(t>r.children[r.children.length-1].end)return t;let o=r.children[r.children.length-1];for(;o.previousSibling&&t<o.start;)o=o.previousSibling;return o.end}(l,s,n),t=(0,c.offsetRangeToSelection)(e,i,s));const f=[],m=[];return n.comments.forEach(n=>{const r=(0,c.offsetRangeToVsRange)(e,n.start,n.end);t.intersection(r)&&(f.push(r),m.push(new u.TextEdit((0,c.offsetRangeToVsRange)(e,n.start,n.start+p.length),"")),m.push(new u.TextEdit((0,c.offsetRangeToVsRange)(e,n.end-d.length,n.end),"")))}),m.length>0?m:[new u.TextEdit(new u.Range(t.start,t.start),p),new u.TextEdit(new u.Range(t.end,t.end),d)]}},2908:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(var r in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},2915:(e,t,n)=>{"use strict";function r(e){return e>47&&e<58}function o(e){return 32===e||9===e||160===e}function i(e){return o(e)||10===e||13===e}n.r(t),n.d(t,{default:()=>C,extract:()=>x,parse:()=>c});class s{constructor(e,t,n){null==n&&"string"==typeof e&&(n=e.length),this.string=e,this.pos=this.start=t||0,this.end=n||0}eof(){return this.pos>=this.end}limit(e,t){return new s(this.string,e,t)}peek(){return this.string.charCodeAt(this.pos)}next(){if(this.pos<this.string.length)return this.string.charCodeAt(this.pos++)}eat(e){const t=this.peek(),n="function"==typeof e?e(t):t===e;return n&&this.next(),n}eatWhile(e){const t=this.pos;for(;!this.eof()&&this.eat(e););return this.pos!==t}backUp(e){this.pos-=e||1}current(){return this.substring(this.start,this.pos)}substring(e,t){return this.string.slice(e,t)}error(e,t=this.pos){return new a(`${e} at ${t+1}`,t,this.string)}}class a extends Error{constructor(e,t,n){super(e),this.pos=t,this.string=n}}const u=y("null",0);function c(e){const t="string"==typeof e?new s(e):e;let n,r=0,i=21;const a=[];for(;!t.eof();)t.eatWhile(o),t.start=t.pos,l(t)?(1&i||m("Unexpected number",t),a.push(f(t.current())),i=10):b(t.peek())?(n=t.next(),h(n)&&16&i?(g(n)&&a.push(p(n,r)),i=21):(2&i||m("Unexpected operator",t),a.push(d(n,r)),i=21)):t.eat(40)?(4&i||m('Unexpected "("',t),r+=10,i=53):t.eat(41)?(r-=10,32&i?a.push(u):8&i||m('Unexpected ")"',t),i=14):m("Unknown character",t);(r<0||r>=10)&&m('Unmatched "()"',t);const c=function(e){const t=[],n=[];let r=0;for(let o=0;o<e.length;o++){const i=e[o];if("num"===i.type)n.push(i);else{for(r+="op1"===i.type?1:2;t.length&&i.priority<=t[t.length-1].priority;)n.push(t.pop());t.push(i)}}return r+1===n.length+t.length?n.concat(t.reverse()):null}(a);return null===c&&m("Parity",t),c}function l(e){const t=e.pos;return!(!e.eat(46)||!e.eatWhile(r))||!(!e.eatWhile(r)||e.eat(46)&&!e.eatWhile(r))||(e.pos=t,!1)}function f(e,t){return y("num",parseFloat(e),t)}function p(e,t=0){return 45===e&&(t+=2),y("op1",e,t)}function d(e,t=0){return 42===e?t+=1:47!==e&&92!==e||(t+=2),y("op2",e,t)}function m(e,t){throw t&&(e+=` at column ${t.pos} of expression`),new Error(e)}function h(e){return function(e){return 43===e}(e)||g(e)}function g(e){return 45===e}function b(e){return 43===e||45===e||42===e||47===e||92===e}function y(e,t,n=0){return{type:e,value:t,priority:n}}const v={lookAhead:!0,whitespace:!0};function x(e,t=e.length,n){const r=Object.assign(Object.assign({},v),n),o={text:e,pos:t};let s;if(r.lookAhead&&41===A(o)){o.pos++;const t=e.length;for(;o.pos<t&&(s=A(o),41===s||r.whitespace&&i(s));)o.pos++}const a=o.pos;let u=0;for(;o.pos>=0;)if(!w(o)){if(s=k(o),41===s)u++;else if(40===s){if(!u)break;u--}else if(!(r.whitespace&&i(s)||h(s)||b(s)))break;o.pos--}if(o.pos!==a&&!u){for(;i(A(o));)o.pos++;return[o.pos,a]}return null}function w(e){if(r(k(e))){e.pos--;let t,n=!1;for(;e.pos>=0;){if(t=k(e),46===t){if(n)break;n=!0}else if(!r(t))break;e.pos--}return!0}return!1}function k(e){return e.text.charCodeAt(e.pos-1)}function A(e){return e.text.charCodeAt(e.pos)}const S={45:e=>-e},O={43:(e,t)=>e+t,45:(e,t)=>e-t,42:(e,t)=>e*t,47:(e,t)=>e/t,92:(e,t)=>Math.floor(e/t)},C=function(e){if(Array.isArray(e)||(e=c(e)),!e||!e.length)return null;const t=[];let n,r,o;for(let i=0,s=e.length;i<s;i++){const s=e[i];if("num"===s.type)t.push(s.value);else if("op2"===s.type)r=t.pop(),n=t.pop(),o=O[s.value],t.push(o(n,r));else{if("op1"!==s.type)throw new Error("Invalid expression");n=t.pop(),o=S[s.value],t.push(o(n))}}if(t.length>1)throw new Error("Invalid Expression (parity)");return t[0]}},3142:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nextItemHTML=function(e,t,n,i){const s=e.offsetAt(n);let a,u=(0,r.getHtmlFlatNode)(e.getText(),i,s,!1);if(u){if("comment"!==u.type){if(u.open&&s<=u.open.start+u.name.length)return o(e,u);if(u.open&&s<u.open.end){const n=e.offsetAt(t),o=function(e,t,n,o){if(o.attributes&&0!==o.attributes.length&&"comment"!==o.type)for(const i of o.attributes){if(n<i.start)return(0,r.offsetRangeToSelection)(e,i.start,i.end);if(!i.value||i.value.start===i.value.end)continue;if(t===i.start&&n===i.end||n<i.value.start)return(0,r.offsetRangeToSelection)(e,i.value.start,i.value.end);if(!i.value.toString().includes(" "))continue;let o;if(t===i.value.start&&n===i.value.end&&(o=-1),void 0===o&&n<i.end&&(o=e.positionAt(n).character-e.positionAt(i.value.start).character-1),void 0!==o){const[t,n]=(0,r.findNextWord)(i.value.toString(),o);if(void 0===t||void 0===n)return;if(t>=0&&n>=0){const o=i.value.start+t,s=i.value.start+n;return(0,r.offsetRangeToSelection)(e,o,s)}}}}(e,n,s,u);if(o)return o}for(a=u.firstChild;a&&(s>=a.end||"comment"===a.type);)a=a.nextSibling}for(;!a&&u;)u.nextSibling?"comment"!==u.nextSibling.type?a=u.nextSibling:u=u.nextSibling:u=u.parent;return a&&o(e,a)}},t.prevItemHTML=function(e,t,n,i){const s=e.offsetAt(t);let a,u=(0,r.getHtmlFlatNode)(e.getText(),i,s,!1);if(!u)return;const c=e.offsetAt(n);if(u.open&&"comment"!==u.type&&s-1>u.open.start)if(s<u.open.end||!u.firstChild||c<=u.firstChild.start)a=u;else{let e;for(a=u.firstChild;a.nextSibling&&s>=a.nextSibling.end;)a&&"comment"!==a.type&&(e=a),a=a.nextSibling;a=(0,r.getDeepestFlatNode)(a&&"comment"!==a.type?a:e)}for(;!a&&u;)u.previousSibling?"comment"!==u.previousSibling.type?a=(0,r.getDeepestFlatNode)(u.previousSibling):u=u.previousSibling:a=u.parent;if(!a)return;const l=function(e,t,n,o){if(o.attributes&&0!==o.attributes.length&&"comment"!==o.type)for(let i=o.attributes.length-1;i>=0;i--){const s=o.attributes[i];if(t<=s.start)continue;if(!s.value||s.value.start===s.value.end||t<s.value.start)return(0,r.offsetRangeToSelection)(e,s.start,s.end);if(t===s.value.start)return n>=s.value.end?(0,r.offsetRangeToSelection)(e,s.start,s.end):(0,r.offsetRangeToSelection)(e,s.value.start,s.value.end);const a=e.positionAt(t).character,u=e.positionAt(s.value.start).character,c=t>s.value.end?s.value.toString().length:a-u,[l,f]=(0,r.findPrevWord)(s.value.toString(),c);if(void 0===l||void 0===f)return;if(l>=0&&f>=0){const t=s.value.start+l,n=s.value.start+f;return(0,r.offsetRangeToSelection)(e,t,n)}}}(e,s,c,a);return l||o(e,a)};const r=n(4900);function o(e,t){if(t&&t.open){const n=t.open.start+1,o=n+t.name.length;return(0,r.offsetRangeToSelection)(e,n,o)}}},3468:e=>{"use strict";e.exports=TypeError},3547:(e,t,n)=>{"use strict";function r(e){return 32===e||9===e||11===e||12===e||160===e||5760===e||e>=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function o(e){return 10===e||13===e||8232===e||8233===e}function i(e){return e>=48&&e<=57}var s;function a(e,t,n){void 0===n&&(n=s.DEFAULT);var a=function(e,t){void 0===t&&(t=!1);var n=e.length,s=0,a="",u=0,c=16,l=0,f=0,p=0,d=0,m=0;function h(t,n){for(var r=0,o=0;r<t||!n;){var i=e.charCodeAt(s);if(i>=48&&i<=57)o=16*o+i-48;else if(i>=65&&i<=70)o=16*o+i-65+10;else{if(!(i>=97&&i<=102))break;o=16*o+i-97+10}s++,r++}return r<t&&(o=-1),o}function g(){if(a="",m=0,u=s,f=l,d=p,s>=n)return u=n,c=17;var t=e.charCodeAt(s);if(r(t)){do{s++,a+=String.fromCharCode(t),t=e.charCodeAt(s)}while(r(t));return c=15}if(o(t))return s++,a+=String.fromCharCode(t),13===t&&10===e.charCodeAt(s)&&(s++,a+="\n"),l++,p=s,c=14;switch(t){case 123:return s++,c=1;case 125:return s++,c=2;case 91:return s++,c=3;case 93:return s++,c=4;case 58:return s++,c=6;case 44:return s++,c=5;case 34:return s++,a=function(){for(var t="",r=s;;){if(s>=n){t+=e.substring(r,s),m=2;break}var i=e.charCodeAt(s);if(34===i){t+=e.substring(r,s),s++;break}if(92!==i){if(i>=0&&i<=31){if(o(i)){t+=e.substring(r,s),m=2;break}m=6}s++}else{if(t+=e.substring(r,s),++s>=n){m=2;break}switch(e.charCodeAt(s++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:var a=h(4,!0);a>=0?t+=String.fromCharCode(a):m=4;break;default:m=5}r=s}}return t}(),c=10;case 47:var g=s-1;if(47===e.charCodeAt(s+1)){for(s+=2;s<n&&!o(e.charCodeAt(s));)s++;return a=e.substring(g,s),c=12}if(42===e.charCodeAt(s+1)){s+=2;for(var y=n-1,v=!1;s<y;){var x=e.charCodeAt(s);if(42===x&&47===e.charCodeAt(s+1)){s+=2,v=!0;break}s++,o(x)&&(13===x&&10===e.charCodeAt(s)&&s++,l++,p=s)}return v||(s++,m=1),a=e.substring(g,s),c=13}return a+=String.fromCharCode(t),s++,c=16;case 45:if(a+=String.fromCharCode(t),++s===n||!i(e.charCodeAt(s)))return c=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return a+=function(){var t=s;if(48===e.charCodeAt(s))s++;else for(s++;s<e.length&&i(e.charCodeAt(s));)s++;if(s<e.length&&46===e.charCodeAt(s)){if(!(++s<e.length&&i(e.charCodeAt(s))))return m=3,e.substring(t,s);for(s++;s<e.length&&i(e.charCodeAt(s));)s++}var n=s;if(s<e.length&&(69===e.charCodeAt(s)||101===e.charCodeAt(s)))if((++s<e.length&&43===e.charCodeAt(s)||45===e.charCodeAt(s))&&s++,s<e.length&&i(e.charCodeAt(s))){for(s++;s<e.length&&i(e.charCodeAt(s));)s++;n=s}else m=3;return e.substring(t,n)}(),c=11;default:for(;s<n&&b(t);)s++,t=e.charCodeAt(s);if(u!==s){switch(a=e.substring(u,s)){case"true":return c=8;case"false":return c=9;case"null":return c=7}return c=16}return a+=String.fromCharCode(t),s++,c=16}}function b(e){if(r(e)||o(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(e){s=e,a="",u=0,c=16,m=0},getPosition:function(){return s},scan:t?function(){var e;do{e=g()}while(e>=12&&e<=15);return e}:g,getToken:function(){return c},getTokenValue:function(){return a},getTokenOffset:function(){return u},getTokenLength:function(){return s-u},getTokenStartLine:function(){return f},getTokenStartCharacter:function(){return u-d},getTokenError:function(){return m}}}(e,!1);function u(e){return e?function(){return e(a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter())}:function(){return!0}}function c(e){return e?function(t){return e(t,a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter())}:function(){return!0}}var l=u(t.onObjectBegin),f=c(t.onObjectProperty),p=u(t.onObjectEnd),d=u(t.onArrayBegin),m=u(t.onArrayEnd),h=c(t.onLiteralValue),g=c(t.onSeparator),b=u(t.onComment),y=c(t.onError),v=n&&n.disallowComments,x=n&&n.allowTrailingComma;function w(){for(;;){var e=a.scan();switch(a.getTokenError()){case 4:k(14);break;case 5:k(15);break;case 3:k(13);break;case 1:v||k(11);break;case 2:k(12);break;case 6:k(16)}switch(e){case 12:case 13:v?k(10):b();break;case 16:k(1);break;case 15:case 14:break;default:return e}}}function k(e,t,n){if(void 0===t&&(t=[]),void 0===n&&(n=[]),y(e),t.length+n.length>0)for(var r=a.getToken();17!==r;){if(-1!==t.indexOf(r)){w();break}if(-1!==n.indexOf(r))break;r=w()}}function A(e){var t=a.getTokenValue();return e?h(t):f(t),w(),!0}function S(){return 10!==a.getToken()?(k(3,[],[2,5]),!1):(A(!1),6===a.getToken()?(g(":"),w(),O()||k(4,[],[2,5])):k(5,[],[2,5]),!0)}function O(){switch(a.getToken()){case 3:return function(){d(),w();for(var e=!1;4!==a.getToken()&&17!==a.getToken();){if(5===a.getToken()){if(e||k(4,[],[]),g(","),w(),4===a.getToken()&&x)break}else e&&k(6,[],[]);O()||k(4,[],[4,5]),e=!0}return m(),4!==a.getToken()?k(8,[4],[]):w(),!0}();case 1:return function(){l(),w();for(var e=!1;2!==a.getToken()&&17!==a.getToken();){if(5===a.getToken()){if(e||k(4,[],[]),g(","),w(),2===a.getToken()&&x)break}else e&&k(6,[],[]);S()||k(4,[],[2,5]),e=!0}return p(),2!==a.getToken()?k(7,[2],[]):w(),!0}();case 10:return A(!0);default:return function(){switch(a.getToken()){case 11:var e=a.getTokenValue(),t=Number(e);isNaN(t)&&(k(2),t=0),h(t);break;case 7:h(null);break;case 8:h(!0);break;case 9:h(!1);break;default:return!1}return w(),!0}()}}return w(),17===a.getToken()?!!n.allowEmptyContent||(k(4,[],[]),!1):O()?(17!==a.getToken()&&k(9,[],[]),!0):(k(4,[],[]),!1)}n.r(t),n.d(t,{FileType:()=>Ue,doComplete:()=>Ji,emmetSnippetField:()=>os,expandAbbreviation:()=>gs,extractAbbreviation:()=>ls,extractAbbreviationFromText:()=>fs,getDefaultSnippets:()=>us,getDefaultSyntax:()=>as,getEmmetMode:()=>As,getExpandOptions:()=>ds,getSyntaxType:()=>ss,isAbbreviationValid:()=>ps,isStyleSheet:()=>is,parseAbbreviation:()=>hs,updateExtensionsPath:()=>bs}),function(e){e.DEFAULT={allowTrailingComma:!1}}(s||(s={}));var u,c,l,f,p,d,m,h,g,b,y,v,x,w,k,A,S,O,C,j,T,_,E,P,$,R,I,M,N,z,F,D,B,L,U,q,W,V,G,H,Q,J,K,Z,X,Y,ee,te,ne,re,oe,ie,se,ae,ue,ce,le,fe,pe,de,me,he,ge,be,ye,ve,xe,we,ke,Ae,Se,Oe,Ce,je,Te,_e,Ee,Pe,$e,Re,Ie,Me=function(e,t,n){void 0===t&&(t=[]),void 0===n&&(n=s.DEFAULT);var r=null,o=[],i=[];function u(e){Array.isArray(o)?o.push(e):null!==r&&(o[r]=e)}var c={onObjectBegin:function(){var e={};u(e),i.push(o),o=e,r=null},onObjectProperty:function(e){r=e},onObjectEnd:function(){o=i.pop()},onArrayBegin:function(){var e=[];u(e),i.push(o),o=e,r=null},onArrayEnd:function(){o=i.pop()},onLiteralValue:u,onError:function(e,n,r){t.push({error:e,offset:n,length:r})}};return a(e,c,n),o[0]},Ne=n(9208);!function(e){e.is=function(e){return"string"==typeof e}}(u||(u={})),function(e){e.is=function(e){return"string"==typeof e}}(c||(c={})),function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647,e.is=function(t){return"number"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}}(l||(l={})),function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647,e.is=function(t){return"number"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}}(f||(f={})),function(e){e.create=function(e,t){return e===Number.MAX_VALUE&&(e=f.MAX_VALUE),t===Number.MAX_VALUE&&(t=f.MAX_VALUE),{line:e,character:t}},e.is=function(e){let t=e;return Re.objectLiteral(t)&&Re.uinteger(t.line)&&Re.uinteger(t.character)}}(p||(p={})),function(e){e.create=function(e,t,n,r){if(Re.uinteger(e)&&Re.uinteger(t)&&Re.uinteger(n)&&Re.uinteger(r))return{start:p.create(e,t),end:p.create(n,r)};if(p.is(e)&&p.is(t))return{start:e,end:t};throw new Error(`Range#create called with invalid arguments[${e}, ${t}, ${n}, ${r}]`)},e.is=function(e){let t=e;return Re.objectLiteral(t)&&p.is(t.start)&&p.is(t.end)}}(d||(d={})),function(e){e.create=function(e,t){return{uri:e,range:t}},e.is=function(e){let t=e;return Re.objectLiteral(t)&&d.is(t.range)&&(Re.string(t.uri)||Re.undefined(t.uri))}}(m||(m={})),function(e){e.create=function(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}},e.is=function(e){let t=e;return Re.objectLiteral(t)&&d.is(t.targetRange)&&Re.string(t.targetUri)&&d.is(t.targetSelectionRange)&&(d.is(t.originSelectionRange)||Re.undefined(t.originSelectionRange))}}(h||(h={})),function(e){e.create=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},e.is=function(e){const t=e;return Re.objectLiteral(t)&&Re.numberRange(t.red,0,1)&&Re.numberRange(t.green,0,1)&&Re.numberRange(t.blue,0,1)&&Re.numberRange(t.alpha,0,1)}}(g||(g={})),function(e){e.create=function(e,t){return{range:e,color:t}},e.is=function(e){const t=e;return Re.objectLiteral(t)&&d.is(t.range)&&g.is(t.color)}}(b||(b={})),function(e){e.create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},e.is=function(e){const t=e;return Re.objectLiteral(t)&&Re.string(t.label)&&(Re.undefined(t.textEdit)||j.is(t))&&(Re.undefined(t.additionalTextEdits)||Re.typedArray(t.additionalTextEdits,j.is))}}(y||(y={})),function(e){e.Comment="comment",e.Imports="imports",e.Region="region"}(v||(v={})),function(e){e.create=function(e,t,n,r,o,i){const s={startLine:e,endLine:t};return Re.defined(n)&&(s.startCharacter=n),Re.defined(r)&&(s.endCharacter=r),Re.defined(o)&&(s.kind=o),Re.defined(i)&&(s.collapsedText=i),s},e.is=function(e){const t=e;return Re.objectLiteral(t)&&Re.uinteger(t.startLine)&&Re.uinteger(t.startLine)&&(Re.undefined(t.startCharacter)||Re.uinteger(t.startCharacter))&&(Re.undefined(t.endCharacter)||Re.uinteger(t.endCharacter))&&(Re.undefined(t.kind)||Re.string(t.kind))}}(x||(x={})),function(e){e.create=function(e,t){return{location:e,message:t}},e.is=function(e){let t=e;return Re.defined(t)&&m.is(t.location)&&Re.string(t.message)}}(w||(w={})),function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4}(k||(k={})),function(e){e.Unnecessary=1,e.Deprecated=2}(A||(A={})),function(e){e.is=function(e){const t=e;return Re.objectLiteral(t)&&Re.string(t.href)}}(S||(S={})),function(e){e.create=function(e,t,n,r,o,i){let s={range:e,message:t};return Re.defined(n)&&(s.severity=n),Re.defined(r)&&(s.code=r),Re.defined(o)&&(s.source=o),Re.defined(i)&&(s.relatedInformation=i),s},e.is=function(e){var t;let n=e;return Re.defined(n)&&d.is(n.range)&&Re.string(n.message)&&(Re.number(n.severity)||Re.undefined(n.severity))&&(Re.integer(n.code)||Re.string(n.code)||Re.undefined(n.code))&&(Re.undefined(n.codeDescription)||Re.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(Re.string(n.source)||Re.undefined(n.source))&&(Re.undefined(n.relatedInformation)||Re.typedArray(n.relatedInformation,w.is))}}(O||(O={})),function(e){e.create=function(e,t,...n){let r={title:e,command:t};return Re.defined(n)&&n.length>0&&(r.arguments=n),r},e.is=function(e){let t=e;return Re.defined(t)&&Re.string(t.title)&&Re.string(t.command)}}(C||(C={})),function(e){e.replace=function(e,t){return{range:e,newText:t}},e.insert=function(e,t){return{range:{start:e,end:e},newText:t}},e.del=function(e){return{range:e,newText:""}},e.is=function(e){const t=e;return Re.objectLiteral(t)&&Re.string(t.newText)&&d.is(t.range)}}(j||(j={})),function(e){e.create=function(e,t,n){const r={label:e};return void 0!==t&&(r.needsConfirmation=t),void 0!==n&&(r.description=n),r},e.is=function(e){const t=e;return Re.objectLiteral(t)&&Re.string(t.label)&&(Re.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(Re.string(t.description)||void 0===t.description)}}(T||(T={})),function(e){e.is=function(e){const t=e;return Re.string(t)}}(_||(_={})),function(e){e.replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},e.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},e.del=function(e,t){return{range:e,newText:"",annotationId:t}},e.is=function(e){const t=e;return j.is(t)&&(T.is(t.annotationId)||_.is(t.annotationId))}}(E||(E={})),function(e){e.create=function(e,t){return{textDocument:e,edits:t}},e.is=function(e){let t=e;return Re.defined(t)&&F.is(t.textDocument)&&Array.isArray(t.edits)}}(P||(P={})),function(e){e.create=function(e,t,n){let r={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},e.is=function(e){let t=e;return t&&"create"===t.kind&&Re.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||Re.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Re.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||_.is(t.annotationId))}}($||($={})),function(e){e.create=function(e,t,n,r){let o={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(o.options=n),void 0!==r&&(o.annotationId=r),o},e.is=function(e){let t=e;return t&&"rename"===t.kind&&Re.string(t.oldUri)&&Re.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||Re.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Re.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||_.is(t.annotationId))}}(R||(R={})),function(e){e.create=function(e,t,n){let r={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},e.is=function(e){let t=e;return t&&"delete"===t.kind&&Re.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||Re.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||Re.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||_.is(t.annotationId))}}(I||(I={})),function(e){e.is=function(e){let t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every(e=>Re.string(e.kind)?$.is(e)||R.is(e)||I.is(e):P.is(e)))}}(M||(M={})),function(e){e.create=function(e){return{uri:e}},e.is=function(e){let t=e;return Re.defined(t)&&Re.string(t.uri)}}(N||(N={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){let t=e;return Re.defined(t)&&Re.string(t.uri)&&Re.integer(t.version)}}(z||(z={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){let t=e;return Re.defined(t)&&Re.string(t.uri)&&(null===t.version||Re.integer(t.version))}}(F||(F={})),function(e){e.create=function(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}},e.is=function(e){let t=e;return Re.defined(t)&&Re.string(t.uri)&&Re.string(t.languageId)&&Re.integer(t.version)&&Re.string(t.text)}}(D||(D={})),function(e){e.PlainText="plaintext",e.Markdown="markdown",e.is=function(t){const n=t;return n===e.PlainText||n===e.Markdown}}(B||(B={})),function(e){e.is=function(e){const t=e;return Re.objectLiteral(e)&&B.is(t.kind)&&Re.string(t.value)}}(L||(L={})),function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25}(U||(U={})),function(e){e.PlainText=1,e.Snippet=2}(q||(q={})),function(e){e.Deprecated=1}(W||(W={})),function(e){e.create=function(e,t,n){return{newText:e,insert:t,replace:n}},e.is=function(e){const t=e;return t&&Re.string(t.newText)&&d.is(t.insert)&&d.is(t.replace)}}(V||(V={})),function(e){e.asIs=1,e.adjustIndentation=2}(G||(G={})),function(e){e.is=function(e){const t=e;return t&&(Re.string(t.detail)||void 0===t.detail)&&(Re.string(t.description)||void 0===t.description)}}(H||(H={})),function(e){e.create=function(e){return{label:e}}}(Q||(Q={})),function(e){e.create=function(e,t){return{items:e||[],isIncomplete:!!t}}}(J||(J={})),function(e){e.fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},e.is=function(e){const t=e;return Re.string(t)||Re.objectLiteral(t)&&Re.string(t.language)&&Re.string(t.value)}}(K||(K={})),function(e){e.is=function(e){let t=e;return!!t&&Re.objectLiteral(t)&&(L.is(t.contents)||K.is(t.contents)||Re.typedArray(t.contents,K.is))&&(void 0===e.range||d.is(e.range))}}(Z||(Z={})),function(e){e.create=function(e,t){return t?{label:e,documentation:t}:{label:e}}}(X||(X={})),function(e){e.create=function(e,t,...n){let r={label:e};return Re.defined(t)&&(r.documentation=t),Re.defined(n)?r.parameters=n:r.parameters=[],r}}(Y||(Y={})),function(e){e.Text=1,e.Read=2,e.Write=3}(ee||(ee={})),function(e){e.create=function(e,t){let n={range:e};return Re.number(t)&&(n.kind=t),n}}(te||(te={})),function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26}(ne||(ne={})),function(e){e.Deprecated=1}(re||(re={})),function(e){e.create=function(e,t,n,r,o){let i={name:e,kind:t,location:{uri:r,range:n}};return o&&(i.containerName=o),i}}(oe||(oe={})),function(e){e.create=function(e,t,n,r){return void 0!==r?{name:e,kind:t,location:{uri:n,range:r}}:{name:e,kind:t,location:{uri:n}}}}(ie||(ie={})),function(e){e.create=function(e,t,n,r,o,i){let s={name:e,detail:t,kind:n,range:r,selectionRange:o};return void 0!==i&&(s.children=i),s},e.is=function(e){let t=e;return t&&Re.string(t.name)&&Re.number(t.kind)&&d.is(t.range)&&d.is(t.selectionRange)&&(void 0===t.detail||Re.string(t.detail))&&(void 0===t.deprecated||Re.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))}}(se||(se={})),function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"}(ae||(ae={})),function(e){e.Invoked=1,e.Automatic=2}(ue||(ue={})),function(e){e.create=function(e,t,n){let r={diagnostics:e};return null!=t&&(r.only=t),null!=n&&(r.triggerKind=n),r},e.is=function(e){let t=e;return Re.defined(t)&&Re.typedArray(t.diagnostics,O.is)&&(void 0===t.only||Re.typedArray(t.only,Re.string))&&(void 0===t.triggerKind||t.triggerKind===ue.Invoked||t.triggerKind===ue.Automatic)}}(ce||(ce={})),function(e){e.create=function(e,t,n){let r={title:e},o=!0;return"string"==typeof t?(o=!1,r.kind=t):C.is(t)?r.command=t:r.edit=t,o&&void 0!==n&&(r.kind=n),r},e.is=function(e){let t=e;return t&&Re.string(t.title)&&(void 0===t.diagnostics||Re.typedArray(t.diagnostics,O.is))&&(void 0===t.kind||Re.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||C.is(t.command))&&(void 0===t.isPreferred||Re.boolean(t.isPreferred))&&(void 0===t.edit||M.is(t.edit))}}(le||(le={})),function(e){e.create=function(e,t){let n={range:e};return Re.defined(t)&&(n.data=t),n},e.is=function(e){let t=e;return Re.defined(t)&&d.is(t.range)&&(Re.undefined(t.command)||C.is(t.command))}}(fe||(fe={})),function(e){e.create=function(e,t){return{tabSize:e,insertSpaces:t}},e.is=function(e){let t=e;return Re.defined(t)&&Re.uinteger(t.tabSize)&&Re.boolean(t.insertSpaces)}}(pe||(pe={})),function(e){e.create=function(e,t,n){return{range:e,target:t,data:n}},e.is=function(e){let t=e;return Re.defined(t)&&d.is(t.range)&&(Re.undefined(t.target)||Re.string(t.target))}}(de||(de={})),function(e){e.create=function(e,t){return{range:e,parent:t}},e.is=function(t){let n=t;return Re.objectLiteral(n)&&d.is(n.range)&&(void 0===n.parent||e.is(n.parent))}}(me||(me={})),function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"}(he||(he={})),function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"}(ge||(ge={})),function(e){e.is=function(e){const t=e;return Re.objectLiteral(t)&&(void 0===t.resultId||"string"==typeof t.resultId)&&Array.isArray(t.data)&&(0===t.data.length||"number"==typeof t.data[0])}}(be||(be={})),function(e){e.create=function(e,t){return{range:e,text:t}},e.is=function(e){const t=e;return null!=t&&d.is(t.range)&&Re.string(t.text)}}(ye||(ye={})),function(e){e.create=function(e,t,n){return{range:e,variableName:t,caseSensitiveLookup:n}},e.is=function(e){const t=e;return null!=t&&d.is(t.range)&&Re.boolean(t.caseSensitiveLookup)&&(Re.string(t.variableName)||void 0===t.variableName)}}(ve||(ve={})),function(e){e.create=function(e,t){return{range:e,expression:t}},e.is=function(e){const t=e;return null!=t&&d.is(t.range)&&(Re.string(t.expression)||void 0===t.expression)}}(xe||(xe={})),function(e){e.create=function(e,t){return{frameId:e,stoppedLocation:t}},e.is=function(e){const t=e;return Re.defined(t)&&d.is(e.stoppedLocation)}}(we||(we={})),function(e){e.Type=1,e.Parameter=2,e.is=function(e){return 1===e||2===e}}(ke||(ke={})),function(e){e.create=function(e){return{value:e}},e.is=function(e){const t=e;return Re.objectLiteral(t)&&(void 0===t.tooltip||Re.string(t.tooltip)||L.is(t.tooltip))&&(void 0===t.location||m.is(t.location))&&(void 0===t.command||C.is(t.command))}}(Ae||(Ae={})),function(e){e.create=function(e,t,n){const r={position:e,label:t};return void 0!==n&&(r.kind=n),r},e.is=function(e){const t=e;return Re.objectLiteral(t)&&p.is(t.position)&&(Re.string(t.label)||Re.typedArray(t.label,Ae.is))&&(void 0===t.kind||ke.is(t.kind))&&void 0===t.textEdits||Re.typedArray(t.textEdits,j.is)&&(void 0===t.tooltip||Re.string(t.tooltip)||L.is(t.tooltip))&&(void 0===t.paddingLeft||Re.boolean(t.paddingLeft))&&(void 0===t.paddingRight||Re.boolean(t.paddingRight))}}(Se||(Se={})),function(e){e.createSnippet=function(e){return{kind:"snippet",value:e}}}(Oe||(Oe={})),function(e){e.create=function(e,t,n,r){return{insertText:e,filterText:t,range:n,command:r}}}(Ce||(Ce={})),function(e){e.create=function(e){return{items:e}}}(je||(je={})),function(e){e.Invoked=0,e.Automatic=1}(Te||(Te={})),function(e){e.create=function(e,t){return{range:e,text:t}}}(_e||(_e={})),function(e){e.create=function(e,t){return{triggerKind:e,selectedCompletionInfo:t}}}(Ee||(Ee={})),function(e){e.is=function(e){const t=e;return Re.objectLiteral(t)&&c.is(t.uri)&&Re.string(t.name)}}(Pe||(Pe={})),function(e){function t(e,n){if(e.length<=1)return e;const r=e.length/2|0,o=e.slice(0,r),i=e.slice(r);t(o,n),t(i,n);let s=0,a=0,u=0;for(;s<o.length&&a<i.length;){let t=n(o[s],i[a]);e[u++]=t<=0?o[s++]:i[a++]}for(;s<o.length;)e[u++]=o[s++];for(;a<i.length;)e[u++]=i[a++];return e}e.create=function(e,t,n,r){return new ze(e,t,n,r)},e.is=function(e){let t=e;return!!(Re.defined(t)&&Re.string(t.uri)&&(Re.undefined(t.languageId)||Re.string(t.languageId))&&Re.uinteger(t.lineCount)&&Re.func(t.getText)&&Re.func(t.positionAt)&&Re.func(t.offsetAt))},e.applyEdits=function(e,n){let r=e.getText(),o=t(n,(e,t)=>{let n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n}),i=r.length;for(let t=o.length-1;t>=0;t--){let n=o[t],s=e.offsetAt(n.range.start),a=e.offsetAt(n.range.end);if(!(a<=i))throw new Error("Overlapping edit");r=r.substring(0,s)+n.newText+r.substring(a,r.length),i=s}return r}}($e||($e={}));class ze{constructor(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0}getLineOffsets(){if(void 0===this._lineOffsets){let e=[],t=this._content,n=!0;for(let r=0;r<t.length;r++){n&&(e.push(r),n=!1);let o=t.charAt(r);n="\r"===o||"\n"===o,"\r"===o&&r+1<t.length&&"\n"===t.charAt(r+1)&&r++}n&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return p.create(0,e);for(;n<r;){let o=Math.floor((n+r)/2);t[o]>e?r=o:n=o+1}let o=n-1;return p.create(o,e-t[o])}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let n=t[e.line],r=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,r),n)}get lineCount(){return this.getLineOffsets().length}}!function(e){const t=Object.prototype.toString;e.defined=function(e){return void 0!==e},e.undefined=function(e){return void 0===e},e.boolean=function(e){return!0===e||!1===e},e.string=function(e){return"[object String]"===t.call(e)},e.number=function(e){return"[object Number]"===t.call(e)},e.numberRange=function(e,n,r){return"[object Number]"===t.call(e)&&n<=e&&e<=r},e.integer=function(e){return"[object Number]"===t.call(e)&&-2147483648<=e&&e<=2147483647},e.uinteger=function(e){return"[object Number]"===t.call(e)&&0<=e&&e<=2147483647},e.func=function(e){return"[object Function]"===t.call(e)},e.objectLiteral=function(e){return null!==e&&"object"==typeof e},e.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)}}(Re||(Re={})),(()=>{var e={470:e=>{function t(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,r="",o=0,i=-1,s=0,a=0;a<=e.length;++a){if(a<e.length)n=e.charCodeAt(a);else{if(47===n)break;n=47}if(47===n){if(i===a-1||1===s);else if(i!==a-1&&2===s){if(r.length<2||2!==o||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2))if(r.length>2){var u=r.lastIndexOf("/");if(u!==r.length-1){-1===u?(r="",o=0):o=(r=r.slice(0,u)).length-1-r.lastIndexOf("/"),i=a,s=0;continue}}else if(2===r.length||1===r.length){r="",o=0,i=a,s=0;continue}t&&(r.length>0?r+="/..":r="..",o=2)}else r.length>0?r+="/"+e.slice(i+1,a):r=e.slice(i+1,a),o=a-i-1;i=a,s=0}else 46===n&&-1!==s?++s:s=-1}return r}var r={resolve:function(){for(var e,r="",o=!1,i=arguments.length-1;i>=-1&&!o;i--){var s;i>=0?s=arguments[i]:(void 0===e&&(e=process.cwd()),s=e),t(s),0!==s.length&&(r=s+"/"+r,o=47===s.charCodeAt(0))}return r=n(r,!o),o?r.length>0?"/"+r:"/":r.length>0?r:"."},normalize:function(e){if(t(e),0===e.length)return".";var r=47===e.charCodeAt(0),o=47===e.charCodeAt(e.length-1);return 0!==(e=n(e,!r)).length||r||(e="."),e.length>0&&o&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,n=0;n<arguments.length;++n){var o=arguments[n];t(o),o.length>0&&(void 0===e?e=o:e+="/"+o)}return void 0===e?".":r.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n)return"";if((e=r.resolve(e))===(n=r.resolve(n)))return"";for(var o=1;o<e.length&&47===e.charCodeAt(o);++o);for(var i=e.length,s=i-o,a=1;a<n.length&&47===n.charCodeAt(a);++a);for(var u=n.length-a,c=s<u?s:u,l=-1,f=0;f<=c;++f){if(f===c){if(u>c){if(47===n.charCodeAt(a+f))return n.slice(a+f+1);if(0===f)return n.slice(a+f)}else s>c&&(47===e.charCodeAt(o+f)?l=f:0===f&&(l=0));break}var p=e.charCodeAt(o+f);if(p!==n.charCodeAt(a+f))break;47===p&&(l=f)}var d="";for(f=o+l+1;f<=i;++f)f!==i&&47!==e.charCodeAt(f)||(0===d.length?d+="..":d+="/..");return d.length>0?d+n.slice(a+l):(a+=l,47===n.charCodeAt(a)&&++a,n.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),r=47===n,o=-1,i=!0,s=e.length-1;s>=1;--s)if(47===(n=e.charCodeAt(s))){if(!i){o=s;break}}else i=!1;return-1===o?r?"/":".":r&&1===o?"//":e.slice(0,o)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');t(e);var r,o=0,i=-1,s=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var a=n.length-1,u=-1;for(r=e.length-1;r>=0;--r){var c=e.charCodeAt(r);if(47===c){if(!s){o=r+1;break}}else-1===u&&(s=!1,u=r+1),a>=0&&(c===n.charCodeAt(a)?-1==--a&&(i=r):(a=-1,i=u))}return o===i?i=u:-1===i&&(i=e.length),e.slice(o,i)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!s){o=r+1;break}}else-1===i&&(s=!1,i=r+1);return-1===i?"":e.slice(o,i)},extname:function(e){t(e);for(var n=-1,r=0,o=-1,i=!0,s=0,a=e.length-1;a>=0;--a){var u=e.charCodeAt(a);if(47!==u)-1===o&&(i=!1,o=a+1),46===u?-1===n?n=a:1!==s&&(s=1):-1!==n&&(s=-1);else if(!i){r=a+1;break}}return-1===n||-1===o||0===s||1===s&&n===o-1&&n===r+1?"":e.slice(n,o)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+"/"+r:r}(0,e)},parse:function(e){t(e);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;var r,o=e.charCodeAt(0),i=47===o;i?(n.root="/",r=1):r=0;for(var s=-1,a=0,u=-1,c=!0,l=e.length-1,f=0;l>=r;--l)if(47!==(o=e.charCodeAt(l)))-1===u&&(c=!1,u=l+1),46===o?-1===s?s=l:1!==f&&(f=1):-1!==s&&(f=-1);else if(!c){a=l+1;break}return-1===s||-1===u||0===f||1===f&&s===u-1&&s===a+1?-1!==u&&(n.base=n.name=0===a&&i?e.slice(1,u):e.slice(a,u)):(0===a&&i?(n.name=e.slice(1,s),n.base=e.slice(1,u)):(n.name=e.slice(a,s),n.base=e.slice(a,u)),n.ext=e.slice(s,u)),a>0?n.dir=e.slice(0,a-1):i&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};r.posix=r,e.exports=r}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};(()=>{let e;if(n.r(r),n.d(r,{URI:()=>l,Utils:()=>S}),"object"==typeof process)e=!1;else if("object"==typeof navigator){let t=navigator.userAgent;e=t.indexOf("Windows")>=0}const t=/^\w[\w\d+.-]*$/,o=/^\//,i=/^\/\//;function s(e,n){if(!e.scheme&&n)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!t.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!o.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(i.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}const a="",u="/",c=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class l{static isUri(e){return e instanceof l||!!e&&"string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"string"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString}scheme;authority;path;query;fragment;constructor(e,t,n,r,o,i=!1){"object"==typeof e?(this.scheme=e.scheme||a,this.authority=e.authority||a,this.path=e.path||a,this.query=e.query||a,this.fragment=e.fragment||a):(this.scheme=function(e,t){return e||t?e:"file"}(e,i),this.authority=t||a,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==u&&(t=u+t):t=u}return t}(this.scheme,n||a),this.query=r||a,this.fragment=o||a,s(this,i))}get fsPath(){return g(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:r,query:o,fragment:i}=e;return void 0===t?t=this.scheme:null===t&&(t=a),void 0===n?n=this.authority:null===n&&(n=a),void 0===r?r=this.path:null===r&&(r=a),void 0===o?o=this.query:null===o&&(o=a),void 0===i?i=this.fragment:null===i&&(i=a),t===this.scheme&&n===this.authority&&r===this.path&&o===this.query&&i===this.fragment?this:new p(t,n,r,o,i)}static parse(e,t=!1){const n=c.exec(e);return n?new p(n[2]||a,x(n[4]||a),x(n[5]||a),x(n[7]||a),x(n[9]||a),t):new p(a,a,a,a,a)}static file(t){let n=a;if(e&&(t=t.replace(/\\/g,u)),t[0]===u&&t[1]===u){const e=t.indexOf(u,2);-1===e?(n=t.substring(2),t=u):(n=t.substring(2,e),t=t.substring(e)||u)}return new p("file",n,t,a,a)}static from(e){const t=new p(e.scheme,e.authority,e.path,e.query,e.fragment);return s(t,!0),t}toString(e=!1){return b(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof l)return e;{const t=new p(e);return t._formatted=e.external,t._fsPath=e._sep===f?e.fsPath:null,t}}return e}}const f=e?1:void 0;class p extends l{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=g(this,!1)),this._fsPath}toString(e=!1){return e?b(this,!0):(this._formatted||(this._formatted=b(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=f),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}const d={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function m(e,t,n){let r,o=-1;for(let i=0;i<e.length;i++){const s=e.charCodeAt(i);if(s>=97&&s<=122||s>=65&&s<=90||s>=48&&s<=57||45===s||46===s||95===s||126===s||t&&47===s||n&&91===s||n&&93===s||n&&58===s)-1!==o&&(r+=encodeURIComponent(e.substring(o,i)),o=-1),void 0!==r&&(r+=e.charAt(i));else{void 0===r&&(r=e.substr(0,i));const t=d[s];void 0!==t?(-1!==o&&(r+=encodeURIComponent(e.substring(o,i)),o=-1),r+=t):-1===o&&(o=i)}}return-1!==o&&(r+=encodeURIComponent(e.substring(o))),void 0!==r?r:e}function h(e){let t;for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);35===r||63===r?(void 0===t&&(t=e.substr(0,n)),t+=d[r]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function g(t,n){let r;return r=t.authority&&t.path.length>1&&"file"===t.scheme?`//${t.authority}${t.path}`:47===t.path.charCodeAt(0)&&(t.path.charCodeAt(1)>=65&&t.path.charCodeAt(1)<=90||t.path.charCodeAt(1)>=97&&t.path.charCodeAt(1)<=122)&&58===t.path.charCodeAt(2)?n?t.path.substr(1):t.path[1].toLowerCase()+t.path.substr(2):t.path,e&&(r=r.replace(/\//g,"\\")),r}function b(e,t){const n=t?h:m;let r="",{scheme:o,authority:i,path:s,query:a,fragment:c}=e;if(o&&(r+=o,r+=":"),(i||"file"===o)&&(r+=u,r+=u),i){let e=i.indexOf("@");if(-1!==e){const t=i.substr(0,e);i=i.substr(e+1),e=t.lastIndexOf(":"),-1===e?r+=n(t,!1,!1):(r+=n(t.substr(0,e),!1,!1),r+=":",r+=n(t.substr(e+1),!1,!0)),r+="@"}i=i.toLowerCase(),e=i.lastIndexOf(":"),-1===e?r+=n(i,!1,!0):(r+=n(i.substr(0,e),!1,!0),r+=i.substr(e))}if(s){if(s.length>=3&&47===s.charCodeAt(0)&&58===s.charCodeAt(2)){const e=s.charCodeAt(1);e>=65&&e<=90&&(s=`/${String.fromCharCode(e+32)}:${s.substr(3)}`)}else if(s.length>=2&&58===s.charCodeAt(1)){const e=s.charCodeAt(0);e>=65&&e<=90&&(s=`${String.fromCharCode(e+32)}:${s.substr(2)}`)}r+=n(s,!0,!1)}return a&&(r+="?",r+=n(a,!1,!1)),c&&(r+="#",r+=t?c:m(c,!1,!1)),r}function y(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+y(e.substr(3)):e}}const v=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function x(e){return e.match(v)?e.replace(v,e=>y(e)):e}var w=n(470);const k=w.posix||w,A="/";var S;!function(e){e.joinPath=function(e,...t){return e.with({path:k.join(e.path,...t)})},e.resolvePath=function(e,...t){let n=e.path,r=!1;n[0]!==A&&(n=A+n,r=!0);let o=k.resolve(n,...t);return r&&o[0]===A&&!e.authority&&(o=o.substring(1)),e.with({path:o})},e.dirname=function(e){if(0===e.path.length||e.path===A)return e;let t=k.dirname(e.path);return 1===t.length&&46===t.charCodeAt(0)&&(t=""),e.with({path:t})},e.basename=function(e){return k.basename(e.path)},e.extname=function(e){return k.extname(e.path)}}(S||(S={}))})(),Ie=r})();const{URI:Fe,Utils:De}=Ie,Be={properties:["additive-symbols","align-content","align-items","justify-items","justify-self","justify-items","align-self","all","alt","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","behavior","block-size","border","border-block-end","border-block-start","border-block-end-color","border-block-start-color","border-block-end-style","border-block-start-style","border-block-end-width","border-block-start-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline-end","border-inline-start","border-inline-end-color","border-inline-start-color","border-inline-end-style","border-inline-start-style","border-inline-end-width","border-inline-start-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation-filters","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","columns","column-span","column-width","contain","content","counter-increment","counter-reset","cursor","direction","display","empty-cells","enable-background","fallback","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","font","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","glyph-orientation-horizontal","glyph-orientation-vertical","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","height","hyphens","image-orientation","image-rendering","ime-mode","inline-size","isolation","justify-content","kerning","left","letter-spacing","lighting-color","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block-end","margin-block-start","margin-bottom","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marker","marker-end","marker-mid","marker-start","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","motion","motion-offset","motion-path","motion-rotation","-moz-animation","-moz-animation-delay","-moz-animation-direction","-moz-animation-duration","-moz-animation-iteration-count","-moz-animation-name","-moz-animation-play-state","-moz-animation-timing-function","-moz-appearance","-moz-backface-visibility","-moz-background-clip","-moz-background-inline-policy","-moz-background-origin","-moz-border-bottom-colors","-moz-border-image","-moz-border-left-colors","-moz-border-right-colors","-moz-border-top-colors","-moz-box-align","-moz-box-direction","-moz-box-flex","-moz-box-flexgroup","-moz-box-ordinal-group","-moz-box-orient","-moz-box-pack","-moz-box-sizing","-moz-column-count","-moz-column-gap","-moz-column-rule","-moz-column-rule-color","-moz-column-rule-style","-moz-column-rule-width","-moz-columns","-moz-column-width","-moz-font-feature-settings","-moz-hyphens","-moz-perspective","-moz-perspective-origin","-moz-text-align-last","-moz-text-decoration-color","-moz-text-decoration-line","-moz-text-decoration-style","-moz-text-size-adjust","-moz-transform","-moz-transform-origin","-moz-transition","-moz-transition-delay","-moz-transition-duration","-moz-transition-property","-moz-transition-timing-function","-moz-user-focus","-moz-user-select","-ms-accelerator","-ms-behavior","-ms-block-progression","-ms-content-zoom-chaining","-ms-content-zooming","-ms-content-zoom-limit","-ms-content-zoom-limit-max","-ms-content-zoom-limit-min","-ms-content-zoom-snap","-ms-content-zoom-snap-points","-ms-content-zoom-snap-type","-ms-filter","-ms-flex","-ms-flex-align","-ms-flex-direction","-ms-flex-flow","-ms-flex-item-align","-ms-flex-line-pack","-ms-flex-order","-ms-flex-pack","-ms-flex-wrap","-ms-flow-from","-ms-flow-into","-ms-grid-column","-ms-grid-column-align","-ms-grid-columns","-ms-grid-column-span","-ms-grid-layer","-ms-grid-row","-ms-grid-row-align","-ms-grid-rows","-ms-grid-row-span","-ms-high-contrast-adjust","-ms-hyphenate-limit-chars","-ms-hyphenate-limit-lines","-ms-hyphenate-limit-zone","-ms-hyphens","-ms-ime-mode","-ms-interpolation-mode","-ms-layout-grid","-ms-layout-grid-char","-ms-layout-grid-line","-ms-layout-grid-mode","-ms-layout-grid-type","-ms-line-break","-ms-overflow-style","-ms-perspective","-ms-perspective-origin","-ms-perspective-origin-x","-ms-perspective-origin-y","-ms-progress-appearance","-ms-scrollbar-3dlight-color","-ms-scrollbar-arrow-color","-ms-scrollbar-base-color","-ms-scrollbar-darkshadow-color","-ms-scrollbar-face-color","-ms-scrollbar-highlight-color","-ms-scrollbar-shadow-color","-ms-scrollbar-track-color","-ms-scroll-chaining","-ms-scroll-limit","-ms-scroll-limit-x-max","-ms-scroll-limit-x-min","-ms-scroll-limit-y-max","-ms-scroll-limit-y-min","-ms-scroll-rails","-ms-scroll-snap-points-x","-ms-scroll-snap-points-y","-ms-scroll-snap-type","-ms-scroll-snap-x","-ms-scroll-snap-y","-ms-scroll-translation","-ms-text-align-last","-ms-text-autospace","-ms-text-combine-horizontal","-ms-text-justify","-ms-text-kashida-space","-ms-text-overflow","-ms-text-size-adjust","-ms-text-underline-position","-ms-touch-action","-ms-touch-select","-ms-transform","-ms-transform-origin","-ms-transform-origin-x","-ms-transform-origin-y","-ms-transform-origin-z","-ms-user-select","-ms-word-break","-ms-word-wrap","-ms-wrap-flow","-ms-wrap-margin","-ms-wrap-through","-ms-writing-mode","-ms-zoom","-ms-zoom-animation","nav-down","nav-index","nav-left","nav-right","nav-up","negative","-o-animation","-o-animation-delay","-o-animation-direction","-o-animation-duration","-o-animation-fill-mode","-o-animation-iteration-count","-o-animation-name","-o-animation-play-state","-o-animation-timing-function","object-fit","object-position","-o-border-image","-o-object-fit","-o-object-position","opacity","order","orphans","-o-table-baseline","-o-tab-size","-o-text-overflow","-o-transform","-o-transform-origin","-o-transition","-o-transition-delay","-o-transition-duration","-o-transition-property","-o-transition-timing-function","offset-block-end","offset-block-start","offset-inline-end","offset-inline-start","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","pad","padding","padding-bottom","padding-block-end","padding-block-start","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","paint-order","perspective","perspective-origin","pointer-events","position","prefix","quotes","range","resize","right","ruby-align","ruby-overhang","ruby-position","ruby-span","scrollbar-3dlight-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-darkshadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","scroll-behavior","scroll-snap-coordinate","scroll-snap-destination","scroll-snap-points-x","scroll-snap-points-y","scroll-snap-type","shape-image-threshold","shape-margin","shape-outside","shape-rendering","size","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","suffix","system","symbols","table-layout","tab-size","text-align","text-align-last","text-anchor","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","unicode-range","user-select","vertical-align","visibility","-webkit-animation","-webkit-animation-delay","-webkit-animation-direction","-webkit-animation-duration","-webkit-animation-fill-mode","-webkit-animation-iteration-count","-webkit-animation-name","-webkit-animation-play-state","-webkit-animation-timing-function","-webkit-appearance","-webkit-backdrop-filter","-webkit-backface-visibility","-webkit-background-clip","-webkit-background-composite","-webkit-background-origin","-webkit-border-image","-webkit-box-align","-webkit-box-direction","-webkit-box-flex","-webkit-box-flex-group","-webkit-box-ordinal-group","-webkit-box-orient","-webkit-box-pack","-webkit-box-reflect","-webkit-box-sizing","-webkit-break-after","-webkit-break-before","-webkit-break-inside","-webkit-column-break-after","-webkit-column-break-before","-webkit-column-break-inside","-webkit-column-count","-webkit-column-gap","-webkit-column-rule","-webkit-column-rule-color","-webkit-column-rule-style","-webkit-column-rule-width","-webkit-columns","-webkit-column-span","-webkit-column-width","-webkit-filter","-webkit-flow-from","-webkit-flow-into","-webkit-font-feature-settings","-webkit-hyphens","-webkit-line-break","-webkit-margin-bottom-collapse","-webkit-margin-collapse","-webkit-margin-start","-webkit-margin-top-collapse","-webkit-mask-clip","-webkit-mask-image","-webkit-mask-origin","-webkit-mask-repeat","-webkit-mask-size","-webkit-nbsp-mode","-webkit-overflow-scrolling","-webkit-padding-start","-webkit-perspective","-webkit-perspective-origin","-webkit-region-fragment","-webkit-tap-highlight-color","-webkit-text-fill-color","-webkit-text-size-adjust","-webkit-text-stroke","-webkit-text-stroke-color","-webkit-text-stroke-width","-webkit-touch-callout","-webkit-transform","-webkit-transform-origin","-webkit-transform-origin-x","-webkit-transform-origin-y","-webkit-transform-origin-z","-webkit-transform-style","-webkit-transition","-webkit-transition-delay","-webkit-transition-duration","-webkit-transition-property","-webkit-transition-timing-function","-webkit-user-drag","-webkit-user-modify","-webkit-user-select","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","zoom"]},Le={tags:["body","head","html","address","blockquote","dd","div","section","article","aside","header","footer","nav","menu","dl","dt","fieldset","form","frame","frameset","h1","h2","h3","h4","h5","h6","iframe","noframes","object","ol","p","ul","applet","center","dir","hr","pre","a","abbr","acronym","area","b","base","basefont","bdo","big","br","button","caption","cite","code","col","colgroup","del","dfn","em","font","i","img","input","ins","isindex","kbd","label","legend","li","link","map","meta","noscript","optgroup","option","param","q","s","samp","script","select","small","span","strike","strong","style","sub","sup","table","tbody","td","textarea","tfoot","th","thead","title","tr","tt","u","var","canvas","main","figure","plaintext","figcaption","hgroup","details","summary","audio","bdi","data","datalist","dialog","embed","mark","math","meter","output","picture","portal","progress","rp","rt","ruby","search","slot","source","template","time","track","video","wbr"]};var Ue;!function(e){e[e.Unknown=0]="Unknown",e[e.File=1]="File",e[e.Directory=2]="Directory",e[e.SymbolicLink=64]="SymbolicLink"}(Ue||(Ue={}));const qe=new RegExp("^(/|//|\\\\\\\\|[A-Za-z]:(/|\\\\))"),We=".".charCodeAt(0);function Ve(e){return qe.test(e)}function Ge(e){const t=[];for(const n of e)0===n.length||1===n.length&&n.charCodeAt(0)===We||(2===n.length&&n.charCodeAt(0)===We&&n.charCodeAt(1)===We?t.pop():t.push(n));e.length>1&&0===e[e.length-1].length&&t.push("");let n=t.join("/");return 0===e[0].length&&(n="/"+n),n}function He(e,...t){const n=e.path.split("/");for(const e of t)n.push(...e.split("/"));return e.with({path:Ge(n)})}function Qe(e){return e>47&&e<58}function Je(e,t,n){return n=n||90,(e&=-33)>=(t=t||65)&&e<=n}function Ke(e){return Qe(e)||Ze(e)}function Ze(e){return 95===e||Je(e)}function Xe(e){return function(e){return 32===e||9===e||160===e}(e)||10===e||13===e}function Ye(e){return 39===e||34===e}class et{constructor(e,t,n){null==n&&"string"==typeof e&&(n=e.length),this.string=e,this.pos=this.start=t||0,this.end=n||0}eof(){return this.pos>=this.end}limit(e,t){return new et(this.string,e,t)}peek(){return this.string.charCodeAt(this.pos)}next(){if(this.pos<this.string.length)return this.string.charCodeAt(this.pos++)}eat(e){const t=this.peek(),n="function"==typeof e?e(t):t===e;return n&&this.next(),n}eatWhile(e){const t=this.pos;for(;!this.eof()&&this.eat(e););return this.pos!==t}backUp(e){this.pos-=e||1}current(){return this.substring(this.start,this.pos)}substring(e,t){return this.string.slice(e,t)}error(e,t=this.pos){return new tt(`${e} at ${t+1}`,t,this.string)}}class tt extends Error{constructor(e,t,n){super(e),this.pos=t,this.string=n}}function nt(e){return e.tokens[e.pos]}function rt(e){return e.tokens[e.pos++]}function ot(e,t=e.start,n=e.pos){return e.tokens.slice(t,n)}function it(e){return e.pos<e.size}function st(e,t){const n=nt(e);return!(!n||!t(n)||(e.pos++,0))}function at(e,t,n=nt(e)){n&&null!=n.start&&(t+=` at ${n.start}`);const r=new Error(t);return r.pos=n&&n.start,r}function ut(e,t){const n={type:"TokenGroup",elements:[]};let r,o=n;const i=[];for(;it(e)&&(r=lt(e,t)||ct(e,t));)if(o.elements.push(r),st(e,$t))i.push(o),o=r;else{if(st(e,Rt))continue;if(st(e,It))do{i.length&&(o=i.pop())}while(st(e,It))}return n}function ct(e,t){if(st(e,Et)){const n=ut(e,t);return yt(rt(e),"group",!1)&&(n.repeat=function(e){return At(nt(e))?e.tokens[e.pos++]:void 0}(e)),n}}function lt(e,t){let n;const r={type:"TokenElement",name:void 0,attributes:void 0,value:void 0,repeat:void 0,selfClose:!1,elements:[]};for(function(e,t){const n=e.pos;if(t.jsx&&st(e,St))for(;it(e);){const{pos:t}=e;if(!st(e,Ct)||!st(e,St)){e.pos=t;break}}for(;it(e)&&st(e,Ot););return e.pos!==n&&(e.start=n,!0)}(e,t)&&(r.name=ot(e));it(e);)if(e.start=e.pos,r.repeat||Pt(r)||!st(e,At))if(!r.value&&gt(e))r.value=bt(e);else{if(!(n=pt(e,"id",t)||pt(e,"class",t)||ft(e))){!Pt(r)&&st(e,Mt)&&(r.selfClose=!0,!r.repeat&&st(e,At)&&(r.repeat=e.tokens[e.pos-1]));break}r.attributes?r.attributes=r.attributes.concat(n):r.attributes=Array.isArray(n)?n.slice():[n]}else r.repeat=e.tokens[e.pos-1];return Pt(r)?void 0:r}function ft(e){if(st(e,jt)){const t=[];let n;for(;it(e);)if(n=dt(e))t.push(n);else{if(st(e,Tt))break;if(!st(e,wt))throw at(e,`Unexpected "${nt(e).type}" token`)}return t}}function pt(e,t,n){if(vt(nt(e),t)){e.pos++;let o=1;for(;vt(nt(e),t);)e.pos++,o++;const i={name:[(r=t,{type:"Literal",value:r})]};return o>1&&(i.multiple=!0),n.jsx&&gt(e)?(i.value=bt(e),i.expression=!0):i.value=ht(e)?ot(e):void 0,i}var r}function dt(e){if(mt(e))return{value:ot(e)};if(ht(e,!0)){const t=ot(e);let n;return st(e,kt)&&(mt(e)||ht(e,!0))&&(n=ot(e)),{name:t,value:n}}}function mt(e){const t=e.pos,n=nt(e);if(xt(n)){for(e.pos++;it(e);)if(xt(rt(e),n.single))return e.start=t,!0;throw at(e,"Unclosed quote",n)}return!1}function ht(e,t){const n=e.pos,r={attribute:0,expression:0,group:0};for(;it(e);){const n=nt(e);if(r.expression)yt(n,"expression")&&(r[n.context]+=n.open?1:-1);else{if(xt(n)||vt(n)||wt(n)||At(n))break;if(yt(n)){if(!t)break;if(n.open)r[n.context]++;else{if(!r[n.context])break;r[n.context]--}}}e.pos++}return n!==e.pos&&(e.start=n,!0)}function gt(e){const t=e.pos;if(st(e,_t)){let n=0;for(;it(e);){const t=rt(e);if(yt(t,"expression"))if(t.open)n++;else{if(!n)break;n--}}return e.start=t,!0}return!1}function bt(e){let t=e.start,n=e.pos;return yt(e.tokens[t],"expression",!0)&&t++,yt(e.tokens[n-1],"expression",!1)&&n--,ot(e,t,n)}function yt(e,t,n){return Boolean(e&&"Bracket"===e.type&&(!t||e.context===t)&&(null==n||e.open===n))}function vt(e,t){return Boolean(e&&"Operator"===e.type&&(!t||e.operator===t))}function xt(e,t){return Boolean(e&&"Quote"===e.type&&(null==t||e.single===t))}function wt(e){return Boolean(e&&"WhiteSpace"===e.type)}function kt(e){return vt(e,"equal")}function At(e){return Boolean(e&&"Repeater"===e.type)}function St(e){if(function(e){return"Literal"===e.type}(e)){const t=e.value.charCodeAt(0);return t>=65&&t<=90}return!1}function Ot(e){return"Literal"===e.type||"RepeaterNumber"===e.type||"RepeaterPlaceholder"===e.type}function Ct(e){return vt(e,"class")}function jt(e){return yt(e,"attribute",!0)}function Tt(e){return yt(e,"attribute",!1)}function _t(e){return yt(e,"expression",!0)}function Et(e){return yt(e,"group",!0)}function Pt(e){return!e.name&&!e.value&&!e.attributes}function $t(e){return vt(e,"child")}function Rt(e){return vt(e,"sibling")}function It(e){return vt(e,"climb")}function Mt(e){return vt(e,"close")}var Nt;function zt(e){return!!e.eat(Nt.Escape)&&(e.start=e.pos,e.eof()||e.pos++,!0)}function Ft(e,t){return function(e,t){const n=e.pos;if((t.expression||t.attribute)&&e.eat(Nt.Dollar)&&e.eat(Nt.CurlyBracketOpen)){let t;e.start=e.pos;let r="";if(e.eatWhile(Qe)?(t=Number(e.current()),r=e.eat(Nt.Colon)?Dt(e):""):Je(e.peek())&&(r=Dt(e)),e.eat(Nt.CurlyBracketClose))return{type:"Field",index:t,name:r,start:n,end:e.pos};throw e.error("Expecting }")}e.pos=n}(e,t)||function(e){const t=e.pos;if(e.eat(Nt.Dollar)&&e.eat(Nt.Hash))return{type:"RepeaterPlaceholder",value:void 0,start:t,end:e.pos};e.pos=t}(e)||function(e){const t=e.pos;if(e.eatWhile(Nt.Dollar)){const n=e.pos-t;let r=!1,o=1,i=0;if(e.eat(Nt.At)){for(;e.eat(Nt.Climb);)i++;r=e.eat(Nt.Dash),e.start=e.pos,e.eatWhile(Qe)&&(o=Number(e.current()))}return e.start=t,{type:"RepeaterNumber",size:n,reverse:r,base:o,parent:i,start:t,end:e.pos}}}(e)||function(e){const t=e.pos;if(e.eat(Nt.Asterisk)){e.start=e.pos;let n=1,r=!1;return e.eatWhile(Qe)?n=Number(e.current()):r=!0,{type:"Repeater",count:n,value:0,implicit:r,start:t,end:e.pos}}}(e)||function(e){const t=e.pos;if(e.eatWhile(Xe))return{type:"WhiteSpace",start:t,end:e.pos,value:e.substring(t,e.pos)}}(e)||function(e,t){const n=e.pos,r=t.expression;let o="";for(;!e.eof();){if(zt(e)){o+=e.current();continue}const n=e.peek();if(n===Nt.Slash&&!t.quote&&!t.expression&&!t.attribute){const t=e.string.charCodeAt(e.pos-1),n=e.string.charCodeAt(e.pos+1);if(Qe(t)&&Qe(n)){o+=e.string[e.pos++];continue}}if(n===t.quote||n===Nt.Dollar||Bt(n,t))break;if(r){if(n===Nt.CurlyBracketOpen)t.expression++;else if(n===Nt.CurlyBracketClose){if(!(t.expression>r))break;t.expression--}}else if(!t.quote){if(!t.attribute&&!Gt(n))break;if(Lt(n,t)||Ut(n,t)||Ye(n)||qt(n))break}o+=e.string[e.pos++]}if(n!==e.pos)return e.start=n,{type:"Literal",value:o,start:n,end:e.pos}}(e,t)||function(e){const t=Wt(e.peek());if(t)return{type:"Operator",operator:t,start:e.pos++,end:e.pos}}(e)||function(e){const t=e.peek();if(Ye(t))return{type:"Quote",single:t===Nt.SingleQuote,start:e.pos++,end:e.pos}}(e)||function(e){const t=e.peek(),n=qt(t);if(n)return{type:"Bracket",open:Vt(t),context:n,start:e.pos++,end:e.pos}}(e)}function Dt(e){const t=[];for(e.start=e.pos;!e.eof();)if(e.eat(Nt.CurlyBracketOpen))t.push(e.pos);else if(e.eat(Nt.CurlyBracketClose)){if(!t.length){e.pos--;break}t.pop()}else e.pos++;if(t.length)throw e.pos=t.pop(),e.error("Expecting }");return e.current()}function Bt(e,t){const n=Wt(e);return!(!n||t.quote||t.expression||t.attribute&&"equal"!==n)}function Lt(e,t){return Xe(e)&&!t.expression}function Ut(e,t){return e===Nt.Asterisk&&!t.attribute&&!t.expression}function qt(e){return e===Nt.RoundBracketOpen||e===Nt.RoundBracketClose?"group":e===Nt.SquareBracketOpen||e===Nt.SquareBracketClose?"attribute":e===Nt.CurlyBracketOpen||e===Nt.CurlyBracketClose?"expression":void 0}function Wt(e){return(e===Nt.Child?"child":e===Nt.Sibling&&"sibling")||e===Nt.Climb&&"climb"||e===Nt.Dot&&"class"||e===Nt.Hash&&"id"||e===Nt.Slash&&"close"||e===Nt.Equals&&"equal"||void 0}function Vt(e){return e===Nt.CurlyBracketOpen||e===Nt.SquareBracketOpen||e===Nt.RoundBracketOpen}function Gt(e){return Ke(e)||function(e){return 196===e||214==e||220===e||228===e||246===e||252===e}(e)||e===Nt.Dash||e===Nt.Colon||e===Nt.Excl}!function(e){e[e.CurlyBracketOpen=123]="CurlyBracketOpen",e[e.CurlyBracketClose=125]="CurlyBracketClose",e[e.Escape=92]="Escape",e[e.Equals=61]="Equals",e[e.SquareBracketOpen=91]="SquareBracketOpen",e[e.SquareBracketClose=93]="SquareBracketClose",e[e.Asterisk=42]="Asterisk",e[e.Hash=35]="Hash",e[e.Dollar=36]="Dollar",e[e.Dash=45]="Dash",e[e.Dot=46]="Dot",e[e.Slash=47]="Slash",e[e.Colon=58]="Colon",e[e.Excl=33]="Excl",e[e.At=64]="At",e[e.Underscore=95]="Underscore",e[e.RoundBracketOpen=40]="RoundBracketOpen",e[e.RoundBracketClose=41]="RoundBracketClose",e[e.Sibling=43]="Sibling",e[e.Child=62]="Child",e[e.Climb=94]="Climb",e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote"}(Nt||(Nt={}));const Ht={child:">",class:".",climb:"^",id:"#",equal:"=",close:"/",sibling:"+"},Qt={Literal:e=>e.value,Quote:e=>e.single?"'":'"',Bracket:e=>"attribute"===e.context?e.open?"[":"]":"expression"===e.context?e.open?"{":"}":e.open?"(":"}",Operator:e=>Ht[e.operator],Field:(e,t)=>null!=e.index?e.name?`\${${e.index}:${e.name}}`:`\${${e.index}`:e.name?t.getVariable(e.name):"",RepeaterPlaceholder(e,t){let n;for(let e=t.repeaters.length-1;e>=0;e--)if(t.repeaters[e].implicit){n=t.repeaters[e];break}return t.inserted=!0,t.getText(n&&n.value)},RepeaterNumber(e,t){let n=1;const r=t.repeaters.length-1,o=t.repeaters[r];if(o&&(n=e.reverse?e.base+o.count-o.value-1:e.base+o.value,e.parent)){const i=Math.max(0,r-e.parent);if(i!==r){const e=t.repeaters[i];n+=o.count*e.value}}let i=String(n);for(;i.length<e.size;)i="0"+i;return i},WhiteSpace:e=>e.value};function Jt(e,t){if(!Qt[e.type])throw new Error(`Unknown token ${e.type}`);return Qt[e.type](e,t)}const Kt=/^((https?:|ftp:|file:)?\/\/|(www|ftp)\.)[^ ]*$/,Zt=/^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,5}$/;function Xt(e,t){let n=[];if(e.repeat){const r=e.repeat,o=Object.assign({},r);let i;o.count=o.implicit&&Array.isArray(t.text)?t.cleanText.length:o.count||1,t.repeaters.push(o);for(let r=0;r<o.count;r++){if(o.value=r,e.repeat=o,i=on(e)?en(e,t):Yt(e,t),o.implicit&&!t.inserted){const e=an(i),n=e&&un(e);n&&cn(n,t.getText(o.value))}if(n=n.concat(i),--t.repeatGuard<=0)break}t.repeaters.pop(),e.repeat=r,o.implicit&&(t.inserted=!0)}else n=n.concat(on(e)?en(e,t):Yt(e,t));return n}function Yt(e,t){let n=[];const r={type:"AbbreviationNode",name:e.name&&nn(e.name,t),value:e.value&&rn(e.value,t),attributes:void 0,children:n,repeat:e.repeat&&Object.assign({},e.repeat),selfClosing:e.selfClose};let o=[r];for(const r of e.elements)n=n.concat(Xt(r,t));if(e.attributes){r.attributes=[];for(const n of e.attributes)r.attributes.push(tn(n,t))}return r.name||r.attributes||!r.value||r.value.some(sn)?r.children=n:o=o.concat(n),o}function en(e,t){let n=[];for(const r of e.elements)n=n.concat(Xt(r,t));return e.repeat&&(n=function(e,t){for(const n of e)n.repeat||(n.repeat=Object.assign({},t));return e}(n,e.repeat)),n}function tn(e,t){let n,r=!1,o=!1,i=e.expression?"expression":"raw";const s=e.name&&nn(e.name,t);if(s&&"!"===s[0]&&(r=!0),s&&"."===s[s.length-1]&&(o=!0),e.value){const r=e.value.slice();if(xt(r[0])){const e=r.shift();r.length&&an(r).type===e.type&&r.pop(),i=e.single?"singleQuote":"doubleQuote"}else yt(r[0],"expression",!0)&&(i="expression",r.shift(),yt(an(r),"expression",!1)&&r.pop());n=rn(r,t)}return{name:o||r?s.slice(r?1:0,o?-1:void 0):s,value:n,boolean:o,implied:r,valueType:i,multiple:e.multiple}}function nn(e,t){let n="";for(let r=0;r<e.length;r++)n+=Jt(e[r],t);return n}function rn(e,t){const n=[];let r="";for(let o,i=0;i<e.length;i++)o=e[i],sn(o)?(r&&(n.push(r),r=""),n.push(o)):r+=Jt(o,t);return r&&n.push(r),n}function on(e){return"TokenGroup"===e.type}function sn(e){return"object"==typeof e&&"Field"===e.type&&null!=e.index}function an(e){return e[e.length-1]}function un(e){return e.children.length?un(an(e.children)):e}function cn(e,t){e.value?"string"==typeof an(e.value)?e.value[e.value.length-1]+=t:e.value.push(t):e.value=[t]}function ln(e,t){try{return function(e,t={}){let n,r=!1;t.text&&(n=Array.isArray(t.text)?t.text.filter(e=>e.trim()):t.text);const o={type:"Abbreviation",children:en(e,{inserted:!1,repeaters:[],text:t.text,cleanText:n,repeatGuard:t.maxRepeat||Number.POSITIVE_INFINITY,getText(e){var o;let i;if(r=!0,Array.isArray(t.text)){if(void 0!==e&&e>=0&&e<n.length)return n[e];i=void 0!==e?t.text[e]:t.text.join("\n")}else i=null!==(o=t.text)&&void 0!==o?o:"";return i},getVariable(e){const n=t.variables&&t.variables[e];return null!=n?n:e}})};if(null!=t.text&&!r){const e=un(an(o.children));if(e){const n=Array.isArray(t.text)?t.text.join("\n"):t.text;cn(e,n),"a"===e.name&&t.href&&function(e,t){var n;let r="";Kt.test(t)?(r=t,/\w+:/.test(r)||r.startsWith("//")||(r=`http://${r}`)):Zt.test(t)&&(r=`mailto:${t}`);const o=null===(n=e.attributes)||void 0===n?void 0:n.find(e=>"href"===e.name);o?o.value||(o.value=[r]):(e.attributes||(e.attributes=[]),e.attributes.push({name:"href",value:[r],valueType:"doubleQuote"}))}(e,n)}}return o}(function(e,t={}){const n={tokens:r=e,start:0,pos:0,size:r.length};var r;const o=ut(n,t);if(it(n))throw at(n,"Unexpected character");return o}("string"==typeof e?function(e){const t=new et(e),n=[],r={group:0,attribute:0,expression:0,quote:0};let o,i=0;for(;!t.eof();){if(i=t.peek(),o=Ft(t,r),!o)throw t.error("Unexpected character");n.push(o),"Quote"===o.type?r.quote=i===r.quote?0:i:"Bracket"===o.type&&(r[o.context]+=o.open?1:-1)}return n}(e):e,t),t)}catch(t){throw t instanceof tt&&"string"==typeof e&&(t.message+=`\n${e}\n${"-".repeat(t.pos)}^`),t}}var fn,pn;function dn(e,t){return function(e){const t=e.pos;if(e.eat(pn.Dollar)&&e.eat(pn.CurlyBracketOpen)){let n;e.start=e.pos;let r="";if(e.eatWhile(Qe)?(n=Number(e.current()),r=e.eat(pn.Colon)?mn(e):""):Je(e.peek())&&(r=mn(e)),e.eat(pn.CurlyBracketClose))return{type:"Field",index:n,name:r,start:t,end:e.pos};throw e.error("Expecting }")}e.pos=t}(e)||function(e){const t=e.pos;if(e.eat(pn.Dash)&&e.eat(pn.Dash))return e.start=t,e.eatWhile(xn),{type:"CustomProperty",value:e.current(),start:t,end:e.pos};e.pos=t}(e)||function(e){const t=e.pos;if(function(e){const t=e.pos;e.eat(pn.Dash);const n=e.pos,r=e.eatWhile(Qe),o=e.pos;if(e.eat(pn.Dot)){const t=e.eatWhile(Qe);r||t||(e.pos=o)}return e.pos===n&&(e.pos=t),e.pos!==t}(e)){e.start=t;const n=e.current();return e.start=e.pos,e.eat(pn.Percent)||e.eatWhile(Ze),{type:"NumberValue",value:Number(n),rawValue:n,unit:e.current(),start:t,end:e.pos}}}(e)||function(e){const t=e.pos;if(e.eat(pn.Hash)){const n=e.pos;let r="",o="";if(e.eatWhile(vn)?(r=e.substring(n,e.pos),o=gn(e)):e.eat(pn.Transparent)?(r="0",o=gn(e)||"0"):o=gn(e),r||o||e.eof()){const{r:n,g:i,b:s,a}=function(e,t){let n="0",r="0",o="0",i=Number(null!=t&&""!==t?t:1);if("t"===e)i=0;else switch(e.length){case 0:break;case 1:n=r=o=e+e;break;case 2:n=r=o=e;break;case 3:n=e[0]+e[0],r=e[1]+e[1],o=e[2]+e[2];break;default:n=(e+=e).slice(0,2),r=e.slice(2,4),o=e.slice(4,6)}return{r:parseInt(n,16),g:parseInt(r,16),b:parseInt(o,16),a:i}}(r,o);return{type:"ColorValue",r:n,g:i,b:s,a,raw:e.substring(t+1,e.pos),start:t,end:e.pos}}return hn(e,t)}e.pos=t}(e)||function(e){const t=e.peek(),n=e.pos;let r=!1;if(Ye(t)){for(e.pos++;!e.eof();){if(e.eat(t)){r=!0;break}e.pos++}return e.start=n,{type:"StringValue",value:e.substring(n+1,e.pos-(r?1:0)),quote:t===pn.SingleQuote?"single":"double",start:n,end:e.pos}}}(e)||function(e){const t=e.peek();if(function(e){return e===pn.RoundBracketOpen||e===pn.RoundBracketClose}(t))return{type:"Bracket",open:t===pn.RoundBracketOpen,start:e.pos++,end:e.pos}}(e)||bn(e)||function(e){const t=e.pos;if(e.eatWhile(Xe))return{type:"WhiteSpace",start:t,end:e.pos}}(e)||function(e,t){const n=e.pos;if(e.eat(yn)?e.eatWhile(n?xn:wn):e.eat(Ze)?e.eatWhile(t?wn:xn):(e.eat(pn.Dot),e.eatWhile(wn)),n!==e.pos)return e.start=n,hn(e,e.start=n)}(e,t)}function mn(e){const t=[];for(e.start=e.pos;!e.eof();)if(e.eat(pn.CurlyBracketOpen))t.push(e.pos);else if(e.eat(pn.CurlyBracketClose)){if(!t.length){e.pos--;break}t.pop()}else e.pos++;if(t.length)throw e.pos=t.pop(),e.error("Expecting }");return e.current()}function hn(e,t=e.start,n=e.pos){return{type:"Literal",value:e.substring(t,n),start:t,end:n}}function gn(e){const t=e.pos;return e.eat(pn.Dot)?(e.start=t,e.eatWhile(Qe)?e.current():"1"):""}function bn(e){const t=(n=e.peek())===pn.Sibling&&fn.Sibling||n===pn.Excl&&fn.Important||n===pn.Comma&&fn.ArgumentDelimiter||n===pn.Colon&&fn.PropertyDelimiter||n===pn.Dash&&fn.ValueDelimiter||void 0;var n;if(t)return{type:"Operator",operator:t,start:e.pos++,end:e.pos}}function yn(e){return e===pn.At||e===pn.Dollar}function vn(e){return Qe(e)||Je(e,65,70)}function xn(e){return Ke(e)||e===pn.Dash}function wn(e){return Ze(e)||e===pn.Percent||e===pn.Slash}function kn(e){return"ColorValue"===e.type||"NumberValue"===e.type&&!e.unit}function An(e,t){let n=0,r=0;for(;t.length;){const e=Sn(t);if("Literal"!==e.type&&"NumberValue"!==e.type)break;n=e.start,r||(r=e.end),t.pop()}n!==r&&t.push(hn(e,n,r))}function Sn(e){return e[e.length-1]}function On(e){return e.tokens[e.pos]}function Cn(e){return e.pos<e.size}function jn(e,t){return!!t(On(e))&&(e.pos++,!0)}function Tn(e,t,n=On(e)){n&&null!=n.start&&(t+=` at ${n.start}`);const r=new Error(t);return r.pos=n&&n.start,r}function _n(e,t){let n,r,o=!1;const i=[],s=On(e),a=!!t.value;for(a||!$n(s)||function(e){const t=e.tokens[e.pos],n=e.tokens[e.pos+1];return t&&n&&$n(t)&&"Bracket"===n.type}(e)||(e.pos++,n=s.value,jn(e,qn)),a&&jn(e,Nn);Cn(e);)if(jn(e,Ln))o=!0;else if(r=En(e,a))i.push(r);else if(!jn(e,Bn))break;if(n||i.length||o)return{name:n,value:i,important:o}}function En(e,t){const n=[];let r,o;for(;Cn(e);)if(r=On(e),Un(r))e.pos++,$n(r)&&(o=Pn(e))?n.push({type:"FunctionCall",name:r.value,arguments:o}):n.push(r);else{if(!(qn(r)||t&&Nn(r)))break;e.pos++}return n.length?{type:"CSSValue",value:n}:void 0}function Pn(e){const t=e.pos;if(jn(e,In)){const n=[];let r;for(;Cn(e)&&!jn(e,Mn);)if(r=En(e,!0))n.push(r);else if(!jn(e,Nn)&&!jn(e,Dn))throw Tn(e,"Unexpected token");return e.start=t,n}}function $n(e){return e&&"Literal"===e.type}function Rn(e,t){return e&&"Bracket"===e.type&&(null==t||e.open===t)}function In(e){return Rn(e,!0)}function Mn(e){return Rn(e,!1)}function Nn(e){return e&&"WhiteSpace"===e.type}function zn(e,t){return e&&"Operator"===e.type&&(!t||e.operator===t)}function Fn(e){return zn(e,fn.Sibling)}function Dn(e){return zn(e,fn.ArgumentDelimiter)}function Bn(e){return Dn(e)}function Ln(e){return zn(e,fn.Important)}function Un(e){return"StringValue"===e.type||"ColorValue"===e.type||"NumberValue"===e.type||"Literal"===e.type||"Field"===e.type||"CustomProperty"===e.type}function qn(e){return zn(e,fn.PropertyDelimiter)||zn(e,fn.ValueDelimiter)}function Wn(e,t){try{const n="string"==typeof e?function(e,t){let n,r=0;const o=new et(e),i=[];for(;!o.eof();){if(n=dn(o,0===r&&!t),!n)throw o.error("Unexpected character");if("Bracket"===n.type&&(!r&&n.open&&An(o,i),r+=n.open?1:-1,r<0))throw o.error("Unexpected bracket",n.start);i.push(n),kn(n)&&(n=bn(o))&&i.push(n)}return i}(e,t&&t.value):e;return function(e,t={}){const n=function(e){return{tokens:e,start:0,pos:0,size:e.length}}(e),r=[];let o;for(;Cn(n);)if(o=_n(n,t))r.push(o);else if(!jn(n,Fn))throw Tn(n,"Unexpected token");return r}(n,t)}catch(t){throw t instanceof tt&&"string"==typeof e&&(t.message+=`\n${e}\n${"-".repeat(t.pos)}^`),t}}function Vn(e,t,n){if(e&&t){e.length&&n&&Hn(e,n);for(const n of t)Hn(e,n);return e}const r=e||t;return r&&r.slice()}function Gn(e,t,n){return e.name=t.name,n.options["output.reverseAttributes"]||(e.value=t.value),e.implied||(e.implied=t.implied),e.boolean||(e.boolean=t.boolean),"expression"!==e.valueType&&(e.valueType=t.valueType),e}function Hn(e,t){const n=e.length-1;"string"==typeof e[n]&&"string"==typeof t?e[n]+=t:e.push(t)}function Qn(e,t){for(let n=0;n<e.children.length;n++){const r=e.children[n];if(t(r))return r;const o=Qn(r,t);if(o)return o}}function Jn(e){let t;for(;e.children.length;)t=e,e=e.children[e.children.length-1];return{parent:t,node:e}}function Kn(e){return"AbbreviationNode"===e.type}function Zn(e,t,n){let r=[];for(const n of e.children){const e=t(n);if(e){r=r.concat(e.children);const o=Jn(e);Kn(o.node)&&(o.node.children=o.node.children.concat(Zn(n,t)))}else r.push(n),n.children=Zn(n,t)}return e.children=r}function Xn(e,t){e.selfClosing&&(t.selfClosing=!0),null!=e.value&&(t.value=e.value),e.repeat&&(t.repeat=e.repeat)}!function(e){e.Sibling="+",e.Important="!",e.ArgumentDelimiter=",",e.ValueDelimiter="-",e.PropertyDelimiter=":"}(fn||(fn={})),function(e){e[e.Hash=35]="Hash",e[e.Dollar=36]="Dollar",e[e.Dash=45]="Dash",e[e.Dot=46]="Dot",e[e.Colon=58]="Colon",e[e.Comma=44]="Comma",e[e.Excl=33]="Excl",e[e.At=64]="At",e[e.Percent=37]="Percent",e[e.Underscore=95]="Underscore",e[e.RoundBracketOpen=40]="RoundBracketOpen",e[e.RoundBracketClose=41]="RoundBracketClose",e[e.CurlyBracketOpen=123]="CurlyBracketOpen",e[e.CurlyBracketClose=125]="CurlyBracketClose",e[e.Sibling=43]="Sibling",e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote",e[e.Transparent=116]="Transparent",e[e.Slash=47]="Slash"}(pn||(pn={}));const Yn="{",er="}";function tr(e,t=0){return{options:e,value:"",level:t,offset:0,line:0,column:0}}function nr(e,t){lr(e,(0,e.options["output.text"])(t,e.offset,e.line,e.column))}function rr(e,t){const n=t.split(/\r\n|\r|\n/g);for(let t=0,r=n.length-1;t<=r;t++)nr(e,n[t]),t!==r&&or(e,!0)}function or(e,t){const n=e.options["output.baseIndent"];nr(e,e.options["output.newline"]+n),e.line++,e.column=n.length,t&&function(e,t=e.level){nr(e,e.options["output.indent"].repeat(Math.max(t,0)))}(e,!0===t?e.level:t)}function ir(e,t,n){lr(e,(0,e.options["output.field"])(t,n,e.offset,e.line,e.column))}function sr(e,t){return fr(e,t.options["output.attributeCase"])}function ar(e,t,n){return"expression"===e.valueType?n?Yn:er:"single"===t.options["output.attributeQuotes"]?"'":'"'}function ur(e,t){return e.boolean||t.options["output.booleanAttributes"].includes((e.name||"").toLowerCase())}function cr(e,t){return"string"==typeof e?t.options.inlineElements.includes(e.toLowerCase()):e.name?cr(e.name,t):Boolean(e.value&&!e.attributes)}function lr(e,t){e.value+=t,e.offset+=t.length,e.column+=t.length}function fr(e,t){return t?"upper"===t?e.toUpperCase():e.toLowerCase():e}const pr={p:"span",ul:"li",ol:"li",table:"tr",tr:"td",tbody:"tr",thead:"tr",tfoot:"tr",colgroup:"col",select:"option",optgroup:"option",audio:"source",video:"source",object:"param",map:"area"};function dr(e,t,n){const r=function(e){for(let t=e.length-1;t>=0;t--){const n=e[t];if(Kn(n))return n}}(t),o=n.context?n.context.name:"",i=((r?r.name:o)||"").toLowerCase();e.name=pr[i]||(cr(i,n)?"span":"div")}const mr={ru:{common:["далеко-далеко","за","словесными","горами","в стране","гласных","и согласных","живут","рыбные","тексты"],words:["вдали","от всех","они","буквенных","домах","на берегу","семантика","большого","языкового","океана","маленький","ручеек","даль","журчит","по всей","обеспечивает","ее","всеми","необходимыми","правилами","эта","парадигматическая","страна","которой","жаренные","предложения","залетают","прямо","рот","даже","всемогущая","пунктуация","не","имеет","власти","над","рыбными","текстами","ведущими","безорфографичный","образ","жизни","однажды","одна","маленькая","строчка","рыбного","текста","имени","lorem","ipsum","решила","выйти","большой","мир","грамматики","великий","оксмокс","предупреждал","о","злых","запятых","диких","знаках","вопроса","коварных","точках","запятой","но","текст","дал","сбить","себя","толку","он","собрал","семь","своих","заглавных","букв","подпоясал","инициал","за","пояс","пустился","дорогу","взобравшись","первую","вершину","курсивных","гор","бросил","последний","взгляд","назад","силуэт","своего","родного","города","буквоград","заголовок","деревни","алфавит","подзаголовок","своего","переулка","грустный","реторический","вопрос","скатился","его","щеке","продолжил","свой","путь","дороге","встретил","рукопись","она","предупредила","моей","все","переписывается","несколько","раз","единственное","что","меня","осталось","это","приставка","возвращайся","ты","лучше","свою","безопасную","страну","послушавшись","рукописи","наш","продолжил","свой","путь","вскоре","ему","повстречался","коварный","составитель","рекламных","текстов","напоивший","языком","речью","заманивший","свое","агентство","которое","использовало","снова","снова","своих","проектах","если","переписали","то","живет","там","до","сих","пор"]},sp:{common:["mujer","uno","dolor","más","de","poder","mismo","si"],words:["ejercicio","preferencia","perspicacia","laboral","paño","suntuoso","molde","namibia","planeador","mirar","demás","oficinista","excepción","odio","consecuencia","casi","auto","chicharra","velo","elixir","ataque","no","odio","temporal","cuórum","dignísimo","facilismo","letra","nihilista","expedición","alma","alveolar","aparte","león","animal","como","paria","belleza","modo","natividad","justo","ataque","séquito","pillo","sed","ex","y","voluminoso","temporalidad","verdades","racional","asunción","incidente","marejada","placenta","amanecer","fuga","previsor","presentación","lejos","necesariamente","sospechoso","adiposidad","quindío","pócima","voluble","débito","sintió","accesorio","falda","sapiencia","volutas","queso","permacultura","laudo","soluciones","entero","pan","litro","tonelada","culpa","libertario","mosca","dictado","reincidente","nascimiento","dolor","escolar","impedimento","mínima","mayores","repugnante","dulce","obcecado","montaña","enigma","total","deletéreo","décima","cábala","fotografía","dolores","molesto","olvido","paciencia","resiliencia","voluntad","molestias","magnífico","distinción","ovni","marejada","cerro","torre","y","abogada","manantial","corporal","agua","crepúsculo","ataque","desierto","laboriosamente","angustia","afortunado","alma","encefalograma","materialidad","cosas","o","renuncia","error","menos","conejo","abadía","analfabeto","remo","fugacidad","oficio","en","almácigo","vos","pan","represión","números","triste","refugiado","trote","inventor","corchea","repelente","magma","recusado","patrón","explícito","paloma","síndrome","inmune","autoinmune","comodidad","ley","vietnamita","demonio","tasmania","repeler","apéndice","arquitecto","columna","yugo","computador","mula","a","propósito","fantasía","alias","rayo","tenedor","deleznable","ventana","cara","anemia","corrupto"]},latin:{common:["lorem","ipsum","dolor","sit","amet","consectetur","adipisicing","elit"],words:["exercitationem","perferendis","perspiciatis","laborum","eveniet","sunt","iure","nam","nobis","eum","cum","officiis","excepturi","odio","consectetur","quasi","aut","quisquam","vel","eligendi","itaque","non","odit","tempore","quaerat","dignissimos","facilis","neque","nihil","expedita","vitae","vero","ipsum","nisi","animi","cumque","pariatur","velit","modi","natus","iusto","eaque","sequi","illo","sed","ex","et","voluptatibus","tempora","veritatis","ratione","assumenda","incidunt","nostrum","placeat","aliquid","fuga","provident","praesentium","rem","necessitatibus","suscipit","adipisci","quidem","possimus","voluptas","debitis","sint","accusantium","unde","sapiente","voluptate","qui","aspernatur","laudantium","soluta","amet","quo","aliquam","saepe","culpa","libero","ipsa","dicta","reiciendis","nesciunt","doloribus","autem","impedit","minima","maiores","repudiandae","ipsam","obcaecati","ullam","enim","totam","delectus","ducimus","quis","voluptates","dolores","molestiae","harum","dolorem","quia","voluptatem","molestias","magni","distinctio","omnis","illum","dolorum","voluptatum","ea","quas","quam","corporis","quae","blanditiis","atque","deserunt","laboriosam","earum","consequuntur","hic","cupiditate","quibusdam","accusamus","ut","rerum","error","minus","eius","ab","ad","nemo","fugit","officia","at","in","id","quos","reprehenderit","numquam","iste","fugiat","sit","inventore","beatae","repellendus","magnam","recusandae","quod","explicabo","doloremque","aperiam","consequatur","asperiores","commodi","optio","dolor","labore","temporibus","repellat","veniam","architecto","est","esse","mollitia","nulla","a","similique","eos","alias","dolore","tenetur","deleniti","porro","facere","maxime","corrupti"]}},hr=/^lorem([a-z]*)(\d*)(-\d*)?$/i;function gr(e,t){return Math.floor(Math.random()*(t-e)+e)}function br(e,t){const n=e.length,r=Math.min(n,t),o=[];for(;o.length<r;){const t=e[gr(0,n)];o.includes(t)||o.push(t)}return o}function yr(e,t){var n;return e.length&&(e=[(n=e[0],n[0].toUpperCase()+n.slice(1))].concat(e.slice(1))),e.join(" ")+(t||"?!..."[gr(0,4)])}function vr(e){if(e.length<2)return e;const t=(e=e.slice()).length,n=/,$/;let r=0;r=t>3&&t<=6?gr(0,1):t>6&&t<=12?gr(0,2):gr(1,4);for(let o,i=0;i<r;i++)o=gr(0,t-2),n.test(e[o])||(e[o]+=",");return e}function xr(e,t,n){const r=[];let o,i=0;for(n&&e.common&&(o=e.common.slice(0,t),i+=o.length,r.push(yr(vr(o),".")));i<t;)o=br(e.words,Math.min(gr(2,30),t-i)),i+=o.length,r.push(yr(vr(o)));return r.join(" ")}function wr(e){return"select"!==e.name}const kr=/^(-+)([a-z0-9]+[a-z0-9-]*)/i,Ar=/^(_+)([a-z0-9]+[a-z0-9-_]*)/i,Sr=e=>/^[a-z]\-/i.test(e),Or=e=>/^[a-z]/i.test(e);function Cr(e){if(!e._bem){let t="";if(e.attributes)for(const n of e.attributes)if("class"===n.name&&n.value){t=$r(n.value);break}e._bem=jr(t)}return e._bem}function jr(e){const t=e?e.split(/\s+/):[];return{classNames:t,block:_r(t)}}function Tr(e,t=0,n){let r=Math.max(e.length-t,0);do{const t=e[r];if(t){const e=Cr(t);if(e.block)return e.block}}while(0<r--);if(n){const e=function(e){return e._bem||(e._bem=jr(e.attributes&&e.attributes.class||"")),e._bem}(n);if(e.block)return e.block}return""}function _r(e){return Er(e,Sr)||Er(e,Or)||void 0}function Er(e,t){for(const n of e){if(kr.test(n)||Ar.test(n))break;if(t(n))return n}}function Pr(e,t){for(const n of e.attributes)if("class"===n.name){n.value=[t];break}}function $r(e){let t="";for(const n of e)t+="string"==typeof n?n:n.name;return t}function Rr(e,t,n){return!!e&&n.indexOf(e)===t}function Ir(e){if("label"===e.name){const t=Qn(e,e=>"input"===e.name||"textarea"===e.name);t&&(e.attributes&&(e.attributes=e.attributes.filter(e=>!("for"===e.name&&Mr(e)))),t.attributes&&(t.attributes=t.attributes.filter(e=>!("id"===e.name&&Mr(e)))))}}function Mr(e){if(!e.value)return!0;if(1===e.value.length){const t=e.value[0];if(t&&"string"!=typeof t&&!t.name)return!0}return!1}function Nr(e,t,n){const r=(e,r,i)=>{const{parent:s,current:a}=n;n.parent=a,n.current=e,t(e,r,i,n,o),n.current=a,n.parent=s},o=(e,t,o)=>{n.ancestors.push(n.current),r(e,t,o),n.ancestors.pop()};e.children.forEach(r)}function zr(e){return{current:null,parent:void 0,ancestors:[],config:e,field:1,out:tr(e.options)}}const Fr=[{type:"Field",index:0,name:""}];function Dr(e){return!!e&&!e.name&&!e.attributes}function Br(e,t){return!!e&&cr(e,t)}function Lr(e){return"object"==typeof e&&"Field"===e.type}function Ur(e,t){const{out:n}=t;let r=-1;for(const o of e)"string"==typeof o?rr(n,o):(ir(n,t.field+o.index,o.name),o.index>r&&(r=o.index));-1!==r&&(t.field+=r+1)}function qr(e){return!e.implied||"raw"!==e.valueType||!!e.value&&e.value.length>0}var Wr;function Vr(e){const t=[],n={pos:0,text:e};let r,o=n.pos,i=n.pos;for(;n.pos<n.text.length;)i=n.pos,(r=Gr(n))?(o!==n.pos&&t.push(e.slice(o,i)),t.push(r),o=n.pos):n.pos++;return o!==n.pos&&t.push(e.slice(o)),t}function Gr(e){if(Hr(e)===Wr.Start){const t=++e.pos;let n=t,r=t,o=1;for(;e.pos<e.text.length;){const i=Hr(e);if(Qr(i)){for(n=e.pos;Jr(Hr(e));)e.pos++;r=e.pos}else{if(i===Wr.Start)o++;else if(i===Wr.End&&0===--o)return{before:e.text.slice(t,n),after:e.text.slice(r,e.pos++),name:e.text.slice(n,r)};e.pos++}}}}function Hr(e,t=e.pos){return e.text.charCodeAt(t)}function Qr(e){return e>=65&&e<=90}function Jr(e){return Qr(e)||e>47&&e<58||e===Wr.Underscore||e===Wr.Dash}function Kr(e,t){const{comment:n}=t;if(!(n.enabled&&n.trigger&&e.name&&e.attributes))return!1;for(const t of e.attributes)if(t.name&&n.trigger.includes(t.name))return!0;return!1}function Zr(e,t,n){const r={},{out:o}=n;for(const t of e.attributes)t.name&&t.value&&(r[t.name.toUpperCase()]=t.value);for(const e of t)"string"==typeof e?rr(o,e):r[e.name]&&(rr(o,e.before),Ur(r[e.name],n),rr(o,e.after))}!function(e){e[e.Start=91]="Start",e[e.End=93]="End",e[e.Underscore=95]="Underscore",e[e.Dash=45]="Dash"}(Wr||(Wr={}));const Xr=/^<([\w\-:]+)[\s>]/,Yr=new Set(["for","while","of","async","await","const","let","var","continue","break","debugger","do","export","import","in","instanceof","new","return","switch","this","throw","try","catch","typeof","void","with","yield"]);function eo(e,t){const n=zr(t);return n.comment=function(e){const{options:t}=e;return{enabled:t["comment.enabled"],trigger:t["comment.trigger"],before:t["comment.before"]?Vr(t["comment.before"]):void 0,after:t["comment.after"]?Vr(t["comment.after"]):void 0}}(t),Nr(e,to,n),n.out.value}function to(e,t,n,r,o){const{out:i,config:s}=r,a=oo(e,t,n,r),u=function(e){const{config:t,parent:n}=e;return!n||Dr(n)||n.name&&t.options["output.formatSkip"].includes(n.name)?0:1}(r);if(i.level+=u,a&&or(i,!0),e.name){const t=function(e,t){return fr(e,t.options["output.tagCase"])}(e.name,s);if(function(e,t){Kr(e,t)&&t.comment.before&&Zr(e,t.comment.before,t)}(e,r),rr(i,`<${t}`),e.attributes)for(const t of e.attributes)qr(t)&&no(t,r);if(!e.selfClosing||e.children.length||e.value){if(rr(i,">"),!ro(e,r,o)){if(e.value){const t=e.value.some(io)||function(e,t){if(e.length&&"string"==typeof e[0]){const n=Xr.exec(e[0]);if((null==n?void 0:n.length)&&!t.options.inlineElements.includes(n[1].toLowerCase()))return!0}return!1}(e.value,s);t&&or(r.out,++i.level),Ur(e.value,r),t&&or(r.out,--i.level)}if(e.children.forEach(o),!e.value&&!e.children.length){const t=s.options["output.formatLeafNode"]||s.options["output.formatForce"].includes(e.name);t&&or(r.out,++i.level),Ur(Fr,r),t&&or(r.out,--i.level)}}rr(i,`</${t}>`),function(e,t){Kr(e,t)&&t.comment.after&&Zr(e,t.comment.after,t)}(e,r)}else rr(i,`${function(e){switch(e.options["output.selfClosingStyle"]){case"xhtml":return" /";case"xml":return"/";default:return""}}(s)}>`)}else!ro(e,r,o)&&e.value&&(Ur(e.value,r),e.children.forEach(o));if(a&&t===n.length-1&&r.parent){const e=Dr(r.parent)?0:1;or(i,i.level-e)}i.level-=u}function no(e,t){const{out:n,config:r}=t;if(e.name){const o=r.options["markup.attributes"],i=r.options["markup.valuePrefix"];let{name:s,value:a}=e,u=ar(e,r,!0),c=ar(e,r);o&&(s=so(s,o,e.multiple)||s),s=sr(s,r),r.options["jsx.enabled"]&&e.multiple&&(u=Yn,c=er);const l=i?so(e.name,i,e.multiple):null;if(l&&1===(null==a?void 0:a.length)&&"string"==typeof a[0]){const e=a[0];a=[ao(e)?`${l}.${e}`:`${l}['${e}']`],r.options["jsx.enabled"]&&(u=Yn,c=er)}ur(e,r)&&!a?r.options["output.compactBoolean"]||(a=[s]):a||(a=Fr),rr(n," "+s),a?(rr(n,"="+u),Ur(a,t),rr(n,c)):"html"!==r.options["output.selfClosingStyle"]&&rr(n,"="+u+c)}}function ro(e,t,n){if(e.value&&e.children.length){const r=e.value.findIndex(Lr);if(-1!==r){Ur(e.value.slice(0,r),t);const o=t.out.line;let i=r+1;return e.children.forEach(n),t.out.line!==o&&"string"==typeof e.value[i]&&rr(t.out,e.value[i++].trimLeft()),Ur(e.value.slice(i),t),!0}}return!1}function oo(e,t,n,r){const{config:o,parent:i}=r;if(!o.options["output.format"])return!1;if(0===t&&!i)return!1;if(i&&Dr(i)&&1===n.length)return!1;if(Dr(e)&&(Dr(n[t-1])||Dr(n[t+1])||e.value.some(io)||e.value.some(Lr)&&e.children.length))return!0;if(cr(e,o)){if(0===t){for(let e=0;e<n.length;e++)if(!cr(n[e],o))return!0}else if(!cr(n[t-1],o))return!0;if(o.options["output.inlineBreak"]){let e=1,r=t,i=t;for(;Br(n[--r],o);)e++;for(;Br(n[++i],o);)e++;if(e>=o.options["output.inlineBreak"])return!0}for(let t=0,n=e.children.length;t<n;t++)if(oo(e.children[t],t,e.children,r))return!0;return!1}return!0}function io(e){return"string"==typeof e&&/\r|\n/.test(e)}function so(e,t,n){return n&&t[`${e}*`]||t[e]}function ao(e){return!Yr.has(e)&&/^[a-zA-Z_$][\w_$]*$/.test(e)}function uo(e,t,n){const r=zr(t);return r.options=n||{},Nr(e,co,r),r.out.value}function co(e,t,n,r,o){const{out:i,options:s}=r,{primary:a,secondary:u}=function(e){const t=[],n=[];if(e.attributes)for(const r of e.attributes)lo(r)?t.push(r):n.push(r);return{primary:t,secondary:n}}(e),c=r.parent?1:0;i.level+=c,function(e,t,n,r){return!(!r.parent&&0===t)&&!Dr(e)}(e,t,0,r)&&or(i,!0),!e.name||"div"===e.name&&a.length||rr(i,(s.beforeName||"")+e.name+(s.afterName||"")),function(e,t){for(const n of e)n.value&&("class"===n.name?(rr(t.out,"."),Ur(n.value.map(e=>"string"==typeof e?e.replace(/\s+/g,"."):e),t)):(rr(t.out,"#"),Ur(n.value,t)))}(a,r),function(e,t){if(e.length){const{out:n,config:r,options:o}=t;o.beforeAttribute&&rr(n,o.beforeAttribute);for(let i=0;i<e.length;i++){const s=e[i];rr(n,sr(s.name||"",r)),ur(s,r)&&!s.value?!r.options["output.compactBoolean"]&&o.booleanValue&&rr(n,"="+o.booleanValue):(rr(n,"="+ar(s,r,!0)),Ur(s.value||Fr,t),rr(n,ar(s,r))),i!==e.length-1&&o.glueAttribute&&rr(n,o.glueAttribute)}o.afterAttribute&&rr(n,o.afterAttribute)}}(u.filter(qr),r),!e.selfClosing||e.value||e.children.length?(function(e,t){if(!e.value&&e.children.length)return;const n=e.value||Fr,r=function(e){const t=[];let n=[];for(const r of e)if("string"==typeof r){const e=r.split(/\r\n?|\n/g);for(n.push(e.shift()||"");e.length;)t.push(n),n=[e.shift()||""]}else n.push(r);return n.length&&t.push(n),t}(n),{out:o,options:i}=t;if(1===r.length)(e.name||e.attributes)&&nr(o," "),Ur(n,t);else{const e=[];let n=0;for(const t of r){const r=fo(t);e.push(r),r>n&&(n=r)}o.level++;for(let s=0;s<r.length;s++)or(o,!0),i.beforeTextLine&&nr(o,i.beforeTextLine),Ur(r[s],t),i.afterTextLine&&(nr(o," ".repeat(n-e[s])),nr(o,i.afterTextLine));o.level--}}(e,r),e.children.forEach(o)):r.options.selfClose&&rr(i,r.options.selfClose),i.level-=c}function lo(e){return"class"===e.name||"id"===e.name}function fo(e){let t=0;for(const n of e)t+="string"==typeof n?n.length:n.name.length;return t}const po={html:eo,haml:function(e,t){return uo(e,t,{beforeName:"%",beforeAttribute:"(",afterAttribute:")",glueAttribute:" ",afterTextLine:" |",booleanValue:"true",selfClose:"/"})},slim:function(e,t){return uo(e,t,{beforeAttribute:" ",glueAttribute:" ",beforeTextLine:"| ",selfClose:"/"})},pug:function(e,t){return uo(e,t,{beforeAttribute:"(",afterAttribute:")",glueAttribute:", ",beforeTextLine:"| ",selfClose:"xml"===t.options["output.selfClosingStyle"]?"/":""})}};function mo(e,t){let n;if("string"==typeof e){const r=Object.assign({},t);t.options["jsx.enabled"]&&(r.jsx=!0),t.options["markup.href"]&&(r.href=!0),e=ln(e,r),n=t.text,t.text=void 0}return e=function(e,t){const n=[],r=t.options["output.reverseAttributes"],{warn:o}=t,i=e=>{const s=e.name&&t.snippets[e.name];if(!s||n.includes(s))return null;let a;try{a=ln(s,t)}catch(e){return null==o||o(`Unable to parse "${s}" snippet`,e),null}n.push(s),Zn(a,i),n.pop();for(const t of a.children){if(e.attributes){const n=t.attributes||[],o=e.attributes||[];t.attributes=r?o.concat(n):n.concat(o)}Xn(e,t)}return a};return Zn(e,i),e}(e,t),function(e,t,n){const r=[e],o=e=>{t(e,r,n),r.push(e),e.children.forEach(o),r.pop()};e.children.forEach(o)}(e,go,t),t.text=null!=n?n:t.text,e}function ho(e,t){return(po[t.syntax]||eo)(e,t)}function go(e,t,n){!function(e,t,n){!e.name&&e.attributes&&dr(e,t,n)}(e,t,n),function(e,t){if(!e.attributes)return;const n=[],r={};for(const o of e.attributes)if(o.name){const e=o.name;if(e in r){const n=r[e];"class"===e?n.value=Vn(n.value,o.value," "):Gn(n,o,t)}else n.push(r[e]=Object.assign({},o))}else n.push(o);e.attributes=n}(e,n),function(e,t,n){let r;if(e.name&&(r=e.name.match(hr))){const o=mr[r[1]]||mr.latin,i=r[2]?Math.max(1,Number(r[2])):30,s=gr(i,r[3]?Math.max(i,Number(r[3].slice(1))):i),a=e.repeat||function(e){for(let t=e.length-1;t>=0;t--){const n=e[t];if("AbbreviationNode"===n.type&&n.repeat)return n.repeat}}(t);e.name=e.attributes=void 0,e.value=[xr(o,s,!a||0===a.value)],e.repeat&&t.length>1&&dr(e,t,n)}}(e,t,n),"xsl"===n.syntax&&function(e){var t;"xsl:variable"!==(t=e.name)&&"xsl:with-param"!==t||!e.attributes||!e.children.length&&!e.value||(e.attributes=e.attributes.filter(wr))}(e),"markup"===n.type&&Ir(e),n.options["bem.enabled"]&&function(e,t,n){!function(e){const t=Cr(e),n=[];for(const e of t.classNames){const t=e.indexOf("_");t>0&&!e.startsWith("-")?(n.push(e.slice(0,t)),n.push(e.slice(t))):n.push(e)}n.length&&(t.classNames=n.filter(Rr),t.block=_r(t.classNames),Pr(e,t.classNames.join(" ")))}(e),function(e,t,n){const r=Cr(e),o=[],{options:i}=n,s=t.slice(1).concat(e);for(let e of r.classNames){let t,r="";const a=e;(t=e.match(kr))&&(r=Tr(s,t[1].length,n.context)+i["bem.element"]+t[2],o.push(r),e=e.slice(t[0].length)),(t=e.match(Ar))&&(r||(r=Tr(s,t[1].length),o.push(r)),o.push(`${r}${i["bem.modifier"]}${t[2]}`),e=e.slice(t[0].length)),e===a&&o.push(a)}const a=o.filter(Rr);a.length&&Pr(e,a.join(" "))}(e,t,n)}(e,t,n)}var bo;!function(e){e.Raw="Raw",e.Property="Property"}(bo||(bo={}));const yo=/^([a-z-]+)(?:\s*:\s*([^\n\r;]+?);*)?$/,vo={value:!0};function xo(e,t){const n=t.match(yo);if(n){const t={},r=n[2]?n[2].split("|").map(ko):[];for(const e of r)for(const n of e)So(n,t);return{type:bo.Property,key:e,property:n[1],value:r,keywords:t,dependencies:[]}}return{type:bo.Raw,key:e,value:t}}function wo(e,t){return e.key===t.key?0:e.key<t.key?-1:1}function ko(e){return Wn(e.trim(),vo)[0].value}function Ao(e){return e.type===bo.Property}function So(e,t){for(const n of e.value)if("Literal"===n.type)t[n.value]=n;else if("FunctionCall"===n.type)t[n.name]=n;else if("Field"===n.type){const e=n.name.trim();e&&(t[e]={type:"Literal",value:e})}}function Oo(e,t,n=!1){if((e=e.toLowerCase())===(t=t.toLowerCase()))return 1;if(!e||!t||e.charCodeAt(0)!==t.charCodeAt(0))return 0;const r=e.length,o=t.length;if(!n&&r>o)return 0;const i=Math.min(r,o),s=Math.max(r,o);let a=1,u=1,c=s,l=0,f=0,p=!1,d=!1;for(;a<r;){for(l=e.charCodeAt(a),p=!1,d=!1;u<o;){if(f=t.charCodeAt(u),l===f){p=!0,c+=s-(d?a:u);break}d=45===f,u++}if(!p){if(!n)return 0;break}a++}const m=s-i;return c*(a/s)/(Co(s)-Co(m))}function Co(e){return e*(e+1)/2}function jo(e,t){return e.r||e.g||e.b||e.a?1===e.a?function(e,t){const n=t&&_o(e.r)&&_o(e.g)&&_o(e.b)?Eo:Po;return"#"+n(e.r)+n(e.g)+n(e.b)}(e,t):function(e){const t=[e.r,e.g,e.b];return 1!==e.a&&t.push(To(e.a,8)),`${3===t.length?"rgb":"rgba"}(${t.join(", ")})`}(e):"transparent"}function To(e,t=4){return e.toFixed(t).replace(/\.?0+$/,"")}function _o(e){return!(e%17)}function Eo(e){return(e>>4).toString(16)}function Po(e){return function(e){for(;e.length<2;)e="0"+e;return e}(e.toString(16))}const $o={Global:"@@global",Section:"@@section",Property:"@@property",Value:"@@value"};function Ro(e,t){var n;const r=tr(t.options),o=t.options["output.format"];(null===(n=t.context)||void 0===n?void 0:n.name)===$o.Section&&(e=e.filter(e=>e.snippet));for(let n=0;n<e.length;n++)o&&0!==n&&or(r,!0),Io(e[n],r,t);return r.value}function Io(e,t,n){const r=n.options["stylesheet.json"];if(e.name)rr(t,(r?e.name.replace(/\-(\w)/g,(e,t)=>t.toUpperCase()):e.name)+n.options["stylesheet.between"]),e.value.length?function(e,t,n){const r=n.options["stylesheet.json"],o=r?function(e){if(1===e.value.length){const t=e.value[0];if(1===t.value.length&&"NumberValue"===t.value[0].type)return t.value[0]}}(e):null;if(!o||o.unit&&"px"!==o.unit){const o=function(e){return e.options["stylesheet.jsonDoubleQuotes"]?'"':"'"}(n);r&&nr(t,o);for(let r=0;r<e.value.length;r++)0!==r&&nr(t,", "),No(e.value[r],t,n);r&&nr(t,o)}else nr(t,String(o.value))}(e,t,n):ir(t,0,""),r?nr(t,","):(Mo(e,t,!0),nr(t,n.options["stylesheet.after"]));else{for(const r of e.value)for(const e of r.value)zo(e,t,n);Mo(e,t,e.value.length>0)}}function Mo(e,t,n){e.important&&(n&&nr(t," "),nr(t,"!important"))}function No(e,t,n){for(let r=0,o=-1;r<e.value.length;r++){const i=e.value[r];0===r||"Field"===i.type&&i.start===o||nr(t," "),zo(i,t,n),o=i.end}}function zo(e,t,n){if("ColorValue"===e.type)nr(t,jo(e,n.options["stylesheet.shortHex"]));else if("Literal"===e.type||"CustomProperty"===e.type)rr(t,e.value);else if("NumberValue"===e.type)rr(t,To(e.value,4)+e.unit);else if("StringValue"===e.type){const n="double"===e.quote?'"':"'";rr(t,n+e.value+n)}else if("Field"===e.type)ir(t,e.index,e.name);else if("FunctionCall"===e.type){nr(t,e.name+"(");for(let r=0;r<e.arguments.length;r++)r&&nr(t,", "),No(e.arguments[r],t,n);nr(t,")")}}const Fo="lg";function Do(e,t){var n;const r=(null===(n=t.cache)||void 0===n?void 0:n.stylesheetSnippets)||function(e){const t=[];for(const n of Object.keys(e))t.push(xo(n,e[n]));return function(e){e=e.slice().sort(wo);const t=[];let n;for(const r of e.filter(Ao)){for(;t.length;){if(n=t[t.length-1],r.property.startsWith(n.property)&&45===r.property.charCodeAt(n.property.length)){n.dependencies.push(r),t.push(r);break}t.pop()}t.length||t.push(r)}return e}(t)}(t.snippets),o=[];t.cache&&(t.cache.stylesheetSnippets=r),"string"==typeof e&&(e=Wn(e,{value:Ko(t)}));const i=function(e,t){if(t.context){if(t.context.name===$o.Section)return e.filter(e=>e.type===bo.Raw);if(t.context.name===$o.Property)return e.filter(e=>e.type===bo.Property)}return e}(r,t);for(const n of e){const e=Bo(n,i,t);e&&o.push(e)}return o}function Bo(e,t,n){if(!function(e,t){let n=null;const r=1===e.value.length?e.value[0]:null;if(r&&1===r.value.length){const e=r.value[0];"FunctionCall"===e.type&&e.name===Fo&&(n=e)}return!(!n&&e.name!==Fo)&&(n=n?Object.assign(Object.assign({},n),{name:"linear-gradient"}):{type:"FunctionCall",name:"linear-gradient",arguments:[Vo(Ho(0,""))]},t.context||(e.name="background-image"),e.value=[Vo(n)],!0)}(e,n)){const r=n.options["stylesheet.fuzzySearchMinScore"];if(Ko(n)){const o=n.context.name,i=t.find(e=>e.type===bo.Property&&e.property===o);Lo(e,n,i,r),e.snippet=i}else if(e.name){const o=Uo(e.name,t,r,!0);if(e.snippet=o,o){const t=o.type===bo.Property?function(e,t,n){const r=function(e,t){for(let n=0,r=0;n<e.length;n++){if(r=t.indexOf(e[n],r),-1===r)return e.slice(n);r++}return""}(e.name,t.key);if(r){if(e.value.length)return null;const o=Wo(r,n,t);if(!o)return null;e.value.push(Vo(o))}if(e.name=t.property,e.value.length)Lo(e,n,t);else if(t.value.length){const r=t.value[0];e.value=1===t.value.length||r.some(Qo)?r:r.map(e=>Jo(e,n))}return e}(e,o,n):function(e,t){let n,r=0;const o=/\$\{(\d+)(:[^}]+)?\}/g,i=e.value[0],s=[];for(;n=o.exec(t.value);)r!==n.index&&s.push(Go(t.value.slice(r,n.index))),r=n.index+n[0].length,i&&i.value.length?s.push(i.value.shift()):s.push(Ho(Number(n[1]),n[2]?n[2].slice(1):""));const a=t.value.slice(r);return a&&s.push(Go(a)),e.name=void 0,e.value=[Vo(...s)],e}(e,o);if(t)e=t;else if(n.options["stylesheet.strictMatch"])return null}}}return(e.name||n.context)&&function(e,t){const n=t.options["stylesheet.unitAliases"],r=t.options["stylesheet.unitless"];for(const o of e.value)for(const i of o.value)"NumberValue"===i.type&&(i.unit?i.unit=n[i.unit]||i.unit:0===i.value||r.includes(e.name)||(i.unit=i.rawValue.includes(".")?t.options["stylesheet.floatUnit"]:t.options["stylesheet.intUnit"]))}(e,n),e}function Lo(e,t,n,r){for(const o of e.value){const e=[];for(const i of o.value)if("Literal"===i.type)e.push(Wo(i.value,t,n,r)||i);else if("FunctionCall"===i.type){const o=Wo(i.name,t,n,r);o&&"FunctionCall"===o.type?e.push(Object.assign(Object.assign({},o),{arguments:i.arguments.concat(o.arguments.slice(i.arguments.length))})):e.push(i)}else e.push(i);o.value=e}}function Uo(e,t,n=0,r=!1){let o=null,i=0;for(const n of t){const t=Oo(e,qo(n),r);if(1===t)return n;t&&t>=i&&(i=t,o=n)}return i>=n?o:null}function qo(e){return"string"==typeof e?e:e.key}function Wo(e,t,n,r){let o;if(n){if(o=Uo(e,Object.keys(n.keywords),r))return n.keywords[o];for(const t of n.dependencies)if(o=Uo(e,Object.keys(t.keywords),r))return t.keywords[o]}return(o=Uo(e,t.options["stylesheet.keywords"],r))?Go(o):null}function Vo(...e){return{type:"CSSValue",value:e}}function Go(e){return{type:"Literal",value:e}}function Ho(e,t){return{type:"Field",index:e,name:t}}function Qo(e){for(const t of e.value)if("Field"===t.type||"FunctionCall"===t.type&&t.arguments.some(Qo))return!0;return!1}function Jo(e,t,n={index:1}){let r=[];for(const o of e.value)switch(o.type){case"ColorValue":r.push(Ho(n.index++,jo(o,t.options["stylesheet.shortHex"])));break;case"Literal":r.push(Ho(n.index++,o.value));break;case"NumberValue":r.push(Ho(n.index++,`${o.value}${o.unit}`));break;case"StringValue":const e="single"===o.quote?"'":'"';r.push(Ho(n.index++,e+o.value+e));break;case"FunctionCall":r.push(Ho(n.index++,o.name),Go("("));for(let e=0,i=o.arguments.length;e<i;e++)r=r.concat(Jo(o.arguments[e],t,n).value),e!==i-1&&r.push(Go(", "));r.push(Go(")"));break;default:r.push(o)}return Object.assign(Object.assign({},e),{value:r})}function Ko(e){return!(!e.context||e.context.name!==$o.Value&&e.context.name.startsWith("@@"))}const Zo={markup:"html",stylesheet:"css"},Xo={type:"markup",syntax:"html",variables:{lang:"en",locale:"en-US",charset:"UTF-8",indentation:"\t",newline:"\n"},snippets:{},options:{inlineElements:["a","abbr","acronym","applet","b","basefont","bdo","big","br","button","cite","code","del","dfn","em","font","i","iframe","img","input","ins","kbd","label","map","object","q","s","samp","select","small","span","strike","strong","sub","sup","textarea","tt","u","var"],"output.indent":"\t","output.baseIndent":"","output.newline":"\n","output.tagCase":"","output.attributeCase":"","output.attributeQuotes":"double","output.format":!0,"output.formatLeafNode":!1,"output.formatSkip":["html"],"output.formatForce":["body"],"output.inlineBreak":3,"output.compactBoolean":!1,"output.booleanAttributes":["contenteditable","seamless","async","autofocus","autoplay","checked","controls","defer","disabled","formnovalidate","hidden","ismap","loop","multiple","muted","novalidate","readonly","required","reversed","selected","typemustmatch"],"output.reverseAttributes":!1,"output.selfClosingStyle":"html","output.field":(e,t)=>t,"output.text":e=>e,"markup.href":!0,"comment.enabled":!1,"comment.trigger":["id","class"],"comment.before":"","comment.after":"\n\x3c!-- /[#ID][.CLASS] --\x3e","bem.enabled":!1,"bem.element":"__","bem.modifier":"_","jsx.enabled":!1,"stylesheet.keywords":["auto","inherit","unset","none"],"stylesheet.unitless":["z-index","line-height","opacity","font-weight","zoom","flex","flex-grow","flex-shrink"],"stylesheet.shortHex":!0,"stylesheet.between":": ","stylesheet.after":";","stylesheet.intUnit":"px","stylesheet.floatUnit":"em","stylesheet.unitAliases":{e:"em",p:"%",x:"ex",r:"rem"},"stylesheet.json":!1,"stylesheet.jsonDoubleQuotes":!1,"stylesheet.fuzzySearchMinScore":0,"stylesheet.strictMatch":!1}},Yo={markup:{snippets:ei({a:"a[href]","a:blank":"a[href='http://${0}' target='_blank' rel='noopener noreferrer']","a:link":"a[href='http://${0}']","a:mail":"a[href='mailto:${0}']","a:tel":"a[href='tel:+${0}']",abbr:"abbr[title]","acr|acronym":"acronym[title]",base:"base[href]/",basefont:"basefont/",br:"br/",frame:"frame/",hr:"hr/",bdo:"bdo[dir]","bdo:r":"bdo[dir=rtl]","bdo:l":"bdo[dir=ltr]",col:"col/",link:"link[rel=stylesheet href]/","link:css":"link[href='${1:style}.css']","link:print":"link[href='${1:print}.css' media=print]","link:favicon":"link[rel='shortcut icon' type=image/x-icon href='${1:favicon.ico}']","link:mf|link:manifest":"link[rel='manifest' href='${1:manifest.json}']","link:touch":"link[rel=apple-touch-icon href='${1:favicon.png}']","link:rss":"link[rel=alternate type=application/rss+xml title=RSS href='${1:rss.xml}']","link:atom":"link[rel=alternate type=application/atom+xml title=Atom href='${1:atom.xml}']","link:im|link:import":"link[rel=import href='${1:component}.html']",meta:"meta/","meta:utf":"meta[http-equiv=Content-Type content='text/html;charset=UTF-8']","meta:vp":"meta[name=viewport content='width=${1:device-width}, initial-scale=${2:1.0}']","meta:compat":"meta[http-equiv=X-UA-Compatible content='${1:IE=7}']","meta:edge":"meta:compat[content='${1:ie=edge}']","meta:redirect":"meta[http-equiv=refresh content='0; url=${1:http://example.com}']","meta:refresh":"meta[http-equiv=refresh content='${1:5}']","meta:kw":"meta[name=keywords content]","meta:desc":"meta[name=description content]",style:"style",script:"script","script:src":"script[src]","script:module":"script[type=module src]",img:"img[src alt]/","img:s|img:srcset":"img[srcset src alt]","img:z|img:sizes":"img[sizes srcset src alt]",picture:"picture","src|source":"source/","src:sc|source:src":"source[src type]","src:s|source:srcset":"source[srcset]","src:t|source:type":"source[srcset type='${1:image/}']","src:z|source:sizes":"source[sizes srcset]","src:m|source:media":"source[media='(${1:min-width: })' srcset]","src:mt|source:media:type":"source:media[type='${2:image/}']","src:mz|source:media:sizes":"source:media[sizes srcset]","src:zt|source:sizes:type":"source[sizes srcset type='${1:image/}']",iframe:"iframe[src frameborder=0]",embed:"embed[src type]/",object:"object[data type]",param:"param[name value]/",map:"map[name]",area:"area[shape coords href alt]/","area:d":"area[shape=default]","area:c":"area[shape=circle]","area:r":"area[shape=rect]","area:p":"area[shape=poly]",form:"form[action]","form:get":"form[method=get]","form:post":"form[method=post]",label:"label[for]",input:"input[type=${1:text}]/",inp:"input[name=${1} id=${1}]","input:h|input:hidden":"input[type=hidden name]","input:t|input:text":"inp[type=text]","input:search":"inp[type=search]","input:email":"inp[type=email]","input:url":"inp[type=url]","input:p|input:password":"inp[type=password]","input:datetime":"inp[type=datetime]","input:date":"inp[type=date]","input:datetime-local":"inp[type=datetime-local]","input:month":"inp[type=month]","input:week":"inp[type=week]","input:time":"inp[type=time]","input:tel":"inp[type=tel]","input:number":"inp[type=number]","input:color":"inp[type=color]","input:c|input:checkbox":"inp[type=checkbox]","input:r|input:radio":"inp[type=radio]","input:range":"inp[type=range]","input:f|input:file":"inp[type=file]","input:s|input:submit":"input[type=submit value]","input:i|input:image":"input[type=image src alt]","input:b|input:btn|input:button":"input[type=button value]","input:reset":"input:button[type=reset]",isindex:"isindex/",select:"select[name=${1} id=${1}]","select:d|select:disabled":"select[disabled.]","opt|option":"option[value]",textarea:"textarea[name=${1} id=${1}]","tarea:c|textarea:cols":"textarea[name=${1} id=${1} cols=${2:30}]","tarea:r|textarea:rows":"textarea[name=${1} id=${1} rows=${3:10}]","tarea:cr|textarea:cols:rows":"textarea[name=${1} id=${1} cols=${2:30} rows=${3:10}]",marquee:"marquee[behavior direction]","menu:c|menu:context":"menu[type=context]","menu:t|menu:toolbar":"menu[type=toolbar]",video:"video[src]",audio:"audio[src]","html:xml":"html[xmlns=http://www.w3.org/1999/xhtml]",keygen:"keygen/",command:"command/","btn:s|button:s|button:submit":"button[type=submit]","btn:r|button:r|button:reset":"button[type=reset]","btn:b|button:b|button:button":"button[type=button]","btn:d|button:d|button:disabled":"button[disabled.]","fst:d|fset:d|fieldset:d|fieldset:disabled":"fieldset[disabled.]",bq:"blockquote",fig:"figure",figc:"figcaption",pic:"picture",ifr:"iframe",emb:"embed",obj:"object",cap:"caption",colg:"colgroup",fst:"fieldset",btn:"button",optg:"optgroup",tarea:"textarea",leg:"legend",sect:"section",art:"article",hdr:"header",ftr:"footer",adr:"address",dlg:"dialog",str:"strong",prog:"progress",mn:"main",tem:"template",fset:"fieldset",datal:"datalist",kg:"keygen",out:"output",det:"details",sum:"summary",cmd:"command",data:"data[value]",meter:"meter[value]",time:"time[datetime]","ri:d|ri:dpr":"img:s","ri:v|ri:viewport":"img:z","ri:a|ri:art":"pic>src:m+img","ri:t|ri:type":"pic>src:t+img","!!!":"{<!DOCTYPE html>}",doc:"html[lang=${lang}]>(head>meta[charset=${charset}]+meta:vp+title{${1:Document}})+body","!|html:5":"!!!+doc",c:"{\x3c!-- ${0} --\x3e}","cc:ie":"{\x3c!--[if IE]>${0}<![endif]--\x3e}","cc:noie":"{\x3c!--[if !IE]>\x3c!--\x3e${0}\x3c!--<![endif]--\x3e}"})},xhtml:{options:{"output.selfClosingStyle":"xhtml"}},xml:{options:{"output.selfClosingStyle":"xml"}},xsl:{snippets:ei({"tm|tmatch":"xsl:template[match mode]","tn|tname":"xsl:template[name]",call:"xsl:call-template[name]",ap:"xsl:apply-templates[select mode]",api:"xsl:apply-imports",imp:"xsl:import[href]",inc:"xsl:include[href]",ch:"xsl:choose","wh|xsl:when":"xsl:when[test]",ot:"xsl:otherwise",if:"xsl:if[test]",par:"xsl:param[name]",pare:"xsl:param[name select]",var:"xsl:variable[name]",vare:"xsl:variable[name select]",wp:"xsl:with-param[name select]",key:"xsl:key[name match use]",elem:"xsl:element[name]",attr:"xsl:attribute[name]",attrs:"xsl:attribute-set[name]",cp:"xsl:copy[select]",co:"xsl:copy-of[select]",val:"xsl:value-of[select]","for|each":"xsl:for-each[select]",tex:"xsl:text",com:"xsl:comment",msg:"xsl:message[terminate=no]",fall:"xsl:fallback",num:"xsl:number[value]",nam:"namespace-alias[stylesheet-prefix result-prefix]",pres:"xsl:preserve-space[elements]",strip:"xsl:strip-space[elements]",proc:"xsl:processing-instruction[name]",sort:"xsl:sort[select order]",choose:"xsl:choose>xsl:when+xsl:otherwise",xsl:"!!!+xsl:stylesheet[version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform]>{\n|}","!!!":'{<?xml version="1.0" encoding="UTF-8"?>}'}),options:{"output.selfClosingStyle":"xml"}},jsx:{options:{"jsx.enabled":!0,"markup.attributes":{class:"className","class*":"styleName",for:"htmlFor"},"markup.valuePrefix":{"class*":"styles"}}},vue:{options:{"markup.attributes":{"class*":":class"}}},svelte:{options:{"jsx.enabled":!0}},pug:{snippets:ei({"!!!":"{doctype html}"})},stylesheet:{snippets:ei({"@f":"@font-face {\n\tfont-family: ${1};\n\tsrc: url(${2});\n}","@ff":"@font-face {\n\tfont-family: '${1:FontName}';\n\tsrc: url('${2:FileName}.eot');\n\tsrc: url('${2:FileName}.eot?#iefix') format('embedded-opentype'),\n\t\t url('${2:FileName}.woff') format('woff'),\n\t\t url('${2:FileName}.ttf') format('truetype'),\n\t\t url('${2:FileName}.svg#${1:FontName}') format('svg');\n\tfont-style: ${3:normal};\n\tfont-weight: ${4:normal};\n}","@i|@import":"@import url(${0});","@kf":"@keyframes ${1:identifier} {\n\t${2}\n}","@m|@media":"@media ${1:screen} {\n\t${0}\n}",ac:"align-content:start|end|flex-start|flex-end|center|space-between|space-around|stretch|space-evenly",ai:"align-items:start|end|flex-start|flex-end|center|baseline|stretch",anim:"animation:${1:name} ${2:duration} ${3:timing-function} ${4:delay} ${5:iteration-count} ${6:direction} ${7:fill-mode}",animdel:"animation-delay:time",animdir:"animation-direction:normal|reverse|alternate|alternate-reverse",animdur:"animation-duration:${1:0}s",animfm:"animation-fill-mode:both|forwards|backwards",animic:"animation-iteration-count:1|infinite",animn:"animation-name",animps:"animation-play-state:running|paused",animtf:"animation-timing-function:linear|ease|ease-in|ease-out|ease-in-out|cubic-bezier(${1:0.1}, ${2:0.7}, ${3:1.0}, ${3:0.1})",ap:"appearance:none",as:"align-self:start|end|auto|flex-start|flex-end|center|baseline|stretch",b:"bottom",bd:"border:${1:1px} ${2:solid} ${3:#000}",bdb:"border-bottom:${1:1px} ${2:solid} ${3:#000}",bdbc:"border-bottom-color:${1:#000}",bdbi:"border-bottom-image:url(${0})",bdbk:"border-break:close",bdbli:"border-bottom-left-image:url(${0})|continue",bdblrs:"border-bottom-left-radius",bdbri:"border-bottom-right-image:url(${0})|continue",bdbrrs:"border-bottom-right-radius",bdbs:"border-bottom-style",bdbw:"border-bottom-width",bdc:"border-color:${1:#000}",bdci:"border-corner-image:url(${0})|continue",bdcl:"border-collapse:collapse|separate",bdf:"border-fit:repeat|clip|scale|stretch|overwrite|overflow|space",bdi:"border-image:url(${0})",bdl:"border-left:${1:1px} ${2:solid} ${3:#000}",bdlc:"border-left-color:${1:#000}",bdlen:"border-length",bdli:"border-left-image:url(${0})",bdls:"border-left-style",bdlw:"border-left-width",bdr:"border-right:${1:1px} ${2:solid} ${3:#000}",bdrc:"border-right-color:${1:#000}",bdri:"border-right-image:url(${0})",bdrs:"border-radius",bdrst:"border-right-style",bdrw:"border-right-width",bds:"border-style:none|hidden|dotted|dashed|solid|double|dot-dash|dot-dot-dash|wave|groove|ridge|inset|outset",bdsp:"border-spacing",bdt:"border-top:${1:1px} ${2:solid} ${3:#000}",bdtc:"border-top-color:${1:#000}",bdti:"border-top-image:url(${0})",bdtli:"border-top-left-image:url(${0})|continue",bdtlrs:"border-top-left-radius",bdtri:"border-top-right-image:url(${0})|continue",bdtrrs:"border-top-right-radius",bdts:"border-top-style",bdtw:"border-top-width",bdw:"border-width",bbs:"border-block-start",bbe:"border-block-end",bis:"border-inline-start",bie:"border-inline-end",bfv:"backface-visibility:hidden|visible",bg:"background:${1:#000}","bg:n":"background: none",bga:"background-attachment:fixed|scroll",bgbk:"background-break:bounding-box|each-box|continuous",bgc:"background-color:${1:#fff}",bgcp:"background-clip:padding-box|border-box|content-box|no-clip",bgi:"background-image:url(${0})",bgo:"background-origin:padding-box|border-box|content-box",bgp:"background-position:${1:0} ${2:0}",bgpx:"background-position-x",bgpy:"background-position-y",bgr:"background-repeat:no-repeat|repeat-x|repeat-y|space|round",bgsz:"background-size:contain|cover",bs:"block-size",bxsh:"box-shadow:${1:inset }${2:hoff} ${3:voff} ${4:blur} ${5:#000}|none",bxsz:"box-sizing:border-box|content-box|border-box",c:"color:${1:#000}",cg:"column-gap",cr:"color:rgb(${1:0}, ${2:0}, ${3:0})",cra:"color:rgba(${1:0}, ${2:0}, ${3:0}, ${4:.5})",cl:"clear:both|left|right|none",cm:"/* ${0} */",cnt:"content:'${0}'|normal|open-quote|no-open-quote|close-quote|no-close-quote|attr(${0})|counter(${0})|counters(${0})",coi:"counter-increment",colm:"columns",colmc:"column-count",colmf:"column-fill",colmg:"column-gap",colmr:"column-rule",colmrc:"column-rule-color",colmrs:"column-rule-style",colmrw:"column-rule-width",colms:"column-span",colmw:"column-width",cor:"counter-reset",cp:"clip:auto|rect(${1:top} ${2:right} ${3:bottom} ${4:left})",cps:"caption-side:top|bottom",cur:"cursor:pointer|auto|default|crosshair|hand|help|move|pointer|text",d:"display:block|none|flex|inline-flex|inline|inline-block|grid|inline-grid|subgrid|list-item|run-in|contents|table|inline-table|table-caption|table-column|table-column-group|table-header-group|table-footer-group|table-row|table-row-group|table-cell|ruby|ruby-base|ruby-base-group|ruby-text|ruby-text-group",ec:"empty-cells:show|hide",f:"font:${1:1em} ${2:sans-serif}",fd:"font-display:auto|block|swap|fallback|optional",fef:"font-effect:none|engrave|emboss|outline",fem:"font-emphasize",femp:"font-emphasize-position:before|after",fems:"font-emphasize-style:none|accent|dot|circle|disc",ff:"font-family:serif|sans-serif|cursive|fantasy|monospace",fft:'font-family:"Times New Roman", Times, Baskerville, Georgia, serif',ffa:'font-family:Arial, "Helvetica Neue", Helvetica, sans-serif',ffv:"font-family:Verdana, Geneva, sans-serif",fl:"float:left|right|none",fs:"font-style:italic|normal|oblique",fsm:"font-smoothing:antialiased|subpixel-antialiased|none",fst:"font-stretch:normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded",fv:"font-variant:normal|small-caps",fvs:"font-variation-settings:normal|inherit|initial|unset",fw:"font-weight:normal|bold|bolder|lighter",fx:"flex",fxb:"flex-basis:fill|max-content|min-content|fit-content|content",fxd:"flex-direction:row|row-reverse|column|column-reverse",fxf:"flex-flow",fxg:"flex-grow",fxsh:"flex-shrink",fxw:"flex-wrap:nowrap|wrap|wrap-reverse",fsz:"font-size",fsza:"font-size-adjust",g:"gap",gtc:"grid-template-columns:repeat(${0})|minmax()",gtr:"grid-template-rows:repeat(${0})|minmax()",gta:"grid-template-areas",gt:"grid-template",gg:"grid-gap",gcg:"grid-column-gap",grg:"grid-row-gap",gac:"grid-auto-columns:auto|minmax()",gar:"grid-auto-rows:auto|minmax()",gaf:"grid-auto-flow:row|column|dense|inherit|initial|unset",gd:"grid",gc:"grid-column",gcs:"grid-column-start",gce:"grid-column-end",gr:"grid-row",grs:"grid-row-start",gre:"grid-row-end",ga:"grid-area",h:"height",is:"inline-size",jc:"justify-content:start|end|stretch|flex-start|flex-end|center|space-between|space-around|space-evenly",ji:"justify-items:start|end|center|stretch",js:"justify-self:start|end|center|stretch",l:"left",lg:"background-image:linear-gradient(${1})",lh:"line-height",lis:"list-style",lisi:"list-style-image",lisp:"list-style-position:inside|outside",list:"list-style-type:disc|circle|square|decimal|decimal-leading-zero|lower-roman|upper-roman",lts:"letter-spacing:normal",m:"margin",mah:"max-height",mar:"max-resolution",maw:"max-width",mb:"margin-bottom",mih:"min-height",mir:"min-resolution",miw:"min-width",ml:"margin-left",mr:"margin-right",mt:"margin-top",mbs:"margin-block-start",mbe:"margin-block-end",mis:"margin-inline-start",mie:"margin-inline-end",ol:"outline",olc:"outline-color:${1:#000}|invert",olo:"outline-offset",ols:"outline-style:none|dotted|dashed|solid|double|groove|ridge|inset|outset",olw:"outline-width:thin|medium|thick","op|opa":"opacity",ord:"order",ori:"orientation:landscape|portrait",orp:"orphans",ov:"overflow:hidden|visible|hidden|scroll|auto",ovs:"overflow-style:scrollbar|auto|scrollbar|panner|move|marquee",ovx:"overflow-x:hidden|visible|hidden|scroll|auto",ovy:"overflow-y:hidden|visible|hidden|scroll|auto",p:"padding",pb:"padding-bottom",pgba:"page-break-after:auto|always|left|right",pgbb:"page-break-before:auto|always|left|right",pgbi:"page-break-inside:auto|avoid",pl:"padding-left",pos:"position:relative|absolute|relative|fixed|static",pr:"padding-right",pt:"padding-top",pbs:"padding-block-start",pbe:"padding-block-end",pis:"padding-inline-start",pie:"padding-inline-end",spbs:"scroll-padding-block-start",spbe:"scroll-padding-block-end",spis:"scroll-padding-inline-start",spie:"scroll-padding-inline-end",q:"quotes",qen:"quotes:'\\201C' '\\201D' '\\2018' '\\2019'",qru:"quotes:'\\00AB' '\\00BB' '\\201E' '\\201C'",r:"right",rg:"row-gap",rsz:"resize:none|both|horizontal|vertical",t:"top",ta:"text-align:left|center|right|justify",tal:"text-align-last:left|center|right",tbl:"table-layout:fixed",td:"text-decoration:none|underline|overline|line-through",te:"text-emphasis:none|accent|dot|circle|disc|before|after",th:"text-height:auto|font-size|text-size|max-size",ti:"text-indent",tj:"text-justify:auto|inter-word|inter-ideograph|inter-cluster|distribute|kashida|tibetan",to:"text-outline:${1:0} ${2:0} ${3:#000}",tov:"text-overflow:ellipsis|clip",tr:"text-replace",trf:"transform:${1}|skewX(${1:angle})|skewY(${1:angle})|scale(${1:x}, ${2:y})|scaleX(${1:x})|scaleY(${1:y})|scaleZ(${1:z})|scale3d(${1:x}, ${2:y}, ${3:z})|rotate(${1:angle})|rotateX(${1:angle})|rotateY(${1:angle})|rotateZ(${1:angle})|translate(${1:x}, ${2:y})|translateX(${1:x})|translateY(${1:y})|translateZ(${1:z})|translate3d(${1:tx}, ${2:ty}, ${3:tz})",trfo:"transform-origin",trfs:"transform-style:preserve-3d",trs:"transition:${1:prop} ${2:time}",trsde:"transition-delay:${1:time}",trsdu:"transition-duration:${1:time}",trsp:"transition-property:${1:prop}",trstf:"transition-timing-function:${1:fn}",tsh:"text-shadow:${1:hoff} ${2:voff} ${3:blur} ${4:#000}",tt:"text-transform:uppercase|lowercase|capitalize|none",tw:"text-wrap:none|normal|unrestricted|suppress",us:"user-select:none",v:"visibility:hidden|visible|collapse",va:"vertical-align:top|super|text-top|middle|baseline|bottom|text-bottom|sub","w|wid":"width",whs:"white-space:nowrap|pre|pre-wrap|pre-line|normal",whsc:"white-space-collapse:normal|keep-all|loose|break-strict|break-all",wido:"widows",wm:"writing-mode:lr-tb|lr-tb|lr-bt|rl-tb|rl-bt|tb-rl|tb-lr|bt-lr|bt-rl",wob:"word-break:normal|keep-all|break-all",wos:"word-spacing",wow:"word-wrap:none|unrestricted|suppress|break-word|normal",z:"z-index",zom:"zoom:1"})},sass:{options:{"stylesheet.after":""}},stylus:{options:{"stylesheet.between":" ","stylesheet.after":""}}};function ei(e){const t={};return Object.keys(e).forEach(n=>{for(const r of n.split("|"))t[r]=e[n]}),t}function ti(e={},t={}){const n=e.type||"markup",r=e.syntax||Zo[n];return Object.assign(Object.assign(Object.assign({},Xo),e),{type:n,syntax:r,variables:ni(n,r,"variables",e,t),snippets:ni(n,r,"snippets",e,t),options:ni(n,r,"options",e,t)})}function ni(e,t,n,r,o={}){const i=Yo[e],s=o[e],a=Yo[t],u=o[t];return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Xo[n]),i&&i[n]),a&&a[n]),s&&s[n]),u&&u[n]),r[n])}function ri(e,t=0){return{text:e,start:t,pos:e.length}}function oi(e){return e.pos===e.start}function ii(e,t=0){return e.text.charCodeAt(e.pos-1+t)}function si(e){if(!oi(e))return e.text.charCodeAt(--e.pos)}function ai(e,t){if(oi(e))return!1;const n="function"==typeof t?t(ii(e)):t===ii(e);return n&&e.pos--,!!n}function ui(e,t){const n=e.pos;for(;ai(e,t););return e.pos<n}var ci,li;function fi(e){return e===ci.SingleQuote||e===ci.DoubleQuote}!function(e){e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote",e[e.Escape=92]="Escape"}(ci||(ci={})),function(e){e[e.SquareL=91]="SquareL",e[e.SquareR=93]="SquareR",e[e.RoundL=40]="RoundL",e[e.RoundR=41]="RoundR",e[e.CurlyL=123]="CurlyL",e[e.CurlyR=125]="CurlyR"}(li||(li={}));const pi={[li.SquareL]:li.SquareR,[li.RoundL]:li.RoundR,[li.CurlyL]:li.CurlyR};var di;function mi(e){const t=e.pos;if(!ai(e,di.AngleRight))return!1;let n=!1;for(ai(e,di.Slash);!oi(e);){if(ui(e,vi),bi(e)){if(ai(e,di.Slash)){n=ai(e,di.AngleLeft);break}if(ai(e,di.AngleLeft)){n=!0;break}if(ai(e,vi))continue;if(ai(e,di.Equals)){if(bi(e))continue;break}if(gi(e)){n=!0;break}break}if(!hi(e))break}return e.pos=t,n}function hi(e){return function(e){const t=e.pos;return!!(function(e){const t=e.pos,n=si(e);if(fi(n))for(;!oi(e);)if(si(e)===n&&ii(e)!==ci.Escape)return!0;return e.pos=t,!1}(e)&&ai(e,di.Equals)&&bi(e))||(e.pos=t,!1)}(e)||gi(e)}function gi(e){const t=e.pos,n=[];for(;!oi(e);){const t=ii(e);if(ki(t))n.push(t);else if(wi(t)){if(n.pop()!==pi[t])break}else if(!xi(t))break;e.pos--}return!(t===e.pos||!ai(e,di.Equals)||!bi(e))||(e.pos=t,!1)}function bi(e){return ui(e,yi)}function yi(e){return e===di.Colon||e===di.Dash||function(e){return(e&=-33)>=65&&e<=90}(e)||function(e){return e>47&&e<58}(e)}function vi(e){return e===di.Space||e===di.Tab}function xi(e){return!isNaN(e)&&e!==di.Equals&&!vi(e)&&!fi(e)}function wi(e){return e===li.CurlyL||e===li.RoundL||e===li.SquareL}function ki(e){return e===li.CurlyR||e===li.RoundR||e===li.SquareR}!function(e){e[e.Tab=9]="Tab",e[e.Space=32]="Space",e[e.Dash=45]="Dash",e[e.Slash=47]="Slash",e[e.Colon=58]="Colon",e[e.Equals=61]="Equals",e[e.AngleLeft=60]="AngleLeft",e[e.AngleRight=62]="AngleRight"}(di||(di={}));const Ai=e=>e.charCodeAt(0),Si="#.*:$-_!@%^+>/".split("").map(Ai),Oi={type:"markup",lookAhead:!0,prefix:""};function Ci(e,t=e.length,n={}){const r=Object.assign(Object.assign({},Oi),n);let o;t=Math.min(e.length,Math.max(0,null==t?e.length:t)),r.lookAhead&&(t=function(e,t,n){for(fi(e.charCodeAt(t))&&t++;Pi(e.charCodeAt(t),n.type);)t++;return t}(e,t,r));const i=function(e,t,n){if(!n)return 0;const r=ri(e),o=n.split("").map(Ai);let i;for(r.pos=t;!oi(r);)if(!ji(r,li.SquareR,li.SquareL)&&!ji(r,li.CurlyR,li.CurlyL)){if(i=r.pos,Ti(r,o))return i;r.pos--}return-1}(e,t,r.prefix||"");if(-1===i)return;const s=ri(e,i);s.pos=t;const a=[];for(;!oi(s);){if(o=ii(s),a.includes(li.CurlyR)){if(o===li.CurlyR){a.push(o),s.pos--;continue}if(o!==li.CurlyL){s.pos--;continue}}if(Pi(o,r.type))a.push(o);else if(Ei(o,r.type)){if(a.pop()!==pi[o])break}else{if(a.includes(li.SquareR)||a.includes(li.CurlyR)){s.pos--;continue}if(mi(s)||!_i(o))break}s.pos--}if(!a.length&&s.pos!==t){const r=e.slice(s.pos,t).replace(/^[*+>^]+/,"");return{abbreviation:r,location:t-r.length,start:n.prefix?i-n.prefix.length:t-r.length,end:t}}}function ji(e,t,n){const r=e.pos;if(ai(e,t))for(;!oi(e);){if(ai(e,n))return!0;e.pos--}return e.pos=r,!1}function Ti(e,t){const n=e.pos;let r=!1;for(let n=t.length-1;n>=0&&!oi(e)&&ai(e,t[n]);n--)r=0===n;return r||(e.pos=n),r}function _i(e){return e>64&&e<91||e>96&&e<123||e>47&&e<58||Si.includes(e)}function Ei(e,t){return e===li.RoundL||"markup"===t&&(e===li.SquareL||e===li.CurlyL)}function Pi(e,t){return e===li.RoundR||"markup"===t&&(e===li.SquareR||e===li.CurlyR)}function $i(e,t){const n=ti(t);return"stylesheet"===n.type?function(e,t){return Ro(Do(e,t),t)}(e,n):function(e,t){return ho(mo(e,t),t)}(e,n)}const Ri={markup:["html","xml","xsl","jsx","js","pug","slim","haml","vue"],stylesheet:["css","sass","scss","less","sss","stylus"]};var Ii=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function s(e){try{u(r.next(e))}catch(e){i(e)}}function a(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}u((r=r.apply(e,t||[])).next())})};let Mi;try{Mi=n(1398).l10n}catch(e){Mi={t:e=>e}}const Ni=new Map;let zi;const Fi=new Map,Di=/^[a-z,A-Z,!,(,[,#,\.\{]/,Bi=/^[a-z,A-Z,!,(,[,#,\.]/,Li=/^-?[a-z,A-Z,!,@,#]/,Ui=/[a-z,A-Z\.]/,qi=[...Le.tags,"lorem"],Wi="bem",Vi="|",Gi="t",Hi="c",Qi=3;function Ji(e,t,n,r){var o,i;if("never"===r.showExpandedAbbreviation||!As(n,r.excludeLanguages))return;const s=is(n);if(!s){if(!Ni.has(n)){const e=Object.assign(Object.assign({},us(n)),ts[n]);Ni.set(n,Object.keys(e))}zi=null!==(o=Ni.get(n))&&void 0!==o?o:[]}const a=ls(e,t,{lookAhead:!s,type:s?"stylesheet":"markup"});if(!a)return;const{abbreviationRange:u,abbreviation:c,filter:l}=a,f=es(e,t).substr(0,t.character),p=function(e){if(e){const t=e.match(/[\w,:,-,\.]*$/);if(t)return t[0]}}(f);if(p===c&&f.endsWith(`<${c}`)&&Ri.markup.includes(n))return;const d=ds(n,r,l);let m,h="",g=[];const b=(e,t)=>{if(ps(e,c)){try{h=$i(t,d),s&&"!important".startsWith(t)&&(h="!important")}catch(e){}h&&!function(e,t,n,r){var o,i;if(is(e)&&r){const e=null!==(o=r["stylesheet.between"])&&void 0!==o?o:": ",s=null!==(i=r["stylesheet.after"])&&void 0!==i?i:";";let a=t.indexOf(e[0],Math.max(t.length-e.length,0));return a=a>=0?a:t.length,n===`${t.substring(0,a)}${e}\${0}${s}`||n.replace(/\s/g,"")===t.replace(/\s/g,"")+s}if("xml"===e&&qi.some(e=>e.startsWith(t.toLowerCase())))return!0;if(qi.includes(t.toLowerCase())||zi.includes(t))return!1;if(/[-,:]/.test(t)&&!/--|::/.test(t)&&!t.endsWith(":"))return!1;if(/^\.{2,}$/.test(t))return!0;if("."===t)return!1;const s=t.match(/^([a-z,A-Z,\d]*)\.$/);return s?!s[1]||!Le.tags.includes(s[1]):("jsx"!==e||!/^([A-Z][A-Za-z0-9]*)+$/.test(t))&&n.toLowerCase()===`<${t.toLowerCase()}>\${1}</${t.toLowerCase()}>`}(e,t,h,d.options)&&(m=Q.create(t),m.textEdit=j.replace(u,Xi(Yi(h))),m.documentation=Zi(h),m.insertTextFormat=q.Snippet,m.detail=Mi.t("Emmet Abbreviation"),m.label=c,m.label+=l?"|"+l.replace(",","|"):"",g=[m])}};if(is(n)){if(b(n,c),c.length>4&&Be.properties.find(e=>e.startsWith(c)))return J.create([],!0);if(m&&h.length){m.textEdit=j.replace(u,Xi(Yi(h))),m.documentation=Zi(h),m.label=h.replace(/([^\\])\$\{\d+\}/g,"$1").replace(/\$\{\d+:([^\}]+)\}/g,"$1"),m.filterText=c;const e=Fi.has(n)?Fi.get(n):Fi.get("css");if(g=Ki(null!=e?e:[],c,c,u,d,"Emmet Custom Snippet",!1),!g.find(e=>{var t,n,r;return(null===(t=e.textEdit)||void 0===t?void 0:t.newText)&&(null===(n=e.textEdit)||void 0===n?void 0:n.newText)===(null===(r=null==m?void 0:m.textEdit)||void 0===r?void 0:r.newText)})){const e=new RegExp(".*"+c.split("").map(e=>"$"===e||"+"===e?"\\"+e:e).join(".*")+".*","i");(/\d/.test(c)||e.test(m.label))&&g.push(m)}}}else{b(n,c);let e=c;const t=c.match(/(>|\+)([\w:-]+)$/);if(t&&3===t.length&&(e=t[2]),"xml"!==n){const t=Ki(qi,e,c,u,d,"Emmet Abbreviation");g=g.concat(t)}if(!0===r.showAbbreviationSuggestions){const t=Ki(zi.filter(e=>!qi.includes(e)),e,c,u,d,"Emmet Abbreviation");m&&t.length>0&&e!==c&&(m.sortText="0"+m.label,t.forEach(e=>{e.filterText=c,e.sortText="9"+c})),g=g.concat(t)}"html"===n&&g.length>=2&&c.includes(":")&&(null===(i=null==m?void 0:m.textEdit)||void 0===i?void 0:i.newText)===`<${c}>\${0}</${c}>`&&(g=g.filter(e=>e.label!==c))}return!0===r.showSuggestionsAsSnippets&&g.forEach(e=>e.kind=U.Snippet),g.length?J.create(g,!0):void 0}function Ki(e,t,n,r,o,i,s=!0){if(!t||!e)return[];const a=[];return e.forEach(e=>{if(!e.startsWith(t.toLowerCase())||s&&e===t.toLowerCase())return;const u=n+e.substr(t.length);let c;try{c=$i(u,o)}catch(e){}if(!c)return;const l=Q.create(t+e.substr(t.length));l.documentation=Zi(c),l.detail=i,l.textEdit=j.replace(r,Xi(Yi(c))),l.insertTextFormat=q.Snippet,a.push(l)}),a}function Zi(e){return e.replace(/([^\\])\$\{\d+\}/g,"$1|").replace(/\$\{\d+:([^\}]+)\}/g,"$1")}function Xi(e){return e?e.replace(/([^\\])(\$)([^\{])/g,"$1\\$2$3"):e}function Yi(e){if(!e||!e.trim())return e;let t=-1,n=[],r=!1,o=!1,i=0;const s=e.length;try{for(;i<s&&!r;){if("$"!=e[i++]||"{"!=e[i++])continue;let a=-1,u=-1;for(;i<s&&/\d/.test(e[i]);)a=a<0?i:a,u=i+1,i++;if(-1===a||-1===u||i>=s||"}"!=e[i]&&":"!=e[i])continue;const c=e.substring(a,u);if(r="0"===c,r)break;let l=!1;if(":"==e[i++])for(;i<s;){if("}"==e[i]){l=!0;break}i++}Number(c)>Number(t)?(t=Number(c),n=[{numberStart:a,numberEnd:u}],o=!l):Number(c)===t&&n.push({numberStart:a,numberEnd:u})}}catch(e){}if(o&&!r)for(let t=0;t<n.length;t++){const r=n[t].numberStart,o=n[t].numberEnd;e=e.substr(0,r)+"0"+e.substr(o)}return e}function es(e,t){const n=e.offsetAt(t),r=e.getText();let o=0,i=r.length;for(let e=n-1;e>=0;e--)if("\n"===r[e]){o=e+1;break}for(let e=n;e<r.length;e++)if("\n"===r[e]){i=e;break}return r.substring(o,i)}let ts={},ns={},rs={};const os=(e,t)=>`\${${e}${t?":"+t:""}}`;function is(e){return Ri.stylesheet.includes(e)}function ss(e){return is(e)?"stylesheet":"markup"}function as(e){return is(e)?"css":"html"}function us(e){const t=ti({type:ss(e),syntax:e});return"xml"===e?{}:t.snippets}function cs(e,t){let n;for(let r=0;r<Qi;r++)if(e.endsWith(`${Vi}${Wi}`,t))t-=Wi.length+1,n=n?Wi+","+n:Wi;else if(e.endsWith(`${Vi}${Hi}`,t))t-=Hi.length+1,n=n?Hi+","+n:Hi;else{if(!e.endsWith(`${Vi}${Gi}`,t))break;t-=Gi.length+1,n=n?Gi+","+n:Gi}return{pos:t,filter:n}}function ls(e,t,n){const r=es(e,t),o=r.substr(0,t.character),{pos:i,filter:s}=cs(o,t.character),a=s?s.length+1:0,u=Ci(r,i,n);if(u)return{abbreviationRange:d.create(t.line,u.location,t.line,u.location+u.abbreviation.length+a),abbreviation:u.abbreviation,filter:s}}function fs(e,t){if(!e)return;const{pos:n,filter:r}=cs(e,e.length),o=Ci(e,n,is(t)||"stylesheet"===t?{syntax:"stylesheet",lookAhead:!1}:{lookAhead:!0});return o?{abbreviation:o.abbreviation,filter:r}:void 0}function ps(e,t){if(!t)return!1;if(is(e)){if(t.includes("#")){if(t.startsWith("#"))return/^#[\d,a-f,A-F]{1,6}$/.test(t);if(qi.includes(t.substring(0,t.indexOf("#"))))return!1}return Li.test(t)}return t.startsWith("!")?!/[^!]/.test(t):!!(!/\(/.test(t)&&!/\)/.test(t)||/\{[^\}\{]*[\(\)]+[^\}\{]*\}(?:[>\+\*\^]|$)/.test(t)||/\(.*\)[>\+\*\^]/.test(t)||/\[[^\[\]\(\)]+=".*"\]/.test(t)||/[>\+\*\^]\(.*\)/.test(t))&&("jsx"===e?Bi.test(t)&&Ui.test(t):!/^{%|{#|{{/.test(t)&&Di.test(t)&&Ui.test(t))}function ds(e,t,n){var r,o,i,s,a,u,c,l,f,p;(t=null!=t?t:{}).preferences=null!==(r=t.preferences)&&void 0!==r?r:{};const d=t.preferences,m=is(e)?e:"css",h=function(e,t){t||(t={});const n=Object.assign({},rs,t)[e];if(!n||"string"==typeof n)return"xhtml"===n?{selfClosingStyle:"xhtml"}:{};const r={};for(const e in n)switch(e){case"tag_case":r.tagCase="lower"===n[e]||"upper"===n[e]?n[e]:"";break;case"attr_case":r.attributeCase="lower"===n[e]||"upper"===n[e]?n[e]:"";break;case"attr_quotes":r.attributeQuotes=n[e];break;case"tag_nl":r.format=!0!==n[e]&&!1!==n[e]||n[e];break;case"inline_break":r.inlineBreak=n[e];break;case"self_closing_tag":if(!0===n[e]){r.selfClosingStyle="xml";break}if(!1===n[e]){r.selfClosingStyle="html";break}r.selfClosingStyle=n[e];break;case"compact_bool":r.compactBooleanAttributes=n[e];break;default:r[e]=n[e]}return r}(e,null!==(o=t.syntaxProfiles)&&void 0!==o?o:{}),g=(h&&h.filters?h.filters.split(","):[]).map(e=>e.trim()),b=n&&n.split(",").some(e=>"bem"===e.trim())||g.includes("bem"),y=n&&n.split(",").some(e=>"c"===e.trim())||g.includes("c"),v=function(e,t){if(!t||"object"!=typeof t)return{};if(!is(e)){const e={};for(const n in t)switch(n){case"filter.commentAfter":e.after=t[n];break;case"filter.commentBefore":e.before=t[n];break;case"filter.commentTrigger":e.trigger=t[n]}return{comment:e}}let n="number"==typeof(null==t?void 0:t["css.fuzzySearchMinScore"])?t["css.fuzzySearchMinScore"]:.3;n>1?n=1:n<0&&(n=0);const r={fuzzySearchMinScore:n};for(const n in t)switch(n){case"css.floatUnit":r.floatUnit=t[n];break;case"css.intUnit":r.intUnit=t[n];break;case"css.unitAliases":const o={};t[n].split(",").forEach(e=>{if(!e||!e.trim()||!e.includes(":"))return;const t=e.substr(0,e.indexOf(":")),n=e.substr(t.length+1);t.trim()&&n&&(o[t.trim()]=n)}),r.unitAliases=o;break;case`${e}.valueSeparator`:r.between=t[n];break;case`${e}.propertyEnd`:r.after=t[n]}return{stylesheet:r}}(e,t.preferences),x=(null==v?void 0:v.stylesheet)&&v.stylesheet.unitAliases||{},w={"output.formatSkip":["html"],"output.formatForce":["body"],"output.inlineBreak":0,"output.compactBoolean":!1,"output.reverseAttributes":!1,"output.field":os,"markup.href":!0,"comment.enabled":!1,"comment.trigger":["id","class"],"comment.before":"","comment.after":"\n\x3c!-- /[#ID][.CLASS] --\x3e","bem.enabled":!1,"bem.element":"__","bem.modifier":"_","jsx.enabled":"jsx"===e,"stylesheet.shortHex":!0,"stylesheet.between":"stylus"===e?" ":": ","stylesheet.after":"sass"===e||"stylus"===e?"":";","stylesheet.intUnit":"px","stylesheet.floatUnit":"em","stylesheet.unitAliases":{e:"em",p:"%",x:"ex",r:"rem"},"stylesheet.fuzzySearchMinScore":.3};let k={"output.tagCase":h.tagCase,"output.attributeCase":h.attributeCase,"output.attributeQuotes":h.attributeQuotes,"output.format":null===(i=h.format)||void 0===i||i,"output.formatSkip":d["format.noIndentTags"],"output.formatForce":d["format.forceIndentationForTags"],"output.inlineBreak":null!==(s=h.inlineBreak)&&void 0!==s?s:d["output.inlineBreak"],"output.compactBoolean":null!==(a=h.compactBooleanAttributes)&&void 0!==a?a:d["profile.allowCompactBoolean"],"output.reverseAttributes":d["output.reverseAttributes"],"output.selfClosingStyle":null!==(c=null!==(u=h.selfClosingStyle)&&void 0!==u?u:d["output.selfClosingStyle"])&&void 0!==c?c:ms(e),"output.field":os,"comment.enabled":y,"comment.trigger":d["filter.commentTrigger"],"comment.before":d["filter.commentBefore"],"comment.after":d["filter.commentAfter"],"bem.enabled":b,"bem.element":null!==(l=d["bem.elementSeparator"])&&void 0!==l?l:"__","bem.modifier":null!==(f=d["bem.modifierSeparator"])&&void 0!==f?f:"_","jsx.enabled":"jsx"===e,"stylesheet.shortHex":d["css.color.short"],"stylesheet.between":d[`${m}.valueSeparator`],"stylesheet.after":d[`${m}.propertyEnd`],"stylesheet.intUnit":d["css.intUnit"],"stylesheet.floatUnit":d["css.floatUnit"],"stylesheet.unitAliases":x,"stylesheet.fuzzySearchMinScore":d["css.fuzzySearchMinScore"]};if("jsx"===e){const e={class:"className","class*":"styleName",for:"htmlFor"},t={"class*":"styles"};h["markup.attributes"]&&(k["markup.attributes"]=Object.assign(Object.assign({},e),h["markup.attributes"])),h["markup.valuePrefix"]&&(k["markup.valuePrefix"]=Object.assign(Object.assign({},t),h["markup.valuePrefix"]))}if("vue"===e){const e={"class*":":class"},t={"class*":"$style"};h["markup.attributes"]&&(k["markup.attributes"]=Object.assign(Object.assign({},e),h["markup.attributes"])),h["markup.valuePrefix"]&&(k["markup.valuePrefix"]=Object.assign(Object.assign({},t),h["markup.valuePrefix"]))}const A={};[...Object.keys(w),...Object.keys(k)].forEach(e=>{var t;const n=e;A[n]=null!==(t=k[n])&&void 0!==t?t:w[n]});const S=Object.assign(Object.assign({},w["stylesheet.unitAliases"]),k["stylesheet.unitAliases"]);A["stylesheet.unitAliases"]=S;const O=ss(e),C=(_=t.variables)?Object.assign({},ns,_):ns,j=as(e),T="stylesheet"===O?null!==(p=ts[e])&&void 0!==p?p:ts[j]:ts[e];var _;return{type:O,options:A,variables:C,snippets:T,syntax:e,text:void 0,maxRepeat:1e3}}function ms(e){switch(e){case"xhtml":case"jsx":return"xhtml";case"xml":case"xsl":return"xml";default:return"html"}}function hs(e,t){const n=ti(t);return"stylesheet"===t.type?Do(e,n):mo(e,n)}function gs(e,t){let n;const r=ti(t);return n="stylesheet"===t.type?"string"==typeof e?$i(e,r):Ro(e,r):"string"==typeof e?$i(e,r):ho(e,r),Xi(Yi(n))}function bs(e,t,n,r){return Ii(this,void 0,void 0,function*(){if(ks(),!e.length)return;const o=[];for(let t of e)if("string"==typeof t){if(t=t.trim(),t.length&&"~"===t[0])r&&o.push(He(r,t.substring(1)));else if(Ve(t))o.push(Fe.file(t));else if(n)for(const e of n)o.push(He(e,t))}else console.warn("The following emmetExtensionsPath isn't a string: "+JSON.stringify(t));for(const e of o){try{if((yield t.stat(e)).type!==Ue.Directory)continue}catch(e){continue}const n=He(e,"snippets.json"),r=He(e,"syntaxProfiles.json");let o;o="function"==typeof globalThis.TextDecoder?new globalThis.TextDecoder:new Ne.TextDecoder;let i="";try{const e=yield t.readFile(n);i=o.decode(e)}catch(e){}if(i.length)try{const e=ys(n,i);e.variables&&vs(e.variables),ws(e)}catch(e){throw ks(),e}let s="";try{const e=yield t.readFile(r);s=o.decode(e)}catch(e){}if(s.length)try{xs(ys(r,s))}catch(e){throw ks(),e}}})}function ys(e,t){let n=[];const r=Me(t,n);if(n.length)throw new Error(`Found error ${function(e){switch(e){case 1:return"InvalidSymbol";case 2:return"InvalidNumberFormat";case 3:return"PropertyNameExpected";case 4:return"ValueExpected";case 5:return"ColonExpected";case 6:return"CommaExpected";case 7:return"CloseBraceExpected";case 8:return"CloseBracketExpected";case 9:return"EndOfFileExpected";case 10:return"InvalidCommentToken";case 11:return"UnexpectedEndOfComment";case 12:return"UnexpectedEndOfString";case 13:return"UnexpectedEndOfNumber";case 14:return"InvalidUnicode";case 15:return"InvalidEscapeCharacter";case 16:return"InvalidCharacter"}return"<unknown ParseErrorCode>"}(n[0].error)} while parsing the file ${e} at offset ${n[0].offset}`);return r}function vs(e){if("object"!=typeof e||!e)throw new Error(Mi.t("Invalid emmet.variables field. See https://code.visualstudio.com/docs/editor/emmet#_emmet-configuration for a valid example."));ns=Object.assign({},ns,e)}function xs(e){if("object"!=typeof e||!e)throw new Error(Mi.t("Invalid syntax profile. See https://code.visualstudio.com/docs/editor/emmet#_emmet-configuration for a valid example."));rs=Object.assign({},rs,e)}function ws(e){if("object"!=typeof e||!e)throw new Error(Mi.t("Invalid snippets file. See https://code.visualstudio.com/docs/editor/emmet#_using-custom-emmet-snippets for a valid example."));Object.keys(e).forEach(t=>{if(!e[t].snippets)return;const n=as(t);let r=e[t].snippets;if(e[n]&&e[n].snippets&&n!==t&&(r=Object.assign({},e[n].snippets,e[t].snippets)),is(t)){const e=Fi.get(t),n=Object.assign([],e,Object.keys(r));Fi.set(t,n)}else for(const e in r)r.hasOwnProperty(e)&&r[e].startsWith("<")&&r[e].endsWith(">")&&(r[e]=`{${r[e]}}`);const o=ts[t],i=function(e){const t={};return Object.keys(e).forEach(n=>{for(const r of n.split("|"))t[r]=e[n]}),t}(r),s=Object.assign({},o,i);ts[t]=s})}function ks(){ts={},Ni.clear(),Fi.clear(),rs={},ns={}}function As(e,t=[]){if(e&&!t.includes(e))return/\b(typescriptreact|javascriptreact|jsx-tags)\b/.test(e)?"jsx":"sass-indented"===e?"sass":"jade"===e?"pug":Ri.markup.includes(e)||Ri.stylesheet.includes(e)?e:void 0}},3558:(e,t,n)=>{"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n(2908);e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&o()}},3795:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reflectCssValue=function(){const e=r.window.activeTextEditor;if(!e)return void r.window.showInformationMessage("No editor is active.");const t=(0,o.getCssPropertyFromDocument)(e,e.selection.active);return t?function(e,t){const n=t.parent;let r="";for(const e of i)if(t.name.startsWith(e)){r=e;break}const s=t.name.substr(r.length),a=t.value;return e.edit(t=>{i.forEach(i=>{if(i===r)return;const u=(0,o.getCssPropertyFromRule)(n,i+s);if(u){const n=(0,o.offsetRangeToVsRange)(e.document,u.valueToken.start,u.valueToken.end);t.replace(n,a)}})})}(e,t):void 0};const r=n(1398),o=n(4900),i=["-webkit-","-moz-","-ms-","-o-",""]},4042:function(e,t,n){"use strict";var r,o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),s=0;s<n.length;s++)"default"!==n[s]&&o(t,e,n[s]);return i(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.incrementDecrement=function(e){if(!a.window.activeTextEditor)return void a.window.showInformationMessage("No editor is active");const t=a.window.activeTextEditor;return t.edit(n=>{t.selections.forEach(r=>{const o=l(t.document,r.isReversed?r.anchor:r.active);if(!o)return;const i=t.document.getText(o);f(i)&&n.replace(o,c(i,e))})})},t.update=c,t.locate=l;const a=s(n(1398)),u=/[0-9]/;function c(e,t){let n;const r=(n=e.match(/\.(\d+)$/))?n[1].length:1;let o=String((parseFloat(e)+t).toFixed(r)).replace(/\.0+$/,"");return(n=e.match(/^\-?(0\d+)/))&&(o=o.replace(/^(\-?)(\d+)/,(e,t,r)=>t+"0".repeat(Math.max(0,(n?n[1].length:0)-r.length))+r)),/^\-?\./.test(e)&&(o=o.replace(/^(\-?)0+/,"$1")),o}function l(e,t){const n=e.lineAt(t.line).text;let r,o=t.character,i=t.character,s=!1,c=!1;for(;o>0;){if(r=n[--o],"-"===r){c=!0;break}if("."!==r||s){if(!u.test(r)){o++;break}}else s=!0}for("-"!==n[i]||c||i++;i<n.length;)if(r=n[i++],"."===r&&!s&&u.test(n[i]))s=!0;else if(!u.test(r)){i--;break}if(o!==i&&f(n.slice(o,i)))return new a.Range(t.line,o,t.line,i)}function f(e){return!!e&&!isNaN(parseFloat(e))}},4531:e=>{"use strict";e.exports=Function.prototype.call},4834:(e,t,n)=>{"use strict";var r=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],o="undefined"==typeof globalThis?n.g:globalThis;e.exports=function(){for(var e=[],t=0;t<r.length;t++)"function"==typeof o[r[t]]&&(e[e.length]=r[t]);return e}},4900:function(e,t,n){"use strict";var r,o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),s=0;s<n.length;s++)"default"!==n[s]&&o(t,e,n[s]);return i(t,e),t}),a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.allowedMimeTypesInScriptTag=t.LANGUAGE_MODES=void 0,t.setHomeDir=function(e){g=e},t.getEmmetHelper=b,t.updateEmmetExtensionsPath=function(e=!1){const t=b();let n=u.workspace.getConfiguration("emmet").get("extensionsPath");if(n||(n=[]),e||h!==n){h=n;const e=u.workspace.workspaceFolders?.length?u.workspace.workspaceFolders.map(e=>e.uri):void 0,r=u.workspace.fs;t.updateExtensionsPath(n,r,e,g).catch(e=>{Array.isArray(n)&&n.length&&u.window.showErrorMessage(e.message)})}},t.migrateEmmetExtensionsPath=function(){const e=u.workspace.getConfiguration().inspect("emmet.extensionsPath");"string"==typeof e?.globalValue?u.workspace.getConfiguration().update("emmet.extensionsPath",[e.globalValue],!0):null===e?.globalValue&&u.workspace.getConfiguration().update("emmet.extensionsPath",[],!0),"string"==typeof e?.workspaceValue?u.workspace.getConfiguration().update("emmet.extensionsPath",[e.workspaceValue],!1):null===e?.workspaceValue&&u.workspace.getConfiguration().update("emmet.extensionsPath",[],!1),"string"==typeof e?.workspaceFolderValue?u.workspace.getConfiguration().update("emmet.extensionsPath",[e.workspaceFolderValue]):null===e?.workspaceFolderValue&&u.workspace.getConfiguration().update("emmet.extensionsPath",[])},t.isStyleSheet=y,t.validate=function(e=!0){const t=u.window.activeTextEditor;return t?!(!e&&y(t.document.languageId)):(u.window.showInformationMessage("No editor is active"),!1)},t.getMappingForIncludedLanguages=function(){const e={},n=u.workspace.getConfiguration("emmet").get("includeLanguages"),r=Object.assign({},{handlebars:"html",php:"html"},n??{});return Object.keys(r).forEach(n=>{"string"==typeof r[n]&&t.LANGUAGE_MODES[r[n]]&&(e[n]=r[n])}),e},t.getEmmetMode=function(e,t,n){if(!e||n.includes(e))return;"jsx-tags"===e&&(e="javascriptreact"),t[e]&&(e=t[e]),/\b(typescriptreact|javascriptreact|jsx-tags)\b/.test(e)?e="jsx":"sass-indented"===e?e="sass":"jade"!==e&&"pug"!==e||(e="pug");const r={markup:["html","xml","xsl","jsx","js","pug","slim","haml"],stylesheet:["css","sass","scss","less","sss","stylus"]};return r.markup.includes(e)||r.stylesheet.includes(e)?e:void 0},t.parsePartialStylesheet=function(e,t){const n="css"===e.languageId,r=e.offsetAt(t);let o=0,i=e.getText().length;const s=r-5e3,a=s>0?s:o,c=new f.DocumentStreamReader(e,r);function p(){const t=e.positionAt(c.pos).line;if(!n&&g!==t){g=t;const n=e.lineAt(g).text.indexOf("//");n>-1&&(c.pos=e.offsetAt(new u.Position(g,n)))}}function d(){c.sof()||c.peek()!==w||(c.backUp(1)===k?c.pos=function(t){const n=e.getText().substring(0,t).lastIndexOf("/*");if(-1!==n)return n}(c.pos)??o:c.next())}function m(){if(c.eat(w))if(c.eat(w)&&!n){const t=e.positionAt(c.pos).line;c.pos=e.offsetAt(new u.Position(t+1,0))}else c.eat(k)&&(c.pos=function(t){let n=e.getText().substring(t).indexOf("*/");if(-1!==n)return n+=2+t,n}(c.pos)??i)}for(;!c.eof()&&!c.eat(v);)c.peek()===w?m():c.next();c.eof()||(i=c.pos),c.pos=r;let h=1,g=t.line,b=!1;for(;!b&&h>0&&!c.sof();){switch(p(),c.backUp(1)){case x:h--;break;case v:n?(c.next(),o=c.pos,b=!0):h++;break;case w:d()}(t.line-e.positionAt(c.pos).line>100||c.pos<=a)&&(b=!0)}g=e.positionAt(c.pos).line,h=0;let y=!1;for(;!b&&!c.sof()&&!y&&h>=0;){p();const e=c.backUp(1);if(!/\s/.test(String.fromCharCode(e))){switch(e){case w:d();break;case v:h++;break;case x:h--;break;default:h||(y=!0)}!c.sof()&&y&&(o=c.pos)}}try{const t=" ".repeat(o)+e.getText().substring(o,i);return(0,l.default)(t)}catch(e){return}},t.getFlatNode=A,t.getHtmlFlatNode=function e(t,n,r,o){let i=A(n,r,o);if(i){if("script"===i.name&&0===i.children.length){const n=S(t,i);n&&(i=e(n,i,r,o)??i)}else if("cdata"===i.type){i=e(O(t,i),i,r,o)??i}return i}},t.setupScriptNodeSubtree=S,t.setupCdataNodeSubtree=O,t.isOffsetInsideOpenOrCloseTag=function(e,t){const n=e;return!!(n.open&&t>n.open.start&&t<n.open.end||n.close&&t>n.close.start&&t<n.close.end)},t.offsetRangeToSelection=function(e,t,n){const r=e.positionAt(t),o=e.positionAt(n);return new u.Selection(r,o)},t.offsetRangeToVsRange=function(e,t,n){const r=e.positionAt(t),o=e.positionAt(n);return new u.Range(r,o)},t.getDeepestFlatNode=function e(t){if(!t||!t.children||0===t.children.length||!t.children.find(e=>"comment"!==e.type))return t;for(let n=t.children.length-1;n>=0;n--)if("comment"!==t.children[n].type)return e(t.children[n])},t.findNextWord=function(e,t){let n,r,o=-1===t,i=!1,s=!1;for(;t<e.length-1;)if(t++,o){if(!o||i||" "!==e[t])if(i){if(" "===e[t]){r=t,s=!0;break}}else n=t,i=!0}else" "===e[t]&&(o=!0);return i&&!s&&(r=e.length),[n,r]},t.findPrevWord=function(e,t){let n,r,o=t===e.length,i=!1,s=!1;for(;t>-1;)if(t--,o){if(!o||s||" "!==e[t])if(s){if(" "===e[t]){n=t+1,i=!0;break}}else r=t+1,s=!0}else" "===e[t]&&(o=!0);return s&&!i&&(n=0),[n,r]},t.getNodesInBetween=function(e,t){if(C(e,t))return[e];if(!C(e.parent,t.parent)){if(t.start<e.start)return[t];if(t.start<e.end)return[e];for(;e.parent&&e.parent.end<t.start;)e=e.parent;for(;t.parent&&t.parent.start>e.start;)t=t.parent}const n=[];let r=e;const o=t.end;for(;r&&o>r.start;)n.push(r),r=r.nextSibling;return n},t.sameNodes=C,t.getEmmetConfiguration=function(e){const t=u.workspace.getConfiguration("emmet"),n=Object.assign({},t.syntaxProfiles||{}),r=Object.assign({},t.preferences||{});return"jsx"!==e&&"xml"!==e&&"xsl"!==e||(n[e]=n[e]||{},"object"!=typeof n[e]||n[e].hasOwnProperty("self_closing_tag")||n[e].hasOwnProperty("selfClosingStyle")||(n[e]={...n[e],selfClosingStyle:"jsx"===e?"xhtml":"xml"})),{preferences:r,showExpandedAbbreviation:t.showExpandedAbbreviation,showAbbreviationSuggestions:t.showAbbreviationSuggestions,syntaxProfiles:n,variables:t.variables,excludeLanguages:t.excludeLanguages,showSuggestionsAsSnippets:t.showSuggestionsAsSnippets}},t.iterateCSSToken=function e(t,n){for(let r=0,o=t.size;r<o;r++)if(!1===n(t.item(r))||!1===e(t.item(r),n))return!1;return!0},t.getCssPropertyFromRule=function(e,t){return e.children.find(e=>"property"===e.type&&e.name===t)},t.getCssPropertyFromDocument=function(e,t){const n=e.document,r=(0,d.getRootNode)(n,!0),o=n.offsetAt(t),i=A(r,o,!0);if(y(e.document.languageId))return i&&"property"===i.type?i:null;const s=i;if(s&&"style"===s.name&&s.open&&s.close&&s.open.end<o&&s.close.start>o){const e=" ".repeat(s.start)+n.getText().substring(s.start,s.end),t=A((0,l.default)(e),o,!0);return t&&"property"===t.type?t:null}return null},t.getEmbeddedCssNodeIfAny=function(e,t,n){if(!t)return;const r=t;if(r&&r.open&&r.close){const t=e.offsetAt(n);if(r.open.end<t&&t<=r.close.start&&"style"===r.name){const t=" ".repeat(r.open.end)+e.getText().substring(r.open.end,r.close.start);return(0,l.default)(t)}}},t.isStyleAttribute=function(e,t){if(!e)return!1;const n=e,r=(n.attributes||[]).findIndex(e=>"style"===e.name.toString());if(-1===r)return!1;const o=n.attributes[r];return t>=o.value.start&&t<=o.value.end},t.isNumber=function(e){return"number"==typeof e},t.toLSTextDocument=function(e){return p.TextDocument.create(e.uri.toString(),e.languageId,e.version,e.getText())},t.getPathBaseName=function(e){const t=e.split("/").pop();return(t?t.split("\\").pop():"")??""},t.getSyntaxes=function(){return{markup:["html","xml","xsl","jsx","js","pug","slim","haml"],stylesheet:["css","sass","scss","less","sss","stylus"]}};const u=s(n(1398)),c=a(n(1253)),l=a(n(7545)),f=n(606),p=n(5172),d=n(8408);let m,h,g;function b(){return m||(m=n(3547)),m}function y(e){return["css","scss","sass","less","stylus"].includes(e)}t.LANGUAGE_MODES={html:["!",".","}",":","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],jade:["!",".","}",":","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],slim:["!",".","}",":","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],haml:["!",".","}",":","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],xml:[".","}","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],xsl:["!",".","}","*","$","/","]",">","0","1","2","3","4","5","6","7","8","9"],css:[":","!","-","0","1","2","3","4","5","6","7","8","9"],scss:[":","!","-","0","1","2","3","4","5","6","7","8","9"],sass:[":","!","0","1","2","3","4","5","6","7","8","9"],less:[":","!","-","0","1","2","3","4","5","6","7","8","9"],stylus:[":","!","0","1","2","3","4","5","6","7","8","9"],javascriptreact:["!",".","}","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],typescriptreact:["!",".","}","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"]};const v=125,x=123,w=47,k=42;function A(e,t,n){if(e)return o(e.children);function r(e){if(!e)return;const r=e.start,i=e.end;if(r<t&&i>t||n&&r<=t&&i>=t)return o(e.children)??e;if("close"in e){const t=e;if(t.open&&!t.close)return o(t.children)}}function o(e){for(let t=0;t<e.length;t++){const n=r(e[t]);if(n)return n}}}function S(e,n){if("script"===n.name&&n.attributes&&n.attributes.some(e=>"type"===e.name.toString()&&t.allowedMimeTypesInScriptTag.includes(e.value.toString()))&&n.open){const t=" ".repeat(n.open.end),r=n.close?n.close.start:n.end,o=t+e.substring(n.open.end,r);return(0,c.default)(o).children.forEach(e=>{n.children.push(e),e.parent=n}),o}return""}function O(e,t){const n=t.start+9,r=t.end-3,o=" ".repeat(n)+e.substring(n,r);return(0,c.default)(o).children.forEach(e=>{t.children.push(e),e.parent=t}),o}function C(e,t){return!e&&!t||!(!e||!t)&&e.start===t.start&&e.end===t.end}t.allowedMimeTypesInScriptTag=["text/html","text/plain","text/x-template","text/template","text/ng-template"]},4940:e=>{"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},4943:e=>{"use strict";e.exports=ReferenceError},5172:(e,t,n)=>{"use strict";n.r(t),n.d(t,{TextDocument:()=>o});class r{constructor(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){const t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(e,t){for(const t of e)if(r.isIncremental(t)){const e=u(t.range),n=this.offsetAt(e.start),r=this.offsetAt(e.end);this._content=this._content.substring(0,n)+t.text+this._content.substring(r,this._content.length);const o=Math.max(e.start.line,0),i=Math.max(e.end.line,0);let a=this._lineOffsets;const c=s(t.text,!1,n);if(i-o===c.length)for(let e=0,t=c.length;e<t;e++)a[e+o+1]=c[e];else c.length<1e4?a.splice(o+1,i-o,...c):this._lineOffsets=a=a.slice(0,o+1).concat(c,a.slice(i+1));const l=t.text.length-(r-n);if(0!==l)for(let e=o+1+c.length,t=a.length;e<t;e++)a[e]=a[e]+l}else{if(!r.isFull(t))throw new Error("Unknown change event received");this._content=t.text,this._lineOffsets=void 0}this._version=t}getLineOffsets(){return void 0===this._lineOffsets&&(this._lineOffsets=s(this._content,!0)),this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);const t=this.getLineOffsets();let n=0,r=t.length;if(0===r)return{line:0,character:e};for(;n<r;){const o=Math.floor((n+r)/2);t[o]>e?r=o:n=o+1}const o=n-1;return{line:o,character:(e=this.ensureBeforeEOL(e,t[o]))-t[o]}}offsetAt(e){const t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;const n=t[e.line];if(e.character<=0)return n;const r=e.line+1<t.length?t[e.line+1]:this._content.length,o=Math.min(n+e.character,r);return this.ensureBeforeEOL(o,n)}ensureBeforeEOL(e,t){for(;e>t&&a(this._content.charCodeAt(e-1));)e--;return e}get lineCount(){return this.getLineOffsets().length}static isIncremental(e){const t=e;return null!=t&&"string"==typeof t.text&&void 0!==t.range&&(void 0===t.rangeLength||"number"==typeof t.rangeLength)}static isFull(e){const t=e;return null!=t&&"string"==typeof t.text&&void 0===t.range&&void 0===t.rangeLength}}var o;function i(e,t){if(e.length<=1)return e;const n=e.length/2|0,r=e.slice(0,n),o=e.slice(n);i(r,t),i(o,t);let s=0,a=0,u=0;for(;s<r.length&&a<o.length;){const n=t(r[s],o[a]);e[u++]=n<=0?r[s++]:o[a++]}for(;s<r.length;)e[u++]=r[s++];for(;a<o.length;)e[u++]=o[a++];return e}function s(e,t,n=0){const r=t?[n]:[];for(let t=0;t<e.length;t++){const o=e.charCodeAt(t);a(o)&&(13===o&&t+1<e.length&&10===e.charCodeAt(t+1)&&t++,r.push(n+t+1))}return r}function a(e){return 13===e||10===e}function u(e){const t=e.start,n=e.end;return t.line>n.line||t.line===n.line&&t.character>n.character?{start:n,end:t}:e}function c(e){const t=u(e.range);return t!==e.range?{newText:e.newText,range:t}:e}!function(e){e.create=function(e,t,n,o){return new r(e,t,n,o)},e.update=function(e,t,n){if(e instanceof r)return e.update(t,n),e;throw new Error("TextDocument.update: document must be created by TextDocument.create")},e.applyEdits=function(e,t){const n=e.getText(),r=i(t.map(c),(e,t)=>{const n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n});let o=0;const s=[];for(const t of r){const r=e.offsetAt(t.range.start);if(r<o)throw new Error("Overlapping edit");r>o&&s.push(n.substring(o,r)),t.newText.length&&s.push(t.newText),o=e.offsetAt(t.range.end)}return s.push(n.substr(o)),s.join("")}}(o||(o={}))},5272:e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},5368:function(e,t,n){"use strict";var r,o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),s=0;s<n.length;s++)"default"!==n[s]&&o(t,e,n[s]);return i(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.fetchEditPoint=function(e){if(!(0,u.validate)()||!a.window.activeTextEditor)return;const t=a.window.activeTextEditor,n=[];t.selections.forEach(r=>{const o="next"===e?function(e,t){for(let n=e.anchor.line;n<t.document.lineCount;n++){const r=c(n,t,e.anchor,"next");if(r)return r}return e}(r,t):function(e,t){for(let n=e.anchor.line;n>=0;n--){const r=c(n,t,e.anchor,"prev");if(r)return r}return e}(r,t);n.push(o)}),t.selections=n,t.revealRange(t.selections[t.selections.length-1])};const a=s(n(1398)),u=n(4900);function c(e,t,n,r){const o=t.document.lineAt(e);let i=o.text;if(e!==n.line&&o.isEmptyOrWhitespace&&i.length)return new a.Selection(e,i.length,e,i.length);e===n.line&&"prev"===r&&(i=i.substr(0,n.character));const s="next"===r?i.indexOf('""',e===n.line?n.character:0):i.lastIndexOf('""'),u="next"===r?i.indexOf("><",e===n.line?n.character:0):i.lastIndexOf("><");let c=-1;return c=s>-1&&u>-1?"next"===r?Math.min(s,u):Math.max(s,u):s>-1?s:u,c>-1?new a.Selection(e,c+1,e,c+1):void 0}},5387:(e,t,n)=>{"use strict";var r=n(1913)(),o=n(9818)("Object.prototype.toString"),i=function(e){return!(r&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===o(e)},s=function(e){return!!i(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==o(e)&&"[object Function]"===o(e.callee)},a=function(){return i(arguments)}();i.isLegacyArguments=s,e.exports=a?i:s},5615:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},5731:e=>{"use strict";e.exports=SyntaxError},5843:function(e,t,n){"use strict";var r,o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),s=0;s<n.length;s++)"default"!==n[s]&&o(t,e,n[s]);return i(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.nextItemStylesheet=function(e,t,n,r){const o=e.offsetAt(t),i=e.offsetAt(n);let s=(0,u.getFlatNode)(r,i,!0);if(s||(s=r),!s)return;if("property"===s.type&&o===s.start&&i===s.end)return l(e,s,o,i,!0,"next");if("property"===s.type&&o>=s.valueToken.start&&i<=s.valueToken.end){const t=l(e,s,o,i,!1,"next");if(t)return t}if("rule"===s.type&&i<s.selectorToken.end||"property"===s.type&&i<s.valueToken.end)return c(e,s);let a=s.firstChild;for(;a&&i>=a.end;)a=a.nextSibling;for(;!a&&s;)a=s.nextSibling,s=s.parent;return a?c(e,a):void 0},t.prevItemStylesheet=function(e,t,n,r){const o=e.offsetAt(t),i=e.offsetAt(n);let s=(0,u.getFlatNode)(r,o,!1);if(s||(s=r),!s)return;if("property"===s.type&&o===s.valueToken.start&&i===s.valueToken.end)return c(e,s);if("property"===s.type&&o>=s.valueToken.start&&i<=s.valueToken.end){const t=l(e,s,o,i,!1,"prev");if(t)return t}if("property"===s.type||!s.firstChild||"rule"===s.type&&o<=s.firstChild.start)return c(e,s);let a=s.firstChild;for(;a.nextSibling&&o>=a.nextSibling.end;)a=a.nextSibling;return a=(0,u.getDeepestFlatNode)(a),l(e,a,o,i,!1,"prev")};const a=s(n(1398)),u=n(4900);function c(e,t){if(!t)return;const n="rule"===t.type?t.selectorToken:t;return(0,u.offsetRangeToSelection)(e,n.start,n.end)}function l(e,t,n,r,o,i){if(!t||"property"!==t.type)return;const s=t,c=s.valueToken.stream.substring(s.valueToken.start,s.valueToken.end);if(o=o||"prev"===i&&n===s.valueToken.start&&r<s.valueToken.end)return(0,u.offsetRangeToSelection)(e,s.valueToken.start,s.valueToken.end);let l=-1;if("prev"===i){if(n===s.valueToken.start)return;const t=e.positionAt(n).character,r=e.positionAt(s.valueToken.start).character;l=n>s.valueToken.end?c.length:t-r}else if("next"===i){if(r===s.valueToken.end&&(n>s.valueToken.start||!c.includes(" ")))return;const t=e.positionAt(r).character,o=e.positionAt(s.valueToken.start).character;l=r===s.valueToken.end?-1:t-o-1}const[f,p]="prev"===i?(0,u.findPrevWord)(c,l):(0,u.findNextWord)(c,l);if(!f&&!p)return;const d=e.positionAt(s.valueToken.start),m=d.translate(0,f),h=d.translate(0,p);return new a.Selection(m,h)}},5865:e=>{"use strict";e.exports=Math.pow},5943:(e,t,n)=>{"use strict";var r=n(2730);e.exports=function(e){return!!r(e)}},6095:e=>{"use strict";e.exports=Function.prototype.apply},6108:(e,t,n)=>{"use strict";var r=n(528),o=n(686),i=n(7239)(),s=n(9336),a=n(3468),u=r("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new a("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||u(t)!==t)throw new a("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,c=!0;if("length"in e&&s){var l=s(e,"length");l&&!l.configurable&&(r=!1),l&&!l.writable&&(c=!1)}return(r||c||!n)&&(i?o(e,"length",t,!0,!0):o(e,"length",t)),e}},6116:function(e,t,n){"use strict";var r,o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),s=0;s<n.length;s++)"default"!==n[s]&&o(t,e,n[s]);return i(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.splitJoinTag=function(){if(!(0,u.validate)(!1)||!a.window.activeTextEditor)return;const e=a.window.activeTextEditor,t=e.document,n=(0,c.getRootNode)(e.document,!0);return n?e.edit(r=>{Array.from(e.selections).reverse().forEach(e=>{const o=t.getText(),i=t.offsetAt(e.start),s=(0,u.getHtmlFlatNode)(o,n,i,!0);if(s){const e=function(e,t){let n,r;if(t.open&&t.close){const o=t.open.end-1,i=t.end;n=(0,u.offsetRangeToVsRange)(e,o,i),r="/>";const s=(0,u.getEmmetMode)(e.languageId,{},[])??"",a=(0,u.getEmmetConfiguration)(s);s&&a.syntaxProfiles[s]&&("xhtml"===a.syntaxProfiles[s].selfClosingStyle||"xhtml"===a.syntaxProfiles[s].self_closing_tag)&&(r=" "+r)}else{const o=e.getText().substring(t.start,t.end).match(/(\s*\/)?>$/),i=t.end,s=o?i-o[0].length:i;n=(0,u.offsetRangeToVsRange)(e,s,i),r=`></${t.name}>`}return new a.TextEdit(n,r)}(t,s);r.replace(e.range,e.newText)}})}):void 0};const a=s(n(1398)),u=n(4900),c=n(8408)},6369:(e,t,n)=>{"use strict";var r=n(7859),o=n(7345),i=n(6423);e.exports=r?function(e){return r(e)}:o?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return o(e)}:i?function(e){return i(e)}:null},6423:(e,t,n)=>{"use strict";var r,o=n(9903),i=n(9336);try{r=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var s=!!r&&i&&i(Object.prototype,"__proto__"),a=Object,u=a.getPrototypeOf;e.exports=s&&"function"==typeof s.get?o([s.get]):"function"==typeof u&&function(e){return u(null==e?e:a(e))}},6558:function(e,t,n){"use strict";var r,o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),s=0;s<n.length;s++)"default"!==n[s]&&o(t,e,n[s]);return i(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.removeTag=function(){if(!(0,c.validate)(!1)||!a.window.activeTextEditor)return;const e=a.window.activeTextEditor,t=e.document,n=(0,u.getRootNode)(t,!0);if(!n)return;const r=Array.from(e.selections).reverse().reduce((t,r)=>t.concat(function(e,t,n){const r=e.offsetAt(n.start),o=(0,c.getHtmlFlatNode)(e.getText(),t,r,!0);if(!o)return[];let i,s;if(o.open&&(i=(0,c.offsetRangeToVsRange)(e,o.open.start,o.open.end)),o.close&&(s=(0,c.offsetRangeToVsRange)(e,o.close.start,o.close.end)),i&&s){const t=new a.Range(i.end.line,i.end.character,s.start.line,s.start.character),n=new a.Range(i.start.line,i.start.character,s.end.line,s.end.character);if(""===e.getText(t).trim()&&"pre"!==o.name)return[n]}const u=[];if(i&&(u.push(i),s)){const t=function(e,t,n){const r=t.start.line,o=n.start.line,i=e.lineAt(r).firstNonWhitespaceCharacterIndex,s=e.lineAt(o).firstNonWhitespaceCharacterIndex;let a;for(let t=r+1;t<o;t++){const n=e.lineAt(t);if(!n.isEmptyOrWhitespace){const e=n.firstNonWhitespaceCharacterIndex;a=a?Math.min(a,e):e}}let u=0;return a&&(u=a<i||a<s?0:Math.min(a-i,a-s)),u}(e,i,s);let n,r;for(let o=i.start.line+1;o<s.start.line;o++)e.lineAt(o).isEmptyOrWhitespace||(u.push(new a.Range(o,0,o,t)),void 0===n&&(n=o),r=o);l(e,s)&&r?u.push(new a.Range(r,e.lineAt(r).range.end.character,s.end.line,s.end.character)):u.push(s),l(e,i)&&n&&(u[1]=new a.Range(i.start.line,i.start.character,n,e.lineAt(n).firstNonWhitespaceCharacterIndex),u.shift())}return u}(e.document,n,r)),[]);return e.edit(e=>{r.forEach(t=>{e.delete(t)})})};const a=s(n(1398)),u=n(8408),c=n(4900);function l(e,t){if(t.start.line===t.end.line){const n=e.lineAt(t.start).text,r=e.getText(t);if(n.trim()===r)return!0}return!1}},6613:(e,t,n)=>{"use strict";n.d(t,{Et:()=>u,Ji:()=>d,R5:()=>c,gA:()=>l,vG:()=>a,vP:()=>s,xC:()=>f});const r=39,o=34,i={escape:92,throws:!1};var s=function(e,t){t=t?Object.assign({},i,t):i;const n=e.pos,r=e.peek();if(e.eat(a)){for(;!e.eof();)switch(e.next()){case r:return e.start=n,!0;case t.escape:e.next()}if(e.pos=n,t.throws)throw e.error("Unable to consume quoted string")}return!1};function a(e){return e===r||e===o}function u(e){return e>47&&e<58}function c(e,t,n){return n=n||90,(e&=-33)>=(t=t||65)&&e<=n}function l(e){return u(e)||c(e)}function f(e){return function(e){return 32===e||9===e||160===e}(e)||10===e||13===e}const p={escape:92,throws:!1};function d(e,t,n,r){r=r?Object.assign({},p,r):p;const o=e.pos;if(e.eat(t)){let i,a=1;for(;!e.eof();)if(!s(e,r))if(i=e.next(),i===t)a++;else if(i===n){if(a--,!a)return e.start=o,!0}else i===r.escape&&e.next();if(e.pos=o,r.throws)throw e.error(`Unable to find matching pair for ${String.fromCharCode(t)}`)}return!1}},6882:(e,t,n)=>{"use strict";var r=n(2422);e.exports=function(e){return r(e)||0===e?e:e<0?-1:1}},7196:e=>{"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},7239:(e,t,n)=>{"use strict";var r=n(4940),o=function(){return!!r};o.hasArrayLengthDefineBug=function(){if(!r)return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},7345:(e,t,n)=>{"use strict";var r=n(9629);e.exports=r.getPrototypeOf||null},7470:function(e,t,n){"use strict";var r,o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),s=0;s<n.length;s++)"default"!==n[s]&&o(t,e,n[s]);return i(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.balanceOut=function(){p(!0)},t.balanceIn=function(){p(!1)};const a=s(n(1398)),u=n(4900),c=n(8408);let l=[],f=[];function p(e){if(!(0,u.validate)(!1)||!a.window.activeTextEditor)return;const t=a.window.activeTextEditor,n=t.document,r=(0,c.getRootNode)(n,!0);if(!r)return;const o=e?d:m;let i=t.selections.map(e=>o(n,r,e));h(f,t.selections)?e?h(t.selections,i)||l.push(t.selections):l.length&&(i=l.pop()):l=e?[t.selections]:[],t.selections=i,f=t.selections}function d(e,t,n){const r=e.offsetAt(n.start),o=(0,u.getHtmlFlatNode)(e.getText(),t,r,!1);if(!o)return n;if(!o.open||!o.close)return(0,u.offsetRangeToSelection)(e,o.start,o.end);let i,s;return o.close.start<=r&&o.close.end>r?(i=(0,u.offsetRangeToSelection)(e,o.close.start,o.open.end),s=(0,u.offsetRangeToSelection)(e,o.close.end,o.open.start)):(i=(0,u.offsetRangeToSelection)(e,o.open.end,o.close.start),s=(0,u.offsetRangeToSelection)(e,o.open.start,o.close.end)),i.contains(n)&&!i.isEqual(n)?i:s.contains(n)&&!s.isEqual(n)?s:n}function m(e,t,n){const r=e.offsetAt(n.start),o=(0,u.getHtmlFlatNode)(e.getText(),t,r,!0);if(!o)return n;const i=e.offsetAt(n.start),s=e.offsetAt(n.end);if(o.open&&o.close){const t=i===o.start&&s===o.end,n=i>o.open.start&&i<o.open.end,r=i>o.close.start&&i<o.close.end;if(t||n||r)return(0,u.offsetRangeToSelection)(e,o.open.end,o.close.start)}if(!o.firstChild)return n;const a=o.firstChild;return i===a.start&&s===a.end&&a.open&&a.close?(0,u.offsetRangeToSelection)(e,a.open.end,a.close.start):(0,u.offsetRangeToSelection)(e,a.start,a.end)}function h(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].isEqual(t[n]))return!1;return!0}},7545:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Token:()=>m,any:()=>Le,backtick:()=>oe,comment:()=>G,createAtRule:()=>Ye,createProperty:()=>tt,createRule:()=>Ze,default:()=>it,formatting:()=>Ve,ident:()=>_,interpolation:()=>F,keyword:()=>We,lexer:()=>rt,parseMediaExpression:()=>Je,parsePropertyName:()=>He,parsePropertyValue:()=>Qe,parseSelector:()=>Ge,selector:()=>Ue,string:()=>L,url:()=>Ie,value:()=>qe,variable:()=>ze,whitespace:()=>Z});var r=n(8769),o=n(6613);class i{constructor(e){this.type=e,this.children=[],this.parent=null}get firstChild(){return this.children[0]}get nextSibling(){const e=this.index();return-1!==e?this.parent.children[e+1]:null}get previousSibling(){const e=this.index();return-1!==e?this.parent.children[e-1]:null}index(){return this.parent?this.parent.children.indexOf(this):-1}add(e){return e&&(e.remove(),this.children.push(e),e.parent=this),this}remove(){if(this.parent){const e=this.index();-1!==e&&(this.parent.children.splice(e,1),this.parent=null)}return this}}class s extends i{constructor(){super("stylesheet"),this.comments=[]}get start(){const e=this.firstChild;return e&&e.start}get end(){const e=this.children[this.children.length-1];return e&&e.end}addComment(e){this.comments.push(e)}}function a(e){return function(e){let t;for(e=e.slice();t!==e.length;)t=e.length,u(e[0])&&e.shift(),u(p(e))&&e.pop();return e}(e)}function u(e){const t=e&&e.type;return"whitespace"===t||"comment"===t}function c(e,t){const n=e.pos;for(let r=0,o=t.length;r<o;r++)if(!e.eat(t.charCodeAt(r)))return e.pos=n,!1;return!0}function l(e,t){const n=e.pos;return!!e.eat(t)&&(e.start=n,!0)}function f(e,t){const n=e.pos;return!!e.eatWhile(t)&&(e.start=n,!0)}function p(e){return e[e.length-1]}function d(e){return e&&e.valueOf()}class m{constructor(e,t,n,r){this.stream=e,this.start=null!=n?n:e.start,this.end=null!=r?r:e.pos,this.type=t,this._props=null,this._value=null,this._items=null}get size(){return this._items?this._items.length:0}get items(){return this._items}clone(e,t){return new this.constructor(this.stream,this.type,null!=e?e:this.start,null!=t?t:this.end)}add(e){if(Array.isArray(e))for(let t=0,n=e.length;t<n;t++)this.add(e[t]);else e&&(this._items?this._items.push(e):this._items=[e]);return this}remove(e){if(this._items){const t=this._items.indexOf(e);-1!==t&&this._items.splice(t,1)}return this}item(e){const t=this.size;return this._items&&this._items[(t+e)%t]}limit(){return this.stream.limit(this.start,this.end)}slice(e,t){const n=this.clone(),r=this._items&&this._items.slice(e,t);return r&&r.length?(n.start=r[0].start,n.end=r[r.length-1].end,n.add(r)):r&&(n.start=n.end),n}property(e,t){return void 0!==t&&(this._props||(this._props={}),this._props[e]=t),this._props&&this._props[e]}toString(){return`${this.valueOf()} [${this.start}, ${this.end}] (${this.type})`}valueOf(){return null===this._value&&(this._value=this.stream.substring(this.start,this.end)),this._value}}const h=44,g=58,b=59,y=123,v=125,x=(new Map).set(h,"comma").set(g,"propertyDelimiter").set(b,"propertyTerminator").set(y,"ruleStart").set(v,"ruleEnd");var w=function(e,t){if(40===e.peek()){const n=e.pos;e.next();const r=[];let o,i=!1;for(;!e.eof()&&!k(e.peek())&&!e.eat(41)&&(o=t(e),o);)C(o)&&(i=!0),r.push(o);return e.start=n,function(e,t,n){const r=new m(e,"arguments"),o=n?C:O;let i=[];for(let n,s=0,a=t.length;s<a;s++)n=t[s],o(n)?(r.add(A(e,i)||S(e,n.start)),i.length=0):i.push(n);return i.length&&r.add(A(e,i)),r}(e,r,i)}};function k(e){return e===y||e===v}function A(e,t){if((t=a(t)).length){const n=new m(e,"argument",t[0].start,p(t).end);for(let e=0;e<t.length;e++)n.add(t[e]);return n}}function S(e,t){const n=new m(e,"argument",t,t);return n.property("empty",!0),n}function O(e){return"comma"===e.property("type")}function C(e){return"propertyTerminator"===e.property("type")}const j=45,T=95;function _(e){return E(e)&&new m(e,"ident")}function E(e){const t=e.pos;return e.eat(j),e.eat(P)?(e.eatWhile($),e.start=t,!0):(e.pos=t,!1)}function P(e){return e===T||e===j||(0,o.R5)(e)||e>=128}function $(e){return(0,o.Et)(e)||P(e)}function R(e,t,n,r,o){const i=e.pos;if(e.eat(n)){const n=r(e,i);if(n||o)return e.start=i,new m(e,t,i).add(n)}e.pos=i}const I=64;function M(e){return R(e,"at-keyword",I,_)}const N=35,z=64;function F(e,t){const n=e.pos;if(t=t||B,(e.eat(N)||e.eat(z))&&e.eat(y)){const r=new m(e,"interpolation",n);let o,i=1;for(;!e.eof();)if(e.eat(y))i++;else if(e.eat(v)){if(i--,!i)return r.end=e.pos,r}else{if(!(o=t(e)))break;r.add(o)}}e.pos=n}function D(e){const t=e.pos;return(e.eat(N)||e.eat(z))&&(0,o.Ji)(e,y,v)?(e.start=t,!0):(e.pos=t,!1)}function B(e){const t=e.pos;for(;!e.eof()&&e.peek()!==v;)U(e)||e.next();if(t!==e.pos)return new m(e,"expression",t)}function L(e){return U(e,!0)}function U(e,t){let n,r,i,s=e.peek();if((0,o.vG)(s)){e.start=e.pos,e.next();const o=s,a=e.pos;for(;!e.eof()&&(n=e.pos,!e.eat(o)&&!e.eat(q));)e.eat(92)?e.eat(q):t&&(i=F(e))&&(r?r.push(i):r=[i]),e.next();if(t){const t=new m(e,"string"),i=new m(e,"unquoted",a,n);return i.add(r),t.add(i),t.property("quote",o),t}return!0}return!1}function q(e){return 10===e||13===e}const W=42,V=47;var G=function(e){return function(e){if(Q(e)){const t=new m(e,"comment");return t.property("type","single-line"),t}}(e)||function(e){if(J(e)){const t=new m(e,"comment");return t.property("type","multiline"),t}}(e)};function H(e){return Q(e)||J(e)}function Q(e){const t=e.pos;if(e.eat(V)&&e.eat(V)){for(e.start=t;!e.eof()&&!K(e.next()););return!0}return e.pos=t,!1}function J(e){const t=e.pos;if(e.eat(V)&&e.eat(W)){for(;!(e.eof()||e.next()===W&&e.eat(V)););return e.start=t,!0}return e.pos=t,!1}function K(e){return 10===e||13===e}function Z(e){return X(e)&&new m(e,"whitespace")}function X(e){return f(e,o.xC)}const Y=91,ee=93;function te(e){for(;!e.eof();)if(!X(e)&&!H(e))return!0}function ne(e){return 126===e||124===e||94===e||36===e||42===e||61===e}const re=96;function oe(e){if(ie(e))return new m(e,"backtick")}function ie(e){const t=e.pos;return!!(0,o.Ji)(e,re,re)&&(e.start=t,!0)}const se=46,ae=43,ue=126,ce=62,le=38,fe={[ae]:"adjacentSibling",[ue]:"generalSibling",[ce]:"child",[le]:"nesting"};var pe=function(e){if(43===(t=e.peek())||126===t||38===t||62===t){const t=e.pos,n=fe[e.next()],r=new m(e,"combinator",t);return r.property("type",n),r}var t};const de=35;function me(e){if(function(e){return f(e,he)}(e))return new m(e,"hash-value")}function he(e){return(0,o.Et)(e)||(0,o.R5)(e,65,70)||95===e||45===e||e>128}const ge=35,be=33,ye=46;function ve(e){return 45===e||43===e}const xe=33,we=42,ke=43,Ae=45,Se=47,Oe=60,Ce=61,je=62;function Te(e){return e===xe||e===Oe||e===Ce||e===je}function _e(e){return e===we||e===ke||e===Ae||e===Se||Te(e)}var Ee=function(e){const t=e.pos;if(e.eatWhile(58)){const n=_(e);if(n)return new m(e,"pseudo",t).add(n)}e.pos=t},Pe=function(e){return $e(e)&&new m(e,"unquoted")};function $e(e){return f(e,Re)}function Re(e){return!(isNaN(e)||(0,o.vG)(e)||(0,o.xC)(e)||40===e||41===e||92===e||function(e){return e>=0&&e<=8||11===e||e>=14&&e<=31||127===e}(e))}function Ie(e){const t=e.pos;if(c(e,"url(")){X(e);const n=L(e)||Pe(e);return X(e),e.eat(41),new m(e,"url",t).add(n)}e.pos=t}function Me(e){const t=e.pos;return c(e,"url(")?(X(e),U(e)||$e(e),X(e),e.eat(41),e.start=t,!0):(e.pos=t,!1)}const Ne=36;function ze(e){return R(e,"variable",Ne,Fe)}function Fe(e){if(function(e){return f(e,De)}(e))return new m(e,"name")}function De(e){return e===Ne||$(e)}function Be(e){const t=Le(e)||w(e,Be);if(t&&"ident"===t.type){const n=w(e,Be);if(n)return new m(e,"function",t.start,n.end).add(t).add(n)}return t||function(e){e.start=e.pos;if(null!=e.next())return new m(e,"unknown")}(e)}function Le(e){return Ve(e)||Ie(e)||Ue(e)||qe(e)||function(e){if((t=e.peek())===h||t===g||t===b||t===y||t===v){const t=e.pos,n=x.get(e.next()),r=new m(e,"separator",t);return r.property("type",n),r}var t}(e)}function Ue(e){return F(e)||oe(e)||_(e)||M(e)||function(e){return R(e,"class",se,_)}(e)||function(e){return R(e,"id",ge,_)}(e)||Ee(e)||function(e){const t=e.pos;if(e.eat(Y)){te(e);const n=_(e);te(e);const r=function(e){return f(e,ne)&&new m(e,"operator")}(e);te(e);const o=L(e)||_(e);return te(e),e.eat(ee),new m(e,"attribute",t).add(n).add(r).add(o)}}(e)||pe(e)}function qe(e){return Ie(e)||L(e)||F(e)||oe(e)||function(e){if(function(e){const t=e.pos;if(e.eat(ve),e.eatWhile(o.Et)){e.start=t;const n=e.pos;return e.eat(ye)&&e.eatWhile(o.Et)||(e.pos=n),!0}return e.eat(ye)&&e.eatWhile(o.Et)?(e.start=t,!0):(e.pos=t,!1)}(e)){const t=e.start,n=new m(e,"value"),r=function(e){return E(e)||function(e){return l(e,37)}(e)}(e)?new m(e,"unit"):null;return new m(e,"number",t).add(n).add(r)}}(e)||function(e){return R(e,"hash",de,me,!0)}(e)||We(e)||function(e){return R(e,"important",be,_)}(e)||function(e){return function(e){return l(e,Te)?(e.eatWhile(Ce),!0):!!l(e,_e)}(e)&&new m(e,"operator")}(e)}function We(e){return oe(e)||ze(e)||M(e)||_(e)}function Ve(e){return G(e)||Z(e)}function Ge(e){return Ke(e,"selector")}function He(e){const t="string"==typeof e?new r.A(e):e,n=[];for(;!t.eof();)n.push(Be(t));let o;if(1===n.length)o=n[0];else{o=new m(t,"property-name",t.start,t.end);for(let e=0,t=n.length;e<t;e++)o.add(n[e])}return o}function Qe(e){return Ke(e)}function Je(e){return Ke(e)}function Ke(e,t){t=t||"item";const n="string"==typeof e?new r.A(e):e,o=[],i=[],s=()=>{const e=a(i);if(e.length){const r=new m(n,t,e[0].start,p(e).end);for(let t=0;t<e.length;t++)r.add(e[t]);o.push(r)}i.length=0};let u;for(;!n.eof();)if(n.eat(44))s();else{if(!(u=Be(n)))throw n.error("Unexpected character");"comment"!==u.type&&i.push(u)}return s(),o}function Ze(e,t,n,r){if(!t.length)return null;const o=t[0];return o.end=p(t).end,new Xe(e,o,n,r)}class Xe extends i{constructor(e,t,n,r){super("rule"),this.stream=e,this.selectorToken=t,this.contentStartToken=n,this.contentEndToken=r||n,this._parsedSelector=null}get selector(){return d(this.selectorToken)}get parsedSelector(){return this._parsedSelector||(this._parsedSelector=Ge(this.selectorToken.limit())),this._parsedSelector}get start(){return this.selectorToken&&this.selectorToken.start}get end(){const e=this.contentEndToken||this.contentStartToken||this.nameToken;return e&&e.end}}function Ye(e,t,n,r){if(!t.length)return null;let o,i=0;const s=t[i++];return i<t.length?(o=t[i++],o.type="expression",o.end=p(t).end):o=new m(e,"expression",s.end,s.end),new et(e,s,o,n,r)}class et extends i{constructor(e,t,n,r,o){super("at-rule"),this.stream=e,this.nameToken=t,this.expressionToken=n,this.contentStartToken=r,this.contentEndToken=o||r,this._parsedExpression=null}get name(){return d(this.nameToken&&this.nameToken.item(0))}get expression(){return d(this.expressionToken)}get parsedExpression(){return this._parsedExpression||(this._parsedExpression=Je(this.expressionToken.limit())),this._parsedExpression}get start(){return this.nameToken&&this.nameToken.start}get end(){const e=this.contentEndToken||this.contentStartToken||this.nameToken;return e&&e.end}}function tt(e,t,n){if(!t.length)return null;let r,o,i=0;const s=t[i++];return i<t.length&&(o=t[i++],o.type="value",o.end=p(t).end),s&&o&&(r=new m(e,"separator",s.end,o.start)),new nt(e,s,o,r,n)}class nt extends i{constructor(e,t,n,r,o){super("property"),this.stream=e,this.nameToken=t,this.valueToken=n,this._parsedName=null,this._parsedValue=null,this.separatorToken=r,this.terminatorToken=o}get name(){return d(this.nameToken)}get parsedName(){return this._parsedName||(this._parsedName=He(this.nameToken.limit())),this._parsedName}get value(){return d(this.valueToken)}get parsedValue(){return this._parsedValue||(this._parsedValue=Qe(this.valueToken.limit())),this._parsedValue}get separator(){return d(this.separatorToken)}get terminator(){return d(this.terminatorToken)}get start(){const e=this.nameToken||this.separatorToken||this.valueToken||this.terminatorToken;return e&&e.start}get end(){const e=this.terminatorToken||this.valueToken||this.separatorToken||this.nameToken;return e&&e.end}}function rt(e,t){t=t||Be;const n="string"==typeof e?new r.A(e):e,o=[];let i;for(;!n.eof()&&(i=t(n));)o.push(i);return o}function ot(e,t){if(e.eat(40)){let n,r=1;for(;!e.eof();)if(e.eat(41)){if(r--,!r)break}else if(e.eat(40))r++;else{if(Me(e)||U(e))continue;if(n=G(e)){t.addComment(n);continue}e.next()}return!0}return!1}const it=function(e){const t="string"==typeof e?new r.A(e):e,n=new s;let o,i,a,u=n,c=[];const l=()=>{i&&(c.push(i),i=null)};for(;!t.eof();)if(!X(t))if(a=G(t))n.addComment(a);else if(t.start=t.pos,t.eatWhile(58))c.length||(i?l():i=new m(t,"preparse"));else if(t.eat(59))l(),u.add(tt(t,c,new m(t,"termintator"))),c.length=0;else if(t.eat(123))l(),c.length>0&&(o="at-keyword"===c[0].type?Ye(t,c,new m(t,"body-start")):Ze(t,c,new m(t,"body-start")),u.add(o),u=o,c.length=0);else if(t.eat(125))l(),u.add(tt(t,c)),"stylesheet"!==u.type&&(u.contentEndToken=new m(t,"body-end"),u=u.parent),c.length=0;else if(a=M(t))l(),c.push(a);else{if(!(Me(t)||D(t)||ie(t)||ot(t,n)||U(t)||t.next()))throw new Error(`Unexpected end-of-stream at ${t.pos}`);i=i||new m(t,"preparse"),i.end=t.pos}for(i&&c.push(i),u.add(tt(t,c)),t.start=t.pos;u&&u!==n;)u.contentEndToken=new m(t,"body-end"),u=u.parent;return n}},7683:function(e,t,n){"use strict";var r,o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),s=0;s<n.length;s++)"default"!==n[s]&&o(t,e,n[s]);return i(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.activateEmmetExtension=function(e){(0,w.migrateEmmetExtensionsPath)(),C(),(0,w.updateEmmetExtensionsPath)(),e.subscriptions.push(a.commands.registerCommand("editor.emmet.action.wrapWithAbbreviation",e=>{(0,c.wrapWithAbbreviation)(e)})),e.subscriptions.push(a.commands.registerCommand("emmet.expandAbbreviation",e=>{(0,c.expandEmmetAbbreviation)(e)})),e.subscriptions.push(a.commands.registerCommand("editor.emmet.action.removeTag",()=>(0,l.removeTag)())),e.subscriptions.push(a.commands.registerCommand("editor.emmet.action.updateTag",e=>e&&"string"==typeof e?(0,f.updateTag)(e):(0,f.updateTag)(void 0))),e.subscriptions.push(a.commands.registerCommand("editor.emmet.action.matchTag",()=>{(0,p.matchTag)()})),e.subscriptions.push(a.commands.registerCommand("editor.emmet.action.balanceOut",()=>{(0,d.balanceOut)()})),e.subscriptions.push(a.commands.registerCommand("editor.emmet.action.balanceIn",()=>{(0,d.balanceIn)()})),e.subscriptions.push(a.commands.registerCommand("editor.emmet.action.splitJoinTag",()=>(0,m.splitJoinTag)())),e.subscriptions.push(a.commands.registerCommand("editor.emmet.action.mergeLines",()=>{(0,h.mergeLines)()})),e.subscriptions.push(a.commands.registerCommand("editor.emmet.action.toggleComment",()=>{(0,g.toggleComment)()})),e.subscriptions.push(a.commands.registerCommand("editor.emmet.action.nextEditPoint",()=>{(0,b.fetchEditPoint)("next")})),e.subscriptions.push(a.commands.registerCommand("editor.emmet.action.prevEditPoint",()=>{(0,b.fetchEditPoint)("prev")})),e.subscriptions.push(a.commands.registerCommand("editor.emmet.action.selectNextItem",()=>{(0,y.fetchSelectItem)("next")})),e.subscriptions.push(a.commands.registerCommand("editor.emmet.action.selectPrevItem",()=>{(0,y.fetchSelectItem)("prev")})),e.subscriptions.push(a.commands.registerCommand("editor.emmet.action.evaluateMathExpression",()=>{(0,v.evaluateMathExpression)()})),e.subscriptions.push(a.commands.registerCommand("editor.emmet.action.incrementNumberByOneTenth",()=>(0,x.incrementDecrement)(.1))),e.subscriptions.push(a.commands.registerCommand("editor.emmet.action.incrementNumberByOne",()=>(0,x.incrementDecrement)(1))),e.subscriptions.push(a.commands.registerCommand("editor.emmet.action.incrementNumberByTen",()=>(0,x.incrementDecrement)(10))),e.subscriptions.push(a.commands.registerCommand("editor.emmet.action.decrementNumberByOneTenth",()=>(0,x.incrementDecrement)(-.1))),e.subscriptions.push(a.commands.registerCommand("editor.emmet.action.decrementNumberByOne",()=>(0,x.incrementDecrement)(-1))),e.subscriptions.push(a.commands.registerCommand("editor.emmet.action.decrementNumberByTen",()=>(0,x.incrementDecrement)(-10))),e.subscriptions.push(a.commands.registerCommand("editor.emmet.action.reflectCSSValue",()=>(0,k.reflectCssValue)())),e.subscriptions.push(a.commands.registerCommand("workbench.action.showEmmetCommands",()=>{a.commands.executeCommand("workbench.action.quickOpen",">Emmet: ")})),e.subscriptions.push(a.workspace.onDidChangeConfiguration(e=>{(e.affectsConfiguration("emmet.includeLanguages")||e.affectsConfiguration("emmet.useInlineCompletions"))&&C(),e.affectsConfiguration("emmet.extensionsPath")&&(0,w.updateEmmetExtensionsPath)()})),e.subscriptions.push(a.workspace.onDidSaveTextDocument(e=>{const t=(0,w.getPathBaseName)(e.fileName);t.startsWith("snippets")&&t.endsWith(".json")&&(0,w.updateEmmetExtensionsPath)(!0)})),e.subscriptions.push(a.workspace.onDidOpenTextDocument(e=>{const t=(0,w.getEmmetMode)(e.languageId,{},[])??"",n=(0,w.getSyntaxes)();(n.markup.includes(t)||n.stylesheet.includes(t))&&(0,A.addFileToParseCache)(e)})),e.subscriptions.push(a.workspace.onDidCloseTextDocument(e=>{const t=(0,w.getEmmetMode)(e.languageId,{},[])??"",n=(0,w.getSyntaxes)();(n.markup.includes(t)||n.stylesheet.includes(t))&&(0,A.removeFileFromParseCache)(e)}))},t.deactivate=function(){j(),(0,A.clearParseCache)()};const a=s(n(1398)),u=n(7884),c=n(789),l=n(6558),f=n(8465),p=n(731),d=n(7470),m=n(6116),h=n(8799),g=n(2907),b=n(5368),y=n(9835),v=n(9879),x=n(4042),w=n(4900),k=n(3795),A=n(8408),S=new Map,O=[];function C(e){j();const t=new u.DefaultCompletionItemProvider,n={async provideInlineCompletionItems(e,n,r,o){const i=await t.provideCompletionItems(e,n,o,{triggerCharacter:void 0,triggerKind:a.CompletionTriggerKind.Invoke});if(!i)return;const s=i.items[0];if(!s||!s.insertText)return;const u=s.range;return e.getText(u)===s.label?[{insertText:s.insertText,filterText:s.label,range:u}]:void 0}},r=a.workspace.getConfiguration("emmet").get("useInlineCompletions"),o=(0,w.getMappingForIncludedLanguages)();Object.keys(o).forEach(e=>{if(S.has(e)&&S.get(e)===o[e])return;if(r){const t=a.languages.registerInlineCompletionItemProvider({language:e,scheme:"*"},n);O.push(t)}const i=a.languages.registerCompletionItemProvider({language:e,scheme:"*"},t,...w.LANGUAGE_MODES[o[e]]);O.push(i),S.set(e,o[e])}),Object.keys(w.LANGUAGE_MODES).forEach(e=>{if(!S.has(e)){if(r){const t=a.languages.registerInlineCompletionItemProvider({language:e,scheme:"*"},n);O.push(t)}const o=a.languages.registerCompletionItemProvider({language:e,scheme:"*"},t,...w.LANGUAGE_MODES[e]);O.push(o),S.set(e,e)}})}function j(){let e;for(S.clear();e=O.pop();)e.dispose()}},7859:e=>{"use strict";e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},7884:function(e,t,n){"use strict";var r,o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),s=0;s<n.length;s++)"default"!==n[s]&&o(t,e,n[s]);return i(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultCompletionItemProvider=void 0;const a=s(n(1398)),u=n(789),c=n(4900),l=n(8408);t.DefaultCompletionItemProvider=class{lastCompletionType;provideCompletionItems(e,t,n,r){const o=this.provideCompletionItemsInternal(e,t,r);if(o)return o.then(e=>{if(!e||!e.items.length)return this.lastCompletionType=void 0,e;const t=e.items[0],n=t.documentation?t.documentation.toString():"";return n.startsWith("<")?this.lastCompletionType="html":n.indexOf(":")>0&&n.endsWith(";")?this.lastCompletionType="css":this.lastCompletionType=void 0,e});this.lastCompletionType=void 0}provideCompletionItemsInternal(e,t,n){const r=a.workspace.getConfiguration("emmet"),o=r.excludeLanguages?r.excludeLanguages:[];if(o.includes(e.languageId))return;const i=(0,c.getMappingForIncludedLanguages)(),s=!!i[e.languageId],f=(0,c.getEmmetMode)(s?i[e.languageId]:e.languageId,i,o);if(!f||"never"===r.showExpandedAbbreviation||(s||"jsx"===f)&&"always"!==r.showExpandedAbbreviation)return;let p,d,m=f,h="html"===m||"jsx"===m||"xml"===m;const g=(0,c.toLSTextDocument)(e);t=e.validatePosition(t);const b=new a.Range(t.line,0,t.line,t.character);if(e.getText(b).trimStart().startsWith("//"))return;const y=(0,c.getEmmetHelper)();if("html"===m){if(n.triggerKind===a.CompletionTriggerKind.TriggerForIncompleteCompletions)switch(this.lastCompletionType){case"html":h=!1;break;case"css":h=!1,m="css"}if(h){const n=e.offsetAt(t),r=(0,l.getRootNode)(e,!0),o=(0,c.getHtmlFlatNode)(e.getText(),r,n,!1);if(o)if("script"===o.name){const e=o.attributes.find(e=>"type"===e.name.toString());if(!e)return;{const t=e.value.toString();if("application/javascript"===t||"text/javascript"===t){if(!(0,u.getSyntaxFromArgs)({language:"javascript"}))return;h=!1}else c.allowedMimeTypesInScriptTag.includes(t)&&(h=!1)}}else if("style"===o.name)m="css",h=!1;else{const e=o.attributes.find(e=>"style"===e.name.toString());e&&e.value.start<=n&&n<=e.value.end&&(m="css",h=!1)}}}const v=(0,c.isStyleSheet)(m)?{lookAhead:!1,syntax:"stylesheet"}:{lookAhead:!0,syntax:"markup"},x=y.extractAbbreviation(g,t,v);if(!x||!y.isAbbreviationValid(m,x.abbreviation))return;const w=e.offsetAt(t);if((0,c.isStyleSheet)(e.languageId)&&n.triggerKind!==a.CompletionTriggerKind.TriggerForIncompleteCompletions){if(h=!0,p=!0===a.workspace.getConfiguration("emmet").optimizeStylesheetParsing&&e.lineCount>1e3?(0,c.parsePartialStylesheet)(e,t):(0,l.getRootNode)(e,!0),!p)return;d=(0,c.getFlatNode)(p,w,!0)}if(!(0,c.isStyleSheet)(e.languageId)&&(0,c.isStyleSheet)(m)&&n.triggerKind!==a.CompletionTriggerKind.TriggerForIncompleteCompletions){if(h=!0,p=(0,l.getRootNode)(e,!0),!p)return;const n=(0,c.getFlatNode)(p,w,!0),r=(0,c.getEmbeddedCssNodeIfAny)(e,n,t);d=(0,c.getFlatNode)(r,w,!0)}if(h&&!(0,u.isValidLocationForEmmetAbbreviation)(e,p,d,m,w,(k=x.abbreviationRange,new a.Range(k.start.line,k.start.character,k.end.line,k.end.character))))return;var k;let A=Promise.resolve(!1);if(!(0,c.isStyleSheet)(m)&&("javascript"===e.languageId||"javascriptreact"===e.languageId||"typescript"===e.languageId||"typescriptreact"===e.languageId)){const t=x.abbreviation;A=t.startsWith("this.")||/\[[^\]=]*\]/.test(t)?Promise.resolve(!0):a.commands.executeCommand("vscode.executeDocumentSymbolProvider",e.uri).then(e=>!!e&&e.some(e=>t===e.name||t.startsWith(e.name+".")&&!/>|\*|\+/.test(t)))}return A.then(n=>{if(n)return;const o=(0,c.getEmmetConfiguration)(m),i=y.doComplete((0,c.toLSTextDocument)(e),t,m,o),s=[];return i&&i.items&&i.items.forEach(e=>{const t=new a.CompletionItem(e.label);t.documentation=e.documentation,t.detail=e.detail,t.insertText=new a.SnippetString(e.textEdit.newText);const n=e.textEdit.range;t.range=new a.Range(n.start.line,n.start.character,n.end.line,n.end.character),t.filterText=e.filterText,t.sortText=e.sortText,!0===r.showSuggestionsAsSnippets&&(t.kind=a.CompletionItemKind.Snippet),s.push(t)}),new a.CompletionList(s,!0)})}}},8129:e=>{"use strict";e.exports=Math.max},8165:(e,t,n)=>{"use strict";var r=n(9138),o=n(6095),i=n(4531),s=n(7196);e.exports=s||r.call(i,o)},8408:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getRootNode=function(e,t){const n=e.uri.toString(),r=a.get(n),u=e.version;if(t&&r&&u===r.key)return r.value;const c=((0,s.isStyleSheet)(e.languageId)?i.default:o.default)(e.getText());return t&&a.set(n,{key:u,value:c}),c},t.addFileToParseCache=function(e){const t=e.uri.toString();a.set(t,void 0)},t.removeFileFromParseCache=function(e){const t=e.uri.toString();a.delete(t)},t.clearParseCache=function(){a.clear()};const o=r(n(1253)),i=r(n(7545)),s=n(4900),a=new Map},8449:e=>{"use strict";e.exports=Math.floor},8465:function(e,t,n){"use strict";var r,o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),s=0;s<n.length;s++)"default"!==n[s]&&o(t,e,n[s]);return i(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.updateTag=async function(e){if(!(0,u.validate)(!1)||!a.window.activeTextEditor)return;const t=a.window.activeTextEditor,n=t.document,r=(0,c.getRootNode)(n,!0);if(!r)return;const o=t.selections.reduceRight((e,t)=>e.concat(function(e,t,n){const r=e.getText(),o=e.offsetAt(t.start),i=(0,u.getHtmlFlatNode)(r,n,o,!0);return i?function(e,t){const n=[];if(e.open){const r=t.positionAt(e.open.start);n.push({name:e.name,range:new a.Range(r.translate(0,1),r.translate(0,1).translate(0,e.name.length))})}if(e.close){const r=t.positionAt(e.close.start),o=t.positionAt(e.close.end);n.push({name:e.name,range:new a.Range(r.translate(0,2),o.translate(0,-1))})}return n}(i,e):[]}(n,t,r)),[]);if(!o.length)return;const i=o[0].name,s=o.every(e=>e.name===i);return!(void 0===e&&!(e=await a.window.showInputBox({prompt:"Enter Tag",value:s?i:void 0})))&&t.edit(t=>{o.forEach(n=>{t.replace(n.range,e)})})};const a=s(n(1398)),u=n(4900),c=n(8408)},8479:e=>{"use strict";e.exports=Math.abs},8498:(e,t,n)=>{"use strict";var r=n(9138),o=n(528),i=n(6108),s=n(3468),a=o("%Function.prototype.apply%"),u=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||r.call(u,a),l=n(4940),f=o("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new s("a function is required");var t=c(r,u,arguments);return i(t,1+f(0,e.length-(arguments.length-1)),!0)};var p=function(){return c(r,a,arguments)};l?l(e.exports,"apply",{value:p}):e.exports.apply=p},8554:(e,t,n)=>{"use strict";var r=Function.prototype.call,o=Object.prototype.hasOwnProperty,i=n(9138);e.exports=i.call(r,o)},8769:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=class{constructor(e,t,n){null==n&&"string"==typeof e&&(n=e.length),this.string=e,this.pos=this.start=t||0,this.end=n}eof(){return this.pos>=this.end}limit(e,t){return new this.constructor(this.string,e,t)}peek(){return this.string.charCodeAt(this.pos)}next(){if(this.pos<this.string.length)return this.string.charCodeAt(this.pos++)}eat(e){const t=this.peek(),n="function"==typeof e?e(t):t===e;return n&&this.next(),n}eatWhile(e){const t=this.pos;for(;!this.eof()&&this.eat(e););return this.pos!==t}backUp(e){this.pos-=e||1}current(){return this.substring(this.start,this.pos)}substring(e,t){return this.string.slice(e,t)}error(e){const t=new Error(`${e} at char ${this.pos+1}`);return t.originalMessage=e,t.pos=this.pos,t.string=this.string,t}}},8794:e=>{"use strict";var t=Object.prototype.toString,n=Math.max,r=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var o=0;o<t.length;o+=1)n[o+e.length]=t[o];return n};e.exports=function(e){var o=this;if("function"!=typeof o||"[object Function]"!==t.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,s=function(e){for(var t=[],n=1,r=0;n<e.length;n+=1,r+=1)t[r]=e[n];return t}(arguments),a=n(0,o.length-s.length),u=[],c=0;c<a;c++)u[c]="$"+c;if(i=Function("binder","return function ("+function(e){for(var t="",n=0;n<e.length;n+=1)t+=e[n],n+1<e.length&&(t+=",");return t}(u)+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof i){var t=o.apply(this,r(s,arguments));return Object(t)===t?t:this}return o.apply(e,r(s,arguments))}),o.prototype){var l=function(){};l.prototype=o.prototype,i.prototype=new l,l.prototype=null}return i}},8799:function(e,t,n){"use strict";var r,o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),s=0;s<n.length;s++)"default"!==n[s]&&o(t,e,n[s]);return i(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.mergeLines=function(){if(!(0,u.validate)(!1)||!a.window.activeTextEditor)return;const e=a.window.activeTextEditor,t=(0,c.getRootNode)(e.document,!0);return t?e.edit(n=>{Array.from(e.selections).reverse().forEach(r=>{const o=function(e,t,n){let r,o;const i=e.offsetAt(t.start),s=e.offsetAt(t.end);if(t.isEmpty?r=o=(0,u.getFlatNode)(n,i,!0):(r=(0,u.getFlatNode)(n,i,!0),o=(0,u.getFlatNode)(n,s,!0)),!r||!o)return;const c=e.positionAt(r.start),l=c.line,f=c.character,p=e.positionAt(o.end).line;if(l===p)return;const d=(0,u.offsetRangeToVsRange)(e,r.start,o.end);let m=e.lineAt(l).text.substr(f);for(let t=l+1;t<=p;t++)m+=e.lineAt(t).text.trim();return new a.TextEdit(d,m)}(e.document,r,t);o&&n.replace(o.range,o.newText)})}):void 0};const a=s(n(1398)),u=n(4900),c=n(8408)},9110:e=>{"use strict";e.exports=EvalError},9138:(e,t,n)=>{"use strict";var r=n(8794);e.exports=Function.prototype.bind||r},9208:(e,t,n)=>{var r=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++)n[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return n},o=/%[sdj%]/g;t.format=function(e){if(!y(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(u(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,i=r.length,s=String(e).replace(o,function(e){if("%%"===e)return"%";if(n>=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}}),a=r[n];n<i;a=r[++n])g(a)||!w(a)?s+=" "+a:s+=" "+u(a);return s},t.deprecate=function(e,n){if("undefined"!=typeof process&&!0===process.noDeprecation)return e;if("undefined"==typeof process)return function(){return t.deprecate(e,n).apply(this,arguments)};var r=!1;return function(){if(!r){if(process.throwDeprecation)throw new Error(n);process.traceDeprecation?console.trace(n):console.error(n),r=!0}return e.apply(this,arguments)}};var i={},s=/^$/;if({}.NODE_DEBUG){var a={}.NODE_DEBUG;a=a.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),s=new RegExp("^"+a+"$","i")}function u(e,n){var r={seen:[],stylize:l};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),h(n)?r.showHidden=n:n&&t._extend(r,n),v(r.showHidden)&&(r.showHidden=!1),v(r.depth)&&(r.depth=2),v(r.colors)&&(r.colors=!1),v(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=c),f(r,e,r.depth)}function c(e,t){var n=u.styles[t];return n?"["+u.colors[n][0]+"m"+e+"["+u.colors[n][1]+"m":e}function l(e,t){return e}function f(e,n,r){if(e.customInspect&&n&&S(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(r,e);return y(o)||(o=f(e,o,r)),o}var i=function(e,t){if(v(t))return e.stylize("undefined","undefined");if(y(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return b(t)?e.stylize(""+t,"number"):h(t)?e.stylize(""+t,"boolean"):g(t)?e.stylize("null","null"):void 0}(e,n);if(i)return i;var s=Object.keys(n),a=function(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(n)),A(n)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return p(n);if(0===s.length){if(S(n)){var u=n.name?": "+n.name:"";return e.stylize("[Function"+u+"]","special")}if(x(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(k(n))return e.stylize(Date.prototype.toString.call(n),"date");if(A(n))return p(n)}var c,l="",w=!1,O=["{","}"];return m(n)&&(w=!0,O=["[","]"]),S(n)&&(l=" [Function"+(n.name?": "+n.name:"")+"]"),x(n)&&(l=" "+RegExp.prototype.toString.call(n)),k(n)&&(l=" "+Date.prototype.toUTCString.call(n)),A(n)&&(l=" "+p(n)),0!==s.length||w&&0!=n.length?r<0?x(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),c=w?function(e,t,n,r,o){for(var i=[],s=0,a=t.length;s<a;++s)T(t,String(s))?i.push(d(e,t,n,r,String(s),!0)):i.push("");return o.forEach(function(o){o.match(/^\d+$/)||i.push(d(e,t,n,r,o,!0))}),i}(e,n,r,a,s):s.map(function(t){return d(e,n,r,a,t,w)}),e.seen.pop(),function(e,t,n){return e.reduce(function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(c,l,O)):O[0]+l+O[1]}function p(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,n,r,o,i){var s,a,u;if((u=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?a=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(a=e.stylize("[Setter]","special")),T(r,o)||(s="["+o+"]"),a||(e.seen.indexOf(u.value)<0?(a=g(n)?f(e,u.value,null):f(e,u.value,n-1)).indexOf("\n")>-1&&(a=i?a.split("\n").map(function(e){return" "+e}).join("\n").slice(2):"\n"+a.split("\n").map(function(e){return" "+e}).join("\n")):a=e.stylize("[Circular]","special")),v(s)){if(i&&o.match(/^\d+$/))return a;(s=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.slice(1,-1),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function m(e){return Array.isArray(e)}function h(e){return"boolean"==typeof e}function g(e){return null===e}function b(e){return"number"==typeof e}function y(e){return"string"==typeof e}function v(e){return void 0===e}function x(e){return w(e)&&"[object RegExp]"===O(e)}function w(e){return"object"==typeof e&&null!==e}function k(e){return w(e)&&"[object Date]"===O(e)}function A(e){return w(e)&&("[object Error]"===O(e)||e instanceof Error)}function S(e){return"function"==typeof e}function O(e){return Object.prototype.toString.call(e)}function C(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!i[e])if(s.test(e)){var n=process.pid;i[e]=function(){var r=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,r)}}else i[e]=function(){};return i[e]},t.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=n(1531),t.isArray=m,t.isBoolean=h,t.isNull=g,t.isNullOrUndefined=function(e){return null==e},t.isNumber=b,t.isString=y,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=v,t.isRegExp=x,t.types.isRegExp=x,t.isObject=w,t.isDate=k,t.types.isDate=k,t.isError=A,t.types.isNativeError=A,t.isFunction=S,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(5272);var j=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function T(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,n;console.log("%s - %s",(n=[C((e=new Date).getHours()),C(e.getMinutes()),C(e.getSeconds())].join(":"),[e.getDate(),j[e.getMonth()],n].join(" ")),t.format.apply(t,arguments))},t.inherits=n(5615),t._extend=function(e,t){if(!t||!w(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var _="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function E(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(_&&e[_]){var t;if("function"!=typeof(t=e[_]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,_,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise(function(e,r){t=e,n=r}),o=[],i=0;i<arguments.length;i++)o.push(arguments[i]);o.push(function(e,r){e?n(e):t(r)});try{e.apply(this,o)}catch(e){n(e)}return r}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),_&&Object.defineProperty(t,_,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,r(e))},t.promisify.custom=_,t.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n]);var r=t.pop();if("function"!=typeof r)throw new TypeError("The last argument must be of type Function");var o=this,i=function(){return r.apply(o,arguments)};e.apply(this,t).then(function(e){process.nextTick(i.bind(null,null,e))},function(e){process.nextTick(E.bind(null,e,i))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,r(e)),t}},9336:(e,t,n)=>{"use strict";var r=n(1292);if(r)try{r([],"length")}catch(e){r=null}e.exports=r},9617:e=>{"use strict";var t,n,r=Function.prototype.toString,o="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof o&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw n}}),n={},o(function(){throw 42},null,t)}catch(e){e!==n&&(o=null)}else o=null;var i=/^\s*class\b/,s=function(e){try{var t=r.call(e);return i.test(t)}catch(e){return!1}},a=Object.prototype.toString,u="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=o?function(e){if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;try{o(e,null,t)}catch(e){if(e!==n)return!1}return!s(e)}:function(e){if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;if(u)return function(e){try{return!s(e)&&(r.call(e),!0)}catch(e){return!1}}(e);if(s(e))return!1;var t=a.call(e);return"[object Function]"===t||"[object GeneratorFunction]"===t}},9629:e=>{"use strict";e.exports=Object},9818:(e,t,n)=>{"use strict";var r=n(528),o=n(8498),i=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&i(e,".prototype.")>-1?o(n):n}},9835:function(e,t,n){"use strict";var r,o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),s=0;s<n.length;s++)"default"!==n[s]&&o(t,e,n[s]);return i(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.fetchSelectItem=function(e){if(!(0,u.validate)()||!a.window.activeTextEditor)return;const t=a.window.activeTextEditor,n=t.document,r=(0,f.getRootNode)(n,!0);if(!r)return;const o=[];t.selections.forEach(i=>{const s=i.isReversed?i.active:i.anchor,a=i.isReversed?i.anchor:i.active;let f;f=(0,u.isStyleSheet)(t.document.languageId)?"next"===e?(0,l.nextItemStylesheet)(n,s,a,r):(0,l.prevItemStylesheet)(n,s,a,r):"next"===e?(0,c.nextItemHTML)(n,s,a,r):(0,c.prevItemHTML)(n,s,a,r),o.push(f||i)}),t.selections=o,t.revealRange(t.selections[t.selections.length-1])};const a=s(n(1398)),u=n(4900),c=n(3142),l=n(5843),f=n(8408)},9838:e=>{"use strict";e.exports=Error},9879:function(e,t,n){"use strict";var r,o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),s=0;s<n.length;s++)"default"!==n[s]&&o(t,e,n[s]);return i(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.evaluateMathExpression=function(){if(!a.window.activeTextEditor)return a.window.showInformationMessage("No editor is active"),Promise.resolve(!1);const e=a.window.activeTextEditor;return e.edit(t=>{e.selections.forEach(n=>{const r=n.isReversed?n.active:n.anchor,o=n.isReversed?n.anchor:n.active,i=e.document.getText(new a.Range(r,o));try{if(i){const e=String((0,u.default)(i));t.replace(new a.Range(r,o),e)}else{const r=e.document.getText(new a.Range(new a.Position(n.end.line,0),o)),i=(0,u.extract)(r);if(!i)throw new Error("Invalid extracted indices");const s=String((0,u.default)(r.substr(i[0],i[1]))),c=new a.Range(new a.Position(n.end.line,i[0]),new a.Position(n.end.line,i[1]));t.replace(c,s)}}catch(e){a.window.showErrorMessage("Could not evaluate expression"),console.warn("Math evaluation error",e)}})})};const a=s(n(1398)),u=s(n(2915))},9903:(e,t,n)=>{"use strict";var r=n(9138),o=n(3468),i=n(4531),s=n(8165);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new o("a function is required");return s(r,i,e)}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};(()=>{"use strict";var e=r;Object.defineProperty(e,"__esModule",{value:!0}),e.activate=function(e){(0,t.activateEmmetExtension)(e)};const t=n(7683)})();var o=exports;for(var i in r)o[i]=r[i];r.__esModule&&Object.defineProperty(o,"__esModule",{value:!0})})();
2
- //# sourceMappingURL=emmetBrowserMain.js.map
1
+ "use strict";var jd=Object.create;var xr=Object.defineProperty;var Id=Object.getOwnPropertyDescriptor;var Fd=Object.getOwnPropertyNames;var Ld=Object.getPrototypeOf,_d=Object.prototype.hasOwnProperty;var he=(e,t)=>()=>(e&&(t=e(e=0)),t);var R=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),vs=(e,t)=>{for(var r in t)xr(e,r,{get:t[r],enumerable:!0})},xs=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Fd(t))!_d.call(e,i)&&i!==r&&xr(e,i,{get:()=>t[i],enumerable:!(n=Id(t,i))||n.enumerable});return e};var le=(e,t,r)=>(r=e!=null?jd(Ld(e)):{},xs(t||!e||!e.__esModule?xr(r,"default",{value:e,enumerable:!0}):r,e)),ws=e=>xs(xr({},"__esModule",{value:!0}),e);var w,p=he(()=>{w={}});function $r(e,t){t===void 0&&(t=!1);var r=e.length,n=0,i="",o=0,s=16,a=0,l=0,u=0,c=0,f=0;function m(y,E){for(var S=0,k=0;S<y||!E;){var P=e.charCodeAt(n);if(P>=48&&P<=57)k=k*16+P-48;else if(P>=65&&P<=70)k=k*16+P-65+10;else if(P>=97&&P<=102)k=k*16+P-97+10;else break;n++,S++}return S<y&&(k=-1),k}function d(y){n=y,i="",o=0,s=16,f=0}function v(){var y=n;if(e.charCodeAt(n)===48)n++;else for(n++;n<e.length&&ut(e.charCodeAt(n));)n++;if(n<e.length&&e.charCodeAt(n)===46)if(n++,n<e.length&&ut(e.charCodeAt(n)))for(n++;n<e.length&&ut(e.charCodeAt(n));)n++;else return f=3,e.substring(y,n);var E=n;if(n<e.length&&(e.charCodeAt(n)===69||e.charCodeAt(n)===101))if(n++,(n<e.length&&e.charCodeAt(n)===43||e.charCodeAt(n)===45)&&n++,n<e.length&&ut(e.charCodeAt(n))){for(n++;n<e.length&&ut(e.charCodeAt(n));)n++;E=n}else f=3;return e.substring(y,E)}function b(){for(var y="",E=n;;){if(n>=r){y+=e.substring(E,n),f=2;break}var S=e.charCodeAt(n);if(S===34){y+=e.substring(E,n),n++;break}if(S===92){if(y+=e.substring(E,n),n++,n>=r){f=2;break}var k=e.charCodeAt(n++);switch(k){case 34:y+='"';break;case 92:y+="\\";break;case 47:y+="/";break;case 98:y+="\b";break;case 102:y+="\f";break;case 110:y+=`
2
+ `;break;case 114:y+="\r";break;case 116:y+=" ";break;case 117:var P=m(4,!0);P>=0?y+=String.fromCharCode(P):f=4;break;default:f=5}E=n;continue}if(S>=0&&S<=31)if(Mt(S)){y+=e.substring(E,n),f=2;break}else f=6;n++}return y}function A(){if(i="",f=0,o=n,l=a,c=u,n>=r)return o=r,s=17;var y=e.charCodeAt(n);if(gi(y)){do n++,i+=String.fromCharCode(y),y=e.charCodeAt(n);while(gi(y));return s=15}if(Mt(y))return n++,i+=String.fromCharCode(y),y===13&&e.charCodeAt(n)===10&&(n++,i+=`
3
+ `),a++,u=n,s=14;switch(y){case 123:return n++,s=1;case 125:return n++,s=2;case 91:return n++,s=3;case 93:return n++,s=4;case 58:return n++,s=6;case 44:return n++,s=5;case 34:return n++,i=b(),s=10;case 47:var E=n-1;if(e.charCodeAt(n+1)===47){for(n+=2;n<r&&!Mt(e.charCodeAt(n));)n++;return i=e.substring(E,n),s=12}if(e.charCodeAt(n+1)===42){n+=2;for(var S=r-1,k=!1;n<S;){var P=e.charCodeAt(n);if(P===42&&e.charCodeAt(n+1)===47){n+=2,k=!0;break}n++,Mt(P)&&(P===13&&e.charCodeAt(n)===10&&n++,a++,u=n)}return k||(n++,f=1),i=e.substring(E,n),s=13}return i+=String.fromCharCode(y),n++,s=16;case 45:if(i+=String.fromCharCode(y),n++,n===r||!ut(e.charCodeAt(n)))return s=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return i+=v(),s=11;default:for(;n<r&&x(y);)n++,y=e.charCodeAt(n);if(o!==n){switch(i=e.substring(o,n),i){case"true":return s=8;case"false":return s=9;case"null":return s=7}return s=16}return i+=String.fromCharCode(y),n++,s=16}}function x(y){if(gi(y)||Mt(y))return!1;switch(y){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function T(){var y;do y=A();while(y>=12&&y<=15);return y}return{setPosition:d,getPosition:function(){return n},scan:t?T:A,getToken:function(){return s},getTokenValue:function(){return i},getTokenOffset:function(){return o},getTokenLength:function(){return n-o},getTokenStartLine:function(){return l},getTokenStartCharacter:function(){return o-c},getTokenError:function(){return f}}}function gi(e){return e===32||e===9||e===11||e===12||e===160||e===5760||e>=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function Mt(e){return e===10||e===13||e===8232||e===8233}function ut(e){return e>=48&&e<=57}var Rr=he(()=>{"use strict";p()});var bi=he(()=>{"use strict";p();Rr()});function ha(e,t,r){t===void 0&&(t=[]),r===void 0&&(r=jr.DEFAULT);var n=null,i=[],o=[];function s(l){Array.isArray(i)?i.push(l):n!==null&&(i[n]=l)}var a={onObjectBegin:function(){var l={};s(l),o.push(i),i=l,n=null},onObjectProperty:function(l){n=l},onObjectEnd:function(){i=o.pop()},onArrayBegin:function(){var l=[];s(l),o.push(i),i=l,n=null},onArrayEnd:function(){i=o.pop()},onLiteralValue:s,onError:function(l,u,c){t.push({error:l,offset:u,length:c})}};return ma(e,a,r),i[0]}function ma(e,t,r){r===void 0&&(r=jr.DEFAULT);var n=$r(e,!1);function i($){return $?function(){return $(n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter())}:function(){return!0}}function o($){return $?function(F){return $(F,n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter())}:function(){return!0}}var s=i(t.onObjectBegin),a=o(t.onObjectProperty),l=i(t.onObjectEnd),u=i(t.onArrayBegin),c=i(t.onArrayEnd),f=o(t.onLiteralValue),m=o(t.onSeparator),d=i(t.onComment),v=o(t.onError),b=r&&r.disallowComments,A=r&&r.allowTrailingComma;function x(){for(;;){var $=n.scan();switch(n.getTokenError()){case 4:T(14);break;case 5:T(15);break;case 3:T(13);break;case 1:b||T(11);break;case 2:T(12);break;case 6:T(16);break}switch($){case 12:case 13:b?T(10):d();break;case 16:T(1);break;case 15:case 14:break;default:return $}}}function T($,F,C){if(F===void 0&&(F=[]),C===void 0&&(C=[]),v($),F.length+C.length>0)for(var g=n.getToken();g!==17;){if(F.indexOf(g)!==-1){x();break}else if(C.indexOf(g)!==-1)break;g=x()}}function y($){var F=n.getTokenValue();return $?f(F):a(F),x(),!0}function E(){switch(n.getToken()){case 11:var $=n.getTokenValue(),F=Number($);isNaN(F)&&(T(2),F=0),f(F);break;case 7:f(null);break;case 8:f(!0);break;case 9:f(!1);break;default:return!1}return x(),!0}function S(){return n.getToken()!==10?(T(3,[],[2,5]),!1):(y(!1),n.getToken()===6?(m(":"),x(),j()||T(4,[],[2,5])):T(5,[],[2,5]),!0)}function k(){s(),x();for(var $=!1;n.getToken()!==2&&n.getToken()!==17;){if(n.getToken()===5){if($||T(4,[],[]),m(","),x(),n.getToken()===2&&A)break}else $&&T(6,[],[]);S()||T(4,[],[2,5]),$=!0}return l(),n.getToken()!==2?T(7,[2],[]):x(),!0}function P(){u(),x();for(var $=!1;n.getToken()!==4&&n.getToken()!==17;){if(n.getToken()===5){if($||T(4,[],[]),m(","),x(),n.getToken()===4&&A)break}else $&&T(6,[],[]);j()||T(4,[],[4,5]),$=!0}return c(),n.getToken()!==4?T(8,[4],[]):x(),!0}function j(){switch(n.getToken()){case 3:return P();case 1:return k();case 10:return y(!0);default:return E()}}return x(),n.getToken()===17?r.allowEmptyContent?!0:(T(4,[],[]),!1):j()?(n.getToken()!==17&&T(9,[],[]),!0):(T(4,[],[]),!1)}var jr,yi=he(()=>{"use strict";p();Rr();(function(e){e.DEFAULT={allowTrailingComma:!1}})(jr||(jr={}))});var ga=he(()=>{"use strict";p();bi();yi()});function ya(e){switch(e){case 1:return"InvalidSymbol";case 2:return"InvalidNumberFormat";case 3:return"PropertyNameExpected";case 4:return"ValueExpected";case 5:return"ColonExpected";case 6:return"CommaExpected";case 7:return"CloseBraceExpected";case 8:return"CloseBracketExpected";case 9:return"EndOfFileExpected";case 10:return"InvalidCommentToken";case 11:return"UnexpectedEndOfComment";case 12:return"UnexpectedEndOfString";case 13:return"UnexpectedEndOfNumber";case 14:return"InvalidUnicode";case 15:return"InvalidEscapeCharacter";case 16:return"InvalidCharacter"}return"<unknown ParseErrorCode>"}var ba,va=he(()=>{"use strict";p();bi();ga();Rr();yi();ba=ha});var vi=R((G1,xa)=>{"use strict";p();xa.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(var o in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var s=Object.getOwnPropertySymbols(t);if(s.length!==1||s[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(t,r);if(a.value!==i||a.enumerable!==!0)return!1}return!0}});var xi=R((J1,wa)=>{"use strict";p();var ig=vi();wa.exports=function(){return ig()&&!!Symbol.toStringTag}});var wi=R((X1,ka)=>{"use strict";p();ka.exports=Object});var Sa=R((K1,Aa)=>{"use strict";p();Aa.exports=Error});var Ta=R((tk,Ea)=>{"use strict";p();Ea.exports=EvalError});var Oa=R((nk,Ca)=>{"use strict";p();Ca.exports=RangeError});var Na=R((ok,Pa)=>{"use strict";p();Pa.exports=ReferenceError});var ki=R((ak,$a)=>{"use strict";p();$a.exports=SyntaxError});var ct=R((uk,Ra)=>{"use strict";p();Ra.exports=TypeError});var Ia=R((fk,ja)=>{"use strict";p();ja.exports=URIError});var La=R((dk,Fa)=>{"use strict";p();Fa.exports=Math.abs});var Da=R((mk,_a)=>{"use strict";p();_a.exports=Math.floor});var Ba=R((bk,qa)=>{"use strict";p();qa.exports=Math.max});var Ua=R((vk,za)=>{"use strict";p();za.exports=Math.min});var Wa=R((wk,Ma)=>{"use strict";p();Ma.exports=Math.pow});var Ha=R((Ak,Va)=>{"use strict";p();Va.exports=Math.round});var Qa=R((Ek,Ga)=>{"use strict";p();Ga.exports=Number.isNaN||function(t){return t!==t}});var Za=R((Ck,Ja)=>{"use strict";p();var og=Qa();Ja.exports=function(t){return og(t)||t===0?t:t<0?-1:1}});var Ya=R((Pk,Xa)=>{"use strict";p();Xa.exports=Object.getOwnPropertyDescriptor});var ft=R(($k,Ka)=>{"use strict";p();var Ir=Ya();if(Ir)try{Ir([],"length")}catch{Ir=null}Ka.exports=Ir});var Wt=R((jk,el)=>{"use strict";p();var Fr=Object.defineProperty||!1;if(Fr)try{Fr({},"a",{value:1})}catch{Fr=!1}el.exports=Fr});var nl=R((Fk,rl)=>{"use strict";p();var tl=typeof Symbol<"u"&&Symbol,sg=vi();rl.exports=function(){return typeof tl!="function"||typeof Symbol!="function"||typeof tl("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:sg()}});var Ai=R((_k,il)=>{"use strict";p();il.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var Si=R((qk,ol)=>{"use strict";p();var ag=wi();ol.exports=ag.getPrototypeOf||null});var ll=R((zk,al)=>{"use strict";p();var lg="Function.prototype.bind called on incompatible ",ug=Object.prototype.toString,cg=Math.max,fg="[object Function]",sl=function(t,r){for(var n=[],i=0;i<t.length;i+=1)n[i]=t[i];for(var o=0;o<r.length;o+=1)n[o+t.length]=r[o];return n},pg=function(t,r){for(var n=[],i=r||0,o=0;i<t.length;i+=1,o+=1)n[o]=t[i];return n},dg=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r};al.exports=function(t){var r=this;if(typeof r!="function"||ug.apply(r)!==fg)throw new TypeError(lg+r);for(var n=pg(arguments,1),i,o=function(){if(this instanceof i){var c=r.apply(this,sl(n,arguments));return Object(c)===c?c:this}return r.apply(t,sl(n,arguments))},s=cg(0,r.length-n.length),a=[],l=0;l<s;l++)a[l]="$"+l;if(i=Function("binder","return function ("+dg(a,",")+"){ return binder.apply(this,arguments); }")(o),r.prototype){var u=function(){};u.prototype=r.prototype,i.prototype=new u,u.prototype=null}return i}});var pt=R((Mk,ul)=>{"use strict";p();var hg=ll();ul.exports=Function.prototype.bind||hg});var Lr=R((Vk,cl)=>{"use strict";p();cl.exports=Function.prototype.call});var Ei=R((Gk,fl)=>{"use strict";p();fl.exports=Function.prototype.apply});var dl=R((Jk,pl)=>{"use strict";p();pl.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var ml=R((Xk,hl)=>{"use strict";p();var mg=pt(),gg=Ei(),bg=Lr(),yg=dl();hl.exports=yg||mg.call(bg,gg)});var bl=R((Kk,gl)=>{"use strict";p();var vg=pt(),xg=ct(),wg=Lr(),kg=ml();gl.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new xg("a function is required");return kg(vg,wg,t)}});var Al=R((tA,kl)=>{"use strict";p();var Ag=bl(),yl=ft(),xl;try{xl=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var Ti=!!xl&&yl&&yl(Object.prototype,"__proto__"),wl=Object,vl=wl.getPrototypeOf;kl.exports=Ti&&typeof Ti.get=="function"?Ag([Ti.get]):typeof vl=="function"?function(t){return vl(t==null?t:wl(t))}:!1});var Ol=R((nA,Cl)=>{"use strict";p();var Sl=Ai(),El=Si(),Tl=Al();Cl.exports=Sl?function(t){return Sl(t)}:El?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return El(t)}:Tl?function(t){return Tl(t)}:null});var Nl=R((oA,Pl)=>{"use strict";p();var Sg=Function.prototype.call,Eg=Object.prototype.hasOwnProperty,Tg=pt();Pl.exports=Tg.call(Sg,Eg)});var qr=R((aA,Ll)=>{"use strict";p();var U,Cg=wi(),Og=Sa(),Pg=Ta(),Ng=Oa(),$g=Na(),gt=ki(),mt=ct(),Rg=Ia(),jg=La(),Ig=Da(),Fg=Ba(),Lg=Ua(),_g=Wa(),Dg=Ha(),qg=Za(),Il=Function,Ci=function(e){try{return Il('"use strict"; return ('+e+").constructor;")()}catch{}},Vt=ft(),Bg=Wt(),Oi=function(){throw new mt},zg=Vt?(function(){try{return arguments.callee,Oi}catch{try{return Vt(arguments,"callee").get}catch{return Oi}}})():Oi,dt=nl()(),se=Ol(),Ug=Si(),Mg=Ai(),Fl=Ei(),Ht=Lr(),ht={},Wg=typeof Uint8Array>"u"||!se?U:se(Uint8Array),We={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?U:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?U:ArrayBuffer,"%ArrayIteratorPrototype%":dt&&se?se([][Symbol.iterator]()):U,"%AsyncFromSyncIteratorPrototype%":U,"%AsyncFunction%":ht,"%AsyncGenerator%":ht,"%AsyncGeneratorFunction%":ht,"%AsyncIteratorPrototype%":ht,"%Atomics%":typeof Atomics>"u"?U:Atomics,"%BigInt%":typeof BigInt>"u"?U:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?U:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?U:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?U:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Og,"%eval%":eval,"%EvalError%":Pg,"%Float16Array%":typeof Float16Array>"u"?U:Float16Array,"%Float32Array%":typeof Float32Array>"u"?U:Float32Array,"%Float64Array%":typeof Float64Array>"u"?U:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?U:FinalizationRegistry,"%Function%":Il,"%GeneratorFunction%":ht,"%Int8Array%":typeof Int8Array>"u"?U:Int8Array,"%Int16Array%":typeof Int16Array>"u"?U:Int16Array,"%Int32Array%":typeof Int32Array>"u"?U:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":dt&&se?se(se([][Symbol.iterator]())):U,"%JSON%":typeof JSON=="object"?JSON:U,"%Map%":typeof Map>"u"?U:Map,"%MapIteratorPrototype%":typeof Map>"u"||!dt||!se?U:se(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Cg,"%Object.getOwnPropertyDescriptor%":Vt,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?U:Promise,"%Proxy%":typeof Proxy>"u"?U:Proxy,"%RangeError%":Ng,"%ReferenceError%":$g,"%Reflect%":typeof Reflect>"u"?U:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?U:Set,"%SetIteratorPrototype%":typeof Set>"u"||!dt||!se?U:se(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?U:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":dt&&se?se(""[Symbol.iterator]()):U,"%Symbol%":dt?Symbol:U,"%SyntaxError%":gt,"%ThrowTypeError%":zg,"%TypedArray%":Wg,"%TypeError%":mt,"%Uint8Array%":typeof Uint8Array>"u"?U:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?U:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?U:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?U:Uint32Array,"%URIError%":Rg,"%WeakMap%":typeof WeakMap>"u"?U:WeakMap,"%WeakRef%":typeof WeakRef>"u"?U:WeakRef,"%WeakSet%":typeof WeakSet>"u"?U:WeakSet,"%Function.prototype.call%":Ht,"%Function.prototype.apply%":Fl,"%Object.defineProperty%":Bg,"%Object.getPrototypeOf%":Ug,"%Math.abs%":jg,"%Math.floor%":Ig,"%Math.max%":Fg,"%Math.min%":Lg,"%Math.pow%":_g,"%Math.round%":Dg,"%Math.sign%":qg,"%Reflect.getPrototypeOf%":Mg};if(se)try{null.error}catch(e){$l=se(se(e)),We["%Error.prototype%"]=$l}var $l,Vg=function e(t){var r;if(t==="%AsyncFunction%")r=Ci("async function () {}");else if(t==="%GeneratorFunction%")r=Ci("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=Ci("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&se&&(r=se(i.prototype))}return We[t]=r,r},Rl={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Gt=pt(),_r=Nl(),Hg=Gt.call(Ht,Array.prototype.concat),Gg=Gt.call(Fl,Array.prototype.splice),jl=Gt.call(Ht,String.prototype.replace),Dr=Gt.call(Ht,String.prototype.slice),Qg=Gt.call(Ht,RegExp.prototype.exec),Jg=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Zg=/\\(\\)?/g,Xg=function(t){var r=Dr(t,0,1),n=Dr(t,-1);if(r==="%"&&n!=="%")throw new gt("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new gt("invalid intrinsic syntax, expected opening `%`");var i=[];return jl(t,Jg,function(o,s,a,l){i[i.length]=a?jl(l,Zg,"$1"):s||o}),i},Yg=function(t,r){var n=t,i;if(_r(Rl,n)&&(i=Rl[n],n="%"+i[0]+"%"),_r(We,n)){var o=We[n];if(o===ht&&(o=Vg(n)),typeof o>"u"&&!r)throw new mt("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:o}}throw new gt("intrinsic "+t+" does not exist!")};Ll.exports=function(t,r){if(typeof t!="string"||t.length===0)throw new mt("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new mt('"allowMissing" argument must be a boolean');if(Qg(/^%?[^%]*%?$/,t)===null)throw new gt("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Xg(t),i=n.length>0?n[0]:"",o=Yg("%"+i+"%",r),s=o.name,a=o.value,l=!1,u=o.alias;u&&(i=u[0],Gg(n,Hg([0,1],u)));for(var c=1,f=!0;c<n.length;c+=1){var m=n[c],d=Dr(m,0,1),v=Dr(m,-1);if((d==='"'||d==="'"||d==="`"||v==='"'||v==="'"||v==="`")&&d!==v)throw new gt("property names with quotes must have matching quotes");if((m==="constructor"||!f)&&(l=!0),i+="."+m,s="%"+i+"%",_r(We,s))a=We[s];else if(a!=null){if(!(m in a)){if(!r)throw new mt("base intrinsic for "+t+" exists, but the property is not available.");return}if(Vt&&c+1>=n.length){var b=Vt(a,m);f=!!b,f&&"get"in b&&!("originalValue"in b.get)?a=b.get:a=a[m]}else f=_r(a,m),a=a[m];f&&!l&&(We[s]=a)}}return a}});var Bl=R((uA,ql)=>{"use strict";p();var _l=Wt(),Kg=ki(),bt=ct(),Dl=ft();ql.exports=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new bt("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new bt("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new bt("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new bt("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new bt("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new bt("`loose`, if provided, must be a boolean");var i=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,a=arguments.length>6?arguments[6]:!1,l=!!Dl&&Dl(t,r);if(_l)_l(t,r,{configurable:s===null&&l?l.configurable:!s,enumerable:i===null&&l?l.enumerable:!i,value:n,writable:o===null&&l?l.writable:!o});else if(a||!i&&!o&&!s)t[r]=n;else throw new Kg("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var Ml=R((fA,Ul)=>{"use strict";p();var Pi=Wt(),zl=function(){return!!Pi};zl.hasArrayLengthDefineBug=function(){if(!Pi)return null;try{return Pi([],"length",{value:1}).length!==1}catch{return!0}};Ul.exports=zl});var Ql=R((dA,Gl)=>{"use strict";p();var eb=qr(),Wl=Bl(),tb=Ml()(),Vl=ft(),Hl=ct(),rb=eb("%Math.floor%");Gl.exports=function(t,r){if(typeof t!="function")throw new Hl("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||rb(r)!==r)throw new Hl("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],i=!0,o=!0;if("length"in t&&Vl){var s=Vl(t,"length");s&&!s.configurable&&(i=!1),s&&!s.writable&&(o=!1)}return(i||o||!n)&&(tb?Wl(t,"length",r,!0,!0):Wl(t,"length",r)),t}});var $i=R((mA,Br)=>{"use strict";p();var Ni=pt(),zr=qr(),nb=Ql(),ib=ct(),Xl=zr("%Function.prototype.apply%"),Yl=zr("%Function.prototype.call%"),Kl=zr("%Reflect.apply%",!0)||Ni.call(Yl,Xl),Jl=Wt(),ob=zr("%Math.max%");Br.exports=function(t){if(typeof t!="function")throw new ib("a function is required");var r=Kl(Ni,Yl,arguments);return nb(r,1+ob(0,t.length-(arguments.length-1)),!0)};var Zl=function(){return Kl(Ni,Xl,arguments)};Jl?Jl(Br.exports,"apply",{value:Zl}):Br.exports.apply=Zl});var Ri=R((bA,ru)=>{"use strict";p();var eu=qr(),tu=$i(),sb=tu(eu("String.prototype.indexOf"));ru.exports=function(t,r){var n=eu(t,!!r);return typeof n=="function"&&sb(t,".prototype.")>-1?tu(n):n}});var ou=R((vA,iu)=>{"use strict";p();var ab=xi()(),lb=Ri(),ji=lb("Object.prototype.toString"),Ur=function(t){return ab&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:ji(t)==="[object Arguments]"},nu=function(t){return Ur(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&ji(t)!=="[object Array]"&&ji(t.callee)==="[object Function]"},ub=(function(){return Ur(arguments)})();Ur.isLegacyArguments=nu;iu.exports=ub?Ur:nu});var lu=R((wA,au)=>{"use strict";p();var cb=Object.prototype.toString,fb=Function.prototype.toString,pb=/^\s*(?:function)?\*/,su=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Ii=Object.getPrototypeOf,db=function(){if(!su)return!1;try{return Function("return function*() {}")()}catch{}},Fi;au.exports=function(t){if(typeof t!="function")return!1;if(pb.test(fb.call(t)))return!0;if(!su){var r=cb.call(t);return r==="[object GeneratorFunction]"}if(!Ii)return!1;if(typeof Fi>"u"){var n=db();Fi=n?Ii(n):!1}return Ii(t)===Fi}});var fu=R((AA,cu)=>{"use strict";p();var uu=Function.prototype.toString,yt=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,Li,Mr;if(typeof yt=="function"&&typeof Object.defineProperty=="function")try{Li=Object.defineProperty({},"length",{get:function(){throw Mr}}),Mr={},yt(function(){throw 42},null,Li)}catch(e){e!==Mr&&(yt=null)}else yt=null;var hb=/^\s*class\b/,_i=function(t){try{var r=uu.call(t);return hb.test(r)}catch{return!1}},mb=function(t){try{return _i(t)?!1:(uu.call(t),!0)}catch{return!1}},gb=Object.prototype.toString,bb="[object Function]",yb="[object GeneratorFunction]",vb=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";cu.exports=yt?function(t){if(!t||typeof t!="function"&&typeof t!="object")return!1;if(typeof t=="function"&&!t.prototype)return!0;try{yt(t,null,Li)}catch(r){if(r!==Mr)return!1}return!_i(t)}:function(t){if(!t||typeof t!="function"&&typeof t!="object")return!1;if(typeof t=="function"&&!t.prototype)return!0;if(vb)return mb(t);if(_i(t))return!1;var r=gb.call(t);return r===bb||r===yb}});var hu=R((EA,du)=>{"use strict";p();var xb=fu(),wb=Object.prototype.toString,pu=Object.prototype.hasOwnProperty,kb=function(t,r,n){for(var i=0,o=t.length;i<o;i++)pu.call(t,i)&&(n==null?r(t[i],i,t):r.call(n,t[i],i,t))},Ab=function(t,r,n){for(var i=0,o=t.length;i<o;i++)n==null?r(t.charAt(i),i,t):r.call(n,t.charAt(i),i,t)},Sb=function(t,r,n){for(var i in t)pu.call(t,i)&&(n==null?r(t[i],i,t):r.call(n,t[i],i,t))},Eb=function(t,r,n){if(!xb(r))throw new TypeError("iterator must be a function");var i;arguments.length>=3&&(i=n),wb.call(t)==="[object Array]"?kb(t,r,i):typeof t=="string"?Ab(t,r,i):Sb(t,r,i)};du.exports=Eb});var gu=R((CA,mu)=>{"use strict";p();var Di=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],Tb=typeof globalThis>"u"?global:globalThis;mu.exports=function(){for(var t=[],r=0;r<Di.length;r++)typeof Tb[Di[r]]=="function"&&(t[t.length]=Di[r]);return t}});var Mi=R((PA,xu)=>{"use strict";p();var Vr=hu(),Cb=gu(),bu=$i(),zi=Ri(),Wr=ft(),Ob=zi("Object.prototype.toString"),vu=xi()(),yu=typeof globalThis>"u"?global:globalThis,Bi=Cb(),Ui=zi("String.prototype.slice"),qi=Object.getPrototypeOf,Pb=zi("Array.prototype.indexOf",!0)||function(t,r){for(var n=0;n<t.length;n+=1)if(t[n]===r)return n;return-1},Hr={__proto__:null};vu&&Wr&&qi?Vr(Bi,function(e){var t=new yu[e];if(Symbol.toStringTag in t){var r=qi(t),n=Wr(r,Symbol.toStringTag);if(!n){var i=qi(r);n=Wr(i,Symbol.toStringTag)}Hr["$"+e]=bu(n.get)}}):Vr(Bi,function(e){var t=new yu[e];Hr["$"+e]=bu(t.slice)});var Nb=function(t){var r=!1;return Vr(Hr,function(n,i){if(!r)try{"$"+n(t)===i&&(r=Ui(i,1))}catch{}}),r},$b=function(t){var r=!1;return Vr(Hr,function(n,i){if(!r)try{n(t),r=Ui(i,1)}catch{}}),r};xu.exports=function(t){if(!t||typeof t!="object")return!1;if(!vu){var r=Ui(Ob(t),8,-1);return Pb(Bi,r)>-1?r:r!=="Object"?!1:$b(t)}return Wr?Nb(t):null}});var ku=R(($A,wu)=>{"use strict";p();var Rb=Mi();wu.exports=function(t){return!!Rb(t)}});var Lu=R(M=>{"use strict";p();var jb=ou(),Ib=lu(),xe=Mi(),Au=ku();function vt(e){return e.call.bind(e)}var Su=typeof BigInt<"u",Eu=typeof Symbol<"u",ge=vt(Object.prototype.toString),Fb=vt(Number.prototype.valueOf),Lb=vt(String.prototype.valueOf),_b=vt(Boolean.prototype.valueOf);Su&&(Tu=vt(BigInt.prototype.valueOf));var Tu;Eu&&(Cu=vt(Symbol.prototype.valueOf));var Cu;function Jt(e,t){if(typeof e!="object")return!1;try{return t(e),!0}catch{return!1}}M.isArgumentsObject=jb;M.isGeneratorFunction=Ib;M.isTypedArray=Au;function Db(e){return typeof Promise<"u"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"}M.isPromise=Db;function qb(e){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(e):Au(e)||Pu(e)}M.isArrayBufferView=qb;function Bb(e){return xe(e)==="Uint8Array"}M.isUint8Array=Bb;function zb(e){return xe(e)==="Uint8ClampedArray"}M.isUint8ClampedArray=zb;function Ub(e){return xe(e)==="Uint16Array"}M.isUint16Array=Ub;function Mb(e){return xe(e)==="Uint32Array"}M.isUint32Array=Mb;function Wb(e){return xe(e)==="Int8Array"}M.isInt8Array=Wb;function Vb(e){return xe(e)==="Int16Array"}M.isInt16Array=Vb;function Hb(e){return xe(e)==="Int32Array"}M.isInt32Array=Hb;function Gb(e){return xe(e)==="Float32Array"}M.isFloat32Array=Gb;function Qb(e){return xe(e)==="Float64Array"}M.isFloat64Array=Qb;function Jb(e){return xe(e)==="BigInt64Array"}M.isBigInt64Array=Jb;function Zb(e){return xe(e)==="BigUint64Array"}M.isBigUint64Array=Zb;function Gr(e){return ge(e)==="[object Map]"}Gr.working=typeof Map<"u"&&Gr(new Map);function Xb(e){return typeof Map>"u"?!1:Gr.working?Gr(e):e instanceof Map}M.isMap=Xb;function Qr(e){return ge(e)==="[object Set]"}Qr.working=typeof Set<"u"&&Qr(new Set);function Yb(e){return typeof Set>"u"?!1:Qr.working?Qr(e):e instanceof Set}M.isSet=Yb;function Jr(e){return ge(e)==="[object WeakMap]"}Jr.working=typeof WeakMap<"u"&&Jr(new WeakMap);function Kb(e){return typeof WeakMap>"u"?!1:Jr.working?Jr(e):e instanceof WeakMap}M.isWeakMap=Kb;function Vi(e){return ge(e)==="[object WeakSet]"}Vi.working=typeof WeakSet<"u"&&Vi(new WeakSet);function ey(e){return Vi(e)}M.isWeakSet=ey;function Zr(e){return ge(e)==="[object ArrayBuffer]"}Zr.working=typeof ArrayBuffer<"u"&&Zr(new ArrayBuffer);function Ou(e){return typeof ArrayBuffer>"u"?!1:Zr.working?Zr(e):e instanceof ArrayBuffer}M.isArrayBuffer=Ou;function Xr(e){return ge(e)==="[object DataView]"}Xr.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&Xr(new DataView(new ArrayBuffer(1),0,1));function Pu(e){return typeof DataView>"u"?!1:Xr.working?Xr(e):e instanceof DataView}M.isDataView=Pu;var Wi=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function Qt(e){return ge(e)==="[object SharedArrayBuffer]"}function Nu(e){return typeof Wi>"u"?!1:(typeof Qt.working>"u"&&(Qt.working=Qt(new Wi)),Qt.working?Qt(e):e instanceof Wi)}M.isSharedArrayBuffer=Nu;function ty(e){return ge(e)==="[object AsyncFunction]"}M.isAsyncFunction=ty;function ry(e){return ge(e)==="[object Map Iterator]"}M.isMapIterator=ry;function ny(e){return ge(e)==="[object Set Iterator]"}M.isSetIterator=ny;function iy(e){return ge(e)==="[object Generator]"}M.isGeneratorObject=iy;function oy(e){return ge(e)==="[object WebAssembly.Module]"}M.isWebAssemblyCompiledModule=oy;function $u(e){return Jt(e,Fb)}M.isNumberObject=$u;function Ru(e){return Jt(e,Lb)}M.isStringObject=Ru;function ju(e){return Jt(e,_b)}M.isBooleanObject=ju;function Iu(e){return Su&&Jt(e,Tu)}M.isBigIntObject=Iu;function Fu(e){return Eu&&Jt(e,Cu)}M.isSymbolObject=Fu;function sy(e){return $u(e)||Ru(e)||ju(e)||Iu(e)||Fu(e)}M.isBoxedPrimitive=sy;function ay(e){return typeof Uint8Array<"u"&&(Ou(e)||Nu(e))}M.isAnyArrayBuffer=ay;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(M,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})});var Du=R((FA,_u)=>{"use strict";p();_u.exports=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}});var qu=R((_A,Hi)=>{"use strict";p();typeof Object.create=="function"?Hi.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Hi.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}});var Vu=R(W=>{"use strict";p();var Bu=Object.getOwnPropertyDescriptors||function(t){for(var r=Object.keys(t),n={},i=0;i<r.length;i++)n[r[i]]=Object.getOwnPropertyDescriptor(t,r[i]);return n},ly=/%[sdj%]/g;W.format=function(e){if(!on(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(De(arguments[r]));return t.join(" ")}for(var r=1,n=arguments,i=n.length,o=String(e).replace(ly,function(a){if(a==="%%")return"%";if(r>=i)return a;switch(a){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch{return"[Circular]"}default:return a}}),s=n[r];r<i;s=n[++r])nn(s)||!xt(s)?o+=" "+s:o+=" "+De(s);return o};W.deprecate=function(e,t){if(typeof process<"u"&&process.noDeprecation===!0)return e;if(typeof process>"u")return function(){return W.deprecate(e,t).apply(this,arguments)};var r=!1;function n(){if(!r){if(process.throwDeprecation)throw new Error(t);process.traceDeprecation?console.trace(t):console.error(t),r=!0}return e.apply(this,arguments)}return n};var Yr={},zu=/^$/;w.NODE_DEBUG&&(Kr=w.NODE_DEBUG,Kr=Kr.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),zu=new RegExp("^"+Kr+"$","i"));var Kr;W.debuglog=function(e){if(e=e.toUpperCase(),!Yr[e])if(zu.test(e)){var t=process.pid;Yr[e]=function(){var r=W.format.apply(W,arguments);console.error("%s %d: %s",e,t,r)}}else Yr[e]=function(){};return Yr[e]};function De(e,t){var r={seen:[],stylize:cy};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),Zi(t)?r.showHidden=t:t&&W._extend(r,t),He(r.showHidden)&&(r.showHidden=!1),He(r.depth)&&(r.depth=2),He(r.colors)&&(r.colors=!1),He(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=uy),tn(r,e,r.depth)}W.inspect=De;De.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};De.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function uy(e,t){var r=De.styles[t];return r?"\x1B["+De.colors[r][0]+"m"+e+"\x1B["+De.colors[r][1]+"m":e}function cy(e,t){return e}function fy(e){var t={};return e.forEach(function(r,n){t[r]=!0}),t}function tn(e,t,r){if(e.customInspect&&t&&en(t.inspect)&&t.inspect!==W.inspect&&!(t.constructor&&t.constructor.prototype===t)){var n=t.inspect(r,e);return on(n)||(n=tn(e,n,r)),n}var i=py(e,t);if(i)return i;var o=Object.keys(t),s=fy(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),Xt(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return Gi(t);if(o.length===0){if(en(t)){var a=t.name?": "+t.name:"";return e.stylize("[Function"+a+"]","special")}if(Zt(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(rn(t))return e.stylize(Date.prototype.toString.call(t),"date");if(Xt(t))return Gi(t)}var l="",u=!1,c=["{","}"];if(Uu(t)&&(u=!0,c=["[","]"]),en(t)){var f=t.name?": "+t.name:"";l=" [Function"+f+"]"}if(Zt(t)&&(l=" "+RegExp.prototype.toString.call(t)),rn(t)&&(l=" "+Date.prototype.toUTCString.call(t)),Xt(t)&&(l=" "+Gi(t)),o.length===0&&(!u||t.length==0))return c[0]+l+c[1];if(r<0)return Zt(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var m;return u?m=dy(e,t,r,s,o):m=o.map(function(d){return Ji(e,t,r,s,d,u)}),e.seen.pop(),hy(m,l,c)}function py(e,t){if(He(t))return e.stylize("undefined","undefined");if(on(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(Mu(t))return e.stylize(""+t,"number");if(Zi(t))return e.stylize(""+t,"boolean");if(nn(t))return e.stylize("null","null")}function Gi(e){return"["+Error.prototype.toString.call(e)+"]"}function dy(e,t,r,n,i){for(var o=[],s=0,a=t.length;s<a;++s)Wu(t,String(s))?o.push(Ji(e,t,r,n,String(s),!0)):o.push("");return i.forEach(function(l){l.match(/^\d+$/)||o.push(Ji(e,t,r,n,l,!0))}),o}function Ji(e,t,r,n,i,o){var s,a,l;if(l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]},l.get?l.set?a=e.stylize("[Getter/Setter]","special"):a=e.stylize("[Getter]","special"):l.set&&(a=e.stylize("[Setter]","special")),Wu(n,i)||(s="["+i+"]"),a||(e.seen.indexOf(l.value)<0?(nn(r)?a=tn(e,l.value,null):a=tn(e,l.value,r-1),a.indexOf(`
4
+ `)>-1&&(o?a=a.split(`
5
+ `).map(function(u){return" "+u}).join(`
6
+ `).slice(2):a=`
7
+ `+a.split(`
8
+ `).map(function(u){return" "+u}).join(`
9
+ `))):a=e.stylize("[Circular]","special")),He(s)){if(o&&i.match(/^\d+$/))return a;s=JSON.stringify(""+i),s.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.slice(1,-1),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function hy(e,t,r){var n=0,i=e.reduce(function(o,s){return n++,s.indexOf(`
10
+ `)>=0&&n++,o+s.replace(/\u001b\[\d\d?m/g,"").length+1},0);return i>60?r[0]+(t===""?"":t+`
11
+ `)+" "+e.join(`,
12
+ `)+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}W.types=Lu();function Uu(e){return Array.isArray(e)}W.isArray=Uu;function Zi(e){return typeof e=="boolean"}W.isBoolean=Zi;function nn(e){return e===null}W.isNull=nn;function my(e){return e==null}W.isNullOrUndefined=my;function Mu(e){return typeof e=="number"}W.isNumber=Mu;function on(e){return typeof e=="string"}W.isString=on;function gy(e){return typeof e=="symbol"}W.isSymbol=gy;function He(e){return e===void 0}W.isUndefined=He;function Zt(e){return xt(e)&&Xi(e)==="[object RegExp]"}W.isRegExp=Zt;W.types.isRegExp=Zt;function xt(e){return typeof e=="object"&&e!==null}W.isObject=xt;function rn(e){return xt(e)&&Xi(e)==="[object Date]"}W.isDate=rn;W.types.isDate=rn;function Xt(e){return xt(e)&&(Xi(e)==="[object Error]"||e instanceof Error)}W.isError=Xt;W.types.isNativeError=Xt;function en(e){return typeof e=="function"}W.isFunction=en;function by(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}W.isPrimitive=by;W.isBuffer=Du();function Xi(e){return Object.prototype.toString.call(e)}function Qi(e){return e<10?"0"+e.toString(10):e.toString(10)}var yy=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function vy(){var e=new Date,t=[Qi(e.getHours()),Qi(e.getMinutes()),Qi(e.getSeconds())].join(":");return[e.getDate(),yy[e.getMonth()],t].join(" ")}W.log=function(){console.log("%s - %s",vy(),W.format.apply(W,arguments))};W.inherits=qu();W._extend=function(e,t){if(!t||!xt(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};function Wu(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var Ve=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;W.promisify=function(t){if(typeof t!="function")throw new TypeError('The "original" argument must be of type Function');if(Ve&&t[Ve]){var r=t[Ve];if(typeof r!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(r,Ve,{value:r,enumerable:!1,writable:!1,configurable:!0}),r}function r(){for(var n,i,o=new Promise(function(l,u){n=l,i=u}),s=[],a=0;a<arguments.length;a++)s.push(arguments[a]);s.push(function(l,u){l?i(l):n(u)});try{t.apply(this,s)}catch(l){i(l)}return o}return Object.setPrototypeOf(r,Object.getPrototypeOf(t)),Ve&&Object.defineProperty(r,Ve,{value:r,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(r,Bu(t))};W.promisify.custom=Ve;function xy(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}function wy(e){if(typeof e!="function")throw new TypeError('The "original" argument must be of type Function');function t(){for(var r=[],n=0;n<arguments.length;n++)r.push(arguments[n]);var i=r.pop();if(typeof i!="function")throw new TypeError("The last argument must be of type Function");var o=this,s=function(){return i.apply(o,arguments)};e.apply(this,r).then(function(a){process.nextTick(s.bind(null,null,a))},function(a){process.nextTick(xy.bind(null,a,s))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,Bu(e)),t}W.callbackify=wy});var Hu,Yi,Gu,sn,we,K,an,Qu,Ki,Ju,Zu,Xu,Yu,eo,Ku,ec,tc,ln,wt,Se,to,kt,rc,ro,no,io,oo,so,nc,ic,ao,oc,lo,Yt,un,Kt,sc,ac,lc,uc,er,tr,cn,cc,fc,pc,dc,hc,mc,gc,bc,yc,vc,xc,fn,wc,kc,Ac,Sc,Ec,Tc,Cc,Oc,Pc,Nc,$c,Rc,jc,uo,co,Ic,Fc,Lc,_c,Dc,qc,Bc,zc,Uc,fo,h,Mc=he(()=>{"use strict";p();(function(e){function t(r){return typeof r=="string"}e.is=t})(Hu||(Hu={}));(function(e){function t(r){return typeof r=="string"}e.is=t})(Yi||(Yi={}));(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function t(r){return typeof r=="number"&&e.MIN_VALUE<=r&&r<=e.MAX_VALUE}e.is=t})(Gu||(Gu={}));(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function t(r){return typeof r=="number"&&e.MIN_VALUE<=r&&r<=e.MAX_VALUE}e.is=t})(sn||(sn={}));(function(e){function t(n,i){return n===Number.MAX_VALUE&&(n=sn.MAX_VALUE),i===Number.MAX_VALUE&&(i=sn.MAX_VALUE),{line:n,character:i}}e.create=t;function r(n){let i=n;return h.objectLiteral(i)&&h.uinteger(i.line)&&h.uinteger(i.character)}e.is=r})(we||(we={}));(function(e){function t(n,i,o,s){if(h.uinteger(n)&&h.uinteger(i)&&h.uinteger(o)&&h.uinteger(s))return{start:we.create(n,i),end:we.create(o,s)};if(we.is(n)&&we.is(i))return{start:n,end:i};throw new Error(`Range#create called with invalid arguments[${n}, ${i}, ${o}, ${s}]`)}e.create=t;function r(n){let i=n;return h.objectLiteral(i)&&we.is(i.start)&&we.is(i.end)}e.is=r})(K||(K={}));(function(e){function t(n,i){return{uri:n,range:i}}e.create=t;function r(n){let i=n;return h.objectLiteral(i)&&K.is(i.range)&&(h.string(i.uri)||h.undefined(i.uri))}e.is=r})(an||(an={}));(function(e){function t(n,i,o,s){return{targetUri:n,targetRange:i,targetSelectionRange:o,originSelectionRange:s}}e.create=t;function r(n){let i=n;return h.objectLiteral(i)&&K.is(i.targetRange)&&h.string(i.targetUri)&&K.is(i.targetSelectionRange)&&(K.is(i.originSelectionRange)||h.undefined(i.originSelectionRange))}e.is=r})(Qu||(Qu={}));(function(e){function t(n,i,o,s){return{red:n,green:i,blue:o,alpha:s}}e.create=t;function r(n){let i=n;return h.objectLiteral(i)&&h.numberRange(i.red,0,1)&&h.numberRange(i.green,0,1)&&h.numberRange(i.blue,0,1)&&h.numberRange(i.alpha,0,1)}e.is=r})(Ki||(Ki={}));(function(e){function t(n,i){return{range:n,color:i}}e.create=t;function r(n){let i=n;return h.objectLiteral(i)&&K.is(i.range)&&Ki.is(i.color)}e.is=r})(Ju||(Ju={}));(function(e){function t(n,i,o){return{label:n,textEdit:i,additionalTextEdits:o}}e.create=t;function r(n){let i=n;return h.objectLiteral(i)&&h.string(i.label)&&(h.undefined(i.textEdit)||Se.is(i))&&(h.undefined(i.additionalTextEdits)||h.typedArray(i.additionalTextEdits,Se.is))}e.is=r})(Zu||(Zu={}));(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(Xu||(Xu={}));(function(e){function t(n,i,o,s,a,l){let u={startLine:n,endLine:i};return h.defined(o)&&(u.startCharacter=o),h.defined(s)&&(u.endCharacter=s),h.defined(a)&&(u.kind=a),h.defined(l)&&(u.collapsedText=l),u}e.create=t;function r(n){let i=n;return h.objectLiteral(i)&&h.uinteger(i.startLine)&&h.uinteger(i.startLine)&&(h.undefined(i.startCharacter)||h.uinteger(i.startCharacter))&&(h.undefined(i.endCharacter)||h.uinteger(i.endCharacter))&&(h.undefined(i.kind)||h.string(i.kind))}e.is=r})(Yu||(Yu={}));(function(e){function t(n,i){return{location:n,message:i}}e.create=t;function r(n){let i=n;return h.defined(i)&&an.is(i.location)&&h.string(i.message)}e.is=r})(eo||(eo={}));(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(Ku||(Ku={}));(function(e){e.Unnecessary=1,e.Deprecated=2})(ec||(ec={}));(function(e){function t(r){let n=r;return h.objectLiteral(n)&&h.string(n.href)}e.is=t})(tc||(tc={}));(function(e){function t(n,i,o,s,a,l){let u={range:n,message:i};return h.defined(o)&&(u.severity=o),h.defined(s)&&(u.code=s),h.defined(a)&&(u.source=a),h.defined(l)&&(u.relatedInformation=l),u}e.create=t;function r(n){var i;let o=n;return h.defined(o)&&K.is(o.range)&&h.string(o.message)&&(h.number(o.severity)||h.undefined(o.severity))&&(h.integer(o.code)||h.string(o.code)||h.undefined(o.code))&&(h.undefined(o.codeDescription)||h.string((i=o.codeDescription)===null||i===void 0?void 0:i.href))&&(h.string(o.source)||h.undefined(o.source))&&(h.undefined(o.relatedInformation)||h.typedArray(o.relatedInformation,eo.is))}e.is=r})(ln||(ln={}));(function(e){function t(n,i,...o){let s={title:n,command:i};return h.defined(o)&&o.length>0&&(s.arguments=o),s}e.create=t;function r(n){let i=n;return h.defined(i)&&h.string(i.title)&&h.string(i.command)}e.is=r})(wt||(wt={}));(function(e){function t(o,s){return{range:o,newText:s}}e.replace=t;function r(o,s){return{range:{start:o,end:o},newText:s}}e.insert=r;function n(o){return{range:o,newText:""}}e.del=n;function i(o){let s=o;return h.objectLiteral(s)&&h.string(s.newText)&&K.is(s.range)}e.is=i})(Se||(Se={}));(function(e){function t(n,i,o){let s={label:n};return i!==void 0&&(s.needsConfirmation=i),o!==void 0&&(s.description=o),s}e.create=t;function r(n){let i=n;return h.objectLiteral(i)&&h.string(i.label)&&(h.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(h.string(i.description)||i.description===void 0)}e.is=r})(to||(to={}));(function(e){function t(r){let n=r;return h.string(n)}e.is=t})(kt||(kt={}));(function(e){function t(o,s,a){return{range:o,newText:s,annotationId:a}}e.replace=t;function r(o,s,a){return{range:{start:o,end:o},newText:s,annotationId:a}}e.insert=r;function n(o,s){return{range:o,newText:"",annotationId:s}}e.del=n;function i(o){let s=o;return Se.is(s)&&(to.is(s.annotationId)||kt.is(s.annotationId))}e.is=i})(rc||(rc={}));(function(e){function t(n,i){return{textDocument:n,edits:i}}e.create=t;function r(n){let i=n;return h.defined(i)&&ao.is(i.textDocument)&&Array.isArray(i.edits)}e.is=r})(ro||(ro={}));(function(e){function t(n,i,o){let s={kind:"create",uri:n};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(s.options=i),o!==void 0&&(s.annotationId=o),s}e.create=t;function r(n){let i=n;return i&&i.kind==="create"&&h.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||h.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||h.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||kt.is(i.annotationId))}e.is=r})(no||(no={}));(function(e){function t(n,i,o,s){let a={kind:"rename",oldUri:n,newUri:i};return o!==void 0&&(o.overwrite!==void 0||o.ignoreIfExists!==void 0)&&(a.options=o),s!==void 0&&(a.annotationId=s),a}e.create=t;function r(n){let i=n;return i&&i.kind==="rename"&&h.string(i.oldUri)&&h.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||h.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||h.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||kt.is(i.annotationId))}e.is=r})(io||(io={}));(function(e){function t(n,i,o){let s={kind:"delete",uri:n};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(s.options=i),o!==void 0&&(s.annotationId=o),s}e.create=t;function r(n){let i=n;return i&&i.kind==="delete"&&h.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||h.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||h.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||kt.is(i.annotationId))}e.is=r})(oo||(oo={}));(function(e){function t(r){let n=r;return n&&(n.changes!==void 0||n.documentChanges!==void 0)&&(n.documentChanges===void 0||n.documentChanges.every(i=>h.string(i.kind)?no.is(i)||io.is(i)||oo.is(i):ro.is(i)))}e.is=t})(so||(so={}));(function(e){function t(n){return{uri:n}}e.create=t;function r(n){let i=n;return h.defined(i)&&h.string(i.uri)}e.is=r})(nc||(nc={}));(function(e){function t(n,i){return{uri:n,version:i}}e.create=t;function r(n){let i=n;return h.defined(i)&&h.string(i.uri)&&h.integer(i.version)}e.is=r})(ic||(ic={}));(function(e){function t(n,i){return{uri:n,version:i}}e.create=t;function r(n){let i=n;return h.defined(i)&&h.string(i.uri)&&(i.version===null||h.integer(i.version))}e.is=r})(ao||(ao={}));(function(e){function t(n,i,o,s){return{uri:n,languageId:i,version:o,text:s}}e.create=t;function r(n){let i=n;return h.defined(i)&&h.string(i.uri)&&h.string(i.languageId)&&h.integer(i.version)&&h.string(i.text)}e.is=r})(oc||(oc={}));(function(e){e.PlainText="plaintext",e.Markdown="markdown";function t(r){let n=r;return n===e.PlainText||n===e.Markdown}e.is=t})(lo||(lo={}));(function(e){function t(r){let n=r;return h.objectLiteral(r)&&lo.is(n.kind)&&h.string(n.value)}e.is=t})(Yt||(Yt={}));(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(un||(un={}));(function(e){e.PlainText=1,e.Snippet=2})(Kt||(Kt={}));(function(e){e.Deprecated=1})(sc||(sc={}));(function(e){function t(n,i,o){return{newText:n,insert:i,replace:o}}e.create=t;function r(n){let i=n;return i&&h.string(i.newText)&&K.is(i.insert)&&K.is(i.replace)}e.is=r})(ac||(ac={}));(function(e){e.asIs=1,e.adjustIndentation=2})(lc||(lc={}));(function(e){function t(r){let n=r;return n&&(h.string(n.detail)||n.detail===void 0)&&(h.string(n.description)||n.description===void 0)}e.is=t})(uc||(uc={}));(function(e){function t(r){return{label:r}}e.create=t})(er||(er={}));(function(e){function t(r,n){return{items:r||[],isIncomplete:!!n}}e.create=t})(tr||(tr={}));(function(e){function t(n){return n.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=t;function r(n){let i=n;return h.string(i)||h.objectLiteral(i)&&h.string(i.language)&&h.string(i.value)}e.is=r})(cn||(cn={}));(function(e){function t(r){let n=r;return!!n&&h.objectLiteral(n)&&(Yt.is(n.contents)||cn.is(n.contents)||h.typedArray(n.contents,cn.is))&&(r.range===void 0||K.is(r.range))}e.is=t})(cc||(cc={}));(function(e){function t(r,n){return n?{label:r,documentation:n}:{label:r}}e.create=t})(fc||(fc={}));(function(e){function t(r,n,...i){let o={label:r};return h.defined(n)&&(o.documentation=n),h.defined(i)?o.parameters=i:o.parameters=[],o}e.create=t})(pc||(pc={}));(function(e){e.Text=1,e.Read=2,e.Write=3})(dc||(dc={}));(function(e){function t(r,n){let i={range:r};return h.number(n)&&(i.kind=n),i}e.create=t})(hc||(hc={}));(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(mc||(mc={}));(function(e){e.Deprecated=1})(gc||(gc={}));(function(e){function t(r,n,i,o,s){let a={name:r,kind:n,location:{uri:o,range:i}};return s&&(a.containerName=s),a}e.create=t})(bc||(bc={}));(function(e){function t(r,n,i,o){return o!==void 0?{name:r,kind:n,location:{uri:i,range:o}}:{name:r,kind:n,location:{uri:i}}}e.create=t})(yc||(yc={}));(function(e){function t(n,i,o,s,a,l){let u={name:n,detail:i,kind:o,range:s,selectionRange:a};return l!==void 0&&(u.children=l),u}e.create=t;function r(n){let i=n;return i&&h.string(i.name)&&h.number(i.kind)&&K.is(i.range)&&K.is(i.selectionRange)&&(i.detail===void 0||h.string(i.detail))&&(i.deprecated===void 0||h.boolean(i.deprecated))&&(i.children===void 0||Array.isArray(i.children))&&(i.tags===void 0||Array.isArray(i.tags))}e.is=r})(vc||(vc={}));(function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"})(xc||(xc={}));(function(e){e.Invoked=1,e.Automatic=2})(fn||(fn={}));(function(e){function t(n,i,o){let s={diagnostics:n};return i!=null&&(s.only=i),o!=null&&(s.triggerKind=o),s}e.create=t;function r(n){let i=n;return h.defined(i)&&h.typedArray(i.diagnostics,ln.is)&&(i.only===void 0||h.typedArray(i.only,h.string))&&(i.triggerKind===void 0||i.triggerKind===fn.Invoked||i.triggerKind===fn.Automatic)}e.is=r})(wc||(wc={}));(function(e){function t(n,i,o){let s={title:n},a=!0;return typeof i=="string"?(a=!1,s.kind=i):wt.is(i)?s.command=i:s.edit=i,a&&o!==void 0&&(s.kind=o),s}e.create=t;function r(n){let i=n;return i&&h.string(i.title)&&(i.diagnostics===void 0||h.typedArray(i.diagnostics,ln.is))&&(i.kind===void 0||h.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||wt.is(i.command))&&(i.isPreferred===void 0||h.boolean(i.isPreferred))&&(i.edit===void 0||so.is(i.edit))}e.is=r})(kc||(kc={}));(function(e){function t(n,i){let o={range:n};return h.defined(i)&&(o.data=i),o}e.create=t;function r(n){let i=n;return h.defined(i)&&K.is(i.range)&&(h.undefined(i.command)||wt.is(i.command))}e.is=r})(Ac||(Ac={}));(function(e){function t(n,i){return{tabSize:n,insertSpaces:i}}e.create=t;function r(n){let i=n;return h.defined(i)&&h.uinteger(i.tabSize)&&h.boolean(i.insertSpaces)}e.is=r})(Sc||(Sc={}));(function(e){function t(n,i,o){return{range:n,target:i,data:o}}e.create=t;function r(n){let i=n;return h.defined(i)&&K.is(i.range)&&(h.undefined(i.target)||h.string(i.target))}e.is=r})(Ec||(Ec={}));(function(e){function t(n,i){return{range:n,parent:i}}e.create=t;function r(n){let i=n;return h.objectLiteral(i)&&K.is(i.range)&&(i.parent===void 0||e.is(i.parent))}e.is=r})(Tc||(Tc={}));(function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"})(Cc||(Cc={}));(function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"})(Oc||(Oc={}));(function(e){function t(r){let n=r;return h.objectLiteral(n)&&(n.resultId===void 0||typeof n.resultId=="string")&&Array.isArray(n.data)&&(n.data.length===0||typeof n.data[0]=="number")}e.is=t})(Pc||(Pc={}));(function(e){function t(n,i){return{range:n,text:i}}e.create=t;function r(n){let i=n;return i!=null&&K.is(i.range)&&h.string(i.text)}e.is=r})(Nc||(Nc={}));(function(e){function t(n,i,o){return{range:n,variableName:i,caseSensitiveLookup:o}}e.create=t;function r(n){let i=n;return i!=null&&K.is(i.range)&&h.boolean(i.caseSensitiveLookup)&&(h.string(i.variableName)||i.variableName===void 0)}e.is=r})($c||($c={}));(function(e){function t(n,i){return{range:n,expression:i}}e.create=t;function r(n){let i=n;return i!=null&&K.is(i.range)&&(h.string(i.expression)||i.expression===void 0)}e.is=r})(Rc||(Rc={}));(function(e){function t(n,i){return{frameId:n,stoppedLocation:i}}e.create=t;function r(n){let i=n;return h.defined(i)&&K.is(n.stoppedLocation)}e.is=r})(jc||(jc={}));(function(e){e.Type=1,e.Parameter=2;function t(r){return r===1||r===2}e.is=t})(uo||(uo={}));(function(e){function t(n){return{value:n}}e.create=t;function r(n){let i=n;return h.objectLiteral(i)&&(i.tooltip===void 0||h.string(i.tooltip)||Yt.is(i.tooltip))&&(i.location===void 0||an.is(i.location))&&(i.command===void 0||wt.is(i.command))}e.is=r})(co||(co={}));(function(e){function t(n,i,o){let s={position:n,label:i};return o!==void 0&&(s.kind=o),s}e.create=t;function r(n){let i=n;return h.objectLiteral(i)&&we.is(i.position)&&(h.string(i.label)||h.typedArray(i.label,co.is))&&(i.kind===void 0||uo.is(i.kind))&&i.textEdits===void 0||h.typedArray(i.textEdits,Se.is)&&(i.tooltip===void 0||h.string(i.tooltip)||Yt.is(i.tooltip))&&(i.paddingLeft===void 0||h.boolean(i.paddingLeft))&&(i.paddingRight===void 0||h.boolean(i.paddingRight))}e.is=r})(Ic||(Ic={}));(function(e){function t(r){return{kind:"snippet",value:r}}e.createSnippet=t})(Fc||(Fc={}));(function(e){function t(r,n,i,o){return{insertText:r,filterText:n,range:i,command:o}}e.create=t})(Lc||(Lc={}));(function(e){function t(r){return{items:r}}e.create=t})(_c||(_c={}));(function(e){e.Invoked=0,e.Automatic=1})(Dc||(Dc={}));(function(e){function t(r,n){return{range:r,text:n}}e.create=t})(qc||(qc={}));(function(e){function t(r,n){return{triggerKind:r,selectedCompletionInfo:n}}e.create=t})(Bc||(Bc={}));(function(e){function t(r){let n=r;return h.objectLiteral(n)&&Yi.is(n.uri)&&h.string(n.name)}e.is=t})(zc||(zc={}));(function(e){function t(o,s,a,l){return new fo(o,s,a,l)}e.create=t;function r(o){let s=o;return!!(h.defined(s)&&h.string(s.uri)&&(h.undefined(s.languageId)||h.string(s.languageId))&&h.uinteger(s.lineCount)&&h.func(s.getText)&&h.func(s.positionAt)&&h.func(s.offsetAt))}e.is=r;function n(o,s){let a=o.getText(),l=i(s,(c,f)=>{let m=c.range.start.line-f.range.start.line;return m===0?c.range.start.character-f.range.start.character:m}),u=a.length;for(let c=l.length-1;c>=0;c--){let f=l[c],m=o.offsetAt(f.range.start),d=o.offsetAt(f.range.end);if(d<=u)a=a.substring(0,m)+f.newText+a.substring(d,a.length);else throw new Error("Overlapping edit");u=m}return a}e.applyEdits=n;function i(o,s){if(o.length<=1)return o;let a=o.length/2|0,l=o.slice(0,a),u=o.slice(a);i(l,s),i(u,s);let c=0,f=0,m=0;for(;c<l.length&&f<u.length;)s(l[c],u[f])<=0?o[m++]=l[c++]:o[m++]=u[f++];for(;c<l.length;)o[m++]=l[c++];for(;f<u.length;)o[m++]=u[f++];return o}})(Uc||(Uc={}));fo=class{constructor(t,r,n,i){this._uri=t,this._languageId=r,this._version=n,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(t){if(t){let r=this.offsetAt(t.start),n=this.offsetAt(t.end);return this._content.substring(r,n)}return this._content}update(t,r){this._content=t.text,this._version=r,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let t=[],r=this._content,n=!0;for(let i=0;i<r.length;i++){n&&(t.push(i),n=!1);let o=r.charAt(i);n=o==="\r"||o===`
13
+ `,o==="\r"&&i+1<r.length&&r.charAt(i+1)===`
14
+ `&&i++}n&&r.length>0&&t.push(r.length),this._lineOffsets=t}return this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let r=this.getLineOffsets(),n=0,i=r.length;if(i===0)return we.create(0,t);for(;n<i;){let s=Math.floor((n+i)/2);r[s]>t?i=s:n=s+1}let o=n-1;return we.create(o,t-r[o])}offsetAt(t){let r=this.getLineOffsets();if(t.line>=r.length)return this._content.length;if(t.line<0)return 0;let n=r[t.line],i=t.line+1<r.length?r[t.line+1]:this._content.length;return Math.max(Math.min(n+t.character,i),n)}get lineCount(){return this.getLineOffsets().length}};(function(e){let t=Object.prototype.toString;function r(d){return typeof d<"u"}e.defined=r;function n(d){return typeof d>"u"}e.undefined=n;function i(d){return d===!0||d===!1}e.boolean=i;function o(d){return t.call(d)==="[object String]"}e.string=o;function s(d){return t.call(d)==="[object Number]"}e.number=s;function a(d,v,b){return t.call(d)==="[object Number]"&&v<=d&&d<=b}e.numberRange=a;function l(d){return t.call(d)==="[object Number]"&&-2147483648<=d&&d<=2147483647}e.integer=l;function u(d){return t.call(d)==="[object Number]"&&0<=d&&d<=2147483647}e.uinteger=u;function c(d){return t.call(d)==="[object Function]"}e.func=c;function f(d){return d!==null&&typeof d=="object"}e.objectLiteral=f;function m(d,v){return Array.isArray(d)&&d.every(v)}e.typedArray=m})(h||(h={}))});var Wc,Vc,MA,Hc=he(()=>{"use strict";p();(()=>{"use strict";var e={470:i=>{function o(l){if(typeof l!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(l))}function s(l,u){for(var c,f="",m=0,d=-1,v=0,b=0;b<=l.length;++b){if(b<l.length)c=l.charCodeAt(b);else{if(c===47)break;c=47}if(c===47){if(!(d===b-1||v===1))if(d!==b-1&&v===2){if(f.length<2||m!==2||f.charCodeAt(f.length-1)!==46||f.charCodeAt(f.length-2)!==46){if(f.length>2){var A=f.lastIndexOf("/");if(A!==f.length-1){A===-1?(f="",m=0):m=(f=f.slice(0,A)).length-1-f.lastIndexOf("/"),d=b,v=0;continue}}else if(f.length===2||f.length===1){f="",m=0,d=b,v=0;continue}}u&&(f.length>0?f+="/..":f="..",m=2)}else f.length>0?f+="/"+l.slice(d+1,b):f=l.slice(d+1,b),m=b-d-1;d=b,v=0}else c===46&&v!==-1?++v:v=-1}return f}var a={resolve:function(){for(var l,u="",c=!1,f=arguments.length-1;f>=-1&&!c;f--){var m;f>=0?m=arguments[f]:(l===void 0&&(l=process.cwd()),m=l),o(m),m.length!==0&&(u=m+"/"+u,c=m.charCodeAt(0)===47)}return u=s(u,!c),c?u.length>0?"/"+u:"/":u.length>0?u:"."},normalize:function(l){if(o(l),l.length===0)return".";var u=l.charCodeAt(0)===47,c=l.charCodeAt(l.length-1)===47;return(l=s(l,!u)).length!==0||u||(l="."),l.length>0&&c&&(l+="/"),u?"/"+l:l},isAbsolute:function(l){return o(l),l.length>0&&l.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var l,u=0;u<arguments.length;++u){var c=arguments[u];o(c),c.length>0&&(l===void 0?l=c:l+="/"+c)}return l===void 0?".":a.normalize(l)},relative:function(l,u){if(o(l),o(u),l===u||(l=a.resolve(l))===(u=a.resolve(u)))return"";for(var c=1;c<l.length&&l.charCodeAt(c)===47;++c);for(var f=l.length,m=f-c,d=1;d<u.length&&u.charCodeAt(d)===47;++d);for(var v=u.length-d,b=m<v?m:v,A=-1,x=0;x<=b;++x){if(x===b){if(v>b){if(u.charCodeAt(d+x)===47)return u.slice(d+x+1);if(x===0)return u.slice(d+x)}else m>b&&(l.charCodeAt(c+x)===47?A=x:x===0&&(A=0));break}var T=l.charCodeAt(c+x);if(T!==u.charCodeAt(d+x))break;T===47&&(A=x)}var y="";for(x=c+A+1;x<=f;++x)x!==f&&l.charCodeAt(x)!==47||(y.length===0?y+="..":y+="/..");return y.length>0?y+u.slice(d+A):(d+=A,u.charCodeAt(d)===47&&++d,u.slice(d))},_makeLong:function(l){return l},dirname:function(l){if(o(l),l.length===0)return".";for(var u=l.charCodeAt(0),c=u===47,f=-1,m=!0,d=l.length-1;d>=1;--d)if((u=l.charCodeAt(d))===47){if(!m){f=d;break}}else m=!1;return f===-1?c?"/":".":c&&f===1?"//":l.slice(0,f)},basename:function(l,u){if(u!==void 0&&typeof u!="string")throw new TypeError('"ext" argument must be a string');o(l);var c,f=0,m=-1,d=!0;if(u!==void 0&&u.length>0&&u.length<=l.length){if(u.length===l.length&&u===l)return"";var v=u.length-1,b=-1;for(c=l.length-1;c>=0;--c){var A=l.charCodeAt(c);if(A===47){if(!d){f=c+1;break}}else b===-1&&(d=!1,b=c+1),v>=0&&(A===u.charCodeAt(v)?--v==-1&&(m=c):(v=-1,m=b))}return f===m?m=b:m===-1&&(m=l.length),l.slice(f,m)}for(c=l.length-1;c>=0;--c)if(l.charCodeAt(c)===47){if(!d){f=c+1;break}}else m===-1&&(d=!1,m=c+1);return m===-1?"":l.slice(f,m)},extname:function(l){o(l);for(var u=-1,c=0,f=-1,m=!0,d=0,v=l.length-1;v>=0;--v){var b=l.charCodeAt(v);if(b!==47)f===-1&&(m=!1,f=v+1),b===46?u===-1?u=v:d!==1&&(d=1):u!==-1&&(d=-1);else if(!m){c=v+1;break}}return u===-1||f===-1||d===0||d===1&&u===f-1&&u===c+1?"":l.slice(u,f)},format:function(l){if(l===null||typeof l!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof l);return(function(u,c){var f=c.dir||c.root,m=c.base||(c.name||"")+(c.ext||"");return f?f===c.root?f+m:f+"/"+m:m})(0,l)},parse:function(l){o(l);var u={root:"",dir:"",base:"",ext:"",name:""};if(l.length===0)return u;var c,f=l.charCodeAt(0),m=f===47;m?(u.root="/",c=1):c=0;for(var d=-1,v=0,b=-1,A=!0,x=l.length-1,T=0;x>=c;--x)if((f=l.charCodeAt(x))!==47)b===-1&&(A=!1,b=x+1),f===46?d===-1?d=x:T!==1&&(T=1):d!==-1&&(T=-1);else if(!A){v=x+1;break}return d===-1||b===-1||T===0||T===1&&d===b-1&&d===v+1?b!==-1&&(u.base=u.name=v===0&&m?l.slice(1,b):l.slice(v,b)):(v===0&&m?(u.name=l.slice(1,d),u.base=l.slice(1,b)):(u.name=l.slice(v,d),u.base=l.slice(v,b)),u.ext=l.slice(d,b)),v>0?u.dir=l.slice(0,v-1):m&&(u.dir="/"),u},sep:"/",delimiter:":",win32:null,posix:null};a.posix=a,i.exports=a}},t={};function r(i){var o=t[i];if(o!==void 0)return o.exports;var s=t[i]={exports:{}};return e[i](s,s.exports,r),s.exports}r.d=(i,o)=>{for(var s in o)r.o(o,s)&&!r.o(i,s)&&Object.defineProperty(i,s,{enumerable:!0,get:o[s]})},r.o=(i,o)=>Object.prototype.hasOwnProperty.call(i,o),r.r=i=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})};var n={};(()=>{let i;r.r(n),r.d(n,{URI:()=>m,Utils:()=>F}),typeof process=="object"?i=!1:typeof navigator=="object"&&(i=navigator.userAgent.indexOf("Windows")>=0);let o=/^\w[\w\d+.-]*$/,s=/^\//,a=/^\/\//;function l(C,g){if(!C.scheme&&g)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${C.authority}", path: "${C.path}", query: "${C.query}", fragment: "${C.fragment}"}`);if(C.scheme&&!o.test(C.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(C.path){if(C.authority){if(!s.test(C.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(a.test(C.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}let u="",c="/",f=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class m{static isUri(g){return g instanceof m||!!g&&typeof g.authority=="string"&&typeof g.fragment=="string"&&typeof g.path=="string"&&typeof g.query=="string"&&typeof g.scheme=="string"&&typeof g.fsPath=="string"&&typeof g.with=="function"&&typeof g.toString=="function"}scheme;authority;path;query;fragment;constructor(g,N,O,L,I,_=!1){typeof g=="object"?(this.scheme=g.scheme||u,this.authority=g.authority||u,this.path=g.path||u,this.query=g.query||u,this.fragment=g.fragment||u):(this.scheme=(function(ce,fe){return ce||fe?ce:"file"})(g,_),this.authority=N||u,this.path=(function(ce,fe){switch(ce){case"https":case"http":case"file":fe?fe[0]!==c&&(fe=c+fe):fe=c}return fe})(this.scheme,O||u),this.query=L||u,this.fragment=I||u,l(this,_))}get fsPath(){return T(this,!1)}with(g){if(!g)return this;let{scheme:N,authority:O,path:L,query:I,fragment:_}=g;return N===void 0?N=this.scheme:N===null&&(N=u),O===void 0?O=this.authority:O===null&&(O=u),L===void 0?L=this.path:L===null&&(L=u),I===void 0?I=this.query:I===null&&(I=u),_===void 0?_=this.fragment:_===null&&(_=u),N===this.scheme&&O===this.authority&&L===this.path&&I===this.query&&_===this.fragment?this:new v(N,O,L,I,_)}static parse(g,N=!1){let O=f.exec(g);return O?new v(O[2]||u,k(O[4]||u),k(O[5]||u),k(O[7]||u),k(O[9]||u),N):new v(u,u,u,u,u)}static file(g){let N=u;if(i&&(g=g.replace(/\\/g,c)),g[0]===c&&g[1]===c){let O=g.indexOf(c,2);O===-1?(N=g.substring(2),g=c):(N=g.substring(2,O),g=g.substring(O)||c)}return new v("file",N,g,u,u)}static from(g){let N=new v(g.scheme,g.authority,g.path,g.query,g.fragment);return l(N,!0),N}toString(g=!1){return y(this,g)}toJSON(){return this}static revive(g){if(g){if(g instanceof m)return g;{let N=new v(g);return N._formatted=g.external,N._fsPath=g._sep===d?g.fsPath:null,N}}return g}}let d=i?1:void 0;class v extends m{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=T(this,!1)),this._fsPath}toString(g=!1){return g?y(this,!0):(this._formatted||(this._formatted=y(this,!1)),this._formatted)}toJSON(){let g={$mid:1};return this._fsPath&&(g.fsPath=this._fsPath,g._sep=d),this._formatted&&(g.external=this._formatted),this.path&&(g.path=this.path),this.scheme&&(g.scheme=this.scheme),this.authority&&(g.authority=this.authority),this.query&&(g.query=this.query),this.fragment&&(g.fragment=this.fragment),g}}let b={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function A(C,g,N){let O,L=-1;for(let I=0;I<C.length;I++){let _=C.charCodeAt(I);if(_>=97&&_<=122||_>=65&&_<=90||_>=48&&_<=57||_===45||_===46||_===95||_===126||g&&_===47||N&&_===91||N&&_===93||N&&_===58)L!==-1&&(O+=encodeURIComponent(C.substring(L,I)),L=-1),O!==void 0&&(O+=C.charAt(I));else{O===void 0&&(O=C.substr(0,I));let ce=b[_];ce!==void 0?(L!==-1&&(O+=encodeURIComponent(C.substring(L,I)),L=-1),O+=ce):L===-1&&(L=I)}}return L!==-1&&(O+=encodeURIComponent(C.substring(L))),O!==void 0?O:C}function x(C){let g;for(let N=0;N<C.length;N++){let O=C.charCodeAt(N);O===35||O===63?(g===void 0&&(g=C.substr(0,N)),g+=b[O]):g!==void 0&&(g+=C[N])}return g!==void 0?g:C}function T(C,g){let N;return N=C.authority&&C.path.length>1&&C.scheme==="file"?`//${C.authority}${C.path}`:C.path.charCodeAt(0)===47&&(C.path.charCodeAt(1)>=65&&C.path.charCodeAt(1)<=90||C.path.charCodeAt(1)>=97&&C.path.charCodeAt(1)<=122)&&C.path.charCodeAt(2)===58?g?C.path.substr(1):C.path[1].toLowerCase()+C.path.substr(2):C.path,i&&(N=N.replace(/\//g,"\\")),N}function y(C,g){let N=g?x:A,O="",{scheme:L,authority:I,path:_,query:ce,fragment:fe}=C;if(L&&(O+=L,O+=":"),(I||L==="file")&&(O+=c,O+=c),I){let Y=I.indexOf("@");if(Y!==-1){let _t=I.substr(0,Y);I=I.substr(Y+1),Y=_t.lastIndexOf(":"),Y===-1?O+=N(_t,!1,!1):(O+=N(_t.substr(0,Y),!1,!1),O+=":",O+=N(_t.substr(Y+1),!1,!0)),O+="@"}I=I.toLowerCase(),Y=I.lastIndexOf(":"),Y===-1?O+=N(I,!1,!0):(O+=N(I.substr(0,Y),!1,!0),O+=I.substr(Y))}if(_){if(_.length>=3&&_.charCodeAt(0)===47&&_.charCodeAt(2)===58){let Y=_.charCodeAt(1);Y>=65&&Y<=90&&(_=`/${String.fromCharCode(Y+32)}:${_.substr(3)}`)}else if(_.length>=2&&_.charCodeAt(1)===58){let Y=_.charCodeAt(0);Y>=65&&Y<=90&&(_=`${String.fromCharCode(Y+32)}:${_.substr(2)}`)}O+=N(_,!0,!1)}return ce&&(O+="?",O+=N(ce,!1,!1)),fe&&(O+="#",O+=g?fe:A(fe,!1,!1)),O}function E(C){try{return decodeURIComponent(C)}catch{return C.length>3?C.substr(0,3)+E(C.substr(3)):C}}let S=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function k(C){return C.match(S)?C.replace(S,(g=>E(g))):C}var P=r(470);let j=P.posix||P,$="/";var F;(function(C){C.joinPath=function(g,...N){return g.with({path:j.join(g.path,...N)})},C.resolvePath=function(g,...N){let O=g.path,L=!1;O[0]!==$&&(O=$+O,L=!0);let I=j.resolve(O,...N);return L&&I[0]===$&&!g.authority&&(I=I.substring(1)),g.with({path:I})},C.dirname=function(g){if(g.path.length===0||g.path===$)return g;let N=j.dirname(g.path);return N.length===1&&N.charCodeAt(0)===46&&(N=""),g.with({path:N})},C.basename=function(g){return j.basename(g.path)},C.extname=function(g){return j.extname(g.path)}})(F||(F={}))})(),Wc=n})();({URI:Vc,Utils:MA}=Wc)});var Gc,po,Qc=he(()=>{"use strict";p();Gc={properties:["additive-symbols","align-content","align-items","justify-items","justify-self","justify-items","align-self","all","alt","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","behavior","block-size","border","border-block-end","border-block-start","border-block-end-color","border-block-start-color","border-block-end-style","border-block-start-style","border-block-end-width","border-block-start-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline-end","border-inline-start","border-inline-end-color","border-inline-start-color","border-inline-end-style","border-inline-start-style","border-inline-end-width","border-inline-start-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation-filters","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","columns","column-span","column-width","contain","content","counter-increment","counter-reset","cursor","direction","display","empty-cells","enable-background","fallback","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","font","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","glyph-orientation-horizontal","glyph-orientation-vertical","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","height","hyphens","image-orientation","image-rendering","ime-mode","inline-size","isolation","justify-content","kerning","left","letter-spacing","lighting-color","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block-end","margin-block-start","margin-bottom","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marker","marker-end","marker-mid","marker-start","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","motion","motion-offset","motion-path","motion-rotation","-moz-animation","-moz-animation-delay","-moz-animation-direction","-moz-animation-duration","-moz-animation-iteration-count","-moz-animation-name","-moz-animation-play-state","-moz-animation-timing-function","-moz-appearance","-moz-backface-visibility","-moz-background-clip","-moz-background-inline-policy","-moz-background-origin","-moz-border-bottom-colors","-moz-border-image","-moz-border-left-colors","-moz-border-right-colors","-moz-border-top-colors","-moz-box-align","-moz-box-direction","-moz-box-flex","-moz-box-flexgroup","-moz-box-ordinal-group","-moz-box-orient","-moz-box-pack","-moz-box-sizing","-moz-column-count","-moz-column-gap","-moz-column-rule","-moz-column-rule-color","-moz-column-rule-style","-moz-column-rule-width","-moz-columns","-moz-column-width","-moz-font-feature-settings","-moz-hyphens","-moz-perspective","-moz-perspective-origin","-moz-text-align-last","-moz-text-decoration-color","-moz-text-decoration-line","-moz-text-decoration-style","-moz-text-size-adjust","-moz-transform","-moz-transform-origin","-moz-transition","-moz-transition-delay","-moz-transition-duration","-moz-transition-property","-moz-transition-timing-function","-moz-user-focus","-moz-user-select","-ms-accelerator","-ms-behavior","-ms-block-progression","-ms-content-zoom-chaining","-ms-content-zooming","-ms-content-zoom-limit","-ms-content-zoom-limit-max","-ms-content-zoom-limit-min","-ms-content-zoom-snap","-ms-content-zoom-snap-points","-ms-content-zoom-snap-type","-ms-filter","-ms-flex","-ms-flex-align","-ms-flex-direction","-ms-flex-flow","-ms-flex-item-align","-ms-flex-line-pack","-ms-flex-order","-ms-flex-pack","-ms-flex-wrap","-ms-flow-from","-ms-flow-into","-ms-grid-column","-ms-grid-column-align","-ms-grid-columns","-ms-grid-column-span","-ms-grid-layer","-ms-grid-row","-ms-grid-row-align","-ms-grid-rows","-ms-grid-row-span","-ms-high-contrast-adjust","-ms-hyphenate-limit-chars","-ms-hyphenate-limit-lines","-ms-hyphenate-limit-zone","-ms-hyphens","-ms-ime-mode","-ms-interpolation-mode","-ms-layout-grid","-ms-layout-grid-char","-ms-layout-grid-line","-ms-layout-grid-mode","-ms-layout-grid-type","-ms-line-break","-ms-overflow-style","-ms-perspective","-ms-perspective-origin","-ms-perspective-origin-x","-ms-perspective-origin-y","-ms-progress-appearance","-ms-scrollbar-3dlight-color","-ms-scrollbar-arrow-color","-ms-scrollbar-base-color","-ms-scrollbar-darkshadow-color","-ms-scrollbar-face-color","-ms-scrollbar-highlight-color","-ms-scrollbar-shadow-color","-ms-scrollbar-track-color","-ms-scroll-chaining","-ms-scroll-limit","-ms-scroll-limit-x-max","-ms-scroll-limit-x-min","-ms-scroll-limit-y-max","-ms-scroll-limit-y-min","-ms-scroll-rails","-ms-scroll-snap-points-x","-ms-scroll-snap-points-y","-ms-scroll-snap-type","-ms-scroll-snap-x","-ms-scroll-snap-y","-ms-scroll-translation","-ms-text-align-last","-ms-text-autospace","-ms-text-combine-horizontal","-ms-text-justify","-ms-text-kashida-space","-ms-text-overflow","-ms-text-size-adjust","-ms-text-underline-position","-ms-touch-action","-ms-touch-select","-ms-transform","-ms-transform-origin","-ms-transform-origin-x","-ms-transform-origin-y","-ms-transform-origin-z","-ms-user-select","-ms-word-break","-ms-word-wrap","-ms-wrap-flow","-ms-wrap-margin","-ms-wrap-through","-ms-writing-mode","-ms-zoom","-ms-zoom-animation","nav-down","nav-index","nav-left","nav-right","nav-up","negative","-o-animation","-o-animation-delay","-o-animation-direction","-o-animation-duration","-o-animation-fill-mode","-o-animation-iteration-count","-o-animation-name","-o-animation-play-state","-o-animation-timing-function","object-fit","object-position","-o-border-image","-o-object-fit","-o-object-position","opacity","order","orphans","-o-table-baseline","-o-tab-size","-o-text-overflow","-o-transform","-o-transform-origin","-o-transition","-o-transition-delay","-o-transition-duration","-o-transition-property","-o-transition-timing-function","offset-block-end","offset-block-start","offset-inline-end","offset-inline-start","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","pad","padding","padding-bottom","padding-block-end","padding-block-start","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","paint-order","perspective","perspective-origin","pointer-events","position","prefix","quotes","range","resize","right","ruby-align","ruby-overhang","ruby-position","ruby-span","scrollbar-3dlight-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-darkshadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","scroll-behavior","scroll-snap-coordinate","scroll-snap-destination","scroll-snap-points-x","scroll-snap-points-y","scroll-snap-type","shape-image-threshold","shape-margin","shape-outside","shape-rendering","size","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","suffix","system","symbols","table-layout","tab-size","text-align","text-align-last","text-anchor","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","unicode-range","user-select","vertical-align","visibility","-webkit-animation","-webkit-animation-delay","-webkit-animation-direction","-webkit-animation-duration","-webkit-animation-fill-mode","-webkit-animation-iteration-count","-webkit-animation-name","-webkit-animation-play-state","-webkit-animation-timing-function","-webkit-appearance","-webkit-backdrop-filter","-webkit-backface-visibility","-webkit-background-clip","-webkit-background-composite","-webkit-background-origin","-webkit-border-image","-webkit-box-align","-webkit-box-direction","-webkit-box-flex","-webkit-box-flex-group","-webkit-box-ordinal-group","-webkit-box-orient","-webkit-box-pack","-webkit-box-reflect","-webkit-box-sizing","-webkit-break-after","-webkit-break-before","-webkit-break-inside","-webkit-column-break-after","-webkit-column-break-before","-webkit-column-break-inside","-webkit-column-count","-webkit-column-gap","-webkit-column-rule","-webkit-column-rule-color","-webkit-column-rule-style","-webkit-column-rule-width","-webkit-columns","-webkit-column-span","-webkit-column-width","-webkit-filter","-webkit-flow-from","-webkit-flow-into","-webkit-font-feature-settings","-webkit-hyphens","-webkit-line-break","-webkit-margin-bottom-collapse","-webkit-margin-collapse","-webkit-margin-start","-webkit-margin-top-collapse","-webkit-mask-clip","-webkit-mask-image","-webkit-mask-origin","-webkit-mask-repeat","-webkit-mask-size","-webkit-nbsp-mode","-webkit-overflow-scrolling","-webkit-padding-start","-webkit-perspective","-webkit-perspective-origin","-webkit-region-fragment","-webkit-tap-highlight-color","-webkit-text-fill-color","-webkit-text-size-adjust","-webkit-text-stroke","-webkit-text-stroke-color","-webkit-text-stroke-width","-webkit-touch-callout","-webkit-transform","-webkit-transform-origin","-webkit-transform-origin-x","-webkit-transform-origin-y","-webkit-transform-origin-z","-webkit-transform-style","-webkit-transition","-webkit-transition-delay","-webkit-transition-duration","-webkit-transition-property","-webkit-transition-timing-function","-webkit-user-drag","-webkit-user-modify","-webkit-user-select","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","zoom"]},po={tags:["body","head","html","address","blockquote","dd","div","section","article","aside","header","footer","nav","menu","dl","dt","fieldset","form","frame","frameset","h1","h2","h3","h4","h5","h6","iframe","noframes","object","ol","p","ul","applet","center","dir","hr","pre","a","abbr","acronym","area","b","base","basefont","bdo","big","br","button","caption","cite","code","col","colgroup","del","dfn","em","font","i","img","input","ins","isindex","kbd","label","legend","li","link","map","meta","noscript","optgroup","option","param","q","s","samp","script","select","small","span","strike","strong","style","sub","sup","table","tbody","td","textarea","tfoot","th","thead","title","tr","tt","u","var","canvas","main","figure","plaintext","figcaption","hgroup","details","summary","audio","bdi","data","datalist","dialog","embed","mark","math","meter","output","picture","portal","progress","rp","rt","ruby","search","slot","source","template","time","track","video","wbr"]}});function Jc(e){return ky.test(e)}function Ay(e){let t=[];for(let n of e)n.length===0||n.length===1&&n.charCodeAt(0)===ho||(n.length===2&&n.charCodeAt(0)===ho&&n.charCodeAt(1)===ho?t.pop():t.push(n));e.length>1&&e[e.length-1].length===0&&t.push("");let r=t.join("/");return e[0].length===0&&(r="/"+r),r}function nr(e,...t){let r=e.path.split("/");for(let n of t)r.push(...n.split("/"));return e.with({path:Ay(r)})}var rr,ky,ho,Zc=he(()=>{"use strict";p();(function(e){e[e.Unknown=0]="Unknown",e[e.File=1]="File",e[e.Directory=2]="Directory",e[e.SymbolicLink=64]="SymbolicLink"})(rr||(rr={}));ky=new RegExp("^(/|//|\\\\\\\\|[A-Za-z]:(/|\\\\))"),ho=46});function ke(e){return e>47&&e<58}function kn(e,t,r){return t=t||65,r=r||90,e&=-33,e>=t&&e<=r}function Sf(e){return ke(e)||An(e)}function An(e){return e===95||kn(e)}function Sy(e){return e===196||e==214||e===220||e===228||e===246||e===252}function Ey(e){return e===32||e===9||e===160}function Oo(e){return Ey(e)||e===10||e===13}function Po(e){return e===39||e===34}function Ty(e){return{tokens:e,start:0,pos:0,size:e.length}}function Be(e){return e.tokens[e.pos]}function No(e){return e.tokens[e.pos++]}function At(e,t=e.start,r=e.pos){return e.tokens.slice(t,r)}function Pe(e){return e.pos<e.size}function ue(e,t){let r=Be(e);return r&&t(r)?(e.pos++,!0):!1}function $o(e,t,r=Be(e)){r&&r.start!=null&&(t+=` at ${r.start}`);let n=new Error(t);return n.pos=r&&r.start,n}function Cy(e,t={}){let r=Ty(e),n=Ef(r,t);if(Pe(r))throw $o(r,"Unexpected character");return n}function Ef(e,t){let r={type:"TokenGroup",elements:[]},n=r,i,o=[];for(;Pe(e)&&(i=Py(e,t)||Oy(e,t));)if(n.elements.push(i),ue(e,My))o.push(n),n=i;else{if(ue(e,Wy))continue;if(ue(e,ef))do o.length&&(n=o.pop());while(ue(e,ef))}return r}function Oy(e,t){if(ue(e,zy)){let r=Ef(e,t),n=No(e);return ve(n,"group",!1)&&(r.repeat=Ry(e)),r}}function Py(e,t){let r,n={type:"TokenElement",name:void 0,attributes:void 0,value:void 0,repeat:void 0,selfClose:!1,elements:[]};for(jy(e,t)&&(n.name=At(e));Pe(e);)if(e.start=e.pos,!n.repeat&&!mo(n)&&ue(e,gn))n.repeat=e.tokens[e.pos-1];else if(!n.value&&Tf(e))n.value=Cf(e);else if(r=Xc(e,"id",t)||Xc(e,"class",t)||Ny(e))n.attributes?n.attributes=n.attributes.concat(r):n.attributes=Array.isArray(r)?r.slice():[r];else{!mo(n)&&ue(e,Vy)&&(n.selfClose=!0,!n.repeat&&ue(e,gn)&&(n.repeat=e.tokens[e.pos-1]));break}return mo(n)?void 0:n}function Ny(e){if(ue(e,Dy)){let t=[],r;for(;Pe(e);)if(r=$y(e))t.push(r);else{if(ue(e,qy))break;if(!ue(e,Of))throw $o(e,`Unexpected "${Be(e).type}" token`)}return t}}function Xc(e,t,r){if(Ne(Be(e),t)){e.pos++;let n=1;for(;Ne(Be(e),t);)e.pos++,n++;let i={name:[Uy(t)]};return n>1&&(i.multiple=!0),r.jsx&&Tf(e)?(i.value=Cf(e),i.expression=!0):i.value=wo(e)?At(e):void 0,i}}function $y(e){if(Yc(e))return{value:At(e)};if(wo(e,!0)){let t=At(e),r;return ue(e,Iy)&&(Yc(e)||wo(e,!0))&&(r=At(e)),{name:t,value:r}}}function Ry(e){return gn(Be(e))?e.tokens[e.pos++]:void 0}function Yc(e){let t=e.pos,r=Be(e);if(mn(r)){for(e.pos++;Pe(e);)if(mn(No(e),r.single))return e.start=t,!0;throw $o(e,"Unclosed quote",r)}return!1}function wo(e,t){let r=e.pos,n={attribute:0,expression:0,group:0};for(;Pe(e);){let i=Be(e);if(n.expression)ve(i,"expression")&&(n[i.context]+=i.open?1:-1);else{if(mn(i)||Ne(i)||Of(i)||gn(i))break;if(ve(i)){if(!t)break;if(i.open)n[i.context]++;else if(n[i.context])n[i.context]--;else break}}e.pos++}return r!==e.pos?(e.start=r,!0):!1}function jy(e,t){let r=e.pos;if(t.jsx&&ue(e,Kc))for(;Pe(e);){let{pos:n}=e;if(!ue(e,_y)||!ue(e,Kc)){e.pos=n;break}}for(;Pe(e)&&ue(e,Ly););return e.pos!==r?(e.start=r,!0):!1}function Tf(e){let t=e.pos;if(ue(e,By)){let r=0;for(;Pe(e);){let n=No(e);if(ve(n,"expression"))if(n.open)r++;else if(r)r--;else break}return e.start=t,!0}return!1}function Cf(e){let t=e.start,r=e.pos;return ve(e.tokens[t],"expression",!0)&&t++,ve(e.tokens[r-1],"expression",!1)&&r--,At(e,t,r)}function ve(e,t,r){return!!(e&&e.type==="Bracket"&&(!t||e.context===t)&&(r==null||e.open===r))}function Ne(e,t){return!!(e&&e.type==="Operator"&&(!t||e.operator===t))}function mn(e,t){return!!(e&&e.type==="Quote"&&(t==null||e.single===t))}function Of(e){return!!(e&&e.type==="WhiteSpace")}function Iy(e){return Ne(e,"equal")}function gn(e){return!!(e&&e.type==="Repeater")}function Fy(e){return e.type==="Literal"}function Kc(e){if(Fy(e)){let t=e.value.charCodeAt(0);return t>=65&&t<=90}return!1}function Ly(e){return e.type==="Literal"||e.type==="RepeaterNumber"||e.type==="RepeaterPlaceholder"}function _y(e){return Ne(e,"class")}function Dy(e){return ve(e,"attribute",!0)}function qy(e){return ve(e,"attribute",!1)}function By(e){return ve(e,"expression",!0)}function zy(e){return ve(e,"group",!0)}function Uy(e){return{type:"Literal",value:e}}function mo(e){return!e.name&&!e.value&&!e.attributes}function My(e){return Ne(e,"child")}function Wy(e){return Ne(e,"sibling")}function ef(e){return Ne(e,"climb")}function Vy(e){return Ne(e,"close")}function Hy(e){return e.eat(B.Escape)?(e.start=e.pos,e.eof()||e.pos++,!0):!1}function Gy(e){let t=new hn(e),r=[],n={group:0,attribute:0,expression:0,quote:0},i=0,o;for(;!t.eof();)if(i=t.peek(),o=Qy(t,n),o)r.push(o),o.type==="Quote"?n.quote=i===n.quote?0:i:o.type==="Bracket"&&(n[o.context]+=o.open?1:-1);else throw t.error("Unexpected character");return r}function Qy(e,t){return nv(e,t)||tv(e)||rv(e)||ev(e)||Zy(e)||Jy(e,t)||Ky(e)||Xy(e)||Yy(e)}function Jy(e,t){let r=e.pos,n=t.expression,i="";for(;!e.eof();){if(Hy(e)){i+=e.current();continue}let o=e.peek();if(o===B.Slash&&!t.quote&&!t.expression&&!t.attribute){let s=e.string.charCodeAt(e.pos-1),a=e.string.charCodeAt(e.pos+1);if(ke(s)&&ke(a)){i+=e.string[e.pos++];continue}}if(o===t.quote||o===B.Dollar||iv(o,t))break;if(n){if(o===B.CurlyBracketOpen)t.expression++;else if(o===B.CurlyBracketClose)if(t.expression>n)t.expression--;else break}else if(!t.quote&&(!t.attribute&&!lv(o)||ov(o,t)||sv(o,t)||Po(o)||Pf(o)))break;i+=e.string[e.pos++]}if(r!==e.pos)return e.start=r,{type:"Literal",value:i,start:r,end:e.pos}}function Zy(e){let t=e.pos;if(e.eatWhile(Oo))return{type:"WhiteSpace",start:t,end:e.pos,value:e.substring(t,e.pos)}}function Xy(e){let t=e.peek();if(Po(t))return{type:"Quote",single:t===B.SingleQuote,start:e.pos++,end:e.pos}}function Yy(e){let t=e.peek(),r=Pf(t);if(r)return{type:"Bracket",open:av(t),context:r,start:e.pos++,end:e.pos}}function Ky(e){let t=Nf(e.peek());if(t)return{type:"Operator",operator:t,start:e.pos++,end:e.pos}}function ev(e){let t=e.pos;if(e.eat(B.Asterisk)){e.start=e.pos;let r=1,n=!1;return e.eatWhile(ke)?r=Number(e.current()):n=!0,{type:"Repeater",count:r,value:0,implicit:n,start:t,end:e.pos}}}function tv(e){let t=e.pos;if(e.eat(B.Dollar)&&e.eat(B.Hash))return{type:"RepeaterPlaceholder",value:void 0,start:t,end:e.pos};e.pos=t}function rv(e){let t=e.pos;if(e.eatWhile(B.Dollar)){let r=e.pos-t,n=!1,i=1,o=0;if(e.eat(B.At)){for(;e.eat(B.Climb);)o++;n=e.eat(B.Dash),e.start=e.pos,e.eatWhile(ke)&&(i=Number(e.current()))}return e.start=t,{type:"RepeaterNumber",size:r,reverse:n,base:i,parent:o,start:t,end:e.pos}}}function nv(e,t){let r=e.pos;if((t.expression||t.attribute)&&e.eat(B.Dollar)&&e.eat(B.CurlyBracketOpen)){e.start=e.pos;let n,i="";if(e.eatWhile(ke)?(n=Number(e.current()),i=e.eat(B.Colon)?tf(e):""):kn(e.peek())&&(i=tf(e)),e.eat(B.CurlyBracketClose))return{type:"Field",index:n,name:i,start:r,end:e.pos};throw e.error("Expecting }")}e.pos=r}function tf(e){let t=[];for(e.start=e.pos;!e.eof();)if(e.eat(B.CurlyBracketOpen))t.push(e.pos);else if(e.eat(B.CurlyBracketClose)){if(!t.length){e.pos--;break}t.pop()}else e.pos++;if(t.length)throw e.pos=t.pop(),e.error("Expecting }");return e.current()}function iv(e,t){let r=Nf(e);return!r||t.quote||t.expression?!1:!t.attribute||r==="equal"}function ov(e,t){return Oo(e)&&!t.expression}function sv(e,t){return e===B.Asterisk&&!t.attribute&&!t.expression}function Pf(e){if(e===B.RoundBracketOpen||e===B.RoundBracketClose)return"group";if(e===B.SquareBracketOpen||e===B.SquareBracketClose)return"attribute";if(e===B.CurlyBracketOpen||e===B.CurlyBracketClose)return"expression"}function Nf(e){return e===B.Child&&"child"||e===B.Sibling&&"sibling"||e===B.Climb&&"climb"||e===B.Dot&&"class"||e===B.Hash&&"id"||e===B.Slash&&"close"||e===B.Equals&&"equal"||void 0}function av(e){return e===B.CurlyBracketOpen||e===B.SquareBracketOpen||e===B.RoundBracketOpen}function lv(e){return Sf(e)||Sy(e)||e===B.Dash||e===B.Colon||e===B.Excl}function $f(e,t){if(!rf[e.type])throw new Error(`Unknown token ${e.type}`);return rf[e.type](e,t)}function pv(e,t={}){let r=!1,n;t.text&&(Array.isArray(t.text)?n=t.text.filter(o=>o.trim()):n=t.text);let i={type:"Abbreviation",children:ko(e,{inserted:!1,repeaters:[],text:t.text,cleanText:n,repeatGuard:t.maxRepeat||Number.POSITIVE_INFINITY,getText(o){var s;r=!0;let a;if(Array.isArray(t.text)){if(o!==void 0&&o>=0&&o<n.length)return n[o];a=o!==void 0?t.text[o]:t.text.join(`
15
+ `)}else a=(s=t.text)!==null&&s!==void 0?s:"";return a},getVariable(o){let s=t.variables&&t.variables[o];return s??o}})};if(t.text!=null&&!r){let o=Ro(Tt(i.children));if(o){let s=Array.isArray(t.text)?t.text.join(`
16
+ `):t.text;Lf(o,s),o.name==="a"&&t.href&&hv(o,s)}}return i}function Rf(e,t){let r=[];if(e.repeat){let n=e.repeat,i=Object.assign({},n);i.count=i.implicit&&Array.isArray(t.text)?t.cleanText.length:i.count||1;let o;t.repeaters.push(i);for(let s=0;s<i.count;s++){if(i.value=s,e.repeat=i,o=of(e)?ko(e,t):nf(e,t),i.implicit&&!t.inserted){let a=Tt(o),l=a&&Ro(a);l&&Lf(l,t.getText(i.value))}if(r=r.concat(o),--t.repeatGuard<=0)break}t.repeaters.pop(),e.repeat=n,i.implicit&&(t.inserted=!0)}else r=r.concat(of(e)?ko(e,t):nf(e,t));return r}function nf(e,t){let r=[],n={type:"AbbreviationNode",name:e.name&&jf(e.name,t),value:e.value&&If(e.value,t),attributes:void 0,children:r,repeat:e.repeat&&Object.assign({},e.repeat),selfClosing:e.selfClose},i=[n];for(let o of e.elements)r=r.concat(Rf(o,t));if(e.attributes){n.attributes=[];for(let o of e.attributes)n.attributes.push(dv(o,t))}return!n.name&&!n.attributes&&n.value&&!n.value.some(Ff)?i=i.concat(r):n.children=r,i}function ko(e,t){let r=[];for(let n of e.elements)r=r.concat(Rf(n,t));return e.repeat&&(r=mv(r,e.repeat)),r}function dv(e,t){let r=!1,n=!1,i=e.expression?"expression":"raw",o,s=e.name&&jf(e.name,t);if(s&&s[0]==="!"&&(r=!0),s&&s[s.length-1]==="."&&(n=!0),e.value){let a=e.value.slice();if(mn(a[0])){let l=a.shift();a.length&&Tt(a).type===l.type&&a.pop(),i=l.single?"singleQuote":"doubleQuote"}else ve(a[0],"expression",!0)&&(i="expression",a.shift(),ve(Tt(a),"expression",!1)&&a.pop());o=If(a,t)}return{name:n||r?s.slice(r?1:0,n?-1:void 0):s,value:o,boolean:n,implied:r,valueType:i,multiple:e.multiple}}function jf(e,t){let r="";for(let n=0;n<e.length;n++)r+=$f(e[n],t);return r}function If(e,t){let r=[],n="";for(let i=0,o;i<e.length;i++)o=e[i],Ff(o)?(n&&(r.push(n),n=""),r.push(o)):n+=$f(o,t);return n&&r.push(n),r}function of(e){return e.type==="TokenGroup"}function Ff(e){return typeof e=="object"&&e.type==="Field"&&e.index!=null}function Tt(e){return e[e.length-1]}function Ro(e){return e.children.length?Ro(Tt(e.children)):e}function Lf(e,t){e.value?typeof Tt(e.value)=="string"?e.value[e.value.length-1]+=t:e.value.push(t):e.value=[t]}function hv(e,t){var r;let n="";cv.test(t)?(n=t,!/\w+:/.test(n)&&!n.startsWith("//")&&(n=`http://${n}`)):fv.test(t)&&(n=`mailto:${t}`);let i=(r=e.attributes)===null||r===void 0?void 0:r.find(o=>o.name==="href");i?i.value||(i.value=[n]):(e.attributes||(e.attributes=[]),e.attributes.push({name:"href",value:[n],valueType:"doubleQuote"}))}function mv(e,t){for(let r of e)r.repeat||(r.repeat=Object.assign({},t));return e}function _f(e,t){try{let r=typeof e=="string"?Gy(e):e;return pv(Cy(r,t),t)}catch(r){throw r instanceof ir&&typeof e=="string"&&(r.message+=`
17
+ ${e}
18
+ ${"-".repeat(r.pos)}^`),r}}function gv(e,t){let r=0,n,i=new hn(e),o=[];for(;!i.eof();){if(n=bv(i,r===0&&!t),!n)throw i.error("Unexpected character");if(n.type==="Bracket"&&(!r&&n.open&&jv(i,o),r+=n.open?1:-1,r<0))throw i.error("Unexpected bracket",n.start);o.push(n),Rv(n)&&(n=Df(i))&&o.push(n)}return o}function bv(e,t){return yv(e)||Sv(e)||xv(e)||kv(e)||wv(e)||Ev(e)||Df(e)||Av(e)||vv(e,t)}function yv(e){let t=e.pos;if(e.eat(V.Dollar)&&e.eat(V.CurlyBracketOpen)){e.start=e.pos;let r,n="";if(e.eatWhile(ke)?(r=Number(e.current()),n=e.eat(V.Colon)?sf(e):""):kn(e.peek())&&(n=sf(e)),e.eat(V.CurlyBracketClose))return{type:"Field",index:r,name:n,start:t,end:e.pos};throw e.error("Expecting }")}e.pos=t}function sf(e){let t=[];for(e.start=e.pos;!e.eof();)if(e.eat(V.CurlyBracketOpen))t.push(e.pos);else if(e.eat(V.CurlyBracketClose)){if(!t.length){e.pos--;break}t.pop()}else e.pos++;if(t.length)throw e.pos=t.pop(),e.error("Expecting }");return e.current()}function vv(e,t){let r=e.pos;if(e.eat(Cv)?e.eatWhile(r?Ao:bo):e.eat(An)?e.eatWhile(t?bo:Ao):(e.eat(V.Dot),e.eatWhile(bo)),r!==e.pos)return e.start=r,jo(e,e.start=r)}function jo(e,t=e.start,r=e.pos){return{type:"Literal",value:e.substring(t,r),start:t,end:r}}function xv(e){let t=e.pos;if(Tv(e)){e.start=t;let r=e.current();return e.start=e.pos,e.eat(V.Percent)||e.eatWhile(An),{type:"NumberValue",value:Number(r),rawValue:r,unit:e.current(),start:t,end:e.pos}}}function wv(e){let t=e.peek(),r=e.pos,n=!1;if(Po(t)){for(e.pos++;!e.eof();)if(e.eat(t)){n=!0;break}else e.pos++;return e.start=r,{type:"StringValue",value:e.substring(r+1,e.pos-(n?1:0)),quote:t===V.SingleQuote?"single":"double",start:r,end:e.pos}}}function kv(e){let t=e.pos;if(e.eat(V.Hash)){let r=e.pos,n="",i="";if(e.eatWhile(Pv)?(n=e.substring(r,e.pos),i=go(e)):e.eat(V.Transparent)?(n="0",i=go(e)||"0"):i=go(e),n||i||e.eof()){let{r:o,g:s,b:a,a:l}=$v(n,i);return{type:"ColorValue",r:o,g:s,b:a,a:l,raw:e.substring(t+1,e.pos),start:t,end:e.pos}}else return jo(e,t)}e.pos=t}function go(e){let t=e.pos;return e.eat(V.Dot)?(e.start=t,e.eatWhile(ke)?e.current():"1"):""}function Av(e){let t=e.pos;if(e.eatWhile(Oo))return{type:"WhiteSpace",start:t,end:e.pos}}function Sv(e){let t=e.pos;if(e.eat(V.Dash)&&e.eat(V.Dash))return e.start=t,e.eatWhile(Ao),{type:"CustomProperty",value:e.current(),start:t,end:e.pos};e.pos=t}function Ev(e){let t=e.peek();if(Nv(t))return{type:"Bracket",open:t===V.RoundBracketOpen,start:e.pos++,end:e.pos}}function Df(e){let t=Ov(e.peek());if(t)return{type:"Operator",operator:t,start:e.pos++,end:e.pos}}function Tv(e){let t=e.pos;e.eat(V.Dash);let r=e.pos,n=e.eatWhile(ke),i=e.pos;if(e.eat(V.Dot)){let o=e.eatWhile(ke);!n&&!o&&(e.pos=i)}return e.pos===r&&(e.pos=t),e.pos!==t}function Cv(e){return e===V.At||e===V.Dollar}function Ov(e){return e===V.Sibling&&be.Sibling||e===V.Excl&&be.Important||e===V.Comma&&be.ArgumentDelimiter||e===V.Colon&&be.PropertyDelimiter||e===V.Dash&&be.ValueDelimiter||void 0}function Pv(e){return ke(e)||kn(e,65,70)}function Ao(e){return Sf(e)||e===V.Dash}function Nv(e){return e===V.RoundBracketOpen||e===V.RoundBracketClose}function bo(e){return An(e)||e===V.Percent||e===V.Slash}function $v(e,t){let r="0",n="0",i="0",o=Number(t!=null&&t!==""?t:1);if(e==="t")o=0;else switch(e.length){case 0:break;case 1:r=n=i=e+e;break;case 2:r=n=i=e;break;case 3:r=e[0]+e[0],n=e[1]+e[1],i=e[2]+e[2];break;default:e+=e,r=e.slice(0,2),n=e.slice(2,4),i=e.slice(4,6)}return{r:parseInt(r,16),g:parseInt(n,16),b:parseInt(i,16),a:o}}function Rv(e){return e.type==="ColorValue"||e.type==="NumberValue"&&!e.unit}function jv(e,t){let r=0,n=0;for(;t.length;){let i=Iv(t);if(i.type==="Literal"||i.type==="NumberValue")r=i.start,n||(n=i.end),t.pop();else break}r!==n&&t.push(jo(e,r,n))}function Iv(e){return e[e.length-1]}function Fv(e){return{tokens:e,start:0,pos:0,size:e.length}}function Sn(e){return e.tokens[e.pos]}function En(e){return e.pos<e.size}function Oe(e,t){return t(Sn(e))?(e.pos++,!0):!1}function qf(e,t,r=Sn(e)){r&&r.start!=null&&(t+=` at ${r.start}`);let n=new Error(t);return n.pos=r&&r.start,n}function Lv(e,t={}){let r=Fv(e),n=[],i;for(;En(r);)if(i=_v(r,t))n.push(i);else if(!Oe(r,zv))throw qf(r,"Unexpected token");return n}function _v(e,t){let r,n=!1,i,o=[],s=Sn(e),a=!!t.value;for(!a&&Io(s)&&!Vv(e)&&(e.pos++,r=s.value,Oe(e,Mf)),a&&Oe(e,Fo);En(e);)if(Oe(e,Mv))n=!0;else if(i=Bf(e,a))o.push(i);else if(!Oe(e,Uv))break;if(r||o.length||n)return{name:r,value:o,important:n}}function Bf(e,t){let r=[],n,i;for(;En(e);)if(n=Sn(e),Wv(n))e.pos++,Io(n)&&(i=Dv(e))?r.push({type:"FunctionCall",name:n.value,arguments:i}):r.push(n);else if(Mf(n)||t&&Fo(n))e.pos++;else break;return r.length?{type:"CSSValue",value:r}:void 0}function Dv(e){let t=e.pos;if(Oe(e,qv)){let r=[],n;for(;En(e)&&!Oe(e,Bv);)if(n=Bf(e,!0))r.push(n);else if(!Oe(e,Fo)&&!Oe(e,Uf))throw qf(e,"Unexpected token");return e.start=t,r}}function Io(e){return e&&e.type==="Literal"}function zf(e,t){return e&&e.type==="Bracket"&&(t==null||e.open===t)}function qv(e){return zf(e,!0)}function Bv(e){return zf(e,!1)}function Fo(e){return e&&e.type==="WhiteSpace"}function or(e,t){return e&&e.type==="Operator"&&(!t||e.operator===t)}function zv(e){return or(e,be.Sibling)}function Uf(e){return or(e,be.ArgumentDelimiter)}function Uv(e){return Uf(e)}function Mv(e){return or(e,be.Important)}function Wv(e){return e.type==="StringValue"||e.type==="ColorValue"||e.type==="NumberValue"||e.type==="Literal"||e.type==="Field"||e.type==="CustomProperty"}function Mf(e){return or(e,be.PropertyDelimiter)||or(e,be.ValueDelimiter)}function Vv(e){let t=e.tokens[e.pos],r=e.tokens[e.pos+1];return t&&r&&Io(t)&&r.type==="Bracket"}function Wf(e,t){try{let r=typeof e=="string"?gv(e,t&&t.value):e;return Lv(r,t)}catch(r){throw r instanceof ir&&typeof e=="string"&&(r.message+=`
19
+ ${e}
20
+ ${"-".repeat(r.pos)}^`),r}}function Hv(e,t){if(!e.attributes)return;let r=[],n={};for(let i of e.attributes)if(i.name){let o=i.name;if(o in n){let s=n[o];o==="class"?s.value=Gv(s.value,i.value," "):Qv(s,i,t)}else r.push(n[o]=Object.assign({},i))}else r.push(i);e.attributes=r}function Gv(e,t,r){if(e&&t){e.length&&r&&af(e,r);for(let i of t)af(e,i);return e}let n=e||t;return n&&n.slice()}function Qv(e,t,r){return e.name=t.name,r.options["output.reverseAttributes"]||(e.value=t.value),e.implied||(e.implied=t.implied),e.boolean||(e.boolean=t.boolean),e.valueType!=="expression"&&(e.valueType=t.valueType),e}function af(e,t){let r=e.length-1;typeof e[r]=="string"&&typeof t=="string"?e[r]+=t:e.push(t)}function Jv(e,t,r){let n=[e],i=o=>{t(o,n,r),n.push(o),o.children.forEach(i),n.pop()};e.children.forEach(i)}function Vf(e,t){for(let r=0;r<e.children.length;r++){let n=e.children[r];if(t(n))return n;let i=Vf(n,t);if(i)return i}}function Zv(e){let t;for(;e.children.length;)t=e,e=e.children[e.children.length-1];return{parent:t,node:e}}function Hf(e){return e.type==="AbbreviationNode"}function Xv(e,t){let r=[],n=t.options["output.reverseAttributes"],{warn:i}=t,o=s=>{let a=s.name&&t.snippets[s.name];if(!a||r.includes(a))return null;let l;try{l=_f(a,t)}catch(u){return i?.(`Unable to parse "${a}" snippet`,u),null}r.push(a),bn(l,o),r.pop();for(let u of l.children){if(s.attributes){let c=u.attributes||[],f=s.attributes||[];u.attributes=n?f.concat(c):c.concat(f)}Yv(s,u)}return l};return bn(e,o),e}function bn(e,t,r){let n=[];for(let i of e.children){let o=t(i);if(o){n=n.concat(o.children);let s=Zv(o);Hf(s.node)&&(s.node.children=s.node.children.concat(bn(i,t)))}else n.push(i),i.children=bn(i,t)}return e.children=n}function Yv(e,t){e.selfClosing&&(t.selfClosing=!0),e.value!=null&&(t.value=e.value),e.repeat&&(t.repeat=e.repeat)}function Gf(e,t=0){return{options:e,value:"",level:t,offset:0,line:0,column:0}}function re(e,t){let r=e.options["output.text"];Zf(e,r(t,e.offset,e.line,e.column))}function G(e,t){let r=rx(t);for(let n=0,i=r.length-1;n<=i;n++)re(e,r[n]),n!==i&&Ee(e,!0)}function Ee(e,t){let r=e.options["output.baseIndent"],n=e.options["output.newline"];re(e,n+r),e.line++,e.column=r.length,t&&Kv(e,t===!0?e.level:t)}function Kv(e,t=e.level){let r=e.options["output.indent"];re(e,r.repeat(Math.max(t,0)))}function Lo(e,t,r){let n=e.options["output.field"];Zf(e,n(t,r,e.offset,e.line,e.column))}function ex(e,t){return Xf(e,t.options["output.tagCase"])}function Qf(e,t){return Xf(e,t.options["output.attributeCase"])}function yn(e,t,r){return e.valueType==="expression"?r?So:Eo:t.options["output.attributeQuotes"]==="single"?"'":'"'}function Jf(e,t){return e.boolean||t.options["output.booleanAttributes"].includes((e.name||"").toLowerCase())}function tx(e){switch(e.options["output.selfClosingStyle"]){case"xhtml":return" /";case"xml":return"/";default:return""}}function St(e,t){return typeof e=="string"?t.options.inlineElements.includes(e.toLowerCase()):e.name?St(e.name,t):!!(e.value&&!e.attributes)}function rx(e){return e.split(/\r\n|\r|\n/g)}function Zf(e,t){e.value+=t,e.offset+=t.length,e.column+=t.length}function Xf(e,t){return t?t==="upper"?e.toUpperCase():e.toLowerCase():e}function ix(e,t,r){!e.name&&e.attributes&&Yf(e,t,r)}function Yf(e,t,r){let n=sx(t),i=r.context?r.context.name:"",o=ox(n?n.name:i);e.name=nx[o]||(St(o,r)?"span":"div")}function ox(e){return(e||"").toLowerCase()}function sx(e){for(let t=e.length-1;t>=0;t--){let r=e[t];if(Hf(r))return r}}function fx(e,t,r){let n;if(e.name&&(n=e.name.match(cx))){let i=lf[n[1]]||lf.latin,o=n[2]?Math.max(1,Number(n[2])):30,s=n[3]?Math.max(o,Number(n[3].slice(1))):o,a=qe(o,s),l=e.repeat||gx(t);e.name=e.attributes=void 0,e.value=[mx(i,a,!l||l.value===0)],e.repeat&&t.length>1&&Yf(e,t,r)}}function qe(e,t){return Math.floor(Math.random()*(t-e)+e)}function px(e,t){let r=e.length,n=Math.min(r,t),i=[];for(;i.length<n;){let o=e[qe(0,r)];i.includes(o)||i.push(o)}return i}function dx(e){return e[qe(0,e.length-1)]}function uf(e,t){return e.length&&(e=[hx(e[0])].concat(e.slice(1))),e.join(" ")+(t||dx("?!..."))}function hx(e){return e[0].toUpperCase()+e.slice(1)}function cf(e){if(e.length<2)return e;e=e.slice();let t=e.length,r=/,$/,n=0;t>3&&t<=6?n=qe(0,1):t>6&&t<=12?n=qe(0,2):n=qe(1,4);for(let i=0,o;i<n;i++)o=qe(0,t-2),r.test(e[o])||(e[o]+=",");return e}function mx(e,t,r){let n=[],i=0,o;for(r&&e.common&&(o=e.common.slice(0,t),i+=o.length,n.push(uf(cf(o),".")));i<t;)o=px(e.words,Math.min(qe(2,30),t-i)),i+=o.length,n.push(uf(cf(o)));return n.join(" ")}function gx(e){for(let t=e.length-1;t>=0;t--){let r=e[t];if(r.type==="AbbreviationNode"&&r.repeat)return r.repeat}}function bx(e){vx(e.name)&&e.attributes&&(e.children.length||e.value)&&(e.attributes=e.attributes.filter(yx))}function yx(e){return e.name!=="select"}function vx(e){return e==="xsl:variable"||e==="xsl:with-param"}function kx(e,t,r){Ax(e),Sx(e,t,r)}function Ax(e){let t=_o(e),r=[];for(let n of t.classNames){let i=n.indexOf("_");i>0&&!n.startsWith("-")?(r.push(n.slice(0,i)),r.push(n.slice(i))):r.push(n)}r.length&&(t.classNames=r.filter(ip),t.block=rp(t.classNames),np(e,t.classNames.join(" ")))}function Sx(e,t,r){let n=_o(e),i=[],{options:o}=r,s=t.slice(1).concat(e);for(let l of n.classNames){let u="",c,f=l;(c=l.match(Kf))&&(u=ff(s,c[1].length,r.context)+o["bem.element"]+c[2],i.push(u),l=l.slice(c[0].length)),(c=l.match(ep))&&(u||(u=ff(s,c[1].length),i.push(u)),i.push(`${u}${o["bem.modifier"]}${c[2]}`),l=l.slice(c[0].length)),l===f&&i.push(f)}let a=i.filter(ip);a.length&&np(e,a.join(" "))}function _o(e){if(!e._bem){let t="";if(e.attributes){for(let r of e.attributes)if(r.name==="class"&&r.value){t=Tx(r.value);break}}e._bem=tp(t)}return e._bem}function Ex(e){return e._bem||(e._bem=tp(e.attributes&&e.attributes.class||"")),e._bem}function tp(e){let t=e?e.split(/\s+/):[];return{classNames:t,block:rp(t)}}function ff(e,t=0,r){let i=Math.max(e.length-t,0);do{let o=e[i];if(o){let s=_o(o);if(s.block)return s.block}}while(0<i--);if(r){let o=Ex(r);if(o.block)return o.block}return""}function rp(e){return pf(e,xx)||pf(e,wx)||void 0}function pf(e,t){for(let r of e){if(Kf.test(r)||ep.test(r))break;if(t(r))return r}}function np(e,t){for(let r of e.attributes)if(r.name==="class"){r.value=[t];break}}function Tx(e){let t="";for(let r of e)t+=typeof r=="string"?r:r.name;return t}function ip(e,t,r){return!!e&&r.indexOf(e)===t}function Cx(e){if(e.name==="label"){let t=Vf(e,r=>r.name==="input"||r.name==="textarea");t&&(e.attributes&&(e.attributes=e.attributes.filter(r=>!(r.name==="for"&&df(r)))),t.attributes&&(t.attributes=t.attributes.filter(r=>!(r.name==="id"&&df(r)))))}}function df(e){if(!e.value)return!0;if(e.value.length===1){let t=e.value[0];if(t&&typeof t!="string"&&!t.name)return!0}return!1}function op(e,t,r){let n=(o,s,a)=>{let{parent:l,current:u}=r;r.parent=u,r.current=o,t(o,s,a,r,i),r.current=u,r.parent=l},i=(o,s,a)=>{r.ancestors.push(r.current),n(o,s,a),r.ancestors.pop()};e.children.forEach(n)}function sp(e){return{current:null,parent:void 0,ancestors:[],config:e,field:1,out:Gf(e.options)}}function Qe(e){return e?!e.name&&!e.attributes:!1}function hf(e,t){return e?St(e,t):!1}function ap(e){return typeof e=="object"&&e.type==="Field"}function ye(e,t){let{out:r}=t,n=-1;for(let i of e)typeof i=="string"?G(r,i):(Lo(r,t.field+i.index,i.name),i.index>n&&(n=i.index));n!==-1&&(t.field+=n+1)}function Ox(e){let t=[],r=[];for(let n of e)if(typeof n=="string"){let i=n.split(/\r\n?|\n/g);for(r.push(i.shift()||"");i.length;)t.push(r),r=[i.shift()||""]}else r.push(n);return r.length&&t.push(r),t}function lp(e){return!e.implied||e.valueType!=="raw"||!!e.value&&e.value.length>0}function mf(e){let t=[],r={pos:0,text:e},n,i=r.pos,o=r.pos;for(;r.pos<r.text.length;)o=r.pos,(n=Px(r))?(i!==r.pos&&t.push(e.slice(i,o)),t.push(n),i=r.pos):r.pos++;return i!==r.pos&&t.push(e.slice(i)),t}function Px(e){if(yo(e)===Je.Start){let t=++e.pos,r=t,n=t,i=1;for(;e.pos<e.text.length;){let o=yo(e);if(up(o)){for(r=e.pos;Nx(yo(e));)e.pos++;n=e.pos}else{if(o===Je.Start)i++;else if(o===Je.End&&--i===0)return{before:e.text.slice(t,r),after:e.text.slice(n,e.pos++),name:e.text.slice(r,n)};e.pos++}}}}function yo(e,t=e.pos){return e.text.charCodeAt(t)}function up(e){return e>=65&&e<=90}function Nx(e){return up(e)||e>47&&e<58||e===Je.Underscore||e===Je.Dash}function $x(e){let{options:t}=e;return{enabled:t["comment.enabled"],trigger:t["comment.trigger"],before:t["comment.before"]?mf(t["comment.before"]):void 0,after:t["comment.after"]?mf(t["comment.after"]):void 0}}function Rx(e,t){cp(e,t)&&t.comment.before&&fp(e,t.comment.before,t)}function jx(e,t){cp(e,t)&&t.comment.after&&fp(e,t.comment.after,t)}function cp(e,t){let{comment:r}=t;if(!r.enabled||!r.trigger||!e.name||!e.attributes)return!1;for(let n of e.attributes)if(n.name&&r.trigger.includes(n.name))return!0;return!1}function fp(e,t,r){let n={},{out:i}=r;for(let o of e.attributes)o.name&&o.value&&(n[o.name.toUpperCase()]=o.value);for(let o of t)typeof o=="string"?G(i,o):n[o.name]&&(G(i,o.before),ye(n[o.name],r),G(i,o.after))}function pp(e,t){let r=sp(t);return r.comment=$x(t),op(e,Lx,r),r.out.value}function Lx(e,t,r,n,i){let{out:o,config:s}=n,a=dp(e,t,r,n),l=Dx(n);if(o.level+=l,a&&Ee(o,!0),e.name){let u=ex(e.name,s);if(Rx(e,n),G(o,`<${u}`),e.attributes)for(let c of e.attributes)lp(c)&&_x(c,n);if(e.selfClosing&&!e.children.length&&!e.value)G(o,`${tx(s)}>`);else{if(G(o,">"),!gf(e,n,i)){if(e.value){let c=e.value.some(hp)||qx(e.value,s);c&&Ee(n.out,++o.level),ye(e.value,n),c&&Ee(n.out,--o.level)}if(e.children.forEach(i),!e.value&&!e.children.length){let c=s.options["output.formatLeafNode"]||s.options["output.formatForce"].includes(e.name);c&&Ee(n.out,++o.level),ye(Tn,n),c&&Ee(n.out,--o.level)}}G(o,`</${u}>`),jx(e,n)}}else!gf(e,n,i)&&e.value&&(ye(e.value,n),e.children.forEach(i));if(a&&t===r.length-1&&n.parent){let u=Qe(n.parent)?0:1;Ee(o,o.level-u)}o.level-=l}function _x(e,t){let{out:r,config:n}=t;if(e.name){let i=n.options["markup.attributes"],o=n.options["markup.valuePrefix"],{name:s,value:a}=e,l=yn(e,n,!0),u=yn(e,n);i&&(s=bf(s,i,e.multiple)||s),s=Qf(s,n),n.options["jsx.enabled"]&&e.multiple&&(l=So,u=Eo);let c=o?bf(e.name,o,e.multiple):null;if(c&&a?.length===1&&typeof a[0]=="string"){let f=a[0];a=[Bx(f)?`${c}.${f}`:`${c}['${f}']`],n.options["jsx.enabled"]&&(l=So,u=Eo)}Jf(e,n)&&!a?n.options["output.compactBoolean"]||(a=[s]):a||(a=Tn),G(r," "+s),a?(G(r,"="+l),ye(a,t),G(r,u)):n.options["output.selfClosingStyle"]!=="html"&&G(r,"="+l+u)}}function gf(e,t,r){if(e.value&&e.children.length){let n=e.value.findIndex(ap);if(n!==-1){ye(e.value.slice(0,n),t);let i=t.out.line,o=n+1;return e.children.forEach(r),t.out.line!==i&&typeof e.value[o]=="string"&&G(t.out,e.value[o++].trimLeft()),ye(e.value.slice(o),t),!0}}return!1}function dp(e,t,r,n){let{config:i,parent:o}=n;if(!i.options["output.format"]||t===0&&!o||o&&Qe(o)&&r.length===1)return!1;if(Qe(e)&&(Qe(r[t-1])||Qe(r[t+1])||e.value.some(hp)||e.value.some(ap)&&e.children.length))return!0;if(St(e,i)){if(t===0){for(let s=0;s<r.length;s++)if(!St(r[s],i))return!0}else if(!St(r[t-1],i))return!0;if(i.options["output.inlineBreak"]){let s=1,a=t,l=t;for(;hf(r[--a],i);)s++;for(;hf(r[++l],i);)s++;if(s>=i.options["output.inlineBreak"])return!0}for(let s=0,a=e.children.length;s<a;s++)if(dp(e.children[s],s,e.children,n))return!0;return!1}return!0}function Dx(e){let{config:t,parent:r}=e;return!r||Qe(r)||r.name&&t.options["output.formatSkip"].includes(r.name)?0:1}function hp(e){return typeof e=="string"&&/\r|\n/.test(e)}function qx(e,t){if(e.length&&typeof e[0]=="string"){let r=Ix.exec(e[0]);if(r?.length&&!t.options.inlineElements.includes(r[1].toLowerCase()))return!0}return!1}function bf(e,t,r){return r&&t[`${e}*`]||t[e]}function Bx(e){return!Fx.has(e)&&/^[a-zA-Z_$][\w_$]*$/.test(e)}function Do(e,t,r){let n=sp(t);return n.options=r||{},op(e,zx,n),n.out.value}function zx(e,t,r,n,i){let{out:o,options:s}=n,{primary:a,secondary:l}=Ux(e),u=n.parent?1:0;o.level+=u,Qx(e,t,r,n)&&Ee(o,!0),e.name&&(e.name!=="div"||!a.length)&&G(o,(s.beforeName||"")+e.name+(s.afterName||"")),Mx(a,n),Wx(l.filter(lp),n),e.selfClosing&&!e.value&&!e.children.length?n.options.selfClose&&G(o,n.options.selfClose):(Vx(e,n),e.children.forEach(i)),o.level-=u}function Ux(e){let t=[],r=[];if(e.attributes)for(let n of e.attributes)Hx(n)?t.push(n):r.push(n);return{primary:t,secondary:r}}function Mx(e,t){for(let r of e)if(r.value)if(r.name==="class"){G(t.out,".");let n=r.value.map(i=>typeof i=="string"?i.replace(/\s+/g,"."):i);ye(n,t)}else G(t.out,"#"),ye(r.value,t)}function Wx(e,t){if(e.length){let{out:r,config:n,options:i}=t;i.beforeAttribute&&G(r,i.beforeAttribute);for(let o=0;o<e.length;o++){let s=e[o];G(r,Qf(s.name||"",n)),Jf(s,n)&&!s.value?!n.options["output.compactBoolean"]&&i.booleanValue&&G(r,"="+i.booleanValue):(G(r,"="+yn(s,n,!0)),ye(s.value||Tn,t),G(r,yn(s,n))),o!==e.length-1&&i.glueAttribute&&G(r,i.glueAttribute)}i.afterAttribute&&G(r,i.afterAttribute)}}function Vx(e,t){if(!e.value&&e.children.length)return;let r=e.value||Tn,n=Ox(r),{out:i,options:o}=t;if(n.length===1)(e.name||e.attributes)&&re(i," "),ye(r,t);else{let s=[],a=0;for(let l of n){let u=Gx(l);s.push(u),u>a&&(a=u)}i.level++;for(let l=0;l<n.length;l++)Ee(i,!0),o.beforeTextLine&&re(i,o.beforeTextLine),ye(n[l],t),o.afterTextLine&&(re(i," ".repeat(a-s[l])),re(i,o.afterTextLine));i.level--}}function Hx(e){return e.name==="class"||e.name==="id"}function Gx(e){let t=0;for(let r of e)t+=typeof r=="string"?r.length:r.name.length;return t}function Qx(e,t,r,n){return!n.parent&&t===0?!1:!Qe(e)}function Jx(e,t){return Do(e,t,{beforeName:"%",beforeAttribute:"(",afterAttribute:")",glueAttribute:" ",afterTextLine:" |",booleanValue:"true",selfClose:"/"})}function Zx(e,t){return Do(e,t,{beforeAttribute:" ",glueAttribute:" ",beforeTextLine:"| ",selfClose:"/"})}function Xx(e,t){return Do(e,t,{beforeAttribute:"(",afterAttribute:")",glueAttribute:", ",beforeTextLine:"| ",selfClose:t.options["output.selfClosingStyle"]==="xml"?"/":""})}function qo(e,t){let r;if(typeof e=="string"){let n=Object.assign({},t);t.options["jsx.enabled"]&&(n.jsx=!0),t.options["markup.href"]&&(n.href=!0),e=_f(e,n),r=t.text,t.text=void 0}return e=Xv(e,t),Jv(e,Kx,t),t.text=r??t.text,e}function Bo(e,t){return(Yx[t.syntax]||pp)(e,t)}function Kx(e,t,r){ix(e,t,r),Hv(e,r),fx(e,t,r),r.syntax==="xsl"&&bx(e),r.type==="markup"&&Cx(e),r.options["bem.enabled"]&&kx(e,t,r)}function rw(e,t){let r=t.match(ew);if(r){let n={},i=r[2]?r[2].split("|").map(ow):[];for(let o of i)for(let s of o)aw(s,n);return{type:$e.Property,key:e,property:r[1],value:i,keywords:n,dependencies:[]}}return{type:$e.Raw,key:e,value:t}}function nw(e){e=e.slice().sort(iw);let t=[],r;for(let n of e.filter(sw)){for(;t.length;){if(r=t[t.length-1],n.property.startsWith(r.property)&&n.property.charCodeAt(r.property.length)===45){r.dependencies.push(n),t.push(n);break}t.pop()}t.length||t.push(n)}return e}function iw(e,t){return e.key===t.key?0:e.key<t.key?-1:1}function ow(e){return Wf(e.trim(),tw)[0].value}function sw(e){return e.type===$e.Property}function aw(e,t){for(let r of e.value)if(r.type==="Literal")t[r.value]=r;else if(r.type==="FunctionCall")t[r.name]=r;else if(r.type==="Field"){let n=r.name.trim();n&&(t[n]={type:"Literal",value:n})}}function lw(e,t,r=!1){if(e=e.toLowerCase(),t=t.toLowerCase(),e===t)return 1;if(!e||!t||e.charCodeAt(0)!==t.charCodeAt(0))return 0;let n=e.length,i=t.length;if(!r&&n>i)return 0;let o=Math.min(n,i),s=Math.max(n,i),a=1,l=1,u=s,c=0,f=0,m=!1,d=!1;for(;a<n;){for(c=e.charCodeAt(a),m=!1,d=!1;l<i;){if(f=t.charCodeAt(l),c===f){m=!0,u+=s-(d?a:l);break}d=f===45,l++}if(!m){if(!r)return 0;break}a++}let v=a/s,b=s-o,A=yf(s)-yf(b);return u*v/A}function yf(e){return e*(e+1)/2}function mp(e,t){return!e.r&&!e.g&&!e.b&&!e.a?"transparent":e.a===1?uw(e,t):cw(e)}function uw(e,t){let r=t&&vo(e.r)&&vo(e.g)&&vo(e.b)?fw:pw;return"#"+r(e.r)+r(e.g)+r(e.b)}function cw(e){let t=[e.r,e.g,e.b];return e.a!==1&&t.push(gp(e.a,8)),`${t.length===3?"rgb":"rgba"}(${t.join(", ")})`}function gp(e,t=4){return e.toFixed(t).replace(/\.?0+$/,"")}function vo(e){return!(e%17)}function fw(e){return(e>>4).toString(16)}function pw(e){return dw(e.toString(16),2)}function dw(e,t){for(;e.length<t;)e="0"+e;return e}function zo(e,t){var r;let n=Gf(t.options),i=t.options["output.format"];((r=t.context)===null||r===void 0?void 0:r.name)===vn.Section&&(e=e.filter(o=>o.snippet));for(let o=0;o<e.length;o++)i&&o!==0&&Ee(n,!0),hw(e[o],n,t);return n.value}function hw(e,t,r){let n=r.options["stylesheet.json"];if(e.name){let i=n?bw(e.name):e.name;G(t,i+r.options["stylesheet.between"]),e.value.length?mw(e,t,r):Lo(t,0,""),n?re(t,","):(vf(e,t,!0),re(t,r.options["stylesheet.after"]))}else{for(let i of e.value)for(let o of i.value)yp(o,t,r);vf(e,t,e.value.length>0)}}function mw(e,t,r){let n=r.options["stylesheet.json"],i=n?gw(e):null;if(i&&(!i.unit||i.unit==="px"))re(t,String(i.value));else{let o=yw(r);n&&re(t,o);for(let s=0;s<e.value.length;s++)s!==0&&re(t,", "),bp(e.value[s],t,r);n&&re(t,o)}}function vf(e,t,r){e.important&&(r&&re(t," "),re(t,"!important"))}function bp(e,t,r){for(let n=0,i=-1;n<e.value.length;n++){let o=e.value[n];n!==0&&(o.type!=="Field"||o.start!==i)&&re(t," "),yp(o,t,r),i=o.end}}function yp(e,t,r){if(e.type==="ColorValue")re(t,mp(e,r.options["stylesheet.shortHex"]));else if(e.type==="Literal"||e.type==="CustomProperty")G(t,e.value);else if(e.type==="NumberValue")G(t,gp(e.value,4)+e.unit);else if(e.type==="StringValue"){let n=e.quote==="double"?'"':"'";G(t,n+e.value+n)}else if(e.type==="Field")Lo(t,e.index,e.name);else if(e.type==="FunctionCall"){re(t,e.name+"(");for(let n=0;n<e.arguments.length;n++)n&&re(t,", "),bp(e.arguments[n],t,r);re(t,")")}}function gw(e){if(e.value.length===1){let t=e.value[0];if(t.value.length===1&&t.value[0].type==="NumberValue")return t.value[0]}}function bw(e){return e.replace(/\-(\w)/g,(t,r)=>r.toUpperCase())}function yw(e){return e.options["stylesheet.jsonDoubleQuotes"]?'"':"'"}function Uo(e,t){var r;let n=((r=t.cache)===null||r===void 0?void 0:r.stylesheetSnippets)||vw(t.snippets),i=[];t.cache&&(t.cache.stylesheetSnippets=n),typeof e=="string"&&(e=Wf(e,{value:kp(t)}));let o=Cw(n,t);for(let s of e){let a=xw(s,o,t);a&&i.push(a)}return i}function vw(e){let t=[];for(let r of Object.keys(e))t.push(rw(r,e[r]));return nw(t)}function xw(e,t,r){if(!ww(e,r)){let n=r.options["stylesheet.fuzzySearchMinScore"];if(kp(r)){let i=r.context.name,o=t.find(s=>s.type===$e.Property&&s.property===i);vp(e,r,o,n),e.snippet=o}else if(e.name){let i=dn(e.name,t,n,!0);if(e.snippet=i,i){let o=i.type===$e.Property?kw(e,i,r):Aw(e,i);if(o)e=o;else if(r.options["stylesheet.strictMatch"])return null}}}return(e.name||r.context)&&Tw(e,r),e}function ww(e,t){let r=null,n=e.value.length===1?e.value[0]:null;if(n&&n.value.length===1){let i=n.value[0];i.type==="FunctionCall"&&i.name===xf&&(r=i)}return r||e.name===xf?(r?r=Object.assign(Object.assign({},r),{name:"linear-gradient"}):r={type:"FunctionCall",name:"linear-gradient",arguments:[xn(Ge(0,""))]},t.context||(e.name="background-image"),e.value=[xn(r)],!0):!1}function kw(e,t,r){let n=e.name,i=Ew(n,t.key);if(i){if(e.value.length)return null;let o=To(i,r,t);if(!o)return null;e.value.push(xn(o))}if(e.name=t.property,e.value.length)vp(e,r,t);else if(t.value.length){let o=t.value[0];e.value=t.value.length===1||o.some(xp)?o:o.map(s=>wp(s,r))}return e}function vp(e,t,r,n){for(let i of e.value){let o=[];for(let s of i.value)if(s.type==="Literal")o.push(To(s.value,t,r,n)||s);else if(s.type==="FunctionCall"){let a=To(s.name,t,r,n);a&&a.type==="FunctionCall"?o.push(Object.assign(Object.assign({},a),{arguments:s.arguments.concat(a.arguments.slice(s.arguments.length))})):o.push(s)}else o.push(s);i.value=o}}function Aw(e,t){let r=0,n,i=/\$\{(\d+)(:[^}]+)?\}/g,o=e.value[0],s=[];for(;n=i.exec(t.value);)r!==n.index&&s.push(Et(t.value.slice(r,n.index))),r=n.index+n[0].length,o&&o.value.length?s.push(o.value.shift()):s.push(Ge(Number(n[1]),n[2]?n[2].slice(1):""));let a=t.value.slice(r);return a&&s.push(Et(a)),e.name=void 0,e.value=[xn(...s)],e}function dn(e,t,r=0,n=!1){let i=null,o=0;for(let s of t){let a=lw(e,Sw(s),n);if(a===1)return s;a&&a>=o&&(o=a,i=s)}return o>=r?i:null}function Sw(e){return typeof e=="string"?e:e.key}function Ew(e,t){for(let r=0,n=0;r<e.length;r++){if(n=t.indexOf(e[r],n),n===-1)return e.slice(r);n++}return""}function To(e,t,r,n){let i;if(r){if(i=dn(e,Object.keys(r.keywords),n))return r.keywords[i];for(let o of r.dependencies)if(i=dn(e,Object.keys(o.keywords),n))return o.keywords[i]}return(i=dn(e,t.options["stylesheet.keywords"],n))?Et(i):null}function Tw(e,t){let r=t.options["stylesheet.unitAliases"],n=t.options["stylesheet.unitless"];for(let i of e.value)for(let o of i.value)o.type==="NumberValue"&&(o.unit?o.unit=r[o.unit]||o.unit:o.value!==0&&!n.includes(e.name)&&(o.unit=o.rawValue.includes(".")?t.options["stylesheet.floatUnit"]:t.options["stylesheet.intUnit"]))}function xn(...e){return{type:"CSSValue",value:e}}function Et(e){return{type:"Literal",value:e}}function Ge(e,t){return{type:"Field",index:e,name:t}}function xp(e){for(let t of e.value)if(t.type==="Field"||t.type==="FunctionCall"&&t.arguments.some(xp))return!0;return!1}function wp(e,t,r={index:1}){let n=[];for(let i of e.value)switch(i.type){case"ColorValue":n.push(Ge(r.index++,mp(i,t.options["stylesheet.shortHex"])));break;case"Literal":n.push(Ge(r.index++,i.value));break;case"NumberValue":n.push(Ge(r.index++,`${i.value}${i.unit}`));break;case"StringValue":let o=i.quote==="single"?"'":'"';n.push(Ge(r.index++,o+i.value+o));break;case"FunctionCall":n.push(Ge(r.index++,i.name),Et("("));for(let s=0,a=i.arguments.length;s<a;s++)n=n.concat(wp(i.arguments[s],t,r).value),s!==a-1&&n.push(Et(", "));n.push(Et(")"));break;default:n.push(i)}return Object.assign(Object.assign({},e),{value:n})}function kp(e){return e.context?e.context.name===vn.Value||!e.context.name.startsWith("@@"):!1}function Cw(e,t){if(t.context){if(t.context.name===vn.Section)return e.filter(r=>r.type===$e.Raw);if(t.context.name===vn.Property)return e.filter(r=>r.type===$e.Property)}return e}function pn(e){let t={};return Object.keys(e).forEach(r=>{for(let n of r.split("|"))t[n]=e[r]}),t}function lr(e={},t={}){let r=e.type||"markup",n=e.syntax||jw[r];return Object.assign(Object.assign(Object.assign({},Ap),e),{type:r,syntax:n,variables:xo(r,n,"variables",e,t),snippets:xo(r,n,"snippets",e,t),options:xo(r,n,"options",e,t)})}function xo(e,t,r,n,i={}){let o=wf[e],s=i[e],a=wf[t],l=i[t];return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ap[r]),o&&o[r]),a&&a[r]),s&&s[r]),l&&l[r]),n[r])}function Sp(e,t=0){return{text:e,start:t,pos:e.length}}function Re(e){return e.pos===e.start}function sr(e,t=0){return e.text.charCodeAt(e.pos-1+t)}function kf(e){if(!Re(e))return e.text.charCodeAt(--e.pos)}function me(e,t){if(Re(e))return!1;let r=typeof t=="function"?t(sr(e)):t===sr(e);return r&&e.pos--,!!r}function Ep(e,t){let r=e.pos;for(;me(e,t););return e.pos<r}function Mo(e){return e===ar.SingleQuote||e===ar.DoubleQuote}function Fw(e){let t=e.pos,r=kf(e);if(Mo(r)){for(;!Re(e);)if(kf(e)===r&&sr(e)!==ar.Escape)return!0}return e.pos=t,!1}function Lw(e){let t=e.pos;if(!me(e,pe.AngleRight))return!1;let r=!1;for(me(e,pe.Slash);!Re(e);){if(Ep(e,Co),wn(e)){if(me(e,pe.Slash)){r=me(e,pe.AngleLeft);break}else if(me(e,pe.AngleLeft)){r=!0;break}else{if(me(e,Co))continue;if(me(e,pe.Equals)){if(wn(e))continue;break}else if(Cp(e)){r=!0;break}}break}if(!_w(e))break}return e.pos=t,r}function _w(e){return Dw(e)||Cp(e)}function Dw(e){let t=e.pos;return Fw(e)&&me(e,pe.Equals)&&wn(e)?!0:(e.pos=t,!1)}function Cp(e){let t=e.pos,r=[];for(;!Re(e);){let n=sr(e);if(Ww(n))r.push(n);else if(Mw(n)){if(r.pop()!==Tp[n])break}else if(!Uw(n))break;e.pos--}return t!==e.pos&&me(e,pe.Equals)&&wn(e)?!0:(e.pos=t,!1)}function wn(e){return Ep(e,qw)}function qw(e){return e===pe.Colon||e===pe.Dash||Bw(e)||zw(e)}function Bw(e){return e&=-33,e>=65&&e<=90}function zw(e){return e>47&&e<58}function Co(e){return e===pe.Space||e===pe.Tab}function Uw(e){return!isNaN(e)&&e!==pe.Equals&&!Co(e)&&!Mo(e)}function Mw(e){return e===H.CurlyL||e===H.RoundL||e===H.SquareL}function Ww(e){return e===H.CurlyR||e===H.RoundR||e===H.SquareR}function Wo(e,t=e.length,r={}){let n=Object.assign(Object.assign({},Hw),r);t=Math.min(e.length,Math.max(0,t??e.length)),n.lookAhead&&(t=Gw(e,t,n));let i,o=Qw(e,t,n.prefix||"");if(o===-1)return;let s=Sp(e,o);s.pos=t;let a=[];for(;!Re(s);){if(i=sr(s),a.includes(H.CurlyR)){if(i===H.CurlyR){a.push(i),s.pos--;continue}if(i!==H.CurlyL){s.pos--;continue}}if(Pp(i,n.type))a.push(i);else if(Xw(i,n.type)){if(a.pop()!==Tp[i])break}else if(a.includes(H.SquareR)||a.includes(H.CurlyR)){s.pos--;continue}else if(Lw(s)||!Zw(i))break;s.pos--}if(!a.length&&s.pos!==t){let l=e.slice(s.pos,t).replace(/^[*+>^]+/,"");return{abbreviation:l,location:t-l.length,start:r.prefix?o-r.prefix.length:t-l.length,end:t}}}function Gw(e,t,r){for(Mo(e.charCodeAt(t))&&t++;Pp(e.charCodeAt(t),r.type);)t++;return t}function Qw(e,t,r){if(!r)return 0;let n=Sp(e),i=r.split("").map(Op);n.pos=t;let o;for(;!Re(n);)if(!(Af(n,H.SquareR,H.SquareL)||Af(n,H.CurlyR,H.CurlyL))){if(o=n.pos,Jw(n,i))return o;n.pos--}return-1}function Af(e,t,r){let n=e.pos;if(me(e,t))for(;!Re(e);){if(me(e,r))return!0;e.pos--}return e.pos=n,!1}function Jw(e,t){let r=e.pos,n=!1;for(let i=t.length-1;i>=0&&!Re(e)&&me(e,t[i]);i--)n=i===0;return n||(e.pos=r),n}function Zw(e){return e>64&&e<91||e>96&&e<123||e>47&&e<58||Vw.includes(e)}function Xw(e,t){return e===H.RoundL||t==="markup"&&(e===H.SquareL||e===H.CurlyL)}function Pp(e,t){return e===H.RoundR||t==="markup"&&(e===H.SquareR||e===H.CurlyR)}function ur(e,t){let r=lr(t);return r.type==="stylesheet"?Kw(e,r):Yw(e,r)}function Yw(e,t){return Bo(qo(e,t),t)}function Kw(e,t){return zo(Uo(e,t),t)}var hn,ir,B,uv,rf,cv,fv,be,V,So,Eo,nx,ax,lx,ux,lf,cx,Kf,ep,xx,wx,Tn,Je,Ix,Fx,Yx,$e,ew,tw,vn,xf,Ow,Pw,Nw,$w,Rw,jw,Iw,Ap,wf,ar,H,Tp,pe,Op,Vw,Hw,Np=he(()=>{"use strict";p();hn=class e{constructor(t,r,n){n==null&&typeof t=="string"&&(n=t.length),this.string=t,this.pos=this.start=r||0,this.end=n||0}eof(){return this.pos>=this.end}limit(t,r){return new e(this.string,t,r)}peek(){return this.string.charCodeAt(this.pos)}next(){if(this.pos<this.string.length)return this.string.charCodeAt(this.pos++)}eat(t){let r=this.peek(),n=typeof t=="function"?t(r):r===t;return n&&this.next(),n}eatWhile(t){let r=this.pos;for(;!this.eof()&&this.eat(t););return this.pos!==r}backUp(t){this.pos-=t||1}current(){return this.substring(this.start,this.pos)}substring(t,r){return this.string.slice(t,r)}error(t,r=this.pos){return new ir(`${t} at ${r+1}`,r,this.string)}},ir=class extends Error{constructor(t,r,n){super(t),this.pos=r,this.string=n}};(function(e){e[e.CurlyBracketOpen=123]="CurlyBracketOpen",e[e.CurlyBracketClose=125]="CurlyBracketClose",e[e.Escape=92]="Escape",e[e.Equals=61]="Equals",e[e.SquareBracketOpen=91]="SquareBracketOpen",e[e.SquareBracketClose=93]="SquareBracketClose",e[e.Asterisk=42]="Asterisk",e[e.Hash=35]="Hash",e[e.Dollar=36]="Dollar",e[e.Dash=45]="Dash",e[e.Dot=46]="Dot",e[e.Slash=47]="Slash",e[e.Colon=58]="Colon",e[e.Excl=33]="Excl",e[e.At=64]="At",e[e.Underscore=95]="Underscore",e[e.RoundBracketOpen=40]="RoundBracketOpen",e[e.RoundBracketClose=41]="RoundBracketClose",e[e.Sibling=43]="Sibling",e[e.Child=62]="Child",e[e.Climb=94]="Climb",e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote"})(B||(B={}));uv={child:">",class:".",climb:"^",id:"#",equal:"=",close:"/",sibling:"+"},rf={Literal(e){return e.value},Quote(e){return e.single?"'":'"'},Bracket(e){return e.context==="attribute"?e.open?"[":"]":e.context==="expression"?e.open?"{":"}":e.open?"(":"}"},Operator(e){return uv[e.operator]},Field(e,t){return e.index!=null?e.name?`\${${e.index}:${e.name}}`:`\${${e.index}`:e.name?t.getVariable(e.name):""},RepeaterPlaceholder(e,t){let r;for(let n=t.repeaters.length-1;n>=0;n--)if(t.repeaters[n].implicit){r=t.repeaters[n];break}return t.inserted=!0,t.getText(r&&r.value)},RepeaterNumber(e,t){let r=1,n=t.repeaters.length-1,i=t.repeaters[n];if(i&&(r=e.reverse?e.base+i.count-i.value-1:e.base+i.value,e.parent)){let s=Math.max(0,n-e.parent);if(s!==n){let a=t.repeaters[s];r+=i.count*a.value}}let o=String(r);for(;o.length<e.size;)o="0"+o;return o},WhiteSpace(e){return e.value}};cv=/^((https?:|ftp:|file:)?\/\/|(www|ftp)\.)[^ ]*$/,fv=/^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,5}$/;(function(e){e.Sibling="+",e.Important="!",e.ArgumentDelimiter=",",e.ValueDelimiter="-",e.PropertyDelimiter=":"})(be||(be={}));(function(e){e[e.Hash=35]="Hash",e[e.Dollar=36]="Dollar",e[e.Dash=45]="Dash",e[e.Dot=46]="Dot",e[e.Colon=58]="Colon",e[e.Comma=44]="Comma",e[e.Excl=33]="Excl",e[e.At=64]="At",e[e.Percent=37]="Percent",e[e.Underscore=95]="Underscore",e[e.RoundBracketOpen=40]="RoundBracketOpen",e[e.RoundBracketClose=41]="RoundBracketClose",e[e.CurlyBracketOpen=123]="CurlyBracketOpen",e[e.CurlyBracketClose=125]="CurlyBracketClose",e[e.Sibling=43]="Sibling",e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote",e[e.Transparent=116]="Transparent",e[e.Slash=47]="Slash"})(V||(V={}));So="{",Eo="}";nx={p:"span",ul:"li",ol:"li",table:"tr",tr:"td",tbody:"tr",thead:"tr",tfoot:"tr",colgroup:"col",select:"option",optgroup:"option",audio:"source",video:"source",object:"param",map:"area"};ax={common:["lorem","ipsum","dolor","sit","amet","consectetur","adipisicing","elit"],words:["exercitationem","perferendis","perspiciatis","laborum","eveniet","sunt","iure","nam","nobis","eum","cum","officiis","excepturi","odio","consectetur","quasi","aut","quisquam","vel","eligendi","itaque","non","odit","tempore","quaerat","dignissimos","facilis","neque","nihil","expedita","vitae","vero","ipsum","nisi","animi","cumque","pariatur","velit","modi","natus","iusto","eaque","sequi","illo","sed","ex","et","voluptatibus","tempora","veritatis","ratione","assumenda","incidunt","nostrum","placeat","aliquid","fuga","provident","praesentium","rem","necessitatibus","suscipit","adipisci","quidem","possimus","voluptas","debitis","sint","accusantium","unde","sapiente","voluptate","qui","aspernatur","laudantium","soluta","amet","quo","aliquam","saepe","culpa","libero","ipsa","dicta","reiciendis","nesciunt","doloribus","autem","impedit","minima","maiores","repudiandae","ipsam","obcaecati","ullam","enim","totam","delectus","ducimus","quis","voluptates","dolores","molestiae","harum","dolorem","quia","voluptatem","molestias","magni","distinctio","omnis","illum","dolorum","voluptatum","ea","quas","quam","corporis","quae","blanditiis","atque","deserunt","laboriosam","earum","consequuntur","hic","cupiditate","quibusdam","accusamus","ut","rerum","error","minus","eius","ab","ad","nemo","fugit","officia","at","in","id","quos","reprehenderit","numquam","iste","fugiat","sit","inventore","beatae","repellendus","magnam","recusandae","quod","explicabo","doloremque","aperiam","consequatur","asperiores","commodi","optio","dolor","labore","temporibus","repellat","veniam","architecto","est","esse","mollitia","nulla","a","similique","eos","alias","dolore","tenetur","deleniti","porro","facere","maxime","corrupti"]},lx={common:["\u0434\u0430\u043B\u0435\u043A\u043E-\u0434\u0430\u043B\u0435\u043A\u043E","\u0437\u0430","\u0441\u043B\u043E\u0432\u0435\u0441\u043D\u044B\u043C\u0438","\u0433\u043E\u0440\u0430\u043C\u0438","\u0432 \u0441\u0442\u0440\u0430\u043D\u0435","\u0433\u043B\u0430\u0441\u043D\u044B\u0445","\u0438 \u0441\u043E\u0433\u043B\u0430\u0441\u043D\u044B\u0445","\u0436\u0438\u0432\u0443\u0442","\u0440\u044B\u0431\u043D\u044B\u0435","\u0442\u0435\u043A\u0441\u0442\u044B"],words:["\u0432\u0434\u0430\u043B\u0438","\u043E\u0442 \u0432\u0441\u0435\u0445","\u043E\u043D\u0438","\u0431\u0443\u043A\u0432\u0435\u043D\u043D\u044B\u0445","\u0434\u043E\u043C\u0430\u0445","\u043D\u0430 \u0431\u0435\u0440\u0435\u0433\u0443","\u0441\u0435\u043C\u0430\u043D\u0442\u0438\u043A\u0430","\u0431\u043E\u043B\u044C\u0448\u043E\u0433\u043E","\u044F\u0437\u044B\u043A\u043E\u0432\u043E\u0433\u043E","\u043E\u043A\u0435\u0430\u043D\u0430","\u043C\u0430\u043B\u0435\u043D\u044C\u043A\u0438\u0439","\u0440\u0443\u0447\u0435\u0435\u043A","\u0434\u0430\u043B\u044C","\u0436\u0443\u0440\u0447\u0438\u0442","\u043F\u043E \u0432\u0441\u0435\u0439","\u043E\u0431\u0435\u0441\u043F\u0435\u0447\u0438\u0432\u0430\u0435\u0442","\u0435\u0435","\u0432\u0441\u0435\u043C\u0438","\u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u044B\u043C\u0438","\u043F\u0440\u0430\u0432\u0438\u043B\u0430\u043C\u0438","\u044D\u0442\u0430","\u043F\u0430\u0440\u0430\u0434\u0438\u0433\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0430\u044F","\u0441\u0442\u0440\u0430\u043D\u0430","\u043A\u043E\u0442\u043E\u0440\u043E\u0439","\u0436\u0430\u0440\u0435\u043D\u043D\u044B\u0435","\u043F\u0440\u0435\u0434\u043B\u043E\u0436\u0435\u043D\u0438\u044F","\u0437\u0430\u043B\u0435\u0442\u0430\u044E\u0442","\u043F\u0440\u044F\u043C\u043E","\u0440\u043E\u0442","\u0434\u0430\u0436\u0435","\u0432\u0441\u0435\u043C\u043E\u0433\u0443\u0449\u0430\u044F","\u043F\u0443\u043D\u043A\u0442\u0443\u0430\u0446\u0438\u044F","\u043D\u0435","\u0438\u043C\u0435\u0435\u0442","\u0432\u043B\u0430\u0441\u0442\u0438","\u043D\u0430\u0434","\u0440\u044B\u0431\u043D\u044B\u043C\u0438","\u0442\u0435\u043A\u0441\u0442\u0430\u043C\u0438","\u0432\u0435\u0434\u0443\u0449\u0438\u043C\u0438","\u0431\u0435\u0437\u043E\u0440\u0444\u043E\u0433\u0440\u0430\u0444\u0438\u0447\u043D\u044B\u0439","\u043E\u0431\u0440\u0430\u0437","\u0436\u0438\u0437\u043D\u0438","\u043E\u0434\u043D\u0430\u0436\u0434\u044B","\u043E\u0434\u043D\u0430","\u043C\u0430\u043B\u0435\u043D\u044C\u043A\u0430\u044F","\u0441\u0442\u0440\u043E\u0447\u043A\u0430","\u0440\u044B\u0431\u043D\u043E\u0433\u043E","\u0442\u0435\u043A\u0441\u0442\u0430","\u0438\u043C\u0435\u043D\u0438","lorem","ipsum","\u0440\u0435\u0448\u0438\u043B\u0430","\u0432\u044B\u0439\u0442\u0438","\u0431\u043E\u043B\u044C\u0448\u043E\u0439","\u043C\u0438\u0440","\u0433\u0440\u0430\u043C\u043C\u0430\u0442\u0438\u043A\u0438","\u0432\u0435\u043B\u0438\u043A\u0438\u0439","\u043E\u043A\u0441\u043C\u043E\u043A\u0441","\u043F\u0440\u0435\u0434\u0443\u043F\u0440\u0435\u0436\u0434\u0430\u043B","\u043E","\u0437\u043B\u044B\u0445","\u0437\u0430\u043F\u044F\u0442\u044B\u0445","\u0434\u0438\u043A\u0438\u0445","\u0437\u043D\u0430\u043A\u0430\u0445","\u0432\u043E\u043F\u0440\u043E\u0441\u0430","\u043A\u043E\u0432\u0430\u0440\u043D\u044B\u0445","\u0442\u043E\u0447\u043A\u0430\u0445","\u0437\u0430\u043F\u044F\u0442\u043E\u0439","\u043D\u043E","\u0442\u0435\u043A\u0441\u0442","\u0434\u0430\u043B","\u0441\u0431\u0438\u0442\u044C","\u0441\u0435\u0431\u044F","\u0442\u043E\u043B\u043A\u0443","\u043E\u043D","\u0441\u043E\u0431\u0440\u0430\u043B","\u0441\u0435\u043C\u044C","\u0441\u0432\u043E\u0438\u0445","\u0437\u0430\u0433\u043B\u0430\u0432\u043D\u044B\u0445","\u0431\u0443\u043A\u0432","\u043F\u043E\u0434\u043F\u043E\u044F\u0441\u0430\u043B","\u0438\u043D\u0438\u0446\u0438\u0430\u043B","\u0437\u0430","\u043F\u043E\u044F\u0441","\u043F\u0443\u0441\u0442\u0438\u043B\u0441\u044F","\u0434\u043E\u0440\u043E\u0433\u0443","\u0432\u0437\u043E\u0431\u0440\u0430\u0432\u0448\u0438\u0441\u044C","\u043F\u0435\u0440\u0432\u0443\u044E","\u0432\u0435\u0440\u0448\u0438\u043D\u0443","\u043A\u0443\u0440\u0441\u0438\u0432\u043D\u044B\u0445","\u0433\u043E\u0440","\u0431\u0440\u043E\u0441\u0438\u043B","\u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0438\u0439","\u0432\u0437\u0433\u043B\u044F\u0434","\u043D\u0430\u0437\u0430\u0434","\u0441\u0438\u043B\u0443\u044D\u0442","\u0441\u0432\u043E\u0435\u0433\u043E","\u0440\u043E\u0434\u043D\u043E\u0433\u043E","\u0433\u043E\u0440\u043E\u0434\u0430","\u0431\u0443\u043A\u0432\u043E\u0433\u0440\u0430\u0434","\u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A","\u0434\u0435\u0440\u0435\u0432\u043D\u0438","\u0430\u043B\u0444\u0430\u0432\u0438\u0442","\u043F\u043E\u0434\u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A","\u0441\u0432\u043E\u0435\u0433\u043E","\u043F\u0435\u0440\u0435\u0443\u043B\u043A\u0430","\u0433\u0440\u0443\u0441\u0442\u043D\u044B\u0439","\u0440\u0435\u0442\u043E\u0440\u0438\u0447\u0435\u0441\u043A\u0438\u0439","\u0432\u043E\u043F\u0440\u043E\u0441","\u0441\u043A\u0430\u0442\u0438\u043B\u0441\u044F","\u0435\u0433\u043E","\u0449\u0435\u043A\u0435","\u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u043B","\u0441\u0432\u043E\u0439","\u043F\u0443\u0442\u044C","\u0434\u043E\u0440\u043E\u0433\u0435","\u0432\u0441\u0442\u0440\u0435\u0442\u0438\u043B","\u0440\u0443\u043A\u043E\u043F\u0438\u0441\u044C","\u043E\u043D\u0430","\u043F\u0440\u0435\u0434\u0443\u043F\u0440\u0435\u0434\u0438\u043B\u0430","\u043C\u043E\u0435\u0439","\u0432\u0441\u0435","\u043F\u0435\u0440\u0435\u043F\u0438\u0441\u044B\u0432\u0430\u0435\u0442\u0441\u044F","\u043D\u0435\u0441\u043A\u043E\u043B\u044C\u043A\u043E","\u0440\u0430\u0437","\u0435\u0434\u0438\u043D\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u0435","\u0447\u0442\u043E","\u043C\u0435\u043D\u044F","\u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C","\u044D\u0442\u043E","\u043F\u0440\u0438\u0441\u0442\u0430\u0432\u043A\u0430","\u0432\u043E\u0437\u0432\u0440\u0430\u0449\u0430\u0439\u0441\u044F","\u0442\u044B","\u043B\u0443\u0447\u0448\u0435","\u0441\u0432\u043E\u044E","\u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u0443\u044E","\u0441\u0442\u0440\u0430\u043D\u0443","\u043F\u043E\u0441\u043B\u0443\u0448\u0430\u0432\u0448\u0438\u0441\u044C","\u0440\u0443\u043A\u043E\u043F\u0438\u0441\u0438","\u043D\u0430\u0448","\u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u043B","\u0441\u0432\u043E\u0439","\u043F\u0443\u0442\u044C","\u0432\u0441\u043A\u043E\u0440\u0435","\u0435\u043C\u0443","\u043F\u043E\u0432\u0441\u0442\u0440\u0435\u0447\u0430\u043B\u0441\u044F","\u043A\u043E\u0432\u0430\u0440\u043D\u044B\u0439","\u0441\u043E\u0441\u0442\u0430\u0432\u0438\u0442\u0435\u043B\u044C","\u0440\u0435\u043A\u043B\u0430\u043C\u043D\u044B\u0445","\u0442\u0435\u043A\u0441\u0442\u043E\u0432","\u043D\u0430\u043F\u043E\u0438\u0432\u0448\u0438\u0439","\u044F\u0437\u044B\u043A\u043E\u043C","\u0440\u0435\u0447\u044C\u044E","\u0437\u0430\u043C\u0430\u043D\u0438\u0432\u0448\u0438\u0439","\u0441\u0432\u043E\u0435","\u0430\u0433\u0435\u043D\u0442\u0441\u0442\u0432\u043E","\u043A\u043E\u0442\u043E\u0440\u043E\u0435","\u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043B\u043E","\u0441\u043D\u043E\u0432\u0430","\u0441\u043D\u043E\u0432\u0430","\u0441\u0432\u043E\u0438\u0445","\u043F\u0440\u043E\u0435\u043A\u0442\u0430\u0445","\u0435\u0441\u043B\u0438","\u043F\u0435\u0440\u0435\u043F\u0438\u0441\u0430\u043B\u0438","\u0442\u043E","\u0436\u0438\u0432\u0435\u0442","\u0442\u0430\u043C","\u0434\u043E","\u0441\u0438\u0445","\u043F\u043E\u0440"]},ux={common:["mujer","uno","dolor","m\xE1s","de","poder","mismo","si"],words:["ejercicio","preferencia","perspicacia","laboral","pa\xF1o","suntuoso","molde","namibia","planeador","mirar","dem\xE1s","oficinista","excepci\xF3n","odio","consecuencia","casi","auto","chicharra","velo","elixir","ataque","no","odio","temporal","cu\xF3rum","dign\xEDsimo","facilismo","letra","nihilista","expedici\xF3n","alma","alveolar","aparte","le\xF3n","animal","como","paria","belleza","modo","natividad","justo","ataque","s\xE9quito","pillo","sed","ex","y","voluminoso","temporalidad","verdades","racional","asunci\xF3n","incidente","marejada","placenta","amanecer","fuga","previsor","presentaci\xF3n","lejos","necesariamente","sospechoso","adiposidad","quind\xEDo","p\xF3cima","voluble","d\xE9bito","sinti\xF3","accesorio","falda","sapiencia","volutas","queso","permacultura","laudo","soluciones","entero","pan","litro","tonelada","culpa","libertario","mosca","dictado","reincidente","nascimiento","dolor","escolar","impedimento","m\xEDnima","mayores","repugnante","dulce","obcecado","monta\xF1a","enigma","total","delet\xE9reo","d\xE9cima","c\xE1bala","fotograf\xEDa","dolores","molesto","olvido","paciencia","resiliencia","voluntad","molestias","magn\xEDfico","distinci\xF3n","ovni","marejada","cerro","torre","y","abogada","manantial","corporal","agua","crep\xFAsculo","ataque","desierto","laboriosamente","angustia","afortunado","alma","encefalograma","materialidad","cosas","o","renuncia","error","menos","conejo","abad\xEDa","analfabeto","remo","fugacidad","oficio","en","alm\xE1cigo","vos","pan","represi\xF3n","n\xFAmeros","triste","refugiado","trote","inventor","corchea","repelente","magma","recusado","patr\xF3n","expl\xEDcito","paloma","s\xEDndrome","inmune","autoinmune","comodidad","ley","vietnamita","demonio","tasmania","repeler","ap\xE9ndice","arquitecto","columna","yugo","computador","mula","a","prop\xF3sito","fantas\xEDa","alias","rayo","tenedor","deleznable","ventana","cara","anemia","corrupto"]},lf={ru:lx,sp:ux,latin:ax},cx=/^lorem([a-z]*)(\d*)(-\d*)?$/i;Kf=/^(-+)([a-z0-9]+[a-z0-9-]*)/i,ep=/^(_+)([a-z0-9]+[a-z0-9-_]*)/i,xx=e=>/^[a-z]\-/i.test(e),wx=e=>/^[a-z]/i.test(e);Tn=[{type:"Field",index:0,name:""}];(function(e){e[e.Start=91]="Start",e[e.End=93]="End",e[e.Underscore=95]="Underscore",e[e.Dash=45]="Dash"})(Je||(Je={}));Ix=/^<([\w\-:]+)[\s>]/,Fx=new Set(["for","while","of","async","await","const","let","var","continue","break","debugger","do","export","import","in","instanceof","new","return","switch","this","throw","try","catch","typeof","void","with","yield"]);Yx={html:pp,haml:Jx,slim:Zx,pug:Xx};(function(e){e.Raw="Raw",e.Property="Property"})($e||($e={}));ew=/^([a-z-]+)(?:\s*:\s*([^\n\r;]+?);*)?$/,tw={value:!0};vn={Global:"@@global",Section:"@@section",Property:"@@property",Value:"@@value"};xf="lg";Ow={a:"a[href]","a:blank":"a[href='http://${0}' target='_blank' rel='noopener noreferrer']","a:link":"a[href='http://${0}']","a:mail":"a[href='mailto:${0}']","a:tel":"a[href='tel:+${0}']",abbr:"abbr[title]","acr|acronym":"acronym[title]",base:"base[href]/",basefont:"basefont/",br:"br/",frame:"frame/",hr:"hr/",bdo:"bdo[dir]","bdo:r":"bdo[dir=rtl]","bdo:l":"bdo[dir=ltr]",col:"col/",link:"link[rel=stylesheet href]/","link:css":"link[href='${1:style}.css']","link:print":"link[href='${1:print}.css' media=print]","link:favicon":"link[rel='shortcut icon' type=image/x-icon href='${1:favicon.ico}']","link:mf|link:manifest":"link[rel='manifest' href='${1:manifest.json}']","link:touch":"link[rel=apple-touch-icon href='${1:favicon.png}']","link:rss":"link[rel=alternate type=application/rss+xml title=RSS href='${1:rss.xml}']","link:atom":"link[rel=alternate type=application/atom+xml title=Atom href='${1:atom.xml}']","link:im|link:import":"link[rel=import href='${1:component}.html']",meta:"meta/","meta:utf":"meta[http-equiv=Content-Type content='text/html;charset=UTF-8']","meta:vp":"meta[name=viewport content='width=${1:device-width}, initial-scale=${2:1.0}']","meta:compat":"meta[http-equiv=X-UA-Compatible content='${1:IE=7}']","meta:edge":"meta:compat[content='${1:ie=edge}']","meta:redirect":"meta[http-equiv=refresh content='0; url=${1:http://example.com}']","meta:refresh":"meta[http-equiv=refresh content='${1:5}']","meta:kw":"meta[name=keywords content]","meta:desc":"meta[name=description content]",style:"style",script:"script","script:src":"script[src]","script:module":"script[type=module src]",img:"img[src alt]/","img:s|img:srcset":"img[srcset src alt]","img:z|img:sizes":"img[sizes srcset src alt]",picture:"picture","src|source":"source/","src:sc|source:src":"source[src type]","src:s|source:srcset":"source[srcset]","src:t|source:type":"source[srcset type='${1:image/}']","src:z|source:sizes":"source[sizes srcset]","src:m|source:media":"source[media='(${1:min-width: })' srcset]","src:mt|source:media:type":"source:media[type='${2:image/}']","src:mz|source:media:sizes":"source:media[sizes srcset]","src:zt|source:sizes:type":"source[sizes srcset type='${1:image/}']",iframe:"iframe[src frameborder=0]",embed:"embed[src type]/",object:"object[data type]",param:"param[name value]/",map:"map[name]",area:"area[shape coords href alt]/","area:d":"area[shape=default]","area:c":"area[shape=circle]","area:r":"area[shape=rect]","area:p":"area[shape=poly]",form:"form[action]","form:get":"form[method=get]","form:post":"form[method=post]",label:"label[for]",input:"input[type=${1:text}]/",inp:"input[name=${1} id=${1}]","input:h|input:hidden":"input[type=hidden name]","input:t|input:text":"inp[type=text]","input:search":"inp[type=search]","input:email":"inp[type=email]","input:url":"inp[type=url]","input:p|input:password":"inp[type=password]","input:datetime":"inp[type=datetime]","input:date":"inp[type=date]","input:datetime-local":"inp[type=datetime-local]","input:month":"inp[type=month]","input:week":"inp[type=week]","input:time":"inp[type=time]","input:tel":"inp[type=tel]","input:number":"inp[type=number]","input:color":"inp[type=color]","input:c|input:checkbox":"inp[type=checkbox]","input:r|input:radio":"inp[type=radio]","input:range":"inp[type=range]","input:f|input:file":"inp[type=file]","input:s|input:submit":"input[type=submit value]","input:i|input:image":"input[type=image src alt]","input:b|input:btn|input:button":"input[type=button value]","input:reset":"input:button[type=reset]",isindex:"isindex/",select:"select[name=${1} id=${1}]","select:d|select:disabled":"select[disabled.]","opt|option":"option[value]",textarea:"textarea[name=${1} id=${1}]","tarea:c|textarea:cols":"textarea[name=${1} id=${1} cols=${2:30}]","tarea:r|textarea:rows":"textarea[name=${1} id=${1} rows=${3:10}]","tarea:cr|textarea:cols:rows":"textarea[name=${1} id=${1} cols=${2:30} rows=${3:10}]",marquee:"marquee[behavior direction]","menu:c|menu:context":"menu[type=context]","menu:t|menu:toolbar":"menu[type=toolbar]",video:"video[src]",audio:"audio[src]","html:xml":"html[xmlns=http://www.w3.org/1999/xhtml]",keygen:"keygen/",command:"command/","btn:s|button:s|button:submit":"button[type=submit]","btn:r|button:r|button:reset":"button[type=reset]","btn:b|button:b|button:button":"button[type=button]","btn:d|button:d|button:disabled":"button[disabled.]","fst:d|fset:d|fieldset:d|fieldset:disabled":"fieldset[disabled.]",bq:"blockquote",fig:"figure",figc:"figcaption",pic:"picture",ifr:"iframe",emb:"embed",obj:"object",cap:"caption",colg:"colgroup",fst:"fieldset",btn:"button",optg:"optgroup",tarea:"textarea",leg:"legend",sect:"section",art:"article",hdr:"header",ftr:"footer",adr:"address",dlg:"dialog",str:"strong",prog:"progress",mn:"main",tem:"template",fset:"fieldset",datal:"datalist",kg:"keygen",out:"output",det:"details",sum:"summary",cmd:"command",data:"data[value]",meter:"meter[value]",time:"time[datetime]","ri:d|ri:dpr":"img:s","ri:v|ri:viewport":"img:z","ri:a|ri:art":"pic>src:m+img","ri:t|ri:type":"pic>src:t+img","!!!":"{<!DOCTYPE html>}",doc:"html[lang=${lang}]>(head>meta[charset=${charset}]+meta:vp+title{${1:Document}})+body","!|html:5":"!!!+doc",c:"{<!-- ${0} -->}","cc:ie":"{<!--[if IE]>${0}<![endif]-->}","cc:noie":"{<!--[if !IE]><!-->${0}<!--<![endif]-->}"},Pw={"@f":`@font-face {
21
+ font-family: \${1};
22
+ src: url(\${2});
23
+ }`,"@ff":"@font-face {\n font-family: '${1:FontName}';\n src: url('${2:FileName}.eot');\n src: url('${2:FileName}.eot?#iefix') format('embedded-opentype'),\n url('${2:FileName}.woff') format('woff'),\n url('${2:FileName}.ttf') format('truetype'),\n url('${2:FileName}.svg#${1:FontName}') format('svg');\n font-style: ${3:normal};\n font-weight: ${4:normal};\n}","@i|@import":"@import url(${0});","@kf":"@keyframes ${1:identifier} {\n ${2}\n}","@m|@media":"@media ${1:screen} {\n ${0}\n}",ac:"align-content:start|end|flex-start|flex-end|center|space-between|space-around|stretch|space-evenly",ai:"align-items:start|end|flex-start|flex-end|center|baseline|stretch",anim:"animation:${1:name} ${2:duration} ${3:timing-function} ${4:delay} ${5:iteration-count} ${6:direction} ${7:fill-mode}",animdel:"animation-delay:time",animdir:"animation-direction:normal|reverse|alternate|alternate-reverse",animdur:"animation-duration:${1:0}s",animfm:"animation-fill-mode:both|forwards|backwards",animic:"animation-iteration-count:1|infinite",animn:"animation-name",animps:"animation-play-state:running|paused",animtf:"animation-timing-function:linear|ease|ease-in|ease-out|ease-in-out|cubic-bezier(${1:0.1}, ${2:0.7}, ${3:1.0}, ${3:0.1})",ap:"appearance:none",as:"align-self:start|end|auto|flex-start|flex-end|center|baseline|stretch",b:"bottom",bd:"border:${1:1px} ${2:solid} ${3:#000}",bdb:"border-bottom:${1:1px} ${2:solid} ${3:#000}",bdbc:"border-bottom-color:${1:#000}",bdbi:"border-bottom-image:url(${0})",bdbk:"border-break:close",bdbli:"border-bottom-left-image:url(${0})|continue",bdblrs:"border-bottom-left-radius",bdbri:"border-bottom-right-image:url(${0})|continue",bdbrrs:"border-bottom-right-radius",bdbs:"border-bottom-style",bdbw:"border-bottom-width",bdc:"border-color:${1:#000}",bdci:"border-corner-image:url(${0})|continue",bdcl:"border-collapse:collapse|separate",bdf:"border-fit:repeat|clip|scale|stretch|overwrite|overflow|space",bdi:"border-image:url(${0})",bdl:"border-left:${1:1px} ${2:solid} ${3:#000}",bdlc:"border-left-color:${1:#000}",bdlen:"border-length",bdli:"border-left-image:url(${0})",bdls:"border-left-style",bdlw:"border-left-width",bdr:"border-right:${1:1px} ${2:solid} ${3:#000}",bdrc:"border-right-color:${1:#000}",bdri:"border-right-image:url(${0})",bdrs:"border-radius",bdrst:"border-right-style",bdrw:"border-right-width",bds:"border-style:none|hidden|dotted|dashed|solid|double|dot-dash|dot-dot-dash|wave|groove|ridge|inset|outset",bdsp:"border-spacing",bdt:"border-top:${1:1px} ${2:solid} ${3:#000}",bdtc:"border-top-color:${1:#000}",bdti:"border-top-image:url(${0})",bdtli:"border-top-left-image:url(${0})|continue",bdtlrs:"border-top-left-radius",bdtri:"border-top-right-image:url(${0})|continue",bdtrrs:"border-top-right-radius",bdts:"border-top-style",bdtw:"border-top-width",bdw:"border-width",bbs:"border-block-start",bbe:"border-block-end",bis:"border-inline-start",bie:"border-inline-end",bfv:"backface-visibility:hidden|visible",bg:"background:${1:#000}","bg:n":"background: none",bga:"background-attachment:fixed|scroll",bgbk:"background-break:bounding-box|each-box|continuous",bgc:"background-color:${1:#fff}",bgcp:"background-clip:padding-box|border-box|content-box|no-clip",bgi:"background-image:url(${0})",bgo:"background-origin:padding-box|border-box|content-box",bgp:"background-position:${1:0} ${2:0}",bgpx:"background-position-x",bgpy:"background-position-y",bgr:"background-repeat:no-repeat|repeat-x|repeat-y|space|round",bgsz:"background-size:contain|cover",bs:"block-size",bxsh:"box-shadow:${1:inset }${2:hoff} ${3:voff} ${4:blur} ${5:#000}|none",bxsz:"box-sizing:border-box|content-box|border-box",c:"color:${1:#000}",cg:"column-gap",cr:"color:rgb(${1:0}, ${2:0}, ${3:0})",cra:"color:rgba(${1:0}, ${2:0}, ${3:0}, ${4:.5})",cl:"clear:both|left|right|none",cm:"/* ${0} */",cnt:"content:'${0}'|normal|open-quote|no-open-quote|close-quote|no-close-quote|attr(${0})|counter(${0})|counters(${0})",coi:"counter-increment",colm:"columns",colmc:"column-count",colmf:"column-fill",colmg:"column-gap",colmr:"column-rule",colmrc:"column-rule-color",colmrs:"column-rule-style",colmrw:"column-rule-width",colms:"column-span",colmw:"column-width",cor:"counter-reset",cp:"clip:auto|rect(${1:top} ${2:right} ${3:bottom} ${4:left})",cps:"caption-side:top|bottom",cur:"cursor:pointer|auto|default|crosshair|hand|help|move|pointer|text",d:"display:block|none|flex|inline-flex|inline|inline-block|grid|inline-grid|subgrid|list-item|run-in|contents|table|inline-table|table-caption|table-column|table-column-group|table-header-group|table-footer-group|table-row|table-row-group|table-cell|ruby|ruby-base|ruby-base-group|ruby-text|ruby-text-group",ec:"empty-cells:show|hide",f:"font:${1:1em} ${2:sans-serif}",fd:"font-display:auto|block|swap|fallback|optional",fef:"font-effect:none|engrave|emboss|outline",fem:"font-emphasize",femp:"font-emphasize-position:before|after",fems:"font-emphasize-style:none|accent|dot|circle|disc",ff:"font-family:serif|sans-serif|cursive|fantasy|monospace",fft:'font-family:"Times New Roman", Times, Baskerville, Georgia, serif',ffa:'font-family:Arial, "Helvetica Neue", Helvetica, sans-serif',ffv:"font-family:Verdana, Geneva, sans-serif",fl:"float:left|right|none",fs:"font-style:italic|normal|oblique",fsm:"font-smoothing:antialiased|subpixel-antialiased|none",fst:"font-stretch:normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded",fv:"font-variant:normal|small-caps",fvs:"font-variation-settings:normal|inherit|initial|unset",fw:"font-weight:normal|bold|bolder|lighter",fx:"flex",fxb:"flex-basis:fill|max-content|min-content|fit-content|content",fxd:"flex-direction:row|row-reverse|column|column-reverse",fxf:"flex-flow",fxg:"flex-grow",fxsh:"flex-shrink",fxw:"flex-wrap:nowrap|wrap|wrap-reverse",fsz:"font-size",fsza:"font-size-adjust",g:"gap",gtc:"grid-template-columns:repeat(${0})|minmax()",gtr:"grid-template-rows:repeat(${0})|minmax()",gta:"grid-template-areas",gt:"grid-template",gg:"grid-gap",gcg:"grid-column-gap",grg:"grid-row-gap",gac:"grid-auto-columns:auto|minmax()",gar:"grid-auto-rows:auto|minmax()",gaf:"grid-auto-flow:row|column|dense|inherit|initial|unset",gd:"grid",gc:"grid-column",gcs:"grid-column-start",gce:"grid-column-end",gr:"grid-row",grs:"grid-row-start",gre:"grid-row-end",ga:"grid-area",h:"height",is:"inline-size",jc:"justify-content:start|end|stretch|flex-start|flex-end|center|space-between|space-around|space-evenly",ji:"justify-items:start|end|center|stretch",js:"justify-self:start|end|center|stretch",l:"left",lg:"background-image:linear-gradient(${1})",lh:"line-height",lis:"list-style",lisi:"list-style-image",lisp:"list-style-position:inside|outside",list:"list-style-type:disc|circle|square|decimal|decimal-leading-zero|lower-roman|upper-roman",lts:"letter-spacing:normal",m:"margin",mah:"max-height",mar:"max-resolution",maw:"max-width",mb:"margin-bottom",mih:"min-height",mir:"min-resolution",miw:"min-width",ml:"margin-left",mr:"margin-right",mt:"margin-top",mbs:"margin-block-start",mbe:"margin-block-end",mis:"margin-inline-start",mie:"margin-inline-end",ol:"outline",olc:"outline-color:${1:#000}|invert",olo:"outline-offset",ols:"outline-style:none|dotted|dashed|solid|double|groove|ridge|inset|outset",olw:"outline-width:thin|medium|thick","op|opa":"opacity",ord:"order",ori:"orientation:landscape|portrait",orp:"orphans",ov:"overflow:hidden|visible|hidden|scroll|auto",ovs:"overflow-style:scrollbar|auto|scrollbar|panner|move|marquee",ovx:"overflow-x:hidden|visible|hidden|scroll|auto",ovy:"overflow-y:hidden|visible|hidden|scroll|auto",p:"padding",pb:"padding-bottom",pgba:"page-break-after:auto|always|left|right",pgbb:"page-break-before:auto|always|left|right",pgbi:"page-break-inside:auto|avoid",pl:"padding-left",pos:"position:relative|absolute|relative|fixed|static",pr:"padding-right",pt:"padding-top",pbs:"padding-block-start",pbe:"padding-block-end",pis:"padding-inline-start",pie:"padding-inline-end",spbs:"scroll-padding-block-start",spbe:"scroll-padding-block-end",spis:"scroll-padding-inline-start",spie:"scroll-padding-inline-end",q:"quotes",qen:"quotes:'\\201C' '\\201D' '\\2018' '\\2019'",qru:"quotes:'\\00AB' '\\00BB' '\\201E' '\\201C'",r:"right",rg:"row-gap",rsz:"resize:none|both|horizontal|vertical",t:"top",ta:"text-align:left|center|right|justify",tal:"text-align-last:left|center|right",tbl:"table-layout:fixed",td:"text-decoration:none|underline|overline|line-through",te:"text-emphasis:none|accent|dot|circle|disc|before|after",th:"text-height:auto|font-size|text-size|max-size",ti:"text-indent",tj:"text-justify:auto|inter-word|inter-ideograph|inter-cluster|distribute|kashida|tibetan",to:"text-outline:${1:0} ${2:0} ${3:#000}",tov:"text-overflow:ellipsis|clip",tr:"text-replace",trf:"transform:${1}|skewX(${1:angle})|skewY(${1:angle})|scale(${1:x}, ${2:y})|scaleX(${1:x})|scaleY(${1:y})|scaleZ(${1:z})|scale3d(${1:x}, ${2:y}, ${3:z})|rotate(${1:angle})|rotateX(${1:angle})|rotateY(${1:angle})|rotateZ(${1:angle})|translate(${1:x}, ${2:y})|translateX(${1:x})|translateY(${1:y})|translateZ(${1:z})|translate3d(${1:tx}, ${2:ty}, ${3:tz})",trfo:"transform-origin",trfs:"transform-style:preserve-3d",trs:"transition:${1:prop} ${2:time}",trsde:"transition-delay:${1:time}",trsdu:"transition-duration:${1:time}",trsp:"transition-property:${1:prop}",trstf:"transition-timing-function:${1:fn}",tsh:"text-shadow:${1:hoff} ${2:voff} ${3:blur} ${4:#000}",tt:"text-transform:uppercase|lowercase|capitalize|none",tw:"text-wrap:none|normal|unrestricted|suppress",us:"user-select:none",v:"visibility:hidden|visible|collapse",va:"vertical-align:top|super|text-top|middle|baseline|bottom|text-bottom|sub","w|wid":"width",whs:"white-space:nowrap|pre|pre-wrap|pre-line|normal",whsc:"white-space-collapse:normal|keep-all|loose|break-strict|break-all",wido:"widows",wm:"writing-mode:lr-tb|lr-tb|lr-bt|rl-tb|rl-bt|tb-rl|tb-lr|bt-lr|bt-rl",wob:"word-break:normal|keep-all|break-all",wos:"word-spacing",wow:"word-wrap:none|unrestricted|suppress|break-word|normal",z:"z-index",zom:"zoom:1"},Nw={"tm|tmatch":"xsl:template[match mode]","tn|tname":"xsl:template[name]",call:"xsl:call-template[name]",ap:"xsl:apply-templates[select mode]",api:"xsl:apply-imports",imp:"xsl:import[href]",inc:"xsl:include[href]",ch:"xsl:choose","wh|xsl:when":"xsl:when[test]",ot:"xsl:otherwise",if:"xsl:if[test]",par:"xsl:param[name]",pare:"xsl:param[name select]",var:"xsl:variable[name]",vare:"xsl:variable[name select]",wp:"xsl:with-param[name select]",key:"xsl:key[name match use]",elem:"xsl:element[name]",attr:"xsl:attribute[name]",attrs:"xsl:attribute-set[name]",cp:"xsl:copy[select]",co:"xsl:copy-of[select]",val:"xsl:value-of[select]","for|each":"xsl:for-each[select]",tex:"xsl:text",com:"xsl:comment",msg:"xsl:message[terminate=no]",fall:"xsl:fallback",num:"xsl:number[value]",nam:"namespace-alias[stylesheet-prefix result-prefix]",pres:"xsl:preserve-space[elements]",strip:"xsl:strip-space[elements]",proc:"xsl:processing-instruction[name]",sort:"xsl:sort[select order]",choose:"xsl:choose>xsl:when+xsl:otherwise",xsl:`!!!+xsl:stylesheet[version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform]>{
24
+ |}`,"!!!":'{<?xml version="1.0" encoding="UTF-8"?>}'},$w={"!!!":"{doctype html}"},Rw={lang:"en",locale:"en-US",charset:"UTF-8",indentation:" ",newline:`
25
+ `},jw={markup:"html",stylesheet:"css"},Iw={inlineElements:["a","abbr","acronym","applet","b","basefont","bdo","big","br","button","cite","code","del","dfn","em","font","i","iframe","img","input","ins","kbd","label","map","object","q","s","samp","select","small","span","strike","strong","sub","sup","textarea","tt","u","var"],"output.indent":" ","output.baseIndent":"","output.newline":`
26
+ `,"output.tagCase":"","output.attributeCase":"","output.attributeQuotes":"double","output.format":!0,"output.formatLeafNode":!1,"output.formatSkip":["html"],"output.formatForce":["body"],"output.inlineBreak":3,"output.compactBoolean":!1,"output.booleanAttributes":["contenteditable","seamless","async","autofocus","autoplay","checked","controls","defer","disabled","formnovalidate","hidden","ismap","loop","multiple","muted","novalidate","readonly","required","reversed","selected","typemustmatch"],"output.reverseAttributes":!1,"output.selfClosingStyle":"html","output.field":(e,t)=>t,"output.text":e=>e,"markup.href":!0,"comment.enabled":!1,"comment.trigger":["id","class"],"comment.before":"","comment.after":`
27
+ <!-- /[#ID][.CLASS] -->`,"bem.enabled":!1,"bem.element":"__","bem.modifier":"_","jsx.enabled":!1,"stylesheet.keywords":["auto","inherit","unset","none"],"stylesheet.unitless":["z-index","line-height","opacity","font-weight","zoom","flex","flex-grow","flex-shrink"],"stylesheet.shortHex":!0,"stylesheet.between":": ","stylesheet.after":";","stylesheet.intUnit":"px","stylesheet.floatUnit":"em","stylesheet.unitAliases":{e:"em",p:"%",x:"ex",r:"rem"},"stylesheet.json":!1,"stylesheet.jsonDoubleQuotes":!1,"stylesheet.fuzzySearchMinScore":0,"stylesheet.strictMatch":!1},Ap={type:"markup",syntax:"html",variables:Rw,snippets:{},options:Iw},wf={markup:{snippets:pn(Ow)},xhtml:{options:{"output.selfClosingStyle":"xhtml"}},xml:{options:{"output.selfClosingStyle":"xml"}},xsl:{snippets:pn(Nw),options:{"output.selfClosingStyle":"xml"}},jsx:{options:{"jsx.enabled":!0,"markup.attributes":{class:"className","class*":"styleName",for:"htmlFor"},"markup.valuePrefix":{"class*":"styles"}}},vue:{options:{"markup.attributes":{"class*":":class"}}},svelte:{options:{"jsx.enabled":!0}},pug:{snippets:pn($w)},stylesheet:{snippets:pn(Pw)},sass:{options:{"stylesheet.after":""}},stylus:{options:{"stylesheet.between":" ","stylesheet.after":""}}};(function(e){e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote",e[e.Escape=92]="Escape"})(ar||(ar={}));(function(e){e[e.SquareL=91]="SquareL",e[e.SquareR=93]="SquareR",e[e.RoundL=40]="RoundL",e[e.RoundR=41]="RoundR",e[e.CurlyL=123]="CurlyL",e[e.CurlyR=125]="CurlyR"})(H||(H={}));Tp={[H.SquareL]:H.SquareR,[H.RoundL]:H.RoundR,[H.CurlyL]:H.CurlyR};(function(e){e[e.Tab=9]="Tab",e[e.Space=32]="Space",e[e.Dash=45]="Dash",e[e.Slash=47]="Slash",e[e.Colon=58]="Colon",e[e.Equals=61]="Equals",e[e.AngleLeft=60]="AngleLeft",e[e.AngleRight=62]="AngleRight"})(pe||(pe={}));Op=e=>e.charCodeAt(0),Vw="#.*:$-_!@%^+>/".split("").map(Op),Hw={type:"markup",lookAhead:!0,prefix:""}});function $p(e){let t={};return Object.keys(e).forEach(r=>{for(let n of r.split("|"))t[n]=e[r]}),t}var cr,Rp=he(()=>{"use strict";p();cr={markup:["html","xml","xsl","jsx","js","pug","slim","haml","vue"],stylesheet:["css","sass","scss","less","sss","stylus"]}});var Mp={};vs(Mp,{FileType:()=>rr,doComplete:()=>o0,emmetSnippetField:()=>Zo,expandAbbreviation:()=>p0,extractAbbreviation:()=>qp,extractAbbreviationFromText:()=>l0,getDefaultSnippets:()=>_p,getDefaultSyntax:()=>Yo,getEmmetMode:()=>Up,getExpandOptions:()=>zp,getSyntaxType:()=>Xo,isAbbreviationValid:()=>Bp,isStyleSheet:()=>Ae,parseAbbreviation:()=>f0,updateExtensionsPath:()=>g0});function o0(e,t,r,n){var i,o;if(n.showExpandedAbbreviation==="never"||!Up(r,n.excludeLanguages))return;let s=Ae(r);if(!s){if(!Nn.has(r)){let y=Object.assign(Object.assign({},_p(r)),Ze[r]);Nn.set(r,Object.keys(y))}Qo=(i=Nn.get(r))!==null&&i!==void 0?i:[]}let l=qp(e,t,{lookAhead:!s,type:s?"stylesheet":"markup"});if(!l)return;let{abbreviationRange:u,abbreviation:c,filter:f}=l,m=Lp(e,t).substr(0,t.character);if(s0(m)===c&&m.endsWith(`<${c}`)&&cr.markup.includes(r))return;let v=zp(r,n,f),b="",A,x=[],T=(y,E)=>{if(Bp(y,c)){try{b=ur(E,v),s&&"!important".startsWith(E)&&(b="!important")}catch{}!b||u0(y,E,b,v.options)||(A=er.create(E),A.textEdit=Se.replace(u,$n(Rn(b))),A.documentation=Jo(b),A.insertTextFormat=Kt.Snippet,A.detail=Ot.t("Emmet Abbreviation"),A.label=c,A.label+=f?"|"+f.replace(",","|"):"",x=[A])}};if(Ae(r)){if(T(r,c),c.length>4&&Gc.properties.find(y=>y.startsWith(c)))return tr.create([],!0);if(A&&b.length){A.textEdit=Se.replace(u,$n(Rn(b))),A.documentation=Jo(b),A.label=a0(b),A.filterText=c;let y=Ct.has(r)?Ct.get(r):Ct.get("css");if(x=Ho(y??[],c,c,u,v,"Emmet Custom Snippet",!1),!x.find(E=>{var S,k,P;return((S=E.textEdit)===null||S===void 0?void 0:S.newText)&&((k=E.textEdit)===null||k===void 0?void 0:k.newText)===((P=A?.textEdit)===null||P===void 0?void 0:P.newText)})){let E=new RegExp(".*"+c.split("").map(S=>S==="$"||S==="+"?"\\"+S:S).join(".*")+".*","i");(/\d/.test(c)||E.test(A.label))&&x.push(A)}}}else{T(r,c);let y=c,E=c.match(/(>|\+)([\w:-]+)$/);if(E&&E.length===3&&(y=E[2]),r!=="xml"){let S=Ho(fr,y,c,u,v,"Emmet Abbreviation");x=x.concat(S)}if(n.showAbbreviationSuggestions===!0){let S=Ho(Qo.filter(k=>!fr.includes(k)),y,c,u,v,"Emmet Abbreviation");A&&S.length>0&&y!==c&&(A.sortText="0"+A.label,S.forEach(k=>{k.filterText=c,k.sortText="9"+c})),x=x.concat(S)}r==="html"&&x.length>=2&&c.includes(":")&&((o=A?.textEdit)===null||o===void 0?void 0:o.newText)===`<${c}>\${0}</${c}>`&&(x=x.filter(S=>S.label!==c))}return n.showSuggestionsAsSnippets===!0&&x.forEach(y=>y.kind=un.Snippet),x.length?tr.create(x,!0):void 0}function Ho(e,t,r,n,i,o,s=!0){if(!t||!e)return[];let a=[];return e.forEach(l=>{if(!l.startsWith(t.toLowerCase())||s&&l===t.toLowerCase())return;let u=r+l.substr(t.length),c;try{c=ur(u,i)}catch{}if(!c)return;let f=er.create(t+l.substr(t.length));f.documentation=Jo(c),f.detail=o,f.textEdit=Se.replace(n,$n(Rn(c))),f.insertTextFormat=Kt.Snippet,a.push(f)}),a}function s0(e){if(e){let t=e.match(/[\w,:,-,\.]*$/);if(t)return t[0]}}function Jo(e){return e.replace(/([^\\])\$\{\d+\}/g,"$1|").replace(/\$\{\d+:([^\}]+)\}/g,"$1")}function a0(e){return e.replace(/([^\\])\$\{\d+\}/g,"$1").replace(/\$\{\d+:([^\}]+)\}/g,"$1")}function $n(e){return e&&e.replace(/([^\\])(\$)([^\{])/g,"$1\\$2$3")}function Rn(e){if(!e||!e.trim())return e;let t=-1,r=[],n=!1,i=!1,o=0,s=e.length;try{for(;o<s&&!n;){if(e[o++]!="$"||e[o++]!="{")continue;let a=-1,l=-1;for(;o<s&&/\d/.test(e[o]);)a=a<0?o:a,l=o+1,o++;if(a===-1||l===-1||o>=s||e[o]!="}"&&e[o]!=":")continue;let u=e.substring(a,l);if(n=u==="0",n)break;let c=!1;if(e[o++]==":")for(;o<s;){if(e[o]=="}"){c=!0;break}o++}Number(u)>Number(t)?(t=Number(u),r=[{numberStart:a,numberEnd:l}],i=!c):Number(u)===t&&r.push({numberStart:a,numberEnd:l})}}catch{}if(i&&!n)for(let a=0;a<r.length;a++){let l=r[a].numberStart,u=r[a].numberEnd;e=e.substr(0,l)+"0"+e.substr(u)}return e}function Lp(e,t){let r=e.offsetAt(t),n=e.getText(),i=0,o=n.length;for(let s=r-1;s>=0;s--)if(n[s]===`
28
+ `){i=s+1;break}for(let s=r;s<n.length;s++)if(n[s]===`
29
+ `){o=s;break}return n.substring(i,o)}function Ae(e){return cr.stylesheet.includes(e)}function Xo(e){return Ae(e)?"stylesheet":"markup"}function Yo(e){return Ae(e)?"css":"html"}function _p(e){let r={type:Xo(e),syntax:e},n=lr(r);return e==="xml"?{}:n.snippets}function Dp(e,t){let r;for(let n=0;n<i0;n++)if(e.endsWith(`${Vo}${Cn}`,t))t-=Cn.length+1,r=r?Cn+","+r:Cn;else if(e.endsWith(`${Vo}${Pn}`,t))t-=Pn.length+1,r=r?Pn+","+r:Pn;else if(e.endsWith(`${Vo}${On}`,t))t-=On.length+1,r=r?On+","+r:On;else break;return{pos:t,filter:r}}function qp(e,t,r){let n=Lp(e,t),i=n.substr(0,t.character),{pos:o,filter:s}=Dp(i,t.character),a=s?s.length+1:0,l=Wo(n,o,r);return l?{abbreviationRange:K.create(t.line,l.location,t.line,l.location+l.abbreviation.length+a),abbreviation:l.abbreviation,filter:s}:void 0}function l0(e,t){if(!e)return;let{pos:r,filter:n}=Dp(e,e.length),i=Ae(t)||t==="stylesheet"?{syntax:"stylesheet",lookAhead:!1}:{lookAhead:!0},o=Wo(e,r,i);if(o)return{abbreviation:o.abbreviation,filter:n}}function Bp(e,t){if(!t)return!1;if(Ae(e)){if(t.includes("#")){if(t.startsWith("#"))return/^#[\d,a-f,A-F]{1,6}$/.test(t);if(fr.includes(t.substring(0,t.indexOf("#"))))return!1}return n0.test(t)}return t.startsWith("!")?!/[^!]/.test(t):(/\(/.test(t)||/\)/.test(t))&&!/\{[^\}\{]*[\(\)]+[^\}\{]*\}(?:[>\+\*\^]|$)/.test(t)&&!/\(.*\)[>\+\*\^]/.test(t)&&!/\[[^\[\]\(\)]+=".*"\]/.test(t)&&!/[>\+\*\^]\(.*\)/.test(t)?!1:e==="jsx"?r0.test(t)&&jp.test(t):/^{%|{#|{{/.test(t)?!1:t0.test(t)&&jp.test(t)}function u0(e,t,r,n){var i,o;if(Ae(e)&&n){let a=(i=n["stylesheet.between"])!==null&&i!==void 0?i:": ",l=(o=n["stylesheet.after"])!==null&&o!==void 0?o:";",u=t.indexOf(a[0],Math.max(t.length-a.length,0));u=u>=0?u:t.length;let c=t.substring(0,u);return r===`${c}${a}\${0}${l}`||r.replace(/\s/g,"")===t.replace(/\s/g,"")+l}if(e==="xml"&&fr.some(a=>a.startsWith(t.toLowerCase())))return!0;if(fr.includes(t.toLowerCase())||Qo.includes(t)||/[-,:]/.test(t)&&!/--|::/.test(t)&&!t.endsWith(":"))return!1;if(/^\.{2,}$/.test(t))return!0;if(t===".")return!1;let s=t.match(/^([a-z,A-Z,\d]*)\.$/);return s?!(s[1]&&po.tags.includes(s[1])):e==="jsx"&&/^([A-Z][A-Za-z0-9]*)+$/.test(t)?!1:r.toLowerCase()===`<${t.toLowerCase()}>\${1}</${t.toLowerCase()}>`}function zp(e,t,r){var n,i,o,s,a,l,u,c,f,m;t=t??{},t.preferences=(n=t.preferences)!==null&&n!==void 0?n:{};let d=t.preferences,v=Ae(e)?e:"css",b=d0(e,(i=t.syntaxProfiles)!==null&&i!==void 0?i:{}),x=(b&&b.filters?b.filters.split(","):[]).map(O=>O.trim()),T=r&&r.split(",").some(O=>O.trim()==="bem")||x.includes("bem"),y=r&&r.split(",").some(O=>O.trim()==="c")||x.includes("c"),E=m0(e,t.preferences),S=E?.stylesheet&&E.stylesheet.unitAliases||{},k={"output.formatSkip":["html"],"output.formatForce":["body"],"output.inlineBreak":0,"output.compactBoolean":!1,"output.reverseAttributes":!1,"output.field":Zo,"markup.href":!0,"comment.enabled":!1,"comment.trigger":["id","class"],"comment.before":"","comment.after":`
30
+ <!-- /[#ID][.CLASS] -->`,"bem.enabled":!1,"bem.element":"__","bem.modifier":"_","jsx.enabled":e==="jsx","stylesheet.shortHex":!0,"stylesheet.between":e==="stylus"?" ":": ","stylesheet.after":e==="sass"||e==="stylus"?"":";","stylesheet.intUnit":"px","stylesheet.floatUnit":"em","stylesheet.unitAliases":{e:"em",p:"%",x:"ex",r:"rem"},"stylesheet.fuzzySearchMinScore":.3},P={"output.tagCase":b.tagCase,"output.attributeCase":b.attributeCase,"output.attributeQuotes":b.attributeQuotes,"output.format":(o=b.format)!==null&&o!==void 0?o:!0,"output.formatSkip":d["format.noIndentTags"],"output.formatForce":d["format.forceIndentationForTags"],"output.inlineBreak":(s=b.inlineBreak)!==null&&s!==void 0?s:d["output.inlineBreak"],"output.compactBoolean":(a=b.compactBooleanAttributes)!==null&&a!==void 0?a:d["profile.allowCompactBoolean"],"output.reverseAttributes":d["output.reverseAttributes"],"output.selfClosingStyle":(u=(l=b.selfClosingStyle)!==null&&l!==void 0?l:d["output.selfClosingStyle"])!==null&&u!==void 0?u:c0(e),"output.field":Zo,"comment.enabled":y,"comment.trigger":d["filter.commentTrigger"],"comment.before":d["filter.commentBefore"],"comment.after":d["filter.commentAfter"],"bem.enabled":T,"bem.element":(c=d["bem.elementSeparator"])!==null&&c!==void 0?c:"__","bem.modifier":(f=d["bem.modifierSeparator"])!==null&&f!==void 0?f:"_","jsx.enabled":e==="jsx","stylesheet.shortHex":d["css.color.short"],"stylesheet.between":d[`${v}.valueSeparator`],"stylesheet.after":d[`${v}.propertyEnd`],"stylesheet.intUnit":d["css.intUnit"],"stylesheet.floatUnit":d["css.floatUnit"],"stylesheet.unitAliases":S,"stylesheet.fuzzySearchMinScore":d["css.fuzzySearchMinScore"]};if(e==="jsx"){let O={class:"className","class*":"styleName",for:"htmlFor"},L={"class*":"styles"};b["markup.attributes"]&&(P["markup.attributes"]=Object.assign(Object.assign({},O),b["markup.attributes"])),b["markup.valuePrefix"]&&(P["markup.valuePrefix"]=Object.assign(Object.assign({},L),b["markup.valuePrefix"]))}if(e==="vue"){let O={"class*":":class"},L={"class*":"$style"};b["markup.attributes"]&&(P["markup.attributes"]=Object.assign(Object.assign({},O),b["markup.attributes"])),b["markup.valuePrefix"]&&(P["markup.valuePrefix"]=Object.assign(Object.assign({},L),b["markup.valuePrefix"]))}let j={};[...Object.keys(k),...Object.keys(P)].forEach(O=>{var L;let I=O;j[I]=(L=P[I])!==null&&L!==void 0?L:k[I]});let $=Object.assign(Object.assign({},k["stylesheet.unitAliases"]),P["stylesheet.unitAliases"]);j["stylesheet.unitAliases"]=$;let F=Xo(e),C=h0(t.variables),g=Yo(e),N=F==="stylesheet"?(m=Ze[e])!==null&&m!==void 0?m:Ze[g]:Ze[e];return{type:F,options:j,variables:C,snippets:N,syntax:e,text:void 0,maxRepeat:1e3}}function c0(e){switch(e){case"xhtml":return"xhtml";case"xml":return"xml";case"xsl":return"xml";case"jsx":return"xhtml";default:return"html"}}function f0(e,t){let r=lr(t);return t.type==="stylesheet"?Uo(e,r):qo(e,r)}function p0(e,t){let r,n=lr(t);return t.type==="stylesheet"?typeof e=="string"?r=ur(e,n):r=zo(e,n):typeof e=="string"?r=ur(e,n):r=Bo(e,n),$n(Rn(r))}function d0(e,t){t||(t={});let n=Object.assign({},jn,t)[e];if(!n||typeof n=="string")return n==="xhtml"?{selfClosingStyle:"xhtml"}:{};let i={};for(let o in n)switch(o){case"tag_case":i.tagCase=n[o]==="lower"||n[o]==="upper"?n[o]:"";break;case"attr_case":i.attributeCase=n[o]==="lower"||n[o]==="upper"?n[o]:"";break;case"attr_quotes":i.attributeQuotes=n[o];break;case"tag_nl":i.format=n[o]===!0||n[o]===!1?n[o]:!0;break;case"inline_break":i.inlineBreak=n[o];break;case"self_closing_tag":if(n[o]===!0){i.selfClosingStyle="xml";break}if(n[o]===!1){i.selfClosingStyle="html";break}i.selfClosingStyle=n[o];break;case"compact_bool":i.compactBooleanAttributes=n[o];break;default:i[o]=n[o];break}return i}function h0(e){return e?Object.assign({},pr,e):pr}function m0(e,t){if(!t||typeof t!="object")return{};if(!Ae(e)){let i={};for(let o in t)switch(o){case"filter.commentAfter":i.after=t[o];break;case"filter.commentBefore":i.before=t[o];break;case"filter.commentTrigger":i.trigger=t[o];break;default:break}return{comment:i}}let r=typeof t?.["css.fuzzySearchMinScore"]=="number"?t["css.fuzzySearchMinScore"]:.3;r>1?r=1:r<0&&(r=0);let n={fuzzySearchMinScore:r};for(let i in t)switch(i){case"css.floatUnit":n.floatUnit=t[i];break;case"css.intUnit":n.intUnit=t[i];break;case"css.unitAliases":let o={};t[i].split(",").forEach(s=>{if(!s||!s.trim()||!s.includes(":"))return;let a=s.substr(0,s.indexOf(":")),l=s.substr(a.length+1);!a.trim()||!l||(o[a.trim()]=l)}),n.unitAliases=o;break;case`${e}.valueSeparator`:n.between=t[i];break;case`${e}.propertyEnd`:n.after=t[i];break;default:break}return{stylesheet:n}}function g0(e,t,r,n){return e0(this,void 0,void 0,function*(){if(Go(),!e.length)return;let i=[];for(let o of e){if(typeof o!="string"){console.warn("The following emmetExtensionsPath isn't a string: "+JSON.stringify(o));continue}if(o=o.trim(),o.length&&o[0]==="~")n&&i.push(nr(n,o.substring(1)));else if(Jc(o))i.push(Vc.file(o));else if(r)for(let s of r)i.push(nr(s,o))}for(let o of i){try{if((yield t.stat(o)).type!==rr.Directory)continue}catch{continue}let s=nr(o,"snippets.json"),a=nr(o,"syntaxProfiles.json"),l;typeof globalThis.TextDecoder=="function"?l=new globalThis.TextDecoder:l=new Fp.TextDecoder;let u="";try{let f=yield t.readFile(s);u=l.decode(f)}catch{}if(u.length)try{let f=Ip(s,u);f.variables&&b0(f.variables),v0(f)}catch(f){throw Go(),f}let c="";try{let f=yield t.readFile(a);c=l.decode(f)}catch{}if(c.length)try{let f=Ip(a,c);y0(f)}catch(f){throw Go(),f}}})}function Ip(e,t){let r=[],n=ba(t,r);if(r.length)throw new Error(`Found error ${ya(r[0].error)} while parsing the file ${e} at offset ${r[0].offset}`);return n}function b0(e){if(typeof e=="object"&&e)pr=Object.assign({},pr,e);else throw new Error(Ot.t("Invalid emmet.variables field. See https://code.visualstudio.com/docs/editor/emmet#_emmet-configuration for a valid example."))}function y0(e){if(typeof e=="object"&&e)jn=Object.assign({},jn,e);else throw new Error(Ot.t("Invalid syntax profile. See https://code.visualstudio.com/docs/editor/emmet#_emmet-configuration for a valid example."))}function v0(e){if(typeof e=="object"&&e)Object.keys(e).forEach(t=>{if(!e[t].snippets)return;let r=Yo(t),n=e[t].snippets;if(e[r]&&e[r].snippets&&r!==t&&(n=Object.assign({},e[r].snippets,e[t].snippets)),Ae(t)){let a=Ct.get(t),l=Object.assign([],a,Object.keys(n));Ct.set(t,l)}else for(let a in n)n.hasOwnProperty(a)&&n[a].startsWith("<")&&n[a].endsWith(">")&&(n[a]=`{${n[a]}}`);let i=Ze[t],o=$p(n),s=Object.assign({},i,o);Ze[t]=s});else throw new Error(Ot.t("Invalid snippets file. See https://code.visualstudio.com/docs/editor/emmet#_using-custom-emmet-snippets for a valid example."))}function Go(){Ze={},Nn.clear(),Ct.clear(),jn={},pr={}}function Up(e,t=[]){if(!(!e||t.includes(e))){if(/\b(typescriptreact|javascriptreact|jsx-tags)\b/.test(e))return"jsx";if(e==="sass-indented")return"sass";if(e==="jade")return"pug";if(cr.markup.includes(e)||cr.stylesheet.includes(e))return e}}var Fp,e0,Ot,Nn,Qo,Ct,t0,r0,n0,jp,fr,Cn,Vo,On,Pn,i0,Ze,pr,jn,Zo,Wp=he(()=>{"use strict";p();va();Fp=le(Vu());Mc();Hc();Qc();Zc();Np();Rp();e0=function(e,t,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function a(c){try{u(n.next(c))}catch(f){s(f)}}function l(c){try{u(n.throw(c))}catch(f){s(f)}}function u(c){c.done?o(c.value):i(c.value).then(a,l)}u((n=n.apply(e,t||[])).next())})};try{Ot=require("vscode").l10n}catch{Ot={t:t=>t}}Nn=new Map,Ct=new Map,t0=/^[a-z,A-Z,!,(,[,#,\.\{]/,r0=/^[a-z,A-Z,!,(,[,#,\.]/,n0=/^-?[a-z,A-Z,!,@,#]/,jp=/[a-z,A-Z\.]/,fr=[...po.tags,"lorem"],Cn="bem",Vo="|",On="t",Pn="c",i0=3;Ze={},pr={},jn={},Zo=(e,t)=>`\${${e}${t?":"+t:""}}`});var s1={};vs(s1,{activate:()=>o1});module.exports=ws(s1);p();p();var z=le(require("vscode"));p();var te=le(require("vscode"));p();var D=le(require("vscode"));p();var Z=le(require("vscode"));p();p();var Yn=class{constructor(t,r,n){n==null&&typeof t=="string"&&(n=t.length),this.string=t,this.pos=this.start=r||0,this.end=n}eof(){return this.pos>=this.end}limit(t,r){return new this.constructor(this.string,t,r)}peek(){return this.string.charCodeAt(this.pos)}next(){if(this.pos<this.string.length)return this.string.charCodeAt(this.pos++)}eat(t){let r=this.peek(),n=typeof t=="function"?t(r):r===t;return n&&this.next(),n}eatWhile(t){let r=this.pos;for(;!this.eof()&&this.eat(t););return this.pos!==r}backUp(t){this.pos-=t||1}current(){return this.substring(this.start,this.pos)}substring(t,r){return this.string.slice(t,r)}error(t){let r=new Error(`${t} at char ${this.pos+1}`);return r.originalMessage=t,r.pos=this.pos,r.string=this.string,r}},rt=Yn;p();var ks={escape:92,throws:!1},Kn=function(e,t){t=t?Object.assign({},ks,t):ks;let r=e.pos,n=e.peek();if(e.eat(nt)){for(;!e.eof();)switch(e.next()){case n:return e.start=r,!0;case t.escape:e.next();break}if(e.pos=r,t.throws)throw e.error("Unable to consume quoted string")}return!1};function nt(e){return e===39||e===34}function ze(e){return e>47&&e<58}function wr(e,t,r){return t=t||65,r=r||90,e&=-33,e>=t&&e<=r}function Ss(e){return ze(e)||wr(e)}function qd(e){return e===32||e===9||e===160}function Ie(e){return qd(e)||e===10||e===13}var As={escape:92,throws:!1};function Fe(e,t,r,n){n=n?Object.assign({},As,n):As;let i=e.pos;if(e.eat(t)){let o=1,s;for(;!e.eof();)if(!Kn(e,n))if(s=e.next(),s===t)o++;else if(s===r){if(o--,!o)return e.start=i,!0}else s===n.escape&&e.next();if(e.pos=i,n.throws)throw e.error(`Unable to find matching pair for ${String.fromCharCode(t)}`)}return!1}var Dt=class{constructor(t,r,n,i){this.stream=t,this.type=r,this.open=n,this.close=i,this.children=[],this.parent=null}get name(){return this.type==="tag"&&this.open?this.open&&this.open.name&&this.open.name.value:"#"+this.type}get attributes(){return this.open&&this.open.attributes}get start(){return this.open&&this.open.start}get end(){return this.close?this.close.end:this.open&&this.open.end}get firstChild(){return this.children[0]}get nextSibling(){let t=this.getIndex();return t!==-1?this.parent.children[t+1]:null}get previousSibling(){let t=this.getIndex();return t!==-1?this.parent.children[t-1]:null}getIndex(){return this.parent?this.parent.children.indexOf(this):-1}addChild(t){return this.removeChild(t),this.children.push(t),t.parent=this,this}removeChild(t){let r=this.children.indexOf(t);return r!==-1&&(this.children.splice(r,1),t.parent=null),this}},Le=function(e,t,r){return typeof t=="function"?Bd(e,t):new Ar(e,t,r)};function Bd(e,t){let r=e.pos;if(e.eatWhile(t))return new Ar(e,r,e.pos);e.pos=r}var Ar=class{constructor(t,r,n){this.stream=t,this.start=r??t.start,this.end=n??t.pos,this._value=null}get value(){if(this._value===null){let t=this.stream.start,r=this.stream.pos;this.stream.start=this.start,this.stream.pos=this.end,this._value=this.stream.current(),this.stream.start=t,this.stream.pos=r}return this._value}toString(){return this.value}valueOf(){return`${this.value} [${this.start}; ${this.end}]`}},zd=60,Ud=62,Md=91,Wd=93,Vd=40,Hd=41,Gd=123,Qd=125,kr={throws:!0},Cs=function(e){let t=e.pos;if(Fe(e,zd,Ud,kr)||Fe(e,Md,Wd,kr)||Fe(e,Vd,Hd,kr)||Fe(e,Gd,Qd,kr))return Le(e,t)},Jd=47,Os=61,Zd=62,Xd=function(e){let t=[],r,n,i;for(;!e.eof();)if(e.eatWhile(Ie),i={start:e.pos},i.name=Yd(e))e.eat(Os)?i.value=Kd(e):i.boolean=!0,i.end=e.pos,t.push(i);else{if(ti(e.peek()))break;e.next()}return t};function Yd(e){return Cs(e)||Le(e,eh)}function Kd(e){let t=e.pos;if(Kn(e)){let r=e.pos,n,i;e.pos=t,e.next(),n=e.start=e.pos,e.pos=r,e.backUp(1),i=e.pos;let o=Le(e,n,i);return e.pos=r,o}return Cs(e)||th(e)}function eh(e){return e!==Os&&!ti(e)&&!Ie(e)}function ti(e){return e===Zd||e===Jd}function th(e){return Le(e,rh)}function rh(e){return!isNaN(e)&&!nt(e)&&!Ie(e)&&!ti(e)}var nh=45,ih=46,Es=47,oh=58,sh=60,ah=62,lh=95,Ps=function(e){let t=e.pos;if(e.eat(sh)){let r={type:e.eat(Es)?"close":"open"};if((r.name=uh(e))&&(r.type!=="close"&&(r.attributes=Xd(e),e.eatWhile(Ie),r.selfClosing=e.eat(Es)),e.eat(ah)))return Object.assign(Le(e,t),r)}return e.pos=t,null};function uh(e){return Le(e,ch)}function ch(e){return Ss(e)||e===oh||e===ih||e===nh||e===lh}function ei(e,t){let r=e.pos;for(let n=0;n<t.length;n++)if(!e.eat(t[n]))return e.pos=r,!1;return e.start=r,!0}function Ns(e,t,r,n){let i=e.pos;if(ei(e,t)){for(;!e.eof();){if(ei(e,r))return!0;e.next()}return n?!0:(e.pos=i,!1)}return e.pos=i,null}function qt(e){return e.split("").map(t=>t.charCodeAt(0))}var fh=qt("<!--"),ph=qt("-->"),dh=function(e){let t=e.pos;if(Ns(e,fh,ph,!0)){let r=Le(e,t);return r.type="comment",r}return null},hh=qt("<![CDATA["),mh=qt("]]>"),gh=function(e){let t=e.pos;if(Ns(e,hh,mh,!0)){let r=Le(e,t);return r.type="cdata",r}return null},bh={xml:!1,special:["script","style"],empty:["img","meta","link","br","base","hr","area","wbr","col","embed","input","param","source","track"]};function yh(e,t){t=Object.assign({},bh,t);let r=typeof e=="string"?new rt(e):e,n=new Dt(r,"root"),i=new Set(t.empty),o=t.special.reduce((f,m)=>f.set(m,qt(`</${m}>`)),new Map),s=(f,m)=>f.selfClosing||!t.xml&&i.has(m),a,l,u,c=[n];for(;!r.eof();)if(a=vh(r))if(u=wh(a),a.type==="open")l=new Dt(r,"tag",a),Ts(c).addChild(l),o.has(u)?l.close=xh(r,o.get(u)):s(a,u)||c.push(l);else if(a.type==="close"){for(let f=c.length-1;f>0;f--)if(c[f].name.toLowerCase()===u){c[f].close=a,c=c.slice(0,f);break}}else Ts(c).addChild(new Dt(r,a.type,a));else r.next();return n}function vh(e){if(e.peek()===60)return dh(e)||gh(e)||Ps(e)}function xh(e,t){let r=e.pos,n;for(;!e.eof();){if(ei(e,t))return e.pos=e.start,Ps(e);e.next()}return e.pos=r,null}function wh(e){return e.name?e.name.value.toLowerCase():`#${e.type}`}function Ts(e){return e[e.length-1]}var Bt=yh;p();var it=class{constructor(t){this.type=t,this.children=[],this.parent=null}get firstChild(){return this.children[0]}get nextSibling(){let t=this.index();return t!==-1?this.parent.children[t+1]:null}get previousSibling(){let t=this.index();return t!==-1?this.parent.children[t-1]:null}index(){return this.parent?this.parent.children.indexOf(this):-1}add(t){return t&&(t.remove(),this.children.push(t),t.parent=this),this}remove(){if(this.parent){let t=this.index();t!==-1&&(this.parent.children.splice(t,1),this.parent=null)}return this}},ni=class extends it{constructor(){super("stylesheet"),this.comments=[]}get start(){let t=this.firstChild;return t&&t.start}get end(){let t=this.children[this.children.length-1];return t&&t.end}addComment(t){this.comments.push(t)}};function kh(e){e=e.slice();let t;for(;t!==e.length;)t=e.length,ii(e[0])&&e.shift(),ii(st(e))&&e.pop();return e}function Ds(e){return kh(e,ii)}function ii(e){let t=e&&e.type;return t==="whitespace"||t==="comment"}function qs(e,t){let r=e.pos;for(let n=0,i=t.length;n<i;n++)if(!e.eat(t.charCodeAt(n)))return e.pos=r,!1;return!0}function oi(e,t){let r=e.pos;return e.eat(t)?(e.start=r,!0):!1}function zt(e,t){let r=e.pos;return e.eatWhile(t)?(e.start=r,!0):!1}function st(e){return e[e.length-1]}function Ue(e){return e&&e.valueOf()}var q=class{constructor(t,r,n,i){this.stream=t,this.start=n??t.start,this.end=i??t.pos,this.type=r,this._props=null,this._value=null,this._items=null}get size(){return this._items?this._items.length:0}get items(){return this._items}clone(t,r){return new this.constructor(this.stream,this.type,t??this.start,r??this.end)}add(t){if(Array.isArray(t))for(let r=0,n=t.length;r<n;r++)this.add(t[r]);else t&&(this._items?this._items.push(t):this._items=[t]);return this}remove(t){if(this._items){let r=this._items.indexOf(t);r!==-1&&this._items.splice(r,1)}return this}item(t){let r=this.size;return this._items&&this._items[(r+t)%r]}limit(){return this.stream.limit(this.start,this.end)}slice(t,r){let n=this.clone(),i=this._items&&this._items.slice(t,r);return i&&i.length?(n.start=i[0].start,n.end=i[i.length-1].end,n.add(i)):i&&(n.start=n.end),n}property(t,r){return typeof r<"u"&&(this._props||(this._props={}),this._props[t]=r),this._props&&this._props[t]}toString(){return`${this.valueOf()} [${this.start}, ${this.end}] (${this.type})`}valueOf(){return this._value===null&&(this._value=this.stream.substring(this.start,this.end)),this._value}},Bs=44,zs=58,Us=59,ot=123,at=125,Ah=new Map().set(Bs,"comma").set(zs,"propertyDelimiter").set(Us,"propertyTerminator").set(ot,"ruleStart").set(at,"ruleEnd");function Sh(e){if(Eh(e.peek())){let t=e.pos,r=Ah.get(e.next()),n=new q(e,"separator",t);return n.property("type",r),n}}function Eh(e){return e===Bs||e===zs||e===Us||e===ot||e===at}var Th=40,Ch=41,$s=function(e,t){if(e.peek()===Th){let r=e.pos;e.next();let n=[],i,o=!1;for(;!e.eof()&&!(Oh(e.peek())||e.eat(Ch)||(i=t(e),!i));)Ms(i)&&(o=!0),n.push(i);return e.start=r,Ph(e,n,o)}};function Oh(e){return e===ot||e===at}function Ph(e,t,r){let n=new q(e,"arguments"),i=r?Ms:$h,o=[];for(let s=0,a=t.length,l;s<a;s++)l=t[s],i(l)?(n.add(Rs(e,o)||Nh(e,l.start)),o.length=0):o.push(l);return o.length&&n.add(Rs(e,o)),n}function Rs(e,t){if(t=Ds(t),t.length){let r=new q(e,"argument",t[0].start,st(t).end);for(let n=0;n<t.length;n++)r.add(t[n]);return r}}function Nh(e,t){let r=new q(e,"argument",t,t);return r.property("empty",!0),r}function $h(e){return e.property("type")==="comma"}function Ms(e){return e.property("type")==="propertyTerminator"}var Ws=45,Rh=95;function Ce(e){return Vs(e)&&new q(e,"ident")}function Vs(e){let t=e.pos;return e.eat(Ws),e.eat(Hs)?(e.eatWhile(Gs),e.start=t,!0):(e.pos=t,!1)}function Hs(e){return e===Rh||e===Ws||wr(e)||e>=128}function Gs(e){return ze(e)||Hs(e)}function lt(e,t,r,n,i){let o=e.pos;if(e.eat(r)){let s=n(e,o);if(s||i)return e.start=o,new q(e,t,o).add(s)}e.pos=o}var jh=64;function ui(e){return lt(e,"at-keyword",jh,Ce)}var Qs=35,Js=64;function ci(e,t){let r=e.pos;if(t=t||Fh,(e.eat(Qs)||e.eat(Js))&&e.eat(ot)){let n=new q(e,"interpolation",r),i=1,o;for(;!e.eof();)if(e.eat(ot))i++;else if(e.eat(at)){if(i--,!i)return n.end=e.pos,n}else if(o=t(e))n.add(o);else break}e.pos=r}function Ih(e){let t=e.pos;return(e.eat(Qs)||e.eat(Js))&&Fe(e,ot,at)?(e.start=t,!0):(e.pos=t,!1)}function Fh(e){let t=e.pos;for(;!e.eof()&&e.peek()!==at;)Ut(e)||e.next();if(t!==e.pos)return new q(e,"expression",t)}function fi(e){return Ut(e,!0)}function Ut(e,t){let r=e.peek(),n,i,o;if(nt(r)){e.start=e.pos,e.next();let s=r,a=e.pos;for(;!e.eof()&&(n=e.pos,!(e.eat(s)||e.eat(js)));)e.eat(92)?e.eat(js):t&&(o=ci(e))&&(i?i.push(o):i=[o]),e.next();if(t){let l=new q(e,"string"),u=new q(e,"unquoted",a,n);return u.add(i),l.add(u),l.property("quote",s),l}return!0}return!1}function js(e){return e===10||e===13}var Is=42,Er=47,pi=function(e){return Lh(e)||_h(e)};function Lh(e){if(Zs(e)){let t=new q(e,"comment");return t.property("type","single-line"),t}}function _h(e){if(Xs(e)){let t=new q(e,"comment");return t.property("type","multiline"),t}}function Dh(e){return Zs(e)||Xs(e)}function Zs(e){let t=e.pos;if(e.eat(Er)&&e.eat(Er)){for(e.start=t;!e.eof()&&!qh(e.next()););return!0}return e.pos=t,!1}function Xs(e){let t=e.pos;if(e.eat(Er)&&e.eat(Is)){for(;!e.eof()&&!(e.next()===Is&&e.eat(Er)););return e.start=t,!0}return e.pos=t,!1}function qh(e){return e===10||e===13}function Bh(e){return Me(e)&&new q(e,"whitespace")}function Me(e){return zt(e,Ie)}var zh=91,Uh=93;function Mh(e){let t=e.pos;if(e.eat(zh)){Sr(e);let r=Ce(e);Sr(e);let n=Wh(e);Sr(e);let i=fi(e)||Ce(e);return Sr(e),e.eat(Uh),new q(e,"attribute",t).add(r).add(n).add(i)}}function Sr(e){for(;!e.eof();)if(!Me(e)&&!Dh(e))return!0}function Wh(e){return zt(e,Vh)&&new q(e,"operator")}function Vh(e){return e===126||e===124||e===94||e===36||e===42||e===61}var Fs=96;function di(e){if(Ys(e))return new q(e,"backtick")}function Ys(e){let t=e.pos;return Fe(e,Fs,Fs)?(e.start=t,!0):!1}var Hh=46;function Gh(e){return lt(e,"class",Hh,Ce)}var Ks=43,ea=126,ta=62,ra=38,Qh={[Ks]:"adjacentSibling",[ea]:"generalSibling",[ta]:"child",[ra]:"nesting"},Jh=function(e){if(Zh(e.peek())){let t=e.pos,r=Qh[e.next()],n=new q(e,"combinator",t);return n.property("type",r),n}};function Zh(e){return e===Ks||e===ea||e===ra||e===ta}var Xh=35;function Yh(e){return lt(e,"hash",Xh,Kh,!0)}function Kh(e){if(em(e))return new q(e,"hash-value")}function em(e){return zt(e,tm)}function tm(e){return ze(e)||wr(e,65,70)||e===95||e===45||e>128}var rm=35;function nm(e){return lt(e,"id",rm,Ce)}var im=33;function om(e){return lt(e,"important",im,Ce)}var Ls=46;function sm(e){if(am(e)){let t=e.start,r=new q(e,"value"),n=lm(e)?new q(e,"unit"):null;return new q(e,"number",t).add(r).add(n)}}function am(e){let t=e.pos;if(e.eat(cm),e.eatWhile(ze)){e.start=t;let r=e.pos;return e.eat(Ls)&&e.eatWhile(ze)||(e.pos=r),!0}else if(e.eat(Ls)&&e.eatWhile(ze))return e.start=t,!0;return e.pos=t,!1}function lm(e){return Vs(e)||um(e)}function um(e){return oi(e,37)}function cm(e){return e===45||e===43}var fm=33,pm=42,dm=43,hm=45,mm=47,gm=60,na=61,bm=62;function ym(e){return vm(e)&&new q(e,"operator")}function vm(e){return oi(e,ia)?(e.eatWhile(na),!0):!!oi(e,xm)}function ia(e){return e===fm||e===gm||e===na||e===bm}function xm(e){return e===pm||e===dm||e===hm||e===mm||ia(e)}var wm=58,km=function(e){let t=e.pos;if(e.eatWhile(wm)){let r=Ce(e);if(r)return new q(e,"pseudo",t).add(r)}e.pos=t},Am=function(e){return oa(e)&&new q(e,"unquoted")};function oa(e){return zt(e,Sm)}function Sm(e){return!isNaN(e)&&!nt(e)&&!Ie(e)&&e!==40&&e!==41&&e!==92&&!Em(e)}function Em(e){return e>=0&&e<=8||e===11||e>=14&&e<=31||e===127}function sa(e){let t=e.pos;if(qs(e,"url(")){Me(e);let r=fi(e)||Am(e);return Me(e),e.eat(41),new q(e,"url",t).add(r)}e.pos=t}function aa(e){let t=e.pos;return qs(e,"url(")?(Me(e),Ut(e)||oa(e),Me(e),e.eat(41),e.start=t,!0):(e.pos=t,!1)}var la=36;function Tm(e){return lt(e,"variable",la,Cm)}function Cm(e){if(Om(e))return new q(e,"name")}function Om(e){return zt(e,Pm)}function Pm(e){return e===la||Gs(e)}function Tr(e){let t=Nm(e)||$s(e,Tr);if(t&&t.type==="ident"){let r=$s(e,Tr);if(r)return new q(e,"function",t.start,r.end).add(t).add(r)}return t||Fm(e)}function Nm(e){return Im(e)||sa(e)||$m(e)||Rm(e)||Sh(e)}function $m(e){return ci(e)||di(e)||Ce(e)||ui(e)||Gh(e)||nm(e)||km(e)||Mh(e)||Jh(e)}function Rm(e){return sa(e)||fi(e)||ci(e)||di(e)||sm(e)||Yh(e)||jm(e)||om(e)||ym(e)}function jm(e){return di(e)||Tm(e)||ui(e)||Ce(e)}function Im(e){return pi(e)||Bh(e)}function Fm(e){if(e.start=e.pos,e.next()!=null)return new q(e,"unknown")}function Lm(e){return hi(e,"selector")}function _m(e){let t=typeof e=="string"?new rt(e):e,r=[];for(;!t.eof();)r.push(Tr(t));let n;if(r.length===1)n=r[0];else{n=new q(t,"property-name",t.start,t.end);for(let i=0,o=r.length;i<o;i++)n.add(r[i])}return n}function Dm(e){return hi(e)}function qm(e){return hi(e)}function hi(e,t){t=t||"item";let r=typeof e=="string"?new rt(e):e,n=[],i=[],o=()=>{let a=Ds(i);if(a.length){let l=new q(r,t,a[0].start,st(a).end);for(let u=0;u<a.length;u++)l.add(a[u]);n.push(l)}i.length=0},s;for(;!r.eof();)if(r.eat(44))o();else if(s=Tr(r))s.type!=="comment"&&i.push(s);else throw r.error("Unexpected character");return o(),n}function Bm(e,t,r,n){if(!t.length)return null;let i=t[0];return i.end=st(t).end,new si(e,i,r,n)}var si=class extends it{constructor(t,r,n,i){super("rule"),this.stream=t,this.selectorToken=r,this.contentStartToken=n,this.contentEndToken=i||n,this._parsedSelector=null}get selector(){return Ue(this.selectorToken)}get parsedSelector(){return this._parsedSelector||(this._parsedSelector=Lm(this.selectorToken.limit())),this._parsedSelector}get start(){return this.selectorToken&&this.selectorToken.start}get end(){let t=this.contentEndToken||this.contentStartToken||this.nameToken;return t&&t.end}};function zm(e,t,r,n){if(!t.length)return null;let i=0,o,s=t[i++];return i<t.length?(o=t[i++],o.type="expression",o.end=st(t).end):o=new q(e,"expression",s.end,s.end),new ai(e,s,o,r,n)}var ai=class extends it{constructor(t,r,n,i,o){super("at-rule"),this.stream=t,this.nameToken=r,this.expressionToken=n,this.contentStartToken=i,this.contentEndToken=o||i,this._parsedExpression=null}get name(){return Ue(this.nameToken&&this.nameToken.item(0))}get expression(){return Ue(this.expressionToken)}get parsedExpression(){return this._parsedExpression||(this._parsedExpression=qm(this.expressionToken.limit())),this._parsedExpression}get start(){return this.nameToken&&this.nameToken.start}get end(){let t=this.contentEndToken||this.contentStartToken||this.nameToken;return t&&t.end}};function ri(e,t,r){if(!t.length)return null;let n,i,o=0,s=t[o++];return o<t.length&&(i=t[o++],i.type="value",i.end=st(t).end),s&&i&&(n=new q(e,"separator",s.end,i.start)),new li(e,s,i,n,r)}var li=class extends it{constructor(t,r,n,i,o){super("property"),this.stream=t,this.nameToken=r,this.valueToken=n,this._parsedName=null,this._parsedValue=null,this.separatorToken=i,this.terminatorToken=o}get name(){return Ue(this.nameToken)}get parsedName(){return this._parsedName||(this._parsedName=_m(this.nameToken.limit())),this._parsedName}get value(){return Ue(this.valueToken)}get parsedValue(){return this._parsedValue||(this._parsedValue=Dm(this.valueToken.limit())),this._parsedValue}get separator(){return Ue(this.separatorToken)}get terminator(){return Ue(this.terminatorToken)}get start(){let t=this.nameToken||this.separatorToken||this.valueToken||this.terminatorToken;return t&&t.start}get end(){let t=this.terminatorToken||this.valueToken||this.separatorToken||this.nameToken;return t&&t.end}},_s=40,Um=41,Mm=58,Wm=59,Vm=123,Hm=125;function Gm(e){let t=typeof e=="string"?new rt(e):e,r=new ni,n=r,i,o,s,a=[],l=()=>{o&&(a.push(o),o=null)};for(;!t.eof();)if(!Me(t)){if(s=pi(t)){r.addComment(s);continue}if(t.start=t.pos,t.eatWhile(Mm))a.length||(o?l():o=new q(t,"preparse"));else if(t.eat(Wm))l(),n.add(ri(t,a,new q(t,"termintator"))),a.length=0;else if(t.eat(Vm))l(),a.length>0&&(i=a[0].type==="at-keyword"?zm(t,a,new q(t,"body-start")):Bm(t,a,new q(t,"body-start")),n.add(i),n=i,a.length=0);else if(t.eat(Hm))l(),n.add(ri(t,a)),n.type!=="stylesheet"&&(n.contentEndToken=new q(t,"body-end"),n=n.parent),a.length=0;else if(s=ui(t))l(),a.push(s);else if(aa(t)||Ih(t)||Ys(t)||Qm(t,r)||Ut(t)||t.next())o=o||new q(t,"preparse"),o.end=t.pos;else throw new Error(`Unexpected end-of-stream at ${t.pos}`)}for(o&&a.push(o),n.add(ri(t,a)),t.start=t.pos;n&&n!==r;)n.contentEndToken=new q(t,"body-end"),n=n.parent;return r}function Qm(e,t){if(e.eat(_s)){let r=1,n;for(;!e.eof();)if(e.eat(Um)){if(r--,!r)break}else if(e.eat(_s))r++;else{if(aa(e)||Ut(e))continue;if(n=pi(e)){t.addComment(n);continue}else e.next()}return!0}return!1}var _e=Gm;p();var Cr=class e{document;start;_eof;_sof;pos;constructor(t,r,n){this.document=t,this.start=this.pos=r||0,this._sof=n?n[0]:0,this._eof=n?n[1]:t.getText().length}sof(){return this.pos<=this._sof}eof(){return this.pos>=this._eof}limit(t,r){return new e(this.document,t,[t,r])}peek(){return this.eof()?NaN:this.document.getText().charCodeAt(this.pos)}next(){if(this.eof())return NaN;let t=this.document.getText().charCodeAt(this.pos);return this.pos++,this.eof()&&(this.pos=this._eof),t}backUp(t){return this.pos-=t,this.pos<0&&(this.pos=0),this.peek()}current(){return this.substring(this.start,this.pos)}substring(t,r){return this.document.getText().substring(t,r)}error(t){return new Error(`${t} at offset ${this.pos}`)}eat(t){let r=this.peek(),n=typeof t=="function"?t(r):r===t;return n&&this.next(),n}eatWhile(t){let r=this.pos;for(;!this.eof()&&this.eat(t););return this.pos!==r}};p();var Or=class e{constructor(t,r,n,i){this._uri=t,this._languageId=r,this._version=n,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(t){if(t){let r=this.offsetAt(t.start),n=this.offsetAt(t.end);return this._content.substring(r,n)}return this._content}update(t,r){for(let n of t)if(e.isIncremental(n)){let i=fa(n.range),o=this.offsetAt(i.start),s=this.offsetAt(i.end);this._content=this._content.substring(0,o)+n.text+this._content.substring(s,this._content.length);let a=Math.max(i.start.line,0),l=Math.max(i.end.line,0),u=this._lineOffsets,c=ua(n.text,!1,o);if(l-a===c.length)for(let m=0,d=c.length;m<d;m++)u[m+a+1]=c[m];else c.length<1e4?u.splice(a+1,l-a,...c):this._lineOffsets=u=u.slice(0,a+1).concat(c,u.slice(l+1));let f=n.text.length-(s-o);if(f!==0)for(let m=a+1+c.length,d=u.length;m<d;m++)u[m]=u[m]+f}else if(e.isFull(n))this._content=n.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received");this._version=r}getLineOffsets(){return this._lineOffsets===void 0&&(this._lineOffsets=ua(this._content,!0)),this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let r=this.getLineOffsets(),n=0,i=r.length;if(i===0)return{line:0,character:t};for(;n<i;){let s=Math.floor((n+i)/2);r[s]>t?i=s:n=s+1}let o=n-1;return t=this.ensureBeforeEOL(t,r[o]),{line:o,character:t-r[o]}}offsetAt(t){let r=this.getLineOffsets();if(t.line>=r.length)return this._content.length;if(t.line<0)return 0;let n=r[t.line];if(t.character<=0)return n;let i=t.line+1<r.length?r[t.line+1]:this._content.length,o=Math.min(n+t.character,i);return this.ensureBeforeEOL(o,n)}ensureBeforeEOL(t,r){for(;t>r&&ca(this._content.charCodeAt(t-1));)t--;return t}get lineCount(){return this.getLineOffsets().length}static isIncremental(t){let r=t;return r!=null&&typeof r.text=="string"&&r.range!==void 0&&(r.rangeLength===void 0||typeof r.rangeLength=="number")}static isFull(t){let r=t;return r!=null&&typeof r.text=="string"&&r.range===void 0&&r.rangeLength===void 0}},Pr;(function(e){function t(i,o,s,a){return new Or(i,o,s,a)}e.create=t;function r(i,o,s){if(i instanceof Or)return i.update(o,s),i;throw new Error("TextDocument.update: document must be created by TextDocument.create")}e.update=r;function n(i,o){let s=i.getText(),a=mi(o.map(Jm),(c,f)=>{let m=c.range.start.line-f.range.start.line;return m===0?c.range.start.character-f.range.start.character:m}),l=0,u=[];for(let c of a){let f=i.offsetAt(c.range.start);if(f<l)throw new Error("Overlapping edit");f>l&&u.push(s.substring(l,f)),c.newText.length&&u.push(c.newText),l=i.offsetAt(c.range.end)}return u.push(s.substr(l)),u.join("")}e.applyEdits=n})(Pr||(Pr={}));function mi(e,t){if(e.length<=1)return e;let r=e.length/2|0,n=e.slice(0,r),i=e.slice(r);mi(n,t),mi(i,t);let o=0,s=0,a=0;for(;o<n.length&&s<i.length;)t(n[o],i[s])<=0?e[a++]=n[o++]:e[a++]=i[s++];for(;o<n.length;)e[a++]=n[o++];for(;s<i.length;)e[a++]=i[s++];return e}function ua(e,t,r=0){let n=t?[r]:[];for(let i=0;i<e.length;i++){let o=e.charCodeAt(i);ca(o)&&(o===13&&i+1<e.length&&e.charCodeAt(i+1)===10&&i++,n.push(r+i+1))}return n}function ca(e){return e===13||e===10}function fa(e){let t=e.start,r=e.end;return t.line>r.line||t.line===r.line&&t.character>r.character?{start:r,end:t}:e}function Jm(e){let t=fa(e.range);return t!==e.range?{newText:e.newText,range:t}:e}p();var Nr=new Map;function J(e,t){let r=e.uri.toString(),n=Nr.get(r),i=e.version;if(t&&n&&i===n.key)return n.value;let s=(oe(e.languageId)?_e:Bt)(e.getText());return t&&Nr.set(r,{key:i,value:s}),s}function pa(e){let t=e.uri.toString();Nr.set(t,void 0)}function da(e){let t=e.uri.toString();Nr.delete(t)}var Ko,Vp,x0;function Xe(){return Ko||(Ko=(Wp(),ws(Mp))),Ko}function Fn(e=!1){let t=Xe(),r=Z.workspace.getConfiguration("emmet").get("extensionsPath");if(r||(r=[]),e||Vp!==r){Vp=r;let n=Z.workspace.workspaceFolders?.length?Z.workspace.workspaceFolders.map(o=>o.uri):void 0,i=Z.workspace.fs;t.updateExtensionsPath(r,i,n,x0).catch(o=>{Array.isArray(r)&&r.length&&Z.window.showErrorMessage(o.message)})}}function Qp(){let e=Z.workspace.getConfiguration().inspect("emmet.extensionsPath");typeof e?.globalValue=="string"?Z.workspace.getConfiguration().update("emmet.extensionsPath",[e.globalValue],!0):e?.globalValue===null&&Z.workspace.getConfiguration().update("emmet.extensionsPath",[],!0),typeof e?.workspaceValue=="string"?Z.workspace.getConfiguration().update("emmet.extensionsPath",[e.workspaceValue],!1):e?.workspaceValue===null&&Z.workspace.getConfiguration().update("emmet.extensionsPath",[],!1),typeof e?.workspaceFolderValue=="string"?Z.workspace.getConfiguration().update("emmet.extensionsPath",[e.workspaceFolderValue]):e?.workspaceFolderValue===null&&Z.workspace.getConfiguration().update("emmet.extensionsPath",[])}var dr={html:["!",".","}",":","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],jade:["!",".","}",":","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],slim:["!",".","}",":","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],haml:["!",".","}",":","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],xml:[".","}","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],xsl:["!",".","}","*","$","/","]",">","0","1","2","3","4","5","6","7","8","9"],css:[":","!","-","0","1","2","3","4","5","6","7","8","9"],scss:[":","!","-","0","1","2","3","4","5","6","7","8","9"],sass:[":","!","0","1","2","3","4","5","6","7","8","9"],less:[":","!","-","0","1","2","3","4","5","6","7","8","9"],stylus:[":","!","0","1","2","3","4","5","6","7","8","9"],javascriptreact:["!",".","}","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],typescriptreact:["!",".","}","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"]};function oe(e){return["css","scss","sass","less","stylus"].includes(e)}function ee(e=!0){let t=Z.window.activeTextEditor;return t?!(!e&&oe(t.document.languageId)):(Z.window.showInformationMessage("No editor is active"),!1)}function Nt(){let e={handlebars:"html",php:"html"},t={},r=Z.workspace.getConfiguration("emmet").get("includeLanguages"),n=Object.assign({},e,r??{});return Object.keys(n).forEach(i=>{typeof n[i]=="string"&&dr[n[i]]&&(t[i]=n[i])}),t}function Te(e,t,r){if(!e||r.includes(e))return;e==="jsx-tags"&&(e="javascriptreact"),t[e]&&(e=t[e]),/\b(typescriptreact|javascriptreact|jsx-tags)\b/.test(e)?e="jsx":e==="sass-indented"?e="sass":(e==="jade"||e==="pug")&&(e="pug");let n=Bn();if(n.markup.includes(e)||n.stylesheet.includes(e))return e}var es=125,Hp=123,Pt=47,Gp=42;function Ln(e,t){let r=e.languageId==="css",n=e.offsetAt(t),i=0,o=e.getText().length,s=n-5e3,a=s>0?s:i,l=new Cr(e,n);function u(T){let E=e.getText().substring(0,T).lastIndexOf("/*");if(E!==-1)return E}function c(T){let E=e.getText().substring(T).indexOf("*/");if(E!==-1)return E+=2+T,E}function f(){let T=e.positionAt(l.pos).line;if(!r&&b!==T){b=T;let y=e.lineAt(b).text.indexOf("//");y>-1&&(l.pos=e.offsetAt(new Z.Position(b,y)))}}function m(){!l.sof()&&l.peek()===Pt&&(l.backUp(1)===Gp?l.pos=u(l.pos)??i:l.next())}function d(){if(l.eat(Pt))if(l.eat(Pt)&&!r){let T=e.positionAt(l.pos).line;l.pos=e.offsetAt(new Z.Position(T+1,0))}else l.eat(Gp)&&(l.pos=c(l.pos)??o)}for(;!l.eof()&&!l.eat(es);)l.peek()===Pt?d():l.next();l.eof()||(o=l.pos),l.pos=n;let v=1,b=t.line,A=!1;for(;!A&&v>0&&!l.sof();){switch(f(),l.backUp(1)){case Hp:v--;break;case es:r?(l.next(),i=l.pos,A=!0):v++;break;case Pt:m();break;default:break}(t.line-e.positionAt(l.pos).line>100||l.pos<=a)&&(A=!0)}b=e.positionAt(l.pos).line,v=0;let x=!1;for(;!A&&!l.sof()&&!x&&v>=0;){f();let T=l.backUp(1);if(!/\s/.test(String.fromCharCode(T))){switch(T){case Pt:m();break;case es:v++;break;case Hp:v--;break;default:v||(x=!0);break}!l.sof()&&x&&(i=l.pos)}}try{let T=" ".repeat(i)+e.getText().substring(i,o);return _e(T)}catch{return}}function ne(e,t,r){if(!e)return;function n(o){if(!o)return;let s=o.start,a=o.end;if(s<t&&a>t||r&&s<=t&&a>=t)return i(o.children)??o;if("close"in o){let l=o;if(l.open&&!l.close)return i(l.children)}}function i(o){for(let s=0;s<o.length;s++){let a=n(o[s]);if(a)return a}}return i(e.children)}var hr=["text/html","text/plain","text/x-template","text/template","text/ng-template"];function X(e,t,r,n){let i=ne(t,r,n);if(i){if(i.name==="script"&&i.children.length===0){let o=w0(e,i);o&&(i=X(o,i,r,n)??i)}else if(i.type==="cdata"){let o=k0(e,i);i=X(o,i,r,n)??i}return i}}function w0(e,t){if(t.name==="script"&&t.attributes&&t.attributes.some(n=>n.name.toString()==="type"&&hr.includes(n.value.toString()))&&t.open){let n=" ".repeat(t.open.end),i=t.close?t.close.start:t.end,o=n+e.substring(t.open.end,i);return Bt(o).children.forEach(a=>{t.children.push(a),a.parent=t}),o}return""}function k0(e,t){let i=t.start+"<![CDATA[".length,o=t.end-3,a=" ".repeat(i)+e.substring(i,o);return Bt(a).children.forEach(u=>{t.children.push(u),u.parent=t}),a}function ts(e,t){let r=e;return!!(r.open&&t>r.open.start&&t<r.open.end||r.close&&t>r.close.start&&t<r.close.end)}function Q(e,t,r){let n=e.positionAt(t),i=e.positionAt(r);return new Z.Selection(n,i)}function ae(e,t,r){let n=e.positionAt(t),i=e.positionAt(r);return new Z.Range(n,i)}function $t(e){if(!e||!e.children||e.children.length===0||!e.children.find(t=>t.type!=="comment"))return e;for(let t=e.children.length-1;t>=0;t--)if(e.children[t].type!=="comment")return $t(e.children[t])}function _n(e,t){let r=t===-1,n=!1,i=!1,o,s;for(;t<e.length-1;){if(t++,!r){e[t]===" "&&(r=!0);continue}if(!(r&&!n&&e[t]===" ")){if(!n){o=t,n=!0;continue}if(e[t]===" "){s=t,i=!0;break}}}return n&&!i&&(s=e.length),[o,s]}function Dn(e,t){let r=t===e.length,n=!1,i=!1,o,s;for(;t>-1;){if(t--,!r){e[t]===" "&&(r=!0);continue}if(!(r&&!i&&e[t]===" ")){if(!i){s=t+1,i=!0;continue}if(e[t]===" "){o=t+1,n=!0;break}}}return i&&!n&&(o=0),[o,s]}function Jp(e,t){if(In(e,t))return[e];if(!In(e.parent,t.parent)){if(t.start<e.start)return[t];if(t.start<e.end)return[e];for(;e.parent&&e.parent.end<t.start;)e=e.parent;for(;t.parent&&t.parent.start>e.start;)t=t.parent}let r=[],n=e,i=t.end;for(;n&&i>n.start;)r.push(n),n=n.nextSibling;return r}function In(e,t){return!e&&!t?!0:!e||!t?!1:e.start===t.start&&e.end===t.end}function Rt(e){let t=Z.workspace.getConfiguration("emmet"),r=Object.assign({},t.syntaxProfiles||{}),n=Object.assign({},t.preferences||{});return(e==="jsx"||e==="xml"||e==="xsl")&&(r[e]=r[e]||{},typeof r[e]=="object"&&!r[e].hasOwnProperty("self_closing_tag")&&!r[e].hasOwnProperty("selfClosingStyle")&&(r[e]={...r[e],selfClosingStyle:e==="jsx"?"xhtml":"xml"})),{preferences:n,showExpandedAbbreviation:t.showExpandedAbbreviation,showAbbreviationSuggestions:t.showAbbreviationSuggestions,syntaxProfiles:r,variables:t.variables,excludeLanguages:t.excludeLanguages,showSuggestionsAsSnippets:t.showSuggestionsAsSnippets}}function Zp(e,t){return e.children.find(r=>r.type==="property"&&r.name===t)}function Xp(e,t){let r=e.document,n=J(r,!0),i=r.offsetAt(t),o=ne(n,i,!0);if(oe(e.document.languageId))return o&&o.type==="property"?o:null;let s=o;if(s&&s.name==="style"&&s.open&&s.close&&s.open.end<i&&s.close.start>i){let a=" ".repeat(s.start)+r.getText().substring(s.start,s.end),l=_e(a),u=ne(l,i,!0);return u&&u.type==="property"?u:null}return null}function qn(e,t,r){if(!t)return;let n=t;if(n&&n.open&&n.close){let i=e.offsetAt(r);if(n.open.end<i&&i<=n.close.start&&n.name==="style"){let o=" ".repeat(n.open.end)+e.getText().substring(n.open.end,n.close.start);return _e(o)}}}function Yp(e,t){if(!e)return!1;let r=e,n=(r.attributes||[]).findIndex(o=>o.name.toString()==="style");if(n===-1)return!1;let i=r.attributes[n];return t>=i.value.start&&t<=i.value.end}function mr(e){return Pr.create(e.uri.toString(),e.languageId,e.version,e.getText())}function Kp(e){let t=e.split("/").pop();return(t?t.split("\\").pop():"")??""}function Bn(){return{markup:["html","xml","xsl","jsx","js","pug","slim","haml"],stylesheet:["css","sass","scss","less","sss","stylus"]}}var A0=/[\u00a0]*[\d#\-\*\u2022]+\.?/,rs=/^#[\da-fA-F]{0,6}$/;async function ed(e){if(!ee(!1))return!1;let t=D.window.activeTextEditor,r=t.document;e=e||{},e.language||(e.language=r.languageId);let n=gr(e)||"html",i=J(r,!0),o=Xe(),s=Array.from(t.selections).sort((S,k)=>S.start.compareTo(k.start)).map(S=>{let k=S;{let{start:j,end:$}=k,F=r.offsetAt(j),C=r.getText(),g=X(C,i,F,!0);if(g&&ts(g,F)){j=r.positionAt(g.start);let L=r.positionAt(g.end);$=L.isAfter($)?L:$}let N=r.offsetAt($),O=X(C,i,N,!0);if(O&&ts(O,N)){let L=r.positionAt(O.start);j=L.isBefore(j)?L:j;let I=r.positionAt(O.end);$=I.isAfter($)?I:$}k=new D.Range(j,$)}if(!k.isSingleLine&&k.end.character===0){let j=k.end.line-1;k=new D.Range(k.start,r.lineAt(j).range.end)}k.isEmpty&&(k=r.lineAt(k.start).range);let P=r.lineAt(k.start);return!P.isEmptyOrWhitespace&&P.firstNonWhitespaceCharacterIndex>k.start.character&&(k=k.with(new D.Position(k.start.line,P.firstNonWhitespaceCharacterIndex))),k}).reduce((S,k)=>(S.length>0&&k.intersection(S[S.length-1])?S.push(k.union(S.pop())):S.push(k),S),[]),a=t.selections;t.selections=s.map(S=>new D.Selection(S.start,S.end));let l=s.map(S=>{let k,P=r.getText(S),$=r.lineAt(S.start).text.match(/^(\s*)/),F=$?$[1]:"";return k=S.isSingleLine?[P]:P.split(`
31
+ `+F).map(C=>C.trimEnd()),k=k.map(C=>C.replace(/(\$\d)/g,"\\$1")),{previewRange:S,originalRange:S,originalContent:P,textToWrapInPreview:k,baseIndent:F}}),{tabSize:u,insertSpaces:c}=t.options,f=c?" ".repeat(u):" ";function m(){return t.edit(S=>{for(let k of l)S.replace(k.previewRange,k.originalContent),k.previewRange=k.originalRange},{undoStopBefore:!1,undoStopAfter:!1})}function d(S){let k=new D.Range(0,0,0,0),P=new D.Range(0,0,0,0),j=0;return t.edit($=>{for(let F=0;F<l.length;F++){let C=ns(S[F])||"";if(!C)break;let g=l[F].previewRange,N=C.replace(/\$\{[\d]*\}/g,"|").replace(/\$\{[\d]*:([^}]*)\}/g,(_t,Rd)=>Rd).replace(/\\\$/g,"$");$.replace(g,N);let O=N.split(`
32
+ `),L=g.end.line-g.start.line+1,I=O.length-L,_=g.start.line+j,ce=g.start.character,fe=g.end.line+j+I,Y=O[O.length-1].length;F>0&&fe===P.end.line?(ce=P.end.character+(g.start.character-k.end.character),Y+=ce):F>0&&_===P.end.line?ce=P.end.character+(g.start.character-k.end.character):O.length===1&&(Y+=g.start.character),k=l[F].previewRange,P=new D.Range(_,ce,fe,Y),l[F].previewRange=P,j+=I}},{undoStopBefore:!1,undoStopAfter:!1})}let v=!1;async function b(S,k){let j=!!S&&!!S.trim()&&o.isAbbreviationValid(n,S)?o.extractAbbreviationFromText(S,n):void 0;if(!j)return v&&(v=!1,await m()),!1;let{abbreviation:$,filter:F}=j;if(k){let g=l.map(N=>({syntax:n,abbreviation:$,rangeToReplace:N.originalRange,textToWrap:N.textToWrapInPreview,filter:F,indent:f,baseIndent:N.baseIndent}));return v=!0,d(g)}let C=l.map(g=>({syntax:n,abbreviation:$,rangeToReplace:g.originalRange,textToWrap:g.textToWrapInPreview,filter:F,indent:f}));return v&&(v=!1,await m()),rd(t,C,!1)}let A="";async function x(S){return S!==A&&(A=S,await b(S,!0)),""}let T=D.l10n.t("Enter Abbreviation"),y=e&&e.abbreviation?e.abbreviation:await D.window.showInputBox({prompt:T,validateInput:x}),E=await b(y,!1);return E||(t.selections=a),E}function td(e){if(!ee()||!D.window.activeTextEditor)return Ye();if(D.window.activeTextEditor.selections.length===1&&D.window.activeTextEditor.selection.isEmpty){let f=D.window.activeTextEditor.selection.anchor;if(f.character===0)return Ye();let m=f.translate(0,-1),d=D.window.activeTextEditor.document.getText(new D.Range(m,f));if(d===" "||d===" ")return Ye()}if(e=e||{},!e.language)e.language=D.window.activeTextEditor.document.languageId;else if((D.workspace.getConfiguration("emmet").excludeLanguages?D.workspace.getConfiguration("emmet").excludeLanguages:[]).includes(D.window.activeTextEditor.document.languageId))return Ye();let t=gr(e);if(!t)return Ye();let r=D.window.activeTextEditor;if(D.workspace.getConfiguration("emmet").triggerExpansionOnTab===!0&&r.selections.find(f=>!f.isEmpty))return Ye();let n=[],i,o=!0,s=Xe(),a=(f,m,d,v)=>{d=f.validatePosition(d);let b=m,A=f.getText(b);if(!b.isEmpty){let P=s.extractAbbreviationFromText(A,v);return P?[b,P.abbreviation,P.filter]:[null,"",""]}let T=r.document.lineAt(d.line).text.substr(0,d.character);if(v==="html"){let P=T.match(/<(\w+)$/);if(P)return A=P[1],b=new D.Range(d.translate(0,-(A.length+1)),d),[b,A,""]}let y=s.extractAbbreviation(mr(r.document),d,{lookAhead:!1});if(!y)return[null,"",""];let{abbreviationRange:E,abbreviation:S,filter:k}=y;return[new D.Range(E.start.line,E.start.character,E.end.line,E.end.character),S,k]},l=r.selections.slice(0);l.sort((f,m)=>{let d=f.isReversed?f.anchor:f.active,v=m.isReversed?m.anchor:m.active;return d.compareTo(v)*-1});let u;function c(){if(u)return u;let f=D.workspace.getConfiguration("emmet").optimizeStylesheetParsing===!0;return r.selections.length===1&&oe(r.document.languageId)&&f&&r.document.lineCount>1e3?u=Ln(r.document,r.selection.isReversed?r.selection.anchor:r.selection.active):u=J(r.document,!0),u}return l.forEach(f=>{let m=f.isReversed?f.anchor:f.active,[d,v,b]=a(r.document,f,m,t);if(!d||!s.isAbbreviationValid(t,v)||oe(t)&&v.endsWith(":"))return;let A=r.document.offsetAt(m),x=ne(c(),A,!0),T=!0,y=t;if(r.document.languageId==="html")if(Yp(x,A))y="css",T=!1;else{let E=qn(r.document,x,m);E&&(x=ne(E,A,!0),y="css")}T&&!is(r.document,c(),x,y,A,d)||(i?o&&i!==v&&(o=!1):i=v,n.push({syntax:y,abbreviation:v,rangeToReplace:d,filter:b}))}),rd(r,n,o).then(f=>f?Promise.resolve(void 0):Ye())}function Ye(){return D.workspace.getConfiguration("emmet").triggerExpansionOnTab===!0?D.commands.executeCommand("tab"):Promise.resolve(!0)}function is(e,t,r,n,i,o){if(oe(n)){let x=t;if(x&&(x.comments||[]).some(E=>i>=E.start&&i<=E.end))return!1;if(!r)return!0;let T=e.getText(new D.Range(o.start.line,o.start.character,o.end.line,o.end.character));if(T.startsWith("@"))return!0;if(n!=="sass"&&n!=="stylus"&&r.type==="property"){if(r.parent&&r.parent.type!=="rule"&&r.parent.type!=="at-rule")return!1;let E=r;if(E.terminatorToken&&E.separator&&i>=E.separatorToken.end&&i<=E.terminatorToken.start&&!T.includes(":")||!E.terminatorToken&&E.separator&&i>=E.separatorToken.end&&!T.includes(":"))return rs.test(T)||T==="!";if(rs.test(T)||T==="!")return!1}if(r.type!=="rule"&&r.type!=="at-rule")return!0;let y=r;if(i>y.contentStartToken.end)return!0;if(y.parent&&(y.parent.type==="rule"||y.parent.type==="at-rule")&&y.selectorToken){let E=e.positionAt(i),S=e.positionAt(y.selectorToken.start),k=e.positionAt(y.selectorToken.end);if(E.line!==k.line&&S.character===o.start.character&&S.line===o.start.line)return!0}return!1}let s="<",a=">",l="\\",u="?",c=r,f=0;if(c){if(c.name==="script"){let T=(c.attributes||[]).filter(S=>S.name.toString()==="type")[0],y=T?T.value.toString():"";return hr.includes(y)?!0:!y||y==="application/javascript"||y==="text/javascript"?!!gr({language:"javascript"}):!1}if(!c.open||!c.close||!(c.open.end<=i&&i<=c.close.start))return!1;f=c.open.end;let x=c.firstChild;for(;x&&!(x.end>i);)f=x.end,x=x.nextSibling}let m=e.positionAt(f),d=e.getText(new D.Range(m.line,m.character,o.start.line,o.start.character));if(d.length>500&&(d=d.substr(d.length-500)),!d.trim())return!0;let v=!0,b=!1,A=d.length-1;if(d[A]===s)return!1;for(;A>=0;){let x=d[A];if(A--,!b&&/\s/.test(x)){b=!0;continue}if(x===u&&d[A]===s){A--;continue}if(/\s/.test(x)&&d[A]===s){A--;continue}if(!(x!==s&&x!==a)){if(A>=0&&d[A]===l){A--;continue}if(x===a){if(A>=0&&d[A]==="=")continue;break}if(x===s){v=!b;break}}}return v}async function rd(e,t,r){if(!t||t.length===0)return!1;let n=0;if(!r){t.sort((a,l)=>l.rangeToReplace.start.compareTo(a.rangeToReplace.start));for(let a of t){let l=ns(a);l&&(await e.insertSnippet(new D.SnippetString(l),a.rangeToReplace,{undoStopBefore:!1,undoStopAfter:!1}),n++)}return n>0}let i=t[0],o=ns(i),s=t.map(a=>a.rangeToReplace);return o?e.insertSnippet(new D.SnippetString(o),s):!1}function ns(e){let t=Xe(),r=t.getExpandOptions(e.syntax,Rt(e.syntax),e.filter);e.textToWrap&&(e.textToWrap=e.textToWrap.map(i=>i.replace(/\$\{/g,"\\${")),e.filter&&e.filter.includes("t")&&(e.textToWrap=e.textToWrap.map(i=>i.replace(A0,"").trim())),r.text=e.textToWrap,r.options&&(e.rangeToReplace.isSingleLine||(r.options["output.inlineBreak"]=1),e.indent&&(r.options["output.indent"]=e.indent),e.baseIndent&&(r.options["output.baseIndent"]=e.baseIndent)));let n;try{n=t.expandAbbreviation(e.abbreviation,r)}catch{D.window.showErrorMessage("Failed to expand abbreviation")}return n}function gr(e){let t=Nt(),r=e.language,n=e.parentMode,i=D.workspace.getConfiguration("emmet").excludeLanguages?D.workspace.getConfiguration("emmet").excludeLanguages:[];if(i.includes(r))return;let o=Te(t[r]??r,t,i);return o||(o=Te(t[n]??n,t,i)),o}var zn=class{lastCompletionType;provideCompletionItems(t,r,n,i){let o=this.provideCompletionItemsInternal(t,r,i);if(!o){this.lastCompletionType=void 0;return}return o.then(s=>{if(!s||!s.items.length)return this.lastCompletionType=void 0,s;let a=s.items[0],l=a.documentation?a.documentation.toString():"";return l.startsWith("<")?this.lastCompletionType="html":l.indexOf(":")>0&&l.endsWith(";")?this.lastCompletionType="css":this.lastCompletionType=void 0,s})}provideCompletionItemsInternal(t,r,n){let i=te.workspace.getConfiguration("emmet"),o=i.excludeLanguages?i.excludeLanguages:[];if(o.includes(t.languageId))return;let s=Nt(),a=!!s[t.languageId],l=Te(a?s[t.languageId]:t.languageId,s,o);if(!l||i.showExpandedAbbreviation==="never"||(a||l==="jsx")&&i.showExpandedAbbreviation!=="always")return;let u=l,c=u==="html"||u==="jsx"||u==="xml",f,m,d=mr(t);r=t.validatePosition(r);let v=new te.Range(r.line,0,r.line,r.character);if(t.getText(v).trimStart().startsWith("//"))return;let b=Xe();if(u==="html"){if(n.triggerKind===te.CompletionTriggerKind.TriggerForIncompleteCompletions)switch(this.lastCompletionType){case"html":c=!1;break;case"css":c=!1,u="css";break;default:break}if(c){let E=t.offsetAt(r),S=J(t,!0),k=X(t.getText(),S,E,!1);if(k)if(k.name==="script"){let P=k.attributes.find(j=>j.name.toString()==="type");if(P){let j=P.value.toString();if(j==="application/javascript"||j==="text/javascript")if(gr({language:"javascript"}))c=!1;else return;else hr.includes(j)&&(c=!1)}else return}else if(k.name==="style")u="css",c=!1;else{let P=k.attributes.find(j=>j.name.toString()==="style");P&&P.value.start<=E&&E<=P.value.end&&(u="css",c=!1)}}}let A=oe(u)?{lookAhead:!1,syntax:"stylesheet"}:{lookAhead:!0,syntax:"markup"},x=b.extractAbbreviation(d,r,A);if(!x||!b.isAbbreviationValid(u,x.abbreviation))return;let T=t.offsetAt(r);if(oe(t.languageId)&&n.triggerKind!==te.CompletionTriggerKind.TriggerForIncompleteCompletions){if(c=!0,f=te.workspace.getConfiguration("emmet").optimizeStylesheetParsing===!0&&t.lineCount>1e3?Ln(t,r):J(t,!0),!f)return;m=ne(f,T,!0)}if(!oe(t.languageId)&&oe(u)&&n.triggerKind!==te.CompletionTriggerKind.TriggerForIncompleteCompletions){if(c=!0,f=J(t,!0),!f)return;let E=ne(f,T,!0),S=qn(t,E,r);m=ne(S,T,!0)}if(c&&!is(t,f,m,u,T,S0(x.abbreviationRange)))return;let y=Promise.resolve(!1);if(!oe(u)&&(t.languageId==="javascript"||t.languageId==="javascriptreact"||t.languageId==="typescript"||t.languageId==="typescriptreact")){let E=x.abbreviation;E.startsWith("this.")||/\[[^\]=]*\]/.test(E)?y=Promise.resolve(!0):y=te.commands.executeCommand("vscode.executeDocumentSymbolProvider",t.uri).then(S=>!!S&&S.some(k=>E===k.name||E.startsWith(k.name+".")&&!/>|\*|\+/.test(E)))}return y.then(E=>{if(E)return;let S=Rt(u),k=b.doComplete(mr(t),r,u,S),P=[];return k&&k.items&&k.items.forEach(j=>{let $=new te.CompletionItem(j.label);$.documentation=j.documentation,$.detail=j.detail,$.insertText=new te.SnippetString(j.textEdit.newText);let F=j.textEdit.range;$.range=new te.Range(F.start.line,F.start.character,F.end.line,F.end.character),$.filterText=j.filterText,$.sortText=j.sortText,i.showSuggestionsAsSnippets===!0&&($.kind=te.CompletionItemKind.Snippet),P.push($)}),new te.CompletionList(P,!0)})}};function S0(e){return new te.Range(e.start.line,e.start.character,e.end.line,e.end.character)}p();var je=le(require("vscode"));function id(){if(!ee(!1)||!je.window.activeTextEditor)return;let e=je.window.activeTextEditor,t=e.document,r=J(t,!0);if(!r)return;let n=Array.from(e.selections).reverse().reduce((i,o)=>i.concat(E0(e.document,r,o)),[]);return e.edit(i=>{n.forEach(o=>{i.delete(o)})})}function E0(e,t,r){let n=e.offsetAt(r.start),i=X(e.getText(),t,n,!0);if(!i)return[];let o;i.open&&(o=ae(e,i.open.start,i.open.end));let s;if(i.close&&(s=ae(e,i.close.start,i.close.end)),o&&s){let l=new je.Range(o.end.line,o.end.character,s.start.line,s.start.character),u=new je.Range(o.start.line,o.start.character,s.end.line,s.end.character);if(e.getText(l).trim()===""&&i.name!=="pre")return[u]}let a=[];if(o&&(a.push(o),s)){let l=T0(e,o,s),u,c;for(let f=o.start.line+1;f<s.start.line;f++)e.lineAt(f).isEmptyOrWhitespace||(a.push(new je.Range(f,0,f,l)),u===void 0&&(u=f),c=f);nd(e,s)&&c?a.push(new je.Range(c,e.lineAt(c).range.end.character,s.end.line,s.end.character)):a.push(s),nd(e,o)&&u&&(a[1]=new je.Range(o.start.line,o.start.character,u,e.lineAt(u).firstNonWhitespaceCharacterIndex),a.shift())}return a}function nd(e,t){if(t.start.line===t.end.line){let r=e.lineAt(t.start).text,n=e.getText(t);if(r.trim()===n)return!0}return!1}function T0(e,t,r){let n=t.start.line,i=r.start.line,o=e.lineAt(n).firstNonWhitespaceCharacterIndex,s=e.lineAt(i).firstNonWhitespaceCharacterIndex,a;for(let u=n+1;u<i;u++){let c=e.lineAt(u);if(!c.isEmptyOrWhitespace){let f=c.firstNonWhitespaceCharacterIndex;a=a?Math.min(a,f):f}}let l=0;return a&&(a<o||a<s?l=0:l=Math.min(a-o,a-s)),l}p();var Ke=le(require("vscode"));async function os(e){if(!ee(!1)||!Ke.window.activeTextEditor)return;let t=Ke.window.activeTextEditor,r=t.document,n=J(r,!0);if(!n)return;let i=t.selections.reduceRight((a,l)=>a.concat(O0(r,l,n)),[]);if(!i.length)return;let o=i[0].name,s=i.every(a=>a.name===o);return e===void 0&&(e=await Ke.window.showInputBox({prompt:"Enter Tag",value:s?o:void 0}),!e)?!1:t.edit(a=>{i.forEach(l=>{a.replace(l.range,e)})})}function C0(e,t){let r=[];if(e.open){let n=t.positionAt(e.open.start);r.push({name:e.name,range:new Ke.Range(n.translate(0,1),n.translate(0,1).translate(0,e.name.length))})}if(e.close){let n=t.positionAt(e.close.start),i=t.positionAt(e.close.end);r.push({name:e.name,range:new Ke.Range(n.translate(0,2),i.translate(0,-1))})}return r}function O0(e,t,r){let n=e.getText(),i=e.offsetAt(t.start),o=X(n,r,i,!0);return o?C0(o,e):[]}p();var ss=le(require("vscode"));function od(){if(!ee(!1)||!ss.window.activeTextEditor)return;let e=ss.window.activeTextEditor,t=e.document,r=J(t,!0);if(!r)return;let n=[];e.selections.forEach(i=>{let o=P0(t,r,i.start);o&&n.push(o)}),n.length&&(e.selections=n,e.revealRange(e.selections[n.length-1]))}function P0(e,t,r){let n=e.offsetAt(r),i=X(e.getText(),t,n,!0);if(!i||!i.open||!i.close||n>i.open.end&&n<i.close.start)return;let o=n<=i.open.end?i.close.start+2:i.start+1;return Q(e,o,o)}p();var as=le(require("vscode"));var Un=[],sd=[];function ld(){cd(!0)}function ud(){cd(!1)}function cd(e){if(!ee(!1)||!as.window.activeTextEditor)return;let t=as.window.activeTextEditor,r=t.document,n=J(r,!0);if(!n)return;let i=e?N0:$0,o=t.selections.map(s=>i(r,n,s));ad(sd,t.selections)?e?ad(t.selections,o)||Un.push(t.selections):Un.length&&(o=Un.pop()):Un=e?[t.selections]:[],t.selections=o,sd=t.selections}function N0(e,t,r){let n=e.offsetAt(r.start),i=X(e.getText(),t,n,!1);if(!i)return r;if(!i.open||!i.close)return Q(e,i.start,i.end);let o,s;return i.close.start<=n&&i.close.end>n?(o=Q(e,i.close.start,i.open.end),s=Q(e,i.close.end,i.open.start)):(o=Q(e,i.open.end,i.close.start),s=Q(e,i.open.start,i.close.end)),o.contains(r)&&!o.isEqual(r)?o:s.contains(r)&&!s.isEqual(r)?s:r}function $0(e,t,r){let n=e.offsetAt(r.start),i=X(e.getText(),t,n,!0);if(!i)return r;let o=e.offsetAt(r.start),s=e.offsetAt(r.end);if(i.open&&i.close){let l=o===i.start&&s===i.end,u=o>i.open.start&&o<i.open.end,c=o>i.close.start&&o<i.close.end;if(l||u||c)return Q(e,i.open.end,i.close.start)}if(!i.firstChild)return r;let a=i.firstChild;return o===a.start&&s===a.end&&a.open&&a.close?Q(e,a.open.end,a.close.start):Q(e,a.start,a.end)}function ad(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].isEqual(t[r]))return!1;return!0}p();var br=le(require("vscode"));function fd(){if(!ee(!1)||!br.window.activeTextEditor)return;let e=br.window.activeTextEditor,t=e.document,r=J(e.document,!0);if(r)return e.edit(n=>{Array.from(e.selections).reverse().forEach(i=>{let o=t.getText(),s=t.offsetAt(i.start),a=X(o,r,s,!0);if(a){let l=R0(t,a);n.replace(l.range,l.newText)}})})}function R0(e,t){let r,n;if(!t.open||!t.close){let o=e.getText().substring(t.start,t.end).match(/(\s*\/)?>$/),s=t.end,a=o?s-o[0].length:s;r=ae(e,a,s),n=`></${t.name}>`}else{let i=t.open.end-1,o=t.end;r=ae(e,i,o),n="/>";let s=Te(e.languageId,{},[])??"",a=Rt(s);s&&a.syntaxProfiles[s]&&(a.syntaxProfiles[s].selfClosingStyle==="xhtml"||a.syntaxProfiles[s].self_closing_tag==="xhtml")&&(n=" "+n)}return new br.TextEdit(r,n)}p();var yr=le(require("vscode"));function pd(){if(!ee(!1)||!yr.window.activeTextEditor)return;let e=yr.window.activeTextEditor,t=J(e.document,!0);if(t)return e.edit(r=>{Array.from(e.selections).reverse().forEach(n=>{let i=j0(e.document,n,t);i&&r.replace(i.range,i.newText)})})}function j0(e,t,r){let n,i,o=e.offsetAt(t.start),s=e.offsetAt(t.end);if(t.isEmpty?n=i=ne(r,o,!0):(n=ne(r,o,!0),i=ne(r,s,!0)),!n||!i)return;let a=e.positionAt(n.start),l=a.line,u=a.character,f=e.positionAt(i.end).line;if(l===f)return;let m=ae(e,n.start,i.end),d=e.lineAt(l).text.substr(u);for(let v=l+1;v<=f;v++)d+=e.lineAt(v).text.trim();return new yr.TextEdit(m,d)}p();var ie=le(require("vscode"));var Mn,Wn,Vn,Hn;function dd(){if(!ee()||!ie.window.activeTextEditor)return;F0();let e=ie.window.activeTextEditor,t=J(e.document,!0);if(t)return e.edit(r=>{let n=[];Array.from(e.selections).reverse().forEach(o=>{let s=oe(e.document.languageId)?md(e.document,o,t):I0(e.document,o,t);s.length>0&&n.push(s)}),n.sort((o,s)=>{let a=o[0].range.start.line-s[0].range.start.line;return a===0?o[0].range.start.character-s[0].range.start.character:a});let i=new ie.Position(0,0);for(let o of n)o[0].range.end.isAfterOrEqual(i)&&o.forEach(s=>{r.replace(s.range,s.newText),i=s.range.end})})}function I0(e,t,r){let n=t.isReversed?t.active:t.anchor,i=t.isReversed?t.anchor:t.active,o=e.offsetAt(n),s=e.offsetAt(i),a=e.getText(),l=X(a,r,o,!0),u=X(a,r,s,!0);if(!l||!u)return[];if(In(l,u)&&l.name==="style"&&l.open&&l.close&&l.open.end<o&&l.close.start>s){let m=" ".repeat(l.open.end)+a.substring(l.open.end,l.close.start),d=_e(m);return md(e,t,d)}let c=Jp(l,u),f=[];return c.forEach(m=>{f=f.concat(hd(m,e))}),l.type==="comment"||(f.push(new ie.TextEdit(ae(e,c[0].start,c[0].start),Vn)),f.push(new ie.TextEdit(ae(e,c[c.length-1].end,c[c.length-1].end),Hn))),f}function hd(e,t){let r=[];return e.type==="comment"?(r.push(new ie.TextEdit(ae(t,e.start,e.start+Vn.length),"")),r.push(new ie.TextEdit(ae(t,e.end-Hn.length,e.end),"")),r):(e.children.forEach(n=>{r=r.concat(hd(n,t))}),r)}function md(e,t,r){let n=t.isReversed?t.active:t.anchor,i=t.isReversed?t.anchor:t.active,o=e.offsetAt(n),s=e.offsetAt(i),a=ne(r,o,!0),l=ne(r,s,!0);t.isEmpty?a&&(o=a.start,s=a.end,t=Q(e,o,s)):(o=L0(a,o,r),s=_0(l,s,r),t=Q(e,o,s));let u=[],c=[];return r.comments.forEach(f=>{let m=ae(e,f.start,f.end);t.intersection(m)&&(u.push(m),c.push(new ie.TextEdit(ae(e,f.start,f.start+Mn.length),"")),c.push(new ie.TextEdit(ae(e,f.end-Wn.length,f.end),"")))}),c.length>0?c:[new ie.TextEdit(new ie.Range(t.start,t.start),Mn),new ie.TextEdit(new ie.Range(t.end,t.end),Wn)]}function F0(){ie.workspace.getConfiguration("editor.comments").get("insertSpace")?(Mn="/* ",Wn=" */",Vn="<!-- ",Hn=" -->"):(Mn="/*",Wn="*/",Vn="<!--",Hn="-->")}function L0(e,t,r){for(let o of r.comments)if(o.start<=t&&t<=o.end)return t;if(!e)return t;if(e.type==="property")return e.start;let n=e;if(t<n.contentStartToken.end||!n.firstChild)return n.start;if(t<n.firstChild.start)return t;let i=n.firstChild;for(;i.nextSibling&&t>i.end;)i=i.nextSibling;return i.start}function _0(e,t,r){for(let o of r.comments)if(o.start<=t&&t<=o.end)return t;if(!e)return t;if(e.type==="property")return e.end;let n=e;if(t===n.contentEndToken.end||!n.firstChild)return n.end;if(t>n.children[n.children.length-1].end)return t;let i=n.children[n.children.length-1];for(;i.previousSibling&&t<i.start;)i=i.previousSibling;return i.end}p();var jt=le(require("vscode"));function ls(e){if(!ee()||!jt.window.activeTextEditor)return;let t=jt.window.activeTextEditor,r=[];t.selections.forEach(n=>{let i=e==="next"?D0(n,t):q0(n,t);r.push(i)}),t.selections=r,t.revealRange(t.selections[t.selections.length-1])}function D0(e,t){for(let r=e.anchor.line;r<t.document.lineCount;r++){let n=gd(r,t,e.anchor,"next");if(n)return n}return e}function q0(e,t){for(let r=e.anchor.line;r>=0;r--){let n=gd(r,t,e.anchor,"prev");if(n)return n}return e}function gd(e,t,r,n){let i=t.document.lineAt(e),o=i.text;if(e!==r.line&&i.isEmptyOrWhitespace&&o.length)return new jt.Selection(e,o.length,e,o.length);e===r.line&&n==="prev"&&(o=o.substr(0,r.character));let s=n==="next"?o.indexOf('""',e===r.line?r.character:0):o.lastIndexOf('""'),a=n==="next"?o.indexOf("><",e===r.line?r.character:0):o.lastIndexOf("><"),l=-1;if(s>-1&&a>-1?l=n==="next"?Math.min(s,a):Math.max(s,a):s>-1?l=s:l=a,l>-1)return new jt.Selection(e,l+1,e,l+1)}p();var cs=le(require("vscode"));p();function bd(e,t,r,n){let i=e.offsetAt(r),o=X(e.getText(),n,i,!1),s;if(o){if(o.type!=="comment"){if(o.open&&i<=o.open.start+o.name.length)return us(e,o);if(o.open&&i<o.open.end){let a=e.offsetAt(t),l=B0(e,a,i,o);if(l)return l}for(s=o.firstChild;s&&(i>=s.end||s.type==="comment");)s=s.nextSibling}for(;!s&&o;)o.nextSibling?o.nextSibling.type!=="comment"?s=o.nextSibling:o=o.nextSibling:o=o.parent;return s&&us(e,s)}}function yd(e,t,r,n){let i=e.offsetAt(t),o=X(e.getText(),n,i,!1),s;if(!o)return;let a=e.offsetAt(r);if(o.open&&o.type!=="comment"&&i-1>o.open.start)if(i<o.open.end||!o.firstChild||a<=o.firstChild.start)s=o;else{s=o.firstChild;let u;for(;s.nextSibling&&i>=s.nextSibling.end;)s&&s.type!=="comment"&&(u=s),s=s.nextSibling;s=$t(s&&s.type!=="comment"?s:u)}for(;!s&&o;)o.previousSibling?o.previousSibling.type!=="comment"?s=$t(o.previousSibling):o=o.previousSibling:s=o.parent;if(!s)return;let l=z0(e,i,a,s);return l||us(e,s)}function us(e,t){if(t&&t.open){let r=t.open.start+1,n=r+t.name.length;return Q(e,r,n)}}function B0(e,t,r,n){if(!(!n.attributes||n.attributes.length===0||n.type==="comment"))for(let i of n.attributes){if(r<i.start)return Q(e,i.start,i.end);if(!i.value||i.value.start===i.value.end)continue;if(t===i.start&&r===i.end||r<i.value.start)return Q(e,i.value.start,i.value.end);if(!i.value.toString().includes(" "))continue;let o;if(t===i.value.start&&r===i.value.end&&(o=-1),o===void 0&&r<i.end){let s=e.positionAt(r).character,a=e.positionAt(i.value.start).character;o=s-a-1}if(o!==void 0){let[s,a]=_n(i.value.toString(),o);if(s===void 0||a===void 0)return;if(s>=0&&a>=0){let l=i.value.start+s,u=i.value.start+a;return Q(e,l,u)}}}}function z0(e,t,r,n){if(!(!n.attributes||n.attributes.length===0||n.type==="comment"))for(let i=n.attributes.length-1;i>=0;i--){let o=n.attributes[i];if(t<=o.start)continue;if(!o.value||o.value.start===o.value.end||t<o.value.start)return Q(e,o.start,o.end);if(t===o.value.start)return r>=o.value.end?Q(e,o.start,o.end):Q(e,o.value.start,o.value.end);let s=e.positionAt(t).character,a=e.positionAt(o.value.start).character,l=t>o.value.end?o.value.toString().length:s-a,[u,c]=Dn(o.value.toString(),l);if(u===void 0||c===void 0)return;if(u>=0&&c>=0){let f=o.value.start+u,m=o.value.start+c;return Q(e,f,m)}}}p();var vd=le(require("vscode"));function xd(e,t,r,n){let i=e.offsetAt(t),o=e.offsetAt(r),s=ne(n,o,!0);if(s||(s=n),!s)return;if(s.type==="property"&&i===s.start&&o===s.end)return Qn(e,s,i,o,!0,"next");if(s.type==="property"&&i>=s.valueToken.start&&o<=s.valueToken.end){let l=Qn(e,s,i,o,!1,"next");if(l)return l}if(s.type==="rule"&&o<s.selectorToken.end||s.type==="property"&&o<s.valueToken.end)return Gn(e,s);let a=s.firstChild;for(;a&&o>=a.end;)a=a.nextSibling;for(;!a&&s;)a=s.nextSibling,s=s.parent;return a?Gn(e,a):void 0}function wd(e,t,r,n){let i=e.offsetAt(t),o=e.offsetAt(r),s=ne(n,i,!1);if(s||(s=n),!s)return;if(s.type==="property"&&i===s.valueToken.start&&o===s.valueToken.end)return Gn(e,s);if(s.type==="property"&&i>=s.valueToken.start&&o<=s.valueToken.end){let l=Qn(e,s,i,o,!1,"prev");if(l)return l}if(s.type==="property"||!s.firstChild||s.type==="rule"&&i<=s.firstChild.start)return Gn(e,s);let a=s.firstChild;for(;a.nextSibling&&i>=a.nextSibling.end;)a=a.nextSibling;return a=$t(a),Qn(e,a,i,o,!1,"prev")}function Gn(e,t){if(!t)return;let r=t.type==="rule"?t.selectorToken:t;return Q(e,r.start,r.end)}function Qn(e,t,r,n,i,o){if(!t||t.type!=="property")return;let s=t,a=s.valueToken.stream.substring(s.valueToken.start,s.valueToken.end);if(i=i||o==="prev"&&r===s.valueToken.start&&n<s.valueToken.end,i)return Q(e,s.valueToken.start,s.valueToken.end);let l=-1;if(o==="prev"){if(r===s.valueToken.start)return;let v=e.positionAt(r).character,b=e.positionAt(s.valueToken.start).character;l=r>s.valueToken.end?a.length:v-b}else if(o==="next"){if(n===s.valueToken.end&&(r>s.valueToken.start||!a.includes(" ")))return;let v=e.positionAt(n).character,b=e.positionAt(s.valueToken.start).character;l=n===s.valueToken.end?-1:v-b-1}let[u,c]=o==="prev"?Dn(a,l):_n(a,l);if(!u&&!c)return;let f=e.positionAt(s.valueToken.start),m=f.translate(0,u),d=f.translate(0,c);return new vd.Selection(m,d)}function fs(e){if(!ee()||!cs.window.activeTextEditor)return;let t=cs.window.activeTextEditor,r=t.document,n=J(r,!0);if(!n)return;let i=[];t.selections.forEach(o=>{let s=o.isReversed?o.active:o.anchor,a=o.isReversed?o.anchor:o.active,l;oe(t.document.languageId)?l=e==="next"?xd(r,s,a,n):wd(r,s,a,n):l=e==="next"?bd(r,s,a,n):yd(r,s,a,n),i.push(l||o)}),t.selections=i,t.revealRange(t.selections[t.selections.length-1])}p();var de=le(require("vscode"));p();p();function It(e){return e>47&&e<58}function ds(e){return e===32||e===9||e===160}function Zn(e){return ds(e)||e===10||e===13}var Jn=class e{constructor(t,r,n){n==null&&typeof t=="string"&&(n=t.length),this.string=t,this.pos=this.start=r||0,this.end=n||0}eof(){return this.pos>=this.end}limit(t,r){return new e(this.string,t,r)}peek(){return this.string.charCodeAt(this.pos)}next(){if(this.pos<this.string.length)return this.string.charCodeAt(this.pos++)}eat(t){let r=this.peek(),n=typeof t=="function"?t(r):r===t;return n&&this.next(),n}eatWhile(t){let r=this.pos;for(;!this.eof()&&this.eat(t););return this.pos!==r}backUp(t){this.pos-=t||1}current(){return this.substring(this.start,this.pos)}substring(t,r){return this.string.slice(t,r)}error(t,r=this.pos){return new ps(`${t} at ${r+1}`,r,this.string)}},ps=class extends Error{constructor(t,r,n){super(t),this.pos=r,this.string=n}};var U0=Xn("null",0);function M0(e){let t=typeof e=="string"?new Jn(e):e,r,n=0,i=21,o=[];for(;!t.eof();)t.eatWhile(ds),t.start=t.pos,W0(t)?((i&1)===0&&et("Unexpected number",t),o.push(H0(t.current())),i=10):Sd(t.peek())?(r=t.next(),kd(r)&&i&16?(Ad(r)&&o.push(G0(r,n)),i=21):((i&2)===0&&et("Unexpected operator",t),o.push(Q0(r,n)),i=21)):t.eat(40)?((i&4)===0&&et('Unexpected "("',t),n+=10,i=53):t.eat(41)?(n-=10,i&32?o.push(U0):(i&8)===0&&et('Unexpected ")"',t),i=14):et("Unknown character",t);(n<0||n>=10)&&et('Unmatched "()"',t);let s=V0(o);return s===null&&et("Parity",t),s}function W0(e){let t=e.pos;return e.eat(46)&&e.eatWhile(It)||e.eatWhile(It)&&(!e.eat(46)||e.eatWhile(It))?!0:(e.pos=t,!1)}function V0(e){let t=[],r=[],n=0;for(let i=0;i<e.length;i++){let o=e[i];if(o.type==="num")r.push(o);else{for(n+=o.type==="op1"?1:2;t.length&&o.priority<=t[t.length-1].priority;)r.push(t.pop());t.push(o)}}return n+1===r.length+t.length?r.concat(t.reverse()):null}function H0(e,t){return Xn("num",parseFloat(e),t)}function G0(e,t=0){return e===45&&(t+=2),Xn("op1",e,t)}function Q0(e,t=0){return e===42?t+=1:(e===47||e===92)&&(t+=2),Xn("op2",e,t)}function et(e,t){throw t&&(e+=` at column ${t.pos} of expression`),new Error(e)}function kd(e){return J0(e)||Ad(e)}function J0(e){return e===43}function Ad(e){return e===45}function Sd(e){return e===43||e===45||e===42||e===47||e===92}function Xn(e,t,r=0){return{type:e,value:t,priority:r}}var Z0={lookAhead:!0,whitespace:!0};function Ed(e,t=e.length,r){let n=Object.assign(Object.assign({},Z0),r),i={text:e,pos:t},o;if(n.lookAhead&&hs(i)===41){i.pos++;let l=e.length;for(;i.pos<l&&(o=hs(i),!(o!==41&&!(n.whitespace&&Zn(o))));)i.pos++}let s=i.pos,a=0;for(;i.pos>=0;)if(!X0(i)){if(o=ms(i),o===41)a++;else if(o===40){if(!a)break;a--}else if(!(n.whitespace&&Zn(o)||kd(o)||Sd(o)))break;i.pos--}if(i.pos!==s&&!a){for(;Zn(hs(i));)i.pos++;return[i.pos,s]}return null}function X0(e){if(It(ms(e))){e.pos--;let t=!1,r;for(;e.pos>=0;){if(r=ms(e),r===46){if(t)break;t=!0}else if(!It(r))break;e.pos--}return!0}return!1}function ms(e){return e.text.charCodeAt(e.pos-1)}function hs(e){return e.text.charCodeAt(e.pos)}var Y0={45:e=>-e},K0={43:(e,t)=>e+t,45:(e,t)=>e-t,42:(e,t)=>e*t,47:(e,t)=>e/t,92:(e,t)=>Math.floor(e/t)};function e1(e){if(Array.isArray(e)||(e=M0(e)),!e||!e.length)return null;let t=[],r,n,i;for(let o=0,s=e.length;o<s;o++){let a=e[o];if(a.type==="num")t.push(a.value);else if(a.type==="op2")n=t.pop(),r=t.pop(),i=K0[a.value],t.push(i(r,n));else if(a.type==="op1")r=t.pop(),i=Y0[a.value],t.push(i(r));else throw new Error("Invalid expression")}if(t.length>1)throw new Error("Invalid Expression (parity)");return t[0]}var gs=e1;function Td(){if(!de.window.activeTextEditor)return de.window.showInformationMessage("No editor is active"),Promise.resolve(!1);let e=de.window.activeTextEditor;return e.edit(t=>{e.selections.forEach(r=>{let n=r.isReversed?r.active:r.anchor,i=r.isReversed?r.anchor:r.active,o=e.document.getText(new de.Range(n,i));try{if(o){let s=String(gs(o));t.replace(new de.Range(n,i),s)}else{let s=e.document.getText(new de.Range(new de.Position(r.end.line,0),i)),a=Ed(s);if(!a)throw new Error("Invalid extracted indices");let l=String(gs(s.substr(a[0],a[1]))),u=new de.Range(new de.Position(r.end.line,a[0]),new de.Position(r.end.line,a[1]));t.replace(u,l)}}catch(s){de.window.showErrorMessage("Could not evaluate expression"),console.warn("Math evaluation error",s)}})})}p();var Ft=le(require("vscode")),bs=/[0-9]/;function tt(e){if(!Ft.window.activeTextEditor){Ft.window.showInformationMessage("No editor is active");return}let t=Ft.window.activeTextEditor;return t.edit(r=>{t.selections.forEach(n=>{let i=r1(t.document,n.isReversed?n.anchor:n.active);if(!i)return;let o=t.document.getText(i);Cd(o)&&r.replace(i,t1(o,e))})})}function t1(e,t){let r,n=(r=e.match(/\.(\d+)$/))?r[1].length:1,i=String((parseFloat(e)+t).toFixed(n)).replace(/\.0+$/,"");return(r=e.match(/^\-?(0\d+)/))&&(i=i.replace(/^(\-?)(\d+)/,(o,s,a)=>s+"0".repeat(Math.max(0,(r?r[1].length:0)-a.length))+a)),/^\-?\./.test(e)&&(i=i.replace(/^(\-?)0+/,"$1")),i}function r1(e,t){let r=e.lineAt(t.line).text,n=t.character,i=t.character,o=!1,s=!1,a;for(;n>0;)if(a=r[--n],a==="-"){s=!0;break}else if(a==="."&&!o)o=!0;else if(!bs.test(a)){n++;break}for(r[i]==="-"&&!s&&i++;i<r.length;)if(a=r[i++],a==="."&&!o&&bs.test(r[i]))o=!0;else if(!bs.test(a)){i--;break}if(n!==i&&Cd(r.slice(n,i)))return new Ft.Range(t.line,n,t.line,i)}function Cd(e){return e?!isNaN(parseFloat(e)):!1}p();var ys=require("vscode");var Od=["-webkit-","-moz-","-ms-","-o-",""];function Pd(){let e=ys.window.activeTextEditor;if(!e){ys.window.showInformationMessage("No editor is active.");return}let t=Xp(e,e.selection.active);if(t)return n1(e,t)}function n1(e,t){let r=t.parent,n="";for(let s of Od)if(t.name.startsWith(s)){n=s;break}let i=t.name.substr(n.length),o=t.value;return e.edit(s=>{Od.forEach(a=>{if(a===n)return;let l=Zp(r,a+i);if(l){let u=ae(e.document,l.valueToken.start,l.valueToken.end);s.replace(u,o)}})})}function $d(e){Qp(),Nd(e),Fn(),e.subscriptions.push(z.commands.registerCommand("editor.emmet.action.wrapWithAbbreviation",t=>{ed(t)})),e.subscriptions.push(z.commands.registerCommand("emmet.expandAbbreviation",t=>{td(t)})),e.subscriptions.push(z.commands.registerCommand("editor.emmet.action.removeTag",()=>id())),e.subscriptions.push(z.commands.registerCommand("editor.emmet.action.updateTag",t=>t&&typeof t=="string"?os(t):os(void 0))),e.subscriptions.push(z.commands.registerCommand("editor.emmet.action.matchTag",()=>{od()})),e.subscriptions.push(z.commands.registerCommand("editor.emmet.action.balanceOut",()=>{ld()})),e.subscriptions.push(z.commands.registerCommand("editor.emmet.action.balanceIn",()=>{ud()})),e.subscriptions.push(z.commands.registerCommand("editor.emmet.action.splitJoinTag",()=>fd())),e.subscriptions.push(z.commands.registerCommand("editor.emmet.action.mergeLines",()=>{pd()})),e.subscriptions.push(z.commands.registerCommand("editor.emmet.action.toggleComment",()=>{dd()})),e.subscriptions.push(z.commands.registerCommand("editor.emmet.action.nextEditPoint",()=>{ls("next")})),e.subscriptions.push(z.commands.registerCommand("editor.emmet.action.prevEditPoint",()=>{ls("prev")})),e.subscriptions.push(z.commands.registerCommand("editor.emmet.action.selectNextItem",()=>{fs("next")})),e.subscriptions.push(z.commands.registerCommand("editor.emmet.action.selectPrevItem",()=>{fs("prev")})),e.subscriptions.push(z.commands.registerCommand("editor.emmet.action.evaluateMathExpression",()=>{Td()})),e.subscriptions.push(z.commands.registerCommand("editor.emmet.action.incrementNumberByOneTenth",()=>tt(.1))),e.subscriptions.push(z.commands.registerCommand("editor.emmet.action.incrementNumberByOne",()=>tt(1))),e.subscriptions.push(z.commands.registerCommand("editor.emmet.action.incrementNumberByTen",()=>tt(10))),e.subscriptions.push(z.commands.registerCommand("editor.emmet.action.decrementNumberByOneTenth",()=>tt(-.1))),e.subscriptions.push(z.commands.registerCommand("editor.emmet.action.decrementNumberByOne",()=>tt(-1))),e.subscriptions.push(z.commands.registerCommand("editor.emmet.action.decrementNumberByTen",()=>tt(-10))),e.subscriptions.push(z.commands.registerCommand("editor.emmet.action.reflectCSSValue",()=>Pd())),e.subscriptions.push(z.commands.registerCommand("workbench.action.showEmmetCommands",()=>{z.commands.executeCommand("workbench.action.quickOpen",">Emmet: ")})),e.subscriptions.push(z.workspace.onDidChangeConfiguration(t=>{(t.affectsConfiguration("emmet.includeLanguages")||t.affectsConfiguration("emmet.useInlineCompletions"))&&Nd(e),t.affectsConfiguration("emmet.extensionsPath")&&Fn()})),e.subscriptions.push(z.workspace.onDidSaveTextDocument(t=>{let r=Kp(t.fileName);r.startsWith("snippets")&&r.endsWith(".json")&&Fn(!0)})),e.subscriptions.push(z.workspace.onDidOpenTextDocument(t=>{let r=Te(t.languageId,{},[])??"",n=Bn();(n.markup.includes(r)||n.stylesheet.includes(r))&&pa(t)})),e.subscriptions.push(z.workspace.onDidCloseTextDocument(t=>{let r=Te(t.languageId,{},[])??"",n=Bn();(n.markup.includes(r)||n.stylesheet.includes(r))&&da(t)}))}var Lt=new Map,vr=[];function Nd(e){i1();let t=new zn,r={async provideInlineCompletionItems(o,s,a,l){let u=await t.provideCompletionItems(o,s,l,{triggerCharacter:void 0,triggerKind:z.CompletionTriggerKind.Invoke});if(!u)return;let c=u.items[0];if(!c||!c.insertText)return;let f=c.range;if(o.getText(f)===c.label)return[{insertText:c.insertText,filterText:c.label,range:f}]}},n=z.workspace.getConfiguration("emmet").get("useInlineCompletions"),i=Nt();Object.keys(i).forEach(o=>{if(Lt.has(o)&&Lt.get(o)===i[o])return;if(n){let a=z.languages.registerInlineCompletionItemProvider({language:o,scheme:"*"},r);vr.push(a)}let s=z.languages.registerCompletionItemProvider({language:o,scheme:"*"},t,...dr[i[o]]);vr.push(s),Lt.set(o,i[o])}),Object.keys(dr).forEach(o=>{if(!Lt.has(o)){if(n){let a=z.languages.registerInlineCompletionItemProvider({language:o,scheme:"*"},r);vr.push(a)}let s=z.languages.registerCompletionItemProvider({language:o,scheme:"*"},t,...dr[o]);vr.push(s),Lt.set(o,o)}})}function i1(){Lt.clear();let e;for(;e=vr.pop();)e.dispose()}function o1(e){$d(e)}
33
+ //# sourceMappingURL=emmetBrowserMain.js.map