astro-vscode 2.4.1 → 2.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- var Lj=Object.create;var Od=Object.defineProperty;var Nj=Object.getOwnPropertyDescriptor;var zj=Object.getOwnPropertyNames;var qj=Object.getPrototypeOf,jj=Object.prototype.hasOwnProperty;var xe=(t,e)=>()=>(t&&(e=t(t=0)),e);var L=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Ib=(t,e)=>{for(var n in e)Od(t,n,{get:e[n],enumerable:!0})},cC=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of zj(e))!jj.call(t,i)&&i!==n&&Od(t,i,{get:()=>e[i],enumerable:!(r=Nj(e,i))||r.enumerable});return t};var sn=(t,e,n)=>(n=t!=null?Lj(qj(t)):{},cC(e||!t||!t.__esModule?Od(n,"default",{value:t,enumerable:!0}):n,t)),ea=t=>cC(Od({},"__esModule",{value:!0}),t);var uC=L((_de,Wj)=>{Wj.exports={name:"@astrojs/language-server",version:"2.4.1",author:"withastro",license:"MIT",repository:{type:"git",url:"https://github.com/withastro/language-tools",directory:"packages/language-server"},type:"commonjs",main:"dist/index.js",files:["bin","dist/**/*.js","dist/**/*.d.ts","types/**/*.d.ts"],bin:{"astro-ls":"./bin/nodeServer.js"},scripts:{build:"tsc",dev:"tsc --watch",test:"mocha --timeout 10000 --require tsx --require test/takedown.ts test/misc/init.test.ts test/**/*.test.ts","test:match":"pnpm run test -g"},dependencies:{"@astrojs/compiler":"1.5.7","@jridgewell/sourcemap-codec":"^1.4.15","@volar/kit":"~1.10.3","@volar/language-core":"~1.10.3","@volar/language-server":"~1.10.3","@volar/language-service":"~1.10.3","@volar/source-map":"~1.10.3","@volar/typescript":"~1.10.3","fast-glob":"^3.2.12","muggle-string":"^0.3.1","volar-service-css":"0.0.14","volar-service-emmet":"0.0.14","volar-service-html":"0.0.14","volar-service-prettier":"0.0.14","volar-service-typescript":"0.0.14","volar-service-typescript-twoslash-queries":"0.0.14","vscode-html-languageservice":"^5.1.0","vscode-uri":"^3.0.8"},devDependencies:{"@astrojs/svelte":"^4.0.3","@astrojs/vue":"^3.0.1","@types/chai":"^4.3.5","@types/mocha":"^10.0.1","@types/node":"^16.18.26",astro:"^3.3.0",chai:"^4.3.7",mocha:"^10.2.0",tsx:"^3.12.7",typescript:"~5.1.3","vscode-languageserver-protocol":"^3.17.5","vscode-languageserver-textdocument":"^1.0.11"},peerDependencies:{prettier:"^3.0.0","prettier-plugin-astro":">=0.11.0"},peerDependenciesMeta:{prettier:{optional:!0},"prettier-plugin-astro":{optional:!0}}}});var Ld=L(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.thenable=Qt.typedArray=Qt.stringArray=Qt.array=Qt.func=Qt.error=Qt.number=Qt.string=Qt.boolean=void 0;function Uj(t){return t===!0||t===!1}Qt.boolean=Uj;function dC(t){return typeof t=="string"||t instanceof String}Qt.string=dC;function Hj(t){return typeof t=="number"||t instanceof Number}Qt.number=Hj;function Bj(t){return t instanceof Error}Qt.error=Bj;function hC(t){return typeof t=="function"}Qt.func=hC;function pC(t){return Array.isArray(t)}Qt.array=pC;function $j(t){return pC(t)&&t.every(e=>dC(e))}Qt.stringArray=$j;function Vj(t,e){return Array.isArray(t)&&t.every(e)}Qt.typedArray=Vj;function Gj(t){return t&&hC(t.then)}Qt.thenable=Gj});var Ya=L(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.stringArray=wn.array=wn.func=wn.error=wn.number=wn.string=wn.boolean=void 0;function Kj(t){return t===!0||t===!1}wn.boolean=Kj;function fC(t){return typeof t=="string"||t instanceof String}wn.string=fC;function Jj(t){return typeof t=="number"||t instanceof Number}wn.number=Jj;function Xj(t){return t instanceof Error}wn.error=Xj;function Yj(t){return typeof t=="function"}wn.func=Yj;function mC(t){return Array.isArray(t)}wn.array=mC;function Qj(t){return mC(t)&&t.every(e=>fC(e))}wn.stringArray=Qj});var iv=L(Fe=>{"use strict";Object.defineProperty(Fe,"__esModule",{value:!0});Fe.Message=Fe.NotificationType9=Fe.NotificationType8=Fe.NotificationType7=Fe.NotificationType6=Fe.NotificationType5=Fe.NotificationType4=Fe.NotificationType3=Fe.NotificationType2=Fe.NotificationType1=Fe.NotificationType0=Fe.NotificationType=Fe.RequestType9=Fe.RequestType8=Fe.RequestType7=Fe.RequestType6=Fe.RequestType5=Fe.RequestType4=Fe.RequestType3=Fe.RequestType2=Fe.RequestType1=Fe.RequestType=Fe.RequestType0=Fe.AbstractMessageSignature=Fe.ParameterStructures=Fe.ResponseError=Fe.ErrorCodes=void 0;var ta=Ya(),Ob;(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})(Ob||(Fe.ErrorCodes=Ob={}));var nu=class extends Error{constructor(e,n,r){super(n),this.code=ta.number(e)?e:Ob.UnknownErrorCode,this.data=r,Object.setPrototypeOf(this,nu.prototype)}toJson(){let e={code:this.code,message:this.message};return this.data!==void 0&&(e.data=this.data),e}};Fe.ResponseError=nu;var cn=class{constructor(e){this.kind=e}static is(e){return e===cn.auto||e===cn.byName||e===cn.byPosition}toString(){return this.kind}};Fe.ParameterStructures=cn;cn.auto=new cn("auto");cn.byPosition=new cn("byPosition");cn.byName=new cn("byName");var Tt=class{constructor(e,n){this.method=e,this.numberOfParams=n}get parameterStructures(){return cn.auto}};Fe.AbstractMessageSignature=Tt;var Lb=class extends Tt{constructor(e){super(e,0)}};Fe.RequestType0=Lb;var Nb=class extends Tt{constructor(e,n=cn.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};Fe.RequestType=Nb;var zb=class extends Tt{constructor(e,n=cn.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};Fe.RequestType1=zb;var qb=class extends Tt{constructor(e){super(e,2)}};Fe.RequestType2=qb;var jb=class extends Tt{constructor(e){super(e,3)}};Fe.RequestType3=jb;var Wb=class extends Tt{constructor(e){super(e,4)}};Fe.RequestType4=Wb;var Ub=class extends Tt{constructor(e){super(e,5)}};Fe.RequestType5=Ub;var Hb=class extends Tt{constructor(e){super(e,6)}};Fe.RequestType6=Hb;var Bb=class extends Tt{constructor(e){super(e,7)}};Fe.RequestType7=Bb;var $b=class extends Tt{constructor(e){super(e,8)}};Fe.RequestType8=$b;var Vb=class extends Tt{constructor(e){super(e,9)}};Fe.RequestType9=Vb;var Gb=class extends Tt{constructor(e,n=cn.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};Fe.NotificationType=Gb;var Kb=class extends Tt{constructor(e){super(e,0)}};Fe.NotificationType0=Kb;var Jb=class extends Tt{constructor(e,n=cn.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};Fe.NotificationType1=Jb;var Xb=class extends Tt{constructor(e){super(e,2)}};Fe.NotificationType2=Xb;var Yb=class extends Tt{constructor(e){super(e,3)}};Fe.NotificationType3=Yb;var Qb=class extends Tt{constructor(e){super(e,4)}};Fe.NotificationType4=Qb;var Zb=class extends Tt{constructor(e){super(e,5)}};Fe.NotificationType5=Zb;var ev=class extends Tt{constructor(e){super(e,6)}};Fe.NotificationType6=ev;var tv=class extends Tt{constructor(e){super(e,7)}};Fe.NotificationType7=tv;var nv=class extends Tt{constructor(e){super(e,8)}};Fe.NotificationType8=nv;var rv=class extends Tt{constructor(e){super(e,9)}};Fe.NotificationType9=rv;var gC;(function(t){function e(i){let o=i;return o&&ta.string(o.method)&&(ta.string(o.id)||ta.number(o.id))}t.isRequest=e;function n(i){let o=i;return o&&ta.string(o.method)&&i.id===void 0}t.isNotification=n;function r(i){let o=i;return o&&(o.result!==void 0||!!o.error)&&(ta.string(o.id)||ta.number(o.id)||o.id===null)}t.isResponse=r})(gC||(Fe.Message=gC={}))});var sv=L(cs=>{"use strict";var bC;Object.defineProperty(cs,"__esModule",{value:!0});cs.LRUCache=cs.LinkedMap=cs.Touch=void 0;var _n;(function(t){t.None=0,t.First=1,t.AsOld=t.First,t.Last=2,t.AsNew=t.Last})(_n||(cs.Touch=_n={}));var Nd=class{constructor(){this[bC]="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=_n.None){let r=this._map.get(e);if(r)return n!==_n.None&&this.touch(r,n),r.value}set(e,n,r=_n.None){let i=this._map.get(e);if(i)i.value=n,r!==_n.None&&this.touch(i,r);else{switch(i={key:e,value:n,next:void 0,previous:void 0},r){case _n.None:this.addItemLast(i);break;case _n.First:this.addItemFirst(i);break;case _n.Last:this.addItemLast(i);break;default:this.addItemLast(i);break}this._map.set(e,i),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){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 r=this._state,i=this._head;for(;i;){if(n?e.bind(n)(i.value,i.key,this):e(i.value,i.key,this),this._state!==r)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){let e=this._state,n=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(n){let i={value:n.key,done:!1};return n=n.next,i}else return{value:void 0,done:!0}}};return r}values(){let e=this._state,n=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(n){let i={value:n.value,done:!1};return n=n.next,i}else return{value:void 0,done:!0}}};return r}entries(){let e=this._state,n=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(n){let i={value:[n.key,n.value],done:!1};return n=n.next,i}else return{value:void 0,done:!0}}};return r}[(bC=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let n=this._head,r=this.size;for(;n&&r>e;)this._map.delete(n.key),n=n.next,r--;this._head=n,this._size=r,n&&(n.previous=void 0),this._state++}addItemFirst(e){if(!this._head&&!this._tail)this._tail=e;else if(this._head)e.next=this._head,this._head.previous=e;else throw new Error("Invalid list");this._head=e,this._state++}addItemLast(e){if(!this._head&&!this._tail)this._head=e;else if(this._tail)e.previous=this._tail,this._tail.next=e;else throw new Error("Invalid list");this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{let n=e.next,r=e.previous;if(!n||!r)throw new Error("Invalid list");n.previous=r,r.next=n}e.next=void 0,e.previous=void 0,this._state++}touch(e,n){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(n!==_n.First&&n!==_n.Last)){if(n===_n.First){if(e===this._head)return;let r=e.next,i=e.previous;e===this._tail?(i.next=void 0,this._tail=i):(r.previous=i,i.next=r),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(n===_n.Last){if(e===this._tail)return;let r=e.next,i=e.previous;e===this._head?(r.previous=void 0,this._head=r):(r.previous=i,i.next=r),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){let e=[];return this.forEach((n,r)=>{e.push([r,n])}),e}fromJSON(e){this.clear();for(let[n,r]of e)this.set(n,r)}};cs.LinkedMap=Nd;var ov=class extends Nd{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=_n.AsNew){return super.get(e,n)}peek(e){return super.get(e,_n.None)}set(e,n){return super.set(e,n,_n.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}};cs.LRUCache=ov});var yC=L(zd=>{"use strict";Object.defineProperty(zd,"__esModule",{value:!0});zd.Disposable=void 0;var vC;(function(t){function e(n){return{dispose:n}}t.create=e})(vC||(zd.Disposable=vC={}))});var us=L(cv=>{"use strict";Object.defineProperty(cv,"__esModule",{value:!0});var av;function lv(){if(av===void 0)throw new Error("No runtime abstraction layer installed");return av}(function(t){function e(n){if(n===void 0)throw new Error("No runtime abstraction layer provided");av=n}t.install=e})(lv||(lv={}));cv.default=lv});var el=L(Za=>{"use strict";Object.defineProperty(Za,"__esModule",{value:!0});Za.Emitter=Za.Event=void 0;var Zj=us(),wC;(function(t){let e={dispose(){}};t.None=function(){return e}})(wC||(Za.Event=wC={}));var uv=class{add(e,n=null,r){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(n),Array.isArray(r)&&r.push({dispose:()=>this.remove(e,n)})}remove(e,n=null){if(!this._callbacks)return;let r=!1;for(let i=0,o=this._callbacks.length;i<o;i++)if(this._callbacks[i]===e)if(this._contexts[i]===n){this._callbacks.splice(i,1),this._contexts.splice(i,1);return}else r=!0;if(r)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=[],r=this._callbacks.slice(0),i=this._contexts.slice(0);for(let o=0,a=r.length;o<a;o++)try{n.push(r[o].apply(i[o],e))}catch(l){(0,Zj.default)().console.error(l)}return n}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},Qa=class{constructor(e){this._options=e}get event(){return this._event||(this._event=(e,n,r)=>{this._callbacks||(this._callbacks=new uv),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(e,n);let i={dispose:()=>{this._callbacks&&(this._callbacks.remove(e,n),i.dispose=Qa._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(r)&&r.push(i),i}),this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}};Za.Emitter=Qa;Qa._noop=function(){}});var Wd=L(tl=>{"use strict";Object.defineProperty(tl,"__esModule",{value:!0});tl.CancellationTokenSource=tl.CancellationToken=void 0;var eW=us(),tW=Ya(),dv=el(),qd;(function(t){t.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:dv.Event.None}),t.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:dv.Event.None});function e(n){let r=n;return r&&(r===t.None||r===t.Cancelled||tW.boolean(r.isCancellationRequested)&&!!r.onCancellationRequested)}t.is=e})(qd||(tl.CancellationToken=qd={}));var nW=Object.freeze(function(t,e){let n=(0,eW.default)().timer.setTimeout(t.bind(e),0);return{dispose(){n.dispose()}}}),jd=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?nW:(this._emitter||(this._emitter=new dv.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},hv=class{get token(){return this._token||(this._token=new jd),this._token}cancel(){this._token?this._token.cancel():this._token=qd.Cancelled}dispose(){this._token?this._token instanceof jd&&this._token.dispose():this._token=qd.None}};tl.CancellationTokenSource=hv});var _C=L(nl=>{"use strict";Object.defineProperty(nl,"__esModule",{value:!0});nl.SharedArrayReceiverStrategy=nl.SharedArraySenderStrategy=void 0;var rW=Wd(),ru;(function(t){t.Continue=0,t.Cancelled=1})(ru||(ru={}));var pv=class{constructor(){this.buffers=new Map}enableCancellation(e){if(e.id===null)return;let n=new SharedArrayBuffer(4),r=new Int32Array(n,0,1);r[0]=ru.Continue,this.buffers.set(e.id,n),e.$cancellationData=n}async sendCancellation(e,n){let r=this.buffers.get(n);if(r===void 0)return;let i=new Int32Array(r,0,1);Atomics.store(i,0,ru.Cancelled)}cleanup(e){this.buffers.delete(e)}dispose(){this.buffers.clear()}};nl.SharedArraySenderStrategy=pv;var fv=class{constructor(e){this.data=new Int32Array(e,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===ru.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}},mv=class{constructor(e){this.token=new fv(e)}cancel(){}dispose(){}},gv=class{constructor(){this.kind="request"}createCancellationTokenSource(e){let n=e.$cancellationData;return n===void 0?new rW.CancellationTokenSource:new mv(n)}};nl.SharedArrayReceiverStrategy=gv});var vv=L(Ud=>{"use strict";Object.defineProperty(Ud,"__esModule",{value:!0});Ud.Semaphore=void 0;var iW=us(),bv=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,r)=>{this._waiting.push({thunk:e,resolve:n,reject:r}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length===0||this._active===this._capacity||(0,iW.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(r=>{this._active--,e.resolve(r),this.runNext()},r=>{this._active--,e.reject(r),this.runNext()}):(this._active--,e.resolve(n),this.runNext())}catch(n){this._active--,e.reject(n),this.runNext()}}};Ud.Semaphore=bv});var xC=L(ds=>{"use strict";Object.defineProperty(ds,"__esModule",{value:!0});ds.ReadableStreamMessageReader=ds.AbstractMessageReader=ds.MessageReader=void 0;var wv=us(),rl=Ya(),yv=el(),oW=vv(),SC;(function(t){function e(n){let r=n;return r&&rl.func(r.listen)&&rl.func(r.dispose)&&rl.func(r.onError)&&rl.func(r.onClose)&&rl.func(r.onPartialMessage)}t.is=e})(SC||(ds.MessageReader=SC={}));var Hd=class{constructor(){this.errorEmitter=new yv.Emitter,this.closeEmitter=new yv.Emitter,this.partialMessageEmitter=new yv.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: ${rl.string(e.message)?e.message:"unknown"}`)}};ds.AbstractMessageReader=Hd;var _v;(function(t){function e(n){let r,i,o,a=new Map,l,s=new Map;if(n===void 0||typeof n=="string")r=n??"utf-8";else{if(r=n.charset??"utf-8",n.contentDecoder!==void 0&&(o=n.contentDecoder,a.set(o.name,o)),n.contentDecoders!==void 0)for(let c of n.contentDecoders)a.set(c.name,c);if(n.contentTypeDecoder!==void 0&&(l=n.contentTypeDecoder,s.set(l.name,l)),n.contentTypeDecoders!==void 0)for(let c of n.contentTypeDecoders)s.set(c.name,c)}return l===void 0&&(l=(0,wv.default)().applicationJson.decoder,s.set(l.name,l)),{charset:r,contentDecoder:o,contentDecoders:a,contentTypeDecoder:l,contentTypeDecoders:s}}t.fromOptions=e})(_v||(_v={}));var Sv=class extends Hd{constructor(e,n){super(),this.readable=e,this.options=_v.fromOptions(n),this.buffer=(0,wv.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new oW.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(r=>{this.onData(r)});return this.readable.onError(r=>this.fireError(r)),this.readable.onClose(()=>this.fireClose()),n}onData(e){try{for(this.buffer.append(e);;){if(this.nextMessageLength===-1){let r=this.buffer.tryReadHeaders(!0);if(!r)return;let i=r.get("content-length");if(!i){this.fireError(new Error(`Header must provide a Content-Length property.
2
+ var Lj=Object.create;var Od=Object.defineProperty;var Nj=Object.getOwnPropertyDescriptor;var zj=Object.getOwnPropertyNames;var qj=Object.getPrototypeOf,jj=Object.prototype.hasOwnProperty;var xe=(t,e)=>()=>(t&&(e=t(t=0)),e);var L=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Ib=(t,e)=>{for(var n in e)Od(t,n,{get:e[n],enumerable:!0})},cC=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of zj(e))!jj.call(t,i)&&i!==n&&Od(t,i,{get:()=>e[i],enumerable:!(r=Nj(e,i))||r.enumerable});return t};var sn=(t,e,n)=>(n=t!=null?Lj(qj(t)):{},cC(e||!t||!t.__esModule?Od(n,"default",{value:t,enumerable:!0}):n,t)),ea=t=>cC(Od({},"__esModule",{value:!0}),t);var uC=L((_de,Wj)=>{Wj.exports={name:"@astrojs/language-server",version:"2.5.1",author:"withastro",license:"MIT",repository:{type:"git",url:"https://github.com/withastro/language-tools",directory:"packages/language-server"},type:"commonjs",main:"dist/index.js",files:["bin","dist/**/*.js","dist/**/*.d.ts","types/**/*.d.ts"],bin:{"astro-ls":"./bin/nodeServer.js"},scripts:{build:"tsc",dev:"tsc --watch",test:"mocha --timeout 10000 --require tsx --require test/takedown.ts test/misc/init.test.ts test/**/*.test.ts","test:match":"pnpm run test -g"},dependencies:{"@astrojs/compiler":"^2.2.1","@jridgewell/sourcemap-codec":"^1.4.15","@volar/kit":"~1.10.3","@volar/language-core":"~1.10.3","@volar/language-server":"~1.10.3","@volar/language-service":"~1.10.3","@volar/source-map":"~1.10.3","@volar/typescript":"~1.10.3","fast-glob":"^3.2.12","muggle-string":"^0.3.1","volar-service-css":"0.0.14","volar-service-emmet":"0.0.14","volar-service-html":"0.0.14","volar-service-prettier":"0.0.14","volar-service-typescript":"0.0.14","volar-service-typescript-twoslash-queries":"0.0.14","vscode-html-languageservice":"^5.1.0","vscode-uri":"^3.0.8"},devDependencies:{"@astrojs/svelte":"^4.0.3","@astrojs/vue":"^3.0.1","@types/chai":"^4.3.5","@types/mocha":"^10.0.1","@types/node":"^16.18.26",astro:"^3.3.0",chai:"^4.3.7",mocha:"^10.2.0",tsx:"^3.12.7",typescript:"~5.1.3","vscode-languageserver-protocol":"^3.17.5","vscode-languageserver-textdocument":"^1.0.11"},peerDependencies:{prettier:"^3.0.0","prettier-plugin-astro":">=0.11.0"},peerDependenciesMeta:{prettier:{optional:!0},"prettier-plugin-astro":{optional:!0}}}});var Ld=L(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.thenable=Qt.typedArray=Qt.stringArray=Qt.array=Qt.func=Qt.error=Qt.number=Qt.string=Qt.boolean=void 0;function Uj(t){return t===!0||t===!1}Qt.boolean=Uj;function dC(t){return typeof t=="string"||t instanceof String}Qt.string=dC;function Hj(t){return typeof t=="number"||t instanceof Number}Qt.number=Hj;function Bj(t){return t instanceof Error}Qt.error=Bj;function hC(t){return typeof t=="function"}Qt.func=hC;function pC(t){return Array.isArray(t)}Qt.array=pC;function $j(t){return pC(t)&&t.every(e=>dC(e))}Qt.stringArray=$j;function Vj(t,e){return Array.isArray(t)&&t.every(e)}Qt.typedArray=Vj;function Gj(t){return t&&hC(t.then)}Qt.thenable=Gj});var Ya=L(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.stringArray=wn.array=wn.func=wn.error=wn.number=wn.string=wn.boolean=void 0;function Kj(t){return t===!0||t===!1}wn.boolean=Kj;function fC(t){return typeof t=="string"||t instanceof String}wn.string=fC;function Jj(t){return typeof t=="number"||t instanceof Number}wn.number=Jj;function Xj(t){return t instanceof Error}wn.error=Xj;function Yj(t){return typeof t=="function"}wn.func=Yj;function mC(t){return Array.isArray(t)}wn.array=mC;function Qj(t){return mC(t)&&t.every(e=>fC(e))}wn.stringArray=Qj});var iv=L(Fe=>{"use strict";Object.defineProperty(Fe,"__esModule",{value:!0});Fe.Message=Fe.NotificationType9=Fe.NotificationType8=Fe.NotificationType7=Fe.NotificationType6=Fe.NotificationType5=Fe.NotificationType4=Fe.NotificationType3=Fe.NotificationType2=Fe.NotificationType1=Fe.NotificationType0=Fe.NotificationType=Fe.RequestType9=Fe.RequestType8=Fe.RequestType7=Fe.RequestType6=Fe.RequestType5=Fe.RequestType4=Fe.RequestType3=Fe.RequestType2=Fe.RequestType1=Fe.RequestType=Fe.RequestType0=Fe.AbstractMessageSignature=Fe.ParameterStructures=Fe.ResponseError=Fe.ErrorCodes=void 0;var ta=Ya(),Ob;(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})(Ob||(Fe.ErrorCodes=Ob={}));var nu=class extends Error{constructor(e,n,r){super(n),this.code=ta.number(e)?e:Ob.UnknownErrorCode,this.data=r,Object.setPrototypeOf(this,nu.prototype)}toJson(){let e={code:this.code,message:this.message};return this.data!==void 0&&(e.data=this.data),e}};Fe.ResponseError=nu;var cn=class{constructor(e){this.kind=e}static is(e){return e===cn.auto||e===cn.byName||e===cn.byPosition}toString(){return this.kind}};Fe.ParameterStructures=cn;cn.auto=new cn("auto");cn.byPosition=new cn("byPosition");cn.byName=new cn("byName");var Tt=class{constructor(e,n){this.method=e,this.numberOfParams=n}get parameterStructures(){return cn.auto}};Fe.AbstractMessageSignature=Tt;var Lb=class extends Tt{constructor(e){super(e,0)}};Fe.RequestType0=Lb;var Nb=class extends Tt{constructor(e,n=cn.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};Fe.RequestType=Nb;var zb=class extends Tt{constructor(e,n=cn.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};Fe.RequestType1=zb;var qb=class extends Tt{constructor(e){super(e,2)}};Fe.RequestType2=qb;var jb=class extends Tt{constructor(e){super(e,3)}};Fe.RequestType3=jb;var Wb=class extends Tt{constructor(e){super(e,4)}};Fe.RequestType4=Wb;var Ub=class extends Tt{constructor(e){super(e,5)}};Fe.RequestType5=Ub;var Hb=class extends Tt{constructor(e){super(e,6)}};Fe.RequestType6=Hb;var Bb=class extends Tt{constructor(e){super(e,7)}};Fe.RequestType7=Bb;var $b=class extends Tt{constructor(e){super(e,8)}};Fe.RequestType8=$b;var Vb=class extends Tt{constructor(e){super(e,9)}};Fe.RequestType9=Vb;var Gb=class extends Tt{constructor(e,n=cn.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};Fe.NotificationType=Gb;var Kb=class extends Tt{constructor(e){super(e,0)}};Fe.NotificationType0=Kb;var Jb=class extends Tt{constructor(e,n=cn.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};Fe.NotificationType1=Jb;var Xb=class extends Tt{constructor(e){super(e,2)}};Fe.NotificationType2=Xb;var Yb=class extends Tt{constructor(e){super(e,3)}};Fe.NotificationType3=Yb;var Qb=class extends Tt{constructor(e){super(e,4)}};Fe.NotificationType4=Qb;var Zb=class extends Tt{constructor(e){super(e,5)}};Fe.NotificationType5=Zb;var ev=class extends Tt{constructor(e){super(e,6)}};Fe.NotificationType6=ev;var tv=class extends Tt{constructor(e){super(e,7)}};Fe.NotificationType7=tv;var nv=class extends Tt{constructor(e){super(e,8)}};Fe.NotificationType8=nv;var rv=class extends Tt{constructor(e){super(e,9)}};Fe.NotificationType9=rv;var gC;(function(t){function e(i){let o=i;return o&&ta.string(o.method)&&(ta.string(o.id)||ta.number(o.id))}t.isRequest=e;function n(i){let o=i;return o&&ta.string(o.method)&&i.id===void 0}t.isNotification=n;function r(i){let o=i;return o&&(o.result!==void 0||!!o.error)&&(ta.string(o.id)||ta.number(o.id)||o.id===null)}t.isResponse=r})(gC||(Fe.Message=gC={}))});var sv=L(cs=>{"use strict";var bC;Object.defineProperty(cs,"__esModule",{value:!0});cs.LRUCache=cs.LinkedMap=cs.Touch=void 0;var _n;(function(t){t.None=0,t.First=1,t.AsOld=t.First,t.Last=2,t.AsNew=t.Last})(_n||(cs.Touch=_n={}));var Nd=class{constructor(){this[bC]="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=_n.None){let r=this._map.get(e);if(r)return n!==_n.None&&this.touch(r,n),r.value}set(e,n,r=_n.None){let i=this._map.get(e);if(i)i.value=n,r!==_n.None&&this.touch(i,r);else{switch(i={key:e,value:n,next:void 0,previous:void 0},r){case _n.None:this.addItemLast(i);break;case _n.First:this.addItemFirst(i);break;case _n.Last:this.addItemLast(i);break;default:this.addItemLast(i);break}this._map.set(e,i),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){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 r=this._state,i=this._head;for(;i;){if(n?e.bind(n)(i.value,i.key,this):e(i.value,i.key,this),this._state!==r)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){let e=this._state,n=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(n){let i={value:n.key,done:!1};return n=n.next,i}else return{value:void 0,done:!0}}};return r}values(){let e=this._state,n=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(n){let i={value:n.value,done:!1};return n=n.next,i}else return{value:void 0,done:!0}}};return r}entries(){let e=this._state,n=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(n){let i={value:[n.key,n.value],done:!1};return n=n.next,i}else return{value:void 0,done:!0}}};return r}[(bC=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let n=this._head,r=this.size;for(;n&&r>e;)this._map.delete(n.key),n=n.next,r--;this._head=n,this._size=r,n&&(n.previous=void 0),this._state++}addItemFirst(e){if(!this._head&&!this._tail)this._tail=e;else if(this._head)e.next=this._head,this._head.previous=e;else throw new Error("Invalid list");this._head=e,this._state++}addItemLast(e){if(!this._head&&!this._tail)this._head=e;else if(this._tail)e.previous=this._tail,this._tail.next=e;else throw new Error("Invalid list");this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{let n=e.next,r=e.previous;if(!n||!r)throw new Error("Invalid list");n.previous=r,r.next=n}e.next=void 0,e.previous=void 0,this._state++}touch(e,n){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(n!==_n.First&&n!==_n.Last)){if(n===_n.First){if(e===this._head)return;let r=e.next,i=e.previous;e===this._tail?(i.next=void 0,this._tail=i):(r.previous=i,i.next=r),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(n===_n.Last){if(e===this._tail)return;let r=e.next,i=e.previous;e===this._head?(r.previous=void 0,this._head=r):(r.previous=i,i.next=r),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){let e=[];return this.forEach((n,r)=>{e.push([r,n])}),e}fromJSON(e){this.clear();for(let[n,r]of e)this.set(n,r)}};cs.LinkedMap=Nd;var ov=class extends Nd{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=_n.AsNew){return super.get(e,n)}peek(e){return super.get(e,_n.None)}set(e,n){return super.set(e,n,_n.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}};cs.LRUCache=ov});var yC=L(zd=>{"use strict";Object.defineProperty(zd,"__esModule",{value:!0});zd.Disposable=void 0;var vC;(function(t){function e(n){return{dispose:n}}t.create=e})(vC||(zd.Disposable=vC={}))});var us=L(cv=>{"use strict";Object.defineProperty(cv,"__esModule",{value:!0});var av;function lv(){if(av===void 0)throw new Error("No runtime abstraction layer installed");return av}(function(t){function e(n){if(n===void 0)throw new Error("No runtime abstraction layer provided");av=n}t.install=e})(lv||(lv={}));cv.default=lv});var el=L(Za=>{"use strict";Object.defineProperty(Za,"__esModule",{value:!0});Za.Emitter=Za.Event=void 0;var Zj=us(),wC;(function(t){let e={dispose(){}};t.None=function(){return e}})(wC||(Za.Event=wC={}));var uv=class{add(e,n=null,r){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(n),Array.isArray(r)&&r.push({dispose:()=>this.remove(e,n)})}remove(e,n=null){if(!this._callbacks)return;let r=!1;for(let i=0,o=this._callbacks.length;i<o;i++)if(this._callbacks[i]===e)if(this._contexts[i]===n){this._callbacks.splice(i,1),this._contexts.splice(i,1);return}else r=!0;if(r)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=[],r=this._callbacks.slice(0),i=this._contexts.slice(0);for(let o=0,a=r.length;o<a;o++)try{n.push(r[o].apply(i[o],e))}catch(l){(0,Zj.default)().console.error(l)}return n}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},Qa=class{constructor(e){this._options=e}get event(){return this._event||(this._event=(e,n,r)=>{this._callbacks||(this._callbacks=new uv),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(e,n);let i={dispose:()=>{this._callbacks&&(this._callbacks.remove(e,n),i.dispose=Qa._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(r)&&r.push(i),i}),this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}};Za.Emitter=Qa;Qa._noop=function(){}});var Wd=L(tl=>{"use strict";Object.defineProperty(tl,"__esModule",{value:!0});tl.CancellationTokenSource=tl.CancellationToken=void 0;var eW=us(),tW=Ya(),dv=el(),qd;(function(t){t.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:dv.Event.None}),t.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:dv.Event.None});function e(n){let r=n;return r&&(r===t.None||r===t.Cancelled||tW.boolean(r.isCancellationRequested)&&!!r.onCancellationRequested)}t.is=e})(qd||(tl.CancellationToken=qd={}));var nW=Object.freeze(function(t,e){let n=(0,eW.default)().timer.setTimeout(t.bind(e),0);return{dispose(){n.dispose()}}}),jd=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?nW:(this._emitter||(this._emitter=new dv.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},hv=class{get token(){return this._token||(this._token=new jd),this._token}cancel(){this._token?this._token.cancel():this._token=qd.Cancelled}dispose(){this._token?this._token instanceof jd&&this._token.dispose():this._token=qd.None}};tl.CancellationTokenSource=hv});var _C=L(nl=>{"use strict";Object.defineProperty(nl,"__esModule",{value:!0});nl.SharedArrayReceiverStrategy=nl.SharedArraySenderStrategy=void 0;var rW=Wd(),ru;(function(t){t.Continue=0,t.Cancelled=1})(ru||(ru={}));var pv=class{constructor(){this.buffers=new Map}enableCancellation(e){if(e.id===null)return;let n=new SharedArrayBuffer(4),r=new Int32Array(n,0,1);r[0]=ru.Continue,this.buffers.set(e.id,n),e.$cancellationData=n}async sendCancellation(e,n){let r=this.buffers.get(n);if(r===void 0)return;let i=new Int32Array(r,0,1);Atomics.store(i,0,ru.Cancelled)}cleanup(e){this.buffers.delete(e)}dispose(){this.buffers.clear()}};nl.SharedArraySenderStrategy=pv;var fv=class{constructor(e){this.data=new Int32Array(e,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===ru.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}},mv=class{constructor(e){this.token=new fv(e)}cancel(){}dispose(){}},gv=class{constructor(){this.kind="request"}createCancellationTokenSource(e){let n=e.$cancellationData;return n===void 0?new rW.CancellationTokenSource:new mv(n)}};nl.SharedArrayReceiverStrategy=gv});var vv=L(Ud=>{"use strict";Object.defineProperty(Ud,"__esModule",{value:!0});Ud.Semaphore=void 0;var iW=us(),bv=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,r)=>{this._waiting.push({thunk:e,resolve:n,reject:r}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length===0||this._active===this._capacity||(0,iW.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(r=>{this._active--,e.resolve(r),this.runNext()},r=>{this._active--,e.reject(r),this.runNext()}):(this._active--,e.resolve(n),this.runNext())}catch(n){this._active--,e.reject(n),this.runNext()}}};Ud.Semaphore=bv});var xC=L(ds=>{"use strict";Object.defineProperty(ds,"__esModule",{value:!0});ds.ReadableStreamMessageReader=ds.AbstractMessageReader=ds.MessageReader=void 0;var wv=us(),rl=Ya(),yv=el(),oW=vv(),SC;(function(t){function e(n){let r=n;return r&&rl.func(r.listen)&&rl.func(r.dispose)&&rl.func(r.onError)&&rl.func(r.onClose)&&rl.func(r.onPartialMessage)}t.is=e})(SC||(ds.MessageReader=SC={}));var Hd=class{constructor(){this.errorEmitter=new yv.Emitter,this.closeEmitter=new yv.Emitter,this.partialMessageEmitter=new yv.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: ${rl.string(e.message)?e.message:"unknown"}`)}};ds.AbstractMessageReader=Hd;var _v;(function(t){function e(n){let r,i,o,a=new Map,l,s=new Map;if(n===void 0||typeof n=="string")r=n??"utf-8";else{if(r=n.charset??"utf-8",n.contentDecoder!==void 0&&(o=n.contentDecoder,a.set(o.name,o)),n.contentDecoders!==void 0)for(let c of n.contentDecoders)a.set(c.name,c);if(n.contentTypeDecoder!==void 0&&(l=n.contentTypeDecoder,s.set(l.name,l)),n.contentTypeDecoders!==void 0)for(let c of n.contentTypeDecoders)s.set(c.name,c)}return l===void 0&&(l=(0,wv.default)().applicationJson.decoder,s.set(l.name,l)),{charset:r,contentDecoder:o,contentDecoders:a,contentTypeDecoder:l,contentTypeDecoders:s}}t.fromOptions=e})(_v||(_v={}));var Sv=class extends Hd{constructor(e,n){super(),this.readable=e,this.options=_v.fromOptions(n),this.buffer=(0,wv.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new oW.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(r=>{this.onData(r)});return this.readable.onError(r=>this.fireError(r)),this.readable.onClose(()=>this.fireClose()),n}onData(e){try{for(this.buffer.append(e);;){if(this.nextMessageLength===-1){let r=this.buffer.tryReadHeaders(!0);if(!r)return;let i=r.get("content-length");if(!i){this.fireError(new Error(`Header must provide a Content-Length property.
3
3
  ${JSON.stringify(Object.fromEntries(r))}`));return}let o=parseInt(i);if(isNaN(o)){this.fireError(new Error(`Content-Length value must be a number. Got ${i}`));return}this.nextMessageLength=o}let n=this.buffer.tryReadBody(this.nextMessageLength);if(n===void 0){this.setPartialMessageTimer();return}this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock(async()=>{let r=this.options.contentDecoder!==void 0?await this.options.contentDecoder.decode(n):n,i=await this.options.contentTypeDecoder.decode(r,this.options);this.callback(i)}).catch(r=>{this.fireError(r)})}}catch(n){this.fireError(n)}}clearPartialMessageTimer(){this.partialMessageTimer&&(this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),!(this._partialMessageTimeout<=0)&&(this.partialMessageTimer=(0,wv.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))}};ds.ReadableStreamMessageReader=Sv});var DC=L(hs=>{"use strict";Object.defineProperty(hs,"__esModule",{value:!0});hs.WriteableStreamMessageWriter=hs.AbstractMessageWriter=hs.MessageWriter=void 0;var CC=us(),iu=Ya(),sW=vv(),kC=el(),aW="Content-Length: ",TC=`\r
4
4
  `,EC;(function(t){function e(n){let r=n;return r&&iu.func(r.dispose)&&iu.func(r.onClose)&&iu.func(r.onError)&&iu.func(r.write)}t.is=e})(EC||(hs.MessageWriter=EC={}));var Bd=class{constructor(){this.errorEmitter=new kC.Emitter,this.closeEmitter=new kC.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e,n,r){this.errorEmitter.fire([this.asError(e),n,r])}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: ${iu.string(e.message)?e.message:"unknown"}`)}};hs.AbstractMessageWriter=Bd;var xv;(function(t){function e(n){return n===void 0||typeof n=="string"?{charset:n??"utf-8",contentTypeEncoder:(0,CC.default)().applicationJson.encoder}:{charset:n.charset??"utf-8",contentEncoder:n.contentEncoder,contentTypeEncoder:n.contentTypeEncoder??(0,CC.default)().applicationJson.encoder}}t.fromOptions=e})(xv||(xv={}));var Cv=class extends Bd{constructor(e,n){super(),this.writable=e,this.options=xv.fromOptions(n),this.errorCount=0,this.writeSemaphore=new sW.Semaphore(1),this.writable.onError(r=>this.fireError(r)),this.writable.onClose(()=>this.fireClose())}async write(e){return this.writeSemaphore.lock(async()=>this.options.contentTypeEncoder.encode(e,this.options).then(r=>this.options.contentEncoder!==void 0?this.options.contentEncoder.encode(r):r).then(r=>{let i=[];return i.push(aW,r.byteLength.toString(),TC),i.push(TC),this.doWrite(e,i,r)},r=>{throw this.fireError(r),r}))}async doWrite(e,n,r){try{return await this.writable.write(n.join(""),"ascii"),this.writable.write(r)}catch(i){return this.handleError(i,e),Promise.reject(i)}}handleError(e,n){this.errorCount++,this.fireError(e,n,this.errorCount)}end(){this.writable.end()}};hs.WriteableStreamMessageWriter=Cv});var RC=L($d=>{"use strict";Object.defineProperty($d,"__esModule",{value:!0});$d.AbstractMessageBuffer=void 0;var lW=13,cW=10,uW=`\r
5
5
  `,kv=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,r=0,i=0,o=0;e:for(;r<this._chunks.length;){let c=this._chunks[r];i=0;t:for(;i<c.length;){switch(c[i]){case lW:switch(n){case 0:n=1;break;case 2:n=3;break;default:n=0}break;case cW:switch(n){case 1:n=2;break;case 3:n=4,i++;break e;default:n=0}break;default:n=0}i++}o+=c.byteLength,r++}if(n!==4)return;let a=this._read(o+i),l=new Map,s=this.toString(a,"ascii").split(uW);if(s.length<2)return l;for(let c=0;c<s.length-2;c++){let u=s[c],d=u.indexOf(":");if(d===-1)throw new Error(`Message header must separate key and value using ':'
@@ -527,7 +527,7 @@ See [Browser compatibility](#Browser_compatibility) for notes on browser support
527
527
 
528
528
  * a _negative value_ means that the element should be focusable, but should not be reachable via sequential keyboard navigation;
529
529
  * \`0\` means that the element should be focusable and reachable via sequential keyboard navigation, but its relative order is defined by the platform convention;
530
- * a _positive value_ means that the element should be focusable and reachable via sequential keyboard navigation; the order in which the elements are focused is the increasing value of the [**tabindex**](#attr-tabindex). If several elements share the same tabindex, their relative order follows their relative positions in the document.`},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/tabindex"}]},{name:"title",description:{kind:"markdown",value:"Contains a text representing advisory information related to the element it belongs to. Such information can typically, but not necessarily, be presented to the user as a tooltip."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/title"}]},{name:"translate",description:{kind:"markdown",value:"An enumerated attribute that is used to specify whether an element's attribute values and the values of its [`Text`](https://developer.mozilla.org/docs/Web/API/Text \"The Text interface represents the textual content of Element or Attr. If an element has no markup within its content, it has a single child implementing Text that contains the element's text. However, if the element contains markup, it is parsed into information items and Text nodes that form its children.\") node children are to be translated when the page is localized, or whether to leave them unchanged. It can have the following values:\n\n* empty string and `yes`, which indicates that the element will be translated.\n* `no`, which indicates that the element will not be translated."},valueSet:"y",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/translate"}]},{name:"onabort",description:{kind:"markdown",value:"The loading of a resource has been aborted."}},{name:"onblur",description:{kind:"markdown",value:"An element has lost focus (does not bubble)."}},{name:"oncanplay",description:{kind:"markdown",value:"The user agent can play the media, but estimates that not enough data has been loaded to play the media up to its end without having to stop for further buffering of content."}},{name:"oncanplaythrough",description:{kind:"markdown",value:"The user agent can play the media up to its end without having to stop for further buffering of content."}},{name:"onchange",description:{kind:"markdown",value:"The change event is fired for <input>, <select>, and <textarea> elements when a change to the element's value is committed by the user."}},{name:"onclick",description:{kind:"markdown",value:"A pointing device button has been pressed and released on an element."}},{name:"oncontextmenu",description:{kind:"markdown",value:"The right button of the mouse is clicked (before the context menu is displayed)."}},{name:"ondblclick",description:{kind:"markdown",value:"A pointing device button is clicked twice on an element."}},{name:"ondrag",description:{kind:"markdown",value:"An element or text selection is being dragged (every 350ms)."}},{name:"ondragend",description:{kind:"markdown",value:"A drag operation is being ended (by releasing a mouse button or hitting the escape key)."}},{name:"ondragenter",description:{kind:"markdown",value:"A dragged element or text selection enters a valid drop target."}},{name:"ondragleave",description:{kind:"markdown",value:"A dragged element or text selection leaves a valid drop target."}},{name:"ondragover",description:{kind:"markdown",value:"An element or text selection is being dragged over a valid drop target (every 350ms)."}},{name:"ondragstart",description:{kind:"markdown",value:"The user starts dragging an element or text selection."}},{name:"ondrop",description:{kind:"markdown",value:"An element is dropped on a valid drop target."}},{name:"ondurationchange",description:{kind:"markdown",value:"The duration attribute has been updated."}},{name:"onemptied",description:{kind:"markdown",value:"The media has become empty; for example, this event is sent if the media has already been loaded (or partially loaded), and the load() method is called to reload it."}},{name:"onended",description:{kind:"markdown",value:"Playback has stopped because the end of the media was reached."}},{name:"onerror",description:{kind:"markdown",value:"A resource failed to load."}},{name:"onfocus",description:{kind:"markdown",value:"An element has received focus (does not bubble)."}},{name:"onformchange"},{name:"onforminput"},{name:"oninput",description:{kind:"markdown",value:"The value of an element changes or the content of an element with the attribute contenteditable is modified."}},{name:"oninvalid",description:{kind:"markdown",value:"A submittable element has been checked and doesn't satisfy its constraints."}},{name:"onkeydown",description:{kind:"markdown",value:"A key is pressed down."}},{name:"onkeypress",description:{kind:"markdown",value:"A key is pressed down and that key normally produces a character value (use input instead)."}},{name:"onkeyup",description:{kind:"markdown",value:"A key is released."}},{name:"onload",description:{kind:"markdown",value:"A resource and its dependent resources have finished loading."}},{name:"onloadeddata",description:{kind:"markdown",value:"The first frame of the media has finished loading."}},{name:"onloadedmetadata",description:{kind:"markdown",value:"The metadata has been loaded."}},{name:"onloadstart",description:{kind:"markdown",value:"Progress has begun."}},{name:"onmousedown",description:{kind:"markdown",value:"A pointing device button (usually a mouse) is pressed on an element."}},{name:"onmousemove",description:{kind:"markdown",value:"A pointing device is moved over an element."}},{name:"onmouseout",description:{kind:"markdown",value:"A pointing device is moved off the element that has the listener attached or off one of its children."}},{name:"onmouseover",description:{kind:"markdown",value:"A pointing device is moved onto the element that has the listener attached or onto one of its children."}},{name:"onmouseup",description:{kind:"markdown",value:"A pointing device button is released over an element."}},{name:"onmousewheel"},{name:"onmouseenter",description:{kind:"markdown",value:"A pointing device is moved onto the element that has the listener attached."}},{name:"onmouseleave",description:{kind:"markdown",value:"A pointing device is moved off the element that has the listener attached."}},{name:"onpause",description:{kind:"markdown",value:"Playback has been paused."}},{name:"onplay",description:{kind:"markdown",value:"Playback has begun."}},{name:"onplaying",description:{kind:"markdown",value:"Playback is ready to start after having been paused or delayed due to lack of data."}},{name:"onprogress",description:{kind:"markdown",value:"In progress."}},{name:"onratechange",description:{kind:"markdown",value:"The playback rate has changed."}},{name:"onreset",description:{kind:"markdown",value:"A form is reset."}},{name:"onresize",description:{kind:"markdown",value:"The document view has been resized."}},{name:"onreadystatechange",description:{kind:"markdown",value:"The readyState attribute of a document has changed."}},{name:"onscroll",description:{kind:"markdown",value:"The document view or an element has been scrolled."}},{name:"onseeked",description:{kind:"markdown",value:"A seek operation completed."}},{name:"onseeking",description:{kind:"markdown",value:"A seek operation began."}},{name:"onselect",description:{kind:"markdown",value:"Some text is being selected."}},{name:"onshow",description:{kind:"markdown",value:"A contextmenu event was fired on/bubbled to an element that has a contextmenu attribute"}},{name:"onstalled",description:{kind:"markdown",value:"The user agent is trying to fetch media data, but data is unexpectedly not forthcoming."}},{name:"onsubmit",description:{kind:"markdown",value:"A form is submitted."}},{name:"onsuspend",description:{kind:"markdown",value:"Media data loading has been suspended."}},{name:"ontimeupdate",description:{kind:"markdown",value:"The time indicated by the currentTime attribute has been updated."}},{name:"onvolumechange",description:{kind:"markdown",value:"The volume has changed."}},{name:"onwaiting",description:{kind:"markdown",value:"Playback has stopped because of a temporary lack of data."}},{name:"onpointercancel",description:{kind:"markdown",value:"The pointer is unlikely to produce any more events."}},{name:"onpointerdown",description:{kind:"markdown",value:"The pointer enters the active buttons state."}},{name:"onpointerenter",description:{kind:"markdown",value:"Pointing device is moved inside the hit-testing boundary."}},{name:"onpointerleave",description:{kind:"markdown",value:"Pointing device is moved out of the hit-testing boundary."}},{name:"onpointerlockchange",description:{kind:"markdown",value:"The pointer was locked or released."}},{name:"onpointerlockerror",description:{kind:"markdown",value:"It was impossible to lock the pointer for technical reasons or because the permission was denied."}},{name:"onpointermove",description:{kind:"markdown",value:"The pointer changed coordinates."}},{name:"onpointerout",description:{kind:"markdown",value:"The pointing device moved out of hit-testing boundary or leaves detectable hover range."}},{name:"onpointerover",description:{kind:"markdown",value:"The pointing device is moved into the hit-testing boundary."}},{name:"onpointerup",description:{kind:"markdown",value:"The pointer leaves the active buttons state."}},{name:"aria-activedescendant",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-activedescendant"}],description:{kind:"markdown",value:"Identifies the currently active element when DOM focus is on a [`composite`](https://www.w3.org/TR/wai-aria-1.1/#composite) widget, [`textbox`](https://www.w3.org/TR/wai-aria-1.1/#textbox), [`group`](https://www.w3.org/TR/wai-aria-1.1/#group), or [`application`](https://www.w3.org/TR/wai-aria-1.1/#application)."}},{name:"aria-atomic",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-atomic"}],description:{kind:"markdown",value:"Indicates whether [assistive technologies](https://www.w3.org/TR/wai-aria-1.1/#dfn-assistive-technology) will present all, or only parts of, the changed region based on the change notifications defined by the [`aria-relevant`](https://www.w3.org/TR/wai-aria-1.1/#aria-relevant) attribute."}},{name:"aria-autocomplete",valueSet:"autocomplete",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-autocomplete"}],description:{kind:"markdown",value:"Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be presented if they are made."}},{name:"aria-busy",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-busy"}],description:{kind:"markdown",value:"Indicates an element is being modified and that assistive technologies _MAY_ want to wait until the modifications are complete before exposing them to the user."}},{name:"aria-checked",valueSet:"tristate",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-checked"}],description:{kind:"markdown",value:'Indicates the current "checked" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) of checkboxes, radio buttons, and other [widgets](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget). See related [`aria-pressed`](https://www.w3.org/TR/wai-aria-1.1/#aria-pressed) and [`aria-selected`](https://www.w3.org/TR/wai-aria-1.1/#aria-selected).'}},{name:"aria-colcount",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-colcount"}],description:{kind:"markdown",value:"Defines the total number of columns in a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-colindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-colindex)."}},{name:"aria-colindex",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-colindex"}],description:{kind:"markdown",value:"Defines an [element's](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) column index or position with respect to the total number of columns within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-colcount`](https://www.w3.org/TR/wai-aria-1.1/#aria-colcount) and [`aria-colspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-colspan)."}},{name:"aria-colspan",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-colspan"}],description:{kind:"markdown",value:"Defines the number of columns spanned by a cell or gridcell within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-colindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-colindex) and [`aria-rowspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowspan)."}},{name:"aria-controls",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-controls"}],description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) whose contents or presence are controlled by the current element. See related [`aria-owns`](https://www.w3.org/TR/wai-aria-1.1/#aria-owns)."}},{name:"aria-current",valueSet:"current",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-current"}],description:{kind:"markdown",value:"Indicates the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) that represents the current item within a container or set of related elements."}},{name:"aria-describedby",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-describedby"}],description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) that describes the [object](https://www.w3.org/TR/wai-aria-1.1/#dfn-object). See related [`aria-labelledby`](https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby)."}},{name:"aria-disabled",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-disabled"}],description:{kind:"markdown",value:"Indicates that the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is [perceivable](https://www.w3.org/TR/wai-aria-1.1/#dfn-perceivable) but disabled, so it is not editable or otherwise [operable](https://www.w3.org/TR/wai-aria-1.1/#dfn-operable). See related [`aria-hidden`](https://www.w3.org/TR/wai-aria-1.1/#aria-hidden) and [`aria-readonly`](https://www.w3.org/TR/wai-aria-1.1/#aria-readonly)."}},{name:"aria-dropeffect",valueSet:"dropeffect",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-dropeffect"}],description:{kind:"markdown",value:"\\[Deprecated in ARIA 1.1\\] Indicates what functions can be performed when a dragged object is released on the drop target."}},{name:"aria-errormessage",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-errormessage"}],description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) that provides an error message for the [object](https://www.w3.org/TR/wai-aria-1.1/#dfn-object). See related [`aria-invalid`](https://www.w3.org/TR/wai-aria-1.1/#aria-invalid) and [`aria-describedby`](https://www.w3.org/TR/wai-aria-1.1/#aria-describedby)."}},{name:"aria-expanded",valueSet:"u",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-expanded"}],description:{kind:"markdown",value:"Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed."}},{name:"aria-flowto",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-flowto"}],description:{kind:"markdown",value:"Identifies the next [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) in an alternate reading order of content which, at the user's discretion, allows assistive technology to override the general default of reading in document source order."}},{name:"aria-grabbed",valueSet:"u",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-grabbed"}],description:{kind:"markdown",value:`\\[Deprecated in ARIA 1.1\\] Indicates an element's "grabbed" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) in a drag-and-drop operation.`}},{name:"aria-haspopup",valueSet:"haspopup",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-haspopup"}],description:{kind:"markdown",value:"Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element)."}},{name:"aria-hidden",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-hidden"}],description:{kind:"markdown",value:"Indicates whether the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is exposed to an accessibility API. See related [`aria-disabled`](https://www.w3.org/TR/wai-aria-1.1/#aria-disabled)."}},{name:"aria-invalid",valueSet:"invalid",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-invalid"}],description:{kind:"markdown",value:"Indicates the entered value does not conform to the format expected by the application. See related [`aria-errormessage`](https://www.w3.org/TR/wai-aria-1.1/#aria-errormessage)."}},{name:"aria-label",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-label"}],description:{kind:"markdown",value:"Defines a string value that labels the current element. See related [`aria-labelledby`](https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby)."}},{name:"aria-labelledby",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby"}],description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) that labels the current element. See related [`aria-describedby`](https://www.w3.org/TR/wai-aria-1.1/#aria-describedby)."}},{name:"aria-level",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-level"}],description:{kind:"markdown",value:"Defines the hierarchical level of an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) within a structure."}},{name:"aria-live",valueSet:"live",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-live"}],description:{kind:"markdown",value:"Indicates that an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) will be updated, and describes the types of updates the [user agents](https://www.w3.org/TR/wai-aria-1.1/#dfn-user-agent), [assistive technologies](https://www.w3.org/TR/wai-aria-1.1/#dfn-assistive-technology), and user can expect from the [live region](https://www.w3.org/TR/wai-aria-1.1/#dfn-live-region)."}},{name:"aria-modal",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-modal"}],description:{kind:"markdown",value:"Indicates whether an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is modal when displayed."}},{name:"aria-multiline",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-multiline"}],description:{kind:"markdown",value:"Indicates whether a text box accepts multiple lines of input or only a single line."}},{name:"aria-multiselectable",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-multiselectable"}],description:{kind:"markdown",value:"Indicates that the user may select more than one item from the current selectable descendants."}},{name:"aria-orientation",valueSet:"orientation",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-orientation"}],description:{kind:"markdown",value:"Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous."}},{name:"aria-owns",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-owns"}],description:{kind:"markdown",value:"Identifies an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) in order to define a visual, functional, or contextual parent/child [relationship](https://www.w3.org/TR/wai-aria-1.1/#dfn-relationship) between DOM elements where the DOM hierarchy cannot be used to represent the relationship. See related [`aria-controls`](https://www.w3.org/TR/wai-aria-1.1/#aria-controls)."}},{name:"aria-placeholder",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-placeholder"}],description:{kind:"markdown",value:"Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value. A hint could be a sample value or a brief description of the expected format."}},{name:"aria-posinset",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-posinset"}],description:{kind:"markdown",value:"Defines an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element)'s number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. See related [`aria-setsize`](https://www.w3.org/TR/wai-aria-1.1/#aria-setsize)."}},{name:"aria-pressed",valueSet:"tristate",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-pressed"}],description:{kind:"markdown",value:'Indicates the current "pressed" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) of toggle buttons. See related [`aria-checked`](https://www.w3.org/TR/wai-aria-1.1/#aria-checked) and [`aria-selected`](https://www.w3.org/TR/wai-aria-1.1/#aria-selected).'}},{name:"aria-readonly",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-readonly"}],description:{kind:"markdown",value:"Indicates that the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is not editable, but is otherwise [operable](https://www.w3.org/TR/wai-aria-1.1/#dfn-operable). See related [`aria-disabled`](https://www.w3.org/TR/wai-aria-1.1/#aria-disabled)."}},{name:"aria-relevant",valueSet:"relevant",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-relevant"}],description:{kind:"markdown",value:"Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified. See related [`aria-atomic`](https://www.w3.org/TR/wai-aria-1.1/#aria-atomic)."}},{name:"aria-required",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-required"}],description:{kind:"markdown",value:"Indicates that user input is required on the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) before a form may be submitted."}},{name:"aria-roledescription",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-roledescription"}],description:{kind:"markdown",value:"Defines a human-readable, author-localized description for the [role](https://www.w3.org/TR/wai-aria-1.1/#dfn-role) of an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element)."}},{name:"aria-rowcount",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-rowcount"}],description:{kind:"markdown",value:"Defines the total number of rows in a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-rowindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowindex)."}},{name:"aria-rowindex",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-rowindex"}],description:{kind:"markdown",value:"Defines an [element's](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) row index or position with respect to the total number of rows within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-rowcount`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowcount) and [`aria-rowspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowspan)."}},{name:"aria-rowspan",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-rowspan"}],description:{kind:"markdown",value:"Defines the number of rows spanned by a cell or gridcell within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-rowindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowindex) and [`aria-colspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-colspan)."}},{name:"aria-selected",valueSet:"u",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-selected"}],description:{kind:"markdown",value:'Indicates the current "selected" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) of various [widgets](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget). See related [`aria-checked`](https://www.w3.org/TR/wai-aria-1.1/#aria-checked) and [`aria-pressed`](https://www.w3.org/TR/wai-aria-1.1/#aria-pressed).'}},{name:"aria-setsize",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-setsize"}],description:{kind:"markdown",value:"Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. See related [`aria-posinset`](https://www.w3.org/TR/wai-aria-1.1/#aria-posinset)."}},{name:"aria-sort",valueSet:"sort",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-sort"}],description:{kind:"markdown",value:"Indicates if items in a table or grid are sorted in ascending or descending order."}},{name:"aria-valuemax",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-valuemax"}],description:{kind:"markdown",value:"Defines the maximum allowed value for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget)."}},{name:"aria-valuemin",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-valuemin"}],description:{kind:"markdown",value:"Defines the minimum allowed value for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget)."}},{name:"aria-valuenow",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-valuenow"}],description:{kind:"markdown",value:"Defines the current value for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget). See related [`aria-valuetext`](https://www.w3.org/TR/wai-aria-1.1/#aria-valuetext)."}},{name:"aria-valuetext",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-valuetext"}],description:{kind:"markdown",value:"Defines the human readable text alternative of [`aria-valuenow`](https://www.w3.org/TR/wai-aria-1.1/#aria-valuenow) for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget)."}},{name:"aria-details",description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) that provides a detailed, extended description for the [object](https://www.w3.org/TR/wai-aria-1.1/#dfn-object). See related [`aria-describedby`](https://www.w3.org/TR/wai-aria-1.1/#aria-describedby)."}},{name:"aria-keyshortcuts",description:{kind:"markdown",value:"Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element."}}],valueSets:[{name:"b",values:[{name:"true"},{name:"false"}]},{name:"u",values:[{name:"true"},{name:"false"},{name:"undefined"}]},{name:"o",values:[{name:"on"},{name:"off"}]},{name:"y",values:[{name:"yes"},{name:"no"}]},{name:"w",values:[{name:"soft"},{name:"hard"}]},{name:"d",values:[{name:"ltr"},{name:"rtl"},{name:"auto"}]},{name:"m",values:[{name:"get",description:{kind:"markdown",value:"Corresponds to the HTTP [GET method](https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.3); form data are appended to the `action` attribute URI with a '?' as separator, and the resulting URI is sent to the server. Use this method when the form has no side-effects and contains only ASCII characters."}},{name:"post",description:{kind:"markdown",value:"Corresponds to the HTTP [POST method](https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.5); form data are included in the body of the form and sent to the server."}},{name:"dialog",description:{kind:"markdown",value:"Use when the form is inside a [`<dialog>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog) element to close the dialog when submitted."}}]},{name:"fm",values:[{name:"get"},{name:"post"}]},{name:"s",values:[{name:"row"},{name:"col"},{name:"rowgroup"},{name:"colgroup"}]},{name:"t",values:[{name:"hidden"},{name:"text"},{name:"search"},{name:"tel"},{name:"url"},{name:"email"},{name:"password"},{name:"datetime"},{name:"date"},{name:"month"},{name:"week"},{name:"time"},{name:"datetime-local"},{name:"number"},{name:"range"},{name:"color"},{name:"checkbox"},{name:"radio"},{name:"file"},{name:"submit"},{name:"image"},{name:"reset"},{name:"button"}]},{name:"im",values:[{name:"verbatim"},{name:"latin"},{name:"latin-name"},{name:"latin-prose"},{name:"full-width-latin"},{name:"kana"},{name:"kana-name"},{name:"katakana"},{name:"numeric"},{name:"tel"},{name:"email"},{name:"url"}]},{name:"bt",values:[{name:"button"},{name:"submit"},{name:"reset"},{name:"menu"}]},{name:"lt",values:[{name:"1"},{name:"a"},{name:"A"},{name:"i"},{name:"I"}]},{name:"mt",values:[{name:"context"},{name:"toolbar"}]},{name:"mit",values:[{name:"command"},{name:"checkbox"},{name:"radio"}]},{name:"et",values:[{name:"application/x-www-form-urlencoded"},{name:"multipart/form-data"},{name:"text/plain"}]},{name:"tk",values:[{name:"subtitles"},{name:"captions"},{name:"descriptions"},{name:"chapters"},{name:"metadata"}]},{name:"pl",values:[{name:"none"},{name:"metadata"},{name:"auto"}]},{name:"sh",values:[{name:"circle"},{name:"default"},{name:"poly"},{name:"rect"}]},{name:"xo",values:[{name:"anonymous"},{name:"use-credentials"}]},{name:"target",values:[{name:"_self"},{name:"_blank"},{name:"_parent"},{name:"_top"}]},{name:"sb",values:[{name:"allow-forms"},{name:"allow-modals"},{name:"allow-pointer-lock"},{name:"allow-popups"},{name:"allow-popups-to-escape-sandbox"},{name:"allow-same-origin"},{name:"allow-scripts"},{name:"allow-top-navigation"}]},{name:"tristate",values:[{name:"true"},{name:"false"},{name:"mixed"},{name:"undefined"}]},{name:"inputautocomplete",values:[{name:"additional-name"},{name:"address-level1"},{name:"address-level2"},{name:"address-level3"},{name:"address-level4"},{name:"address-line1"},{name:"address-line2"},{name:"address-line3"},{name:"bday"},{name:"bday-year"},{name:"bday-day"},{name:"bday-month"},{name:"billing"},{name:"cc-additional-name"},{name:"cc-csc"},{name:"cc-exp"},{name:"cc-exp-month"},{name:"cc-exp-year"},{name:"cc-family-name"},{name:"cc-given-name"},{name:"cc-name"},{name:"cc-number"},{name:"cc-type"},{name:"country"},{name:"country-name"},{name:"current-password"},{name:"email"},{name:"family-name"},{name:"fax"},{name:"given-name"},{name:"home"},{name:"honorific-prefix"},{name:"honorific-suffix"},{name:"impp"},{name:"language"},{name:"mobile"},{name:"name"},{name:"new-password"},{name:"nickname"},{name:"off"},{name:"on"},{name:"organization"},{name:"organization-title"},{name:"pager"},{name:"photo"},{name:"postal-code"},{name:"sex"},{name:"shipping"},{name:"street-address"},{name:"tel-area-code"},{name:"tel"},{name:"tel-country-code"},{name:"tel-extension"},{name:"tel-local"},{name:"tel-local-prefix"},{name:"tel-local-suffix"},{name:"tel-national"},{name:"transaction-amount"},{name:"transaction-currency"},{name:"url"},{name:"username"},{name:"work"}]},{name:"autocomplete",values:[{name:"inline"},{name:"list"},{name:"both"},{name:"none"}]},{name:"current",values:[{name:"page"},{name:"step"},{name:"location"},{name:"date"},{name:"time"},{name:"true"},{name:"false"}]},{name:"dropeffect",values:[{name:"copy"},{name:"move"},{name:"link"},{name:"execute"},{name:"popup"},{name:"none"}]},{name:"invalid",values:[{name:"grammar"},{name:"false"},{name:"spelling"},{name:"true"}]},{name:"live",values:[{name:"off"},{name:"polite"},{name:"assertive"}]},{name:"orientation",values:[{name:"vertical"},{name:"horizontal"},{name:"undefined"}]},{name:"relevant",values:[{name:"additions"},{name:"removals"},{name:"text"},{name:"all"},{name:"additions text"}]},{name:"sort",values:[{name:"ascending"},{name:"descending"},{name:"none"},{name:"other"}]},{name:"roles",values:[{name:"alert"},{name:"alertdialog"},{name:"button"},{name:"checkbox"},{name:"dialog"},{name:"gridcell"},{name:"link"},{name:"log"},{name:"marquee"},{name:"menuitem"},{name:"menuitemcheckbox"},{name:"menuitemradio"},{name:"option"},{name:"progressbar"},{name:"radio"},{name:"scrollbar"},{name:"searchbox"},{name:"slider"},{name:"spinbutton"},{name:"status"},{name:"switch"},{name:"tab"},{name:"tabpanel"},{name:"textbox"},{name:"timer"},{name:"tooltip"},{name:"treeitem"},{name:"combobox"},{name:"grid"},{name:"listbox"},{name:"menu"},{name:"menubar"},{name:"radiogroup"},{name:"tablist"},{name:"tree"},{name:"treegrid"},{name:"application"},{name:"article"},{name:"cell"},{name:"columnheader"},{name:"definition"},{name:"directory"},{name:"document"},{name:"feed"},{name:"figure"},{name:"group"},{name:"heading"},{name:"img"},{name:"list"},{name:"listitem"},{name:"math"},{name:"none"},{name:"note"},{name:"presentation"},{name:"region"},{name:"row"},{name:"rowgroup"},{name:"rowheader"},{name:"separator"},{name:"table"},{name:"term"},{name:"text"},{name:"toolbar"},{name:"banner"},{name:"complementary"},{name:"contentinfo"},{name:"form"},{name:"main"},{name:"navigation"},{name:"region"},{name:"search"},{name:"doc-abstract"},{name:"doc-acknowledgments"},{name:"doc-afterword"},{name:"doc-appendix"},{name:"doc-backlink"},{name:"doc-biblioentry"},{name:"doc-bibliography"},{name:"doc-biblioref"},{name:"doc-chapter"},{name:"doc-colophon"},{name:"doc-conclusion"},{name:"doc-cover"},{name:"doc-credit"},{name:"doc-credits"},{name:"doc-dedication"},{name:"doc-endnote"},{name:"doc-endnotes"},{name:"doc-epigraph"},{name:"doc-epilogue"},{name:"doc-errata"},{name:"doc-example"},{name:"doc-footnote"},{name:"doc-foreword"},{name:"doc-glossary"},{name:"doc-glossref"},{name:"doc-index"},{name:"doc-introduction"},{name:"doc-noteref"},{name:"doc-notice"},{name:"doc-pagebreak"},{name:"doc-pagelist"},{name:"doc-part"},{name:"doc-preface"},{name:"doc-prologue"},{name:"doc-pullquote"},{name:"doc-qna"},{name:"doc-subtitle"},{name:"doc-tip"},{name:"doc-toc"}]},{name:"metanames",values:[{name:"application-name"},{name:"author"},{name:"description"},{name:"format-detection"},{name:"generator"},{name:"keywords"},{name:"publisher"},{name:"referrer"},{name:"robots"},{name:"theme-color"},{name:"viewport"}]},{name:"haspopup",values:[{name:"false",description:{kind:"markdown",value:"(default) Indicates the element does not have a popup."}},{name:"true",description:{kind:"markdown",value:"Indicates the popup is a menu."}},{name:"menu",description:{kind:"markdown",value:"Indicates the popup is a menu."}},{name:"listbox",description:{kind:"markdown",value:"Indicates the popup is a listbox."}},{name:"tree",description:{kind:"markdown",value:"Indicates the popup is a tree."}},{name:"grid",description:{kind:"markdown",value:"Indicates the popup is a grid."}},{name:"dialog",description:{kind:"markdown",value:"Indicates the popup is a dialog."}}]},{name:"decoding",values:[{name:"sync"},{name:"async"},{name:"auto"}]},{name:"loading",values:[{name:"eager",description:{kind:"markdown",value:"Loads the image immediately, regardless of whether or not the image is currently within the visible viewport (this is the default value)."}},{name:"lazy",description:{kind:"markdown",value:"Defers loading the image until it reaches a calculated distance from the viewport, as defined by the browser. The intent is to avoid the network and storage bandwidth needed to handle the image until it's reasonably certain that it will be needed. This generally improves the performance of the content in most typical use cases."}}]},{name:"referrerpolicy",values:[{name:"no-referrer"},{name:"no-referrer-when-downgrade"},{name:"origin"},{name:"origin-when-cross-origin"},{name:"same-origin"},{name:"strict-origin"},{name:"strict-origin-when-cross-origin"},{name:"unsafe-url"}]}]}});var wf,q8,LA=xe(()=>{Ru();Lw();Dw();wf=class{constructor(e){this.dataProviders=[],this.setDataProviders(e.useDefaultDataProvider!==!1,e.customDataProviders||[])}setDataProviders(e,n){this.dataProviders=[],e&&this.dataProviders.push(new zl("html5",yf)),this.dataProviders.push(...n)}getDataProviders(){return this.dataProviders}isVoidElement(e,n){return!!e&&XF(n,e.toLowerCase(),(r,i)=>r.localeCompare(i))>=0}getVoidElements(e){let n=Array.isArray(e)?e:this.getDataProviders().filter(i=>i.isApplicable(e)),r=[];return n.forEach(i=>{i.provideTags().filter(o=>o.void).forEach(o=>r.push(o.name))}),r.sort()}isPathAttribute(e,n){if(n==="src"||n==="href")return!0;let r=q8[e];return r?typeof r=="string"?r===n:r.indexOf(n)!==-1:!1}},q8={a:"href",area:"href",body:"background",blockquote:"cite",del:"cite",form:"action",frame:["src","longdesc"],img:["src","longdesc"],ins:"cite",link:"href",object:"data",q:"cite",script:"src",audio:"src",button:"formaction",command:"icon",embed:"src",html:"manifest",input:["src","formaction"],source:"src",track:"src",video:["src","poster"]}});var ql={};Ib(ql,{ClientCapabilities:()=>Cw,Color:()=>oe.Color,ColorInformation:()=>oe.ColorInformation,ColorPresentation:()=>oe.ColorPresentation,Command:()=>oe.Command,CompletionItem:()=>oe.CompletionItem,CompletionItemKind:()=>oe.CompletionItemKind,CompletionItemTag:()=>oe.CompletionItemTag,CompletionList:()=>oe.CompletionList,Diagnostic:()=>oe.Diagnostic,DocumentHighlight:()=>oe.DocumentHighlight,DocumentHighlightKind:()=>oe.DocumentHighlightKind,DocumentLink:()=>oe.DocumentLink,DocumentSymbol:()=>oe.DocumentSymbol,DocumentUri:()=>oe.DocumentUri,FileType:()=>Du,FoldingRange:()=>oe.FoldingRange,FoldingRangeKind:()=>oe.FoldingRangeKind,FormattingOptions:()=>oe.FormattingOptions,Hover:()=>oe.Hover,InsertReplaceEdit:()=>oe.InsertReplaceEdit,InsertTextFormat:()=>oe.InsertTextFormat,InsertTextMode:()=>oe.InsertTextMode,Location:()=>oe.Location,MarkedString:()=>oe.MarkedString,MarkupContent:()=>oe.MarkupContent,MarkupKind:()=>oe.MarkupKind,Position:()=>oe.Position,Range:()=>oe.Range,ScannerState:()=>Ae,SelectionRange:()=>oe.SelectionRange,SymbolInformation:()=>oe.SymbolInformation,SymbolKind:()=>oe.SymbolKind,TextDocument:()=>Il,TextEdit:()=>oe.TextEdit,TokenType:()=>he,WorkspaceEdit:()=>oe.WorkspaceEdit,getDefaultHTMLDataProvider:()=>U8,getLanguageService:()=>W8,newHTMLDataProvider:()=>NA});function W8(t=j8){let e=new wf(t),n=new ff(t,e),r=new hf(t,e),i=new uf(e),o=new vf(i),a=new bf(e),l=new gf(e);return{setDataProviders:e.setDataProviders.bind(e),createScanner:Bt,parseHTMLDocument:i.parseDocument.bind(i),doComplete:r.doComplete.bind(r),doComplete2:r.doComplete2.bind(r),setCompletionParticipants:r.setCompletionParticipants.bind(r),doHover:n.doHover.bind(n),format:bA,findDocumentHighlights:CA,findDocumentLinks:l.findDocumentLinks.bind(l),findDocumentSymbols:TA,findDocumentSymbols2:Iw,getFoldingRanges:a.getFoldingRanges.bind(a),getSelectionRanges:o.getSelectionRanges.bind(o),doQuoteComplete:r.doQuoteComplete.bind(r),doTagComplete:r.doTagComplete.bind(r),doRename:RA,findMatchingTagPosition:AA,findOnTypeRenameRanges:Ow,findLinkedEditingRanges:Ow}}function NA(t,e){return new zl(t,e)}function U8(){return NA("default",yf)}var j8,jl=xe(()=>{Oo();YF();iA();sA();vA();wA();kA();DA();FA();PA();MA();IA();OA();Ru();LA();Lw();$n();j8={}});var Sf=L(Tn=>{"use strict";Object.defineProperty(Tn,"__esModule",{value:!0});Tn.getWorkspacePnpPath=Tn.getPrettierPluginPath=Tn.importPrettier=Tn.importVueIntegration=Tn.importSvelteIntegration=Tn.getPackagePath=Tn.setIsTrusted=void 0;var Nw=require("node:path"),zA=!0;function H8(t){zA=t}Tn.setIsTrusted=H8;function _f(t,e,n=!0){let r=[];zA&&r.unshift(...e);try{return n?(0,Nw.dirname)(require.resolve(t+"/package.json",{paths:r})):require.resolve(t,{paths:r})}catch{return}}Tn.getPackagePath=_f;function qA(t,e){let n=_f(t,[e]);if(n)try{let r=(0,Nw.resolve)(n,"dist","editor.cjs");return require(r)}catch{console.error(`Couldn't load editor module from ${n}. Make sure you're using at least version v0.2.1 of the corresponding integration`);return}}function B8(t){return qA("@astrojs/svelte",t)}Tn.importSvelteIntegration=B8;function $8(t){return qA("@astrojs/vue",t)}Tn.importVueIntegration=$8;function V8(t){let e=_f("prettier",[t,__dirname]);if(e)return require(e)}Tn.importPrettier=V8;function G8(t){let e=_f("prettier-plugin-astro",[t,__dirname],!1);if(e)return e}Tn.getPrettierPluginPath=G8;function K8(t){try{let e=(0,Nw.resolve)(t,".pnp.cjs");return require.resolve(e),e}catch{return null}}Tn.getWorkspacePnpPath=K8});var xf=L(Vn=>{"use strict";var J8=Vn&&Vn.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),X8=Vn&&Vn.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Y8=Vn&&Vn.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&J8(e,t,n);return X8(e,t),e};Object.defineProperty(Vn,"__esModule",{value:!0});Vn.patchTSX=Vn.classNameFromFilename=Vn.framework2tsx=void 0;var zw=fn(),jA=Y8(require("node:path")),qw=bi(),WA=Sf();function Q8(t,e,n,r){let i=r==="vue"?(0,WA.importVueIntegration)(e):(0,WA.importSvelteIntegration)(e);if(!i)return l("");let o=UA(e),a=HA(i.toTSX(n,o),t);return l(a);function l(s){return{fileName:t+".tsx",capabilities:zw.FileCapabilities.full,kind:zw.FileKind.TypeScriptHostFile,snapshot:{getText:(c,u)=>s.substring(c,u),getLength:()=>s.length,getChangeRange:()=>{}},codegenStacks:[],mappings:[{sourceRange:[0,s.length],generatedRange:[0,0],data:zw.FileRangeCapabilities.full}],embeddedFiles:[]}}}Vn.framework2tsx=Q8;function Z8(t){return`${t}`.replace(new RegExp(/[-_]+/,"g")," ").replace(new RegExp(/[^\w\s]/,"g"),"").replace(new RegExp(/\s+(.)(\w*)/,"g"),(e,n,r)=>`${n.toUpperCase()+r.toLowerCase()}`).replace(new RegExp(/\w/),e=>e.toUpperCase())}function UA(t){let e=qw.URI.parse(t),r=qw.Utils.basename(e).slice(0,-qw.Utils.extname(e).length).split("").filter(s=>/[A-Za-z$_\d-]/.test(s)).join(""),i=r.split("").findIndex(s=>/[A-Za-z]/.test(s)),o=r.substring(i),a=Z8(o);return i===-1?`A${a}`:a}Vn.classNameFromFilename=UA;function HA(t,e){let n=jA.basename(e,jA.extname(e)),r=n.startsWith("[")&&n.endsWith("]");return t.replace(/\b(\S*)__AstroComponent_/gm,(i,o)=>o?r?`_${o}_`:o[0].toUpperCase()+o.slice(1):n==="404"?"FourOhFour":i)}Vn.patchTSX=HA});var VA=L(Cf=>{"use strict";Object.defineProperty(Cf,"__esModule",{value:!0});Cf.astro2tsx=void 0;var eV=require("@astrojs/compiler/sync"),tV=$F(),BA=fn(),$A=(jl(),ea(ql)),nV=xf();function rV(t,e){try{return(0,eV.convertToTSX)(t,{filename:e.filename})}catch(n){return console.error(`There was an error transforming ${e.filename} to TSX. An empty file will be returned instead. Please create an issue: https://github.com/withastro/language-tools/issues
530
+ * a _positive value_ means that the element should be focusable and reachable via sequential keyboard navigation; the order in which the elements are focused is the increasing value of the [**tabindex**](#attr-tabindex). If several elements share the same tabindex, their relative order follows their relative positions in the document.`},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/tabindex"}]},{name:"title",description:{kind:"markdown",value:"Contains a text representing advisory information related to the element it belongs to. Such information can typically, but not necessarily, be presented to the user as a tooltip."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/title"}]},{name:"translate",description:{kind:"markdown",value:"An enumerated attribute that is used to specify whether an element's attribute values and the values of its [`Text`](https://developer.mozilla.org/docs/Web/API/Text \"The Text interface represents the textual content of Element or Attr. If an element has no markup within its content, it has a single child implementing Text that contains the element's text. However, if the element contains markup, it is parsed into information items and Text nodes that form its children.\") node children are to be translated when the page is localized, or whether to leave them unchanged. It can have the following values:\n\n* empty string and `yes`, which indicates that the element will be translated.\n* `no`, which indicates that the element will not be translated."},valueSet:"y",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/translate"}]},{name:"onabort",description:{kind:"markdown",value:"The loading of a resource has been aborted."}},{name:"onblur",description:{kind:"markdown",value:"An element has lost focus (does not bubble)."}},{name:"oncanplay",description:{kind:"markdown",value:"The user agent can play the media, but estimates that not enough data has been loaded to play the media up to its end without having to stop for further buffering of content."}},{name:"oncanplaythrough",description:{kind:"markdown",value:"The user agent can play the media up to its end without having to stop for further buffering of content."}},{name:"onchange",description:{kind:"markdown",value:"The change event is fired for <input>, <select>, and <textarea> elements when a change to the element's value is committed by the user."}},{name:"onclick",description:{kind:"markdown",value:"A pointing device button has been pressed and released on an element."}},{name:"oncontextmenu",description:{kind:"markdown",value:"The right button of the mouse is clicked (before the context menu is displayed)."}},{name:"ondblclick",description:{kind:"markdown",value:"A pointing device button is clicked twice on an element."}},{name:"ondrag",description:{kind:"markdown",value:"An element or text selection is being dragged (every 350ms)."}},{name:"ondragend",description:{kind:"markdown",value:"A drag operation is being ended (by releasing a mouse button or hitting the escape key)."}},{name:"ondragenter",description:{kind:"markdown",value:"A dragged element or text selection enters a valid drop target."}},{name:"ondragleave",description:{kind:"markdown",value:"A dragged element or text selection leaves a valid drop target."}},{name:"ondragover",description:{kind:"markdown",value:"An element or text selection is being dragged over a valid drop target (every 350ms)."}},{name:"ondragstart",description:{kind:"markdown",value:"The user starts dragging an element or text selection."}},{name:"ondrop",description:{kind:"markdown",value:"An element is dropped on a valid drop target."}},{name:"ondurationchange",description:{kind:"markdown",value:"The duration attribute has been updated."}},{name:"onemptied",description:{kind:"markdown",value:"The media has become empty; for example, this event is sent if the media has already been loaded (or partially loaded), and the load() method is called to reload it."}},{name:"onended",description:{kind:"markdown",value:"Playback has stopped because the end of the media was reached."}},{name:"onerror",description:{kind:"markdown",value:"A resource failed to load."}},{name:"onfocus",description:{kind:"markdown",value:"An element has received focus (does not bubble)."}},{name:"onformchange"},{name:"onforminput"},{name:"oninput",description:{kind:"markdown",value:"The value of an element changes or the content of an element with the attribute contenteditable is modified."}},{name:"oninvalid",description:{kind:"markdown",value:"A submittable element has been checked and doesn't satisfy its constraints."}},{name:"onkeydown",description:{kind:"markdown",value:"A key is pressed down."}},{name:"onkeypress",description:{kind:"markdown",value:"A key is pressed down and that key normally produces a character value (use input instead)."}},{name:"onkeyup",description:{kind:"markdown",value:"A key is released."}},{name:"onload",description:{kind:"markdown",value:"A resource and its dependent resources have finished loading."}},{name:"onloadeddata",description:{kind:"markdown",value:"The first frame of the media has finished loading."}},{name:"onloadedmetadata",description:{kind:"markdown",value:"The metadata has been loaded."}},{name:"onloadstart",description:{kind:"markdown",value:"Progress has begun."}},{name:"onmousedown",description:{kind:"markdown",value:"A pointing device button (usually a mouse) is pressed on an element."}},{name:"onmousemove",description:{kind:"markdown",value:"A pointing device is moved over an element."}},{name:"onmouseout",description:{kind:"markdown",value:"A pointing device is moved off the element that has the listener attached or off one of its children."}},{name:"onmouseover",description:{kind:"markdown",value:"A pointing device is moved onto the element that has the listener attached or onto one of its children."}},{name:"onmouseup",description:{kind:"markdown",value:"A pointing device button is released over an element."}},{name:"onmousewheel"},{name:"onmouseenter",description:{kind:"markdown",value:"A pointing device is moved onto the element that has the listener attached."}},{name:"onmouseleave",description:{kind:"markdown",value:"A pointing device is moved off the element that has the listener attached."}},{name:"onpause",description:{kind:"markdown",value:"Playback has been paused."}},{name:"onplay",description:{kind:"markdown",value:"Playback has begun."}},{name:"onplaying",description:{kind:"markdown",value:"Playback is ready to start after having been paused or delayed due to lack of data."}},{name:"onprogress",description:{kind:"markdown",value:"In progress."}},{name:"onratechange",description:{kind:"markdown",value:"The playback rate has changed."}},{name:"onreset",description:{kind:"markdown",value:"A form is reset."}},{name:"onresize",description:{kind:"markdown",value:"The document view has been resized."}},{name:"onreadystatechange",description:{kind:"markdown",value:"The readyState attribute of a document has changed."}},{name:"onscroll",description:{kind:"markdown",value:"The document view or an element has been scrolled."}},{name:"onseeked",description:{kind:"markdown",value:"A seek operation completed."}},{name:"onseeking",description:{kind:"markdown",value:"A seek operation began."}},{name:"onselect",description:{kind:"markdown",value:"Some text is being selected."}},{name:"onshow",description:{kind:"markdown",value:"A contextmenu event was fired on/bubbled to an element that has a contextmenu attribute"}},{name:"onstalled",description:{kind:"markdown",value:"The user agent is trying to fetch media data, but data is unexpectedly not forthcoming."}},{name:"onsubmit",description:{kind:"markdown",value:"A form is submitted."}},{name:"onsuspend",description:{kind:"markdown",value:"Media data loading has been suspended."}},{name:"ontimeupdate",description:{kind:"markdown",value:"The time indicated by the currentTime attribute has been updated."}},{name:"onvolumechange",description:{kind:"markdown",value:"The volume has changed."}},{name:"onwaiting",description:{kind:"markdown",value:"Playback has stopped because of a temporary lack of data."}},{name:"onpointercancel",description:{kind:"markdown",value:"The pointer is unlikely to produce any more events."}},{name:"onpointerdown",description:{kind:"markdown",value:"The pointer enters the active buttons state."}},{name:"onpointerenter",description:{kind:"markdown",value:"Pointing device is moved inside the hit-testing boundary."}},{name:"onpointerleave",description:{kind:"markdown",value:"Pointing device is moved out of the hit-testing boundary."}},{name:"onpointerlockchange",description:{kind:"markdown",value:"The pointer was locked or released."}},{name:"onpointerlockerror",description:{kind:"markdown",value:"It was impossible to lock the pointer for technical reasons or because the permission was denied."}},{name:"onpointermove",description:{kind:"markdown",value:"The pointer changed coordinates."}},{name:"onpointerout",description:{kind:"markdown",value:"The pointing device moved out of hit-testing boundary or leaves detectable hover range."}},{name:"onpointerover",description:{kind:"markdown",value:"The pointing device is moved into the hit-testing boundary."}},{name:"onpointerup",description:{kind:"markdown",value:"The pointer leaves the active buttons state."}},{name:"aria-activedescendant",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-activedescendant"}],description:{kind:"markdown",value:"Identifies the currently active element when DOM focus is on a [`composite`](https://www.w3.org/TR/wai-aria-1.1/#composite) widget, [`textbox`](https://www.w3.org/TR/wai-aria-1.1/#textbox), [`group`](https://www.w3.org/TR/wai-aria-1.1/#group), or [`application`](https://www.w3.org/TR/wai-aria-1.1/#application)."}},{name:"aria-atomic",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-atomic"}],description:{kind:"markdown",value:"Indicates whether [assistive technologies](https://www.w3.org/TR/wai-aria-1.1/#dfn-assistive-technology) will present all, or only parts of, the changed region based on the change notifications defined by the [`aria-relevant`](https://www.w3.org/TR/wai-aria-1.1/#aria-relevant) attribute."}},{name:"aria-autocomplete",valueSet:"autocomplete",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-autocomplete"}],description:{kind:"markdown",value:"Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be presented if they are made."}},{name:"aria-busy",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-busy"}],description:{kind:"markdown",value:"Indicates an element is being modified and that assistive technologies _MAY_ want to wait until the modifications are complete before exposing them to the user."}},{name:"aria-checked",valueSet:"tristate",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-checked"}],description:{kind:"markdown",value:'Indicates the current "checked" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) of checkboxes, radio buttons, and other [widgets](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget). See related [`aria-pressed`](https://www.w3.org/TR/wai-aria-1.1/#aria-pressed) and [`aria-selected`](https://www.w3.org/TR/wai-aria-1.1/#aria-selected).'}},{name:"aria-colcount",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-colcount"}],description:{kind:"markdown",value:"Defines the total number of columns in a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-colindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-colindex)."}},{name:"aria-colindex",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-colindex"}],description:{kind:"markdown",value:"Defines an [element's](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) column index or position with respect to the total number of columns within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-colcount`](https://www.w3.org/TR/wai-aria-1.1/#aria-colcount) and [`aria-colspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-colspan)."}},{name:"aria-colspan",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-colspan"}],description:{kind:"markdown",value:"Defines the number of columns spanned by a cell or gridcell within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-colindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-colindex) and [`aria-rowspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowspan)."}},{name:"aria-controls",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-controls"}],description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) whose contents or presence are controlled by the current element. See related [`aria-owns`](https://www.w3.org/TR/wai-aria-1.1/#aria-owns)."}},{name:"aria-current",valueSet:"current",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-current"}],description:{kind:"markdown",value:"Indicates the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) that represents the current item within a container or set of related elements."}},{name:"aria-describedby",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-describedby"}],description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) that describes the [object](https://www.w3.org/TR/wai-aria-1.1/#dfn-object). See related [`aria-labelledby`](https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby)."}},{name:"aria-disabled",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-disabled"}],description:{kind:"markdown",value:"Indicates that the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is [perceivable](https://www.w3.org/TR/wai-aria-1.1/#dfn-perceivable) but disabled, so it is not editable or otherwise [operable](https://www.w3.org/TR/wai-aria-1.1/#dfn-operable). See related [`aria-hidden`](https://www.w3.org/TR/wai-aria-1.1/#aria-hidden) and [`aria-readonly`](https://www.w3.org/TR/wai-aria-1.1/#aria-readonly)."}},{name:"aria-dropeffect",valueSet:"dropeffect",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-dropeffect"}],description:{kind:"markdown",value:"\\[Deprecated in ARIA 1.1\\] Indicates what functions can be performed when a dragged object is released on the drop target."}},{name:"aria-errormessage",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-errormessage"}],description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) that provides an error message for the [object](https://www.w3.org/TR/wai-aria-1.1/#dfn-object). See related [`aria-invalid`](https://www.w3.org/TR/wai-aria-1.1/#aria-invalid) and [`aria-describedby`](https://www.w3.org/TR/wai-aria-1.1/#aria-describedby)."}},{name:"aria-expanded",valueSet:"u",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-expanded"}],description:{kind:"markdown",value:"Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed."}},{name:"aria-flowto",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-flowto"}],description:{kind:"markdown",value:"Identifies the next [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) in an alternate reading order of content which, at the user's discretion, allows assistive technology to override the general default of reading in document source order."}},{name:"aria-grabbed",valueSet:"u",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-grabbed"}],description:{kind:"markdown",value:`\\[Deprecated in ARIA 1.1\\] Indicates an element's "grabbed" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) in a drag-and-drop operation.`}},{name:"aria-haspopup",valueSet:"haspopup",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-haspopup"}],description:{kind:"markdown",value:"Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element)."}},{name:"aria-hidden",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-hidden"}],description:{kind:"markdown",value:"Indicates whether the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is exposed to an accessibility API. See related [`aria-disabled`](https://www.w3.org/TR/wai-aria-1.1/#aria-disabled)."}},{name:"aria-invalid",valueSet:"invalid",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-invalid"}],description:{kind:"markdown",value:"Indicates the entered value does not conform to the format expected by the application. See related [`aria-errormessage`](https://www.w3.org/TR/wai-aria-1.1/#aria-errormessage)."}},{name:"aria-label",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-label"}],description:{kind:"markdown",value:"Defines a string value that labels the current element. See related [`aria-labelledby`](https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby)."}},{name:"aria-labelledby",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby"}],description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) that labels the current element. See related [`aria-describedby`](https://www.w3.org/TR/wai-aria-1.1/#aria-describedby)."}},{name:"aria-level",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-level"}],description:{kind:"markdown",value:"Defines the hierarchical level of an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) within a structure."}},{name:"aria-live",valueSet:"live",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-live"}],description:{kind:"markdown",value:"Indicates that an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) will be updated, and describes the types of updates the [user agents](https://www.w3.org/TR/wai-aria-1.1/#dfn-user-agent), [assistive technologies](https://www.w3.org/TR/wai-aria-1.1/#dfn-assistive-technology), and user can expect from the [live region](https://www.w3.org/TR/wai-aria-1.1/#dfn-live-region)."}},{name:"aria-modal",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-modal"}],description:{kind:"markdown",value:"Indicates whether an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is modal when displayed."}},{name:"aria-multiline",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-multiline"}],description:{kind:"markdown",value:"Indicates whether a text box accepts multiple lines of input or only a single line."}},{name:"aria-multiselectable",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-multiselectable"}],description:{kind:"markdown",value:"Indicates that the user may select more than one item from the current selectable descendants."}},{name:"aria-orientation",valueSet:"orientation",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-orientation"}],description:{kind:"markdown",value:"Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous."}},{name:"aria-owns",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-owns"}],description:{kind:"markdown",value:"Identifies an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) in order to define a visual, functional, or contextual parent/child [relationship](https://www.w3.org/TR/wai-aria-1.1/#dfn-relationship) between DOM elements where the DOM hierarchy cannot be used to represent the relationship. See related [`aria-controls`](https://www.w3.org/TR/wai-aria-1.1/#aria-controls)."}},{name:"aria-placeholder",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-placeholder"}],description:{kind:"markdown",value:"Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value. A hint could be a sample value or a brief description of the expected format."}},{name:"aria-posinset",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-posinset"}],description:{kind:"markdown",value:"Defines an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element)'s number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. See related [`aria-setsize`](https://www.w3.org/TR/wai-aria-1.1/#aria-setsize)."}},{name:"aria-pressed",valueSet:"tristate",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-pressed"}],description:{kind:"markdown",value:'Indicates the current "pressed" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) of toggle buttons. See related [`aria-checked`](https://www.w3.org/TR/wai-aria-1.1/#aria-checked) and [`aria-selected`](https://www.w3.org/TR/wai-aria-1.1/#aria-selected).'}},{name:"aria-readonly",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-readonly"}],description:{kind:"markdown",value:"Indicates that the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is not editable, but is otherwise [operable](https://www.w3.org/TR/wai-aria-1.1/#dfn-operable). See related [`aria-disabled`](https://www.w3.org/TR/wai-aria-1.1/#aria-disabled)."}},{name:"aria-relevant",valueSet:"relevant",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-relevant"}],description:{kind:"markdown",value:"Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified. See related [`aria-atomic`](https://www.w3.org/TR/wai-aria-1.1/#aria-atomic)."}},{name:"aria-required",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-required"}],description:{kind:"markdown",value:"Indicates that user input is required on the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) before a form may be submitted."}},{name:"aria-roledescription",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-roledescription"}],description:{kind:"markdown",value:"Defines a human-readable, author-localized description for the [role](https://www.w3.org/TR/wai-aria-1.1/#dfn-role) of an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element)."}},{name:"aria-rowcount",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-rowcount"}],description:{kind:"markdown",value:"Defines the total number of rows in a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-rowindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowindex)."}},{name:"aria-rowindex",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-rowindex"}],description:{kind:"markdown",value:"Defines an [element's](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) row index or position with respect to the total number of rows within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-rowcount`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowcount) and [`aria-rowspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowspan)."}},{name:"aria-rowspan",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-rowspan"}],description:{kind:"markdown",value:"Defines the number of rows spanned by a cell or gridcell within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-rowindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowindex) and [`aria-colspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-colspan)."}},{name:"aria-selected",valueSet:"u",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-selected"}],description:{kind:"markdown",value:'Indicates the current "selected" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) of various [widgets](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget). See related [`aria-checked`](https://www.w3.org/TR/wai-aria-1.1/#aria-checked) and [`aria-pressed`](https://www.w3.org/TR/wai-aria-1.1/#aria-pressed).'}},{name:"aria-setsize",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-setsize"}],description:{kind:"markdown",value:"Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. See related [`aria-posinset`](https://www.w3.org/TR/wai-aria-1.1/#aria-posinset)."}},{name:"aria-sort",valueSet:"sort",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-sort"}],description:{kind:"markdown",value:"Indicates if items in a table or grid are sorted in ascending or descending order."}},{name:"aria-valuemax",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-valuemax"}],description:{kind:"markdown",value:"Defines the maximum allowed value for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget)."}},{name:"aria-valuemin",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-valuemin"}],description:{kind:"markdown",value:"Defines the minimum allowed value for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget)."}},{name:"aria-valuenow",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-valuenow"}],description:{kind:"markdown",value:"Defines the current value for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget). See related [`aria-valuetext`](https://www.w3.org/TR/wai-aria-1.1/#aria-valuetext)."}},{name:"aria-valuetext",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-valuetext"}],description:{kind:"markdown",value:"Defines the human readable text alternative of [`aria-valuenow`](https://www.w3.org/TR/wai-aria-1.1/#aria-valuenow) for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget)."}},{name:"aria-details",description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) that provides a detailed, extended description for the [object](https://www.w3.org/TR/wai-aria-1.1/#dfn-object). See related [`aria-describedby`](https://www.w3.org/TR/wai-aria-1.1/#aria-describedby)."}},{name:"aria-keyshortcuts",description:{kind:"markdown",value:"Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element."}}],valueSets:[{name:"b",values:[{name:"true"},{name:"false"}]},{name:"u",values:[{name:"true"},{name:"false"},{name:"undefined"}]},{name:"o",values:[{name:"on"},{name:"off"}]},{name:"y",values:[{name:"yes"},{name:"no"}]},{name:"w",values:[{name:"soft"},{name:"hard"}]},{name:"d",values:[{name:"ltr"},{name:"rtl"},{name:"auto"}]},{name:"m",values:[{name:"get",description:{kind:"markdown",value:"Corresponds to the HTTP [GET method](https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.3); form data are appended to the `action` attribute URI with a '?' as separator, and the resulting URI is sent to the server. Use this method when the form has no side-effects and contains only ASCII characters."}},{name:"post",description:{kind:"markdown",value:"Corresponds to the HTTP [POST method](https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.5); form data are included in the body of the form and sent to the server."}},{name:"dialog",description:{kind:"markdown",value:"Use when the form is inside a [`<dialog>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog) element to close the dialog when submitted."}}]},{name:"fm",values:[{name:"get"},{name:"post"}]},{name:"s",values:[{name:"row"},{name:"col"},{name:"rowgroup"},{name:"colgroup"}]},{name:"t",values:[{name:"hidden"},{name:"text"},{name:"search"},{name:"tel"},{name:"url"},{name:"email"},{name:"password"},{name:"datetime"},{name:"date"},{name:"month"},{name:"week"},{name:"time"},{name:"datetime-local"},{name:"number"},{name:"range"},{name:"color"},{name:"checkbox"},{name:"radio"},{name:"file"},{name:"submit"},{name:"image"},{name:"reset"},{name:"button"}]},{name:"im",values:[{name:"verbatim"},{name:"latin"},{name:"latin-name"},{name:"latin-prose"},{name:"full-width-latin"},{name:"kana"},{name:"kana-name"},{name:"katakana"},{name:"numeric"},{name:"tel"},{name:"email"},{name:"url"}]},{name:"bt",values:[{name:"button"},{name:"submit"},{name:"reset"},{name:"menu"}]},{name:"lt",values:[{name:"1"},{name:"a"},{name:"A"},{name:"i"},{name:"I"}]},{name:"mt",values:[{name:"context"},{name:"toolbar"}]},{name:"mit",values:[{name:"command"},{name:"checkbox"},{name:"radio"}]},{name:"et",values:[{name:"application/x-www-form-urlencoded"},{name:"multipart/form-data"},{name:"text/plain"}]},{name:"tk",values:[{name:"subtitles"},{name:"captions"},{name:"descriptions"},{name:"chapters"},{name:"metadata"}]},{name:"pl",values:[{name:"none"},{name:"metadata"},{name:"auto"}]},{name:"sh",values:[{name:"circle"},{name:"default"},{name:"poly"},{name:"rect"}]},{name:"xo",values:[{name:"anonymous"},{name:"use-credentials"}]},{name:"target",values:[{name:"_self"},{name:"_blank"},{name:"_parent"},{name:"_top"}]},{name:"sb",values:[{name:"allow-forms"},{name:"allow-modals"},{name:"allow-pointer-lock"},{name:"allow-popups"},{name:"allow-popups-to-escape-sandbox"},{name:"allow-same-origin"},{name:"allow-scripts"},{name:"allow-top-navigation"}]},{name:"tristate",values:[{name:"true"},{name:"false"},{name:"mixed"},{name:"undefined"}]},{name:"inputautocomplete",values:[{name:"additional-name"},{name:"address-level1"},{name:"address-level2"},{name:"address-level3"},{name:"address-level4"},{name:"address-line1"},{name:"address-line2"},{name:"address-line3"},{name:"bday"},{name:"bday-year"},{name:"bday-day"},{name:"bday-month"},{name:"billing"},{name:"cc-additional-name"},{name:"cc-csc"},{name:"cc-exp"},{name:"cc-exp-month"},{name:"cc-exp-year"},{name:"cc-family-name"},{name:"cc-given-name"},{name:"cc-name"},{name:"cc-number"},{name:"cc-type"},{name:"country"},{name:"country-name"},{name:"current-password"},{name:"email"},{name:"family-name"},{name:"fax"},{name:"given-name"},{name:"home"},{name:"honorific-prefix"},{name:"honorific-suffix"},{name:"impp"},{name:"language"},{name:"mobile"},{name:"name"},{name:"new-password"},{name:"nickname"},{name:"off"},{name:"on"},{name:"organization"},{name:"organization-title"},{name:"pager"},{name:"photo"},{name:"postal-code"},{name:"sex"},{name:"shipping"},{name:"street-address"},{name:"tel-area-code"},{name:"tel"},{name:"tel-country-code"},{name:"tel-extension"},{name:"tel-local"},{name:"tel-local-prefix"},{name:"tel-local-suffix"},{name:"tel-national"},{name:"transaction-amount"},{name:"transaction-currency"},{name:"url"},{name:"username"},{name:"work"}]},{name:"autocomplete",values:[{name:"inline"},{name:"list"},{name:"both"},{name:"none"}]},{name:"current",values:[{name:"page"},{name:"step"},{name:"location"},{name:"date"},{name:"time"},{name:"true"},{name:"false"}]},{name:"dropeffect",values:[{name:"copy"},{name:"move"},{name:"link"},{name:"execute"},{name:"popup"},{name:"none"}]},{name:"invalid",values:[{name:"grammar"},{name:"false"},{name:"spelling"},{name:"true"}]},{name:"live",values:[{name:"off"},{name:"polite"},{name:"assertive"}]},{name:"orientation",values:[{name:"vertical"},{name:"horizontal"},{name:"undefined"}]},{name:"relevant",values:[{name:"additions"},{name:"removals"},{name:"text"},{name:"all"},{name:"additions text"}]},{name:"sort",values:[{name:"ascending"},{name:"descending"},{name:"none"},{name:"other"}]},{name:"roles",values:[{name:"alert"},{name:"alertdialog"},{name:"button"},{name:"checkbox"},{name:"dialog"},{name:"gridcell"},{name:"link"},{name:"log"},{name:"marquee"},{name:"menuitem"},{name:"menuitemcheckbox"},{name:"menuitemradio"},{name:"option"},{name:"progressbar"},{name:"radio"},{name:"scrollbar"},{name:"searchbox"},{name:"slider"},{name:"spinbutton"},{name:"status"},{name:"switch"},{name:"tab"},{name:"tabpanel"},{name:"textbox"},{name:"timer"},{name:"tooltip"},{name:"treeitem"},{name:"combobox"},{name:"grid"},{name:"listbox"},{name:"menu"},{name:"menubar"},{name:"radiogroup"},{name:"tablist"},{name:"tree"},{name:"treegrid"},{name:"application"},{name:"article"},{name:"cell"},{name:"columnheader"},{name:"definition"},{name:"directory"},{name:"document"},{name:"feed"},{name:"figure"},{name:"group"},{name:"heading"},{name:"img"},{name:"list"},{name:"listitem"},{name:"math"},{name:"none"},{name:"note"},{name:"presentation"},{name:"region"},{name:"row"},{name:"rowgroup"},{name:"rowheader"},{name:"separator"},{name:"table"},{name:"term"},{name:"text"},{name:"toolbar"},{name:"banner"},{name:"complementary"},{name:"contentinfo"},{name:"form"},{name:"main"},{name:"navigation"},{name:"region"},{name:"search"},{name:"doc-abstract"},{name:"doc-acknowledgments"},{name:"doc-afterword"},{name:"doc-appendix"},{name:"doc-backlink"},{name:"doc-biblioentry"},{name:"doc-bibliography"},{name:"doc-biblioref"},{name:"doc-chapter"},{name:"doc-colophon"},{name:"doc-conclusion"},{name:"doc-cover"},{name:"doc-credit"},{name:"doc-credits"},{name:"doc-dedication"},{name:"doc-endnote"},{name:"doc-endnotes"},{name:"doc-epigraph"},{name:"doc-epilogue"},{name:"doc-errata"},{name:"doc-example"},{name:"doc-footnote"},{name:"doc-foreword"},{name:"doc-glossary"},{name:"doc-glossref"},{name:"doc-index"},{name:"doc-introduction"},{name:"doc-noteref"},{name:"doc-notice"},{name:"doc-pagebreak"},{name:"doc-pagelist"},{name:"doc-part"},{name:"doc-preface"},{name:"doc-prologue"},{name:"doc-pullquote"},{name:"doc-qna"},{name:"doc-subtitle"},{name:"doc-tip"},{name:"doc-toc"}]},{name:"metanames",values:[{name:"application-name"},{name:"author"},{name:"description"},{name:"format-detection"},{name:"generator"},{name:"keywords"},{name:"publisher"},{name:"referrer"},{name:"robots"},{name:"theme-color"},{name:"viewport"}]},{name:"haspopup",values:[{name:"false",description:{kind:"markdown",value:"(default) Indicates the element does not have a popup."}},{name:"true",description:{kind:"markdown",value:"Indicates the popup is a menu."}},{name:"menu",description:{kind:"markdown",value:"Indicates the popup is a menu."}},{name:"listbox",description:{kind:"markdown",value:"Indicates the popup is a listbox."}},{name:"tree",description:{kind:"markdown",value:"Indicates the popup is a tree."}},{name:"grid",description:{kind:"markdown",value:"Indicates the popup is a grid."}},{name:"dialog",description:{kind:"markdown",value:"Indicates the popup is a dialog."}}]},{name:"decoding",values:[{name:"sync"},{name:"async"},{name:"auto"}]},{name:"loading",values:[{name:"eager",description:{kind:"markdown",value:"Loads the image immediately, regardless of whether or not the image is currently within the visible viewport (this is the default value)."}},{name:"lazy",description:{kind:"markdown",value:"Defers loading the image until it reaches a calculated distance from the viewport, as defined by the browser. The intent is to avoid the network and storage bandwidth needed to handle the image until it's reasonably certain that it will be needed. This generally improves the performance of the content in most typical use cases."}}]},{name:"referrerpolicy",values:[{name:"no-referrer"},{name:"no-referrer-when-downgrade"},{name:"origin"},{name:"origin-when-cross-origin"},{name:"same-origin"},{name:"strict-origin"},{name:"strict-origin-when-cross-origin"},{name:"unsafe-url"}]}]}});var wf,q8,LA=xe(()=>{Ru();Lw();Dw();wf=class{constructor(e){this.dataProviders=[],this.setDataProviders(e.useDefaultDataProvider!==!1,e.customDataProviders||[])}setDataProviders(e,n){this.dataProviders=[],e&&this.dataProviders.push(new zl("html5",yf)),this.dataProviders.push(...n)}getDataProviders(){return this.dataProviders}isVoidElement(e,n){return!!e&&XF(n,e.toLowerCase(),(r,i)=>r.localeCompare(i))>=0}getVoidElements(e){let n=Array.isArray(e)?e:this.getDataProviders().filter(i=>i.isApplicable(e)),r=[];return n.forEach(i=>{i.provideTags().filter(o=>o.void).forEach(o=>r.push(o.name))}),r.sort()}isPathAttribute(e,n){if(n==="src"||n==="href")return!0;let r=q8[e];return r?typeof r=="string"?r===n:r.indexOf(n)!==-1:!1}},q8={a:"href",area:"href",body:"background",blockquote:"cite",del:"cite",form:"action",frame:["src","longdesc"],img:["src","longdesc"],ins:"cite",link:"href",object:"data",q:"cite",script:"src",audio:"src",button:"formaction",command:"icon",embed:"src",html:"manifest",input:["src","formaction"],source:"src",track:"src",video:["src","poster"]}});var ql={};Ib(ql,{ClientCapabilities:()=>Cw,Color:()=>oe.Color,ColorInformation:()=>oe.ColorInformation,ColorPresentation:()=>oe.ColorPresentation,Command:()=>oe.Command,CompletionItem:()=>oe.CompletionItem,CompletionItemKind:()=>oe.CompletionItemKind,CompletionItemTag:()=>oe.CompletionItemTag,CompletionList:()=>oe.CompletionList,Diagnostic:()=>oe.Diagnostic,DocumentHighlight:()=>oe.DocumentHighlight,DocumentHighlightKind:()=>oe.DocumentHighlightKind,DocumentLink:()=>oe.DocumentLink,DocumentSymbol:()=>oe.DocumentSymbol,DocumentUri:()=>oe.DocumentUri,FileType:()=>Du,FoldingRange:()=>oe.FoldingRange,FoldingRangeKind:()=>oe.FoldingRangeKind,FormattingOptions:()=>oe.FormattingOptions,Hover:()=>oe.Hover,InsertReplaceEdit:()=>oe.InsertReplaceEdit,InsertTextFormat:()=>oe.InsertTextFormat,InsertTextMode:()=>oe.InsertTextMode,Location:()=>oe.Location,MarkedString:()=>oe.MarkedString,MarkupContent:()=>oe.MarkupContent,MarkupKind:()=>oe.MarkupKind,Position:()=>oe.Position,Range:()=>oe.Range,ScannerState:()=>Ae,SelectionRange:()=>oe.SelectionRange,SymbolInformation:()=>oe.SymbolInformation,SymbolKind:()=>oe.SymbolKind,TextDocument:()=>Il,TextEdit:()=>oe.TextEdit,TokenType:()=>he,WorkspaceEdit:()=>oe.WorkspaceEdit,getDefaultHTMLDataProvider:()=>U8,getLanguageService:()=>W8,newHTMLDataProvider:()=>NA});function W8(t=j8){let e=new wf(t),n=new ff(t,e),r=new hf(t,e),i=new uf(e),o=new vf(i),a=new bf(e),l=new gf(e);return{setDataProviders:e.setDataProviders.bind(e),createScanner:Bt,parseHTMLDocument:i.parseDocument.bind(i),doComplete:r.doComplete.bind(r),doComplete2:r.doComplete2.bind(r),setCompletionParticipants:r.setCompletionParticipants.bind(r),doHover:n.doHover.bind(n),format:bA,findDocumentHighlights:CA,findDocumentLinks:l.findDocumentLinks.bind(l),findDocumentSymbols:TA,findDocumentSymbols2:Iw,getFoldingRanges:a.getFoldingRanges.bind(a),getSelectionRanges:o.getSelectionRanges.bind(o),doQuoteComplete:r.doQuoteComplete.bind(r),doTagComplete:r.doTagComplete.bind(r),doRename:RA,findMatchingTagPosition:AA,findOnTypeRenameRanges:Ow,findLinkedEditingRanges:Ow}}function NA(t,e){return new zl(t,e)}function U8(){return NA("default",yf)}var j8,jl=xe(()=>{Oo();YF();iA();sA();vA();wA();kA();DA();FA();PA();MA();IA();OA();Ru();LA();Lw();$n();j8={}});var Sf=L(Tn=>{"use strict";Object.defineProperty(Tn,"__esModule",{value:!0});Tn.getWorkspacePnpPath=Tn.getPrettierPluginPath=Tn.importPrettier=Tn.importVueIntegration=Tn.importSvelteIntegration=Tn.getPackagePath=Tn.setIsTrusted=void 0;var Nw=require("node:path"),zA=!0;function H8(t){zA=t}Tn.setIsTrusted=H8;function _f(t,e,n=!0){let r=[];zA&&r.unshift(...e);try{return n?(0,Nw.dirname)(require.resolve(t+"/package.json",{paths:r})):require.resolve(t,{paths:r})}catch{return}}Tn.getPackagePath=_f;function qA(t,e){let n=_f(t,[e]);if(n)try{let r=(0,Nw.resolve)(n,"dist","editor.cjs");return require(r)}catch(r){console.error(`Couldn't load editor module from ${n}. Make sure you're using at least version v0.2.1 of the corresponding integration. Reason: ${r}`);return}}function B8(t){return qA("@astrojs/svelte",t)}Tn.importSvelteIntegration=B8;function $8(t){return qA("@astrojs/vue",t)}Tn.importVueIntegration=$8;function V8(t){let e=_f("prettier",[t,__dirname]);if(e)return require(e)}Tn.importPrettier=V8;function G8(t){let e=_f("prettier-plugin-astro",[t,__dirname],!1);if(e)return e}Tn.getPrettierPluginPath=G8;function K8(t){try{let e=(0,Nw.resolve)(t,".pnp.cjs");return require.resolve(e),e}catch{return null}}Tn.getWorkspacePnpPath=K8});var xf=L(Vn=>{"use strict";var J8=Vn&&Vn.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),X8=Vn&&Vn.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Y8=Vn&&Vn.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&J8(e,t,n);return X8(e,t),e};Object.defineProperty(Vn,"__esModule",{value:!0});Vn.patchTSX=Vn.classNameFromFilename=Vn.framework2tsx=void 0;var zw=fn(),jA=Y8(require("node:path")),qw=bi(),WA=Sf();function Q8(t,e,n,r){let i=r==="vue"?(0,WA.importVueIntegration)(e):(0,WA.importSvelteIntegration)(e);if(!i)return l("");let o=UA(e),a=HA(i.toTSX(n,o),t);return l(a);function l(s){return{fileName:t+".tsx",capabilities:zw.FileCapabilities.full,kind:zw.FileKind.TypeScriptHostFile,snapshot:{getText:(c,u)=>s.substring(c,u),getLength:()=>s.length,getChangeRange:()=>{}},codegenStacks:[],mappings:[{sourceRange:[0,s.length],generatedRange:[0,0],data:zw.FileRangeCapabilities.full}],embeddedFiles:[]}}}Vn.framework2tsx=Q8;function Z8(t){return`${t}`.replace(new RegExp(/[-_]+/,"g")," ").replace(new RegExp(/[^\w\s]/,"g"),"").replace(new RegExp(/\s+(.)(\w*)/,"g"),(e,n,r)=>`${n.toUpperCase()+r.toLowerCase()}`).replace(new RegExp(/\w/),e=>e.toUpperCase())}function UA(t){let e=qw.URI.parse(t),r=qw.Utils.basename(e).slice(0,-qw.Utils.extname(e).length).split("").filter(s=>/[A-Za-z$_\d-]/.test(s)).join(""),i=r.split("").findIndex(s=>/[A-Za-z]/.test(s)),o=r.substring(i),a=Z8(o);return i===-1?`A${a}`:a}Vn.classNameFromFilename=UA;function HA(t,e){let n=jA.basename(e,jA.extname(e)),r=n.startsWith("[")&&n.endsWith("]");return t.replace(/\b(\S*)__AstroComponent_/gm,(i,o)=>o?r?`_${o}_`:o[0].toUpperCase()+o.slice(1):n==="404"?"FourOhFour":i)}Vn.patchTSX=HA});var VA=L(Cf=>{"use strict";Object.defineProperty(Cf,"__esModule",{value:!0});Cf.astro2tsx=void 0;var eV=require("@astrojs/compiler/sync"),tV=$F(),BA=fn(),$A=(jl(),ea(ql)),nV=xf();function rV(t,e){try{return(0,eV.convertToTSX)(t,{filename:e.filename})}catch(n){return console.error(`There was an error transforming ${e.filename} to TSX. An empty file will be returned instead. Please create an issue: https://github.com/withastro/language-tools/issues
531
531
  Error: ${n}.`),{code:"",map:{file:e.filename??"",sources:[],sourcesContent:[],names:[],mappings:"",version:0},diagnostics:[{code:1e3,location:{file:e.filename,line:1,column:1,length:t.length},severity:1,text:"The Astro compiler encountered an unknown error while parsing this file. Please create an issue with your code and the error shown in the server's logs: https://github.com/withastro/language-tools/issues"}]}}}function iV(t,e,n,r){let i=rV(t,{filename:e});return{virtualFile:oV(t,i,e,n,r),diagnostics:i.diagnostics}}Cf.astro2tsx=iV;function oV(t,e,n,r,i){e.code=(0,nV.patchTSX)(e.code,n);let o=(0,tV.decode)(e.map.mappings),a=$A.TextDocument.create(n,"astro",0,t),l=$A.TextDocument.create(n+".tsx","typescriptreact",0,e.code),s=[],c;for(let d=0;d<o.length;d++)for(let h of o[d]){let g=h[0],m=l.offsetAt({line:d,character:g});if(c){let p=m-c.genOffset,_=t.substring(c.sourceOffset,c.sourceOffset+p),y=e.code.substring(c.genOffset,c.genOffset+p);if(_!==y){p=0;for(let f=0;f<m-c.genOffset&&_[f]===y[f];f++)p=f+1}if(p>0){let f=s.length?s[s.length-1]:void 0;if(f&&f.generatedRange[1]===c.genOffset&&f.sourceRange[1]===c.sourceOffset)f.generatedRange[1]=c.genOffset+p,f.sourceRange[1]=c.sourceOffset+p;else{let S=i.findNodeAt(c.sourceOffset).tag!=="script"?BA.FileRangeCapabilities.full:{completion:!1,definition:!1,diagnostic:!1,displayWithLink:!1,hover:!1,references:!1,referencesCodeLens:!1,rename:!1,semanticTokens:!1};s.push({sourceRange:[c.sourceOffset,c.sourceOffset+p],generatedRange:[c.genOffset,c.genOffset+p],data:S})}}c=void 0}if(h[2]!==void 0&&h[3]!==void 0){let p=a.offsetAt({line:h[2],character:h[3]});c={genOffset:m,sourceOffset:p}}}let u=r.createSourceFile("/a.tsx",e.code,r.ScriptTarget.ESNext);return u.statements[0]&&s.push({sourceRange:[0,t.length],generatedRange:[u.statements[0].getStart(u),e.code.length],data:{}}),{fileName:n+".tsx",kind:BA.FileKind.TypeScriptHostFile,capabilities:{codeAction:!0,documentFormatting:!1,diagnostic:!0,documentSymbol:!0,inlayHint:!0,foldingRange:!0},codegenStacks:[],snapshot:{getText:(d,h)=>e.code.substring(d,h),getLength:()=>e.code.length,getChangeRange:()=>{}},mappings:s,embeddedFiles:[]}}});var GA=L(kf=>{"use strict";Object.defineProperty(kf,"__esModule",{value:!0});kf.getAstroMetadata=void 0;var sV=require("@astrojs/compiler/sync");function aV(t,e=!0){let n=(0,sV.parse)(t,{position:e});return{...n,frontmatter:lV(n.ast,t)}}kf.getAstroMetadata=aV;function lV(t,e){if(!t.children||t.children&&t.children.length===0)return{status:"doesnt-exist",position:void 0};if(t.children[0].type==="frontmatter"){let n=t.children[0];if(n.position)return n.position.end?n.position.end.offset===e.length&&!e.endsWith("---")?{status:"open",position:{start:n.position.start,end:void 0}}:{status:"closed",position:{start:n.position.start,end:n.position.end}}:{status:"open",position:{start:n.position.start,end:void 0}}}return{status:"doesnt-exist",position:void 0}}});var JA=L(Cr=>{"use strict";var cV=Cr&&Cr.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),uV=Cr&&Cr.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),KA=Cr&&Cr.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&cV(e,t,n);return uV(e,t),e};Object.defineProperty(Cr,"__esModule",{value:!0});Cr.collectClassesAndIdsFromDocument=Cr.extractStylesheets=void 0;var Tf=require("@astrojs/compiler/utils"),Ef=fn(),dV=KA(vu()),hV=KA(Xh());function pV(t,e,n,r){let i=fV(t,e,n.roots),o=mV(r);if(o.length>0){let a=[];for(let c of o)a.push("x { "),a.push([c.value,void 0,c.position.start.offset+7,Ef.FileRangeCapabilities.full]),a.push(` }
532
532
  `);let l=dV.buildMappings(a),s=hV.toString(a);i.push({fileName:t+".inline.css",codegenStacks:[],snapshot:{getText:(c,u)=>s.substring(c,u),getLength:()=>s.length,getChangeRange:()=>{}},capabilities:{documentSymbol:!0},embeddedFiles:[],kind:Ef.FileKind.TextFile,mappings:l})}return i}Cr.extractStylesheets=pV;function fV(t,e,n){let r=[],i=0;o(n);function o(a){for(let[l,s]of a.entries()){if(s.tag==="style"&&s.startTagEnd!==void 0&&s.endTagStart!==void 0){let c=e.getText(s.startTagEnd,s.endTagStart);r.push({fileName:t+`.${i}.css`,kind:Ef.FileKind.TextFile,snapshot:{getText:(u,d)=>c.substring(u,d),getLength:()=>c.length,getChangeRange:()=>{}},codegenStacks:[],mappings:[{sourceRange:[s.startTagEnd,s.endTagStart],generatedRange:[0,c.length],data:Ef.FileRangeCapabilities.full}],capabilities:{diagnostic:!1,documentSymbol:!0,foldingRange:!0,documentFormatting:!1},embeddedFiles:[]}),i++}s.children&&o(s.children)}}return r}function mV(t){let e=[];function n(r){r.children&&r.children.forEach(i=>{if(Tf.is.element(i)){let o=i.attributes.find(a=>a.name==="style"&&a.kind==="quoted");o&&o.position&&e.push(o)}Tf.is.parent(i)&&n(i)})}return n(t),e}function gV(t){let e=[];function n(r){r.children&&r.children.forEach(i=>{if(Tf.is.element(i)){let o=i.attributes.filter(a=>a.kind==="quoted"&&(a.name==="class"||a.name==="id")).flatMap(a=>a.value.split(" "));e.push(...o)}Tf.is.parent(i)&&n(i)})}return n(t),e}Cr.collectClassesAndIdsFromDocument=gV});var Wl=L(Ut=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Ut.editShouldBeInFrontmatter=Ut.getOpenFrontmatterEdit=Ut.getNewFrontmatterEdit=Ut.ensureRangeIsInFrontmatter=Ut.ensureProperEditForFrontmatter=Ut.isInsideFrontmatter=Ut.isInsideExpression=Ut.isInComponentStartTag=Ut.isPossibleComponent=Ut.isJSDocument=void 0;var jw=(jl(),ea(ql));function bV(t){return t==="javascript"||t==="typescript"||t==="javascriptreact"||t==="typescriptreact"}Ut.isJSDocument=bV;function XA(t){return!!t.tag?.[0].match(/[A-Z]/)||!!t.tag?.match(/.+[.][A-Z]?/)}Ut.isPossibleComponent=XA;function vV(t,e){let n=t.findNodeAt(e);return XA(n)&&(!n.startTagEnd||e<n.startTagEnd)}Ut.isInComponentStartTag=vV;function yV(t,e,n){let r=t.substring(e,n);return r.lastIndexOf("{")>r.lastIndexOf("}")}Ut.isInsideExpression=yV;function wV(t,e){switch(e.status){case"closed":return t>e.position.start.offset&&t<e.position.end.offset;case"open":return t>e.position.start.offset;case"doesnt-exist":return!1}}Ut.isInsideFrontmatter=wV;function _V(t,e,n,r="top"){switch(e.status){case"open":return ZA(t,n);case"closed":return{newText:t.newText,range:YA(t.range,e,r)};case"doesnt-exist":return QA(t,n)}}Ut.ensureProperEditForFrontmatter=_V;function YA(t,e,n="top"){if(e.status==="open"||e.status==="closed"){let r={line:e.position.start.line,character:e.position.start.column-1},i=e.position.end?{line:e.position.end.line-1,character:0}:void 0;return t.start.line<r.line||i&&t.start.line>i.line?i&&n==="bottom"?jw.Range.create(i,i):jw.Range.create(r,r):t}return t}Ut.ensureRangeIsInFrontmatter=YA;function QA(t,e){return t.newText=`---${e}${t.newText}---${e}${e}`,t.range=jw.Range.create(0,0,0,0),t}Ut.getNewFrontmatterEdit=QA;function ZA(t,e){return t.newText=t.newText.startsWith(e)?`${t.newText}---`:`${e}${t.newText}---`,t}Ut.getOpenFrontmatterEdit=ZA;function SV(t,e){let n=t.start.line===0&&t.start.character===0,r=e&&t.start.line>e.lineCount;return n||r?{itShould:!0,position:r?"bottom":"top"}:{itShould:!1,position:void 0}}Ut.editShouldBeInFrontmatter=SV});var iP=L(kr=>{"use strict";var xV=kr&&kr.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),CV=kr&&kr.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),kV=kr&&kr.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&xV(e,t,n);return CV(e,t),e};Object.defineProperty(kr,"__esModule",{value:!0});kr.preprocessHTML=kr.parseHTML=void 0;var eP=fn(),Es=kV((jl(),ea(ql))),TV=Wl(),nP=Es.getLanguageService();function EV(t,e,n){let r=rP(e.getText(0,e.getLength()),n);return{virtualFile:DV(t,r),htmlDocument:RV(r)}}kr.parseHTML=EV;var tP=nP.createScanner;function rP(t,e){let n=t.split("").fill(" ",0,e).join(""),r=tP(n),i=r.scan(),o=null;for(;i!==Es.TokenType.EOS;){let s=r.getTokenOffset();i===Es.TokenType.StartTagOpen&&(o=s),i===Es.TokenType.StartTagClose&&(a(s)?l(s):o=null),i===Es.TokenType.StartTagSelfClose&&(o=null),i===Es.TokenType.Unknown&&r.getScannerState()===Es.ScannerState.WithinTag&&r.getTokenText()==="<"&&a(s)&&l(s),i=r.scan()}return n;function a(s){return o!==null&&(0,TV.isInsideExpression)(n,o,s)}function l(s,c){n=n.substring(0,s)+" "+n.substring(s+1),r=tP(n,s,c??Es.ScannerState.WithinTag)}}kr.preprocessHTML=rP;function DV(t,e){return{fileName:t+".html",kind:eP.FileKind.TextFile,snapshot:{getText:(n,r)=>e.substring(n,r),getLength:()=>e.length,getChangeRange:()=>{}},codegenStacks:[],mappings:[{sourceRange:[0,e.length],generatedRange:[0,e.length],data:eP.FileRangeCapabilities.full}],capabilities:{documentSymbol:!0,foldingRange:!0,documentFormatting:!1},embeddedFiles:[]}}function RV(t){return nP.parseHTMLDocument({getText:()=>t})}});var lP=L(Qi=>{"use strict";var FV=Qi&&Qi.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),AV=Qi&&Qi.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),sP=Qi&&Qi.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&FV(e,t,n);return AV(e,t),e};Object.defineProperty(Qi,"__esModule",{value:!0});Qi.extractScriptTags=void 0;var oP=require("@astrojs/compiler/utils"),Au=fn(),PV=sP(vu()),MV=sP(Xh());function IV(t,e,n,r){let i=OV(t,e,n.roots),o=[...LV(n,e),...qV(r)].sort((a,l)=>a.startOffset-l.startOffset);return o.length>0&&i.push(jV(t,o)),i}Qi.extractScriptTags=IV;function aP(t){return!!(!t.attributes||t.attributes&&Object.entries(t.attributes).length===0||t.attributes.type?.includes("module"))}function OV(t,e,n){let r=[],i=0;o(n);function o(a){for(let[l,s]of a.entries()){if(s.tag==="script"&&s.startTagEnd!==void 0&&s.endTagStart!==void 0&&aP(s)){let c=e.getText(s.startTagEnd,s.endTagStart);r.push({fileName:t+`.${i}.mts`,kind:Au.FileKind.TypeScriptHostFile,snapshot:{getText:(u,d)=>c.substring(u,d),getLength:()=>c.length,getChangeRange:()=>{}},codegenStacks:[],mappings:[{sourceRange:[s.startTagEnd,s.endTagStart],generatedRange:[0,c.length],data:Au.FileRangeCapabilities.full}],capabilities:{diagnostic:!0,codeAction:!0,inlayHint:!0,documentSymbol:!0,foldingRange:!0,documentFormatting:!1},embeddedFiles:[]}),i++}s.children&&o(s.children)}}return r}function LV(t,e){let n=[];r(t.roots);function r(i){for(let[o,a]of i.entries()){if(a.tag==="script"&&a.startTagEnd!==void 0&&a.endTagStart!==void 0&&!zV(a.attributes?.type)&&!aP(a)){let l=e.getText(a.startTagEnd,a.endTagStart);n.push({startOffset:a.startTagEnd,content:l})}a.children&&r(a.children)}}return n}var NV=["application/json","application/ld+json","importmap","speculationrules"];function zV(t){return t?NV.includes(t.slice(1,-1)):!1}function qV(t){let e=[];function n(r){r.children&&r.children.forEach(i=>{if(oP.is.element(i)){let o=i.attributes.find(a=>WV.includes(a.name)&&a.kind==="quoted");o&&o.position&&e.push({content:o.value,startOffset:o.position.start.offset+`${o.name}="`.length})}oP.is.parent(i)&&n(i)})}return n(t),e}function jV(t,e){let n=[];for(let o of e)n.push([o.content,void 0,o.startOffset,Au.FileRangeCapabilities.full]);let r=PV.buildMappings(n),i=MV.toString(n);return{fileName:t+".inline.mjs",codegenStacks:[],snapshot:{getText:(o,a)=>i.substring(o,a),getLength:()=>i.length,getChangeRange:()=>{}},capabilities:Au.FileCapabilities.full,embeddedFiles:[],kind:Au.FileKind.TypeScriptHostFile,mappings:r}}var WV=["onabort","onafterprint","onauxclick","onbeforematch","onbeforeprint","onbeforeunload","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onrejectionhandled","onreset","onresize","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"]});var Ul=L(Tr=>{"use strict";var UV=Tr&&Tr.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),HV=Tr&&Tr.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),BV=Tr&&Tr.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&UV(e,t,n);return HV(e,t),e};Object.defineProperty(Tr,"__esModule",{value:!0});Tr.AstroFile=Tr.getLanguageModule=void 0;var Ww=fn(),$V=BV(require("node:path")),VV=VA(),GV=GA(),KV=JA(),JV=iP(),XV=lP();function YV(t,e){return{createVirtualFile(n,r){if(n.endsWith(".astro"))return new Df(n,r,e)},updateVirtualFile(n,r){n.update(r)},resolveHost(n){return{...n,resolveModuleName(r,i){return i===e.ModuleKind.ESNext&&(r.endsWith(".astro")||r.endsWith(".vue")||r.endsWith(".svelte"))?`${r}.js`:n.resolveModuleName?.(r,i)??r},getScriptFileNames(){return[...n.getScriptFileNames(),...t?["./env.d.ts","./astro-jsx.d.ts"].map(i=>e.sys.resolvePath($V.resolve(t.path,i))):[]]},getCompilationSettings(){let r=n.getCompilationSettings();return{...r,module:e.ModuleKind.ESNext??99,target:e.ScriptTarget.ESNext??99,jsx:e.JsxEmit.Preserve??1,jsxImportSource:void 0,jsxFactory:"astroHTML",resolveJsonModule:!0,allowJs:!0,isolatedModules:!0,moduleResolution:r.moduleResolution===e.ModuleResolutionKind.Classic||!r.moduleResolution?e.ModuleResolutionKind.Node10:r.moduleResolution}}}}}}Tr.getLanguageModule=YV;var Df=class{constructor(e,n,r){this.sourceFileName=e,this.snapshot=n,this.ts=r,this.kind=Ww.FileKind.TextFile,this.capabilities=Ww.FileCapabilities.full,this.codegenStacks=[],this.fileName=e,this.onSnapshotUpdated()}get hasCompilationErrors(){return this.compilerDiagnostics.filter(e=>e.severity===1).length>0}update(e){this.snapshot=e,this.onSnapshotUpdated()}onSnapshotUpdated(){this.mappings=[{sourceRange:[0,this.snapshot.getLength()],generatedRange:[0,this.snapshot.getLength()],data:Ww.FileRangeCapabilities.full}],this.astroMeta=(0,GV.getAstroMetadata)(this.snapshot.getText(0,this.snapshot.getLength()));let{htmlDocument:e,virtualFile:n}=(0,JV.parseHTML)(this.fileName,this.snapshot,this.astroMeta.frontmatter.status==="closed"?this.astroMeta.frontmatter.position.end.offset:0);this.htmlDocument=e;let r=(0,XV.extractScriptTags)(this.fileName,this.snapshot,e,this.astroMeta.ast);this.scriptFiles=r.map(o=>o.fileName),n.embeddedFiles.push(...(0,KV.extractStylesheets)(this.fileName,this.snapshot,e,this.astroMeta.ast),...r),this.embeddedFiles=[],this.embeddedFiles.push(n);let i=(0,VV.astro2tsx)(this.snapshot.getText(0,this.snapshot.getLength()),this.fileName,this.ts,e);this.compilerDiagnostics=i.diagnostics,this.embeddedFiles.push(i.virtualFile)}};Tr.AstroFile=Df});var cP=L(Rf=>{"use strict";Object.defineProperty(Rf,"__esModule",{value:!0});Rf.getSvelteLanguageModule=void 0;var Uw=fn(),QV=xf();function ZV(){return{createVirtualFile(t,e){if(t.endsWith(".svelte"))return new Hw(t,e)},updateVirtualFile(t,e){t.update(e)}}}Rf.getSvelteLanguageModule=ZV;var Hw=class{constructor(e,n){this.sourceFileName=e,this.snapshot=n,this.kind=Uw.FileKind.TextFile,this.capabilities=Uw.FileCapabilities.full,this.codegenStacks=[],this.fileName=e,this.onSnapshotUpdated()}update(e){this.snapshot=e,this.onSnapshotUpdated()}onSnapshotUpdated(){this.mappings=[{sourceRange:[0,this.snapshot.getLength()],generatedRange:[0,this.snapshot.getLength()],data:Uw.FileRangeCapabilities.full}],this.embeddedFiles=[],this.embeddedFiles.push((0,QV.framework2tsx)(this.fileName,this.fileName,this.snapshot.getText(0,this.snapshot.getLength()),"svelte"))}}});var uP=L(Ff=>{"use strict";Object.defineProperty(Ff,"__esModule",{value:!0});Ff.getVueLanguageModule=void 0;var Bw=fn(),eG=xf();function tG(){return{createVirtualFile(t,e){if(t.endsWith(".vue"))return new $w(t,e)},updateVirtualFile(t,e){t.update(e)}}}Ff.getVueLanguageModule=tG;var $w=class{constructor(e,n){this.sourceFileName=e,this.snapshot=n,this.kind=Bw.FileKind.TextFile,this.capabilities=Bw.FileCapabilities.full,this.codegenStacks=[],this.fileName=e,this.onSnapshotUpdated()}update(e){this.snapshot=e,this.onSnapshotUpdated()}onSnapshotUpdated(){this.mappings=[{sourceRange:[0,this.snapshot.getLength()],generatedRange:[0,this.snapshot.getLength()],data:Bw.FileRangeCapabilities.full}],this.embeddedFiles=[],this.embeddedFiles.push((0,eG.framework2tsx)(this.fileName,this.fileName,this.snapshot.getText(0,this.snapshot.getLength()),"vue"))}}});var pP=L(Zi=>{"use strict";var nG=Zi&&Zi.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),rG=Zi&&Zi.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),iG=Zi&&Zi.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&nG(e,t,n);return rG(e,t),e};Object.defineProperty(Zi,"__esModule",{value:!0});Zi.getAstroInstall=void 0;var dP=iG(require("node:path")),hP=Sf();function oG(t){let e,n;try{if(e=(0,hP.getPackagePath)("astro",t),!e)throw Error;n=require(dP.resolve(e,"package.json")).version}catch{try{if(e=(0,hP.getPackagePath)("./packages/astro",t),!e)throw Error;n=require(dP.resolve(e,"package.json")).version}catch{console.error(`${t[0]} seems to be an Astro project, but we couldn't find Astro or Astro is not installed`);return}}let[r,i,o]=n.split(".");return o.includes("-")&&(o=o.split("-")[0]),{path:e,version:{full:n,major:Number(r),minor:Number(i),patch:Number(o)}}}Zi.getAstroInstall=oG});var M,Mf,Af,fP,mP,Ege,Pf,gP,bP,Pu,Mu,sG,aG,Iu,lG,ga,vP,cG,Vw,CP,kP,uG,dG,hG,pG,fG,Gw,yP,Hl,Bl,Ou,wP,_P,Kw,Jw,mG,gG,bG,vG,yG,wG,_G,SP,xP,SG,xG,eo,tn,Er,Ds=xe(()=>{"use strict";(function(t){t[t.Ident=0]="Ident",t[t.AtKeyword=1]="AtKeyword",t[t.String=2]="String",t[t.BadString=3]="BadString",t[t.UnquotedString=4]="UnquotedString",t[t.Hash=5]="Hash",t[t.Num=6]="Num",t[t.Percentage=7]="Percentage",t[t.Dimension=8]="Dimension",t[t.UnicodeRange=9]="UnicodeRange",t[t.CDO=10]="CDO",t[t.CDC=11]="CDC",t[t.Colon=12]="Colon",t[t.SemiColon=13]="SemiColon",t[t.CurlyL=14]="CurlyL",t[t.CurlyR=15]="CurlyR",t[t.ParenthesisL=16]="ParenthesisL",t[t.ParenthesisR=17]="ParenthesisR",t[t.BracketL=18]="BracketL",t[t.BracketR=19]="BracketR",t[t.Whitespace=20]="Whitespace",t[t.Includes=21]="Includes",t[t.Dashmatch=22]="Dashmatch",t[t.SubstringOperator=23]="SubstringOperator",t[t.PrefixOperator=24]="PrefixOperator",t[t.SuffixOperator=25]="SuffixOperator",t[t.Delim=26]="Delim",t[t.EMS=27]="EMS",t[t.EXS=28]="EXS",t[t.Length=29]="Length",t[t.Angle=30]="Angle",t[t.Time=31]="Time",t[t.Freq=32]="Freq",t[t.Exclamation=33]="Exclamation",t[t.Resolution=34]="Resolution",t[t.Comma=35]="Comma",t[t.Charset=36]="Charset",t[t.EscapedJavaScript=37]="EscapedJavaScript",t[t.BadEscapedJavaScript=38]="BadEscapedJavaScript",t[t.Comment=39]="Comment",t[t.SingleLineComment=40]="SingleLineComment",t[t.EOF=41]="EOF",t[t.CustomToken=42]="CustomToken"})(M||(M={}));Mf=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}},Af="a".charCodeAt(0),fP="f".charCodeAt(0),mP="z".charCodeAt(0),Ege="u".charCodeAt(0),Pf="A".charCodeAt(0),gP="F".charCodeAt(0),bP="Z".charCodeAt(0),Pu="0".charCodeAt(0),Mu="9".charCodeAt(0),sG="~".charCodeAt(0),aG="^".charCodeAt(0),Iu="=".charCodeAt(0),lG="|".charCodeAt(0),ga="-".charCodeAt(0),vP="_".charCodeAt(0),cG="%".charCodeAt(0),Vw="*".charCodeAt(0),CP="(".charCodeAt(0),kP=")".charCodeAt(0),uG="<".charCodeAt(0),dG=">".charCodeAt(0),hG="@".charCodeAt(0),pG="#".charCodeAt(0),fG="$".charCodeAt(0),Gw="\\".charCodeAt(0),yP="/".charCodeAt(0),Hl=`
533
533
  `.charCodeAt(0),Bl="\r".charCodeAt(0),Ou="\f".charCodeAt(0),wP='"'.charCodeAt(0),_P="'".charCodeAt(0),Kw=" ".charCodeAt(0),Jw=" ".charCodeAt(0),mG=";".charCodeAt(0),gG=":".charCodeAt(0),bG="{".charCodeAt(0),vG="}".charCodeAt(0),yG="[".charCodeAt(0),wG="]".charCodeAt(0),_G=",".charCodeAt(0),SP=".".charCodeAt(0),xP="!".charCodeAt(0),SG="?".charCodeAt(0),xG="+".charCodeAt(0),eo={};eo[mG]=M.SemiColon;eo[gG]=M.Colon;eo[bG]=M.CurlyL;eo[vG]=M.CurlyR;eo[wG]=M.BracketR;eo[yG]=M.BracketL;eo[CP]=M.ParenthesisL;eo[kP]=M.ParenthesisR;eo[_G]=M.Comma;tn={};tn.em=M.EMS;tn.ex=M.EXS;tn.px=M.Length;tn.cm=M.Length;tn.mm=M.Length;tn.in=M.Length;tn.pt=M.Length;tn.pc=M.Length;tn.deg=M.Angle;tn.rad=M.Angle;tn.grad=M.Angle;tn.ms=M.Time;tn.s=M.Time;tn.hz=M.Freq;tn.khz=M.Freq;tn["%"]=M.Percentage;tn.fr=M.Percentage;tn.dpi=M.Resolution;tn.dpcm=M.Resolution;Er=class{constructor(){this.stream=new Mf(""),this.ignoreComment=!0,this.ignoreWhitespace=!0,this.inURL=!1}setSource(e){this.stream=new Mf(e)}finishToken(e,n,r){return{offset:e,len:this.stream.pos()-e,type:n,text:r||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,M.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,M.EOF):this.scanNext(n)}tryScanUnicode(){let e=this.stream.pos();if(!this.stream.eos()&&this._unicodeRange())return this.finishToken(e,M.UnicodeRange);this.stream.goBackTo(e)}scanNext(e){if(this.stream.advanceIfChars([uG,xP,ga,ga]))return this.finishToken(e,M.CDO);if(this.stream.advanceIfChars([ga,ga,dG]))return this.finishToken(e,M.CDC);let n=[];if(this.ident(n))return this.finishToken(e,M.Ident,n.join(""));if(this.stream.advanceIfChar(hG))if(n=["@"],this._name(n)){let i=n.join("");return i==="@charset"?this.finishToken(e,M.Charset,i):this.finishToken(e,M.AtKeyword,i)}else return this.finishToken(e,M.Delim);if(this.stream.advanceIfChar(pG))return n=["#"],this._name(n)?this.finishToken(e,M.Hash,n.join("")):this.finishToken(e,M.Delim);if(this.stream.advanceIfChar(xP))return this.finishToken(e,M.Exclamation);if(this._number()){let i=this.stream.pos();if(n=[this.stream.substring(e,i)],this.stream.advanceIfChar(cG))return this.finishToken(e,M.Percentage);if(this.ident(n)){let o=this.stream.substring(i).toLowerCase(),a=tn[o];return typeof a<"u"?this.finishToken(e,a,n.join("")):this.finishToken(e,M.Dimension,n.join(""))}return this.finishToken(e,M.Num)}n=[];let r=this._string(n);return r!==null?this.finishToken(e,r,n.join("")):(r=eo[this.stream.peekChar()],typeof r<"u"?(this.stream.advance(1),this.finishToken(e,r)):this.stream.peekChar(0)===sG&&this.stream.peekChar(1)===Iu?(this.stream.advance(2),this.finishToken(e,M.Includes)):this.stream.peekChar(0)===lG&&this.stream.peekChar(1)===Iu?(this.stream.advance(2),this.finishToken(e,M.Dashmatch)):this.stream.peekChar(0)===Vw&&this.stream.peekChar(1)===Iu?(this.stream.advance(2),this.finishToken(e,M.SubstringOperator)):this.stream.peekChar(0)===aG&&this.stream.peekChar(1)===Iu?(this.stream.advance(2),this.finishToken(e,M.PrefixOperator)):this.stream.peekChar(0)===fG&&this.stream.peekChar(1)===Iu?(this.stream.advance(2),this.finishToken(e,M.SuffixOperator)):(this.stream.nextChar(),this.finishToken(e,M.Delim)))}trivia(){for(;;){let e=this.stream.pos();if(this._whitespace()){if(!this.ignoreWhitespace)return this.finishToken(e,M.Whitespace)}else if(this.comment()){if(!this.ignoreComment)return this.finishToken(e,M.Comment)}else return null}}comment(){if(this.stream.advanceIfChars([yP,Vw])){let e=!1,n=!1;return this.stream.advanceWhileChar(r=>n&&r===yP?(e=!0,!1):(n=r===Vw,!0)),e&&this.stream.advance(1),!0}return!1}_number(){let e=0,n;return this.stream.peekChar()===SP&&(e=1),n=this.stream.peekChar(e),n>=Pu&&n<=Mu?(this.stream.advance(e+1),this.stream.advanceWhileChar(r=>r>=Pu&&r<=Mu||e===0&&r===SP),!0):!1}_newline(e){let n=this.stream.peekChar();switch(n){case Bl:case Ou:case Hl:return this.stream.advance(1),e.push(String.fromCharCode(n)),n===Bl&&this.stream.advanceIfChar(Hl)&&e.push(`
package/package.json CHANGED
@@ -24,7 +24,7 @@
24
24
  "color": "#17191E",
25
25
  "theme": "dark"
26
26
  },
27
- "version": "2.4.1",
27
+ "version": "2.5.1",
28
28
  "author": "withastro",
29
29
  "license": "MIT",
30
30
  "publisher": "astro-build",
@@ -208,8 +208,8 @@
208
208
  ]
209
209
  },
210
210
  "devDependencies": {
211
- "@astrojs/language-server": "^2.4.1",
212
- "@astrojs/ts-plugin": "^1.2.0",
211
+ "@astrojs/language-server": "^2.5.1",
212
+ "@astrojs/ts-plugin": "^1.3.0",
213
213
  "@types/glob": "^8.1.0",
214
214
  "@types/mocha": "^10.0.1",
215
215
  "@types/node": "^16.18.26",
@@ -228,7 +228,7 @@
228
228
  "vscode-tmgrammar-test": "^0.1.2"
229
229
  },
230
230
  "dependencies": {
231
- "@astrojs/compiler": "1.5.7",
231
+ "@astrojs/compiler": "^2.2.1",
232
232
  "prettier": "^3.0.0",
233
233
  "prettier-plugin-astro": "^0.12.0"
234
234
  },