@tailwindcss/language-server 0.14.12 → 0.14.13
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/bin/css-language-server +36 -35
- package/bin/tailwindcss-language-server +1192 -1158
- package/package.json +4 -4
package/bin/css-language-server
CHANGED
@@ -1,40 +1,40 @@
|
|
1
1
|
#!/usr/bin/env node
|
2
|
-
var Jm=Object.create;var Dd=Object.defineProperty;var Xm=Object.getOwnPropertyDescriptor;var Ym=Object.getOwnPropertyNames;var Qm=Object.getPrototypeOf,Zm=Object.prototype.hasOwnProperty;var J=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var ef=(t,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of Ym(e))!Zm.call(t,r)&&r!==n&&Dd(t,r,{get:()=>e[r],enumerable:!(i=Xm(e,r))||i.enumerable});return t};var lt=(t,e,n)=>(n=t!=null?Jm(Qm(t)):{},ef(e||!t||!t.__esModule?Dd(n,"default",{value:t,enumerable:!0}):n,t));var hs=J(Ke=>{"use strict";Object.defineProperty(Ke,"__esModule",{value:!0});Ke.thenable=Ke.typedArray=Ke.stringArray=Ke.array=Ke.func=Ke.error=Ke.number=Ke.string=Ke.boolean=void 0;function tf(t){return t===!0||t===!1}Ke.boolean=tf;function Rd(t){return typeof t=="string"||t instanceof String}Ke.string=Rd;function nf(t){return typeof t=="number"||t instanceof Number}Ke.number=nf;function rf(t){return t instanceof Error}Ke.error=rf;function Md(t){return typeof t=="function"}Ke.func=Md;function Td(t){return Array.isArray(t)}Ke.array=Td;function sf(t){return Td(t)&&t.every(e=>Rd(e))}Ke.stringArray=sf;function of(t,e){return Array.isArray(t)&&t.every(e)}Ke.typedArray=of;function af(t){return t&&Md(t.then)}Ke.thenable=af});var fi=J(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});at.stringArray=at.array=at.func=at.error=at.number=at.string=at.boolean=void 0;function lf(t){return t===!0||t===!1}at.boolean=lf;function Id(t){return typeof t=="string"||t instanceof String}at.string=Id;function cf(t){return typeof t=="number"||t instanceof Number}at.number=cf;function df(t){return t instanceof Error}at.error=df;function hf(t){return typeof t=="function"}at.func=hf;function Pd(t){return Array.isArray(t)}at.array=Pd;function uf(t){return Pd(t)&&t.every(e=>Id(e))}at.stringArray=uf});var Ha=J(ne=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0});ne.Message=ne.NotificationType9=ne.NotificationType8=ne.NotificationType7=ne.NotificationType6=ne.NotificationType5=ne.NotificationType4=ne.NotificationType3=ne.NotificationType2=ne.NotificationType1=ne.NotificationType0=ne.NotificationType=ne.RequestType9=ne.RequestType8=ne.RequestType7=ne.RequestType6=ne.RequestType5=ne.RequestType4=ne.RequestType3=ne.RequestType2=ne.RequestType1=ne.RequestType=ne.RequestType0=ne.AbstractMessageSignature=ne.ParameterStructures=ne.ResponseError=ne.ErrorCodes=void 0;var Bn=fi(),zd;(function(t){t.ParseError=-32700,t.InvalidRequest=-32600,t.MethodNotFound=-32601,t.InvalidParams=-32602,t.InternalError=-32603,t.jsonrpcReservedErrorRangeStart=-32099,t.serverErrorStart=-32099,t.MessageWriteError=-32099,t.MessageReadError=-32098,t.PendingResponseRejected=-32097,t.ConnectionInactive=-32096,t.ServerNotInitialized=-32002,t.UnknownErrorCode=-32001,t.jsonrpcReservedErrorRangeEnd=-32e3,t.serverErrorEnd=-32e3})(zd=ne.ErrorCodes||(ne.ErrorCodes={}));var xa=class t extends Error{constructor(e,n,i){super(n),this.code=Bn.number(e)?e:zd.UnknownErrorCode,this.data=i,Object.setPrototypeOf(this,t.prototype)}toJson(){let e={code:this.code,message:this.message};return this.data!==void 0&&(e.data=this.data),e}};ne.ResponseError=xa;var gt=class t{constructor(e){this.kind=e}static is(e){return e===t.auto||e===t.byName||e===t.byPosition}toString(){return this.kind}};ne.ParameterStructures=gt;gt.auto=new gt("auto");gt.byPosition=new gt("byPosition");gt.byName=new gt("byName");var Te=class{constructor(e,n){this.method=e,this.numberOfParams=n}get parameterStructures(){return gt.auto}};ne.AbstractMessageSignature=Te;var Ca=class extends Te{constructor(e){super(e,0)}};ne.RequestType0=Ca;var Fa=class extends Te{constructor(e,n=gt.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};ne.RequestType=Fa;var ka=class extends Te{constructor(e,n=gt.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};ne.RequestType1=ka;var Aa=class extends Te{constructor(e){super(e,2)}};ne.RequestType2=Aa;var Ea=class extends Te{constructor(e){super(e,3)}};ne.RequestType3=Ea;var Da=class extends Te{constructor(e){super(e,4)}};ne.RequestType4=Da;var Ra=class extends Te{constructor(e){super(e,5)}};ne.RequestType5=Ra;var Ma=class extends Te{constructor(e){super(e,6)}};ne.RequestType6=Ma;var Ta=class extends Te{constructor(e){super(e,7)}};ne.RequestType7=Ta;var Ia=class extends Te{constructor(e){super(e,8)}};ne.RequestType8=Ia;var Pa=class extends Te{constructor(e){super(e,9)}};ne.RequestType9=Pa;var za=class extends Te{constructor(e,n=gt.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};ne.NotificationType=za;var Na=class extends Te{constructor(e){super(e,0)}};ne.NotificationType0=Na;var Oa=class extends Te{constructor(e,n=gt.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};ne.NotificationType1=Oa;var Wa=class extends Te{constructor(e){super(e,2)}};ne.NotificationType2=Wa;var La=class extends Te{constructor(e){super(e,3)}};ne.NotificationType3=La;var qa=class extends Te{constructor(e){super(e,4)}};ne.NotificationType4=qa;var ja=class extends Te{constructor(e){super(e,5)}};ne.NotificationType5=ja;var $a=class extends Te{constructor(e){super(e,6)}};ne.NotificationType6=$a;var Ua=class extends Te{constructor(e){super(e,7)}};ne.NotificationType7=Ua;var Va=class extends Te{constructor(e){super(e,8)}};ne.NotificationType8=Va;var Ba=class extends Te{constructor(e){super(e,9)}};ne.NotificationType9=Ba;var pf;(function(t){function e(r){let s=r;return s&&Bn.string(s.method)&&(Bn.string(s.id)||Bn.number(s.id))}t.isRequest=e;function n(r){let s=r;return s&&Bn.string(s.method)&&r.id===void 0}t.isNotification=n;function i(r){let s=r;return s&&(s.result!==void 0||!!s.error)&&(Bn.string(s.id)||Bn.number(s.id)||s.id===null)}t.isResponse=i})(pf=ne.Message||(ne.Message={}))});var Ga=J(on=>{"use strict";var Nd;Object.defineProperty(on,"__esModule",{value:!0});on.LRUCache=on.LinkedMap=on.Touch=void 0;var ct;(function(t){t.None=0,t.First=1,t.AsOld=t.First,t.Last=2,t.AsNew=t.Last})(ct=on.Touch||(on.Touch={}));var us=class{constructor(){this[Nd]="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(){return this._head?.value}get last(){return this._tail?.value}has(e){return this._map.has(e)}get(e,n=ct.None){let i=this._map.get(e);if(i)return n!==ct.None&&this.touch(i,n),i.value}set(e,n,i=ct.None){let r=this._map.get(e);if(r)r.value=n,i!==ct.None&&this.touch(r,i);else{switch(r={key:e,value:n,next:void 0,previous:void 0},i){case ct.None:this.addItemLast(r);break;case ct.First:this.addItemFirst(r);break;case ct.Last:this.addItemLast(r);break;default:this.addItemLast(r);break}this._map.set(e,r),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){let 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");let e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,n){let i=this._state,r=this._head;for(;r;){if(n?e.bind(n)(r.value,r.key,this):e(r.value,r.key,this),this._state!==i)throw new Error("LinkedMap got modified during iteration.");r=r.next}}keys(){let e=this._state,n=this._head,i={[Symbol.iterator]:()=>i,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(n){let r={value:n.key,done:!1};return n=n.next,r}else return{value:void 0,done:!0}}};return i}values(){let e=this._state,n=this._head,i={[Symbol.iterator]:()=>i,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(n){let r={value:n.value,done:!1};return n=n.next,r}else return{value:void 0,done:!0}}};return i}entries(){let e=this._state,n=this._head,i={[Symbol.iterator]:()=>i,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(n){let r={value:[n.key,n.value],done:!1};return n=n.next,r}else return{value:void 0,done:!0}}};return i}[(Nd=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let n=this._head,i=this.size;for(;n&&i>e;)this._map.delete(n.key),n=n.next,i--;this._head=n,this._size=i,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{let n=e.next,i=e.previous;if(!n||!i)throw new Error("Invalid list");n.previous=i,i.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!==ct.First&&n!==ct.Last)){if(n===ct.First){if(e===this._head)return;let i=e.next,r=e.previous;e===this._tail?(r.next=void 0,this._tail=r):(i.previous=r,r.next=i),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(n===ct.Last){if(e===this._tail)return;let i=e.next,r=e.previous;e===this._head?(i.previous=void 0,this._head=i):(i.previous=r,r.next=i),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){let e=[];return this.forEach((n,i)=>{e.push([i,n])}),e}fromJSON(e){this.clear();for(let[n,i]of e)this.set(n,i)}};on.LinkedMap=us;var Ka=class extends us{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 ratio(){return this._ratio}set ratio(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()}get(e,n=ct.AsNew){return super.get(e,n)}peek(e){return super.get(e,ct.None)}set(e,n){return super.set(e,n,ct.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}};on.LRUCache=Ka});var Od=J(ir=>{"use strict";Object.defineProperty(ir,"__esModule",{value:!0});ir.Disposable=void 0;var mf;(function(t){function e(n){return{dispose:n}}t.create=e})(mf=ir.Disposable||(ir.Disposable={}))});var Cn=J(Ya=>{"use strict";Object.defineProperty(Ya,"__esModule",{value:!0});var Ja;function Xa(){if(Ja===void 0)throw new Error("No runtime abstraction layer installed");return Ja}(function(t){function e(n){if(n===void 0)throw new Error("No runtime abstraction layer provided");Ja=n}t.install=e})(Xa||(Xa={}));Ya.default=Xa});var gi=J(Hn=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:!0});Hn.Emitter=Hn.Event=void 0;var ff=Cn(),gf;(function(t){let e={dispose(){}};t.None=function(){return e}})(gf=Hn.Event||(Hn.Event={}));var Qa=class{add(e,n=null,i){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(n),Array.isArray(i)&&i.push({dispose:()=>this.remove(e,n)})}remove(e,n=null){if(!this._callbacks)return;let i=!1;for(let r=0,s=this._callbacks.length;r<s;r++)if(this._callbacks[r]===e)if(this._contexts[r]===n){this._callbacks.splice(r,1),this._contexts.splice(r,1);return}else i=!0;if(i)throw new Error("When adding a listener with a context, you should remove it with the same context")}invoke(...e){if(!this._callbacks)return[];let n=[],i=this._callbacks.slice(0),r=this._contexts.slice(0);for(let s=0,o=i.length;s<o;s++)try{n.push(i[s].apply(r[s],e))}catch(a){(0,ff.default)().console.error(a)}return n}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},ps=class t{constructor(e){this._options=e}get event(){return this._event||(this._event=(e,n,i)=>{this._callbacks||(this._callbacks=new Qa),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(e,n);let r={dispose:()=>{this._callbacks&&(this._callbacks.remove(e,n),r.dispose=t._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(i)&&i.push(r),r}),this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}};Hn.Emitter=ps;ps._noop=function(){}});var fs=J(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Kn.CancellationTokenSource=Kn.CancellationToken=void 0;var bf=Cn(),yf=fi(),Za=gi(),el;(function(t){t.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Za.Event.None}),t.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Za.Event.None});function e(n){let i=n;return i&&(i===t.None||i===t.Cancelled||yf.boolean(i.isCancellationRequested)&&!!i.onCancellationRequested)}t.is=e})(el=Kn.CancellationToken||(Kn.CancellationToken={}));var wf=Object.freeze(function(t,e){let n=(0,bf.default)().timer.setTimeout(t.bind(e),0);return{dispose(){n.dispose()}}}),ms=class{constructor(){this._isCancelled=!1}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?wf:(this._emitter||(this._emitter=new Za.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},tl=class{get token(){return this._token||(this._token=new ms),this._token}cancel(){this._token?this._token.cancel():this._token=el.Cancelled}dispose(){this._token?this._token instanceof ms&&this._token.dispose():this._token=el.None}};Kn.CancellationTokenSource=tl});var Wd=J(bi=>{"use strict";Object.defineProperty(bi,"__esModule",{value:!0});bi.SharedArrayReceiverStrategy=bi.SharedArraySenderStrategy=void 0;var vf=fs(),rr;(function(t){t.Continue=0,t.Cancelled=1})(rr||(rr={}));var nl=class{constructor(){this.buffers=new Map}enableCancellation(e){if(e.id===null)return;let n=new SharedArrayBuffer(4),i=new Int32Array(n,0,1);i[0]=rr.Continue,this.buffers.set(e.id,n),e.$cancellationData=n}async sendCancellation(e,n){let i=this.buffers.get(n);if(i===void 0)return;let r=new Int32Array(i,0,1);Atomics.store(r,0,rr.Cancelled)}cleanup(e){this.buffers.delete(e)}dispose(){this.buffers.clear()}};bi.SharedArraySenderStrategy=nl;var il=class{constructor(e){this.data=new Int32Array(e,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===rr.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}},rl=class{constructor(e){this.token=new il(e)}cancel(){}dispose(){}},sl=class{constructor(){this.kind="request"}createCancellationTokenSource(e){let n=e.$cancellationData;return n===void 0?new vf.CancellationTokenSource:new rl(n)}};bi.SharedArrayReceiverStrategy=sl});var al=J(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});gs.Semaphore=void 0;var Sf=Cn(),ol=class{constructor(e=1){if(e<=0)throw new Error("Capacity must be greater than 0");this._capacity=e,this._active=0,this._waiting=[]}lock(e){return new Promise((n,i)=>{this._waiting.push({thunk:e,resolve:n,reject:i}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length===0||this._active===this._capacity||(0,Sf.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||this._active===this._capacity)return;let e=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("To many thunks active");try{let n=e.thunk();n instanceof Promise?n.then(i=>{this._active--,e.resolve(i),this.runNext()},i=>{this._active--,e.reject(i),this.runNext()}):(this._active--,e.resolve(n),this.runNext())}catch(n){this._active--,e.reject(n),this.runNext()}}};gs.Semaphore=ol});var Ld=J(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:!0});an.ReadableStreamMessageReader=an.AbstractMessageReader=an.MessageReader=void 0;var cl=Cn(),yi=fi(),ll=gi(),_f=al(),xf;(function(t){function e(n){let i=n;return i&&yi.func(i.listen)&&yi.func(i.dispose)&&yi.func(i.onError)&&yi.func(i.onClose)&&yi.func(i.onPartialMessage)}t.is=e})(xf=an.MessageReader||(an.MessageReader={}));var bs=class{constructor(){this.errorEmitter=new ll.Emitter,this.closeEmitter=new ll.Emitter,this.partialMessageEmitter=new ll.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e){this.errorEmitter.fire(this.asError(e))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(e){this.partialMessageEmitter.fire(e)}asError(e){return e instanceof Error?e:new Error(`Reader received error. Reason: ${yi.string(e.message)?e.message:"unknown"}`)}};an.AbstractMessageReader=bs;var dl;(function(t){function e(n){let i,r,s,o=new Map,a,l=new Map;if(n===void 0||typeof n=="string")i=n??"utf-8";else{if(i=n.charset??"utf-8",n.contentDecoder!==void 0&&(s=n.contentDecoder,o.set(s.name,s)),n.contentDecoders!==void 0)for(let c of n.contentDecoders)o.set(c.name,c);if(n.contentTypeDecoder!==void 0&&(a=n.contentTypeDecoder,l.set(a.name,a)),n.contentTypeDecoders!==void 0)for(let c of n.contentTypeDecoders)l.set(c.name,c)}return a===void 0&&(a=(0,cl.default)().applicationJson.decoder,l.set(a.name,a)),{charset:i,contentDecoder:s,contentDecoders:o,contentTypeDecoder:a,contentTypeDecoders:l}}t.fromOptions=e})(dl||(dl={}));var hl=class extends bs{constructor(e,n){super(),this.readable=e,this.options=dl.fromOptions(n),this.buffer=(0,cl.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new _f.Semaphore(1)}set partialMessageTimeout(e){this._partialMessageTimeout=e}get partialMessageTimeout(){return this._partialMessageTimeout}listen(e){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=e;let n=this.readable.onData(i=>{this.onData(i)});return this.readable.onError(i=>this.fireError(i)),this.readable.onClose(()=>this.fireClose()),n}onData(e){for(this.buffer.append(e);;){if(this.nextMessageLength===-1){let i=this.buffer.tryReadHeaders(!0);if(!i)return;let r=i.get("content-length");if(!r){this.fireError(new Error("Header must provide a Content-Length property."));return}let s=parseInt(r);if(isNaN(s)){this.fireError(new Error("Content-Length value must be a number."));return}this.nextMessageLength=s}let n=this.buffer.tryReadBody(this.nextMessageLength);if(n===void 0){this.setPartialMessageTimer();return}this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock(async()=>{let i=this.options.contentDecoder!==void 0?await this.options.contentDecoder.decode(n):n,r=await this.options.contentTypeDecoder.decode(i,this.options);this.callback(r)}).catch(i=>{this.fireError(i)})}}clearPartialMessageTimer(){this.partialMessageTimer&&(this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),!(this._partialMessageTimeout<=0)&&(this.partialMessageTimer=(0,cl.default)().timer.setTimeout((e,n)=>{this.partialMessageTimer=void 0,e===this.messageToken&&(this.firePartialMessage({messageToken:e,waitingTime:n}),this.setPartialMessageTimer())},this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}};an.ReadableStreamMessageReader=hl});var Ud=J(ln=>{"use strict";Object.defineProperty(ln,"__esModule",{value:!0});ln.WriteableStreamMessageWriter=ln.AbstractMessageWriter=ln.MessageWriter=void 0;var qd=Cn(),sr=fi(),Cf=al(),jd=gi(),Ff="Content-Length: ",$d=`\r
|
3
|
-
`,kf;(function(t){function e(n){let i=n;return i&&sr.func(i.dispose)&&sr.func(i.onClose)&&sr.func(i.onError)&&sr.func(i.write)}t.is=e})(kf=ln.MessageWriter||(ln.MessageWriter={}));var ys=class{constructor(){this.errorEmitter=new jd.Emitter,this.closeEmitter=new jd.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e,n,i){this.errorEmitter.fire([this.asError(e),n,i])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}asError(e){return e instanceof Error?e:new Error(`Writer received error. Reason: ${sr.string(e.message)?e.message:"unknown"}`)}};ln.AbstractMessageWriter=ys;var ul;(function(t){function e(n){return n===void 0||typeof n=="string"?{charset:n??"utf-8",contentTypeEncoder:(0,qd.default)().applicationJson.encoder}:{charset:n.charset??"utf-8",contentEncoder:n.contentEncoder,contentTypeEncoder:n.contentTypeEncoder??(0,qd.default)().applicationJson.encoder}}t.fromOptions=e})(ul||(ul={}));var pl=class extends ys{constructor(e,n){super(),this.writable=e,this.options=ul.fromOptions(n),this.errorCount=0,this.writeSemaphore=new Cf.Semaphore(1),this.writable.onError(i=>this.fireError(i)),this.writable.onClose(()=>this.fireClose())}async write(e){return this.writeSemaphore.lock(async()=>this.options.contentTypeEncoder.encode(e,this.options).then(i=>this.options.contentEncoder!==void 0?this.options.contentEncoder.encode(i):i).then(i=>{let r=[];return r.push(Ff,i.byteLength.toString(),$d),r.push($d),this.doWrite(e,r,i)},i=>{throw this.fireError(i),i}))}async doWrite(e,n,i){try{return await this.writable.write(n.join(""),"ascii"),this.writable.write(i)}catch(r){return this.handleError(r,e),Promise.reject(r)}}handleError(e,n){this.errorCount++,this.fireError(e,n,this.errorCount)}end(){this.writable.end()}};ln.WriteableStreamMessageWriter=pl});var Vd=
|
4
|
-
`,ml=class{constructor(e="utf-8"){this._encoding=e,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(e){let n=typeof e=="string"?this.fromString(e,this._encoding):e;this._chunks.push(n),this._totalLength+=n.byteLength}tryReadHeaders(e=!1){if(this._chunks.length===0)return;let n=0,i=0,r=0,s=0;e:for(;i<this._chunks.length;){let c=this._chunks[i];for(r=0;r<c.length;){switch(c[r]){case Af:switch(n){case 0:n=1;break;case 2:n=3;break;default:n=0}break;case Ef:switch(n){case 1:n=2;break;case 3:n=4,r++;break e;default:n=0}break;default:n=0}r++}s+=c.byteLength,i++}if(n!==4)return;let o=this._read(s+r),a=new Map,l=this.toString(o,"ascii").split(Df);if(l.length<2)return a;for(let c=0;c<l.length-2;c++){let d=l[c],p=d.indexOf(":");if(p===-1)throw new Error("Message header must separate key and value using :");let b=d.substr(0,p),y=d.substr(p+1).trim();a.set(e?b.toLowerCase():b,y)}return a}tryReadBody(e){if(!(this._totalLength<e))return this._read(e)}get numberOfBytes(){return this._totalLength}_read(e){if(e===0)return this.emptyBuffer();if(e>this._totalLength)throw new Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===e){let s=this._chunks[0];return this._chunks.shift(),this._totalLength-=e,this.asNative(s)}if(this._chunks[0].byteLength>e){let s=this._chunks[0],o=this.asNative(s,e);return this._chunks[0]=s.slice(e),this._totalLength-=e,o}let n=this.allocNative(e),i=0,r=0;for(;e>0;){let s=this._chunks[r];if(s.byteLength>e){let o=s.slice(0,e);n.set(o,i),i+=e,this._chunks[r]=s.slice(e),this._totalLength-=e,e-=e}else n.set(s,i),i+=s.byteLength,this._chunks.shift(),this._totalLength-=s.byteLength,e-=s.byteLength}return n}};ws.AbstractMessageBuffer=ml});var Yd=J(ee=>{"use strict";Object.defineProperty(ee,"__esModule",{value:!0});ee.createMessageConnection=ee.ConnectionOptions=ee.MessageStrategy=ee.CancellationStrategy=ee.CancellationSenderStrategy=ee.CancellationReceiverStrategy=ee.RequestCancellationReceiverStrategy=ee.IdCancellationReceiverStrategy=ee.ConnectionStrategy=ee.ConnectionError=ee.ConnectionErrors=ee.LogTraceNotification=ee.SetTraceNotification=ee.TraceFormat=ee.TraceValues=ee.Trace=ee.NullLogger=ee.ProgressType=ee.ProgressToken=void 0;var Bd=Cn(),We=fi(),ae=Ha(),Hd=Ga(),or=gi(),fl=fs(),lr;(function(t){t.type=new ae.NotificationType("$/cancelRequest")})(lr||(lr={}));var Kd;(function(t){function e(n){return typeof n=="string"||typeof n=="number"}t.is=e})(Kd=ee.ProgressToken||(ee.ProgressToken={}));var ar;(function(t){t.type=new ae.NotificationType("$/progress")})(ar||(ar={}));var gl=class{constructor(){}};ee.ProgressType=gl;var bl;(function(t){function e(n){return We.func(n)}t.is=e})(bl||(bl={}));ee.NullLogger=Object.freeze({error:()=>{},warn:()=>{},info:()=>{},log:()=>{}});var ke;(function(t){t[t.Off=0]="Off",t[t.Messages=1]="Messages",t[t.Compact=2]="Compact",t[t.Verbose=3]="Verbose"})(ke=ee.Trace||(ee.Trace={}));var Rf;(function(t){t.Off="off",t.Messages="messages",t.Compact="compact",t.Verbose="verbose"})(Rf=ee.TraceValues||(ee.TraceValues={}));(function(t){function e(i){if(!We.string(i))return t.Off;switch(i=i.toLowerCase(),i){case"off":return t.Off;case"messages":return t.Messages;case"compact":return t.Compact;case"verbose":return t.Verbose;default:return t.Off}}t.fromString=e;function n(i){switch(i){case t.Off:return"off";case t.Messages:return"messages";case t.Compact:return"compact";case t.Verbose:return"verbose";default:return"off"}}t.toString=n})(ke=ee.Trace||(ee.Trace={}));var Pt;(function(t){t.Text="text",t.JSON="json"})(Pt=ee.TraceFormat||(ee.TraceFormat={}));(function(t){function e(n){return We.string(n)?(n=n.toLowerCase(),n==="json"?t.JSON:t.Text):t.Text}t.fromString=e})(Pt=ee.TraceFormat||(ee.TraceFormat={}));var Gd;(function(t){t.type=new ae.NotificationType("$/setTrace")})(Gd=ee.SetTraceNotification||(ee.SetTraceNotification={}));var yl;(function(t){t.type=new ae.NotificationType("$/logTrace")})(yl=ee.LogTraceNotification||(ee.LogTraceNotification={}));var vs;(function(t){t[t.Closed=1]="Closed",t[t.Disposed=2]="Disposed",t[t.AlreadyListening=3]="AlreadyListening"})(vs=ee.ConnectionErrors||(ee.ConnectionErrors={}));var wi=class t extends Error{constructor(e,n){super(n),this.code=e,Object.setPrototypeOf(this,t.prototype)}};ee.ConnectionError=wi;var Jd;(function(t){function e(n){let i=n;return i&&We.func(i.cancelUndispatched)}t.is=e})(Jd=ee.ConnectionStrategy||(ee.ConnectionStrategy={}));var Sl;(function(t){function e(n){let i=n;return i&&(i.kind===void 0||i.kind==="id")&&We.func(i.createCancellationTokenSource)&&(i.dispose===void 0||We.func(i.dispose))}t.is=e})(Sl=ee.IdCancellationReceiverStrategy||(ee.IdCancellationReceiverStrategy={}));var Xd;(function(t){function e(n){let i=n;return i&&i.kind==="request"&&We.func(i.createCancellationTokenSource)&&(i.dispose===void 0||We.func(i.dispose))}t.is=e})(Xd=ee.RequestCancellationReceiverStrategy||(ee.RequestCancellationReceiverStrategy={}));var wl;(function(t){t.Message=Object.freeze({createCancellationTokenSource(n){return new fl.CancellationTokenSource}});function e(n){return Sl.is(n)||Xd.is(n)}t.is=e})(wl=ee.CancellationReceiverStrategy||(ee.CancellationReceiverStrategy={}));var vl;(function(t){t.Message=Object.freeze({sendCancellation(n,i){return n.sendNotification(lr.type,{id:i})},cleanup(n){}});function e(n){let i=n;return i&&We.func(i.sendCancellation)&&We.func(i.cleanup)}t.is=e})(vl=ee.CancellationSenderStrategy||(ee.CancellationSenderStrategy={}));var _l;(function(t){t.Message=Object.freeze({receiver:wl.Message,sender:vl.Message});function e(n){let i=n;return i&&wl.is(i.receiver)&&vl.is(i.sender)}t.is=e})(_l=ee.CancellationStrategy||(ee.CancellationStrategy={}));var xl;(function(t){function e(n){let i=n;return i&&We.func(i.handleMessage)}t.is=e})(xl=ee.MessageStrategy||(ee.MessageStrategy={}));var Mf;(function(t){function e(n){let i=n;return i&&(_l.is(i.cancellationStrategy)||Jd.is(i.connectionStrategy)||xl.is(i.messageStrategy))}t.is=e})(Mf=ee.ConnectionOptions||(ee.ConnectionOptions={}));var zt;(function(t){t[t.New=1]="New",t[t.Listening=2]="Listening",t[t.Closed=3]="Closed",t[t.Disposed=4]="Disposed"})(zt||(zt={}));function Tf(t,e,n,i){let r=n!==void 0?n:ee.NullLogger,s=0,o=0,a=0,l="2.0",c,d=new Map,p,b=new Map,y=new Map,M,P=new Hd.LinkedMap,Y=new Map,$=new Set,k=new Map,_=ke.Off,F=Pt.Text,O,j=zt.New,Q=new or.Emitter,oe=new or.Emitter,ue=new or.Emitter,L=new or.Emitter,A=new or.Emitter,x=i&&i.cancellationStrategy?i.cancellationStrategy:_l.Message;function I(w){if(w===null)throw new Error("Can't send requests with id null since the response can't be correlated.");return"req-"+w.toString()}function q(w){return w===null?"res-unknown-"+(++a).toString():"res-"+w.toString()}function G(){return"not-"+(++o).toString()}function H(w,z){ae.Message.isRequest(z)?w.set(I(z.id),z):ae.Message.isResponse(z)?w.set(q(z.id),z):w.set(G(),z)}function X(w){}function ve(){return j===zt.Listening}function be(){return j===zt.Closed}function he(){return j===zt.Disposed}function $e(){(j===zt.New||j===zt.Listening)&&(j=zt.Closed,oe.fire(void 0))}function Sn(w){Q.fire([w,void 0,void 0])}function di(w){Q.fire(w)}t.onClose($e),t.onError(Sn),e.onClose($e),e.onError(di);function hi(){M||P.size===0||(M=(0,Bd.default)().timer.setImmediate(()=>{M=void 0,ua()}))}function ui(w){ae.Message.isRequest(w)?ma(w):ae.Message.isNotification(w)?ga(w):ae.Message.isResponse(w)?fa(w):er(w)}function ua(){if(P.size===0)return;let w=P.shift();try{let z=i?.messageStrategy;xl.is(z)?z.handleMessage(w,ui):ui(w)}finally{hi()}}let pa=w=>{try{if(ae.Message.isNotification(w)&&w.method===lr.type.method){let z=w.params.id,B=I(z),Z=P.get(B);if(ae.Message.isRequest(Z)){let Fe=i?.connectionStrategy,Pe=Fe&&Fe.cancelUndispatched?Fe.cancelUndispatched(Z,X):void 0;if(Pe&&(Pe.error!==void 0||Pe.result!==void 0)){P.delete(B),k.delete(z),Pe.id=Z.id,pi(Pe,w.method,Date.now()),e.write(Pe).catch(()=>r.error("Sending response for canceled message failed."));return}}let Ae=k.get(z);if(Ae!==void 0){Ae.cancel(),tr(w);return}else $.add(z)}H(P,w)}finally{hi()}};function ma(w){if(he())return;function z(pe,Ee,_e){let Ue={jsonrpc:l,id:w.id};pe instanceof ae.ResponseError?Ue.error=pe.toJson():Ue.result=pe===void 0?null:pe,pi(Ue,Ee,_e),e.write(Ue).catch(()=>r.error("Sending response failed."))}function B(pe,Ee,_e){let Ue={jsonrpc:l,id:w.id,error:pe.toJson()};pi(Ue,Ee,_e),e.write(Ue).catch(()=>r.error("Sending response failed."))}function Z(pe,Ee,_e){pe===void 0&&(pe=null);let Ue={jsonrpc:l,id:w.id,result:pe};pi(Ue,Ee,_e),e.write(Ue).catch(()=>r.error("Sending response failed."))}wa(w);let Ae=d.get(w.method),Fe,Pe;Ae&&(Fe=Ae.type,Pe=Ae.handler);let Oe=Date.now();if(Pe||c){let pe=w.id??String(Date.now()),Ee=Sl.is(x.receiver)?x.receiver.createCancellationTokenSource(pe):x.receiver.createCancellationTokenSource(w);w.id!==null&&$.has(w.id)&&Ee.cancel(),w.id!==null&&k.set(pe,Ee);try{let _e;if(Pe)if(w.params===void 0){if(Fe!==void 0&&Fe.numberOfParams!==0){B(new ae.ResponseError(ae.ErrorCodes.InvalidParams,`Request ${w.method} defines ${Fe.numberOfParams} params but received none.`),w.method,Oe);return}_e=Pe(Ee.token)}else if(Array.isArray(w.params)){if(Fe!==void 0&&Fe.parameterStructures===ae.ParameterStructures.byName){B(new ae.ResponseError(ae.ErrorCodes.InvalidParams,`Request ${w.method} defines parameters by name but received parameters by position`),w.method,Oe);return}_e=Pe(...w.params,Ee.token)}else{if(Fe!==void 0&&Fe.parameterStructures===ae.ParameterStructures.byPosition){B(new ae.ResponseError(ae.ErrorCodes.InvalidParams,`Request ${w.method} defines parameters by position but received parameters by name`),w.method,Oe);return}_e=Pe(w.params,Ee.token)}else c&&(_e=c(w.method,w.params,Ee.token));let Ue=_e;_e?Ue.then?Ue.then(Qe=>{k.delete(pe),z(Qe,w.method,Oe)},Qe=>{k.delete(pe),Qe instanceof ae.ResponseError?B(Qe,w.method,Oe):Qe&&We.string(Qe.message)?B(new ae.ResponseError(ae.ErrorCodes.InternalError,`Request ${w.method} failed with message: ${Qe.message}`),w.method,Oe):B(new ae.ResponseError(ae.ErrorCodes.InternalError,`Request ${w.method} failed unexpectedly without providing any details.`),w.method,Oe)}):(k.delete(pe),z(_e,w.method,Oe)):(k.delete(pe),Z(_e,w.method,Oe))}catch(_e){k.delete(pe),_e instanceof ae.ResponseError?z(_e,w.method,Oe):_e&&We.string(_e.message)?B(new ae.ResponseError(ae.ErrorCodes.InternalError,`Request ${w.method} failed with message: ${_e.message}`),w.method,Oe):B(new ae.ResponseError(ae.ErrorCodes.InternalError,`Request ${w.method} failed unexpectedly without providing any details.`),w.method,Oe)}}else B(new ae.ResponseError(ae.ErrorCodes.MethodNotFound,`Unhandled method ${w.method}`),w.method,Oe)}function fa(w){if(!he())if(w.id===null)w.error?r.error(`Received response message without id: Error is:
|
5
|
-
${JSON.stringify(w.error,void 0,4)}`):r.error("Received response message without id. No further error information provided.");else{let z=w.id,
|
6
|
-
${JSON.stringify(w,null,4)}`);let z=w;if(We.string(z.id)||We.number(z.id)){let
|
2
|
+
var Jm=Object.create;var Dd=Object.defineProperty;var Xm=Object.getOwnPropertyDescriptor;var Ym=Object.getOwnPropertyNames;var Qm=Object.getPrototypeOf,Zm=Object.prototype.hasOwnProperty;var X=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var ef=(t,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of Ym(e))!Zm.call(t,r)&&r!==n&&Dd(t,r,{get:()=>e[r],enumerable:!(i=Xm(e,r))||i.enumerable});return t};var lt=(t,e,n)=>(n=t!=null?Jm(Qm(t)):{},ef(e||!t||!t.__esModule?Dd(n,"default",{value:t,enumerable:!0}):n,t));var hs=X(Ke=>{"use strict";Object.defineProperty(Ke,"__esModule",{value:!0});Ke.thenable=Ke.typedArray=Ke.stringArray=Ke.array=Ke.func=Ke.error=Ke.number=Ke.string=Ke.boolean=void 0;function tf(t){return t===!0||t===!1}Ke.boolean=tf;function Rd(t){return typeof t=="string"||t instanceof String}Ke.string=Rd;function nf(t){return typeof t=="number"||t instanceof Number}Ke.number=nf;function rf(t){return t instanceof Error}Ke.error=rf;function Md(t){return typeof t=="function"}Ke.func=Md;function Td(t){return Array.isArray(t)}Ke.array=Td;function sf(t){return Td(t)&&t.every(e=>Rd(e))}Ke.stringArray=sf;function of(t,e){return Array.isArray(t)&&t.every(e)}Ke.typedArray=of;function af(t){return t&&Md(t.then)}Ke.thenable=af});var fi=X(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});at.stringArray=at.array=at.func=at.error=at.number=at.string=at.boolean=void 0;function lf(t){return t===!0||t===!1}at.boolean=lf;function Id(t){return typeof t=="string"||t instanceof String}at.string=Id;function cf(t){return typeof t=="number"||t instanceof Number}at.number=cf;function df(t){return t instanceof Error}at.error=df;function hf(t){return typeof t=="function"}at.func=hf;function Pd(t){return Array.isArray(t)}at.array=Pd;function uf(t){return Pd(t)&&t.every(e=>Id(e))}at.stringArray=uf});var Ha=X(ie=>{"use strict";Object.defineProperty(ie,"__esModule",{value:!0});ie.Message=ie.NotificationType9=ie.NotificationType8=ie.NotificationType7=ie.NotificationType6=ie.NotificationType5=ie.NotificationType4=ie.NotificationType3=ie.NotificationType2=ie.NotificationType1=ie.NotificationType0=ie.NotificationType=ie.RequestType9=ie.RequestType8=ie.RequestType7=ie.RequestType6=ie.RequestType5=ie.RequestType4=ie.RequestType3=ie.RequestType2=ie.RequestType1=ie.RequestType=ie.RequestType0=ie.AbstractMessageSignature=ie.ParameterStructures=ie.ResponseError=ie.ErrorCodes=void 0;var Bn=fi(),zd;(function(t){t.ParseError=-32700,t.InvalidRequest=-32600,t.MethodNotFound=-32601,t.InvalidParams=-32602,t.InternalError=-32603,t.jsonrpcReservedErrorRangeStart=-32099,t.serverErrorStart=-32099,t.MessageWriteError=-32099,t.MessageReadError=-32098,t.PendingResponseRejected=-32097,t.ConnectionInactive=-32096,t.ServerNotInitialized=-32002,t.UnknownErrorCode=-32001,t.jsonrpcReservedErrorRangeEnd=-32e3,t.serverErrorEnd=-32e3})(zd=ie.ErrorCodes||(ie.ErrorCodes={}));var xa=class t extends Error{constructor(e,n,i){super(n),this.code=Bn.number(e)?e:zd.UnknownErrorCode,this.data=i,Object.setPrototypeOf(this,t.prototype)}toJson(){let e={code:this.code,message:this.message};return this.data!==void 0&&(e.data=this.data),e}};ie.ResponseError=xa;var gt=class t{constructor(e){this.kind=e}static is(e){return e===t.auto||e===t.byName||e===t.byPosition}toString(){return this.kind}};ie.ParameterStructures=gt;gt.auto=new gt("auto");gt.byPosition=new gt("byPosition");gt.byName=new gt("byName");var Te=class{constructor(e,n){this.method=e,this.numberOfParams=n}get parameterStructures(){return gt.auto}};ie.AbstractMessageSignature=Te;var Ca=class extends Te{constructor(e){super(e,0)}};ie.RequestType0=Ca;var Fa=class extends Te{constructor(e,n=gt.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};ie.RequestType=Fa;var ka=class extends Te{constructor(e,n=gt.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};ie.RequestType1=ka;var Aa=class extends Te{constructor(e){super(e,2)}};ie.RequestType2=Aa;var Ea=class extends Te{constructor(e){super(e,3)}};ie.RequestType3=Ea;var Da=class extends Te{constructor(e){super(e,4)}};ie.RequestType4=Da;var Ra=class extends Te{constructor(e){super(e,5)}};ie.RequestType5=Ra;var Ma=class extends Te{constructor(e){super(e,6)}};ie.RequestType6=Ma;var Ta=class extends Te{constructor(e){super(e,7)}};ie.RequestType7=Ta;var Ia=class extends Te{constructor(e){super(e,8)}};ie.RequestType8=Ia;var Pa=class extends Te{constructor(e){super(e,9)}};ie.RequestType9=Pa;var za=class extends Te{constructor(e,n=gt.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};ie.NotificationType=za;var Na=class extends Te{constructor(e){super(e,0)}};ie.NotificationType0=Na;var Oa=class extends Te{constructor(e,n=gt.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};ie.NotificationType1=Oa;var Wa=class extends Te{constructor(e){super(e,2)}};ie.NotificationType2=Wa;var La=class extends Te{constructor(e){super(e,3)}};ie.NotificationType3=La;var qa=class extends Te{constructor(e){super(e,4)}};ie.NotificationType4=qa;var ja=class extends Te{constructor(e){super(e,5)}};ie.NotificationType5=ja;var $a=class extends Te{constructor(e){super(e,6)}};ie.NotificationType6=$a;var Ua=class extends Te{constructor(e){super(e,7)}};ie.NotificationType7=Ua;var Va=class extends Te{constructor(e){super(e,8)}};ie.NotificationType8=Va;var Ba=class extends Te{constructor(e){super(e,9)}};ie.NotificationType9=Ba;var pf;(function(t){function e(r){let s=r;return s&&Bn.string(s.method)&&(Bn.string(s.id)||Bn.number(s.id))}t.isRequest=e;function n(r){let s=r;return s&&Bn.string(s.method)&&r.id===void 0}t.isNotification=n;function i(r){let s=r;return s&&(s.result!==void 0||!!s.error)&&(Bn.string(s.id)||Bn.number(s.id)||s.id===null)}t.isResponse=i})(pf=ie.Message||(ie.Message={}))});var Ga=X(on=>{"use strict";var Nd;Object.defineProperty(on,"__esModule",{value:!0});on.LRUCache=on.LinkedMap=on.Touch=void 0;var ct;(function(t){t.None=0,t.First=1,t.AsOld=t.First,t.Last=2,t.AsNew=t.Last})(ct=on.Touch||(on.Touch={}));var us=class{constructor(){this[Nd]="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(){return this._head?.value}get last(){return this._tail?.value}has(e){return this._map.has(e)}get(e,n=ct.None){let i=this._map.get(e);if(i)return n!==ct.None&&this.touch(i,n),i.value}set(e,n,i=ct.None){let r=this._map.get(e);if(r)r.value=n,i!==ct.None&&this.touch(r,i);else{switch(r={key:e,value:n,next:void 0,previous:void 0},i){case ct.None:this.addItemLast(r);break;case ct.First:this.addItemFirst(r);break;case ct.Last:this.addItemLast(r);break;default:this.addItemLast(r);break}this._map.set(e,r),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){let 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");let e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,n){let i=this._state,r=this._head;for(;r;){if(n?e.bind(n)(r.value,r.key,this):e(r.value,r.key,this),this._state!==i)throw new Error("LinkedMap got modified during iteration.");r=r.next}}keys(){let e=this._state,n=this._head,i={[Symbol.iterator]:()=>i,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(n){let r={value:n.key,done:!1};return n=n.next,r}else return{value:void 0,done:!0}}};return i}values(){let e=this._state,n=this._head,i={[Symbol.iterator]:()=>i,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(n){let r={value:n.value,done:!1};return n=n.next,r}else return{value:void 0,done:!0}}};return i}entries(){let e=this._state,n=this._head,i={[Symbol.iterator]:()=>i,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(n){let r={value:[n.key,n.value],done:!1};return n=n.next,r}else return{value:void 0,done:!0}}};return i}[(Nd=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let n=this._head,i=this.size;for(;n&&i>e;)this._map.delete(n.key),n=n.next,i--;this._head=n,this._size=i,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{let n=e.next,i=e.previous;if(!n||!i)throw new Error("Invalid list");n.previous=i,i.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!==ct.First&&n!==ct.Last)){if(n===ct.First){if(e===this._head)return;let i=e.next,r=e.previous;e===this._tail?(r.next=void 0,this._tail=r):(i.previous=r,r.next=i),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(n===ct.Last){if(e===this._tail)return;let i=e.next,r=e.previous;e===this._head?(i.previous=void 0,this._head=i):(i.previous=r,r.next=i),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){let e=[];return this.forEach((n,i)=>{e.push([i,n])}),e}fromJSON(e){this.clear();for(let[n,i]of e)this.set(n,i)}};on.LinkedMap=us;var Ka=class extends us{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 ratio(){return this._ratio}set ratio(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()}get(e,n=ct.AsNew){return super.get(e,n)}peek(e){return super.get(e,ct.None)}set(e,n){return super.set(e,n,ct.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}};on.LRUCache=Ka});var Od=X(ir=>{"use strict";Object.defineProperty(ir,"__esModule",{value:!0});ir.Disposable=void 0;var mf;(function(t){function e(n){return{dispose:n}}t.create=e})(mf=ir.Disposable||(ir.Disposable={}))});var Cn=X(Ya=>{"use strict";Object.defineProperty(Ya,"__esModule",{value:!0});var Ja;function Xa(){if(Ja===void 0)throw new Error("No runtime abstraction layer installed");return Ja}(function(t){function e(n){if(n===void 0)throw new Error("No runtime abstraction layer provided");Ja=n}t.install=e})(Xa||(Xa={}));Ya.default=Xa});var gi=X(Hn=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:!0});Hn.Emitter=Hn.Event=void 0;var ff=Cn(),gf;(function(t){let e={dispose(){}};t.None=function(){return e}})(gf=Hn.Event||(Hn.Event={}));var Qa=class{add(e,n=null,i){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(n),Array.isArray(i)&&i.push({dispose:()=>this.remove(e,n)})}remove(e,n=null){if(!this._callbacks)return;let i=!1;for(let r=0,s=this._callbacks.length;r<s;r++)if(this._callbacks[r]===e)if(this._contexts[r]===n){this._callbacks.splice(r,1),this._contexts.splice(r,1);return}else i=!0;if(i)throw new Error("When adding a listener with a context, you should remove it with the same context")}invoke(...e){if(!this._callbacks)return[];let n=[],i=this._callbacks.slice(0),r=this._contexts.slice(0);for(let s=0,o=i.length;s<o;s++)try{n.push(i[s].apply(r[s],e))}catch(a){(0,ff.default)().console.error(a)}return n}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},ps=class t{constructor(e){this._options=e}get event(){return this._event||(this._event=(e,n,i)=>{this._callbacks||(this._callbacks=new Qa),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(e,n);let r={dispose:()=>{this._callbacks&&(this._callbacks.remove(e,n),r.dispose=t._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(i)&&i.push(r),r}),this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}};Hn.Emitter=ps;ps._noop=function(){}});var fs=X(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Kn.CancellationTokenSource=Kn.CancellationToken=void 0;var bf=Cn(),yf=fi(),Za=gi(),el;(function(t){t.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Za.Event.None}),t.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Za.Event.None});function e(n){let i=n;return i&&(i===t.None||i===t.Cancelled||yf.boolean(i.isCancellationRequested)&&!!i.onCancellationRequested)}t.is=e})(el=Kn.CancellationToken||(Kn.CancellationToken={}));var wf=Object.freeze(function(t,e){let n=(0,bf.default)().timer.setTimeout(t.bind(e),0);return{dispose(){n.dispose()}}}),ms=class{constructor(){this._isCancelled=!1}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?wf:(this._emitter||(this._emitter=new Za.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},tl=class{get token(){return this._token||(this._token=new ms),this._token}cancel(){this._token?this._token.cancel():this._token=el.Cancelled}dispose(){this._token?this._token instanceof ms&&this._token.dispose():this._token=el.None}};Kn.CancellationTokenSource=tl});var Wd=X(bi=>{"use strict";Object.defineProperty(bi,"__esModule",{value:!0});bi.SharedArrayReceiverStrategy=bi.SharedArraySenderStrategy=void 0;var vf=fs(),rr;(function(t){t.Continue=0,t.Cancelled=1})(rr||(rr={}));var nl=class{constructor(){this.buffers=new Map}enableCancellation(e){if(e.id===null)return;let n=new SharedArrayBuffer(4),i=new Int32Array(n,0,1);i[0]=rr.Continue,this.buffers.set(e.id,n),e.$cancellationData=n}async sendCancellation(e,n){let i=this.buffers.get(n);if(i===void 0)return;let r=new Int32Array(i,0,1);Atomics.store(r,0,rr.Cancelled)}cleanup(e){this.buffers.delete(e)}dispose(){this.buffers.clear()}};bi.SharedArraySenderStrategy=nl;var il=class{constructor(e){this.data=new Int32Array(e,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===rr.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}},rl=class{constructor(e){this.token=new il(e)}cancel(){}dispose(){}},sl=class{constructor(){this.kind="request"}createCancellationTokenSource(e){let n=e.$cancellationData;return n===void 0?new vf.CancellationTokenSource:new rl(n)}};bi.SharedArrayReceiverStrategy=sl});var al=X(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});gs.Semaphore=void 0;var Sf=Cn(),ol=class{constructor(e=1){if(e<=0)throw new Error("Capacity must be greater than 0");this._capacity=e,this._active=0,this._waiting=[]}lock(e){return new Promise((n,i)=>{this._waiting.push({thunk:e,resolve:n,reject:i}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length===0||this._active===this._capacity||(0,Sf.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||this._active===this._capacity)return;let e=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("To many thunks active");try{let n=e.thunk();n instanceof Promise?n.then(i=>{this._active--,e.resolve(i),this.runNext()},i=>{this._active--,e.reject(i),this.runNext()}):(this._active--,e.resolve(n),this.runNext())}catch(n){this._active--,e.reject(n),this.runNext()}}};gs.Semaphore=ol});var Ld=X(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:!0});an.ReadableStreamMessageReader=an.AbstractMessageReader=an.MessageReader=void 0;var cl=Cn(),yi=fi(),ll=gi(),_f=al(),xf;(function(t){function e(n){let i=n;return i&&yi.func(i.listen)&&yi.func(i.dispose)&&yi.func(i.onError)&&yi.func(i.onClose)&&yi.func(i.onPartialMessage)}t.is=e})(xf=an.MessageReader||(an.MessageReader={}));var bs=class{constructor(){this.errorEmitter=new ll.Emitter,this.closeEmitter=new ll.Emitter,this.partialMessageEmitter=new ll.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e){this.errorEmitter.fire(this.asError(e))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(e){this.partialMessageEmitter.fire(e)}asError(e){return e instanceof Error?e:new Error(`Reader received error. Reason: ${yi.string(e.message)?e.message:"unknown"}`)}};an.AbstractMessageReader=bs;var dl;(function(t){function e(n){let i,r,s,o=new Map,a,l=new Map;if(n===void 0||typeof n=="string")i=n??"utf-8";else{if(i=n.charset??"utf-8",n.contentDecoder!==void 0&&(s=n.contentDecoder,o.set(s.name,s)),n.contentDecoders!==void 0)for(let c of n.contentDecoders)o.set(c.name,c);if(n.contentTypeDecoder!==void 0&&(a=n.contentTypeDecoder,l.set(a.name,a)),n.contentTypeDecoders!==void 0)for(let c of n.contentTypeDecoders)l.set(c.name,c)}return a===void 0&&(a=(0,cl.default)().applicationJson.decoder,l.set(a.name,a)),{charset:i,contentDecoder:s,contentDecoders:o,contentTypeDecoder:a,contentTypeDecoders:l}}t.fromOptions=e})(dl||(dl={}));var hl=class extends bs{constructor(e,n){super(),this.readable=e,this.options=dl.fromOptions(n),this.buffer=(0,cl.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new _f.Semaphore(1)}set partialMessageTimeout(e){this._partialMessageTimeout=e}get partialMessageTimeout(){return this._partialMessageTimeout}listen(e){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=e;let n=this.readable.onData(i=>{this.onData(i)});return this.readable.onError(i=>this.fireError(i)),this.readable.onClose(()=>this.fireClose()),n}onData(e){for(this.buffer.append(e);;){if(this.nextMessageLength===-1){let i=this.buffer.tryReadHeaders(!0);if(!i)return;let r=i.get("content-length");if(!r){this.fireError(new Error("Header must provide a Content-Length property."));return}let s=parseInt(r);if(isNaN(s)){this.fireError(new Error("Content-Length value must be a number."));return}this.nextMessageLength=s}let n=this.buffer.tryReadBody(this.nextMessageLength);if(n===void 0){this.setPartialMessageTimer();return}this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock(async()=>{let i=this.options.contentDecoder!==void 0?await this.options.contentDecoder.decode(n):n,r=await this.options.contentTypeDecoder.decode(i,this.options);this.callback(r)}).catch(i=>{this.fireError(i)})}}clearPartialMessageTimer(){this.partialMessageTimer&&(this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),!(this._partialMessageTimeout<=0)&&(this.partialMessageTimer=(0,cl.default)().timer.setTimeout((e,n)=>{this.partialMessageTimer=void 0,e===this.messageToken&&(this.firePartialMessage({messageToken:e,waitingTime:n}),this.setPartialMessageTimer())},this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}};an.ReadableStreamMessageReader=hl});var Ud=X(ln=>{"use strict";Object.defineProperty(ln,"__esModule",{value:!0});ln.WriteableStreamMessageWriter=ln.AbstractMessageWriter=ln.MessageWriter=void 0;var qd=Cn(),sr=fi(),Cf=al(),jd=gi(),Ff="Content-Length: ",$d=`\r
|
3
|
+
`,kf;(function(t){function e(n){let i=n;return i&&sr.func(i.dispose)&&sr.func(i.onClose)&&sr.func(i.onError)&&sr.func(i.write)}t.is=e})(kf=ln.MessageWriter||(ln.MessageWriter={}));var ys=class{constructor(){this.errorEmitter=new jd.Emitter,this.closeEmitter=new jd.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e,n,i){this.errorEmitter.fire([this.asError(e),n,i])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}asError(e){return e instanceof Error?e:new Error(`Writer received error. Reason: ${sr.string(e.message)?e.message:"unknown"}`)}};ln.AbstractMessageWriter=ys;var ul;(function(t){function e(n){return n===void 0||typeof n=="string"?{charset:n??"utf-8",contentTypeEncoder:(0,qd.default)().applicationJson.encoder}:{charset:n.charset??"utf-8",contentEncoder:n.contentEncoder,contentTypeEncoder:n.contentTypeEncoder??(0,qd.default)().applicationJson.encoder}}t.fromOptions=e})(ul||(ul={}));var pl=class extends ys{constructor(e,n){super(),this.writable=e,this.options=ul.fromOptions(n),this.errorCount=0,this.writeSemaphore=new Cf.Semaphore(1),this.writable.onError(i=>this.fireError(i)),this.writable.onClose(()=>this.fireClose())}async write(e){return this.writeSemaphore.lock(async()=>this.options.contentTypeEncoder.encode(e,this.options).then(i=>this.options.contentEncoder!==void 0?this.options.contentEncoder.encode(i):i).then(i=>{let r=[];return r.push(Ff,i.byteLength.toString(),$d),r.push($d),this.doWrite(e,r,i)},i=>{throw this.fireError(i),i}))}async doWrite(e,n,i){try{return await this.writable.write(n.join(""),"ascii"),this.writable.write(i)}catch(r){return this.handleError(r,e),Promise.reject(r)}}handleError(e,n){this.errorCount++,this.fireError(e,n,this.errorCount)}end(){this.writable.end()}};ln.WriteableStreamMessageWriter=pl});var Vd=X(ws=>{"use strict";Object.defineProperty(ws,"__esModule",{value:!0});ws.AbstractMessageBuffer=void 0;var Af=13,Ef=10,Df=`\r
|
4
|
+
`,ml=class{constructor(e="utf-8"){this._encoding=e,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(e){let n=typeof e=="string"?this.fromString(e,this._encoding):e;this._chunks.push(n),this._totalLength+=n.byteLength}tryReadHeaders(e=!1){if(this._chunks.length===0)return;let n=0,i=0,r=0,s=0;e:for(;i<this._chunks.length;){let c=this._chunks[i];for(r=0;r<c.length;){switch(c[r]){case Af:switch(n){case 0:n=1;break;case 2:n=3;break;default:n=0}break;case Ef:switch(n){case 1:n=2;break;case 3:n=4,r++;break e;default:n=0}break;default:n=0}r++}s+=c.byteLength,i++}if(n!==4)return;let o=this._read(s+r),a=new Map,l=this.toString(o,"ascii").split(Df);if(l.length<2)return a;for(let c=0;c<l.length-2;c++){let d=l[c],p=d.indexOf(":");if(p===-1)throw new Error("Message header must separate key and value using :");let b=d.substr(0,p),y=d.substr(p+1).trim();a.set(e?b.toLowerCase():b,y)}return a}tryReadBody(e){if(!(this._totalLength<e))return this._read(e)}get numberOfBytes(){return this._totalLength}_read(e){if(e===0)return this.emptyBuffer();if(e>this._totalLength)throw new Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===e){let s=this._chunks[0];return this._chunks.shift(),this._totalLength-=e,this.asNative(s)}if(this._chunks[0].byteLength>e){let s=this._chunks[0],o=this.asNative(s,e);return this._chunks[0]=s.slice(e),this._totalLength-=e,o}let n=this.allocNative(e),i=0,r=0;for(;e>0;){let s=this._chunks[r];if(s.byteLength>e){let o=s.slice(0,e);n.set(o,i),i+=e,this._chunks[r]=s.slice(e),this._totalLength-=e,e-=e}else n.set(s,i),i+=s.byteLength,this._chunks.shift(),this._totalLength-=s.byteLength,e-=s.byteLength}return n}};ws.AbstractMessageBuffer=ml});var Yd=X(te=>{"use strict";Object.defineProperty(te,"__esModule",{value:!0});te.createMessageConnection=te.ConnectionOptions=te.MessageStrategy=te.CancellationStrategy=te.CancellationSenderStrategy=te.CancellationReceiverStrategy=te.RequestCancellationReceiverStrategy=te.IdCancellationReceiverStrategy=te.ConnectionStrategy=te.ConnectionError=te.ConnectionErrors=te.LogTraceNotification=te.SetTraceNotification=te.TraceFormat=te.TraceValues=te.Trace=te.NullLogger=te.ProgressType=te.ProgressToken=void 0;var Bd=Cn(),We=fi(),ae=Ha(),Hd=Ga(),or=gi(),fl=fs(),lr;(function(t){t.type=new ae.NotificationType("$/cancelRequest")})(lr||(lr={}));var Kd;(function(t){function e(n){return typeof n=="string"||typeof n=="number"}t.is=e})(Kd=te.ProgressToken||(te.ProgressToken={}));var ar;(function(t){t.type=new ae.NotificationType("$/progress")})(ar||(ar={}));var gl=class{constructor(){}};te.ProgressType=gl;var bl;(function(t){function e(n){return We.func(n)}t.is=e})(bl||(bl={}));te.NullLogger=Object.freeze({error:()=>{},warn:()=>{},info:()=>{},log:()=>{}});var ke;(function(t){t[t.Off=0]="Off",t[t.Messages=1]="Messages",t[t.Compact=2]="Compact",t[t.Verbose=3]="Verbose"})(ke=te.Trace||(te.Trace={}));var Rf;(function(t){t.Off="off",t.Messages="messages",t.Compact="compact",t.Verbose="verbose"})(Rf=te.TraceValues||(te.TraceValues={}));(function(t){function e(i){if(!We.string(i))return t.Off;switch(i=i.toLowerCase(),i){case"off":return t.Off;case"messages":return t.Messages;case"compact":return t.Compact;case"verbose":return t.Verbose;default:return t.Off}}t.fromString=e;function n(i){switch(i){case t.Off:return"off";case t.Messages:return"messages";case t.Compact:return"compact";case t.Verbose:return"verbose";default:return"off"}}t.toString=n})(ke=te.Trace||(te.Trace={}));var Pt;(function(t){t.Text="text",t.JSON="json"})(Pt=te.TraceFormat||(te.TraceFormat={}));(function(t){function e(n){return We.string(n)?(n=n.toLowerCase(),n==="json"?t.JSON:t.Text):t.Text}t.fromString=e})(Pt=te.TraceFormat||(te.TraceFormat={}));var Gd;(function(t){t.type=new ae.NotificationType("$/setTrace")})(Gd=te.SetTraceNotification||(te.SetTraceNotification={}));var yl;(function(t){t.type=new ae.NotificationType("$/logTrace")})(yl=te.LogTraceNotification||(te.LogTraceNotification={}));var vs;(function(t){t[t.Closed=1]="Closed",t[t.Disposed=2]="Disposed",t[t.AlreadyListening=3]="AlreadyListening"})(vs=te.ConnectionErrors||(te.ConnectionErrors={}));var wi=class t extends Error{constructor(e,n){super(n),this.code=e,Object.setPrototypeOf(this,t.prototype)}};te.ConnectionError=wi;var Jd;(function(t){function e(n){let i=n;return i&&We.func(i.cancelUndispatched)}t.is=e})(Jd=te.ConnectionStrategy||(te.ConnectionStrategy={}));var Sl;(function(t){function e(n){let i=n;return i&&(i.kind===void 0||i.kind==="id")&&We.func(i.createCancellationTokenSource)&&(i.dispose===void 0||We.func(i.dispose))}t.is=e})(Sl=te.IdCancellationReceiverStrategy||(te.IdCancellationReceiverStrategy={}));var Xd;(function(t){function e(n){let i=n;return i&&i.kind==="request"&&We.func(i.createCancellationTokenSource)&&(i.dispose===void 0||We.func(i.dispose))}t.is=e})(Xd=te.RequestCancellationReceiverStrategy||(te.RequestCancellationReceiverStrategy={}));var wl;(function(t){t.Message=Object.freeze({createCancellationTokenSource(n){return new fl.CancellationTokenSource}});function e(n){return Sl.is(n)||Xd.is(n)}t.is=e})(wl=te.CancellationReceiverStrategy||(te.CancellationReceiverStrategy={}));var vl;(function(t){t.Message=Object.freeze({sendCancellation(n,i){return n.sendNotification(lr.type,{id:i})},cleanup(n){}});function e(n){let i=n;return i&&We.func(i.sendCancellation)&&We.func(i.cleanup)}t.is=e})(vl=te.CancellationSenderStrategy||(te.CancellationSenderStrategy={}));var _l;(function(t){t.Message=Object.freeze({receiver:wl.Message,sender:vl.Message});function e(n){let i=n;return i&&wl.is(i.receiver)&&vl.is(i.sender)}t.is=e})(_l=te.CancellationStrategy||(te.CancellationStrategy={}));var xl;(function(t){function e(n){let i=n;return i&&We.func(i.handleMessage)}t.is=e})(xl=te.MessageStrategy||(te.MessageStrategy={}));var Mf;(function(t){function e(n){let i=n;return i&&(_l.is(i.cancellationStrategy)||Jd.is(i.connectionStrategy)||xl.is(i.messageStrategy))}t.is=e})(Mf=te.ConnectionOptions||(te.ConnectionOptions={}));var zt;(function(t){t[t.New=1]="New",t[t.Listening=2]="Listening",t[t.Closed=3]="Closed",t[t.Disposed=4]="Disposed"})(zt||(zt={}));function Tf(t,e,n,i){let r=n!==void 0?n:te.NullLogger,s=0,o=0,a=0,l="2.0",c,d=new Map,p,b=new Map,y=new Map,M,P=new Hd.LinkedMap,Z=new Map,$=new Set,F=new Map,x=ke.Off,N=Pt.Text,R,L=zt.New,V=new or.Emitter,Y=new or.Emitter,le=new or.Emitter,W=new or.Emitter,k=new or.Emitter,S=i&&i.cancellationStrategy?i.cancellationStrategy:_l.Message;function I(w){if(w===null)throw new Error("Can't send requests with id null since the response can't be correlated.");return"req-"+w.toString()}function j(w){return w===null?"res-unknown-"+(++a).toString():"res-"+w.toString()}function J(){return"not-"+(++o).toString()}function K(w,z){ae.Message.isRequest(z)?w.set(I(z.id),z):ae.Message.isResponse(z)?w.set(j(z.id),z):w.set(J(),z)}function Q(w){}function ve(){return L===zt.Listening}function be(){return L===zt.Closed}function ue(){return L===zt.Disposed}function $e(){(L===zt.New||L===zt.Listening)&&(L=zt.Closed,Y.fire(void 0))}function Sn(w){V.fire([w,void 0,void 0])}function di(w){V.fire(w)}t.onClose($e),t.onError(Sn),e.onClose($e),e.onError(di);function hi(){M||P.size===0||(M=(0,Bd.default)().timer.setImmediate(()=>{M=void 0,ua()}))}function ui(w){ae.Message.isRequest(w)?ma(w):ae.Message.isNotification(w)?ga(w):ae.Message.isResponse(w)?fa(w):er(w)}function ua(){if(P.size===0)return;let w=P.shift();try{let z=i?.messageStrategy;xl.is(z)?z.handleMessage(w,ui):ui(w)}finally{hi()}}let pa=w=>{try{if(ae.Message.isNotification(w)&&w.method===lr.type.method){let z=w.params.id,H=I(z),ee=P.get(H);if(ae.Message.isRequest(ee)){let Fe=i?.connectionStrategy,Pe=Fe&&Fe.cancelUndispatched?Fe.cancelUndispatched(ee,Q):void 0;if(Pe&&(Pe.error!==void 0||Pe.result!==void 0)){P.delete(H),F.delete(z),Pe.id=ee.id,pi(Pe,w.method,Date.now()),e.write(Pe).catch(()=>r.error("Sending response for canceled message failed."));return}}let Ae=F.get(z);if(Ae!==void 0){Ae.cancel(),tr(w);return}else $.add(z)}K(P,w)}finally{hi()}};function ma(w){if(ue())return;function z(pe,Ee,_e){let Ue={jsonrpc:l,id:w.id};pe instanceof ae.ResponseError?Ue.error=pe.toJson():Ue.result=pe===void 0?null:pe,pi(Ue,Ee,_e),e.write(Ue).catch(()=>r.error("Sending response failed."))}function H(pe,Ee,_e){let Ue={jsonrpc:l,id:w.id,error:pe.toJson()};pi(Ue,Ee,_e),e.write(Ue).catch(()=>r.error("Sending response failed."))}function ee(pe,Ee,_e){pe===void 0&&(pe=null);let Ue={jsonrpc:l,id:w.id,result:pe};pi(Ue,Ee,_e),e.write(Ue).catch(()=>r.error("Sending response failed."))}wa(w);let Ae=d.get(w.method),Fe,Pe;Ae&&(Fe=Ae.type,Pe=Ae.handler);let Oe=Date.now();if(Pe||c){let pe=w.id??String(Date.now()),Ee=Sl.is(S.receiver)?S.receiver.createCancellationTokenSource(pe):S.receiver.createCancellationTokenSource(w);w.id!==null&&$.has(w.id)&&Ee.cancel(),w.id!==null&&F.set(pe,Ee);try{let _e;if(Pe)if(w.params===void 0){if(Fe!==void 0&&Fe.numberOfParams!==0){H(new ae.ResponseError(ae.ErrorCodes.InvalidParams,`Request ${w.method} defines ${Fe.numberOfParams} params but received none.`),w.method,Oe);return}_e=Pe(Ee.token)}else if(Array.isArray(w.params)){if(Fe!==void 0&&Fe.parameterStructures===ae.ParameterStructures.byName){H(new ae.ResponseError(ae.ErrorCodes.InvalidParams,`Request ${w.method} defines parameters by name but received parameters by position`),w.method,Oe);return}_e=Pe(...w.params,Ee.token)}else{if(Fe!==void 0&&Fe.parameterStructures===ae.ParameterStructures.byPosition){H(new ae.ResponseError(ae.ErrorCodes.InvalidParams,`Request ${w.method} defines parameters by position but received parameters by name`),w.method,Oe);return}_e=Pe(w.params,Ee.token)}else c&&(_e=c(w.method,w.params,Ee.token));let Ue=_e;_e?Ue.then?Ue.then(Qe=>{F.delete(pe),z(Qe,w.method,Oe)},Qe=>{F.delete(pe),Qe instanceof ae.ResponseError?H(Qe,w.method,Oe):Qe&&We.string(Qe.message)?H(new ae.ResponseError(ae.ErrorCodes.InternalError,`Request ${w.method} failed with message: ${Qe.message}`),w.method,Oe):H(new ae.ResponseError(ae.ErrorCodes.InternalError,`Request ${w.method} failed unexpectedly without providing any details.`),w.method,Oe)}):(F.delete(pe),z(_e,w.method,Oe)):(F.delete(pe),ee(_e,w.method,Oe))}catch(_e){F.delete(pe),_e instanceof ae.ResponseError?z(_e,w.method,Oe):_e&&We.string(_e.message)?H(new ae.ResponseError(ae.ErrorCodes.InternalError,`Request ${w.method} failed with message: ${_e.message}`),w.method,Oe):H(new ae.ResponseError(ae.ErrorCodes.InternalError,`Request ${w.method} failed unexpectedly without providing any details.`),w.method,Oe)}}else H(new ae.ResponseError(ae.ErrorCodes.MethodNotFound,`Unhandled method ${w.method}`),w.method,Oe)}function fa(w){if(!ue())if(w.id===null)w.error?r.error(`Received response message without id: Error is:
|
5
|
+
${JSON.stringify(w.error,void 0,4)}`):r.error("Received response message without id. No further error information provided.");else{let z=w.id,H=Z.get(z);if(va(w,H),H!==void 0){Z.delete(z);try{if(w.error){let ee=w.error;H.reject(new ae.ResponseError(ee.code,ee.message,ee.data))}else if(w.result!==void 0)H.resolve(w.result);else throw new Error("Should never happen.")}catch(ee){ee.message?r.error(`Response handler '${H.method}' failed with message: ${ee.message}`):r.error(`Response handler '${H.method}' failed unexpectedly.`)}}}}function ga(w){if(ue())return;let z,H;if(w.method===lr.type.method){let ee=w.params.id;$.delete(ee),tr(w);return}else{let ee=b.get(w.method);ee&&(H=ee.handler,z=ee.type)}if(H||p)try{if(tr(w),H)if(w.params===void 0)z!==void 0&&z.numberOfParams!==0&&z.parameterStructures!==ae.ParameterStructures.byName&&r.error(`Notification ${w.method} defines ${z.numberOfParams} params but received none.`),H();else if(Array.isArray(w.params)){let ee=w.params;w.method===ar.type.method&&ee.length===2&&Kd.is(ee[0])?H({token:ee[0],value:ee[1]}):(z!==void 0&&(z.parameterStructures===ae.ParameterStructures.byName&&r.error(`Notification ${w.method} defines parameters by name but received parameters by position`),z.numberOfParams!==w.params.length&&r.error(`Notification ${w.method} defines ${z.numberOfParams} params but received ${ee.length} arguments`)),H(...ee))}else z!==void 0&&z.parameterStructures===ae.ParameterStructures.byPosition&&r.error(`Notification ${w.method} defines parameters by position but received parameters by name`),H(w.params);else p&&p(w.method,w.params)}catch(ee){ee.message?r.error(`Notification handler '${w.method}' failed with message: ${ee.message}`):r.error(`Notification handler '${w.method}' failed unexpectedly.`)}else le.fire(w)}function er(w){if(!w){r.error("Received empty message.");return}r.error(`Received message which is neither a response nor a notification message:
|
6
|
+
${JSON.stringify(w,null,4)}`);let z=w;if(We.string(z.id)||We.number(z.id)){let H=z.id,ee=Z.get(H);ee&&ee.reject(new Error("The received response has neither a result nor an error property."))}}function Kt(w){if(w!=null)switch(x){case ke.Verbose:return JSON.stringify(w,null,4);case ke.Compact:return JSON.stringify(w);default:return}}function ba(w){if(!(x===ke.Off||!R))if(N===Pt.Text){let z;(x===ke.Verbose||x===ke.Compact)&&w.params&&(z=`Params: ${Kt(w.params)}
|
7
7
|
|
8
|
-
`),
|
8
|
+
`),R.log(`Sending request '${w.method} - (${w.id})'.`,z)}else _n("send-request",w)}function ya(w){if(!(x===ke.Off||!R))if(N===Pt.Text){let z;(x===ke.Verbose||x===ke.Compact)&&(w.params?z=`Params: ${Kt(w.params)}
|
9
9
|
|
10
10
|
`:z=`No parameters provided.
|
11
11
|
|
12
|
-
`),
|
12
|
+
`),R.log(`Sending notification '${w.method}'.`,z)}else _n("send-notification",w)}function pi(w,z,H){if(!(x===ke.Off||!R))if(N===Pt.Text){let ee;(x===ke.Verbose||x===ke.Compact)&&(w.error&&w.error.data?ee=`Error data: ${Kt(w.error.data)}
|
13
13
|
|
14
|
-
`:w.result?
|
14
|
+
`:w.result?ee=`Result: ${Kt(w.result)}
|
15
15
|
|
16
|
-
`:w.error===void 0&&(
|
16
|
+
`:w.error===void 0&&(ee=`No result returned.
|
17
17
|
|
18
|
-
`)),
|
18
|
+
`)),R.log(`Sending response '${z} - (${w.id})'. Processing request took ${Date.now()-H}ms`,ee)}else _n("send-response",w)}function wa(w){if(!(x===ke.Off||!R))if(N===Pt.Text){let z;(x===ke.Verbose||x===ke.Compact)&&w.params&&(z=`Params: ${Kt(w.params)}
|
19
19
|
|
20
|
-
`),
|
20
|
+
`),R.log(`Received request '${w.method} - (${w.id})'.`,z)}else _n("receive-request",w)}function tr(w){if(!(x===ke.Off||!R||w.method===yl.type.method))if(N===Pt.Text){let z;(x===ke.Verbose||x===ke.Compact)&&(w.params?z=`Params: ${Kt(w.params)}
|
21
21
|
|
22
22
|
`:z=`No parameters provided.
|
23
23
|
|
24
|
-
`),
|
24
|
+
`),R.log(`Received notification '${w.method}'.`,z)}else _n("receive-notification",w)}function va(w,z){if(!(x===ke.Off||!R))if(N===Pt.Text){let H;if((x===ke.Verbose||x===ke.Compact)&&(w.error&&w.error.data?H=`Error data: ${Kt(w.error.data)}
|
25
25
|
|
26
|
-
`:w.result?
|
26
|
+
`:w.result?H=`Result: ${Kt(w.result)}
|
27
27
|
|
28
|
-
`:w.error===void 0&&(
|
28
|
+
`:w.error===void 0&&(H=`No result returned.
|
29
29
|
|
30
|
-
`)),z){let Z=w.error?` Request failed: ${w.error.message} (${w.error.code}).`:"";O.log(`Received response '${z.method} - (${w.id})' in ${Date.now()-z.timerStart}ms.${Z}`,B)}else O.log(`Received response ${w.id} without active response promise.`,B)}else _n("receive-response",w)}function _n(w,z){if(!O||_===ke.Off)return;let B={isLSPMessage:!0,type:w,message:z,timestamp:Date.now()};O.log(B)}function Vn(){if(be())throw new wi(vs.Closed,"Connection is closed.");if(he())throw new wi(vs.Disposed,"Connection is disposed.")}function Sa(){if(ve())throw new wi(vs.AlreadyListening,"Connection is already listening")}function _a(){if(!ve())throw new Error("Call listen() first.")}function rn(w){return w===void 0?null:w}function as(w){if(w!==null)return w}function ls(w){return w!=null&&!Array.isArray(w)&&typeof w=="object"}function nr(w,z){switch(w){case ae.ParameterStructures.auto:return ls(z)?as(z):[rn(z)];case ae.ParameterStructures.byName:if(!ls(z))throw new Error("Received parameters by name but param is not an object literal.");return as(z);case ae.ParameterStructures.byPosition:return[rn(z)];default:throw new Error(`Unknown parameter structure ${w.toString()}`)}}function cs(w,z){let B,Z=w.numberOfParams;switch(Z){case 0:B=void 0;break;case 1:B=nr(w.parameterStructures,z[0]);break;default:B=[];for(let Ae=0;Ae<z.length&&Ae<Z;Ae++)B.push(rn(z[Ae]));if(z.length<Z)for(let Ae=z.length;Ae<Z;Ae++)B.push(null);break}return B}let xn={sendNotification:(w,...z)=>{Vn();let B,Z;if(We.string(w)){B=w;let Fe=z[0],Pe=0,Oe=ae.ParameterStructures.auto;ae.ParameterStructures.is(Fe)&&(Pe=1,Oe=Fe);let pe=z.length,Ee=pe-Pe;switch(Ee){case 0:Z=void 0;break;case 1:Z=nr(Oe,z[Pe]);break;default:if(Oe===ae.ParameterStructures.byName)throw new Error(`Received ${Ee} parameters for 'by Name' notification parameter structure.`);Z=z.slice(Pe,pe).map(_e=>rn(_e));break}}else{let Fe=z;B=w.method,Z=cs(w,Fe)}let Ae={jsonrpc:l,method:B,params:Z};return ya(Ae),e.write(Ae).catch(Fe=>{throw r.error("Sending notification failed."),Fe})},onNotification:(w,z)=>{Vn();let B;return We.func(w)?p=w:z&&(We.string(w)?(B=w,b.set(w,{type:void 0,handler:z})):(B=w.method,b.set(w.method,{type:w,handler:z}))),{dispose:()=>{B!==void 0?b.delete(B):p=void 0}}},onProgress:(w,z,B)=>{if(y.has(z))throw new Error(`Progress handler for token ${z} already registered`);return y.set(z,B),{dispose:()=>{y.delete(z)}}},sendProgress:(w,z,B)=>xn.sendNotification(ar.type,{token:z,value:B}),onUnhandledProgress:L.event,sendRequest:(w,...z)=>{Vn(),_a();let B,Z,Ae;if(We.string(w)){B=w;let pe=z[0],Ee=z[z.length-1],_e=0,Ue=ae.ParameterStructures.auto;ae.ParameterStructures.is(pe)&&(_e=1,Ue=pe);let Qe=z.length;fl.CancellationToken.is(Ee)&&(Qe=Qe-1,Ae=Ee);let _t=Qe-_e;switch(_t){case 0:Z=void 0;break;case 1:Z=nr(Ue,z[_e]);break;default:if(Ue===ae.ParameterStructures.byName)throw new Error(`Received ${_t} parameters for 'by Name' request parameter structure.`);Z=z.slice(_e,Qe).map(E=>rn(E));break}}else{let pe=z;B=w.method,Z=cs(w,pe);let Ee=w.numberOfParams;Ae=fl.CancellationToken.is(pe[Ee])?pe[Ee]:void 0}let Fe=s++,Pe;Ae&&(Pe=Ae.onCancellationRequested(()=>{let pe=x.sender.sendCancellation(xn,Fe);return pe===void 0?(r.log(`Received no promise from cancellation strategy when cancelling id ${Fe}`),Promise.resolve()):pe.catch(()=>{r.log(`Sending cancellation messages for id ${Fe} failed`)})}));let Oe={jsonrpc:l,id:Fe,method:B,params:Z};return ba(Oe),typeof x.sender.enableCancellation=="function"&&x.sender.enableCancellation(Oe),new Promise(async(pe,Ee)=>{let _e=_t=>{pe(_t),x.sender.cleanup(Fe),Pe?.dispose()},Ue=_t=>{Ee(_t),x.sender.cleanup(Fe),Pe?.dispose()},Qe={method:B,timerStart:Date.now(),resolve:_e,reject:Ue};try{await e.write(Oe),Y.set(Fe,Qe)}catch(_t){throw r.error("Sending request failed."),Qe.reject(new ae.ResponseError(ae.ErrorCodes.MessageWriteError,_t.message?_t.message:"Unknown reason")),_t}})},onRequest:(w,z)=>{Vn();let B=null;return bl.is(w)?(B=void 0,c=w):We.string(w)?(B=null,z!==void 0&&(B=w,d.set(w,{handler:z,type:void 0}))):z!==void 0&&(B=w.method,d.set(w.method,{type:w,handler:z})),{dispose:()=>{B!==null&&(B!==void 0?d.delete(B):c=void 0)}}},hasPendingResponse:()=>Y.size>0,trace:async(w,z,B)=>{let Z=!1,Ae=Pt.Text;B!==void 0&&(We.boolean(B)?Z=B:(Z=B.sendNotification||!1,Ae=B.traceFormat||Pt.Text)),_=w,F=Ae,_===ke.Off?O=void 0:O=z,Z&&!be()&&!he()&&await xn.sendNotification(Gd.type,{value:ke.toString(w)})},onError:Q.event,onClose:oe.event,onUnhandledNotification:ue.event,onDispose:A.event,end:()=>{e.end()},dispose:()=>{if(he())return;j=zt.Disposed,A.fire(void 0);let w=new ae.ResponseError(ae.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(let z of Y.values())z.reject(w);Y=new Map,k=new Map,$=new Set,P=new Hd.LinkedMap,We.func(e.dispose)&&e.dispose(),We.func(t.dispose)&&t.dispose()},listen:()=>{Vn(),Sa(),j=zt.Listening,t.listen(pa)},inspect:()=>{(0,Bd.default)().console.log("inspect")}};return xn.onNotification(yl.type,w=>{if(_===ke.Off||!O)return;let z=_===ke.Verbose||_===ke.Compact;O.log(w.message,z?w.verbose:void 0)}),xn.onNotification(ar.type,w=>{let z=y.get(w.token);z?z(w.value):L.fire(w)}),xn}ee.createMessageConnection=Tf});var Ss=J(T=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0});T.ProgressType=T.ProgressToken=T.createMessageConnection=T.NullLogger=T.ConnectionOptions=T.ConnectionStrategy=T.AbstractMessageBuffer=T.WriteableStreamMessageWriter=T.AbstractMessageWriter=T.MessageWriter=T.ReadableStreamMessageReader=T.AbstractMessageReader=T.MessageReader=T.SharedArrayReceiverStrategy=T.SharedArraySenderStrategy=T.CancellationToken=T.CancellationTokenSource=T.Emitter=T.Event=T.Disposable=T.LRUCache=T.Touch=T.LinkedMap=T.ParameterStructures=T.NotificationType9=T.NotificationType8=T.NotificationType7=T.NotificationType6=T.NotificationType5=T.NotificationType4=T.NotificationType3=T.NotificationType2=T.NotificationType1=T.NotificationType0=T.NotificationType=T.ErrorCodes=T.ResponseError=T.RequestType9=T.RequestType8=T.RequestType7=T.RequestType6=T.RequestType5=T.RequestType4=T.RequestType3=T.RequestType2=T.RequestType1=T.RequestType0=T.RequestType=T.Message=T.RAL=void 0;T.MessageStrategy=T.CancellationStrategy=T.CancellationSenderStrategy=T.CancellationReceiverStrategy=T.ConnectionError=T.ConnectionErrors=T.LogTraceNotification=T.SetTraceNotification=T.TraceFormat=T.TraceValues=T.Trace=void 0;var Re=Ha();Object.defineProperty(T,"Message",{enumerable:!0,get:function(){return Re.Message}});Object.defineProperty(T,"RequestType",{enumerable:!0,get:function(){return Re.RequestType}});Object.defineProperty(T,"RequestType0",{enumerable:!0,get:function(){return Re.RequestType0}});Object.defineProperty(T,"RequestType1",{enumerable:!0,get:function(){return Re.RequestType1}});Object.defineProperty(T,"RequestType2",{enumerable:!0,get:function(){return Re.RequestType2}});Object.defineProperty(T,"RequestType3",{enumerable:!0,get:function(){return Re.RequestType3}});Object.defineProperty(T,"RequestType4",{enumerable:!0,get:function(){return Re.RequestType4}});Object.defineProperty(T,"RequestType5",{enumerable:!0,get:function(){return Re.RequestType5}});Object.defineProperty(T,"RequestType6",{enumerable:!0,get:function(){return Re.RequestType6}});Object.defineProperty(T,"RequestType7",{enumerable:!0,get:function(){return Re.RequestType7}});Object.defineProperty(T,"RequestType8",{enumerable:!0,get:function(){return Re.RequestType8}});Object.defineProperty(T,"RequestType9",{enumerable:!0,get:function(){return Re.RequestType9}});Object.defineProperty(T,"ResponseError",{enumerable:!0,get:function(){return Re.ResponseError}});Object.defineProperty(T,"ErrorCodes",{enumerable:!0,get:function(){return Re.ErrorCodes}});Object.defineProperty(T,"NotificationType",{enumerable:!0,get:function(){return Re.NotificationType}});Object.defineProperty(T,"NotificationType0",{enumerable:!0,get:function(){return Re.NotificationType0}});Object.defineProperty(T,"NotificationType1",{enumerable:!0,get:function(){return Re.NotificationType1}});Object.defineProperty(T,"NotificationType2",{enumerable:!0,get:function(){return Re.NotificationType2}});Object.defineProperty(T,"NotificationType3",{enumerable:!0,get:function(){return Re.NotificationType3}});Object.defineProperty(T,"NotificationType4",{enumerable:!0,get:function(){return Re.NotificationType4}});Object.defineProperty(T,"NotificationType5",{enumerable:!0,get:function(){return Re.NotificationType5}});Object.defineProperty(T,"NotificationType6",{enumerable:!0,get:function(){return Re.NotificationType6}});Object.defineProperty(T,"NotificationType7",{enumerable:!0,get:function(){return Re.NotificationType7}});Object.defineProperty(T,"NotificationType8",{enumerable:!0,get:function(){return Re.NotificationType8}});Object.defineProperty(T,"NotificationType9",{enumerable:!0,get:function(){return Re.NotificationType9}});Object.defineProperty(T,"ParameterStructures",{enumerable:!0,get:function(){return Re.ParameterStructures}});var Cl=Ga();Object.defineProperty(T,"LinkedMap",{enumerable:!0,get:function(){return Cl.LinkedMap}});Object.defineProperty(T,"LRUCache",{enumerable:!0,get:function(){return Cl.LRUCache}});Object.defineProperty(T,"Touch",{enumerable:!0,get:function(){return Cl.Touch}});var If=Od();Object.defineProperty(T,"Disposable",{enumerable:!0,get:function(){return If.Disposable}});var Qd=gi();Object.defineProperty(T,"Event",{enumerable:!0,get:function(){return Qd.Event}});Object.defineProperty(T,"Emitter",{enumerable:!0,get:function(){return Qd.Emitter}});var Zd=fs();Object.defineProperty(T,"CancellationTokenSource",{enumerable:!0,get:function(){return Zd.CancellationTokenSource}});Object.defineProperty(T,"CancellationToken",{enumerable:!0,get:function(){return Zd.CancellationToken}});var eh=Wd();Object.defineProperty(T,"SharedArraySenderStrategy",{enumerable:!0,get:function(){return eh.SharedArraySenderStrategy}});Object.defineProperty(T,"SharedArrayReceiverStrategy",{enumerable:!0,get:function(){return eh.SharedArrayReceiverStrategy}});var Fl=Ld();Object.defineProperty(T,"MessageReader",{enumerable:!0,get:function(){return Fl.MessageReader}});Object.defineProperty(T,"AbstractMessageReader",{enumerable:!0,get:function(){return Fl.AbstractMessageReader}});Object.defineProperty(T,"ReadableStreamMessageReader",{enumerable:!0,get:function(){return Fl.ReadableStreamMessageReader}});var kl=Ud();Object.defineProperty(T,"MessageWriter",{enumerable:!0,get:function(){return kl.MessageWriter}});Object.defineProperty(T,"AbstractMessageWriter",{enumerable:!0,get:function(){return kl.AbstractMessageWriter}});Object.defineProperty(T,"WriteableStreamMessageWriter",{enumerable:!0,get:function(){return kl.WriteableStreamMessageWriter}});var Pf=Vd();Object.defineProperty(T,"AbstractMessageBuffer",{enumerable:!0,get:function(){return Pf.AbstractMessageBuffer}});var Ze=Yd();Object.defineProperty(T,"ConnectionStrategy",{enumerable:!0,get:function(){return Ze.ConnectionStrategy}});Object.defineProperty(T,"ConnectionOptions",{enumerable:!0,get:function(){return Ze.ConnectionOptions}});Object.defineProperty(T,"NullLogger",{enumerable:!0,get:function(){return Ze.NullLogger}});Object.defineProperty(T,"createMessageConnection",{enumerable:!0,get:function(){return Ze.createMessageConnection}});Object.defineProperty(T,"ProgressToken",{enumerable:!0,get:function(){return Ze.ProgressToken}});Object.defineProperty(T,"ProgressType",{enumerable:!0,get:function(){return Ze.ProgressType}});Object.defineProperty(T,"Trace",{enumerable:!0,get:function(){return Ze.Trace}});Object.defineProperty(T,"TraceValues",{enumerable:!0,get:function(){return Ze.TraceValues}});Object.defineProperty(T,"TraceFormat",{enumerable:!0,get:function(){return Ze.TraceFormat}});Object.defineProperty(T,"SetTraceNotification",{enumerable:!0,get:function(){return Ze.SetTraceNotification}});Object.defineProperty(T,"LogTraceNotification",{enumerable:!0,get:function(){return Ze.LogTraceNotification}});Object.defineProperty(T,"ConnectionErrors",{enumerable:!0,get:function(){return Ze.ConnectionErrors}});Object.defineProperty(T,"ConnectionError",{enumerable:!0,get:function(){return Ze.ConnectionError}});Object.defineProperty(T,"CancellationReceiverStrategy",{enumerable:!0,get:function(){return Ze.CancellationReceiverStrategy}});Object.defineProperty(T,"CancellationSenderStrategy",{enumerable:!0,get:function(){return Ze.CancellationSenderStrategy}});Object.defineProperty(T,"CancellationStrategy",{enumerable:!0,get:function(){return Ze.CancellationStrategy}});Object.defineProperty(T,"MessageStrategy",{enumerable:!0,get:function(){return Ze.MessageStrategy}});var zf=Cn();T.RAL=zf.default});var ih=J(Rl=>{"use strict";Object.defineProperty(Rl,"__esModule",{value:!0});var th=require("util"),cn=Ss(),_s=class t extends cn.AbstractMessageBuffer{constructor(e="utf-8"){super(e)}emptyBuffer(){return t.emptyBuffer}fromString(e,n){return Buffer.from(e,n)}toString(e,n){return e instanceof Buffer?e.toString(n):new th.TextDecoder(n).decode(e)}asNative(e,n){return n===void 0?e instanceof Buffer?e:Buffer.from(e):e instanceof Buffer?e.slice(0,n):Buffer.from(e,0,n)}allocNative(e){return Buffer.allocUnsafe(e)}};_s.emptyBuffer=Buffer.allocUnsafe(0);var Al=class{constructor(e){this.stream=e}onClose(e){return this.stream.on("close",e),cn.Disposable.create(()=>this.stream.off("close",e))}onError(e){return this.stream.on("error",e),cn.Disposable.create(()=>this.stream.off("error",e))}onEnd(e){return this.stream.on("end",e),cn.Disposable.create(()=>this.stream.off("end",e))}onData(e){return this.stream.on("data",e),cn.Disposable.create(()=>this.stream.off("data",e))}},El=class{constructor(e){this.stream=e}onClose(e){return this.stream.on("close",e),cn.Disposable.create(()=>this.stream.off("close",e))}onError(e){return this.stream.on("error",e),cn.Disposable.create(()=>this.stream.off("error",e))}onEnd(e){return this.stream.on("end",e),cn.Disposable.create(()=>this.stream.off("end",e))}write(e,n){return new Promise((i,r)=>{let s=o=>{o==null?i():r(o)};typeof e=="string"?this.stream.write(e,n,s):this.stream.write(e,s)})}end(){this.stream.end()}},nh=Object.freeze({messageBuffer:Object.freeze({create:t=>new _s(t)}),applicationJson:Object.freeze({encoder:Object.freeze({name:"application/json",encode:(t,e)=>{try{return Promise.resolve(Buffer.from(JSON.stringify(t,void 0,0),e.charset))}catch(n){return Promise.reject(n)}}}),decoder:Object.freeze({name:"application/json",decode:(t,e)=>{try{return t instanceof Buffer?Promise.resolve(JSON.parse(t.toString(e.charset))):Promise.resolve(JSON.parse(new th.TextDecoder(e.charset).decode(t)))}catch(n){return Promise.reject(n)}}})}),stream:Object.freeze({asReadableStream:t=>new Al(t),asWritableStream:t=>new El(t)}),console,timer:Object.freeze({setTimeout(t,e,...n){let i=setTimeout(t,e,...n);return{dispose:()=>clearTimeout(i)}},setImmediate(t,...e){let n=setImmediate(t,...e);return{dispose:()=>clearImmediate(n)}},setInterval(t,e,...n){let i=setInterval(t,e,...n);return{dispose:()=>clearInterval(i)}}})});function Dl(){return nh}(function(t){function e(){cn.RAL.install(nh)}t.install=e})(Dl||(Dl={}));Rl.default=Dl});var Xn=J(fe=>{"use strict";var Nf=fe&&fe.__createBinding||(Object.create?function(t,e,n,i){i===void 0&&(i=n);var r=Object.getOwnPropertyDescriptor(e,n);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,r)}:function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]}),Of=fe&&fe.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&Nf(e,t,n)};Object.defineProperty(fe,"__esModule",{value:!0});fe.createMessageConnection=fe.createServerSocketTransport=fe.createClientSocketTransport=fe.createServerPipeTransport=fe.createClientPipeTransport=fe.generateRandomPipeName=fe.StreamMessageWriter=fe.StreamMessageReader=fe.SocketMessageWriter=fe.SocketMessageReader=fe.PortMessageWriter=fe.PortMessageReader=fe.IPCMessageWriter=fe.IPCMessageReader=void 0;var vi=ih();vi.default.install();var rh=require("path"),Wf=require("os"),Lf=require("crypto"),Fs=require("net"),yt=Ss();Of(Ss(),fe);var Ml=class extends yt.AbstractMessageReader{constructor(e){super(),this.process=e;let n=this.process;n.on("error",i=>this.fireError(i)),n.on("close",()=>this.fireClose())}listen(e){return this.process.on("message",e),yt.Disposable.create(()=>this.process.off("message",e))}};fe.IPCMessageReader=Ml;var Tl=class extends yt.AbstractMessageWriter{constructor(e){super(),this.process=e,this.errorCount=0;let n=this.process;n.on("error",i=>this.fireError(i)),n.on("close",()=>this.fireClose)}write(e){try{return typeof this.process.send=="function"&&this.process.send(e,void 0,void 0,n=>{n?(this.errorCount++,this.handleError(n,e)):this.errorCount=0}),Promise.resolve()}catch(n){return this.handleError(n,e),Promise.reject(n)}}handleError(e,n){this.errorCount++,this.fireError(e,n,this.errorCount)}end(){}};fe.IPCMessageWriter=Tl;var Il=class extends yt.AbstractMessageReader{constructor(e){super(),this.onData=new yt.Emitter,e.on("close",()=>this.fireClose),e.on("error",n=>this.fireError(n)),e.on("message",n=>{this.onData.fire(n)})}listen(e){return this.onData.event(e)}};fe.PortMessageReader=Il;var Pl=class extends yt.AbstractMessageWriter{constructor(e){super(),this.port=e,this.errorCount=0,e.on("close",()=>this.fireClose()),e.on("error",n=>this.fireError(n))}write(e){try{return this.port.postMessage(e),Promise.resolve()}catch(n){return this.handleError(n,e),Promise.reject(n)}}handleError(e,n){this.errorCount++,this.fireError(e,n,this.errorCount)}end(){}};fe.PortMessageWriter=Pl;var Gn=class extends yt.ReadableStreamMessageReader{constructor(e,n="utf-8"){super((0,vi.default)().stream.asReadableStream(e),n)}};fe.SocketMessageReader=Gn;var Jn=class extends yt.WriteableStreamMessageWriter{constructor(e,n){super((0,vi.default)().stream.asWritableStream(e),n),this.socket=e}dispose(){super.dispose(),this.socket.destroy()}};fe.SocketMessageWriter=Jn;var xs=class extends yt.ReadableStreamMessageReader{constructor(e,n){super((0,vi.default)().stream.asReadableStream(e),n)}};fe.StreamMessageReader=xs;var Cs=class extends yt.WriteableStreamMessageWriter{constructor(e,n){super((0,vi.default)().stream.asWritableStream(e),n)}};fe.StreamMessageWriter=Cs;var sh=process.env.XDG_RUNTIME_DIR,qf=new Map([["linux",107],["darwin",103]]);function jf(){let t=(0,Lf.randomBytes)(21).toString("hex");if(process.platform==="win32")return`\\\\.\\pipe\\vscode-jsonrpc-${t}-sock`;let e;sh?e=rh.join(sh,`vscode-ipc-${t}.sock`):e=rh.join(Wf.tmpdir(),`vscode-${t}.sock`);let n=qf.get(process.platform);return n!==void 0&&e.length>n&&(0,vi.default)().console.warn(`WARNING: IPC handle "${e}" is longer than ${n} characters.`),e}fe.generateRandomPipeName=jf;function $f(t,e="utf-8"){let n,i=new Promise((r,s)=>{n=r});return new Promise((r,s)=>{let o=(0,Fs.createServer)(a=>{o.close(),n([new Gn(a,e),new Jn(a,e)])});o.on("error",s),o.listen(t,()=>{o.removeListener("error",s),r({onConnected:()=>i})})})}fe.createClientPipeTransport=$f;function Uf(t,e="utf-8"){let n=(0,Fs.createConnection)(t);return[new Gn(n,e),new Jn(n,e)]}fe.createServerPipeTransport=Uf;function Vf(t,e="utf-8"){let n,i=new Promise((r,s)=>{n=r});return new Promise((r,s)=>{let o=(0,Fs.createServer)(a=>{o.close(),n([new Gn(a,e),new Jn(a,e)])});o.on("error",s),o.listen(t,"127.0.0.1",()=>{o.removeListener("error",s),r({onConnected:()=>i})})})}fe.createClientSocketTransport=Vf;function Bf(t,e="utf-8"){let n=(0,Fs.createConnection)(t,"127.0.0.1");return[new Gn(n,e),new Jn(n,e)]}fe.createServerSocketTransport=Bf;function Hf(t){let e=t;return e.read!==void 0&&e.addListener!==void 0}function Kf(t){let e=t;return e.write!==void 0&&e.addListener!==void 0}function Gf(t,e,n,i){n||(n=yt.NullLogger);let r=Hf(t)?new xs(t):t,s=Kf(e)?new Cs(e):e;return yt.ConnectionStrategy.is(i)&&(i={connectionStrategy:i}),(0,yt.createMessageConnection)(r,s,n,i)}fe.createMessageConnection=Gf});var zl=J((M1,oh)=>{"use strict";oh.exports=Xn()});var As=J((ah,ks)=>{(function(t){if(typeof ks=="object"&&typeof ks.exports=="object"){var e=t(require,ah);e!==void 0&&(ks.exports=e)}else typeof define=="function"&&define.amd&&define(["require","exports"],t)})(function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TextDocument=e.EOL=e.WorkspaceFolder=e.InlayHint=e.InlayHintLabelPart=e.InlayHintKind=e.InlineValueContext=e.InlineValueEvaluatableExpression=e.InlineValueVariableLookup=e.InlineValueText=e.SemanticTokens=e.SemanticTokenModifiers=e.SemanticTokenTypes=e.SelectionRange=e.DocumentLink=e.FormattingOptions=e.CodeLens=e.CodeAction=e.CodeActionContext=e.CodeActionTriggerKind=e.CodeActionKind=e.DocumentSymbol=e.WorkspaceSymbol=e.SymbolInformation=e.SymbolTag=e.SymbolKind=e.DocumentHighlight=e.DocumentHighlightKind=e.SignatureInformation=e.ParameterInformation=e.Hover=e.MarkedString=e.CompletionList=e.CompletionItem=e.CompletionItemLabelDetails=e.InsertTextMode=e.InsertReplaceEdit=e.CompletionItemTag=e.InsertTextFormat=e.CompletionItemKind=e.MarkupContent=e.MarkupKind=e.TextDocumentItem=e.OptionalVersionedTextDocumentIdentifier=e.VersionedTextDocumentIdentifier=e.TextDocumentIdentifier=e.WorkspaceChange=e.WorkspaceEdit=e.DeleteFile=e.RenameFile=e.CreateFile=e.TextDocumentEdit=e.AnnotatedTextEdit=e.ChangeAnnotationIdentifier=e.ChangeAnnotation=e.TextEdit=e.Command=e.Diagnostic=e.CodeDescription=e.DiagnosticTag=e.DiagnosticSeverity=e.DiagnosticRelatedInformation=e.FoldingRange=e.FoldingRangeKind=e.ColorPresentation=e.ColorInformation=e.Color=e.LocationLink=e.Location=e.Range=e.Position=e.uinteger=e.integer=e.URI=e.DocumentUri=void 0;var n;(function(u){function S(C){return typeof C=="string"}u.is=S})(n=e.DocumentUri||(e.DocumentUri={}));var i;(function(u){function S(C){return typeof C=="string"}u.is=S})(i=e.URI||(e.URI={}));var r;(function(u){u.MIN_VALUE=-2147483648,u.MAX_VALUE=2147483647;function S(C){return typeof C=="number"&&u.MIN_VALUE<=C&&C<=u.MAX_VALUE}u.is=S})(r=e.integer||(e.integer={}));var s;(function(u){u.MIN_VALUE=0,u.MAX_VALUE=2147483647;function S(C){return typeof C=="number"&&u.MIN_VALUE<=C&&C<=u.MAX_VALUE}u.is=S})(s=e.uinteger||(e.uinteger={}));var o;(function(u){function S(f,h){return f===Number.MAX_VALUE&&(f=s.MAX_VALUE),h===Number.MAX_VALUE&&(h=s.MAX_VALUE),{line:f,character:h}}u.create=S;function C(f){var h=f;return E.objectLiteral(h)&&E.uinteger(h.line)&&E.uinteger(h.character)}u.is=C})(o=e.Position||(e.Position={}));var a;(function(u){function S(f,h,R,N){if(E.uinteger(f)&&E.uinteger(h)&&E.uinteger(R)&&E.uinteger(N))return{start:o.create(f,h),end:o.create(R,N)};if(o.is(f)&&o.is(h))return{start:f,end:h};throw new Error("Range#create called with invalid arguments[".concat(f,", ").concat(h,", ").concat(R,", ").concat(N,"]"))}u.create=S;function C(f){var h=f;return E.objectLiteral(h)&&o.is(h.start)&&o.is(h.end)}u.is=C})(a=e.Range||(e.Range={}));var l;(function(u){function S(f,h){return{uri:f,range:h}}u.create=S;function C(f){var h=f;return E.objectLiteral(h)&&a.is(h.range)&&(E.string(h.uri)||E.undefined(h.uri))}u.is=C})(l=e.Location||(e.Location={}));var c;(function(u){function S(f,h,R,N){return{targetUri:f,targetRange:h,targetSelectionRange:R,originSelectionRange:N}}u.create=S;function C(f){var h=f;return E.objectLiteral(h)&&a.is(h.targetRange)&&E.string(h.targetUri)&&a.is(h.targetSelectionRange)&&(a.is(h.originSelectionRange)||E.undefined(h.originSelectionRange))}u.is=C})(c=e.LocationLink||(e.LocationLink={}));var d;(function(u){function S(f,h,R,N){return{red:f,green:h,blue:R,alpha:N}}u.create=S;function C(f){var h=f;return E.objectLiteral(h)&&E.numberRange(h.red,0,1)&&E.numberRange(h.green,0,1)&&E.numberRange(h.blue,0,1)&&E.numberRange(h.alpha,0,1)}u.is=C})(d=e.Color||(e.Color={}));var p;(function(u){function S(f,h){return{range:f,color:h}}u.create=S;function C(f){var h=f;return E.objectLiteral(h)&&a.is(h.range)&&d.is(h.color)}u.is=C})(p=e.ColorInformation||(e.ColorInformation={}));var b;(function(u){function S(f,h,R){return{label:f,textEdit:h,additionalTextEdits:R}}u.create=S;function C(f){var h=f;return E.objectLiteral(h)&&E.string(h.label)&&(E.undefined(h.textEdit)||O.is(h))&&(E.undefined(h.additionalTextEdits)||E.typedArray(h.additionalTextEdits,O.is))}u.is=C})(b=e.ColorPresentation||(e.ColorPresentation={}));var y;(function(u){u.Comment="comment",u.Imports="imports",u.Region="region"})(y=e.FoldingRangeKind||(e.FoldingRangeKind={}));var M;(function(u){function S(f,h,R,N,de,je){var De={startLine:f,endLine:h};return E.defined(R)&&(De.startCharacter=R),E.defined(N)&&(De.endCharacter=N),E.defined(de)&&(De.kind=de),E.defined(je)&&(De.collapsedText=je),De}u.create=S;function C(f){var h=f;return E.objectLiteral(h)&&E.uinteger(h.startLine)&&E.uinteger(h.startLine)&&(E.undefined(h.startCharacter)||E.uinteger(h.startCharacter))&&(E.undefined(h.endCharacter)||E.uinteger(h.endCharacter))&&(E.undefined(h.kind)||E.string(h.kind))}u.is=C})(M=e.FoldingRange||(e.FoldingRange={}));var P;(function(u){function S(f,h){return{location:f,message:h}}u.create=S;function C(f){var h=f;return E.defined(h)&&l.is(h.location)&&E.string(h.message)}u.is=C})(P=e.DiagnosticRelatedInformation||(e.DiagnosticRelatedInformation={}));var Y;(function(u){u.Error=1,u.Warning=2,u.Information=3,u.Hint=4})(Y=e.DiagnosticSeverity||(e.DiagnosticSeverity={}));var $;(function(u){u.Unnecessary=1,u.Deprecated=2})($=e.DiagnosticTag||(e.DiagnosticTag={}));var k;(function(u){function S(C){var f=C;return E.objectLiteral(f)&&E.string(f.href)}u.is=S})(k=e.CodeDescription||(e.CodeDescription={}));var _;(function(u){function S(f,h,R,N,de,je){var De={range:f,message:h};return E.defined(R)&&(De.severity=R),E.defined(N)&&(De.code=N),E.defined(de)&&(De.source=de),E.defined(je)&&(De.relatedInformation=je),De}u.create=S;function C(f){var h,R=f;return E.defined(R)&&a.is(R.range)&&E.string(R.message)&&(E.number(R.severity)||E.undefined(R.severity))&&(E.integer(R.code)||E.string(R.code)||E.undefined(R.code))&&(E.undefined(R.codeDescription)||E.string((h=R.codeDescription)===null||h===void 0?void 0:h.href))&&(E.string(R.source)||E.undefined(R.source))&&(E.undefined(R.relatedInformation)||E.typedArray(R.relatedInformation,P.is))}u.is=C})(_=e.Diagnostic||(e.Diagnostic={}));var F;(function(u){function S(f,h){for(var R=[],N=2;N<arguments.length;N++)R[N-2]=arguments[N];var de={title:f,command:h};return E.defined(R)&&R.length>0&&(de.arguments=R),de}u.create=S;function C(f){var h=f;return E.defined(h)&&E.string(h.title)&&E.string(h.command)}u.is=C})(F=e.Command||(e.Command={}));var O;(function(u){function S(R,N){return{range:R,newText:N}}u.replace=S;function C(R,N){return{range:{start:R,end:R},newText:N}}u.insert=C;function f(R){return{range:R,newText:""}}u.del=f;function h(R){var N=R;return E.objectLiteral(N)&&E.string(N.newText)&&a.is(N.range)}u.is=h})(O=e.TextEdit||(e.TextEdit={}));var j;(function(u){function S(f,h,R){var N={label:f};return h!==void 0&&(N.needsConfirmation=h),R!==void 0&&(N.description=R),N}u.create=S;function C(f){var h=f;return E.objectLiteral(h)&&E.string(h.label)&&(E.boolean(h.needsConfirmation)||h.needsConfirmation===void 0)&&(E.string(h.description)||h.description===void 0)}u.is=C})(j=e.ChangeAnnotation||(e.ChangeAnnotation={}));var Q;(function(u){function S(C){var f=C;return E.string(f)}u.is=S})(Q=e.ChangeAnnotationIdentifier||(e.ChangeAnnotationIdentifier={}));var oe;(function(u){function S(R,N,de){return{range:R,newText:N,annotationId:de}}u.replace=S;function C(R,N,de){return{range:{start:R,end:R},newText:N,annotationId:de}}u.insert=C;function f(R,N){return{range:R,newText:"",annotationId:N}}u.del=f;function h(R){var N=R;return O.is(N)&&(j.is(N.annotationId)||Q.is(N.annotationId))}u.is=h})(oe=e.AnnotatedTextEdit||(e.AnnotatedTextEdit={}));var ue;(function(u){function S(f,h){return{textDocument:f,edits:h}}u.create=S;function C(f){var h=f;return E.defined(h)&&be.is(h.textDocument)&&Array.isArray(h.edits)}u.is=C})(ue=e.TextDocumentEdit||(e.TextDocumentEdit={}));var L;(function(u){function S(f,h,R){var N={kind:"create",uri:f};return h!==void 0&&(h.overwrite!==void 0||h.ignoreIfExists!==void 0)&&(N.options=h),R!==void 0&&(N.annotationId=R),N}u.create=S;function C(f){var h=f;return h&&h.kind==="create"&&E.string(h.uri)&&(h.options===void 0||(h.options.overwrite===void 0||E.boolean(h.options.overwrite))&&(h.options.ignoreIfExists===void 0||E.boolean(h.options.ignoreIfExists)))&&(h.annotationId===void 0||Q.is(h.annotationId))}u.is=C})(L=e.CreateFile||(e.CreateFile={}));var A;(function(u){function S(f,h,R,N){var de={kind:"rename",oldUri:f,newUri:h};return R!==void 0&&(R.overwrite!==void 0||R.ignoreIfExists!==void 0)&&(de.options=R),N!==void 0&&(de.annotationId=N),de}u.create=S;function C(f){var h=f;return h&&h.kind==="rename"&&E.string(h.oldUri)&&E.string(h.newUri)&&(h.options===void 0||(h.options.overwrite===void 0||E.boolean(h.options.overwrite))&&(h.options.ignoreIfExists===void 0||E.boolean(h.options.ignoreIfExists)))&&(h.annotationId===void 0||Q.is(h.annotationId))}u.is=C})(A=e.RenameFile||(e.RenameFile={}));var x;(function(u){function S(f,h,R){var N={kind:"delete",uri:f};return h!==void 0&&(h.recursive!==void 0||h.ignoreIfNotExists!==void 0)&&(N.options=h),R!==void 0&&(N.annotationId=R),N}u.create=S;function C(f){var h=f;return h&&h.kind==="delete"&&E.string(h.uri)&&(h.options===void 0||(h.options.recursive===void 0||E.boolean(h.options.recursive))&&(h.options.ignoreIfNotExists===void 0||E.boolean(h.options.ignoreIfNotExists)))&&(h.annotationId===void 0||Q.is(h.annotationId))}u.is=C})(x=e.DeleteFile||(e.DeleteFile={}));var I;(function(u){function S(C){var f=C;return f&&(f.changes!==void 0||f.documentChanges!==void 0)&&(f.documentChanges===void 0||f.documentChanges.every(function(h){return E.string(h.kind)?L.is(h)||A.is(h)||x.is(h):ue.is(h)}))}u.is=S})(I=e.WorkspaceEdit||(e.WorkspaceEdit={}));var q=function(){function u(S,C){this.edits=S,this.changeAnnotations=C}return u.prototype.insert=function(S,C,f){var h,R;if(f===void 0?h=O.insert(S,C):Q.is(f)?(R=f,h=oe.insert(S,C,f)):(this.assertChangeAnnotations(this.changeAnnotations),R=this.changeAnnotations.manage(f),h=oe.insert(S,C,R)),this.edits.push(h),R!==void 0)return R},u.prototype.replace=function(S,C,f){var h,R;if(f===void 0?h=O.replace(S,C):Q.is(f)?(R=f,h=oe.replace(S,C,f)):(this.assertChangeAnnotations(this.changeAnnotations),R=this.changeAnnotations.manage(f),h=oe.replace(S,C,R)),this.edits.push(h),R!==void 0)return R},u.prototype.delete=function(S,C){var f,h;if(C===void 0?f=O.del(S):Q.is(C)?(h=C,f=oe.del(S,C)):(this.assertChangeAnnotations(this.changeAnnotations),h=this.changeAnnotations.manage(C),f=oe.del(S,h)),this.edits.push(f),h!==void 0)return h},u.prototype.add=function(S){this.edits.push(S)},u.prototype.all=function(){return this.edits},u.prototype.clear=function(){this.edits.splice(0,this.edits.length)},u.prototype.assertChangeAnnotations=function(S){if(S===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},u}(),G=function(){function u(S){this._annotations=S===void 0?Object.create(null):S,this._counter=0,this._size=0}return u.prototype.all=function(){return this._annotations},Object.defineProperty(u.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),u.prototype.manage=function(S,C){var f;if(Q.is(S)?f=S:(f=this.nextId(),C=S),this._annotations[f]!==void 0)throw new Error("Id ".concat(f," is already in use."));if(C===void 0)throw new Error("No annotation provided for id ".concat(f));return this._annotations[f]=C,this._size++,f},u.prototype.nextId=function(){return this._counter++,this._counter.toString()},u}(),H=function(){function u(S){var C=this;this._textEditChanges=Object.create(null),S!==void 0?(this._workspaceEdit=S,S.documentChanges?(this._changeAnnotations=new G(S.changeAnnotations),S.changeAnnotations=this._changeAnnotations.all(),S.documentChanges.forEach(function(f){if(ue.is(f)){var h=new q(f.edits,C._changeAnnotations);C._textEditChanges[f.textDocument.uri]=h}})):S.changes&&Object.keys(S.changes).forEach(function(f){var h=new q(S.changes[f]);C._textEditChanges[f]=h})):this._workspaceEdit={}}return Object.defineProperty(u.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}),u.prototype.getTextEditChange=function(S){if(be.is(S)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var C={uri:S.uri,version:S.version},f=this._textEditChanges[C.uri];if(!f){var h=[],R={textDocument:C,edits:h};this._workspaceEdit.documentChanges.push(R),f=new q(h,this._changeAnnotations),this._textEditChanges[C.uri]=f}return f}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var f=this._textEditChanges[S];if(!f){var h=[];this._workspaceEdit.changes[S]=h,f=new q(h),this._textEditChanges[S]=f}return f}},u.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new G,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},u.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},u.prototype.createFile=function(S,C,f){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var h;j.is(C)||Q.is(C)?h=C:f=C;var R,N;if(h===void 0?R=L.create(S,f):(N=Q.is(h)?h:this._changeAnnotations.manage(h),R=L.create(S,f,N)),this._workspaceEdit.documentChanges.push(R),N!==void 0)return N},u.prototype.renameFile=function(S,C,f,h){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var R;j.is(f)||Q.is(f)?R=f:h=f;var N,de;if(R===void 0?N=A.create(S,C,h):(de=Q.is(R)?R:this._changeAnnotations.manage(R),N=A.create(S,C,h,de)),this._workspaceEdit.documentChanges.push(N),de!==void 0)return de},u.prototype.deleteFile=function(S,C,f){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var h;j.is(C)||Q.is(C)?h=C:f=C;var R,N;if(h===void 0?R=x.create(S,f):(N=Q.is(h)?h:this._changeAnnotations.manage(h),R=x.create(S,f,N)),this._workspaceEdit.documentChanges.push(R),N!==void 0)return N},u}();e.WorkspaceChange=H;var X;(function(u){function S(f){return{uri:f}}u.create=S;function C(f){var h=f;return E.defined(h)&&E.string(h.uri)}u.is=C})(X=e.TextDocumentIdentifier||(e.TextDocumentIdentifier={}));var ve;(function(u){function S(f,h){return{uri:f,version:h}}u.create=S;function C(f){var h=f;return E.defined(h)&&E.string(h.uri)&&E.integer(h.version)}u.is=C})(ve=e.VersionedTextDocumentIdentifier||(e.VersionedTextDocumentIdentifier={}));var be;(function(u){function S(f,h){return{uri:f,version:h}}u.create=S;function C(f){var h=f;return E.defined(h)&&E.string(h.uri)&&(h.version===null||E.integer(h.version))}u.is=C})(be=e.OptionalVersionedTextDocumentIdentifier||(e.OptionalVersionedTextDocumentIdentifier={}));var he;(function(u){function S(f,h,R,N){return{uri:f,languageId:h,version:R,text:N}}u.create=S;function C(f){var h=f;return E.defined(h)&&E.string(h.uri)&&E.string(h.languageId)&&E.integer(h.version)&&E.string(h.text)}u.is=C})(he=e.TextDocumentItem||(e.TextDocumentItem={}));var $e;(function(u){u.PlainText="plaintext",u.Markdown="markdown";function S(C){var f=C;return f===u.PlainText||f===u.Markdown}u.is=S})($e=e.MarkupKind||(e.MarkupKind={}));var Sn;(function(u){function S(C){var f=C;return E.objectLiteral(C)&&$e.is(f.kind)&&E.string(f.value)}u.is=S})(Sn=e.MarkupContent||(e.MarkupContent={}));var di;(function(u){u.Text=1,u.Method=2,u.Function=3,u.Constructor=4,u.Field=5,u.Variable=6,u.Class=7,u.Interface=8,u.Module=9,u.Property=10,u.Unit=11,u.Value=12,u.Enum=13,u.Keyword=14,u.Snippet=15,u.Color=16,u.File=17,u.Reference=18,u.Folder=19,u.EnumMember=20,u.Constant=21,u.Struct=22,u.Event=23,u.Operator=24,u.TypeParameter=25})(di=e.CompletionItemKind||(e.CompletionItemKind={}));var hi;(function(u){u.PlainText=1,u.Snippet=2})(hi=e.InsertTextFormat||(e.InsertTextFormat={}));var ui;(function(u){u.Deprecated=1})(ui=e.CompletionItemTag||(e.CompletionItemTag={}));var ua;(function(u){function S(f,h,R){return{newText:f,insert:h,replace:R}}u.create=S;function C(f){var h=f;return h&&E.string(h.newText)&&a.is(h.insert)&&a.is(h.replace)}u.is=C})(ua=e.InsertReplaceEdit||(e.InsertReplaceEdit={}));var pa;(function(u){u.asIs=1,u.adjustIndentation=2})(pa=e.InsertTextMode||(e.InsertTextMode={}));var ma;(function(u){function S(C){var f=C;return f&&(E.string(f.detail)||f.detail===void 0)&&(E.string(f.description)||f.description===void 0)}u.is=S})(ma=e.CompletionItemLabelDetails||(e.CompletionItemLabelDetails={}));var fa;(function(u){function S(C){return{label:C}}u.create=S})(fa=e.CompletionItem||(e.CompletionItem={}));var ga;(function(u){function S(C,f){return{items:C||[],isIncomplete:!!f}}u.create=S})(ga=e.CompletionList||(e.CompletionList={}));var er;(function(u){function S(f){return f.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}u.fromPlainText=S;function C(f){var h=f;return E.string(h)||E.objectLiteral(h)&&E.string(h.language)&&E.string(h.value)}u.is=C})(er=e.MarkedString||(e.MarkedString={}));var Kt;(function(u){function S(C){var f=C;return!!f&&E.objectLiteral(f)&&(Sn.is(f.contents)||er.is(f.contents)||E.typedArray(f.contents,er.is))&&(C.range===void 0||a.is(C.range))}u.is=S})(Kt=e.Hover||(e.Hover={}));var ba;(function(u){function S(C,f){return f?{label:C,documentation:f}:{label:C}}u.create=S})(ba=e.ParameterInformation||(e.ParameterInformation={}));var ya;(function(u){function S(C,f){for(var h=[],R=2;R<arguments.length;R++)h[R-2]=arguments[R];var N={label:C};return E.defined(f)&&(N.documentation=f),E.defined(h)?N.parameters=h:N.parameters=[],N}u.create=S})(ya=e.SignatureInformation||(e.SignatureInformation={}));var pi;(function(u){u.Text=1,u.Read=2,u.Write=3})(pi=e.DocumentHighlightKind||(e.DocumentHighlightKind={}));var wa;(function(u){function S(C,f){var h={range:C};return E.number(f)&&(h.kind=f),h}u.create=S})(wa=e.DocumentHighlight||(e.DocumentHighlight={}));var tr;(function(u){u.File=1,u.Module=2,u.Namespace=3,u.Package=4,u.Class=5,u.Method=6,u.Property=7,u.Field=8,u.Constructor=9,u.Enum=10,u.Interface=11,u.Function=12,u.Variable=13,u.Constant=14,u.String=15,u.Number=16,u.Boolean=17,u.Array=18,u.Object=19,u.Key=20,u.Null=21,u.EnumMember=22,u.Struct=23,u.Event=24,u.Operator=25,u.TypeParameter=26})(tr=e.SymbolKind||(e.SymbolKind={}));var va;(function(u){u.Deprecated=1})(va=e.SymbolTag||(e.SymbolTag={}));var _n;(function(u){function S(C,f,h,R,N){var de={name:C,kind:f,location:{uri:R,range:h}};return N&&(de.containerName=N),de}u.create=S})(_n=e.SymbolInformation||(e.SymbolInformation={}));var Vn;(function(u){function S(C,f,h,R){return R!==void 0?{name:C,kind:f,location:{uri:h,range:R}}:{name:C,kind:f,location:{uri:h}}}u.create=S})(Vn=e.WorkspaceSymbol||(e.WorkspaceSymbol={}));var Sa;(function(u){function S(f,h,R,N,de,je){var De={name:f,detail:h,kind:R,range:N,selectionRange:de};return je!==void 0&&(De.children=je),De}u.create=S;function C(f){var h=f;return h&&E.string(h.name)&&E.number(h.kind)&&a.is(h.range)&&a.is(h.selectionRange)&&(h.detail===void 0||E.string(h.detail))&&(h.deprecated===void 0||E.boolean(h.deprecated))&&(h.children===void 0||Array.isArray(h.children))&&(h.tags===void 0||Array.isArray(h.tags))}u.is=C})(Sa=e.DocumentSymbol||(e.DocumentSymbol={}));var _a;(function(u){u.Empty="",u.QuickFix="quickfix",u.Refactor="refactor",u.RefactorExtract="refactor.extract",u.RefactorInline="refactor.inline",u.RefactorRewrite="refactor.rewrite",u.Source="source",u.SourceOrganizeImports="source.organizeImports",u.SourceFixAll="source.fixAll"})(_a=e.CodeActionKind||(e.CodeActionKind={}));var rn;(function(u){u.Invoked=1,u.Automatic=2})(rn=e.CodeActionTriggerKind||(e.CodeActionTriggerKind={}));var as;(function(u){function S(f,h,R){var N={diagnostics:f};return h!=null&&(N.only=h),R!=null&&(N.triggerKind=R),N}u.create=S;function C(f){var h=f;return E.defined(h)&&E.typedArray(h.diagnostics,_.is)&&(h.only===void 0||E.typedArray(h.only,E.string))&&(h.triggerKind===void 0||h.triggerKind===rn.Invoked||h.triggerKind===rn.Automatic)}u.is=C})(as=e.CodeActionContext||(e.CodeActionContext={}));var ls;(function(u){function S(f,h,R){var N={title:f},de=!0;return typeof h=="string"?(de=!1,N.kind=h):F.is(h)?N.command=h:N.edit=h,de&&R!==void 0&&(N.kind=R),N}u.create=S;function C(f){var h=f;return h&&E.string(h.title)&&(h.diagnostics===void 0||E.typedArray(h.diagnostics,_.is))&&(h.kind===void 0||E.string(h.kind))&&(h.edit!==void 0||h.command!==void 0)&&(h.command===void 0||F.is(h.command))&&(h.isPreferred===void 0||E.boolean(h.isPreferred))&&(h.edit===void 0||I.is(h.edit))}u.is=C})(ls=e.CodeAction||(e.CodeAction={}));var nr;(function(u){function S(f,h){var R={range:f};return E.defined(h)&&(R.data=h),R}u.create=S;function C(f){var h=f;return E.defined(h)&&a.is(h.range)&&(E.undefined(h.command)||F.is(h.command))}u.is=C})(nr=e.CodeLens||(e.CodeLens={}));var cs;(function(u){function S(f,h){return{tabSize:f,insertSpaces:h}}u.create=S;function C(f){var h=f;return E.defined(h)&&E.uinteger(h.tabSize)&&E.boolean(h.insertSpaces)}u.is=C})(cs=e.FormattingOptions||(e.FormattingOptions={}));var xn;(function(u){function S(f,h,R){return{range:f,target:h,data:R}}u.create=S;function C(f){var h=f;return E.defined(h)&&a.is(h.range)&&(E.undefined(h.target)||E.string(h.target))}u.is=C})(xn=e.DocumentLink||(e.DocumentLink={}));var w;(function(u){function S(f,h){return{range:f,parent:h}}u.create=S;function C(f){var h=f;return E.objectLiteral(h)&&a.is(h.range)&&(h.parent===void 0||u.is(h.parent))}u.is=C})(w=e.SelectionRange||(e.SelectionRange={}));var z;(function(u){u.namespace="namespace",u.type="type",u.class="class",u.enum="enum",u.interface="interface",u.struct="struct",u.typeParameter="typeParameter",u.parameter="parameter",u.variable="variable",u.property="property",u.enumMember="enumMember",u.event="event",u.function="function",u.method="method",u.macro="macro",u.keyword="keyword",u.modifier="modifier",u.comment="comment",u.string="string",u.number="number",u.regexp="regexp",u.operator="operator",u.decorator="decorator"})(z=e.SemanticTokenTypes||(e.SemanticTokenTypes={}));var B;(function(u){u.declaration="declaration",u.definition="definition",u.readonly="readonly",u.static="static",u.deprecated="deprecated",u.abstract="abstract",u.async="async",u.modification="modification",u.documentation="documentation",u.defaultLibrary="defaultLibrary"})(B=e.SemanticTokenModifiers||(e.SemanticTokenModifiers={}));var Z;(function(u){function S(C){var f=C;return E.objectLiteral(f)&&(f.resultId===void 0||typeof f.resultId=="string")&&Array.isArray(f.data)&&(f.data.length===0||typeof f.data[0]=="number")}u.is=S})(Z=e.SemanticTokens||(e.SemanticTokens={}));var Ae;(function(u){function S(f,h){return{range:f,text:h}}u.create=S;function C(f){var h=f;return h!=null&&a.is(h.range)&&E.string(h.text)}u.is=C})(Ae=e.InlineValueText||(e.InlineValueText={}));var Fe;(function(u){function S(f,h,R){return{range:f,variableName:h,caseSensitiveLookup:R}}u.create=S;function C(f){var h=f;return h!=null&&a.is(h.range)&&E.boolean(h.caseSensitiveLookup)&&(E.string(h.variableName)||h.variableName===void 0)}u.is=C})(Fe=e.InlineValueVariableLookup||(e.InlineValueVariableLookup={}));var Pe;(function(u){function S(f,h){return{range:f,expression:h}}u.create=S;function C(f){var h=f;return h!=null&&a.is(h.range)&&(E.string(h.expression)||h.expression===void 0)}u.is=C})(Pe=e.InlineValueEvaluatableExpression||(e.InlineValueEvaluatableExpression={}));var Oe;(function(u){function S(f,h){return{frameId:f,stoppedLocation:h}}u.create=S;function C(f){var h=f;return E.defined(h)&&a.is(f.stoppedLocation)}u.is=C})(Oe=e.InlineValueContext||(e.InlineValueContext={}));var pe;(function(u){u.Type=1,u.Parameter=2;function S(C){return C===1||C===2}u.is=S})(pe=e.InlayHintKind||(e.InlayHintKind={}));var Ee;(function(u){function S(f){return{value:f}}u.create=S;function C(f){var h=f;return E.objectLiteral(h)&&(h.tooltip===void 0||E.string(h.tooltip)||Sn.is(h.tooltip))&&(h.location===void 0||l.is(h.location))&&(h.command===void 0||F.is(h.command))}u.is=C})(Ee=e.InlayHintLabelPart||(e.InlayHintLabelPart={}));var _e;(function(u){function S(f,h,R){var N={position:f,label:h};return R!==void 0&&(N.kind=R),N}u.create=S;function C(f){var h=f;return E.objectLiteral(h)&&o.is(h.position)&&(E.string(h.label)||E.typedArray(h.label,Ee.is))&&(h.kind===void 0||pe.is(h.kind))&&h.textEdits===void 0||E.typedArray(h.textEdits,O.is)&&(h.tooltip===void 0||E.string(h.tooltip)||Sn.is(h.tooltip))&&(h.paddingLeft===void 0||E.boolean(h.paddingLeft))&&(h.paddingRight===void 0||E.boolean(h.paddingRight))}u.is=C})(_e=e.InlayHint||(e.InlayHint={}));var Ue;(function(u){function S(C){var f=C;return E.objectLiteral(f)&&i.is(f.uri)&&E.string(f.name)}u.is=S})(Ue=e.WorkspaceFolder||(e.WorkspaceFolder={})),e.EOL=[`
|
30
|
+
`)),z){let ee=w.error?` Request failed: ${w.error.message} (${w.error.code}).`:"";R.log(`Received response '${z.method} - (${w.id})' in ${Date.now()-z.timerStart}ms.${ee}`,H)}else R.log(`Received response ${w.id} without active response promise.`,H)}else _n("receive-response",w)}function _n(w,z){if(!R||x===ke.Off)return;let H={isLSPMessage:!0,type:w,message:z,timestamp:Date.now()};R.log(H)}function Vn(){if(be())throw new wi(vs.Closed,"Connection is closed.");if(ue())throw new wi(vs.Disposed,"Connection is disposed.")}function Sa(){if(ve())throw new wi(vs.AlreadyListening,"Connection is already listening")}function _a(){if(!ve())throw new Error("Call listen() first.")}function rn(w){return w===void 0?null:w}function as(w){if(w!==null)return w}function ls(w){return w!=null&&!Array.isArray(w)&&typeof w=="object"}function nr(w,z){switch(w){case ae.ParameterStructures.auto:return ls(z)?as(z):[rn(z)];case ae.ParameterStructures.byName:if(!ls(z))throw new Error("Received parameters by name but param is not an object literal.");return as(z);case ae.ParameterStructures.byPosition:return[rn(z)];default:throw new Error(`Unknown parameter structure ${w.toString()}`)}}function cs(w,z){let H,ee=w.numberOfParams;switch(ee){case 0:H=void 0;break;case 1:H=nr(w.parameterStructures,z[0]);break;default:H=[];for(let Ae=0;Ae<z.length&&Ae<ee;Ae++)H.push(rn(z[Ae]));if(z.length<ee)for(let Ae=z.length;Ae<ee;Ae++)H.push(null);break}return H}let xn={sendNotification:(w,...z)=>{Vn();let H,ee;if(We.string(w)){H=w;let Fe=z[0],Pe=0,Oe=ae.ParameterStructures.auto;ae.ParameterStructures.is(Fe)&&(Pe=1,Oe=Fe);let pe=z.length,Ee=pe-Pe;switch(Ee){case 0:ee=void 0;break;case 1:ee=nr(Oe,z[Pe]);break;default:if(Oe===ae.ParameterStructures.byName)throw new Error(`Received ${Ee} parameters for 'by Name' notification parameter structure.`);ee=z.slice(Pe,pe).map(_e=>rn(_e));break}}else{let Fe=z;H=w.method,ee=cs(w,Fe)}let Ae={jsonrpc:l,method:H,params:ee};return ya(Ae),e.write(Ae).catch(Fe=>{throw r.error("Sending notification failed."),Fe})},onNotification:(w,z)=>{Vn();let H;return We.func(w)?p=w:z&&(We.string(w)?(H=w,b.set(w,{type:void 0,handler:z})):(H=w.method,b.set(w.method,{type:w,handler:z}))),{dispose:()=>{H!==void 0?b.delete(H):p=void 0}}},onProgress:(w,z,H)=>{if(y.has(z))throw new Error(`Progress handler for token ${z} already registered`);return y.set(z,H),{dispose:()=>{y.delete(z)}}},sendProgress:(w,z,H)=>xn.sendNotification(ar.type,{token:z,value:H}),onUnhandledProgress:W.event,sendRequest:(w,...z)=>{Vn(),_a();let H,ee,Ae;if(We.string(w)){H=w;let pe=z[0],Ee=z[z.length-1],_e=0,Ue=ae.ParameterStructures.auto;ae.ParameterStructures.is(pe)&&(_e=1,Ue=pe);let Qe=z.length;fl.CancellationToken.is(Ee)&&(Qe=Qe-1,Ae=Ee);let _t=Qe-_e;switch(_t){case 0:ee=void 0;break;case 1:ee=nr(Ue,z[_e]);break;default:if(Ue===ae.ParameterStructures.byName)throw new Error(`Received ${_t} parameters for 'by Name' request parameter structure.`);ee=z.slice(_e,Qe).map(A=>rn(A));break}}else{let pe=z;H=w.method,ee=cs(w,pe);let Ee=w.numberOfParams;Ae=fl.CancellationToken.is(pe[Ee])?pe[Ee]:void 0}let Fe=s++,Pe;Ae&&(Pe=Ae.onCancellationRequested(()=>{let pe=S.sender.sendCancellation(xn,Fe);return pe===void 0?(r.log(`Received no promise from cancellation strategy when cancelling id ${Fe}`),Promise.resolve()):pe.catch(()=>{r.log(`Sending cancellation messages for id ${Fe} failed`)})}));let Oe={jsonrpc:l,id:Fe,method:H,params:ee};return ba(Oe),typeof S.sender.enableCancellation=="function"&&S.sender.enableCancellation(Oe),new Promise(async(pe,Ee)=>{let _e=_t=>{pe(_t),S.sender.cleanup(Fe),Pe?.dispose()},Ue=_t=>{Ee(_t),S.sender.cleanup(Fe),Pe?.dispose()},Qe={method:H,timerStart:Date.now(),resolve:_e,reject:Ue};try{await e.write(Oe),Z.set(Fe,Qe)}catch(_t){throw r.error("Sending request failed."),Qe.reject(new ae.ResponseError(ae.ErrorCodes.MessageWriteError,_t.message?_t.message:"Unknown reason")),_t}})},onRequest:(w,z)=>{Vn();let H=null;return bl.is(w)?(H=void 0,c=w):We.string(w)?(H=null,z!==void 0&&(H=w,d.set(w,{handler:z,type:void 0}))):z!==void 0&&(H=w.method,d.set(w.method,{type:w,handler:z})),{dispose:()=>{H!==null&&(H!==void 0?d.delete(H):c=void 0)}}},hasPendingResponse:()=>Z.size>0,trace:async(w,z,H)=>{let ee=!1,Ae=Pt.Text;H!==void 0&&(We.boolean(H)?ee=H:(ee=H.sendNotification||!1,Ae=H.traceFormat||Pt.Text)),x=w,N=Ae,x===ke.Off?R=void 0:R=z,ee&&!be()&&!ue()&&await xn.sendNotification(Gd.type,{value:ke.toString(w)})},onError:V.event,onClose:Y.event,onUnhandledNotification:le.event,onDispose:k.event,end:()=>{e.end()},dispose:()=>{if(ue())return;L=zt.Disposed,k.fire(void 0);let w=new ae.ResponseError(ae.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(let z of Z.values())z.reject(w);Z=new Map,F=new Map,$=new Set,P=new Hd.LinkedMap,We.func(e.dispose)&&e.dispose(),We.func(t.dispose)&&t.dispose()},listen:()=>{Vn(),Sa(),L=zt.Listening,t.listen(pa)},inspect:()=>{(0,Bd.default)().console.log("inspect")}};return xn.onNotification(yl.type,w=>{if(x===ke.Off||!R)return;let z=x===ke.Verbose||x===ke.Compact;R.log(w.message,z?w.verbose:void 0)}),xn.onNotification(ar.type,w=>{let z=y.get(w.token);z?z(w.value):W.fire(w)}),xn}te.createMessageConnection=Tf});var Ss=X(T=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0});T.ProgressType=T.ProgressToken=T.createMessageConnection=T.NullLogger=T.ConnectionOptions=T.ConnectionStrategy=T.AbstractMessageBuffer=T.WriteableStreamMessageWriter=T.AbstractMessageWriter=T.MessageWriter=T.ReadableStreamMessageReader=T.AbstractMessageReader=T.MessageReader=T.SharedArrayReceiverStrategy=T.SharedArraySenderStrategy=T.CancellationToken=T.CancellationTokenSource=T.Emitter=T.Event=T.Disposable=T.LRUCache=T.Touch=T.LinkedMap=T.ParameterStructures=T.NotificationType9=T.NotificationType8=T.NotificationType7=T.NotificationType6=T.NotificationType5=T.NotificationType4=T.NotificationType3=T.NotificationType2=T.NotificationType1=T.NotificationType0=T.NotificationType=T.ErrorCodes=T.ResponseError=T.RequestType9=T.RequestType8=T.RequestType7=T.RequestType6=T.RequestType5=T.RequestType4=T.RequestType3=T.RequestType2=T.RequestType1=T.RequestType0=T.RequestType=T.Message=T.RAL=void 0;T.MessageStrategy=T.CancellationStrategy=T.CancellationSenderStrategy=T.CancellationReceiverStrategy=T.ConnectionError=T.ConnectionErrors=T.LogTraceNotification=T.SetTraceNotification=T.TraceFormat=T.TraceValues=T.Trace=void 0;var Re=Ha();Object.defineProperty(T,"Message",{enumerable:!0,get:function(){return Re.Message}});Object.defineProperty(T,"RequestType",{enumerable:!0,get:function(){return Re.RequestType}});Object.defineProperty(T,"RequestType0",{enumerable:!0,get:function(){return Re.RequestType0}});Object.defineProperty(T,"RequestType1",{enumerable:!0,get:function(){return Re.RequestType1}});Object.defineProperty(T,"RequestType2",{enumerable:!0,get:function(){return Re.RequestType2}});Object.defineProperty(T,"RequestType3",{enumerable:!0,get:function(){return Re.RequestType3}});Object.defineProperty(T,"RequestType4",{enumerable:!0,get:function(){return Re.RequestType4}});Object.defineProperty(T,"RequestType5",{enumerable:!0,get:function(){return Re.RequestType5}});Object.defineProperty(T,"RequestType6",{enumerable:!0,get:function(){return Re.RequestType6}});Object.defineProperty(T,"RequestType7",{enumerable:!0,get:function(){return Re.RequestType7}});Object.defineProperty(T,"RequestType8",{enumerable:!0,get:function(){return Re.RequestType8}});Object.defineProperty(T,"RequestType9",{enumerable:!0,get:function(){return Re.RequestType9}});Object.defineProperty(T,"ResponseError",{enumerable:!0,get:function(){return Re.ResponseError}});Object.defineProperty(T,"ErrorCodes",{enumerable:!0,get:function(){return Re.ErrorCodes}});Object.defineProperty(T,"NotificationType",{enumerable:!0,get:function(){return Re.NotificationType}});Object.defineProperty(T,"NotificationType0",{enumerable:!0,get:function(){return Re.NotificationType0}});Object.defineProperty(T,"NotificationType1",{enumerable:!0,get:function(){return Re.NotificationType1}});Object.defineProperty(T,"NotificationType2",{enumerable:!0,get:function(){return Re.NotificationType2}});Object.defineProperty(T,"NotificationType3",{enumerable:!0,get:function(){return Re.NotificationType3}});Object.defineProperty(T,"NotificationType4",{enumerable:!0,get:function(){return Re.NotificationType4}});Object.defineProperty(T,"NotificationType5",{enumerable:!0,get:function(){return Re.NotificationType5}});Object.defineProperty(T,"NotificationType6",{enumerable:!0,get:function(){return Re.NotificationType6}});Object.defineProperty(T,"NotificationType7",{enumerable:!0,get:function(){return Re.NotificationType7}});Object.defineProperty(T,"NotificationType8",{enumerable:!0,get:function(){return Re.NotificationType8}});Object.defineProperty(T,"NotificationType9",{enumerable:!0,get:function(){return Re.NotificationType9}});Object.defineProperty(T,"ParameterStructures",{enumerable:!0,get:function(){return Re.ParameterStructures}});var Cl=Ga();Object.defineProperty(T,"LinkedMap",{enumerable:!0,get:function(){return Cl.LinkedMap}});Object.defineProperty(T,"LRUCache",{enumerable:!0,get:function(){return Cl.LRUCache}});Object.defineProperty(T,"Touch",{enumerable:!0,get:function(){return Cl.Touch}});var If=Od();Object.defineProperty(T,"Disposable",{enumerable:!0,get:function(){return If.Disposable}});var Qd=gi();Object.defineProperty(T,"Event",{enumerable:!0,get:function(){return Qd.Event}});Object.defineProperty(T,"Emitter",{enumerable:!0,get:function(){return Qd.Emitter}});var Zd=fs();Object.defineProperty(T,"CancellationTokenSource",{enumerable:!0,get:function(){return Zd.CancellationTokenSource}});Object.defineProperty(T,"CancellationToken",{enumerable:!0,get:function(){return Zd.CancellationToken}});var eh=Wd();Object.defineProperty(T,"SharedArraySenderStrategy",{enumerable:!0,get:function(){return eh.SharedArraySenderStrategy}});Object.defineProperty(T,"SharedArrayReceiverStrategy",{enumerable:!0,get:function(){return eh.SharedArrayReceiverStrategy}});var Fl=Ld();Object.defineProperty(T,"MessageReader",{enumerable:!0,get:function(){return Fl.MessageReader}});Object.defineProperty(T,"AbstractMessageReader",{enumerable:!0,get:function(){return Fl.AbstractMessageReader}});Object.defineProperty(T,"ReadableStreamMessageReader",{enumerable:!0,get:function(){return Fl.ReadableStreamMessageReader}});var kl=Ud();Object.defineProperty(T,"MessageWriter",{enumerable:!0,get:function(){return kl.MessageWriter}});Object.defineProperty(T,"AbstractMessageWriter",{enumerable:!0,get:function(){return kl.AbstractMessageWriter}});Object.defineProperty(T,"WriteableStreamMessageWriter",{enumerable:!0,get:function(){return kl.WriteableStreamMessageWriter}});var Pf=Vd();Object.defineProperty(T,"AbstractMessageBuffer",{enumerable:!0,get:function(){return Pf.AbstractMessageBuffer}});var Ze=Yd();Object.defineProperty(T,"ConnectionStrategy",{enumerable:!0,get:function(){return Ze.ConnectionStrategy}});Object.defineProperty(T,"ConnectionOptions",{enumerable:!0,get:function(){return Ze.ConnectionOptions}});Object.defineProperty(T,"NullLogger",{enumerable:!0,get:function(){return Ze.NullLogger}});Object.defineProperty(T,"createMessageConnection",{enumerable:!0,get:function(){return Ze.createMessageConnection}});Object.defineProperty(T,"ProgressToken",{enumerable:!0,get:function(){return Ze.ProgressToken}});Object.defineProperty(T,"ProgressType",{enumerable:!0,get:function(){return Ze.ProgressType}});Object.defineProperty(T,"Trace",{enumerable:!0,get:function(){return Ze.Trace}});Object.defineProperty(T,"TraceValues",{enumerable:!0,get:function(){return Ze.TraceValues}});Object.defineProperty(T,"TraceFormat",{enumerable:!0,get:function(){return Ze.TraceFormat}});Object.defineProperty(T,"SetTraceNotification",{enumerable:!0,get:function(){return Ze.SetTraceNotification}});Object.defineProperty(T,"LogTraceNotification",{enumerable:!0,get:function(){return Ze.LogTraceNotification}});Object.defineProperty(T,"ConnectionErrors",{enumerable:!0,get:function(){return Ze.ConnectionErrors}});Object.defineProperty(T,"ConnectionError",{enumerable:!0,get:function(){return Ze.ConnectionError}});Object.defineProperty(T,"CancellationReceiverStrategy",{enumerable:!0,get:function(){return Ze.CancellationReceiverStrategy}});Object.defineProperty(T,"CancellationSenderStrategy",{enumerable:!0,get:function(){return Ze.CancellationSenderStrategy}});Object.defineProperty(T,"CancellationStrategy",{enumerable:!0,get:function(){return Ze.CancellationStrategy}});Object.defineProperty(T,"MessageStrategy",{enumerable:!0,get:function(){return Ze.MessageStrategy}});var zf=Cn();T.RAL=zf.default});var ih=X(Rl=>{"use strict";Object.defineProperty(Rl,"__esModule",{value:!0});var th=require("util"),cn=Ss(),_s=class t extends cn.AbstractMessageBuffer{constructor(e="utf-8"){super(e)}emptyBuffer(){return t.emptyBuffer}fromString(e,n){return Buffer.from(e,n)}toString(e,n){return e instanceof Buffer?e.toString(n):new th.TextDecoder(n).decode(e)}asNative(e,n){return n===void 0?e instanceof Buffer?e:Buffer.from(e):e instanceof Buffer?e.slice(0,n):Buffer.from(e,0,n)}allocNative(e){return Buffer.allocUnsafe(e)}};_s.emptyBuffer=Buffer.allocUnsafe(0);var Al=class{constructor(e){this.stream=e}onClose(e){return this.stream.on("close",e),cn.Disposable.create(()=>this.stream.off("close",e))}onError(e){return this.stream.on("error",e),cn.Disposable.create(()=>this.stream.off("error",e))}onEnd(e){return this.stream.on("end",e),cn.Disposable.create(()=>this.stream.off("end",e))}onData(e){return this.stream.on("data",e),cn.Disposable.create(()=>this.stream.off("data",e))}},El=class{constructor(e){this.stream=e}onClose(e){return this.stream.on("close",e),cn.Disposable.create(()=>this.stream.off("close",e))}onError(e){return this.stream.on("error",e),cn.Disposable.create(()=>this.stream.off("error",e))}onEnd(e){return this.stream.on("end",e),cn.Disposable.create(()=>this.stream.off("end",e))}write(e,n){return new Promise((i,r)=>{let s=o=>{o==null?i():r(o)};typeof e=="string"?this.stream.write(e,n,s):this.stream.write(e,s)})}end(){this.stream.end()}},nh=Object.freeze({messageBuffer:Object.freeze({create:t=>new _s(t)}),applicationJson:Object.freeze({encoder:Object.freeze({name:"application/json",encode:(t,e)=>{try{return Promise.resolve(Buffer.from(JSON.stringify(t,void 0,0),e.charset))}catch(n){return Promise.reject(n)}}}),decoder:Object.freeze({name:"application/json",decode:(t,e)=>{try{return t instanceof Buffer?Promise.resolve(JSON.parse(t.toString(e.charset))):Promise.resolve(JSON.parse(new th.TextDecoder(e.charset).decode(t)))}catch(n){return Promise.reject(n)}}})}),stream:Object.freeze({asReadableStream:t=>new Al(t),asWritableStream:t=>new El(t)}),console,timer:Object.freeze({setTimeout(t,e,...n){let i=setTimeout(t,e,...n);return{dispose:()=>clearTimeout(i)}},setImmediate(t,...e){let n=setImmediate(t,...e);return{dispose:()=>clearImmediate(n)}},setInterval(t,e,...n){let i=setInterval(t,e,...n);return{dispose:()=>clearInterval(i)}}})});function Dl(){return nh}(function(t){function e(){cn.RAL.install(nh)}t.install=e})(Dl||(Dl={}));Rl.default=Dl});var Xn=X(fe=>{"use strict";var Nf=fe&&fe.__createBinding||(Object.create?function(t,e,n,i){i===void 0&&(i=n);var r=Object.getOwnPropertyDescriptor(e,n);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,r)}:function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]}),Of=fe&&fe.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&Nf(e,t,n)};Object.defineProperty(fe,"__esModule",{value:!0});fe.createMessageConnection=fe.createServerSocketTransport=fe.createClientSocketTransport=fe.createServerPipeTransport=fe.createClientPipeTransport=fe.generateRandomPipeName=fe.StreamMessageWriter=fe.StreamMessageReader=fe.SocketMessageWriter=fe.SocketMessageReader=fe.PortMessageWriter=fe.PortMessageReader=fe.IPCMessageWriter=fe.IPCMessageReader=void 0;var vi=ih();vi.default.install();var rh=require("path"),Wf=require("os"),Lf=require("crypto"),Fs=require("net"),yt=Ss();Of(Ss(),fe);var Ml=class extends yt.AbstractMessageReader{constructor(e){super(),this.process=e;let n=this.process;n.on("error",i=>this.fireError(i)),n.on("close",()=>this.fireClose())}listen(e){return this.process.on("message",e),yt.Disposable.create(()=>this.process.off("message",e))}};fe.IPCMessageReader=Ml;var Tl=class extends yt.AbstractMessageWriter{constructor(e){super(),this.process=e,this.errorCount=0;let n=this.process;n.on("error",i=>this.fireError(i)),n.on("close",()=>this.fireClose)}write(e){try{return typeof this.process.send=="function"&&this.process.send(e,void 0,void 0,n=>{n?(this.errorCount++,this.handleError(n,e)):this.errorCount=0}),Promise.resolve()}catch(n){return this.handleError(n,e),Promise.reject(n)}}handleError(e,n){this.errorCount++,this.fireError(e,n,this.errorCount)}end(){}};fe.IPCMessageWriter=Tl;var Il=class extends yt.AbstractMessageReader{constructor(e){super(),this.onData=new yt.Emitter,e.on("close",()=>this.fireClose),e.on("error",n=>this.fireError(n)),e.on("message",n=>{this.onData.fire(n)})}listen(e){return this.onData.event(e)}};fe.PortMessageReader=Il;var Pl=class extends yt.AbstractMessageWriter{constructor(e){super(),this.port=e,this.errorCount=0,e.on("close",()=>this.fireClose()),e.on("error",n=>this.fireError(n))}write(e){try{return this.port.postMessage(e),Promise.resolve()}catch(n){return this.handleError(n,e),Promise.reject(n)}}handleError(e,n){this.errorCount++,this.fireError(e,n,this.errorCount)}end(){}};fe.PortMessageWriter=Pl;var Gn=class extends yt.ReadableStreamMessageReader{constructor(e,n="utf-8"){super((0,vi.default)().stream.asReadableStream(e),n)}};fe.SocketMessageReader=Gn;var Jn=class extends yt.WriteableStreamMessageWriter{constructor(e,n){super((0,vi.default)().stream.asWritableStream(e),n),this.socket=e}dispose(){super.dispose(),this.socket.destroy()}};fe.SocketMessageWriter=Jn;var xs=class extends yt.ReadableStreamMessageReader{constructor(e,n){super((0,vi.default)().stream.asReadableStream(e),n)}};fe.StreamMessageReader=xs;var Cs=class extends yt.WriteableStreamMessageWriter{constructor(e,n){super((0,vi.default)().stream.asWritableStream(e),n)}};fe.StreamMessageWriter=Cs;var sh=process.env.XDG_RUNTIME_DIR,qf=new Map([["linux",107],["darwin",103]]);function jf(){let t=(0,Lf.randomBytes)(21).toString("hex");if(process.platform==="win32")return`\\\\.\\pipe\\vscode-jsonrpc-${t}-sock`;let e;sh?e=rh.join(sh,`vscode-ipc-${t}.sock`):e=rh.join(Wf.tmpdir(),`vscode-${t}.sock`);let n=qf.get(process.platform);return n!==void 0&&e.length>n&&(0,vi.default)().console.warn(`WARNING: IPC handle "${e}" is longer than ${n} characters.`),e}fe.generateRandomPipeName=jf;function $f(t,e="utf-8"){let n,i=new Promise((r,s)=>{n=r});return new Promise((r,s)=>{let o=(0,Fs.createServer)(a=>{o.close(),n([new Gn(a,e),new Jn(a,e)])});o.on("error",s),o.listen(t,()=>{o.removeListener("error",s),r({onConnected:()=>i})})})}fe.createClientPipeTransport=$f;function Uf(t,e="utf-8"){let n=(0,Fs.createConnection)(t);return[new Gn(n,e),new Jn(n,e)]}fe.createServerPipeTransport=Uf;function Vf(t,e="utf-8"){let n,i=new Promise((r,s)=>{n=r});return new Promise((r,s)=>{let o=(0,Fs.createServer)(a=>{o.close(),n([new Gn(a,e),new Jn(a,e)])});o.on("error",s),o.listen(t,"127.0.0.1",()=>{o.removeListener("error",s),r({onConnected:()=>i})})})}fe.createClientSocketTransport=Vf;function Bf(t,e="utf-8"){let n=(0,Fs.createConnection)(t,"127.0.0.1");return[new Gn(n,e),new Jn(n,e)]}fe.createServerSocketTransport=Bf;function Hf(t){let e=t;return e.read!==void 0&&e.addListener!==void 0}function Kf(t){let e=t;return e.write!==void 0&&e.addListener!==void 0}function Gf(t,e,n,i){n||(n=yt.NullLogger);let r=Hf(t)?new xs(t):t,s=Kf(e)?new Cs(e):e;return yt.ConnectionStrategy.is(i)&&(i={connectionStrategy:i}),(0,yt.createMessageConnection)(r,s,n,i)}fe.createMessageConnection=Gf});var zl=X((M1,oh)=>{"use strict";oh.exports=Xn()});var As=X((ah,ks)=>{(function(t){if(typeof ks=="object"&&typeof ks.exports=="object"){var e=t(require,ah);e!==void 0&&(ks.exports=e)}else typeof define=="function"&&define.amd&&define(["require","exports"],t)})(function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TextDocument=e.EOL=e.WorkspaceFolder=e.InlayHint=e.InlayHintLabelPart=e.InlayHintKind=e.InlineValueContext=e.InlineValueEvaluatableExpression=e.InlineValueVariableLookup=e.InlineValueText=e.SemanticTokens=e.SemanticTokenModifiers=e.SemanticTokenTypes=e.SelectionRange=e.DocumentLink=e.FormattingOptions=e.CodeLens=e.CodeAction=e.CodeActionContext=e.CodeActionTriggerKind=e.CodeActionKind=e.DocumentSymbol=e.WorkspaceSymbol=e.SymbolInformation=e.SymbolTag=e.SymbolKind=e.DocumentHighlight=e.DocumentHighlightKind=e.SignatureInformation=e.ParameterInformation=e.Hover=e.MarkedString=e.CompletionList=e.CompletionItem=e.CompletionItemLabelDetails=e.InsertTextMode=e.InsertReplaceEdit=e.CompletionItemTag=e.InsertTextFormat=e.CompletionItemKind=e.MarkupContent=e.MarkupKind=e.TextDocumentItem=e.OptionalVersionedTextDocumentIdentifier=e.VersionedTextDocumentIdentifier=e.TextDocumentIdentifier=e.WorkspaceChange=e.WorkspaceEdit=e.DeleteFile=e.RenameFile=e.CreateFile=e.TextDocumentEdit=e.AnnotatedTextEdit=e.ChangeAnnotationIdentifier=e.ChangeAnnotation=e.TextEdit=e.Command=e.Diagnostic=e.CodeDescription=e.DiagnosticTag=e.DiagnosticSeverity=e.DiagnosticRelatedInformation=e.FoldingRange=e.FoldingRangeKind=e.ColorPresentation=e.ColorInformation=e.Color=e.LocationLink=e.Location=e.Range=e.Position=e.uinteger=e.integer=e.URI=e.DocumentUri=void 0;var n;(function(u){function _(C){return typeof C=="string"}u.is=_})(n=e.DocumentUri||(e.DocumentUri={}));var i;(function(u){function _(C){return typeof C=="string"}u.is=_})(i=e.URI||(e.URI={}));var r;(function(u){u.MIN_VALUE=-2147483648,u.MAX_VALUE=2147483647;function _(C){return typeof C=="number"&&u.MIN_VALUE<=C&&C<=u.MAX_VALUE}u.is=_})(r=e.integer||(e.integer={}));var s;(function(u){u.MIN_VALUE=0,u.MAX_VALUE=2147483647;function _(C){return typeof C=="number"&&u.MIN_VALUE<=C&&C<=u.MAX_VALUE}u.is=_})(s=e.uinteger||(e.uinteger={}));var o;(function(u){function _(f,h){return f===Number.MAX_VALUE&&(f=s.MAX_VALUE),h===Number.MAX_VALUE&&(h=s.MAX_VALUE),{line:f,character:h}}u.create=_;function C(f){var h=f;return A.objectLiteral(h)&&A.uinteger(h.line)&&A.uinteger(h.character)}u.is=C})(o=e.Position||(e.Position={}));var a;(function(u){function _(f,h,D,O){if(A.uinteger(f)&&A.uinteger(h)&&A.uinteger(D)&&A.uinteger(O))return{start:o.create(f,h),end:o.create(D,O)};if(o.is(f)&&o.is(h))return{start:f,end:h};throw new Error("Range#create called with invalid arguments[".concat(f,", ").concat(h,", ").concat(D,", ").concat(O,"]"))}u.create=_;function C(f){var h=f;return A.objectLiteral(h)&&o.is(h.start)&&o.is(h.end)}u.is=C})(a=e.Range||(e.Range={}));var l;(function(u){function _(f,h){return{uri:f,range:h}}u.create=_;function C(f){var h=f;return A.objectLiteral(h)&&a.is(h.range)&&(A.string(h.uri)||A.undefined(h.uri))}u.is=C})(l=e.Location||(e.Location={}));var c;(function(u){function _(f,h,D,O){return{targetUri:f,targetRange:h,targetSelectionRange:D,originSelectionRange:O}}u.create=_;function C(f){var h=f;return A.objectLiteral(h)&&a.is(h.targetRange)&&A.string(h.targetUri)&&a.is(h.targetSelectionRange)&&(a.is(h.originSelectionRange)||A.undefined(h.originSelectionRange))}u.is=C})(c=e.LocationLink||(e.LocationLink={}));var d;(function(u){function _(f,h,D,O){return{red:f,green:h,blue:D,alpha:O}}u.create=_;function C(f){var h=f;return A.objectLiteral(h)&&A.numberRange(h.red,0,1)&&A.numberRange(h.green,0,1)&&A.numberRange(h.blue,0,1)&&A.numberRange(h.alpha,0,1)}u.is=C})(d=e.Color||(e.Color={}));var p;(function(u){function _(f,h){return{range:f,color:h}}u.create=_;function C(f){var h=f;return A.objectLiteral(h)&&a.is(h.range)&&d.is(h.color)}u.is=C})(p=e.ColorInformation||(e.ColorInformation={}));var b;(function(u){function _(f,h,D){return{label:f,textEdit:h,additionalTextEdits:D}}u.create=_;function C(f){var h=f;return A.objectLiteral(h)&&A.string(h.label)&&(A.undefined(h.textEdit)||R.is(h))&&(A.undefined(h.additionalTextEdits)||A.typedArray(h.additionalTextEdits,R.is))}u.is=C})(b=e.ColorPresentation||(e.ColorPresentation={}));var y;(function(u){u.Comment="comment",u.Imports="imports",u.Region="region"})(y=e.FoldingRangeKind||(e.FoldingRangeKind={}));var M;(function(u){function _(f,h,D,O,he,je){var De={startLine:f,endLine:h};return A.defined(D)&&(De.startCharacter=D),A.defined(O)&&(De.endCharacter=O),A.defined(he)&&(De.kind=he),A.defined(je)&&(De.collapsedText=je),De}u.create=_;function C(f){var h=f;return A.objectLiteral(h)&&A.uinteger(h.startLine)&&A.uinteger(h.startLine)&&(A.undefined(h.startCharacter)||A.uinteger(h.startCharacter))&&(A.undefined(h.endCharacter)||A.uinteger(h.endCharacter))&&(A.undefined(h.kind)||A.string(h.kind))}u.is=C})(M=e.FoldingRange||(e.FoldingRange={}));var P;(function(u){function _(f,h){return{location:f,message:h}}u.create=_;function C(f){var h=f;return A.defined(h)&&l.is(h.location)&&A.string(h.message)}u.is=C})(P=e.DiagnosticRelatedInformation||(e.DiagnosticRelatedInformation={}));var Z;(function(u){u.Error=1,u.Warning=2,u.Information=3,u.Hint=4})(Z=e.DiagnosticSeverity||(e.DiagnosticSeverity={}));var $;(function(u){u.Unnecessary=1,u.Deprecated=2})($=e.DiagnosticTag||(e.DiagnosticTag={}));var F;(function(u){function _(C){var f=C;return A.objectLiteral(f)&&A.string(f.href)}u.is=_})(F=e.CodeDescription||(e.CodeDescription={}));var x;(function(u){function _(f,h,D,O,he,je){var De={range:f,message:h};return A.defined(D)&&(De.severity=D),A.defined(O)&&(De.code=O),A.defined(he)&&(De.source=he),A.defined(je)&&(De.relatedInformation=je),De}u.create=_;function C(f){var h,D=f;return A.defined(D)&&a.is(D.range)&&A.string(D.message)&&(A.number(D.severity)||A.undefined(D.severity))&&(A.integer(D.code)||A.string(D.code)||A.undefined(D.code))&&(A.undefined(D.codeDescription)||A.string((h=D.codeDescription)===null||h===void 0?void 0:h.href))&&(A.string(D.source)||A.undefined(D.source))&&(A.undefined(D.relatedInformation)||A.typedArray(D.relatedInformation,P.is))}u.is=C})(x=e.Diagnostic||(e.Diagnostic={}));var N;(function(u){function _(f,h){for(var D=[],O=2;O<arguments.length;O++)D[O-2]=arguments[O];var he={title:f,command:h};return A.defined(D)&&D.length>0&&(he.arguments=D),he}u.create=_;function C(f){var h=f;return A.defined(h)&&A.string(h.title)&&A.string(h.command)}u.is=C})(N=e.Command||(e.Command={}));var R;(function(u){function _(D,O){return{range:D,newText:O}}u.replace=_;function C(D,O){return{range:{start:D,end:D},newText:O}}u.insert=C;function f(D){return{range:D,newText:""}}u.del=f;function h(D){var O=D;return A.objectLiteral(O)&&A.string(O.newText)&&a.is(O.range)}u.is=h})(R=e.TextEdit||(e.TextEdit={}));var L;(function(u){function _(f,h,D){var O={label:f};return h!==void 0&&(O.needsConfirmation=h),D!==void 0&&(O.description=D),O}u.create=_;function C(f){var h=f;return A.objectLiteral(h)&&A.string(h.label)&&(A.boolean(h.needsConfirmation)||h.needsConfirmation===void 0)&&(A.string(h.description)||h.description===void 0)}u.is=C})(L=e.ChangeAnnotation||(e.ChangeAnnotation={}));var V;(function(u){function _(C){var f=C;return A.string(f)}u.is=_})(V=e.ChangeAnnotationIdentifier||(e.ChangeAnnotationIdentifier={}));var Y;(function(u){function _(D,O,he){return{range:D,newText:O,annotationId:he}}u.replace=_;function C(D,O,he){return{range:{start:D,end:D},newText:O,annotationId:he}}u.insert=C;function f(D,O){return{range:D,newText:"",annotationId:O}}u.del=f;function h(D){var O=D;return R.is(O)&&(L.is(O.annotationId)||V.is(O.annotationId))}u.is=h})(Y=e.AnnotatedTextEdit||(e.AnnotatedTextEdit={}));var le;(function(u){function _(f,h){return{textDocument:f,edits:h}}u.create=_;function C(f){var h=f;return A.defined(h)&&be.is(h.textDocument)&&Array.isArray(h.edits)}u.is=C})(le=e.TextDocumentEdit||(e.TextDocumentEdit={}));var W;(function(u){function _(f,h,D){var O={kind:"create",uri:f};return h!==void 0&&(h.overwrite!==void 0||h.ignoreIfExists!==void 0)&&(O.options=h),D!==void 0&&(O.annotationId=D),O}u.create=_;function C(f){var h=f;return h&&h.kind==="create"&&A.string(h.uri)&&(h.options===void 0||(h.options.overwrite===void 0||A.boolean(h.options.overwrite))&&(h.options.ignoreIfExists===void 0||A.boolean(h.options.ignoreIfExists)))&&(h.annotationId===void 0||V.is(h.annotationId))}u.is=C})(W=e.CreateFile||(e.CreateFile={}));var k;(function(u){function _(f,h,D,O){var he={kind:"rename",oldUri:f,newUri:h};return D!==void 0&&(D.overwrite!==void 0||D.ignoreIfExists!==void 0)&&(he.options=D),O!==void 0&&(he.annotationId=O),he}u.create=_;function C(f){var h=f;return h&&h.kind==="rename"&&A.string(h.oldUri)&&A.string(h.newUri)&&(h.options===void 0||(h.options.overwrite===void 0||A.boolean(h.options.overwrite))&&(h.options.ignoreIfExists===void 0||A.boolean(h.options.ignoreIfExists)))&&(h.annotationId===void 0||V.is(h.annotationId))}u.is=C})(k=e.RenameFile||(e.RenameFile={}));var S;(function(u){function _(f,h,D){var O={kind:"delete",uri:f};return h!==void 0&&(h.recursive!==void 0||h.ignoreIfNotExists!==void 0)&&(O.options=h),D!==void 0&&(O.annotationId=D),O}u.create=_;function C(f){var h=f;return h&&h.kind==="delete"&&A.string(h.uri)&&(h.options===void 0||(h.options.recursive===void 0||A.boolean(h.options.recursive))&&(h.options.ignoreIfNotExists===void 0||A.boolean(h.options.ignoreIfNotExists)))&&(h.annotationId===void 0||V.is(h.annotationId))}u.is=C})(S=e.DeleteFile||(e.DeleteFile={}));var I;(function(u){function _(C){var f=C;return f&&(f.changes!==void 0||f.documentChanges!==void 0)&&(f.documentChanges===void 0||f.documentChanges.every(function(h){return A.string(h.kind)?W.is(h)||k.is(h)||S.is(h):le.is(h)}))}u.is=_})(I=e.WorkspaceEdit||(e.WorkspaceEdit={}));var j=function(){function u(_,C){this.edits=_,this.changeAnnotations=C}return u.prototype.insert=function(_,C,f){var h,D;if(f===void 0?h=R.insert(_,C):V.is(f)?(D=f,h=Y.insert(_,C,f)):(this.assertChangeAnnotations(this.changeAnnotations),D=this.changeAnnotations.manage(f),h=Y.insert(_,C,D)),this.edits.push(h),D!==void 0)return D},u.prototype.replace=function(_,C,f){var h,D;if(f===void 0?h=R.replace(_,C):V.is(f)?(D=f,h=Y.replace(_,C,f)):(this.assertChangeAnnotations(this.changeAnnotations),D=this.changeAnnotations.manage(f),h=Y.replace(_,C,D)),this.edits.push(h),D!==void 0)return D},u.prototype.delete=function(_,C){var f,h;if(C===void 0?f=R.del(_):V.is(C)?(h=C,f=Y.del(_,C)):(this.assertChangeAnnotations(this.changeAnnotations),h=this.changeAnnotations.manage(C),f=Y.del(_,h)),this.edits.push(f),h!==void 0)return h},u.prototype.add=function(_){this.edits.push(_)},u.prototype.all=function(){return this.edits},u.prototype.clear=function(){this.edits.splice(0,this.edits.length)},u.prototype.assertChangeAnnotations=function(_){if(_===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},u}(),J=function(){function u(_){this._annotations=_===void 0?Object.create(null):_,this._counter=0,this._size=0}return u.prototype.all=function(){return this._annotations},Object.defineProperty(u.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),u.prototype.manage=function(_,C){var f;if(V.is(_)?f=_:(f=this.nextId(),C=_),this._annotations[f]!==void 0)throw new Error("Id ".concat(f," is already in use."));if(C===void 0)throw new Error("No annotation provided for id ".concat(f));return this._annotations[f]=C,this._size++,f},u.prototype.nextId=function(){return this._counter++,this._counter.toString()},u}(),K=function(){function u(_){var C=this;this._textEditChanges=Object.create(null),_!==void 0?(this._workspaceEdit=_,_.documentChanges?(this._changeAnnotations=new J(_.changeAnnotations),_.changeAnnotations=this._changeAnnotations.all(),_.documentChanges.forEach(function(f){if(le.is(f)){var h=new j(f.edits,C._changeAnnotations);C._textEditChanges[f.textDocument.uri]=h}})):_.changes&&Object.keys(_.changes).forEach(function(f){var h=new j(_.changes[f]);C._textEditChanges[f]=h})):this._workspaceEdit={}}return Object.defineProperty(u.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}),u.prototype.getTextEditChange=function(_){if(be.is(_)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var C={uri:_.uri,version:_.version},f=this._textEditChanges[C.uri];if(!f){var h=[],D={textDocument:C,edits:h};this._workspaceEdit.documentChanges.push(D),f=new j(h,this._changeAnnotations),this._textEditChanges[C.uri]=f}return f}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var f=this._textEditChanges[_];if(!f){var h=[];this._workspaceEdit.changes[_]=h,f=new j(h),this._textEditChanges[_]=f}return f}},u.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new J,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},u.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},u.prototype.createFile=function(_,C,f){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var h;L.is(C)||V.is(C)?h=C:f=C;var D,O;if(h===void 0?D=W.create(_,f):(O=V.is(h)?h:this._changeAnnotations.manage(h),D=W.create(_,f,O)),this._workspaceEdit.documentChanges.push(D),O!==void 0)return O},u.prototype.renameFile=function(_,C,f,h){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var D;L.is(f)||V.is(f)?D=f:h=f;var O,he;if(D===void 0?O=k.create(_,C,h):(he=V.is(D)?D:this._changeAnnotations.manage(D),O=k.create(_,C,h,he)),this._workspaceEdit.documentChanges.push(O),he!==void 0)return he},u.prototype.deleteFile=function(_,C,f){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var h;L.is(C)||V.is(C)?h=C:f=C;var D,O;if(h===void 0?D=S.create(_,f):(O=V.is(h)?h:this._changeAnnotations.manage(h),D=S.create(_,f,O)),this._workspaceEdit.documentChanges.push(D),O!==void 0)return O},u}();e.WorkspaceChange=K;var Q;(function(u){function _(f){return{uri:f}}u.create=_;function C(f){var h=f;return A.defined(h)&&A.string(h.uri)}u.is=C})(Q=e.TextDocumentIdentifier||(e.TextDocumentIdentifier={}));var ve;(function(u){function _(f,h){return{uri:f,version:h}}u.create=_;function C(f){var h=f;return A.defined(h)&&A.string(h.uri)&&A.integer(h.version)}u.is=C})(ve=e.VersionedTextDocumentIdentifier||(e.VersionedTextDocumentIdentifier={}));var be;(function(u){function _(f,h){return{uri:f,version:h}}u.create=_;function C(f){var h=f;return A.defined(h)&&A.string(h.uri)&&(h.version===null||A.integer(h.version))}u.is=C})(be=e.OptionalVersionedTextDocumentIdentifier||(e.OptionalVersionedTextDocumentIdentifier={}));var ue;(function(u){function _(f,h,D,O){return{uri:f,languageId:h,version:D,text:O}}u.create=_;function C(f){var h=f;return A.defined(h)&&A.string(h.uri)&&A.string(h.languageId)&&A.integer(h.version)&&A.string(h.text)}u.is=C})(ue=e.TextDocumentItem||(e.TextDocumentItem={}));var $e;(function(u){u.PlainText="plaintext",u.Markdown="markdown";function _(C){var f=C;return f===u.PlainText||f===u.Markdown}u.is=_})($e=e.MarkupKind||(e.MarkupKind={}));var Sn;(function(u){function _(C){var f=C;return A.objectLiteral(C)&&$e.is(f.kind)&&A.string(f.value)}u.is=_})(Sn=e.MarkupContent||(e.MarkupContent={}));var di;(function(u){u.Text=1,u.Method=2,u.Function=3,u.Constructor=4,u.Field=5,u.Variable=6,u.Class=7,u.Interface=8,u.Module=9,u.Property=10,u.Unit=11,u.Value=12,u.Enum=13,u.Keyword=14,u.Snippet=15,u.Color=16,u.File=17,u.Reference=18,u.Folder=19,u.EnumMember=20,u.Constant=21,u.Struct=22,u.Event=23,u.Operator=24,u.TypeParameter=25})(di=e.CompletionItemKind||(e.CompletionItemKind={}));var hi;(function(u){u.PlainText=1,u.Snippet=2})(hi=e.InsertTextFormat||(e.InsertTextFormat={}));var ui;(function(u){u.Deprecated=1})(ui=e.CompletionItemTag||(e.CompletionItemTag={}));var ua;(function(u){function _(f,h,D){return{newText:f,insert:h,replace:D}}u.create=_;function C(f){var h=f;return h&&A.string(h.newText)&&a.is(h.insert)&&a.is(h.replace)}u.is=C})(ua=e.InsertReplaceEdit||(e.InsertReplaceEdit={}));var pa;(function(u){u.asIs=1,u.adjustIndentation=2})(pa=e.InsertTextMode||(e.InsertTextMode={}));var ma;(function(u){function _(C){var f=C;return f&&(A.string(f.detail)||f.detail===void 0)&&(A.string(f.description)||f.description===void 0)}u.is=_})(ma=e.CompletionItemLabelDetails||(e.CompletionItemLabelDetails={}));var fa;(function(u){function _(C){return{label:C}}u.create=_})(fa=e.CompletionItem||(e.CompletionItem={}));var ga;(function(u){function _(C,f){return{items:C||[],isIncomplete:!!f}}u.create=_})(ga=e.CompletionList||(e.CompletionList={}));var er;(function(u){function _(f){return f.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}u.fromPlainText=_;function C(f){var h=f;return A.string(h)||A.objectLiteral(h)&&A.string(h.language)&&A.string(h.value)}u.is=C})(er=e.MarkedString||(e.MarkedString={}));var Kt;(function(u){function _(C){var f=C;return!!f&&A.objectLiteral(f)&&(Sn.is(f.contents)||er.is(f.contents)||A.typedArray(f.contents,er.is))&&(C.range===void 0||a.is(C.range))}u.is=_})(Kt=e.Hover||(e.Hover={}));var ba;(function(u){function _(C,f){return f?{label:C,documentation:f}:{label:C}}u.create=_})(ba=e.ParameterInformation||(e.ParameterInformation={}));var ya;(function(u){function _(C,f){for(var h=[],D=2;D<arguments.length;D++)h[D-2]=arguments[D];var O={label:C};return A.defined(f)&&(O.documentation=f),A.defined(h)?O.parameters=h:O.parameters=[],O}u.create=_})(ya=e.SignatureInformation||(e.SignatureInformation={}));var pi;(function(u){u.Text=1,u.Read=2,u.Write=3})(pi=e.DocumentHighlightKind||(e.DocumentHighlightKind={}));var wa;(function(u){function _(C,f){var h={range:C};return A.number(f)&&(h.kind=f),h}u.create=_})(wa=e.DocumentHighlight||(e.DocumentHighlight={}));var tr;(function(u){u.File=1,u.Module=2,u.Namespace=3,u.Package=4,u.Class=5,u.Method=6,u.Property=7,u.Field=8,u.Constructor=9,u.Enum=10,u.Interface=11,u.Function=12,u.Variable=13,u.Constant=14,u.String=15,u.Number=16,u.Boolean=17,u.Array=18,u.Object=19,u.Key=20,u.Null=21,u.EnumMember=22,u.Struct=23,u.Event=24,u.Operator=25,u.TypeParameter=26})(tr=e.SymbolKind||(e.SymbolKind={}));var va;(function(u){u.Deprecated=1})(va=e.SymbolTag||(e.SymbolTag={}));var _n;(function(u){function _(C,f,h,D,O){var he={name:C,kind:f,location:{uri:D,range:h}};return O&&(he.containerName=O),he}u.create=_})(_n=e.SymbolInformation||(e.SymbolInformation={}));var Vn;(function(u){function _(C,f,h,D){return D!==void 0?{name:C,kind:f,location:{uri:h,range:D}}:{name:C,kind:f,location:{uri:h}}}u.create=_})(Vn=e.WorkspaceSymbol||(e.WorkspaceSymbol={}));var Sa;(function(u){function _(f,h,D,O,he,je){var De={name:f,detail:h,kind:D,range:O,selectionRange:he};return je!==void 0&&(De.children=je),De}u.create=_;function C(f){var h=f;return h&&A.string(h.name)&&A.number(h.kind)&&a.is(h.range)&&a.is(h.selectionRange)&&(h.detail===void 0||A.string(h.detail))&&(h.deprecated===void 0||A.boolean(h.deprecated))&&(h.children===void 0||Array.isArray(h.children))&&(h.tags===void 0||Array.isArray(h.tags))}u.is=C})(Sa=e.DocumentSymbol||(e.DocumentSymbol={}));var _a;(function(u){u.Empty="",u.QuickFix="quickfix",u.Refactor="refactor",u.RefactorExtract="refactor.extract",u.RefactorInline="refactor.inline",u.RefactorRewrite="refactor.rewrite",u.Source="source",u.SourceOrganizeImports="source.organizeImports",u.SourceFixAll="source.fixAll"})(_a=e.CodeActionKind||(e.CodeActionKind={}));var rn;(function(u){u.Invoked=1,u.Automatic=2})(rn=e.CodeActionTriggerKind||(e.CodeActionTriggerKind={}));var as;(function(u){function _(f,h,D){var O={diagnostics:f};return h!=null&&(O.only=h),D!=null&&(O.triggerKind=D),O}u.create=_;function C(f){var h=f;return A.defined(h)&&A.typedArray(h.diagnostics,x.is)&&(h.only===void 0||A.typedArray(h.only,A.string))&&(h.triggerKind===void 0||h.triggerKind===rn.Invoked||h.triggerKind===rn.Automatic)}u.is=C})(as=e.CodeActionContext||(e.CodeActionContext={}));var ls;(function(u){function _(f,h,D){var O={title:f},he=!0;return typeof h=="string"?(he=!1,O.kind=h):N.is(h)?O.command=h:O.edit=h,he&&D!==void 0&&(O.kind=D),O}u.create=_;function C(f){var h=f;return h&&A.string(h.title)&&(h.diagnostics===void 0||A.typedArray(h.diagnostics,x.is))&&(h.kind===void 0||A.string(h.kind))&&(h.edit!==void 0||h.command!==void 0)&&(h.command===void 0||N.is(h.command))&&(h.isPreferred===void 0||A.boolean(h.isPreferred))&&(h.edit===void 0||I.is(h.edit))}u.is=C})(ls=e.CodeAction||(e.CodeAction={}));var nr;(function(u){function _(f,h){var D={range:f};return A.defined(h)&&(D.data=h),D}u.create=_;function C(f){var h=f;return A.defined(h)&&a.is(h.range)&&(A.undefined(h.command)||N.is(h.command))}u.is=C})(nr=e.CodeLens||(e.CodeLens={}));var cs;(function(u){function _(f,h){return{tabSize:f,insertSpaces:h}}u.create=_;function C(f){var h=f;return A.defined(h)&&A.uinteger(h.tabSize)&&A.boolean(h.insertSpaces)}u.is=C})(cs=e.FormattingOptions||(e.FormattingOptions={}));var xn;(function(u){function _(f,h,D){return{range:f,target:h,data:D}}u.create=_;function C(f){var h=f;return A.defined(h)&&a.is(h.range)&&(A.undefined(h.target)||A.string(h.target))}u.is=C})(xn=e.DocumentLink||(e.DocumentLink={}));var w;(function(u){function _(f,h){return{range:f,parent:h}}u.create=_;function C(f){var h=f;return A.objectLiteral(h)&&a.is(h.range)&&(h.parent===void 0||u.is(h.parent))}u.is=C})(w=e.SelectionRange||(e.SelectionRange={}));var z;(function(u){u.namespace="namespace",u.type="type",u.class="class",u.enum="enum",u.interface="interface",u.struct="struct",u.typeParameter="typeParameter",u.parameter="parameter",u.variable="variable",u.property="property",u.enumMember="enumMember",u.event="event",u.function="function",u.method="method",u.macro="macro",u.keyword="keyword",u.modifier="modifier",u.comment="comment",u.string="string",u.number="number",u.regexp="regexp",u.operator="operator",u.decorator="decorator"})(z=e.SemanticTokenTypes||(e.SemanticTokenTypes={}));var H;(function(u){u.declaration="declaration",u.definition="definition",u.readonly="readonly",u.static="static",u.deprecated="deprecated",u.abstract="abstract",u.async="async",u.modification="modification",u.documentation="documentation",u.defaultLibrary="defaultLibrary"})(H=e.SemanticTokenModifiers||(e.SemanticTokenModifiers={}));var ee;(function(u){function _(C){var f=C;return A.objectLiteral(f)&&(f.resultId===void 0||typeof f.resultId=="string")&&Array.isArray(f.data)&&(f.data.length===0||typeof f.data[0]=="number")}u.is=_})(ee=e.SemanticTokens||(e.SemanticTokens={}));var Ae;(function(u){function _(f,h){return{range:f,text:h}}u.create=_;function C(f){var h=f;return h!=null&&a.is(h.range)&&A.string(h.text)}u.is=C})(Ae=e.InlineValueText||(e.InlineValueText={}));var Fe;(function(u){function _(f,h,D){return{range:f,variableName:h,caseSensitiveLookup:D}}u.create=_;function C(f){var h=f;return h!=null&&a.is(h.range)&&A.boolean(h.caseSensitiveLookup)&&(A.string(h.variableName)||h.variableName===void 0)}u.is=C})(Fe=e.InlineValueVariableLookup||(e.InlineValueVariableLookup={}));var Pe;(function(u){function _(f,h){return{range:f,expression:h}}u.create=_;function C(f){var h=f;return h!=null&&a.is(h.range)&&(A.string(h.expression)||h.expression===void 0)}u.is=C})(Pe=e.InlineValueEvaluatableExpression||(e.InlineValueEvaluatableExpression={}));var Oe;(function(u){function _(f,h){return{frameId:f,stoppedLocation:h}}u.create=_;function C(f){var h=f;return A.defined(h)&&a.is(f.stoppedLocation)}u.is=C})(Oe=e.InlineValueContext||(e.InlineValueContext={}));var pe;(function(u){u.Type=1,u.Parameter=2;function _(C){return C===1||C===2}u.is=_})(pe=e.InlayHintKind||(e.InlayHintKind={}));var Ee;(function(u){function _(f){return{value:f}}u.create=_;function C(f){var h=f;return A.objectLiteral(h)&&(h.tooltip===void 0||A.string(h.tooltip)||Sn.is(h.tooltip))&&(h.location===void 0||l.is(h.location))&&(h.command===void 0||N.is(h.command))}u.is=C})(Ee=e.InlayHintLabelPart||(e.InlayHintLabelPart={}));var _e;(function(u){function _(f,h,D){var O={position:f,label:h};return D!==void 0&&(O.kind=D),O}u.create=_;function C(f){var h=f;return A.objectLiteral(h)&&o.is(h.position)&&(A.string(h.label)||A.typedArray(h.label,Ee.is))&&(h.kind===void 0||pe.is(h.kind))&&h.textEdits===void 0||A.typedArray(h.textEdits,R.is)&&(h.tooltip===void 0||A.string(h.tooltip)||Sn.is(h.tooltip))&&(h.paddingLeft===void 0||A.boolean(h.paddingLeft))&&(h.paddingRight===void 0||A.boolean(h.paddingRight))}u.is=C})(_e=e.InlayHint||(e.InlayHint={}));var Ue;(function(u){function _(C){var f=C;return A.objectLiteral(f)&&i.is(f.uri)&&A.string(f.name)}u.is=_})(Ue=e.WorkspaceFolder||(e.WorkspaceFolder={})),e.EOL=[`
|
31
31
|
`,`\r
|
32
|
-
`,"\r"];var Qe;(function(u){function
|
33
|
-
`,
|
34
|
-
`&&h++}f&&C.length>0&&S.push(C.length),this._lineOffsets=S}return this._lineOffsets},u.prototype.positionAt=function(S){S=Math.max(Math.min(S,this._content.length),0);var C=this.getLineOffsets(),f=0,h=C.length;if(h===0)return o.create(0,S);for(;f<h;){var R=Math.floor((f+h)/2);C[R]>S?h=R:f=R+1}var N=f-1;return o.create(N,S-C[N])},u.prototype.offsetAt=function(S){var C=this.getLineOffsets();if(S.line>=C.length)return this._content.length;if(S.line<0)return 0;var f=C[S.line],h=S.line+1<C.length?C[S.line+1]:this._content.length;return Math.max(Math.min(f+S.character,h),f)},Object.defineProperty(u.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),u}(),E;(function(u){var S=Object.prototype.toString;function C(me){return typeof me<"u"}u.defined=C;function f(me){return typeof me>"u"}u.undefined=f;function h(me){return me===!0||me===!1}u.boolean=h;function R(me){return S.call(me)==="[object String]"}u.string=R;function N(me){return S.call(me)==="[object Number]"}u.number=N;function de(me,mi,ds){return S.call(me)==="[object Number]"&&mi<=me&&me<=ds}u.numberRange=de;function je(me){return S.call(me)==="[object Number]"&&-2147483648<=me&&me<=2147483647}u.integer=je;function De(me){return S.call(me)==="[object Number]"&&0<=me&&me<=2147483647}u.uinteger=De;function Tt(me){return S.call(me)==="[object Function]"}u.func=Tt;function It(me){return me!==null&&typeof me=="object"}u.objectLiteral=It;function sn(me,mi){return Array.isArray(me)&&me.every(mi)}u.typedArray=sn})(E||(E={}))})});var Le=J(dt=>{"use strict";Object.defineProperty(dt,"__esModule",{value:!0});dt.ProtocolNotificationType=dt.ProtocolNotificationType0=dt.ProtocolRequestType=dt.ProtocolRequestType0=dt.RegistrationType=dt.MessageDirection=void 0;var Si=Xn(),Jf;(function(t){t.clientToServer="clientToServer",t.serverToClient="serverToClient",t.both="both"})(Jf=dt.MessageDirection||(dt.MessageDirection={}));var Nl=class{constructor(e){this.method=e}};dt.RegistrationType=Nl;var Ol=class extends Si.RequestType0{constructor(e){super(e)}};dt.ProtocolRequestType0=Ol;var Wl=class extends Si.RequestType{constructor(e){super(e,Si.ParameterStructures.byName)}};dt.ProtocolRequestType=Wl;var Ll=class extends Si.NotificationType0{constructor(e){super(e)}};dt.ProtocolNotificationType0=Ll;var ql=class extends Si.NotificationType{constructor(e){super(e,Si.ParameterStructures.byName)}};dt.ProtocolNotificationType=ql});var Es=J(Ge=>{"use strict";Object.defineProperty(Ge,"__esModule",{value:!0});Ge.objectLiteral=Ge.typedArray=Ge.stringArray=Ge.array=Ge.func=Ge.error=Ge.number=Ge.string=Ge.boolean=void 0;function Xf(t){return t===!0||t===!1}Ge.boolean=Xf;function lh(t){return typeof t=="string"||t instanceof String}Ge.string=lh;function Yf(t){return typeof t=="number"||t instanceof Number}Ge.number=Yf;function Qf(t){return t instanceof Error}Ge.error=Qf;function Zf(t){return typeof t=="function"}Ge.func=Zf;function ch(t){return Array.isArray(t)}Ge.array=ch;function eg(t){return ch(t)&&t.every(e=>lh(e))}Ge.stringArray=eg;function tg(t,e){return Array.isArray(t)&&t.every(e)}Ge.typedArray=tg;function ng(t){return t!==null&&typeof t=="object"}Ge.objectLiteral=ng});var hh=J(cr=>{"use strict";Object.defineProperty(cr,"__esModule",{value:!0});cr.ImplementationRequest=void 0;var dh=Le(),ig;(function(t){t.method="textDocument/implementation",t.messageDirection=dh.MessageDirection.clientToServer,t.type=new dh.ProtocolRequestType(t.method)})(ig=cr.ImplementationRequest||(cr.ImplementationRequest={}))});var ph=J(dr=>{"use strict";Object.defineProperty(dr,"__esModule",{value:!0});dr.TypeDefinitionRequest=void 0;var uh=Le(),rg;(function(t){t.method="textDocument/typeDefinition",t.messageDirection=uh.MessageDirection.clientToServer,t.type=new uh.ProtocolRequestType(t.method)})(rg=dr.TypeDefinitionRequest||(dr.TypeDefinitionRequest={}))});var mh=J(Fn=>{"use strict";Object.defineProperty(Fn,"__esModule",{value:!0});Fn.DidChangeWorkspaceFoldersNotification=Fn.WorkspaceFoldersRequest=void 0;var Ds=Le(),sg;(function(t){t.method="workspace/workspaceFolders",t.messageDirection=Ds.MessageDirection.serverToClient,t.type=new Ds.ProtocolRequestType0(t.method)})(sg=Fn.WorkspaceFoldersRequest||(Fn.WorkspaceFoldersRequest={}));var og;(function(t){t.method="workspace/didChangeWorkspaceFolders",t.messageDirection=Ds.MessageDirection.clientToServer,t.type=new Ds.ProtocolNotificationType(t.method)})(og=Fn.DidChangeWorkspaceFoldersNotification||(Fn.DidChangeWorkspaceFoldersNotification={}))});var gh=J(hr=>{"use strict";Object.defineProperty(hr,"__esModule",{value:!0});hr.ConfigurationRequest=void 0;var fh=Le(),ag;(function(t){t.method="workspace/configuration",t.messageDirection=fh.MessageDirection.serverToClient,t.type=new fh.ProtocolRequestType(t.method)})(ag=hr.ConfigurationRequest||(hr.ConfigurationRequest={}))});var bh=J(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.ColorPresentationRequest=kn.DocumentColorRequest=void 0;var Rs=Le(),lg;(function(t){t.method="textDocument/documentColor",t.messageDirection=Rs.MessageDirection.clientToServer,t.type=new Rs.ProtocolRequestType(t.method)})(lg=kn.DocumentColorRequest||(kn.DocumentColorRequest={}));var cg;(function(t){t.method="textDocument/colorPresentation",t.messageDirection=Rs.MessageDirection.clientToServer,t.type=new Rs.ProtocolRequestType(t.method)})(cg=kn.ColorPresentationRequest||(kn.ColorPresentationRequest={}))});var wh=J(ur=>{"use strict";Object.defineProperty(ur,"__esModule",{value:!0});ur.FoldingRangeRequest=void 0;var yh=Le(),dg;(function(t){t.method="textDocument/foldingRange",t.messageDirection=yh.MessageDirection.clientToServer,t.type=new yh.ProtocolRequestType(t.method)})(dg=ur.FoldingRangeRequest||(ur.FoldingRangeRequest={}))});var Sh=J(pr=>{"use strict";Object.defineProperty(pr,"__esModule",{value:!0});pr.DeclarationRequest=void 0;var vh=Le(),hg;(function(t){t.method="textDocument/declaration",t.messageDirection=vh.MessageDirection.clientToServer,t.type=new vh.ProtocolRequestType(t.method)})(hg=pr.DeclarationRequest||(pr.DeclarationRequest={}))});var xh=J(mr=>{"use strict";Object.defineProperty(mr,"__esModule",{value:!0});mr.SelectionRangeRequest=void 0;var _h=Le(),ug;(function(t){t.method="textDocument/selectionRange",t.messageDirection=_h.MessageDirection.clientToServer,t.type=new _h.ProtocolRequestType(t.method)})(ug=mr.SelectionRangeRequest||(mr.SelectionRangeRequest={}))});var Ch=J(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.WorkDoneProgressCancelNotification=Nt.WorkDoneProgressCreateRequest=Nt.WorkDoneProgress=void 0;var pg=Xn(),Ms=Le(),mg;(function(t){t.type=new pg.ProgressType;function e(n){return n===t.type}t.is=e})(mg=Nt.WorkDoneProgress||(Nt.WorkDoneProgress={}));var fg;(function(t){t.method="window/workDoneProgress/create",t.messageDirection=Ms.MessageDirection.serverToClient,t.type=new Ms.ProtocolRequestType(t.method)})(fg=Nt.WorkDoneProgressCreateRequest||(Nt.WorkDoneProgressCreateRequest={}));var gg;(function(t){t.method="window/workDoneProgress/cancel",t.messageDirection=Ms.MessageDirection.clientToServer,t.type=new Ms.ProtocolNotificationType(t.method)})(gg=Nt.WorkDoneProgressCancelNotification||(Nt.WorkDoneProgressCancelNotification={}))});var Fh=J(Ot=>{"use strict";Object.defineProperty(Ot,"__esModule",{value:!0});Ot.CallHierarchyOutgoingCallsRequest=Ot.CallHierarchyIncomingCallsRequest=Ot.CallHierarchyPrepareRequest=void 0;var _i=Le(),bg;(function(t){t.method="textDocument/prepareCallHierarchy",t.messageDirection=_i.MessageDirection.clientToServer,t.type=new _i.ProtocolRequestType(t.method)})(bg=Ot.CallHierarchyPrepareRequest||(Ot.CallHierarchyPrepareRequest={}));var yg;(function(t){t.method="callHierarchy/incomingCalls",t.messageDirection=_i.MessageDirection.clientToServer,t.type=new _i.ProtocolRequestType(t.method)})(yg=Ot.CallHierarchyIncomingCallsRequest||(Ot.CallHierarchyIncomingCallsRequest={}));var wg;(function(t){t.method="callHierarchy/outgoingCalls",t.messageDirection=_i.MessageDirection.clientToServer,t.type=new _i.ProtocolRequestType(t.method)})(wg=Ot.CallHierarchyOutgoingCallsRequest||(Ot.CallHierarchyOutgoingCallsRequest={}))});var kh=J(Je=>{"use strict";Object.defineProperty(Je,"__esModule",{value:!0});Je.SemanticTokensRefreshRequest=Je.SemanticTokensRangeRequest=Je.SemanticTokensDeltaRequest=Je.SemanticTokensRequest=Je.SemanticTokensRegistrationType=Je.TokenFormat=void 0;var dn=Le(),vg;(function(t){t.Relative="relative"})(vg=Je.TokenFormat||(Je.TokenFormat={}));var Ts;(function(t){t.method="textDocument/semanticTokens",t.type=new dn.RegistrationType(t.method)})(Ts=Je.SemanticTokensRegistrationType||(Je.SemanticTokensRegistrationType={}));var Sg;(function(t){t.method="textDocument/semanticTokens/full",t.messageDirection=dn.MessageDirection.clientToServer,t.type=new dn.ProtocolRequestType(t.method),t.registrationMethod=Ts.method})(Sg=Je.SemanticTokensRequest||(Je.SemanticTokensRequest={}));var _g;(function(t){t.method="textDocument/semanticTokens/full/delta",t.messageDirection=dn.MessageDirection.clientToServer,t.type=new dn.ProtocolRequestType(t.method),t.registrationMethod=Ts.method})(_g=Je.SemanticTokensDeltaRequest||(Je.SemanticTokensDeltaRequest={}));var xg;(function(t){t.method="textDocument/semanticTokens/range",t.messageDirection=dn.MessageDirection.clientToServer,t.type=new dn.ProtocolRequestType(t.method),t.registrationMethod=Ts.method})(xg=Je.SemanticTokensRangeRequest||(Je.SemanticTokensRangeRequest={}));var Cg;(function(t){t.method="workspace/semanticTokens/refresh",t.messageDirection=dn.MessageDirection.serverToClient,t.type=new dn.ProtocolRequestType0(t.method)})(Cg=Je.SemanticTokensRefreshRequest||(Je.SemanticTokensRefreshRequest={}))});var Eh=J(fr=>{"use strict";Object.defineProperty(fr,"__esModule",{value:!0});fr.ShowDocumentRequest=void 0;var Ah=Le(),Fg;(function(t){t.method="window/showDocument",t.messageDirection=Ah.MessageDirection.serverToClient,t.type=new Ah.ProtocolRequestType(t.method)})(Fg=fr.ShowDocumentRequest||(fr.ShowDocumentRequest={}))});var Rh=J(gr=>{"use strict";Object.defineProperty(gr,"__esModule",{value:!0});gr.LinkedEditingRangeRequest=void 0;var Dh=Le(),kg;(function(t){t.method="textDocument/linkedEditingRange",t.messageDirection=Dh.MessageDirection.clientToServer,t.type=new Dh.ProtocolRequestType(t.method)})(kg=gr.LinkedEditingRangeRequest||(gr.LinkedEditingRangeRequest={}))});var Mh=J(qe=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});qe.WillDeleteFilesRequest=qe.DidDeleteFilesNotification=qe.DidRenameFilesNotification=qe.WillRenameFilesRequest=qe.DidCreateFilesNotification=qe.WillCreateFilesRequest=qe.FileOperationPatternKind=void 0;var xt=Le(),Ag;(function(t){t.file="file",t.folder="folder"})(Ag=qe.FileOperationPatternKind||(qe.FileOperationPatternKind={}));var Eg;(function(t){t.method="workspace/willCreateFiles",t.messageDirection=xt.MessageDirection.clientToServer,t.type=new xt.ProtocolRequestType(t.method)})(Eg=qe.WillCreateFilesRequest||(qe.WillCreateFilesRequest={}));var Dg;(function(t){t.method="workspace/didCreateFiles",t.messageDirection=xt.MessageDirection.clientToServer,t.type=new xt.ProtocolNotificationType(t.method)})(Dg=qe.DidCreateFilesNotification||(qe.DidCreateFilesNotification={}));var Rg;(function(t){t.method="workspace/willRenameFiles",t.messageDirection=xt.MessageDirection.clientToServer,t.type=new xt.ProtocolRequestType(t.method)})(Rg=qe.WillRenameFilesRequest||(qe.WillRenameFilesRequest={}));var Mg;(function(t){t.method="workspace/didRenameFiles",t.messageDirection=xt.MessageDirection.clientToServer,t.type=new xt.ProtocolNotificationType(t.method)})(Mg=qe.DidRenameFilesNotification||(qe.DidRenameFilesNotification={}));var Tg;(function(t){t.method="workspace/didDeleteFiles",t.messageDirection=xt.MessageDirection.clientToServer,t.type=new xt.ProtocolNotificationType(t.method)})(Tg=qe.DidDeleteFilesNotification||(qe.DidDeleteFilesNotification={}));var Ig;(function(t){t.method="workspace/willDeleteFiles",t.messageDirection=xt.MessageDirection.clientToServer,t.type=new xt.ProtocolRequestType(t.method)})(Ig=qe.WillDeleteFilesRequest||(qe.WillDeleteFilesRequest={}))});var Ih=J(Wt=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:!0});Wt.MonikerRequest=Wt.MonikerKind=Wt.UniquenessLevel=void 0;var Th=Le(),Pg;(function(t){t.document="document",t.project="project",t.group="group",t.scheme="scheme",t.global="global"})(Pg=Wt.UniquenessLevel||(Wt.UniquenessLevel={}));var zg;(function(t){t.$import="import",t.$export="export",t.local="local"})(zg=Wt.MonikerKind||(Wt.MonikerKind={}));var Ng;(function(t){t.method="textDocument/moniker",t.messageDirection=Th.MessageDirection.clientToServer,t.type=new Th.ProtocolRequestType(t.method)})(Ng=Wt.MonikerRequest||(Wt.MonikerRequest={}))});var Ph=J(Lt=>{"use strict";Object.defineProperty(Lt,"__esModule",{value:!0});Lt.TypeHierarchySubtypesRequest=Lt.TypeHierarchySupertypesRequest=Lt.TypeHierarchyPrepareRequest=void 0;var xi=Le(),Og;(function(t){t.method="textDocument/prepareTypeHierarchy",t.messageDirection=xi.MessageDirection.clientToServer,t.type=new xi.ProtocolRequestType(t.method)})(Og=Lt.TypeHierarchyPrepareRequest||(Lt.TypeHierarchyPrepareRequest={}));var Wg;(function(t){t.method="typeHierarchy/supertypes",t.messageDirection=xi.MessageDirection.clientToServer,t.type=new xi.ProtocolRequestType(t.method)})(Wg=Lt.TypeHierarchySupertypesRequest||(Lt.TypeHierarchySupertypesRequest={}));var Lg;(function(t){t.method="typeHierarchy/subtypes",t.messageDirection=xi.MessageDirection.clientToServer,t.type=new xi.ProtocolRequestType(t.method)})(Lg=Lt.TypeHierarchySubtypesRequest||(Lt.TypeHierarchySubtypesRequest={}))});var zh=J(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.InlineValueRefreshRequest=An.InlineValueRequest=void 0;var Is=Le(),qg;(function(t){t.method="textDocument/inlineValue",t.messageDirection=Is.MessageDirection.clientToServer,t.type=new Is.ProtocolRequestType(t.method)})(qg=An.InlineValueRequest||(An.InlineValueRequest={}));var jg;(function(t){t.method="workspace/inlineValue/refresh",t.messageDirection=Is.MessageDirection.serverToClient,t.type=new Is.ProtocolRequestType0(t.method)})(jg=An.InlineValueRefreshRequest||(An.InlineValueRefreshRequest={}))});var Nh=J(qt=>{"use strict";Object.defineProperty(qt,"__esModule",{value:!0});qt.InlayHintRefreshRequest=qt.InlayHintResolveRequest=qt.InlayHintRequest=void 0;var Ci=Le(),$g;(function(t){t.method="textDocument/inlayHint",t.messageDirection=Ci.MessageDirection.clientToServer,t.type=new Ci.ProtocolRequestType(t.method)})($g=qt.InlayHintRequest||(qt.InlayHintRequest={}));var Ug;(function(t){t.method="inlayHint/resolve",t.messageDirection=Ci.MessageDirection.clientToServer,t.type=new Ci.ProtocolRequestType(t.method)})(Ug=qt.InlayHintResolveRequest||(qt.InlayHintResolveRequest={}));var Vg;(function(t){t.method="workspace/inlayHint/refresh",t.messageDirection=Ci.MessageDirection.serverToClient,t.type=new Ci.ProtocolRequestType0(t.method)})(Vg=qt.InlayHintRefreshRequest||(qt.InlayHintRefreshRequest={}))});var Wh=J(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.DiagnosticRefreshRequest=et.WorkspaceDiagnosticRequest=et.DocumentDiagnosticRequest=et.DocumentDiagnosticReportKind=et.DiagnosticServerCancellationData=void 0;var Oh=Xn(),Bg=Es(),Fi=Le(),Hg;(function(t){function e(n){let i=n;return i&&Bg.boolean(i.retriggerRequest)}t.is=e})(Hg=et.DiagnosticServerCancellationData||(et.DiagnosticServerCancellationData={}));var Kg;(function(t){t.Full="full",t.Unchanged="unchanged"})(Kg=et.DocumentDiagnosticReportKind||(et.DocumentDiagnosticReportKind={}));var Gg;(function(t){t.method="textDocument/diagnostic",t.messageDirection=Fi.MessageDirection.clientToServer,t.type=new Fi.ProtocolRequestType(t.method),t.partialResult=new Oh.ProgressType})(Gg=et.DocumentDiagnosticRequest||(et.DocumentDiagnosticRequest={}));var Jg;(function(t){t.method="workspace/diagnostic",t.messageDirection=Fi.MessageDirection.clientToServer,t.type=new Fi.ProtocolRequestType(t.method),t.partialResult=new Oh.ProgressType})(Jg=et.WorkspaceDiagnosticRequest||(et.WorkspaceDiagnosticRequest={}));var Xg;(function(t){t.method="workspace/diagnostic/refresh",t.messageDirection=Fi.MessageDirection.serverToClient,t.type=new Fi.ProtocolRequestType0(t.method)})(Xg=et.DiagnosticRefreshRequest||(et.DiagnosticRefreshRequest={}))});var jh=J(Se=>{"use strict";Object.defineProperty(Se,"__esModule",{value:!0});Se.DidCloseNotebookDocumentNotification=Se.DidSaveNotebookDocumentNotification=Se.DidChangeNotebookDocumentNotification=Se.NotebookCellArrayChange=Se.DidOpenNotebookDocumentNotification=Se.NotebookDocumentSyncRegistrationType=Se.NotebookDocument=Se.NotebookCell=Se.ExecutionSummary=Se.NotebookCellKind=void 0;var br=As(),jt=Es(),Gt=Le(),Lh;(function(t){t.Markup=1,t.Code=2;function e(n){return n===1||n===2}t.is=e})(Lh=Se.NotebookCellKind||(Se.NotebookCellKind={}));var qh;(function(t){function e(r,s){let o={executionOrder:r};return(s===!0||s===!1)&&(o.success=s),o}t.create=e;function n(r){let s=r;return jt.objectLiteral(s)&&br.uinteger.is(s.executionOrder)&&(s.success===void 0||jt.boolean(s.success))}t.is=n;function i(r,s){return r===s?!0:r==null||s===null||s===void 0?!1:r.executionOrder===s.executionOrder&&r.success===s.success}t.equals=i})(qh=Se.ExecutionSummary||(Se.ExecutionSummary={}));var jl;(function(t){function e(s,o){return{kind:s,document:o}}t.create=e;function n(s){let o=s;return jt.objectLiteral(o)&&Lh.is(o.kind)&&br.DocumentUri.is(o.document)&&(o.metadata===void 0||jt.objectLiteral(o.metadata))}t.is=n;function i(s,o){let a=new Set;return s.document!==o.document&&a.add("document"),s.kind!==o.kind&&a.add("kind"),s.executionSummary!==o.executionSummary&&a.add("executionSummary"),(s.metadata!==void 0||o.metadata!==void 0)&&!r(s.metadata,o.metadata)&&a.add("metadata"),(s.executionSummary!==void 0||o.executionSummary!==void 0)&&!qh.equals(s.executionSummary,o.executionSummary)&&a.add("executionSummary"),a}t.diff=i;function r(s,o){if(s===o)return!0;if(s==null||o===null||o===void 0||typeof s!=typeof o||typeof s!="object")return!1;let a=Array.isArray(s),l=Array.isArray(o);if(a!==l)return!1;if(a&&l){if(s.length!==o.length)return!1;for(let c=0;c<s.length;c++)if(!r(s[c],o[c]))return!1}if(jt.objectLiteral(s)&&jt.objectLiteral(o)){let c=Object.keys(s),d=Object.keys(o);if(c.length!==d.length||(c.sort(),d.sort(),!r(c,d)))return!1;for(let p=0;p<c.length;p++){let b=c[p];if(!r(s[b],o[b]))return!1}}return!0}})(jl=Se.NotebookCell||(Se.NotebookCell={}));var Yg;(function(t){function e(i,r,s,o){return{uri:i,notebookType:r,version:s,cells:o}}t.create=e;function n(i){let r=i;return jt.objectLiteral(r)&&jt.string(r.uri)&&br.integer.is(r.version)&&jt.typedArray(r.cells,jl.is)}t.is=n})(Yg=Se.NotebookDocument||(Se.NotebookDocument={}));var yr;(function(t){t.method="notebookDocument/sync",t.messageDirection=Gt.MessageDirection.clientToServer,t.type=new Gt.RegistrationType(t.method)})(yr=Se.NotebookDocumentSyncRegistrationType||(Se.NotebookDocumentSyncRegistrationType={}));var Qg;(function(t){t.method="notebookDocument/didOpen",t.messageDirection=Gt.MessageDirection.clientToServer,t.type=new Gt.ProtocolNotificationType(t.method),t.registrationMethod=yr.method})(Qg=Se.DidOpenNotebookDocumentNotification||(Se.DidOpenNotebookDocumentNotification={}));var Zg;(function(t){function e(i){let r=i;return jt.objectLiteral(r)&&br.uinteger.is(r.start)&&br.uinteger.is(r.deleteCount)&&(r.cells===void 0||jt.typedArray(r.cells,jl.is))}t.is=e;function n(i,r,s){let o={start:i,deleteCount:r};return s!==void 0&&(o.cells=s),o}t.create=n})(Zg=Se.NotebookCellArrayChange||(Se.NotebookCellArrayChange={}));var eb;(function(t){t.method="notebookDocument/didChange",t.messageDirection=Gt.MessageDirection.clientToServer,t.type=new Gt.ProtocolNotificationType(t.method),t.registrationMethod=yr.method})(eb=Se.DidChangeNotebookDocumentNotification||(Se.DidChangeNotebookDocumentNotification={}));var tb;(function(t){t.method="notebookDocument/didSave",t.messageDirection=Gt.MessageDirection.clientToServer,t.type=new Gt.ProtocolNotificationType(t.method),t.registrationMethod=yr.method})(tb=Se.DidSaveNotebookDocumentNotification||(Se.DidSaveNotebookDocumentNotification={}));var nb;(function(t){t.method="notebookDocument/didClose",t.messageDirection=Gt.MessageDirection.clientToServer,t.type=new Gt.ProtocolNotificationType(t.method),t.registrationMethod=yr.method})(nb=Se.DidCloseNotebookDocumentNotification||(Se.DidCloseNotebookDocumentNotification={}))});var Xh=J(m=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0});m.WorkspaceSymbolRequest=m.CodeActionResolveRequest=m.CodeActionRequest=m.DocumentSymbolRequest=m.DocumentHighlightRequest=m.ReferencesRequest=m.DefinitionRequest=m.SignatureHelpRequest=m.SignatureHelpTriggerKind=m.HoverRequest=m.CompletionResolveRequest=m.CompletionRequest=m.CompletionTriggerKind=m.PublishDiagnosticsNotification=m.WatchKind=m.RelativePattern=m.FileChangeType=m.DidChangeWatchedFilesNotification=m.WillSaveTextDocumentWaitUntilRequest=m.WillSaveTextDocumentNotification=m.TextDocumentSaveReason=m.DidSaveTextDocumentNotification=m.DidCloseTextDocumentNotification=m.DidChangeTextDocumentNotification=m.TextDocumentContentChangeEvent=m.DidOpenTextDocumentNotification=m.TextDocumentSyncKind=m.TelemetryEventNotification=m.LogMessageNotification=m.ShowMessageRequest=m.ShowMessageNotification=m.MessageType=m.DidChangeConfigurationNotification=m.ExitNotification=m.ShutdownRequest=m.InitializedNotification=m.InitializeErrorCodes=m.InitializeRequest=m.WorkDoneProgressOptions=m.TextDocumentRegistrationOptions=m.StaticRegistrationOptions=m.PositionEncodingKind=m.FailureHandlingKind=m.ResourceOperationKind=m.UnregistrationRequest=m.RegistrationRequest=m.DocumentSelector=m.NotebookCellTextDocumentFilter=m.NotebookDocumentFilter=m.TextDocumentFilter=void 0;m.TypeHierarchySubtypesRequest=m.TypeHierarchyPrepareRequest=m.MonikerRequest=m.MonikerKind=m.UniquenessLevel=m.WillDeleteFilesRequest=m.DidDeleteFilesNotification=m.WillRenameFilesRequest=m.DidRenameFilesNotification=m.WillCreateFilesRequest=m.DidCreateFilesNotification=m.FileOperationPatternKind=m.LinkedEditingRangeRequest=m.ShowDocumentRequest=m.SemanticTokensRegistrationType=m.SemanticTokensRefreshRequest=m.SemanticTokensRangeRequest=m.SemanticTokensDeltaRequest=m.SemanticTokensRequest=m.TokenFormat=m.CallHierarchyPrepareRequest=m.CallHierarchyOutgoingCallsRequest=m.CallHierarchyIncomingCallsRequest=m.WorkDoneProgressCancelNotification=m.WorkDoneProgressCreateRequest=m.WorkDoneProgress=m.SelectionRangeRequest=m.DeclarationRequest=m.FoldingRangeRequest=m.ColorPresentationRequest=m.DocumentColorRequest=m.ConfigurationRequest=m.DidChangeWorkspaceFoldersNotification=m.WorkspaceFoldersRequest=m.TypeDefinitionRequest=m.ImplementationRequest=m.ApplyWorkspaceEditRequest=m.ExecuteCommandRequest=m.PrepareRenameRequest=m.RenameRequest=m.PrepareSupportDefaultBehavior=m.DocumentOnTypeFormattingRequest=m.DocumentRangeFormattingRequest=m.DocumentFormattingRequest=m.DocumentLinkResolveRequest=m.DocumentLinkRequest=m.CodeLensRefreshRequest=m.CodeLensResolveRequest=m.CodeLensRequest=m.WorkspaceSymbolResolveRequest=void 0;m.DidCloseNotebookDocumentNotification=m.DidSaveNotebookDocumentNotification=m.DidChangeNotebookDocumentNotification=m.NotebookCellArrayChange=m.DidOpenNotebookDocumentNotification=m.NotebookDocumentSyncRegistrationType=m.NotebookDocument=m.NotebookCell=m.ExecutionSummary=m.NotebookCellKind=m.DiagnosticRefreshRequest=m.WorkspaceDiagnosticRequest=m.DocumentDiagnosticRequest=m.DocumentDiagnosticReportKind=m.DiagnosticServerCancellationData=m.InlayHintRefreshRequest=m.InlayHintResolveRequest=m.InlayHintRequest=m.InlineValueRefreshRequest=m.InlineValueRequest=m.TypeHierarchySupertypesRequest=void 0;var U=Le(),$h=As(),tt=Es(),ib=hh();Object.defineProperty(m,"ImplementationRequest",{enumerable:!0,get:function(){return ib.ImplementationRequest}});var rb=ph();Object.defineProperty(m,"TypeDefinitionRequest",{enumerable:!0,get:function(){return rb.TypeDefinitionRequest}});var Uh=mh();Object.defineProperty(m,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return Uh.WorkspaceFoldersRequest}});Object.defineProperty(m,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return Uh.DidChangeWorkspaceFoldersNotification}});var sb=gh();Object.defineProperty(m,"ConfigurationRequest",{enumerable:!0,get:function(){return sb.ConfigurationRequest}});var Vh=bh();Object.defineProperty(m,"DocumentColorRequest",{enumerable:!0,get:function(){return Vh.DocumentColorRequest}});Object.defineProperty(m,"ColorPresentationRequest",{enumerable:!0,get:function(){return Vh.ColorPresentationRequest}});var ob=wh();Object.defineProperty(m,"FoldingRangeRequest",{enumerable:!0,get:function(){return ob.FoldingRangeRequest}});var ab=Sh();Object.defineProperty(m,"DeclarationRequest",{enumerable:!0,get:function(){return ab.DeclarationRequest}});var lb=xh();Object.defineProperty(m,"SelectionRangeRequest",{enumerable:!0,get:function(){return lb.SelectionRangeRequest}});var $l=Ch();Object.defineProperty(m,"WorkDoneProgress",{enumerable:!0,get:function(){return $l.WorkDoneProgress}});Object.defineProperty(m,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return $l.WorkDoneProgressCreateRequest}});Object.defineProperty(m,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return $l.WorkDoneProgressCancelNotification}});var Ul=Fh();Object.defineProperty(m,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return Ul.CallHierarchyIncomingCallsRequest}});Object.defineProperty(m,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return Ul.CallHierarchyOutgoingCallsRequest}});Object.defineProperty(m,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return Ul.CallHierarchyPrepareRequest}});var ki=kh();Object.defineProperty(m,"TokenFormat",{enumerable:!0,get:function(){return ki.TokenFormat}});Object.defineProperty(m,"SemanticTokensRequest",{enumerable:!0,get:function(){return ki.SemanticTokensRequest}});Object.defineProperty(m,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return ki.SemanticTokensDeltaRequest}});Object.defineProperty(m,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return ki.SemanticTokensRangeRequest}});Object.defineProperty(m,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return ki.SemanticTokensRefreshRequest}});Object.defineProperty(m,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return ki.SemanticTokensRegistrationType}});var cb=Eh();Object.defineProperty(m,"ShowDocumentRequest",{enumerable:!0,get:function(){return cb.ShowDocumentRequest}});var db=Rh();Object.defineProperty(m,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return db.LinkedEditingRangeRequest}});var Yn=Mh();Object.defineProperty(m,"FileOperationPatternKind",{enumerable:!0,get:function(){return Yn.FileOperationPatternKind}});Object.defineProperty(m,"DidCreateFilesNotification",{enumerable:!0,get:function(){return Yn.DidCreateFilesNotification}});Object.defineProperty(m,"WillCreateFilesRequest",{enumerable:!0,get:function(){return Yn.WillCreateFilesRequest}});Object.defineProperty(m,"DidRenameFilesNotification",{enumerable:!0,get:function(){return Yn.DidRenameFilesNotification}});Object.defineProperty(m,"WillRenameFilesRequest",{enumerable:!0,get:function(){return Yn.WillRenameFilesRequest}});Object.defineProperty(m,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return Yn.DidDeleteFilesNotification}});Object.defineProperty(m,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return Yn.WillDeleteFilesRequest}});var Vl=Ih();Object.defineProperty(m,"UniquenessLevel",{enumerable:!0,get:function(){return Vl.UniquenessLevel}});Object.defineProperty(m,"MonikerKind",{enumerable:!0,get:function(){return Vl.MonikerKind}});Object.defineProperty(m,"MonikerRequest",{enumerable:!0,get:function(){return Vl.MonikerRequest}});var Bl=Ph();Object.defineProperty(m,"TypeHierarchyPrepareRequest",{enumerable:!0,get:function(){return Bl.TypeHierarchyPrepareRequest}});Object.defineProperty(m,"TypeHierarchySubtypesRequest",{enumerable:!0,get:function(){return Bl.TypeHierarchySubtypesRequest}});Object.defineProperty(m,"TypeHierarchySupertypesRequest",{enumerable:!0,get:function(){return Bl.TypeHierarchySupertypesRequest}});var Bh=zh();Object.defineProperty(m,"InlineValueRequest",{enumerable:!0,get:function(){return Bh.InlineValueRequest}});Object.defineProperty(m,"InlineValueRefreshRequest",{enumerable:!0,get:function(){return Bh.InlineValueRefreshRequest}});var Hl=Nh();Object.defineProperty(m,"InlayHintRequest",{enumerable:!0,get:function(){return Hl.InlayHintRequest}});Object.defineProperty(m,"InlayHintResolveRequest",{enumerable:!0,get:function(){return Hl.InlayHintResolveRequest}});Object.defineProperty(m,"InlayHintRefreshRequest",{enumerable:!0,get:function(){return Hl.InlayHintRefreshRequest}});var wr=Wh();Object.defineProperty(m,"DiagnosticServerCancellationData",{enumerable:!0,get:function(){return wr.DiagnosticServerCancellationData}});Object.defineProperty(m,"DocumentDiagnosticReportKind",{enumerable:!0,get:function(){return wr.DocumentDiagnosticReportKind}});Object.defineProperty(m,"DocumentDiagnosticRequest",{enumerable:!0,get:function(){return wr.DocumentDiagnosticRequest}});Object.defineProperty(m,"WorkspaceDiagnosticRequest",{enumerable:!0,get:function(){return wr.WorkspaceDiagnosticRequest}});Object.defineProperty(m,"DiagnosticRefreshRequest",{enumerable:!0,get:function(){return wr.DiagnosticRefreshRequest}});var Jt=jh();Object.defineProperty(m,"NotebookCellKind",{enumerable:!0,get:function(){return Jt.NotebookCellKind}});Object.defineProperty(m,"ExecutionSummary",{enumerable:!0,get:function(){return Jt.ExecutionSummary}});Object.defineProperty(m,"NotebookCell",{enumerable:!0,get:function(){return Jt.NotebookCell}});Object.defineProperty(m,"NotebookDocument",{enumerable:!0,get:function(){return Jt.NotebookDocument}});Object.defineProperty(m,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:function(){return Jt.NotebookDocumentSyncRegistrationType}});Object.defineProperty(m,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:function(){return Jt.DidOpenNotebookDocumentNotification}});Object.defineProperty(m,"NotebookCellArrayChange",{enumerable:!0,get:function(){return Jt.NotebookCellArrayChange}});Object.defineProperty(m,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:function(){return Jt.DidChangeNotebookDocumentNotification}});Object.defineProperty(m,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:function(){return Jt.DidSaveNotebookDocumentNotification}});Object.defineProperty(m,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:function(){return Jt.DidCloseNotebookDocumentNotification}});var Hh;(function(t){function e(n){let i=n;return tt.string(i.language)||tt.string(i.scheme)||tt.string(i.pattern)}t.is=e})(Hh=m.TextDocumentFilter||(m.TextDocumentFilter={}));var Kh;(function(t){function e(n){let i=n;return tt.objectLiteral(i)&&(tt.string(i.notebookType)||tt.string(i.scheme)||tt.string(i.pattern))}t.is=e})(Kh=m.NotebookDocumentFilter||(m.NotebookDocumentFilter={}));var Gh;(function(t){function e(n){let i=n;return tt.objectLiteral(i)&&(tt.string(i.notebook)||Kh.is(i.notebook))&&(i.language===void 0||tt.string(i.language))}t.is=e})(Gh=m.NotebookCellTextDocumentFilter||(m.NotebookCellTextDocumentFilter={}));var Jh;(function(t){function e(n){if(!Array.isArray(n))return!1;for(let i of n)if(!tt.string(i)&&!Hh.is(i)&&!Gh.is(i))return!1;return!0}t.is=e})(Jh=m.DocumentSelector||(m.DocumentSelector={}));var hb;(function(t){t.method="client/registerCapability",t.messageDirection=U.MessageDirection.serverToClient,t.type=new U.ProtocolRequestType(t.method)})(hb=m.RegistrationRequest||(m.RegistrationRequest={}));var ub;(function(t){t.method="client/unregisterCapability",t.messageDirection=U.MessageDirection.serverToClient,t.type=new U.ProtocolRequestType(t.method)})(ub=m.UnregistrationRequest||(m.UnregistrationRequest={}));var pb;(function(t){t.Create="create",t.Rename="rename",t.Delete="delete"})(pb=m.ResourceOperationKind||(m.ResourceOperationKind={}));var mb;(function(t){t.Abort="abort",t.Transactional="transactional",t.TextOnlyTransactional="textOnlyTransactional",t.Undo="undo"})(mb=m.FailureHandlingKind||(m.FailureHandlingKind={}));var fb;(function(t){t.UTF8="utf-8",t.UTF16="utf-16",t.UTF32="utf-32"})(fb=m.PositionEncodingKind||(m.PositionEncodingKind={}));var gb;(function(t){function e(n){let i=n;return i&&tt.string(i.id)&&i.id.length>0}t.hasId=e})(gb=m.StaticRegistrationOptions||(m.StaticRegistrationOptions={}));var bb;(function(t){function e(n){let i=n;return i&&(i.documentSelector===null||Jh.is(i.documentSelector))}t.is=e})(bb=m.TextDocumentRegistrationOptions||(m.TextDocumentRegistrationOptions={}));var yb;(function(t){function e(i){let r=i;return tt.objectLiteral(r)&&(r.workDoneProgress===void 0||tt.boolean(r.workDoneProgress))}t.is=e;function n(i){let r=i;return r&&tt.boolean(r.workDoneProgress)}t.hasWorkDoneProgress=n})(yb=m.WorkDoneProgressOptions||(m.WorkDoneProgressOptions={}));var wb;(function(t){t.method="initialize",t.messageDirection=U.MessageDirection.clientToServer,t.type=new U.ProtocolRequestType(t.method)})(wb=m.InitializeRequest||(m.InitializeRequest={}));var vb;(function(t){t.unknownProtocolVersion=1})(vb=m.InitializeErrorCodes||(m.InitializeErrorCodes={}));var Sb;(function(t){t.method="initialized",t.messageDirection=U.MessageDirection.clientToServer,t.type=new U.ProtocolNotificationType(t.method)})(Sb=m.InitializedNotification||(m.InitializedNotification={}));var _b;(function(t){t.method="shutdown",t.messageDirection=U.MessageDirection.clientToServer,t.type=new U.ProtocolRequestType0(t.method)})(_b=m.ShutdownRequest||(m.ShutdownRequest={}));var xb;(function(t){t.method="exit",t.messageDirection=U.MessageDirection.clientToServer,t.type=new U.ProtocolNotificationType0(t.method)})(xb=m.ExitNotification||(m.ExitNotification={}));var Cb;(function(t){t.method="workspace/didChangeConfiguration",t.messageDirection=U.MessageDirection.clientToServer,t.type=new U.ProtocolNotificationType(t.method)})(Cb=m.DidChangeConfigurationNotification||(m.DidChangeConfigurationNotification={}));var Fb;(function(t){t.Error=1,t.Warning=2,t.Info=3,t.Log=4})(Fb=m.MessageType||(m.MessageType={}));var kb;(function(t){t.method="window/showMessage",t.messageDirection=U.MessageDirection.serverToClient,t.type=new U.ProtocolNotificationType(t.method)})(kb=m.ShowMessageNotification||(m.ShowMessageNotification={}));var Ab;(function(t){t.method="window/showMessageRequest",t.messageDirection=U.MessageDirection.serverToClient,t.type=new U.ProtocolRequestType(t.method)})(Ab=m.ShowMessageRequest||(m.ShowMessageRequest={}));var Eb;(function(t){t.method="window/logMessage",t.messageDirection=U.MessageDirection.serverToClient,t.type=new U.ProtocolNotificationType(t.method)})(Eb=m.LogMessageNotification||(m.LogMessageNotification={}));var Db;(function(t){t.method="telemetry/event",t.messageDirection=U.MessageDirection.serverToClient,t.type=new U.ProtocolNotificationType(t.method)})(Db=m.TelemetryEventNotification||(m.TelemetryEventNotification={}));var Rb;(function(t){t.None=0,t.Full=1,t.Incremental=2})(Rb=m.TextDocumentSyncKind||(m.TextDocumentSyncKind={}));var Mb;(function(t){t.method="textDocument/didOpen",t.messageDirection=U.MessageDirection.clientToServer,t.type=new U.ProtocolNotificationType(t.method)})(Mb=m.DidOpenTextDocumentNotification||(m.DidOpenTextDocumentNotification={}));var Tb;(function(t){function e(i){let r=i;return r!=null&&typeof r.text=="string"&&r.range!==void 0&&(r.rangeLength===void 0||typeof r.rangeLength=="number")}t.isIncremental=e;function n(i){let r=i;return r!=null&&typeof r.text=="string"&&r.range===void 0&&r.rangeLength===void 0}t.isFull=n})(Tb=m.TextDocumentContentChangeEvent||(m.TextDocumentContentChangeEvent={}));var Ib;(function(t){t.method="textDocument/didChange",t.messageDirection=U.MessageDirection.clientToServer,t.type=new U.ProtocolNotificationType(t.method)})(Ib=m.DidChangeTextDocumentNotification||(m.DidChangeTextDocumentNotification={}));var Pb;(function(t){t.method="textDocument/didClose",t.messageDirection=U.MessageDirection.clientToServer,t.type=new U.ProtocolNotificationType(t.method)})(Pb=m.DidCloseTextDocumentNotification||(m.DidCloseTextDocumentNotification={}));var zb;(function(t){t.method="textDocument/didSave",t.messageDirection=U.MessageDirection.clientToServer,t.type=new U.ProtocolNotificationType(t.method)})(zb=m.DidSaveTextDocumentNotification||(m.DidSaveTextDocumentNotification={}));var Nb;(function(t){t.Manual=1,t.AfterDelay=2,t.FocusOut=3})(Nb=m.TextDocumentSaveReason||(m.TextDocumentSaveReason={}));var Ob;(function(t){t.method="textDocument/willSave",t.messageDirection=U.MessageDirection.clientToServer,t.type=new U.ProtocolNotificationType(t.method)})(Ob=m.WillSaveTextDocumentNotification||(m.WillSaveTextDocumentNotification={}));var Wb;(function(t){t.method="textDocument/willSaveWaitUntil",t.messageDirection=U.MessageDirection.clientToServer,t.type=new U.ProtocolRequestType(t.method)})(Wb=m.WillSaveTextDocumentWaitUntilRequest||(m.WillSaveTextDocumentWaitUntilRequest={}));var Lb;(function(t){t.method="workspace/didChangeWatchedFiles",t.messageDirection=U.MessageDirection.clientToServer,t.type=new U.ProtocolNotificationType(t.method)})(Lb=m.DidChangeWatchedFilesNotification||(m.DidChangeWatchedFilesNotification={}));var qb;(function(t){t.Created=1,t.Changed=2,t.Deleted=3})(qb=m.FileChangeType||(m.FileChangeType={}));var jb;(function(t){function e(n){let i=n;return tt.objectLiteral(i)&&($h.URI.is(i.baseUri)||$h.WorkspaceFolder.is(i.baseUri))&&tt.string(i.pattern)}t.is=e})(jb=m.RelativePattern||(m.RelativePattern={}));var $b;(function(t){t.Create=1,t.Change=2,t.Delete=4})($b=m.WatchKind||(m.WatchKind={}));var Ub;(function(t){t.method="textDocument/publishDiagnostics",t.messageDirection=U.MessageDirection.serverToClient,t.type=new U.ProtocolNotificationType(t.method)})(Ub=m.PublishDiagnosticsNotification||(m.PublishDiagnosticsNotification={}));var Vb;(function(t){t.Invoked=1,t.TriggerCharacter=2,t.TriggerForIncompleteCompletions=3})(Vb=m.CompletionTriggerKind||(m.CompletionTriggerKind={}));var Bb;(function(t){t.method="textDocument/completion",t.messageDirection=U.MessageDirection.clientToServer,t.type=new U.ProtocolRequestType(t.method)})(Bb=m.CompletionRequest||(m.CompletionRequest={}));var Hb;(function(t){t.method="completionItem/resolve",t.messageDirection=U.MessageDirection.clientToServer,t.type=new U.ProtocolRequestType(t.method)})(Hb=m.CompletionResolveRequest||(m.CompletionResolveRequest={}));var Kb;(function(t){t.method="textDocument/hover",t.messageDirection=U.MessageDirection.clientToServer,t.type=new U.ProtocolRequestType(t.method)})(Kb=m.HoverRequest||(m.HoverRequest={}));var Gb;(function(t){t.Invoked=1,t.TriggerCharacter=2,t.ContentChange=3})(Gb=m.SignatureHelpTriggerKind||(m.SignatureHelpTriggerKind={}));var Jb;(function(t){t.method="textDocument/signatureHelp",t.messageDirection=U.MessageDirection.clientToServer,t.type=new U.ProtocolRequestType(t.method)})(Jb=m.SignatureHelpRequest||(m.SignatureHelpRequest={}));var Xb;(function(t){t.method="textDocument/definition",t.messageDirection=U.MessageDirection.clientToServer,t.type=new U.ProtocolRequestType(t.method)})(Xb=m.DefinitionRequest||(m.DefinitionRequest={}));var Yb;(function(t){t.method="textDocument/references",t.messageDirection=U.MessageDirection.clientToServer,t.type=new U.ProtocolRequestType(t.method)})(Yb=m.ReferencesRequest||(m.ReferencesRequest={}));var Qb;(function(t){t.method="textDocument/documentHighlight",t.messageDirection=U.MessageDirection.clientToServer,t.type=new U.ProtocolRequestType(t.method)})(Qb=m.DocumentHighlightRequest||(m.DocumentHighlightRequest={}));var Zb;(function(t){t.method="textDocument/documentSymbol",t.messageDirection=U.MessageDirection.clientToServer,t.type=new U.ProtocolRequestType(t.method)})(Zb=m.DocumentSymbolRequest||(m.DocumentSymbolRequest={}));var ey;(function(t){t.method="textDocument/codeAction",t.messageDirection=U.MessageDirection.clientToServer,t.type=new U.ProtocolRequestType(t.method)})(ey=m.CodeActionRequest||(m.CodeActionRequest={}));var ty;(function(t){t.method="codeAction/resolve",t.messageDirection=U.MessageDirection.clientToServer,t.type=new U.ProtocolRequestType(t.method)})(ty=m.CodeActionResolveRequest||(m.CodeActionResolveRequest={}));var ny;(function(t){t.method="workspace/symbol",t.messageDirection=U.MessageDirection.clientToServer,t.type=new U.ProtocolRequestType(t.method)})(ny=m.WorkspaceSymbolRequest||(m.WorkspaceSymbolRequest={}));var iy;(function(t){t.method="workspaceSymbol/resolve",t.messageDirection=U.MessageDirection.clientToServer,t.type=new U.ProtocolRequestType(t.method)})(iy=m.WorkspaceSymbolResolveRequest||(m.WorkspaceSymbolResolveRequest={}));var ry;(function(t){t.method="textDocument/codeLens",t.messageDirection=U.MessageDirection.clientToServer,t.type=new U.ProtocolRequestType(t.method)})(ry=m.CodeLensRequest||(m.CodeLensRequest={}));var sy;(function(t){t.method="codeLens/resolve",t.messageDirection=U.MessageDirection.clientToServer,t.type=new U.ProtocolRequestType(t.method)})(sy=m.CodeLensResolveRequest||(m.CodeLensResolveRequest={}));var oy;(function(t){t.method="workspace/codeLens/refresh",t.messageDirection=U.MessageDirection.serverToClient,t.type=new U.ProtocolRequestType0(t.method)})(oy=m.CodeLensRefreshRequest||(m.CodeLensRefreshRequest={}));var ay;(function(t){t.method="textDocument/documentLink",t.messageDirection=U.MessageDirection.clientToServer,t.type=new U.ProtocolRequestType(t.method)})(ay=m.DocumentLinkRequest||(m.DocumentLinkRequest={}));var ly;(function(t){t.method="documentLink/resolve",t.messageDirection=U.MessageDirection.clientToServer,t.type=new U.ProtocolRequestType(t.method)})(ly=m.DocumentLinkResolveRequest||(m.DocumentLinkResolveRequest={}));var cy;(function(t){t.method="textDocument/formatting",t.messageDirection=U.MessageDirection.clientToServer,t.type=new U.ProtocolRequestType(t.method)})(cy=m.DocumentFormattingRequest||(m.DocumentFormattingRequest={}));var dy;(function(t){t.method="textDocument/rangeFormatting",t.messageDirection=U.MessageDirection.clientToServer,t.type=new U.ProtocolRequestType(t.method)})(dy=m.DocumentRangeFormattingRequest||(m.DocumentRangeFormattingRequest={}));var hy;(function(t){t.method="textDocument/onTypeFormatting",t.messageDirection=U.MessageDirection.clientToServer,t.type=new U.ProtocolRequestType(t.method)})(hy=m.DocumentOnTypeFormattingRequest||(m.DocumentOnTypeFormattingRequest={}));var uy;(function(t){t.Identifier=1})(uy=m.PrepareSupportDefaultBehavior||(m.PrepareSupportDefaultBehavior={}));var py;(function(t){t.method="textDocument/rename",t.messageDirection=U.MessageDirection.clientToServer,t.type=new U.ProtocolRequestType(t.method)})(py=m.RenameRequest||(m.RenameRequest={}));var my;(function(t){t.method="textDocument/prepareRename",t.messageDirection=U.MessageDirection.clientToServer,t.type=new U.ProtocolRequestType(t.method)})(my=m.PrepareRenameRequest||(m.PrepareRenameRequest={}));var fy;(function(t){t.method="workspace/executeCommand",t.messageDirection=U.MessageDirection.clientToServer,t.type=new U.ProtocolRequestType(t.method)})(fy=m.ExecuteCommandRequest||(m.ExecuteCommandRequest={}));var gy;(function(t){t.method="workspace/applyEdit",t.messageDirection=U.MessageDirection.serverToClient,t.type=new U.ProtocolRequestType("workspace/applyEdit")})(gy=m.ApplyWorkspaceEditRequest||(m.ApplyWorkspaceEditRequest={}))});var Qh=J(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});Ps.createProtocolConnection=void 0;var Yh=Xn();function by(t,e,n,i){return Yh.ConnectionStrategy.is(i)&&(i={connectionStrategy:i}),(0,Yh.createMessageConnection)(t,e,n,i)}Ps.createProtocolConnection=by});var Zh=J(ht=>{"use strict";var yy=ht&&ht.__createBinding||(Object.create?function(t,e,n,i){i===void 0&&(i=n);var r=Object.getOwnPropertyDescriptor(e,n);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,r)}:function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]}),zs=ht&&ht.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&yy(e,t,n)};Object.defineProperty(ht,"__esModule",{value:!0});ht.LSPErrorCodes=ht.createProtocolConnection=void 0;zs(Xn(),ht);zs(As(),ht);zs(Le(),ht);zs(Xh(),ht);var wy=Qh();Object.defineProperty(ht,"createProtocolConnection",{enumerable:!0,get:function(){return wy.createProtocolConnection}});var vy;(function(t){t.lspReservedErrorRangeStart=-32899,t.RequestFailed=-32803,t.ServerCancelled=-32802,t.ContentModified=-32801,t.RequestCancelled=-32800,t.lspReservedErrorRangeEnd=-32800})(vy=ht.LSPErrorCodes||(ht.LSPErrorCodes={}))});var Ye=J(Xt=>{"use strict";var Sy=Xt&&Xt.__createBinding||(Object.create?function(t,e,n,i){i===void 0&&(i=n);var r=Object.getOwnPropertyDescriptor(e,n);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,r)}:function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]}),eu=Xt&&Xt.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&Sy(e,t,n)};Object.defineProperty(Xt,"__esModule",{value:!0});Xt.createProtocolConnection=void 0;var _y=zl();eu(zl(),Xt);eu(Zh(),Xt);function xy(t,e,n,i){return(0,_y.createMessageConnection)(t,e,n,i)}Xt.createProtocolConnection=xy});var Kl=J(Ct=>{"use strict";Object.defineProperty(Ct,"__esModule",{value:!0});Ct.generateUuid=Ct.parse=Ct.isUUID=Ct.v4=Ct.empty=void 0;var vr=class{constructor(e){this._value=e}asHex(){return this._value}equals(e){return this.asHex()===e.asHex()}},Sr=class t extends vr{constructor(){super([t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),"-",t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),"-","4",t._randomHex(),t._randomHex(),t._randomHex(),"-",t._oneOf(t._timeHighBits),t._randomHex(),t._randomHex(),t._randomHex(),"-",t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex()].join(""))}static _oneOf(e){return e[Math.floor(e.length*Math.random())]}static _randomHex(){return t._oneOf(t._chars)}};Sr._chars=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"];Sr._timeHighBits=["8","9","a","b"];Ct.empty=new vr("00000000-0000-0000-0000-000000000000");function tu(){return new Sr}Ct.v4=tu;var Cy=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function nu(t){return Cy.test(t)}Ct.isUUID=nu;function Fy(t){if(!nu(t))throw new Error("invalid uuid");return new vr(t)}Ct.parse=Fy;function ky(){return tu().asHex()}Ct.generateUuid=ky});var iu=J(Dn=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});Dn.attachPartialResult=Dn.ProgressFeature=Dn.attachWorkDone=void 0;var En=Ye(),Ay=Kl(),Qn=class t{constructor(e,n){this._connection=e,this._token=n,t.Instances.set(this._token,this)}begin(e,n,i,r){let s={kind:"begin",title:e,percentage:n,message:i,cancellable:r};this._connection.sendProgress(En.WorkDoneProgress.type,this._token,s)}report(e,n){let i={kind:"report"};typeof e=="number"?(i.percentage=e,n!==void 0&&(i.message=n)):i.message=e,this._connection.sendProgress(En.WorkDoneProgress.type,this._token,i)}done(){t.Instances.delete(this._token),this._connection.sendProgress(En.WorkDoneProgress.type,this._token,{kind:"end"})}};Qn.Instances=new Map;var Ns=class extends Qn{constructor(e,n){super(e,n),this._source=new En.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose(),super.done()}cancel(){this._source.cancel()}},_r=class{constructor(){}begin(){}report(){}done(){}},Os=class extends _r{constructor(){super(),this._source=new En.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose()}cancel(){this._source.cancel()}};function Ey(t,e){if(e===void 0||e.workDoneToken===void 0)return new _r;let n=e.workDoneToken;return delete e.workDoneToken,new Qn(t,n)}Dn.attachWorkDone=Ey;var Dy=t=>class extends t{constructor(){super(),this._progressSupported=!1}initialize(e){super.initialize(e),e?.window?.workDoneProgress===!0&&(this._progressSupported=!0,this.connection.onNotification(En.WorkDoneProgressCancelNotification.type,n=>{let i=Qn.Instances.get(n.token);(i instanceof Ns||i instanceof Os)&&i.cancel()}))}attachWorkDoneProgress(e){return e===void 0?new _r:new Qn(this.connection,e)}createWorkDoneProgress(){if(this._progressSupported){let e=(0,Ay.generateUuid)();return this.connection.sendRequest(En.WorkDoneProgressCreateRequest.type,{token:e}).then(()=>new Ns(this.connection,e))}else return Promise.resolve(new Os)}};Dn.ProgressFeature=Dy;var Gl;(function(t){t.type=new En.ProgressType})(Gl||(Gl={}));var Jl=class{constructor(e,n){this._connection=e,this._token=n}report(e){this._connection.sendProgress(Gl.type,this._token,e)}};function Ry(t,e){if(e===void 0||e.partialResultToken===void 0)return;let n=e.partialResultToken;return delete e.partialResultToken,new Jl(t,n)}Dn.attachPartialResult=Ry});var ru=J(Ws=>{"use strict";Object.defineProperty(Ws,"__esModule",{value:!0});Ws.ConfigurationFeature=void 0;var My=Ye(),Ty=hs(),Iy=t=>class extends t{getConfiguration(e){return e?Ty.string(e)?this._getConfiguration({section:e}):this._getConfiguration(e):this._getConfiguration({})}_getConfiguration(e){let n={items:Array.isArray(e)?e:[e]};return this.connection.sendRequest(My.ConfigurationRequest.type,n).then(i=>Array.isArray(i)?Array.isArray(e)?i:i[0]:Array.isArray(e)?[]:null)}};Ws.ConfigurationFeature=Iy});var su=J(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});qs.WorkspaceFoldersFeature=void 0;var Ls=Ye(),Py=t=>class extends t{constructor(){super(),this._notificationIsAutoRegistered=!1}initialize(e){super.initialize(e);let n=e.workspace;n&&n.workspaceFolders&&(this._onDidChangeWorkspaceFolders=new Ls.Emitter,this.connection.onNotification(Ls.DidChangeWorkspaceFoldersNotification.type,i=>{this._onDidChangeWorkspaceFolders.fire(i.event)}))}fillServerCapabilities(e){super.fillServerCapabilities(e);let n=e.workspace?.workspaceFolders?.changeNotifications;this._notificationIsAutoRegistered=n===!0||typeof n=="string"}getWorkspaceFolders(){return this.connection.sendRequest(Ls.WorkspaceFoldersRequest.type)}get onDidChangeWorkspaceFolders(){if(!this._onDidChangeWorkspaceFolders)throw new Error("Client doesn't support sending workspace folder change events.");return!this._notificationIsAutoRegistered&&!this._unregistration&&(this._unregistration=this.connection.client.register(Ls.DidChangeWorkspaceFoldersNotification.type)),this._onDidChangeWorkspaceFolders.event}};qs.WorkspaceFoldersFeature=Py});var ou=J(js=>{"use strict";Object.defineProperty(js,"__esModule",{value:!0});js.CallHierarchyFeature=void 0;var Xl=Ye(),zy=t=>class extends t{get callHierarchy(){return{onPrepare:e=>this.connection.onRequest(Xl.CallHierarchyPrepareRequest.type,(n,i)=>e(n,i,this.attachWorkDoneProgress(n),void 0)),onIncomingCalls:e=>{let n=Xl.CallHierarchyIncomingCallsRequest.type;return this.connection.onRequest(n,(i,r)=>e(i,r,this.attachWorkDoneProgress(i),this.attachPartialResultProgress(n,i)))},onOutgoingCalls:e=>{let n=Xl.CallHierarchyOutgoingCallsRequest.type;return this.connection.onRequest(n,(i,r)=>e(i,r,this.attachWorkDoneProgress(i),this.attachPartialResultProgress(n,i)))}}}};js.CallHierarchyFeature=zy});var Ql=J(Rn=>{"use strict";Object.defineProperty(Rn,"__esModule",{value:!0});Rn.SemanticTokensBuilder=Rn.SemanticTokensDiff=Rn.SemanticTokensFeature=void 0;var $s=Ye(),Ny=t=>class extends t{get semanticTokens(){return{refresh:()=>this.connection.sendRequest($s.SemanticTokensRefreshRequest.type),on:e=>{let n=$s.SemanticTokensRequest.type;return this.connection.onRequest(n,(i,r)=>e(i,r,this.attachWorkDoneProgress(i),this.attachPartialResultProgress(n,i)))},onDelta:e=>{let n=$s.SemanticTokensDeltaRequest.type;return this.connection.onRequest(n,(i,r)=>e(i,r,this.attachWorkDoneProgress(i),this.attachPartialResultProgress(n,i)))},onRange:e=>{let n=$s.SemanticTokensRangeRequest.type;return this.connection.onRequest(n,(i,r)=>e(i,r,this.attachWorkDoneProgress(i),this.attachPartialResultProgress(n,i)))}}}};Rn.SemanticTokensFeature=Ny;var Us=class{constructor(e,n){this.originalSequence=e,this.modifiedSequence=n}computeDiff(){let e=this.originalSequence.length,n=this.modifiedSequence.length,i=0;for(;i<n&&i<e&&this.originalSequence[i]===this.modifiedSequence[i];)i++;if(i<n&&i<e){let r=e-1,s=n-1;for(;r>=i&&s>=i&&this.originalSequence[r]===this.modifiedSequence[s];)r--,s--;(r<i||s<i)&&(r++,s++);let o=r-i+1,a=this.modifiedSequence.slice(i,s+1);return a.length===1&&a[0]===this.originalSequence[r]?[{start:i,deleteCount:o-1}]:[{start:i,deleteCount:o,data:a}]}else return i<n?[{start:i,deleteCount:0,data:this.modifiedSequence.slice(i)}]:i<e?[{start:i,deleteCount:e-i}]:[]}};Rn.SemanticTokensDiff=Us;var Yl=class{constructor(){this._prevData=void 0,this.initialize()}initialize(){this._id=Date.now(),this._prevLine=0,this._prevChar=0,this._data=[],this._dataLen=0}push(e,n,i,r,s){let o=e,a=n;this._dataLen>0&&(o-=this._prevLine,o===0&&(a-=this._prevChar)),this._data[this._dataLen++]=o,this._data[this._dataLen++]=a,this._data[this._dataLen++]=i,this._data[this._dataLen++]=r,this._data[this._dataLen++]=s,this._prevLine=e,this._prevChar=n}get id(){return this._id.toString()}previousResult(e){this.id===e&&(this._prevData=this._data),this.initialize()}build(){return this._prevData=void 0,{resultId:this.id,data:this._data}}canBuildEdits(){return this._prevData!==void 0}buildEdits(){return this._prevData!==void 0?{resultId:this.id,edits:new Us(this._prevData,this._data).computeDiff()}:this.build()}};Rn.SemanticTokensBuilder=Yl});var au=J(Vs=>{"use strict";Object.defineProperty(Vs,"__esModule",{value:!0});Vs.ShowDocumentFeature=void 0;var Oy=Ye(),Wy=t=>class extends t{showDocument(e){return this.connection.sendRequest(Oy.ShowDocumentRequest.type,e)}};Vs.ShowDocumentFeature=Wy});var lu=J(Bs=>{"use strict";Object.defineProperty(Bs,"__esModule",{value:!0});Bs.FileOperationsFeature=void 0;var Ai=Ye(),Ly=t=>class extends t{onDidCreateFiles(e){return this.connection.onNotification(Ai.DidCreateFilesNotification.type,n=>{e(n)})}onDidRenameFiles(e){return this.connection.onNotification(Ai.DidRenameFilesNotification.type,n=>{e(n)})}onDidDeleteFiles(e){return this.connection.onNotification(Ai.DidDeleteFilesNotification.type,n=>{e(n)})}onWillCreateFiles(e){return this.connection.onRequest(Ai.WillCreateFilesRequest.type,(n,i)=>e(n,i))}onWillRenameFiles(e){return this.connection.onRequest(Ai.WillRenameFilesRequest.type,(n,i)=>e(n,i))}onWillDeleteFiles(e){return this.connection.onRequest(Ai.WillDeleteFilesRequest.type,(n,i)=>e(n,i))}};Bs.FileOperationsFeature=Ly});var cu=J(Hs=>{"use strict";Object.defineProperty(Hs,"__esModule",{value:!0});Hs.LinkedEditingRangeFeature=void 0;var qy=Ye(),jy=t=>class extends t{onLinkedEditingRange(e){return this.connection.onRequest(qy.LinkedEditingRangeRequest.type,(n,i)=>e(n,i,this.attachWorkDoneProgress(n),void 0))}};Hs.LinkedEditingRangeFeature=jy});var du=J(Ks=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});Ks.TypeHierarchyFeature=void 0;var Zl=Ye(),$y=t=>class extends t{get typeHierarchy(){return{onPrepare:e=>this.connection.onRequest(Zl.TypeHierarchyPrepareRequest.type,(n,i)=>e(n,i,this.attachWorkDoneProgress(n),void 0)),onSupertypes:e=>{let n=Zl.TypeHierarchySupertypesRequest.type;return this.connection.onRequest(n,(i,r)=>e(i,r,this.attachWorkDoneProgress(i),this.attachPartialResultProgress(n,i)))},onSubtypes:e=>{let n=Zl.TypeHierarchySubtypesRequest.type;return this.connection.onRequest(n,(i,r)=>e(i,r,this.attachWorkDoneProgress(i),this.attachPartialResultProgress(n,i)))}}}};Ks.TypeHierarchyFeature=$y});var uu=J(Gs=>{"use strict";Object.defineProperty(Gs,"__esModule",{value:!0});Gs.InlineValueFeature=void 0;var hu=Ye(),Uy=t=>class extends t{get inlineValue(){return{refresh:()=>this.connection.sendRequest(hu.InlineValueRefreshRequest.type),on:e=>this.connection.onRequest(hu.InlineValueRequest.type,(n,i)=>e(n,i,this.attachWorkDoneProgress(n)))}}};Gs.InlineValueFeature=Uy});var pu=J(Js=>{"use strict";Object.defineProperty(Js,"__esModule",{value:!0});Js.InlayHintFeature=void 0;var ec=Ye(),Vy=t=>class extends t{get inlayHint(){return{refresh:()=>this.connection.sendRequest(ec.InlayHintRefreshRequest.type),on:e=>this.connection.onRequest(ec.InlayHintRequest.type,(n,i)=>e(n,i,this.attachWorkDoneProgress(n))),resolve:e=>this.connection.onRequest(ec.InlayHintResolveRequest.type,(n,i)=>e(n,i))}}};Js.InlayHintFeature=Vy});var mu=J(Xs=>{"use strict";Object.defineProperty(Xs,"__esModule",{value:!0});Xs.DiagnosticFeature=void 0;var xr=Ye(),By=t=>class extends t{get diagnostics(){return{refresh:()=>this.connection.sendRequest(xr.DiagnosticRefreshRequest.type),on:e=>this.connection.onRequest(xr.DocumentDiagnosticRequest.type,(n,i)=>e(n,i,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(xr.DocumentDiagnosticRequest.partialResult,n))),onWorkspace:e=>this.connection.onRequest(xr.WorkspaceDiagnosticRequest.type,(n,i)=>e(n,i,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(xr.WorkspaceDiagnosticRequest.partialResult,n)))}}};Xs.DiagnosticFeature=By});var nc=J(Ys=>{"use strict";Object.defineProperty(Ys,"__esModule",{value:!0});Ys.TextDocuments=void 0;var Zn=Ye(),tc=class{constructor(e){this._configuration=e,this._syncedDocuments=new Map,this._onDidChangeContent=new Zn.Emitter,this._onDidOpen=new Zn.Emitter,this._onDidClose=new Zn.Emitter,this._onDidSave=new Zn.Emitter,this._onWillSave=new Zn.Emitter}get onDidOpen(){return this._onDidOpen.event}get onDidChangeContent(){return this._onDidChangeContent.event}get onWillSave(){return this._onWillSave.event}onWillSaveWaitUntil(e){this._willSaveWaitUntil=e}get onDidSave(){return this._onDidSave.event}get onDidClose(){return this._onDidClose.event}get(e){return this._syncedDocuments.get(e)}all(){return Array.from(this._syncedDocuments.values())}keys(){return Array.from(this._syncedDocuments.keys())}listen(e){e.__textDocumentSync=Zn.TextDocumentSyncKind.Incremental;let n=[];return n.push(e.onDidOpenTextDocument(i=>{let r=i.textDocument,s=this._configuration.create(r.uri,r.languageId,r.version,r.text);this._syncedDocuments.set(r.uri,s);let o=Object.freeze({document:s});this._onDidOpen.fire(o),this._onDidChangeContent.fire(o)})),n.push(e.onDidChangeTextDocument(i=>{let r=i.textDocument,s=i.contentChanges;if(s.length===0)return;let{version:o}=r;if(o==null)throw new Error(`Received document change event for ${r.uri} without valid version identifier`);let a=this._syncedDocuments.get(r.uri);a!==void 0&&(a=this._configuration.update(a,s,o),this._syncedDocuments.set(r.uri,a),this._onDidChangeContent.fire(Object.freeze({document:a})))})),n.push(e.onDidCloseTextDocument(i=>{let r=this._syncedDocuments.get(i.textDocument.uri);r!==void 0&&(this._syncedDocuments.delete(i.textDocument.uri),this._onDidClose.fire(Object.freeze({document:r})))})),n.push(e.onWillSaveTextDocument(i=>{let r=this._syncedDocuments.get(i.textDocument.uri);r!==void 0&&this._onWillSave.fire(Object.freeze({document:r,reason:i.reason}))})),n.push(e.onWillSaveTextDocumentWaitUntil((i,r)=>{let s=this._syncedDocuments.get(i.textDocument.uri);return s!==void 0&&this._willSaveWaitUntil?this._willSaveWaitUntil(Object.freeze({document:s,reason:i.reason}),r):[]})),n.push(e.onDidSaveTextDocument(i=>{let r=this._syncedDocuments.get(i.textDocument.uri);r!==void 0&&this._onDidSave.fire(Object.freeze({document:r}))})),Zn.Disposable.create(()=>{n.forEach(i=>i.dispose())})}};Ys.TextDocuments=tc});var rc=J(Ei=>{"use strict";Object.defineProperty(Ei,"__esModule",{value:!0});Ei.NotebookDocuments=Ei.NotebookSyncFeature=void 0;var Ft=Ye(),fu=nc(),Hy=t=>class extends t{get synchronization(){return{onDidOpenNotebookDocument:e=>this.connection.onNotification(Ft.DidOpenNotebookDocumentNotification.type,n=>{e(n)}),onDidChangeNotebookDocument:e=>this.connection.onNotification(Ft.DidChangeNotebookDocumentNotification.type,n=>{e(n)}),onDidSaveNotebookDocument:e=>this.connection.onNotification(Ft.DidSaveNotebookDocumentNotification.type,n=>{e(n)}),onDidCloseNotebookDocument:e=>this.connection.onNotification(Ft.DidCloseNotebookDocumentNotification.type,n=>{e(n)})}}};Ei.NotebookSyncFeature=Hy;var Qs=class t{onDidOpenTextDocument(e){return this.openHandler=e,Ft.Disposable.create(()=>{this.openHandler=void 0})}openTextDocument(e){this.openHandler&&this.openHandler(e)}onDidChangeTextDocument(e){return this.changeHandler=e,Ft.Disposable.create(()=>{this.changeHandler=e})}changeTextDocument(e){this.changeHandler&&this.changeHandler(e)}onDidCloseTextDocument(e){return this.closeHandler=e,Ft.Disposable.create(()=>{this.closeHandler=void 0})}closeTextDocument(e){this.closeHandler&&this.closeHandler(e)}onWillSaveTextDocument(){return t.NULL_DISPOSE}onWillSaveTextDocumentWaitUntil(){return t.NULL_DISPOSE}onDidSaveTextDocument(){return t.NULL_DISPOSE}};Qs.NULL_DISPOSE=Object.freeze({dispose:()=>{}});var ic=class{constructor(e){e instanceof fu.TextDocuments?this._cellTextDocuments=e:this._cellTextDocuments=new fu.TextDocuments(e),this.notebookDocuments=new Map,this.notebookCellMap=new Map,this._onDidOpen=new Ft.Emitter,this._onDidChange=new Ft.Emitter,this._onDidSave=new Ft.Emitter,this._onDidClose=new Ft.Emitter}get cellTextDocuments(){return this._cellTextDocuments}getCellTextDocument(e){return this._cellTextDocuments.get(e.document)}getNotebookDocument(e){return this.notebookDocuments.get(e)}getNotebookCell(e){let n=this.notebookCellMap.get(e);return n&&n[0]}findNotebookDocumentForCell(e){let n=typeof e=="string"?e:e.document,i=this.notebookCellMap.get(n);return i&&i[1]}get onDidOpen(){return this._onDidOpen.event}get onDidSave(){return this._onDidSave.event}get onDidChange(){return this._onDidChange.event}get onDidClose(){return this._onDidClose.event}listen(e){let n=new Qs,i=[];return i.push(this.cellTextDocuments.listen(n)),i.push(e.notebooks.synchronization.onDidOpenNotebookDocument(r=>{this.notebookDocuments.set(r.notebookDocument.uri,r.notebookDocument);for(let s of r.cellTextDocuments)n.openTextDocument({textDocument:s});this.updateCellMap(r.notebookDocument),this._onDidOpen.fire(r.notebookDocument)})),i.push(e.notebooks.synchronization.onDidChangeNotebookDocument(r=>{let s=this.notebookDocuments.get(r.notebookDocument.uri);if(s===void 0)return;s.version=r.notebookDocument.version;let o=s.metadata,a=!1,l=r.change;l.metadata!==void 0&&(a=!0,s.metadata=l.metadata);let c=[],d=[],p=[],b=[];if(l.cells!==void 0){let $=l.cells;if($.structure!==void 0){let k=$.structure.array;if(s.cells.splice(k.start,k.deleteCount,...k.cells!==void 0?k.cells:[]),$.structure.didOpen!==void 0)for(let _ of $.structure.didOpen)n.openTextDocument({textDocument:_}),c.push(_.uri);if($.structure.didClose)for(let _ of $.structure.didClose)n.closeTextDocument({textDocument:_}),d.push(_.uri)}if($.data!==void 0){let k=new Map($.data.map(_=>[_.document,_]));for(let _=0;_<=s.cells.length;_++){let F=k.get(s.cells[_].document);if(F!==void 0){let O=s.cells.splice(_,1,F);if(p.push({old:O[0],new:F}),k.delete(F.document),k.size===0)break}}}if($.textContent!==void 0)for(let k of $.textContent)n.changeTextDocument({textDocument:k.document,contentChanges:k.changes}),b.push(k.document.uri)}this.updateCellMap(s);let y={notebookDocument:s};a&&(y.metadata={old:o,new:s.metadata});let M=[];for(let $ of c)M.push(this.getNotebookCell($));let P=[];for(let $ of d)P.push(this.getNotebookCell($));let Y=[];for(let $ of b)Y.push(this.getNotebookCell($));(M.length>0||P.length>0||p.length>0||Y.length>0)&&(y.cells={added:M,removed:P,changed:{data:p,textContent:Y}}),(y.metadata!==void 0||y.cells!==void 0)&&this._onDidChange.fire(y)})),i.push(e.notebooks.synchronization.onDidSaveNotebookDocument(r=>{let s=this.notebookDocuments.get(r.notebookDocument.uri);s!==void 0&&this._onDidSave.fire(s)})),i.push(e.notebooks.synchronization.onDidCloseNotebookDocument(r=>{let s=this.notebookDocuments.get(r.notebookDocument.uri);if(s!==void 0){this._onDidClose.fire(s);for(let o of r.cellTextDocuments)n.closeTextDocument({textDocument:o});this.notebookDocuments.delete(r.notebookDocument.uri);for(let o of s.cells)this.notebookCellMap.delete(o.document)}})),Ft.Disposable.create(()=>{i.forEach(r=>r.dispose())})}updateCellMap(e){for(let n of e.cells)this.notebookCellMap.set(n.document,[n,e])}};Ei.NotebookDocuments=ic});var gu=J(Zs=>{"use strict";Object.defineProperty(Zs,"__esModule",{value:!0});Zs.MonikerFeature=void 0;var Ky=Ye(),Gy=t=>class extends t{get moniker(){return{on:e=>{let n=Ky.MonikerRequest.type;return this.connection.onRequest(n,(i,r)=>e(i,r,this.attachWorkDoneProgress(i),this.attachPartialResultProgress(n,i)))}}}};Zs.MonikerFeature=Gy});var dc=J(ye=>{"use strict";Object.defineProperty(ye,"__esModule",{value:!0});ye.createConnection=ye.combineFeatures=ye.combineNotebooksFeatures=ye.combineLanguagesFeatures=ye.combineWorkspaceFeatures=ye.combineWindowFeatures=ye.combineClientFeatures=ye.combineTracerFeatures=ye.combineTelemetryFeatures=ye.combineConsoleFeatures=ye._NotebooksImpl=ye._LanguagesImpl=ye.BulkUnregistration=ye.BulkRegistration=ye.ErrorMessageTracker=void 0;var K=Ye(),kt=hs(),oc=Kl(),ce=iu(),Jy=ru(),Xy=su(),Yy=ou(),Qy=Ql(),Zy=au(),ew=lu(),tw=cu(),nw=du(),iw=uu(),rw=pu(),sw=mu(),ow=rc(),aw=gu();function sc(t){if(t!==null)return t}var ac=class{constructor(){this._messages=Object.create(null)}add(e){let n=this._messages[e];n||(n=0),n++,this._messages[e]=n}sendErrors(e){Object.keys(this._messages).forEach(n=>{e.window.showErrorMessage(n)})}};ye.ErrorMessageTracker=ac;var eo=class{constructor(){}rawAttach(e){this._rawConnection=e}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}fillServerCapabilities(e){}initialize(e){}error(e){this.send(K.MessageType.Error,e)}warn(e){this.send(K.MessageType.Warning,e)}info(e){this.send(K.MessageType.Info,e)}log(e){this.send(K.MessageType.Log,e)}send(e,n){this._rawConnection&&this._rawConnection.sendNotification(K.LogMessageNotification.type,{type:e,message:n}).catch(()=>{(0,K.RAL)().console.error("Sending log message failed")})}},lc=class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}showErrorMessage(e,...n){let i={type:K.MessageType.Error,message:e,actions:n};return this.connection.sendRequest(K.ShowMessageRequest.type,i).then(sc)}showWarningMessage(e,...n){let i={type:K.MessageType.Warning,message:e,actions:n};return this.connection.sendRequest(K.ShowMessageRequest.type,i).then(sc)}showInformationMessage(e,...n){let i={type:K.MessageType.Info,message:e,actions:n};return this.connection.sendRequest(K.ShowMessageRequest.type,i).then(sc)}},bu=(0,Zy.ShowDocumentFeature)((0,ce.ProgressFeature)(lc)),lw;(function(t){function e(){return new to}t.create=e})(lw=ye.BulkRegistration||(ye.BulkRegistration={}));var to=class{constructor(){this._registrations=[],this._registered=new Set}add(e,n){let i=kt.string(e)?e:e.method;if(this._registered.has(i))throw new Error(`${i} is already added to this registration`);let r=oc.generateUuid();this._registrations.push({id:r,method:i,registerOptions:n||{}}),this._registered.add(i)}asRegistrationParams(){return{registrations:this._registrations}}},cw;(function(t){function e(){return new Cr(void 0,[])}t.create=e})(cw=ye.BulkUnregistration||(ye.BulkUnregistration={}));var Cr=class{constructor(e,n){this._connection=e,this._unregistrations=new Map,n.forEach(i=>{this._unregistrations.set(i.method,i)})}get isAttached(){return!!this._connection}attach(e){this._connection=e}add(e){this._unregistrations.set(e.method,e)}dispose(){let e=[];for(let i of this._unregistrations.values())e.push(i);let n={unregisterations:e};this._connection.sendRequest(K.UnregistrationRequest.type,n).catch(()=>{this._connection.console.info("Bulk unregistration failed.")})}disposeSingle(e){let n=kt.string(e)?e:e.method,i=this._unregistrations.get(n);if(!i)return!1;let r={unregisterations:[i]};return this._connection.sendRequest(K.UnregistrationRequest.type,r).then(()=>{this._unregistrations.delete(n)},s=>{this._connection.console.info(`Un-registering request handler for ${i.id} failed.`)}),!0}},no=class{attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}register(e,n,i){return e instanceof to?this.registerMany(e):e instanceof Cr?this.registerSingle1(e,n,i):this.registerSingle2(e,n)}registerSingle1(e,n,i){let r=kt.string(n)?n:n.method,s=oc.generateUuid(),o={registrations:[{id:s,method:r,registerOptions:i||{}}]};return e.isAttached||e.attach(this.connection),this.connection.sendRequest(K.RegistrationRequest.type,o).then(a=>(e.add({id:s,method:r}),e),a=>(this.connection.console.info(`Registering request handler for ${r} failed.`),Promise.reject(a)))}registerSingle2(e,n){let i=kt.string(e)?e:e.method,r=oc.generateUuid(),s={registrations:[{id:r,method:i,registerOptions:n||{}}]};return this.connection.sendRequest(K.RegistrationRequest.type,s).then(o=>K.Disposable.create(()=>{this.unregisterSingle(r,i).catch(()=>{this.connection.console.info(`Un-registering capability with id ${r} failed.`)})}),o=>(this.connection.console.info(`Registering request handler for ${i} failed.`),Promise.reject(o)))}unregisterSingle(e,n){let i={unregisterations:[{id:e,method:n}]};return this.connection.sendRequest(K.UnregistrationRequest.type,i).catch(()=>{this.connection.console.info(`Un-registering request handler for ${e} failed.`)})}registerMany(e){let n=e.asRegistrationParams();return this.connection.sendRequest(K.RegistrationRequest.type,n).then(()=>new Cr(this._connection,n.registrations.map(i=>({id:i.id,method:i.method}))),i=>(this.connection.console.info("Bulk registration failed."),Promise.reject(i)))}},cc=class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}applyEdit(e){function n(r){return r&&!!r.edit}let i=n(e)?e:{edit:e};return this.connection.sendRequest(K.ApplyWorkspaceEditRequest.type,i)}},yu=(0,ew.FileOperationsFeature)((0,Xy.WorkspaceFoldersFeature)((0,Jy.ConfigurationFeature)(cc))),io=class{constructor(){this._trace=K.Trace.Off}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}set trace(e){this._trace=e}log(e,n){this._trace!==K.Trace.Off&&this.connection.sendNotification(K.LogTraceNotification.type,{message:e,verbose:this._trace===K.Trace.Verbose?n:void 0}).catch(()=>{})}},ro=class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}logEvent(e){this.connection.sendNotification(K.TelemetryEventNotification.type,e).catch(()=>{this.connection.console.log("Sending TelemetryEventNotification failed")})}},so=class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}attachWorkDoneProgress(e){return(0,ce.attachWorkDone)(this.connection,e)}attachPartialResultProgress(e,n){return(0,ce.attachPartialResult)(this.connection,n)}};ye._LanguagesImpl=so;var wu=(0,aw.MonikerFeature)((0,sw.DiagnosticFeature)((0,rw.InlayHintFeature)((0,iw.InlineValueFeature)((0,nw.TypeHierarchyFeature)((0,tw.LinkedEditingRangeFeature)((0,Qy.SemanticTokensFeature)((0,Yy.CallHierarchyFeature)(so)))))))),oo=class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}attachWorkDoneProgress(e){return(0,ce.attachWorkDone)(this.connection,e)}attachPartialResultProgress(e,n){return(0,ce.attachPartialResult)(this.connection,n)}};ye._NotebooksImpl=oo;var vu=(0,ow.NotebookSyncFeature)(oo);function Su(t,e){return function(n){return e(t(n))}}ye.combineConsoleFeatures=Su;function _u(t,e){return function(n){return e(t(n))}}ye.combineTelemetryFeatures=_u;function xu(t,e){return function(n){return e(t(n))}}ye.combineTracerFeatures=xu;function Cu(t,e){return function(n){return e(t(n))}}ye.combineClientFeatures=Cu;function Fu(t,e){return function(n){return e(t(n))}}ye.combineWindowFeatures=Fu;function ku(t,e){return function(n){return e(t(n))}}ye.combineWorkspaceFeatures=ku;function Au(t,e){return function(n){return e(t(n))}}ye.combineLanguagesFeatures=Au;function Eu(t,e){return function(n){return e(t(n))}}ye.combineNotebooksFeatures=Eu;function dw(t,e){function n(r,s,o){return r&&s?o(r,s):r||s}return{__brand:"features",console:n(t.console,e.console,Su),tracer:n(t.tracer,e.tracer,xu),telemetry:n(t.telemetry,e.telemetry,_u),client:n(t.client,e.client,Cu),window:n(t.window,e.window,Fu),workspace:n(t.workspace,e.workspace,ku),languages:n(t.languages,e.languages,Au),notebooks:n(t.notebooks,e.notebooks,Eu)}}ye.combineFeatures=dw;function hw(t,e,n){let i=n&&n.console?new(n.console(eo)):new eo,r=t(i);i.rawAttach(r);let s=n&&n.tracer?new(n.tracer(io)):new io,o=n&&n.telemetry?new(n.telemetry(ro)):new ro,a=n&&n.client?new(n.client(no)):new no,l=n&&n.window?new(n.window(bu)):new bu,c=n&&n.workspace?new(n.workspace(yu)):new yu,d=n&&n.languages?new(n.languages(wu)):new wu,p=n&&n.notebooks?new(n.notebooks(vu)):new vu,b=[i,s,o,a,l,c,d,p];function y(k){return k instanceof Promise?k:kt.thenable(k)?new Promise((_,F)=>{k.then(O=>_(O),O=>F(O))}):Promise.resolve(k)}let M,P,Y,$={listen:()=>r.listen(),sendRequest:(k,..._)=>r.sendRequest(kt.string(k)?k:k.method,..._),onRequest:(k,_)=>r.onRequest(k,_),sendNotification:(k,_)=>{let F=kt.string(k)?k:k.method;return arguments.length===1?r.sendNotification(F):r.sendNotification(F,_)},onNotification:(k,_)=>r.onNotification(k,_),onProgress:r.onProgress,sendProgress:r.sendProgress,onInitialize:k=>(P=k,{dispose:()=>{P=void 0}}),onInitialized:k=>r.onNotification(K.InitializedNotification.type,k),onShutdown:k=>(M=k,{dispose:()=>{M=void 0}}),onExit:k=>(Y=k,{dispose:()=>{Y=void 0}}),get console(){return i},get telemetry(){return o},get tracer(){return s},get client(){return a},get window(){return l},get workspace(){return c},get languages(){return d},get notebooks(){return p},onDidChangeConfiguration:k=>r.onNotification(K.DidChangeConfigurationNotification.type,k),onDidChangeWatchedFiles:k=>r.onNotification(K.DidChangeWatchedFilesNotification.type,k),__textDocumentSync:void 0,onDidOpenTextDocument:k=>r.onNotification(K.DidOpenTextDocumentNotification.type,k),onDidChangeTextDocument:k=>r.onNotification(K.DidChangeTextDocumentNotification.type,k),onDidCloseTextDocument:k=>r.onNotification(K.DidCloseTextDocumentNotification.type,k),onWillSaveTextDocument:k=>r.onNotification(K.WillSaveTextDocumentNotification.type,k),onWillSaveTextDocumentWaitUntil:k=>r.onRequest(K.WillSaveTextDocumentWaitUntilRequest.type,k),onDidSaveTextDocument:k=>r.onNotification(K.DidSaveTextDocumentNotification.type,k),sendDiagnostics:k=>r.sendNotification(K.PublishDiagnosticsNotification.type,k),onHover:k=>r.onRequest(K.HoverRequest.type,(_,F)=>k(_,F,(0,ce.attachWorkDone)(r,_),void 0)),onCompletion:k=>r.onRequest(K.CompletionRequest.type,(_,F)=>k(_,F,(0,ce.attachWorkDone)(r,_),(0,ce.attachPartialResult)(r,_))),onCompletionResolve:k=>r.onRequest(K.CompletionResolveRequest.type,k),onSignatureHelp:k=>r.onRequest(K.SignatureHelpRequest.type,(_,F)=>k(_,F,(0,ce.attachWorkDone)(r,_),void 0)),onDeclaration:k=>r.onRequest(K.DeclarationRequest.type,(_,F)=>k(_,F,(0,ce.attachWorkDone)(r,_),(0,ce.attachPartialResult)(r,_))),onDefinition:k=>r.onRequest(K.DefinitionRequest.type,(_,F)=>k(_,F,(0,ce.attachWorkDone)(r,_),(0,ce.attachPartialResult)(r,_))),onTypeDefinition:k=>r.onRequest(K.TypeDefinitionRequest.type,(_,F)=>k(_,F,(0,ce.attachWorkDone)(r,_),(0,ce.attachPartialResult)(r,_))),onImplementation:k=>r.onRequest(K.ImplementationRequest.type,(_,F)=>k(_,F,(0,ce.attachWorkDone)(r,_),(0,ce.attachPartialResult)(r,_))),onReferences:k=>r.onRequest(K.ReferencesRequest.type,(_,F)=>k(_,F,(0,ce.attachWorkDone)(r,_),(0,ce.attachPartialResult)(r,_))),onDocumentHighlight:k=>r.onRequest(K.DocumentHighlightRequest.type,(_,F)=>k(_,F,(0,ce.attachWorkDone)(r,_),(0,ce.attachPartialResult)(r,_))),onDocumentSymbol:k=>r.onRequest(K.DocumentSymbolRequest.type,(_,F)=>k(_,F,(0,ce.attachWorkDone)(r,_),(0,ce.attachPartialResult)(r,_))),onWorkspaceSymbol:k=>r.onRequest(K.WorkspaceSymbolRequest.type,(_,F)=>k(_,F,(0,ce.attachWorkDone)(r,_),(0,ce.attachPartialResult)(r,_))),onWorkspaceSymbolResolve:k=>r.onRequest(K.WorkspaceSymbolResolveRequest.type,k),onCodeAction:k=>r.onRequest(K.CodeActionRequest.type,(_,F)=>k(_,F,(0,ce.attachWorkDone)(r,_),(0,ce.attachPartialResult)(r,_))),onCodeActionResolve:k=>r.onRequest(K.CodeActionResolveRequest.type,(_,F)=>k(_,F)),onCodeLens:k=>r.onRequest(K.CodeLensRequest.type,(_,F)=>k(_,F,(0,ce.attachWorkDone)(r,_),(0,ce.attachPartialResult)(r,_))),onCodeLensResolve:k=>r.onRequest(K.CodeLensResolveRequest.type,(_,F)=>k(_,F)),onDocumentFormatting:k=>r.onRequest(K.DocumentFormattingRequest.type,(_,F)=>k(_,F,(0,ce.attachWorkDone)(r,_),void 0)),onDocumentRangeFormatting:k=>r.onRequest(K.DocumentRangeFormattingRequest.type,(_,F)=>k(_,F,(0,ce.attachWorkDone)(r,_),void 0)),onDocumentOnTypeFormatting:k=>r.onRequest(K.DocumentOnTypeFormattingRequest.type,(_,F)=>k(_,F)),onRenameRequest:k=>r.onRequest(K.RenameRequest.type,(_,F)=>k(_,F,(0,ce.attachWorkDone)(r,_),void 0)),onPrepareRename:k=>r.onRequest(K.PrepareRenameRequest.type,(_,F)=>k(_,F)),onDocumentLinks:k=>r.onRequest(K.DocumentLinkRequest.type,(_,F)=>k(_,F,(0,ce.attachWorkDone)(r,_),(0,ce.attachPartialResult)(r,_))),onDocumentLinkResolve:k=>r.onRequest(K.DocumentLinkResolveRequest.type,(_,F)=>k(_,F)),onDocumentColor:k=>r.onRequest(K.DocumentColorRequest.type,(_,F)=>k(_,F,(0,ce.attachWorkDone)(r,_),(0,ce.attachPartialResult)(r,_))),onColorPresentation:k=>r.onRequest(K.ColorPresentationRequest.type,(_,F)=>k(_,F,(0,ce.attachWorkDone)(r,_),(0,ce.attachPartialResult)(r,_))),onFoldingRanges:k=>r.onRequest(K.FoldingRangeRequest.type,(_,F)=>k(_,F,(0,ce.attachWorkDone)(r,_),(0,ce.attachPartialResult)(r,_))),onSelectionRanges:k=>r.onRequest(K.SelectionRangeRequest.type,(_,F)=>k(_,F,(0,ce.attachWorkDone)(r,_),(0,ce.attachPartialResult)(r,_))),onExecuteCommand:k=>r.onRequest(K.ExecuteCommandRequest.type,(_,F)=>k(_,F,(0,ce.attachWorkDone)(r,_),void 0)),dispose:()=>r.dispose()};for(let k of b)k.attach($);return r.onRequest(K.InitializeRequest.type,k=>{e.initialize(k),kt.string(k.trace)&&(s.trace=K.Trace.fromString(k.trace));for(let _ of b)_.initialize(k.capabilities);if(P){let _=P(k,new K.CancellationTokenSource().token,(0,ce.attachWorkDone)(r,k),void 0);return y(_).then(F=>{if(F instanceof K.ResponseError)return F;let O=F;O||(O={capabilities:{}});let j=O.capabilities;j||(j={},O.capabilities=j),j.textDocumentSync===void 0||j.textDocumentSync===null?j.textDocumentSync=kt.number($.__textDocumentSync)?$.__textDocumentSync:K.TextDocumentSyncKind.None:!kt.number(j.textDocumentSync)&&!kt.number(j.textDocumentSync.change)&&(j.textDocumentSync.change=kt.number($.__textDocumentSync)?$.__textDocumentSync:K.TextDocumentSyncKind.None);for(let Q of b)Q.fillServerCapabilities(j);return O})}else{let _={capabilities:{textDocumentSync:K.TextDocumentSyncKind.None}};for(let F of b)F.fillServerCapabilities(_.capabilities);return _}}),r.onRequest(K.ShutdownRequest.type,()=>{if(e.shutdownReceived=!0,M)return M(new K.CancellationTokenSource().token)}),r.onNotification(K.ExitNotification.type,()=>{try{Y&&Y()}finally{e.shutdownReceived?e.exit(0):e.exit(1)}}),r.onNotification(K.SetTraceNotification.type,k=>{s.trace=K.Trace.fromString(k.value)}),$}ye.createConnection=hw});var Ru=J(ut=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});ut.resolveModulePath=ut.FileSystem=ut.resolveGlobalYarnPath=ut.resolveGlobalNodePath=ut.resolve=ut.uriToFilePath=void 0;var uw=require("url"),$t=require("path"),hc=require("fs"),mc=require("child_process");function pw(t){let e=uw.parse(t);if(e.protocol!=="file:"||!e.path)return;let n=e.path.split("/");for(var i=0,r=n.length;i<r;i++)n[i]=decodeURIComponent(n[i]);if(process.platform==="win32"&&n.length>1){let s=n[0],o=n[1];s.length===0&&o.length>1&&o[1]===":"&&n.shift()}return $t.normalize(n.join("/"))}ut.uriToFilePath=pw;function uc(){return process.platform==="win32"}function ao(t,e,n,i){let r="NODE_PATH",s=["var p = process;","p.on('message',function(m){","if(m.c==='e'){","p.exit(0);","}","else if(m.c==='rs'){","try{","var r=require.resolve(m.a);","p.send({c:'r',s:true,r:r});","}","catch(err){","p.send({c:'r',s:false});","}","}","});"].join("");return new Promise((o,a)=>{let l=process.env,c=Object.create(null);Object.keys(l).forEach(d=>c[d]=l[d]),e&&hc.existsSync(e)&&(c[r]?c[r]=e+$t.delimiter+c[r]:c[r]=e,i&&i(`NODE_PATH value is: ${c[r]}`)),c.ELECTRON_RUN_AS_NODE="1";try{let d=(0,mc.fork)("",[],{cwd:n,env:c,execArgv:["-e",s]});if(d.pid===void 0){a(new Error(`Starting process to resolve node module ${t} failed`));return}d.on("error",b=>{a(b)}),d.on("message",b=>{b.c==="r"&&(d.send({c:"e"}),b.s?o(b.r):a(new Error(`Failed to resolve module: ${t}`)))});let p={c:"rs",a:t};d.send(p)}catch(d){a(d)}})}ut.resolve=ao;function pc(t){let e="npm",n=Object.create(null);Object.keys(process.env).forEach(s=>n[s]=process.env[s]),n.NO_UPDATE_NOTIFIER="true";let i={encoding:"utf8",env:n};uc()&&(e="npm.cmd",i.shell=!0);let r=()=>{};try{process.on("SIGPIPE",r);let s=(0,mc.spawnSync)(e,["config","get","prefix"],i).stdout;if(!s){t&&t("'npm config get prefix' didn't return a value.");return}let o=s.trim();return t&&t(`'npm config get prefix' value is: ${o}`),o.length>0?uc()?$t.join(o,"node_modules"):$t.join(o,"lib","node_modules"):void 0}catch{return}finally{process.removeListener("SIGPIPE",r)}}ut.resolveGlobalNodePath=pc;function mw(t){let e="yarn",n={encoding:"utf8"};uc()&&(e="yarn.cmd",n.shell=!0);let i=()=>{};try{process.on("SIGPIPE",i);let r=(0,mc.spawnSync)(e,["global","dir","--json"],n),s=r.stdout;if(!s){t&&(t("'yarn global dir' didn't return a value."),r.stderr&&t(r.stderr));return}let o=s.trim().split(/\r?\n/);for(let a of o)try{let l=JSON.parse(a);if(l.type==="log")return $t.join(l.data,"node_modules")}catch{}return}catch{return}finally{process.removeListener("SIGPIPE",i)}}ut.resolveGlobalYarnPath=mw;var Du;(function(t){let e;function n(){return e!==void 0||(process.platform==="win32"?e=!1:e=!hc.existsSync(__filename.toUpperCase())||!hc.existsSync(__filename.toLowerCase())),e}t.isCaseSensitive=n;function i(r,s){return n()?$t.normalize(s).indexOf($t.normalize(r))===0:$t.normalize(s).toLowerCase().indexOf($t.normalize(r).toLowerCase())===0}t.isParent=i})(Du=ut.FileSystem||(ut.FileSystem={}));function fw(t,e,n,i){return n?($t.isAbsolute(n)||(n=$t.join(t,n)),ao(e,n,n,i).then(r=>Du.isParent(n,r)?r:Promise.reject(new Error(`Failed to load ${e} from node path location.`))).then(void 0,r=>ao(e,pc(i),t,i))):ao(e,pc(i),t,i)}ut.resolveModulePath=fw});var fc=J((N0,Mu)=>{"use strict";Mu.exports=Ye()});var Iu=J(nt=>{"use strict";var gw=nt&&nt.__createBinding||(Object.create?function(t,e,n,i){i===void 0&&(i=n);var r=Object.getOwnPropertyDescriptor(e,n);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,r)}:function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]}),Tu=nt&&nt.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&gw(e,t,n)};Object.defineProperty(nt,"__esModule",{value:!0});nt.ProposedFeatures=nt.NotebookDocuments=nt.TextDocuments=nt.SemanticTokensBuilder=void 0;var bw=Ql();Object.defineProperty(nt,"SemanticTokensBuilder",{enumerable:!0,get:function(){return bw.SemanticTokensBuilder}});Tu(Ye(),nt);var yw=nc();Object.defineProperty(nt,"TextDocuments",{enumerable:!0,get:function(){return yw.TextDocuments}});var ww=rc();Object.defineProperty(nt,"NotebookDocuments",{enumerable:!0,get:function(){return ww.NotebookDocuments}});Tu(dc(),nt);var vw;(function(t){t.all={__brand:"features"}})(vw=nt.ProposedFeatures||(nt.ProposedFeatures={}))});var Ou=J(wt=>{"use strict";var Sw=wt&&wt.__createBinding||(Object.create?function(t,e,n,i){i===void 0&&(i=n);var r=Object.getOwnPropertyDescriptor(e,n);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,r)}:function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]}),zu=wt&&wt.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&Sw(e,t,n)};Object.defineProperty(wt,"__esModule",{value:!0});wt.createConnection=wt.Files=void 0;var gc=hs(),_w=dc(),Fr=Ru(),ei=fc();zu(fc(),wt);zu(Iu(),wt);var xw;(function(t){t.uriToFilePath=Fr.uriToFilePath,t.resolveGlobalNodePath=Fr.resolveGlobalNodePath,t.resolveGlobalYarnPath=Fr.resolveGlobalYarnPath,t.resolve=Fr.resolve,t.resolveModulePath=Fr.resolveModulePath})(xw=wt.Files||(wt.Files={}));var Pu;function lo(){if(Pu!==void 0)try{Pu.end()}catch{}}var Di=!1,Nu;function Cw(){let t="--clientProcessId";function e(n){try{let i=parseInt(n);isNaN(i)||(Nu=setInterval(()=>{try{process.kill(i,0)}catch{lo(),process.exit(Di?0:1)}},3e3))}catch{}}for(let n=2;n<process.argv.length;n++){let i=process.argv[n];if(i===t&&n+1<process.argv.length){e(process.argv[n+1]);return}else{let r=i.split("=");r[0]===t&&e(r[1])}}}Cw();var Fw={initialize:t=>{let e=t.processId;gc.number(e)&&Nu===void 0&&setInterval(()=>{try{process.kill(e,0)}catch{process.exit(Di?0:1)}},3e3)},get shutdownReceived(){return Di},set shutdownReceived(t){Di=t},exit:t=>{lo(),process.exit(t)}};function kw(t,e,n,i){let r,s,o,a;return t!==void 0&&t.__brand==="features"&&(r=t,t=e,e=n,n=i),ei.ConnectionStrategy.is(t)||ei.ConnectionOptions.is(t)?a=t:(s=t,o=e,a=n),Aw(s,o,a,r)}wt.createConnection=kw;function Aw(t,e,n,i){if(!t&&!e&&process.argv.length>2){let a,l,c=process.argv.slice(2);for(let d=0;d<c.length;d++){let p=c[d];if(p==="--node-ipc"){t=new ei.IPCMessageReader(process),e=new ei.IPCMessageWriter(process);break}else if(p==="--stdio"){t=process.stdin,e=process.stdout;break}else if(p==="--socket"){a=parseInt(c[d+1]);break}else if(p==="--pipe"){l=c[d+1];break}else{var r=p.split("=");if(r[0]==="--socket"){a=parseInt(r[1]);break}else if(r[0]==="--pipe"){l=r[1];break}}}if(a){let d=(0,ei.createServerSocketTransport)(a);t=d[0],e=d[1]}else if(l){let d=(0,ei.createServerPipeTransport)(l);t=d[0],e=d[1]}}var s="Use arguments of createConnection or set command line parameters: '--node-ipc', '--stdio' or '--socket={number}'";if(!t)throw new Error("Connection input stream is not set. "+s);if(!e)throw new Error("Connection output stream is not set. "+s);if(gc.func(t.read)&&gc.func(t.on)){let a=t;a.on("end",()=>{lo(),process.exit(Di?0:1)}),a.on("close",()=>{lo(),process.exit(Di?0:1)})}let o=a=>(0,ei.createProtocolConnection)(t,e,a,n);return(0,_w.createConnection)(o,Fw,i)}});var bc=J((L0,Wu)=>{"use strict";Wu.exports=Ou()});var Rt=J(($0,op)=>{"use strict";var Fc=Object.defineProperty,Xw=Object.getOwnPropertyDescriptor,Yw=Object.getOwnPropertyNames,Qw=Object.prototype.hasOwnProperty,Zw=(t,e)=>{for(var n in e)Fc(t,n,{get:e[n],enumerable:!0})},ev=(t,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of Yw(e))!Qw.call(t,r)&&r!==n&&Fc(t,r,{get:()=>e[r],enumerable:!(i=Xw(e,r))||i.enumerable});return t},tv=t=>ev(Fc({},"__esModule",{value:!0}),t),rp={};Zw(rp,{config:()=>ov,t:()=>sp});op.exports=tv(rp);var nv=require("fs"),iv=require("fs/promises");async function rv(t){if(t.protocol==="file:")return await(0,iv.readFile)(t,"utf8");if(t.protocol==="http:"||t.protocol==="https:"){let e=await fetch(t.toString(),{headers:{"Accept-Encoding":"gzip, deflate",Accept:"application/json"},redirect:"follow"});if(!e.ok){let i=`Unexpected ${e.status} response while trying to read ${t}`;try{i+=`: ${await e.text()}`}catch{}throw new Error(i)}return await e.text()}throw new Error("Unsupported protocol")}function sv(t){return(0,nv.readFileSync)(t,"utf8")}var Ir;function ov(t){if("contents"in t){typeof t.contents=="string"?Ir=JSON.parse(t.contents):Ir=t.contents;return}if("fsPath"in t){let e=sv(t.fsPath),n=JSON.parse(e);Ir=ip(n)?n.contents.bundle:n;return}if(t.uri){let e=t.uri;return typeof t.uri=="string"&&(e=new URL(t.uri)),new Promise((n,i)=>{rv(e).then(r=>{try{let s=JSON.parse(r);Ir=ip(s)?s.contents.bundle:s,n()}catch(s){i(s)}}).catch(r=>{i(r)})})}}function sp(...t){let e=t[0],n,i,r;if(typeof e=="string")n=e,i=e,t.splice(0,1),r=!t||typeof t[0]!="object"?t:t[0];else if(e instanceof Array){let o=t.slice(1);if(e.length!==o.length+1)throw new Error("expected a string as the first argument to l10n.t");let a=e[0];for(let l=1;l<e.length;l++)a+=`{${l-1}}`+e[l];return sp(a,...o)}else i=e.message,n=i,e.comment&&e.comment.length>0&&(n+=`/${Array.isArray(e.comment)?e.comment.join(""):e.comment}`),r=e.args??{};let s=Ir?.[n];return s?typeof s=="string"?zo(s,r):s.comment?zo(s.message,r):zo(i,r):zo(i,r)}var av=/{([^}]+)}/g;function zo(t,e){return Object.keys(e).length===0?t:t.replace(av,(n,i)=>e[i]??n)}function ip(t){return typeof t?.contents?.bundle=="object"&&typeof t?.version=="string"}});var jm=J((ss,Ad)=>{(function(t,e){if(typeof ss=="object"&&typeof Ad=="object")Ad.exports=e();else if(typeof define=="function"&&define.amd)define([],e);else{var n=e();for(var i in n)(typeof ss=="object"?ss:t)[i]=n[i]}})(ss,function(){return(()=>{"use strict";var t={470:n=>{function i(o){if(typeof o!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(o))}function r(o,a){for(var l,c="",d=0,p=-1,b=0,y=0;y<=o.length;++y){if(y<o.length)l=o.charCodeAt(y);else{if(l===47)break;l=47}if(l===47){if(!(p===y-1||b===1))if(p!==y-1&&b===2){if(c.length<2||d!==2||c.charCodeAt(c.length-1)!==46||c.charCodeAt(c.length-2)!==46){if(c.length>2){var M=c.lastIndexOf("/");if(M!==c.length-1){M===-1?(c="",d=0):d=(c=c.slice(0,M)).length-1-c.lastIndexOf("/"),p=y,b=0;continue}}else if(c.length===2||c.length===1){c="",d=0,p=y,b=0;continue}}a&&(c.length>0?c+="/..":c="..",d=2)}else c.length>0?c+="/"+o.slice(p+1,y):c=o.slice(p+1,y),d=y-p-1;p=y,b=0}else l===46&&b!==-1?++b:b=-1}return c}var s={resolve:function(){for(var o,a="",l=!1,c=arguments.length-1;c>=-1&&!l;c--){var d;c>=0?d=arguments[c]:(o===void 0&&(o=process.cwd()),d=o),i(d),d.length!==0&&(a=d+"/"+a,l=d.charCodeAt(0)===47)}return a=r(a,!l),l?a.length>0?"/"+a:"/":a.length>0?a:"."},normalize:function(o){if(i(o),o.length===0)return".";var a=o.charCodeAt(0)===47,l=o.charCodeAt(o.length-1)===47;return(o=r(o,!a)).length!==0||a||(o="."),o.length>0&&l&&(o+="/"),a?"/"+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,a=0;a<arguments.length;++a){var l=arguments[a];i(l),l.length>0&&(o===void 0?o=l:o+="/"+l)}return o===void 0?".":s.normalize(o)},relative:function(o,a){if(i(o),i(a),o===a||(o=s.resolve(o))===(a=s.resolve(a)))return"";for(var l=1;l<o.length&&o.charCodeAt(l)===47;++l);for(var c=o.length,d=c-l,p=1;p<a.length&&a.charCodeAt(p)===47;++p);for(var b=a.length-p,y=d<b?d:b,M=-1,P=0;P<=y;++P){if(P===y){if(b>y){if(a.charCodeAt(p+P)===47)return a.slice(p+P+1);if(P===0)return a.slice(p+P)}else d>y&&(o.charCodeAt(l+P)===47?M=P:P===0&&(M=0));break}var Y=o.charCodeAt(l+P);if(Y!==a.charCodeAt(p+P))break;Y===47&&(M=P)}var $="";for(P=l+M+1;P<=c;++P)P!==c&&o.charCodeAt(P)!==47||($.length===0?$+="..":$+="/..");return $.length>0?$+a.slice(p+M):(p+=M,a.charCodeAt(p)===47&&++p,a.slice(p))},_makeLong:function(o){return o},dirname:function(o){if(i(o),o.length===0)return".";for(var a=o.charCodeAt(0),l=a===47,c=-1,d=!0,p=o.length-1;p>=1;--p)if((a=o.charCodeAt(p))===47){if(!d){c=p;break}}else d=!1;return c===-1?l?"/":".":l&&c===1?"//":o.slice(0,c)},basename:function(o,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');i(o);var l,c=0,d=-1,p=!0;if(a!==void 0&&a.length>0&&a.length<=o.length){if(a.length===o.length&&a===o)return"";var b=a.length-1,y=-1;for(l=o.length-1;l>=0;--l){var M=o.charCodeAt(l);if(M===47){if(!p){c=l+1;break}}else y===-1&&(p=!1,y=l+1),b>=0&&(M===a.charCodeAt(b)?--b==-1&&(d=l):(b=-1,d=y))}return c===d?d=y:d===-1&&(d=o.length),o.slice(c,d)}for(l=o.length-1;l>=0;--l)if(o.charCodeAt(l)===47){if(!p){c=l+1;break}}else d===-1&&(p=!1,d=l+1);return d===-1?"":o.slice(c,d)},extname:function(o){i(o);for(var a=-1,l=0,c=-1,d=!0,p=0,b=o.length-1;b>=0;--b){var y=o.charCodeAt(b);if(y!==47)c===-1&&(d=!1,c=b+1),y===46?a===-1?a=b:p!==1&&(p=1):a!==-1&&(p=-1);else if(!d){l=b+1;break}}return a===-1||c===-1||p===0||p===1&&a===c-1&&a===l+1?"":o.slice(a,c)},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(a,l){var c=l.dir||l.root,d=l.base||(l.name||"")+(l.ext||"");return c?c===l.root?c+d:c+"/"+d:d}(0,o)},parse:function(o){i(o);var a={root:"",dir:"",base:"",ext:"",name:""};if(o.length===0)return a;var l,c=o.charCodeAt(0),d=c===47;d?(a.root="/",l=1):l=0;for(var p=-1,b=0,y=-1,M=!0,P=o.length-1,Y=0;P>=l;--P)if((c=o.charCodeAt(P))!==47)y===-1&&(M=!1,y=P+1),c===46?p===-1?p=P:Y!==1&&(Y=1):p!==-1&&(Y=-1);else if(!M){b=P+1;break}return p===-1||y===-1||Y===0||Y===1&&p===y-1&&p===b+1?y!==-1&&(a.base=a.name=b===0&&d?o.slice(1,y):o.slice(b,y)):(b===0&&d?(a.name=o.slice(1,p),a.base=o.slice(1,y)):(a.name=o.slice(b,p),a.base=o.slice(b,y)),a.ext=o.slice(p,y)),b>0?a.dir=o.slice(0,b-1):d&&(a.dir="/"),a},sep:"/",delimiter:":",win32:null,posix:null};s.posix=s,n.exports=s},465:(n,i,r)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.Utils=i.URI=void 0;var s=r(796);Object.defineProperty(i,"URI",{enumerable:!0,get:function(){return s.URI}});var o=r(679);Object.defineProperty(i,"Utils",{enumerable:!0,get:function(){return o.Utils}})},674:(n,i)=>{if(Object.defineProperty(i,"__esModule",{value:!0}),i.isWindows=void 0,typeof process=="object")i.isWindows=process.platform==="win32";else if(typeof navigator=="object"){var r=navigator.userAgent;i.isWindows=r.indexOf("Windows")>=0}},796:function(n,i,r){var s,o,a=this&&this.__extends||(s=function(L,A){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,I){x.__proto__=I}||function(x,I){for(var q in I)Object.prototype.hasOwnProperty.call(I,q)&&(x[q]=I[q])})(L,A)},function(L,A){function x(){this.constructor=L}s(L,A),L.prototype=A===null?Object.create(A):(x.prototype=A.prototype,new x)});Object.defineProperty(i,"__esModule",{value:!0}),i.uriToFsPath=i.URI=void 0;var l=r(674),c=/^\w[\w\d+.-]*$/,d=/^\//,p=/^\/\//,b="",y="/",M=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,P=function(){function L(A,x,I,q,G,H){H===void 0&&(H=!1),typeof A=="object"?(this.scheme=A.scheme||b,this.authority=A.authority||b,this.path=A.path||b,this.query=A.query||b,this.fragment=A.fragment||b):(this.scheme=function(X,ve){return X||ve?X:"file"}(A,H),this.authority=x||b,this.path=function(X,ve){switch(X){case"https":case"http":case"file":ve?ve[0]!==y&&(ve=y+ve):ve=y}return ve}(this.scheme,I||b),this.query=q||b,this.fragment=G||b,function(X,ve){if(!X.scheme&&ve)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+X.authority+'", path: "'+X.path+'", query: "'+X.query+'", fragment: "'+X.fragment+'"}');if(X.scheme&&!c.test(X.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(X.path){if(X.authority){if(!d.test(X.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(p.test(X.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}(this,H))}return L.isUri=function(A){return A instanceof L||!!A&&typeof A.authority=="string"&&typeof A.fragment=="string"&&typeof A.path=="string"&&typeof A.query=="string"&&typeof A.scheme=="string"&&typeof A.fsPath=="function"&&typeof A.with=="function"&&typeof A.toString=="function"},Object.defineProperty(L.prototype,"fsPath",{get:function(){return O(this,!1)},enumerable:!1,configurable:!0}),L.prototype.with=function(A){if(!A)return this;var x=A.scheme,I=A.authority,q=A.path,G=A.query,H=A.fragment;return x===void 0?x=this.scheme:x===null&&(x=b),I===void 0?I=this.authority:I===null&&(I=b),q===void 0?q=this.path:q===null&&(q=b),G===void 0?G=this.query:G===null&&(G=b),H===void 0?H=this.fragment:H===null&&(H=b),x===this.scheme&&I===this.authority&&q===this.path&&G===this.query&&H===this.fragment?this:new $(x,I,q,G,H)},L.parse=function(A,x){x===void 0&&(x=!1);var I=M.exec(A);return I?new $(I[2]||b,ue(I[4]||b),ue(I[5]||b),ue(I[7]||b),ue(I[9]||b),x):new $(b,b,b,b,b)},L.file=function(A){var x=b;if(l.isWindows&&(A=A.replace(/\\/g,y)),A[0]===y&&A[1]===y){var I=A.indexOf(y,2);I===-1?(x=A.substring(2),A=y):(x=A.substring(2,I),A=A.substring(I)||y)}return new $("file",x,A,b,b)},L.from=function(A){return new $(A.scheme,A.authority,A.path,A.query,A.fragment)},L.prototype.toString=function(A){return A===void 0&&(A=!1),j(this,A)},L.prototype.toJSON=function(){return this},L.revive=function(A){if(A){if(A instanceof L)return A;var x=new $(A);return x._formatted=A.external,x._fsPath=A._sep===Y?A.fsPath:null,x}return A},L}();i.URI=P;var Y=l.isWindows?1:void 0,$=function(L){function A(){var x=L!==null&&L.apply(this,arguments)||this;return x._formatted=null,x._fsPath=null,x}return a(A,L),Object.defineProperty(A.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=O(this,!1)),this._fsPath},enumerable:!1,configurable:!0}),A.prototype.toString=function(x){return x===void 0&&(x=!1),x?j(this,!0):(this._formatted||(this._formatted=j(this,!1)),this._formatted)},A.prototype.toJSON=function(){var x={$mid:1};return this._fsPath&&(x.fsPath=this._fsPath,x._sep=Y),this._formatted&&(x.external=this._formatted),this.path&&(x.path=this.path),this.scheme&&(x.scheme=this.scheme),this.authority&&(x.authority=this.authority),this.query&&(x.query=this.query),this.fragment&&(x.fragment=this.fragment),x},A}(P),k=((o={})[58]="%3A",o[47]="%2F",o[63]="%3F",o[35]="%23",o[91]="%5B",o[93]="%5D",o[64]="%40",o[33]="%21",o[36]="%24",o[38]="%26",o[39]="%27",o[40]="%28",o[41]="%29",o[42]="%2A",o[43]="%2B",o[44]="%2C",o[59]="%3B",o[61]="%3D",o[32]="%20",o);function _(L,A){for(var x=void 0,I=-1,q=0;q<L.length;q++){var G=L.charCodeAt(q);if(G>=97&&G<=122||G>=65&&G<=90||G>=48&&G<=57||G===45||G===46||G===95||G===126||A&&G===47)I!==-1&&(x+=encodeURIComponent(L.substring(I,q)),I=-1),x!==void 0&&(x+=L.charAt(q));else{x===void 0&&(x=L.substr(0,q));var H=k[G];H!==void 0?(I!==-1&&(x+=encodeURIComponent(L.substring(I,q)),I=-1),x+=H):I===-1&&(I=q)}}return I!==-1&&(x+=encodeURIComponent(L.substring(I))),x!==void 0?x:L}function F(L){for(var A=void 0,x=0;x<L.length;x++){var I=L.charCodeAt(x);I===35||I===63?(A===void 0&&(A=L.substr(0,x)),A+=k[I]):A!==void 0&&(A+=L[x])}return A!==void 0?A:L}function O(L,A){var x;return x=L.authority&&L.path.length>1&&L.scheme==="file"?"//"+L.authority+L.path:L.path.charCodeAt(0)===47&&(L.path.charCodeAt(1)>=65&&L.path.charCodeAt(1)<=90||L.path.charCodeAt(1)>=97&&L.path.charCodeAt(1)<=122)&&L.path.charCodeAt(2)===58?A?L.path.substr(1):L.path[1].toLowerCase()+L.path.substr(2):L.path,l.isWindows&&(x=x.replace(/\//g,"\\")),x}function j(L,A){var x=A?F:_,I="",q=L.scheme,G=L.authority,H=L.path,X=L.query,ve=L.fragment;if(q&&(I+=q,I+=":"),(G||q==="file")&&(I+=y,I+=y),G){var be=G.indexOf("@");if(be!==-1){var he=G.substr(0,be);G=G.substr(be+1),(be=he.indexOf(":"))===-1?I+=x(he,!1):(I+=x(he.substr(0,be),!1),I+=":",I+=x(he.substr(be+1),!1)),I+="@"}(be=(G=G.toLowerCase()).indexOf(":"))===-1?I+=x(G,!1):(I+=x(G.substr(0,be),!1),I+=G.substr(be))}if(H){if(H.length>=3&&H.charCodeAt(0)===47&&H.charCodeAt(2)===58)($e=H.charCodeAt(1))>=65&&$e<=90&&(H="/"+String.fromCharCode($e+32)+":"+H.substr(3));else if(H.length>=2&&H.charCodeAt(1)===58){var $e;($e=H.charCodeAt(0))>=65&&$e<=90&&(H=String.fromCharCode($e+32)+":"+H.substr(2))}I+=x(H,!0)}return X&&(I+="?",I+=x(X,!1)),ve&&(I+="#",I+=A?ve:_(ve,!1)),I}function Q(L){try{return decodeURIComponent(L)}catch{return L.length>3?L.substr(0,3)+Q(L.substr(3)):L}}i.uriToFsPath=O;var oe=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function ue(L){return L.match(oe)?L.replace(oe,function(A){return Q(A)}):L}},679:function(n,i,r){var s=this&&this.__spreadArrays||function(){for(var c=0,d=0,p=arguments.length;d<p;d++)c+=arguments[d].length;var b=Array(c),y=0;for(d=0;d<p;d++)for(var M=arguments[d],P=0,Y=M.length;P<Y;P++,y++)b[y]=M[P];return b};Object.defineProperty(i,"__esModule",{value:!0}),i.Utils=void 0;var o,a=r(470),l=a.posix||a;(o=i.Utils||(i.Utils={})).joinPath=function(c){for(var d=[],p=1;p<arguments.length;p++)d[p-1]=arguments[p];return c.with({path:l.join.apply(l,s([c.path],d))})},o.resolvePath=function(c){for(var d=[],p=1;p<arguments.length;p++)d[p-1]=arguments[p];var b=c.path||"/";return c.with({path:l.resolve.apply(l,s([b],d))})},o.dirname=function(c){var d=l.dirname(c.path);return d.length===1&&d.charCodeAt(0)===46?c:c.with({path:d})},o.basename=function(c){return l.basename(c.path)},o.extname=function(c){return l.extname(c.path)}}},e={};return function n(i){if(e[i])return e[i].exports;var r=e[i]={exports:{}};return t[i].call(r.exports,r,r.exports,n),r.exports}(465)})()})});var Vm=J((yx,Um)=>{Um.exports=function(t,e,n,i,r){for(e=e.split?e.split("."):e,i=0;i<e.length;i++)t=t?t[e[i]]:r;return t===r?n:t}});var Zi=lt(bc());var Lu=require("node:util");function kr(t){return t.map(e=>(0,Lu.format)(e)).join(" ")}function qu(t,e){t.debug=(...n)=>e.console.info(kr(n)),t.error=(...n)=>e.console.error(kr(n)),t.warn=(...n)=>e.console.warn(kr(n)),t.info=(...n)=>e.console.info(kr(n)),t.log=(...n)=>e.console.log(kr(n))}var g;(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.ContainerQueryLength=42]="ContainerQueryLength",t[t.CustomToken=43]="CustomToken"})(g||(g={}));var uo=class{constructor(e){this.source=e,this.len=e.length,this.position=0}substring(e,n=this.position){return this.source.substring(e,n)}eos(){return this.len<=this.position}pos(){return this.position}goBackTo(e){this.position=e}goBack(e){this.position-=e}advance(e){this.position+=e}nextChar(){return this.source.charCodeAt(this.position++)||0}peekChar(e=0){return this.source.charCodeAt(this.position+e)||0}lookbackChar(e=0){return this.source.charCodeAt(this.position-e)||0}advanceIfChar(e){return e===this.source.charCodeAt(this.position)?(this.position++,!0):!1}advanceIfChars(e){if(this.position+e.length>this.source.length)return!1;let n=0;for(;n<e.length;n++)if(this.source.charCodeAt(this.position+n)!==e[n])return!1;return this.advance(n),!0}advanceWhileChar(e){let n=this.position;for(;this.position<this.len&&e(this.source.charCodeAt(this.position));)this.position++;return this.position-n}},co=97,ju=102,$u=122;var ho=65,Uu=70,Vu=90,Ar=48,Er=57,Ew=126,Dw=94,Dr=61,Rw=124,Mn=45,Bu=95,Mw=37,yc=42,Qu=40,Zu=41,Tw=60,Iw=62,Pw=64,zw=35,Nw=36,wc=92,Hu=47,Ri=10,Mi=13,Rr=12,Ku=34,Gu=39,vc=32,Sc=9,Ow=59,Ww=58,Lw=123,qw=125,jw=91,$w=93,Uw=44,Ju=46,Xu=33,Vw=63,Yu=43,Yt={};Yt[Ow]=g.SemiColon;Yt[Ww]=g.Colon;Yt[Lw]=g.CurlyL;Yt[qw]=g.CurlyR;Yt[$w]=g.BracketR;Yt[jw]=g.BracketL;Yt[Qu]=g.ParenthesisL;Yt[Zu]=g.ParenthesisR;Yt[Uw]=g.Comma;var Me={};Me.em=g.EMS;Me.ex=g.EXS;Me.px=g.Length;Me.cm=g.Length;Me.mm=g.Length;Me.in=g.Length;Me.pt=g.Length;Me.pc=g.Length;Me.deg=g.Angle;Me.rad=g.Angle;Me.grad=g.Angle;Me.ms=g.Time;Me.s=g.Time;Me.hz=g.Freq;Me.khz=g.Freq;Me["%"]=g.Percentage;Me.fr=g.Percentage;Me.dpi=g.Resolution;Me.dpcm=g.Resolution;Me.cqw=g.ContainerQueryLength;Me.cqh=g.ContainerQueryLength;Me.cqi=g.ContainerQueryLength;Me.cqb=g.ContainerQueryLength;Me.cqmin=g.ContainerQueryLength;Me.cqmax=g.ContainerQueryLength;var At=class{constructor(){this.stream=new uo(""),this.ignoreComment=!0,this.ignoreWhitespace=!0,this.inURL=!1}setSource(e){this.stream=new uo(e)}finishToken(e,n,i){return{offset:e,len:this.stream.pos()-e,type:n,text:i||this.stream.substring(e)}}substring(e,n){return this.stream.substring(e,e+n)}pos(){return this.stream.pos()}goBackTo(e){this.stream.goBackTo(e)}scanUnquotedString(){let e=this.stream.pos(),n=[];return this._unquotedString(n)?this.finishToken(e,g.UnquotedString,n.join("")):null}scan(){let e=this.trivia();if(e!==null)return e;let n=this.stream.pos();return this.stream.eos()?this.finishToken(n,g.EOF):this.scanNext(n)}tryScanUnicode(){let e=this.stream.pos();if(!this.stream.eos()&&this._unicodeRange())return this.finishToken(e,g.UnicodeRange);this.stream.goBackTo(e)}scanNext(e){if(this.stream.advanceIfChars([Tw,Xu,Mn,Mn]))return this.finishToken(e,g.CDO);if(this.stream.advanceIfChars([Mn,Mn,Iw]))return this.finishToken(e,g.CDC);let n=[];if(this.ident(n))return this.finishToken(e,g.Ident,n.join(""));if(this.stream.advanceIfChar(Pw))if(n=["@"],this._name(n)){let r=n.join("");return r==="@charset"?this.finishToken(e,g.Charset,r):this.finishToken(e,g.AtKeyword,r)}else return this.finishToken(e,g.Delim);if(this.stream.advanceIfChar(zw))return n=["#"],this._name(n)?this.finishToken(e,g.Hash,n.join("")):this.finishToken(e,g.Delim);if(this.stream.advanceIfChar(Xu))return this.finishToken(e,g.Exclamation);if(this._number()){let r=this.stream.pos();if(n=[this.stream.substring(e,r)],this.stream.advanceIfChar(Mw))return this.finishToken(e,g.Percentage);if(this.ident(n)){let s=this.stream.substring(r).toLowerCase(),o=Me[s];return typeof o<"u"?this.finishToken(e,o,n.join("")):this.finishToken(e,g.Dimension,n.join(""))}return this.finishToken(e,g.Num)}n=[];let i=this._string(n);return i!==null?this.finishToken(e,i,n.join("")):(i=Yt[this.stream.peekChar()],typeof i<"u"?(this.stream.advance(1),this.finishToken(e,i)):this.stream.peekChar(0)===Ew&&this.stream.peekChar(1)===Dr?(this.stream.advance(2),this.finishToken(e,g.Includes)):this.stream.peekChar(0)===Rw&&this.stream.peekChar(1)===Dr?(this.stream.advance(2),this.finishToken(e,g.Dashmatch)):this.stream.peekChar(0)===yc&&this.stream.peekChar(1)===Dr?(this.stream.advance(2),this.finishToken(e,g.SubstringOperator)):this.stream.peekChar(0)===Dw&&this.stream.peekChar(1)===Dr?(this.stream.advance(2),this.finishToken(e,g.PrefixOperator)):this.stream.peekChar(0)===Nw&&this.stream.peekChar(1)===Dr?(this.stream.advance(2),this.finishToken(e,g.SuffixOperator)):(this.stream.nextChar(),this.finishToken(e,g.Delim)))}trivia(){for(;;){let e=this.stream.pos();if(this._whitespace()){if(!this.ignoreWhitespace)return this.finishToken(e,g.Whitespace)}else if(this.comment()){if(!this.ignoreComment)return this.finishToken(e,g.Comment)}else return null}}comment(){if(this.stream.advanceIfChars([Hu,yc])){let e=!1,n=!1;return this.stream.advanceWhileChar(i=>n&&i===Hu?(e=!0,!1):(n=i===yc,!0)),e&&this.stream.advance(1),!0}return!1}_number(){let e=0,n=!1,i=this.stream.peekChar();(i===Yu||i===Mn)&&e++,this.stream.peekChar(e)===Ju&&(e++,n=!0);let r=this.stream.peekChar(e);return r>=Ar&&r<=Er?(this.stream.advance(e+1),this.stream.advanceWhileChar(s=>s>=Ar&&s<=Er||!n&&s===Ju),!0):!1}_newline(e){let n=this.stream.peekChar();switch(n){case Mi:case Rr:case Ri:return this.stream.advance(1),e.push(String.fromCharCode(n)),n===Mi&&this.stream.advanceIfChar(Ri)&&e.push(`
|
35
|
-
`),!0}return!1}_escape(e,n){let i=this.stream.peekChar();if(i===wc){this.stream.advance(1),i=this.stream.peekChar();let r=0;for(;r<6&&(i>=Ar&&i<=Er||i>=co&&i<=ju||i>=ho&&i<=Uu);)this.stream.advance(1),i=this.stream.peekChar(),r++;if(r>0){try{let s=parseInt(this.stream.substring(this.stream.pos()-r),16);s&&e.push(String.fromCharCode(s))}catch{}return i===vc||i===Sc?this.stream.advance(1):this._newline([]),!0}if(i!==Mi&&i!==Rr&&i!==Ri)return this.stream.advance(1),e.push(String.fromCharCode(i)),!0;if(n)return this._newline(e)}return!1}_stringChar(e,n){let i=this.stream.peekChar();return i!==0&&i!==e&&i!==wc&&i!==Mi&&i!==Rr&&i!==Ri?(this.stream.advance(1),n.push(String.fromCharCode(i)),!0):!1}_string(e){if(this.stream.peekChar()===Gu||this.stream.peekChar()===Ku){let 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)),g.String):g.BadString}return null}_unquotedChar(e){let n=this.stream.peekChar();return n!==0&&n!==wc&&n!==Gu&&n!==Ku&&n!==Qu&&n!==Zu&&n!==vc&&n!==Sc&&n!==Ri&&n!==Rr&&n!==Mi?(this.stream.advance(1),e.push(String.fromCharCode(n)),!0):!1}_unquotedString(e){let n=!1;for(;this._unquotedChar(e)||this._escape(e);)n=!0;return n}_whitespace(){return this.stream.advanceWhileChar(n=>n===vc||n===Sc||n===Ri||n===Rr||n===Mi)>0}_name(e){let n=!1;for(;this._identChar(e)||this._escape(e);)n=!0;return n}ident(e){let n=this.stream.pos();if(this._minus(e)){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}_identFirstChar(e){let n=this.stream.peekChar();return n===Bu||n>=co&&n<=$u||n>=ho&&n<=Vu||n>=128&&n<=65535?(this.stream.advance(1),e.push(String.fromCharCode(n)),!0):!1}_minus(e){let n=this.stream.peekChar();return n===Mn?(this.stream.advance(1),e.push(String.fromCharCode(n)),!0):!1}_identChar(e){let n=this.stream.peekChar();return n===Bu||n===Mn||n>=co&&n<=$u||n>=ho&&n<=Vu||n>=Ar&&n<=Er||n>=128&&n<=65535?(this.stream.advance(1),e.push(String.fromCharCode(n)),!0):!1}_unicodeRange(){if(this.stream.advanceIfChar(Yu)){let e=i=>i>=Ar&&i<=Er||i>=co&&i<=ju||i>=ho&&i<=Uu,n=this.stream.advanceWhileChar(e)+this.stream.advanceWhileChar(i=>i===Vw);if(n>=1&&n<=6)if(this.stream.advanceIfChar(Mn)){let i=this.stream.advanceWhileChar(e);if(i>=1&&i<=6)return!0}else return!0}return!1}};function ze(t,e){if(t.length<e.length)return!1;for(let n=0;n<e.length;n++)if(t[n]!==e[n])return!1;return!0}function po(t,e){let n=t.length-e.length;return n>0?t.lastIndexOf(e)===n:n===0?t===e:!1}function ep(t,e,n=4){let i=Math.abs(t.length-e.length);if(i>n)return 0;let r=[],s=[],o,a;for(o=0;o<e.length+1;++o)s.push(0);for(o=0;o<t.length+1;++o)r.push(s);for(o=1;o<t.length+1;++o)for(a=1;a<e.length+1;++a)t[o-1]===e[a-1]?r[o][a]=r[o-1][a-1]+1:r[o][a]=Math.max(r[o-1][a],r[o][a-1]);return r[t.length][e.length]-Math.sqrt(i)}function _c(t,e=!0){return t?t.length<140?t:t.slice(0,140)+(e?"\u2026":""):""}function tp(t,e){let n=e.exec(t);return n&&n[0].length?t.substr(0,t.length-n[0].length):t}function xc(t,e){let n="";for(;e>0;)(e&1)===1&&(n+=t),t+=t,e=e>>>1;return n}var 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",t[t.Layer=83]="Layer",t[t.LayerNameList=84]="LayerNameList",t[t.LayerName=85]="LayerName",t[t.PropertyAtRule=86]="PropertyAtRule",t[t.Container=87]="Container",t[t.ModuleConfig=88]="ModuleConfig",t[t.SelectorList=89]="SelectorList",t[t.StartingStyleAtRule=90]="StartingStyleAtRule"})(v||(v={}));var Ce;(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",t[t.Property=9]="Property"})(Ce||(Ce={}));function Po(t,e){let n=null;return!t||e<t.offset||e>t.end?null:(t.accept(i=>i.offset===-1&&i.length===-1?!0:i.offset<=e&&i.end>=e?(n?i.length<=n.length&&(n=i):n=i,!0):!1),n)}function Ui(t,e){let n=Po(t,e),i=[];for(;n;)i.unshift(n),n=n.parent;return i}function np(t){let e=t.findParent(v.Declaration),n=e&&e.getValue();return n&&n.encloses(t)?e:null}var te=class{get end(){return this.offset+this.length}constructor(e=-1,n=-1,i){this.parent=null,this.offset=e,this.length=n,i&&(this.nodeType=i)}set type(e){this.nodeType=e}get type(){return this.nodeType||v.Undefined}getTextProvider(){let e=this;for(;e&&!e.textProvider;)e=e.parent;return e?e.textProvider:()=>"unknown"}getText(){return this.getTextProvider()(this.offset,this.length)}matches(e){return this.length===e.length&&this.getTextProvider()(this.offset,this.length)===e}startsWith(e){return this.length>=e.length&&this.getTextProvider()(this.offset,e.length)===e}endsWith(e){return this.length>=e.length&&this.getTextProvider()(this.end-e.length,e.length)===e}accept(e){if(e(this)&&this.children)for(let n of this.children)n.accept(e)}acceptVisitor(e){this.accept(e.visitNode.bind(e))}adoptChild(e,n=-1){if(e.parent&&e.parent.children){let r=e.parent.children.indexOf(e);r>=0&&e.parent.children.splice(r,1)}e.parent=this;let i=this.children;return i||(i=this.children=[]),n!==-1?i.splice(n,0,e):i.push(e),e}attachTo(e,n=-1){return e&&e.adoptChild(this,n),this}collectIssues(e){this.issues&&e.push.apply(e,this.issues)}addIssue(e){this.issues||(this.issues=[]),this.issues.push(e)}hasIssue(e){return Array.isArray(this.issues)&&this.issues.some(n=>n.getRule()===e)}isErroneous(e=!1){return this.issues&&this.issues.length>0?!0:e&&Array.isArray(this.children)&&this.children.some(n=>n.isErroneous(!0))}setNode(e,n,i=-1){return n?(n.attachTo(this,i),this[e]=n,!0):!1}addChild(e){return e?(this.children||(this.children=[]),e.attachTo(this),this.updateOffsetAndLength(e),!0):!1}updateOffsetAndLength(e){(e.offset<this.offset||this.offset===-1)&&(this.offset=e.offset);let n=e.end;(n>this.end||this.length===-1)&&(this.length=n-this.offset)}hasChildren(){return!!this.children&&this.children.length>0}getChildren(){return this.children?this.children.slice(0):[]}getChild(e){return this.children&&e<this.children.length?this.children[e]:null}addChildren(e){for(let n of e)this.addChild(n)}findFirstChildBeforeOffset(e){if(this.children){let n=null;for(let i=this.children.length-1;i>=0;i--)if(n=this.children[i],n.offset<=e)return n}return null}findChildAtOffset(e,n){let i=this.findFirstChildBeforeOffset(e);return i&&i.end>=e?n&&i.findChildAtOffset(e,!0)||i:null}encloses(e){return this.offset<=e.offset&&this.offset+this.length>=e.offset+e.length}getParent(){let e=this.parent;for(;e instanceof Et;)e=e.parent;return e}findParent(e){let n=this;for(;n&&n.type!==e;)n=n.parent;return n}findAParent(...e){let n=this;for(;n&&!e.some(i=>n.type===i);)n=n.parent;return n}setData(e,n){this.options||(this.options={}),this.options[e]=n}getData(e){return!this.options||!this.options.hasOwnProperty(e)?null:this.options[e]}},Et=class extends te{constructor(e,n=-1){super(-1,-1),this.attachTo(e,n),this.offset=-1,this.length=-1}},mo=class extends te{constructor(e,n){super(e,n)}get type(){return v.UnicodeRange}setRangeStart(e){return this.setNode("rangeStart",e)}getRangeStart(){return this.rangeStart}setRangeEnd(e){return this.setNode("rangeEnd",e)}getRangeEnd(){return this.rangeEnd}},pt=class extends te{constructor(e,n){super(e,n),this.isCustomProperty=!1}get type(){return v.Identifier}containsInterpolation(){return this.hasChildren()}},fo=class extends te{constructor(e,n){super(e,n)}get type(){return v.Stylesheet}},ti=class extends te{constructor(e,n){super(e,n)}get type(){return v.Declarations}},Ne=class extends te{constructor(e,n){super(e,n)}getDeclarations(){return this.declarations}setDeclarations(e){return this.setNode("declarations",e)}},vt=class extends Ne{constructor(e,n){super(e,n)}get type(){return v.Ruleset}getSelectors(){return this.selectors||(this.selectors=new Et(this)),this.selectors}isNested(){return!!this.parent&&this.parent.findParent(v.Declarations)!==null}},Ut=class extends te{constructor(e,n){super(e,n)}get type(){return v.Selector}},Dt=class extends te{constructor(e,n){super(e,n)}get type(){return v.SimpleSelector}};var Ti=class extends te{constructor(e,n){super(e,n)}},go=class extends Ne{constructor(e,n){super(e,n)}get type(){return v.CustomPropertySet}},it=class t extends Ti{constructor(e,n){super(e,n),this.property=null}get type(){return v.Declaration}setProperty(e){return this.setNode("property",e)}getProperty(){return this.property}getFullPropertyName(){let e=this.property?this.property.getName():"unknown";if(this.parent instanceof ti&&this.parent.getParent()instanceof wo){let n=this.parent.getParent().getParent();if(n instanceof t)return n.getFullPropertyName()+e}return e}getNonPrefixedPropertyName(){let e=this.getFullPropertyName();if(e&&e.charAt(0)==="-"){let n=e.indexOf("-",1);if(n!==-1)return e.substring(n+1)}return e}setValue(e){return this.setNode("value",e)}getValue(){return this.value}setNestedProperties(e){return this.setNode("nestedProperties",e)}getNestedProperties(){return this.nestedProperties}},bo=class extends it{constructor(e,n){super(e,n)}get type(){return v.CustomPropertyDeclaration}setPropertySet(e){return this.setNode("propertySet",e)}getPropertySet(){return this.propertySet}},Tn=class extends te{constructor(e,n){super(e,n)}get type(){return v.Property}setIdentifier(e){return this.setNode("identifier",e)}getIdentifier(){return this.identifier}getName(){return tp(this.getText(),/[_\+]+$/)}isCustomProperty(){return!!this.identifier&&this.identifier.isCustomProperty}},Cc=class extends te{constructor(e,n){super(e,n)}get type(){return v.Invocation}getArguments(){return this.arguments||(this.arguments=new Et(this)),this.arguments}},Qt=class extends Cc{constructor(e,n){super(e,n)}get type(){return v.Function}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}},In=class extends te{constructor(e,n){super(e,n)}get type(){return v.FunctionParameter}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}setDefaultValue(e){return this.setNode("defaultValue",e,0)}getDefaultValue(){return this.defaultValue}},Vt=class extends te{constructor(e,n){super(e,n)}get type(){return v.FunctionArgument}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}setValue(e){return this.setNode("value",e,0)}getValue(){return this.value}};var Pn=class extends Ne{constructor(e,n){super(e,n)}get type(){return v.FunctionDeclaration}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}getParameters(){return this.parameters||(this.parameters=new Et(this)),this.parameters}},yo=class extends Ne{constructor(e,n){super(e,n)}get type(){return v.ViewPort}},Ii=class extends Ne{constructor(e,n){super(e,n)}get type(){return v.FontFace}},wo=class extends Ne{constructor(e,n){super(e,n)}get type(){return v.NestedProperties}},Pi=class extends Ne{constructor(e,n){super(e,n)}get type(){return v.Keyframe}setKeyword(e){return this.setNode("keyword",e,0)}getKeyword(){return this.keyword}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}},Mr=class extends Ne{constructor(e,n){super(e,n)}get type(){return v.KeyframeSelector}},zi=class extends te{constructor(e,n){super(e,n)}get type(){return v.Import}setMedialist(e){return e?(e.attachTo(this),!0):!1}};var vo=class extends te{constructor(e,n){super(e,n)}get type(){return v.Namespace}},zn=class extends Ne{constructor(e,n){super(e,n)}get type(){return v.Media}},ni=class extends Ne{constructor(e,n){super(e,n)}get type(){return v.Supports}},So=class extends Ne{constructor(e,n){super(e,n)}get type(){return v.Layer}setNames(e){return this.setNode("names",e)}getNames(){return this.names}},_o=class extends Ne{constructor(e,n){super(e,n)}get type(){return v.PropertyAtRule}setName(e){return e?(e.attachTo(this),this.name=e,!0):!1}getName(){return this.name}},xo=class extends Ne{constructor(e,n){super(e,n)}get type(){return v.StartingStyleAtRule}},Co=class extends Ne{constructor(e,n){super(e,n)}get type(){return v.Document}},Fo=class extends Ne{constructor(e,n){super(e,n)}get type(){return v.Container}},Ni=class extends te{constructor(e,n){super(e,n)}},Tr=class extends te{constructor(e,n){super(e,n)}get type(){return v.MediaQuery}},ko=class extends te{constructor(e,n){super(e,n)}get type(){return v.MediaCondition}},Ao=class extends te{constructor(e,n){super(e,n)}get type(){return v.MediaFeature}},hn=class extends te{constructor(e,n){super(e,n)}get type(){return v.SupportsCondition}},Eo=class extends Ne{constructor(e,n){super(e,n)}get type(){return v.Page}},Do=class extends Ne{constructor(e,n){super(e,n)}get type(){return v.PageBoxMarginBox}},Oi=class extends te{constructor(e,n){super(e,n)}get type(){return v.Expression}},Nn=class extends te{constructor(e,n){super(e,n)}get type(){return v.BinaryExpression}setLeft(e){return this.setNode("left",e)}getLeft(){return this.left}setRight(e){return this.setNode("right",e)}getRight(){return this.right}setOperator(e){return this.setNode("operator",e)}getOperator(){return this.operator}},Ro=class extends te{constructor(e,n){super(e,n)}get type(){return v.Term}setOperator(e){return this.setNode("operator",e)}getOperator(){return this.operator}setExpression(e){return this.setNode("expression",e)}getExpression(){return this.expression}},Mo=class extends te{constructor(e,n){super(e,n)}get type(){return v.AttributeSelector}setNamespacePrefix(e){return this.setNode("namespacePrefix",e)}getNamespacePrefix(){return this.namespacePrefix}setIdentifier(e){return this.setNode("identifier",e)}getIdentifier(){return this.identifier}setOperator(e){return this.setNode("operator",e)}getOperator(){return this.operator}setValue(e){return this.setNode("value",e)}getValue(){return this.value}};var ii=class extends te{constructor(e,n){super(e,n)}get type(){return v.HexColorValue}},To=class extends te{constructor(e,n){super(e,n)}get type(){return v.RatioValue}},Kw=46,Gw=48,Jw=57,ri=class extends te{constructor(e,n){super(e,n)}get type(){return v.NumericValue}getValue(){let e=this.getText(),n=0,i;for(let r=0,s=e.length;r<s&&(i=e.charCodeAt(r),Gw<=i&&i<=Jw||i===Kw);r++)n+=1;return{value:e.substring(0,n),unit:n<e.length?e.substring(n):void 0}}},On=class extends Ti{constructor(e,n){super(e,n),this.needsSemicolon=!0}get type(){return v.VariableDeclaration}setVariable(e){return e?(e.attachTo(this),this.variable=e,!0):!1}getVariable(){return this.variable}getName(){return this.variable?this.variable.getName():""}setValue(e){return e?(e.attachTo(this),this.value=e,!0):!1}getValue(){return this.value}},Wi=class extends te{constructor(e,n){super(e,n)}get type(){return v.Interpolation}},Li=class extends te{constructor(e,n){super(e,n)}get type(){return v.VariableName}getName(){return this.getText()}},si=class extends te{constructor(e,n){super(e,n)}get type(){return v.ExtendsReference}getSelectors(){return this.selectors||(this.selectors=new Et(this)),this.selectors}};var qi=class extends te{constructor(e,n){super(e,n)}get type(){return v.MixinReference}getNamespaces(){return this.namespaces||(this.namespaces=new Et(this)),this.namespaces}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}getArguments(){return this.arguments||(this.arguments=new Et(this)),this.arguments}setContent(e){return this.setNode("content",e)}getContent(){return this.content}},Wn=class extends Ne{constructor(e,n){super(e,n)}get type(){return v.MixinDeclaration}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}getParameters(){return this.parameters||(this.parameters=new Et(this)),this.parameters}setGuard(e){return e&&(e.attachTo(this),this.guard=e),!1}},ji=class extends Ne{constructor(e,n){super(e,n)}get type(){return v.UnknownAtRule}setAtRuleName(e){this.atRuleName=e}getAtRuleName(){return this.atRuleName}};var rt;(function(t){t[t.Ignore=1]="Ignore",t[t.Warning=2]="Warning",t[t.Error=4]="Error"})(rt||(rt={}));var $i=class{constructor(e,n,i,r,s=e.offset,o=e.length){this.node=e,this.rule=n,this.level=i,this.message=r||n.message,this.offset=s,this.length=o}getRule(){return this.rule}getLevel(){return this.level}getOffset(){return this.offset}getLength(){return this.length}getNode(){return this.node}getMessage(){return this.message}},Io=class t{static entries(e){let n=new t;return e.acceptVisitor(n),n.entries}constructor(){this.entries=[]}visitNode(e){return e.isErroneous()&&e.collectIssues(this.entries),!0}};var we=lt(Rt()),ge=class{constructor(e,n){this.id=e,this.message=n}},V={NumberExpected:new ge("css-numberexpected",we.t("number expected")),ConditionExpected:new ge("css-conditionexpected",we.t("condition expected")),RuleOrSelectorExpected:new ge("css-ruleorselectorexpected",we.t("at-rule or selector expected")),DotExpected:new ge("css-dotexpected",we.t("dot expected")),ColonExpected:new ge("css-colonexpected",we.t("colon expected")),SemiColonExpected:new ge("css-semicolonexpected",we.t("semi-colon expected")),TermExpected:new ge("css-termexpected",we.t("term expected")),ExpressionExpected:new ge("css-expressionexpected",we.t("expression expected")),OperatorExpected:new ge("css-operatorexpected",we.t("operator expected")),IdentifierExpected:new ge("css-identifierexpected",we.t("identifier expected")),PercentageExpected:new ge("css-percentageexpected",we.t("percentage expected")),URIOrStringExpected:new ge("css-uriorstringexpected",we.t("uri or string expected")),URIExpected:new ge("css-uriexpected",we.t("URI expected")),VariableNameExpected:new ge("css-varnameexpected",we.t("variable name expected")),VariableValueExpected:new ge("css-varvalueexpected",we.t("variable value expected")),PropertyValueExpected:new ge("css-propertyvalueexpected",we.t("property value expected")),LeftCurlyExpected:new ge("css-lcurlyexpected",we.t("{ expected")),RightCurlyExpected:new ge("css-rcurlyexpected",we.t("} expected")),LeftSquareBracketExpected:new ge("css-rbracketexpected",we.t("[ expected")),RightSquareBracketExpected:new ge("css-lbracketexpected",we.t("] expected")),LeftParenthesisExpected:new ge("css-lparentexpected",we.t("( expected")),RightParenthesisExpected:new ge("css-rparentexpected",we.t(") expected")),CommaExpected:new ge("css-commaexpected",we.t("comma expected")),PageDirectiveOrDeclarationExpected:new ge("css-pagedirordeclexpected",we.t("page directive or declaraton expected")),UnknownAtRule:new ge("css-unknownatrule",we.t("at-rule unknown")),UnknownKeyword:new ge("css-unknownkeyword",we.t("unknown keyword")),SelectorExpected:new ge("css-selectorexpected",we.t("selector expected")),StringLiteralExpected:new ge("css-stringliteralexpected",we.t("string literal expected")),WhitespaceExpected:new ge("css-whitespaceexpected",we.t("whitespace expected")),MediaQueryExpected:new ge("css-mediaqueryexpected",we.t("media query expected")),IdentifierOrWildcardExpected:new ge("css-idorwildcardexpected",we.t("identifier or wildcard expected")),WildcardExpected:new ge("css-wildcardexpected",we.t("wildcard expected")),IdentifierOrVariableExpected:new ge("css-idorvarexpected",we.t("identifier or variable expected"))};var kc;(function(t){function e(n){return typeof n=="string"}t.is=e})(kc||(kc={}));var Ac;(function(t){function e(n){return typeof n=="string"}t.is=e})(Ac||(Ac={}));var ap;(function(t){t.MIN_VALUE=-2147483648,t.MAX_VALUE=2147483647;function e(n){return typeof n=="number"&&t.MIN_VALUE<=n&&n<=t.MAX_VALUE}t.is=e})(ap||(ap={}));var No;(function(t){t.MIN_VALUE=0,t.MAX_VALUE=2147483647;function e(n){return typeof n=="number"&&t.MIN_VALUE<=n&&n<=t.MAX_VALUE}t.is=e})(No||(No={}));var Xe;(function(t){function e(i,r){return i===Number.MAX_VALUE&&(i=No.MAX_VALUE),r===Number.MAX_VALUE&&(r=No.MAX_VALUE),{line:i,character:r}}t.create=e;function n(i){let r=i;return D.objectLiteral(r)&&D.uinteger(r.line)&&D.uinteger(r.character)}t.is=n})(Xe||(Xe={}));var le;(function(t){function e(i,r,s,o){if(D.uinteger(i)&&D.uinteger(r)&&D.uinteger(s)&&D.uinteger(o))return{start:Xe.create(i,r),end:Xe.create(s,o)};if(Xe.is(i)&&Xe.is(r))return{start:i,end:r};throw new Error(`Range#create called with invalid arguments[${i}, ${r}, ${s}, ${o}]`)}t.create=e;function n(i){let r=i;return D.objectLiteral(r)&&Xe.is(r.start)&&Xe.is(r.end)}t.is=n})(le||(le={}));var oi;(function(t){function e(i,r){return{uri:i,range:r}}t.create=e;function n(i){let r=i;return D.objectLiteral(r)&&le.is(r.range)&&(D.string(r.uri)||D.undefined(r.uri))}t.is=n})(oi||(oi={}));var lp;(function(t){function e(i,r,s,o){return{targetUri:i,targetRange:r,targetSelectionRange:s,originSelectionRange:o}}t.create=e;function n(i){let r=i;return D.objectLiteral(r)&&le.is(r.targetRange)&&D.string(r.targetUri)&&le.is(r.targetSelectionRange)&&(le.is(r.originSelectionRange)||D.undefined(r.originSelectionRange))}t.is=n})(lp||(lp={}));var Oo;(function(t){function e(i,r,s,o){return{red:i,green:r,blue:s,alpha:o}}t.create=e;function n(i){let r=i;return D.objectLiteral(r)&&D.numberRange(r.red,0,1)&&D.numberRange(r.green,0,1)&&D.numberRange(r.blue,0,1)&&D.numberRange(r.alpha,0,1)}t.is=n})(Oo||(Oo={}));var Ec;(function(t){function e(i,r){return{range:i,color:r}}t.create=e;function n(i){let r=i;return D.objectLiteral(r)&&le.is(r.range)&&Oo.is(r.color)}t.is=n})(Ec||(Ec={}));var Dc;(function(t){function e(i,r,s){return{label:i,textEdit:r,additionalTextEdits:s}}t.create=e;function n(i){let r=i;return D.objectLiteral(r)&&D.string(r.label)&&(D.undefined(r.textEdit)||se.is(r))&&(D.undefined(r.additionalTextEdits)||D.typedArray(r.additionalTextEdits,se.is))}t.is=n})(Dc||(Dc={}));var Rc;(function(t){t.Comment="comment",t.Imports="imports",t.Region="region"})(Rc||(Rc={}));var Mc;(function(t){function e(i,r,s,o,a,l){let c={startLine:i,endLine:r};return D.defined(s)&&(c.startCharacter=s),D.defined(o)&&(c.endCharacter=o),D.defined(a)&&(c.kind=a),D.defined(l)&&(c.collapsedText=l),c}t.create=e;function n(i){let r=i;return D.objectLiteral(r)&&D.uinteger(r.startLine)&&D.uinteger(r.startLine)&&(D.undefined(r.startCharacter)||D.uinteger(r.startCharacter))&&(D.undefined(r.endCharacter)||D.uinteger(r.endCharacter))&&(D.undefined(r.kind)||D.string(r.kind))}t.is=n})(Mc||(Mc={}));var Tc;(function(t){function e(i,r){return{location:i,message:r}}t.create=e;function n(i){let r=i;return D.defined(r)&&oi.is(r.location)&&D.string(r.message)}t.is=n})(Tc||(Tc={}));var Vi;(function(t){t.Error=1,t.Warning=2,t.Information=3,t.Hint=4})(Vi||(Vi={}));var cp;(function(t){t.Unnecessary=1,t.Deprecated=2})(cp||(cp={}));var dp;(function(t){function e(n){let i=n;return D.objectLiteral(i)&&D.string(i.href)}t.is=e})(dp||(dp={}));var Pr;(function(t){function e(i,r,s,o,a,l){let c={range:i,message:r};return D.defined(s)&&(c.severity=s),D.defined(o)&&(c.code=o),D.defined(a)&&(c.source=a),D.defined(l)&&(c.relatedInformation=l),c}t.create=e;function n(i){var r;let s=i;return D.defined(s)&&le.is(s.range)&&D.string(s.message)&&(D.number(s.severity)||D.undefined(s.severity))&&(D.integer(s.code)||D.string(s.code)||D.undefined(s.code))&&(D.undefined(s.codeDescription)||D.string((r=s.codeDescription)===null||r===void 0?void 0:r.href))&&(D.string(s.source)||D.undefined(s.source))&&(D.undefined(s.relatedInformation)||D.typedArray(s.relatedInformation,Tc.is))}t.is=n})(Pr||(Pr={}));var un;(function(t){function e(i,r,...s){let o={title:i,command:r};return D.defined(s)&&s.length>0&&(o.arguments=s),o}t.create=e;function n(i){let r=i;return D.defined(r)&&D.string(r.title)&&D.string(r.command)}t.is=n})(un||(un={}));var se;(function(t){function e(s,o){return{range:s,newText:o}}t.replace=e;function n(s,o){return{range:{start:s,end:s},newText:o}}t.insert=n;function i(s){return{range:s,newText:""}}t.del=i;function r(s){let o=s;return D.objectLiteral(o)&&D.string(o.newText)&&le.is(o.range)}t.is=r})(se||(se={}));var Ic;(function(t){function e(i,r,s){let o={label:i};return r!==void 0&&(o.needsConfirmation=r),s!==void 0&&(o.description=s),o}t.create=e;function n(i){let r=i;return D.objectLiteral(r)&&D.string(r.label)&&(D.boolean(r.needsConfirmation)||r.needsConfirmation===void 0)&&(D.string(r.description)||r.description===void 0)}t.is=n})(Ic||(Ic={}));var Bi;(function(t){function e(n){let i=n;return D.string(i)}t.is=e})(Bi||(Bi={}));var hp;(function(t){function e(s,o,a){return{range:s,newText:o,annotationId:a}}t.replace=e;function n(s,o,a){return{range:{start:s,end:s},newText:o,annotationId:a}}t.insert=n;function i(s,o){return{range:s,newText:"",annotationId:o}}t.del=i;function r(s){let o=s;return se.is(o)&&(Ic.is(o.annotationId)||Bi.is(o.annotationId))}t.is=r})(hp||(hp={}));var Hi;(function(t){function e(i,r){return{textDocument:i,edits:r}}t.create=e;function n(i){let r=i;return D.defined(r)&&Oc.is(r.textDocument)&&Array.isArray(r.edits)}t.is=n})(Hi||(Hi={}));var Pc;(function(t){function e(i,r,s){let o={kind:"create",uri:i};return r!==void 0&&(r.overwrite!==void 0||r.ignoreIfExists!==void 0)&&(o.options=r),s!==void 0&&(o.annotationId=s),o}t.create=e;function n(i){let r=i;return r&&r.kind==="create"&&D.string(r.uri)&&(r.options===void 0||(r.options.overwrite===void 0||D.boolean(r.options.overwrite))&&(r.options.ignoreIfExists===void 0||D.boolean(r.options.ignoreIfExists)))&&(r.annotationId===void 0||Bi.is(r.annotationId))}t.is=n})(Pc||(Pc={}));var zc;(function(t){function e(i,r,s,o){let a={kind:"rename",oldUri:i,newUri:r};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(a.options=s),o!==void 0&&(a.annotationId=o),a}t.create=e;function n(i){let r=i;return r&&r.kind==="rename"&&D.string(r.oldUri)&&D.string(r.newUri)&&(r.options===void 0||(r.options.overwrite===void 0||D.boolean(r.options.overwrite))&&(r.options.ignoreIfExists===void 0||D.boolean(r.options.ignoreIfExists)))&&(r.annotationId===void 0||Bi.is(r.annotationId))}t.is=n})(zc||(zc={}));var Nc;(function(t){function e(i,r,s){let o={kind:"delete",uri:i};return r!==void 0&&(r.recursive!==void 0||r.ignoreIfNotExists!==void 0)&&(o.options=r),s!==void 0&&(o.annotationId=s),o}t.create=e;function n(i){let r=i;return r&&r.kind==="delete"&&D.string(r.uri)&&(r.options===void 0||(r.options.recursive===void 0||D.boolean(r.options.recursive))&&(r.options.ignoreIfNotExists===void 0||D.boolean(r.options.ignoreIfNotExists)))&&(r.annotationId===void 0||Bi.is(r.annotationId))}t.is=n})(Nc||(Nc={}));var Wo;(function(t){function e(n){let i=n;return i&&(i.changes!==void 0||i.documentChanges!==void 0)&&(i.documentChanges===void 0||i.documentChanges.every(r=>D.string(r.kind)?Pc.is(r)||zc.is(r)||Nc.is(r):Hi.is(r)))}t.is=e})(Wo||(Wo={}));var up;(function(t){function e(i){return{uri:i}}t.create=e;function n(i){let r=i;return D.defined(r)&&D.string(r.uri)}t.is=n})(up||(up={}));var zr;(function(t){function e(i,r){return{uri:i,version:r}}t.create=e;function n(i){let r=i;return D.defined(r)&&D.string(r.uri)&&D.integer(r.version)}t.is=n})(zr||(zr={}));var Oc;(function(t){function e(i,r){return{uri:i,version:r}}t.create=e;function n(i){let r=i;return D.defined(r)&&D.string(r.uri)&&(r.version===null||D.integer(r.version))}t.is=n})(Oc||(Oc={}));var pp;(function(t){function e(i,r,s,o){return{uri:i,languageId:r,version:s,text:o}}t.create=e;function n(i){let r=i;return D.defined(r)&&D.string(r.uri)&&D.string(r.languageId)&&D.integer(r.version)&&D.string(r.text)}t.is=n})(pp||(pp={}));var bt;(function(t){t.PlainText="plaintext",t.Markdown="markdown";function e(n){let i=n;return i===t.PlainText||i===t.Markdown}t.is=e})(bt||(bt={}));var Ki;(function(t){function e(n){let i=n;return D.objectLiteral(n)&&bt.is(i.kind)&&D.string(i.value)}t.is=e})(Ki||(Ki={}));var ie;(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})(ie||(ie={}));var st;(function(t){t.PlainText=1,t.Snippet=2})(st||(st={}));var pn;(function(t){t.Deprecated=1})(pn||(pn={}));var mp;(function(t){function e(i,r,s){return{newText:i,insert:r,replace:s}}t.create=e;function n(i){let r=i;return r&&D.string(r.newText)&&le.is(r.insert)&&le.is(r.replace)}t.is=n})(mp||(mp={}));var fp;(function(t){t.asIs=1,t.adjustIndentation=2})(fp||(fp={}));var gp;(function(t){function e(n){let i=n;return i&&(D.string(i.detail)||i.detail===void 0)&&(D.string(i.description)||i.description===void 0)}t.is=e})(gp||(gp={}));var Wc;(function(t){function e(n){return{label:n}}t.create=e})(Wc||(Wc={}));var Lc;(function(t){function e(n,i){return{items:n||[],isIncomplete:!!i}}t.create=e})(Lc||(Lc={}));var Nr;(function(t){function e(i){return i.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}t.fromPlainText=e;function n(i){let r=i;return D.string(r)||D.objectLiteral(r)&&D.string(r.language)&&D.string(r.value)}t.is=n})(Nr||(Nr={}));var qc;(function(t){function e(n){let i=n;return!!i&&D.objectLiteral(i)&&(Ki.is(i.contents)||Nr.is(i.contents)||D.typedArray(i.contents,Nr.is))&&(n.range===void 0||le.is(n.range))}t.is=e})(qc||(qc={}));var bp;(function(t){function e(n,i){return i?{label:n,documentation:i}:{label:n}}t.create=e})(bp||(bp={}));var yp;(function(t){function e(n,i,...r){let s={label:n};return D.defined(i)&&(s.documentation=i),D.defined(r)?s.parameters=r:s.parameters=[],s}t.create=e})(yp||(yp={}));var Ln;(function(t){t.Text=1,t.Read=2,t.Write=3})(Ln||(Ln={}));var jc;(function(t){function e(n,i){let r={range:n};return D.number(i)&&(r.kind=i),r}t.create=e})(jc||(jc={}));var Bt;(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})(Bt||(Bt={}));var wp;(function(t){t.Deprecated=1})(wp||(wp={}));var $c;(function(t){function e(n,i,r,s,o){let a={name:n,kind:i,location:{uri:s,range:r}};return o&&(a.containerName=o),a}t.create=e})($c||($c={}));var vp;(function(t){function e(n,i,r,s){return s!==void 0?{name:n,kind:i,location:{uri:r,range:s}}:{name:n,kind:i,location:{uri:r}}}t.create=e})(vp||(vp={}));var Uc;(function(t){function e(i,r,s,o,a,l){let c={name:i,detail:r,kind:s,range:o,selectionRange:a};return l!==void 0&&(c.children=l),c}t.create=e;function n(i){let r=i;return r&&D.string(r.name)&&D.number(r.kind)&&le.is(r.range)&&le.is(r.selectionRange)&&(r.detail===void 0||D.string(r.detail))&&(r.deprecated===void 0||D.boolean(r.deprecated))&&(r.children===void 0||Array.isArray(r.children))&&(r.tags===void 0||Array.isArray(r.tags))}t.is=n})(Uc||(Uc={}));var Or;(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"})(Or||(Or={}));var Lo;(function(t){t.Invoked=1,t.Automatic=2})(Lo||(Lo={}));var Vc;(function(t){function e(i,r,s){let o={diagnostics:i};return r!=null&&(o.only=r),s!=null&&(o.triggerKind=s),o}t.create=e;function n(i){let r=i;return D.defined(r)&&D.typedArray(r.diagnostics,Pr.is)&&(r.only===void 0||D.typedArray(r.only,D.string))&&(r.triggerKind===void 0||r.triggerKind===Lo.Invoked||r.triggerKind===Lo.Automatic)}t.is=n})(Vc||(Vc={}));var Wr;(function(t){function e(i,r,s){let o={title:i},a=!0;return typeof r=="string"?(a=!1,o.kind=r):un.is(r)?o.command=r:o.edit=r,a&&s!==void 0&&(o.kind=s),o}t.create=e;function n(i){let r=i;return r&&D.string(r.title)&&(r.diagnostics===void 0||D.typedArray(r.diagnostics,Pr.is))&&(r.kind===void 0||D.string(r.kind))&&(r.edit!==void 0||r.command!==void 0)&&(r.command===void 0||un.is(r.command))&&(r.isPreferred===void 0||D.boolean(r.isPreferred))&&(r.edit===void 0||Wo.is(r.edit))}t.is=n})(Wr||(Wr={}));var Sp;(function(t){function e(i,r){let s={range:i};return D.defined(r)&&(s.data=r),s}t.create=e;function n(i){let r=i;return D.defined(r)&&le.is(r.range)&&(D.undefined(r.command)||un.is(r.command))}t.is=n})(Sp||(Sp={}));var _p;(function(t){function e(i,r){return{tabSize:i,insertSpaces:r}}t.create=e;function n(i){let r=i;return D.defined(r)&&D.uinteger(r.tabSize)&&D.boolean(r.insertSpaces)}t.is=n})(_p||(_p={}));var Bc;(function(t){function e(i,r,s){return{range:i,target:r,data:s}}t.create=e;function n(i){let r=i;return D.defined(r)&&le.is(r.range)&&(D.undefined(r.target)||D.string(r.target))}t.is=n})(Bc||(Bc={}));var Gi;(function(t){function e(i,r){return{range:i,parent:r}}t.create=e;function n(i){let r=i;return D.objectLiteral(r)&&le.is(r.range)&&(r.parent===void 0||t.is(r.parent))}t.is=n})(Gi||(Gi={}));var xp;(function(t){t.namespace="namespace",t.type="type",t.class="class",t.enum="enum",t.interface="interface",t.struct="struct",t.typeParameter="typeParameter",t.parameter="parameter",t.variable="variable",t.property="property",t.enumMember="enumMember",t.event="event",t.function="function",t.method="method",t.macro="macro",t.keyword="keyword",t.modifier="modifier",t.comment="comment",t.string="string",t.number="number",t.regexp="regexp",t.operator="operator",t.decorator="decorator"})(xp||(xp={}));var Cp;(function(t){t.declaration="declaration",t.definition="definition",t.readonly="readonly",t.static="static",t.deprecated="deprecated",t.abstract="abstract",t.async="async",t.modification="modification",t.documentation="documentation",t.defaultLibrary="defaultLibrary"})(Cp||(Cp={}));var Fp;(function(t){function e(n){let i=n;return D.objectLiteral(i)&&(i.resultId===void 0||typeof i.resultId=="string")&&Array.isArray(i.data)&&(i.data.length===0||typeof i.data[0]=="number")}t.is=e})(Fp||(Fp={}));var kp;(function(t){function e(i,r){return{range:i,text:r}}t.create=e;function n(i){let r=i;return r!=null&&le.is(r.range)&&D.string(r.text)}t.is=n})(kp||(kp={}));var Ap;(function(t){function e(i,r,s){return{range:i,variableName:r,caseSensitiveLookup:s}}t.create=e;function n(i){let r=i;return r!=null&&le.is(r.range)&&D.boolean(r.caseSensitiveLookup)&&(D.string(r.variableName)||r.variableName===void 0)}t.is=n})(Ap||(Ap={}));var Ep;(function(t){function e(i,r){return{range:i,expression:r}}t.create=e;function n(i){let r=i;return r!=null&&le.is(r.range)&&(D.string(r.expression)||r.expression===void 0)}t.is=n})(Ep||(Ep={}));var Dp;(function(t){function e(i,r){return{frameId:i,stoppedLocation:r}}t.create=e;function n(i){let r=i;return D.defined(r)&&le.is(i.stoppedLocation)}t.is=n})(Dp||(Dp={}));var Hc;(function(t){t.Type=1,t.Parameter=2;function e(n){return n===1||n===2}t.is=e})(Hc||(Hc={}));var Kc;(function(t){function e(i){return{value:i}}t.create=e;function n(i){let r=i;return D.objectLiteral(r)&&(r.tooltip===void 0||D.string(r.tooltip)||Ki.is(r.tooltip))&&(r.location===void 0||oi.is(r.location))&&(r.command===void 0||un.is(r.command))}t.is=n})(Kc||(Kc={}));var Rp;(function(t){function e(i,r,s){let o={position:i,label:r};return s!==void 0&&(o.kind=s),o}t.create=e;function n(i){let r=i;return D.objectLiteral(r)&&Xe.is(r.position)&&(D.string(r.label)||D.typedArray(r.label,Kc.is))&&(r.kind===void 0||Hc.is(r.kind))&&r.textEdits===void 0||D.typedArray(r.textEdits,se.is)&&(r.tooltip===void 0||D.string(r.tooltip)||Ki.is(r.tooltip))&&(r.paddingLeft===void 0||D.boolean(r.paddingLeft))&&(r.paddingRight===void 0||D.boolean(r.paddingRight))}t.is=n})(Rp||(Rp={}));var Mp;(function(t){function e(n){return{kind:"snippet",value:n}}t.createSnippet=e})(Mp||(Mp={}));var Tp;(function(t){function e(n,i,r,s){return{insertText:n,filterText:i,range:r,command:s}}t.create=e})(Tp||(Tp={}));var Ip;(function(t){function e(n){return{items:n}}t.create=e})(Ip||(Ip={}));var Pp;(function(t){t.Invoked=0,t.Automatic=1})(Pp||(Pp={}));var zp;(function(t){function e(n,i){return{range:n,text:i}}t.create=e})(zp||(zp={}));var Np;(function(t){function e(n,i){return{triggerKind:n,selectedCompletionInfo:i}}t.create=e})(Np||(Np={}));var Op;(function(t){function e(n){let i=n;return D.objectLiteral(i)&&Ac.is(i.uri)&&D.string(i.name)}t.is=e})(Op||(Op={}));var Wp;(function(t){function e(s,o,a,l){return new Gc(s,o,a,l)}t.create=e;function n(s){let o=s;return!!(D.defined(o)&&D.string(o.uri)&&(D.undefined(o.languageId)||D.string(o.languageId))&&D.uinteger(o.lineCount)&&D.func(o.getText)&&D.func(o.positionAt)&&D.func(o.offsetAt))}t.is=n;function i(s,o){let a=s.getText(),l=r(o,(d,p)=>{let b=d.range.start.line-p.range.start.line;return b===0?d.range.start.character-p.range.start.character:b}),c=a.length;for(let d=l.length-1;d>=0;d--){let p=l[d],b=s.offsetAt(p.range.start),y=s.offsetAt(p.range.end);if(y<=c)a=a.substring(0,b)+p.newText+a.substring(y,a.length);else throw new Error("Overlapping edit");c=b}return a}t.applyEdits=i;function r(s,o){if(s.length<=1)return s;let a=s.length/2|0,l=s.slice(0,a),c=s.slice(a);r(l,o),r(c,o);let d=0,p=0,b=0;for(;d<l.length&&p<c.length;)o(l[d],c[p])<=0?s[b++]=l[d++]:s[b++]=c[p++];for(;d<l.length;)s[b++]=l[d++];for(;p<c.length;)s[b++]=c[p++];return s}})(Wp||(Wp={}));var Gc=class{constructor(e,n,i,r){this._uri=e,this._languageId=n,this._version=i,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let n=this.offsetAt(e.start),i=this.offsetAt(e.end);return this._content.substring(n,i)}return this._content}update(e,n){this._content=e.text,this._version=n,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let e=[],n=this._content,i=!0;for(let r=0;r<n.length;r++){i&&(e.push(r),i=!1);let s=n.charAt(r);i=s==="\r"||s===`
|
32
|
+
`,"\r"];var Qe;(function(u){function _(D,O,he,je){return new _t(D,O,he,je)}u.create=_;function C(D){var O=D;return!!(A.defined(O)&&A.string(O.uri)&&(A.undefined(O.languageId)||A.string(O.languageId))&&A.uinteger(O.lineCount)&&A.func(O.getText)&&A.func(O.positionAt)&&A.func(O.offsetAt))}u.is=C;function f(D,O){for(var he=D.getText(),je=h(O,function(mi,ds){var Ed=mi.range.start.line-ds.range.start.line;return Ed===0?mi.range.start.character-ds.range.start.character:Ed}),De=he.length,Tt=je.length-1;Tt>=0;Tt--){var It=je[Tt],sn=D.offsetAt(It.range.start),me=D.offsetAt(It.range.end);if(me<=De)he=he.substring(0,sn)+It.newText+he.substring(me,he.length);else throw new Error("Overlapping edit");De=sn}return he}u.applyEdits=f;function h(D,O){if(D.length<=1)return D;var he=D.length/2|0,je=D.slice(0,he),De=D.slice(he);h(je,O),h(De,O);for(var Tt=0,It=0,sn=0;Tt<je.length&&It<De.length;){var me=O(je[Tt],De[It]);me<=0?D[sn++]=je[Tt++]:D[sn++]=De[It++]}for(;Tt<je.length;)D[sn++]=je[Tt++];for(;It<De.length;)D[sn++]=De[It++];return D}})(Qe=e.TextDocument||(e.TextDocument={}));var _t=function(){function u(_,C,f,h){this._uri=_,this._languageId=C,this._version=f,this._content=h,this._lineOffsets=void 0}return Object.defineProperty(u.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),u.prototype.getText=function(_){if(_){var C=this.offsetAt(_.start),f=this.offsetAt(_.end);return this._content.substring(C,f)}return this._content},u.prototype.update=function(_,C){this._content=_.text,this._version=C,this._lineOffsets=void 0},u.prototype.getLineOffsets=function(){if(this._lineOffsets===void 0){for(var _=[],C=this._content,f=!0,h=0;h<C.length;h++){f&&(_.push(h),f=!1);var D=C.charAt(h);f=D==="\r"||D===`
|
33
|
+
`,D==="\r"&&h+1<C.length&&C.charAt(h+1)===`
|
34
|
+
`&&h++}f&&C.length>0&&_.push(C.length),this._lineOffsets=_}return this._lineOffsets},u.prototype.positionAt=function(_){_=Math.max(Math.min(_,this._content.length),0);var C=this.getLineOffsets(),f=0,h=C.length;if(h===0)return o.create(0,_);for(;f<h;){var D=Math.floor((f+h)/2);C[D]>_?h=D:f=D+1}var O=f-1;return o.create(O,_-C[O])},u.prototype.offsetAt=function(_){var C=this.getLineOffsets();if(_.line>=C.length)return this._content.length;if(_.line<0)return 0;var f=C[_.line],h=_.line+1<C.length?C[_.line+1]:this._content.length;return Math.max(Math.min(f+_.character,h),f)},Object.defineProperty(u.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),u}(),A;(function(u){var _=Object.prototype.toString;function C(me){return typeof me<"u"}u.defined=C;function f(me){return typeof me>"u"}u.undefined=f;function h(me){return me===!0||me===!1}u.boolean=h;function D(me){return _.call(me)==="[object String]"}u.string=D;function O(me){return _.call(me)==="[object Number]"}u.number=O;function he(me,mi,ds){return _.call(me)==="[object Number]"&&mi<=me&&me<=ds}u.numberRange=he;function je(me){return _.call(me)==="[object Number]"&&-2147483648<=me&&me<=2147483647}u.integer=je;function De(me){return _.call(me)==="[object Number]"&&0<=me&&me<=2147483647}u.uinteger=De;function Tt(me){return _.call(me)==="[object Function]"}u.func=Tt;function It(me){return me!==null&&typeof me=="object"}u.objectLiteral=It;function sn(me,mi){return Array.isArray(me)&&me.every(mi)}u.typedArray=sn})(A||(A={}))})});var Le=X(dt=>{"use strict";Object.defineProperty(dt,"__esModule",{value:!0});dt.ProtocolNotificationType=dt.ProtocolNotificationType0=dt.ProtocolRequestType=dt.ProtocolRequestType0=dt.RegistrationType=dt.MessageDirection=void 0;var Si=Xn(),Jf;(function(t){t.clientToServer="clientToServer",t.serverToClient="serverToClient",t.both="both"})(Jf=dt.MessageDirection||(dt.MessageDirection={}));var Nl=class{constructor(e){this.method=e}};dt.RegistrationType=Nl;var Ol=class extends Si.RequestType0{constructor(e){super(e)}};dt.ProtocolRequestType0=Ol;var Wl=class extends Si.RequestType{constructor(e){super(e,Si.ParameterStructures.byName)}};dt.ProtocolRequestType=Wl;var Ll=class extends Si.NotificationType0{constructor(e){super(e)}};dt.ProtocolNotificationType0=Ll;var ql=class extends Si.NotificationType{constructor(e){super(e,Si.ParameterStructures.byName)}};dt.ProtocolNotificationType=ql});var Es=X(Ge=>{"use strict";Object.defineProperty(Ge,"__esModule",{value:!0});Ge.objectLiteral=Ge.typedArray=Ge.stringArray=Ge.array=Ge.func=Ge.error=Ge.number=Ge.string=Ge.boolean=void 0;function Xf(t){return t===!0||t===!1}Ge.boolean=Xf;function lh(t){return typeof t=="string"||t instanceof String}Ge.string=lh;function Yf(t){return typeof t=="number"||t instanceof Number}Ge.number=Yf;function Qf(t){return t instanceof Error}Ge.error=Qf;function Zf(t){return typeof t=="function"}Ge.func=Zf;function ch(t){return Array.isArray(t)}Ge.array=ch;function eg(t){return ch(t)&&t.every(e=>lh(e))}Ge.stringArray=eg;function tg(t,e){return Array.isArray(t)&&t.every(e)}Ge.typedArray=tg;function ng(t){return t!==null&&typeof t=="object"}Ge.objectLiteral=ng});var hh=X(cr=>{"use strict";Object.defineProperty(cr,"__esModule",{value:!0});cr.ImplementationRequest=void 0;var dh=Le(),ig;(function(t){t.method="textDocument/implementation",t.messageDirection=dh.MessageDirection.clientToServer,t.type=new dh.ProtocolRequestType(t.method)})(ig=cr.ImplementationRequest||(cr.ImplementationRequest={}))});var ph=X(dr=>{"use strict";Object.defineProperty(dr,"__esModule",{value:!0});dr.TypeDefinitionRequest=void 0;var uh=Le(),rg;(function(t){t.method="textDocument/typeDefinition",t.messageDirection=uh.MessageDirection.clientToServer,t.type=new uh.ProtocolRequestType(t.method)})(rg=dr.TypeDefinitionRequest||(dr.TypeDefinitionRequest={}))});var mh=X(Fn=>{"use strict";Object.defineProperty(Fn,"__esModule",{value:!0});Fn.DidChangeWorkspaceFoldersNotification=Fn.WorkspaceFoldersRequest=void 0;var Ds=Le(),sg;(function(t){t.method="workspace/workspaceFolders",t.messageDirection=Ds.MessageDirection.serverToClient,t.type=new Ds.ProtocolRequestType0(t.method)})(sg=Fn.WorkspaceFoldersRequest||(Fn.WorkspaceFoldersRequest={}));var og;(function(t){t.method="workspace/didChangeWorkspaceFolders",t.messageDirection=Ds.MessageDirection.clientToServer,t.type=new Ds.ProtocolNotificationType(t.method)})(og=Fn.DidChangeWorkspaceFoldersNotification||(Fn.DidChangeWorkspaceFoldersNotification={}))});var gh=X(hr=>{"use strict";Object.defineProperty(hr,"__esModule",{value:!0});hr.ConfigurationRequest=void 0;var fh=Le(),ag;(function(t){t.method="workspace/configuration",t.messageDirection=fh.MessageDirection.serverToClient,t.type=new fh.ProtocolRequestType(t.method)})(ag=hr.ConfigurationRequest||(hr.ConfigurationRequest={}))});var bh=X(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.ColorPresentationRequest=kn.DocumentColorRequest=void 0;var Rs=Le(),lg;(function(t){t.method="textDocument/documentColor",t.messageDirection=Rs.MessageDirection.clientToServer,t.type=new Rs.ProtocolRequestType(t.method)})(lg=kn.DocumentColorRequest||(kn.DocumentColorRequest={}));var cg;(function(t){t.method="textDocument/colorPresentation",t.messageDirection=Rs.MessageDirection.clientToServer,t.type=new Rs.ProtocolRequestType(t.method)})(cg=kn.ColorPresentationRequest||(kn.ColorPresentationRequest={}))});var wh=X(ur=>{"use strict";Object.defineProperty(ur,"__esModule",{value:!0});ur.FoldingRangeRequest=void 0;var yh=Le(),dg;(function(t){t.method="textDocument/foldingRange",t.messageDirection=yh.MessageDirection.clientToServer,t.type=new yh.ProtocolRequestType(t.method)})(dg=ur.FoldingRangeRequest||(ur.FoldingRangeRequest={}))});var Sh=X(pr=>{"use strict";Object.defineProperty(pr,"__esModule",{value:!0});pr.DeclarationRequest=void 0;var vh=Le(),hg;(function(t){t.method="textDocument/declaration",t.messageDirection=vh.MessageDirection.clientToServer,t.type=new vh.ProtocolRequestType(t.method)})(hg=pr.DeclarationRequest||(pr.DeclarationRequest={}))});var xh=X(mr=>{"use strict";Object.defineProperty(mr,"__esModule",{value:!0});mr.SelectionRangeRequest=void 0;var _h=Le(),ug;(function(t){t.method="textDocument/selectionRange",t.messageDirection=_h.MessageDirection.clientToServer,t.type=new _h.ProtocolRequestType(t.method)})(ug=mr.SelectionRangeRequest||(mr.SelectionRangeRequest={}))});var Ch=X(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.WorkDoneProgressCancelNotification=Nt.WorkDoneProgressCreateRequest=Nt.WorkDoneProgress=void 0;var pg=Xn(),Ms=Le(),mg;(function(t){t.type=new pg.ProgressType;function e(n){return n===t.type}t.is=e})(mg=Nt.WorkDoneProgress||(Nt.WorkDoneProgress={}));var fg;(function(t){t.method="window/workDoneProgress/create",t.messageDirection=Ms.MessageDirection.serverToClient,t.type=new Ms.ProtocolRequestType(t.method)})(fg=Nt.WorkDoneProgressCreateRequest||(Nt.WorkDoneProgressCreateRequest={}));var gg;(function(t){t.method="window/workDoneProgress/cancel",t.messageDirection=Ms.MessageDirection.clientToServer,t.type=new Ms.ProtocolNotificationType(t.method)})(gg=Nt.WorkDoneProgressCancelNotification||(Nt.WorkDoneProgressCancelNotification={}))});var Fh=X(Ot=>{"use strict";Object.defineProperty(Ot,"__esModule",{value:!0});Ot.CallHierarchyOutgoingCallsRequest=Ot.CallHierarchyIncomingCallsRequest=Ot.CallHierarchyPrepareRequest=void 0;var _i=Le(),bg;(function(t){t.method="textDocument/prepareCallHierarchy",t.messageDirection=_i.MessageDirection.clientToServer,t.type=new _i.ProtocolRequestType(t.method)})(bg=Ot.CallHierarchyPrepareRequest||(Ot.CallHierarchyPrepareRequest={}));var yg;(function(t){t.method="callHierarchy/incomingCalls",t.messageDirection=_i.MessageDirection.clientToServer,t.type=new _i.ProtocolRequestType(t.method)})(yg=Ot.CallHierarchyIncomingCallsRequest||(Ot.CallHierarchyIncomingCallsRequest={}));var wg;(function(t){t.method="callHierarchy/outgoingCalls",t.messageDirection=_i.MessageDirection.clientToServer,t.type=new _i.ProtocolRequestType(t.method)})(wg=Ot.CallHierarchyOutgoingCallsRequest||(Ot.CallHierarchyOutgoingCallsRequest={}))});var kh=X(Je=>{"use strict";Object.defineProperty(Je,"__esModule",{value:!0});Je.SemanticTokensRefreshRequest=Je.SemanticTokensRangeRequest=Je.SemanticTokensDeltaRequest=Je.SemanticTokensRequest=Je.SemanticTokensRegistrationType=Je.TokenFormat=void 0;var dn=Le(),vg;(function(t){t.Relative="relative"})(vg=Je.TokenFormat||(Je.TokenFormat={}));var Ts;(function(t){t.method="textDocument/semanticTokens",t.type=new dn.RegistrationType(t.method)})(Ts=Je.SemanticTokensRegistrationType||(Je.SemanticTokensRegistrationType={}));var Sg;(function(t){t.method="textDocument/semanticTokens/full",t.messageDirection=dn.MessageDirection.clientToServer,t.type=new dn.ProtocolRequestType(t.method),t.registrationMethod=Ts.method})(Sg=Je.SemanticTokensRequest||(Je.SemanticTokensRequest={}));var _g;(function(t){t.method="textDocument/semanticTokens/full/delta",t.messageDirection=dn.MessageDirection.clientToServer,t.type=new dn.ProtocolRequestType(t.method),t.registrationMethod=Ts.method})(_g=Je.SemanticTokensDeltaRequest||(Je.SemanticTokensDeltaRequest={}));var xg;(function(t){t.method="textDocument/semanticTokens/range",t.messageDirection=dn.MessageDirection.clientToServer,t.type=new dn.ProtocolRequestType(t.method),t.registrationMethod=Ts.method})(xg=Je.SemanticTokensRangeRequest||(Je.SemanticTokensRangeRequest={}));var Cg;(function(t){t.method="workspace/semanticTokens/refresh",t.messageDirection=dn.MessageDirection.serverToClient,t.type=new dn.ProtocolRequestType0(t.method)})(Cg=Je.SemanticTokensRefreshRequest||(Je.SemanticTokensRefreshRequest={}))});var Eh=X(fr=>{"use strict";Object.defineProperty(fr,"__esModule",{value:!0});fr.ShowDocumentRequest=void 0;var Ah=Le(),Fg;(function(t){t.method="window/showDocument",t.messageDirection=Ah.MessageDirection.serverToClient,t.type=new Ah.ProtocolRequestType(t.method)})(Fg=fr.ShowDocumentRequest||(fr.ShowDocumentRequest={}))});var Rh=X(gr=>{"use strict";Object.defineProperty(gr,"__esModule",{value:!0});gr.LinkedEditingRangeRequest=void 0;var Dh=Le(),kg;(function(t){t.method="textDocument/linkedEditingRange",t.messageDirection=Dh.MessageDirection.clientToServer,t.type=new Dh.ProtocolRequestType(t.method)})(kg=gr.LinkedEditingRangeRequest||(gr.LinkedEditingRangeRequest={}))});var Mh=X(qe=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});qe.WillDeleteFilesRequest=qe.DidDeleteFilesNotification=qe.DidRenameFilesNotification=qe.WillRenameFilesRequest=qe.DidCreateFilesNotification=qe.WillCreateFilesRequest=qe.FileOperationPatternKind=void 0;var xt=Le(),Ag;(function(t){t.file="file",t.folder="folder"})(Ag=qe.FileOperationPatternKind||(qe.FileOperationPatternKind={}));var Eg;(function(t){t.method="workspace/willCreateFiles",t.messageDirection=xt.MessageDirection.clientToServer,t.type=new xt.ProtocolRequestType(t.method)})(Eg=qe.WillCreateFilesRequest||(qe.WillCreateFilesRequest={}));var Dg;(function(t){t.method="workspace/didCreateFiles",t.messageDirection=xt.MessageDirection.clientToServer,t.type=new xt.ProtocolNotificationType(t.method)})(Dg=qe.DidCreateFilesNotification||(qe.DidCreateFilesNotification={}));var Rg;(function(t){t.method="workspace/willRenameFiles",t.messageDirection=xt.MessageDirection.clientToServer,t.type=new xt.ProtocolRequestType(t.method)})(Rg=qe.WillRenameFilesRequest||(qe.WillRenameFilesRequest={}));var Mg;(function(t){t.method="workspace/didRenameFiles",t.messageDirection=xt.MessageDirection.clientToServer,t.type=new xt.ProtocolNotificationType(t.method)})(Mg=qe.DidRenameFilesNotification||(qe.DidRenameFilesNotification={}));var Tg;(function(t){t.method="workspace/didDeleteFiles",t.messageDirection=xt.MessageDirection.clientToServer,t.type=new xt.ProtocolNotificationType(t.method)})(Tg=qe.DidDeleteFilesNotification||(qe.DidDeleteFilesNotification={}));var Ig;(function(t){t.method="workspace/willDeleteFiles",t.messageDirection=xt.MessageDirection.clientToServer,t.type=new xt.ProtocolRequestType(t.method)})(Ig=qe.WillDeleteFilesRequest||(qe.WillDeleteFilesRequest={}))});var Ih=X(Wt=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:!0});Wt.MonikerRequest=Wt.MonikerKind=Wt.UniquenessLevel=void 0;var Th=Le(),Pg;(function(t){t.document="document",t.project="project",t.group="group",t.scheme="scheme",t.global="global"})(Pg=Wt.UniquenessLevel||(Wt.UniquenessLevel={}));var zg;(function(t){t.$import="import",t.$export="export",t.local="local"})(zg=Wt.MonikerKind||(Wt.MonikerKind={}));var Ng;(function(t){t.method="textDocument/moniker",t.messageDirection=Th.MessageDirection.clientToServer,t.type=new Th.ProtocolRequestType(t.method)})(Ng=Wt.MonikerRequest||(Wt.MonikerRequest={}))});var Ph=X(Lt=>{"use strict";Object.defineProperty(Lt,"__esModule",{value:!0});Lt.TypeHierarchySubtypesRequest=Lt.TypeHierarchySupertypesRequest=Lt.TypeHierarchyPrepareRequest=void 0;var xi=Le(),Og;(function(t){t.method="textDocument/prepareTypeHierarchy",t.messageDirection=xi.MessageDirection.clientToServer,t.type=new xi.ProtocolRequestType(t.method)})(Og=Lt.TypeHierarchyPrepareRequest||(Lt.TypeHierarchyPrepareRequest={}));var Wg;(function(t){t.method="typeHierarchy/supertypes",t.messageDirection=xi.MessageDirection.clientToServer,t.type=new xi.ProtocolRequestType(t.method)})(Wg=Lt.TypeHierarchySupertypesRequest||(Lt.TypeHierarchySupertypesRequest={}));var Lg;(function(t){t.method="typeHierarchy/subtypes",t.messageDirection=xi.MessageDirection.clientToServer,t.type=new xi.ProtocolRequestType(t.method)})(Lg=Lt.TypeHierarchySubtypesRequest||(Lt.TypeHierarchySubtypesRequest={}))});var zh=X(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.InlineValueRefreshRequest=An.InlineValueRequest=void 0;var Is=Le(),qg;(function(t){t.method="textDocument/inlineValue",t.messageDirection=Is.MessageDirection.clientToServer,t.type=new Is.ProtocolRequestType(t.method)})(qg=An.InlineValueRequest||(An.InlineValueRequest={}));var jg;(function(t){t.method="workspace/inlineValue/refresh",t.messageDirection=Is.MessageDirection.serverToClient,t.type=new Is.ProtocolRequestType0(t.method)})(jg=An.InlineValueRefreshRequest||(An.InlineValueRefreshRequest={}))});var Nh=X(qt=>{"use strict";Object.defineProperty(qt,"__esModule",{value:!0});qt.InlayHintRefreshRequest=qt.InlayHintResolveRequest=qt.InlayHintRequest=void 0;var Ci=Le(),$g;(function(t){t.method="textDocument/inlayHint",t.messageDirection=Ci.MessageDirection.clientToServer,t.type=new Ci.ProtocolRequestType(t.method)})($g=qt.InlayHintRequest||(qt.InlayHintRequest={}));var Ug;(function(t){t.method="inlayHint/resolve",t.messageDirection=Ci.MessageDirection.clientToServer,t.type=new Ci.ProtocolRequestType(t.method)})(Ug=qt.InlayHintResolveRequest||(qt.InlayHintResolveRequest={}));var Vg;(function(t){t.method="workspace/inlayHint/refresh",t.messageDirection=Ci.MessageDirection.serverToClient,t.type=new Ci.ProtocolRequestType0(t.method)})(Vg=qt.InlayHintRefreshRequest||(qt.InlayHintRefreshRequest={}))});var Wh=X(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.DiagnosticRefreshRequest=et.WorkspaceDiagnosticRequest=et.DocumentDiagnosticRequest=et.DocumentDiagnosticReportKind=et.DiagnosticServerCancellationData=void 0;var Oh=Xn(),Bg=Es(),Fi=Le(),Hg;(function(t){function e(n){let i=n;return i&&Bg.boolean(i.retriggerRequest)}t.is=e})(Hg=et.DiagnosticServerCancellationData||(et.DiagnosticServerCancellationData={}));var Kg;(function(t){t.Full="full",t.Unchanged="unchanged"})(Kg=et.DocumentDiagnosticReportKind||(et.DocumentDiagnosticReportKind={}));var Gg;(function(t){t.method="textDocument/diagnostic",t.messageDirection=Fi.MessageDirection.clientToServer,t.type=new Fi.ProtocolRequestType(t.method),t.partialResult=new Oh.ProgressType})(Gg=et.DocumentDiagnosticRequest||(et.DocumentDiagnosticRequest={}));var Jg;(function(t){t.method="workspace/diagnostic",t.messageDirection=Fi.MessageDirection.clientToServer,t.type=new Fi.ProtocolRequestType(t.method),t.partialResult=new Oh.ProgressType})(Jg=et.WorkspaceDiagnosticRequest||(et.WorkspaceDiagnosticRequest={}));var Xg;(function(t){t.method="workspace/diagnostic/refresh",t.messageDirection=Fi.MessageDirection.serverToClient,t.type=new Fi.ProtocolRequestType0(t.method)})(Xg=et.DiagnosticRefreshRequest||(et.DiagnosticRefreshRequest={}))});var jh=X(Se=>{"use strict";Object.defineProperty(Se,"__esModule",{value:!0});Se.DidCloseNotebookDocumentNotification=Se.DidSaveNotebookDocumentNotification=Se.DidChangeNotebookDocumentNotification=Se.NotebookCellArrayChange=Se.DidOpenNotebookDocumentNotification=Se.NotebookDocumentSyncRegistrationType=Se.NotebookDocument=Se.NotebookCell=Se.ExecutionSummary=Se.NotebookCellKind=void 0;var br=As(),jt=Es(),Gt=Le(),Lh;(function(t){t.Markup=1,t.Code=2;function e(n){return n===1||n===2}t.is=e})(Lh=Se.NotebookCellKind||(Se.NotebookCellKind={}));var qh;(function(t){function e(r,s){let o={executionOrder:r};return(s===!0||s===!1)&&(o.success=s),o}t.create=e;function n(r){let s=r;return jt.objectLiteral(s)&&br.uinteger.is(s.executionOrder)&&(s.success===void 0||jt.boolean(s.success))}t.is=n;function i(r,s){return r===s?!0:r==null||s===null||s===void 0?!1:r.executionOrder===s.executionOrder&&r.success===s.success}t.equals=i})(qh=Se.ExecutionSummary||(Se.ExecutionSummary={}));var jl;(function(t){function e(s,o){return{kind:s,document:o}}t.create=e;function n(s){let o=s;return jt.objectLiteral(o)&&Lh.is(o.kind)&&br.DocumentUri.is(o.document)&&(o.metadata===void 0||jt.objectLiteral(o.metadata))}t.is=n;function i(s,o){let a=new Set;return s.document!==o.document&&a.add("document"),s.kind!==o.kind&&a.add("kind"),s.executionSummary!==o.executionSummary&&a.add("executionSummary"),(s.metadata!==void 0||o.metadata!==void 0)&&!r(s.metadata,o.metadata)&&a.add("metadata"),(s.executionSummary!==void 0||o.executionSummary!==void 0)&&!qh.equals(s.executionSummary,o.executionSummary)&&a.add("executionSummary"),a}t.diff=i;function r(s,o){if(s===o)return!0;if(s==null||o===null||o===void 0||typeof s!=typeof o||typeof s!="object")return!1;let a=Array.isArray(s),l=Array.isArray(o);if(a!==l)return!1;if(a&&l){if(s.length!==o.length)return!1;for(let c=0;c<s.length;c++)if(!r(s[c],o[c]))return!1}if(jt.objectLiteral(s)&&jt.objectLiteral(o)){let c=Object.keys(s),d=Object.keys(o);if(c.length!==d.length||(c.sort(),d.sort(),!r(c,d)))return!1;for(let p=0;p<c.length;p++){let b=c[p];if(!r(s[b],o[b]))return!1}}return!0}})(jl=Se.NotebookCell||(Se.NotebookCell={}));var Yg;(function(t){function e(i,r,s,o){return{uri:i,notebookType:r,version:s,cells:o}}t.create=e;function n(i){let r=i;return jt.objectLiteral(r)&&jt.string(r.uri)&&br.integer.is(r.version)&&jt.typedArray(r.cells,jl.is)}t.is=n})(Yg=Se.NotebookDocument||(Se.NotebookDocument={}));var yr;(function(t){t.method="notebookDocument/sync",t.messageDirection=Gt.MessageDirection.clientToServer,t.type=new Gt.RegistrationType(t.method)})(yr=Se.NotebookDocumentSyncRegistrationType||(Se.NotebookDocumentSyncRegistrationType={}));var Qg;(function(t){t.method="notebookDocument/didOpen",t.messageDirection=Gt.MessageDirection.clientToServer,t.type=new Gt.ProtocolNotificationType(t.method),t.registrationMethod=yr.method})(Qg=Se.DidOpenNotebookDocumentNotification||(Se.DidOpenNotebookDocumentNotification={}));var Zg;(function(t){function e(i){let r=i;return jt.objectLiteral(r)&&br.uinteger.is(r.start)&&br.uinteger.is(r.deleteCount)&&(r.cells===void 0||jt.typedArray(r.cells,jl.is))}t.is=e;function n(i,r,s){let o={start:i,deleteCount:r};return s!==void 0&&(o.cells=s),o}t.create=n})(Zg=Se.NotebookCellArrayChange||(Se.NotebookCellArrayChange={}));var eb;(function(t){t.method="notebookDocument/didChange",t.messageDirection=Gt.MessageDirection.clientToServer,t.type=new Gt.ProtocolNotificationType(t.method),t.registrationMethod=yr.method})(eb=Se.DidChangeNotebookDocumentNotification||(Se.DidChangeNotebookDocumentNotification={}));var tb;(function(t){t.method="notebookDocument/didSave",t.messageDirection=Gt.MessageDirection.clientToServer,t.type=new Gt.ProtocolNotificationType(t.method),t.registrationMethod=yr.method})(tb=Se.DidSaveNotebookDocumentNotification||(Se.DidSaveNotebookDocumentNotification={}));var nb;(function(t){t.method="notebookDocument/didClose",t.messageDirection=Gt.MessageDirection.clientToServer,t.type=new Gt.ProtocolNotificationType(t.method),t.registrationMethod=yr.method})(nb=Se.DidCloseNotebookDocumentNotification||(Se.DidCloseNotebookDocumentNotification={}))});var Xh=X(m=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0});m.WorkspaceSymbolRequest=m.CodeActionResolveRequest=m.CodeActionRequest=m.DocumentSymbolRequest=m.DocumentHighlightRequest=m.ReferencesRequest=m.DefinitionRequest=m.SignatureHelpRequest=m.SignatureHelpTriggerKind=m.HoverRequest=m.CompletionResolveRequest=m.CompletionRequest=m.CompletionTriggerKind=m.PublishDiagnosticsNotification=m.WatchKind=m.RelativePattern=m.FileChangeType=m.DidChangeWatchedFilesNotification=m.WillSaveTextDocumentWaitUntilRequest=m.WillSaveTextDocumentNotification=m.TextDocumentSaveReason=m.DidSaveTextDocumentNotification=m.DidCloseTextDocumentNotification=m.DidChangeTextDocumentNotification=m.TextDocumentContentChangeEvent=m.DidOpenTextDocumentNotification=m.TextDocumentSyncKind=m.TelemetryEventNotification=m.LogMessageNotification=m.ShowMessageRequest=m.ShowMessageNotification=m.MessageType=m.DidChangeConfigurationNotification=m.ExitNotification=m.ShutdownRequest=m.InitializedNotification=m.InitializeErrorCodes=m.InitializeRequest=m.WorkDoneProgressOptions=m.TextDocumentRegistrationOptions=m.StaticRegistrationOptions=m.PositionEncodingKind=m.FailureHandlingKind=m.ResourceOperationKind=m.UnregistrationRequest=m.RegistrationRequest=m.DocumentSelector=m.NotebookCellTextDocumentFilter=m.NotebookDocumentFilter=m.TextDocumentFilter=void 0;m.TypeHierarchySubtypesRequest=m.TypeHierarchyPrepareRequest=m.MonikerRequest=m.MonikerKind=m.UniquenessLevel=m.WillDeleteFilesRequest=m.DidDeleteFilesNotification=m.WillRenameFilesRequest=m.DidRenameFilesNotification=m.WillCreateFilesRequest=m.DidCreateFilesNotification=m.FileOperationPatternKind=m.LinkedEditingRangeRequest=m.ShowDocumentRequest=m.SemanticTokensRegistrationType=m.SemanticTokensRefreshRequest=m.SemanticTokensRangeRequest=m.SemanticTokensDeltaRequest=m.SemanticTokensRequest=m.TokenFormat=m.CallHierarchyPrepareRequest=m.CallHierarchyOutgoingCallsRequest=m.CallHierarchyIncomingCallsRequest=m.WorkDoneProgressCancelNotification=m.WorkDoneProgressCreateRequest=m.WorkDoneProgress=m.SelectionRangeRequest=m.DeclarationRequest=m.FoldingRangeRequest=m.ColorPresentationRequest=m.DocumentColorRequest=m.ConfigurationRequest=m.DidChangeWorkspaceFoldersNotification=m.WorkspaceFoldersRequest=m.TypeDefinitionRequest=m.ImplementationRequest=m.ApplyWorkspaceEditRequest=m.ExecuteCommandRequest=m.PrepareRenameRequest=m.RenameRequest=m.PrepareSupportDefaultBehavior=m.DocumentOnTypeFormattingRequest=m.DocumentRangeFormattingRequest=m.DocumentFormattingRequest=m.DocumentLinkResolveRequest=m.DocumentLinkRequest=m.CodeLensRefreshRequest=m.CodeLensResolveRequest=m.CodeLensRequest=m.WorkspaceSymbolResolveRequest=void 0;m.DidCloseNotebookDocumentNotification=m.DidSaveNotebookDocumentNotification=m.DidChangeNotebookDocumentNotification=m.NotebookCellArrayChange=m.DidOpenNotebookDocumentNotification=m.NotebookDocumentSyncRegistrationType=m.NotebookDocument=m.NotebookCell=m.ExecutionSummary=m.NotebookCellKind=m.DiagnosticRefreshRequest=m.WorkspaceDiagnosticRequest=m.DocumentDiagnosticRequest=m.DocumentDiagnosticReportKind=m.DiagnosticServerCancellationData=m.InlayHintRefreshRequest=m.InlayHintResolveRequest=m.InlayHintRequest=m.InlineValueRefreshRequest=m.InlineValueRequest=m.TypeHierarchySupertypesRequest=void 0;var U=Le(),$h=As(),tt=Es(),ib=hh();Object.defineProperty(m,"ImplementationRequest",{enumerable:!0,get:function(){return ib.ImplementationRequest}});var rb=ph();Object.defineProperty(m,"TypeDefinitionRequest",{enumerable:!0,get:function(){return rb.TypeDefinitionRequest}});var Uh=mh();Object.defineProperty(m,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return Uh.WorkspaceFoldersRequest}});Object.defineProperty(m,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return Uh.DidChangeWorkspaceFoldersNotification}});var sb=gh();Object.defineProperty(m,"ConfigurationRequest",{enumerable:!0,get:function(){return sb.ConfigurationRequest}});var Vh=bh();Object.defineProperty(m,"DocumentColorRequest",{enumerable:!0,get:function(){return Vh.DocumentColorRequest}});Object.defineProperty(m,"ColorPresentationRequest",{enumerable:!0,get:function(){return Vh.ColorPresentationRequest}});var ob=wh();Object.defineProperty(m,"FoldingRangeRequest",{enumerable:!0,get:function(){return ob.FoldingRangeRequest}});var ab=Sh();Object.defineProperty(m,"DeclarationRequest",{enumerable:!0,get:function(){return ab.DeclarationRequest}});var lb=xh();Object.defineProperty(m,"SelectionRangeRequest",{enumerable:!0,get:function(){return lb.SelectionRangeRequest}});var $l=Ch();Object.defineProperty(m,"WorkDoneProgress",{enumerable:!0,get:function(){return $l.WorkDoneProgress}});Object.defineProperty(m,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return $l.WorkDoneProgressCreateRequest}});Object.defineProperty(m,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return $l.WorkDoneProgressCancelNotification}});var Ul=Fh();Object.defineProperty(m,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return Ul.CallHierarchyIncomingCallsRequest}});Object.defineProperty(m,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return Ul.CallHierarchyOutgoingCallsRequest}});Object.defineProperty(m,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return Ul.CallHierarchyPrepareRequest}});var ki=kh();Object.defineProperty(m,"TokenFormat",{enumerable:!0,get:function(){return ki.TokenFormat}});Object.defineProperty(m,"SemanticTokensRequest",{enumerable:!0,get:function(){return ki.SemanticTokensRequest}});Object.defineProperty(m,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return ki.SemanticTokensDeltaRequest}});Object.defineProperty(m,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return ki.SemanticTokensRangeRequest}});Object.defineProperty(m,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return ki.SemanticTokensRefreshRequest}});Object.defineProperty(m,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return ki.SemanticTokensRegistrationType}});var cb=Eh();Object.defineProperty(m,"ShowDocumentRequest",{enumerable:!0,get:function(){return cb.ShowDocumentRequest}});var db=Rh();Object.defineProperty(m,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return db.LinkedEditingRangeRequest}});var Yn=Mh();Object.defineProperty(m,"FileOperationPatternKind",{enumerable:!0,get:function(){return Yn.FileOperationPatternKind}});Object.defineProperty(m,"DidCreateFilesNotification",{enumerable:!0,get:function(){return Yn.DidCreateFilesNotification}});Object.defineProperty(m,"WillCreateFilesRequest",{enumerable:!0,get:function(){return Yn.WillCreateFilesRequest}});Object.defineProperty(m,"DidRenameFilesNotification",{enumerable:!0,get:function(){return Yn.DidRenameFilesNotification}});Object.defineProperty(m,"WillRenameFilesRequest",{enumerable:!0,get:function(){return Yn.WillRenameFilesRequest}});Object.defineProperty(m,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return Yn.DidDeleteFilesNotification}});Object.defineProperty(m,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return Yn.WillDeleteFilesRequest}});var Vl=Ih();Object.defineProperty(m,"UniquenessLevel",{enumerable:!0,get:function(){return Vl.UniquenessLevel}});Object.defineProperty(m,"MonikerKind",{enumerable:!0,get:function(){return Vl.MonikerKind}});Object.defineProperty(m,"MonikerRequest",{enumerable:!0,get:function(){return Vl.MonikerRequest}});var Bl=Ph();Object.defineProperty(m,"TypeHierarchyPrepareRequest",{enumerable:!0,get:function(){return Bl.TypeHierarchyPrepareRequest}});Object.defineProperty(m,"TypeHierarchySubtypesRequest",{enumerable:!0,get:function(){return Bl.TypeHierarchySubtypesRequest}});Object.defineProperty(m,"TypeHierarchySupertypesRequest",{enumerable:!0,get:function(){return Bl.TypeHierarchySupertypesRequest}});var Bh=zh();Object.defineProperty(m,"InlineValueRequest",{enumerable:!0,get:function(){return Bh.InlineValueRequest}});Object.defineProperty(m,"InlineValueRefreshRequest",{enumerable:!0,get:function(){return Bh.InlineValueRefreshRequest}});var Hl=Nh();Object.defineProperty(m,"InlayHintRequest",{enumerable:!0,get:function(){return Hl.InlayHintRequest}});Object.defineProperty(m,"InlayHintResolveRequest",{enumerable:!0,get:function(){return Hl.InlayHintResolveRequest}});Object.defineProperty(m,"InlayHintRefreshRequest",{enumerable:!0,get:function(){return Hl.InlayHintRefreshRequest}});var wr=Wh();Object.defineProperty(m,"DiagnosticServerCancellationData",{enumerable:!0,get:function(){return wr.DiagnosticServerCancellationData}});Object.defineProperty(m,"DocumentDiagnosticReportKind",{enumerable:!0,get:function(){return wr.DocumentDiagnosticReportKind}});Object.defineProperty(m,"DocumentDiagnosticRequest",{enumerable:!0,get:function(){return wr.DocumentDiagnosticRequest}});Object.defineProperty(m,"WorkspaceDiagnosticRequest",{enumerable:!0,get:function(){return wr.WorkspaceDiagnosticRequest}});Object.defineProperty(m,"DiagnosticRefreshRequest",{enumerable:!0,get:function(){return wr.DiagnosticRefreshRequest}});var Jt=jh();Object.defineProperty(m,"NotebookCellKind",{enumerable:!0,get:function(){return Jt.NotebookCellKind}});Object.defineProperty(m,"ExecutionSummary",{enumerable:!0,get:function(){return Jt.ExecutionSummary}});Object.defineProperty(m,"NotebookCell",{enumerable:!0,get:function(){return Jt.NotebookCell}});Object.defineProperty(m,"NotebookDocument",{enumerable:!0,get:function(){return Jt.NotebookDocument}});Object.defineProperty(m,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:function(){return Jt.NotebookDocumentSyncRegistrationType}});Object.defineProperty(m,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:function(){return Jt.DidOpenNotebookDocumentNotification}});Object.defineProperty(m,"NotebookCellArrayChange",{enumerable:!0,get:function(){return Jt.NotebookCellArrayChange}});Object.defineProperty(m,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:function(){return Jt.DidChangeNotebookDocumentNotification}});Object.defineProperty(m,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:function(){return Jt.DidSaveNotebookDocumentNotification}});Object.defineProperty(m,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:function(){return Jt.DidCloseNotebookDocumentNotification}});var Hh;(function(t){function e(n){let i=n;return tt.string(i.language)||tt.string(i.scheme)||tt.string(i.pattern)}t.is=e})(Hh=m.TextDocumentFilter||(m.TextDocumentFilter={}));var Kh;(function(t){function e(n){let i=n;return tt.objectLiteral(i)&&(tt.string(i.notebookType)||tt.string(i.scheme)||tt.string(i.pattern))}t.is=e})(Kh=m.NotebookDocumentFilter||(m.NotebookDocumentFilter={}));var Gh;(function(t){function e(n){let i=n;return tt.objectLiteral(i)&&(tt.string(i.notebook)||Kh.is(i.notebook))&&(i.language===void 0||tt.string(i.language))}t.is=e})(Gh=m.NotebookCellTextDocumentFilter||(m.NotebookCellTextDocumentFilter={}));var Jh;(function(t){function e(n){if(!Array.isArray(n))return!1;for(let i of n)if(!tt.string(i)&&!Hh.is(i)&&!Gh.is(i))return!1;return!0}t.is=e})(Jh=m.DocumentSelector||(m.DocumentSelector={}));var hb;(function(t){t.method="client/registerCapability",t.messageDirection=U.MessageDirection.serverToClient,t.type=new U.ProtocolRequestType(t.method)})(hb=m.RegistrationRequest||(m.RegistrationRequest={}));var ub;(function(t){t.method="client/unregisterCapability",t.messageDirection=U.MessageDirection.serverToClient,t.type=new U.ProtocolRequestType(t.method)})(ub=m.UnregistrationRequest||(m.UnregistrationRequest={}));var pb;(function(t){t.Create="create",t.Rename="rename",t.Delete="delete"})(pb=m.ResourceOperationKind||(m.ResourceOperationKind={}));var mb;(function(t){t.Abort="abort",t.Transactional="transactional",t.TextOnlyTransactional="textOnlyTransactional",t.Undo="undo"})(mb=m.FailureHandlingKind||(m.FailureHandlingKind={}));var fb;(function(t){t.UTF8="utf-8",t.UTF16="utf-16",t.UTF32="utf-32"})(fb=m.PositionEncodingKind||(m.PositionEncodingKind={}));var gb;(function(t){function e(n){let i=n;return i&&tt.string(i.id)&&i.id.length>0}t.hasId=e})(gb=m.StaticRegistrationOptions||(m.StaticRegistrationOptions={}));var bb;(function(t){function e(n){let i=n;return i&&(i.documentSelector===null||Jh.is(i.documentSelector))}t.is=e})(bb=m.TextDocumentRegistrationOptions||(m.TextDocumentRegistrationOptions={}));var yb;(function(t){function e(i){let r=i;return tt.objectLiteral(r)&&(r.workDoneProgress===void 0||tt.boolean(r.workDoneProgress))}t.is=e;function n(i){let r=i;return r&&tt.boolean(r.workDoneProgress)}t.hasWorkDoneProgress=n})(yb=m.WorkDoneProgressOptions||(m.WorkDoneProgressOptions={}));var wb;(function(t){t.method="initialize",t.messageDirection=U.MessageDirection.clientToServer,t.type=new U.ProtocolRequestType(t.method)})(wb=m.InitializeRequest||(m.InitializeRequest={}));var vb;(function(t){t.unknownProtocolVersion=1})(vb=m.InitializeErrorCodes||(m.InitializeErrorCodes={}));var Sb;(function(t){t.method="initialized",t.messageDirection=U.MessageDirection.clientToServer,t.type=new U.ProtocolNotificationType(t.method)})(Sb=m.InitializedNotification||(m.InitializedNotification={}));var _b;(function(t){t.method="shutdown",t.messageDirection=U.MessageDirection.clientToServer,t.type=new U.ProtocolRequestType0(t.method)})(_b=m.ShutdownRequest||(m.ShutdownRequest={}));var xb;(function(t){t.method="exit",t.messageDirection=U.MessageDirection.clientToServer,t.type=new U.ProtocolNotificationType0(t.method)})(xb=m.ExitNotification||(m.ExitNotification={}));var Cb;(function(t){t.method="workspace/didChangeConfiguration",t.messageDirection=U.MessageDirection.clientToServer,t.type=new U.ProtocolNotificationType(t.method)})(Cb=m.DidChangeConfigurationNotification||(m.DidChangeConfigurationNotification={}));var Fb;(function(t){t.Error=1,t.Warning=2,t.Info=3,t.Log=4})(Fb=m.MessageType||(m.MessageType={}));var kb;(function(t){t.method="window/showMessage",t.messageDirection=U.MessageDirection.serverToClient,t.type=new U.ProtocolNotificationType(t.method)})(kb=m.ShowMessageNotification||(m.ShowMessageNotification={}));var Ab;(function(t){t.method="window/showMessageRequest",t.messageDirection=U.MessageDirection.serverToClient,t.type=new U.ProtocolRequestType(t.method)})(Ab=m.ShowMessageRequest||(m.ShowMessageRequest={}));var Eb;(function(t){t.method="window/logMessage",t.messageDirection=U.MessageDirection.serverToClient,t.type=new U.ProtocolNotificationType(t.method)})(Eb=m.LogMessageNotification||(m.LogMessageNotification={}));var Db;(function(t){t.method="telemetry/event",t.messageDirection=U.MessageDirection.serverToClient,t.type=new U.ProtocolNotificationType(t.method)})(Db=m.TelemetryEventNotification||(m.TelemetryEventNotification={}));var Rb;(function(t){t.None=0,t.Full=1,t.Incremental=2})(Rb=m.TextDocumentSyncKind||(m.TextDocumentSyncKind={}));var Mb;(function(t){t.method="textDocument/didOpen",t.messageDirection=U.MessageDirection.clientToServer,t.type=new U.ProtocolNotificationType(t.method)})(Mb=m.DidOpenTextDocumentNotification||(m.DidOpenTextDocumentNotification={}));var Tb;(function(t){function e(i){let r=i;return r!=null&&typeof r.text=="string"&&r.range!==void 0&&(r.rangeLength===void 0||typeof r.rangeLength=="number")}t.isIncremental=e;function n(i){let r=i;return r!=null&&typeof r.text=="string"&&r.range===void 0&&r.rangeLength===void 0}t.isFull=n})(Tb=m.TextDocumentContentChangeEvent||(m.TextDocumentContentChangeEvent={}));var Ib;(function(t){t.method="textDocument/didChange",t.messageDirection=U.MessageDirection.clientToServer,t.type=new U.ProtocolNotificationType(t.method)})(Ib=m.DidChangeTextDocumentNotification||(m.DidChangeTextDocumentNotification={}));var Pb;(function(t){t.method="textDocument/didClose",t.messageDirection=U.MessageDirection.clientToServer,t.type=new U.ProtocolNotificationType(t.method)})(Pb=m.DidCloseTextDocumentNotification||(m.DidCloseTextDocumentNotification={}));var zb;(function(t){t.method="textDocument/didSave",t.messageDirection=U.MessageDirection.clientToServer,t.type=new U.ProtocolNotificationType(t.method)})(zb=m.DidSaveTextDocumentNotification||(m.DidSaveTextDocumentNotification={}));var Nb;(function(t){t.Manual=1,t.AfterDelay=2,t.FocusOut=3})(Nb=m.TextDocumentSaveReason||(m.TextDocumentSaveReason={}));var Ob;(function(t){t.method="textDocument/willSave",t.messageDirection=U.MessageDirection.clientToServer,t.type=new U.ProtocolNotificationType(t.method)})(Ob=m.WillSaveTextDocumentNotification||(m.WillSaveTextDocumentNotification={}));var Wb;(function(t){t.method="textDocument/willSaveWaitUntil",t.messageDirection=U.MessageDirection.clientToServer,t.type=new U.ProtocolRequestType(t.method)})(Wb=m.WillSaveTextDocumentWaitUntilRequest||(m.WillSaveTextDocumentWaitUntilRequest={}));var Lb;(function(t){t.method="workspace/didChangeWatchedFiles",t.messageDirection=U.MessageDirection.clientToServer,t.type=new U.ProtocolNotificationType(t.method)})(Lb=m.DidChangeWatchedFilesNotification||(m.DidChangeWatchedFilesNotification={}));var qb;(function(t){t.Created=1,t.Changed=2,t.Deleted=3})(qb=m.FileChangeType||(m.FileChangeType={}));var jb;(function(t){function e(n){let i=n;return tt.objectLiteral(i)&&($h.URI.is(i.baseUri)||$h.WorkspaceFolder.is(i.baseUri))&&tt.string(i.pattern)}t.is=e})(jb=m.RelativePattern||(m.RelativePattern={}));var $b;(function(t){t.Create=1,t.Change=2,t.Delete=4})($b=m.WatchKind||(m.WatchKind={}));var Ub;(function(t){t.method="textDocument/publishDiagnostics",t.messageDirection=U.MessageDirection.serverToClient,t.type=new U.ProtocolNotificationType(t.method)})(Ub=m.PublishDiagnosticsNotification||(m.PublishDiagnosticsNotification={}));var Vb;(function(t){t.Invoked=1,t.TriggerCharacter=2,t.TriggerForIncompleteCompletions=3})(Vb=m.CompletionTriggerKind||(m.CompletionTriggerKind={}));var Bb;(function(t){t.method="textDocument/completion",t.messageDirection=U.MessageDirection.clientToServer,t.type=new U.ProtocolRequestType(t.method)})(Bb=m.CompletionRequest||(m.CompletionRequest={}));var Hb;(function(t){t.method="completionItem/resolve",t.messageDirection=U.MessageDirection.clientToServer,t.type=new U.ProtocolRequestType(t.method)})(Hb=m.CompletionResolveRequest||(m.CompletionResolveRequest={}));var Kb;(function(t){t.method="textDocument/hover",t.messageDirection=U.MessageDirection.clientToServer,t.type=new U.ProtocolRequestType(t.method)})(Kb=m.HoverRequest||(m.HoverRequest={}));var Gb;(function(t){t.Invoked=1,t.TriggerCharacter=2,t.ContentChange=3})(Gb=m.SignatureHelpTriggerKind||(m.SignatureHelpTriggerKind={}));var Jb;(function(t){t.method="textDocument/signatureHelp",t.messageDirection=U.MessageDirection.clientToServer,t.type=new U.ProtocolRequestType(t.method)})(Jb=m.SignatureHelpRequest||(m.SignatureHelpRequest={}));var Xb;(function(t){t.method="textDocument/definition",t.messageDirection=U.MessageDirection.clientToServer,t.type=new U.ProtocolRequestType(t.method)})(Xb=m.DefinitionRequest||(m.DefinitionRequest={}));var Yb;(function(t){t.method="textDocument/references",t.messageDirection=U.MessageDirection.clientToServer,t.type=new U.ProtocolRequestType(t.method)})(Yb=m.ReferencesRequest||(m.ReferencesRequest={}));var Qb;(function(t){t.method="textDocument/documentHighlight",t.messageDirection=U.MessageDirection.clientToServer,t.type=new U.ProtocolRequestType(t.method)})(Qb=m.DocumentHighlightRequest||(m.DocumentHighlightRequest={}));var Zb;(function(t){t.method="textDocument/documentSymbol",t.messageDirection=U.MessageDirection.clientToServer,t.type=new U.ProtocolRequestType(t.method)})(Zb=m.DocumentSymbolRequest||(m.DocumentSymbolRequest={}));var ey;(function(t){t.method="textDocument/codeAction",t.messageDirection=U.MessageDirection.clientToServer,t.type=new U.ProtocolRequestType(t.method)})(ey=m.CodeActionRequest||(m.CodeActionRequest={}));var ty;(function(t){t.method="codeAction/resolve",t.messageDirection=U.MessageDirection.clientToServer,t.type=new U.ProtocolRequestType(t.method)})(ty=m.CodeActionResolveRequest||(m.CodeActionResolveRequest={}));var ny;(function(t){t.method="workspace/symbol",t.messageDirection=U.MessageDirection.clientToServer,t.type=new U.ProtocolRequestType(t.method)})(ny=m.WorkspaceSymbolRequest||(m.WorkspaceSymbolRequest={}));var iy;(function(t){t.method="workspaceSymbol/resolve",t.messageDirection=U.MessageDirection.clientToServer,t.type=new U.ProtocolRequestType(t.method)})(iy=m.WorkspaceSymbolResolveRequest||(m.WorkspaceSymbolResolveRequest={}));var ry;(function(t){t.method="textDocument/codeLens",t.messageDirection=U.MessageDirection.clientToServer,t.type=new U.ProtocolRequestType(t.method)})(ry=m.CodeLensRequest||(m.CodeLensRequest={}));var sy;(function(t){t.method="codeLens/resolve",t.messageDirection=U.MessageDirection.clientToServer,t.type=new U.ProtocolRequestType(t.method)})(sy=m.CodeLensResolveRequest||(m.CodeLensResolveRequest={}));var oy;(function(t){t.method="workspace/codeLens/refresh",t.messageDirection=U.MessageDirection.serverToClient,t.type=new U.ProtocolRequestType0(t.method)})(oy=m.CodeLensRefreshRequest||(m.CodeLensRefreshRequest={}));var ay;(function(t){t.method="textDocument/documentLink",t.messageDirection=U.MessageDirection.clientToServer,t.type=new U.ProtocolRequestType(t.method)})(ay=m.DocumentLinkRequest||(m.DocumentLinkRequest={}));var ly;(function(t){t.method="documentLink/resolve",t.messageDirection=U.MessageDirection.clientToServer,t.type=new U.ProtocolRequestType(t.method)})(ly=m.DocumentLinkResolveRequest||(m.DocumentLinkResolveRequest={}));var cy;(function(t){t.method="textDocument/formatting",t.messageDirection=U.MessageDirection.clientToServer,t.type=new U.ProtocolRequestType(t.method)})(cy=m.DocumentFormattingRequest||(m.DocumentFormattingRequest={}));var dy;(function(t){t.method="textDocument/rangeFormatting",t.messageDirection=U.MessageDirection.clientToServer,t.type=new U.ProtocolRequestType(t.method)})(dy=m.DocumentRangeFormattingRequest||(m.DocumentRangeFormattingRequest={}));var hy;(function(t){t.method="textDocument/onTypeFormatting",t.messageDirection=U.MessageDirection.clientToServer,t.type=new U.ProtocolRequestType(t.method)})(hy=m.DocumentOnTypeFormattingRequest||(m.DocumentOnTypeFormattingRequest={}));var uy;(function(t){t.Identifier=1})(uy=m.PrepareSupportDefaultBehavior||(m.PrepareSupportDefaultBehavior={}));var py;(function(t){t.method="textDocument/rename",t.messageDirection=U.MessageDirection.clientToServer,t.type=new U.ProtocolRequestType(t.method)})(py=m.RenameRequest||(m.RenameRequest={}));var my;(function(t){t.method="textDocument/prepareRename",t.messageDirection=U.MessageDirection.clientToServer,t.type=new U.ProtocolRequestType(t.method)})(my=m.PrepareRenameRequest||(m.PrepareRenameRequest={}));var fy;(function(t){t.method="workspace/executeCommand",t.messageDirection=U.MessageDirection.clientToServer,t.type=new U.ProtocolRequestType(t.method)})(fy=m.ExecuteCommandRequest||(m.ExecuteCommandRequest={}));var gy;(function(t){t.method="workspace/applyEdit",t.messageDirection=U.MessageDirection.serverToClient,t.type=new U.ProtocolRequestType("workspace/applyEdit")})(gy=m.ApplyWorkspaceEditRequest||(m.ApplyWorkspaceEditRequest={}))});var Qh=X(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});Ps.createProtocolConnection=void 0;var Yh=Xn();function by(t,e,n,i){return Yh.ConnectionStrategy.is(i)&&(i={connectionStrategy:i}),(0,Yh.createMessageConnection)(t,e,n,i)}Ps.createProtocolConnection=by});var Zh=X(ht=>{"use strict";var yy=ht&&ht.__createBinding||(Object.create?function(t,e,n,i){i===void 0&&(i=n);var r=Object.getOwnPropertyDescriptor(e,n);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,r)}:function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]}),zs=ht&&ht.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&yy(e,t,n)};Object.defineProperty(ht,"__esModule",{value:!0});ht.LSPErrorCodes=ht.createProtocolConnection=void 0;zs(Xn(),ht);zs(As(),ht);zs(Le(),ht);zs(Xh(),ht);var wy=Qh();Object.defineProperty(ht,"createProtocolConnection",{enumerable:!0,get:function(){return wy.createProtocolConnection}});var vy;(function(t){t.lspReservedErrorRangeStart=-32899,t.RequestFailed=-32803,t.ServerCancelled=-32802,t.ContentModified=-32801,t.RequestCancelled=-32800,t.lspReservedErrorRangeEnd=-32800})(vy=ht.LSPErrorCodes||(ht.LSPErrorCodes={}))});var Ye=X(Xt=>{"use strict";var Sy=Xt&&Xt.__createBinding||(Object.create?function(t,e,n,i){i===void 0&&(i=n);var r=Object.getOwnPropertyDescriptor(e,n);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,r)}:function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]}),eu=Xt&&Xt.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&Sy(e,t,n)};Object.defineProperty(Xt,"__esModule",{value:!0});Xt.createProtocolConnection=void 0;var _y=zl();eu(zl(),Xt);eu(Zh(),Xt);function xy(t,e,n,i){return(0,_y.createMessageConnection)(t,e,n,i)}Xt.createProtocolConnection=xy});var Kl=X(Ct=>{"use strict";Object.defineProperty(Ct,"__esModule",{value:!0});Ct.generateUuid=Ct.parse=Ct.isUUID=Ct.v4=Ct.empty=void 0;var vr=class{constructor(e){this._value=e}asHex(){return this._value}equals(e){return this.asHex()===e.asHex()}},Sr=class t extends vr{constructor(){super([t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),"-",t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),"-","4",t._randomHex(),t._randomHex(),t._randomHex(),"-",t._oneOf(t._timeHighBits),t._randomHex(),t._randomHex(),t._randomHex(),"-",t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex()].join(""))}static _oneOf(e){return e[Math.floor(e.length*Math.random())]}static _randomHex(){return t._oneOf(t._chars)}};Sr._chars=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"];Sr._timeHighBits=["8","9","a","b"];Ct.empty=new vr("00000000-0000-0000-0000-000000000000");function tu(){return new Sr}Ct.v4=tu;var Cy=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function nu(t){return Cy.test(t)}Ct.isUUID=nu;function Fy(t){if(!nu(t))throw new Error("invalid uuid");return new vr(t)}Ct.parse=Fy;function ky(){return tu().asHex()}Ct.generateUuid=ky});var iu=X(Dn=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});Dn.attachPartialResult=Dn.ProgressFeature=Dn.attachWorkDone=void 0;var En=Ye(),Ay=Kl(),Qn=class t{constructor(e,n){this._connection=e,this._token=n,t.Instances.set(this._token,this)}begin(e,n,i,r){let s={kind:"begin",title:e,percentage:n,message:i,cancellable:r};this._connection.sendProgress(En.WorkDoneProgress.type,this._token,s)}report(e,n){let i={kind:"report"};typeof e=="number"?(i.percentage=e,n!==void 0&&(i.message=n)):i.message=e,this._connection.sendProgress(En.WorkDoneProgress.type,this._token,i)}done(){t.Instances.delete(this._token),this._connection.sendProgress(En.WorkDoneProgress.type,this._token,{kind:"end"})}};Qn.Instances=new Map;var Ns=class extends Qn{constructor(e,n){super(e,n),this._source=new En.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose(),super.done()}cancel(){this._source.cancel()}},_r=class{constructor(){}begin(){}report(){}done(){}},Os=class extends _r{constructor(){super(),this._source=new En.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose()}cancel(){this._source.cancel()}};function Ey(t,e){if(e===void 0||e.workDoneToken===void 0)return new _r;let n=e.workDoneToken;return delete e.workDoneToken,new Qn(t,n)}Dn.attachWorkDone=Ey;var Dy=t=>class extends t{constructor(){super(),this._progressSupported=!1}initialize(e){super.initialize(e),e?.window?.workDoneProgress===!0&&(this._progressSupported=!0,this.connection.onNotification(En.WorkDoneProgressCancelNotification.type,n=>{let i=Qn.Instances.get(n.token);(i instanceof Ns||i instanceof Os)&&i.cancel()}))}attachWorkDoneProgress(e){return e===void 0?new _r:new Qn(this.connection,e)}createWorkDoneProgress(){if(this._progressSupported){let e=(0,Ay.generateUuid)();return this.connection.sendRequest(En.WorkDoneProgressCreateRequest.type,{token:e}).then(()=>new Ns(this.connection,e))}else return Promise.resolve(new Os)}};Dn.ProgressFeature=Dy;var Gl;(function(t){t.type=new En.ProgressType})(Gl||(Gl={}));var Jl=class{constructor(e,n){this._connection=e,this._token=n}report(e){this._connection.sendProgress(Gl.type,this._token,e)}};function Ry(t,e){if(e===void 0||e.partialResultToken===void 0)return;let n=e.partialResultToken;return delete e.partialResultToken,new Jl(t,n)}Dn.attachPartialResult=Ry});var ru=X(Ws=>{"use strict";Object.defineProperty(Ws,"__esModule",{value:!0});Ws.ConfigurationFeature=void 0;var My=Ye(),Ty=hs(),Iy=t=>class extends t{getConfiguration(e){return e?Ty.string(e)?this._getConfiguration({section:e}):this._getConfiguration(e):this._getConfiguration({})}_getConfiguration(e){let n={items:Array.isArray(e)?e:[e]};return this.connection.sendRequest(My.ConfigurationRequest.type,n).then(i=>Array.isArray(i)?Array.isArray(e)?i:i[0]:Array.isArray(e)?[]:null)}};Ws.ConfigurationFeature=Iy});var su=X(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});qs.WorkspaceFoldersFeature=void 0;var Ls=Ye(),Py=t=>class extends t{constructor(){super(),this._notificationIsAutoRegistered=!1}initialize(e){super.initialize(e);let n=e.workspace;n&&n.workspaceFolders&&(this._onDidChangeWorkspaceFolders=new Ls.Emitter,this.connection.onNotification(Ls.DidChangeWorkspaceFoldersNotification.type,i=>{this._onDidChangeWorkspaceFolders.fire(i.event)}))}fillServerCapabilities(e){super.fillServerCapabilities(e);let n=e.workspace?.workspaceFolders?.changeNotifications;this._notificationIsAutoRegistered=n===!0||typeof n=="string"}getWorkspaceFolders(){return this.connection.sendRequest(Ls.WorkspaceFoldersRequest.type)}get onDidChangeWorkspaceFolders(){if(!this._onDidChangeWorkspaceFolders)throw new Error("Client doesn't support sending workspace folder change events.");return!this._notificationIsAutoRegistered&&!this._unregistration&&(this._unregistration=this.connection.client.register(Ls.DidChangeWorkspaceFoldersNotification.type)),this._onDidChangeWorkspaceFolders.event}};qs.WorkspaceFoldersFeature=Py});var ou=X(js=>{"use strict";Object.defineProperty(js,"__esModule",{value:!0});js.CallHierarchyFeature=void 0;var Xl=Ye(),zy=t=>class extends t{get callHierarchy(){return{onPrepare:e=>this.connection.onRequest(Xl.CallHierarchyPrepareRequest.type,(n,i)=>e(n,i,this.attachWorkDoneProgress(n),void 0)),onIncomingCalls:e=>{let n=Xl.CallHierarchyIncomingCallsRequest.type;return this.connection.onRequest(n,(i,r)=>e(i,r,this.attachWorkDoneProgress(i),this.attachPartialResultProgress(n,i)))},onOutgoingCalls:e=>{let n=Xl.CallHierarchyOutgoingCallsRequest.type;return this.connection.onRequest(n,(i,r)=>e(i,r,this.attachWorkDoneProgress(i),this.attachPartialResultProgress(n,i)))}}}};js.CallHierarchyFeature=zy});var Ql=X(Rn=>{"use strict";Object.defineProperty(Rn,"__esModule",{value:!0});Rn.SemanticTokensBuilder=Rn.SemanticTokensDiff=Rn.SemanticTokensFeature=void 0;var $s=Ye(),Ny=t=>class extends t{get semanticTokens(){return{refresh:()=>this.connection.sendRequest($s.SemanticTokensRefreshRequest.type),on:e=>{let n=$s.SemanticTokensRequest.type;return this.connection.onRequest(n,(i,r)=>e(i,r,this.attachWorkDoneProgress(i),this.attachPartialResultProgress(n,i)))},onDelta:e=>{let n=$s.SemanticTokensDeltaRequest.type;return this.connection.onRequest(n,(i,r)=>e(i,r,this.attachWorkDoneProgress(i),this.attachPartialResultProgress(n,i)))},onRange:e=>{let n=$s.SemanticTokensRangeRequest.type;return this.connection.onRequest(n,(i,r)=>e(i,r,this.attachWorkDoneProgress(i),this.attachPartialResultProgress(n,i)))}}}};Rn.SemanticTokensFeature=Ny;var Us=class{constructor(e,n){this.originalSequence=e,this.modifiedSequence=n}computeDiff(){let e=this.originalSequence.length,n=this.modifiedSequence.length,i=0;for(;i<n&&i<e&&this.originalSequence[i]===this.modifiedSequence[i];)i++;if(i<n&&i<e){let r=e-1,s=n-1;for(;r>=i&&s>=i&&this.originalSequence[r]===this.modifiedSequence[s];)r--,s--;(r<i||s<i)&&(r++,s++);let o=r-i+1,a=this.modifiedSequence.slice(i,s+1);return a.length===1&&a[0]===this.originalSequence[r]?[{start:i,deleteCount:o-1}]:[{start:i,deleteCount:o,data:a}]}else return i<n?[{start:i,deleteCount:0,data:this.modifiedSequence.slice(i)}]:i<e?[{start:i,deleteCount:e-i}]:[]}};Rn.SemanticTokensDiff=Us;var Yl=class{constructor(){this._prevData=void 0,this.initialize()}initialize(){this._id=Date.now(),this._prevLine=0,this._prevChar=0,this._data=[],this._dataLen=0}push(e,n,i,r,s){let o=e,a=n;this._dataLen>0&&(o-=this._prevLine,o===0&&(a-=this._prevChar)),this._data[this._dataLen++]=o,this._data[this._dataLen++]=a,this._data[this._dataLen++]=i,this._data[this._dataLen++]=r,this._data[this._dataLen++]=s,this._prevLine=e,this._prevChar=n}get id(){return this._id.toString()}previousResult(e){this.id===e&&(this._prevData=this._data),this.initialize()}build(){return this._prevData=void 0,{resultId:this.id,data:this._data}}canBuildEdits(){return this._prevData!==void 0}buildEdits(){return this._prevData!==void 0?{resultId:this.id,edits:new Us(this._prevData,this._data).computeDiff()}:this.build()}};Rn.SemanticTokensBuilder=Yl});var au=X(Vs=>{"use strict";Object.defineProperty(Vs,"__esModule",{value:!0});Vs.ShowDocumentFeature=void 0;var Oy=Ye(),Wy=t=>class extends t{showDocument(e){return this.connection.sendRequest(Oy.ShowDocumentRequest.type,e)}};Vs.ShowDocumentFeature=Wy});var lu=X(Bs=>{"use strict";Object.defineProperty(Bs,"__esModule",{value:!0});Bs.FileOperationsFeature=void 0;var Ai=Ye(),Ly=t=>class extends t{onDidCreateFiles(e){return this.connection.onNotification(Ai.DidCreateFilesNotification.type,n=>{e(n)})}onDidRenameFiles(e){return this.connection.onNotification(Ai.DidRenameFilesNotification.type,n=>{e(n)})}onDidDeleteFiles(e){return this.connection.onNotification(Ai.DidDeleteFilesNotification.type,n=>{e(n)})}onWillCreateFiles(e){return this.connection.onRequest(Ai.WillCreateFilesRequest.type,(n,i)=>e(n,i))}onWillRenameFiles(e){return this.connection.onRequest(Ai.WillRenameFilesRequest.type,(n,i)=>e(n,i))}onWillDeleteFiles(e){return this.connection.onRequest(Ai.WillDeleteFilesRequest.type,(n,i)=>e(n,i))}};Bs.FileOperationsFeature=Ly});var cu=X(Hs=>{"use strict";Object.defineProperty(Hs,"__esModule",{value:!0});Hs.LinkedEditingRangeFeature=void 0;var qy=Ye(),jy=t=>class extends t{onLinkedEditingRange(e){return this.connection.onRequest(qy.LinkedEditingRangeRequest.type,(n,i)=>e(n,i,this.attachWorkDoneProgress(n),void 0))}};Hs.LinkedEditingRangeFeature=jy});var du=X(Ks=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});Ks.TypeHierarchyFeature=void 0;var Zl=Ye(),$y=t=>class extends t{get typeHierarchy(){return{onPrepare:e=>this.connection.onRequest(Zl.TypeHierarchyPrepareRequest.type,(n,i)=>e(n,i,this.attachWorkDoneProgress(n),void 0)),onSupertypes:e=>{let n=Zl.TypeHierarchySupertypesRequest.type;return this.connection.onRequest(n,(i,r)=>e(i,r,this.attachWorkDoneProgress(i),this.attachPartialResultProgress(n,i)))},onSubtypes:e=>{let n=Zl.TypeHierarchySubtypesRequest.type;return this.connection.onRequest(n,(i,r)=>e(i,r,this.attachWorkDoneProgress(i),this.attachPartialResultProgress(n,i)))}}}};Ks.TypeHierarchyFeature=$y});var uu=X(Gs=>{"use strict";Object.defineProperty(Gs,"__esModule",{value:!0});Gs.InlineValueFeature=void 0;var hu=Ye(),Uy=t=>class extends t{get inlineValue(){return{refresh:()=>this.connection.sendRequest(hu.InlineValueRefreshRequest.type),on:e=>this.connection.onRequest(hu.InlineValueRequest.type,(n,i)=>e(n,i,this.attachWorkDoneProgress(n)))}}};Gs.InlineValueFeature=Uy});var pu=X(Js=>{"use strict";Object.defineProperty(Js,"__esModule",{value:!0});Js.InlayHintFeature=void 0;var ec=Ye(),Vy=t=>class extends t{get inlayHint(){return{refresh:()=>this.connection.sendRequest(ec.InlayHintRefreshRequest.type),on:e=>this.connection.onRequest(ec.InlayHintRequest.type,(n,i)=>e(n,i,this.attachWorkDoneProgress(n))),resolve:e=>this.connection.onRequest(ec.InlayHintResolveRequest.type,(n,i)=>e(n,i))}}};Js.InlayHintFeature=Vy});var mu=X(Xs=>{"use strict";Object.defineProperty(Xs,"__esModule",{value:!0});Xs.DiagnosticFeature=void 0;var xr=Ye(),By=t=>class extends t{get diagnostics(){return{refresh:()=>this.connection.sendRequest(xr.DiagnosticRefreshRequest.type),on:e=>this.connection.onRequest(xr.DocumentDiagnosticRequest.type,(n,i)=>e(n,i,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(xr.DocumentDiagnosticRequest.partialResult,n))),onWorkspace:e=>this.connection.onRequest(xr.WorkspaceDiagnosticRequest.type,(n,i)=>e(n,i,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(xr.WorkspaceDiagnosticRequest.partialResult,n)))}}};Xs.DiagnosticFeature=By});var nc=X(Ys=>{"use strict";Object.defineProperty(Ys,"__esModule",{value:!0});Ys.TextDocuments=void 0;var Zn=Ye(),tc=class{constructor(e){this._configuration=e,this._syncedDocuments=new Map,this._onDidChangeContent=new Zn.Emitter,this._onDidOpen=new Zn.Emitter,this._onDidClose=new Zn.Emitter,this._onDidSave=new Zn.Emitter,this._onWillSave=new Zn.Emitter}get onDidOpen(){return this._onDidOpen.event}get onDidChangeContent(){return this._onDidChangeContent.event}get onWillSave(){return this._onWillSave.event}onWillSaveWaitUntil(e){this._willSaveWaitUntil=e}get onDidSave(){return this._onDidSave.event}get onDidClose(){return this._onDidClose.event}get(e){return this._syncedDocuments.get(e)}all(){return Array.from(this._syncedDocuments.values())}keys(){return Array.from(this._syncedDocuments.keys())}listen(e){e.__textDocumentSync=Zn.TextDocumentSyncKind.Incremental;let n=[];return n.push(e.onDidOpenTextDocument(i=>{let r=i.textDocument,s=this._configuration.create(r.uri,r.languageId,r.version,r.text);this._syncedDocuments.set(r.uri,s);let o=Object.freeze({document:s});this._onDidOpen.fire(o),this._onDidChangeContent.fire(o)})),n.push(e.onDidChangeTextDocument(i=>{let r=i.textDocument,s=i.contentChanges;if(s.length===0)return;let{version:o}=r;if(o==null)throw new Error(`Received document change event for ${r.uri} without valid version identifier`);let a=this._syncedDocuments.get(r.uri);a!==void 0&&(a=this._configuration.update(a,s,o),this._syncedDocuments.set(r.uri,a),this._onDidChangeContent.fire(Object.freeze({document:a})))})),n.push(e.onDidCloseTextDocument(i=>{let r=this._syncedDocuments.get(i.textDocument.uri);r!==void 0&&(this._syncedDocuments.delete(i.textDocument.uri),this._onDidClose.fire(Object.freeze({document:r})))})),n.push(e.onWillSaveTextDocument(i=>{let r=this._syncedDocuments.get(i.textDocument.uri);r!==void 0&&this._onWillSave.fire(Object.freeze({document:r,reason:i.reason}))})),n.push(e.onWillSaveTextDocumentWaitUntil((i,r)=>{let s=this._syncedDocuments.get(i.textDocument.uri);return s!==void 0&&this._willSaveWaitUntil?this._willSaveWaitUntil(Object.freeze({document:s,reason:i.reason}),r):[]})),n.push(e.onDidSaveTextDocument(i=>{let r=this._syncedDocuments.get(i.textDocument.uri);r!==void 0&&this._onDidSave.fire(Object.freeze({document:r}))})),Zn.Disposable.create(()=>{n.forEach(i=>i.dispose())})}};Ys.TextDocuments=tc});var rc=X(Ei=>{"use strict";Object.defineProperty(Ei,"__esModule",{value:!0});Ei.NotebookDocuments=Ei.NotebookSyncFeature=void 0;var Ft=Ye(),fu=nc(),Hy=t=>class extends t{get synchronization(){return{onDidOpenNotebookDocument:e=>this.connection.onNotification(Ft.DidOpenNotebookDocumentNotification.type,n=>{e(n)}),onDidChangeNotebookDocument:e=>this.connection.onNotification(Ft.DidChangeNotebookDocumentNotification.type,n=>{e(n)}),onDidSaveNotebookDocument:e=>this.connection.onNotification(Ft.DidSaveNotebookDocumentNotification.type,n=>{e(n)}),onDidCloseNotebookDocument:e=>this.connection.onNotification(Ft.DidCloseNotebookDocumentNotification.type,n=>{e(n)})}}};Ei.NotebookSyncFeature=Hy;var Qs=class t{onDidOpenTextDocument(e){return this.openHandler=e,Ft.Disposable.create(()=>{this.openHandler=void 0})}openTextDocument(e){this.openHandler&&this.openHandler(e)}onDidChangeTextDocument(e){return this.changeHandler=e,Ft.Disposable.create(()=>{this.changeHandler=e})}changeTextDocument(e){this.changeHandler&&this.changeHandler(e)}onDidCloseTextDocument(e){return this.closeHandler=e,Ft.Disposable.create(()=>{this.closeHandler=void 0})}closeTextDocument(e){this.closeHandler&&this.closeHandler(e)}onWillSaveTextDocument(){return t.NULL_DISPOSE}onWillSaveTextDocumentWaitUntil(){return t.NULL_DISPOSE}onDidSaveTextDocument(){return t.NULL_DISPOSE}};Qs.NULL_DISPOSE=Object.freeze({dispose:()=>{}});var ic=class{constructor(e){e instanceof fu.TextDocuments?this._cellTextDocuments=e:this._cellTextDocuments=new fu.TextDocuments(e),this.notebookDocuments=new Map,this.notebookCellMap=new Map,this._onDidOpen=new Ft.Emitter,this._onDidChange=new Ft.Emitter,this._onDidSave=new Ft.Emitter,this._onDidClose=new Ft.Emitter}get cellTextDocuments(){return this._cellTextDocuments}getCellTextDocument(e){return this._cellTextDocuments.get(e.document)}getNotebookDocument(e){return this.notebookDocuments.get(e)}getNotebookCell(e){let n=this.notebookCellMap.get(e);return n&&n[0]}findNotebookDocumentForCell(e){let n=typeof e=="string"?e:e.document,i=this.notebookCellMap.get(n);return i&&i[1]}get onDidOpen(){return this._onDidOpen.event}get onDidSave(){return this._onDidSave.event}get onDidChange(){return this._onDidChange.event}get onDidClose(){return this._onDidClose.event}listen(e){let n=new Qs,i=[];return i.push(this.cellTextDocuments.listen(n)),i.push(e.notebooks.synchronization.onDidOpenNotebookDocument(r=>{this.notebookDocuments.set(r.notebookDocument.uri,r.notebookDocument);for(let s of r.cellTextDocuments)n.openTextDocument({textDocument:s});this.updateCellMap(r.notebookDocument),this._onDidOpen.fire(r.notebookDocument)})),i.push(e.notebooks.synchronization.onDidChangeNotebookDocument(r=>{let s=this.notebookDocuments.get(r.notebookDocument.uri);if(s===void 0)return;s.version=r.notebookDocument.version;let o=s.metadata,a=!1,l=r.change;l.metadata!==void 0&&(a=!0,s.metadata=l.metadata);let c=[],d=[],p=[],b=[];if(l.cells!==void 0){let $=l.cells;if($.structure!==void 0){let F=$.structure.array;if(s.cells.splice(F.start,F.deleteCount,...F.cells!==void 0?F.cells:[]),$.structure.didOpen!==void 0)for(let x of $.structure.didOpen)n.openTextDocument({textDocument:x}),c.push(x.uri);if($.structure.didClose)for(let x of $.structure.didClose)n.closeTextDocument({textDocument:x}),d.push(x.uri)}if($.data!==void 0){let F=new Map($.data.map(x=>[x.document,x]));for(let x=0;x<=s.cells.length;x++){let N=F.get(s.cells[x].document);if(N!==void 0){let R=s.cells.splice(x,1,N);if(p.push({old:R[0],new:N}),F.delete(N.document),F.size===0)break}}}if($.textContent!==void 0)for(let F of $.textContent)n.changeTextDocument({textDocument:F.document,contentChanges:F.changes}),b.push(F.document.uri)}this.updateCellMap(s);let y={notebookDocument:s};a&&(y.metadata={old:o,new:s.metadata});let M=[];for(let $ of c)M.push(this.getNotebookCell($));let P=[];for(let $ of d)P.push(this.getNotebookCell($));let Z=[];for(let $ of b)Z.push(this.getNotebookCell($));(M.length>0||P.length>0||p.length>0||Z.length>0)&&(y.cells={added:M,removed:P,changed:{data:p,textContent:Z}}),(y.metadata!==void 0||y.cells!==void 0)&&this._onDidChange.fire(y)})),i.push(e.notebooks.synchronization.onDidSaveNotebookDocument(r=>{let s=this.notebookDocuments.get(r.notebookDocument.uri);s!==void 0&&this._onDidSave.fire(s)})),i.push(e.notebooks.synchronization.onDidCloseNotebookDocument(r=>{let s=this.notebookDocuments.get(r.notebookDocument.uri);if(s!==void 0){this._onDidClose.fire(s);for(let o of r.cellTextDocuments)n.closeTextDocument({textDocument:o});this.notebookDocuments.delete(r.notebookDocument.uri);for(let o of s.cells)this.notebookCellMap.delete(o.document)}})),Ft.Disposable.create(()=>{i.forEach(r=>r.dispose())})}updateCellMap(e){for(let n of e.cells)this.notebookCellMap.set(n.document,[n,e])}};Ei.NotebookDocuments=ic});var gu=X(Zs=>{"use strict";Object.defineProperty(Zs,"__esModule",{value:!0});Zs.MonikerFeature=void 0;var Ky=Ye(),Gy=t=>class extends t{get moniker(){return{on:e=>{let n=Ky.MonikerRequest.type;return this.connection.onRequest(n,(i,r)=>e(i,r,this.attachWorkDoneProgress(i),this.attachPartialResultProgress(n,i)))}}}};Zs.MonikerFeature=Gy});var dc=X(ye=>{"use strict";Object.defineProperty(ye,"__esModule",{value:!0});ye.createConnection=ye.combineFeatures=ye.combineNotebooksFeatures=ye.combineLanguagesFeatures=ye.combineWorkspaceFeatures=ye.combineWindowFeatures=ye.combineClientFeatures=ye.combineTracerFeatures=ye.combineTelemetryFeatures=ye.combineConsoleFeatures=ye._NotebooksImpl=ye._LanguagesImpl=ye.BulkUnregistration=ye.BulkRegistration=ye.ErrorMessageTracker=void 0;var G=Ye(),kt=hs(),oc=Kl(),de=iu(),Jy=ru(),Xy=su(),Yy=ou(),Qy=Ql(),Zy=au(),ew=lu(),tw=cu(),nw=du(),iw=uu(),rw=pu(),sw=mu(),ow=rc(),aw=gu();function sc(t){if(t!==null)return t}var ac=class{constructor(){this._messages=Object.create(null)}add(e){let n=this._messages[e];n||(n=0),n++,this._messages[e]=n}sendErrors(e){Object.keys(this._messages).forEach(n=>{e.window.showErrorMessage(n)})}};ye.ErrorMessageTracker=ac;var eo=class{constructor(){}rawAttach(e){this._rawConnection=e}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}fillServerCapabilities(e){}initialize(e){}error(e){this.send(G.MessageType.Error,e)}warn(e){this.send(G.MessageType.Warning,e)}info(e){this.send(G.MessageType.Info,e)}log(e){this.send(G.MessageType.Log,e)}send(e,n){this._rawConnection&&this._rawConnection.sendNotification(G.LogMessageNotification.type,{type:e,message:n}).catch(()=>{(0,G.RAL)().console.error("Sending log message failed")})}},lc=class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}showErrorMessage(e,...n){let i={type:G.MessageType.Error,message:e,actions:n};return this.connection.sendRequest(G.ShowMessageRequest.type,i).then(sc)}showWarningMessage(e,...n){let i={type:G.MessageType.Warning,message:e,actions:n};return this.connection.sendRequest(G.ShowMessageRequest.type,i).then(sc)}showInformationMessage(e,...n){let i={type:G.MessageType.Info,message:e,actions:n};return this.connection.sendRequest(G.ShowMessageRequest.type,i).then(sc)}},bu=(0,Zy.ShowDocumentFeature)((0,de.ProgressFeature)(lc)),lw;(function(t){function e(){return new to}t.create=e})(lw=ye.BulkRegistration||(ye.BulkRegistration={}));var to=class{constructor(){this._registrations=[],this._registered=new Set}add(e,n){let i=kt.string(e)?e:e.method;if(this._registered.has(i))throw new Error(`${i} is already added to this registration`);let r=oc.generateUuid();this._registrations.push({id:r,method:i,registerOptions:n||{}}),this._registered.add(i)}asRegistrationParams(){return{registrations:this._registrations}}},cw;(function(t){function e(){return new Cr(void 0,[])}t.create=e})(cw=ye.BulkUnregistration||(ye.BulkUnregistration={}));var Cr=class{constructor(e,n){this._connection=e,this._unregistrations=new Map,n.forEach(i=>{this._unregistrations.set(i.method,i)})}get isAttached(){return!!this._connection}attach(e){this._connection=e}add(e){this._unregistrations.set(e.method,e)}dispose(){let e=[];for(let i of this._unregistrations.values())e.push(i);let n={unregisterations:e};this._connection.sendRequest(G.UnregistrationRequest.type,n).catch(()=>{this._connection.console.info("Bulk unregistration failed.")})}disposeSingle(e){let n=kt.string(e)?e:e.method,i=this._unregistrations.get(n);if(!i)return!1;let r={unregisterations:[i]};return this._connection.sendRequest(G.UnregistrationRequest.type,r).then(()=>{this._unregistrations.delete(n)},s=>{this._connection.console.info(`Un-registering request handler for ${i.id} failed.`)}),!0}},no=class{attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}register(e,n,i){return e instanceof to?this.registerMany(e):e instanceof Cr?this.registerSingle1(e,n,i):this.registerSingle2(e,n)}registerSingle1(e,n,i){let r=kt.string(n)?n:n.method,s=oc.generateUuid(),o={registrations:[{id:s,method:r,registerOptions:i||{}}]};return e.isAttached||e.attach(this.connection),this.connection.sendRequest(G.RegistrationRequest.type,o).then(a=>(e.add({id:s,method:r}),e),a=>(this.connection.console.info(`Registering request handler for ${r} failed.`),Promise.reject(a)))}registerSingle2(e,n){let i=kt.string(e)?e:e.method,r=oc.generateUuid(),s={registrations:[{id:r,method:i,registerOptions:n||{}}]};return this.connection.sendRequest(G.RegistrationRequest.type,s).then(o=>G.Disposable.create(()=>{this.unregisterSingle(r,i).catch(()=>{this.connection.console.info(`Un-registering capability with id ${r} failed.`)})}),o=>(this.connection.console.info(`Registering request handler for ${i} failed.`),Promise.reject(o)))}unregisterSingle(e,n){let i={unregisterations:[{id:e,method:n}]};return this.connection.sendRequest(G.UnregistrationRequest.type,i).catch(()=>{this.connection.console.info(`Un-registering request handler for ${e} failed.`)})}registerMany(e){let n=e.asRegistrationParams();return this.connection.sendRequest(G.RegistrationRequest.type,n).then(()=>new Cr(this._connection,n.registrations.map(i=>({id:i.id,method:i.method}))),i=>(this.connection.console.info("Bulk registration failed."),Promise.reject(i)))}},cc=class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}applyEdit(e){function n(r){return r&&!!r.edit}let i=n(e)?e:{edit:e};return this.connection.sendRequest(G.ApplyWorkspaceEditRequest.type,i)}},yu=(0,ew.FileOperationsFeature)((0,Xy.WorkspaceFoldersFeature)((0,Jy.ConfigurationFeature)(cc))),io=class{constructor(){this._trace=G.Trace.Off}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}set trace(e){this._trace=e}log(e,n){this._trace!==G.Trace.Off&&this.connection.sendNotification(G.LogTraceNotification.type,{message:e,verbose:this._trace===G.Trace.Verbose?n:void 0}).catch(()=>{})}},ro=class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}logEvent(e){this.connection.sendNotification(G.TelemetryEventNotification.type,e).catch(()=>{this.connection.console.log("Sending TelemetryEventNotification failed")})}},so=class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}attachWorkDoneProgress(e){return(0,de.attachWorkDone)(this.connection,e)}attachPartialResultProgress(e,n){return(0,de.attachPartialResult)(this.connection,n)}};ye._LanguagesImpl=so;var wu=(0,aw.MonikerFeature)((0,sw.DiagnosticFeature)((0,rw.InlayHintFeature)((0,iw.InlineValueFeature)((0,nw.TypeHierarchyFeature)((0,tw.LinkedEditingRangeFeature)((0,Qy.SemanticTokensFeature)((0,Yy.CallHierarchyFeature)(so)))))))),oo=class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}attachWorkDoneProgress(e){return(0,de.attachWorkDone)(this.connection,e)}attachPartialResultProgress(e,n){return(0,de.attachPartialResult)(this.connection,n)}};ye._NotebooksImpl=oo;var vu=(0,ow.NotebookSyncFeature)(oo);function Su(t,e){return function(n){return e(t(n))}}ye.combineConsoleFeatures=Su;function _u(t,e){return function(n){return e(t(n))}}ye.combineTelemetryFeatures=_u;function xu(t,e){return function(n){return e(t(n))}}ye.combineTracerFeatures=xu;function Cu(t,e){return function(n){return e(t(n))}}ye.combineClientFeatures=Cu;function Fu(t,e){return function(n){return e(t(n))}}ye.combineWindowFeatures=Fu;function ku(t,e){return function(n){return e(t(n))}}ye.combineWorkspaceFeatures=ku;function Au(t,e){return function(n){return e(t(n))}}ye.combineLanguagesFeatures=Au;function Eu(t,e){return function(n){return e(t(n))}}ye.combineNotebooksFeatures=Eu;function dw(t,e){function n(r,s,o){return r&&s?o(r,s):r||s}return{__brand:"features",console:n(t.console,e.console,Su),tracer:n(t.tracer,e.tracer,xu),telemetry:n(t.telemetry,e.telemetry,_u),client:n(t.client,e.client,Cu),window:n(t.window,e.window,Fu),workspace:n(t.workspace,e.workspace,ku),languages:n(t.languages,e.languages,Au),notebooks:n(t.notebooks,e.notebooks,Eu)}}ye.combineFeatures=dw;function hw(t,e,n){let i=n&&n.console?new(n.console(eo)):new eo,r=t(i);i.rawAttach(r);let s=n&&n.tracer?new(n.tracer(io)):new io,o=n&&n.telemetry?new(n.telemetry(ro)):new ro,a=n&&n.client?new(n.client(no)):new no,l=n&&n.window?new(n.window(bu)):new bu,c=n&&n.workspace?new(n.workspace(yu)):new yu,d=n&&n.languages?new(n.languages(wu)):new wu,p=n&&n.notebooks?new(n.notebooks(vu)):new vu,b=[i,s,o,a,l,c,d,p];function y(F){return F instanceof Promise?F:kt.thenable(F)?new Promise((x,N)=>{F.then(R=>x(R),R=>N(R))}):Promise.resolve(F)}let M,P,Z,$={listen:()=>r.listen(),sendRequest:(F,...x)=>r.sendRequest(kt.string(F)?F:F.method,...x),onRequest:(F,x)=>r.onRequest(F,x),sendNotification:(F,x)=>{let N=kt.string(F)?F:F.method;return arguments.length===1?r.sendNotification(N):r.sendNotification(N,x)},onNotification:(F,x)=>r.onNotification(F,x),onProgress:r.onProgress,sendProgress:r.sendProgress,onInitialize:F=>(P=F,{dispose:()=>{P=void 0}}),onInitialized:F=>r.onNotification(G.InitializedNotification.type,F),onShutdown:F=>(M=F,{dispose:()=>{M=void 0}}),onExit:F=>(Z=F,{dispose:()=>{Z=void 0}}),get console(){return i},get telemetry(){return o},get tracer(){return s},get client(){return a},get window(){return l},get workspace(){return c},get languages(){return d},get notebooks(){return p},onDidChangeConfiguration:F=>r.onNotification(G.DidChangeConfigurationNotification.type,F),onDidChangeWatchedFiles:F=>r.onNotification(G.DidChangeWatchedFilesNotification.type,F),__textDocumentSync:void 0,onDidOpenTextDocument:F=>r.onNotification(G.DidOpenTextDocumentNotification.type,F),onDidChangeTextDocument:F=>r.onNotification(G.DidChangeTextDocumentNotification.type,F),onDidCloseTextDocument:F=>r.onNotification(G.DidCloseTextDocumentNotification.type,F),onWillSaveTextDocument:F=>r.onNotification(G.WillSaveTextDocumentNotification.type,F),onWillSaveTextDocumentWaitUntil:F=>r.onRequest(G.WillSaveTextDocumentWaitUntilRequest.type,F),onDidSaveTextDocument:F=>r.onNotification(G.DidSaveTextDocumentNotification.type,F),sendDiagnostics:F=>r.sendNotification(G.PublishDiagnosticsNotification.type,F),onHover:F=>r.onRequest(G.HoverRequest.type,(x,N)=>F(x,N,(0,de.attachWorkDone)(r,x),void 0)),onCompletion:F=>r.onRequest(G.CompletionRequest.type,(x,N)=>F(x,N,(0,de.attachWorkDone)(r,x),(0,de.attachPartialResult)(r,x))),onCompletionResolve:F=>r.onRequest(G.CompletionResolveRequest.type,F),onSignatureHelp:F=>r.onRequest(G.SignatureHelpRequest.type,(x,N)=>F(x,N,(0,de.attachWorkDone)(r,x),void 0)),onDeclaration:F=>r.onRequest(G.DeclarationRequest.type,(x,N)=>F(x,N,(0,de.attachWorkDone)(r,x),(0,de.attachPartialResult)(r,x))),onDefinition:F=>r.onRequest(G.DefinitionRequest.type,(x,N)=>F(x,N,(0,de.attachWorkDone)(r,x),(0,de.attachPartialResult)(r,x))),onTypeDefinition:F=>r.onRequest(G.TypeDefinitionRequest.type,(x,N)=>F(x,N,(0,de.attachWorkDone)(r,x),(0,de.attachPartialResult)(r,x))),onImplementation:F=>r.onRequest(G.ImplementationRequest.type,(x,N)=>F(x,N,(0,de.attachWorkDone)(r,x),(0,de.attachPartialResult)(r,x))),onReferences:F=>r.onRequest(G.ReferencesRequest.type,(x,N)=>F(x,N,(0,de.attachWorkDone)(r,x),(0,de.attachPartialResult)(r,x))),onDocumentHighlight:F=>r.onRequest(G.DocumentHighlightRequest.type,(x,N)=>F(x,N,(0,de.attachWorkDone)(r,x),(0,de.attachPartialResult)(r,x))),onDocumentSymbol:F=>r.onRequest(G.DocumentSymbolRequest.type,(x,N)=>F(x,N,(0,de.attachWorkDone)(r,x),(0,de.attachPartialResult)(r,x))),onWorkspaceSymbol:F=>r.onRequest(G.WorkspaceSymbolRequest.type,(x,N)=>F(x,N,(0,de.attachWorkDone)(r,x),(0,de.attachPartialResult)(r,x))),onWorkspaceSymbolResolve:F=>r.onRequest(G.WorkspaceSymbolResolveRequest.type,F),onCodeAction:F=>r.onRequest(G.CodeActionRequest.type,(x,N)=>F(x,N,(0,de.attachWorkDone)(r,x),(0,de.attachPartialResult)(r,x))),onCodeActionResolve:F=>r.onRequest(G.CodeActionResolveRequest.type,(x,N)=>F(x,N)),onCodeLens:F=>r.onRequest(G.CodeLensRequest.type,(x,N)=>F(x,N,(0,de.attachWorkDone)(r,x),(0,de.attachPartialResult)(r,x))),onCodeLensResolve:F=>r.onRequest(G.CodeLensResolveRequest.type,(x,N)=>F(x,N)),onDocumentFormatting:F=>r.onRequest(G.DocumentFormattingRequest.type,(x,N)=>F(x,N,(0,de.attachWorkDone)(r,x),void 0)),onDocumentRangeFormatting:F=>r.onRequest(G.DocumentRangeFormattingRequest.type,(x,N)=>F(x,N,(0,de.attachWorkDone)(r,x),void 0)),onDocumentOnTypeFormatting:F=>r.onRequest(G.DocumentOnTypeFormattingRequest.type,(x,N)=>F(x,N)),onRenameRequest:F=>r.onRequest(G.RenameRequest.type,(x,N)=>F(x,N,(0,de.attachWorkDone)(r,x),void 0)),onPrepareRename:F=>r.onRequest(G.PrepareRenameRequest.type,(x,N)=>F(x,N)),onDocumentLinks:F=>r.onRequest(G.DocumentLinkRequest.type,(x,N)=>F(x,N,(0,de.attachWorkDone)(r,x),(0,de.attachPartialResult)(r,x))),onDocumentLinkResolve:F=>r.onRequest(G.DocumentLinkResolveRequest.type,(x,N)=>F(x,N)),onDocumentColor:F=>r.onRequest(G.DocumentColorRequest.type,(x,N)=>F(x,N,(0,de.attachWorkDone)(r,x),(0,de.attachPartialResult)(r,x))),onColorPresentation:F=>r.onRequest(G.ColorPresentationRequest.type,(x,N)=>F(x,N,(0,de.attachWorkDone)(r,x),(0,de.attachPartialResult)(r,x))),onFoldingRanges:F=>r.onRequest(G.FoldingRangeRequest.type,(x,N)=>F(x,N,(0,de.attachWorkDone)(r,x),(0,de.attachPartialResult)(r,x))),onSelectionRanges:F=>r.onRequest(G.SelectionRangeRequest.type,(x,N)=>F(x,N,(0,de.attachWorkDone)(r,x),(0,de.attachPartialResult)(r,x))),onExecuteCommand:F=>r.onRequest(G.ExecuteCommandRequest.type,(x,N)=>F(x,N,(0,de.attachWorkDone)(r,x),void 0)),dispose:()=>r.dispose()};for(let F of b)F.attach($);return r.onRequest(G.InitializeRequest.type,F=>{e.initialize(F),kt.string(F.trace)&&(s.trace=G.Trace.fromString(F.trace));for(let x of b)x.initialize(F.capabilities);if(P){let x=P(F,new G.CancellationTokenSource().token,(0,de.attachWorkDone)(r,F),void 0);return y(x).then(N=>{if(N instanceof G.ResponseError)return N;let R=N;R||(R={capabilities:{}});let L=R.capabilities;L||(L={},R.capabilities=L),L.textDocumentSync===void 0||L.textDocumentSync===null?L.textDocumentSync=kt.number($.__textDocumentSync)?$.__textDocumentSync:G.TextDocumentSyncKind.None:!kt.number(L.textDocumentSync)&&!kt.number(L.textDocumentSync.change)&&(L.textDocumentSync.change=kt.number($.__textDocumentSync)?$.__textDocumentSync:G.TextDocumentSyncKind.None);for(let V of b)V.fillServerCapabilities(L);return R})}else{let x={capabilities:{textDocumentSync:G.TextDocumentSyncKind.None}};for(let N of b)N.fillServerCapabilities(x.capabilities);return x}}),r.onRequest(G.ShutdownRequest.type,()=>{if(e.shutdownReceived=!0,M)return M(new G.CancellationTokenSource().token)}),r.onNotification(G.ExitNotification.type,()=>{try{Z&&Z()}finally{e.shutdownReceived?e.exit(0):e.exit(1)}}),r.onNotification(G.SetTraceNotification.type,F=>{s.trace=G.Trace.fromString(F.value)}),$}ye.createConnection=hw});var Ru=X(ut=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});ut.resolveModulePath=ut.FileSystem=ut.resolveGlobalYarnPath=ut.resolveGlobalNodePath=ut.resolve=ut.uriToFilePath=void 0;var uw=require("url"),$t=require("path"),hc=require("fs"),mc=require("child_process");function pw(t){let e=uw.parse(t);if(e.protocol!=="file:"||!e.path)return;let n=e.path.split("/");for(var i=0,r=n.length;i<r;i++)n[i]=decodeURIComponent(n[i]);if(process.platform==="win32"&&n.length>1){let s=n[0],o=n[1];s.length===0&&o.length>1&&o[1]===":"&&n.shift()}return $t.normalize(n.join("/"))}ut.uriToFilePath=pw;function uc(){return process.platform==="win32"}function ao(t,e,n,i){let r="NODE_PATH",s=["var p = process;","p.on('message',function(m){","if(m.c==='e'){","p.exit(0);","}","else if(m.c==='rs'){","try{","var r=require.resolve(m.a);","p.send({c:'r',s:true,r:r});","}","catch(err){","p.send({c:'r',s:false});","}","}","});"].join("");return new Promise((o,a)=>{let l=process.env,c=Object.create(null);Object.keys(l).forEach(d=>c[d]=l[d]),e&&hc.existsSync(e)&&(c[r]?c[r]=e+$t.delimiter+c[r]:c[r]=e,i&&i(`NODE_PATH value is: ${c[r]}`)),c.ELECTRON_RUN_AS_NODE="1";try{let d=(0,mc.fork)("",[],{cwd:n,env:c,execArgv:["-e",s]});if(d.pid===void 0){a(new Error(`Starting process to resolve node module ${t} failed`));return}d.on("error",b=>{a(b)}),d.on("message",b=>{b.c==="r"&&(d.send({c:"e"}),b.s?o(b.r):a(new Error(`Failed to resolve module: ${t}`)))});let p={c:"rs",a:t};d.send(p)}catch(d){a(d)}})}ut.resolve=ao;function pc(t){let e="npm",n=Object.create(null);Object.keys(process.env).forEach(s=>n[s]=process.env[s]),n.NO_UPDATE_NOTIFIER="true";let i={encoding:"utf8",env:n};uc()&&(e="npm.cmd",i.shell=!0);let r=()=>{};try{process.on("SIGPIPE",r);let s=(0,mc.spawnSync)(e,["config","get","prefix"],i).stdout;if(!s){t&&t("'npm config get prefix' didn't return a value.");return}let o=s.trim();return t&&t(`'npm config get prefix' value is: ${o}`),o.length>0?uc()?$t.join(o,"node_modules"):$t.join(o,"lib","node_modules"):void 0}catch{return}finally{process.removeListener("SIGPIPE",r)}}ut.resolveGlobalNodePath=pc;function mw(t){let e="yarn",n={encoding:"utf8"};uc()&&(e="yarn.cmd",n.shell=!0);let i=()=>{};try{process.on("SIGPIPE",i);let r=(0,mc.spawnSync)(e,["global","dir","--json"],n),s=r.stdout;if(!s){t&&(t("'yarn global dir' didn't return a value."),r.stderr&&t(r.stderr));return}let o=s.trim().split(/\r?\n/);for(let a of o)try{let l=JSON.parse(a);if(l.type==="log")return $t.join(l.data,"node_modules")}catch{}return}catch{return}finally{process.removeListener("SIGPIPE",i)}}ut.resolveGlobalYarnPath=mw;var Du;(function(t){let e;function n(){return e!==void 0||(process.platform==="win32"?e=!1:e=!hc.existsSync(__filename.toUpperCase())||!hc.existsSync(__filename.toLowerCase())),e}t.isCaseSensitive=n;function i(r,s){return n()?$t.normalize(s).indexOf($t.normalize(r))===0:$t.normalize(s).toLowerCase().indexOf($t.normalize(r).toLowerCase())===0}t.isParent=i})(Du=ut.FileSystem||(ut.FileSystem={}));function fw(t,e,n,i){return n?($t.isAbsolute(n)||(n=$t.join(t,n)),ao(e,n,n,i).then(r=>Du.isParent(n,r)?r:Promise.reject(new Error(`Failed to load ${e} from node path location.`))).then(void 0,r=>ao(e,pc(i),t,i))):ao(e,pc(i),t,i)}ut.resolveModulePath=fw});var fc=X((N0,Mu)=>{"use strict";Mu.exports=Ye()});var Iu=X(nt=>{"use strict";var gw=nt&&nt.__createBinding||(Object.create?function(t,e,n,i){i===void 0&&(i=n);var r=Object.getOwnPropertyDescriptor(e,n);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,r)}:function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]}),Tu=nt&&nt.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&gw(e,t,n)};Object.defineProperty(nt,"__esModule",{value:!0});nt.ProposedFeatures=nt.NotebookDocuments=nt.TextDocuments=nt.SemanticTokensBuilder=void 0;var bw=Ql();Object.defineProperty(nt,"SemanticTokensBuilder",{enumerable:!0,get:function(){return bw.SemanticTokensBuilder}});Tu(Ye(),nt);var yw=nc();Object.defineProperty(nt,"TextDocuments",{enumerable:!0,get:function(){return yw.TextDocuments}});var ww=rc();Object.defineProperty(nt,"NotebookDocuments",{enumerable:!0,get:function(){return ww.NotebookDocuments}});Tu(dc(),nt);var vw;(function(t){t.all={__brand:"features"}})(vw=nt.ProposedFeatures||(nt.ProposedFeatures={}))});var Ou=X(wt=>{"use strict";var Sw=wt&&wt.__createBinding||(Object.create?function(t,e,n,i){i===void 0&&(i=n);var r=Object.getOwnPropertyDescriptor(e,n);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,r)}:function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]}),zu=wt&&wt.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&Sw(e,t,n)};Object.defineProperty(wt,"__esModule",{value:!0});wt.createConnection=wt.Files=void 0;var gc=hs(),_w=dc(),Fr=Ru(),ei=fc();zu(fc(),wt);zu(Iu(),wt);var xw;(function(t){t.uriToFilePath=Fr.uriToFilePath,t.resolveGlobalNodePath=Fr.resolveGlobalNodePath,t.resolveGlobalYarnPath=Fr.resolveGlobalYarnPath,t.resolve=Fr.resolve,t.resolveModulePath=Fr.resolveModulePath})(xw=wt.Files||(wt.Files={}));var Pu;function lo(){if(Pu!==void 0)try{Pu.end()}catch{}}var Di=!1,Nu;function Cw(){let t="--clientProcessId";function e(n){try{let i=parseInt(n);isNaN(i)||(Nu=setInterval(()=>{try{process.kill(i,0)}catch{lo(),process.exit(Di?0:1)}},3e3))}catch{}}for(let n=2;n<process.argv.length;n++){let i=process.argv[n];if(i===t&&n+1<process.argv.length){e(process.argv[n+1]);return}else{let r=i.split("=");r[0]===t&&e(r[1])}}}Cw();var Fw={initialize:t=>{let e=t.processId;gc.number(e)&&Nu===void 0&&setInterval(()=>{try{process.kill(e,0)}catch{process.exit(Di?0:1)}},3e3)},get shutdownReceived(){return Di},set shutdownReceived(t){Di=t},exit:t=>{lo(),process.exit(t)}};function kw(t,e,n,i){let r,s,o,a;return t!==void 0&&t.__brand==="features"&&(r=t,t=e,e=n,n=i),ei.ConnectionStrategy.is(t)||ei.ConnectionOptions.is(t)?a=t:(s=t,o=e,a=n),Aw(s,o,a,r)}wt.createConnection=kw;function Aw(t,e,n,i){if(!t&&!e&&process.argv.length>2){let a,l,c=process.argv.slice(2);for(let d=0;d<c.length;d++){let p=c[d];if(p==="--node-ipc"){t=new ei.IPCMessageReader(process),e=new ei.IPCMessageWriter(process);break}else if(p==="--stdio"){t=process.stdin,e=process.stdout;break}else if(p==="--socket"){a=parseInt(c[d+1]);break}else if(p==="--pipe"){l=c[d+1];break}else{var r=p.split("=");if(r[0]==="--socket"){a=parseInt(r[1]);break}else if(r[0]==="--pipe"){l=r[1];break}}}if(a){let d=(0,ei.createServerSocketTransport)(a);t=d[0],e=d[1]}else if(l){let d=(0,ei.createServerPipeTransport)(l);t=d[0],e=d[1]}}var s="Use arguments of createConnection or set command line parameters: '--node-ipc', '--stdio' or '--socket={number}'";if(!t)throw new Error("Connection input stream is not set. "+s);if(!e)throw new Error("Connection output stream is not set. "+s);if(gc.func(t.read)&&gc.func(t.on)){let a=t;a.on("end",()=>{lo(),process.exit(Di?0:1)}),a.on("close",()=>{lo(),process.exit(Di?0:1)})}let o=a=>(0,ei.createProtocolConnection)(t,e,a,n);return(0,_w.createConnection)(o,Fw,i)}});var bc=X((L0,Wu)=>{"use strict";Wu.exports=Ou()});var Rt=X(($0,op)=>{"use strict";var Fc=Object.defineProperty,Xw=Object.getOwnPropertyDescriptor,Yw=Object.getOwnPropertyNames,Qw=Object.prototype.hasOwnProperty,Zw=(t,e)=>{for(var n in e)Fc(t,n,{get:e[n],enumerable:!0})},ev=(t,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of Yw(e))!Qw.call(t,r)&&r!==n&&Fc(t,r,{get:()=>e[r],enumerable:!(i=Xw(e,r))||i.enumerable});return t},tv=t=>ev(Fc({},"__esModule",{value:!0}),t),rp={};Zw(rp,{config:()=>ov,t:()=>sp});op.exports=tv(rp);var nv=require("fs"),iv=require("fs/promises");async function rv(t){if(t.protocol==="file:")return await(0,iv.readFile)(t,"utf8");if(t.protocol==="http:"||t.protocol==="https:"){let e=await fetch(t.toString(),{headers:{"Accept-Encoding":"gzip, deflate",Accept:"application/json"},redirect:"follow"});if(!e.ok){let i=`Unexpected ${e.status} response while trying to read ${t}`;try{i+=`: ${await e.text()}`}catch{}throw new Error(i)}return await e.text()}throw new Error("Unsupported protocol")}function sv(t){return(0,nv.readFileSync)(t,"utf8")}var Ir;function ov(t){if("contents"in t){typeof t.contents=="string"?Ir=JSON.parse(t.contents):Ir=t.contents;return}if("fsPath"in t){let e=sv(t.fsPath),n=JSON.parse(e);Ir=ip(n)?n.contents.bundle:n;return}if(t.uri){let e=t.uri;return typeof t.uri=="string"&&(e=new URL(t.uri)),new Promise((n,i)=>{rv(e).then(r=>{try{let s=JSON.parse(r);Ir=ip(s)?s.contents.bundle:s,n()}catch(s){i(s)}}).catch(r=>{i(r)})})}}function sp(...t){let e=t[0],n,i,r;if(typeof e=="string")n=e,i=e,t.splice(0,1),r=!t||typeof t[0]!="object"?t:t[0];else if(e instanceof Array){let o=t.slice(1);if(e.length!==o.length+1)throw new Error("expected a string as the first argument to l10n.t");let a=e[0];for(let l=1;l<e.length;l++)a+=`{${l-1}}`+e[l];return sp(a,...o)}else i=e.message,n=i,e.comment&&e.comment.length>0&&(n+=`/${Array.isArray(e.comment)?e.comment.join(""):e.comment}`),r=e.args??{};let s=Ir?.[n];return s?typeof s=="string"?zo(s,r):s.comment?zo(s.message,r):zo(i,r):zo(i,r)}var av=/{([^}]+)}/g;function zo(t,e){return Object.keys(e).length===0?t:t.replace(av,(n,i)=>e[i]??n)}function ip(t){return typeof t?.contents?.bundle=="object"&&typeof t?.version=="string"}});var jm=X((ss,Ad)=>{(function(t,e){if(typeof ss=="object"&&typeof Ad=="object")Ad.exports=e();else if(typeof define=="function"&&define.amd)define([],e);else{var n=e();for(var i in n)(typeof ss=="object"?ss:t)[i]=n[i]}})(ss,function(){return(()=>{"use strict";var t={470:n=>{function i(o){if(typeof o!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(o))}function r(o,a){for(var l,c="",d=0,p=-1,b=0,y=0;y<=o.length;++y){if(y<o.length)l=o.charCodeAt(y);else{if(l===47)break;l=47}if(l===47){if(!(p===y-1||b===1))if(p!==y-1&&b===2){if(c.length<2||d!==2||c.charCodeAt(c.length-1)!==46||c.charCodeAt(c.length-2)!==46){if(c.length>2){var M=c.lastIndexOf("/");if(M!==c.length-1){M===-1?(c="",d=0):d=(c=c.slice(0,M)).length-1-c.lastIndexOf("/"),p=y,b=0;continue}}else if(c.length===2||c.length===1){c="",d=0,p=y,b=0;continue}}a&&(c.length>0?c+="/..":c="..",d=2)}else c.length>0?c+="/"+o.slice(p+1,y):c=o.slice(p+1,y),d=y-p-1;p=y,b=0}else l===46&&b!==-1?++b:b=-1}return c}var s={resolve:function(){for(var o,a="",l=!1,c=arguments.length-1;c>=-1&&!l;c--){var d;c>=0?d=arguments[c]:(o===void 0&&(o=process.cwd()),d=o),i(d),d.length!==0&&(a=d+"/"+a,l=d.charCodeAt(0)===47)}return a=r(a,!l),l?a.length>0?"/"+a:"/":a.length>0?a:"."},normalize:function(o){if(i(o),o.length===0)return".";var a=o.charCodeAt(0)===47,l=o.charCodeAt(o.length-1)===47;return(o=r(o,!a)).length!==0||a||(o="."),o.length>0&&l&&(o+="/"),a?"/"+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,a=0;a<arguments.length;++a){var l=arguments[a];i(l),l.length>0&&(o===void 0?o=l:o+="/"+l)}return o===void 0?".":s.normalize(o)},relative:function(o,a){if(i(o),i(a),o===a||(o=s.resolve(o))===(a=s.resolve(a)))return"";for(var l=1;l<o.length&&o.charCodeAt(l)===47;++l);for(var c=o.length,d=c-l,p=1;p<a.length&&a.charCodeAt(p)===47;++p);for(var b=a.length-p,y=d<b?d:b,M=-1,P=0;P<=y;++P){if(P===y){if(b>y){if(a.charCodeAt(p+P)===47)return a.slice(p+P+1);if(P===0)return a.slice(p+P)}else d>y&&(o.charCodeAt(l+P)===47?M=P:P===0&&(M=0));break}var Z=o.charCodeAt(l+P);if(Z!==a.charCodeAt(p+P))break;Z===47&&(M=P)}var $="";for(P=l+M+1;P<=c;++P)P!==c&&o.charCodeAt(P)!==47||($.length===0?$+="..":$+="/..");return $.length>0?$+a.slice(p+M):(p+=M,a.charCodeAt(p)===47&&++p,a.slice(p))},_makeLong:function(o){return o},dirname:function(o){if(i(o),o.length===0)return".";for(var a=o.charCodeAt(0),l=a===47,c=-1,d=!0,p=o.length-1;p>=1;--p)if((a=o.charCodeAt(p))===47){if(!d){c=p;break}}else d=!1;return c===-1?l?"/":".":l&&c===1?"//":o.slice(0,c)},basename:function(o,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');i(o);var l,c=0,d=-1,p=!0;if(a!==void 0&&a.length>0&&a.length<=o.length){if(a.length===o.length&&a===o)return"";var b=a.length-1,y=-1;for(l=o.length-1;l>=0;--l){var M=o.charCodeAt(l);if(M===47){if(!p){c=l+1;break}}else y===-1&&(p=!1,y=l+1),b>=0&&(M===a.charCodeAt(b)?--b==-1&&(d=l):(b=-1,d=y))}return c===d?d=y:d===-1&&(d=o.length),o.slice(c,d)}for(l=o.length-1;l>=0;--l)if(o.charCodeAt(l)===47){if(!p){c=l+1;break}}else d===-1&&(p=!1,d=l+1);return d===-1?"":o.slice(c,d)},extname:function(o){i(o);for(var a=-1,l=0,c=-1,d=!0,p=0,b=o.length-1;b>=0;--b){var y=o.charCodeAt(b);if(y!==47)c===-1&&(d=!1,c=b+1),y===46?a===-1?a=b:p!==1&&(p=1):a!==-1&&(p=-1);else if(!d){l=b+1;break}}return a===-1||c===-1||p===0||p===1&&a===c-1&&a===l+1?"":o.slice(a,c)},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(a,l){var c=l.dir||l.root,d=l.base||(l.name||"")+(l.ext||"");return c?c===l.root?c+d:c+"/"+d:d}(0,o)},parse:function(o){i(o);var a={root:"",dir:"",base:"",ext:"",name:""};if(o.length===0)return a;var l,c=o.charCodeAt(0),d=c===47;d?(a.root="/",l=1):l=0;for(var p=-1,b=0,y=-1,M=!0,P=o.length-1,Z=0;P>=l;--P)if((c=o.charCodeAt(P))!==47)y===-1&&(M=!1,y=P+1),c===46?p===-1?p=P:Z!==1&&(Z=1):p!==-1&&(Z=-1);else if(!M){b=P+1;break}return p===-1||y===-1||Z===0||Z===1&&p===y-1&&p===b+1?y!==-1&&(a.base=a.name=b===0&&d?o.slice(1,y):o.slice(b,y)):(b===0&&d?(a.name=o.slice(1,p),a.base=o.slice(1,y)):(a.name=o.slice(b,p),a.base=o.slice(b,y)),a.ext=o.slice(p,y)),b>0?a.dir=o.slice(0,b-1):d&&(a.dir="/"),a},sep:"/",delimiter:":",win32:null,posix:null};s.posix=s,n.exports=s},465:(n,i,r)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.Utils=i.URI=void 0;var s=r(796);Object.defineProperty(i,"URI",{enumerable:!0,get:function(){return s.URI}});var o=r(679);Object.defineProperty(i,"Utils",{enumerable:!0,get:function(){return o.Utils}})},674:(n,i)=>{if(Object.defineProperty(i,"__esModule",{value:!0}),i.isWindows=void 0,typeof process=="object")i.isWindows=process.platform==="win32";else if(typeof navigator=="object"){var r=navigator.userAgent;i.isWindows=r.indexOf("Windows")>=0}},796:function(n,i,r){var s,o,a=this&&this.__extends||(s=function(W,k){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,I){S.__proto__=I}||function(S,I){for(var j in I)Object.prototype.hasOwnProperty.call(I,j)&&(S[j]=I[j])})(W,k)},function(W,k){function S(){this.constructor=W}s(W,k),W.prototype=k===null?Object.create(k):(S.prototype=k.prototype,new S)});Object.defineProperty(i,"__esModule",{value:!0}),i.uriToFsPath=i.URI=void 0;var l=r(674),c=/^\w[\w\d+.-]*$/,d=/^\//,p=/^\/\//,b="",y="/",M=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,P=function(){function W(k,S,I,j,J,K){K===void 0&&(K=!1),typeof k=="object"?(this.scheme=k.scheme||b,this.authority=k.authority||b,this.path=k.path||b,this.query=k.query||b,this.fragment=k.fragment||b):(this.scheme=function(Q,ve){return Q||ve?Q:"file"}(k,K),this.authority=S||b,this.path=function(Q,ve){switch(Q){case"https":case"http":case"file":ve?ve[0]!==y&&(ve=y+ve):ve=y}return ve}(this.scheme,I||b),this.query=j||b,this.fragment=J||b,function(Q,ve){if(!Q.scheme&&ve)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+Q.authority+'", path: "'+Q.path+'", query: "'+Q.query+'", fragment: "'+Q.fragment+'"}');if(Q.scheme&&!c.test(Q.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(Q.path){if(Q.authority){if(!d.test(Q.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(p.test(Q.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}(this,K))}return W.isUri=function(k){return k instanceof W||!!k&&typeof k.authority=="string"&&typeof k.fragment=="string"&&typeof k.path=="string"&&typeof k.query=="string"&&typeof k.scheme=="string"&&typeof k.fsPath=="function"&&typeof k.with=="function"&&typeof k.toString=="function"},Object.defineProperty(W.prototype,"fsPath",{get:function(){return R(this,!1)},enumerable:!1,configurable:!0}),W.prototype.with=function(k){if(!k)return this;var S=k.scheme,I=k.authority,j=k.path,J=k.query,K=k.fragment;return S===void 0?S=this.scheme:S===null&&(S=b),I===void 0?I=this.authority:I===null&&(I=b),j===void 0?j=this.path:j===null&&(j=b),J===void 0?J=this.query:J===null&&(J=b),K===void 0?K=this.fragment:K===null&&(K=b),S===this.scheme&&I===this.authority&&j===this.path&&J===this.query&&K===this.fragment?this:new $(S,I,j,J,K)},W.parse=function(k,S){S===void 0&&(S=!1);var I=M.exec(k);return I?new $(I[2]||b,le(I[4]||b),le(I[5]||b),le(I[7]||b),le(I[9]||b),S):new $(b,b,b,b,b)},W.file=function(k){var S=b;if(l.isWindows&&(k=k.replace(/\\/g,y)),k[0]===y&&k[1]===y){var I=k.indexOf(y,2);I===-1?(S=k.substring(2),k=y):(S=k.substring(2,I),k=k.substring(I)||y)}return new $("file",S,k,b,b)},W.from=function(k){return new $(k.scheme,k.authority,k.path,k.query,k.fragment)},W.prototype.toString=function(k){return k===void 0&&(k=!1),L(this,k)},W.prototype.toJSON=function(){return this},W.revive=function(k){if(k){if(k instanceof W)return k;var S=new $(k);return S._formatted=k.external,S._fsPath=k._sep===Z?k.fsPath:null,S}return k},W}();i.URI=P;var Z=l.isWindows?1:void 0,$=function(W){function k(){var S=W!==null&&W.apply(this,arguments)||this;return S._formatted=null,S._fsPath=null,S}return a(k,W),Object.defineProperty(k.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=R(this,!1)),this._fsPath},enumerable:!1,configurable:!0}),k.prototype.toString=function(S){return S===void 0&&(S=!1),S?L(this,!0):(this._formatted||(this._formatted=L(this,!1)),this._formatted)},k.prototype.toJSON=function(){var S={$mid:1};return this._fsPath&&(S.fsPath=this._fsPath,S._sep=Z),this._formatted&&(S.external=this._formatted),this.path&&(S.path=this.path),this.scheme&&(S.scheme=this.scheme),this.authority&&(S.authority=this.authority),this.query&&(S.query=this.query),this.fragment&&(S.fragment=this.fragment),S},k}(P),F=((o={})[58]="%3A",o[47]="%2F",o[63]="%3F",o[35]="%23",o[91]="%5B",o[93]="%5D",o[64]="%40",o[33]="%21",o[36]="%24",o[38]="%26",o[39]="%27",o[40]="%28",o[41]="%29",o[42]="%2A",o[43]="%2B",o[44]="%2C",o[59]="%3B",o[61]="%3D",o[32]="%20",o);function x(W,k){for(var S=void 0,I=-1,j=0;j<W.length;j++){var J=W.charCodeAt(j);if(J>=97&&J<=122||J>=65&&J<=90||J>=48&&J<=57||J===45||J===46||J===95||J===126||k&&J===47)I!==-1&&(S+=encodeURIComponent(W.substring(I,j)),I=-1),S!==void 0&&(S+=W.charAt(j));else{S===void 0&&(S=W.substr(0,j));var K=F[J];K!==void 0?(I!==-1&&(S+=encodeURIComponent(W.substring(I,j)),I=-1),S+=K):I===-1&&(I=j)}}return I!==-1&&(S+=encodeURIComponent(W.substring(I))),S!==void 0?S:W}function N(W){for(var k=void 0,S=0;S<W.length;S++){var I=W.charCodeAt(S);I===35||I===63?(k===void 0&&(k=W.substr(0,S)),k+=F[I]):k!==void 0&&(k+=W[S])}return k!==void 0?k:W}function R(W,k){var S;return S=W.authority&&W.path.length>1&&W.scheme==="file"?"//"+W.authority+W.path:W.path.charCodeAt(0)===47&&(W.path.charCodeAt(1)>=65&&W.path.charCodeAt(1)<=90||W.path.charCodeAt(1)>=97&&W.path.charCodeAt(1)<=122)&&W.path.charCodeAt(2)===58?k?W.path.substr(1):W.path[1].toLowerCase()+W.path.substr(2):W.path,l.isWindows&&(S=S.replace(/\//g,"\\")),S}function L(W,k){var S=k?N:x,I="",j=W.scheme,J=W.authority,K=W.path,Q=W.query,ve=W.fragment;if(j&&(I+=j,I+=":"),(J||j==="file")&&(I+=y,I+=y),J){var be=J.indexOf("@");if(be!==-1){var ue=J.substr(0,be);J=J.substr(be+1),(be=ue.indexOf(":"))===-1?I+=S(ue,!1):(I+=S(ue.substr(0,be),!1),I+=":",I+=S(ue.substr(be+1),!1)),I+="@"}(be=(J=J.toLowerCase()).indexOf(":"))===-1?I+=S(J,!1):(I+=S(J.substr(0,be),!1),I+=J.substr(be))}if(K){if(K.length>=3&&K.charCodeAt(0)===47&&K.charCodeAt(2)===58)($e=K.charCodeAt(1))>=65&&$e<=90&&(K="/"+String.fromCharCode($e+32)+":"+K.substr(3));else if(K.length>=2&&K.charCodeAt(1)===58){var $e;($e=K.charCodeAt(0))>=65&&$e<=90&&(K=String.fromCharCode($e+32)+":"+K.substr(2))}I+=S(K,!0)}return Q&&(I+="?",I+=S(Q,!1)),ve&&(I+="#",I+=k?ve:x(ve,!1)),I}function V(W){try{return decodeURIComponent(W)}catch{return W.length>3?W.substr(0,3)+V(W.substr(3)):W}}i.uriToFsPath=R;var Y=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function le(W){return W.match(Y)?W.replace(Y,function(k){return V(k)}):W}},679:function(n,i,r){var s=this&&this.__spreadArrays||function(){for(var c=0,d=0,p=arguments.length;d<p;d++)c+=arguments[d].length;var b=Array(c),y=0;for(d=0;d<p;d++)for(var M=arguments[d],P=0,Z=M.length;P<Z;P++,y++)b[y]=M[P];return b};Object.defineProperty(i,"__esModule",{value:!0}),i.Utils=void 0;var o,a=r(470),l=a.posix||a;(o=i.Utils||(i.Utils={})).joinPath=function(c){for(var d=[],p=1;p<arguments.length;p++)d[p-1]=arguments[p];return c.with({path:l.join.apply(l,s([c.path],d))})},o.resolvePath=function(c){for(var d=[],p=1;p<arguments.length;p++)d[p-1]=arguments[p];var b=c.path||"/";return c.with({path:l.resolve.apply(l,s([b],d))})},o.dirname=function(c){var d=l.dirname(c.path);return d.length===1&&d.charCodeAt(0)===46?c:c.with({path:d})},o.basename=function(c){return l.basename(c.path)},o.extname=function(c){return l.extname(c.path)}}},e={};return function n(i){if(e[i])return e[i].exports;var r=e[i]={exports:{}};return t[i].call(r.exports,r,r.exports,n),r.exports}(465)})()})});var Vm=X((yx,Um)=>{Um.exports=function(t,e,n,i,r){for(e=e.split?e.split("."):e,i=0;i<e.length;i++)t=t?t[e[i]]:r;return t===r?n:t}});var Zi=lt(bc());var Lu=require("node:util");function kr(t){return t.map(e=>(0,Lu.format)(e)).join(" ")}function qu(t,e){t.debug=(...n)=>e.console.info(kr(n)),t.error=(...n)=>e.console.error(kr(n)),t.warn=(...n)=>e.console.warn(kr(n)),t.info=(...n)=>e.console.info(kr(n)),t.log=(...n)=>e.console.log(kr(n))}var g;(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.ContainerQueryLength=42]="ContainerQueryLength",t[t.CustomToken=43]="CustomToken"})(g||(g={}));var uo=class{constructor(e){this.source=e,this.len=e.length,this.position=0}substring(e,n=this.position){return this.source.substring(e,n)}eos(){return this.len<=this.position}pos(){return this.position}goBackTo(e){this.position=e}goBack(e){this.position-=e}advance(e){this.position+=e}nextChar(){return this.source.charCodeAt(this.position++)||0}peekChar(e=0){return this.source.charCodeAt(this.position+e)||0}lookbackChar(e=0){return this.source.charCodeAt(this.position-e)||0}advanceIfChar(e){return e===this.source.charCodeAt(this.position)?(this.position++,!0):!1}advanceIfChars(e){if(this.position+e.length>this.source.length)return!1;let n=0;for(;n<e.length;n++)if(this.source.charCodeAt(this.position+n)!==e[n])return!1;return this.advance(n),!0}advanceWhileChar(e){let n=this.position;for(;this.position<this.len&&e(this.source.charCodeAt(this.position));)this.position++;return this.position-n}},co=97,ju=102,$u=122;var ho=65,Uu=70,Vu=90,Ar=48,Er=57,Ew=126,Dw=94,Dr=61,Rw=124,Mn=45,Bu=95,Mw=37,yc=42,Qu=40,Zu=41,Tw=60,Iw=62,Pw=64,zw=35,Nw=36,wc=92,Hu=47,Ri=10,Mi=13,Rr=12,Ku=34,Gu=39,vc=32,Sc=9,Ow=59,Ww=58,Lw=123,qw=125,jw=91,$w=93,Uw=44,Ju=46,Xu=33,Vw=63,Yu=43,Yt={};Yt[Ow]=g.SemiColon;Yt[Ww]=g.Colon;Yt[Lw]=g.CurlyL;Yt[qw]=g.CurlyR;Yt[$w]=g.BracketR;Yt[jw]=g.BracketL;Yt[Qu]=g.ParenthesisL;Yt[Zu]=g.ParenthesisR;Yt[Uw]=g.Comma;var Me={};Me.em=g.EMS;Me.ex=g.EXS;Me.px=g.Length;Me.cm=g.Length;Me.mm=g.Length;Me.in=g.Length;Me.pt=g.Length;Me.pc=g.Length;Me.deg=g.Angle;Me.rad=g.Angle;Me.grad=g.Angle;Me.ms=g.Time;Me.s=g.Time;Me.hz=g.Freq;Me.khz=g.Freq;Me["%"]=g.Percentage;Me.fr=g.Percentage;Me.dpi=g.Resolution;Me.dpcm=g.Resolution;Me.cqw=g.ContainerQueryLength;Me.cqh=g.ContainerQueryLength;Me.cqi=g.ContainerQueryLength;Me.cqb=g.ContainerQueryLength;Me.cqmin=g.ContainerQueryLength;Me.cqmax=g.ContainerQueryLength;var At=class{constructor(){this.stream=new uo(""),this.ignoreComment=!0,this.ignoreWhitespace=!0,this.inURL=!1}setSource(e){this.stream=new uo(e)}finishToken(e,n,i){return{offset:e,len:this.stream.pos()-e,type:n,text:i||this.stream.substring(e)}}substring(e,n){return this.stream.substring(e,e+n)}pos(){return this.stream.pos()}goBackTo(e){this.stream.goBackTo(e)}scanUnquotedString(){let e=this.stream.pos(),n=[];return this._unquotedString(n)?this.finishToken(e,g.UnquotedString,n.join("")):null}scan(){let e=this.trivia();if(e!==null)return e;let n=this.stream.pos();return this.stream.eos()?this.finishToken(n,g.EOF):this.scanNext(n)}tryScanUnicode(){let e=this.stream.pos();if(!this.stream.eos()&&this._unicodeRange())return this.finishToken(e,g.UnicodeRange);this.stream.goBackTo(e)}scanNext(e){if(this.stream.advanceIfChars([Tw,Xu,Mn,Mn]))return this.finishToken(e,g.CDO);if(this.stream.advanceIfChars([Mn,Mn,Iw]))return this.finishToken(e,g.CDC);let n=[];if(this.ident(n))return this.finishToken(e,g.Ident,n.join(""));if(this.stream.advanceIfChar(Pw))if(n=["@"],this._name(n)){let r=n.join("");return r==="@charset"?this.finishToken(e,g.Charset,r):this.finishToken(e,g.AtKeyword,r)}else return this.finishToken(e,g.Delim);if(this.stream.advanceIfChar(zw))return n=["#"],this._name(n)?this.finishToken(e,g.Hash,n.join("")):this.finishToken(e,g.Delim);if(this.stream.advanceIfChar(Xu))return this.finishToken(e,g.Exclamation);if(this._number()){let r=this.stream.pos();if(n=[this.stream.substring(e,r)],this.stream.advanceIfChar(Mw))return this.finishToken(e,g.Percentage);if(this.ident(n)){let s=this.stream.substring(r).toLowerCase(),o=Me[s];return typeof o<"u"?this.finishToken(e,o,n.join("")):this.finishToken(e,g.Dimension,n.join(""))}return this.finishToken(e,g.Num)}n=[];let i=this._string(n);return i!==null?this.finishToken(e,i,n.join("")):(i=Yt[this.stream.peekChar()],typeof i<"u"?(this.stream.advance(1),this.finishToken(e,i)):this.stream.peekChar(0)===Ew&&this.stream.peekChar(1)===Dr?(this.stream.advance(2),this.finishToken(e,g.Includes)):this.stream.peekChar(0)===Rw&&this.stream.peekChar(1)===Dr?(this.stream.advance(2),this.finishToken(e,g.Dashmatch)):this.stream.peekChar(0)===yc&&this.stream.peekChar(1)===Dr?(this.stream.advance(2),this.finishToken(e,g.SubstringOperator)):this.stream.peekChar(0)===Dw&&this.stream.peekChar(1)===Dr?(this.stream.advance(2),this.finishToken(e,g.PrefixOperator)):this.stream.peekChar(0)===Nw&&this.stream.peekChar(1)===Dr?(this.stream.advance(2),this.finishToken(e,g.SuffixOperator)):(this.stream.nextChar(),this.finishToken(e,g.Delim)))}trivia(){for(;;){let e=this.stream.pos();if(this._whitespace()){if(!this.ignoreWhitespace)return this.finishToken(e,g.Whitespace)}else if(this.comment()){if(!this.ignoreComment)return this.finishToken(e,g.Comment)}else return null}}comment(){if(this.stream.advanceIfChars([Hu,yc])){let e=!1,n=!1;return this.stream.advanceWhileChar(i=>n&&i===Hu?(e=!0,!1):(n=i===yc,!0)),e&&this.stream.advance(1),!0}return!1}_number(){let e=0,n=!1,i=this.stream.peekChar();(i===Yu||i===Mn)&&e++,this.stream.peekChar(e)===Ju&&(e++,n=!0);let r=this.stream.peekChar(e);return r>=Ar&&r<=Er?(this.stream.advance(e+1),this.stream.advanceWhileChar(s=>s>=Ar&&s<=Er||!n&&s===Ju),!0):!1}_newline(e){let n=this.stream.peekChar();switch(n){case Mi:case Rr:case Ri:return this.stream.advance(1),e.push(String.fromCharCode(n)),n===Mi&&this.stream.advanceIfChar(Ri)&&e.push(`
|
35
|
+
`),!0}return!1}_escape(e,n){let i=this.stream.peekChar();if(i===wc){this.stream.advance(1),i=this.stream.peekChar();let r=0;for(;r<6&&(i>=Ar&&i<=Er||i>=co&&i<=ju||i>=ho&&i<=Uu);)this.stream.advance(1),i=this.stream.peekChar(),r++;if(r>0){try{let s=parseInt(this.stream.substring(this.stream.pos()-r),16);s&&e.push(String.fromCharCode(s))}catch{}return i===vc||i===Sc?this.stream.advance(1):this._newline([]),!0}if(i!==Mi&&i!==Rr&&i!==Ri)return this.stream.advance(1),e.push(String.fromCharCode(i)),!0;if(n)return this._newline(e)}return!1}_stringChar(e,n){let i=this.stream.peekChar();return i!==0&&i!==e&&i!==wc&&i!==Mi&&i!==Rr&&i!==Ri?(this.stream.advance(1),n.push(String.fromCharCode(i)),!0):!1}_string(e){if(this.stream.peekChar()===Gu||this.stream.peekChar()===Ku){let 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)),g.String):g.BadString}return null}_unquotedChar(e){let n=this.stream.peekChar();return n!==0&&n!==wc&&n!==Gu&&n!==Ku&&n!==Qu&&n!==Zu&&n!==vc&&n!==Sc&&n!==Ri&&n!==Rr&&n!==Mi?(this.stream.advance(1),e.push(String.fromCharCode(n)),!0):!1}_unquotedString(e){let n=!1;for(;this._unquotedChar(e)||this._escape(e);)n=!0;return n}_whitespace(){return this.stream.advanceWhileChar(n=>n===vc||n===Sc||n===Ri||n===Rr||n===Mi)>0}_name(e){let n=!1;for(;this._identChar(e)||this._escape(e);)n=!0;return n}ident(e){let n=this.stream.pos();if(this._minus(e)){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}_identFirstChar(e){let n=this.stream.peekChar();return n===Bu||n>=co&&n<=$u||n>=ho&&n<=Vu||n>=128&&n<=65535?(this.stream.advance(1),e.push(String.fromCharCode(n)),!0):!1}_minus(e){let n=this.stream.peekChar();return n===Mn?(this.stream.advance(1),e.push(String.fromCharCode(n)),!0):!1}_identChar(e){let n=this.stream.peekChar();return n===Bu||n===Mn||n>=co&&n<=$u||n>=ho&&n<=Vu||n>=Ar&&n<=Er||n>=128&&n<=65535?(this.stream.advance(1),e.push(String.fromCharCode(n)),!0):!1}_unicodeRange(){if(this.stream.advanceIfChar(Yu)){let e=i=>i>=Ar&&i<=Er||i>=co&&i<=ju||i>=ho&&i<=Uu,n=this.stream.advanceWhileChar(e)+this.stream.advanceWhileChar(i=>i===Vw);if(n>=1&&n<=6)if(this.stream.advanceIfChar(Mn)){let i=this.stream.advanceWhileChar(e);if(i>=1&&i<=6)return!0}else return!0}return!1}};function ze(t,e){if(t.length<e.length)return!1;for(let n=0;n<e.length;n++)if(t[n]!==e[n])return!1;return!0}function po(t,e){let n=t.length-e.length;return n>0?t.lastIndexOf(e)===n:n===0?t===e:!1}function ep(t,e,n=4){let i=Math.abs(t.length-e.length);if(i>n)return 0;let r=[],s=[],o,a;for(o=0;o<e.length+1;++o)s.push(0);for(o=0;o<t.length+1;++o)r.push(s);for(o=1;o<t.length+1;++o)for(a=1;a<e.length+1;++a)t[o-1]===e[a-1]?r[o][a]=r[o-1][a-1]+1:r[o][a]=Math.max(r[o-1][a],r[o][a-1]);return r[t.length][e.length]-Math.sqrt(i)}function _c(t,e=!0){return t?t.length<140?t:t.slice(0,140)+(e?"\u2026":""):""}function tp(t,e){let n=e.exec(t);return n&&n[0].length?t.substr(0,t.length-n[0].length):t}function xc(t,e){let n="";for(;e>0;)(e&1)===1&&(n+=t),t+=t,e=e>>>1;return n}var 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",t[t.Layer=83]="Layer",t[t.LayerNameList=84]="LayerNameList",t[t.LayerName=85]="LayerName",t[t.PropertyAtRule=86]="PropertyAtRule",t[t.Container=87]="Container",t[t.ModuleConfig=88]="ModuleConfig",t[t.SelectorList=89]="SelectorList",t[t.StartingStyleAtRule=90]="StartingStyleAtRule"})(v||(v={}));var Ce;(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",t[t.Property=9]="Property"})(Ce||(Ce={}));function Po(t,e){let n=null;return!t||e<t.offset||e>t.end?null:(t.accept(i=>i.offset===-1&&i.length===-1?!0:i.offset<=e&&i.end>=e?(n?i.length<=n.length&&(n=i):n=i,!0):!1),n)}function Ui(t,e){let n=Po(t,e),i=[];for(;n;)i.unshift(n),n=n.parent;return i}function np(t){let e=t.findParent(v.Declaration),n=e&&e.getValue();return n&&n.encloses(t)?e:null}var ne=class{get end(){return this.offset+this.length}constructor(e=-1,n=-1,i){this.parent=null,this.offset=e,this.length=n,i&&(this.nodeType=i)}set type(e){this.nodeType=e}get type(){return this.nodeType||v.Undefined}getTextProvider(){let e=this;for(;e&&!e.textProvider;)e=e.parent;return e?e.textProvider:()=>"unknown"}getText(){return this.getTextProvider()(this.offset,this.length)}matches(e){return this.length===e.length&&this.getTextProvider()(this.offset,this.length)===e}startsWith(e){return this.length>=e.length&&this.getTextProvider()(this.offset,e.length)===e}endsWith(e){return this.length>=e.length&&this.getTextProvider()(this.end-e.length,e.length)===e}accept(e){if(e(this)&&this.children)for(let n of this.children)n.accept(e)}acceptVisitor(e){this.accept(e.visitNode.bind(e))}adoptChild(e,n=-1){if(e.parent&&e.parent.children){let r=e.parent.children.indexOf(e);r>=0&&e.parent.children.splice(r,1)}e.parent=this;let i=this.children;return i||(i=this.children=[]),n!==-1?i.splice(n,0,e):i.push(e),e}attachTo(e,n=-1){return e&&e.adoptChild(this,n),this}collectIssues(e){this.issues&&e.push.apply(e,this.issues)}addIssue(e){this.issues||(this.issues=[]),this.issues.push(e)}hasIssue(e){return Array.isArray(this.issues)&&this.issues.some(n=>n.getRule()===e)}isErroneous(e=!1){return this.issues&&this.issues.length>0?!0:e&&Array.isArray(this.children)&&this.children.some(n=>n.isErroneous(!0))}setNode(e,n,i=-1){return n?(n.attachTo(this,i),this[e]=n,!0):!1}addChild(e){return e?(this.children||(this.children=[]),e.attachTo(this),this.updateOffsetAndLength(e),!0):!1}updateOffsetAndLength(e){(e.offset<this.offset||this.offset===-1)&&(this.offset=e.offset);let n=e.end;(n>this.end||this.length===-1)&&(this.length=n-this.offset)}hasChildren(){return!!this.children&&this.children.length>0}getChildren(){return this.children?this.children.slice(0):[]}getChild(e){return this.children&&e<this.children.length?this.children[e]:null}addChildren(e){for(let n of e)this.addChild(n)}findFirstChildBeforeOffset(e){if(this.children){let n=null;for(let i=this.children.length-1;i>=0;i--)if(n=this.children[i],n.offset<=e)return n}return null}findChildAtOffset(e,n){let i=this.findFirstChildBeforeOffset(e);return i&&i.end>=e?n&&i.findChildAtOffset(e,!0)||i:null}encloses(e){return this.offset<=e.offset&&this.offset+this.length>=e.offset+e.length}getParent(){let e=this.parent;for(;e instanceof Et;)e=e.parent;return e}findParent(e){let n=this;for(;n&&n.type!==e;)n=n.parent;return n}findAParent(...e){let n=this;for(;n&&!e.some(i=>n.type===i);)n=n.parent;return n}setData(e,n){this.options||(this.options={}),this.options[e]=n}getData(e){return!this.options||!this.options.hasOwnProperty(e)?null:this.options[e]}},Et=class extends ne{constructor(e,n=-1){super(-1,-1),this.attachTo(e,n),this.offset=-1,this.length=-1}},mo=class extends ne{constructor(e,n){super(e,n)}get type(){return v.UnicodeRange}setRangeStart(e){return this.setNode("rangeStart",e)}getRangeStart(){return this.rangeStart}setRangeEnd(e){return this.setNode("rangeEnd",e)}getRangeEnd(){return this.rangeEnd}},pt=class extends ne{constructor(e,n){super(e,n),this.isCustomProperty=!1}get type(){return v.Identifier}containsInterpolation(){return this.hasChildren()}},fo=class extends ne{constructor(e,n){super(e,n)}get type(){return v.Stylesheet}},ti=class extends ne{constructor(e,n){super(e,n)}get type(){return v.Declarations}},Ne=class extends ne{constructor(e,n){super(e,n)}getDeclarations(){return this.declarations}setDeclarations(e){return this.setNode("declarations",e)}},vt=class extends Ne{constructor(e,n){super(e,n)}get type(){return v.Ruleset}getSelectors(){return this.selectors||(this.selectors=new Et(this)),this.selectors}isNested(){return!!this.parent&&this.parent.findParent(v.Declarations)!==null}},Ut=class extends ne{constructor(e,n){super(e,n)}get type(){return v.Selector}},Dt=class extends ne{constructor(e,n){super(e,n)}get type(){return v.SimpleSelector}};var Ti=class extends ne{constructor(e,n){super(e,n)}},go=class extends Ne{constructor(e,n){super(e,n)}get type(){return v.CustomPropertySet}},it=class t extends Ti{constructor(e,n){super(e,n),this.property=null}get type(){return v.Declaration}setProperty(e){return this.setNode("property",e)}getProperty(){return this.property}getFullPropertyName(){let e=this.property?this.property.getName():"unknown";if(this.parent instanceof ti&&this.parent.getParent()instanceof wo){let n=this.parent.getParent().getParent();if(n instanceof t)return n.getFullPropertyName()+e}return e}getNonPrefixedPropertyName(){let e=this.getFullPropertyName();if(e&&e.charAt(0)==="-"){let n=e.indexOf("-",1);if(n!==-1)return e.substring(n+1)}return e}setValue(e){return this.setNode("value",e)}getValue(){return this.value}setNestedProperties(e){return this.setNode("nestedProperties",e)}getNestedProperties(){return this.nestedProperties}},bo=class extends it{constructor(e,n){super(e,n)}get type(){return v.CustomPropertyDeclaration}setPropertySet(e){return this.setNode("propertySet",e)}getPropertySet(){return this.propertySet}},Tn=class extends ne{constructor(e,n){super(e,n)}get type(){return v.Property}setIdentifier(e){return this.setNode("identifier",e)}getIdentifier(){return this.identifier}getName(){return tp(this.getText(),/[_\+]+$/)}isCustomProperty(){return!!this.identifier&&this.identifier.isCustomProperty}},Cc=class extends ne{constructor(e,n){super(e,n)}get type(){return v.Invocation}getArguments(){return this.arguments||(this.arguments=new Et(this)),this.arguments}},Qt=class extends Cc{constructor(e,n){super(e,n)}get type(){return v.Function}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}},In=class extends ne{constructor(e,n){super(e,n)}get type(){return v.FunctionParameter}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}setDefaultValue(e){return this.setNode("defaultValue",e,0)}getDefaultValue(){return this.defaultValue}},Vt=class extends ne{constructor(e,n){super(e,n)}get type(){return v.FunctionArgument}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}setValue(e){return this.setNode("value",e,0)}getValue(){return this.value}};var Pn=class extends Ne{constructor(e,n){super(e,n)}get type(){return v.FunctionDeclaration}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}getParameters(){return this.parameters||(this.parameters=new Et(this)),this.parameters}},yo=class extends Ne{constructor(e,n){super(e,n)}get type(){return v.ViewPort}},Ii=class extends Ne{constructor(e,n){super(e,n)}get type(){return v.FontFace}},wo=class extends Ne{constructor(e,n){super(e,n)}get type(){return v.NestedProperties}},Pi=class extends Ne{constructor(e,n){super(e,n)}get type(){return v.Keyframe}setKeyword(e){return this.setNode("keyword",e,0)}getKeyword(){return this.keyword}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}},Mr=class extends Ne{constructor(e,n){super(e,n)}get type(){return v.KeyframeSelector}},zi=class extends ne{constructor(e,n){super(e,n)}get type(){return v.Import}setMedialist(e){return e?(e.attachTo(this),!0):!1}};var vo=class extends ne{constructor(e,n){super(e,n)}get type(){return v.Namespace}},zn=class extends Ne{constructor(e,n){super(e,n)}get type(){return v.Media}},ni=class extends Ne{constructor(e,n){super(e,n)}get type(){return v.Supports}},So=class extends Ne{constructor(e,n){super(e,n)}get type(){return v.Layer}setNames(e){return this.setNode("names",e)}getNames(){return this.names}},_o=class extends Ne{constructor(e,n){super(e,n)}get type(){return v.PropertyAtRule}setName(e){return e?(e.attachTo(this),this.name=e,!0):!1}getName(){return this.name}},xo=class extends Ne{constructor(e,n){super(e,n)}get type(){return v.StartingStyleAtRule}},Co=class extends Ne{constructor(e,n){super(e,n)}get type(){return v.Document}},Fo=class extends Ne{constructor(e,n){super(e,n)}get type(){return v.Container}},Ni=class extends ne{constructor(e,n){super(e,n)}},Tr=class extends ne{constructor(e,n){super(e,n)}get type(){return v.MediaQuery}},ko=class extends ne{constructor(e,n){super(e,n)}get type(){return v.MediaCondition}},Ao=class extends ne{constructor(e,n){super(e,n)}get type(){return v.MediaFeature}},hn=class extends ne{constructor(e,n){super(e,n)}get type(){return v.SupportsCondition}},Eo=class extends Ne{constructor(e,n){super(e,n)}get type(){return v.Page}},Do=class extends Ne{constructor(e,n){super(e,n)}get type(){return v.PageBoxMarginBox}},Oi=class extends ne{constructor(e,n){super(e,n)}get type(){return v.Expression}},Nn=class extends ne{constructor(e,n){super(e,n)}get type(){return v.BinaryExpression}setLeft(e){return this.setNode("left",e)}getLeft(){return this.left}setRight(e){return this.setNode("right",e)}getRight(){return this.right}setOperator(e){return this.setNode("operator",e)}getOperator(){return this.operator}},Ro=class extends ne{constructor(e,n){super(e,n)}get type(){return v.Term}setOperator(e){return this.setNode("operator",e)}getOperator(){return this.operator}setExpression(e){return this.setNode("expression",e)}getExpression(){return this.expression}},Mo=class extends ne{constructor(e,n){super(e,n)}get type(){return v.AttributeSelector}setNamespacePrefix(e){return this.setNode("namespacePrefix",e)}getNamespacePrefix(){return this.namespacePrefix}setIdentifier(e){return this.setNode("identifier",e)}getIdentifier(){return this.identifier}setOperator(e){return this.setNode("operator",e)}getOperator(){return this.operator}setValue(e){return this.setNode("value",e)}getValue(){return this.value}};var ii=class extends ne{constructor(e,n){super(e,n)}get type(){return v.HexColorValue}},To=class extends ne{constructor(e,n){super(e,n)}get type(){return v.RatioValue}},Kw=46,Gw=48,Jw=57,ri=class extends ne{constructor(e,n){super(e,n)}get type(){return v.NumericValue}getValue(){let e=this.getText(),n=0,i;for(let r=0,s=e.length;r<s&&(i=e.charCodeAt(r),Gw<=i&&i<=Jw||i===Kw);r++)n+=1;return{value:e.substring(0,n),unit:n<e.length?e.substring(n):void 0}}},On=class extends Ti{constructor(e,n){super(e,n),this.needsSemicolon=!0}get type(){return v.VariableDeclaration}setVariable(e){return e?(e.attachTo(this),this.variable=e,!0):!1}getVariable(){return this.variable}getName(){return this.variable?this.variable.getName():""}setValue(e){return e?(e.attachTo(this),this.value=e,!0):!1}getValue(){return this.value}},Wi=class extends ne{constructor(e,n){super(e,n)}get type(){return v.Interpolation}},Li=class extends ne{constructor(e,n){super(e,n)}get type(){return v.VariableName}getName(){return this.getText()}},si=class extends ne{constructor(e,n){super(e,n)}get type(){return v.ExtendsReference}getSelectors(){return this.selectors||(this.selectors=new Et(this)),this.selectors}};var qi=class extends ne{constructor(e,n){super(e,n)}get type(){return v.MixinReference}getNamespaces(){return this.namespaces||(this.namespaces=new Et(this)),this.namespaces}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}getArguments(){return this.arguments||(this.arguments=new Et(this)),this.arguments}setContent(e){return this.setNode("content",e)}getContent(){return this.content}},Wn=class extends Ne{constructor(e,n){super(e,n)}get type(){return v.MixinDeclaration}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}getParameters(){return this.parameters||(this.parameters=new Et(this)),this.parameters}setGuard(e){return e&&(e.attachTo(this),this.guard=e),!1}},ji=class extends Ne{constructor(e,n){super(e,n)}get type(){return v.UnknownAtRule}setAtRuleName(e){this.atRuleName=e}getAtRuleName(){return this.atRuleName}};var rt;(function(t){t[t.Ignore=1]="Ignore",t[t.Warning=2]="Warning",t[t.Error=4]="Error"})(rt||(rt={}));var $i=class{constructor(e,n,i,r,s=e.offset,o=e.length){this.node=e,this.rule=n,this.level=i,this.message=r||n.message,this.offset=s,this.length=o}getRule(){return this.rule}getLevel(){return this.level}getOffset(){return this.offset}getLength(){return this.length}getNode(){return this.node}getMessage(){return this.message}},Io=class t{static entries(e){let n=new t;return e.acceptVisitor(n),n.entries}constructor(){this.entries=[]}visitNode(e){return e.isErroneous()&&e.collectIssues(this.entries),!0}};var we=lt(Rt()),ge=class{constructor(e,n){this.id=e,this.message=n}},B={NumberExpected:new ge("css-numberexpected",we.t("number expected")),ConditionExpected:new ge("css-conditionexpected",we.t("condition expected")),RuleOrSelectorExpected:new ge("css-ruleorselectorexpected",we.t("at-rule or selector expected")),DotExpected:new ge("css-dotexpected",we.t("dot expected")),ColonExpected:new ge("css-colonexpected",we.t("colon expected")),SemiColonExpected:new ge("css-semicolonexpected",we.t("semi-colon expected")),TermExpected:new ge("css-termexpected",we.t("term expected")),ExpressionExpected:new ge("css-expressionexpected",we.t("expression expected")),OperatorExpected:new ge("css-operatorexpected",we.t("operator expected")),IdentifierExpected:new ge("css-identifierexpected",we.t("identifier expected")),PercentageExpected:new ge("css-percentageexpected",we.t("percentage expected")),URIOrStringExpected:new ge("css-uriorstringexpected",we.t("uri or string expected")),URIExpected:new ge("css-uriexpected",we.t("URI expected")),VariableNameExpected:new ge("css-varnameexpected",we.t("variable name expected")),VariableValueExpected:new ge("css-varvalueexpected",we.t("variable value expected")),PropertyValueExpected:new ge("css-propertyvalueexpected",we.t("property value expected")),LeftCurlyExpected:new ge("css-lcurlyexpected",we.t("{ expected")),RightCurlyExpected:new ge("css-rcurlyexpected",we.t("} expected")),LeftSquareBracketExpected:new ge("css-rbracketexpected",we.t("[ expected")),RightSquareBracketExpected:new ge("css-lbracketexpected",we.t("] expected")),LeftParenthesisExpected:new ge("css-lparentexpected",we.t("( expected")),RightParenthesisExpected:new ge("css-rparentexpected",we.t(") expected")),CommaExpected:new ge("css-commaexpected",we.t("comma expected")),PageDirectiveOrDeclarationExpected:new ge("css-pagedirordeclexpected",we.t("page directive or declaraton expected")),UnknownAtRule:new ge("css-unknownatrule",we.t("at-rule unknown")),UnknownKeyword:new ge("css-unknownkeyword",we.t("unknown keyword")),SelectorExpected:new ge("css-selectorexpected",we.t("selector expected")),StringLiteralExpected:new ge("css-stringliteralexpected",we.t("string literal expected")),WhitespaceExpected:new ge("css-whitespaceexpected",we.t("whitespace expected")),MediaQueryExpected:new ge("css-mediaqueryexpected",we.t("media query expected")),IdentifierOrWildcardExpected:new ge("css-idorwildcardexpected",we.t("identifier or wildcard expected")),WildcardExpected:new ge("css-wildcardexpected",we.t("wildcard expected")),IdentifierOrVariableExpected:new ge("css-idorvarexpected",we.t("identifier or variable expected"))};var kc;(function(t){function e(n){return typeof n=="string"}t.is=e})(kc||(kc={}));var Ac;(function(t){function e(n){return typeof n=="string"}t.is=e})(Ac||(Ac={}));var ap;(function(t){t.MIN_VALUE=-2147483648,t.MAX_VALUE=2147483647;function e(n){return typeof n=="number"&&t.MIN_VALUE<=n&&n<=t.MAX_VALUE}t.is=e})(ap||(ap={}));var No;(function(t){t.MIN_VALUE=0,t.MAX_VALUE=2147483647;function e(n){return typeof n=="number"&&t.MIN_VALUE<=n&&n<=t.MAX_VALUE}t.is=e})(No||(No={}));var Xe;(function(t){function e(i,r){return i===Number.MAX_VALUE&&(i=No.MAX_VALUE),r===Number.MAX_VALUE&&(r=No.MAX_VALUE),{line:i,character:r}}t.create=e;function n(i){let r=i;return E.objectLiteral(r)&&E.uinteger(r.line)&&E.uinteger(r.character)}t.is=n})(Xe||(Xe={}));var ce;(function(t){function e(i,r,s,o){if(E.uinteger(i)&&E.uinteger(r)&&E.uinteger(s)&&E.uinteger(o))return{start:Xe.create(i,r),end:Xe.create(s,o)};if(Xe.is(i)&&Xe.is(r))return{start:i,end:r};throw new Error(`Range#create called with invalid arguments[${i}, ${r}, ${s}, ${o}]`)}t.create=e;function n(i){let r=i;return E.objectLiteral(r)&&Xe.is(r.start)&&Xe.is(r.end)}t.is=n})(ce||(ce={}));var oi;(function(t){function e(i,r){return{uri:i,range:r}}t.create=e;function n(i){let r=i;return E.objectLiteral(r)&&ce.is(r.range)&&(E.string(r.uri)||E.undefined(r.uri))}t.is=n})(oi||(oi={}));var lp;(function(t){function e(i,r,s,o){return{targetUri:i,targetRange:r,targetSelectionRange:s,originSelectionRange:o}}t.create=e;function n(i){let r=i;return E.objectLiteral(r)&&ce.is(r.targetRange)&&E.string(r.targetUri)&&ce.is(r.targetSelectionRange)&&(ce.is(r.originSelectionRange)||E.undefined(r.originSelectionRange))}t.is=n})(lp||(lp={}));var Oo;(function(t){function e(i,r,s,o){return{red:i,green:r,blue:s,alpha:o}}t.create=e;function n(i){let r=i;return E.objectLiteral(r)&&E.numberRange(r.red,0,1)&&E.numberRange(r.green,0,1)&&E.numberRange(r.blue,0,1)&&E.numberRange(r.alpha,0,1)}t.is=n})(Oo||(Oo={}));var Ec;(function(t){function e(i,r){return{range:i,color:r}}t.create=e;function n(i){let r=i;return E.objectLiteral(r)&&ce.is(r.range)&&Oo.is(r.color)}t.is=n})(Ec||(Ec={}));var Dc;(function(t){function e(i,r,s){return{label:i,textEdit:r,additionalTextEdits:s}}t.create=e;function n(i){let r=i;return E.objectLiteral(r)&&E.string(r.label)&&(E.undefined(r.textEdit)||oe.is(r))&&(E.undefined(r.additionalTextEdits)||E.typedArray(r.additionalTextEdits,oe.is))}t.is=n})(Dc||(Dc={}));var Rc;(function(t){t.Comment="comment",t.Imports="imports",t.Region="region"})(Rc||(Rc={}));var Mc;(function(t){function e(i,r,s,o,a,l){let c={startLine:i,endLine:r};return E.defined(s)&&(c.startCharacter=s),E.defined(o)&&(c.endCharacter=o),E.defined(a)&&(c.kind=a),E.defined(l)&&(c.collapsedText=l),c}t.create=e;function n(i){let r=i;return E.objectLiteral(r)&&E.uinteger(r.startLine)&&E.uinteger(r.startLine)&&(E.undefined(r.startCharacter)||E.uinteger(r.startCharacter))&&(E.undefined(r.endCharacter)||E.uinteger(r.endCharacter))&&(E.undefined(r.kind)||E.string(r.kind))}t.is=n})(Mc||(Mc={}));var Tc;(function(t){function e(i,r){return{location:i,message:r}}t.create=e;function n(i){let r=i;return E.defined(r)&&oi.is(r.location)&&E.string(r.message)}t.is=n})(Tc||(Tc={}));var Vi;(function(t){t.Error=1,t.Warning=2,t.Information=3,t.Hint=4})(Vi||(Vi={}));var cp;(function(t){t.Unnecessary=1,t.Deprecated=2})(cp||(cp={}));var dp;(function(t){function e(n){let i=n;return E.objectLiteral(i)&&E.string(i.href)}t.is=e})(dp||(dp={}));var Pr;(function(t){function e(i,r,s,o,a,l){let c={range:i,message:r};return E.defined(s)&&(c.severity=s),E.defined(o)&&(c.code=o),E.defined(a)&&(c.source=a),E.defined(l)&&(c.relatedInformation=l),c}t.create=e;function n(i){var r;let s=i;return E.defined(s)&&ce.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((r=s.codeDescription)===null||r===void 0?void 0:r.href))&&(E.string(s.source)||E.undefined(s.source))&&(E.undefined(s.relatedInformation)||E.typedArray(s.relatedInformation,Tc.is))}t.is=n})(Pr||(Pr={}));var un;(function(t){function e(i,r,...s){let o={title:i,command:r};return E.defined(s)&&s.length>0&&(o.arguments=s),o}t.create=e;function n(i){let r=i;return E.defined(r)&&E.string(r.title)&&E.string(r.command)}t.is=n})(un||(un={}));var oe;(function(t){function e(s,o){return{range:s,newText:o}}t.replace=e;function n(s,o){return{range:{start:s,end:s},newText:o}}t.insert=n;function i(s){return{range:s,newText:""}}t.del=i;function r(s){let o=s;return E.objectLiteral(o)&&E.string(o.newText)&&ce.is(o.range)}t.is=r})(oe||(oe={}));var Ic;(function(t){function e(i,r,s){let o={label:i};return r!==void 0&&(o.needsConfirmation=r),s!==void 0&&(o.description=s),o}t.create=e;function n(i){let r=i;return E.objectLiteral(r)&&E.string(r.label)&&(E.boolean(r.needsConfirmation)||r.needsConfirmation===void 0)&&(E.string(r.description)||r.description===void 0)}t.is=n})(Ic||(Ic={}));var Bi;(function(t){function e(n){let i=n;return E.string(i)}t.is=e})(Bi||(Bi={}));var hp;(function(t){function e(s,o,a){return{range:s,newText:o,annotationId:a}}t.replace=e;function n(s,o,a){return{range:{start:s,end:s},newText:o,annotationId:a}}t.insert=n;function i(s,o){return{range:s,newText:"",annotationId:o}}t.del=i;function r(s){let o=s;return oe.is(o)&&(Ic.is(o.annotationId)||Bi.is(o.annotationId))}t.is=r})(hp||(hp={}));var Hi;(function(t){function e(i,r){return{textDocument:i,edits:r}}t.create=e;function n(i){let r=i;return E.defined(r)&&Oc.is(r.textDocument)&&Array.isArray(r.edits)}t.is=n})(Hi||(Hi={}));var Pc;(function(t){function e(i,r,s){let o={kind:"create",uri:i};return r!==void 0&&(r.overwrite!==void 0||r.ignoreIfExists!==void 0)&&(o.options=r),s!==void 0&&(o.annotationId=s),o}t.create=e;function n(i){let r=i;return r&&r.kind==="create"&&E.string(r.uri)&&(r.options===void 0||(r.options.overwrite===void 0||E.boolean(r.options.overwrite))&&(r.options.ignoreIfExists===void 0||E.boolean(r.options.ignoreIfExists)))&&(r.annotationId===void 0||Bi.is(r.annotationId))}t.is=n})(Pc||(Pc={}));var zc;(function(t){function e(i,r,s,o){let a={kind:"rename",oldUri:i,newUri:r};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(a.options=s),o!==void 0&&(a.annotationId=o),a}t.create=e;function n(i){let r=i;return r&&r.kind==="rename"&&E.string(r.oldUri)&&E.string(r.newUri)&&(r.options===void 0||(r.options.overwrite===void 0||E.boolean(r.options.overwrite))&&(r.options.ignoreIfExists===void 0||E.boolean(r.options.ignoreIfExists)))&&(r.annotationId===void 0||Bi.is(r.annotationId))}t.is=n})(zc||(zc={}));var Nc;(function(t){function e(i,r,s){let o={kind:"delete",uri:i};return r!==void 0&&(r.recursive!==void 0||r.ignoreIfNotExists!==void 0)&&(o.options=r),s!==void 0&&(o.annotationId=s),o}t.create=e;function n(i){let r=i;return r&&r.kind==="delete"&&E.string(r.uri)&&(r.options===void 0||(r.options.recursive===void 0||E.boolean(r.options.recursive))&&(r.options.ignoreIfNotExists===void 0||E.boolean(r.options.ignoreIfNotExists)))&&(r.annotationId===void 0||Bi.is(r.annotationId))}t.is=n})(Nc||(Nc={}));var Wo;(function(t){function e(n){let i=n;return i&&(i.changes!==void 0||i.documentChanges!==void 0)&&(i.documentChanges===void 0||i.documentChanges.every(r=>E.string(r.kind)?Pc.is(r)||zc.is(r)||Nc.is(r):Hi.is(r)))}t.is=e})(Wo||(Wo={}));var up;(function(t){function e(i){return{uri:i}}t.create=e;function n(i){let r=i;return E.defined(r)&&E.string(r.uri)}t.is=n})(up||(up={}));var zr;(function(t){function e(i,r){return{uri:i,version:r}}t.create=e;function n(i){let r=i;return E.defined(r)&&E.string(r.uri)&&E.integer(r.version)}t.is=n})(zr||(zr={}));var Oc;(function(t){function e(i,r){return{uri:i,version:r}}t.create=e;function n(i){let r=i;return E.defined(r)&&E.string(r.uri)&&(r.version===null||E.integer(r.version))}t.is=n})(Oc||(Oc={}));var pp;(function(t){function e(i,r,s,o){return{uri:i,languageId:r,version:s,text:o}}t.create=e;function n(i){let r=i;return E.defined(r)&&E.string(r.uri)&&E.string(r.languageId)&&E.integer(r.version)&&E.string(r.text)}t.is=n})(pp||(pp={}));var bt;(function(t){t.PlainText="plaintext",t.Markdown="markdown";function e(n){let i=n;return i===t.PlainText||i===t.Markdown}t.is=e})(bt||(bt={}));var Ki;(function(t){function e(n){let i=n;return E.objectLiteral(n)&&bt.is(i.kind)&&E.string(i.value)}t.is=e})(Ki||(Ki={}));var re;(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})(re||(re={}));var st;(function(t){t.PlainText=1,t.Snippet=2})(st||(st={}));var pn;(function(t){t.Deprecated=1})(pn||(pn={}));var mp;(function(t){function e(i,r,s){return{newText:i,insert:r,replace:s}}t.create=e;function n(i){let r=i;return r&&E.string(r.newText)&&ce.is(r.insert)&&ce.is(r.replace)}t.is=n})(mp||(mp={}));var fp;(function(t){t.asIs=1,t.adjustIndentation=2})(fp||(fp={}));var gp;(function(t){function e(n){let i=n;return i&&(E.string(i.detail)||i.detail===void 0)&&(E.string(i.description)||i.description===void 0)}t.is=e})(gp||(gp={}));var Wc;(function(t){function e(n){return{label:n}}t.create=e})(Wc||(Wc={}));var Lc;(function(t){function e(n,i){return{items:n||[],isIncomplete:!!i}}t.create=e})(Lc||(Lc={}));var Nr;(function(t){function e(i){return i.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}t.fromPlainText=e;function n(i){let r=i;return E.string(r)||E.objectLiteral(r)&&E.string(r.language)&&E.string(r.value)}t.is=n})(Nr||(Nr={}));var qc;(function(t){function e(n){let i=n;return!!i&&E.objectLiteral(i)&&(Ki.is(i.contents)||Nr.is(i.contents)||E.typedArray(i.contents,Nr.is))&&(n.range===void 0||ce.is(n.range))}t.is=e})(qc||(qc={}));var bp;(function(t){function e(n,i){return i?{label:n,documentation:i}:{label:n}}t.create=e})(bp||(bp={}));var yp;(function(t){function e(n,i,...r){let s={label:n};return E.defined(i)&&(s.documentation=i),E.defined(r)?s.parameters=r:s.parameters=[],s}t.create=e})(yp||(yp={}));var Ln;(function(t){t.Text=1,t.Read=2,t.Write=3})(Ln||(Ln={}));var jc;(function(t){function e(n,i){let r={range:n};return E.number(i)&&(r.kind=i),r}t.create=e})(jc||(jc={}));var Bt;(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})(Bt||(Bt={}));var wp;(function(t){t.Deprecated=1})(wp||(wp={}));var $c;(function(t){function e(n,i,r,s,o){let a={name:n,kind:i,location:{uri:s,range:r}};return o&&(a.containerName=o),a}t.create=e})($c||($c={}));var vp;(function(t){function e(n,i,r,s){return s!==void 0?{name:n,kind:i,location:{uri:r,range:s}}:{name:n,kind:i,location:{uri:r}}}t.create=e})(vp||(vp={}));var Uc;(function(t){function e(i,r,s,o,a,l){let c={name:i,detail:r,kind:s,range:o,selectionRange:a};return l!==void 0&&(c.children=l),c}t.create=e;function n(i){let r=i;return r&&E.string(r.name)&&E.number(r.kind)&&ce.is(r.range)&&ce.is(r.selectionRange)&&(r.detail===void 0||E.string(r.detail))&&(r.deprecated===void 0||E.boolean(r.deprecated))&&(r.children===void 0||Array.isArray(r.children))&&(r.tags===void 0||Array.isArray(r.tags))}t.is=n})(Uc||(Uc={}));var Or;(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"})(Or||(Or={}));var Lo;(function(t){t.Invoked=1,t.Automatic=2})(Lo||(Lo={}));var Vc;(function(t){function e(i,r,s){let o={diagnostics:i};return r!=null&&(o.only=r),s!=null&&(o.triggerKind=s),o}t.create=e;function n(i){let r=i;return E.defined(r)&&E.typedArray(r.diagnostics,Pr.is)&&(r.only===void 0||E.typedArray(r.only,E.string))&&(r.triggerKind===void 0||r.triggerKind===Lo.Invoked||r.triggerKind===Lo.Automatic)}t.is=n})(Vc||(Vc={}));var Wr;(function(t){function e(i,r,s){let o={title:i},a=!0;return typeof r=="string"?(a=!1,o.kind=r):un.is(r)?o.command=r:o.edit=r,a&&s!==void 0&&(o.kind=s),o}t.create=e;function n(i){let r=i;return r&&E.string(r.title)&&(r.diagnostics===void 0||E.typedArray(r.diagnostics,Pr.is))&&(r.kind===void 0||E.string(r.kind))&&(r.edit!==void 0||r.command!==void 0)&&(r.command===void 0||un.is(r.command))&&(r.isPreferred===void 0||E.boolean(r.isPreferred))&&(r.edit===void 0||Wo.is(r.edit))}t.is=n})(Wr||(Wr={}));var Sp;(function(t){function e(i,r){let s={range:i};return E.defined(r)&&(s.data=r),s}t.create=e;function n(i){let r=i;return E.defined(r)&&ce.is(r.range)&&(E.undefined(r.command)||un.is(r.command))}t.is=n})(Sp||(Sp={}));var _p;(function(t){function e(i,r){return{tabSize:i,insertSpaces:r}}t.create=e;function n(i){let r=i;return E.defined(r)&&E.uinteger(r.tabSize)&&E.boolean(r.insertSpaces)}t.is=n})(_p||(_p={}));var Bc;(function(t){function e(i,r,s){return{range:i,target:r,data:s}}t.create=e;function n(i){let r=i;return E.defined(r)&&ce.is(r.range)&&(E.undefined(r.target)||E.string(r.target))}t.is=n})(Bc||(Bc={}));var Gi;(function(t){function e(i,r){return{range:i,parent:r}}t.create=e;function n(i){let r=i;return E.objectLiteral(r)&&ce.is(r.range)&&(r.parent===void 0||t.is(r.parent))}t.is=n})(Gi||(Gi={}));var xp;(function(t){t.namespace="namespace",t.type="type",t.class="class",t.enum="enum",t.interface="interface",t.struct="struct",t.typeParameter="typeParameter",t.parameter="parameter",t.variable="variable",t.property="property",t.enumMember="enumMember",t.event="event",t.function="function",t.method="method",t.macro="macro",t.keyword="keyword",t.modifier="modifier",t.comment="comment",t.string="string",t.number="number",t.regexp="regexp",t.operator="operator",t.decorator="decorator"})(xp||(xp={}));var Cp;(function(t){t.declaration="declaration",t.definition="definition",t.readonly="readonly",t.static="static",t.deprecated="deprecated",t.abstract="abstract",t.async="async",t.modification="modification",t.documentation="documentation",t.defaultLibrary="defaultLibrary"})(Cp||(Cp={}));var Fp;(function(t){function e(n){let i=n;return E.objectLiteral(i)&&(i.resultId===void 0||typeof i.resultId=="string")&&Array.isArray(i.data)&&(i.data.length===0||typeof i.data[0]=="number")}t.is=e})(Fp||(Fp={}));var kp;(function(t){function e(i,r){return{range:i,text:r}}t.create=e;function n(i){let r=i;return r!=null&&ce.is(r.range)&&E.string(r.text)}t.is=n})(kp||(kp={}));var Ap;(function(t){function e(i,r,s){return{range:i,variableName:r,caseSensitiveLookup:s}}t.create=e;function n(i){let r=i;return r!=null&&ce.is(r.range)&&E.boolean(r.caseSensitiveLookup)&&(E.string(r.variableName)||r.variableName===void 0)}t.is=n})(Ap||(Ap={}));var Ep;(function(t){function e(i,r){return{range:i,expression:r}}t.create=e;function n(i){let r=i;return r!=null&&ce.is(r.range)&&(E.string(r.expression)||r.expression===void 0)}t.is=n})(Ep||(Ep={}));var Dp;(function(t){function e(i,r){return{frameId:i,stoppedLocation:r}}t.create=e;function n(i){let r=i;return E.defined(r)&&ce.is(i.stoppedLocation)}t.is=n})(Dp||(Dp={}));var Hc;(function(t){t.Type=1,t.Parameter=2;function e(n){return n===1||n===2}t.is=e})(Hc||(Hc={}));var Kc;(function(t){function e(i){return{value:i}}t.create=e;function n(i){let r=i;return E.objectLiteral(r)&&(r.tooltip===void 0||E.string(r.tooltip)||Ki.is(r.tooltip))&&(r.location===void 0||oi.is(r.location))&&(r.command===void 0||un.is(r.command))}t.is=n})(Kc||(Kc={}));var Rp;(function(t){function e(i,r,s){let o={position:i,label:r};return s!==void 0&&(o.kind=s),o}t.create=e;function n(i){let r=i;return E.objectLiteral(r)&&Xe.is(r.position)&&(E.string(r.label)||E.typedArray(r.label,Kc.is))&&(r.kind===void 0||Hc.is(r.kind))&&r.textEdits===void 0||E.typedArray(r.textEdits,oe.is)&&(r.tooltip===void 0||E.string(r.tooltip)||Ki.is(r.tooltip))&&(r.paddingLeft===void 0||E.boolean(r.paddingLeft))&&(r.paddingRight===void 0||E.boolean(r.paddingRight))}t.is=n})(Rp||(Rp={}));var Mp;(function(t){function e(n){return{kind:"snippet",value:n}}t.createSnippet=e})(Mp||(Mp={}));var Tp;(function(t){function e(n,i,r,s){return{insertText:n,filterText:i,range:r,command:s}}t.create=e})(Tp||(Tp={}));var Ip;(function(t){function e(n){return{items:n}}t.create=e})(Ip||(Ip={}));var Pp;(function(t){t.Invoked=0,t.Automatic=1})(Pp||(Pp={}));var zp;(function(t){function e(n,i){return{range:n,text:i}}t.create=e})(zp||(zp={}));var Np;(function(t){function e(n,i){return{triggerKind:n,selectedCompletionInfo:i}}t.create=e})(Np||(Np={}));var Op;(function(t){function e(n){let i=n;return E.objectLiteral(i)&&Ac.is(i.uri)&&E.string(i.name)}t.is=e})(Op||(Op={}));var Wp;(function(t){function e(s,o,a,l){return new Gc(s,o,a,l)}t.create=e;function n(s){let o=s;return!!(E.defined(o)&&E.string(o.uri)&&(E.undefined(o.languageId)||E.string(o.languageId))&&E.uinteger(o.lineCount)&&E.func(o.getText)&&E.func(o.positionAt)&&E.func(o.offsetAt))}t.is=n;function i(s,o){let a=s.getText(),l=r(o,(d,p)=>{let b=d.range.start.line-p.range.start.line;return b===0?d.range.start.character-p.range.start.character:b}),c=a.length;for(let d=l.length-1;d>=0;d--){let p=l[d],b=s.offsetAt(p.range.start),y=s.offsetAt(p.range.end);if(y<=c)a=a.substring(0,b)+p.newText+a.substring(y,a.length);else throw new Error("Overlapping edit");c=b}return a}t.applyEdits=i;function r(s,o){if(s.length<=1)return s;let a=s.length/2|0,l=s.slice(0,a),c=s.slice(a);r(l,o),r(c,o);let d=0,p=0,b=0;for(;d<l.length&&p<c.length;)o(l[d],c[p])<=0?s[b++]=l[d++]:s[b++]=c[p++];for(;d<l.length;)s[b++]=l[d++];for(;p<c.length;)s[b++]=c[p++];return s}})(Wp||(Wp={}));var Gc=class{constructor(e,n,i,r){this._uri=e,this._languageId=n,this._version=i,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let n=this.offsetAt(e.start),i=this.offsetAt(e.end);return this._content.substring(n,i)}return this._content}update(e,n){this._content=e.text,this._version=n,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let e=[],n=this._content,i=!0;for(let r=0;r<n.length;r++){i&&(e.push(r),i=!1);let s=n.charAt(r);i=s==="\r"||s===`
|
36
36
|
`,s==="\r"&&r+1<n.length&&n.charAt(r+1)===`
|
37
|
-
`&&r++}i&&n.length>0&&e.push(n.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let n=this.getLineOffsets(),i=0,r=n.length;if(r===0)return Xe.create(0,e);for(;i<r;){let o=Math.floor((i+r)/2);n[o]>e?r=o:i=o+1}let s=i-1;return Xe.create(s,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 i=n[e.line],r=e.line+1<n.length?n[e.line+1]:this._content.length;return Math.max(Math.min(i+e.character,r),i)}get lineCount(){return this.getLineOffsets().length}},
|
37
|
+
`&&r++}i&&n.length>0&&e.push(n.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let n=this.getLineOffsets(),i=0,r=n.length;if(r===0)return Xe.create(0,e);for(;i<r;){let o=Math.floor((i+r)/2);n[o]>e?r=o:i=o+1}let s=i-1;return Xe.create(s,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 i=n[e.line],r=e.line+1<n.length?n[e.line+1]:this._content.length;return Math.max(Math.min(i+e.character,r),i)}get lineCount(){return this.getLineOffsets().length}},E;(function(t){let e=Object.prototype.toString;function n(y){return typeof y<"u"}t.defined=n;function i(y){return typeof y>"u"}t.undefined=i;function r(y){return y===!0||y===!1}t.boolean=r;function s(y){return e.call(y)==="[object String]"}t.string=s;function o(y){return e.call(y)==="[object Number]"}t.number=o;function a(y,M,P){return e.call(y)==="[object Number]"&&M<=y&&y<=P}t.numberRange=a;function l(y){return e.call(y)==="[object Number]"&&-2147483648<=y&&y<=2147483647}t.integer=l;function c(y){return e.call(y)==="[object Number]"&&0<=y&&y<=2147483647}t.uinteger=c;function d(y){return e.call(y)==="[object Function]"}t.func=d;function p(y){return y!==null&&typeof y=="object"}t.objectLiteral=p;function b(y,M){return Array.isArray(y)&&y.every(M)}t.typedArray=b})(E||(E={}));var qo=class t{constructor(e,n,i,r){this._uri=e,this._languageId=n,this._version=i,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let n=this.offsetAt(e.start),i=this.offsetAt(e.end);return this._content.substring(n,i)}return this._content}update(e,n){for(let i of e)if(t.isIncremental(i)){let r=jp(i.range),s=this.offsetAt(r.start),o=this.offsetAt(r.end);this._content=this._content.substring(0,s)+i.text+this._content.substring(o,this._content.length);let a=Math.max(r.start.line,0),l=Math.max(r.end.line,0),c=this._lineOffsets,d=Lp(i.text,!1,s);if(l-a===d.length)for(let b=0,y=d.length;b<y;b++)c[b+a+1]=d[b];else d.length<1e4?c.splice(a+1,l-a,...d):this._lineOffsets=c=c.slice(0,a+1).concat(d,c.slice(l+1));let p=i.text.length-(o-s);if(p!==0)for(let b=a+1+d.length,y=c.length;b<y;b++)c[b]=c[b]+p}else if(t.isFull(i))this._content=i.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received");this._version=n}getLineOffsets(){return this._lineOffsets===void 0&&(this._lineOffsets=Lp(this._content,!0)),this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let n=this.getLineOffsets(),i=0,r=n.length;if(r===0)return{line:0,character:e};for(;i<r;){let o=Math.floor((i+r)/2);n[o]>e?r=o:i=o+1}let s=i-1;return e=this.ensureBeforeEOL(e,n[s]),{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 i=n[e.line];if(e.character<=0)return i;let r=e.line+1<n.length?n[e.line+1]:this._content.length,s=Math.min(i+e.character,r);return this.ensureBeforeEOL(s,i)}ensureBeforeEOL(e,n){for(;e>n&&qp(this._content.charCodeAt(e-1));)e--;return e}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}},Ji;(function(t){function e(r,s,o,a){return new qo(r,s,o,a)}t.create=e;function n(r,s,o){if(r instanceof qo)return r.update(s,o),r;throw new Error("TextDocument.update: document must be created by TextDocument.create")}t.update=n;function i(r,s){let o=r.getText(),a=Jc(s.map(lv),(d,p)=>{let b=d.range.start.line-p.range.start.line;return b===0?d.range.start.character-p.range.start.character:b}),l=0,c=[];for(let d of a){let p=r.offsetAt(d.range.start);if(p<l)throw new Error("Overlapping edit");p>l&&c.push(o.substring(l,p)),d.newText.length&&c.push(d.newText),l=r.offsetAt(d.range.end)}return c.push(o.substr(l)),c.join("")}t.applyEdits=i})(Ji||(Ji={}));function Jc(t,e){if(t.length<=1)return t;let n=t.length/2|0,i=t.slice(0,n),r=t.slice(n);Jc(i,e),Jc(r,e);let s=0,o=0,a=0;for(;s<i.length&&o<r.length;)e(i[s],r[o])<=0?t[a++]=i[s++]:t[a++]=r[o++];for(;s<i.length;)t[a++]=i[s++];for(;o<r.length;)t[a++]=r[o++];return t}function Lp(t,e,n=0){let i=e?[n]:[];for(let r=0;r<t.length;r++){let s=t.charCodeAt(r);qp(s)&&(s===13&&r+1<t.length&&t.charCodeAt(r+1)===10&&r++,i.push(n+r+1))}return i}function qp(t){return t===13||t===10}function jp(t){let 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 lv(t){let e=jp(t.range);return e!==t.range?{newText:t.newText,range:e}:t}var $p;(function(t){t.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[bt.Markdown,bt.PlainText]}},hover:{contentFormat:[bt.Markdown,bt.PlainText]}}}})($p||($p={}));var ai;(function(t){t[t.Unknown=0]="Unknown",t[t.File=1]="File",t[t.Directory=2]="Directory",t[t.SymbolicLink=64]="SymbolicLink"})(ai||(ai={}));var Up={E:"Edge",FF:"Firefox",S:"Safari",C:"Chrome",IE:"IE",O:"Opera"};function Vp(t){switch(t){case"experimental":return`\u26A0\uFE0F Property is experimental. Be cautious when using it.\uFE0F
|
38
38
|
|
39
39
|
`;case"nonstandard":return`\u{1F6A8}\uFE0F Property is nonstandard. Avoid using it.
|
40
40
|
|
@@ -51,19 +51,19 @@ Syntax: ${t.syntax}`)}return t.references&&t.references.length>0&&e?.references!
|
|
51
51
|
|
52
52
|
Syntax: ${jo(t.syntax)}`)}return t.references&&t.references.length>0&&e?.references!==!1&&(n.length>0&&(n+=`
|
53
53
|
|
54
|
-
`),n+=t.references.map(i=>`[${i.name}](${i.url})`).join(" | ")),n}function Bp(t=[]){if(t.length===0)return null;let e=[];for(let n of t){let i=n.match(/([A-Z]+)(\d+)?/),r=i[1],s=i[2];if(r in Up){let o=Up[r];s&&(o+=" "+s),e.push(o)}}return e.join(", ")}var Ie=lt(Rt()),hv=/(^#([0-9A-F]{3}){1,2}$)|(^#([0-9A-F]{4}){1,2}$)/i,Gp=[{label:"rgb",func:"rgb($red, $green, $blue)",insertText:"rgb(${1:red}, ${2:green}, ${3:blue})",desc:Ie.t("Creates a Color from red, green, and blue values.")},{label:"rgba",func:"rgba($red, $green, $blue, $alpha)",insertText:"rgba(${1:red}, ${2:green}, ${3:blue}, ${4:alpha})",desc:Ie.t("Creates a Color from red, green, blue, and alpha values.")},{label:"rgb relative",func:"rgb(from $color $red $green $blue)",insertText:"rgb(from ${1:color} ${2:r} ${3:g} ${4:b})",desc:Ie.t("Creates a Color from the red, green, and blue values of another Color.")},{label:"hsl",func:"hsl($hue, $saturation, $lightness)",insertText:"hsl(${1:hue}, ${2:saturation}, ${3:lightness})",desc:Ie.t("Creates a Color from hue, saturation, and lightness values.")},{label:"hsla",func:"hsla($hue, $saturation, $lightness, $alpha)",insertText:"hsla(${1:hue}, ${2:saturation}, ${3:lightness}, ${4:alpha})",desc:Ie.t("Creates a Color from hue, saturation, lightness, and alpha values.")},{label:"hsl relative",func:"hsl(from $color $hue $saturation $lightness)",insertText:"hsl(from ${1:color} ${2:h} ${3:s} ${4:l})",desc:Ie.t("Creates a Color from the hue, saturation, and lightness values of another Color.")},{label:"hwb",func:"hwb($hue $white $black)",insertText:"hwb(${1:hue} ${2:white} ${3:black})",desc:Ie.t("Creates a Color from hue, white, and black values.")},{label:"hwb relative",func:"hwb(from $color $hue $white $black)",insertText:"hwb(from ${1:color} ${2:h} ${3:w} ${4:b})",desc:Ie.t("Creates a Color from the hue, white, and black values of another Color.")},{label:"lab",func:"lab($lightness $a $b)",insertText:"lab(${1:lightness} ${2:a} ${3:b})",desc:Ie.t("Creates a Color from lightness, a, and b values.")},{label:"lab relative",func:"lab(from $color $lightness $a $b)",insertText:"lab(from ${1:color} ${2:l} ${3:a} ${4:b})",desc:Ie.t("Creates a Color from the lightness, a, and b values of another Color.")},{label:"oklab",func:"oklab($lightness $a $b)",insertText:"oklab(${1:lightness} ${2:a} ${3:b})",desc:Ie.t("Creates a Color from lightness, a, and b values.")},{label:"oklab relative",func:"oklab(from $color $lightness $a $b)",insertText:"oklab(from ${1:color} ${2:l} ${3:a} ${4:b})",desc:Ie.t("Creates a Color from the lightness, a, and b values of another Color.")},{label:"lch",func:"lch($lightness $chroma $hue)",insertText:"lch(${1:lightness} ${2:chroma} ${3:hue})",desc:Ie.t("Creates a Color from lightness, chroma, and hue values.")},{label:"lch relative",func:"lch(from $color $lightness $chroma $hue)",insertText:"lch(from ${1:color} ${2:l} ${3:c} ${4:h})",desc:Ie.t("Creates a Color from the lightness, chroma, and hue values of another Color.")},{label:"oklch",func:"oklch($lightness $chroma $hue)",insertText:"oklch(${1:lightness} ${2:chroma} ${3:hue})",desc:Ie.t("Creates a Color from lightness, chroma, and hue values.")},{label:"oklch relative",func:"oklch(from $color $lightness $chroma $hue)",insertText:"oklch(from ${1:color} ${2:l} ${3:c} ${4:h})",desc:Ie.t("Creates a Color from the lightness, chroma, and hue values of another Color.")},{label:"color",func:"color($color-space $red $green $blue)",insertText:"color(${1|srgb,srgb-linear,display-p3,a98-rgb,prophoto-rgb,rec2020,xyx,xyz-d50,xyz-d65|} ${2:red} ${3:green} ${4:blue})",desc:Ie.t("Creates a Color in a specific color space from red, green, and blue values.")},{label:"color relative",func:"color(from $color $color-space $red $green $blue)",insertText:"color(from ${1:color} ${2|srgb,srgb-linear,display-p3,a98-rgb,prophoto-rgb,rec2020,xyx,xyz-d50,xyz-d65|} ${3:r} ${4:g} ${5:b})",desc:Ie.t("Creates a Color in a specific color space from the red, green, and blue values of another Color.")},{label:"color-mix",func:"color-mix(in $color-space, $color $percentage, $color $percentage)",insertText:"color-mix(in ${1|srgb,srgb-linear,lab,oklab,xyz,xyz-d50,xyz-d65|}, ${3:color} ${4:percentage}, ${5:color} ${6:percentage})",desc:Ie.t("Mix two colors together in a rectangular color space.")},{label:"color-mix hue",func:"color-mix(in $color-space $interpolation-method hue, $color $percentage, $color $percentage)",insertText:"color-mix(in ${1|hsl,hwb,lch,oklch|} ${2|shorter hue,longer hue,increasing hue,decreasing hue|}, ${3:color} ${4:percentage}, ${5:color} ${6:percentage})",desc:Ie.t("Mix two colors together in a polar color space.")},{label:"lab",func:"lab($lightness $channel_a $channel_b $alpha)",insertText:"lab(${1:lightness} ${2:a} ${3:b} ${4:alpha})",desc:Ie.t("css.builtin.lab","Creates a Color from Lightness, Channel a, Channel b and alpha values.")},{label:"lab relative",func:"lab(from $color $lightness $channel_a $channel_b $alpha)",insertText:"lab(from ${1:color} ${2:lightness} ${3:channel_a} ${4:channel_b} ${5:alpha})",desc:Ie.t("css.builtin.lab","Creates a Color from Lightness, Channel a, Channel b and alpha values of another Color.")},{label:"lch",func:"lch($lightness $chrome $hue $alpha)",insertText:"lch(${1:lightness} ${2:chrome} ${3:hue} ${4:alpha})",desc:Ie.t("css.builtin.lab","Creates a Color from Lightness, Chroma, Hue and alpha values.")},{label:"lch relative",func:"lch(from $color $lightness $chrome $hue $alpha)",insertText:"lch(from ${1:color} ${2:lightness} ${3:chrome} ${4:hue} ${5:alpha})",desc:Ie.t("css.builtin.lab","Creates a Color from Lightness, Chroma, Hue and alpha values of another Color.")}],uv=/^(rgb|rgba|hsl|hsla|hwb|lab|lch)$/i,Lr={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"},pv=new RegExp(`^(${Object.keys(Lr).join("|")})$`,"i"),Uo={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."},mv=new RegExp(`^(${Object.keys(Uo).join("|")})$`,"i");function St(t,e,n=0,i=1){let s=t.getText().match(/^([-+]?[0-9]*\.?[0-9]+)(%?)$/);if(s){s[2]&&(e=100);let o=parseFloat(s[1])/e;if(o>=n&&o<=i)return o}throw new Error}function Xc(t){let 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 Jp(t){let e=t.getName();return e?uv.test(e):!1}function Yc(t){return hv.test(t)||pv.test(t)||mv.test(t)}var Hp=48,fv=57,gv=65;var $o=97,bv=102;function Ve(t){return t<Hp?0:t<=fv?t-Hp:(t<$o&&(t+=$o-gv),t>=$o&&t<=bv?t-$o+10:0)}function Kp(t){if(t[0]!=="#")return null;switch(t.length){case 4:return{red:Ve(t.charCodeAt(1))*17/255,green:Ve(t.charCodeAt(2))*17/255,blue:Ve(t.charCodeAt(3))*17/255,alpha:1};case 5:return{red:Ve(t.charCodeAt(1))*17/255,green:Ve(t.charCodeAt(2))*17/255,blue:Ve(t.charCodeAt(3))*17/255,alpha:Ve(t.charCodeAt(4))*17/255};case 7:return{red:(Ve(t.charCodeAt(1))*16+Ve(t.charCodeAt(2)))/255,green:(Ve(t.charCodeAt(3))*16+Ve(t.charCodeAt(4)))/255,blue:(Ve(t.charCodeAt(5))*16+Ve(t.charCodeAt(6)))/255,alpha:1};case 9:return{red:(Ve(t.charCodeAt(1))*16+Ve(t.charCodeAt(2)))/255,green:(Ve(t.charCodeAt(3))*16+Ve(t.charCodeAt(4)))/255,blue:(Ve(t.charCodeAt(5))*16+Ve(t.charCodeAt(6)))/255,alpha:(Ve(t.charCodeAt(7))*16+Ve(t.charCodeAt(8)))/255}}return null}function Xp(t,e,n,i=1){if(t=t/60,e===0)return{red:n,green:n,blue:n,alpha:i};{let r=(a,l,c)=>{for(;c<0;)c+=6;for(;c>=6;)c-=6;return c<1?(l-a)*c+a:c<3?l:c<4?(l-a)*(4-c)+a:a},s=n<=.5?n*(e+1):n+e-n*e,o=n*2-s;return{red:r(o,s,t+2),green:r(o,s,t),blue:r(o,s,t-2),alpha:i}}}function Qc(t){let e=t.red,n=t.green,i=t.blue,r=t.alpha,s=Math.max(e,n,i),o=Math.min(e,n,i),a=0,l=0,c=(o+s)/2,d=s-o;if(d>0){switch(l=Math.min(c<=.5?d/(2*c):d/(2-2*c),1),s){case e:a=(n-i)/d+(n<i?6:0);break;case n:a=(i-e)/d+2;break;case i:a=(e-n)/d+4;break}a*=60,a=Math.round(a)}return{h:a,s:l,l:c,a:r}}function yv(t,e,n,i=1){if(e+n>=1){let l=e/(e+n);return{red:l,green:l,blue:l,alpha:i}}let r=Xp(t,1,.5,i),s=r.red;s*=1-e-n,s+=e;let o=r.green;o*=1-e-n,o+=e;let a=r.blue;return a*=1-e-n,a+=e,{red:s,green:o,blue:a,alpha:i}}function Yp(t){let e=Qc(t),n=Math.min(t.red,t.green,t.blue),i=1-Math.max(t.red,t.green,t.blue);return{h:e.h,w:n,b:i,a:e.a}}function wv(t){let e={x:0,y:0,z:0,alpha:t.alpha??1};e.y=(t.l+16)/116,e.x=t.a/500+e.y,e.z=e.y-t.b/200;let n;for(n in e){let i=e[n]*e[n]*e[n];i>.008856?e[n]=i:e[n]=(e[n]-16/116)/7.787}return e.x=e.x*95.047,e.y=e.y*100,e.z=e.z*108.883,e}function vv(t){let e=t.x/100,n=t.y/100,i=t.z/100,r=3.2406254773200533*e-1.5372079722103187*n-.4986285986982479*i,s=-.9689307147293197*e+1.8757560608852415*n+.041517523842953964*i,o=.055710120445510616*e+-.2040210505984867*n+1.0569959422543882*i,a=l=>l<=.0031308?12.92*l:Math.min(1.055*Math.pow(l,1/2.4)-.055,1);return{red:Math.round(a(r)*255),blue:Math.round(a(o)*255),green:Math.round(a(s)*255),alpha:t.alpha}}function Sv(t){let e=t.red,n=t.green,i=t.blue;e>.04045?e=Math.pow((e+.055)/1.055,2.4):e=e/12.92,n>.04045?n=Math.pow((n+.055)/1.055,2.4):n=n/12.92,i>.04045?i=Math.pow((i+.055)/1.055,2.4):i=i/12.92,e=e*100,n=n*100,i=i*100;let r=e*.4124+n*.3576+i*.1805,s=e*.2126+n*.7152+i*.0722,o=e*.0193+n*.1192+i*.9505;return{x:r,y:s,z:o,alpha:t.alpha}}function _v(t,e=!0){let s=t.x/95.047,o=t.y/100,a=t.z/108.883;s>.008856?s=Math.pow(s,1/3):s=7.787*s+16/116,o>.008856?o=Math.pow(o,1/3):o=7.787*o+16/116,a>.008856?a=Math.pow(a,1/3):a=7.787*a+16/116;let l=116*o-16,c=500*(s-o),d=200*(o-a);return e?{l:Math.round((l+Number.EPSILON)*100)/100,a:Math.round((c+Number.EPSILON)*100)/100,b:Math.round((d+Number.EPSILON)*100)/100,alpha:t.alpha}:{l,a:c,b:d,alpha:t.alpha}}function Zc(t,e=!0){let n=Sv(t);return _v(n,e)}function Qp(t){let e=Zc(t,!1),n=Math.sqrt(Math.pow(e.a,2)+Math.pow(e.b,2)),i=Math.atan2(e.b,e.a)*(180/Math.PI);for(;i<0;)i=i+360;return{l:Math.round((e.l+Number.EPSILON)*100)/100,c:Math.round((n+Number.EPSILON)*100)/100,h:Math.round((i+Number.EPSILON)*100)/100,alpha:e.alpha}}function Zp(t,e,n,i=1){let s=wv({l:t,a:e,b:n,alpha:i}),o=vv(s);return{red:(o.red>=0?o.red<=255?o.red:255:0)/255,green:(o.green>=0?o.green<=255?o.green:255:0)/255,blue:(o.blue>=0?o.blue<=255?o.blue:255:0)/255,alpha:i}}function xv(t,e,n,i=1){return{l:t,a:e*Math.cos(n*(Math.PI/180)),b:e*Math.sin(n*(Math.PI/180)),alpha:i}}function Cv(t,e,n,i=1){let r=xv(t,e,n,i);return Zp(r.l,r.a,r.b,i)}function em(t){if(t.type===v.HexColorValue){let e=t.getText();return Kp(e)}else if(t.type===v.Function){let e=t,n=e.getName(),i=e.getArguments().getChildren();if(i.length===1){let r=i[0].getChildren();if(r.length===1&&r[0].type===v.Expression&&(i=r[0].getChildren(),i.length===3)){let s=i[2];if(s instanceof Nn){let o=s.getLeft(),a=s.getRight(),l=s.getOperator();o&&a&&l&&l.matches("/")&&(i=[i[0],i[1],o,a])}}}if(!n||i.length<3||i.length>4)return null;try{let r=i.length===4?St(i[3],1):1;if(n==="rgb"||n==="rgba")return{red:St(i[0],255),green:St(i[1],255),blue:St(i[2],255),alpha:r};if(n==="hsl"||n==="hsla"){let s=Xc(i[0]),o=St(i[1],100),a=St(i[2],100);return Xp(s,o,a,r)}else if(n==="hwb"){let s=Xc(i[0]),o=St(i[1],100),a=St(i[2],100);return yv(s,o,a,r)}else if(n==="lab"){let s=St(i[0],100),o=St(i[1],125,-1),a=St(i[2],125,-1);return Zp(s*100,o*125,a*125,r)}else if(n==="lch"){let s=St(i[0],100),o=St(i[1],230),a=Xc(i[2]);return Cv(s*100,o*230,a,r)}}catch{return null}}else if(t.type===v.Identifier){if(t.parent&&t.parent.type!==v.Term)return null;let e=t.parent;if(e&&e.parent&&e.parent.type===v.BinaryExpression){let r=e.parent;if(r.parent&&r.parent.type===v.ListEntry&&r.parent.key===r)return null}let n=t.getText().toLowerCase();if(n==="none")return null;let i=Lr[n];if(i)return Kp(i)}return null}var ed={bottom:"Computes to \u2018100%\u2019 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 \u201850%\u2019 (\u2018left 50%\u2019) for the horizontal position if the horizontal position is not otherwise specified, or \u201850%\u2019 (\u2018top 50%\u2019) for the vertical position if it is.",left:"Computes to \u20180%\u2019 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 \u2018100%\u2019 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 \u20180%\u2019 for the vertical position if one or two values are given, otherwise specifies the top edge as the origin for the next offset."},td={"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 \u2018repeat no-repeat\u2019.","repeat-y":"Computes to \u2018no-repeat repeat\u2019.",round:"Repeated as often as will fit within the background positioning area. If it doesn\u2019t 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."},nd={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 \u2018none\u2019, 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."},tm=["medium","thick","thin"],id={"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."},rd={"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."},sd={initial:"Represents the value specified as the property\u2019s initial value.",inherit:"Represents the computed value of the property on the element\u2019s parent.",unset:"Acts as either `inherit` or `initial`, depending on whether the property is inherited or not."},od={"var()":"Evaluates the value of a custom variable.","calc()":"Evaluates an mathematical expression. The following operators can be used: + - * /."},ad={"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\u2019s position and the first specified color-stop\u2019s 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\u2019s position and the first specified color-stop\u2019s position."},ld={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 \u201Cstart\u201D or \u201Cend\u201D.","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."},cd={"circle()":"Defines a circle.","ellipse()":"Defines an ellipse.","inset()":"Defines an inset rectangle.","polygon()":"Defines a polygon."},Vo={length:["cap","ch","cm","cqb","cqh","cqi","cqmax","cqmin","cqw","dvb","dvh","dvi","dvw","em","ex","ic","in","lh","lvb","lvh","lvi","lvw","mm","pc","pt","px","q","rcap","rch","rem","rex","ric","rlh","svb","svh","svi","svw","vb","vh","vi","vmax","vmin","vw"],angle:["deg","rad","grad","turn"],time:["ms","s"],frequency:["Hz","kHz"],resolution:["dpi","dpcm","dppx"],percentage:["%","fr"]},nm=["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"],im=["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"],rm=["@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 qr(t){return Object.keys(t).map(e=>t[e])}function ft(t){return typeof t<"u"}var qn=class{constructor(e=new At){this.keyframeRegex=/^@(\-(webkit|ms|moz|o)\-)?keyframes$/i,this.scanner=e,this.token={type:g.EOF,offset:-1,len:0,text:""},this.prevToken=void 0}peekIdent(e){return g.Ident===this.token.type&&e.length===this.token.text.length&&e===this.token.text.toLowerCase()}peekKeyword(e){return g.AtKeyword===this.token.type&&e.length===this.token.text.length&&e===this.token.text.toLowerCase()}peekDelim(e){return g.Delim===this.token.type&&e===this.token.text}peek(e){return e===this.token.type}peekOne(...e){return e.indexOf(this.token.type)!==-1}peekRegExp(e,n){return e!==this.token.type?!1:n.test(this.token.text)}hasWhitespace(){return!!this.prevToken&&this.prevToken.offset+this.prevToken.len!==this.token.offset}consumeToken(){this.prevToken=this.token,this.token=this.scanner.scan()}acceptUnicodeRange(){let e=this.scanner.tryScanUnicode();return e?(this.prevToken=e,this.token=this.scanner.scan(),!0):!1}mark(){return{prev:this.prevToken,curr:this.token,pos:this.scanner.pos()}}restoreAtMark(e){this.prevToken=e.prev,this.token=e.curr,this.scanner.goBackTo(e.pos)}try(e){let n=this.mark(),i=e();return i||(this.restoreAtMark(n),null)}acceptOneKeyword(e){if(g.AtKeyword===this.token.type){for(let n of e)if(n.length===this.token.text.length&&n===this.token.text.toLowerCase())return this.consumeToken(),!0}return!1}accept(e){return e===this.token.type?(this.consumeToken(),!0):!1}acceptIdent(e){return this.peekIdent(e)?(this.consumeToken(),!0):!1}acceptKeyword(e){return this.peekKeyword(e)?(this.consumeToken(),!0):!1}acceptDelim(e){return this.peekDelim(e)?(this.consumeToken(),!0):!1}acceptRegexp(e){return e.test(this.token.text)?(this.consumeToken(),!0):!1}_parseRegexp(e){let n=this.createNode(v.Identifier);do;while(this.acceptRegexp(e));return this.finish(n)}acceptUnquotedString(){let e=this.scanner.pos();this.scanner.goBackTo(this.token.offset);let n=this.scanner.scanUnquotedString();return n?(this.token=n,this.consumeToken(),!0):(this.scanner.goBackTo(e),!1)}resync(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===g.EOF)return!1;this.token=this.scanner.scan()}}createNode(e){return new te(this.token.offset,this.token.len,e)}create(e){return new e(this.token.offset,this.token.len)}finish(e,n,i,r){if(!(e instanceof Et)&&(n&&this.markError(e,n,i,r),this.prevToken)){let s=this.prevToken.offset+this.prevToken.len;e.length=s>e.offset?s-e.offset:0}return e}markError(e,n,i,r){this.token!==this.lastErrorToken&&(e.addIssue(new $i(e,n,rt.Error,void 0,this.token.offset,this.token.len)),this.lastErrorToken=this.token),(i||r)&&this.resync(i,r)}parseStylesheet(e){let n=e.version,i=e.getText(),r=(s,o)=>{if(e.version!==n)throw new Error("Underlying model has changed, AST is no longer valid");return i.substr(s,o)};return this.internalParse(i,this._parseStylesheet,r)}internalParse(e,n,i){this.scanner.setSource(e),this.token=this.scanner.scan();let r=n.bind(this)();return r&&(i?r.textProvider=i:r.textProvider=(s,o)=>e.substr(s,o)),r}_parseStylesheet(){let e=this.create(fo);for(;e.addChild(this._parseStylesheetStart()););let n=!1;do{let i=!1;do{i=!1;let r=this._parseStylesheetStatement();for(r&&(e.addChild(r),i=!0,n=!1,!this.peek(g.EOF)&&this._needsSemicolonAfter(r)&&!this.accept(g.SemiColon)&&this.markError(e,V.SemiColonExpected));this.accept(g.SemiColon)||this.accept(g.CDO)||this.accept(g.CDC);)i=!0,n=!1}while(i);if(this.peek(g.EOF))break;n||(this.peek(g.AtKeyword)?this.markError(e,V.UnknownAtRule):this.markError(e,V.RuleOrSelectorExpected),n=!0),this.consumeToken()}while(!this.peek(g.EOF));return this.finish(e)}_parseStylesheetStart(){return this._parseCharset()}_parseStylesheetStatement(e=!1){return this.peek(g.AtKeyword)?this._parseStylesheetAtStatement(e):this._parseRuleset(e)}_parseStylesheetAtStatement(e=!1){return this._parseImport()||this._parseMedia(e)||this._parsePage()||this._parseFontFace()||this._parseKeyframe()||this._parseSupports(e)||this._parseLayer(e)||this._parsePropertyAtRule()||this._parseViewPort()||this._parseNamespace()||this._parseDocument()||this._parseContainer(e)||this._parseStartingStyleAtRule(e)||this._parseUnknownAtRule()}_tryParseRuleset(e){let n=this.mark();if(this._parseSelector(e)){for(;this.accept(g.Comma)&&this._parseSelector(e););if(this.accept(g.CurlyL))return this.restoreAtMark(n),this._parseRuleset(e)}return this.restoreAtMark(n),null}_parseRuleset(e=!1){let n=this.create(vt),i=n.getSelectors();if(!i.addChild(this._parseSelector(e)))return null;for(;this.accept(g.Comma);)if(!i.addChild(this._parseSelector(e)))return this.finish(n,V.SelectorExpected);return this._parseBody(n,this._parseRuleSetDeclaration.bind(this))}_parseRuleSetDeclarationAtStatement(){return this._parseMedia(!0)||this._parseSupports(!0)||this._parseLayer(!0)||this._parseContainer(!0)||this._parseStartingStyleAtRule(!0)||this._parseUnknownAtRule()}_parseRuleSetDeclaration(){return this.peek(g.AtKeyword)?this._parseRuleSetDeclarationAtStatement():this.peek(g.Ident)?this._tryParseRuleset(!0)||this._parseDeclaration():this._parseRuleset(!0)}_needsSemicolonAfter(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}_parseDeclarations(e){let n=this.create(ti);if(!this.accept(g.CurlyL))return null;let i=e();for(;n.addChild(i)&&!this.peek(g.CurlyR);){if(this._needsSemicolonAfter(i)&&!this.accept(g.SemiColon))return this.finish(n,V.SemiColonExpected,[g.SemiColon,g.CurlyR]);for(i&&this.prevToken&&this.prevToken.type===g.SemiColon&&(i.semicolonPosition=this.prevToken.offset);this.accept(g.SemiColon););i=e()}return this.accept(g.CurlyR)?this.finish(n):this.finish(n,V.RightCurlyExpected,[g.CurlyR,g.SemiColon])}_parseBody(e,n){return e.setDeclarations(this._parseDeclarations(n))?this.finish(e):this.finish(e,V.LeftCurlyExpected,[g.CurlyR,g.SemiColon])}_parseSelector(e){let n=this.create(Ut),i=!1;for(e&&(i=n.addChild(this._parseCombinator()));n.addChild(this._parseSimpleSelector());)i=!0,n.addChild(this._parseCombinator());return i?this.finish(n):null}_parseDeclaration(e){let n=this._tryParseCustomPropertyDeclaration(e);if(n)return n;let i=this.create(it);return i.setProperty(this._parseProperty())?this.accept(g.Colon)?(this.prevToken&&(i.colonPosition=this.prevToken.offset),i.setValue(this._parseExpr())?(i.addChild(this._parsePrio()),this.peek(g.SemiColon)&&(i.semicolonPosition=this.token.offset),this.finish(i)):this.finish(i,V.PropertyValueExpected)):this.finish(i,V.ColonExpected,[g.Colon],e||[g.SemiColon]):null}_tryParseCustomPropertyDeclaration(e){if(!this.peekRegExp(g.Ident,/^--/))return null;let n=this.create(bo);if(!n.setProperty(this._parseProperty()))return null;if(!this.accept(g.Colon))return this.finish(n,V.ColonExpected,[g.Colon]);this.prevToken&&(n.colonPosition=this.prevToken.offset);let i=this.mark();if(this.peek(g.CurlyL)){let s=this.create(go),o=this._parseDeclarations(this._parseRuleSetDeclaration.bind(this));if(s.setDeclarations(o)&&!o.isErroneous(!0)&&(s.addChild(this._parsePrio()),this.peek(g.SemiColon)))return this.finish(s),n.setPropertySet(s),n.semicolonPosition=this.token.offset,this.finish(n);this.restoreAtMark(i)}let r=this._parseExpr();return r&&!r.isErroneous(!0)&&(this._parsePrio(),this.peekOne(...e||[],g.SemiColon,g.EOF))?(n.setValue(r),this.peek(g.SemiColon)&&(n.semicolonPosition=this.token.offset),this.finish(n)):(this.restoreAtMark(i),n.addChild(this._parseCustomPropertyValue(e)),n.addChild(this._parsePrio()),ft(n.colonPosition)&&this.token.offset===n.colonPosition+1?this.finish(n,V.PropertyValueExpected):this.finish(n))}_parseCustomPropertyValue(e=[g.CurlyR]){let n=this.create(te),i=()=>s===0&&o===0&&a===0,r=()=>e.indexOf(this.token.type)!==-1,s=0,o=0,a=0;e:for(;;){switch(this.token.type){case g.SemiColon:if(i())break e;break;case g.Exclamation:if(i())break e;break;case g.CurlyL:s++;break;case g.CurlyR:if(s--,s<0){if(r()&&o===0&&a===0)break e;return this.finish(n,V.LeftCurlyExpected)}break;case g.ParenthesisL:o++;break;case g.ParenthesisR:if(o--,o<0){if(r()&&a===0&&s===0)break e;return this.finish(n,V.LeftParenthesisExpected)}break;case g.BracketL:a++;break;case g.BracketR:if(a--,a<0)return this.finish(n,V.LeftSquareBracketExpected);break;case g.BadString:break e;case g.EOF:let l=V.RightCurlyExpected;return a>0?l=V.RightSquareBracketExpected:o>0&&(l=V.RightParenthesisExpected),this.finish(n,l)}this.consumeToken()}return this.finish(n)}_tryToParseDeclaration(e){let n=this.mark();return this._parseProperty()&&this.accept(g.Colon)?(this.restoreAtMark(n),this._parseDeclaration(e)):(this.restoreAtMark(n),null)}_parseProperty(){let e=this.create(Tn),n=this.mark();return(this.acceptDelim("*")||this.acceptDelim("_"))&&this.hasWhitespace()?(this.restoreAtMark(n),null):e.setIdentifier(this._parsePropertyIdentifier())?this.finish(e):null}_parsePropertyIdentifier(){return this._parseIdent()}_parseCharset(){if(!this.peek(g.Charset))return null;let e=this.create(te);return this.consumeToken(),this.accept(g.String)?this.accept(g.SemiColon)?this.finish(e):this.finish(e,V.SemiColonExpected):this.finish(e,V.IdentifierExpected)}_parseImport(){if(!this.peekKeyword("@import"))return null;let e=this.create(zi);return this.consumeToken(),!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral())?this.finish(e,V.URIOrStringExpected):this._completeParseImport(e)}_completeParseImport(e){if(this.acceptIdent("layer")&&this.accept(g.ParenthesisL)){if(!e.addChild(this._parseLayerName()))return this.finish(e,V.IdentifierExpected,[g.SemiColon]);if(!this.accept(g.ParenthesisR))return this.finish(e,V.RightParenthesisExpected,[g.ParenthesisR],[])}return this.acceptIdent("supports")&&this.accept(g.ParenthesisL)&&(e.addChild(this._tryToParseDeclaration()||this._parseSupportsCondition()),!this.accept(g.ParenthesisR))?this.finish(e,V.RightParenthesisExpected,[g.ParenthesisR],[]):(!this.peek(g.SemiColon)&&!this.peek(g.EOF)&&e.setMedialist(this._parseMediaQueryList()),this.finish(e))}_parseNamespace(){if(!this.peekKeyword("@namespace"))return null;let e=this.create(vo);return this.consumeToken(),!e.addChild(this._parseURILiteral())&&(e.addChild(this._parseIdent()),!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral()))?this.finish(e,V.URIExpected,[g.SemiColon]):this.accept(g.SemiColon)?this.finish(e):this.finish(e,V.SemiColonExpected)}_parseFontFace(){if(!this.peekKeyword("@font-face"))return null;let e=this.create(Ii);return this.consumeToken(),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))}_parseViewPort(){if(!this.peekKeyword("@-ms-viewport")&&!this.peekKeyword("@-o-viewport")&&!this.peekKeyword("@viewport"))return null;let e=this.create(yo);return this.consumeToken(),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))}_parseKeyframe(){if(!this.peekRegExp(g.AtKeyword,this.keyframeRegex))return null;let e=this.create(Pi),n=this.create(te);return this.consumeToken(),e.setKeyword(this.finish(n)),n.matches("@-ms-keyframes")&&this.markError(n,V.UnknownKeyword),e.setIdentifier(this._parseKeyframeIdent())?this._parseBody(e,this._parseKeyframeSelector.bind(this)):this.finish(e,V.IdentifierExpected,[g.CurlyR])}_parseKeyframeIdent(){return this._parseIdent([Ce.Keyframe])}_parseKeyframeSelector(){let e=this.create(Mr),n=!1;if(e.addChild(this._parseIdent())&&(n=!0),this.accept(g.Percentage)&&(n=!0),!n)return null;for(;this.accept(g.Comma);)if(n=!1,e.addChild(this._parseIdent())&&(n=!0),this.accept(g.Percentage)&&(n=!0),!n)return this.finish(e,V.PercentageExpected);return this._parseBody(e,this._parseRuleSetDeclaration.bind(this))}_tryParseKeyframeSelector(){let e=this.create(Mr),n=this.mark(),i=!1;if(e.addChild(this._parseIdent())&&(i=!0),this.accept(g.Percentage)&&(i=!0),!i)return null;for(;this.accept(g.Comma);)if(i=!1,e.addChild(this._parseIdent())&&(i=!0),this.accept(g.Percentage)&&(i=!0),!i)return this.restoreAtMark(n),null;return this.peek(g.CurlyL)?this._parseBody(e,this._parseRuleSetDeclaration.bind(this)):(this.restoreAtMark(n),null)}_parsePropertyAtRule(){if(!this.peekKeyword("@property"))return null;let e=this.create(_o);return this.consumeToken(),!this.peekRegExp(g.Ident,/^--/)||!e.setName(this._parseIdent([Ce.Property]))?this.finish(e,V.IdentifierExpected):this._parseBody(e,this._parseDeclaration.bind(this))}_parseStartingStyleAtRule(e=!1){if(!this.peekKeyword("@starting-style"))return null;let n=this.create(xo);return this.consumeToken(),this._parseBody(n,this._parseStartingStyleDeclaration.bind(this,e))}_parseStartingStyleDeclaration(e=!1){return e?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)}_parseLayer(e=!1){if(!this.peekKeyword("@layer"))return null;let n=this.create(So);this.consumeToken();let i=this._parseLayerNameList();return i&&n.setNames(i),(!i||i.getChildren().length===1)&&this.peek(g.CurlyL)?this._parseBody(n,this._parseLayerDeclaration.bind(this,e)):this.accept(g.SemiColon)?this.finish(n):this.finish(n,V.SemiColonExpected)}_parseLayerDeclaration(e=!1){return e?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)}_parseLayerNameList(){let e=this.createNode(v.LayerNameList);if(!e.addChild(this._parseLayerName()))return null;for(;this.accept(g.Comma);)if(!e.addChild(this._parseLayerName()))return this.finish(e,V.IdentifierExpected);return this.finish(e)}_parseLayerName(){let e=this.createNode(v.LayerName);if(!e.addChild(this._parseIdent()))return null;for(;!this.hasWhitespace()&&this.acceptDelim(".");)if(this.hasWhitespace()||!e.addChild(this._parseIdent()))return this.finish(e,V.IdentifierExpected);return this.finish(e)}_parseSupports(e=!1){if(!this.peekKeyword("@supports"))return null;let n=this.create(ni);return this.consumeToken(),n.addChild(this._parseSupportsCondition()),this._parseBody(n,this._parseSupportsDeclaration.bind(this,e))}_parseSupportsDeclaration(e=!1){return e?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)}_parseSupportsCondition(){let e=this.create(hn);if(this.acceptIdent("not"))e.addChild(this._parseSupportsConditionInParens());else if(e.addChild(this._parseSupportsConditionInParens()),this.peekRegExp(g.Ident,/^(and|or)$/i)){let n=this.token.text.toLowerCase();for(;this.acceptIdent(n);)e.addChild(this._parseSupportsConditionInParens())}return this.finish(e)}_parseSupportsConditionInParens(){let e=this.create(hn);if(this.accept(g.ParenthesisL))return this.prevToken&&(e.lParent=this.prevToken.offset),!e.addChild(this._tryToParseDeclaration([g.ParenthesisR]))&&!this._parseSupportsCondition()?this.finish(e,V.ConditionExpected):this.accept(g.ParenthesisR)?(this.prevToken&&(e.rParent=this.prevToken.offset),this.finish(e)):this.finish(e,V.RightParenthesisExpected,[g.ParenthesisR],[]);if(this.peek(g.Ident)){let n=this.mark();if(this.consumeToken(),!this.hasWhitespace()&&this.accept(g.ParenthesisL)){let i=1;for(;this.token.type!==g.EOF&&i!==0;)this.token.type===g.ParenthesisL?i++:this.token.type===g.ParenthesisR&&i--,this.consumeToken();return this.finish(e)}else this.restoreAtMark(n)}return this.finish(e,V.LeftParenthesisExpected,[],[g.ParenthesisL])}_parseMediaDeclaration(e=!1){return e?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)}_parseMedia(e=!1){if(!this.peekKeyword("@media"))return null;let n=this.create(zn);return this.consumeToken(),n.addChild(this._parseMediaQueryList())?this._parseBody(n,this._parseMediaDeclaration.bind(this,e)):this.finish(n,V.MediaQueryExpected)}_parseMediaQueryList(){let e=this.create(Ni);if(!e.addChild(this._parseMediaQuery()))return this.finish(e,V.MediaQueryExpected);for(;this.accept(g.Comma);)if(!e.addChild(this._parseMediaQuery()))return this.finish(e,V.MediaQueryExpected);return this.finish(e)}_parseMediaQuery(){let e=this.create(Tr),n=this.mark();if(this.acceptIdent("not"),this.peek(g.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)}_parseRatio(){let e=this.mark(),n=this.create(To);return this._parseNumeric()?this.acceptDelim("/")?this._parseNumeric()?this.finish(n):this.finish(n,V.NumberExpected):(this.restoreAtMark(e),null):null}_parseMediaCondition(){let e=this.create(ko);this.acceptIdent("not");let n=!0;for(;n;){if(!this.accept(g.ParenthesisL))return this.finish(e,V.LeftParenthesisExpected,[],[g.CurlyL]);if(this.peek(g.ParenthesisL)||this.peekIdent("not")?e.addChild(this._parseMediaCondition()):e.addChild(this._parseMediaFeature()),!this.accept(g.ParenthesisR))return this.finish(e,V.RightParenthesisExpected,[],[g.CurlyL]);n=this.acceptIdent("and")||this.acceptIdent("or")}return this.finish(e)}_parseMediaFeature(){let e=[g.ParenthesisR],n=this.create(Ao);if(n.addChild(this._parseMediaFeatureName())){if(this.accept(g.Colon)){if(!n.addChild(this._parseMediaFeatureValue()))return this.finish(n,V.TermExpected,[],e)}else if(this._parseMediaFeatureRangeOperator()){if(!n.addChild(this._parseMediaFeatureValue()))return this.finish(n,V.TermExpected,[],e);if(this._parseMediaFeatureRangeOperator()&&!n.addChild(this._parseMediaFeatureValue()))return this.finish(n,V.TermExpected,[],e)}}else if(n.addChild(this._parseMediaFeatureValue())){if(!this._parseMediaFeatureRangeOperator())return this.finish(n,V.OperatorExpected,[],e);if(!n.addChild(this._parseMediaFeatureName()))return this.finish(n,V.IdentifierExpected,[],e);if(this._parseMediaFeatureRangeOperator()&&!n.addChild(this._parseMediaFeatureValue()))return this.finish(n,V.TermExpected,[],e)}else return this.finish(n,V.IdentifierExpected,[],e);return this.finish(n)}_parseMediaFeatureRangeOperator(){return this.acceptDelim("<")||this.acceptDelim(">")?(this.hasWhitespace()||this.acceptDelim("="),!0):!!this.acceptDelim("=")}_parseMediaFeatureName(){return this._parseIdent()}_parseMediaFeatureValue(){return this._parseRatio()||this._parseTermExpression()}_parseMedium(){let e=this.create(te);return e.addChild(this._parseIdent())?this.finish(e):null}_parsePageDeclaration(){return this._parsePageMarginBox()||this._parseRuleSetDeclaration()}_parsePage(){if(!this.peekKeyword("@page"))return null;let e=this.create(Eo);if(this.consumeToken(),e.addChild(this._parsePageSelector())){for(;this.accept(g.Comma);)if(!e.addChild(this._parsePageSelector()))return this.finish(e,V.IdentifierExpected)}return this._parseBody(e,this._parsePageDeclaration.bind(this))}_parsePageMarginBox(){if(!this.peek(g.AtKeyword))return null;let e=this.create(Do);return this.acceptOneKeyword(rm)||this.markError(e,V.UnknownAtRule,[],[g.CurlyL]),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))}_parsePageSelector(){if(!this.peek(g.Ident)&&!this.peek(g.Colon))return null;let e=this.create(te);return e.addChild(this._parseIdent()),this.accept(g.Colon)&&!e.addChild(this._parseIdent())?this.finish(e,V.IdentifierExpected):this.finish(e)}_parseDocument(){if(!this.peekKeyword("@-moz-document"))return null;let e=this.create(Co);return this.consumeToken(),this.resync([],[g.CurlyL]),this._parseBody(e,this._parseStylesheetStatement.bind(this))}_parseContainerDeclaration(e=!1){return e?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)}_parseContainer(e=!1){if(!this.peekKeyword("@container"))return null;let n=this.create(Fo);return this.consumeToken(),n.addChild(this._parseIdent()),n.addChild(this._parseContainerQuery()),this._parseBody(n,this._parseContainerDeclaration.bind(this,e))}_parseContainerQuery(){let e=this.create(te);if(this.acceptIdent("not"))e.addChild(this._parseContainerQueryInParens());else if(e.addChild(this._parseContainerQueryInParens()),this.peekIdent("and"))for(;this.acceptIdent("and");)e.addChild(this._parseContainerQueryInParens());else if(this.peekIdent("or"))for(;this.acceptIdent("or");)e.addChild(this._parseContainerQueryInParens());return this.finish(e)}_parseContainerQueryInParens(){let e=this.create(te);if(this.accept(g.ParenthesisL)){if(this.peekIdent("not")||this.peek(g.ParenthesisL)?e.addChild(this._parseContainerQuery()):e.addChild(this._parseMediaFeature()),!this.accept(g.ParenthesisR))return this.finish(e,V.RightParenthesisExpected,[],[g.CurlyL])}else if(this.acceptIdent("style")){if(this.hasWhitespace()||!this.accept(g.ParenthesisL))return this.finish(e,V.LeftParenthesisExpected,[],[g.CurlyL]);if(e.addChild(this._parseStyleQuery()),!this.accept(g.ParenthesisR))return this.finish(e,V.RightParenthesisExpected,[],[g.CurlyL])}else return this.finish(e,V.LeftParenthesisExpected,[],[g.CurlyL]);return this.finish(e)}_parseStyleQuery(){let e=this.create(te);if(this.acceptIdent("not"))e.addChild(this._parseStyleInParens());else if(this.peek(g.ParenthesisL)){if(e.addChild(this._parseStyleInParens()),this.peekIdent("and"))for(;this.acceptIdent("and");)e.addChild(this._parseStyleInParens());else if(this.peekIdent("or"))for(;this.acceptIdent("or");)e.addChild(this._parseStyleInParens())}else e.addChild(this._parseDeclaration([g.ParenthesisR]));return this.finish(e)}_parseStyleInParens(){let e=this.create(te);if(this.accept(g.ParenthesisL)){if(e.addChild(this._parseStyleQuery()),!this.accept(g.ParenthesisR))return this.finish(e,V.RightParenthesisExpected,[],[g.CurlyL])}else return this.finish(e,V.LeftParenthesisExpected,[],[g.CurlyL]);return this.finish(e)}_parseUnknownAtRule(){if(!this.peek(g.AtKeyword))return null;let e=this.create(ji);e.addChild(this._parseUnknownAtRuleName());let n=()=>r===0&&s===0&&o===0,i=0,r=0,s=0,o=0;e:for(;;){switch(this.token.type){case g.SemiColon:if(n())break e;break;case g.EOF:return r>0?this.finish(e,V.RightCurlyExpected):o>0?this.finish(e,V.RightSquareBracketExpected):s>0?this.finish(e,V.RightParenthesisExpected):this.finish(e);case g.CurlyL:i++,r++;break;case g.CurlyR:if(r--,i>0&&r===0){if(this.consumeToken(),o>0)return this.finish(e,V.RightSquareBracketExpected);if(s>0)return this.finish(e,V.RightParenthesisExpected);break e}if(r<0){if(s===0&&o===0)break e;return this.finish(e,V.LeftCurlyExpected)}break;case g.ParenthesisL:s++;break;case g.ParenthesisR:if(s--,s<0)return this.finish(e,V.LeftParenthesisExpected);break;case g.BracketL:o++;break;case g.BracketR:if(o--,o<0)return this.finish(e,V.LeftSquareBracketExpected);break}this.consumeToken()}return e}_parseUnknownAtRuleName(){let e=this.create(te);return this.accept(g.AtKeyword)?this.finish(e):e}_parseOperator(){if(this.peekDelim("/")||this.peekDelim("*")||this.peekDelim("+")||this.peekDelim("-")||this.peek(g.Dashmatch)||this.peek(g.Includes)||this.peek(g.SubstringOperator)||this.peek(g.PrefixOperator)||this.peek(g.SuffixOperator)||this.peekDelim("=")){let e=this.createNode(v.Operator);return this.consumeToken(),this.finish(e)}else return null}_parseUnaryOperator(){if(!this.peekDelim("+")&&!this.peekDelim("-"))return null;let e=this.create(te);return this.consumeToken(),this.finish(e)}_parseCombinator(){if(this.peekDelim(">")){let e=this.create(te);this.consumeToken();let 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("+")){let e=this.create(te);return this.consumeToken(),e.type=v.SelectorCombinatorSibling,this.finish(e)}else if(this.peekDelim("~")){let e=this.create(te);return this.consumeToken(),e.type=v.SelectorCombinatorAllSiblings,this.finish(e)}else if(this.peekDelim("/")){let e=this.create(te);this.consumeToken();let 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}_parseSimpleSelector(){let e=this.create(Dt),n=0;for(e.addChild(this._parseElementName()||this._parseNestingSelector())&&n++;(n===0||!this.hasWhitespace())&&e.addChild(this._parseSimpleSelectorBody());)n++;return n>0?this.finish(e):null}_parseNestingSelector(){if(this.peekDelim("&")){let e=this.createNode(v.SelectorCombinator);return this.consumeToken(),this.finish(e)}return null}_parseSimpleSelectorBody(){return this._parsePseudo()||this._parseHash()||this._parseClass()||this._parseAttrib()}_parseSelectorIdent(){return this._parseIdent()}_parseHash(){if(!this.peek(g.Hash)&&!this.peekDelim("#"))return null;let e=this.createNode(v.IdentifierSelector);if(this.acceptDelim("#")){if(this.hasWhitespace()||!e.addChild(this._parseSelectorIdent()))return this.finish(e,V.IdentifierExpected)}else this.consumeToken();return this.finish(e)}_parseClass(){if(!this.peekDelim("."))return null;let e=this.createNode(v.ClassSelector);return this.consumeToken(),this.hasWhitespace()||!e.addChild(this._parseSelectorIdent())?this.finish(e,V.IdentifierExpected):this.finish(e)}_parseElementName(){let 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)}_parseNamespacePrefix(){let e=this.mark(),n=this.createNode(v.NamespacePrefix);return!n.addChild(this._parseIdent())&&this.acceptDelim("*"),this.acceptDelim("|")?this.finish(n):(this.restoreAtMark(e),null)}_parseAttrib(){if(!this.peek(g.BracketL))return null;let e=this.create(Mo);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(g.BracketR)?this.finish(e):this.finish(e,V.RightSquareBracketExpected)):this.finish(e,V.IdentifierExpected)}_parsePseudo(){let e=this._tryParsePseudoIdentifier();if(e){if(!this.hasWhitespace()&&this.accept(g.ParenthesisL)){let n=()=>{let r=this.createNode(v.SelectorList);if(!r.addChild(this._parseSelector(!0)))return null;for(;this.accept(g.Comma)&&r.addChild(this._parseSelector(!0)););return this.peek(g.ParenthesisR)?this.finish(r):null};if(!e.addChild(this.try(n))){for(;!this.peekIdent("of")&&(e.addChild(this._parseTerm())||e.addChild(this._parseOperator())););if(this.acceptIdent("of")&&!e.addChild(this.try(n)))return this.finish(e,V.SelectorExpected)}if(!this.accept(g.ParenthesisR))return this.finish(e,V.RightParenthesisExpected)}return this.finish(e)}return null}_tryParsePseudoIdentifier(){if(!this.peek(g.Colon))return null;let e=this.mark(),n=this.createNode(v.PseudoSelector);return this.consumeToken(),this.hasWhitespace()?(this.restoreAtMark(e),null):(this.accept(g.Colon),this.hasWhitespace()||!n.addChild(this._parseIdent())?this.finish(n,V.IdentifierExpected):this.finish(n))}_tryParsePrio(){let e=this.mark(),n=this._parsePrio();return n||(this.restoreAtMark(e),null)}_parsePrio(){if(!this.peek(g.Exclamation))return null;let e=this.createNode(v.Prio);return this.accept(g.Exclamation)&&this.acceptIdent("important")?this.finish(e):null}_parseExpr(e=!1){let n=this.create(Oi);if(!n.addChild(this._parseBinaryExpr()))return null;for(;;){if(this.peek(g.Comma)){if(e)return this.finish(n);this.consumeToken()}if(!n.addChild(this._parseBinaryExpr()))break}return this.finish(n)}_parseUnicodeRange(){if(!this.peekIdent("u"))return null;let e=this.create(mo);return this.acceptUnicodeRange()?this.finish(e):null}_parseNamedLine(){if(!this.peek(g.BracketL))return null;let e=this.createNode(v.GridLine);for(this.consumeToken();e.addChild(this._parseIdent()););return this.accept(g.BracketR)?this.finish(e):this.finish(e,V.RightSquareBracketExpected)}_parseBinaryExpr(e,n){let i=this.create(Nn);if(!i.setLeft(e||this._parseTerm()))return null;if(!i.setOperator(n||this._parseOperator()))return this.finish(i);if(!i.setRight(this._parseTerm()))return this.finish(i,V.TermExpected);i=this.finish(i);let r=this._parseOperator();return r&&(i=this._parseBinaryExpr(i,r)),this.finish(i)}_parseTerm(){let e=this.create(Ro);return e.setOperator(this._parseUnaryOperator()),e.setExpression(this._parseTermExpression())?this.finish(e):null}_parseTermExpression(){return this._parseURILiteral()||this._parseUnicodeRange()||this._parseFunction()||this._parseIdent()||this._parseStringLiteral()||this._parseNumeric()||this._parseHexColor()||this._parseOperation()||this._parseNamedLine()}_parseOperation(){if(!this.peek(g.ParenthesisL))return null;let e=this.create(te);return this.consumeToken(),e.addChild(this._parseExpr()),this.accept(g.ParenthesisR)?this.finish(e):this.finish(e,V.RightParenthesisExpected)}_parseNumeric(){if(this.peek(g.Num)||this.peek(g.Percentage)||this.peek(g.Resolution)||this.peek(g.Length)||this.peek(g.EMS)||this.peek(g.EXS)||this.peek(g.Angle)||this.peek(g.Time)||this.peek(g.Dimension)||this.peek(g.ContainerQueryLength)||this.peek(g.Freq)){let e=this.create(ri);return this.consumeToken(),this.finish(e)}return null}_parseStringLiteral(){if(!this.peek(g.String)&&!this.peek(g.BadString))return null;let e=this.createNode(v.StringLiteral);return this.consumeToken(),this.finish(e)}_parseURILiteral(){if(!this.peekRegExp(g.Ident,/^url(-prefix)?$/i))return null;let e=this.mark(),n=this.createNode(v.URILiteral);return this.accept(g.Ident),this.hasWhitespace()||!this.peek(g.ParenthesisL)?(this.restoreAtMark(e),null):(this.scanner.inURL=!0,this.consumeToken(),n.addChild(this._parseURLArgument()),this.scanner.inURL=!1,this.accept(g.ParenthesisR)?this.finish(n):this.finish(n,V.RightParenthesisExpected))}_parseURLArgument(){let e=this.create(te);return!this.accept(g.String)&&!this.accept(g.BadString)&&!this.acceptUnquotedString()?null:this.finish(e)}_parseIdent(e){if(!this.peek(g.Ident))return null;let n=this.create(pt);return e&&(n.referenceTypes=e),n.isCustomProperty=this.peekRegExp(g.Ident,/^--/),this.consumeToken(),this.finish(n)}_parseFunction(){let e=this.mark(),n=this.create(Qt);if(!n.setIdentifier(this._parseFunctionIdentifier()))return null;if(this.hasWhitespace()||!this.accept(g.ParenthesisL))return this.restoreAtMark(e),null;if(n.getArguments().addChild(this._parseFunctionArgument()))for(;this.accept(g.Comma)&&!this.peek(g.ParenthesisR);)n.getArguments().addChild(this._parseFunctionArgument())||this.markError(n,V.ExpressionExpected);return this.accept(g.ParenthesisR)?this.finish(n):this.finish(n,V.RightParenthesisExpected)}_parseFunctionIdentifier(){if(!this.peek(g.Ident))return null;let e=this.create(pt);if(e.referenceTypes=[Ce.Function],this.acceptIdent("progid")){if(this.accept(g.Colon))for(;this.accept(g.Ident)&&this.acceptDelim("."););return this.finish(e)}return this.consumeToken(),this.finish(e)}_parseFunctionArgument(){let e=this.create(Vt);return e.setValue(this._parseExpr(!0))?this.finish(e):null}_parseHexColor(){if(this.peekRegExp(g.Hash,/^#([A-Fa-f0-9]{3}|[A-Fa-f0-9]{4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/g)){let e=this.create(ii);return this.consumeToken(),this.finish(e)}else return null}};function om(t,e){let n=0,i=t.length;if(i===0)return 0;for(;n<i;){let r=Math.floor((n+i)/2);e(t[r])?i=r:n=r+1}return n}function dd(t,e){return t.indexOf(e)!==-1}function jr(...t){let e=[];for(let n of t)for(let i of n)dd(e,i)||e.push(i);return e}var Ho=class{constructor(e,n){this.offset=e,this.length=n,this.symbols=[],this.parent=null,this.children=[]}addChild(e){this.children.push(e),e.setParent(this)}setParent(e){this.parent=e}findScope(e,n=0){return this.offset<=e&&this.offset+this.length>e+n||this.offset===e&&this.length===n?this.findInScope(e,n):null}findInScope(e,n=0){let i=e+n,r=om(this.children,o=>o.offset>i);if(r===0)return this;let s=this.children[r-1];return s.offset<=e&&s.offset+s.length>=e+n?s.findInScope(e,n):this}addSymbol(e){this.symbols.push(e)}getSymbol(e,n){for(let i=0;i<this.symbols.length;i++){let r=this.symbols[i];if(r.name===e&&r.type===n)return r}return null}getSymbols(){return this.symbols}},hd=class extends Ho{constructor(){super(0,Number.MAX_VALUE)}},Xi=class{constructor(e,n,i,r){this.name=e,this.value=n,this.node=i,this.type=r}},ud=class{constructor(e){this.scope=e}addSymbol(e,n,i,r){if(e.offset!==-1){let s=this.scope.findScope(e.offset,e.length);s&&s.addSymbol(new Xi(n,i,e,r))}}addScope(e){if(e.offset!==-1){let n=this.scope.findScope(e.offset,e.length);if(n&&(n.offset!==e.offset||n.length!==e.length)){let i=new Ho(e.offset,e.length);return n.addChild(i),i}return n}return null}addSymbolToChildScope(e,n,i,r,s){if(e&&e.offset!==-1){let o=this.addScope(e);o&&o.addSymbol(new Xi(i,r,n,s))}}visitNode(e){switch(e.type){case v.Keyframe:return this.addSymbol(e,e.getName(),void 0,Ce.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,Ce.Mixin),!0;case v.FunctionDeclaration:return this.addSymbol(e,e.getName(),void 0,Ce.Function),!0;case v.FunctionParameter:return this.visitFunctionParameterNode(e);case v.Declarations:return this.addScope(e),!0;case v.For:let n=e,i=n.getDeclarations();return i&&n.variable&&this.addSymbolToChildScope(i,n.variable,n.variable.getName(),void 0,Ce.Variable),!0;case v.Each:{let r=e,s=r.getDeclarations();if(s){let o=r.getVariables().getChildren();for(let a of o)this.addSymbolToChildScope(s,a,a.getName(),void 0,Ce.Variable)}return!0}}return!0}visitRuleSet(e){let n=this.scope.findScope(e.offset,e.length);if(n)for(let i of e.getSelectors().getChildren())i instanceof Ut&&i.getChildren().length===1&&n.addSymbol(new Xi(i.getChild(0).getText(),void 0,i,Ce.Rule));return!0}visitVariableDeclarationNode(e){let n=e.getValue()?e.getValue().getText():void 0;return this.addSymbol(e,e.getName(),n,Ce.Variable),!0}visitFunctionParameterNode(e){let n=e.getParent().getDeclarations();if(n){let i=e.getDefaultValue(),r=i?i.getText():void 0;this.addSymbolToChildScope(n,e,e.getName(),r,Ce.Variable)}return!0}visitCustomPropertyDeclarationNode(e){let n=e.getValue()?e.getValue().getText():"";return this.addCSSVariable(e.getProperty(),e.getProperty().getName(),n,Ce.Variable),!0}addCSSVariable(e,n,i,r){e.offset!==-1&&this.scope.addSymbol(new Xi(n,i,e,r))}},li=class{constructor(e){this.global=new hd,e.acceptVisitor(new ud(this.global))}findSymbolsAtOffset(e,n){let i=this.global.findScope(e,0),r=[],s={};for(;i;){let o=i.getSymbols();for(let a=0;a<o.length;a++){let l=o[a];l.type===n&&!s[l.name]&&(r.push(l),s[l.name]=!0)}i=i.parent}return r}internalFindSymbol(e,n){let i=e;if(e.parent instanceof In&&e.parent.getParent()instanceof Ne&&(i=e.parent.getParent().getDeclarations()),e.parent instanceof Vt&&e.parent.getParent()instanceof Qt){let o=e.parent.getParent().getIdentifier();if(o){let a=this.internalFindSymbol(o,[Ce.Function]);a&&(i=a.node.getDeclarations())}}if(!i)return null;let r=e.getText(),s=this.global.findScope(i.offset,i.length);for(;s;){for(let o=0;o<n.length;o++){let a=n[o],l=s.getSymbol(r,a);if(l)return l}s=s.parent}return null}evaluateReferenceTypes(e){if(e instanceof pt){let i=e.referenceTypes;if(i)return i;{if(e.isCustomProperty)return[Ce.Variable];let r=np(e);if(r){let s=r.getNonPrefixedPropertyName();if((s==="animation"||s==="animation-name")&&r.getValue()&&r.getValue().offset===e.offset)return[Ce.Keyframe]}}}else if(e instanceof Li)return[Ce.Variable];return e.findAParent(v.Selector,v.ExtendsReference)?[Ce.Rule]:null}findSymbolFromNode(e){if(!e)return null;for(;e.type===v.Interpolation;)e=e.getParent();let n=this.evaluateReferenceTypes(e);return n?this.internalFindSymbol(e,n):null}matchesSymbol(e,n){if(!e)return!1;for(;e.type===v.Interpolation;)e=e.getParent();if(!e.matches(n.name))return!1;let i=this.evaluateReferenceTypes(e);return!i||i.indexOf(n.type)===-1?!1:this.internalFindSymbol(e,i)===n}findSymbol(e,n,i){let r=this.global.findScope(i);for(;r;){let s=r.getSymbol(e,n);if(s)return s;r=r.parent}return null}};var cm=lt(Rt());var am;(()=>{"use strict";var t={470:r=>{function s(l){if(typeof l!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(l))}function o(l,c){for(var d,p="",b=0,y=-1,M=0,P=0;P<=l.length;++P){if(P<l.length)d=l.charCodeAt(P);else{if(d===47)break;d=47}if(d===47){if(!(y===P-1||M===1))if(y!==P-1&&M===2){if(p.length<2||b!==2||p.charCodeAt(p.length-1)!==46||p.charCodeAt(p.length-2)!==46){if(p.length>2){var Y=p.lastIndexOf("/");if(Y!==p.length-1){Y===-1?(p="",b=0):b=(p=p.slice(0,Y)).length-1-p.lastIndexOf("/"),y=P,M=0;continue}}else if(p.length===2||p.length===1){p="",b=0,y=P,M=0;continue}}c&&(p.length>0?p+="/..":p="..",b=2)}else p.length>0?p+="/"+l.slice(y+1,P):p=l.slice(y+1,P),b=P-y-1;y=P,M=0}else d===46&&M!==-1?++M:M=-1}return p}var a={resolve:function(){for(var l,c="",d=!1,p=arguments.length-1;p>=-1&&!d;p--){var b;p>=0?b=arguments[p]:(l===void 0&&(l=process.cwd()),b=l),s(b),b.length!==0&&(c=b+"/"+c,d=b.charCodeAt(0)===47)}return c=o(c,!d),d?c.length>0?"/"+c:"/":c.length>0?c:"."},normalize:function(l){if(s(l),l.length===0)return".";var c=l.charCodeAt(0)===47,d=l.charCodeAt(l.length-1)===47;return(l=o(l,!c)).length!==0||c||(l="."),l.length>0&&d&&(l+="/"),c?"/"+l:l},isAbsolute:function(l){return s(l),l.length>0&&l.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var l,c=0;c<arguments.length;++c){var d=arguments[c];s(d),d.length>0&&(l===void 0?l=d:l+="/"+d)}return l===void 0?".":a.normalize(l)},relative:function(l,c){if(s(l),s(c),l===c||(l=a.resolve(l))===(c=a.resolve(c)))return"";for(var d=1;d<l.length&&l.charCodeAt(d)===47;++d);for(var p=l.length,b=p-d,y=1;y<c.length&&c.charCodeAt(y)===47;++y);for(var M=c.length-y,P=b<M?b:M,Y=-1,$=0;$<=P;++$){if($===P){if(M>P){if(c.charCodeAt(y+$)===47)return c.slice(y+$+1);if($===0)return c.slice(y+$)}else b>P&&(l.charCodeAt(d+$)===47?Y=$:$===0&&(Y=0));break}var k=l.charCodeAt(d+$);if(k!==c.charCodeAt(y+$))break;k===47&&(Y=$)}var _="";for($=d+Y+1;$<=p;++$)$!==p&&l.charCodeAt($)!==47||(_.length===0?_+="..":_+="/..");return _.length>0?_+c.slice(y+Y):(y+=Y,c.charCodeAt(y)===47&&++y,c.slice(y))},_makeLong:function(l){return l},dirname:function(l){if(s(l),l.length===0)return".";for(var c=l.charCodeAt(0),d=c===47,p=-1,b=!0,y=l.length-1;y>=1;--y)if((c=l.charCodeAt(y))===47){if(!b){p=y;break}}else b=!1;return p===-1?d?"/":".":d&&p===1?"//":l.slice(0,p)},basename:function(l,c){if(c!==void 0&&typeof c!="string")throw new TypeError('"ext" argument must be a string');s(l);var d,p=0,b=-1,y=!0;if(c!==void 0&&c.length>0&&c.length<=l.length){if(c.length===l.length&&c===l)return"";var M=c.length-1,P=-1;for(d=l.length-1;d>=0;--d){var Y=l.charCodeAt(d);if(Y===47){if(!y){p=d+1;break}}else P===-1&&(y=!1,P=d+1),M>=0&&(Y===c.charCodeAt(M)?--M==-1&&(b=d):(M=-1,b=P))}return p===b?b=P:b===-1&&(b=l.length),l.slice(p,b)}for(d=l.length-1;d>=0;--d)if(l.charCodeAt(d)===47){if(!y){p=d+1;break}}else b===-1&&(y=!1,b=d+1);return b===-1?"":l.slice(p,b)},extname:function(l){s(l);for(var c=-1,d=0,p=-1,b=!0,y=0,M=l.length-1;M>=0;--M){var P=l.charCodeAt(M);if(P!==47)p===-1&&(b=!1,p=M+1),P===46?c===-1?c=M:y!==1&&(y=1):c!==-1&&(y=-1);else if(!b){d=M+1;break}}return c===-1||p===-1||y===0||y===1&&c===p-1&&c===d+1?"":l.slice(c,p)},format:function(l){if(l===null||typeof l!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof l);return function(c,d){var p=d.dir||d.root,b=d.base||(d.name||"")+(d.ext||"");return p?p===d.root?p+b:p+"/"+b:b}(0,l)},parse:function(l){s(l);var c={root:"",dir:"",base:"",ext:"",name:""};if(l.length===0)return c;var d,p=l.charCodeAt(0),b=p===47;b?(c.root="/",d=1):d=0;for(var y=-1,M=0,P=-1,Y=!0,$=l.length-1,k=0;$>=d;--$)if((p=l.charCodeAt($))!==47)P===-1&&(Y=!1,P=$+1),p===46?y===-1?y=$:k!==1&&(k=1):y!==-1&&(k=-1);else if(!Y){M=$+1;break}return y===-1||P===-1||k===0||k===1&&y===P-1&&y===M+1?P!==-1&&(c.base=c.name=M===0&&b?l.slice(1,P):l.slice(M,P)):(M===0&&b?(c.name=l.slice(1,y),c.base=l.slice(1,P)):(c.name=l.slice(M,y),c.base=l.slice(M,P)),c.ext=l.slice(y,P)),M>0?c.dir=l.slice(0,M-1):b&&(c.dir="/"),c},sep:"/",delimiter:":",win32:null,posix:null};a.posix=a,r.exports=a}},e={};function n(r){var s=e[r];if(s!==void 0)return s.exports;var o=e[r]={exports:{}};return t[r](o,o.exports,n),o.exports}n.d=(r,s)=>{for(var o in s)n.o(s,o)&&!n.o(r,o)&&Object.defineProperty(r,o,{enumerable:!0,get:s[o]})},n.o=(r,s)=>Object.prototype.hasOwnProperty.call(r,s),n.r=r=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})};var i={};(()=>{let r;n.r(i),n.d(i,{URI:()=>b,Utils:()=>L}),typeof process=="object"?r=process.platform==="win32":typeof navigator=="object"&&(r=navigator.userAgent.indexOf("Windows")>=0);let s=/^\w[\w\d+.-]*$/,o=/^\//,a=/^\/\//;function l(A,x){if(!A.scheme&&x)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${A.authority}", path: "${A.path}", query: "${A.query}", fragment: "${A.fragment}"}`);if(A.scheme&&!s.test(A.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(A.path){if(A.authority){if(!o.test(A.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(a.test(A.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}let c="",d="/",p=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class b{static isUri(x){return x instanceof b||!!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"}scheme;authority;path;query;fragment;constructor(x,I,q,G,H,X=!1){typeof x=="object"?(this.scheme=x.scheme||c,this.authority=x.authority||c,this.path=x.path||c,this.query=x.query||c,this.fragment=x.fragment||c):(this.scheme=function(ve,be){return ve||be?ve:"file"}(x,X),this.authority=I||c,this.path=function(ve,be){switch(ve){case"https":case"http":case"file":be?be[0]!==d&&(be=d+be):be=d}return be}(this.scheme,q||c),this.query=G||c,this.fragment=H||c,l(this,X))}get fsPath(){return k(this,!1)}with(x){if(!x)return this;let{scheme:I,authority:q,path:G,query:H,fragment:X}=x;return I===void 0?I=this.scheme:I===null&&(I=c),q===void 0?q=this.authority:q===null&&(q=c),G===void 0?G=this.path:G===null&&(G=c),H===void 0?H=this.query:H===null&&(H=c),X===void 0?X=this.fragment:X===null&&(X=c),I===this.scheme&&q===this.authority&&G===this.path&&H===this.query&&X===this.fragment?this:new M(I,q,G,H,X)}static parse(x,I=!1){let q=p.exec(x);return q?new M(q[2]||c,j(q[4]||c),j(q[5]||c),j(q[7]||c),j(q[9]||c),I):new M(c,c,c,c,c)}static file(x){let I=c;if(r&&(x=x.replace(/\\/g,d)),x[0]===d&&x[1]===d){let q=x.indexOf(d,2);q===-1?(I=x.substring(2),x=d):(I=x.substring(2,q),x=x.substring(q)||d)}return new M("file",I,x,c,c)}static from(x){let I=new M(x.scheme,x.authority,x.path,x.query,x.fragment);return l(I,!0),I}toString(x=!1){return _(this,x)}toJSON(){return this}static revive(x){if(x){if(x instanceof b)return x;{let I=new M(x);return I._formatted=x.external,I._fsPath=x._sep===y?x.fsPath:null,I}}return x}}let y=r?1:void 0;class M extends b{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=k(this,!1)),this._fsPath}toString(x=!1){return x?_(this,!0):(this._formatted||(this._formatted=_(this,!1)),this._formatted)}toJSON(){let x={$mid:1};return this._fsPath&&(x.fsPath=this._fsPath,x._sep=y),this._formatted&&(x.external=this._formatted),this.path&&(x.path=this.path),this.scheme&&(x.scheme=this.scheme),this.authority&&(x.authority=this.authority),this.query&&(x.query=this.query),this.fragment&&(x.fragment=this.fragment),x}}let P={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 Y(A,x,I){let q,G=-1;for(let H=0;H<A.length;H++){let X=A.charCodeAt(H);if(X>=97&&X<=122||X>=65&&X<=90||X>=48&&X<=57||X===45||X===46||X===95||X===126||x&&X===47||I&&X===91||I&&X===93||I&&X===58)G!==-1&&(q+=encodeURIComponent(A.substring(G,H)),G=-1),q!==void 0&&(q+=A.charAt(H));else{q===void 0&&(q=A.substr(0,H));let ve=P[X];ve!==void 0?(G!==-1&&(q+=encodeURIComponent(A.substring(G,H)),G=-1),q+=ve):G===-1&&(G=H)}}return G!==-1&&(q+=encodeURIComponent(A.substring(G))),q!==void 0?q:A}function $(A){let x;for(let I=0;I<A.length;I++){let q=A.charCodeAt(I);q===35||q===63?(x===void 0&&(x=A.substr(0,I)),x+=P[q]):x!==void 0&&(x+=A[I])}return x!==void 0?x:A}function k(A,x){let I;return I=A.authority&&A.path.length>1&&A.scheme==="file"?`//${A.authority}${A.path}`:A.path.charCodeAt(0)===47&&(A.path.charCodeAt(1)>=65&&A.path.charCodeAt(1)<=90||A.path.charCodeAt(1)>=97&&A.path.charCodeAt(1)<=122)&&A.path.charCodeAt(2)===58?x?A.path.substr(1):A.path[1].toLowerCase()+A.path.substr(2):A.path,r&&(I=I.replace(/\//g,"\\")),I}function _(A,x){let I=x?$:Y,q="",{scheme:G,authority:H,path:X,query:ve,fragment:be}=A;if(G&&(q+=G,q+=":"),(H||G==="file")&&(q+=d,q+=d),H){let he=H.indexOf("@");if(he!==-1){let $e=H.substr(0,he);H=H.substr(he+1),he=$e.lastIndexOf(":"),he===-1?q+=I($e,!1,!1):(q+=I($e.substr(0,he),!1,!1),q+=":",q+=I($e.substr(he+1),!1,!0)),q+="@"}H=H.toLowerCase(),he=H.lastIndexOf(":"),he===-1?q+=I(H,!1,!0):(q+=I(H.substr(0,he),!1,!0),q+=H.substr(he))}if(X){if(X.length>=3&&X.charCodeAt(0)===47&&X.charCodeAt(2)===58){let he=X.charCodeAt(1);he>=65&&he<=90&&(X=`/${String.fromCharCode(he+32)}:${X.substr(3)}`)}else if(X.length>=2&&X.charCodeAt(1)===58){let he=X.charCodeAt(0);he>=65&&he<=90&&(X=`${String.fromCharCode(he+32)}:${X.substr(2)}`)}q+=I(X,!0,!1)}return ve&&(q+="?",q+=I(ve,!1,!1)),be&&(q+="#",q+=x?be:Y(be,!1,!1)),q}function F(A){try{return decodeURIComponent(A)}catch{return A.length>3?A.substr(0,3)+F(A.substr(3)):A}}let O=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function j(A){return A.match(O)?A.replace(O,x=>F(x)):A}var Q=n(470);let oe=Q.posix||Q,ue="/";var L;(function(A){A.joinPath=function(x,...I){return x.with({path:oe.join(x.path,...I)})},A.resolvePath=function(x,...I){let q=x.path,G=!1;q[0]!==ue&&(q=ue+q,G=!0);let H=oe.resolve(q,...I);return G&&H[0]===ue&&!x.authority&&(H=H.substring(1)),x.with({path:H})},A.dirname=function(x){if(x.path.length===0||x.path===ue)return x;let I=oe.dirname(x.path);return I.length===1&&I.charCodeAt(0)===46&&(I=""),x.with({path:I})},A.basename=function(x){return oe.basename(x.path)},A.extname=function(x){return oe.extname(x.path)}})(L||(L={}))})(),am=i})();var{URI:pd,Utils:md}=am;function $r(t){return md.dirname(pd.parse(t)).toString(!0)}function mn(t,...e){return md.joinPath(pd.parse(t),...e).toString(!0)}var Go=class{constructor(e){this.readDirectory=e,this.literalCompletions=[],this.importCompletions=[]}onCssURILiteralValue(e){this.literalCompletions.push(e)}onCssImportPath(e){this.importCompletions.push(e)}async computeCompletions(e,n){let i={items:[],isIncomplete:!1};for(let r of this.literalCompletions){let s=r.uriValue,o=fd(s);if(o==="."||o==="..")i.isIncomplete=!0;else{let a=await this.providePathSuggestions(s,r.position,r.range,e,n);for(let l of a)i.items.push(l)}}for(let r of this.importCompletions){let s=r.pathValue,o=fd(s);if(o==="."||o==="..")i.isIncomplete=!0;else{let a=await this.providePathSuggestions(s,r.position,r.range,e,n);e.languageId==="scss"&&a.forEach(l=>{ze(l.label,"_")&&po(l.label,".scss")&&(l.textEdit?l.textEdit.newText=l.label.slice(1,-5):l.label=l.label.slice(1,-5))});for(let l of a)i.items.push(l)}}return i}async providePathSuggestions(e,n,i,r,s){let o=fd(e),a=ze(e,"'")||ze(e,'"'),l=a?o.slice(0,n.character-(i.start.character+1)):o.slice(0,n.character-i.start.character),c=r.uri,d=a?Dv(i,1,-1):i,p=Av(l,o,d),b=l.substring(0,l.lastIndexOf("/")+1),y=s.resolveReference(b||".",c);if(y)try{let M=[],P=await this.readDirectory(y);for(let[Y,$]of P)Y.charCodeAt(0)!==kv&&($===ai.Directory||mn(y,Y)!==c)&&M.push(Ev(Y,$===ai.Directory,p));return M}catch{}return[]}},kv=46;function fd(t){return ze(t,"'")||ze(t,'"')?t.slice(1,-1):t}function Av(t,e,n){let i,r=t.lastIndexOf("/");if(r===-1)i=n;else{let s=e.slice(r+1),o=Jo(n.end,-s.length),a=s.indexOf(" "),l;a!==-1?l=Jo(o,a):l=n.end,i=le.create(o,l)}return i}function Ev(t,e,n){return e?(t=t+"/",{label:Ko(t),kind:ie.Folder,textEdit:se.replace(n,Ko(t)),command:{title:"Suggest",command:"editor.action.triggerSuggest"}}):{label:Ko(t),kind:ie.File,textEdit:se.replace(n,Ko(t))}}function Ko(t){return t.replace(/(\s|\(|\)|,|"|')/g,"\\$1")}function Jo(t,e){return Xe.create(t.line,t.character+e)}function Dv(t,e,n){let i=Jo(t.start,e),r=Jo(t.end,n);return le.create(i,r)}var fn=st.Snippet,lm={title:"Suggest",command:"editor.action.triggerSuggest"},en;(function(t){t.Enums=" ",t.Normal="d",t.VendorPrefixed="x",t.Term="y",t.Variable="z"})(en||(en={}));var jn=class{constructor(e=null,n,i){this.variablePrefix=e,this.lsOptions=n,this.cssDataManager=i,this.completionParticipants=[]}configure(e){this.defaultSettings=e}getSymbolContext(){return this.symbolContext||(this.symbolContext=new li(this.styleSheet)),this.symbolContext}setCompletionParticipants(e){this.completionParticipants=e||[]}async doComplete2(e,n,i,r,s=this.defaultSettings){if(!this.lsOptions.fileSystemProvider||!this.lsOptions.fileSystemProvider.readDirectory)return this.doComplete(e,n,i,s);let o=new Go(this.lsOptions.fileSystemProvider.readDirectory),a=this.completionParticipants;this.completionParticipants=[o].concat(a);let l=this.doComplete(e,n,i,s);try{let c=await o.computeCompletions(e,r);return{isIncomplete:l.isIncomplete||c.isIncomplete,itemDefaults:l.itemDefaults,items:c.items.concat(l.items)}}finally{this.completionParticipants=a}}doComplete(e,n,i,r){this.offset=e.offsetAt(n),this.position=n,this.currentWord=Mv(e,this.offset),this.defaultReplaceRange=le.create(Xe.create(this.position.line,this.position.character-this.currentWord.length),this.position),this.textDocument=e,this.styleSheet=i,this.documentSettings=r;try{let s={isIncomplete:!1,itemDefaults:{editRange:{start:{line:n.line,character:n.character-this.currentWord.length},end:n}},items:[]};this.nodePath=Ui(this.styleSheet,this.offset);for(let o=this.nodePath.length-1;o>=0;o--){let a=this.nodePath[o];if(a instanceof Tn)this.getCompletionsForDeclarationProperty(a.getParent(),s);else if(a instanceof Oi)a.parent instanceof Wi?this.getVariableProposals(null,s):this.getCompletionsForExpression(a,s);else if(a instanceof Dt){let l=a.findAParent(v.ExtendsReference,v.Ruleset);if(l)if(l.type===v.ExtendsReference)this.getCompletionsForExtendsReference(l,a,s);else{let c=l;this.getCompletionsForSelector(c,c&&c.isNested(),s)}}else if(a instanceof Vt)this.getCompletionsForFunctionArgument(a,a.getParent(),s);else if(a instanceof ti)this.getCompletionsForDeclarations(a,s);else if(a instanceof On)this.getCompletionsForVariableDeclaration(a,s);else if(a instanceof vt)this.getCompletionsForRuleSet(a,s);else if(a instanceof Wi)this.getCompletionsForInterpolation(a,s);else if(a instanceof Pn)this.getCompletionsForFunctionDeclaration(a,s);else if(a instanceof qi)this.getCompletionsForMixinReference(a,s);else if(a instanceof Qt)this.getCompletionsForFunctionArgument(null,a,s);else if(a instanceof ni)this.getCompletionsForSupports(a,s);else if(a instanceof hn)this.getCompletionsForSupportsCondition(a,s);else if(a instanceof si)this.getCompletionsForExtendsReference(a,null,s);else if(a.type===v.URILiteral)this.getCompletionForUriLiteralValue(a,s);else if(a.parent===null)this.getCompletionForTopLevel(s);else if(a.type===v.StringLiteral&&this.isImportPathParent(a.parent.type))this.getCompletionForImportPath(a,s);else continue;if(s.items.length>0||this.offset>a.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}}isImportPathParent(e){return e===v.Import}finalize(e){return e}findInNodePath(...e){for(let n=this.nodePath.length-1;n>=0;n--){let i=this.nodePath[n];if(e.indexOf(i.type)!==-1)return i}return null}getCompletionsForDeclarationProperty(e,n){return this.getPropertyProposals(e,n)}getPropertyProposals(e,n){let i=this.isTriggerPropertyValueCompletionEnabled,r=this.isCompletePropertyWithSemicolonEnabled;return this.cssDataManager.getProperties().forEach(o=>{let a,l,c=!1;e?(a=this.getCompletionRange(e.getProperty()),l=o.name,ft(e.colonPosition)||(l+=": ",c=!0)):(a=this.getCompletionRange(null),l=o.name+": ",c=!0),!e&&r&&(l+="$0;"),e&&!e.semicolonPosition&&r&&this.offset>=this.textDocument.offsetAt(a.end)&&(l+="$0;");let d={label:o.name,documentation:Zt(o,this.doesSupportMarkdown()),tags:Ur(o)?[pn.Deprecated]:[],textEdit:se.replace(a,l),insertTextFormat:st.Snippet,kind:ie.Property};o.restrictions||(c=!1),i&&c&&(d.command=lm);let b=(255-(typeof o.relevance=="number"?Math.min(Math.max(o.relevance,0),99):50)).toString(16),y=ze(o.name,"-")?en.VendorPrefixed:en.Normal;d.sortText=y+"_"+b,n.items.push(d)}),this.completionParticipants.forEach(o=>{o.onCssProperty&&o.onCssProperty({propertyName:this.currentWord,range:this.defaultReplaceRange})}),n}get isTriggerPropertyValueCompletionEnabled(){return this.documentSettings?.triggerPropertyValueCompletion??!0}get isCompletePropertyWithSemicolonEnabled(){return this.documentSettings?.completePropertyWithSemicolon??!0}getCompletionsForDeclarationValue(e,n){let i=e.getFullPropertyName(),r=this.cssDataManager.getProperty(i),s=e.getValue()||null;for(;s&&s.hasChildren();)s=s.findChildAtOffset(this.offset,!1);if(this.completionParticipants.forEach(o=>{o.onCssPropertyValue&&o.onCssPropertyValue({propertyName:i,propertyValue:this.currentWord,range:this.getCompletionRange(s)})}),r){if(r.restrictions)for(let o of r.restrictions)switch(o){case"color":this.getColorProposals(r,s,n);break;case"position":this.getPositionProposals(r,s,n);break;case"repeat":this.getRepeatStyleProposals(r,s,n);break;case"line-style":this.getLineStyleProposals(r,s,n);break;case"line-width":this.getLineWidthProposals(r,s,n);break;case"geometry-box":this.getGeometryBoxProposals(r,s,n);break;case"box":this.getBoxProposals(r,s,n);break;case"image":this.getImageProposals(r,s,n);break;case"timing-function":this.getTimingFunctionProposals(r,s,n);break;case"shape":this.getBasicShapeProposals(r,s,n);break}this.getValueEnumProposals(r,s,n),this.getCSSWideKeywordProposals(r,s,n),this.getUnitProposals(r,s,n)}else{let o=Rv(this.styleSheet,e);for(let a of o.getEntries())n.items.push({label:a,textEdit:se.replace(this.getCompletionRange(s),a),kind:ie.Value})}return this.getVariableProposals(s,n),this.getTermProposals(r,s,n),n}getValueEnumProposals(e,n,i){if(e.values)for(let r of e.values){let s=r.name,o;if(po(s,")")){let c=s.lastIndexOf("(");c!==-1&&(s=s.substring(0,c+1)+"$1"+s.substring(c+1),o=fn)}let a=en.Enums;ze(r.name,"-")&&(a+=en.VendorPrefixed);let l={label:r.name,documentation:Zt(r,this.doesSupportMarkdown()),tags:Ur(e)?[pn.Deprecated]:[],textEdit:se.replace(this.getCompletionRange(n),s),sortText:a,kind:ie.Value,insertTextFormat:o};i.items.push(l)}return i}getCSSWideKeywordProposals(e,n,i){for(let r in sd)i.items.push({label:r,documentation:sd[r],textEdit:se.replace(this.getCompletionRange(n),r),kind:ie.Value});for(let r in od){let s=Yi(r);i.items.push({label:r,documentation:od[r],textEdit:se.replace(this.getCompletionRange(n),s),kind:ie.Function,insertTextFormat:fn,command:ze(r,"var")?lm:void 0})}return i}getCompletionsForInterpolation(e,n){return this.offset>=e.offset+2&&this.getVariableProposals(null,n),n}getVariableProposals(e,n){let i=this.getSymbolContext().findSymbolsAtOffset(this.offset,Ce.Variable);for(let r of i){let s=ze(r.name,"--")?`var(${r.name})`:r.name,o={label:r.name,documentation:r.value?_c(r.value):r.value,textEdit:se.replace(this.getCompletionRange(e),s),kind:ie.Variable,sortText:en.Variable};if(typeof o.documentation=="string"&&Yc(o.documentation)&&(o.kind=ie.Color),r.node.type===v.FunctionParameter){let a=r.node.getParent();a.type===v.MixinDeclaration&&(o.detail=cm.t("argument from '{0}'",a.getName()))}n.items.push(o)}return n}getVariableProposalsForCSSVarFunction(e){let n=new Vr;this.styleSheet.acceptVisitor(new bd(n,this.offset));let i=this.getSymbolContext().findSymbolsAtOffset(this.offset,Ce.Variable);for(let r of i){if(ze(r.name,"--")){let s={label:r.name,documentation:r.value?_c(r.value):r.value,textEdit:se.replace(this.getCompletionRange(null),r.name),kind:ie.Variable};typeof s.documentation=="string"&&Yc(s.documentation)&&(s.kind=ie.Color),e.items.push(s)}n.remove(r.name)}for(let r of n.getEntries())if(ze(r,"--")){let s={label:r,textEdit:se.replace(this.getCompletionRange(null),r),kind:ie.Variable};e.items.push(s)}return e}getUnitProposals(e,n,i){let r="0";if(this.currentWord.length>0){let s=this.currentWord.match(/^-?\d[\.\d+]*/);s&&(r=s[0],i.isIncomplete=r.length===this.currentWord.length)}else this.currentWord.length===0&&(i.isIncomplete=!0);if(n&&n.parent&&n.parent.type===v.Term&&(n=n.getParent()),e.restrictions)for(let s of e.restrictions){let o=Vo[s];if(o)for(let a of o){let l=r+a;i.items.push({label:l,textEdit:se.replace(this.getCompletionRange(n),l),kind:ie.Unit})}}return i}getCompletionRange(e){if(e&&e.offset<=this.offset&&this.offset<=e.end){let n=e.end!==-1?this.textDocument.positionAt(e.end):this.position,i=this.textDocument.positionAt(e.offset);if(i.line===n.line)return le.create(i,n)}return this.defaultReplaceRange}getColorProposals(e,n,i){for(let s in Lr)i.items.push({label:s,documentation:Lr[s],textEdit:se.replace(this.getCompletionRange(n),s),kind:ie.Color});for(let s in Uo)i.items.push({label:s,documentation:Uo[s],textEdit:se.replace(this.getCompletionRange(n),s),kind:ie.Value});let r=new Vr;this.styleSheet.acceptVisitor(new gd(r,this.offset));for(let s of r.getEntries())i.items.push({label:s,textEdit:se.replace(this.getCompletionRange(n),s),kind:ie.Color});for(let s of Gp)i.items.push({label:s.label,detail:s.func,documentation:s.desc,textEdit:se.replace(this.getCompletionRange(n),s.insertText),insertTextFormat:fn,kind:ie.Function});return i}getPositionProposals(e,n,i){for(let r in ed)i.items.push({label:r,documentation:ed[r],textEdit:se.replace(this.getCompletionRange(n),r),kind:ie.Value});return i}getRepeatStyleProposals(e,n,i){for(let r in td)i.items.push({label:r,documentation:td[r],textEdit:se.replace(this.getCompletionRange(n),r),kind:ie.Value});return i}getLineStyleProposals(e,n,i){for(let r in nd)i.items.push({label:r,documentation:nd[r],textEdit:se.replace(this.getCompletionRange(n),r),kind:ie.Value});return i}getLineWidthProposals(e,n,i){for(let r of tm)i.items.push({label:r,textEdit:se.replace(this.getCompletionRange(n),r),kind:ie.Value});return i}getGeometryBoxProposals(e,n,i){for(let r in rd)i.items.push({label:r,documentation:rd[r],textEdit:se.replace(this.getCompletionRange(n),r),kind:ie.Value});return i}getBoxProposals(e,n,i){for(let r in id)i.items.push({label:r,documentation:id[r],textEdit:se.replace(this.getCompletionRange(n),r),kind:ie.Value});return i}getImageProposals(e,n,i){for(let r in ad){let s=Yi(r);i.items.push({label:r,documentation:ad[r],textEdit:se.replace(this.getCompletionRange(n),s),kind:ie.Function,insertTextFormat:r!==s?fn:void 0})}return i}getTimingFunctionProposals(e,n,i){for(let r in ld){let s=Yi(r);i.items.push({label:r,documentation:ld[r],textEdit:se.replace(this.getCompletionRange(n),s),kind:ie.Function,insertTextFormat:r!==s?fn:void 0})}return i}getBasicShapeProposals(e,n,i){for(let r in cd){let s=Yi(r);i.items.push({label:r,documentation:cd[r],textEdit:se.replace(this.getCompletionRange(n),s),kind:ie.Function,insertTextFormat:r!==s?fn:void 0})}return i}getCompletionsForStylesheet(e){let n=this.styleSheet.findFirstChildBeforeOffset(this.offset);return n?n instanceof vt?this.getCompletionsForRuleSet(n,e):n instanceof ni?this.getCompletionsForSupports(n,e):e:this.getCompletionForTopLevel(e)}getCompletionForTopLevel(e){return this.cssDataManager.getAtDirectives().forEach(n=>{e.items.push({label:n.name,textEdit:se.replace(this.getCompletionRange(null),n.name),documentation:Zt(n,this.doesSupportMarkdown()),tags:Ur(n)?[pn.Deprecated]:[],kind:ie.Keyword})}),this.getCompletionsForSelector(null,!1,e),e}getCompletionsForRuleSet(e,n){let i=e.getDeclarations();return i&&i.endsWith("}")&&this.offset>=i.end?this.getCompletionForTopLevel(n):!i||this.offset<=i.offset?this.getCompletionsForSelector(e,e.isNested(),n):this.getCompletionsForDeclarations(e.getDeclarations(),n)}getCompletionsForSelector(e,n,i){let r=this.findInNodePath(v.PseudoSelector,v.IdentifierSelector,v.ClassSelector,v.ElementNameSelector);if(!r&&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=le.create(Xe.create(this.position.line,this.position.character-this.currentWord.length),this.position)),this.cssDataManager.getPseudoClasses().forEach(c=>{let d=Yi(c.name),p={label:c.name,textEdit:se.replace(this.getCompletionRange(r),d),documentation:Zt(c,this.doesSupportMarkdown()),tags:Ur(c)?[pn.Deprecated]:[],kind:ie.Function,insertTextFormat:c.name!==d?fn:void 0};ze(c.name,":-")&&(p.sortText=en.VendorPrefixed),i.items.push(p)}),this.cssDataManager.getPseudoElements().forEach(c=>{let d=Yi(c.name),p={label:c.name,textEdit:se.replace(this.getCompletionRange(r),d),documentation:Zt(c,this.doesSupportMarkdown()),tags:Ur(c)?[pn.Deprecated]:[],kind:ie.Function,insertTextFormat:c.name!==d?fn:void 0};ze(c.name,"::-")&&(p.sortText=en.VendorPrefixed),i.items.push(p)}),!n){for(let c of nm)i.items.push({label:c,textEdit:se.replace(this.getCompletionRange(r),c),kind:ie.Keyword});for(let c of im)i.items.push({label:c,textEdit:se.replace(this.getCompletionRange(r),c),kind:ie.Keyword})}let a={};a[this.currentWord]=!0;let l=this.textDocument.getText();if(this.styleSheet.accept(c=>{if(c.type===v.SimpleSelector&&c.length>0){let d=l.substr(c.offset,c.length);return d.charAt(0)==="."&&!a[d]&&(a[d]=!0,i.items.push({label:d,textEdit:se.replace(this.getCompletionRange(r),d),kind:ie.Keyword})),!1}return!0}),e&&e.isNested()){let c=e.getSelectors().findFirstChildBeforeOffset(this.offset);c&&e.getSelectors().getChildren().indexOf(c)===0&&this.getPropertyProposals(null,i)}return i}getCompletionsForDeclarations(e,n){if(!e||this.offset===e.offset)return n;let i=e.findFirstChildBeforeOffset(this.offset);if(!i)return this.getCompletionsForDeclarationProperty(null,n);if(i instanceof Ti){let r=i;if(!ft(r.colonPosition)||this.offset<=r.colonPosition)return this.getCompletionsForDeclarationProperty(r,n);if(ft(r.semicolonPosition)&&r.semicolonPosition<this.offset)return this.offset===r.semicolonPosition+1?n:this.getCompletionsForDeclarationProperty(null,n);if(r instanceof it)return this.getCompletionsForDeclarationValue(r,n)}else i instanceof si?this.getCompletionsForExtendsReference(i,null,n):this.currentWord&&this.currentWord[0]==="@"?this.getCompletionsForDeclarationProperty(null,n):i instanceof vt&&this.getCompletionsForDeclarationProperty(null,n);return n}getCompletionsForVariableDeclaration(e,n){return this.offset&&ft(e.colonPosition)&&this.offset>e.colonPosition&&this.getVariableProposals(e.getValue()||null,n),n}getCompletionsForExpression(e,n){let i=e.getParent();if(i instanceof Vt)return this.getCompletionsForFunctionArgument(i,i.getParent(),n),n;let r=e.findParent(v.Declaration);if(!r)return this.getTermProposals(void 0,null,n),n;let s=e.findChildAtOffset(this.offset,!0);return s?s instanceof ri||s instanceof pt?this.getCompletionsForDeclarationValue(r,n):n:this.getCompletionsForDeclarationValue(r,n)}getCompletionsForFunctionArgument(e,n,i){let r=n.getIdentifier();return r&&r.matches("var")&&(!n.getArguments().hasChildren()||n.getArguments().getChild(0)===e)&&this.getVariableProposalsForCSSVarFunction(i),i}getCompletionsForFunctionDeclaration(e,n){let i=e.getDeclarations();return i&&this.offset>i.offset&&this.offset<i.end&&this.getTermProposals(void 0,null,n),n}getCompletionsForMixinReference(e,n){let i=this.getSymbolContext().findSymbolsAtOffset(this.offset,Ce.Mixin);for(let s of i)s.node instanceof Wn&&n.items.push(this.makeTermProposal(s,s.node.getParameters(),null));let r=e.getIdentifier()||null;return this.completionParticipants.forEach(s=>{s.onCssMixinReference&&s.onCssMixinReference({mixinName:this.currentWord,range:this.getCompletionRange(r)})}),n}getTermProposals(e,n,i){let r=this.getSymbolContext().findSymbolsAtOffset(this.offset,Ce.Function);for(let s of r)s.node instanceof Pn&&i.items.push(this.makeTermProposal(s,s.node.getParameters(),n));return i}makeTermProposal(e,n,i){let r=e.node,s=n.getChildren().map(a=>a instanceof In?a.getName():a.getText()),o=e.name+"("+s.map((a,l)=>"${"+(l+1)+":"+a+"}").join(", ")+")";return{label:e.name,detail:e.name+"("+s.join(", ")+")",textEdit:se.replace(this.getCompletionRange(i),o),insertTextFormat:fn,kind:ie.Function,sortText:en.Term}}getCompletionsForSupportsCondition(e,n){let i=e.findFirstChildBeforeOffset(this.offset);if(i){if(i instanceof it)return!ft(i.colonPosition)||this.offset<=i.colonPosition?this.getCompletionsForDeclarationProperty(i,n):this.getCompletionsForDeclarationValue(i,n);if(i instanceof hn)return this.getCompletionsForSupportsCondition(i,n)}return ft(e.lParent)&&this.offset>e.lParent&&(!ft(e.rParent)||this.offset<=e.rParent)?this.getCompletionsForDeclarationProperty(null,n):n}getCompletionsForSupports(e,n){let i=e.getDeclarations();if(!i||this.offset<=i.offset){let s=e.findFirstChildBeforeOffset(this.offset);return s instanceof hn?this.getCompletionsForSupportsCondition(s,n):n}return this.getCompletionForTopLevel(n)}getCompletionsForExtendsReference(e,n,i){return i}getCompletionForUriLiteralValue(e,n){let i,r,s;if(e.hasChildren()){let o=e.getChild(0);i=o.getText(),r=this.position,s=this.getCompletionRange(o)}else{i="",r=this.position;let o=this.textDocument.positionAt(e.offset+4);s=le.create(o,o)}return this.completionParticipants.forEach(o=>{o.onCssURILiteralValue&&o.onCssURILiteralValue({uriValue:i,position:r,range:s})}),n}getCompletionForImportPath(e,n){return this.completionParticipants.forEach(i=>{i.onCssImportPath&&i.onCssImportPath({pathValue:e.getText(),position:this.position,range:this.getCompletionRange(e)})}),n}hasCharacterAtPosition(e,n){let i=this.textDocument.getText();return e>=0&&e<i.length&&i.charAt(e)===n}doesSupportMarkdown(){if(!ft(this.supportsMarkdown)){if(!ft(this.lsOptions.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;let e=this.lsOptions.clientCapabilities.textDocument?.completion?.completionItem?.documentationFormat;this.supportsMarkdown=Array.isArray(e)&&e.indexOf(bt.Markdown)!==-1}return this.supportsMarkdown}};function Ur(t){return!!(t.status&&(t.status==="nonstandard"||t.status==="obsolete"))}var Vr=class{constructor(){this.entries={}}add(e){this.entries[e]=!0}remove(e){delete this.entries[e]}getEntries(){return Object.keys(this.entries)}};function Yi(t){return t.replace(/\(\)$/,"($1)")}function Rv(t,e){let n=e.getFullPropertyName(),i=new Vr;function r(a){return(a instanceof pt||a instanceof ri||a instanceof ii)&&i.add(a.getText()),!0}function s(a){let l=a.getFullPropertyName();return n===l}function o(a){if(a instanceof it&&a!==e&&s(a)){let l=a.getValue();l&&l.accept(r)}return!0}return t.accept(o),i}var gd=class{constructor(e,n){this.entries=e,this.currentOffset=n}visitNode(e){return(e instanceof ii||e instanceof Qt&&Jp(e))&&(this.currentOffset<e.offset||e.end<this.currentOffset)&&this.entries.add(e.getText()),!0}},bd=class{constructor(e,n){this.entries=e,this.currentOffset=n}visitNode(e){return e instanceof pt&&e.isCustomProperty&&(this.currentOffset<e.offset||e.end<this.currentOffset)&&this.entries.add(e.getText()),!0}};function Mv(t,e){let n=e-1,i=t.getText();for(;n>=0&&`
|
54
|
+
`),n+=t.references.map(i=>`[${i.name}](${i.url})`).join(" | ")),n}function Bp(t=[]){if(t.length===0)return null;let e=[];for(let n of t){let i=n.match(/([A-Z]+)(\d+)?/),r=i[1],s=i[2];if(r in Up){let o=Up[r];s&&(o+=" "+s),e.push(o)}}return e.join(", ")}var Ie=lt(Rt()),hv=/(^#([0-9A-F]{3}){1,2}$)|(^#([0-9A-F]{4}){1,2}$)/i,Gp=[{label:"rgb",func:"rgb($red, $green, $blue)",insertText:"rgb(${1:red}, ${2:green}, ${3:blue})",desc:Ie.t("Creates a Color from red, green, and blue values.")},{label:"rgba",func:"rgba($red, $green, $blue, $alpha)",insertText:"rgba(${1:red}, ${2:green}, ${3:blue}, ${4:alpha})",desc:Ie.t("Creates a Color from red, green, blue, and alpha values.")},{label:"rgb relative",func:"rgb(from $color $red $green $blue)",insertText:"rgb(from ${1:color} ${2:r} ${3:g} ${4:b})",desc:Ie.t("Creates a Color from the red, green, and blue values of another Color.")},{label:"hsl",func:"hsl($hue, $saturation, $lightness)",insertText:"hsl(${1:hue}, ${2:saturation}, ${3:lightness})",desc:Ie.t("Creates a Color from hue, saturation, and lightness values.")},{label:"hsla",func:"hsla($hue, $saturation, $lightness, $alpha)",insertText:"hsla(${1:hue}, ${2:saturation}, ${3:lightness}, ${4:alpha})",desc:Ie.t("Creates a Color from hue, saturation, lightness, and alpha values.")},{label:"hsl relative",func:"hsl(from $color $hue $saturation $lightness)",insertText:"hsl(from ${1:color} ${2:h} ${3:s} ${4:l})",desc:Ie.t("Creates a Color from the hue, saturation, and lightness values of another Color.")},{label:"hwb",func:"hwb($hue $white $black)",insertText:"hwb(${1:hue} ${2:white} ${3:black})",desc:Ie.t("Creates a Color from hue, white, and black values.")},{label:"hwb relative",func:"hwb(from $color $hue $white $black)",insertText:"hwb(from ${1:color} ${2:h} ${3:w} ${4:b})",desc:Ie.t("Creates a Color from the hue, white, and black values of another Color.")},{label:"lab",func:"lab($lightness $a $b)",insertText:"lab(${1:lightness} ${2:a} ${3:b})",desc:Ie.t("Creates a Color from lightness, a, and b values.")},{label:"lab relative",func:"lab(from $color $lightness $a $b)",insertText:"lab(from ${1:color} ${2:l} ${3:a} ${4:b})",desc:Ie.t("Creates a Color from the lightness, a, and b values of another Color.")},{label:"oklab",func:"oklab($lightness $a $b)",insertText:"oklab(${1:lightness} ${2:a} ${3:b})",desc:Ie.t("Creates a Color from lightness, a, and b values.")},{label:"oklab relative",func:"oklab(from $color $lightness $a $b)",insertText:"oklab(from ${1:color} ${2:l} ${3:a} ${4:b})",desc:Ie.t("Creates a Color from the lightness, a, and b values of another Color.")},{label:"lch",func:"lch($lightness $chroma $hue)",insertText:"lch(${1:lightness} ${2:chroma} ${3:hue})",desc:Ie.t("Creates a Color from lightness, chroma, and hue values.")},{label:"lch relative",func:"lch(from $color $lightness $chroma $hue)",insertText:"lch(from ${1:color} ${2:l} ${3:c} ${4:h})",desc:Ie.t("Creates a Color from the lightness, chroma, and hue values of another Color.")},{label:"oklch",func:"oklch($lightness $chroma $hue)",insertText:"oklch(${1:lightness} ${2:chroma} ${3:hue})",desc:Ie.t("Creates a Color from lightness, chroma, and hue values.")},{label:"oklch relative",func:"oklch(from $color $lightness $chroma $hue)",insertText:"oklch(from ${1:color} ${2:l} ${3:c} ${4:h})",desc:Ie.t("Creates a Color from the lightness, chroma, and hue values of another Color.")},{label:"color",func:"color($color-space $red $green $blue)",insertText:"color(${1|srgb,srgb-linear,display-p3,a98-rgb,prophoto-rgb,rec2020,xyx,xyz-d50,xyz-d65|} ${2:red} ${3:green} ${4:blue})",desc:Ie.t("Creates a Color in a specific color space from red, green, and blue values.")},{label:"color relative",func:"color(from $color $color-space $red $green $blue)",insertText:"color(from ${1:color} ${2|srgb,srgb-linear,display-p3,a98-rgb,prophoto-rgb,rec2020,xyx,xyz-d50,xyz-d65|} ${3:r} ${4:g} ${5:b})",desc:Ie.t("Creates a Color in a specific color space from the red, green, and blue values of another Color.")},{label:"color-mix",func:"color-mix(in $color-space, $color $percentage, $color $percentage)",insertText:"color-mix(in ${1|srgb,srgb-linear,lab,oklab,xyz,xyz-d50,xyz-d65|}, ${3:color} ${4:percentage}, ${5:color} ${6:percentage})",desc:Ie.t("Mix two colors together in a rectangular color space.")},{label:"color-mix hue",func:"color-mix(in $color-space $interpolation-method hue, $color $percentage, $color $percentage)",insertText:"color-mix(in ${1|hsl,hwb,lch,oklch|} ${2|shorter hue,longer hue,increasing hue,decreasing hue|}, ${3:color} ${4:percentage}, ${5:color} ${6:percentage})",desc:Ie.t("Mix two colors together in a polar color space.")},{label:"lab",func:"lab($lightness $channel_a $channel_b $alpha)",insertText:"lab(${1:lightness} ${2:a} ${3:b} ${4:alpha})",desc:Ie.t("css.builtin.lab","Creates a Color from Lightness, Channel a, Channel b and alpha values.")},{label:"lab relative",func:"lab(from $color $lightness $channel_a $channel_b $alpha)",insertText:"lab(from ${1:color} ${2:lightness} ${3:channel_a} ${4:channel_b} ${5:alpha})",desc:Ie.t("css.builtin.lab","Creates a Color from Lightness, Channel a, Channel b and alpha values of another Color.")},{label:"lch",func:"lch($lightness $chrome $hue $alpha)",insertText:"lch(${1:lightness} ${2:chrome} ${3:hue} ${4:alpha})",desc:Ie.t("css.builtin.lab","Creates a Color from Lightness, Chroma, Hue and alpha values.")},{label:"lch relative",func:"lch(from $color $lightness $chrome $hue $alpha)",insertText:"lch(from ${1:color} ${2:lightness} ${3:chrome} ${4:hue} ${5:alpha})",desc:Ie.t("css.builtin.lab","Creates a Color from Lightness, Chroma, Hue and alpha values of another Color.")}],uv=/^(rgb|rgba|hsl|hsla|hwb|lab|lch)$/i,Lr={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"},pv=new RegExp(`^(${Object.keys(Lr).join("|")})$`,"i"),Uo={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."},mv=new RegExp(`^(${Object.keys(Uo).join("|")})$`,"i");function St(t,e,n=0,i=1){let s=t.getText().match(/^([-+]?[0-9]*\.?[0-9]+)(%?)$/);if(s){s[2]&&(e=100);let o=parseFloat(s[1])/e;if(o>=n&&o<=i)return o}throw new Error}function Xc(t){let 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 Jp(t){let e=t.getName();return e?uv.test(e):!1}function Yc(t){return hv.test(t)||pv.test(t)||mv.test(t)}var Hp=48,fv=57,gv=65;var $o=97,bv=102;function Ve(t){return t<Hp?0:t<=fv?t-Hp:(t<$o&&(t+=$o-gv),t>=$o&&t<=bv?t-$o+10:0)}function Kp(t){if(t[0]!=="#")return null;switch(t.length){case 4:return{red:Ve(t.charCodeAt(1))*17/255,green:Ve(t.charCodeAt(2))*17/255,blue:Ve(t.charCodeAt(3))*17/255,alpha:1};case 5:return{red:Ve(t.charCodeAt(1))*17/255,green:Ve(t.charCodeAt(2))*17/255,blue:Ve(t.charCodeAt(3))*17/255,alpha:Ve(t.charCodeAt(4))*17/255};case 7:return{red:(Ve(t.charCodeAt(1))*16+Ve(t.charCodeAt(2)))/255,green:(Ve(t.charCodeAt(3))*16+Ve(t.charCodeAt(4)))/255,blue:(Ve(t.charCodeAt(5))*16+Ve(t.charCodeAt(6)))/255,alpha:1};case 9:return{red:(Ve(t.charCodeAt(1))*16+Ve(t.charCodeAt(2)))/255,green:(Ve(t.charCodeAt(3))*16+Ve(t.charCodeAt(4)))/255,blue:(Ve(t.charCodeAt(5))*16+Ve(t.charCodeAt(6)))/255,alpha:(Ve(t.charCodeAt(7))*16+Ve(t.charCodeAt(8)))/255}}return null}function Xp(t,e,n,i=1){if(t=t/60,e===0)return{red:n,green:n,blue:n,alpha:i};{let r=(a,l,c)=>{for(;c<0;)c+=6;for(;c>=6;)c-=6;return c<1?(l-a)*c+a:c<3?l:c<4?(l-a)*(4-c)+a:a},s=n<=.5?n*(e+1):n+e-n*e,o=n*2-s;return{red:r(o,s,t+2),green:r(o,s,t),blue:r(o,s,t-2),alpha:i}}}function Qc(t){let e=t.red,n=t.green,i=t.blue,r=t.alpha,s=Math.max(e,n,i),o=Math.min(e,n,i),a=0,l=0,c=(o+s)/2,d=s-o;if(d>0){switch(l=Math.min(c<=.5?d/(2*c):d/(2-2*c),1),s){case e:a=(n-i)/d+(n<i?6:0);break;case n:a=(i-e)/d+2;break;case i:a=(e-n)/d+4;break}a*=60,a=Math.round(a)}return{h:a,s:l,l:c,a:r}}function yv(t,e,n,i=1){if(e+n>=1){let l=e/(e+n);return{red:l,green:l,blue:l,alpha:i}}let r=Xp(t,1,.5,i),s=r.red;s*=1-e-n,s+=e;let o=r.green;o*=1-e-n,o+=e;let a=r.blue;return a*=1-e-n,a+=e,{red:s,green:o,blue:a,alpha:i}}function Yp(t){let e=Qc(t),n=Math.min(t.red,t.green,t.blue),i=1-Math.max(t.red,t.green,t.blue);return{h:e.h,w:n,b:i,a:e.a}}function wv(t){let e={x:0,y:0,z:0,alpha:t.alpha??1};e.y=(t.l+16)/116,e.x=t.a/500+e.y,e.z=e.y-t.b/200;let n;for(n in e){let i=e[n]*e[n]*e[n];i>.008856?e[n]=i:e[n]=(e[n]-16/116)/7.787}return e.x=e.x*95.047,e.y=e.y*100,e.z=e.z*108.883,e}function vv(t){let e=t.x/100,n=t.y/100,i=t.z/100,r=3.2406254773200533*e-1.5372079722103187*n-.4986285986982479*i,s=-.9689307147293197*e+1.8757560608852415*n+.041517523842953964*i,o=.055710120445510616*e+-.2040210505984867*n+1.0569959422543882*i,a=l=>l<=.0031308?12.92*l:Math.min(1.055*Math.pow(l,1/2.4)-.055,1);return{red:Math.round(a(r)*255),blue:Math.round(a(o)*255),green:Math.round(a(s)*255),alpha:t.alpha}}function Sv(t){let e=t.red,n=t.green,i=t.blue;e>.04045?e=Math.pow((e+.055)/1.055,2.4):e=e/12.92,n>.04045?n=Math.pow((n+.055)/1.055,2.4):n=n/12.92,i>.04045?i=Math.pow((i+.055)/1.055,2.4):i=i/12.92,e=e*100,n=n*100,i=i*100;let r=e*.4124+n*.3576+i*.1805,s=e*.2126+n*.7152+i*.0722,o=e*.0193+n*.1192+i*.9505;return{x:r,y:s,z:o,alpha:t.alpha}}function _v(t,e=!0){let s=t.x/95.047,o=t.y/100,a=t.z/108.883;s>.008856?s=Math.pow(s,1/3):s=7.787*s+16/116,o>.008856?o=Math.pow(o,1/3):o=7.787*o+16/116,a>.008856?a=Math.pow(a,1/3):a=7.787*a+16/116;let l=116*o-16,c=500*(s-o),d=200*(o-a);return e?{l:Math.round((l+Number.EPSILON)*100)/100,a:Math.round((c+Number.EPSILON)*100)/100,b:Math.round((d+Number.EPSILON)*100)/100,alpha:t.alpha}:{l,a:c,b:d,alpha:t.alpha}}function Zc(t,e=!0){let n=Sv(t);return _v(n,e)}function Qp(t){let e=Zc(t,!1),n=Math.sqrt(Math.pow(e.a,2)+Math.pow(e.b,2)),i=Math.atan2(e.b,e.a)*(180/Math.PI);for(;i<0;)i=i+360;return{l:Math.round((e.l+Number.EPSILON)*100)/100,c:Math.round((n+Number.EPSILON)*100)/100,h:Math.round((i+Number.EPSILON)*100)/100,alpha:e.alpha}}function Zp(t,e,n,i=1){let s=wv({l:t,a:e,b:n,alpha:i}),o=vv(s);return{red:(o.red>=0?o.red<=255?o.red:255:0)/255,green:(o.green>=0?o.green<=255?o.green:255:0)/255,blue:(o.blue>=0?o.blue<=255?o.blue:255:0)/255,alpha:i}}function xv(t,e,n,i=1){return{l:t,a:e*Math.cos(n*(Math.PI/180)),b:e*Math.sin(n*(Math.PI/180)),alpha:i}}function Cv(t,e,n,i=1){let r=xv(t,e,n,i);return Zp(r.l,r.a,r.b,i)}function em(t){if(t.type===v.HexColorValue){let e=t.getText();return Kp(e)}else if(t.type===v.Function){let e=t,n=e.getName(),i=e.getArguments().getChildren();if(i.length===1){let r=i[0].getChildren();if(r.length===1&&r[0].type===v.Expression&&(i=r[0].getChildren(),i.length===3)){let s=i[2];if(s instanceof Nn){let o=s.getLeft(),a=s.getRight(),l=s.getOperator();o&&a&&l&&l.matches("/")&&(i=[i[0],i[1],o,a])}}}if(!n||i.length<3||i.length>4)return null;try{let r=i.length===4?St(i[3],1):1;if(n==="rgb"||n==="rgba")return{red:St(i[0],255),green:St(i[1],255),blue:St(i[2],255),alpha:r};if(n==="hsl"||n==="hsla"){let s=Xc(i[0]),o=St(i[1],100),a=St(i[2],100);return Xp(s,o,a,r)}else if(n==="hwb"){let s=Xc(i[0]),o=St(i[1],100),a=St(i[2],100);return yv(s,o,a,r)}else if(n==="lab"){let s=St(i[0],100),o=St(i[1],125,-1),a=St(i[2],125,-1);return Zp(s*100,o*125,a*125,r)}else if(n==="lch"){let s=St(i[0],100),o=St(i[1],230),a=Xc(i[2]);return Cv(s*100,o*230,a,r)}}catch{return null}}else if(t.type===v.Identifier){if(t.parent&&t.parent.type!==v.Term)return null;let e=t.parent;if(e&&e.parent&&e.parent.type===v.BinaryExpression){let r=e.parent;if(r.parent&&r.parent.type===v.ListEntry&&r.parent.key===r)return null}let n=t.getText().toLowerCase();if(n==="none")return null;let i=Lr[n];if(i)return Kp(i)}return null}var ed={bottom:"Computes to \u2018100%\u2019 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 \u201850%\u2019 (\u2018left 50%\u2019) for the horizontal position if the horizontal position is not otherwise specified, or \u201850%\u2019 (\u2018top 50%\u2019) for the vertical position if it is.",left:"Computes to \u20180%\u2019 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 \u2018100%\u2019 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 \u20180%\u2019 for the vertical position if one or two values are given, otherwise specifies the top edge as the origin for the next offset."},td={"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 \u2018repeat no-repeat\u2019.","repeat-y":"Computes to \u2018no-repeat repeat\u2019.",round:"Repeated as often as will fit within the background positioning area. If it doesn\u2019t 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."},nd={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 \u2018none\u2019, 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."},tm=["medium","thick","thin"],id={"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."},rd={"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."},sd={initial:"Represents the value specified as the property\u2019s initial value.",inherit:"Represents the computed value of the property on the element\u2019s parent.",unset:"Acts as either `inherit` or `initial`, depending on whether the property is inherited or not."},od={"var()":"Evaluates the value of a custom variable.","calc()":"Evaluates an mathematical expression. The following operators can be used: + - * /."},ad={"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\u2019s position and the first specified color-stop\u2019s 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\u2019s position and the first specified color-stop\u2019s position."},ld={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 \u201Cstart\u201D or \u201Cend\u201D.","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."},cd={"circle()":"Defines a circle.","ellipse()":"Defines an ellipse.","inset()":"Defines an inset rectangle.","polygon()":"Defines a polygon."},Vo={length:["cap","ch","cm","cqb","cqh","cqi","cqmax","cqmin","cqw","dvb","dvh","dvi","dvw","em","ex","ic","in","lh","lvb","lvh","lvi","lvw","mm","pc","pt","px","q","rcap","rch","rem","rex","ric","rlh","svb","svh","svi","svw","vb","vh","vi","vmax","vmin","vw"],angle:["deg","rad","grad","turn"],time:["ms","s"],frequency:["Hz","kHz"],resolution:["dpi","dpcm","dppx"],percentage:["%","fr"]},nm=["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"],im=["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"],rm=["@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 qr(t){return Object.keys(t).map(e=>t[e])}function ft(t){return typeof t<"u"}var qn=class{constructor(e=new At){this.keyframeRegex=/^@(\-(webkit|ms|moz|o)\-)?keyframes$/i,this.scanner=e,this.token={type:g.EOF,offset:-1,len:0,text:""},this.prevToken=void 0}peekIdent(e){return g.Ident===this.token.type&&e.length===this.token.text.length&&e===this.token.text.toLowerCase()}peekKeyword(e){return g.AtKeyword===this.token.type&&e.length===this.token.text.length&&e===this.token.text.toLowerCase()}peekDelim(e){return g.Delim===this.token.type&&e===this.token.text}peek(e){return e===this.token.type}peekOne(...e){return e.indexOf(this.token.type)!==-1}peekRegExp(e,n){return e!==this.token.type?!1:n.test(this.token.text)}hasWhitespace(){return!!this.prevToken&&this.prevToken.offset+this.prevToken.len!==this.token.offset}consumeToken(){this.prevToken=this.token,this.token=this.scanner.scan()}acceptUnicodeRange(){let e=this.scanner.tryScanUnicode();return e?(this.prevToken=e,this.token=this.scanner.scan(),!0):!1}mark(){return{prev:this.prevToken,curr:this.token,pos:this.scanner.pos()}}restoreAtMark(e){this.prevToken=e.prev,this.token=e.curr,this.scanner.goBackTo(e.pos)}try(e){let n=this.mark(),i=e();return i||(this.restoreAtMark(n),null)}acceptOneKeyword(e){if(g.AtKeyword===this.token.type){for(let n of e)if(n.length===this.token.text.length&&n===this.token.text.toLowerCase())return this.consumeToken(),!0}return!1}accept(e){return e===this.token.type?(this.consumeToken(),!0):!1}acceptIdent(e){return this.peekIdent(e)?(this.consumeToken(),!0):!1}acceptKeyword(e){return this.peekKeyword(e)?(this.consumeToken(),!0):!1}acceptDelim(e){return this.peekDelim(e)?(this.consumeToken(),!0):!1}acceptRegexp(e){return e.test(this.token.text)?(this.consumeToken(),!0):!1}_parseRegexp(e){let n=this.createNode(v.Identifier);do;while(this.acceptRegexp(e));return this.finish(n)}acceptUnquotedString(){let e=this.scanner.pos();this.scanner.goBackTo(this.token.offset);let n=this.scanner.scanUnquotedString();return n?(this.token=n,this.consumeToken(),!0):(this.scanner.goBackTo(e),!1)}resync(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===g.EOF)return!1;this.token=this.scanner.scan()}}createNode(e){return new ne(this.token.offset,this.token.len,e)}create(e){return new e(this.token.offset,this.token.len)}finish(e,n,i,r){if(!(e instanceof Et)&&(n&&this.markError(e,n,i,r),this.prevToken)){let s=this.prevToken.offset+this.prevToken.len;e.length=s>e.offset?s-e.offset:0}return e}markError(e,n,i,r){this.token!==this.lastErrorToken&&(e.addIssue(new $i(e,n,rt.Error,void 0,this.token.offset,this.token.len)),this.lastErrorToken=this.token),(i||r)&&this.resync(i,r)}parseStylesheet(e){let n=e.version,i=e.getText(),r=(s,o)=>{if(e.version!==n)throw new Error("Underlying model has changed, AST is no longer valid");return i.substr(s,o)};return this.internalParse(i,this._parseStylesheet,r)}internalParse(e,n,i){this.scanner.setSource(e),this.token=this.scanner.scan();let r=n.bind(this)();return r&&(i?r.textProvider=i:r.textProvider=(s,o)=>e.substr(s,o)),r}_parseStylesheet(){let e=this.create(fo);for(;e.addChild(this._parseStylesheetStart()););let n=!1;do{let i=!1;do{i=!1;let r=this._parseStylesheetStatement();for(r&&(e.addChild(r),i=!0,n=!1,!this.peek(g.EOF)&&this._needsSemicolonAfter(r)&&!this.accept(g.SemiColon)&&this.markError(e,B.SemiColonExpected));this.accept(g.SemiColon)||this.accept(g.CDO)||this.accept(g.CDC);)i=!0,n=!1}while(i);if(this.peek(g.EOF))break;n||(this.peek(g.AtKeyword)?this.markError(e,B.UnknownAtRule):this.markError(e,B.RuleOrSelectorExpected),n=!0),this.consumeToken()}while(!this.peek(g.EOF));return this.finish(e)}_parseStylesheetStart(){return this._parseCharset()}_parseStylesheetStatement(e=!1){return this.peek(g.AtKeyword)?this._parseStylesheetAtStatement(e):this._parseRuleset(e)}_parseStylesheetAtStatement(e=!1){return this._parseImport()||this._parseMedia(e)||this._parsePage()||this._parseFontFace()||this._parseKeyframe()||this._parseSupports(e)||this._parseLayer(e)||this._parsePropertyAtRule()||this._parseViewPort()||this._parseNamespace()||this._parseDocument()||this._parseContainer(e)||this._parseStartingStyleAtRule(e)||this._parseUnknownAtRule()}_tryParseRuleset(e){let n=this.mark();if(this._parseSelector(e)){for(;this.accept(g.Comma)&&this._parseSelector(e););if(this.accept(g.CurlyL))return this.restoreAtMark(n),this._parseRuleset(e)}return this.restoreAtMark(n),null}_parseRuleset(e=!1){let n=this.create(vt),i=n.getSelectors();if(!i.addChild(this._parseSelector(e)))return null;for(;this.accept(g.Comma);)if(!i.addChild(this._parseSelector(e)))return this.finish(n,B.SelectorExpected);return this._parseBody(n,this._parseRuleSetDeclaration.bind(this))}_parseRuleSetDeclarationAtStatement(){return this._parseMedia(!0)||this._parseSupports(!0)||this._parseLayer(!0)||this._parseContainer(!0)||this._parseStartingStyleAtRule(!0)||this._parseUnknownAtRule()}_parseRuleSetDeclaration(){return this.peek(g.AtKeyword)?this._parseRuleSetDeclarationAtStatement():this.peek(g.Ident)?this._tryParseRuleset(!0)||this._parseDeclaration():this._parseRuleset(!0)}_needsSemicolonAfter(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}_parseDeclarations(e){let n=this.create(ti);if(!this.accept(g.CurlyL))return null;let i=e();for(;n.addChild(i)&&!this.peek(g.CurlyR);){if(this._needsSemicolonAfter(i)&&!this.accept(g.SemiColon))return this.finish(n,B.SemiColonExpected,[g.SemiColon,g.CurlyR]);for(i&&this.prevToken&&this.prevToken.type===g.SemiColon&&(i.semicolonPosition=this.prevToken.offset);this.accept(g.SemiColon););i=e()}return this.accept(g.CurlyR)?this.finish(n):this.finish(n,B.RightCurlyExpected,[g.CurlyR,g.SemiColon])}_parseBody(e,n){return e.setDeclarations(this._parseDeclarations(n))?this.finish(e):this.finish(e,B.LeftCurlyExpected,[g.CurlyR,g.SemiColon])}_parseSelector(e){let n=this.create(Ut),i=!1;for(e&&(i=n.addChild(this._parseCombinator()));n.addChild(this._parseSimpleSelector());)i=!0,n.addChild(this._parseCombinator());return i?this.finish(n):null}_parseDeclaration(e){let n=this._tryParseCustomPropertyDeclaration(e);if(n)return n;let i=this.create(it);return i.setProperty(this._parseProperty())?this.accept(g.Colon)?(this.prevToken&&(i.colonPosition=this.prevToken.offset),i.setValue(this._parseExpr())?(i.addChild(this._parsePrio()),this.peek(g.SemiColon)&&(i.semicolonPosition=this.token.offset),this.finish(i)):this.finish(i,B.PropertyValueExpected)):this.finish(i,B.ColonExpected,[g.Colon],e||[g.SemiColon]):null}_tryParseCustomPropertyDeclaration(e){if(!this.peekRegExp(g.Ident,/^--/))return null;let n=this.create(bo);if(!n.setProperty(this._parseProperty()))return null;if(!this.accept(g.Colon))return this.finish(n,B.ColonExpected,[g.Colon]);this.prevToken&&(n.colonPosition=this.prevToken.offset);let i=this.mark();if(this.peek(g.CurlyL)){let s=this.create(go),o=this._parseDeclarations(this._parseRuleSetDeclaration.bind(this));if(s.setDeclarations(o)&&!o.isErroneous(!0)&&(s.addChild(this._parsePrio()),this.peek(g.SemiColon)))return this.finish(s),n.setPropertySet(s),n.semicolonPosition=this.token.offset,this.finish(n);this.restoreAtMark(i)}let r=this._parseExpr();return r&&!r.isErroneous(!0)&&(this._parsePrio(),this.peekOne(...e||[],g.SemiColon,g.EOF))?(n.setValue(r),this.peek(g.SemiColon)&&(n.semicolonPosition=this.token.offset),this.finish(n)):(this.restoreAtMark(i),n.addChild(this._parseCustomPropertyValue(e)),n.addChild(this._parsePrio()),ft(n.colonPosition)&&this.token.offset===n.colonPosition+1?this.finish(n,B.PropertyValueExpected):this.finish(n))}_parseCustomPropertyValue(e=[g.CurlyR]){let n=this.create(ne),i=()=>s===0&&o===0&&a===0,r=()=>e.indexOf(this.token.type)!==-1,s=0,o=0,a=0;e:for(;;){switch(this.token.type){case g.SemiColon:if(i())break e;break;case g.Exclamation:if(i())break e;break;case g.CurlyL:s++;break;case g.CurlyR:if(s--,s<0){if(r()&&o===0&&a===0)break e;return this.finish(n,B.LeftCurlyExpected)}break;case g.ParenthesisL:o++;break;case g.ParenthesisR:if(o--,o<0){if(r()&&a===0&&s===0)break e;return this.finish(n,B.LeftParenthesisExpected)}break;case g.BracketL:a++;break;case g.BracketR:if(a--,a<0)return this.finish(n,B.LeftSquareBracketExpected);break;case g.BadString:break e;case g.EOF:let l=B.RightCurlyExpected;return a>0?l=B.RightSquareBracketExpected:o>0&&(l=B.RightParenthesisExpected),this.finish(n,l)}this.consumeToken()}return this.finish(n)}_tryToParseDeclaration(e){let n=this.mark();return this._parseProperty()&&this.accept(g.Colon)?(this.restoreAtMark(n),this._parseDeclaration(e)):(this.restoreAtMark(n),null)}_parseProperty(){let e=this.create(Tn),n=this.mark();return(this.acceptDelim("*")||this.acceptDelim("_"))&&this.hasWhitespace()?(this.restoreAtMark(n),null):e.setIdentifier(this._parsePropertyIdentifier())?this.finish(e):null}_parsePropertyIdentifier(){return this._parseIdent()}_parseCharset(){if(!this.peek(g.Charset))return null;let e=this.create(ne);return this.consumeToken(),this.accept(g.String)?this.accept(g.SemiColon)?this.finish(e):this.finish(e,B.SemiColonExpected):this.finish(e,B.IdentifierExpected)}_parseImport(){if(!this.peekKeyword("@import"))return null;let e=this.create(zi);return this.consumeToken(),!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral())?this.finish(e,B.URIOrStringExpected):this._completeParseImport(e)}_completeParseImport(e){if(this.acceptIdent("layer")&&this.accept(g.ParenthesisL)){if(!e.addChild(this._parseLayerName()))return this.finish(e,B.IdentifierExpected,[g.SemiColon]);if(!this.accept(g.ParenthesisR))return this.finish(e,B.RightParenthesisExpected,[g.ParenthesisR],[])}return this.acceptIdent("supports")&&this.accept(g.ParenthesisL)&&(e.addChild(this._tryToParseDeclaration()||this._parseSupportsCondition()),!this.accept(g.ParenthesisR))?this.finish(e,B.RightParenthesisExpected,[g.ParenthesisR],[]):(!this.peek(g.SemiColon)&&!this.peek(g.EOF)&&e.setMedialist(this._parseMediaQueryList()),this.finish(e))}_parseNamespace(){if(!this.peekKeyword("@namespace"))return null;let e=this.create(vo);return this.consumeToken(),!e.addChild(this._parseURILiteral())&&(e.addChild(this._parseIdent()),!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral()))?this.finish(e,B.URIExpected,[g.SemiColon]):this.accept(g.SemiColon)?this.finish(e):this.finish(e,B.SemiColonExpected)}_parseFontFace(){if(!this.peekKeyword("@font-face"))return null;let e=this.create(Ii);return this.consumeToken(),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))}_parseViewPort(){if(!this.peekKeyword("@-ms-viewport")&&!this.peekKeyword("@-o-viewport")&&!this.peekKeyword("@viewport"))return null;let e=this.create(yo);return this.consumeToken(),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))}_parseKeyframe(){if(!this.peekRegExp(g.AtKeyword,this.keyframeRegex))return null;let e=this.create(Pi),n=this.create(ne);return this.consumeToken(),e.setKeyword(this.finish(n)),n.matches("@-ms-keyframes")&&this.markError(n,B.UnknownKeyword),e.setIdentifier(this._parseKeyframeIdent())?this._parseBody(e,this._parseKeyframeSelector.bind(this)):this.finish(e,B.IdentifierExpected,[g.CurlyR])}_parseKeyframeIdent(){return this._parseIdent([Ce.Keyframe])}_parseKeyframeSelector(){let e=this.create(Mr),n=!1;if(e.addChild(this._parseIdent())&&(n=!0),this.accept(g.Percentage)&&(n=!0),!n)return null;for(;this.accept(g.Comma);)if(n=!1,e.addChild(this._parseIdent())&&(n=!0),this.accept(g.Percentage)&&(n=!0),!n)return this.finish(e,B.PercentageExpected);return this._parseBody(e,this._parseRuleSetDeclaration.bind(this))}_tryParseKeyframeSelector(){let e=this.create(Mr),n=this.mark(),i=!1;if(e.addChild(this._parseIdent())&&(i=!0),this.accept(g.Percentage)&&(i=!0),!i)return null;for(;this.accept(g.Comma);)if(i=!1,e.addChild(this._parseIdent())&&(i=!0),this.accept(g.Percentage)&&(i=!0),!i)return this.restoreAtMark(n),null;return this.peek(g.CurlyL)?this._parseBody(e,this._parseRuleSetDeclaration.bind(this)):(this.restoreAtMark(n),null)}_parsePropertyAtRule(){if(!this.peekKeyword("@property"))return null;let e=this.create(_o);return this.consumeToken(),!this.peekRegExp(g.Ident,/^--/)||!e.setName(this._parseIdent([Ce.Property]))?this.finish(e,B.IdentifierExpected):this._parseBody(e,this._parseDeclaration.bind(this))}_parseStartingStyleAtRule(e=!1){if(!this.peekKeyword("@starting-style"))return null;let n=this.create(xo);return this.consumeToken(),this._parseBody(n,this._parseStartingStyleDeclaration.bind(this,e))}_parseStartingStyleDeclaration(e=!1){return e?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)}_parseLayer(e=!1){if(!this.peekKeyword("@layer"))return null;let n=this.create(So);this.consumeToken();let i=this._parseLayerNameList();return i&&n.setNames(i),(!i||i.getChildren().length===1)&&this.peek(g.CurlyL)?this._parseBody(n,this._parseLayerDeclaration.bind(this,e)):this.accept(g.SemiColon)?this.finish(n):this.finish(n,B.SemiColonExpected)}_parseLayerDeclaration(e=!1){return e?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)}_parseLayerNameList(){let e=this.createNode(v.LayerNameList);if(!e.addChild(this._parseLayerName()))return null;for(;this.accept(g.Comma);)if(!e.addChild(this._parseLayerName()))return this.finish(e,B.IdentifierExpected);return this.finish(e)}_parseLayerName(){let e=this.createNode(v.LayerName);if(!e.addChild(this._parseIdent()))return null;for(;!this.hasWhitespace()&&this.acceptDelim(".");)if(this.hasWhitespace()||!e.addChild(this._parseIdent()))return this.finish(e,B.IdentifierExpected);return this.finish(e)}_parseSupports(e=!1){if(!this.peekKeyword("@supports"))return null;let n=this.create(ni);return this.consumeToken(),n.addChild(this._parseSupportsCondition()),this._parseBody(n,this._parseSupportsDeclaration.bind(this,e))}_parseSupportsDeclaration(e=!1){return e?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)}_parseSupportsCondition(){let e=this.create(hn);if(this.acceptIdent("not"))e.addChild(this._parseSupportsConditionInParens());else if(e.addChild(this._parseSupportsConditionInParens()),this.peekRegExp(g.Ident,/^(and|or)$/i)){let n=this.token.text.toLowerCase();for(;this.acceptIdent(n);)e.addChild(this._parseSupportsConditionInParens())}return this.finish(e)}_parseSupportsConditionInParens(){let e=this.create(hn);if(this.accept(g.ParenthesisL))return this.prevToken&&(e.lParent=this.prevToken.offset),!e.addChild(this._tryToParseDeclaration([g.ParenthesisR]))&&!this._parseSupportsCondition()?this.finish(e,B.ConditionExpected):this.accept(g.ParenthesisR)?(this.prevToken&&(e.rParent=this.prevToken.offset),this.finish(e)):this.finish(e,B.RightParenthesisExpected,[g.ParenthesisR],[]);if(this.peek(g.Ident)){let n=this.mark();if(this.consumeToken(),!this.hasWhitespace()&&this.accept(g.ParenthesisL)){let i=1;for(;this.token.type!==g.EOF&&i!==0;)this.token.type===g.ParenthesisL?i++:this.token.type===g.ParenthesisR&&i--,this.consumeToken();return this.finish(e)}else this.restoreAtMark(n)}return this.finish(e,B.LeftParenthesisExpected,[],[g.ParenthesisL])}_parseMediaDeclaration(e=!1){return e?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)}_parseMedia(e=!1){if(!this.peekKeyword("@media"))return null;let n=this.create(zn);return this.consumeToken(),n.addChild(this._parseMediaQueryList())?this._parseBody(n,this._parseMediaDeclaration.bind(this,e)):this.finish(n,B.MediaQueryExpected)}_parseMediaQueryList(){let e=this.create(Ni);if(!e.addChild(this._parseMediaQuery()))return this.finish(e,B.MediaQueryExpected);for(;this.accept(g.Comma);)if(!e.addChild(this._parseMediaQuery()))return this.finish(e,B.MediaQueryExpected);return this.finish(e)}_parseMediaQuery(){let e=this.create(Tr),n=this.mark();if(this.acceptIdent("not"),this.peek(g.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)}_parseRatio(){let e=this.mark(),n=this.create(To);return this._parseNumeric()?this.acceptDelim("/")?this._parseNumeric()?this.finish(n):this.finish(n,B.NumberExpected):(this.restoreAtMark(e),null):null}_parseMediaCondition(){let e=this.create(ko);this.acceptIdent("not");let n=!0;for(;n;){if(!this.accept(g.ParenthesisL))return this.finish(e,B.LeftParenthesisExpected,[],[g.CurlyL]);if(this.peek(g.ParenthesisL)||this.peekIdent("not")?e.addChild(this._parseMediaCondition()):e.addChild(this._parseMediaFeature()),!this.accept(g.ParenthesisR))return this.finish(e,B.RightParenthesisExpected,[],[g.CurlyL]);n=this.acceptIdent("and")||this.acceptIdent("or")}return this.finish(e)}_parseMediaFeature(){let e=[g.ParenthesisR],n=this.create(Ao);if(n.addChild(this._parseMediaFeatureName())){if(this.accept(g.Colon)){if(!n.addChild(this._parseMediaFeatureValue()))return this.finish(n,B.TermExpected,[],e)}else if(this._parseMediaFeatureRangeOperator()){if(!n.addChild(this._parseMediaFeatureValue()))return this.finish(n,B.TermExpected,[],e);if(this._parseMediaFeatureRangeOperator()&&!n.addChild(this._parseMediaFeatureValue()))return this.finish(n,B.TermExpected,[],e)}}else if(n.addChild(this._parseMediaFeatureValue())){if(!this._parseMediaFeatureRangeOperator())return this.finish(n,B.OperatorExpected,[],e);if(!n.addChild(this._parseMediaFeatureName()))return this.finish(n,B.IdentifierExpected,[],e);if(this._parseMediaFeatureRangeOperator()&&!n.addChild(this._parseMediaFeatureValue()))return this.finish(n,B.TermExpected,[],e)}else return this.finish(n,B.IdentifierExpected,[],e);return this.finish(n)}_parseMediaFeatureRangeOperator(){return this.acceptDelim("<")||this.acceptDelim(">")?(this.hasWhitespace()||this.acceptDelim("="),!0):!!this.acceptDelim("=")}_parseMediaFeatureName(){return this._parseIdent()}_parseMediaFeatureValue(){return this._parseRatio()||this._parseTermExpression()}_parseMedium(){let e=this.create(ne);return e.addChild(this._parseIdent())?this.finish(e):null}_parsePageDeclaration(){return this._parsePageMarginBox()||this._parseRuleSetDeclaration()}_parsePage(){if(!this.peekKeyword("@page"))return null;let e=this.create(Eo);if(this.consumeToken(),e.addChild(this._parsePageSelector())){for(;this.accept(g.Comma);)if(!e.addChild(this._parsePageSelector()))return this.finish(e,B.IdentifierExpected)}return this._parseBody(e,this._parsePageDeclaration.bind(this))}_parsePageMarginBox(){if(!this.peek(g.AtKeyword))return null;let e=this.create(Do);return this.acceptOneKeyword(rm)||this.markError(e,B.UnknownAtRule,[],[g.CurlyL]),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))}_parsePageSelector(){if(!this.peek(g.Ident)&&!this.peek(g.Colon))return null;let e=this.create(ne);return e.addChild(this._parseIdent()),this.accept(g.Colon)&&!e.addChild(this._parseIdent())?this.finish(e,B.IdentifierExpected):this.finish(e)}_parseDocument(){if(!this.peekKeyword("@-moz-document"))return null;let e=this.create(Co);return this.consumeToken(),this.resync([],[g.CurlyL]),this._parseBody(e,this._parseStylesheetStatement.bind(this))}_parseContainerDeclaration(e=!1){return e?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)}_parseContainer(e=!1){if(!this.peekKeyword("@container"))return null;let n=this.create(Fo);return this.consumeToken(),n.addChild(this._parseIdent()),n.addChild(this._parseContainerQuery()),this._parseBody(n,this._parseContainerDeclaration.bind(this,e))}_parseContainerQuery(){let e=this.create(ne);if(this.acceptIdent("not"))e.addChild(this._parseContainerQueryInParens());else if(e.addChild(this._parseContainerQueryInParens()),this.peekIdent("and"))for(;this.acceptIdent("and");)e.addChild(this._parseContainerQueryInParens());else if(this.peekIdent("or"))for(;this.acceptIdent("or");)e.addChild(this._parseContainerQueryInParens());return this.finish(e)}_parseContainerQueryInParens(){let e=this.create(ne);if(this.accept(g.ParenthesisL)){if(this.peekIdent("not")||this.peek(g.ParenthesisL)?e.addChild(this._parseContainerQuery()):e.addChild(this._parseMediaFeature()),!this.accept(g.ParenthesisR))return this.finish(e,B.RightParenthesisExpected,[],[g.CurlyL])}else if(this.acceptIdent("style")){if(this.hasWhitespace()||!this.accept(g.ParenthesisL))return this.finish(e,B.LeftParenthesisExpected,[],[g.CurlyL]);if(e.addChild(this._parseStyleQuery()),!this.accept(g.ParenthesisR))return this.finish(e,B.RightParenthesisExpected,[],[g.CurlyL])}else return this.finish(e,B.LeftParenthesisExpected,[],[g.CurlyL]);return this.finish(e)}_parseStyleQuery(){let e=this.create(ne);if(this.acceptIdent("not"))e.addChild(this._parseStyleInParens());else if(this.peek(g.ParenthesisL)){if(e.addChild(this._parseStyleInParens()),this.peekIdent("and"))for(;this.acceptIdent("and");)e.addChild(this._parseStyleInParens());else if(this.peekIdent("or"))for(;this.acceptIdent("or");)e.addChild(this._parseStyleInParens())}else e.addChild(this._parseDeclaration([g.ParenthesisR]));return this.finish(e)}_parseStyleInParens(){let e=this.create(ne);if(this.accept(g.ParenthesisL)){if(e.addChild(this._parseStyleQuery()),!this.accept(g.ParenthesisR))return this.finish(e,B.RightParenthesisExpected,[],[g.CurlyL])}else return this.finish(e,B.LeftParenthesisExpected,[],[g.CurlyL]);return this.finish(e)}_parseUnknownAtRule(){if(!this.peek(g.AtKeyword))return null;let e=this.create(ji);e.addChild(this._parseUnknownAtRuleName());let n=()=>r===0&&s===0&&o===0,i=0,r=0,s=0,o=0;e:for(;;){switch(this.token.type){case g.SemiColon:if(n())break e;break;case g.EOF:return r>0?this.finish(e,B.RightCurlyExpected):o>0?this.finish(e,B.RightSquareBracketExpected):s>0?this.finish(e,B.RightParenthesisExpected):this.finish(e);case g.CurlyL:i++,r++;break;case g.CurlyR:if(r--,i>0&&r===0){if(this.consumeToken(),o>0)return this.finish(e,B.RightSquareBracketExpected);if(s>0)return this.finish(e,B.RightParenthesisExpected);break e}if(r<0){if(s===0&&o===0)break e;return this.finish(e,B.LeftCurlyExpected)}break;case g.ParenthesisL:s++;break;case g.ParenthesisR:if(s--,s<0)return this.finish(e,B.LeftParenthesisExpected);break;case g.BracketL:o++;break;case g.BracketR:if(o--,o<0)return this.finish(e,B.LeftSquareBracketExpected);break}this.consumeToken()}return e}_parseUnknownAtRuleName(){let e=this.create(ne);return this.accept(g.AtKeyword)?this.finish(e):e}_parseOperator(){if(this.peekDelim("/")||this.peekDelim("*")||this.peekDelim("+")||this.peekDelim("-")||this.peek(g.Dashmatch)||this.peek(g.Includes)||this.peek(g.SubstringOperator)||this.peek(g.PrefixOperator)||this.peek(g.SuffixOperator)||this.peekDelim("=")){let e=this.createNode(v.Operator);return this.consumeToken(),this.finish(e)}else return null}_parseUnaryOperator(){if(!this.peekDelim("+")&&!this.peekDelim("-"))return null;let e=this.create(ne);return this.consumeToken(),this.finish(e)}_parseCombinator(){if(this.peekDelim(">")){let e=this.create(ne);this.consumeToken();let 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("+")){let e=this.create(ne);return this.consumeToken(),e.type=v.SelectorCombinatorSibling,this.finish(e)}else if(this.peekDelim("~")){let e=this.create(ne);return this.consumeToken(),e.type=v.SelectorCombinatorAllSiblings,this.finish(e)}else if(this.peekDelim("/")){let e=this.create(ne);this.consumeToken();let 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}_parseSimpleSelector(){let e=this.create(Dt),n=0;for(e.addChild(this._parseElementName()||this._parseNestingSelector())&&n++;(n===0||!this.hasWhitespace())&&e.addChild(this._parseSimpleSelectorBody());)n++;return n>0?this.finish(e):null}_parseNestingSelector(){if(this.peekDelim("&")){let e=this.createNode(v.SelectorCombinator);return this.consumeToken(),this.finish(e)}return null}_parseSimpleSelectorBody(){return this._parsePseudo()||this._parseHash()||this._parseClass()||this._parseAttrib()}_parseSelectorIdent(){return this._parseIdent()}_parseHash(){if(!this.peek(g.Hash)&&!this.peekDelim("#"))return null;let e=this.createNode(v.IdentifierSelector);if(this.acceptDelim("#")){if(this.hasWhitespace()||!e.addChild(this._parseSelectorIdent()))return this.finish(e,B.IdentifierExpected)}else this.consumeToken();return this.finish(e)}_parseClass(){if(!this.peekDelim("."))return null;let e=this.createNode(v.ClassSelector);return this.consumeToken(),this.hasWhitespace()||!e.addChild(this._parseSelectorIdent())?this.finish(e,B.IdentifierExpected):this.finish(e)}_parseElementName(){let 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)}_parseNamespacePrefix(){let e=this.mark(),n=this.createNode(v.NamespacePrefix);return!n.addChild(this._parseIdent())&&this.acceptDelim("*"),this.acceptDelim("|")?this.finish(n):(this.restoreAtMark(e),null)}_parseAttrib(){if(!this.peek(g.BracketL))return null;let e=this.create(Mo);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(g.BracketR)?this.finish(e):this.finish(e,B.RightSquareBracketExpected)):this.finish(e,B.IdentifierExpected)}_parsePseudo(){let e=this._tryParsePseudoIdentifier();if(e){if(!this.hasWhitespace()&&this.accept(g.ParenthesisL)){let n=()=>{let r=this.createNode(v.SelectorList);if(!r.addChild(this._parseSelector(!0)))return null;for(;this.accept(g.Comma)&&r.addChild(this._parseSelector(!0)););return this.peek(g.ParenthesisR)?this.finish(r):null};if(!e.addChild(this.try(n))){for(;!this.peekIdent("of")&&(e.addChild(this._parseTerm())||e.addChild(this._parseOperator())););if(this.acceptIdent("of")&&!e.addChild(this.try(n)))return this.finish(e,B.SelectorExpected)}if(!this.accept(g.ParenthesisR))return this.finish(e,B.RightParenthesisExpected)}return this.finish(e)}return null}_tryParsePseudoIdentifier(){if(!this.peek(g.Colon))return null;let e=this.mark(),n=this.createNode(v.PseudoSelector);return this.consumeToken(),this.hasWhitespace()?(this.restoreAtMark(e),null):(this.accept(g.Colon),this.hasWhitespace()||!n.addChild(this._parseIdent())?this.finish(n,B.IdentifierExpected):this.finish(n))}_tryParsePrio(){let e=this.mark(),n=this._parsePrio();return n||(this.restoreAtMark(e),null)}_parsePrio(){if(!this.peek(g.Exclamation))return null;let e=this.createNode(v.Prio);return this.accept(g.Exclamation)&&this.acceptIdent("important")?this.finish(e):null}_parseExpr(e=!1){let n=this.create(Oi);if(!n.addChild(this._parseBinaryExpr()))return null;for(;;){if(this.peek(g.Comma)){if(e)return this.finish(n);this.consumeToken()}if(!n.addChild(this._parseBinaryExpr()))break}return this.finish(n)}_parseUnicodeRange(){if(!this.peekIdent("u"))return null;let e=this.create(mo);return this.acceptUnicodeRange()?this.finish(e):null}_parseNamedLine(){if(!this.peek(g.BracketL))return null;let e=this.createNode(v.GridLine);for(this.consumeToken();e.addChild(this._parseIdent()););return this.accept(g.BracketR)?this.finish(e):this.finish(e,B.RightSquareBracketExpected)}_parseBinaryExpr(e,n){let i=this.create(Nn);if(!i.setLeft(e||this._parseTerm()))return null;if(!i.setOperator(n||this._parseOperator()))return this.finish(i);if(!i.setRight(this._parseTerm()))return this.finish(i,B.TermExpected);i=this.finish(i);let r=this._parseOperator();return r&&(i=this._parseBinaryExpr(i,r)),this.finish(i)}_parseTerm(){let e=this.create(Ro);return e.setOperator(this._parseUnaryOperator()),e.setExpression(this._parseTermExpression())?this.finish(e):null}_parseTermExpression(){return this._parseURILiteral()||this._parseUnicodeRange()||this._parseFunction()||this._parseIdent()||this._parseStringLiteral()||this._parseNumeric()||this._parseHexColor()||this._parseOperation()||this._parseNamedLine()}_parseOperation(){if(!this.peek(g.ParenthesisL))return null;let e=this.create(ne);return this.consumeToken(),e.addChild(this._parseExpr()),this.accept(g.ParenthesisR)?this.finish(e):this.finish(e,B.RightParenthesisExpected)}_parseNumeric(){if(this.peek(g.Num)||this.peek(g.Percentage)||this.peek(g.Resolution)||this.peek(g.Length)||this.peek(g.EMS)||this.peek(g.EXS)||this.peek(g.Angle)||this.peek(g.Time)||this.peek(g.Dimension)||this.peek(g.ContainerQueryLength)||this.peek(g.Freq)){let e=this.create(ri);return this.consumeToken(),this.finish(e)}return null}_parseStringLiteral(){if(!this.peek(g.String)&&!this.peek(g.BadString))return null;let e=this.createNode(v.StringLiteral);return this.consumeToken(),this.finish(e)}_parseURILiteral(){if(!this.peekRegExp(g.Ident,/^url(-prefix)?$/i))return null;let e=this.mark(),n=this.createNode(v.URILiteral);return this.accept(g.Ident),this.hasWhitespace()||!this.peek(g.ParenthesisL)?(this.restoreAtMark(e),null):(this.scanner.inURL=!0,this.consumeToken(),n.addChild(this._parseURLArgument()),this.scanner.inURL=!1,this.accept(g.ParenthesisR)?this.finish(n):this.finish(n,B.RightParenthesisExpected))}_parseURLArgument(){let e=this.create(ne);return!this.accept(g.String)&&!this.accept(g.BadString)&&!this.acceptUnquotedString()?null:this.finish(e)}_parseIdent(e){if(!this.peek(g.Ident))return null;let n=this.create(pt);return e&&(n.referenceTypes=e),n.isCustomProperty=this.peekRegExp(g.Ident,/^--/),this.consumeToken(),this.finish(n)}_parseFunction(){let e=this.mark(),n=this.create(Qt);if(!n.setIdentifier(this._parseFunctionIdentifier()))return null;if(this.hasWhitespace()||!this.accept(g.ParenthesisL))return this.restoreAtMark(e),null;if(n.getArguments().addChild(this._parseFunctionArgument()))for(;this.accept(g.Comma)&&!this.peek(g.ParenthesisR);)n.getArguments().addChild(this._parseFunctionArgument())||this.markError(n,B.ExpressionExpected);return this.accept(g.ParenthesisR)?this.finish(n):this.finish(n,B.RightParenthesisExpected)}_parseFunctionIdentifier(){if(!this.peek(g.Ident))return null;let e=this.create(pt);if(e.referenceTypes=[Ce.Function],this.acceptIdent("progid")){if(this.accept(g.Colon))for(;this.accept(g.Ident)&&this.acceptDelim("."););return this.finish(e)}return this.consumeToken(),this.finish(e)}_parseFunctionArgument(){let e=this.create(Vt);return e.setValue(this._parseExpr(!0))?this.finish(e):null}_parseHexColor(){if(this.peekRegExp(g.Hash,/^#([A-Fa-f0-9]{3}|[A-Fa-f0-9]{4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/g)){let e=this.create(ii);return this.consumeToken(),this.finish(e)}else return null}};function om(t,e){let n=0,i=t.length;if(i===0)return 0;for(;n<i;){let r=Math.floor((n+i)/2);e(t[r])?i=r:n=r+1}return n}function dd(t,e){return t.indexOf(e)!==-1}function jr(...t){let e=[];for(let n of t)for(let i of n)dd(e,i)||e.push(i);return e}var Ho=class{constructor(e,n){this.offset=e,this.length=n,this.symbols=[],this.parent=null,this.children=[]}addChild(e){this.children.push(e),e.setParent(this)}setParent(e){this.parent=e}findScope(e,n=0){return this.offset<=e&&this.offset+this.length>e+n||this.offset===e&&this.length===n?this.findInScope(e,n):null}findInScope(e,n=0){let i=e+n,r=om(this.children,o=>o.offset>i);if(r===0)return this;let s=this.children[r-1];return s.offset<=e&&s.offset+s.length>=e+n?s.findInScope(e,n):this}addSymbol(e){this.symbols.push(e)}getSymbol(e,n){for(let i=0;i<this.symbols.length;i++){let r=this.symbols[i];if(r.name===e&&r.type===n)return r}return null}getSymbols(){return this.symbols}},hd=class extends Ho{constructor(){super(0,Number.MAX_VALUE)}},Xi=class{constructor(e,n,i,r){this.name=e,this.value=n,this.node=i,this.type=r}},ud=class{constructor(e){this.scope=e}addSymbol(e,n,i,r){if(e.offset!==-1){let s=this.scope.findScope(e.offset,e.length);s&&s.addSymbol(new Xi(n,i,e,r))}}addScope(e){if(e.offset!==-1){let n=this.scope.findScope(e.offset,e.length);if(n&&(n.offset!==e.offset||n.length!==e.length)){let i=new Ho(e.offset,e.length);return n.addChild(i),i}return n}return null}addSymbolToChildScope(e,n,i,r,s){if(e&&e.offset!==-1){let o=this.addScope(e);o&&o.addSymbol(new Xi(i,r,n,s))}}visitNode(e){switch(e.type){case v.Keyframe:return this.addSymbol(e,e.getName(),void 0,Ce.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,Ce.Mixin),!0;case v.FunctionDeclaration:return this.addSymbol(e,e.getName(),void 0,Ce.Function),!0;case v.FunctionParameter:return this.visitFunctionParameterNode(e);case v.Declarations:return this.addScope(e),!0;case v.For:let n=e,i=n.getDeclarations();return i&&n.variable&&this.addSymbolToChildScope(i,n.variable,n.variable.getName(),void 0,Ce.Variable),!0;case v.Each:{let r=e,s=r.getDeclarations();if(s){let o=r.getVariables().getChildren();for(let a of o)this.addSymbolToChildScope(s,a,a.getName(),void 0,Ce.Variable)}return!0}}return!0}visitRuleSet(e){let n=this.scope.findScope(e.offset,e.length);if(n)for(let i of e.getSelectors().getChildren())i instanceof Ut&&i.getChildren().length===1&&n.addSymbol(new Xi(i.getChild(0).getText(),void 0,i,Ce.Rule));return!0}visitVariableDeclarationNode(e){let n=e.getValue()?e.getValue().getText():void 0;return this.addSymbol(e,e.getName(),n,Ce.Variable),!0}visitFunctionParameterNode(e){let n=e.getParent().getDeclarations();if(n){let i=e.getDefaultValue(),r=i?i.getText():void 0;this.addSymbolToChildScope(n,e,e.getName(),r,Ce.Variable)}return!0}visitCustomPropertyDeclarationNode(e){let n=e.getValue()?e.getValue().getText():"";return this.addCSSVariable(e.getProperty(),e.getProperty().getName(),n,Ce.Variable),!0}addCSSVariable(e,n,i,r){e.offset!==-1&&this.scope.addSymbol(new Xi(n,i,e,r))}},li=class{constructor(e){this.global=new hd,e.acceptVisitor(new ud(this.global))}findSymbolsAtOffset(e,n){let i=this.global.findScope(e,0),r=[],s={};for(;i;){let o=i.getSymbols();for(let a=0;a<o.length;a++){let l=o[a];l.type===n&&!s[l.name]&&(r.push(l),s[l.name]=!0)}i=i.parent}return r}internalFindSymbol(e,n){let i=e;if(e.parent instanceof In&&e.parent.getParent()instanceof Ne&&(i=e.parent.getParent().getDeclarations()),e.parent instanceof Vt&&e.parent.getParent()instanceof Qt){let o=e.parent.getParent().getIdentifier();if(o){let a=this.internalFindSymbol(o,[Ce.Function]);a&&(i=a.node.getDeclarations())}}if(!i)return null;let r=e.getText(),s=this.global.findScope(i.offset,i.length);for(;s;){for(let o=0;o<n.length;o++){let a=n[o],l=s.getSymbol(r,a);if(l)return l}s=s.parent}return null}evaluateReferenceTypes(e){if(e instanceof pt){let i=e.referenceTypes;if(i)return i;{if(e.isCustomProperty)return[Ce.Variable];let r=np(e);if(r){let s=r.getNonPrefixedPropertyName();if((s==="animation"||s==="animation-name")&&r.getValue()&&r.getValue().offset===e.offset)return[Ce.Keyframe]}}}else if(e instanceof Li)return[Ce.Variable];return e.findAParent(v.Selector,v.ExtendsReference)?[Ce.Rule]:null}findSymbolFromNode(e){if(!e)return null;for(;e.type===v.Interpolation;)e=e.getParent();let n=this.evaluateReferenceTypes(e);return n?this.internalFindSymbol(e,n):null}matchesSymbol(e,n){if(!e)return!1;for(;e.type===v.Interpolation;)e=e.getParent();if(!e.matches(n.name))return!1;let i=this.evaluateReferenceTypes(e);return!i||i.indexOf(n.type)===-1?!1:this.internalFindSymbol(e,i)===n}findSymbol(e,n,i){let r=this.global.findScope(i);for(;r;){let s=r.getSymbol(e,n);if(s)return s;r=r.parent}return null}};var cm=lt(Rt());var am;(()=>{"use strict";var t={470:r=>{function s(l){if(typeof l!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(l))}function o(l,c){for(var d,p="",b=0,y=-1,M=0,P=0;P<=l.length;++P){if(P<l.length)d=l.charCodeAt(P);else{if(d===47)break;d=47}if(d===47){if(!(y===P-1||M===1))if(y!==P-1&&M===2){if(p.length<2||b!==2||p.charCodeAt(p.length-1)!==46||p.charCodeAt(p.length-2)!==46){if(p.length>2){var Z=p.lastIndexOf("/");if(Z!==p.length-1){Z===-1?(p="",b=0):b=(p=p.slice(0,Z)).length-1-p.lastIndexOf("/"),y=P,M=0;continue}}else if(p.length===2||p.length===1){p="",b=0,y=P,M=0;continue}}c&&(p.length>0?p+="/..":p="..",b=2)}else p.length>0?p+="/"+l.slice(y+1,P):p=l.slice(y+1,P),b=P-y-1;y=P,M=0}else d===46&&M!==-1?++M:M=-1}return p}var a={resolve:function(){for(var l,c="",d=!1,p=arguments.length-1;p>=-1&&!d;p--){var b;p>=0?b=arguments[p]:(l===void 0&&(l=process.cwd()),b=l),s(b),b.length!==0&&(c=b+"/"+c,d=b.charCodeAt(0)===47)}return c=o(c,!d),d?c.length>0?"/"+c:"/":c.length>0?c:"."},normalize:function(l){if(s(l),l.length===0)return".";var c=l.charCodeAt(0)===47,d=l.charCodeAt(l.length-1)===47;return(l=o(l,!c)).length!==0||c||(l="."),l.length>0&&d&&(l+="/"),c?"/"+l:l},isAbsolute:function(l){return s(l),l.length>0&&l.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var l,c=0;c<arguments.length;++c){var d=arguments[c];s(d),d.length>0&&(l===void 0?l=d:l+="/"+d)}return l===void 0?".":a.normalize(l)},relative:function(l,c){if(s(l),s(c),l===c||(l=a.resolve(l))===(c=a.resolve(c)))return"";for(var d=1;d<l.length&&l.charCodeAt(d)===47;++d);for(var p=l.length,b=p-d,y=1;y<c.length&&c.charCodeAt(y)===47;++y);for(var M=c.length-y,P=b<M?b:M,Z=-1,$=0;$<=P;++$){if($===P){if(M>P){if(c.charCodeAt(y+$)===47)return c.slice(y+$+1);if($===0)return c.slice(y+$)}else b>P&&(l.charCodeAt(d+$)===47?Z=$:$===0&&(Z=0));break}var F=l.charCodeAt(d+$);if(F!==c.charCodeAt(y+$))break;F===47&&(Z=$)}var x="";for($=d+Z+1;$<=p;++$)$!==p&&l.charCodeAt($)!==47||(x.length===0?x+="..":x+="/..");return x.length>0?x+c.slice(y+Z):(y+=Z,c.charCodeAt(y)===47&&++y,c.slice(y))},_makeLong:function(l){return l},dirname:function(l){if(s(l),l.length===0)return".";for(var c=l.charCodeAt(0),d=c===47,p=-1,b=!0,y=l.length-1;y>=1;--y)if((c=l.charCodeAt(y))===47){if(!b){p=y;break}}else b=!1;return p===-1?d?"/":".":d&&p===1?"//":l.slice(0,p)},basename:function(l,c){if(c!==void 0&&typeof c!="string")throw new TypeError('"ext" argument must be a string');s(l);var d,p=0,b=-1,y=!0;if(c!==void 0&&c.length>0&&c.length<=l.length){if(c.length===l.length&&c===l)return"";var M=c.length-1,P=-1;for(d=l.length-1;d>=0;--d){var Z=l.charCodeAt(d);if(Z===47){if(!y){p=d+1;break}}else P===-1&&(y=!1,P=d+1),M>=0&&(Z===c.charCodeAt(M)?--M==-1&&(b=d):(M=-1,b=P))}return p===b?b=P:b===-1&&(b=l.length),l.slice(p,b)}for(d=l.length-1;d>=0;--d)if(l.charCodeAt(d)===47){if(!y){p=d+1;break}}else b===-1&&(y=!1,b=d+1);return b===-1?"":l.slice(p,b)},extname:function(l){s(l);for(var c=-1,d=0,p=-1,b=!0,y=0,M=l.length-1;M>=0;--M){var P=l.charCodeAt(M);if(P!==47)p===-1&&(b=!1,p=M+1),P===46?c===-1?c=M:y!==1&&(y=1):c!==-1&&(y=-1);else if(!b){d=M+1;break}}return c===-1||p===-1||y===0||y===1&&c===p-1&&c===d+1?"":l.slice(c,p)},format:function(l){if(l===null||typeof l!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof l);return function(c,d){var p=d.dir||d.root,b=d.base||(d.name||"")+(d.ext||"");return p?p===d.root?p+b:p+"/"+b:b}(0,l)},parse:function(l){s(l);var c={root:"",dir:"",base:"",ext:"",name:""};if(l.length===0)return c;var d,p=l.charCodeAt(0),b=p===47;b?(c.root="/",d=1):d=0;for(var y=-1,M=0,P=-1,Z=!0,$=l.length-1,F=0;$>=d;--$)if((p=l.charCodeAt($))!==47)P===-1&&(Z=!1,P=$+1),p===46?y===-1?y=$:F!==1&&(F=1):y!==-1&&(F=-1);else if(!Z){M=$+1;break}return y===-1||P===-1||F===0||F===1&&y===P-1&&y===M+1?P!==-1&&(c.base=c.name=M===0&&b?l.slice(1,P):l.slice(M,P)):(M===0&&b?(c.name=l.slice(1,y),c.base=l.slice(1,P)):(c.name=l.slice(M,y),c.base=l.slice(M,P)),c.ext=l.slice(y,P)),M>0?c.dir=l.slice(0,M-1):b&&(c.dir="/"),c},sep:"/",delimiter:":",win32:null,posix:null};a.posix=a,r.exports=a}},e={};function n(r){var s=e[r];if(s!==void 0)return s.exports;var o=e[r]={exports:{}};return t[r](o,o.exports,n),o.exports}n.d=(r,s)=>{for(var o in s)n.o(s,o)&&!n.o(r,o)&&Object.defineProperty(r,o,{enumerable:!0,get:s[o]})},n.o=(r,s)=>Object.prototype.hasOwnProperty.call(r,s),n.r=r=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})};var i={};(()=>{let r;n.r(i),n.d(i,{URI:()=>b,Utils:()=>W}),typeof process=="object"?r=process.platform==="win32":typeof navigator=="object"&&(r=navigator.userAgent.indexOf("Windows")>=0);let s=/^\w[\w\d+.-]*$/,o=/^\//,a=/^\/\//;function l(k,S){if(!k.scheme&&S)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${k.authority}", path: "${k.path}", query: "${k.query}", fragment: "${k.fragment}"}`);if(k.scheme&&!s.test(k.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(k.path){if(k.authority){if(!o.test(k.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(a.test(k.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}let c="",d="/",p=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class b{static isUri(S){return S instanceof b||!!S&&typeof S.authority=="string"&&typeof S.fragment=="string"&&typeof S.path=="string"&&typeof S.query=="string"&&typeof S.scheme=="string"&&typeof S.fsPath=="string"&&typeof S.with=="function"&&typeof S.toString=="function"}scheme;authority;path;query;fragment;constructor(S,I,j,J,K,Q=!1){typeof S=="object"?(this.scheme=S.scheme||c,this.authority=S.authority||c,this.path=S.path||c,this.query=S.query||c,this.fragment=S.fragment||c):(this.scheme=function(ve,be){return ve||be?ve:"file"}(S,Q),this.authority=I||c,this.path=function(ve,be){switch(ve){case"https":case"http":case"file":be?be[0]!==d&&(be=d+be):be=d}return be}(this.scheme,j||c),this.query=J||c,this.fragment=K||c,l(this,Q))}get fsPath(){return F(this,!1)}with(S){if(!S)return this;let{scheme:I,authority:j,path:J,query:K,fragment:Q}=S;return I===void 0?I=this.scheme:I===null&&(I=c),j===void 0?j=this.authority:j===null&&(j=c),J===void 0?J=this.path:J===null&&(J=c),K===void 0?K=this.query:K===null&&(K=c),Q===void 0?Q=this.fragment:Q===null&&(Q=c),I===this.scheme&&j===this.authority&&J===this.path&&K===this.query&&Q===this.fragment?this:new M(I,j,J,K,Q)}static parse(S,I=!1){let j=p.exec(S);return j?new M(j[2]||c,L(j[4]||c),L(j[5]||c),L(j[7]||c),L(j[9]||c),I):new M(c,c,c,c,c)}static file(S){let I=c;if(r&&(S=S.replace(/\\/g,d)),S[0]===d&&S[1]===d){let j=S.indexOf(d,2);j===-1?(I=S.substring(2),S=d):(I=S.substring(2,j),S=S.substring(j)||d)}return new M("file",I,S,c,c)}static from(S){let I=new M(S.scheme,S.authority,S.path,S.query,S.fragment);return l(I,!0),I}toString(S=!1){return x(this,S)}toJSON(){return this}static revive(S){if(S){if(S instanceof b)return S;{let I=new M(S);return I._formatted=S.external,I._fsPath=S._sep===y?S.fsPath:null,I}}return S}}let y=r?1:void 0;class M extends b{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=F(this,!1)),this._fsPath}toString(S=!1){return S?x(this,!0):(this._formatted||(this._formatted=x(this,!1)),this._formatted)}toJSON(){let S={$mid:1};return this._fsPath&&(S.fsPath=this._fsPath,S._sep=y),this._formatted&&(S.external=this._formatted),this.path&&(S.path=this.path),this.scheme&&(S.scheme=this.scheme),this.authority&&(S.authority=this.authority),this.query&&(S.query=this.query),this.fragment&&(S.fragment=this.fragment),S}}let P={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 Z(k,S,I){let j,J=-1;for(let K=0;K<k.length;K++){let Q=k.charCodeAt(K);if(Q>=97&&Q<=122||Q>=65&&Q<=90||Q>=48&&Q<=57||Q===45||Q===46||Q===95||Q===126||S&&Q===47||I&&Q===91||I&&Q===93||I&&Q===58)J!==-1&&(j+=encodeURIComponent(k.substring(J,K)),J=-1),j!==void 0&&(j+=k.charAt(K));else{j===void 0&&(j=k.substr(0,K));let ve=P[Q];ve!==void 0?(J!==-1&&(j+=encodeURIComponent(k.substring(J,K)),J=-1),j+=ve):J===-1&&(J=K)}}return J!==-1&&(j+=encodeURIComponent(k.substring(J))),j!==void 0?j:k}function $(k){let S;for(let I=0;I<k.length;I++){let j=k.charCodeAt(I);j===35||j===63?(S===void 0&&(S=k.substr(0,I)),S+=P[j]):S!==void 0&&(S+=k[I])}return S!==void 0?S:k}function F(k,S){let I;return I=k.authority&&k.path.length>1&&k.scheme==="file"?`//${k.authority}${k.path}`:k.path.charCodeAt(0)===47&&(k.path.charCodeAt(1)>=65&&k.path.charCodeAt(1)<=90||k.path.charCodeAt(1)>=97&&k.path.charCodeAt(1)<=122)&&k.path.charCodeAt(2)===58?S?k.path.substr(1):k.path[1].toLowerCase()+k.path.substr(2):k.path,r&&(I=I.replace(/\//g,"\\")),I}function x(k,S){let I=S?$:Z,j="",{scheme:J,authority:K,path:Q,query:ve,fragment:be}=k;if(J&&(j+=J,j+=":"),(K||J==="file")&&(j+=d,j+=d),K){let ue=K.indexOf("@");if(ue!==-1){let $e=K.substr(0,ue);K=K.substr(ue+1),ue=$e.lastIndexOf(":"),ue===-1?j+=I($e,!1,!1):(j+=I($e.substr(0,ue),!1,!1),j+=":",j+=I($e.substr(ue+1),!1,!0)),j+="@"}K=K.toLowerCase(),ue=K.lastIndexOf(":"),ue===-1?j+=I(K,!1,!0):(j+=I(K.substr(0,ue),!1,!0),j+=K.substr(ue))}if(Q){if(Q.length>=3&&Q.charCodeAt(0)===47&&Q.charCodeAt(2)===58){let ue=Q.charCodeAt(1);ue>=65&&ue<=90&&(Q=`/${String.fromCharCode(ue+32)}:${Q.substr(3)}`)}else if(Q.length>=2&&Q.charCodeAt(1)===58){let ue=Q.charCodeAt(0);ue>=65&&ue<=90&&(Q=`${String.fromCharCode(ue+32)}:${Q.substr(2)}`)}j+=I(Q,!0,!1)}return ve&&(j+="?",j+=I(ve,!1,!1)),be&&(j+="#",j+=S?be:Z(be,!1,!1)),j}function N(k){try{return decodeURIComponent(k)}catch{return k.length>3?k.substr(0,3)+N(k.substr(3)):k}}let R=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function L(k){return k.match(R)?k.replace(R,S=>N(S)):k}var V=n(470);let Y=V.posix||V,le="/";var W;(function(k){k.joinPath=function(S,...I){return S.with({path:Y.join(S.path,...I)})},k.resolvePath=function(S,...I){let j=S.path,J=!1;j[0]!==le&&(j=le+j,J=!0);let K=Y.resolve(j,...I);return J&&K[0]===le&&!S.authority&&(K=K.substring(1)),S.with({path:K})},k.dirname=function(S){if(S.path.length===0||S.path===le)return S;let I=Y.dirname(S.path);return I.length===1&&I.charCodeAt(0)===46&&(I=""),S.with({path:I})},k.basename=function(S){return Y.basename(S.path)},k.extname=function(S){return Y.extname(S.path)}})(W||(W={}))})(),am=i})();var{URI:pd,Utils:md}=am;function $r(t){return md.dirname(pd.parse(t)).toString(!0)}function mn(t,...e){return md.joinPath(pd.parse(t),...e).toString(!0)}var Go=class{constructor(e){this.readDirectory=e,this.literalCompletions=[],this.importCompletions=[]}onCssURILiteralValue(e){this.literalCompletions.push(e)}onCssImportPath(e){this.importCompletions.push(e)}async computeCompletions(e,n){let i={items:[],isIncomplete:!1};for(let r of this.literalCompletions){let s=r.uriValue,o=fd(s);if(o==="."||o==="..")i.isIncomplete=!0;else{let a=await this.providePathSuggestions(s,r.position,r.range,e,n);for(let l of a)i.items.push(l)}}for(let r of this.importCompletions){let s=r.pathValue,o=fd(s);if(o==="."||o==="..")i.isIncomplete=!0;else{let a=await this.providePathSuggestions(s,r.position,r.range,e,n);e.languageId==="scss"&&a.forEach(l=>{ze(l.label,"_")&&po(l.label,".scss")&&(l.textEdit?l.textEdit.newText=l.label.slice(1,-5):l.label=l.label.slice(1,-5))});for(let l of a)i.items.push(l)}}return i}async providePathSuggestions(e,n,i,r,s){let o=fd(e),a=ze(e,"'")||ze(e,'"'),l=a?o.slice(0,n.character-(i.start.character+1)):o.slice(0,n.character-i.start.character),c=r.uri,d=a?Dv(i,1,-1):i,p=Av(l,o,d),b=l.substring(0,l.lastIndexOf("/")+1),y=s.resolveReference(b||".",c);if(y)try{let M=[],P=await this.readDirectory(y);for(let[Z,$]of P)Z.charCodeAt(0)!==kv&&($===ai.Directory||mn(y,Z)!==c)&&M.push(Ev(Z,$===ai.Directory,p));return M}catch{}return[]}},kv=46;function fd(t){return ze(t,"'")||ze(t,'"')?t.slice(1,-1):t}function Av(t,e,n){let i,r=t.lastIndexOf("/");if(r===-1)i=n;else{let s=e.slice(r+1),o=Jo(n.end,-s.length),a=s.indexOf(" "),l;a!==-1?l=Jo(o,a):l=n.end,i=ce.create(o,l)}return i}function Ev(t,e,n){return e?(t=t+"/",{label:Ko(t),kind:re.Folder,textEdit:oe.replace(n,Ko(t)),command:{title:"Suggest",command:"editor.action.triggerSuggest"}}):{label:Ko(t),kind:re.File,textEdit:oe.replace(n,Ko(t))}}function Ko(t){return t.replace(/(\s|\(|\)|,|"|')/g,"\\$1")}function Jo(t,e){return Xe.create(t.line,t.character+e)}function Dv(t,e,n){let i=Jo(t.start,e),r=Jo(t.end,n);return ce.create(i,r)}var fn=st.Snippet,lm={title:"Suggest",command:"editor.action.triggerSuggest"},en;(function(t){t.Enums=" ",t.Normal="d",t.VendorPrefixed="x",t.Term="y",t.Variable="z"})(en||(en={}));var jn=class{constructor(e=null,n,i){this.variablePrefix=e,this.lsOptions=n,this.cssDataManager=i,this.completionParticipants=[]}configure(e){this.defaultSettings=e}getSymbolContext(){return this.symbolContext||(this.symbolContext=new li(this.styleSheet)),this.symbolContext}setCompletionParticipants(e){this.completionParticipants=e||[]}async doComplete2(e,n,i,r,s=this.defaultSettings){if(!this.lsOptions.fileSystemProvider||!this.lsOptions.fileSystemProvider.readDirectory)return this.doComplete(e,n,i,s);let o=new Go(this.lsOptions.fileSystemProvider.readDirectory),a=this.completionParticipants;this.completionParticipants=[o].concat(a);let l=this.doComplete(e,n,i,s);try{let c=await o.computeCompletions(e,r);return{isIncomplete:l.isIncomplete||c.isIncomplete,itemDefaults:l.itemDefaults,items:c.items.concat(l.items)}}finally{this.completionParticipants=a}}doComplete(e,n,i,r){this.offset=e.offsetAt(n),this.position=n,this.currentWord=Mv(e,this.offset),this.defaultReplaceRange=ce.create(Xe.create(this.position.line,this.position.character-this.currentWord.length),this.position),this.textDocument=e,this.styleSheet=i,this.documentSettings=r;try{let s={isIncomplete:!1,itemDefaults:{editRange:{start:{line:n.line,character:n.character-this.currentWord.length},end:n}},items:[]};this.nodePath=Ui(this.styleSheet,this.offset);for(let o=this.nodePath.length-1;o>=0;o--){let a=this.nodePath[o];if(a instanceof Tn)this.getCompletionsForDeclarationProperty(a.getParent(),s);else if(a instanceof Oi)a.parent instanceof Wi?this.getVariableProposals(null,s):this.getCompletionsForExpression(a,s);else if(a instanceof Dt){let l=a.findAParent(v.ExtendsReference,v.Ruleset);if(l)if(l.type===v.ExtendsReference)this.getCompletionsForExtendsReference(l,a,s);else{let c=l;this.getCompletionsForSelector(c,c&&c.isNested(),s)}}else if(a instanceof Vt)this.getCompletionsForFunctionArgument(a,a.getParent(),s);else if(a instanceof ti)this.getCompletionsForDeclarations(a,s);else if(a instanceof On)this.getCompletionsForVariableDeclaration(a,s);else if(a instanceof vt)this.getCompletionsForRuleSet(a,s);else if(a instanceof Wi)this.getCompletionsForInterpolation(a,s);else if(a instanceof Pn)this.getCompletionsForFunctionDeclaration(a,s);else if(a instanceof qi)this.getCompletionsForMixinReference(a,s);else if(a instanceof Qt)this.getCompletionsForFunctionArgument(null,a,s);else if(a instanceof ni)this.getCompletionsForSupports(a,s);else if(a instanceof hn)this.getCompletionsForSupportsCondition(a,s);else if(a instanceof si)this.getCompletionsForExtendsReference(a,null,s);else if(a.type===v.URILiteral)this.getCompletionForUriLiteralValue(a,s);else if(a.parent===null)this.getCompletionForTopLevel(s);else if(a.type===v.StringLiteral&&this.isImportPathParent(a.parent.type))this.getCompletionForImportPath(a,s);else continue;if(s.items.length>0||this.offset>a.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}}isImportPathParent(e){return e===v.Import}finalize(e){return e}findInNodePath(...e){for(let n=this.nodePath.length-1;n>=0;n--){let i=this.nodePath[n];if(e.indexOf(i.type)!==-1)return i}return null}getCompletionsForDeclarationProperty(e,n){return this.getPropertyProposals(e,n)}getPropertyProposals(e,n){let i=this.isTriggerPropertyValueCompletionEnabled,r=this.isCompletePropertyWithSemicolonEnabled;return this.cssDataManager.getProperties().forEach(o=>{let a,l,c=!1;e?(a=this.getCompletionRange(e.getProperty()),l=o.name,ft(e.colonPosition)||(l+=": ",c=!0)):(a=this.getCompletionRange(null),l=o.name+": ",c=!0),!e&&r&&(l+="$0;"),e&&!e.semicolonPosition&&r&&this.offset>=this.textDocument.offsetAt(a.end)&&(l+="$0;");let d={label:o.name,documentation:Zt(o,this.doesSupportMarkdown()),tags:Ur(o)?[pn.Deprecated]:[],textEdit:oe.replace(a,l),insertTextFormat:st.Snippet,kind:re.Property};o.restrictions||(c=!1),i&&c&&(d.command=lm);let b=(255-(typeof o.relevance=="number"?Math.min(Math.max(o.relevance,0),99):50)).toString(16),y=ze(o.name,"-")?en.VendorPrefixed:en.Normal;d.sortText=y+"_"+b,n.items.push(d)}),this.completionParticipants.forEach(o=>{o.onCssProperty&&o.onCssProperty({propertyName:this.currentWord,range:this.defaultReplaceRange})}),n}get isTriggerPropertyValueCompletionEnabled(){return this.documentSettings?.triggerPropertyValueCompletion??!0}get isCompletePropertyWithSemicolonEnabled(){return this.documentSettings?.completePropertyWithSemicolon??!0}getCompletionsForDeclarationValue(e,n){let i=e.getFullPropertyName(),r=this.cssDataManager.getProperty(i),s=e.getValue()||null;for(;s&&s.hasChildren();)s=s.findChildAtOffset(this.offset,!1);if(this.completionParticipants.forEach(o=>{o.onCssPropertyValue&&o.onCssPropertyValue({propertyName:i,propertyValue:this.currentWord,range:this.getCompletionRange(s)})}),r){if(r.restrictions)for(let o of r.restrictions)switch(o){case"color":this.getColorProposals(r,s,n);break;case"position":this.getPositionProposals(r,s,n);break;case"repeat":this.getRepeatStyleProposals(r,s,n);break;case"line-style":this.getLineStyleProposals(r,s,n);break;case"line-width":this.getLineWidthProposals(r,s,n);break;case"geometry-box":this.getGeometryBoxProposals(r,s,n);break;case"box":this.getBoxProposals(r,s,n);break;case"image":this.getImageProposals(r,s,n);break;case"timing-function":this.getTimingFunctionProposals(r,s,n);break;case"shape":this.getBasicShapeProposals(r,s,n);break}this.getValueEnumProposals(r,s,n),this.getCSSWideKeywordProposals(r,s,n),this.getUnitProposals(r,s,n)}else{let o=Rv(this.styleSheet,e);for(let a of o.getEntries())n.items.push({label:a,textEdit:oe.replace(this.getCompletionRange(s),a),kind:re.Value})}return this.getVariableProposals(s,n),this.getTermProposals(r,s,n),n}getValueEnumProposals(e,n,i){if(e.values)for(let r of e.values){let s=r.name,o;if(po(s,")")){let c=s.lastIndexOf("(");c!==-1&&(s=s.substring(0,c+1)+"$1"+s.substring(c+1),o=fn)}let a=en.Enums;ze(r.name,"-")&&(a+=en.VendorPrefixed);let l={label:r.name,documentation:Zt(r,this.doesSupportMarkdown()),tags:Ur(e)?[pn.Deprecated]:[],textEdit:oe.replace(this.getCompletionRange(n),s),sortText:a,kind:re.Value,insertTextFormat:o};i.items.push(l)}return i}getCSSWideKeywordProposals(e,n,i){for(let r in sd)i.items.push({label:r,documentation:sd[r],textEdit:oe.replace(this.getCompletionRange(n),r),kind:re.Value});for(let r in od){let s=Yi(r);i.items.push({label:r,documentation:od[r],textEdit:oe.replace(this.getCompletionRange(n),s),kind:re.Function,insertTextFormat:fn,command:ze(r,"var")?lm:void 0})}return i}getCompletionsForInterpolation(e,n){return this.offset>=e.offset+2&&this.getVariableProposals(null,n),n}getVariableProposals(e,n){let i=this.getSymbolContext().findSymbolsAtOffset(this.offset,Ce.Variable);for(let r of i){let s=ze(r.name,"--")?`var(${r.name})`:r.name,o={label:r.name,documentation:r.value?_c(r.value):r.value,textEdit:oe.replace(this.getCompletionRange(e),s),kind:re.Variable,sortText:en.Variable};if(typeof o.documentation=="string"&&Yc(o.documentation)&&(o.kind=re.Color),r.node.type===v.FunctionParameter){let a=r.node.getParent();a.type===v.MixinDeclaration&&(o.detail=cm.t("argument from '{0}'",a.getName()))}n.items.push(o)}return n}getVariableProposalsForCSSVarFunction(e){let n=new Vr;this.styleSheet.acceptVisitor(new bd(n,this.offset));let i=this.getSymbolContext().findSymbolsAtOffset(this.offset,Ce.Variable);for(let r of i){if(ze(r.name,"--")){let s={label:r.name,documentation:r.value?_c(r.value):r.value,textEdit:oe.replace(this.getCompletionRange(null),r.name),kind:re.Variable};typeof s.documentation=="string"&&Yc(s.documentation)&&(s.kind=re.Color),e.items.push(s)}n.remove(r.name)}for(let r of n.getEntries())if(ze(r,"--")){let s={label:r,textEdit:oe.replace(this.getCompletionRange(null),r),kind:re.Variable};e.items.push(s)}return e}getUnitProposals(e,n,i){let r="0";if(this.currentWord.length>0){let s=this.currentWord.match(/^-?\d[\.\d+]*/);s&&(r=s[0],i.isIncomplete=r.length===this.currentWord.length)}else this.currentWord.length===0&&(i.isIncomplete=!0);if(n&&n.parent&&n.parent.type===v.Term&&(n=n.getParent()),e.restrictions)for(let s of e.restrictions){let o=Vo[s];if(o)for(let a of o){let l=r+a;i.items.push({label:l,textEdit:oe.replace(this.getCompletionRange(n),l),kind:re.Unit})}}return i}getCompletionRange(e){if(e&&e.offset<=this.offset&&this.offset<=e.end){let n=e.end!==-1?this.textDocument.positionAt(e.end):this.position,i=this.textDocument.positionAt(e.offset);if(i.line===n.line)return ce.create(i,n)}return this.defaultReplaceRange}getColorProposals(e,n,i){for(let s in Lr)i.items.push({label:s,documentation:Lr[s],textEdit:oe.replace(this.getCompletionRange(n),s),kind:re.Color});for(let s in Uo)i.items.push({label:s,documentation:Uo[s],textEdit:oe.replace(this.getCompletionRange(n),s),kind:re.Value});let r=new Vr;this.styleSheet.acceptVisitor(new gd(r,this.offset));for(let s of r.getEntries())i.items.push({label:s,textEdit:oe.replace(this.getCompletionRange(n),s),kind:re.Color});for(let s of Gp)i.items.push({label:s.label,detail:s.func,documentation:s.desc,textEdit:oe.replace(this.getCompletionRange(n),s.insertText),insertTextFormat:fn,kind:re.Function});return i}getPositionProposals(e,n,i){for(let r in ed)i.items.push({label:r,documentation:ed[r],textEdit:oe.replace(this.getCompletionRange(n),r),kind:re.Value});return i}getRepeatStyleProposals(e,n,i){for(let r in td)i.items.push({label:r,documentation:td[r],textEdit:oe.replace(this.getCompletionRange(n),r),kind:re.Value});return i}getLineStyleProposals(e,n,i){for(let r in nd)i.items.push({label:r,documentation:nd[r],textEdit:oe.replace(this.getCompletionRange(n),r),kind:re.Value});return i}getLineWidthProposals(e,n,i){for(let r of tm)i.items.push({label:r,textEdit:oe.replace(this.getCompletionRange(n),r),kind:re.Value});return i}getGeometryBoxProposals(e,n,i){for(let r in rd)i.items.push({label:r,documentation:rd[r],textEdit:oe.replace(this.getCompletionRange(n),r),kind:re.Value});return i}getBoxProposals(e,n,i){for(let r in id)i.items.push({label:r,documentation:id[r],textEdit:oe.replace(this.getCompletionRange(n),r),kind:re.Value});return i}getImageProposals(e,n,i){for(let r in ad){let s=Yi(r);i.items.push({label:r,documentation:ad[r],textEdit:oe.replace(this.getCompletionRange(n),s),kind:re.Function,insertTextFormat:r!==s?fn:void 0})}return i}getTimingFunctionProposals(e,n,i){for(let r in ld){let s=Yi(r);i.items.push({label:r,documentation:ld[r],textEdit:oe.replace(this.getCompletionRange(n),s),kind:re.Function,insertTextFormat:r!==s?fn:void 0})}return i}getBasicShapeProposals(e,n,i){for(let r in cd){let s=Yi(r);i.items.push({label:r,documentation:cd[r],textEdit:oe.replace(this.getCompletionRange(n),s),kind:re.Function,insertTextFormat:r!==s?fn:void 0})}return i}getCompletionsForStylesheet(e){let n=this.styleSheet.findFirstChildBeforeOffset(this.offset);return n?n instanceof vt?this.getCompletionsForRuleSet(n,e):n instanceof ni?this.getCompletionsForSupports(n,e):e:this.getCompletionForTopLevel(e)}getCompletionForTopLevel(e){return this.cssDataManager.getAtDirectives().forEach(n=>{e.items.push({label:n.name,textEdit:oe.replace(this.getCompletionRange(null),n.name),documentation:Zt(n,this.doesSupportMarkdown()),tags:Ur(n)?[pn.Deprecated]:[],kind:re.Keyword})}),this.getCompletionsForSelector(null,!1,e),e}getCompletionsForRuleSet(e,n){let i=e.getDeclarations();return i&&i.endsWith("}")&&this.offset>=i.end?this.getCompletionForTopLevel(n):!i||this.offset<=i.offset?this.getCompletionsForSelector(e,e.isNested(),n):this.getCompletionsForDeclarations(e.getDeclarations(),n)}getCompletionsForSelector(e,n,i){let r=this.findInNodePath(v.PseudoSelector,v.IdentifierSelector,v.ClassSelector,v.ElementNameSelector);if(!r&&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=ce.create(Xe.create(this.position.line,this.position.character-this.currentWord.length),this.position)),this.cssDataManager.getPseudoClasses().forEach(c=>{let d=Yi(c.name),p={label:c.name,textEdit:oe.replace(this.getCompletionRange(r),d),documentation:Zt(c,this.doesSupportMarkdown()),tags:Ur(c)?[pn.Deprecated]:[],kind:re.Function,insertTextFormat:c.name!==d?fn:void 0};ze(c.name,":-")&&(p.sortText=en.VendorPrefixed),i.items.push(p)}),this.cssDataManager.getPseudoElements().forEach(c=>{let d=Yi(c.name),p={label:c.name,textEdit:oe.replace(this.getCompletionRange(r),d),documentation:Zt(c,this.doesSupportMarkdown()),tags:Ur(c)?[pn.Deprecated]:[],kind:re.Function,insertTextFormat:c.name!==d?fn:void 0};ze(c.name,"::-")&&(p.sortText=en.VendorPrefixed),i.items.push(p)}),!n){for(let c of nm)i.items.push({label:c,textEdit:oe.replace(this.getCompletionRange(r),c),kind:re.Keyword});for(let c of im)i.items.push({label:c,textEdit:oe.replace(this.getCompletionRange(r),c),kind:re.Keyword})}let a={};a[this.currentWord]=!0;let l=this.textDocument.getText();if(this.styleSheet.accept(c=>{if(c.type===v.SimpleSelector&&c.length>0){let d=l.substr(c.offset,c.length);return d.charAt(0)==="."&&!a[d]&&(a[d]=!0,i.items.push({label:d,textEdit:oe.replace(this.getCompletionRange(r),d),kind:re.Keyword})),!1}return!0}),e&&e.isNested()){let c=e.getSelectors().findFirstChildBeforeOffset(this.offset);c&&e.getSelectors().getChildren().indexOf(c)===0&&this.getPropertyProposals(null,i)}return i}getCompletionsForDeclarations(e,n){if(!e||this.offset===e.offset)return n;let i=e.findFirstChildBeforeOffset(this.offset);if(!i)return this.getCompletionsForDeclarationProperty(null,n);if(i instanceof Ti){let r=i;if(!ft(r.colonPosition)||this.offset<=r.colonPosition)return this.getCompletionsForDeclarationProperty(r,n);if(ft(r.semicolonPosition)&&r.semicolonPosition<this.offset)return this.offset===r.semicolonPosition+1?n:this.getCompletionsForDeclarationProperty(null,n);if(r instanceof it)return this.getCompletionsForDeclarationValue(r,n)}else i instanceof si?this.getCompletionsForExtendsReference(i,null,n):this.currentWord&&this.currentWord[0]==="@"?this.getCompletionsForDeclarationProperty(null,n):i instanceof vt&&this.getCompletionsForDeclarationProperty(null,n);return n}getCompletionsForVariableDeclaration(e,n){return this.offset&&ft(e.colonPosition)&&this.offset>e.colonPosition&&this.getVariableProposals(e.getValue()||null,n),n}getCompletionsForExpression(e,n){let i=e.getParent();if(i instanceof Vt)return this.getCompletionsForFunctionArgument(i,i.getParent(),n),n;let r=e.findParent(v.Declaration);if(!r)return this.getTermProposals(void 0,null,n),n;let s=e.findChildAtOffset(this.offset,!0);return s?s instanceof ri||s instanceof pt?this.getCompletionsForDeclarationValue(r,n):n:this.getCompletionsForDeclarationValue(r,n)}getCompletionsForFunctionArgument(e,n,i){let r=n.getIdentifier();return r&&r.matches("var")&&(!n.getArguments().hasChildren()||n.getArguments().getChild(0)===e)&&this.getVariableProposalsForCSSVarFunction(i),i}getCompletionsForFunctionDeclaration(e,n){let i=e.getDeclarations();return i&&this.offset>i.offset&&this.offset<i.end&&this.getTermProposals(void 0,null,n),n}getCompletionsForMixinReference(e,n){let i=this.getSymbolContext().findSymbolsAtOffset(this.offset,Ce.Mixin);for(let s of i)s.node instanceof Wn&&n.items.push(this.makeTermProposal(s,s.node.getParameters(),null));let r=e.getIdentifier()||null;return this.completionParticipants.forEach(s=>{s.onCssMixinReference&&s.onCssMixinReference({mixinName:this.currentWord,range:this.getCompletionRange(r)})}),n}getTermProposals(e,n,i){let r=this.getSymbolContext().findSymbolsAtOffset(this.offset,Ce.Function);for(let s of r)s.node instanceof Pn&&i.items.push(this.makeTermProposal(s,s.node.getParameters(),n));return i}makeTermProposal(e,n,i){let r=e.node,s=n.getChildren().map(a=>a instanceof In?a.getName():a.getText()),o=e.name+"("+s.map((a,l)=>"${"+(l+1)+":"+a+"}").join(", ")+")";return{label:e.name,detail:e.name+"("+s.join(", ")+")",textEdit:oe.replace(this.getCompletionRange(i),o),insertTextFormat:fn,kind:re.Function,sortText:en.Term}}getCompletionsForSupportsCondition(e,n){let i=e.findFirstChildBeforeOffset(this.offset);if(i){if(i instanceof it)return!ft(i.colonPosition)||this.offset<=i.colonPosition?this.getCompletionsForDeclarationProperty(i,n):this.getCompletionsForDeclarationValue(i,n);if(i instanceof hn)return this.getCompletionsForSupportsCondition(i,n)}return ft(e.lParent)&&this.offset>e.lParent&&(!ft(e.rParent)||this.offset<=e.rParent)?this.getCompletionsForDeclarationProperty(null,n):n}getCompletionsForSupports(e,n){let i=e.getDeclarations();if(!i||this.offset<=i.offset){let s=e.findFirstChildBeforeOffset(this.offset);return s instanceof hn?this.getCompletionsForSupportsCondition(s,n):n}return this.getCompletionForTopLevel(n)}getCompletionsForExtendsReference(e,n,i){return i}getCompletionForUriLiteralValue(e,n){let i,r,s;if(e.hasChildren()){let o=e.getChild(0);i=o.getText(),r=this.position,s=this.getCompletionRange(o)}else{i="",r=this.position;let o=this.textDocument.positionAt(e.offset+4);s=ce.create(o,o)}return this.completionParticipants.forEach(o=>{o.onCssURILiteralValue&&o.onCssURILiteralValue({uriValue:i,position:r,range:s})}),n}getCompletionForImportPath(e,n){return this.completionParticipants.forEach(i=>{i.onCssImportPath&&i.onCssImportPath({pathValue:e.getText(),position:this.position,range:this.getCompletionRange(e)})}),n}hasCharacterAtPosition(e,n){let i=this.textDocument.getText();return e>=0&&e<i.length&&i.charAt(e)===n}doesSupportMarkdown(){if(!ft(this.supportsMarkdown)){if(!ft(this.lsOptions.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;let e=this.lsOptions.clientCapabilities.textDocument?.completion?.completionItem?.documentationFormat;this.supportsMarkdown=Array.isArray(e)&&e.indexOf(bt.Markdown)!==-1}return this.supportsMarkdown}};function Ur(t){return!!(t.status&&(t.status==="nonstandard"||t.status==="obsolete"))}var Vr=class{constructor(){this.entries={}}add(e){this.entries[e]=!0}remove(e){delete this.entries[e]}getEntries(){return Object.keys(this.entries)}};function Yi(t){return t.replace(/\(\)$/,"($1)")}function Rv(t,e){let n=e.getFullPropertyName(),i=new Vr;function r(a){return(a instanceof pt||a instanceof ri||a instanceof ii)&&i.add(a.getText()),!0}function s(a){let l=a.getFullPropertyName();return n===l}function o(a){if(a instanceof it&&a!==e&&s(a)){let l=a.getValue();l&&l.accept(r)}return!0}return t.accept(o),i}var gd=class{constructor(e,n){this.entries=e,this.currentOffset=n}visitNode(e){return(e instanceof ii||e instanceof Qt&&Jp(e))&&(this.currentOffset<e.offset||e.end<this.currentOffset)&&this.entries.add(e.getText()),!0}},bd=class{constructor(e,n){this.entries=e,this.currentOffset=n}visitNode(e){return e instanceof pt&&e.isCustomProperty&&(this.currentOffset<e.offset||e.end<this.currentOffset)&&this.entries.add(e.getText()),!0}};function Mv(t,e){let n=e-1,i=t.getText();for(;n>=0&&`
|
55
55
|
\r":{[()]},*>+`.indexOf(i.charAt(n))===-1;)n--;return i.substring(n+1,e)}var dm=lt(Rt());var Hr=class t{constructor(){this.parent=null,this.children=null,this.attributes=null}findAttribute(e){if(this.attributes){for(let n of this.attributes)if(n.name===e)return n.value}return null}addChild(e){e instanceof t&&(e.parent=this),this.children||(this.children=[]),this.children.push(e)}append(e){if(this.attributes){let n=this.attributes[this.attributes.length-1];n.value=n.value+e}}prepend(e){if(this.attributes){let n=this.attributes[0];n.value=e+n.value}}findRoot(){let e=this;for(;e.parent&&!(e.parent instanceof $n);)e=e.parent;return e}removeChild(e){if(this.children){let n=this.children.indexOf(e);if(n!==-1)return this.children.splice(n,1),!0}return!1}addAttr(e,n){this.attributes||(this.attributes=[]);for(let i of this.attributes)if(i.name===e){i.value+=" "+n;return}this.attributes.push({name:e,value:n})}clone(e=!0){let n=new t;if(this.attributes){n.attributes=[];for(let i of this.attributes)n.addAttr(i.name,i.value)}if(e&&this.children){n.children=[];for(let i=0;i<this.children.length;i++)n.addChild(this.children[i].clone())}return n}cloneWithParent(){let e=this.clone(!1);return this.parent&&!(this.parent instanceof $n)&&this.parent.cloneWithParent().addChild(e),e}},$n=class extends Hr{},Kr=class extends Hr{constructor(e){super(),this.addAttr("name",e)}},Xo=class{constructor(e){this.quote=e,this.result=[]}print(e,n){this.result=[],e instanceof $n?e.children&&this.doPrint(e.children,0):this.doPrint([e],0);let i;return n?i=`${n.text}
|
56
56
|
\u2026 `+this.result.join(`
|
57
57
|
`):i=this.result.join(`
|
58
|
-
`),[{language:"html",value:i}]}doPrint(e,n){for(let i of e)this.doPrintElement(i,n),i.children&&this.doPrint(i.children,n+1)}writeLine(e,n){let i=new Array(e+1).join(" ");this.result.push(i+n)}doPrintElement(e,n){let i=e.findAttribute("name");if(e instanceof Kr||i==="\u2026"){this.writeLine(n,i);return}let r=["<"];if(i?r.push(i):r.push("element"),e.attributes){for(let s of e.attributes)if(s.name!=="name"){r.push(" "),r.push(s.name);let o=s.value;o&&(r.push("="),r.push(gn.ensure(o,this.quote)))}}r.push(">"),this.writeLine(n,r.join(""))}},gn;(function(t){function e(i,r){return r+n(i)+r}t.ensure=e;function n(i){let r=i.match(/^['"](.*)["']$/);return r?r[1]:i}t.remove=n})(gn||(gn={}));var Br=class{constructor(){this.id=0,this.attr=0,this.tag=0}};function hm(t,e){let n=new Hr;for(let i of t.getChildren())switch(i.type){case v.SelectorCombinator:if(e){let a=i.getText().split("&");if(a.length===1){n.addAttr("name",a[0]);break}n=e.cloneWithParent(),a[0]&&n.findRoot().prepend(a[0]);for(let l=1;l<a.length;l++){if(l>1){let c=e.cloneWithParent();n.addChild(c.findRoot()),n=c}n.append(a[l])}}break;case v.SelectorPlaceholder:if(i.matches("@at-root"))return n;case v.ElementNameSelector:let r=i.getText();n.addAttr("name",r==="*"?"element":Mt(r));break;case v.ClassSelector:n.addAttr("class",Mt(i.getText().substring(1)));break;case v.IdentifierSelector:n.addAttr("id",Mt(i.getText().substring(1)));break;case v.MixinDeclaration:n.addAttr("class",i.getName());break;case v.PseudoSelector:n.addAttr(Mt(i.getText()),"");break;case v.AttributeSelector:let s=i,o=s.getIdentifier();if(o){let a=s.getValue(),l=s.getOperator(),c;if(a&&l)switch(Mt(l.getText())){case"|=":c=`${gn.remove(Mt(a.getText()))}-\u2026`;break;case"^=":c=`${gn.remove(Mt(a.getText()))}\u2026`;break;case"$=":c=`\u2026${gn.remove(Mt(a.getText()))}`;break;case"~=":c=` \u2026 ${gn.remove(Mt(a.getText()))} \u2026 `;break;case"*=":c=`\u2026${gn.remove(Mt(a.getText()))}\u2026`;break;default:c=gn.remove(Mt(a.getText()));break}n.addAttr(Mt(o.getText()),c)}break}return n}function Mt(t){let e=new At;e.setSource(t);let n=e.scanUnquotedString();return n?n.text:t}var Yo=class{constructor(e){this.cssDataManager=e}selectorToMarkedString(e,n){let i=Iv(e);if(i){let r=new Xo('"').print(i,n);return r.push(this.selectorToSpecificityMarkedString(e)),r}else return[]}simpleSelectorToMarkedString(e){let n=hm(e),i=new Xo('"').print(n);return i.push(this.selectorToSpecificityMarkedString(e)),i}isPseudoElementIdentifier(e){let n=e.match(/^::?([\w-]+)/);return n?!!this.cssDataManager.getPseudoElement("::"+n[1]):!1}selectorToSpecificityMarkedString(e){let n=s=>{let o=new Br,a=new Br;for(let l of s)for(let c of l.getChildren()){let d=i(c);if(d.id>a.id){a=d;continue}else if(d.id<a.id)continue;if(d.attr>a.attr){a=d;continue}else if(d.attr<a.attr)continue;if(d.tag>a.tag){a=d;continue}}return o.id+=a.id,o.attr+=a.attr,o.tag+=a.tag,o},i=s=>{let o=new Br;e:for(let a of s.getChildren()){switch(a.type){case v.IdentifierSelector:o.id++;break;case v.ClassSelector:case v.AttributeSelector:o.attr++;break;case v.ElementNameSelector:if(a.matches("*"))break;o.tag++;break;case v.PseudoSelector:let l=a.getText(),c=a.getChildren();if(this.isPseudoElementIdentifier(l)){if(l.match(/^::slotted/i)&&c.length>0){o.tag++;let d=n(c);o.id+=d.id,o.attr+=d.attr,o.tag+=d.tag;continue e}o.tag++;continue e}if(l.match(/^:where/i))continue e;if(l.match(/^:(?:not|has|is)/i)&&c.length>0){let d=n(c);o.id+=d.id,o.attr+=d.attr,o.tag+=d.tag;continue e}if(l.match(/^:(?:host|host-context)/i)&&c.length>0){o.attr++;let d=n(c);o.id+=d.id,o.attr+=d.attr,o.tag+=d.tag;continue e}if(l.match(/^:(?:nth-child|nth-last-child)/i)&&c.length>0){o.attr++;let d=c[c.length-1];if(c.length>2&&d.type===v.SelectorList){let P=n(d.getChildren());o.id+=P.id,o.attr+=P.attr,o.tag+=P.tag;continue e}let p=new qn,b=c[1].getText();p.scanner.setSource(b);let y=p.scanner.scan(),M=p.scanner.scan();if(y.text==="n"||y.text==="-n"&&M.text==="of"){let P=[],$=b.slice(M.offset+2).split(",");for(let _ of $){let F=p.internalParse(_,p._parseSelector);F&&P.push(F)}let k=n(P);o.id+=k.id,o.attr+=k.attr,o.tag+=k.tag;continue e}continue e}o.attr++;continue e}if(a.getChildren().length>0){let l=i(a);o.id+=l.id,o.attr+=l.attr,o.tag+=l.tag}}return o},r=i(e);return`[${dm.t("Selector Specificity")}](https://developer.mozilla.org/docs/Web/CSS/Specificity): (${r.id}, ${r.attr}, ${r.tag})`}},yd=class{constructor(e){this.prev=null,this.element=e}processSelector(e){let n=null;if(!(this.element instanceof $n)&&e.getChildren().some(i=>i.hasChildren()&&i.getChild(0).type===v.SelectorCombinator)){let i=this.element.findRoot();i.parent instanceof $n&&(n=this.element,this.element=i.parent,this.element.removeChild(i),this.prev=null)}for(let i of e.getChildren()){if(i instanceof Dt){if(this.prev instanceof Dt){let o=new Kr("\u2026");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 Kr("\u22EE"));let r=hm(i,n),s=r.findRoot();this.element.addChild(s),this.element=r}(i instanceof Dt||i.type===v.SelectorCombinatorParent||i.type===v.SelectorCombinatorShadowPiercingDescendant||i.type===v.SelectorCombinatorSibling||i.type===v.SelectorCombinatorAllSiblings)&&(this.prev=i)}}};function Tv(t){switch(t.type){case v.MixinDeclaration:case v.Stylesheet:return!0}return!1}function Iv(t){if(t.matches("@at-root"))return null;let e=new $n,n=[],i=t.getParent();if(i instanceof vt){let s=i.getParent();for(;s&&!Tv(s);){if(s instanceof vt){if(s.getSelectors().matches("@at-root"))break;n.push(s)}s=s.getParent()}}let r=new yd(e);for(let s=n.length-1;s>=0;s--){let o=n[s].getSelectors().getChild(0);o&&r.processSelector(o)}return r.processSelector(t),e}var Qo=class{constructor(e,n){this.clientCapabilities=e,this.cssDataManager=n,this.selectorPrinting=new Yo(n)}configure(e){this.defaultSettings=e}doHover(e,n,i,r=this.defaultSettings){function s(d){return le.create(e.positionAt(d.offset),e.positionAt(d.end))}let o=e.offsetAt(n),a=Ui(i,o),l=null,c;for(let d=0;d<a.length;d++){let p=a[d];if(p instanceof zn){let b=/@media[^\{]+/g;c={isMedia:!0,text:p.getText().match(b)?.[0]}}if(p instanceof Ut){l={contents:this.selectorPrinting.selectorToMarkedString(p,c),range:s(p)};break}if(p instanceof Dt){ze(p.getText(),"@")||(l={contents:this.selectorPrinting.simpleSelectorToMarkedString(p),range:s(p)});break}if(p instanceof it){let b=p.getFullPropertyName(),y=this.cssDataManager.getProperty(b);if(y){let M=Zt(y,this.doesSupportMarkdown(),r);M?l={contents:M,range:s(p)}:l=null}continue}if(p instanceof ji){let b=p.getText(),y=this.cssDataManager.getAtDirective(b);if(y){let M=Zt(y,this.doesSupportMarkdown(),r);M?l={contents:M,range:s(p)}:l=null}continue}if(p instanceof te&&p.type===v.PseudoSelector){let b=p.getText(),y=b.slice(0,2)==="::"?this.cssDataManager.getPseudoElement(b):this.cssDataManager.getPseudoClass(b);if(y){let M=Zt(y,this.doesSupportMarkdown(),r);M?l={contents:M,range:s(p)}:l=null}continue}}return l&&(l.contents=this.convertContents(l.contents)),l}convertContents(e){return this.doesSupportMarkdown()||typeof e=="string"?e:"kind"in e?{kind:"plaintext",value:e.value}:Array.isArray(e)?e.map(n=>typeof n=="string"?n:n.value):e.value}doesSupportMarkdown(){if(!ft(this.supportsMarkdown)){if(!ft(this.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;let e=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.hover;this.supportsMarkdown=e&&e.contentFormat&&Array.isArray(e.contentFormat)&&e.contentFormat.indexOf(bt.Markdown)!==-1}return this.supportsMarkdown}};var Gr=lt(Rt());var um=/^\w+:\/\//,pm=/^data:/,Jr=class{constructor(e,n){this.fileSystemProvider=e,this.resolveModuleReferences=n}configure(e){this.defaultSettings=e}findDefinition(e,n,i){let r=new li(i),s=e.offsetAt(n),o=Po(i,s);if(!o)return null;let a=r.findSymbolFromNode(o);return a?{uri:e.uri,range:bn(a.node,e)}:null}findReferences(e,n,i){return this.findDocumentHighlights(e,n,i).map(s=>({uri:e.uri,range:s.range}))}getHighlightNode(e,n,i){let r=e.offsetAt(n),s=Po(i,r);if(!(!s||s.type===v.Stylesheet||s.type===v.Declarations||s.type===v.ModuleConfig))return s.type===v.Identifier&&s.parent&&s.parent.type===v.ClassSelector&&(s=s.parent),s}findDocumentHighlights(e,n,i){let r=[],s=this.getHighlightNode(e,n,i);if(!s)return r;let o=new li(i),a=o.findSymbolFromNode(s),l=s.getText();return i.accept(c=>{if(a){if(o.matchesSymbol(c,a))return r.push({kind:fm(c),range:bn(c,e)}),!1}else s&&s.type===c.type&&c.matches(l)&&r.push({kind:fm(c),range:bn(c,e)});return!0}),r}isRawStringDocumentLinkNode(e){return e.type===v.Import}findDocumentLinks(e,n,i){let r=this.findUnresolvedLinks(e,n),s=[];for(let o of r){let a=o.link,l=a.target;if(!(!l||pm.test(l)))if(um.test(l))s.push(a);else{let c=i.resolveReference(l,e.uri);c&&(a.target=c),s.push(a)}}return s}async findDocumentLinks2(e,n,i){let r=this.findUnresolvedLinks(e,n),s=[];for(let o of r){let a=o.link,l=a.target;if(!(!l||pm.test(l)))if(um.test(l))s.push(a);else{let c=await this.resolveReference(l,e.uri,i,o.isRawLink);c!==void 0&&(a.target=c,s.push(a))}}return s}findUnresolvedLinks(e,n){let i=[],r=s=>{let o=s.getText(),a=bn(s,e);if(a.start.line===a.end.line&&a.start.character===a.end.character)return;(ze(o,"'")||ze(o,'"'))&&(o=o.slice(1,-1));let l=s.parent?this.isRawStringDocumentLinkNode(s.parent):!1;i.push({link:{target:o,range:a},isRawLink:l})};return n.accept(s=>{if(s.type===v.URILiteral){let o=s.getChild(0);return o&&r(o),!1}if(s.parent&&this.isRawStringDocumentLinkNode(s.parent)){let o=s.getText();return(ze(o,"'")||ze(o,'"'))&&r(s),!1}return!0}),i}findSymbolInformations(e,n){let i=[],r=(s,o,a)=>{let l=a instanceof te?bn(a,e):a,c={name:s||Gr.t("<undefined>"),kind:o,location:oi.create(e.uri,l)};i.push(c)};return this.collectDocumentSymbols(e,n,r),i}findDocumentSymbols(e,n){let i=[],r=[],s=(o,a,l,c,d)=>{let p=l instanceof te?bn(l,e):l,b=c instanceof te?bn(c,e):c;(!b||!mm(p,b))&&(b=le.create(p.start,p.start));let y={name:o||Gr.t("<undefined>"),kind:a,range:p,selectionRange:b},M=r.pop();for(;M&&!mm(M[1],p);)M=r.pop();if(M){let P=M[0];P.children||(P.children=[]),P.children.push(y),r.push(M)}else i.push(y);d&&r.push([y,bn(d,e)])};return this.collectDocumentSymbols(e,n,s),i}collectDocumentSymbols(e,n,i){n.accept(r=>{if(r instanceof vt){for(let s of r.getSelectors().getChildren())if(s instanceof Ut){let o=le.create(e.positionAt(s.offset),e.positionAt(r.end));i(s.getText(),Bt.Class,o,s,r.getDeclarations())}}else if(r instanceof On)i(r.getName(),Bt.Variable,r,r.getVariable(),void 0);else if(r instanceof Wn)i(r.getName(),Bt.Method,r,r.getIdentifier(),r.getDeclarations());else if(r instanceof Pn)i(r.getName(),Bt.Function,r,r.getIdentifier(),r.getDeclarations());else if(r instanceof Pi){let s=Gr.t("@keyframes {0}",r.getName());i(s,Bt.Class,r,r.getIdentifier(),r.getDeclarations())}else if(r instanceof Ii){let s=Gr.t("@font-face");i(s,Bt.Class,r,void 0,r.getDeclarations())}else if(r instanceof zn){let s=r.getChild(0);if(s instanceof Ni){let o="@media "+s.getText();i(o,Bt.Module,r,s,r.getDeclarations())}}return!0})}findDocumentColors(e,n){let i=[];return n.accept(r=>{let s=Pv(r,e);return s&&i.push(s),!0}),i}getColorPresentations(e,n,i,r){let s=[],o=Math.round(i.red*255),a=Math.round(i.green*255),l=Math.round(i.blue*255),c;i.alpha===1?c=`rgb(${o}, ${a}, ${l})`:c=`rgba(${o}, ${a}, ${l}, ${i.alpha})`,s.push({label:c,textEdit:se.replace(r,c)}),i.alpha===1?c=`#${ci(o)}${ci(a)}${ci(l)}`:c=`#${ci(o)}${ci(a)}${ci(l)}${ci(Math.round(i.alpha*255))}`,s.push({label:c,textEdit:se.replace(r,c)});let d=Qc(i);d.a===1?c=`hsl(${d.h}, ${Math.round(d.s*100)}%, ${Math.round(d.l*100)}%)`:c=`hsla(${d.h}, ${Math.round(d.s*100)}%, ${Math.round(d.l*100)}%, ${d.a})`,s.push({label:c,textEdit:se.replace(r,c)});let p=Yp(i);p.a===1?c=`hwb(${p.h} ${Math.round(p.w*100)}% ${Math.round(p.b*100)}%)`:c=`hwb(${p.h} ${Math.round(p.w*100)}% ${Math.round(p.b*100)}% / ${p.a})`,s.push({label:c,textEdit:se.replace(r,c)});let b=Zc(i);b.alpha===1?c=`lab(${b.l}% ${b.a} ${b.b})`:c=`lab(${b.l}% ${b.a} ${b.b} / ${b.alpha})`,s.push({label:c,textEdit:se.replace(r,c)});let y=Qp(i);return b.alpha===1?c=`lch(${y.l}% ${y.c} ${y.h})`:c=`lch(${y.l}% ${y.c} ${y.h} / ${y.alpha})`,s.push({label:c,textEdit:se.replace(r,c)}),s}prepareRename(e,n,i){let r=this.getHighlightNode(e,n,i);if(r)return le.create(e.positionAt(r.offset),e.positionAt(r.end))}doRename(e,n,i,r){let o=this.findDocumentHighlights(e,n,r).map(a=>se.replace(a.range,i));return{changes:{[e.uri]:o}}}async resolveModuleReference(e,n,i){if(ze(n,"file://")){let r=gm(e);if(r&&r!=="."&&r!==".."){let s=i.resolveReference("/",n),o=$r(n),a=await this.resolvePathToModule(r,o,s);if(a){let l=e.substring(r.length+1);return mn(a,l)}}}}async mapReference(e,n){return e}async resolveReference(e,n,i,r=!1,s=this.defaultSettings){if(e[0]==="~"&&e[1]!=="/"&&this.fileSystemProvider)return e=e.substring(1),this.mapReference(await this.resolveModuleReference(e,n,i),r);let o=await this.mapReference(i.resolveReference(e,n),r);if(this.resolveModuleReferences){if(o&&await this.fileExists(o))return o;let a=await this.mapReference(await this.resolveModuleReference(e,n,i),r);if(a)return a}if(o&&!await this.fileExists(o)){let a=i.resolveReference("/",n);if(s&&a){if(e in s)return this.mapReference(mn(a,s[e]),r);let l=e.indexOf("/"),c=`${e.substring(0,l)}/`;if(c in s){let d=s[c].slice(0,-1),p=mn(a,d);return this.mapReference(p=mn(p,e.substring(c.length-1)),r)}}}return o}async resolvePathToModule(e,n,i){let r=mn(n,"node_modules",e,"package.json");if(await this.fileExists(r))return $r(r);if(i&&n.startsWith(i)&&n.length!==i.length)return this.resolvePathToModule(e,$r(n),i)}async fileExists(e){if(!this.fileSystemProvider)return!1;try{let n=await this.fileSystemProvider.stat(e);return!(n.type===ai.Unknown&&n.size===-1)}catch{return!1}}async getContent(e){if(!this.fileSystemProvider||!this.fileSystemProvider.getContent)return null;try{return await this.fileSystemProvider.getContent(e)}catch{return null}}};function Pv(t,e){let n=em(t);if(n){let i=bn(t,e);return{color:n,range:i}}return null}function bn(t,e){return le.create(e.positionAt(t.offset),e.positionAt(t.end))}function mm(t,e){let n=e.start.line,i=e.end.line,r=t.start.line,s=t.end.line;return!(n<r||i<r||n>s||i>s||n===r&&e.start.character<t.start.character||i===s&&e.end.character>t.end.character)}function fm(t){if(t.type===v.Selector)return Ln.Write;if(t instanceof pt&&t.parent&&t.parent instanceof Tn&&t.isCustomProperty)return Ln.Write;if(t.parent)switch(t.parent.type){case v.FunctionDeclaration:case v.MixinDeclaration:case v.Keyframe:case v.VariableDeclaration:case v.FunctionParameter:return Ln.Write}return Ln.Read}function ci(t){let e=t.toString(16);return e.length!==2?"0"+e:e}function gm(t){let e=t.indexOf("/");if(e===-1)return"";if(t[0]==="@"){let n=t.indexOf("/",e+1);return n===-1?t:t.substring(0,n)}return t.substring(0,e)}var Be=lt(Rt()),Qi=rt.Warning,bm=rt.Error,Ht=rt.Ignore,He=class{constructor(e,n,i){this.id=e,this.message=n,this.defaultValue=i}},wd=class{constructor(e,n,i){this.id=e,this.message=n,this.defaultValue=i}},xe={AllVendorPrefixes:new He("compatibleVendorPrefixes",Be.t("When using a vendor-specific prefix make sure to also include all other vendor-specific properties"),Ht),IncludeStandardPropertyWhenUsingVendorPrefix:new He("vendorPrefix",Be.t("When using a vendor-specific prefix also include the standard property"),Qi),DuplicateDeclarations:new He("duplicateProperties",Be.t("Do not use duplicate style definitions"),Ht),EmptyRuleSet:new He("emptyRules",Be.t("Do not use empty rulesets"),Qi),ImportStatemement:new He("importStatement",Be.t("Import statements do not load in parallel"),Ht),BewareOfBoxModelSize:new He("boxModel",Be.t("Do not use width or height when using padding or border"),Ht),UniversalSelector:new He("universalSelector",Be.t("The universal selector (*) is known to be slow"),Ht),ZeroWithUnit:new He("zeroUnits",Be.t("No unit for zero needed"),Ht),RequiredPropertiesForFontFace:new He("fontFaceProperties",Be.t("@font-face rule must define 'src' and 'font-family' properties"),Qi),HexColorLength:new He("hexColorLength",Be.t("Hex colors must consist of three, four, six or eight hex numbers"),bm),ArgsInColorFunction:new He("argumentsInColorFunction",Be.t("Invalid number of parameters"),bm),UnknownProperty:new He("unknownProperties",Be.t("Unknown property."),Qi),UnknownAtRules:new He("unknownAtRules",Be.t("Unknown at-rule."),Qi),IEStarHack:new He("ieHack",Be.t("IE hacks are only necessary when supporting IE7 and older"),Ht),UnknownVendorSpecificProperty:new He("unknownVendorSpecificProperties",Be.t("Unknown vendor specific property."),Ht),PropertyIgnoredDueToDisplay:new He("propertyIgnoredDueToDisplay",Be.t("Property is ignored due to the display."),Qi),AvoidImportant:new He("important",Be.t("Avoid using !important. It is an indication that the specificity of the entire CSS has gotten out of control and needs to be refactored."),Ht),AvoidFloat:new He("float",Be.t("Avoid using 'float'. Floats lead to fragile CSS that is easy to break if one aspect of the layout changes."),Ht),AvoidIdSelector:new He("idSelector",Be.t("Selectors should not contain IDs because these rules are too tightly coupled with the HTML."),Ht)},ym={ValidProperties:new wd("validProperties",Be.t("A list of properties that are not validated against the `unknownProperties` rule."),[])},Zo=class{constructor(e={}){this.conf=e}getRule(e){if(this.conf.hasOwnProperty(e.id)){let n=zv(this.conf[e.id]);if(n)return n}return e.defaultValue}getSetting(e){return this.conf[e.id]}};function zv(t){switch(t){case"ignore":return rt.Ignore;case"warning":return rt.Warning;case"error":return rt.Error}return null}var wm=lt(Rt()),ea=class{constructor(e){this.cssDataManager=e}doCodeActions(e,n,i,r){return this.doCodeActions2(e,n,i,r).map(s=>{let o=s.edit&&s.edit.documentChanges&&s.edit.documentChanges[0];return un.create(s.title,"_css.applyCodeAction",e.uri,e.version,o&&o.edits)})}doCodeActions2(e,n,i,r){let s=[];if(i.diagnostics)for(let o of i.diagnostics)this.appendFixesForMarker(e,r,o,s);return s}getFixesForUnknownProperty(e,n,i,r){let s=n.getName(),o=[];this.cssDataManager.getProperties().forEach(l=>{let c=ep(s,l.name);c>=s.length/2&&o.push({property:l.name,score:c})}),o.sort((l,c)=>c.score-l.score||l.property.localeCompare(c.property));let a=3;for(let l of o){let c=l.property,d=wm.t("Rename to '{0}'",c),p=se.replace(i.range,c),b=zr.create(e.uri,e.version),y={documentChanges:[Hi.create(b,[p])]},M=Wr.create(d,y,Or.QuickFix);if(M.diagnostics=[i],r.push(M),--a<=0)return}}appendFixesForMarker(e,n,i,r){if(i.code!==xe.UnknownProperty.id)return;let s=e.offsetAt(i.range.start),o=e.offsetAt(i.range.end),a=Ui(n,s);for(let l=a.length-1;l>=0;l--){let c=a[l];if(c instanceof it){let d=c.getProperty();if(d&&d.offset===s&&d.end===o){this.getFixesForUnknownProperty(e,d,i,r);return}}}}};var tn=lt(Rt());var ta=class{constructor(e){this.fullPropertyName=e.getFullPropertyName().toLowerCase(),this.node=e}};function Xr(t,e,n,i){let r=t[e];r.value=n,n&&(dd(r.properties,i)||r.properties.push(i))}function Nv(t,e,n){Xr(t,"top",e,n),Xr(t,"right",e,n),Xr(t,"bottom",e,n),Xr(t,"left",e,n)}function ot(t,e,n,i){e==="top"||e==="right"||e==="bottom"||e==="left"?Xr(t,e,n,i):Nv(t,n,i)}function vd(t,e,n){switch(e.length){case 1:ot(t,void 0,e[0],n);break;case 2:ot(t,"top",e[0],n),ot(t,"bottom",e[0],n),ot(t,"right",e[1],n),ot(t,"left",e[1],n);break;case 3:ot(t,"top",e[0],n),ot(t,"right",e[1],n),ot(t,"left",e[1],n),ot(t,"bottom",e[2],n);break;case 4:ot(t,"top",e[0],n),ot(t,"right",e[1],n),ot(t,"bottom",e[2],n),ot(t,"left",e[3],n);break}}function Sd(t,e){for(let n of e)if(t.matches(n))return!0;return!1}function Yr(t,e=!0){return e&&Sd(t,["initial","unset"])?!1:parseFloat(t.getText())!==0}function vm(t,e=!0){return t.map(n=>Yr(n,e))}function na(t,e=!0){return!(Sd(t,["none","hidden"])||e&&Sd(t,["initial","unset"]))}function Ov(t,e=!0){return t.map(n=>na(n,e))}function Wv(t){let e=t.getChildren();if(e.length===1){let n=e[0];return Yr(n)&&na(n)}for(let n of e){let i=n;if(!Yr(i,!1)||!na(i,!1))return!1}return!0}function _d(t){let e={top:{value:!1,properties:[]},right:{value:!1,properties:[]},bottom:{value:!1,properties:[]},left:{value:!1,properties:[]}};for(let n of t){let i=n.node.value;if(!(typeof i>"u"))switch(n.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=n;break;case"height":e.height=n;break;default:let r=n.fullPropertyName.split("-");switch(r[0]){case"border":switch(r[1]){case void 0:case"top":case"right":case"bottom":case"left":switch(r[2]){case void 0:ot(e,r[1],Wv(i),n);break;case"width":ot(e,r[1],Yr(i,!1),n);break;case"style":ot(e,r[1],na(i,!0),n);break}break;case"width":vd(e,vm(i.getChildren(),!1),n);break;case"style":vd(e,Ov(i.getChildren(),!0),n);break}break;case"padding":r.length===1?vd(e,vm(i.getChildren(),!0),n):ot(e,r[1],Yr(i,!0),n);break}break}}return e}var ia=class{constructor(){this.data={}}add(e,n,i){let r=this.data[e];r||(r={nodes:[],names:[]},this.data[e]=r),r.names.push(n),i&&r.nodes.push(i)}},Qr=class t{static entries(e,n,i,r,s){let o=new t(n,i,r);return e.acceptVisitor(o),o.completeValidations(),o.getEntries(s)}constructor(e,n,i){this.cssDataManager=i,this.warnings=[],this.settings=n,this.documentText=e.getText(),this.keyframes=new ia,this.validProperties={};let r=n.getSetting(ym.ValidProperties);Array.isArray(r)&&r.forEach(s=>{if(typeof s=="string"){let o=s.trim().toLowerCase();o.length&&(this.validProperties[o]=!0)}})}isValidPropertyDeclaration(e){let n=e.fullPropertyName;return this.validProperties[n]}fetch(e,n){let i=[];for(let r of e)r.fullPropertyName===n&&i.push(r);return i}fetchWithValue(e,n,i){let r=[];for(let s of e)if(s.fullPropertyName===n){let o=s.node.getValue();o&&this.findValueInExpression(o,i)&&r.push(s)}return r}findValueInExpression(e,n){let i=!1;return e.accept(r=>(r.type===v.Identifier&&r.matches(n)&&(i=!0),!i)),i}getEntries(e=rt.Warning|rt.Error){return this.warnings.filter(n=>(n.getLevel()&e)!==0)}addEntry(e,n,i){let r=new $i(e,n,this.settings.getRule(n),i);this.warnings.push(r)}getMissingNames(e,n){let i=e.slice(0);for(let s=0;s<n.length;s++){let o=i.indexOf(n[s]);o!==-1&&(i[o]=null)}let r=null;for(let s=0;s<i.length;s++){let o=i[s];o&&(r===null?r=tn.t("'{0}'",o):r=tn.t("{0}, '{1}'",r,o))}return r}visitNode(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}completeValidations(){this.validateKeyframes()}visitUnknownAtRule(e){let n=e.getChild(0);return!n||this.cssDataManager.getAtDirective(n.getText())?!1:(this.addEntry(n,xe.UnknownAtRules,`Unknown at rule ${n.getText()}`),!0)}visitKeyframe(e){let n=e.getKeyword();if(!n)return!1;let i=n.getText();return this.keyframes.add(e.getName(),i,i!=="@keyframes"?n:null),!0}validateKeyframes(){let e=["@-webkit-keyframes","@-moz-keyframes","@-o-keyframes"];for(let n in this.keyframes.data){let i=this.keyframes.data[n].names,r=i.indexOf("@keyframes")===-1;if(!r&&i.length===1)continue;let s=this.getMissingNames(e,i);if(s||r)for(let o of this.keyframes.data[n].nodes){if(r){let a=tn.t("Always define standard rule '@keyframes' when defining keyframes.");this.addEntry(o,xe.IncludeStandardPropertyWhenUsingVendorPrefix,a)}if(s){let a=tn.t("Always include all vendor specific rules: Missing: {0}",s);this.addEntry(o,xe.AllVendorPrefixes,a)}}}return!0}visitSimpleSelector(e){let n=this.documentText.charAt(e.offset);return e.length===1&&n==="*"&&this.addEntry(e,xe.UniversalSelector),!0}visitIdentifierSelector(e){return this.addEntry(e,xe.AvoidIdSelector),!0}visitImport(e){return this.addEntry(e,xe.ImportStatemement),!0}visitRuleSet(e){let n=e.getDeclarations();if(!n)return!1;n.hasChildren()||this.addEntry(e.getSelectors(),xe.EmptyRuleSet);let i=[];for(let l of n.getChildren())l instanceof it&&i.push(new ta(l));let r=_d(i);if(r.width){let l=[];if(r.right.value&&(l=jr(l,r.right.properties)),r.left.value&&(l=jr(l,r.left.properties)),l.length!==0){for(let c of l)this.addEntry(c.node,xe.BewareOfBoxModelSize);this.addEntry(r.width.node,xe.BewareOfBoxModelSize)}}if(r.height){let l=[];if(r.top.value&&(l=jr(l,r.top.properties)),r.bottom.value&&(l=jr(l,r.bottom.properties)),l.length!==0){for(let c of l)this.addEntry(c.node,xe.BewareOfBoxModelSize);this.addEntry(r.height.node,xe.BewareOfBoxModelSize)}}let s=this.fetchWithValue(i,"display","inline-block");if(s.length>0){let l=this.fetch(i,"float");for(let c=0;c<l.length;c++){let d=l[c].node,p=d.getValue();p&&!p.matches("none")&&this.addEntry(d,xe.PropertyIgnoredDueToDisplay,tn.t("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(s=this.fetchWithValue(i,"display","block"),s.length>0){let l=this.fetch(i,"vertical-align");for(let c=0;c<l.length;c++)this.addEntry(l[c].node,xe.PropertyIgnoredDueToDisplay,tn.t("Property is ignored due to the display. With 'display: block', vertical-align should not be used."))}let o=this.fetch(i,"float");for(let l=0;l<o.length;l++){let c=o[l];this.isValidPropertyDeclaration(c)||this.addEntry(c.node,xe.AvoidFloat)}for(let l=0;l<i.length;l++){let c=i[l];if(c.fullPropertyName!=="background"&&!this.validProperties[c.fullPropertyName]){let d=c.node.getValue();if(d&&this.documentText.charAt(d.offset)!=="-"){let p=this.fetch(i,c.fullPropertyName);if(p.length>1)for(let b=0;b<p.length;b++){let y=p[b].node.getValue();y&&this.documentText.charAt(y.offset)!=="-"&&p[b]!==c&&this.addEntry(c.node,xe.DuplicateDeclarations)}}}}if(!e.getSelectors().matches(":export")){let l=new ia,c=!1;for(let d of i){let p=d.node;if(this.isCSSDeclaration(p)){let b=d.fullPropertyName,y=b.charAt(0);if(y==="-"){if(b.charAt(1)!=="-"){!this.cssDataManager.isKnownProperty(b)&&!this.validProperties[b]&&this.addEntry(p.getProperty(),xe.UnknownVendorSpecificProperty);let M=p.getNonPrefixedPropertyName();l.add(M,b,p.getProperty())}}else{let M=b;(y==="*"||y==="_")&&(this.addEntry(p.getProperty(),xe.IEStarHack),b=b.substr(1)),!this.cssDataManager.isKnownProperty(M)&&!this.cssDataManager.isKnownProperty(b)&&(this.validProperties[b]||this.addEntry(p.getProperty(),xe.UnknownProperty,tn.t("Unknown property: '{0}'",p.getFullPropertyName()))),l.add(b,b,null)}}else c=!0}if(!c)for(let d in l.data){let p=l.data[d],b=p.names,y=this.cssDataManager.isStandardProperty(d)&&b.indexOf(d)===-1;if(!y&&b.length===1)continue;let M=new Set(y?p.nodes:[]);if(y){let $=this.getContextualVendorSpecificPseudoElements(e);for(let k of p.nodes){let _=k.getName(),F=_.substring(0,_.length-d.length);$.some(O=>O.startsWith(F))&&M.delete(k)}}let P=[];for(let $=0,k=t.prefixes.length;$<k;$++){let _=t.prefixes[$];this.cssDataManager.isStandardProperty(_+d)&&P.push(_+d)}let Y=this.getMissingNames(P,b);if(Y||y)for(let $ of p.nodes){if(y&&M.has($)){let k=tn.t("Also define the standard property '{0}' for compatibility",d);this.addEntry($,xe.IncludeStandardPropertyWhenUsingVendorPrefix,k)}if(Y){let k=tn.t("Always include all vendor specific properties: Missing: {0}",Y);this.addEntry($,xe.AllVendorPrefixes,k)}}}}return!0}getContextualVendorSpecificPseudoElements(e){function n(s,o){for(let a of o.getChildren()){if(a.type===v.PseudoSelector){let l=a.getChildren()[0]?.getText();l&&s.add(l)}n(s,a)}}function i(s,o){if(o.type===v.Ruleset)for(let a of o.getSelectors().getChildren())n(s,a);return o.parent?i(s,o.parent):void 0}let r=new Set;return i(r,e),Array.from(r)}visitPrio(e){return this.addEntry(e,xe.AvoidImportant),!0}visitNumericValue(e){let n=e.findParent(v.Function);if(n&&n.getName()==="calc")return!0;let i=e.findParent(v.Declaration);if(i&&i.getValue()){let s=e.getValue();if(!s.unit||Vo.length.indexOf(s.unit.toLowerCase())===-1)return!0;parseFloat(s.value)===0&&s.unit&&!this.validProperties[i.getFullPropertyName()]&&this.addEntry(e,xe.ZeroWithUnit)}return!0}visitFontFace(e){let n=e.getDeclarations();if(!n)return!1;let i=!1,r=!1,s=!1;for(let o of n.getChildren())if(this.isCSSDeclaration(o)){let a=o.getProperty().getName().toLowerCase();a==="src"&&(i=!0),a==="font-family"&&(r=!0)}else s=!0;return!s&&(!i||!r)&&this.addEntry(e,xe.RequiredPropertiesForFontFace),!0}isCSSDeclaration(e){if(e instanceof it){if(!e.getValue())return!1;let n=e.getProperty();if(!n)return!1;let i=n.getIdentifier();return!(!i||i.containsInterpolation())}return!1}visitHexColorValue(e){let n=e.length;return n!==9&&n!==7&&n!==5&&n!==4&&this.addEntry(e,xe.HexColorLength),!1}visitFunction(e){let n=e.getName().toLowerCase(),i=-1,r=0;switch(n){case"rgb(":case"hsl(":i=3;break;case"rgba(":case"hsla(":i=4;break}return i!==-1&&(e.getArguments().accept(s=>s instanceof Nn?(r+=1,!1):!0),r!==i&&this.addEntry(e,xe.ArgsInColorFunction)),!0}};Qr.prefixes=["-ms-","-moz-","-o-","-webkit-"];var ra=class{constructor(e){this.cssDataManager=e}configure(e){this.settings=e}doValidation(e,n,i=this.settings){if(i&&i.validate===!1)return[];let r=[];r.push.apply(r,Io.entries(n)),r.push.apply(r,Qr.entries(n,e,new Zo(i&&i.lint),this.cssDataManager));let s=[];for(let a in xe)s.push(xe[a].id);function o(a){let l=le.create(e.positionAt(a.getOffset()),e.positionAt(a.getOffset()+a.getLength())),c=e.languageId;return{code:a.getRule().id,source:c,message:a.getMessage(),severity:a.getLevel()===rt.Warning?Vi.Warning:Vi.Error,range:l}}return r.filter(a=>a.getLevel()!==rt.Ignore).map(o)}};var Sm=47,Lv=10,qv=13,jv=12,$v=36,Uv=35,Vv=123,Zr=61,Bv=33,Hv=60,Kv=62,xd=46;var yn=g.CustomToken,_m=yn++,sa=yn++,XS=yn++,xm=yn++,Cm=yn++,Fm=yn++,km=yn++,Am=yn++,YS=yn++,es=class extends At{scanNext(e){if(this.stream.advanceIfChar($v)){let n=["$"];if(this.ident(n))return this.finishToken(e,_m,n.join(""));this.stream.goBackTo(e)}return this.stream.advanceIfChars([Uv,Vv])?this.finishToken(e,sa):this.stream.advanceIfChars([Zr,Zr])?this.finishToken(e,xm):this.stream.advanceIfChars([Bv,Zr])?this.finishToken(e,Cm):this.stream.advanceIfChar(Hv)?this.stream.advanceIfChar(Zr)?this.finishToken(e,km):this.finishToken(e,g.Delim):this.stream.advanceIfChar(Kv)?this.stream.advanceIfChar(Zr)?this.finishToken(e,Fm):this.finishToken(e,g.Delim):this.stream.advanceIfChars([xd,xd,xd])?this.finishToken(e,Am):super.scanNext(e)}comment(){return super.comment()?!0:!this.inURL&&this.stream.advanceIfChars([Sm,Sm])?(this.stream.advanceWhileChar(e=>{switch(e){case Lv:case qv:case jv:return!1;default:return!0}}),!0):!1}};var oa=lt(Rt()),ts=class{constructor(e,n){this.id=e,this.message=n}},Jv={FromExpected:new ts("scss-fromexpected",oa.t("'from' expected")),ThroughOrToExpected:new ts("scss-throughexpected",oa.t("'through' or 'to' expected")),InExpected:new ts("scss-fromexpected",oa.t("'in' expected"))};var W=lt(Rt()),wn=W.t("Sass documentation"),nn=class t extends jn{constructor(e,n){super("$",e,n),Em(t.scssModuleLoaders),Em(t.scssModuleBuiltIns)}isImportPathParent(e){return e===v.Forward||e===v.Use||super.isImportPathParent(e)}getCompletionForImportPath(e,n){let i=e.getParent().type;if(i===v.Forward||i===v.Use)for(let r of t.scssModuleBuiltIns){let s={label:r.label,documentation:r.documentation,textEdit:se.replace(this.getCompletionRange(e),`'${r.label}'`),kind:ie.Module};n.items.push(s)}return super.getCompletionForImportPath(e,n)}createReplaceFunction(){let e=1;return(n,i)=>"\\"+i+": ${"+e+++":"+(t.variableDefaults[i]||"")+"}"}createFunctionProposals(e,n,i,r){for(let s of e){let o=s.func.replace(/\[?(\$\w+)\]?/g,this.createReplaceFunction()),l={label:s.func.substr(0,s.func.indexOf("(")),detail:s.func,documentation:s.desc,textEdit:se.replace(this.getCompletionRange(n),o),insertTextFormat:st.Snippet,kind:ie.Function};i&&(l.sortText="z"),r.items.push(l)}return r}getCompletionsForSelector(e,n,i){return this.createFunctionProposals(t.selectorFuncs,null,!0,i),super.getCompletionsForSelector(e,n,i)}getTermProposals(e,n,i){let r=t.builtInFuncs;return e&&(r=r.filter(s=>!s.type||!e.restrictions||e.restrictions.indexOf(s.type)!==-1)),this.createFunctionProposals(r,n,!0,i),super.getTermProposals(e,n,i)}getColorProposals(e,n,i){return this.createFunctionProposals(t.colorProposals,n,!1,i),super.getColorProposals(e,n,i)}getCompletionsForDeclarationProperty(e,n){return this.getCompletionForAtDirectives(n),this.getCompletionsForSelector(null,!0,n),super.getCompletionsForDeclarationProperty(e,n)}getCompletionsForExtendsReference(e,n,i){let r=this.getSymbolContext().findSymbolsAtOffset(this.offset,Ce.Rule);for(let s of r){let o={label:s.name,textEdit:se.replace(this.getCompletionRange(n),s.name),kind:ie.Function};i.items.push(o)}return i}getCompletionForAtDirectives(e){return e.items.push(...t.scssAtDirectives),e}getCompletionForTopLevel(e){return this.getCompletionForAtDirectives(e),this.getCompletionForModuleLoaders(e),super.getCompletionForTopLevel(e),e}getCompletionForModuleLoaders(e){return e.items.push(...t.scssModuleLoaders),e}};nn.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"};nn.colorProposals=[{func:"red($color)",desc:W.t("Gets the red component of a color.")},{func:"green($color)",desc:W.t("Gets the green component of a color.")},{func:"blue($color)",desc:W.t("Gets the blue component of a color.")},{func:"mix($color, $color, [$weight])",desc:W.t("Mixes two colors together.")},{func:"hue($color)",desc:W.t("Gets the hue component of a color.")},{func:"saturation($color)",desc:W.t("Gets the saturation component of a color.")},{func:"lightness($color)",desc:W.t("Gets the lightness component of a color.")},{func:"adjust-hue($color, $degrees)",desc:W.t("Changes the hue of a color.")},{func:"lighten($color, $amount)",desc:W.t("Makes a color lighter.")},{func:"darken($color, $amount)",desc:W.t("Makes a color darker.")},{func:"saturate($color, $amount)",desc:W.t("Makes a color more saturated.")},{func:"desaturate($color, $amount)",desc:W.t("Makes a color less saturated.")},{func:"grayscale($color)",desc:W.t("Converts a color to grayscale.")},{func:"complement($color)",desc:W.t("Returns the complement of a color.")},{func:"invert($color)",desc:W.t("Returns the inverse of a color.")},{func:"alpha($color)",desc:W.t("Gets the opacity component of a color.")},{func:"opacity($color)",desc:"Gets the alpha component (opacity) of a color."},{func:"rgba($color, $alpha)",desc:W.t("Changes the alpha component for a color.")},{func:"opacify($color, $amount)",desc:W.t("Makes a color more opaque.")},{func:"fade-in($color, $amount)",desc:W.t("Makes a color more opaque.")},{func:"transparentize($color, $amount)",desc:W.t("Makes a color more transparent.")},{func:"fade-out($color, $amount)",desc:W.t("Makes a color more transparent.")},{func:"adjust-color($color, [$red], [$green], [$blue], [$hue], [$saturation], [$lightness], [$alpha])",desc:W.t("Increases or decreases one or more components of a color.")},{func:"scale-color($color, [$red], [$green], [$blue], [$saturation], [$lightness], [$alpha])",desc:W.t("Fluidly scales one or more properties of a color.")},{func:"change-color($color, [$red], [$green], [$blue], [$hue], [$saturation], [$lightness], [$alpha])",desc:W.t("Changes one or more properties of a color.")},{func:"ie-hex-str($color)",desc:W.t("Converts a color into the format understood by IE filters.")}];nn.selectorFuncs=[{func:"selector-nest($selectors\u2026)",desc:W.t("Nests selector beneath one another like they would be nested in the stylesheet.")},{func:"selector-append($selectors\u2026)",desc:W.t("Appends selectors to one another without spaces in between.")},{func:"selector-extend($selector, $extendee, $extender)",desc:W.t("Extends $extendee with $extender within $selector.")},{func:"selector-replace($selector, $original, $replacement)",desc:W.t("Replaces $original with $replacement within $selector.")},{func:"selector-unify($selector1, $selector2)",desc:W.t("Unifies two selectors to produce a selector that matches elements matched by both.")},{func:"is-superselector($super, $sub)",desc:W.t("Returns whether $super matches all the elements $sub does, and possibly more.")},{func:"simple-selectors($selector)",desc:W.t("Returns the simple selectors that comprise a compound selector.")},{func:"selector-parse($selector)",desc:W.t("Parses a selector into the format returned by &.")}];nn.builtInFuncs=[{func:"unquote($string)",desc:W.t("Removes quotes from a string.")},{func:"quote($string)",desc:W.t("Adds quotes to a string.")},{func:"str-length($string)",desc:W.t("Returns the number of characters in a string.")},{func:"str-insert($string, $insert, $index)",desc:W.t("Inserts $insert into $string at $index.")},{func:"str-index($string, $substring)",desc:W.t("Returns the index of the first occurance of $substring in $string.")},{func:"str-slice($string, $start-at, [$end-at])",desc:W.t("Extracts a substring from $string.")},{func:"to-upper-case($string)",desc:W.t("Converts a string to upper case.")},{func:"to-lower-case($string)",desc:W.t("Converts a string to lower case.")},{func:"percentage($number)",desc:W.t("Converts a unitless number to a percentage."),type:"percentage"},{func:"round($number)",desc:W.t("Rounds a number to the nearest whole number.")},{func:"ceil($number)",desc:W.t("Rounds a number up to the next whole number.")},{func:"floor($number)",desc:W.t("Rounds a number down to the previous whole number.")},{func:"abs($number)",desc:W.t("Returns the absolute value of a number.")},{func:"min($numbers)",desc:W.t("Finds the minimum of several numbers.")},{func:"max($numbers)",desc:W.t("Finds the maximum of several numbers.")},{func:"random([$limit])",desc:W.t("Returns a random number.")},{func:"length($list)",desc:W.t("Returns the length of a list.")},{func:"nth($list, $n)",desc:W.t("Returns a specific item in a list.")},{func:"set-nth($list, $n, $value)",desc:W.t("Replaces the nth item in a list.")},{func:"join($list1, $list2, [$separator])",desc:W.t("Joins together two lists into one.")},{func:"append($list1, $val, [$separator])",desc:W.t("Appends a single value onto the end of a list.")},{func:"zip($lists)",desc:W.t("Combines several lists into a single multidimensional list.")},{func:"index($list, $value)",desc:W.t("Returns the position of a value within a list.")},{func:"list-separator(#list)",desc:W.t("Returns the separator of a list.")},{func:"map-get($map, $key)",desc:W.t("Returns the value in a map associated with a given key.")},{func:"map-merge($map1, $map2)",desc:W.t("Merges two maps together into a new map.")},{func:"map-remove($map, $keys)",desc:W.t("Returns a new map with keys removed.")},{func:"map-keys($map)",desc:W.t("Returns a list of all keys in a map.")},{func:"map-values($map)",desc:W.t("Returns a list of all values in a map.")},{func:"map-has-key($map, $key)",desc:W.t("Returns whether a map has a value associated with a given key.")},{func:"keywords($args)",desc:W.t("Returns the keywords passed to a function that takes variable arguments.")},{func:"feature-exists($feature)",desc:W.t("Returns whether a feature exists in the current Sass runtime.")},{func:"variable-exists($name)",desc:W.t("Returns whether a variable with the given name exists in the current scope.")},{func:"global-variable-exists($name)",desc:W.t("Returns whether a variable with the given name exists in the global scope.")},{func:"function-exists($name)",desc:W.t("Returns whether a function with the given name exists.")},{func:"mixin-exists($name)",desc:W.t("Returns whether a mixin with the given name exists.")},{func:"inspect($value)",desc:W.t("Returns the string representation of a value as it would be represented in Sass.")},{func:"type-of($value)",desc:W.t("Returns the type of a value.")},{func:"unit($number)",desc:W.t("Returns the unit(s) associated with a number.")},{func:"unitless($number)",desc:W.t("Returns whether a number has units.")},{func:"comparable($number1, $number2)",desc:W.t("Returns whether two numbers can be added, subtracted, or compared.")},{func:"call($name, $args\u2026)",desc:W.t("Dynamically calls a Sass function.")}];nn.scssAtDirectives=[{label:"@extend",documentation:W.t("Inherits the styles of another selector."),kind:ie.Keyword},{label:"@at-root",documentation:W.t("Causes one or more rules to be emitted at the root of the document."),kind:ie.Keyword},{label:"@debug",documentation:W.t("Prints the value of an expression to the standard error output stream. Useful for debugging complicated Sass files."),kind:ie.Keyword},{label:"@warn",documentation:W.t("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:ie.Keyword},{label:"@error",documentation:W.t("Throws the value of an expression as a fatal error with stack trace. Useful for validating arguments to mixins and functions."),kind:ie.Keyword},{label:"@if",documentation:W.t("Includes the body if the expression does not evaluate to `false` or `null`."),insertText:`@if \${1:expr} {
|
58
|
+
`),[{language:"html",value:i}]}doPrint(e,n){for(let i of e)this.doPrintElement(i,n),i.children&&this.doPrint(i.children,n+1)}writeLine(e,n){let i=new Array(e+1).join(" ");this.result.push(i+n)}doPrintElement(e,n){let i=e.findAttribute("name");if(e instanceof Kr||i==="\u2026"){this.writeLine(n,i);return}let r=["<"];if(i?r.push(i):r.push("element"),e.attributes){for(let s of e.attributes)if(s.name!=="name"){r.push(" "),r.push(s.name);let o=s.value;o&&(r.push("="),r.push(gn.ensure(o,this.quote)))}}r.push(">"),this.writeLine(n,r.join(""))}},gn;(function(t){function e(i,r){return r+n(i)+r}t.ensure=e;function n(i){let r=i.match(/^['"](.*)["']$/);return r?r[1]:i}t.remove=n})(gn||(gn={}));var Br=class{constructor(){this.id=0,this.attr=0,this.tag=0}};function hm(t,e){let n=new Hr;for(let i of t.getChildren())switch(i.type){case v.SelectorCombinator:if(e){let a=i.getText().split("&");if(a.length===1){n.addAttr("name",a[0]);break}n=e.cloneWithParent(),a[0]&&n.findRoot().prepend(a[0]);for(let l=1;l<a.length;l++){if(l>1){let c=e.cloneWithParent();n.addChild(c.findRoot()),n=c}n.append(a[l])}}break;case v.SelectorPlaceholder:if(i.matches("@at-root"))return n;case v.ElementNameSelector:let r=i.getText();n.addAttr("name",r==="*"?"element":Mt(r));break;case v.ClassSelector:n.addAttr("class",Mt(i.getText().substring(1)));break;case v.IdentifierSelector:n.addAttr("id",Mt(i.getText().substring(1)));break;case v.MixinDeclaration:n.addAttr("class",i.getName());break;case v.PseudoSelector:n.addAttr(Mt(i.getText()),"");break;case v.AttributeSelector:let s=i,o=s.getIdentifier();if(o){let a=s.getValue(),l=s.getOperator(),c;if(a&&l)switch(Mt(l.getText())){case"|=":c=`${gn.remove(Mt(a.getText()))}-\u2026`;break;case"^=":c=`${gn.remove(Mt(a.getText()))}\u2026`;break;case"$=":c=`\u2026${gn.remove(Mt(a.getText()))}`;break;case"~=":c=` \u2026 ${gn.remove(Mt(a.getText()))} \u2026 `;break;case"*=":c=`\u2026${gn.remove(Mt(a.getText()))}\u2026`;break;default:c=gn.remove(Mt(a.getText()));break}n.addAttr(Mt(o.getText()),c)}break}return n}function Mt(t){let e=new At;e.setSource(t);let n=e.scanUnquotedString();return n?n.text:t}var Yo=class{constructor(e){this.cssDataManager=e}selectorToMarkedString(e,n){let i=Iv(e);if(i){let r=new Xo('"').print(i,n);return r.push(this.selectorToSpecificityMarkedString(e)),r}else return[]}simpleSelectorToMarkedString(e){let n=hm(e),i=new Xo('"').print(n);return i.push(this.selectorToSpecificityMarkedString(e)),i}isPseudoElementIdentifier(e){let n=e.match(/^::?([\w-]+)/);return n?!!this.cssDataManager.getPseudoElement("::"+n[1]):!1}selectorToSpecificityMarkedString(e){let n=s=>{let o=new Br,a=new Br;for(let l of s)for(let c of l.getChildren()){let d=i(c);if(d.id>a.id){a=d;continue}else if(d.id<a.id)continue;if(d.attr>a.attr){a=d;continue}else if(d.attr<a.attr)continue;if(d.tag>a.tag){a=d;continue}}return o.id+=a.id,o.attr+=a.attr,o.tag+=a.tag,o},i=s=>{let o=new Br;e:for(let a of s.getChildren()){switch(a.type){case v.IdentifierSelector:o.id++;break;case v.ClassSelector:case v.AttributeSelector:o.attr++;break;case v.ElementNameSelector:if(a.matches("*"))break;o.tag++;break;case v.PseudoSelector:let l=a.getText(),c=a.getChildren();if(this.isPseudoElementIdentifier(l)){if(l.match(/^::slotted/i)&&c.length>0){o.tag++;let d=n(c);o.id+=d.id,o.attr+=d.attr,o.tag+=d.tag;continue e}o.tag++;continue e}if(l.match(/^:where/i))continue e;if(l.match(/^:(?:not|has|is)/i)&&c.length>0){let d=n(c);o.id+=d.id,o.attr+=d.attr,o.tag+=d.tag;continue e}if(l.match(/^:(?:host|host-context)/i)&&c.length>0){o.attr++;let d=n(c);o.id+=d.id,o.attr+=d.attr,o.tag+=d.tag;continue e}if(l.match(/^:(?:nth-child|nth-last-child)/i)&&c.length>0){o.attr++;let d=c[c.length-1];if(c.length>2&&d.type===v.SelectorList){let P=n(d.getChildren());o.id+=P.id,o.attr+=P.attr,o.tag+=P.tag;continue e}let p=new qn,b=c[1].getText();p.scanner.setSource(b);let y=p.scanner.scan(),M=p.scanner.scan();if(y.text==="n"||y.text==="-n"&&M.text==="of"){let P=[],$=b.slice(M.offset+2).split(",");for(let x of $){let N=p.internalParse(x,p._parseSelector);N&&P.push(N)}let F=n(P);o.id+=F.id,o.attr+=F.attr,o.tag+=F.tag;continue e}continue e}o.attr++;continue e}if(a.getChildren().length>0){let l=i(a);o.id+=l.id,o.attr+=l.attr,o.tag+=l.tag}}return o},r=i(e);return`[${dm.t("Selector Specificity")}](https://developer.mozilla.org/docs/Web/CSS/Specificity): (${r.id}, ${r.attr}, ${r.tag})`}},yd=class{constructor(e){this.prev=null,this.element=e}processSelector(e){let n=null;if(!(this.element instanceof $n)&&e.getChildren().some(i=>i.hasChildren()&&i.getChild(0).type===v.SelectorCombinator)){let i=this.element.findRoot();i.parent instanceof $n&&(n=this.element,this.element=i.parent,this.element.removeChild(i),this.prev=null)}for(let i of e.getChildren()){if(i instanceof Dt){if(this.prev instanceof Dt){let o=new Kr("\u2026");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 Kr("\u22EE"));let r=hm(i,n),s=r.findRoot();this.element.addChild(s),this.element=r}(i instanceof Dt||i.type===v.SelectorCombinatorParent||i.type===v.SelectorCombinatorShadowPiercingDescendant||i.type===v.SelectorCombinatorSibling||i.type===v.SelectorCombinatorAllSiblings)&&(this.prev=i)}}};function Tv(t){switch(t.type){case v.MixinDeclaration:case v.Stylesheet:return!0}return!1}function Iv(t){if(t.matches("@at-root"))return null;let e=new $n,n=[],i=t.getParent();if(i instanceof vt){let s=i.getParent();for(;s&&!Tv(s);){if(s instanceof vt){if(s.getSelectors().matches("@at-root"))break;n.push(s)}s=s.getParent()}}let r=new yd(e);for(let s=n.length-1;s>=0;s--){let o=n[s].getSelectors().getChild(0);o&&r.processSelector(o)}return r.processSelector(t),e}var Qo=class{constructor(e,n){this.clientCapabilities=e,this.cssDataManager=n,this.selectorPrinting=new Yo(n)}configure(e){this.defaultSettings=e}doHover(e,n,i,r=this.defaultSettings){function s(d){return ce.create(e.positionAt(d.offset),e.positionAt(d.end))}let o=e.offsetAt(n),a=Ui(i,o),l=null,c;for(let d=0;d<a.length;d++){let p=a[d];if(p instanceof zn){let b=/@media[^\{]+/g;c={isMedia:!0,text:p.getText().match(b)?.[0]}}if(p instanceof Ut){l={contents:this.selectorPrinting.selectorToMarkedString(p,c),range:s(p)};break}if(p instanceof Dt){ze(p.getText(),"@")||(l={contents:this.selectorPrinting.simpleSelectorToMarkedString(p),range:s(p)});break}if(p instanceof it){let b=p.getFullPropertyName(),y=this.cssDataManager.getProperty(b);if(y){let M=Zt(y,this.doesSupportMarkdown(),r);M?l={contents:M,range:s(p)}:l=null}continue}if(p instanceof ji){let b=p.getText(),y=this.cssDataManager.getAtDirective(b);if(y){let M=Zt(y,this.doesSupportMarkdown(),r);M?l={contents:M,range:s(p)}:l=null}continue}if(p instanceof ne&&p.type===v.PseudoSelector){let b=p.getText(),y=b.slice(0,2)==="::"?this.cssDataManager.getPseudoElement(b):this.cssDataManager.getPseudoClass(b);if(y){let M=Zt(y,this.doesSupportMarkdown(),r);M?l={contents:M,range:s(p)}:l=null}continue}}return l&&(l.contents=this.convertContents(l.contents)),l}convertContents(e){return this.doesSupportMarkdown()||typeof e=="string"?e:"kind"in e?{kind:"plaintext",value:e.value}:Array.isArray(e)?e.map(n=>typeof n=="string"?n:n.value):e.value}doesSupportMarkdown(){if(!ft(this.supportsMarkdown)){if(!ft(this.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;let e=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.hover;this.supportsMarkdown=e&&e.contentFormat&&Array.isArray(e.contentFormat)&&e.contentFormat.indexOf(bt.Markdown)!==-1}return this.supportsMarkdown}};var Gr=lt(Rt());var um=/^\w+:\/\//,pm=/^data:/,Jr=class{constructor(e,n){this.fileSystemProvider=e,this.resolveModuleReferences=n}configure(e){this.defaultSettings=e}findDefinition(e,n,i){let r=new li(i),s=e.offsetAt(n),o=Po(i,s);if(!o)return null;let a=r.findSymbolFromNode(o);return a?{uri:e.uri,range:bn(a.node,e)}:null}findReferences(e,n,i){return this.findDocumentHighlights(e,n,i).map(s=>({uri:e.uri,range:s.range}))}getHighlightNode(e,n,i){let r=e.offsetAt(n),s=Po(i,r);if(!(!s||s.type===v.Stylesheet||s.type===v.Declarations||s.type===v.ModuleConfig))return s.type===v.Identifier&&s.parent&&s.parent.type===v.ClassSelector&&(s=s.parent),s}findDocumentHighlights(e,n,i){let r=[],s=this.getHighlightNode(e,n,i);if(!s)return r;let o=new li(i),a=o.findSymbolFromNode(s),l=s.getText();return i.accept(c=>{if(a){if(o.matchesSymbol(c,a))return r.push({kind:fm(c),range:bn(c,e)}),!1}else s&&s.type===c.type&&c.matches(l)&&r.push({kind:fm(c),range:bn(c,e)});return!0}),r}isRawStringDocumentLinkNode(e){return e.type===v.Import}findDocumentLinks(e,n,i){let r=this.findUnresolvedLinks(e,n),s=[];for(let o of r){let a=o.link,l=a.target;if(!(!l||pm.test(l)))if(um.test(l))s.push(a);else{let c=i.resolveReference(l,e.uri);c&&(a.target=c),s.push(a)}}return s}async findDocumentLinks2(e,n,i){let r=this.findUnresolvedLinks(e,n),s=[];for(let o of r){let a=o.link,l=a.target;if(!(!l||pm.test(l)))if(um.test(l))s.push(a);else{let c=await this.resolveReference(l,e.uri,i,o.isRawLink);c!==void 0&&(a.target=c,s.push(a))}}return s}findUnresolvedLinks(e,n){let i=[],r=s=>{let o=s.getText(),a=bn(s,e);if(a.start.line===a.end.line&&a.start.character===a.end.character)return;(ze(o,"'")||ze(o,'"'))&&(o=o.slice(1,-1));let l=s.parent?this.isRawStringDocumentLinkNode(s.parent):!1;i.push({link:{target:o,range:a},isRawLink:l})};return n.accept(s=>{if(s.type===v.URILiteral){let o=s.getChild(0);return o&&r(o),!1}if(s.parent&&this.isRawStringDocumentLinkNode(s.parent)){let o=s.getText();return(ze(o,"'")||ze(o,'"'))&&r(s),!1}return!0}),i}findSymbolInformations(e,n){let i=[],r=(s,o,a)=>{let l=a instanceof ne?bn(a,e):a,c={name:s||Gr.t("<undefined>"),kind:o,location:oi.create(e.uri,l)};i.push(c)};return this.collectDocumentSymbols(e,n,r),i}findDocumentSymbols(e,n){let i=[],r=[],s=(o,a,l,c,d)=>{let p=l instanceof ne?bn(l,e):l,b=c instanceof ne?bn(c,e):c;(!b||!mm(p,b))&&(b=ce.create(p.start,p.start));let y={name:o||Gr.t("<undefined>"),kind:a,range:p,selectionRange:b},M=r.pop();for(;M&&!mm(M[1],p);)M=r.pop();if(M){let P=M[0];P.children||(P.children=[]),P.children.push(y),r.push(M)}else i.push(y);d&&r.push([y,bn(d,e)])};return this.collectDocumentSymbols(e,n,s),i}collectDocumentSymbols(e,n,i){n.accept(r=>{if(r instanceof vt){for(let s of r.getSelectors().getChildren())if(s instanceof Ut){let o=ce.create(e.positionAt(s.offset),e.positionAt(r.end));i(s.getText(),Bt.Class,o,s,r.getDeclarations())}}else if(r instanceof On)i(r.getName(),Bt.Variable,r,r.getVariable(),void 0);else if(r instanceof Wn)i(r.getName(),Bt.Method,r,r.getIdentifier(),r.getDeclarations());else if(r instanceof Pn)i(r.getName(),Bt.Function,r,r.getIdentifier(),r.getDeclarations());else if(r instanceof Pi){let s=Gr.t("@keyframes {0}",r.getName());i(s,Bt.Class,r,r.getIdentifier(),r.getDeclarations())}else if(r instanceof Ii){let s=Gr.t("@font-face");i(s,Bt.Class,r,void 0,r.getDeclarations())}else if(r instanceof zn){let s=r.getChild(0);if(s instanceof Ni){let o="@media "+s.getText();i(o,Bt.Module,r,s,r.getDeclarations())}}return!0})}findDocumentColors(e,n){let i=[];return n.accept(r=>{let s=Pv(r,e);return s&&i.push(s),!0}),i}getColorPresentations(e,n,i,r){let s=[],o=Math.round(i.red*255),a=Math.round(i.green*255),l=Math.round(i.blue*255),c;i.alpha===1?c=`rgb(${o}, ${a}, ${l})`:c=`rgba(${o}, ${a}, ${l}, ${i.alpha})`,s.push({label:c,textEdit:oe.replace(r,c)}),i.alpha===1?c=`#${ci(o)}${ci(a)}${ci(l)}`:c=`#${ci(o)}${ci(a)}${ci(l)}${ci(Math.round(i.alpha*255))}`,s.push({label:c,textEdit:oe.replace(r,c)});let d=Qc(i);d.a===1?c=`hsl(${d.h}, ${Math.round(d.s*100)}%, ${Math.round(d.l*100)}%)`:c=`hsla(${d.h}, ${Math.round(d.s*100)}%, ${Math.round(d.l*100)}%, ${d.a})`,s.push({label:c,textEdit:oe.replace(r,c)});let p=Yp(i);p.a===1?c=`hwb(${p.h} ${Math.round(p.w*100)}% ${Math.round(p.b*100)}%)`:c=`hwb(${p.h} ${Math.round(p.w*100)}% ${Math.round(p.b*100)}% / ${p.a})`,s.push({label:c,textEdit:oe.replace(r,c)});let b=Zc(i);b.alpha===1?c=`lab(${b.l}% ${b.a} ${b.b})`:c=`lab(${b.l}% ${b.a} ${b.b} / ${b.alpha})`,s.push({label:c,textEdit:oe.replace(r,c)});let y=Qp(i);return b.alpha===1?c=`lch(${y.l}% ${y.c} ${y.h})`:c=`lch(${y.l}% ${y.c} ${y.h} / ${y.alpha})`,s.push({label:c,textEdit:oe.replace(r,c)}),s}prepareRename(e,n,i){let r=this.getHighlightNode(e,n,i);if(r)return ce.create(e.positionAt(r.offset),e.positionAt(r.end))}doRename(e,n,i,r){let o=this.findDocumentHighlights(e,n,r).map(a=>oe.replace(a.range,i));return{changes:{[e.uri]:o}}}async resolveModuleReference(e,n,i){if(ze(n,"file://")){let r=gm(e);if(r&&r!=="."&&r!==".."){let s=i.resolveReference("/",n),o=$r(n),a=await this.resolvePathToModule(r,o,s);if(a){let l=e.substring(r.length+1);return mn(a,l)}}}}async mapReference(e,n){return e}async resolveReference(e,n,i,r=!1,s=this.defaultSettings){if(e[0]==="~"&&e[1]!=="/"&&this.fileSystemProvider)return e=e.substring(1),this.mapReference(await this.resolveModuleReference(e,n,i),r);let o=await this.mapReference(i.resolveReference(e,n),r);if(this.resolveModuleReferences){if(o&&await this.fileExists(o))return o;let a=await this.mapReference(await this.resolveModuleReference(e,n,i),r);if(a)return a}if(o&&!await this.fileExists(o)){let a=i.resolveReference("/",n);if(s&&a){if(e in s)return this.mapReference(mn(a,s[e]),r);let l=e.indexOf("/"),c=`${e.substring(0,l)}/`;if(c in s){let d=s[c].slice(0,-1),p=mn(a,d);return this.mapReference(p=mn(p,e.substring(c.length-1)),r)}}}return o}async resolvePathToModule(e,n,i){let r=mn(n,"node_modules",e,"package.json");if(await this.fileExists(r))return $r(r);if(i&&n.startsWith(i)&&n.length!==i.length)return this.resolvePathToModule(e,$r(n),i)}async fileExists(e){if(!this.fileSystemProvider)return!1;try{let n=await this.fileSystemProvider.stat(e);return!(n.type===ai.Unknown&&n.size===-1)}catch{return!1}}async getContent(e){if(!this.fileSystemProvider||!this.fileSystemProvider.getContent)return null;try{return await this.fileSystemProvider.getContent(e)}catch{return null}}};function Pv(t,e){let n=em(t);if(n){let i=bn(t,e);return{color:n,range:i}}return null}function bn(t,e){return ce.create(e.positionAt(t.offset),e.positionAt(t.end))}function mm(t,e){let n=e.start.line,i=e.end.line,r=t.start.line,s=t.end.line;return!(n<r||i<r||n>s||i>s||n===r&&e.start.character<t.start.character||i===s&&e.end.character>t.end.character)}function fm(t){if(t.type===v.Selector)return Ln.Write;if(t instanceof pt&&t.parent&&t.parent instanceof Tn&&t.isCustomProperty)return Ln.Write;if(t.parent)switch(t.parent.type){case v.FunctionDeclaration:case v.MixinDeclaration:case v.Keyframe:case v.VariableDeclaration:case v.FunctionParameter:return Ln.Write}return Ln.Read}function ci(t){let e=t.toString(16);return e.length!==2?"0"+e:e}function gm(t){let e=t.indexOf("/");if(e===-1)return"";if(t[0]==="@"){let n=t.indexOf("/",e+1);return n===-1?t:t.substring(0,n)}return t.substring(0,e)}var Be=lt(Rt()),Qi=rt.Warning,bm=rt.Error,Ht=rt.Ignore,He=class{constructor(e,n,i){this.id=e,this.message=n,this.defaultValue=i}},wd=class{constructor(e,n,i){this.id=e,this.message=n,this.defaultValue=i}},xe={AllVendorPrefixes:new He("compatibleVendorPrefixes",Be.t("When using a vendor-specific prefix make sure to also include all other vendor-specific properties"),Ht),IncludeStandardPropertyWhenUsingVendorPrefix:new He("vendorPrefix",Be.t("When using a vendor-specific prefix also include the standard property"),Qi),DuplicateDeclarations:new He("duplicateProperties",Be.t("Do not use duplicate style definitions"),Ht),EmptyRuleSet:new He("emptyRules",Be.t("Do not use empty rulesets"),Qi),ImportStatemement:new He("importStatement",Be.t("Import statements do not load in parallel"),Ht),BewareOfBoxModelSize:new He("boxModel",Be.t("Do not use width or height when using padding or border"),Ht),UniversalSelector:new He("universalSelector",Be.t("The universal selector (*) is known to be slow"),Ht),ZeroWithUnit:new He("zeroUnits",Be.t("No unit for zero needed"),Ht),RequiredPropertiesForFontFace:new He("fontFaceProperties",Be.t("@font-face rule must define 'src' and 'font-family' properties"),Qi),HexColorLength:new He("hexColorLength",Be.t("Hex colors must consist of three, four, six or eight hex numbers"),bm),ArgsInColorFunction:new He("argumentsInColorFunction",Be.t("Invalid number of parameters"),bm),UnknownProperty:new He("unknownProperties",Be.t("Unknown property."),Qi),UnknownAtRules:new He("unknownAtRules",Be.t("Unknown at-rule."),Qi),IEStarHack:new He("ieHack",Be.t("IE hacks are only necessary when supporting IE7 and older"),Ht),UnknownVendorSpecificProperty:new He("unknownVendorSpecificProperties",Be.t("Unknown vendor specific property."),Ht),PropertyIgnoredDueToDisplay:new He("propertyIgnoredDueToDisplay",Be.t("Property is ignored due to the display."),Qi),AvoidImportant:new He("important",Be.t("Avoid using !important. It is an indication that the specificity of the entire CSS has gotten out of control and needs to be refactored."),Ht),AvoidFloat:new He("float",Be.t("Avoid using 'float'. Floats lead to fragile CSS that is easy to break if one aspect of the layout changes."),Ht),AvoidIdSelector:new He("idSelector",Be.t("Selectors should not contain IDs because these rules are too tightly coupled with the HTML."),Ht)},ym={ValidProperties:new wd("validProperties",Be.t("A list of properties that are not validated against the `unknownProperties` rule."),[])},Zo=class{constructor(e={}){this.conf=e}getRule(e){if(this.conf.hasOwnProperty(e.id)){let n=zv(this.conf[e.id]);if(n)return n}return e.defaultValue}getSetting(e){return this.conf[e.id]}};function zv(t){switch(t){case"ignore":return rt.Ignore;case"warning":return rt.Warning;case"error":return rt.Error}return null}var wm=lt(Rt()),ea=class{constructor(e){this.cssDataManager=e}doCodeActions(e,n,i,r){return this.doCodeActions2(e,n,i,r).map(s=>{let o=s.edit&&s.edit.documentChanges&&s.edit.documentChanges[0];return un.create(s.title,"_css.applyCodeAction",e.uri,e.version,o&&o.edits)})}doCodeActions2(e,n,i,r){let s=[];if(i.diagnostics)for(let o of i.diagnostics)this.appendFixesForMarker(e,r,o,s);return s}getFixesForUnknownProperty(e,n,i,r){let s=n.getName(),o=[];this.cssDataManager.getProperties().forEach(l=>{let c=ep(s,l.name);c>=s.length/2&&o.push({property:l.name,score:c})}),o.sort((l,c)=>c.score-l.score||l.property.localeCompare(c.property));let a=3;for(let l of o){let c=l.property,d=wm.t("Rename to '{0}'",c),p=oe.replace(i.range,c),b=zr.create(e.uri,e.version),y={documentChanges:[Hi.create(b,[p])]},M=Wr.create(d,y,Or.QuickFix);if(M.diagnostics=[i],r.push(M),--a<=0)return}}appendFixesForMarker(e,n,i,r){if(i.code!==xe.UnknownProperty.id)return;let s=e.offsetAt(i.range.start),o=e.offsetAt(i.range.end),a=Ui(n,s);for(let l=a.length-1;l>=0;l--){let c=a[l];if(c instanceof it){let d=c.getProperty();if(d&&d.offset===s&&d.end===o){this.getFixesForUnknownProperty(e,d,i,r);return}}}}};var tn=lt(Rt());var ta=class{constructor(e){this.fullPropertyName=e.getFullPropertyName().toLowerCase(),this.node=e}};function Xr(t,e,n,i){let r=t[e];r.value=n,n&&(dd(r.properties,i)||r.properties.push(i))}function Nv(t,e,n){Xr(t,"top",e,n),Xr(t,"right",e,n),Xr(t,"bottom",e,n),Xr(t,"left",e,n)}function ot(t,e,n,i){e==="top"||e==="right"||e==="bottom"||e==="left"?Xr(t,e,n,i):Nv(t,n,i)}function vd(t,e,n){switch(e.length){case 1:ot(t,void 0,e[0],n);break;case 2:ot(t,"top",e[0],n),ot(t,"bottom",e[0],n),ot(t,"right",e[1],n),ot(t,"left",e[1],n);break;case 3:ot(t,"top",e[0],n),ot(t,"right",e[1],n),ot(t,"left",e[1],n),ot(t,"bottom",e[2],n);break;case 4:ot(t,"top",e[0],n),ot(t,"right",e[1],n),ot(t,"bottom",e[2],n),ot(t,"left",e[3],n);break}}function Sd(t,e){for(let n of e)if(t.matches(n))return!0;return!1}function Yr(t,e=!0){return e&&Sd(t,["initial","unset"])?!1:parseFloat(t.getText())!==0}function vm(t,e=!0){return t.map(n=>Yr(n,e))}function na(t,e=!0){return!(Sd(t,["none","hidden"])||e&&Sd(t,["initial","unset"]))}function Ov(t,e=!0){return t.map(n=>na(n,e))}function Wv(t){let e=t.getChildren();if(e.length===1){let n=e[0];return Yr(n)&&na(n)}for(let n of e){let i=n;if(!Yr(i,!1)||!na(i,!1))return!1}return!0}function _d(t){let e={top:{value:!1,properties:[]},right:{value:!1,properties:[]},bottom:{value:!1,properties:[]},left:{value:!1,properties:[]}};for(let n of t){let i=n.node.value;if(!(typeof i>"u"))switch(n.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=n;break;case"height":e.height=n;break;default:let r=n.fullPropertyName.split("-");switch(r[0]){case"border":switch(r[1]){case void 0:case"top":case"right":case"bottom":case"left":switch(r[2]){case void 0:ot(e,r[1],Wv(i),n);break;case"width":ot(e,r[1],Yr(i,!1),n);break;case"style":ot(e,r[1],na(i,!0),n);break}break;case"width":vd(e,vm(i.getChildren(),!1),n);break;case"style":vd(e,Ov(i.getChildren(),!0),n);break}break;case"padding":r.length===1?vd(e,vm(i.getChildren(),!0),n):ot(e,r[1],Yr(i,!0),n);break}break}}return e}var ia=class{constructor(){this.data={}}add(e,n,i){let r=this.data[e];r||(r={nodes:[],names:[]},this.data[e]=r),r.names.push(n),i&&r.nodes.push(i)}},Qr=class t{static entries(e,n,i,r,s){let o=new t(n,i,r);return e.acceptVisitor(o),o.completeValidations(),o.getEntries(s)}constructor(e,n,i){this.cssDataManager=i,this.warnings=[],this.settings=n,this.documentText=e.getText(),this.keyframes=new ia,this.validProperties={};let r=n.getSetting(ym.ValidProperties);Array.isArray(r)&&r.forEach(s=>{if(typeof s=="string"){let o=s.trim().toLowerCase();o.length&&(this.validProperties[o]=!0)}})}isValidPropertyDeclaration(e){let n=e.fullPropertyName;return this.validProperties[n]}fetch(e,n){let i=[];for(let r of e)r.fullPropertyName===n&&i.push(r);return i}fetchWithValue(e,n,i){let r=[];for(let s of e)if(s.fullPropertyName===n){let o=s.node.getValue();o&&this.findValueInExpression(o,i)&&r.push(s)}return r}findValueInExpression(e,n){let i=!1;return e.accept(r=>(r.type===v.Identifier&&r.matches(n)&&(i=!0),!i)),i}getEntries(e=rt.Warning|rt.Error){return this.warnings.filter(n=>(n.getLevel()&e)!==0)}addEntry(e,n,i){let r=new $i(e,n,this.settings.getRule(n),i);this.warnings.push(r)}getMissingNames(e,n){let i=e.slice(0);for(let s=0;s<n.length;s++){let o=i.indexOf(n[s]);o!==-1&&(i[o]=null)}let r=null;for(let s=0;s<i.length;s++){let o=i[s];o&&(r===null?r=tn.t("'{0}'",o):r=tn.t("{0}, '{1}'",r,o))}return r}visitNode(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}completeValidations(){this.validateKeyframes()}visitUnknownAtRule(e){let n=e.getChild(0);return!n||this.cssDataManager.getAtDirective(n.getText())?!1:(this.addEntry(n,xe.UnknownAtRules,`Unknown at rule ${n.getText()}`),!0)}visitKeyframe(e){let n=e.getKeyword();if(!n)return!1;let i=n.getText();return this.keyframes.add(e.getName(),i,i!=="@keyframes"?n:null),!0}validateKeyframes(){let e=["@-webkit-keyframes","@-moz-keyframes","@-o-keyframes"];for(let n in this.keyframes.data){let i=this.keyframes.data[n].names,r=i.indexOf("@keyframes")===-1;if(!r&&i.length===1)continue;let s=this.getMissingNames(e,i);if(s||r)for(let o of this.keyframes.data[n].nodes){if(r){let a=tn.t("Always define standard rule '@keyframes' when defining keyframes.");this.addEntry(o,xe.IncludeStandardPropertyWhenUsingVendorPrefix,a)}if(s){let a=tn.t("Always include all vendor specific rules: Missing: {0}",s);this.addEntry(o,xe.AllVendorPrefixes,a)}}}return!0}visitSimpleSelector(e){let n=this.documentText.charAt(e.offset);return e.length===1&&n==="*"&&this.addEntry(e,xe.UniversalSelector),!0}visitIdentifierSelector(e){return this.addEntry(e,xe.AvoidIdSelector),!0}visitImport(e){return this.addEntry(e,xe.ImportStatemement),!0}visitRuleSet(e){let n=e.getDeclarations();if(!n)return!1;n.hasChildren()||this.addEntry(e.getSelectors(),xe.EmptyRuleSet);let i=[];for(let l of n.getChildren())l instanceof it&&i.push(new ta(l));let r=_d(i);if(r.width){let l=[];if(r.right.value&&(l=jr(l,r.right.properties)),r.left.value&&(l=jr(l,r.left.properties)),l.length!==0){for(let c of l)this.addEntry(c.node,xe.BewareOfBoxModelSize);this.addEntry(r.width.node,xe.BewareOfBoxModelSize)}}if(r.height){let l=[];if(r.top.value&&(l=jr(l,r.top.properties)),r.bottom.value&&(l=jr(l,r.bottom.properties)),l.length!==0){for(let c of l)this.addEntry(c.node,xe.BewareOfBoxModelSize);this.addEntry(r.height.node,xe.BewareOfBoxModelSize)}}let s=this.fetchWithValue(i,"display","inline-block");if(s.length>0){let l=this.fetch(i,"float");for(let c=0;c<l.length;c++){let d=l[c].node,p=d.getValue();p&&!p.matches("none")&&this.addEntry(d,xe.PropertyIgnoredDueToDisplay,tn.t("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(s=this.fetchWithValue(i,"display","block"),s.length>0){let l=this.fetch(i,"vertical-align");for(let c=0;c<l.length;c++)this.addEntry(l[c].node,xe.PropertyIgnoredDueToDisplay,tn.t("Property is ignored due to the display. With 'display: block', vertical-align should not be used."))}let o=this.fetch(i,"float");for(let l=0;l<o.length;l++){let c=o[l];this.isValidPropertyDeclaration(c)||this.addEntry(c.node,xe.AvoidFloat)}for(let l=0;l<i.length;l++){let c=i[l];if(c.fullPropertyName!=="background"&&!this.validProperties[c.fullPropertyName]){let d=c.node.getValue();if(d&&this.documentText.charAt(d.offset)!=="-"){let p=this.fetch(i,c.fullPropertyName);if(p.length>1)for(let b=0;b<p.length;b++){let y=p[b].node.getValue();y&&this.documentText.charAt(y.offset)!=="-"&&p[b]!==c&&this.addEntry(c.node,xe.DuplicateDeclarations)}}}}if(!e.getSelectors().matches(":export")){let l=new ia,c=!1;for(let d of i){let p=d.node;if(this.isCSSDeclaration(p)){let b=d.fullPropertyName,y=b.charAt(0);if(y==="-"){if(b.charAt(1)!=="-"){!this.cssDataManager.isKnownProperty(b)&&!this.validProperties[b]&&this.addEntry(p.getProperty(),xe.UnknownVendorSpecificProperty);let M=p.getNonPrefixedPropertyName();l.add(M,b,p.getProperty())}}else{let M=b;(y==="*"||y==="_")&&(this.addEntry(p.getProperty(),xe.IEStarHack),b=b.substr(1)),!this.cssDataManager.isKnownProperty(M)&&!this.cssDataManager.isKnownProperty(b)&&(this.validProperties[b]||this.addEntry(p.getProperty(),xe.UnknownProperty,tn.t("Unknown property: '{0}'",p.getFullPropertyName()))),l.add(b,b,null)}}else c=!0}if(!c)for(let d in l.data){let p=l.data[d],b=p.names,y=this.cssDataManager.isStandardProperty(d)&&b.indexOf(d)===-1;if(!y&&b.length===1)continue;let M=new Set(y?p.nodes:[]);if(y){let $=this.getContextualVendorSpecificPseudoElements(e);for(let F of p.nodes){let x=F.getName(),N=x.substring(0,x.length-d.length);$.some(R=>R.startsWith(N))&&M.delete(F)}}let P=[];for(let $=0,F=t.prefixes.length;$<F;$++){let x=t.prefixes[$];this.cssDataManager.isStandardProperty(x+d)&&P.push(x+d)}let Z=this.getMissingNames(P,b);if(Z||y)for(let $ of p.nodes){if(y&&M.has($)){let F=tn.t("Also define the standard property '{0}' for compatibility",d);this.addEntry($,xe.IncludeStandardPropertyWhenUsingVendorPrefix,F)}if(Z){let F=tn.t("Always include all vendor specific properties: Missing: {0}",Z);this.addEntry($,xe.AllVendorPrefixes,F)}}}}return!0}getContextualVendorSpecificPseudoElements(e){function n(s,o){for(let a of o.getChildren()){if(a.type===v.PseudoSelector){let l=a.getChildren()[0]?.getText();l&&s.add(l)}n(s,a)}}function i(s,o){if(o.type===v.Ruleset)for(let a of o.getSelectors().getChildren())n(s,a);return o.parent?i(s,o.parent):void 0}let r=new Set;return i(r,e),Array.from(r)}visitPrio(e){return this.addEntry(e,xe.AvoidImportant),!0}visitNumericValue(e){let n=e.findParent(v.Function);if(n&&n.getName()==="calc")return!0;let i=e.findParent(v.Declaration);if(i&&i.getValue()){let s=e.getValue();if(!s.unit||Vo.length.indexOf(s.unit.toLowerCase())===-1)return!0;parseFloat(s.value)===0&&s.unit&&!this.validProperties[i.getFullPropertyName()]&&this.addEntry(e,xe.ZeroWithUnit)}return!0}visitFontFace(e){let n=e.getDeclarations();if(!n)return!1;let i=!1,r=!1,s=!1;for(let o of n.getChildren())if(this.isCSSDeclaration(o)){let a=o.getProperty().getName().toLowerCase();a==="src"&&(i=!0),a==="font-family"&&(r=!0)}else s=!0;return!s&&(!i||!r)&&this.addEntry(e,xe.RequiredPropertiesForFontFace),!0}isCSSDeclaration(e){if(e instanceof it){if(!e.getValue())return!1;let n=e.getProperty();if(!n)return!1;let i=n.getIdentifier();return!(!i||i.containsInterpolation())}return!1}visitHexColorValue(e){let n=e.length;return n!==9&&n!==7&&n!==5&&n!==4&&this.addEntry(e,xe.HexColorLength),!1}visitFunction(e){let n=e.getName().toLowerCase(),i=-1,r=0;switch(n){case"rgb(":case"hsl(":i=3;break;case"rgba(":case"hsla(":i=4;break}return i!==-1&&(e.getArguments().accept(s=>s instanceof Nn?(r+=1,!1):!0),r!==i&&this.addEntry(e,xe.ArgsInColorFunction)),!0}};Qr.prefixes=["-ms-","-moz-","-o-","-webkit-"];var ra=class{constructor(e){this.cssDataManager=e}configure(e){this.settings=e}doValidation(e,n,i=this.settings){if(i&&i.validate===!1)return[];let r=[];r.push.apply(r,Io.entries(n)),r.push.apply(r,Qr.entries(n,e,new Zo(i&&i.lint),this.cssDataManager));let s=[];for(let a in xe)s.push(xe[a].id);function o(a){let l=ce.create(e.positionAt(a.getOffset()),e.positionAt(a.getOffset()+a.getLength())),c=e.languageId;return{code:a.getRule().id,source:c,message:a.getMessage(),severity:a.getLevel()===rt.Warning?Vi.Warning:Vi.Error,range:l}}return r.filter(a=>a.getLevel()!==rt.Ignore).map(o)}};var Sm=47,Lv=10,qv=13,jv=12,$v=36,Uv=35,Vv=123,Zr=61,Bv=33,Hv=60,Kv=62,xd=46;var yn=g.CustomToken,_m=yn++,sa=yn++,XS=yn++,xm=yn++,Cm=yn++,Fm=yn++,km=yn++,Am=yn++,YS=yn++,es=class extends At{scanNext(e){if(this.stream.advanceIfChar($v)){let n=["$"];if(this.ident(n))return this.finishToken(e,_m,n.join(""));this.stream.goBackTo(e)}return this.stream.advanceIfChars([Uv,Vv])?this.finishToken(e,sa):this.stream.advanceIfChars([Zr,Zr])?this.finishToken(e,xm):this.stream.advanceIfChars([Bv,Zr])?this.finishToken(e,Cm):this.stream.advanceIfChar(Hv)?this.stream.advanceIfChar(Zr)?this.finishToken(e,km):this.finishToken(e,g.Delim):this.stream.advanceIfChar(Kv)?this.stream.advanceIfChar(Zr)?this.finishToken(e,Fm):this.finishToken(e,g.Delim):this.stream.advanceIfChars([xd,xd,xd])?this.finishToken(e,Am):super.scanNext(e)}comment(){return super.comment()?!0:!this.inURL&&this.stream.advanceIfChars([Sm,Sm])?(this.stream.advanceWhileChar(e=>{switch(e){case Lv:case qv:case jv:return!1;default:return!0}}),!0):!1}};var oa=lt(Rt()),ts=class{constructor(e,n){this.id=e,this.message=n}},Jv={FromExpected:new ts("scss-fromexpected",oa.t("'from' expected")),ThroughOrToExpected:new ts("scss-throughexpected",oa.t("'through' or 'to' expected")),InExpected:new ts("scss-fromexpected",oa.t("'in' expected"))};var q=lt(Rt()),wn=q.t("Sass documentation"),nn=class t extends jn{constructor(e,n){super("$",e,n),Em(t.scssModuleLoaders),Em(t.scssModuleBuiltIns)}isImportPathParent(e){return e===v.Forward||e===v.Use||super.isImportPathParent(e)}getCompletionForImportPath(e,n){let i=e.getParent().type;if(i===v.Forward||i===v.Use)for(let r of t.scssModuleBuiltIns){let s={label:r.label,documentation:r.documentation,textEdit:oe.replace(this.getCompletionRange(e),`'${r.label}'`),kind:re.Module};n.items.push(s)}return super.getCompletionForImportPath(e,n)}createReplaceFunction(){let e=1;return(n,i)=>"\\"+i+": ${"+e+++":"+(t.variableDefaults[i]||"")+"}"}createFunctionProposals(e,n,i,r){for(let s of e){let o=s.func.replace(/\[?(\$\w+)\]?/g,this.createReplaceFunction()),l={label:s.func.substr(0,s.func.indexOf("(")),detail:s.func,documentation:s.desc,textEdit:oe.replace(this.getCompletionRange(n),o),insertTextFormat:st.Snippet,kind:re.Function};i&&(l.sortText="z"),r.items.push(l)}return r}getCompletionsForSelector(e,n,i){return this.createFunctionProposals(t.selectorFuncs,null,!0,i),super.getCompletionsForSelector(e,n,i)}getTermProposals(e,n,i){let r=t.builtInFuncs;return e&&(r=r.filter(s=>!s.type||!e.restrictions||e.restrictions.indexOf(s.type)!==-1)),this.createFunctionProposals(r,n,!0,i),super.getTermProposals(e,n,i)}getColorProposals(e,n,i){return this.createFunctionProposals(t.colorProposals,n,!1,i),super.getColorProposals(e,n,i)}getCompletionsForDeclarationProperty(e,n){return this.getCompletionForAtDirectives(n),this.getCompletionsForSelector(null,!0,n),super.getCompletionsForDeclarationProperty(e,n)}getCompletionsForExtendsReference(e,n,i){let r=this.getSymbolContext().findSymbolsAtOffset(this.offset,Ce.Rule);for(let s of r){let o={label:s.name,textEdit:oe.replace(this.getCompletionRange(n),s.name),kind:re.Function};i.items.push(o)}return i}getCompletionForAtDirectives(e){return e.items.push(...t.scssAtDirectives),e}getCompletionForTopLevel(e){return this.getCompletionForAtDirectives(e),this.getCompletionForModuleLoaders(e),super.getCompletionForTopLevel(e),e}getCompletionForModuleLoaders(e){return e.items.push(...t.scssModuleLoaders),e}};nn.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"};nn.colorProposals=[{func:"red($color)",desc:q.t("Gets the red component of a color.")},{func:"green($color)",desc:q.t("Gets the green component of a color.")},{func:"blue($color)",desc:q.t("Gets the blue component of a color.")},{func:"mix($color, $color, [$weight])",desc:q.t("Mixes two colors together.")},{func:"hue($color)",desc:q.t("Gets the hue component of a color.")},{func:"saturation($color)",desc:q.t("Gets the saturation component of a color.")},{func:"lightness($color)",desc:q.t("Gets the lightness component of a color.")},{func:"adjust-hue($color, $degrees)",desc:q.t("Changes the hue of a color.")},{func:"lighten($color, $amount)",desc:q.t("Makes a color lighter.")},{func:"darken($color, $amount)",desc:q.t("Makes a color darker.")},{func:"saturate($color, $amount)",desc:q.t("Makes a color more saturated.")},{func:"desaturate($color, $amount)",desc:q.t("Makes a color less saturated.")},{func:"grayscale($color)",desc:q.t("Converts a color to grayscale.")},{func:"complement($color)",desc:q.t("Returns the complement of a color.")},{func:"invert($color)",desc:q.t("Returns the inverse of a color.")},{func:"alpha($color)",desc:q.t("Gets the opacity component of a color.")},{func:"opacity($color)",desc:"Gets the alpha component (opacity) of a color."},{func:"rgba($color, $alpha)",desc:q.t("Changes the alpha component for a color.")},{func:"opacify($color, $amount)",desc:q.t("Makes a color more opaque.")},{func:"fade-in($color, $amount)",desc:q.t("Makes a color more opaque.")},{func:"transparentize($color, $amount)",desc:q.t("Makes a color more transparent.")},{func:"fade-out($color, $amount)",desc:q.t("Makes a color more transparent.")},{func:"adjust-color($color, [$red], [$green], [$blue], [$hue], [$saturation], [$lightness], [$alpha])",desc:q.t("Increases or decreases one or more components of a color.")},{func:"scale-color($color, [$red], [$green], [$blue], [$saturation], [$lightness], [$alpha])",desc:q.t("Fluidly scales one or more properties of a color.")},{func:"change-color($color, [$red], [$green], [$blue], [$hue], [$saturation], [$lightness], [$alpha])",desc:q.t("Changes one or more properties of a color.")},{func:"ie-hex-str($color)",desc:q.t("Converts a color into the format understood by IE filters.")}];nn.selectorFuncs=[{func:"selector-nest($selectors\u2026)",desc:q.t("Nests selector beneath one another like they would be nested in the stylesheet.")},{func:"selector-append($selectors\u2026)",desc:q.t("Appends selectors to one another without spaces in between.")},{func:"selector-extend($selector, $extendee, $extender)",desc:q.t("Extends $extendee with $extender within $selector.")},{func:"selector-replace($selector, $original, $replacement)",desc:q.t("Replaces $original with $replacement within $selector.")},{func:"selector-unify($selector1, $selector2)",desc:q.t("Unifies two selectors to produce a selector that matches elements matched by both.")},{func:"is-superselector($super, $sub)",desc:q.t("Returns whether $super matches all the elements $sub does, and possibly more.")},{func:"simple-selectors($selector)",desc:q.t("Returns the simple selectors that comprise a compound selector.")},{func:"selector-parse($selector)",desc:q.t("Parses a selector into the format returned by &.")}];nn.builtInFuncs=[{func:"unquote($string)",desc:q.t("Removes quotes from a string.")},{func:"quote($string)",desc:q.t("Adds quotes to a string.")},{func:"str-length($string)",desc:q.t("Returns the number of characters in a string.")},{func:"str-insert($string, $insert, $index)",desc:q.t("Inserts $insert into $string at $index.")},{func:"str-index($string, $substring)",desc:q.t("Returns the index of the first occurance of $substring in $string.")},{func:"str-slice($string, $start-at, [$end-at])",desc:q.t("Extracts a substring from $string.")},{func:"to-upper-case($string)",desc:q.t("Converts a string to upper case.")},{func:"to-lower-case($string)",desc:q.t("Converts a string to lower case.")},{func:"percentage($number)",desc:q.t("Converts a unitless number to a percentage."),type:"percentage"},{func:"round($number)",desc:q.t("Rounds a number to the nearest whole number.")},{func:"ceil($number)",desc:q.t("Rounds a number up to the next whole number.")},{func:"floor($number)",desc:q.t("Rounds a number down to the previous whole number.")},{func:"abs($number)",desc:q.t("Returns the absolute value of a number.")},{func:"min($numbers)",desc:q.t("Finds the minimum of several numbers.")},{func:"max($numbers)",desc:q.t("Finds the maximum of several numbers.")},{func:"random([$limit])",desc:q.t("Returns a random number.")},{func:"length($list)",desc:q.t("Returns the length of a list.")},{func:"nth($list, $n)",desc:q.t("Returns a specific item in a list.")},{func:"set-nth($list, $n, $value)",desc:q.t("Replaces the nth item in a list.")},{func:"join($list1, $list2, [$separator])",desc:q.t("Joins together two lists into one.")},{func:"append($list1, $val, [$separator])",desc:q.t("Appends a single value onto the end of a list.")},{func:"zip($lists)",desc:q.t("Combines several lists into a single multidimensional list.")},{func:"index($list, $value)",desc:q.t("Returns the position of a value within a list.")},{func:"list-separator(#list)",desc:q.t("Returns the separator of a list.")},{func:"map-get($map, $key)",desc:q.t("Returns the value in a map associated with a given key.")},{func:"map-merge($map1, $map2)",desc:q.t("Merges two maps together into a new map.")},{func:"map-remove($map, $keys)",desc:q.t("Returns a new map with keys removed.")},{func:"map-keys($map)",desc:q.t("Returns a list of all keys in a map.")},{func:"map-values($map)",desc:q.t("Returns a list of all values in a map.")},{func:"map-has-key($map, $key)",desc:q.t("Returns whether a map has a value associated with a given key.")},{func:"keywords($args)",desc:q.t("Returns the keywords passed to a function that takes variable arguments.")},{func:"feature-exists($feature)",desc:q.t("Returns whether a feature exists in the current Sass runtime.")},{func:"variable-exists($name)",desc:q.t("Returns whether a variable with the given name exists in the current scope.")},{func:"global-variable-exists($name)",desc:q.t("Returns whether a variable with the given name exists in the global scope.")},{func:"function-exists($name)",desc:q.t("Returns whether a function with the given name exists.")},{func:"mixin-exists($name)",desc:q.t("Returns whether a mixin with the given name exists.")},{func:"inspect($value)",desc:q.t("Returns the string representation of a value as it would be represented in Sass.")},{func:"type-of($value)",desc:q.t("Returns the type of a value.")},{func:"unit($number)",desc:q.t("Returns the unit(s) associated with a number.")},{func:"unitless($number)",desc:q.t("Returns whether a number has units.")},{func:"comparable($number1, $number2)",desc:q.t("Returns whether two numbers can be added, subtracted, or compared.")},{func:"call($name, $args\u2026)",desc:q.t("Dynamically calls a Sass function.")}];nn.scssAtDirectives=[{label:"@extend",documentation:q.t("Inherits the styles of another selector."),kind:re.Keyword},{label:"@at-root",documentation:q.t("Causes one or more rules to be emitted at the root of the document."),kind:re.Keyword},{label:"@debug",documentation:q.t("Prints the value of an expression to the standard error output stream. Useful for debugging complicated Sass files."),kind:re.Keyword},{label:"@warn",documentation:q.t("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:re.Keyword},{label:"@error",documentation:q.t("Throws the value of an expression as a fatal error with stack trace. Useful for validating arguments to mixins and functions."),kind:re.Keyword},{label:"@if",documentation:q.t("Includes the body if the expression does not evaluate to `false` or `null`."),insertText:`@if \${1:expr} {
|
59
59
|
$0
|
60
|
-
}`,insertTextFormat:st.Snippet,kind:
|
60
|
+
}`,insertTextFormat:st.Snippet,kind:re.Keyword},{label:"@for",documentation:q.t("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:st.Snippet,kind:re.Keyword},{label:"@each",documentation:q.t("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:st.Snippet,kind:re.Keyword},{label:"@while",documentation:q.t("While loop that takes an expression and repeatedly outputs the nested styles until the statement evaluates to `false`."),insertText:`@while \${1:condition} {
|
61
61
|
$0
|
62
|
-
}`,insertTextFormat:st.Snippet,kind:
|
62
|
+
}`,insertTextFormat:st.Snippet,kind:re.Keyword},{label:"@mixin",documentation:q.t("Defines styles that can be re-used throughout the stylesheet with `@include`."),insertText:`@mixin \${1:name} {
|
63
63
|
$0
|
64
|
-
}`,insertTextFormat:st.Snippet,kind:
|
64
|
+
}`,insertTextFormat:st.Snippet,kind:re.Keyword},{label:"@include",documentation:q.t("Includes the styles defined by another mixin into the current rule."),kind:re.Keyword},{label:"@function",documentation:q.t("Defines complex operations that can be re-used throughout stylesheets."),kind:re.Keyword}];nn.scssModuleLoaders=[{label:"@use",documentation:q.t("Loads mixins, functions, and variables from other Sass stylesheets as 'modules', and combines CSS from multiple stylesheets together."),references:[{name:wn,url:"https://sass-lang.com/documentation/at-rules/use"}],insertText:"@use $0;",insertTextFormat:st.Snippet,kind:re.Keyword},{label:"@forward",documentation:q.t("Loads a Sass stylesheet and makes its mixins, functions, and variables available when this stylesheet is loaded with the @use rule."),references:[{name:wn,url:"https://sass-lang.com/documentation/at-rules/forward"}],insertText:"@forward $0;",insertTextFormat:st.Snippet,kind:re.Keyword}];nn.scssModuleBuiltIns=[{label:"sass:math",documentation:q.t("Provides functions that operate on numbers."),references:[{name:wn,url:"https://sass-lang.com/documentation/modules/math"}]},{label:"sass:string",documentation:q.t("Makes it easy to combine, search, or split apart strings."),references:[{name:wn,url:"https://sass-lang.com/documentation/modules/string"}]},{label:"sass:color",documentation:q.t("Generates new colors based on existing ones, making it easy to build color themes."),references:[{name:wn,url:"https://sass-lang.com/documentation/modules/color"}]},{label:"sass:list",documentation:q.t("Lets you access and modify values in lists."),references:[{name:wn,url:"https://sass-lang.com/documentation/modules/list"}]},{label:"sass:map",documentation:q.t("Makes it possible to look up the value associated with a key in a map, and much more."),references:[{name:wn,url:"https://sass-lang.com/documentation/modules/map"}]},{label:"sass:selector",documentation:q.t("Provides access to Sass\u2019s powerful selector engine."),references:[{name:wn,url:"https://sass-lang.com/documentation/modules/selector"}]},{label:"sass:meta",documentation:q.t("Exposes the details of Sass\u2019s inner workings."),references:[{name:wn,url:"https://sass-lang.com/documentation/modules/meta"}]}];function Em(t){t.forEach(e=>{if(e.documentation&&e.references&&e.references.length>0){let n=typeof e.documentation=="string"?{kind:"markdown",value:e.documentation}:{kind:"markdown",value:e.documentation.value};n.value+=`
|
65
65
|
|
66
|
-
`,n.value+=e.references.map(i=>`[${i.name}](${i.url})`).join(" | "),e.documentation=n}})}var Dm=47,Xv=10,Yv=13,Qv=12,Cd=96,Fd=46,Zv=g.CustomToken,Rm=Zv++,ns=class extends At{scanNext(e){let n=this.escapedJavaScript();return n!==null?this.finishToken(e,n):this.stream.advanceIfChars([Fd,Fd,Fd])?this.finishToken(e,Rm):super.scanNext(e)}comment(){return super.comment()?!0:!this.inURL&&this.stream.advanceIfChars([Dm,Dm])?(this.stream.advanceWhileChar(e=>{switch(e){case Xv:case Yv:case Qv:return!1;default:return!0}}),!0):!1}escapedJavaScript(){return this.stream.peekChar()===Cd?(this.stream.advance(1),this.stream.advanceWhileChar(n=>n!==Cd),this.stream.advanceIfChar(Cd)?g.EscapedJavaScript:g.BadEscapedJavaScript):null}};var re=lt(Rt()),is=class t extends jn{constructor(e,n){super("@",e,n)}createFunctionProposals(e,n,i,r){for(let s of e){let o={label:s.name,detail:s.example,documentation:s.description,textEdit:se.replace(this.getCompletionRange(n),s.name+"($0)"),insertTextFormat:st.Snippet,kind:ie.Function};i&&(o.sortText="z"),r.items.push(o)}return r}getTermProposals(e,n,i){let r=t.builtInProposals;return e&&(r=r.filter(s=>!s.type||!e.restrictions||e.restrictions.indexOf(s.type)!==-1)),this.createFunctionProposals(r,n,!0,i),super.getTermProposals(e,n,i)}getColorProposals(e,n,i){return this.createFunctionProposals(t.colorProposals,n,!1,i),super.getColorProposals(e,n,i)}getCompletionsForDeclarationProperty(e,n){return this.getCompletionsForSelector(null,!0,n),super.getCompletionsForDeclarationProperty(e,n)}};is.builtInProposals=[{name:"if",example:"if(condition, trueValue [, falseValue]);",description:re.t("returns one of two values depending on a condition.")},{name:"boolean",example:"boolean(condition);",description:re.t('"store" a boolean test for later evaluation in a guard or if().')},{name:"length",example:"length(@list);",description:re.t("returns the number of elements in a value list")},{name:"extract",example:"extract(@list, index);",description:re.t("returns a value at the specified position in the list")},{name:"range",example:"range([start, ] end [, step]);",description:re.t("generate a list spanning a range of values")},{name:"each",example:"each(@list, ruleset);",description:re.t("bind the evaluation of a ruleset to each member of a list.")},{name:"escape",example:"escape(@string);",description:re.t("URL encodes a string")},{name:"e",example:"e(@string);",description:re.t("escape string content")},{name:"replace",example:"replace(@string, @pattern, @replacement[, @flags]);",description:re.t("string replace")},{name:"unit",example:"unit(@dimension, [@unit: '']);",description:re.t("remove or change the unit of a dimension")},{name:"color",example:"color(@string);",description:re.t("parses a string to a color"),type:"color"},{name:"convert",example:"convert(@value, unit);",description:re.t("converts numbers from one type into another")},{name:"data-uri",example:"data-uri([mimetype,] url);",description:re.t("inlines a resource and falls back to `url()`"),type:"url"},{name:"abs",description:re.t("absolute value of a number"),example:"abs(number);"},{name:"acos",description:re.t("arccosine - inverse of cosine function"),example:"acos(number);"},{name:"asin",description:re.t("arcsine - inverse of sine function"),example:"asin(number);"},{name:"ceil",example:"ceil(@number);",description:re.t("rounds up to an integer")},{name:"cos",description:re.t("cosine function"),example:"cos(number);"},{name:"floor",description:re.t("rounds down to an integer"),example:"floor(@number);"},{name:"percentage",description:re.t("converts to a %, e.g. 0.5 > 50%"),example:"percentage(@number);",type:"percentage"},{name:"round",description:re.t("rounds a number to a number of places"),example:"round(number, [places: 0]);"},{name:"sqrt",description:re.t("calculates square root of a number"),example:"sqrt(number);"},{name:"sin",description:re.t("sine function"),example:"sin(number);"},{name:"tan",description:re.t("tangent function"),example:"tan(number);"},{name:"atan",description:re.t("arctangent - inverse of tangent function"),example:"atan(number);"},{name:"pi",description:re.t("returns pi"),example:"pi();"},{name:"pow",description:re.t("first argument raised to the power of the second argument"),example:"pow(@base, @exponent);"},{name:"mod",description:re.t("first argument modulus second argument"),example:"mod(number, number);"},{name:"min",description:re.t("returns the lowest of one or more values"),example:"min(@x, @y);"},{name:"max",description:re.t("returns the lowest of one or more values"),example:"max(@x, @y);"}];is.colorProposals=[{name:"argb",example:"argb(@color);",description:re.t("creates a #AARRGGBB")},{name:"hsl",example:"hsl(@hue, @saturation, @lightness);",description:re.t("creates a color")},{name:"hsla",example:"hsla(@hue, @saturation, @lightness, @alpha);",description:re.t("creates a color")},{name:"hsv",example:"hsv(@hue, @saturation, @value);",description:re.t("creates a color")},{name:"hsva",example:"hsva(@hue, @saturation, @value, @alpha);",description:re.t("creates a color")},{name:"hue",example:"hue(@color);",description:re.t("returns the `hue` channel of `@color` in the HSL space")},{name:"saturation",example:"saturation(@color);",description:re.t("returns the `saturation` channel of `@color` in the HSL space")},{name:"lightness",example:"lightness(@color);",description:re.t("returns the `lightness` channel of `@color` in the HSL space")},{name:"hsvhue",example:"hsvhue(@color);",description:re.t("returns the `hue` channel of `@color` in the HSV space")},{name:"hsvsaturation",example:"hsvsaturation(@color);",description:re.t("returns the `saturation` channel of `@color` in the HSV space")},{name:"hsvvalue",example:"hsvvalue(@color);",description:re.t("returns the `value` channel of `@color` in the HSV space")},{name:"red",example:"red(@color);",description:re.t("returns the `red` channel of `@color`")},{name:"green",example:"green(@color);",description:re.t("returns the `green` channel of `@color`")},{name:"blue",example:"blue(@color);",description:re.t("returns the `blue` channel of `@color`")},{name:"alpha",example:"alpha(@color);",description:re.t("returns the `alpha` channel of `@color`")},{name:"luma",example:"luma(@color);",description:re.t("returns the `luma` value (perceptual brightness) of `@color`")},{name:"saturate",example:"saturate(@color, 10%);",description:re.t("return `@color` 10% points more saturated")},{name:"desaturate",example:"desaturate(@color, 10%);",description:re.t("return `@color` 10% points less saturated")},{name:"lighten",example:"lighten(@color, 10%);",description:re.t("return `@color` 10% points lighter")},{name:"darken",example:"darken(@color, 10%);",description:re.t("return `@color` 10% points darker")},{name:"fadein",example:"fadein(@color, 10%);",description:re.t("return `@color` 10% points less transparent")},{name:"fadeout",example:"fadeout(@color, 10%);",description:re.t("return `@color` 10% points more transparent")},{name:"fade",example:"fade(@color, 50%);",description:re.t("return `@color` with 50% transparency")},{name:"spin",example:"spin(@color, 10);",description:re.t("return `@color` with a 10 degree larger in hue")},{name:"mix",example:"mix(@color1, @color2, [@weight: 50%]);",description:re.t("return a mix of `@color1` and `@color2`")},{name:"greyscale",example:"greyscale(@color);",description:re.t("returns a grey, 100% desaturated color")},{name:"contrast",example:"contrast(@color1, [@darkcolor: black], [@lightcolor: white], [@threshold: 43%]);",description:re.t("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);"}];function Tm(t,e){let n=t1(t);return n1(n,e)}function t1(t){function e(d){return t.positionAt(d.offset).line}function n(d){return t.positionAt(d.offset+d.len).line}function i(){switch(t.languageId){case"scss":return new es;case"less":return new ns;default:return new At}}function r(d,p){let b=e(d),y=n(d);return b!==y?{startLine:b,endLine:y,kind:p}:null}let s=[],o=[],a=i();a.ignoreComment=!1,a.setSource(t.getText());let l=a.scan(),c=null;for(;l.type!==g.EOF;){switch(l.type){case g.CurlyL:case sa:{o.push({line:e(l),type:"brace",isStart:!0});break}case g.CurlyR:{if(o.length!==0){let d=Mm(o,"brace");if(!d)break;let p=n(l);d.type==="brace"&&(c&&n(c)!==p&&p--,d.line!==p&&s.push({startLine:d.line,endLine:p,kind:void 0}))}break}case g.Comment:{let d=y=>y==="#region"?{line:e(l),type:"comment",isStart:!0}:{line:n(l),type:"comment",isStart:!1},b=(y=>{let M=y.text.match(/^\s*\/\*\s*(#region|#endregion)\b\s*(.*?)\s*\*\//);if(M)return d(M[1]);if(t.languageId==="scss"||t.languageId==="less"){let P=y.text.match(/^\s*\/\/\s*(#region|#endregion)\b\s*(.*?)\s*/);if(P)return d(P[1])}return null})(l);if(b)if(b.isStart)o.push(b);else{let y=Mm(o,"comment");if(!y)break;y.type==="comment"&&y.line!==b.line&&s.push({startLine:y.line,endLine:b.line,kind:"region"})}else{let y=r(l,"comment");y&&s.push(y)}break}}c=l,l=a.scan()}return s}function Mm(t,e){if(t.length===0)return null;for(let n=t.length-1;n>=0;n--)if(t[n].type===e&&t[n].isStart)return t.splice(n,1)[0];return null}function n1(t,e){let n=e&&e.rangeLimit||Number.MAX_VALUE,i=t.sort((o,a)=>{let l=o.startLine-a.startLine;return l===0&&(l=o.endLine-a.endLine),l}),r=[],s=-1;return i.forEach(o=>{o.startLine<s&&s<o.endLine||(r.push(o),s=o.endLine)}),r.length<n?r:r.slice(0,n)}var Im;(function(){"use strict";var t=[,,function(r){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(`
|
66
|
+
`,n.value+=e.references.map(i=>`[${i.name}](${i.url})`).join(" | "),e.documentation=n}})}var Dm=47,Xv=10,Yv=13,Qv=12,Cd=96,Fd=46,Zv=g.CustomToken,Rm=Zv++,ns=class extends At{scanNext(e){let n=this.escapedJavaScript();return n!==null?this.finishToken(e,n):this.stream.advanceIfChars([Fd,Fd,Fd])?this.finishToken(e,Rm):super.scanNext(e)}comment(){return super.comment()?!0:!this.inURL&&this.stream.advanceIfChars([Dm,Dm])?(this.stream.advanceWhileChar(e=>{switch(e){case Xv:case Yv:case Qv:return!1;default:return!0}}),!0):!1}escapedJavaScript(){return this.stream.peekChar()===Cd?(this.stream.advance(1),this.stream.advanceWhileChar(n=>n!==Cd),this.stream.advanceIfChar(Cd)?g.EscapedJavaScript:g.BadEscapedJavaScript):null}};var se=lt(Rt()),is=class t extends jn{constructor(e,n){super("@",e,n)}createFunctionProposals(e,n,i,r){for(let s of e){let o={label:s.name,detail:s.example,documentation:s.description,textEdit:oe.replace(this.getCompletionRange(n),s.name+"($0)"),insertTextFormat:st.Snippet,kind:re.Function};i&&(o.sortText="z"),r.items.push(o)}return r}getTermProposals(e,n,i){let r=t.builtInProposals;return e&&(r=r.filter(s=>!s.type||!e.restrictions||e.restrictions.indexOf(s.type)!==-1)),this.createFunctionProposals(r,n,!0,i),super.getTermProposals(e,n,i)}getColorProposals(e,n,i){return this.createFunctionProposals(t.colorProposals,n,!1,i),super.getColorProposals(e,n,i)}getCompletionsForDeclarationProperty(e,n){return this.getCompletionsForSelector(null,!0,n),super.getCompletionsForDeclarationProperty(e,n)}};is.builtInProposals=[{name:"if",example:"if(condition, trueValue [, falseValue]);",description:se.t("returns one of two values depending on a condition.")},{name:"boolean",example:"boolean(condition);",description:se.t('"store" a boolean test for later evaluation in a guard or if().')},{name:"length",example:"length(@list);",description:se.t("returns the number of elements in a value list")},{name:"extract",example:"extract(@list, index);",description:se.t("returns a value at the specified position in the list")},{name:"range",example:"range([start, ] end [, step]);",description:se.t("generate a list spanning a range of values")},{name:"each",example:"each(@list, ruleset);",description:se.t("bind the evaluation of a ruleset to each member of a list.")},{name:"escape",example:"escape(@string);",description:se.t("URL encodes a string")},{name:"e",example:"e(@string);",description:se.t("escape string content")},{name:"replace",example:"replace(@string, @pattern, @replacement[, @flags]);",description:se.t("string replace")},{name:"unit",example:"unit(@dimension, [@unit: '']);",description:se.t("remove or change the unit of a dimension")},{name:"color",example:"color(@string);",description:se.t("parses a string to a color"),type:"color"},{name:"convert",example:"convert(@value, unit);",description:se.t("converts numbers from one type into another")},{name:"data-uri",example:"data-uri([mimetype,] url);",description:se.t("inlines a resource and falls back to `url()`"),type:"url"},{name:"abs",description:se.t("absolute value of a number"),example:"abs(number);"},{name:"acos",description:se.t("arccosine - inverse of cosine function"),example:"acos(number);"},{name:"asin",description:se.t("arcsine - inverse of sine function"),example:"asin(number);"},{name:"ceil",example:"ceil(@number);",description:se.t("rounds up to an integer")},{name:"cos",description:se.t("cosine function"),example:"cos(number);"},{name:"floor",description:se.t("rounds down to an integer"),example:"floor(@number);"},{name:"percentage",description:se.t("converts to a %, e.g. 0.5 > 50%"),example:"percentage(@number);",type:"percentage"},{name:"round",description:se.t("rounds a number to a number of places"),example:"round(number, [places: 0]);"},{name:"sqrt",description:se.t("calculates square root of a number"),example:"sqrt(number);"},{name:"sin",description:se.t("sine function"),example:"sin(number);"},{name:"tan",description:se.t("tangent function"),example:"tan(number);"},{name:"atan",description:se.t("arctangent - inverse of tangent function"),example:"atan(number);"},{name:"pi",description:se.t("returns pi"),example:"pi();"},{name:"pow",description:se.t("first argument raised to the power of the second argument"),example:"pow(@base, @exponent);"},{name:"mod",description:se.t("first argument modulus second argument"),example:"mod(number, number);"},{name:"min",description:se.t("returns the lowest of one or more values"),example:"min(@x, @y);"},{name:"max",description:se.t("returns the lowest of one or more values"),example:"max(@x, @y);"}];is.colorProposals=[{name:"argb",example:"argb(@color);",description:se.t("creates a #AARRGGBB")},{name:"hsl",example:"hsl(@hue, @saturation, @lightness);",description:se.t("creates a color")},{name:"hsla",example:"hsla(@hue, @saturation, @lightness, @alpha);",description:se.t("creates a color")},{name:"hsv",example:"hsv(@hue, @saturation, @value);",description:se.t("creates a color")},{name:"hsva",example:"hsva(@hue, @saturation, @value, @alpha);",description:se.t("creates a color")},{name:"hue",example:"hue(@color);",description:se.t("returns the `hue` channel of `@color` in the HSL space")},{name:"saturation",example:"saturation(@color);",description:se.t("returns the `saturation` channel of `@color` in the HSL space")},{name:"lightness",example:"lightness(@color);",description:se.t("returns the `lightness` channel of `@color` in the HSL space")},{name:"hsvhue",example:"hsvhue(@color);",description:se.t("returns the `hue` channel of `@color` in the HSV space")},{name:"hsvsaturation",example:"hsvsaturation(@color);",description:se.t("returns the `saturation` channel of `@color` in the HSV space")},{name:"hsvvalue",example:"hsvvalue(@color);",description:se.t("returns the `value` channel of `@color` in the HSV space")},{name:"red",example:"red(@color);",description:se.t("returns the `red` channel of `@color`")},{name:"green",example:"green(@color);",description:se.t("returns the `green` channel of `@color`")},{name:"blue",example:"blue(@color);",description:se.t("returns the `blue` channel of `@color`")},{name:"alpha",example:"alpha(@color);",description:se.t("returns the `alpha` channel of `@color`")},{name:"luma",example:"luma(@color);",description:se.t("returns the `luma` value (perceptual brightness) of `@color`")},{name:"saturate",example:"saturate(@color, 10%);",description:se.t("return `@color` 10% points more saturated")},{name:"desaturate",example:"desaturate(@color, 10%);",description:se.t("return `@color` 10% points less saturated")},{name:"lighten",example:"lighten(@color, 10%);",description:se.t("return `@color` 10% points lighter")},{name:"darken",example:"darken(@color, 10%);",description:se.t("return `@color` 10% points darker")},{name:"fadein",example:"fadein(@color, 10%);",description:se.t("return `@color` 10% points less transparent")},{name:"fadeout",example:"fadeout(@color, 10%);",description:se.t("return `@color` 10% points more transparent")},{name:"fade",example:"fade(@color, 50%);",description:se.t("return `@color` with 50% transparency")},{name:"spin",example:"spin(@color, 10);",description:se.t("return `@color` with a 10 degree larger in hue")},{name:"mix",example:"mix(@color1, @color2, [@weight: 50%]);",description:se.t("return a mix of `@color1` and `@color2`")},{name:"greyscale",example:"greyscale(@color);",description:se.t("returns a grey, 100% desaturated color")},{name:"contrast",example:"contrast(@color1, [@darkcolor: black], [@lightcolor: white], [@threshold: 43%]);",description:se.t("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);"}];function Tm(t,e){let n=t1(t);return n1(n,e)}function t1(t){function e(d){return t.positionAt(d.offset).line}function n(d){return t.positionAt(d.offset+d.len).line}function i(){switch(t.languageId){case"scss":return new es;case"less":return new ns;default:return new At}}function r(d,p){let b=e(d),y=n(d);return b!==y?{startLine:b,endLine:y,kind:p}:null}let s=[],o=[],a=i();a.ignoreComment=!1,a.setSource(t.getText());let l=a.scan(),c=null;for(;l.type!==g.EOF;){switch(l.type){case g.CurlyL:case sa:{o.push({line:e(l),type:"brace",isStart:!0});break}case g.CurlyR:{if(o.length!==0){let d=Mm(o,"brace");if(!d)break;let p=n(l);d.type==="brace"&&(c&&n(c)!==p&&p--,d.line!==p&&s.push({startLine:d.line,endLine:p,kind:void 0}))}break}case g.Comment:{let d=y=>y==="#region"?{line:e(l),type:"comment",isStart:!0}:{line:n(l),type:"comment",isStart:!1},b=(y=>{let M=y.text.match(/^\s*\/\*\s*(#region|#endregion)\b\s*(.*?)\s*\*\//);if(M)return d(M[1]);if(t.languageId==="scss"||t.languageId==="less"){let P=y.text.match(/^\s*\/\/\s*(#region|#endregion)\b\s*(.*?)\s*/);if(P)return d(P[1])}return null})(l);if(b)if(b.isStart)o.push(b);else{let y=Mm(o,"comment");if(!y)break;y.type==="comment"&&y.line!==b.line&&s.push({startLine:y.line,endLine:b.line,kind:"region"})}else{let y=r(l,"comment");y&&s.push(y)}break}}c=l,l=a.scan()}return s}function Mm(t,e){if(t.length===0)return null;for(let n=t.length-1;n>=0;n--)if(t[n].type===e&&t[n].isStart)return t.splice(n,1)[0];return null}function n1(t,e){let n=e&&e.rangeLimit||Number.MAX_VALUE,i=t.sort((o,a)=>{let l=o.startLine-a.startLine;return l===0&&(l=o.endLine-a.endLine),l}),r=[],s=-1;return i.forEach(o=>{o.startLine<s&&s<o.endLine||(r.push(o),s=o.endLine)}),r.length<n?r:r.slice(0,n)}var Im;(function(){"use strict";var t=[,,function(r){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(`
|
67
67
|
`);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 o(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}o.prototype.get_indent_size=function(l,c){var d=this.__base_string_length;return c=c||0,l<0&&(d=0),d+=l*this.__indent_size,d+=c,d},o.prototype.get_indent_string=function(l,c){var d=this.__base_string;return c=c||0,l<0&&(l=0,d=""),c+=l*this.__indent_size,this.__ensure_cache(c),d+=this.__cache[c],d},o.prototype.__ensure_cache=function(l){for(;l>=this.__cache.length;)this.__add_column()},o.prototype.__add_column=function(){var l=this.__cache.length,c=0,d="";this.__indent_size&&l>=this.__indent_size&&(c=Math.floor(l/this.__indent_size),l-=c*this.__indent_size,d=new Array(c+1).join(this.__indent_string)),l&&(d+=new Array(l+1).join(" ")),this.__cache.push(d)};function a(l,c){this.__indent_cache=new o(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()}a.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},a.prototype.get_line_number=function(){return this.__lines.length},a.prototype.get_indent_string=function(l,c){return this.__indent_cache.get_indent_string(l,c)},a.prototype.get_indent_size=function(l,c){return this.__indent_cache.get_indent_size(l,c)},a.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},a.prototype.add_new_line=function(l){return this.is_empty()||!l&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},a.prototype.get_code=function(l){this.trim(!0);var c=this.current_line.pop();c&&(c[c.length-1]===`
|
68
68
|
`&&(c=c.replace(/\n+$/g,"")),this.current_line.push(c)),this._end_with_newline&&this.__add_outputline();var d=this.__lines.join(`
|
69
69
|
`);return l!==`
|
@@ -72,13 +72,13 @@ Syntax: ${jo(t.syntax)}`)}return t.references&&t.references.length>0&&e?.referen
|
|
72
72
|
`+c+`
|
73
73
|
You passed in: '`+this.raw_options[l]+"'");return p[0]},s.prototype._get_selection_list=function(l,c,d){if(!c||c.length===0)throw new Error("Selection list cannot be empty.");if(d=d||[c[0]],!this._is_valid_selection(d,c))throw new Error("Invalid Default Value!");var p=this._get_array(l,d);if(!this._is_valid_selection(p,c))throw new Error("Invalid Option Value: The option '"+l+`' can contain only the following values:
|
74
74
|
`+c+`
|
75
|
-
You passed in: '`+this.raw_options[l]+"'");return p},s.prototype._is_valid_selection=function(l,c){return l.length&&c.length&&!l.some(function(d){return c.indexOf(d)===-1})};function o(l,c){var d={};l=a(l);var p;for(p in l)p!==c&&(d[p]=l[p]);if(c&&l[c])for(p in l[c])d[p]=l[c][p];return d}function a(l){var c={},d;for(d in l){var p=d.replace(/-/g,"_");c[p]=l[d]}return c}r.exports.Options=s,r.exports.normalizeOpts=a,r.exports.mergeOpts=o},,function(r){var s=RegExp.prototype.hasOwnProperty("sticky");function o(a){this.__input=a||"",this.__input_length=this.__input.length,this.__position=0}o.prototype.restart=function(){this.__position=0},o.prototype.back=function(){this.__position>0&&(this.__position-=1)},o.prototype.hasNext=function(){return this.__position<this.__input_length},o.prototype.next=function(){var a=null;return this.hasNext()&&(a=this.__input.charAt(this.__position),this.__position+=1),a},o.prototype.peek=function(a){var l=null;return a=a||0,a+=this.__position,a>=0&&a<this.__input_length&&(l=this.__input.charAt(a)),l},o.prototype.__match=function(a,l){a.lastIndex=l;var c=a.exec(this.__input);return c&&!(s&&a.sticky)&&c.index!==l&&(c=null),c},o.prototype.test=function(a,l){return l=l||0,l+=this.__position,l>=0&&l<this.__input_length?!!this.__match(a,l):!1},o.prototype.testChar=function(a,l){var c=this.peek(l);return a.lastIndex=0,c!==null&&a.test(c)},o.prototype.match=function(a){var l=this.__match(a,this.__position);return l?this.__position+=l[0].length:l=null,l},o.prototype.read=function(a,l,c){var d="",p;return a&&(p=this.match(a),p&&(d+=p[0])),l&&(p||!a)&&(d+=this.readUntil(l,c)),d},o.prototype.readUntil=function(a,l){var c="",d=this.__position;a.lastIndex=this.__position;var p=a.exec(this.__input);return p?(d=p.index,l&&(d+=p[0].length)):d=this.__input_length,c=this.__input.substring(this.__position,d),this.__position=d,c},o.prototype.readUntilAfter=function(a){return this.readUntil(a,!0)},o.prototype.get_regexp=function(a,l){var c=null,d="g";return l&&s&&(d="y"),typeof a=="string"&&a!==""?c=new RegExp(a,d):a&&(c=new RegExp(a.source,d)),c},o.prototype.get_literal_regexp=function(a){return RegExp(a.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},o.prototype.peekUntilAfter=function(a){var l=this.__position,c=this.readUntilAfter(a);return this.__position=l,c},o.prototype.lookBack=function(a){var l=this.__position-1;return l>=a.length&&this.__input.substring(l-a.length,l).toLowerCase()===a},r.exports.InputScanner=o},,,,,function(r){function s(o,a){o=typeof o=="string"?o:o.source,a=typeof a=="string"?a:a.source,this.__directives_block_pattern=new RegExp(o+/ beautify( \w+[:]\w+)+ /.source+a,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(o+/\sbeautify\signore:end\s/.source+a,"g")}s.prototype.get_directives=function(o){if(!o.match(this.__directives_block_pattern))return null;var a={};this.__directive_pattern.lastIndex=0;for(var l=this.__directive_pattern.exec(o);l;)a[l[1]]=l[2],l=this.__directive_pattern.exec(o);return a},s.prototype.readIgnored=function(o){return o.readUntilAfter(this.__directives_end_ignore_pattern)},r.exports.Directives=s},,function(r,s,o){var a=o(16).Beautifier,l=o(17).Options;function c(d,p){var b=new a(d,p);return b.beautify()}r.exports=c,r.exports.defaultOptions=function(){return new l}},function(r,s,o){var a=o(17).Options,l=o(2).Output,c=o(8).InputScanner,d=o(13).Directives,p=new d(/\/\*/,/\*\//),b=/\r\n|[\r\n]/,y=/\r\n|[\r\n]/g,M=/\s/,P=/(?:\s|\n)+/g,
|
76
|
-
`)break;this._ch=this._input.next()}return
|
77
|
-
`&&(
|
78
|
-
`,
|
79
|
-
`);var
|
80
|
-
`&&I&&this._output.add_new_line()}var ui=this._output.get_code(
|
81
|
-
${zm(i)}`)}else e=
|
75
|
+
You passed in: '`+this.raw_options[l]+"'");return p},s.prototype._is_valid_selection=function(l,c){return l.length&&c.length&&!l.some(function(d){return c.indexOf(d)===-1})};function o(l,c){var d={};l=a(l);var p;for(p in l)p!==c&&(d[p]=l[p]);if(c&&l[c])for(p in l[c])d[p]=l[c][p];return d}function a(l){var c={},d;for(d in l){var p=d.replace(/-/g,"_");c[p]=l[d]}return c}r.exports.Options=s,r.exports.normalizeOpts=a,r.exports.mergeOpts=o},,function(r){var s=RegExp.prototype.hasOwnProperty("sticky");function o(a){this.__input=a||"",this.__input_length=this.__input.length,this.__position=0}o.prototype.restart=function(){this.__position=0},o.prototype.back=function(){this.__position>0&&(this.__position-=1)},o.prototype.hasNext=function(){return this.__position<this.__input_length},o.prototype.next=function(){var a=null;return this.hasNext()&&(a=this.__input.charAt(this.__position),this.__position+=1),a},o.prototype.peek=function(a){var l=null;return a=a||0,a+=this.__position,a>=0&&a<this.__input_length&&(l=this.__input.charAt(a)),l},o.prototype.__match=function(a,l){a.lastIndex=l;var c=a.exec(this.__input);return c&&!(s&&a.sticky)&&c.index!==l&&(c=null),c},o.prototype.test=function(a,l){return l=l||0,l+=this.__position,l>=0&&l<this.__input_length?!!this.__match(a,l):!1},o.prototype.testChar=function(a,l){var c=this.peek(l);return a.lastIndex=0,c!==null&&a.test(c)},o.prototype.match=function(a){var l=this.__match(a,this.__position);return l?this.__position+=l[0].length:l=null,l},o.prototype.read=function(a,l,c){var d="",p;return a&&(p=this.match(a),p&&(d+=p[0])),l&&(p||!a)&&(d+=this.readUntil(l,c)),d},o.prototype.readUntil=function(a,l){var c="",d=this.__position;a.lastIndex=this.__position;var p=a.exec(this.__input);return p?(d=p.index,l&&(d+=p[0].length)):d=this.__input_length,c=this.__input.substring(this.__position,d),this.__position=d,c},o.prototype.readUntilAfter=function(a){return this.readUntil(a,!0)},o.prototype.get_regexp=function(a,l){var c=null,d="g";return l&&s&&(d="y"),typeof a=="string"&&a!==""?c=new RegExp(a,d):a&&(c=new RegExp(a.source,d)),c},o.prototype.get_literal_regexp=function(a){return RegExp(a.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},o.prototype.peekUntilAfter=function(a){var l=this.__position,c=this.readUntilAfter(a);return this.__position=l,c},o.prototype.lookBack=function(a){var l=this.__position-1;return l>=a.length&&this.__input.substring(l-a.length,l).toLowerCase()===a},r.exports.InputScanner=o},,,,,function(r){function s(o,a){o=typeof o=="string"?o:o.source,a=typeof a=="string"?a:a.source,this.__directives_block_pattern=new RegExp(o+/ beautify( \w+[:]\w+)+ /.source+a,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(o+/\sbeautify\signore:end\s/.source+a,"g")}s.prototype.get_directives=function(o){if(!o.match(this.__directives_block_pattern))return null;var a={};this.__directive_pattern.lastIndex=0;for(var l=this.__directive_pattern.exec(o);l;)a[l[1]]=l[2],l=this.__directive_pattern.exec(o);return a},s.prototype.readIgnored=function(o){return o.readUntilAfter(this.__directives_end_ignore_pattern)},r.exports.Directives=s},,function(r,s,o){var a=o(16).Beautifier,l=o(17).Options;function c(d,p){var b=new a(d,p);return b.beautify()}r.exports=c,r.exports.defaultOptions=function(){return new l}},function(r,s,o){var a=o(17).Options,l=o(2).Output,c=o(8).InputScanner,d=o(13).Directives,p=new d(/\/\*/,/\*\//),b=/\r\n|[\r\n]/,y=/\r\n|[\r\n]/g,M=/\s/,P=/(?:\s|\n)+/g,Z=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,$=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function F(x,N){this._source_text=x||"",this._options=new a(N),this._ch=null,this._input=null,this.NESTED_AT_RULE={page:!0,"font-face":!0,keyframes:!0,media:!0,supports:!0,document:!0},this.CONDITIONAL_GROUP_RULE={media:!0,supports:!0,document:!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}F.prototype.eatString=function(x){var N="";for(this._ch=this._input.next();this._ch;){if(N+=this._ch,this._ch==="\\")N+=this._input.next();else if(x.indexOf(this._ch)!==-1||this._ch===`
|
76
|
+
`)break;this._ch=this._input.next()}return N},F.prototype.eatWhitespace=function(x){for(var N=M.test(this._input.peek()),R=0;M.test(this._input.peek());)this._ch=this._input.next(),x&&this._ch===`
|
77
|
+
`&&(R===0||R<this._options.max_preserve_newlines)&&(R++,this._output.add_new_line(!0));return N},F.prototype.foundNestedPseudoClass=function(){for(var x=0,N=1,R=this._input.peek(N);R;){if(R==="{")return!0;if(R==="(")x+=1;else if(R===")"){if(x===0)return!1;x-=1}else if(R===";"||R==="}")return!1;N++,R=this._input.peek(N)}return!1},F.prototype.print_string=function(x){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(x)},F.prototype.preserveSingleSpace=function(x){x&&(this._output.space_before_token=!0)},F.prototype.indent=function(){this._indentLevel++},F.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},F.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var x=this._source_text,N=this._options.eol;N==="auto"&&(N=`
|
78
|
+
`,x&&b.test(x||"")&&(N=x.match(b)[0])),x=x.replace(y,`
|
79
|
+
`);var R=x.match(/^[\t ]*/)[0];this._output=new l(this._options,R),this._input=new c(x),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var L=0,V=!1,Y=!1,le=!1,W=!1,k=!1,S=this._ch,I=!1,j,J,K;j=this._input.read(P),J=j!=="",K=S,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),S=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var Q=this._input.read(Z),ve=p.get_directives(Q);ve&&ve.ignore==="start"&&(Q+=p.readIgnored(this._input)),this.print_string(Q),this.eatWhitespace(!0),this._output.add_new_line()}else if(this._ch==="/"&&this._input.peek()==="/")this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read($)),this.eatWhitespace(!0);else if(this._ch==="$"){this.preserveSingleSpace(J),this.print_string(this._ch);var be=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);be.match(/[ :]$/)&&(be=this.eatString(": ").replace(/\s+$/,""),this.print_string(be),this._output.space_before_token=!0),L===0&&be.indexOf(":")!==-1&&(Y=!0,this.indent())}else if(this._ch==="@")if(this.preserveSingleSpace(J),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var ue=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);ue.match(/[ :]$/)&&(ue=this.eatString(": ").replace(/\s+$/,""),this.print_string(ue),this._output.space_before_token=!0),L===0&&ue.indexOf(":")!==-1?(Y=!0,this.indent()):ue in this.NESTED_AT_RULE?(this._nestedLevel+=1,ue in this.CONDITIONAL_GROUP_RULE&&(le=!0)):L===0&&!Y&&(W=!0)}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(J),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")Y&&(Y=!1,this.outdent()),W=!1,le?(le=!1,V=this._indentLevel>=this._nestedLevel):V=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&V&&this._output.previous_line&&this._output.previous_line.item(-1)!=="{"&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,this._options.brace_style==="expand"?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(K==="("?this._output.space_before_token=!1:K!==","&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if(this._ch==="}")this.outdent(),this._output.add_new_line(),K==="{"&&this._output.trim(!0),Y&&(this.outdent(),Y=!1),this.print_string(this._ch),V=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&this._input.peek()!=="}"&&this._output.add_new_line(!0),this._input.peek()===")"&&(this._output.trim(!0),this._options.brace_style==="expand"&&this._output.add_new_line(!0));else if(this._ch===":"){for(var $e=0;$e<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;$e++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[$e])){I=!0;break}(V||le)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!W&&L===0?(this.print_string(":"),Y||(Y=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent())):(this._input.lookBack(" ")&&(this._output.space_before_token=!0),this._input.peek()===":"?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":"))}else if(this._ch==='"'||this._ch==="'"){var Sn=K==='"'||K==="'";this.preserveSingleSpace(Sn||J),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")I=!1,L===0?(Y&&(this.outdent(),Y=!1),W=!1,this.print_string(this._ch),this.eatWhitespace(!0),this._input.peek()!=="/"&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0);else if(this._ch==="(")if(this._input.lookBack("url"))this.print_string(this._ch),this.eatWhitespace(),L++,this.indent(),this._ch=this._input.next(),this._ch===")"||this._ch==='"'||this._ch==="'"?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),L&&(L--,this.outdent()));else{var di=!1;this._input.lookBack("with")&&(di=!0),this.preserveSingleSpace(J||di),this.print_string(this._ch),Y&&K==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),k=!0):(this.eatWhitespace(),L++,this.indent())}else if(this._ch===")")L&&(L--,this.outdent()),k&&this._input.peek()===";"&&this._options.selector_separator_newline&&(k=!1,this.outdent(),this._output.add_new_line()),this.print_string(this._ch);else if(this._ch===",")this.print_string(this._ch),this.eatWhitespace(!0),this._options.selector_separator_newline&&(!Y||k)&&L===0&&!W?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!Y&&L===0)this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&M.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(J),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),M.test(this._ch)&&(this._ch="");else if(this._ch==="!"&&!this._input.lookBack("\\"))this._output.space_before_token=!0,this.print_string(this._ch);else{var hi=K==='"'||K==="'";this.preserveSingleSpace(hi||J),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
|
80
|
+
`&&I&&this._output.add_new_line()}var ui=this._output.get_code(N);return ui},r.exports.Beautifier=F},function(r,s,o){var a=o(6).Options;function l(c){a.call(this,c,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var d=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||d;var p=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var b=0;b<p.length;b++)p[b]!=="expand"?this.brace_style="collapse":this.brace_style=p[b]}l.prototype=new a,r.exports.Options=l}],e={};function n(r){var s=e[r];if(s!==void 0)return s.exports;var o=e[r]={exports:{}};return t[r](o,o.exports,n),o.exports}var i=n(15);Im=i})();var Pm=Im;function Wm(t,e,n){let i=t.getText(),r=!0,s=0,o=!1,a=n.tabSize||4;if(e){let d=t.offsetAt(e.start),p=d;for(;p>0&&Om(i,p-1);)p--;p===0||Nm(i,p-1)?d=p:p<d&&(d=p+1);let b=t.offsetAt(e.end),y=b;for(;y<i.length&&Om(i,y);)y++;if((y===i.length||Nm(i,y))&&(b=y),e=ce.create(t.positionAt(d),t.positionAt(b)),o=s1(i,d),r=b===i.length,i=i.substring(d,b),d!==0){let M=t.offsetAt(Xe.create(e.start.line,0));s=o1(t.getText(),M,n)}o&&(i=`{
|
81
|
+
${zm(i)}`)}else e=ce.create(Xe.create(0,0),t.positionAt(i.length));let l={indent_size:a,indent_char:n.insertSpaces?" ":" ",end_with_newline:r&&vn(n,"insertFinalNewline",!1),selector_separator_newline:vn(n,"newlineBetweenSelectors",!0),newline_between_rules:vn(n,"newlineBetweenRules",!0),space_around_selector_separator:vn(n,"spaceAroundSelectorSeparator",!1),brace_style:vn(n,"braceStyle","collapse"),indent_empty_lines:vn(n,"indentEmptyLines",!1),max_preserve_newlines:vn(n,"maxPreserveNewLines",void 0),preserve_newlines:vn(n,"preserveNewLines",!0),wrap_line_length:vn(n,"wrapLineLength",void 0),eol:`
|
82
82
|
`},c=Pm(i,l);if(o&&(c=zm(c.substring(2))),s>0){let d=n.insertSpaces?xc(" ",a*s):xc(" ",s);c=c.split(`
|
83
83
|
`).join(`
|
84
84
|
`+d),e.start.character===0&&(c=d+c)}return[{range:e,newText:c}]}function zm(t){return t.replace(/^\s+/,"")}var i1=123,r1=125;function s1(t,e){for(;e>=0;){let n=t.charCodeAt(e);if(n===i1)return!0;if(n===r1)return!1;e--}return!1}function vn(t,e,n){if(t&&t.hasOwnProperty(e)){let i=t[e];if(i!==null)return i}return n}function o1(t,e,n){let i=e,r=0,s=n.tabSize||4;for(;i<t.length;){let o=t.charAt(i);if(o===" ")r++;else if(o===" ")r+=s;else break;i++}return Math.floor(r/s)}function Nm(t,e){return`\r
|
@@ -98,6 +98,7 @@ Specifying any precise animations or physics used to enforce those snap points i
|
|
98
98
|
|
99
99
|
This is used to produce an effect that is known as tate-ch\u016B-yoko (\u7E26\u4E2D\u6A2A) in Japanese, or as \u76F4\u66F8\u6A6B\u5411 in Chinese.`},{name:"text-decoration-skip",status:"experimental",syntax:"none | [ objects || [ spaces | [ leading-spaces || trailing-spaces ] ] || edges || box-decoration ]",relevance:50,browsers:["S12.1","SM12.2","O44"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-decoration-skip"}],baseline:{status:"false"},description:"The text-decoration-skip CSS property specifies what parts of the element\u2019s content any text decoration affecting the element must skip over. It controls all text decoration lines drawn by the element and also any text decoration lines drawn by its ancestors."},{name:"text-decoration-skip-ink",syntax:"auto | all | none",values:[{name:"auto"},{name:"all"},{name:"none"}],relevance:51,browsers:["E79","FF70","FFA79","S15.4","SM15.4","C64","CA64","O50"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-decoration-skip-ink"}],baseline:{status:"high",baseline_low_date:"2022-03-14",baseline_high_date:"2024-09-14"},description:"The text-decoration-skip-ink CSS property specifies how overlines and underlines are drawn when they pass over glyph ascenders and descenders."},{name:"text-decoration-thickness",syntax:"auto | from-font | <length> | <percentage> ",relevance:52,browsers:["E89","FF70","FFA79","S12.1","SM12.2","C89","CA89","O75"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-decoration-thickness"}],baseline:{status:"high",baseline_low_date:"2021-03-04",baseline_high_date:"2023-09-04"},description:"The text-decoration-thickness CSS property sets the thickness, or width, of the decoration line that is used on text in an element, such as a line-through, underline, or overline."},{name:"text-emphasis",syntax:"<'text-emphasis-style'> || <'text-emphasis-color'>",relevance:50,browsers:["E99","FF46","FFA46","S7","SM7","C99","CA99","O85"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-emphasis"}],baseline:{status:"high",baseline_low_date:"2022-03-03",baseline_high_date:"2024-09-03"},description:"The text-emphasis CSS property is a shorthand property for setting text-emphasis-style and text-emphasis-color in one declaration. This property will apply the specified emphasis mark to each character of the element's text, except separator characters, like spaces, and control characters."},{name:"text-emphasis-color",syntax:"<color>",relevance:50,browsers:["E99","FF46","FFA46","S7","SM7","C99","CA99","O85"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-emphasis-color"}],baseline:{status:"high",baseline_low_date:"2022-03-03",baseline_high_date:"2024-09-03"},description:"The text-emphasis-color CSS property defines the color used to draw emphasis marks on text being rendered in the HTML document. This value can also be set and reset using the text-emphasis shorthand."},{name:"text-emphasis-position",syntax:"auto | [ over | under ] && [ right | left ]?",relevance:50,browsers:["E99","FF46","FFA46","S7","SM7","C99","CA99","O85"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-emphasis-position"}],baseline:{status:"high",baseline_low_date:"2022-03-03",baseline_high_date:"2024-09-03"},description:"The text-emphasis-position CSS property describes where emphasis marks are drawn at. The effect of emphasis marks on the line height is the same as for ruby text: if there isn't enough place, the line height is increased."},{name:"text-emphasis-style",syntax:"none | [ [ filled | open ] || [ dot | circle | double-circle | triangle | sesame ] ] | <string>",relevance:50,browsers:["E99","FF46","FFA46","S7","SM7","C99","CA99","O85"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-emphasis-style"}],baseline:{status:"high",baseline_low_date:"2022-03-03",baseline_high_date:"2024-09-03"},description:"The text-emphasis-style CSS property defines the type of emphasis used. It can also be set, and reset, using the text-emphasis shorthand."},{name:"text-size-adjust",status:"experimental",syntax:"none | auto | <percentage>",relevance:61,browsers:["E79","C54","CA54","O41"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-size-adjust"}],baseline:{status:"false"},description:"The text-size-adjust CSS property controls the text inflation algorithm used on some smartphones and tablets. Other browsers will ignore this property."},{name:"text-spacing-trim",status:"experimental",syntax:"space-all | normal | space-first | trim-start",values:[{name:"space-all"},{name:"normal"},{name:"space-first"},{name:"trim-start"}],relevance:50,browsers:["E123","C123","CA123","O109"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-spacing-trim"}],baseline:{status:"false"},description:"The text-spacing-trim CSS property controls the internal spacing set on Chinese/Japanese/Korean (CJK) punctuation characters between adjacent characters (kerning) and at the start or end of text lines."},{name:"text-underline-offset",syntax:"auto | <length> | <percentage> ",relevance:52,browsers:["E87","FF70","FFA79","S12.1","SM12.2","C87","CA87","O73"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-underline-offset"}],baseline:{status:"high",baseline_low_date:"2020-11-19",baseline_high_date:"2023-05-19"},description:"The text-underline-offset CSS property sets the offset distance of an underline text decoration line (applied using text-decoration) from its original position."},{name:"text-wrap",syntax:"<'text-wrap-mode'> || <'text-wrap-style'>",relevance:58,browsers:["E114","FF121","FFA121","S17.4","SM17.4","C114","CA114","O100"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-wrap"}],baseline:{status:"low",baseline_low_date:"2024-03-05"},description:"The text-wrap CSS property controls how text inside an element is wrapped."},{name:"text-wrap-mode",syntax:"wrap | nowrap",values:[{name:"wrap"},{name:"nowrap"}],relevance:50,browsers:["E130","FF124","FFA124","S17.4","SM17.4","C130","CA130","O115"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-wrap-mode"}],baseline:{status:"low",baseline_low_date:"2024-10-17"},description:'The text-wrap-mode CSS property controls whether the text inside an element is wrapped. The different values provide alternate ways of wrapping the content of a block element. It can also be set, and reset, using the {{CSSXRef("text-wrap")}} shorthand.'},{name:"text-wrap-style",syntax:"auto | balance | stable | pretty",values:[{name:"auto"},{name:"balance"},{name:"stable"},{name:"pretty"}],relevance:50,browsers:["E130","FF124","FFA124","S17.5","SM17.5","C130","CA130","O115"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/text-wrap-style"}],baseline:{status:"low",baseline_low_date:"2024-10-17"},description:'The text-wrap-style CSS property controls how text inside an element is wrapped. The different values provide alternate ways of wrapping the content of a block element. It can also be set, and reset, using the {{CSSXRef("text-wrap")}} shorthand.'},{name:"timeline-scope",status:"experimental",syntax:"none | <dashed-ident>#",relevance:50,browsers:["E116","C116","CA116","O102"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/timeline-scope"}],baseline:{status:"false"},description:"The timeline-scope CSS property modifies the scope of a named animation timeline."},{name:"transform-box",syntax:"content-box | border-box | fill-box | stroke-box | view-box",values:[{name:"content-box"},{name:"border-box"},{name:"fill-box"},{name:"stroke-box"},{name:"view-box"}],relevance:50,browsers:["E79","FF55","FFA55","S11","SM11","C64","CA64","O51"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/transform-box"}],baseline:{status:"high",baseline_low_date:"2020-01-15",baseline_high_date:"2022-07-15"},description:"The transform-box CSS property defines the layout box to which the transform and transform-origin properties relate."},{name:"transition-behavior",syntax:"<transition-behavior-value>#",relevance:50,browsers:["E117","FF129","FFA129","S17.4","SM17.4","C117","CA117","O103"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/transition-behavior"}],baseline:{status:"low",baseline_low_date:"2024-08-06"},description:"The transition-behavior CSS property specifies whether transitions will be started for properties whose animation behavior is discrete."},{name:"translate",syntax:"none | <length-percentage> [ <length-percentage> <length>? ]?",relevance:51,browsers:["E104","FF72","FFA79","S14.1","SM14.5","C104","CA104","O90"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/translate"}],baseline:{status:"high",baseline_low_date:"2022-08-05",baseline_high_date:"2025-02-05"},description:"The translate CSS property allows you to specify translation transforms individually and independently of the transform property. This maps better to typical user interface usage, and saves having to remember the exact order of transform functions to specify in the transform value."},{name:"vector-effect",syntax:"none | non-scaling-stroke | non-scaling-size | non-rotation | fixed-position",values:[{name:"none"},{name:"non-scaling-stroke"},{name:"non-scaling-size"},{name:"non-rotation"},{name:"fixed-position"}],relevance:50,browsers:["E80","FF72","FFA79","S13.1","SM13.4","C80","CA80","O67"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/vector-effect"}],baseline:{status:"high",baseline_low_date:"2020-07-28",baseline_high_date:"2023-01-28"},description:"The vector-effect CSS property suppresses specific transformation effects in SVG, thus permitting effects like a road on a map staying the same width no matter how the map is zoomed, or allowing a diagram key to retain its position and size regardless of other transforms. It can only be used with SVG elements that accept the vector-effect attribute. When used, the CSS value overrides any values of the element's vector-effect attribute."},{name:"view-timeline",status:"experimental",syntax:"[ <'view-timeline-name'> <'view-timeline-axis'>? ]#",relevance:50,browsers:["E115","C115","CA115","O101"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/view-timeline"}],baseline:{status:"false"},description:"The view-timeline CSS shorthand property is used to define a named view progress timeline, which is progressed through based on the change in visibility of an element (known as the subject) inside a scrollable element (scroller). view-timeline is set on the subject."},{name:"view-timeline-axis",status:"experimental",syntax:"[ block | inline | x | y ]#",relevance:50,browsers:["E115","C115","CA115","O101"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/view-timeline-axis"}],baseline:{status:"false"},description:"The view-timeline-axis CSS property is used to specify the scrollbar direction that will be used to provide the timeline for a named view progress timeline animation, which is progressed through based on the change in visibility of an element (known as the subject) inside a scrollable element (scroller). view-timeline-axis is set on the subject. See CSS scroll-driven animations for more details."},{name:"view-timeline-inset",status:"experimental",syntax:"[ [ auto | <length-percentage> ]{1,2} ]#",relevance:50,browsers:["E115","C115","CA115","O101"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/view-timeline-inset"}],baseline:{status:"false"},description:"The view-timeline-inset CSS property is used to specify one or two values representing an adjustment to the position of the scrollport (see Scroll container for more details) in which the subject element of a named view progress timeline animation is deemed to be visible. Put another way, this allows you to specify start and/or end inset (or outset) values that offset the position of the timeline."},{name:"view-timeline-name",status:"experimental",syntax:"none | <dashed-ident>#",relevance:50,browsers:["E115","C115","CA115","O101"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/view-timeline-name"}],baseline:{status:"false"},description:"The view-timeline-name CSS property is used to define the name of a named view progress timeline, which is progressed through based on the change in visibility of an element (known as the subject) inside a scrollable element (scroller). view-timeline is set on the subject."},{name:"view-transition-class",syntax:"none | <custom-ident>+",relevance:50,browsers:["E125","S18.2","SM18.2","C125","CA125","O111"],baseline:{status:"false"},description:""},{name:"view-transition-name",syntax:"none | <custom-ident>",relevance:50,browsers:["E111","S18","SM18","C111","CA111","O97"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/view-transition-name"}],baseline:{status:"false"},description:"The view-transition-name CSS property provides the selected element with a distinct identifying name (a custom-ident) and causes it to participate in a separate view transition from the root view transition \u2014 or no view transition if the none value is specified."},{name:"white-space",syntax:"normal | pre | pre-wrap | pre-line | <'white-space-collapse'> || <'text-wrap-mode'>",relevance:90,browsers:["E12","FF1","FFA4","S1","SM1","C1","CA18","IE5.5","O4"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/white-space"}],baseline:{status:"high",baseline_low_date:"2015-07-29",baseline_high_date:"2018-01-29"},description:"Specifies how whitespace is handled in an element."},{name:"white-space-collapse",syntax:"collapse | preserve | preserve-breaks | preserve-spaces | break-spaces",values:[{name:"collapse"},{name:"preserve"},{name:"preserve-breaks"},{name:"preserve-spaces"},{name:"break-spaces"}],relevance:50,browsers:["E114","FF124","FFA124","S17.4","SM17.4","C114","CA114","O100"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/white-space-collapse"}],baseline:{status:"low",baseline_low_date:"2024-03-19"},description:"The white-space-collapse CSS property controls how white space inside an element is collapsed."},{name:"x",syntax:"<length> | <percentage>",relevance:51,browsers:["E80","FF72","FFA79","S13.1","SM13.4","C80","CA80","O67"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/x"}],baseline:{status:"high",baseline_low_date:"2020-07-28",baseline_high_date:"2023-01-28"},description:"The x CSS property defines the x-axis coordinate of the top left corner of the SVG rect shape, image image, foreignObject viewport or nested svg viewport relative to the nearest <svg> ancestor's user coordinate system. If present, it overrides the element's x attribute."},{name:"y",syntax:"<length> | <percentage>",relevance:51,browsers:["E80","FF72","FFA79","S13.1","SM13.4","C80","CA80","O67"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/y"}],baseline:{status:"high",baseline_low_date:"2020-07-28",baseline_high_date:"2023-01-28"},description:"The y CSS property defines the y-axis coordinate of the top left corner of the SVG rect shape, image image, foreignObject viewport and nested svg viewport relative to the nearest <svg> ancestor's user coordinate system. If present, it overrides the element's y attribute."},{name:"ascent-override",atRule:"@font-face",syntax:"normal | <percentage>",relevance:50,description:"Describes the ascent metric of a font."},{name:"descent-override",atRule:"@font-face",syntax:"normal | <percentage>",relevance:50,description:"Describes the descent metric of a font."},{name:"font-display",atRule:"@font-face",syntax:"auto | block | swap | fallback | optional",values:[{name:"auto"},{name:"block"},{name:"swap"},{name:"fallback"},{name:"optional"}],relevance:75,description:"The font-display descriptor determines how a font face is displayed based on whether and when it is downloaded and ready to use."},{name:"line-gap-override",atRule:"@font-face",syntax:"normal | <percentage>",relevance:50,description:"Describes the line-gap metric of a font."},{name:"size-adjust",atRule:"@font-face",syntax:"<percentage>",relevance:50,description:"A multiplier for glyph outlines and metrics of a font."},{name:"base-palette",atRule:"@font-palette-values",syntax:"light | dark | <integer [0,\u221E]>",relevance:50,description:"The base-palette CSS descriptor is used to specify the name or index of a pre-defined palette to be used for creating a new palette. If the specified base-palette does not exist, then the palette defined at index 0 will be used."},{name:"override-colors",atRule:"@font-palette-values",syntax:"[ <integer [0,\u221E]> <color> ]#",relevance:50,description:"The override-colors CSS descriptor is used to override colors in the chosen base-palette for a color font."},{name:"bleed",atRule:"@page",syntax:"auto | <length>",relevance:50,description:"The bleed CSS at-rule descriptor, used with the @page at-rule, specifies the extent of the page bleed area outside the page box. This property only has effect if crop marks are enabled using the marks property."},{name:"marks",atRule:"@page",syntax:"none | [ crop || cross ]",relevance:50,description:"The marks CSS at-rule descriptor, used with the @page at-rule, adds crop and/or cross marks to the presentation of the document. Crop marks indicate where the page should be cut. Cross marks are used to align sheets."},{name:"page-orientation",atRule:"@page",syntax:"upright | rotate-left | rotate-right ",relevance:50,description:"The page-orientation CSS descriptor for the @page at-rule controls the rotation of a printed page. It handles the flow of content across pages when the orientation of a page is changed. This behavior differs from the size descriptor in that a user can define the direction in which to rotate the page."},{name:"inherits",atRule:"@property",syntax:"true | false",values:[{name:"true"},{name:"false"}],relevance:50,description:"Specifies the inherit flag of the custom property registration represented by the @property rule, controlling whether or not the property inherits by default."},{name:"initial-value",atRule:"@property",syntax:"<declaration-value>?",relevance:50,description:"Specifies the initial value of the custom property registration represented by the @property rule, controlling the property\u2019s initial value."},{name:"syntax",atRule:"@property",syntax:"<string>",relevance:51,description:"Specifies the syntax of the custom property registration represented by the @property rule, controlling how the property\u2019s value is parsed at computed value time."},{name:"navigation",atRule:"@view-transition",syntax:"auto | none",values:[{name:"auto"},{name:"none"}],relevance:50,description:""},{name:"types",atRule:"@view-transition",syntax:"none | <custom-ident>+",relevance:50,description:""}],atDirectives:[{name:"@charset",browsers:["E12","FF1.5","FFA4","S4","SM4","C2","CA18","IE5.5","O9"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/@charset"}],baseline:{status:"high",baseline_low_date:"2015-07-29",baseline_high_date:"2018-01-29"},description:"Defines character set of the document."},{name:"@counter-style",browsers:["E91","FF33","FFA33","S17","SM17","C91","CA91","O77"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/@counter-style"}],baseline:{status:"low",baseline_low_date:"2023-09-18"},description:"Defines a custom counter style."},{name:"@font-face",browsers:["E12","FF3.5","FFA4","S3.1","SM2","C1","CA18","IE4","O10"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/@font-face"}],baseline:{status:"high",baseline_low_date:"2015-07-29",baseline_high_date:"2018-01-29"},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:["E111","FF34","FFA34","S9.1","SM9.3","C111","CA111","O97"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/@font-feature-values"}],baseline:{status:"low",baseline_low_date:"2023-03-13"},description:"Defines named values for the indices used to select alternate glyphs for a given font family."},{name:"@import",browsers:["E12","FF1","FFA4","S1","SM1","C1","CA18","IE5.5","O3.5"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/@import"}],baseline:{status:"high",baseline_low_date:"2015-07-29",baseline_high_date:"2018-01-29"},description:"Includes content of another file."},{name:"@keyframes",browsers:["E12","FF16","FFA16","S9","SM9","C43","CA43","IE10","O30"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/@keyframes"}],baseline:{status:"high",baseline_low_date:"2015-09-30",baseline_high_date:"2018-03-30"},description:"Defines set of animation key frames."},{name:"@layer",browsers:["E99","FF97","FFA97","S15.4","SM15.4","C99","CA99","O85"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/@layer"}],baseline:{status:"high",baseline_low_date:"2022-03-14",baseline_high_date:"2024-09-14"},description:"Declare a cascade layer and the order of precedence in case of multiple cascade layers."},{name:"@media",browsers:["E12","FF1","FFA4","S3","SM1","C1","CA18","IE6","O9.2"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/@media"}],baseline:{status:"high",baseline_low_date:"2015-07-29",baseline_high_date:"2018-01-29"},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",browsers:["E12","FF1","FFA4","S1","SM1","C1","CA18","IE9","O8"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/@namespace"}],baseline:{status:"high",baseline_low_date:"2015-07-29",baseline_high_date:"2018-01-29"},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","FFA19","S18.2","SM18.2","C2","CA18","IE8","O6"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/@page"}],baseline:{status:"low",baseline_low_date:"2024-12-11"},description:"Directive defines various page parameters."},{name:"@property",browsers:["E85","FF128","FFA128","S16.4","SM16.4","C85","CA85","O71"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/@property"}],baseline:{status:"low",baseline_low_date:"2024-07-09"},description:"Describes the aspect of custom properties and variables."},{name:"@supports",browsers:["E12","FF22","FFA22","S9","SM9","C28","CA28","O12.1"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/@supports"}],baseline:{status:"high",baseline_low_date:"2015-09-30",baseline_high_date:"2018-03-30"},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",browsers:["E12","FF1","FFA4","S1","SM1","C1","CA18","IE4","O5"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:active"}],baseline:{status:"high",baseline_low_date:"2015-07-29",baseline_high_date:"2018-01-29"},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","FFA50","S9","SM9","C65","CA65","O52"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:any-link"}],baseline:{status:"high",baseline_low_date:"2020-01-15",baseline_high_date:"2022-07-15"},description:"Represents an element that acts as the source anchor of a hyperlink. Applies to both visited and unvisited links."},{name:":checked",browsers:["E12","FF1","FFA4","S3.1","SM2","C1","CA18","IE9","O9"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:checked"}],baseline:{status:"high",baseline_low_date:"2015-07-29",baseline_high_date:"2018-01-29"},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","FFA4","S5","SM5","C10","CA18","O10"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:default"}],baseline:{status:"high",baseline_low_date:"2020-01-15",baseline_high_date:"2022-07-15"},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",browsers:["E12","FF1","FFA4","S3.1","SM2","C1","CA18","IE9","O9"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:disabled"}],baseline:{status:"high",baseline_low_date:"2015-07-29",baseline_high_date:"2018-01-29"},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",browsers:["E12","FF1","FFA4","S3.1","SM2","C1","CA18","IE9","O9.5"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:empty"}],baseline:{status:"high",baseline_low_date:"2015-07-29",baseline_high_date:"2018-01-29"},description:"Represents an element that has no children at all."},{name:":enabled",browsers:["E12","FF1","FFA4","S3.1","SM2","C1","CA18","IE9","O9"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:enabled"}],baseline:{status:"high",baseline_low_date:"2015-07-29",baseline_high_date:"2018-01-29"},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","FF116","FFA116","S6","SM6","C18","CA18","IE8","O9.2"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:first"}],baseline:{status:"low",baseline_low_date:"2023-08-01"},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",browsers:["E12","FF3","FFA4","S3.1","SM4","C4","CA18","IE7","O9.5"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:first-child"}],baseline:{status:"high",baseline_low_date:"2015-07-29",baseline_high_date:"2018-01-29"},description:"Same as :nth-child(1). Represents an element that is the first child of some other element."},{name:":first-of-type",browsers:["E12","FF3.5","FFA4","S3.1","SM2","C1","CA18","IE9","O9.5"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:first-of-type"}],baseline:{status:"high",baseline_low_date:"2015-07-29",baseline_high_date:"2018-01-29"},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",browsers:["E12","FF1","FFA4","S1","SM1","C1","CA18","IE8","O7"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:focus"}],baseline:{status:"high",baseline_low_date:"2015-07-29",baseline_high_date:"2018-01-29"},description:"Applies while an element has the focus (accepts keyboard or mouse events, or other forms of input)."},{name:":fullscreen",browsers:["E12","FF64","FFA64","S16.4","C71","CA71","IE11","O58"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:fullscreen"}],baseline:{status:"false"},description:"Matches any element that has its fullscreen flag set."},{name:":future",browsers:["E79","S7","SM7","C23","CA25","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:future"}],baseline:{status:"false"},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","FFA63","S10","SM10","C54","CA54","O41"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:host"}],baseline:{status:"high",baseline_low_date:"2020-01-15",baseline_high_date:"2022-07-15"},description:"When evaluated in the context of a shadow tree, matches the shadow tree's host element."},{name:":host",browsers:["E79","FF63","FFA63","S10","SM10","C54","CA54","O41"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:host"}],baseline:{status:"high",baseline_low_date:"2020-01-15",baseline_high_date:"2022-07-15"},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:["E79","C54","CA54","O41"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:host-context"}],baseline:{status:"false"},description:"Tests whether there is an ancestor, outside the shadow tree, which matches a particular selector."},{name:":hover",browsers:["E12","FF1","FFA4","S2","SM1","C1","CA18","IE4","O4"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:hover"}],baseline:{status:"high",baseline_low_date:"2015-07-29",baseline_high_date:"2018-01-29"},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",browsers:["E12","FF2","FFA4","S3","SM1","C1","CA18","IE10","O9"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:indeterminate"}],baseline:{status:"high",baseline_low_date:"2015-07-29",baseline_high_date:"2018-01-29"},description:"Applies to UI elements whose value is in an indeterminate state."},{name:":in-range",browsers:["E13","FF29","FFA16","S5.1","SM5","C10","CA18","O11"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:in-range"}],baseline:{status:"high",baseline_low_date:"2015-11-12",baseline_high_date:"2018-05-12"},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",browsers:["E12","FF4","FFA4","S5","SM5","C10","CA18","IE10","O10"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:invalid"}],baseline:{status:"high",baseline_low_date:"2015-07-29",baseline_high_date:"2018-01-29"},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:["E12","FF1","FFA4","S3.1","SM2","C1","CA18","IE8","O8"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:lang"}],baseline:{status:"high",baseline_low_date:"2015-07-29",baseline_high_date:"2018-01-29"},description:"Represents an element that is in language specified."},{name:":last-child",browsers:["E12","FF1","FFA4","S3.1","SM2","C1","CA18","IE9","O9.5"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:last-child"}],baseline:{status:"high",baseline_low_date:"2015-07-29",baseline_high_date:"2018-01-29"},description:"Same as :nth-last-child(1). Represents an element that is the last child of some other element."},{name:":last-of-type",browsers:["E12","FF3.5","FFA4","S3.1","SM2","C1","CA18","IE9","O9.5"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:last-of-type"}],baseline:{status:"high",baseline_low_date:"2015-07-29",baseline_high_date:"2018-01-29"},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","SM4.2","C6","CA18","IE8","O9.2"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:left"}],baseline:{status:"false"},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",browsers:["E12","FF1","FFA4","S1","SM3.2","C1","CA18","IE3","O3.5"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:link"}],baseline:{status:"high",baseline_low_date:"2015-07-29",baseline_high_date:"2018-01-29"},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",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:-moz-broken"}],baseline:{status:"false"},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:["FF72","FFA79"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:-moz-first-node"}],baseline:{status:"false"},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:["FF72","FFA79"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:-moz-last-node"}],baseline:{status:"false"},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","FFA4"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:-moz-only-whitespace"}],baseline:{status:"false"},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",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:-moz-submit-invalid"}],baseline:{status:"false"},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"}],baseline:{status:"false"},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:["E12","FF1","FFA4","S3.1","SM2","C1","CA18","IE9","O9.5"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:not"}],baseline:{status:"high",baseline_low_date:"2015-07-29",baseline_high_date:"2018-01-29"},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:["E12","FF3.5","FFA4","S3.1","SM2","C1","CA18","IE9","O9.5"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:nth-child"}],baseline:{status:"high",baseline_low_date:"2015-07-29",baseline_high_date:"2018-01-29"},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:["E12","FF3.5","FFA4","S3.1","SM2","C4","CA18","IE9","O9"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:nth-last-child"}],baseline:{status:"high",baseline_low_date:"2015-07-29",baseline_high_date:"2018-01-29"},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:["E12","FF3.5","FFA4","S3.1","SM2","C4","CA18","IE9","O9.5"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:nth-last-of-type"}],baseline:{status:"high",baseline_low_date:"2015-07-29",baseline_high_date:"2018-01-29"},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:["E12","FF3.5","FFA4","S3.1","SM2","C1","CA18","IE9","O9.5"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:nth-of-type"}],baseline:{status:"high",baseline_low_date:"2015-07-29",baseline_high_date:"2018-01-29"},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",browsers:["E12","FF1.5","FFA4","S3.1","SM2","C2","CA18","IE9","O9.5"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:only-child"}],baseline:{status:"high",baseline_low_date:"2015-07-29",baseline_high_date:"2018-01-29"},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",browsers:["E12","FF3.5","FFA4","S3.1","SM2","C1","CA18","IE9","O9.5"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:only-of-type"}],baseline:{status:"high",baseline_low_date:"2015-07-29",baseline_high_date:"2018-01-29"},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",browsers:["E12","FF4","FFA4","S5","SM5","C10","CA18","IE10","O10"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:optional"}],baseline:{status:"high",baseline_low_date:"2015-07-29",baseline_high_date:"2018-01-29"},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","FFA16","S5.1","SM5","C10","CA18","O11"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:out-of-range"}],baseline:{status:"high",baseline_low_date:"2015-11-12",baseline_high_date:"2018-05-12"},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:["E79","S7","SM7","C23","CA25","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:past"}],baseline:{status:"false"},description:"Represents any element that is defined to occur entirely prior to a :current element."},{name:":read-only",browsers:["E13","FF78","FFA79","S4","SM3.2","C1","CA18","O9"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:read-only"}],baseline:{status:"high",baseline_low_date:"2020-07-28",baseline_high_date:"2023-01-28"},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","FFA79","S4","SM3.2","C1","CA18","O9"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:read-write"}],baseline:{status:"high",baseline_low_date:"2020-07-28",baseline_high_date:"2023-01-28"},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",browsers:["E12","FF4","FFA4","S5","SM5","C10","CA18","IE10","O10"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:required"}],baseline:{status:"high",baseline_low_date:"2015-07-29",baseline_high_date:"2018-01-29"},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","SM4.2","C6","CA18","IE8","O9.2"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:right"}],baseline:{status:"false"},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",browsers:["E12","FF1","FFA4","S1","SM1","C1","CA18","IE9","O9.5"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:root"}],baseline:{status:"high",baseline_low_date:"2015-07-29",baseline_high_date:"2018-01-29"},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","FFA32","S7","SM7","C27","CA27","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:scope"}],baseline:{status:"high",baseline_low_date:"2020-01-15",baseline_high_date:"2022-07-15"},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",browsers:["E12","FF1","FFA4","S1.3","SM2","C1","CA18","IE9","O9.5"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:target"}],baseline:{status:"high",baseline_low_date:"2015-07-29",baseline_high_date:"2018-01-29"},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",browsers:["E12","FF4","FFA4","S5","SM5","C10","CA18","IE10","O10"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:valid"}],baseline:{status:"high",baseline_low_date:"2015-07-29",baseline_high_date:"2018-01-29"},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",browsers:["E12","FF1","FFA4","S1","SM1","C1","CA18","IE4","O3.5"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:visited"}],baseline:{status:"high",baseline_low_date:"2015-07-29",baseline_high_date:"2018-01-29"},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:":active-view-transition",browsers:["E125","S18","SM18","C125","CA125","O111"],baseline:{status:"false"},description:""},{name:":active-view-transition-type",browsers:["E125","Spreview","C125","CA125","O111"],baseline:{status:"false"},description:""},{name:":autofill",browsers:["E110","FF86","FFA86","S15","SM15","C110","CA110","O96"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:autofill"}],baseline:{status:"low",baseline_low_date:"2023-02-09"},description:"The :autofill CSS pseudo-class matches when an input element has its value autofilled by the browser. The class stops matching if the user edits the field."},{name:":blank",status:"experimental",description:"The :blank CSS pseudo-class selects empty user input elements (eg. <input> or <textarea>)."},{name:":buffering",browsers:["S15.4","SM15.4"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:buffering"}],baseline:{status:"false"},description:"The :buffering CSS pseudo-class selector represents an element that is playable, such as audio or video, when the playable element is buffering a media resource."},{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:":defined",browsers:["E79","FF63","FFA63","S10","SM10","C54","CA54","O41"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:defined"}],baseline:{status:"high",baseline_low_date:"2020-01-15",baseline_high_date:"2022-07-15"},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:["E120","FF49","FFA49","S16.4","SM16.4","C120","CA120","O106"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:dir"}],baseline:{status:"low",baseline_low_date:"2023-12-07"},description:"The :dir() CSS pseudo-class matches elements based on the directionality of the text contained in them."},{name:":focus-visible",browsers:["E86","FF85","FFA85","S15.4","SM15.4","C86","CA86","O72"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:focus-visible"}],baseline:{status:"high",baseline_low_date:"2022-03-14",baseline_high_date:"2024-09-14"},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","FFA52","S10.1","SM10.3","C60","CA60","O47"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:focus-within"}],baseline:{status:"high",baseline_low_date:"2020-01-15",baseline_high_date:"2022-07-15"},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",browsers:["E105","FF121","FFA121","S15.4","SM15.4","C105","CA105","O91"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:has"}],baseline:{status:"low",baseline_low_date:"2023-12-19"},description:"The functional :has() CSS pseudo-class represents an element if any of the relative selectors that are passed as an argument match at least one element when anchored against this element. "},{name:":has-slotted",browsers:["E134","FF136","FFA136","C134","CA134"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:has-slotted"}],baseline:{status:"false"},description:"The :has-slotted CSS pseudo-class matches when the content of a slot element is not empty or not using the default value (see Using templates and slots for more information)."},{name:":is",browsers:["E88","FF78","FFA79","S14","SM14","C88","CA88","O74"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:is"}],baseline:{status:"high",baseline_low_date:"2021-01-21",baseline_high_date:"2023-07-21"},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:":modal",browsers:["E105","FF103","FFA103","S15.6","SM15.6","C105","CA105","O91"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:modal"}],baseline:{status:"high",baseline_low_date:"2022-09-02",baseline_high_date:"2025-03-02"},description:"The :modal CSS pseudo-class matches an element that is in a state in which it excludes all interaction with elements outside it until the interaction has been dismissed. Multiple elements can be selected by the :modal pseudo-class at the same time, but only one of them will be active and able to receive input."},{name:":muted",browsers:["S15.4","SM15.4"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:muted"}],baseline:{status:"false"},description:"The :muted CSS pseudo-class selector represents an element that is capable of making sound, such as audio or video, but is muted (forced silent)."},{name:":paused",browsers:["S15.4","SM15.4"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:paused"}],baseline:{status:"false"},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 \u201Cplayed\u201D or \u201Cpaused\u201D, when that element is \u201Cpaused\u201D."},{name:":picture-in-picture",browsers:["E110","S13.1","SM13.4","C110","CA110","O96"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:picture-in-picture"}],baseline:{status:"false"},description:"The :picture-in-picture CSS pseudo-class matches the element which is currently in picture-in-picture mode."},{name:":placeholder-shown",browsers:["E79","FF51","FFA51","S9","SM9","C47","CA47","IE10","O34"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:placeholder-shown"}],baseline:{status:"high",baseline_low_date:"2020-01-15",baseline_high_date:"2022-07-15"},description:"The :placeholder-shown CSS pseudo-class represents any <input> or <textarea> element that is currently displaying placeholder text."},{name:":playing",browsers:["S15.4","SM15.4"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:playing"}],baseline:{status:"false"},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 \u201Cplayed\u201D or \u201Cpaused\u201D, when that element is \u201Cplaying\u201D. "},{name:":popover-open",browsers:["E114","FF125","FFA125","S17","SM17","C114","CA114","O100"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:popover-open"}],baseline:{status:"low",baseline_low_date:"2024-04-16"},description:'The :popover-open CSS pseudo-class represents a {{domxref("Popover API", "popover", "", "nocode")}} element (i.e. one with a popover attribute) that is in the showing state. You can use this to apply style to popover elements only when they are shown.'},{name:":seeking",browsers:["S15.4","SM15.4"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:seeking"}],baseline:{status:"false"},description:"The :seeking CSS pseudo-class selector represents an element that is playable, such as audio or video, when the playable element is seeking a playback position in the media resource."},{name:":stalled",browsers:["S15.4","SM15.4"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:stalled"}],baseline:{status:"false"},description:"The :stalled CSS pseudo-class selector represents an element that is playable, such as audio or video, when playback is stalled."},{name:":state",browsers:["E125","FF126","FFA126","S17.4","SM17.4","C125","CA125","O111"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:state"}],baseline:{status:"low",baseline_low_date:"2024-05-17"},description:"The :state() CSS pseudo-class matches custom elements that have the specified custom state."},{name:":target-current",status:"experimental",baseline:{status:"false"},description:""},{name:":target-within",status:"experimental",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",browsers:["E119","FF88","FFA88","S16.5","SM16.5","C119","CA119","O105"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:user-invalid"}],baseline:{status:"low",baseline_low_date:"2023-11-02"},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",browsers:["E119","FF88","FFA88","S16.5","SM16.5","C119","CA119","O105"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:user-valid"}],baseline:{status:"low",baseline_low_date:"2023-11-02"},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:":volume-locked",browsers:["S15.4","SM15.4"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:volume-locked"}],baseline:{status:"false"},description:'The :volume-locked CSS pseudo-class selector represents an element that is capable of making sound, such as audio or video, but the audio volume of the media element is currently "locked" by the user.'},{name:":where",browsers:["E88","FF78","FFA79","S14","SM14","C88","CA88","O74"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/:where"}],baseline:{status:"high",baseline_low_date:"2021-01-21",baseline_high_date:"2023-07-21"},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:":xr-overlay",status:"experimental",browsers:["E83","C83","CA83","O69"],baseline:{status:"false"},description:""}],pseudoElements:[{name:"::after",browsers:["E12","FF1.5","FFA4","S4","SM3.2","C1","CA18","IE9","O7"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::after"}],baseline:{status:"high",baseline_low_date:"2015-07-29",baseline_high_date:"2018-01-29"},description:"Represents a styleable child pseudo-element immediately after the originating element's actual content."},{name:"::backdrop",browsers:["E79","FF47","FFA47","S15.4","SM15.4","C37","CA37","IE11","O24"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::backdrop"}],baseline:{status:"high",baseline_low_date:"2022-03-14",baseline_high_date:"2024-09-14"},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",browsers:["E12","FF1.5","FFA4","S4","SM3","C1","CA18","IE9","O7"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::before"}],baseline:{status:"high",baseline_low_date:"2015-07-29",baseline_high_date:"2018-01-29"},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","FFA55","S7","SM7","C26","CA26","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::cue"}],baseline:{status:"high",baseline_low_date:"2020-01-15",baseline_high_date:"2022-07-15"}},{name:"::cue",browsers:["E79","FF55","FFA55","S7","SM7","C26","CA26","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::cue"}],baseline:{status:"high",baseline_low_date:"2020-01-15",baseline_high_date:"2022-07-15"}},{name:"::cue-region",browsers:["C","O16","S6"]},{name:"::cue-region",browsers:["C","O16","S6"]},{name:"::first-letter",browsers:["E12","FF1","FFA4","S1","SM1","C1","CA18","IE9","O7"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::first-letter"}],baseline:{status:"high",baseline_low_date:"2015-07-29",baseline_high_date:"2018-01-29"},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",browsers:["E12","FF1","FFA4","S1","SM1","C1","CA18","IE9","O7"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::first-line"}],baseline:{status:"high",baseline_low_date:"2015-07-29",baseline_high_date:"2018-01-29"},description:"Describes the contents of the first formatted line of its originating element."},{name:"::-moz-focus-inner",browsers:["FF72","FFA79"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-moz-focus-inner"}],baseline:{status:"false"}},{name:"::-moz-focus-outer",browsers:["FF4"]},{name:"::-moz-list-bullet",browsers:["FF72","FFA79"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-moz-list-bullet"}],baseline:{status:"false"},description:"Used to style the bullet of a list element. Similar to the standardized ::marker."},{name:"::-moz-list-number",browsers:["FF72","FFA79"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-moz-list-number"}],baseline:{status:"false"},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:["FF72","FFA79"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-moz-progress-bar"}],baseline:{status:"false"},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",browsers:["E12","FF62","FFA62","S1.1","C1","CA18","IE9","O9.5"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::selection"}],baseline:{status:"false"},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","SM4.2","C6","CA18","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-inner-spin-button"}],baseline:{status:"false"}},{name:"::-webkit-input-placeholder",browsers:["C","S4"]},{name:"::-webkit-keygen-select",browsers:["C","O","S6"]},{name:"::-webkit-meter-bar",browsers:["E79","S5.1","SM5","C12","CA18","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-meter-bar"}],baseline:{status:"false"}},{name:"::-webkit-meter-even-less-good-value",browsers:["E79","S5.1","SM5","C12","CA18","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-meter-even-less-good-value"}],baseline:{status:"false"}},{name:"::-webkit-meter-optimum-value",browsers:["E79","S5.1","SM5","C12","CA18","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-meter-optimum-value"}],baseline:{status:"false"}},{name:"::-webkit-meter-suboptimum-value",browsers:["E79","S5.1","SM5","C12","CA18","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-meter-suboptimum-value"}],baseline:{status:"false"}},{name:"::-webkit-outer-spin-button",browsers:["C","O","S6"]},{name:"::-webkit-progress-bar",browsers:["E79","S7","SM7","C25","CA25","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-progress-bar"}],baseline:{status:"false"}},{name:"::-webkit-progress-inner-element",browsers:["E79","S7","SM7","C23","CA25","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-progress-inner-element"}],baseline:{status:"false"}},{name:"::-webkit-progress-value",browsers:["E79","S7","SM7","C25","CA25","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-progress-value"}],baseline:{status:"false"}},{name:"::-webkit-resizer",browsers:["E79","S4","SM3.2","C2","CA18","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar"}],baseline:{status:"false"}},{name:"::-webkit-scrollbar",browsers:["E79","S4","SM3","C2","CA18","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar"}],baseline:{status:"false"}},{name:"::-webkit-scrollbar-button",browsers:["E79","S4","C2","CA18","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar"}],baseline:{status:"false"}},{name:"::-webkit-scrollbar-corner",browsers:["E79","S4","C2","CA18","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar"}],baseline:{status:"false"}},{name:"::-webkit-scrollbar-thumb",browsers:["E79","S4","C2","CA18","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar"}],baseline:{status:"false"}},{name:"::-webkit-scrollbar-track",browsers:["E79","S4","C2","CA18","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar"}],baseline:{status:"false"}},{name:"::-webkit-scrollbar-track-piece",browsers:["E79","S4","C2","CA18","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-scrollbar"}],baseline:{status:"false"}},{name:"::-webkit-search-cancel-button",browsers:["E79","S3","SM1","C1","CA18","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-search-cancel-button"}],baseline:{status:"false"}},{name:"::-webkit-search-decoration",browsers:["C","S4"]},{name:"::-webkit-search-results-button",browsers:["E79","S3","SM1","C1","CA18","O15"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-search-results-button"}],baseline:{status:"false"}},{name:"::-webkit-search-results-decoration",browsers:["C","S4"]},{name:"::-webkit-slider-runnable-track",browsers:["E83","S18","SM18","C83","CA83","O69"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-slider-runnable-track"}],baseline:{status:"false"}},{name:"::-webkit-slider-thumb",browsers:["E83","S18","SM18","C83","CA83","O69"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-webkit-slider-thumb"}],baseline:{status:"false"}},{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:"::-moz-range-progress",status:"nonstandard",browsers:["FF22","FFA22"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-moz-range-progress"}],baseline:{status:"false"},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","FFA21"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-moz-range-thumb"}],baseline:{status:"false"},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","FFA21"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::-moz-range-track"}],baseline:{status:"false"},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.
|
100
100
|
|
101
|
-
In order to let ::-webkit-progress-value take effect, -webkit-appearance needs to be set to none on the <progress> element.`},{name:"::details-content",status:"experimental",browsers:["E131","C131","CA131","O116"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::details-content"}],baseline:{status:"false"},description:"The ::details-content CSS pseudo-element represents the expandable/collapsible contents of a details element."},{name:"::file-selector-button",browsers:["E89","FF82","FFA82","S14.1","SM14.5","C89","CA89","IE10","O75"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::file-selector-button"}],baseline:{status:"high",baseline_low_date:"2021-04-26",baseline_high_date:"2023-10-26"},description:'The ::file-selector-button CSS pseudo-element represents the button of an input of type="file".'},{name:"::grammar-error",browsers:["E121","S17.4","SM17.4","C121","CA121","O107"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::grammar-error"}],baseline:{status:"false"},description:"The ::grammar-error CSS pseudo-element represents a text segment which the user agent has flagged as grammatically incorrect."},{name:"::highlight",browsers:["E105","FFpreview","S17.2","SM17.2","C105","CA105","O91"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::highlight"}],baseline:{status:"false"},description:"The ::highlight() CSS pseudo-element applies styles to a custom highlight."},{name:"::marker",browsers:["E86","FF68","FFA68","C86","CA86","O72"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::marker"}],baseline:{status:"false"},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",browsers:["E79","FF72","FFA79","S13.1","SM13.4","C73","CA73","O60"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::part"}],baseline:{status:"high",baseline_low_date:"2020-07-28",baseline_high_date:"2023-01-28"},description:"The ::part CSS pseudo-element represents any element within a shadow tree that has a matching part attribute."},{name:"::placeholder",browsers:["E79","FF51","FFA51","S10.1","SM10.3","C57","CA57","O44"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::placeholder"}],baseline:{status:"high",baseline_low_date:"2020-01-15",baseline_high_date:"2022-07-15"},description:"The ::placeholder CSS pseudo-element represents the placeholder text of a form element."},{name:"::scroll-marker",status:"experimental",baseline:{status:"false"},description:""},{name:"::scroll-marker-group",status:"experimental",baseline:{status:"false"},description:""},{name:"::slotted",browsers:["E79","FF63","FFA63","S10","SM10","C50","CA50","O37"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::slotted"}],baseline:{status:"high",baseline_low_date:"2020-01-15",baseline_high_date:"2022-07-15"},description:"The ::slotted() CSS pseudo-element represents any element that has been placed into a slot inside an HTML template (see Using templates and slots for more information)."},{name:"::spelling-error",browsers:["E121","S17.4","SM17.4","C121","CA121","O107"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::spelling-error"}],baseline:{status:"false"},description:"The ::spelling-error CSS pseudo-element represents a text segment which the user agent has flagged as incorrectly spelled."},{name:"::target-text",browsers:["E89","FF131","FFA131","S18.2","SM18.2","C89","CA89","O75"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::target-text"}],baseline:{status:"low",baseline_low_date:"2024-12-11"},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:"::view-transition",browsers:["E109","S18","SM18","C109","CA109","O95"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::view-transition"}],baseline:{status:"false"},description:"The ::view-transition CSS pseudo-element represents the root of the view transitions overlay, which contains all view transitions and sits over the top of all other page content."},{name:"::view-transition-group",browsers:["E109","S18","SM18","C109","CA109","O95"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::view-transition-group"}],baseline:{status:"false"},description:"The ::view-transition-group CSS pseudo-element represents a single view transition snapshot group."},{name:"::view-transition-image-pair",browsers:["E109","S18","SM18","C109","CA109","O95"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::view-transition-image-pair"}],baseline:{status:"false"},description:`The ::view-transition-image-pair CSS pseudo-element represents a container for a view transition's "old" and "new" view states \u2014 before and after the transition.`},{name:"::view-transition-new",browsers:["E109","S18","SM18","C109","CA109","O95"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::view-transition-new"}],baseline:{status:"false"},description:'The ::view-transition-new CSS pseudo-element represents the "new" view state of a view transition \u2014 a snapshot live representation of the state after the transition.'},{name:"::view-transition-old",browsers:["E109","S18","SM18","C109","CA109","O95"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::view-transition-old"}],baseline:{status:"false"},description:'The ::view-transition-old CSS pseudo-element represents the "old" view state of a view transition \u2014 a static snapshot of the old view, before the transition.'}]};var rs=class{constructor(e){this._properties=[],this._atDirectives=[],this._pseudoClasses=[],this._pseudoElements=[],this.addData(e)}provideProperties(){return this._properties}provideAtDirectives(){return this._atDirectives}providePseudoClasses(){return this._pseudoClasses}providePseudoElements(){return this._pseudoElements}addData(e){if(Array.isArray(e.properties))for(let n of e.properties)a1(n)&&this._properties.push(n);if(Array.isArray(e.atDirectives))for(let n of e.atDirectives)l1(n)&&this._atDirectives.push(n);if(Array.isArray(e.pseudoClasses))for(let n of e.pseudoClasses)c1(n)&&this._pseudoClasses.push(n);if(Array.isArray(e.pseudoElements))for(let n of e.pseudoElements)d1(n)&&this._pseudoElements.push(n)}};function a1(t){return typeof t.name=="string"}function l1(t){return typeof t.name=="string"}function c1(t){return typeof t.name=="string"}function d1(t){return typeof t.name=="string"}var aa=class{constructor(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||[])}setDataProviders(e,n){this.dataProviders=[],e&&this.dataProviders.push(new rs(kd)),this.dataProviders.push(...n),this.collectData()}collectData(){this._propertySet={},this._atDirectiveSet={},this._pseudoClassSet={},this._pseudoElementSet={},this.dataProviders.forEach(e=>{e.provideProperties().forEach(n=>{this._propertySet[n.name]||(this._propertySet[n.name]=n)}),e.provideAtDirectives().forEach(n=>{this._atDirectiveSet[n.name]||(this._atDirectiveSet[n.name]=n)}),e.providePseudoClasses().forEach(n=>{this._pseudoClassSet[n.name]||(this._pseudoClassSet[n.name]=n)}),e.providePseudoElements().forEach(n=>{this._pseudoElementSet[n.name]||(this._pseudoElementSet[n.name]=n)})}),this._properties=qr(this._propertySet),this._atDirectives=qr(this._atDirectiveSet),this._pseudoClasses=qr(this._pseudoClassSet),this._pseudoElements=qr(this._pseudoElementSet)}getProperty(e){return this._propertySet[e]}getAtDirective(e){return this._atDirectiveSet[e]}getPseudoClass(e){return this._pseudoClassSet[e]}getPseudoElement(e){return this._pseudoElementSet[e]}getProperties(){return this._properties}getAtDirectives(){return this._atDirectives}getPseudoClasses(){return this._pseudoClasses}getPseudoElements(){return this._pseudoElements}isKnownProperty(e){return e.toLowerCase()in this._propertySet}isStandardProperty(e){return this.isKnownProperty(e)&&(!this._propertySet[e.toLowerCase()].status||this._propertySet[e.toLowerCase()].status==="standard")}};function Lm(t,e,n){function i(s){let o=r(s),a;for(let l=o.length-1;l>=0;l--)a=Gi.create(le.create(t.positionAt(o[l][0]),t.positionAt(o[l][1])),a);return a||(a=Gi.create(le.create(s,s))),a}return e.map(i);function r(s){let o=t.offsetAt(s),a=n.findChildAtOffset(o,!0);if(!a)return[];let l=[];for(;a;){if(a.parent&&a.offset===a.parent.offset&&a.end===a.parent.end){a=a.parent;continue}a.type===v.Declarations&&o>a.offset&&o<a.end&&l.push([a.offset+1,a.end-1]),l.push([a.offset,a.end]),a=a.parent}return l}}function h1(t,e,n,i,r,s,o){return{configure:a=>{s.configure(a),e.configure(a?.completion),n.configure(a?.hover),i.configure(a?.importAliases)},setDataProviders:o.setDataProviders.bind(o),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:Wm,findDefinition:i.findDefinition.bind(i),findReferences:i.findReferences.bind(i),findDocumentHighlights:i.findDocumentHighlights.bind(i),findDocumentLinks:i.findDocumentLinks.bind(i),findDocumentLinks2:i.findDocumentLinks2.bind(i),findDocumentSymbols:i.findSymbolInformations.bind(i),findDocumentSymbols2:i.findDocumentSymbols.bind(i),doCodeActions:r.doCodeActions.bind(r),doCodeActions2:r.doCodeActions2.bind(r),findDocumentColors:i.findDocumentColors.bind(i),getColorPresentations:i.getColorPresentations.bind(i),prepareRename:i.prepareRename.bind(i),doRename:i.doRename.bind(i),getFoldingRanges:Tm,getSelectionRanges:Lm}}var u1={};function qm(t=u1){let e=new aa(t);return h1(new qn,new jn(null,t,e),new Qo(t&&t.clientCapabilities,e),new Jr(t&&t.fileSystemProvider,!1),new ea(e),new ra(e),e)}var Un=lt(bc());var os=lt(jm());function $m(t,e,n){let i={},r=0,s;return e>0&&(s=setInterval(()=>{let o=Date.now()-e*1e3,a=Object.keys(i);for(let l of a)i[l].cTime<o&&(delete i[l],r--)},e*1e3)),{get(o){let a=o.version,l=o.languageId,c=i[o.uri];if(c&&c.version===a&&c.languageId===l)return c.cTime=Date.now(),c.languageModel;let d=n(o);if(i[o.uri]={languageModel:d,version:a,languageId:l,cTime:Date.now()},c||r++,r===t){let p=Number.MAX_VALUE,b=null;for(let y in i){let M=i[y];M.cTime<p&&(b=y,p=M.cTime)}b&&(delete i[b],r--)}return d},onDocumentRemoved(o){let a=o.uri;i[a]&&(delete i[a],r--)},dispose(){typeof s<"u"&&(clearInterval(s),s=void 0,i={},r=0)}}}var Hm=lt(Vm());var da="\u2118";function la(t=0){return(e,n)=>{let i=n.split(`
|
101
|
+
In order to let ::-webkit-progress-value take effect, -webkit-appearance needs to be set to none on the <progress> element.`},{name:"::details-content",status:"experimental",browsers:["E131","C131","CA131","O116"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::details-content"}],baseline:{status:"false"},description:"The ::details-content CSS pseudo-element represents the expandable/collapsible contents of a details element."},{name:"::file-selector-button",browsers:["E89","FF82","FFA82","S14.1","SM14.5","C89","CA89","IE10","O75"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::file-selector-button"}],baseline:{status:"high",baseline_low_date:"2021-04-26",baseline_high_date:"2023-10-26"},description:'The ::file-selector-button CSS pseudo-element represents the button of an input of type="file".'},{name:"::grammar-error",browsers:["E121","S17.4","SM17.4","C121","CA121","O107"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::grammar-error"}],baseline:{status:"false"},description:"The ::grammar-error CSS pseudo-element represents a text segment which the user agent has flagged as grammatically incorrect."},{name:"::highlight",browsers:["E105","FFpreview","S17.2","SM17.2","C105","CA105","O91"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::highlight"}],baseline:{status:"false"},description:"The ::highlight() CSS pseudo-element applies styles to a custom highlight."},{name:"::marker",browsers:["E86","FF68","FFA68","C86","CA86","O72"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::marker"}],baseline:{status:"false"},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",browsers:["E79","FF72","FFA79","S13.1","SM13.4","C73","CA73","O60"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::part"}],baseline:{status:"high",baseline_low_date:"2020-07-28",baseline_high_date:"2023-01-28"},description:"The ::part CSS pseudo-element represents any element within a shadow tree that has a matching part attribute."},{name:"::placeholder",browsers:["E79","FF51","FFA51","S10.1","SM10.3","C57","CA57","O44"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::placeholder"}],baseline:{status:"high",baseline_low_date:"2020-01-15",baseline_high_date:"2022-07-15"},description:"The ::placeholder CSS pseudo-element represents the placeholder text of a form element."},{name:"::scroll-marker",status:"experimental",baseline:{status:"false"},description:""},{name:"::scroll-marker-group",status:"experimental",baseline:{status:"false"},description:""},{name:"::slotted",browsers:["E79","FF63","FFA63","S10","SM10","C50","CA50","O37"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::slotted"}],baseline:{status:"high",baseline_low_date:"2020-01-15",baseline_high_date:"2022-07-15"},description:"The ::slotted() CSS pseudo-element represents any element that has been placed into a slot inside an HTML template (see Using templates and slots for more information)."},{name:"::spelling-error",browsers:["E121","S17.4","SM17.4","C121","CA121","O107"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::spelling-error"}],baseline:{status:"false"},description:"The ::spelling-error CSS pseudo-element represents a text segment which the user agent has flagged as incorrectly spelled."},{name:"::target-text",browsers:["E89","FF131","FFA131","S18.2","SM18.2","C89","CA89","O75"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::target-text"}],baseline:{status:"low",baseline_low_date:"2024-12-11"},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:"::view-transition",browsers:["E109","S18","SM18","C109","CA109","O95"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::view-transition"}],baseline:{status:"false"},description:"The ::view-transition CSS pseudo-element represents the root of the view transitions overlay, which contains all view transitions and sits over the top of all other page content."},{name:"::view-transition-group",browsers:["E109","S18","SM18","C109","CA109","O95"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::view-transition-group"}],baseline:{status:"false"},description:"The ::view-transition-group CSS pseudo-element represents a single view transition snapshot group."},{name:"::view-transition-image-pair",browsers:["E109","S18","SM18","C109","CA109","O95"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::view-transition-image-pair"}],baseline:{status:"false"},description:`The ::view-transition-image-pair CSS pseudo-element represents a container for a view transition's "old" and "new" view states \u2014 before and after the transition.`},{name:"::view-transition-new",browsers:["E109","S18","SM18","C109","CA109","O95"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::view-transition-new"}],baseline:{status:"false"},description:'The ::view-transition-new CSS pseudo-element represents the "new" view state of a view transition \u2014 a snapshot live representation of the state after the transition.'},{name:"::view-transition-old",browsers:["E109","S18","SM18","C109","CA109","O95"],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/::view-transition-old"}],baseline:{status:"false"},description:'The ::view-transition-old CSS pseudo-element represents the "old" view state of a view transition \u2014 a static snapshot of the old view, before the transition.'}]};var rs=class{constructor(e){this._properties=[],this._atDirectives=[],this._pseudoClasses=[],this._pseudoElements=[],this.addData(e)}provideProperties(){return this._properties}provideAtDirectives(){return this._atDirectives}providePseudoClasses(){return this._pseudoClasses}providePseudoElements(){return this._pseudoElements}addData(e){if(Array.isArray(e.properties))for(let n of e.properties)a1(n)&&this._properties.push(n);if(Array.isArray(e.atDirectives))for(let n of e.atDirectives)l1(n)&&this._atDirectives.push(n);if(Array.isArray(e.pseudoClasses))for(let n of e.pseudoClasses)c1(n)&&this._pseudoClasses.push(n);if(Array.isArray(e.pseudoElements))for(let n of e.pseudoElements)d1(n)&&this._pseudoElements.push(n)}};function a1(t){return typeof t.name=="string"}function l1(t){return typeof t.name=="string"}function c1(t){return typeof t.name=="string"}function d1(t){return typeof t.name=="string"}var aa=class{constructor(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||[])}setDataProviders(e,n){this.dataProviders=[],e&&this.dataProviders.push(new rs(kd)),this.dataProviders.push(...n),this.collectData()}collectData(){this._propertySet={},this._atDirectiveSet={},this._pseudoClassSet={},this._pseudoElementSet={},this.dataProviders.forEach(e=>{e.provideProperties().forEach(n=>{this._propertySet[n.name]||(this._propertySet[n.name]=n)}),e.provideAtDirectives().forEach(n=>{this._atDirectiveSet[n.name]||(this._atDirectiveSet[n.name]=n)}),e.providePseudoClasses().forEach(n=>{this._pseudoClassSet[n.name]||(this._pseudoClassSet[n.name]=n)}),e.providePseudoElements().forEach(n=>{this._pseudoElementSet[n.name]||(this._pseudoElementSet[n.name]=n)})}),this._properties=qr(this._propertySet),this._atDirectives=qr(this._atDirectiveSet),this._pseudoClasses=qr(this._pseudoClassSet),this._pseudoElements=qr(this._pseudoElementSet)}getProperty(e){return this._propertySet[e]}getAtDirective(e){return this._atDirectiveSet[e]}getPseudoClass(e){return this._pseudoClassSet[e]}getPseudoElement(e){return this._pseudoElementSet[e]}getProperties(){return this._properties}getAtDirectives(){return this._atDirectives}getPseudoClasses(){return this._pseudoClasses}getPseudoElements(){return this._pseudoElements}isKnownProperty(e){return e.toLowerCase()in this._propertySet}isStandardProperty(e){return this.isKnownProperty(e)&&(!this._propertySet[e.toLowerCase()].status||this._propertySet[e.toLowerCase()].status==="standard")}};function Lm(t,e,n){function i(s){let o=r(s),a;for(let l=o.length-1;l>=0;l--)a=Gi.create(ce.create(t.positionAt(o[l][0]),t.positionAt(o[l][1])),a);return a||(a=Gi.create(ce.create(s,s))),a}return e.map(i);function r(s){let o=t.offsetAt(s),a=n.findChildAtOffset(o,!0);if(!a)return[];let l=[];for(;a;){if(a.parent&&a.offset===a.parent.offset&&a.end===a.parent.end){a=a.parent;continue}a.type===v.Declarations&&o>a.offset&&o<a.end&&l.push([a.offset+1,a.end-1]),l.push([a.offset,a.end]),a=a.parent}return l}}function h1(t,e,n,i,r,s,o){return{configure:a=>{s.configure(a),e.configure(a?.completion),n.configure(a?.hover),i.configure(a?.importAliases)},setDataProviders:o.setDataProviders.bind(o),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:Wm,findDefinition:i.findDefinition.bind(i),findReferences:i.findReferences.bind(i),findDocumentHighlights:i.findDocumentHighlights.bind(i),findDocumentLinks:i.findDocumentLinks.bind(i),findDocumentLinks2:i.findDocumentLinks2.bind(i),findDocumentSymbols:i.findSymbolInformations.bind(i),findDocumentSymbols2:i.findDocumentSymbols.bind(i),doCodeActions:r.doCodeActions.bind(r),doCodeActions2:r.doCodeActions2.bind(r),findDocumentColors:i.findDocumentColors.bind(i),getColorPresentations:i.getColorPresentations.bind(i),prepareRename:i.prepareRename.bind(i),doRename:i.doRename.bind(i),getFoldingRanges:Tm,getSelectionRanges:Lm}}var u1={};function qm(t=u1){let e=new aa(t);return h1(new qn,new jn(null,t,e),new Qo(t&&t.clientCapabilities,e),new Jr(t&&t.fileSystemProvider,!1),new ea(e),new ra(e),e)}var Un=lt(bc());var os=lt(jm());function $m(t,e,n){let i={},r=0,s;return e>0&&(s=setInterval(()=>{let o=Date.now()-e*1e3,a=Object.keys(i);for(let l of a)i[l].cTime<o&&(delete i[l],r--)},e*1e3)),{get(o){let a=o.version,l=o.languageId,c=i[o.uri];if(c&&c.version===a&&c.languageId===l)return c.cTime=Date.now(),c.languageModel;let d=n(o);if(i[o.uri]={languageModel:d,version:a,languageId:l,cTime:Date.now()},c||r++,r===t){let p=Number.MAX_VALUE,b=null;for(let y in i){let M=i[y];M.cTime<p&&(b=y,p=M.cTime)}b&&(delete i[b],r--)}return d},onDocumentRemoved(o){let a=o.uri;i[a]&&(delete i[a],r--)},dispose(){typeof s<"u"&&(clearInterval(s),s=void 0,i={},r=0)}}}var Hm=lt(Vm());var da="\u2118";function la(t=0){return(e,n)=>{let i=n.split(`
|
102
102
|
`);return i.length>1?`@media(${da})${`
|
103
|
-
`.repeat(i.length-1)}${" ".repeat(i[i.length-1].length)}{`:`@media(${da})${" ".repeat(n.length+t)}{`}}function ca(t=0){return(e,n,i)=>{let r="_".repeat(n.length),s=" ".repeat(i.length+t);return`.${r}${s}{`}}function Bm(t){return t=t.replace(/@layer\s+[^;{]+(;|$)/g,""),t=t.replace(/@screen(\s+[^{]+){/g,la(-2)),t=t.replace(/@variants(\s+[^{]+){/g,la()),t=t.replace(/@responsive(\s*){/g,la()),t=t.replace(/@(utility)(\s+[^{]+){/g,ca()),t=t.replace(/@(theme)(\s+[^{]*){/g,ca()),t=t.replace(/@(custom-variant)(\s+[^;{]+);/g,(e,n)=>{let i=" ".repeat(e.length-n.length+3);return`@media(${da})${i}{}`}),t=t.replace(/@(custom-variant)(\s+[^{]+){/g,ca()),t=t.replace(/@(variant)(\s+[^{]+){/g,ca()),t=t.replace(/@layer(\s+[^{]{2,}){/g,la(-3)),t=t.replace(/@reference\s*([^;]{2,})/g,"@import $1"),t=t.replace(/@media(\s+screen\s*\([^)]+\))/g,(e,n)=>`@media (${da})${" ".repeat(n.length-4)}`),t=t.replace(/@import(\s*)("(?:[^"]+)"|'(?:[^']+)')\s*(.*?)(?=;|$)/g,(e,n,i,r)=>(r=r.replace(/((source|theme|prefix)\([^)]+\)\s*)+?/g,""),`@import${n}"${i.slice(1,-1)}" ${r}`)),t=t.replace(/(?<=\b(?:theme|config)\([^)]*)[.[\]]/g,"_"),t=t.replace(/--(value|modifier)\((.*?)\)/g,e=>e.replace(/[*]/g,"_")),t=t.replace(/--([a-zA-Z0-9-*]*)/g,e=>e.replace(/[*]/g,"_")),t}var ha=class{constructor(e){this.connection=e;this.documents=new Un.TextDocuments(Ji)}setup(){let e=this.connection,n=this.documents,i=qm(),r,s=Number.MAX_VALUE,o="\u2118",a=$m(10,60,
|
103
|
+
`.repeat(i.length-1)}${" ".repeat(i[i.length-1].length)}{`:`@media(${da})${" ".repeat(n.length+t)}{`}}function ca(t=0){return(e,n,i)=>{let r="_".repeat(n.length),s=" ".repeat(i.length+t);return`.${r}${s}{`}}function Bm(t){return t=t.replace(/@layer\s+[^;{]+(;|$)/g,""),t=t.replace(/@screen(\s+[^{]+){/g,la(-2)),t=t.replace(/@variants(\s+[^{]+){/g,la()),t=t.replace(/@responsive(\s*){/g,la()),t=t.replace(/@(utility)(\s+[^{]+){/g,ca()),t=t.replace(/@(theme)(\s+[^{]*){/g,ca()),t=t.replace(/@(custom-variant)(\s+[^;{]+);/g,(e,n)=>{let i=" ".repeat(e.length-n.length+3);return`@media(${da})${i}{}`}),t=t.replace(/@(custom-variant)(\s+[^{]+){/g,ca()),t=t.replace(/@(variant)(\s+[^{]+){/g,ca()),t=t.replace(/@layer(\s+[^{]{2,}){/g,la(-3)),t=t.replace(/@reference\s*([^;]{2,})/g,"@import $1"),t=t.replace(/@media(\s+screen\s*\([^)]+\))/g,(e,n)=>`@media (${da})${" ".repeat(n.length-4)}`),t=t.replace(/@import(\s*)("(?:[^"]+)"|'(?:[^']+)')\s*(.*?)(?=;|$)/g,(e,n,i,r)=>(r=r.replace(/((source|theme|prefix)\([^)]+\)\s*)+?/g,""),`@import${n}"${i.slice(1,-1)}" ${r}`)),t=t.replace(/(?<=\b(?:theme|config)\([^)]*)[.[\]]/g,"_"),t=t.replace(/--(value|modifier)\((.*?)\)/g,e=>e.replace(/[*]/g,"_")),t=t.replace(/--([a-zA-Z0-9-*]*)/g,e=>e.replace(/[*]/g,"_")),t}var ha=class{constructor(e){this.connection=e;this.documents=new Un.TextDocuments(Ji)}setup(){let e=this.connection,n=this.documents,i=qm(),r,s=Number.MAX_VALUE,o="\u2118",a=$m(10,60,R=>i.parseStylesheet(R));n.onDidOpen(({document:R})=>{e.sendNotification("@/tailwindCSS/documentReady",{uri:R.uri})}),n.onDidClose(({document:R})=>{a.onDocumentRemoved(R)}),e.onShutdown(()=>{a.dispose()}),e.onInitialize(R=>(r=R.workspaceFolders,Array.isArray(r)||(r=[],R.rootPath&&r.push({name:"",uri:os.URI.file(R.rootPath).toString()})),s=(0,Hm.default)(R.capabilities,"textDocument.foldingRange.rangeLimit",Number.MAX_VALUE),{capabilities:{textDocumentSync:Un.TextDocumentSyncKind.Full,completionProvider:{resolveProvider:!1,triggerCharacters:["/","-",":"]},hoverProvider:!0,foldingRangeProvider:!0,colorProvider:{},definitionProvider:!0,documentHighlightProvider:!0,documentSymbolProvider:!0,selectionRangeProvider:!0,referencesProvider:!0,codeActionProvider:!0,documentLinkProvider:{resolveProvider:!1},renameProvider:!0}}));function l(R,L){function V(){for(let Y of L){let le=Y.uri;if(le.endsWith("/")||(le=le+"/"),R.startsWith(le))return le}}return{resolveReference:(Y,le=R)=>{if(Y[0]==="/"){let W=V();if(W)return W+Y.substr(1)}return le=le.substr(0,le.lastIndexOf("/")+1),os.Utils.resolvePath(os.URI.parse(le),Y).toString()}}}async function c(R,L){let V=n.get(R);return V?await L({original:V,document:x(V),settings:await b(V)}):null}function d(R,L){let V=R.getText({start:{line:L.line,character:0},end:L}),Y=!1,le=!1;for(let W=V.length-1;W>=0;W--){let k=V[W];if(k===`
|
104
|
+
`)break;k==="("&&!le?(V.startsWith(" source(",W-7)||V.startsWith(" theme(",W-6)||V.startsWith(" prefix(",W-7))&&(le=!0):k==="@"&&!Y&&V.startsWith("@import ",W)&&(Y=!0)}return Y&&le}e.onCompletion(async({textDocument:R,position:L},V)=>c(R.uri,async({original:Y,document:le,settings:W})=>{if(d(Y,L))return{isIncomplete:!1,items:[]};let k=await i.doComplete2(le,L,a.get(le),l(le.uri,r),W?.completion);return{isIncomplete:k.isIncomplete,items:k.items.flatMap(S=>S.kind===Un.CompletionItemKind.Function&&S.label==="calc()"?[S,{...S,label:"theme()",filterText:"theme",documentation:{kind:"markdown",value:"Use the `theme()` function to access your Tailwind config values using dot notation."},command:{title:"",command:"editor.action.triggerSuggest"},textEdit:{...S.textEdit,newText:S.textEdit.newText.replace(/^calc\(/,"theme(")}}]:S)}})),e.onHover(({textDocument:R,position:L},V)=>c(R.uri,({document:Y,settings:le})=>i.doHover(Y,L,a.get(Y),le?.hover))),e.onFoldingRanges(({textDocument:R},L)=>c(R.uri,({document:V})=>i.getFoldingRanges(V,{rangeLimit:s}))),e.onDocumentColor(({textDocument:R})=>c(R.uri,({document:L})=>i.findDocumentColors(L,a.get(L)))),e.onColorPresentation(({textDocument:R,color:L,range:V})=>c(R.uri,({document:Y})=>i.getColorPresentations(Y,a.get(Y),L,V))),e.onDefinition(({textDocument:R,position:L})=>c(R.uri,({document:V})=>i.findDefinition(V,L,a.get(V)))),e.onDocumentHighlight(({textDocument:R,position:L})=>c(R.uri,({document:V})=>i.findDocumentHighlights(V,L,a.get(V)))),e.onDocumentSymbol(({textDocument:R})=>c(R.uri,({document:L})=>i.findDocumentSymbols(L,a.get(L)).map(V=>{if(V.name===`@media (${o})`){let W=n.get(V.location.uri).getText(V.location.range).trim().match(/^(@[^\s]+)(?:([^{]+)[{]|([^;{]+);)/);W&&(V.name=`${W[1]} ${W[2]?.trim()??W[3]?.trim()}`)}else if(/^\._+$/.test(V.name)){let W=n.get(V.location.uri).getText(V.location.range).trim().match(/^(@[^\s]+)(?:([^{]+)[{]|([^;{]+);)/);W&&(V.name=`${W[1]} ${W[2]?.trim()??W[3]?.trim()}`)}return V}))),e.onSelectionRanges(({textDocument:R,positions:L})=>c(R.uri,({document:V})=>i.getSelectionRanges(V,L,a.get(V)))),e.onReferences(({textDocument:R,position:L})=>c(R.uri,({document:V})=>i.findReferences(V,L,a.get(V)))),e.onCodeAction(({textDocument:R,range:L,context:V})=>c(R.uri,({document:Y})=>i.doCodeActions2(Y,L,V,a.get(Y)))),e.onDocumentLinks(({textDocument:R})=>c(R.uri,({document:L})=>i.findDocumentLinks2(L,a.get(L),l(L.uri,r)))),e.onRenameRequest(({textDocument:R,position:L,newName:V})=>c(R.uri,({document:Y})=>i.doRename(Y,L,V,a.get(Y))));let p={};n.onDidClose(R=>{delete p[R.document.uri]});function b(R){let L=p[R.uri];if(!L){let V={items:[{scopeUri:R.uri,section:"css"}]};L=e.sendRequest(Un.ConfigurationRequest.type,V).then(Y=>Y[0]),p[R.uri]=L}return L}e.onDidChangeConfiguration(R=>{y(R.settings.css)});function y(R){i.configure(R),p={},n.all().forEach(F)}let M={},P=500,Z={setTimeout(R,L,...V){let Y=setTimeout(R,L,...V);return{dispose:()=>clearTimeout(Y)}}};n.onDidChangeContent(R=>{F(R.document)}),n.onDidClose(R=>{$(R.document),e.sendDiagnostics({uri:R.document.uri,diagnostics:[]})});function $(R){let L=M[R.uri];L&&(L.dispose(),delete M[R.uri])}function F(R){$(R),M[R.uri]=Z.setTimeout(()=>{delete M[R.uri],N(R)},P)}function x(R){let L=Bm(R.getText());return Ji.create(R.uri,R.languageId,R.version,L)}async function N(R){R=x(R);let L=await b(R),V=i.doValidation(R,i.parseStylesheet(R),L).filter(Y=>!(Y.code==="unknownAtRules"&&/Unknown at rule @(tailwind|apply|config|theme|plugin|source|utility|variant|custom-variant|slot)/.test(Y.message)));e.sendDiagnostics({uri:R.uri,diagnostics:V})}}listen(){this.documents.listen(this.connection),this.connection.listen()}};var Km=process.argv.length<=2?(0,Zi.createConnection)(Zi.ProposedFeatures.all,process.stdin,process.stdout):(0,Zi.createConnection)(Zi.ProposedFeatures.all);qu(console,Km);process.on("unhandledRejection",t=>{console.error("Unhandled exception",t)});var Gm=new ha(Km);Gm.setup();Gm.listen();
|