@vtj/pro 0.8.8 → 0.8.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@vtj/materials/assets/antdv/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/charts/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/element/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/ui/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/charts/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/icons/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/ui/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +32 -32
- package/dist/@vtj/materials/deps/vue/vue.global.prod.js +4 -4
- package/dist/assets/{@element-plus-hb5PCPZy.js → @element-plus-D6n2RTX_.js} +1 -1
- package/dist/assets/@floating-ui-CYeB_Mhp.js +1 -0
- package/dist/assets/@vue-pheekl12.js +25 -0
- package/dist/assets/@vueuse-4_NYtZCP.js +1 -0
- package/dist/assets/{Editor-BKlikwSl-4GZCoIzC.js → Editor-BKlikwSl-SVzFnpo8.js} +2 -2
- package/dist/assets/{css.worker-CKheHE4x.js → css.worker-CilUBJBN.js} +12 -12
- package/dist/assets/{editor.worker-DvDP0gnj.js → editor.worker-BJZ5cnST.js} +1 -1
- package/dist/assets/{element-plus-Yl9-B9am.js → element-plus-DdvN1jqD.js} +4 -4
- package/dist/assets/{html.worker-BZndpN3i.js → html.worker-CNHktepm.js} +10 -10
- package/dist/assets/index-D9EpXQVL.css +1 -0
- package/dist/assets/{index-C4mYQDHS.js → index-DBWV64ks.js} +2 -2
- package/dist/assets/index-DEA9g1Ih.js +1 -0
- package/dist/assets/index-TXS29-Ip.js +199 -0
- package/dist/assets/{json.worker-CBN7s-rZ.js → json.worker-CV0MTB3L.js} +2 -2
- package/dist/assets/lodash-es-D0J8aJCM.js +1 -0
- package/dist/assets/{monaco-editor-D2tIhfZq.js → monaco-editor-C8KYOXSh.js} +260 -260
- package/dist/assets/preview-aLWd6TgM.js +2 -0
- package/dist/assets/{ts.worker-E_ED-foG.js → ts.worker-mZI20X7J.js} +66 -66
- package/dist/assets/{vue-CYXSepfi.js → vue-CjubWy22.js} +3 -3
- package/dist/assets/{vue-router-Cl6Ao8EQ.js → vue-router-D533GGmG.js} +1 -1
- package/dist/extension/index.umd.js +1 -0
- package/dist/extension/style.css +1 -0
- package/dist/index.html +9 -9
- package/package.json +10 -10
- package/src/extension.ts +46 -0
- package/src/index.ts +1 -0
- package/dist/assets/@floating-ui-o_LpjUj1.js +0 -1
- package/dist/assets/@vue-D7cHi7PH.js +0 -25
- package/dist/assets/@vueuse-cyfiBh8g.js +0 -1
- package/dist/assets/index-Bi40hQZn.js +0 -199
- package/dist/assets/index-DKg2x8_E.js +0 -1
- package/dist/assets/index-DWzxOdcl.css +0 -1
- package/dist/assets/lodash-es-DKmLY3Gz.js +0 -1
- package/dist/assets/preview-pbOn43-7.js +0 -2
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
`+e.stack):new Error(e.message+`
|
|
4
4
|
|
|
5
|
-
`+e.stack):e},0)}}emit(e){this.listeners.forEach(n=>{n(e)})}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}}const uc=new dc;function ls(t){pc(t)||uc.onUnexpectedError(t)}function cs(t){if(t instanceof Error){const{name:e,message:n}=t,r=t.stacktrace||t.stack;return{$isError:!0,name:e,message:n,stack:r,noTelemetry:Nt.isErrorNoTelemetry(t)}}return t}const kr="Canceled";function pc(t){return t instanceof fc?!0:t instanceof Error&&t.name===kr&&t.message===kr}class fc extends Error{constructor(){super(kr),this.name=this.message}}class Nt extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof Nt)return e;const n=new Nt;return n.message=e.message,n.stack=e.stack,n}static isErrorNoTelemetry(e){return e.name==="CodeExpectedError"}}class tt extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,tt.prototype)}}function mc(t,e){const n=this;let r=!1,i;return function(){if(r)return i;if(r=!0,e)try{i=t.apply(n,arguments)}finally{e()}else i=t.apply(n,arguments);return i}}var Tn;(function(t){function e(w){return w&&typeof w=="object"&&typeof w[Symbol.iterator]=="function"}t.is=e;const n=Object.freeze([]);function r(){return n}t.empty=r;function*i(w){yield w}t.single=i;function s(w){return e(w)?w:i(w)}t.wrap=s;function a(w){return w||n}t.from=a;function*o(w){for(let F=w.length-1;F>=0;F--)yield w[F]}t.reverse=o;function l(w){return!w||w[Symbol.iterator]().next().done===!0}t.isEmpty=l;function c(w){return w[Symbol.iterator]().next().value}t.first=c;function h(w,F){for(const _ of w)if(F(_))return!0;return!1}t.some=h;function u(w,F){for(const _ of w)if(F(_))return _}t.find=u;function*f(w,F){for(const _ of w)F(_)&&(yield _)}t.filter=f;function*m(w,F){let _=0;for(const P of w)yield F(P,_++)}t.map=m;function*g(...w){for(const F of w)yield*F}t.concat=g;function b(w,F,_){let P=_;for(const W of w)P=F(P,W);return P}t.reduce=b;function*y(w,F,_=w.length){for(F<0&&(F+=w.length),_<0?_+=w.length:_>w.length&&(_=w.length);F<_;F++)yield w[F]}t.slice=y;function C(w,F=Number.POSITIVE_INFINITY){const _=[];if(F===0)return[_,w];const P=w[Symbol.iterator]();for(let W=0;W<F;W++){const T=P.next();if(T.done)return[_,t.empty()];_.push(T.value)}return[_,{[Symbol.iterator](){return P}}]}t.consume=C;async function k(w){const F=[];for await(const _ of w)F.push(_);return Promise.resolve(F)}t.asyncToArray=k})(Tn||(Tn={}));function Ff(t){return t}function Df(t,e){}function hs(t){if(Tn.is(t)){const e=[];for(const n of t)if(n)try{n.dispose()}catch(r){e.push(r)}if(e.length===1)throw e[0];if(e.length>1)throw new AggregateError(e,"Encountered errors while disposing of store");return Array.isArray(t)?[]:t}else if(t)return t.dispose(),t}function gc(...t){return Wn(()=>hs(t))}function Wn(t){return{dispose:mc(()=>{t()})}}class Mt{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{hs(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?Mt.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}deleteAndLeak(e){e&&this._toDispose.has(e)&&this._toDispose.delete(e)}}Mt.DISABLE_DISPOSED_WARNING=!1;class rn{constructor(){this._store=new Mt,this._store}dispose(){this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}rn.None=Object.freeze({dispose(){}});let le=class as{constructor(e){this.element=e,this.next=as.Undefined,this.prev=as.Undefined}};le.Undefined=new le(void 0);class bc{constructor(){this._first=le.Undefined,this._last=le.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===le.Undefined}clear(){let e=this._first;for(;e!==le.Undefined;){const n=e.next;e.prev=le.Undefined,e.next=le.Undefined,e=n}this._first=le.Undefined,this._last=le.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,n){const r=new le(e);if(this._first===le.Undefined)this._first=r,this._last=r;else if(n){const s=this._last;this._last=r,r.prev=s,s.next=r}else{const s=this._first;this._first=r,r.next=s,s.prev=r}this._size+=1;let i=!1;return()=>{i||(i=!0,this._remove(r))}}shift(){if(this._first!==le.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==le.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==le.Undefined&&e.next!==le.Undefined){const n=e.prev;n.next=e.next,e.next.prev=n}else e.prev===le.Undefined&&e.next===le.Undefined?(this._first=le.Undefined,this._last=le.Undefined):e.next===le.Undefined?(this._last=this._last.prev,this._last.next=le.Undefined):e.prev===le.Undefined&&(this._first=this._first.next,this._first.prev=le.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==le.Undefined;)yield e.element,e=e.next}}const vc=globalThis.performance&&typeof globalThis.performance.now=="function";class On{static create(e){return new On(e)}constructor(e){this._now=vc&&e===!1?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}}var _r;(function(t){t.None=()=>rn.None;function e(N,R){return u(N,()=>{},0,void 0,!0,void 0,R)}t.defer=e;function n(N){return(R,I=null,z)=>{let V=!1,j;return j=N(D=>{if(!V)return j?j.dispose():V=!0,R.call(I,D)},null,z),V&&j.dispose(),j}}t.once=n;function r(N,R,I){return c((z,V=null,j)=>N(D=>z.call(V,R(D)),null,j),I)}t.map=r;function i(N,R,I){return c((z,V=null,j)=>N(D=>{R(D),z.call(V,D)},null,j),I)}t.forEach=i;function s(N,R,I){return c((z,V=null,j)=>N(D=>R(D)&&z.call(V,D),null,j),I)}t.filter=s;function a(N){return N}t.signal=a;function o(...N){return(R,I=null,z)=>{const V=gc(...N.map(j=>j(D=>R.call(I,D))));return h(V,z)}}t.any=o;function l(N,R,I,z){let V=I;return r(N,j=>(V=R(V,j),V),z)}t.reduce=l;function c(N,R){let I;const z={onWillAddFirstListener(){I=N(V.fire,V)},onDidRemoveLastListener(){I?.dispose()}},V=new qe(z);return R?.add(V),V.event}function h(N,R){return R instanceof Array?R.push(N):R&&R.add(N),N}function u(N,R,I=100,z=!1,V=!1,j,D){let x,A,L,X=0,G;const ne={leakWarningThreshold:j,onWillAddFirstListener(){x=N(Se=>{X++,A=R(A,Se),z&&!L&&(De.fire(A),A=void 0),G=()=>{const Ae=A;A=void 0,L=void 0,(!z||X>1)&&De.fire(Ae),X=0},typeof I=="number"?(clearTimeout(L),L=setTimeout(G,I)):L===void 0&&(L=0,queueMicrotask(G))})},onWillRemoveListener(){V&&X>0&&G?.()},onDidRemoveLastListener(){G=void 0,x.dispose()}},De=new qe(ne);return D?.add(De),De.event}t.debounce=u;function f(N,R=0,I){return t.debounce(N,(z,V)=>z?(z.push(V),z):[V],R,void 0,!0,void 0,I)}t.accumulate=f;function m(N,R=(z,V)=>z===V,I){let z=!0,V;return s(N,j=>{const D=z||!R(j,V);return z=!1,V=j,D},I)}t.latch=m;function g(N,R,I){return[t.filter(N,R,I),t.filter(N,z=>!R(z),I)]}t.split=g;function b(N,R=!1,I=[],z){let V=I.slice(),j=N(A=>{V?V.push(A):x.fire(A)});z&&z.add(j);const D=()=>{V?.forEach(A=>x.fire(A)),V=null},x=new qe({onWillAddFirstListener(){j||(j=N(A=>x.fire(A)),z&&z.add(j))},onDidAddFirstListener(){V&&(R?setTimeout(D):D())},onDidRemoveLastListener(){j&&j.dispose(),j=null}});return z&&z.add(x),x.event}t.buffer=b;function y(N,R){return(z,V,j)=>{const D=R(new k);return N(function(x){const A=D.evaluate(x);A!==C&&z.call(V,A)},void 0,j)}}t.chain=y;const C=Symbol("HaltChainable");class k{constructor(){this.steps=[]}map(R){return this.steps.push(R),this}forEach(R){return this.steps.push(I=>(R(I),I)),this}filter(R){return this.steps.push(I=>R(I)?I:C),this}reduce(R,I){let z=I;return this.steps.push(V=>(z=R(z,V),z)),this}latch(R=(I,z)=>I===z){let I=!0,z;return this.steps.push(V=>{const j=I||!R(V,z);return I=!1,z=V,j?V:C}),this}evaluate(R){for(const I of this.steps)if(R=I(R),R===C)break;return R}}function w(N,R,I=z=>z){const z=(...x)=>D.fire(I(...x)),V=()=>N.on(R,z),j=()=>N.removeListener(R,z),D=new qe({onWillAddFirstListener:V,onDidRemoveLastListener:j});return D.event}t.fromNodeEventEmitter=w;function F(N,R,I=z=>z){const z=(...x)=>D.fire(I(...x)),V=()=>N.addEventListener(R,z),j=()=>N.removeEventListener(R,z),D=new qe({onWillAddFirstListener:V,onDidRemoveLastListener:j});return D.event}t.fromDOMEventEmitter=F;function _(N){return new Promise(R=>n(N)(R))}t.toPromise=_;function P(N){const R=new qe;return N.then(I=>{R.fire(I)},()=>{R.fire(void 0)}).finally(()=>{R.dispose()}),R.event}t.fromPromise=P;function W(N,R,I){return R(I),N(z=>R(z))}t.runAndSubscribe=W;class T{constructor(R,I){this._observable=R,this._counter=0,this._hasChanged=!1;const z={onWillAddFirstListener:()=>{R.addObserver(this)},onDidRemoveLastListener:()=>{R.removeObserver(this)}};this.emitter=new qe(z),I&&I.add(this.emitter)}beginUpdate(R){this._counter++}handlePossibleChange(R){}handleChange(R,I){this._hasChanged=!0}endUpdate(R){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function J(N,R){return new T(N,R).emitter.event}t.fromObservable=J;function re(N){return(R,I,z)=>{let V=0,j=!1;const D={beginUpdate(){V++},endUpdate(){V--,V===0&&(N.reportChanges(),j&&(j=!1,R.call(I)))},handlePossibleChange(){},handleChange(){j=!0}};N.addObserver(D),N.reportChanges();const x={dispose(){N.removeObserver(D)}};return z instanceof Mt?z.add(x):Array.isArray(z)&&z.push(x),x}}t.fromObservableLight=re})(_r||(_r={}));class zt{constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${zt._idPool++}`,zt.all.add(this)}start(e){this._stopWatch=new On,this.listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}}zt.all=new Set,zt._idPool=0;let yc=-1;class wc{constructor(e,n=Math.random().toString(18).slice(2,5)){this.threshold=e,this.name=n,this._warnCountdown=0}dispose(){var e;(e=this._stacks)===null||e===void 0||e.clear()}check(e,n){const r=this.threshold;if(r<=0||n<r)return;this._stacks||(this._stacks=new Map);const i=this._stacks.get(e.value)||0;if(this._stacks.set(e.value,i+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=r*.5;let s,a=0;for(const[o,l]of this._stacks)(!s||a<l)&&(s=o,a=l);console.warn(`[${this.name}] potential listener LEAK detected, having ${n} listeners already. MOST frequent listener (${a}):`),console.warn(s)}return()=>{const s=this._stacks.get(e.value)||0;this._stacks.set(e.value,s-1)}}}class Er{static create(){var e;return new Er((e=new Error().stack)!==null&&e!==void 0?e:"")}constructor(e){this.value=e}print(){console.warn(this.value.split(`
|
|
5
|
+
`+e.stack):e},0)}}emit(e){this.listeners.forEach(n=>{n(e)})}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}}const uc=new dc;function ls(t){pc(t)||uc.onUnexpectedError(t)}function cs(t){if(t instanceof Error){const{name:e,message:n}=t,r=t.stacktrace||t.stack;return{$isError:!0,name:e,message:n,stack:r,noTelemetry:Nt.isErrorNoTelemetry(t)}}return t}const kr="Canceled";function pc(t){return t instanceof fc?!0:t instanceof Error&&t.name===kr&&t.message===kr}class fc extends Error{constructor(){super(kr),this.name=this.message}}class Nt extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof Nt)return e;const n=new Nt;return n.message=e.message,n.stack=e.stack,n}static isErrorNoTelemetry(e){return e.name==="CodeExpectedError"}}class tt extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,tt.prototype)}}function mc(t,e){const n=this;let r=!1,i;return function(){return r||(r=!0,i=t.apply(n,arguments)),i}}var Tn;(function(t){function e(w){return w&&typeof w=="object"&&typeof w[Symbol.iterator]=="function"}t.is=e;const n=Object.freeze([]);function r(){return n}t.empty=r;function*i(w){yield w}t.single=i;function s(w){return e(w)?w:i(w)}t.wrap=s;function a(w){return w||n}t.from=a;function*o(w){for(let F=w.length-1;F>=0;F--)yield w[F]}t.reverse=o;function l(w){return!w||w[Symbol.iterator]().next().done===!0}t.isEmpty=l;function c(w){return w[Symbol.iterator]().next().value}t.first=c;function h(w,F){for(const _ of w)if(F(_))return!0;return!1}t.some=h;function u(w,F){for(const _ of w)if(F(_))return _}t.find=u;function*f(w,F){for(const _ of w)F(_)&&(yield _)}t.filter=f;function*m(w,F){let _=0;for(const P of w)yield F(P,_++)}t.map=m;function*g(...w){for(const F of w)yield*F}t.concat=g;function b(w,F,_){let P=_;for(const W of w)P=F(P,W);return P}t.reduce=b;function*y(w,F,_=w.length){for(F<0&&(F+=w.length),_<0?_+=w.length:_>w.length&&(_=w.length);F<_;F++)yield w[F]}t.slice=y;function C(w,F=Number.POSITIVE_INFINITY){const _=[];if(F===0)return[_,w];const P=w[Symbol.iterator]();for(let W=0;W<F;W++){const T=P.next();if(T.done)return[_,t.empty()];_.push(T.value)}return[_,{[Symbol.iterator](){return P}}]}t.consume=C;async function k(w){const F=[];for await(const _ of w)F.push(_);return Promise.resolve(F)}t.asyncToArray=k})(Tn||(Tn={}));function Ff(t){return t}function Df(t,e){}function hs(t){if(Tn.is(t)){const e=[];for(const n of t)if(n)try{n.dispose()}catch(r){e.push(r)}if(e.length===1)throw e[0];if(e.length>1)throw new AggregateError(e,"Encountered errors while disposing of store");return Array.isArray(t)?[]:t}else if(t)return t.dispose(),t}function gc(...t){return Wn(()=>hs(t))}function Wn(t){return{dispose:mc(()=>{t()})}}class Mt{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{hs(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?Mt.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}deleteAndLeak(e){e&&this._toDispose.has(e)&&this._toDispose.delete(e)}}Mt.DISABLE_DISPOSED_WARNING=!1;class rn{constructor(){this._store=new Mt,this._store}dispose(){this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}rn.None=Object.freeze({dispose(){}});let le=class as{constructor(e){this.element=e,this.next=as.Undefined,this.prev=as.Undefined}};le.Undefined=new le(void 0);class bc{constructor(){this._first=le.Undefined,this._last=le.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===le.Undefined}clear(){let e=this._first;for(;e!==le.Undefined;){const n=e.next;e.prev=le.Undefined,e.next=le.Undefined,e=n}this._first=le.Undefined,this._last=le.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,n){const r=new le(e);if(this._first===le.Undefined)this._first=r,this._last=r;else if(n){const s=this._last;this._last=r,r.prev=s,s.next=r}else{const s=this._first;this._first=r,r.next=s,s.prev=r}this._size+=1;let i=!1;return()=>{i||(i=!0,this._remove(r))}}shift(){if(this._first!==le.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==le.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==le.Undefined&&e.next!==le.Undefined){const n=e.prev;n.next=e.next,e.next.prev=n}else e.prev===le.Undefined&&e.next===le.Undefined?(this._first=le.Undefined,this._last=le.Undefined):e.next===le.Undefined?(this._last=this._last.prev,this._last.next=le.Undefined):e.prev===le.Undefined&&(this._first=this._first.next,this._first.prev=le.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==le.Undefined;)yield e.element,e=e.next}}const vc=globalThis.performance&&typeof globalThis.performance.now=="function";class On{static create(e){return new On(e)}constructor(e){this._now=vc&&e===!1?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}}var _r;(function(t){t.None=()=>rn.None;function e(N,R){return u(N,()=>{},0,void 0,!0,void 0,R)}t.defer=e;function n(N){return(R,I=null,z)=>{let V=!1,j;return j=N(D=>{if(!V)return j?j.dispose():V=!0,R.call(I,D)},null,z),V&&j.dispose(),j}}t.once=n;function r(N,R,I){return c((z,V=null,j)=>N(D=>z.call(V,R(D)),null,j),I)}t.map=r;function i(N,R,I){return c((z,V=null,j)=>N(D=>{R(D),z.call(V,D)},null,j),I)}t.forEach=i;function s(N,R,I){return c((z,V=null,j)=>N(D=>R(D)&&z.call(V,D),null,j),I)}t.filter=s;function a(N){return N}t.signal=a;function o(...N){return(R,I=null,z)=>{const V=gc(...N.map(j=>j(D=>R.call(I,D))));return h(V,z)}}t.any=o;function l(N,R,I,z){let V=I;return r(N,j=>(V=R(V,j),V),z)}t.reduce=l;function c(N,R){let I;const z={onWillAddFirstListener(){I=N(V.fire,V)},onDidRemoveLastListener(){I?.dispose()}},V=new qe(z);return R?.add(V),V.event}function h(N,R){return R instanceof Array?R.push(N):R&&R.add(N),N}function u(N,R,I=100,z=!1,V=!1,j,D){let x,A,L,X=0,G;const ne={leakWarningThreshold:j,onWillAddFirstListener(){x=N(Se=>{X++,A=R(A,Se),z&&!L&&(De.fire(A),A=void 0),G=()=>{const Ae=A;A=void 0,L=void 0,(!z||X>1)&&De.fire(Ae),X=0},typeof I=="number"?(clearTimeout(L),L=setTimeout(G,I)):L===void 0&&(L=0,queueMicrotask(G))})},onWillRemoveListener(){V&&X>0&&G?.()},onDidRemoveLastListener(){G=void 0,x.dispose()}},De=new qe(ne);return D?.add(De),De.event}t.debounce=u;function f(N,R=0,I){return t.debounce(N,(z,V)=>z?(z.push(V),z):[V],R,void 0,!0,void 0,I)}t.accumulate=f;function m(N,R=(z,V)=>z===V,I){let z=!0,V;return s(N,j=>{const D=z||!R(j,V);return z=!1,V=j,D},I)}t.latch=m;function g(N,R,I){return[t.filter(N,R,I),t.filter(N,z=>!R(z),I)]}t.split=g;function b(N,R=!1,I=[],z){let V=I.slice(),j=N(A=>{V?V.push(A):x.fire(A)});z&&z.add(j);const D=()=>{V?.forEach(A=>x.fire(A)),V=null},x=new qe({onWillAddFirstListener(){j||(j=N(A=>x.fire(A)),z&&z.add(j))},onDidAddFirstListener(){V&&(R?setTimeout(D):D())},onDidRemoveLastListener(){j&&j.dispose(),j=null}});return z&&z.add(x),x.event}t.buffer=b;function y(N,R){return(z,V,j)=>{const D=R(new k);return N(function(x){const A=D.evaluate(x);A!==C&&z.call(V,A)},void 0,j)}}t.chain=y;const C=Symbol("HaltChainable");class k{constructor(){this.steps=[]}map(R){return this.steps.push(R),this}forEach(R){return this.steps.push(I=>(R(I),I)),this}filter(R){return this.steps.push(I=>R(I)?I:C),this}reduce(R,I){let z=I;return this.steps.push(V=>(z=R(z,V),z)),this}latch(R=(I,z)=>I===z){let I=!0,z;return this.steps.push(V=>{const j=I||!R(V,z);return I=!1,z=V,j?V:C}),this}evaluate(R){for(const I of this.steps)if(R=I(R),R===C)break;return R}}function w(N,R,I=z=>z){const z=(...x)=>D.fire(I(...x)),V=()=>N.on(R,z),j=()=>N.removeListener(R,z),D=new qe({onWillAddFirstListener:V,onDidRemoveLastListener:j});return D.event}t.fromNodeEventEmitter=w;function F(N,R,I=z=>z){const z=(...x)=>D.fire(I(...x)),V=()=>N.addEventListener(R,z),j=()=>N.removeEventListener(R,z),D=new qe({onWillAddFirstListener:V,onDidRemoveLastListener:j});return D.event}t.fromDOMEventEmitter=F;function _(N){return new Promise(R=>n(N)(R))}t.toPromise=_;function P(N){const R=new qe;return N.then(I=>{R.fire(I)},()=>{R.fire(void 0)}).finally(()=>{R.dispose()}),R.event}t.fromPromise=P;function W(N,R,I){return R(I),N(z=>R(z))}t.runAndSubscribe=W;class T{constructor(R,I){this._observable=R,this._counter=0,this._hasChanged=!1;const z={onWillAddFirstListener:()=>{R.addObserver(this)},onDidRemoveLastListener:()=>{R.removeObserver(this)}};this.emitter=new qe(z),I&&I.add(this.emitter)}beginUpdate(R){this._counter++}handlePossibleChange(R){}handleChange(R,I){this._hasChanged=!0}endUpdate(R){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function J(N,R){return new T(N,R).emitter.event}t.fromObservable=J;function re(N){return(R,I,z)=>{let V=0,j=!1;const D={beginUpdate(){V++},endUpdate(){V--,V===0&&(N.reportChanges(),j&&(j=!1,R.call(I)))},handlePossibleChange(){},handleChange(){j=!0}};N.addObserver(D),N.reportChanges();const x={dispose(){N.removeObserver(D)}};return z instanceof Mt?z.add(x):Array.isArray(z)&&z.push(x),x}}t.fromObservableLight=re})(_r||(_r={}));class zt{constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${zt._idPool++}`,zt.all.add(this)}start(e){this._stopWatch=new On,this.listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}}zt.all=new Set,zt._idPool=0;let yc=-1;class wc{constructor(e,n=Math.random().toString(18).slice(2,5)){this.threshold=e,this.name=n,this._warnCountdown=0}dispose(){var e;(e=this._stacks)===null||e===void 0||e.clear()}check(e,n){const r=this.threshold;if(r<=0||n<r)return;this._stacks||(this._stacks=new Map);const i=this._stacks.get(e.value)||0;if(this._stacks.set(e.value,i+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=r*.5;let s,a=0;for(const[o,l]of this._stacks)(!s||a<l)&&(s=o,a=l);console.warn(`[${this.name}] potential listener LEAK detected, having ${n} listeners already. MOST frequent listener (${a}):`),console.warn(s)}return()=>{const s=this._stacks.get(e.value)||0;this._stacks.set(e.value,s-1)}}}class Er{static create(){var e;return new Er((e=new Error().stack)!==null&&e!==void 0?e:"")}constructor(e){this.value=e}print(){console.warn(this.value.split(`
|
|
6
6
|
`).slice(2).join(`
|
|
7
|
-
`))}}class Rr{constructor(e){this.value=e}}const xc=2;class qe{constructor(e){var n,r,i,s,a;this._size=0,this._options=e,this._leakageMon=!((n=this._options)===null||n===void 0)&&n.leakWarningThreshold?new wc((i=(r=this._options)===null||r===void 0?void 0:r.leakWarningThreshold)!==null&&i!==void 0?i:yc):void 0,this._perfMon=!((s=this._options)===null||s===void 0)&&s._profName?new zt(this._options._profName):void 0,this._deliveryQueue=(a=this._options)===null||a===void 0?void 0:a.deliveryQueue}dispose(){var e,n,r,i;this._disposed||(this._disposed=!0,((e=this._deliveryQueue)===null||e===void 0?void 0:e.current)===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),(r=(n=this._options)===null||n===void 0?void 0:n.onDidRemoveLastListener)===null||r===void 0||r.call(n),(i=this._leakageMon)===null||i===void 0||i.dispose())}get event(){var e;return(e=this._event)!==null&&e!==void 0||(this._event=(n,r,i)=>{var s,a,o,l,c;if(this._leakageMon&&this._size>this._leakageMon.threshold*3)return console.warn(`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far`),rn.None;if(this._disposed)return rn.None;r&&(n=n.bind(r));const h=new Rr(n);let u;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(h.stack=Er.create(),u=this._leakageMon.check(h.stack,this._size+1)),this._listeners?this._listeners instanceof Rr?((c=this._deliveryQueue)!==null&&c!==void 0||(this._deliveryQueue=new Sc),this._listeners=[this._listeners,h]):this._listeners.push(h):((a=(s=this._options)===null||s===void 0?void 0:s.onWillAddFirstListener)===null||a===void 0||a.call(s,this),this._listeners=h,(l=(o=this._options)===null||o===void 0?void 0:o.onDidAddFirstListener)===null||l===void 0||l.call(o,this)),this._size++;const f=Wn(()=>{u?.(),this._removeListener(h)});return i instanceof Mt?i.add(f):Array.isArray(i)&&i.push(f),f}),this._event}_removeListener(e){var n,r,i,s;if((r=(n=this._options)===null||n===void 0?void 0:n.onWillRemoveListener)===null||r===void 0||r.call(n,this),!this._listeners)return;if(this._size===1){this._listeners=void 0,(s=(i=this._options)===null||i===void 0?void 0:i.onDidRemoveLastListener)===null||s===void 0||s.call(i,this),this._size=0;return}const a=this._listeners,o=a.indexOf(e);if(o===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,a[o]=void 0;const l=this._deliveryQueue.current===this;if(this._size*xc<=a.length){let c=0;for(let h=0;h<a.length;h++)a[h]?a[c++]=a[h]:l&&(this._deliveryQueue.end--,c<this._deliveryQueue.i&&this._deliveryQueue.i--);a.length=c}}_deliver(e,n){var r;if(!e)return;const i=((r=this._options)===null||r===void 0?void 0:r.onListenerError)||ls;if(!i){e.value(n);return}try{e.value(n)}catch(s){i(s)}}_deliverQueue(e){const n=e.current._listeners;for(;e.i<e.end;)this._deliver(n[e.i++],e.value);e.reset()}fire(e){var n,r,i,s;if(!((n=this._deliveryQueue)===null||n===void 0)&&n.current&&(this._deliverQueue(this._deliveryQueue),(r=this._perfMon)===null||r===void 0||r.stop()),(i=this._perfMon)===null||i===void 0||i.start(this._size),this._listeners)if(this._listeners instanceof Rr)this._deliver(this._listeners,e);else{const a=this._deliveryQueue;a.enqueue(this,e,this._listeners.length),this._deliverQueue(a)}(s=this._perfMon)===null||s===void 0||s.stop()}hasListeners(){return this._size>0}}class Sc{constructor(){this.i=-1,this.end=0}enqueue(e,n,r){this.i=0,this.end=r,this.current=e,this.value=n}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}function Cc(t){return typeof t=="string"}function kc(t){let e=[];for(;Object.prototype!==t;)e=e.concat(Object.getOwnPropertyNames(t)),t=Object.getPrototypeOf(t);return e}function Fr(t){const e=[];for(const n of kc(t))typeof t[n]=="function"&&e.push(n);return e}function _c(t,e){const n=i=>function(){const s=Array.prototype.slice.call(arguments,0);return e(i,s)},r={};for(const i of t)r[i]=n(i);return r}let Ec=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function Rc(t,e){let n;return e.length===0?n=t:n=t.replace(/\{(\d+)\}/g,(r,i)=>{const s=i[0],a=e[s];let o=r;return typeof a=="string"?o=a:(typeof a=="number"||typeof a=="boolean"||a===void 0||a===null)&&(o=String(a)),o}),Ec&&(n="["+n.replace(/[aouei]/g,"$&$&")+"]"),n}function ae(t,e,...n){return Rc(e,n)}function Af(t){}var Dr,Ar;const Lt="en";let Nr=!1,Mr=!1,zr=!1,Un,Lr=Lt,ds=Lt,Fc,je;const xt=globalThis;let Ce;typeof xt.vscode<"u"&&typeof xt.vscode.process<"u"?Ce=xt.vscode.process:typeof process<"u"&&typeof((Dr=process==null?void 0:process.versions)===null||Dr===void 0?void 0:Dr.node)=="string"&&(Ce=process);const Dc=typeof((Ar=Ce?.versions)===null||Ar===void 0?void 0:Ar.electron)=="string"&&Ce?.type==="renderer";if(typeof Ce=="object"){Nr=Ce.platform==="win32",Mr=Ce.platform==="darwin",zr=Ce.platform==="linux",zr&&Ce.env.SNAP&&Ce.env.SNAP_REVISION,Ce.env.CI||Ce.env.BUILD_ARTIFACTSTAGINGDIRECTORY,Un=Lt,Lr=Lt;const t=Ce.env.VSCODE_NLS_CONFIG;if(t)try{const e=JSON.parse(t),n=e.availableLanguages["*"];Un=e.locale,ds=e.osLocale,Lr=n||Lt,Fc=e._translationsConfigFile}catch{}}else typeof navigator=="object"&&!Dc?(je=navigator.userAgent,Nr=je.indexOf("Windows")>=0,Mr=je.indexOf("Macintosh")>=0,(je.indexOf("Macintosh")>=0||je.indexOf("iPad")>=0||je.indexOf("iPhone")>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>0,zr=je.indexOf("Linux")>=0,je?.indexOf("Mobi")>=0,ae({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),Un=Lt,Lr=Un,ds=navigator.language):console.error("Unable to resolve platform.");const sn=Nr,Ac=Mr,Xe=je,Nc=typeof xt.postMessage=="function"&&!xt.importScripts;(()=>{if(Nc){const t=[];xt.addEventListener("message",n=>{if(n.data&&n.data.vscodeScheduleAsyncWork)for(let r=0,i=t.length;r<i;r++){const s=t[r];if(s.id===n.data.vscodeScheduleAsyncWork){t.splice(r,1),s.callback();return}}});let e=0;return n=>{const r=++e;t.push({id:r,callback:n}),xt.postMessage({vscodeScheduleAsyncWork:r},"*")}}return t=>setTimeout(t)})();const Mc=!!(Xe&&Xe.indexOf("Chrome")>=0);Xe&&Xe.indexOf("Firefox")>=0,!Mc&&Xe&&Xe.indexOf("Safari")>=0,Xe&&Xe.indexOf("Edg/")>=0,Xe&&Xe.indexOf("Android")>=0;class zc{constructor(e,n=JSON.stringify){this.fn=e,this._computeKey=n,this.lastCache=void 0,this.lastArgKey=void 0}get(e){const n=this._computeKey(e);return this.lastArgKey!==n&&(this.lastArgKey=n,this.lastCache=this.fn(e)),this.lastCache}}class us{constructor(e){this.executor=e,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}var Pt;function Lc(t){return t.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function Pc(t){return t.split(/\r\n|\r|\n/)}function Ic(t){for(let e=0,n=t.length;e<n;e++){const r=t.charCodeAt(e);if(r!==32&&r!==9)return e}return-1}function Tc(t,e=t.length-1){for(let n=e;n>=0;n--){const r=t.charCodeAt(n);if(r!==32&&r!==9)return n}return-1}function ps(t){return t>=65&&t<=90}function Pr(t){return 55296<=t&&t<=56319}function Wc(t){return 56320<=t&&t<=57343}function Oc(t,e){return(t-55296<<10)+(e-56320)+65536}function Uc(t,e,n){const r=t.charCodeAt(n);if(Pr(r)&&n+1<e){const i=t.charCodeAt(n+1);if(Wc(i))return Oc(r,i)}return r}const Vc=/^[\t\n\r\x20-\x7E]*$/;function Bc(t){return Vc.test(t)}class St{static getInstance(e){return Pt.cache.get(Array.from(e))}static getLocales(){return Pt._locales.value}constructor(e){this.confusableDictionary=e}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}Pt=St,St.ambiguousCharacterData=new us(()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}')),St.cache=new zc(t=>{function e(c){const h=new Map;for(let u=0;u<c.length;u+=2)h.set(c[u],c[u+1]);return h}function n(c,h){const u=new Map(c);for(const[f,m]of h)u.set(f,m);return u}function r(c,h){if(!c)return h;const u=new Map;for(const[f,m]of c)h.has(f)&&u.set(f,m);return u}const i=Pt.ambiguousCharacterData.value;let s=t.filter(c=>!c.startsWith("_")&&c in i);s.length===0&&(s=["_default"]);let a;for(const c of s){const h=e(i[c]);a=r(a,h)}const o=e(i._common),l=n(o,a);return new Pt(l)}),St._locales=new us(()=>Object.keys(Pt.ambiguousCharacterData.value).filter(t=>!t.startsWith("_")));class ht{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static getData(){return this._data||(this._data=new Set(ht.getRawData())),this._data}static isInvisibleCharacter(e){return ht.getData().has(e)}static get codePoints(){return ht.getData()}}ht._data=void 0;const qc="$initialize";class jc{constructor(e,n,r,i){this.vsWorker=e,this.req=n,this.method=r,this.args=i,this.type=0}}class fs{constructor(e,n,r,i){this.vsWorker=e,this.seq=n,this.res=r,this.err=i,this.type=1}}class $c{constructor(e,n,r,i){this.vsWorker=e,this.req=n,this.eventName=r,this.arg=i,this.type=2}}class Hc{constructor(e,n,r){this.vsWorker=e,this.req=n,this.event=r,this.type=3}}class Gc{constructor(e,n){this.vsWorker=e,this.req=n,this.type=4}}class Jc{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}sendMessage(e,n){const r=String(++this._lastSentReq);return new Promise((i,s)=>{this._pendingReplies[r]={resolve:i,reject:s},this._send(new jc(this._workerId,r,e,n))})}listen(e,n){let r=null;const i=new qe({onWillAddFirstListener:()=>{r=String(++this._lastSentReq),this._pendingEmitters.set(r,i),this._send(new $c(this._workerId,r,e,n))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(r),this._send(new Gc(this._workerId,r)),r=null}});return i.event}handleMessage(e){!e||!e.vsWorker||this._workerId!==-1&&e.vsWorker!==this._workerId||this._handleMessage(e)}_handleMessage(e){switch(e.type){case 1:return this._handleReplyMessage(e);case 0:return this._handleRequestMessage(e);case 2:return this._handleSubscribeEventMessage(e);case 3:return this._handleEventMessage(e);case 4:return this._handleUnsubscribeEventMessage(e)}}_handleReplyMessage(e){if(!this._pendingReplies[e.seq]){console.warn("Got reply to unknown seq");return}const n=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let r=e.err;e.err.$isError&&(r=new Error,r.name=e.err.name,r.message=e.err.message,r.stack=e.err.stack),n.reject(r);return}n.resolve(e.res)}_handleRequestMessage(e){const n=e.req;this._handler.handleMessage(e.method,e.args).then(i=>{this._send(new fs(this._workerId,n,i,void 0))},i=>{i.detail instanceof Error&&(i.detail=cs(i.detail)),this._send(new fs(this._workerId,n,void 0,cs(i)))})}_handleSubscribeEventMessage(e){const n=e.req,r=this._handler.handleEvent(e.eventName,e.arg)(i=>{this._send(new Hc(this._workerId,n,i))});this._pendingEvents.set(n,r)}_handleEventMessage(e){if(!this._pendingEmitters.has(e.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(e.req).fire(e.event)}_handleUnsubscribeEventMessage(e){if(!this._pendingEvents.has(e.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(e.req).dispose(),this._pendingEvents.delete(e.req)}_send(e){const n=[];if(e.type===0)for(let r=0;r<e.args.length;r++)e.args[r]instanceof ArrayBuffer&&n.push(e.args[r]);else e.type===1&&e.res instanceof ArrayBuffer&&n.push(e.res);this._handler.sendMessage(e,n)}}function ms(t){return t[0]==="o"&&t[1]==="n"&&ps(t.charCodeAt(2))}function gs(t){return/^onDynamic/.test(t)&&ps(t.charCodeAt(9))}function Xc(t,e,n){const r=a=>function(){const o=Array.prototype.slice.call(arguments,0);return e(a,o)},i=a=>function(o){return n(a,o)},s={};for(const a of t){if(gs(a)){s[a]=i(a);continue}if(ms(a)){s[a]=n(a,void 0);continue}s[a]=r(a)}return s}class Yc{constructor(e,n){this._requestHandlerFactory=n,this._requestHandler=null,this._protocol=new Jc({sendMessage:(r,i)=>{e(r,i)},handleMessage:(r,i)=>this._handleMessage(r,i),handleEvent:(r,i)=>this._handleEvent(r,i)})}onmessage(e){this._protocol.handleMessage(e)}_handleMessage(e,n){if(e===qc)return this.initialize(n[0],n[1],n[2],n[3]);if(!this._requestHandler||typeof this._requestHandler[e]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._requestHandler[e].apply(this._requestHandler,n))}catch(r){return Promise.reject(r)}}_handleEvent(e,n){if(!this._requestHandler)throw new Error("Missing requestHandler");if(gs(e)){const r=this._requestHandler[e].call(this._requestHandler,n);if(typeof r!="function")throw new Error(`Missing dynamic event ${e} on request handler.`);return r}if(ms(e)){const r=this._requestHandler[e];if(typeof r!="function")throw new Error(`Missing event ${e} on request handler.`);return r}throw new Error(`Malformed event name ${e}`)}initialize(e,n,r,i){this._protocol.setWorkerId(e);const o=Xc(i,(l,c)=>this._protocol.sendMessage(l,c),(l,c)=>this._protocol.listen(l,c));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(o),Promise.resolve(Fr(this._requestHandler))):(n&&(typeof n.baseUrl<"u"&&delete n.baseUrl,typeof n.paths<"u"&&typeof n.paths.vs<"u"&&delete n.paths.vs,typeof n.trustedTypesPolicy<"u"&&delete n.trustedTypesPolicy,n.catchError=!0,globalThis.require.config(n)),new Promise((l,c)=>{const h=globalThis.require;h([r],u=>{if(this._requestHandler=u.create(o),!this._requestHandler){c(new Error("No RequestHandler!"));return}l(Fr(this._requestHandler))},c)}))}}class dt{constructor(e,n,r,i){this.originalStart=e,this.originalLength=n,this.modifiedStart=r,this.modifiedLength=i}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function bs(t,e){return(e<<5)-e+t|0}function Qc(t,e){e=bs(149417,e);for(let n=0,r=t.length;n<r;n++)e=bs(t.charCodeAt(n),e);return e}class vs{constructor(e){this.source=e}getElements(){const e=this.source,n=new Int32Array(e.length);for(let r=0,i=e.length;r<i;r++)n[r]=e.charCodeAt(r);return n}}function Kc(t,e,n){return new ut(new vs(t),new vs(e)).ComputeDiff(n).changes}class It{static Assert(e,n){if(!e)throw new Error(n)}}class Tt{static Copy(e,n,r,i,s){for(let a=0;a<s;a++)r[i+a]=e[n+a]}static Copy2(e,n,r,i,s){for(let a=0;a<s;a++)r[i+a]=e[n+a]}}class ys{constructor(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}MarkNextChange(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new dt(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,n){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_originalCount++}AddModifiedElement(e,n){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class ut{constructor(e,n,r=null){this.ContinueProcessingPredicate=r,this._originalSequence=e,this._modifiedSequence=n;const[i,s,a]=ut._getElements(e),[o,l,c]=ut._getElements(n);this._hasStrings=a&&c,this._originalStringElements=i,this._originalElementsOrHash=s,this._modifiedStringElements=o,this._modifiedElementsOrHash=l,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&typeof e[0]=="string"}static _getElements(e){const n=e.getElements();if(ut._isStringArray(n)){const r=new Int32Array(n.length);for(let i=0,s=n.length;i<s;i++)r[i]=Qc(n[i],0);return[n,r,!0]}return n instanceof Int32Array?[[],n,!1]:[[],new Int32Array(n),!1]}ElementsAreEqual(e,n){return this._originalElementsOrHash[e]!==this._modifiedElementsOrHash[n]?!1:this._hasStrings?this._originalStringElements[e]===this._modifiedStringElements[n]:!0}ElementsAreStrictEqual(e,n){if(!this.ElementsAreEqual(e,n))return!1;const r=ut._getStrictElement(this._originalSequence,e),i=ut._getStrictElement(this._modifiedSequence,n);return r===i}static _getStrictElement(e,n){return typeof e.getStrictElement=="function"?e.getStrictElement(n):null}OriginalElementsAreEqual(e,n){return this._originalElementsOrHash[e]!==this._originalElementsOrHash[n]?!1:this._hasStrings?this._originalStringElements[e]===this._originalStringElements[n]:!0}ModifiedElementsAreEqual(e,n){return this._modifiedElementsOrHash[e]!==this._modifiedElementsOrHash[n]?!1:this._hasStrings?this._modifiedStringElements[e]===this._modifiedStringElements[n]:!0}ComputeDiff(e){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,e)}_ComputeDiff(e,n,r,i,s){const a=[!1];let o=this.ComputeDiffRecursive(e,n,r,i,a);return s&&(o=this.PrettifyChanges(o)),{quitEarly:a[0],changes:o}}ComputeDiffRecursive(e,n,r,i,s){for(s[0]=!1;e<=n&&r<=i&&this.ElementsAreEqual(e,r);)e++,r++;for(;n>=e&&i>=r&&this.ElementsAreEqual(n,i);)n--,i--;if(e>n||r>i){let u;return r<=i?(It.Assert(e===n+1,"originalStart should only be one more than originalEnd"),u=[new dt(e,0,r,i-r+1)]):e<=n?(It.Assert(r===i+1,"modifiedStart should only be one more than modifiedEnd"),u=[new dt(e,n-e+1,r,0)]):(It.Assert(e===n+1,"originalStart should only be one more than originalEnd"),It.Assert(r===i+1,"modifiedStart should only be one more than modifiedEnd"),u=[]),u}const a=[0],o=[0],l=this.ComputeRecursionPoint(e,n,r,i,a,o,s),c=a[0],h=o[0];if(l!==null)return l;if(!s[0]){const u=this.ComputeDiffRecursive(e,c,r,h,s);let f=[];return s[0]?f=[new dt(c+1,n-(c+1)+1,h+1,i-(h+1)+1)]:f=this.ComputeDiffRecursive(c+1,n,h+1,i,s),this.ConcatenateChanges(u,f)}return[new dt(e,n-e+1,r,i-r+1)]}WALKTRACE(e,n,r,i,s,a,o,l,c,h,u,f,m,g,b,y,C,k){let w=null,F=null,_=new ys,P=n,W=r,T=m[0]-y[0]-i,J=-1073741824,re=this.m_forwardHistory.length-1;do{const N=T+e;N===P||N<W&&c[N-1]<c[N+1]?(u=c[N+1],g=u-T-i,u<J&&_.MarkNextChange(),J=u,_.AddModifiedElement(u+1,g),T=N+1-e):(u=c[N-1]+1,g=u-T-i,u<J&&_.MarkNextChange(),J=u-1,_.AddOriginalElement(u,g+1),T=N-1-e),re>=0&&(c=this.m_forwardHistory[re],e=c[0],P=1,W=c.length-1)}while(--re>=-1);if(w=_.getReverseChanges(),k[0]){let N=m[0]+1,R=y[0]+1;if(w!==null&&w.length>0){const I=w[w.length-1];N=Math.max(N,I.getOriginalEnd()),R=Math.max(R,I.getModifiedEnd())}F=[new dt(N,f-N+1,R,b-R+1)]}else{_=new ys,P=a,W=o,T=m[0]-y[0]-l,J=1073741824,re=C?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const N=T+s;N===P||N<W&&h[N-1]>=h[N+1]?(u=h[N+1]-1,g=u-T-l,u>J&&_.MarkNextChange(),J=u+1,_.AddOriginalElement(u+1,g+1),T=N+1-s):(u=h[N-1],g=u-T-l,u>J&&_.MarkNextChange(),J=u,_.AddModifiedElement(u+1,g+1),T=N-1-s),re>=0&&(h=this.m_reverseHistory[re],s=h[0],P=1,W=h.length-1)}while(--re>=-1);F=_.getChanges()}return this.ConcatenateChanges(w,F)}ComputeRecursionPoint(e,n,r,i,s,a,o){let l=0,c=0,h=0,u=0,f=0,m=0;e--,r--,s[0]=0,a[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const g=n-e+(i-r),b=g+1,y=new Int32Array(b),C=new Int32Array(b),k=i-r,w=n-e,F=e-r,_=n-i,W=(w-k)%2===0;y[k]=e,C[w]=n,o[0]=!1;for(let T=1;T<=g/2+1;T++){let J=0,re=0;h=this.ClipDiagonalBound(k-T,T,k,b),u=this.ClipDiagonalBound(k+T,T,k,b);for(let R=h;R<=u;R+=2){R===h||R<u&&y[R-1]<y[R+1]?l=y[R+1]:l=y[R-1]+1,c=l-(R-k)-F;const I=l;for(;l<n&&c<i&&this.ElementsAreEqual(l+1,c+1);)l++,c++;if(y[R]=l,l+c>J+re&&(J=l,re=c),!W&&Math.abs(R-w)<=T-1&&l>=C[R])return s[0]=l,a[0]=c,I<=C[R]&&T<=1448?this.WALKTRACE(k,h,u,F,w,f,m,_,y,C,l,n,s,c,i,a,W,o):null}const N=(J-e+(re-r)-T)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(J,N))return o[0]=!0,s[0]=J,a[0]=re,N>0&&T<=1448?this.WALKTRACE(k,h,u,F,w,f,m,_,y,C,l,n,s,c,i,a,W,o):(e++,r++,[new dt(e,n-e+1,r,i-r+1)]);f=this.ClipDiagonalBound(w-T,T,w,b),m=this.ClipDiagonalBound(w+T,T,w,b);for(let R=f;R<=m;R+=2){R===f||R<m&&C[R-1]>=C[R+1]?l=C[R+1]-1:l=C[R-1],c=l-(R-w)-_;const I=l;for(;l>e&&c>r&&this.ElementsAreEqual(l,c);)l--,c--;if(C[R]=l,W&&Math.abs(R-k)<=T&&l<=y[R])return s[0]=l,a[0]=c,I>=y[R]&&T<=1448?this.WALKTRACE(k,h,u,F,w,f,m,_,y,C,l,n,s,c,i,a,W,o):null}if(T<=1447){let R=new Int32Array(u-h+2);R[0]=k-h+1,Tt.Copy2(y,h,R,1,u-h+1),this.m_forwardHistory.push(R),R=new Int32Array(m-f+2),R[0]=w-f+1,Tt.Copy2(C,f,R,1,m-f+1),this.m_reverseHistory.push(R)}}return this.WALKTRACE(k,h,u,F,w,f,m,_,y,C,l,n,s,c,i,a,W,o)}PrettifyChanges(e){for(let n=0;n<e.length;n++){const r=e[n],i=n<e.length-1?e[n+1].originalStart:this._originalElementsOrHash.length,s=n<e.length-1?e[n+1].modifiedStart:this._modifiedElementsOrHash.length,a=r.originalLength>0,o=r.modifiedLength>0;for(;r.originalStart+r.originalLength<i&&r.modifiedStart+r.modifiedLength<s&&(!a||this.OriginalElementsAreEqual(r.originalStart,r.originalStart+r.originalLength))&&(!o||this.ModifiedElementsAreEqual(r.modifiedStart,r.modifiedStart+r.modifiedLength));){const c=this.ElementsAreStrictEqual(r.originalStart,r.modifiedStart);if(this.ElementsAreStrictEqual(r.originalStart+r.originalLength,r.modifiedStart+r.modifiedLength)&&!c)break;r.originalStart++,r.modifiedStart++}const l=[null];if(n<e.length-1&&this.ChangesOverlap(e[n],e[n+1],l)){e[n]=l[0],e.splice(n+1,1),n--;continue}}for(let n=e.length-1;n>=0;n--){const r=e[n];let i=0,s=0;if(n>0){const u=e[n-1];i=u.originalStart+u.originalLength,s=u.modifiedStart+u.modifiedLength}const a=r.originalLength>0,o=r.modifiedLength>0;let l=0,c=this._boundaryScore(r.originalStart,r.originalLength,r.modifiedStart,r.modifiedLength);for(let u=1;;u++){const f=r.originalStart-u,m=r.modifiedStart-u;if(f<i||m<s||a&&!this.OriginalElementsAreEqual(f,f+r.originalLength)||o&&!this.ModifiedElementsAreEqual(m,m+r.modifiedLength))break;const b=(f===i&&m===s?5:0)+this._boundaryScore(f,r.originalLength,m,r.modifiedLength);b>c&&(c=b,l=u)}r.originalStart-=l,r.modifiedStart-=l;const h=[null];if(n>0&&this.ChangesOverlap(e[n-1],e[n],h)){e[n-1]=h[0],e.splice(n,1),n++;continue}}if(this._hasStrings)for(let n=1,r=e.length;n<r;n++){const i=e[n-1],s=e[n],a=s.originalStart-i.originalStart-i.originalLength,o=i.originalStart,l=s.originalStart+s.originalLength,c=l-o,h=i.modifiedStart,u=s.modifiedStart+s.modifiedLength,f=u-h;if(a<5&&c<20&&f<20){const m=this._findBetterContiguousSequence(o,c,h,f,a);if(m){const[g,b]=m;(g!==i.originalStart+i.originalLength||b!==i.modifiedStart+i.modifiedLength)&&(i.originalLength=g-i.originalStart,i.modifiedLength=b-i.modifiedStart,s.originalStart=g+a,s.modifiedStart=b+a,s.originalLength=l-s.originalStart,s.modifiedLength=u-s.modifiedStart)}}}return e}_findBetterContiguousSequence(e,n,r,i,s){if(n<s||i<s)return null;const a=e+n-s+1,o=r+i-s+1;let l=0,c=0,h=0;for(let u=e;u<a;u++)for(let f=r;f<o;f++){const m=this._contiguousSequenceScore(u,f,s);m>0&&m>l&&(l=m,c=u,h=f)}return l>0?[c,h]:null}_contiguousSequenceScore(e,n,r){let i=0;for(let s=0;s<r;s++){if(!this.ElementsAreEqual(e+s,n+s))return 0;i+=this._originalStringElements[e+s].length}return i}_OriginalIsBoundary(e){return e<=0||e>=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,n){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(n>0){const r=e+n;if(this._OriginalIsBoundary(r-1)||this._OriginalIsBoundary(r))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,n){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(n>0){const r=e+n;if(this._ModifiedIsBoundary(r-1)||this._ModifiedIsBoundary(r))return!0}return!1}_boundaryScore(e,n,r,i){const s=this._OriginalRegionIsBoundary(e,n)?1:0,a=this._ModifiedRegionIsBoundary(r,i)?1:0;return s+a}ConcatenateChanges(e,n){const r=[];if(e.length===0||n.length===0)return n.length>0?n:e;if(this.ChangesOverlap(e[e.length-1],n[0],r)){const i=new Array(e.length+n.length-1);return Tt.Copy(e,0,i,0,e.length-1),i[e.length-1]=r[0],Tt.Copy(n,1,i,e.length,n.length-1),i}else{const i=new Array(e.length+n.length);return Tt.Copy(e,0,i,0,e.length),Tt.Copy(n,0,i,e.length,n.length),i}}ChangesOverlap(e,n,r){if(It.Assert(e.originalStart<=n.originalStart,"Left change is not less than or equal to right change"),It.Assert(e.modifiedStart<=n.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=n.originalStart||e.modifiedStart+e.modifiedLength>=n.modifiedStart){const i=e.originalStart;let s=e.originalLength;const a=e.modifiedStart;let o=e.modifiedLength;return e.originalStart+e.originalLength>=n.originalStart&&(s=n.originalStart+n.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=n.modifiedStart&&(o=n.modifiedStart+n.modifiedLength-e.modifiedStart),r[0]=new dt(i,s,a,o),!0}else return r[0]=null,!1}ClipDiagonalBound(e,n,r,i){if(e>=0&&e<i)return e;const s=r,a=i-r-1,o=n%2===0;if(e<0){const l=s%2===0;return o===l?0:1}else{const l=a%2===0;return o===l?i-1:i-2}}}var ws={ENV_TYPE:"live",NODE_ENV:"production"};let Wt;const Ir=globalThis.vscode;if(typeof Ir<"u"&&typeof Ir.process<"u"){const t=Ir.process;Wt={get platform(){return t.platform},get arch(){return t.arch},get env(){return t.env},cwd(){return t.cwd()}}}else typeof process<"u"?Wt={get platform(){return process.platform},get arch(){return process.arch},get env(){return ws},cwd(){return ws.VSCODE_CWD||process.cwd()}}:Wt={get platform(){return sn?"win32":Ac?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const Vn=Wt.cwd,Zc=Wt.env,eh=Wt.platform,th=65,nh=97,rh=90,ih=122,pt=46,xe=47,Ne=92,ft=58,sh=63;class xs extends Error{constructor(e,n,r){let i;typeof n=="string"&&n.indexOf("not ")===0?(i="must not be",n=n.replace(/^not /,"")):i="must be";const s=e.indexOf(".")!==-1?"property":"argument";let a=`The "${e}" ${s} ${i} of type ${n}`;a+=`. Received type ${typeof r}`,super(a),this.code="ERR_INVALID_ARG_TYPE"}}function ah(t,e){if(t===null||typeof t!="object")throw new xs(e,"Object",t)}function de(t,e){if(typeof t!="string")throw new xs(e,"string",t)}const mt=eh==="win32";function Y(t){return t===xe||t===Ne}function Tr(t){return t===xe}function gt(t){return t>=th&&t<=rh||t>=nh&&t<=ih}function Bn(t,e,n,r){let i="",s=0,a=-1,o=0,l=0;for(let c=0;c<=t.length;++c){if(c<t.length)l=t.charCodeAt(c);else{if(r(l))break;l=xe}if(r(l)){if(!(a===c-1||o===1))if(o===2){if(i.length<2||s!==2||i.charCodeAt(i.length-1)!==pt||i.charCodeAt(i.length-2)!==pt){if(i.length>2){const h=i.lastIndexOf(n);h===-1?(i="",s=0):(i=i.slice(0,h),s=i.length-1-i.lastIndexOf(n)),a=c,o=0;continue}else if(i.length!==0){i="",s=0,a=c,o=0;continue}}e&&(i+=i.length>0?`${n}..`:"..",s=2)}else i.length>0?i+=`${n}${t.slice(a+1,c)}`:i=t.slice(a+1,c),s=c-a-1;a=c,o=0}else l===pt&&o!==-1?++o:o=-1}return i}function Ss(t,e){ah(e,"pathObject");const n=e.dir||e.root,r=e.base||`${e.name||""}${e.ext||""}`;return n?n===e.root?`${n}${r}`:`${n}${t}${r}`:r}const Re={resolve(...t){let e="",n="",r=!1;for(let i=t.length-1;i>=-1;i--){let s;if(i>=0){if(s=t[i],de(s,"path"),s.length===0)continue}else e.length===0?s=Vn():(s=Zc[`=${e}`]||Vn(),(s===void 0||s.slice(0,2).toLowerCase()!==e.toLowerCase()&&s.charCodeAt(2)===Ne)&&(s=`${e}\\`));const a=s.length;let o=0,l="",c=!1;const h=s.charCodeAt(0);if(a===1)Y(h)&&(o=1,c=!0);else if(Y(h))if(c=!0,Y(s.charCodeAt(1))){let u=2,f=u;for(;u<a&&!Y(s.charCodeAt(u));)u++;if(u<a&&u!==f){const m=s.slice(f,u);for(f=u;u<a&&Y(s.charCodeAt(u));)u++;if(u<a&&u!==f){for(f=u;u<a&&!Y(s.charCodeAt(u));)u++;(u===a||u!==f)&&(l=`\\\\${m}\\${s.slice(f,u)}`,o=u)}}}else o=1;else gt(h)&&s.charCodeAt(1)===ft&&(l=s.slice(0,2),o=2,a>2&&Y(s.charCodeAt(2))&&(c=!0,o=3));if(l.length>0)if(e.length>0){if(l.toLowerCase()!==e.toLowerCase())continue}else e=l;if(r){if(e.length>0)break}else if(n=`${s.slice(o)}\\${n}`,r=c,c&&e.length>0)break}return n=Bn(n,!r,"\\",Y),r?`${e}\\${n}`:`${e}${n}`||"."},normalize(t){de(t,"path");const e=t.length;if(e===0)return".";let n=0,r,i=!1;const s=t.charCodeAt(0);if(e===1)return Tr(s)?"\\":t;if(Y(s))if(i=!0,Y(t.charCodeAt(1))){let o=2,l=o;for(;o<e&&!Y(t.charCodeAt(o));)o++;if(o<e&&o!==l){const c=t.slice(l,o);for(l=o;o<e&&Y(t.charCodeAt(o));)o++;if(o<e&&o!==l){for(l=o;o<e&&!Y(t.charCodeAt(o));)o++;if(o===e)return`\\\\${c}\\${t.slice(l)}\\`;o!==l&&(r=`\\\\${c}\\${t.slice(l,o)}`,n=o)}}}else n=1;else gt(s)&&t.charCodeAt(1)===ft&&(r=t.slice(0,2),n=2,e>2&&Y(t.charCodeAt(2))&&(i=!0,n=3));let a=n<e?Bn(t.slice(n),!i,"\\",Y):"";return a.length===0&&!i&&(a="."),a.length>0&&Y(t.charCodeAt(e-1))&&(a+="\\"),r===void 0?i?`\\${a}`:a:i?`${r}\\${a}`:`${r}${a}`},isAbsolute(t){de(t,"path");const e=t.length;if(e===0)return!1;const n=t.charCodeAt(0);return Y(n)||e>2&>(n)&&t.charCodeAt(1)===ft&&Y(t.charCodeAt(2))},join(...t){if(t.length===0)return".";let e,n;for(let s=0;s<t.length;++s){const a=t[s];de(a,"path"),a.length>0&&(e===void 0?e=n=a:e+=`\\${a}`)}if(e===void 0)return".";let r=!0,i=0;if(typeof n=="string"&&Y(n.charCodeAt(0))){++i;const s=n.length;s>1&&Y(n.charCodeAt(1))&&(++i,s>2&&(Y(n.charCodeAt(2))?++i:r=!1))}if(r){for(;i<e.length&&Y(e.charCodeAt(i));)i++;i>=2&&(e=`\\${e.slice(i)}`)}return Re.normalize(e)},relative(t,e){if(de(t,"from"),de(e,"to"),t===e)return"";const n=Re.resolve(t),r=Re.resolve(e);if(n===r||(t=n.toLowerCase(),e=r.toLowerCase(),t===e))return"";let i=0;for(;i<t.length&&t.charCodeAt(i)===Ne;)i++;let s=t.length;for(;s-1>i&&t.charCodeAt(s-1)===Ne;)s--;const a=s-i;let o=0;for(;o<e.length&&e.charCodeAt(o)===Ne;)o++;let l=e.length;for(;l-1>o&&e.charCodeAt(l-1)===Ne;)l--;const c=l-o,h=a<c?a:c;let u=-1,f=0;for(;f<h;f++){const g=t.charCodeAt(i+f);if(g!==e.charCodeAt(o+f))break;g===Ne&&(u=f)}if(f!==h){if(u===-1)return r}else{if(c>h){if(e.charCodeAt(o+f)===Ne)return r.slice(o+f+1);if(f===2)return r.slice(o+f)}a>h&&(t.charCodeAt(i+f)===Ne?u=f:f===2&&(u=3)),u===-1&&(u=0)}let m="";for(f=i+u+1;f<=s;++f)(f===s||t.charCodeAt(f)===Ne)&&(m+=m.length===0?"..":"\\..");return o+=u,m.length>0?`${m}${r.slice(o,l)}`:(r.charCodeAt(o)===Ne&&++o,r.slice(o,l))},toNamespacedPath(t){if(typeof t!="string"||t.length===0)return t;const e=Re.resolve(t);if(e.length<=2)return t;if(e.charCodeAt(0)===Ne){if(e.charCodeAt(1)===Ne){const n=e.charCodeAt(2);if(n!==sh&&n!==pt)return`\\\\?\\UNC\\${e.slice(2)}`}}else if(gt(e.charCodeAt(0))&&e.charCodeAt(1)===ft&&e.charCodeAt(2)===Ne)return`\\\\?\\${e}`;return t},dirname(t){de(t,"path");const e=t.length;if(e===0)return".";let n=-1,r=0;const i=t.charCodeAt(0);if(e===1)return Y(i)?t:".";if(Y(i)){if(n=r=1,Y(t.charCodeAt(1))){let o=2,l=o;for(;o<e&&!Y(t.charCodeAt(o));)o++;if(o<e&&o!==l){for(l=o;o<e&&Y(t.charCodeAt(o));)o++;if(o<e&&o!==l){for(l=o;o<e&&!Y(t.charCodeAt(o));)o++;if(o===e)return t;o!==l&&(n=r=o+1)}}}}else gt(i)&&t.charCodeAt(1)===ft&&(n=e>2&&Y(t.charCodeAt(2))?3:2,r=n);let s=-1,a=!0;for(let o=e-1;o>=r;--o)if(Y(t.charCodeAt(o))){if(!a){s=o;break}}else a=!1;if(s===-1){if(n===-1)return".";s=n}return t.slice(0,s)},basename(t,e){e!==void 0&&de(e,"ext"),de(t,"path");let n=0,r=-1,i=!0,s;if(t.length>=2&>(t.charCodeAt(0))&&t.charCodeAt(1)===ft&&(n=2),e!==void 0&&e.length>0&&e.length<=t.length){if(e===t)return"";let a=e.length-1,o=-1;for(s=t.length-1;s>=n;--s){const l=t.charCodeAt(s);if(Y(l)){if(!i){n=s+1;break}}else o===-1&&(i=!1,o=s+1),a>=0&&(l===e.charCodeAt(a)?--a===-1&&(r=s):(a=-1,r=o))}return n===r?r=o:r===-1&&(r=t.length),t.slice(n,r)}for(s=t.length-1;s>=n;--s)if(Y(t.charCodeAt(s))){if(!i){n=s+1;break}}else r===-1&&(i=!1,r=s+1);return r===-1?"":t.slice(n,r)},extname(t){de(t,"path");let e=0,n=-1,r=0,i=-1,s=!0,a=0;t.length>=2&&t.charCodeAt(1)===ft&>(t.charCodeAt(0))&&(e=r=2);for(let o=t.length-1;o>=e;--o){const l=t.charCodeAt(o);if(Y(l)){if(!s){r=o+1;break}continue}i===-1&&(s=!1,i=o+1),l===pt?n===-1?n=o:a!==1&&(a=1):n!==-1&&(a=-1)}return n===-1||i===-1||a===0||a===1&&n===i-1&&n===r+1?"":t.slice(n,i)},format:Ss.bind(null,"\\"),parse(t){de(t,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return e;const n=t.length;let r=0,i=t.charCodeAt(0);if(n===1)return Y(i)?(e.root=e.dir=t,e):(e.base=e.name=t,e);if(Y(i)){if(r=1,Y(t.charCodeAt(1))){let u=2,f=u;for(;u<n&&!Y(t.charCodeAt(u));)u++;if(u<n&&u!==f){for(f=u;u<n&&Y(t.charCodeAt(u));)u++;if(u<n&&u!==f){for(f=u;u<n&&!Y(t.charCodeAt(u));)u++;u===n?r=u:u!==f&&(r=u+1)}}}}else if(gt(i)&&t.charCodeAt(1)===ft){if(n<=2)return e.root=e.dir=t,e;if(r=2,Y(t.charCodeAt(2))){if(n===3)return e.root=e.dir=t,e;r=3}}r>0&&(e.root=t.slice(0,r));let s=-1,a=r,o=-1,l=!0,c=t.length-1,h=0;for(;c>=r;--c){if(i=t.charCodeAt(c),Y(i)){if(!l){a=c+1;break}continue}o===-1&&(l=!1,o=c+1),i===pt?s===-1?s=c:h!==1&&(h=1):s!==-1&&(h=-1)}return o!==-1&&(s===-1||h===0||h===1&&s===o-1&&s===a+1?e.base=e.name=t.slice(a,o):(e.name=t.slice(a,s),e.base=t.slice(a,o),e.ext=t.slice(s,o))),a>0&&a!==r?e.dir=t.slice(0,a-1):e.dir=e.root,e},sep:"\\",delimiter:";",win32:null,posix:null},oh=(()=>{if(mt){const t=/\\/g;return()=>{const e=Vn().replace(t,"/");return e.slice(e.indexOf("/"))}}return()=>Vn()})(),Me={resolve(...t){let e="",n=!1;for(let r=t.length-1;r>=-1&&!n;r--){const i=r>=0?t[r]:oh();de(i,"path"),i.length!==0&&(e=`${i}/${e}`,n=i.charCodeAt(0)===xe)}return e=Bn(e,!n,"/",Tr),n?`/${e}`:e.length>0?e:"."},normalize(t){if(de(t,"path"),t.length===0)return".";const e=t.charCodeAt(0)===xe,n=t.charCodeAt(t.length-1)===xe;return t=Bn(t,!e,"/",Tr),t.length===0?e?"/":n?"./":".":(n&&(t+="/"),e?`/${t}`:t)},isAbsolute(t){return de(t,"path"),t.length>0&&t.charCodeAt(0)===xe},join(...t){if(t.length===0)return".";let e;for(let n=0;n<t.length;++n){const r=t[n];de(r,"path"),r.length>0&&(e===void 0?e=r:e+=`/${r}`)}return e===void 0?".":Me.normalize(e)},relative(t,e){if(de(t,"from"),de(e,"to"),t===e||(t=Me.resolve(t),e=Me.resolve(e),t===e))return"";const n=1,r=t.length,i=r-n,s=1,a=e.length-s,o=i<a?i:a;let l=-1,c=0;for(;c<o;c++){const u=t.charCodeAt(n+c);if(u!==e.charCodeAt(s+c))break;u===xe&&(l=c)}if(c===o)if(a>o){if(e.charCodeAt(s+c)===xe)return e.slice(s+c+1);if(c===0)return e.slice(s+c)}else i>o&&(t.charCodeAt(n+c)===xe?l=c:c===0&&(l=0));let h="";for(c=n+l+1;c<=r;++c)(c===r||t.charCodeAt(c)===xe)&&(h+=h.length===0?"..":"/..");return`${h}${e.slice(s+l)}`},toNamespacedPath(t){return t},dirname(t){if(de(t,"path"),t.length===0)return".";const e=t.charCodeAt(0)===xe;let n=-1,r=!0;for(let i=t.length-1;i>=1;--i)if(t.charCodeAt(i)===xe){if(!r){n=i;break}}else r=!1;return n===-1?e?"/":".":e&&n===1?"//":t.slice(0,n)},basename(t,e){e!==void 0&&de(e,"ext"),de(t,"path");let n=0,r=-1,i=!0,s;if(e!==void 0&&e.length>0&&e.length<=t.length){if(e===t)return"";let a=e.length-1,o=-1;for(s=t.length-1;s>=0;--s){const l=t.charCodeAt(s);if(l===xe){if(!i){n=s+1;break}}else o===-1&&(i=!1,o=s+1),a>=0&&(l===e.charCodeAt(a)?--a===-1&&(r=s):(a=-1,r=o))}return n===r?r=o:r===-1&&(r=t.length),t.slice(n,r)}for(s=t.length-1;s>=0;--s)if(t.charCodeAt(s)===xe){if(!i){n=s+1;break}}else r===-1&&(i=!1,r=s+1);return r===-1?"":t.slice(n,r)},extname(t){de(t,"path");let e=-1,n=0,r=-1,i=!0,s=0;for(let a=t.length-1;a>=0;--a){const o=t.charCodeAt(a);if(o===xe){if(!i){n=a+1;break}continue}r===-1&&(i=!1,r=a+1),o===pt?e===-1?e=a:s!==1&&(s=1):e!==-1&&(s=-1)}return e===-1||r===-1||s===0||s===1&&e===r-1&&e===n+1?"":t.slice(e,r)},format:Ss.bind(null,"/"),parse(t){de(t,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return e;const n=t.charCodeAt(0)===xe;let r;n?(e.root="/",r=1):r=0;let i=-1,s=0,a=-1,o=!0,l=t.length-1,c=0;for(;l>=r;--l){const h=t.charCodeAt(l);if(h===xe){if(!o){s=l+1;break}continue}a===-1&&(o=!1,a=l+1),h===pt?i===-1?i=l:c!==1&&(c=1):i!==-1&&(c=-1)}if(a!==-1){const h=s===0&&n?1:s;i===-1||c===0||c===1&&i===a-1&&i===s+1?e.base=e.name=t.slice(h,a):(e.name=t.slice(h,i),e.base=t.slice(h,a),e.ext=t.slice(i,a))}return s>0?e.dir=t.slice(0,s-1):n&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};Me.win32=Re.win32=Re,Me.posix=Re.posix=Me,mt?Re.normalize:Me.normalize,mt?Re.resolve:Me.resolve,mt?Re.relative:Me.relative,mt?Re.dirname:Me.dirname,mt?Re.basename:Me.basename,mt?Re.extname:Me.extname,mt?Re.sep:Me.sep;const lh=/^\w[\w\d+.-]*$/,ch=/^\//,hh=/^\/\//;function dh(t,e){if(!t.scheme&&e)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${t.authority}", path: "${t.path}", query: "${t.query}", fragment: "${t.fragment}"}`);if(t.scheme&&!lh.test(t.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(t.path){if(t.authority){if(!ch.test(t.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(hh.test(t.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function uh(t,e){return!t&&!e?"file":t}function ph(t,e){switch(t){case"https":case"http":case"file":e?e[0]!==$e&&(e=$e+e):e=$e;break}return e}const oe="",$e="/",fh=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;let Wr=class Cr{static isUri(e){return e instanceof Cr?!0:e?typeof e.authority=="string"&&typeof e.fragment=="string"&&typeof e.path=="string"&&typeof e.query=="string"&&typeof e.scheme=="string"&&typeof e.fsPath=="string"&&typeof e.with=="function"&&typeof e.toString=="function":!1}constructor(e,n,r,i,s,a=!1){typeof e=="object"?(this.scheme=e.scheme||oe,this.authority=e.authority||oe,this.path=e.path||oe,this.query=e.query||oe,this.fragment=e.fragment||oe):(this.scheme=uh(e,a),this.authority=n||oe,this.path=ph(this.scheme,r||oe),this.query=i||oe,this.fragment=s||oe,dh(this,a))}get fsPath(){return Or(this,!1)}with(e){if(!e)return this;let{scheme:n,authority:r,path:i,query:s,fragment:a}=e;return n===void 0?n=this.scheme:n===null&&(n=oe),r===void 0?r=this.authority:r===null&&(r=oe),i===void 0?i=this.path:i===null&&(i=oe),s===void 0?s=this.query:s===null&&(s=oe),a===void 0?a=this.fragment:a===null&&(a=oe),n===this.scheme&&r===this.authority&&i===this.path&&s===this.query&&a===this.fragment?this:new Ot(n,r,i,s,a)}static parse(e,n=!1){const r=fh.exec(e);return r?new Ot(r[2]||oe,qn(r[4]||oe),qn(r[5]||oe),qn(r[7]||oe),qn(r[9]||oe),n):new Ot(oe,oe,oe,oe,oe)}static file(e){let n=oe;if(sn&&(e=e.replace(/\\/g,$e)),e[0]===$e&&e[1]===$e){const r=e.indexOf($e,2);r===-1?(n=e.substring(2),e=$e):(n=e.substring(2,r),e=e.substring(r)||$e)}return new Ot("file",n,e,oe,oe)}static from(e,n){return new Ot(e.scheme,e.authority,e.path,e.query,e.fragment,n)}static joinPath(e,...n){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let r;return sn&&e.scheme==="file"?r=Cr.file(Re.join(Or(e,!0),...n)).path:r=Me.join(e.path,...n),e.with({path:r})}toString(e=!1){return Ur(this,e)}toJSON(){return this}static revive(e){var n,r;if(e){if(e instanceof Cr)return e;{const i=new Ot(e);return i._formatted=(n=e.external)!==null&&n!==void 0?n:null,i._fsPath=e._sep===Cs&&(r=e.fsPath)!==null&&r!==void 0?r:null,i}}else return e}};const Cs=sn?1:void 0;class Ot extends Wr{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=Or(this,!1)),this._fsPath}toString(e=!1){return e?Ur(this,!0):(this._formatted||(this._formatted=Ur(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=Cs),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 ks={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 _s(t,e,n){let r,i=-1;for(let s=0;s<t.length;s++){const a=t.charCodeAt(s);if(a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||a===45||a===46||a===95||a===126||e&&a===47||n&&a===91||n&&a===93||n&&a===58)i!==-1&&(r+=encodeURIComponent(t.substring(i,s)),i=-1),r!==void 0&&(r+=t.charAt(s));else{r===void 0&&(r=t.substr(0,s));const o=ks[a];o!==void 0?(i!==-1&&(r+=encodeURIComponent(t.substring(i,s)),i=-1),r+=o):i===-1&&(i=s)}}return i!==-1&&(r+=encodeURIComponent(t.substring(i))),r!==void 0?r:t}function mh(t){let e;for(let n=0;n<t.length;n++){const r=t.charCodeAt(n);r===35||r===63?(e===void 0&&(e=t.substr(0,n)),e+=ks[r]):e!==void 0&&(e+=t[n])}return e!==void 0?e:t}function Or(t,e){let n;return t.authority&&t.path.length>1&&t.scheme==="file"?n=`//${t.authority}${t.path}`:t.path.charCodeAt(0)===47&&(t.path.charCodeAt(1)>=65&&t.path.charCodeAt(1)<=90||t.path.charCodeAt(1)>=97&&t.path.charCodeAt(1)<=122)&&t.path.charCodeAt(2)===58?e?n=t.path.substr(1):n=t.path[1].toLowerCase()+t.path.substr(2):n=t.path,sn&&(n=n.replace(/\//g,"\\")),n}function Ur(t,e){const n=e?mh:_s;let r="",{scheme:i,authority:s,path:a,query:o,fragment:l}=t;if(i&&(r+=i,r+=":"),(s||i==="file")&&(r+=$e,r+=$e),s){let c=s.indexOf("@");if(c!==-1){const h=s.substr(0,c);s=s.substr(c+1),c=h.lastIndexOf(":"),c===-1?r+=n(h,!1,!1):(r+=n(h.substr(0,c),!1,!1),r+=":",r+=n(h.substr(c+1),!1,!0)),r+="@"}s=s.toLowerCase(),c=s.lastIndexOf(":"),c===-1?r+=n(s,!1,!0):(r+=n(s.substr(0,c),!1,!0),r+=s.substr(c))}if(a){if(a.length>=3&&a.charCodeAt(0)===47&&a.charCodeAt(2)===58){const c=a.charCodeAt(1);c>=65&&c<=90&&(a=`/${String.fromCharCode(c+32)}:${a.substr(3)}`)}else if(a.length>=2&&a.charCodeAt(1)===58){const c=a.charCodeAt(0);c>=65&&c<=90&&(a=`${String.fromCharCode(c+32)}:${a.substr(2)}`)}r+=n(a,!0,!1)}return o&&(r+="?",r+=n(o,!1,!1)),l&&(r+="#",r+=e?l:_s(l,!1,!1)),r}function Es(t){try{return decodeURIComponent(t)}catch{return t.length>3?t.substr(0,3)+Es(t.substr(3)):t}}const Rs=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function qn(t){return t.match(Rs)?t.replace(Rs,e=>Es(e)):t}let Ye=class At{constructor(e,n){this.lineNumber=e,this.column=n}with(e=this.lineNumber,n=this.column){return e===this.lineNumber&&n===this.column?this:new At(e,n)}delta(e=0,n=0){return this.with(this.lineNumber+e,this.column+n)}equals(e){return At.equals(this,e)}static equals(e,n){return!e&&!n?!0:!!e&&!!n&&e.lineNumber===n.lineNumber&&e.column===n.column}isBefore(e){return At.isBefore(this,e)}static isBefore(e,n){return e.lineNumber<n.lineNumber?!0:n.lineNumber<e.lineNumber?!1:e.column<n.column}isBeforeOrEqual(e){return At.isBeforeOrEqual(this,e)}static isBeforeOrEqual(e,n){return e.lineNumber<n.lineNumber?!0:n.lineNumber<e.lineNumber?!1:e.column<=n.column}static compare(e,n){const r=e.lineNumber|0,i=n.lineNumber|0;if(r===i){const s=e.column|0,a=n.column|0;return s-a}return r-i}clone(){return new At(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(e){return new At(e.lineNumber,e.column)}static isIPosition(e){return e&&typeof e.lineNumber=="number"&&typeof e.column=="number"}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}},ve=class pe{constructor(e,n,r,i){e>r||e===r&&n>i?(this.startLineNumber=r,this.startColumn=i,this.endLineNumber=e,this.endColumn=n):(this.startLineNumber=e,this.startColumn=n,this.endLineNumber=r,this.endColumn=i)}isEmpty(){return pe.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return pe.containsPosition(this,e)}static containsPosition(e,n){return!(n.lineNumber<e.startLineNumber||n.lineNumber>e.endLineNumber||n.lineNumber===e.startLineNumber&&n.column<e.startColumn||n.lineNumber===e.endLineNumber&&n.column>e.endColumn)}static strictContainsPosition(e,n){return!(n.lineNumber<e.startLineNumber||n.lineNumber>e.endLineNumber||n.lineNumber===e.startLineNumber&&n.column<=e.startColumn||n.lineNumber===e.endLineNumber&&n.column>=e.endColumn)}containsRange(e){return pe.containsRange(this,e)}static containsRange(e,n){return!(n.startLineNumber<e.startLineNumber||n.endLineNumber<e.startLineNumber||n.startLineNumber>e.endLineNumber||n.endLineNumber>e.endLineNumber||n.startLineNumber===e.startLineNumber&&n.startColumn<e.startColumn||n.endLineNumber===e.endLineNumber&&n.endColumn>e.endColumn)}strictContainsRange(e){return pe.strictContainsRange(this,e)}static strictContainsRange(e,n){return!(n.startLineNumber<e.startLineNumber||n.endLineNumber<e.startLineNumber||n.startLineNumber>e.endLineNumber||n.endLineNumber>e.endLineNumber||n.startLineNumber===e.startLineNumber&&n.startColumn<=e.startColumn||n.endLineNumber===e.endLineNumber&&n.endColumn>=e.endColumn)}plusRange(e){return pe.plusRange(this,e)}static plusRange(e,n){let r,i,s,a;return n.startLineNumber<e.startLineNumber?(r=n.startLineNumber,i=n.startColumn):n.startLineNumber===e.startLineNumber?(r=n.startLineNumber,i=Math.min(n.startColumn,e.startColumn)):(r=e.startLineNumber,i=e.startColumn),n.endLineNumber>e.endLineNumber?(s=n.endLineNumber,a=n.endColumn):n.endLineNumber===e.endLineNumber?(s=n.endLineNumber,a=Math.max(n.endColumn,e.endColumn)):(s=e.endLineNumber,a=e.endColumn),new pe(r,i,s,a)}intersectRanges(e){return pe.intersectRanges(this,e)}static intersectRanges(e,n){let r=e.startLineNumber,i=e.startColumn,s=e.endLineNumber,a=e.endColumn;const o=n.startLineNumber,l=n.startColumn,c=n.endLineNumber,h=n.endColumn;return r<o?(r=o,i=l):r===o&&(i=Math.max(i,l)),s>c?(s=c,a=h):s===c&&(a=Math.min(a,h)),r>s||r===s&&i>a?null:new pe(r,i,s,a)}equalsRange(e){return pe.equalsRange(this,e)}static equalsRange(e,n){return!e&&!n?!0:!!e&&!!n&&e.startLineNumber===n.startLineNumber&&e.startColumn===n.startColumn&&e.endLineNumber===n.endLineNumber&&e.endColumn===n.endColumn}getEndPosition(){return pe.getEndPosition(this)}static getEndPosition(e){return new Ye(e.endLineNumber,e.endColumn)}getStartPosition(){return pe.getStartPosition(this)}static getStartPosition(e){return new Ye(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,n){return new pe(this.startLineNumber,this.startColumn,e,n)}setStartPosition(e,n){return new pe(e,n,this.endLineNumber,this.endColumn)}collapseToStart(){return pe.collapseToStart(this)}static collapseToStart(e){return new pe(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return pe.collapseToEnd(this)}static collapseToEnd(e){return new pe(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new pe(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e,n=e){return new pe(e.lineNumber,e.column,n.lineNumber,n.column)}static lift(e){return e?new pe(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&typeof e.startLineNumber=="number"&&typeof e.startColumn=="number"&&typeof e.endLineNumber=="number"&&typeof e.endColumn=="number"}static areIntersectingOrTouching(e,n){return!(e.endLineNumber<n.startLineNumber||e.endLineNumber===n.startLineNumber&&e.endColumn<n.startColumn||n.endLineNumber<e.startLineNumber||n.endLineNumber===e.startLineNumber&&n.endColumn<e.startColumn)}static areIntersecting(e,n){return!(e.endLineNumber<n.startLineNumber||e.endLineNumber===n.startLineNumber&&e.endColumn<=n.startColumn||n.endLineNumber<e.startLineNumber||n.endLineNumber===e.startLineNumber&&n.endColumn<=e.startColumn)}static compareRangesUsingStarts(e,n){if(e&&n){const s=e.startLineNumber|0,a=n.startLineNumber|0;if(s===a){const o=e.startColumn|0,l=n.startColumn|0;if(o===l){const c=e.endLineNumber|0,h=n.endLineNumber|0;if(c===h){const u=e.endColumn|0,f=n.endColumn|0;return u-f}return c-h}return o-l}return s-a}return(e?1:0)-(n?1:0)}static compareRangesUsingEnds(e,n){return e.endLineNumber===n.endLineNumber?e.endColumn===n.endColumn?e.startLineNumber===n.startLineNumber?e.startColumn-n.startColumn:e.startLineNumber-n.startLineNumber:e.endColumn-n.endColumn:e.endLineNumber-n.endLineNumber}static spansMultipleLines(e){return e.endLineNumber>e.startLineNumber}toJSON(){return this}};function gh(t,e,n=(r,i)=>r===i){if(t===e)return!0;if(!t||!e||t.length!==e.length)return!1;for(let r=0,i=t.length;r<i;r++)if(!n(t[r],e[r]))return!1;return!0}function*bh(t,e){let n,r;for(const i of t)r!==void 0&&e(r,i)?n.push(i):(n&&(yield n),n=[i]),r=i;n&&(yield n)}function vh(t,e){for(let n=0;n<=t.length;n++)e(n===0?void 0:t[n-1],n===t.length?void 0:t[n])}function yh(t,e){for(let n=0;n<t.length;n++)e(n===0?void 0:t[n-1],t[n],n+1===t.length?void 0:t[n+1])}function wh(t,e){for(const n of e)t.push(n)}var Fs;(function(t){function e(s){return s<0}t.isLessThan=e;function n(s){return s<=0}t.isLessThanOrEqual=n;function r(s){return s>0}t.isGreaterThan=r;function i(s){return s===0}t.isNeitherLessOrGreaterThan=i,t.greaterThan=1,t.lessThan=-1,t.neitherLessOrGreaterThan=0})(Fs||(Fs={}));function jn(t,e){return(n,r)=>e(t(n),t(r))}const $n=(t,e)=>t-e;function xh(t){return(e,n)=>-t(e,n)}function Ds(t){return t<0?0:t>255?255:t|0}function Ut(t){return t<0?0:t>4294967295?4294967295:t|0}class Sh{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,n){e=Ut(e);const r=this.values,i=this.prefixSum,s=n.length;return s===0?!1:(this.values=new Uint32Array(r.length+s),this.values.set(r.subarray(0,e),0),this.values.set(r.subarray(e),e+s),this.values.set(n,e),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(e,n){return e=Ut(e),n=Ut(n),this.values[e]===n?!1:(this.values[e]=n,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)}removeValues(e,n){e=Ut(e),n=Ut(n);const r=this.values,i=this.prefixSum;if(e>=r.length)return!1;const s=r.length-e;return n>=s&&(n=s),n===0?!1:(this.values=new Uint32Array(r.length-n),this.values.set(r.subarray(0,e),0),this.values.set(r.subarray(e+n),e),this.prefixSum=new Uint32Array(this.values.length),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=Ut(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let n=this.prefixSumValidIndex[0]+1;n===0&&(this.prefixSum[0]=this.values[0],n++),e>=this.values.length&&(e=this.values.length-1);for(let r=n;r<=e;r++)this.prefixSum[r]=this.prefixSum[r-1]+this.values[r];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let n=0,r=this.values.length-1,i=0,s=0,a=0;for(;n<=r;)if(i=n+(r-n)/2|0,s=this.prefixSum[i],a=s-this.values[i],e<a)r=i-1;else if(e>=s)n=i+1;else break;return new Ch(i,e-a)}}class Ch{constructor(e,n){this.index=e,this.remainder=n,this._prefixSumIndexOfResultBrand=void 0,this.index=e,this.remainder=n}}class kh{constructor(e,n,r,i){this._uri=e,this._lines=n,this._eol=r,this._versionId=i,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return this._cachedTextValue===null&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);const n=e.changes;for(const r of n)this._acceptDeleteRange(r.range),this._acceptInsertText(new Ye(r.range.startLineNumber,r.range.startColumn),r.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const e=this._eol.length,n=this._lines.length,r=new Uint32Array(n);for(let i=0;i<n;i++)r[i]=this._lines[i].length+e;this._lineStarts=new Sh(r)}}_setLineText(e,n){this._lines[e]=n,this._lineStarts&&this._lineStarts.setValue(e,this._lines[e].length+this._eol.length)}_acceptDeleteRange(e){if(e.startLineNumber===e.endLineNumber){if(e.startColumn===e.endColumn)return;this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.startLineNumber-1].substring(e.endColumn-1));return}this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.endLineNumber-1].substring(e.endColumn-1)),this._lines.splice(e.startLineNumber,e.endLineNumber-e.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(e.startLineNumber,e.endLineNumber-e.startLineNumber)}_acceptInsertText(e,n){if(n.length===0)return;const r=Pc(n);if(r.length===1){this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+r[0]+this._lines[e.lineNumber-1].substring(e.column-1));return}r[r.length-1]+=this._lines[e.lineNumber-1].substring(e.column-1),this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+r[0]);const i=new Uint32Array(r.length-1);for(let s=1;s<r.length;s++)this._lines.splice(e.lineNumber+s-1,0,r[s]),i[s-1]=r[s].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,i)}}const _h="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function Eh(t=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const n of _h)t.indexOf(n)>=0||(e+="\\"+n);return e+="\\s]+)",new RegExp(e,"g")}const As=Eh();function Ns(t){let e=As;if(t&&t instanceof RegExp)if(t.global)e=t;else{let n="g";t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.unicode&&(n+="u"),e=new RegExp(t.source,n)}return e.lastIndex=0,e}const Ms=new bc;Ms.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function Vr(t,e,n,r,i){if(e=Ns(e),i||(i=Tn.first(Ms)),n.length>i.maxLen){let c=t-i.maxLen/2;return c<0?c=0:r+=c,n=n.substring(c,t+i.maxLen/2),Vr(t,e,n,r,i)}const s=Date.now(),a=t-1-r;let o=-1,l=null;for(let c=1;!(Date.now()-s>=i.timeBudget);c++){const h=a-i.windowSize*c;e.lastIndex=Math.max(0,h);const u=Rh(e,n,a,o);if(!u&&l||(l=u,h<=0))break;o=h}if(l){const c={word:l[0],startColumn:r+1+l.index,endColumn:r+1+l.index+l[0].length};return e.lastIndex=0,c}return null}function Rh(t,e,n,r){let i;for(;i=t.exec(e);){const s=i.index||0;if(s<=n&&t.lastIndex>=n)return i;if(r>0&&s>r)return null}return null}class Br{constructor(e){const n=Ds(e);this._defaultValue=n,this._asciiMap=Br._createAsciiMap(n),this._map=new Map}static _createAsciiMap(e){const n=new Uint8Array(256);return n.fill(e),n}set(e,n){const r=Ds(n);e>=0&&e<256?this._asciiMap[e]=r:this._map.set(e,r)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}class Fh{constructor(e,n,r){const i=new Uint8Array(e*n);for(let s=0,a=e*n;s<a;s++)i[s]=r;this._data=i,this.rows=e,this.cols=n}get(e,n){return this._data[e*this.cols+n]}set(e,n,r){this._data[e*this.cols+n]=r}}class Dh{constructor(e){let n=0,r=0;for(let s=0,a=e.length;s<a;s++){const[o,l,c]=e[s];l>n&&(n=l),o>r&&(r=o),c>r&&(r=c)}n++,r++;const i=new Fh(r,n,0);for(let s=0,a=e.length;s<a;s++){const[o,l,c]=e[s];i.set(o,l,c)}this._states=i,this._maxCharCode=n}nextState(e,n){return n<0||n>=this._maxCharCode?0:this._states.get(e,n)}}let qr=null;function Ah(){return qr===null&&(qr=new Dh([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),qr}let an=null;function Nh(){if(an===null){an=new Br(0);const t=` <>'"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…`;for(let n=0;n<t.length;n++)an.set(t.charCodeAt(n),1);const e=".,;:";for(let n=0;n<e.length;n++)an.set(e.charCodeAt(n),2)}return an}class Hn{static _createLink(e,n,r,i,s){let a=s-1;do{const o=n.charCodeAt(a);if(e.get(o)!==2)break;a--}while(a>i);if(i>0){const o=n.charCodeAt(i-1),l=n.charCodeAt(a);(o===40&&l===41||o===91&&l===93||o===123&&l===125)&&a--}return{range:{startLineNumber:r,startColumn:i+1,endLineNumber:r,endColumn:a+2},url:n.substring(i,a+1)}}static computeLinks(e,n=Ah()){const r=Nh(),i=[];for(let s=1,a=e.getLineCount();s<=a;s++){const o=e.getLineContent(s),l=o.length;let c=0,h=0,u=0,f=1,m=!1,g=!1,b=!1,y=!1;for(;c<l;){let C=!1;const k=o.charCodeAt(c);if(f===13){let w;switch(k){case 40:m=!0,w=0;break;case 41:w=m?0:1;break;case 91:b=!0,g=!0,w=0;break;case 93:b=!1,w=g?0:1;break;case 123:y=!0,w=0;break;case 125:w=y?0:1;break;case 39:case 34:case 96:u===k?w=1:u===39||u===34||u===96?w=0:w=1;break;case 42:w=u===42?1:0;break;case 124:w=u===124?1:0;break;case 32:w=b?0:1;break;default:w=r.get(k)}w===1&&(i.push(Hn._createLink(r,o,s,h,c)),C=!0)}else if(f===12){let w;k===91?(g=!0,w=0):w=r.get(k),w===1?C=!0:f=13}else f=n.nextState(f,k),f===0&&(C=!0);C&&(f=1,m=!1,g=!1,y=!1,h=c+1,u=k),c++}f===13&&i.push(Hn._createLink(r,o,s,h,l))}return i}}function Mh(t){return!t||typeof t.getLineCount!="function"||typeof t.getLineContent!="function"?[]:Hn.computeLinks(t)}class jr{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(e,n,r,i,s){if(e&&n){const a=this.doNavigateValueSet(n,s);if(a)return{range:e,value:a}}if(r&&i){const a=this.doNavigateValueSet(i,s);if(a)return{range:r,value:a}}return null}doNavigateValueSet(e,n){const r=this.numberReplace(e,n);return r!==null?r:this.textReplace(e,n)}numberReplace(e,n){const r=Math.pow(10,e.length-(e.lastIndexOf(".")+1));let i=Number(e);const s=parseFloat(e);return!isNaN(i)&&!isNaN(s)&&i===s?i===0&&!n?null:(i=Math.floor(i*r),i+=n?r:-r,String(i/r)):null}textReplace(e,n){return this.valueSetsReplace(this._defaultValueSet,e,n)}valueSetsReplace(e,n,r){let i=null;for(let s=0,a=e.length;i===null&&s<a;s++)i=this.valueSetReplace(e[s],n,r);return i}valueSetReplace(e,n,r){let i=e.indexOf(n);return i>=0?(i+=r?1:-1,i<0?i=e.length-1:i%=e.length,e[i]):null}}jr.INSTANCE=new jr;const zs=Object.freeze(function(t,e){const n=setTimeout(t.bind(e),0);return{dispose(){clearTimeout(n)}}});var Gn;(function(t){function e(n){return n===t.None||n===t.Cancelled||n instanceof Jn?!0:!n||typeof n!="object"?!1:typeof n.isCancellationRequested=="boolean"&&typeof n.onCancellationRequested=="function"}t.isCancellationToken=e,t.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:_r.None}),t.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:zs})})(Gn||(Gn={}));class Jn{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?zs:(this._emitter||(this._emitter=new qe),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class zh{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new Jn),this._token}cancel(){this._token?this._token instanceof Jn&&this._token.cancel():this._token=Gn.Cancelled}dispose(e=!1){var n;e&&this.cancel(),(n=this._parentListener)===null||n===void 0||n.dispose(),this._token?this._token instanceof Jn&&this._token.dispose():this._token=Gn.None}}class $r{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,n){this._keyCodeToStr[e]=n,this._strToKeyCode[n.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const Xn=new $r,Hr=new $r,Gr=new $r,Lh=new Array(230),Ph=Object.create(null),Ih=Object.create(null);(function(){const t="",e=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",t,t],[1,1,"Hyper",0,t,0,t,t,t],[1,2,"Super",0,t,0,t,t,t],[1,3,"Fn",0,t,0,t,t,t],[1,4,"FnLock",0,t,0,t,t,t],[1,5,"Suspend",0,t,0,t,t,t],[1,6,"Resume",0,t,0,t,t,t],[1,7,"Turbo",0,t,0,t,t,t],[1,8,"Sleep",0,t,0,"VK_SLEEP",t,t],[1,9,"WakeUp",0,t,0,t,t,t],[0,10,"KeyA",31,"A",65,"VK_A",t,t],[0,11,"KeyB",32,"B",66,"VK_B",t,t],[0,12,"KeyC",33,"C",67,"VK_C",t,t],[0,13,"KeyD",34,"D",68,"VK_D",t,t],[0,14,"KeyE",35,"E",69,"VK_E",t,t],[0,15,"KeyF",36,"F",70,"VK_F",t,t],[0,16,"KeyG",37,"G",71,"VK_G",t,t],[0,17,"KeyH",38,"H",72,"VK_H",t,t],[0,18,"KeyI",39,"I",73,"VK_I",t,t],[0,19,"KeyJ",40,"J",74,"VK_J",t,t],[0,20,"KeyK",41,"K",75,"VK_K",t,t],[0,21,"KeyL",42,"L",76,"VK_L",t,t],[0,22,"KeyM",43,"M",77,"VK_M",t,t],[0,23,"KeyN",44,"N",78,"VK_N",t,t],[0,24,"KeyO",45,"O",79,"VK_O",t,t],[0,25,"KeyP",46,"P",80,"VK_P",t,t],[0,26,"KeyQ",47,"Q",81,"VK_Q",t,t],[0,27,"KeyR",48,"R",82,"VK_R",t,t],[0,28,"KeyS",49,"S",83,"VK_S",t,t],[0,29,"KeyT",50,"T",84,"VK_T",t,t],[0,30,"KeyU",51,"U",85,"VK_U",t,t],[0,31,"KeyV",52,"V",86,"VK_V",t,t],[0,32,"KeyW",53,"W",87,"VK_W",t,t],[0,33,"KeyX",54,"X",88,"VK_X",t,t],[0,34,"KeyY",55,"Y",89,"VK_Y",t,t],[0,35,"KeyZ",56,"Z",90,"VK_Z",t,t],[0,36,"Digit1",22,"1",49,"VK_1",t,t],[0,37,"Digit2",23,"2",50,"VK_2",t,t],[0,38,"Digit3",24,"3",51,"VK_3",t,t],[0,39,"Digit4",25,"4",52,"VK_4",t,t],[0,40,"Digit5",26,"5",53,"VK_5",t,t],[0,41,"Digit6",27,"6",54,"VK_6",t,t],[0,42,"Digit7",28,"7",55,"VK_7",t,t],[0,43,"Digit8",29,"8",56,"VK_8",t,t],[0,44,"Digit9",30,"9",57,"VK_9",t,t],[0,45,"Digit0",21,"0",48,"VK_0",t,t],[1,46,"Enter",3,"Enter",13,"VK_RETURN",t,t],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",t,t],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",t,t],[1,49,"Tab",2,"Tab",9,"VK_TAB",t,t],[1,50,"Space",10,"Space",32,"VK_SPACE",t,t],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,t,0,t,t,t],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",t,t],[1,64,"F1",59,"F1",112,"VK_F1",t,t],[1,65,"F2",60,"F2",113,"VK_F2",t,t],[1,66,"F3",61,"F3",114,"VK_F3",t,t],[1,67,"F4",62,"F4",115,"VK_F4",t,t],[1,68,"F5",63,"F5",116,"VK_F5",t,t],[1,69,"F6",64,"F6",117,"VK_F6",t,t],[1,70,"F7",65,"F7",118,"VK_F7",t,t],[1,71,"F8",66,"F8",119,"VK_F8",t,t],[1,72,"F9",67,"F9",120,"VK_F9",t,t],[1,73,"F10",68,"F10",121,"VK_F10",t,t],[1,74,"F11",69,"F11",122,"VK_F11",t,t],[1,75,"F12",70,"F12",123,"VK_F12",t,t],[1,76,"PrintScreen",0,t,0,t,t,t],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",t,t],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",t,t],[1,79,"Insert",19,"Insert",45,"VK_INSERT",t,t],[1,80,"Home",14,"Home",36,"VK_HOME",t,t],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",t,t],[1,82,"Delete",20,"Delete",46,"VK_DELETE",t,t],[1,83,"End",13,"End",35,"VK_END",t,t],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",t,t],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",t],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",t],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",t],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",t],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",t,t],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",t,t],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",t,t],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",t,t],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",t,t],[1,94,"NumpadEnter",3,t,0,t,t,t],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",t,t],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",t,t],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",t,t],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",t,t],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",t,t],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",t,t],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",t,t],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",t,t],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",t,t],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",t,t],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",t,t],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",t,t],[1,107,"ContextMenu",58,"ContextMenu",93,t,t,t],[1,108,"Power",0,t,0,t,t,t],[1,109,"NumpadEqual",0,t,0,t,t,t],[1,110,"F13",71,"F13",124,"VK_F13",t,t],[1,111,"F14",72,"F14",125,"VK_F14",t,t],[1,112,"F15",73,"F15",126,"VK_F15",t,t],[1,113,"F16",74,"F16",127,"VK_F16",t,t],[1,114,"F17",75,"F17",128,"VK_F17",t,t],[1,115,"F18",76,"F18",129,"VK_F18",t,t],[1,116,"F19",77,"F19",130,"VK_F19",t,t],[1,117,"F20",78,"F20",131,"VK_F20",t,t],[1,118,"F21",79,"F21",132,"VK_F21",t,t],[1,119,"F22",80,"F22",133,"VK_F22",t,t],[1,120,"F23",81,"F23",134,"VK_F23",t,t],[1,121,"F24",82,"F24",135,"VK_F24",t,t],[1,122,"Open",0,t,0,t,t,t],[1,123,"Help",0,t,0,t,t,t],[1,124,"Select",0,t,0,t,t,t],[1,125,"Again",0,t,0,t,t,t],[1,126,"Undo",0,t,0,t,t,t],[1,127,"Cut",0,t,0,t,t,t],[1,128,"Copy",0,t,0,t,t,t],[1,129,"Paste",0,t,0,t,t,t],[1,130,"Find",0,t,0,t,t,t],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",t,t],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",t,t],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",t,t],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",t,t],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",t,t],[1,136,"KanaMode",0,t,0,t,t,t],[0,137,"IntlYen",0,t,0,t,t,t],[1,138,"Convert",0,t,0,t,t,t],[1,139,"NonConvert",0,t,0,t,t,t],[1,140,"Lang1",0,t,0,t,t,t],[1,141,"Lang2",0,t,0,t,t,t],[1,142,"Lang3",0,t,0,t,t,t],[1,143,"Lang4",0,t,0,t,t,t],[1,144,"Lang5",0,t,0,t,t,t],[1,145,"Abort",0,t,0,t,t,t],[1,146,"Props",0,t,0,t,t,t],[1,147,"NumpadParenLeft",0,t,0,t,t,t],[1,148,"NumpadParenRight",0,t,0,t,t,t],[1,149,"NumpadBackspace",0,t,0,t,t,t],[1,150,"NumpadMemoryStore",0,t,0,t,t,t],[1,151,"NumpadMemoryRecall",0,t,0,t,t,t],[1,152,"NumpadMemoryClear",0,t,0,t,t,t],[1,153,"NumpadMemoryAdd",0,t,0,t,t,t],[1,154,"NumpadMemorySubtract",0,t,0,t,t,t],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",t,t],[1,156,"NumpadClearEntry",0,t,0,t,t,t],[1,0,t,5,"Ctrl",17,"VK_CONTROL",t,t],[1,0,t,4,"Shift",16,"VK_SHIFT",t,t],[1,0,t,6,"Alt",18,"VK_MENU",t,t],[1,0,t,57,"Meta",91,"VK_COMMAND",t,t],[1,157,"ControlLeft",5,t,0,"VK_LCONTROL",t,t],[1,158,"ShiftLeft",4,t,0,"VK_LSHIFT",t,t],[1,159,"AltLeft",6,t,0,"VK_LMENU",t,t],[1,160,"MetaLeft",57,t,0,"VK_LWIN",t,t],[1,161,"ControlRight",5,t,0,"VK_RCONTROL",t,t],[1,162,"ShiftRight",4,t,0,"VK_RSHIFT",t,t],[1,163,"AltRight",6,t,0,"VK_RMENU",t,t],[1,164,"MetaRight",57,t,0,"VK_RWIN",t,t],[1,165,"BrightnessUp",0,t,0,t,t,t],[1,166,"BrightnessDown",0,t,0,t,t,t],[1,167,"MediaPlay",0,t,0,t,t,t],[1,168,"MediaRecord",0,t,0,t,t,t],[1,169,"MediaFastForward",0,t,0,t,t,t],[1,170,"MediaRewind",0,t,0,t,t,t],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",t,t],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",t,t],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",t,t],[1,174,"Eject",0,t,0,t,t,t],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",t,t],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",t,t],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",t,t],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",t,t],[1,179,"LaunchApp1",0,t,0,"VK_MEDIA_LAUNCH_APP1",t,t],[1,180,"SelectTask",0,t,0,t,t,t],[1,181,"LaunchScreenSaver",0,t,0,t,t,t],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",t,t],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",t,t],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",t,t],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",t,t],[1,186,"BrowserStop",0,t,0,"VK_BROWSER_STOP",t,t],[1,187,"BrowserRefresh",0,t,0,"VK_BROWSER_REFRESH",t,t],[1,188,"BrowserFavorites",0,t,0,"VK_BROWSER_FAVORITES",t,t],[1,189,"ZoomToggle",0,t,0,t,t,t],[1,190,"MailReply",0,t,0,t,t,t],[1,191,"MailForward",0,t,0,t,t,t],[1,192,"MailSend",0,t,0,t,t,t],[1,0,t,114,"KeyInComposition",229,t,t,t],[1,0,t,116,"ABNT_C2",194,"VK_ABNT_C2",t,t],[1,0,t,96,"OEM_8",223,"VK_OEM_8",t,t],[1,0,t,0,t,0,"VK_KANA",t,t],[1,0,t,0,t,0,"VK_HANGUL",t,t],[1,0,t,0,t,0,"VK_JUNJA",t,t],[1,0,t,0,t,0,"VK_FINAL",t,t],[1,0,t,0,t,0,"VK_HANJA",t,t],[1,0,t,0,t,0,"VK_KANJI",t,t],[1,0,t,0,t,0,"VK_CONVERT",t,t],[1,0,t,0,t,0,"VK_NONCONVERT",t,t],[1,0,t,0,t,0,"VK_ACCEPT",t,t],[1,0,t,0,t,0,"VK_MODECHANGE",t,t],[1,0,t,0,t,0,"VK_SELECT",t,t],[1,0,t,0,t,0,"VK_PRINT",t,t],[1,0,t,0,t,0,"VK_EXECUTE",t,t],[1,0,t,0,t,0,"VK_SNAPSHOT",t,t],[1,0,t,0,t,0,"VK_HELP",t,t],[1,0,t,0,t,0,"VK_APPS",t,t],[1,0,t,0,t,0,"VK_PROCESSKEY",t,t],[1,0,t,0,t,0,"VK_PACKET",t,t],[1,0,t,0,t,0,"VK_DBE_SBCSCHAR",t,t],[1,0,t,0,t,0,"VK_DBE_DBCSCHAR",t,t],[1,0,t,0,t,0,"VK_ATTN",t,t],[1,0,t,0,t,0,"VK_CRSEL",t,t],[1,0,t,0,t,0,"VK_EXSEL",t,t],[1,0,t,0,t,0,"VK_EREOF",t,t],[1,0,t,0,t,0,"VK_PLAY",t,t],[1,0,t,0,t,0,"VK_ZOOM",t,t],[1,0,t,0,t,0,"VK_NONAME",t,t],[1,0,t,0,t,0,"VK_PA1",t,t],[1,0,t,0,t,0,"VK_OEM_CLEAR",t,t]],n=[],r=[];for(const i of e){const[s,a,o,l,c,h,u,f,m]=i;if(r[a]||(r[a]=!0,Ph[o]=a,Ih[o.toLowerCase()]=a),!n[l]){if(n[l]=!0,!c)throw new Error(`String representation missing for key code ${l} around scan code ${o}`);Xn.define(l,c),Hr.define(l,f||c),Gr.define(l,m||f||c)}h&&(Lh[h]=l)}})();var Ls;(function(t){function e(o){return Xn.keyCodeToStr(o)}t.toString=e;function n(o){return Xn.strToKeyCode(o)}t.fromString=n;function r(o){return Hr.keyCodeToStr(o)}t.toUserSettingsUS=r;function i(o){return Gr.keyCodeToStr(o)}t.toUserSettingsGeneral=i;function s(o){return Hr.strToKeyCode(o)||Gr.strToKeyCode(o)}t.fromUserSettings=s;function a(o){if(o>=98&&o<=113)return null;switch(o){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return Xn.keyCodeToStr(o)}t.toElectronAccelerator=a})(Ls||(Ls={}));function Th(t,e){const n=(e&65535)<<16>>>0;return(t|n)>>>0}class ze extends ve{constructor(e,n,r,i){super(e,n,r,i),this.selectionStartLineNumber=e,this.selectionStartColumn=n,this.positionLineNumber=r,this.positionColumn=i}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return ze.selectionsEqual(this,e)}static selectionsEqual(e,n){return e.selectionStartLineNumber===n.selectionStartLineNumber&&e.selectionStartColumn===n.selectionStartColumn&&e.positionLineNumber===n.positionLineNumber&&e.positionColumn===n.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,n){return this.getDirection()===0?new ze(this.startLineNumber,this.startColumn,e,n):new ze(e,n,this.startLineNumber,this.startColumn)}getPosition(){return new Ye(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new Ye(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,n){return this.getDirection()===0?new ze(e,n,this.endLineNumber,this.endColumn):new ze(this.endLineNumber,this.endColumn,e,n)}static fromPositions(e,n=e){return new ze(e.lineNumber,e.column,n.lineNumber,n.column)}static fromRange(e,n){return n===0?new ze(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new ze(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new ze(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,n){if(e&&!n||!e&&n)return!1;if(!e&&!n)return!0;if(e.length!==n.length)return!1;for(let r=0,i=e.length;r<i;r++)if(!this.selectionsEqual(e[r],n[r]))return!1;return!0}static isISelection(e){return e&&typeof e.selectionStartLineNumber=="number"&&typeof e.selectionStartColumn=="number"&&typeof e.positionLineNumber=="number"&&typeof e.positionColumn=="number"}static createWithDirection(e,n,r,i,s){return s===0?new ze(e,n,r,i):new ze(r,i,e,n)}}const Ps=Object.create(null);function d(t,e){if(Cc(e)){const n=Ps[e];if(n===void 0)throw new Error(`${t} references an unknown codicon: ${e}`);e=n}return Ps[t]=e,{id:t}}const Wh={add:d("add",6e4),plus:d("plus",6e4),gistNew:d("gist-new",6e4),repoCreate:d("repo-create",6e4),lightbulb:d("lightbulb",60001),lightBulb:d("light-bulb",60001),repo:d("repo",60002),repoDelete:d("repo-delete",60002),gistFork:d("gist-fork",60003),repoForked:d("repo-forked",60003),gitPullRequest:d("git-pull-request",60004),gitPullRequestAbandoned:d("git-pull-request-abandoned",60004),recordKeys:d("record-keys",60005),keyboard:d("keyboard",60005),tag:d("tag",60006),gitPullRequestLabel:d("git-pull-request-label",60006),tagAdd:d("tag-add",60006),tagRemove:d("tag-remove",60006),person:d("person",60007),personFollow:d("person-follow",60007),personOutline:d("person-outline",60007),personFilled:d("person-filled",60007),gitBranch:d("git-branch",60008),gitBranchCreate:d("git-branch-create",60008),gitBranchDelete:d("git-branch-delete",60008),sourceControl:d("source-control",60008),mirror:d("mirror",60009),mirrorPublic:d("mirror-public",60009),star:d("star",60010),starAdd:d("star-add",60010),starDelete:d("star-delete",60010),starEmpty:d("star-empty",60010),comment:d("comment",60011),commentAdd:d("comment-add",60011),alert:d("alert",60012),warning:d("warning",60012),search:d("search",60013),searchSave:d("search-save",60013),logOut:d("log-out",60014),signOut:d("sign-out",60014),logIn:d("log-in",60015),signIn:d("sign-in",60015),eye:d("eye",60016),eyeUnwatch:d("eye-unwatch",60016),eyeWatch:d("eye-watch",60016),circleFilled:d("circle-filled",60017),primitiveDot:d("primitive-dot",60017),closeDirty:d("close-dirty",60017),debugBreakpoint:d("debug-breakpoint",60017),debugBreakpointDisabled:d("debug-breakpoint-disabled",60017),debugHint:d("debug-hint",60017),terminalDecorationSuccess:d("terminal-decoration-success",60017),primitiveSquare:d("primitive-square",60018),edit:d("edit",60019),pencil:d("pencil",60019),info:d("info",60020),issueOpened:d("issue-opened",60020),gistPrivate:d("gist-private",60021),gitForkPrivate:d("git-fork-private",60021),lock:d("lock",60021),mirrorPrivate:d("mirror-private",60021),close:d("close",60022),removeClose:d("remove-close",60022),x:d("x",60022),repoSync:d("repo-sync",60023),sync:d("sync",60023),clone:d("clone",60024),desktopDownload:d("desktop-download",60024),beaker:d("beaker",60025),microscope:d("microscope",60025),vm:d("vm",60026),deviceDesktop:d("device-desktop",60026),file:d("file",60027),fileText:d("file-text",60027),more:d("more",60028),ellipsis:d("ellipsis",60028),kebabHorizontal:d("kebab-horizontal",60028),mailReply:d("mail-reply",60029),reply:d("reply",60029),organization:d("organization",60030),organizationFilled:d("organization-filled",60030),organizationOutline:d("organization-outline",60030),newFile:d("new-file",60031),fileAdd:d("file-add",60031),newFolder:d("new-folder",60032),fileDirectoryCreate:d("file-directory-create",60032),trash:d("trash",60033),trashcan:d("trashcan",60033),history:d("history",60034),clock:d("clock",60034),folder:d("folder",60035),fileDirectory:d("file-directory",60035),symbolFolder:d("symbol-folder",60035),logoGithub:d("logo-github",60036),markGithub:d("mark-github",60036),github:d("github",60036),terminal:d("terminal",60037),console:d("console",60037),repl:d("repl",60037),zap:d("zap",60038),symbolEvent:d("symbol-event",60038),error:d("error",60039),stop:d("stop",60039),variable:d("variable",60040),symbolVariable:d("symbol-variable",60040),array:d("array",60042),symbolArray:d("symbol-array",60042),symbolModule:d("symbol-module",60043),symbolPackage:d("symbol-package",60043),symbolNamespace:d("symbol-namespace",60043),symbolObject:d("symbol-object",60043),symbolMethod:d("symbol-method",60044),symbolFunction:d("symbol-function",60044),symbolConstructor:d("symbol-constructor",60044),symbolBoolean:d("symbol-boolean",60047),symbolNull:d("symbol-null",60047),symbolNumeric:d("symbol-numeric",60048),symbolNumber:d("symbol-number",60048),symbolStructure:d("symbol-structure",60049),symbolStruct:d("symbol-struct",60049),symbolParameter:d("symbol-parameter",60050),symbolTypeParameter:d("symbol-type-parameter",60050),symbolKey:d("symbol-key",60051),symbolText:d("symbol-text",60051),symbolReference:d("symbol-reference",60052),goToFile:d("go-to-file",60052),symbolEnum:d("symbol-enum",60053),symbolValue:d("symbol-value",60053),symbolRuler:d("symbol-ruler",60054),symbolUnit:d("symbol-unit",60054),activateBreakpoints:d("activate-breakpoints",60055),archive:d("archive",60056),arrowBoth:d("arrow-both",60057),arrowDown:d("arrow-down",60058),arrowLeft:d("arrow-left",60059),arrowRight:d("arrow-right",60060),arrowSmallDown:d("arrow-small-down",60061),arrowSmallLeft:d("arrow-small-left",60062),arrowSmallRight:d("arrow-small-right",60063),arrowSmallUp:d("arrow-small-up",60064),arrowUp:d("arrow-up",60065),bell:d("bell",60066),bold:d("bold",60067),book:d("book",60068),bookmark:d("bookmark",60069),debugBreakpointConditionalUnverified:d("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:d("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:d("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:d("debug-breakpoint-data-unverified",60072),debugBreakpointData:d("debug-breakpoint-data",60073),debugBreakpointDataDisabled:d("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:d("debug-breakpoint-log-unverified",60074),debugBreakpointLog:d("debug-breakpoint-log",60075),debugBreakpointLogDisabled:d("debug-breakpoint-log-disabled",60075),briefcase:d("briefcase",60076),broadcast:d("broadcast",60077),browser:d("browser",60078),bug:d("bug",60079),calendar:d("calendar",60080),caseSensitive:d("case-sensitive",60081),check:d("check",60082),checklist:d("checklist",60083),chevronDown:d("chevron-down",60084),chevronLeft:d("chevron-left",60085),chevronRight:d("chevron-right",60086),chevronUp:d("chevron-up",60087),chromeClose:d("chrome-close",60088),chromeMaximize:d("chrome-maximize",60089),chromeMinimize:d("chrome-minimize",60090),chromeRestore:d("chrome-restore",60091),circleOutline:d("circle-outline",60092),circle:d("circle",60092),debugBreakpointUnverified:d("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:d("terminal-decoration-incomplete",60092),circleSlash:d("circle-slash",60093),circuitBoard:d("circuit-board",60094),clearAll:d("clear-all",60095),clippy:d("clippy",60096),closeAll:d("close-all",60097),cloudDownload:d("cloud-download",60098),cloudUpload:d("cloud-upload",60099),code:d("code",60100),collapseAll:d("collapse-all",60101),colorMode:d("color-mode",60102),commentDiscussion:d("comment-discussion",60103),creditCard:d("credit-card",60105),dash:d("dash",60108),dashboard:d("dashboard",60109),database:d("database",60110),debugContinue:d("debug-continue",60111),debugDisconnect:d("debug-disconnect",60112),debugPause:d("debug-pause",60113),debugRestart:d("debug-restart",60114),debugStart:d("debug-start",60115),debugStepInto:d("debug-step-into",60116),debugStepOut:d("debug-step-out",60117),debugStepOver:d("debug-step-over",60118),debugStop:d("debug-stop",60119),debug:d("debug",60120),deviceCameraVideo:d("device-camera-video",60121),deviceCamera:d("device-camera",60122),deviceMobile:d("device-mobile",60123),diffAdded:d("diff-added",60124),diffIgnored:d("diff-ignored",60125),diffModified:d("diff-modified",60126),diffRemoved:d("diff-removed",60127),diffRenamed:d("diff-renamed",60128),diff:d("diff",60129),diffSidebyside:d("diff-sidebyside",60129),discard:d("discard",60130),editorLayout:d("editor-layout",60131),emptyWindow:d("empty-window",60132),exclude:d("exclude",60133),extensions:d("extensions",60134),eyeClosed:d("eye-closed",60135),fileBinary:d("file-binary",60136),fileCode:d("file-code",60137),fileMedia:d("file-media",60138),filePdf:d("file-pdf",60139),fileSubmodule:d("file-submodule",60140),fileSymlinkDirectory:d("file-symlink-directory",60141),fileSymlinkFile:d("file-symlink-file",60142),fileZip:d("file-zip",60143),files:d("files",60144),filter:d("filter",60145),flame:d("flame",60146),foldDown:d("fold-down",60147),foldUp:d("fold-up",60148),fold:d("fold",60149),folderActive:d("folder-active",60150),folderOpened:d("folder-opened",60151),gear:d("gear",60152),gift:d("gift",60153),gistSecret:d("gist-secret",60154),gist:d("gist",60155),gitCommit:d("git-commit",60156),gitCompare:d("git-compare",60157),compareChanges:d("compare-changes",60157),gitMerge:d("git-merge",60158),githubAction:d("github-action",60159),githubAlt:d("github-alt",60160),globe:d("globe",60161),grabber:d("grabber",60162),graph:d("graph",60163),gripper:d("gripper",60164),heart:d("heart",60165),home:d("home",60166),horizontalRule:d("horizontal-rule",60167),hubot:d("hubot",60168),inbox:d("inbox",60169),issueReopened:d("issue-reopened",60171),issues:d("issues",60172),italic:d("italic",60173),jersey:d("jersey",60174),json:d("json",60175),kebabVertical:d("kebab-vertical",60176),key:d("key",60177),law:d("law",60178),lightbulbAutofix:d("lightbulb-autofix",60179),linkExternal:d("link-external",60180),link:d("link",60181),listOrdered:d("list-ordered",60182),listUnordered:d("list-unordered",60183),liveShare:d("live-share",60184),loading:d("loading",60185),location:d("location",60186),mailRead:d("mail-read",60187),mail:d("mail",60188),markdown:d("markdown",60189),megaphone:d("megaphone",60190),mention:d("mention",60191),milestone:d("milestone",60192),gitPullRequestMilestone:d("git-pull-request-milestone",60192),mortarBoard:d("mortar-board",60193),move:d("move",60194),multipleWindows:d("multiple-windows",60195),mute:d("mute",60196),noNewline:d("no-newline",60197),note:d("note",60198),octoface:d("octoface",60199),openPreview:d("open-preview",60200),package:d("package",60201),paintcan:d("paintcan",60202),pin:d("pin",60203),play:d("play",60204),run:d("run",60204),plug:d("plug",60205),preserveCase:d("preserve-case",60206),preview:d("preview",60207),project:d("project",60208),pulse:d("pulse",60209),question:d("question",60210),quote:d("quote",60211),radioTower:d("radio-tower",60212),reactions:d("reactions",60213),references:d("references",60214),refresh:d("refresh",60215),regex:d("regex",60216),remoteExplorer:d("remote-explorer",60217),remote:d("remote",60218),remove:d("remove",60219),replaceAll:d("replace-all",60220),replace:d("replace",60221),repoClone:d("repo-clone",60222),repoForcePush:d("repo-force-push",60223),repoPull:d("repo-pull",60224),repoPush:d("repo-push",60225),report:d("report",60226),requestChanges:d("request-changes",60227),rocket:d("rocket",60228),rootFolderOpened:d("root-folder-opened",60229),rootFolder:d("root-folder",60230),rss:d("rss",60231),ruby:d("ruby",60232),saveAll:d("save-all",60233),saveAs:d("save-as",60234),save:d("save",60235),screenFull:d("screen-full",60236),screenNormal:d("screen-normal",60237),searchStop:d("search-stop",60238),server:d("server",60240),settingsGear:d("settings-gear",60241),settings:d("settings",60242),shield:d("shield",60243),smiley:d("smiley",60244),sortPrecedence:d("sort-precedence",60245),splitHorizontal:d("split-horizontal",60246),splitVertical:d("split-vertical",60247),squirrel:d("squirrel",60248),starFull:d("star-full",60249),starHalf:d("star-half",60250),symbolClass:d("symbol-class",60251),symbolColor:d("symbol-color",60252),symbolConstant:d("symbol-constant",60253),symbolEnumMember:d("symbol-enum-member",60254),symbolField:d("symbol-field",60255),symbolFile:d("symbol-file",60256),symbolInterface:d("symbol-interface",60257),symbolKeyword:d("symbol-keyword",60258),symbolMisc:d("symbol-misc",60259),symbolOperator:d("symbol-operator",60260),symbolProperty:d("symbol-property",60261),wrench:d("wrench",60261),wrenchSubaction:d("wrench-subaction",60261),symbolSnippet:d("symbol-snippet",60262),tasklist:d("tasklist",60263),telescope:d("telescope",60264),textSize:d("text-size",60265),threeBars:d("three-bars",60266),thumbsdown:d("thumbsdown",60267),thumbsup:d("thumbsup",60268),tools:d("tools",60269),triangleDown:d("triangle-down",60270),triangleLeft:d("triangle-left",60271),triangleRight:d("triangle-right",60272),triangleUp:d("triangle-up",60273),twitter:d("twitter",60274),unfold:d("unfold",60275),unlock:d("unlock",60276),unmute:d("unmute",60277),unverified:d("unverified",60278),verified:d("verified",60279),versions:d("versions",60280),vmActive:d("vm-active",60281),vmOutline:d("vm-outline",60282),vmRunning:d("vm-running",60283),watch:d("watch",60284),whitespace:d("whitespace",60285),wholeWord:d("whole-word",60286),window:d("window",60287),wordWrap:d("word-wrap",60288),zoomIn:d("zoom-in",60289),zoomOut:d("zoom-out",60290),listFilter:d("list-filter",60291),listFlat:d("list-flat",60292),listSelection:d("list-selection",60293),selection:d("selection",60293),listTree:d("list-tree",60294),debugBreakpointFunctionUnverified:d("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:d("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:d("debug-breakpoint-function-disabled",60296),debugStackframeActive:d("debug-stackframe-active",60297),circleSmallFilled:d("circle-small-filled",60298),debugStackframeDot:d("debug-stackframe-dot",60298),terminalDecorationMark:d("terminal-decoration-mark",60298),debugStackframe:d("debug-stackframe",60299),debugStackframeFocused:d("debug-stackframe-focused",60299),debugBreakpointUnsupported:d("debug-breakpoint-unsupported",60300),symbolString:d("symbol-string",60301),debugReverseContinue:d("debug-reverse-continue",60302),debugStepBack:d("debug-step-back",60303),debugRestartFrame:d("debug-restart-frame",60304),debugAlt:d("debug-alt",60305),callIncoming:d("call-incoming",60306),callOutgoing:d("call-outgoing",60307),menu:d("menu",60308),expandAll:d("expand-all",60309),feedback:d("feedback",60310),gitPullRequestReviewer:d("git-pull-request-reviewer",60310),groupByRefType:d("group-by-ref-type",60311),ungroupByRefType:d("ungroup-by-ref-type",60312),account:d("account",60313),gitPullRequestAssignee:d("git-pull-request-assignee",60313),bellDot:d("bell-dot",60314),debugConsole:d("debug-console",60315),library:d("library",60316),output:d("output",60317),runAll:d("run-all",60318),syncIgnored:d("sync-ignored",60319),pinned:d("pinned",60320),githubInverted:d("github-inverted",60321),serverProcess:d("server-process",60322),serverEnvironment:d("server-environment",60323),pass:d("pass",60324),issueClosed:d("issue-closed",60324),stopCircle:d("stop-circle",60325),playCircle:d("play-circle",60326),record:d("record",60327),debugAltSmall:d("debug-alt-small",60328),vmConnect:d("vm-connect",60329),cloud:d("cloud",60330),merge:d("merge",60331),export:d("export",60332),graphLeft:d("graph-left",60333),magnet:d("magnet",60334),notebook:d("notebook",60335),redo:d("redo",60336),checkAll:d("check-all",60337),pinnedDirty:d("pinned-dirty",60338),passFilled:d("pass-filled",60339),circleLargeFilled:d("circle-large-filled",60340),circleLarge:d("circle-large",60341),circleLargeOutline:d("circle-large-outline",60341),combine:d("combine",60342),gather:d("gather",60342),table:d("table",60343),variableGroup:d("variable-group",60344),typeHierarchy:d("type-hierarchy",60345),typeHierarchySub:d("type-hierarchy-sub",60346),typeHierarchySuper:d("type-hierarchy-super",60347),gitPullRequestCreate:d("git-pull-request-create",60348),runAbove:d("run-above",60349),runBelow:d("run-below",60350),notebookTemplate:d("notebook-template",60351),debugRerun:d("debug-rerun",60352),workspaceTrusted:d("workspace-trusted",60353),workspaceUntrusted:d("workspace-untrusted",60354),workspaceUnknown:d("workspace-unknown",60355),terminalCmd:d("terminal-cmd",60356),terminalDebian:d("terminal-debian",60357),terminalLinux:d("terminal-linux",60358),terminalPowershell:d("terminal-powershell",60359),terminalTmux:d("terminal-tmux",60360),terminalUbuntu:d("terminal-ubuntu",60361),terminalBash:d("terminal-bash",60362),arrowSwap:d("arrow-swap",60363),copy:d("copy",60364),personAdd:d("person-add",60365),filterFilled:d("filter-filled",60366),wand:d("wand",60367),debugLineByLine:d("debug-line-by-line",60368),inspect:d("inspect",60369),layers:d("layers",60370),layersDot:d("layers-dot",60371),layersActive:d("layers-active",60372),compass:d("compass",60373),compassDot:d("compass-dot",60374),compassActive:d("compass-active",60375),azure:d("azure",60376),issueDraft:d("issue-draft",60377),gitPullRequestClosed:d("git-pull-request-closed",60378),gitPullRequestDraft:d("git-pull-request-draft",60379),debugAll:d("debug-all",60380),debugCoverage:d("debug-coverage",60381),runErrors:d("run-errors",60382),folderLibrary:d("folder-library",60383),debugContinueSmall:d("debug-continue-small",60384),beakerStop:d("beaker-stop",60385),graphLine:d("graph-line",60386),graphScatter:d("graph-scatter",60387),pieChart:d("pie-chart",60388),bracket:d("bracket",60175),bracketDot:d("bracket-dot",60389),bracketError:d("bracket-error",60390),lockSmall:d("lock-small",60391),azureDevops:d("azure-devops",60392),verifiedFilled:d("verified-filled",60393),newline:d("newline",60394),layout:d("layout",60395),layoutActivitybarLeft:d("layout-activitybar-left",60396),layoutActivitybarRight:d("layout-activitybar-right",60397),layoutPanelLeft:d("layout-panel-left",60398),layoutPanelCenter:d("layout-panel-center",60399),layoutPanelJustify:d("layout-panel-justify",60400),layoutPanelRight:d("layout-panel-right",60401),layoutPanel:d("layout-panel",60402),layoutSidebarLeft:d("layout-sidebar-left",60403),layoutSidebarRight:d("layout-sidebar-right",60404),layoutStatusbar:d("layout-statusbar",60405),layoutMenubar:d("layout-menubar",60406),layoutCentered:d("layout-centered",60407),target:d("target",60408),indent:d("indent",60409),recordSmall:d("record-small",60410),errorSmall:d("error-small",60411),terminalDecorationError:d("terminal-decoration-error",60411),arrowCircleDown:d("arrow-circle-down",60412),arrowCircleLeft:d("arrow-circle-left",60413),arrowCircleRight:d("arrow-circle-right",60414),arrowCircleUp:d("arrow-circle-up",60415),layoutSidebarRightOff:d("layout-sidebar-right-off",60416),layoutPanelOff:d("layout-panel-off",60417),layoutSidebarLeftOff:d("layout-sidebar-left-off",60418),blank:d("blank",60419),heartFilled:d("heart-filled",60420),map:d("map",60421),mapHorizontal:d("map-horizontal",60421),foldHorizontal:d("fold-horizontal",60421),mapFilled:d("map-filled",60422),mapHorizontalFilled:d("map-horizontal-filled",60422),foldHorizontalFilled:d("fold-horizontal-filled",60422),circleSmall:d("circle-small",60423),bellSlash:d("bell-slash",60424),bellSlashDot:d("bell-slash-dot",60425),commentUnresolved:d("comment-unresolved",60426),gitPullRequestGoToChanges:d("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:d("git-pull-request-new-changes",60428),searchFuzzy:d("search-fuzzy",60429),commentDraft:d("comment-draft",60430),send:d("send",60431),sparkle:d("sparkle",60432),insert:d("insert",60433),mic:d("mic",60434),thumbsdownFilled:d("thumbsdown-filled",60435),thumbsupFilled:d("thumbsup-filled",60436),coffee:d("coffee",60437),snake:d("snake",60438),game:d("game",60439),vr:d("vr",60440),chip:d("chip",60441),piano:d("piano",60442),music:d("music",60443),micFilled:d("mic-filled",60444),repoFetch:d("repo-fetch",60445),copilot:d("copilot",60446),lightbulbSparkle:d("lightbulb-sparkle",60447),robot:d("robot",60448),sparkleFilled:d("sparkle-filled",60449),diffSingle:d("diff-single",60450),diffMultiple:d("diff-multiple",60451),surroundWith:d("surround-with",60452),share:d("share",60453),gitStash:d("git-stash",60454),gitStashApply:d("git-stash-apply",60455),gitStashPop:d("git-stash-pop",60456),vscode:d("vscode",60457),vscodeInsiders:d("vscode-insiders",60458),codeOss:d("code-oss",60459),runCoverage:d("run-coverage",60460),runAllCoverage:d("run-all-coverage",60461),coverage:d("coverage",60462),githubProject:d("github-project",60463),mapVertical:d("map-vertical",60464),foldVertical:d("fold-vertical",60464),mapVerticalFilled:d("map-vertical-filled",60465),foldVerticalFilled:d("fold-vertical-filled",60465)},Oh={dialogError:d("dialog-error","error"),dialogWarning:d("dialog-warning","warning"),dialogInfo:d("dialog-info","info"),dialogClose:d("dialog-close","close"),treeItemExpanded:d("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:d("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:d("tree-filter-on-type-off","list-selection"),treeFilterClear:d("tree-filter-clear","close"),treeItemLoading:d("tree-item-loading","loading"),menuSelection:d("menu-selection","check"),menuSubmenu:d("menu-submenu","chevron-right"),menuBarMore:d("menubar-more","more"),scrollbarButtonLeft:d("scrollbar-button-left","triangle-left"),scrollbarButtonRight:d("scrollbar-button-right","triangle-right"),scrollbarButtonUp:d("scrollbar-button-up","triangle-up"),scrollbarButtonDown:d("scrollbar-button-down","triangle-down"),toolBarMore:d("toolbar-more","more"),quickInputBack:d("quick-input-back","arrow-left"),dropDownButton:d("drop-down-button",60084),symbolCustomColor:d("symbol-customcolor",60252),exportIcon:d("export",60332),workspaceUnspecified:d("workspace-unspecified",60355),newLine:d("newline",60394),thumbsDownFilled:d("thumbsdown-filled",60435),thumbsUpFilled:d("thumbsup-filled",60436),gitFetch:d("git-fetch",60445),lightbulbSparkleAutofix:d("lightbulb-sparkle-autofix",60447),debugBreakpointPending:d("debug-breakpoint-pending",60377)},B={...Wh,...Oh};class Uh{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new qe,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})}register(e,n){return this._tokenizationSupports.set(e,n),this.handleChange([e]),Wn(()=>{this._tokenizationSupports.get(e)===n&&(this._tokenizationSupports.delete(e),this.handleChange([e]))})}get(e){return this._tokenizationSupports.get(e)||null}registerFactory(e,n){var r;(r=this._factories.get(e))===null||r===void 0||r.dispose();const i=new Vh(this,e,n);return this._factories.set(e,i),Wn(()=>{const s=this._factories.get(e);!s||s!==i||(this._factories.delete(e),s.dispose())})}async getOrCreate(e){const n=this.get(e);if(n)return n;const r=this._factories.get(e);return!r||r.isResolved?null:(await r.resolve(),this.get(e))}isResolved(e){if(this.get(e))return!0;const r=this._factories.get(e);return!!(!r||r.isResolved)}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}}class Vh extends rn{get isResolved(){return this._isResolved}constructor(e,n,r){super(),this._registry=e,this._languageId=n,this._factory=r,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}async _create(){const e=await this._factory.tokenizationSupport;this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))}}class Bh{constructor(e,n,r){this.offset=e,this.type=n,this.language=r,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}var Is;(function(t){const e=new Map;e.set(0,B.symbolMethod),e.set(1,B.symbolFunction),e.set(2,B.symbolConstructor),e.set(3,B.symbolField),e.set(4,B.symbolVariable),e.set(5,B.symbolClass),e.set(6,B.symbolStruct),e.set(7,B.symbolInterface),e.set(8,B.symbolModule),e.set(9,B.symbolProperty),e.set(10,B.symbolEvent),e.set(11,B.symbolOperator),e.set(12,B.symbolUnit),e.set(13,B.symbolValue),e.set(15,B.symbolEnum),e.set(14,B.symbolConstant),e.set(15,B.symbolEnum),e.set(16,B.symbolEnumMember),e.set(17,B.symbolKeyword),e.set(27,B.symbolSnippet),e.set(18,B.symbolText),e.set(19,B.symbolColor),e.set(20,B.symbolFile),e.set(21,B.symbolReference),e.set(22,B.symbolCustomColor),e.set(23,B.symbolFolder),e.set(24,B.symbolTypeParameter),e.set(25,B.account),e.set(26,B.issues);function n(s){let a=e.get(s);return a||(console.info("No codicon found for CompletionItemKind "+s),a=B.symbolProperty),a}t.toIcon=n;const r=new Map;r.set("method",0),r.set("function",1),r.set("constructor",2),r.set("field",3),r.set("variable",4),r.set("class",5),r.set("struct",6),r.set("interface",7),r.set("module",8),r.set("property",9),r.set("event",10),r.set("operator",11),r.set("unit",12),r.set("value",13),r.set("constant",14),r.set("enum",15),r.set("enum-member",16),r.set("enumMember",16),r.set("keyword",17),r.set("snippet",27),r.set("text",18),r.set("color",19),r.set("file",20),r.set("reference",21),r.set("customcolor",22),r.set("folder",23),r.set("type-parameter",24),r.set("typeParameter",24),r.set("account",25),r.set("issue",26);function i(s,a){let o=r.get(s);return typeof o>"u"&&!a&&(o=9),o}t.fromString=i})(Is||(Is={}));var Ts;(function(t){t[t.Automatic=0]="Automatic",t[t.Explicit=1]="Explicit"})(Ts||(Ts={}));var Ws;(function(t){t[t.Automatic=0]="Automatic",t[t.PasteAs=1]="PasteAs"})(Ws||(Ws={}));var Os;(function(t){t[t.Invoke=1]="Invoke",t[t.TriggerCharacter=2]="TriggerCharacter",t[t.ContentChange=3]="ContentChange"})(Os||(Os={}));var Us;(function(t){t[t.Text=0]="Text",t[t.Read=1]="Read",t[t.Write=2]="Write"})(Us||(Us={})),ae("Array","array"),ae("Boolean","boolean"),ae("Class","class"),ae("Constant","constant"),ae("Constructor","constructor"),ae("Enum","enumeration"),ae("EnumMember","enumeration member"),ae("Event","event"),ae("Field","field"),ae("File","file"),ae("Function","function"),ae("Interface","interface"),ae("Key","key"),ae("Method","method"),ae("Module","module"),ae("Namespace","namespace"),ae("Null","null"),ae("Number","number"),ae("Object","object"),ae("Operator","operator"),ae("Package","package"),ae("Property","property"),ae("String","string"),ae("Struct","struct"),ae("TypeParameter","type parameter"),ae("Variable","variable");var Vs;(function(t){const e=new Map;e.set(0,B.symbolFile),e.set(1,B.symbolModule),e.set(2,B.symbolNamespace),e.set(3,B.symbolPackage),e.set(4,B.symbolClass),e.set(5,B.symbolMethod),e.set(6,B.symbolProperty),e.set(7,B.symbolField),e.set(8,B.symbolConstructor),e.set(9,B.symbolEnum),e.set(10,B.symbolInterface),e.set(11,B.symbolFunction),e.set(12,B.symbolVariable),e.set(13,B.symbolConstant),e.set(14,B.symbolString),e.set(15,B.symbolNumber),e.set(16,B.symbolBoolean),e.set(17,B.symbolArray),e.set(18,B.symbolObject),e.set(19,B.symbolKey),e.set(20,B.symbolNull),e.set(21,B.symbolEnumMember),e.set(22,B.symbolStruct),e.set(23,B.symbolEvent),e.set(24,B.symbolOperator),e.set(25,B.symbolTypeParameter);function n(r){let i=e.get(r);return i||(console.info("No codicon found for SymbolKind "+r),i=B.symbolProperty),i}t.toIcon=n})(Vs||(Vs={}));var Bs;(function(t){t[t.AIGenerated=1]="AIGenerated"})(Bs||(Bs={}));var qs;(function(t){function e(n){return!n||typeof n!="object"?!1:typeof n.id=="string"&&typeof n.title=="string"}t.is=e})(qs||(qs={}));var js;(function(t){t[t.Type=1]="Type",t[t.Parameter=2]="Parameter"})(js||(js={})),new Uh;var $s;(function(t){t[t.Invoke=0]="Invoke",t[t.Automatic=1]="Automatic"})($s||($s={}));var Hs;(function(t){t[t.Unknown=0]="Unknown",t[t.Disabled=1]="Disabled",t[t.Enabled=2]="Enabled"})(Hs||(Hs={}));var Gs;(function(t){t[t.Invoke=1]="Invoke",t[t.Auto=2]="Auto"})(Gs||(Gs={}));var Js;(function(t){t[t.None=0]="None",t[t.KeepWhitespace=1]="KeepWhitespace",t[t.InsertAsSnippet=4]="InsertAsSnippet"})(Js||(Js={}));var Xs;(function(t){t[t.Method=0]="Method",t[t.Function=1]="Function",t[t.Constructor=2]="Constructor",t[t.Field=3]="Field",t[t.Variable=4]="Variable",t[t.Class=5]="Class",t[t.Struct=6]="Struct",t[t.Interface=7]="Interface",t[t.Module=8]="Module",t[t.Property=9]="Property",t[t.Event=10]="Event",t[t.Operator=11]="Operator",t[t.Unit=12]="Unit",t[t.Value=13]="Value",t[t.Constant=14]="Constant",t[t.Enum=15]="Enum",t[t.EnumMember=16]="EnumMember",t[t.Keyword=17]="Keyword",t[t.Text=18]="Text",t[t.Color=19]="Color",t[t.File=20]="File",t[t.Reference=21]="Reference",t[t.Customcolor=22]="Customcolor",t[t.Folder=23]="Folder",t[t.TypeParameter=24]="TypeParameter",t[t.User=25]="User",t[t.Issue=26]="Issue",t[t.Snippet=27]="Snippet"})(Xs||(Xs={}));var Ys;(function(t){t[t.Deprecated=1]="Deprecated"})(Ys||(Ys={}));var Qs;(function(t){t[t.Invoke=0]="Invoke",t[t.TriggerCharacter=1]="TriggerCharacter",t[t.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(Qs||(Qs={}));var Ks;(function(t){t[t.EXACT=0]="EXACT",t[t.ABOVE=1]="ABOVE",t[t.BELOW=2]="BELOW"})(Ks||(Ks={}));var Zs;(function(t){t[t.NotSet=0]="NotSet",t[t.ContentFlush=1]="ContentFlush",t[t.RecoverFromMarkers=2]="RecoverFromMarkers",t[t.Explicit=3]="Explicit",t[t.Paste=4]="Paste",t[t.Undo=5]="Undo",t[t.Redo=6]="Redo"})(Zs||(Zs={}));var ea;(function(t){t[t.LF=1]="LF",t[t.CRLF=2]="CRLF"})(ea||(ea={}));var ta;(function(t){t[t.Text=0]="Text",t[t.Read=1]="Read",t[t.Write=2]="Write"})(ta||(ta={}));var na;(function(t){t[t.None=0]="None",t[t.Keep=1]="Keep",t[t.Brackets=2]="Brackets",t[t.Advanced=3]="Advanced",t[t.Full=4]="Full"})(na||(na={}));var ra;(function(t){t[t.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",t[t.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",t[t.accessibilitySupport=2]="accessibilitySupport",t[t.accessibilityPageSize=3]="accessibilityPageSize",t[t.ariaLabel=4]="ariaLabel",t[t.ariaRequired=5]="ariaRequired",t[t.autoClosingBrackets=6]="autoClosingBrackets",t[t.autoClosingComments=7]="autoClosingComments",t[t.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",t[t.autoClosingDelete=9]="autoClosingDelete",t[t.autoClosingOvertype=10]="autoClosingOvertype",t[t.autoClosingQuotes=11]="autoClosingQuotes",t[t.autoIndent=12]="autoIndent",t[t.automaticLayout=13]="automaticLayout",t[t.autoSurround=14]="autoSurround",t[t.bracketPairColorization=15]="bracketPairColorization",t[t.guides=16]="guides",t[t.codeLens=17]="codeLens",t[t.codeLensFontFamily=18]="codeLensFontFamily",t[t.codeLensFontSize=19]="codeLensFontSize",t[t.colorDecorators=20]="colorDecorators",t[t.colorDecoratorsLimit=21]="colorDecoratorsLimit",t[t.columnSelection=22]="columnSelection",t[t.comments=23]="comments",t[t.contextmenu=24]="contextmenu",t[t.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",t[t.cursorBlinking=26]="cursorBlinking",t[t.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",t[t.cursorStyle=28]="cursorStyle",t[t.cursorSurroundingLines=29]="cursorSurroundingLines",t[t.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",t[t.cursorWidth=31]="cursorWidth",t[t.disableLayerHinting=32]="disableLayerHinting",t[t.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",t[t.domReadOnly=34]="domReadOnly",t[t.dragAndDrop=35]="dragAndDrop",t[t.dropIntoEditor=36]="dropIntoEditor",t[t.emptySelectionClipboard=37]="emptySelectionClipboard",t[t.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",t[t.extraEditorClassName=39]="extraEditorClassName",t[t.fastScrollSensitivity=40]="fastScrollSensitivity",t[t.find=41]="find",t[t.fixedOverflowWidgets=42]="fixedOverflowWidgets",t[t.folding=43]="folding",t[t.foldingStrategy=44]="foldingStrategy",t[t.foldingHighlight=45]="foldingHighlight",t[t.foldingImportsByDefault=46]="foldingImportsByDefault",t[t.foldingMaximumRegions=47]="foldingMaximumRegions",t[t.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",t[t.fontFamily=49]="fontFamily",t[t.fontInfo=50]="fontInfo",t[t.fontLigatures=51]="fontLigatures",t[t.fontSize=52]="fontSize",t[t.fontWeight=53]="fontWeight",t[t.fontVariations=54]="fontVariations",t[t.formatOnPaste=55]="formatOnPaste",t[t.formatOnType=56]="formatOnType",t[t.glyphMargin=57]="glyphMargin",t[t.gotoLocation=58]="gotoLocation",t[t.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",t[t.hover=60]="hover",t[t.inDiffEditor=61]="inDiffEditor",t[t.inlineSuggest=62]="inlineSuggest",t[t.inlineEdit=63]="inlineEdit",t[t.letterSpacing=64]="letterSpacing",t[t.lightbulb=65]="lightbulb",t[t.lineDecorationsWidth=66]="lineDecorationsWidth",t[t.lineHeight=67]="lineHeight",t[t.lineNumbers=68]="lineNumbers",t[t.lineNumbersMinChars=69]="lineNumbersMinChars",t[t.linkedEditing=70]="linkedEditing",t[t.links=71]="links",t[t.matchBrackets=72]="matchBrackets",t[t.minimap=73]="minimap",t[t.mouseStyle=74]="mouseStyle",t[t.mouseWheelScrollSensitivity=75]="mouseWheelScrollSensitivity",t[t.mouseWheelZoom=76]="mouseWheelZoom",t[t.multiCursorMergeOverlapping=77]="multiCursorMergeOverlapping",t[t.multiCursorModifier=78]="multiCursorModifier",t[t.multiCursorPaste=79]="multiCursorPaste",t[t.multiCursorLimit=80]="multiCursorLimit",t[t.occurrencesHighlight=81]="occurrencesHighlight",t[t.overviewRulerBorder=82]="overviewRulerBorder",t[t.overviewRulerLanes=83]="overviewRulerLanes",t[t.padding=84]="padding",t[t.pasteAs=85]="pasteAs",t[t.parameterHints=86]="parameterHints",t[t.peekWidgetDefaultFocus=87]="peekWidgetDefaultFocus",t[t.definitionLinkOpensInPeek=88]="definitionLinkOpensInPeek",t[t.quickSuggestions=89]="quickSuggestions",t[t.quickSuggestionsDelay=90]="quickSuggestionsDelay",t[t.readOnly=91]="readOnly",t[t.readOnlyMessage=92]="readOnlyMessage",t[t.renameOnType=93]="renameOnType",t[t.renderControlCharacters=94]="renderControlCharacters",t[t.renderFinalNewline=95]="renderFinalNewline",t[t.renderLineHighlight=96]="renderLineHighlight",t[t.renderLineHighlightOnlyWhenFocus=97]="renderLineHighlightOnlyWhenFocus",t[t.renderValidationDecorations=98]="renderValidationDecorations",t[t.renderWhitespace=99]="renderWhitespace",t[t.revealHorizontalRightPadding=100]="revealHorizontalRightPadding",t[t.roundedSelection=101]="roundedSelection",t[t.rulers=102]="rulers",t[t.scrollbar=103]="scrollbar",t[t.scrollBeyondLastColumn=104]="scrollBeyondLastColumn",t[t.scrollBeyondLastLine=105]="scrollBeyondLastLine",t[t.scrollPredominantAxis=106]="scrollPredominantAxis",t[t.selectionClipboard=107]="selectionClipboard",t[t.selectionHighlight=108]="selectionHighlight",t[t.selectOnLineNumbers=109]="selectOnLineNumbers",t[t.showFoldingControls=110]="showFoldingControls",t[t.showUnused=111]="showUnused",t[t.snippetSuggestions=112]="snippetSuggestions",t[t.smartSelect=113]="smartSelect",t[t.smoothScrolling=114]="smoothScrolling",t[t.stickyScroll=115]="stickyScroll",t[t.stickyTabStops=116]="stickyTabStops",t[t.stopRenderingLineAfter=117]="stopRenderingLineAfter",t[t.suggest=118]="suggest",t[t.suggestFontSize=119]="suggestFontSize",t[t.suggestLineHeight=120]="suggestLineHeight",t[t.suggestOnTriggerCharacters=121]="suggestOnTriggerCharacters",t[t.suggestSelection=122]="suggestSelection",t[t.tabCompletion=123]="tabCompletion",t[t.tabIndex=124]="tabIndex",t[t.unicodeHighlighting=125]="unicodeHighlighting",t[t.unusualLineTerminators=126]="unusualLineTerminators",t[t.useShadowDOM=127]="useShadowDOM",t[t.useTabStops=128]="useTabStops",t[t.wordBreak=129]="wordBreak",t[t.wordSegmenterLocales=130]="wordSegmenterLocales",t[t.wordSeparators=131]="wordSeparators",t[t.wordWrap=132]="wordWrap",t[t.wordWrapBreakAfterCharacters=133]="wordWrapBreakAfterCharacters",t[t.wordWrapBreakBeforeCharacters=134]="wordWrapBreakBeforeCharacters",t[t.wordWrapColumn=135]="wordWrapColumn",t[t.wordWrapOverride1=136]="wordWrapOverride1",t[t.wordWrapOverride2=137]="wordWrapOverride2",t[t.wrappingIndent=138]="wrappingIndent",t[t.wrappingStrategy=139]="wrappingStrategy",t[t.showDeprecated=140]="showDeprecated",t[t.inlayHints=141]="inlayHints",t[t.editorClassName=142]="editorClassName",t[t.pixelRatio=143]="pixelRatio",t[t.tabFocusMode=144]="tabFocusMode",t[t.layoutInfo=145]="layoutInfo",t[t.wrappingInfo=146]="wrappingInfo",t[t.defaultColorDecorators=147]="defaultColorDecorators",t[t.colorDecoratorsActivatedOn=148]="colorDecoratorsActivatedOn",t[t.inlineCompletionsAccessibilityVerbose=149]="inlineCompletionsAccessibilityVerbose"})(ra||(ra={}));var ia;(function(t){t[t.TextDefined=0]="TextDefined",t[t.LF=1]="LF",t[t.CRLF=2]="CRLF"})(ia||(ia={}));var sa;(function(t){t[t.LF=0]="LF",t[t.CRLF=1]="CRLF"})(sa||(sa={}));var aa;(function(t){t[t.Left=1]="Left",t[t.Center=2]="Center",t[t.Right=3]="Right"})(aa||(aa={}));var oa;(function(t){t[t.None=0]="None",t[t.Indent=1]="Indent",t[t.IndentOutdent=2]="IndentOutdent",t[t.Outdent=3]="Outdent"})(oa||(oa={}));var la;(function(t){t[t.Both=0]="Both",t[t.Right=1]="Right",t[t.Left=2]="Left",t[t.None=3]="None"})(la||(la={}));var ca;(function(t){t[t.Type=1]="Type",t[t.Parameter=2]="Parameter"})(ca||(ca={}));var ha;(function(t){t[t.Automatic=0]="Automatic",t[t.Explicit=1]="Explicit"})(ha||(ha={}));var da;(function(t){t[t.Invoke=0]="Invoke",t[t.Automatic=1]="Automatic"})(da||(da={}));var Jr;(function(t){t[t.DependsOnKbLayout=-1]="DependsOnKbLayout",t[t.Unknown=0]="Unknown",t[t.Backspace=1]="Backspace",t[t.Tab=2]="Tab",t[t.Enter=3]="Enter",t[t.Shift=4]="Shift",t[t.Ctrl=5]="Ctrl",t[t.Alt=6]="Alt",t[t.PauseBreak=7]="PauseBreak",t[t.CapsLock=8]="CapsLock",t[t.Escape=9]="Escape",t[t.Space=10]="Space",t[t.PageUp=11]="PageUp",t[t.PageDown=12]="PageDown",t[t.End=13]="End",t[t.Home=14]="Home",t[t.LeftArrow=15]="LeftArrow",t[t.UpArrow=16]="UpArrow",t[t.RightArrow=17]="RightArrow",t[t.DownArrow=18]="DownArrow",t[t.Insert=19]="Insert",t[t.Delete=20]="Delete",t[t.Digit0=21]="Digit0",t[t.Digit1=22]="Digit1",t[t.Digit2=23]="Digit2",t[t.Digit3=24]="Digit3",t[t.Digit4=25]="Digit4",t[t.Digit5=26]="Digit5",t[t.Digit6=27]="Digit6",t[t.Digit7=28]="Digit7",t[t.Digit8=29]="Digit8",t[t.Digit9=30]="Digit9",t[t.KeyA=31]="KeyA",t[t.KeyB=32]="KeyB",t[t.KeyC=33]="KeyC",t[t.KeyD=34]="KeyD",t[t.KeyE=35]="KeyE",t[t.KeyF=36]="KeyF",t[t.KeyG=37]="KeyG",t[t.KeyH=38]="KeyH",t[t.KeyI=39]="KeyI",t[t.KeyJ=40]="KeyJ",t[t.KeyK=41]="KeyK",t[t.KeyL=42]="KeyL",t[t.KeyM=43]="KeyM",t[t.KeyN=44]="KeyN",t[t.KeyO=45]="KeyO",t[t.KeyP=46]="KeyP",t[t.KeyQ=47]="KeyQ",t[t.KeyR=48]="KeyR",t[t.KeyS=49]="KeyS",t[t.KeyT=50]="KeyT",t[t.KeyU=51]="KeyU",t[t.KeyV=52]="KeyV",t[t.KeyW=53]="KeyW",t[t.KeyX=54]="KeyX",t[t.KeyY=55]="KeyY",t[t.KeyZ=56]="KeyZ",t[t.Meta=57]="Meta",t[t.ContextMenu=58]="ContextMenu",t[t.F1=59]="F1",t[t.F2=60]="F2",t[t.F3=61]="F3",t[t.F4=62]="F4",t[t.F5=63]="F5",t[t.F6=64]="F6",t[t.F7=65]="F7",t[t.F8=66]="F8",t[t.F9=67]="F9",t[t.F10=68]="F10",t[t.F11=69]="F11",t[t.F12=70]="F12",t[t.F13=71]="F13",t[t.F14=72]="F14",t[t.F15=73]="F15",t[t.F16=74]="F16",t[t.F17=75]="F17",t[t.F18=76]="F18",t[t.F19=77]="F19",t[t.F20=78]="F20",t[t.F21=79]="F21",t[t.F22=80]="F22",t[t.F23=81]="F23",t[t.F24=82]="F24",t[t.NumLock=83]="NumLock",t[t.ScrollLock=84]="ScrollLock",t[t.Semicolon=85]="Semicolon",t[t.Equal=86]="Equal",t[t.Comma=87]="Comma",t[t.Minus=88]="Minus",t[t.Period=89]="Period",t[t.Slash=90]="Slash",t[t.Backquote=91]="Backquote",t[t.BracketLeft=92]="BracketLeft",t[t.Backslash=93]="Backslash",t[t.BracketRight=94]="BracketRight",t[t.Quote=95]="Quote",t[t.OEM_8=96]="OEM_8",t[t.IntlBackslash=97]="IntlBackslash",t[t.Numpad0=98]="Numpad0",t[t.Numpad1=99]="Numpad1",t[t.Numpad2=100]="Numpad2",t[t.Numpad3=101]="Numpad3",t[t.Numpad4=102]="Numpad4",t[t.Numpad5=103]="Numpad5",t[t.Numpad6=104]="Numpad6",t[t.Numpad7=105]="Numpad7",t[t.Numpad8=106]="Numpad8",t[t.Numpad9=107]="Numpad9",t[t.NumpadMultiply=108]="NumpadMultiply",t[t.NumpadAdd=109]="NumpadAdd",t[t.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",t[t.NumpadSubtract=111]="NumpadSubtract",t[t.NumpadDecimal=112]="NumpadDecimal",t[t.NumpadDivide=113]="NumpadDivide",t[t.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",t[t.ABNT_C1=115]="ABNT_C1",t[t.ABNT_C2=116]="ABNT_C2",t[t.AudioVolumeMute=117]="AudioVolumeMute",t[t.AudioVolumeUp=118]="AudioVolumeUp",t[t.AudioVolumeDown=119]="AudioVolumeDown",t[t.BrowserSearch=120]="BrowserSearch",t[t.BrowserHome=121]="BrowserHome",t[t.BrowserBack=122]="BrowserBack",t[t.BrowserForward=123]="BrowserForward",t[t.MediaTrackNext=124]="MediaTrackNext",t[t.MediaTrackPrevious=125]="MediaTrackPrevious",t[t.MediaStop=126]="MediaStop",t[t.MediaPlayPause=127]="MediaPlayPause",t[t.LaunchMediaPlayer=128]="LaunchMediaPlayer",t[t.LaunchMail=129]="LaunchMail",t[t.LaunchApp2=130]="LaunchApp2",t[t.Clear=131]="Clear",t[t.MAX_VALUE=132]="MAX_VALUE"})(Jr||(Jr={}));var Xr;(function(t){t[t.Hint=1]="Hint",t[t.Info=2]="Info",t[t.Warning=4]="Warning",t[t.Error=8]="Error"})(Xr||(Xr={}));var Yr;(function(t){t[t.Unnecessary=1]="Unnecessary",t[t.Deprecated=2]="Deprecated"})(Yr||(Yr={}));var ua;(function(t){t[t.Inline=1]="Inline",t[t.Gutter=2]="Gutter"})(ua||(ua={}));var pa;(function(t){t[t.Normal=1]="Normal",t[t.Underlined=2]="Underlined"})(pa||(pa={}));var fa;(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.TEXTAREA=1]="TEXTAREA",t[t.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",t[t.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",t[t.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",t[t.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",t[t.CONTENT_TEXT=6]="CONTENT_TEXT",t[t.CONTENT_EMPTY=7]="CONTENT_EMPTY",t[t.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",t[t.CONTENT_WIDGET=9]="CONTENT_WIDGET",t[t.OVERVIEW_RULER=10]="OVERVIEW_RULER",t[t.SCROLLBAR=11]="SCROLLBAR",t[t.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",t[t.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(fa||(fa={}));var ma;(function(t){t[t.AIGenerated=1]="AIGenerated"})(ma||(ma={}));var ga;(function(t){t[t.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",t[t.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",t[t.TOP_CENTER=2]="TOP_CENTER"})(ga||(ga={}));var ba;(function(t){t[t.Left=1]="Left",t[t.Center=2]="Center",t[t.Right=4]="Right",t[t.Full=7]="Full"})(ba||(ba={}));var va;(function(t){t[t.Word=0]="Word",t[t.Line=1]="Line",t[t.Suggest=2]="Suggest"})(va||(va={}));var ya;(function(t){t[t.Left=0]="Left",t[t.Right=1]="Right",t[t.None=2]="None",t[t.LeftOfInjectedText=3]="LeftOfInjectedText",t[t.RightOfInjectedText=4]="RightOfInjectedText"})(ya||(ya={}));var wa;(function(t){t[t.Off=0]="Off",t[t.On=1]="On",t[t.Relative=2]="Relative",t[t.Interval=3]="Interval",t[t.Custom=4]="Custom"})(wa||(wa={}));var xa;(function(t){t[t.None=0]="None",t[t.Text=1]="Text",t[t.Blocks=2]="Blocks"})(xa||(xa={}));var Sa;(function(t){t[t.Smooth=0]="Smooth",t[t.Immediate=1]="Immediate"})(Sa||(Sa={}));var Ca;(function(t){t[t.Auto=1]="Auto",t[t.Hidden=2]="Hidden",t[t.Visible=3]="Visible"})(Ca||(Ca={}));var Qr;(function(t){t[t.LTR=0]="LTR",t[t.RTL=1]="RTL"})(Qr||(Qr={}));var ka;(function(t){t.Off="off",t.OnCode="onCode",t.On="on"})(ka||(ka={}));var _a;(function(t){t[t.Invoke=1]="Invoke",t[t.TriggerCharacter=2]="TriggerCharacter",t[t.ContentChange=3]="ContentChange"})(_a||(_a={}));var Ea;(function(t){t[t.File=0]="File",t[t.Module=1]="Module",t[t.Namespace=2]="Namespace",t[t.Package=3]="Package",t[t.Class=4]="Class",t[t.Method=5]="Method",t[t.Property=6]="Property",t[t.Field=7]="Field",t[t.Constructor=8]="Constructor",t[t.Enum=9]="Enum",t[t.Interface=10]="Interface",t[t.Function=11]="Function",t[t.Variable=12]="Variable",t[t.Constant=13]="Constant",t[t.String=14]="String",t[t.Number=15]="Number",t[t.Boolean=16]="Boolean",t[t.Array=17]="Array",t[t.Object=18]="Object",t[t.Key=19]="Key",t[t.Null=20]="Null",t[t.EnumMember=21]="EnumMember",t[t.Struct=22]="Struct",t[t.Event=23]="Event",t[t.Operator=24]="Operator",t[t.TypeParameter=25]="TypeParameter"})(Ea||(Ea={}));var Ra;(function(t){t[t.Deprecated=1]="Deprecated"})(Ra||(Ra={}));var Fa;(function(t){t[t.Hidden=0]="Hidden",t[t.Blink=1]="Blink",t[t.Smooth=2]="Smooth",t[t.Phase=3]="Phase",t[t.Expand=4]="Expand",t[t.Solid=5]="Solid"})(Fa||(Fa={}));var Da;(function(t){t[t.Line=1]="Line",t[t.Block=2]="Block",t[t.Underline=3]="Underline",t[t.LineThin=4]="LineThin",t[t.BlockOutline=5]="BlockOutline",t[t.UnderlineThin=6]="UnderlineThin"})(Da||(Da={}));var Aa;(function(t){t[t.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",t[t.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",t[t.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",t[t.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(Aa||(Aa={}));var Na;(function(t){t[t.None=0]="None",t[t.Same=1]="Same",t[t.Indent=2]="Indent",t[t.DeepIndent=3]="DeepIndent"})(Na||(Na={}));class on{static chord(e,n){return Th(e,n)}}on.CtrlCmd=2048,on.Shift=1024,on.Alt=512,on.WinCtrl=256;function qh(){return{editor:void 0,languages:void 0,CancellationTokenSource:zh,Emitter:qe,KeyCode:Jr,KeyMod:on,Position:Ye,Range:ve,Selection:ze,SelectionDirection:Qr,MarkerSeverity:Xr,MarkerTag:Yr,Uri:Wr,Token:Bh}}var Ma;class jh{constructor(){this[Ma]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){var e;return(e=this._head)===null||e===void 0?void 0:e.value}get last(){var e;return(e=this._tail)===null||e===void 0?void 0:e.value}has(e){return this._map.has(e)}get(e,n=0){const r=this._map.get(e);if(r)return n!==0&&this.touch(r,n),r.value}set(e,n,r=0){let i=this._map.get(e);if(i)i.value=n,r!==0&&this.touch(i,r);else{switch(i={key:e,value:n,next:void 0,previous:void 0},r){case 0:this.addItemLast(i);break;case 1:this.addItemFirst(i);break;case 2:this.addItemLast(i);break;default:this.addItemLast(i);break}this._map.set(e,i),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const n=this._map.get(e);if(n)return this._map.delete(e),this.removeItem(n),this._size--,n.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,n){const r=this._state;let i=this._head;for(;i;){if(n?e.bind(n)(i.value,i.key,this):e(i.value,i.key,this),this._state!==r)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){const e=this,n=this._state;let r=this._head;const i={[Symbol.iterator](){return i},next(){if(e._state!==n)throw new Error("LinkedMap got modified during iteration.");if(r){const s={value:r.key,done:!1};return r=r.next,s}else return{value:void 0,done:!0}}};return i}values(){const e=this,n=this._state;let r=this._head;const i={[Symbol.iterator](){return i},next(){if(e._state!==n)throw new Error("LinkedMap got modified during iteration.");if(r){const s={value:r.value,done:!1};return r=r.next,s}else return{value:void 0,done:!0}}};return i}entries(){const e=this,n=this._state;let r=this._head;const i={[Symbol.iterator](){return i},next(){if(e._state!==n)throw new Error("LinkedMap got modified during iteration.");if(r){const s={value:[r.key,r.value],done:!1};return r=r.next,s}else return{value:void 0,done:!0}}};return i}[(Ma=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let n=this._head,r=this.size;for(;n&&r>e;)this._map.delete(n.key),n=n.next,r--;this._head=n,this._size=r,n&&(n.previous=void 0),this._state++}addItemFirst(e){if(!this._head&&!this._tail)this._tail=e;else if(this._head)e.next=this._head,this._head.previous=e;else throw new Error("Invalid list");this._head=e,this._state++}addItemLast(e){if(!this._head&&!this._tail)this._head=e;else if(this._tail)e.previous=this._tail,this._tail.next=e;else throw new Error("Invalid list");this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const n=e.next,r=e.previous;if(!n||!r)throw new Error("Invalid list");n.previous=r,r.next=n}e.next=void 0,e.previous=void 0,this._state++}touch(e,n){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(n!==1&&n!==2)){if(n===1){if(e===this._head)return;const r=e.next,i=e.previous;e===this._tail?(i.next=void 0,this._tail=i):(r.previous=i,i.next=r),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(n===2){if(e===this._tail)return;const r=e.next,i=e.previous;e===this._head?(r.previous=void 0,this._head=r):(r.previous=i,i.next=r),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){const e=[];return this.forEach((n,r)=>{e.push([r,n])}),e}fromJSON(e){this.clear();for(const[n,r]of e)this.set(n,r)}}class $h extends jh{constructor(e,n=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,n),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get(e,n=2){return super.get(e,n)}peek(e){return super.get(e,0)}set(e,n){return super.set(e,n,2),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}class Hh{constructor(){this.map=new Map}add(e,n){let r=this.map.get(e);r||(r=new Set,this.map.set(e,r)),r.add(n)}delete(e,n){const r=this.map.get(e);r&&(r.delete(n),r.size===0&&this.map.delete(e))}forEach(e,n){const r=this.map.get(e);r&&r.forEach(n)}get(e){const n=this.map.get(e);return n||new Set}}new $h(10);var za;(function(t){t[t.Left=1]="Left",t[t.Center=2]="Center",t[t.Right=4]="Right",t[t.Full=7]="Full"})(za||(za={}));var La;(function(t){t[t.Left=1]="Left",t[t.Center=2]="Center",t[t.Right=3]="Right"})(La||(La={}));var Pa;(function(t){t[t.Both=0]="Both",t[t.Right=1]="Right",t[t.Left=2]="Left",t[t.None=3]="None"})(Pa||(Pa={}));function Gh(t,e,n,r,i){if(r===0)return!0;const s=e.charCodeAt(r-1);if(t.get(s)!==0||s===13||s===10)return!0;if(i>0){const a=e.charCodeAt(r);if(t.get(a)!==0)return!0}return!1}function Jh(t,e,n,r,i){if(r+i===n)return!0;const s=e.charCodeAt(r+i);if(t.get(s)!==0||s===13||s===10)return!0;if(i>0){const a=e.charCodeAt(r+i-1);if(t.get(a)!==0)return!0}return!1}function Xh(t,e,n,r,i){return Gh(t,e,n,r,i)&&Jh(t,e,n,r,i)}class Yh{constructor(e,n){this._wordSeparators=e,this._searchRegex=n,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(e){const n=e.length;let r;do{if(this._prevMatchStartIndex+this._prevMatchLength===n||(r=this._searchRegex.exec(e),!r))return null;const i=r.index,s=r[0].length;if(i===this._prevMatchStartIndex&&s===this._prevMatchLength){if(s===0){Uc(e,n,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=i,this._prevMatchLength=s,!this._wordSeparators||Xh(this._wordSeparators,e,n,i,s))return r}while(r);return null}}function Qh(t,e="Unreachable"){throw new Error(e)}function Yn(t){if(!t()){debugger;t(),ls(new tt("Assertion Failed"))}}function Ia(t,e){let n=0;for(;n<t.length-1;){const r=t[n],i=t[n+1];if(!e(r,i))return!1;n++}return!0}class Kh{static computeUnicodeHighlights(e,n,r){const i=r?r.startLineNumber:1,s=r?r.endLineNumber:e.getLineCount(),a=new Ta(n),o=a.getCandidateCodePoints();let l;o==="allNonBasicAscii"?l=new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):l=new RegExp(`${Zh(Array.from(o))}`,"g");const c=new Yh(null,l),h=[];let u=!1,f,m=0,g=0,b=0;e:for(let y=i,C=s;y<=C;y++){const k=e.getLineContent(y),w=k.length;c.reset(0);do if(f=c.next(k),f){let F=f.index,_=f.index+f[0].length;if(F>0){const J=k.charCodeAt(F-1);Pr(J)&&F--}if(_+1<w){const J=k.charCodeAt(_-1);Pr(J)&&_++}const P=k.substring(F,_);let W=Vr(F+1,As,k,0);W&&W.endColumn<=F+1&&(W=null);const T=a.shouldHighlightNonBasicASCII(P,W?W.word:null);if(T!==0){if(T===3?m++:T===2?g++:T===1?b++:Qh(),h.length>=1e3){u=!0;break e}h.push(new ve(y,F+1,y,_+1))}}while(f)}return{ranges:h,hasMore:u,ambiguousCharacterCount:m,invisibleCharacterCount:g,nonBasicAsciiCharacterCount:b}}static computeUnicodeHighlightReason(e,n){const r=new Ta(n);switch(r.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{const s=e.codePointAt(0),a=r.ambiguousCharacters.getPrimaryConfusable(s),o=St.getLocales().filter(l=>!St.getInstance(new Set([...n.allowedLocales,l])).isAmbiguous(s));return{kind:0,confusableWith:String.fromCodePoint(a),notAmbiguousInLocales:o}}case 1:return{kind:2}}}}function Zh(t,e){return`[${Lc(t.map(r=>String.fromCodePoint(r)).join(""))}]`}class Ta{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=St.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const e=new Set;if(this.options.invisibleCharacters)for(const n of ht.codePoints)Wa(String.fromCodePoint(n))||e.add(n);if(this.options.ambiguousCharacters)for(const n of this.ambiguousCharacters.getConfusableCodePoints())e.add(n);for(const n of this.allowedCodePoints)e.delete(n);return e}shouldHighlightNonBasicASCII(e,n){const r=e.codePointAt(0);if(this.allowedCodePoints.has(r))return 0;if(this.options.nonBasicASCII)return 1;let i=!1,s=!1;if(n)for(const a of n){const o=a.codePointAt(0),l=Bc(a);i=i||l,!l&&!this.ambiguousCharacters.isAmbiguous(o)&&!ht.isInvisibleCharacter(o)&&(s=!0)}return!i&&s?0:this.options.invisibleCharacters&&!Wa(e)&&ht.isInvisibleCharacter(r)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(r)?3:0}}function Wa(t){return t===" "||t===`
|
|
8
|
-
`||t===" "}class Qn{constructor(e,n,r){this.changes=e,this.moves=n,this.hitTimeout=r}}class ed{constructor(e,n){this.lineRangeMapping=e,this.changes=n}}class K{static addRange(e,n){let r=0;for(;r<n.length&&n[r].endExclusive<e.start;)r++;let i=r;for(;i<n.length&&n[i].start<=e.endExclusive;)i++;if(r===i)n.splice(r,0,e);else{const s=Math.min(e.start,n[r].start),a=Math.max(e.endExclusive,n[i-1].endExclusive);n.splice(r,i-r,new K(s,a))}}static tryCreate(e,n){if(!(e>n))return new K(e,n)}static ofLength(e){return new K(0,e)}static ofStartAndLength(e,n){return new K(e,e+n)}constructor(e,n){if(this.start=e,this.endExclusive=n,e>n)throw new tt(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(e){return new K(this.start+e,this.endExclusive+e)}deltaStart(e){return new K(this.start+e,this.endExclusive)}deltaEnd(e){return new K(this.start,this.endExclusive+e)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}contains(e){return this.start<=e&&e<this.endExclusive}join(e){return new K(Math.min(this.start,e.start),Math.max(this.endExclusive,e.endExclusive))}intersect(e){const n=Math.max(this.start,e.start),r=Math.min(this.endExclusive,e.endExclusive);if(n<=r)return new K(n,r)}intersects(e){const n=Math.max(this.start,e.start),r=Math.min(this.endExclusive,e.endExclusive);return n<r}isBefore(e){return this.endExclusive<=e.start}isAfter(e){return this.start>=e.endExclusive}slice(e){return e.slice(this.start,this.endExclusive)}substring(e){return e.substring(this.start,this.endExclusive)}clip(e){if(this.isEmpty)throw new tt(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,e))}clipCyclic(e){if(this.isEmpty)throw new tt(`Invalid clipping range: ${this.toString()}`);return e<this.start?this.endExclusive-(this.start-e)%this.length:e>=this.endExclusive?this.start+(e-this.start)%this.length:e}forEach(e){for(let n=this.start;n<this.endExclusive;n++)e(n)}}function Vt(t,e){const n=ln(t,e);return n===-1?void 0:t[n]}function ln(t,e,n=0,r=t.length){let i=n,s=r;for(;i<s;){const a=Math.floor((i+s)/2);e(t[a])?i=a+1:s=a}return i-1}function td(t,e){const n=Kr(t,e);return n===t.length?void 0:t[n]}function Kr(t,e,n=0,r=t.length){let i=n,s=r;for(;i<s;){const a=Math.floor((i+s)/2);e(t[a])?s=a:i=a+1}return i}class cn{constructor(e){this._array=e,this._findLastMonotonousLastIdx=0}findLastMonotonous(e){if(cn.assertInvariants){if(this._prevFindLastPredicate){for(const r of this._array)if(this._prevFindLastPredicate(r)&&!e(r))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.")}this._prevFindLastPredicate=e}const n=ln(this._array,e,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=n+1,n===-1?void 0:this._array[n]}}cn.assertInvariants=!1;class Q{static fromRangeInclusive(e){return new Q(e.startLineNumber,e.endLineNumber+1)}static joinMany(e){if(e.length===0)return[];let n=new Qe(e[0].slice());for(let r=1;r<e.length;r++)n=n.getUnion(new Qe(e[r].slice()));return n.ranges}static join(e){if(e.length===0)throw new tt("lineRanges cannot be empty");let n=e[0].startLineNumber,r=e[0].endLineNumberExclusive;for(let i=1;i<e.length;i++)n=Math.min(n,e[i].startLineNumber),r=Math.max(r,e[i].endLineNumberExclusive);return new Q(n,r)}static ofLength(e,n){return new Q(e,e+n)}static deserialize(e){return new Q(e[0],e[1])}constructor(e,n){if(e>n)throw new tt(`startLineNumber ${e} cannot be after endLineNumberExclusive ${n}`);this.startLineNumber=e,this.endLineNumberExclusive=n}contains(e){return this.startLineNumber<=e&&e<this.endLineNumberExclusive}get isEmpty(){return this.startLineNumber===this.endLineNumberExclusive}delta(e){return new Q(this.startLineNumber+e,this.endLineNumberExclusive+e)}deltaLength(e){return new Q(this.startLineNumber,this.endLineNumberExclusive+e)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(e){return new Q(Math.min(this.startLineNumber,e.startLineNumber),Math.max(this.endLineNumberExclusive,e.endLineNumberExclusive))}toString(){return`[${this.startLineNumber},${this.endLineNumberExclusive})`}intersect(e){const n=Math.max(this.startLineNumber,e.startLineNumber),r=Math.min(this.endLineNumberExclusive,e.endLineNumberExclusive);if(n<=r)return new Q(n,r)}intersectsStrict(e){return this.startLineNumber<e.endLineNumberExclusive&&e.startLineNumber<this.endLineNumberExclusive}overlapOrTouch(e){return this.startLineNumber<=e.endLineNumberExclusive&&e.startLineNumber<=this.endLineNumberExclusive}equals(e){return this.startLineNumber===e.startLineNumber&&this.endLineNumberExclusive===e.endLineNumberExclusive}toInclusiveRange(){return this.isEmpty?null:new ve(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new ve(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(e){const n=[];for(let r=this.startLineNumber;r<this.endLineNumberExclusive;r++)n.push(e(r));return n}forEach(e){for(let n=this.startLineNumber;n<this.endLineNumberExclusive;n++)e(n)}serialize(){return[this.startLineNumber,this.endLineNumberExclusive]}includes(e){return this.startLineNumber<=e&&e<this.endLineNumberExclusive}toOffsetRange(){return new K(this.startLineNumber-1,this.endLineNumberExclusive-1)}}class Qe{constructor(e=[]){this._normalizedRanges=e}get ranges(){return this._normalizedRanges}addRange(e){if(e.length===0)return;const n=Kr(this._normalizedRanges,i=>i.endLineNumberExclusive>=e.startLineNumber),r=ln(this._normalizedRanges,i=>i.startLineNumber<=e.endLineNumberExclusive)+1;if(n===r)this._normalizedRanges.splice(n,0,e);else if(n===r-1){const i=this._normalizedRanges[n];this._normalizedRanges[n]=i.join(e)}else{const i=this._normalizedRanges[n].join(this._normalizedRanges[r-1]).join(e);this._normalizedRanges.splice(n,r-n,i)}}contains(e){const n=Vt(this._normalizedRanges,r=>r.startLineNumber<=e);return!!n&&n.endLineNumberExclusive>e}intersects(e){const n=Vt(this._normalizedRanges,r=>r.startLineNumber<e.endLineNumberExclusive);return!!n&&n.endLineNumberExclusive>e.startLineNumber}getUnion(e){if(this._normalizedRanges.length===0)return e;if(e._normalizedRanges.length===0)return this;const n=[];let r=0,i=0,s=null;for(;r<this._normalizedRanges.length||i<e._normalizedRanges.length;){let a=null;if(r<this._normalizedRanges.length&&i<e._normalizedRanges.length){const o=this._normalizedRanges[r],l=e._normalizedRanges[i];o.startLineNumber<l.startLineNumber?(a=o,r++):(a=l,i++)}else r<this._normalizedRanges.length?(a=this._normalizedRanges[r],r++):(a=e._normalizedRanges[i],i++);s===null?s=a:s.endLineNumberExclusive>=a.startLineNumber?s=new Q(s.startLineNumber,Math.max(s.endLineNumberExclusive,a.endLineNumberExclusive)):(n.push(s),s=a)}return s!==null&&n.push(s),new Qe(n)}subtractFrom(e){const n=Kr(this._normalizedRanges,a=>a.endLineNumberExclusive>=e.startLineNumber),r=ln(this._normalizedRanges,a=>a.startLineNumber<=e.endLineNumberExclusive)+1;if(n===r)return new Qe([e]);const i=[];let s=e.startLineNumber;for(let a=n;a<r;a++){const o=this._normalizedRanges[a];o.startLineNumber>s&&i.push(new Q(s,o.startLineNumber)),s=o.endLineNumberExclusive}return s<e.endLineNumberExclusive&&i.push(new Q(s,e.endLineNumberExclusive)),new Qe(i)}toString(){return this._normalizedRanges.map(e=>e.toString()).join(", ")}getIntersection(e){const n=[];let r=0,i=0;for(;r<this._normalizedRanges.length&&i<e._normalizedRanges.length;){const s=this._normalizedRanges[r],a=e._normalizedRanges[i],o=s.intersect(a);o&&!o.isEmpty&&n.push(o),s.endLineNumberExclusive<a.endLineNumberExclusive?r++:i++}return new Qe(n)}getWithDelta(e){return new Qe(this._normalizedRanges.map(n=>n.delta(e)))}}class He{static inverse(e,n,r){const i=[];let s=1,a=1;for(const l of e){const c=new He(new Q(s,l.original.startLineNumber),new Q(a,l.modified.startLineNumber));c.modified.isEmpty||i.push(c),s=l.original.endLineNumberExclusive,a=l.modified.endLineNumberExclusive}const o=new He(new Q(s,n+1),new Q(a,r+1));return o.modified.isEmpty||i.push(o),i}static clip(e,n,r){const i=[];for(const s of e){const a=s.original.intersect(n),o=s.modified.intersect(r);a&&!a.isEmpty&&o&&!o.isEmpty&&i.push(new He(a,o))}return i}constructor(e,n){this.original=e,this.modified=n}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new He(this.modified,this.original)}join(e){return new He(this.original.join(e.original),this.modified.join(e.modified))}}class nt extends He{static fromRangeMappings(e){const n=Q.join(e.map(i=>Q.fromRangeInclusive(i.originalRange))),r=Q.join(e.map(i=>Q.fromRangeInclusive(i.modifiedRange)));return new nt(n,r,e)}constructor(e,n,r){super(e,n),this.innerChanges=r}flip(){var e;return new nt(this.modified,this.original,(e=this.innerChanges)===null||e===void 0?void 0:e.map(n=>n.flip()))}withInnerChangesFromLineRanges(){return new nt(this.original,this.modified,[new Bt(this.original.toExclusiveRange(),this.modified.toExclusiveRange())])}}class Bt{constructor(e,n){this.originalRange=e,this.modifiedRange=n}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new Bt(this.modifiedRange,this.originalRange)}}const nd=3;class rd{computeDiff(e,n,r){var i;const a=new ad(e,n,{maxComputationTime:r.maxComputationTimeMs,shouldIgnoreTrimWhitespace:r.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),o=[];let l=null;for(const c of a.changes){let h;c.originalEndLineNumber===0?h=new Q(c.originalStartLineNumber+1,c.originalStartLineNumber+1):h=new Q(c.originalStartLineNumber,c.originalEndLineNumber+1);let u;c.modifiedEndLineNumber===0?u=new Q(c.modifiedStartLineNumber+1,c.modifiedStartLineNumber+1):u=new Q(c.modifiedStartLineNumber,c.modifiedEndLineNumber+1);let f=new nt(h,u,(i=c.charChanges)===null||i===void 0?void 0:i.map(m=>new Bt(new ve(m.originalStartLineNumber,m.originalStartColumn,m.originalEndLineNumber,m.originalEndColumn),new ve(m.modifiedStartLineNumber,m.modifiedStartColumn,m.modifiedEndLineNumber,m.modifiedEndColumn))));l&&(l.modified.endLineNumberExclusive===f.modified.startLineNumber||l.original.endLineNumberExclusive===f.original.startLineNumber)&&(f=new nt(l.original.join(f.original),l.modified.join(f.modified),l.innerChanges&&f.innerChanges?l.innerChanges.concat(f.innerChanges):void 0),o.pop()),o.push(f),l=f}return Yn(()=>Ia(o,(c,h)=>h.original.startLineNumber-c.original.endLineNumberExclusive===h.modified.startLineNumber-c.modified.endLineNumberExclusive&&c.original.endLineNumberExclusive<h.original.startLineNumber&&c.modified.endLineNumberExclusive<h.modified.startLineNumber)),new Qn(o,[],a.quitEarly)}}function Oa(t,e,n,r){return new ut(t,e,n).ComputeDiff(r)}let Ua=class{constructor(e){const n=[],r=[];for(let i=0,s=e.length;i<s;i++)n[i]=Zr(e[i],1),r[i]=ei(e[i],1);this.lines=e,this._startColumns=n,this._endColumns=r}getElements(){const e=[];for(let n=0,r=this.lines.length;n<r;n++)e[n]=this.lines[n].substring(this._startColumns[n]-1,this._endColumns[n]-1);return e}getStrictElement(e){return this.lines[e]}getStartLineNumber(e){return e+1}getEndLineNumber(e){return e+1}createCharSequence(e,n,r){const i=[],s=[],a=[];let o=0;for(let l=n;l<=r;l++){const c=this.lines[l],h=e?this._startColumns[l]:1,u=e?this._endColumns[l]:c.length+1;for(let f=h;f<u;f++)i[o]=c.charCodeAt(f-1),s[o]=l+1,a[o]=f,o++;!e&&l<r&&(i[o]=10,s[o]=l+1,a[o]=c.length+1,o++)}return new id(i,s,a)}};class id{constructor(e,n,r){this._charCodes=e,this._lineNumbers=n,this._columns=r}toString(){return"["+this._charCodes.map((e,n)=>(e===10?"\\n":String.fromCharCode(e))+`-(${this._lineNumbers[n]},${this._columns[n]})`).join(", ")+"]"}_assertIndex(e,n){if(e<0||e>=n.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(e){return e>0&&e===this._lineNumbers.length?this.getEndLineNumber(e-1):(this._assertIndex(e,this._lineNumbers),this._lineNumbers[e])}getEndLineNumber(e){return e===-1?this.getStartLineNumber(e+1):(this._assertIndex(e,this._lineNumbers),this._charCodes[e]===10?this._lineNumbers[e]+1:this._lineNumbers[e])}getStartColumn(e){return e>0&&e===this._columns.length?this.getEndColumn(e-1):(this._assertIndex(e,this._columns),this._columns[e])}getEndColumn(e){return e===-1?this.getStartColumn(e+1):(this._assertIndex(e,this._columns),this._charCodes[e]===10?1:this._columns[e]+1)}}class qt{constructor(e,n,r,i,s,a,o,l){this.originalStartLineNumber=e,this.originalStartColumn=n,this.originalEndLineNumber=r,this.originalEndColumn=i,this.modifiedStartLineNumber=s,this.modifiedStartColumn=a,this.modifiedEndLineNumber=o,this.modifiedEndColumn=l}static createFromDiffChange(e,n,r){const i=n.getStartLineNumber(e.originalStart),s=n.getStartColumn(e.originalStart),a=n.getEndLineNumber(e.originalStart+e.originalLength-1),o=n.getEndColumn(e.originalStart+e.originalLength-1),l=r.getStartLineNumber(e.modifiedStart),c=r.getStartColumn(e.modifiedStart),h=r.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),u=r.getEndColumn(e.modifiedStart+e.modifiedLength-1);return new qt(i,s,a,o,l,c,h,u)}}function sd(t){if(t.length<=1)return t;const e=[t[0]];let n=e[0];for(let r=1,i=t.length;r<i;r++){const s=t[r],a=s.originalStart-(n.originalStart+n.originalLength),o=s.modifiedStart-(n.modifiedStart+n.modifiedLength);Math.min(a,o)<nd?(n.originalLength=s.originalStart+s.originalLength-n.originalStart,n.modifiedLength=s.modifiedStart+s.modifiedLength-n.modifiedStart):(e.push(s),n=s)}return e}class hn{constructor(e,n,r,i,s){this.originalStartLineNumber=e,this.originalEndLineNumber=n,this.modifiedStartLineNumber=r,this.modifiedEndLineNumber=i,this.charChanges=s}static createFromDiffResult(e,n,r,i,s,a,o){let l,c,h,u,f;if(n.originalLength===0?(l=r.getStartLineNumber(n.originalStart)-1,c=0):(l=r.getStartLineNumber(n.originalStart),c=r.getEndLineNumber(n.originalStart+n.originalLength-1)),n.modifiedLength===0?(h=i.getStartLineNumber(n.modifiedStart)-1,u=0):(h=i.getStartLineNumber(n.modifiedStart),u=i.getEndLineNumber(n.modifiedStart+n.modifiedLength-1)),a&&n.originalLength>0&&n.originalLength<20&&n.modifiedLength>0&&n.modifiedLength<20&&s()){const m=r.createCharSequence(e,n.originalStart,n.originalStart+n.originalLength-1),g=i.createCharSequence(e,n.modifiedStart,n.modifiedStart+n.modifiedLength-1);if(m.getElements().length>0&&g.getElements().length>0){let b=Oa(m,g,s,!0).changes;o&&(b=sd(b)),f=[];for(let y=0,C=b.length;y<C;y++)f.push(qt.createFromDiffChange(b[y],m,g))}}return new hn(l,c,h,u,f)}}class ad{constructor(e,n,r){this.shouldComputeCharChanges=r.shouldComputeCharChanges,this.shouldPostProcessCharChanges=r.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=r.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=r.shouldMakePrettyDiff,this.originalLines=e,this.modifiedLines=n,this.original=new Ua(e),this.modified=new Ua(n),this.continueLineDiff=Va(r.maxComputationTime),this.continueCharDiff=Va(r.maxComputationTime===0?0:Math.min(r.maxComputationTime,5e3))}computeDiff(){if(this.original.lines.length===1&&this.original.lines[0].length===0)return this.modified.lines.length===1&&this.modified.lines[0].length===0?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:void 0}]};if(this.modified.lines.length===1&&this.modified.lines[0].length===0)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:void 0}]};const e=Oa(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),n=e.changes,r=e.quitEarly;if(this.shouldIgnoreTrimWhitespace){const o=[];for(let l=0,c=n.length;l<c;l++)o.push(hn.createFromDiffResult(this.shouldIgnoreTrimWhitespace,n[l],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:r,changes:o}}const i=[];let s=0,a=0;for(let o=-1,l=n.length;o<l;o++){const c=o+1<l?n[o+1]:null,h=c?c.originalStart:this.originalLines.length,u=c?c.modifiedStart:this.modifiedLines.length;for(;s<h&&a<u;){const f=this.originalLines[s],m=this.modifiedLines[a];if(f!==m){{let g=Zr(f,1),b=Zr(m,1);for(;g>1&&b>1;){const y=f.charCodeAt(g-2),C=m.charCodeAt(b-2);if(y!==C)break;g--,b--}(g>1||b>1)&&this._pushTrimWhitespaceCharChange(i,s+1,1,g,a+1,1,b)}{let g=ei(f,1),b=ei(m,1);const y=f.length+1,C=m.length+1;for(;g<y&&b<C;){const k=f.charCodeAt(g-1),w=f.charCodeAt(b-1);if(k!==w)break;g++,b++}(g<y||b<C)&&this._pushTrimWhitespaceCharChange(i,s+1,g,y,a+1,b,C)}}s++,a++}c&&(i.push(hn.createFromDiffResult(this.shouldIgnoreTrimWhitespace,c,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),s+=c.originalLength,a+=c.modifiedLength)}return{quitEarly:r,changes:i}}_pushTrimWhitespaceCharChange(e,n,r,i,s,a,o){if(this._mergeTrimWhitespaceCharChange(e,n,r,i,s,a,o))return;let l;this.shouldComputeCharChanges&&(l=[new qt(n,r,n,i,s,a,s,o)]),e.push(new hn(n,n,s,s,l))}_mergeTrimWhitespaceCharChange(e,n,r,i,s,a,o){const l=e.length;if(l===0)return!1;const c=e[l-1];return c.originalEndLineNumber===0||c.modifiedEndLineNumber===0?!1:c.originalEndLineNumber===n&&c.modifiedEndLineNumber===s?(this.shouldComputeCharChanges&&c.charChanges&&c.charChanges.push(new qt(n,r,n,i,s,a,s,o)),!0):c.originalEndLineNumber+1===n&&c.modifiedEndLineNumber+1===s?(c.originalEndLineNumber=n,c.modifiedEndLineNumber=s,this.shouldComputeCharChanges&&c.charChanges&&c.charChanges.push(new qt(n,r,n,i,s,a,s,o)),!0):!1}}function Zr(t,e){const n=Ic(t);return n===-1?e:n+1}function ei(t,e){const n=Tc(t);return n===-1?e:n+2}function Va(t){if(t===0)return()=>!0;const e=Date.now();return()=>Date.now()-e<t}class rt{static trivial(e,n){return new rt([new ce(K.ofLength(e.length),K.ofLength(n.length))],!1)}static trivialTimedOut(e,n){return new rt([new ce(K.ofLength(e.length),K.ofLength(n.length))],!0)}constructor(e,n){this.diffs=e,this.hitTimeout=n}}class ce{static invert(e,n){const r=[];return vh(e,(i,s)=>{r.push(ce.fromOffsetPairs(i?i.getEndExclusives():Le.zero,s?s.getStarts():new Le(n,(i?i.seq2Range.endExclusive-i.seq1Range.endExclusive:0)+n)))}),r}static fromOffsetPairs(e,n){return new ce(new K(e.offset1,n.offset1),new K(e.offset2,n.offset2))}constructor(e,n){this.seq1Range=e,this.seq2Range=n}swap(){return new ce(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(e){return new ce(this.seq1Range.join(e.seq1Range),this.seq2Range.join(e.seq2Range))}delta(e){return e===0?this:new ce(this.seq1Range.delta(e),this.seq2Range.delta(e))}deltaStart(e){return e===0?this:new ce(this.seq1Range.deltaStart(e),this.seq2Range.deltaStart(e))}deltaEnd(e){return e===0?this:new ce(this.seq1Range.deltaEnd(e),this.seq2Range.deltaEnd(e))}intersect(e){const n=this.seq1Range.intersect(e.seq1Range),r=this.seq2Range.intersect(e.seq2Range);if(!(!n||!r))return new ce(n,r)}getStarts(){return new Le(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new Le(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}class Le{constructor(e,n){this.offset1=e,this.offset2=n}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(e){return e===0?this:new Le(this.offset1+e,this.offset2+e)}equals(e){return this.offset1===e.offset1&&this.offset2===e.offset2}}Le.zero=new Le(0,0),Le.max=new Le(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER);class dn{isValid(){return!0}}dn.instance=new dn;class od{constructor(e){if(this.timeout=e,this.startTime=Date.now(),this.valid=!0,e<=0)throw new tt("timeout must be positive")}isValid(){if(!(Date.now()-this.startTime<this.timeout)&&this.valid){this.valid=!1;debugger}return this.valid}}class ti{constructor(e,n){this.width=e,this.height=n,this.array=[],this.array=new Array(e*n)}get(e,n){return this.array[e+n*this.width]}set(e,n,r){this.array[e+n*this.width]=r}}function ni(t){return t===32||t===9}class jt{static getKey(e){let n=this.chrKeys.get(e);return n===void 0&&(n=this.chrKeys.size,this.chrKeys.set(e,n)),n}constructor(e,n,r){this.range=e,this.lines=n,this.source=r,this.histogram=[];let i=0;for(let s=e.startLineNumber-1;s<e.endLineNumberExclusive-1;s++){const a=n[s];for(let l=0;l<a.length;l++){i++;const c=a[l],h=jt.getKey(c);this.histogram[h]=(this.histogram[h]||0)+1}i++;const o=jt.getKey(`
|
|
9
|
-
`);this.histogram[o]=(this.histogram[o]||0)+1}this.totalCount=i}computeSimilarity(e){var n,r;let i=0;const s=Math.max(this.histogram.length,e.histogram.length);for(let a=0;a<s;a++)i+=Math.abs(((n=this.histogram[a])!==null&&n!==void 0?n:0)-((r=e.histogram[a])!==null&&r!==void 0?r:0));return 1-i/(this.totalCount+e.totalCount)}}jt.chrKeys=new Map;class ld{compute(e,n,r=dn.instance,i){if(e.length===0||n.length===0)return rt.trivial(e,n);const s=new ti(e.length,n.length),a=new ti(e.length,n.length),o=new ti(e.length,n.length);for(let g=0;g<e.length;g++)for(let b=0;b<n.length;b++){if(!r.isValid())return rt.trivialTimedOut(e,n);const y=g===0?0:s.get(g-1,b),C=b===0?0:s.get(g,b-1);let k;e.getElement(g)===n.getElement(b)?(g===0||b===0?k=0:k=s.get(g-1,b-1),g>0&&b>0&&a.get(g-1,b-1)===3&&(k+=o.get(g-1,b-1)),k+=i?i(g,b):1):k=-1;const w=Math.max(y,C,k);if(w===k){const F=g>0&&b>0?o.get(g-1,b-1):0;o.set(g,b,F+1),a.set(g,b,3)}else w===y?(o.set(g,b,0),a.set(g,b,1)):w===C&&(o.set(g,b,0),a.set(g,b,2));s.set(g,b,w)}const l=[];let c=e.length,h=n.length;function u(g,b){(g+1!==c||b+1!==h)&&l.push(new ce(new
|
|
10
|
-
`).length>=15&&pd(u,m=>m.length>=2)>=2}),a=bd(t,a),a}function pd(t,e){let n=0;for(const r of t)e(r)&&n++;return n}function fd(t,e,n,r){const i=[],s=t.filter(l=>l.modified.isEmpty&&l.original.length>=3).map(l=>new jt(l.original,e,l)),a=new Set(t.filter(l=>l.original.isEmpty&&l.modified.length>=3).map(l=>new jt(l.modified,n,l))),o=new Set;for(const l of s){let c=-1,h;for(const u of a){const f=l.computeSimilarity(u);f>c&&(c=f,h=u)}if(c>.9&&h&&(a.delete(h),i.push(new He(l.range,h.range)),o.add(l.source),o.add(h.source)),!r.isValid())return{moves:i,excludedChanges:o}}return{moves:i,excludedChanges:o}}function md(t,e,n,r,i,s){const a=[],o=new Hh;for(const f of t)for(let m=f.original.startLineNumber;m<f.original.endLineNumberExclusive-2;m++){const g=`${e[m-1]}:${e[m+1-1]}:${e[m+2-1]}`;o.add(g,{range:new Q(m,m+3)})}const l=[];t.sort(jn(f=>f.modified.startLineNumber,$n));for(const f of t){let m=[];for(let g=f.modified.startLineNumber;g<f.modified.endLineNumberExclusive-2;g++){const b=`${n[g-1]}:${n[g+1-1]}:${n[g+2-1]}`,y=new Q(g,g+3),C=[];o.forEach(b,({range:k})=>{for(const F of m)if(F.originalLineRange.endLineNumberExclusive+1===k.endLineNumberExclusive&&F.modifiedLineRange.endLineNumberExclusive+1===y.endLineNumberExclusive){F.originalLineRange=new Q(F.originalLineRange.startLineNumber,k.endLineNumberExclusive),F.modifiedLineRange=new Q(F.modifiedLineRange.startLineNumber,y.endLineNumberExclusive),C.push(F);return}const w={modifiedLineRange:y,originalLineRange:k};l.push(w),C.push(w)}),m=C}if(!s.isValid())return[]}l.sort(xh(jn(f=>f.modifiedLineRange.length,$n)));const c=new Qe,h=new Qe;for(const f of l){const m=f.modifiedLineRange.startLineNumber-f.originalLineRange.startLineNumber,g=c.subtractFrom(f.modifiedLineRange),b=h.subtractFrom(f.originalLineRange).getWithDelta(m),y=g.getIntersection(b);for(const C of y.ranges){if(C.length<3)continue;const k=C,w=C.delta(-m);a.push(new He(w,k)),c.addRange(k),h.addRange(w)}}a.sort(jn(f=>f.original.startLineNumber,$n));const u=new cn(t);for(let f=0;f<a.length;f++){const m=a[f],g=u.findLastMonotonous(P=>P.original.startLineNumber<=m.original.startLineNumber),b=Vt(t,P=>P.modified.startLineNumber<=m.modified.startLineNumber),y=Math.max(m.original.startLineNumber-g.original.startLineNumber,m.modified.startLineNumber-b.modified.startLineNumber),C=u.findLastMonotonous(P=>P.original.startLineNumber<m.original.endLineNumberExclusive),k=Vt(t,P=>P.modified.startLineNumber<m.modified.endLineNumberExclusive),w=Math.max(C.original.endLineNumberExclusive-m.original.endLineNumberExclusive,k.modified.endLineNumberExclusive-m.modified.endLineNumberExclusive);let F;for(F=0;F<y;F++){const P=m.original.startLineNumber-F-1,W=m.modified.startLineNumber-F-1;if(P>r.length||W>i.length||c.contains(W)||h.contains(P)||!Ha(r[P-1],i[W-1],s))break}F>0&&(h.addRange(new Q(m.original.startLineNumber-F,m.original.startLineNumber)),c.addRange(new Q(m.modified.startLineNumber-F,m.modified.startLineNumber)));let _;for(_=0;_<w;_++){const P=m.original.endLineNumberExclusive+_,W=m.modified.endLineNumberExclusive+_;if(P>r.length||W>i.length||c.contains(W)||h.contains(P)||!Ha(r[P-1],i[W-1],s))break}_>0&&(h.addRange(new Q(m.original.endLineNumberExclusive,m.original.endLineNumberExclusive+_)),c.addRange(new Q(m.modified.endLineNumberExclusive,m.modified.endLineNumberExclusive+_))),(F>0||_>0)&&(a[f]=new He(new Q(m.original.startLineNumber-F,m.original.endLineNumberExclusive+_),new Q(m.modified.startLineNumber-F,m.modified.endLineNumberExclusive+_)))}return a}function Ha(t,e,n){if(t.trim()===e.trim())return!0;if(t.length>300&&e.length>300)return!1;const i=new Ba().compute(new Kn([t],new K(0,1),!1),new Kn([e],new K(0,1),!1),n);let s=0;const a=ce.invert(i.diffs,t.length);for(const h of a)h.seq1Range.forEach(u=>{ni(t.charCodeAt(u))||s++});function o(h){let u=0;for(let f=0;f<t.length;f++)ni(h.charCodeAt(f))||u++;return u}const l=o(t.length>e.length?t:e);return s/l>.6&&l>10}function gd(t){if(t.length===0)return t;t.sort(jn(n=>n.original.startLineNumber,$n));const e=[t[0]];for(let n=1;n<t.length;n++){const r=e[e.length-1],i=t[n],s=i.original.startLineNumber-r.original.endLineNumberExclusive,a=i.modified.startLineNumber-r.modified.endLineNumberExclusive;if(s>=0&&a>=0&&s+a<=2){e[e.length-1]=r.join(i);continue}e.push(i)}return e}function bd(t,e){const n=new cn(t);return e=e.filter(r=>{const i=n.findLastMonotonous(o=>o.original.startLineNumber<r.original.endLineNumberExclusive)||new He(new Q(1,1),new Q(1,1)),s=Vt(t,o=>o.modified.startLineNumber<r.modified.endLineNumberExclusive);return i!==s}),e}function Ga(t,e,n){let r=n;return r=Ja(t,e,r),r=Ja(t,e,r),r=vd(t,e,r),r}function Ja(t,e,n){if(n.length===0)return n;const r=[];r.push(n[0]);for(let s=1;s<n.length;s++){const a=r[r.length-1];let o=n[s];if(o.seq1Range.isEmpty||o.seq2Range.isEmpty){const l=o.seq1Range.start-a.seq1Range.endExclusive;let c;for(c=1;c<=l&&!(t.getElement(o.seq1Range.start-c)!==t.getElement(o.seq1Range.endExclusive-c)||e.getElement(o.seq2Range.start-c)!==e.getElement(o.seq2Range.endExclusive-c));c++);if(c--,c===l){r[r.length-1]=new ce(new K(a.seq1Range.start,o.seq1Range.endExclusive-l),new K(a.seq2Range.start,o.seq2Range.endExclusive-l));continue}o=o.delta(-c)}r.push(o)}const i=[];for(let s=0;s<r.length-1;s++){const a=r[s+1];let o=r[s];if(o.seq1Range.isEmpty||o.seq2Range.isEmpty){const l=a.seq1Range.start-o.seq1Range.endExclusive;let c;for(c=0;c<l&&!(!t.isStronglyEqual(o.seq1Range.start+c,o.seq1Range.endExclusive+c)||!e.isStronglyEqual(o.seq2Range.start+c,o.seq2Range.endExclusive+c));c++);if(c===l){r[s+1]=new ce(new K(o.seq1Range.start+l,a.seq1Range.endExclusive),new K(o.seq2Range.start+l,a.seq2Range.endExclusive));continue}c>0&&(o=o.delta(c))}i.push(o)}return r.length>0&&i.push(r[r.length-1]),i}function vd(t,e,n){if(!t.getBoundaryScore||!e.getBoundaryScore)return n;for(let r=0;r<n.length;r++){const i=r>0?n[r-1]:void 0,s=n[r],a=r+1<n.length?n[r+1]:void 0,o=new K(i?i.seq1Range.endExclusive+1:0,a?a.seq1Range.start-1:t.length),l=new K(i?i.seq2Range.endExclusive+1:0,a?a.seq2Range.start-1:e.length);s.seq1Range.isEmpty?n[r]=Xa(s,t,e,o,l):s.seq2Range.isEmpty&&(n[r]=Xa(s.swap(),e,t,l,o).swap())}return n}function Xa(t,e,n,r,i){let a=1;for(;t.seq1Range.start-a>=r.start&&t.seq2Range.start-a>=i.start&&n.isStronglyEqual(t.seq2Range.start-a,t.seq2Range.endExclusive-a)&&a<100;)a++;a--;let o=0;for(;t.seq1Range.start+o<r.endExclusive&&t.seq2Range.endExclusive+o<i.endExclusive&&n.isStronglyEqual(t.seq2Range.start+o,t.seq2Range.endExclusive+o)&&o<100;)o++;if(a===0&&o===0)return t;let l=0,c=-1;for(let h=-a;h<=o;h++){const u=t.seq2Range.start+h,f=t.seq2Range.endExclusive+h,m=t.seq1Range.start+h,g=e.getBoundaryScore(m)+n.getBoundaryScore(u)+n.getBoundaryScore(f);g>c&&(c=g,l=h)}return t.delta(l)}function yd(t,e,n){const r=[];for(const i of n){const s=r[r.length-1];if(!s){r.push(i);continue}i.seq1Range.start-s.seq1Range.endExclusive<=2||i.seq2Range.start-s.seq2Range.endExclusive<=2?r[r.length-1]=new ce(s.seq1Range.join(i.seq1Range),s.seq2Range.join(i.seq2Range)):r.push(i)}return r}function wd(t,e,n){const r=ce.invert(n,t.length),i=[];let s=new Le(0,0);function a(l,c){if(l.offset1<s.offset1||l.offset2<s.offset2)return;const h=t.findWordContaining(l.offset1),u=e.findWordContaining(l.offset2);if(!h||!u)return;let f=new ce(h,u);const m=f.intersect(c);let g=m.seq1Range.length,b=m.seq2Range.length;for(;r.length>0;){const y=r[0];if(!(y.seq1Range.intersects(f.seq1Range)||y.seq2Range.intersects(f.seq2Range)))break;const k=t.findWordContaining(y.seq1Range.start),w=e.findWordContaining(y.seq2Range.start),F=new ce(k,w),_=F.intersect(y);if(g+=_.seq1Range.length,b+=_.seq2Range.length,f=f.join(F),f.seq1Range.endExclusive>=y.seq1Range.endExclusive)r.shift();else break}g+b<(f.seq1Range.length+f.seq2Range.length)*2/3&&i.push(f),s=f.getEndExclusives()}for(;r.length>0;){const l=r.shift();l.seq1Range.isEmpty||(a(l.getStarts(),l),a(l.getEndExclusives().delta(-1),l))}return xd(n,i)}function xd(t,e){const n=[];for(;t.length>0||e.length>0;){const r=t[0],i=e[0];let s;r&&(!i||r.seq1Range.start<i.seq1Range.start)?s=t.shift():s=e.shift(),n.length>0&&n[n.length-1].seq1Range.endExclusive>=s.seq1Range.start?n[n.length-1]=n[n.length-1].join(s):n.push(s)}return n}function Sd(t,e,n){let r=n;if(r.length===0)return r;let i=0,s;do{s=!1;const a=[r[0]];for(let o=1;o<r.length;o++){let h=function(f,m){const g=new K(c.seq1Range.endExclusive,l.seq1Range.start);return t.getText(g).replace(/\s/g,"").length<=4&&(f.seq1Range.length+f.seq2Range.length>5||m.seq1Range.length+m.seq2Range.length>5)};const l=r[o],c=a[a.length-1];h(c,l)?(s=!0,a[a.length-1]=a[a.length-1].join(l)):a.push(l)}r=a}while(i++<10&&s);return r}function Cd(t,e,n){let r=n;if(r.length===0)return r;let i=0,s;do{s=!1;const o=[r[0]];for(let l=1;l<r.length;l++){let u=function(m,g){const b=new K(h.seq1Range.endExclusive,c.seq1Range.start);if(t.countLinesIn(b)>5||b.length>500)return!1;const C=t.getText(b).trim();if(C.length>20||C.split(/\r\n|\r|\n/).length>1)return!1;const k=t.countLinesIn(m.seq1Range),w=m.seq1Range.length,F=e.countLinesIn(m.seq2Range),_=m.seq2Range.length,P=t.countLinesIn(g.seq1Range),W=g.seq1Range.length,T=e.countLinesIn(g.seq2Range),J=g.seq2Range.length,re=2*40+50;function N(R){return Math.min(R,re)}return Math.pow(Math.pow(N(k*40+w),1.5)+Math.pow(N(F*40+_),1.5),1.5)+Math.pow(Math.pow(N(P*40+W),1.5)+Math.pow(N(T*40+J),1.5),1.5)>(re**1.5)**1.5*1.3};const c=r[l],h=o[o.length-1];u(h,c)?(s=!0,o[o.length-1]=o[o.length-1].join(c)):o.push(c)}r=o}while(i++<10&&s);const a=[];return yh(r,(o,l,c)=>{let h=l;function u(C){return C.length>0&&C.trim().length<=3&&l.seq1Range.length+l.seq2Range.length>100}const f=t.extendToFullLines(l.seq1Range),m=t.getText(new K(f.start,l.seq1Range.start));u(m)&&(h=h.deltaStart(-m.length));const g=t.getText(new K(l.seq1Range.endExclusive,f.endExclusive));u(g)&&(h=h.deltaEnd(g.length));const b=ce.fromOffsetPairs(o?o.getEndExclusives():Le.zero,c?c.getStarts():Le.max),y=h.intersect(b);a.length>0&&y.getStarts().equals(a[a.length-1].getEndExclusives())?a[a.length-1]=a[a.length-1].join(y):a.push(y)}),a}class Ya{constructor(e,n){this.trimmedHash=e,this.lines=n}getElement(e){return this.trimmedHash[e]}get length(){return this.trimmedHash.length}getBoundaryScore(e){const n=e===0?0:Qa(this.lines[e-1]),r=e===this.lines.length?0:Qa(this.lines[e]);return 1e3-(n+r)}getText(e){return this.lines.slice(e.start,e.endExclusive).join(`
|
|
11
|
-
`)}isStronglyEqual(e,n){return this.lines[e]===this.lines[n]}}function Qa(t){let e=0;for(;e<t.length&&(t.charCodeAt(e)===32||t.charCodeAt(e)===9);)e++;return e}class kd{constructor(){this.dynamicProgrammingDiffing=new ld,this.myersDiffingAlgorithm=new Ba}computeDiff(e,n,r){if(e.length<=1&&gh(e,n,(_,P)=>_===P))return new Qn([],[],!1);if(e.length===1&&e[0].length===0||n.length===1&&n[0].length===0)return new Qn([new nt(new Q(1,e.length+1),new Q(1,n.length+1),[new Bt(new ve(1,1,e.length,e[0].length+1),new ve(1,1,n.length,n[0].length+1))])],[],!1);const i=r.maxComputationTimeMs===0?dn.instance:new od(r.maxComputationTimeMs),s=!r.ignoreTrimWhitespace,a=new Map;function o(_){let P=a.get(_);return P===void 0&&(P=a.size,a.set(_,P)),P}const l=e.map(_=>o(_.trim())),c=n.map(_=>o(_.trim())),h=new Ya(l,e),u=new Ya(c,n),f=h.length+u.length<1700?this.dynamicProgrammingDiffing.compute(h,u,i,(_,P)=>e[_]===n[P]?n[P].length===0?.1:1+Math.log(1+n[P].length):.99):this.myersDiffingAlgorithm.compute(h,u);let m=f.diffs,g=f.hitTimeout;m=Ga(h,u,m),m=Sd(h,u,m);const b=[],y=_=>{if(s)for(let P=0;P<_;P++){const W=C+P,T=k+P;if(e[W]!==n[T]){const J=this.refineDiff(e,n,new ce(new K(W,W+1),new K(T,T+1)),i,s);for(const re of J.mappings)b.push(re);J.hitTimeout&&(g=!0)}}};let C=0,k=0;for(const _ of m){Yn(()=>_.seq1Range.start-C===_.seq2Range.start-k);const P=_.seq1Range.start-C;y(P),C=_.seq1Range.endExclusive,k=_.seq2Range.endExclusive;const W=this.refineDiff(e,n,_,i,s);W.hitTimeout&&(g=!0);for(const T of W.mappings)b.push(T)}y(e.length-C);const w=Ka(b,e,n);let F=[];return r.computeMoves&&(F=this.computeMoves(w,e,n,l,c,i,s)),Yn(()=>{function _(W,T){if(W.lineNumber<1||W.lineNumber>T.length)return!1;const J=T[W.lineNumber-1];return!(W.column<1||W.column>J.length+1)}function P(W,T){return!(W.startLineNumber<1||W.startLineNumber>T.length+1||W.endLineNumberExclusive<1||W.endLineNumberExclusive>T.length+1)}for(const W of w){if(!W.innerChanges)return!1;for(const T of W.innerChanges)if(!(_(T.modifiedRange.getStartPosition(),n)&&_(T.modifiedRange.getEndPosition(),n)&&_(T.originalRange.getStartPosition(),e)&&_(T.originalRange.getEndPosition(),e)))return!1;if(!P(W.modified,n)||!P(W.original,e))return!1}return!0}),new Qn(w,F,g)}computeMoves(e,n,r,i,s,a,o){return ud(e,n,r,i,s,a).map(h=>{const u=this.refineDiff(n,r,new ce(h.original.toOffsetRange(),h.modified.toOffsetRange()),a,o),f=Ka(u.mappings,n,r,!0);return new ed(h,f)})}refineDiff(e,n,r,i,s){const a=new Kn(e,r.seq1Range,s),o=new Kn(n,r.seq2Range,s),l=a.length+o.length<500?this.dynamicProgrammingDiffing.compute(a,o,i):this.myersDiffingAlgorithm.compute(a,o,i);let c=l.diffs;return c=Ga(a,o,c),c=wd(a,o,c),c=yd(a,o,c),c=Cd(a,o,c),{mappings:c.map(u=>new Bt(a.translateRange(u.seq1Range),o.translateRange(u.seq2Range))),hitTimeout:l.hitTimeout}}}function Ka(t,e,n,r=!1){const i=[];for(const s of bh(t.map(a=>_d(a,e,n)),(a,o)=>a.original.overlapOrTouch(o.original)||a.modified.overlapOrTouch(o.modified))){const a=s[0],o=s[s.length-1];i.push(new nt(a.original.join(o.original),a.modified.join(o.modified),s.map(l=>l.innerChanges[0])))}return Yn(()=>!r&&i.length>0&&(i[0].modified.startLineNumber!==i[0].original.startLineNumber||n.length-i[i.length-1].modified.endLineNumberExclusive!==e.length-i[i.length-1].original.endLineNumberExclusive)?!1:Ia(i,(s,a)=>a.original.startLineNumber-s.original.endLineNumberExclusive===a.modified.startLineNumber-s.modified.endLineNumberExclusive&&s.original.endLineNumberExclusive<a.original.startLineNumber&&s.modified.endLineNumberExclusive<a.modified.startLineNumber)),i}function _d(t,e,n){let r=0,i=0;t.modifiedRange.endColumn===1&&t.originalRange.endColumn===1&&t.originalRange.startLineNumber+r<=t.originalRange.endLineNumber&&t.modifiedRange.startLineNumber+r<=t.modifiedRange.endLineNumber&&(i=-1),t.modifiedRange.startColumn-1>=n[t.modifiedRange.startLineNumber-1].length&&t.originalRange.startColumn-1>=e[t.originalRange.startLineNumber-1].length&&t.originalRange.startLineNumber<=t.originalRange.endLineNumber+i&&t.modifiedRange.startLineNumber<=t.modifiedRange.endLineNumber+i&&(r=1);const s=new Q(t.originalRange.startLineNumber+r,t.originalRange.endLineNumber+1+i),a=new Q(t.modifiedRange.startLineNumber+r,t.modifiedRange.endLineNumber+1+i);return new nt(s,a,[t])}const Za={getLegacy:()=>new rd,getDefault:()=>new kd};function bt(t,e){const n=Math.pow(10,e);return Math.round(t*n)/n}class ye{constructor(e,n,r,i=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,e))|0,this.g=Math.min(255,Math.max(0,n))|0,this.b=Math.min(255,Math.max(0,r))|0,this.a=bt(Math.max(Math.min(1,i),0),3)}static equals(e,n){return e.r===n.r&&e.g===n.g&&e.b===n.b&&e.a===n.a}}class Te{constructor(e,n,r,i){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,e),0)|0,this.s=bt(Math.max(Math.min(1,n),0),3),this.l=bt(Math.max(Math.min(1,r),0),3),this.a=bt(Math.max(Math.min(1,i),0),3)}static equals(e,n){return e.h===n.h&&e.s===n.s&&e.l===n.l&&e.a===n.a}static fromRGBA(e){const n=e.r/255,r=e.g/255,i=e.b/255,s=e.a,a=Math.max(n,r,i),o=Math.min(n,r,i);let l=0,c=0;const h=(o+a)/2,u=a-o;if(u>0){switch(c=Math.min(h<=.5?u/(2*h):u/(2-2*h),1),a){case n:l=(r-i)/u+(r<i?6:0);break;case r:l=(i-n)/u+2;break;case i:l=(n-r)/u+4;break}l*=60,l=Math.round(l)}return new Te(l,c,h,s)}static _hue2rgb(e,n,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(n-e)*6*r:r<1/2?n:r<2/3?e+(n-e)*(2/3-r)*6:e}static toRGBA(e){const n=e.h/360,{s:r,l:i,a:s}=e;let a,o,l;if(r===0)a=o=l=i;else{const c=i<.5?i*(1+r):i+r-i*r,h=2*i-c;a=Te._hue2rgb(h,c,n+1/3),o=Te._hue2rgb(h,c,n),l=Te._hue2rgb(h,c,n-1/3)}return new ye(Math.round(a*255),Math.round(o*255),Math.round(l*255),s)}}class $t{constructor(e,n,r,i){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,e),0)|0,this.s=bt(Math.max(Math.min(1,n),0),3),this.v=bt(Math.max(Math.min(1,r),0),3),this.a=bt(Math.max(Math.min(1,i),0),3)}static equals(e,n){return e.h===n.h&&e.s===n.s&&e.v===n.v&&e.a===n.a}static fromRGBA(e){const n=e.r/255,r=e.g/255,i=e.b/255,s=Math.max(n,r,i),a=Math.min(n,r,i),o=s-a,l=s===0?0:o/s;let c;return o===0?c=0:s===n?c=((r-i)/o%6+6)%6:s===r?c=(i-n)/o+2:c=(n-r)/o+4,new $t(Math.round(c*60),l,s,e.a)}static toRGBA(e){const{h:n,s:r,v:i,a:s}=e,a=i*r,o=a*(1-Math.abs(n/60%2-1)),l=i-a;let[c,h,u]=[0,0,0];return n<60?(c=a,h=o):n<120?(c=o,h=a):n<180?(h=a,u=o):n<240?(h=o,u=a):n<300?(c=o,u=a):n<=360&&(c=a,u=o),c=Math.round((c+l)*255),h=Math.round((h+l)*255),u=Math.round((u+l)*255),new ye(c,h,u,s)}}let fe=class Be{static fromHex(e){return Be.Format.CSS.parseHex(e)||Be.red}static equals(e,n){return!e&&!n?!0:!e||!n?!1:e.equals(n)}get hsla(){return this._hsla?this._hsla:Te.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:$t.fromRGBA(this.rgba)}constructor(e){if(e)if(e instanceof ye)this.rgba=e;else if(e instanceof Te)this._hsla=e,this.rgba=Te.toRGBA(e);else if(e instanceof $t)this._hsva=e,this.rgba=$t.toRGBA(e);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}equals(e){return!!e&&ye.equals(this.rgba,e.rgba)&&Te.equals(this.hsla,e.hsla)&&$t.equals(this.hsva,e.hsva)}getRelativeLuminance(){const e=Be._relativeLuminanceForComponent(this.rgba.r),n=Be._relativeLuminanceForComponent(this.rgba.g),r=Be._relativeLuminanceForComponent(this.rgba.b),i=.2126*e+.7152*n+.0722*r;return bt(i,4)}static _relativeLuminanceForComponent(e){const n=e/255;return n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(e){const n=this.getRelativeLuminance(),r=e.getRelativeLuminance();return n>r}isDarkerThan(e){const n=this.getRelativeLuminance(),r=e.getRelativeLuminance();return n<r}lighten(e){return new Be(new Te(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*e,this.hsla.a))}darken(e){return new Be(new Te(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*e,this.hsla.a))}transparent(e){const{r:n,g:r,b:i,a:s}=this.rgba;return new Be(new ye(n,r,i,s*e))}isTransparent(){return this.rgba.a===0}isOpaque(){return this.rgba.a===1}opposite(){return new Be(new ye(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}makeOpaque(e){if(this.isOpaque()||e.rgba.a!==1)return this;const{r:n,g:r,b:i,a:s}=this.rgba;return new Be(new ye(e.rgba.r-s*(e.rgba.r-n),e.rgba.g-s*(e.rgba.g-r),e.rgba.b-s*(e.rgba.b-i),1))}toString(){return this._toString||(this._toString=Be.Format.CSS.format(this)),this._toString}static getLighterColor(e,n,r){if(e.isLighterThan(n))return e;r=r||.5;const i=e.getRelativeLuminance(),s=n.getRelativeLuminance();return r=r*(s-i)/s,e.lighten(r)}static getDarkerColor(e,n,r){if(e.isDarkerThan(n))return e;r=r||.5;const i=e.getRelativeLuminance(),s=n.getRelativeLuminance();return r=r*(i-s)/i,e.darken(r)}};fe.white=new fe(new ye(255,255,255,1)),fe.black=new fe(new ye(0,0,0,1)),fe.red=new fe(new ye(255,0,0,1)),fe.blue=new fe(new ye(0,0,255,1)),fe.green=new fe(new ye(0,255,0,1)),fe.cyan=new fe(new ye(0,255,255,1)),fe.lightgrey=new fe(new ye(211,211,211,1)),fe.transparent=new fe(new ye(0,0,0,0)),function(t){(function(e){(function(n){function r(m){return m.rgba.a===1?`rgb(${m.rgba.r}, ${m.rgba.g}, ${m.rgba.b})`:t.Format.CSS.formatRGBA(m)}n.formatRGB=r;function i(m){return`rgba(${m.rgba.r}, ${m.rgba.g}, ${m.rgba.b}, ${+m.rgba.a.toFixed(2)})`}n.formatRGBA=i;function s(m){return m.hsla.a===1?`hsl(${m.hsla.h}, ${(m.hsla.s*100).toFixed(2)}%, ${(m.hsla.l*100).toFixed(2)}%)`:t.Format.CSS.formatHSLA(m)}n.formatHSL=s;function a(m){return`hsla(${m.hsla.h}, ${(m.hsla.s*100).toFixed(2)}%, ${(m.hsla.l*100).toFixed(2)}%, ${m.hsla.a.toFixed(2)})`}n.formatHSLA=a;function o(m){const g=m.toString(16);return g.length!==2?"0"+g:g}function l(m){return`#${o(m.rgba.r)}${o(m.rgba.g)}${o(m.rgba.b)}`}n.formatHex=l;function c(m,g=!1){return g&&m.rgba.a===1?t.Format.CSS.formatHex(m):`#${o(m.rgba.r)}${o(m.rgba.g)}${o(m.rgba.b)}${o(Math.round(m.rgba.a*255))}`}n.formatHexA=c;function h(m){return m.isOpaque()?t.Format.CSS.formatHex(m):t.Format.CSS.formatRGBA(m)}n.format=h;function u(m){const g=m.length;if(g===0||m.charCodeAt(0)!==35)return null;if(g===7){const b=16*f(m.charCodeAt(1))+f(m.charCodeAt(2)),y=16*f(m.charCodeAt(3))+f(m.charCodeAt(4)),C=16*f(m.charCodeAt(5))+f(m.charCodeAt(6));return new t(new ye(b,y,C,1))}if(g===9){const b=16*f(m.charCodeAt(1))+f(m.charCodeAt(2)),y=16*f(m.charCodeAt(3))+f(m.charCodeAt(4)),C=16*f(m.charCodeAt(5))+f(m.charCodeAt(6)),k=16*f(m.charCodeAt(7))+f(m.charCodeAt(8));return new t(new ye(b,y,C,k/255))}if(g===4){const b=f(m.charCodeAt(1)),y=f(m.charCodeAt(2)),C=f(m.charCodeAt(3));return new t(new ye(16*b+b,16*y+y,16*C+C))}if(g===5){const b=f(m.charCodeAt(1)),y=f(m.charCodeAt(2)),C=f(m.charCodeAt(3)),k=f(m.charCodeAt(4));return new t(new ye(16*b+b,16*y+y,16*C+C,(16*k+k)/255))}return null}n.parseHex=u;function f(m){switch(m){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:return 10;case 65:return 10;case 98:return 11;case 66:return 11;case 99:return 12;case 67:return 12;case 100:return 13;case 68:return 13;case 101:return 14;case 69:return 14;case 102:return 15;case 70:return 15}return 0}})(e.CSS||(e.CSS={}))})(t.Format||(t.Format={}))}(fe||(fe={}));function eo(t){const e=[];for(const n of t){const r=Number(n);(r||r===0&&n.replace(/\s/g,"")!=="")&&e.push(r)}return e}function ii(t,e,n,r){return{red:t/255,blue:n/255,green:e/255,alpha:r}}function un(t,e){const n=e.index,r=e[0].length;if(!n)return;const i=t.positionAt(n);return{startLineNumber:i.lineNumber,startColumn:i.column,endLineNumber:i.lineNumber,endColumn:i.column+r}}function Ed(t,e){if(!t)return;const n=fe.Format.CSS.parseHex(e);if(n)return{range:t,color:ii(n.rgba.r,n.rgba.g,n.rgba.b,n.rgba.a)}}function to(t,e,n){if(!t||e.length!==1)return;const i=e[0].values(),s=eo(i);return{range:t,color:ii(s[0],s[1],s[2],n?s[3]:1)}}function no(t,e,n){if(!t||e.length!==1)return;const i=e[0].values(),s=eo(i),a=new fe(new Te(s[0],s[1]/100,s[2]/100,n?s[3]:1));return{range:t,color:ii(a.rgba.r,a.rgba.g,a.rgba.b,a.rgba.a)}}function pn(t,e){return typeof t=="string"?[...t.matchAll(e)]:t.findMatches(e)}function Rd(t){const e=[],r=pn(t,/\b(rgb|rgba|hsl|hsla)(\([0-9\s,.\%]*\))|(#)([A-Fa-f0-9]{3})\b|(#)([A-Fa-f0-9]{4})\b|(#)([A-Fa-f0-9]{6})\b|(#)([A-Fa-f0-9]{8})\b/gm);if(r.length>0)for(const i of r){const s=i.filter(c=>c!==void 0),a=s[1],o=s[2];if(!o)continue;let l;if(a==="rgb"){const c=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;l=to(un(t,i),pn(o,c),!1)}else if(a==="rgba"){const c=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;l=to(un(t,i),pn(o,c),!0)}else if(a==="hsl"){const c=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;l=no(un(t,i),pn(o,c),!1)}else if(a==="hsla"){const c=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;l=no(un(t,i),pn(o,c),!0)}else a==="#"&&(l=Ed(un(t,i),a+o));l&&e.push(l)}return e}function Fd(t){return!t||typeof t.getValue!="function"||typeof t.positionAt!="function"?[]:Rd(t)}const ro=/\bMARK:\s*(.*)$/d,Dd=/^-+|-+$/g;function Ad(t,e){var n;let r=[];if(e.findRegionSectionHeaders&&(!((n=e.foldingRules)===null||n===void 0)&&n.markers)){const i=Nd(t,e);r=r.concat(i)}if(e.findMarkSectionHeaders){const i=Md(t);r=r.concat(i)}return r}function Nd(t,e){const n=[],r=t.getLineCount();for(let i=1;i<=r;i++){const s=t.getLineContent(i),a=s.match(e.foldingRules.markers.start);if(a){const o={startLineNumber:i,startColumn:a[0].length+1,endLineNumber:i,endColumn:s.length+1};if(o.endColumn>o.startColumn){const l={range:o,...io(s.substring(a[0].length)),shouldBeInComments:!1};(l.text||l.hasSeparatorLine)&&n.push(l)}}}return n}function Md(t){const e=[],n=t.getLineCount();for(let r=1;r<=n;r++){const i=t.getLineContent(r);zd(i,r,e)}return e}function zd(t,e,n){ro.lastIndex=0;const r=ro.exec(t);if(r){const i=r.indices[1][0]+1,s=r.indices[1][1]+1,a={startLineNumber:e,startColumn:i,endLineNumber:e,endColumn:s};if(a.endColumn>a.startColumn){const o={range:a,...io(r[1]),shouldBeInComments:!0};(o.text||o.hasSeparatorLine)&&n.push(o)}}}function io(t){t=t.trim();const e=t.startsWith("-");return t=t.replace(Dd,""),{text:t,hasSeparatorLine:e}}class Ld extends kh{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(e){const n=[];for(let r=0;r<this._lines.length;r++){const i=this._lines[r],s=this.offsetAt(new Ye(r+1,1)),a=i.matchAll(e);for(const o of a)(o.index||o.index===0)&&(o.index=o.index+s),n.push(o)}return n}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(e){return this._lines[e-1]}getWordAtPosition(e,n){const r=Vr(e.column,Ns(n),this._lines[e.lineNumber-1],0);return r?new ve(e.lineNumber,r.startColumn,e.lineNumber,r.endColumn):null}words(e){const n=this._lines,r=this._wordenize.bind(this);let i=0,s="",a=0,o=[];return{*[Symbol.iterator](){for(;;)if(a<o.length){const l=s.substring(o[a].start,o[a].end);a+=1,yield l}else if(i<n.length)s=n[i],o=r(s,e),a=0,i+=1;else break}}}getLineWords(e,n){const r=this._lines[e-1],i=this._wordenize(r,n),s=[];for(const a of i)s.push({word:r.substring(a.start,a.end),startColumn:a.start+1,endColumn:a.end+1});return s}_wordenize(e,n){const r=[];let i;for(n.lastIndex=0;(i=n.exec(e))&&i[0].length!==0;)r.push({start:i.index,end:i.index+i[0].length});return r}getValueInRange(e){if(e=this._validateRange(e),e.startLineNumber===e.endLineNumber)return this._lines[e.startLineNumber-1].substring(e.startColumn-1,e.endColumn-1);const n=this._eol,r=e.startLineNumber-1,i=e.endLineNumber-1,s=[];s.push(this._lines[r].substring(e.startColumn-1));for(let a=r+1;a<i;a++)s.push(this._lines[a]);return s.push(this._lines[i].substring(0,e.endColumn-1)),s.join(n)}offsetAt(e){return e=this._validatePosition(e),this._ensureLineStarts(),this._lineStarts.getPrefixSum(e.lineNumber-2)+(e.column-1)}positionAt(e){e=Math.floor(e),e=Math.max(0,e),this._ensureLineStarts();const n=this._lineStarts.getIndexOf(e),r=this._lines[n.index].length;return{lineNumber:1+n.index,column:1+Math.min(n.remainder,r)}}_validateRange(e){const n=this._validatePosition({lineNumber:e.startLineNumber,column:e.startColumn}),r=this._validatePosition({lineNumber:e.endLineNumber,column:e.endColumn});return n.lineNumber!==e.startLineNumber||n.column!==e.startColumn||r.lineNumber!==e.endLineNumber||r.column!==e.endColumn?{startLineNumber:n.lineNumber,startColumn:n.column,endLineNumber:r.lineNumber,endColumn:r.column}:e}_validatePosition(e){if(!Ye.isIPosition(e))throw new Error("bad position");let{lineNumber:n,column:r}=e,i=!1;if(n<1)n=1,r=1,i=!0;else if(n>this._lines.length)n=this._lines.length,r=this._lines[n-1].length+1,i=!0;else{const s=this._lines[n-1].length+1;r<1?(r=1,i=!0):r>s&&(r=s,i=!0)}return i?{lineNumber:n,column:r}:e}}class Ct{constructor(e,n){this._host=e,this._models=Object.create(null),this._foreignModuleFactory=n,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(e){return this._models[e]}_getModels(){const e=[];return Object.keys(this._models).forEach(n=>e.push(this._models[n])),e}acceptNewModel(e){this._models[e.url]=new Ld(Wr.parse(e.url),e.lines,e.EOL,e.versionId)}acceptModelChanged(e,n){if(!this._models[e])return;this._models[e].onEvents(n)}acceptRemovedModel(e){this._models[e]&&delete this._models[e]}async computeUnicodeHighlights(e,n,r){const i=this._getModel(e);return i?Kh.computeUnicodeHighlights(i,n,r):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async findSectionHeaders(e,n){const r=this._getModel(e);return r?Ad(r,n):[]}async computeDiff(e,n,r,i){const s=this._getModel(e),a=this._getModel(n);return!s||!a?null:Ct.computeDiff(s,a,r,i)}static computeDiff(e,n,r,i){const s=i==="advanced"?Za.getDefault():Za.getLegacy(),a=e.getLinesContent(),o=n.getLinesContent(),l=s.computeDiff(a,o,r),c=l.changes.length>0?!1:this._modelsAreIdentical(e,n);function h(u){return u.map(f=>{var m;return[f.original.startLineNumber,f.original.endLineNumberExclusive,f.modified.startLineNumber,f.modified.endLineNumberExclusive,(m=f.innerChanges)===null||m===void 0?void 0:m.map(g=>[g.originalRange.startLineNumber,g.originalRange.startColumn,g.originalRange.endLineNumber,g.originalRange.endColumn,g.modifiedRange.startLineNumber,g.modifiedRange.startColumn,g.modifiedRange.endLineNumber,g.modifiedRange.endColumn])]})}return{identical:c,quitEarly:l.hitTimeout,changes:h(l.changes),moves:l.moves.map(u=>[u.lineRangeMapping.original.startLineNumber,u.lineRangeMapping.original.endLineNumberExclusive,u.lineRangeMapping.modified.startLineNumber,u.lineRangeMapping.modified.endLineNumberExclusive,h(u.changes)])}}static _modelsAreIdentical(e,n){const r=e.getLineCount(),i=n.getLineCount();if(r!==i)return!1;for(let s=1;s<=r;s++){const a=e.getLineContent(s),o=n.getLineContent(s);if(a!==o)return!1}return!0}async computeMoreMinimalEdits(e,n,r){const i=this._getModel(e);if(!i)return n;const s=[];let a;n=n.slice(0).sort((l,c)=>{if(l.range&&c.range)return ve.compareRangesUsingStarts(l.range,c.range);const h=l.range?0:1,u=c.range?0:1;return h-u});let o=0;for(let l=1;l<n.length;l++)ve.getEndPosition(n[o].range).equals(ve.getStartPosition(n[l].range))?(n[o].range=ve.fromPositions(ve.getStartPosition(n[o].range),ve.getEndPosition(n[l].range)),n[o].text+=n[l].text):(o++,n[o]=n[l]);n.length=o+1;for(let{range:l,text:c,eol:h}of n){if(typeof h=="number"&&(a=h),ve.isEmpty(l)&&!c)continue;const u=i.getValueInRange(l);if(c=c.replace(/\r\n|\n|\r/g,i.eol),u===c)continue;if(Math.max(c.length,u.length)>Ct._diffLimit){s.push({range:l,text:c});continue}const f=Kc(u,c,r),m=i.offsetAt(ve.lift(l).getStartPosition());for(const g of f){const b=i.positionAt(m+g.originalStart),y=i.positionAt(m+g.originalStart+g.originalLength),C={text:c.substr(g.modifiedStart,g.modifiedLength),range:{startLineNumber:b.lineNumber,startColumn:b.column,endLineNumber:y.lineNumber,endColumn:y.column}};i.getValueInRange(C.range)!==C.text&&s.push(C)}}return typeof a=="number"&&s.push({eol:a,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),s}async computeLinks(e){const n=this._getModel(e);return n?Mh(n):null}async computeDefaultDocumentColors(e){const n=this._getModel(e);return n?Fd(n):null}async textualSuggest(e,n,r,i){const s=new On,a=new RegExp(r,i),o=new Set;e:for(const l of e){const c=this._getModel(l);if(c){for(const h of c.words(a))if(!(h===n||!isNaN(Number(h)))&&(o.add(h),o.size>Ct._suggestionsLimit))break e}}return{words:Array.from(o),duration:s.elapsed()}}async computeWordRanges(e,n,r,i){const s=this._getModel(e);if(!s)return Object.create(null);const a=new RegExp(r,i),o=Object.create(null);for(let l=n.startLineNumber;l<n.endLineNumber;l++){const c=s.getLineWords(l,a);for(const h of c){if(!isNaN(Number(h.word)))continue;let u=o[h.word];u||(u=[],o[h.word]=u),u.push({startLineNumber:l,startColumn:h.startColumn,endLineNumber:l,endColumn:h.endColumn})}}return o}async navigateValueSet(e,n,r,i,s){const a=this._getModel(e);if(!a)return null;const o=new RegExp(i,s);n.startColumn===n.endColumn&&(n={startLineNumber:n.startLineNumber,startColumn:n.startColumn,endLineNumber:n.endLineNumber,endColumn:n.endColumn+1});const l=a.getValueInRange(n),c=a.getWordAtPosition({lineNumber:n.startLineNumber,column:n.startColumn},o);if(!c)return null;const h=a.getValueInRange(c);return jr.INSTANCE.navigateValueSet(n,l,c,h,r)}loadForeignModule(e,n,r){const a={host:_c(r,(o,l)=>this._host.fhr(o,l)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(a,n),Promise.resolve(Fr(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(e,n){if(!this._foreignModule||typeof this._foreignModule[e]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,n))}catch(r){return Promise.reject(r)}}}Ct._diffLimit=1e5,Ct._suggestionsLimit=1e4,typeof importScripts=="function"&&(globalThis.monaco=qh());let si=!1;function so(t){if(si)return;si=!0;const e=new Yc(n=>{globalThis.postMessage(n)},n=>new Ct(n,t));globalThis.onmessage=n=>{e.onmessage(n.data)}}globalThis.onmessage=t=>{si||so(null)};/*!-----------------------------------------------------------------------------
|
|
7
|
+
`))}}class Rr{constructor(e){this.value=e}}const xc=2;class qe{constructor(e){var n,r,i,s,a;this._size=0,this._options=e,this._leakageMon=!((n=this._options)===null||n===void 0)&&n.leakWarningThreshold?new wc((i=(r=this._options)===null||r===void 0?void 0:r.leakWarningThreshold)!==null&&i!==void 0?i:yc):void 0,this._perfMon=!((s=this._options)===null||s===void 0)&&s._profName?new zt(this._options._profName):void 0,this._deliveryQueue=(a=this._options)===null||a===void 0?void 0:a.deliveryQueue}dispose(){var e,n,r,i;this._disposed||(this._disposed=!0,((e=this._deliveryQueue)===null||e===void 0?void 0:e.current)===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),(r=(n=this._options)===null||n===void 0?void 0:n.onDidRemoveLastListener)===null||r===void 0||r.call(n),(i=this._leakageMon)===null||i===void 0||i.dispose())}get event(){var e;return(e=this._event)!==null&&e!==void 0||(this._event=(n,r,i)=>{var s,a,o,l,c;if(this._leakageMon&&this._size>this._leakageMon.threshold*3)return console.warn(`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far`),rn.None;if(this._disposed)return rn.None;r&&(n=n.bind(r));const h=new Rr(n);let u;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(h.stack=Er.create(),u=this._leakageMon.check(h.stack,this._size+1)),this._listeners?this._listeners instanceof Rr?((c=this._deliveryQueue)!==null&&c!==void 0||(this._deliveryQueue=new Sc),this._listeners=[this._listeners,h]):this._listeners.push(h):((a=(s=this._options)===null||s===void 0?void 0:s.onWillAddFirstListener)===null||a===void 0||a.call(s,this),this._listeners=h,(l=(o=this._options)===null||o===void 0?void 0:o.onDidAddFirstListener)===null||l===void 0||l.call(o,this)),this._size++;const f=Wn(()=>{u?.(),this._removeListener(h)});return i instanceof Mt?i.add(f):Array.isArray(i)&&i.push(f),f}),this._event}_removeListener(e){var n,r,i,s;if((r=(n=this._options)===null||n===void 0?void 0:n.onWillRemoveListener)===null||r===void 0||r.call(n,this),!this._listeners)return;if(this._size===1){this._listeners=void 0,(s=(i=this._options)===null||i===void 0?void 0:i.onDidRemoveLastListener)===null||s===void 0||s.call(i,this),this._size=0;return}const a=this._listeners,o=a.indexOf(e);if(o===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,a[o]=void 0;const l=this._deliveryQueue.current===this;if(this._size*xc<=a.length){let c=0;for(let h=0;h<a.length;h++)a[h]?a[c++]=a[h]:l&&(this._deliveryQueue.end--,c<this._deliveryQueue.i&&this._deliveryQueue.i--);a.length=c}}_deliver(e,n){var r;if(!e)return;const i=((r=this._options)===null||r===void 0?void 0:r.onListenerError)||ls;if(!i){e.value(n);return}try{e.value(n)}catch(s){i(s)}}_deliverQueue(e){const n=e.current._listeners;for(;e.i<e.end;)this._deliver(n[e.i++],e.value);e.reset()}fire(e){var n,r,i,s;if(!((n=this._deliveryQueue)===null||n===void 0)&&n.current&&(this._deliverQueue(this._deliveryQueue),(r=this._perfMon)===null||r===void 0||r.stop()),(i=this._perfMon)===null||i===void 0||i.start(this._size),this._listeners)if(this._listeners instanceof Rr)this._deliver(this._listeners,e);else{const a=this._deliveryQueue;a.enqueue(this,e,this._listeners.length),this._deliverQueue(a)}(s=this._perfMon)===null||s===void 0||s.stop()}hasListeners(){return this._size>0}}class Sc{constructor(){this.i=-1,this.end=0}enqueue(e,n,r){this.i=0,this.end=r,this.current=e,this.value=n}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}function Cc(t){return typeof t=="string"}function kc(t){let e=[];for(;Object.prototype!==t;)e=e.concat(Object.getOwnPropertyNames(t)),t=Object.getPrototypeOf(t);return e}function Fr(t){const e=[];for(const n of kc(t))typeof t[n]=="function"&&e.push(n);return e}function _c(t,e){const n=i=>function(){const s=Array.prototype.slice.call(arguments,0);return e(i,s)},r={};for(const i of t)r[i]=n(i);return r}let Ec=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function Rc(t,e){let n;return e.length===0?n=t:n=t.replace(/\{(\d+)\}/g,(r,i)=>{const s=i[0],a=e[s];let o=r;return typeof a=="string"?o=a:(typeof a=="number"||typeof a=="boolean"||a===void 0||a===null)&&(o=String(a)),o}),Ec&&(n="["+n.replace(/[aouei]/g,"$&$&")+"]"),n}function ae(t,e,...n){return Rc(e,n)}function Af(t){}var Dr,Ar;const Lt="en";let Nr=!1,Mr=!1,zr=!1,Un,Lr=Lt,ds=Lt,Fc,je;const xt=globalThis;let Ce;typeof xt.vscode<"u"&&typeof xt.vscode.process<"u"?Ce=xt.vscode.process:typeof process<"u"&&typeof((Dr=process==null?void 0:process.versions)===null||Dr===void 0?void 0:Dr.node)=="string"&&(Ce=process);const Dc=typeof((Ar=Ce?.versions)===null||Ar===void 0?void 0:Ar.electron)=="string"&&Ce?.type==="renderer";if(typeof Ce=="object"){Nr=Ce.platform==="win32",Mr=Ce.platform==="darwin",zr=Ce.platform==="linux",zr&&Ce.env.SNAP&&Ce.env.SNAP_REVISION,Ce.env.CI||Ce.env.BUILD_ARTIFACTSTAGINGDIRECTORY,Un=Lt,Lr=Lt;const t=Ce.env.VSCODE_NLS_CONFIG;if(t)try{const e=JSON.parse(t),n=e.availableLanguages["*"];Un=e.locale,ds=e.osLocale,Lr=n||Lt,Fc=e._translationsConfigFile}catch{}}else typeof navigator=="object"&&!Dc?(je=navigator.userAgent,Nr=je.indexOf("Windows")>=0,Mr=je.indexOf("Macintosh")>=0,(je.indexOf("Macintosh")>=0||je.indexOf("iPad")>=0||je.indexOf("iPhone")>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>0,zr=je.indexOf("Linux")>=0,je?.indexOf("Mobi")>=0,ae({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),Un=Lt,Lr=Un,ds=navigator.language):console.error("Unable to resolve platform.");const sn=Nr,Ac=Mr,Xe=je,Nc=typeof xt.postMessage=="function"&&!xt.importScripts;(()=>{if(Nc){const t=[];xt.addEventListener("message",n=>{if(n.data&&n.data.vscodeScheduleAsyncWork)for(let r=0,i=t.length;r<i;r++){const s=t[r];if(s.id===n.data.vscodeScheduleAsyncWork){t.splice(r,1),s.callback();return}}});let e=0;return n=>{const r=++e;t.push({id:r,callback:n}),xt.postMessage({vscodeScheduleAsyncWork:r},"*")}}return t=>setTimeout(t)})();const Mc=!!(Xe&&Xe.indexOf("Chrome")>=0);Xe&&Xe.indexOf("Firefox")>=0,!Mc&&Xe&&Xe.indexOf("Safari")>=0,Xe&&Xe.indexOf("Edg/")>=0,Xe&&Xe.indexOf("Android")>=0;class zc{constructor(e,n=JSON.stringify){this.fn=e,this._computeKey=n,this.lastCache=void 0,this.lastArgKey=void 0}get(e){const n=this._computeKey(e);return this.lastArgKey!==n&&(this.lastArgKey=n,this.lastCache=this.fn(e)),this.lastCache}}class us{constructor(e){this.executor=e,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}var Pt;function Lc(t){return t.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function Pc(t){return t.split(/\r\n|\r|\n/)}function Ic(t){for(let e=0,n=t.length;e<n;e++){const r=t.charCodeAt(e);if(r!==32&&r!==9)return e}return-1}function Tc(t,e=t.length-1){for(let n=e;n>=0;n--){const r=t.charCodeAt(n);if(r!==32&&r!==9)return n}return-1}function ps(t){return t>=65&&t<=90}function Pr(t){return 55296<=t&&t<=56319}function Wc(t){return 56320<=t&&t<=57343}function Oc(t,e){return(t-55296<<10)+(e-56320)+65536}function Uc(t,e,n){const r=t.charCodeAt(n);if(Pr(r)&&n+1<e){const i=t.charCodeAt(n+1);if(Wc(i))return Oc(r,i)}return r}const Vc=/^[\t\n\r\x20-\x7E]*$/;function Bc(t){return Vc.test(t)}class St{static getInstance(e){return Pt.cache.get(Array.from(e))}static getLocales(){return Pt._locales.value}constructor(e){this.confusableDictionary=e}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}Pt=St,St.ambiguousCharacterData=new us(()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}')),St.cache=new zc(t=>{function e(c){const h=new Map;for(let u=0;u<c.length;u+=2)h.set(c[u],c[u+1]);return h}function n(c,h){const u=new Map(c);for(const[f,m]of h)u.set(f,m);return u}function r(c,h){if(!c)return h;const u=new Map;for(const[f,m]of c)h.has(f)&&u.set(f,m);return u}const i=Pt.ambiguousCharacterData.value;let s=t.filter(c=>!c.startsWith("_")&&c in i);s.length===0&&(s=["_default"]);let a;for(const c of s){const h=e(i[c]);a=r(a,h)}const o=e(i._common),l=n(o,a);return new Pt(l)}),St._locales=new us(()=>Object.keys(Pt.ambiguousCharacterData.value).filter(t=>!t.startsWith("_")));class ht{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static getData(){return this._data||(this._data=new Set(ht.getRawData())),this._data}static isInvisibleCharacter(e){return ht.getData().has(e)}static get codePoints(){return ht.getData()}}ht._data=void 0;const qc="$initialize";class jc{constructor(e,n,r,i){this.vsWorker=e,this.req=n,this.method=r,this.args=i,this.type=0}}class fs{constructor(e,n,r,i){this.vsWorker=e,this.seq=n,this.res=r,this.err=i,this.type=1}}class $c{constructor(e,n,r,i){this.vsWorker=e,this.req=n,this.eventName=r,this.arg=i,this.type=2}}class Hc{constructor(e,n,r){this.vsWorker=e,this.req=n,this.event=r,this.type=3}}class Gc{constructor(e,n){this.vsWorker=e,this.req=n,this.type=4}}class Jc{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}sendMessage(e,n){const r=String(++this._lastSentReq);return new Promise((i,s)=>{this._pendingReplies[r]={resolve:i,reject:s},this._send(new jc(this._workerId,r,e,n))})}listen(e,n){let r=null;const i=new qe({onWillAddFirstListener:()=>{r=String(++this._lastSentReq),this._pendingEmitters.set(r,i),this._send(new $c(this._workerId,r,e,n))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(r),this._send(new Gc(this._workerId,r)),r=null}});return i.event}handleMessage(e){!e||!e.vsWorker||this._workerId!==-1&&e.vsWorker!==this._workerId||this._handleMessage(e)}_handleMessage(e){switch(e.type){case 1:return this._handleReplyMessage(e);case 0:return this._handleRequestMessage(e);case 2:return this._handleSubscribeEventMessage(e);case 3:return this._handleEventMessage(e);case 4:return this._handleUnsubscribeEventMessage(e)}}_handleReplyMessage(e){if(!this._pendingReplies[e.seq]){console.warn("Got reply to unknown seq");return}const n=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let r=e.err;e.err.$isError&&(r=new Error,r.name=e.err.name,r.message=e.err.message,r.stack=e.err.stack),n.reject(r);return}n.resolve(e.res)}_handleRequestMessage(e){const n=e.req;this._handler.handleMessage(e.method,e.args).then(i=>{this._send(new fs(this._workerId,n,i,void 0))},i=>{i.detail instanceof Error&&(i.detail=cs(i.detail)),this._send(new fs(this._workerId,n,void 0,cs(i)))})}_handleSubscribeEventMessage(e){const n=e.req,r=this._handler.handleEvent(e.eventName,e.arg)(i=>{this._send(new Hc(this._workerId,n,i))});this._pendingEvents.set(n,r)}_handleEventMessage(e){if(!this._pendingEmitters.has(e.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(e.req).fire(e.event)}_handleUnsubscribeEventMessage(e){if(!this._pendingEvents.has(e.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(e.req).dispose(),this._pendingEvents.delete(e.req)}_send(e){const n=[];if(e.type===0)for(let r=0;r<e.args.length;r++)e.args[r]instanceof ArrayBuffer&&n.push(e.args[r]);else e.type===1&&e.res instanceof ArrayBuffer&&n.push(e.res);this._handler.sendMessage(e,n)}}function ms(t){return t[0]==="o"&&t[1]==="n"&&ps(t.charCodeAt(2))}function gs(t){return/^onDynamic/.test(t)&&ps(t.charCodeAt(9))}function Xc(t,e,n){const r=a=>function(){const o=Array.prototype.slice.call(arguments,0);return e(a,o)},i=a=>function(o){return n(a,o)},s={};for(const a of t){if(gs(a)){s[a]=i(a);continue}if(ms(a)){s[a]=n(a,void 0);continue}s[a]=r(a)}return s}class Yc{constructor(e,n){this._requestHandlerFactory=n,this._requestHandler=null,this._protocol=new Jc({sendMessage:(r,i)=>{e(r,i)},handleMessage:(r,i)=>this._handleMessage(r,i),handleEvent:(r,i)=>this._handleEvent(r,i)})}onmessage(e){this._protocol.handleMessage(e)}_handleMessage(e,n){if(e===qc)return this.initialize(n[0],n[1],n[2],n[3]);if(!this._requestHandler||typeof this._requestHandler[e]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._requestHandler[e].apply(this._requestHandler,n))}catch(r){return Promise.reject(r)}}_handleEvent(e,n){if(!this._requestHandler)throw new Error("Missing requestHandler");if(gs(e)){const r=this._requestHandler[e].call(this._requestHandler,n);if(typeof r!="function")throw new Error(`Missing dynamic event ${e} on request handler.`);return r}if(ms(e)){const r=this._requestHandler[e];if(typeof r!="function")throw new Error(`Missing event ${e} on request handler.`);return r}throw new Error(`Malformed event name ${e}`)}initialize(e,n,r,i){this._protocol.setWorkerId(e);const o=Xc(i,(l,c)=>this._protocol.sendMessage(l,c),(l,c)=>this._protocol.listen(l,c));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(o),Promise.resolve(Fr(this._requestHandler))):(n&&(typeof n.baseUrl<"u"&&delete n.baseUrl,typeof n.paths<"u"&&typeof n.paths.vs<"u"&&delete n.paths.vs,typeof n.trustedTypesPolicy<"u"&&delete n.trustedTypesPolicy,n.catchError=!0,globalThis.require.config(n)),new Promise((l,c)=>{const h=globalThis.require;h([r],u=>{if(this._requestHandler=u.create(o),!this._requestHandler){c(new Error("No RequestHandler!"));return}l(Fr(this._requestHandler))},c)}))}}class dt{constructor(e,n,r,i){this.originalStart=e,this.originalLength=n,this.modifiedStart=r,this.modifiedLength=i}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function bs(t,e){return(e<<5)-e+t|0}function Kc(t,e){e=bs(149417,e);for(let n=0,r=t.length;n<r;n++)e=bs(t.charCodeAt(n),e);return e}class vs{constructor(e){this.source=e}getElements(){const e=this.source,n=new Int32Array(e.length);for(let r=0,i=e.length;r<i;r++)n[r]=e.charCodeAt(r);return n}}function Qc(t,e,n){return new ut(new vs(t),new vs(e)).ComputeDiff(n).changes}class It{static Assert(e,n){if(!e)throw new Error(n)}}class Tt{static Copy(e,n,r,i,s){for(let a=0;a<s;a++)r[i+a]=e[n+a]}static Copy2(e,n,r,i,s){for(let a=0;a<s;a++)r[i+a]=e[n+a]}}class ys{constructor(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}MarkNextChange(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new dt(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,n){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_originalCount++}AddModifiedElement(e,n){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class ut{constructor(e,n,r=null){this.ContinueProcessingPredicate=r,this._originalSequence=e,this._modifiedSequence=n;const[i,s,a]=ut._getElements(e),[o,l,c]=ut._getElements(n);this._hasStrings=a&&c,this._originalStringElements=i,this._originalElementsOrHash=s,this._modifiedStringElements=o,this._modifiedElementsOrHash=l,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&typeof e[0]=="string"}static _getElements(e){const n=e.getElements();if(ut._isStringArray(n)){const r=new Int32Array(n.length);for(let i=0,s=n.length;i<s;i++)r[i]=Kc(n[i],0);return[n,r,!0]}return n instanceof Int32Array?[[],n,!1]:[[],new Int32Array(n),!1]}ElementsAreEqual(e,n){return this._originalElementsOrHash[e]!==this._modifiedElementsOrHash[n]?!1:this._hasStrings?this._originalStringElements[e]===this._modifiedStringElements[n]:!0}ElementsAreStrictEqual(e,n){if(!this.ElementsAreEqual(e,n))return!1;const r=ut._getStrictElement(this._originalSequence,e),i=ut._getStrictElement(this._modifiedSequence,n);return r===i}static _getStrictElement(e,n){return typeof e.getStrictElement=="function"?e.getStrictElement(n):null}OriginalElementsAreEqual(e,n){return this._originalElementsOrHash[e]!==this._originalElementsOrHash[n]?!1:this._hasStrings?this._originalStringElements[e]===this._originalStringElements[n]:!0}ModifiedElementsAreEqual(e,n){return this._modifiedElementsOrHash[e]!==this._modifiedElementsOrHash[n]?!1:this._hasStrings?this._modifiedStringElements[e]===this._modifiedStringElements[n]:!0}ComputeDiff(e){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,e)}_ComputeDiff(e,n,r,i,s){const a=[!1];let o=this.ComputeDiffRecursive(e,n,r,i,a);return s&&(o=this.PrettifyChanges(o)),{quitEarly:a[0],changes:o}}ComputeDiffRecursive(e,n,r,i,s){for(s[0]=!1;e<=n&&r<=i&&this.ElementsAreEqual(e,r);)e++,r++;for(;n>=e&&i>=r&&this.ElementsAreEqual(n,i);)n--,i--;if(e>n||r>i){let u;return r<=i?(It.Assert(e===n+1,"originalStart should only be one more than originalEnd"),u=[new dt(e,0,r,i-r+1)]):e<=n?(It.Assert(r===i+1,"modifiedStart should only be one more than modifiedEnd"),u=[new dt(e,n-e+1,r,0)]):(It.Assert(e===n+1,"originalStart should only be one more than originalEnd"),It.Assert(r===i+1,"modifiedStart should only be one more than modifiedEnd"),u=[]),u}const a=[0],o=[0],l=this.ComputeRecursionPoint(e,n,r,i,a,o,s),c=a[0],h=o[0];if(l!==null)return l;if(!s[0]){const u=this.ComputeDiffRecursive(e,c,r,h,s);let f=[];return s[0]?f=[new dt(c+1,n-(c+1)+1,h+1,i-(h+1)+1)]:f=this.ComputeDiffRecursive(c+1,n,h+1,i,s),this.ConcatenateChanges(u,f)}return[new dt(e,n-e+1,r,i-r+1)]}WALKTRACE(e,n,r,i,s,a,o,l,c,h,u,f,m,g,b,y,C,k){let w=null,F=null,_=new ys,P=n,W=r,T=m[0]-y[0]-i,J=-1073741824,re=this.m_forwardHistory.length-1;do{const N=T+e;N===P||N<W&&c[N-1]<c[N+1]?(u=c[N+1],g=u-T-i,u<J&&_.MarkNextChange(),J=u,_.AddModifiedElement(u+1,g),T=N+1-e):(u=c[N-1]+1,g=u-T-i,u<J&&_.MarkNextChange(),J=u-1,_.AddOriginalElement(u,g+1),T=N-1-e),re>=0&&(c=this.m_forwardHistory[re],e=c[0],P=1,W=c.length-1)}while(--re>=-1);if(w=_.getReverseChanges(),k[0]){let N=m[0]+1,R=y[0]+1;if(w!==null&&w.length>0){const I=w[w.length-1];N=Math.max(N,I.getOriginalEnd()),R=Math.max(R,I.getModifiedEnd())}F=[new dt(N,f-N+1,R,b-R+1)]}else{_=new ys,P=a,W=o,T=m[0]-y[0]-l,J=1073741824,re=C?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const N=T+s;N===P||N<W&&h[N-1]>=h[N+1]?(u=h[N+1]-1,g=u-T-l,u>J&&_.MarkNextChange(),J=u+1,_.AddOriginalElement(u+1,g+1),T=N+1-s):(u=h[N-1],g=u-T-l,u>J&&_.MarkNextChange(),J=u,_.AddModifiedElement(u+1,g+1),T=N-1-s),re>=0&&(h=this.m_reverseHistory[re],s=h[0],P=1,W=h.length-1)}while(--re>=-1);F=_.getChanges()}return this.ConcatenateChanges(w,F)}ComputeRecursionPoint(e,n,r,i,s,a,o){let l=0,c=0,h=0,u=0,f=0,m=0;e--,r--,s[0]=0,a[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const g=n-e+(i-r),b=g+1,y=new Int32Array(b),C=new Int32Array(b),k=i-r,w=n-e,F=e-r,_=n-i,W=(w-k)%2===0;y[k]=e,C[w]=n,o[0]=!1;for(let T=1;T<=g/2+1;T++){let J=0,re=0;h=this.ClipDiagonalBound(k-T,T,k,b),u=this.ClipDiagonalBound(k+T,T,k,b);for(let R=h;R<=u;R+=2){R===h||R<u&&y[R-1]<y[R+1]?l=y[R+1]:l=y[R-1]+1,c=l-(R-k)-F;const I=l;for(;l<n&&c<i&&this.ElementsAreEqual(l+1,c+1);)l++,c++;if(y[R]=l,l+c>J+re&&(J=l,re=c),!W&&Math.abs(R-w)<=T-1&&l>=C[R])return s[0]=l,a[0]=c,I<=C[R]&&T<=1448?this.WALKTRACE(k,h,u,F,w,f,m,_,y,C,l,n,s,c,i,a,W,o):null}const N=(J-e+(re-r)-T)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(J,N))return o[0]=!0,s[0]=J,a[0]=re,N>0&&T<=1448?this.WALKTRACE(k,h,u,F,w,f,m,_,y,C,l,n,s,c,i,a,W,o):(e++,r++,[new dt(e,n-e+1,r,i-r+1)]);f=this.ClipDiagonalBound(w-T,T,w,b),m=this.ClipDiagonalBound(w+T,T,w,b);for(let R=f;R<=m;R+=2){R===f||R<m&&C[R-1]>=C[R+1]?l=C[R+1]-1:l=C[R-1],c=l-(R-w)-_;const I=l;for(;l>e&&c>r&&this.ElementsAreEqual(l,c);)l--,c--;if(C[R]=l,W&&Math.abs(R-k)<=T&&l<=y[R])return s[0]=l,a[0]=c,I>=y[R]&&T<=1448?this.WALKTRACE(k,h,u,F,w,f,m,_,y,C,l,n,s,c,i,a,W,o):null}if(T<=1447){let R=new Int32Array(u-h+2);R[0]=k-h+1,Tt.Copy2(y,h,R,1,u-h+1),this.m_forwardHistory.push(R),R=new Int32Array(m-f+2),R[0]=w-f+1,Tt.Copy2(C,f,R,1,m-f+1),this.m_reverseHistory.push(R)}}return this.WALKTRACE(k,h,u,F,w,f,m,_,y,C,l,n,s,c,i,a,W,o)}PrettifyChanges(e){for(let n=0;n<e.length;n++){const r=e[n],i=n<e.length-1?e[n+1].originalStart:this._originalElementsOrHash.length,s=n<e.length-1?e[n+1].modifiedStart:this._modifiedElementsOrHash.length,a=r.originalLength>0,o=r.modifiedLength>0;for(;r.originalStart+r.originalLength<i&&r.modifiedStart+r.modifiedLength<s&&(!a||this.OriginalElementsAreEqual(r.originalStart,r.originalStart+r.originalLength))&&(!o||this.ModifiedElementsAreEqual(r.modifiedStart,r.modifiedStart+r.modifiedLength));){const c=this.ElementsAreStrictEqual(r.originalStart,r.modifiedStart);if(this.ElementsAreStrictEqual(r.originalStart+r.originalLength,r.modifiedStart+r.modifiedLength)&&!c)break;r.originalStart++,r.modifiedStart++}const l=[null];if(n<e.length-1&&this.ChangesOverlap(e[n],e[n+1],l)){e[n]=l[0],e.splice(n+1,1),n--;continue}}for(let n=e.length-1;n>=0;n--){const r=e[n];let i=0,s=0;if(n>0){const u=e[n-1];i=u.originalStart+u.originalLength,s=u.modifiedStart+u.modifiedLength}const a=r.originalLength>0,o=r.modifiedLength>0;let l=0,c=this._boundaryScore(r.originalStart,r.originalLength,r.modifiedStart,r.modifiedLength);for(let u=1;;u++){const f=r.originalStart-u,m=r.modifiedStart-u;if(f<i||m<s||a&&!this.OriginalElementsAreEqual(f,f+r.originalLength)||o&&!this.ModifiedElementsAreEqual(m,m+r.modifiedLength))break;const b=(f===i&&m===s?5:0)+this._boundaryScore(f,r.originalLength,m,r.modifiedLength);b>c&&(c=b,l=u)}r.originalStart-=l,r.modifiedStart-=l;const h=[null];if(n>0&&this.ChangesOverlap(e[n-1],e[n],h)){e[n-1]=h[0],e.splice(n,1),n++;continue}}if(this._hasStrings)for(let n=1,r=e.length;n<r;n++){const i=e[n-1],s=e[n],a=s.originalStart-i.originalStart-i.originalLength,o=i.originalStart,l=s.originalStart+s.originalLength,c=l-o,h=i.modifiedStart,u=s.modifiedStart+s.modifiedLength,f=u-h;if(a<5&&c<20&&f<20){const m=this._findBetterContiguousSequence(o,c,h,f,a);if(m){const[g,b]=m;(g!==i.originalStart+i.originalLength||b!==i.modifiedStart+i.modifiedLength)&&(i.originalLength=g-i.originalStart,i.modifiedLength=b-i.modifiedStart,s.originalStart=g+a,s.modifiedStart=b+a,s.originalLength=l-s.originalStart,s.modifiedLength=u-s.modifiedStart)}}}return e}_findBetterContiguousSequence(e,n,r,i,s){if(n<s||i<s)return null;const a=e+n-s+1,o=r+i-s+1;let l=0,c=0,h=0;for(let u=e;u<a;u++)for(let f=r;f<o;f++){const m=this._contiguousSequenceScore(u,f,s);m>0&&m>l&&(l=m,c=u,h=f)}return l>0?[c,h]:null}_contiguousSequenceScore(e,n,r){let i=0;for(let s=0;s<r;s++){if(!this.ElementsAreEqual(e+s,n+s))return 0;i+=this._originalStringElements[e+s].length}return i}_OriginalIsBoundary(e){return e<=0||e>=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,n){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(n>0){const r=e+n;if(this._OriginalIsBoundary(r-1)||this._OriginalIsBoundary(r))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,n){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(n>0){const r=e+n;if(this._ModifiedIsBoundary(r-1)||this._ModifiedIsBoundary(r))return!0}return!1}_boundaryScore(e,n,r,i){const s=this._OriginalRegionIsBoundary(e,n)?1:0,a=this._ModifiedRegionIsBoundary(r,i)?1:0;return s+a}ConcatenateChanges(e,n){const r=[];if(e.length===0||n.length===0)return n.length>0?n:e;if(this.ChangesOverlap(e[e.length-1],n[0],r)){const i=new Array(e.length+n.length-1);return Tt.Copy(e,0,i,0,e.length-1),i[e.length-1]=r[0],Tt.Copy(n,1,i,e.length,n.length-1),i}else{const i=new Array(e.length+n.length);return Tt.Copy(e,0,i,0,e.length),Tt.Copy(n,0,i,e.length,n.length),i}}ChangesOverlap(e,n,r){if(It.Assert(e.originalStart<=n.originalStart,"Left change is not less than or equal to right change"),It.Assert(e.modifiedStart<=n.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=n.originalStart||e.modifiedStart+e.modifiedLength>=n.modifiedStart){const i=e.originalStart;let s=e.originalLength;const a=e.modifiedStart;let o=e.modifiedLength;return e.originalStart+e.originalLength>=n.originalStart&&(s=n.originalStart+n.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=n.modifiedStart&&(o=n.modifiedStart+n.modifiedLength-e.modifiedStart),r[0]=new dt(i,s,a,o),!0}else return r[0]=null,!1}ClipDiagonalBound(e,n,r,i){if(e>=0&&e<i)return e;const s=r,a=i-r-1,o=n%2===0;if(e<0){const l=s%2===0;return o===l?0:1}else{const l=a%2===0;return o===l?i-1:i-2}}}var ws={ENV_TYPE:"live",NODE_ENV:"production"};let Wt;const Ir=globalThis.vscode;if(typeof Ir<"u"&&typeof Ir.process<"u"){const t=Ir.process;Wt={get platform(){return t.platform},get arch(){return t.arch},get env(){return t.env},cwd(){return t.cwd()}}}else typeof process<"u"?Wt={get platform(){return process.platform},get arch(){return process.arch},get env(){return ws},cwd(){return ws.VSCODE_CWD||process.cwd()}}:Wt={get platform(){return sn?"win32":Ac?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const Vn=Wt.cwd,Zc=Wt.env,eh=Wt.platform,th=65,nh=97,rh=90,ih=122,pt=46,xe=47,Ne=92,ft=58,sh=63;class xs extends Error{constructor(e,n,r){let i;typeof n=="string"&&n.indexOf("not ")===0?(i="must not be",n=n.replace(/^not /,"")):i="must be";const s=e.indexOf(".")!==-1?"property":"argument";let a=`The "${e}" ${s} ${i} of type ${n}`;a+=`. Received type ${typeof r}`,super(a),this.code="ERR_INVALID_ARG_TYPE"}}function ah(t,e){if(t===null||typeof t!="object")throw new xs(e,"Object",t)}function de(t,e){if(typeof t!="string")throw new xs(e,"string",t)}const mt=eh==="win32";function Y(t){return t===xe||t===Ne}function Tr(t){return t===xe}function gt(t){return t>=th&&t<=rh||t>=nh&&t<=ih}function Bn(t,e,n,r){let i="",s=0,a=-1,o=0,l=0;for(let c=0;c<=t.length;++c){if(c<t.length)l=t.charCodeAt(c);else{if(r(l))break;l=xe}if(r(l)){if(!(a===c-1||o===1))if(o===2){if(i.length<2||s!==2||i.charCodeAt(i.length-1)!==pt||i.charCodeAt(i.length-2)!==pt){if(i.length>2){const h=i.lastIndexOf(n);h===-1?(i="",s=0):(i=i.slice(0,h),s=i.length-1-i.lastIndexOf(n)),a=c,o=0;continue}else if(i.length!==0){i="",s=0,a=c,o=0;continue}}e&&(i+=i.length>0?`${n}..`:"..",s=2)}else i.length>0?i+=`${n}${t.slice(a+1,c)}`:i=t.slice(a+1,c),s=c-a-1;a=c,o=0}else l===pt&&o!==-1?++o:o=-1}return i}function Ss(t,e){ah(e,"pathObject");const n=e.dir||e.root,r=e.base||`${e.name||""}${e.ext||""}`;return n?n===e.root?`${n}${r}`:`${n}${t}${r}`:r}const Re={resolve(...t){let e="",n="",r=!1;for(let i=t.length-1;i>=-1;i--){let s;if(i>=0){if(s=t[i],de(s,"path"),s.length===0)continue}else e.length===0?s=Vn():(s=Zc[`=${e}`]||Vn(),(s===void 0||s.slice(0,2).toLowerCase()!==e.toLowerCase()&&s.charCodeAt(2)===Ne)&&(s=`${e}\\`));const a=s.length;let o=0,l="",c=!1;const h=s.charCodeAt(0);if(a===1)Y(h)&&(o=1,c=!0);else if(Y(h))if(c=!0,Y(s.charCodeAt(1))){let u=2,f=u;for(;u<a&&!Y(s.charCodeAt(u));)u++;if(u<a&&u!==f){const m=s.slice(f,u);for(f=u;u<a&&Y(s.charCodeAt(u));)u++;if(u<a&&u!==f){for(f=u;u<a&&!Y(s.charCodeAt(u));)u++;(u===a||u!==f)&&(l=`\\\\${m}\\${s.slice(f,u)}`,o=u)}}}else o=1;else gt(h)&&s.charCodeAt(1)===ft&&(l=s.slice(0,2),o=2,a>2&&Y(s.charCodeAt(2))&&(c=!0,o=3));if(l.length>0)if(e.length>0){if(l.toLowerCase()!==e.toLowerCase())continue}else e=l;if(r){if(e.length>0)break}else if(n=`${s.slice(o)}\\${n}`,r=c,c&&e.length>0)break}return n=Bn(n,!r,"\\",Y),r?`${e}\\${n}`:`${e}${n}`||"."},normalize(t){de(t,"path");const e=t.length;if(e===0)return".";let n=0,r,i=!1;const s=t.charCodeAt(0);if(e===1)return Tr(s)?"\\":t;if(Y(s))if(i=!0,Y(t.charCodeAt(1))){let o=2,l=o;for(;o<e&&!Y(t.charCodeAt(o));)o++;if(o<e&&o!==l){const c=t.slice(l,o);for(l=o;o<e&&Y(t.charCodeAt(o));)o++;if(o<e&&o!==l){for(l=o;o<e&&!Y(t.charCodeAt(o));)o++;if(o===e)return`\\\\${c}\\${t.slice(l)}\\`;o!==l&&(r=`\\\\${c}\\${t.slice(l,o)}`,n=o)}}}else n=1;else gt(s)&&t.charCodeAt(1)===ft&&(r=t.slice(0,2),n=2,e>2&&Y(t.charCodeAt(2))&&(i=!0,n=3));let a=n<e?Bn(t.slice(n),!i,"\\",Y):"";return a.length===0&&!i&&(a="."),a.length>0&&Y(t.charCodeAt(e-1))&&(a+="\\"),r===void 0?i?`\\${a}`:a:i?`${r}\\${a}`:`${r}${a}`},isAbsolute(t){de(t,"path");const e=t.length;if(e===0)return!1;const n=t.charCodeAt(0);return Y(n)||e>2&>(n)&&t.charCodeAt(1)===ft&&Y(t.charCodeAt(2))},join(...t){if(t.length===0)return".";let e,n;for(let s=0;s<t.length;++s){const a=t[s];de(a,"path"),a.length>0&&(e===void 0?e=n=a:e+=`\\${a}`)}if(e===void 0)return".";let r=!0,i=0;if(typeof n=="string"&&Y(n.charCodeAt(0))){++i;const s=n.length;s>1&&Y(n.charCodeAt(1))&&(++i,s>2&&(Y(n.charCodeAt(2))?++i:r=!1))}if(r){for(;i<e.length&&Y(e.charCodeAt(i));)i++;i>=2&&(e=`\\${e.slice(i)}`)}return Re.normalize(e)},relative(t,e){if(de(t,"from"),de(e,"to"),t===e)return"";const n=Re.resolve(t),r=Re.resolve(e);if(n===r||(t=n.toLowerCase(),e=r.toLowerCase(),t===e))return"";let i=0;for(;i<t.length&&t.charCodeAt(i)===Ne;)i++;let s=t.length;for(;s-1>i&&t.charCodeAt(s-1)===Ne;)s--;const a=s-i;let o=0;for(;o<e.length&&e.charCodeAt(o)===Ne;)o++;let l=e.length;for(;l-1>o&&e.charCodeAt(l-1)===Ne;)l--;const c=l-o,h=a<c?a:c;let u=-1,f=0;for(;f<h;f++){const g=t.charCodeAt(i+f);if(g!==e.charCodeAt(o+f))break;g===Ne&&(u=f)}if(f!==h){if(u===-1)return r}else{if(c>h){if(e.charCodeAt(o+f)===Ne)return r.slice(o+f+1);if(f===2)return r.slice(o+f)}a>h&&(t.charCodeAt(i+f)===Ne?u=f:f===2&&(u=3)),u===-1&&(u=0)}let m="";for(f=i+u+1;f<=s;++f)(f===s||t.charCodeAt(f)===Ne)&&(m+=m.length===0?"..":"\\..");return o+=u,m.length>0?`${m}${r.slice(o,l)}`:(r.charCodeAt(o)===Ne&&++o,r.slice(o,l))},toNamespacedPath(t){if(typeof t!="string"||t.length===0)return t;const e=Re.resolve(t);if(e.length<=2)return t;if(e.charCodeAt(0)===Ne){if(e.charCodeAt(1)===Ne){const n=e.charCodeAt(2);if(n!==sh&&n!==pt)return`\\\\?\\UNC\\${e.slice(2)}`}}else if(gt(e.charCodeAt(0))&&e.charCodeAt(1)===ft&&e.charCodeAt(2)===Ne)return`\\\\?\\${e}`;return t},dirname(t){de(t,"path");const e=t.length;if(e===0)return".";let n=-1,r=0;const i=t.charCodeAt(0);if(e===1)return Y(i)?t:".";if(Y(i)){if(n=r=1,Y(t.charCodeAt(1))){let o=2,l=o;for(;o<e&&!Y(t.charCodeAt(o));)o++;if(o<e&&o!==l){for(l=o;o<e&&Y(t.charCodeAt(o));)o++;if(o<e&&o!==l){for(l=o;o<e&&!Y(t.charCodeAt(o));)o++;if(o===e)return t;o!==l&&(n=r=o+1)}}}}else gt(i)&&t.charCodeAt(1)===ft&&(n=e>2&&Y(t.charCodeAt(2))?3:2,r=n);let s=-1,a=!0;for(let o=e-1;o>=r;--o)if(Y(t.charCodeAt(o))){if(!a){s=o;break}}else a=!1;if(s===-1){if(n===-1)return".";s=n}return t.slice(0,s)},basename(t,e){e!==void 0&&de(e,"ext"),de(t,"path");let n=0,r=-1,i=!0,s;if(t.length>=2&>(t.charCodeAt(0))&&t.charCodeAt(1)===ft&&(n=2),e!==void 0&&e.length>0&&e.length<=t.length){if(e===t)return"";let a=e.length-1,o=-1;for(s=t.length-1;s>=n;--s){const l=t.charCodeAt(s);if(Y(l)){if(!i){n=s+1;break}}else o===-1&&(i=!1,o=s+1),a>=0&&(l===e.charCodeAt(a)?--a===-1&&(r=s):(a=-1,r=o))}return n===r?r=o:r===-1&&(r=t.length),t.slice(n,r)}for(s=t.length-1;s>=n;--s)if(Y(t.charCodeAt(s))){if(!i){n=s+1;break}}else r===-1&&(i=!1,r=s+1);return r===-1?"":t.slice(n,r)},extname(t){de(t,"path");let e=0,n=-1,r=0,i=-1,s=!0,a=0;t.length>=2&&t.charCodeAt(1)===ft&>(t.charCodeAt(0))&&(e=r=2);for(let o=t.length-1;o>=e;--o){const l=t.charCodeAt(o);if(Y(l)){if(!s){r=o+1;break}continue}i===-1&&(s=!1,i=o+1),l===pt?n===-1?n=o:a!==1&&(a=1):n!==-1&&(a=-1)}return n===-1||i===-1||a===0||a===1&&n===i-1&&n===r+1?"":t.slice(n,i)},format:Ss.bind(null,"\\"),parse(t){de(t,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return e;const n=t.length;let r=0,i=t.charCodeAt(0);if(n===1)return Y(i)?(e.root=e.dir=t,e):(e.base=e.name=t,e);if(Y(i)){if(r=1,Y(t.charCodeAt(1))){let u=2,f=u;for(;u<n&&!Y(t.charCodeAt(u));)u++;if(u<n&&u!==f){for(f=u;u<n&&Y(t.charCodeAt(u));)u++;if(u<n&&u!==f){for(f=u;u<n&&!Y(t.charCodeAt(u));)u++;u===n?r=u:u!==f&&(r=u+1)}}}}else if(gt(i)&&t.charCodeAt(1)===ft){if(n<=2)return e.root=e.dir=t,e;if(r=2,Y(t.charCodeAt(2))){if(n===3)return e.root=e.dir=t,e;r=3}}r>0&&(e.root=t.slice(0,r));let s=-1,a=r,o=-1,l=!0,c=t.length-1,h=0;for(;c>=r;--c){if(i=t.charCodeAt(c),Y(i)){if(!l){a=c+1;break}continue}o===-1&&(l=!1,o=c+1),i===pt?s===-1?s=c:h!==1&&(h=1):s!==-1&&(h=-1)}return o!==-1&&(s===-1||h===0||h===1&&s===o-1&&s===a+1?e.base=e.name=t.slice(a,o):(e.name=t.slice(a,s),e.base=t.slice(a,o),e.ext=t.slice(s,o))),a>0&&a!==r?e.dir=t.slice(0,a-1):e.dir=e.root,e},sep:"\\",delimiter:";",win32:null,posix:null},oh=(()=>{if(mt){const t=/\\/g;return()=>{const e=Vn().replace(t,"/");return e.slice(e.indexOf("/"))}}return()=>Vn()})(),Me={resolve(...t){let e="",n=!1;for(let r=t.length-1;r>=-1&&!n;r--){const i=r>=0?t[r]:oh();de(i,"path"),i.length!==0&&(e=`${i}/${e}`,n=i.charCodeAt(0)===xe)}return e=Bn(e,!n,"/",Tr),n?`/${e}`:e.length>0?e:"."},normalize(t){if(de(t,"path"),t.length===0)return".";const e=t.charCodeAt(0)===xe,n=t.charCodeAt(t.length-1)===xe;return t=Bn(t,!e,"/",Tr),t.length===0?e?"/":n?"./":".":(n&&(t+="/"),e?`/${t}`:t)},isAbsolute(t){return de(t,"path"),t.length>0&&t.charCodeAt(0)===xe},join(...t){if(t.length===0)return".";let e;for(let n=0;n<t.length;++n){const r=t[n];de(r,"path"),r.length>0&&(e===void 0?e=r:e+=`/${r}`)}return e===void 0?".":Me.normalize(e)},relative(t,e){if(de(t,"from"),de(e,"to"),t===e||(t=Me.resolve(t),e=Me.resolve(e),t===e))return"";const n=1,r=t.length,i=r-n,s=1,a=e.length-s,o=i<a?i:a;let l=-1,c=0;for(;c<o;c++){const u=t.charCodeAt(n+c);if(u!==e.charCodeAt(s+c))break;u===xe&&(l=c)}if(c===o)if(a>o){if(e.charCodeAt(s+c)===xe)return e.slice(s+c+1);if(c===0)return e.slice(s+c)}else i>o&&(t.charCodeAt(n+c)===xe?l=c:c===0&&(l=0));let h="";for(c=n+l+1;c<=r;++c)(c===r||t.charCodeAt(c)===xe)&&(h+=h.length===0?"..":"/..");return`${h}${e.slice(s+l)}`},toNamespacedPath(t){return t},dirname(t){if(de(t,"path"),t.length===0)return".";const e=t.charCodeAt(0)===xe;let n=-1,r=!0;for(let i=t.length-1;i>=1;--i)if(t.charCodeAt(i)===xe){if(!r){n=i;break}}else r=!1;return n===-1?e?"/":".":e&&n===1?"//":t.slice(0,n)},basename(t,e){e!==void 0&&de(e,"ext"),de(t,"path");let n=0,r=-1,i=!0,s;if(e!==void 0&&e.length>0&&e.length<=t.length){if(e===t)return"";let a=e.length-1,o=-1;for(s=t.length-1;s>=0;--s){const l=t.charCodeAt(s);if(l===xe){if(!i){n=s+1;break}}else o===-1&&(i=!1,o=s+1),a>=0&&(l===e.charCodeAt(a)?--a===-1&&(r=s):(a=-1,r=o))}return n===r?r=o:r===-1&&(r=t.length),t.slice(n,r)}for(s=t.length-1;s>=0;--s)if(t.charCodeAt(s)===xe){if(!i){n=s+1;break}}else r===-1&&(i=!1,r=s+1);return r===-1?"":t.slice(n,r)},extname(t){de(t,"path");let e=-1,n=0,r=-1,i=!0,s=0;for(let a=t.length-1;a>=0;--a){const o=t.charCodeAt(a);if(o===xe){if(!i){n=a+1;break}continue}r===-1&&(i=!1,r=a+1),o===pt?e===-1?e=a:s!==1&&(s=1):e!==-1&&(s=-1)}return e===-1||r===-1||s===0||s===1&&e===r-1&&e===n+1?"":t.slice(e,r)},format:Ss.bind(null,"/"),parse(t){de(t,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return e;const n=t.charCodeAt(0)===xe;let r;n?(e.root="/",r=1):r=0;let i=-1,s=0,a=-1,o=!0,l=t.length-1,c=0;for(;l>=r;--l){const h=t.charCodeAt(l);if(h===xe){if(!o){s=l+1;break}continue}a===-1&&(o=!1,a=l+1),h===pt?i===-1?i=l:c!==1&&(c=1):i!==-1&&(c=-1)}if(a!==-1){const h=s===0&&n?1:s;i===-1||c===0||c===1&&i===a-1&&i===s+1?e.base=e.name=t.slice(h,a):(e.name=t.slice(h,i),e.base=t.slice(h,a),e.ext=t.slice(i,a))}return s>0?e.dir=t.slice(0,s-1):n&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};Me.win32=Re.win32=Re,Me.posix=Re.posix=Me,mt?Re.normalize:Me.normalize,mt?Re.resolve:Me.resolve,mt?Re.relative:Me.relative,mt?Re.dirname:Me.dirname,mt?Re.basename:Me.basename,mt?Re.extname:Me.extname,mt?Re.sep:Me.sep;const lh=/^\w[\w\d+.-]*$/,ch=/^\//,hh=/^\/\//;function dh(t,e){if(!t.scheme&&e)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${t.authority}", path: "${t.path}", query: "${t.query}", fragment: "${t.fragment}"}`);if(t.scheme&&!lh.test(t.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(t.path){if(t.authority){if(!ch.test(t.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(hh.test(t.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function uh(t,e){return!t&&!e?"file":t}function ph(t,e){switch(t){case"https":case"http":case"file":e?e[0]!==$e&&(e=$e+e):e=$e;break}return e}const oe="",$e="/",fh=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;let Wr=class Cr{static isUri(e){return e instanceof Cr?!0:e?typeof e.authority=="string"&&typeof e.fragment=="string"&&typeof e.path=="string"&&typeof e.query=="string"&&typeof e.scheme=="string"&&typeof e.fsPath=="string"&&typeof e.with=="function"&&typeof e.toString=="function":!1}constructor(e,n,r,i,s,a=!1){typeof e=="object"?(this.scheme=e.scheme||oe,this.authority=e.authority||oe,this.path=e.path||oe,this.query=e.query||oe,this.fragment=e.fragment||oe):(this.scheme=uh(e,a),this.authority=n||oe,this.path=ph(this.scheme,r||oe),this.query=i||oe,this.fragment=s||oe,dh(this,a))}get fsPath(){return Or(this,!1)}with(e){if(!e)return this;let{scheme:n,authority:r,path:i,query:s,fragment:a}=e;return n===void 0?n=this.scheme:n===null&&(n=oe),r===void 0?r=this.authority:r===null&&(r=oe),i===void 0?i=this.path:i===null&&(i=oe),s===void 0?s=this.query:s===null&&(s=oe),a===void 0?a=this.fragment:a===null&&(a=oe),n===this.scheme&&r===this.authority&&i===this.path&&s===this.query&&a===this.fragment?this:new Ot(n,r,i,s,a)}static parse(e,n=!1){const r=fh.exec(e);return r?new Ot(r[2]||oe,qn(r[4]||oe),qn(r[5]||oe),qn(r[7]||oe),qn(r[9]||oe),n):new Ot(oe,oe,oe,oe,oe)}static file(e){let n=oe;if(sn&&(e=e.replace(/\\/g,$e)),e[0]===$e&&e[1]===$e){const r=e.indexOf($e,2);r===-1?(n=e.substring(2),e=$e):(n=e.substring(2,r),e=e.substring(r)||$e)}return new Ot("file",n,e,oe,oe)}static from(e,n){return new Ot(e.scheme,e.authority,e.path,e.query,e.fragment,n)}static joinPath(e,...n){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let r;return sn&&e.scheme==="file"?r=Cr.file(Re.join(Or(e,!0),...n)).path:r=Me.join(e.path,...n),e.with({path:r})}toString(e=!1){return Ur(this,e)}toJSON(){return this}static revive(e){var n,r;if(e){if(e instanceof Cr)return e;{const i=new Ot(e);return i._formatted=(n=e.external)!==null&&n!==void 0?n:null,i._fsPath=e._sep===Cs&&(r=e.fsPath)!==null&&r!==void 0?r:null,i}}else return e}};const Cs=sn?1:void 0;class Ot extends Wr{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=Or(this,!1)),this._fsPath}toString(e=!1){return e?Ur(this,!0):(this._formatted||(this._formatted=Ur(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=Cs),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 ks={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 _s(t,e,n){let r,i=-1;for(let s=0;s<t.length;s++){const a=t.charCodeAt(s);if(a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||a===45||a===46||a===95||a===126||e&&a===47||n&&a===91||n&&a===93||n&&a===58)i!==-1&&(r+=encodeURIComponent(t.substring(i,s)),i=-1),r!==void 0&&(r+=t.charAt(s));else{r===void 0&&(r=t.substr(0,s));const o=ks[a];o!==void 0?(i!==-1&&(r+=encodeURIComponent(t.substring(i,s)),i=-1),r+=o):i===-1&&(i=s)}}return i!==-1&&(r+=encodeURIComponent(t.substring(i))),r!==void 0?r:t}function mh(t){let e;for(let n=0;n<t.length;n++){const r=t.charCodeAt(n);r===35||r===63?(e===void 0&&(e=t.substr(0,n)),e+=ks[r]):e!==void 0&&(e+=t[n])}return e!==void 0?e:t}function Or(t,e){let n;return t.authority&&t.path.length>1&&t.scheme==="file"?n=`//${t.authority}${t.path}`:t.path.charCodeAt(0)===47&&(t.path.charCodeAt(1)>=65&&t.path.charCodeAt(1)<=90||t.path.charCodeAt(1)>=97&&t.path.charCodeAt(1)<=122)&&t.path.charCodeAt(2)===58?e?n=t.path.substr(1):n=t.path[1].toLowerCase()+t.path.substr(2):n=t.path,sn&&(n=n.replace(/\//g,"\\")),n}function Ur(t,e){const n=e?mh:_s;let r="",{scheme:i,authority:s,path:a,query:o,fragment:l}=t;if(i&&(r+=i,r+=":"),(s||i==="file")&&(r+=$e,r+=$e),s){let c=s.indexOf("@");if(c!==-1){const h=s.substr(0,c);s=s.substr(c+1),c=h.lastIndexOf(":"),c===-1?r+=n(h,!1,!1):(r+=n(h.substr(0,c),!1,!1),r+=":",r+=n(h.substr(c+1),!1,!0)),r+="@"}s=s.toLowerCase(),c=s.lastIndexOf(":"),c===-1?r+=n(s,!1,!0):(r+=n(s.substr(0,c),!1,!0),r+=s.substr(c))}if(a){if(a.length>=3&&a.charCodeAt(0)===47&&a.charCodeAt(2)===58){const c=a.charCodeAt(1);c>=65&&c<=90&&(a=`/${String.fromCharCode(c+32)}:${a.substr(3)}`)}else if(a.length>=2&&a.charCodeAt(1)===58){const c=a.charCodeAt(0);c>=65&&c<=90&&(a=`${String.fromCharCode(c+32)}:${a.substr(2)}`)}r+=n(a,!0,!1)}return o&&(r+="?",r+=n(o,!1,!1)),l&&(r+="#",r+=e?l:_s(l,!1,!1)),r}function Es(t){try{return decodeURIComponent(t)}catch{return t.length>3?t.substr(0,3)+Es(t.substr(3)):t}}const Rs=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function qn(t){return t.match(Rs)?t.replace(Rs,e=>Es(e)):t}let Ye=class At{constructor(e,n){this.lineNumber=e,this.column=n}with(e=this.lineNumber,n=this.column){return e===this.lineNumber&&n===this.column?this:new At(e,n)}delta(e=0,n=0){return this.with(this.lineNumber+e,this.column+n)}equals(e){return At.equals(this,e)}static equals(e,n){return!e&&!n?!0:!!e&&!!n&&e.lineNumber===n.lineNumber&&e.column===n.column}isBefore(e){return At.isBefore(this,e)}static isBefore(e,n){return e.lineNumber<n.lineNumber?!0:n.lineNumber<e.lineNumber?!1:e.column<n.column}isBeforeOrEqual(e){return At.isBeforeOrEqual(this,e)}static isBeforeOrEqual(e,n){return e.lineNumber<n.lineNumber?!0:n.lineNumber<e.lineNumber?!1:e.column<=n.column}static compare(e,n){const r=e.lineNumber|0,i=n.lineNumber|0;if(r===i){const s=e.column|0,a=n.column|0;return s-a}return r-i}clone(){return new At(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(e){return new At(e.lineNumber,e.column)}static isIPosition(e){return e&&typeof e.lineNumber=="number"&&typeof e.column=="number"}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}},ve=class pe{constructor(e,n,r,i){e>r||e===r&&n>i?(this.startLineNumber=r,this.startColumn=i,this.endLineNumber=e,this.endColumn=n):(this.startLineNumber=e,this.startColumn=n,this.endLineNumber=r,this.endColumn=i)}isEmpty(){return pe.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return pe.containsPosition(this,e)}static containsPosition(e,n){return!(n.lineNumber<e.startLineNumber||n.lineNumber>e.endLineNumber||n.lineNumber===e.startLineNumber&&n.column<e.startColumn||n.lineNumber===e.endLineNumber&&n.column>e.endColumn)}static strictContainsPosition(e,n){return!(n.lineNumber<e.startLineNumber||n.lineNumber>e.endLineNumber||n.lineNumber===e.startLineNumber&&n.column<=e.startColumn||n.lineNumber===e.endLineNumber&&n.column>=e.endColumn)}containsRange(e){return pe.containsRange(this,e)}static containsRange(e,n){return!(n.startLineNumber<e.startLineNumber||n.endLineNumber<e.startLineNumber||n.startLineNumber>e.endLineNumber||n.endLineNumber>e.endLineNumber||n.startLineNumber===e.startLineNumber&&n.startColumn<e.startColumn||n.endLineNumber===e.endLineNumber&&n.endColumn>e.endColumn)}strictContainsRange(e){return pe.strictContainsRange(this,e)}static strictContainsRange(e,n){return!(n.startLineNumber<e.startLineNumber||n.endLineNumber<e.startLineNumber||n.startLineNumber>e.endLineNumber||n.endLineNumber>e.endLineNumber||n.startLineNumber===e.startLineNumber&&n.startColumn<=e.startColumn||n.endLineNumber===e.endLineNumber&&n.endColumn>=e.endColumn)}plusRange(e){return pe.plusRange(this,e)}static plusRange(e,n){let r,i,s,a;return n.startLineNumber<e.startLineNumber?(r=n.startLineNumber,i=n.startColumn):n.startLineNumber===e.startLineNumber?(r=n.startLineNumber,i=Math.min(n.startColumn,e.startColumn)):(r=e.startLineNumber,i=e.startColumn),n.endLineNumber>e.endLineNumber?(s=n.endLineNumber,a=n.endColumn):n.endLineNumber===e.endLineNumber?(s=n.endLineNumber,a=Math.max(n.endColumn,e.endColumn)):(s=e.endLineNumber,a=e.endColumn),new pe(r,i,s,a)}intersectRanges(e){return pe.intersectRanges(this,e)}static intersectRanges(e,n){let r=e.startLineNumber,i=e.startColumn,s=e.endLineNumber,a=e.endColumn;const o=n.startLineNumber,l=n.startColumn,c=n.endLineNumber,h=n.endColumn;return r<o?(r=o,i=l):r===o&&(i=Math.max(i,l)),s>c?(s=c,a=h):s===c&&(a=Math.min(a,h)),r>s||r===s&&i>a?null:new pe(r,i,s,a)}equalsRange(e){return pe.equalsRange(this,e)}static equalsRange(e,n){return!e&&!n?!0:!!e&&!!n&&e.startLineNumber===n.startLineNumber&&e.startColumn===n.startColumn&&e.endLineNumber===n.endLineNumber&&e.endColumn===n.endColumn}getEndPosition(){return pe.getEndPosition(this)}static getEndPosition(e){return new Ye(e.endLineNumber,e.endColumn)}getStartPosition(){return pe.getStartPosition(this)}static getStartPosition(e){return new Ye(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,n){return new pe(this.startLineNumber,this.startColumn,e,n)}setStartPosition(e,n){return new pe(e,n,this.endLineNumber,this.endColumn)}collapseToStart(){return pe.collapseToStart(this)}static collapseToStart(e){return new pe(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return pe.collapseToEnd(this)}static collapseToEnd(e){return new pe(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new pe(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e,n=e){return new pe(e.lineNumber,e.column,n.lineNumber,n.column)}static lift(e){return e?new pe(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&typeof e.startLineNumber=="number"&&typeof e.startColumn=="number"&&typeof e.endLineNumber=="number"&&typeof e.endColumn=="number"}static areIntersectingOrTouching(e,n){return!(e.endLineNumber<n.startLineNumber||e.endLineNumber===n.startLineNumber&&e.endColumn<n.startColumn||n.endLineNumber<e.startLineNumber||n.endLineNumber===e.startLineNumber&&n.endColumn<e.startColumn)}static areIntersecting(e,n){return!(e.endLineNumber<n.startLineNumber||e.endLineNumber===n.startLineNumber&&e.endColumn<=n.startColumn||n.endLineNumber<e.startLineNumber||n.endLineNumber===e.startLineNumber&&n.endColumn<=e.startColumn)}static compareRangesUsingStarts(e,n){if(e&&n){const s=e.startLineNumber|0,a=n.startLineNumber|0;if(s===a){const o=e.startColumn|0,l=n.startColumn|0;if(o===l){const c=e.endLineNumber|0,h=n.endLineNumber|0;if(c===h){const u=e.endColumn|0,f=n.endColumn|0;return u-f}return c-h}return o-l}return s-a}return(e?1:0)-(n?1:0)}static compareRangesUsingEnds(e,n){return e.endLineNumber===n.endLineNumber?e.endColumn===n.endColumn?e.startLineNumber===n.startLineNumber?e.startColumn-n.startColumn:e.startLineNumber-n.startLineNumber:e.endColumn-n.endColumn:e.endLineNumber-n.endLineNumber}static spansMultipleLines(e){return e.endLineNumber>e.startLineNumber}toJSON(){return this}};function gh(t,e,n=(r,i)=>r===i){if(t===e)return!0;if(!t||!e||t.length!==e.length)return!1;for(let r=0,i=t.length;r<i;r++)if(!n(t[r],e[r]))return!1;return!0}function*bh(t,e){let n,r;for(const i of t)r!==void 0&&e(r,i)?n.push(i):(n&&(yield n),n=[i]),r=i;n&&(yield n)}function vh(t,e){for(let n=0;n<=t.length;n++)e(n===0?void 0:t[n-1],n===t.length?void 0:t[n])}function yh(t,e){for(let n=0;n<t.length;n++)e(n===0?void 0:t[n-1],t[n],n+1===t.length?void 0:t[n+1])}function wh(t,e){for(const n of e)t.push(n)}var Fs;(function(t){function e(s){return s<0}t.isLessThan=e;function n(s){return s<=0}t.isLessThanOrEqual=n;function r(s){return s>0}t.isGreaterThan=r;function i(s){return s===0}t.isNeitherLessOrGreaterThan=i,t.greaterThan=1,t.lessThan=-1,t.neitherLessOrGreaterThan=0})(Fs||(Fs={}));function jn(t,e){return(n,r)=>e(t(n),t(r))}const $n=(t,e)=>t-e;function xh(t){return(e,n)=>-t(e,n)}function Ds(t){return t<0?0:t>255?255:t|0}function Ut(t){return t<0?0:t>4294967295?4294967295:t|0}class Sh{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,n){e=Ut(e);const r=this.values,i=this.prefixSum,s=n.length;return s===0?!1:(this.values=new Uint32Array(r.length+s),this.values.set(r.subarray(0,e),0),this.values.set(r.subarray(e),e+s),this.values.set(n,e),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(e,n){return e=Ut(e),n=Ut(n),this.values[e]===n?!1:(this.values[e]=n,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)}removeValues(e,n){e=Ut(e),n=Ut(n);const r=this.values,i=this.prefixSum;if(e>=r.length)return!1;const s=r.length-e;return n>=s&&(n=s),n===0?!1:(this.values=new Uint32Array(r.length-n),this.values.set(r.subarray(0,e),0),this.values.set(r.subarray(e+n),e),this.prefixSum=new Uint32Array(this.values.length),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=Ut(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let n=this.prefixSumValidIndex[0]+1;n===0&&(this.prefixSum[0]=this.values[0],n++),e>=this.values.length&&(e=this.values.length-1);for(let r=n;r<=e;r++)this.prefixSum[r]=this.prefixSum[r-1]+this.values[r];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let n=0,r=this.values.length-1,i=0,s=0,a=0;for(;n<=r;)if(i=n+(r-n)/2|0,s=this.prefixSum[i],a=s-this.values[i],e<a)r=i-1;else if(e>=s)n=i+1;else break;return new Ch(i,e-a)}}class Ch{constructor(e,n){this.index=e,this.remainder=n,this._prefixSumIndexOfResultBrand=void 0,this.index=e,this.remainder=n}}class kh{constructor(e,n,r,i){this._uri=e,this._lines=n,this._eol=r,this._versionId=i,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return this._cachedTextValue===null&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);const n=e.changes;for(const r of n)this._acceptDeleteRange(r.range),this._acceptInsertText(new Ye(r.range.startLineNumber,r.range.startColumn),r.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const e=this._eol.length,n=this._lines.length,r=new Uint32Array(n);for(let i=0;i<n;i++)r[i]=this._lines[i].length+e;this._lineStarts=new Sh(r)}}_setLineText(e,n){this._lines[e]=n,this._lineStarts&&this._lineStarts.setValue(e,this._lines[e].length+this._eol.length)}_acceptDeleteRange(e){if(e.startLineNumber===e.endLineNumber){if(e.startColumn===e.endColumn)return;this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.startLineNumber-1].substring(e.endColumn-1));return}this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.endLineNumber-1].substring(e.endColumn-1)),this._lines.splice(e.startLineNumber,e.endLineNumber-e.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(e.startLineNumber,e.endLineNumber-e.startLineNumber)}_acceptInsertText(e,n){if(n.length===0)return;const r=Pc(n);if(r.length===1){this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+r[0]+this._lines[e.lineNumber-1].substring(e.column-1));return}r[r.length-1]+=this._lines[e.lineNumber-1].substring(e.column-1),this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+r[0]);const i=new Uint32Array(r.length-1);for(let s=1;s<r.length;s++)this._lines.splice(e.lineNumber+s-1,0,r[s]),i[s-1]=r[s].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,i)}}const _h="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function Eh(t=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const n of _h)t.indexOf(n)>=0||(e+="\\"+n);return e+="\\s]+)",new RegExp(e,"g")}const As=Eh();function Ns(t){let e=As;if(t&&t instanceof RegExp)if(t.global)e=t;else{let n="g";t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.unicode&&(n+="u"),e=new RegExp(t.source,n)}return e.lastIndex=0,e}const Ms=new bc;Ms.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function Vr(t,e,n,r,i){if(e=Ns(e),i||(i=Tn.first(Ms)),n.length>i.maxLen){let c=t-i.maxLen/2;return c<0?c=0:r+=c,n=n.substring(c,t+i.maxLen/2),Vr(t,e,n,r,i)}const s=Date.now(),a=t-1-r;let o=-1,l=null;for(let c=1;!(Date.now()-s>=i.timeBudget);c++){const h=a-i.windowSize*c;e.lastIndex=Math.max(0,h);const u=Rh(e,n,a,o);if(!u&&l||(l=u,h<=0))break;o=h}if(l){const c={word:l[0],startColumn:r+1+l.index,endColumn:r+1+l.index+l[0].length};return e.lastIndex=0,c}return null}function Rh(t,e,n,r){let i;for(;i=t.exec(e);){const s=i.index||0;if(s<=n&&t.lastIndex>=n)return i;if(r>0&&s>r)return null}return null}class Br{constructor(e){const n=Ds(e);this._defaultValue=n,this._asciiMap=Br._createAsciiMap(n),this._map=new Map}static _createAsciiMap(e){const n=new Uint8Array(256);return n.fill(e),n}set(e,n){const r=Ds(n);e>=0&&e<256?this._asciiMap[e]=r:this._map.set(e,r)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}class Fh{constructor(e,n,r){const i=new Uint8Array(e*n);for(let s=0,a=e*n;s<a;s++)i[s]=r;this._data=i,this.rows=e,this.cols=n}get(e,n){return this._data[e*this.cols+n]}set(e,n,r){this._data[e*this.cols+n]=r}}class Dh{constructor(e){let n=0,r=0;for(let s=0,a=e.length;s<a;s++){const[o,l,c]=e[s];l>n&&(n=l),o>r&&(r=o),c>r&&(r=c)}n++,r++;const i=new Fh(r,n,0);for(let s=0,a=e.length;s<a;s++){const[o,l,c]=e[s];i.set(o,l,c)}this._states=i,this._maxCharCode=n}nextState(e,n){return n<0||n>=this._maxCharCode?0:this._states.get(e,n)}}let qr=null;function Ah(){return qr===null&&(qr=new Dh([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),qr}let an=null;function Nh(){if(an===null){an=new Br(0);const t=` <>'"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…`;for(let n=0;n<t.length;n++)an.set(t.charCodeAt(n),1);const e=".,;:";for(let n=0;n<e.length;n++)an.set(e.charCodeAt(n),2)}return an}class Hn{static _createLink(e,n,r,i,s){let a=s-1;do{const o=n.charCodeAt(a);if(e.get(o)!==2)break;a--}while(a>i);if(i>0){const o=n.charCodeAt(i-1),l=n.charCodeAt(a);(o===40&&l===41||o===91&&l===93||o===123&&l===125)&&a--}return{range:{startLineNumber:r,startColumn:i+1,endLineNumber:r,endColumn:a+2},url:n.substring(i,a+1)}}static computeLinks(e,n=Ah()){const r=Nh(),i=[];for(let s=1,a=e.getLineCount();s<=a;s++){const o=e.getLineContent(s),l=o.length;let c=0,h=0,u=0,f=1,m=!1,g=!1,b=!1,y=!1;for(;c<l;){let C=!1;const k=o.charCodeAt(c);if(f===13){let w;switch(k){case 40:m=!0,w=0;break;case 41:w=m?0:1;break;case 91:b=!0,g=!0,w=0;break;case 93:b=!1,w=g?0:1;break;case 123:y=!0,w=0;break;case 125:w=y?0:1;break;case 39:case 34:case 96:u===k?w=1:u===39||u===34||u===96?w=0:w=1;break;case 42:w=u===42?1:0;break;case 124:w=u===124?1:0;break;case 32:w=b?0:1;break;default:w=r.get(k)}w===1&&(i.push(Hn._createLink(r,o,s,h,c)),C=!0)}else if(f===12){let w;k===91?(g=!0,w=0):w=r.get(k),w===1?C=!0:f=13}else f=n.nextState(f,k),f===0&&(C=!0);C&&(f=1,m=!1,g=!1,y=!1,h=c+1,u=k),c++}f===13&&i.push(Hn._createLink(r,o,s,h,l))}return i}}function Mh(t){return!t||typeof t.getLineCount!="function"||typeof t.getLineContent!="function"?[]:Hn.computeLinks(t)}class jr{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(e,n,r,i,s){if(e&&n){const a=this.doNavigateValueSet(n,s);if(a)return{range:e,value:a}}if(r&&i){const a=this.doNavigateValueSet(i,s);if(a)return{range:r,value:a}}return null}doNavigateValueSet(e,n){const r=this.numberReplace(e,n);return r!==null?r:this.textReplace(e,n)}numberReplace(e,n){const r=Math.pow(10,e.length-(e.lastIndexOf(".")+1));let i=Number(e);const s=parseFloat(e);return!isNaN(i)&&!isNaN(s)&&i===s?i===0&&!n?null:(i=Math.floor(i*r),i+=n?r:-r,String(i/r)):null}textReplace(e,n){return this.valueSetsReplace(this._defaultValueSet,e,n)}valueSetsReplace(e,n,r){let i=null;for(let s=0,a=e.length;i===null&&s<a;s++)i=this.valueSetReplace(e[s],n,r);return i}valueSetReplace(e,n,r){let i=e.indexOf(n);return i>=0?(i+=r?1:-1,i<0?i=e.length-1:i%=e.length,e[i]):null}}jr.INSTANCE=new jr;const zs=Object.freeze(function(t,e){const n=setTimeout(t.bind(e),0);return{dispose(){clearTimeout(n)}}});var Gn;(function(t){function e(n){return n===t.None||n===t.Cancelled||n instanceof Jn?!0:!n||typeof n!="object"?!1:typeof n.isCancellationRequested=="boolean"&&typeof n.onCancellationRequested=="function"}t.isCancellationToken=e,t.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:_r.None}),t.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:zs})})(Gn||(Gn={}));class Jn{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?zs:(this._emitter||(this._emitter=new qe),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class zh{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new Jn),this._token}cancel(){this._token?this._token instanceof Jn&&this._token.cancel():this._token=Gn.Cancelled}dispose(e=!1){var n;e&&this.cancel(),(n=this._parentListener)===null||n===void 0||n.dispose(),this._token?this._token instanceof Jn&&this._token.dispose():this._token=Gn.None}}class $r{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,n){this._keyCodeToStr[e]=n,this._strToKeyCode[n.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const Xn=new $r,Hr=new $r,Gr=new $r,Lh=new Array(230),Ph=Object.create(null),Ih=Object.create(null);(function(){const t="",e=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",t,t],[1,1,"Hyper",0,t,0,t,t,t],[1,2,"Super",0,t,0,t,t,t],[1,3,"Fn",0,t,0,t,t,t],[1,4,"FnLock",0,t,0,t,t,t],[1,5,"Suspend",0,t,0,t,t,t],[1,6,"Resume",0,t,0,t,t,t],[1,7,"Turbo",0,t,0,t,t,t],[1,8,"Sleep",0,t,0,"VK_SLEEP",t,t],[1,9,"WakeUp",0,t,0,t,t,t],[0,10,"KeyA",31,"A",65,"VK_A",t,t],[0,11,"KeyB",32,"B",66,"VK_B",t,t],[0,12,"KeyC",33,"C",67,"VK_C",t,t],[0,13,"KeyD",34,"D",68,"VK_D",t,t],[0,14,"KeyE",35,"E",69,"VK_E",t,t],[0,15,"KeyF",36,"F",70,"VK_F",t,t],[0,16,"KeyG",37,"G",71,"VK_G",t,t],[0,17,"KeyH",38,"H",72,"VK_H",t,t],[0,18,"KeyI",39,"I",73,"VK_I",t,t],[0,19,"KeyJ",40,"J",74,"VK_J",t,t],[0,20,"KeyK",41,"K",75,"VK_K",t,t],[0,21,"KeyL",42,"L",76,"VK_L",t,t],[0,22,"KeyM",43,"M",77,"VK_M",t,t],[0,23,"KeyN",44,"N",78,"VK_N",t,t],[0,24,"KeyO",45,"O",79,"VK_O",t,t],[0,25,"KeyP",46,"P",80,"VK_P",t,t],[0,26,"KeyQ",47,"Q",81,"VK_Q",t,t],[0,27,"KeyR",48,"R",82,"VK_R",t,t],[0,28,"KeyS",49,"S",83,"VK_S",t,t],[0,29,"KeyT",50,"T",84,"VK_T",t,t],[0,30,"KeyU",51,"U",85,"VK_U",t,t],[0,31,"KeyV",52,"V",86,"VK_V",t,t],[0,32,"KeyW",53,"W",87,"VK_W",t,t],[0,33,"KeyX",54,"X",88,"VK_X",t,t],[0,34,"KeyY",55,"Y",89,"VK_Y",t,t],[0,35,"KeyZ",56,"Z",90,"VK_Z",t,t],[0,36,"Digit1",22,"1",49,"VK_1",t,t],[0,37,"Digit2",23,"2",50,"VK_2",t,t],[0,38,"Digit3",24,"3",51,"VK_3",t,t],[0,39,"Digit4",25,"4",52,"VK_4",t,t],[0,40,"Digit5",26,"5",53,"VK_5",t,t],[0,41,"Digit6",27,"6",54,"VK_6",t,t],[0,42,"Digit7",28,"7",55,"VK_7",t,t],[0,43,"Digit8",29,"8",56,"VK_8",t,t],[0,44,"Digit9",30,"9",57,"VK_9",t,t],[0,45,"Digit0",21,"0",48,"VK_0",t,t],[1,46,"Enter",3,"Enter",13,"VK_RETURN",t,t],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",t,t],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",t,t],[1,49,"Tab",2,"Tab",9,"VK_TAB",t,t],[1,50,"Space",10,"Space",32,"VK_SPACE",t,t],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,t,0,t,t,t],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",t,t],[1,64,"F1",59,"F1",112,"VK_F1",t,t],[1,65,"F2",60,"F2",113,"VK_F2",t,t],[1,66,"F3",61,"F3",114,"VK_F3",t,t],[1,67,"F4",62,"F4",115,"VK_F4",t,t],[1,68,"F5",63,"F5",116,"VK_F5",t,t],[1,69,"F6",64,"F6",117,"VK_F6",t,t],[1,70,"F7",65,"F7",118,"VK_F7",t,t],[1,71,"F8",66,"F8",119,"VK_F8",t,t],[1,72,"F9",67,"F9",120,"VK_F9",t,t],[1,73,"F10",68,"F10",121,"VK_F10",t,t],[1,74,"F11",69,"F11",122,"VK_F11",t,t],[1,75,"F12",70,"F12",123,"VK_F12",t,t],[1,76,"PrintScreen",0,t,0,t,t,t],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",t,t],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",t,t],[1,79,"Insert",19,"Insert",45,"VK_INSERT",t,t],[1,80,"Home",14,"Home",36,"VK_HOME",t,t],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",t,t],[1,82,"Delete",20,"Delete",46,"VK_DELETE",t,t],[1,83,"End",13,"End",35,"VK_END",t,t],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",t,t],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",t],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",t],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",t],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",t],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",t,t],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",t,t],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",t,t],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",t,t],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",t,t],[1,94,"NumpadEnter",3,t,0,t,t,t],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",t,t],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",t,t],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",t,t],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",t,t],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",t,t],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",t,t],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",t,t],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",t,t],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",t,t],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",t,t],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",t,t],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",t,t],[1,107,"ContextMenu",58,"ContextMenu",93,t,t,t],[1,108,"Power",0,t,0,t,t,t],[1,109,"NumpadEqual",0,t,0,t,t,t],[1,110,"F13",71,"F13",124,"VK_F13",t,t],[1,111,"F14",72,"F14",125,"VK_F14",t,t],[1,112,"F15",73,"F15",126,"VK_F15",t,t],[1,113,"F16",74,"F16",127,"VK_F16",t,t],[1,114,"F17",75,"F17",128,"VK_F17",t,t],[1,115,"F18",76,"F18",129,"VK_F18",t,t],[1,116,"F19",77,"F19",130,"VK_F19",t,t],[1,117,"F20",78,"F20",131,"VK_F20",t,t],[1,118,"F21",79,"F21",132,"VK_F21",t,t],[1,119,"F22",80,"F22",133,"VK_F22",t,t],[1,120,"F23",81,"F23",134,"VK_F23",t,t],[1,121,"F24",82,"F24",135,"VK_F24",t,t],[1,122,"Open",0,t,0,t,t,t],[1,123,"Help",0,t,0,t,t,t],[1,124,"Select",0,t,0,t,t,t],[1,125,"Again",0,t,0,t,t,t],[1,126,"Undo",0,t,0,t,t,t],[1,127,"Cut",0,t,0,t,t,t],[1,128,"Copy",0,t,0,t,t,t],[1,129,"Paste",0,t,0,t,t,t],[1,130,"Find",0,t,0,t,t,t],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",t,t],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",t,t],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",t,t],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",t,t],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",t,t],[1,136,"KanaMode",0,t,0,t,t,t],[0,137,"IntlYen",0,t,0,t,t,t],[1,138,"Convert",0,t,0,t,t,t],[1,139,"NonConvert",0,t,0,t,t,t],[1,140,"Lang1",0,t,0,t,t,t],[1,141,"Lang2",0,t,0,t,t,t],[1,142,"Lang3",0,t,0,t,t,t],[1,143,"Lang4",0,t,0,t,t,t],[1,144,"Lang5",0,t,0,t,t,t],[1,145,"Abort",0,t,0,t,t,t],[1,146,"Props",0,t,0,t,t,t],[1,147,"NumpadParenLeft",0,t,0,t,t,t],[1,148,"NumpadParenRight",0,t,0,t,t,t],[1,149,"NumpadBackspace",0,t,0,t,t,t],[1,150,"NumpadMemoryStore",0,t,0,t,t,t],[1,151,"NumpadMemoryRecall",0,t,0,t,t,t],[1,152,"NumpadMemoryClear",0,t,0,t,t,t],[1,153,"NumpadMemoryAdd",0,t,0,t,t,t],[1,154,"NumpadMemorySubtract",0,t,0,t,t,t],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",t,t],[1,156,"NumpadClearEntry",0,t,0,t,t,t],[1,0,t,5,"Ctrl",17,"VK_CONTROL",t,t],[1,0,t,4,"Shift",16,"VK_SHIFT",t,t],[1,0,t,6,"Alt",18,"VK_MENU",t,t],[1,0,t,57,"Meta",91,"VK_COMMAND",t,t],[1,157,"ControlLeft",5,t,0,"VK_LCONTROL",t,t],[1,158,"ShiftLeft",4,t,0,"VK_LSHIFT",t,t],[1,159,"AltLeft",6,t,0,"VK_LMENU",t,t],[1,160,"MetaLeft",57,t,0,"VK_LWIN",t,t],[1,161,"ControlRight",5,t,0,"VK_RCONTROL",t,t],[1,162,"ShiftRight",4,t,0,"VK_RSHIFT",t,t],[1,163,"AltRight",6,t,0,"VK_RMENU",t,t],[1,164,"MetaRight",57,t,0,"VK_RWIN",t,t],[1,165,"BrightnessUp",0,t,0,t,t,t],[1,166,"BrightnessDown",0,t,0,t,t,t],[1,167,"MediaPlay",0,t,0,t,t,t],[1,168,"MediaRecord",0,t,0,t,t,t],[1,169,"MediaFastForward",0,t,0,t,t,t],[1,170,"MediaRewind",0,t,0,t,t,t],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",t,t],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",t,t],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",t,t],[1,174,"Eject",0,t,0,t,t,t],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",t,t],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",t,t],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",t,t],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",t,t],[1,179,"LaunchApp1",0,t,0,"VK_MEDIA_LAUNCH_APP1",t,t],[1,180,"SelectTask",0,t,0,t,t,t],[1,181,"LaunchScreenSaver",0,t,0,t,t,t],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",t,t],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",t,t],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",t,t],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",t,t],[1,186,"BrowserStop",0,t,0,"VK_BROWSER_STOP",t,t],[1,187,"BrowserRefresh",0,t,0,"VK_BROWSER_REFRESH",t,t],[1,188,"BrowserFavorites",0,t,0,"VK_BROWSER_FAVORITES",t,t],[1,189,"ZoomToggle",0,t,0,t,t,t],[1,190,"MailReply",0,t,0,t,t,t],[1,191,"MailForward",0,t,0,t,t,t],[1,192,"MailSend",0,t,0,t,t,t],[1,0,t,114,"KeyInComposition",229,t,t,t],[1,0,t,116,"ABNT_C2",194,"VK_ABNT_C2",t,t],[1,0,t,96,"OEM_8",223,"VK_OEM_8",t,t],[1,0,t,0,t,0,"VK_KANA",t,t],[1,0,t,0,t,0,"VK_HANGUL",t,t],[1,0,t,0,t,0,"VK_JUNJA",t,t],[1,0,t,0,t,0,"VK_FINAL",t,t],[1,0,t,0,t,0,"VK_HANJA",t,t],[1,0,t,0,t,0,"VK_KANJI",t,t],[1,0,t,0,t,0,"VK_CONVERT",t,t],[1,0,t,0,t,0,"VK_NONCONVERT",t,t],[1,0,t,0,t,0,"VK_ACCEPT",t,t],[1,0,t,0,t,0,"VK_MODECHANGE",t,t],[1,0,t,0,t,0,"VK_SELECT",t,t],[1,0,t,0,t,0,"VK_PRINT",t,t],[1,0,t,0,t,0,"VK_EXECUTE",t,t],[1,0,t,0,t,0,"VK_SNAPSHOT",t,t],[1,0,t,0,t,0,"VK_HELP",t,t],[1,0,t,0,t,0,"VK_APPS",t,t],[1,0,t,0,t,0,"VK_PROCESSKEY",t,t],[1,0,t,0,t,0,"VK_PACKET",t,t],[1,0,t,0,t,0,"VK_DBE_SBCSCHAR",t,t],[1,0,t,0,t,0,"VK_DBE_DBCSCHAR",t,t],[1,0,t,0,t,0,"VK_ATTN",t,t],[1,0,t,0,t,0,"VK_CRSEL",t,t],[1,0,t,0,t,0,"VK_EXSEL",t,t],[1,0,t,0,t,0,"VK_EREOF",t,t],[1,0,t,0,t,0,"VK_PLAY",t,t],[1,0,t,0,t,0,"VK_ZOOM",t,t],[1,0,t,0,t,0,"VK_NONAME",t,t],[1,0,t,0,t,0,"VK_PA1",t,t],[1,0,t,0,t,0,"VK_OEM_CLEAR",t,t]],n=[],r=[];for(const i of e){const[s,a,o,l,c,h,u,f,m]=i;if(r[a]||(r[a]=!0,Ph[o]=a,Ih[o.toLowerCase()]=a),!n[l]){if(n[l]=!0,!c)throw new Error(`String representation missing for key code ${l} around scan code ${o}`);Xn.define(l,c),Hr.define(l,f||c),Gr.define(l,m||f||c)}h&&(Lh[h]=l)}})();var Ls;(function(t){function e(o){return Xn.keyCodeToStr(o)}t.toString=e;function n(o){return Xn.strToKeyCode(o)}t.fromString=n;function r(o){return Hr.keyCodeToStr(o)}t.toUserSettingsUS=r;function i(o){return Gr.keyCodeToStr(o)}t.toUserSettingsGeneral=i;function s(o){return Hr.strToKeyCode(o)||Gr.strToKeyCode(o)}t.fromUserSettings=s;function a(o){if(o>=98&&o<=113)return null;switch(o){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return Xn.keyCodeToStr(o)}t.toElectronAccelerator=a})(Ls||(Ls={}));function Th(t,e){const n=(e&65535)<<16>>>0;return(t|n)>>>0}class ze extends ve{constructor(e,n,r,i){super(e,n,r,i),this.selectionStartLineNumber=e,this.selectionStartColumn=n,this.positionLineNumber=r,this.positionColumn=i}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return ze.selectionsEqual(this,e)}static selectionsEqual(e,n){return e.selectionStartLineNumber===n.selectionStartLineNumber&&e.selectionStartColumn===n.selectionStartColumn&&e.positionLineNumber===n.positionLineNumber&&e.positionColumn===n.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,n){return this.getDirection()===0?new ze(this.startLineNumber,this.startColumn,e,n):new ze(e,n,this.startLineNumber,this.startColumn)}getPosition(){return new Ye(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new Ye(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,n){return this.getDirection()===0?new ze(e,n,this.endLineNumber,this.endColumn):new ze(this.endLineNumber,this.endColumn,e,n)}static fromPositions(e,n=e){return new ze(e.lineNumber,e.column,n.lineNumber,n.column)}static fromRange(e,n){return n===0?new ze(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new ze(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new ze(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,n){if(e&&!n||!e&&n)return!1;if(!e&&!n)return!0;if(e.length!==n.length)return!1;for(let r=0,i=e.length;r<i;r++)if(!this.selectionsEqual(e[r],n[r]))return!1;return!0}static isISelection(e){return e&&typeof e.selectionStartLineNumber=="number"&&typeof e.selectionStartColumn=="number"&&typeof e.positionLineNumber=="number"&&typeof e.positionColumn=="number"}static createWithDirection(e,n,r,i,s){return s===0?new ze(e,n,r,i):new ze(r,i,e,n)}}const Ps=Object.create(null);function d(t,e){if(Cc(e)){const n=Ps[e];if(n===void 0)throw new Error(`${t} references an unknown codicon: ${e}`);e=n}return Ps[t]=e,{id:t}}const Wh={add:d("add",6e4),plus:d("plus",6e4),gistNew:d("gist-new",6e4),repoCreate:d("repo-create",6e4),lightbulb:d("lightbulb",60001),lightBulb:d("light-bulb",60001),repo:d("repo",60002),repoDelete:d("repo-delete",60002),gistFork:d("gist-fork",60003),repoForked:d("repo-forked",60003),gitPullRequest:d("git-pull-request",60004),gitPullRequestAbandoned:d("git-pull-request-abandoned",60004),recordKeys:d("record-keys",60005),keyboard:d("keyboard",60005),tag:d("tag",60006),gitPullRequestLabel:d("git-pull-request-label",60006),tagAdd:d("tag-add",60006),tagRemove:d("tag-remove",60006),person:d("person",60007),personFollow:d("person-follow",60007),personOutline:d("person-outline",60007),personFilled:d("person-filled",60007),gitBranch:d("git-branch",60008),gitBranchCreate:d("git-branch-create",60008),gitBranchDelete:d("git-branch-delete",60008),sourceControl:d("source-control",60008),mirror:d("mirror",60009),mirrorPublic:d("mirror-public",60009),star:d("star",60010),starAdd:d("star-add",60010),starDelete:d("star-delete",60010),starEmpty:d("star-empty",60010),comment:d("comment",60011),commentAdd:d("comment-add",60011),alert:d("alert",60012),warning:d("warning",60012),search:d("search",60013),searchSave:d("search-save",60013),logOut:d("log-out",60014),signOut:d("sign-out",60014),logIn:d("log-in",60015),signIn:d("sign-in",60015),eye:d("eye",60016),eyeUnwatch:d("eye-unwatch",60016),eyeWatch:d("eye-watch",60016),circleFilled:d("circle-filled",60017),primitiveDot:d("primitive-dot",60017),closeDirty:d("close-dirty",60017),debugBreakpoint:d("debug-breakpoint",60017),debugBreakpointDisabled:d("debug-breakpoint-disabled",60017),debugHint:d("debug-hint",60017),terminalDecorationSuccess:d("terminal-decoration-success",60017),primitiveSquare:d("primitive-square",60018),edit:d("edit",60019),pencil:d("pencil",60019),info:d("info",60020),issueOpened:d("issue-opened",60020),gistPrivate:d("gist-private",60021),gitForkPrivate:d("git-fork-private",60021),lock:d("lock",60021),mirrorPrivate:d("mirror-private",60021),close:d("close",60022),removeClose:d("remove-close",60022),x:d("x",60022),repoSync:d("repo-sync",60023),sync:d("sync",60023),clone:d("clone",60024),desktopDownload:d("desktop-download",60024),beaker:d("beaker",60025),microscope:d("microscope",60025),vm:d("vm",60026),deviceDesktop:d("device-desktop",60026),file:d("file",60027),fileText:d("file-text",60027),more:d("more",60028),ellipsis:d("ellipsis",60028),kebabHorizontal:d("kebab-horizontal",60028),mailReply:d("mail-reply",60029),reply:d("reply",60029),organization:d("organization",60030),organizationFilled:d("organization-filled",60030),organizationOutline:d("organization-outline",60030),newFile:d("new-file",60031),fileAdd:d("file-add",60031),newFolder:d("new-folder",60032),fileDirectoryCreate:d("file-directory-create",60032),trash:d("trash",60033),trashcan:d("trashcan",60033),history:d("history",60034),clock:d("clock",60034),folder:d("folder",60035),fileDirectory:d("file-directory",60035),symbolFolder:d("symbol-folder",60035),logoGithub:d("logo-github",60036),markGithub:d("mark-github",60036),github:d("github",60036),terminal:d("terminal",60037),console:d("console",60037),repl:d("repl",60037),zap:d("zap",60038),symbolEvent:d("symbol-event",60038),error:d("error",60039),stop:d("stop",60039),variable:d("variable",60040),symbolVariable:d("symbol-variable",60040),array:d("array",60042),symbolArray:d("symbol-array",60042),symbolModule:d("symbol-module",60043),symbolPackage:d("symbol-package",60043),symbolNamespace:d("symbol-namespace",60043),symbolObject:d("symbol-object",60043),symbolMethod:d("symbol-method",60044),symbolFunction:d("symbol-function",60044),symbolConstructor:d("symbol-constructor",60044),symbolBoolean:d("symbol-boolean",60047),symbolNull:d("symbol-null",60047),symbolNumeric:d("symbol-numeric",60048),symbolNumber:d("symbol-number",60048),symbolStructure:d("symbol-structure",60049),symbolStruct:d("symbol-struct",60049),symbolParameter:d("symbol-parameter",60050),symbolTypeParameter:d("symbol-type-parameter",60050),symbolKey:d("symbol-key",60051),symbolText:d("symbol-text",60051),symbolReference:d("symbol-reference",60052),goToFile:d("go-to-file",60052),symbolEnum:d("symbol-enum",60053),symbolValue:d("symbol-value",60053),symbolRuler:d("symbol-ruler",60054),symbolUnit:d("symbol-unit",60054),activateBreakpoints:d("activate-breakpoints",60055),archive:d("archive",60056),arrowBoth:d("arrow-both",60057),arrowDown:d("arrow-down",60058),arrowLeft:d("arrow-left",60059),arrowRight:d("arrow-right",60060),arrowSmallDown:d("arrow-small-down",60061),arrowSmallLeft:d("arrow-small-left",60062),arrowSmallRight:d("arrow-small-right",60063),arrowSmallUp:d("arrow-small-up",60064),arrowUp:d("arrow-up",60065),bell:d("bell",60066),bold:d("bold",60067),book:d("book",60068),bookmark:d("bookmark",60069),debugBreakpointConditionalUnverified:d("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:d("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:d("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:d("debug-breakpoint-data-unverified",60072),debugBreakpointData:d("debug-breakpoint-data",60073),debugBreakpointDataDisabled:d("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:d("debug-breakpoint-log-unverified",60074),debugBreakpointLog:d("debug-breakpoint-log",60075),debugBreakpointLogDisabled:d("debug-breakpoint-log-disabled",60075),briefcase:d("briefcase",60076),broadcast:d("broadcast",60077),browser:d("browser",60078),bug:d("bug",60079),calendar:d("calendar",60080),caseSensitive:d("case-sensitive",60081),check:d("check",60082),checklist:d("checklist",60083),chevronDown:d("chevron-down",60084),chevronLeft:d("chevron-left",60085),chevronRight:d("chevron-right",60086),chevronUp:d("chevron-up",60087),chromeClose:d("chrome-close",60088),chromeMaximize:d("chrome-maximize",60089),chromeMinimize:d("chrome-minimize",60090),chromeRestore:d("chrome-restore",60091),circleOutline:d("circle-outline",60092),circle:d("circle",60092),debugBreakpointUnverified:d("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:d("terminal-decoration-incomplete",60092),circleSlash:d("circle-slash",60093),circuitBoard:d("circuit-board",60094),clearAll:d("clear-all",60095),clippy:d("clippy",60096),closeAll:d("close-all",60097),cloudDownload:d("cloud-download",60098),cloudUpload:d("cloud-upload",60099),code:d("code",60100),collapseAll:d("collapse-all",60101),colorMode:d("color-mode",60102),commentDiscussion:d("comment-discussion",60103),creditCard:d("credit-card",60105),dash:d("dash",60108),dashboard:d("dashboard",60109),database:d("database",60110),debugContinue:d("debug-continue",60111),debugDisconnect:d("debug-disconnect",60112),debugPause:d("debug-pause",60113),debugRestart:d("debug-restart",60114),debugStart:d("debug-start",60115),debugStepInto:d("debug-step-into",60116),debugStepOut:d("debug-step-out",60117),debugStepOver:d("debug-step-over",60118),debugStop:d("debug-stop",60119),debug:d("debug",60120),deviceCameraVideo:d("device-camera-video",60121),deviceCamera:d("device-camera",60122),deviceMobile:d("device-mobile",60123),diffAdded:d("diff-added",60124),diffIgnored:d("diff-ignored",60125),diffModified:d("diff-modified",60126),diffRemoved:d("diff-removed",60127),diffRenamed:d("diff-renamed",60128),diff:d("diff",60129),diffSidebyside:d("diff-sidebyside",60129),discard:d("discard",60130),editorLayout:d("editor-layout",60131),emptyWindow:d("empty-window",60132),exclude:d("exclude",60133),extensions:d("extensions",60134),eyeClosed:d("eye-closed",60135),fileBinary:d("file-binary",60136),fileCode:d("file-code",60137),fileMedia:d("file-media",60138),filePdf:d("file-pdf",60139),fileSubmodule:d("file-submodule",60140),fileSymlinkDirectory:d("file-symlink-directory",60141),fileSymlinkFile:d("file-symlink-file",60142),fileZip:d("file-zip",60143),files:d("files",60144),filter:d("filter",60145),flame:d("flame",60146),foldDown:d("fold-down",60147),foldUp:d("fold-up",60148),fold:d("fold",60149),folderActive:d("folder-active",60150),folderOpened:d("folder-opened",60151),gear:d("gear",60152),gift:d("gift",60153),gistSecret:d("gist-secret",60154),gist:d("gist",60155),gitCommit:d("git-commit",60156),gitCompare:d("git-compare",60157),compareChanges:d("compare-changes",60157),gitMerge:d("git-merge",60158),githubAction:d("github-action",60159),githubAlt:d("github-alt",60160),globe:d("globe",60161),grabber:d("grabber",60162),graph:d("graph",60163),gripper:d("gripper",60164),heart:d("heart",60165),home:d("home",60166),horizontalRule:d("horizontal-rule",60167),hubot:d("hubot",60168),inbox:d("inbox",60169),issueReopened:d("issue-reopened",60171),issues:d("issues",60172),italic:d("italic",60173),jersey:d("jersey",60174),json:d("json",60175),kebabVertical:d("kebab-vertical",60176),key:d("key",60177),law:d("law",60178),lightbulbAutofix:d("lightbulb-autofix",60179),linkExternal:d("link-external",60180),link:d("link",60181),listOrdered:d("list-ordered",60182),listUnordered:d("list-unordered",60183),liveShare:d("live-share",60184),loading:d("loading",60185),location:d("location",60186),mailRead:d("mail-read",60187),mail:d("mail",60188),markdown:d("markdown",60189),megaphone:d("megaphone",60190),mention:d("mention",60191),milestone:d("milestone",60192),gitPullRequestMilestone:d("git-pull-request-milestone",60192),mortarBoard:d("mortar-board",60193),move:d("move",60194),multipleWindows:d("multiple-windows",60195),mute:d("mute",60196),noNewline:d("no-newline",60197),note:d("note",60198),octoface:d("octoface",60199),openPreview:d("open-preview",60200),package:d("package",60201),paintcan:d("paintcan",60202),pin:d("pin",60203),play:d("play",60204),run:d("run",60204),plug:d("plug",60205),preserveCase:d("preserve-case",60206),preview:d("preview",60207),project:d("project",60208),pulse:d("pulse",60209),question:d("question",60210),quote:d("quote",60211),radioTower:d("radio-tower",60212),reactions:d("reactions",60213),references:d("references",60214),refresh:d("refresh",60215),regex:d("regex",60216),remoteExplorer:d("remote-explorer",60217),remote:d("remote",60218),remove:d("remove",60219),replaceAll:d("replace-all",60220),replace:d("replace",60221),repoClone:d("repo-clone",60222),repoForcePush:d("repo-force-push",60223),repoPull:d("repo-pull",60224),repoPush:d("repo-push",60225),report:d("report",60226),requestChanges:d("request-changes",60227),rocket:d("rocket",60228),rootFolderOpened:d("root-folder-opened",60229),rootFolder:d("root-folder",60230),rss:d("rss",60231),ruby:d("ruby",60232),saveAll:d("save-all",60233),saveAs:d("save-as",60234),save:d("save",60235),screenFull:d("screen-full",60236),screenNormal:d("screen-normal",60237),searchStop:d("search-stop",60238),server:d("server",60240),settingsGear:d("settings-gear",60241),settings:d("settings",60242),shield:d("shield",60243),smiley:d("smiley",60244),sortPrecedence:d("sort-precedence",60245),splitHorizontal:d("split-horizontal",60246),splitVertical:d("split-vertical",60247),squirrel:d("squirrel",60248),starFull:d("star-full",60249),starHalf:d("star-half",60250),symbolClass:d("symbol-class",60251),symbolColor:d("symbol-color",60252),symbolConstant:d("symbol-constant",60253),symbolEnumMember:d("symbol-enum-member",60254),symbolField:d("symbol-field",60255),symbolFile:d("symbol-file",60256),symbolInterface:d("symbol-interface",60257),symbolKeyword:d("symbol-keyword",60258),symbolMisc:d("symbol-misc",60259),symbolOperator:d("symbol-operator",60260),symbolProperty:d("symbol-property",60261),wrench:d("wrench",60261),wrenchSubaction:d("wrench-subaction",60261),symbolSnippet:d("symbol-snippet",60262),tasklist:d("tasklist",60263),telescope:d("telescope",60264),textSize:d("text-size",60265),threeBars:d("three-bars",60266),thumbsdown:d("thumbsdown",60267),thumbsup:d("thumbsup",60268),tools:d("tools",60269),triangleDown:d("triangle-down",60270),triangleLeft:d("triangle-left",60271),triangleRight:d("triangle-right",60272),triangleUp:d("triangle-up",60273),twitter:d("twitter",60274),unfold:d("unfold",60275),unlock:d("unlock",60276),unmute:d("unmute",60277),unverified:d("unverified",60278),verified:d("verified",60279),versions:d("versions",60280),vmActive:d("vm-active",60281),vmOutline:d("vm-outline",60282),vmRunning:d("vm-running",60283),watch:d("watch",60284),whitespace:d("whitespace",60285),wholeWord:d("whole-word",60286),window:d("window",60287),wordWrap:d("word-wrap",60288),zoomIn:d("zoom-in",60289),zoomOut:d("zoom-out",60290),listFilter:d("list-filter",60291),listFlat:d("list-flat",60292),listSelection:d("list-selection",60293),selection:d("selection",60293),listTree:d("list-tree",60294),debugBreakpointFunctionUnverified:d("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:d("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:d("debug-breakpoint-function-disabled",60296),debugStackframeActive:d("debug-stackframe-active",60297),circleSmallFilled:d("circle-small-filled",60298),debugStackframeDot:d("debug-stackframe-dot",60298),terminalDecorationMark:d("terminal-decoration-mark",60298),debugStackframe:d("debug-stackframe",60299),debugStackframeFocused:d("debug-stackframe-focused",60299),debugBreakpointUnsupported:d("debug-breakpoint-unsupported",60300),symbolString:d("symbol-string",60301),debugReverseContinue:d("debug-reverse-continue",60302),debugStepBack:d("debug-step-back",60303),debugRestartFrame:d("debug-restart-frame",60304),debugAlt:d("debug-alt",60305),callIncoming:d("call-incoming",60306),callOutgoing:d("call-outgoing",60307),menu:d("menu",60308),expandAll:d("expand-all",60309),feedback:d("feedback",60310),gitPullRequestReviewer:d("git-pull-request-reviewer",60310),groupByRefType:d("group-by-ref-type",60311),ungroupByRefType:d("ungroup-by-ref-type",60312),account:d("account",60313),gitPullRequestAssignee:d("git-pull-request-assignee",60313),bellDot:d("bell-dot",60314),debugConsole:d("debug-console",60315),library:d("library",60316),output:d("output",60317),runAll:d("run-all",60318),syncIgnored:d("sync-ignored",60319),pinned:d("pinned",60320),githubInverted:d("github-inverted",60321),serverProcess:d("server-process",60322),serverEnvironment:d("server-environment",60323),pass:d("pass",60324),issueClosed:d("issue-closed",60324),stopCircle:d("stop-circle",60325),playCircle:d("play-circle",60326),record:d("record",60327),debugAltSmall:d("debug-alt-small",60328),vmConnect:d("vm-connect",60329),cloud:d("cloud",60330),merge:d("merge",60331),export:d("export",60332),graphLeft:d("graph-left",60333),magnet:d("magnet",60334),notebook:d("notebook",60335),redo:d("redo",60336),checkAll:d("check-all",60337),pinnedDirty:d("pinned-dirty",60338),passFilled:d("pass-filled",60339),circleLargeFilled:d("circle-large-filled",60340),circleLarge:d("circle-large",60341),circleLargeOutline:d("circle-large-outline",60341),combine:d("combine",60342),gather:d("gather",60342),table:d("table",60343),variableGroup:d("variable-group",60344),typeHierarchy:d("type-hierarchy",60345),typeHierarchySub:d("type-hierarchy-sub",60346),typeHierarchySuper:d("type-hierarchy-super",60347),gitPullRequestCreate:d("git-pull-request-create",60348),runAbove:d("run-above",60349),runBelow:d("run-below",60350),notebookTemplate:d("notebook-template",60351),debugRerun:d("debug-rerun",60352),workspaceTrusted:d("workspace-trusted",60353),workspaceUntrusted:d("workspace-untrusted",60354),workspaceUnknown:d("workspace-unknown",60355),terminalCmd:d("terminal-cmd",60356),terminalDebian:d("terminal-debian",60357),terminalLinux:d("terminal-linux",60358),terminalPowershell:d("terminal-powershell",60359),terminalTmux:d("terminal-tmux",60360),terminalUbuntu:d("terminal-ubuntu",60361),terminalBash:d("terminal-bash",60362),arrowSwap:d("arrow-swap",60363),copy:d("copy",60364),personAdd:d("person-add",60365),filterFilled:d("filter-filled",60366),wand:d("wand",60367),debugLineByLine:d("debug-line-by-line",60368),inspect:d("inspect",60369),layers:d("layers",60370),layersDot:d("layers-dot",60371),layersActive:d("layers-active",60372),compass:d("compass",60373),compassDot:d("compass-dot",60374),compassActive:d("compass-active",60375),azure:d("azure",60376),issueDraft:d("issue-draft",60377),gitPullRequestClosed:d("git-pull-request-closed",60378),gitPullRequestDraft:d("git-pull-request-draft",60379),debugAll:d("debug-all",60380),debugCoverage:d("debug-coverage",60381),runErrors:d("run-errors",60382),folderLibrary:d("folder-library",60383),debugContinueSmall:d("debug-continue-small",60384),beakerStop:d("beaker-stop",60385),graphLine:d("graph-line",60386),graphScatter:d("graph-scatter",60387),pieChart:d("pie-chart",60388),bracket:d("bracket",60175),bracketDot:d("bracket-dot",60389),bracketError:d("bracket-error",60390),lockSmall:d("lock-small",60391),azureDevops:d("azure-devops",60392),verifiedFilled:d("verified-filled",60393),newline:d("newline",60394),layout:d("layout",60395),layoutActivitybarLeft:d("layout-activitybar-left",60396),layoutActivitybarRight:d("layout-activitybar-right",60397),layoutPanelLeft:d("layout-panel-left",60398),layoutPanelCenter:d("layout-panel-center",60399),layoutPanelJustify:d("layout-panel-justify",60400),layoutPanelRight:d("layout-panel-right",60401),layoutPanel:d("layout-panel",60402),layoutSidebarLeft:d("layout-sidebar-left",60403),layoutSidebarRight:d("layout-sidebar-right",60404),layoutStatusbar:d("layout-statusbar",60405),layoutMenubar:d("layout-menubar",60406),layoutCentered:d("layout-centered",60407),target:d("target",60408),indent:d("indent",60409),recordSmall:d("record-small",60410),errorSmall:d("error-small",60411),terminalDecorationError:d("terminal-decoration-error",60411),arrowCircleDown:d("arrow-circle-down",60412),arrowCircleLeft:d("arrow-circle-left",60413),arrowCircleRight:d("arrow-circle-right",60414),arrowCircleUp:d("arrow-circle-up",60415),layoutSidebarRightOff:d("layout-sidebar-right-off",60416),layoutPanelOff:d("layout-panel-off",60417),layoutSidebarLeftOff:d("layout-sidebar-left-off",60418),blank:d("blank",60419),heartFilled:d("heart-filled",60420),map:d("map",60421),mapHorizontal:d("map-horizontal",60421),foldHorizontal:d("fold-horizontal",60421),mapFilled:d("map-filled",60422),mapHorizontalFilled:d("map-horizontal-filled",60422),foldHorizontalFilled:d("fold-horizontal-filled",60422),circleSmall:d("circle-small",60423),bellSlash:d("bell-slash",60424),bellSlashDot:d("bell-slash-dot",60425),commentUnresolved:d("comment-unresolved",60426),gitPullRequestGoToChanges:d("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:d("git-pull-request-new-changes",60428),searchFuzzy:d("search-fuzzy",60429),commentDraft:d("comment-draft",60430),send:d("send",60431),sparkle:d("sparkle",60432),insert:d("insert",60433),mic:d("mic",60434),thumbsdownFilled:d("thumbsdown-filled",60435),thumbsupFilled:d("thumbsup-filled",60436),coffee:d("coffee",60437),snake:d("snake",60438),game:d("game",60439),vr:d("vr",60440),chip:d("chip",60441),piano:d("piano",60442),music:d("music",60443),micFilled:d("mic-filled",60444),repoFetch:d("repo-fetch",60445),copilot:d("copilot",60446),lightbulbSparkle:d("lightbulb-sparkle",60447),robot:d("robot",60448),sparkleFilled:d("sparkle-filled",60449),diffSingle:d("diff-single",60450),diffMultiple:d("diff-multiple",60451),surroundWith:d("surround-with",60452),share:d("share",60453),gitStash:d("git-stash",60454),gitStashApply:d("git-stash-apply",60455),gitStashPop:d("git-stash-pop",60456),vscode:d("vscode",60457),vscodeInsiders:d("vscode-insiders",60458),codeOss:d("code-oss",60459),runCoverage:d("run-coverage",60460),runAllCoverage:d("run-all-coverage",60461),coverage:d("coverage",60462),githubProject:d("github-project",60463),mapVertical:d("map-vertical",60464),foldVertical:d("fold-vertical",60464),mapVerticalFilled:d("map-vertical-filled",60465),foldVerticalFilled:d("fold-vertical-filled",60465)},Oh={dialogError:d("dialog-error","error"),dialogWarning:d("dialog-warning","warning"),dialogInfo:d("dialog-info","info"),dialogClose:d("dialog-close","close"),treeItemExpanded:d("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:d("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:d("tree-filter-on-type-off","list-selection"),treeFilterClear:d("tree-filter-clear","close"),treeItemLoading:d("tree-item-loading","loading"),menuSelection:d("menu-selection","check"),menuSubmenu:d("menu-submenu","chevron-right"),menuBarMore:d("menubar-more","more"),scrollbarButtonLeft:d("scrollbar-button-left","triangle-left"),scrollbarButtonRight:d("scrollbar-button-right","triangle-right"),scrollbarButtonUp:d("scrollbar-button-up","triangle-up"),scrollbarButtonDown:d("scrollbar-button-down","triangle-down"),toolBarMore:d("toolbar-more","more"),quickInputBack:d("quick-input-back","arrow-left"),dropDownButton:d("drop-down-button",60084),symbolCustomColor:d("symbol-customcolor",60252),exportIcon:d("export",60332),workspaceUnspecified:d("workspace-unspecified",60355),newLine:d("newline",60394),thumbsDownFilled:d("thumbsdown-filled",60435),thumbsUpFilled:d("thumbsup-filled",60436),gitFetch:d("git-fetch",60445),lightbulbSparkleAutofix:d("lightbulb-sparkle-autofix",60447),debugBreakpointPending:d("debug-breakpoint-pending",60377)},B={...Wh,...Oh};class Uh{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new qe,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})}register(e,n){return this._tokenizationSupports.set(e,n),this.handleChange([e]),Wn(()=>{this._tokenizationSupports.get(e)===n&&(this._tokenizationSupports.delete(e),this.handleChange([e]))})}get(e){return this._tokenizationSupports.get(e)||null}registerFactory(e,n){var r;(r=this._factories.get(e))===null||r===void 0||r.dispose();const i=new Vh(this,e,n);return this._factories.set(e,i),Wn(()=>{const s=this._factories.get(e);!s||s!==i||(this._factories.delete(e),s.dispose())})}async getOrCreate(e){const n=this.get(e);if(n)return n;const r=this._factories.get(e);return!r||r.isResolved?null:(await r.resolve(),this.get(e))}isResolved(e){if(this.get(e))return!0;const r=this._factories.get(e);return!!(!r||r.isResolved)}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}}class Vh extends rn{get isResolved(){return this._isResolved}constructor(e,n,r){super(),this._registry=e,this._languageId=n,this._factory=r,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}async _create(){const e=await this._factory.tokenizationSupport;this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))}}class Bh{constructor(e,n,r){this.offset=e,this.type=n,this.language=r,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}var Is;(function(t){const e=new Map;e.set(0,B.symbolMethod),e.set(1,B.symbolFunction),e.set(2,B.symbolConstructor),e.set(3,B.symbolField),e.set(4,B.symbolVariable),e.set(5,B.symbolClass),e.set(6,B.symbolStruct),e.set(7,B.symbolInterface),e.set(8,B.symbolModule),e.set(9,B.symbolProperty),e.set(10,B.symbolEvent),e.set(11,B.symbolOperator),e.set(12,B.symbolUnit),e.set(13,B.symbolValue),e.set(15,B.symbolEnum),e.set(14,B.symbolConstant),e.set(15,B.symbolEnum),e.set(16,B.symbolEnumMember),e.set(17,B.symbolKeyword),e.set(27,B.symbolSnippet),e.set(18,B.symbolText),e.set(19,B.symbolColor),e.set(20,B.symbolFile),e.set(21,B.symbolReference),e.set(22,B.symbolCustomColor),e.set(23,B.symbolFolder),e.set(24,B.symbolTypeParameter),e.set(25,B.account),e.set(26,B.issues);function n(s){let a=e.get(s);return a||(console.info("No codicon found for CompletionItemKind "+s),a=B.symbolProperty),a}t.toIcon=n;const r=new Map;r.set("method",0),r.set("function",1),r.set("constructor",2),r.set("field",3),r.set("variable",4),r.set("class",5),r.set("struct",6),r.set("interface",7),r.set("module",8),r.set("property",9),r.set("event",10),r.set("operator",11),r.set("unit",12),r.set("value",13),r.set("constant",14),r.set("enum",15),r.set("enum-member",16),r.set("enumMember",16),r.set("keyword",17),r.set("snippet",27),r.set("text",18),r.set("color",19),r.set("file",20),r.set("reference",21),r.set("customcolor",22),r.set("folder",23),r.set("type-parameter",24),r.set("typeParameter",24),r.set("account",25),r.set("issue",26);function i(s,a){let o=r.get(s);return typeof o>"u"&&!a&&(o=9),o}t.fromString=i})(Is||(Is={}));var Ts;(function(t){t[t.Automatic=0]="Automatic",t[t.Explicit=1]="Explicit"})(Ts||(Ts={}));var Ws;(function(t){t[t.Automatic=0]="Automatic",t[t.PasteAs=1]="PasteAs"})(Ws||(Ws={}));var Os;(function(t){t[t.Invoke=1]="Invoke",t[t.TriggerCharacter=2]="TriggerCharacter",t[t.ContentChange=3]="ContentChange"})(Os||(Os={}));var Us;(function(t){t[t.Text=0]="Text",t[t.Read=1]="Read",t[t.Write=2]="Write"})(Us||(Us={})),ae("Array","array"),ae("Boolean","boolean"),ae("Class","class"),ae("Constant","constant"),ae("Constructor","constructor"),ae("Enum","enumeration"),ae("EnumMember","enumeration member"),ae("Event","event"),ae("Field","field"),ae("File","file"),ae("Function","function"),ae("Interface","interface"),ae("Key","key"),ae("Method","method"),ae("Module","module"),ae("Namespace","namespace"),ae("Null","null"),ae("Number","number"),ae("Object","object"),ae("Operator","operator"),ae("Package","package"),ae("Property","property"),ae("String","string"),ae("Struct","struct"),ae("TypeParameter","type parameter"),ae("Variable","variable");var Vs;(function(t){const e=new Map;e.set(0,B.symbolFile),e.set(1,B.symbolModule),e.set(2,B.symbolNamespace),e.set(3,B.symbolPackage),e.set(4,B.symbolClass),e.set(5,B.symbolMethod),e.set(6,B.symbolProperty),e.set(7,B.symbolField),e.set(8,B.symbolConstructor),e.set(9,B.symbolEnum),e.set(10,B.symbolInterface),e.set(11,B.symbolFunction),e.set(12,B.symbolVariable),e.set(13,B.symbolConstant),e.set(14,B.symbolString),e.set(15,B.symbolNumber),e.set(16,B.symbolBoolean),e.set(17,B.symbolArray),e.set(18,B.symbolObject),e.set(19,B.symbolKey),e.set(20,B.symbolNull),e.set(21,B.symbolEnumMember),e.set(22,B.symbolStruct),e.set(23,B.symbolEvent),e.set(24,B.symbolOperator),e.set(25,B.symbolTypeParameter);function n(r){let i=e.get(r);return i||(console.info("No codicon found for SymbolKind "+r),i=B.symbolProperty),i}t.toIcon=n})(Vs||(Vs={}));var Bs;(function(t){t[t.AIGenerated=1]="AIGenerated"})(Bs||(Bs={}));var qs;(function(t){function e(n){return!n||typeof n!="object"?!1:typeof n.id=="string"&&typeof n.title=="string"}t.is=e})(qs||(qs={}));var js;(function(t){t[t.Type=1]="Type",t[t.Parameter=2]="Parameter"})(js||(js={})),new Uh;var $s;(function(t){t[t.Invoke=0]="Invoke",t[t.Automatic=1]="Automatic"})($s||($s={}));var Hs;(function(t){t[t.Unknown=0]="Unknown",t[t.Disabled=1]="Disabled",t[t.Enabled=2]="Enabled"})(Hs||(Hs={}));var Gs;(function(t){t[t.Invoke=1]="Invoke",t[t.Auto=2]="Auto"})(Gs||(Gs={}));var Js;(function(t){t[t.None=0]="None",t[t.KeepWhitespace=1]="KeepWhitespace",t[t.InsertAsSnippet=4]="InsertAsSnippet"})(Js||(Js={}));var Xs;(function(t){t[t.Method=0]="Method",t[t.Function=1]="Function",t[t.Constructor=2]="Constructor",t[t.Field=3]="Field",t[t.Variable=4]="Variable",t[t.Class=5]="Class",t[t.Struct=6]="Struct",t[t.Interface=7]="Interface",t[t.Module=8]="Module",t[t.Property=9]="Property",t[t.Event=10]="Event",t[t.Operator=11]="Operator",t[t.Unit=12]="Unit",t[t.Value=13]="Value",t[t.Constant=14]="Constant",t[t.Enum=15]="Enum",t[t.EnumMember=16]="EnumMember",t[t.Keyword=17]="Keyword",t[t.Text=18]="Text",t[t.Color=19]="Color",t[t.File=20]="File",t[t.Reference=21]="Reference",t[t.Customcolor=22]="Customcolor",t[t.Folder=23]="Folder",t[t.TypeParameter=24]="TypeParameter",t[t.User=25]="User",t[t.Issue=26]="Issue",t[t.Snippet=27]="Snippet"})(Xs||(Xs={}));var Ys;(function(t){t[t.Deprecated=1]="Deprecated"})(Ys||(Ys={}));var Ks;(function(t){t[t.Invoke=0]="Invoke",t[t.TriggerCharacter=1]="TriggerCharacter",t[t.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(Ks||(Ks={}));var Qs;(function(t){t[t.EXACT=0]="EXACT",t[t.ABOVE=1]="ABOVE",t[t.BELOW=2]="BELOW"})(Qs||(Qs={}));var Zs;(function(t){t[t.NotSet=0]="NotSet",t[t.ContentFlush=1]="ContentFlush",t[t.RecoverFromMarkers=2]="RecoverFromMarkers",t[t.Explicit=3]="Explicit",t[t.Paste=4]="Paste",t[t.Undo=5]="Undo",t[t.Redo=6]="Redo"})(Zs||(Zs={}));var ea;(function(t){t[t.LF=1]="LF",t[t.CRLF=2]="CRLF"})(ea||(ea={}));var ta;(function(t){t[t.Text=0]="Text",t[t.Read=1]="Read",t[t.Write=2]="Write"})(ta||(ta={}));var na;(function(t){t[t.None=0]="None",t[t.Keep=1]="Keep",t[t.Brackets=2]="Brackets",t[t.Advanced=3]="Advanced",t[t.Full=4]="Full"})(na||(na={}));var ra;(function(t){t[t.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",t[t.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",t[t.accessibilitySupport=2]="accessibilitySupport",t[t.accessibilityPageSize=3]="accessibilityPageSize",t[t.ariaLabel=4]="ariaLabel",t[t.ariaRequired=5]="ariaRequired",t[t.autoClosingBrackets=6]="autoClosingBrackets",t[t.autoClosingComments=7]="autoClosingComments",t[t.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",t[t.autoClosingDelete=9]="autoClosingDelete",t[t.autoClosingOvertype=10]="autoClosingOvertype",t[t.autoClosingQuotes=11]="autoClosingQuotes",t[t.autoIndent=12]="autoIndent",t[t.automaticLayout=13]="automaticLayout",t[t.autoSurround=14]="autoSurround",t[t.bracketPairColorization=15]="bracketPairColorization",t[t.guides=16]="guides",t[t.codeLens=17]="codeLens",t[t.codeLensFontFamily=18]="codeLensFontFamily",t[t.codeLensFontSize=19]="codeLensFontSize",t[t.colorDecorators=20]="colorDecorators",t[t.colorDecoratorsLimit=21]="colorDecoratorsLimit",t[t.columnSelection=22]="columnSelection",t[t.comments=23]="comments",t[t.contextmenu=24]="contextmenu",t[t.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",t[t.cursorBlinking=26]="cursorBlinking",t[t.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",t[t.cursorStyle=28]="cursorStyle",t[t.cursorSurroundingLines=29]="cursorSurroundingLines",t[t.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",t[t.cursorWidth=31]="cursorWidth",t[t.disableLayerHinting=32]="disableLayerHinting",t[t.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",t[t.domReadOnly=34]="domReadOnly",t[t.dragAndDrop=35]="dragAndDrop",t[t.dropIntoEditor=36]="dropIntoEditor",t[t.emptySelectionClipboard=37]="emptySelectionClipboard",t[t.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",t[t.extraEditorClassName=39]="extraEditorClassName",t[t.fastScrollSensitivity=40]="fastScrollSensitivity",t[t.find=41]="find",t[t.fixedOverflowWidgets=42]="fixedOverflowWidgets",t[t.folding=43]="folding",t[t.foldingStrategy=44]="foldingStrategy",t[t.foldingHighlight=45]="foldingHighlight",t[t.foldingImportsByDefault=46]="foldingImportsByDefault",t[t.foldingMaximumRegions=47]="foldingMaximumRegions",t[t.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",t[t.fontFamily=49]="fontFamily",t[t.fontInfo=50]="fontInfo",t[t.fontLigatures=51]="fontLigatures",t[t.fontSize=52]="fontSize",t[t.fontWeight=53]="fontWeight",t[t.fontVariations=54]="fontVariations",t[t.formatOnPaste=55]="formatOnPaste",t[t.formatOnType=56]="formatOnType",t[t.glyphMargin=57]="glyphMargin",t[t.gotoLocation=58]="gotoLocation",t[t.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",t[t.hover=60]="hover",t[t.inDiffEditor=61]="inDiffEditor",t[t.inlineSuggest=62]="inlineSuggest",t[t.inlineEdit=63]="inlineEdit",t[t.letterSpacing=64]="letterSpacing",t[t.lightbulb=65]="lightbulb",t[t.lineDecorationsWidth=66]="lineDecorationsWidth",t[t.lineHeight=67]="lineHeight",t[t.lineNumbers=68]="lineNumbers",t[t.lineNumbersMinChars=69]="lineNumbersMinChars",t[t.linkedEditing=70]="linkedEditing",t[t.links=71]="links",t[t.matchBrackets=72]="matchBrackets",t[t.minimap=73]="minimap",t[t.mouseStyle=74]="mouseStyle",t[t.mouseWheelScrollSensitivity=75]="mouseWheelScrollSensitivity",t[t.mouseWheelZoom=76]="mouseWheelZoom",t[t.multiCursorMergeOverlapping=77]="multiCursorMergeOverlapping",t[t.multiCursorModifier=78]="multiCursorModifier",t[t.multiCursorPaste=79]="multiCursorPaste",t[t.multiCursorLimit=80]="multiCursorLimit",t[t.occurrencesHighlight=81]="occurrencesHighlight",t[t.overviewRulerBorder=82]="overviewRulerBorder",t[t.overviewRulerLanes=83]="overviewRulerLanes",t[t.padding=84]="padding",t[t.pasteAs=85]="pasteAs",t[t.parameterHints=86]="parameterHints",t[t.peekWidgetDefaultFocus=87]="peekWidgetDefaultFocus",t[t.definitionLinkOpensInPeek=88]="definitionLinkOpensInPeek",t[t.quickSuggestions=89]="quickSuggestions",t[t.quickSuggestionsDelay=90]="quickSuggestionsDelay",t[t.readOnly=91]="readOnly",t[t.readOnlyMessage=92]="readOnlyMessage",t[t.renameOnType=93]="renameOnType",t[t.renderControlCharacters=94]="renderControlCharacters",t[t.renderFinalNewline=95]="renderFinalNewline",t[t.renderLineHighlight=96]="renderLineHighlight",t[t.renderLineHighlightOnlyWhenFocus=97]="renderLineHighlightOnlyWhenFocus",t[t.renderValidationDecorations=98]="renderValidationDecorations",t[t.renderWhitespace=99]="renderWhitespace",t[t.revealHorizontalRightPadding=100]="revealHorizontalRightPadding",t[t.roundedSelection=101]="roundedSelection",t[t.rulers=102]="rulers",t[t.scrollbar=103]="scrollbar",t[t.scrollBeyondLastColumn=104]="scrollBeyondLastColumn",t[t.scrollBeyondLastLine=105]="scrollBeyondLastLine",t[t.scrollPredominantAxis=106]="scrollPredominantAxis",t[t.selectionClipboard=107]="selectionClipboard",t[t.selectionHighlight=108]="selectionHighlight",t[t.selectOnLineNumbers=109]="selectOnLineNumbers",t[t.showFoldingControls=110]="showFoldingControls",t[t.showUnused=111]="showUnused",t[t.snippetSuggestions=112]="snippetSuggestions",t[t.smartSelect=113]="smartSelect",t[t.smoothScrolling=114]="smoothScrolling",t[t.stickyScroll=115]="stickyScroll",t[t.stickyTabStops=116]="stickyTabStops",t[t.stopRenderingLineAfter=117]="stopRenderingLineAfter",t[t.suggest=118]="suggest",t[t.suggestFontSize=119]="suggestFontSize",t[t.suggestLineHeight=120]="suggestLineHeight",t[t.suggestOnTriggerCharacters=121]="suggestOnTriggerCharacters",t[t.suggestSelection=122]="suggestSelection",t[t.tabCompletion=123]="tabCompletion",t[t.tabIndex=124]="tabIndex",t[t.unicodeHighlighting=125]="unicodeHighlighting",t[t.unusualLineTerminators=126]="unusualLineTerminators",t[t.useShadowDOM=127]="useShadowDOM",t[t.useTabStops=128]="useTabStops",t[t.wordBreak=129]="wordBreak",t[t.wordSegmenterLocales=130]="wordSegmenterLocales",t[t.wordSeparators=131]="wordSeparators",t[t.wordWrap=132]="wordWrap",t[t.wordWrapBreakAfterCharacters=133]="wordWrapBreakAfterCharacters",t[t.wordWrapBreakBeforeCharacters=134]="wordWrapBreakBeforeCharacters",t[t.wordWrapColumn=135]="wordWrapColumn",t[t.wordWrapOverride1=136]="wordWrapOverride1",t[t.wordWrapOverride2=137]="wordWrapOverride2",t[t.wrappingIndent=138]="wrappingIndent",t[t.wrappingStrategy=139]="wrappingStrategy",t[t.showDeprecated=140]="showDeprecated",t[t.inlayHints=141]="inlayHints",t[t.editorClassName=142]="editorClassName",t[t.pixelRatio=143]="pixelRatio",t[t.tabFocusMode=144]="tabFocusMode",t[t.layoutInfo=145]="layoutInfo",t[t.wrappingInfo=146]="wrappingInfo",t[t.defaultColorDecorators=147]="defaultColorDecorators",t[t.colorDecoratorsActivatedOn=148]="colorDecoratorsActivatedOn",t[t.inlineCompletionsAccessibilityVerbose=149]="inlineCompletionsAccessibilityVerbose"})(ra||(ra={}));var ia;(function(t){t[t.TextDefined=0]="TextDefined",t[t.LF=1]="LF",t[t.CRLF=2]="CRLF"})(ia||(ia={}));var sa;(function(t){t[t.LF=0]="LF",t[t.CRLF=1]="CRLF"})(sa||(sa={}));var aa;(function(t){t[t.Left=1]="Left",t[t.Center=2]="Center",t[t.Right=3]="Right"})(aa||(aa={}));var oa;(function(t){t[t.None=0]="None",t[t.Indent=1]="Indent",t[t.IndentOutdent=2]="IndentOutdent",t[t.Outdent=3]="Outdent"})(oa||(oa={}));var la;(function(t){t[t.Both=0]="Both",t[t.Right=1]="Right",t[t.Left=2]="Left",t[t.None=3]="None"})(la||(la={}));var ca;(function(t){t[t.Type=1]="Type",t[t.Parameter=2]="Parameter"})(ca||(ca={}));var ha;(function(t){t[t.Automatic=0]="Automatic",t[t.Explicit=1]="Explicit"})(ha||(ha={}));var da;(function(t){t[t.Invoke=0]="Invoke",t[t.Automatic=1]="Automatic"})(da||(da={}));var Jr;(function(t){t[t.DependsOnKbLayout=-1]="DependsOnKbLayout",t[t.Unknown=0]="Unknown",t[t.Backspace=1]="Backspace",t[t.Tab=2]="Tab",t[t.Enter=3]="Enter",t[t.Shift=4]="Shift",t[t.Ctrl=5]="Ctrl",t[t.Alt=6]="Alt",t[t.PauseBreak=7]="PauseBreak",t[t.CapsLock=8]="CapsLock",t[t.Escape=9]="Escape",t[t.Space=10]="Space",t[t.PageUp=11]="PageUp",t[t.PageDown=12]="PageDown",t[t.End=13]="End",t[t.Home=14]="Home",t[t.LeftArrow=15]="LeftArrow",t[t.UpArrow=16]="UpArrow",t[t.RightArrow=17]="RightArrow",t[t.DownArrow=18]="DownArrow",t[t.Insert=19]="Insert",t[t.Delete=20]="Delete",t[t.Digit0=21]="Digit0",t[t.Digit1=22]="Digit1",t[t.Digit2=23]="Digit2",t[t.Digit3=24]="Digit3",t[t.Digit4=25]="Digit4",t[t.Digit5=26]="Digit5",t[t.Digit6=27]="Digit6",t[t.Digit7=28]="Digit7",t[t.Digit8=29]="Digit8",t[t.Digit9=30]="Digit9",t[t.KeyA=31]="KeyA",t[t.KeyB=32]="KeyB",t[t.KeyC=33]="KeyC",t[t.KeyD=34]="KeyD",t[t.KeyE=35]="KeyE",t[t.KeyF=36]="KeyF",t[t.KeyG=37]="KeyG",t[t.KeyH=38]="KeyH",t[t.KeyI=39]="KeyI",t[t.KeyJ=40]="KeyJ",t[t.KeyK=41]="KeyK",t[t.KeyL=42]="KeyL",t[t.KeyM=43]="KeyM",t[t.KeyN=44]="KeyN",t[t.KeyO=45]="KeyO",t[t.KeyP=46]="KeyP",t[t.KeyQ=47]="KeyQ",t[t.KeyR=48]="KeyR",t[t.KeyS=49]="KeyS",t[t.KeyT=50]="KeyT",t[t.KeyU=51]="KeyU",t[t.KeyV=52]="KeyV",t[t.KeyW=53]="KeyW",t[t.KeyX=54]="KeyX",t[t.KeyY=55]="KeyY",t[t.KeyZ=56]="KeyZ",t[t.Meta=57]="Meta",t[t.ContextMenu=58]="ContextMenu",t[t.F1=59]="F1",t[t.F2=60]="F2",t[t.F3=61]="F3",t[t.F4=62]="F4",t[t.F5=63]="F5",t[t.F6=64]="F6",t[t.F7=65]="F7",t[t.F8=66]="F8",t[t.F9=67]="F9",t[t.F10=68]="F10",t[t.F11=69]="F11",t[t.F12=70]="F12",t[t.F13=71]="F13",t[t.F14=72]="F14",t[t.F15=73]="F15",t[t.F16=74]="F16",t[t.F17=75]="F17",t[t.F18=76]="F18",t[t.F19=77]="F19",t[t.F20=78]="F20",t[t.F21=79]="F21",t[t.F22=80]="F22",t[t.F23=81]="F23",t[t.F24=82]="F24",t[t.NumLock=83]="NumLock",t[t.ScrollLock=84]="ScrollLock",t[t.Semicolon=85]="Semicolon",t[t.Equal=86]="Equal",t[t.Comma=87]="Comma",t[t.Minus=88]="Minus",t[t.Period=89]="Period",t[t.Slash=90]="Slash",t[t.Backquote=91]="Backquote",t[t.BracketLeft=92]="BracketLeft",t[t.Backslash=93]="Backslash",t[t.BracketRight=94]="BracketRight",t[t.Quote=95]="Quote",t[t.OEM_8=96]="OEM_8",t[t.IntlBackslash=97]="IntlBackslash",t[t.Numpad0=98]="Numpad0",t[t.Numpad1=99]="Numpad1",t[t.Numpad2=100]="Numpad2",t[t.Numpad3=101]="Numpad3",t[t.Numpad4=102]="Numpad4",t[t.Numpad5=103]="Numpad5",t[t.Numpad6=104]="Numpad6",t[t.Numpad7=105]="Numpad7",t[t.Numpad8=106]="Numpad8",t[t.Numpad9=107]="Numpad9",t[t.NumpadMultiply=108]="NumpadMultiply",t[t.NumpadAdd=109]="NumpadAdd",t[t.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",t[t.NumpadSubtract=111]="NumpadSubtract",t[t.NumpadDecimal=112]="NumpadDecimal",t[t.NumpadDivide=113]="NumpadDivide",t[t.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",t[t.ABNT_C1=115]="ABNT_C1",t[t.ABNT_C2=116]="ABNT_C2",t[t.AudioVolumeMute=117]="AudioVolumeMute",t[t.AudioVolumeUp=118]="AudioVolumeUp",t[t.AudioVolumeDown=119]="AudioVolumeDown",t[t.BrowserSearch=120]="BrowserSearch",t[t.BrowserHome=121]="BrowserHome",t[t.BrowserBack=122]="BrowserBack",t[t.BrowserForward=123]="BrowserForward",t[t.MediaTrackNext=124]="MediaTrackNext",t[t.MediaTrackPrevious=125]="MediaTrackPrevious",t[t.MediaStop=126]="MediaStop",t[t.MediaPlayPause=127]="MediaPlayPause",t[t.LaunchMediaPlayer=128]="LaunchMediaPlayer",t[t.LaunchMail=129]="LaunchMail",t[t.LaunchApp2=130]="LaunchApp2",t[t.Clear=131]="Clear",t[t.MAX_VALUE=132]="MAX_VALUE"})(Jr||(Jr={}));var Xr;(function(t){t[t.Hint=1]="Hint",t[t.Info=2]="Info",t[t.Warning=4]="Warning",t[t.Error=8]="Error"})(Xr||(Xr={}));var Yr;(function(t){t[t.Unnecessary=1]="Unnecessary",t[t.Deprecated=2]="Deprecated"})(Yr||(Yr={}));var ua;(function(t){t[t.Inline=1]="Inline",t[t.Gutter=2]="Gutter"})(ua||(ua={}));var pa;(function(t){t[t.Normal=1]="Normal",t[t.Underlined=2]="Underlined"})(pa||(pa={}));var fa;(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.TEXTAREA=1]="TEXTAREA",t[t.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",t[t.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",t[t.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",t[t.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",t[t.CONTENT_TEXT=6]="CONTENT_TEXT",t[t.CONTENT_EMPTY=7]="CONTENT_EMPTY",t[t.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",t[t.CONTENT_WIDGET=9]="CONTENT_WIDGET",t[t.OVERVIEW_RULER=10]="OVERVIEW_RULER",t[t.SCROLLBAR=11]="SCROLLBAR",t[t.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",t[t.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(fa||(fa={}));var ma;(function(t){t[t.AIGenerated=1]="AIGenerated"})(ma||(ma={}));var ga;(function(t){t[t.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",t[t.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",t[t.TOP_CENTER=2]="TOP_CENTER"})(ga||(ga={}));var ba;(function(t){t[t.Left=1]="Left",t[t.Center=2]="Center",t[t.Right=4]="Right",t[t.Full=7]="Full"})(ba||(ba={}));var va;(function(t){t[t.Word=0]="Word",t[t.Line=1]="Line",t[t.Suggest=2]="Suggest"})(va||(va={}));var ya;(function(t){t[t.Left=0]="Left",t[t.Right=1]="Right",t[t.None=2]="None",t[t.LeftOfInjectedText=3]="LeftOfInjectedText",t[t.RightOfInjectedText=4]="RightOfInjectedText"})(ya||(ya={}));var wa;(function(t){t[t.Off=0]="Off",t[t.On=1]="On",t[t.Relative=2]="Relative",t[t.Interval=3]="Interval",t[t.Custom=4]="Custom"})(wa||(wa={}));var xa;(function(t){t[t.None=0]="None",t[t.Text=1]="Text",t[t.Blocks=2]="Blocks"})(xa||(xa={}));var Sa;(function(t){t[t.Smooth=0]="Smooth",t[t.Immediate=1]="Immediate"})(Sa||(Sa={}));var Ca;(function(t){t[t.Auto=1]="Auto",t[t.Hidden=2]="Hidden",t[t.Visible=3]="Visible"})(Ca||(Ca={}));var Kr;(function(t){t[t.LTR=0]="LTR",t[t.RTL=1]="RTL"})(Kr||(Kr={}));var ka;(function(t){t.Off="off",t.OnCode="onCode",t.On="on"})(ka||(ka={}));var _a;(function(t){t[t.Invoke=1]="Invoke",t[t.TriggerCharacter=2]="TriggerCharacter",t[t.ContentChange=3]="ContentChange"})(_a||(_a={}));var Ea;(function(t){t[t.File=0]="File",t[t.Module=1]="Module",t[t.Namespace=2]="Namespace",t[t.Package=3]="Package",t[t.Class=4]="Class",t[t.Method=5]="Method",t[t.Property=6]="Property",t[t.Field=7]="Field",t[t.Constructor=8]="Constructor",t[t.Enum=9]="Enum",t[t.Interface=10]="Interface",t[t.Function=11]="Function",t[t.Variable=12]="Variable",t[t.Constant=13]="Constant",t[t.String=14]="String",t[t.Number=15]="Number",t[t.Boolean=16]="Boolean",t[t.Array=17]="Array",t[t.Object=18]="Object",t[t.Key=19]="Key",t[t.Null=20]="Null",t[t.EnumMember=21]="EnumMember",t[t.Struct=22]="Struct",t[t.Event=23]="Event",t[t.Operator=24]="Operator",t[t.TypeParameter=25]="TypeParameter"})(Ea||(Ea={}));var Ra;(function(t){t[t.Deprecated=1]="Deprecated"})(Ra||(Ra={}));var Fa;(function(t){t[t.Hidden=0]="Hidden",t[t.Blink=1]="Blink",t[t.Smooth=2]="Smooth",t[t.Phase=3]="Phase",t[t.Expand=4]="Expand",t[t.Solid=5]="Solid"})(Fa||(Fa={}));var Da;(function(t){t[t.Line=1]="Line",t[t.Block=2]="Block",t[t.Underline=3]="Underline",t[t.LineThin=4]="LineThin",t[t.BlockOutline=5]="BlockOutline",t[t.UnderlineThin=6]="UnderlineThin"})(Da||(Da={}));var Aa;(function(t){t[t.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",t[t.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",t[t.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",t[t.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(Aa||(Aa={}));var Na;(function(t){t[t.None=0]="None",t[t.Same=1]="Same",t[t.Indent=2]="Indent",t[t.DeepIndent=3]="DeepIndent"})(Na||(Na={}));class on{static chord(e,n){return Th(e,n)}}on.CtrlCmd=2048,on.Shift=1024,on.Alt=512,on.WinCtrl=256;function qh(){return{editor:void 0,languages:void 0,CancellationTokenSource:zh,Emitter:qe,KeyCode:Jr,KeyMod:on,Position:Ye,Range:ve,Selection:ze,SelectionDirection:Kr,MarkerSeverity:Xr,MarkerTag:Yr,Uri:Wr,Token:Bh}}var Ma;class jh{constructor(){this[Ma]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){var e;return(e=this._head)===null||e===void 0?void 0:e.value}get last(){var e;return(e=this._tail)===null||e===void 0?void 0:e.value}has(e){return this._map.has(e)}get(e,n=0){const r=this._map.get(e);if(r)return n!==0&&this.touch(r,n),r.value}set(e,n,r=0){let i=this._map.get(e);if(i)i.value=n,r!==0&&this.touch(i,r);else{switch(i={key:e,value:n,next:void 0,previous:void 0},r){case 0:this.addItemLast(i);break;case 1:this.addItemFirst(i);break;case 2:this.addItemLast(i);break;default:this.addItemLast(i);break}this._map.set(e,i),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const n=this._map.get(e);if(n)return this._map.delete(e),this.removeItem(n),this._size--,n.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,n){const r=this._state;let i=this._head;for(;i;){if(n?e.bind(n)(i.value,i.key,this):e(i.value,i.key,this),this._state!==r)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){const e=this,n=this._state;let r=this._head;const i={[Symbol.iterator](){return i},next(){if(e._state!==n)throw new Error("LinkedMap got modified during iteration.");if(r){const s={value:r.key,done:!1};return r=r.next,s}else return{value:void 0,done:!0}}};return i}values(){const e=this,n=this._state;let r=this._head;const i={[Symbol.iterator](){return i},next(){if(e._state!==n)throw new Error("LinkedMap got modified during iteration.");if(r){const s={value:r.value,done:!1};return r=r.next,s}else return{value:void 0,done:!0}}};return i}entries(){const e=this,n=this._state;let r=this._head;const i={[Symbol.iterator](){return i},next(){if(e._state!==n)throw new Error("LinkedMap got modified during iteration.");if(r){const s={value:[r.key,r.value],done:!1};return r=r.next,s}else return{value:void 0,done:!0}}};return i}[(Ma=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let n=this._head,r=this.size;for(;n&&r>e;)this._map.delete(n.key),n=n.next,r--;this._head=n,this._size=r,n&&(n.previous=void 0),this._state++}addItemFirst(e){if(!this._head&&!this._tail)this._tail=e;else if(this._head)e.next=this._head,this._head.previous=e;else throw new Error("Invalid list");this._head=e,this._state++}addItemLast(e){if(!this._head&&!this._tail)this._head=e;else if(this._tail)e.previous=this._tail,this._tail.next=e;else throw new Error("Invalid list");this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const n=e.next,r=e.previous;if(!n||!r)throw new Error("Invalid list");n.previous=r,r.next=n}e.next=void 0,e.previous=void 0,this._state++}touch(e,n){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(n!==1&&n!==2)){if(n===1){if(e===this._head)return;const r=e.next,i=e.previous;e===this._tail?(i.next=void 0,this._tail=i):(r.previous=i,i.next=r),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(n===2){if(e===this._tail)return;const r=e.next,i=e.previous;e===this._head?(r.previous=void 0,this._head=r):(r.previous=i,i.next=r),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){const e=[];return this.forEach((n,r)=>{e.push([r,n])}),e}fromJSON(e){this.clear();for(const[n,r]of e)this.set(n,r)}}class $h extends jh{constructor(e,n=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,n),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get(e,n=2){return super.get(e,n)}peek(e){return super.get(e,0)}set(e,n){return super.set(e,n,2),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}class Hh{constructor(){this.map=new Map}add(e,n){let r=this.map.get(e);r||(r=new Set,this.map.set(e,r)),r.add(n)}delete(e,n){const r=this.map.get(e);r&&(r.delete(n),r.size===0&&this.map.delete(e))}forEach(e,n){const r=this.map.get(e);r&&r.forEach(n)}get(e){const n=this.map.get(e);return n||new Set}}new $h(10);var za;(function(t){t[t.Left=1]="Left",t[t.Center=2]="Center",t[t.Right=4]="Right",t[t.Full=7]="Full"})(za||(za={}));var La;(function(t){t[t.Left=1]="Left",t[t.Center=2]="Center",t[t.Right=3]="Right"})(La||(La={}));var Pa;(function(t){t[t.Both=0]="Both",t[t.Right=1]="Right",t[t.Left=2]="Left",t[t.None=3]="None"})(Pa||(Pa={}));function Gh(t,e,n,r,i){if(r===0)return!0;const s=e.charCodeAt(r-1);if(t.get(s)!==0||s===13||s===10)return!0;if(i>0){const a=e.charCodeAt(r);if(t.get(a)!==0)return!0}return!1}function Jh(t,e,n,r,i){if(r+i===n)return!0;const s=e.charCodeAt(r+i);if(t.get(s)!==0||s===13||s===10)return!0;if(i>0){const a=e.charCodeAt(r+i-1);if(t.get(a)!==0)return!0}return!1}function Xh(t,e,n,r,i){return Gh(t,e,n,r,i)&&Jh(t,e,n,r,i)}class Yh{constructor(e,n){this._wordSeparators=e,this._searchRegex=n,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(e){const n=e.length;let r;do{if(this._prevMatchStartIndex+this._prevMatchLength===n||(r=this._searchRegex.exec(e),!r))return null;const i=r.index,s=r[0].length;if(i===this._prevMatchStartIndex&&s===this._prevMatchLength){if(s===0){Uc(e,n,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=i,this._prevMatchLength=s,!this._wordSeparators||Xh(this._wordSeparators,e,n,i,s))return r}while(r);return null}}function Kh(t,e="Unreachable"){throw new Error(e)}function Yn(t){if(!t()){debugger;t(),ls(new tt("Assertion Failed"))}}function Ia(t,e){let n=0;for(;n<t.length-1;){const r=t[n],i=t[n+1];if(!e(r,i))return!1;n++}return!0}class Qh{static computeUnicodeHighlights(e,n,r){const i=r?r.startLineNumber:1,s=r?r.endLineNumber:e.getLineCount(),a=new Ta(n),o=a.getCandidateCodePoints();let l;o==="allNonBasicAscii"?l=new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):l=new RegExp(`${Zh(Array.from(o))}`,"g");const c=new Yh(null,l),h=[];let u=!1,f,m=0,g=0,b=0;e:for(let y=i,C=s;y<=C;y++){const k=e.getLineContent(y),w=k.length;c.reset(0);do if(f=c.next(k),f){let F=f.index,_=f.index+f[0].length;if(F>0){const J=k.charCodeAt(F-1);Pr(J)&&F--}if(_+1<w){const J=k.charCodeAt(_-1);Pr(J)&&_++}const P=k.substring(F,_);let W=Vr(F+1,As,k,0);W&&W.endColumn<=F+1&&(W=null);const T=a.shouldHighlightNonBasicASCII(P,W?W.word:null);if(T!==0){if(T===3?m++:T===2?g++:T===1?b++:Kh(),h.length>=1e3){u=!0;break e}h.push(new ve(y,F+1,y,_+1))}}while(f)}return{ranges:h,hasMore:u,ambiguousCharacterCount:m,invisibleCharacterCount:g,nonBasicAsciiCharacterCount:b}}static computeUnicodeHighlightReason(e,n){const r=new Ta(n);switch(r.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{const s=e.codePointAt(0),a=r.ambiguousCharacters.getPrimaryConfusable(s),o=St.getLocales().filter(l=>!St.getInstance(new Set([...n.allowedLocales,l])).isAmbiguous(s));return{kind:0,confusableWith:String.fromCodePoint(a),notAmbiguousInLocales:o}}case 1:return{kind:2}}}}function Zh(t,e){return`[${Lc(t.map(r=>String.fromCodePoint(r)).join(""))}]`}class Ta{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=St.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const e=new Set;if(this.options.invisibleCharacters)for(const n of ht.codePoints)Wa(String.fromCodePoint(n))||e.add(n);if(this.options.ambiguousCharacters)for(const n of this.ambiguousCharacters.getConfusableCodePoints())e.add(n);for(const n of this.allowedCodePoints)e.delete(n);return e}shouldHighlightNonBasicASCII(e,n){const r=e.codePointAt(0);if(this.allowedCodePoints.has(r))return 0;if(this.options.nonBasicASCII)return 1;let i=!1,s=!1;if(n)for(const a of n){const o=a.codePointAt(0),l=Bc(a);i=i||l,!l&&!this.ambiguousCharacters.isAmbiguous(o)&&!ht.isInvisibleCharacter(o)&&(s=!0)}return!i&&s?0:this.options.invisibleCharacters&&!Wa(e)&&ht.isInvisibleCharacter(r)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(r)?3:0}}function Wa(t){return t===" "||t===`
|
|
8
|
+
`||t===" "}class Kn{constructor(e,n,r){this.changes=e,this.moves=n,this.hitTimeout=r}}class ed{constructor(e,n){this.lineRangeMapping=e,this.changes=n}}class Q{static addRange(e,n){let r=0;for(;r<n.length&&n[r].endExclusive<e.start;)r++;let i=r;for(;i<n.length&&n[i].start<=e.endExclusive;)i++;if(r===i)n.splice(r,0,e);else{const s=Math.min(e.start,n[r].start),a=Math.max(e.endExclusive,n[i-1].endExclusive);n.splice(r,i-r,new Q(s,a))}}static tryCreate(e,n){if(!(e>n))return new Q(e,n)}static ofLength(e){return new Q(0,e)}static ofStartAndLength(e,n){return new Q(e,e+n)}constructor(e,n){if(this.start=e,this.endExclusive=n,e>n)throw new tt(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(e){return new Q(this.start+e,this.endExclusive+e)}deltaStart(e){return new Q(this.start+e,this.endExclusive)}deltaEnd(e){return new Q(this.start,this.endExclusive+e)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}contains(e){return this.start<=e&&e<this.endExclusive}join(e){return new Q(Math.min(this.start,e.start),Math.max(this.endExclusive,e.endExclusive))}intersect(e){const n=Math.max(this.start,e.start),r=Math.min(this.endExclusive,e.endExclusive);if(n<=r)return new Q(n,r)}intersects(e){const n=Math.max(this.start,e.start),r=Math.min(this.endExclusive,e.endExclusive);return n<r}isBefore(e){return this.endExclusive<=e.start}isAfter(e){return this.start>=e.endExclusive}slice(e){return e.slice(this.start,this.endExclusive)}substring(e){return e.substring(this.start,this.endExclusive)}clip(e){if(this.isEmpty)throw new tt(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,e))}clipCyclic(e){if(this.isEmpty)throw new tt(`Invalid clipping range: ${this.toString()}`);return e<this.start?this.endExclusive-(this.start-e)%this.length:e>=this.endExclusive?this.start+(e-this.start)%this.length:e}forEach(e){for(let n=this.start;n<this.endExclusive;n++)e(n)}}function Vt(t,e){const n=ln(t,e);return n===-1?void 0:t[n]}function ln(t,e,n=0,r=t.length){let i=n,s=r;for(;i<s;){const a=Math.floor((i+s)/2);e(t[a])?i=a+1:s=a}return i-1}function td(t,e){const n=Qr(t,e);return n===t.length?void 0:t[n]}function Qr(t,e,n=0,r=t.length){let i=n,s=r;for(;i<s;){const a=Math.floor((i+s)/2);e(t[a])?s=a:i=a+1}return i}class cn{constructor(e){this._array=e,this._findLastMonotonousLastIdx=0}findLastMonotonous(e){if(cn.assertInvariants){if(this._prevFindLastPredicate){for(const r of this._array)if(this._prevFindLastPredicate(r)&&!e(r))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.")}this._prevFindLastPredicate=e}const n=ln(this._array,e,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=n+1,n===-1?void 0:this._array[n]}}cn.assertInvariants=!1;class K{static fromRangeInclusive(e){return new K(e.startLineNumber,e.endLineNumber+1)}static joinMany(e){if(e.length===0)return[];let n=new Ke(e[0].slice());for(let r=1;r<e.length;r++)n=n.getUnion(new Ke(e[r].slice()));return n.ranges}static join(e){if(e.length===0)throw new tt("lineRanges cannot be empty");let n=e[0].startLineNumber,r=e[0].endLineNumberExclusive;for(let i=1;i<e.length;i++)n=Math.min(n,e[i].startLineNumber),r=Math.max(r,e[i].endLineNumberExclusive);return new K(n,r)}static ofLength(e,n){return new K(e,e+n)}static deserialize(e){return new K(e[0],e[1])}constructor(e,n){if(e>n)throw new tt(`startLineNumber ${e} cannot be after endLineNumberExclusive ${n}`);this.startLineNumber=e,this.endLineNumberExclusive=n}contains(e){return this.startLineNumber<=e&&e<this.endLineNumberExclusive}get isEmpty(){return this.startLineNumber===this.endLineNumberExclusive}delta(e){return new K(this.startLineNumber+e,this.endLineNumberExclusive+e)}deltaLength(e){return new K(this.startLineNumber,this.endLineNumberExclusive+e)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(e){return new K(Math.min(this.startLineNumber,e.startLineNumber),Math.max(this.endLineNumberExclusive,e.endLineNumberExclusive))}toString(){return`[${this.startLineNumber},${this.endLineNumberExclusive})`}intersect(e){const n=Math.max(this.startLineNumber,e.startLineNumber),r=Math.min(this.endLineNumberExclusive,e.endLineNumberExclusive);if(n<=r)return new K(n,r)}intersectsStrict(e){return this.startLineNumber<e.endLineNumberExclusive&&e.startLineNumber<this.endLineNumberExclusive}overlapOrTouch(e){return this.startLineNumber<=e.endLineNumberExclusive&&e.startLineNumber<=this.endLineNumberExclusive}equals(e){return this.startLineNumber===e.startLineNumber&&this.endLineNumberExclusive===e.endLineNumberExclusive}toInclusiveRange(){return this.isEmpty?null:new ve(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new ve(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(e){const n=[];for(let r=this.startLineNumber;r<this.endLineNumberExclusive;r++)n.push(e(r));return n}forEach(e){for(let n=this.startLineNumber;n<this.endLineNumberExclusive;n++)e(n)}serialize(){return[this.startLineNumber,this.endLineNumberExclusive]}includes(e){return this.startLineNumber<=e&&e<this.endLineNumberExclusive}toOffsetRange(){return new Q(this.startLineNumber-1,this.endLineNumberExclusive-1)}}class Ke{constructor(e=[]){this._normalizedRanges=e}get ranges(){return this._normalizedRanges}addRange(e){if(e.length===0)return;const n=Qr(this._normalizedRanges,i=>i.endLineNumberExclusive>=e.startLineNumber),r=ln(this._normalizedRanges,i=>i.startLineNumber<=e.endLineNumberExclusive)+1;if(n===r)this._normalizedRanges.splice(n,0,e);else if(n===r-1){const i=this._normalizedRanges[n];this._normalizedRanges[n]=i.join(e)}else{const i=this._normalizedRanges[n].join(this._normalizedRanges[r-1]).join(e);this._normalizedRanges.splice(n,r-n,i)}}contains(e){const n=Vt(this._normalizedRanges,r=>r.startLineNumber<=e);return!!n&&n.endLineNumberExclusive>e}intersects(e){const n=Vt(this._normalizedRanges,r=>r.startLineNumber<e.endLineNumberExclusive);return!!n&&n.endLineNumberExclusive>e.startLineNumber}getUnion(e){if(this._normalizedRanges.length===0)return e;if(e._normalizedRanges.length===0)return this;const n=[];let r=0,i=0,s=null;for(;r<this._normalizedRanges.length||i<e._normalizedRanges.length;){let a=null;if(r<this._normalizedRanges.length&&i<e._normalizedRanges.length){const o=this._normalizedRanges[r],l=e._normalizedRanges[i];o.startLineNumber<l.startLineNumber?(a=o,r++):(a=l,i++)}else r<this._normalizedRanges.length?(a=this._normalizedRanges[r],r++):(a=e._normalizedRanges[i],i++);s===null?s=a:s.endLineNumberExclusive>=a.startLineNumber?s=new K(s.startLineNumber,Math.max(s.endLineNumberExclusive,a.endLineNumberExclusive)):(n.push(s),s=a)}return s!==null&&n.push(s),new Ke(n)}subtractFrom(e){const n=Qr(this._normalizedRanges,a=>a.endLineNumberExclusive>=e.startLineNumber),r=ln(this._normalizedRanges,a=>a.startLineNumber<=e.endLineNumberExclusive)+1;if(n===r)return new Ke([e]);const i=[];let s=e.startLineNumber;for(let a=n;a<r;a++){const o=this._normalizedRanges[a];o.startLineNumber>s&&i.push(new K(s,o.startLineNumber)),s=o.endLineNumberExclusive}return s<e.endLineNumberExclusive&&i.push(new K(s,e.endLineNumberExclusive)),new Ke(i)}toString(){return this._normalizedRanges.map(e=>e.toString()).join(", ")}getIntersection(e){const n=[];let r=0,i=0;for(;r<this._normalizedRanges.length&&i<e._normalizedRanges.length;){const s=this._normalizedRanges[r],a=e._normalizedRanges[i],o=s.intersect(a);o&&!o.isEmpty&&n.push(o),s.endLineNumberExclusive<a.endLineNumberExclusive?r++:i++}return new Ke(n)}getWithDelta(e){return new Ke(this._normalizedRanges.map(n=>n.delta(e)))}}class He{static inverse(e,n,r){const i=[];let s=1,a=1;for(const l of e){const c=new He(new K(s,l.original.startLineNumber),new K(a,l.modified.startLineNumber));c.modified.isEmpty||i.push(c),s=l.original.endLineNumberExclusive,a=l.modified.endLineNumberExclusive}const o=new He(new K(s,n+1),new K(a,r+1));return o.modified.isEmpty||i.push(o),i}static clip(e,n,r){const i=[];for(const s of e){const a=s.original.intersect(n),o=s.modified.intersect(r);a&&!a.isEmpty&&o&&!o.isEmpty&&i.push(new He(a,o))}return i}constructor(e,n){this.original=e,this.modified=n}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new He(this.modified,this.original)}join(e){return new He(this.original.join(e.original),this.modified.join(e.modified))}}class nt extends He{static fromRangeMappings(e){const n=K.join(e.map(i=>K.fromRangeInclusive(i.originalRange))),r=K.join(e.map(i=>K.fromRangeInclusive(i.modifiedRange)));return new nt(n,r,e)}constructor(e,n,r){super(e,n),this.innerChanges=r}flip(){var e;return new nt(this.modified,this.original,(e=this.innerChanges)===null||e===void 0?void 0:e.map(n=>n.flip()))}withInnerChangesFromLineRanges(){return new nt(this.original,this.modified,[new Bt(this.original.toExclusiveRange(),this.modified.toExclusiveRange())])}}class Bt{constructor(e,n){this.originalRange=e,this.modifiedRange=n}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new Bt(this.modifiedRange,this.originalRange)}}const nd=3;class rd{computeDiff(e,n,r){var i;const a=new ad(e,n,{maxComputationTime:r.maxComputationTimeMs,shouldIgnoreTrimWhitespace:r.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),o=[];let l=null;for(const c of a.changes){let h;c.originalEndLineNumber===0?h=new K(c.originalStartLineNumber+1,c.originalStartLineNumber+1):h=new K(c.originalStartLineNumber,c.originalEndLineNumber+1);let u;c.modifiedEndLineNumber===0?u=new K(c.modifiedStartLineNumber+1,c.modifiedStartLineNumber+1):u=new K(c.modifiedStartLineNumber,c.modifiedEndLineNumber+1);let f=new nt(h,u,(i=c.charChanges)===null||i===void 0?void 0:i.map(m=>new Bt(new ve(m.originalStartLineNumber,m.originalStartColumn,m.originalEndLineNumber,m.originalEndColumn),new ve(m.modifiedStartLineNumber,m.modifiedStartColumn,m.modifiedEndLineNumber,m.modifiedEndColumn))));l&&(l.modified.endLineNumberExclusive===f.modified.startLineNumber||l.original.endLineNumberExclusive===f.original.startLineNumber)&&(f=new nt(l.original.join(f.original),l.modified.join(f.modified),l.innerChanges&&f.innerChanges?l.innerChanges.concat(f.innerChanges):void 0),o.pop()),o.push(f),l=f}return Yn(()=>Ia(o,(c,h)=>h.original.startLineNumber-c.original.endLineNumberExclusive===h.modified.startLineNumber-c.modified.endLineNumberExclusive&&c.original.endLineNumberExclusive<h.original.startLineNumber&&c.modified.endLineNumberExclusive<h.modified.startLineNumber)),new Kn(o,[],a.quitEarly)}}function Oa(t,e,n,r){return new ut(t,e,n).ComputeDiff(r)}let Ua=class{constructor(e){const n=[],r=[];for(let i=0,s=e.length;i<s;i++)n[i]=Zr(e[i],1),r[i]=ei(e[i],1);this.lines=e,this._startColumns=n,this._endColumns=r}getElements(){const e=[];for(let n=0,r=this.lines.length;n<r;n++)e[n]=this.lines[n].substring(this._startColumns[n]-1,this._endColumns[n]-1);return e}getStrictElement(e){return this.lines[e]}getStartLineNumber(e){return e+1}getEndLineNumber(e){return e+1}createCharSequence(e,n,r){const i=[],s=[],a=[];let o=0;for(let l=n;l<=r;l++){const c=this.lines[l],h=e?this._startColumns[l]:1,u=e?this._endColumns[l]:c.length+1;for(let f=h;f<u;f++)i[o]=c.charCodeAt(f-1),s[o]=l+1,a[o]=f,o++;!e&&l<r&&(i[o]=10,s[o]=l+1,a[o]=c.length+1,o++)}return new id(i,s,a)}};class id{constructor(e,n,r){this._charCodes=e,this._lineNumbers=n,this._columns=r}toString(){return"["+this._charCodes.map((e,n)=>(e===10?"\\n":String.fromCharCode(e))+`-(${this._lineNumbers[n]},${this._columns[n]})`).join(", ")+"]"}_assertIndex(e,n){if(e<0||e>=n.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(e){return e>0&&e===this._lineNumbers.length?this.getEndLineNumber(e-1):(this._assertIndex(e,this._lineNumbers),this._lineNumbers[e])}getEndLineNumber(e){return e===-1?this.getStartLineNumber(e+1):(this._assertIndex(e,this._lineNumbers),this._charCodes[e]===10?this._lineNumbers[e]+1:this._lineNumbers[e])}getStartColumn(e){return e>0&&e===this._columns.length?this.getEndColumn(e-1):(this._assertIndex(e,this._columns),this._columns[e])}getEndColumn(e){return e===-1?this.getStartColumn(e+1):(this._assertIndex(e,this._columns),this._charCodes[e]===10?1:this._columns[e]+1)}}class qt{constructor(e,n,r,i,s,a,o,l){this.originalStartLineNumber=e,this.originalStartColumn=n,this.originalEndLineNumber=r,this.originalEndColumn=i,this.modifiedStartLineNumber=s,this.modifiedStartColumn=a,this.modifiedEndLineNumber=o,this.modifiedEndColumn=l}static createFromDiffChange(e,n,r){const i=n.getStartLineNumber(e.originalStart),s=n.getStartColumn(e.originalStart),a=n.getEndLineNumber(e.originalStart+e.originalLength-1),o=n.getEndColumn(e.originalStart+e.originalLength-1),l=r.getStartLineNumber(e.modifiedStart),c=r.getStartColumn(e.modifiedStart),h=r.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),u=r.getEndColumn(e.modifiedStart+e.modifiedLength-1);return new qt(i,s,a,o,l,c,h,u)}}function sd(t){if(t.length<=1)return t;const e=[t[0]];let n=e[0];for(let r=1,i=t.length;r<i;r++){const s=t[r],a=s.originalStart-(n.originalStart+n.originalLength),o=s.modifiedStart-(n.modifiedStart+n.modifiedLength);Math.min(a,o)<nd?(n.originalLength=s.originalStart+s.originalLength-n.originalStart,n.modifiedLength=s.modifiedStart+s.modifiedLength-n.modifiedStart):(e.push(s),n=s)}return e}class hn{constructor(e,n,r,i,s){this.originalStartLineNumber=e,this.originalEndLineNumber=n,this.modifiedStartLineNumber=r,this.modifiedEndLineNumber=i,this.charChanges=s}static createFromDiffResult(e,n,r,i,s,a,o){let l,c,h,u,f;if(n.originalLength===0?(l=r.getStartLineNumber(n.originalStart)-1,c=0):(l=r.getStartLineNumber(n.originalStart),c=r.getEndLineNumber(n.originalStart+n.originalLength-1)),n.modifiedLength===0?(h=i.getStartLineNumber(n.modifiedStart)-1,u=0):(h=i.getStartLineNumber(n.modifiedStart),u=i.getEndLineNumber(n.modifiedStart+n.modifiedLength-1)),a&&n.originalLength>0&&n.originalLength<20&&n.modifiedLength>0&&n.modifiedLength<20&&s()){const m=r.createCharSequence(e,n.originalStart,n.originalStart+n.originalLength-1),g=i.createCharSequence(e,n.modifiedStart,n.modifiedStart+n.modifiedLength-1);if(m.getElements().length>0&&g.getElements().length>0){let b=Oa(m,g,s,!0).changes;o&&(b=sd(b)),f=[];for(let y=0,C=b.length;y<C;y++)f.push(qt.createFromDiffChange(b[y],m,g))}}return new hn(l,c,h,u,f)}}class ad{constructor(e,n,r){this.shouldComputeCharChanges=r.shouldComputeCharChanges,this.shouldPostProcessCharChanges=r.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=r.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=r.shouldMakePrettyDiff,this.originalLines=e,this.modifiedLines=n,this.original=new Ua(e),this.modified=new Ua(n),this.continueLineDiff=Va(r.maxComputationTime),this.continueCharDiff=Va(r.maxComputationTime===0?0:Math.min(r.maxComputationTime,5e3))}computeDiff(){if(this.original.lines.length===1&&this.original.lines[0].length===0)return this.modified.lines.length===1&&this.modified.lines[0].length===0?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:void 0}]};if(this.modified.lines.length===1&&this.modified.lines[0].length===0)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:void 0}]};const e=Oa(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),n=e.changes,r=e.quitEarly;if(this.shouldIgnoreTrimWhitespace){const o=[];for(let l=0,c=n.length;l<c;l++)o.push(hn.createFromDiffResult(this.shouldIgnoreTrimWhitespace,n[l],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:r,changes:o}}const i=[];let s=0,a=0;for(let o=-1,l=n.length;o<l;o++){const c=o+1<l?n[o+1]:null,h=c?c.originalStart:this.originalLines.length,u=c?c.modifiedStart:this.modifiedLines.length;for(;s<h&&a<u;){const f=this.originalLines[s],m=this.modifiedLines[a];if(f!==m){{let g=Zr(f,1),b=Zr(m,1);for(;g>1&&b>1;){const y=f.charCodeAt(g-2),C=m.charCodeAt(b-2);if(y!==C)break;g--,b--}(g>1||b>1)&&this._pushTrimWhitespaceCharChange(i,s+1,1,g,a+1,1,b)}{let g=ei(f,1),b=ei(m,1);const y=f.length+1,C=m.length+1;for(;g<y&&b<C;){const k=f.charCodeAt(g-1),w=f.charCodeAt(b-1);if(k!==w)break;g++,b++}(g<y||b<C)&&this._pushTrimWhitespaceCharChange(i,s+1,g,y,a+1,b,C)}}s++,a++}c&&(i.push(hn.createFromDiffResult(this.shouldIgnoreTrimWhitespace,c,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),s+=c.originalLength,a+=c.modifiedLength)}return{quitEarly:r,changes:i}}_pushTrimWhitespaceCharChange(e,n,r,i,s,a,o){if(this._mergeTrimWhitespaceCharChange(e,n,r,i,s,a,o))return;let l;this.shouldComputeCharChanges&&(l=[new qt(n,r,n,i,s,a,s,o)]),e.push(new hn(n,n,s,s,l))}_mergeTrimWhitespaceCharChange(e,n,r,i,s,a,o){const l=e.length;if(l===0)return!1;const c=e[l-1];return c.originalEndLineNumber===0||c.modifiedEndLineNumber===0?!1:c.originalEndLineNumber===n&&c.modifiedEndLineNumber===s?(this.shouldComputeCharChanges&&c.charChanges&&c.charChanges.push(new qt(n,r,n,i,s,a,s,o)),!0):c.originalEndLineNumber+1===n&&c.modifiedEndLineNumber+1===s?(c.originalEndLineNumber=n,c.modifiedEndLineNumber=s,this.shouldComputeCharChanges&&c.charChanges&&c.charChanges.push(new qt(n,r,n,i,s,a,s,o)),!0):!1}}function Zr(t,e){const n=Ic(t);return n===-1?e:n+1}function ei(t,e){const n=Tc(t);return n===-1?e:n+2}function Va(t){if(t===0)return()=>!0;const e=Date.now();return()=>Date.now()-e<t}class rt{static trivial(e,n){return new rt([new ce(Q.ofLength(e.length),Q.ofLength(n.length))],!1)}static trivialTimedOut(e,n){return new rt([new ce(Q.ofLength(e.length),Q.ofLength(n.length))],!0)}constructor(e,n){this.diffs=e,this.hitTimeout=n}}class ce{static invert(e,n){const r=[];return vh(e,(i,s)=>{r.push(ce.fromOffsetPairs(i?i.getEndExclusives():Le.zero,s?s.getStarts():new Le(n,(i?i.seq2Range.endExclusive-i.seq1Range.endExclusive:0)+n)))}),r}static fromOffsetPairs(e,n){return new ce(new Q(e.offset1,n.offset1),new Q(e.offset2,n.offset2))}constructor(e,n){this.seq1Range=e,this.seq2Range=n}swap(){return new ce(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(e){return new ce(this.seq1Range.join(e.seq1Range),this.seq2Range.join(e.seq2Range))}delta(e){return e===0?this:new ce(this.seq1Range.delta(e),this.seq2Range.delta(e))}deltaStart(e){return e===0?this:new ce(this.seq1Range.deltaStart(e),this.seq2Range.deltaStart(e))}deltaEnd(e){return e===0?this:new ce(this.seq1Range.deltaEnd(e),this.seq2Range.deltaEnd(e))}intersect(e){const n=this.seq1Range.intersect(e.seq1Range),r=this.seq2Range.intersect(e.seq2Range);if(!(!n||!r))return new ce(n,r)}getStarts(){return new Le(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new Le(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}class Le{constructor(e,n){this.offset1=e,this.offset2=n}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(e){return e===0?this:new Le(this.offset1+e,this.offset2+e)}equals(e){return this.offset1===e.offset1&&this.offset2===e.offset2}}Le.zero=new Le(0,0),Le.max=new Le(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER);class dn{isValid(){return!0}}dn.instance=new dn;class od{constructor(e){if(this.timeout=e,this.startTime=Date.now(),this.valid=!0,e<=0)throw new tt("timeout must be positive")}isValid(){if(!(Date.now()-this.startTime<this.timeout)&&this.valid){this.valid=!1;debugger}return this.valid}}class ti{constructor(e,n){this.width=e,this.height=n,this.array=[],this.array=new Array(e*n)}get(e,n){return this.array[e+n*this.width]}set(e,n,r){this.array[e+n*this.width]=r}}function ni(t){return t===32||t===9}class jt{static getKey(e){let n=this.chrKeys.get(e);return n===void 0&&(n=this.chrKeys.size,this.chrKeys.set(e,n)),n}constructor(e,n,r){this.range=e,this.lines=n,this.source=r,this.histogram=[];let i=0;for(let s=e.startLineNumber-1;s<e.endLineNumberExclusive-1;s++){const a=n[s];for(let l=0;l<a.length;l++){i++;const c=a[l],h=jt.getKey(c);this.histogram[h]=(this.histogram[h]||0)+1}i++;const o=jt.getKey(`
|
|
9
|
+
`);this.histogram[o]=(this.histogram[o]||0)+1}this.totalCount=i}computeSimilarity(e){var n,r;let i=0;const s=Math.max(this.histogram.length,e.histogram.length);for(let a=0;a<s;a++)i+=Math.abs(((n=this.histogram[a])!==null&&n!==void 0?n:0)-((r=e.histogram[a])!==null&&r!==void 0?r:0));return 1-i/(this.totalCount+e.totalCount)}}jt.chrKeys=new Map;class ld{compute(e,n,r=dn.instance,i){if(e.length===0||n.length===0)return rt.trivial(e,n);const s=new ti(e.length,n.length),a=new ti(e.length,n.length),o=new ti(e.length,n.length);for(let g=0;g<e.length;g++)for(let b=0;b<n.length;b++){if(!r.isValid())return rt.trivialTimedOut(e,n);const y=g===0?0:s.get(g-1,b),C=b===0?0:s.get(g,b-1);let k;e.getElement(g)===n.getElement(b)?(g===0||b===0?k=0:k=s.get(g-1,b-1),g>0&&b>0&&a.get(g-1,b-1)===3&&(k+=o.get(g-1,b-1)),k+=i?i(g,b):1):k=-1;const w=Math.max(y,C,k);if(w===k){const F=g>0&&b>0?o.get(g-1,b-1):0;o.set(g,b,F+1),a.set(g,b,3)}else w===y?(o.set(g,b,0),a.set(g,b,1)):w===C&&(o.set(g,b,0),a.set(g,b,2));s.set(g,b,w)}const l=[];let c=e.length,h=n.length;function u(g,b){(g+1!==c||b+1!==h)&&l.push(new ce(new Q(g+1,c),new Q(b+1,h))),c=g,h=b}let f=e.length-1,m=n.length-1;for(;f>=0&&m>=0;)a.get(f,m)===3?(u(f,m),f--,m--):a.get(f,m)===1?f--:m--;return u(-1,-1),l.reverse(),new rt(l,!1)}}class Ba{compute(e,n,r=dn.instance){if(e.length===0||n.length===0)return rt.trivial(e,n);const i=e,s=n;function a(b,y){for(;b<i.length&&y<s.length&&i.getElement(b)===s.getElement(y);)b++,y++;return b}let o=0;const l=new cd;l.set(0,a(0,0));const c=new hd;c.set(0,l.get(0)===0?null:new qa(null,0,0,l.get(0)));let h=0;e:for(;;){if(o++,!r.isValid())return rt.trivialTimedOut(i,s);const b=-Math.min(o,s.length+o%2),y=Math.min(o,i.length+o%2);for(h=b;h<=y;h+=2){const C=h===y?-1:l.get(h+1),k=h===b?-1:l.get(h-1)+1,w=Math.min(Math.max(C,k),i.length),F=w-h;if(w>i.length||F>s.length)continue;const _=a(w,F);l.set(h,_);const P=w===C?c.get(h+1):c.get(h-1);if(c.set(h,_!==w?new qa(P,w,F,_-w):P),l.get(h)===i.length&&l.get(h)-h===s.length)break e}}let u=c.get(h);const f=[];let m=i.length,g=s.length;for(;;){const b=u?u.x+u.length:0,y=u?u.y+u.length:0;if((b!==m||y!==g)&&f.push(new ce(new Q(b,m),new Q(y,g))),!u)break;m=u.x,g=u.y,u=u.prev}return f.reverse(),new rt(f,!1)}}class qa{constructor(e,n,r,i){this.prev=e,this.x=n,this.y=r,this.length=i}}class cd{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,n){if(e<0){if(e=-e-1,e>=this.negativeArr.length){const r=this.negativeArr;this.negativeArr=new Int32Array(r.length*2),this.negativeArr.set(r)}this.negativeArr[e]=n}else{if(e>=this.positiveArr.length){const r=this.positiveArr;this.positiveArr=new Int32Array(r.length*2),this.positiveArr.set(r)}this.positiveArr[e]=n}}}class hd{constructor(){this.positiveArr=[],this.negativeArr=[]}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,n){e<0?(e=-e-1,this.negativeArr[e]=n):this.positiveArr[e]=n}}class Qn{constructor(e,n,r){this.lines=e,this.considerWhitespaceChanges=r,this.elements=[],this.firstCharOffsetByLine=[],this.additionalOffsetByLine=[];let i=!1;n.start>0&&n.endExclusive>=e.length&&(n=new Q(n.start-1,n.endExclusive),i=!0),this.lineRange=n,this.firstCharOffsetByLine[0]=0;for(let s=this.lineRange.start;s<this.lineRange.endExclusive;s++){let a=e[s],o=0;if(i)o=a.length,a="",i=!1;else if(!r){const l=a.trimStart();o=a.length-l.length,a=l.trimEnd()}this.additionalOffsetByLine.push(o);for(let l=0;l<a.length;l++)this.elements.push(a.charCodeAt(l));s<e.length-1&&(this.elements.push(10),this.firstCharOffsetByLine[s-this.lineRange.start+1]=this.elements.length)}this.additionalOffsetByLine.push(0)}toString(){return`Slice: "${this.text}"`}get text(){return this.getText(new Q(0,this.length))}getText(e){return this.elements.slice(e.start,e.endExclusive).map(n=>String.fromCharCode(n)).join("")}getElement(e){return this.elements[e]}get length(){return this.elements.length}getBoundaryScore(e){const n=$a(e>0?this.elements[e-1]:-1),r=$a(e<this.elements.length?this.elements[e]:-1);if(n===7&&r===8)return 0;if(n===8)return 150;let i=0;return n!==r&&(i+=10,n===0&&r===1&&(i+=1)),i+=ja(n),i+=ja(r),i}translateOffset(e){if(this.lineRange.isEmpty)return new Ye(this.lineRange.start+1,1);const n=ln(this.firstCharOffsetByLine,r=>r<=e);return new Ye(this.lineRange.start+n+1,e-this.firstCharOffsetByLine[n]+this.additionalOffsetByLine[n]+1)}translateRange(e){return ve.fromPositions(this.translateOffset(e.start),this.translateOffset(e.endExclusive))}findWordContaining(e){if(e<0||e>=this.elements.length||!ri(this.elements[e]))return;let n=e;for(;n>0&&ri(this.elements[n-1]);)n--;let r=e;for(;r<this.elements.length&&ri(this.elements[r]);)r++;return new Q(n,r)}countLinesIn(e){return this.translateOffset(e.endExclusive).lineNumber-this.translateOffset(e.start).lineNumber}isStronglyEqual(e,n){return this.elements[e]===this.elements[n]}extendToFullLines(e){var n,r;const i=(n=Vt(this.firstCharOffsetByLine,a=>a<=e.start))!==null&&n!==void 0?n:0,s=(r=td(this.firstCharOffsetByLine,a=>e.endExclusive<=a))!==null&&r!==void 0?r:this.elements.length;return new Q(i,s)}}function ri(t){return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57}const dd={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function ja(t){return dd[t]}function $a(t){return t===10?8:t===13?7:ni(t)?6:t>=97&&t<=122?0:t>=65&&t<=90?1:t>=48&&t<=57?2:t===-1?3:t===44||t===59?5:4}function ud(t,e,n,r,i,s){let{moves:a,excludedChanges:o}=fd(t,e,n,s);if(!s.isValid())return[];const l=t.filter(h=>!o.has(h)),c=md(l,r,i,e,n,s);return wh(a,c),a=gd(a),a=a.filter(h=>{const u=h.original.toOffsetRange().slice(e).map(m=>m.trim());return u.join(`
|
|
10
|
+
`).length>=15&&pd(u,m=>m.length>=2)>=2}),a=bd(t,a),a}function pd(t,e){let n=0;for(const r of t)e(r)&&n++;return n}function fd(t,e,n,r){const i=[],s=t.filter(l=>l.modified.isEmpty&&l.original.length>=3).map(l=>new jt(l.original,e,l)),a=new Set(t.filter(l=>l.original.isEmpty&&l.modified.length>=3).map(l=>new jt(l.modified,n,l))),o=new Set;for(const l of s){let c=-1,h;for(const u of a){const f=l.computeSimilarity(u);f>c&&(c=f,h=u)}if(c>.9&&h&&(a.delete(h),i.push(new He(l.range,h.range)),o.add(l.source),o.add(h.source)),!r.isValid())return{moves:i,excludedChanges:o}}return{moves:i,excludedChanges:o}}function md(t,e,n,r,i,s){const a=[],o=new Hh;for(const f of t)for(let m=f.original.startLineNumber;m<f.original.endLineNumberExclusive-2;m++){const g=`${e[m-1]}:${e[m+1-1]}:${e[m+2-1]}`;o.add(g,{range:new K(m,m+3)})}const l=[];t.sort(jn(f=>f.modified.startLineNumber,$n));for(const f of t){let m=[];for(let g=f.modified.startLineNumber;g<f.modified.endLineNumberExclusive-2;g++){const b=`${n[g-1]}:${n[g+1-1]}:${n[g+2-1]}`,y=new K(g,g+3),C=[];o.forEach(b,({range:k})=>{for(const F of m)if(F.originalLineRange.endLineNumberExclusive+1===k.endLineNumberExclusive&&F.modifiedLineRange.endLineNumberExclusive+1===y.endLineNumberExclusive){F.originalLineRange=new K(F.originalLineRange.startLineNumber,k.endLineNumberExclusive),F.modifiedLineRange=new K(F.modifiedLineRange.startLineNumber,y.endLineNumberExclusive),C.push(F);return}const w={modifiedLineRange:y,originalLineRange:k};l.push(w),C.push(w)}),m=C}if(!s.isValid())return[]}l.sort(xh(jn(f=>f.modifiedLineRange.length,$n)));const c=new Ke,h=new Ke;for(const f of l){const m=f.modifiedLineRange.startLineNumber-f.originalLineRange.startLineNumber,g=c.subtractFrom(f.modifiedLineRange),b=h.subtractFrom(f.originalLineRange).getWithDelta(m),y=g.getIntersection(b);for(const C of y.ranges){if(C.length<3)continue;const k=C,w=C.delta(-m);a.push(new He(w,k)),c.addRange(k),h.addRange(w)}}a.sort(jn(f=>f.original.startLineNumber,$n));const u=new cn(t);for(let f=0;f<a.length;f++){const m=a[f],g=u.findLastMonotonous(P=>P.original.startLineNumber<=m.original.startLineNumber),b=Vt(t,P=>P.modified.startLineNumber<=m.modified.startLineNumber),y=Math.max(m.original.startLineNumber-g.original.startLineNumber,m.modified.startLineNumber-b.modified.startLineNumber),C=u.findLastMonotonous(P=>P.original.startLineNumber<m.original.endLineNumberExclusive),k=Vt(t,P=>P.modified.startLineNumber<m.modified.endLineNumberExclusive),w=Math.max(C.original.endLineNumberExclusive-m.original.endLineNumberExclusive,k.modified.endLineNumberExclusive-m.modified.endLineNumberExclusive);let F;for(F=0;F<y;F++){const P=m.original.startLineNumber-F-1,W=m.modified.startLineNumber-F-1;if(P>r.length||W>i.length||c.contains(W)||h.contains(P)||!Ha(r[P-1],i[W-1],s))break}F>0&&(h.addRange(new K(m.original.startLineNumber-F,m.original.startLineNumber)),c.addRange(new K(m.modified.startLineNumber-F,m.modified.startLineNumber)));let _;for(_=0;_<w;_++){const P=m.original.endLineNumberExclusive+_,W=m.modified.endLineNumberExclusive+_;if(P>r.length||W>i.length||c.contains(W)||h.contains(P)||!Ha(r[P-1],i[W-1],s))break}_>0&&(h.addRange(new K(m.original.endLineNumberExclusive,m.original.endLineNumberExclusive+_)),c.addRange(new K(m.modified.endLineNumberExclusive,m.modified.endLineNumberExclusive+_))),(F>0||_>0)&&(a[f]=new He(new K(m.original.startLineNumber-F,m.original.endLineNumberExclusive+_),new K(m.modified.startLineNumber-F,m.modified.endLineNumberExclusive+_)))}return a}function Ha(t,e,n){if(t.trim()===e.trim())return!0;if(t.length>300&&e.length>300)return!1;const i=new Ba().compute(new Qn([t],new Q(0,1),!1),new Qn([e],new Q(0,1),!1),n);let s=0;const a=ce.invert(i.diffs,t.length);for(const h of a)h.seq1Range.forEach(u=>{ni(t.charCodeAt(u))||s++});function o(h){let u=0;for(let f=0;f<t.length;f++)ni(h.charCodeAt(f))||u++;return u}const l=o(t.length>e.length?t:e);return s/l>.6&&l>10}function gd(t){if(t.length===0)return t;t.sort(jn(n=>n.original.startLineNumber,$n));const e=[t[0]];for(let n=1;n<t.length;n++){const r=e[e.length-1],i=t[n],s=i.original.startLineNumber-r.original.endLineNumberExclusive,a=i.modified.startLineNumber-r.modified.endLineNumberExclusive;if(s>=0&&a>=0&&s+a<=2){e[e.length-1]=r.join(i);continue}e.push(i)}return e}function bd(t,e){const n=new cn(t);return e=e.filter(r=>{const i=n.findLastMonotonous(o=>o.original.startLineNumber<r.original.endLineNumberExclusive)||new He(new K(1,1),new K(1,1)),s=Vt(t,o=>o.modified.startLineNumber<r.modified.endLineNumberExclusive);return i!==s}),e}function Ga(t,e,n){let r=n;return r=Ja(t,e,r),r=Ja(t,e,r),r=vd(t,e,r),r}function Ja(t,e,n){if(n.length===0)return n;const r=[];r.push(n[0]);for(let s=1;s<n.length;s++){const a=r[r.length-1];let o=n[s];if(o.seq1Range.isEmpty||o.seq2Range.isEmpty){const l=o.seq1Range.start-a.seq1Range.endExclusive;let c;for(c=1;c<=l&&!(t.getElement(o.seq1Range.start-c)!==t.getElement(o.seq1Range.endExclusive-c)||e.getElement(o.seq2Range.start-c)!==e.getElement(o.seq2Range.endExclusive-c));c++);if(c--,c===l){r[r.length-1]=new ce(new Q(a.seq1Range.start,o.seq1Range.endExclusive-l),new Q(a.seq2Range.start,o.seq2Range.endExclusive-l));continue}o=o.delta(-c)}r.push(o)}const i=[];for(let s=0;s<r.length-1;s++){const a=r[s+1];let o=r[s];if(o.seq1Range.isEmpty||o.seq2Range.isEmpty){const l=a.seq1Range.start-o.seq1Range.endExclusive;let c;for(c=0;c<l&&!(!t.isStronglyEqual(o.seq1Range.start+c,o.seq1Range.endExclusive+c)||!e.isStronglyEqual(o.seq2Range.start+c,o.seq2Range.endExclusive+c));c++);if(c===l){r[s+1]=new ce(new Q(o.seq1Range.start+l,a.seq1Range.endExclusive),new Q(o.seq2Range.start+l,a.seq2Range.endExclusive));continue}c>0&&(o=o.delta(c))}i.push(o)}return r.length>0&&i.push(r[r.length-1]),i}function vd(t,e,n){if(!t.getBoundaryScore||!e.getBoundaryScore)return n;for(let r=0;r<n.length;r++){const i=r>0?n[r-1]:void 0,s=n[r],a=r+1<n.length?n[r+1]:void 0,o=new Q(i?i.seq1Range.endExclusive+1:0,a?a.seq1Range.start-1:t.length),l=new Q(i?i.seq2Range.endExclusive+1:0,a?a.seq2Range.start-1:e.length);s.seq1Range.isEmpty?n[r]=Xa(s,t,e,o,l):s.seq2Range.isEmpty&&(n[r]=Xa(s.swap(),e,t,l,o).swap())}return n}function Xa(t,e,n,r,i){let a=1;for(;t.seq1Range.start-a>=r.start&&t.seq2Range.start-a>=i.start&&n.isStronglyEqual(t.seq2Range.start-a,t.seq2Range.endExclusive-a)&&a<100;)a++;a--;let o=0;for(;t.seq1Range.start+o<r.endExclusive&&t.seq2Range.endExclusive+o<i.endExclusive&&n.isStronglyEqual(t.seq2Range.start+o,t.seq2Range.endExclusive+o)&&o<100;)o++;if(a===0&&o===0)return t;let l=0,c=-1;for(let h=-a;h<=o;h++){const u=t.seq2Range.start+h,f=t.seq2Range.endExclusive+h,m=t.seq1Range.start+h,g=e.getBoundaryScore(m)+n.getBoundaryScore(u)+n.getBoundaryScore(f);g>c&&(c=g,l=h)}return t.delta(l)}function yd(t,e,n){const r=[];for(const i of n){const s=r[r.length-1];if(!s){r.push(i);continue}i.seq1Range.start-s.seq1Range.endExclusive<=2||i.seq2Range.start-s.seq2Range.endExclusive<=2?r[r.length-1]=new ce(s.seq1Range.join(i.seq1Range),s.seq2Range.join(i.seq2Range)):r.push(i)}return r}function wd(t,e,n){const r=ce.invert(n,t.length),i=[];let s=new Le(0,0);function a(l,c){if(l.offset1<s.offset1||l.offset2<s.offset2)return;const h=t.findWordContaining(l.offset1),u=e.findWordContaining(l.offset2);if(!h||!u)return;let f=new ce(h,u);const m=f.intersect(c);let g=m.seq1Range.length,b=m.seq2Range.length;for(;r.length>0;){const y=r[0];if(!(y.seq1Range.intersects(f.seq1Range)||y.seq2Range.intersects(f.seq2Range)))break;const k=t.findWordContaining(y.seq1Range.start),w=e.findWordContaining(y.seq2Range.start),F=new ce(k,w),_=F.intersect(y);if(g+=_.seq1Range.length,b+=_.seq2Range.length,f=f.join(F),f.seq1Range.endExclusive>=y.seq1Range.endExclusive)r.shift();else break}g+b<(f.seq1Range.length+f.seq2Range.length)*2/3&&i.push(f),s=f.getEndExclusives()}for(;r.length>0;){const l=r.shift();l.seq1Range.isEmpty||(a(l.getStarts(),l),a(l.getEndExclusives().delta(-1),l))}return xd(n,i)}function xd(t,e){const n=[];for(;t.length>0||e.length>0;){const r=t[0],i=e[0];let s;r&&(!i||r.seq1Range.start<i.seq1Range.start)?s=t.shift():s=e.shift(),n.length>0&&n[n.length-1].seq1Range.endExclusive>=s.seq1Range.start?n[n.length-1]=n[n.length-1].join(s):n.push(s)}return n}function Sd(t,e,n){let r=n;if(r.length===0)return r;let i=0,s;do{s=!1;const a=[r[0]];for(let o=1;o<r.length;o++){let h=function(f,m){const g=new Q(c.seq1Range.endExclusive,l.seq1Range.start);return t.getText(g).replace(/\s/g,"").length<=4&&(f.seq1Range.length+f.seq2Range.length>5||m.seq1Range.length+m.seq2Range.length>5)};const l=r[o],c=a[a.length-1];h(c,l)?(s=!0,a[a.length-1]=a[a.length-1].join(l)):a.push(l)}r=a}while(i++<10&&s);return r}function Cd(t,e,n){let r=n;if(r.length===0)return r;let i=0,s;do{s=!1;const o=[r[0]];for(let l=1;l<r.length;l++){let u=function(m,g){const b=new Q(h.seq1Range.endExclusive,c.seq1Range.start);if(t.countLinesIn(b)>5||b.length>500)return!1;const C=t.getText(b).trim();if(C.length>20||C.split(/\r\n|\r|\n/).length>1)return!1;const k=t.countLinesIn(m.seq1Range),w=m.seq1Range.length,F=e.countLinesIn(m.seq2Range),_=m.seq2Range.length,P=t.countLinesIn(g.seq1Range),W=g.seq1Range.length,T=e.countLinesIn(g.seq2Range),J=g.seq2Range.length,re=2*40+50;function N(R){return Math.min(R,re)}return Math.pow(Math.pow(N(k*40+w),1.5)+Math.pow(N(F*40+_),1.5),1.5)+Math.pow(Math.pow(N(P*40+W),1.5)+Math.pow(N(T*40+J),1.5),1.5)>(re**1.5)**1.5*1.3};const c=r[l],h=o[o.length-1];u(h,c)?(s=!0,o[o.length-1]=o[o.length-1].join(c)):o.push(c)}r=o}while(i++<10&&s);const a=[];return yh(r,(o,l,c)=>{let h=l;function u(C){return C.length>0&&C.trim().length<=3&&l.seq1Range.length+l.seq2Range.length>100}const f=t.extendToFullLines(l.seq1Range),m=t.getText(new Q(f.start,l.seq1Range.start));u(m)&&(h=h.deltaStart(-m.length));const g=t.getText(new Q(l.seq1Range.endExclusive,f.endExclusive));u(g)&&(h=h.deltaEnd(g.length));const b=ce.fromOffsetPairs(o?o.getEndExclusives():Le.zero,c?c.getStarts():Le.max),y=h.intersect(b);a.length>0&&y.getStarts().equals(a[a.length-1].getEndExclusives())?a[a.length-1]=a[a.length-1].join(y):a.push(y)}),a}class Ya{constructor(e,n){this.trimmedHash=e,this.lines=n}getElement(e){return this.trimmedHash[e]}get length(){return this.trimmedHash.length}getBoundaryScore(e){const n=e===0?0:Ka(this.lines[e-1]),r=e===this.lines.length?0:Ka(this.lines[e]);return 1e3-(n+r)}getText(e){return this.lines.slice(e.start,e.endExclusive).join(`
|
|
11
|
+
`)}isStronglyEqual(e,n){return this.lines[e]===this.lines[n]}}function Ka(t){let e=0;for(;e<t.length&&(t.charCodeAt(e)===32||t.charCodeAt(e)===9);)e++;return e}class kd{constructor(){this.dynamicProgrammingDiffing=new ld,this.myersDiffingAlgorithm=new Ba}computeDiff(e,n,r){if(e.length<=1&&gh(e,n,(_,P)=>_===P))return new Kn([],[],!1);if(e.length===1&&e[0].length===0||n.length===1&&n[0].length===0)return new Kn([new nt(new K(1,e.length+1),new K(1,n.length+1),[new Bt(new ve(1,1,e.length,e[0].length+1),new ve(1,1,n.length,n[0].length+1))])],[],!1);const i=r.maxComputationTimeMs===0?dn.instance:new od(r.maxComputationTimeMs),s=!r.ignoreTrimWhitespace,a=new Map;function o(_){let P=a.get(_);return P===void 0&&(P=a.size,a.set(_,P)),P}const l=e.map(_=>o(_.trim())),c=n.map(_=>o(_.trim())),h=new Ya(l,e),u=new Ya(c,n),f=h.length+u.length<1700?this.dynamicProgrammingDiffing.compute(h,u,i,(_,P)=>e[_]===n[P]?n[P].length===0?.1:1+Math.log(1+n[P].length):.99):this.myersDiffingAlgorithm.compute(h,u);let m=f.diffs,g=f.hitTimeout;m=Ga(h,u,m),m=Sd(h,u,m);const b=[],y=_=>{if(s)for(let P=0;P<_;P++){const W=C+P,T=k+P;if(e[W]!==n[T]){const J=this.refineDiff(e,n,new ce(new Q(W,W+1),new Q(T,T+1)),i,s);for(const re of J.mappings)b.push(re);J.hitTimeout&&(g=!0)}}};let C=0,k=0;for(const _ of m){Yn(()=>_.seq1Range.start-C===_.seq2Range.start-k);const P=_.seq1Range.start-C;y(P),C=_.seq1Range.endExclusive,k=_.seq2Range.endExclusive;const W=this.refineDiff(e,n,_,i,s);W.hitTimeout&&(g=!0);for(const T of W.mappings)b.push(T)}y(e.length-C);const w=Qa(b,e,n);let F=[];return r.computeMoves&&(F=this.computeMoves(w,e,n,l,c,i,s)),Yn(()=>{function _(W,T){if(W.lineNumber<1||W.lineNumber>T.length)return!1;const J=T[W.lineNumber-1];return!(W.column<1||W.column>J.length+1)}function P(W,T){return!(W.startLineNumber<1||W.startLineNumber>T.length+1||W.endLineNumberExclusive<1||W.endLineNumberExclusive>T.length+1)}for(const W of w){if(!W.innerChanges)return!1;for(const T of W.innerChanges)if(!(_(T.modifiedRange.getStartPosition(),n)&&_(T.modifiedRange.getEndPosition(),n)&&_(T.originalRange.getStartPosition(),e)&&_(T.originalRange.getEndPosition(),e)))return!1;if(!P(W.modified,n)||!P(W.original,e))return!1}return!0}),new Kn(w,F,g)}computeMoves(e,n,r,i,s,a,o){return ud(e,n,r,i,s,a).map(h=>{const u=this.refineDiff(n,r,new ce(h.original.toOffsetRange(),h.modified.toOffsetRange()),a,o),f=Qa(u.mappings,n,r,!0);return new ed(h,f)})}refineDiff(e,n,r,i,s){const a=new Qn(e,r.seq1Range,s),o=new Qn(n,r.seq2Range,s),l=a.length+o.length<500?this.dynamicProgrammingDiffing.compute(a,o,i):this.myersDiffingAlgorithm.compute(a,o,i);let c=l.diffs;return c=Ga(a,o,c),c=wd(a,o,c),c=yd(a,o,c),c=Cd(a,o,c),{mappings:c.map(u=>new Bt(a.translateRange(u.seq1Range),o.translateRange(u.seq2Range))),hitTimeout:l.hitTimeout}}}function Qa(t,e,n,r=!1){const i=[];for(const s of bh(t.map(a=>_d(a,e,n)),(a,o)=>a.original.overlapOrTouch(o.original)||a.modified.overlapOrTouch(o.modified))){const a=s[0],o=s[s.length-1];i.push(new nt(a.original.join(o.original),a.modified.join(o.modified),s.map(l=>l.innerChanges[0])))}return Yn(()=>!r&&i.length>0&&(i[0].modified.startLineNumber!==i[0].original.startLineNumber||n.length-i[i.length-1].modified.endLineNumberExclusive!==e.length-i[i.length-1].original.endLineNumberExclusive)?!1:Ia(i,(s,a)=>a.original.startLineNumber-s.original.endLineNumberExclusive===a.modified.startLineNumber-s.modified.endLineNumberExclusive&&s.original.endLineNumberExclusive<a.original.startLineNumber&&s.modified.endLineNumberExclusive<a.modified.startLineNumber)),i}function _d(t,e,n){let r=0,i=0;t.modifiedRange.endColumn===1&&t.originalRange.endColumn===1&&t.originalRange.startLineNumber+r<=t.originalRange.endLineNumber&&t.modifiedRange.startLineNumber+r<=t.modifiedRange.endLineNumber&&(i=-1),t.modifiedRange.startColumn-1>=n[t.modifiedRange.startLineNumber-1].length&&t.originalRange.startColumn-1>=e[t.originalRange.startLineNumber-1].length&&t.originalRange.startLineNumber<=t.originalRange.endLineNumber+i&&t.modifiedRange.startLineNumber<=t.modifiedRange.endLineNumber+i&&(r=1);const s=new K(t.originalRange.startLineNumber+r,t.originalRange.endLineNumber+1+i),a=new K(t.modifiedRange.startLineNumber+r,t.modifiedRange.endLineNumber+1+i);return new nt(s,a,[t])}const Za={getLegacy:()=>new rd,getDefault:()=>new kd};function bt(t,e){const n=Math.pow(10,e);return Math.round(t*n)/n}class ye{constructor(e,n,r,i=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,e))|0,this.g=Math.min(255,Math.max(0,n))|0,this.b=Math.min(255,Math.max(0,r))|0,this.a=bt(Math.max(Math.min(1,i),0),3)}static equals(e,n){return e.r===n.r&&e.g===n.g&&e.b===n.b&&e.a===n.a}}class Te{constructor(e,n,r,i){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,e),0)|0,this.s=bt(Math.max(Math.min(1,n),0),3),this.l=bt(Math.max(Math.min(1,r),0),3),this.a=bt(Math.max(Math.min(1,i),0),3)}static equals(e,n){return e.h===n.h&&e.s===n.s&&e.l===n.l&&e.a===n.a}static fromRGBA(e){const n=e.r/255,r=e.g/255,i=e.b/255,s=e.a,a=Math.max(n,r,i),o=Math.min(n,r,i);let l=0,c=0;const h=(o+a)/2,u=a-o;if(u>0){switch(c=Math.min(h<=.5?u/(2*h):u/(2-2*h),1),a){case n:l=(r-i)/u+(r<i?6:0);break;case r:l=(i-n)/u+2;break;case i:l=(n-r)/u+4;break}l*=60,l=Math.round(l)}return new Te(l,c,h,s)}static _hue2rgb(e,n,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(n-e)*6*r:r<1/2?n:r<2/3?e+(n-e)*(2/3-r)*6:e}static toRGBA(e){const n=e.h/360,{s:r,l:i,a:s}=e;let a,o,l;if(r===0)a=o=l=i;else{const c=i<.5?i*(1+r):i+r-i*r,h=2*i-c;a=Te._hue2rgb(h,c,n+1/3),o=Te._hue2rgb(h,c,n),l=Te._hue2rgb(h,c,n-1/3)}return new ye(Math.round(a*255),Math.round(o*255),Math.round(l*255),s)}}class $t{constructor(e,n,r,i){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,e),0)|0,this.s=bt(Math.max(Math.min(1,n),0),3),this.v=bt(Math.max(Math.min(1,r),0),3),this.a=bt(Math.max(Math.min(1,i),0),3)}static equals(e,n){return e.h===n.h&&e.s===n.s&&e.v===n.v&&e.a===n.a}static fromRGBA(e){const n=e.r/255,r=e.g/255,i=e.b/255,s=Math.max(n,r,i),a=Math.min(n,r,i),o=s-a,l=s===0?0:o/s;let c;return o===0?c=0:s===n?c=((r-i)/o%6+6)%6:s===r?c=(i-n)/o+2:c=(n-r)/o+4,new $t(Math.round(c*60),l,s,e.a)}static toRGBA(e){const{h:n,s:r,v:i,a:s}=e,a=i*r,o=a*(1-Math.abs(n/60%2-1)),l=i-a;let[c,h,u]=[0,0,0];return n<60?(c=a,h=o):n<120?(c=o,h=a):n<180?(h=a,u=o):n<240?(h=o,u=a):n<300?(c=o,u=a):n<=360&&(c=a,u=o),c=Math.round((c+l)*255),h=Math.round((h+l)*255),u=Math.round((u+l)*255),new ye(c,h,u,s)}}let fe=class Be{static fromHex(e){return Be.Format.CSS.parseHex(e)||Be.red}static equals(e,n){return!e&&!n?!0:!e||!n?!1:e.equals(n)}get hsla(){return this._hsla?this._hsla:Te.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:$t.fromRGBA(this.rgba)}constructor(e){if(e)if(e instanceof ye)this.rgba=e;else if(e instanceof Te)this._hsla=e,this.rgba=Te.toRGBA(e);else if(e instanceof $t)this._hsva=e,this.rgba=$t.toRGBA(e);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}equals(e){return!!e&&ye.equals(this.rgba,e.rgba)&&Te.equals(this.hsla,e.hsla)&&$t.equals(this.hsva,e.hsva)}getRelativeLuminance(){const e=Be._relativeLuminanceForComponent(this.rgba.r),n=Be._relativeLuminanceForComponent(this.rgba.g),r=Be._relativeLuminanceForComponent(this.rgba.b),i=.2126*e+.7152*n+.0722*r;return bt(i,4)}static _relativeLuminanceForComponent(e){const n=e/255;return n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(e){const n=this.getRelativeLuminance(),r=e.getRelativeLuminance();return n>r}isDarkerThan(e){const n=this.getRelativeLuminance(),r=e.getRelativeLuminance();return n<r}lighten(e){return new Be(new Te(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*e,this.hsla.a))}darken(e){return new Be(new Te(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*e,this.hsla.a))}transparent(e){const{r:n,g:r,b:i,a:s}=this.rgba;return new Be(new ye(n,r,i,s*e))}isTransparent(){return this.rgba.a===0}isOpaque(){return this.rgba.a===1}opposite(){return new Be(new ye(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}makeOpaque(e){if(this.isOpaque()||e.rgba.a!==1)return this;const{r:n,g:r,b:i,a:s}=this.rgba;return new Be(new ye(e.rgba.r-s*(e.rgba.r-n),e.rgba.g-s*(e.rgba.g-r),e.rgba.b-s*(e.rgba.b-i),1))}toString(){return this._toString||(this._toString=Be.Format.CSS.format(this)),this._toString}static getLighterColor(e,n,r){if(e.isLighterThan(n))return e;r=r||.5;const i=e.getRelativeLuminance(),s=n.getRelativeLuminance();return r=r*(s-i)/s,e.lighten(r)}static getDarkerColor(e,n,r){if(e.isDarkerThan(n))return e;r=r||.5;const i=e.getRelativeLuminance(),s=n.getRelativeLuminance();return r=r*(i-s)/i,e.darken(r)}};fe.white=new fe(new ye(255,255,255,1)),fe.black=new fe(new ye(0,0,0,1)),fe.red=new fe(new ye(255,0,0,1)),fe.blue=new fe(new ye(0,0,255,1)),fe.green=new fe(new ye(0,255,0,1)),fe.cyan=new fe(new ye(0,255,255,1)),fe.lightgrey=new fe(new ye(211,211,211,1)),fe.transparent=new fe(new ye(0,0,0,0)),function(t){(function(e){(function(n){function r(m){return m.rgba.a===1?`rgb(${m.rgba.r}, ${m.rgba.g}, ${m.rgba.b})`:t.Format.CSS.formatRGBA(m)}n.formatRGB=r;function i(m){return`rgba(${m.rgba.r}, ${m.rgba.g}, ${m.rgba.b}, ${+m.rgba.a.toFixed(2)})`}n.formatRGBA=i;function s(m){return m.hsla.a===1?`hsl(${m.hsla.h}, ${(m.hsla.s*100).toFixed(2)}%, ${(m.hsla.l*100).toFixed(2)}%)`:t.Format.CSS.formatHSLA(m)}n.formatHSL=s;function a(m){return`hsla(${m.hsla.h}, ${(m.hsla.s*100).toFixed(2)}%, ${(m.hsla.l*100).toFixed(2)}%, ${m.hsla.a.toFixed(2)})`}n.formatHSLA=a;function o(m){const g=m.toString(16);return g.length!==2?"0"+g:g}function l(m){return`#${o(m.rgba.r)}${o(m.rgba.g)}${o(m.rgba.b)}`}n.formatHex=l;function c(m,g=!1){return g&&m.rgba.a===1?t.Format.CSS.formatHex(m):`#${o(m.rgba.r)}${o(m.rgba.g)}${o(m.rgba.b)}${o(Math.round(m.rgba.a*255))}`}n.formatHexA=c;function h(m){return m.isOpaque()?t.Format.CSS.formatHex(m):t.Format.CSS.formatRGBA(m)}n.format=h;function u(m){const g=m.length;if(g===0||m.charCodeAt(0)!==35)return null;if(g===7){const b=16*f(m.charCodeAt(1))+f(m.charCodeAt(2)),y=16*f(m.charCodeAt(3))+f(m.charCodeAt(4)),C=16*f(m.charCodeAt(5))+f(m.charCodeAt(6));return new t(new ye(b,y,C,1))}if(g===9){const b=16*f(m.charCodeAt(1))+f(m.charCodeAt(2)),y=16*f(m.charCodeAt(3))+f(m.charCodeAt(4)),C=16*f(m.charCodeAt(5))+f(m.charCodeAt(6)),k=16*f(m.charCodeAt(7))+f(m.charCodeAt(8));return new t(new ye(b,y,C,k/255))}if(g===4){const b=f(m.charCodeAt(1)),y=f(m.charCodeAt(2)),C=f(m.charCodeAt(3));return new t(new ye(16*b+b,16*y+y,16*C+C))}if(g===5){const b=f(m.charCodeAt(1)),y=f(m.charCodeAt(2)),C=f(m.charCodeAt(3)),k=f(m.charCodeAt(4));return new t(new ye(16*b+b,16*y+y,16*C+C,(16*k+k)/255))}return null}n.parseHex=u;function f(m){switch(m){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:return 10;case 65:return 10;case 98:return 11;case 66:return 11;case 99:return 12;case 67:return 12;case 100:return 13;case 68:return 13;case 101:return 14;case 69:return 14;case 102:return 15;case 70:return 15}return 0}})(e.CSS||(e.CSS={}))})(t.Format||(t.Format={}))}(fe||(fe={}));function eo(t){const e=[];for(const n of t){const r=Number(n);(r||r===0&&n.replace(/\s/g,"")!=="")&&e.push(r)}return e}function ii(t,e,n,r){return{red:t/255,blue:n/255,green:e/255,alpha:r}}function un(t,e){const n=e.index,r=e[0].length;if(!n)return;const i=t.positionAt(n);return{startLineNumber:i.lineNumber,startColumn:i.column,endLineNumber:i.lineNumber,endColumn:i.column+r}}function Ed(t,e){if(!t)return;const n=fe.Format.CSS.parseHex(e);if(n)return{range:t,color:ii(n.rgba.r,n.rgba.g,n.rgba.b,n.rgba.a)}}function to(t,e,n){if(!t||e.length!==1)return;const i=e[0].values(),s=eo(i);return{range:t,color:ii(s[0],s[1],s[2],n?s[3]:1)}}function no(t,e,n){if(!t||e.length!==1)return;const i=e[0].values(),s=eo(i),a=new fe(new Te(s[0],s[1]/100,s[2]/100,n?s[3]:1));return{range:t,color:ii(a.rgba.r,a.rgba.g,a.rgba.b,a.rgba.a)}}function pn(t,e){return typeof t=="string"?[...t.matchAll(e)]:t.findMatches(e)}function Rd(t){const e=[],r=pn(t,/\b(rgb|rgba|hsl|hsla)(\([0-9\s,.\%]*\))|(#)([A-Fa-f0-9]{3})\b|(#)([A-Fa-f0-9]{4})\b|(#)([A-Fa-f0-9]{6})\b|(#)([A-Fa-f0-9]{8})\b/gm);if(r.length>0)for(const i of r){const s=i.filter(c=>c!==void 0),a=s[1],o=s[2];if(!o)continue;let l;if(a==="rgb"){const c=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;l=to(un(t,i),pn(o,c),!1)}else if(a==="rgba"){const c=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;l=to(un(t,i),pn(o,c),!0)}else if(a==="hsl"){const c=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;l=no(un(t,i),pn(o,c),!1)}else if(a==="hsla"){const c=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;l=no(un(t,i),pn(o,c),!0)}else a==="#"&&(l=Ed(un(t,i),a+o));l&&e.push(l)}return e}function Fd(t){return!t||typeof t.getValue!="function"||typeof t.positionAt!="function"?[]:Rd(t)}const ro=/\bMARK:\s*(.*)$/d,Dd=/^-+|-+$/g;function Ad(t,e){var n;let r=[];if(e.findRegionSectionHeaders&&(!((n=e.foldingRules)===null||n===void 0)&&n.markers)){const i=Nd(t,e);r=r.concat(i)}if(e.findMarkSectionHeaders){const i=Md(t);r=r.concat(i)}return r}function Nd(t,e){const n=[],r=t.getLineCount();for(let i=1;i<=r;i++){const s=t.getLineContent(i),a=s.match(e.foldingRules.markers.start);if(a){const o={startLineNumber:i,startColumn:a[0].length+1,endLineNumber:i,endColumn:s.length+1};if(o.endColumn>o.startColumn){const l={range:o,...io(s.substring(a[0].length)),shouldBeInComments:!1};(l.text||l.hasSeparatorLine)&&n.push(l)}}}return n}function Md(t){const e=[],n=t.getLineCount();for(let r=1;r<=n;r++){const i=t.getLineContent(r);zd(i,r,e)}return e}function zd(t,e,n){ro.lastIndex=0;const r=ro.exec(t);if(r){const i=r.indices[1][0]+1,s=r.indices[1][1]+1,a={startLineNumber:e,startColumn:i,endLineNumber:e,endColumn:s};if(a.endColumn>a.startColumn){const o={range:a,...io(r[1]),shouldBeInComments:!0};(o.text||o.hasSeparatorLine)&&n.push(o)}}}function io(t){t=t.trim();const e=t.startsWith("-");return t=t.replace(Dd,""),{text:t,hasSeparatorLine:e}}class Ld extends kh{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(e){const n=[];for(let r=0;r<this._lines.length;r++){const i=this._lines[r],s=this.offsetAt(new Ye(r+1,1)),a=i.matchAll(e);for(const o of a)(o.index||o.index===0)&&(o.index=o.index+s),n.push(o)}return n}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(e){return this._lines[e-1]}getWordAtPosition(e,n){const r=Vr(e.column,Ns(n),this._lines[e.lineNumber-1],0);return r?new ve(e.lineNumber,r.startColumn,e.lineNumber,r.endColumn):null}words(e){const n=this._lines,r=this._wordenize.bind(this);let i=0,s="",a=0,o=[];return{*[Symbol.iterator](){for(;;)if(a<o.length){const l=s.substring(o[a].start,o[a].end);a+=1,yield l}else if(i<n.length)s=n[i],o=r(s,e),a=0,i+=1;else break}}}getLineWords(e,n){const r=this._lines[e-1],i=this._wordenize(r,n),s=[];for(const a of i)s.push({word:r.substring(a.start,a.end),startColumn:a.start+1,endColumn:a.end+1});return s}_wordenize(e,n){const r=[];let i;for(n.lastIndex=0;(i=n.exec(e))&&i[0].length!==0;)r.push({start:i.index,end:i.index+i[0].length});return r}getValueInRange(e){if(e=this._validateRange(e),e.startLineNumber===e.endLineNumber)return this._lines[e.startLineNumber-1].substring(e.startColumn-1,e.endColumn-1);const n=this._eol,r=e.startLineNumber-1,i=e.endLineNumber-1,s=[];s.push(this._lines[r].substring(e.startColumn-1));for(let a=r+1;a<i;a++)s.push(this._lines[a]);return s.push(this._lines[i].substring(0,e.endColumn-1)),s.join(n)}offsetAt(e){return e=this._validatePosition(e),this._ensureLineStarts(),this._lineStarts.getPrefixSum(e.lineNumber-2)+(e.column-1)}positionAt(e){e=Math.floor(e),e=Math.max(0,e),this._ensureLineStarts();const n=this._lineStarts.getIndexOf(e),r=this._lines[n.index].length;return{lineNumber:1+n.index,column:1+Math.min(n.remainder,r)}}_validateRange(e){const n=this._validatePosition({lineNumber:e.startLineNumber,column:e.startColumn}),r=this._validatePosition({lineNumber:e.endLineNumber,column:e.endColumn});return n.lineNumber!==e.startLineNumber||n.column!==e.startColumn||r.lineNumber!==e.endLineNumber||r.column!==e.endColumn?{startLineNumber:n.lineNumber,startColumn:n.column,endLineNumber:r.lineNumber,endColumn:r.column}:e}_validatePosition(e){if(!Ye.isIPosition(e))throw new Error("bad position");let{lineNumber:n,column:r}=e,i=!1;if(n<1)n=1,r=1,i=!0;else if(n>this._lines.length)n=this._lines.length,r=this._lines[n-1].length+1,i=!0;else{const s=this._lines[n-1].length+1;r<1?(r=1,i=!0):r>s&&(r=s,i=!0)}return i?{lineNumber:n,column:r}:e}}class Ct{constructor(e,n){this._host=e,this._models=Object.create(null),this._foreignModuleFactory=n,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(e){return this._models[e]}_getModels(){const e=[];return Object.keys(this._models).forEach(n=>e.push(this._models[n])),e}acceptNewModel(e){this._models[e.url]=new Ld(Wr.parse(e.url),e.lines,e.EOL,e.versionId)}acceptModelChanged(e,n){if(!this._models[e])return;this._models[e].onEvents(n)}acceptRemovedModel(e){this._models[e]&&delete this._models[e]}async computeUnicodeHighlights(e,n,r){const i=this._getModel(e);return i?Qh.computeUnicodeHighlights(i,n,r):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async findSectionHeaders(e,n){const r=this._getModel(e);return r?Ad(r,n):[]}async computeDiff(e,n,r,i){const s=this._getModel(e),a=this._getModel(n);return!s||!a?null:Ct.computeDiff(s,a,r,i)}static computeDiff(e,n,r,i){const s=i==="advanced"?Za.getDefault():Za.getLegacy(),a=e.getLinesContent(),o=n.getLinesContent(),l=s.computeDiff(a,o,r),c=l.changes.length>0?!1:this._modelsAreIdentical(e,n);function h(u){return u.map(f=>{var m;return[f.original.startLineNumber,f.original.endLineNumberExclusive,f.modified.startLineNumber,f.modified.endLineNumberExclusive,(m=f.innerChanges)===null||m===void 0?void 0:m.map(g=>[g.originalRange.startLineNumber,g.originalRange.startColumn,g.originalRange.endLineNumber,g.originalRange.endColumn,g.modifiedRange.startLineNumber,g.modifiedRange.startColumn,g.modifiedRange.endLineNumber,g.modifiedRange.endColumn])]})}return{identical:c,quitEarly:l.hitTimeout,changes:h(l.changes),moves:l.moves.map(u=>[u.lineRangeMapping.original.startLineNumber,u.lineRangeMapping.original.endLineNumberExclusive,u.lineRangeMapping.modified.startLineNumber,u.lineRangeMapping.modified.endLineNumberExclusive,h(u.changes)])}}static _modelsAreIdentical(e,n){const r=e.getLineCount(),i=n.getLineCount();if(r!==i)return!1;for(let s=1;s<=r;s++){const a=e.getLineContent(s),o=n.getLineContent(s);if(a!==o)return!1}return!0}async computeMoreMinimalEdits(e,n,r){const i=this._getModel(e);if(!i)return n;const s=[];let a;n=n.slice(0).sort((l,c)=>{if(l.range&&c.range)return ve.compareRangesUsingStarts(l.range,c.range);const h=l.range?0:1,u=c.range?0:1;return h-u});let o=0;for(let l=1;l<n.length;l++)ve.getEndPosition(n[o].range).equals(ve.getStartPosition(n[l].range))?(n[o].range=ve.fromPositions(ve.getStartPosition(n[o].range),ve.getEndPosition(n[l].range)),n[o].text+=n[l].text):(o++,n[o]=n[l]);n.length=o+1;for(let{range:l,text:c,eol:h}of n){if(typeof h=="number"&&(a=h),ve.isEmpty(l)&&!c)continue;const u=i.getValueInRange(l);if(c=c.replace(/\r\n|\n|\r/g,i.eol),u===c)continue;if(Math.max(c.length,u.length)>Ct._diffLimit){s.push({range:l,text:c});continue}const f=Qc(u,c,r),m=i.offsetAt(ve.lift(l).getStartPosition());for(const g of f){const b=i.positionAt(m+g.originalStart),y=i.positionAt(m+g.originalStart+g.originalLength),C={text:c.substr(g.modifiedStart,g.modifiedLength),range:{startLineNumber:b.lineNumber,startColumn:b.column,endLineNumber:y.lineNumber,endColumn:y.column}};i.getValueInRange(C.range)!==C.text&&s.push(C)}}return typeof a=="number"&&s.push({eol:a,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),s}async computeLinks(e){const n=this._getModel(e);return n?Mh(n):null}async computeDefaultDocumentColors(e){const n=this._getModel(e);return n?Fd(n):null}async textualSuggest(e,n,r,i){const s=new On,a=new RegExp(r,i),o=new Set;e:for(const l of e){const c=this._getModel(l);if(c){for(const h of c.words(a))if(!(h===n||!isNaN(Number(h)))&&(o.add(h),o.size>Ct._suggestionsLimit))break e}}return{words:Array.from(o),duration:s.elapsed()}}async computeWordRanges(e,n,r,i){const s=this._getModel(e);if(!s)return Object.create(null);const a=new RegExp(r,i),o=Object.create(null);for(let l=n.startLineNumber;l<n.endLineNumber;l++){const c=s.getLineWords(l,a);for(const h of c){if(!isNaN(Number(h.word)))continue;let u=o[h.word];u||(u=[],o[h.word]=u),u.push({startLineNumber:l,startColumn:h.startColumn,endLineNumber:l,endColumn:h.endColumn})}}return o}async navigateValueSet(e,n,r,i,s){const a=this._getModel(e);if(!a)return null;const o=new RegExp(i,s);n.startColumn===n.endColumn&&(n={startLineNumber:n.startLineNumber,startColumn:n.startColumn,endLineNumber:n.endLineNumber,endColumn:n.endColumn+1});const l=a.getValueInRange(n),c=a.getWordAtPosition({lineNumber:n.startLineNumber,column:n.startColumn},o);if(!c)return null;const h=a.getValueInRange(c);return jr.INSTANCE.navigateValueSet(n,l,c,h,r)}loadForeignModule(e,n,r){const a={host:_c(r,(o,l)=>this._host.fhr(o,l)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(a,n),Promise.resolve(Fr(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(e,n){if(!this._foreignModule||typeof this._foreignModule[e]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,n))}catch(r){return Promise.reject(r)}}}Ct._diffLimit=1e5,Ct._suggestionsLimit=1e4,typeof importScripts=="function"&&(globalThis.monaco=qh());let si=!1;function so(t){if(si)return;si=!0;const e=new Yc(n=>{globalThis.postMessage(n)},n=>new Ct(n,t));globalThis.onmessage=n=>{e.onmessage(n.data)}}globalThis.onmessage=t=>{si||so(null)};/*!-----------------------------------------------------------------------------
|
|
12
12
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
13
13
|
* Version: 0.48.0(0037b13fb5d186fdf1e7df51a9416a2de2b8c670)
|
|
14
14
|
* Released under the MIT license
|
|
15
15
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
16
|
-
*-----------------------------------------------------------------------------*/var p;(function(t){t[t.Ident=0]="Ident",t[t.AtKeyword=1]="AtKeyword",t[t.String=2]="String",t[t.BadString=3]="BadString",t[t.UnquotedString=4]="UnquotedString",t[t.Hash=5]="Hash",t[t.Num=6]="Num",t[t.Percentage=7]="Percentage",t[t.Dimension=8]="Dimension",t[t.UnicodeRange=9]="UnicodeRange",t[t.CDO=10]="CDO",t[t.CDC=11]="CDC",t[t.Colon=12]="Colon",t[t.SemiColon=13]="SemiColon",t[t.CurlyL=14]="CurlyL",t[t.CurlyR=15]="CurlyR",t[t.ParenthesisL=16]="ParenthesisL",t[t.ParenthesisR=17]="ParenthesisR",t[t.BracketL=18]="BracketL",t[t.BracketR=19]="BracketR",t[t.Whitespace=20]="Whitespace",t[t.Includes=21]="Includes",t[t.Dashmatch=22]="Dashmatch",t[t.SubstringOperator=23]="SubstringOperator",t[t.PrefixOperator=24]="PrefixOperator",t[t.SuffixOperator=25]="SuffixOperator",t[t.Delim=26]="Delim",t[t.EMS=27]="EMS",t[t.EXS=28]="EXS",t[t.Length=29]="Length",t[t.Angle=30]="Angle",t[t.Time=31]="Time",t[t.Freq=32]="Freq",t[t.Exclamation=33]="Exclamation",t[t.Resolution=34]="Resolution",t[t.Comma=35]="Comma",t[t.Charset=36]="Charset",t[t.EscapedJavaScript=37]="EscapedJavaScript",t[t.BadEscapedJavaScript=38]="BadEscapedJavaScript",t[t.Comment=39]="Comment",t[t.SingleLineComment=40]="SingleLineComment",t[t.EOF=41]="EOF",t[t.CustomToken=42]="CustomToken"})(p||(p={}));var ao=function(){function t(e){this.source=e,this.len=e.length,this.position=0}return t.prototype.substring=function(e,n){return n===void 0&&(n=this.position),this.source.substring(e,n)},t.prototype.eos=function(){return this.len<=this.position},t.prototype.pos=function(){return this.position},t.prototype.goBackTo=function(e){this.position=e},t.prototype.goBack=function(e){this.position-=e},t.prototype.advance=function(e){this.position+=e},t.prototype.nextChar=function(){return this.source.charCodeAt(this.position++)||0},t.prototype.peekChar=function(e){return e===void 0&&(e=0),this.source.charCodeAt(this.position+e)||0},t.prototype.lookbackChar=function(e){return e===void 0&&(e=0),this.source.charCodeAt(this.position-e)||0},t.prototype.advanceIfChar=function(e){return e===this.source.charCodeAt(this.position)?(this.position++,!0):!1},t.prototype.advanceIfChars=function(e){if(this.position+e.length>this.source.length)return!1;for(var n=0;n<e.length;n++)if(this.source.charCodeAt(this.position+n)!==e[n])return!1;return this.advance(n),!0},t.prototype.advanceWhileChar=function(e){for(var n=this.position;this.position<this.len&&e(this.source.charCodeAt(this.position));)this.position++;return this.position-n},t}(),Zn=97,oo=102,lo=122,er=65,co=70,ho=90,fn=48,mn=57,Pd=126,Id=94,gn=61,Td=124,kt=45,uo=95,Wd=37,ai=42,po=40,fo=41,Od=60,Ud=62,Vd=64,Bd=35,qd=36,oi=92,mo=47,Ht=10,Gt=13,bn=12,go=34,bo=39,li=32,ci=9,jd=59,$d=58,Hd=123,Gd=125,Jd=91,Xd=93,Yd=44,vo=46,yo=33,
|
|
17
|
-
`),!0}return!1},t.prototype._escape=function(e,n){var r=this.stream.peekChar();if(r===oi){this.stream.advance(1),r=this.stream.peekChar();for(var i=0;i<6&&(r>=fn&&r<=mn||r>=Zn&&r<=oo||r>=er&&r<=co);)this.stream.advance(1),r=this.stream.peekChar(),i++;if(i>0){try{var s=parseInt(this.stream.substring(this.stream.pos()-i),16);s&&e.push(String.fromCharCode(s))}catch{}return r===li||r===ci?this.stream.advance(1):this._newline([]),!0}if(r!==Gt&&r!==bn&&r!==Ht)return this.stream.advance(1),e.push(String.fromCharCode(r)),!0;if(n)return this._newline(e)}return!1},t.prototype._stringChar=function(e,n){var r=this.stream.peekChar();return r!==0&&r!==e&&r!==oi&&r!==Gt&&r!==bn&&r!==Ht?(this.stream.advance(1),n.push(String.fromCharCode(r)),!0):!1},t.prototype._string=function(e){if(this.stream.peekChar()===bo||this.stream.peekChar()===go){var n=this.stream.nextChar();for(e.push(String.fromCharCode(n));this._stringChar(n,e)||this._escape(e,!0););return this.stream.peekChar()===n?(this.stream.nextChar(),e.push(String.fromCharCode(n)),p.String):p.BadString}return null},t.prototype._unquotedChar=function(e){var n=this.stream.peekChar();return n!==0&&n!==oi&&n!==bo&&n!==go&&n!==po&&n!==fo&&n!==li&&n!==ci&&n!==Ht&&n!==bn&&n!==Gt?(this.stream.advance(1),e.push(String.fromCharCode(n)),!0):!1},t.prototype._unquotedString=function(e){for(var n=!1;this._unquotedChar(e)||this._escape(e);)n=!0;return n},t.prototype._whitespace=function(){var e=this.stream.advanceWhileChar(function(n){return n===li||n===ci||n===Ht||n===bn||n===Gt});return e>0},t.prototype._name=function(e){for(var n=!1;this._identChar(e)||this._escape(e);)n=!0;return n},t.prototype.ident=function(e){var n=this.stream.pos(),r=this._minus(e);if(r){if(this._minus(e)||this._identFirstChar(e)||this._escape(e)){for(;this._identChar(e)||this._escape(e););return!0}}else if(this._identFirstChar(e)||this._escape(e)){for(;this._identChar(e)||this._escape(e););return!0}return this.stream.goBackTo(n),!1},t.prototype._identFirstChar=function(e){var n=this.stream.peekChar();return n===uo||n>=Zn&&n<=lo||n>=er&&n<=ho||n>=128&&n<=65535?(this.stream.advance(1),e.push(String.fromCharCode(n)),!0):!1},t.prototype._minus=function(e){var n=this.stream.peekChar();return n===kt?(this.stream.advance(1),e.push(String.fromCharCode(n)),!0):!1},t.prototype._identChar=function(e){var n=this.stream.peekChar();return n===uo||n===kt||n>=Zn&&n<=lo||n>=er&&n<=ho||n>=fn&&n<=mn||n>=128&&n<=65535?(this.stream.advance(1),e.push(String.fromCharCode(n)),!0):!1},t.prototype._unicodeRange=function(){if(this.stream.advanceIfChar(Kd)){var e=function(i){return i>=fn&&i<=mn||i>=Zn&&i<=oo||i>=er&&i<=co},n=this.stream.advanceWhileChar(e)+this.stream.advanceWhileChar(function(i){return i===Qd});if(n>=1&&n<=6)if(this.stream.advanceIfChar(kt)){var r=this.stream.advanceWhileChar(e);if(r>=1&&r<=6)return!0}else return!0}return!1},t}();function ge(t,e){if(t.length<e.length)return!1;for(var n=0;n<e.length;n++)if(t[n]!==e[n])return!1;return!0}function wo(t,e){var n=t.length-e.length;return n>0?t.lastIndexOf(e)===n:n===0?t===e:!1}function Zd(t,e,n){n===void 0&&(n=4);var r=Math.abs(t.length-e.length);if(r>n)return 0;var i=[],s=[],a,o;for(a=0;a<e.length+1;++a)s.push(0);for(a=0;a<t.length+1;++a)i.push(s);for(a=1;a<t.length+1;++a)for(o=1;o<e.length+1;++o)t[a-1]===e[o-1]?i[a][o]=i[a-1][o-1]+1:i[a][o]=Math.max(i[a-1][o],i[a][o-1]);return i[t.length][e.length]-Math.sqrt(r)}function xo(t,e){return e===void 0&&(e=!0),t?t.length<140?t:t.slice(0,140)+(e?"…":""):""}function eu(t,e){var n=e.exec(t);return n&&n[0].length?t.substr(0,t.length-n[0].length):t}function So(t,e){for(var n="";e>0;)(e&1)===1&&(n+=t),t+=t,e=e>>>1;return n}var O=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),v;(function(t){t[t.Undefined=0]="Undefined",t[t.Identifier=1]="Identifier",t[t.Stylesheet=2]="Stylesheet",t[t.Ruleset=3]="Ruleset",t[t.Selector=4]="Selector",t[t.SimpleSelector=5]="SimpleSelector",t[t.SelectorInterpolation=6]="SelectorInterpolation",t[t.SelectorCombinator=7]="SelectorCombinator",t[t.SelectorCombinatorParent=8]="SelectorCombinatorParent",t[t.SelectorCombinatorSibling=9]="SelectorCombinatorSibling",t[t.SelectorCombinatorAllSiblings=10]="SelectorCombinatorAllSiblings",t[t.SelectorCombinatorShadowPiercingDescendant=11]="SelectorCombinatorShadowPiercingDescendant",t[t.Page=12]="Page",t[t.PageBoxMarginBox=13]="PageBoxMarginBox",t[t.ClassSelector=14]="ClassSelector",t[t.IdentifierSelector=15]="IdentifierSelector",t[t.ElementNameSelector=16]="ElementNameSelector",t[t.PseudoSelector=17]="PseudoSelector",t[t.AttributeSelector=18]="AttributeSelector",t[t.Declaration=19]="Declaration",t[t.Declarations=20]="Declarations",t[t.Property=21]="Property",t[t.Expression=22]="Expression",t[t.BinaryExpression=23]="BinaryExpression",t[t.Term=24]="Term",t[t.Operator=25]="Operator",t[t.Value=26]="Value",t[t.StringLiteral=27]="StringLiteral",t[t.URILiteral=28]="URILiteral",t[t.EscapedValue=29]="EscapedValue",t[t.Function=30]="Function",t[t.NumericValue=31]="NumericValue",t[t.HexColorValue=32]="HexColorValue",t[t.RatioValue=33]="RatioValue",t[t.MixinDeclaration=34]="MixinDeclaration",t[t.MixinReference=35]="MixinReference",t[t.VariableName=36]="VariableName",t[t.VariableDeclaration=37]="VariableDeclaration",t[t.Prio=38]="Prio",t[t.Interpolation=39]="Interpolation",t[t.NestedProperties=40]="NestedProperties",t[t.ExtendsReference=41]="ExtendsReference",t[t.SelectorPlaceholder=42]="SelectorPlaceholder",t[t.Debug=43]="Debug",t[t.If=44]="If",t[t.Else=45]="Else",t[t.For=46]="For",t[t.Each=47]="Each",t[t.While=48]="While",t[t.MixinContentReference=49]="MixinContentReference",t[t.MixinContentDeclaration=50]="MixinContentDeclaration",t[t.Media=51]="Media",t[t.Keyframe=52]="Keyframe",t[t.FontFace=53]="FontFace",t[t.Import=54]="Import",t[t.Namespace=55]="Namespace",t[t.Invocation=56]="Invocation",t[t.FunctionDeclaration=57]="FunctionDeclaration",t[t.ReturnStatement=58]="ReturnStatement",t[t.MediaQuery=59]="MediaQuery",t[t.MediaCondition=60]="MediaCondition",t[t.MediaFeature=61]="MediaFeature",t[t.FunctionParameter=62]="FunctionParameter",t[t.FunctionArgument=63]="FunctionArgument",t[t.KeyframeSelector=64]="KeyframeSelector",t[t.ViewPort=65]="ViewPort",t[t.Document=66]="Document",t[t.AtApplyRule=67]="AtApplyRule",t[t.CustomPropertyDeclaration=68]="CustomPropertyDeclaration",t[t.CustomPropertySet=69]="CustomPropertySet",t[t.ListEntry=70]="ListEntry",t[t.Supports=71]="Supports",t[t.SupportsCondition=72]="SupportsCondition",t[t.NamespacePrefix=73]="NamespacePrefix",t[t.GridLine=74]="GridLine",t[t.Plugin=75]="Plugin",t[t.UnknownAtRule=76]="UnknownAtRule",t[t.Use=77]="Use",t[t.ModuleConfiguration=78]="ModuleConfiguration",t[t.Forward=79]="Forward",t[t.ForwardVisibility=80]="ForwardVisibility",t[t.Module=81]="Module",t[t.UnicodeRange=82]="UnicodeRange"})(v||(v={}));var Z;(function(t){t[t.Mixin=0]="Mixin",t[t.Rule=1]="Rule",t[t.Variable=2]="Variable",t[t.Function=3]="Function",t[t.Keyframe=4]="Keyframe",t[t.Unknown=5]="Unknown",t[t.Module=6]="Module",t[t.Forward=7]="Forward",t[t.ForwardVisibility=8]="ForwardVisibility"})(Z||(Z={}));function hi(t,e){var n=null;return!t||e<t.offset||e>t.end?null:(t.accept(function(r){return r.offset===-1&&r.length===-1?!0:r.offset<=e&&r.end>=e?(n?r.length<=n.length&&(n=r):n=r,!0):!1}),n)}function di(t,e){for(var n=hi(t,e),r=[];n;)r.unshift(n),n=n.parent;return r}function tu(t){var e=t.findParent(v.Declaration),n=e&&e.getValue();return n&&n.encloses(t)?e:null}var U=function(){function t(e,n,r){e===void 0&&(e=-1),n===void 0&&(n=-1),this.parent=null,this.offset=e,this.length=n,r&&(this.nodeType=r)}return Object.defineProperty(t.prototype,"end",{get:function(){return this.offset+this.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return this.nodeType||v.Undefined},set:function(e){this.nodeType=e},enumerable:!1,configurable:!0}),t.prototype.getTextProvider=function(){for(var e=this;e&&!e.textProvider;)e=e.parent;return e?e.textProvider:function(){return"unknown"}},t.prototype.getText=function(){return this.getTextProvider()(this.offset,this.length)},t.prototype.matches=function(e){return this.length===e.length&&this.getTextProvider()(this.offset,this.length)===e},t.prototype.startsWith=function(e){return this.length>=e.length&&this.getTextProvider()(this.offset,e.length)===e},t.prototype.endsWith=function(e){return this.length>=e.length&&this.getTextProvider()(this.end-e.length,e.length)===e},t.prototype.accept=function(e){if(e(this)&&this.children)for(var n=0,r=this.children;n<r.length;n++){var i=r[n];i.accept(e)}},t.prototype.acceptVisitor=function(e){this.accept(e.visitNode.bind(e))},t.prototype.adoptChild=function(e,n){if(n===void 0&&(n=-1),e.parent&&e.parent.children){var r=e.parent.children.indexOf(e);r>=0&&e.parent.children.splice(r,1)}e.parent=this;var i=this.children;return i||(i=this.children=[]),n!==-1?i.splice(n,0,e):i.push(e),e},t.prototype.attachTo=function(e,n){return n===void 0&&(n=-1),e&&e.adoptChild(this,n),this},t.prototype.collectIssues=function(e){this.issues&&e.push.apply(e,this.issues)},t.prototype.addIssue=function(e){this.issues||(this.issues=[]),this.issues.push(e)},t.prototype.hasIssue=function(e){return Array.isArray(this.issues)&&this.issues.some(function(n){return n.getRule()===e})},t.prototype.isErroneous=function(e){return e===void 0&&(e=!1),this.issues&&this.issues.length>0?!0:e&&Array.isArray(this.children)&&this.children.some(function(n){return n.isErroneous(!0)})},t.prototype.setNode=function(e,n,r){return r===void 0&&(r=-1),n?(n.attachTo(this,r),this[e]=n,!0):!1},t.prototype.addChild=function(e){return e?(this.children||(this.children=[]),e.attachTo(this),this.updateOffsetAndLength(e),!0):!1},t.prototype.updateOffsetAndLength=function(e){(e.offset<this.offset||this.offset===-1)&&(this.offset=e.offset);var n=e.end;(n>this.end||this.length===-1)&&(this.length=n-this.offset)},t.prototype.hasChildren=function(){return!!this.children&&this.children.length>0},t.prototype.getChildren=function(){return this.children?this.children.slice(0):[]},t.prototype.getChild=function(e){return this.children&&e<this.children.length?this.children[e]:null},t.prototype.addChildren=function(e){for(var n=0,r=e;n<r.length;n++){var i=r[n];this.addChild(i)}},t.prototype.findFirstChildBeforeOffset=function(e){if(this.children){for(var n=null,r=this.children.length-1;r>=0;r--)if(n=this.children[r],n.offset<=e)return n}return null},t.prototype.findChildAtOffset=function(e,n){var r=this.findFirstChildBeforeOffset(e);return r&&r.end>=e?n&&r.findChildAtOffset(e,!0)||r:null},t.prototype.encloses=function(e){return this.offset<=e.offset&&this.offset+this.length>=e.offset+e.length},t.prototype.getParent=function(){for(var e=this.parent;e instanceof ke;)e=e.parent;return e},t.prototype.findParent=function(e){for(var n=this;n&&n.type!==e;)n=n.parent;return n},t.prototype.findAParent=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];for(var r=this;r&&!e.some(function(i){return r.type===i});)r=r.parent;return r},t.prototype.setData=function(e,n){this.options||(this.options={}),this.options[e]=n},t.prototype.getData=function(e){return!this.options||!this.options.hasOwnProperty(e)?null:this.options[e]},t}(),ke=function(t){O(e,t);function e(n,r){r===void 0&&(r=-1);var i=t.call(this,-1,-1)||this;return i.attachTo(n,r),i.offset=-1,i.length=-1,i}return e}(U),nu=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.UnicodeRange},enumerable:!1,configurable:!0}),e.prototype.setRangeStart=function(n){return this.setNode("rangeStart",n)},e.prototype.getRangeStart=function(){return this.rangeStart},e.prototype.setRangeEnd=function(n){return this.setNode("rangeEnd",n)},e.prototype.getRangeEnd=function(){return this.rangeEnd},e}(U),We=function(t){O(e,t);function e(n,r){var i=t.call(this,n,r)||this;return i.isCustomProperty=!1,i}return Object.defineProperty(e.prototype,"type",{get:function(){return v.Identifier},enumerable:!1,configurable:!0}),e.prototype.containsInterpolation=function(){return this.hasChildren()},e}(U),ru=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.Stylesheet},enumerable:!1,configurable:!0}),e}(U),ui=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.Declarations},enumerable:!1,configurable:!0}),e}(U),he=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return e.prototype.getDeclarations=function(){return this.declarations},e.prototype.setDeclarations=function(n){return this.setNode("declarations",n)},e}(U),Jt=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.Ruleset},enumerable:!1,configurable:!0}),e.prototype.getSelectors=function(){return this.selectors||(this.selectors=new ke(this)),this.selectors},e.prototype.isNested=function(){return!!this.parent&&this.parent.findParent(v.Declarations)!==null},e}(he),yn=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.Selector},enumerable:!1,configurable:!0}),e}(U),Xt=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.SimpleSelector},enumerable:!1,configurable:!0}),e}(U);(function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.AtApplyRule},enumerable:!1,configurable:!0}),e.prototype.setIdentifier=function(n){return this.setNode("identifier",n,0)},e.prototype.getIdentifier=function(){return this.identifier},e.prototype.getName=function(){return this.identifier?this.identifier.getText():""},e})(U);var pi=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return e}(U),iu=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.CustomPropertySet},enumerable:!1,configurable:!0}),e}(he),Ze=function(t){O(e,t);function e(n,r){var i=t.call(this,n,r)||this;return i.property=null,i}return Object.defineProperty(e.prototype,"type",{get:function(){return v.Declaration},enumerable:!1,configurable:!0}),e.prototype.setProperty=function(n){return this.setNode("property",n)},e.prototype.getProperty=function(){return this.property},e.prototype.getFullPropertyName=function(){var n=this.property?this.property.getName():"unknown";if(this.parent instanceof ui&&this.parent.getParent()instanceof ko){var r=this.parent.getParent().getParent();if(r instanceof e)return r.getFullPropertyName()+n}return n},e.prototype.getNonPrefixedPropertyName=function(){var n=this.getFullPropertyName();if(n&&n.charAt(0)==="-"){var r=n.indexOf("-",1);if(r!==-1)return n.substring(r+1)}return n},e.prototype.setValue=function(n){return this.setNode("value",n)},e.prototype.getValue=function(){return this.value},e.prototype.setNestedProperties=function(n){return this.setNode("nestedProperties",n)},e.prototype.getNestedProperties=function(){return this.nestedProperties},e}(pi),su=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.CustomPropertyDeclaration},enumerable:!1,configurable:!0}),e.prototype.setPropertySet=function(n){return this.setNode("propertySet",n)},e.prototype.getPropertySet=function(){return this.propertySet},e}(Ze),fi=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.Property},enumerable:!1,configurable:!0}),e.prototype.setIdentifier=function(n){return this.setNode("identifier",n)},e.prototype.getIdentifier=function(){return this.identifier},e.prototype.getName=function(){return eu(this.getText(),/[_\+]+$/)},e.prototype.isCustomProperty=function(){return!!this.identifier&&this.identifier.isCustomProperty},e}(U),au=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.Invocation},enumerable:!1,configurable:!0}),e.prototype.getArguments=function(){return this.arguments||(this.arguments=new ke(this)),this.arguments},e}(U),wn=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.Function},enumerable:!1,configurable:!0}),e.prototype.setIdentifier=function(n){return this.setNode("identifier",n,0)},e.prototype.getIdentifier=function(){return this.identifier},e.prototype.getName=function(){return this.identifier?this.identifier.getText():""},e}(au),tr=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.FunctionParameter},enumerable:!1,configurable:!0}),e.prototype.setIdentifier=function(n){return this.setNode("identifier",n,0)},e.prototype.getIdentifier=function(){return this.identifier},e.prototype.getName=function(){return this.identifier?this.identifier.getText():""},e.prototype.setDefaultValue=function(n){return this.setNode("defaultValue",n,0)},e.prototype.getDefaultValue=function(){return this.defaultValue},e}(U),Yt=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.FunctionArgument},enumerable:!1,configurable:!0}),e.prototype.setIdentifier=function(n){return this.setNode("identifier",n,0)},e.prototype.getIdentifier=function(){return this.identifier},e.prototype.getName=function(){return this.identifier?this.identifier.getText():""},e.prototype.setValue=function(n){return this.setNode("value",n,0)},e.prototype.getValue=function(){return this.value},e}(U),ou=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.If},enumerable:!1,configurable:!0}),e.prototype.setExpression=function(n){return this.setNode("expression",n,0)},e.prototype.setElseClause=function(n){return this.setNode("elseClause",n)},e}(he),lu=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.For},enumerable:!1,configurable:!0}),e.prototype.setVariable=function(n){return this.setNode("variable",n,0)},e}(he),cu=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.Each},enumerable:!1,configurable:!0}),e.prototype.getVariables=function(){return this.variables||(this.variables=new ke(this)),this.variables},e}(he),hu=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.While},enumerable:!1,configurable:!0}),e}(he),du=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.Else},enumerable:!1,configurable:!0}),e}(he),nr=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.FunctionDeclaration},enumerable:!1,configurable:!0}),e.prototype.setIdentifier=function(n){return this.setNode("identifier",n,0)},e.prototype.getIdentifier=function(){return this.identifier},e.prototype.getName=function(){return this.identifier?this.identifier.getText():""},e.prototype.getParameters=function(){return this.parameters||(this.parameters=new ke(this)),this.parameters},e}(he),uu=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.ViewPort},enumerable:!1,configurable:!0}),e}(he),Co=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.FontFace},enumerable:!1,configurable:!0}),e}(he),ko=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.NestedProperties},enumerable:!1,configurable:!0}),e}(he),_o=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.Keyframe},enumerable:!1,configurable:!0}),e.prototype.setKeyword=function(n){return this.setNode("keyword",n,0)},e.prototype.getKeyword=function(){return this.keyword},e.prototype.setIdentifier=function(n){return this.setNode("identifier",n,0)},e.prototype.getIdentifier=function(){return this.identifier},e.prototype.getName=function(){return this.identifier?this.identifier.getText():""},e}(he),Eo=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.KeyframeSelector},enumerable:!1,configurable:!0}),e}(he),mi=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.Import},enumerable:!1,configurable:!0}),e.prototype.setMedialist=function(n){return n?(n.attachTo(this),!0):!1},e}(U),pu=function(t){O(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.Use},enumerable:!1,configurable:!0}),e.prototype.getParameters=function(){return this.parameters||(this.parameters=new ke(this)),this.parameters},e.prototype.setIdentifier=function(n){return this.setNode("identifier",n,0)},e.prototype.getIdentifier=function(){return this.identifier},e}(U),fu=function(t){O(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.ModuleConfiguration},enumerable:!1,configurable:!0}),e.prototype.setIdentifier=function(n){return this.setNode("identifier",n,0)},e.prototype.getIdentifier=function(){return this.identifier},e.prototype.getName=function(){return this.identifier?this.identifier.getText():""},e.prototype.setValue=function(n){return this.setNode("value",n,0)},e.prototype.getValue=function(){return this.value},e}(U),mu=function(t){O(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.Forward},enumerable:!1,configurable:!0}),e.prototype.setIdentifier=function(n){return this.setNode("identifier",n,0)},e.prototype.getIdentifier=function(){return this.identifier},e.prototype.getMembers=function(){return this.members||(this.members=new ke(this)),this.members},e.prototype.getParameters=function(){return this.parameters||(this.parameters=new ke(this)),this.parameters},e}(U),gu=function(t){O(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.ForwardVisibility},enumerable:!1,configurable:!0}),e.prototype.setIdentifier=function(n){return this.setNode("identifier",n,0)},e.prototype.getIdentifier=function(){return this.identifier},e}(U),bu=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.Namespace},enumerable:!1,configurable:!0}),e}(U),Ro=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.Media},enumerable:!1,configurable:!0}),e}(he),gi=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.Supports},enumerable:!1,configurable:!0}),e}(he),vu=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.Document},enumerable:!1,configurable:!0}),e}(he),Fo=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return e.prototype.getMediums=function(){return this.mediums||(this.mediums=new ke(this)),this.mediums},e}(U),Do=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.MediaQuery},enumerable:!1,configurable:!0}),e}(U),yu=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.MediaCondition},enumerable:!1,configurable:!0}),e}(U),wu=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.MediaFeature},enumerable:!1,configurable:!0}),e}(U),xn=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.SupportsCondition},enumerable:!1,configurable:!0}),e}(U),xu=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.Page},enumerable:!1,configurable:!0}),e}(he),Su=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.PageBoxMarginBox},enumerable:!1,configurable:!0}),e}(he),Ao=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.Expression},enumerable:!1,configurable:!0}),e}(U),bi=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.BinaryExpression},enumerable:!1,configurable:!0}),e.prototype.setLeft=function(n){return this.setNode("left",n)},e.prototype.getLeft=function(){return this.left},e.prototype.setRight=function(n){return this.setNode("right",n)},e.prototype.getRight=function(){return this.right},e.prototype.setOperator=function(n){return this.setNode("operator",n)},e.prototype.getOperator=function(){return this.operator},e}(U),Cu=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.Term},enumerable:!1,configurable:!0}),e.prototype.setOperator=function(n){return this.setNode("operator",n)},e.prototype.getOperator=function(){return this.operator},e.prototype.setExpression=function(n){return this.setNode("expression",n)},e.prototype.getExpression=function(){return this.expression},e}(U),ku=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.AttributeSelector},enumerable:!1,configurable:!0}),e.prototype.setNamespacePrefix=function(n){return this.setNode("namespacePrefix",n)},e.prototype.getNamespacePrefix=function(){return this.namespacePrefix},e.prototype.setIdentifier=function(n){return this.setNode("identifier",n)},e.prototype.getIdentifier=function(){return this.identifier},e.prototype.setOperator=function(n){return this.setNode("operator",n)},e.prototype.getOperator=function(){return this.operator},e.prototype.setValue=function(n){return this.setNode("value",n)},e.prototype.getValue=function(){return this.value},e}(U);(function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.Operator},enumerable:!1,configurable:!0}),e})(U);var vi=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.HexColorValue},enumerable:!1,configurable:!0}),e}(U),_u=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.RatioValue},enumerable:!1,configurable:!0}),e}(U),Eu=46,Ru=48,Fu=57,yi=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.NumericValue},enumerable:!1,configurable:!0}),e.prototype.getValue=function(){for(var n=this.getText(),r=0,i,s=0,a=n.length;s<a&&(i=n.charCodeAt(s),Ru<=i&&i<=Fu||i===Eu);s++)r+=1;return{value:n.substring(0,r),unit:r<n.length?n.substring(r):void 0}},e}(U),rr=function(t){O(e,t);function e(n,r){var i=t.call(this,n,r)||this;return i.variable=null,i.value=null,i.needsSemicolon=!0,i}return Object.defineProperty(e.prototype,"type",{get:function(){return v.VariableDeclaration},enumerable:!1,configurable:!0}),e.prototype.setVariable=function(n){return n?(n.attachTo(this),this.variable=n,!0):!1},e.prototype.getVariable=function(){return this.variable},e.prototype.getName=function(){return this.variable?this.variable.getName():""},e.prototype.setValue=function(n){return n?(n.attachTo(this),this.value=n,!0):!1},e.prototype.getValue=function(){return this.value},e}(pi),wi=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.Interpolation},enumerable:!1,configurable:!0}),e}(U),xi=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.VariableName},enumerable:!1,configurable:!0}),e.prototype.getName=function(){return this.getText()},e}(U),Sn=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.ExtendsReference},enumerable:!1,configurable:!0}),e.prototype.getSelectors=function(){return this.selectors||(this.selectors=new ke(this)),this.selectors},e}(U),Du=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.MixinContentReference},enumerable:!1,configurable:!0}),e.prototype.getArguments=function(){return this.arguments||(this.arguments=new ke(this)),this.arguments},e}(U),Au=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.MixinContentReference},enumerable:!1,configurable:!0}),e.prototype.getParameters=function(){return this.parameters||(this.parameters=new ke(this)),this.parameters},e}(he),ir=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.MixinReference},enumerable:!1,configurable:!0}),e.prototype.getNamespaces=function(){return this.namespaces||(this.namespaces=new ke(this)),this.namespaces},e.prototype.setIdentifier=function(n){return this.setNode("identifier",n,0)},e.prototype.getIdentifier=function(){return this.identifier},e.prototype.getName=function(){return this.identifier?this.identifier.getText():""},e.prototype.getArguments=function(){return this.arguments||(this.arguments=new ke(this)),this.arguments},e.prototype.setContent=function(n){return this.setNode("content",n)},e.prototype.getContent=function(){return this.content},e}(U),Cn=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.MixinDeclaration},enumerable:!1,configurable:!0}),e.prototype.setIdentifier=function(n){return this.setNode("identifier",n,0)},e.prototype.getIdentifier=function(){return this.identifier},e.prototype.getName=function(){return this.identifier?this.identifier.getText():""},e.prototype.getParameters=function(){return this.parameters||(this.parameters=new ke(this)),this.parameters},e.prototype.setGuard=function(n){return n&&(n.attachTo(this),this.guard=n),!1},e}(he),No=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.UnknownAtRule},enumerable:!1,configurable:!0}),e.prototype.setAtRuleName=function(n){this.atRuleName=n},e.prototype.getAtRuleName=function(){return this.atRuleName},e}(he),Nu=function(t){O(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.ListEntry},enumerable:!1,configurable:!0}),e.prototype.setKey=function(n){return this.setNode("key",n,0)},e.prototype.setValue=function(n){return this.setNode("value",n,1)},e}(U),Mu=function(t){O(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getConditions=function(){return this.conditions||(this.conditions=new ke(this)),this.conditions},e}(U),zu=function(t){O(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.setVariable=function(n){return this.setNode("variable",n)},e}(U),Mo=function(t){O(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.Module},enumerable:!1,configurable:!0}),e.prototype.setIdentifier=function(n){return this.setNode("identifier",n,0)},e.prototype.getIdentifier=function(){return this.identifier},e}(U),Pe;(function(t){t[t.Ignore=1]="Ignore",t[t.Warning=2]="Warning",t[t.Error=4]="Error"})(Pe||(Pe={}));var zo=function(){function t(e,n,r,i,s,a){s===void 0&&(s=e.offset),a===void 0&&(a=e.length),this.node=e,this.rule=n,this.level=r,this.message=i||n.message,this.offset=s,this.length=a}return t.prototype.getRule=function(){return this.rule},t.prototype.getLevel=function(){return this.level},t.prototype.getOffset=function(){return this.offset},t.prototype.getLength=function(){return this.length},t.prototype.getNode=function(){return this.node},t.prototype.getMessage=function(){return this.message},t}(),Lu=function(){function t(){this.entries=[]}return t.entries=function(e){var n=new t;return e.acceptVisitor(n),n.entries},t.prototype.visitNode=function(e){return e.isErroneous()&&e.collectIssues(this.entries),!0},t}();function Pu(t,e){let n;return e.length===0?n=t:n=t.replace(/\{(\d+)\}/g,(r,i)=>{let s=i[0];return typeof e[s]<"u"?e[s]:r}),n}function Iu(t,e,...n){return Pu(e,n)}function Ge(t){return Iu}var ee=Ge(),te=function(){function t(e,n){this.id=e,this.message=n}return t}(),S={NumberExpected:new te("css-numberexpected",ee("expected.number","number expected")),ConditionExpected:new te("css-conditionexpected",ee("expected.condt","condition expected")),RuleOrSelectorExpected:new te("css-ruleorselectorexpected",ee("expected.ruleorselector","at-rule or selector expected")),DotExpected:new te("css-dotexpected",ee("expected.dot","dot expected")),ColonExpected:new te("css-colonexpected",ee("expected.colon","colon expected")),SemiColonExpected:new te("css-semicolonexpected",ee("expected.semicolon","semi-colon expected")),TermExpected:new te("css-termexpected",ee("expected.term","term expected")),ExpressionExpected:new te("css-expressionexpected",ee("expected.expression","expression expected")),OperatorExpected:new te("css-operatorexpected",ee("expected.operator","operator expected")),IdentifierExpected:new te("css-identifierexpected",ee("expected.ident","identifier expected")),PercentageExpected:new te("css-percentageexpected",ee("expected.percentage","percentage expected")),URIOrStringExpected:new te("css-uriorstringexpected",ee("expected.uriorstring","uri or string expected")),URIExpected:new te("css-uriexpected",ee("expected.uri","URI expected")),VariableNameExpected:new te("css-varnameexpected",ee("expected.varname","variable name expected")),VariableValueExpected:new te("css-varvalueexpected",ee("expected.varvalue","variable value expected")),PropertyValueExpected:new te("css-propertyvalueexpected",ee("expected.propvalue","property value expected")),LeftCurlyExpected:new te("css-lcurlyexpected",ee("expected.lcurly","{ expected")),RightCurlyExpected:new te("css-rcurlyexpected",ee("expected.rcurly","} expected")),LeftSquareBracketExpected:new te("css-rbracketexpected",ee("expected.lsquare","[ expected")),RightSquareBracketExpected:new te("css-lbracketexpected",ee("expected.rsquare","] expected")),LeftParenthesisExpected:new te("css-lparentexpected",ee("expected.lparen","( expected")),RightParenthesisExpected:new te("css-rparentexpected",ee("expected.rparent",") expected")),CommaExpected:new te("css-commaexpected",ee("expected.comma","comma expected")),PageDirectiveOrDeclarationExpected:new te("css-pagedirordeclexpected",ee("expected.pagedirordecl","page directive or declaraton expected")),UnknownAtRule:new te("css-unknownatrule",ee("unknown.atrule","at-rule unknown")),UnknownKeyword:new te("css-unknownkeyword",ee("unknown.keyword","unknown keyword")),SelectorExpected:new te("css-selectorexpected",ee("expected.selector","selector expected")),StringLiteralExpected:new te("css-stringliteralexpected",ee("expected.stringliteral","string literal expected")),WhitespaceExpected:new te("css-whitespaceexpected",ee("expected.whitespace","whitespace expected")),MediaQueryExpected:new te("css-mediaqueryexpected",ee("expected.mediaquery","media query expected")),IdentifierOrWildcardExpected:new te("css-idorwildcardexpected",ee("expected.idorwildcard","identifier or wildcard expected")),WildcardExpected:new te("css-wildcardexpected",ee("expected.wildcard","wildcard expected")),IdentifierOrVariableExpected:new te("css-idorvarexpected",ee("expected.idorvar","identifier or variable expected"))},Lo;(function(t){t.MIN_VALUE=-2147483648,t.MAX_VALUE=2147483647})(Lo||(Lo={}));var sr;(function(t){t.MIN_VALUE=0,t.MAX_VALUE=2147483647})(sr||(sr={}));var Fe;(function(t){function e(r,i){return r===Number.MAX_VALUE&&(r=sr.MAX_VALUE),i===Number.MAX_VALUE&&(i=sr.MAX_VALUE),{line:r,character:i}}t.create=e;function n(r){var i=r;return E.objectLiteral(i)&&E.uinteger(i.line)&&E.uinteger(i.character)}t.is=n})(Fe||(Fe={}));var ie;(function(t){function e(r,i,s,a){if(E.uinteger(r)&&E.uinteger(i)&&E.uinteger(s)&&E.uinteger(a))return{start:Fe.create(r,i),end:Fe.create(s,a)};if(Fe.is(r)&&Fe.is(i))return{start:r,end:i};throw new Error("Range#create called with invalid arguments["+r+", "+i+", "+s+", "+a+"]")}t.create=e;function n(r){var i=r;return E.objectLiteral(i)&&Fe.is(i.start)&&Fe.is(i.end)}t.is=n})(ie||(ie={}));var kn;(function(t){function e(r,i){return{uri:r,range:i}}t.create=e;function n(r){var i=r;return E.defined(i)&&ie.is(i.range)&&(E.string(i.uri)||E.undefined(i.uri))}t.is=n})(kn||(kn={}));var Po;(function(t){function e(r,i,s,a){return{targetUri:r,targetRange:i,targetSelectionRange:s,originSelectionRange:a}}t.create=e;function n(r){var i=r;return E.defined(i)&&ie.is(i.targetRange)&&E.string(i.targetUri)&&(ie.is(i.targetSelectionRange)||E.undefined(i.targetSelectionRange))&&(ie.is(i.originSelectionRange)||E.undefined(i.originSelectionRange))}t.is=n})(Po||(Po={}));var Si;(function(t){function e(r,i,s,a){return{red:r,green:i,blue:s,alpha:a}}t.create=e;function n(r){var i=r;return E.numberRange(i.red,0,1)&&E.numberRange(i.green,0,1)&&E.numberRange(i.blue,0,1)&&E.numberRange(i.alpha,0,1)}t.is=n})(Si||(Si={}));var Io;(function(t){function e(r,i){return{range:r,color:i}}t.create=e;function n(r){var i=r;return ie.is(i.range)&&Si.is(i.color)}t.is=n})(Io||(Io={}));var To;(function(t){function e(r,i,s){return{label:r,textEdit:i,additionalTextEdits:s}}t.create=e;function n(r){var i=r;return E.string(i.label)&&(E.undefined(i.textEdit)||H.is(i))&&(E.undefined(i.additionalTextEdits)||E.typedArray(i.additionalTextEdits,H.is))}t.is=n})(To||(To={}));var Wo;(function(t){t.Comment="comment",t.Imports="imports",t.Region="region"})(Wo||(Wo={}));var Oo;(function(t){function e(r,i,s,a,o){var l={startLine:r,endLine:i};return E.defined(s)&&(l.startCharacter=s),E.defined(a)&&(l.endCharacter=a),E.defined(o)&&(l.kind=o),l}t.create=e;function n(r){var i=r;return E.uinteger(i.startLine)&&E.uinteger(i.startLine)&&(E.undefined(i.startCharacter)||E.uinteger(i.startCharacter))&&(E.undefined(i.endCharacter)||E.uinteger(i.endCharacter))&&(E.undefined(i.kind)||E.string(i.kind))}t.is=n})(Oo||(Oo={}));var Ci;(function(t){function e(r,i){return{location:r,message:i}}t.create=e;function n(r){var i=r;return E.defined(i)&&kn.is(i.location)&&E.string(i.message)}t.is=n})(Ci||(Ci={}));var ar;(function(t){t.Error=1,t.Warning=2,t.Information=3,t.Hint=4})(ar||(ar={}));var Uo;(function(t){t.Unnecessary=1,t.Deprecated=2})(Uo||(Uo={}));var Vo;(function(t){function e(n){var r=n;return r!=null&&E.string(r.href)}t.is=e})(Vo||(Vo={}));var or;(function(t){function e(r,i,s,a,o,l){var c={range:r,message:i};return E.defined(s)&&(c.severity=s),E.defined(a)&&(c.code=a),E.defined(o)&&(c.source=o),E.defined(l)&&(c.relatedInformation=l),c}t.create=e;function n(r){var i,s=r;return E.defined(s)&&ie.is(s.range)&&E.string(s.message)&&(E.number(s.severity)||E.undefined(s.severity))&&(E.integer(s.code)||E.string(s.code)||E.undefined(s.code))&&(E.undefined(s.codeDescription)||E.string((i=s.codeDescription)===null||i===void 0?void 0:i.href))&&(E.string(s.source)||E.undefined(s.source))&&(E.undefined(s.relatedInformation)||E.typedArray(s.relatedInformation,Ci.is))}t.is=n})(or||(or={}));var Qt;(function(t){function e(r,i){for(var s=[],a=2;a<arguments.length;a++)s[a-2]=arguments[a];var o={title:r,command:i};return E.defined(s)&&s.length>0&&(o.arguments=s),o}t.create=e;function n(r){var i=r;return E.defined(i)&&E.string(i.title)&&E.string(i.command)}t.is=n})(Qt||(Qt={}));var H;(function(t){function e(s,a){return{range:s,newText:a}}t.replace=e;function n(s,a){return{range:{start:s,end:s},newText:a}}t.insert=n;function r(s){return{range:s,newText:""}}t.del=r;function i(s){var a=s;return E.objectLiteral(a)&&E.string(a.newText)&&ie.is(a.range)}t.is=i})(H||(H={}));var Kt;(function(t){function e(r,i,s){var a={label:r};return i!==void 0&&(a.needsConfirmation=i),s!==void 0&&(a.description=s),a}t.create=e;function n(r){var i=r;return i!==void 0&&E.objectLiteral(i)&&E.string(i.label)&&(E.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(E.string(i.description)||i.description===void 0)}t.is=n})(Kt||(Kt={}));var Ee;(function(t){function e(n){var r=n;return typeof r=="string"}t.is=e})(Ee||(Ee={}));var vt;(function(t){function e(s,a,o){return{range:s,newText:a,annotationId:o}}t.replace=e;function n(s,a,o){return{range:{start:s,end:s},newText:a,annotationId:o}}t.insert=n;function r(s,a){return{range:s,newText:"",annotationId:a}}t.del=r;function i(s){var a=s;return H.is(a)&&(Kt.is(a.annotationId)||Ee.is(a.annotationId))}t.is=i})(vt||(vt={}));var _n;(function(t){function e(r,i){return{textDocument:r,edits:i}}t.create=e;function n(r){var i=r;return E.defined(i)&&cr.is(i.textDocument)&&Array.isArray(i.edits)}t.is=n})(_n||(_n={}));var En;(function(t){function e(r,i,s){var a={kind:"create",uri:r};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(a.options=i),s!==void 0&&(a.annotationId=s),a}t.create=e;function n(r){var i=r;return i&&i.kind==="create"&&E.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||E.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||E.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Ee.is(i.annotationId))}t.is=n})(En||(En={}));var Rn;(function(t){function e(r,i,s,a){var o={kind:"rename",oldUri:r,newUri:i};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(o.options=s),a!==void 0&&(o.annotationId=a),o}t.create=e;function n(r){var i=r;return i&&i.kind==="rename"&&E.string(i.oldUri)&&E.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||E.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||E.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Ee.is(i.annotationId))}t.is=n})(Rn||(Rn={}));var Fn;(function(t){function e(r,i,s){var a={kind:"delete",uri:r};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(a.options=i),s!==void 0&&(a.annotationId=s),a}t.create=e;function n(r){var i=r;return i&&i.kind==="delete"&&E.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||E.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||E.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||Ee.is(i.annotationId))}t.is=n})(Fn||(Fn={}));var ki;(function(t){function e(n){var r=n;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(function(i){return E.string(i.kind)?En.is(i)||Rn.is(i)||Fn.is(i):_n.is(i)}))}t.is=e})(ki||(ki={}));var lr=function(){function t(e,n){this.edits=e,this.changeAnnotations=n}return t.prototype.insert=function(e,n,r){var i,s;if(r===void 0?i=H.insert(e,n):Ee.is(r)?(s=r,i=vt.insert(e,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),s=this.changeAnnotations.manage(r),i=vt.insert(e,n,s)),this.edits.push(i),s!==void 0)return s},t.prototype.replace=function(e,n,r){var i,s;if(r===void 0?i=H.replace(e,n):Ee.is(r)?(s=r,i=vt.replace(e,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),s=this.changeAnnotations.manage(r),i=vt.replace(e,n,s)),this.edits.push(i),s!==void 0)return s},t.prototype.delete=function(e,n){var r,i;if(n===void 0?r=H.del(e):Ee.is(n)?(i=n,r=vt.del(e,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=vt.del(e,i)),this.edits.push(r),i!==void 0)return i},t.prototype.add=function(e){this.edits.push(e)},t.prototype.all=function(){return this.edits},t.prototype.clear=function(){this.edits.splice(0,this.edits.length)},t.prototype.assertChangeAnnotations=function(e){if(e===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},t}(),Bo=function(){function t(e){this._annotations=e===void 0?Object.create(null):e,this._counter=0,this._size=0}return t.prototype.all=function(){return this._annotations},Object.defineProperty(t.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),t.prototype.manage=function(e,n){var r;if(Ee.is(e)?r=e:(r=this.nextId(),n=e),this._annotations[r]!==void 0)throw new Error("Id "+r+" is already in use.");if(n===void 0)throw new Error("No annotation provided for id "+r);return this._annotations[r]=n,this._size++,r},t.prototype.nextId=function(){return this._counter++,this._counter.toString()},t}();(function(){function t(e){var n=this;this._textEditChanges=Object.create(null),e!==void 0?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new Bo(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach(function(r){if(_n.is(r)){var i=new lr(r.edits,n._changeAnnotations);n._textEditChanges[r.textDocument.uri]=i}})):e.changes&&Object.keys(e.changes).forEach(function(r){var i=new lr(e.changes[r]);n._textEditChanges[r]=i})):this._workspaceEdit={}}return Object.defineProperty(t.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),t.prototype.getTextEditChange=function(e){if(cr.is(e)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var n={uri:e.uri,version:e.version},r=this._textEditChanges[n.uri];if(!r){var i=[],s={textDocument:n,edits:i};this._workspaceEdit.documentChanges.push(s),r=new lr(i,this._changeAnnotations),this._textEditChanges[n.uri]=r}return r}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var r=this._textEditChanges[e];if(!r){var i=[];this._workspaceEdit.changes[e]=i,r=new lr(i),this._textEditChanges[e]=r}return r}},t.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new Bo,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},t.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},t.prototype.createFile=function(e,n,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i;Kt.is(n)||Ee.is(n)?i=n:r=n;var s,a;if(i===void 0?s=En.create(e,r):(a=Ee.is(i)?i:this._changeAnnotations.manage(i),s=En.create(e,r,a)),this._workspaceEdit.documentChanges.push(s),a!==void 0)return a},t.prototype.renameFile=function(e,n,r,i){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var s;Kt.is(r)||Ee.is(r)?s=r:i=r;var a,o;if(s===void 0?a=Rn.create(e,n,i):(o=Ee.is(s)?s:this._changeAnnotations.manage(s),a=Rn.create(e,n,i,o)),this._workspaceEdit.documentChanges.push(a),o!==void 0)return o},t.prototype.deleteFile=function(e,n,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i;Kt.is(n)||Ee.is(n)?i=n:r=n;var s,a;if(i===void 0?s=Fn.create(e,r):(a=Ee.is(i)?i:this._changeAnnotations.manage(i),s=Fn.create(e,r,a)),this._workspaceEdit.documentChanges.push(s),a!==void 0)return a},t})();var qo;(function(t){function e(r){return{uri:r}}t.create=e;function n(r){var i=r;return E.defined(i)&&E.string(i.uri)}t.is=n})(qo||(qo={}));var _i;(function(t){function e(r,i){return{uri:r,version:i}}t.create=e;function n(r){var i=r;return E.defined(i)&&E.string(i.uri)&&E.integer(i.version)}t.is=n})(_i||(_i={}));var cr;(function(t){function e(r,i){return{uri:r,version:i}}t.create=e;function n(r){var i=r;return E.defined(i)&&E.string(i.uri)&&(i.version===null||E.integer(i.version))}t.is=n})(cr||(cr={}));var jo;(function(t){function e(r,i,s,a){return{uri:r,languageId:i,version:s,text:a}}t.create=e;function n(r){var i=r;return E.defined(i)&&E.string(i.uri)&&E.string(i.languageId)&&E.integer(i.version)&&E.string(i.text)}t.is=n})(jo||(jo={}));var Oe;(function(t){t.PlainText="plaintext",t.Markdown="markdown"})(Oe||(Oe={})),function(t){function e(n){var r=n;return r===t.PlainText||r===t.Markdown}t.is=e}(Oe||(Oe={}));var Ei;(function(t){function e(n){var r=n;return E.objectLiteral(n)&&Oe.is(r.kind)&&E.string(r.value)}t.is=e})(Ei||(Ei={}));var $;(function(t){t.Text=1,t.Method=2,t.Function=3,t.Constructor=4,t.Field=5,t.Variable=6,t.Class=7,t.Interface=8,t.Module=9,t.Property=10,t.Unit=11,t.Value=12,t.Enum=13,t.Keyword=14,t.Snippet=15,t.Color=16,t.File=17,t.Reference=18,t.Folder=19,t.EnumMember=20,t.Constant=21,t.Struct=22,t.Event=23,t.Operator=24,t.TypeParameter=25})($||($={}));var Ie;(function(t){t.PlainText=1,t.Snippet=2})(Ie||(Ie={}));var _t;(function(t){t.Deprecated=1})(_t||(_t={}));var $o;(function(t){function e(r,i,s){return{newText:r,insert:i,replace:s}}t.create=e;function n(r){var i=r;return i&&E.string(i.newText)&&ie.is(i.insert)&&ie.is(i.replace)}t.is=n})($o||($o={}));var Ho;(function(t){t.asIs=1,t.adjustIndentation=2})(Ho||(Ho={}));var Go;(function(t){function e(n){return{label:n}}t.create=e})(Go||(Go={}));var Jo;(function(t){function e(n,r){return{items:n||[],isIncomplete:!!r}}t.create=e})(Jo||(Jo={}));var hr;(function(t){function e(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}t.fromPlainText=e;function n(r){var i=r;return E.string(i)||E.objectLiteral(i)&&E.string(i.language)&&E.string(i.value)}t.is=n})(hr||(hr={}));var Xo;(function(t){function e(n){var r=n;return!!r&&E.objectLiteral(r)&&(Ei.is(r.contents)||hr.is(r.contents)||E.typedArray(r.contents,hr.is))&&(n.range===void 0||ie.is(n.range))}t.is=e})(Xo||(Xo={}));var Yo;(function(t){function e(n,r){return r?{label:n,documentation:r}:{label:n}}t.create=e})(Yo||(Yo={}));var Qo;(function(t){function e(n,r){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var a={label:n};return E.defined(r)&&(a.documentation=r),E.defined(i)?a.parameters=i:a.parameters=[],a}t.create=e})(Qo||(Qo={}));var Zt;(function(t){t.Text=1,t.Read=2,t.Write=3})(Zt||(Zt={}));var Ko;(function(t){function e(n,r){var i={range:n};return E.number(r)&&(i.kind=r),i}t.create=e})(Ko||(Ko={}));var Et;(function(t){t.File=1,t.Module=2,t.Namespace=3,t.Package=4,t.Class=5,t.Method=6,t.Property=7,t.Field=8,t.Constructor=9,t.Enum=10,t.Interface=11,t.Function=12,t.Variable=13,t.Constant=14,t.String=15,t.Number=16,t.Boolean=17,t.Array=18,t.Object=19,t.Key=20,t.Null=21,t.EnumMember=22,t.Struct=23,t.Event=24,t.Operator=25,t.TypeParameter=26})(Et||(Et={}));var Zo;(function(t){t.Deprecated=1})(Zo||(Zo={}));var el;(function(t){function e(n,r,i,s,a){var o={name:n,kind:r,location:{uri:s,range:i}};return a&&(o.containerName=a),o}t.create=e})(el||(el={}));var tl;(function(t){function e(r,i,s,a,o,l){var c={name:r,detail:i,kind:s,range:a,selectionRange:o};return l!==void 0&&(c.children=l),c}t.create=e;function n(r){var i=r;return i&&E.string(i.name)&&E.number(i.kind)&&ie.is(i.range)&&ie.is(i.selectionRange)&&(i.detail===void 0||E.string(i.detail))&&(i.deprecated===void 0||E.boolean(i.deprecated))&&(i.children===void 0||Array.isArray(i.children))&&(i.tags===void 0||Array.isArray(i.tags))}t.is=n})(tl||(tl={}));var Ri;(function(t){t.Empty="",t.QuickFix="quickfix",t.Refactor="refactor",t.RefactorExtract="refactor.extract",t.RefactorInline="refactor.inline",t.RefactorRewrite="refactor.rewrite",t.Source="source",t.SourceOrganizeImports="source.organizeImports",t.SourceFixAll="source.fixAll"})(Ri||(Ri={}));var nl;(function(t){function e(r,i){var s={diagnostics:r};return i!=null&&(s.only=i),s}t.create=e;function n(r){var i=r;return E.defined(i)&&E.typedArray(i.diagnostics,or.is)&&(i.only===void 0||E.typedArray(i.only,E.string))}t.is=n})(nl||(nl={}));var Fi;(function(t){function e(r,i,s){var a={title:r},o=!0;return typeof i=="string"?(o=!1,a.kind=i):Qt.is(i)?a.command=i:a.edit=i,o&&s!==void 0&&(a.kind=s),a}t.create=e;function n(r){var i=r;return i&&E.string(i.title)&&(i.diagnostics===void 0||E.typedArray(i.diagnostics,or.is))&&(i.kind===void 0||E.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||Qt.is(i.command))&&(i.isPreferred===void 0||E.boolean(i.isPreferred))&&(i.edit===void 0||ki.is(i.edit))}t.is=n})(Fi||(Fi={}));var rl;(function(t){function e(r,i){var s={range:r};return E.defined(i)&&(s.data=i),s}t.create=e;function n(r){var i=r;return E.defined(i)&&ie.is(i.range)&&(E.undefined(i.command)||Qt.is(i.command))}t.is=n})(rl||(rl={}));var il;(function(t){function e(r,i){return{tabSize:r,insertSpaces:i}}t.create=e;function n(r){var i=r;return E.defined(i)&&E.uinteger(i.tabSize)&&E.boolean(i.insertSpaces)}t.is=n})(il||(il={}));var sl;(function(t){function e(r,i,s){return{range:r,target:i,data:s}}t.create=e;function n(r){var i=r;return E.defined(i)&&ie.is(i.range)&&(E.undefined(i.target)||E.string(i.target))}t.is=n})(sl||(sl={}));var dr;(function(t){function e(r,i){return{range:r,parent:i}}t.create=e;function n(r){var i=r;return i!==void 0&&ie.is(i.range)&&(i.parent===void 0||t.is(i.parent))}t.is=n})(dr||(dr={}));var al;(function(t){function e(s,a,o,l){return new Tu(s,a,o,l)}t.create=e;function n(s){var a=s;return!!(E.defined(a)&&E.string(a.uri)&&(E.undefined(a.languageId)||E.string(a.languageId))&&E.uinteger(a.lineCount)&&E.func(a.getText)&&E.func(a.positionAt)&&E.func(a.offsetAt))}t.is=n;function r(s,a){for(var o=s.getText(),l=i(a,function(g,b){var y=g.range.start.line-b.range.start.line;return y===0?g.range.start.character-b.range.start.character:y}),c=o.length,h=l.length-1;h>=0;h--){var u=l[h],f=s.offsetAt(u.range.start),m=s.offsetAt(u.range.end);if(m<=c)o=o.substring(0,f)+u.newText+o.substring(m,o.length);else throw new Error("Overlapping edit");c=f}return o}t.applyEdits=r;function i(s,a){if(s.length<=1)return s;var o=s.length/2|0,l=s.slice(0,o),c=s.slice(o);i(l,a),i(c,a);for(var h=0,u=0,f=0;h<l.length&&u<c.length;){var m=a(l[h],c[u]);m<=0?s[f++]=l[h++]:s[f++]=c[u++]}for(;h<l.length;)s[f++]=l[h++];for(;u<c.length;)s[f++]=c[u++];return s}})(al||(al={}));var Tu=function(){function t(e,n,r,i){this._uri=e,this._languageId=n,this._version=r,this._content=i,this._lineOffsets=void 0}return Object.defineProperty(t.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),t.prototype.getText=function(e){if(e){var n=this.offsetAt(e.start),r=this.offsetAt(e.end);return this._content.substring(n,r)}return this._content},t.prototype.update=function(e,n){this._content=e.text,this._version=n,this._lineOffsets=void 0},t.prototype.getLineOffsets=function(){if(this._lineOffsets===void 0){for(var e=[],n=this._content,r=!0,i=0;i<n.length;i++){r&&(e.push(i),r=!1);var s=n.charAt(i);r=s==="\r"||s===`
|
|
16
|
+
*-----------------------------------------------------------------------------*/var p;(function(t){t[t.Ident=0]="Ident",t[t.AtKeyword=1]="AtKeyword",t[t.String=2]="String",t[t.BadString=3]="BadString",t[t.UnquotedString=4]="UnquotedString",t[t.Hash=5]="Hash",t[t.Num=6]="Num",t[t.Percentage=7]="Percentage",t[t.Dimension=8]="Dimension",t[t.UnicodeRange=9]="UnicodeRange",t[t.CDO=10]="CDO",t[t.CDC=11]="CDC",t[t.Colon=12]="Colon",t[t.SemiColon=13]="SemiColon",t[t.CurlyL=14]="CurlyL",t[t.CurlyR=15]="CurlyR",t[t.ParenthesisL=16]="ParenthesisL",t[t.ParenthesisR=17]="ParenthesisR",t[t.BracketL=18]="BracketL",t[t.BracketR=19]="BracketR",t[t.Whitespace=20]="Whitespace",t[t.Includes=21]="Includes",t[t.Dashmatch=22]="Dashmatch",t[t.SubstringOperator=23]="SubstringOperator",t[t.PrefixOperator=24]="PrefixOperator",t[t.SuffixOperator=25]="SuffixOperator",t[t.Delim=26]="Delim",t[t.EMS=27]="EMS",t[t.EXS=28]="EXS",t[t.Length=29]="Length",t[t.Angle=30]="Angle",t[t.Time=31]="Time",t[t.Freq=32]="Freq",t[t.Exclamation=33]="Exclamation",t[t.Resolution=34]="Resolution",t[t.Comma=35]="Comma",t[t.Charset=36]="Charset",t[t.EscapedJavaScript=37]="EscapedJavaScript",t[t.BadEscapedJavaScript=38]="BadEscapedJavaScript",t[t.Comment=39]="Comment",t[t.SingleLineComment=40]="SingleLineComment",t[t.EOF=41]="EOF",t[t.CustomToken=42]="CustomToken"})(p||(p={}));var ao=function(){function t(e){this.source=e,this.len=e.length,this.position=0}return t.prototype.substring=function(e,n){return n===void 0&&(n=this.position),this.source.substring(e,n)},t.prototype.eos=function(){return this.len<=this.position},t.prototype.pos=function(){return this.position},t.prototype.goBackTo=function(e){this.position=e},t.prototype.goBack=function(e){this.position-=e},t.prototype.advance=function(e){this.position+=e},t.prototype.nextChar=function(){return this.source.charCodeAt(this.position++)||0},t.prototype.peekChar=function(e){return e===void 0&&(e=0),this.source.charCodeAt(this.position+e)||0},t.prototype.lookbackChar=function(e){return e===void 0&&(e=0),this.source.charCodeAt(this.position-e)||0},t.prototype.advanceIfChar=function(e){return e===this.source.charCodeAt(this.position)?(this.position++,!0):!1},t.prototype.advanceIfChars=function(e){if(this.position+e.length>this.source.length)return!1;for(var n=0;n<e.length;n++)if(this.source.charCodeAt(this.position+n)!==e[n])return!1;return this.advance(n),!0},t.prototype.advanceWhileChar=function(e){for(var n=this.position;this.position<this.len&&e(this.source.charCodeAt(this.position));)this.position++;return this.position-n},t}(),Zn=97,oo=102,lo=122,er=65,co=70,ho=90,fn=48,mn=57,Pd=126,Id=94,gn=61,Td=124,kt=45,uo=95,Wd=37,ai=42,po=40,fo=41,Od=60,Ud=62,Vd=64,Bd=35,qd=36,oi=92,mo=47,Ht=10,Gt=13,bn=12,go=34,bo=39,li=32,ci=9,jd=59,$d=58,Hd=123,Gd=125,Jd=91,Xd=93,Yd=44,vo=46,yo=33,Kd=63,Qd=43,Qe={};Qe[jd]=p.SemiColon,Qe[$d]=p.Colon,Qe[Hd]=p.CurlyL,Qe[Gd]=p.CurlyR,Qe[Xd]=p.BracketR,Qe[Jd]=p.BracketL,Qe[po]=p.ParenthesisL,Qe[fo]=p.ParenthesisR,Qe[Yd]=p.Comma;var me={};me.em=p.EMS,me.ex=p.EXS,me.px=p.Length,me.cm=p.Length,me.mm=p.Length,me.in=p.Length,me.pt=p.Length,me.pc=p.Length,me.deg=p.Angle,me.rad=p.Angle,me.grad=p.Angle,me.ms=p.Time,me.s=p.Time,me.hz=p.Freq,me.khz=p.Freq,me["%"]=p.Percentage,me.fr=p.Percentage,me.dpi=p.Resolution,me.dpcm=p.Resolution;var vn=function(){function t(){this.stream=new ao(""),this.ignoreComment=!0,this.ignoreWhitespace=!0,this.inURL=!1}return t.prototype.setSource=function(e){this.stream=new ao(e)},t.prototype.finishToken=function(e,n,r){return{offset:e,len:this.stream.pos()-e,type:n,text:r||this.stream.substring(e)}},t.prototype.substring=function(e,n){return this.stream.substring(e,e+n)},t.prototype.pos=function(){return this.stream.pos()},t.prototype.goBackTo=function(e){this.stream.goBackTo(e)},t.prototype.scanUnquotedString=function(){var e=this.stream.pos(),n=[];return this._unquotedString(n)?this.finishToken(e,p.UnquotedString,n.join("")):null},t.prototype.scan=function(){var e=this.trivia();if(e!==null)return e;var n=this.stream.pos();return this.stream.eos()?this.finishToken(n,p.EOF):this.scanNext(n)},t.prototype.tryScanUnicode=function(){var e=this.stream.pos();if(!this.stream.eos()&&this._unicodeRange())return this.finishToken(e,p.UnicodeRange);this.stream.goBackTo(e)},t.prototype.scanNext=function(e){if(this.stream.advanceIfChars([Od,yo,kt,kt]))return this.finishToken(e,p.CDO);if(this.stream.advanceIfChars([kt,kt,Ud]))return this.finishToken(e,p.CDC);var n=[];if(this.ident(n))return this.finishToken(e,p.Ident,n.join(""));if(this.stream.advanceIfChar(Vd))if(n=["@"],this._name(n)){var r=n.join("");return r==="@charset"?this.finishToken(e,p.Charset,r):this.finishToken(e,p.AtKeyword,r)}else return this.finishToken(e,p.Delim);if(this.stream.advanceIfChar(Bd))return n=["#"],this._name(n)?this.finishToken(e,p.Hash,n.join("")):this.finishToken(e,p.Delim);if(this.stream.advanceIfChar(yo))return this.finishToken(e,p.Exclamation);if(this._number()){var i=this.stream.pos();if(n=[this.stream.substring(e,i)],this.stream.advanceIfChar(Wd))return this.finishToken(e,p.Percentage);if(this.ident(n)){var s=this.stream.substring(i).toLowerCase(),a=me[s];return typeof a<"u"?this.finishToken(e,a,n.join("")):this.finishToken(e,p.Dimension,n.join(""))}return this.finishToken(e,p.Num)}n=[];var o=this._string(n);return o!==null?this.finishToken(e,o,n.join("")):(o=Qe[this.stream.peekChar()],typeof o<"u"?(this.stream.advance(1),this.finishToken(e,o)):this.stream.peekChar(0)===Pd&&this.stream.peekChar(1)===gn?(this.stream.advance(2),this.finishToken(e,p.Includes)):this.stream.peekChar(0)===Td&&this.stream.peekChar(1)===gn?(this.stream.advance(2),this.finishToken(e,p.Dashmatch)):this.stream.peekChar(0)===ai&&this.stream.peekChar(1)===gn?(this.stream.advance(2),this.finishToken(e,p.SubstringOperator)):this.stream.peekChar(0)===Id&&this.stream.peekChar(1)===gn?(this.stream.advance(2),this.finishToken(e,p.PrefixOperator)):this.stream.peekChar(0)===qd&&this.stream.peekChar(1)===gn?(this.stream.advance(2),this.finishToken(e,p.SuffixOperator)):(this.stream.nextChar(),this.finishToken(e,p.Delim)))},t.prototype.trivia=function(){for(;;){var e=this.stream.pos();if(this._whitespace()){if(!this.ignoreWhitespace)return this.finishToken(e,p.Whitespace)}else if(this.comment()){if(!this.ignoreComment)return this.finishToken(e,p.Comment)}else return null}},t.prototype.comment=function(){if(this.stream.advanceIfChars([mo,ai])){var e=!1,n=!1;return this.stream.advanceWhileChar(function(r){return n&&r===mo?(e=!0,!1):(n=r===ai,!0)}),e&&this.stream.advance(1),!0}return!1},t.prototype._number=function(){var e=0,n;return this.stream.peekChar()===vo&&(e=1),n=this.stream.peekChar(e),n>=fn&&n<=mn?(this.stream.advance(e+1),this.stream.advanceWhileChar(function(r){return r>=fn&&r<=mn||e===0&&r===vo}),!0):!1},t.prototype._newline=function(e){var n=this.stream.peekChar();switch(n){case Gt:case bn:case Ht:return this.stream.advance(1),e.push(String.fromCharCode(n)),n===Gt&&this.stream.advanceIfChar(Ht)&&e.push(`
|
|
17
|
+
`),!0}return!1},t.prototype._escape=function(e,n){var r=this.stream.peekChar();if(r===oi){this.stream.advance(1),r=this.stream.peekChar();for(var i=0;i<6&&(r>=fn&&r<=mn||r>=Zn&&r<=oo||r>=er&&r<=co);)this.stream.advance(1),r=this.stream.peekChar(),i++;if(i>0){try{var s=parseInt(this.stream.substring(this.stream.pos()-i),16);s&&e.push(String.fromCharCode(s))}catch{}return r===li||r===ci?this.stream.advance(1):this._newline([]),!0}if(r!==Gt&&r!==bn&&r!==Ht)return this.stream.advance(1),e.push(String.fromCharCode(r)),!0;if(n)return this._newline(e)}return!1},t.prototype._stringChar=function(e,n){var r=this.stream.peekChar();return r!==0&&r!==e&&r!==oi&&r!==Gt&&r!==bn&&r!==Ht?(this.stream.advance(1),n.push(String.fromCharCode(r)),!0):!1},t.prototype._string=function(e){if(this.stream.peekChar()===bo||this.stream.peekChar()===go){var n=this.stream.nextChar();for(e.push(String.fromCharCode(n));this._stringChar(n,e)||this._escape(e,!0););return this.stream.peekChar()===n?(this.stream.nextChar(),e.push(String.fromCharCode(n)),p.String):p.BadString}return null},t.prototype._unquotedChar=function(e){var n=this.stream.peekChar();return n!==0&&n!==oi&&n!==bo&&n!==go&&n!==po&&n!==fo&&n!==li&&n!==ci&&n!==Ht&&n!==bn&&n!==Gt?(this.stream.advance(1),e.push(String.fromCharCode(n)),!0):!1},t.prototype._unquotedString=function(e){for(var n=!1;this._unquotedChar(e)||this._escape(e);)n=!0;return n},t.prototype._whitespace=function(){var e=this.stream.advanceWhileChar(function(n){return n===li||n===ci||n===Ht||n===bn||n===Gt});return e>0},t.prototype._name=function(e){for(var n=!1;this._identChar(e)||this._escape(e);)n=!0;return n},t.prototype.ident=function(e){var n=this.stream.pos(),r=this._minus(e);if(r){if(this._minus(e)||this._identFirstChar(e)||this._escape(e)){for(;this._identChar(e)||this._escape(e););return!0}}else if(this._identFirstChar(e)||this._escape(e)){for(;this._identChar(e)||this._escape(e););return!0}return this.stream.goBackTo(n),!1},t.prototype._identFirstChar=function(e){var n=this.stream.peekChar();return n===uo||n>=Zn&&n<=lo||n>=er&&n<=ho||n>=128&&n<=65535?(this.stream.advance(1),e.push(String.fromCharCode(n)),!0):!1},t.prototype._minus=function(e){var n=this.stream.peekChar();return n===kt?(this.stream.advance(1),e.push(String.fromCharCode(n)),!0):!1},t.prototype._identChar=function(e){var n=this.stream.peekChar();return n===uo||n===kt||n>=Zn&&n<=lo||n>=er&&n<=ho||n>=fn&&n<=mn||n>=128&&n<=65535?(this.stream.advance(1),e.push(String.fromCharCode(n)),!0):!1},t.prototype._unicodeRange=function(){if(this.stream.advanceIfChar(Qd)){var e=function(i){return i>=fn&&i<=mn||i>=Zn&&i<=oo||i>=er&&i<=co},n=this.stream.advanceWhileChar(e)+this.stream.advanceWhileChar(function(i){return i===Kd});if(n>=1&&n<=6)if(this.stream.advanceIfChar(kt)){var r=this.stream.advanceWhileChar(e);if(r>=1&&r<=6)return!0}else return!0}return!1},t}();function ge(t,e){if(t.length<e.length)return!1;for(var n=0;n<e.length;n++)if(t[n]!==e[n])return!1;return!0}function wo(t,e){var n=t.length-e.length;return n>0?t.lastIndexOf(e)===n:n===0?t===e:!1}function Zd(t,e,n){n===void 0&&(n=4);var r=Math.abs(t.length-e.length);if(r>n)return 0;var i=[],s=[],a,o;for(a=0;a<e.length+1;++a)s.push(0);for(a=0;a<t.length+1;++a)i.push(s);for(a=1;a<t.length+1;++a)for(o=1;o<e.length+1;++o)t[a-1]===e[o-1]?i[a][o]=i[a-1][o-1]+1:i[a][o]=Math.max(i[a-1][o],i[a][o-1]);return i[t.length][e.length]-Math.sqrt(r)}function xo(t,e){return e===void 0&&(e=!0),t?t.length<140?t:t.slice(0,140)+(e?"…":""):""}function eu(t,e){var n=e.exec(t);return n&&n[0].length?t.substr(0,t.length-n[0].length):t}function So(t,e){for(var n="";e>0;)(e&1)===1&&(n+=t),t+=t,e=e>>>1;return n}var O=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),v;(function(t){t[t.Undefined=0]="Undefined",t[t.Identifier=1]="Identifier",t[t.Stylesheet=2]="Stylesheet",t[t.Ruleset=3]="Ruleset",t[t.Selector=4]="Selector",t[t.SimpleSelector=5]="SimpleSelector",t[t.SelectorInterpolation=6]="SelectorInterpolation",t[t.SelectorCombinator=7]="SelectorCombinator",t[t.SelectorCombinatorParent=8]="SelectorCombinatorParent",t[t.SelectorCombinatorSibling=9]="SelectorCombinatorSibling",t[t.SelectorCombinatorAllSiblings=10]="SelectorCombinatorAllSiblings",t[t.SelectorCombinatorShadowPiercingDescendant=11]="SelectorCombinatorShadowPiercingDescendant",t[t.Page=12]="Page",t[t.PageBoxMarginBox=13]="PageBoxMarginBox",t[t.ClassSelector=14]="ClassSelector",t[t.IdentifierSelector=15]="IdentifierSelector",t[t.ElementNameSelector=16]="ElementNameSelector",t[t.PseudoSelector=17]="PseudoSelector",t[t.AttributeSelector=18]="AttributeSelector",t[t.Declaration=19]="Declaration",t[t.Declarations=20]="Declarations",t[t.Property=21]="Property",t[t.Expression=22]="Expression",t[t.BinaryExpression=23]="BinaryExpression",t[t.Term=24]="Term",t[t.Operator=25]="Operator",t[t.Value=26]="Value",t[t.StringLiteral=27]="StringLiteral",t[t.URILiteral=28]="URILiteral",t[t.EscapedValue=29]="EscapedValue",t[t.Function=30]="Function",t[t.NumericValue=31]="NumericValue",t[t.HexColorValue=32]="HexColorValue",t[t.RatioValue=33]="RatioValue",t[t.MixinDeclaration=34]="MixinDeclaration",t[t.MixinReference=35]="MixinReference",t[t.VariableName=36]="VariableName",t[t.VariableDeclaration=37]="VariableDeclaration",t[t.Prio=38]="Prio",t[t.Interpolation=39]="Interpolation",t[t.NestedProperties=40]="NestedProperties",t[t.ExtendsReference=41]="ExtendsReference",t[t.SelectorPlaceholder=42]="SelectorPlaceholder",t[t.Debug=43]="Debug",t[t.If=44]="If",t[t.Else=45]="Else",t[t.For=46]="For",t[t.Each=47]="Each",t[t.While=48]="While",t[t.MixinContentReference=49]="MixinContentReference",t[t.MixinContentDeclaration=50]="MixinContentDeclaration",t[t.Media=51]="Media",t[t.Keyframe=52]="Keyframe",t[t.FontFace=53]="FontFace",t[t.Import=54]="Import",t[t.Namespace=55]="Namespace",t[t.Invocation=56]="Invocation",t[t.FunctionDeclaration=57]="FunctionDeclaration",t[t.ReturnStatement=58]="ReturnStatement",t[t.MediaQuery=59]="MediaQuery",t[t.MediaCondition=60]="MediaCondition",t[t.MediaFeature=61]="MediaFeature",t[t.FunctionParameter=62]="FunctionParameter",t[t.FunctionArgument=63]="FunctionArgument",t[t.KeyframeSelector=64]="KeyframeSelector",t[t.ViewPort=65]="ViewPort",t[t.Document=66]="Document",t[t.AtApplyRule=67]="AtApplyRule",t[t.CustomPropertyDeclaration=68]="CustomPropertyDeclaration",t[t.CustomPropertySet=69]="CustomPropertySet",t[t.ListEntry=70]="ListEntry",t[t.Supports=71]="Supports",t[t.SupportsCondition=72]="SupportsCondition",t[t.NamespacePrefix=73]="NamespacePrefix",t[t.GridLine=74]="GridLine",t[t.Plugin=75]="Plugin",t[t.UnknownAtRule=76]="UnknownAtRule",t[t.Use=77]="Use",t[t.ModuleConfiguration=78]="ModuleConfiguration",t[t.Forward=79]="Forward",t[t.ForwardVisibility=80]="ForwardVisibility",t[t.Module=81]="Module",t[t.UnicodeRange=82]="UnicodeRange"})(v||(v={}));var Z;(function(t){t[t.Mixin=0]="Mixin",t[t.Rule=1]="Rule",t[t.Variable=2]="Variable",t[t.Function=3]="Function",t[t.Keyframe=4]="Keyframe",t[t.Unknown=5]="Unknown",t[t.Module=6]="Module",t[t.Forward=7]="Forward",t[t.ForwardVisibility=8]="ForwardVisibility"})(Z||(Z={}));function hi(t,e){var n=null;return!t||e<t.offset||e>t.end?null:(t.accept(function(r){return r.offset===-1&&r.length===-1?!0:r.offset<=e&&r.end>=e?(n?r.length<=n.length&&(n=r):n=r,!0):!1}),n)}function di(t,e){for(var n=hi(t,e),r=[];n;)r.unshift(n),n=n.parent;return r}function tu(t){var e=t.findParent(v.Declaration),n=e&&e.getValue();return n&&n.encloses(t)?e:null}var U=function(){function t(e,n,r){e===void 0&&(e=-1),n===void 0&&(n=-1),this.parent=null,this.offset=e,this.length=n,r&&(this.nodeType=r)}return Object.defineProperty(t.prototype,"end",{get:function(){return this.offset+this.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return this.nodeType||v.Undefined},set:function(e){this.nodeType=e},enumerable:!1,configurable:!0}),t.prototype.getTextProvider=function(){for(var e=this;e&&!e.textProvider;)e=e.parent;return e?e.textProvider:function(){return"unknown"}},t.prototype.getText=function(){return this.getTextProvider()(this.offset,this.length)},t.prototype.matches=function(e){return this.length===e.length&&this.getTextProvider()(this.offset,this.length)===e},t.prototype.startsWith=function(e){return this.length>=e.length&&this.getTextProvider()(this.offset,e.length)===e},t.prototype.endsWith=function(e){return this.length>=e.length&&this.getTextProvider()(this.end-e.length,e.length)===e},t.prototype.accept=function(e){if(e(this)&&this.children)for(var n=0,r=this.children;n<r.length;n++){var i=r[n];i.accept(e)}},t.prototype.acceptVisitor=function(e){this.accept(e.visitNode.bind(e))},t.prototype.adoptChild=function(e,n){if(n===void 0&&(n=-1),e.parent&&e.parent.children){var r=e.parent.children.indexOf(e);r>=0&&e.parent.children.splice(r,1)}e.parent=this;var i=this.children;return i||(i=this.children=[]),n!==-1?i.splice(n,0,e):i.push(e),e},t.prototype.attachTo=function(e,n){return n===void 0&&(n=-1),e&&e.adoptChild(this,n),this},t.prototype.collectIssues=function(e){this.issues&&e.push.apply(e,this.issues)},t.prototype.addIssue=function(e){this.issues||(this.issues=[]),this.issues.push(e)},t.prototype.hasIssue=function(e){return Array.isArray(this.issues)&&this.issues.some(function(n){return n.getRule()===e})},t.prototype.isErroneous=function(e){return e===void 0&&(e=!1),this.issues&&this.issues.length>0?!0:e&&Array.isArray(this.children)&&this.children.some(function(n){return n.isErroneous(!0)})},t.prototype.setNode=function(e,n,r){return r===void 0&&(r=-1),n?(n.attachTo(this,r),this[e]=n,!0):!1},t.prototype.addChild=function(e){return e?(this.children||(this.children=[]),e.attachTo(this),this.updateOffsetAndLength(e),!0):!1},t.prototype.updateOffsetAndLength=function(e){(e.offset<this.offset||this.offset===-1)&&(this.offset=e.offset);var n=e.end;(n>this.end||this.length===-1)&&(this.length=n-this.offset)},t.prototype.hasChildren=function(){return!!this.children&&this.children.length>0},t.prototype.getChildren=function(){return this.children?this.children.slice(0):[]},t.prototype.getChild=function(e){return this.children&&e<this.children.length?this.children[e]:null},t.prototype.addChildren=function(e){for(var n=0,r=e;n<r.length;n++){var i=r[n];this.addChild(i)}},t.prototype.findFirstChildBeforeOffset=function(e){if(this.children){for(var n=null,r=this.children.length-1;r>=0;r--)if(n=this.children[r],n.offset<=e)return n}return null},t.prototype.findChildAtOffset=function(e,n){var r=this.findFirstChildBeforeOffset(e);return r&&r.end>=e?n&&r.findChildAtOffset(e,!0)||r:null},t.prototype.encloses=function(e){return this.offset<=e.offset&&this.offset+this.length>=e.offset+e.length},t.prototype.getParent=function(){for(var e=this.parent;e instanceof ke;)e=e.parent;return e},t.prototype.findParent=function(e){for(var n=this;n&&n.type!==e;)n=n.parent;return n},t.prototype.findAParent=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];for(var r=this;r&&!e.some(function(i){return r.type===i});)r=r.parent;return r},t.prototype.setData=function(e,n){this.options||(this.options={}),this.options[e]=n},t.prototype.getData=function(e){return!this.options||!this.options.hasOwnProperty(e)?null:this.options[e]},t}(),ke=function(t){O(e,t);function e(n,r){r===void 0&&(r=-1);var i=t.call(this,-1,-1)||this;return i.attachTo(n,r),i.offset=-1,i.length=-1,i}return e}(U),nu=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.UnicodeRange},enumerable:!1,configurable:!0}),e.prototype.setRangeStart=function(n){return this.setNode("rangeStart",n)},e.prototype.getRangeStart=function(){return this.rangeStart},e.prototype.setRangeEnd=function(n){return this.setNode("rangeEnd",n)},e.prototype.getRangeEnd=function(){return this.rangeEnd},e}(U),We=function(t){O(e,t);function e(n,r){var i=t.call(this,n,r)||this;return i.isCustomProperty=!1,i}return Object.defineProperty(e.prototype,"type",{get:function(){return v.Identifier},enumerable:!1,configurable:!0}),e.prototype.containsInterpolation=function(){return this.hasChildren()},e}(U),ru=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.Stylesheet},enumerable:!1,configurable:!0}),e}(U),ui=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.Declarations},enumerable:!1,configurable:!0}),e}(U),he=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return e.prototype.getDeclarations=function(){return this.declarations},e.prototype.setDeclarations=function(n){return this.setNode("declarations",n)},e}(U),Jt=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.Ruleset},enumerable:!1,configurable:!0}),e.prototype.getSelectors=function(){return this.selectors||(this.selectors=new ke(this)),this.selectors},e.prototype.isNested=function(){return!!this.parent&&this.parent.findParent(v.Declarations)!==null},e}(he),yn=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.Selector},enumerable:!1,configurable:!0}),e}(U),Xt=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.SimpleSelector},enumerable:!1,configurable:!0}),e}(U);(function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.AtApplyRule},enumerable:!1,configurable:!0}),e.prototype.setIdentifier=function(n){return this.setNode("identifier",n,0)},e.prototype.getIdentifier=function(){return this.identifier},e.prototype.getName=function(){return this.identifier?this.identifier.getText():""},e})(U);var pi=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return e}(U),iu=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.CustomPropertySet},enumerable:!1,configurable:!0}),e}(he),Ze=function(t){O(e,t);function e(n,r){var i=t.call(this,n,r)||this;return i.property=null,i}return Object.defineProperty(e.prototype,"type",{get:function(){return v.Declaration},enumerable:!1,configurable:!0}),e.prototype.setProperty=function(n){return this.setNode("property",n)},e.prototype.getProperty=function(){return this.property},e.prototype.getFullPropertyName=function(){var n=this.property?this.property.getName():"unknown";if(this.parent instanceof ui&&this.parent.getParent()instanceof ko){var r=this.parent.getParent().getParent();if(r instanceof e)return r.getFullPropertyName()+n}return n},e.prototype.getNonPrefixedPropertyName=function(){var n=this.getFullPropertyName();if(n&&n.charAt(0)==="-"){var r=n.indexOf("-",1);if(r!==-1)return n.substring(r+1)}return n},e.prototype.setValue=function(n){return this.setNode("value",n)},e.prototype.getValue=function(){return this.value},e.prototype.setNestedProperties=function(n){return this.setNode("nestedProperties",n)},e.prototype.getNestedProperties=function(){return this.nestedProperties},e}(pi),su=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.CustomPropertyDeclaration},enumerable:!1,configurable:!0}),e.prototype.setPropertySet=function(n){return this.setNode("propertySet",n)},e.prototype.getPropertySet=function(){return this.propertySet},e}(Ze),fi=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.Property},enumerable:!1,configurable:!0}),e.prototype.setIdentifier=function(n){return this.setNode("identifier",n)},e.prototype.getIdentifier=function(){return this.identifier},e.prototype.getName=function(){return eu(this.getText(),/[_\+]+$/)},e.prototype.isCustomProperty=function(){return!!this.identifier&&this.identifier.isCustomProperty},e}(U),au=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.Invocation},enumerable:!1,configurable:!0}),e.prototype.getArguments=function(){return this.arguments||(this.arguments=new ke(this)),this.arguments},e}(U),wn=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.Function},enumerable:!1,configurable:!0}),e.prototype.setIdentifier=function(n){return this.setNode("identifier",n,0)},e.prototype.getIdentifier=function(){return this.identifier},e.prototype.getName=function(){return this.identifier?this.identifier.getText():""},e}(au),tr=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.FunctionParameter},enumerable:!1,configurable:!0}),e.prototype.setIdentifier=function(n){return this.setNode("identifier",n,0)},e.prototype.getIdentifier=function(){return this.identifier},e.prototype.getName=function(){return this.identifier?this.identifier.getText():""},e.prototype.setDefaultValue=function(n){return this.setNode("defaultValue",n,0)},e.prototype.getDefaultValue=function(){return this.defaultValue},e}(U),Yt=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.FunctionArgument},enumerable:!1,configurable:!0}),e.prototype.setIdentifier=function(n){return this.setNode("identifier",n,0)},e.prototype.getIdentifier=function(){return this.identifier},e.prototype.getName=function(){return this.identifier?this.identifier.getText():""},e.prototype.setValue=function(n){return this.setNode("value",n,0)},e.prototype.getValue=function(){return this.value},e}(U),ou=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.If},enumerable:!1,configurable:!0}),e.prototype.setExpression=function(n){return this.setNode("expression",n,0)},e.prototype.setElseClause=function(n){return this.setNode("elseClause",n)},e}(he),lu=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.For},enumerable:!1,configurable:!0}),e.prototype.setVariable=function(n){return this.setNode("variable",n,0)},e}(he),cu=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.Each},enumerable:!1,configurable:!0}),e.prototype.getVariables=function(){return this.variables||(this.variables=new ke(this)),this.variables},e}(he),hu=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.While},enumerable:!1,configurable:!0}),e}(he),du=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.Else},enumerable:!1,configurable:!0}),e}(he),nr=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.FunctionDeclaration},enumerable:!1,configurable:!0}),e.prototype.setIdentifier=function(n){return this.setNode("identifier",n,0)},e.prototype.getIdentifier=function(){return this.identifier},e.prototype.getName=function(){return this.identifier?this.identifier.getText():""},e.prototype.getParameters=function(){return this.parameters||(this.parameters=new ke(this)),this.parameters},e}(he),uu=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.ViewPort},enumerable:!1,configurable:!0}),e}(he),Co=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.FontFace},enumerable:!1,configurable:!0}),e}(he),ko=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.NestedProperties},enumerable:!1,configurable:!0}),e}(he),_o=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.Keyframe},enumerable:!1,configurable:!0}),e.prototype.setKeyword=function(n){return this.setNode("keyword",n,0)},e.prototype.getKeyword=function(){return this.keyword},e.prototype.setIdentifier=function(n){return this.setNode("identifier",n,0)},e.prototype.getIdentifier=function(){return this.identifier},e.prototype.getName=function(){return this.identifier?this.identifier.getText():""},e}(he),Eo=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.KeyframeSelector},enumerable:!1,configurable:!0}),e}(he),mi=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.Import},enumerable:!1,configurable:!0}),e.prototype.setMedialist=function(n){return n?(n.attachTo(this),!0):!1},e}(U),pu=function(t){O(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.Use},enumerable:!1,configurable:!0}),e.prototype.getParameters=function(){return this.parameters||(this.parameters=new ke(this)),this.parameters},e.prototype.setIdentifier=function(n){return this.setNode("identifier",n,0)},e.prototype.getIdentifier=function(){return this.identifier},e}(U),fu=function(t){O(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.ModuleConfiguration},enumerable:!1,configurable:!0}),e.prototype.setIdentifier=function(n){return this.setNode("identifier",n,0)},e.prototype.getIdentifier=function(){return this.identifier},e.prototype.getName=function(){return this.identifier?this.identifier.getText():""},e.prototype.setValue=function(n){return this.setNode("value",n,0)},e.prototype.getValue=function(){return this.value},e}(U),mu=function(t){O(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.Forward},enumerable:!1,configurable:!0}),e.prototype.setIdentifier=function(n){return this.setNode("identifier",n,0)},e.prototype.getIdentifier=function(){return this.identifier},e.prototype.getMembers=function(){return this.members||(this.members=new ke(this)),this.members},e.prototype.getParameters=function(){return this.parameters||(this.parameters=new ke(this)),this.parameters},e}(U),gu=function(t){O(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.ForwardVisibility},enumerable:!1,configurable:!0}),e.prototype.setIdentifier=function(n){return this.setNode("identifier",n,0)},e.prototype.getIdentifier=function(){return this.identifier},e}(U),bu=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.Namespace},enumerable:!1,configurable:!0}),e}(U),Ro=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.Media},enumerable:!1,configurable:!0}),e}(he),gi=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.Supports},enumerable:!1,configurable:!0}),e}(he),vu=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.Document},enumerable:!1,configurable:!0}),e}(he),Fo=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return e.prototype.getMediums=function(){return this.mediums||(this.mediums=new ke(this)),this.mediums},e}(U),Do=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.MediaQuery},enumerable:!1,configurable:!0}),e}(U),yu=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.MediaCondition},enumerable:!1,configurable:!0}),e}(U),wu=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.MediaFeature},enumerable:!1,configurable:!0}),e}(U),xn=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.SupportsCondition},enumerable:!1,configurable:!0}),e}(U),xu=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.Page},enumerable:!1,configurable:!0}),e}(he),Su=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.PageBoxMarginBox},enumerable:!1,configurable:!0}),e}(he),Ao=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.Expression},enumerable:!1,configurable:!0}),e}(U),bi=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.BinaryExpression},enumerable:!1,configurable:!0}),e.prototype.setLeft=function(n){return this.setNode("left",n)},e.prototype.getLeft=function(){return this.left},e.prototype.setRight=function(n){return this.setNode("right",n)},e.prototype.getRight=function(){return this.right},e.prototype.setOperator=function(n){return this.setNode("operator",n)},e.prototype.getOperator=function(){return this.operator},e}(U),Cu=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.Term},enumerable:!1,configurable:!0}),e.prototype.setOperator=function(n){return this.setNode("operator",n)},e.prototype.getOperator=function(){return this.operator},e.prototype.setExpression=function(n){return this.setNode("expression",n)},e.prototype.getExpression=function(){return this.expression},e}(U),ku=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.AttributeSelector},enumerable:!1,configurable:!0}),e.prototype.setNamespacePrefix=function(n){return this.setNode("namespacePrefix",n)},e.prototype.getNamespacePrefix=function(){return this.namespacePrefix},e.prototype.setIdentifier=function(n){return this.setNode("identifier",n)},e.prototype.getIdentifier=function(){return this.identifier},e.prototype.setOperator=function(n){return this.setNode("operator",n)},e.prototype.getOperator=function(){return this.operator},e.prototype.setValue=function(n){return this.setNode("value",n)},e.prototype.getValue=function(){return this.value},e}(U);(function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.Operator},enumerable:!1,configurable:!0}),e})(U);var vi=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.HexColorValue},enumerable:!1,configurable:!0}),e}(U),_u=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.RatioValue},enumerable:!1,configurable:!0}),e}(U),Eu=46,Ru=48,Fu=57,yi=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.NumericValue},enumerable:!1,configurable:!0}),e.prototype.getValue=function(){for(var n=this.getText(),r=0,i,s=0,a=n.length;s<a&&(i=n.charCodeAt(s),Ru<=i&&i<=Fu||i===Eu);s++)r+=1;return{value:n.substring(0,r),unit:r<n.length?n.substring(r):void 0}},e}(U),rr=function(t){O(e,t);function e(n,r){var i=t.call(this,n,r)||this;return i.variable=null,i.value=null,i.needsSemicolon=!0,i}return Object.defineProperty(e.prototype,"type",{get:function(){return v.VariableDeclaration},enumerable:!1,configurable:!0}),e.prototype.setVariable=function(n){return n?(n.attachTo(this),this.variable=n,!0):!1},e.prototype.getVariable=function(){return this.variable},e.prototype.getName=function(){return this.variable?this.variable.getName():""},e.prototype.setValue=function(n){return n?(n.attachTo(this),this.value=n,!0):!1},e.prototype.getValue=function(){return this.value},e}(pi),wi=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.Interpolation},enumerable:!1,configurable:!0}),e}(U),xi=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.VariableName},enumerable:!1,configurable:!0}),e.prototype.getName=function(){return this.getText()},e}(U),Sn=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.ExtendsReference},enumerable:!1,configurable:!0}),e.prototype.getSelectors=function(){return this.selectors||(this.selectors=new ke(this)),this.selectors},e}(U),Du=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.MixinContentReference},enumerable:!1,configurable:!0}),e.prototype.getArguments=function(){return this.arguments||(this.arguments=new ke(this)),this.arguments},e}(U),Au=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.MixinContentReference},enumerable:!1,configurable:!0}),e.prototype.getParameters=function(){return this.parameters||(this.parameters=new ke(this)),this.parameters},e}(he),ir=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.MixinReference},enumerable:!1,configurable:!0}),e.prototype.getNamespaces=function(){return this.namespaces||(this.namespaces=new ke(this)),this.namespaces},e.prototype.setIdentifier=function(n){return this.setNode("identifier",n,0)},e.prototype.getIdentifier=function(){return this.identifier},e.prototype.getName=function(){return this.identifier?this.identifier.getText():""},e.prototype.getArguments=function(){return this.arguments||(this.arguments=new ke(this)),this.arguments},e.prototype.setContent=function(n){return this.setNode("content",n)},e.prototype.getContent=function(){return this.content},e}(U),Cn=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.MixinDeclaration},enumerable:!1,configurable:!0}),e.prototype.setIdentifier=function(n){return this.setNode("identifier",n,0)},e.prototype.getIdentifier=function(){return this.identifier},e.prototype.getName=function(){return this.identifier?this.identifier.getText():""},e.prototype.getParameters=function(){return this.parameters||(this.parameters=new ke(this)),this.parameters},e.prototype.setGuard=function(n){return n&&(n.attachTo(this),this.guard=n),!1},e}(he),No=function(t){O(e,t);function e(n,r){return t.call(this,n,r)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.UnknownAtRule},enumerable:!1,configurable:!0}),e.prototype.setAtRuleName=function(n){this.atRuleName=n},e.prototype.getAtRuleName=function(){return this.atRuleName},e}(he),Nu=function(t){O(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.ListEntry},enumerable:!1,configurable:!0}),e.prototype.setKey=function(n){return this.setNode("key",n,0)},e.prototype.setValue=function(n){return this.setNode("value",n,1)},e}(U),Mu=function(t){O(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getConditions=function(){return this.conditions||(this.conditions=new ke(this)),this.conditions},e}(U),zu=function(t){O(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.setVariable=function(n){return this.setNode("variable",n)},e}(U),Mo=function(t){O(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"type",{get:function(){return v.Module},enumerable:!1,configurable:!0}),e.prototype.setIdentifier=function(n){return this.setNode("identifier",n,0)},e.prototype.getIdentifier=function(){return this.identifier},e}(U),Pe;(function(t){t[t.Ignore=1]="Ignore",t[t.Warning=2]="Warning",t[t.Error=4]="Error"})(Pe||(Pe={}));var zo=function(){function t(e,n,r,i,s,a){s===void 0&&(s=e.offset),a===void 0&&(a=e.length),this.node=e,this.rule=n,this.level=r,this.message=i||n.message,this.offset=s,this.length=a}return t.prototype.getRule=function(){return this.rule},t.prototype.getLevel=function(){return this.level},t.prototype.getOffset=function(){return this.offset},t.prototype.getLength=function(){return this.length},t.prototype.getNode=function(){return this.node},t.prototype.getMessage=function(){return this.message},t}(),Lu=function(){function t(){this.entries=[]}return t.entries=function(e){var n=new t;return e.acceptVisitor(n),n.entries},t.prototype.visitNode=function(e){return e.isErroneous()&&e.collectIssues(this.entries),!0},t}();function Pu(t,e){let n;return e.length===0?n=t:n=t.replace(/\{(\d+)\}/g,(r,i)=>{let s=i[0];return typeof e[s]<"u"?e[s]:r}),n}function Iu(t,e,...n){return Pu(e,n)}function Ge(t){return Iu}var ee=Ge(),te=function(){function t(e,n){this.id=e,this.message=n}return t}(),S={NumberExpected:new te("css-numberexpected",ee("expected.number","number expected")),ConditionExpected:new te("css-conditionexpected",ee("expected.condt","condition expected")),RuleOrSelectorExpected:new te("css-ruleorselectorexpected",ee("expected.ruleorselector","at-rule or selector expected")),DotExpected:new te("css-dotexpected",ee("expected.dot","dot expected")),ColonExpected:new te("css-colonexpected",ee("expected.colon","colon expected")),SemiColonExpected:new te("css-semicolonexpected",ee("expected.semicolon","semi-colon expected")),TermExpected:new te("css-termexpected",ee("expected.term","term expected")),ExpressionExpected:new te("css-expressionexpected",ee("expected.expression","expression expected")),OperatorExpected:new te("css-operatorexpected",ee("expected.operator","operator expected")),IdentifierExpected:new te("css-identifierexpected",ee("expected.ident","identifier expected")),PercentageExpected:new te("css-percentageexpected",ee("expected.percentage","percentage expected")),URIOrStringExpected:new te("css-uriorstringexpected",ee("expected.uriorstring","uri or string expected")),URIExpected:new te("css-uriexpected",ee("expected.uri","URI expected")),VariableNameExpected:new te("css-varnameexpected",ee("expected.varname","variable name expected")),VariableValueExpected:new te("css-varvalueexpected",ee("expected.varvalue","variable value expected")),PropertyValueExpected:new te("css-propertyvalueexpected",ee("expected.propvalue","property value expected")),LeftCurlyExpected:new te("css-lcurlyexpected",ee("expected.lcurly","{ expected")),RightCurlyExpected:new te("css-rcurlyexpected",ee("expected.rcurly","} expected")),LeftSquareBracketExpected:new te("css-rbracketexpected",ee("expected.lsquare","[ expected")),RightSquareBracketExpected:new te("css-lbracketexpected",ee("expected.rsquare","] expected")),LeftParenthesisExpected:new te("css-lparentexpected",ee("expected.lparen","( expected")),RightParenthesisExpected:new te("css-rparentexpected",ee("expected.rparent",") expected")),CommaExpected:new te("css-commaexpected",ee("expected.comma","comma expected")),PageDirectiveOrDeclarationExpected:new te("css-pagedirordeclexpected",ee("expected.pagedirordecl","page directive or declaraton expected")),UnknownAtRule:new te("css-unknownatrule",ee("unknown.atrule","at-rule unknown")),UnknownKeyword:new te("css-unknownkeyword",ee("unknown.keyword","unknown keyword")),SelectorExpected:new te("css-selectorexpected",ee("expected.selector","selector expected")),StringLiteralExpected:new te("css-stringliteralexpected",ee("expected.stringliteral","string literal expected")),WhitespaceExpected:new te("css-whitespaceexpected",ee("expected.whitespace","whitespace expected")),MediaQueryExpected:new te("css-mediaqueryexpected",ee("expected.mediaquery","media query expected")),IdentifierOrWildcardExpected:new te("css-idorwildcardexpected",ee("expected.idorwildcard","identifier or wildcard expected")),WildcardExpected:new te("css-wildcardexpected",ee("expected.wildcard","wildcard expected")),IdentifierOrVariableExpected:new te("css-idorvarexpected",ee("expected.idorvar","identifier or variable expected"))},Lo;(function(t){t.MIN_VALUE=-2147483648,t.MAX_VALUE=2147483647})(Lo||(Lo={}));var sr;(function(t){t.MIN_VALUE=0,t.MAX_VALUE=2147483647})(sr||(sr={}));var Fe;(function(t){function e(r,i){return r===Number.MAX_VALUE&&(r=sr.MAX_VALUE),i===Number.MAX_VALUE&&(i=sr.MAX_VALUE),{line:r,character:i}}t.create=e;function n(r){var i=r;return E.objectLiteral(i)&&E.uinteger(i.line)&&E.uinteger(i.character)}t.is=n})(Fe||(Fe={}));var ie;(function(t){function e(r,i,s,a){if(E.uinteger(r)&&E.uinteger(i)&&E.uinteger(s)&&E.uinteger(a))return{start:Fe.create(r,i),end:Fe.create(s,a)};if(Fe.is(r)&&Fe.is(i))return{start:r,end:i};throw new Error("Range#create called with invalid arguments["+r+", "+i+", "+s+", "+a+"]")}t.create=e;function n(r){var i=r;return E.objectLiteral(i)&&Fe.is(i.start)&&Fe.is(i.end)}t.is=n})(ie||(ie={}));var kn;(function(t){function e(r,i){return{uri:r,range:i}}t.create=e;function n(r){var i=r;return E.defined(i)&&ie.is(i.range)&&(E.string(i.uri)||E.undefined(i.uri))}t.is=n})(kn||(kn={}));var Po;(function(t){function e(r,i,s,a){return{targetUri:r,targetRange:i,targetSelectionRange:s,originSelectionRange:a}}t.create=e;function n(r){var i=r;return E.defined(i)&&ie.is(i.targetRange)&&E.string(i.targetUri)&&(ie.is(i.targetSelectionRange)||E.undefined(i.targetSelectionRange))&&(ie.is(i.originSelectionRange)||E.undefined(i.originSelectionRange))}t.is=n})(Po||(Po={}));var Si;(function(t){function e(r,i,s,a){return{red:r,green:i,blue:s,alpha:a}}t.create=e;function n(r){var i=r;return E.numberRange(i.red,0,1)&&E.numberRange(i.green,0,1)&&E.numberRange(i.blue,0,1)&&E.numberRange(i.alpha,0,1)}t.is=n})(Si||(Si={}));var Io;(function(t){function e(r,i){return{range:r,color:i}}t.create=e;function n(r){var i=r;return ie.is(i.range)&&Si.is(i.color)}t.is=n})(Io||(Io={}));var To;(function(t){function e(r,i,s){return{label:r,textEdit:i,additionalTextEdits:s}}t.create=e;function n(r){var i=r;return E.string(i.label)&&(E.undefined(i.textEdit)||H.is(i))&&(E.undefined(i.additionalTextEdits)||E.typedArray(i.additionalTextEdits,H.is))}t.is=n})(To||(To={}));var Wo;(function(t){t.Comment="comment",t.Imports="imports",t.Region="region"})(Wo||(Wo={}));var Oo;(function(t){function e(r,i,s,a,o){var l={startLine:r,endLine:i};return E.defined(s)&&(l.startCharacter=s),E.defined(a)&&(l.endCharacter=a),E.defined(o)&&(l.kind=o),l}t.create=e;function n(r){var i=r;return E.uinteger(i.startLine)&&E.uinteger(i.startLine)&&(E.undefined(i.startCharacter)||E.uinteger(i.startCharacter))&&(E.undefined(i.endCharacter)||E.uinteger(i.endCharacter))&&(E.undefined(i.kind)||E.string(i.kind))}t.is=n})(Oo||(Oo={}));var Ci;(function(t){function e(r,i){return{location:r,message:i}}t.create=e;function n(r){var i=r;return E.defined(i)&&kn.is(i.location)&&E.string(i.message)}t.is=n})(Ci||(Ci={}));var ar;(function(t){t.Error=1,t.Warning=2,t.Information=3,t.Hint=4})(ar||(ar={}));var Uo;(function(t){t.Unnecessary=1,t.Deprecated=2})(Uo||(Uo={}));var Vo;(function(t){function e(n){var r=n;return r!=null&&E.string(r.href)}t.is=e})(Vo||(Vo={}));var or;(function(t){function e(r,i,s,a,o,l){var c={range:r,message:i};return E.defined(s)&&(c.severity=s),E.defined(a)&&(c.code=a),E.defined(o)&&(c.source=o),E.defined(l)&&(c.relatedInformation=l),c}t.create=e;function n(r){var i,s=r;return E.defined(s)&&ie.is(s.range)&&E.string(s.message)&&(E.number(s.severity)||E.undefined(s.severity))&&(E.integer(s.code)||E.string(s.code)||E.undefined(s.code))&&(E.undefined(s.codeDescription)||E.string((i=s.codeDescription)===null||i===void 0?void 0:i.href))&&(E.string(s.source)||E.undefined(s.source))&&(E.undefined(s.relatedInformation)||E.typedArray(s.relatedInformation,Ci.is))}t.is=n})(or||(or={}));var Kt;(function(t){function e(r,i){for(var s=[],a=2;a<arguments.length;a++)s[a-2]=arguments[a];var o={title:r,command:i};return E.defined(s)&&s.length>0&&(o.arguments=s),o}t.create=e;function n(r){var i=r;return E.defined(i)&&E.string(i.title)&&E.string(i.command)}t.is=n})(Kt||(Kt={}));var H;(function(t){function e(s,a){return{range:s,newText:a}}t.replace=e;function n(s,a){return{range:{start:s,end:s},newText:a}}t.insert=n;function r(s){return{range:s,newText:""}}t.del=r;function i(s){var a=s;return E.objectLiteral(a)&&E.string(a.newText)&&ie.is(a.range)}t.is=i})(H||(H={}));var Qt;(function(t){function e(r,i,s){var a={label:r};return i!==void 0&&(a.needsConfirmation=i),s!==void 0&&(a.description=s),a}t.create=e;function n(r){var i=r;return i!==void 0&&E.objectLiteral(i)&&E.string(i.label)&&(E.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(E.string(i.description)||i.description===void 0)}t.is=n})(Qt||(Qt={}));var Ee;(function(t){function e(n){var r=n;return typeof r=="string"}t.is=e})(Ee||(Ee={}));var vt;(function(t){function e(s,a,o){return{range:s,newText:a,annotationId:o}}t.replace=e;function n(s,a,o){return{range:{start:s,end:s},newText:a,annotationId:o}}t.insert=n;function r(s,a){return{range:s,newText:"",annotationId:a}}t.del=r;function i(s){var a=s;return H.is(a)&&(Qt.is(a.annotationId)||Ee.is(a.annotationId))}t.is=i})(vt||(vt={}));var _n;(function(t){function e(r,i){return{textDocument:r,edits:i}}t.create=e;function n(r){var i=r;return E.defined(i)&&cr.is(i.textDocument)&&Array.isArray(i.edits)}t.is=n})(_n||(_n={}));var En;(function(t){function e(r,i,s){var a={kind:"create",uri:r};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(a.options=i),s!==void 0&&(a.annotationId=s),a}t.create=e;function n(r){var i=r;return i&&i.kind==="create"&&E.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||E.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||E.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Ee.is(i.annotationId))}t.is=n})(En||(En={}));var Rn;(function(t){function e(r,i,s,a){var o={kind:"rename",oldUri:r,newUri:i};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(o.options=s),a!==void 0&&(o.annotationId=a),o}t.create=e;function n(r){var i=r;return i&&i.kind==="rename"&&E.string(i.oldUri)&&E.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||E.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||E.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Ee.is(i.annotationId))}t.is=n})(Rn||(Rn={}));var Fn;(function(t){function e(r,i,s){var a={kind:"delete",uri:r};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(a.options=i),s!==void 0&&(a.annotationId=s),a}t.create=e;function n(r){var i=r;return i&&i.kind==="delete"&&E.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||E.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||E.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||Ee.is(i.annotationId))}t.is=n})(Fn||(Fn={}));var ki;(function(t){function e(n){var r=n;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(function(i){return E.string(i.kind)?En.is(i)||Rn.is(i)||Fn.is(i):_n.is(i)}))}t.is=e})(ki||(ki={}));var lr=function(){function t(e,n){this.edits=e,this.changeAnnotations=n}return t.prototype.insert=function(e,n,r){var i,s;if(r===void 0?i=H.insert(e,n):Ee.is(r)?(s=r,i=vt.insert(e,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),s=this.changeAnnotations.manage(r),i=vt.insert(e,n,s)),this.edits.push(i),s!==void 0)return s},t.prototype.replace=function(e,n,r){var i,s;if(r===void 0?i=H.replace(e,n):Ee.is(r)?(s=r,i=vt.replace(e,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),s=this.changeAnnotations.manage(r),i=vt.replace(e,n,s)),this.edits.push(i),s!==void 0)return s},t.prototype.delete=function(e,n){var r,i;if(n===void 0?r=H.del(e):Ee.is(n)?(i=n,r=vt.del(e,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=vt.del(e,i)),this.edits.push(r),i!==void 0)return i},t.prototype.add=function(e){this.edits.push(e)},t.prototype.all=function(){return this.edits},t.prototype.clear=function(){this.edits.splice(0,this.edits.length)},t.prototype.assertChangeAnnotations=function(e){if(e===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},t}(),Bo=function(){function t(e){this._annotations=e===void 0?Object.create(null):e,this._counter=0,this._size=0}return t.prototype.all=function(){return this._annotations},Object.defineProperty(t.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),t.prototype.manage=function(e,n){var r;if(Ee.is(e)?r=e:(r=this.nextId(),n=e),this._annotations[r]!==void 0)throw new Error("Id "+r+" is already in use.");if(n===void 0)throw new Error("No annotation provided for id "+r);return this._annotations[r]=n,this._size++,r},t.prototype.nextId=function(){return this._counter++,this._counter.toString()},t}();(function(){function t(e){var n=this;this._textEditChanges=Object.create(null),e!==void 0?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new Bo(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach(function(r){if(_n.is(r)){var i=new lr(r.edits,n._changeAnnotations);n._textEditChanges[r.textDocument.uri]=i}})):e.changes&&Object.keys(e.changes).forEach(function(r){var i=new lr(e.changes[r]);n._textEditChanges[r]=i})):this._workspaceEdit={}}return Object.defineProperty(t.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),t.prototype.getTextEditChange=function(e){if(cr.is(e)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var n={uri:e.uri,version:e.version},r=this._textEditChanges[n.uri];if(!r){var i=[],s={textDocument:n,edits:i};this._workspaceEdit.documentChanges.push(s),r=new lr(i,this._changeAnnotations),this._textEditChanges[n.uri]=r}return r}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var r=this._textEditChanges[e];if(!r){var i=[];this._workspaceEdit.changes[e]=i,r=new lr(i),this._textEditChanges[e]=r}return r}},t.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new Bo,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},t.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},t.prototype.createFile=function(e,n,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i;Qt.is(n)||Ee.is(n)?i=n:r=n;var s,a;if(i===void 0?s=En.create(e,r):(a=Ee.is(i)?i:this._changeAnnotations.manage(i),s=En.create(e,r,a)),this._workspaceEdit.documentChanges.push(s),a!==void 0)return a},t.prototype.renameFile=function(e,n,r,i){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var s;Qt.is(r)||Ee.is(r)?s=r:i=r;var a,o;if(s===void 0?a=Rn.create(e,n,i):(o=Ee.is(s)?s:this._changeAnnotations.manage(s),a=Rn.create(e,n,i,o)),this._workspaceEdit.documentChanges.push(a),o!==void 0)return o},t.prototype.deleteFile=function(e,n,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i;Qt.is(n)||Ee.is(n)?i=n:r=n;var s,a;if(i===void 0?s=Fn.create(e,r):(a=Ee.is(i)?i:this._changeAnnotations.manage(i),s=Fn.create(e,r,a)),this._workspaceEdit.documentChanges.push(s),a!==void 0)return a},t})();var qo;(function(t){function e(r){return{uri:r}}t.create=e;function n(r){var i=r;return E.defined(i)&&E.string(i.uri)}t.is=n})(qo||(qo={}));var _i;(function(t){function e(r,i){return{uri:r,version:i}}t.create=e;function n(r){var i=r;return E.defined(i)&&E.string(i.uri)&&E.integer(i.version)}t.is=n})(_i||(_i={}));var cr;(function(t){function e(r,i){return{uri:r,version:i}}t.create=e;function n(r){var i=r;return E.defined(i)&&E.string(i.uri)&&(i.version===null||E.integer(i.version))}t.is=n})(cr||(cr={}));var jo;(function(t){function e(r,i,s,a){return{uri:r,languageId:i,version:s,text:a}}t.create=e;function n(r){var i=r;return E.defined(i)&&E.string(i.uri)&&E.string(i.languageId)&&E.integer(i.version)&&E.string(i.text)}t.is=n})(jo||(jo={}));var Oe;(function(t){t.PlainText="plaintext",t.Markdown="markdown"})(Oe||(Oe={})),function(t){function e(n){var r=n;return r===t.PlainText||r===t.Markdown}t.is=e}(Oe||(Oe={}));var Ei;(function(t){function e(n){var r=n;return E.objectLiteral(n)&&Oe.is(r.kind)&&E.string(r.value)}t.is=e})(Ei||(Ei={}));var $;(function(t){t.Text=1,t.Method=2,t.Function=3,t.Constructor=4,t.Field=5,t.Variable=6,t.Class=7,t.Interface=8,t.Module=9,t.Property=10,t.Unit=11,t.Value=12,t.Enum=13,t.Keyword=14,t.Snippet=15,t.Color=16,t.File=17,t.Reference=18,t.Folder=19,t.EnumMember=20,t.Constant=21,t.Struct=22,t.Event=23,t.Operator=24,t.TypeParameter=25})($||($={}));var Ie;(function(t){t.PlainText=1,t.Snippet=2})(Ie||(Ie={}));var _t;(function(t){t.Deprecated=1})(_t||(_t={}));var $o;(function(t){function e(r,i,s){return{newText:r,insert:i,replace:s}}t.create=e;function n(r){var i=r;return i&&E.string(i.newText)&&ie.is(i.insert)&&ie.is(i.replace)}t.is=n})($o||($o={}));var Ho;(function(t){t.asIs=1,t.adjustIndentation=2})(Ho||(Ho={}));var Go;(function(t){function e(n){return{label:n}}t.create=e})(Go||(Go={}));var Jo;(function(t){function e(n,r){return{items:n||[],isIncomplete:!!r}}t.create=e})(Jo||(Jo={}));var hr;(function(t){function e(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}t.fromPlainText=e;function n(r){var i=r;return E.string(i)||E.objectLiteral(i)&&E.string(i.language)&&E.string(i.value)}t.is=n})(hr||(hr={}));var Xo;(function(t){function e(n){var r=n;return!!r&&E.objectLiteral(r)&&(Ei.is(r.contents)||hr.is(r.contents)||E.typedArray(r.contents,hr.is))&&(n.range===void 0||ie.is(n.range))}t.is=e})(Xo||(Xo={}));var Yo;(function(t){function e(n,r){return r?{label:n,documentation:r}:{label:n}}t.create=e})(Yo||(Yo={}));var Ko;(function(t){function e(n,r){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var a={label:n};return E.defined(r)&&(a.documentation=r),E.defined(i)?a.parameters=i:a.parameters=[],a}t.create=e})(Ko||(Ko={}));var Zt;(function(t){t.Text=1,t.Read=2,t.Write=3})(Zt||(Zt={}));var Qo;(function(t){function e(n,r){var i={range:n};return E.number(r)&&(i.kind=r),i}t.create=e})(Qo||(Qo={}));var Et;(function(t){t.File=1,t.Module=2,t.Namespace=3,t.Package=4,t.Class=5,t.Method=6,t.Property=7,t.Field=8,t.Constructor=9,t.Enum=10,t.Interface=11,t.Function=12,t.Variable=13,t.Constant=14,t.String=15,t.Number=16,t.Boolean=17,t.Array=18,t.Object=19,t.Key=20,t.Null=21,t.EnumMember=22,t.Struct=23,t.Event=24,t.Operator=25,t.TypeParameter=26})(Et||(Et={}));var Zo;(function(t){t.Deprecated=1})(Zo||(Zo={}));var el;(function(t){function e(n,r,i,s,a){var o={name:n,kind:r,location:{uri:s,range:i}};return a&&(o.containerName=a),o}t.create=e})(el||(el={}));var tl;(function(t){function e(r,i,s,a,o,l){var c={name:r,detail:i,kind:s,range:a,selectionRange:o};return l!==void 0&&(c.children=l),c}t.create=e;function n(r){var i=r;return i&&E.string(i.name)&&E.number(i.kind)&&ie.is(i.range)&&ie.is(i.selectionRange)&&(i.detail===void 0||E.string(i.detail))&&(i.deprecated===void 0||E.boolean(i.deprecated))&&(i.children===void 0||Array.isArray(i.children))&&(i.tags===void 0||Array.isArray(i.tags))}t.is=n})(tl||(tl={}));var Ri;(function(t){t.Empty="",t.QuickFix="quickfix",t.Refactor="refactor",t.RefactorExtract="refactor.extract",t.RefactorInline="refactor.inline",t.RefactorRewrite="refactor.rewrite",t.Source="source",t.SourceOrganizeImports="source.organizeImports",t.SourceFixAll="source.fixAll"})(Ri||(Ri={}));var nl;(function(t){function e(r,i){var s={diagnostics:r};return i!=null&&(s.only=i),s}t.create=e;function n(r){var i=r;return E.defined(i)&&E.typedArray(i.diagnostics,or.is)&&(i.only===void 0||E.typedArray(i.only,E.string))}t.is=n})(nl||(nl={}));var Fi;(function(t){function e(r,i,s){var a={title:r},o=!0;return typeof i=="string"?(o=!1,a.kind=i):Kt.is(i)?a.command=i:a.edit=i,o&&s!==void 0&&(a.kind=s),a}t.create=e;function n(r){var i=r;return i&&E.string(i.title)&&(i.diagnostics===void 0||E.typedArray(i.diagnostics,or.is))&&(i.kind===void 0||E.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||Kt.is(i.command))&&(i.isPreferred===void 0||E.boolean(i.isPreferred))&&(i.edit===void 0||ki.is(i.edit))}t.is=n})(Fi||(Fi={}));var rl;(function(t){function e(r,i){var s={range:r};return E.defined(i)&&(s.data=i),s}t.create=e;function n(r){var i=r;return E.defined(i)&&ie.is(i.range)&&(E.undefined(i.command)||Kt.is(i.command))}t.is=n})(rl||(rl={}));var il;(function(t){function e(r,i){return{tabSize:r,insertSpaces:i}}t.create=e;function n(r){var i=r;return E.defined(i)&&E.uinteger(i.tabSize)&&E.boolean(i.insertSpaces)}t.is=n})(il||(il={}));var sl;(function(t){function e(r,i,s){return{range:r,target:i,data:s}}t.create=e;function n(r){var i=r;return E.defined(i)&&ie.is(i.range)&&(E.undefined(i.target)||E.string(i.target))}t.is=n})(sl||(sl={}));var dr;(function(t){function e(r,i){return{range:r,parent:i}}t.create=e;function n(r){var i=r;return i!==void 0&&ie.is(i.range)&&(i.parent===void 0||t.is(i.parent))}t.is=n})(dr||(dr={}));var al;(function(t){function e(s,a,o,l){return new Tu(s,a,o,l)}t.create=e;function n(s){var a=s;return!!(E.defined(a)&&E.string(a.uri)&&(E.undefined(a.languageId)||E.string(a.languageId))&&E.uinteger(a.lineCount)&&E.func(a.getText)&&E.func(a.positionAt)&&E.func(a.offsetAt))}t.is=n;function r(s,a){for(var o=s.getText(),l=i(a,function(g,b){var y=g.range.start.line-b.range.start.line;return y===0?g.range.start.character-b.range.start.character:y}),c=o.length,h=l.length-1;h>=0;h--){var u=l[h],f=s.offsetAt(u.range.start),m=s.offsetAt(u.range.end);if(m<=c)o=o.substring(0,f)+u.newText+o.substring(m,o.length);else throw new Error("Overlapping edit");c=f}return o}t.applyEdits=r;function i(s,a){if(s.length<=1)return s;var o=s.length/2|0,l=s.slice(0,o),c=s.slice(o);i(l,a),i(c,a);for(var h=0,u=0,f=0;h<l.length&&u<c.length;){var m=a(l[h],c[u]);m<=0?s[f++]=l[h++]:s[f++]=c[u++]}for(;h<l.length;)s[f++]=l[h++];for(;u<c.length;)s[f++]=c[u++];return s}})(al||(al={}));var Tu=function(){function t(e,n,r,i){this._uri=e,this._languageId=n,this._version=r,this._content=i,this._lineOffsets=void 0}return Object.defineProperty(t.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),t.prototype.getText=function(e){if(e){var n=this.offsetAt(e.start),r=this.offsetAt(e.end);return this._content.substring(n,r)}return this._content},t.prototype.update=function(e,n){this._content=e.text,this._version=n,this._lineOffsets=void 0},t.prototype.getLineOffsets=function(){if(this._lineOffsets===void 0){for(var e=[],n=this._content,r=!0,i=0;i<n.length;i++){r&&(e.push(i),r=!1);var s=n.charAt(i);r=s==="\r"||s===`
|
|
18
18
|
`,s==="\r"&&i+1<n.length&&n.charAt(i+1)===`
|
|
19
19
|
`&&i++}r&&n.length>0&&e.push(n.length),this._lineOffsets=e}return this._lineOffsets},t.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return Fe.create(0,e);for(;r<i;){var s=Math.floor((r+i)/2);n[s]>e?i=s:r=s+1}var a=r-1;return Fe.create(a,e-n[a])},t.prototype.offsetAt=function(e){var n=this.getLineOffsets();if(e.line>=n.length)return this._content.length;if(e.line<0)return 0;var r=n[e.line],i=e.line+1<n.length?n[e.line+1]:this._content.length;return Math.max(Math.min(r+e.character,i),r)},Object.defineProperty(t.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),t}(),E;(function(t){var e=Object.prototype.toString;function n(m){return typeof m<"u"}t.defined=n;function r(m){return typeof m>"u"}t.undefined=r;function i(m){return m===!0||m===!1}t.boolean=i;function s(m){return e.call(m)==="[object String]"}t.string=s;function a(m){return e.call(m)==="[object Number]"}t.number=a;function o(m,g,b){return e.call(m)==="[object Number]"&&g<=m&&m<=b}t.numberRange=o;function l(m){return e.call(m)==="[object Number]"&&-2147483648<=m&&m<=2147483647}t.integer=l;function c(m){return e.call(m)==="[object Number]"&&0<=m&&m<=2147483647}t.uinteger=c;function h(m){return e.call(m)==="[object Function]"}t.func=h;function u(m){return m!==null&&typeof m=="object"}t.objectLiteral=u;function f(m,g){return Array.isArray(m)&&m.every(g)}t.typedArray=f})(E||(E={}));var ol=class os{constructor(e,n,r,i){this._uri=e,this._languageId=n,this._version=r,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){const n=this.offsetAt(e.start),r=this.offsetAt(e.end);return this._content.substring(n,r)}return this._content}update(e,n){for(let r of e)if(os.isIncremental(r)){const i=cl(r.range),s=this.offsetAt(i.start),a=this.offsetAt(i.end);this._content=this._content.substring(0,s)+r.text+this._content.substring(a,this._content.length);const o=Math.max(i.start.line,0),l=Math.max(i.end.line,0);let c=this._lineOffsets;const h=ll(r.text,!1,s);if(l-o===h.length)for(let f=0,m=h.length;f<m;f++)c[f+o+1]=h[f];else h.length<1e4?c.splice(o+1,l-o,...h):this._lineOffsets=c=c.slice(0,o+1).concat(h,c.slice(l+1));const u=r.text.length-(a-s);if(u!==0)for(let f=o+1+h.length,m=c.length;f<m;f++)c[f]=c[f]+u}else if(os.isFull(r))this._content=r.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received");this._version=n}getLineOffsets(){return this._lineOffsets===void 0&&(this._lineOffsets=ll(this._content,!0)),this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return{line:0,character:e};for(;r<i;){let a=Math.floor((r+i)/2);n[a]>e?i=a:r=a+1}let s=r-1;return{line:s,character:e-n[s]}}offsetAt(e){let n=this.getLineOffsets();if(e.line>=n.length)return this._content.length;if(e.line<0)return 0;let r=n[e.line],i=e.line+1<n.length?n[e.line+1]:this._content.length;return Math.max(Math.min(r+e.character,i),r)}get lineCount(){return this.getLineOffsets().length}static isIncremental(e){let n=e;return n!=null&&typeof n.text=="string"&&n.range!==void 0&&(n.rangeLength===void 0||typeof n.rangeLength=="number")}static isFull(e){let n=e;return n!=null&&typeof n.text=="string"&&n.range===void 0&&n.rangeLength===void 0}},Di;(function(t){function e(i,s,a,o){return new ol(i,s,a,o)}t.create=e;function n(i,s,a){if(i instanceof ol)return i.update(s,a),i;throw new Error("TextDocument.update: document must be created by TextDocument.create")}t.update=n;function r(i,s){let a=i.getText(),o=Ai(s.map(Wu),(h,u)=>{let f=h.range.start.line-u.range.start.line;return f===0?h.range.start.character-u.range.start.character:f}),l=0;const c=[];for(const h of o){let u=i.offsetAt(h.range.start);if(u<l)throw new Error("Overlapping edit");u>l&&c.push(a.substring(l,u)),h.newText.length&&c.push(h.newText),l=i.offsetAt(h.range.end)}return c.push(a.substr(l)),c.join("")}t.applyEdits=r})(Di||(Di={}));function Ai(t,e){if(t.length<=1)return t;const n=t.length/2|0,r=t.slice(0,n),i=t.slice(n);Ai(r,e),Ai(i,e);let s=0,a=0,o=0;for(;s<r.length&&a<i.length;)e(r[s],i[a])<=0?t[o++]=r[s++]:t[o++]=i[a++];for(;s<r.length;)t[o++]=r[s++];for(;a<i.length;)t[o++]=i[a++];return t}function ll(t,e,n=0){const r=e?[n]:[];for(let i=0;i<t.length;i++){let s=t.charCodeAt(i);(s===13||s===10)&&(s===13&&i+1<t.length&&t.charCodeAt(i+1)===10&&i++,r.push(n+i+1))}return r}function cl(t){const e=t.start,n=t.end;return e.line>n.line||e.line===n.line&&e.character>n.character?{start:n,end:e}:t}function Wu(t){const e=cl(t.range);return e!==t.range?{newText:t.newText,range:e}:t}var hl;(function(t){t.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[Oe.Markdown,Oe.PlainText]}},hover:{contentFormat:[Oe.Markdown,Oe.PlainText]}}}})(hl||(hl={}));var Dn;(function(t){t[t.Unknown=0]="Unknown",t[t.File=1]="File",t[t.Directory=2]="Directory",t[t.SymbolicLink=64]="SymbolicLink"})(Dn||(Dn={}));var dl={E:"Edge",FF:"Firefox",S:"Safari",C:"Chrome",IE:"IE",O:"Opera"};function ul(t){switch(t){case"experimental":return`⚠️ Property is experimental. Be cautious when using it.️
|
|
20
20
|
|
|
@@ -33,9 +33,9 @@ Syntax: `.concat(t.syntax))}return t.references&&t.references.length>0&&e?.refer
|
|
|
33
33
|
|
|
34
34
|
Syntax: `.concat(ur(t.syntax)))}return t.references&&t.references.length>0&&e?.references!==!1&&(n.length>0&&(n+=`
|
|
35
35
|
|
|
36
|
-
`),n+=t.references.map(function(i){return"[".concat(i.name,"](").concat(i.url,")")}).join(" | ")),n}function pl(t){return t===void 0&&(t=[]),t.length===0?null:t.map(function(e){var n="",r=e.match(/([A-Z]+)(\d+)?/),i=r[1],s=r[2];return i in dl&&(n+=dl[i]),s&&(n+=" "+s),n}).join(", ")}var An=Ge(),Vu=[{func:"rgb($red, $green, $blue)",desc:An("css.builtin.rgb","Creates a Color from red, green, and blue values.")},{func:"rgba($red, $green, $blue, $alpha)",desc:An("css.builtin.rgba","Creates a Color from red, green, blue, and alpha values.")},{func:"hsl($hue, $saturation, $lightness)",desc:An("css.builtin.hsl","Creates a Color from hue, saturation, and lightness values.")},{func:"hsla($hue, $saturation, $lightness, $alpha)",desc:An("css.builtin.hsla","Creates a Color from hue, saturation, lightness, and alpha values.")},{func:"hwb($hue $white $black)",desc:An("css.builtin.hwb","Creates a Color from hue, white and black.")}],pr={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgrey:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rebeccapurple:"#663399",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},fl={currentColor:"The value of the 'color' property. The computed value of the 'currentColor' keyword is the computed value of the 'color' property. If the 'currentColor' keyword is set on the 'color' property itself, it is treated as 'color:inherit' at parse time.",transparent:"Fully transparent. This keyword can be considered a shorthand for rgba(0,0,0,0) which is its computed value."};function wt(t,e){var n=t.getText(),r=n.match(/^([-+]?[0-9]*\.?[0-9]+)(%?)$/);if(r){r[2]&&(e=100);var i=parseFloat(r[1])/e;if(i>=0&&i<=1)return i}throw new Error}function ml(t){var e=t.getText(),n=e.match(/^([-+]?[0-9]*\.?[0-9]+)(deg|rad|grad|turn)?$/);if(n)switch(n[2]){case"deg":return parseFloat(e)%360;case"rad":return parseFloat(e)*180/Math.PI%360;case"grad":return parseFloat(e)*.9%360;case"turn":return parseFloat(e)*360%360;default:if(typeof n[2]>"u")return parseFloat(e)%360}throw new Error}function Bu(t){var e=t.getName();return e?/^(rgb|rgba|hsl|hsla|hwb)$/gi.test(e):!1}var gl=48,qu=57,ju=65,fr=97,$u=102;function ue(t){return t<gl?0:t<=qu?t-gl:(t<fr&&(t+=fr-ju),t>=fr&&t<=$u?t-fr+10:0)}function bl(t){if(t[0]!=="#")return null;switch(t.length){case 4:return{red:ue(t.charCodeAt(1))*17/255,green:ue(t.charCodeAt(2))*17/255,blue:ue(t.charCodeAt(3))*17/255,alpha:1};case 5:return{red:ue(t.charCodeAt(1))*17/255,green:ue(t.charCodeAt(2))*17/255,blue:ue(t.charCodeAt(3))*17/255,alpha:ue(t.charCodeAt(4))*17/255};case 7:return{red:(ue(t.charCodeAt(1))*16+ue(t.charCodeAt(2)))/255,green:(ue(t.charCodeAt(3))*16+ue(t.charCodeAt(4)))/255,blue:(ue(t.charCodeAt(5))*16+ue(t.charCodeAt(6)))/255,alpha:1};case 9:return{red:(ue(t.charCodeAt(1))*16+ue(t.charCodeAt(2)))/255,green:(ue(t.charCodeAt(3))*16+ue(t.charCodeAt(4)))/255,blue:(ue(t.charCodeAt(5))*16+ue(t.charCodeAt(6)))/255,alpha:(ue(t.charCodeAt(7))*16+ue(t.charCodeAt(8)))/255}}return null}function vl(t,e,n,r){if(r===void 0&&(r=1),t=t/60,e===0)return{red:n,green:n,blue:n,alpha:r};var i=function(o,l,c){for(;c<0;)c+=6;for(;c>=6;)c-=6;return c<1?(l-o)*c+o:c<3?l:c<4?(l-o)*(4-c)+o:o},s=n<=.5?n*(e+1):n+e-n*e,a=n*2-s;return{red:i(a,s,t+2),green:i(a,s,t),blue:i(a,s,t-2),alpha:r}}function yl(t){var e=t.red,n=t.green,r=t.blue,i=t.alpha,s=Math.max(e,n,r),a=Math.min(e,n,r),o=0,l=0,c=(a+s)/2,h=s-a;if(h>0){switch(l=Math.min(c<=.5?h/(2*c):h/(2-2*c),1),s){case e:o=(n-r)/h+(n<r?6:0);break;case n:o=(r-e)/h+2;break;case r:o=(e-n)/h+4;break}o*=60,o=Math.round(o)}return{h:o,s:l,l:c,a:i}}function Hu(t,e,n,r){if(r===void 0&&(r=1),e+n>=1){var i=e/(e+n);return{red:i,green:i,blue:i,alpha:r}}var s=vl(t,1,.5,r),a=s.red;a*=1-e-n,a+=e;var o=s.green;o*=1-e-n,o+=e;var l=s.blue;return l*=1-e-n,l+=e,{red:a,green:o,blue:l,alpha:r}}function Gu(t){var e=yl(t),n=Math.min(t.red,t.green,t.blue),r=1-Math.max(t.red,t.green,t.blue);return{h:e.h,w:n,b:r,a:e.a}}function Ju(t){if(t.type===v.HexColorValue){var e=t.getText();return bl(e)}else if(t.type===v.Function){var n=t,r=n.getName(),i=n.getArguments().getChildren();if(i.length===1){var s=i[0].getChildren();if(s.length===1&&s[0].type===v.Expression&&(i=s[0].getChildren(),i.length===3)){var a=i[2];if(a instanceof bi){var o=a.getLeft(),l=a.getRight(),c=a.getOperator();o&&l&&c&&c.matches("/")&&(i=[i[0],i[1],o,l])}}}if(!r||i.length<3||i.length>4)return null;try{var h=i.length===4?wt(i[3],1):1;if(r==="rgb"||r==="rgba")return{red:wt(i[0],255),green:wt(i[1],255),blue:wt(i[2],255),alpha:h};if(r==="hsl"||r==="hsla"){var u=ml(i[0]),f=wt(i[1],100),m=wt(i[2],100);return vl(u,f,m,h)}else if(r==="hwb"){var u=ml(i[0]),g=wt(i[1],100),b=wt(i[2],100);return Hu(u,g,b,h)}}catch{return null}}else if(t.type===v.Identifier){if(t.parent&&t.parent.type!==v.Term)return null;var y=t.parent;if(y&&y.parent&&y.parent.type===v.BinaryExpression){var C=y.parent;if(C.parent&&C.parent.type===v.ListEntry&&C.parent.key===C)return null}var k=t.getText().toLowerCase();if(k==="none")return null;var w=pr[k];if(w)return bl(w)}return null}var wl={bottom:"Computes to ‘100%’ for the vertical position if one or two values are given, otherwise specifies the bottom edge as the origin for the next offset.",center:"Computes to ‘50%’ (‘left 50%’) for the horizontal position if the horizontal position is not otherwise specified, or ‘50%’ (‘top 50%’) for the vertical position if it is.",left:"Computes to ‘0%’ for the horizontal position if one or two values are given, otherwise specifies the left edge as the origin for the next offset.",right:"Computes to ‘100%’ for the horizontal position if one or two values are given, otherwise specifies the right edge as the origin for the next offset.",top:"Computes to ‘0%’ for the vertical position if one or two values are given, otherwise specifies the top edge as the origin for the next offset."},xl={"no-repeat":"Placed once and not repeated in this direction.",repeat:"Repeated in this direction as often as needed to cover the background painting area.","repeat-x":"Computes to ‘repeat no-repeat’.","repeat-y":"Computes to ‘no-repeat repeat’.",round:"Repeated as often as will fit within the background positioning area. If it doesn’t fit a whole number of times, it is rescaled so that it does.",space:"Repeated as often as will fit within the background positioning area without being clipped and then the images are spaced out to fill the area."},Sl={dashed:"A series of square-ended dashes.",dotted:"A series of round dots.",double:"Two parallel solid lines with some space between them.",groove:"Looks as if it were carved in the canvas.",hidden:"Same as ‘none’, but has different behavior in the border conflict resolution rules for border-collapsed tables.",inset:"Looks as if the content on the inside of the border is sunken into the canvas.",none:"No border. Color and width are ignored.",outset:"Looks as if the content on the inside of the border is coming out of the canvas.",ridge:"Looks as if it were coming out of the canvas.",solid:"A single line segment."},Xu=["medium","thick","thin"],Cl={"border-box":"The background is painted within (clipped to) the border box.","content-box":"The background is painted within (clipped to) the content box.","padding-box":"The background is painted within (clipped to) the padding box."},kl={"margin-box":"Uses the margin box as reference box.","fill-box":"Uses the object bounding box as reference box.","stroke-box":"Uses the stroke bounding box as reference box.","view-box":"Uses the nearest SVG viewport as reference box."},_l={initial:"Represents the value specified as the property’s initial value.",inherit:"Represents the computed value of the property on the element’s parent.",unset:"Acts as either `inherit` or `initial`, depending on whether the property is inherited or not."},El={"var()":"Evaluates the value of a custom variable.","calc()":"Evaluates an mathematical expression. The following operators can be used: + - * /."},Rl={"url()":"Reference an image file by URL","image()":"Provide image fallbacks and annotations.","-webkit-image-set()":"Provide multiple resolutions. Remember to use unprefixed image-set() in addition.","image-set()":"Provide multiple resolutions of an image and const the UA decide which is most appropriate in a given situation.","-moz-element()":"Use an element in the document as an image. Remember to use unprefixed element() in addition.","element()":"Use an element in the document as an image.","cross-fade()":"Indicates the two images to be combined and how far along in the transition the combination is.","-webkit-gradient()":"Deprecated. Use modern linear-gradient() or radial-gradient() instead.","-webkit-linear-gradient()":"Linear gradient. Remember to use unprefixed version in addition.","-moz-linear-gradient()":"Linear gradient. Remember to use unprefixed version in addition.","-o-linear-gradient()":"Linear gradient. Remember to use unprefixed version in addition.","linear-gradient()":"A linear gradient is created by specifying a straight gradient line, and then several colors placed along that line.","-webkit-repeating-linear-gradient()":"Repeating Linear gradient. Remember to use unprefixed version in addition.","-moz-repeating-linear-gradient()":"Repeating Linear gradient. Remember to use unprefixed version in addition.","-o-repeating-linear-gradient()":"Repeating Linear gradient. Remember to use unprefixed version in addition.","repeating-linear-gradient()":"Same as linear-gradient, except the color-stops are repeated infinitely in both directions, with their positions shifted by multiples of the difference between the last specified color-stop’s position and the first specified color-stop’s position.","-webkit-radial-gradient()":"Radial gradient. Remember to use unprefixed version in addition.","-moz-radial-gradient()":"Radial gradient. Remember to use unprefixed version in addition.","radial-gradient()":"Colors emerge from a single point and smoothly spread outward in a circular or elliptical shape.","-webkit-repeating-radial-gradient()":"Repeating radial gradient. Remember to use unprefixed version in addition.","-moz-repeating-radial-gradient()":"Repeating radial gradient. Remember to use unprefixed version in addition.","repeating-radial-gradient()":"Same as radial-gradient, except the color-stops are repeated infinitely in both directions, with their positions shifted by multiples of the difference between the last specified color-stop’s position and the first specified color-stop’s position."},Fl={ease:"Equivalent to cubic-bezier(0.25, 0.1, 0.25, 1.0).","ease-in":"Equivalent to cubic-bezier(0.42, 0, 1.0, 1.0).","ease-in-out":"Equivalent to cubic-bezier(0.42, 0, 0.58, 1.0).","ease-out":"Equivalent to cubic-bezier(0, 0, 0.58, 1.0).",linear:"Equivalent to cubic-bezier(0.0, 0.0, 1.0, 1.0).","step-end":"Equivalent to steps(1, end).","step-start":"Equivalent to steps(1, start).","steps()":"The first parameter specifies the number of intervals in the function. The second parameter, which is optional, is either the value “start” or “end”.","cubic-bezier()":"Specifies a cubic-bezier curve. The four values specify points P1 and P2 of the curve as (x1, y1, x2, y2).","cubic-bezier(0.6, -0.28, 0.735, 0.045)":"Ease-in Back. Overshoots.","cubic-bezier(0.68, -0.55, 0.265, 1.55)":"Ease-in-out Back. Overshoots.","cubic-bezier(0.175, 0.885, 0.32, 1.275)":"Ease-out Back. Overshoots.","cubic-bezier(0.6, 0.04, 0.98, 0.335)":"Ease-in Circular. Based on half circle.","cubic-bezier(0.785, 0.135, 0.15, 0.86)":"Ease-in-out Circular. Based on half circle.","cubic-bezier(0.075, 0.82, 0.165, 1)":"Ease-out Circular. Based on half circle.","cubic-bezier(0.55, 0.055, 0.675, 0.19)":"Ease-in Cubic. Based on power of three.","cubic-bezier(0.645, 0.045, 0.355, 1)":"Ease-in-out Cubic. Based on power of three.","cubic-bezier(0.215, 0.610, 0.355, 1)":"Ease-out Cubic. Based on power of three.","cubic-bezier(0.95, 0.05, 0.795, 0.035)":"Ease-in Exponential. Based on two to the power ten.","cubic-bezier(1, 0, 0, 1)":"Ease-in-out Exponential. Based on two to the power ten.","cubic-bezier(0.19, 1, 0.22, 1)":"Ease-out Exponential. Based on two to the power ten.","cubic-bezier(0.47, 0, 0.745, 0.715)":"Ease-in Sine.","cubic-bezier(0.445, 0.05, 0.55, 0.95)":"Ease-in-out Sine.","cubic-bezier(0.39, 0.575, 0.565, 1)":"Ease-out Sine.","cubic-bezier(0.55, 0.085, 0.68, 0.53)":"Ease-in Quadratic. Based on power of two.","cubic-bezier(0.455, 0.03, 0.515, 0.955)":"Ease-in-out Quadratic. Based on power of two.","cubic-bezier(0.25, 0.46, 0.45, 0.94)":"Ease-out Quadratic. Based on power of two.","cubic-bezier(0.895, 0.03, 0.685, 0.22)":"Ease-in Quartic. Based on power of four.","cubic-bezier(0.77, 0, 0.175, 1)":"Ease-in-out Quartic. Based on power of four.","cubic-bezier(0.165, 0.84, 0.44, 1)":"Ease-out Quartic. Based on power of four.","cubic-bezier(0.755, 0.05, 0.855, 0.06)":"Ease-in Quintic. Based on power of five.","cubic-bezier(0.86, 0, 0.07, 1)":"Ease-in-out Quintic. Based on power of five.","cubic-bezier(0.23, 1, 0.320, 1)":"Ease-out Quintic. Based on power of five."},Dl={"circle()":"Defines a circle.","ellipse()":"Defines an ellipse.","inset()":"Defines an inset rectangle.","polygon()":"Defines a polygon."},Al={length:["em","rem","ex","px","cm","mm","in","pt","pc","ch","vw","vh","vmin","vmax"],angle:["deg","rad","grad","turn"],time:["ms","s"],frequency:["Hz","kHz"],resolution:["dpi","dpcm","dppx"],percentage:["%","fr"]},Yu=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","const","video","wbr"],Qu=["circle","clipPath","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","hatch","hatchpath","image","line","linearGradient","marker","mask","mesh","meshpatch","meshrow","metadata","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","solidcolor","stop","svg","switch","symbol","text","textPath","tspan","use","view"],Ku=["@bottom-center","@bottom-left","@bottom-left-corner","@bottom-right","@bottom-right-corner","@left-bottom","@left-middle","@left-top","@right-bottom","@right-middle","@right-top","@top-center","@top-left","@top-left-corner","@top-right","@top-right-corner"];function mr(t){return Object.keys(t).map(function(e){return t[e]})}function Ue(t){return typeof t<"u"}var Nl=function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,s;r<i;r++)(s||!(r in e))&&(s||(s=Array.prototype.slice.call(e,0,r)),s[r]=e[r]);return t.concat(s||Array.prototype.slice.call(e))},Ni=function(){function t(e){e===void 0&&(e=new vn),this.keyframeRegex=/^@(\-(webkit|ms|moz|o)\-)?keyframes$/i,this.scanner=e,this.token={type:p.EOF,offset:-1,len:0,text:""},this.prevToken=void 0}return t.prototype.peekIdent=function(e){return p.Ident===this.token.type&&e.length===this.token.text.length&&e===this.token.text.toLowerCase()},t.prototype.peekKeyword=function(e){return p.AtKeyword===this.token.type&&e.length===this.token.text.length&&e===this.token.text.toLowerCase()},t.prototype.peekDelim=function(e){return p.Delim===this.token.type&&e===this.token.text},t.prototype.peek=function(e){return e===this.token.type},t.prototype.peekOne=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.indexOf(this.token.type)!==-1},t.prototype.peekRegExp=function(e,n){return e!==this.token.type?!1:n.test(this.token.text)},t.prototype.hasWhitespace=function(){return!!this.prevToken&&this.prevToken.offset+this.prevToken.len!==this.token.offset},t.prototype.consumeToken=function(){this.prevToken=this.token,this.token=this.scanner.scan()},t.prototype.acceptUnicodeRange=function(){var e=this.scanner.tryScanUnicode();return e?(this.prevToken=e,this.token=this.scanner.scan(),!0):!1},t.prototype.mark=function(){return{prev:this.prevToken,curr:this.token,pos:this.scanner.pos()}},t.prototype.restoreAtMark=function(e){this.prevToken=e.prev,this.token=e.curr,this.scanner.goBackTo(e.pos)},t.prototype.try=function(e){var n=this.mark(),r=e();return r||(this.restoreAtMark(n),null)},t.prototype.acceptOneKeyword=function(e){if(p.AtKeyword===this.token.type)for(var n=0,r=e;n<r.length;n++){var i=r[n];if(i.length===this.token.text.length&&i===this.token.text.toLowerCase())return this.consumeToken(),!0}return!1},t.prototype.accept=function(e){return e===this.token.type?(this.consumeToken(),!0):!1},t.prototype.acceptIdent=function(e){return this.peekIdent(e)?(this.consumeToken(),!0):!1},t.prototype.acceptKeyword=function(e){return this.peekKeyword(e)?(this.consumeToken(),!0):!1},t.prototype.acceptDelim=function(e){return this.peekDelim(e)?(this.consumeToken(),!0):!1},t.prototype.acceptRegexp=function(e){return e.test(this.token.text)?(this.consumeToken(),!0):!1},t.prototype._parseRegexp=function(e){var n=this.createNode(v.Identifier);do;while(this.acceptRegexp(e));return this.finish(n)},t.prototype.acceptUnquotedString=function(){var e=this.scanner.pos();this.scanner.goBackTo(this.token.offset);var n=this.scanner.scanUnquotedString();return n?(this.token=n,this.consumeToken(),!0):(this.scanner.goBackTo(e),!1)},t.prototype.resync=function(e,n){for(;;){if(e&&e.indexOf(this.token.type)!==-1)return this.consumeToken(),!0;if(n&&n.indexOf(this.token.type)!==-1)return!0;if(this.token.type===p.EOF)return!1;this.token=this.scanner.scan()}},t.prototype.createNode=function(e){return new U(this.token.offset,this.token.len,e)},t.prototype.create=function(e){return new e(this.token.offset,this.token.len)},t.prototype.finish=function(e,n,r,i){if(!(e instanceof ke)&&(n&&this.markError(e,n,r,i),this.prevToken)){var s=this.prevToken.offset+this.prevToken.len;e.length=s>e.offset?s-e.offset:0}return e},t.prototype.markError=function(e,n,r,i){this.token!==this.lastErrorToken&&(e.addIssue(new zo(e,n,Pe.Error,void 0,this.token.offset,this.token.len)),this.lastErrorToken=this.token),(r||i)&&this.resync(r,i)},t.prototype.parseStylesheet=function(e){var n=e.version,r=e.getText(),i=function(s,a){if(e.version!==n)throw new Error("Underlying model has changed, AST is no longer valid");return r.substr(s,a)};return this.internalParse(r,this._parseStylesheet,i)},t.prototype.internalParse=function(e,n,r){this.scanner.setSource(e),this.token=this.scanner.scan();var i=n.bind(this)();return i&&(r?i.textProvider=r:i.textProvider=function(s,a){return e.substr(s,a)}),i},t.prototype._parseStylesheet=function(){for(var e=this.create(ru);e.addChild(this._parseStylesheetStart()););var n=!1;do{var r=!1;do{r=!1;var i=this._parseStylesheetStatement();for(i&&(e.addChild(i),r=!0,n=!1,!this.peek(p.EOF)&&this._needsSemicolonAfter(i)&&!this.accept(p.SemiColon)&&this.markError(e,S.SemiColonExpected));this.accept(p.SemiColon)||this.accept(p.CDO)||this.accept(p.CDC);)r=!0,n=!1}while(r);if(this.peek(p.EOF))break;n||(this.peek(p.AtKeyword)?this.markError(e,S.UnknownAtRule):this.markError(e,S.RuleOrSelectorExpected),n=!0),this.consumeToken()}while(!this.peek(p.EOF));return this.finish(e)},t.prototype._parseStylesheetStart=function(){return this._parseCharset()},t.prototype._parseStylesheetStatement=function(e){return e===void 0&&(e=!1),this.peek(p.AtKeyword)?this._parseStylesheetAtStatement(e):this._parseRuleset(e)},t.prototype._parseStylesheetAtStatement=function(e){return e===void 0&&(e=!1),this._parseImport()||this._parseMedia(e)||this._parsePage()||this._parseFontFace()||this._parseKeyframe()||this._parseSupports(e)||this._parseViewPort()||this._parseNamespace()||this._parseDocument()||this._parseUnknownAtRule()},t.prototype._tryParseRuleset=function(e){var n=this.mark();if(this._parseSelector(e)){for(;this.accept(p.Comma)&&this._parseSelector(e););if(this.accept(p.CurlyL))return this.restoreAtMark(n),this._parseRuleset(e)}return this.restoreAtMark(n),null},t.prototype._parseRuleset=function(e){e===void 0&&(e=!1);var n=this.create(Jt),r=n.getSelectors();if(!r.addChild(this._parseSelector(e)))return null;for(;this.accept(p.Comma);)if(!r.addChild(this._parseSelector(e)))return this.finish(n,S.SelectorExpected);return this._parseBody(n,this._parseRuleSetDeclaration.bind(this))},t.prototype._parseRuleSetDeclarationAtStatement=function(){return this._parseUnknownAtRule()},t.prototype._parseRuleSetDeclaration=function(){return this.peek(p.AtKeyword)?this._parseRuleSetDeclarationAtStatement():this._parseDeclaration()},t.prototype._needsSemicolonAfter=function(e){switch(e.type){case v.Keyframe:case v.ViewPort:case v.Media:case v.Ruleset:case v.Namespace:case v.If:case v.For:case v.Each:case v.While:case v.MixinDeclaration:case v.FunctionDeclaration:case v.MixinContentDeclaration:return!1;case v.ExtendsReference:case v.MixinContentReference:case v.ReturnStatement:case v.MediaQuery:case v.Debug:case v.Import:case v.AtApplyRule:case v.CustomPropertyDeclaration:return!0;case v.VariableDeclaration:return e.needsSemicolon;case v.MixinReference:return!e.getContent();case v.Declaration:return!e.getNestedProperties()}return!1},t.prototype._parseDeclarations=function(e){var n=this.create(ui);if(!this.accept(p.CurlyL))return null;for(var r=e();n.addChild(r)&&!this.peek(p.CurlyR);){if(this._needsSemicolonAfter(r)&&!this.accept(p.SemiColon))return this.finish(n,S.SemiColonExpected,[p.SemiColon,p.CurlyR]);for(r&&this.prevToken&&this.prevToken.type===p.SemiColon&&(r.semicolonPosition=this.prevToken.offset);this.accept(p.SemiColon););r=e()}return this.accept(p.CurlyR)?this.finish(n):this.finish(n,S.RightCurlyExpected,[p.CurlyR,p.SemiColon])},t.prototype._parseBody=function(e,n){return e.setDeclarations(this._parseDeclarations(n))?this.finish(e):this.finish(e,S.LeftCurlyExpected,[p.CurlyR,p.SemiColon])},t.prototype._parseSelector=function(e){var n=this.create(yn),r=!1;for(e&&(r=n.addChild(this._parseCombinator()));n.addChild(this._parseSimpleSelector());)r=!0,n.addChild(this._parseCombinator());return r?this.finish(n):null},t.prototype._parseDeclaration=function(e){var n=this._tryParseCustomPropertyDeclaration(e);if(n)return n;var r=this.create(Ze);return r.setProperty(this._parseProperty())?this.accept(p.Colon)?(this.prevToken&&(r.colonPosition=this.prevToken.offset),r.setValue(this._parseExpr())?(r.addChild(this._parsePrio()),this.peek(p.SemiColon)&&(r.semicolonPosition=this.token.offset),this.finish(r)):this.finish(r,S.PropertyValueExpected)):this.finish(r,S.ColonExpected,[p.Colon],e||[p.SemiColon]):null},t.prototype._tryParseCustomPropertyDeclaration=function(e){if(!this.peekRegExp(p.Ident,/^--/))return null;var n=this.create(su);if(!n.setProperty(this._parseProperty()))return null;if(!this.accept(p.Colon))return this.finish(n,S.ColonExpected,[p.Colon]);this.prevToken&&(n.colonPosition=this.prevToken.offset);var r=this.mark();if(this.peek(p.CurlyL)){var i=this.create(iu),s=this._parseDeclarations(this._parseRuleSetDeclaration.bind(this));if(i.setDeclarations(s)&&!s.isErroneous(!0)&&(i.addChild(this._parsePrio()),this.peek(p.SemiColon)))return this.finish(i),n.setPropertySet(i),n.semicolonPosition=this.token.offset,this.finish(n);this.restoreAtMark(r)}var a=this._parseExpr();return a&&!a.isErroneous(!0)&&(this._parsePrio(),this.peekOne.apply(this,Nl(Nl([],e||[],!1),[p.SemiColon,p.EOF],!1)))?(n.setValue(a),this.peek(p.SemiColon)&&(n.semicolonPosition=this.token.offset),this.finish(n)):(this.restoreAtMark(r),n.addChild(this._parseCustomPropertyValue(e)),n.addChild(this._parsePrio()),Ue(n.colonPosition)&&this.token.offset===n.colonPosition+1?this.finish(n,S.PropertyValueExpected):this.finish(n))},t.prototype._parseCustomPropertyValue=function(e){var n=this;e===void 0&&(e=[p.CurlyR]);var r=this.create(U),i=function(){return a===0&&o===0&&l===0},s=function(){return e.indexOf(n.token.type)!==-1},a=0,o=0,l=0;e:for(;;){switch(this.token.type){case p.SemiColon:if(i())break e;break;case p.Exclamation:if(i())break e;break;case p.CurlyL:a++;break;case p.CurlyR:if(a--,a<0){if(s()&&o===0&&l===0)break e;return this.finish(r,S.LeftCurlyExpected)}break;case p.ParenthesisL:o++;break;case p.ParenthesisR:if(o--,o<0){if(s()&&l===0&&a===0)break e;return this.finish(r,S.LeftParenthesisExpected)}break;case p.BracketL:l++;break;case p.BracketR:if(l--,l<0)return this.finish(r,S.LeftSquareBracketExpected);break;case p.BadString:break e;case p.EOF:var c=S.RightCurlyExpected;return l>0?c=S.RightSquareBracketExpected:o>0&&(c=S.RightParenthesisExpected),this.finish(r,c)}this.consumeToken()}return this.finish(r)},t.prototype._tryToParseDeclaration=function(e){var n=this.mark();return this._parseProperty()&&this.accept(p.Colon)?(this.restoreAtMark(n),this._parseDeclaration(e)):(this.restoreAtMark(n),null)},t.prototype._parseProperty=function(){var e=this.create(fi),n=this.mark();return(this.acceptDelim("*")||this.acceptDelim("_"))&&this.hasWhitespace()?(this.restoreAtMark(n),null):e.setIdentifier(this._parsePropertyIdentifier())?this.finish(e):null},t.prototype._parsePropertyIdentifier=function(){return this._parseIdent()},t.prototype._parseCharset=function(){if(!this.peek(p.Charset))return null;var e=this.create(U);return this.consumeToken(),this.accept(p.String)?this.accept(p.SemiColon)?this.finish(e):this.finish(e,S.SemiColonExpected):this.finish(e,S.IdentifierExpected)},t.prototype._parseImport=function(){if(!this.peekKeyword("@import"))return null;var e=this.create(mi);return this.consumeToken(),!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral())?this.finish(e,S.URIOrStringExpected):(!this.peek(p.SemiColon)&&!this.peek(p.EOF)&&e.setMedialist(this._parseMediaQueryList()),this.finish(e))},t.prototype._parseNamespace=function(){if(!this.peekKeyword("@namespace"))return null;var e=this.create(bu);return this.consumeToken(),!e.addChild(this._parseURILiteral())&&(e.addChild(this._parseIdent()),!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral()))?this.finish(e,S.URIExpected,[p.SemiColon]):this.accept(p.SemiColon)?this.finish(e):this.finish(e,S.SemiColonExpected)},t.prototype._parseFontFace=function(){if(!this.peekKeyword("@font-face"))return null;var e=this.create(Co);return this.consumeToken(),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))},t.prototype._parseViewPort=function(){if(!this.peekKeyword("@-ms-viewport")&&!this.peekKeyword("@-o-viewport")&&!this.peekKeyword("@viewport"))return null;var e=this.create(uu);return this.consumeToken(),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))},t.prototype._parseKeyframe=function(){if(!this.peekRegExp(p.AtKeyword,this.keyframeRegex))return null;var e=this.create(_o),n=this.create(U);return this.consumeToken(),e.setKeyword(this.finish(n)),n.matches("@-ms-keyframes")&&this.markError(n,S.UnknownKeyword),e.setIdentifier(this._parseKeyframeIdent())?this._parseBody(e,this._parseKeyframeSelector.bind(this)):this.finish(e,S.IdentifierExpected,[p.CurlyR])},t.prototype._parseKeyframeIdent=function(){return this._parseIdent([Z.Keyframe])},t.prototype._parseKeyframeSelector=function(){var e=this.create(Eo);if(!e.addChild(this._parseIdent())&&!this.accept(p.Percentage))return null;for(;this.accept(p.Comma);)if(!e.addChild(this._parseIdent())&&!this.accept(p.Percentage))return this.finish(e,S.PercentageExpected);return this._parseBody(e,this._parseRuleSetDeclaration.bind(this))},t.prototype._tryParseKeyframeSelector=function(){var e=this.create(Eo),n=this.mark();if(!e.addChild(this._parseIdent())&&!this.accept(p.Percentage))return null;for(;this.accept(p.Comma);)if(!e.addChild(this._parseIdent())&&!this.accept(p.Percentage))return this.restoreAtMark(n),null;return this.peek(p.CurlyL)?this._parseBody(e,this._parseRuleSetDeclaration.bind(this)):(this.restoreAtMark(n),null)},t.prototype._parseSupports=function(e){if(e===void 0&&(e=!1),!this.peekKeyword("@supports"))return null;var n=this.create(gi);return this.consumeToken(),n.addChild(this._parseSupportsCondition()),this._parseBody(n,this._parseSupportsDeclaration.bind(this,e))},t.prototype._parseSupportsDeclaration=function(e){return e===void 0&&(e=!1),e?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)},t.prototype._parseSupportsCondition=function(){var e=this.create(xn);if(this.acceptIdent("not"))e.addChild(this._parseSupportsConditionInParens());else if(e.addChild(this._parseSupportsConditionInParens()),this.peekRegExp(p.Ident,/^(and|or)$/i))for(var n=this.token.text.toLowerCase();this.acceptIdent(n);)e.addChild(this._parseSupportsConditionInParens());return this.finish(e)},t.prototype._parseSupportsConditionInParens=function(){var e=this.create(xn);if(this.accept(p.ParenthesisL))return this.prevToken&&(e.lParent=this.prevToken.offset),!e.addChild(this._tryToParseDeclaration([p.ParenthesisR]))&&!this._parseSupportsCondition()?this.finish(e,S.ConditionExpected):this.accept(p.ParenthesisR)?(this.prevToken&&(e.rParent=this.prevToken.offset),this.finish(e)):this.finish(e,S.RightParenthesisExpected,[p.ParenthesisR],[]);if(this.peek(p.Ident)){var n=this.mark();if(this.consumeToken(),!this.hasWhitespace()&&this.accept(p.ParenthesisL)){for(var r=1;this.token.type!==p.EOF&&r!==0;)this.token.type===p.ParenthesisL?r++:this.token.type===p.ParenthesisR&&r--,this.consumeToken();return this.finish(e)}else this.restoreAtMark(n)}return this.finish(e,S.LeftParenthesisExpected,[],[p.ParenthesisL])},t.prototype._parseMediaDeclaration=function(e){return e===void 0&&(e=!1),e?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)},t.prototype._parseMedia=function(e){if(e===void 0&&(e=!1),!this.peekKeyword("@media"))return null;var n=this.create(Ro);return this.consumeToken(),n.addChild(this._parseMediaQueryList())?this._parseBody(n,this._parseMediaDeclaration.bind(this,e)):this.finish(n,S.MediaQueryExpected)},t.prototype._parseMediaQueryList=function(){var e=this.create(Fo);if(!e.addChild(this._parseMediaQuery()))return this.finish(e,S.MediaQueryExpected);for(;this.accept(p.Comma);)if(!e.addChild(this._parseMediaQuery()))return this.finish(e,S.MediaQueryExpected);return this.finish(e)},t.prototype._parseMediaQuery=function(){var e=this.create(Do),n=this.mark();if(this.acceptIdent("not"),this.peek(p.ParenthesisL))this.restoreAtMark(n),e.addChild(this._parseMediaCondition());else{if(this.acceptIdent("only"),!e.addChild(this._parseIdent()))return null;this.acceptIdent("and")&&e.addChild(this._parseMediaCondition())}return this.finish(e)},t.prototype._parseRatio=function(){var e=this.mark(),n=this.create(_u);return this._parseNumeric()?this.acceptDelim("/")?this._parseNumeric()?this.finish(n):this.finish(n,S.NumberExpected):(this.restoreAtMark(e),null):null},t.prototype._parseMediaCondition=function(){var e=this.create(yu);this.acceptIdent("not");for(var n=!0;n;){if(!this.accept(p.ParenthesisL))return this.finish(e,S.LeftParenthesisExpected,[],[p.CurlyL]);if(this.peek(p.ParenthesisL)||this.peekIdent("not")?e.addChild(this._parseMediaCondition()):e.addChild(this._parseMediaFeature()),!this.accept(p.ParenthesisR))return this.finish(e,S.RightParenthesisExpected,[],[p.CurlyL]);n=this.acceptIdent("and")||this.acceptIdent("or")}return this.finish(e)},t.prototype._parseMediaFeature=function(){var e=this,n=[p.ParenthesisR],r=this.create(wu),i=function(){return e.acceptDelim("<")||e.acceptDelim(">")?(e.hasWhitespace()||e.acceptDelim("="),!0):!!e.acceptDelim("=")};if(r.addChild(this._parseMediaFeatureName())){if(this.accept(p.Colon)){if(!r.addChild(this._parseMediaFeatureValue()))return this.finish(r,S.TermExpected,[],n)}else if(i()){if(!r.addChild(this._parseMediaFeatureValue()))return this.finish(r,S.TermExpected,[],n);if(i()&&!r.addChild(this._parseMediaFeatureValue()))return this.finish(r,S.TermExpected,[],n)}}else if(r.addChild(this._parseMediaFeatureValue())){if(!i())return this.finish(r,S.OperatorExpected,[],n);if(!r.addChild(this._parseMediaFeatureName()))return this.finish(r,S.IdentifierExpected,[],n);if(i()&&!r.addChild(this._parseMediaFeatureValue()))return this.finish(r,S.TermExpected,[],n)}else return this.finish(r,S.IdentifierExpected,[],n);return this.finish(r)},t.prototype._parseMediaFeatureName=function(){return this._parseIdent()},t.prototype._parseMediaFeatureValue=function(){return this._parseRatio()||this._parseTermExpression()},t.prototype._parseMedium=function(){var e=this.create(U);return e.addChild(this._parseIdent())?this.finish(e):null},t.prototype._parsePageDeclaration=function(){return this._parsePageMarginBox()||this._parseRuleSetDeclaration()},t.prototype._parsePage=function(){if(!this.peekKeyword("@page"))return null;var e=this.create(xu);if(this.consumeToken(),e.addChild(this._parsePageSelector())){for(;this.accept(p.Comma);)if(!e.addChild(this._parsePageSelector()))return this.finish(e,S.IdentifierExpected)}return this._parseBody(e,this._parsePageDeclaration.bind(this))},t.prototype._parsePageMarginBox=function(){if(!this.peek(p.AtKeyword))return null;var e=this.create(Su);return this.acceptOneKeyword(Ku)||this.markError(e,S.UnknownAtRule,[],[p.CurlyL]),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))},t.prototype._parsePageSelector=function(){if(!this.peek(p.Ident)&&!this.peek(p.Colon))return null;var e=this.create(U);return e.addChild(this._parseIdent()),this.accept(p.Colon)&&!e.addChild(this._parseIdent())?this.finish(e,S.IdentifierExpected):this.finish(e)},t.prototype._parseDocument=function(){if(!this.peekKeyword("@-moz-document"))return null;var e=this.create(vu);return this.consumeToken(),this.resync([],[p.CurlyL]),this._parseBody(e,this._parseStylesheetStatement.bind(this))},t.prototype._parseUnknownAtRule=function(){if(!this.peek(p.AtKeyword))return null;var e=this.create(No);e.addChild(this._parseUnknownAtRuleName());var n=function(){return i===0&&s===0&&a===0},r=0,i=0,s=0,a=0;e:for(;;){switch(this.token.type){case p.SemiColon:if(n())break e;break;case p.EOF:return i>0?this.finish(e,S.RightCurlyExpected):a>0?this.finish(e,S.RightSquareBracketExpected):s>0?this.finish(e,S.RightParenthesisExpected):this.finish(e);case p.CurlyL:r++,i++;break;case p.CurlyR:if(i--,r>0&&i===0){if(this.consumeToken(),a>0)return this.finish(e,S.RightSquareBracketExpected);if(s>0)return this.finish(e,S.RightParenthesisExpected);break e}if(i<0){if(s===0&&a===0)break e;return this.finish(e,S.LeftCurlyExpected)}break;case p.ParenthesisL:s++;break;case p.ParenthesisR:if(s--,s<0)return this.finish(e,S.LeftParenthesisExpected);break;case p.BracketL:a++;break;case p.BracketR:if(a--,a<0)return this.finish(e,S.LeftSquareBracketExpected);break}this.consumeToken()}return e},t.prototype._parseUnknownAtRuleName=function(){var e=this.create(U);return this.accept(p.AtKeyword)?this.finish(e):e},t.prototype._parseOperator=function(){if(this.peekDelim("/")||this.peekDelim("*")||this.peekDelim("+")||this.peekDelim("-")||this.peek(p.Dashmatch)||this.peek(p.Includes)||this.peek(p.SubstringOperator)||this.peek(p.PrefixOperator)||this.peek(p.SuffixOperator)||this.peekDelim("=")){var e=this.createNode(v.Operator);return this.consumeToken(),this.finish(e)}else return null},t.prototype._parseUnaryOperator=function(){if(!this.peekDelim("+")&&!this.peekDelim("-"))return null;var e=this.create(U);return this.consumeToken(),this.finish(e)},t.prototype._parseCombinator=function(){if(this.peekDelim(">")){var e=this.create(U);this.consumeToken();var n=this.mark();if(!this.hasWhitespace()&&this.acceptDelim(">")){if(!this.hasWhitespace()&&this.acceptDelim(">"))return e.type=v.SelectorCombinatorShadowPiercingDescendant,this.finish(e);this.restoreAtMark(n)}return e.type=v.SelectorCombinatorParent,this.finish(e)}else if(this.peekDelim("+")){var e=this.create(U);return this.consumeToken(),e.type=v.SelectorCombinatorSibling,this.finish(e)}else if(this.peekDelim("~")){var e=this.create(U);return this.consumeToken(),e.type=v.SelectorCombinatorAllSiblings,this.finish(e)}else if(this.peekDelim("/")){var e=this.create(U);this.consumeToken();var n=this.mark();if(!this.hasWhitespace()&&this.acceptIdent("deep")&&!this.hasWhitespace()&&this.acceptDelim("/"))return e.type=v.SelectorCombinatorShadowPiercingDescendant,this.finish(e);this.restoreAtMark(n)}return null},t.prototype._parseSimpleSelector=function(){var e=this.create(Xt),n=0;for(e.addChild(this._parseElementName())&&n++;(n===0||!this.hasWhitespace())&&e.addChild(this._parseSimpleSelectorBody());)n++;return n>0?this.finish(e):null},t.prototype._parseSimpleSelectorBody=function(){return this._parsePseudo()||this._parseHash()||this._parseClass()||this._parseAttrib()},t.prototype._parseSelectorIdent=function(){return this._parseIdent()},t.prototype._parseHash=function(){if(!this.peek(p.Hash)&&!this.peekDelim("#"))return null;var e=this.createNode(v.IdentifierSelector);if(this.acceptDelim("#")){if(this.hasWhitespace()||!e.addChild(this._parseSelectorIdent()))return this.finish(e,S.IdentifierExpected)}else this.consumeToken();return this.finish(e)},t.prototype._parseClass=function(){if(!this.peekDelim("."))return null;var e=this.createNode(v.ClassSelector);return this.consumeToken(),this.hasWhitespace()||!e.addChild(this._parseSelectorIdent())?this.finish(e,S.IdentifierExpected):this.finish(e)},t.prototype._parseElementName=function(){var e=this.mark(),n=this.createNode(v.ElementNameSelector);return n.addChild(this._parseNamespacePrefix()),!n.addChild(this._parseSelectorIdent())&&!this.acceptDelim("*")?(this.restoreAtMark(e),null):this.finish(n)},t.prototype._parseNamespacePrefix=function(){var e=this.mark(),n=this.createNode(v.NamespacePrefix);return!n.addChild(this._parseIdent())&&this.acceptDelim("*"),this.acceptDelim("|")?this.finish(n):(this.restoreAtMark(e),null)},t.prototype._parseAttrib=function(){if(!this.peek(p.BracketL))return null;var e=this.create(ku);return this.consumeToken(),e.setNamespacePrefix(this._parseNamespacePrefix()),e.setIdentifier(this._parseIdent())?(e.setOperator(this._parseOperator())&&(e.setValue(this._parseBinaryExpr()),this.acceptIdent("i"),this.acceptIdent("s")),this.accept(p.BracketR)?this.finish(e):this.finish(e,S.RightSquareBracketExpected)):this.finish(e,S.IdentifierExpected)},t.prototype._parsePseudo=function(){var e=this,n=this._tryParsePseudoIdentifier();if(n){if(!this.hasWhitespace()&&this.accept(p.ParenthesisL)){var r=function(){var i=e.create(U);if(!i.addChild(e._parseSelector(!1)))return null;for(;e.accept(p.Comma)&&i.addChild(e._parseSelector(!1)););return e.peek(p.ParenthesisR)?e.finish(i):null};if(n.addChild(this.try(r)||this._parseBinaryExpr()),!this.accept(p.ParenthesisR))return this.finish(n,S.RightParenthesisExpected)}return this.finish(n)}return null},t.prototype._tryParsePseudoIdentifier=function(){if(!this.peek(p.Colon))return null;var e=this.mark(),n=this.createNode(v.PseudoSelector);return this.consumeToken(),this.hasWhitespace()?(this.restoreAtMark(e),null):(this.accept(p.Colon),this.hasWhitespace()||!n.addChild(this._parseIdent())?this.finish(n,S.IdentifierExpected):this.finish(n))},t.prototype._tryParsePrio=function(){var e=this.mark(),n=this._parsePrio();return n||(this.restoreAtMark(e),null)},t.prototype._parsePrio=function(){if(!this.peek(p.Exclamation))return null;var e=this.createNode(v.Prio);return this.accept(p.Exclamation)&&this.acceptIdent("important")?this.finish(e):null},t.prototype._parseExpr=function(e){e===void 0&&(e=!1);var n=this.create(Ao);if(!n.addChild(this._parseBinaryExpr()))return null;for(;;){if(this.peek(p.Comma)){if(e)return this.finish(n);this.consumeToken()}else if(!this.hasWhitespace())break;if(!n.addChild(this._parseBinaryExpr()))break}return this.finish(n)},t.prototype._parseUnicodeRange=function(){if(!this.peekIdent("u"))return null;var e=this.create(nu);return this.acceptUnicodeRange()?this.finish(e):null},t.prototype._parseNamedLine=function(){if(!this.peek(p.BracketL))return null;var e=this.createNode(v.GridLine);for(this.consumeToken();e.addChild(this._parseIdent()););return this.accept(p.BracketR)?this.finish(e):this.finish(e,S.RightSquareBracketExpected)},t.prototype._parseBinaryExpr=function(e,n){var r=this.create(bi);if(!r.setLeft(e||this._parseTerm()))return null;if(!r.setOperator(n||this._parseOperator()))return this.finish(r);if(!r.setRight(this._parseTerm()))return this.finish(r,S.TermExpected);r=this.finish(r);var i=this._parseOperator();return i&&(r=this._parseBinaryExpr(r,i)),this.finish(r)},t.prototype._parseTerm=function(){var e=this.create(Cu);return e.setOperator(this._parseUnaryOperator()),e.setExpression(this._parseTermExpression())?this.finish(e):null},t.prototype._parseTermExpression=function(){return this._parseURILiteral()||this._parseUnicodeRange()||this._parseFunction()||this._parseIdent()||this._parseStringLiteral()||this._parseNumeric()||this._parseHexColor()||this._parseOperation()||this._parseNamedLine()},t.prototype._parseOperation=function(){if(!this.peek(p.ParenthesisL))return null;var e=this.create(U);return this.consumeToken(),e.addChild(this._parseExpr()),this.accept(p.ParenthesisR)?this.finish(e):this.finish(e,S.RightParenthesisExpected)},t.prototype._parseNumeric=function(){if(this.peek(p.Num)||this.peek(p.Percentage)||this.peek(p.Resolution)||this.peek(p.Length)||this.peek(p.EMS)||this.peek(p.EXS)||this.peek(p.Angle)||this.peek(p.Time)||this.peek(p.Dimension)||this.peek(p.Freq)){var e=this.create(yi);return this.consumeToken(),this.finish(e)}return null},t.prototype._parseStringLiteral=function(){if(!this.peek(p.String)&&!this.peek(p.BadString))return null;var e=this.createNode(v.StringLiteral);return this.consumeToken(),this.finish(e)},t.prototype._parseURILiteral=function(){if(!this.peekRegExp(p.Ident,/^url(-prefix)?$/i))return null;var e=this.mark(),n=this.createNode(v.URILiteral);return this.accept(p.Ident),this.hasWhitespace()||!this.peek(p.ParenthesisL)?(this.restoreAtMark(e),null):(this.scanner.inURL=!0,this.consumeToken(),n.addChild(this._parseURLArgument()),this.scanner.inURL=!1,this.accept(p.ParenthesisR)?this.finish(n):this.finish(n,S.RightParenthesisExpected))},t.prototype._parseURLArgument=function(){var e=this.create(U);return!this.accept(p.String)&&!this.accept(p.BadString)&&!this.acceptUnquotedString()?null:this.finish(e)},t.prototype._parseIdent=function(e){if(!this.peek(p.Ident))return null;var n=this.create(We);return e&&(n.referenceTypes=e),n.isCustomProperty=this.peekRegExp(p.Ident,/^--/),this.consumeToken(),this.finish(n)},t.prototype._parseFunction=function(){var e=this.mark(),n=this.create(wn);if(!n.setIdentifier(this._parseFunctionIdentifier()))return null;if(this.hasWhitespace()||!this.accept(p.ParenthesisL))return this.restoreAtMark(e),null;if(n.getArguments().addChild(this._parseFunctionArgument()))for(;this.accept(p.Comma)&&!this.peek(p.ParenthesisR);)n.getArguments().addChild(this._parseFunctionArgument())||this.markError(n,S.ExpressionExpected);return this.accept(p.ParenthesisR)?this.finish(n):this.finish(n,S.RightParenthesisExpected)},t.prototype._parseFunctionIdentifier=function(){if(!this.peek(p.Ident))return null;var e=this.create(We);if(e.referenceTypes=[Z.Function],this.acceptIdent("progid")){if(this.accept(p.Colon))for(;this.accept(p.Ident)&&this.acceptDelim("."););return this.finish(e)}return this.consumeToken(),this.finish(e)},t.prototype._parseFunctionArgument=function(){var e=this.create(Yt);return e.setValue(this._parseExpr(!0))?this.finish(e):null},t.prototype._parseHexColor=function(){if(this.peekRegExp(p.Hash,/^#([A-Fa-f0-9]{3}|[A-Fa-f0-9]{4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/g)){var e=this.create(vi);return this.consumeToken(),this.finish(e)}else return null},t}();function Zu(t,e){var n=0,r=t.length;if(r===0)return 0;for(;n<r;){var i=Math.floor((n+r)/2);e(t[i])?r=i:n=i+1}return n}function Ml(t,e){return t.indexOf(e)!==-1}function gr(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=[],r=0,i=t;r<i.length;r++)for(var s=i[r],a=0,o=s;a<o.length;a++){var l=o[a];Ml(n,l)||n.push(l)}return n}var ep=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),zl=function(){function t(e,n){this.offset=e,this.length=n,this.symbols=[],this.parent=null,this.children=[]}return t.prototype.addChild=function(e){this.children.push(e),e.setParent(this)},t.prototype.setParent=function(e){this.parent=e},t.prototype.findScope=function(e,n){return n===void 0&&(n=0),this.offset<=e&&this.offset+this.length>e+n||this.offset===e&&this.length===n?this.findInScope(e,n):null},t.prototype.findInScope=function(e,n){n===void 0&&(n=0);var r=e+n,i=Zu(this.children,function(a){return a.offset>r});if(i===0)return this;var s=this.children[i-1];return s.offset<=e&&s.offset+s.length>=e+n?s.findInScope(e,n):this},t.prototype.addSymbol=function(e){this.symbols.push(e)},t.prototype.getSymbol=function(e,n){for(var r=0;r<this.symbols.length;r++){var i=this.symbols[r];if(i.name===e&&i.type===n)return i}return null},t.prototype.getSymbols=function(){return this.symbols},t}(),tp=function(t){ep(e,t);function e(){return t.call(this,0,Number.MAX_VALUE)||this}return e}(zl),br=function(){function t(e,n,r,i){this.name=e,this.value=n,this.node=r,this.type=i}return t}(),np=function(){function t(e){this.scope=e}return t.prototype.addSymbol=function(e,n,r,i){if(e.offset!==-1){var s=this.scope.findScope(e.offset,e.length);s&&s.addSymbol(new br(n,r,e,i))}},t.prototype.addScope=function(e){if(e.offset!==-1){var n=this.scope.findScope(e.offset,e.length);if(n&&(n.offset!==e.offset||n.length!==e.length)){var r=new zl(e.offset,e.length);return n.addChild(r),r}return n}return null},t.prototype.addSymbolToChildScope=function(e,n,r,i,s){if(e&&e.offset!==-1){var a=this.addScope(e);a&&a.addSymbol(new br(r,i,n,s))}},t.prototype.visitNode=function(e){switch(e.type){case v.Keyframe:return this.addSymbol(e,e.getName(),void 0,Z.Keyframe),!0;case v.CustomPropertyDeclaration:return this.visitCustomPropertyDeclarationNode(e);case v.VariableDeclaration:return this.visitVariableDeclarationNode(e);case v.Ruleset:return this.visitRuleSet(e);case v.MixinDeclaration:return this.addSymbol(e,e.getName(),void 0,Z.Mixin),!0;case v.FunctionDeclaration:return this.addSymbol(e,e.getName(),void 0,Z.Function),!0;case v.FunctionParameter:return this.visitFunctionParameterNode(e);case v.Declarations:return this.addScope(e),!0;case v.For:var n=e,r=n.getDeclarations();return r&&n.variable&&this.addSymbolToChildScope(r,n.variable,n.variable.getName(),void 0,Z.Variable),!0;case v.Each:{var i=e,s=i.getDeclarations();if(s)for(var a=i.getVariables().getChildren(),o=0,l=a;o<l.length;o++){var c=l[o];this.addSymbolToChildScope(s,c,c.getName(),void 0,Z.Variable)}return!0}}return!0},t.prototype.visitRuleSet=function(e){var n=this.scope.findScope(e.offset,e.length);if(n)for(var r=0,i=e.getSelectors().getChildren();r<i.length;r++){var s=i[r];s instanceof yn&&s.getChildren().length===1&&n.addSymbol(new br(s.getChild(0).getText(),void 0,s,Z.Rule))}return!0},t.prototype.visitVariableDeclarationNode=function(e){var n=e.getValue()?e.getValue().getText():void 0;return this.addSymbol(e,e.getName(),n,Z.Variable),!0},t.prototype.visitFunctionParameterNode=function(e){var n=e.getParent().getDeclarations();if(n){var r=e.getDefaultValue(),i=r?r.getText():void 0;this.addSymbolToChildScope(n,e,e.getName(),i,Z.Variable)}return!0},t.prototype.visitCustomPropertyDeclarationNode=function(e){var n=e.getValue()?e.getValue().getText():"";return this.addCSSVariable(e.getProperty(),e.getProperty().getName(),n,Z.Variable),!0},t.prototype.addCSSVariable=function(e,n,r,i){e.offset!==-1&&this.scope.addSymbol(new br(n,r,e,i))},t}(),Mi=function(){function t(e){this.global=new tp,e.acceptVisitor(new np(this.global))}return t.prototype.findSymbolsAtOffset=function(e,n){for(var r=this.global.findScope(e,0),i=[],s={};r;){for(var a=r.getSymbols(),o=0;o<a.length;o++){var l=a[o];l.type===n&&!s[l.name]&&(i.push(l),s[l.name]=!0)}r=r.parent}return i},t.prototype.internalFindSymbol=function(e,n){var r=e;if(e.parent instanceof tr&&e.parent.getParent()instanceof he&&(r=e.parent.getParent().getDeclarations()),e.parent instanceof Yt&&e.parent.getParent()instanceof wn){var i=e.parent.getParent().getIdentifier();if(i){var s=this.internalFindSymbol(i,[Z.Function]);s&&(r=s.node.getDeclarations())}}if(!r)return null;for(var a=e.getText(),o=this.global.findScope(r.offset,r.length);o;){for(var l=0;l<n.length;l++){var c=n[l],h=o.getSymbol(a,c);if(h)return h}o=o.parent}return null},t.prototype.evaluateReferenceTypes=function(e){if(e instanceof We){var n=e.referenceTypes;if(n)return n;if(e.isCustomProperty)return[Z.Variable];var r=tu(e);if(r){var i=r.getNonPrefixedPropertyName();if((i==="animation"||i==="animation-name")&&r.getValue()&&r.getValue().offset===e.offset)return[Z.Keyframe]}}else if(e instanceof xi)return[Z.Variable];var s=e.findAParent(v.Selector,v.ExtendsReference);return s?[Z.Rule]:null},t.prototype.findSymbolFromNode=function(e){if(!e)return null;for(;e.type===v.Interpolation;)e=e.getParent();var n=this.evaluateReferenceTypes(e);return n?this.internalFindSymbol(e,n):null},t.prototype.matchesSymbol=function(e,n){if(!e)return!1;for(;e.type===v.Interpolation;)e=e.getParent();if(!e.matches(n.name))return!1;var r=this.evaluateReferenceTypes(e);if(!r||r.indexOf(n.type)===-1)return!1;var i=this.internalFindSymbol(e,r);return i===n},t.prototype.findSymbol=function(e,n,r){for(var i=this.global.findScope(r);i;){var s=i.getSymbol(e,n);if(s)return s;i=i.parent}return null},t}(),Ll;Ll=(()=>{var t={470:r=>{function i(o){if(typeof o!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(o))}function s(o,l){for(var c,h="",u=0,f=-1,m=0,g=0;g<=o.length;++g){if(g<o.length)c=o.charCodeAt(g);else{if(c===47)break;c=47}if(c===47){if(!(f===g-1||m===1))if(f!==g-1&&m===2){if(h.length<2||u!==2||h.charCodeAt(h.length-1)!==46||h.charCodeAt(h.length-2)!==46){if(h.length>2){var b=h.lastIndexOf("/");if(b!==h.length-1){b===-1?(h="",u=0):u=(h=h.slice(0,b)).length-1-h.lastIndexOf("/"),f=g,m=0;continue}}else if(h.length===2||h.length===1){h="",u=0,f=g,m=0;continue}}l&&(h.length>0?h+="/..":h="..",u=2)}else h.length>0?h+="/"+o.slice(f+1,g):h=o.slice(f+1,g),u=g-f-1;f=g,m=0}else c===46&&m!==-1?++m:m=-1}return h}var a={resolve:function(){for(var o,l="",c=!1,h=arguments.length-1;h>=-1&&!c;h--){var u;h>=0?u=arguments[h]:(o===void 0&&(o=process.cwd()),u=o),i(u),u.length!==0&&(l=u+"/"+l,c=u.charCodeAt(0)===47)}return l=s(l,!c),c?l.length>0?"/"+l:"/":l.length>0?l:"."},normalize:function(o){if(i(o),o.length===0)return".";var l=o.charCodeAt(0)===47,c=o.charCodeAt(o.length-1)===47;return(o=s(o,!l)).length!==0||l||(o="."),o.length>0&&c&&(o+="/"),l?"/"+o:o},isAbsolute:function(o){return i(o),o.length>0&&o.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var o,l=0;l<arguments.length;++l){var c=arguments[l];i(c),c.length>0&&(o===void 0?o=c:o+="/"+c)}return o===void 0?".":a.normalize(o)},relative:function(o,l){if(i(o),i(l),o===l||(o=a.resolve(o))===(l=a.resolve(l)))return"";for(var c=1;c<o.length&&o.charCodeAt(c)===47;++c);for(var h=o.length,u=h-c,f=1;f<l.length&&l.charCodeAt(f)===47;++f);for(var m=l.length-f,g=u<m?u:m,b=-1,y=0;y<=g;++y){if(y===g){if(m>g){if(l.charCodeAt(f+y)===47)return l.slice(f+y+1);if(y===0)return l.slice(f+y)}else u>g&&(o.charCodeAt(c+y)===47?b=y:y===0&&(b=0));break}var C=o.charCodeAt(c+y);if(C!==l.charCodeAt(f+y))break;C===47&&(b=y)}var k="";for(y=c+b+1;y<=h;++y)y!==h&&o.charCodeAt(y)!==47||(k.length===0?k+="..":k+="/..");return k.length>0?k+l.slice(f+b):(f+=b,l.charCodeAt(f)===47&&++f,l.slice(f))},_makeLong:function(o){return o},dirname:function(o){if(i(o),o.length===0)return".";for(var l=o.charCodeAt(0),c=l===47,h=-1,u=!0,f=o.length-1;f>=1;--f)if((l=o.charCodeAt(f))===47){if(!u){h=f;break}}else u=!1;return h===-1?c?"/":".":c&&h===1?"//":o.slice(0,h)},basename:function(o,l){if(l!==void 0&&typeof l!="string")throw new TypeError('"ext" argument must be a string');i(o);var c,h=0,u=-1,f=!0;if(l!==void 0&&l.length>0&&l.length<=o.length){if(l.length===o.length&&l===o)return"";var m=l.length-1,g=-1;for(c=o.length-1;c>=0;--c){var b=o.charCodeAt(c);if(b===47){if(!f){h=c+1;break}}else g===-1&&(f=!1,g=c+1),m>=0&&(b===l.charCodeAt(m)?--m==-1&&(u=c):(m=-1,u=g))}return h===u?u=g:u===-1&&(u=o.length),o.slice(h,u)}for(c=o.length-1;c>=0;--c)if(o.charCodeAt(c)===47){if(!f){h=c+1;break}}else u===-1&&(f=!1,u=c+1);return u===-1?"":o.slice(h,u)},extname:function(o){i(o);for(var l=-1,c=0,h=-1,u=!0,f=0,m=o.length-1;m>=0;--m){var g=o.charCodeAt(m);if(g!==47)h===-1&&(u=!1,h=m+1),g===46?l===-1?l=m:f!==1&&(f=1):l!==-1&&(f=-1);else if(!u){c=m+1;break}}return l===-1||h===-1||f===0||f===1&&l===h-1&&l===c+1?"":o.slice(l,h)},format:function(o){if(o===null||typeof o!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof o);return function(l,c){var h=c.dir||c.root,u=c.base||(c.name||"")+(c.ext||"");return h?h===c.root?h+u:h+"/"+u:u}(0,o)},parse:function(o){i(o);var l={root:"",dir:"",base:"",ext:"",name:""};if(o.length===0)return l;var c,h=o.charCodeAt(0),u=h===47;u?(l.root="/",c=1):c=0;for(var f=-1,m=0,g=-1,b=!0,y=o.length-1,C=0;y>=c;--y)if((h=o.charCodeAt(y))!==47)g===-1&&(b=!1,g=y+1),h===46?f===-1?f=y:C!==1&&(C=1):f!==-1&&(C=-1);else if(!b){m=y+1;break}return f===-1||g===-1||C===0||C===1&&f===g-1&&f===m+1?g!==-1&&(l.base=l.name=m===0&&u?o.slice(1,g):o.slice(m,g)):(m===0&&u?(l.name=o.slice(1,f),l.base=o.slice(1,g)):(l.name=o.slice(m,f),l.base=o.slice(m,g)),l.ext=o.slice(f,g)),m>0?l.dir=o.slice(0,m-1):u&&(l.dir="/"),l},sep:"/",delimiter:":",win32:null,posix:null};a.posix=a,r.exports=a},447:(r,i,s)=>{var a;if(s.r(i),s.d(i,{URI:()=>k,Utils:()=>I}),typeof process=="object")a=process.platform==="win32";else if(typeof navigator=="object"){var o=navigator.userAgent;a=o.indexOf("Windows")>=0}var l,c,h=(l=function(D,x){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,L){A.__proto__=L}||function(A,L){for(var X in L)Object.prototype.hasOwnProperty.call(L,X)&&(A[X]=L[X])})(D,x)},function(D,x){if(typeof x!="function"&&x!==null)throw new TypeError("Class extends value "+String(x)+" is not a constructor or null");function A(){this.constructor=D}l(D,x),D.prototype=x===null?Object.create(x):(A.prototype=x.prototype,new A)}),u=/^\w[\w\d+.-]*$/,f=/^\//,m=/^\/\//;function g(D,x){if(!D.scheme&&x)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'.concat(D.authority,'", path: "').concat(D.path,'", query: "').concat(D.query,'", fragment: "').concat(D.fragment,'"}'));if(D.scheme&&!u.test(D.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(D.path){if(D.authority){if(!f.test(D.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(m.test(D.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}var b="",y="/",C=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,k=function(){function D(x,A,L,X,G,ne){ne===void 0&&(ne=!1),typeof x=="object"?(this.scheme=x.scheme||b,this.authority=x.authority||b,this.path=x.path||b,this.query=x.query||b,this.fragment=x.fragment||b):(this.scheme=function(De,Se){return De||Se?De:"file"}(x,ne),this.authority=A||b,this.path=function(De,Se){switch(De){case"https":case"http":case"file":Se?Se[0]!==y&&(Se=y+Se):Se=y}return Se}(this.scheme,L||b),this.query=X||b,this.fragment=G||b,g(this,ne))}return D.isUri=function(x){return x instanceof D||!!x&&typeof x.authority=="string"&&typeof x.fragment=="string"&&typeof x.path=="string"&&typeof x.query=="string"&&typeof x.scheme=="string"&&typeof x.fsPath=="string"&&typeof x.with=="function"&&typeof x.toString=="function"},Object.defineProperty(D.prototype,"fsPath",{get:function(){return T(this,!1)},enumerable:!1,configurable:!0}),D.prototype.with=function(x){if(!x)return this;var A=x.scheme,L=x.authority,X=x.path,G=x.query,ne=x.fragment;return A===void 0?A=this.scheme:A===null&&(A=b),L===void 0?L=this.authority:L===null&&(L=b),X===void 0?X=this.path:X===null&&(X=b),G===void 0?G=this.query:G===null&&(G=b),ne===void 0?ne=this.fragment:ne===null&&(ne=b),A===this.scheme&&L===this.authority&&X===this.path&&G===this.query&&ne===this.fragment?this:new F(A,L,X,G,ne)},D.parse=function(x,A){A===void 0&&(A=!1);var L=C.exec(x);return L?new F(L[2]||b,R(L[4]||b),R(L[5]||b),R(L[7]||b),R(L[9]||b),A):new F(b,b,b,b,b)},D.file=function(x){var A=b;if(a&&(x=x.replace(/\\/g,y)),x[0]===y&&x[1]===y){var L=x.indexOf(y,2);L===-1?(A=x.substring(2),x=y):(A=x.substring(2,L),x=x.substring(L)||y)}return new F("file",A,x,b,b)},D.from=function(x){var A=new F(x.scheme,x.authority,x.path,x.query,x.fragment);return g(A,!0),A},D.prototype.toString=function(x){return x===void 0&&(x=!1),J(this,x)},D.prototype.toJSON=function(){return this},D.revive=function(x){if(x){if(x instanceof D)return x;var A=new F(x);return A._formatted=x.external,A._fsPath=x._sep===w?x.fsPath:null,A}return x},D}(),w=a?1:void 0,F=function(D){function x(){var A=D!==null&&D.apply(this,arguments)||this;return A._formatted=null,A._fsPath=null,A}return h(x,D),Object.defineProperty(x.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=T(this,!1)),this._fsPath},enumerable:!1,configurable:!0}),x.prototype.toString=function(A){return A===void 0&&(A=!1),A?J(this,!0):(this._formatted||(this._formatted=J(this,!1)),this._formatted)},x.prototype.toJSON=function(){var A={$mid:1};return this._fsPath&&(A.fsPath=this._fsPath,A._sep=w),this._formatted&&(A.external=this._formatted),this.path&&(A.path=this.path),this.scheme&&(A.scheme=this.scheme),this.authority&&(A.authority=this.authority),this.query&&(A.query=this.query),this.fragment&&(A.fragment=this.fragment),A},x}(k),_=((c={})[58]="%3A",c[47]="%2F",c[63]="%3F",c[35]="%23",c[91]="%5B",c[93]="%5D",c[64]="%40",c[33]="%21",c[36]="%24",c[38]="%26",c[39]="%27",c[40]="%28",c[41]="%29",c[42]="%2A",c[43]="%2B",c[44]="%2C",c[59]="%3B",c[61]="%3D",c[32]="%20",c);function P(D,x){for(var A=void 0,L=-1,X=0;X<D.length;X++){var G=D.charCodeAt(X);if(G>=97&&G<=122||G>=65&&G<=90||G>=48&&G<=57||G===45||G===46||G===95||G===126||x&&G===47)L!==-1&&(A+=encodeURIComponent(D.substring(L,X)),L=-1),A!==void 0&&(A+=D.charAt(X));else{A===void 0&&(A=D.substr(0,X));var ne=_[G];ne!==void 0?(L!==-1&&(A+=encodeURIComponent(D.substring(L,X)),L=-1),A+=ne):L===-1&&(L=X)}}return L!==-1&&(A+=encodeURIComponent(D.substring(L))),A!==void 0?A:D}function W(D){for(var x=void 0,A=0;A<D.length;A++){var L=D.charCodeAt(A);L===35||L===63?(x===void 0&&(x=D.substr(0,A)),x+=_[L]):x!==void 0&&(x+=D[A])}return x!==void 0?x:D}function T(D,x){var A;return A=D.authority&&D.path.length>1&&D.scheme==="file"?"//".concat(D.authority).concat(D.path):D.path.charCodeAt(0)===47&&(D.path.charCodeAt(1)>=65&&D.path.charCodeAt(1)<=90||D.path.charCodeAt(1)>=97&&D.path.charCodeAt(1)<=122)&&D.path.charCodeAt(2)===58?x?D.path.substr(1):D.path[1].toLowerCase()+D.path.substr(2):D.path,a&&(A=A.replace(/\//g,"\\")),A}function J(D,x){var A=x?W:P,L="",X=D.scheme,G=D.authority,ne=D.path,De=D.query,Se=D.fragment;if(X&&(L+=X,L+=":"),(G||X==="file")&&(L+=y,L+=y),G){var Ae=G.indexOf("@");if(Ae!==-1){var Dt=G.substr(0,Ae);G=G.substr(Ae+1),(Ae=Dt.indexOf(":"))===-1?L+=A(Dt,!1):(L+=A(Dt.substr(0,Ae),!1),L+=":",L+=A(Dt.substr(Ae+1),!1)),L+="@"}(Ae=(G=G.toLowerCase()).indexOf(":"))===-1?L+=A(G,!1):(L+=A(G.substr(0,Ae),!1),L+=G.substr(Ae))}if(ne){if(ne.length>=3&&ne.charCodeAt(0)===47&&ne.charCodeAt(2)===58)(ct=ne.charCodeAt(1))>=65&&ct<=90&&(ne="/".concat(String.fromCharCode(ct+32),":").concat(ne.substr(3)));else if(ne.length>=2&&ne.charCodeAt(1)===58){var ct;(ct=ne.charCodeAt(0))>=65&&ct<=90&&(ne="".concat(String.fromCharCode(ct+32),":").concat(ne.substr(2)))}L+=A(ne,!0)}return De&&(L+="?",L+=A(De,!1)),Se&&(L+="#",L+=x?Se:P(Se,!1)),L}function re(D){try{return decodeURIComponent(D)}catch{return D.length>3?D.substr(0,3)+re(D.substr(3)):D}}var N=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function R(D){return D.match(N)?D.replace(N,function(x){return re(x)}):D}var I,z=s(470),V=function(D,x,A){if(A||arguments.length===2)for(var L,X=0,G=x.length;X<G;X++)!L&&X in x||(L||(L=Array.prototype.slice.call(x,0,X)),L[X]=x[X]);return D.concat(L||Array.prototype.slice.call(x))},j=z.posix||z;(function(D){D.joinPath=function(x){for(var A=[],L=1;L<arguments.length;L++)A[L-1]=arguments[L];return x.with({path:j.join.apply(j,V([x.path],A,!1))})},D.resolvePath=function(x){for(var A=[],L=1;L<arguments.length;L++)A[L-1]=arguments[L];var X=x.path||"/";return x.with({path:j.resolve.apply(j,V([X],A,!1))})},D.dirname=function(x){var A=j.dirname(x.path);return A.length===1&&A.charCodeAt(0)===46?x:x.with({path:A})},D.basename=function(x){return j.basename(x.path)},D.extname=function(x){return j.extname(x.path)}})(I||(I={}))}},e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}return n.d=(r,i)=>{for(var s in i)n.o(i,s)&&!n.o(r,s)&&Object.defineProperty(r,s,{enumerable:!0,get:i[s]})},n.o=(r,i)=>Object.prototype.hasOwnProperty.call(r,i),n.r=r=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n(447)})();var{URI:zi,Utils:Li}=Ll,rp=function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,s;r<i;r++)(s||!(r in e))&&(s||(s=Array.prototype.slice.call(e,0,r)),s[r]=e[r]);return t.concat(s||Array.prototype.slice.call(e))};function Pi(t){return Li.dirname(zi.parse(t)).toString()}function Ii(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return Li.joinPath.apply(Li,rp([zi.parse(t)],e,!1)).toString()}var Pl=function(t,e,n,r){function i(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function o(h){try{c(r.next(h))}catch(u){a(u)}}function l(h){try{c(r.throw(h))}catch(u){a(u)}}function c(h){h.done?s(h.value):i(h.value).then(o,l)}c((r=r.apply(t,e||[])).next())})},Il=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,i,s,a;return a={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(c){return function(h){return l([c,h])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(s=c[0]&2?i.return:c[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,c[1])).done)return s;switch(i=0,s&&(c=[c[0]&2,s.value]),c[0]){case 0:case 1:s=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]<s[3])){n.label=c[1];break}if(c[0]===6&&n.label<s[1]){n.label=s[1],s=c;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(c);break}s[2]&&n.ops.pop(),n.trys.pop();continue}c=e.call(t,n)}catch(h){c=[6,h],i=0}finally{r=s=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},ip=function(){function t(e){this.readDirectory=e,this.literalCompletions=[],this.importCompletions=[]}return t.prototype.onCssURILiteralValue=function(e){this.literalCompletions.push(e)},t.prototype.onCssImportPath=function(e){this.importCompletions.push(e)},t.prototype.computeCompletions=function(e,n){return Pl(this,void 0,void 0,function(){var r,i,s,a,o,b,l,c,h,w,u,f,m,g,b,y,C,k,w;return Il(this,function(F){switch(F.label){case 0:r={items:[],isIncomplete:!1},i=0,s=this.literalCompletions,F.label=1;case 1:return i<s.length?(a=s[i],o=a.uriValue,b=Ti(o),b==="."||b===".."?(r.isIncomplete=!0,[3,4]):[3,2]):[3,5];case 2:return[4,this.providePathSuggestions(o,a.position,a.range,e,n)];case 3:for(l=F.sent(),c=0,h=l;c<h.length;c++)w=h[c],r.items.push(w);F.label=4;case 4:return i++,[3,1];case 5:u=0,f=this.importCompletions,F.label=6;case 6:return u<f.length?(m=f[u],g=m.pathValue,b=Ti(g),b==="."||b===".."?(r.isIncomplete=!0,[3,9]):[3,7]):[3,10];case 7:return[4,this.providePathSuggestions(g,m.position,m.range,e,n)];case 8:for(y=F.sent(),e.languageId==="scss"&&y.forEach(function(_){ge(_.label,"_")&&wo(_.label,".scss")&&(_.textEdit?_.textEdit.newText=_.label.slice(1,-5):_.label=_.label.slice(1,-5))}),C=0,k=y;C<k.length;C++)w=k[C],r.items.push(w);F.label=9;case 9:return u++,[3,6];case 10:return[2,r]}})})},t.prototype.providePathSuggestions=function(e,n,r,i,s){return Pl(this,void 0,void 0,function(){var a,o,l,c,h,u,f,m,g,b,y,C,k,w,F;return Il(this,function(_){switch(_.label){case 0:if(a=Ti(e),o=ge(e,"'")||ge(e,'"'),l=o?a.slice(0,n.character-(r.start.character+1)):a.slice(0,n.character-r.start.character),c=i.uri,h=o?lp(r,1,-1):r,u=ap(l,a,h),f=l.substring(0,l.lastIndexOf("/")+1),m=s.resolveReference(f||".",c),!m)return[3,4];_.label=1;case 1:return _.trys.push([1,3,,4]),g=[],[4,this.readDirectory(m)];case 2:for(b=_.sent(),y=0,C=b;y<C.length;y++)k=C[y],w=k[0],F=k[1],w.charCodeAt(0)!==sp&&(F===Dn.Directory||Ii(m,w)!==c)&&g.push(op(w,F===Dn.Directory,u));return[2,g];case 3:return _.sent(),[3,4];case 4:return[2,[]]}})})},t}(),sp=46;function Ti(t){return ge(t,"'")||ge(t,'"')?t.slice(1,-1):t}function ap(t,e,n){var r,i=t.lastIndexOf("/");if(i===-1)r=n;else{var s=e.slice(i+1),a=yr(n.end,-s.length),o=s.indexOf(" "),l=void 0;o!==-1?l=yr(a,o):l=n.end,r=ie.create(a,l)}return r}function op(t,e,n){return e?(t=t+"/",{label:vr(t),kind:$.Folder,textEdit:H.replace(n,vr(t)),command:{title:"Suggest",command:"editor.action.triggerSuggest"}}):{label:vr(t),kind:$.File,textEdit:H.replace(n,vr(t))}}function vr(t){return t.replace(/(\s|\(|\)|,|"|')/g,"\\$1")}function yr(t,e){return Fe.create(t.line,t.character+e)}function lp(t,e,n){var r=yr(t.start,e),i=yr(t.end,n);return ie.create(r,i)}var cp=function(t,e,n,r){function i(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function o(h){try{c(r.next(h))}catch(u){a(u)}}function l(h){try{c(r.throw(h))}catch(u){a(u)}}function c(h){h.done?s(h.value):i(h.value).then(o,l)}c((r=r.apply(t,e||[])).next())})},hp=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,i,s,a;return a={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(c){return function(h){return l([c,h])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(s=c[0]&2?i.return:c[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,c[1])).done)return s;switch(i=0,s&&(c=[c[0]&2,s.value]),c[0]){case 0:case 1:s=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]<s[3])){n.label=c[1];break}if(c[0]===6&&n.label<s[1]){n.label=s[1],s=c;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(c);break}s[2]&&n.ops.pop(),n.trys.pop();continue}c=e.call(t,n)}catch(h){c=[6,h],i=0}finally{r=s=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},dp=Ge(),it=Ie.Snippet,Tl={title:"Suggest",command:"editor.action.triggerSuggest"},et;(function(t){t.Enums=" ",t.Normal="d",t.VendorPrefixed="x",t.Term="y",t.Variable="z"})(et||(et={}));var Wi=function(){function t(e,n,r){e===void 0&&(e=null),this.variablePrefix=e,this.lsOptions=n,this.cssDataManager=r,this.completionParticipants=[]}return t.prototype.configure=function(e){this.defaultSettings=e},t.prototype.getSymbolContext=function(){return this.symbolContext||(this.symbolContext=new Mi(this.styleSheet)),this.symbolContext},t.prototype.setCompletionParticipants=function(e){this.completionParticipants=e||[]},t.prototype.doComplete2=function(e,n,r,i,s){return s===void 0&&(s=this.defaultSettings),cp(this,void 0,void 0,function(){var a,o,l,c;return hp(this,function(h){switch(h.label){case 0:if(!this.lsOptions.fileSystemProvider||!this.lsOptions.fileSystemProvider.readDirectory)return[2,this.doComplete(e,n,r,s)];a=new ip(this.lsOptions.fileSystemProvider.readDirectory),o=this.completionParticipants,this.completionParticipants=[a].concat(o),l=this.doComplete(e,n,r,s),h.label=1;case 1:return h.trys.push([1,,3,4]),[4,a.computeCompletions(e,i)];case 2:return c=h.sent(),[2,{isIncomplete:l.isIncomplete||c.isIncomplete,items:c.items.concat(l.items)}];case 3:return this.completionParticipants=o,[7];case 4:return[2]}})})},t.prototype.doComplete=function(e,n,r,i){this.offset=e.offsetAt(n),this.position=n,this.currentWord=mp(e,this.offset),this.defaultReplaceRange=ie.create(Fe.create(this.position.line,this.position.character-this.currentWord.length),this.position),this.textDocument=e,this.styleSheet=r,this.documentSettings=i;try{var s={isIncomplete:!1,items:[]};this.nodePath=di(this.styleSheet,this.offset);for(var a=this.nodePath.length-1;a>=0;a--){var o=this.nodePath[a];if(o instanceof fi)this.getCompletionsForDeclarationProperty(o.getParent(),s);else if(o instanceof Ao)o.parent instanceof wi?this.getVariableProposals(null,s):this.getCompletionsForExpression(o,s);else if(o instanceof Xt){var l=o.findAParent(v.ExtendsReference,v.Ruleset);if(l)if(l.type===v.ExtendsReference)this.getCompletionsForExtendsReference(l,o,s);else{var c=l;this.getCompletionsForSelector(c,c&&c.isNested(),s)}}else if(o instanceof Yt)this.getCompletionsForFunctionArgument(o,o.getParent(),s);else if(o instanceof ui)this.getCompletionsForDeclarations(o,s);else if(o instanceof rr)this.getCompletionsForVariableDeclaration(o,s);else if(o instanceof Jt)this.getCompletionsForRuleSet(o,s);else if(o instanceof wi)this.getCompletionsForInterpolation(o,s);else if(o instanceof nr)this.getCompletionsForFunctionDeclaration(o,s);else if(o instanceof ir)this.getCompletionsForMixinReference(o,s);else if(o instanceof wn)this.getCompletionsForFunctionArgument(null,o,s);else if(o instanceof gi)this.getCompletionsForSupports(o,s);else if(o instanceof xn)this.getCompletionsForSupportsCondition(o,s);else if(o instanceof Sn)this.getCompletionsForExtendsReference(o,null,s);else if(o.type===v.URILiteral)this.getCompletionForUriLiteralValue(o,s);else if(o.parent===null)this.getCompletionForTopLevel(s);else if(o.type===v.StringLiteral&&this.isImportPathParent(o.parent.type))this.getCompletionForImportPath(o,s);else continue;if(s.items.length>0||this.offset>o.offset)return this.finalize(s)}return this.getCompletionsForStylesheet(s),s.items.length===0&&this.variablePrefix&&this.currentWord.indexOf(this.variablePrefix)===0&&this.getVariableProposals(null,s),this.finalize(s)}finally{this.position=null,this.currentWord=null,this.textDocument=null,this.styleSheet=null,this.symbolContext=null,this.defaultReplaceRange=null,this.nodePath=null}},t.prototype.isImportPathParent=function(e){return e===v.Import},t.prototype.finalize=function(e){return e},t.prototype.findInNodePath=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];for(var r=this.nodePath.length-1;r>=0;r--){var i=this.nodePath[r];if(e.indexOf(i.type)!==-1)return i}return null},t.prototype.getCompletionsForDeclarationProperty=function(e,n){return this.getPropertyProposals(e,n)},t.prototype.getPropertyProposals=function(e,n){var r=this,i=this.isTriggerPropertyValueCompletionEnabled,s=this.isCompletePropertyWithSemicolonEnabled,a=this.cssDataManager.getProperties();return a.forEach(function(o){var l,c,h=!1;e?(l=r.getCompletionRange(e.getProperty()),c=o.name,Ue(e.colonPosition)||(c+=": ",h=!0)):(l=r.getCompletionRange(null),c=o.name+": ",h=!0),!e&&s&&(c+="$0;"),e&&!e.semicolonPosition&&s&&r.offset>=r.textDocument.offsetAt(l.end)&&(c+="$0;");var u={label:o.name,documentation:yt(o,r.doesSupportMarkdown()),tags:Nn(o)?[_t.Deprecated]:[],textEdit:H.replace(l,c),insertTextFormat:Ie.Snippet,kind:$.Property};o.restrictions||(h=!1),i&&h&&(u.command=Tl);var f=typeof o.relevance=="number"?Math.min(Math.max(o.relevance,0),99):50,m=(255-f).toString(16),g=ge(o.name,"-")?et.VendorPrefixed:et.Normal;u.sortText=g+"_"+m,n.items.push(u)}),this.completionParticipants.forEach(function(o){o.onCssProperty&&o.onCssProperty({propertyName:r.currentWord,range:r.defaultReplaceRange})}),n},Object.defineProperty(t.prototype,"isTriggerPropertyValueCompletionEnabled",{get:function(){var e,n;return(n=(e=this.documentSettings)===null||e===void 0?void 0:e.triggerPropertyValueCompletion)!==null&&n!==void 0?n:!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCompletePropertyWithSemicolonEnabled",{get:function(){var e,n;return(n=(e=this.documentSettings)===null||e===void 0?void 0:e.completePropertyWithSemicolon)!==null&&n!==void 0?n:!0},enumerable:!1,configurable:!0}),t.prototype.getCompletionsForDeclarationValue=function(e,n){for(var r=this,i=e.getFullPropertyName(),s=this.cssDataManager.getProperty(i),a=e.getValue()||null;a&&a.hasChildren();)a=a.findChildAtOffset(this.offset,!1);if(this.completionParticipants.forEach(function(g){g.onCssPropertyValue&&g.onCssPropertyValue({propertyName:i,propertyValue:r.currentWord,range:r.getCompletionRange(a)})}),s){if(s.restrictions)for(var o=0,l=s.restrictions;o<l.length;o++){var c=l[o];switch(c){case"color":this.getColorProposals(s,a,n);break;case"position":this.getPositionProposals(s,a,n);break;case"repeat":this.getRepeatStyleProposals(s,a,n);break;case"line-style":this.getLineStyleProposals(s,a,n);break;case"line-width":this.getLineWidthProposals(s,a,n);break;case"geometry-box":this.getGeometryBoxProposals(s,a,n);break;case"box":this.getBoxProposals(s,a,n);break;case"image":this.getImageProposals(s,a,n);break;case"timing-function":this.getTimingFunctionProposals(s,a,n);break;case"shape":this.getBasicShapeProposals(s,a,n);break}}this.getValueEnumProposals(s,a,n),this.getCSSWideKeywordProposals(s,a,n),this.getUnitProposals(s,a,n)}else for(var h=up(this.styleSheet,e),u=0,f=h.getEntries();u<f.length;u++){var m=f[u];n.items.push({label:m,textEdit:H.replace(this.getCompletionRange(a),m),kind:$.Value})}return this.getVariableProposals(a,n),this.getTermProposals(s,a,n),n},t.prototype.getValueEnumProposals=function(e,n,r){if(e.values)for(var i=0,s=e.values;i<s.length;i++){var a=s[i],o=a.name,l=void 0;if(wo(o,")")){var c=o.lastIndexOf("(");c!==-1&&(o=o.substr(0,c)+"($1)",l=it)}var h=et.Enums;ge(a.name,"-")&&(h+=et.VendorPrefixed);var u={label:a.name,documentation:yt(a,this.doesSupportMarkdown()),tags:Nn(e)?[_t.Deprecated]:[],textEdit:H.replace(this.getCompletionRange(n),o),sortText:h,kind:$.Value,insertTextFormat:l};r.items.push(u)}return r},t.prototype.getCSSWideKeywordProposals=function(e,n,r){for(var i in _l)r.items.push({label:i,documentation:_l[i],textEdit:H.replace(this.getCompletionRange(n),i),kind:$.Value});for(var s in El){var a=en(s);r.items.push({label:s,documentation:El[s],textEdit:H.replace(this.getCompletionRange(n),a),kind:$.Function,insertTextFormat:it,command:ge(s,"var")?Tl:void 0})}return r},t.prototype.getCompletionsForInterpolation=function(e,n){return this.offset>=e.offset+2&&this.getVariableProposals(null,n),n},t.prototype.getVariableProposals=function(e,n){for(var r=this.getSymbolContext().findSymbolsAtOffset(this.offset,Z.Variable),i=0,s=r;i<s.length;i++){var a=s[i],o=ge(a.name,"--")?"var(".concat(a.name,")"):a.name,l={label:a.name,documentation:a.value?xo(a.value):a.value,textEdit:H.replace(this.getCompletionRange(e),o),kind:$.Variable,sortText:et.Variable};if(typeof l.documentation=="string"&&Wl(l.documentation)&&(l.kind=$.Color),a.node.type===v.FunctionParameter){var c=a.node.getParent();c.type===v.MixinDeclaration&&(l.detail=dp("completion.argument","argument from '{0}'",c.getName()))}n.items.push(l)}return n},t.prototype.getVariableProposalsForCSSVarFunction=function(e){var n=new Oi;this.styleSheet.acceptVisitor(new fp(n,this.offset));for(var r=this.getSymbolContext().findSymbolsAtOffset(this.offset,Z.Variable),i=0,s=r;i<s.length;i++){var a=s[i];if(ge(a.name,"--")){var o={label:a.name,documentation:a.value?xo(a.value):a.value,textEdit:H.replace(this.getCompletionRange(null),a.name),kind:$.Variable};typeof o.documentation=="string"&&Wl(o.documentation)&&(o.kind=$.Color),e.items.push(o)}n.remove(a.name)}for(var l=0,c=n.getEntries();l<c.length;l++){var h=c[l];if(ge(h,"--")){var o={label:h,textEdit:H.replace(this.getCompletionRange(null),h),kind:$.Variable};e.items.push(o)}}return e},t.prototype.getUnitProposals=function(e,n,r){var i="0";if(this.currentWord.length>0){var s=this.currentWord.match(/^-?\d[\.\d+]*/);s&&(i=s[0],r.isIncomplete=i.length===this.currentWord.length)}else this.currentWord.length===0&&(r.isIncomplete=!0);if(n&&n.parent&&n.parent.type===v.Term&&(n=n.getParent()),e.restrictions)for(var a=0,o=e.restrictions;a<o.length;a++){var l=o[a],c=Al[l];if(c)for(var h=0,u=c;h<u.length;h++){var f=u[h],m=i+f;r.items.push({label:m,textEdit:H.replace(this.getCompletionRange(n),m),kind:$.Unit})}}return r},t.prototype.getCompletionRange=function(e){if(e&&e.offset<=this.offset&&this.offset<=e.end){var n=e.end!==-1?this.textDocument.positionAt(e.end):this.position,r=this.textDocument.positionAt(e.offset);if(r.line===n.line)return ie.create(r,n)}return this.defaultReplaceRange},t.prototype.getColorProposals=function(e,n,r){for(var i in pr)r.items.push({label:i,documentation:pr[i],textEdit:H.replace(this.getCompletionRange(n),i),kind:$.Color});for(var i in fl)r.items.push({label:i,documentation:fl[i],textEdit:H.replace(this.getCompletionRange(n),i),kind:$.Value});var s=new Oi;this.styleSheet.acceptVisitor(new pp(s,this.offset));for(var a=0,o=s.getEntries();a<o.length;a++){var i=o[a];r.items.push({label:i,textEdit:H.replace(this.getCompletionRange(n),i),kind:$.Color})}for(var l=function(m){var g=1,b=function(C,k){return"${"+g+++":"+k+"}"},y=m.func.replace(/\[?\$(\w+)\]?/g,b);r.items.push({label:m.func.substr(0,m.func.indexOf("(")),detail:m.func,documentation:m.desc,textEdit:H.replace(c.getCompletionRange(n),y),insertTextFormat:it,kind:$.Function})},c=this,h=0,u=Vu;h<u.length;h++){var f=u[h];l(f)}return r},t.prototype.getPositionProposals=function(e,n,r){for(var i in wl)r.items.push({label:i,documentation:wl[i],textEdit:H.replace(this.getCompletionRange(n),i),kind:$.Value});return r},t.prototype.getRepeatStyleProposals=function(e,n,r){for(var i in xl)r.items.push({label:i,documentation:xl[i],textEdit:H.replace(this.getCompletionRange(n),i),kind:$.Value});return r},t.prototype.getLineStyleProposals=function(e,n,r){for(var i in Sl)r.items.push({label:i,documentation:Sl[i],textEdit:H.replace(this.getCompletionRange(n),i),kind:$.Value});return r},t.prototype.getLineWidthProposals=function(e,n,r){for(var i=0,s=Xu;i<s.length;i++){var a=s[i];r.items.push({label:a,textEdit:H.replace(this.getCompletionRange(n),a),kind:$.Value})}return r},t.prototype.getGeometryBoxProposals=function(e,n,r){for(var i in kl)r.items.push({label:i,documentation:kl[i],textEdit:H.replace(this.getCompletionRange(n),i),kind:$.Value});return r},t.prototype.getBoxProposals=function(e,n,r){for(var i in Cl)r.items.push({label:i,documentation:Cl[i],textEdit:H.replace(this.getCompletionRange(n),i),kind:$.Value});return r},t.prototype.getImageProposals=function(e,n,r){for(var i in Rl){var s=en(i);r.items.push({label:i,documentation:Rl[i],textEdit:H.replace(this.getCompletionRange(n),s),kind:$.Function,insertTextFormat:i!==s?it:void 0})}return r},t.prototype.getTimingFunctionProposals=function(e,n,r){for(var i in Fl){var s=en(i);r.items.push({label:i,documentation:Fl[i],textEdit:H.replace(this.getCompletionRange(n),s),kind:$.Function,insertTextFormat:i!==s?it:void 0})}return r},t.prototype.getBasicShapeProposals=function(e,n,r){for(var i in Dl){var s=en(i);r.items.push({label:i,documentation:Dl[i],textEdit:H.replace(this.getCompletionRange(n),s),kind:$.Function,insertTextFormat:i!==s?it:void 0})}return r},t.prototype.getCompletionsForStylesheet=function(e){var n=this.styleSheet.findFirstChildBeforeOffset(this.offset);return n?n instanceof Jt?this.getCompletionsForRuleSet(n,e):n instanceof gi?this.getCompletionsForSupports(n,e):e:this.getCompletionForTopLevel(e)},t.prototype.getCompletionForTopLevel=function(e){var n=this;return this.cssDataManager.getAtDirectives().forEach(function(r){e.items.push({label:r.name,textEdit:H.replace(n.getCompletionRange(null),r.name),documentation:yt(r,n.doesSupportMarkdown()),tags:Nn(r)?[_t.Deprecated]:[],kind:$.Keyword})}),this.getCompletionsForSelector(null,!1,e),e},t.prototype.getCompletionsForRuleSet=function(e,n){var r=e.getDeclarations(),i=r&&r.endsWith("}")&&this.offset>=r.end;if(i)return this.getCompletionForTopLevel(n);var s=!r||this.offset<=r.offset;return s?this.getCompletionsForSelector(e,e.isNested(),n):this.getCompletionsForDeclarations(e.getDeclarations(),n)},t.prototype.getCompletionsForSelector=function(e,n,r){var i=this,s=this.findInNodePath(v.PseudoSelector,v.IdentifierSelector,v.ClassSelector,v.ElementNameSelector);!s&&this.hasCharacterAtPosition(this.offset-this.currentWord.length-1,":")&&(this.currentWord=":"+this.currentWord,this.hasCharacterAtPosition(this.offset-this.currentWord.length-1,":")&&(this.currentWord=":"+this.currentWord),this.defaultReplaceRange=ie.create(Fe.create(this.position.line,this.position.character-this.currentWord.length),this.position));var a=this.cssDataManager.getPseudoClasses();a.forEach(function(y){var C=en(y.name),k={label:y.name,textEdit:H.replace(i.getCompletionRange(s),C),documentation:yt(y,i.doesSupportMarkdown()),tags:Nn(y)?[_t.Deprecated]:[],kind:$.Function,insertTextFormat:y.name!==C?it:void 0};ge(y.name,":-")&&(k.sortText=et.VendorPrefixed),r.items.push(k)});var o=this.cssDataManager.getPseudoElements();if(o.forEach(function(y){var C=en(y.name),k={label:y.name,textEdit:H.replace(i.getCompletionRange(s),C),documentation:yt(y,i.doesSupportMarkdown()),tags:Nn(y)?[_t.Deprecated]:[],kind:$.Function,insertTextFormat:y.name!==C?it:void 0};ge(y.name,"::-")&&(k.sortText=et.VendorPrefixed),r.items.push(k)}),!n){for(var l=0,c=Yu;l<c.length;l++){var h=c[l];r.items.push({label:h,textEdit:H.replace(this.getCompletionRange(s),h),kind:$.Keyword})}for(var u=0,f=Qu;u<f.length;u++){var h=f[u];r.items.push({label:h,textEdit:H.replace(this.getCompletionRange(s),h),kind:$.Keyword})}}var m={};m[this.currentWord]=!0;var g=this.textDocument.getText();if(this.styleSheet.accept(function(y){if(y.type===v.SimpleSelector&&y.length>0){var C=g.substr(y.offset,y.length);return C.charAt(0)==="."&&!m[C]&&(m[C]=!0,r.items.push({label:C,textEdit:H.replace(i.getCompletionRange(s),C),kind:$.Keyword})),!1}return!0}),e&&e.isNested()){var b=e.getSelectors().findFirstChildBeforeOffset(this.offset);b&&e.getSelectors().getChildren().indexOf(b)===0&&this.getPropertyProposals(null,r)}return r},t.prototype.getCompletionsForDeclarations=function(e,n){if(!e||this.offset===e.offset)return n;var r=e.findFirstChildBeforeOffset(this.offset);if(!r)return this.getCompletionsForDeclarationProperty(null,n);if(r instanceof pi){var i=r;if(!Ue(i.colonPosition)||this.offset<=i.colonPosition)return this.getCompletionsForDeclarationProperty(i,n);if(Ue(i.semicolonPosition)&&i.semicolonPosition<this.offset)return this.offset===i.semicolonPosition+1?n:this.getCompletionsForDeclarationProperty(null,n);if(i instanceof Ze)return this.getCompletionsForDeclarationValue(i,n)}else r instanceof Sn?this.getCompletionsForExtendsReference(r,null,n):this.currentWord&&this.currentWord[0]==="@"?this.getCompletionsForDeclarationProperty(null,n):r instanceof Jt&&this.getCompletionsForDeclarationProperty(null,n);return n},t.prototype.getCompletionsForVariableDeclaration=function(e,n){return this.offset&&Ue(e.colonPosition)&&this.offset>e.colonPosition&&this.getVariableProposals(e.getValue(),n),n},t.prototype.getCompletionsForExpression=function(e,n){var r=e.getParent();if(r instanceof Yt)return this.getCompletionsForFunctionArgument(r,r.getParent(),n),n;var i=e.findParent(v.Declaration);if(!i)return this.getTermProposals(void 0,null,n),n;var s=e.findChildAtOffset(this.offset,!0);return s?s instanceof yi||s instanceof We?this.getCompletionsForDeclarationValue(i,n):n:this.getCompletionsForDeclarationValue(i,n)},t.prototype.getCompletionsForFunctionArgument=function(e,n,r){var i=n.getIdentifier();return i&&i.matches("var")&&(!n.getArguments().hasChildren()||n.getArguments().getChild(0)===e)&&this.getVariableProposalsForCSSVarFunction(r),r},t.prototype.getCompletionsForFunctionDeclaration=function(e,n){var r=e.getDeclarations();return r&&this.offset>r.offset&&this.offset<r.end&&this.getTermProposals(void 0,null,n),n},t.prototype.getCompletionsForMixinReference=function(e,n){for(var r=this,i=this.getSymbolContext().findSymbolsAtOffset(this.offset,Z.Mixin),s=0,a=i;s<a.length;s++){var o=a[s];o.node instanceof Cn&&n.items.push(this.makeTermProposal(o,o.node.getParameters(),null))}var l=e.getIdentifier()||null;return this.completionParticipants.forEach(function(c){c.onCssMixinReference&&c.onCssMixinReference({mixinName:r.currentWord,range:r.getCompletionRange(l)})}),n},t.prototype.getTermProposals=function(e,n,r){for(var i=this.getSymbolContext().findSymbolsAtOffset(this.offset,Z.Function),s=0,a=i;s<a.length;s++){var o=a[s];o.node instanceof nr&&r.items.push(this.makeTermProposal(o,o.node.getParameters(),n))}return r},t.prototype.makeTermProposal=function(e,n,r){e.node;var i=n.getChildren().map(function(a){return a instanceof tr?a.getName():a.getText()}),s=e.name+"("+i.map(function(a,o){return"${"+(o+1)+":"+a+"}"}).join(", ")+")";return{label:e.name,detail:e.name+"("+i.join(", ")+")",textEdit:H.replace(this.getCompletionRange(r),s),insertTextFormat:it,kind:$.Function,sortText:et.Term}},t.prototype.getCompletionsForSupportsCondition=function(e,n){var r=e.findFirstChildBeforeOffset(this.offset);if(r){if(r instanceof Ze)return!Ue(r.colonPosition)||this.offset<=r.colonPosition?this.getCompletionsForDeclarationProperty(r,n):this.getCompletionsForDeclarationValue(r,n);if(r instanceof xn)return this.getCompletionsForSupportsCondition(r,n)}return Ue(e.lParent)&&this.offset>e.lParent&&(!Ue(e.rParent)||this.offset<=e.rParent)?this.getCompletionsForDeclarationProperty(null,n):n},t.prototype.getCompletionsForSupports=function(e,n){var r=e.getDeclarations(),i=!r||this.offset<=r.offset;if(i){var s=e.findFirstChildBeforeOffset(this.offset);return s instanceof xn?this.getCompletionsForSupportsCondition(s,n):n}return this.getCompletionForTopLevel(n)},t.prototype.getCompletionsForExtendsReference=function(e,n,r){return r},t.prototype.getCompletionForUriLiteralValue=function(e,n){var r,i,s;if(e.hasChildren()){var o=e.getChild(0);r=o.getText(),i=this.position,s=this.getCompletionRange(o)}else{r="",i=this.position;var a=this.textDocument.positionAt(e.offset+4);s=ie.create(a,a)}return this.completionParticipants.forEach(function(l){l.onCssURILiteralValue&&l.onCssURILiteralValue({uriValue:r,position:i,range:s})}),n},t.prototype.getCompletionForImportPath=function(e,n){var r=this;return this.completionParticipants.forEach(function(i){i.onCssImportPath&&i.onCssImportPath({pathValue:e.getText(),position:r.position,range:r.getCompletionRange(e)})}),n},t.prototype.hasCharacterAtPosition=function(e,n){var r=this.textDocument.getText();return e>=0&&e<r.length&&r.charAt(e)===n},t.prototype.doesSupportMarkdown=function(){var e,n,r;if(!Ue(this.supportsMarkdown)){if(!Ue(this.lsOptions.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;var i=(r=(n=(e=this.lsOptions.clientCapabilities.textDocument)===null||e===void 0?void 0:e.completion)===null||n===void 0?void 0:n.completionItem)===null||r===void 0?void 0:r.documentationFormat;this.supportsMarkdown=Array.isArray(i)&&i.indexOf(Oe.Markdown)!==-1}return this.supportsMarkdown},t}();function Nn(t){return!!(t.status&&(t.status==="nonstandard"||t.status==="obsolete"))}var Oi=function(){function t(){this.entries={}}return t.prototype.add=function(e){this.entries[e]=!0},t.prototype.remove=function(e){delete this.entries[e]},t.prototype.getEntries=function(){return Object.keys(this.entries)},t}();function en(t){return t.replace(/\(\)$/,"($1)")}function up(t,e){var n=e.getFullPropertyName(),r=new Oi;function i(o){return(o instanceof We||o instanceof yi||o instanceof vi)&&r.add(o.getText()),!0}function s(o){var l=o.getFullPropertyName();return n===l}function a(o){if(o instanceof Ze&&o!==e&&s(o)){var l=o.getValue();l&&l.accept(i)}return!0}return t.accept(a),r}var pp=function(){function t(e,n){this.entries=e,this.currentOffset=n}return t.prototype.visitNode=function(e){return(e instanceof vi||e instanceof wn&&Bu(e))&&(this.currentOffset<e.offset||e.end<this.currentOffset)&&this.entries.add(e.getText()),!0},t}(),fp=function(){function t(e,n){this.entries=e,this.currentOffset=n}return t.prototype.visitNode=function(e){return e instanceof We&&e.isCustomProperty&&(this.currentOffset<e.offset||e.end<this.currentOffset)&&this.entries.add(e.getText()),!0},t}();function mp(t,e){for(var n=e-1,r=t.getText();n>=0&&`
|
|
36
|
+
`),n+=t.references.map(function(i){return"[".concat(i.name,"](").concat(i.url,")")}).join(" | ")),n}function pl(t){return t===void 0&&(t=[]),t.length===0?null:t.map(function(e){var n="",r=e.match(/([A-Z]+)(\d+)?/),i=r[1],s=r[2];return i in dl&&(n+=dl[i]),s&&(n+=" "+s),n}).join(", ")}var An=Ge(),Vu=[{func:"rgb($red, $green, $blue)",desc:An("css.builtin.rgb","Creates a Color from red, green, and blue values.")},{func:"rgba($red, $green, $blue, $alpha)",desc:An("css.builtin.rgba","Creates a Color from red, green, blue, and alpha values.")},{func:"hsl($hue, $saturation, $lightness)",desc:An("css.builtin.hsl","Creates a Color from hue, saturation, and lightness values.")},{func:"hsla($hue, $saturation, $lightness, $alpha)",desc:An("css.builtin.hsla","Creates a Color from hue, saturation, lightness, and alpha values.")},{func:"hwb($hue $white $black)",desc:An("css.builtin.hwb","Creates a Color from hue, white and black.")}],pr={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgrey:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rebeccapurple:"#663399",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},fl={currentColor:"The value of the 'color' property. The computed value of the 'currentColor' keyword is the computed value of the 'color' property. If the 'currentColor' keyword is set on the 'color' property itself, it is treated as 'color:inherit' at parse time.",transparent:"Fully transparent. This keyword can be considered a shorthand for rgba(0,0,0,0) which is its computed value."};function wt(t,e){var n=t.getText(),r=n.match(/^([-+]?[0-9]*\.?[0-9]+)(%?)$/);if(r){r[2]&&(e=100);var i=parseFloat(r[1])/e;if(i>=0&&i<=1)return i}throw new Error}function ml(t){var e=t.getText(),n=e.match(/^([-+]?[0-9]*\.?[0-9]+)(deg|rad|grad|turn)?$/);if(n)switch(n[2]){case"deg":return parseFloat(e)%360;case"rad":return parseFloat(e)*180/Math.PI%360;case"grad":return parseFloat(e)*.9%360;case"turn":return parseFloat(e)*360%360;default:if(typeof n[2]>"u")return parseFloat(e)%360}throw new Error}function Bu(t){var e=t.getName();return e?/^(rgb|rgba|hsl|hsla|hwb)$/gi.test(e):!1}var gl=48,qu=57,ju=65,fr=97,$u=102;function ue(t){return t<gl?0:t<=qu?t-gl:(t<fr&&(t+=fr-ju),t>=fr&&t<=$u?t-fr+10:0)}function bl(t){if(t[0]!=="#")return null;switch(t.length){case 4:return{red:ue(t.charCodeAt(1))*17/255,green:ue(t.charCodeAt(2))*17/255,blue:ue(t.charCodeAt(3))*17/255,alpha:1};case 5:return{red:ue(t.charCodeAt(1))*17/255,green:ue(t.charCodeAt(2))*17/255,blue:ue(t.charCodeAt(3))*17/255,alpha:ue(t.charCodeAt(4))*17/255};case 7:return{red:(ue(t.charCodeAt(1))*16+ue(t.charCodeAt(2)))/255,green:(ue(t.charCodeAt(3))*16+ue(t.charCodeAt(4)))/255,blue:(ue(t.charCodeAt(5))*16+ue(t.charCodeAt(6)))/255,alpha:1};case 9:return{red:(ue(t.charCodeAt(1))*16+ue(t.charCodeAt(2)))/255,green:(ue(t.charCodeAt(3))*16+ue(t.charCodeAt(4)))/255,blue:(ue(t.charCodeAt(5))*16+ue(t.charCodeAt(6)))/255,alpha:(ue(t.charCodeAt(7))*16+ue(t.charCodeAt(8)))/255}}return null}function vl(t,e,n,r){if(r===void 0&&(r=1),t=t/60,e===0)return{red:n,green:n,blue:n,alpha:r};var i=function(o,l,c){for(;c<0;)c+=6;for(;c>=6;)c-=6;return c<1?(l-o)*c+o:c<3?l:c<4?(l-o)*(4-c)+o:o},s=n<=.5?n*(e+1):n+e-n*e,a=n*2-s;return{red:i(a,s,t+2),green:i(a,s,t),blue:i(a,s,t-2),alpha:r}}function yl(t){var e=t.red,n=t.green,r=t.blue,i=t.alpha,s=Math.max(e,n,r),a=Math.min(e,n,r),o=0,l=0,c=(a+s)/2,h=s-a;if(h>0){switch(l=Math.min(c<=.5?h/(2*c):h/(2-2*c),1),s){case e:o=(n-r)/h+(n<r?6:0);break;case n:o=(r-e)/h+2;break;case r:o=(e-n)/h+4;break}o*=60,o=Math.round(o)}return{h:o,s:l,l:c,a:i}}function Hu(t,e,n,r){if(r===void 0&&(r=1),e+n>=1){var i=e/(e+n);return{red:i,green:i,blue:i,alpha:r}}var s=vl(t,1,.5,r),a=s.red;a*=1-e-n,a+=e;var o=s.green;o*=1-e-n,o+=e;var l=s.blue;return l*=1-e-n,l+=e,{red:a,green:o,blue:l,alpha:r}}function Gu(t){var e=yl(t),n=Math.min(t.red,t.green,t.blue),r=1-Math.max(t.red,t.green,t.blue);return{h:e.h,w:n,b:r,a:e.a}}function Ju(t){if(t.type===v.HexColorValue){var e=t.getText();return bl(e)}else if(t.type===v.Function){var n=t,r=n.getName(),i=n.getArguments().getChildren();if(i.length===1){var s=i[0].getChildren();if(s.length===1&&s[0].type===v.Expression&&(i=s[0].getChildren(),i.length===3)){var a=i[2];if(a instanceof bi){var o=a.getLeft(),l=a.getRight(),c=a.getOperator();o&&l&&c&&c.matches("/")&&(i=[i[0],i[1],o,l])}}}if(!r||i.length<3||i.length>4)return null;try{var h=i.length===4?wt(i[3],1):1;if(r==="rgb"||r==="rgba")return{red:wt(i[0],255),green:wt(i[1],255),blue:wt(i[2],255),alpha:h};if(r==="hsl"||r==="hsla"){var u=ml(i[0]),f=wt(i[1],100),m=wt(i[2],100);return vl(u,f,m,h)}else if(r==="hwb"){var u=ml(i[0]),g=wt(i[1],100),b=wt(i[2],100);return Hu(u,g,b,h)}}catch{return null}}else if(t.type===v.Identifier){if(t.parent&&t.parent.type!==v.Term)return null;var y=t.parent;if(y&&y.parent&&y.parent.type===v.BinaryExpression){var C=y.parent;if(C.parent&&C.parent.type===v.ListEntry&&C.parent.key===C)return null}var k=t.getText().toLowerCase();if(k==="none")return null;var w=pr[k];if(w)return bl(w)}return null}var wl={bottom:"Computes to ‘100%’ for the vertical position if one or two values are given, otherwise specifies the bottom edge as the origin for the next offset.",center:"Computes to ‘50%’ (‘left 50%’) for the horizontal position if the horizontal position is not otherwise specified, or ‘50%’ (‘top 50%’) for the vertical position if it is.",left:"Computes to ‘0%’ for the horizontal position if one or two values are given, otherwise specifies the left edge as the origin for the next offset.",right:"Computes to ‘100%’ for the horizontal position if one or two values are given, otherwise specifies the right edge as the origin for the next offset.",top:"Computes to ‘0%’ for the vertical position if one or two values are given, otherwise specifies the top edge as the origin for the next offset."},xl={"no-repeat":"Placed once and not repeated in this direction.",repeat:"Repeated in this direction as often as needed to cover the background painting area.","repeat-x":"Computes to ‘repeat no-repeat’.","repeat-y":"Computes to ‘no-repeat repeat’.",round:"Repeated as often as will fit within the background positioning area. If it doesn’t fit a whole number of times, it is rescaled so that it does.",space:"Repeated as often as will fit within the background positioning area without being clipped and then the images are spaced out to fill the area."},Sl={dashed:"A series of square-ended dashes.",dotted:"A series of round dots.",double:"Two parallel solid lines with some space between them.",groove:"Looks as if it were carved in the canvas.",hidden:"Same as ‘none’, but has different behavior in the border conflict resolution rules for border-collapsed tables.",inset:"Looks as if the content on the inside of the border is sunken into the canvas.",none:"No border. Color and width are ignored.",outset:"Looks as if the content on the inside of the border is coming out of the canvas.",ridge:"Looks as if it were coming out of the canvas.",solid:"A single line segment."},Xu=["medium","thick","thin"],Cl={"border-box":"The background is painted within (clipped to) the border box.","content-box":"The background is painted within (clipped to) the content box.","padding-box":"The background is painted within (clipped to) the padding box."},kl={"margin-box":"Uses the margin box as reference box.","fill-box":"Uses the object bounding box as reference box.","stroke-box":"Uses the stroke bounding box as reference box.","view-box":"Uses the nearest SVG viewport as reference box."},_l={initial:"Represents the value specified as the property’s initial value.",inherit:"Represents the computed value of the property on the element’s parent.",unset:"Acts as either `inherit` or `initial`, depending on whether the property is inherited or not."},El={"var()":"Evaluates the value of a custom variable.","calc()":"Evaluates an mathematical expression. The following operators can be used: + - * /."},Rl={"url()":"Reference an image file by URL","image()":"Provide image fallbacks and annotations.","-webkit-image-set()":"Provide multiple resolutions. Remember to use unprefixed image-set() in addition.","image-set()":"Provide multiple resolutions of an image and const the UA decide which is most appropriate in a given situation.","-moz-element()":"Use an element in the document as an image. Remember to use unprefixed element() in addition.","element()":"Use an element in the document as an image.","cross-fade()":"Indicates the two images to be combined and how far along in the transition the combination is.","-webkit-gradient()":"Deprecated. Use modern linear-gradient() or radial-gradient() instead.","-webkit-linear-gradient()":"Linear gradient. Remember to use unprefixed version in addition.","-moz-linear-gradient()":"Linear gradient. Remember to use unprefixed version in addition.","-o-linear-gradient()":"Linear gradient. Remember to use unprefixed version in addition.","linear-gradient()":"A linear gradient is created by specifying a straight gradient line, and then several colors placed along that line.","-webkit-repeating-linear-gradient()":"Repeating Linear gradient. Remember to use unprefixed version in addition.","-moz-repeating-linear-gradient()":"Repeating Linear gradient. Remember to use unprefixed version in addition.","-o-repeating-linear-gradient()":"Repeating Linear gradient. Remember to use unprefixed version in addition.","repeating-linear-gradient()":"Same as linear-gradient, except the color-stops are repeated infinitely in both directions, with their positions shifted by multiples of the difference between the last specified color-stop’s position and the first specified color-stop’s position.","-webkit-radial-gradient()":"Radial gradient. Remember to use unprefixed version in addition.","-moz-radial-gradient()":"Radial gradient. Remember to use unprefixed version in addition.","radial-gradient()":"Colors emerge from a single point and smoothly spread outward in a circular or elliptical shape.","-webkit-repeating-radial-gradient()":"Repeating radial gradient. Remember to use unprefixed version in addition.","-moz-repeating-radial-gradient()":"Repeating radial gradient. Remember to use unprefixed version in addition.","repeating-radial-gradient()":"Same as radial-gradient, except the color-stops are repeated infinitely in both directions, with their positions shifted by multiples of the difference between the last specified color-stop’s position and the first specified color-stop’s position."},Fl={ease:"Equivalent to cubic-bezier(0.25, 0.1, 0.25, 1.0).","ease-in":"Equivalent to cubic-bezier(0.42, 0, 1.0, 1.0).","ease-in-out":"Equivalent to cubic-bezier(0.42, 0, 0.58, 1.0).","ease-out":"Equivalent to cubic-bezier(0, 0, 0.58, 1.0).",linear:"Equivalent to cubic-bezier(0.0, 0.0, 1.0, 1.0).","step-end":"Equivalent to steps(1, end).","step-start":"Equivalent to steps(1, start).","steps()":"The first parameter specifies the number of intervals in the function. The second parameter, which is optional, is either the value “start” or “end”.","cubic-bezier()":"Specifies a cubic-bezier curve. The four values specify points P1 and P2 of the curve as (x1, y1, x2, y2).","cubic-bezier(0.6, -0.28, 0.735, 0.045)":"Ease-in Back. Overshoots.","cubic-bezier(0.68, -0.55, 0.265, 1.55)":"Ease-in-out Back. Overshoots.","cubic-bezier(0.175, 0.885, 0.32, 1.275)":"Ease-out Back. Overshoots.","cubic-bezier(0.6, 0.04, 0.98, 0.335)":"Ease-in Circular. Based on half circle.","cubic-bezier(0.785, 0.135, 0.15, 0.86)":"Ease-in-out Circular. Based on half circle.","cubic-bezier(0.075, 0.82, 0.165, 1)":"Ease-out Circular. Based on half circle.","cubic-bezier(0.55, 0.055, 0.675, 0.19)":"Ease-in Cubic. Based on power of three.","cubic-bezier(0.645, 0.045, 0.355, 1)":"Ease-in-out Cubic. Based on power of three.","cubic-bezier(0.215, 0.610, 0.355, 1)":"Ease-out Cubic. Based on power of three.","cubic-bezier(0.95, 0.05, 0.795, 0.035)":"Ease-in Exponential. Based on two to the power ten.","cubic-bezier(1, 0, 0, 1)":"Ease-in-out Exponential. Based on two to the power ten.","cubic-bezier(0.19, 1, 0.22, 1)":"Ease-out Exponential. Based on two to the power ten.","cubic-bezier(0.47, 0, 0.745, 0.715)":"Ease-in Sine.","cubic-bezier(0.445, 0.05, 0.55, 0.95)":"Ease-in-out Sine.","cubic-bezier(0.39, 0.575, 0.565, 1)":"Ease-out Sine.","cubic-bezier(0.55, 0.085, 0.68, 0.53)":"Ease-in Quadratic. Based on power of two.","cubic-bezier(0.455, 0.03, 0.515, 0.955)":"Ease-in-out Quadratic. Based on power of two.","cubic-bezier(0.25, 0.46, 0.45, 0.94)":"Ease-out Quadratic. Based on power of two.","cubic-bezier(0.895, 0.03, 0.685, 0.22)":"Ease-in Quartic. Based on power of four.","cubic-bezier(0.77, 0, 0.175, 1)":"Ease-in-out Quartic. Based on power of four.","cubic-bezier(0.165, 0.84, 0.44, 1)":"Ease-out Quartic. Based on power of four.","cubic-bezier(0.755, 0.05, 0.855, 0.06)":"Ease-in Quintic. Based on power of five.","cubic-bezier(0.86, 0, 0.07, 1)":"Ease-in-out Quintic. Based on power of five.","cubic-bezier(0.23, 1, 0.320, 1)":"Ease-out Quintic. Based on power of five."},Dl={"circle()":"Defines a circle.","ellipse()":"Defines an ellipse.","inset()":"Defines an inset rectangle.","polygon()":"Defines a polygon."},Al={length:["em","rem","ex","px","cm","mm","in","pt","pc","ch","vw","vh","vmin","vmax"],angle:["deg","rad","grad","turn"],time:["ms","s"],frequency:["Hz","kHz"],resolution:["dpi","dpcm","dppx"],percentage:["%","fr"]},Yu=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","const","video","wbr"],Ku=["circle","clipPath","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","hatch","hatchpath","image","line","linearGradient","marker","mask","mesh","meshpatch","meshrow","metadata","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","solidcolor","stop","svg","switch","symbol","text","textPath","tspan","use","view"],Qu=["@bottom-center","@bottom-left","@bottom-left-corner","@bottom-right","@bottom-right-corner","@left-bottom","@left-middle","@left-top","@right-bottom","@right-middle","@right-top","@top-center","@top-left","@top-left-corner","@top-right","@top-right-corner"];function mr(t){return Object.keys(t).map(function(e){return t[e]})}function Ue(t){return typeof t<"u"}var Nl=function(t,e,n){if(arguments.length===2)for(var r=0,i=e.length,s;r<i;r++)(s||!(r in e))&&(s||(s=Array.prototype.slice.call(e,0,r)),s[r]=e[r]);return t.concat(s||Array.prototype.slice.call(e))},Ni=function(){function t(e){e===void 0&&(e=new vn),this.keyframeRegex=/^@(\-(webkit|ms|moz|o)\-)?keyframes$/i,this.scanner=e,this.token={type:p.EOF,offset:-1,len:0,text:""},this.prevToken=void 0}return t.prototype.peekIdent=function(e){return p.Ident===this.token.type&&e.length===this.token.text.length&&e===this.token.text.toLowerCase()},t.prototype.peekKeyword=function(e){return p.AtKeyword===this.token.type&&e.length===this.token.text.length&&e===this.token.text.toLowerCase()},t.prototype.peekDelim=function(e){return p.Delim===this.token.type&&e===this.token.text},t.prototype.peek=function(e){return e===this.token.type},t.prototype.peekOne=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.indexOf(this.token.type)!==-1},t.prototype.peekRegExp=function(e,n){return e!==this.token.type?!1:n.test(this.token.text)},t.prototype.hasWhitespace=function(){return!!this.prevToken&&this.prevToken.offset+this.prevToken.len!==this.token.offset},t.prototype.consumeToken=function(){this.prevToken=this.token,this.token=this.scanner.scan()},t.prototype.acceptUnicodeRange=function(){var e=this.scanner.tryScanUnicode();return e?(this.prevToken=e,this.token=this.scanner.scan(),!0):!1},t.prototype.mark=function(){return{prev:this.prevToken,curr:this.token,pos:this.scanner.pos()}},t.prototype.restoreAtMark=function(e){this.prevToken=e.prev,this.token=e.curr,this.scanner.goBackTo(e.pos)},t.prototype.try=function(e){var n=this.mark(),r=e();return r||(this.restoreAtMark(n),null)},t.prototype.acceptOneKeyword=function(e){if(p.AtKeyword===this.token.type)for(var n=0,r=e;n<r.length;n++){var i=r[n];if(i.length===this.token.text.length&&i===this.token.text.toLowerCase())return this.consumeToken(),!0}return!1},t.prototype.accept=function(e){return e===this.token.type?(this.consumeToken(),!0):!1},t.prototype.acceptIdent=function(e){return this.peekIdent(e)?(this.consumeToken(),!0):!1},t.prototype.acceptKeyword=function(e){return this.peekKeyword(e)?(this.consumeToken(),!0):!1},t.prototype.acceptDelim=function(e){return this.peekDelim(e)?(this.consumeToken(),!0):!1},t.prototype.acceptRegexp=function(e){return e.test(this.token.text)?(this.consumeToken(),!0):!1},t.prototype._parseRegexp=function(e){var n=this.createNode(v.Identifier);do;while(this.acceptRegexp(e));return this.finish(n)},t.prototype.acceptUnquotedString=function(){var e=this.scanner.pos();this.scanner.goBackTo(this.token.offset);var n=this.scanner.scanUnquotedString();return n?(this.token=n,this.consumeToken(),!0):(this.scanner.goBackTo(e),!1)},t.prototype.resync=function(e,n){for(;;){if(e&&e.indexOf(this.token.type)!==-1)return this.consumeToken(),!0;if(n&&n.indexOf(this.token.type)!==-1)return!0;if(this.token.type===p.EOF)return!1;this.token=this.scanner.scan()}},t.prototype.createNode=function(e){return new U(this.token.offset,this.token.len,e)},t.prototype.create=function(e){return new e(this.token.offset,this.token.len)},t.prototype.finish=function(e,n,r,i){if(!(e instanceof ke)&&(n&&this.markError(e,n,r,i),this.prevToken)){var s=this.prevToken.offset+this.prevToken.len;e.length=s>e.offset?s-e.offset:0}return e},t.prototype.markError=function(e,n,r,i){this.token!==this.lastErrorToken&&(e.addIssue(new zo(e,n,Pe.Error,void 0,this.token.offset,this.token.len)),this.lastErrorToken=this.token),(r||i)&&this.resync(r,i)},t.prototype.parseStylesheet=function(e){var n=e.version,r=e.getText(),i=function(s,a){if(e.version!==n)throw new Error("Underlying model has changed, AST is no longer valid");return r.substr(s,a)};return this.internalParse(r,this._parseStylesheet,i)},t.prototype.internalParse=function(e,n,r){this.scanner.setSource(e),this.token=this.scanner.scan();var i=n.bind(this)();return i&&(r?i.textProvider=r:i.textProvider=function(s,a){return e.substr(s,a)}),i},t.prototype._parseStylesheet=function(){for(var e=this.create(ru);e.addChild(this._parseStylesheetStart()););var n=!1;do{var r=!1;do{r=!1;var i=this._parseStylesheetStatement();for(i&&(e.addChild(i),r=!0,n=!1,!this.peek(p.EOF)&&this._needsSemicolonAfter(i)&&!this.accept(p.SemiColon)&&this.markError(e,S.SemiColonExpected));this.accept(p.SemiColon)||this.accept(p.CDO)||this.accept(p.CDC);)r=!0,n=!1}while(r);if(this.peek(p.EOF))break;n||(this.peek(p.AtKeyword)?this.markError(e,S.UnknownAtRule):this.markError(e,S.RuleOrSelectorExpected),n=!0),this.consumeToken()}while(!this.peek(p.EOF));return this.finish(e)},t.prototype._parseStylesheetStart=function(){return this._parseCharset()},t.prototype._parseStylesheetStatement=function(e){return e===void 0&&(e=!1),this.peek(p.AtKeyword)?this._parseStylesheetAtStatement(e):this._parseRuleset(e)},t.prototype._parseStylesheetAtStatement=function(e){return e===void 0&&(e=!1),this._parseImport()||this._parseMedia(e)||this._parsePage()||this._parseFontFace()||this._parseKeyframe()||this._parseSupports(e)||this._parseViewPort()||this._parseNamespace()||this._parseDocument()||this._parseUnknownAtRule()},t.prototype._tryParseRuleset=function(e){var n=this.mark();if(this._parseSelector(e)){for(;this.accept(p.Comma)&&this._parseSelector(e););if(this.accept(p.CurlyL))return this.restoreAtMark(n),this._parseRuleset(e)}return this.restoreAtMark(n),null},t.prototype._parseRuleset=function(e){e===void 0&&(e=!1);var n=this.create(Jt),r=n.getSelectors();if(!r.addChild(this._parseSelector(e)))return null;for(;this.accept(p.Comma);)if(!r.addChild(this._parseSelector(e)))return this.finish(n,S.SelectorExpected);return this._parseBody(n,this._parseRuleSetDeclaration.bind(this))},t.prototype._parseRuleSetDeclarationAtStatement=function(){return this._parseUnknownAtRule()},t.prototype._parseRuleSetDeclaration=function(){return this.peek(p.AtKeyword)?this._parseRuleSetDeclarationAtStatement():this._parseDeclaration()},t.prototype._needsSemicolonAfter=function(e){switch(e.type){case v.Keyframe:case v.ViewPort:case v.Media:case v.Ruleset:case v.Namespace:case v.If:case v.For:case v.Each:case v.While:case v.MixinDeclaration:case v.FunctionDeclaration:case v.MixinContentDeclaration:return!1;case v.ExtendsReference:case v.MixinContentReference:case v.ReturnStatement:case v.MediaQuery:case v.Debug:case v.Import:case v.AtApplyRule:case v.CustomPropertyDeclaration:return!0;case v.VariableDeclaration:return e.needsSemicolon;case v.MixinReference:return!e.getContent();case v.Declaration:return!e.getNestedProperties()}return!1},t.prototype._parseDeclarations=function(e){var n=this.create(ui);if(!this.accept(p.CurlyL))return null;for(var r=e();n.addChild(r)&&!this.peek(p.CurlyR);){if(this._needsSemicolonAfter(r)&&!this.accept(p.SemiColon))return this.finish(n,S.SemiColonExpected,[p.SemiColon,p.CurlyR]);for(r&&this.prevToken&&this.prevToken.type===p.SemiColon&&(r.semicolonPosition=this.prevToken.offset);this.accept(p.SemiColon););r=e()}return this.accept(p.CurlyR)?this.finish(n):this.finish(n,S.RightCurlyExpected,[p.CurlyR,p.SemiColon])},t.prototype._parseBody=function(e,n){return e.setDeclarations(this._parseDeclarations(n))?this.finish(e):this.finish(e,S.LeftCurlyExpected,[p.CurlyR,p.SemiColon])},t.prototype._parseSelector=function(e){var n=this.create(yn),r=!1;for(e&&(r=n.addChild(this._parseCombinator()));n.addChild(this._parseSimpleSelector());)r=!0,n.addChild(this._parseCombinator());return r?this.finish(n):null},t.prototype._parseDeclaration=function(e){var n=this._tryParseCustomPropertyDeclaration(e);if(n)return n;var r=this.create(Ze);return r.setProperty(this._parseProperty())?this.accept(p.Colon)?(this.prevToken&&(r.colonPosition=this.prevToken.offset),r.setValue(this._parseExpr())?(r.addChild(this._parsePrio()),this.peek(p.SemiColon)&&(r.semicolonPosition=this.token.offset),this.finish(r)):this.finish(r,S.PropertyValueExpected)):this.finish(r,S.ColonExpected,[p.Colon],e||[p.SemiColon]):null},t.prototype._tryParseCustomPropertyDeclaration=function(e){if(!this.peekRegExp(p.Ident,/^--/))return null;var n=this.create(su);if(!n.setProperty(this._parseProperty()))return null;if(!this.accept(p.Colon))return this.finish(n,S.ColonExpected,[p.Colon]);this.prevToken&&(n.colonPosition=this.prevToken.offset);var r=this.mark();if(this.peek(p.CurlyL)){var i=this.create(iu),s=this._parseDeclarations(this._parseRuleSetDeclaration.bind(this));if(i.setDeclarations(s)&&!s.isErroneous(!0)&&(i.addChild(this._parsePrio()),this.peek(p.SemiColon)))return this.finish(i),n.setPropertySet(i),n.semicolonPosition=this.token.offset,this.finish(n);this.restoreAtMark(r)}var a=this._parseExpr();return a&&!a.isErroneous(!0)&&(this._parsePrio(),this.peekOne.apply(this,Nl(Nl([],e||[],!1),[p.SemiColon,p.EOF],!1)))?(n.setValue(a),this.peek(p.SemiColon)&&(n.semicolonPosition=this.token.offset),this.finish(n)):(this.restoreAtMark(r),n.addChild(this._parseCustomPropertyValue(e)),n.addChild(this._parsePrio()),Ue(n.colonPosition)&&this.token.offset===n.colonPosition+1?this.finish(n,S.PropertyValueExpected):this.finish(n))},t.prototype._parseCustomPropertyValue=function(e){var n=this;e===void 0&&(e=[p.CurlyR]);var r=this.create(U),i=function(){return a===0&&o===0&&l===0},s=function(){return e.indexOf(n.token.type)!==-1},a=0,o=0,l=0;e:for(;;){switch(this.token.type){case p.SemiColon:if(i())break e;break;case p.Exclamation:if(i())break e;break;case p.CurlyL:a++;break;case p.CurlyR:if(a--,a<0){if(s()&&o===0&&l===0)break e;return this.finish(r,S.LeftCurlyExpected)}break;case p.ParenthesisL:o++;break;case p.ParenthesisR:if(o--,o<0){if(s()&&l===0&&a===0)break e;return this.finish(r,S.LeftParenthesisExpected)}break;case p.BracketL:l++;break;case p.BracketR:if(l--,l<0)return this.finish(r,S.LeftSquareBracketExpected);break;case p.BadString:break e;case p.EOF:var c=S.RightCurlyExpected;return l>0?c=S.RightSquareBracketExpected:o>0&&(c=S.RightParenthesisExpected),this.finish(r,c)}this.consumeToken()}return this.finish(r)},t.prototype._tryToParseDeclaration=function(e){var n=this.mark();return this._parseProperty()&&this.accept(p.Colon)?(this.restoreAtMark(n),this._parseDeclaration(e)):(this.restoreAtMark(n),null)},t.prototype._parseProperty=function(){var e=this.create(fi),n=this.mark();return(this.acceptDelim("*")||this.acceptDelim("_"))&&this.hasWhitespace()?(this.restoreAtMark(n),null):e.setIdentifier(this._parsePropertyIdentifier())?this.finish(e):null},t.prototype._parsePropertyIdentifier=function(){return this._parseIdent()},t.prototype._parseCharset=function(){if(!this.peek(p.Charset))return null;var e=this.create(U);return this.consumeToken(),this.accept(p.String)?this.accept(p.SemiColon)?this.finish(e):this.finish(e,S.SemiColonExpected):this.finish(e,S.IdentifierExpected)},t.prototype._parseImport=function(){if(!this.peekKeyword("@import"))return null;var e=this.create(mi);return this.consumeToken(),!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral())?this.finish(e,S.URIOrStringExpected):(!this.peek(p.SemiColon)&&!this.peek(p.EOF)&&e.setMedialist(this._parseMediaQueryList()),this.finish(e))},t.prototype._parseNamespace=function(){if(!this.peekKeyword("@namespace"))return null;var e=this.create(bu);return this.consumeToken(),!e.addChild(this._parseURILiteral())&&(e.addChild(this._parseIdent()),!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral()))?this.finish(e,S.URIExpected,[p.SemiColon]):this.accept(p.SemiColon)?this.finish(e):this.finish(e,S.SemiColonExpected)},t.prototype._parseFontFace=function(){if(!this.peekKeyword("@font-face"))return null;var e=this.create(Co);return this.consumeToken(),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))},t.prototype._parseViewPort=function(){if(!this.peekKeyword("@-ms-viewport")&&!this.peekKeyword("@-o-viewport")&&!this.peekKeyword("@viewport"))return null;var e=this.create(uu);return this.consumeToken(),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))},t.prototype._parseKeyframe=function(){if(!this.peekRegExp(p.AtKeyword,this.keyframeRegex))return null;var e=this.create(_o),n=this.create(U);return this.consumeToken(),e.setKeyword(this.finish(n)),n.matches("@-ms-keyframes")&&this.markError(n,S.UnknownKeyword),e.setIdentifier(this._parseKeyframeIdent())?this._parseBody(e,this._parseKeyframeSelector.bind(this)):this.finish(e,S.IdentifierExpected,[p.CurlyR])},t.prototype._parseKeyframeIdent=function(){return this._parseIdent([Z.Keyframe])},t.prototype._parseKeyframeSelector=function(){var e=this.create(Eo);if(!e.addChild(this._parseIdent())&&!this.accept(p.Percentage))return null;for(;this.accept(p.Comma);)if(!e.addChild(this._parseIdent())&&!this.accept(p.Percentage))return this.finish(e,S.PercentageExpected);return this._parseBody(e,this._parseRuleSetDeclaration.bind(this))},t.prototype._tryParseKeyframeSelector=function(){var e=this.create(Eo),n=this.mark();if(!e.addChild(this._parseIdent())&&!this.accept(p.Percentage))return null;for(;this.accept(p.Comma);)if(!e.addChild(this._parseIdent())&&!this.accept(p.Percentage))return this.restoreAtMark(n),null;return this.peek(p.CurlyL)?this._parseBody(e,this._parseRuleSetDeclaration.bind(this)):(this.restoreAtMark(n),null)},t.prototype._parseSupports=function(e){if(e===void 0&&(e=!1),!this.peekKeyword("@supports"))return null;var n=this.create(gi);return this.consumeToken(),n.addChild(this._parseSupportsCondition()),this._parseBody(n,this._parseSupportsDeclaration.bind(this,e))},t.prototype._parseSupportsDeclaration=function(e){return e===void 0&&(e=!1),e?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)},t.prototype._parseSupportsCondition=function(){var e=this.create(xn);if(this.acceptIdent("not"))e.addChild(this._parseSupportsConditionInParens());else if(e.addChild(this._parseSupportsConditionInParens()),this.peekRegExp(p.Ident,/^(and|or)$/i))for(var n=this.token.text.toLowerCase();this.acceptIdent(n);)e.addChild(this._parseSupportsConditionInParens());return this.finish(e)},t.prototype._parseSupportsConditionInParens=function(){var e=this.create(xn);if(this.accept(p.ParenthesisL))return this.prevToken&&(e.lParent=this.prevToken.offset),!e.addChild(this._tryToParseDeclaration([p.ParenthesisR]))&&!this._parseSupportsCondition()?this.finish(e,S.ConditionExpected):this.accept(p.ParenthesisR)?(this.prevToken&&(e.rParent=this.prevToken.offset),this.finish(e)):this.finish(e,S.RightParenthesisExpected,[p.ParenthesisR],[]);if(this.peek(p.Ident)){var n=this.mark();if(this.consumeToken(),!this.hasWhitespace()&&this.accept(p.ParenthesisL)){for(var r=1;this.token.type!==p.EOF&&r!==0;)this.token.type===p.ParenthesisL?r++:this.token.type===p.ParenthesisR&&r--,this.consumeToken();return this.finish(e)}else this.restoreAtMark(n)}return this.finish(e,S.LeftParenthesisExpected,[],[p.ParenthesisL])},t.prototype._parseMediaDeclaration=function(e){return e===void 0&&(e=!1),e?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)},t.prototype._parseMedia=function(e){if(e===void 0&&(e=!1),!this.peekKeyword("@media"))return null;var n=this.create(Ro);return this.consumeToken(),n.addChild(this._parseMediaQueryList())?this._parseBody(n,this._parseMediaDeclaration.bind(this,e)):this.finish(n,S.MediaQueryExpected)},t.prototype._parseMediaQueryList=function(){var e=this.create(Fo);if(!e.addChild(this._parseMediaQuery()))return this.finish(e,S.MediaQueryExpected);for(;this.accept(p.Comma);)if(!e.addChild(this._parseMediaQuery()))return this.finish(e,S.MediaQueryExpected);return this.finish(e)},t.prototype._parseMediaQuery=function(){var e=this.create(Do),n=this.mark();if(this.acceptIdent("not"),this.peek(p.ParenthesisL))this.restoreAtMark(n),e.addChild(this._parseMediaCondition());else{if(this.acceptIdent("only"),!e.addChild(this._parseIdent()))return null;this.acceptIdent("and")&&e.addChild(this._parseMediaCondition())}return this.finish(e)},t.prototype._parseRatio=function(){var e=this.mark(),n=this.create(_u);return this._parseNumeric()?this.acceptDelim("/")?this._parseNumeric()?this.finish(n):this.finish(n,S.NumberExpected):(this.restoreAtMark(e),null):null},t.prototype._parseMediaCondition=function(){var e=this.create(yu);this.acceptIdent("not");for(var n=!0;n;){if(!this.accept(p.ParenthesisL))return this.finish(e,S.LeftParenthesisExpected,[],[p.CurlyL]);if(this.peek(p.ParenthesisL)||this.peekIdent("not")?e.addChild(this._parseMediaCondition()):e.addChild(this._parseMediaFeature()),!this.accept(p.ParenthesisR))return this.finish(e,S.RightParenthesisExpected,[],[p.CurlyL]);n=this.acceptIdent("and")||this.acceptIdent("or")}return this.finish(e)},t.prototype._parseMediaFeature=function(){var e=this,n=[p.ParenthesisR],r=this.create(wu),i=function(){return e.acceptDelim("<")||e.acceptDelim(">")?(e.hasWhitespace()||e.acceptDelim("="),!0):!!e.acceptDelim("=")};if(r.addChild(this._parseMediaFeatureName())){if(this.accept(p.Colon)){if(!r.addChild(this._parseMediaFeatureValue()))return this.finish(r,S.TermExpected,[],n)}else if(i()){if(!r.addChild(this._parseMediaFeatureValue()))return this.finish(r,S.TermExpected,[],n);if(i()&&!r.addChild(this._parseMediaFeatureValue()))return this.finish(r,S.TermExpected,[],n)}}else if(r.addChild(this._parseMediaFeatureValue())){if(!i())return this.finish(r,S.OperatorExpected,[],n);if(!r.addChild(this._parseMediaFeatureName()))return this.finish(r,S.IdentifierExpected,[],n);if(i()&&!r.addChild(this._parseMediaFeatureValue()))return this.finish(r,S.TermExpected,[],n)}else return this.finish(r,S.IdentifierExpected,[],n);return this.finish(r)},t.prototype._parseMediaFeatureName=function(){return this._parseIdent()},t.prototype._parseMediaFeatureValue=function(){return this._parseRatio()||this._parseTermExpression()},t.prototype._parseMedium=function(){var e=this.create(U);return e.addChild(this._parseIdent())?this.finish(e):null},t.prototype._parsePageDeclaration=function(){return this._parsePageMarginBox()||this._parseRuleSetDeclaration()},t.prototype._parsePage=function(){if(!this.peekKeyword("@page"))return null;var e=this.create(xu);if(this.consumeToken(),e.addChild(this._parsePageSelector())){for(;this.accept(p.Comma);)if(!e.addChild(this._parsePageSelector()))return this.finish(e,S.IdentifierExpected)}return this._parseBody(e,this._parsePageDeclaration.bind(this))},t.prototype._parsePageMarginBox=function(){if(!this.peek(p.AtKeyword))return null;var e=this.create(Su);return this.acceptOneKeyword(Qu)||this.markError(e,S.UnknownAtRule,[],[p.CurlyL]),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))},t.prototype._parsePageSelector=function(){if(!this.peek(p.Ident)&&!this.peek(p.Colon))return null;var e=this.create(U);return e.addChild(this._parseIdent()),this.accept(p.Colon)&&!e.addChild(this._parseIdent())?this.finish(e,S.IdentifierExpected):this.finish(e)},t.prototype._parseDocument=function(){if(!this.peekKeyword("@-moz-document"))return null;var e=this.create(vu);return this.consumeToken(),this.resync([],[p.CurlyL]),this._parseBody(e,this._parseStylesheetStatement.bind(this))},t.prototype._parseUnknownAtRule=function(){if(!this.peek(p.AtKeyword))return null;var e=this.create(No);e.addChild(this._parseUnknownAtRuleName());var n=function(){return i===0&&s===0&&a===0},r=0,i=0,s=0,a=0;e:for(;;){switch(this.token.type){case p.SemiColon:if(n())break e;break;case p.EOF:return i>0?this.finish(e,S.RightCurlyExpected):a>0?this.finish(e,S.RightSquareBracketExpected):s>0?this.finish(e,S.RightParenthesisExpected):this.finish(e);case p.CurlyL:r++,i++;break;case p.CurlyR:if(i--,r>0&&i===0){if(this.consumeToken(),a>0)return this.finish(e,S.RightSquareBracketExpected);if(s>0)return this.finish(e,S.RightParenthesisExpected);break e}if(i<0){if(s===0&&a===0)break e;return this.finish(e,S.LeftCurlyExpected)}break;case p.ParenthesisL:s++;break;case p.ParenthesisR:if(s--,s<0)return this.finish(e,S.LeftParenthesisExpected);break;case p.BracketL:a++;break;case p.BracketR:if(a--,a<0)return this.finish(e,S.LeftSquareBracketExpected);break}this.consumeToken()}return e},t.prototype._parseUnknownAtRuleName=function(){var e=this.create(U);return this.accept(p.AtKeyword)?this.finish(e):e},t.prototype._parseOperator=function(){if(this.peekDelim("/")||this.peekDelim("*")||this.peekDelim("+")||this.peekDelim("-")||this.peek(p.Dashmatch)||this.peek(p.Includes)||this.peek(p.SubstringOperator)||this.peek(p.PrefixOperator)||this.peek(p.SuffixOperator)||this.peekDelim("=")){var e=this.createNode(v.Operator);return this.consumeToken(),this.finish(e)}else return null},t.prototype._parseUnaryOperator=function(){if(!this.peekDelim("+")&&!this.peekDelim("-"))return null;var e=this.create(U);return this.consumeToken(),this.finish(e)},t.prototype._parseCombinator=function(){if(this.peekDelim(">")){var e=this.create(U);this.consumeToken();var n=this.mark();if(!this.hasWhitespace()&&this.acceptDelim(">")){if(!this.hasWhitespace()&&this.acceptDelim(">"))return e.type=v.SelectorCombinatorShadowPiercingDescendant,this.finish(e);this.restoreAtMark(n)}return e.type=v.SelectorCombinatorParent,this.finish(e)}else if(this.peekDelim("+")){var e=this.create(U);return this.consumeToken(),e.type=v.SelectorCombinatorSibling,this.finish(e)}else if(this.peekDelim("~")){var e=this.create(U);return this.consumeToken(),e.type=v.SelectorCombinatorAllSiblings,this.finish(e)}else if(this.peekDelim("/")){var e=this.create(U);this.consumeToken();var n=this.mark();if(!this.hasWhitespace()&&this.acceptIdent("deep")&&!this.hasWhitespace()&&this.acceptDelim("/"))return e.type=v.SelectorCombinatorShadowPiercingDescendant,this.finish(e);this.restoreAtMark(n)}return null},t.prototype._parseSimpleSelector=function(){var e=this.create(Xt),n=0;for(e.addChild(this._parseElementName())&&n++;(n===0||!this.hasWhitespace())&&e.addChild(this._parseSimpleSelectorBody());)n++;return n>0?this.finish(e):null},t.prototype._parseSimpleSelectorBody=function(){return this._parsePseudo()||this._parseHash()||this._parseClass()||this._parseAttrib()},t.prototype._parseSelectorIdent=function(){return this._parseIdent()},t.prototype._parseHash=function(){if(!this.peek(p.Hash)&&!this.peekDelim("#"))return null;var e=this.createNode(v.IdentifierSelector);if(this.acceptDelim("#")){if(this.hasWhitespace()||!e.addChild(this._parseSelectorIdent()))return this.finish(e,S.IdentifierExpected)}else this.consumeToken();return this.finish(e)},t.prototype._parseClass=function(){if(!this.peekDelim("."))return null;var e=this.createNode(v.ClassSelector);return this.consumeToken(),this.hasWhitespace()||!e.addChild(this._parseSelectorIdent())?this.finish(e,S.IdentifierExpected):this.finish(e)},t.prototype._parseElementName=function(){var e=this.mark(),n=this.createNode(v.ElementNameSelector);return n.addChild(this._parseNamespacePrefix()),!n.addChild(this._parseSelectorIdent())&&!this.acceptDelim("*")?(this.restoreAtMark(e),null):this.finish(n)},t.prototype._parseNamespacePrefix=function(){var e=this.mark(),n=this.createNode(v.NamespacePrefix);return!n.addChild(this._parseIdent())&&this.acceptDelim("*"),this.acceptDelim("|")?this.finish(n):(this.restoreAtMark(e),null)},t.prototype._parseAttrib=function(){if(!this.peek(p.BracketL))return null;var e=this.create(ku);return this.consumeToken(),e.setNamespacePrefix(this._parseNamespacePrefix()),e.setIdentifier(this._parseIdent())?(e.setOperator(this._parseOperator())&&(e.setValue(this._parseBinaryExpr()),this.acceptIdent("i"),this.acceptIdent("s")),this.accept(p.BracketR)?this.finish(e):this.finish(e,S.RightSquareBracketExpected)):this.finish(e,S.IdentifierExpected)},t.prototype._parsePseudo=function(){var e=this,n=this._tryParsePseudoIdentifier();if(n){if(!this.hasWhitespace()&&this.accept(p.ParenthesisL)){var r=function(){var i=e.create(U);if(!i.addChild(e._parseSelector(!1)))return null;for(;e.accept(p.Comma)&&i.addChild(e._parseSelector(!1)););return e.peek(p.ParenthesisR)?e.finish(i):null};if(n.addChild(this.try(r)||this._parseBinaryExpr()),!this.accept(p.ParenthesisR))return this.finish(n,S.RightParenthesisExpected)}return this.finish(n)}return null},t.prototype._tryParsePseudoIdentifier=function(){if(!this.peek(p.Colon))return null;var e=this.mark(),n=this.createNode(v.PseudoSelector);return this.consumeToken(),this.hasWhitespace()?(this.restoreAtMark(e),null):(this.accept(p.Colon),this.hasWhitespace()||!n.addChild(this._parseIdent())?this.finish(n,S.IdentifierExpected):this.finish(n))},t.prototype._tryParsePrio=function(){var e=this.mark(),n=this._parsePrio();return n||(this.restoreAtMark(e),null)},t.prototype._parsePrio=function(){if(!this.peek(p.Exclamation))return null;var e=this.createNode(v.Prio);return this.accept(p.Exclamation)&&this.acceptIdent("important")?this.finish(e):null},t.prototype._parseExpr=function(e){e===void 0&&(e=!1);var n=this.create(Ao);if(!n.addChild(this._parseBinaryExpr()))return null;for(;;){if(this.peek(p.Comma)){if(e)return this.finish(n);this.consumeToken()}else if(!this.hasWhitespace())break;if(!n.addChild(this._parseBinaryExpr()))break}return this.finish(n)},t.prototype._parseUnicodeRange=function(){if(!this.peekIdent("u"))return null;var e=this.create(nu);return this.acceptUnicodeRange()?this.finish(e):null},t.prototype._parseNamedLine=function(){if(!this.peek(p.BracketL))return null;var e=this.createNode(v.GridLine);for(this.consumeToken();e.addChild(this._parseIdent()););return this.accept(p.BracketR)?this.finish(e):this.finish(e,S.RightSquareBracketExpected)},t.prototype._parseBinaryExpr=function(e,n){var r=this.create(bi);if(!r.setLeft(e||this._parseTerm()))return null;if(!r.setOperator(n||this._parseOperator()))return this.finish(r);if(!r.setRight(this._parseTerm()))return this.finish(r,S.TermExpected);r=this.finish(r);var i=this._parseOperator();return i&&(r=this._parseBinaryExpr(r,i)),this.finish(r)},t.prototype._parseTerm=function(){var e=this.create(Cu);return e.setOperator(this._parseUnaryOperator()),e.setExpression(this._parseTermExpression())?this.finish(e):null},t.prototype._parseTermExpression=function(){return this._parseURILiteral()||this._parseUnicodeRange()||this._parseFunction()||this._parseIdent()||this._parseStringLiteral()||this._parseNumeric()||this._parseHexColor()||this._parseOperation()||this._parseNamedLine()},t.prototype._parseOperation=function(){if(!this.peek(p.ParenthesisL))return null;var e=this.create(U);return this.consumeToken(),e.addChild(this._parseExpr()),this.accept(p.ParenthesisR)?this.finish(e):this.finish(e,S.RightParenthesisExpected)},t.prototype._parseNumeric=function(){if(this.peek(p.Num)||this.peek(p.Percentage)||this.peek(p.Resolution)||this.peek(p.Length)||this.peek(p.EMS)||this.peek(p.EXS)||this.peek(p.Angle)||this.peek(p.Time)||this.peek(p.Dimension)||this.peek(p.Freq)){var e=this.create(yi);return this.consumeToken(),this.finish(e)}return null},t.prototype._parseStringLiteral=function(){if(!this.peek(p.String)&&!this.peek(p.BadString))return null;var e=this.createNode(v.StringLiteral);return this.consumeToken(),this.finish(e)},t.prototype._parseURILiteral=function(){if(!this.peekRegExp(p.Ident,/^url(-prefix)?$/i))return null;var e=this.mark(),n=this.createNode(v.URILiteral);return this.accept(p.Ident),this.hasWhitespace()||!this.peek(p.ParenthesisL)?(this.restoreAtMark(e),null):(this.scanner.inURL=!0,this.consumeToken(),n.addChild(this._parseURLArgument()),this.scanner.inURL=!1,this.accept(p.ParenthesisR)?this.finish(n):this.finish(n,S.RightParenthesisExpected))},t.prototype._parseURLArgument=function(){var e=this.create(U);return!this.accept(p.String)&&!this.accept(p.BadString)&&!this.acceptUnquotedString()?null:this.finish(e)},t.prototype._parseIdent=function(e){if(!this.peek(p.Ident))return null;var n=this.create(We);return e&&(n.referenceTypes=e),n.isCustomProperty=this.peekRegExp(p.Ident,/^--/),this.consumeToken(),this.finish(n)},t.prototype._parseFunction=function(){var e=this.mark(),n=this.create(wn);if(!n.setIdentifier(this._parseFunctionIdentifier()))return null;if(this.hasWhitespace()||!this.accept(p.ParenthesisL))return this.restoreAtMark(e),null;if(n.getArguments().addChild(this._parseFunctionArgument()))for(;this.accept(p.Comma)&&!this.peek(p.ParenthesisR);)n.getArguments().addChild(this._parseFunctionArgument())||this.markError(n,S.ExpressionExpected);return this.accept(p.ParenthesisR)?this.finish(n):this.finish(n,S.RightParenthesisExpected)},t.prototype._parseFunctionIdentifier=function(){if(!this.peek(p.Ident))return null;var e=this.create(We);if(e.referenceTypes=[Z.Function],this.acceptIdent("progid")){if(this.accept(p.Colon))for(;this.accept(p.Ident)&&this.acceptDelim("."););return this.finish(e)}return this.consumeToken(),this.finish(e)},t.prototype._parseFunctionArgument=function(){var e=this.create(Yt);return e.setValue(this._parseExpr(!0))?this.finish(e):null},t.prototype._parseHexColor=function(){if(this.peekRegExp(p.Hash,/^#([A-Fa-f0-9]{3}|[A-Fa-f0-9]{4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/g)){var e=this.create(vi);return this.consumeToken(),this.finish(e)}else return null},t}();function Zu(t,e){var n=0,r=t.length;if(r===0)return 0;for(;n<r;){var i=Math.floor((n+r)/2);e(t[i])?r=i:n=i+1}return n}function Ml(t,e){return t.indexOf(e)!==-1}function gr(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=[],r=0,i=t;r<i.length;r++)for(var s=i[r],a=0,o=s;a<o.length;a++){var l=o[a];Ml(n,l)||n.push(l)}return n}var ep=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),zl=function(){function t(e,n){this.offset=e,this.length=n,this.symbols=[],this.parent=null,this.children=[]}return t.prototype.addChild=function(e){this.children.push(e),e.setParent(this)},t.prototype.setParent=function(e){this.parent=e},t.prototype.findScope=function(e,n){return n===void 0&&(n=0),this.offset<=e&&this.offset+this.length>e+n||this.offset===e&&this.length===n?this.findInScope(e,n):null},t.prototype.findInScope=function(e,n){n===void 0&&(n=0);var r=e+n,i=Zu(this.children,function(a){return a.offset>r});if(i===0)return this;var s=this.children[i-1];return s.offset<=e&&s.offset+s.length>=e+n?s.findInScope(e,n):this},t.prototype.addSymbol=function(e){this.symbols.push(e)},t.prototype.getSymbol=function(e,n){for(var r=0;r<this.symbols.length;r++){var i=this.symbols[r];if(i.name===e&&i.type===n)return i}return null},t.prototype.getSymbols=function(){return this.symbols},t}(),tp=function(t){ep(e,t);function e(){return t.call(this,0,Number.MAX_VALUE)||this}return e}(zl),br=function(){function t(e,n,r,i){this.name=e,this.value=n,this.node=r,this.type=i}return t}(),np=function(){function t(e){this.scope=e}return t.prototype.addSymbol=function(e,n,r,i){if(e.offset!==-1){var s=this.scope.findScope(e.offset,e.length);s&&s.addSymbol(new br(n,r,e,i))}},t.prototype.addScope=function(e){if(e.offset!==-1){var n=this.scope.findScope(e.offset,e.length);if(n&&(n.offset!==e.offset||n.length!==e.length)){var r=new zl(e.offset,e.length);return n.addChild(r),r}return n}return null},t.prototype.addSymbolToChildScope=function(e,n,r,i,s){if(e&&e.offset!==-1){var a=this.addScope(e);a&&a.addSymbol(new br(r,i,n,s))}},t.prototype.visitNode=function(e){switch(e.type){case v.Keyframe:return this.addSymbol(e,e.getName(),void 0,Z.Keyframe),!0;case v.CustomPropertyDeclaration:return this.visitCustomPropertyDeclarationNode(e);case v.VariableDeclaration:return this.visitVariableDeclarationNode(e);case v.Ruleset:return this.visitRuleSet(e);case v.MixinDeclaration:return this.addSymbol(e,e.getName(),void 0,Z.Mixin),!0;case v.FunctionDeclaration:return this.addSymbol(e,e.getName(),void 0,Z.Function),!0;case v.FunctionParameter:return this.visitFunctionParameterNode(e);case v.Declarations:return this.addScope(e),!0;case v.For:var n=e,r=n.getDeclarations();return r&&n.variable&&this.addSymbolToChildScope(r,n.variable,n.variable.getName(),void 0,Z.Variable),!0;case v.Each:{var i=e,s=i.getDeclarations();if(s)for(var a=i.getVariables().getChildren(),o=0,l=a;o<l.length;o++){var c=l[o];this.addSymbolToChildScope(s,c,c.getName(),void 0,Z.Variable)}return!0}}return!0},t.prototype.visitRuleSet=function(e){var n=this.scope.findScope(e.offset,e.length);if(n)for(var r=0,i=e.getSelectors().getChildren();r<i.length;r++){var s=i[r];s instanceof yn&&s.getChildren().length===1&&n.addSymbol(new br(s.getChild(0).getText(),void 0,s,Z.Rule))}return!0},t.prototype.visitVariableDeclarationNode=function(e){var n=e.getValue()?e.getValue().getText():void 0;return this.addSymbol(e,e.getName(),n,Z.Variable),!0},t.prototype.visitFunctionParameterNode=function(e){var n=e.getParent().getDeclarations();if(n){var r=e.getDefaultValue(),i=r?r.getText():void 0;this.addSymbolToChildScope(n,e,e.getName(),i,Z.Variable)}return!0},t.prototype.visitCustomPropertyDeclarationNode=function(e){var n=e.getValue()?e.getValue().getText():"";return this.addCSSVariable(e.getProperty(),e.getProperty().getName(),n,Z.Variable),!0},t.prototype.addCSSVariable=function(e,n,r,i){e.offset!==-1&&this.scope.addSymbol(new br(n,r,e,i))},t}(),Mi=function(){function t(e){this.global=new tp,e.acceptVisitor(new np(this.global))}return t.prototype.findSymbolsAtOffset=function(e,n){for(var r=this.global.findScope(e,0),i=[],s={};r;){for(var a=r.getSymbols(),o=0;o<a.length;o++){var l=a[o];l.type===n&&!s[l.name]&&(i.push(l),s[l.name]=!0)}r=r.parent}return i},t.prototype.internalFindSymbol=function(e,n){var r=e;if(e.parent instanceof tr&&e.parent.getParent()instanceof he&&(r=e.parent.getParent().getDeclarations()),e.parent instanceof Yt&&e.parent.getParent()instanceof wn){var i=e.parent.getParent().getIdentifier();if(i){var s=this.internalFindSymbol(i,[Z.Function]);s&&(r=s.node.getDeclarations())}}if(!r)return null;for(var a=e.getText(),o=this.global.findScope(r.offset,r.length);o;){for(var l=0;l<n.length;l++){var c=n[l],h=o.getSymbol(a,c);if(h)return h}o=o.parent}return null},t.prototype.evaluateReferenceTypes=function(e){if(e instanceof We){var n=e.referenceTypes;if(n)return n;if(e.isCustomProperty)return[Z.Variable];var r=tu(e);if(r){var i=r.getNonPrefixedPropertyName();if((i==="animation"||i==="animation-name")&&r.getValue()&&r.getValue().offset===e.offset)return[Z.Keyframe]}}else if(e instanceof xi)return[Z.Variable];var s=e.findAParent(v.Selector,v.ExtendsReference);return s?[Z.Rule]:null},t.prototype.findSymbolFromNode=function(e){if(!e)return null;for(;e.type===v.Interpolation;)e=e.getParent();var n=this.evaluateReferenceTypes(e);return n?this.internalFindSymbol(e,n):null},t.prototype.matchesSymbol=function(e,n){if(!e)return!1;for(;e.type===v.Interpolation;)e=e.getParent();if(!e.matches(n.name))return!1;var r=this.evaluateReferenceTypes(e);if(!r||r.indexOf(n.type)===-1)return!1;var i=this.internalFindSymbol(e,r);return i===n},t.prototype.findSymbol=function(e,n,r){for(var i=this.global.findScope(r);i;){var s=i.getSymbol(e,n);if(s)return s;i=i.parent}return null},t}(),Ll;Ll=(()=>{var t={470:r=>{function i(o){if(typeof o!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(o))}function s(o,l){for(var c,h="",u=0,f=-1,m=0,g=0;g<=o.length;++g){if(g<o.length)c=o.charCodeAt(g);else{if(c===47)break;c=47}if(c===47){if(!(f===g-1||m===1))if(f!==g-1&&m===2){if(h.length<2||u!==2||h.charCodeAt(h.length-1)!==46||h.charCodeAt(h.length-2)!==46){if(h.length>2){var b=h.lastIndexOf("/");if(b!==h.length-1){b===-1?(h="",u=0):u=(h=h.slice(0,b)).length-1-h.lastIndexOf("/"),f=g,m=0;continue}}else if(h.length===2||h.length===1){h="",u=0,f=g,m=0;continue}}l&&(h.length>0?h+="/..":h="..",u=2)}else h.length>0?h+="/"+o.slice(f+1,g):h=o.slice(f+1,g),u=g-f-1;f=g,m=0}else c===46&&m!==-1?++m:m=-1}return h}var a={resolve:function(){for(var o,l="",c=!1,h=arguments.length-1;h>=-1&&!c;h--){var u;h>=0?u=arguments[h]:(o===void 0&&(o=process.cwd()),u=o),i(u),u.length!==0&&(l=u+"/"+l,c=u.charCodeAt(0)===47)}return l=s(l,!c),c?l.length>0?"/"+l:"/":l.length>0?l:"."},normalize:function(o){if(i(o),o.length===0)return".";var l=o.charCodeAt(0)===47,c=o.charCodeAt(o.length-1)===47;return(o=s(o,!l)).length!==0||l||(o="."),o.length>0&&c&&(o+="/"),l?"/"+o:o},isAbsolute:function(o){return i(o),o.length>0&&o.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var o,l=0;l<arguments.length;++l){var c=arguments[l];i(c),c.length>0&&(o===void 0?o=c:o+="/"+c)}return o===void 0?".":a.normalize(o)},relative:function(o,l){if(i(o),i(l),o===l||(o=a.resolve(o))===(l=a.resolve(l)))return"";for(var c=1;c<o.length&&o.charCodeAt(c)===47;++c);for(var h=o.length,u=h-c,f=1;f<l.length&&l.charCodeAt(f)===47;++f);for(var m=l.length-f,g=u<m?u:m,b=-1,y=0;y<=g;++y){if(y===g){if(m>g){if(l.charCodeAt(f+y)===47)return l.slice(f+y+1);if(y===0)return l.slice(f+y)}else u>g&&(o.charCodeAt(c+y)===47?b=y:y===0&&(b=0));break}var C=o.charCodeAt(c+y);if(C!==l.charCodeAt(f+y))break;C===47&&(b=y)}var k="";for(y=c+b+1;y<=h;++y)y!==h&&o.charCodeAt(y)!==47||(k.length===0?k+="..":k+="/..");return k.length>0?k+l.slice(f+b):(f+=b,l.charCodeAt(f)===47&&++f,l.slice(f))},_makeLong:function(o){return o},dirname:function(o){if(i(o),o.length===0)return".";for(var l=o.charCodeAt(0),c=l===47,h=-1,u=!0,f=o.length-1;f>=1;--f)if((l=o.charCodeAt(f))===47){if(!u){h=f;break}}else u=!1;return h===-1?c?"/":".":c&&h===1?"//":o.slice(0,h)},basename:function(o,l){if(l!==void 0&&typeof l!="string")throw new TypeError('"ext" argument must be a string');i(o);var c,h=0,u=-1,f=!0;if(l!==void 0&&l.length>0&&l.length<=o.length){if(l.length===o.length&&l===o)return"";var m=l.length-1,g=-1;for(c=o.length-1;c>=0;--c){var b=o.charCodeAt(c);if(b===47){if(!f){h=c+1;break}}else g===-1&&(f=!1,g=c+1),m>=0&&(b===l.charCodeAt(m)?--m==-1&&(u=c):(m=-1,u=g))}return h===u?u=g:u===-1&&(u=o.length),o.slice(h,u)}for(c=o.length-1;c>=0;--c)if(o.charCodeAt(c)===47){if(!f){h=c+1;break}}else u===-1&&(f=!1,u=c+1);return u===-1?"":o.slice(h,u)},extname:function(o){i(o);for(var l=-1,c=0,h=-1,u=!0,f=0,m=o.length-1;m>=0;--m){var g=o.charCodeAt(m);if(g!==47)h===-1&&(u=!1,h=m+1),g===46?l===-1?l=m:f!==1&&(f=1):l!==-1&&(f=-1);else if(!u){c=m+1;break}}return l===-1||h===-1||f===0||f===1&&l===h-1&&l===c+1?"":o.slice(l,h)},format:function(o){if(o===null||typeof o!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof o);return function(l,c){var h=c.dir||c.root,u=c.base||(c.name||"")+(c.ext||"");return h?h===c.root?h+u:h+"/"+u:u}(0,o)},parse:function(o){i(o);var l={root:"",dir:"",base:"",ext:"",name:""};if(o.length===0)return l;var c,h=o.charCodeAt(0),u=h===47;u?(l.root="/",c=1):c=0;for(var f=-1,m=0,g=-1,b=!0,y=o.length-1,C=0;y>=c;--y)if((h=o.charCodeAt(y))!==47)g===-1&&(b=!1,g=y+1),h===46?f===-1?f=y:C!==1&&(C=1):f!==-1&&(C=-1);else if(!b){m=y+1;break}return f===-1||g===-1||C===0||C===1&&f===g-1&&f===m+1?g!==-1&&(l.base=l.name=m===0&&u?o.slice(1,g):o.slice(m,g)):(m===0&&u?(l.name=o.slice(1,f),l.base=o.slice(1,g)):(l.name=o.slice(m,f),l.base=o.slice(m,g)),l.ext=o.slice(f,g)),m>0?l.dir=o.slice(0,m-1):u&&(l.dir="/"),l},sep:"/",delimiter:":",win32:null,posix:null};a.posix=a,r.exports=a},447:(r,i,s)=>{var a;if(s.r(i),s.d(i,{URI:()=>k,Utils:()=>I}),typeof process=="object")a=process.platform==="win32";else if(typeof navigator=="object"){var o=navigator.userAgent;a=o.indexOf("Windows")>=0}var l,c,h=(l=function(D,x){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,L){A.__proto__=L}||function(A,L){for(var X in L)Object.prototype.hasOwnProperty.call(L,X)&&(A[X]=L[X])})(D,x)},function(D,x){if(typeof x!="function"&&x!==null)throw new TypeError("Class extends value "+String(x)+" is not a constructor or null");function A(){this.constructor=D}l(D,x),D.prototype=x===null?Object.create(x):(A.prototype=x.prototype,new A)}),u=/^\w[\w\d+.-]*$/,f=/^\//,m=/^\/\//;function g(D,x){if(!D.scheme&&x)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'.concat(D.authority,'", path: "').concat(D.path,'", query: "').concat(D.query,'", fragment: "').concat(D.fragment,'"}'));if(D.scheme&&!u.test(D.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(D.path){if(D.authority){if(!f.test(D.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(m.test(D.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}var b="",y="/",C=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,k=function(){function D(x,A,L,X,G,ne){ne===void 0&&(ne=!1),typeof x=="object"?(this.scheme=x.scheme||b,this.authority=x.authority||b,this.path=x.path||b,this.query=x.query||b,this.fragment=x.fragment||b):(this.scheme=function(De,Se){return De||Se?De:"file"}(x,ne),this.authority=A||b,this.path=function(De,Se){switch(De){case"https":case"http":case"file":Se?Se[0]!==y&&(Se=y+Se):Se=y}return Se}(this.scheme,L||b),this.query=X||b,this.fragment=G||b,g(this,ne))}return D.isUri=function(x){return x instanceof D||!!x&&typeof x.authority=="string"&&typeof x.fragment=="string"&&typeof x.path=="string"&&typeof x.query=="string"&&typeof x.scheme=="string"&&typeof x.fsPath=="string"&&typeof x.with=="function"&&typeof x.toString=="function"},Object.defineProperty(D.prototype,"fsPath",{get:function(){return T(this)},enumerable:!1,configurable:!0}),D.prototype.with=function(x){if(!x)return this;var A=x.scheme,L=x.authority,X=x.path,G=x.query,ne=x.fragment;return A===void 0?A=this.scheme:A===null&&(A=b),L===void 0?L=this.authority:L===null&&(L=b),X===void 0?X=this.path:X===null&&(X=b),G===void 0?G=this.query:G===null&&(G=b),ne===void 0?ne=this.fragment:ne===null&&(ne=b),A===this.scheme&&L===this.authority&&X===this.path&&G===this.query&&ne===this.fragment?this:new F(A,L,X,G,ne)},D.parse=function(x,A){A===void 0&&(A=!1);var L=C.exec(x);return L?new F(L[2]||b,R(L[4]||b),R(L[5]||b),R(L[7]||b),R(L[9]||b),A):new F(b,b,b,b,b)},D.file=function(x){var A=b;if(a&&(x=x.replace(/\\/g,y)),x[0]===y&&x[1]===y){var L=x.indexOf(y,2);L===-1?(A=x.substring(2),x=y):(A=x.substring(2,L),x=x.substring(L)||y)}return new F("file",A,x,b,b)},D.from=function(x){var A=new F(x.scheme,x.authority,x.path,x.query,x.fragment);return g(A,!0),A},D.prototype.toString=function(x){return x===void 0&&(x=!1),J(this,x)},D.prototype.toJSON=function(){return this},D.revive=function(x){if(x){if(x instanceof D)return x;var A=new F(x);return A._formatted=x.external,A._fsPath=x._sep===w?x.fsPath:null,A}return x},D}(),w=a?1:void 0,F=function(D){function x(){var A=D!==null&&D.apply(this,arguments)||this;return A._formatted=null,A._fsPath=null,A}return h(x,D),Object.defineProperty(x.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=T(this)),this._fsPath},enumerable:!1,configurable:!0}),x.prototype.toString=function(A){return A===void 0&&(A=!1),A?J(this,!0):(this._formatted||(this._formatted=J(this,!1)),this._formatted)},x.prototype.toJSON=function(){var A={$mid:1};return this._fsPath&&(A.fsPath=this._fsPath,A._sep=w),this._formatted&&(A.external=this._formatted),this.path&&(A.path=this.path),this.scheme&&(A.scheme=this.scheme),this.authority&&(A.authority=this.authority),this.query&&(A.query=this.query),this.fragment&&(A.fragment=this.fragment),A},x}(k),_=((c={})[58]="%3A",c[47]="%2F",c[63]="%3F",c[35]="%23",c[91]="%5B",c[93]="%5D",c[64]="%40",c[33]="%21",c[36]="%24",c[38]="%26",c[39]="%27",c[40]="%28",c[41]="%29",c[42]="%2A",c[43]="%2B",c[44]="%2C",c[59]="%3B",c[61]="%3D",c[32]="%20",c);function P(D,x){for(var A=void 0,L=-1,X=0;X<D.length;X++){var G=D.charCodeAt(X);if(G>=97&&G<=122||G>=65&&G<=90||G>=48&&G<=57||G===45||G===46||G===95||G===126||x&&G===47)L!==-1&&(A+=encodeURIComponent(D.substring(L,X)),L=-1),A!==void 0&&(A+=D.charAt(X));else{A===void 0&&(A=D.substr(0,X));var ne=_[G];ne!==void 0?(L!==-1&&(A+=encodeURIComponent(D.substring(L,X)),L=-1),A+=ne):L===-1&&(L=X)}}return L!==-1&&(A+=encodeURIComponent(D.substring(L))),A!==void 0?A:D}function W(D){for(var x=void 0,A=0;A<D.length;A++){var L=D.charCodeAt(A);L===35||L===63?(x===void 0&&(x=D.substr(0,A)),x+=_[L]):x!==void 0&&(x+=D[A])}return x!==void 0?x:D}function T(D,x){var A;return A=D.authority&&D.path.length>1&&D.scheme==="file"?"//".concat(D.authority).concat(D.path):D.path.charCodeAt(0)===47&&(D.path.charCodeAt(1)>=65&&D.path.charCodeAt(1)<=90||D.path.charCodeAt(1)>=97&&D.path.charCodeAt(1)<=122)&&D.path.charCodeAt(2)===58?D.path[1].toLowerCase()+D.path.substr(2):D.path,a&&(A=A.replace(/\//g,"\\")),A}function J(D,x){var A=x?W:P,L="",X=D.scheme,G=D.authority,ne=D.path,De=D.query,Se=D.fragment;if(X&&(L+=X,L+=":"),(G||X==="file")&&(L+=y,L+=y),G){var Ae=G.indexOf("@");if(Ae!==-1){var Dt=G.substr(0,Ae);G=G.substr(Ae+1),(Ae=Dt.indexOf(":"))===-1?L+=A(Dt,!1):(L+=A(Dt.substr(0,Ae),!1),L+=":",L+=A(Dt.substr(Ae+1),!1)),L+="@"}(Ae=(G=G.toLowerCase()).indexOf(":"))===-1?L+=A(G,!1):(L+=A(G.substr(0,Ae),!1),L+=G.substr(Ae))}if(ne){if(ne.length>=3&&ne.charCodeAt(0)===47&&ne.charCodeAt(2)===58)(ct=ne.charCodeAt(1))>=65&&ct<=90&&(ne="/".concat(String.fromCharCode(ct+32),":").concat(ne.substr(3)));else if(ne.length>=2&&ne.charCodeAt(1)===58){var ct;(ct=ne.charCodeAt(0))>=65&&ct<=90&&(ne="".concat(String.fromCharCode(ct+32),":").concat(ne.substr(2)))}L+=A(ne,!0)}return De&&(L+="?",L+=A(De,!1)),Se&&(L+="#",L+=x?Se:P(Se,!1)),L}function re(D){try{return decodeURIComponent(D)}catch{return D.length>3?D.substr(0,3)+re(D.substr(3)):D}}var N=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function R(D){return D.match(N)?D.replace(N,function(x){return re(x)}):D}var I,z=s(470),V=function(D,x,A){if(arguments.length===2)for(var L,X=0,G=x.length;X<G;X++)!L&&X in x||(L||(L=Array.prototype.slice.call(x,0,X)),L[X]=x[X]);return D.concat(L||Array.prototype.slice.call(x))},j=z.posix||z;(function(D){D.joinPath=function(x){for(var A=[],L=1;L<arguments.length;L++)A[L-1]=arguments[L];return x.with({path:j.join.apply(j,V([x.path],A,!1))})},D.resolvePath=function(x){for(var A=[],L=1;L<arguments.length;L++)A[L-1]=arguments[L];var X=x.path||"/";return x.with({path:j.resolve.apply(j,V([X],A,!1))})},D.dirname=function(x){var A=j.dirname(x.path);return A.length===1&&A.charCodeAt(0)===46?x:x.with({path:A})},D.basename=function(x){return j.basename(x.path)},D.extname=function(x){return j.extname(x.path)}})(I||(I={}))}},e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}return n.d=(r,i)=>{for(var s in i)n.o(i,s)&&!n.o(r,s)&&Object.defineProperty(r,s,{enumerable:!0,get:i[s]})},n.o=(r,i)=>Object.prototype.hasOwnProperty.call(r,i),n.r=r=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n(447)})();var{URI:zi,Utils:Li}=Ll,rp=function(t,e,n){if(arguments.length===2)for(var r=0,i=e.length,s;r<i;r++)(s||!(r in e))&&(s||(s=Array.prototype.slice.call(e,0,r)),s[r]=e[r]);return t.concat(s||Array.prototype.slice.call(e))};function Pi(t){return Li.dirname(zi.parse(t)).toString()}function Ii(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return Li.joinPath.apply(Li,rp([zi.parse(t)],e,!1)).toString()}var Pl=function(t,e,n,r){function i(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function o(h){try{c(r.next(h))}catch(u){a(u)}}function l(h){try{c(r.throw(h))}catch(u){a(u)}}function c(h){h.done?s(h.value):i(h.value).then(o,l)}c((r=r.apply(t,[])).next())})},Il=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,i,s,a;return a={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(c){return function(h){return l([c,h])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(s=c[0]&2?i.return:c[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,c[1])).done)return s;switch(i=0,s&&(c=[c[0]&2,s.value]),c[0]){case 0:case 1:s=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]<s[3])){n.label=c[1];break}if(c[0]===6&&n.label<s[1]){n.label=s[1],s=c;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(c);break}s[2]&&n.ops.pop(),n.trys.pop();continue}c=e.call(t,n)}catch(h){c=[6,h],i=0}finally{r=s=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},ip=function(){function t(e){this.readDirectory=e,this.literalCompletions=[],this.importCompletions=[]}return t.prototype.onCssURILiteralValue=function(e){this.literalCompletions.push(e)},t.prototype.onCssImportPath=function(e){this.importCompletions.push(e)},t.prototype.computeCompletions=function(e,n){return Pl(this,void 0,void 0,function(){var r,i,s,a,o,b,l,c,h,w,u,f,m,g,b,y,C,k,w;return Il(this,function(F){switch(F.label){case 0:r={items:[],isIncomplete:!1},i=0,s=this.literalCompletions,F.label=1;case 1:return i<s.length?(a=s[i],o=a.uriValue,b=Ti(o),b==="."||b===".."?(r.isIncomplete=!0,[3,4]):[3,2]):[3,5];case 2:return[4,this.providePathSuggestions(o,a.position,a.range,e,n)];case 3:for(l=F.sent(),c=0,h=l;c<h.length;c++)w=h[c],r.items.push(w);F.label=4;case 4:return i++,[3,1];case 5:u=0,f=this.importCompletions,F.label=6;case 6:return u<f.length?(m=f[u],g=m.pathValue,b=Ti(g),b==="."||b===".."?(r.isIncomplete=!0,[3,9]):[3,7]):[3,10];case 7:return[4,this.providePathSuggestions(g,m.position,m.range,e,n)];case 8:for(y=F.sent(),e.languageId==="scss"&&y.forEach(function(_){ge(_.label,"_")&&wo(_.label,".scss")&&(_.textEdit?_.textEdit.newText=_.label.slice(1,-5):_.label=_.label.slice(1,-5))}),C=0,k=y;C<k.length;C++)w=k[C],r.items.push(w);F.label=9;case 9:return u++,[3,6];case 10:return[2,r]}})})},t.prototype.providePathSuggestions=function(e,n,r,i,s){return Pl(this,void 0,void 0,function(){var a,o,l,c,h,u,f,m,g,b,y,C,k,w,F;return Il(this,function(_){switch(_.label){case 0:if(a=Ti(e),o=ge(e,"'")||ge(e,'"'),l=o?a.slice(0,n.character-(r.start.character+1)):a.slice(0,n.character-r.start.character),c=i.uri,h=o?lp(r,1,-1):r,u=ap(l,a,h),f=l.substring(0,l.lastIndexOf("/")+1),m=s.resolveReference(f||".",c),!m)return[3,4];_.label=1;case 1:return _.trys.push([1,3,,4]),g=[],[4,this.readDirectory(m)];case 2:for(b=_.sent(),y=0,C=b;y<C.length;y++)k=C[y],w=k[0],F=k[1],w.charCodeAt(0)!==sp&&(F===Dn.Directory||Ii(m,w)!==c)&&g.push(op(w,F===Dn.Directory,u));return[2,g];case 3:return _.sent(),[3,4];case 4:return[2,[]]}})})},t}(),sp=46;function Ti(t){return ge(t,"'")||ge(t,'"')?t.slice(1,-1):t}function ap(t,e,n){var r,i=t.lastIndexOf("/");if(i===-1)r=n;else{var s=e.slice(i+1),a=yr(n.end,-s.length),o=s.indexOf(" "),l=void 0;o!==-1?l=yr(a,o):l=n.end,r=ie.create(a,l)}return r}function op(t,e,n){return e?(t=t+"/",{label:vr(t),kind:$.Folder,textEdit:H.replace(n,vr(t)),command:{title:"Suggest",command:"editor.action.triggerSuggest"}}):{label:vr(t),kind:$.File,textEdit:H.replace(n,vr(t))}}function vr(t){return t.replace(/(\s|\(|\)|,|"|')/g,"\\$1")}function yr(t,e){return Fe.create(t.line,t.character+e)}function lp(t,e,n){var r=yr(t.start,e),i=yr(t.end,n);return ie.create(r,i)}var cp=function(t,e,n,r){function i(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function o(h){try{c(r.next(h))}catch(u){a(u)}}function l(h){try{c(r.throw(h))}catch(u){a(u)}}function c(h){h.done?s(h.value):i(h.value).then(o,l)}c((r=r.apply(t,[])).next())})},hp=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,i,s,a;return a={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(c){return function(h){return l([c,h])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(s=c[0]&2?i.return:c[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,c[1])).done)return s;switch(i=0,s&&(c=[c[0]&2,s.value]),c[0]){case 0:case 1:s=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]<s[3])){n.label=c[1];break}if(c[0]===6&&n.label<s[1]){n.label=s[1],s=c;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(c);break}s[2]&&n.ops.pop(),n.trys.pop();continue}c=e.call(t,n)}catch(h){c=[6,h],i=0}finally{r=s=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},dp=Ge(),it=Ie.Snippet,Tl={title:"Suggest",command:"editor.action.triggerSuggest"},et;(function(t){t.Enums=" ",t.Normal="d",t.VendorPrefixed="x",t.Term="y",t.Variable="z"})(et||(et={}));var Wi=function(){function t(e,n,r){e===void 0&&(e=null),this.variablePrefix=e,this.lsOptions=n,this.cssDataManager=r,this.completionParticipants=[]}return t.prototype.configure=function(e){this.defaultSettings=e},t.prototype.getSymbolContext=function(){return this.symbolContext||(this.symbolContext=new Mi(this.styleSheet)),this.symbolContext},t.prototype.setCompletionParticipants=function(e){this.completionParticipants=e||[]},t.prototype.doComplete2=function(e,n,r,i,s){return s===void 0&&(s=this.defaultSettings),cp(this,void 0,void 0,function(){var a,o,l,c;return hp(this,function(h){switch(h.label){case 0:if(!this.lsOptions.fileSystemProvider||!this.lsOptions.fileSystemProvider.readDirectory)return[2,this.doComplete(e,n,r,s)];a=new ip(this.lsOptions.fileSystemProvider.readDirectory),o=this.completionParticipants,this.completionParticipants=[a].concat(o),l=this.doComplete(e,n,r,s),h.label=1;case 1:return h.trys.push([1,,3,4]),[4,a.computeCompletions(e,i)];case 2:return c=h.sent(),[2,{isIncomplete:l.isIncomplete||c.isIncomplete,items:c.items.concat(l.items)}];case 3:return this.completionParticipants=o,[7];case 4:return[2]}})})},t.prototype.doComplete=function(e,n,r,i){this.offset=e.offsetAt(n),this.position=n,this.currentWord=mp(e,this.offset),this.defaultReplaceRange=ie.create(Fe.create(this.position.line,this.position.character-this.currentWord.length),this.position),this.textDocument=e,this.styleSheet=r,this.documentSettings=i;try{var s={isIncomplete:!1,items:[]};this.nodePath=di(this.styleSheet,this.offset);for(var a=this.nodePath.length-1;a>=0;a--){var o=this.nodePath[a];if(o instanceof fi)this.getCompletionsForDeclarationProperty(o.getParent(),s);else if(o instanceof Ao)o.parent instanceof wi?this.getVariableProposals(null,s):this.getCompletionsForExpression(o,s);else if(o instanceof Xt){var l=o.findAParent(v.ExtendsReference,v.Ruleset);if(l)if(l.type===v.ExtendsReference)this.getCompletionsForExtendsReference(l,o,s);else{var c=l;this.getCompletionsForSelector(c,c&&c.isNested(),s)}}else if(o instanceof Yt)this.getCompletionsForFunctionArgument(o,o.getParent(),s);else if(o instanceof ui)this.getCompletionsForDeclarations(o,s);else if(o instanceof rr)this.getCompletionsForVariableDeclaration(o,s);else if(o instanceof Jt)this.getCompletionsForRuleSet(o,s);else if(o instanceof wi)this.getCompletionsForInterpolation(o,s);else if(o instanceof nr)this.getCompletionsForFunctionDeclaration(o,s);else if(o instanceof ir)this.getCompletionsForMixinReference(o,s);else if(o instanceof wn)this.getCompletionsForFunctionArgument(null,o,s);else if(o instanceof gi)this.getCompletionsForSupports(o,s);else if(o instanceof xn)this.getCompletionsForSupportsCondition(o,s);else if(o instanceof Sn)this.getCompletionsForExtendsReference(o,null,s);else if(o.type===v.URILiteral)this.getCompletionForUriLiteralValue(o,s);else if(o.parent===null)this.getCompletionForTopLevel(s);else if(o.type===v.StringLiteral&&this.isImportPathParent(o.parent.type))this.getCompletionForImportPath(o,s);else continue;if(s.items.length>0||this.offset>o.offset)return this.finalize(s)}return this.getCompletionsForStylesheet(s),s.items.length===0&&this.variablePrefix&&this.currentWord.indexOf(this.variablePrefix)===0&&this.getVariableProposals(null,s),this.finalize(s)}finally{this.position=null,this.currentWord=null,this.textDocument=null,this.styleSheet=null,this.symbolContext=null,this.defaultReplaceRange=null,this.nodePath=null}},t.prototype.isImportPathParent=function(e){return e===v.Import},t.prototype.finalize=function(e){return e},t.prototype.findInNodePath=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];for(var r=this.nodePath.length-1;r>=0;r--){var i=this.nodePath[r];if(e.indexOf(i.type)!==-1)return i}return null},t.prototype.getCompletionsForDeclarationProperty=function(e,n){return this.getPropertyProposals(e,n)},t.prototype.getPropertyProposals=function(e,n){var r=this,i=this.isTriggerPropertyValueCompletionEnabled,s=this.isCompletePropertyWithSemicolonEnabled,a=this.cssDataManager.getProperties();return a.forEach(function(o){var l,c,h=!1;e?(l=r.getCompletionRange(e.getProperty()),c=o.name,Ue(e.colonPosition)||(c+=": ",h=!0)):(l=r.getCompletionRange(null),c=o.name+": ",h=!0),!e&&s&&(c+="$0;"),e&&!e.semicolonPosition&&s&&r.offset>=r.textDocument.offsetAt(l.end)&&(c+="$0;");var u={label:o.name,documentation:yt(o,r.doesSupportMarkdown()),tags:Nn(o)?[_t.Deprecated]:[],textEdit:H.replace(l,c),insertTextFormat:Ie.Snippet,kind:$.Property};o.restrictions||(h=!1),i&&h&&(u.command=Tl);var f=typeof o.relevance=="number"?Math.min(Math.max(o.relevance,0),99):50,m=(255-f).toString(16),g=ge(o.name,"-")?et.VendorPrefixed:et.Normal;u.sortText=g+"_"+m,n.items.push(u)}),this.completionParticipants.forEach(function(o){o.onCssProperty&&o.onCssProperty({propertyName:r.currentWord,range:r.defaultReplaceRange})}),n},Object.defineProperty(t.prototype,"isTriggerPropertyValueCompletionEnabled",{get:function(){var e,n;return(n=(e=this.documentSettings)===null||e===void 0?void 0:e.triggerPropertyValueCompletion)!==null&&n!==void 0?n:!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCompletePropertyWithSemicolonEnabled",{get:function(){var e,n;return(n=(e=this.documentSettings)===null||e===void 0?void 0:e.completePropertyWithSemicolon)!==null&&n!==void 0?n:!0},enumerable:!1,configurable:!0}),t.prototype.getCompletionsForDeclarationValue=function(e,n){for(var r=this,i=e.getFullPropertyName(),s=this.cssDataManager.getProperty(i),a=e.getValue()||null;a&&a.hasChildren();)a=a.findChildAtOffset(this.offset,!1);if(this.completionParticipants.forEach(function(g){g.onCssPropertyValue&&g.onCssPropertyValue({propertyName:i,propertyValue:r.currentWord,range:r.getCompletionRange(a)})}),s){if(s.restrictions)for(var o=0,l=s.restrictions;o<l.length;o++){var c=l[o];switch(c){case"color":this.getColorProposals(s,a,n);break;case"position":this.getPositionProposals(s,a,n);break;case"repeat":this.getRepeatStyleProposals(s,a,n);break;case"line-style":this.getLineStyleProposals(s,a,n);break;case"line-width":this.getLineWidthProposals(s,a,n);break;case"geometry-box":this.getGeometryBoxProposals(s,a,n);break;case"box":this.getBoxProposals(s,a,n);break;case"image":this.getImageProposals(s,a,n);break;case"timing-function":this.getTimingFunctionProposals(s,a,n);break;case"shape":this.getBasicShapeProposals(s,a,n);break}}this.getValueEnumProposals(s,a,n),this.getCSSWideKeywordProposals(s,a,n),this.getUnitProposals(s,a,n)}else for(var h=up(this.styleSheet,e),u=0,f=h.getEntries();u<f.length;u++){var m=f[u];n.items.push({label:m,textEdit:H.replace(this.getCompletionRange(a),m),kind:$.Value})}return this.getVariableProposals(a,n),this.getTermProposals(s,a,n),n},t.prototype.getValueEnumProposals=function(e,n,r){if(e.values)for(var i=0,s=e.values;i<s.length;i++){var a=s[i],o=a.name,l=void 0;if(wo(o,")")){var c=o.lastIndexOf("(");c!==-1&&(o=o.substr(0,c)+"($1)",l=it)}var h=et.Enums;ge(a.name,"-")&&(h+=et.VendorPrefixed);var u={label:a.name,documentation:yt(a,this.doesSupportMarkdown()),tags:Nn(e)?[_t.Deprecated]:[],textEdit:H.replace(this.getCompletionRange(n),o),sortText:h,kind:$.Value,insertTextFormat:l};r.items.push(u)}return r},t.prototype.getCSSWideKeywordProposals=function(e,n,r){for(var i in _l)r.items.push({label:i,documentation:_l[i],textEdit:H.replace(this.getCompletionRange(n),i),kind:$.Value});for(var s in El){var a=en(s);r.items.push({label:s,documentation:El[s],textEdit:H.replace(this.getCompletionRange(n),a),kind:$.Function,insertTextFormat:it,command:ge(s,"var")?Tl:void 0})}return r},t.prototype.getCompletionsForInterpolation=function(e,n){return this.offset>=e.offset+2&&this.getVariableProposals(null,n),n},t.prototype.getVariableProposals=function(e,n){for(var r=this.getSymbolContext().findSymbolsAtOffset(this.offset,Z.Variable),i=0,s=r;i<s.length;i++){var a=s[i],o=ge(a.name,"--")?"var(".concat(a.name,")"):a.name,l={label:a.name,documentation:a.value?xo(a.value):a.value,textEdit:H.replace(this.getCompletionRange(e),o),kind:$.Variable,sortText:et.Variable};if(typeof l.documentation=="string"&&Wl(l.documentation)&&(l.kind=$.Color),a.node.type===v.FunctionParameter){var c=a.node.getParent();c.type===v.MixinDeclaration&&(l.detail=dp("completion.argument","argument from '{0}'",c.getName()))}n.items.push(l)}return n},t.prototype.getVariableProposalsForCSSVarFunction=function(e){var n=new Oi;this.styleSheet.acceptVisitor(new fp(n,this.offset));for(var r=this.getSymbolContext().findSymbolsAtOffset(this.offset,Z.Variable),i=0,s=r;i<s.length;i++){var a=s[i];if(ge(a.name,"--")){var o={label:a.name,documentation:a.value?xo(a.value):a.value,textEdit:H.replace(this.getCompletionRange(null),a.name),kind:$.Variable};typeof o.documentation=="string"&&Wl(o.documentation)&&(o.kind=$.Color),e.items.push(o)}n.remove(a.name)}for(var l=0,c=n.getEntries();l<c.length;l++){var h=c[l];if(ge(h,"--")){var o={label:h,textEdit:H.replace(this.getCompletionRange(null),h),kind:$.Variable};e.items.push(o)}}return e},t.prototype.getUnitProposals=function(e,n,r){var i="0";if(this.currentWord.length>0){var s=this.currentWord.match(/^-?\d[\.\d+]*/);s&&(i=s[0],r.isIncomplete=i.length===this.currentWord.length)}else this.currentWord.length===0&&(r.isIncomplete=!0);if(n&&n.parent&&n.parent.type===v.Term&&(n=n.getParent()),e.restrictions)for(var a=0,o=e.restrictions;a<o.length;a++){var l=o[a],c=Al[l];if(c)for(var h=0,u=c;h<u.length;h++){var f=u[h],m=i+f;r.items.push({label:m,textEdit:H.replace(this.getCompletionRange(n),m),kind:$.Unit})}}return r},t.prototype.getCompletionRange=function(e){if(e&&e.offset<=this.offset&&this.offset<=e.end){var n=e.end!==-1?this.textDocument.positionAt(e.end):this.position,r=this.textDocument.positionAt(e.offset);if(r.line===n.line)return ie.create(r,n)}return this.defaultReplaceRange},t.prototype.getColorProposals=function(e,n,r){for(var i in pr)r.items.push({label:i,documentation:pr[i],textEdit:H.replace(this.getCompletionRange(n),i),kind:$.Color});for(var i in fl)r.items.push({label:i,documentation:fl[i],textEdit:H.replace(this.getCompletionRange(n),i),kind:$.Value});var s=new Oi;this.styleSheet.acceptVisitor(new pp(s,this.offset));for(var a=0,o=s.getEntries();a<o.length;a++){var i=o[a];r.items.push({label:i,textEdit:H.replace(this.getCompletionRange(n),i),kind:$.Color})}for(var l=function(m){var g=1,b=function(C,k){return"${"+g+++":"+k+"}"},y=m.func.replace(/\[?\$(\w+)\]?/g,b);r.items.push({label:m.func.substr(0,m.func.indexOf("(")),detail:m.func,documentation:m.desc,textEdit:H.replace(c.getCompletionRange(n),y),insertTextFormat:it,kind:$.Function})},c=this,h=0,u=Vu;h<u.length;h++){var f=u[h];l(f)}return r},t.prototype.getPositionProposals=function(e,n,r){for(var i in wl)r.items.push({label:i,documentation:wl[i],textEdit:H.replace(this.getCompletionRange(n),i),kind:$.Value});return r},t.prototype.getRepeatStyleProposals=function(e,n,r){for(var i in xl)r.items.push({label:i,documentation:xl[i],textEdit:H.replace(this.getCompletionRange(n),i),kind:$.Value});return r},t.prototype.getLineStyleProposals=function(e,n,r){for(var i in Sl)r.items.push({label:i,documentation:Sl[i],textEdit:H.replace(this.getCompletionRange(n),i),kind:$.Value});return r},t.prototype.getLineWidthProposals=function(e,n,r){for(var i=0,s=Xu;i<s.length;i++){var a=s[i];r.items.push({label:a,textEdit:H.replace(this.getCompletionRange(n),a),kind:$.Value})}return r},t.prototype.getGeometryBoxProposals=function(e,n,r){for(var i in kl)r.items.push({label:i,documentation:kl[i],textEdit:H.replace(this.getCompletionRange(n),i),kind:$.Value});return r},t.prototype.getBoxProposals=function(e,n,r){for(var i in Cl)r.items.push({label:i,documentation:Cl[i],textEdit:H.replace(this.getCompletionRange(n),i),kind:$.Value});return r},t.prototype.getImageProposals=function(e,n,r){for(var i in Rl){var s=en(i);r.items.push({label:i,documentation:Rl[i],textEdit:H.replace(this.getCompletionRange(n),s),kind:$.Function,insertTextFormat:i!==s?it:void 0})}return r},t.prototype.getTimingFunctionProposals=function(e,n,r){for(var i in Fl){var s=en(i);r.items.push({label:i,documentation:Fl[i],textEdit:H.replace(this.getCompletionRange(n),s),kind:$.Function,insertTextFormat:i!==s?it:void 0})}return r},t.prototype.getBasicShapeProposals=function(e,n,r){for(var i in Dl){var s=en(i);r.items.push({label:i,documentation:Dl[i],textEdit:H.replace(this.getCompletionRange(n),s),kind:$.Function,insertTextFormat:i!==s?it:void 0})}return r},t.prototype.getCompletionsForStylesheet=function(e){var n=this.styleSheet.findFirstChildBeforeOffset(this.offset);return n?n instanceof Jt?this.getCompletionsForRuleSet(n,e):n instanceof gi?this.getCompletionsForSupports(n,e):e:this.getCompletionForTopLevel(e)},t.prototype.getCompletionForTopLevel=function(e){var n=this;return this.cssDataManager.getAtDirectives().forEach(function(r){e.items.push({label:r.name,textEdit:H.replace(n.getCompletionRange(null),r.name),documentation:yt(r,n.doesSupportMarkdown()),tags:Nn(r)?[_t.Deprecated]:[],kind:$.Keyword})}),this.getCompletionsForSelector(null,!1,e),e},t.prototype.getCompletionsForRuleSet=function(e,n){var r=e.getDeclarations(),i=r&&r.endsWith("}")&&this.offset>=r.end;if(i)return this.getCompletionForTopLevel(n);var s=!r||this.offset<=r.offset;return s?this.getCompletionsForSelector(e,e.isNested(),n):this.getCompletionsForDeclarations(e.getDeclarations(),n)},t.prototype.getCompletionsForSelector=function(e,n,r){var i=this,s=this.findInNodePath(v.PseudoSelector,v.IdentifierSelector,v.ClassSelector,v.ElementNameSelector);!s&&this.hasCharacterAtPosition(this.offset-this.currentWord.length-1,":")&&(this.currentWord=":"+this.currentWord,this.hasCharacterAtPosition(this.offset-this.currentWord.length-1,":")&&(this.currentWord=":"+this.currentWord),this.defaultReplaceRange=ie.create(Fe.create(this.position.line,this.position.character-this.currentWord.length),this.position));var a=this.cssDataManager.getPseudoClasses();a.forEach(function(y){var C=en(y.name),k={label:y.name,textEdit:H.replace(i.getCompletionRange(s),C),documentation:yt(y,i.doesSupportMarkdown()),tags:Nn(y)?[_t.Deprecated]:[],kind:$.Function,insertTextFormat:y.name!==C?it:void 0};ge(y.name,":-")&&(k.sortText=et.VendorPrefixed),r.items.push(k)});var o=this.cssDataManager.getPseudoElements();if(o.forEach(function(y){var C=en(y.name),k={label:y.name,textEdit:H.replace(i.getCompletionRange(s),C),documentation:yt(y,i.doesSupportMarkdown()),tags:Nn(y)?[_t.Deprecated]:[],kind:$.Function,insertTextFormat:y.name!==C?it:void 0};ge(y.name,"::-")&&(k.sortText=et.VendorPrefixed),r.items.push(k)}),!n){for(var l=0,c=Yu;l<c.length;l++){var h=c[l];r.items.push({label:h,textEdit:H.replace(this.getCompletionRange(s),h),kind:$.Keyword})}for(var u=0,f=Ku;u<f.length;u++){var h=f[u];r.items.push({label:h,textEdit:H.replace(this.getCompletionRange(s),h),kind:$.Keyword})}}var m={};m[this.currentWord]=!0;var g=this.textDocument.getText();if(this.styleSheet.accept(function(y){if(y.type===v.SimpleSelector&&y.length>0){var C=g.substr(y.offset,y.length);return C.charAt(0)==="."&&!m[C]&&(m[C]=!0,r.items.push({label:C,textEdit:H.replace(i.getCompletionRange(s),C),kind:$.Keyword})),!1}return!0}),e&&e.isNested()){var b=e.getSelectors().findFirstChildBeforeOffset(this.offset);b&&e.getSelectors().getChildren().indexOf(b)===0&&this.getPropertyProposals(null,r)}return r},t.prototype.getCompletionsForDeclarations=function(e,n){if(!e||this.offset===e.offset)return n;var r=e.findFirstChildBeforeOffset(this.offset);if(!r)return this.getCompletionsForDeclarationProperty(null,n);if(r instanceof pi){var i=r;if(!Ue(i.colonPosition)||this.offset<=i.colonPosition)return this.getCompletionsForDeclarationProperty(i,n);if(Ue(i.semicolonPosition)&&i.semicolonPosition<this.offset)return this.offset===i.semicolonPosition+1?n:this.getCompletionsForDeclarationProperty(null,n);if(i instanceof Ze)return this.getCompletionsForDeclarationValue(i,n)}else r instanceof Sn?this.getCompletionsForExtendsReference(r,null,n):this.currentWord&&this.currentWord[0]==="@"?this.getCompletionsForDeclarationProperty(null,n):r instanceof Jt&&this.getCompletionsForDeclarationProperty(null,n);return n},t.prototype.getCompletionsForVariableDeclaration=function(e,n){return this.offset&&Ue(e.colonPosition)&&this.offset>e.colonPosition&&this.getVariableProposals(e.getValue(),n),n},t.prototype.getCompletionsForExpression=function(e,n){var r=e.getParent();if(r instanceof Yt)return this.getCompletionsForFunctionArgument(r,r.getParent(),n),n;var i=e.findParent(v.Declaration);if(!i)return this.getTermProposals(void 0,null,n),n;var s=e.findChildAtOffset(this.offset,!0);return s?s instanceof yi||s instanceof We?this.getCompletionsForDeclarationValue(i,n):n:this.getCompletionsForDeclarationValue(i,n)},t.prototype.getCompletionsForFunctionArgument=function(e,n,r){var i=n.getIdentifier();return i&&i.matches("var")&&(!n.getArguments().hasChildren()||n.getArguments().getChild(0)===e)&&this.getVariableProposalsForCSSVarFunction(r),r},t.prototype.getCompletionsForFunctionDeclaration=function(e,n){var r=e.getDeclarations();return r&&this.offset>r.offset&&this.offset<r.end&&this.getTermProposals(void 0,null,n),n},t.prototype.getCompletionsForMixinReference=function(e,n){for(var r=this,i=this.getSymbolContext().findSymbolsAtOffset(this.offset,Z.Mixin),s=0,a=i;s<a.length;s++){var o=a[s];o.node instanceof Cn&&n.items.push(this.makeTermProposal(o,o.node.getParameters(),null))}var l=e.getIdentifier()||null;return this.completionParticipants.forEach(function(c){c.onCssMixinReference&&c.onCssMixinReference({mixinName:r.currentWord,range:r.getCompletionRange(l)})}),n},t.prototype.getTermProposals=function(e,n,r){for(var i=this.getSymbolContext().findSymbolsAtOffset(this.offset,Z.Function),s=0,a=i;s<a.length;s++){var o=a[s];o.node instanceof nr&&r.items.push(this.makeTermProposal(o,o.node.getParameters(),n))}return r},t.prototype.makeTermProposal=function(e,n,r){e.node;var i=n.getChildren().map(function(a){return a instanceof tr?a.getName():a.getText()}),s=e.name+"("+i.map(function(a,o){return"${"+(o+1)+":"+a+"}"}).join(", ")+")";return{label:e.name,detail:e.name+"("+i.join(", ")+")",textEdit:H.replace(this.getCompletionRange(r),s),insertTextFormat:it,kind:$.Function,sortText:et.Term}},t.prototype.getCompletionsForSupportsCondition=function(e,n){var r=e.findFirstChildBeforeOffset(this.offset);if(r){if(r instanceof Ze)return!Ue(r.colonPosition)||this.offset<=r.colonPosition?this.getCompletionsForDeclarationProperty(r,n):this.getCompletionsForDeclarationValue(r,n);if(r instanceof xn)return this.getCompletionsForSupportsCondition(r,n)}return Ue(e.lParent)&&this.offset>e.lParent&&(!Ue(e.rParent)||this.offset<=e.rParent)?this.getCompletionsForDeclarationProperty(null,n):n},t.prototype.getCompletionsForSupports=function(e,n){var r=e.getDeclarations(),i=!r||this.offset<=r.offset;if(i){var s=e.findFirstChildBeforeOffset(this.offset);return s instanceof xn?this.getCompletionsForSupportsCondition(s,n):n}return this.getCompletionForTopLevel(n)},t.prototype.getCompletionsForExtendsReference=function(e,n,r){return r},t.prototype.getCompletionForUriLiteralValue=function(e,n){var r,i,s;if(e.hasChildren()){var o=e.getChild(0);r=o.getText(),i=this.position,s=this.getCompletionRange(o)}else{r="",i=this.position;var a=this.textDocument.positionAt(e.offset+4);s=ie.create(a,a)}return this.completionParticipants.forEach(function(l){l.onCssURILiteralValue&&l.onCssURILiteralValue({uriValue:r,position:i,range:s})}),n},t.prototype.getCompletionForImportPath=function(e,n){var r=this;return this.completionParticipants.forEach(function(i){i.onCssImportPath&&i.onCssImportPath({pathValue:e.getText(),position:r.position,range:r.getCompletionRange(e)})}),n},t.prototype.hasCharacterAtPosition=function(e,n){var r=this.textDocument.getText();return e>=0&&e<r.length&&r.charAt(e)===n},t.prototype.doesSupportMarkdown=function(){var e,n,r;if(!Ue(this.supportsMarkdown)){if(!Ue(this.lsOptions.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;var i=(r=(n=(e=this.lsOptions.clientCapabilities.textDocument)===null||e===void 0?void 0:e.completion)===null||n===void 0?void 0:n.completionItem)===null||r===void 0?void 0:r.documentationFormat;this.supportsMarkdown=Array.isArray(i)&&i.indexOf(Oe.Markdown)!==-1}return this.supportsMarkdown},t}();function Nn(t){return!!(t.status&&(t.status==="nonstandard"||t.status==="obsolete"))}var Oi=function(){function t(){this.entries={}}return t.prototype.add=function(e){this.entries[e]=!0},t.prototype.remove=function(e){delete this.entries[e]},t.prototype.getEntries=function(){return Object.keys(this.entries)},t}();function en(t){return t.replace(/\(\)$/,"($1)")}function up(t,e){var n=e.getFullPropertyName(),r=new Oi;function i(o){return(o instanceof We||o instanceof yi||o instanceof vi)&&r.add(o.getText()),!0}function s(o){var l=o.getFullPropertyName();return n===l}function a(o){if(o instanceof Ze&&o!==e&&s(o)){var l=o.getValue();l&&l.accept(i)}return!0}return t.accept(a),r}var pp=function(){function t(e,n){this.entries=e,this.currentOffset=n}return t.prototype.visitNode=function(e){return(e instanceof vi||e instanceof wn&&Bu(e))&&(this.currentOffset<e.offset||e.end<this.currentOffset)&&this.entries.add(e.getText()),!0},t}(),fp=function(){function t(e,n){this.entries=e,this.currentOffset=n}return t.prototype.visitNode=function(e){return e instanceof We&&e.isCustomProperty&&(this.currentOffset<e.offset||e.end<this.currentOffset)&&this.entries.add(e.getText()),!0},t}();function mp(t,e){for(var n=e-1,r=t.getText();n>=0&&`
|
|
37
37
|
\r":{[()]},*>+`.indexOf(r.charAt(n))===-1;)n--;return r.substring(n+1,e)}function Wl(t){return t.toLowerCase()in pr||/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)}var Ol=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),gp=Ge(),Ui=function(){function t(){this.parent=null,this.children=null,this.attributes=null}return t.prototype.findAttribute=function(e){if(this.attributes)for(var n=0,r=this.attributes;n<r.length;n++){var i=r[n];if(i.name===e)return i.value}return null},t.prototype.addChild=function(e){e instanceof t&&(e.parent=this),this.children||(this.children=[]),this.children.push(e)},t.prototype.append=function(e){if(this.attributes){var n=this.attributes[this.attributes.length-1];n.value=n.value+e}},t.prototype.prepend=function(e){if(this.attributes){var n=this.attributes[0];n.value=e+n.value}},t.prototype.findRoot=function(){for(var e=this;e.parent&&!(e.parent instanceof tn);)e=e.parent;return e},t.prototype.removeChild=function(e){if(this.children){var n=this.children.indexOf(e);if(n!==-1)return this.children.splice(n,1),!0}return!1},t.prototype.addAttr=function(e,n){this.attributes||(this.attributes=[]);for(var r=0,i=this.attributes;r<i.length;r++){var s=i[r];if(s.name===e){s.value+=" "+n;return}}this.attributes.push({name:e,value:n})},t.prototype.clone=function(e){e===void 0&&(e=!0);var n=new t;if(this.attributes){n.attributes=[];for(var r=0,i=this.attributes;r<i.length;r++){var s=i[r];n.addAttr(s.name,s.value)}}if(e&&this.children){n.children=[];for(var a=0;a<this.children.length;a++)n.addChild(this.children[a].clone())}return n},t.prototype.cloneWithParent=function(){var e=this.clone(!1);if(this.parent&&!(this.parent instanceof tn)){var n=this.parent.cloneWithParent();n.addChild(e)}return e},t}(),tn=function(t){Ol(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Ui),Vi=function(t){Ol(e,t);function e(n){var r=t.call(this)||this;return r.addAttr("name",n),r}return e}(Ui),Ul=function(){function t(e){this.quote=e,this.result=[]}return t.prototype.print=function(e){this.result=[],e instanceof tn?e.children&&this.doPrint(e.children,0):this.doPrint([e],0);var n=this.result.join(`
|
|
38
|
-
`);return[{language:"html",value:n}]},t.prototype.doPrint=function(e,n){for(var r=0,i=e;r<i.length;r++){var s=i[r];this.doPrintElement(s,n),s.children&&this.doPrint(s.children,n+1)}},t.prototype.writeLine=function(e,n){var r=new Array(e+1).join(" ");this.result.push(r+n)},t.prototype.doPrintElement=function(e,n){var r=e.findAttribute("name");if(e instanceof Vi||r==="…"){this.writeLine(n,r);return}var i=["<"];if(r?i.push(r):i.push("element"),e.attributes)for(var s=0,a=e.attributes;s<a.length;s++){var o=a[s];if(o.name!=="name"){i.push(" "),i.push(o.name);var l=o.value;l&&(i.push("="),i.push(st.ensure(l,this.quote)))}}i.push(">"),this.writeLine(n,i.join(""))},t}(),st;(function(t){function e(r,i){return i+n(r)+i}t.ensure=e;function n(r){var i=r.match(/^['"](.*)["']$/);return i?i[1]:r}t.remove=n})(st||(st={}));var Vl=function(){function t(){this.id=0,this.attr=0,this.tag=0}return t}();function Bl(t,e){for(var n=new Ui,r=0,i=t.getChildren();r<i.length;r++){var s=i[r];switch(s.type){case v.SelectorCombinator:if(e){var a=s.getText().split("&");if(a.length===1){n.addAttr("name",a[0]);break}if(n=e.cloneWithParent(),a[0]){var o=n.findRoot();o.prepend(a[0])}for(var l=1;l<a.length;l++){if(l>1){var c=e.cloneWithParent();n.addChild(c.findRoot()),n=c}n.append(a[l])}}break;case v.SelectorPlaceholder:if(s.matches("@at-root"))return n;case v.ElementNameSelector:var h=s.getText();n.addAttr("name",h==="*"?"element":Ve(h));break;case v.ClassSelector:n.addAttr("class",Ve(s.getText().substring(1)));break;case v.IdentifierSelector:n.addAttr("id",Ve(s.getText().substring(1)));break;case v.MixinDeclaration:n.addAttr("class",s.getName());break;case v.PseudoSelector:n.addAttr(Ve(s.getText()),"");break;case v.AttributeSelector:var u=s,f=u.getIdentifier();if(f){var m=u.getValue(),g=u.getOperator(),b=void 0;if(m&&g)switch(Ve(g.getText())){case"|=":b="".concat(st.remove(Ve(m.getText())),"-…");break;case"^=":b="".concat(st.remove(Ve(m.getText())),"…");break;case"$=":b="…".concat(st.remove(Ve(m.getText())));break;case"~=":b=" … ".concat(st.remove(Ve(m.getText()))," … ");break;case"*=":b="…".concat(st.remove(Ve(m.getText())),"…");break;default:b=st.remove(Ve(m.getText()));break}n.addAttr(Ve(f.getText()),b)}break}}return n}function Ve(t){var e=new vn;e.setSource(t);var n=e.scanUnquotedString();return n?n.text:t}var bp=function(){function t(e){this.cssDataManager=e}return t.prototype.selectorToMarkedString=function(e){var n=wp(e);if(n){var r=new Ul('"').print(n);return r.push(this.selectorToSpecificityMarkedString(e)),r}else return[]},t.prototype.simpleSelectorToMarkedString=function(e){var n=Bl(e),r=new Ul('"').print(n);return r.push(this.selectorToSpecificityMarkedString(e)),r},t.prototype.isPseudoElementIdentifier=function(e){var n=e.match(/^::?([\w-]+)/);return n?!!this.cssDataManager.getPseudoElement("::"+n[1]):!1},t.prototype.selectorToSpecificityMarkedString=function(e){var n=this,r=function(s){var a=new Vl;e:for(var o=0,l=s.getChildren();o<l.length;o++){var c=l[o];switch(c.type){case v.IdentifierSelector:a.id++;break;case v.ClassSelector:case v.AttributeSelector:a.attr++;break;case v.ElementNameSelector:if(c.matches("*"))break;a.tag++;break;case v.PseudoSelector:var h=c.getText();if(n.isPseudoElementIdentifier(h)){a.tag++;break}if(h.match(/^:where/i))continue e;if(h.match(/^:(not|has|is)/i)&&c.getChildren().length>0){for(var u=new Vl,f=0,m=c.getChildren();f<m.length;f++){var g=m[f];g.type===v.Undefined&&g.getChildren();for(var b=0,y=g.getChildren();b<y.length;b++){var C=y[b],k=r(C);if(k.id>u.id){u=k;continue}else if(k.id<u.id)continue;if(k.attr>u.attr){u=k;continue}else if(k.attr<u.attr)continue;if(k.tag>u.tag){u=k;continue}}}a.id+=u.id,a.attr+=u.attr,a.tag+=u.tag;continue e}a.attr++;break}if(c.getChildren().length>0){var k=r(c);a.id+=k.id,a.attr+=k.attr,a.tag+=k.tag}}return a},i=r(e);return gp("specificity","[Selector Specificity](https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity): ({0}, {1}, {2})",i.id,i.attr,i.tag)},t}(),vp=function(){function t(e){this.prev=null,this.element=e}return t.prototype.processSelector=function(e){var n=null;if(!(this.element instanceof tn)&&e.getChildren().some(function(h){return h.hasChildren()&&h.getChild(0).type===v.SelectorCombinator})){var r=this.element.findRoot();r.parent instanceof tn&&(n=this.element,this.element=r.parent,this.element.removeChild(r),this.prev=null)}for(var i=0,s=e.getChildren();i<s.length;i++){var a=s[i];if(a instanceof Xt){if(this.prev instanceof Xt){var o=new Vi("…");this.element.addChild(o),this.element=o}else this.prev&&(this.prev.matches("+")||this.prev.matches("~"))&&this.element.parent&&(this.element=this.element.parent);this.prev&&this.prev.matches("~")&&this.element.addChild(new Vi("⋮"));var l=Bl(a,n),c=l.findRoot();this.element.addChild(c),this.element=l}(a instanceof Xt||a.type===v.SelectorCombinatorParent||a.type===v.SelectorCombinatorShadowPiercingDescendant||a.type===v.SelectorCombinatorSibling||a.type===v.SelectorCombinatorAllSiblings)&&(this.prev=a)}},t}();function yp(t){switch(t.type){case v.MixinDeclaration:case v.Stylesheet:return!0}return!1}function wp(t){if(t.matches("@at-root"))return null;var e=new tn,n=[],r=t.getParent();if(r instanceof Jt)for(var i=r.getParent();i&&!yp(i);){if(i instanceof Jt){if(i.getSelectors().matches("@at-root"))break;n.push(i)}i=i.getParent()}for(var s=new vp(e),a=n.length-1;a>=0;a--){var o=n[a].getSelectors().getChild(0);o&&s.processSelector(o)}return s.processSelector(t),e}var Bi=function(){function t(e,n){this.clientCapabilities=e,this.cssDataManager=n,this.selectorPrinting=new bp(n)}return t.prototype.configure=function(e){this.defaultSettings=e},t.prototype.doHover=function(e,n,r,i){i===void 0&&(i=this.defaultSettings);function s(y){return ie.create(e.positionAt(y.offset),e.positionAt(y.end))}for(var a=e.offsetAt(n),o=di(r,a),l=null,c=0;c<o.length;c++){var h=o[c];if(h instanceof yn){l={contents:this.selectorPrinting.selectorToMarkedString(h),range:s(h)};break}if(h instanceof Xt){ge(h.getText(),"@")||(l={contents:this.selectorPrinting.simpleSelectorToMarkedString(h),range:s(h)});break}if(h instanceof Ze){var u=h.getFullPropertyName(),f=this.cssDataManager.getProperty(u);if(f){var m=yt(f,this.doesSupportMarkdown(),i);m?l={contents:m,range:s(h)}:l=null}continue}if(h instanceof No){var g=h.getText(),f=this.cssDataManager.getAtDirective(g);if(f){var m=yt(f,this.doesSupportMarkdown(),i);m?l={contents:m,range:s(h)}:l=null}continue}if(h instanceof U&&h.type===v.PseudoSelector){var b=h.getText(),f=b.slice(0,2)==="::"?this.cssDataManager.getPseudoElement(b):this.cssDataManager.getPseudoClass(b);if(f){var m=yt(f,this.doesSupportMarkdown(),i);m?l={contents:m,range:s(h)}:l=null}continue}}return l&&(l.contents=this.convertContents(l.contents)),l},t.prototype.convertContents=function(e){return this.doesSupportMarkdown()||typeof e=="string"?e:"kind"in e?{kind:"plaintext",value:e.value}:Array.isArray(e)?e.map(function(n){return typeof n=="string"?n:n.value}):e.value},t.prototype.doesSupportMarkdown=function(){if(!Ue(this.supportsMarkdown)){if(!Ue(this.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;var e=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.hover;this.supportsMarkdown=e&&e.contentFormat&&Array.isArray(e.contentFormat)&&e.contentFormat.indexOf(Oe.Markdown)!==-1}return this.supportsMarkdown},t}(),Mn=function(t,e,n,r){function i(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function o(h){try{c(r.next(h))}catch(u){a(u)}}function l(h){try{c(r.throw(h))}catch(u){a(u)}}function c(h){h.done?s(h.value):i(h.value).then(o,l)}c((r=r.apply(t,e||[])).next())})},zn=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,i,s,a;return a={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(c){return function(h){return l([c,h])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(s=c[0]&2?i.return:c[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,c[1])).done)return s;switch(i=0,s&&(c=[c[0]&2,s.value]),c[0]){case 0:case 1:s=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]<s[3])){n.label=c[1];break}if(c[0]===6&&n.label<s[1]){n.label=s[1],s=c;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(c);break}s[2]&&n.ops.pop(),n.trys.pop();continue}c=e.call(t,n)}catch(h){c=[6,h],i=0}finally{r=s=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},ql=Ge(),jl=/^\w+:\/\//,$l=/^data:/,qi=function(){function t(e,n){this.fileSystemProvider=e,this.resolveModuleReferences=n}return t.prototype.findDefinition=function(e,n,r){var i=new Mi(r),s=e.offsetAt(n),a=hi(r,s);if(!a)return null;var o=i.findSymbolFromNode(a);return o?{uri:e.uri,range:Rt(o.node,e)}:null},t.prototype.findReferences=function(e,n,r){var i=this.findDocumentHighlights(e,n,r);return i.map(function(s){return{uri:e.uri,range:s.range}})},t.prototype.findDocumentHighlights=function(e,n,r){var i=[],s=e.offsetAt(n),a=hi(r,s);if(!a||a.type===v.Stylesheet||a.type===v.Declarations)return i;a.type===v.Identifier&&a.parent&&a.parent.type===v.ClassSelector&&(a=a.parent);var o=new Mi(r),l=o.findSymbolFromNode(a),c=a.getText();return r.accept(function(h){if(l){if(o.matchesSymbol(h,l))return i.push({kind:Hl(h),range:Rt(h,e)}),!1}else a&&a.type===h.type&&h.matches(c)&&i.push({kind:Hl(h),range:Rt(h,e)});return!0}),i},t.prototype.isRawStringDocumentLinkNode=function(e){return e.type===v.Import},t.prototype.findDocumentLinks=function(e,n,r){for(var i=this.findUnresolvedLinks(e,n),s=[],a=0,o=i;a<o.length;a++){var l=o[a],c=l.link,h=c.target;if(!(!h||$l.test(h)))if(jl.test(h))s.push(c);else{var u=r.resolveReference(h,e.uri);u&&(c.target=u),s.push(c)}}return s},t.prototype.findDocumentLinks2=function(e,n,r){return Mn(this,void 0,void 0,function(){var i,s,a,o,l,c,h,u;return zn(this,function(f){switch(f.label){case 0:i=this.findUnresolvedLinks(e,n),s=[],a=0,o=i,f.label=1;case 1:return a<o.length?(l=o[a],c=l.link,h=c.target,!h||$l.test(h)?[3,5]:[3,2]):[3,6];case 2:return jl.test(h)?(s.push(c),[3,5]):[3,3];case 3:return[4,this.resolveRelativeReference(h,e.uri,r,l.isRawLink)];case 4:u=f.sent(),u!==void 0&&(c.target=u,s.push(c)),f.label=5;case 5:return a++,[3,1];case 6:return[2,s]}})})},t.prototype.findUnresolvedLinks=function(e,n){var r=this,i=[],s=function(a){var o=a.getText(),l=Rt(a,e);if(!(l.start.line===l.end.line&&l.start.character===l.end.character)){(ge(o,"'")||ge(o,'"'))&&(o=o.slice(1,-1));var c=a.parent?r.isRawStringDocumentLinkNode(a.parent):!1;i.push({link:{target:o,range:l},isRawLink:c})}};return n.accept(function(a){if(a.type===v.URILiteral){var o=a.getChild(0);return o&&s(o),!1}if(a.parent&&r.isRawStringDocumentLinkNode(a.parent)){var l=a.getText();return(ge(l,"'")||ge(l,'"'))&&s(a),!1}return!0}),i},t.prototype.findDocumentSymbols=function(e,n){var r=[];return n.accept(function(i){var s={name:null,kind:Et.Class,location:null},a=i;if(i instanceof yn)return s.name=i.getText(),a=i.findAParent(v.Ruleset,v.ExtendsReference),a&&(s.location=kn.create(e.uri,Rt(a,e)),r.push(s)),!1;if(i instanceof rr)s.name=i.getName(),s.kind=Et.Variable;else if(i instanceof Cn)s.name=i.getName(),s.kind=Et.Method;else if(i instanceof nr)s.name=i.getName(),s.kind=Et.Function;else if(i instanceof _o)s.name=ql("literal.keyframes","@keyframes {0}",i.getName());else if(i instanceof Co)s.name=ql("literal.fontface","@font-face");else if(i instanceof Ro){var o=i.getChild(0);o instanceof Fo&&(s.name="@media "+o.getText(),s.kind=Et.Module)}return s.name&&(s.location=kn.create(e.uri,Rt(a,e)),r.push(s)),!0}),r},t.prototype.findDocumentColors=function(e,n){var r=[];return n.accept(function(i){var s=xp(i,e);return s&&r.push(s),!0}),r},t.prototype.getColorPresentations=function(e,n,r,i){var s=[],a=Math.round(r.red*255),o=Math.round(r.green*255),l=Math.round(r.blue*255),c;r.alpha===1?c="rgb(".concat(a,", ").concat(o,", ").concat(l,")"):c="rgba(".concat(a,", ").concat(o,", ").concat(l,", ").concat(r.alpha,")"),s.push({label:c,textEdit:H.replace(i,c)}),r.alpha===1?c="#".concat(Ft(a)).concat(Ft(o)).concat(Ft(l)):c="#".concat(Ft(a)).concat(Ft(o)).concat(Ft(l)).concat(Ft(Math.round(r.alpha*255))),s.push({label:c,textEdit:H.replace(i,c)});var h=yl(r);h.a===1?c="hsl(".concat(h.h,", ").concat(Math.round(h.s*100),"%, ").concat(Math.round(h.l*100),"%)"):c="hsla(".concat(h.h,", ").concat(Math.round(h.s*100),"%, ").concat(Math.round(h.l*100),"%, ").concat(h.a,")"),s.push({label:c,textEdit:H.replace(i,c)});var u=Gu(r);return u.a===1?c="hwb(".concat(u.h," ").concat(Math.round(u.w*100),"% ").concat(Math.round(u.b*100),"%)"):c="hwb(".concat(u.h," ").concat(Math.round(u.w*100),"% ").concat(Math.round(u.b*100),"% / ").concat(u.a,")"),s.push({label:c,textEdit:H.replace(i,c)}),s},t.prototype.doRename=function(e,n,r,i){var s,a=this.findDocumentHighlights(e,n,i),o=a.map(function(l){return H.replace(l.range,r)});return{changes:(s={},s[e.uri]=o,s)}},t.prototype.resolveModuleReference=function(e,n,r){return Mn(this,void 0,void 0,function(){var i,s,a,o,l;return zn(this,function(c){switch(c.label){case 0:return ge(n,"file://")?(i=Sp(e),s=r.resolveReference("/",n),a=Pi(n),[4,this.resolvePathToModule(i,a,s)]):[3,2];case 1:if(o=c.sent(),o)return l=e.substring(i.length+1),[2,Ii(o,l)];c.label=2;case 2:return[2,void 0]}})})},t.prototype.resolveRelativeReference=function(e,n,r,i){return Mn(this,void 0,void 0,function(){var s,a;return zn(this,function(o){switch(o.label){case 0:return s=r.resolveReference(e,n),e[0]==="~"&&e[1]!=="/"&&this.fileSystemProvider?(e=e.substring(1),[4,this.resolveModuleReference(e,n,r)]):[3,2];case 1:return[2,o.sent()||s];case 2:return this.resolveModuleReferences?(a=s,a?[4,this.fileExists(s)]:[3,4]):[3,7];case 3:a=o.sent(),o.label=4;case 4:return a?[2,s]:[3,5];case 5:return[4,this.resolveModuleReference(e,n,r)];case 6:return[2,o.sent()||s];case 7:return[2,s]}})})},t.prototype.resolvePathToModule=function(e,n,r){return Mn(this,void 0,void 0,function(){var i;return zn(this,function(s){switch(s.label){case 0:return i=Ii(n,"node_modules",e,"package.json"),[4,this.fileExists(i)];case 1:return s.sent()?[2,Pi(i)]:r&&n.startsWith(r)&&n.length!==r.length?[2,this.resolvePathToModule(e,Pi(n),r)]:[2,void 0]}})})},t.prototype.fileExists=function(e){return Mn(this,void 0,void 0,function(){var n;return zn(this,function(r){switch(r.label){case 0:if(!this.fileSystemProvider)return[2,!1];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.fileSystemProvider.stat(e)];case 2:return n=r.sent(),n.type===Dn.Unknown&&n.size===-1?[2,!1]:[2,!0];case 3:return r.sent(),[2,!1];case 4:return[2]}})})},t}();function xp(t,e){var n=Ju(t);if(n){var r=Rt(t,e);return{color:n,range:r}}return null}function Rt(t,e){return ie.create(e.positionAt(t.offset),e.positionAt(t.end))}function Hl(t){if(t.type===v.Selector||t instanceof We&&t.parent&&t.parent instanceof fi&&t.isCustomProperty)return Zt.Write;if(t.parent)switch(t.parent.type){case v.FunctionDeclaration:case v.MixinDeclaration:case v.Keyframe:case v.VariableDeclaration:case v.FunctionParameter:return Zt.Write}return Zt.Read}function Ft(t){var e=t.toString(16);return e.length!==2?"0"+e:e}function Sp(t){return t[0]==="@"?t.substring(0,t.indexOf("/",t.indexOf("/")+1)):t.substring(0,t.indexOf("/"))}var be=Ge(),nn=Pe.Warning,Gl=Pe.Error,Je=Pe.Ignore,we=function(){function t(e,n,r){this.id=e,this.message=n,this.defaultValue=r}return t}(),Cp=function(){function t(e,n,r){this.id=e,this.message=n,this.defaultValue=r}return t}(),se={AllVendorPrefixes:new we("compatibleVendorPrefixes",be("rule.vendorprefixes.all","When using a vendor-specific prefix make sure to also include all other vendor-specific properties"),Je),IncludeStandardPropertyWhenUsingVendorPrefix:new we("vendorPrefix",be("rule.standardvendorprefix.all","When using a vendor-specific prefix also include the standard property"),nn),DuplicateDeclarations:new we("duplicateProperties",be("rule.duplicateDeclarations","Do not use duplicate style definitions"),Je),EmptyRuleSet:new we("emptyRules",be("rule.emptyRuleSets","Do not use empty rulesets"),nn),ImportStatemement:new we("importStatement",be("rule.importDirective","Import statements do not load in parallel"),Je),BewareOfBoxModelSize:new we("boxModel",be("rule.bewareOfBoxModelSize","Do not use width or height when using padding or border"),Je),UniversalSelector:new we("universalSelector",be("rule.universalSelector","The universal selector (*) is known to be slow"),Je),ZeroWithUnit:new we("zeroUnits",be("rule.zeroWidthUnit","No unit for zero needed"),Je),RequiredPropertiesForFontFace:new we("fontFaceProperties",be("rule.fontFaceProperties","@font-face rule must define 'src' and 'font-family' properties"),nn),HexColorLength:new we("hexColorLength",be("rule.hexColor","Hex colors must consist of three, four, six or eight hex numbers"),Gl),ArgsInColorFunction:new we("argumentsInColorFunction",be("rule.colorFunction","Invalid number of parameters"),Gl),UnknownProperty:new we("unknownProperties",be("rule.unknownProperty","Unknown property."),nn),UnknownAtRules:new we("unknownAtRules",be("rule.unknownAtRules","Unknown at-rule."),nn),IEStarHack:new we("ieHack",be("rule.ieHack","IE hacks are only necessary when supporting IE7 and older"),Je),UnknownVendorSpecificProperty:new we("unknownVendorSpecificProperties",be("rule.unknownVendorSpecificProperty","Unknown vendor specific property."),Je),PropertyIgnoredDueToDisplay:new we("propertyIgnoredDueToDisplay",be("rule.propertyIgnoredDueToDisplay","Property is ignored due to the display."),nn),AvoidImportant:new we("important",be("rule.avoidImportant","Avoid using !important. It is an indication that the specificity of the entire CSS has gotten out of control and needs to be refactored."),Je),AvoidFloat:new we("float",be("rule.avoidFloat","Avoid using 'float'. Floats lead to fragile CSS that is easy to break if one aspect of the layout changes."),Je),AvoidIdSelector:new we("idSelector",be("rule.avoidIdSelector","Selectors should not contain IDs because these rules are too tightly coupled with the HTML."),Je)},kp={ValidProperties:new Cp("validProperties",be("rule.validProperties","A list of properties that are not validated against the `unknownProperties` rule."),[])},_p=function(){function t(e){e===void 0&&(e={}),this.conf=e}return t.prototype.getRule=function(e){if(this.conf.hasOwnProperty(e.id)){var n=Ep(this.conf[e.id]);if(n)return n}return e.defaultValue},t.prototype.getSetting=function(e){return this.conf[e.id]},t}();function Ep(t){switch(t){case"ignore":return Pe.Ignore;case"warning":return Pe.Warning;case"error":return Pe.Error}return null}var Rp=Ge(),ji=function(){function t(e){this.cssDataManager=e}return t.prototype.doCodeActions=function(e,n,r,i){return this.doCodeActions2(e,n,r,i).map(function(s){var a=s.edit&&s.edit.documentChanges&&s.edit.documentChanges[0];return Qt.create(s.title,"_css.applyCodeAction",e.uri,e.version,a&&a.edits)})},t.prototype.doCodeActions2=function(e,n,r,i){var s=[];if(r.diagnostics)for(var a=0,o=r.diagnostics;a<o.length;a++){var l=o[a];this.appendFixesForMarker(e,i,l,s)}return s},t.prototype.getFixesForUnknownProperty=function(e,n,r,i){var s=n.getName(),a=[];this.cssDataManager.getProperties().forEach(function(C){var k=Zd(s,C.name);k>=s.length/2&&a.push({property:C.name,score:k})}),a.sort(function(C,k){return k.score-C.score||C.property.localeCompare(k.property)});for(var o=3,l=0,c=a;l<c.length;l++){var h=c[l],u=h.property,f=Rp("css.codeaction.rename","Rename to '{0}'",u),m=H.replace(r.range,u),g=_i.create(e.uri,e.version),b={documentChanges:[_n.create(g,[m])]},y=Fi.create(f,b,Ri.QuickFix);if(y.diagnostics=[r],i.push(y),--o<=0)return}},t.prototype.appendFixesForMarker=function(e,n,r,i){if(r.code===se.UnknownProperty.id)for(var s=e.offsetAt(r.range.start),a=e.offsetAt(r.range.end),o=di(n,s),l=o.length-1;l>=0;l--){var c=o[l];if(c instanceof Ze){var h=c.getProperty();if(h&&h.offset===s&&h.end===a){this.getFixesForUnknownProperty(e,h,r,i);return}}}},t}(),Fp=function(){function t(e){this.fullPropertyName=e.getFullPropertyName().toLowerCase(),this.node=e}return t}();function Ln(t,e,n,r){var i=t[e];i.value=n,n&&(Ml(i.properties,r)||i.properties.push(r))}function Dp(t,e,n){Ln(t,"top",e,n),Ln(t,"right",e,n),Ln(t,"bottom",e,n),Ln(t,"left",e,n)}function _e(t,e,n,r){e==="top"||e==="right"||e==="bottom"||e==="left"?Ln(t,e,n,r):Dp(t,n,r)}function $i(t,e,n){switch(e.length){case 1:_e(t,void 0,e[0],n);break;case 2:_e(t,"top",e[0],n),_e(t,"bottom",e[0],n),_e(t,"right",e[1],n),_e(t,"left",e[1],n);break;case 3:_e(t,"top",e[0],n),_e(t,"right",e[1],n),_e(t,"left",e[1],n),_e(t,"bottom",e[2],n);break;case 4:_e(t,"top",e[0],n),_e(t,"right",e[1],n),_e(t,"bottom",e[2],n),_e(t,"left",e[3],n);break}}function Hi(t,e){for(var n=0,r=e;n<r.length;n++){var i=r[n];if(t.matches(i))return!0}return!1}function Pn(t,e){return e===void 0&&(e=!0),e&&Hi(t,["initial","unset"])?!1:parseFloat(t.getText())!==0}function Jl(t,e){return e===void 0&&(e=!0),t.map(function(n){return Pn(n,e)})}function wr(t,e){return e===void 0&&(e=!0),!(Hi(t,["none","hidden"])||e&&Hi(t,["initial","unset"]))}function Ap(t,e){return e===void 0&&(e=!0),t.map(function(n){return wr(n,e)})}function Np(t){var e=t.getChildren();if(e.length===1){var n=e[0];return Pn(n)&&wr(n)}for(var r=0,i=e;r<i.length;r++){var s=i[r],n=s;if(!Pn(n,!1)||!wr(n,!1))return!1}return!0}function Mp(t){for(var e={top:{value:!1,properties:[]},right:{value:!1,properties:[]},bottom:{value:!1,properties:[]},left:{value:!1,properties:[]}},n=0,r=t;n<r.length;n++){var i=r[n],s=i.node.value;if(!(typeof s>"u"))switch(i.fullPropertyName){case"box-sizing":return{top:{value:!1,properties:[]},right:{value:!1,properties:[]},bottom:{value:!1,properties:[]},left:{value:!1,properties:[]}};case"width":e.width=i;break;case"height":e.height=i;break;default:var a=i.fullPropertyName.split("-");switch(a[0]){case"border":switch(a[1]){case void 0:case"top":case"right":case"bottom":case"left":switch(a[2]){case void 0:_e(e,a[1],Np(s),i);break;case"width":_e(e,a[1],Pn(s,!1),i);break;case"style":_e(e,a[1],wr(s,!0),i);break}break;case"width":$i(e,Jl(s.getChildren(),!1),i);break;case"style":$i(e,Ap(s.getChildren(),!0),i);break}break;case"padding":a.length===1?$i(e,Jl(s.getChildren(),!0),i):_e(e,a[1],Pn(s,!0),i);break}break}}return e}var at=Ge(),Xl=function(){function t(){this.data={}}return t.prototype.add=function(e,n,r){var i=this.data[e];i||(i={nodes:[],names:[]},this.data[e]=i),i.names.push(n),r&&i.nodes.push(r)},t}(),zp=function(){function t(e,n,r){var i=this;this.cssDataManager=r,this.warnings=[],this.settings=n,this.documentText=e.getText(),this.keyframes=new Xl,this.validProperties={};var s=n.getSetting(kp.ValidProperties);Array.isArray(s)&&s.forEach(function(a){if(typeof a=="string"){var o=a.trim().toLowerCase();o.length&&(i.validProperties[o]=!0)}})}return t.entries=function(e,n,r,i,s){var a=new t(n,r,i);return e.acceptVisitor(a),a.completeValidations(),a.getEntries(s)},t.prototype.isValidPropertyDeclaration=function(e){var n=e.fullPropertyName;return this.validProperties[n]},t.prototype.fetch=function(e,n){for(var r=[],i=0,s=e;i<s.length;i++){var a=s[i];a.fullPropertyName===n&&r.push(a)}return r},t.prototype.fetchWithValue=function(e,n,r){for(var i=[],s=0,a=e;s<a.length;s++){var o=a[s];if(o.fullPropertyName===n){var l=o.node.getValue();l&&this.findValueInExpression(l,r)&&i.push(o)}}return i},t.prototype.findValueInExpression=function(e,n){var r=!1;return e.accept(function(i){return i.type===v.Identifier&&i.matches(n)&&(r=!0),!r}),r},t.prototype.getEntries=function(e){return e===void 0&&(e=Pe.Warning|Pe.Error),this.warnings.filter(function(n){return(n.getLevel()&e)!==0})},t.prototype.addEntry=function(e,n,r){var i=new zo(e,n,this.settings.getRule(n),r);this.warnings.push(i)},t.prototype.getMissingNames=function(e,n){for(var r=e.slice(0),i=0;i<n.length;i++){var s=r.indexOf(n[i]);s!==-1&&(r[s]=null)}for(var a=null,i=0;i<r.length;i++){var o=r[i];o&&(a===null?a=at("namelist.single","'{0}'",o):a=at("namelist.concatenated","{0}, '{1}'",a,o))}return a},t.prototype.visitNode=function(e){switch(e.type){case v.UnknownAtRule:return this.visitUnknownAtRule(e);case v.Keyframe:return this.visitKeyframe(e);case v.FontFace:return this.visitFontFace(e);case v.Ruleset:return this.visitRuleSet(e);case v.SimpleSelector:return this.visitSimpleSelector(e);case v.Function:return this.visitFunction(e);case v.NumericValue:return this.visitNumericValue(e);case v.Import:return this.visitImport(e);case v.HexColorValue:return this.visitHexColorValue(e);case v.Prio:return this.visitPrio(e);case v.IdentifierSelector:return this.visitIdentifierSelector(e)}return!0},t.prototype.completeValidations=function(){this.validateKeyframes()},t.prototype.visitUnknownAtRule=function(e){var n=e.getChild(0);if(!n)return!1;var r=this.cssDataManager.getAtDirective(n.getText());return r?!1:(this.addEntry(n,se.UnknownAtRules,"Unknown at rule ".concat(n.getText())),!0)},t.prototype.visitKeyframe=function(e){var n=e.getKeyword();if(!n)return!1;var r=n.getText();return this.keyframes.add(e.getName(),r,r!=="@keyframes"?n:null),!0},t.prototype.validateKeyframes=function(){var e=["@-webkit-keyframes","@-moz-keyframes","@-o-keyframes"];for(var n in this.keyframes.data){var r=this.keyframes.data[n].names,i=r.indexOf("@keyframes")===-1;if(!(!i&&r.length===1)){var s=this.getMissingNames(e,r);if(s||i)for(var a=0,o=this.keyframes.data[n].nodes;a<o.length;a++){var l=o[a];if(i){var c=at("keyframes.standardrule.missing","Always define standard rule '@keyframes' when defining keyframes.");this.addEntry(l,se.IncludeStandardPropertyWhenUsingVendorPrefix,c)}if(s){var c=at("keyframes.vendorspecific.missing","Always include all vendor specific rules: Missing: {0}",s);this.addEntry(l,se.AllVendorPrefixes,c)}}}}return!0},t.prototype.visitSimpleSelector=function(e){var n=this.documentText.charAt(e.offset);return e.length===1&&n==="*"&&this.addEntry(e,se.UniversalSelector),!0},t.prototype.visitIdentifierSelector=function(e){return this.addEntry(e,se.AvoidIdSelector),!0},t.prototype.visitImport=function(e){return this.addEntry(e,se.ImportStatemement),!0},t.prototype.visitRuleSet=function(e){var n=e.getDeclarations();if(!n)return!1;n.hasChildren()||this.addEntry(e.getSelectors(),se.EmptyRuleSet);for(var r=[],i=0,s=n.getChildren();i<s.length;i++){var a=s[i];a instanceof Ze&&r.push(new Fp(a))}var o=Mp(r);if(o.width){var l=[];if(o.right.value&&(l=gr(l,o.right.properties)),o.left.value&&(l=gr(l,o.left.properties)),l.length!==0){for(var c=0,h=l;c<h.length;c++){var u=h[c];this.addEntry(u.node,se.BewareOfBoxModelSize)}this.addEntry(o.width.node,se.BewareOfBoxModelSize)}}if(o.height){var l=[];if(o.top.value&&(l=gr(l,o.top.properties)),o.bottom.value&&(l=gr(l,o.bottom.properties)),l.length!==0){for(var f=0,m=l;f<m.length;f++){var u=m[f];this.addEntry(u.node,se.BewareOfBoxModelSize)}this.addEntry(o.height.node,se.BewareOfBoxModelSize)}}var g=this.fetchWithValue(r,"display","inline-block");if(g.length>0)for(var b=this.fetch(r,"float"),y=0;y<b.length;y++){var C=b[y].node,k=C.getValue();k&&!k.matches("none")&&this.addEntry(C,se.PropertyIgnoredDueToDisplay,at("rule.propertyIgnoredDueToDisplayInlineBlock","inline-block is ignored due to the float. If 'float' has a value other than 'none', the box is floated and 'display' is treated as 'block'"))}if(g=this.fetchWithValue(r,"display","block"),g.length>0)for(var b=this.fetch(r,"vertical-align"),y=0;y<b.length;y++)this.addEntry(b[y].node,se.PropertyIgnoredDueToDisplay,at("rule.propertyIgnoredDueToDisplayBlock","Property is ignored due to the display. With 'display: block', vertical-align should not be used."));for(var w=this.fetch(r,"float"),y=0;y<w.length;y++){var a=w[y];this.isValidPropertyDeclaration(a)||this.addEntry(a.node,se.AvoidFloat)}for(var F=0;F<r.length;F++){var a=r[F];if(a.fullPropertyName!=="background"&&!this.validProperties[a.fullPropertyName]){var k=a.node.getValue();if(k&&this.documentText.charAt(k.offset)!=="-"){var _=this.fetch(r,a.fullPropertyName);if(_.length>1)for(var P=0;P<_.length;P++){var W=_[P].node.getValue();W&&this.documentText.charAt(W.offset)!=="-"&&_[P]!==a&&this.addEntry(a.node,se.DuplicateDeclarations)}}}}var T=e.getSelectors().matches(":export");if(!T){for(var J=new Xl,re=!1,N=0,R=r;N<R.length;N++){var a=R[N],I=a.node;if(this.isCSSDeclaration(I)){var z=a.fullPropertyName,V=z.charAt(0);if(V==="-"){if(z.charAt(1)!=="-"){!this.cssDataManager.isKnownProperty(z)&&!this.validProperties[z]&&this.addEntry(I.getProperty(),se.UnknownVendorSpecificProperty);var j=I.getNonPrefixedPropertyName();J.add(j,z,I.getProperty())}}else{var D=z;(V==="*"||V==="_")&&(this.addEntry(I.getProperty(),se.IEStarHack),z=z.substr(1)),!this.cssDataManager.isKnownProperty(D)&&!this.cssDataManager.isKnownProperty(z)&&(this.validProperties[z]||this.addEntry(I.getProperty(),se.UnknownProperty,at("property.unknownproperty.detailed","Unknown property: '{0}'",I.getFullPropertyName()))),J.add(z,z,null)}}else re=!0}if(!re)for(var x in J.data){var A=J.data[x],L=A.names,X=this.cssDataManager.isStandardProperty(x)&&L.indexOf(x)===-1;if(!(!X&&L.length===1)){for(var G=[],F=0,ne=t.prefixes.length;F<ne;F++){var De=t.prefixes[F];this.cssDataManager.isStandardProperty(De+x)&&G.push(De+x)}var Se=this.getMissingNames(G,L);if(Se||X)for(var Ae=0,Dt=A.nodes;Ae<Dt.length;Ae++){var ct=Dt[Ae];if(X){var ss=at("property.standard.missing","Also define the standard property '{0}' for compatibility",x);this.addEntry(ct,se.IncludeStandardPropertyWhenUsingVendorPrefix,ss)}if(Se){var ss=at("property.vendorspecific.missing","Always include all vendor specific properties: Missing: {0}",Se);this.addEntry(ct,se.AllVendorPrefixes,ss)}}}}}return!0},t.prototype.visitPrio=function(e){return this.addEntry(e,se.AvoidImportant),!0},t.prototype.visitNumericValue=function(e){var n=e.findParent(v.Function);if(n&&n.getName()==="calc")return!0;var r=e.findParent(v.Declaration);if(r){var i=r.getValue();if(i){var s=e.getValue();if(!s.unit||Al.length.indexOf(s.unit.toLowerCase())===-1)return!0;parseFloat(s.value)===0&&s.unit&&!this.validProperties[r.getFullPropertyName()]&&this.addEntry(e,se.ZeroWithUnit)}}return!0},t.prototype.visitFontFace=function(e){var n=e.getDeclarations();if(!n)return!1;for(var r=!1,i=!1,s=!1,a=0,o=n.getChildren();a<o.length;a++){var l=o[a];if(this.isCSSDeclaration(l)){var c=l.getProperty().getName().toLowerCase();c==="src"&&(r=!0),c==="font-family"&&(i=!0)}else s=!0}return!s&&(!r||!i)&&this.addEntry(e,se.RequiredPropertiesForFontFace),!0},t.prototype.isCSSDeclaration=function(e){if(e instanceof Ze){if(!e.getValue())return!1;var n=e.getProperty();if(!n)return!1;var r=n.getIdentifier();return!(!r||r.containsInterpolation())}return!1},t.prototype.visitHexColorValue=function(e){var n=e.length;return n!==9&&n!==7&&n!==5&&n!==4&&this.addEntry(e,se.HexColorLength),!1},t.prototype.visitFunction=function(e){var n=e.getName().toLowerCase(),r=-1,i=0;switch(n){case"rgb(":case"hsl(":r=3;break;case"rgba(":case"hsla(":r=4;break}return r!==-1&&(e.getArguments().accept(function(s){return s instanceof bi?(i+=1,!1):!0}),i!==r&&this.addEntry(e,se.ArgsInColorFunction)),!0},t.prefixes=["-ms-","-moz-","-o-","-webkit-"],t}(),Gi=function(){function t(e){this.cssDataManager=e}return t.prototype.configure=function(e){this.settings=e},t.prototype.doValidation=function(e,n,r){if(r===void 0&&(r=this.settings),r&&r.validate===!1)return[];var i=[];i.push.apply(i,Lu.entries(n)),i.push.apply(i,zp.entries(n,e,new _p(r&&r.lint),this.cssDataManager));var s=[];for(var a in se)s.push(se[a].id);function o(l){var c=ie.create(e.positionAt(l.getOffset()),e.positionAt(l.getOffset()+l.getLength())),h=e.languageId;return{code:l.getRule().id,source:h,message:l.getMessage(),severity:l.getLevel()===Pe.Warning?ar.Warning:ar.Error,range:c}}return i.filter(function(l){return l.getLevel()!==Pe.Ignore}).map(o)},t}(),Lp=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Yl=47,Pp=10,Ip=13,Tp=12,Wp=36,Op=35,Up=123,In=61,Vp=33,Bp=60,qp=62,Ji=46,ot=p.CustomToken,Xi=ot++,xr=ot++;ot++;var Ql=ot++,Kl=ot++,Zl=ot++,ec=ot++,Sr=ot++;ot++;var tc=function(t){Lp(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.scanNext=function(n){if(this.stream.advanceIfChar(Wp)){var r=["$"];if(this.ident(r))return this.finishToken(n,Xi,r.join(""));this.stream.goBackTo(n)}return this.stream.advanceIfChars([Op,Up])?this.finishToken(n,xr):this.stream.advanceIfChars([In,In])?this.finishToken(n,Ql):this.stream.advanceIfChars([Vp,In])?this.finishToken(n,Kl):this.stream.advanceIfChar(Bp)?this.stream.advanceIfChar(In)?this.finishToken(n,ec):this.finishToken(n,p.Delim):this.stream.advanceIfChar(qp)?this.stream.advanceIfChar(In)?this.finishToken(n,Zl):this.finishToken(n,p.Delim):this.stream.advanceIfChars([Ji,Ji,Ji])?this.finishToken(n,Sr):t.prototype.scanNext.call(this,n)},e.prototype.comment=function(){return t.prototype.comment.call(this)?!0:!this.inURL&&this.stream.advanceIfChars([Yl,Yl])?(this.stream.advanceWhileChar(function(n){switch(n){case Pp:case Ip:case Tp:return!1;default:return!0}}),!0):!1},e}(vn),Yi=Ge(),Qi=function(){function t(e,n){this.id=e,this.message=n}return t}(),Ki={FromExpected:new Qi("scss-fromexpected",Yi("expected.from","'from' expected")),ThroughOrToExpected:new Qi("scss-throughexpected",Yi("expected.through","'through' or 'to' expected")),InExpected:new Qi("scss-fromexpected",Yi("expected.in","'in' expected"))},jp=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),$p=function(t){jp(e,t);function e(){return t.call(this,new tc)||this}return e.prototype._parseStylesheetStatement=function(n){return n===void 0&&(n=!1),this.peek(p.AtKeyword)?this._parseWarnAndDebug()||this._parseControlStatement()||this._parseMixinDeclaration()||this._parseMixinContent()||this._parseMixinReference()||this._parseFunctionDeclaration()||this._parseForward()||this._parseUse()||this._parseRuleset(n)||t.prototype._parseStylesheetAtStatement.call(this,n):this._parseRuleset(!0)||this._parseVariableDeclaration()},e.prototype._parseImport=function(){if(!this.peekKeyword("@import"))return null;var n=this.create(mi);if(this.consumeToken(),!n.addChild(this._parseURILiteral())&&!n.addChild(this._parseStringLiteral()))return this.finish(n,S.URIOrStringExpected);for(;this.accept(p.Comma);)if(!n.addChild(this._parseURILiteral())&&!n.addChild(this._parseStringLiteral()))return this.finish(n,S.URIOrStringExpected);return!this.peek(p.SemiColon)&&!this.peek(p.EOF)&&n.setMedialist(this._parseMediaQueryList()),this.finish(n)},e.prototype._parseVariableDeclaration=function(n){if(n===void 0&&(n=[]),!this.peek(Xi))return null;var r=this.create(rr);if(!r.setVariable(this._parseVariable()))return null;if(!this.accept(p.Colon))return this.finish(r,S.ColonExpected);if(this.prevToken&&(r.colonPosition=this.prevToken.offset),!r.setValue(this._parseExpr()))return this.finish(r,S.VariableValueExpected,[],n);for(;this.peek(p.Exclamation);)if(!r.addChild(this._tryParsePrio())){if(this.consumeToken(),!this.peekRegExp(p.Ident,/^(default|global)$/))return this.finish(r,S.UnknownKeyword);this.consumeToken()}return this.peek(p.SemiColon)&&(r.semicolonPosition=this.token.offset),this.finish(r)},e.prototype._parseMediaCondition=function(){return this._parseInterpolation()||t.prototype._parseMediaCondition.call(this)},e.prototype._parseMediaFeatureName=function(){return this._parseModuleMember()||this._parseFunction()||this._parseIdent()||this._parseVariable()},e.prototype._parseKeyframeSelector=function(){return this._tryParseKeyframeSelector()||this._parseControlStatement(this._parseKeyframeSelector.bind(this))||this._parseVariableDeclaration()||this._parseMixinContent()},e.prototype._parseVariable=function(){if(!this.peek(Xi))return null;var n=this.create(xi);return this.consumeToken(),n},e.prototype._parseModuleMember=function(){var n=this.mark(),r=this.create(Mo);return r.setIdentifier(this._parseIdent([Z.Module]))?this.hasWhitespace()||!this.acceptDelim(".")||this.hasWhitespace()?(this.restoreAtMark(n),null):r.addChild(this._parseVariable()||this._parseFunction())?r:this.finish(r,S.IdentifierOrVariableExpected):null},e.prototype._parseIdent=function(n){var r=this;if(!this.peek(p.Ident)&&!this.peek(xr)&&!this.peekDelim("-"))return null;var i=this.create(We);i.referenceTypes=n,i.isCustomProperty=this.peekRegExp(p.Ident,/^--/);for(var s=!1,a=function(){var o=r.mark();return r.acceptDelim("-")&&(r.hasWhitespace()||r.acceptDelim("-"),r.hasWhitespace())?(r.restoreAtMark(o),null):r._parseInterpolation()};(this.accept(p.Ident)||i.addChild(a())||s&&this.acceptRegexp(/^[\w-]/))&&(s=!0,!this.hasWhitespace()););return s?this.finish(i):null},e.prototype._parseTermExpression=function(){return this._parseModuleMember()||this._parseVariable()||this._parseSelectorCombinator()||t.prototype._parseTermExpression.call(this)},e.prototype._parseInterpolation=function(){if(this.peek(xr)){var n=this.create(wi);return this.consumeToken(),!n.addChild(this._parseExpr())&&!this._parseSelectorCombinator()?this.accept(p.CurlyR)?this.finish(n):this.finish(n,S.ExpressionExpected):this.accept(p.CurlyR)?this.finish(n):this.finish(n,S.RightCurlyExpected)}return null},e.prototype._parseOperator=function(){if(this.peek(Ql)||this.peek(Kl)||this.peek(Zl)||this.peek(ec)||this.peekDelim(">")||this.peekDelim("<")||this.peekIdent("and")||this.peekIdent("or")||this.peekDelim("%")){var n=this.createNode(v.Operator);return this.consumeToken(),this.finish(n)}return t.prototype._parseOperator.call(this)},e.prototype._parseUnaryOperator=function(){if(this.peekIdent("not")){var n=this.create(U);return this.consumeToken(),this.finish(n)}return t.prototype._parseUnaryOperator.call(this)},e.prototype._parseRuleSetDeclaration=function(){return this.peek(p.AtKeyword)?this._parseKeyframe()||this._parseImport()||this._parseMedia(!0)||this._parseFontFace()||this._parseWarnAndDebug()||this._parseControlStatement()||this._parseFunctionDeclaration()||this._parseExtends()||this._parseMixinReference()||this._parseMixinContent()||this._parseMixinDeclaration()||this._parseRuleset(!0)||this._parseSupports(!0)||t.prototype._parseRuleSetDeclarationAtStatement.call(this):this._parseVariableDeclaration()||this._tryParseRuleset(!0)||t.prototype._parseRuleSetDeclaration.call(this)},e.prototype._parseDeclaration=function(n){var r=this._tryParseCustomPropertyDeclaration(n);if(r)return r;var i=this.create(Ze);if(!i.setProperty(this._parseProperty()))return null;if(!this.accept(p.Colon))return this.finish(i,S.ColonExpected,[p.Colon],n||[p.SemiColon]);this.prevToken&&(i.colonPosition=this.prevToken.offset);var s=!1;if(i.setValue(this._parseExpr())&&(s=!0,i.addChild(this._parsePrio())),this.peek(p.CurlyL))i.setNestedProperties(this._parseNestedProperties());else if(!s)return this.finish(i,S.PropertyValueExpected);return this.peek(p.SemiColon)&&(i.semicolonPosition=this.token.offset),this.finish(i)},e.prototype._parseNestedProperties=function(){var n=this.create(ko);return this._parseBody(n,this._parseDeclaration.bind(this))},e.prototype._parseExtends=function(){if(this.peekKeyword("@extend")){var n=this.create(Sn);if(this.consumeToken(),!n.getSelectors().addChild(this._parseSimpleSelector()))return this.finish(n,S.SelectorExpected);for(;this.accept(p.Comma);)n.getSelectors().addChild(this._parseSimpleSelector());return this.accept(p.Exclamation)&&!this.acceptIdent("optional")?this.finish(n,S.UnknownKeyword):this.finish(n)}return null},e.prototype._parseSimpleSelectorBody=function(){return this._parseSelectorCombinator()||this._parseSelectorPlaceholder()||t.prototype._parseSimpleSelectorBody.call(this)},e.prototype._parseSelectorCombinator=function(){if(this.peekDelim("&")){var n=this.createNode(v.SelectorCombinator);for(this.consumeToken();!this.hasWhitespace()&&(this.acceptDelim("-")||this.accept(p.Num)||this.accept(p.Dimension)||n.addChild(this._parseIdent())||this.acceptDelim("&")););return this.finish(n)}return null},e.prototype._parseSelectorPlaceholder=function(){if(this.peekDelim("%")){var n=this.createNode(v.SelectorPlaceholder);return this.consumeToken(),this._parseIdent(),this.finish(n)}else if(this.peekKeyword("@at-root")){var n=this.createNode(v.SelectorPlaceholder);return this.consumeToken(),this.finish(n)}return null},e.prototype._parseElementName=function(){var n=this.mark(),r=t.prototype._parseElementName.call(this);return r&&!this.hasWhitespace()&&this.peek(p.ParenthesisL)?(this.restoreAtMark(n),null):r},e.prototype._tryParsePseudoIdentifier=function(){return this._parseInterpolation()||t.prototype._tryParsePseudoIdentifier.call(this)},e.prototype._parseWarnAndDebug=function(){if(!this.peekKeyword("@debug")&&!this.peekKeyword("@warn")&&!this.peekKeyword("@error"))return null;var n=this.createNode(v.Debug);return this.consumeToken(),n.addChild(this._parseExpr()),this.finish(n)},e.prototype._parseControlStatement=function(n){return n===void 0&&(n=this._parseRuleSetDeclaration.bind(this)),this.peek(p.AtKeyword)?this._parseIfStatement(n)||this._parseForStatement(n)||this._parseEachStatement(n)||this._parseWhileStatement(n):null},e.prototype._parseIfStatement=function(n){return this.peekKeyword("@if")?this._internalParseIfStatement(n):null},e.prototype._internalParseIfStatement=function(n){var r=this.create(ou);if(this.consumeToken(),!r.setExpression(this._parseExpr(!0)))return this.finish(r,S.ExpressionExpected);if(this._parseBody(r,n),this.acceptKeyword("@else")){if(this.peekIdent("if"))r.setElseClause(this._internalParseIfStatement(n));else if(this.peek(p.CurlyL)){var i=this.create(du);this._parseBody(i,n),r.setElseClause(i)}}return this.finish(r)},e.prototype._parseForStatement=function(n){if(!this.peekKeyword("@for"))return null;var r=this.create(lu);return this.consumeToken(),r.setVariable(this._parseVariable())?this.acceptIdent("from")?r.addChild(this._parseBinaryExpr())?!this.acceptIdent("to")&&!this.acceptIdent("through")?this.finish(r,Ki.ThroughOrToExpected,[p.CurlyR]):r.addChild(this._parseBinaryExpr())?this._parseBody(r,n):this.finish(r,S.ExpressionExpected,[p.CurlyR]):this.finish(r,S.ExpressionExpected,[p.CurlyR]):this.finish(r,Ki.FromExpected,[p.CurlyR]):this.finish(r,S.VariableNameExpected,[p.CurlyR])},e.prototype._parseEachStatement=function(n){if(!this.peekKeyword("@each"))return null;var r=this.create(cu);this.consumeToken();var i=r.getVariables();if(!i.addChild(this._parseVariable()))return this.finish(r,S.VariableNameExpected,[p.CurlyR]);for(;this.accept(p.Comma);)if(!i.addChild(this._parseVariable()))return this.finish(r,S.VariableNameExpected,[p.CurlyR]);return this.finish(i),this.acceptIdent("in")?r.addChild(this._parseExpr())?this._parseBody(r,n):this.finish(r,S.ExpressionExpected,[p.CurlyR]):this.finish(r,Ki.InExpected,[p.CurlyR])},e.prototype._parseWhileStatement=function(n){if(!this.peekKeyword("@while"))return null;var r=this.create(hu);return this.consumeToken(),r.addChild(this._parseBinaryExpr())?this._parseBody(r,n):this.finish(r,S.ExpressionExpected,[p.CurlyR])},e.prototype._parseFunctionBodyDeclaration=function(){return this._parseVariableDeclaration()||this._parseReturnStatement()||this._parseWarnAndDebug()||this._parseControlStatement(this._parseFunctionBodyDeclaration.bind(this))},e.prototype._parseFunctionDeclaration=function(){if(!this.peekKeyword("@function"))return null;var n=this.create(nr);if(this.consumeToken(),!n.setIdentifier(this._parseIdent([Z.Function])))return this.finish(n,S.IdentifierExpected,[p.CurlyR]);if(!this.accept(p.ParenthesisL))return this.finish(n,S.LeftParenthesisExpected,[p.CurlyR]);if(n.getParameters().addChild(this._parseParameterDeclaration())){for(;this.accept(p.Comma)&&!this.peek(p.ParenthesisR);)if(!n.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(n,S.VariableNameExpected)}return this.accept(p.ParenthesisR)?this._parseBody(n,this._parseFunctionBodyDeclaration.bind(this)):this.finish(n,S.RightParenthesisExpected,[p.CurlyR])},e.prototype._parseReturnStatement=function(){if(!this.peekKeyword("@return"))return null;var n=this.createNode(v.ReturnStatement);return this.consumeToken(),n.addChild(this._parseExpr())?this.finish(n):this.finish(n,S.ExpressionExpected)},e.prototype._parseMixinDeclaration=function(){if(!this.peekKeyword("@mixin"))return null;var n=this.create(Cn);if(this.consumeToken(),!n.setIdentifier(this._parseIdent([Z.Mixin])))return this.finish(n,S.IdentifierExpected,[p.CurlyR]);if(this.accept(p.ParenthesisL)){if(n.getParameters().addChild(this._parseParameterDeclaration())){for(;this.accept(p.Comma)&&!this.peek(p.ParenthesisR);)if(!n.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(n,S.VariableNameExpected)}if(!this.accept(p.ParenthesisR))return this.finish(n,S.RightParenthesisExpected,[p.CurlyR])}return this._parseBody(n,this._parseRuleSetDeclaration.bind(this))},e.prototype._parseParameterDeclaration=function(){var n=this.create(tr);return n.setIdentifier(this._parseVariable())?(this.accept(Sr),this.accept(p.Colon)&&!n.setDefaultValue(this._parseExpr(!0))?this.finish(n,S.VariableValueExpected,[],[p.Comma,p.ParenthesisR]):this.finish(n)):null},e.prototype._parseMixinContent=function(){if(!this.peekKeyword("@content"))return null;var n=this.create(Du);if(this.consumeToken(),this.accept(p.ParenthesisL)){if(n.getArguments().addChild(this._parseFunctionArgument())){for(;this.accept(p.Comma)&&!this.peek(p.ParenthesisR);)if(!n.getArguments().addChild(this._parseFunctionArgument()))return this.finish(n,S.ExpressionExpected)}if(!this.accept(p.ParenthesisR))return this.finish(n,S.RightParenthesisExpected)}return this.finish(n)},e.prototype._parseMixinReference=function(){if(!this.peekKeyword("@include"))return null;var n=this.create(ir);this.consumeToken();var r=this._parseIdent([Z.Mixin]);if(!n.setIdentifier(r))return this.finish(n,S.IdentifierExpected,[p.CurlyR]);if(!this.hasWhitespace()&&this.acceptDelim(".")&&!this.hasWhitespace()){var i=this._parseIdent([Z.Mixin]);if(!i)return this.finish(n,S.IdentifierExpected,[p.CurlyR]);var s=this.create(Mo);r.referenceTypes=[Z.Module],s.setIdentifier(r),n.setIdentifier(i),n.addChild(s)}if(this.accept(p.ParenthesisL)){if(n.getArguments().addChild(this._parseFunctionArgument())){for(;this.accept(p.Comma)&&!this.peek(p.ParenthesisR);)if(!n.getArguments().addChild(this._parseFunctionArgument()))return this.finish(n,S.ExpressionExpected)}if(!this.accept(p.ParenthesisR))return this.finish(n,S.RightParenthesisExpected)}return(this.peekIdent("using")||this.peek(p.CurlyL))&&n.setContent(this._parseMixinContentDeclaration()),this.finish(n)},e.prototype._parseMixinContentDeclaration=function(){var n=this.create(Au);if(this.acceptIdent("using")){if(!this.accept(p.ParenthesisL))return this.finish(n,S.LeftParenthesisExpected,[p.CurlyL]);if(n.getParameters().addChild(this._parseParameterDeclaration())){for(;this.accept(p.Comma)&&!this.peek(p.ParenthesisR);)if(!n.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(n,S.VariableNameExpected)}if(!this.accept(p.ParenthesisR))return this.finish(n,S.RightParenthesisExpected,[p.CurlyL])}return this.peek(p.CurlyL)&&this._parseBody(n,this._parseMixinReferenceBodyStatement.bind(this)),this.finish(n)},e.prototype._parseMixinReferenceBodyStatement=function(){return this._tryParseKeyframeSelector()||this._parseRuleSetDeclaration()},e.prototype._parseFunctionArgument=function(){var n=this.create(Yt),r=this.mark(),i=this._parseVariable();if(i)if(this.accept(p.Colon))n.setIdentifier(i);else{if(this.accept(Sr))return n.setValue(i),this.finish(n);this.restoreAtMark(r)}return n.setValue(this._parseExpr(!0))?(this.accept(Sr),n.addChild(this._parsePrio()),this.finish(n)):n.setValue(this._tryParsePrio())?this.finish(n):null},e.prototype._parseURLArgument=function(){var n=this.mark(),r=t.prototype._parseURLArgument.call(this);if(!r||!this.peek(p.ParenthesisR)){this.restoreAtMark(n);var i=this.create(U);return i.addChild(this._parseBinaryExpr()),this.finish(i)}return r},e.prototype._parseOperation=function(){if(!this.peek(p.ParenthesisL))return null;var n=this.create(U);for(this.consumeToken();n.addChild(this._parseListElement());)this.accept(p.Comma);return this.accept(p.ParenthesisR)?this.finish(n):this.finish(n,S.RightParenthesisExpected)},e.prototype._parseListElement=function(){var n=this.create(Nu),r=this._parseBinaryExpr();if(!r)return null;if(this.accept(p.Colon)){if(n.setKey(r),!n.setValue(this._parseBinaryExpr()))return this.finish(n,S.ExpressionExpected)}else n.setValue(r);return this.finish(n)},e.prototype._parseUse=function(){if(!this.peekKeyword("@use"))return null;var n=this.create(pu);if(this.consumeToken(),!n.addChild(this._parseStringLiteral()))return this.finish(n,S.StringLiteralExpected);if(!this.peek(p.SemiColon)&&!this.peek(p.EOF)){if(!this.peekRegExp(p.Ident,/as|with/))return this.finish(n,S.UnknownKeyword);if(this.acceptIdent("as")&&!n.setIdentifier(this._parseIdent([Z.Module]))&&!this.acceptDelim("*"))return this.finish(n,S.IdentifierOrWildcardExpected);if(this.acceptIdent("with")){if(!this.accept(p.ParenthesisL))return this.finish(n,S.LeftParenthesisExpected,[p.ParenthesisR]);if(!n.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(n,S.VariableNameExpected);for(;this.accept(p.Comma)&&!this.peek(p.ParenthesisR);)if(!n.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(n,S.VariableNameExpected);if(!this.accept(p.ParenthesisR))return this.finish(n,S.RightParenthesisExpected)}}return!this.accept(p.SemiColon)&&!this.accept(p.EOF)?this.finish(n,S.SemiColonExpected):this.finish(n)},e.prototype._parseModuleConfigDeclaration=function(){var n=this.create(fu);return n.setIdentifier(this._parseVariable())?!this.accept(p.Colon)||!n.setValue(this._parseExpr(!0))?this.finish(n,S.VariableValueExpected,[],[p.Comma,p.ParenthesisR]):this.accept(p.Exclamation)&&(this.hasWhitespace()||!this.acceptIdent("default"))?this.finish(n,S.UnknownKeyword):this.finish(n):null},e.prototype._parseForward=function(){if(!this.peekKeyword("@forward"))return null;var n=this.create(mu);if(this.consumeToken(),!n.addChild(this._parseStringLiteral()))return this.finish(n,S.StringLiteralExpected);if(this.acceptIdent("with")){if(!this.accept(p.ParenthesisL))return this.finish(n,S.LeftParenthesisExpected,[p.ParenthesisR]);if(!n.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(n,S.VariableNameExpected);for(;this.accept(p.Comma)&&!this.peek(p.ParenthesisR);)if(!n.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(n,S.VariableNameExpected);if(!this.accept(p.ParenthesisR))return this.finish(n,S.RightParenthesisExpected)}if(!this.peek(p.SemiColon)&&!this.peek(p.EOF)){if(!this.peekRegExp(p.Ident,/as|hide|show/))return this.finish(n,S.UnknownKeyword);if(this.acceptIdent("as")){var r=this._parseIdent([Z.Forward]);if(!n.setIdentifier(r))return this.finish(n,S.IdentifierExpected);if(this.hasWhitespace()||!this.acceptDelim("*"))return this.finish(n,S.WildcardExpected)}if((this.peekIdent("hide")||this.peekIdent("show"))&&!n.addChild(this._parseForwardVisibility()))return this.finish(n,S.IdentifierOrVariableExpected)}return!this.accept(p.SemiColon)&&!this.accept(p.EOF)?this.finish(n,S.SemiColonExpected):this.finish(n)},e.prototype._parseForwardVisibility=function(){var n=this.create(gu);for(n.setIdentifier(this._parseIdent());n.addChild(this._parseVariable()||this._parseIdent());)this.accept(p.Comma);return n.getChildren().length>1?n:null},e.prototype._parseSupportsCondition=function(){return this._parseInterpolation()||t.prototype._parseSupportsCondition.call(this)},e}(Ni),Hp=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),M=Ge(),Gp=function(t){Hp(e,t);function e(n,r){var i=t.call(this,"$",n,r)||this;return nc(e.scssModuleLoaders),nc(e.scssModuleBuiltIns),i}return e.prototype.isImportPathParent=function(n){return n===v.Forward||n===v.Use||t.prototype.isImportPathParent.call(this,n)},e.prototype.getCompletionForImportPath=function(n,r){var i=n.getParent().type;if(i===v.Forward||i===v.Use)for(var s=0,a=e.scssModuleBuiltIns;s<a.length;s++){var o=a[s],l={label:o.label,documentation:o.documentation,textEdit:H.replace(this.getCompletionRange(n),"'".concat(o.label,"'")),kind:$.Module};r.items.push(l)}return t.prototype.getCompletionForImportPath.call(this,n,r)},e.prototype.createReplaceFunction=function(){var n=1;return function(r,i){return"\\"+i+": ${"+n+++":"+(e.variableDefaults[i]||"")+"}"}},e.prototype.createFunctionProposals=function(n,r,i,s){for(var a=0,o=n;a<o.length;a++){var l=o[a],c=l.func.replace(/\[?(\$\w+)\]?/g,this.createReplaceFunction()),h=l.func.substr(0,l.func.indexOf("(")),u={label:h,detail:l.func,documentation:l.desc,textEdit:H.replace(this.getCompletionRange(r),c),insertTextFormat:Ie.Snippet,kind:$.Function};i&&(u.sortText="z"),s.items.push(u)}return s},e.prototype.getCompletionsForSelector=function(n,r,i){return this.createFunctionProposals(e.selectorFuncs,null,!0,i),t.prototype.getCompletionsForSelector.call(this,n,r,i)},e.prototype.getTermProposals=function(n,r,i){var s=e.builtInFuncs;return n&&(s=s.filter(function(a){return!a.type||!n.restrictions||n.restrictions.indexOf(a.type)!==-1})),this.createFunctionProposals(s,r,!0,i),t.prototype.getTermProposals.call(this,n,r,i)},e.prototype.getColorProposals=function(n,r,i){return this.createFunctionProposals(e.colorProposals,r,!1,i),t.prototype.getColorProposals.call(this,n,r,i)},e.prototype.getCompletionsForDeclarationProperty=function(n,r){return this.getCompletionForAtDirectives(r),this.getCompletionsForSelector(null,!0,r),t.prototype.getCompletionsForDeclarationProperty.call(this,n,r)},e.prototype.getCompletionsForExtendsReference=function(n,r,i){for(var s=this.getSymbolContext().findSymbolsAtOffset(this.offset,Z.Rule),a=0,o=s;a<o.length;a++){var l=o[a],c={label:l.name,textEdit:H.replace(this.getCompletionRange(r),l.name),kind:$.Function};i.items.push(c)}return i},e.prototype.getCompletionForAtDirectives=function(n){var r;return(r=n.items).push.apply(r,e.scssAtDirectives),n},e.prototype.getCompletionForTopLevel=function(n){return this.getCompletionForAtDirectives(n),this.getCompletionForModuleLoaders(n),t.prototype.getCompletionForTopLevel.call(this,n),n},e.prototype.getCompletionForModuleLoaders=function(n){var r;return(r=n.items).push.apply(r,e.scssModuleLoaders),n},e.variableDefaults={$red:"1",$green:"2",$blue:"3",$alpha:"1.0",$color:"#000000",$weight:"0.5",$hue:"0",$saturation:"0%",$lightness:"0%",$degrees:"0",$amount:"0",$string:'""',$substring:'"s"',$number:"0",$limit:"1"},e.colorProposals=[{func:"red($color)",desc:M("scss.builtin.red","Gets the red component of a color.")},{func:"green($color)",desc:M("scss.builtin.green","Gets the green component of a color.")},{func:"blue($color)",desc:M("scss.builtin.blue","Gets the blue component of a color.")},{func:"mix($color, $color, [$weight])",desc:M("scss.builtin.mix","Mixes two colors together.")},{func:"hue($color)",desc:M("scss.builtin.hue","Gets the hue component of a color.")},{func:"saturation($color)",desc:M("scss.builtin.saturation","Gets the saturation component of a color.")},{func:"lightness($color)",desc:M("scss.builtin.lightness","Gets the lightness component of a color.")},{func:"adjust-hue($color, $degrees)",desc:M("scss.builtin.adjust-hue","Changes the hue of a color.")},{func:"lighten($color, $amount)",desc:M("scss.builtin.lighten","Makes a color lighter.")},{func:"darken($color, $amount)",desc:M("scss.builtin.darken","Makes a color darker.")},{func:"saturate($color, $amount)",desc:M("scss.builtin.saturate","Makes a color more saturated.")},{func:"desaturate($color, $amount)",desc:M("scss.builtin.desaturate","Makes a color less saturated.")},{func:"grayscale($color)",desc:M("scss.builtin.grayscale","Converts a color to grayscale.")},{func:"complement($color)",desc:M("scss.builtin.complement","Returns the complement of a color.")},{func:"invert($color)",desc:M("scss.builtin.invert","Returns the inverse of a color.")},{func:"alpha($color)",desc:M("scss.builtin.alpha","Gets the opacity component of a color.")},{func:"opacity($color)",desc:"Gets the alpha component (opacity) of a color."},{func:"rgba($color, $alpha)",desc:M("scss.builtin.rgba","Changes the alpha component for a color.")},{func:"opacify($color, $amount)",desc:M("scss.builtin.opacify","Makes a color more opaque.")},{func:"fade-in($color, $amount)",desc:M("scss.builtin.fade-in","Makes a color more opaque.")},{func:"transparentize($color, $amount)",desc:M("scss.builtin.transparentize","Makes a color more transparent.")},{func:"fade-out($color, $amount)",desc:M("scss.builtin.fade-out","Makes a color more transparent.")},{func:"adjust-color($color, [$red], [$green], [$blue], [$hue], [$saturation], [$lightness], [$alpha])",desc:M("scss.builtin.adjust-color","Increases or decreases one or more components of a color.")},{func:"scale-color($color, [$red], [$green], [$blue], [$saturation], [$lightness], [$alpha])",desc:M("scss.builtin.scale-color","Fluidly scales one or more properties of a color.")},{func:"change-color($color, [$red], [$green], [$blue], [$hue], [$saturation], [$lightness], [$alpha])",desc:M("scss.builtin.change-color","Changes one or more properties of a color.")},{func:"ie-hex-str($color)",desc:M("scss.builtin.ie-hex-str","Converts a color into the format understood by IE filters.")}],e.selectorFuncs=[{func:"selector-nest($selectors…)",desc:M("scss.builtin.selector-nest","Nests selector beneath one another like they would be nested in the stylesheet.")},{func:"selector-append($selectors…)",desc:M("scss.builtin.selector-append","Appends selectors to one another without spaces in between.")},{func:"selector-extend($selector, $extendee, $extender)",desc:M("scss.builtin.selector-extend","Extends $extendee with $extender within $selector.")},{func:"selector-replace($selector, $original, $replacement)",desc:M("scss.builtin.selector-replace","Replaces $original with $replacement within $selector.")},{func:"selector-unify($selector1, $selector2)",desc:M("scss.builtin.selector-unify","Unifies two selectors to produce a selector that matches elements matched by both.")},{func:"is-superselector($super, $sub)",desc:M("scss.builtin.is-superselector","Returns whether $super matches all the elements $sub does, and possibly more.")},{func:"simple-selectors($selector)",desc:M("scss.builtin.simple-selectors","Returns the simple selectors that comprise a compound selector.")},{func:"selector-parse($selector)",desc:M("scss.builtin.selector-parse","Parses a selector into the format returned by &.")}],e.builtInFuncs=[{func:"unquote($string)",desc:M("scss.builtin.unquote","Removes quotes from a string.")},{func:"quote($string)",desc:M("scss.builtin.quote","Adds quotes to a string.")},{func:"str-length($string)",desc:M("scss.builtin.str-length","Returns the number of characters in a string.")},{func:"str-insert($string, $insert, $index)",desc:M("scss.builtin.str-insert","Inserts $insert into $string at $index.")},{func:"str-index($string, $substring)",desc:M("scss.builtin.str-index","Returns the index of the first occurance of $substring in $string.")},{func:"str-slice($string, $start-at, [$end-at])",desc:M("scss.builtin.str-slice","Extracts a substring from $string.")},{func:"to-upper-case($string)",desc:M("scss.builtin.to-upper-case","Converts a string to upper case.")},{func:"to-lower-case($string)",desc:M("scss.builtin.to-lower-case","Converts a string to lower case.")},{func:"percentage($number)",desc:M("scss.builtin.percentage","Converts a unitless number to a percentage."),type:"percentage"},{func:"round($number)",desc:M("scss.builtin.round","Rounds a number to the nearest whole number.")},{func:"ceil($number)",desc:M("scss.builtin.ceil","Rounds a number up to the next whole number.")},{func:"floor($number)",desc:M("scss.builtin.floor","Rounds a number down to the previous whole number.")},{func:"abs($number)",desc:M("scss.builtin.abs","Returns the absolute value of a number.")},{func:"min($numbers)",desc:M("scss.builtin.min","Finds the minimum of several numbers.")},{func:"max($numbers)",desc:M("scss.builtin.max","Finds the maximum of several numbers.")},{func:"random([$limit])",desc:M("scss.builtin.random","Returns a random number.")},{func:"length($list)",desc:M("scss.builtin.length","Returns the length of a list.")},{func:"nth($list, $n)",desc:M("scss.builtin.nth","Returns a specific item in a list.")},{func:"set-nth($list, $n, $value)",desc:M("scss.builtin.set-nth","Replaces the nth item in a list.")},{func:"join($list1, $list2, [$separator])",desc:M("scss.builtin.join","Joins together two lists into one.")},{func:"append($list1, $val, [$separator])",desc:M("scss.builtin.append","Appends a single value onto the end of a list.")},{func:"zip($lists)",desc:M("scss.builtin.zip","Combines several lists into a single multidimensional list.")},{func:"index($list, $value)",desc:M("scss.builtin.index","Returns the position of a value within a list.")},{func:"list-separator(#list)",desc:M("scss.builtin.list-separator","Returns the separator of a list.")},{func:"map-get($map, $key)",desc:M("scss.builtin.map-get","Returns the value in a map associated with a given key.")},{func:"map-merge($map1, $map2)",desc:M("scss.builtin.map-merge","Merges two maps together into a new map.")},{func:"map-remove($map, $keys)",desc:M("scss.builtin.map-remove","Returns a new map with keys removed.")},{func:"map-keys($map)",desc:M("scss.builtin.map-keys","Returns a list of all keys in a map.")},{func:"map-values($map)",desc:M("scss.builtin.map-values","Returns a list of all values in a map.")},{func:"map-has-key($map, $key)",desc:M("scss.builtin.map-has-key","Returns whether a map has a value associated with a given key.")},{func:"keywords($args)",desc:M("scss.builtin.keywords","Returns the keywords passed to a function that takes variable arguments.")},{func:"feature-exists($feature)",desc:M("scss.builtin.feature-exists","Returns whether a feature exists in the current Sass runtime.")},{func:"variable-exists($name)",desc:M("scss.builtin.variable-exists","Returns whether a variable with the given name exists in the current scope.")},{func:"global-variable-exists($name)",desc:M("scss.builtin.global-variable-exists","Returns whether a variable with the given name exists in the global scope.")},{func:"function-exists($name)",desc:M("scss.builtin.function-exists","Returns whether a function with the given name exists.")},{func:"mixin-exists($name)",desc:M("scss.builtin.mixin-exists","Returns whether a mixin with the given name exists.")},{func:"inspect($value)",desc:M("scss.builtin.inspect","Returns the string representation of a value as it would be represented in Sass.")},{func:"type-of($value)",desc:M("scss.builtin.type-of","Returns the type of a value.")},{func:"unit($number)",desc:M("scss.builtin.unit","Returns the unit(s) associated with a number.")},{func:"unitless($number)",desc:M("scss.builtin.unitless","Returns whether a number has units.")},{func:"comparable($number1, $number2)",desc:M("scss.builtin.comparable","Returns whether two numbers can be added, subtracted, or compared.")},{func:"call($name, $args…)",desc:M("scss.builtin.call","Dynamically calls a Sass function.")}],e.scssAtDirectives=[{label:"@extend",documentation:M("scss.builtin.@extend","Inherits the styles of another selector."),kind:$.Keyword},{label:"@at-root",documentation:M("scss.builtin.@at-root","Causes one or more rules to be emitted at the root of the document."),kind:$.Keyword},{label:"@debug",documentation:M("scss.builtin.@debug","Prints the value of an expression to the standard error output stream. Useful for debugging complicated Sass files."),kind:$.Keyword},{label:"@warn",documentation:M("scss.builtin.@warn","Prints the value of an expression to the standard error output stream. Useful for libraries that need to warn users of deprecations or recovering from minor mixin usage mistakes. Warnings can be turned off with the `--quiet` command-line option or the `:quiet` Sass option."),kind:$.Keyword},{label:"@error",documentation:M("scss.builtin.@error","Throws the value of an expression as a fatal error with stack trace. Useful for validating arguments to mixins and functions."),kind:$.Keyword},{label:"@if",documentation:M("scss.builtin.@if","Includes the body if the expression does not evaluate to `false` or `null`."),insertText:`@if \${1:expr} {
|
|
38
|
+
`);return[{language:"html",value:n}]},t.prototype.doPrint=function(e,n){for(var r=0,i=e;r<i.length;r++){var s=i[r];this.doPrintElement(s,n),s.children&&this.doPrint(s.children,n+1)}},t.prototype.writeLine=function(e,n){var r=new Array(e+1).join(" ");this.result.push(r+n)},t.prototype.doPrintElement=function(e,n){var r=e.findAttribute("name");if(e instanceof Vi||r==="…"){this.writeLine(n,r);return}var i=["<"];if(r?i.push(r):i.push("element"),e.attributes)for(var s=0,a=e.attributes;s<a.length;s++){var o=a[s];if(o.name!=="name"){i.push(" "),i.push(o.name);var l=o.value;l&&(i.push("="),i.push(st.ensure(l,this.quote)))}}i.push(">"),this.writeLine(n,i.join(""))},t}(),st;(function(t){function e(r,i){return i+n(r)+i}t.ensure=e;function n(r){var i=r.match(/^['"](.*)["']$/);return i?i[1]:r}t.remove=n})(st||(st={}));var Vl=function(){function t(){this.id=0,this.attr=0,this.tag=0}return t}();function Bl(t,e){for(var n=new Ui,r=0,i=t.getChildren();r<i.length;r++){var s=i[r];switch(s.type){case v.SelectorCombinator:if(e){var a=s.getText().split("&");if(a.length===1){n.addAttr("name",a[0]);break}if(n=e.cloneWithParent(),a[0]){var o=n.findRoot();o.prepend(a[0])}for(var l=1;l<a.length;l++){if(l>1){var c=e.cloneWithParent();n.addChild(c.findRoot()),n=c}n.append(a[l])}}break;case v.SelectorPlaceholder:if(s.matches("@at-root"))return n;case v.ElementNameSelector:var h=s.getText();n.addAttr("name",h==="*"?"element":Ve(h));break;case v.ClassSelector:n.addAttr("class",Ve(s.getText().substring(1)));break;case v.IdentifierSelector:n.addAttr("id",Ve(s.getText().substring(1)));break;case v.MixinDeclaration:n.addAttr("class",s.getName());break;case v.PseudoSelector:n.addAttr(Ve(s.getText()),"");break;case v.AttributeSelector:var u=s,f=u.getIdentifier();if(f){var m=u.getValue(),g=u.getOperator(),b=void 0;if(m&&g)switch(Ve(g.getText())){case"|=":b="".concat(st.remove(Ve(m.getText())),"-…");break;case"^=":b="".concat(st.remove(Ve(m.getText())),"…");break;case"$=":b="…".concat(st.remove(Ve(m.getText())));break;case"~=":b=" … ".concat(st.remove(Ve(m.getText()))," … ");break;case"*=":b="…".concat(st.remove(Ve(m.getText())),"…");break;default:b=st.remove(Ve(m.getText()));break}n.addAttr(Ve(f.getText()),b)}break}}return n}function Ve(t){var e=new vn;e.setSource(t);var n=e.scanUnquotedString();return n?n.text:t}var bp=function(){function t(e){this.cssDataManager=e}return t.prototype.selectorToMarkedString=function(e){var n=wp(e);if(n){var r=new Ul('"').print(n);return r.push(this.selectorToSpecificityMarkedString(e)),r}else return[]},t.prototype.simpleSelectorToMarkedString=function(e){var n=Bl(e),r=new Ul('"').print(n);return r.push(this.selectorToSpecificityMarkedString(e)),r},t.prototype.isPseudoElementIdentifier=function(e){var n=e.match(/^::?([\w-]+)/);return n?!!this.cssDataManager.getPseudoElement("::"+n[1]):!1},t.prototype.selectorToSpecificityMarkedString=function(e){var n=this,r=function(s){var a=new Vl;e:for(var o=0,l=s.getChildren();o<l.length;o++){var c=l[o];switch(c.type){case v.IdentifierSelector:a.id++;break;case v.ClassSelector:case v.AttributeSelector:a.attr++;break;case v.ElementNameSelector:if(c.matches("*"))break;a.tag++;break;case v.PseudoSelector:var h=c.getText();if(n.isPseudoElementIdentifier(h)){a.tag++;break}if(h.match(/^:where/i))continue e;if(h.match(/^:(not|has|is)/i)&&c.getChildren().length>0){for(var u=new Vl,f=0,m=c.getChildren();f<m.length;f++){var g=m[f];g.type===v.Undefined&&g.getChildren();for(var b=0,y=g.getChildren();b<y.length;b++){var C=y[b],k=r(C);if(k.id>u.id){u=k;continue}else if(k.id<u.id)continue;if(k.attr>u.attr){u=k;continue}else if(k.attr<u.attr)continue;if(k.tag>u.tag){u=k;continue}}}a.id+=u.id,a.attr+=u.attr,a.tag+=u.tag;continue e}a.attr++;break}if(c.getChildren().length>0){var k=r(c);a.id+=k.id,a.attr+=k.attr,a.tag+=k.tag}}return a},i=r(e);return gp("specificity","[Selector Specificity](https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity): ({0}, {1}, {2})",i.id,i.attr,i.tag)},t}(),vp=function(){function t(e){this.prev=null,this.element=e}return t.prototype.processSelector=function(e){var n=null;if(!(this.element instanceof tn)&&e.getChildren().some(function(h){return h.hasChildren()&&h.getChild(0).type===v.SelectorCombinator})){var r=this.element.findRoot();r.parent instanceof tn&&(n=this.element,this.element=r.parent,this.element.removeChild(r),this.prev=null)}for(var i=0,s=e.getChildren();i<s.length;i++){var a=s[i];if(a instanceof Xt){if(this.prev instanceof Xt){var o=new Vi("…");this.element.addChild(o),this.element=o}else this.prev&&(this.prev.matches("+")||this.prev.matches("~"))&&this.element.parent&&(this.element=this.element.parent);this.prev&&this.prev.matches("~")&&this.element.addChild(new Vi("⋮"));var l=Bl(a,n),c=l.findRoot();this.element.addChild(c),this.element=l}(a instanceof Xt||a.type===v.SelectorCombinatorParent||a.type===v.SelectorCombinatorShadowPiercingDescendant||a.type===v.SelectorCombinatorSibling||a.type===v.SelectorCombinatorAllSiblings)&&(this.prev=a)}},t}();function yp(t){switch(t.type){case v.MixinDeclaration:case v.Stylesheet:return!0}return!1}function wp(t){if(t.matches("@at-root"))return null;var e=new tn,n=[],r=t.getParent();if(r instanceof Jt)for(var i=r.getParent();i&&!yp(i);){if(i instanceof Jt){if(i.getSelectors().matches("@at-root"))break;n.push(i)}i=i.getParent()}for(var s=new vp(e),a=n.length-1;a>=0;a--){var o=n[a].getSelectors().getChild(0);o&&s.processSelector(o)}return s.processSelector(t),e}var Bi=function(){function t(e,n){this.clientCapabilities=e,this.cssDataManager=n,this.selectorPrinting=new bp(n)}return t.prototype.configure=function(e){this.defaultSettings=e},t.prototype.doHover=function(e,n,r,i){i===void 0&&(i=this.defaultSettings);function s(y){return ie.create(e.positionAt(y.offset),e.positionAt(y.end))}for(var a=e.offsetAt(n),o=di(r,a),l=null,c=0;c<o.length;c++){var h=o[c];if(h instanceof yn){l={contents:this.selectorPrinting.selectorToMarkedString(h),range:s(h)};break}if(h instanceof Xt){ge(h.getText(),"@")||(l={contents:this.selectorPrinting.simpleSelectorToMarkedString(h),range:s(h)});break}if(h instanceof Ze){var u=h.getFullPropertyName(),f=this.cssDataManager.getProperty(u);if(f){var m=yt(f,this.doesSupportMarkdown(),i);m?l={contents:m,range:s(h)}:l=null}continue}if(h instanceof No){var g=h.getText(),f=this.cssDataManager.getAtDirective(g);if(f){var m=yt(f,this.doesSupportMarkdown(),i);m?l={contents:m,range:s(h)}:l=null}continue}if(h instanceof U&&h.type===v.PseudoSelector){var b=h.getText(),f=b.slice(0,2)==="::"?this.cssDataManager.getPseudoElement(b):this.cssDataManager.getPseudoClass(b);if(f){var m=yt(f,this.doesSupportMarkdown(),i);m?l={contents:m,range:s(h)}:l=null}continue}}return l&&(l.contents=this.convertContents(l.contents)),l},t.prototype.convertContents=function(e){return this.doesSupportMarkdown()||typeof e=="string"?e:"kind"in e?{kind:"plaintext",value:e.value}:Array.isArray(e)?e.map(function(n){return typeof n=="string"?n:n.value}):e.value},t.prototype.doesSupportMarkdown=function(){if(!Ue(this.supportsMarkdown)){if(!Ue(this.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;var e=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.hover;this.supportsMarkdown=e&&e.contentFormat&&Array.isArray(e.contentFormat)&&e.contentFormat.indexOf(Oe.Markdown)!==-1}return this.supportsMarkdown},t}(),Mn=function(t,e,n,r){function i(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function o(h){try{c(r.next(h))}catch(u){a(u)}}function l(h){try{c(r.throw(h))}catch(u){a(u)}}function c(h){h.done?s(h.value):i(h.value).then(o,l)}c((r=r.apply(t,[])).next())})},zn=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,i,s,a;return a={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(c){return function(h){return l([c,h])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(s=c[0]&2?i.return:c[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,c[1])).done)return s;switch(i=0,s&&(c=[c[0]&2,s.value]),c[0]){case 0:case 1:s=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]<s[3])){n.label=c[1];break}if(c[0]===6&&n.label<s[1]){n.label=s[1],s=c;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(c);break}s[2]&&n.ops.pop(),n.trys.pop();continue}c=e.call(t,n)}catch(h){c=[6,h],i=0}finally{r=s=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},ql=Ge(),jl=/^\w+:\/\//,$l=/^data:/,qi=function(){function t(e,n){this.fileSystemProvider=e,this.resolveModuleReferences=n}return t.prototype.findDefinition=function(e,n,r){var i=new Mi(r),s=e.offsetAt(n),a=hi(r,s);if(!a)return null;var o=i.findSymbolFromNode(a);return o?{uri:e.uri,range:Rt(o.node,e)}:null},t.prototype.findReferences=function(e,n,r){var i=this.findDocumentHighlights(e,n,r);return i.map(function(s){return{uri:e.uri,range:s.range}})},t.prototype.findDocumentHighlights=function(e,n,r){var i=[],s=e.offsetAt(n),a=hi(r,s);if(!a||a.type===v.Stylesheet||a.type===v.Declarations)return i;a.type===v.Identifier&&a.parent&&a.parent.type===v.ClassSelector&&(a=a.parent);var o=new Mi(r),l=o.findSymbolFromNode(a),c=a.getText();return r.accept(function(h){if(l){if(o.matchesSymbol(h,l))return i.push({kind:Hl(h),range:Rt(h,e)}),!1}else a&&a.type===h.type&&h.matches(c)&&i.push({kind:Hl(h),range:Rt(h,e)});return!0}),i},t.prototype.isRawStringDocumentLinkNode=function(e){return e.type===v.Import},t.prototype.findDocumentLinks=function(e,n,r){for(var i=this.findUnresolvedLinks(e,n),s=[],a=0,o=i;a<o.length;a++){var l=o[a],c=l.link,h=c.target;if(!(!h||$l.test(h)))if(jl.test(h))s.push(c);else{var u=r.resolveReference(h,e.uri);u&&(c.target=u),s.push(c)}}return s},t.prototype.findDocumentLinks2=function(e,n,r){return Mn(this,void 0,void 0,function(){var i,s,a,o,l,c,h,u;return zn(this,function(f){switch(f.label){case 0:i=this.findUnresolvedLinks(e,n),s=[],a=0,o=i,f.label=1;case 1:return a<o.length?(l=o[a],c=l.link,h=c.target,!h||$l.test(h)?[3,5]:[3,2]):[3,6];case 2:return jl.test(h)?(s.push(c),[3,5]):[3,3];case 3:return[4,this.resolveRelativeReference(h,e.uri,r,l.isRawLink)];case 4:u=f.sent(),u!==void 0&&(c.target=u,s.push(c)),f.label=5;case 5:return a++,[3,1];case 6:return[2,s]}})})},t.prototype.findUnresolvedLinks=function(e,n){var r=this,i=[],s=function(a){var o=a.getText(),l=Rt(a,e);if(!(l.start.line===l.end.line&&l.start.character===l.end.character)){(ge(o,"'")||ge(o,'"'))&&(o=o.slice(1,-1));var c=a.parent?r.isRawStringDocumentLinkNode(a.parent):!1;i.push({link:{target:o,range:l},isRawLink:c})}};return n.accept(function(a){if(a.type===v.URILiteral){var o=a.getChild(0);return o&&s(o),!1}if(a.parent&&r.isRawStringDocumentLinkNode(a.parent)){var l=a.getText();return(ge(l,"'")||ge(l,'"'))&&s(a),!1}return!0}),i},t.prototype.findDocumentSymbols=function(e,n){var r=[];return n.accept(function(i){var s={name:null,kind:Et.Class,location:null},a=i;if(i instanceof yn)return s.name=i.getText(),a=i.findAParent(v.Ruleset,v.ExtendsReference),a&&(s.location=kn.create(e.uri,Rt(a,e)),r.push(s)),!1;if(i instanceof rr)s.name=i.getName(),s.kind=Et.Variable;else if(i instanceof Cn)s.name=i.getName(),s.kind=Et.Method;else if(i instanceof nr)s.name=i.getName(),s.kind=Et.Function;else if(i instanceof _o)s.name=ql("literal.keyframes","@keyframes {0}",i.getName());else if(i instanceof Co)s.name=ql("literal.fontface","@font-face");else if(i instanceof Ro){var o=i.getChild(0);o instanceof Fo&&(s.name="@media "+o.getText(),s.kind=Et.Module)}return s.name&&(s.location=kn.create(e.uri,Rt(a,e)),r.push(s)),!0}),r},t.prototype.findDocumentColors=function(e,n){var r=[];return n.accept(function(i){var s=xp(i,e);return s&&r.push(s),!0}),r},t.prototype.getColorPresentations=function(e,n,r,i){var s=[],a=Math.round(r.red*255),o=Math.round(r.green*255),l=Math.round(r.blue*255),c;r.alpha===1?c="rgb(".concat(a,", ").concat(o,", ").concat(l,")"):c="rgba(".concat(a,", ").concat(o,", ").concat(l,", ").concat(r.alpha,")"),s.push({label:c,textEdit:H.replace(i,c)}),r.alpha===1?c="#".concat(Ft(a)).concat(Ft(o)).concat(Ft(l)):c="#".concat(Ft(a)).concat(Ft(o)).concat(Ft(l)).concat(Ft(Math.round(r.alpha*255))),s.push({label:c,textEdit:H.replace(i,c)});var h=yl(r);h.a===1?c="hsl(".concat(h.h,", ").concat(Math.round(h.s*100),"%, ").concat(Math.round(h.l*100),"%)"):c="hsla(".concat(h.h,", ").concat(Math.round(h.s*100),"%, ").concat(Math.round(h.l*100),"%, ").concat(h.a,")"),s.push({label:c,textEdit:H.replace(i,c)});var u=Gu(r);return u.a===1?c="hwb(".concat(u.h," ").concat(Math.round(u.w*100),"% ").concat(Math.round(u.b*100),"%)"):c="hwb(".concat(u.h," ").concat(Math.round(u.w*100),"% ").concat(Math.round(u.b*100),"% / ").concat(u.a,")"),s.push({label:c,textEdit:H.replace(i,c)}),s},t.prototype.doRename=function(e,n,r,i){var s,a=this.findDocumentHighlights(e,n,i),o=a.map(function(l){return H.replace(l.range,r)});return{changes:(s={},s[e.uri]=o,s)}},t.prototype.resolveModuleReference=function(e,n,r){return Mn(this,void 0,void 0,function(){var i,s,a,o,l;return zn(this,function(c){switch(c.label){case 0:return ge(n,"file://")?(i=Sp(e),s=r.resolveReference("/",n),a=Pi(n),[4,this.resolvePathToModule(i,a,s)]):[3,2];case 1:if(o=c.sent(),o)return l=e.substring(i.length+1),[2,Ii(o,l)];c.label=2;case 2:return[2,void 0]}})})},t.prototype.resolveRelativeReference=function(e,n,r,i){return Mn(this,void 0,void 0,function(){var s,a;return zn(this,function(o){switch(o.label){case 0:return s=r.resolveReference(e,n),e[0]==="~"&&e[1]!=="/"&&this.fileSystemProvider?(e=e.substring(1),[4,this.resolveModuleReference(e,n,r)]):[3,2];case 1:return[2,o.sent()||s];case 2:return this.resolveModuleReferences?(a=s,a?[4,this.fileExists(s)]:[3,4]):[3,7];case 3:a=o.sent(),o.label=4;case 4:return a?[2,s]:[3,5];case 5:return[4,this.resolveModuleReference(e,n,r)];case 6:return[2,o.sent()||s];case 7:return[2,s]}})})},t.prototype.resolvePathToModule=function(e,n,r){return Mn(this,void 0,void 0,function(){var i;return zn(this,function(s){switch(s.label){case 0:return i=Ii(n,"node_modules",e,"package.json"),[4,this.fileExists(i)];case 1:return s.sent()?[2,Pi(i)]:r&&n.startsWith(r)&&n.length!==r.length?[2,this.resolvePathToModule(e,Pi(n),r)]:[2,void 0]}})})},t.prototype.fileExists=function(e){return Mn(this,void 0,void 0,function(){var n;return zn(this,function(r){switch(r.label){case 0:if(!this.fileSystemProvider)return[2,!1];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.fileSystemProvider.stat(e)];case 2:return n=r.sent(),n.type===Dn.Unknown&&n.size===-1?[2,!1]:[2,!0];case 3:return r.sent(),[2,!1];case 4:return[2]}})})},t}();function xp(t,e){var n=Ju(t);if(n){var r=Rt(t,e);return{color:n,range:r}}return null}function Rt(t,e){return ie.create(e.positionAt(t.offset),e.positionAt(t.end))}function Hl(t){if(t.type===v.Selector||t instanceof We&&t.parent&&t.parent instanceof fi&&t.isCustomProperty)return Zt.Write;if(t.parent)switch(t.parent.type){case v.FunctionDeclaration:case v.MixinDeclaration:case v.Keyframe:case v.VariableDeclaration:case v.FunctionParameter:return Zt.Write}return Zt.Read}function Ft(t){var e=t.toString(16);return e.length!==2?"0"+e:e}function Sp(t){return t[0]==="@"?t.substring(0,t.indexOf("/",t.indexOf("/")+1)):t.substring(0,t.indexOf("/"))}var be=Ge(),nn=Pe.Warning,Gl=Pe.Error,Je=Pe.Ignore,we=function(){function t(e,n,r){this.id=e,this.message=n,this.defaultValue=r}return t}(),Cp=function(){function t(e,n,r){this.id=e,this.message=n,this.defaultValue=r}return t}(),se={AllVendorPrefixes:new we("compatibleVendorPrefixes",be("rule.vendorprefixes.all","When using a vendor-specific prefix make sure to also include all other vendor-specific properties"),Je),IncludeStandardPropertyWhenUsingVendorPrefix:new we("vendorPrefix",be("rule.standardvendorprefix.all","When using a vendor-specific prefix also include the standard property"),nn),DuplicateDeclarations:new we("duplicateProperties",be("rule.duplicateDeclarations","Do not use duplicate style definitions"),Je),EmptyRuleSet:new we("emptyRules",be("rule.emptyRuleSets","Do not use empty rulesets"),nn),ImportStatemement:new we("importStatement",be("rule.importDirective","Import statements do not load in parallel"),Je),BewareOfBoxModelSize:new we("boxModel",be("rule.bewareOfBoxModelSize","Do not use width or height when using padding or border"),Je),UniversalSelector:new we("universalSelector",be("rule.universalSelector","The universal selector (*) is known to be slow"),Je),ZeroWithUnit:new we("zeroUnits",be("rule.zeroWidthUnit","No unit for zero needed"),Je),RequiredPropertiesForFontFace:new we("fontFaceProperties",be("rule.fontFaceProperties","@font-face rule must define 'src' and 'font-family' properties"),nn),HexColorLength:new we("hexColorLength",be("rule.hexColor","Hex colors must consist of three, four, six or eight hex numbers"),Gl),ArgsInColorFunction:new we("argumentsInColorFunction",be("rule.colorFunction","Invalid number of parameters"),Gl),UnknownProperty:new we("unknownProperties",be("rule.unknownProperty","Unknown property."),nn),UnknownAtRules:new we("unknownAtRules",be("rule.unknownAtRules","Unknown at-rule."),nn),IEStarHack:new we("ieHack",be("rule.ieHack","IE hacks are only necessary when supporting IE7 and older"),Je),UnknownVendorSpecificProperty:new we("unknownVendorSpecificProperties",be("rule.unknownVendorSpecificProperty","Unknown vendor specific property."),Je),PropertyIgnoredDueToDisplay:new we("propertyIgnoredDueToDisplay",be("rule.propertyIgnoredDueToDisplay","Property is ignored due to the display."),nn),AvoidImportant:new we("important",be("rule.avoidImportant","Avoid using !important. It is an indication that the specificity of the entire CSS has gotten out of control and needs to be refactored."),Je),AvoidFloat:new we("float",be("rule.avoidFloat","Avoid using 'float'. Floats lead to fragile CSS that is easy to break if one aspect of the layout changes."),Je),AvoidIdSelector:new we("idSelector",be("rule.avoidIdSelector","Selectors should not contain IDs because these rules are too tightly coupled with the HTML."),Je)},kp={ValidProperties:new Cp("validProperties",be("rule.validProperties","A list of properties that are not validated against the `unknownProperties` rule."),[])},_p=function(){function t(e){e===void 0&&(e={}),this.conf=e}return t.prototype.getRule=function(e){if(this.conf.hasOwnProperty(e.id)){var n=Ep(this.conf[e.id]);if(n)return n}return e.defaultValue},t.prototype.getSetting=function(e){return this.conf[e.id]},t}();function Ep(t){switch(t){case"ignore":return Pe.Ignore;case"warning":return Pe.Warning;case"error":return Pe.Error}return null}var Rp=Ge(),ji=function(){function t(e){this.cssDataManager=e}return t.prototype.doCodeActions=function(e,n,r,i){return this.doCodeActions2(e,n,r,i).map(function(s){var a=s.edit&&s.edit.documentChanges&&s.edit.documentChanges[0];return Kt.create(s.title,"_css.applyCodeAction",e.uri,e.version,a&&a.edits)})},t.prototype.doCodeActions2=function(e,n,r,i){var s=[];if(r.diagnostics)for(var a=0,o=r.diagnostics;a<o.length;a++){var l=o[a];this.appendFixesForMarker(e,i,l,s)}return s},t.prototype.getFixesForUnknownProperty=function(e,n,r,i){var s=n.getName(),a=[];this.cssDataManager.getProperties().forEach(function(C){var k=Zd(s,C.name);k>=s.length/2&&a.push({property:C.name,score:k})}),a.sort(function(C,k){return k.score-C.score||C.property.localeCompare(k.property)});for(var o=3,l=0,c=a;l<c.length;l++){var h=c[l],u=h.property,f=Rp("css.codeaction.rename","Rename to '{0}'",u),m=H.replace(r.range,u),g=_i.create(e.uri,e.version),b={documentChanges:[_n.create(g,[m])]},y=Fi.create(f,b,Ri.QuickFix);if(y.diagnostics=[r],i.push(y),--o<=0)return}},t.prototype.appendFixesForMarker=function(e,n,r,i){if(r.code===se.UnknownProperty.id)for(var s=e.offsetAt(r.range.start),a=e.offsetAt(r.range.end),o=di(n,s),l=o.length-1;l>=0;l--){var c=o[l];if(c instanceof Ze){var h=c.getProperty();if(h&&h.offset===s&&h.end===a){this.getFixesForUnknownProperty(e,h,r,i);return}}}},t}(),Fp=function(){function t(e){this.fullPropertyName=e.getFullPropertyName().toLowerCase(),this.node=e}return t}();function Ln(t,e,n,r){var i=t[e];i.value=n,n&&(Ml(i.properties,r)||i.properties.push(r))}function Dp(t,e,n){Ln(t,"top",e,n),Ln(t,"right",e,n),Ln(t,"bottom",e,n),Ln(t,"left",e,n)}function _e(t,e,n,r){e==="top"||e==="right"||e==="bottom"||e==="left"?Ln(t,e,n,r):Dp(t,n,r)}function $i(t,e,n){switch(e.length){case 1:_e(t,void 0,e[0],n);break;case 2:_e(t,"top",e[0],n),_e(t,"bottom",e[0],n),_e(t,"right",e[1],n),_e(t,"left",e[1],n);break;case 3:_e(t,"top",e[0],n),_e(t,"right",e[1],n),_e(t,"left",e[1],n),_e(t,"bottom",e[2],n);break;case 4:_e(t,"top",e[0],n),_e(t,"right",e[1],n),_e(t,"bottom",e[2],n),_e(t,"left",e[3],n);break}}function Hi(t,e){for(var n=0,r=e;n<r.length;n++){var i=r[n];if(t.matches(i))return!0}return!1}function Pn(t,e){return e===void 0&&(e=!0),e&&Hi(t,["initial","unset"])?!1:parseFloat(t.getText())!==0}function Jl(t,e){return e===void 0&&(e=!0),t.map(function(n){return Pn(n,e)})}function wr(t,e){return e===void 0&&(e=!0),!(Hi(t,["none","hidden"])||e&&Hi(t,["initial","unset"]))}function Ap(t,e){return t.map(function(n){return wr(n,e)})}function Np(t){var e=t.getChildren();if(e.length===1){var n=e[0];return Pn(n)&&wr(n)}for(var r=0,i=e;r<i.length;r++){var s=i[r],n=s;if(!Pn(n,!1)||!wr(n,!1))return!1}return!0}function Mp(t){for(var e={top:{value:!1,properties:[]},right:{value:!1,properties:[]},bottom:{value:!1,properties:[]},left:{value:!1,properties:[]}},n=0,r=t;n<r.length;n++){var i=r[n],s=i.node.value;if(!(typeof s>"u"))switch(i.fullPropertyName){case"box-sizing":return{top:{value:!1,properties:[]},right:{value:!1,properties:[]},bottom:{value:!1,properties:[]},left:{value:!1,properties:[]}};case"width":e.width=i;break;case"height":e.height=i;break;default:var a=i.fullPropertyName.split("-");switch(a[0]){case"border":switch(a[1]){case void 0:case"top":case"right":case"bottom":case"left":switch(a[2]){case void 0:_e(e,a[1],Np(s),i);break;case"width":_e(e,a[1],Pn(s,!1),i);break;case"style":_e(e,a[1],wr(s,!0),i);break}break;case"width":$i(e,Jl(s.getChildren(),!1),i);break;case"style":$i(e,Ap(s.getChildren(),!0),i);break}break;case"padding":a.length===1?$i(e,Jl(s.getChildren(),!0),i):_e(e,a[1],Pn(s,!0),i);break}break}}return e}var at=Ge(),Xl=function(){function t(){this.data={}}return t.prototype.add=function(e,n,r){var i=this.data[e];i||(i={nodes:[],names:[]},this.data[e]=i),i.names.push(n),r&&i.nodes.push(r)},t}(),zp=function(){function t(e,n,r){var i=this;this.cssDataManager=r,this.warnings=[],this.settings=n,this.documentText=e.getText(),this.keyframes=new Xl,this.validProperties={};var s=n.getSetting(kp.ValidProperties);Array.isArray(s)&&s.forEach(function(a){if(typeof a=="string"){var o=a.trim().toLowerCase();o.length&&(i.validProperties[o]=!0)}})}return t.entries=function(e,n,r,i,s){var a=new t(n,r,i);return e.acceptVisitor(a),a.completeValidations(),a.getEntries(s)},t.prototype.isValidPropertyDeclaration=function(e){var n=e.fullPropertyName;return this.validProperties[n]},t.prototype.fetch=function(e,n){for(var r=[],i=0,s=e;i<s.length;i++){var a=s[i];a.fullPropertyName===n&&r.push(a)}return r},t.prototype.fetchWithValue=function(e,n,r){for(var i=[],s=0,a=e;s<a.length;s++){var o=a[s];if(o.fullPropertyName===n){var l=o.node.getValue();l&&this.findValueInExpression(l,r)&&i.push(o)}}return i},t.prototype.findValueInExpression=function(e,n){var r=!1;return e.accept(function(i){return i.type===v.Identifier&&i.matches(n)&&(r=!0),!r}),r},t.prototype.getEntries=function(e){return e===void 0&&(e=Pe.Warning|Pe.Error),this.warnings.filter(function(n){return(n.getLevel()&e)!==0})},t.prototype.addEntry=function(e,n,r){var i=new zo(e,n,this.settings.getRule(n),r);this.warnings.push(i)},t.prototype.getMissingNames=function(e,n){for(var r=e.slice(0),i=0;i<n.length;i++){var s=r.indexOf(n[i]);s!==-1&&(r[s]=null)}for(var a=null,i=0;i<r.length;i++){var o=r[i];o&&(a===null?a=at("namelist.single","'{0}'",o):a=at("namelist.concatenated","{0}, '{1}'",a,o))}return a},t.prototype.visitNode=function(e){switch(e.type){case v.UnknownAtRule:return this.visitUnknownAtRule(e);case v.Keyframe:return this.visitKeyframe(e);case v.FontFace:return this.visitFontFace(e);case v.Ruleset:return this.visitRuleSet(e);case v.SimpleSelector:return this.visitSimpleSelector(e);case v.Function:return this.visitFunction(e);case v.NumericValue:return this.visitNumericValue(e);case v.Import:return this.visitImport(e);case v.HexColorValue:return this.visitHexColorValue(e);case v.Prio:return this.visitPrio(e);case v.IdentifierSelector:return this.visitIdentifierSelector(e)}return!0},t.prototype.completeValidations=function(){this.validateKeyframes()},t.prototype.visitUnknownAtRule=function(e){var n=e.getChild(0);if(!n)return!1;var r=this.cssDataManager.getAtDirective(n.getText());return r?!1:(this.addEntry(n,se.UnknownAtRules,"Unknown at rule ".concat(n.getText())),!0)},t.prototype.visitKeyframe=function(e){var n=e.getKeyword();if(!n)return!1;var r=n.getText();return this.keyframes.add(e.getName(),r,r!=="@keyframes"?n:null),!0},t.prototype.validateKeyframes=function(){var e=["@-webkit-keyframes","@-moz-keyframes","@-o-keyframes"];for(var n in this.keyframes.data){var r=this.keyframes.data[n].names,i=r.indexOf("@keyframes")===-1;if(!(!i&&r.length===1)){var s=this.getMissingNames(e,r);if(s||i)for(var a=0,o=this.keyframes.data[n].nodes;a<o.length;a++){var l=o[a];if(i){var c=at("keyframes.standardrule.missing","Always define standard rule '@keyframes' when defining keyframes.");this.addEntry(l,se.IncludeStandardPropertyWhenUsingVendorPrefix,c)}if(s){var c=at("keyframes.vendorspecific.missing","Always include all vendor specific rules: Missing: {0}",s);this.addEntry(l,se.AllVendorPrefixes,c)}}}}return!0},t.prototype.visitSimpleSelector=function(e){var n=this.documentText.charAt(e.offset);return e.length===1&&n==="*"&&this.addEntry(e,se.UniversalSelector),!0},t.prototype.visitIdentifierSelector=function(e){return this.addEntry(e,se.AvoidIdSelector),!0},t.prototype.visitImport=function(e){return this.addEntry(e,se.ImportStatemement),!0},t.prototype.visitRuleSet=function(e){var n=e.getDeclarations();if(!n)return!1;n.hasChildren()||this.addEntry(e.getSelectors(),se.EmptyRuleSet);for(var r=[],i=0,s=n.getChildren();i<s.length;i++){var a=s[i];a instanceof Ze&&r.push(new Fp(a))}var o=Mp(r);if(o.width){var l=[];if(o.right.value&&(l=gr(l,o.right.properties)),o.left.value&&(l=gr(l,o.left.properties)),l.length!==0){for(var c=0,h=l;c<h.length;c++){var u=h[c];this.addEntry(u.node,se.BewareOfBoxModelSize)}this.addEntry(o.width.node,se.BewareOfBoxModelSize)}}if(o.height){var l=[];if(o.top.value&&(l=gr(l,o.top.properties)),o.bottom.value&&(l=gr(l,o.bottom.properties)),l.length!==0){for(var f=0,m=l;f<m.length;f++){var u=m[f];this.addEntry(u.node,se.BewareOfBoxModelSize)}this.addEntry(o.height.node,se.BewareOfBoxModelSize)}}var g=this.fetchWithValue(r,"display","inline-block");if(g.length>0)for(var b=this.fetch(r,"float"),y=0;y<b.length;y++){var C=b[y].node,k=C.getValue();k&&!k.matches("none")&&this.addEntry(C,se.PropertyIgnoredDueToDisplay,at("rule.propertyIgnoredDueToDisplayInlineBlock","inline-block is ignored due to the float. If 'float' has a value other than 'none', the box is floated and 'display' is treated as 'block'"))}if(g=this.fetchWithValue(r,"display","block"),g.length>0)for(var b=this.fetch(r,"vertical-align"),y=0;y<b.length;y++)this.addEntry(b[y].node,se.PropertyIgnoredDueToDisplay,at("rule.propertyIgnoredDueToDisplayBlock","Property is ignored due to the display. With 'display: block', vertical-align should not be used."));for(var w=this.fetch(r,"float"),y=0;y<w.length;y++){var a=w[y];this.isValidPropertyDeclaration(a)||this.addEntry(a.node,se.AvoidFloat)}for(var F=0;F<r.length;F++){var a=r[F];if(a.fullPropertyName!=="background"&&!this.validProperties[a.fullPropertyName]){var k=a.node.getValue();if(k&&this.documentText.charAt(k.offset)!=="-"){var _=this.fetch(r,a.fullPropertyName);if(_.length>1)for(var P=0;P<_.length;P++){var W=_[P].node.getValue();W&&this.documentText.charAt(W.offset)!=="-"&&_[P]!==a&&this.addEntry(a.node,se.DuplicateDeclarations)}}}}var T=e.getSelectors().matches(":export");if(!T){for(var J=new Xl,re=!1,N=0,R=r;N<R.length;N++){var a=R[N],I=a.node;if(this.isCSSDeclaration(I)){var z=a.fullPropertyName,V=z.charAt(0);if(V==="-"){if(z.charAt(1)!=="-"){!this.cssDataManager.isKnownProperty(z)&&!this.validProperties[z]&&this.addEntry(I.getProperty(),se.UnknownVendorSpecificProperty);var j=I.getNonPrefixedPropertyName();J.add(j,z,I.getProperty())}}else{var D=z;(V==="*"||V==="_")&&(this.addEntry(I.getProperty(),se.IEStarHack),z=z.substr(1)),!this.cssDataManager.isKnownProperty(D)&&!this.cssDataManager.isKnownProperty(z)&&(this.validProperties[z]||this.addEntry(I.getProperty(),se.UnknownProperty,at("property.unknownproperty.detailed","Unknown property: '{0}'",I.getFullPropertyName()))),J.add(z,z,null)}}else re=!0}if(!re)for(var x in J.data){var A=J.data[x],L=A.names,X=this.cssDataManager.isStandardProperty(x)&&L.indexOf(x)===-1;if(!(!X&&L.length===1)){for(var G=[],F=0,ne=t.prefixes.length;F<ne;F++){var De=t.prefixes[F];this.cssDataManager.isStandardProperty(De+x)&&G.push(De+x)}var Se=this.getMissingNames(G,L);if(Se||X)for(var Ae=0,Dt=A.nodes;Ae<Dt.length;Ae++){var ct=Dt[Ae];if(X){var ss=at("property.standard.missing","Also define the standard property '{0}' for compatibility",x);this.addEntry(ct,se.IncludeStandardPropertyWhenUsingVendorPrefix,ss)}if(Se){var ss=at("property.vendorspecific.missing","Always include all vendor specific properties: Missing: {0}",Se);this.addEntry(ct,se.AllVendorPrefixes,ss)}}}}}return!0},t.prototype.visitPrio=function(e){return this.addEntry(e,se.AvoidImportant),!0},t.prototype.visitNumericValue=function(e){var n=e.findParent(v.Function);if(n&&n.getName()==="calc")return!0;var r=e.findParent(v.Declaration);if(r){var i=r.getValue();if(i){var s=e.getValue();if(!s.unit||Al.length.indexOf(s.unit.toLowerCase())===-1)return!0;parseFloat(s.value)===0&&s.unit&&!this.validProperties[r.getFullPropertyName()]&&this.addEntry(e,se.ZeroWithUnit)}}return!0},t.prototype.visitFontFace=function(e){var n=e.getDeclarations();if(!n)return!1;for(var r=!1,i=!1,s=!1,a=0,o=n.getChildren();a<o.length;a++){var l=o[a];if(this.isCSSDeclaration(l)){var c=l.getProperty().getName().toLowerCase();c==="src"&&(r=!0),c==="font-family"&&(i=!0)}else s=!0}return!s&&(!r||!i)&&this.addEntry(e,se.RequiredPropertiesForFontFace),!0},t.prototype.isCSSDeclaration=function(e){if(e instanceof Ze){if(!e.getValue())return!1;var n=e.getProperty();if(!n)return!1;var r=n.getIdentifier();return!(!r||r.containsInterpolation())}return!1},t.prototype.visitHexColorValue=function(e){var n=e.length;return n!==9&&n!==7&&n!==5&&n!==4&&this.addEntry(e,se.HexColorLength),!1},t.prototype.visitFunction=function(e){var n=e.getName().toLowerCase(),r=-1,i=0;switch(n){case"rgb(":case"hsl(":r=3;break;case"rgba(":case"hsla(":r=4;break}return r!==-1&&(e.getArguments().accept(function(s){return s instanceof bi?(i+=1,!1):!0}),i!==r&&this.addEntry(e,se.ArgsInColorFunction)),!0},t.prefixes=["-ms-","-moz-","-o-","-webkit-"],t}(),Gi=function(){function t(e){this.cssDataManager=e}return t.prototype.configure=function(e){this.settings=e},t.prototype.doValidation=function(e,n,r){if(r===void 0&&(r=this.settings),r&&r.validate===!1)return[];var i=[];i.push.apply(i,Lu.entries(n)),i.push.apply(i,zp.entries(n,e,new _p(r&&r.lint),this.cssDataManager));var s=[];for(var a in se)s.push(se[a].id);function o(l){var c=ie.create(e.positionAt(l.getOffset()),e.positionAt(l.getOffset()+l.getLength())),h=e.languageId;return{code:l.getRule().id,source:h,message:l.getMessage(),severity:l.getLevel()===Pe.Warning?ar.Warning:ar.Error,range:c}}return i.filter(function(l){return l.getLevel()!==Pe.Ignore}).map(o)},t}(),Lp=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Yl=47,Pp=10,Ip=13,Tp=12,Wp=36,Op=35,Up=123,In=61,Vp=33,Bp=60,qp=62,Ji=46,ot=p.CustomToken,Xi=ot++,xr=ot++;ot++;var Kl=ot++,Ql=ot++,Zl=ot++,ec=ot++,Sr=ot++;ot++;var tc=function(t){Lp(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.scanNext=function(n){if(this.stream.advanceIfChar(Wp)){var r=["$"];if(this.ident(r))return this.finishToken(n,Xi,r.join(""));this.stream.goBackTo(n)}return this.stream.advanceIfChars([Op,Up])?this.finishToken(n,xr):this.stream.advanceIfChars([In,In])?this.finishToken(n,Kl):this.stream.advanceIfChars([Vp,In])?this.finishToken(n,Ql):this.stream.advanceIfChar(Bp)?this.stream.advanceIfChar(In)?this.finishToken(n,ec):this.finishToken(n,p.Delim):this.stream.advanceIfChar(qp)?this.stream.advanceIfChar(In)?this.finishToken(n,Zl):this.finishToken(n,p.Delim):this.stream.advanceIfChars([Ji,Ji,Ji])?this.finishToken(n,Sr):t.prototype.scanNext.call(this,n)},e.prototype.comment=function(){return t.prototype.comment.call(this)?!0:!this.inURL&&this.stream.advanceIfChars([Yl,Yl])?(this.stream.advanceWhileChar(function(n){switch(n){case Pp:case Ip:case Tp:return!1;default:return!0}}),!0):!1},e}(vn),Yi=Ge(),Ki=function(){function t(e,n){this.id=e,this.message=n}return t}(),Qi={FromExpected:new Ki("scss-fromexpected",Yi("expected.from","'from' expected")),ThroughOrToExpected:new Ki("scss-throughexpected",Yi("expected.through","'through' or 'to' expected")),InExpected:new Ki("scss-fromexpected",Yi("expected.in","'in' expected"))},jp=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),$p=function(t){jp(e,t);function e(){return t.call(this,new tc)||this}return e.prototype._parseStylesheetStatement=function(n){return n===void 0&&(n=!1),this.peek(p.AtKeyword)?this._parseWarnAndDebug()||this._parseControlStatement()||this._parseMixinDeclaration()||this._parseMixinContent()||this._parseMixinReference()||this._parseFunctionDeclaration()||this._parseForward()||this._parseUse()||this._parseRuleset(n)||t.prototype._parseStylesheetAtStatement.call(this,n):this._parseRuleset(!0)||this._parseVariableDeclaration()},e.prototype._parseImport=function(){if(!this.peekKeyword("@import"))return null;var n=this.create(mi);if(this.consumeToken(),!n.addChild(this._parseURILiteral())&&!n.addChild(this._parseStringLiteral()))return this.finish(n,S.URIOrStringExpected);for(;this.accept(p.Comma);)if(!n.addChild(this._parseURILiteral())&&!n.addChild(this._parseStringLiteral()))return this.finish(n,S.URIOrStringExpected);return!this.peek(p.SemiColon)&&!this.peek(p.EOF)&&n.setMedialist(this._parseMediaQueryList()),this.finish(n)},e.prototype._parseVariableDeclaration=function(n){if(n===void 0&&(n=[]),!this.peek(Xi))return null;var r=this.create(rr);if(!r.setVariable(this._parseVariable()))return null;if(!this.accept(p.Colon))return this.finish(r,S.ColonExpected);if(this.prevToken&&(r.colonPosition=this.prevToken.offset),!r.setValue(this._parseExpr()))return this.finish(r,S.VariableValueExpected,[],n);for(;this.peek(p.Exclamation);)if(!r.addChild(this._tryParsePrio())){if(this.consumeToken(),!this.peekRegExp(p.Ident,/^(default|global)$/))return this.finish(r,S.UnknownKeyword);this.consumeToken()}return this.peek(p.SemiColon)&&(r.semicolonPosition=this.token.offset),this.finish(r)},e.prototype._parseMediaCondition=function(){return this._parseInterpolation()||t.prototype._parseMediaCondition.call(this)},e.prototype._parseMediaFeatureName=function(){return this._parseModuleMember()||this._parseFunction()||this._parseIdent()||this._parseVariable()},e.prototype._parseKeyframeSelector=function(){return this._tryParseKeyframeSelector()||this._parseControlStatement(this._parseKeyframeSelector.bind(this))||this._parseVariableDeclaration()||this._parseMixinContent()},e.prototype._parseVariable=function(){if(!this.peek(Xi))return null;var n=this.create(xi);return this.consumeToken(),n},e.prototype._parseModuleMember=function(){var n=this.mark(),r=this.create(Mo);return r.setIdentifier(this._parseIdent([Z.Module]))?this.hasWhitespace()||!this.acceptDelim(".")||this.hasWhitespace()?(this.restoreAtMark(n),null):r.addChild(this._parseVariable()||this._parseFunction())?r:this.finish(r,S.IdentifierOrVariableExpected):null},e.prototype._parseIdent=function(n){var r=this;if(!this.peek(p.Ident)&&!this.peek(xr)&&!this.peekDelim("-"))return null;var i=this.create(We);i.referenceTypes=n,i.isCustomProperty=this.peekRegExp(p.Ident,/^--/);for(var s=!1,a=function(){var o=r.mark();return r.acceptDelim("-")&&(r.hasWhitespace()||r.acceptDelim("-"),r.hasWhitespace())?(r.restoreAtMark(o),null):r._parseInterpolation()};(this.accept(p.Ident)||i.addChild(a())||s&&this.acceptRegexp(/^[\w-]/))&&(s=!0,!this.hasWhitespace()););return s?this.finish(i):null},e.prototype._parseTermExpression=function(){return this._parseModuleMember()||this._parseVariable()||this._parseSelectorCombinator()||t.prototype._parseTermExpression.call(this)},e.prototype._parseInterpolation=function(){if(this.peek(xr)){var n=this.create(wi);return this.consumeToken(),!n.addChild(this._parseExpr())&&!this._parseSelectorCombinator()?this.accept(p.CurlyR)?this.finish(n):this.finish(n,S.ExpressionExpected):this.accept(p.CurlyR)?this.finish(n):this.finish(n,S.RightCurlyExpected)}return null},e.prototype._parseOperator=function(){if(this.peek(Kl)||this.peek(Ql)||this.peek(Zl)||this.peek(ec)||this.peekDelim(">")||this.peekDelim("<")||this.peekIdent("and")||this.peekIdent("or")||this.peekDelim("%")){var n=this.createNode(v.Operator);return this.consumeToken(),this.finish(n)}return t.prototype._parseOperator.call(this)},e.prototype._parseUnaryOperator=function(){if(this.peekIdent("not")){var n=this.create(U);return this.consumeToken(),this.finish(n)}return t.prototype._parseUnaryOperator.call(this)},e.prototype._parseRuleSetDeclaration=function(){return this.peek(p.AtKeyword)?this._parseKeyframe()||this._parseImport()||this._parseMedia(!0)||this._parseFontFace()||this._parseWarnAndDebug()||this._parseControlStatement()||this._parseFunctionDeclaration()||this._parseExtends()||this._parseMixinReference()||this._parseMixinContent()||this._parseMixinDeclaration()||this._parseRuleset(!0)||this._parseSupports(!0)||t.prototype._parseRuleSetDeclarationAtStatement.call(this):this._parseVariableDeclaration()||this._tryParseRuleset(!0)||t.prototype._parseRuleSetDeclaration.call(this)},e.prototype._parseDeclaration=function(n){var r=this._tryParseCustomPropertyDeclaration(n);if(r)return r;var i=this.create(Ze);if(!i.setProperty(this._parseProperty()))return null;if(!this.accept(p.Colon))return this.finish(i,S.ColonExpected,[p.Colon],n||[p.SemiColon]);this.prevToken&&(i.colonPosition=this.prevToken.offset);var s=!1;if(i.setValue(this._parseExpr())&&(s=!0,i.addChild(this._parsePrio())),this.peek(p.CurlyL))i.setNestedProperties(this._parseNestedProperties());else if(!s)return this.finish(i,S.PropertyValueExpected);return this.peek(p.SemiColon)&&(i.semicolonPosition=this.token.offset),this.finish(i)},e.prototype._parseNestedProperties=function(){var n=this.create(ko);return this._parseBody(n,this._parseDeclaration.bind(this))},e.prototype._parseExtends=function(){if(this.peekKeyword("@extend")){var n=this.create(Sn);if(this.consumeToken(),!n.getSelectors().addChild(this._parseSimpleSelector()))return this.finish(n,S.SelectorExpected);for(;this.accept(p.Comma);)n.getSelectors().addChild(this._parseSimpleSelector());return this.accept(p.Exclamation)&&!this.acceptIdent("optional")?this.finish(n,S.UnknownKeyword):this.finish(n)}return null},e.prototype._parseSimpleSelectorBody=function(){return this._parseSelectorCombinator()||this._parseSelectorPlaceholder()||t.prototype._parseSimpleSelectorBody.call(this)},e.prototype._parseSelectorCombinator=function(){if(this.peekDelim("&")){var n=this.createNode(v.SelectorCombinator);for(this.consumeToken();!this.hasWhitespace()&&(this.acceptDelim("-")||this.accept(p.Num)||this.accept(p.Dimension)||n.addChild(this._parseIdent())||this.acceptDelim("&")););return this.finish(n)}return null},e.prototype._parseSelectorPlaceholder=function(){if(this.peekDelim("%")){var n=this.createNode(v.SelectorPlaceholder);return this.consumeToken(),this._parseIdent(),this.finish(n)}else if(this.peekKeyword("@at-root")){var n=this.createNode(v.SelectorPlaceholder);return this.consumeToken(),this.finish(n)}return null},e.prototype._parseElementName=function(){var n=this.mark(),r=t.prototype._parseElementName.call(this);return r&&!this.hasWhitespace()&&this.peek(p.ParenthesisL)?(this.restoreAtMark(n),null):r},e.prototype._tryParsePseudoIdentifier=function(){return this._parseInterpolation()||t.prototype._tryParsePseudoIdentifier.call(this)},e.prototype._parseWarnAndDebug=function(){if(!this.peekKeyword("@debug")&&!this.peekKeyword("@warn")&&!this.peekKeyword("@error"))return null;var n=this.createNode(v.Debug);return this.consumeToken(),n.addChild(this._parseExpr()),this.finish(n)},e.prototype._parseControlStatement=function(n){return n===void 0&&(n=this._parseRuleSetDeclaration.bind(this)),this.peek(p.AtKeyword)?this._parseIfStatement(n)||this._parseForStatement(n)||this._parseEachStatement(n)||this._parseWhileStatement(n):null},e.prototype._parseIfStatement=function(n){return this.peekKeyword("@if")?this._internalParseIfStatement(n):null},e.prototype._internalParseIfStatement=function(n){var r=this.create(ou);if(this.consumeToken(),!r.setExpression(this._parseExpr(!0)))return this.finish(r,S.ExpressionExpected);if(this._parseBody(r,n),this.acceptKeyword("@else")){if(this.peekIdent("if"))r.setElseClause(this._internalParseIfStatement(n));else if(this.peek(p.CurlyL)){var i=this.create(du);this._parseBody(i,n),r.setElseClause(i)}}return this.finish(r)},e.prototype._parseForStatement=function(n){if(!this.peekKeyword("@for"))return null;var r=this.create(lu);return this.consumeToken(),r.setVariable(this._parseVariable())?this.acceptIdent("from")?r.addChild(this._parseBinaryExpr())?!this.acceptIdent("to")&&!this.acceptIdent("through")?this.finish(r,Qi.ThroughOrToExpected,[p.CurlyR]):r.addChild(this._parseBinaryExpr())?this._parseBody(r,n):this.finish(r,S.ExpressionExpected,[p.CurlyR]):this.finish(r,S.ExpressionExpected,[p.CurlyR]):this.finish(r,Qi.FromExpected,[p.CurlyR]):this.finish(r,S.VariableNameExpected,[p.CurlyR])},e.prototype._parseEachStatement=function(n){if(!this.peekKeyword("@each"))return null;var r=this.create(cu);this.consumeToken();var i=r.getVariables();if(!i.addChild(this._parseVariable()))return this.finish(r,S.VariableNameExpected,[p.CurlyR]);for(;this.accept(p.Comma);)if(!i.addChild(this._parseVariable()))return this.finish(r,S.VariableNameExpected,[p.CurlyR]);return this.finish(i),this.acceptIdent("in")?r.addChild(this._parseExpr())?this._parseBody(r,n):this.finish(r,S.ExpressionExpected,[p.CurlyR]):this.finish(r,Qi.InExpected,[p.CurlyR])},e.prototype._parseWhileStatement=function(n){if(!this.peekKeyword("@while"))return null;var r=this.create(hu);return this.consumeToken(),r.addChild(this._parseBinaryExpr())?this._parseBody(r,n):this.finish(r,S.ExpressionExpected,[p.CurlyR])},e.prototype._parseFunctionBodyDeclaration=function(){return this._parseVariableDeclaration()||this._parseReturnStatement()||this._parseWarnAndDebug()||this._parseControlStatement(this._parseFunctionBodyDeclaration.bind(this))},e.prototype._parseFunctionDeclaration=function(){if(!this.peekKeyword("@function"))return null;var n=this.create(nr);if(this.consumeToken(),!n.setIdentifier(this._parseIdent([Z.Function])))return this.finish(n,S.IdentifierExpected,[p.CurlyR]);if(!this.accept(p.ParenthesisL))return this.finish(n,S.LeftParenthesisExpected,[p.CurlyR]);if(n.getParameters().addChild(this._parseParameterDeclaration())){for(;this.accept(p.Comma)&&!this.peek(p.ParenthesisR);)if(!n.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(n,S.VariableNameExpected)}return this.accept(p.ParenthesisR)?this._parseBody(n,this._parseFunctionBodyDeclaration.bind(this)):this.finish(n,S.RightParenthesisExpected,[p.CurlyR])},e.prototype._parseReturnStatement=function(){if(!this.peekKeyword("@return"))return null;var n=this.createNode(v.ReturnStatement);return this.consumeToken(),n.addChild(this._parseExpr())?this.finish(n):this.finish(n,S.ExpressionExpected)},e.prototype._parseMixinDeclaration=function(){if(!this.peekKeyword("@mixin"))return null;var n=this.create(Cn);if(this.consumeToken(),!n.setIdentifier(this._parseIdent([Z.Mixin])))return this.finish(n,S.IdentifierExpected,[p.CurlyR]);if(this.accept(p.ParenthesisL)){if(n.getParameters().addChild(this._parseParameterDeclaration())){for(;this.accept(p.Comma)&&!this.peek(p.ParenthesisR);)if(!n.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(n,S.VariableNameExpected)}if(!this.accept(p.ParenthesisR))return this.finish(n,S.RightParenthesisExpected,[p.CurlyR])}return this._parseBody(n,this._parseRuleSetDeclaration.bind(this))},e.prototype._parseParameterDeclaration=function(){var n=this.create(tr);return n.setIdentifier(this._parseVariable())?(this.accept(Sr),this.accept(p.Colon)&&!n.setDefaultValue(this._parseExpr(!0))?this.finish(n,S.VariableValueExpected,[],[p.Comma,p.ParenthesisR]):this.finish(n)):null},e.prototype._parseMixinContent=function(){if(!this.peekKeyword("@content"))return null;var n=this.create(Du);if(this.consumeToken(),this.accept(p.ParenthesisL)){if(n.getArguments().addChild(this._parseFunctionArgument())){for(;this.accept(p.Comma)&&!this.peek(p.ParenthesisR);)if(!n.getArguments().addChild(this._parseFunctionArgument()))return this.finish(n,S.ExpressionExpected)}if(!this.accept(p.ParenthesisR))return this.finish(n,S.RightParenthesisExpected)}return this.finish(n)},e.prototype._parseMixinReference=function(){if(!this.peekKeyword("@include"))return null;var n=this.create(ir);this.consumeToken();var r=this._parseIdent([Z.Mixin]);if(!n.setIdentifier(r))return this.finish(n,S.IdentifierExpected,[p.CurlyR]);if(!this.hasWhitespace()&&this.acceptDelim(".")&&!this.hasWhitespace()){var i=this._parseIdent([Z.Mixin]);if(!i)return this.finish(n,S.IdentifierExpected,[p.CurlyR]);var s=this.create(Mo);r.referenceTypes=[Z.Module],s.setIdentifier(r),n.setIdentifier(i),n.addChild(s)}if(this.accept(p.ParenthesisL)){if(n.getArguments().addChild(this._parseFunctionArgument())){for(;this.accept(p.Comma)&&!this.peek(p.ParenthesisR);)if(!n.getArguments().addChild(this._parseFunctionArgument()))return this.finish(n,S.ExpressionExpected)}if(!this.accept(p.ParenthesisR))return this.finish(n,S.RightParenthesisExpected)}return(this.peekIdent("using")||this.peek(p.CurlyL))&&n.setContent(this._parseMixinContentDeclaration()),this.finish(n)},e.prototype._parseMixinContentDeclaration=function(){var n=this.create(Au);if(this.acceptIdent("using")){if(!this.accept(p.ParenthesisL))return this.finish(n,S.LeftParenthesisExpected,[p.CurlyL]);if(n.getParameters().addChild(this._parseParameterDeclaration())){for(;this.accept(p.Comma)&&!this.peek(p.ParenthesisR);)if(!n.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(n,S.VariableNameExpected)}if(!this.accept(p.ParenthesisR))return this.finish(n,S.RightParenthesisExpected,[p.CurlyL])}return this.peek(p.CurlyL)&&this._parseBody(n,this._parseMixinReferenceBodyStatement.bind(this)),this.finish(n)},e.prototype._parseMixinReferenceBodyStatement=function(){return this._tryParseKeyframeSelector()||this._parseRuleSetDeclaration()},e.prototype._parseFunctionArgument=function(){var n=this.create(Yt),r=this.mark(),i=this._parseVariable();if(i)if(this.accept(p.Colon))n.setIdentifier(i);else{if(this.accept(Sr))return n.setValue(i),this.finish(n);this.restoreAtMark(r)}return n.setValue(this._parseExpr(!0))?(this.accept(Sr),n.addChild(this._parsePrio()),this.finish(n)):n.setValue(this._tryParsePrio())?this.finish(n):null},e.prototype._parseURLArgument=function(){var n=this.mark(),r=t.prototype._parseURLArgument.call(this);if(!r||!this.peek(p.ParenthesisR)){this.restoreAtMark(n);var i=this.create(U);return i.addChild(this._parseBinaryExpr()),this.finish(i)}return r},e.prototype._parseOperation=function(){if(!this.peek(p.ParenthesisL))return null;var n=this.create(U);for(this.consumeToken();n.addChild(this._parseListElement());)this.accept(p.Comma);return this.accept(p.ParenthesisR)?this.finish(n):this.finish(n,S.RightParenthesisExpected)},e.prototype._parseListElement=function(){var n=this.create(Nu),r=this._parseBinaryExpr();if(!r)return null;if(this.accept(p.Colon)){if(n.setKey(r),!n.setValue(this._parseBinaryExpr()))return this.finish(n,S.ExpressionExpected)}else n.setValue(r);return this.finish(n)},e.prototype._parseUse=function(){if(!this.peekKeyword("@use"))return null;var n=this.create(pu);if(this.consumeToken(),!n.addChild(this._parseStringLiteral()))return this.finish(n,S.StringLiteralExpected);if(!this.peek(p.SemiColon)&&!this.peek(p.EOF)){if(!this.peekRegExp(p.Ident,/as|with/))return this.finish(n,S.UnknownKeyword);if(this.acceptIdent("as")&&!n.setIdentifier(this._parseIdent([Z.Module]))&&!this.acceptDelim("*"))return this.finish(n,S.IdentifierOrWildcardExpected);if(this.acceptIdent("with")){if(!this.accept(p.ParenthesisL))return this.finish(n,S.LeftParenthesisExpected,[p.ParenthesisR]);if(!n.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(n,S.VariableNameExpected);for(;this.accept(p.Comma)&&!this.peek(p.ParenthesisR);)if(!n.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(n,S.VariableNameExpected);if(!this.accept(p.ParenthesisR))return this.finish(n,S.RightParenthesisExpected)}}return!this.accept(p.SemiColon)&&!this.accept(p.EOF)?this.finish(n,S.SemiColonExpected):this.finish(n)},e.prototype._parseModuleConfigDeclaration=function(){var n=this.create(fu);return n.setIdentifier(this._parseVariable())?!this.accept(p.Colon)||!n.setValue(this._parseExpr(!0))?this.finish(n,S.VariableValueExpected,[],[p.Comma,p.ParenthesisR]):this.accept(p.Exclamation)&&(this.hasWhitespace()||!this.acceptIdent("default"))?this.finish(n,S.UnknownKeyword):this.finish(n):null},e.prototype._parseForward=function(){if(!this.peekKeyword("@forward"))return null;var n=this.create(mu);if(this.consumeToken(),!n.addChild(this._parseStringLiteral()))return this.finish(n,S.StringLiteralExpected);if(this.acceptIdent("with")){if(!this.accept(p.ParenthesisL))return this.finish(n,S.LeftParenthesisExpected,[p.ParenthesisR]);if(!n.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(n,S.VariableNameExpected);for(;this.accept(p.Comma)&&!this.peek(p.ParenthesisR);)if(!n.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(n,S.VariableNameExpected);if(!this.accept(p.ParenthesisR))return this.finish(n,S.RightParenthesisExpected)}if(!this.peek(p.SemiColon)&&!this.peek(p.EOF)){if(!this.peekRegExp(p.Ident,/as|hide|show/))return this.finish(n,S.UnknownKeyword);if(this.acceptIdent("as")){var r=this._parseIdent([Z.Forward]);if(!n.setIdentifier(r))return this.finish(n,S.IdentifierExpected);if(this.hasWhitespace()||!this.acceptDelim("*"))return this.finish(n,S.WildcardExpected)}if((this.peekIdent("hide")||this.peekIdent("show"))&&!n.addChild(this._parseForwardVisibility()))return this.finish(n,S.IdentifierOrVariableExpected)}return!this.accept(p.SemiColon)&&!this.accept(p.EOF)?this.finish(n,S.SemiColonExpected):this.finish(n)},e.prototype._parseForwardVisibility=function(){var n=this.create(gu);for(n.setIdentifier(this._parseIdent());n.addChild(this._parseVariable()||this._parseIdent());)this.accept(p.Comma);return n.getChildren().length>1?n:null},e.prototype._parseSupportsCondition=function(){return this._parseInterpolation()||t.prototype._parseSupportsCondition.call(this)},e}(Ni),Hp=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),M=Ge(),Gp=function(t){Hp(e,t);function e(n,r){var i=t.call(this,"$",n,r)||this;return nc(e.scssModuleLoaders),nc(e.scssModuleBuiltIns),i}return e.prototype.isImportPathParent=function(n){return n===v.Forward||n===v.Use||t.prototype.isImportPathParent.call(this,n)},e.prototype.getCompletionForImportPath=function(n,r){var i=n.getParent().type;if(i===v.Forward||i===v.Use)for(var s=0,a=e.scssModuleBuiltIns;s<a.length;s++){var o=a[s],l={label:o.label,documentation:o.documentation,textEdit:H.replace(this.getCompletionRange(n),"'".concat(o.label,"'")),kind:$.Module};r.items.push(l)}return t.prototype.getCompletionForImportPath.call(this,n,r)},e.prototype.createReplaceFunction=function(){var n=1;return function(r,i){return"\\"+i+": ${"+n+++":"+(e.variableDefaults[i]||"")+"}"}},e.prototype.createFunctionProposals=function(n,r,i,s){for(var a=0,o=n;a<o.length;a++){var l=o[a],c=l.func.replace(/\[?(\$\w+)\]?/g,this.createReplaceFunction()),h=l.func.substr(0,l.func.indexOf("(")),u={label:h,detail:l.func,documentation:l.desc,textEdit:H.replace(this.getCompletionRange(r),c),insertTextFormat:Ie.Snippet,kind:$.Function};i&&(u.sortText="z"),s.items.push(u)}return s},e.prototype.getCompletionsForSelector=function(n,r,i){return this.createFunctionProposals(e.selectorFuncs,null,!0,i),t.prototype.getCompletionsForSelector.call(this,n,r,i)},e.prototype.getTermProposals=function(n,r,i){var s=e.builtInFuncs;return n&&(s=s.filter(function(a){return!a.type||!n.restrictions||n.restrictions.indexOf(a.type)!==-1})),this.createFunctionProposals(s,r,!0,i),t.prototype.getTermProposals.call(this,n,r,i)},e.prototype.getColorProposals=function(n,r,i){return this.createFunctionProposals(e.colorProposals,r,!1,i),t.prototype.getColorProposals.call(this,n,r,i)},e.prototype.getCompletionsForDeclarationProperty=function(n,r){return this.getCompletionForAtDirectives(r),this.getCompletionsForSelector(null,!0,r),t.prototype.getCompletionsForDeclarationProperty.call(this,n,r)},e.prototype.getCompletionsForExtendsReference=function(n,r,i){for(var s=this.getSymbolContext().findSymbolsAtOffset(this.offset,Z.Rule),a=0,o=s;a<o.length;a++){var l=o[a],c={label:l.name,textEdit:H.replace(this.getCompletionRange(r),l.name),kind:$.Function};i.items.push(c)}return i},e.prototype.getCompletionForAtDirectives=function(n){var r;return(r=n.items).push.apply(r,e.scssAtDirectives),n},e.prototype.getCompletionForTopLevel=function(n){return this.getCompletionForAtDirectives(n),this.getCompletionForModuleLoaders(n),t.prototype.getCompletionForTopLevel.call(this,n),n},e.prototype.getCompletionForModuleLoaders=function(n){var r;return(r=n.items).push.apply(r,e.scssModuleLoaders),n},e.variableDefaults={$red:"1",$green:"2",$blue:"3",$alpha:"1.0",$color:"#000000",$weight:"0.5",$hue:"0",$saturation:"0%",$lightness:"0%",$degrees:"0",$amount:"0",$string:'""',$substring:'"s"',$number:"0",$limit:"1"},e.colorProposals=[{func:"red($color)",desc:M("scss.builtin.red","Gets the red component of a color.")},{func:"green($color)",desc:M("scss.builtin.green","Gets the green component of a color.")},{func:"blue($color)",desc:M("scss.builtin.blue","Gets the blue component of a color.")},{func:"mix($color, $color, [$weight])",desc:M("scss.builtin.mix","Mixes two colors together.")},{func:"hue($color)",desc:M("scss.builtin.hue","Gets the hue component of a color.")},{func:"saturation($color)",desc:M("scss.builtin.saturation","Gets the saturation component of a color.")},{func:"lightness($color)",desc:M("scss.builtin.lightness","Gets the lightness component of a color.")},{func:"adjust-hue($color, $degrees)",desc:M("scss.builtin.adjust-hue","Changes the hue of a color.")},{func:"lighten($color, $amount)",desc:M("scss.builtin.lighten","Makes a color lighter.")},{func:"darken($color, $amount)",desc:M("scss.builtin.darken","Makes a color darker.")},{func:"saturate($color, $amount)",desc:M("scss.builtin.saturate","Makes a color more saturated.")},{func:"desaturate($color, $amount)",desc:M("scss.builtin.desaturate","Makes a color less saturated.")},{func:"grayscale($color)",desc:M("scss.builtin.grayscale","Converts a color to grayscale.")},{func:"complement($color)",desc:M("scss.builtin.complement","Returns the complement of a color.")},{func:"invert($color)",desc:M("scss.builtin.invert","Returns the inverse of a color.")},{func:"alpha($color)",desc:M("scss.builtin.alpha","Gets the opacity component of a color.")},{func:"opacity($color)",desc:"Gets the alpha component (opacity) of a color."},{func:"rgba($color, $alpha)",desc:M("scss.builtin.rgba","Changes the alpha component for a color.")},{func:"opacify($color, $amount)",desc:M("scss.builtin.opacify","Makes a color more opaque.")},{func:"fade-in($color, $amount)",desc:M("scss.builtin.fade-in","Makes a color more opaque.")},{func:"transparentize($color, $amount)",desc:M("scss.builtin.transparentize","Makes a color more transparent.")},{func:"fade-out($color, $amount)",desc:M("scss.builtin.fade-out","Makes a color more transparent.")},{func:"adjust-color($color, [$red], [$green], [$blue], [$hue], [$saturation], [$lightness], [$alpha])",desc:M("scss.builtin.adjust-color","Increases or decreases one or more components of a color.")},{func:"scale-color($color, [$red], [$green], [$blue], [$saturation], [$lightness], [$alpha])",desc:M("scss.builtin.scale-color","Fluidly scales one or more properties of a color.")},{func:"change-color($color, [$red], [$green], [$blue], [$hue], [$saturation], [$lightness], [$alpha])",desc:M("scss.builtin.change-color","Changes one or more properties of a color.")},{func:"ie-hex-str($color)",desc:M("scss.builtin.ie-hex-str","Converts a color into the format understood by IE filters.")}],e.selectorFuncs=[{func:"selector-nest($selectors…)",desc:M("scss.builtin.selector-nest","Nests selector beneath one another like they would be nested in the stylesheet.")},{func:"selector-append($selectors…)",desc:M("scss.builtin.selector-append","Appends selectors to one another without spaces in between.")},{func:"selector-extend($selector, $extendee, $extender)",desc:M("scss.builtin.selector-extend","Extends $extendee with $extender within $selector.")},{func:"selector-replace($selector, $original, $replacement)",desc:M("scss.builtin.selector-replace","Replaces $original with $replacement within $selector.")},{func:"selector-unify($selector1, $selector2)",desc:M("scss.builtin.selector-unify","Unifies two selectors to produce a selector that matches elements matched by both.")},{func:"is-superselector($super, $sub)",desc:M("scss.builtin.is-superselector","Returns whether $super matches all the elements $sub does, and possibly more.")},{func:"simple-selectors($selector)",desc:M("scss.builtin.simple-selectors","Returns the simple selectors that comprise a compound selector.")},{func:"selector-parse($selector)",desc:M("scss.builtin.selector-parse","Parses a selector into the format returned by &.")}],e.builtInFuncs=[{func:"unquote($string)",desc:M("scss.builtin.unquote","Removes quotes from a string.")},{func:"quote($string)",desc:M("scss.builtin.quote","Adds quotes to a string.")},{func:"str-length($string)",desc:M("scss.builtin.str-length","Returns the number of characters in a string.")},{func:"str-insert($string, $insert, $index)",desc:M("scss.builtin.str-insert","Inserts $insert into $string at $index.")},{func:"str-index($string, $substring)",desc:M("scss.builtin.str-index","Returns the index of the first occurance of $substring in $string.")},{func:"str-slice($string, $start-at, [$end-at])",desc:M("scss.builtin.str-slice","Extracts a substring from $string.")},{func:"to-upper-case($string)",desc:M("scss.builtin.to-upper-case","Converts a string to upper case.")},{func:"to-lower-case($string)",desc:M("scss.builtin.to-lower-case","Converts a string to lower case.")},{func:"percentage($number)",desc:M("scss.builtin.percentage","Converts a unitless number to a percentage."),type:"percentage"},{func:"round($number)",desc:M("scss.builtin.round","Rounds a number to the nearest whole number.")},{func:"ceil($number)",desc:M("scss.builtin.ceil","Rounds a number up to the next whole number.")},{func:"floor($number)",desc:M("scss.builtin.floor","Rounds a number down to the previous whole number.")},{func:"abs($number)",desc:M("scss.builtin.abs","Returns the absolute value of a number.")},{func:"min($numbers)",desc:M("scss.builtin.min","Finds the minimum of several numbers.")},{func:"max($numbers)",desc:M("scss.builtin.max","Finds the maximum of several numbers.")},{func:"random([$limit])",desc:M("scss.builtin.random","Returns a random number.")},{func:"length($list)",desc:M("scss.builtin.length","Returns the length of a list.")},{func:"nth($list, $n)",desc:M("scss.builtin.nth","Returns a specific item in a list.")},{func:"set-nth($list, $n, $value)",desc:M("scss.builtin.set-nth","Replaces the nth item in a list.")},{func:"join($list1, $list2, [$separator])",desc:M("scss.builtin.join","Joins together two lists into one.")},{func:"append($list1, $val, [$separator])",desc:M("scss.builtin.append","Appends a single value onto the end of a list.")},{func:"zip($lists)",desc:M("scss.builtin.zip","Combines several lists into a single multidimensional list.")},{func:"index($list, $value)",desc:M("scss.builtin.index","Returns the position of a value within a list.")},{func:"list-separator(#list)",desc:M("scss.builtin.list-separator","Returns the separator of a list.")},{func:"map-get($map, $key)",desc:M("scss.builtin.map-get","Returns the value in a map associated with a given key.")},{func:"map-merge($map1, $map2)",desc:M("scss.builtin.map-merge","Merges two maps together into a new map.")},{func:"map-remove($map, $keys)",desc:M("scss.builtin.map-remove","Returns a new map with keys removed.")},{func:"map-keys($map)",desc:M("scss.builtin.map-keys","Returns a list of all keys in a map.")},{func:"map-values($map)",desc:M("scss.builtin.map-values","Returns a list of all values in a map.")},{func:"map-has-key($map, $key)",desc:M("scss.builtin.map-has-key","Returns whether a map has a value associated with a given key.")},{func:"keywords($args)",desc:M("scss.builtin.keywords","Returns the keywords passed to a function that takes variable arguments.")},{func:"feature-exists($feature)",desc:M("scss.builtin.feature-exists","Returns whether a feature exists in the current Sass runtime.")},{func:"variable-exists($name)",desc:M("scss.builtin.variable-exists","Returns whether a variable with the given name exists in the current scope.")},{func:"global-variable-exists($name)",desc:M("scss.builtin.global-variable-exists","Returns whether a variable with the given name exists in the global scope.")},{func:"function-exists($name)",desc:M("scss.builtin.function-exists","Returns whether a function with the given name exists.")},{func:"mixin-exists($name)",desc:M("scss.builtin.mixin-exists","Returns whether a mixin with the given name exists.")},{func:"inspect($value)",desc:M("scss.builtin.inspect","Returns the string representation of a value as it would be represented in Sass.")},{func:"type-of($value)",desc:M("scss.builtin.type-of","Returns the type of a value.")},{func:"unit($number)",desc:M("scss.builtin.unit","Returns the unit(s) associated with a number.")},{func:"unitless($number)",desc:M("scss.builtin.unitless","Returns whether a number has units.")},{func:"comparable($number1, $number2)",desc:M("scss.builtin.comparable","Returns whether two numbers can be added, subtracted, or compared.")},{func:"call($name, $args…)",desc:M("scss.builtin.call","Dynamically calls a Sass function.")}],e.scssAtDirectives=[{label:"@extend",documentation:M("scss.builtin.@extend","Inherits the styles of another selector."),kind:$.Keyword},{label:"@at-root",documentation:M("scss.builtin.@at-root","Causes one or more rules to be emitted at the root of the document."),kind:$.Keyword},{label:"@debug",documentation:M("scss.builtin.@debug","Prints the value of an expression to the standard error output stream. Useful for debugging complicated Sass files."),kind:$.Keyword},{label:"@warn",documentation:M("scss.builtin.@warn","Prints the value of an expression to the standard error output stream. Useful for libraries that need to warn users of deprecations or recovering from minor mixin usage mistakes. Warnings can be turned off with the `--quiet` command-line option or the `:quiet` Sass option."),kind:$.Keyword},{label:"@error",documentation:M("scss.builtin.@error","Throws the value of an expression as a fatal error with stack trace. Useful for validating arguments to mixins and functions."),kind:$.Keyword},{label:"@if",documentation:M("scss.builtin.@if","Includes the body if the expression does not evaluate to `false` or `null`."),insertText:`@if \${1:expr} {
|
|
39
39
|
$0
|
|
40
40
|
}`,insertTextFormat:Ie.Snippet,kind:$.Keyword},{label:"@for",documentation:M("scss.builtin.@for","For loop that repeatedly outputs a set of styles for each `$var` in the `from/through` or `from/to` clause."),insertText:"@for \\$${1:var} from ${2:start} ${3|to,through|} ${4:end} {\n $0\n}",insertTextFormat:Ie.Snippet,kind:$.Keyword},{label:"@each",documentation:M("scss.builtin.@each","Each loop that sets `$var` to each item in the list or map, then outputs the styles it contains using that value of `$var`."),insertText:"@each \\$${1:var} in ${2:list} {\n $0\n}",insertTextFormat:Ie.Snippet,kind:$.Keyword},{label:"@while",documentation:M("scss.builtin.@while","While loop that takes an expression and repeatedly outputs the nested styles until the statement evaluates to `false`."),insertText:`@while \${1:condition} {
|
|
41
41
|
$0
|
|
@@ -43,7 +43,7 @@ Syntax: `.concat(ur(t.syntax)))}return t.references&&t.references.length>0&&e?.r
|
|
|
43
43
|
$0
|
|
44
44
|
}`,insertTextFormat:Ie.Snippet,kind:$.Keyword},{label:"@include",documentation:M("scss.builtin.@include","Includes the styles defined by another mixin into the current rule."),kind:$.Keyword},{label:"@function",documentation:M("scss.builtin.@function","Defines complex operations that can be re-used throughout stylesheets."),kind:$.Keyword}],e.scssModuleLoaders=[{label:"@use",documentation:M("scss.builtin.@use","Loads mixins, functions, and variables from other Sass stylesheets as 'modules', and combines CSS from multiple stylesheets together."),references:[{name:"Sass documentation",url:"https://sass-lang.com/documentation/at-rules/use"}],insertText:"@use $0;",insertTextFormat:Ie.Snippet,kind:$.Keyword},{label:"@forward",documentation:M("scss.builtin.@forward","Loads a Sass stylesheet and makes its mixins, functions, and variables available when this stylesheet is loaded with the @use rule."),references:[{name:"Sass documentation",url:"https://sass-lang.com/documentation/at-rules/forward"}],insertText:"@forward $0;",insertTextFormat:Ie.Snippet,kind:$.Keyword}],e.scssModuleBuiltIns=[{label:"sass:math",documentation:M("scss.builtin.sass:math","Provides functions that operate on numbers."),references:[{name:"Sass documentation",url:"https://sass-lang.com/documentation/modules/math"}]},{label:"sass:string",documentation:M("scss.builtin.sass:string","Makes it easy to combine, search, or split apart strings."),references:[{name:"Sass documentation",url:"https://sass-lang.com/documentation/modules/string"}]},{label:"sass:color",documentation:M("scss.builtin.sass:color","Generates new colors based on existing ones, making it easy to build color themes."),references:[{name:"Sass documentation",url:"https://sass-lang.com/documentation/modules/color"}]},{label:"sass:list",documentation:M("scss.builtin.sass:list","Lets you access and modify values in lists."),references:[{name:"Sass documentation",url:"https://sass-lang.com/documentation/modules/list"}]},{label:"sass:map",documentation:M("scss.builtin.sass:map","Makes it possible to look up the value associated with a key in a map, and much more."),references:[{name:"Sass documentation",url:"https://sass-lang.com/documentation/modules/map"}]},{label:"sass:selector",documentation:M("scss.builtin.sass:selector","Provides access to Sass’s powerful selector engine."),references:[{name:"Sass documentation",url:"https://sass-lang.com/documentation/modules/selector"}]},{label:"sass:meta",documentation:M("scss.builtin.sass:meta","Exposes the details of Sass’s inner workings."),references:[{name:"Sass documentation",url:"https://sass-lang.com/documentation/modules/meta"}]}],e}(Wi);function nc(t){t.forEach(function(e){if(e.documentation&&e.references&&e.references.length>0){var n=typeof e.documentation=="string"?{kind:"markdown",value:e.documentation}:{kind:"markdown",value:e.documentation.value};n.value+=`
|
|
45
45
|
|
|
46
|
-
`,n.value+=e.references.map(function(r){return"[".concat(r.name,"](").concat(r.url,")")}).join(" | "),e.documentation=n}})}var Jp=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),rc=47,Xp=10,Yp=13,Qp=12,Zi=96,es=46,Kp=p.CustomToken,ts=Kp++,ic=function(t){Jp(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.scanNext=function(n){var r=this.escapedJavaScript();return r!==null?this.finishToken(n,r):this.stream.advanceIfChars([es,es,es])?this.finishToken(n,ts):t.prototype.scanNext.call(this,n)},e.prototype.comment=function(){return t.prototype.comment.call(this)?!0:!this.inURL&&this.stream.advanceIfChars([rc,rc])?(this.stream.advanceWhileChar(function(n){switch(n){case Xp:case Yp:case Qp:return!1;default:return!0}}),!0):!1},e.prototype.escapedJavaScript=function(){var n=this.stream.peekChar();return n===Zi?(this.stream.advance(1),this.stream.advanceWhileChar(function(r){return r!==Zi}),this.stream.advanceIfChar(Zi)?p.EscapedJavaScript:p.BadEscapedJavaScript):null},e}(vn),Zp=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),ef=function(t){Zp(e,t);function e(){return t.call(this,new ic)||this}return e.prototype._parseStylesheetStatement=function(n){return n===void 0&&(n=!1),this.peek(p.AtKeyword)?this._parseVariableDeclaration()||this._parsePlugin()||t.prototype._parseStylesheetAtStatement.call(this,n):this._tryParseMixinDeclaration()||this._tryParseMixinReference()||this._parseFunction()||this._parseRuleset(!0)},e.prototype._parseImport=function(){if(!this.peekKeyword("@import")&&!this.peekKeyword("@import-once"))return null;var n=this.create(mi);if(this.consumeToken(),this.accept(p.ParenthesisL)){if(!this.accept(p.Ident))return this.finish(n,S.IdentifierExpected,[p.SemiColon]);do if(!this.accept(p.Comma))break;while(this.accept(p.Ident));if(!this.accept(p.ParenthesisR))return this.finish(n,S.RightParenthesisExpected,[p.SemiColon])}return!n.addChild(this._parseURILiteral())&&!n.addChild(this._parseStringLiteral())?this.finish(n,S.URIOrStringExpected,[p.SemiColon]):(!this.peek(p.SemiColon)&&!this.peek(p.EOF)&&n.setMedialist(this._parseMediaQueryList()),this.finish(n))},e.prototype._parsePlugin=function(){if(!this.peekKeyword("@plugin"))return null;var n=this.createNode(v.Plugin);return this.consumeToken(),n.addChild(this._parseStringLiteral())?this.accept(p.SemiColon)?this.finish(n):this.finish(n,S.SemiColonExpected):this.finish(n,S.StringLiteralExpected)},e.prototype._parseMediaQuery=function(){var n=t.prototype._parseMediaQuery.call(this);if(!n){var r=this.create(Do);return r.addChild(this._parseVariable())?this.finish(r):null}return n},e.prototype._parseMediaDeclaration=function(n){return n===void 0&&(n=!1),this._tryParseRuleset(n)||this._tryToParseDeclaration()||this._tryParseMixinDeclaration()||this._tryParseMixinReference()||this._parseDetachedRuleSetMixin()||this._parseStylesheetStatement(n)},e.prototype._parseMediaFeatureName=function(){return this._parseIdent()||this._parseVariable()},e.prototype._parseVariableDeclaration=function(n){n===void 0&&(n=[]);var r=this.create(rr),i=this.mark();if(!r.setVariable(this._parseVariable(!0)))return null;if(this.accept(p.Colon)){if(this.prevToken&&(r.colonPosition=this.prevToken.offset),r.setValue(this._parseDetachedRuleSet()))r.needsSemicolon=!1;else if(!r.setValue(this._parseExpr()))return this.finish(r,S.VariableValueExpected,[],n);r.addChild(this._parsePrio())}else return this.restoreAtMark(i),null;return this.peek(p.SemiColon)&&(r.semicolonPosition=this.token.offset),this.finish(r)},e.prototype._parseDetachedRuleSet=function(){var n=this.mark();if(this.peekDelim("#")||this.peekDelim("."))if(this.consumeToken(),!this.hasWhitespace()&&this.accept(p.ParenthesisL)){var r=this.create(Cn);if(r.getParameters().addChild(this._parseMixinParameter()))for(;(this.accept(p.Comma)||this.accept(p.SemiColon))&&!this.peek(p.ParenthesisR);)r.getParameters().addChild(this._parseMixinParameter())||this.markError(r,S.IdentifierExpected,[],[p.ParenthesisR]);if(!this.accept(p.ParenthesisR))return this.restoreAtMark(n),null}else return this.restoreAtMark(n),null;if(!this.peek(p.CurlyL))return null;var i=this.create(he);return this._parseBody(i,this._parseDetachedRuleSetBody.bind(this)),this.finish(i)},e.prototype._parseDetachedRuleSetBody=function(){return this._tryParseKeyframeSelector()||this._parseRuleSetDeclaration()},e.prototype._addLookupChildren=function(n){if(!n.addChild(this._parseLookupValue()))return!1;for(var r=!1;this.peek(p.BracketL)&&(r=!0),!!n.addChild(this._parseLookupValue());)r=!1;return!r},e.prototype._parseLookupValue=function(){var n=this.create(U),r=this.mark();return this.accept(p.BracketL)?(n.addChild(this._parseVariable(!1,!0))||n.addChild(this._parsePropertyIdentifier()))&&this.accept(p.BracketR)||this.accept(p.BracketR)?n:(this.restoreAtMark(r),null):(this.restoreAtMark(r),null)},e.prototype._parseVariable=function(n,r){n===void 0&&(n=!1),r===void 0&&(r=!1);var i=!n&&this.peekDelim("$");if(!this.peekDelim("@")&&!i&&!this.peek(p.AtKeyword))return null;for(var s=this.create(xi),a=this.mark();this.acceptDelim("@")||!n&&this.acceptDelim("$");)if(this.hasWhitespace())return this.restoreAtMark(a),null;return!this.accept(p.AtKeyword)&&!this.accept(p.Ident)?(this.restoreAtMark(a),null):!r&&this.peek(p.BracketL)&&!this._addLookupChildren(s)?(this.restoreAtMark(a),null):s},e.prototype._parseTermExpression=function(){return this._parseVariable()||this._parseEscaped()||t.prototype._parseTermExpression.call(this)||this._tryParseMixinReference(!1)},e.prototype._parseEscaped=function(){if(this.peek(p.EscapedJavaScript)||this.peek(p.BadEscapedJavaScript)){var n=this.createNode(v.EscapedValue);return this.consumeToken(),this.finish(n)}if(this.peekDelim("~")){var n=this.createNode(v.EscapedValue);return this.consumeToken(),this.accept(p.String)||this.accept(p.EscapedJavaScript)?this.finish(n):this.finish(n,S.TermExpected)}return null},e.prototype._parseOperator=function(){var n=this._parseGuardOperator();return n||t.prototype._parseOperator.call(this)},e.prototype._parseGuardOperator=function(){if(this.peekDelim(">")){var n=this.createNode(v.Operator);return this.consumeToken(),this.acceptDelim("="),n}else if(this.peekDelim("=")){var n=this.createNode(v.Operator);return this.consumeToken(),this.acceptDelim("<"),n}else if(this.peekDelim("<")){var n=this.createNode(v.Operator);return this.consumeToken(),this.acceptDelim("="),n}return null},e.prototype._parseRuleSetDeclaration=function(){return this.peek(p.AtKeyword)?this._parseKeyframe()||this._parseMedia(!0)||this._parseImport()||this._parseSupports(!0)||this._parseDetachedRuleSetMixin()||this._parseVariableDeclaration()||t.prototype._parseRuleSetDeclarationAtStatement.call(this):this._tryParseMixinDeclaration()||this._tryParseRuleset(!0)||this._tryParseMixinReference()||this._parseFunction()||this._parseExtend()||t.prototype._parseRuleSetDeclaration.call(this)},e.prototype._parseKeyframeIdent=function(){return this._parseIdent([Z.Keyframe])||this._parseVariable()},e.prototype._parseKeyframeSelector=function(){return this._parseDetachedRuleSetMixin()||t.prototype._parseKeyframeSelector.call(this)},e.prototype._parseSimpleSelectorBody=function(){return this._parseSelectorCombinator()||t.prototype._parseSimpleSelectorBody.call(this)},e.prototype._parseSelector=function(n){var r=this.create(yn),i=!1;for(n&&(i=r.addChild(this._parseCombinator()));r.addChild(this._parseSimpleSelector());){i=!0;var s=this.mark();if(r.addChild(this._parseGuard())&&this.peek(p.CurlyL))break;this.restoreAtMark(s),r.addChild(this._parseCombinator())}return i?this.finish(r):null},e.prototype._parseSelectorCombinator=function(){if(this.peekDelim("&")){var n=this.createNode(v.SelectorCombinator);for(this.consumeToken();!this.hasWhitespace()&&(this.acceptDelim("-")||this.accept(p.Num)||this.accept(p.Dimension)||n.addChild(this._parseIdent())||this.acceptDelim("&")););return this.finish(n)}return null},e.prototype._parseSelectorIdent=function(){if(!this.peekInterpolatedIdent())return null;var n=this.createNode(v.SelectorInterpolation),r=this._acceptInterpolatedIdent(n);return r?this.finish(n):null},e.prototype._parsePropertyIdentifier=function(n){n===void 0&&(n=!1);var r=/^[\w-]+/;if(!this.peekInterpolatedIdent()&&!this.peekRegExp(this.token.type,r))return null;var i=this.mark(),s=this.create(We);s.isCustomProperty=this.acceptDelim("-")&&this.acceptDelim("-");var a=!1;return n?s.isCustomProperty?a=s.addChild(this._parseIdent()):a=s.addChild(this._parseRegexp(r)):s.isCustomProperty?a=this._acceptInterpolatedIdent(s):a=this._acceptInterpolatedIdent(s,r),a?(!n&&!this.hasWhitespace()&&(this.acceptDelim("+"),this.hasWhitespace()||this.acceptIdent("_")),this.finish(s)):(this.restoreAtMark(i),null)},e.prototype.peekInterpolatedIdent=function(){return this.peek(p.Ident)||this.peekDelim("@")||this.peekDelim("$")||this.peekDelim("-")},e.prototype._acceptInterpolatedIdent=function(n,r){for(var i=this,s=!1,a=function(){var l=i.mark();return i.acceptDelim("-")&&(i.hasWhitespace()||i.acceptDelim("-"),i.hasWhitespace())?(i.restoreAtMark(l),null):i._parseInterpolation()},o=r?function(){return i.acceptRegexp(r)}:function(){return i.accept(p.Ident)};(o()||n.addChild(this._parseInterpolation()||this.try(a)))&&(s=!0,!this.hasWhitespace()););return s},e.prototype._parseInterpolation=function(){var n=this.mark();if(this.peekDelim("@")||this.peekDelim("$")){var r=this.createNode(v.Interpolation);return this.consumeToken(),this.hasWhitespace()||!this.accept(p.CurlyL)?(this.restoreAtMark(n),null):r.addChild(this._parseIdent())?this.accept(p.CurlyR)?this.finish(r):this.finish(r,S.RightCurlyExpected):this.finish(r,S.IdentifierExpected)}return null},e.prototype._tryParseMixinDeclaration=function(){var n=this.mark(),r=this.create(Cn);if(!r.setIdentifier(this._parseMixinDeclarationIdentifier())||!this.accept(p.ParenthesisL))return this.restoreAtMark(n),null;if(r.getParameters().addChild(this._parseMixinParameter()))for(;(this.accept(p.Comma)||this.accept(p.SemiColon))&&!this.peek(p.ParenthesisR);)r.getParameters().addChild(this._parseMixinParameter())||this.markError(r,S.IdentifierExpected,[],[p.ParenthesisR]);return this.accept(p.ParenthesisR)?(r.setGuard(this._parseGuard()),this.peek(p.CurlyL)?this._parseBody(r,this._parseMixInBodyDeclaration.bind(this)):(this.restoreAtMark(n),null)):(this.restoreAtMark(n),null)},e.prototype._parseMixInBodyDeclaration=function(){return this._parseFontFace()||this._parseRuleSetDeclaration()},e.prototype._parseMixinDeclarationIdentifier=function(){var n;if(this.peekDelim("#")||this.peekDelim(".")){if(n=this.create(We),this.consumeToken(),this.hasWhitespace()||!n.addChild(this._parseIdent()))return null}else if(this.peek(p.Hash))n=this.create(We),this.consumeToken();else return null;return n.referenceTypes=[Z.Mixin],this.finish(n)},e.prototype._parsePseudo=function(){if(!this.peek(p.Colon))return null;var n=this.mark(),r=this.create(Sn);return this.consumeToken(),this.acceptIdent("extend")?this._completeExtends(r):(this.restoreAtMark(n),t.prototype._parsePseudo.call(this))},e.prototype._parseExtend=function(){if(!this.peekDelim("&"))return null;var n=this.mark(),r=this.create(Sn);return this.consumeToken(),this.hasWhitespace()||!this.accept(p.Colon)||!this.acceptIdent("extend")?(this.restoreAtMark(n),null):this._completeExtends(r)},e.prototype._completeExtends=function(n){if(!this.accept(p.ParenthesisL))return this.finish(n,S.LeftParenthesisExpected);var r=n.getSelectors();if(!r.addChild(this._parseSelector(!0)))return this.finish(n,S.SelectorExpected);for(;this.accept(p.Comma);)if(!r.addChild(this._parseSelector(!0)))return this.finish(n,S.SelectorExpected);return this.accept(p.ParenthesisR)?this.finish(n):this.finish(n,S.RightParenthesisExpected)},e.prototype._parseDetachedRuleSetMixin=function(){if(!this.peek(p.AtKeyword))return null;var n=this.mark(),r=this.create(ir);return r.addChild(this._parseVariable(!0))&&(this.hasWhitespace()||!this.accept(p.ParenthesisL))?(this.restoreAtMark(n),null):this.accept(p.ParenthesisR)?this.finish(r):this.finish(r,S.RightParenthesisExpected)},e.prototype._tryParseMixinReference=function(n){n===void 0&&(n=!0);for(var r=this.mark(),i=this.create(ir),s=this._parseMixinDeclarationIdentifier();s;){this.acceptDelim(">");var a=this._parseMixinDeclarationIdentifier();if(a)i.getNamespaces().addChild(s),s=a;else break}if(!i.setIdentifier(s))return this.restoreAtMark(r),null;var o=!1;if(this.accept(p.ParenthesisL)){if(o=!0,i.getArguments().addChild(this._parseMixinArgument())){for(;(this.accept(p.Comma)||this.accept(p.SemiColon))&&!this.peek(p.ParenthesisR);)if(!i.getArguments().addChild(this._parseMixinArgument()))return this.finish(i,S.ExpressionExpected)}if(!this.accept(p.ParenthesisR))return this.finish(i,S.RightParenthesisExpected);s.referenceTypes=[Z.Mixin]}else s.referenceTypes=[Z.Mixin,Z.Rule];return this.peek(p.BracketL)?n||this._addLookupChildren(i):i.addChild(this._parsePrio()),!o&&!this.peek(p.SemiColon)&&!this.peek(p.CurlyR)&&!this.peek(p.EOF)?(this.restoreAtMark(r),null):this.finish(i)},e.prototype._parseMixinArgument=function(){var n=this.create(Yt),r=this.mark(),i=this._parseVariable();return i&&(this.accept(p.Colon)?n.setIdentifier(i):this.restoreAtMark(r)),n.setValue(this._parseDetachedRuleSet()||this._parseExpr(!0))?this.finish(n):(this.restoreAtMark(r),null)},e.prototype._parseMixinParameter=function(){var n=this.create(tr);if(this.peekKeyword("@rest")){var r=this.create(U);return this.consumeToken(),this.accept(ts)?(n.setIdentifier(this.finish(r)),this.finish(n)):this.finish(n,S.DotExpected,[],[p.Comma,p.ParenthesisR])}if(this.peek(ts)){var i=this.create(U);return this.consumeToken(),n.setIdentifier(this.finish(i)),this.finish(n)}var s=!1;return n.setIdentifier(this._parseVariable())&&(this.accept(p.Colon),s=!0),!n.setDefaultValue(this._parseDetachedRuleSet()||this._parseExpr(!0))&&!s?null:this.finish(n)},e.prototype._parseGuard=function(){if(!this.peekIdent("when"))return null;var n=this.create(Mu);if(this.consumeToken(),n.isNegated=this.acceptIdent("not"),!n.getConditions().addChild(this._parseGuardCondition()))return this.finish(n,S.ConditionExpected);for(;this.acceptIdent("and")||this.accept(p.Comma);)if(!n.getConditions().addChild(this._parseGuardCondition()))return this.finish(n,S.ConditionExpected);return this.finish(n)},e.prototype._parseGuardCondition=function(){if(!this.peek(p.ParenthesisL))return null;var n=this.create(zu);return this.consumeToken(),n.addChild(this._parseExpr()),this.accept(p.ParenthesisR)?this.finish(n):this.finish(n,S.RightParenthesisExpected)},e.prototype._parseFunction=function(){var n=this.mark(),r=this.create(wn);if(!r.setIdentifier(this._parseFunctionIdentifier()))return null;if(this.hasWhitespace()||!this.accept(p.ParenthesisL))return this.restoreAtMark(n),null;if(r.getArguments().addChild(this._parseMixinArgument())){for(;(this.accept(p.Comma)||this.accept(p.SemiColon))&&!this.peek(p.ParenthesisR);)if(!r.getArguments().addChild(this._parseMixinArgument()))return this.finish(r,S.ExpressionExpected)}return this.accept(p.ParenthesisR)?this.finish(r):this.finish(r,S.RightParenthesisExpected)},e.prototype._parseFunctionIdentifier=function(){if(this.peekDelim("%")){var n=this.create(We);return n.referenceTypes=[Z.Function],this.consumeToken(),this.finish(n)}return t.prototype._parseFunctionIdentifier.call(this)},e.prototype._parseURLArgument=function(){var n=this.mark(),r=t.prototype._parseURLArgument.call(this);if(!r||!this.peek(p.ParenthesisR)){this.restoreAtMark(n);var i=this.create(U);return i.addChild(this._parseBinaryExpr()),this.finish(i)}return r},e}(Ni),tf=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),q=Ge(),nf=function(t){tf(e,t);function e(n,r){return t.call(this,"@",n,r)||this}return e.prototype.createFunctionProposals=function(n,r,i,s){for(var a=0,o=n;a<o.length;a++){var l=o[a],c={label:l.name,detail:l.example,documentation:l.description,textEdit:H.replace(this.getCompletionRange(r),l.name+"($0)"),insertTextFormat:Ie.Snippet,kind:$.Function};i&&(c.sortText="z"),s.items.push(c)}return s},e.prototype.getTermProposals=function(n,r,i){var s=e.builtInProposals;return n&&(s=s.filter(function(a){return!a.type||!n.restrictions||n.restrictions.indexOf(a.type)!==-1})),this.createFunctionProposals(s,r,!0,i),t.prototype.getTermProposals.call(this,n,r,i)},e.prototype.getColorProposals=function(n,r,i){return this.createFunctionProposals(e.colorProposals,r,!1,i),t.prototype.getColorProposals.call(this,n,r,i)},e.prototype.getCompletionsForDeclarationProperty=function(n,r){return this.getCompletionsForSelector(null,!0,r),t.prototype.getCompletionsForDeclarationProperty.call(this,n,r)},e.builtInProposals=[{name:"if",example:"if(condition, trueValue [, falseValue]);",description:q("less.builtin.if","returns one of two values depending on a condition.")},{name:"boolean",example:"boolean(condition);",description:q("less.builtin.boolean",'"store" a boolean test for later evaluation in a guard or if().')},{name:"length",example:"length(@list);",description:q("less.builtin.length","returns the number of elements in a value list")},{name:"extract",example:"extract(@list, index);",description:q("less.builtin.extract","returns a value at the specified position in the list")},{name:"range",example:"range([start, ] end [, step]);",description:q("less.builtin.range","generate a list spanning a range of values")},{name:"each",example:"each(@list, ruleset);",description:q("less.builtin.each","bind the evaluation of a ruleset to each member of a list.")},{name:"escape",example:"escape(@string);",description:q("less.builtin.escape","URL encodes a string")},{name:"e",example:"e(@string);",description:q("less.builtin.e","escape string content")},{name:"replace",example:"replace(@string, @pattern, @replacement[, @flags]);",description:q("less.builtin.replace","string replace")},{name:"unit",example:"unit(@dimension, [@unit: '']);",description:q("less.builtin.unit","remove or change the unit of a dimension")},{name:"color",example:"color(@string);",description:q("less.builtin.color","parses a string to a color"),type:"color"},{name:"convert",example:"convert(@value, unit);",description:q("less.builtin.convert","converts numbers from one type into another")},{name:"data-uri",example:"data-uri([mimetype,] url);",description:q("less.builtin.data-uri","inlines a resource and falls back to `url()`"),type:"url"},{name:"abs",description:q("less.builtin.abs","absolute value of a number"),example:"abs(number);"},{name:"acos",description:q("less.builtin.acos","arccosine - inverse of cosine function"),example:"acos(number);"},{name:"asin",description:q("less.builtin.asin","arcsine - inverse of sine function"),example:"asin(number);"},{name:"ceil",example:"ceil(@number);",description:q("less.builtin.ceil","rounds up to an integer")},{name:"cos",description:q("less.builtin.cos","cosine function"),example:"cos(number);"},{name:"floor",description:q("less.builtin.floor","rounds down to an integer"),example:"floor(@number);"},{name:"percentage",description:q("less.builtin.percentage","converts to a %, e.g. 0.5 > 50%"),example:"percentage(@number);",type:"percentage"},{name:"round",description:q("less.builtin.round","rounds a number to a number of places"),example:"round(number, [places: 0]);"},{name:"sqrt",description:q("less.builtin.sqrt","calculates square root of a number"),example:"sqrt(number);"},{name:"sin",description:q("less.builtin.sin","sine function"),example:"sin(number);"},{name:"tan",description:q("less.builtin.tan","tangent function"),example:"tan(number);"},{name:"atan",description:q("less.builtin.atan","arctangent - inverse of tangent function"),example:"atan(number);"},{name:"pi",description:q("less.builtin.pi","returns pi"),example:"pi();"},{name:"pow",description:q("less.builtin.pow","first argument raised to the power of the second argument"),example:"pow(@base, @exponent);"},{name:"mod",description:q("less.builtin.mod","first argument modulus second argument"),example:"mod(number, number);"},{name:"min",description:q("less.builtin.min","returns the lowest of one or more values"),example:"min(@x, @y);"},{name:"max",description:q("less.builtin.max","returns the lowest of one or more values"),example:"max(@x, @y);"}],e.colorProposals=[{name:"argb",example:"argb(@color);",description:q("less.builtin.argb","creates a #AARRGGBB")},{name:"hsl",example:"hsl(@hue, @saturation, @lightness);",description:q("less.builtin.hsl","creates a color")},{name:"hsla",example:"hsla(@hue, @saturation, @lightness, @alpha);",description:q("less.builtin.hsla","creates a color")},{name:"hsv",example:"hsv(@hue, @saturation, @value);",description:q("less.builtin.hsv","creates a color")},{name:"hsva",example:"hsva(@hue, @saturation, @value, @alpha);",description:q("less.builtin.hsva","creates a color")},{name:"hue",example:"hue(@color);",description:q("less.builtin.hue","returns the `hue` channel of `@color` in the HSL space")},{name:"saturation",example:"saturation(@color);",description:q("less.builtin.saturation","returns the `saturation` channel of `@color` in the HSL space")},{name:"lightness",example:"lightness(@color);",description:q("less.builtin.lightness","returns the `lightness` channel of `@color` in the HSL space")},{name:"hsvhue",example:"hsvhue(@color);",description:q("less.builtin.hsvhue","returns the `hue` channel of `@color` in the HSV space")},{name:"hsvsaturation",example:"hsvsaturation(@color);",description:q("less.builtin.hsvsaturation","returns the `saturation` channel of `@color` in the HSV space")},{name:"hsvvalue",example:"hsvvalue(@color);",description:q("less.builtin.hsvvalue","returns the `value` channel of `@color` in the HSV space")},{name:"red",example:"red(@color);",description:q("less.builtin.red","returns the `red` channel of `@color`")},{name:"green",example:"green(@color);",description:q("less.builtin.green","returns the `green` channel of `@color`")},{name:"blue",example:"blue(@color);",description:q("less.builtin.blue","returns the `blue` channel of `@color`")},{name:"alpha",example:"alpha(@color);",description:q("less.builtin.alpha","returns the `alpha` channel of `@color`")},{name:"luma",example:"luma(@color);",description:q("less.builtin.luma","returns the `luma` value (perceptual brightness) of `@color`")},{name:"saturate",example:"saturate(@color, 10%);",description:q("less.builtin.saturate","return `@color` 10% points more saturated")},{name:"desaturate",example:"desaturate(@color, 10%);",description:q("less.builtin.desaturate","return `@color` 10% points less saturated")},{name:"lighten",example:"lighten(@color, 10%);",description:q("less.builtin.lighten","return `@color` 10% points lighter")},{name:"darken",example:"darken(@color, 10%);",description:q("less.builtin.darken","return `@color` 10% points darker")},{name:"fadein",example:"fadein(@color, 10%);",description:q("less.builtin.fadein","return `@color` 10% points less transparent")},{name:"fadeout",example:"fadeout(@color, 10%);",description:q("less.builtin.fadeout","return `@color` 10% points more transparent")},{name:"fade",example:"fade(@color, 50%);",description:q("less.builtin.fade","return `@color` with 50% transparency")},{name:"spin",example:"spin(@color, 10);",description:q("less.builtin.spin","return `@color` with a 10 degree larger in hue")},{name:"mix",example:"mix(@color1, @color2, [@weight: 50%]);",description:q("less.builtin.mix","return a mix of `@color1` and `@color2`")},{name:"greyscale",example:"greyscale(@color);",description:q("less.builtin.greyscale","returns a grey, 100% desaturated color")},{name:"contrast",example:"contrast(@color1, [@darkcolor: black], [@lightcolor: white], [@threshold: 43%]);",description:q("less.builtin.contrast","return `@darkcolor` if `@color1 is> 43% luma` otherwise return `@lightcolor`, see notes")},{name:"multiply",example:"multiply(@color1, @color2);"},{name:"screen",example:"screen(@color1, @color2);"},{name:"overlay",example:"overlay(@color1, @color2);"},{name:"softlight",example:"softlight(@color1, @color2);"},{name:"hardlight",example:"hardlight(@color1, @color2);"},{name:"difference",example:"difference(@color1, @color2);"},{name:"exclusion",example:"exclusion(@color1, @color2);"},{name:"average",example:"average(@color1, @color2);"},{name:"negation",example:"negation(@color1, @color2);"}],e}(Wi);function rf(t,e){var n=sf(t);return af(n,e)}function sf(t){function e(u){return t.positionAt(u.offset).line}function n(u){return t.positionAt(u.offset+u.len).line}function r(){switch(t.languageId){case"scss":return new tc;case"less":return new ic;default:return new vn}}function i(u,f){var m=e(u),g=n(u);return m!==g?{startLine:m,endLine:g,kind:f}:null}var s=[],a=[],o=r();o.ignoreComment=!1,o.setSource(t.getText());for(var l=o.scan(),c=null,h=function(){switch(l.type){case p.CurlyL:case xr:{a.push({line:e(l),type:"brace",isStart:!0});break}case p.CurlyR:{if(a.length!==0){var u=sc(a,"brace");if(!u)break;var f=n(l);u.type==="brace"&&(c&&n(c)!==f&&f--,u.line!==f&&s.push({startLine:u.line,endLine:f,kind:void 0}))}break}case p.Comment:{var m=function(C){return C==="#region"?{line:e(l),type:"comment",isStart:!0}:{line:n(l),type:"comment",isStart:!1}},g=function(C){var k=C.text.match(/^\s*\/\*\s*(#region|#endregion)\b\s*(.*?)\s*\*\//);if(k)return m(k[1]);if(t.languageId==="scss"||t.languageId==="less"){var w=C.text.match(/^\s*\/\/\s*(#region|#endregion)\b\s*(.*?)\s*/);if(w)return m(w[1])}return null},b=g(l);if(b)if(b.isStart)a.push(b);else{var u=sc(a,"comment");if(!u)break;u.type==="comment"&&u.line!==b.line&&s.push({startLine:u.line,endLine:b.line,kind:"region"})}else{var y=i(l,"comment");y&&s.push(y)}break}}c=l,l=o.scan()};l.type!==p.EOF;)h();return s}function sc(t,e){if(t.length===0)return null;for(var n=t.length-1;n>=0;n--)if(t[n].type===e&&t[n].isStart)return t.splice(n,1)[0];return null}function af(t,e){var n=e&&e.rangeLimit||Number.MAX_VALUE,r=t.sort(function(a,o){var l=a.startLine-o.startLine;return l===0&&(l=a.endLine-o.endLine),l}),i=[],s=-1;return r.forEach(function(a){a.startLine<s&&s<a.endLine||(i.push(a),s=a.endLine)}),i.length<n?i:i.slice(0,n)}var ac;(function(){var t=[,,function(i){function s(l){this.__parent=l,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}s.prototype.clone_empty=function(){var l=new s(this.__parent);return l.set_indent(this.__indent_count,this.__alignment_count),l},s.prototype.item=function(l){return l<0?this.__items[this.__items.length+l]:this.__items[l]},s.prototype.has_match=function(l){for(var c=this.__items.length-1;c>=0;c--)if(this.__items[c].match(l))return!0;return!1},s.prototype.set_indent=function(l,c){this.is_empty()&&(this.__indent_count=l||0,this.__alignment_count=c||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},s.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},s.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},s.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var l=this.__parent.current_line;return l.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),l.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),l.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,l.__items[0]===" "&&(l.__items.splice(0,1),l.__character_count-=1),!0}return!1},s.prototype.is_empty=function(){return this.__items.length===0},s.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},s.prototype.push=function(l){this.__items.push(l);var c=l.lastIndexOf(`
|
|
46
|
+
`,n.value+=e.references.map(function(r){return"[".concat(r.name,"](").concat(r.url,")")}).join(" | "),e.documentation=n}})}var Jp=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),rc=47,Xp=10,Yp=13,Kp=12,Zi=96,es=46,Qp=p.CustomToken,ts=Qp++,ic=function(t){Jp(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.scanNext=function(n){var r=this.escapedJavaScript();return r!==null?this.finishToken(n,r):this.stream.advanceIfChars([es,es,es])?this.finishToken(n,ts):t.prototype.scanNext.call(this,n)},e.prototype.comment=function(){return t.prototype.comment.call(this)?!0:!this.inURL&&this.stream.advanceIfChars([rc,rc])?(this.stream.advanceWhileChar(function(n){switch(n){case Xp:case Yp:case Kp:return!1;default:return!0}}),!0):!1},e.prototype.escapedJavaScript=function(){var n=this.stream.peekChar();return n===Zi?(this.stream.advance(1),this.stream.advanceWhileChar(function(r){return r!==Zi}),this.stream.advanceIfChar(Zi)?p.EscapedJavaScript:p.BadEscapedJavaScript):null},e}(vn),Zp=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),ef=function(t){Zp(e,t);function e(){return t.call(this,new ic)||this}return e.prototype._parseStylesheetStatement=function(n){return n===void 0&&(n=!1),this.peek(p.AtKeyword)?this._parseVariableDeclaration()||this._parsePlugin()||t.prototype._parseStylesheetAtStatement.call(this,n):this._tryParseMixinDeclaration()||this._tryParseMixinReference()||this._parseFunction()||this._parseRuleset(!0)},e.prototype._parseImport=function(){if(!this.peekKeyword("@import")&&!this.peekKeyword("@import-once"))return null;var n=this.create(mi);if(this.consumeToken(),this.accept(p.ParenthesisL)){if(!this.accept(p.Ident))return this.finish(n,S.IdentifierExpected,[p.SemiColon]);do if(!this.accept(p.Comma))break;while(this.accept(p.Ident));if(!this.accept(p.ParenthesisR))return this.finish(n,S.RightParenthesisExpected,[p.SemiColon])}return!n.addChild(this._parseURILiteral())&&!n.addChild(this._parseStringLiteral())?this.finish(n,S.URIOrStringExpected,[p.SemiColon]):(!this.peek(p.SemiColon)&&!this.peek(p.EOF)&&n.setMedialist(this._parseMediaQueryList()),this.finish(n))},e.prototype._parsePlugin=function(){if(!this.peekKeyword("@plugin"))return null;var n=this.createNode(v.Plugin);return this.consumeToken(),n.addChild(this._parseStringLiteral())?this.accept(p.SemiColon)?this.finish(n):this.finish(n,S.SemiColonExpected):this.finish(n,S.StringLiteralExpected)},e.prototype._parseMediaQuery=function(){var n=t.prototype._parseMediaQuery.call(this);if(!n){var r=this.create(Do);return r.addChild(this._parseVariable())?this.finish(r):null}return n},e.prototype._parseMediaDeclaration=function(n){return n===void 0&&(n=!1),this._tryParseRuleset(n)||this._tryToParseDeclaration()||this._tryParseMixinDeclaration()||this._tryParseMixinReference()||this._parseDetachedRuleSetMixin()||this._parseStylesheetStatement(n)},e.prototype._parseMediaFeatureName=function(){return this._parseIdent()||this._parseVariable()},e.prototype._parseVariableDeclaration=function(n){n===void 0&&(n=[]);var r=this.create(rr),i=this.mark();if(!r.setVariable(this._parseVariable(!0)))return null;if(this.accept(p.Colon)){if(this.prevToken&&(r.colonPosition=this.prevToken.offset),r.setValue(this._parseDetachedRuleSet()))r.needsSemicolon=!1;else if(!r.setValue(this._parseExpr()))return this.finish(r,S.VariableValueExpected,[],n);r.addChild(this._parsePrio())}else return this.restoreAtMark(i),null;return this.peek(p.SemiColon)&&(r.semicolonPosition=this.token.offset),this.finish(r)},e.prototype._parseDetachedRuleSet=function(){var n=this.mark();if(this.peekDelim("#")||this.peekDelim("."))if(this.consumeToken(),!this.hasWhitespace()&&this.accept(p.ParenthesisL)){var r=this.create(Cn);if(r.getParameters().addChild(this._parseMixinParameter()))for(;(this.accept(p.Comma)||this.accept(p.SemiColon))&&!this.peek(p.ParenthesisR);)r.getParameters().addChild(this._parseMixinParameter())||this.markError(r,S.IdentifierExpected,[],[p.ParenthesisR]);if(!this.accept(p.ParenthesisR))return this.restoreAtMark(n),null}else return this.restoreAtMark(n),null;if(!this.peek(p.CurlyL))return null;var i=this.create(he);return this._parseBody(i,this._parseDetachedRuleSetBody.bind(this)),this.finish(i)},e.prototype._parseDetachedRuleSetBody=function(){return this._tryParseKeyframeSelector()||this._parseRuleSetDeclaration()},e.prototype._addLookupChildren=function(n){if(!n.addChild(this._parseLookupValue()))return!1;for(var r=!1;this.peek(p.BracketL)&&(r=!0),!!n.addChild(this._parseLookupValue());)r=!1;return!r},e.prototype._parseLookupValue=function(){var n=this.create(U),r=this.mark();return this.accept(p.BracketL)?(n.addChild(this._parseVariable(!1,!0))||n.addChild(this._parsePropertyIdentifier()))&&this.accept(p.BracketR)||this.accept(p.BracketR)?n:(this.restoreAtMark(r),null):(this.restoreAtMark(r),null)},e.prototype._parseVariable=function(n,r){n===void 0&&(n=!1),r===void 0&&(r=!1);var i=!n&&this.peekDelim("$");if(!this.peekDelim("@")&&!i&&!this.peek(p.AtKeyword))return null;for(var s=this.create(xi),a=this.mark();this.acceptDelim("@")||!n&&this.acceptDelim("$");)if(this.hasWhitespace())return this.restoreAtMark(a),null;return!this.accept(p.AtKeyword)&&!this.accept(p.Ident)?(this.restoreAtMark(a),null):!r&&this.peek(p.BracketL)&&!this._addLookupChildren(s)?(this.restoreAtMark(a),null):s},e.prototype._parseTermExpression=function(){return this._parseVariable()||this._parseEscaped()||t.prototype._parseTermExpression.call(this)||this._tryParseMixinReference(!1)},e.prototype._parseEscaped=function(){if(this.peek(p.EscapedJavaScript)||this.peek(p.BadEscapedJavaScript)){var n=this.createNode(v.EscapedValue);return this.consumeToken(),this.finish(n)}if(this.peekDelim("~")){var n=this.createNode(v.EscapedValue);return this.consumeToken(),this.accept(p.String)||this.accept(p.EscapedJavaScript)?this.finish(n):this.finish(n,S.TermExpected)}return null},e.prototype._parseOperator=function(){var n=this._parseGuardOperator();return n||t.prototype._parseOperator.call(this)},e.prototype._parseGuardOperator=function(){if(this.peekDelim(">")){var n=this.createNode(v.Operator);return this.consumeToken(),this.acceptDelim("="),n}else if(this.peekDelim("=")){var n=this.createNode(v.Operator);return this.consumeToken(),this.acceptDelim("<"),n}else if(this.peekDelim("<")){var n=this.createNode(v.Operator);return this.consumeToken(),this.acceptDelim("="),n}return null},e.prototype._parseRuleSetDeclaration=function(){return this.peek(p.AtKeyword)?this._parseKeyframe()||this._parseMedia(!0)||this._parseImport()||this._parseSupports(!0)||this._parseDetachedRuleSetMixin()||this._parseVariableDeclaration()||t.prototype._parseRuleSetDeclarationAtStatement.call(this):this._tryParseMixinDeclaration()||this._tryParseRuleset(!0)||this._tryParseMixinReference()||this._parseFunction()||this._parseExtend()||t.prototype._parseRuleSetDeclaration.call(this)},e.prototype._parseKeyframeIdent=function(){return this._parseIdent([Z.Keyframe])||this._parseVariable()},e.prototype._parseKeyframeSelector=function(){return this._parseDetachedRuleSetMixin()||t.prototype._parseKeyframeSelector.call(this)},e.prototype._parseSimpleSelectorBody=function(){return this._parseSelectorCombinator()||t.prototype._parseSimpleSelectorBody.call(this)},e.prototype._parseSelector=function(n){var r=this.create(yn),i=!1;for(n&&(i=r.addChild(this._parseCombinator()));r.addChild(this._parseSimpleSelector());){i=!0;var s=this.mark();if(r.addChild(this._parseGuard())&&this.peek(p.CurlyL))break;this.restoreAtMark(s),r.addChild(this._parseCombinator())}return i?this.finish(r):null},e.prototype._parseSelectorCombinator=function(){if(this.peekDelim("&")){var n=this.createNode(v.SelectorCombinator);for(this.consumeToken();!this.hasWhitespace()&&(this.acceptDelim("-")||this.accept(p.Num)||this.accept(p.Dimension)||n.addChild(this._parseIdent())||this.acceptDelim("&")););return this.finish(n)}return null},e.prototype._parseSelectorIdent=function(){if(!this.peekInterpolatedIdent())return null;var n=this.createNode(v.SelectorInterpolation),r=this._acceptInterpolatedIdent(n);return r?this.finish(n):null},e.prototype._parsePropertyIdentifier=function(n){n===void 0&&(n=!1);var r=/^[\w-]+/;if(!this.peekInterpolatedIdent()&&!this.peekRegExp(this.token.type,r))return null;var i=this.mark(),s=this.create(We);s.isCustomProperty=this.acceptDelim("-")&&this.acceptDelim("-");var a=!1;return n?s.isCustomProperty?a=s.addChild(this._parseIdent()):a=s.addChild(this._parseRegexp(r)):s.isCustomProperty?a=this._acceptInterpolatedIdent(s):a=this._acceptInterpolatedIdent(s,r),a?(!n&&!this.hasWhitespace()&&(this.acceptDelim("+"),this.hasWhitespace()||this.acceptIdent("_")),this.finish(s)):(this.restoreAtMark(i),null)},e.prototype.peekInterpolatedIdent=function(){return this.peek(p.Ident)||this.peekDelim("@")||this.peekDelim("$")||this.peekDelim("-")},e.prototype._acceptInterpolatedIdent=function(n,r){for(var i=this,s=!1,a=function(){var l=i.mark();return i.acceptDelim("-")&&(i.hasWhitespace()||i.acceptDelim("-"),i.hasWhitespace())?(i.restoreAtMark(l),null):i._parseInterpolation()},o=r?function(){return i.acceptRegexp(r)}:function(){return i.accept(p.Ident)};(o()||n.addChild(this._parseInterpolation()||this.try(a)))&&(s=!0,!this.hasWhitespace()););return s},e.prototype._parseInterpolation=function(){var n=this.mark();if(this.peekDelim("@")||this.peekDelim("$")){var r=this.createNode(v.Interpolation);return this.consumeToken(),this.hasWhitespace()||!this.accept(p.CurlyL)?(this.restoreAtMark(n),null):r.addChild(this._parseIdent())?this.accept(p.CurlyR)?this.finish(r):this.finish(r,S.RightCurlyExpected):this.finish(r,S.IdentifierExpected)}return null},e.prototype._tryParseMixinDeclaration=function(){var n=this.mark(),r=this.create(Cn);if(!r.setIdentifier(this._parseMixinDeclarationIdentifier())||!this.accept(p.ParenthesisL))return this.restoreAtMark(n),null;if(r.getParameters().addChild(this._parseMixinParameter()))for(;(this.accept(p.Comma)||this.accept(p.SemiColon))&&!this.peek(p.ParenthesisR);)r.getParameters().addChild(this._parseMixinParameter())||this.markError(r,S.IdentifierExpected,[],[p.ParenthesisR]);return this.accept(p.ParenthesisR)?(r.setGuard(this._parseGuard()),this.peek(p.CurlyL)?this._parseBody(r,this._parseMixInBodyDeclaration.bind(this)):(this.restoreAtMark(n),null)):(this.restoreAtMark(n),null)},e.prototype._parseMixInBodyDeclaration=function(){return this._parseFontFace()||this._parseRuleSetDeclaration()},e.prototype._parseMixinDeclarationIdentifier=function(){var n;if(this.peekDelim("#")||this.peekDelim(".")){if(n=this.create(We),this.consumeToken(),this.hasWhitespace()||!n.addChild(this._parseIdent()))return null}else if(this.peek(p.Hash))n=this.create(We),this.consumeToken();else return null;return n.referenceTypes=[Z.Mixin],this.finish(n)},e.prototype._parsePseudo=function(){if(!this.peek(p.Colon))return null;var n=this.mark(),r=this.create(Sn);return this.consumeToken(),this.acceptIdent("extend")?this._completeExtends(r):(this.restoreAtMark(n),t.prototype._parsePseudo.call(this))},e.prototype._parseExtend=function(){if(!this.peekDelim("&"))return null;var n=this.mark(),r=this.create(Sn);return this.consumeToken(),this.hasWhitespace()||!this.accept(p.Colon)||!this.acceptIdent("extend")?(this.restoreAtMark(n),null):this._completeExtends(r)},e.prototype._completeExtends=function(n){if(!this.accept(p.ParenthesisL))return this.finish(n,S.LeftParenthesisExpected);var r=n.getSelectors();if(!r.addChild(this._parseSelector(!0)))return this.finish(n,S.SelectorExpected);for(;this.accept(p.Comma);)if(!r.addChild(this._parseSelector(!0)))return this.finish(n,S.SelectorExpected);return this.accept(p.ParenthesisR)?this.finish(n):this.finish(n,S.RightParenthesisExpected)},e.prototype._parseDetachedRuleSetMixin=function(){if(!this.peek(p.AtKeyword))return null;var n=this.mark(),r=this.create(ir);return r.addChild(this._parseVariable(!0))&&(this.hasWhitespace()||!this.accept(p.ParenthesisL))?(this.restoreAtMark(n),null):this.accept(p.ParenthesisR)?this.finish(r):this.finish(r,S.RightParenthesisExpected)},e.prototype._tryParseMixinReference=function(n){n===void 0&&(n=!0);for(var r=this.mark(),i=this.create(ir),s=this._parseMixinDeclarationIdentifier();s;){this.acceptDelim(">");var a=this._parseMixinDeclarationIdentifier();if(a)i.getNamespaces().addChild(s),s=a;else break}if(!i.setIdentifier(s))return this.restoreAtMark(r),null;var o=!1;if(this.accept(p.ParenthesisL)){if(o=!0,i.getArguments().addChild(this._parseMixinArgument())){for(;(this.accept(p.Comma)||this.accept(p.SemiColon))&&!this.peek(p.ParenthesisR);)if(!i.getArguments().addChild(this._parseMixinArgument()))return this.finish(i,S.ExpressionExpected)}if(!this.accept(p.ParenthesisR))return this.finish(i,S.RightParenthesisExpected);s.referenceTypes=[Z.Mixin]}else s.referenceTypes=[Z.Mixin,Z.Rule];return this.peek(p.BracketL)?n||this._addLookupChildren(i):i.addChild(this._parsePrio()),!o&&!this.peek(p.SemiColon)&&!this.peek(p.CurlyR)&&!this.peek(p.EOF)?(this.restoreAtMark(r),null):this.finish(i)},e.prototype._parseMixinArgument=function(){var n=this.create(Yt),r=this.mark(),i=this._parseVariable();return i&&(this.accept(p.Colon)?n.setIdentifier(i):this.restoreAtMark(r)),n.setValue(this._parseDetachedRuleSet()||this._parseExpr(!0))?this.finish(n):(this.restoreAtMark(r),null)},e.prototype._parseMixinParameter=function(){var n=this.create(tr);if(this.peekKeyword("@rest")){var r=this.create(U);return this.consumeToken(),this.accept(ts)?(n.setIdentifier(this.finish(r)),this.finish(n)):this.finish(n,S.DotExpected,[],[p.Comma,p.ParenthesisR])}if(this.peek(ts)){var i=this.create(U);return this.consumeToken(),n.setIdentifier(this.finish(i)),this.finish(n)}var s=!1;return n.setIdentifier(this._parseVariable())&&(this.accept(p.Colon),s=!0),!n.setDefaultValue(this._parseDetachedRuleSet()||this._parseExpr(!0))&&!s?null:this.finish(n)},e.prototype._parseGuard=function(){if(!this.peekIdent("when"))return null;var n=this.create(Mu);if(this.consumeToken(),n.isNegated=this.acceptIdent("not"),!n.getConditions().addChild(this._parseGuardCondition()))return this.finish(n,S.ConditionExpected);for(;this.acceptIdent("and")||this.accept(p.Comma);)if(!n.getConditions().addChild(this._parseGuardCondition()))return this.finish(n,S.ConditionExpected);return this.finish(n)},e.prototype._parseGuardCondition=function(){if(!this.peek(p.ParenthesisL))return null;var n=this.create(zu);return this.consumeToken(),n.addChild(this._parseExpr()),this.accept(p.ParenthesisR)?this.finish(n):this.finish(n,S.RightParenthesisExpected)},e.prototype._parseFunction=function(){var n=this.mark(),r=this.create(wn);if(!r.setIdentifier(this._parseFunctionIdentifier()))return null;if(this.hasWhitespace()||!this.accept(p.ParenthesisL))return this.restoreAtMark(n),null;if(r.getArguments().addChild(this._parseMixinArgument())){for(;(this.accept(p.Comma)||this.accept(p.SemiColon))&&!this.peek(p.ParenthesisR);)if(!r.getArguments().addChild(this._parseMixinArgument()))return this.finish(r,S.ExpressionExpected)}return this.accept(p.ParenthesisR)?this.finish(r):this.finish(r,S.RightParenthesisExpected)},e.prototype._parseFunctionIdentifier=function(){if(this.peekDelim("%")){var n=this.create(We);return n.referenceTypes=[Z.Function],this.consumeToken(),this.finish(n)}return t.prototype._parseFunctionIdentifier.call(this)},e.prototype._parseURLArgument=function(){var n=this.mark(),r=t.prototype._parseURLArgument.call(this);if(!r||!this.peek(p.ParenthesisR)){this.restoreAtMark(n);var i=this.create(U);return i.addChild(this._parseBinaryExpr()),this.finish(i)}return r},e}(Ni),tf=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),q=Ge(),nf=function(t){tf(e,t);function e(n,r){return t.call(this,"@",n,r)||this}return e.prototype.createFunctionProposals=function(n,r,i,s){for(var a=0,o=n;a<o.length;a++){var l=o[a],c={label:l.name,detail:l.example,documentation:l.description,textEdit:H.replace(this.getCompletionRange(r),l.name+"($0)"),insertTextFormat:Ie.Snippet,kind:$.Function};i&&(c.sortText="z"),s.items.push(c)}return s},e.prototype.getTermProposals=function(n,r,i){var s=e.builtInProposals;return n&&(s=s.filter(function(a){return!a.type||!n.restrictions||n.restrictions.indexOf(a.type)!==-1})),this.createFunctionProposals(s,r,!0,i),t.prototype.getTermProposals.call(this,n,r,i)},e.prototype.getColorProposals=function(n,r,i){return this.createFunctionProposals(e.colorProposals,r,!1,i),t.prototype.getColorProposals.call(this,n,r,i)},e.prototype.getCompletionsForDeclarationProperty=function(n,r){return this.getCompletionsForSelector(null,!0,r),t.prototype.getCompletionsForDeclarationProperty.call(this,n,r)},e.builtInProposals=[{name:"if",example:"if(condition, trueValue [, falseValue]);",description:q("less.builtin.if","returns one of two values depending on a condition.")},{name:"boolean",example:"boolean(condition);",description:q("less.builtin.boolean",'"store" a boolean test for later evaluation in a guard or if().')},{name:"length",example:"length(@list);",description:q("less.builtin.length","returns the number of elements in a value list")},{name:"extract",example:"extract(@list, index);",description:q("less.builtin.extract","returns a value at the specified position in the list")},{name:"range",example:"range([start, ] end [, step]);",description:q("less.builtin.range","generate a list spanning a range of values")},{name:"each",example:"each(@list, ruleset);",description:q("less.builtin.each","bind the evaluation of a ruleset to each member of a list.")},{name:"escape",example:"escape(@string);",description:q("less.builtin.escape","URL encodes a string")},{name:"e",example:"e(@string);",description:q("less.builtin.e","escape string content")},{name:"replace",example:"replace(@string, @pattern, @replacement[, @flags]);",description:q("less.builtin.replace","string replace")},{name:"unit",example:"unit(@dimension, [@unit: '']);",description:q("less.builtin.unit","remove or change the unit of a dimension")},{name:"color",example:"color(@string);",description:q("less.builtin.color","parses a string to a color"),type:"color"},{name:"convert",example:"convert(@value, unit);",description:q("less.builtin.convert","converts numbers from one type into another")},{name:"data-uri",example:"data-uri([mimetype,] url);",description:q("less.builtin.data-uri","inlines a resource and falls back to `url()`"),type:"url"},{name:"abs",description:q("less.builtin.abs","absolute value of a number"),example:"abs(number);"},{name:"acos",description:q("less.builtin.acos","arccosine - inverse of cosine function"),example:"acos(number);"},{name:"asin",description:q("less.builtin.asin","arcsine - inverse of sine function"),example:"asin(number);"},{name:"ceil",example:"ceil(@number);",description:q("less.builtin.ceil","rounds up to an integer")},{name:"cos",description:q("less.builtin.cos","cosine function"),example:"cos(number);"},{name:"floor",description:q("less.builtin.floor","rounds down to an integer"),example:"floor(@number);"},{name:"percentage",description:q("less.builtin.percentage","converts to a %, e.g. 0.5 > 50%"),example:"percentage(@number);",type:"percentage"},{name:"round",description:q("less.builtin.round","rounds a number to a number of places"),example:"round(number, [places: 0]);"},{name:"sqrt",description:q("less.builtin.sqrt","calculates square root of a number"),example:"sqrt(number);"},{name:"sin",description:q("less.builtin.sin","sine function"),example:"sin(number);"},{name:"tan",description:q("less.builtin.tan","tangent function"),example:"tan(number);"},{name:"atan",description:q("less.builtin.atan","arctangent - inverse of tangent function"),example:"atan(number);"},{name:"pi",description:q("less.builtin.pi","returns pi"),example:"pi();"},{name:"pow",description:q("less.builtin.pow","first argument raised to the power of the second argument"),example:"pow(@base, @exponent);"},{name:"mod",description:q("less.builtin.mod","first argument modulus second argument"),example:"mod(number, number);"},{name:"min",description:q("less.builtin.min","returns the lowest of one or more values"),example:"min(@x, @y);"},{name:"max",description:q("less.builtin.max","returns the lowest of one or more values"),example:"max(@x, @y);"}],e.colorProposals=[{name:"argb",example:"argb(@color);",description:q("less.builtin.argb","creates a #AARRGGBB")},{name:"hsl",example:"hsl(@hue, @saturation, @lightness);",description:q("less.builtin.hsl","creates a color")},{name:"hsla",example:"hsla(@hue, @saturation, @lightness, @alpha);",description:q("less.builtin.hsla","creates a color")},{name:"hsv",example:"hsv(@hue, @saturation, @value);",description:q("less.builtin.hsv","creates a color")},{name:"hsva",example:"hsva(@hue, @saturation, @value, @alpha);",description:q("less.builtin.hsva","creates a color")},{name:"hue",example:"hue(@color);",description:q("less.builtin.hue","returns the `hue` channel of `@color` in the HSL space")},{name:"saturation",example:"saturation(@color);",description:q("less.builtin.saturation","returns the `saturation` channel of `@color` in the HSL space")},{name:"lightness",example:"lightness(@color);",description:q("less.builtin.lightness","returns the `lightness` channel of `@color` in the HSL space")},{name:"hsvhue",example:"hsvhue(@color);",description:q("less.builtin.hsvhue","returns the `hue` channel of `@color` in the HSV space")},{name:"hsvsaturation",example:"hsvsaturation(@color);",description:q("less.builtin.hsvsaturation","returns the `saturation` channel of `@color` in the HSV space")},{name:"hsvvalue",example:"hsvvalue(@color);",description:q("less.builtin.hsvvalue","returns the `value` channel of `@color` in the HSV space")},{name:"red",example:"red(@color);",description:q("less.builtin.red","returns the `red` channel of `@color`")},{name:"green",example:"green(@color);",description:q("less.builtin.green","returns the `green` channel of `@color`")},{name:"blue",example:"blue(@color);",description:q("less.builtin.blue","returns the `blue` channel of `@color`")},{name:"alpha",example:"alpha(@color);",description:q("less.builtin.alpha","returns the `alpha` channel of `@color`")},{name:"luma",example:"luma(@color);",description:q("less.builtin.luma","returns the `luma` value (perceptual brightness) of `@color`")},{name:"saturate",example:"saturate(@color, 10%);",description:q("less.builtin.saturate","return `@color` 10% points more saturated")},{name:"desaturate",example:"desaturate(@color, 10%);",description:q("less.builtin.desaturate","return `@color` 10% points less saturated")},{name:"lighten",example:"lighten(@color, 10%);",description:q("less.builtin.lighten","return `@color` 10% points lighter")},{name:"darken",example:"darken(@color, 10%);",description:q("less.builtin.darken","return `@color` 10% points darker")},{name:"fadein",example:"fadein(@color, 10%);",description:q("less.builtin.fadein","return `@color` 10% points less transparent")},{name:"fadeout",example:"fadeout(@color, 10%);",description:q("less.builtin.fadeout","return `@color` 10% points more transparent")},{name:"fade",example:"fade(@color, 50%);",description:q("less.builtin.fade","return `@color` with 50% transparency")},{name:"spin",example:"spin(@color, 10);",description:q("less.builtin.spin","return `@color` with a 10 degree larger in hue")},{name:"mix",example:"mix(@color1, @color2, [@weight: 50%]);",description:q("less.builtin.mix","return a mix of `@color1` and `@color2`")},{name:"greyscale",example:"greyscale(@color);",description:q("less.builtin.greyscale","returns a grey, 100% desaturated color")},{name:"contrast",example:"contrast(@color1, [@darkcolor: black], [@lightcolor: white], [@threshold: 43%]);",description:q("less.builtin.contrast","return `@darkcolor` if `@color1 is> 43% luma` otherwise return `@lightcolor`, see notes")},{name:"multiply",example:"multiply(@color1, @color2);"},{name:"screen",example:"screen(@color1, @color2);"},{name:"overlay",example:"overlay(@color1, @color2);"},{name:"softlight",example:"softlight(@color1, @color2);"},{name:"hardlight",example:"hardlight(@color1, @color2);"},{name:"difference",example:"difference(@color1, @color2);"},{name:"exclusion",example:"exclusion(@color1, @color2);"},{name:"average",example:"average(@color1, @color2);"},{name:"negation",example:"negation(@color1, @color2);"}],e}(Wi);function rf(t,e){var n=sf(t);return af(n,e)}function sf(t){function e(u){return t.positionAt(u.offset).line}function n(u){return t.positionAt(u.offset+u.len).line}function r(){switch(t.languageId){case"scss":return new tc;case"less":return new ic;default:return new vn}}function i(u,f){var m=e(u),g=n(u);return m!==g?{startLine:m,endLine:g,kind:f}:null}var s=[],a=[],o=r();o.ignoreComment=!1,o.setSource(t.getText());for(var l=o.scan(),c=null,h=function(){switch(l.type){case p.CurlyL:case xr:{a.push({line:e(l),type:"brace",isStart:!0});break}case p.CurlyR:{if(a.length!==0){var u=sc(a,"brace");if(!u)break;var f=n(l);u.type==="brace"&&(c&&n(c)!==f&&f--,u.line!==f&&s.push({startLine:u.line,endLine:f,kind:void 0}))}break}case p.Comment:{var m=function(C){return C==="#region"?{line:e(l),type:"comment",isStart:!0}:{line:n(l),type:"comment",isStart:!1}},g=function(C){var k=C.text.match(/^\s*\/\*\s*(#region|#endregion)\b\s*(.*?)\s*\*\//);if(k)return m(k[1]);if(t.languageId==="scss"||t.languageId==="less"){var w=C.text.match(/^\s*\/\/\s*(#region|#endregion)\b\s*(.*?)\s*/);if(w)return m(w[1])}return null},b=g(l);if(b)if(b.isStart)a.push(b);else{var u=sc(a,"comment");if(!u)break;u.type==="comment"&&u.line!==b.line&&s.push({startLine:u.line,endLine:b.line,kind:"region"})}else{var y=i(l,"comment");y&&s.push(y)}break}}c=l,l=o.scan()};l.type!==p.EOF;)h();return s}function sc(t,e){if(t.length===0)return null;for(var n=t.length-1;n>=0;n--)if(t[n].type===e&&t[n].isStart)return t.splice(n,1)[0];return null}function af(t,e){var n=e&&e.rangeLimit||Number.MAX_VALUE,r=t.sort(function(a,o){var l=a.startLine-o.startLine;return l===0&&(l=a.endLine-o.endLine),l}),i=[],s=-1;return r.forEach(function(a){a.startLine<s&&s<a.endLine||(i.push(a),s=a.endLine)}),i.length<n?i:i.slice(0,n)}var ac;(function(){var t=[,,function(i){function s(l){this.__parent=l,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}s.prototype.clone_empty=function(){var l=new s(this.__parent);return l.set_indent(this.__indent_count,this.__alignment_count),l},s.prototype.item=function(l){return l<0?this.__items[this.__items.length+l]:this.__items[l]},s.prototype.has_match=function(l){for(var c=this.__items.length-1;c>=0;c--)if(this.__items[c].match(l))return!0;return!1},s.prototype.set_indent=function(l,c){this.is_empty()&&(this.__indent_count=l||0,this.__alignment_count=c||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},s.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},s.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},s.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var l=this.__parent.current_line;return l.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),l.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),l.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,l.__items[0]===" "&&(l.__items.splice(0,1),l.__character_count-=1),!0}return!1},s.prototype.is_empty=function(){return this.__items.length===0},s.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},s.prototype.push=function(l){this.__items.push(l);var c=l.lastIndexOf(`
|
|
47
47
|
`);c!==-1?this.__character_count=l.length-c:this.__character_count+=l.length},s.prototype.pop=function(){var l=null;return this.is_empty()||(l=this.__items.pop(),this.__character_count-=l.length),l},s.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},s.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},s.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},s.prototype.toString=function(){var l="";return this.is_empty()?this.__parent.indent_empty_lines&&(l=this.__parent.get_indent_string(this.__indent_count)):(l=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),l+=this.__items.join("")),l};function a(l,c){this.__cache=[""],this.__indent_size=l.indent_size,this.__indent_string=l.indent_char,l.indent_with_tabs||(this.__indent_string=new Array(l.indent_size+1).join(l.indent_char)),c=c||"",l.indent_level>0&&(c=new Array(l.indent_level+1).join(this.__indent_string)),this.__base_string=c,this.__base_string_length=c.length}a.prototype.get_indent_size=function(l,c){var h=this.__base_string_length;return c=c||0,l<0&&(h=0),h+=l*this.__indent_size,h+=c,h},a.prototype.get_indent_string=function(l,c){var h=this.__base_string;return c=c||0,l<0&&(l=0,h=""),c+=l*this.__indent_size,this.__ensure_cache(c),h+=this.__cache[c],h},a.prototype.__ensure_cache=function(l){for(;l>=this.__cache.length;)this.__add_column()},a.prototype.__add_column=function(){var l=this.__cache.length,c=0,h="";this.__indent_size&&l>=this.__indent_size&&(c=Math.floor(l/this.__indent_size),l-=c*this.__indent_size,h=new Array(c+1).join(this.__indent_string)),l&&(h+=new Array(l+1).join(" ")),this.__cache.push(h)};function o(l,c){this.__indent_cache=new a(l,c),this.raw=!1,this._end_with_newline=l.end_with_newline,this.indent_size=l.indent_size,this.wrap_line_length=l.wrap_line_length,this.indent_empty_lines=l.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new s(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}o.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},o.prototype.get_line_number=function(){return this.__lines.length},o.prototype.get_indent_string=function(l,c){return this.__indent_cache.get_indent_string(l,c)},o.prototype.get_indent_size=function(l,c){return this.__indent_cache.get_indent_size(l,c)},o.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},o.prototype.add_new_line=function(l){return this.is_empty()||!l&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},o.prototype.get_code=function(l){this.trim(!0);var c=this.current_line.pop();c&&(c[c.length-1]===`
|
|
48
48
|
`&&(c=c.replace(/\n+$/g,"")),this.current_line.push(c)),this._end_with_newline&&this.__add_outputline();var h=this.__lines.join(`
|
|
49
49
|
`);return l!==`
|
|
@@ -81,4 +81,4 @@ A zoom factor of 1.0 or 100% corresponds to no zooming. Larger values are zoomed
|
|
|
81
81
|
|
|
82
82
|
A zoom factor of 1.0 or 100% corresponds to no zooming. Larger values are zoomed in. Smaller values are zoomed out.`},{name:"orientation",syntax:"auto | portrait | landscape",relevance:50,description:"The orientation CSS @media media feature can be used to apply styles based on the orientation of the viewport (or the page box, for paged media)."},{name:"user-zoom",syntax:"zoom | fixed",relevance:50,description:"The user-zoom CSS descriptor controls whether or not the user can change the zoom factor of a document defined by @viewport."},{name:"viewport-fit",syntax:"auto | contain | cover",relevance:50,description:"The border-block-style CSS property defines the style of the logical block borders of an element, which maps to a physical border style depending on the element's writing mode, directionality, and text orientation."}],atDirectives:[{name:"@charset",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/@charset"}],description:"Defines character set of the document."},{name:"@counter-style",browsers:["E91","FF33","C91","O77"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/@counter-style"}],description:"Defines a custom counter style."},{name:"@font-face",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/@font-face"}],description:"Allows for linking to fonts that are automatically activated when needed. This permits authors to work around the limitation of 'web-safe' fonts, allowing for consistent rendering independent of the fonts available in a given user's environment."},{name:"@font-feature-values",browsers:["FF34","S9.1"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/@font-feature-values"}],description:"Defines named values for the indices used to select alternate glyphs for a given font family."},{name:"@import",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/@import"}],description:"Includes content of another file."},{name:"@keyframes",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/@keyframes"}],description:"Defines set of animation key frames."},{name:"@media",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/@media"}],description:"Defines a stylesheet for a particular media type."},{name:"@-moz-document",browsers:["FF1.8"],description:"Gecko-specific at-rule that restricts the style rules contained within it based on the URL of the document."},{name:"@-moz-keyframes",browsers:["FF5"],description:"Defines set of animation key frames."},{name:"@-ms-viewport",browsers:["E","IE10"],description:"Specifies the size, zoom factor, and orientation of the viewport."},{name:"@namespace",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/@namespace"}],description:"Declares a prefix and associates it with a namespace name."},{name:"@-o-keyframes",browsers:["O12"],description:"Defines set of animation key frames."},{name:"@-o-viewport",browsers:["O11"],description:"Specifies the size, zoom factor, and orientation of the viewport."},{name:"@page",browsers:["E12","FF19","C2","IE8","O6"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/@page"}],description:"Directive defines various page parameters."},{name:"@supports",browsers:["E12","FF22","S9","C28","O12.1"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/@supports"}],description:"A conditional group rule whose condition tests whether the user agent supports CSS property:value pairs."},{name:"@-webkit-keyframes",browsers:["C","S4"],description:"Defines set of animation key frames."}],pseudoClasses:[{name:":active",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:active"}],description:"Applies while an element is being activated by the user. For example, between the times the user presses the mouse button and releases it."},{name:":any-link",browsers:["E79","FF50","S9","C65","O52"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:any-link"}],description:"Represents an element that acts as the source anchor of a hyperlink. Applies to both visited and unvisited links."},{name:":checked",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:checked"}],description:"Radio and checkbox elements can be toggled by the user. Some menu items are 'checked' when the user selects them. When such elements are toggled 'on' the :checked pseudo-class applies."},{name:":corner-present",browsers:["C","S5"],description:"Non-standard. Indicates whether or not a scrollbar corner is present."},{name:":decrement",browsers:["C","S5"],description:"Non-standard. Applies to buttons and track pieces. Indicates whether or not the button or track piece will decrement the view’s position when used."},{name:":default",browsers:["E79","FF4","S5","C10","O10"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:default"}],description:"Applies to the one or more UI elements that are the default among a set of similar elements. Typically applies to context menu items, buttons, and select lists/menus."},{name:":disabled",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:disabled"}],description:"Represents user interface elements that are in a disabled state; such elements have a corresponding enabled state."},{name:":double-button",browsers:["C","S5"],description:"Non-standard. Applies to buttons and track pieces. Applies when both buttons are displayed together at the same end of the scrollbar."},{name:":empty",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:empty"}],description:"Represents an element that has no children at all."},{name:":enabled",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:enabled"}],description:"Represents user interface elements that are in an enabled state; such elements have a corresponding disabled state."},{name:":end",browsers:["C","S5"],description:"Non-standard. Applies to buttons and track pieces. Indicates whether the object is placed after the thumb."},{name:":first",browsers:["E12","S6","C18","IE8","O9.2"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:first"}],description:"When printing double-sided documents, the page boxes on left and right pages may be different. This can be expressed through CSS pseudo-classes defined in the page context."},{name:":first-child",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:first-child"}],description:"Same as :nth-child(1). Represents an element that is the first child of some other element."},{name:":first-of-type",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:first-of-type"}],description:"Same as :nth-of-type(1). Represents an element that is the first sibling of its type in the list of children of its parent element."},{name:":focus",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:focus"}],description:"Applies while an element has the focus (accepts keyboard or mouse events, or other forms of input)."},{name:":fullscreen",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:fullscreen"}],description:"Matches any element that has its fullscreen flag set."},{name:":future",browsers:["S7"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:future"}],description:"Represents any element that is defined to occur entirely after a :current element."},{name:":horizontal",browsers:["C","S5"],description:"Non-standard. Applies to any scrollbar pieces that have a horizontal orientation."},{name:":host",browsers:["E79","FF63","S10","C54","O41"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:host"}],description:"When evaluated in the context of a shadow tree, matches the shadow tree’s host element."},{name:":host()",browsers:["C35","O22"],description:"When evaluated in the context of a shadow tree, it matches the shadow tree’s host element if the host element, in its normal context, matches the selector argument."},{name:":host-context()",browsers:["C35","O22"],description:"Tests whether there is an ancestor, outside the shadow tree, which matches a particular selector."},{name:":hover",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:hover"}],description:"Applies while the user designates an element with a pointing device, but does not necessarily activate it. For example, a visual user agent could apply this pseudo-class when the cursor (mouse pointer) hovers over a box generated by the element."},{name:":increment",browsers:["C","S5"],description:"Non-standard. Applies to buttons and track pieces. Indicates whether or not the button or track piece will increment the view’s position when used."},{name:":indeterminate",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:indeterminate"}],description:"Applies to UI elements whose value is in an indeterminate state."},{name:":in-range",browsers:["E13","FF29","S5.1","C10","O11"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:in-range"}],description:"Used in conjunction with the min and max attributes, whether on a range input, a number field, or any other types that accept those attributes."},{name:":invalid",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:invalid"}],description:"An element is :valid or :invalid when it is, respectively, valid or invalid with respect to data validity semantics defined by a different specification."},{name:":lang()",browsers:["E","C","FF1","IE8","O8","S3"],description:"Represents an element that is in language specified."},{name:":last-child",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:last-child"}],description:"Same as :nth-last-child(1). Represents an element that is the last child of some other element."},{name:":last-of-type",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:last-of-type"}],description:"Same as :nth-last-of-type(1). Represents an element that is the last sibling of its type in the list of children of its parent element."},{name:":left",browsers:["E12","S5.1","C6","IE8","O9.2"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:left"}],description:"When printing double-sided documents, the page boxes on left and right pages may be different. This can be expressed through CSS pseudo-classes defined in the page context."},{name:":link",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:link"}],description:"Applies to links that have not yet been visited."},{name:":matches()",browsers:["S9"],description:"Takes a selector list as its argument. It represents an element that is represented by its argument."},{name:":-moz-any()",browsers:["FF4"],description:"Represents an element that is represented by the selector list passed as its argument. Standardized as :matches()."},{name:":-moz-any-link",browsers:["FF1"],description:"Represents an element that acts as the source anchor of a hyperlink. Applies to both visited and unvisited links."},{name:":-moz-broken",browsers:["FF3"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:-moz-broken"}],description:"Non-standard. Matches elements representing broken images."},{name:":-moz-drag-over",browsers:["FF1"],description:"Non-standard. Matches elements when a drag-over event applies to it."},{name:":-moz-first-node",browsers:["FF1"],description:"Non-standard. Represents an element that is the first child node of some other element."},{name:":-moz-focusring",browsers:["FF4"],description:"Non-standard. Matches an element that has focus and focus ring drawing is enabled in the browser."},{name:":-moz-full-screen",browsers:["FF9"],description:"Matches any element that has its fullscreen flag set. Standardized as :fullscreen."},{name:":-moz-last-node",browsers:["FF1"],description:"Non-standard. Represents an element that is the last child node of some other element."},{name:":-moz-loading",browsers:["FF3"],description:"Non-standard. Matches elements, such as images, that haven’t started loading yet."},{name:":-moz-only-whitespace",browsers:["FF1"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:-moz-only-whitespace"}],description:"The same as :empty, except that it additionally matches elements that only contain code points affected by whitespace processing. Standardized as :blank."},{name:":-moz-placeholder",browsers:["FF4"],description:"Deprecated. Represents placeholder text in an input field. Use ::-moz-placeholder for Firefox 19+."},{name:":-moz-submit-invalid",browsers:["FF88"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:-moz-submit-invalid"}],description:"Non-standard. Represents any submit button when the contents of the associated form are not valid."},{name:":-moz-suppressed",browsers:["FF3"],description:"Non-standard. Matches elements representing images that have been blocked from loading."},{name:":-moz-ui-invalid",browsers:["FF4"],description:"Non-standard. Represents any validated form element whose value isn't valid "},{name:":-moz-ui-valid",browsers:["FF4"],description:"Non-standard. Represents any validated form element whose value is valid "},{name:":-moz-user-disabled",browsers:["FF3"],description:"Non-standard. Matches elements representing images that have been disabled due to the user’s preferences."},{name:":-moz-window-inactive",browsers:["FF4"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:-moz-window-inactive"}],description:"Non-standard. Matches elements in an inactive window."},{name:":-ms-fullscreen",browsers:["IE11"],description:"Matches any element that has its fullscreen flag set."},{name:":-ms-input-placeholder",browsers:["IE10"],description:"Represents placeholder text in an input field. Note: for Edge use the pseudo-element ::-ms-input-placeholder. Standardized as ::placeholder."},{name:":-ms-keyboard-active",browsers:["IE10"],description:"Windows Store apps only. Applies one or more styles to an element when it has focus and the user presses the space bar."},{name:":-ms-lang()",browsers:["E","IE10"],description:"Represents an element that is in the language specified. Accepts a comma separated list of language tokens."},{name:":no-button",browsers:["C","S5"],description:"Non-standard. Applies to track pieces. Applies when there is no button at that end of the track."},{name:":not()",browsers:["E","C","FF1","IE9","O9.5","S2"],description:"The negation pseudo-class, :not(X), is a functional notation taking a simple selector (excluding the negation pseudo-class itself) as an argument. It represents an element that is not represented by its argument."},{name:":nth-child()",browsers:["E","C","FF3.5","IE9","O9.5","S3.1"],description:"Represents an element that has an+b-1 siblings before it in the document tree, for any positive integer or zero value of n, and has a parent element."},{name:":nth-last-child()",browsers:["E","C","FF3.5","IE9","O9.5","S3.1"],description:"Represents an element that has an+b-1 siblings after it in the document tree, for any positive integer or zero value of n, and has a parent element."},{name:":nth-last-of-type()",browsers:["E","C","FF3.5","IE9","O9.5","S3.1"],description:"Represents an element that has an+b-1 siblings with the same expanded element name after it in the document tree, for any zero or positive integer value of n, and has a parent element."},{name:":nth-of-type()",browsers:["E","C","FF3.5","IE9","O9.5","S3.1"],description:"Represents an element that has an+b-1 siblings with the same expanded element name before it in the document tree, for any zero or positive integer value of n, and has a parent element."},{name:":only-child",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:only-child"}],description:"Represents an element that has a parent element and whose parent element has no other element children. Same as :first-child:last-child or :nth-child(1):nth-last-child(1), but with a lower specificity."},{name:":only-of-type",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:only-of-type"}],description:"Matches every element that is the only child of its type, of its parent. Same as :first-of-type:last-of-type or :nth-of-type(1):nth-last-of-type(1), but with a lower specificity."},{name:":optional",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:optional"}],description:"A form element is :required or :optional if a value for it is, respectively, required or optional before the form it belongs to is submitted. Elements that are not form elements are neither required nor optional."},{name:":out-of-range",browsers:["E13","FF29","S5.1","C10","O11"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:out-of-range"}],description:"Used in conjunction with the min and max attributes, whether on a range input, a number field, or any other types that accept those attributes."},{name:":past",browsers:["S7"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:past"}],description:"Represents any element that is defined to occur entirely prior to a :current element."},{name:":read-only",browsers:["E13","FF78","S4","C1","O9"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:read-only"}],description:"An element whose contents are not user-alterable is :read-only. However, elements whose contents are user-alterable (such as text input fields) are considered to be in a :read-write state. In typical documents, most elements are :read-only."},{name:":read-write",browsers:["E13","FF78","S4","C1","O9"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:read-write"}],description:"An element whose contents are not user-alterable is :read-only. However, elements whose contents are user-alterable (such as text input fields) are considered to be in a :read-write state. In typical documents, most elements are :read-only."},{name:":required",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:required"}],description:"A form element is :required or :optional if a value for it is, respectively, required or optional before the form it belongs to is submitted. Elements that are not form elements are neither required nor optional."},{name:":right",browsers:["E12","S5.1","C6","IE8","O9.2"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:right"}],description:"When printing double-sided documents, the page boxes on left and right pages may be different. This can be expressed through CSS pseudo-classes defined in the page context."},{name:":root",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:root"}],description:"Represents an element that is the root of the document. In HTML 4, this is always the HTML element."},{name:":scope",browsers:["E79","FF32","S7","C27","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:scope"}],description:"Represents any element that is in the contextual reference element set."},{name:":single-button",browsers:["C","S5"],description:"Non-standard. Applies to buttons and track pieces. Applies when both buttons are displayed separately at either end of the scrollbar."},{name:":start",browsers:["C","S5"],description:"Non-standard. Applies to buttons and track pieces. Indicates whether the object is placed before the thumb."},{name:":target",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:target"}],description:"Some URIs refer to a location within a resource. This kind of URI ends with a 'number sign' (#) followed by an anchor identifier (called the fragment identifier)."},{name:":valid",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:valid"}],description:"An element is :valid or :invalid when it is, respectively, valid or invalid with respect to data validity semantics defined by a different specification."},{name:":vertical",browsers:["C","S5"],description:"Non-standard. Applies to any scrollbar pieces that have a vertical orientation."},{name:":visited",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:visited"}],description:"Applies once the link has been visited by the user."},{name:":-webkit-any()",browsers:["C","S5"],description:"Represents an element that is represented by the selector list passed as its argument. Standardized as :matches()."},{name:":-webkit-full-screen",browsers:["C","S6"],description:"Matches any element that has its fullscreen flag set. Standardized as :fullscreen."},{name:":window-inactive",browsers:["C","S3"],description:"Non-standard. Applies to all scrollbar pieces. Indicates whether or not the window containing the scrollbar is currently active."},{name:":current",status:"experimental",description:"The :current CSS pseudo-class selector is a time-dimensional pseudo-class that represents the element, or an ancestor of the element, that is currently being displayed"},{name:":blank",status:"experimental",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:blank"}],description:"The :blank CSS pseudo-class selects empty user input elements (eg. <input> or <textarea>)."},{name:":defined",status:"experimental",browsers:["E79","FF63","S10","C54","O41"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:defined"}],description:"The :defined CSS pseudo-class represents any element that has been defined. This includes any standard element built in to the browser, and custom elements that have been successfully defined (i.e. with the CustomElementRegistry.define() method)."},{name:":dir",browsers:["FF49"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:dir"}],description:"The :dir() CSS pseudo-class matches elements based on the directionality of the text contained in them."},{name:":focus-visible",browsers:["E86","FF85","S15.4","C86","O72"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:focus-visible"}],description:"The :focus-visible pseudo-class applies while an element matches the :focus pseudo-class and the UA determines via heuristics that the focus should be made evident on the element."},{name:":focus-within",browsers:["E79","FF52","S10.1","C60","O47"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:focus-within"}],description:"The :focus-within pseudo-class applies to any element for which the :focus pseudo class applies as well as to an element whose descendant in the flat tree (including non-element nodes, such as text nodes) matches the conditions for matching :focus."},{name:":has",status:"experimental",browsers:["S15.4"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:has"}],description:":The :has() CSS pseudo-class represents an element if any of the selectors passed as parameters (relative to the :scope of the given element), match at least one element."},{name:":is",status:"experimental",browsers:["E88","FF78","S14","C88","O74"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:is"}],description:"The :is() CSS pseudo-class function takes a selector list as its argument, and selects any element that can be selected by one of the selectors in that list. This is useful for writing large selectors in a more compact form."},{name:":local-link",status:"experimental",description:"The :local-link CSS pseudo-class represents an link to the same document"},{name:":nth-col",status:"experimental",description:"The :nth-col() CSS pseudo-class is designed for tables and grids. It accepts the An+B notation such as used with the :nth-child selector, using this to target every nth column. "},{name:":nth-last-col",status:"experimental",description:"The :nth-last-col() CSS pseudo-class is designed for tables and grids. It accepts the An+B notation such as used with the :nth-child selector, using this to target every nth column before it, therefore counting back from the end of the set of columns."},{name:":paused",status:"experimental",description:"The :paused CSS pseudo-class selector is a resource state pseudo-class that will match an audio, video, or similar resource that is capable of being “played” or “paused”, when that element is “paused”."},{name:":placeholder-shown",status:"experimental",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:placeholder-shown"}],description:"The :placeholder-shown CSS pseudo-class represents any <input> or <textarea> element that is currently displaying placeholder text."},{name:":playing",status:"experimental",description:"The :playing CSS pseudo-class selector is a resource state pseudo-class that will match an audio, video, or similar resource that is capable of being “played” or “paused”, when that element is “playing”. "},{name:":target-within",status:"experimental",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:target-within"}],description:"The :target-within CSS pseudo-class represents an element that is a target element or contains an element that is a target. A target element is a unique element with an id matching the URL's fragment."},{name:":user-invalid",status:"experimental",browsers:["FF88"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:user-invalid"}],description:"The :user-invalid CSS pseudo-class represents any validated form element whose value isn't valid based on their validation constraints, after the user has interacted with it."},{name:":user-valid",status:"experimental",browsers:["FF88"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:user-valid"}],description:"The :user-valid CSS pseudo-class represents any validated form element whose value validates correctly based on its validation constraints. However, unlike :valid it only matches once the user has interacted with it."},{name:":where",status:"experimental",browsers:["E88","FF78","S14","C88","O74"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:where"}],description:"The :where() CSS pseudo-class function takes a selector list as its argument, and selects any element that can be selected by one of the selectors in that list."},{name:":picture-in-picture",status:"experimental",description:"The :picture-in-picture CSS pseudo-class matches the element which is currently in picture-in-picture mode."}],pseudoElements:[{name:"::after",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::after"}],description:"Represents a styleable child pseudo-element immediately after the originating element’s actual content."},{name:"::backdrop",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::backdrop"}],description:"Used to create a backdrop that hides the underlying document for an element in a top layer (such as an element that is displayed fullscreen)."},{name:"::before",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::before"}],description:"Represents a styleable child pseudo-element immediately before the originating element’s actual content."},{name:"::content",browsers:["C35","O22"],description:"Deprecated. Matches the distribution list itself, on elements that have one. Use ::slotted for forward compatibility."},{name:"::cue",browsers:["E79","FF55","S7","C26","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::cue"}]},{name:"::cue()",browsers:["C","O16","S6"]},{name:"::cue-region",browsers:["C","O16","S6"]},{name:"::cue-region()",browsers:["C","O16","S6"]},{name:"::first-letter",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::first-letter"}],description:"Represents the first letter of an element, if it is not preceded by any other content (such as images or inline tables) on its line."},{name:"::first-line",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::first-line"}],description:"Describes the contents of the first formatted line of its originating element."},{name:"::-moz-focus-inner",browsers:["FF4"]},{name:"::-moz-focus-outer",browsers:["FF4"]},{name:"::-moz-list-bullet",browsers:["FF1"],description:"Used to style the bullet of a list element. Similar to the standardized ::marker."},{name:"::-moz-list-number",browsers:["FF1"],description:"Used to style the numbers of a list element. Similar to the standardized ::marker."},{name:"::-moz-placeholder",browsers:["FF19"],description:"Represents placeholder text in an input field"},{name:"::-moz-progress-bar",browsers:["FF9"],description:"Represents the bar portion of a progress bar."},{name:"::-moz-selection",browsers:["FF1"],description:"Represents the portion of a document that has been highlighted by the user."},{name:"::-ms-backdrop",browsers:["IE11"],description:"Used to create a backdrop that hides the underlying document for an element in a top layer (such as an element that is displayed fullscreen)."},{name:"::-ms-browse",browsers:["E","IE10"],description:"Represents the browse button of an input type=file control."},{name:"::-ms-check",browsers:["E","IE10"],description:"Represents the check of a checkbox or radio button input control."},{name:"::-ms-clear",browsers:["E","IE10"],description:"Represents the clear button of a text input control"},{name:"::-ms-expand",browsers:["E","IE10"],description:"Represents the drop-down button of a select control."},{name:"::-ms-fill",browsers:["E","IE10"],description:"Represents the bar portion of a progress bar."},{name:"::-ms-fill-lower",browsers:["E","IE10"],description:"Represents the portion of the slider track from its smallest value up to the value currently selected by the thumb. In a left-to-right layout, this is the portion of the slider track to the left of the thumb."},{name:"::-ms-fill-upper",browsers:["E","IE10"],description:"Represents the portion of the slider track from the value currently selected by the thumb up to the slider's largest value. In a left-to-right layout, this is the portion of the slider track to the right of the thumb."},{name:"::-ms-reveal",browsers:["E","IE10"],description:"Represents the password reveal button of an input type=password control."},{name:"::-ms-thumb",browsers:["E","IE10"],description:"Represents the portion of range input control (also known as a slider control) that the user drags."},{name:"::-ms-ticks-after",browsers:["E","IE10"],description:"Represents the tick marks of a slider that begin just after the thumb and continue up to the slider's largest value. In a left-to-right layout, these are the ticks to the right of the thumb."},{name:"::-ms-ticks-before",browsers:["E","IE10"],description:"Represents the tick marks of a slider that represent its smallest values up to the value currently selected by the thumb. In a left-to-right layout, these are the ticks to the left of the thumb."},{name:"::-ms-tooltip",browsers:["E","IE10"],description:"Represents the tooltip of a slider (input type=range)."},{name:"::-ms-track",browsers:["E","IE10"],description:"Represents the track of a slider."},{name:"::-ms-value",browsers:["E","IE10"],description:"Represents the content of a text or password input control, or a select control."},{name:"::selection",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::selection"}],description:"Represents the portion of a document that has been highlighted by the user."},{name:"::shadow",browsers:["C35","O22"],description:"Matches the shadow root if an element has a shadow tree."},{name:"::-webkit-file-upload-button",browsers:["C","O","S6"]},{name:"::-webkit-inner-spin-button",browsers:["E79","S5","C6","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-inner-spin-button"}]},{name:"::-webkit-input-placeholder",browsers:["C","S4"]},{name:"::-webkit-keygen-select",browsers:["C","O","S6"]},{name:"::-webkit-meter-bar",browsers:["E79","S5.1","C12","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-meter-bar"}]},{name:"::-webkit-meter-even-less-good-value",browsers:["E79","S5.1","C12","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-meter-even-less-good-value"}]},{name:"::-webkit-meter-optimum-value",browsers:["E79","S5.1","C12","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-meter-optimum-value"}]},{name:"::-webkit-meter-suboptimum-value",browsers:["E79","S5.1","C12","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-meter-suboptimum-value"}]},{name:"::-webkit-outer-spin-button",browsers:["S5","C6"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-outer-spin-button"}]},{name:"::-webkit-progress-bar",browsers:["E79","S7","C25","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-progress-bar"}]},{name:"::-webkit-progress-inner-element",browsers:["E79","S7","C23","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-progress-inner-element"}]},{name:"::-webkit-progress-value",browsers:["E79","S7","C25","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-progress-value"}]},{name:"::-webkit-resizer",browsers:["E79","S4","C2","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar"}]},{name:"::-webkit-scrollbar",browsers:["E79","S4","C2","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar"}]},{name:"::-webkit-scrollbar-button",browsers:["E79","S4","C2","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar"}]},{name:"::-webkit-scrollbar-corner",browsers:["E79","S4","C2","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar"}]},{name:"::-webkit-scrollbar-thumb",browsers:["E79","S4","C2","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar"}]},{name:"::-webkit-scrollbar-track",browsers:["E79","S4","C2","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar"}]},{name:"::-webkit-scrollbar-track-piece",browsers:["E79","S4","C2","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar"}]},{name:"::-webkit-search-cancel-button",browsers:["E79","S3","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-search-cancel-button"}]},{name:"::-webkit-search-decoration",browsers:["C","S4"]},{name:"::-webkit-search-results-button",browsers:["E79","S3","C1","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-search-results-button"}]},{name:"::-webkit-search-results-decoration",browsers:["C","S4"]},{name:"::-webkit-slider-runnable-track",browsers:["C","O","S6"]},{name:"::-webkit-slider-thumb",browsers:["C","O","S6"]},{name:"::-webkit-textfield-decoration-container",browsers:["C","O","S6"]},{name:"::-webkit-validation-bubble",browsers:["C","O","S6"]},{name:"::-webkit-validation-bubble-arrow",browsers:["C","O","S6"]},{name:"::-webkit-validation-bubble-arrow-clipper",browsers:["C","O","S6"]},{name:"::-webkit-validation-bubble-heading",browsers:["C","O","S6"]},{name:"::-webkit-validation-bubble-message",browsers:["C","O","S6"]},{name:"::-webkit-validation-bubble-text-block",browsers:["C","O","S6"]},{name:"::target-text",status:"experimental",browsers:["E89","C89","O75"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::target-text"}],description:"The ::target-text CSS pseudo-element represents the text that has been scrolled to if the browser supports scroll-to-text fragments. It allows authors to choose how to highlight that section of text."},{name:"::-moz-range-progress",status:"nonstandard",browsers:["FF22"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-moz-range-progress"}],description:'The ::-moz-range-progress CSS pseudo-element is a Mozilla extension that represents the lower portion of the track (i.e., groove) in which the indicator slides in an <input> of type="range". This portion corresponds to values lower than the value currently selected by the thumb (i.e., virtual knob).'},{name:"::-moz-range-thumb",status:"nonstandard",browsers:["FF21"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-moz-range-thumb"}],description:`The ::-moz-range-thumb CSS pseudo-element is a Mozilla extension that represents the thumb (i.e., virtual knob) of an <input> of type="range". The user can move the thumb along the input's track to alter its numerical value.`},{name:"::-moz-range-track",status:"nonstandard",browsers:["FF21"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-moz-range-track"}],description:'The ::-moz-range-track CSS pseudo-element is a Mozilla extension that represents the track (i.e., groove) in which the indicator slides in an <input> of type="range".'},{name:"::-webkit-progress-inner-value",status:"nonstandard",description:`The ::-webkit-progress-value CSS pseudo-element represents the filled-in portion of the bar of a <progress> element. It is a child of the ::-webkit-progress-bar pseudo-element.
|
|
83
83
|
|
|
84
|
-
In order to let ::-webkit-progress-value take effect, -webkit-appearance needs to be set to none on the <progress> element.`},{name:"::grammar-error",status:"experimental",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::grammar-error"}],description:"The ::grammar-error CSS pseudo-element represents a text segment which the user agent has flagged as grammatically incorrect."},{name:"::marker",browsers:["E86","FF68","S11.1","C86","O72"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::marker"}],description:"The ::marker CSS pseudo-element selects the marker box of a list item, which typically contains a bullet or number. It works on any element or pseudo-element set to display: list-item, such as the <li> and <summary> elements."},{name:"::part",status:"experimental",browsers:["E79","FF72","S13.1","C73","O60"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::part"}],description:"The ::part CSS pseudo-element represents any element within a shadow tree that has a matching part attribute."},{name:"::placeholder",browsers:["E79","FF51","S10.1","C57","O44"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::placeholder"}],description:"The ::placeholder CSS pseudo-element represents the placeholder text of a form element."},{name:"::slotted",browsers:["E79","FF63","S10","C50","O37"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::slotted"}],description:"The :slotted() CSS pseudo-element represents any element that has been placed into a slot inside an HTML template."},{name:"::spelling-error",status:"experimental",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::spelling-error"}],description:"The ::spelling-error CSS pseudo-element represents a text segment which the user agent has flagged as incorrectly spelled."}]},hc=function(){function t(e){this._properties=[],this._atDirectives=[],this._pseudoClasses=[],this._pseudoElements=[],this.addData(e)}return t.prototype.provideProperties=function(){return this._properties},t.prototype.provideAtDirectives=function(){return this._atDirectives},t.prototype.providePseudoClasses=function(){return this._pseudoClasses},t.prototype.providePseudoElements=function(){return this._pseudoElements},t.prototype.addData=function(e){if(Array.isArray(e.properties))for(var n=0,r=e.properties;n<r.length;n++){var i=r[n];ff(i)&&this._properties.push(i)}if(Array.isArray(e.atDirectives))for(var s=0,a=e.atDirectives;s<a.length;s++){var i=a[s];mf(i)&&this._atDirectives.push(i)}if(Array.isArray(e.pseudoClasses))for(var o=0,l=e.pseudoClasses;o<l.length;o++){var i=l[o];gf(i)&&this._pseudoClasses.push(i)}if(Array.isArray(e.pseudoElements))for(var c=0,h=e.pseudoElements;c<h.length;c++){var i=h[c];bf(i)&&this._pseudoElements.push(i)}},t}();function ff(t){return typeof t.name=="string"}function mf(t){return typeof t.name=="string"}function gf(t){return typeof t.name=="string"}function bf(t){return typeof t.name=="string"}var ns=function(){function t(e){this.dataProviders=[],this._propertySet={},this._atDirectiveSet={},this._pseudoClassSet={},this._pseudoElementSet={},this._properties=[],this._atDirectives=[],this._pseudoClasses=[],this._pseudoElements=[],this.setDataProviders(e?.useDefaultDataProvider!==!1,e?.customDataProviders||[])}return t.prototype.setDataProviders=function(e,n){var r;this.dataProviders=[],e&&this.dataProviders.push(new hc(pf)),(r=this.dataProviders).push.apply(r,n),this.collectData()},t.prototype.collectData=function(){var e=this;this._propertySet={},this._atDirectiveSet={},this._pseudoClassSet={},this._pseudoElementSet={},this.dataProviders.forEach(function(n){n.provideProperties().forEach(function(r){e._propertySet[r.name]||(e._propertySet[r.name]=r)}),n.provideAtDirectives().forEach(function(r){e._atDirectiveSet[r.name]||(e._atDirectiveSet[r.name]=r)}),n.providePseudoClasses().forEach(function(r){e._pseudoClassSet[r.name]||(e._pseudoClassSet[r.name]=r)}),n.providePseudoElements().forEach(function(r){e._pseudoElementSet[r.name]||(e._pseudoElementSet[r.name]=r)})}),this._properties=mr(this._propertySet),this._atDirectives=mr(this._atDirectiveSet),this._pseudoClasses=mr(this._pseudoClassSet),this._pseudoElements=mr(this._pseudoElementSet)},t.prototype.getProperty=function(e){return this._propertySet[e]},t.prototype.getAtDirective=function(e){return this._atDirectiveSet[e]},t.prototype.getPseudoClass=function(e){return this._pseudoClassSet[e]},t.prototype.getPseudoElement=function(e){return this._pseudoElementSet[e]},t.prototype.getProperties=function(){return this._properties},t.prototype.getAtDirectives=function(){return this._atDirectives},t.prototype.getPseudoClasses=function(){return this._pseudoClasses},t.prototype.getPseudoElements=function(){return this._pseudoElements},t.prototype.isKnownProperty=function(e){return e.toLowerCase()in this._propertySet},t.prototype.isStandardProperty=function(e){return this.isKnownProperty(e)&&(!this._propertySet[e.toLowerCase()].status||this._propertySet[e.toLowerCase()].status==="standard")},t}();function vf(t,e,n){function r(s){for(var a=i(s),o=void 0,l=a.length-1;l>=0;l--)o=dr.create(ie.create(t.positionAt(a[l][0]),t.positionAt(a[l][1])),o);return o||(o=dr.create(ie.create(s,s))),o}return e.map(r);function i(s){var a=t.offsetAt(s),o=n.findChildAtOffset(a,!0);if(!o)return[];for(var l=[];o;){if(o.parent&&o.offset===o.parent.offset&&o.end===o.parent.end){o=o.parent;continue}o.type===v.Declarations&&a>o.offset&&a<o.end&&l.push([o.offset+1,o.end-1]),l.push([o.offset,o.end]),o=o.parent}return l}}var yf=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),wf=function(t,e,n,r){function i(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function o(h){try{c(r.next(h))}catch(u){a(u)}}function l(h){try{c(r.throw(h))}catch(u){a(u)}}function c(h){h.done?s(h.value):i(h.value).then(o,l)}c((r=r.apply(t,e||[])).next())})},xf=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,i,s,a;return a={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(c){return function(h){return l([c,h])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(s=c[0]&2?i.return:c[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,c[1])).done)return s;switch(i=0,s&&(c=[c[0]&2,s.value]),c[0]){case 0:case 1:s=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]<s[3])){n.label=c[1];break}if(c[0]===6&&n.label<s[1]){n.label=s[1],s=c;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(c);break}s[2]&&n.ops.pop(),n.trys.pop();continue}c=e.call(t,n)}catch(h){c=[6,h],i=0}finally{r=s=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},Sf=function(t){yf(e,t);function e(n){return t.call(this,n,!0)||this}return e.prototype.isRawStringDocumentLinkNode=function(n){return t.prototype.isRawStringDocumentLinkNode.call(this,n)||n.type===v.Use||n.type===v.Forward},e.prototype.resolveRelativeReference=function(n,r,i,s){return wf(this,void 0,void 0,function(){function a(u){if(u.path!==""&&!(u.path.endsWith(".scss")||u.path.endsWith(".css"))){if(u.path.endsWith("/"))return[u.with({path:u.path+"index.scss"}).toString(),u.with({path:u.path+"_index.scss"}).toString()];var f=u.path.split("/"),m=f[f.length-1],g=u.path.slice(0,-m.length);if(m.startsWith("_"))return u.path.endsWith(".scss")?void 0:[u.with({path:u.path+".scss"}).toString()];var b=m+".scss",y=function(P){return u.with({path:g+P}).toString()},C=y(b),k=y("_"+b),w=y(b.slice(0,-5)+"/index.scss"),F=y(b.slice(0,-5)+"/_index.scss"),_=y(b.slice(0,-5)+".css");return[C,k,w,F,_]}}var o,l,c,h;return xf(this,function(u){switch(u.label){case 0:return ge(n,"sass:")?[2,void 0]:[4,t.prototype.resolveRelativeReference.call(this,n,r,i,s)];case 1:if(o=u.sent(),!(this.fileSystemProvider&&o&&s))return[3,8];l=zi.parse(o),u.label=2;case 2:if(u.trys.push([2,7,,8]),c=a(l),!c)return[3,6];h=0,u.label=3;case 3:return h<c.length?[4,this.fileExists(c[h])]:[3,6];case 4:if(u.sent())return[2,c[h]];u.label=5;case 5:return h++,[3,3];case 6:return[3,8];case 7:return u.sent(),[3,8];case 8:return[2,o]}})})},e}(qi);function Cf(t){return new hc(t)}function rs(t,e,n,r,i,s,a){return{configure:function(o){s.configure(o),e.configure(o?.completion),n.configure(o?.hover)},setDataProviders:a.setDataProviders.bind(a),doValidation:s.doValidation.bind(s),parseStylesheet:t.parseStylesheet.bind(t),doComplete:e.doComplete.bind(e),doComplete2:e.doComplete2.bind(e),setCompletionParticipants:e.setCompletionParticipants.bind(e),doHover:n.doHover.bind(n),format:lf,findDefinition:r.findDefinition.bind(r),findReferences:r.findReferences.bind(r),findDocumentHighlights:r.findDocumentHighlights.bind(r),findDocumentLinks:r.findDocumentLinks.bind(r),findDocumentLinks2:r.findDocumentLinks2.bind(r),findDocumentSymbols:r.findDocumentSymbols.bind(r),doCodeActions:i.doCodeActions.bind(i),doCodeActions2:i.doCodeActions2.bind(i),findDocumentColors:r.findDocumentColors.bind(r),getColorPresentations:r.getColorPresentations.bind(r),doRename:r.doRename.bind(r),getFoldingRanges:rf,getSelectionRanges:vf}}var is={};function kf(t){t===void 0&&(t=is);var e=new ns(t);return rs(new Ni,new Wi(null,t,e),new Bi(t&&t.clientCapabilities,e),new qi(t&&t.fileSystemProvider,!1),new ji(e),new Gi(e),e)}function _f(t){t===void 0&&(t=is);var e=new ns(t);return rs(new $p,new Gp(t,e),new Bi(t&&t.clientCapabilities,e),new Sf(t&&t.fileSystemProvider),new ji(e),new Gi(e),e)}function Ef(t){t===void 0&&(t=is);var e=new ns(t);return rs(new ef,new nf(t,e),new Bi(t&&t.clientCapabilities,e),new qi(t&&t.fileSystemProvider,!0),new ji(e),new Gi(e),e)}var Rf=class{constructor(t,e){this._ctx=t,this._languageSettings=e.options,this._languageId=e.languageId;const n=e.options.data,r=n?.useDefaultDataProvider,i=[];if(n?.dataProviders)for(const a in n.dataProviders)i.push(Cf(n.dataProviders[a]));const s={customDataProviders:i,useDefaultDataProvider:r};switch(this._languageId){case"css":this._languageService=kf(s);break;case"less":this._languageService=Ef(s);break;case"scss":this._languageService=_f(s);break;default:throw new Error("Invalid language id: "+this._languageId)}this._languageService.configure(this._languageSettings)}async doValidation(t){const e=this._getTextDocument(t);if(e){const n=this._languageService.parseStylesheet(e),r=this._languageService.doValidation(e,n);return Promise.resolve(r)}return Promise.resolve([])}async doComplete(t,e){const n=this._getTextDocument(t);if(!n)return null;const r=this._languageService.parseStylesheet(n),i=this._languageService.doComplete(n,e,r);return Promise.resolve(i)}async doHover(t,e){const n=this._getTextDocument(t);if(!n)return null;const r=this._languageService.parseStylesheet(n),i=this._languageService.doHover(n,e,r);return Promise.resolve(i)}async findDefinition(t,e){const n=this._getTextDocument(t);if(!n)return null;const r=this._languageService.parseStylesheet(n),i=this._languageService.findDefinition(n,e,r);return Promise.resolve(i)}async findReferences(t,e){const n=this._getTextDocument(t);if(!n)return[];const r=this._languageService.parseStylesheet(n),i=this._languageService.findReferences(n,e,r);return Promise.resolve(i)}async findDocumentHighlights(t,e){const n=this._getTextDocument(t);if(!n)return[];const r=this._languageService.parseStylesheet(n),i=this._languageService.findDocumentHighlights(n,e,r);return Promise.resolve(i)}async findDocumentSymbols(t){const e=this._getTextDocument(t);if(!e)return[];const n=this._languageService.parseStylesheet(e),r=this._languageService.findDocumentSymbols(e,n);return Promise.resolve(r)}async doCodeActions(t,e,n){const r=this._getTextDocument(t);if(!r)return[];const i=this._languageService.parseStylesheet(r),s=this._languageService.doCodeActions(r,e,n,i);return Promise.resolve(s)}async findDocumentColors(t){const e=this._getTextDocument(t);if(!e)return[];const n=this._languageService.parseStylesheet(e),r=this._languageService.findDocumentColors(e,n);return Promise.resolve(r)}async getColorPresentations(t,e,n){const r=this._getTextDocument(t);if(!r)return[];const i=this._languageService.parseStylesheet(r),s=this._languageService.getColorPresentations(r,i,e,n);return Promise.resolve(s)}async getFoldingRanges(t,e){const n=this._getTextDocument(t);if(!n)return[];const r=this._languageService.getFoldingRanges(n,e);return Promise.resolve(r)}async getSelectionRanges(t,e){const n=this._getTextDocument(t);if(!n)return[];const r=this._languageService.parseStylesheet(n),i=this._languageService.getSelectionRanges(n,e,r);return Promise.resolve(i)}async doRename(t,e,n){const r=this._getTextDocument(t);if(!r)return null;const i=this._languageService.parseStylesheet(r),s=this._languageService.doRename(r,e,n,i);return Promise.resolve(s)}async format(t,e,n){const r=this._getTextDocument(t);if(!r)return[];const i={...this._languageSettings.format,...n},s=this._languageService.format(r,e,i);return Promise.resolve(s)}_getTextDocument(t){const e=this._ctx.getMirrorModels();for(const n of e)if(n.uri.toString()===t)return Di.create(t,this._languageId,n.version,n.getValue());return null}};self.onmessage=()=>{so((t,e)=>new Rf(t,e))}})();
|
|
84
|
+
In order to let ::-webkit-progress-value take effect, -webkit-appearance needs to be set to none on the <progress> element.`},{name:"::grammar-error",status:"experimental",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::grammar-error"}],description:"The ::grammar-error CSS pseudo-element represents a text segment which the user agent has flagged as grammatically incorrect."},{name:"::marker",browsers:["E86","FF68","S11.1","C86","O72"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::marker"}],description:"The ::marker CSS pseudo-element selects the marker box of a list item, which typically contains a bullet or number. It works on any element or pseudo-element set to display: list-item, such as the <li> and <summary> elements."},{name:"::part",status:"experimental",browsers:["E79","FF72","S13.1","C73","O60"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::part"}],description:"The ::part CSS pseudo-element represents any element within a shadow tree that has a matching part attribute."},{name:"::placeholder",browsers:["E79","FF51","S10.1","C57","O44"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::placeholder"}],description:"The ::placeholder CSS pseudo-element represents the placeholder text of a form element."},{name:"::slotted",browsers:["E79","FF63","S10","C50","O37"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::slotted"}],description:"The :slotted() CSS pseudo-element represents any element that has been placed into a slot inside an HTML template."},{name:"::spelling-error",status:"experimental",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::spelling-error"}],description:"The ::spelling-error CSS pseudo-element represents a text segment which the user agent has flagged as incorrectly spelled."}]},hc=function(){function t(e){this._properties=[],this._atDirectives=[],this._pseudoClasses=[],this._pseudoElements=[],this.addData(e)}return t.prototype.provideProperties=function(){return this._properties},t.prototype.provideAtDirectives=function(){return this._atDirectives},t.prototype.providePseudoClasses=function(){return this._pseudoClasses},t.prototype.providePseudoElements=function(){return this._pseudoElements},t.prototype.addData=function(e){if(Array.isArray(e.properties))for(var n=0,r=e.properties;n<r.length;n++){var i=r[n];ff(i)&&this._properties.push(i)}if(Array.isArray(e.atDirectives))for(var s=0,a=e.atDirectives;s<a.length;s++){var i=a[s];mf(i)&&this._atDirectives.push(i)}if(Array.isArray(e.pseudoClasses))for(var o=0,l=e.pseudoClasses;o<l.length;o++){var i=l[o];gf(i)&&this._pseudoClasses.push(i)}if(Array.isArray(e.pseudoElements))for(var c=0,h=e.pseudoElements;c<h.length;c++){var i=h[c];bf(i)&&this._pseudoElements.push(i)}},t}();function ff(t){return typeof t.name=="string"}function mf(t){return typeof t.name=="string"}function gf(t){return typeof t.name=="string"}function bf(t){return typeof t.name=="string"}var ns=function(){function t(e){this.dataProviders=[],this._propertySet={},this._atDirectiveSet={},this._pseudoClassSet={},this._pseudoElementSet={},this._properties=[],this._atDirectives=[],this._pseudoClasses=[],this._pseudoElements=[],this.setDataProviders(e?.useDefaultDataProvider!==!1,e?.customDataProviders||[])}return t.prototype.setDataProviders=function(e,n){var r;this.dataProviders=[],e&&this.dataProviders.push(new hc(pf)),(r=this.dataProviders).push.apply(r,n),this.collectData()},t.prototype.collectData=function(){var e=this;this._propertySet={},this._atDirectiveSet={},this._pseudoClassSet={},this._pseudoElementSet={},this.dataProviders.forEach(function(n){n.provideProperties().forEach(function(r){e._propertySet[r.name]||(e._propertySet[r.name]=r)}),n.provideAtDirectives().forEach(function(r){e._atDirectiveSet[r.name]||(e._atDirectiveSet[r.name]=r)}),n.providePseudoClasses().forEach(function(r){e._pseudoClassSet[r.name]||(e._pseudoClassSet[r.name]=r)}),n.providePseudoElements().forEach(function(r){e._pseudoElementSet[r.name]||(e._pseudoElementSet[r.name]=r)})}),this._properties=mr(this._propertySet),this._atDirectives=mr(this._atDirectiveSet),this._pseudoClasses=mr(this._pseudoClassSet),this._pseudoElements=mr(this._pseudoElementSet)},t.prototype.getProperty=function(e){return this._propertySet[e]},t.prototype.getAtDirective=function(e){return this._atDirectiveSet[e]},t.prototype.getPseudoClass=function(e){return this._pseudoClassSet[e]},t.prototype.getPseudoElement=function(e){return this._pseudoElementSet[e]},t.prototype.getProperties=function(){return this._properties},t.prototype.getAtDirectives=function(){return this._atDirectives},t.prototype.getPseudoClasses=function(){return this._pseudoClasses},t.prototype.getPseudoElements=function(){return this._pseudoElements},t.prototype.isKnownProperty=function(e){return e.toLowerCase()in this._propertySet},t.prototype.isStandardProperty=function(e){return this.isKnownProperty(e)&&(!this._propertySet[e.toLowerCase()].status||this._propertySet[e.toLowerCase()].status==="standard")},t}();function vf(t,e,n){function r(s){for(var a=i(s),o=void 0,l=a.length-1;l>=0;l--)o=dr.create(ie.create(t.positionAt(a[l][0]),t.positionAt(a[l][1])),o);return o||(o=dr.create(ie.create(s,s))),o}return e.map(r);function i(s){var a=t.offsetAt(s),o=n.findChildAtOffset(a,!0);if(!o)return[];for(var l=[];o;){if(o.parent&&o.offset===o.parent.offset&&o.end===o.parent.end){o=o.parent;continue}o.type===v.Declarations&&a>o.offset&&a<o.end&&l.push([o.offset+1,o.end-1]),l.push([o.offset,o.end]),o=o.parent}return l}}var yf=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),wf=function(t,e,n,r){function i(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function o(h){try{c(r.next(h))}catch(u){a(u)}}function l(h){try{c(r.throw(h))}catch(u){a(u)}}function c(h){h.done?s(h.value):i(h.value).then(o,l)}c((r=r.apply(t,[])).next())})},xf=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,i,s,a;return a={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(c){return function(h){return l([c,h])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(s=c[0]&2?i.return:c[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,c[1])).done)return s;switch(i=0,s&&(c=[c[0]&2,s.value]),c[0]){case 0:case 1:s=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]<s[3])){n.label=c[1];break}if(c[0]===6&&n.label<s[1]){n.label=s[1],s=c;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(c);break}s[2]&&n.ops.pop(),n.trys.pop();continue}c=e.call(t,n)}catch(h){c=[6,h],i=0}finally{r=s=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},Sf=function(t){yf(e,t);function e(n){return t.call(this,n,!0)||this}return e.prototype.isRawStringDocumentLinkNode=function(n){return t.prototype.isRawStringDocumentLinkNode.call(this,n)||n.type===v.Use||n.type===v.Forward},e.prototype.resolveRelativeReference=function(n,r,i,s){return wf(this,void 0,void 0,function(){function a(u){if(u.path!==""&&!(u.path.endsWith(".scss")||u.path.endsWith(".css"))){if(u.path.endsWith("/"))return[u.with({path:u.path+"index.scss"}).toString(),u.with({path:u.path+"_index.scss"}).toString()];var f=u.path.split("/"),m=f[f.length-1],g=u.path.slice(0,-m.length);if(m.startsWith("_"))return u.path.endsWith(".scss")?void 0:[u.with({path:u.path+".scss"}).toString()];var b=m+".scss",y=function(P){return u.with({path:g+P}).toString()},C=y(b),k=y("_"+b),w=y(b.slice(0,-5)+"/index.scss"),F=y(b.slice(0,-5)+"/_index.scss"),_=y(b.slice(0,-5)+".css");return[C,k,w,F,_]}}var o,l,c,h;return xf(this,function(u){switch(u.label){case 0:return ge(n,"sass:")?[2,void 0]:[4,t.prototype.resolveRelativeReference.call(this,n,r,i,s)];case 1:if(o=u.sent(),!(this.fileSystemProvider&&o&&s))return[3,8];l=zi.parse(o),u.label=2;case 2:if(u.trys.push([2,7,,8]),c=a(l),!c)return[3,6];h=0,u.label=3;case 3:return h<c.length?[4,this.fileExists(c[h])]:[3,6];case 4:if(u.sent())return[2,c[h]];u.label=5;case 5:return h++,[3,3];case 6:return[3,8];case 7:return u.sent(),[3,8];case 8:return[2,o]}})})},e}(qi);function Cf(t){return new hc(t)}function rs(t,e,n,r,i,s,a){return{configure:function(o){s.configure(o),e.configure(o?.completion),n.configure(o?.hover)},setDataProviders:a.setDataProviders.bind(a),doValidation:s.doValidation.bind(s),parseStylesheet:t.parseStylesheet.bind(t),doComplete:e.doComplete.bind(e),doComplete2:e.doComplete2.bind(e),setCompletionParticipants:e.setCompletionParticipants.bind(e),doHover:n.doHover.bind(n),format:lf,findDefinition:r.findDefinition.bind(r),findReferences:r.findReferences.bind(r),findDocumentHighlights:r.findDocumentHighlights.bind(r),findDocumentLinks:r.findDocumentLinks.bind(r),findDocumentLinks2:r.findDocumentLinks2.bind(r),findDocumentSymbols:r.findDocumentSymbols.bind(r),doCodeActions:i.doCodeActions.bind(i),doCodeActions2:i.doCodeActions2.bind(i),findDocumentColors:r.findDocumentColors.bind(r),getColorPresentations:r.getColorPresentations.bind(r),doRename:r.doRename.bind(r),getFoldingRanges:rf,getSelectionRanges:vf}}var is={};function kf(t){t===void 0&&(t=is);var e=new ns(t);return rs(new Ni,new Wi(null,t,e),new Bi(t&&t.clientCapabilities,e),new qi(t&&t.fileSystemProvider,!1),new ji(e),new Gi(e),e)}function _f(t){t===void 0&&(t=is);var e=new ns(t);return rs(new $p,new Gp(t,e),new Bi(t&&t.clientCapabilities,e),new Sf(t&&t.fileSystemProvider),new ji(e),new Gi(e),e)}function Ef(t){t===void 0&&(t=is);var e=new ns(t);return rs(new ef,new nf(t,e),new Bi(t&&t.clientCapabilities,e),new qi(t&&t.fileSystemProvider,!0),new ji(e),new Gi(e),e)}var Rf=class{constructor(t,e){this._ctx=t,this._languageSettings=e.options,this._languageId=e.languageId;const n=e.options.data,r=n?.useDefaultDataProvider,i=[];if(n?.dataProviders)for(const a in n.dataProviders)i.push(Cf(n.dataProviders[a]));const s={customDataProviders:i,useDefaultDataProvider:r};switch(this._languageId){case"css":this._languageService=kf(s);break;case"less":this._languageService=Ef(s);break;case"scss":this._languageService=_f(s);break;default:throw new Error("Invalid language id: "+this._languageId)}this._languageService.configure(this._languageSettings)}async doValidation(t){const e=this._getTextDocument(t);if(e){const n=this._languageService.parseStylesheet(e),r=this._languageService.doValidation(e,n);return Promise.resolve(r)}return Promise.resolve([])}async doComplete(t,e){const n=this._getTextDocument(t);if(!n)return null;const r=this._languageService.parseStylesheet(n),i=this._languageService.doComplete(n,e,r);return Promise.resolve(i)}async doHover(t,e){const n=this._getTextDocument(t);if(!n)return null;const r=this._languageService.parseStylesheet(n),i=this._languageService.doHover(n,e,r);return Promise.resolve(i)}async findDefinition(t,e){const n=this._getTextDocument(t);if(!n)return null;const r=this._languageService.parseStylesheet(n),i=this._languageService.findDefinition(n,e,r);return Promise.resolve(i)}async findReferences(t,e){const n=this._getTextDocument(t);if(!n)return[];const r=this._languageService.parseStylesheet(n),i=this._languageService.findReferences(n,e,r);return Promise.resolve(i)}async findDocumentHighlights(t,e){const n=this._getTextDocument(t);if(!n)return[];const r=this._languageService.parseStylesheet(n),i=this._languageService.findDocumentHighlights(n,e,r);return Promise.resolve(i)}async findDocumentSymbols(t){const e=this._getTextDocument(t);if(!e)return[];const n=this._languageService.parseStylesheet(e),r=this._languageService.findDocumentSymbols(e,n);return Promise.resolve(r)}async doCodeActions(t,e,n){const r=this._getTextDocument(t);if(!r)return[];const i=this._languageService.parseStylesheet(r),s=this._languageService.doCodeActions(r,e,n,i);return Promise.resolve(s)}async findDocumentColors(t){const e=this._getTextDocument(t);if(!e)return[];const n=this._languageService.parseStylesheet(e),r=this._languageService.findDocumentColors(e,n);return Promise.resolve(r)}async getColorPresentations(t,e,n){const r=this._getTextDocument(t);if(!r)return[];const i=this._languageService.parseStylesheet(r),s=this._languageService.getColorPresentations(r,i,e,n);return Promise.resolve(s)}async getFoldingRanges(t,e){const n=this._getTextDocument(t);if(!n)return[];const r=this._languageService.getFoldingRanges(n,e);return Promise.resolve(r)}async getSelectionRanges(t,e){const n=this._getTextDocument(t);if(!n)return[];const r=this._languageService.parseStylesheet(n),i=this._languageService.getSelectionRanges(n,e,r);return Promise.resolve(i)}async doRename(t,e,n){const r=this._getTextDocument(t);if(!r)return null;const i=this._languageService.parseStylesheet(r),s=this._languageService.doRename(r,e,n,i);return Promise.resolve(s)}async format(t,e,n){const r=this._getTextDocument(t);if(!r)return[];const i={...this._languageSettings.format,...n},s=this._languageService.format(r,e,i);return Promise.resolve(s)}_getTextDocument(t){const e=this._ctx.getMirrorModels();for(const n of e)if(n.uri.toString()===t)return Di.create(t,this._languageId,n.version,n.getValue());return null}};self.onmessage=()=>{so((t,e)=>new Rf(t,e))}})();
|