@t1ckbase/vscode-langservers-extracted 1.0.5 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,3 @@
1
- #!/usr/bin/env node
2
1
  import { createRequire } from 'module'; const require = createRequire(import.meta.url);
3
2
  var rv=Object.create;var ca=Object.defineProperty;var sv=Object.getOwnPropertyDescriptor;var av=Object.getOwnPropertyNames;var ov=Object.getPrototypeOf,lv=Object.prototype.hasOwnProperty;var Et=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,n)=>(typeof require<"u"?require:e)[n]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var Y=(t,e)=>()=>(t&&(e=t(t=0)),e);var ne=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),pm=(t,e)=>{for(var n in e)ca(t,n,{get:e[n],enumerable:!0})},mm=(t,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of av(e))!lv.call(t,r)&&r!==n&&ca(t,r,{get:()=>e[r],enumerable:!(i=sv(e,r))||i.enumerable});return t};var je=(t,e,n)=>(n=t!=null?rv(ov(t)):{},mm(e||!t||!t.__esModule?ca(n,"default",{value:t,enumerable:!0}):n,t)),ic=t=>mm(ca({},"__esModule",{value:!0}),t);var ht=ne((PA,wm)=>{"use strict";var rc=Object.defineProperty,cv=Object.getOwnPropertyDescriptor,dv=Object.getOwnPropertyNames,hv=Object.prototype.hasOwnProperty,uv=(t,e)=>{for(var n in e)rc(t,n,{get:e[n],enumerable:!0})},pv=(t,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of dv(e))!hv.call(t,r)&&r!==n&&rc(t,r,{get:()=>e[r],enumerable:!(i=cv(e,r))||i.enumerable});return t},mv=t=>pv(rc({},"__esModule",{value:!0}),t),gm={};uv(gm,{config:()=>_v,t:()=>bm});wm.exports=mv(gm);var fv=Et("fs"),gv=Et("fs/promises");async function bv(t){if(t.protocol==="file:")return await(0,gv.readFile)(t,"utf8");if(t.protocol==="http:"||t.protocol==="https:"){let e=await fetch(t.toString(),{headers:{"Accept-Encoding":"gzip, deflate",Accept:"application/json"},redirect:"follow"});if(!e.ok){let i=`Unexpected ${e.status} response while trying to read ${t}`;try{i+=`: ${await e.text()}`}catch{}throw new Error(i)}return await e.text()}throw new Error("Unsupported protocol")}function wv(t){return(0,fv.readFileSync)(t,"utf8")}var ns;function _v(t){if("contents"in t){typeof t.contents=="string"?ns=JSON.parse(t.contents):ns=t.contents;return}if("fsPath"in t){let e=wv(t.fsPath),n=JSON.parse(e);ns=fm(n)?n.contents.bundle:n;return}if(t.uri){let e=t.uri;return typeof t.uri=="string"&&(e=new URL(t.uri)),new Promise((n,i)=>{bv(e).then(r=>{try{let s=JSON.parse(r);ns=fm(s)?s.contents.bundle:s,n()}catch(s){i(s)}}).catch(r=>{i(r)})})}}function bm(...t){let e=t[0],n,i,r;if(typeof e=="string")n=e,i=e,t.splice(0,1),r=!t||typeof t[0]!="object"?t:t[0];else if(e instanceof Array){let a=t.slice(1);if(e.length!==a.length+1)throw new Error("expected a string as the first argument to l10n.t");let l=e[0];for(let o=1;o<e.length;o++)l+=`{${o-1}}`+e[o];return bm(l,...a)}else i=e.message,n=i,e.comment&&e.comment.length>0&&(n+=`/${Array.isArray(e.comment)?e.comment.join(""):e.comment}`),r=e.args??{};let s=ns?.[n];return s?typeof s=="string"?da(s,r):s.comment?da(s.message,r):da(i,r):da(i,r)}var vv=/{([^}]+)}/g;function da(t,e){return Object.keys(e).length===0?t:t.replace(vv,(n,i)=>e[i]??n)}function fm(t){return typeof t?.contents?.bundle=="object"&&typeof t?.version=="string"}});var ha=ne(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.boolean=Sv;Vt.string=_m;Vt.number=yv;Vt.error=Fv;Vt.func=vm;Vt.array=Sm;Vt.stringArray=Cv;Vt.typedArray=xv;Vt.thenable=Av;function Sv(t){return t===!0||t===!1}function _m(t){return typeof t=="string"||t instanceof String}function yv(t){return typeof t=="number"||t instanceof Number}function Fv(t){return t instanceof Error}function vm(t){return typeof t=="function"}function Sm(t){return Array.isArray(t)}function Cv(t){return Sm(t)&&t.every(e=>_m(e))}function xv(t,e){return Array.isArray(t)&&t.every(e)}function Av(t){return t&&vm(t.then)}});var $i=ne(_n=>{"use strict";Object.defineProperty(_n,"__esModule",{value:!0});_n.boolean=kv;_n.string=ym;_n.number=Ev;_n.error=Mv;_n.func=Tv;_n.array=Fm;_n.stringArray=Dv;function kv(t){return t===!0||t===!1}function ym(t){return typeof t=="string"||t instanceof String}function Ev(t){return typeof t=="number"||t instanceof Number}function Mv(t){return t instanceof Error}function Tv(t){return typeof t=="function"}function Fm(t){return Array.isArray(t)}function Dv(t){return Fm(t)&&t.every(e=>ym(e))}});var Mc=ne(ae=>{"use strict";var Rv=ae&&ae.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var r=Object.getOwnPropertyDescriptor(e,n);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,r)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),Iv=ae&&ae.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Pv=ae&&ae.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(n){var i=[];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(i[i.length]=r);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var i=t(e),r=0;r<i.length;r++)i[r]!=="default"&&Rv(n,e,i[r]);return Iv(n,e),n}})();Object.defineProperty(ae,"__esModule",{value:!0});ae.Message=ae.NotificationType9=ae.NotificationType8=ae.NotificationType7=ae.NotificationType6=ae.NotificationType5=ae.NotificationType4=ae.NotificationType3=ae.NotificationType2=ae.NotificationType1=ae.NotificationType0=ae.NotificationType=ae.RequestType9=ae.RequestType8=ae.RequestType7=ae.RequestType6=ae.RequestType5=ae.RequestType4=ae.RequestType3=ae.RequestType2=ae.RequestType1=ae.RequestType=ae.RequestType0=ae.AbstractMessageSignature=ae.ParameterStructures=ae.ResponseError=ae.ErrorCodes=void 0;var vi=Pv($i()),sc;(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})(sc||(ae.ErrorCodes=sc={}));var ac=class t extends Error{code;data;constructor(e,n,i){super(n),this.code=vi.number(e)?e:sc.UnknownErrorCode,this.data=i,Object.setPrototypeOf(this,t.prototype)}toJson(){let e={code:this.code,message:this.message};return this.data!==void 0&&(e.data=this.data),e}};ae.ResponseError=ac;var qn=class t{kind;static auto=new t("auto");static byPosition=new t("byPosition");static byName=new t("byName");constructor(e){this.kind=e}static is(e){return e===t.auto||e===t.byName||e===t.byPosition}toString(){return this.kind}};ae.ParameterStructures=qn;var Te=class{method;numberOfParams;constructor(e,n){this.method=e,this.numberOfParams=n}get parameterStructures(){return qn.auto}};ae.AbstractMessageSignature=Te;var oc=class extends Te{_;constructor(e){super(e,0)}};ae.RequestType0=oc;var lc=class extends Te{_parameterStructures;_;constructor(e,n=qn.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};ae.RequestType=lc;var cc=class extends Te{_parameterStructures;_;constructor(e,n=qn.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};ae.RequestType1=cc;var dc=class extends Te{_;constructor(e){super(e,2)}};ae.RequestType2=dc;var hc=class extends Te{_;constructor(e){super(e,3)}};ae.RequestType3=hc;var uc=class extends Te{_;constructor(e){super(e,4)}};ae.RequestType4=uc;var pc=class extends Te{_;constructor(e){super(e,5)}};ae.RequestType5=pc;var mc=class extends Te{_;constructor(e){super(e,6)}};ae.RequestType6=mc;var fc=class extends Te{_;constructor(e){super(e,7)}};ae.RequestType7=fc;var gc=class extends Te{_;constructor(e){super(e,8)}};ae.RequestType8=gc;var bc=class extends Te{_;constructor(e){super(e,9)}};ae.RequestType9=bc;var wc=class extends Te{_parameterStructures;_;constructor(e,n=qn.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};ae.NotificationType=wc;var _c=class extends Te{_;constructor(e){super(e,0)}};ae.NotificationType0=_c;var vc=class extends Te{_parameterStructures;_;constructor(e,n=qn.auto){super(e,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};ae.NotificationType1=vc;var Sc=class extends Te{_;constructor(e){super(e,2)}};ae.NotificationType2=Sc;var yc=class extends Te{_;constructor(e){super(e,3)}};ae.NotificationType3=yc;var Fc=class extends Te{_;constructor(e){super(e,4)}};ae.NotificationType4=Fc;var Cc=class extends Te{_;constructor(e){super(e,5)}};ae.NotificationType5=Cc;var xc=class extends Te{_;constructor(e){super(e,6)}};ae.NotificationType6=xc;var Ac=class extends Te{_;constructor(e){super(e,7)}};ae.NotificationType7=Ac;var kc=class extends Te{_;constructor(e){super(e,8)}};ae.NotificationType8=kc;var Ec=class extends Te{_;constructor(e){super(e,9)}};ae.NotificationType9=Ec;var Cm;(function(t){function e(r){let s=r;return s&&vi.string(s.method)&&(vi.string(s.id)||vi.number(s.id))}t.isRequest=e;function n(r){let s=r;return s&&vi.string(s.method)&&r.id===void 0}t.isNotification=n;function i(r){let s=r;return s&&(s.result!==void 0||!!s.error)&&(vi.string(s.id)||vi.number(s.id)||s.id===null)}t.isResponse=i})(Cm||(ae.Message=Cm={}))});var Dc=ne(Hn=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:!0});Hn.LRUCache=Hn.LinkedMap=Hn.Touch=void 0;var ut;(function(t){t.None=0,t.First=1,t.AsOld=t.First,t.Last=2,t.AsNew=t.Last})(ut||(Hn.Touch=ut={}));var ua=class{[Symbol.toStringTag]="LinkedMap";_map;_head;_tail;_size;_state;constructor(){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}before(e){let n=this._map.get(e);return n?n.previous?.value:void 0}after(e){let n=this._map.get(e);return n?n.next?.value:void 0}has(e){return this._map.has(e)}get(e,n=ut.None){let i=this._map.get(e);if(i)return n!==ut.None&&this.touch(i,n),i.value}set(e,n,i=ut.None){let r=this._map.get(e);if(r)r.value=n,i!==ut.None&&this.touch(r,i);else{switch(r={key:e,value:n,next:void 0,previous:void 0},i){case ut.None:this.addItemLast(r);break;case ut.First:this.addItemFirst(r);break;case ut.Last:this.addItemLast(r);break;default:this.addItemLast(r);break}this._map.set(e,r),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){let n=this._map.get(e);if(n)return this._map.delete(e),this.removeItem(n),this._size--,n.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");let e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,n){let i=this._state,r=this._head;for(;r;){if(n?e.bind(n)(r.value,r.key,this):e(r.value,r.key,this),this._state!==i)throw new Error("LinkedMap got modified during iteration.");r=r.next}}keys(){let e=this._state,n=this._head,i={[Symbol.iterator]:()=>i,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(n){let r={value:n.key,done:!1};return n=n.next,r}else return{value:void 0,done:!0}}};return i}values(){let e=this._state,n=this._head,i={[Symbol.iterator]:()=>i,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(n){let r={value:n.value,done:!1};return n=n.next,r}else return{value:void 0,done:!0}}};return i}entries(){let e=this._state,n=this._head,i={[Symbol.iterator]:()=>i,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(n){let r={value:[n.key,n.value],done:!1};return n=n.next,r}else return{value:void 0,done:!0}}};return i}[Symbol.iterator](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let n=this._head,i=this.size;for(;n&&i>e;)this._map.delete(n.key),n=n.next,i--;this._head=n,this._size=i,n&&(n.previous=void 0),this._state++}addItemFirst(e){if(!this._head&&!this._tail)this._tail=e;else if(this._head)e.next=this._head,this._head.previous=e;else throw new Error("Invalid list");this._head=e,this._state++}addItemLast(e){if(!this._head&&!this._tail)this._head=e;else if(this._tail)e.previous=this._tail,this._tail.next=e;else throw new Error("Invalid list");this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{let n=e.next,i=e.previous;if(!n||!i)throw new Error("Invalid list");n.previous=i,i.next=n}e.next=void 0,e.previous=void 0,this._state++}touch(e,n){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(n!==ut.First&&n!==ut.Last)){if(n===ut.First){if(e===this._head)return;let i=e.next,r=e.previous;e===this._tail?(r.next=void 0,this._tail=r):(i.previous=r,r.next=i),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(n===ut.Last){if(e===this._tail)return;let i=e.next,r=e.previous;e===this._head?(i.previous=void 0,this._head=i):(i.previous=r,r.next=i),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){let e=[];return this.forEach((n,i)=>{e.push([i,n])}),e}fromJSON(e){this.clear();for(let[n,i]of e)this.set(n,i)}};Hn.LinkedMap=ua;var Tc=class extends ua{_limit;_ratio;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=ut.AsNew){return super.get(e,n)}peek(e){return super.get(e,ut.None)}set(e,n){return super.set(e,n,ut.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}};Hn.LRUCache=Tc});var Am=ne(pa=>{"use strict";Object.defineProperty(pa,"__esModule",{value:!0});pa.Disposable=void 0;var xm;(function(t){function e(n){return{dispose:n}}t.create=e})(xm||(pa.Disposable=xm={}))});var Bn=ne(Pc=>{"use strict";Object.defineProperty(Pc,"__esModule",{value:!0});var Rc;function Ic(){if(Rc===void 0)throw new Error("No runtime abstraction layer installed");return Rc}(function(t){function e(n){if(n===void 0)throw new Error("No runtime abstraction layer provided");Rc=n}t.install=e})(Ic||(Ic={}));Pc.default=Ic});var Vi=ne(jn=>{"use strict";var Ov=jn&&jn.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(jn,"__esModule",{value:!0});jn.Emitter=jn.Event=void 0;var zv=Ov(Bn()),km;(function(t){let e={dispose(){}};t.None=function(){return e}})(km||(jn.Event=km={}));var Oc=class{_callbacks;_contexts;add(e,n=null,i){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(n),Array.isArray(i)&&i.push({dispose:()=>this.remove(e,n)})}remove(e,n=null){if(!this._callbacks)return;let i=!1;for(let r=0,s=this._callbacks.length;r<s;r++)if(this._callbacks[r]===e)if(this._contexts[r]===n){this._callbacks.splice(r,1),this._contexts.splice(r,1);return}else i=!0;if(i)throw new Error("When adding a listener with a context, you should remove it with the same context")}invoke(...e){if(!this._callbacks)return[];let n=[],i=this._callbacks.slice(0),r=this._contexts.slice(0);for(let s=0,a=i.length;s<a;s++)try{n.push(i[s].apply(r[s],e))}catch(l){(0,zv.default)().console.error(l)}return n}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},zc=class t{_options;static _noop=function(){};_event;_callbacks;constructor(e){this._options=e}get event(){return this._event||(this._event=(e,n,i)=>{this._callbacks||(this._callbacks=new Oc),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(e,n);let r={dispose:()=>{this._callbacks&&(this._callbacks.remove(e,n),r.dispose=t._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(i)&&i.push(r),r}),this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}};jn.Emitter=zc});var ga=ne(Ft=>{"use strict";var Nv=Ft&&Ft.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var r=Object.getOwnPropertyDescriptor(e,n);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,r)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),Lv=Ft&&Ft.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Wv=Ft&&Ft.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(n){var i=[];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(i[i.length]=r);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var i=t(e),r=0;r<i.length;r++)i[r]!=="default"&&Nv(n,e,i[r]);return Lv(n,e),n}})(),Uv=Ft&&Ft.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ft,"__esModule",{value:!0});Ft.CancellationTokenSource=Ft.CancellationToken=void 0;var qv=Uv(Bn()),Hv=Wv($i()),Nc=Vi(),ma;(function(t){t.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Nc.Event.None}),t.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Nc.Event.None});function e(n){let i=n;return i&&(i===t.None||i===t.Cancelled||Hv.boolean(i.isCancellationRequested)&&!!i.onCancellationRequested)}t.is=e})(ma||(Ft.CancellationToken=ma={}));var Bv=Object.freeze(function(t,e){let n=(0,qv.default)().timer.setTimeout(t.bind(e),0);return{dispose(){n.dispose()}}}),fa=class{_isCancelled=!1;_emitter;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?Bv:(this._emitter||(this._emitter=new Nc.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},Lc=class{_token;get token(){return this._token||(this._token=new fa),this._token}cancel(){this._token?this._token.cancel():this._token=ma.Cancelled}dispose(){this._token?this._token instanceof fa&&this._token.dispose():this._token=ma.None}};Ft.CancellationTokenSource=Lc});var Em=ne(Gi=>{"use strict";Object.defineProperty(Gi,"__esModule",{value:!0});Gi.SharedArrayReceiverStrategy=Gi.SharedArraySenderStrategy=void 0;var jv=ga(),is;(function(t){t.Continue=0,t.Cancelled=1})(is||(is={}));var Wc=class{buffers;constructor(){this.buffers=new Map}enableCancellation(e){if(e.id===null)return;let n=new SharedArrayBuffer(4),i=new Int32Array(n,0,1);i[0]=is.Continue,this.buffers.set(e.id,n),e.$cancellationData=n}async sendCancellation(e,n){let i=this.buffers.get(n);if(i===void 0)return;let r=new Int32Array(i,0,1);Atomics.store(r,0,is.Cancelled)}cleanup(e){this.buffers.delete(e)}dispose(){this.buffers.clear()}};Gi.SharedArraySenderStrategy=Wc;var Uc=class{data;constructor(e){this.data=new Int32Array(e,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===is.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}},qc=class{token;constructor(e){this.token=new Uc(e)}cancel(){}dispose(){}},Hc=class{kind="request";createCancellationTokenSource(e){let n=e.$cancellationData;return n===void 0?new jv.CancellationTokenSource:new qc(n)}};Gi.SharedArrayReceiverStrategy=Hc});var jc=ne(Ki=>{"use strict";var $v=Ki&&Ki.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ki,"__esModule",{value:!0});Ki.Semaphore=void 0;var Vv=$v(Bn()),Bc=class{_capacity;_active;_waiting;constructor(e=1){if(e<=0)throw new Error("Capacity must be greater than 0");this._capacity=e,this._active=0,this._waiting=[]}lock(e){return new Promise((n,i)=>{this._waiting.push({thunk:e,resolve:n,reject:i}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length===0||this._active===this._capacity||(0,Vv.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("Too many thunks active");try{let n=e.thunk();n instanceof Promise?n.then(i=>{this._active--,e.resolve(i),this.runNext()},i=>{this._active--,e.reject(i),this.runNext()}):(this._active--,e.resolve(n),this.runNext())}catch(n){this._active--,e.reject(n),this.runNext()}}};Ki.Semaphore=Bc});var Tm=ne(pt=>{"use strict";var Gv=pt&&pt.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var r=Object.getOwnPropertyDescriptor(e,n);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,r)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),Kv=pt&&pt.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Jv=pt&&pt.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(n){var i=[];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(i[i.length]=r);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var i=t(e),r=0;r<i.length;r++)i[r]!=="default"&&Gv(n,e,i[r]);return Kv(n,e),n}})(),Yv=pt&&pt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(pt,"__esModule",{value:!0});pt.ReadableStreamMessageReader=pt.AbstractMessageReader=pt.MessageReader=void 0;var Vc=Yv(Bn()),Ji=Jv($i()),$c=Vi(),Xv=jc(),Mm;(function(t){function e(n){let i=n;return i&&Ji.func(i.listen)&&Ji.func(i.dispose)&&Ji.func(i.onError)&&Ji.func(i.onClose)&&Ji.func(i.onPartialMessage)}t.is=e})(Mm||(pt.MessageReader=Mm={}));var ba=class{errorEmitter;closeEmitter;partialMessageEmitter;constructor(){this.errorEmitter=new $c.Emitter,this.closeEmitter=new $c.Emitter,this.partialMessageEmitter=new $c.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose(),this.partialMessageEmitter.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: ${Ji.string(e.message)?e.message:"unknown"}`)}};pt.AbstractMessageReader=ba;var Gc;(function(t){function e(n){let i,r,s,a=new Map,l,o=new Map;if(n===void 0||typeof n=="string")i=n??"utf-8";else{if(i=n.charset??"utf-8",n.contentDecoder!==void 0&&(s=n.contentDecoder,a.set(s.name,s)),n.contentDecoders!==void 0)for(let c of n.contentDecoders)a.set(c.name,c);if(n.contentTypeDecoder!==void 0&&(l=n.contentTypeDecoder,o.set(l.name,l)),n.contentTypeDecoders!==void 0)for(let c of n.contentTypeDecoders)o.set(c.name,c)}return l===void 0&&(l=(0,Vc.default)().applicationJson.decoder,o.set(l.name,l)),{charset:i,contentDecoder:s,contentDecoders:a,contentTypeDecoder:l,contentTypeDecoders:o}}t.fromOptions=e})(Gc||(Gc={}));var Kc=class extends ba{readable;options;callback;nextMessageLength;messageToken;buffer;partialMessageTimer;_partialMessageTimeout;readSemaphore;constructor(e,n){super(),this.readable=e,this.options=Gc.fromOptions(n),this.buffer=(0,Vc.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new Xv.Semaphore(1)}set partialMessageTimeout(e){this._partialMessageTimeout=e}get partialMessageTimeout(){return this._partialMessageTimeout}listen(e){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=e;let n=this.readable.onData(i=>{this.onData(i)});return this.readable.onError(i=>this.fireError(i)),this.readable.onClose(()=>this.fireClose()),n}onData(e){try{for(this.buffer.append(e);;){if(this.nextMessageLength===-1){let i=this.buffer.tryReadHeaders(!0);if(!i)return;let r=i.get("content-length");if(!r){this.fireError(new Error(`Header must provide a Content-Length property.
4
3
  ${JSON.stringify(Object.fromEntries(i))}`));return}let s=parseInt(r);if(isNaN(s)){this.fireError(new Error(`Content-Length value must be a number. Got ${r}`));return}this.nextMessageLength=s}let n=this.buffer.tryReadBody(this.nextMessageLength);if(n===void 0){this.setPartialMessageTimer();return}this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock(async()=>{let i=this.options.contentDecoder!==void 0?await this.options.contentDecoder.decode(n):n,r=await this.options.contentTypeDecoder.decode(i,this.options);this.callback(r)}).catch(i=>{this.fireError(i)})}}catch(n){this.fireError(n)}}clearPartialMessageTimer(){this.partialMessageTimer&&(this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),!(this._partialMessageTimeout<=0)&&(this.partialMessageTimer=(0,Vc.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))}};pt.ReadableStreamMessageReader=Kc});var Om=ne(mt=>{"use strict";var Zv=mt&&mt.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var r=Object.getOwnPropertyDescriptor(e,n);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,r)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),Qv=mt&&mt.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),eS=mt&&mt.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(n){var i=[];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(i[i.length]=r);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var i=t(e),r=0;r<i.length;r++)i[r]!=="default"&&Zv(n,e,i[r]);return Qv(n,e),n}})(),tS=mt&&mt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(mt,"__esModule",{value:!0});mt.WriteableStreamMessageWriter=mt.AbstractMessageWriter=mt.MessageWriter=void 0;var Dm=tS(Bn()),rs=eS($i()),nS=jc(),Rm=Vi(),iS="Content-Length: ",Im=`\r
@@ -522,7 +521,7 @@ See [Browser compatibility](#Browser_compatibility) for notes on browser support
522
521
  * a _negative value_ means that the element should be focusable, but should not be reachable via sequential keyboard navigation;
523
522
  * \`0\` means that the element should be focusable and reachable via sequential keyboard navigation, but its relative order is defined by the platform convention;
524
523
  * 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/Reference/Global_attributes/tabindex"}],browsers:["C1","CA18","E12","FF1.5","FFA4","S3.1","SM2"],status:{baseline:"high",baseline_low_date:"2015-07-29",baseline_high_date:"2018-01-29"}},{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/Reference/Global_attributes/title"}],browsers:["C1","CA18","E12","FF1","FFA4","S4","SM3.2"],status:{baseline:"high",baseline_low_date:"2015-07-29",baseline_high_date:"2018-01-29"}},{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/Reference/Global_attributes/translate"}],browsers:["C19","CA25","E79","FF111","FFA111","S6","SM6"],status:{baseline:"high",baseline_low_date:"2023-03-14",baseline_high_date:"2025-09-14"}},{name:"virtualkeyboardpolicy",description:{kind:"markdown",value:"When specified on an element that the element's content is editable (for example, it is an `<input>` or `<textarea>` element, or an element with the `contenteditable` attribute set), it controls the on-screen virtual keyboard behavior on devices such as tablets, mobile phones, or other devices where a hardware keyboard may not be available."},valueSet:"b",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Reference/Global_attributes/virtualkeyboardpolicy"}],browsers:["C94","CA94","E94"],status:{baseline:!1}},{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:"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"}]},{name:"enterkeyhint",values:[{name:"enter"},{name:"done"},{name:"go"},{name:"next"},{name:"previous"},{name:"search"},{name:"send"}]},{name:"popover",values:[{name:"auto"},{name:"hint"},{name:"manual"}]},{name:"fetchpriority",values:[{name:"high"},{name:"low"},{name:"auto"}]}]}});var Gl,Yx,$0=Y(()=>{"use strict";aa();Kp();Lp();Gl=class{constructor(e){this.dataProviders=[],this.setDataProviders(e.useDefaultDataProvider!==!1,e.customDataProviders||[])}setDataProviders(e,n){this.dataProviders=[],e&&this.dataProviders.push(new Yr("html5",Gp)),this.dataProviders.push(...n)}getDataProviders(){return this.dataProviders}isVoidElement(e,n){return!!e&&a0(n,e.toLowerCase(),(i,r)=>i.localeCompare(r))>=0}getVoidElements(e){let n=Array.isArray(e)?e:this.getDataProviders().filter(r=>r.isApplicable(e)),i=[];return n.forEach(r=>{r.provideTags().filter(s=>s.void).forEach(s=>i.push(s.name))}),i.sort()}isPathAttribute(e,n){if(n==="src"||n==="href")return!0;let i=Yx[e];return i?typeof i=="string"?i===n:i.indexOf(n)!==-1:!1}},Yx={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"]}});function V0(t=Xx){let e=new Gl(t),n=new Bl(t,e),i=new ql(t,e),r=new Wl(e),s=new Vl(r),a=new $l(e),l=new jl(e);return{setDataProviders:e.setDataProviders.bind(e),createScanner:Ke,parseHTMLDocument:r.parseDocument.bind(r),doComplete:i.doComplete.bind(i),doComplete2:i.doComplete2.bind(i),setCompletionParticipants:i.setCompletionParticipants.bind(i),doHover:n.doHover.bind(n),format:k0,findDocumentHighlights:I0,findDocumentLinks:l.findDocumentLinks.bind(l),findDocumentSymbols:O0,findDocumentSymbols2:$p,getFoldingRanges:a.getFoldingRanges.bind(a),getSelectionRanges:s.getSelectionRanges.bind(s),doQuoteComplete:i.doQuoteComplete.bind(i),doTagComplete:i.doTagComplete.bind(i),doRename:L0,findMatchingTagPosition:U0,findOnTypeRenameRanges:Vp,findLinkedEditingRanges:Vp}}function Kl(t,e){return new Yr(t,e)}var Xx,Jp=Y(()=>{"use strict";zn();o0();m0();g0();E0();M0();P0();N0();W0();q0();H0();B0();j0();aa();$0();Kp();At();Xx={}});function Ln(t,e,n){let i={},r=0,s;return e>0&&(s=setInterval(()=>{let a=Date.now()-e*1e3,l=Object.keys(i);for(let o of l)i[o].cTime<a&&(delete i[o],r--)},e*1e3)),{get(a){let l=a.version,o=a.languageId,c=i[a.uri];if(c&&c.version===l&&c.languageId===o)return c.cTime=Date.now(),c.languageModel;let d=n(a);if(i[a.uri]={languageModel:d,version:l,languageId:o,cTime:Date.now()},c||r++,r===t){let h=Number.MAX_VALUE,u=null;for(let m in i){let E=i[m];E.cTime<h&&(u=m,h=E.cTime)}u&&(delete i[u],r--)}return d},onDocumentRemoved(a){let l=a.uri;i[l]&&(delete i[l],r--)},dispose(){typeof s<"u"&&(clearInterval(s),s=void 0,i={},r=0)}}}var la=Y(()=>{"use strict"});function K0(t,e){let n=[],i=t.createScanner(e.getText()),r="",s=null,a,l=[],o=i.scan();for(;o!==q.EOS;){switch(o){case q.StartTag:r=i.getTokenText(),s=null,a="javascript";break;case q.Styles:n.push({languageId:"css",start:i.getTokenOffset(),end:i.getTokenEnd()});break;case q.Script:n.push({languageId:a,start:i.getTokenOffset(),end:i.getTokenEnd()});break;case q.AttributeName:s=i.getTokenText();break;case q.AttributeValue:if(s==="src"&&r.toLowerCase()==="script"){let c=i.getTokenText();(c[0]==="'"||c[0]==='"')&&(c=c.substr(1,c.length-1)),l.push(c)}else if(s==="type"&&r.toLowerCase()==="script"){let c=i.getTokenText();/["'](module|(text|application)\/(java|ecma)script|text\/babel)["']/.test(c)||c==="module"?a="javascript":/["']text\/typescript["']/.test(c)?a="typescript":a=void 0}else{let c=aA(s);if(c){let d=i.getTokenOffset(),h=i.getTokenEnd(),u=e.getText()[d];(u==="'"||u==='"')&&(d++,h--),n.push({languageId:c,start:d,end:h,attributeValue:!0})}}s=null;break}o=i.scan()}return{getLanguageRanges:c=>Zx(e,n,c),getEmbeddedDocument:(c,d)=>tA(e,n,c,d),getLanguageAtPosition:c=>eA(e,n,c),getLanguagesInDocument:()=>Qx(e,n),getImportedScripts:()=>l}}function Zx(t,e,n){let i=[],r=n?n.start:W.Position.create(0,0),s=n?t.offsetAt(n.start):0,a=n?t.offsetAt(n.end):t.getText().length;for(let l of e)if(l.end>s&&l.start<a){let o=Math.max(l.start,s),c=t.positionAt(o);s<l.start&&i.push({start:r,end:c,languageId:"html"});let d=Math.min(l.end,a),h=t.positionAt(d);d>l.start&&i.push({start:c,end:h,languageId:l.languageId,attributeValue:l.attributeValue}),s=d,r=h}if(s<a){let l=n?n.end:t.positionAt(a);i.push({start:r,end:l,languageId:"html"})}return i}function Qx(t,e){let n=[];for(let i of e)if(i.languageId&&n.indexOf(i.languageId)===-1&&(n.push(i.languageId),n.length===3))return n;return n.push("html"),n}function eA(t,e,n){let i=t.offsetAt(n);for(let r of e)if(r.start<=i){if(i<=r.end)return r.languageId}else break;return"html"}function tA(t,e,n,i){let r=0,s=t.getText(),a="",l="";for(let o of e)o.languageId===n&&(!i||!o.attributeValue)&&(a=G0(a,r,o.start,s,l,nA(o)),a+=rA(o,s.substring(o.start,o.end)),r=o.end,l=iA(o));return a=G0(a,r,s.length,s,l,""),ot.create(t.uri,n,t.version,a)}function nA(t){return t.attributeValue&&t.languageId==="css"?Yp+"{":""}function iA(t){if(t.attributeValue)switch(t.languageId){case"css":return"}";case"javascript":return";"}return""}function rA(t,e){if(!t.attributeValue&&t.languageId==="javascript")return e.replace("<!--","/* ").replace("-->"," */");if(t.languageId==="css"){let n=/(&quot;|&#34;)/g;return e.replace(n,(i,r,s)=>{let a=" ".repeat(i.length-1),l=e[s+i.length];return!l||l.includes(" ")?`${a}"`:`"${a}`})}return e}function G0(t,e,n,i,r,s){t+=r;let a=-r.length;for(let l=e;l<n;l++){let o=i[l];o===`
525
- `||o==="\r"?(a=0,t+=o):a++}return t=sA(t," ",a-s.length),t+=s,t}function sA(t,e,n){for(;n>0;)n&1&&(t+=e),n>>=1,e+=e;return t}function aA(t){let e=t.match(/^(style)$|^(on\w+)$/i);return e?e[1]?"css":"javascript":null}var Yp,Xp=Y(()=>{"use strict";Wn();Yp="__"});function J0(t,e,n){let i=Ln(10,60,s=>e.get(s).getEmbeddedDocument("css")),r=Ln(10,60,s=>t.parseStylesheet(s));return{getId(){return"css"},async doValidation(s,a=n.settings){let l=i.get(s);return t.doValidation(l,r.get(l),a&&a.css)},async doComplete(s,a,l,o=n.settings){let c=i.get(s),d=r.get(c);return t.doComplete2(c,a,d,l,o?.css?.completion)||W.CompletionList.create()},async doHover(s,a,l=n.settings){let o=i.get(s);return t.doHover(o,a,r.get(o),l?.css?.hover)},async findDocumentHighlight(s,a){let l=i.get(s);return t.findDocumentHighlights(l,a,r.get(l))},async findDocumentSymbols(s){let a=i.get(s);return t.findDocumentSymbols(a,r.get(a)).filter(l=>l.name!==Yp)},async findDefinition(s,a){let l=i.get(s);return t.findDefinition(l,a,r.get(l))},async findReferences(s,a){let l=i.get(s);return t.findReferences(l,a,r.get(l))},async findDocumentColors(s){let a=i.get(s);return t.findDocumentColors(a,r.get(a))},async getColorPresentations(s,a,l){let o=i.get(s);return t.getColorPresentations(o,r.get(o),a,l)},async getFoldingRanges(s){let a=i.get(s);return t.getFoldingRanges(a,{})},async getSelectionRange(s,a){let l=i.get(s);return t.getSelectionRanges(l,[a],r.get(l))[0]},onDocumentRemoved(s){i.onDocumentRemoved(s),r.onDocumentRemoved(s)},dispose(){i.dispose(),r.dispose()}}}var Y0=Y(()=>{"use strict";la();Wn();Xp()});function X0(t,e){let n=Ln(10,60,i=>t.parseHTMLDocument(i));return{getId(){return"html"},async getSelectionRange(i,r){return t.getSelectionRanges(i,[r])[0]},doComplete(i,r,s,a=e.settings){let l=a?.html,o=Jl(l?.suggest,{});o.hideAutoCompleteProposals=l?.autoClosingTags===!0,o.attributeDefaultValue=l?.completion?.attributeDefaultValue??"doublequotes";let c=n.get(i);return t.doComplete2(i,r,c,s,o)},async doHover(i,r,s){return t.doHover(i,r,n.get(i),s?.html?.hover)},async findDocumentHighlight(i,r){return t.findDocumentHighlights(i,r,n.get(i))},async findDocumentLinks(i,r){return t.findDocumentLinks(i,r)},async findDocumentSymbols(i){return t.findDocumentSymbols(i,n.get(i))},async format(i,r,s,a=e.settings){let l=Jl(a?.html?.format,{});return l.contentUnformatted?l.contentUnformatted=l.contentUnformatted+",script":l.contentUnformatted="script",Jl(s,l),t.format(i,r,l)},async getFoldingRanges(i){return t.getFoldingRanges(i)},async doAutoInsert(i,r,s,a=e.settings){let l=i.offsetAt(r),o=i.getText();if(s==="autoQuote"){if(l>0&&o.charAt(l-1)==="="){let c=a?.html,d=Jl(c?.suggest,{});return d.attributeDefaultValue=c?.completion?.attributeDefaultValue??"doublequotes",t.doQuoteComplete(i,r,n.get(i),d)}}else if(s==="autoClose"&&l>0&&o.charAt(l-1).match(/[>\/]/g))return t.doTagComplete(i,r,n.get(i));return null},async doRename(i,r,s){let a=n.get(i);return t.doRename(i,r,s,a)},async onDocumentRemoved(i){n.onDocumentRemoved(i)},async findMatchingTagPosition(i,r){let s=n.get(i);return t.findMatchingTagPosition(i,r,s)},async doLinkedEditing(i,r){let s=n.get(i);return t.findLinkedEditingRanges(i,r,s)},dispose(){n.dispose()}}}function Jl(t,e){if(t)for(let n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}var Z0=Y(()=>{"use strict";la()});function Q0(t,e,n){let i=e;for(;i>0&&!r2(t.charCodeAt(i-1));)i--;let r=e-i,s=t.substr(i),a=n.ignoreCase?"gi":"g";n=new RegExp(n.source,a);let l=n.exec(s);for(;l&&l.index+l[0].length<r;)l=n.exec(s);return l&&l.index<=r?{start:l.index+i,length:l[0].length}:{start:e,length:0}}function e2(t,e){if(t.length<e.length)return!1;for(let n=0;n<e.length;n++)if(t[n]!==e[n])return!1;return!0}function t2(t,e){let n=t.length-e.length;return n>0?t.indexOf(e,n)===n:n===0?t===e:!1}function Zp(t,e){let n="";for(;e>0;)(e&1)===1&&(n+=t),t+=t,e=e>>>1;return n}function n2(t){return/^\s*$/.test(t)}function i2(t,e){return r2(t.charCodeAt(e))}function r2(t){return t===oA||t===lA}var oA,lA,Yl=Y(()=>{"use strict";oA=13,lA=10});function s2(){return kt.length!==12&&console.warn("TokenType has added new entries."),gi.length!==6&&console.warn("TokenModifier has added new entries."),{types:kt,modifiers:gi}}function*a2(t,e,n){let{spans:i}=t.getEncodedSemanticClassifications(n,{start:0,length:e.getText().length},"2020");for(let r=0;r<i.length;){let s=i[r++],a=i[r++],l=i[r++],o=cA(l);if(o===void 0)continue;let c=dA(l);yield{start:e.positionAt(s),length:a,typeIdx:o,modifierSet:c}}}function cA(t){if(t>255)return(t>>8)-1}function dA(t){return t&255}var kt,gi,o2=Y(()=>{"use strict";kt=[];kt[0]="class";kt[1]="enum";kt[2]="interface";kt[3]="namespace";kt[4]="typeParameter";kt[5]="type";kt[6]="parameter";kt[7]="variable";kt[8]="enumMember";kt[9]="property";kt[10]="function";kt[11]="method";gi=[];gi[2]="async";gi[0]="declaration";gi[3]="readonly";gi[1]="static";gi[5]="local";gi[4]="defaultLibrary"});var d2={};pm(d2,{loadLibrary:()=>fA});import{join as tm,basename as hA,dirname as Qp}from"path";import{readFileSync as uA}from"fs";function fA(t){let e=l2[t];if(typeof e!="string"){let n;t==="jquery"?n=mA:n=tm(pA,t);try{e=uA(n).toString()}catch{console.log(`Unable to load library ${t} at ${n}`),e=""}l2[t]=e}return e}var l2,em,c2,pA,mA,h2=Y(()=>{"use strict";l2={},em=import.meta.dirname,c2=hA(em)==="dist"?Qp(em):Qp(Qp(em)),pA=tm(c2,"../../node_modules/typescript/lib"),mA=tm(c2,"lib/jquery.d.ts")});import*as ze from"typescript";function bA(t){let e={allowNonTsExtensions:!0,allowJs:!0,lib:["lib.es2020.full.d.ts"],target:ze.ScriptTarget.Latest,moduleResolution:ze.ModuleResolutionKind.Classic,experimentalDecorators:!1},n=ot.create("init","javascript",1,""),i=Promise.resolve().then(()=>(h2(),d2)).then(r=>({service:ze.createLanguageService({getCompilationSettings:()=>e,getScriptFileNames:()=>[n.uri,"jquery"],getScriptKind:a=>a===n.uri?t:a.substr(a.length-2)==="ts"?ze.ScriptKind.TS:ze.ScriptKind.JS,getScriptVersion:a=>a===n.uri?String(n.version):"1",getScriptSnapshot:a=>{let l="";return a===n.uri?l=n.getText():l=r.loadLibrary(a),{getText:(o,c)=>l.substring(o,c),getLength:()=>l.length,getChangeRange:()=>{}}},getCurrentDirectory:()=>"",getDefaultLibFileName:a=>"es2020.full",readFile:(a,l)=>a===n.uri?n.getText():r.loadLibrary(a),fileExists:a=>a===n.uri?!0:!!r.loadLibrary(a),directoryExists:a=>!a.startsWith("node_modules")}),loadLibrary:r.loadLibrary}));return{async getLanguageService(r){return n=r,(await i).service},getCompilationSettings(){return e},async loadLibrary(r){return(await i).loadLibrary(r)},dispose(){i.then(r=>r.service.dispose())}}}function nm(t,e,n){let i=Ln(10,60,o=>t.get(o).getEmbeddedDocument(e)),r=bA(e==="javascript"?ze.ScriptKind.JS:ze.ScriptKind.TS),s={},a=`${Zl}://${e}/libs/`;function l(o){let c=r.getCompilationSettings();c.experimentalDecorators=o?.["js/ts"]?.implicitProjectConfig?.experimentalDecorators,c.strictNullChecks=o?.["js/ts"]?.implicitProjectConfig.strictNullChecks}return{getId(){return e},async doValidation(o,c=n.settings){l(c);let d=i.get(o),h=await r.getLanguageService(d),u=h.getSyntacticDiagnostics(d.uri),m=h.getSemanticDiagnostics(d.uri);return u.concat(m).filter(E=>!wA.includes(E.code)).map(E=>({range:jt(d,E),severity:W.DiagnosticSeverity.Error,source:e,message:ze.flattenDiagnosticMessageText(E.messageText,`
524
+ `||o==="\r"?(a=0,t+=o):a++}return t=sA(t," ",a-s.length),t+=s,t}function sA(t,e,n){for(;n>0;)n&1&&(t+=e),n>>=1,e+=e;return t}function aA(t){let e=t.match(/^(style)$|^(on\w+)$/i);return e?e[1]?"css":"javascript":null}var Yp,Xp=Y(()=>{"use strict";Wn();Yp="__"});function J0(t,e,n){let i=Ln(10,60,s=>e.get(s).getEmbeddedDocument("css")),r=Ln(10,60,s=>t.parseStylesheet(s));return{getId(){return"css"},async doValidation(s,a=n.settings){let l=i.get(s);return t.doValidation(l,r.get(l),a&&a.css)},async doComplete(s,a,l,o=n.settings){let c=i.get(s),d=r.get(c);return t.doComplete2(c,a,d,l,o?.css?.completion)||W.CompletionList.create()},async doHover(s,a,l=n.settings){let o=i.get(s);return t.doHover(o,a,r.get(o),l?.css?.hover)},async findDocumentHighlight(s,a){let l=i.get(s);return t.findDocumentHighlights(l,a,r.get(l))},async findDocumentSymbols(s){let a=i.get(s);return t.findDocumentSymbols(a,r.get(a)).filter(l=>l.name!==Yp)},async findDefinition(s,a){let l=i.get(s);return t.findDefinition(l,a,r.get(l))},async findReferences(s,a){let l=i.get(s);return t.findReferences(l,a,r.get(l))},async findDocumentColors(s){let a=i.get(s);return t.findDocumentColors(a,r.get(a))},async getColorPresentations(s,a,l){let o=i.get(s);return t.getColorPresentations(o,r.get(o),a,l)},async getFoldingRanges(s){let a=i.get(s);return t.getFoldingRanges(a,{})},async getSelectionRange(s,a){let l=i.get(s);return t.getSelectionRanges(l,[a],r.get(l))[0]},onDocumentRemoved(s){i.onDocumentRemoved(s),r.onDocumentRemoved(s)},dispose(){i.dispose(),r.dispose()}}}var Y0=Y(()=>{"use strict";la();Wn();Xp()});function X0(t,e){let n=Ln(10,60,i=>t.parseHTMLDocument(i));return{getId(){return"html"},async getSelectionRange(i,r){return t.getSelectionRanges(i,[r])[0]},doComplete(i,r,s,a=e.settings){let l=a?.html,o=Jl(l?.suggest,{});o.hideAutoCompleteProposals=l?.autoClosingTags===!0,o.attributeDefaultValue=l?.completion?.attributeDefaultValue??"doublequotes";let c=n.get(i);return t.doComplete2(i,r,c,s,o)},async doHover(i,r,s){return t.doHover(i,r,n.get(i),s?.html?.hover)},async findDocumentHighlight(i,r){return t.findDocumentHighlights(i,r,n.get(i))},async findDocumentLinks(i,r){return t.findDocumentLinks(i,r)},async findDocumentSymbols(i){return t.findDocumentSymbols(i,n.get(i))},async format(i,r,s,a=e.settings){let l=Jl(a?.html?.format,{});return l.contentUnformatted?l.contentUnformatted=l.contentUnformatted+",script":l.contentUnformatted="script",Jl(s,l),t.format(i,r,l)},async getFoldingRanges(i){return t.getFoldingRanges(i)},async doAutoInsert(i,r,s,a=e.settings){let l=i.offsetAt(r),o=i.getText();if(s==="autoQuote"){if(l>0&&o.charAt(l-1)==="="){let c=a?.html,d=Jl(c?.suggest,{});return d.attributeDefaultValue=c?.completion?.attributeDefaultValue??"doublequotes",t.doQuoteComplete(i,r,n.get(i),d)}}else if(s==="autoClose"&&l>0&&o.charAt(l-1).match(/[>\/]/g))return t.doTagComplete(i,r,n.get(i));return null},async doRename(i,r,s){let a=n.get(i);return t.doRename(i,r,s,a)},async onDocumentRemoved(i){n.onDocumentRemoved(i)},async findMatchingTagPosition(i,r){let s=n.get(i);return t.findMatchingTagPosition(i,r,s)},async doLinkedEditing(i,r){let s=n.get(i);return t.findLinkedEditingRanges(i,r,s)},dispose(){n.dispose()}}}function Jl(t,e){if(t)for(let n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}var Z0=Y(()=>{"use strict";la()});function Q0(t,e,n){let i=e;for(;i>0&&!r2(t.charCodeAt(i-1));)i--;let r=e-i,s=t.substr(i),a=n.ignoreCase?"gi":"g";n=new RegExp(n.source,a);let l=n.exec(s);for(;l&&l.index+l[0].length<r;)l=n.exec(s);return l&&l.index<=r?{start:l.index+i,length:l[0].length}:{start:e,length:0}}function e2(t,e){if(t.length<e.length)return!1;for(let n=0;n<e.length;n++)if(t[n]!==e[n])return!1;return!0}function t2(t,e){let n=t.length-e.length;return n>0?t.indexOf(e,n)===n:n===0?t===e:!1}function Zp(t,e){let n="";for(;e>0;)(e&1)===1&&(n+=t),t+=t,e=e>>>1;return n}function n2(t){return/^\s*$/.test(t)}function i2(t,e){return r2(t.charCodeAt(e))}function r2(t){return t===oA||t===lA}var oA,lA,Yl=Y(()=>{"use strict";oA=13,lA=10});function s2(){return kt.length!==12&&console.warn("TokenType has added new entries."),gi.length!==6&&console.warn("TokenModifier has added new entries."),{types:kt,modifiers:gi}}function*a2(t,e,n){let{spans:i}=t.getEncodedSemanticClassifications(n,{start:0,length:e.getText().length},"2020");for(let r=0;r<i.length;){let s=i[r++],a=i[r++],l=i[r++],o=cA(l);if(o===void 0)continue;let c=dA(l);yield{start:e.positionAt(s),length:a,typeIdx:o,modifierSet:c}}}function cA(t){if(t>255)return(t>>8)-1}function dA(t){return t&255}var kt,gi,o2=Y(()=>{"use strict";kt=[];kt[0]="class";kt[1]="enum";kt[2]="interface";kt[3]="namespace";kt[4]="typeParameter";kt[5]="type";kt[6]="parameter";kt[7]="variable";kt[8]="enumMember";kt[9]="property";kt[10]="function";kt[11]="method";gi=[];gi[2]="async";gi[0]="declaration";gi[3]="readonly";gi[1]="static";gi[5]="local";gi[4]="defaultLibrary"});var d2={};pm(d2,{loadLibrary:()=>fA});import{join as tm,basename as hA,dirname as Qp}from"path";import { fileURLToPath as __injected_fileURLToPath } from "node:url";import{readFileSync as uA}from"fs";function fA(t){let e=l2[t];if(typeof e!="string"){let n;t==="jquery"?n=mA:n=tm(pA,t);try{e=uA(n).toString()}catch{console.log(`Unable to load library ${t} at ${n}`),e=""}l2[t]=e}return e}var l2,em,c2,pA,mA,h2=Y(()=>{"use strict";l2={},em=import.meta.dirname,c2=hA(em)==="dist"?Qp(em):Qp(Qp(em)),pA=Qp(__injected_fileURLToPath(import.meta.resolve("typescript/lib/lib.d.ts"))),mA=tm(c2,"lib/jquery.d.ts")});import*as ze from"typescript";function bA(t){let e={allowNonTsExtensions:!0,allowJs:!0,lib:["lib.esnext.full.d.ts"],target:ze.ScriptTarget.Latest,moduleResolution:ze.ModuleResolutionKind.Classic,experimentalDecorators:!1},n=ot.create("init","javascript",1,""),i=Promise.resolve().then(()=>(h2(),d2)).then(r=>({service:ze.createLanguageService({getCompilationSettings:()=>e,getScriptFileNames:()=>[n.uri,"jquery"],getScriptKind:a=>a===n.uri?t:a.substr(a.length-2)==="ts"?ze.ScriptKind.TS:ze.ScriptKind.JS,getScriptVersion:a=>a===n.uri?String(n.version):"1",getScriptSnapshot:a=>{let l="";return a===n.uri?l=n.getText():l=r.loadLibrary(a),{getText:(o,c)=>l.substring(o,c),getLength:()=>l.length,getChangeRange:()=>{}}},getCurrentDirectory:()=>"",getDefaultLibFileName:a=>"es2020.full",readFile:(a,l)=>a===n.uri?n.getText():r.loadLibrary(a),fileExists:a=>a===n.uri?!0:!!r.loadLibrary(a),directoryExists:a=>!a.startsWith("node_modules")}),loadLibrary:r.loadLibrary}));return{async getLanguageService(r){return n=r,(await i).service},getCompilationSettings(){return e},async loadLibrary(r){return(await i).loadLibrary(r)},dispose(){i.then(r=>r.service.dispose())}}}function nm(t,e,n){let i=Ln(10,60,o=>t.get(o).getEmbeddedDocument(e)),r=bA(e==="javascript"?ze.ScriptKind.JS:ze.ScriptKind.TS),s={},a=`${Zl}://${e}/libs/`;function l(o){let c=r.getCompilationSettings();c.experimentalDecorators=o?.["js/ts"]?.implicitProjectConfig?.experimentalDecorators,c.strictNullChecks=o?.["js/ts"]?.implicitProjectConfig.strictNullChecks}return{getId(){return e},async doValidation(o,c=n.settings){l(c);let d=i.get(o),h=await r.getLanguageService(d),u=h.getSyntacticDiagnostics(d.uri),m=h.getSemanticDiagnostics(d.uri);return u.concat(m).filter(E=>!wA.includes(E.code)).map(E=>({range:jt(d,E),severity:W.DiagnosticSeverity.Error,source:e,message:ze.flattenDiagnosticMessageText(E.messageText,`
526
525
  `)}))},async doComplete(o,c,d){let h=i.get(o),u=await r.getLanguageService(h),m=h.offsetAt(c),E=u.getCompletionsAtPosition(h.uri,m,{includeExternalModuleExports:!1,includeInsertTextCompletions:!1});if(!E)return{isIncomplete:!1,items:[]};let y=jt(h,Q0(h.getText(),m,gA));return{isIncomplete:!1,items:E.entries.map(O=>{let T={languageId:e,uri:o.uri,offset:m};return{uri:o.uri,position:c,label:O.name,sortText:O.sortText,kind:_A(O.kind),textEdit:W.TextEdit.replace(y,O.name),data:T}})}},async doResolve(o,c){if(Xl(c.data)){let d=i.get(o),u=(await r.getLanguageService(d)).getCompletionEntryDetails(d.uri,c.data.offset,c.label,void 0,void 0,void 0,void 0);u&&(c.detail=ze.displayPartsToString(u.displayParts),c.documentation=ze.displayPartsToString(u.documentation),delete c.data)}return c},async doHover(o,c){let d=i.get(o),u=(await r.getLanguageService(d)).getQuickInfoAtPosition(d.uri,d.offsetAt(c));if(u){let m=ze.displayPartsToString(u.displayParts);return{range:jt(d,u.textSpan),contents:["```typescript",m,"```"].join(`
527
526
  `)}}return null},async doSignatureHelp(o,c){let d=i.get(o),u=(await r.getLanguageService(d)).getSignatureHelpItems(d.uri,d.offsetAt(c),void 0);if(u){let m={activeSignature:u.selectedItemIndex,activeParameter:u.argumentIndex,signatures:[]};return u.items.forEach(E=>{let y={label:"",documentation:void 0,parameters:[]};y.label+=ze.displayPartsToString(E.prefixDisplayParts),E.parameters.forEach((O,T,f)=>{let v=ze.displayPartsToString(O.displayParts),P={label:v,documentation:ze.displayPartsToString(O.documentation)};y.label+=v,y.parameters.push(P),T<f.length-1&&(y.label+=ze.displayPartsToString(E.separatorDisplayParts))}),y.label+=ze.displayPartsToString(E.suffixDisplayParts),m.signatures.push(y)}),m}return null},async doRename(o,c,d){let h=i.get(o),u=await r.getLanguageService(h),m=h.offsetAt(c),{canRename:E}=u.getRenameInfo(h.uri,m);if(!E)return null;let y=u.findRenameLocations(h.uri,m,!1,!1),O=[];return y?.map(T=>{O.push({range:jt(h,T.textSpan),newText:d})}),{changes:{[o.uri]:O}}},async findDocumentHighlight(o,c){let d=i.get(o),u=(await r.getLanguageService(d)).getDocumentHighlights(d.uri,d.offsetAt(c),[d.uri]),m=[];for(let E of u||[])for(let y of E.highlightSpans)m.push({range:jt(d,y.textSpan),kind:y.kind==="writtenReference"?W.DocumentHighlightKind.Write:W.DocumentHighlightKind.Text});return m},async findDocumentSymbols(o){let c=i.get(o),h=(await r.getLanguageService(c)).getNavigationBarItems(c.uri);if(h){let u=[],m=Object.create(null),E=(y,O)=>{let T=y.text+y.kind+y.spans[0].start;if(y.kind!=="script"&&!m[T]){let f={name:y.text,kind:vA(y.kind),location:{uri:o.uri,range:jt(c,y.spans[0])},containerName:O};m[T]=!0,u.push(f),O=y.text}if(y.childItems&&y.childItems.length>0)for(let f of y.childItems)E(f,O)};return h.forEach(y=>E(y)),u}return[]},async findDefinition(o,c){let d=i.get(o),u=(await r.getLanguageService(d)).getDefinitionAtPosition(d.uri,d.offsetAt(c));return u?(await Promise.all(u.map(async m=>{if(m.fileName===d.uri)return{uri:o.uri,range:jt(d,m.textSpan)};{let E=a+m.fileName,y=await r.loadLibrary(m.fileName);if(!y)return;let O=ot.create(E,e,1,y);return{uri:E,range:jt(O,m.textSpan)}}}))).filter(m=>!!m):null},async findReferences(o,c){let d=i.get(o),u=(await r.getLanguageService(d)).getReferencesAtPosition(d.uri,d.offsetAt(c));return u?u.filter(m=>m.fileName===d.uri).map(m=>({uri:o.uri,range:jt(d,m.textSpan)})):[]},async getSelectionRange(o,c){let d=i.get(o),h=await r.getLanguageService(d);function u(E){let y=E.parent?u(E.parent):void 0;return W.SelectionRange.create(jt(d,E.textSpan),y)}let m=h.getSmartSelectionRange(d.uri,d.offsetAt(c));return u(m)},async format(o,c,d,h=s){let u=t.get(o).getEmbeddedDocument("javascript",!0),m=await r.getLanguageService(u),E=h&&h.javascript&&h.javascript.format,y=yA(o,c,d),O=SA(d,E,y+1),T=u.offsetAt(c.start),f=u.offsetAt(c.end),v=null;c.end.line>c.start.line&&(c.end.character===0||n2(u.getText().substr(f-c.end.character,c.end.character)))&&(f-=c.end.character,v=W.Range.create(W.Position.create(c.end.line,0),c.end));let P=m.getFormattingEditsForRange(u.uri,T,f,O);if(P){let V=[];for(let A of P)A.span.start>=T&&A.span.start+A.span.length<=f&&V.push({range:jt(u,A.span),newText:A.newText});return v&&V.push({range:v,newText:FA(y,d)}),V}return[]},async getFoldingRanges(o){let c=i.get(o),h=(await r.getLanguageService(c)).getOutliningSpans(c.uri),u=[];for(let m of h){let E=jt(c,m.textSpan),y=E.start.line,O=E.end.line;if(y<O){let T={startLine:y,endLine:O},f=o.getText(E).match(/^\s*\/(?:(\/\s*#(?:end)?region\b)|(\*|\/))/);f&&(T.kind=f[1]?W.FoldingRangeKind.Region:W.FoldingRangeKind.Comment),u.push(T)}}return u},onDocumentRemoved(o){i.onDocumentRemoved(o)},async getSemanticTokens(o){let c=i.get(o),d=await r.getLanguageService(c);return[...a2(d,c,c.uri)]},getSemanticTokenLegend(){return s2()},async getTextDocumentContent(o){if(o.startsWith(a))return r.loadLibrary(o.substring(a.length))},dispose(){r.dispose(),i.dispose()}}}function jt(t,e){if(typeof e.start>"u"){let r=t.positionAt(0);return W.Range.create(r,r)}let n=t.positionAt(e.start),i=t.positionAt(e.start+(e.length||0));return W.Range.create(n,i)}function _A(t){switch(t){case"primitive type":case"keyword":return W.CompletionItemKind.Keyword;case"const":case"let":case"var":case"local var":case"alias":case"parameter":return W.CompletionItemKind.Variable;case"property":case"getter":case"setter":return W.CompletionItemKind.Field;case"function":case"local function":return W.CompletionItemKind.Function;case"method":case"construct":case"call":case"index":return W.CompletionItemKind.Method;case"enum":return W.CompletionItemKind.Enum;case"enum member":return W.CompletionItemKind.EnumMember;case"module":case"external module name":return W.CompletionItemKind.Module;case"class":case"type":return W.CompletionItemKind.Class;case"interface":return W.CompletionItemKind.Interface;case"warning":return W.CompletionItemKind.Text;case"script":return W.CompletionItemKind.File;case"directory":return W.CompletionItemKind.Folder;case"string":return W.CompletionItemKind.Constant;default:return W.CompletionItemKind.Property}}function vA(t){switch(t){case"module":return W.SymbolKind.Module;case"class":return W.SymbolKind.Class;case"enum":return W.SymbolKind.Enum;case"enum member":return W.SymbolKind.EnumMember;case"interface":return W.SymbolKind.Interface;case"index":return W.SymbolKind.Method;case"call":return W.SymbolKind.Method;case"method":return W.SymbolKind.Method;case"property":return W.SymbolKind.Property;case"getter":return W.SymbolKind.Property;case"setter":return W.SymbolKind.Property;case"var":return W.SymbolKind.Variable;case"let":return W.SymbolKind.Variable;case"const":return W.SymbolKind.Variable;case"local var":return W.SymbolKind.Variable;case"alias":return W.SymbolKind.Variable;case"function":return W.SymbolKind.Function;case"local function":return W.SymbolKind.Function;case"construct":return W.SymbolKind.Constructor;case"constructor":return W.SymbolKind.Constructor;case"type parameter":return W.SymbolKind.TypeParameter;case"string":return W.SymbolKind.String;default:return W.SymbolKind.Variable}}function SA(t,e,n){return{convertTabsToSpaces:t.insertSpaces,tabSize:t.tabSize,indentSize:t.tabSize,indentStyle:ze.IndentStyle.Smart,newLineCharacter:`
528
527
  `,baseIndentSize:t.tabSize*n,insertSpaceAfterCommaDelimiter:!!(!e||e.insertSpaceAfterCommaDelimiter),insertSpaceAfterConstructor:!!(e&&e.insertSpaceAfterConstructor),insertSpaceAfterSemicolonInForStatements:!!(!e||e.insertSpaceAfterSemicolonInForStatements),insertSpaceBeforeAndAfterBinaryOperators:!!(!e||e.insertSpaceBeforeAndAfterBinaryOperators),insertSpaceAfterKeywordsInControlFlowStatements:!!(!e||e.insertSpaceAfterKeywordsInControlFlowStatements),insertSpaceAfterFunctionKeywordForAnonymousFunctions:!!(!e||e.insertSpaceAfterFunctionKeywordForAnonymousFunctions),insertSpaceBeforeFunctionParenthesis:!!(e&&e.insertSpaceBeforeFunctionParenthesis),insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!!(e&&e.insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis),insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!!(e&&e.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets),insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces:!!(e&&e.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces),insertSpaceAfterOpeningAndBeforeClosingEmptyBraces:!!(!e||e.insertSpaceAfterOpeningAndBeforeClosingEmptyBraces),insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!!(e&&e.insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces),insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces:!!(e&&e.insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces),insertSpaceAfterTypeAssertion:!!(e&&e.insertSpaceAfterTypeAssertion),placeOpenBraceOnNewLineForControlBlocks:!!(e&&e.placeOpenBraceOnNewLineForFunctions),placeOpenBraceOnNewLineForFunctions:!!(e&&e.placeOpenBraceOnNewLineForControlBlocks),semicolons:e?.semicolons}}function yA(t,e,n){let i=t.offsetAt(W.Position.create(e.start.line,0)),r=t.getText(),s=i,a=0,l=n.tabSize||4;for(;s<r.length;){let o=r.charAt(s);if(o===" ")a++;else if(o===" ")a+=l;else break;s++}return Math.floor(a/l)}function FA(t,e){return e.insertSpaces?Zp(" ",t*e.tabSize):Zp(" ",t)}var gA,wA,u2=Y(()=>{"use strict";la();Wn();Yl();o2();gA=/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g;wA=[1108,2792]});function Xl(t){return t&&typeof t.languageId=="string"&&typeof t.uri=="string"&&typeof t.offset=="number"}function p2(t,e,n,i){let r=V0({clientCapabilities:n,fileSystemProvider:i}),s=r0({clientCapabilities:n,fileSystemProvider:i}),a=Ln(10,60,c=>K0(r,c)),l=[];l.push(a);let o=Object.create(null);return o.html=X0(r,e),t.css&&(o.css=J0(s,a,e)),t.javascript&&(o.javascript=nm(a,"javascript",e),o.typescript=nm(a,"typescript",e)),{async updateDataProviders(c){r.setDataProviders(!0,c)},getModeAtPosition(c,d){let h=a.get(c).getLanguageAtPosition(d);if(h)return o[h]},getModesInRange(c,d){return a.get(c).getLanguageRanges(d).map(h=>({start:h.start,end:h.end,mode:h.languageId&&o[h.languageId],attributeValue:h.attributeValue}))},getAllModesInDocument(c){let d=[];for(let h of a.get(c).getLanguagesInDocument()){let u=o[h];u&&d.push(u)}return d},getAllModes(){let c=[];for(let d in o){let h=o[d];h&&c.push(h)}return c},getMode(c){return o[c]},onDocumentRemoved(c){l.forEach(d=>d.onDocumentRemoved(c));for(let d in o)o[d].onDocumentRemoved(c)},dispose(){l.forEach(c=>c.dispose()),l=[];for(let c in o)o[c].dispose();o={}}}}var W,Zl,Wn=Y(()=>{"use strict";Ip();Jp();la();Y0();Xp();Z0();u2();W=je(Ei(),1);hl();Zl="html-server"});function bi(t,e){if(e)for(let n of e)t.push(n)}var im=Y(()=>{"use strict"});async function m2(t,e,n,i,r,s){let a=[],l=n.end,o=e.offsetAt(l),c=e.getText();if(l.character===0&&l.line>0&&o!==c.length){let f=e.offsetAt(W.Position.create(l.line-1,0));for(;i2(c,o-1)&&o>f;)o--;n=W.Range.create(n.start,e.positionAt(o))}let d=t.getModesInRange(e,n),h=0,u=n.start,m=f=>f.mode&&f.mode.getId()==="html";for(;h<d.length&&!m(d[h]);){let f=d[h];if(!f.attributeValue&&f.mode&&f.mode.format){let v=await f.mode.format(e,W.Range.create(u,f.end),i,r);bi(a,v)}u=f.end,h++}if(h===d.length)return a;n=W.Range.create(u,n.end);let y=await t.getMode("html").format(e,n,i,r),O=ot.applyEdits(e,y);i.insertFinalNewline&&o===c.length&&!O.endsWith(`
@@ -1,4 +1,3 @@
1
- #!/usr/bin/env node
2
1
  import { createRequire } from 'module'; const require = createRequire(import.meta.url);
3
2
  var py=Object.create;var ti=Object.defineProperty;var hy=Object.getOwnPropertyDescriptor;var gy=Object.getOwnPropertyNames;var my=Object.getPrototypeOf,yy=Object.prototype.hasOwnProperty;var ve=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,n)=>(typeof require<"u"?require:t)[n]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var ie=(e,t)=>()=>(e&&(t=e(e=0)),t);var z=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),by=(e,t)=>{for(var n in t)ti(e,n,{get:t[n],enumerable:!0})},Dl=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of gy(t))!yy.call(e,i)&&i!==n&&ti(e,i,{get:()=>t[i],enumerable:!(r=hy(t,i))||r.enumerable});return e};var Qe=(e,t,n)=>(n=e!=null?py(my(e)):{},Dl(t||!e||!e.__esModule?ti(n,"default",{value:e,enumerable:!0}):n,e)),Xo=e=>Dl(ti({},"__esModule",{value:!0}),e);var Pt=z((D0,Tl)=>{"use strict";var Zo=Object.defineProperty,vy=Object.getOwnPropertyDescriptor,_y=Object.getOwnPropertyNames,wy=Object.prototype.hasOwnProperty,xy=(e,t)=>{for(var n in t)Zo(e,n,{get:t[n],enumerable:!0})},Dy=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of _y(t))!wy.call(e,i)&&i!==n&&Zo(e,i,{get:()=>t[i],enumerable:!(r=vy(t,i))||r.enumerable});return e},Py=e=>Dy(Zo({},"__esModule",{value:!0}),e),Sl={};xy(Sl,{config:()=>Ry,t:()=>kl});Tl.exports=Py(Sl);var Sy=ve("fs"),ky=ve("fs/promises");async function Ty(e){if(e.protocol==="file:")return await(0,ky.readFile)(e,"utf8");if(e.protocol==="http:"||e.protocol==="https:"){let t=await fetch(e.toString(),{headers:{"Accept-Encoding":"gzip, deflate",Accept:"application/json"},redirect:"follow"});if(!t.ok){let r=`Unexpected ${t.status} response while trying to read ${e}`;try{r+=`: ${await t.text()}`}catch{}throw new Error(r)}return await t.text()}throw new Error("Unsupported protocol")}function Oy(e){return(0,Sy.readFileSync)(e,"utf8")}var br;function Ry(e){if("contents"in e){typeof e.contents=="string"?br=JSON.parse(e.contents):br=e.contents;return}if("fsPath"in e){let t=Oy(e.fsPath),n=JSON.parse(t);br=Pl(n)?n.contents.bundle:n;return}if(e.uri){let t=e.uri;return typeof e.uri=="string"&&(t=new URL(e.uri)),new Promise((n,r)=>{Ty(t).then(i=>{try{let o=JSON.parse(i);br=Pl(o)?o.contents.bundle:o,n()}catch(o){r(o)}}).catch(i=>{r(i)})})}}function kl(...e){let t=e[0],n,r,i;if(typeof t=="string")n=t,r=t,e.splice(0,1),i=!e||typeof e[0]!="object"?e:e[0];else if(t instanceof Array){let s=e.slice(1);if(t.length!==s.length+1)throw new Error("expected a string as the first argument to l10n.t");let a=t[0];for(let d=1;d<t.length;d++)a+=`{${d-1}}`+t[d];return kl(a,...s)}else r=t.message,n=r,t.comment&&t.comment.length>0&&(n+=`/${Array.isArray(t.comment)?t.comment.join(""):t.comment}`),i=t.args??{};let o=br?.[n];return o?typeof o=="string"?ni(o,i):o.comment?ni(o.message,i):ni(r,i):ni(r,i)}var My=/{([^}]+)}/g;function ni(e,t){return Object.keys(t).length===0?e:e.replace(My,(n,r)=>t[r]??n)}function Pl(e){return typeof e?.contents?.bundle=="object"&&typeof e?.version=="string"}});var ri=z(mt=>{"use strict";Object.defineProperty(mt,"__esModule",{value:!0});mt.boolean=Ny;mt.string=Ol;mt.number=Cy;mt.error=jy;mt.func=Rl;mt.array=Ml;mt.stringArray=Ey;mt.typedArray=Ay;mt.thenable=qy;function Ny(e){return e===!0||e===!1}function Ol(e){return typeof e=="string"||e instanceof String}function Cy(e){return typeof e=="number"||e instanceof Number}function jy(e){return e instanceof Error}function Rl(e){return typeof e=="function"}function Ml(e){return Array.isArray(e)}function Ey(e){return Ml(e)&&e.every(t=>Ol(t))}function Ay(e,t){return Array.isArray(e)&&e.every(t)}function qy(e){return e&&Rl(e.then)}});var Mn=z(At=>{"use strict";Object.defineProperty(At,"__esModule",{value:!0});At.boolean=Ly;At.string=Nl;At.number=Iy;At.error=Fy;At.func=$y;At.array=Cl;At.stringArray=Vy;function Ly(e){return e===!0||e===!1}function Nl(e){return typeof e=="string"||e instanceof String}function Iy(e){return typeof e=="number"||e instanceof Number}function Fy(e){return e instanceof Error}function $y(e){return typeof e=="function"}function Cl(e){return Array.isArray(e)}function Vy(e){return Cl(e)&&e.every(t=>Nl(t))}});var ws=z(G=>{"use strict";var Uy=G&&G.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),Wy=G&&G.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),Hy=G&&G.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(n){var r=[];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[r.length]=i);return r},e(t)};return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var r=e(t),i=0;i<r.length;i++)r[i]!=="default"&&Uy(n,t,r[i]);return Wy(n,t),n}})();Object.defineProperty(G,"__esModule",{value:!0});G.Message=G.NotificationType9=G.NotificationType8=G.NotificationType7=G.NotificationType6=G.NotificationType5=G.NotificationType4=G.NotificationType3=G.NotificationType2=G.NotificationType1=G.NotificationType0=G.NotificationType=G.RequestType9=G.RequestType8=G.RequestType7=G.RequestType6=G.RequestType5=G.RequestType4=G.RequestType3=G.RequestType2=G.RequestType1=G.RequestType=G.RequestType0=G.AbstractMessageSignature=G.ParameterStructures=G.ResponseError=G.ErrorCodes=void 0;var pn=Hy(Mn()),Qo;(function(e){e.ParseError=-32700,e.InvalidRequest=-32600,e.MethodNotFound=-32601,e.InvalidParams=-32602,e.InternalError=-32603,e.jsonrpcReservedErrorRangeStart=-32099,e.serverErrorStart=-32099,e.MessageWriteError=-32099,e.MessageReadError=-32098,e.PendingResponseRejected=-32097,e.ConnectionInactive=-32096,e.ServerNotInitialized=-32002,e.UnknownErrorCode=-32001,e.jsonrpcReservedErrorRangeEnd=-32e3,e.serverErrorEnd=-32e3})(Qo||(G.ErrorCodes=Qo={}));var Yo=class e extends Error{code;data;constructor(t,n,r){super(n),this.code=pn.number(t)?t:Qo.UnknownErrorCode,this.data=r,Object.setPrototypeOf(this,e.prototype)}toJson(){let t={code:this.code,message:this.message};return this.data!==void 0&&(t.data=this.data),t}};G.ResponseError=Yo;var zt=class e{kind;static auto=new e("auto");static byPosition=new e("byPosition");static byName=new e("byName");constructor(t){this.kind=t}static is(t){return t===e.auto||t===e.byName||t===e.byPosition}toString(){return this.kind}};G.ParameterStructures=zt;var ge=class{method;numberOfParams;constructor(t,n){this.method=t,this.numberOfParams=n}get parameterStructures(){return zt.auto}};G.AbstractMessageSignature=ge;var Ko=class extends ge{_;constructor(t){super(t,0)}};G.RequestType0=Ko;var es=class extends ge{_parameterStructures;_;constructor(t,n=zt.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};G.RequestType=es;var ts=class extends ge{_parameterStructures;_;constructor(t,n=zt.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};G.RequestType1=ts;var ns=class extends ge{_;constructor(t){super(t,2)}};G.RequestType2=ns;var rs=class extends ge{_;constructor(t){super(t,3)}};G.RequestType3=rs;var is=class extends ge{_;constructor(t){super(t,4)}};G.RequestType4=is;var os=class extends ge{_;constructor(t){super(t,5)}};G.RequestType5=os;var ss=class extends ge{_;constructor(t){super(t,6)}};G.RequestType6=ss;var as=class extends ge{_;constructor(t){super(t,7)}};G.RequestType7=as;var cs=class extends ge{_;constructor(t){super(t,8)}};G.RequestType8=cs;var us=class extends ge{_;constructor(t){super(t,9)}};G.RequestType9=us;var ls=class extends ge{_parameterStructures;_;constructor(t,n=zt.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};G.NotificationType=ls;var fs=class extends ge{_;constructor(t){super(t,0)}};G.NotificationType0=fs;var ds=class extends ge{_parameterStructures;_;constructor(t,n=zt.auto){super(t,1),this._parameterStructures=n}get parameterStructures(){return this._parameterStructures}};G.NotificationType1=ds;var ps=class extends ge{_;constructor(t){super(t,2)}};G.NotificationType2=ps;var hs=class extends ge{_;constructor(t){super(t,3)}};G.NotificationType3=hs;var gs=class extends ge{_;constructor(t){super(t,4)}};G.NotificationType4=gs;var ms=class extends ge{_;constructor(t){super(t,5)}};G.NotificationType5=ms;var ys=class extends ge{_;constructor(t){super(t,6)}};G.NotificationType6=ys;var bs=class extends ge{_;constructor(t){super(t,7)}};G.NotificationType7=bs;var vs=class extends ge{_;constructor(t){super(t,8)}};G.NotificationType8=vs;var _s=class extends ge{_;constructor(t){super(t,9)}};G.NotificationType9=_s;var jl;(function(e){function t(i){let o=i;return o&&pn.string(o.method)&&(pn.string(o.id)||pn.number(o.id))}e.isRequest=t;function n(i){let o=i;return o&&pn.string(o.method)&&i.id===void 0}e.isNotification=n;function r(i){let o=i;return o&&(o.result!==void 0||!!o.error)&&(pn.string(o.id)||pn.number(o.id)||o.id===null)}e.isResponse=r})(jl||(G.Message=jl={}))});var Ds=z(Jt=>{"use strict";Object.defineProperty(Jt,"__esModule",{value:!0});Jt.LRUCache=Jt.LinkedMap=Jt.Touch=void 0;var $e;(function(e){e.None=0,e.First=1,e.AsOld=e.First,e.Last=2,e.AsNew=e.Last})($e||(Jt.Touch=$e={}));var ii=class{[Symbol.toStringTag]="LinkedMap";_map;_head;_tail;_size;_state;constructor(){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}before(t){let n=this._map.get(t);return n?n.previous?.value:void 0}after(t){let n=this._map.get(t);return n?n.next?.value:void 0}has(t){return this._map.has(t)}get(t,n=$e.None){let r=this._map.get(t);if(r)return n!==$e.None&&this.touch(r,n),r.value}set(t,n,r=$e.None){let i=this._map.get(t);if(i)i.value=n,r!==$e.None&&this.touch(i,r);else{switch(i={key:t,value:n,next:void 0,previous:void 0},r){case $e.None:this.addItemLast(i);break;case $e.First:this.addItemFirst(i);break;case $e.Last:this.addItemLast(i);break;default:this.addItemLast(i);break}this._map.set(t,i),this._size++}return this}delete(t){return!!this.remove(t)}remove(t){let n=this._map.get(t);if(n)return this._map.delete(t),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 t=this._head;return this._map.delete(t.key),this.removeItem(t),this._size--,t.value}forEach(t,n){let r=this._state,i=this._head;for(;i;){if(n?t.bind(n)(i.value,i.key,this):t(i.value,i.key,this),this._state!==r)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){let t=this._state,n=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==t)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 t=this._state,n=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==t)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 t=this._state,n=this._head,r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==t)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}[Symbol.iterator](){return this.entries()}trimOld(t){if(t>=this.size)return;if(t===0){this.clear();return}let n=this._head,r=this.size;for(;n&&r>t;)this._map.delete(n.key),n=n.next,r--;this._head=n,this._size=r,n&&(n.previous=void 0),this._state++}addItemFirst(t){if(!this._head&&!this._tail)this._tail=t;else if(this._head)t.next=this._head,this._head.previous=t;else throw new Error("Invalid list");this._head=t,this._state++}addItemLast(t){if(!this._head&&!this._tail)this._head=t;else if(this._tail)t.previous=this._tail,this._tail.next=t;else throw new Error("Invalid list");this._tail=t,this._state++}removeItem(t){if(t===this._head&&t===this._tail)this._head=void 0,this._tail=void 0;else if(t===this._head){if(!t.next)throw new Error("Invalid list");t.next.previous=void 0,this._head=t.next}else if(t===this._tail){if(!t.previous)throw new Error("Invalid list");t.previous.next=void 0,this._tail=t.previous}else{let n=t.next,r=t.previous;if(!n||!r)throw new Error("Invalid list");n.previous=r,r.next=n}t.next=void 0,t.previous=void 0,this._state++}touch(t,n){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(n!==$e.First&&n!==$e.Last)){if(n===$e.First){if(t===this._head)return;let r=t.next,i=t.previous;t===this._tail?(i.next=void 0,this._tail=i):(r.previous=i,i.next=r),t.previous=void 0,t.next=this._head,this._head.previous=t,this._head=t,this._state++}else if(n===$e.Last){if(t===this._tail)return;let r=t.next,i=t.previous;t===this._head?(r.previous=void 0,this._head=r):(r.previous=i,i.next=r),t.next=void 0,t.previous=this._tail,this._tail.next=t,this._tail=t,this._state++}}}toJSON(){let t=[];return this.forEach((n,r)=>{t.push([r,n])}),t}fromJSON(t){this.clear();for(let[n,r]of t)this.set(n,r)}};Jt.LinkedMap=ii;var xs=class extends ii{_limit;_ratio;constructor(t,n=1){super(),this._limit=t,this._ratio=Math.min(Math.max(0,n),1)}get limit(){return this._limit}set limit(t){this._limit=t,this.checkTrim()}get ratio(){return this._ratio}set ratio(t){this._ratio=Math.min(Math.max(0,t),1),this.checkTrim()}get(t,n=$e.AsNew){return super.get(t,n)}peek(t){return super.get(t,$e.None)}set(t,n){return super.set(t,n,$e.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}};Jt.LRUCache=xs});var Al=z(oi=>{"use strict";Object.defineProperty(oi,"__esModule",{value:!0});oi.Disposable=void 0;var El;(function(e){function t(n){return{dispose:n}}e.create=t})(El||(oi.Disposable=El={}))});var Gt=z(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});var Ps;function Ss(){if(Ps===void 0)throw new Error("No runtime abstraction layer installed");return Ps}(function(e){function t(n){if(n===void 0)throw new Error("No runtime abstraction layer provided");Ps=n}e.install=t})(Ss||(Ss={}));ks.default=Ss});var Nn=z(Xt=>{"use strict";var By=Xt&&Xt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Xt,"__esModule",{value:!0});Xt.Emitter=Xt.Event=void 0;var zy=By(Gt()),ql;(function(e){let t={dispose(){}};e.None=function(){return t}})(ql||(Xt.Event=ql={}));var Ts=class{_callbacks;_contexts;add(t,n=null,r){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(t),this._contexts.push(n),Array.isArray(r)&&r.push({dispose:()=>this.remove(t,n)})}remove(t,n=null){if(!this._callbacks)return;let r=!1;for(let i=0,o=this._callbacks.length;i<o;i++)if(this._callbacks[i]===t)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(...t){if(!this._callbacks)return[];let n=[],r=this._callbacks.slice(0),i=this._contexts.slice(0);for(let o=0,s=r.length;o<s;o++)try{n.push(r[o].apply(i[o],t))}catch(a){(0,zy.default)().console.error(a)}return n}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},Os=class e{_options;static _noop=function(){};_event;_callbacks;constructor(t){this._options=t}get event(){return this._event||(this._event=(t,n,r)=>{this._callbacks||(this._callbacks=new Ts),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(t,n);let i={dispose:()=>{this._callbacks&&(this._callbacks.remove(t,n),i.dispose=e._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(r)&&r.push(i),i}),this._event}fire(t){this._callbacks&&this._callbacks.invoke.call(this._callbacks,t)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}};Xt.Emitter=Os});var ci=z(Ye=>{"use strict";var Jy=Ye&&Ye.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),Gy=Ye&&Ye.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),Xy=Ye&&Ye.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(n){var r=[];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[r.length]=i);return r},e(t)};return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var r=e(t),i=0;i<r.length;i++)r[i]!=="default"&&Jy(n,t,r[i]);return Gy(n,t),n}})(),Zy=Ye&&Ye.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ye,"__esModule",{value:!0});Ye.CancellationTokenSource=Ye.CancellationToken=void 0;var Qy=Zy(Gt()),Yy=Xy(Mn()),Rs=Nn(),si;(function(e){e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Rs.Event.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Rs.Event.None});function t(n){let r=n;return r&&(r===e.None||r===e.Cancelled||Yy.boolean(r.isCancellationRequested)&&!!r.onCancellationRequested)}e.is=t})(si||(Ye.CancellationToken=si={}));var Ky=Object.freeze(function(e,t){let n=(0,Qy.default)().timer.setTimeout(e.bind(t),0);return{dispose(){n.dispose()}}}),ai=class{_isCancelled=!1;_emitter;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?Ky:(this._emitter||(this._emitter=new Rs.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},Ms=class{_token;get token(){return this._token||(this._token=new ai),this._token}cancel(){this._token?this._token.cancel():this._token=si.Cancelled}dispose(){this._token?this._token instanceof ai&&this._token.dispose():this._token=si.None}};Ye.CancellationTokenSource=Ms});var Ll=z(Cn=>{"use strict";Object.defineProperty(Cn,"__esModule",{value:!0});Cn.SharedArrayReceiverStrategy=Cn.SharedArraySenderStrategy=void 0;var eb=ci(),vr;(function(e){e.Continue=0,e.Cancelled=1})(vr||(vr={}));var Ns=class{buffers;constructor(){this.buffers=new Map}enableCancellation(t){if(t.id===null)return;let n=new SharedArrayBuffer(4),r=new Int32Array(n,0,1);r[0]=vr.Continue,this.buffers.set(t.id,n),t.$cancellationData=n}async sendCancellation(t,n){let r=this.buffers.get(n);if(r===void 0)return;let i=new Int32Array(r,0,1);Atomics.store(i,0,vr.Cancelled)}cleanup(t){this.buffers.delete(t)}dispose(){this.buffers.clear()}};Cn.SharedArraySenderStrategy=Ns;var Cs=class{data;constructor(t){this.data=new Int32Array(t,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===vr.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}},js=class{token;constructor(t){this.token=new Cs(t)}cancel(){}dispose(){}},Es=class{kind="request";createCancellationTokenSource(t){let n=t.$cancellationData;return n===void 0?new eb.CancellationTokenSource:new js(n)}};Cn.SharedArrayReceiverStrategy=Es});var qs=z(jn=>{"use strict";var tb=jn&&jn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(jn,"__esModule",{value:!0});jn.Semaphore=void 0;var nb=tb(Gt()),As=class{_capacity;_active;_waiting;constructor(t=1){if(t<=0)throw new Error("Capacity must be greater than 0");this._capacity=t,this._active=0,this._waiting=[]}lock(t){return new Promise((n,r)=>{this._waiting.push({thunk:t,resolve:n,reject:r}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length===0||this._active===this._capacity||(0,nb.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||this._active===this._capacity)return;let t=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("Too many thunks active");try{let n=t.thunk();n instanceof Promise?n.then(r=>{this._active--,t.resolve(r),this.runNext()},r=>{this._active--,t.reject(r),this.runNext()}):(this._active--,t.resolve(n),this.runNext())}catch(n){this._active--,t.reject(n),this.runNext()}}};jn.Semaphore=As});var Fl=z(Ve=>{"use strict";var rb=Ve&&Ve.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),ib=Ve&&Ve.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),ob=Ve&&Ve.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(n){var r=[];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[r.length]=i);return r},e(t)};return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var r=e(t),i=0;i<r.length;i++)r[i]!=="default"&&rb(n,t,r[i]);return ib(n,t),n}})(),sb=Ve&&Ve.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ve,"__esModule",{value:!0});Ve.ReadableStreamMessageReader=Ve.AbstractMessageReader=Ve.MessageReader=void 0;var Is=sb(Gt()),En=ob(Mn()),Ls=Nn(),ab=qs(),Il;(function(e){function t(n){let r=n;return r&&En.func(r.listen)&&En.func(r.dispose)&&En.func(r.onError)&&En.func(r.onClose)&&En.func(r.onPartialMessage)}e.is=t})(Il||(Ve.MessageReader=Il={}));var ui=class{errorEmitter;closeEmitter;partialMessageEmitter;constructor(){this.errorEmitter=new Ls.Emitter,this.closeEmitter=new Ls.Emitter,this.partialMessageEmitter=new Ls.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose(),this.partialMessageEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(t){this.errorEmitter.fire(this.asError(t))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(t){this.partialMessageEmitter.fire(t)}asError(t){return t instanceof Error?t:new Error(`Reader received error. Reason: ${En.string(t.message)?t.message:"unknown"}`)}};Ve.AbstractMessageReader=ui;var Fs;(function(e){function t(n){let r,i,o,s=new Map,a,d=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,s.set(o.name,o)),n.contentDecoders!==void 0)for(let c of n.contentDecoders)s.set(c.name,c);if(n.contentTypeDecoder!==void 0&&(a=n.contentTypeDecoder,d.set(a.name,a)),n.contentTypeDecoders!==void 0)for(let c of n.contentTypeDecoders)d.set(c.name,c)}return a===void 0&&(a=(0,Is.default)().applicationJson.decoder,d.set(a.name,a)),{charset:r,contentDecoder:o,contentDecoders:s,contentTypeDecoder:a,contentTypeDecoders:d}}e.fromOptions=t})(Fs||(Fs={}));var $s=class extends ui{readable;options;callback;nextMessageLength;messageToken;buffer;partialMessageTimer;_partialMessageTimeout;readSemaphore;constructor(t,n){super(),this.readable=t,this.options=Fs.fromOptions(n),this.buffer=(0,Is.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new ab.Semaphore(1)}set partialMessageTimeout(t){this._partialMessageTimeout=t}get partialMessageTimeout(){return this._partialMessageTimeout}listen(t){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=t;let n=this.readable.onData(r=>{this.onData(r)});return this.readable.onError(r=>this.fireError(r)),this.readable.onClose(()=>this.fireClose()),n}onData(t){try{for(this.buffer.append(t);;){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.
4
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,Is.default)().timer.setTimeout((t,n)=>{this.partialMessageTimer=void 0,t===this.messageToken&&(this.firePartialMessage({messageToken:t,waitingTime:n}),this.setPartialMessageTimer())},this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}};Ve.ReadableStreamMessageReader=$s});var Hl=z(Ue=>{"use strict";var cb=Ue&&Ue.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),ub=Ue&&Ue.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),lb=Ue&&Ue.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(n){var r=[];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[r.length]=i);return r},e(t)};return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var r=e(t),i=0;i<r.length;i++)r[i]!=="default"&&cb(n,t,r[i]);return ub(n,t),n}})(),fb=Ue&&Ue.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ue,"__esModule",{value:!0});Ue.WriteableStreamMessageWriter=Ue.AbstractMessageWriter=Ue.MessageWriter=void 0;var $l=fb(Gt()),_r=lb(Mn()),db=qs(),Vl=Nn(),pb="Content-Length: ",Ul=`\r
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "$schema": "http://www.schemastore.org/package.json",
3
3
  "name": "@t1ckbase/vscode-langservers-extracted",
4
- "version": "1.0.5",
5
- "description": "Extracted language servers from Microsoft’s repositories for various languages (CSS, HTML, JSON) and ESLint.",
4
+ "version": "2.0.0",
5
+ "description": "Language servers extracted from Microsoft repositories for CSS, HTML, JSON, Markdown, and ESLint.",
6
6
  "keywords": [
7
7
  "css",
8
8
  "emacs",
@@ -13,44 +13,53 @@
13
13
  "language-server",
14
14
  "language-server-protocol",
15
15
  "lsp",
16
+ "markdown",
16
17
  "neovim",
17
18
  "vim",
18
19
  "vscode"
19
20
  ],
21
+ "homepage": "https://github.com/T1ckbase/vscode-langservers-extracted#readme",
20
22
  "bugs": {
21
23
  "url": "https://github.com/T1ckbase/vscode-langservers-extracted/issues"
22
24
  },
23
25
  "license": "MIT",
24
- "author": "t1ckbase",
26
+ "author": "T1ckbase <146760065+T1ckbase@users.noreply.github.com> (https://github.com/T1ckbase)",
25
27
  "repository": {
26
28
  "type": "git",
27
29
  "url": "git+https://github.com/T1ckbase/vscode-langservers-extracted.git"
28
30
  },
29
31
  "bin": {
30
- "vscode-css-language-server": "dist/css/cssServerMain.js",
31
- "vscode-eslint-language-server": "dist/eslint/eslintServer.js",
32
- "vscode-html-language-server": "dist/html/htmlServerMain.js",
33
- "vscode-json-language-server": "dist/json/jsonServerMain.js"
32
+ "vscode-css-language-server": "bin/css.js",
33
+ "vscode-eslint-language-server": "bin/eslint.cjs",
34
+ "vscode-html-language-server": "bin/html.js",
35
+ "vscode-json-language-server": "bin/json.js",
36
+ "vscode-markdown-language-server": "bin/markdown.js"
34
37
  },
35
38
  "files": [
36
39
  "dist"
37
40
  ],
41
+ "type": "module",
38
42
  "publishConfig": {
39
43
  "access": "public"
40
44
  },
45
+ "scripts": {
46
+ "format": "oxfmt",
47
+ "build": "bun src/main.ts",
48
+ "update": "bun src/main.ts --update",
49
+ "test": "bun test src/lsp.test.ts"
50
+ },
41
51
  "dependencies": {
42
- "typescript": "^6.0.3"
52
+ "typescript": "^6.0.3",
53
+ "vscode-markdown-languageserver": "^0.5.0-alpha.15"
43
54
  },
44
55
  "devDependencies": {
45
56
  "@types/bun": "latest",
46
- "oxfmt": "^0.41.0",
57
+ "oxfmt": "^0.50.0",
47
58
  "vscode-jsonrpc": "^8.2.1",
48
59
  "vscode-languageserver-protocol": "^3.17.5"
49
60
  },
50
- "metadata": {
51
- "versions": {
52
- "microsoft/vscode": "1.117.0",
53
- "microsoft/vscode-eslint": "3.0.24"
54
- }
61
+ "upstream": {
62
+ "vscode": "1.120.0",
63
+ "vscode-eslint": "3.0.24"
55
64
  }
56
65
  }