monaco-editor 0.56.0-dev-20260121 → 0.56.0-dev-20260122

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.
Files changed (159) hide show
  1. package/dev/vs/assets/{css.worker-C1mHXZTT.js → css.worker-DFWL8mWf.js} +3 -1
  2. package/dev/vs/assets/{editor.worker-DMuwmZqI.js → editor.worker-DvLCS5qo.js} +3 -1
  3. package/dev/vs/assets/{editorWebWorkerMain-BF9MKtzx.js → editorWebWorkerMain-deOPs7AH.js} +3 -1
  4. package/dev/vs/assets/{html.worker-CnU9mi9l.js → html.worker-CQNY7DBe.js} +3 -1
  5. package/dev/vs/assets/{json.worker-CnKP0LWf.js → json.worker-C9pheOUa.js} +3 -1
  6. package/dev/vs/assets/{ts.worker-Cw4JXdL0.js → ts.worker-Du12m7rw.js} +3 -1
  7. package/dev/vs/basic-languages/monaco.contribution.js +18 -18
  8. package/dev/vs/{css.worker-B9TJsr2Z.js → css.worker-kKwJXuIn.js} +2 -2
  9. package/dev/vs/{cssMode-B0VkNrib.js → cssMode-C6tcxH2S.js} +1 -1
  10. package/dev/vs/editor/editor.main.css +5 -43
  11. package/dev/vs/editor/editor.main.js +2 -2
  12. package/dev/vs/editor/editor.worker.js +1 -1
  13. package/dev/vs/{editor-CR18QzPP.js → editor-B9pgTCSU.js} +68 -5
  14. package/dev/vs/editor.js +1 -1
  15. package/dev/vs/{editorWorkerHost--0eDLpc-.js → editorWorkerHost-sGvqyT60.js} +4 -2
  16. package/dev/vs/{freemarker2-Byr9HmH9.js → freemarker2-BWdXDyq0.js} +1 -1
  17. package/dev/vs/{handlebars-BEVXeROF.js → handlebars-DHkhXlH4.js} +1 -1
  18. package/dev/vs/{html-CetHjWIf.js → html-CwYRLTCW.js} +1 -1
  19. package/dev/vs/{html.worker-B4TnFQEA.js → html.worker-DFrb_FqU.js} +2 -2
  20. package/dev/vs/{htmlMode-BNKYUVNo.js → htmlMode-DGw6u-_x.js} +1 -1
  21. package/dev/vs/{index-g_7JbDIY.js → index-JToR8Kbi.js} +1 -1
  22. package/dev/vs/index.js +1 -1
  23. package/dev/vs/{initialize-Bfvoywyr.js → initialize-BN1LUh1y.js} +1 -1
  24. package/dev/vs/{javascript-BEgEU725.js → javascript-BwVTT-pd.js} +1 -1
  25. package/dev/vs/{json.worker-C2LEGBju.js → json.worker-DoHfmw11.js} +2 -2
  26. package/dev/vs/{jsonMode-CT2UkfFE.js → jsonMode-DB_GUGzo.js} +1 -1
  27. package/dev/vs/language/css/css.worker.js +1 -1
  28. package/dev/vs/language/css/monaco.contribution.js +1 -1
  29. package/dev/vs/language/html/html.worker.js +1 -1
  30. package/dev/vs/language/html/monaco.contribution.js +1 -1
  31. package/dev/vs/language/json/json.worker.js +1 -1
  32. package/dev/vs/language/json/monaco.contribution.js +1 -1
  33. package/dev/vs/language/typescript/monaco.contribution.js +1 -1
  34. package/dev/vs/language/typescript/ts.worker.js +1 -1
  35. package/dev/vs/{liquid-D-aiCb1P.js → liquid-7Ua4uCpc.js} +1 -1
  36. package/dev/vs/{lspLanguageFeatures-CE9Occyu.js → lspLanguageFeatures-Qf3eaHTC.js} +1 -1
  37. package/dev/vs/{mdx-DchJ8pbq.js → mdx-CypIFtZs.js} +1 -1
  38. package/dev/vs/{monaco.contribution-CZxuzvA9.js → monaco.contribution-9jkd1kDI.js} +2 -2
  39. package/dev/vs/{monaco.contribution-Cw4OdERZ.js → monaco.contribution-BAR8bx2O.js} +2 -2
  40. package/dev/vs/{monaco.contribution-CHqb1dWh.js → monaco.contribution-BvYOcRCN.js} +2 -2
  41. package/dev/vs/{monaco.contribution-CVBrIlxn.js → monaco.contribution-mda4i34p.js} +2 -2
  42. package/dev/vs/nls/lang/cs.js +1 -1
  43. package/dev/vs/nls/lang/de.js +1 -1
  44. package/dev/vs/nls/lang/es.js +1 -1
  45. package/dev/vs/nls/lang/fr.js +1 -1
  46. package/dev/vs/nls/lang/it.js +1 -1
  47. package/dev/vs/nls/lang/ja.js +1 -1
  48. package/dev/vs/nls/lang/ko.js +1 -1
  49. package/dev/vs/nls/lang/pl.js +1 -1
  50. package/dev/vs/nls/lang/pt-br.js +1 -1
  51. package/dev/vs/nls/lang/ru.js +1 -1
  52. package/dev/vs/nls/lang/tr.js +1 -1
  53. package/dev/vs/nls/lang/zh-cn.js +1 -1
  54. package/dev/vs/nls/lang/zh-tw.js +1 -1
  55. package/dev/vs/{python-BCOSaCC8.js → python-DXBMpYPe.js} +1 -1
  56. package/dev/vs/{razor-BM2tZCwj.js → razor-B-6VCfW8.js} +1 -1
  57. package/dev/vs/{toggleHighContrast-CLgtrrIB.js → toggleHighContrast-BZymj9rw.js} +56 -52
  58. package/dev/vs/{ts.worker-CArJhH03.js → ts.worker-DJRdPJkr.js} +2 -2
  59. package/dev/vs/{tsMode-jpkv3SbL.js → tsMode-CtNWvTBe.js} +1 -1
  60. package/dev/vs/{typescript-f8pt88eA.js → typescript-Cwpmy0ly.js} +1 -1
  61. package/dev/vs/{workers-zrUx_2Gw.js → workers-CBOwmYIQ.js} +1 -1
  62. package/dev/vs/{xml-CmSjtiR0.js → xml-xVD5OU5p.js} +1 -1
  63. package/dev/vs/{yaml-PRriLGdw.js → yaml-C750B2U1.js} +1 -1
  64. package/esm/vs/base/browser/markdownRenderer.js +0 -1
  65. package/esm/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
  66. package/esm/vs/base/common/codiconsLibrary.js +2 -0
  67. package/esm/vs/base/common/network.js +0 -2
  68. package/esm/vs/editor/browser/observableCodeEditor.js +41 -0
  69. package/esm/vs/editor/browser/view.js +3 -0
  70. package/esm/vs/editor/browser/viewParts/viewLines/viewLine.js +14 -0
  71. package/esm/vs/editor/browser/viewParts/viewLines/viewLines.js +7 -0
  72. package/esm/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +6 -0
  73. package/esm/vs/editor/browser/widget/multiDiffEditor/style.css +2 -41
  74. package/esm/vs/editor/contrib/floatingMenu/browser/floatingMenu.css +2 -1
  75. package/esm/vs/editor/contrib/floatingMenu/browser/floatingMenu.js +55 -47
  76. package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/utils/utils.js +2 -8
  77. package/esm/vs/editor/standalone/browser/services/standaloneWebWorkerService.js +2 -1
  78. package/esm/vs/nls/lang/cs.js +1 -1
  79. package/esm/vs/nls/lang/de.js +1 -1
  80. package/esm/vs/nls/lang/es.js +1 -1
  81. package/esm/vs/nls/lang/fr.js +1 -1
  82. package/esm/vs/nls/lang/it.js +1 -1
  83. package/esm/vs/nls/lang/ja.js +1 -1
  84. package/esm/vs/nls/lang/ko.js +1 -1
  85. package/esm/vs/nls/lang/pl.js +1 -1
  86. package/esm/vs/nls/lang/pt-br.js +1 -1
  87. package/esm/vs/nls/lang/ru.js +1 -1
  88. package/esm/vs/nls/lang/tr.js +1 -1
  89. package/esm/vs/nls/lang/zh-cn.js +1 -1
  90. package/esm/vs/nls/lang/zh-tw.js +1 -1
  91. package/esm/vs/platform/actionWidget/browser/actionList.js +5 -5
  92. package/min/vs/assets/{css.worker-57ylMqdQ.js → css.worker-6cA326TN.js} +1 -1
  93. package/min/vs/assets/{editor.worker-C7rTzOHm.js → editor.worker-BXo0zwgx.js} +1 -1
  94. package/min/vs/assets/{editorWebWorkerMain-CRWuSSWk.js → editorWebWorkerMain-DN9ZTS2u.js} +1 -1
  95. package/min/vs/assets/{html.worker-DUkJXKh4.js → html.worker-DrzGuedL.js} +29 -29
  96. package/min/vs/assets/{json.worker-DHFIjIvp.js → json.worker-DtThdxL8.js} +1 -1
  97. package/min/vs/assets/{ts.worker-CKcSPjM2.js → ts.worker-Bwrsmc-T.js} +1 -1
  98. package/min/vs/basic-languages/monaco.contribution.js +1 -1
  99. package/min/vs/css.worker-B7_twapR.js +1 -0
  100. package/min/vs/{cssMode-CheCY05R.js → cssMode-C8DQ0scr.js} +1 -1
  101. package/min/vs/editor/editor.main.css +1 -1
  102. package/min/vs/editor/editor.main.js +1 -1
  103. package/min/vs/editor/editor.worker.js +1 -1
  104. package/min/vs/{editor-DxYWA3-X.js → editor-CQTI8xLr.js} +26 -26
  105. package/min/vs/editor.js +1 -1
  106. package/min/vs/{editorWorkerHost-DnKHgOKB.js → editorWorkerHost-C04MZfrm.js} +2 -2
  107. package/min/vs/{freemarker2-C7J7V1Hp.js → freemarker2-Z1NWIlDO.js} +1 -1
  108. package/min/vs/{handlebars-DsCar5Ix.js → handlebars-DKvQC_uf.js} +1 -1
  109. package/min/vs/{html-BGLIaUZV.js → html-DVQA9yw-.js} +1 -1
  110. package/min/vs/html.worker-DveLE0kf.js +1 -0
  111. package/min/vs/{htmlMode-BB6WOoy3.js → htmlMode-Cmfedj_X.js} +1 -1
  112. package/min/vs/{index-BdR0nSqf.js → index-DVMceREF.js} +1 -1
  113. package/min/vs/index.js +1 -1
  114. package/min/vs/{initialize-BZ6ciHHH.js → initialize-BBlIwSzx.js} +1 -1
  115. package/min/vs/{javascript-CXE3i1eX.js → javascript-sVC7H6MA.js} +1 -1
  116. package/min/vs/json.worker-DhvR4PNq.js +1 -0
  117. package/min/vs/{jsonMode-rtaE9alu.js → jsonMode-DYr4lHFG.js} +1 -1
  118. package/min/vs/language/css/css.worker.js +1 -1
  119. package/min/vs/language/css/monaco.contribution.js +1 -1
  120. package/min/vs/language/html/html.worker.js +1 -1
  121. package/min/vs/language/html/monaco.contribution.js +1 -1
  122. package/min/vs/language/json/json.worker.js +1 -1
  123. package/min/vs/language/json/monaco.contribution.js +1 -1
  124. package/min/vs/language/typescript/monaco.contribution.js +1 -1
  125. package/min/vs/language/typescript/ts.worker.js +1 -1
  126. package/min/vs/{liquid-CEdn0ovR.js → liquid-4lYNfvQN.js} +1 -1
  127. package/min/vs/{lspLanguageFeatures-CRAjJmzF.js → lspLanguageFeatures-CjV5jBdn.js} +1 -1
  128. package/min/vs/{mdx-DLDMIqnu.js → mdx-Dq1RoyhS.js} +1 -1
  129. package/min/vs/{monaco.contribution-C67XgReK.js → monaco.contribution-B8R1MBrS.js} +1 -1
  130. package/min/vs/{monaco.contribution-BrRAk-VA.js → monaco.contribution-Bom5piHI.js} +1 -1
  131. package/min/vs/{monaco.contribution-DjiQkKLa.js → monaco.contribution-CfB0n3ms.js} +1 -1
  132. package/min/vs/{monaco.contribution-CYT-Sx3l.js → monaco.contribution-Ch9HvFzW.js} +1 -1
  133. package/min/vs/nls/lang/cs.js +1 -1
  134. package/min/vs/nls/lang/de.js +1 -1
  135. package/min/vs/nls/lang/es.js +1 -1
  136. package/min/vs/nls/lang/fr.js +1 -1
  137. package/min/vs/nls/lang/it.js +1 -1
  138. package/min/vs/nls/lang/ja.js +1 -1
  139. package/min/vs/nls/lang/ko.js +1 -1
  140. package/min/vs/nls/lang/pl.js +1 -1
  141. package/min/vs/nls/lang/pt-br.js +1 -1
  142. package/min/vs/nls/lang/ru.js +1 -1
  143. package/min/vs/nls/lang/tr.js +1 -1
  144. package/min/vs/nls/lang/zh-cn.js +1 -1
  145. package/min/vs/nls/lang/zh-tw.js +1 -1
  146. package/min/vs/{python-CKbl_I3e.js → python-Dy1z8CNx.js} +1 -1
  147. package/min/vs/{razor--RjiPxbd.js → razor-CsE9CP7J.js} +1 -1
  148. package/min/vs/{toggleHighContrast-BKDMxisH.js → toggleHighContrast-C1llj-Qj.js} +31 -31
  149. package/min/vs/ts.worker-Dk3LlSfC.js +1 -0
  150. package/min/vs/{tsMode-C48d5M22.js → tsMode-CvlTiLGv.js} +1 -1
  151. package/min/vs/{typescript-e7oUhPyX.js → typescript-DJMThi2v.js} +1 -1
  152. package/min/vs/{workers-CtpYUoCo.js → workers-D8AKv35b.js} +1 -1
  153. package/min/vs/{xml-tOyfgws7.js → xml-_aWL2uyn.js} +1 -1
  154. package/min/vs/{yaml-Cmf9NYDf.js → yaml-Blkkbv6z.js} +1 -1
  155. package/package.json +3 -3
  156. package/min/vs/css.worker-CkPP9VjP.js +0 -1
  157. package/min/vs/html.worker-uHOusrcK.js +0 -1
  158. package/min/vs/json.worker-DGsNKzKv.js +0 -1
  159. package/min/vs/ts.worker-DyDnfuDL.js +0 -1
@@ -2,14 +2,14 @@
2
2
 
3
3
  `+e.stack):new Error(e.message+`
4
4
 
5
- `+e.stack):e},0)}}emit(e){this.listeners.forEach(n=>{n(e)})}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}}const oo=new ao;function Ot(t){lo(t)||oo.onUnexpectedError(t)}function An(t){if(t instanceof Error){const{name:e,message:n,cause:i}=t,r=t.stacktrace||t.stack;return{$isError:!0,name:e,message:n,stack:r,noTelemetry:nt.isErrorNoTelemetry(t),cause:i?An(i):void 0,code:t.code}}return t}const Ln="Canceled";function lo(t){return t instanceof Hi?!0:t instanceof Error&&t.name===Ln&&t.message===Ln}class Hi extends Error{constructor(){super(Ln),this.name=this.message}}class nt extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof nt)return e;const n=new nt;return n.message=e.message,n.stack=e.stack,n}static isErrorNoTelemetry(e){return e.name==="CodeExpectedError"}}class ue extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,ue.prototype)}}function uo(t,e="Unreachable"){throw new Error(e)}function co(t,e="unexpected state"){if(!t)throw typeof e=="string"?new ue(`Assertion Failed: ${e}`):e}function Vt(t){if(!t()){debugger;t(),Ot(new ue("Assertion Failed"))}}function Ui(t,e){let n=0;for(;n<t.length-1;){const i=t[n],r=t[n+1];if(!e(i,r))return!1;n++}return!0}function ho(t){return typeof t=="string"}function mo(t){return!!t&&typeof t[Symbol.iterator]=="function"}var jt;(function(t){function e(b){return!!b&&typeof b=="object"&&typeof b[Symbol.iterator]=="function"}t.is=e;const n=Object.freeze([]);function i(){return n}t.empty=i;function*r(b){yield b}t.single=r;function s(b){return e(b)?b:r(b)}t.wrap=s;function a(b){return b??n}t.from=a;function*l(b){for(let g=b.length-1;g>=0;g--)yield b[g]}t.reverse=l;function o(b){return!b||b[Symbol.iterator]().next().done===!0}t.isEmpty=o;function u(b){return b[Symbol.iterator]().next().value}t.first=u;function c(b,g){let _=0;for(const N of b)if(g(N,_++))return!0;return!1}t.some=c;function d(b,g){let _=0;for(const N of b)if(!g(N,_++))return!1;return!0}t.every=d;function m(b,g){for(const _ of b)if(g(_))return _}t.find=m;function*f(b,g){for(const _ of b)g(_)&&(yield _)}t.filter=f;function*w(b,g){let _=0;for(const N of b)yield g(N,_++)}t.map=w;function*p(b,g){let _=0;for(const N of b)yield*g(N,_++)}t.flatMap=p;function*T(...b){for(const g of b)mo(g)?yield*g:yield g}t.concat=T;function y(b,g,_){let N=_;for(const A of b)N=g(N,A);return N}t.reduce=y;function v(b){let g=0;for(const _ of b)g++;return g}t.length=v;function*S(b,g,_=b.length){for(g<-b.length&&(g=0),g<0&&(g+=b.length),_<0?_+=b.length:_>b.length&&(_=b.length);g<_;g++)yield b[g]}t.slice=S;function I(b,g=Number.POSITIVE_INFINITY){const _=[];if(g===0)return[_,b];const N=b[Symbol.iterator]();for(let A=0;A<g;A++){const x=N.next();if(x.done)return[_,t.empty()];_.push(x.value)}return[_,{[Symbol.iterator](){return N}}]}t.consume=I;async function H(b){const g=[];for await(const _ of b)g.push(_);return g}t.asyncToArray=H;async function W(b){let g=[];for await(const _ of b)g=g.concat(_);return g}t.asyncToArrayFlat=W})(jt||(jt={}));function lh(t,e){}function Pi(t){if(jt.is(t)){const e=[];for(const n of t)if(n)try{n.dispose()}catch(i){e.push(i)}if(e.length===1)throw e[0];if(e.length>1)throw new AggregateError(e,"Encountered errors while disposing of store");return Array.isArray(t)?[]:t}else if(t)return t.dispose(),t}function fo(...t){return $t(()=>Pi(t))}class po{constructor(e){this._isDisposed=!1,this._fn=e}dispose(){if(!this._isDisposed){if(!this._fn)throw new Error("Unbound disposable context: Need to use an arrow function to preserve the value of this");this._isDisposed=!0,this._fn()}}}function $t(t){return new po(t)}const vn=class vn{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{Pi(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e||e===Xe.None)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?vn.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}delete(e){if(e){if(e===this)throw new Error("Cannot dispose a disposable on itself!");this._toDispose.delete(e),e.dispose()}}};vn.DISABLE_DISPOSED_WARNING=!1;let kt=vn;const Ii=class Ii{constructor(){this._store=new kt,this._store}dispose(){this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}};Ii.None=Object.freeze({dispose(){}});let Xe=Ii,te=(qe=class{constructor(e){this.element=e,this.next=qe.Undefined,this.prev=qe.Undefined}},qe.Undefined=new qe(void 0),qe);class go{constructor(){this._first=te.Undefined,this._last=te.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===te.Undefined}clear(){let e=this._first;for(;e!==te.Undefined;){const n=e.next;e.prev=te.Undefined,e.next=te.Undefined,e=n}this._first=te.Undefined,this._last=te.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,n){const i=new te(e);if(this._first===te.Undefined)this._first=i,this._last=i;else if(n){const s=this._last;this._last=i,i.prev=s,s.next=i}else{const s=this._first;this._first=i,i.next=s,s.prev=i}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(i))}}shift(){if(this._first!==te.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==te.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==te.Undefined&&e.next!==te.Undefined){const n=e.prev;n.next=e.next,e.next.prev=n}else e.prev===te.Undefined&&e.next===te.Undefined?(this._first=te.Undefined,this._last=te.Undefined):e.next===te.Undefined?(this._last=this._last.prev,this._last.next=te.Undefined):e.prev===te.Undefined&&(this._first=this._first.next,this._first.prev=te.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==te.Undefined;)yield e.element,e=e.next}}const bo=globalThis.performance.now.bind(globalThis.performance);class Gt{static create(e){return new Gt(e)}constructor(e){this._now=e===!1?Date.now:bo,this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}}var Cn;(function(t){t.None=()=>Xe.None;function e(R,L,k){return m(R,()=>{},0,void 0,L??!0,void 0,k)}t.defer=e;function n(R){return(L,k=null,E)=>{let M=!1,U;return U=R(F=>{if(!M)return U?U.dispose():M=!0,L.call(k,F)},null,E),M&&U.dispose(),U}}t.once=n;function i(R,L){return t.once(t.filter(R,L))}t.onceIf=i;function r(R,L,k){return c((E,M=null,U)=>R(F=>E.call(M,L(F)),null,U),k)}t.map=r;function s(R,L,k){return c((E,M=null,U)=>R(F=>{L(F),E.call(M,F)},null,U),k)}t.forEach=s;function a(R,L,k){return c((E,M=null,U)=>R(F=>L(F)&&E.call(M,F),null,U),k)}t.filter=a;function l(R){return R}t.signal=l;function o(...R){return(L,k=null,E)=>{const M=fo(...R.map(U=>U(F=>L.call(k,F))));return d(M,E)}}t.any=o;function u(R,L,k,E){let M=k;return r(R,U=>(M=L(M,U),M),E)}t.reduce=u;function c(R,L){let k;const E={onWillAddFirstListener(){k=R(M.fire,M)},onDidRemoveLastListener(){k?.dispose()}},M=new Se(E);return L?.add(M),M.event}function d(R,L){return L instanceof Array?L.push(R):L&&L.add(R),R}function m(R,L,k=100,E=!1,M=!1,U,F){let P,B,X,Y=0,le;const be={leakWarningThreshold:U,onWillAddFirstListener(){P=R(ah=>{Y++,B=L(B,ah),E&&!X&&(xt.fire(B),B=void 0),le=()=>{const oh=B;B=void 0,X=void 0,(!E||Y>1)&&xt.fire(oh),Y=0},typeof k=="number"?(X&&clearTimeout(X),X=setTimeout(le,k)):X===void 0&&(X=null,queueMicrotask(le))})},onWillRemoveListener(){M&&Y>0&&le?.()},onDidRemoveLastListener(){le=void 0,P.dispose()}},xt=new Se(be);return F?.add(xt),xt.event}t.debounce=m;function f(R,L=0,k,E){return t.debounce(R,(M,U)=>M?(M.push(U),M):[U],L,void 0,k??!0,void 0,E)}t.accumulate=f;function w(R,L,k=100,E=!0,M=!0,U,F){let P,B,X,Y=0;const le={leakWarningThreshold:U,onWillAddFirstListener(){P=R(xt=>{Y++,B=L(B,xt),X===void 0&&(E&&(be.fire(B),B=void 0,Y=0),typeof k=="number"?X=setTimeout(()=>{M&&Y>0&&be.fire(B),B=void 0,X=void 0,Y=0},k):(X=0,queueMicrotask(()=>{M&&Y>0&&be.fire(B),B=void 0,X=void 0,Y=0})))})},onDidRemoveLastListener(){P.dispose()}},be=new Se(le);return F?.add(be),be.event}t.throttle=w;function p(R,L=(E,M)=>E===M,k){let E=!0,M;return a(R,U=>{const F=E||!L(U,M);return E=!1,M=U,F},k)}t.latch=p;function T(R,L,k){return[t.filter(R,L,k),t.filter(R,E=>!L(E),k)]}t.split=T;function y(R,L=!1,k=[],E){let M=k.slice(),U=R(B=>{M?M.push(B):P.fire(B)});E&&E.add(U);const F=()=>{M?.forEach(B=>P.fire(B)),M=null},P=new Se({onWillAddFirstListener(){U||(U=R(B=>P.fire(B)),E&&E.add(U))},onDidAddFirstListener(){M&&(L?setTimeout(F):F())},onDidRemoveLastListener(){U&&U.dispose(),U=null}});return E&&E.add(P),P.event}t.buffer=y;function v(R,L){return(E,M,U)=>{const F=L(new I);return R(function(P){const B=F.evaluate(P);B!==S&&E.call(M,B)},void 0,U)}}t.chain=v;const S=Symbol("HaltChainable");class I{constructor(){this.steps=[]}map(L){return this.steps.push(L),this}forEach(L){return this.steps.push(k=>(L(k),k)),this}filter(L){return this.steps.push(k=>L(k)?k:S),this}reduce(L,k){let E=k;return this.steps.push(M=>(E=L(E,M),E)),this}latch(L=(k,E)=>k===E){let k=!0,E;return this.steps.push(M=>{const U=k||!L(M,E);return k=!1,E=M,U?M:S}),this}evaluate(L){for(const k of this.steps)if(L=k(L),L===S)break;return L}}function H(R,L,k=E=>E){const E=(...P)=>F.fire(k(...P)),M=()=>R.on(L,E),U=()=>R.removeListener(L,E),F=new Se({onWillAddFirstListener:M,onDidRemoveLastListener:U});return F.event}t.fromNodeEventEmitter=H;function W(R,L,k=E=>E){const E=(...P)=>F.fire(k(...P)),M=()=>R.addEventListener(L,E),U=()=>R.removeEventListener(L,E),F=new Se({onWillAddFirstListener:M,onDidRemoveLastListener:U});return F.event}t.fromDOMEventEmitter=W;function b(R,L){let k,E;const M=new Promise(U=>{E=n(R)(U),Nn(E,L),k=()=>{Wi(E,L)}});return M.cancel=k,L&&M.finally(()=>Wi(E,L)),M}t.toPromise=b;function g(R,L){return R(k=>L.fire(k))}t.forward=g;function _(R,L,k){return L(k),R(E=>L(E))}t.runAndSubscribe=_;class N{constructor(L,k){this._observable=L,this._counter=0,this._hasChanged=!1;const E={onWillAddFirstListener:()=>{L.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{L.removeObserver(this)}};this.emitter=new Se(E),k&&k.add(this.emitter)}beginUpdate(L){this._counter++}handlePossibleChange(L){}handleChange(L,k){this._hasChanged=!0}endUpdate(L){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function A(R,L){return new N(R,L).emitter.event}t.fromObservable=A;function x(R){return(L,k,E)=>{let M=0,U=!1;const F={beginUpdate(){M++},endUpdate(){M--,M===0&&(R.reportChanges(),U&&(U=!1,L.call(k)))},handlePossibleChange(){},handleChange(){U=!0}};R.addObserver(F),R.reportChanges();const P={dispose(){R.removeObserver(F)}};return Nn(P,E),P}}t.fromObservableLight=x})(Cn||(Cn={}));const _t=class _t{constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${_t._idPool++}`,_t.all.add(this)}start(e){this._stopWatch=new Gt,this.listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}};_t.all=new Set,_t._idPool=0;let En=_t,wo=-1;const yn=class yn{constructor(e,n,i=(yn._idPool++).toString(16).padStart(3,"0")){this._errorHandler=e,this.threshold=n,this.name=i,this._warnCountdown=0}dispose(){this._stacks?.clear()}check(e,n){const i=this.threshold;if(i<=0||n<i)return;this._stacks||(this._stacks=new Map);const r=this._stacks.get(e.value)||0;if(this._stacks.set(e.value,r+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=i*.5;const[s,a]=this.getMostFrequentStack(),l=`[${this.name}] potential listener LEAK detected, having ${n} listeners already. MOST frequent listener (${a}):`;console.warn(l),console.warn(s);const o=new _o(l,s);this._errorHandler(o)}return()=>{const s=this._stacks.get(e.value)||0;this._stacks.set(e.value,s-1)}}getMostFrequentStack(){if(!this._stacks)return;let e,n=0;for(const[i,r]of this._stacks)(!e||n<r)&&(e=[i,r],n=r);return e}};yn._idPool=1;let Rn=yn;class Dn{static create(){const e=new Error;return new Dn(e.stack??"")}constructor(e){this.value=e}print(){console.warn(this.value.split(`
5
+ `+e.stack):e},0)}}emit(e){this.listeners.forEach(n=>{n(e)})}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}}const oo=new ao;function Ot(t){lo(t)||oo.onUnexpectedError(t)}function An(t){if(t instanceof Error){const{name:e,message:n,cause:i}=t,r=t.stacktrace||t.stack;return{$isError:!0,name:e,message:n,stack:r,noTelemetry:nt.isErrorNoTelemetry(t),cause:i?An(i):void 0,code:t.code}}return t}const Ln="Canceled";function lo(t){return t instanceof Hi?!0:t instanceof Error&&t.name===Ln&&t.message===Ln}class Hi extends Error{constructor(){super(Ln),this.name=this.message}}class nt extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof nt)return e;const n=new nt;return n.message=e.message,n.stack=e.stack,n}static isErrorNoTelemetry(e){return e.name==="CodeExpectedError"}}class ue extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,ue.prototype)}}function uo(t,e="Unreachable"){throw new Error(e)}function co(t,e="unexpected state"){if(!t)throw typeof e=="string"?new ue(`Assertion Failed: ${e}`):e}function Vt(t){if(!t()){debugger;t(),Ot(new ue("Assertion Failed"))}}function Ui(t,e){let n=0;for(;n<t.length-1;){const i=t[n],r=t[n+1];if(!e(i,r))return!1;n++}return!0}function ho(t){return typeof t=="string"}function mo(t){return!!t&&typeof t[Symbol.iterator]=="function"}var jt;(function(t){function e(b){return!!b&&typeof b=="object"&&typeof b[Symbol.iterator]=="function"}t.is=e;const n=Object.freeze([]);function i(){return n}t.empty=i;function*r(b){yield b}t.single=r;function s(b){return e(b)?b:r(b)}t.wrap=s;function a(b){return b??n}t.from=a;function*l(b){for(let g=b.length-1;g>=0;g--)yield b[g]}t.reverse=l;function o(b){return!b||b[Symbol.iterator]().next().done===!0}t.isEmpty=o;function u(b){return b[Symbol.iterator]().next().value}t.first=u;function h(b,g){let _=0;for(const N of b)if(g(N,_++))return!0;return!1}t.some=h;function d(b,g){let _=0;for(const N of b)if(!g(N,_++))return!1;return!0}t.every=d;function m(b,g){for(const _ of b)if(g(_))return _}t.find=m;function*f(b,g){for(const _ of b)g(_)&&(yield _)}t.filter=f;function*w(b,g){let _=0;for(const N of b)yield g(N,_++)}t.map=w;function*p(b,g){let _=0;for(const N of b)yield*g(N,_++)}t.flatMap=p;function*T(...b){for(const g of b)mo(g)?yield*g:yield g}t.concat=T;function y(b,g,_){let N=_;for(const A of b)N=g(N,A);return N}t.reduce=y;function v(b){let g=0;for(const _ of b)g++;return g}t.length=v;function*S(b,g,_=b.length){for(g<-b.length&&(g=0),g<0&&(g+=b.length),_<0?_+=b.length:_>b.length&&(_=b.length);g<_;g++)yield b[g]}t.slice=S;function I(b,g=Number.POSITIVE_INFINITY){const _=[];if(g===0)return[_,b];const N=b[Symbol.iterator]();for(let A=0;A<g;A++){const x=N.next();if(x.done)return[_,t.empty()];_.push(x.value)}return[_,{[Symbol.iterator](){return N}}]}t.consume=I;async function H(b){const g=[];for await(const _ of b)g.push(_);return g}t.asyncToArray=H;async function W(b){let g=[];for await(const _ of b)g=g.concat(_);return g}t.asyncToArrayFlat=W})(jt||(jt={}));function lh(t,e){}function Pi(t){if(jt.is(t)){const e=[];for(const n of t)if(n)try{n.dispose()}catch(i){e.push(i)}if(e.length===1)throw e[0];if(e.length>1)throw new AggregateError(e,"Encountered errors while disposing of store");return Array.isArray(t)?[]:t}else if(t)return t.dispose(),t}function fo(...t){return $t(()=>Pi(t))}class po{constructor(e){this._isDisposed=!1,this._fn=e}dispose(){if(!this._isDisposed){if(!this._fn)throw new Error("Unbound disposable context: Need to use an arrow function to preserve the value of this");this._isDisposed=!0,this._fn()}}}function $t(t){return new po(t)}const vn=class vn{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{Pi(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e||e===Xe.None)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?vn.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}delete(e){if(e){if(e===this)throw new Error("Cannot dispose a disposable on itself!");this._toDispose.delete(e),e.dispose()}}};vn.DISABLE_DISPOSED_WARNING=!1;let kt=vn;const Ii=class Ii{constructor(){this._store=new kt,this._store}dispose(){this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}};Ii.None=Object.freeze({dispose(){}});let Xe=Ii,te=(qe=class{constructor(e){this.element=e,this.next=qe.Undefined,this.prev=qe.Undefined}},qe.Undefined=new qe(void 0),qe);class go{constructor(){this._first=te.Undefined,this._last=te.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===te.Undefined}clear(){let e=this._first;for(;e!==te.Undefined;){const n=e.next;e.prev=te.Undefined,e.next=te.Undefined,e=n}this._first=te.Undefined,this._last=te.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,n){const i=new te(e);if(this._first===te.Undefined)this._first=i,this._last=i;else if(n){const s=this._last;this._last=i,i.prev=s,s.next=i}else{const s=this._first;this._first=i,i.next=s,s.prev=i}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(i))}}shift(){if(this._first!==te.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==te.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==te.Undefined&&e.next!==te.Undefined){const n=e.prev;n.next=e.next,e.next.prev=n}else e.prev===te.Undefined&&e.next===te.Undefined?(this._first=te.Undefined,this._last=te.Undefined):e.next===te.Undefined?(this._last=this._last.prev,this._last.next=te.Undefined):e.prev===te.Undefined&&(this._first=this._first.next,this._first.prev=te.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==te.Undefined;)yield e.element,e=e.next}}const bo=globalThis.performance.now.bind(globalThis.performance);class Gt{static create(e){return new Gt(e)}constructor(e){this._now=e===!1?Date.now:bo,this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}}var Cn;(function(t){t.None=()=>Xe.None;function e(R,L,k){return m(R,()=>{},0,void 0,L??!0,void 0,k)}t.defer=e;function n(R){return(L,k=null,E)=>{let M=!1,U;return U=R(F=>{if(!M)return U?U.dispose():M=!0,L.call(k,F)},null,E),M&&U.dispose(),U}}t.once=n;function i(R,L){return t.once(t.filter(R,L))}t.onceIf=i;function r(R,L,k){return h((E,M=null,U)=>R(F=>E.call(M,L(F)),null,U),k)}t.map=r;function s(R,L,k){return h((E,M=null,U)=>R(F=>{L(F),E.call(M,F)},null,U),k)}t.forEach=s;function a(R,L,k){return h((E,M=null,U)=>R(F=>L(F)&&E.call(M,F),null,U),k)}t.filter=a;function l(R){return R}t.signal=l;function o(...R){return(L,k=null,E)=>{const M=fo(...R.map(U=>U(F=>L.call(k,F))));return d(M,E)}}t.any=o;function u(R,L,k,E){let M=k;return r(R,U=>(M=L(M,U),M),E)}t.reduce=u;function h(R,L){let k;const E={onWillAddFirstListener(){k=R(M.fire,M)},onDidRemoveLastListener(){k?.dispose()}},M=new Se(E);return L?.add(M),M.event}function d(R,L){return L instanceof Array?L.push(R):L&&L.add(R),R}function m(R,L,k=100,E=!1,M=!1,U,F){let P,B,X,Y=0,le;const be={leakWarningThreshold:U,onWillAddFirstListener(){P=R(ah=>{Y++,B=L(B,ah),E&&!X&&(xt.fire(B),B=void 0),le=()=>{const oh=B;B=void 0,X=void 0,(!E||Y>1)&&xt.fire(oh),Y=0},typeof k=="number"?(X&&clearTimeout(X),X=setTimeout(le,k)):X===void 0&&(X=null,queueMicrotask(le))})},onWillRemoveListener(){M&&Y>0&&le?.()},onDidRemoveLastListener(){le=void 0,P.dispose()}},xt=new Se(be);return F?.add(xt),xt.event}t.debounce=m;function f(R,L=0,k,E){return t.debounce(R,(M,U)=>M?(M.push(U),M):[U],L,void 0,k??!0,void 0,E)}t.accumulate=f;function w(R,L,k=100,E=!0,M=!0,U,F){let P,B,X,Y=0;const le={leakWarningThreshold:U,onWillAddFirstListener(){P=R(xt=>{Y++,B=L(B,xt),X===void 0&&(E&&(be.fire(B),B=void 0,Y=0),typeof k=="number"?X=setTimeout(()=>{M&&Y>0&&be.fire(B),B=void 0,X=void 0,Y=0},k):(X=0,queueMicrotask(()=>{M&&Y>0&&be.fire(B),B=void 0,X=void 0,Y=0})))})},onDidRemoveLastListener(){P.dispose()}},be=new Se(le);return F?.add(be),be.event}t.throttle=w;function p(R,L=(E,M)=>E===M,k){let E=!0,M;return a(R,U=>{const F=E||!L(U,M);return E=!1,M=U,F},k)}t.latch=p;function T(R,L,k){return[t.filter(R,L,k),t.filter(R,E=>!L(E),k)]}t.split=T;function y(R,L=!1,k=[],E){let M=k.slice(),U=R(B=>{M?M.push(B):P.fire(B)});E&&E.add(U);const F=()=>{M?.forEach(B=>P.fire(B)),M=null},P=new Se({onWillAddFirstListener(){U||(U=R(B=>P.fire(B)),E&&E.add(U))},onDidAddFirstListener(){M&&(L?setTimeout(F):F())},onDidRemoveLastListener(){U&&U.dispose(),U=null}});return E&&E.add(P),P.event}t.buffer=y;function v(R,L){return(E,M,U)=>{const F=L(new I);return R(function(P){const B=F.evaluate(P);B!==S&&E.call(M,B)},void 0,U)}}t.chain=v;const S=Symbol("HaltChainable");class I{constructor(){this.steps=[]}map(L){return this.steps.push(L),this}forEach(L){return this.steps.push(k=>(L(k),k)),this}filter(L){return this.steps.push(k=>L(k)?k:S),this}reduce(L,k){let E=k;return this.steps.push(M=>(E=L(E,M),E)),this}latch(L=(k,E)=>k===E){let k=!0,E;return this.steps.push(M=>{const U=k||!L(M,E);return k=!1,E=M,U?M:S}),this}evaluate(L){for(const k of this.steps)if(L=k(L),L===S)break;return L}}function H(R,L,k=E=>E){const E=(...P)=>F.fire(k(...P)),M=()=>R.on(L,E),U=()=>R.removeListener(L,E),F=new Se({onWillAddFirstListener:M,onDidRemoveLastListener:U});return F.event}t.fromNodeEventEmitter=H;function W(R,L,k=E=>E){const E=(...P)=>F.fire(k(...P)),M=()=>R.addEventListener(L,E),U=()=>R.removeEventListener(L,E),F=new Se({onWillAddFirstListener:M,onDidRemoveLastListener:U});return F.event}t.fromDOMEventEmitter=W;function b(R,L){let k,E;const M=new Promise(U=>{E=n(R)(U),Nn(E,L),k=()=>{Wi(E,L)}});return M.cancel=k,L&&M.finally(()=>Wi(E,L)),M}t.toPromise=b;function g(R,L){return R(k=>L.fire(k))}t.forward=g;function _(R,L,k){return L(k),R(E=>L(E))}t.runAndSubscribe=_;class N{constructor(L,k){this._observable=L,this._counter=0,this._hasChanged=!1;const E={onWillAddFirstListener:()=>{L.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{L.removeObserver(this)}};this.emitter=new Se(E),k&&k.add(this.emitter)}beginUpdate(L){this._counter++}handlePossibleChange(L){}handleChange(L,k){this._hasChanged=!0}endUpdate(L){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function A(R,L){return new N(R,L).emitter.event}t.fromObservable=A;function x(R){return(L,k,E)=>{let M=0,U=!1;const F={beginUpdate(){M++},endUpdate(){M--,M===0&&(R.reportChanges(),U&&(U=!1,L.call(k)))},handlePossibleChange(){},handleChange(){U=!0}};R.addObserver(F),R.reportChanges();const P={dispose(){R.removeObserver(F)}};return Nn(P,E),P}}t.fromObservableLight=x})(Cn||(Cn={}));const _t=class _t{constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${_t._idPool++}`,_t.all.add(this)}start(e){this._stopWatch=new Gt,this.listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}};_t.all=new Set,_t._idPool=0;let En=_t,wo=-1;const yn=class yn{constructor(e,n,i=(yn._idPool++).toString(16).padStart(3,"0")){this._errorHandler=e,this.threshold=n,this.name=i,this._warnCountdown=0}dispose(){this._stacks?.clear()}check(e,n){const i=this.threshold;if(i<=0||n<i)return;this._stacks||(this._stacks=new Map);const r=this._stacks.get(e.value)||0;if(this._stacks.set(e.value,r+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=i*.5;const[s,a]=this.getMostFrequentStack(),l=`[${this.name}] potential listener LEAK detected, having ${n} listeners already. MOST frequent listener (${a}):`;console.warn(l),console.warn(s);const o=new _o(l,s);this._errorHandler(o)}return()=>{const s=this._stacks.get(e.value)||0;this._stacks.set(e.value,s-1)}}getMostFrequentStack(){if(!this._stacks)return;let e,n=0;for(const[i,r]of this._stacks)(!e||n<r)&&(e=[i,r],n=r);return e}};yn._idPool=1;let Rn=yn;class Dn{static create(){const e=new Error;return new Dn(e.stack??"")}constructor(e){this.value=e}print(){console.warn(this.value.split(`
6
6
  `).slice(2).join(`
7
- `))}}class _o extends Error{constructor(e,n){super(e),this.name="ListenerLeakError",this.stack=n}}class vo extends Error{constructor(e,n){super(e),this.name="ListenerRefusalError",this.stack=n}}class Mn{constructor(e){this.value=e}}const yo=2;class Se{constructor(e){this._size=0,this._options=e,this._leakageMon=this._options?.leakWarningThreshold?new Rn(e?.onListenerError??Ot,this._options?.leakWarningThreshold??wo):void 0,this._perfMon=this._options?._profName?new En(this._options._profName):void 0,this._deliveryQueue=this._options?.deliveryQueue}dispose(){this._disposed||(this._disposed=!0,this._deliveryQueue?.current===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),this._options?.onDidRemoveLastListener?.(),this._leakageMon?.dispose())}get event(){return this._event??=(e,n,i)=>{if(this._leakageMon&&this._size>this._leakageMon.threshold**2){const l=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(l);const o=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],u=new vo(`${l}. HINT: Stack shows most frequent listener (${o[1]}-times)`,o[0]);return(this._options?.onListenerError||Ot)(u),Xe.None}if(this._disposed)return Xe.None;n&&(e=e.bind(n));const r=new Mn(e);let s;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(r.stack=Dn.create(),s=this._leakageMon.check(r.stack,this._size+1)),this._listeners?this._listeners instanceof Mn?(this._deliveryQueue??=new To,this._listeners=[this._listeners,r]):this._listeners.push(r):(this._options?.onWillAddFirstListener?.(this),this._listeners=r,this._options?.onDidAddFirstListener?.(this)),this._options?.onDidAddListener?.(this),this._size++;const a=$t(()=>{s?.(),this._removeListener(r)});return Nn(a,i),a},this._event}_removeListener(e){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(this._size===1){this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),this._size=0;return}const n=this._listeners,i=n.indexOf(e);if(i===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,n[i]=void 0;const r=this._deliveryQueue.current===this;if(this._size*yo<=n.length){let s=0;for(let a=0;a<n.length;a++)n[a]?n[s++]=n[a]:r&&s<this._deliveryQueue.end&&(this._deliveryQueue.end--,s<this._deliveryQueue.i&&this._deliveryQueue.i--);n.length=s}}_deliver(e,n){if(!e)return;const i=this._options?.onListenerError||Ot;if(!i){e.value(n);return}try{e.value(n)}catch(r){i(r)}}_deliverQueue(e){const n=e.current._listeners;for(;e.i<e.end;)this._deliver(n[e.i++],e.value);e.reset()}fire(e){if(this._deliveryQueue?.current&&(this._deliverQueue(this._deliveryQueue),this._perfMon?.stop()),this._perfMon?.start(this._size),this._listeners)if(this._listeners instanceof Mn)this._deliver(this._listeners,e);else{const n=this._deliveryQueue;n.enqueue(this,e,this._listeners.length),this._deliverQueue(n)}this._perfMon?.stop()}hasListeners(){return this._size>0}}class To{constructor(){this.i=-1,this.end=0}enqueue(e,n,i){this.i=0,this.end=i,this.current=e,this.value=n}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}function Nn(t,e){e instanceof kt?e.add(t):Array.isArray(e)&&e.push(t)}function Wi(t,e){if(e instanceof kt)e.delete(t);else if(Array.isArray(e)){const n=e.indexOf(t);n!==-1&&e.splice(n,1)}t.dispose()}function xo(){return globalThis._VSCODE_NLS_MESSAGES}function Fi(){return globalThis._VSCODE_NLS_LANGUAGE}const ko=Fi()==="pseudo"||typeof document<"u"&&document.location&&typeof document.location.hash=="string"&&document.location.hash.indexOf("pseudo=true")>=0;function Bi(t,e){let n;return e.length===0?n=t:n=t.replace(/\{(\d+)\}/g,(i,r)=>{const s=r[0],a=e[s];let l=i;return typeof a=="string"?l=a:(typeof a=="number"||typeof a=="boolean"||a===void 0||a===null)&&(l=String(a)),l}),ko&&(n="["+n.replace(/[aouei]/g,"$&$&")+"]"),n}function O(t,e,...n){return Bi(typeof t=="number"?So(t,e):e,n)}function So(t,e){const n=xo()?.[t];if(typeof n!="string"){if(typeof e=="string")return e;throw new Error(`!!! NLS MISSING: ${t} !!!`)}return n}const it="en";let In=!1,zn=!1,Hn=!1,Xt,Un=it,qi=it,Ao,Ie;const Je=globalThis;let fe;typeof Je.vscode<"u"&&typeof Je.vscode.process<"u"?fe=Je.vscode.process:typeof process<"u"&&typeof process?.versions?.node=="string"&&(fe=process);const Lo=typeof fe?.versions?.electron=="string"&&fe?.type==="renderer";if(typeof fe=="object"){In=fe.platform==="win32",zn=fe.platform==="darwin",Hn=fe.platform==="linux",Hn&&fe.env.SNAP&&fe.env.SNAP_REVISION,fe.env.CI||fe.env.BUILD_ARTIFACTSTAGINGDIRECTORY||fe.env.GITHUB_WORKSPACE,Xt=it,Un=it;const t=fe.env.VSCODE_NLS_CONFIG;if(t)try{const e=JSON.parse(t);Xt=e.userLocale,qi=e.osLocale,Un=e.resolvedLanguage||it,Ao=e.languagePack?.translationsConfigFile}catch{}}else typeof navigator=="object"&&!Lo?(Ie=navigator.userAgent,In=Ie.indexOf("Windows")>=0,zn=Ie.indexOf("Macintosh")>=0,(Ie.indexOf("Macintosh")>=0||Ie.indexOf("iPad")>=0||Ie.indexOf("iPhone")>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Hn=Ie.indexOf("Linux")>=0,Ie?.indexOf("Mobi")>=0,Un=Fi()||it,Xt=navigator.language.toLowerCase(),qi=Xt):console.error("Unable to resolve platform.");const St=In,Co=zn,Re=Ie,Eo=typeof Je.postMessage=="function"&&!Je.importScripts;(()=>{if(Eo){const t=[];Je.addEventListener("message",n=>{if(n.data&&n.data.vscodeScheduleAsyncWork)for(let i=0,r=t.length;i<r;i++){const s=t[i];if(s.id===n.data.vscodeScheduleAsyncWork){t.splice(i,1),s.callback();return}}});let e=0;return n=>{const i=++e;t.push({id:i,callback:n}),Je.postMessage({vscodeScheduleAsyncWork:i},"*")}}return t=>setTimeout(t)})();const Ro=!!(Re&&Re.indexOf("Chrome")>=0);Re&&Re.indexOf("Firefox")>=0,!Ro&&Re&&Re.indexOf("Safari")>=0,Re&&Re.indexOf("Edg/")>=0,Re&&Re.indexOf("Android")>=0;function Do(t){return t}class Mo{constructor(e,n){this.lastCache=void 0,this.lastArgKey=void 0,typeof e=="function"?(this._fn=e,this._computeKey=Do):(this._fn=n,this._computeKey=e.getCacheKey)}get(e){const n=this._computeKey(e);return this.lastArgKey!==n&&(this.lastArgKey=n,this.lastCache=this._fn(e)),this.lastCache}}var Qe;(function(t){t[t.Uninitialized=0]="Uninitialized",t[t.Running=1]="Running",t[t.Completed=2]="Completed"})(Qe||(Qe={}));class Pn{constructor(e){this.executor=e,this._state=Qe.Uninitialized}get value(){if(this._state===Qe.Uninitialized){this._state=Qe.Running;try{this._value=this.executor()}catch(e){this._error=e}finally{this._state=Qe.Completed}}else if(this._state===Qe.Running)throw new Error("Cannot read the value of a lazy that is being initialized");if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}function No(t){return t.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function Io(t){return t.source==="^"||t.source==="^$"||t.source==="$"||t.source==="^\\s*$"?!1:!!(t.exec("")&&t.lastIndex===0)}function zo(t){return t.split(/\r\n|\r|\n/)}function Ho(t){for(let e=0,n=t.length;e<n;e++){const i=t.charCodeAt(e);if(i!==32&&i!==9)return e}return-1}function Uo(t,e=t.length-1){for(let n=e;n>=0;n--){const i=t.charCodeAt(n);if(i!==32&&i!==9)return n}return-1}function Oi(t){return t>=65&&t<=90}function Po(t,e){const n=Math.min(t.length,e.length);let i;for(i=0;i<n;i++)if(t.charCodeAt(i)!==e.charCodeAt(i))return i;return n}function Wo(t,e){const n=Math.min(t.length,e.length);let i;const r=t.length-1,s=e.length-1;for(i=0;i<n;i++)if(t.charCodeAt(r-i)!==e.charCodeAt(s-i))return i;return n}function Wn(t){return 55296<=t&&t<=56319}function Fo(t){return 56320<=t&&t<=57343}function Bo(t,e){return(t-55296<<10)+(e-56320)+65536}function qo(t,e,n){const i=t.charCodeAt(n);if(Wn(i)&&n+1<e){const r=t.charCodeAt(n+1);if(Fo(r))return Bo(i,r)}return i}const Oo=/^[\t\n\r\x20-\x7E]*$/;function Vo(t){return Oo.test(t)}const Ne=class Ne{static getInstance(e){return Ne.cache.get(Array.from(e).join(","))}static getLocales(){return Ne._locales.value}constructor(e){this.confusableDictionary=e}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}};Ne.ambiguousCharacterData=new Pn(()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,1523,96,8242,96,1370,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,118002,50,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,118003,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,118004,52,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,118005,53,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,118006,54,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,118007,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,118008,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,118009,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,117974,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,117975,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71913,67,71922,67,65315,67,8557,67,8450,67,8493,67,117976,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,117977,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,117978,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,117979,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,117980,71,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,117981,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,117983,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,117984,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,118001,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,117982,108,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,117985,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,117986,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,117987,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,118000,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,117988,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,117989,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,117990,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,117991,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,117992,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,117993,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,117994,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,117995,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71910,87,71919,87,117996,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,117997,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,117998,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,71909,90,66293,90,65338,90,8484,90,8488,90,117999,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65283,35,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"cs":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"es":[8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"fr":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"it":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"ja":[8211,45,8218,44,65281,33,8216,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65292,44,65297,49,65307,59],"ko":[8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"pt-BR":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"ru":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"zh-hans":[160,32,65374,126,8218,44,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65297,49],"zh-hant":[8211,45,65374,126,8218,44,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89]}')),Ne.cache=new Mo(e=>{const n=e.split(",");function i(d){const m=new Map;for(let f=0;f<d.length;f+=2)m.set(d[f],d[f+1]);return m}function r(d,m){const f=new Map(d);for(const[w,p]of m)f.set(w,p);return f}function s(d,m){if(!d)return m;const f=new Map;for(const[w,p]of d)m.has(w)&&f.set(w,p);return f}const a=Ne.ambiguousCharacterData.value;let l=n.filter(d=>!d.startsWith("_")&&Object.hasOwn(a,d));l.length===0&&(l=["_default"]);let o;for(const d of l){const m=i(a[d]);o=s(o,m)}const u=i(a._common),c=r(u,o);return new Ne(c)}),Ne._locales=new Pn(()=>Object.keys(Ne.ambiguousCharacterData.value).filter(e=>!e.startsWith("_")));let At=Ne;const vt=class vt{static getRawData(){return JSON.parse('{"_common":[11,12,13,127,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999],"cs":[173,8203,12288],"de":[173,8203,12288],"es":[8203,12288],"fr":[173,8203,12288],"it":[160,173,12288],"ja":[173],"ko":[173,12288],"pl":[173,8203,12288],"pt-BR":[173,8203,12288],"qps-ploc":[160,173,8203,12288],"ru":[173,12288],"tr":[160,173,8203,12288],"zh-hans":[160,173,8203,12288],"zh-hant":[173,12288]}')}static getData(){return this._data||(this._data=new Set([...Object.values(vt.getRawData())].flat())),this._data}static isInvisibleCharacter(e){return vt.getData().has(e)}static get codePoints(){return vt.getData()}};vt._data=void 0;let Lt=vt;const Fn="default",jo="$initialize";class $o{constructor(e,n,i,r,s){this.vsWorker=e,this.req=n,this.channel=i,this.method=r,this.args=s,this.type=0}}class Vi{constructor(e,n,i,r){this.vsWorker=e,this.seq=n,this.res=i,this.err=r,this.type=1}}class Go{constructor(e,n,i,r,s){this.vsWorker=e,this.req=n,this.channel=i,this.eventName=r,this.arg=s,this.type=2}}class Xo{constructor(e,n,i){this.vsWorker=e,this.req=n,this.event=i,this.type=3}}class Jo{constructor(e,n){this.vsWorker=e,this.req=n,this.type=4}}class Qo{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}async sendMessage(e,n,i){const r=String(++this._lastSentReq);return new Promise((s,a)=>{this._pendingReplies[r]={resolve:s,reject:a},this._send(new $o(this._workerId,r,e,n,i))})}listen(e,n,i){let r=null;const s=new Se({onWillAddFirstListener:()=>{r=String(++this._lastSentReq),this._pendingEmitters.set(r,s),this._send(new Go(this._workerId,r,e,n,i))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(r),this._send(new Jo(this._workerId,r)),r=null}});return s.event}handleMessage(e){!e||!e.vsWorker||this._workerId!==-1&&e.vsWorker!==this._workerId||this._handleMessage(e)}createProxyToRemoteChannel(e,n){const i={get:(r,s)=>(typeof s=="string"&&!r[s]&&($i(s)?r[s]=a=>this.listen(e,s,a):ji(s)?r[s]=this.listen(e,s,void 0):s.charCodeAt(0)===36&&(r[s]=async(...a)=>(await n?.(),this.sendMessage(e,s,a)))),r[s])};return new Proxy(Object.create(null),i)}_handleMessage(e){switch(e.type){case 1:return this._handleReplyMessage(e);case 0:return this._handleRequestMessage(e);case 2:return this._handleSubscribeEventMessage(e);case 3:return this._handleEventMessage(e);case 4:return this._handleUnsubscribeEventMessage(e)}}_handleReplyMessage(e){if(!this._pendingReplies[e.seq]){console.warn("Got reply to unknown seq");return}const n=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let i=e.err;if(e.err.$isError){const r=new Error;r.name=e.err.name,r.message=e.err.message,r.stack=e.err.stack,i=r}n.reject(i);return}n.resolve(e.res)}_handleRequestMessage(e){const n=e.req;this._handler.handleMessage(e.channel,e.method,e.args).then(r=>{this._send(new Vi(this._workerId,n,r,void 0))},r=>{r.detail instanceof Error&&(r.detail=An(r.detail)),this._send(new Vi(this._workerId,n,void 0,An(r)))})}_handleSubscribeEventMessage(e){const n=e.req,i=this._handler.handleEvent(e.channel,e.eventName,e.arg)(r=>{this._send(new Xo(this._workerId,n,r))});this._pendingEvents.set(n,i)}_handleEventMessage(e){const n=this._pendingEmitters.get(e.req);if(n===void 0){console.warn("Got event for unknown req");return}n.fire(e.event)}_handleUnsubscribeEventMessage(e){const n=this._pendingEvents.get(e.req);if(n===void 0){console.warn("Got unsubscribe for unknown req");return}n.dispose(),this._pendingEvents.delete(e.req)}_send(e){const n=[];if(e.type===0)for(let i=0;i<e.args.length;i++){const r=e.args[i];r instanceof ArrayBuffer&&n.push(r)}else e.type===1&&e.res instanceof ArrayBuffer&&n.push(e.res);this._handler.sendMessage(e,n)}}function ji(t){return t[0]==="o"&&t[1]==="n"&&Oi(t.charCodeAt(2))}function $i(t){return/^onDynamic/.test(t)&&Oi(t.charCodeAt(9))}class Yo{constructor(e,n){this._localChannels=new Map,this._remoteChannels=new Map,this._protocol=new Qo({sendMessage:(i,r)=>{e(i,r)},handleMessage:(i,r,s)=>this._handleMessage(i,r,s),handleEvent:(i,r,s)=>this._handleEvent(i,r,s)}),this.requestHandler=n(this)}onmessage(e){this._protocol.handleMessage(e)}_handleMessage(e,n,i){if(e===Fn&&n===jo)return this.initialize(i[0]);const r=e===Fn?this.requestHandler:this._localChannels.get(e);if(!r)return Promise.reject(new Error(`Missing channel ${e} on worker thread`));const s=r[n];if(typeof s!="function")return Promise.reject(new Error(`Missing method ${n} on worker thread channel ${e}`));try{return Promise.resolve(s.apply(r,i))}catch(a){return Promise.reject(a)}}_handleEvent(e,n,i){const r=e===Fn?this.requestHandler:this._localChannels.get(e);if(!r)throw new Error(`Missing channel ${e} on worker thread`);if($i(n)){const s=r[n];if(typeof s!="function")throw new Error(`Missing dynamic event ${n} on request handler.`);const a=s.call(r,i);if(typeof a!="function")throw new Error(`Missing dynamic event ${n} on request handler.`);return a}if(ji(n)){const s=r[n];if(typeof s!="function")throw new Error(`Missing event ${n} on request handler.`);return s}throw new Error(`Malformed event name ${n}`)}getChannel(e){let n=this._remoteChannels.get(e);return n===void 0&&(n=this._protocol.createProxyToRemoteChannel(e),this._remoteChannels.set(e,n)),n}async initialize(e){this._protocol.setWorkerId(e)}}let Gi=!1;function Zo(t){if(Gi)throw new Error("WebWorker already initialized!");Gi=!0;const e=new Yo(n=>globalThis.postMessage(n),n=>t(n));return globalThis.onmessage=n=>{e.onmessage(n.data)},e}class Oe{constructor(e,n,i,r){this.originalStart=e,this.originalLength=n,this.modifiedStart=i,this.modifiedLength=r}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}new Pn(()=>new Uint8Array(256));function Xi(t,e){return(e<<5)-e+t|0}function Ko(t,e){e=Xi(149417,e);for(let n=0,i=t.length;n<i;n++)e=Xi(t.charCodeAt(n),e);return e}class Ji{constructor(e){this.source=e}getElements(){const e=this.source,n=new Int32Array(e.length);for(let i=0,r=e.length;i<r;i++)n[i]=e.charCodeAt(i);return n}}function el(t,e,n){return new Ve(new Ji(t),new Ji(e)).ComputeDiff(n).changes}class rt{static Assert(e,n){if(!e)throw new Error(n)}}class st{static Copy(e,n,i,r,s){for(let a=0;a<s;a++)i[r+a]=e[n+a]}static Copy2(e,n,i,r,s){for(let a=0;a<s;a++)i[r+a]=e[n+a]}}class Qi{constructor(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}MarkNextChange(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new Oe(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,n){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_originalCount++}AddModifiedElement(e,n){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class Ve{constructor(e,n,i=null){this.ContinueProcessingPredicate=i,this._originalSequence=e,this._modifiedSequence=n;const[r,s,a]=Ve._getElements(e),[l,o,u]=Ve._getElements(n);this._hasStrings=a&&u,this._originalStringElements=r,this._originalElementsOrHash=s,this._modifiedStringElements=l,this._modifiedElementsOrHash=o,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&typeof e[0]=="string"}static _getElements(e){const n=e.getElements();if(Ve._isStringArray(n)){const i=new Int32Array(n.length);for(let r=0,s=n.length;r<s;r++)i[r]=Ko(n[r],0);return[n,i,!0]}return n instanceof Int32Array?[[],n,!1]:[[],new Int32Array(n),!1]}ElementsAreEqual(e,n){return this._originalElementsOrHash[e]!==this._modifiedElementsOrHash[n]?!1:this._hasStrings?this._originalStringElements[e]===this._modifiedStringElements[n]:!0}ElementsAreStrictEqual(e,n){if(!this.ElementsAreEqual(e,n))return!1;const i=Ve._getStrictElement(this._originalSequence,e),r=Ve._getStrictElement(this._modifiedSequence,n);return i===r}static _getStrictElement(e,n){return typeof e.getStrictElement=="function"?e.getStrictElement(n):null}OriginalElementsAreEqual(e,n){return this._originalElementsOrHash[e]!==this._originalElementsOrHash[n]?!1:this._hasStrings?this._originalStringElements[e]===this._originalStringElements[n]:!0}ModifiedElementsAreEqual(e,n){return this._modifiedElementsOrHash[e]!==this._modifiedElementsOrHash[n]?!1:this._hasStrings?this._modifiedStringElements[e]===this._modifiedStringElements[n]:!0}ComputeDiff(e){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,e)}_ComputeDiff(e,n,i,r,s){const a=[!1];let l=this.ComputeDiffRecursive(e,n,i,r,a);return s&&(l=this.PrettifyChanges(l)),{quitEarly:a[0],changes:l}}ComputeDiffRecursive(e,n,i,r,s){for(s[0]=!1;e<=n&&i<=r&&this.ElementsAreEqual(e,i);)e++,i++;for(;n>=e&&r>=i&&this.ElementsAreEqual(n,r);)n--,r--;if(e>n||i>r){let d;return i<=r?(rt.Assert(e===n+1,"originalStart should only be one more than originalEnd"),d=[new Oe(e,0,i,r-i+1)]):e<=n?(rt.Assert(i===r+1,"modifiedStart should only be one more than modifiedEnd"),d=[new Oe(e,n-e+1,i,0)]):(rt.Assert(e===n+1,"originalStart should only be one more than originalEnd"),rt.Assert(i===r+1,"modifiedStart should only be one more than modifiedEnd"),d=[]),d}const a=[0],l=[0],o=this.ComputeRecursionPoint(e,n,i,r,a,l,s),u=a[0],c=l[0];if(o!==null)return o;if(!s[0]){const d=this.ComputeDiffRecursive(e,u,i,c,s);let m=[];return s[0]?m=[new Oe(u+1,n-(u+1)+1,c+1,r-(c+1)+1)]:m=this.ComputeDiffRecursive(u+1,n,c+1,r,s),this.ConcatenateChanges(d,m)}return[new Oe(e,n-e+1,i,r-i+1)]}WALKTRACE(e,n,i,r,s,a,l,o,u,c,d,m,f,w,p,T,y,v){let S=null,I=null,H=new Qi,W=n,b=i,g=f[0]-T[0]-r,_=-1073741824,N=this.m_forwardHistory.length-1;do{const A=g+e;A===W||A<b&&u[A-1]<u[A+1]?(d=u[A+1],w=d-g-r,d<_&&H.MarkNextChange(),_=d,H.AddModifiedElement(d+1,w),g=A+1-e):(d=u[A-1]+1,w=d-g-r,d<_&&H.MarkNextChange(),_=d-1,H.AddOriginalElement(d,w+1),g=A-1-e),N>=0&&(u=this.m_forwardHistory[N],e=u[0],W=1,b=u.length-1)}while(--N>=-1);if(S=H.getReverseChanges(),v[0]){let A=f[0]+1,x=T[0]+1;if(S!==null&&S.length>0){const R=S[S.length-1];A=Math.max(A,R.getOriginalEnd()),x=Math.max(x,R.getModifiedEnd())}I=[new Oe(A,m-A+1,x,p-x+1)]}else{H=new Qi,W=a,b=l,g=f[0]-T[0]-o,_=1073741824,N=y?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const A=g+s;A===W||A<b&&c[A-1]>=c[A+1]?(d=c[A+1]-1,w=d-g-o,d>_&&H.MarkNextChange(),_=d+1,H.AddOriginalElement(d+1,w+1),g=A+1-s):(d=c[A-1],w=d-g-o,d>_&&H.MarkNextChange(),_=d,H.AddModifiedElement(d+1,w+1),g=A-1-s),N>=0&&(c=this.m_reverseHistory[N],s=c[0],W=1,b=c.length-1)}while(--N>=-1);I=H.getChanges()}return this.ConcatenateChanges(S,I)}ComputeRecursionPoint(e,n,i,r,s,a,l){let o=0,u=0,c=0,d=0,m=0,f=0;e--,i--,s[0]=0,a[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const w=n-e+(r-i),p=w+1,T=new Int32Array(p),y=new Int32Array(p),v=r-i,S=n-e,I=e-i,H=n-r,b=(S-v)%2===0;T[v]=e,y[S]=n,l[0]=!1;for(let g=1;g<=w/2+1;g++){let _=0,N=0;c=this.ClipDiagonalBound(v-g,g,v,p),d=this.ClipDiagonalBound(v+g,g,v,p);for(let x=c;x<=d;x+=2){x===c||x<d&&T[x-1]<T[x+1]?o=T[x+1]:o=T[x-1]+1,u=o-(x-v)-I;const R=o;for(;o<n&&u<r&&this.ElementsAreEqual(o+1,u+1);)o++,u++;if(T[x]=o,o+u>_+N&&(_=o,N=u),!b&&Math.abs(x-S)<=g-1&&o>=y[x])return s[0]=o,a[0]=u,R<=y[x]&&g<=1448?this.WALKTRACE(v,c,d,I,S,m,f,H,T,y,o,n,s,u,r,a,b,l):null}const A=(_-e+(N-i)-g)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(_,A))return l[0]=!0,s[0]=_,a[0]=N,A>0&&g<=1448?this.WALKTRACE(v,c,d,I,S,m,f,H,T,y,o,n,s,u,r,a,b,l):(e++,i++,[new Oe(e,n-e+1,i,r-i+1)]);m=this.ClipDiagonalBound(S-g,g,S,p),f=this.ClipDiagonalBound(S+g,g,S,p);for(let x=m;x<=f;x+=2){x===m||x<f&&y[x-1]>=y[x+1]?o=y[x+1]-1:o=y[x-1],u=o-(x-S)-H;const R=o;for(;o>e&&u>i&&this.ElementsAreEqual(o,u);)o--,u--;if(y[x]=o,b&&Math.abs(x-v)<=g&&o<=T[x])return s[0]=o,a[0]=u,R>=T[x]&&g<=1448?this.WALKTRACE(v,c,d,I,S,m,f,H,T,y,o,n,s,u,r,a,b,l):null}if(g<=1447){let x=new Int32Array(d-c+2);x[0]=v-c+1,st.Copy2(T,c,x,1,d-c+1),this.m_forwardHistory.push(x),x=new Int32Array(f-m+2),x[0]=S-m+1,st.Copy2(y,m,x,1,f-m+1),this.m_reverseHistory.push(x)}}return this.WALKTRACE(v,c,d,I,S,m,f,H,T,y,o,n,s,u,r,a,b,l)}PrettifyChanges(e){for(let n=0;n<e.length;n++){const i=e[n],r=n<e.length-1?e[n+1].originalStart:this._originalElementsOrHash.length,s=n<e.length-1?e[n+1].modifiedStart:this._modifiedElementsOrHash.length,a=i.originalLength>0,l=i.modifiedLength>0;for(;i.originalStart+i.originalLength<r&&i.modifiedStart+i.modifiedLength<s&&(!a||this.OriginalElementsAreEqual(i.originalStart,i.originalStart+i.originalLength))&&(!l||this.ModifiedElementsAreEqual(i.modifiedStart,i.modifiedStart+i.modifiedLength));){const u=this.ElementsAreStrictEqual(i.originalStart,i.modifiedStart);if(this.ElementsAreStrictEqual(i.originalStart+i.originalLength,i.modifiedStart+i.modifiedLength)&&!u)break;i.originalStart++,i.modifiedStart++}const o=[null];if(n<e.length-1&&this.ChangesOverlap(e[n],e[n+1],o)){e[n]=o[0],e.splice(n+1,1),n--;continue}}for(let n=e.length-1;n>=0;n--){const i=e[n];let r=0,s=0;if(n>0){const d=e[n-1];r=d.originalStart+d.originalLength,s=d.modifiedStart+d.modifiedLength}const a=i.originalLength>0,l=i.modifiedLength>0;let o=0,u=this._boundaryScore(i.originalStart,i.originalLength,i.modifiedStart,i.modifiedLength);for(let d=1;;d++){const m=i.originalStart-d,f=i.modifiedStart-d;if(m<r||f<s||a&&!this.OriginalElementsAreEqual(m,m+i.originalLength)||l&&!this.ModifiedElementsAreEqual(f,f+i.modifiedLength))break;const p=(m===r&&f===s?5:0)+this._boundaryScore(m,i.originalLength,f,i.modifiedLength);p>u&&(u=p,o=d)}i.originalStart-=o,i.modifiedStart-=o;const c=[null];if(n>0&&this.ChangesOverlap(e[n-1],e[n],c)){e[n-1]=c[0],e.splice(n,1),n++;continue}}if(this._hasStrings)for(let n=1,i=e.length;n<i;n++){const r=e[n-1],s=e[n],a=s.originalStart-r.originalStart-r.originalLength,l=r.originalStart,o=s.originalStart+s.originalLength,u=o-l,c=r.modifiedStart,d=s.modifiedStart+s.modifiedLength,m=d-c;if(a<5&&u<20&&m<20){const f=this._findBetterContiguousSequence(l,u,c,m,a);if(f){const[w,p]=f;(w!==r.originalStart+r.originalLength||p!==r.modifiedStart+r.modifiedLength)&&(r.originalLength=w-r.originalStart,r.modifiedLength=p-r.modifiedStart,s.originalStart=w+a,s.modifiedStart=p+a,s.originalLength=o-s.originalStart,s.modifiedLength=d-s.modifiedStart)}}}return e}_findBetterContiguousSequence(e,n,i,r,s){if(n<s||r<s)return null;const a=e+n-s+1,l=i+r-s+1;let o=0,u=0,c=0;for(let d=e;d<a;d++)for(let m=i;m<l;m++){const f=this._contiguousSequenceScore(d,m,s);f>0&&f>o&&(o=f,u=d,c=m)}return o>0?[u,c]:null}_contiguousSequenceScore(e,n,i){let r=0;for(let s=0;s<i;s++){if(!this.ElementsAreEqual(e+s,n+s))return 0;r+=this._originalStringElements[e+s].length}return r}_OriginalIsBoundary(e){return e<=0||e>=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,n){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(n>0){const i=e+n;if(this._OriginalIsBoundary(i-1)||this._OriginalIsBoundary(i))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,n){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(n>0){const i=e+n;if(this._ModifiedIsBoundary(i-1)||this._ModifiedIsBoundary(i))return!0}return!1}_boundaryScore(e,n,i,r){const s=this._OriginalRegionIsBoundary(e,n)?1:0,a=this._ModifiedRegionIsBoundary(i,r)?1:0;return s+a}ConcatenateChanges(e,n){const i=[];if(e.length===0||n.length===0)return n.length>0?n:e;if(this.ChangesOverlap(e[e.length-1],n[0],i)){const r=new Array(e.length+n.length-1);return st.Copy(e,0,r,0,e.length-1),r[e.length-1]=i[0],st.Copy(n,1,r,e.length,n.length-1),r}else{const r=new Array(e.length+n.length);return st.Copy(e,0,r,0,e.length),st.Copy(n,0,r,e.length,n.length),r}}ChangesOverlap(e,n,i){if(rt.Assert(e.originalStart<=n.originalStart,"Left change is not less than or equal to right change"),rt.Assert(e.modifiedStart<=n.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=n.originalStart||e.modifiedStart+e.modifiedLength>=n.modifiedStart){const r=e.originalStart;let s=e.originalLength;const a=e.modifiedStart;let l=e.modifiedLength;return e.originalStart+e.originalLength>=n.originalStart&&(s=n.originalStart+n.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=n.modifiedStart&&(l=n.modifiedStart+n.modifiedLength-e.modifiedStart),i[0]=new Oe(r,s,a,l),!0}else return i[0]=null,!1}ClipDiagonalBound(e,n,i,r){if(e>=0&&e<r)return e;const s=i,a=r-i-1,l=n%2===0;if(e<0){const o=s%2===0;return l===o?0:1}else{const o=a%2===0;return l===o?r-1:r-2}}}let K=class tt{constructor(e,n){this.lineNumber=e,this.column=n}with(e=this.lineNumber,n=this.column){return e===this.lineNumber&&n===this.column?this:new tt(e,n)}delta(e=0,n=0){return this.with(Math.max(1,this.lineNumber+e),Math.max(1,this.column+n))}equals(e){return tt.equals(this,e)}static equals(e,n){return!e&&!n?!0:!!e&&!!n&&e.lineNumber===n.lineNumber&&e.column===n.column}isBefore(e){return tt.isBefore(this,e)}static isBefore(e,n){return e.lineNumber<n.lineNumber?!0:n.lineNumber<e.lineNumber?!1:e.column<n.column}isBeforeOrEqual(e){return tt.isBeforeOrEqual(this,e)}static isBeforeOrEqual(e,n){return e.lineNumber<n.lineNumber?!0:n.lineNumber<e.lineNumber?!1:e.column<=n.column}static compare(e,n){const i=e.lineNumber|0,r=n.lineNumber|0;if(i===r){const s=e.column|0,a=n.column|0;return s-a}return i-r}clone(){return new tt(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(e){return new tt(e.lineNumber,e.column)}static isIPosition(e){return!!e&&typeof e.lineNumber=="number"&&typeof e.column=="number"}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}},j=class re{constructor(e,n,i,r){e>i||e===i&&n>r?(this.startLineNumber=i,this.startColumn=r,this.endLineNumber=e,this.endColumn=n):(this.startLineNumber=e,this.startColumn=n,this.endLineNumber=i,this.endColumn=r)}isEmpty(){return re.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return re.containsPosition(this,e)}static containsPosition(e,n){return!(n.lineNumber<e.startLineNumber||n.lineNumber>e.endLineNumber||n.lineNumber===e.startLineNumber&&n.column<e.startColumn||n.lineNumber===e.endLineNumber&&n.column>e.endColumn)}static strictContainsPosition(e,n){return!(n.lineNumber<e.startLineNumber||n.lineNumber>e.endLineNumber||n.lineNumber===e.startLineNumber&&n.column<=e.startColumn||n.lineNumber===e.endLineNumber&&n.column>=e.endColumn)}containsRange(e){return re.containsRange(this,e)}static containsRange(e,n){return!(n.startLineNumber<e.startLineNumber||n.endLineNumber<e.startLineNumber||n.startLineNumber>e.endLineNumber||n.endLineNumber>e.endLineNumber||n.startLineNumber===e.startLineNumber&&n.startColumn<e.startColumn||n.endLineNumber===e.endLineNumber&&n.endColumn>e.endColumn)}strictContainsRange(e){return re.strictContainsRange(this,e)}static strictContainsRange(e,n){return!(n.startLineNumber<e.startLineNumber||n.endLineNumber<e.startLineNumber||n.startLineNumber>e.endLineNumber||n.endLineNumber>e.endLineNumber||n.startLineNumber===e.startLineNumber&&n.startColumn<=e.startColumn||n.endLineNumber===e.endLineNumber&&n.endColumn>=e.endColumn)}plusRange(e){return re.plusRange(this,e)}static plusRange(e,n){let i,r,s,a;return n.startLineNumber<e.startLineNumber?(i=n.startLineNumber,r=n.startColumn):n.startLineNumber===e.startLineNumber?(i=n.startLineNumber,r=Math.min(n.startColumn,e.startColumn)):(i=e.startLineNumber,r=e.startColumn),n.endLineNumber>e.endLineNumber?(s=n.endLineNumber,a=n.endColumn):n.endLineNumber===e.endLineNumber?(s=n.endLineNumber,a=Math.max(n.endColumn,e.endColumn)):(s=e.endLineNumber,a=e.endColumn),new re(i,r,s,a)}intersectRanges(e){return re.intersectRanges(this,e)}static intersectRanges(e,n){let i=e.startLineNumber,r=e.startColumn,s=e.endLineNumber,a=e.endColumn;const l=n.startLineNumber,o=n.startColumn,u=n.endLineNumber,c=n.endColumn;return i<l?(i=l,r=o):i===l&&(r=Math.max(r,o)),s>u?(s=u,a=c):s===u&&(a=Math.min(a,c)),i>s||i===s&&r>a?null:new re(i,r,s,a)}equalsRange(e){return re.equalsRange(this,e)}static equalsRange(e,n){return!e&&!n?!0:!!e&&!!n&&e.startLineNumber===n.startLineNumber&&e.startColumn===n.startColumn&&e.endLineNumber===n.endLineNumber&&e.endColumn===n.endColumn}getEndPosition(){return re.getEndPosition(this)}static getEndPosition(e){return new K(e.endLineNumber,e.endColumn)}getStartPosition(){return re.getStartPosition(this)}static getStartPosition(e){return new K(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,n){return new re(this.startLineNumber,this.startColumn,e,n)}setStartPosition(e,n){return new re(e,n,this.endLineNumber,this.endColumn)}collapseToStart(){return re.collapseToStart(this)}static collapseToStart(e){return new re(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return re.collapseToEnd(this)}static collapseToEnd(e){return new re(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new re(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}isSingleLine(){return this.startLineNumber===this.endLineNumber}static fromPositions(e,n=e){return new re(e.lineNumber,e.column,n.lineNumber,n.column)}static lift(e){return e?new re(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return!!e&&typeof e.startLineNumber=="number"&&typeof e.startColumn=="number"&&typeof e.endLineNumber=="number"&&typeof e.endColumn=="number"}static areIntersectingOrTouching(e,n){return!(e.endLineNumber<n.startLineNumber||e.endLineNumber===n.startLineNumber&&e.endColumn<n.startColumn||n.endLineNumber<e.startLineNumber||n.endLineNumber===e.startLineNumber&&n.endColumn<e.startColumn)}static areIntersecting(e,n){return!(e.endLineNumber<n.startLineNumber||e.endLineNumber===n.startLineNumber&&e.endColumn<=n.startColumn||n.endLineNumber<e.startLineNumber||n.endLineNumber===e.startLineNumber&&n.endColumn<=e.startColumn)}static areOnlyIntersecting(e,n){return!(e.endLineNumber<n.startLineNumber-1||e.endLineNumber===n.startLineNumber&&e.endColumn<n.startColumn-1||n.endLineNumber<e.startLineNumber-1||n.endLineNumber===e.startLineNumber&&n.endColumn<e.startColumn-1)}static compareRangesUsingStarts(e,n){if(e&&n){const s=e.startLineNumber|0,a=n.startLineNumber|0;if(s===a){const l=e.startColumn|0,o=n.startColumn|0;if(l===o){const u=e.endLineNumber|0,c=n.endLineNumber|0;if(u===c){const d=e.endColumn|0,m=n.endColumn|0;return d-m}return u-c}return l-o}return s-a}return(e?1:0)-(n?1:0)}static compareRangesUsingEnds(e,n){return e.endLineNumber===n.endLineNumber?e.endColumn===n.endColumn?e.startLineNumber===n.startLineNumber?e.startColumn-n.startColumn:e.startLineNumber-n.startLineNumber:e.endColumn-n.endColumn:e.endLineNumber-n.endLineNumber}static spansMultipleLines(e){return e.endLineNumber>e.startLineNumber}toJSON(){return this}};function Yi(t){return t<0?0:t>255?255:t|0}function at(t){return t<0?0:t>4294967295?4294967295:t|0}class Bn{constructor(e){const n=Yi(e);this._defaultValue=n,this._asciiMap=Bn._createAsciiMap(n),this._map=new Map}static _createAsciiMap(e){const n=new Uint8Array(256);return n.fill(e),n}set(e,n){const i=Yi(n);e>=0&&e<256?this._asciiMap[e]=i:this._map.set(e,i)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}class tl{constructor(e,n,i){const r=new Uint8Array(e*n);for(let s=0,a=e*n;s<a;s++)r[s]=i;this._data=r,this.rows=e,this.cols=n}get(e,n){return this._data[e*this.cols+n]}set(e,n,i){this._data[e*this.cols+n]=i}}class nl{constructor(e){let n=0,i=0;for(let s=0,a=e.length;s<a;s++){const[l,o,u]=e[s];o>n&&(n=o),l>i&&(i=l),u>i&&(i=u)}n++,i++;const r=new tl(i,n,0);for(let s=0,a=e.length;s<a;s++){const[l,o,u]=e[s];r.set(l,o,u)}this._states=r,this._maxCharCode=n}nextState(e,n){return n<0||n>=this._maxCharCode?0:this._states.get(e,n)}}let qn=null;function il(){return qn===null&&(qn=new nl([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),qn}let Ct=null;function rl(){if(Ct===null){Ct=new Bn(0);const t=` <>'"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…|`;for(let n=0;n<t.length;n++)Ct.set(t.charCodeAt(n),1);const e=".,;:";for(let n=0;n<e.length;n++)Ct.set(e.charCodeAt(n),2)}return Ct}class Jt{static _createLink(e,n,i,r,s){let a=s-1;do{const l=n.charCodeAt(a);if(e.get(l)!==2)break;a--}while(a>r);if(r>0){const l=n.charCodeAt(r-1),o=n.charCodeAt(a);(l===40&&o===41||l===91&&o===93||l===123&&o===125)&&a--}return{range:{startLineNumber:i,startColumn:r+1,endLineNumber:i,endColumn:a+2},url:n.substring(r,a+1)}}static computeLinks(e,n=il()){const i=rl(),r=[];for(let s=1,a=e.getLineCount();s<=a;s++){const l=e.getLineContent(s),o=l.length;let u=0,c=0,d=0,m=1,f=!1,w=!1,p=!1,T=!1;for(;u<o;){let y=!1;const v=l.charCodeAt(u);if(m===13){let S;switch(v){case 40:f=!0,S=0;break;case 41:S=f?0:1;break;case 91:p=!0,w=!0,S=0;break;case 93:p=!1,S=w?0:1;break;case 123:T=!0,S=0;break;case 125:S=T?0:1;break;case 39:case 34:case 96:d===v?S=1:d===39||d===34||d===96?S=0:S=1;break;case 42:S=d===42?1:0;break;case 32:S=p?0:1;break;default:S=i.get(v)}S===1&&(r.push(Jt._createLink(i,l,s,c,u)),y=!0)}else if(m===12){let S;v===91?(w=!0,S=0):S=i.get(v),S===1?y=!0:m=13}else m=n.nextState(m,v),m===0&&(y=!0);y&&(m=1,f=!1,w=!1,T=!1,c=u+1,d=v),u++}m===13&&r.push(Jt._createLink(i,l,s,c,o))}return r}}function sl(t){return!t||typeof t.getLineCount!="function"||typeof t.getLineContent!="function"?[]:Jt.computeLinks(t)}const Tn=class Tn{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(e,n,i,r,s){if(e&&n){const a=this.doNavigateValueSet(n,s);if(a)return{range:e,value:a}}if(i&&r){const a=this.doNavigateValueSet(r,s);if(a)return{range:i,value:a}}return null}doNavigateValueSet(e,n){const i=this.numberReplace(e,n);return i!==null?i:this.textReplace(e,n)}numberReplace(e,n){const i=Math.pow(10,e.length-(e.lastIndexOf(".")+1));let r=Number(e);const s=parseFloat(e);return!isNaN(r)&&!isNaN(s)&&r===s?r===0&&!n?null:(r=Math.floor(r*i),r+=n?i:-i,String(r/i)):null}textReplace(e,n){return this.valueSetsReplace(this._defaultValueSet,e,n)}valueSetsReplace(e,n,i){let r=null;for(let s=0,a=e.length;r===null&&s<a;s++)r=this.valueSetReplace(e[s],n,i);return r}valueSetReplace(e,n,i){let r=e.indexOf(n);return r>=0?(r+=i?1:-1,r<0?r=e.length-1:r%=e.length,e[r]):null}};Tn.INSTANCE=new Tn;let On=Tn;const Zi=Object.freeze(function(t,e){const n=setTimeout(t.bind(e),0);return{dispose(){clearTimeout(n)}}});var Qt;(function(t){function e(n){return n===t.None||n===t.Cancelled||n instanceof Yt?!0:!n||typeof n!="object"?!1:typeof n.isCancellationRequested=="boolean"&&typeof n.onCancellationRequested=="function"}t.isCancellationToken=e,t.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Cn.None}),t.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Zi})})(Qt||(Qt={}));class Yt{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?Zi:(this._emitter||(this._emitter=new Se),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class al{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new Yt),this._token}cancel(){this._token?this._token instanceof Yt&&this._token.cancel():this._token=Qt.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener?.dispose(),this._token?this._token instanceof Yt&&this._token.dispose():this._token=Qt.None}}class Vn{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,n){this._keyCodeToStr[e]=n,this._strToKeyCode[n.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const Zt=new Vn,jn=new Vn,$n=new Vn,ol=new Array(230),ll=Object.create(null),ul=Object.create(null);(function(){const e=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN","",""],[1,1,"Hyper",0,"",0,"","",""],[1,2,"Super",0,"",0,"","",""],[1,3,"Fn",0,"",0,"","",""],[1,4,"FnLock",0,"",0,"","",""],[1,5,"Suspend",0,"",0,"","",""],[1,6,"Resume",0,"",0,"","",""],[1,7,"Turbo",0,"",0,"","",""],[1,8,"Sleep",0,"",0,"VK_SLEEP","",""],[1,9,"WakeUp",0,"",0,"","",""],[0,10,"KeyA",31,"A",65,"VK_A","",""],[0,11,"KeyB",32,"B",66,"VK_B","",""],[0,12,"KeyC",33,"C",67,"VK_C","",""],[0,13,"KeyD",34,"D",68,"VK_D","",""],[0,14,"KeyE",35,"E",69,"VK_E","",""],[0,15,"KeyF",36,"F",70,"VK_F","",""],[0,16,"KeyG",37,"G",71,"VK_G","",""],[0,17,"KeyH",38,"H",72,"VK_H","",""],[0,18,"KeyI",39,"I",73,"VK_I","",""],[0,19,"KeyJ",40,"J",74,"VK_J","",""],[0,20,"KeyK",41,"K",75,"VK_K","",""],[0,21,"KeyL",42,"L",76,"VK_L","",""],[0,22,"KeyM",43,"M",77,"VK_M","",""],[0,23,"KeyN",44,"N",78,"VK_N","",""],[0,24,"KeyO",45,"O",79,"VK_O","",""],[0,25,"KeyP",46,"P",80,"VK_P","",""],[0,26,"KeyQ",47,"Q",81,"VK_Q","",""],[0,27,"KeyR",48,"R",82,"VK_R","",""],[0,28,"KeyS",49,"S",83,"VK_S","",""],[0,29,"KeyT",50,"T",84,"VK_T","",""],[0,30,"KeyU",51,"U",85,"VK_U","",""],[0,31,"KeyV",52,"V",86,"VK_V","",""],[0,32,"KeyW",53,"W",87,"VK_W","",""],[0,33,"KeyX",54,"X",88,"VK_X","",""],[0,34,"KeyY",55,"Y",89,"VK_Y","",""],[0,35,"KeyZ",56,"Z",90,"VK_Z","",""],[0,36,"Digit1",22,"1",49,"VK_1","",""],[0,37,"Digit2",23,"2",50,"VK_2","",""],[0,38,"Digit3",24,"3",51,"VK_3","",""],[0,39,"Digit4",25,"4",52,"VK_4","",""],[0,40,"Digit5",26,"5",53,"VK_5","",""],[0,41,"Digit6",27,"6",54,"VK_6","",""],[0,42,"Digit7",28,"7",55,"VK_7","",""],[0,43,"Digit8",29,"8",56,"VK_8","",""],[0,44,"Digit9",30,"9",57,"VK_9","",""],[0,45,"Digit0",21,"0",48,"VK_0","",""],[1,46,"Enter",3,"Enter",13,"VK_RETURN","",""],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE","",""],[1,48,"Backspace",1,"Backspace",8,"VK_BACK","",""],[1,49,"Tab",2,"Tab",9,"VK_TAB","",""],[1,50,"Space",10,"Space",32,"VK_SPACE","",""],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,"",0,"","",""],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL","",""],[1,64,"F1",59,"F1",112,"VK_F1","",""],[1,65,"F2",60,"F2",113,"VK_F2","",""],[1,66,"F3",61,"F3",114,"VK_F3","",""],[1,67,"F4",62,"F4",115,"VK_F4","",""],[1,68,"F5",63,"F5",116,"VK_F5","",""],[1,69,"F6",64,"F6",117,"VK_F6","",""],[1,70,"F7",65,"F7",118,"VK_F7","",""],[1,71,"F8",66,"F8",119,"VK_F8","",""],[1,72,"F9",67,"F9",120,"VK_F9","",""],[1,73,"F10",68,"F10",121,"VK_F10","",""],[1,74,"F11",69,"F11",122,"VK_F11","",""],[1,75,"F12",70,"F12",123,"VK_F12","",""],[1,76,"PrintScreen",0,"",0,"","",""],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL","",""],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE","",""],[1,79,"Insert",19,"Insert",45,"VK_INSERT","",""],[1,80,"Home",14,"Home",36,"VK_HOME","",""],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR","",""],[1,82,"Delete",20,"Delete",46,"VK_DELETE","",""],[1,83,"End",13,"End",35,"VK_END","",""],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT","",""],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",""],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",""],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",""],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",""],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK","",""],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE","",""],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY","",""],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT","",""],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD","",""],[1,94,"NumpadEnter",3,"",0,"","",""],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1","",""],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2","",""],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3","",""],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4","",""],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5","",""],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6","",""],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7","",""],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8","",""],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9","",""],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0","",""],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL","",""],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102","",""],[1,107,"ContextMenu",58,"ContextMenu",93,"","",""],[1,108,"Power",0,"",0,"","",""],[1,109,"NumpadEqual",0,"",0,"","",""],[1,110,"F13",71,"F13",124,"VK_F13","",""],[1,111,"F14",72,"F14",125,"VK_F14","",""],[1,112,"F15",73,"F15",126,"VK_F15","",""],[1,113,"F16",74,"F16",127,"VK_F16","",""],[1,114,"F17",75,"F17",128,"VK_F17","",""],[1,115,"F18",76,"F18",129,"VK_F18","",""],[1,116,"F19",77,"F19",130,"VK_F19","",""],[1,117,"F20",78,"F20",131,"VK_F20","",""],[1,118,"F21",79,"F21",132,"VK_F21","",""],[1,119,"F22",80,"F22",133,"VK_F22","",""],[1,120,"F23",81,"F23",134,"VK_F23","",""],[1,121,"F24",82,"F24",135,"VK_F24","",""],[1,122,"Open",0,"",0,"","",""],[1,123,"Help",0,"",0,"","",""],[1,124,"Select",0,"",0,"","",""],[1,125,"Again",0,"",0,"","",""],[1,126,"Undo",0,"",0,"","",""],[1,127,"Cut",0,"",0,"","",""],[1,128,"Copy",0,"",0,"","",""],[1,129,"Paste",0,"",0,"","",""],[1,130,"Find",0,"",0,"","",""],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE","",""],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP","",""],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN","",""],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR","",""],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1","",""],[1,136,"KanaMode",0,"",0,"","",""],[0,137,"IntlYen",0,"",0,"","",""],[1,138,"Convert",0,"",0,"","",""],[1,139,"NonConvert",0,"",0,"","",""],[1,140,"Lang1",0,"",0,"","",""],[1,141,"Lang2",0,"",0,"","",""],[1,142,"Lang3",0,"",0,"","",""],[1,143,"Lang4",0,"",0,"","",""],[1,144,"Lang5",0,"",0,"","",""],[1,145,"Abort",0,"",0,"","",""],[1,146,"Props",0,"",0,"","",""],[1,147,"NumpadParenLeft",0,"",0,"","",""],[1,148,"NumpadParenRight",0,"",0,"","",""],[1,149,"NumpadBackspace",0,"",0,"","",""],[1,150,"NumpadMemoryStore",0,"",0,"","",""],[1,151,"NumpadMemoryRecall",0,"",0,"","",""],[1,152,"NumpadMemoryClear",0,"",0,"","",""],[1,153,"NumpadMemoryAdd",0,"",0,"","",""],[1,154,"NumpadMemorySubtract",0,"",0,"","",""],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR","",""],[1,156,"NumpadClearEntry",0,"",0,"","",""],[1,0,"",5,"Ctrl",17,"VK_CONTROL","",""],[1,0,"",4,"Shift",16,"VK_SHIFT","",""],[1,0,"",6,"Alt",18,"VK_MENU","",""],[1,0,"",57,"Meta",91,"VK_COMMAND","",""],[1,157,"ControlLeft",5,"",0,"VK_LCONTROL","",""],[1,158,"ShiftLeft",4,"",0,"VK_LSHIFT","",""],[1,159,"AltLeft",6,"",0,"VK_LMENU","",""],[1,160,"MetaLeft",57,"",0,"VK_LWIN","",""],[1,161,"ControlRight",5,"",0,"VK_RCONTROL","",""],[1,162,"ShiftRight",4,"",0,"VK_RSHIFT","",""],[1,163,"AltRight",6,"",0,"VK_RMENU","",""],[1,164,"MetaRight",57,"",0,"VK_RWIN","",""],[1,165,"BrightnessUp",0,"",0,"","",""],[1,166,"BrightnessDown",0,"",0,"","",""],[1,167,"MediaPlay",0,"",0,"","",""],[1,168,"MediaRecord",0,"",0,"","",""],[1,169,"MediaFastForward",0,"",0,"","",""],[1,170,"MediaRewind",0,"",0,"","",""],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK","",""],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK","",""],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP","",""],[1,174,"Eject",0,"",0,"","",""],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE","",""],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT","",""],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL","",""],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2","",""],[1,179,"LaunchApp1",0,"",0,"VK_MEDIA_LAUNCH_APP1","",""],[1,180,"SelectTask",0,"",0,"","",""],[1,181,"LaunchScreenSaver",0,"",0,"","",""],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH","",""],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME","",""],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK","",""],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD","",""],[1,186,"BrowserStop",0,"",0,"VK_BROWSER_STOP","",""],[1,187,"BrowserRefresh",0,"",0,"VK_BROWSER_REFRESH","",""],[1,188,"BrowserFavorites",0,"",0,"VK_BROWSER_FAVORITES","",""],[1,189,"ZoomToggle",0,"",0,"","",""],[1,190,"MailReply",0,"",0,"","",""],[1,191,"MailForward",0,"",0,"","",""],[1,192,"MailSend",0,"",0,"","",""],[1,0,"",114,"KeyInComposition",229,"","",""],[1,0,"",116,"ABNT_C2",194,"VK_ABNT_C2","",""],[1,0,"",96,"OEM_8",223,"VK_OEM_8","",""],[1,0,"",0,"",0,"VK_KANA","",""],[1,0,"",0,"",0,"VK_HANGUL","",""],[1,0,"",0,"",0,"VK_JUNJA","",""],[1,0,"",0,"",0,"VK_FINAL","",""],[1,0,"",0,"",0,"VK_HANJA","",""],[1,0,"",0,"",0,"VK_KANJI","",""],[1,0,"",0,"",0,"VK_CONVERT","",""],[1,0,"",0,"",0,"VK_NONCONVERT","",""],[1,0,"",0,"",0,"VK_ACCEPT","",""],[1,0,"",0,"",0,"VK_MODECHANGE","",""],[1,0,"",0,"",0,"VK_SELECT","",""],[1,0,"",0,"",0,"VK_PRINT","",""],[1,0,"",0,"",0,"VK_EXECUTE","",""],[1,0,"",0,"",0,"VK_SNAPSHOT","",""],[1,0,"",0,"",0,"VK_HELP","",""],[1,0,"",0,"",0,"VK_APPS","",""],[1,0,"",0,"",0,"VK_PROCESSKEY","",""],[1,0,"",0,"",0,"VK_PACKET","",""],[1,0,"",0,"",0,"VK_DBE_SBCSCHAR","",""],[1,0,"",0,"",0,"VK_DBE_DBCSCHAR","",""],[1,0,"",0,"",0,"VK_ATTN","",""],[1,0,"",0,"",0,"VK_CRSEL","",""],[1,0,"",0,"",0,"VK_EXSEL","",""],[1,0,"",0,"",0,"VK_EREOF","",""],[1,0,"",0,"",0,"VK_PLAY","",""],[1,0,"",0,"",0,"VK_ZOOM","",""],[1,0,"",0,"",0,"VK_NONAME","",""],[1,0,"",0,"",0,"VK_PA1","",""],[1,0,"",0,"",0,"VK_OEM_CLEAR","",""]],n=[],i=[];for(const r of e){const[s,a,l,o,u,c,d,m,f]=r;if(i[a]||(i[a]=!0,ll[l]=a,ul[l.toLowerCase()]=a),!n[o]){if(n[o]=!0,!u)throw new Error(`String representation missing for key code ${o} around scan code ${l}`);Zt.define(o,u),jn.define(o,m||u),$n.define(o,f||m||u)}c&&(ol[c]=o)}})();var Ki;(function(t){function e(l){return Zt.keyCodeToStr(l)}t.toString=e;function n(l){return Zt.strToKeyCode(l)}t.fromString=n;function i(l){return jn.keyCodeToStr(l)}t.toUserSettingsUS=i;function r(l){return $n.keyCodeToStr(l)}t.toUserSettingsGeneral=r;function s(l){return jn.strToKeyCode(l)||$n.strToKeyCode(l)}t.fromUserSettings=s;function a(l){if(l>=98&&l<=113)return null;switch(l){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return Zt.keyCodeToStr(l)}t.toElectronAccelerator=a})(Ki||(Ki={}));function cl(t,e){const n=(e&65535)<<16>>>0;return(t|n)>>>0}let ot;const Gn=globalThis.vscode;if(typeof Gn<"u"&&typeof Gn.process<"u"){const t=Gn.process;ot={get platform(){return t.platform},get arch(){return t.arch},get env(){return t.env},cwd(){return t.cwd()}}}else typeof process<"u"&&typeof process?.versions?.node=="string"?ot={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:ot={get platform(){return St?"win32":Co?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const Kt=ot.cwd,hl=ot.env,dl=ot.platform,ml=65,fl=97,pl=90,gl=122,Ye=46,ae=47,pe=92,ze=58,bl=63;class er extends Error{constructor(e,n,i){let r;typeof n=="string"&&n.indexOf("not ")===0?(r="must not be",n=n.replace(/^not /,"")):r="must be";const s=e.indexOf(".")!==-1?"property":"argument";let a=`The "${e}" ${s} ${r} of type ${n}`;a+=`. Received type ${typeof i}`,super(a),this.code="ERR_INVALID_ARG_TYPE"}}function wl(t,e){if(t===null||typeof t!="object")throw new er(e,"Object",t)}function ie(t,e){if(typeof t!="string")throw new er(e,"string",t)}const He=dl==="win32";function $(t){return t===ae||t===pe}function Xn(t){return t===ae}function Ue(t){return t>=ml&&t<=pl||t>=fl&&t<=gl}function en(t,e,n,i){let r="",s=0,a=-1,l=0,o=0;for(let u=0;u<=t.length;++u){if(u<t.length)o=t.charCodeAt(u);else{if(i(o))break;o=ae}if(i(o)){if(!(a===u-1||l===1))if(l===2){if(r.length<2||s!==2||r.charCodeAt(r.length-1)!==Ye||r.charCodeAt(r.length-2)!==Ye){if(r.length>2){const c=r.lastIndexOf(n);c===-1?(r="",s=0):(r=r.slice(0,c),s=r.length-1-r.lastIndexOf(n)),a=u,l=0;continue}else if(r.length!==0){r="",s=0,a=u,l=0;continue}}e&&(r+=r.length>0?`${n}..`:"..",s=2)}else r.length>0?r+=`${n}${t.slice(a+1,u)}`:r=t.slice(a+1,u),s=u-a-1;a=u,l=0}else o===Ye&&l!==-1?++l:l=-1}return r}function _l(t){return t?`${t[0]==="."?"":"."}${t}`:""}function tr(t,e){wl(e,"pathObject");const n=e.dir||e.root,i=e.base||`${e.name||""}${_l(e.ext)}`;return n?n===e.root?`${n}${i}`:`${n}${t}${i}`:i}const ce={resolve(...t){let e="",n="",i=!1;for(let r=t.length-1;r>=-1;r--){let s;if(r>=0){if(s=t[r],ie(s,`paths[${r}]`),s.length===0)continue}else e.length===0?s=Kt():(s=hl[`=${e}`]||Kt(),(s===void 0||s.slice(0,2).toLowerCase()!==e.toLowerCase()&&s.charCodeAt(2)===pe)&&(s=`${e}\\`));const a=s.length;let l=0,o="",u=!1;const c=s.charCodeAt(0);if(a===1)$(c)&&(l=1,u=!0);else if($(c))if(u=!0,$(s.charCodeAt(1))){let d=2,m=d;for(;d<a&&!$(s.charCodeAt(d));)d++;if(d<a&&d!==m){const f=s.slice(m,d);for(m=d;d<a&&$(s.charCodeAt(d));)d++;if(d<a&&d!==m){for(m=d;d<a&&!$(s.charCodeAt(d));)d++;(d===a||d!==m)&&(o=`\\\\${f}\\${s.slice(m,d)}`,l=d)}}}else l=1;else Ue(c)&&s.charCodeAt(1)===ze&&(o=s.slice(0,2),l=2,a>2&&$(s.charCodeAt(2))&&(u=!0,l=3));if(o.length>0)if(e.length>0){if(o.toLowerCase()!==e.toLowerCase())continue}else e=o;if(i){if(e.length>0)break}else if(n=`${s.slice(l)}\\${n}`,i=u,u&&e.length>0)break}return n=en(n,!i,"\\",$),i?`${e}\\${n}`:`${e}${n}`||"."},normalize(t){ie(t,"path");const e=t.length;if(e===0)return".";let n=0,i,r=!1;const s=t.charCodeAt(0);if(e===1)return Xn(s)?"\\":t;if($(s))if(r=!0,$(t.charCodeAt(1))){let l=2,o=l;for(;l<e&&!$(t.charCodeAt(l));)l++;if(l<e&&l!==o){const u=t.slice(o,l);for(o=l;l<e&&$(t.charCodeAt(l));)l++;if(l<e&&l!==o){for(o=l;l<e&&!$(t.charCodeAt(l));)l++;if(l===e)return`\\\\${u}\\${t.slice(o)}\\`;l!==o&&(i=`\\\\${u}\\${t.slice(o,l)}`,n=l)}}}else n=1;else Ue(s)&&t.charCodeAt(1)===ze&&(i=t.slice(0,2),n=2,e>2&&$(t.charCodeAt(2))&&(r=!0,n=3));let a=n<e?en(t.slice(n),!r,"\\",$):"";if(a.length===0&&!r&&(a="."),a.length>0&&$(t.charCodeAt(e-1))&&(a+="\\"),!r&&i===void 0&&t.includes(":")){if(a.length>=2&&Ue(a.charCodeAt(0))&&a.charCodeAt(1)===ze)return`.\\${a}`;let l=t.indexOf(":");do if(l===e-1||$(t.charCodeAt(l+1)))return`.\\${a}`;while((l=t.indexOf(":",l+1))!==-1)}return i===void 0?r?`\\${a}`:a:r?`${i}\\${a}`:`${i}${a}`},isAbsolute(t){ie(t,"path");const e=t.length;if(e===0)return!1;const n=t.charCodeAt(0);return $(n)||e>2&&Ue(n)&&t.charCodeAt(1)===ze&&$(t.charCodeAt(2))},join(...t){if(t.length===0)return".";let e,n;for(let s=0;s<t.length;++s){const a=t[s];ie(a,"path"),a.length>0&&(e===void 0?e=n=a:e+=`\\${a}`)}if(e===void 0)return".";let i=!0,r=0;if(typeof n=="string"&&$(n.charCodeAt(0))){++r;const s=n.length;s>1&&$(n.charCodeAt(1))&&(++r,s>2&&($(n.charCodeAt(2))?++r:i=!1))}if(i){for(;r<e.length&&$(e.charCodeAt(r));)r++;r>=2&&(e=`\\${e.slice(r)}`)}return ce.normalize(e)},relative(t,e){if(ie(t,"from"),ie(e,"to"),t===e)return"";const n=ce.resolve(t),i=ce.resolve(e);if(n===i||(t=n.toLowerCase(),e=i.toLowerCase(),t===e))return"";if(n.length!==t.length||i.length!==e.length){const w=n.split("\\"),p=i.split("\\");w[w.length-1]===""&&w.pop(),p[p.length-1]===""&&p.pop();const T=w.length,y=p.length,v=T<y?T:y;let S;for(S=0;S<v&&w[S].toLowerCase()===p[S].toLowerCase();S++);return S===0?i:S===v?y>v?p.slice(S).join("\\"):T>v?"..\\".repeat(T-1-S)+"..":"":"..\\".repeat(T-S)+p.slice(S).join("\\")}let r=0;for(;r<t.length&&t.charCodeAt(r)===pe;)r++;let s=t.length;for(;s-1>r&&t.charCodeAt(s-1)===pe;)s--;const a=s-r;let l=0;for(;l<e.length&&e.charCodeAt(l)===pe;)l++;let o=e.length;for(;o-1>l&&e.charCodeAt(o-1)===pe;)o--;const u=o-l,c=a<u?a:u;let d=-1,m=0;for(;m<c;m++){const w=t.charCodeAt(r+m);if(w!==e.charCodeAt(l+m))break;w===pe&&(d=m)}if(m!==c){if(d===-1)return i}else{if(u>c){if(e.charCodeAt(l+m)===pe)return i.slice(l+m+1);if(m===2)return i.slice(l+m)}a>c&&(t.charCodeAt(r+m)===pe?d=m:m===2&&(d=3)),d===-1&&(d=0)}let f="";for(m=r+d+1;m<=s;++m)(m===s||t.charCodeAt(m)===pe)&&(f+=f.length===0?"..":"\\..");return l+=d,f.length>0?`${f}${i.slice(l,o)}`:(i.charCodeAt(l)===pe&&++l,i.slice(l,o))},toNamespacedPath(t){if(typeof t!="string"||t.length===0)return t;const e=ce.resolve(t);if(e.length<=2)return t;if(e.charCodeAt(0)===pe){if(e.charCodeAt(1)===pe){const n=e.charCodeAt(2);if(n!==bl&&n!==Ye)return`\\\\?\\UNC\\${e.slice(2)}`}}else if(Ue(e.charCodeAt(0))&&e.charCodeAt(1)===ze&&e.charCodeAt(2)===pe)return`\\\\?\\${e}`;return e},dirname(t){ie(t,"path");const e=t.length;if(e===0)return".";let n=-1,i=0;const r=t.charCodeAt(0);if(e===1)return $(r)?t:".";if($(r)){if(n=i=1,$(t.charCodeAt(1))){let l=2,o=l;for(;l<e&&!$(t.charCodeAt(l));)l++;if(l<e&&l!==o){for(o=l;l<e&&$(t.charCodeAt(l));)l++;if(l<e&&l!==o){for(o=l;l<e&&!$(t.charCodeAt(l));)l++;if(l===e)return t;l!==o&&(n=i=l+1)}}}}else Ue(r)&&t.charCodeAt(1)===ze&&(n=e>2&&$(t.charCodeAt(2))?3:2,i=n);let s=-1,a=!0;for(let l=e-1;l>=i;--l)if($(t.charCodeAt(l))){if(!a){s=l;break}}else a=!1;if(s===-1){if(n===-1)return".";s=n}return t.slice(0,s)},basename(t,e){e!==void 0&&ie(e,"suffix"),ie(t,"path");let n=0,i=-1,r=!0,s;if(t.length>=2&&Ue(t.charCodeAt(0))&&t.charCodeAt(1)===ze&&(n=2),e!==void 0&&e.length>0&&e.length<=t.length){if(e===t)return"";let a=e.length-1,l=-1;for(s=t.length-1;s>=n;--s){const o=t.charCodeAt(s);if($(o)){if(!r){n=s+1;break}}else l===-1&&(r=!1,l=s+1),a>=0&&(o===e.charCodeAt(a)?--a===-1&&(i=s):(a=-1,i=l))}return n===i?i=l:i===-1&&(i=t.length),t.slice(n,i)}for(s=t.length-1;s>=n;--s)if($(t.charCodeAt(s))){if(!r){n=s+1;break}}else i===-1&&(r=!1,i=s+1);return i===-1?"":t.slice(n,i)},extname(t){ie(t,"path");let e=0,n=-1,i=0,r=-1,s=!0,a=0;t.length>=2&&t.charCodeAt(1)===ze&&Ue(t.charCodeAt(0))&&(e=i=2);for(let l=t.length-1;l>=e;--l){const o=t.charCodeAt(l);if($(o)){if(!s){i=l+1;break}continue}r===-1&&(s=!1,r=l+1),o===Ye?n===-1?n=l:a!==1&&(a=1):n!==-1&&(a=-1)}return n===-1||r===-1||a===0||a===1&&n===r-1&&n===i+1?"":t.slice(n,r)},format:tr.bind(null,"\\"),parse(t){ie(t,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return e;const n=t.length;let i=0,r=t.charCodeAt(0);if(n===1)return $(r)?(e.root=e.dir=t,e):(e.base=e.name=t,e);if($(r)){if(i=1,$(t.charCodeAt(1))){let d=2,m=d;for(;d<n&&!$(t.charCodeAt(d));)d++;if(d<n&&d!==m){for(m=d;d<n&&$(t.charCodeAt(d));)d++;if(d<n&&d!==m){for(m=d;d<n&&!$(t.charCodeAt(d));)d++;d===n?i=d:d!==m&&(i=d+1)}}}}else if(Ue(r)&&t.charCodeAt(1)===ze){if(n<=2)return e.root=e.dir=t,e;if(i=2,$(t.charCodeAt(2))){if(n===3)return e.root=e.dir=t,e;i=3}}i>0&&(e.root=t.slice(0,i));let s=-1,a=i,l=-1,o=!0,u=t.length-1,c=0;for(;u>=i;--u){if(r=t.charCodeAt(u),$(r)){if(!o){a=u+1;break}continue}l===-1&&(o=!1,l=u+1),r===Ye?s===-1?s=u:c!==1&&(c=1):s!==-1&&(c=-1)}return l!==-1&&(s===-1||c===0||c===1&&s===l-1&&s===a+1?e.base=e.name=t.slice(a,l):(e.name=t.slice(a,s),e.base=t.slice(a,l),e.ext=t.slice(s,l))),a>0&&a!==i?e.dir=t.slice(0,a-1):e.dir=e.root,e},sep:"\\",delimiter:";",win32:null,posix:null},vl=(()=>{if(He){const t=/\\/g;return()=>{const e=Kt().replace(t,"/");return e.slice(e.indexOf("/"))}}return()=>Kt()})(),de={resolve(...t){let e="",n=!1;for(let i=t.length-1;i>=0&&!n;i--){const r=t[i];ie(r,`paths[${i}]`),r.length!==0&&(e=`${r}/${e}`,n=r.charCodeAt(0)===ae)}if(!n){const i=vl();e=`${i}/${e}`,n=i.charCodeAt(0)===ae}return e=en(e,!n,"/",Xn),n?`/${e}`:e.length>0?e:"."},normalize(t){if(ie(t,"path"),t.length===0)return".";const e=t.charCodeAt(0)===ae,n=t.charCodeAt(t.length-1)===ae;return t=en(t,!e,"/",Xn),t.length===0?e?"/":n?"./":".":(n&&(t+="/"),e?`/${t}`:t)},isAbsolute(t){return ie(t,"path"),t.length>0&&t.charCodeAt(0)===ae},join(...t){if(t.length===0)return".";const e=[];for(let n=0;n<t.length;++n){const i=t[n];ie(i,"path"),i.length>0&&e.push(i)}return e.length===0?".":de.normalize(e.join("/"))},relative(t,e){if(ie(t,"from"),ie(e,"to"),t===e||(t=de.resolve(t),e=de.resolve(e),t===e))return"";const n=1,i=t.length,r=i-n,s=1,a=e.length-s,l=r<a?r:a;let o=-1,u=0;for(;u<l;u++){const d=t.charCodeAt(n+u);if(d!==e.charCodeAt(s+u))break;d===ae&&(o=u)}if(u===l)if(a>l){if(e.charCodeAt(s+u)===ae)return e.slice(s+u+1);if(u===0)return e.slice(s+u)}else r>l&&(t.charCodeAt(n+u)===ae?o=u:u===0&&(o=0));let c="";for(u=n+o+1;u<=i;++u)(u===i||t.charCodeAt(u)===ae)&&(c+=c.length===0?"..":"/..");return`${c}${e.slice(s+o)}`},toNamespacedPath(t){return t},dirname(t){if(ie(t,"path"),t.length===0)return".";const e=t.charCodeAt(0)===ae;let n=-1,i=!0;for(let r=t.length-1;r>=1;--r)if(t.charCodeAt(r)===ae){if(!i){n=r;break}}else i=!1;return n===-1?e?"/":".":e&&n===1?"//":t.slice(0,n)},basename(t,e){e!==void 0&&ie(e,"suffix"),ie(t,"path");let n=0,i=-1,r=!0,s;if(e!==void 0&&e.length>0&&e.length<=t.length){if(e===t)return"";let a=e.length-1,l=-1;for(s=t.length-1;s>=0;--s){const o=t.charCodeAt(s);if(o===ae){if(!r){n=s+1;break}}else l===-1&&(r=!1,l=s+1),a>=0&&(o===e.charCodeAt(a)?--a===-1&&(i=s):(a=-1,i=l))}return n===i?i=l:i===-1&&(i=t.length),t.slice(n,i)}for(s=t.length-1;s>=0;--s)if(t.charCodeAt(s)===ae){if(!r){n=s+1;break}}else i===-1&&(r=!1,i=s+1);return i===-1?"":t.slice(n,i)},extname(t){ie(t,"path");let e=-1,n=0,i=-1,r=!0,s=0;for(let a=t.length-1;a>=0;--a){const l=t[a];if(l==="/"){if(!r){n=a+1;break}continue}i===-1&&(r=!1,i=a+1),l==="."?e===-1?e=a:s!==1&&(s=1):e!==-1&&(s=-1)}return e===-1||i===-1||s===0||s===1&&e===i-1&&e===n+1?"":t.slice(e,i)},format:tr.bind(null,"/"),parse(t){ie(t,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return e;const n=t.charCodeAt(0)===ae;let i;n?(e.root="/",i=1):i=0;let r=-1,s=0,a=-1,l=!0,o=t.length-1,u=0;for(;o>=i;--o){const c=t.charCodeAt(o);if(c===ae){if(!l){s=o+1;break}continue}a===-1&&(l=!1,a=o+1),c===Ye?r===-1?r=o:u!==1&&(u=1):r!==-1&&(u=-1)}if(a!==-1){const c=s===0&&n?1:s;r===-1||u===0||u===1&&r===a-1&&r===s+1?e.base=e.name=t.slice(c,a):(e.name=t.slice(c,r),e.base=t.slice(c,a),e.ext=t.slice(r,a))}return s>0?e.dir=t.slice(0,s-1):n&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};de.win32=ce.win32=ce,de.posix=ce.posix=de,He?ce.normalize:de.normalize,He?ce.join:de.join,He?ce.resolve:de.resolve,He?ce.relative:de.relative,He?ce.dirname:de.dirname,He?ce.basename:de.basename,He?ce.extname:de.extname,He?ce.sep:de.sep;const yl=/^\w[\w\d+.-]*$/,Tl=/^\//,xl=/^\/\//;function kl(t,e){if(!t.scheme&&e)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${t.authority}", path: "${t.path}", query: "${t.query}", fragment: "${t.fragment}"}`);if(t.scheme&&!yl.test(t.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(t.path){if(t.authority){if(!Tl.test(t.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(xl.test(t.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function Sl(t,e){return!t&&!e?"file":t}function Al(t,e){switch(t){case"https":case"http":case"file":e?e[0]!==Ae&&(e=Ae+e):e=Ae;break}return e}const ee="",Ae="/",Ll=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;let Jn=class Sn{static isUri(e){return e instanceof Sn?!0:!e||typeof e!="object"?!1:typeof e.authority=="string"&&typeof e.fragment=="string"&&typeof e.path=="string"&&typeof e.query=="string"&&typeof e.scheme=="string"&&typeof e.fsPath=="string"&&typeof e.with=="function"&&typeof e.toString=="function"}constructor(e,n,i,r,s,a=!1){typeof e=="object"?(this.scheme=e.scheme||ee,this.authority=e.authority||ee,this.path=e.path||ee,this.query=e.query||ee,this.fragment=e.fragment||ee):(this.scheme=Sl(e,a),this.authority=n||ee,this.path=Al(this.scheme,i||ee),this.query=r||ee,this.fragment=s||ee,kl(this,a))}get fsPath(){return Qn(this,!1)}with(e){if(!e)return this;let{scheme:n,authority:i,path:r,query:s,fragment:a}=e;return n===void 0?n=this.scheme:n===null&&(n=ee),i===void 0?i=this.authority:i===null&&(i=ee),r===void 0?r=this.path:r===null&&(r=ee),s===void 0?s=this.query:s===null&&(s=ee),a===void 0?a=this.fragment:a===null&&(a=ee),n===this.scheme&&i===this.authority&&r===this.path&&s===this.query&&a===this.fragment?this:new lt(n,i,r,s,a)}static parse(e,n=!1){const i=Ll.exec(e);return i?new lt(i[2]||ee,tn(i[4]||ee),tn(i[5]||ee),tn(i[7]||ee),tn(i[9]||ee),n):new lt(ee,ee,ee,ee,ee)}static file(e){let n=ee;if(St&&(e=e.replace(/\\/g,Ae)),e[0]===Ae&&e[1]===Ae){const i=e.indexOf(Ae,2);i===-1?(n=e.substring(2),e=Ae):(n=e.substring(2,i),e=e.substring(i)||Ae)}return new lt("file",n,e,ee,ee)}static from(e,n){return new lt(e.scheme,e.authority,e.path,e.query,e.fragment,n)}static joinPath(e,...n){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let i;return St&&e.scheme==="file"?i=Sn.file(ce.join(Qn(e,!0),...n)).path:i=de.join(e.path,...n),e.with({path:i})}toString(e=!1){return Yn(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof Sn)return e;{const n=new lt(e);return n._formatted=e.external??null,n._fsPath=e._sep===nr?e.fsPath??null:null,n}}else return e}};const nr=St?1:void 0;class lt extends Jn{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=Qn(this,!1)),this._fsPath}toString(e=!1){return e?Yn(this,!0):(this._formatted||(this._formatted=Yn(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=nr),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}const ir={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function rr(t,e,n){let i,r=-1;for(let s=0;s<t.length;s++){const a=t.charCodeAt(s);if(a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||a===45||a===46||a===95||a===126||e&&a===47||n&&a===91||n&&a===93||n&&a===58)r!==-1&&(i+=encodeURIComponent(t.substring(r,s)),r=-1),i!==void 0&&(i+=t.charAt(s));else{i===void 0&&(i=t.substr(0,s));const l=ir[a];l!==void 0?(r!==-1&&(i+=encodeURIComponent(t.substring(r,s)),r=-1),i+=l):r===-1&&(r=s)}}return r!==-1&&(i+=encodeURIComponent(t.substring(r))),i!==void 0?i:t}function Cl(t){let e;for(let n=0;n<t.length;n++){const i=t.charCodeAt(n);i===35||i===63?(e===void 0&&(e=t.substr(0,n)),e+=ir[i]):e!==void 0&&(e+=t[n])}return e!==void 0?e:t}function Qn(t,e){let n;return t.authority&&t.path.length>1&&t.scheme==="file"?n=`//${t.authority}${t.path}`:t.path.charCodeAt(0)===47&&(t.path.charCodeAt(1)>=65&&t.path.charCodeAt(1)<=90||t.path.charCodeAt(1)>=97&&t.path.charCodeAt(1)<=122)&&t.path.charCodeAt(2)===58?e?n=t.path.substr(1):n=t.path[1].toLowerCase()+t.path.substr(2):n=t.path,St&&(n=n.replace(/\//g,"\\")),n}function Yn(t,e){const n=e?Cl:rr;let i="",{scheme:r,authority:s,path:a,query:l,fragment:o}=t;if(r&&(i+=r,i+=":"),(s||r==="file")&&(i+=Ae,i+=Ae),s){let u=s.indexOf("@");if(u!==-1){const c=s.substr(0,u);s=s.substr(u+1),u=c.lastIndexOf(":"),u===-1?i+=n(c,!1,!1):(i+=n(c.substr(0,u),!1,!1),i+=":",i+=n(c.substr(u+1),!1,!0)),i+="@"}s=s.toLowerCase(),u=s.lastIndexOf(":"),u===-1?i+=n(s,!1,!0):(i+=n(s.substr(0,u),!1,!0),i+=s.substr(u))}if(a){if(a.length>=3&&a.charCodeAt(0)===47&&a.charCodeAt(2)===58){const u=a.charCodeAt(1);u>=65&&u<=90&&(a=`/${String.fromCharCode(u+32)}:${a.substr(3)}`)}else if(a.length>=2&&a.charCodeAt(1)===58){const u=a.charCodeAt(0);u>=65&&u<=90&&(a=`${String.fromCharCode(u+32)}:${a.substr(2)}`)}i+=n(a,!0,!1)}return l&&(i+="?",i+=n(l,!1,!1)),o&&(i+="#",i+=e?o:rr(o,!1,!1)),i}function sr(t){try{return decodeURIComponent(t)}catch{return t.length>3?t.substr(0,3)+sr(t.substr(3)):t}}const ar=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function tn(t){return t.match(ar)?t.replace(ar,e=>sr(e)):t}class we extends j{constructor(e,n,i,r){super(e,n,i,r),this.selectionStartLineNumber=e,this.selectionStartColumn=n,this.positionLineNumber=i,this.positionColumn=r}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return we.selectionsEqual(this,e)}static selectionsEqual(e,n){return e.selectionStartLineNumber===n.selectionStartLineNumber&&e.selectionStartColumn===n.selectionStartColumn&&e.positionLineNumber===n.positionLineNumber&&e.positionColumn===n.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,n){return this.getDirection()===0?new we(this.startLineNumber,this.startColumn,e,n):new we(e,n,this.startLineNumber,this.startColumn)}getPosition(){return new K(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new K(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,n){return this.getDirection()===0?new we(e,n,this.endLineNumber,this.endColumn):new we(this.endLineNumber,this.endColumn,e,n)}static fromPositions(e,n=e){return new we(e.lineNumber,e.column,n.lineNumber,n.column)}static fromRange(e,n){return n===0?new we(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new we(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new we(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,n){if(e&&!n||!e&&n)return!1;if(!e&&!n)return!0;if(e.length!==n.length)return!1;for(let i=0,r=e.length;i<r;i++)if(!this.selectionsEqual(e[i],n[i]))return!1;return!0}static isISelection(e){return!!e&&typeof e.selectionStartLineNumber=="number"&&typeof e.selectionStartColumn=="number"&&typeof e.positionLineNumber=="number"&&typeof e.positionColumn=="number"}static createWithDirection(e,n,i,r,s){return s===0?new we(e,n,i,r):new we(i,r,e,n)}}const or=Object.create(null);function h(t,e){if(ho(e)){const n=or[e];if(n===void 0)throw new Error(`${t} references an unknown codicon: ${e}`);e=n}return or[t]=e,{id:t}}const El={add:h("add",6e4),plus:h("plus",6e4),gistNew:h("gist-new",6e4),repoCreate:h("repo-create",6e4),lightbulb:h("lightbulb",60001),lightBulb:h("light-bulb",60001),repo:h("repo",60002),repoDelete:h("repo-delete",60002),gistFork:h("gist-fork",60003),repoForked:h("repo-forked",60003),gitPullRequest:h("git-pull-request",60004),gitPullRequestAbandoned:h("git-pull-request-abandoned",60004),recordKeys:h("record-keys",60005),keyboard:h("keyboard",60005),tag:h("tag",60006),gitPullRequestLabel:h("git-pull-request-label",60006),tagAdd:h("tag-add",60006),tagRemove:h("tag-remove",60006),person:h("person",60007),personFollow:h("person-follow",60007),personOutline:h("person-outline",60007),personFilled:h("person-filled",60007),sourceControl:h("source-control",60008),mirror:h("mirror",60009),mirrorPublic:h("mirror-public",60009),star:h("star",60010),starAdd:h("star-add",60010),starDelete:h("star-delete",60010),starEmpty:h("star-empty",60010),comment:h("comment",60011),commentAdd:h("comment-add",60011),alert:h("alert",60012),warning:h("warning",60012),search:h("search",60013),searchSave:h("search-save",60013),logOut:h("log-out",60014),signOut:h("sign-out",60014),logIn:h("log-in",60015),signIn:h("sign-in",60015),eye:h("eye",60016),eyeUnwatch:h("eye-unwatch",60016),eyeWatch:h("eye-watch",60016),circleFilled:h("circle-filled",60017),primitiveDot:h("primitive-dot",60017),closeDirty:h("close-dirty",60017),debugBreakpoint:h("debug-breakpoint",60017),debugBreakpointDisabled:h("debug-breakpoint-disabled",60017),debugHint:h("debug-hint",60017),terminalDecorationSuccess:h("terminal-decoration-success",60017),primitiveSquare:h("primitive-square",60018),edit:h("edit",60019),pencil:h("pencil",60019),info:h("info",60020),issueOpened:h("issue-opened",60020),gistPrivate:h("gist-private",60021),gitForkPrivate:h("git-fork-private",60021),lock:h("lock",60021),mirrorPrivate:h("mirror-private",60021),close:h("close",60022),removeClose:h("remove-close",60022),x:h("x",60022),repoSync:h("repo-sync",60023),sync:h("sync",60023),clone:h("clone",60024),desktopDownload:h("desktop-download",60024),beaker:h("beaker",60025),microscope:h("microscope",60025),vm:h("vm",60026),deviceDesktop:h("device-desktop",60026),file:h("file",60027),more:h("more",60028),ellipsis:h("ellipsis",60028),kebabHorizontal:h("kebab-horizontal",60028),mailReply:h("mail-reply",60029),reply:h("reply",60029),organization:h("organization",60030),organizationFilled:h("organization-filled",60030),organizationOutline:h("organization-outline",60030),newFile:h("new-file",60031),fileAdd:h("file-add",60031),newFolder:h("new-folder",60032),fileDirectoryCreate:h("file-directory-create",60032),trash:h("trash",60033),trashcan:h("trashcan",60033),history:h("history",60034),clock:h("clock",60034),folder:h("folder",60035),fileDirectory:h("file-directory",60035),symbolFolder:h("symbol-folder",60035),logoGithub:h("logo-github",60036),markGithub:h("mark-github",60036),github:h("github",60036),terminal:h("terminal",60037),console:h("console",60037),repl:h("repl",60037),zap:h("zap",60038),symbolEvent:h("symbol-event",60038),error:h("error",60039),stop:h("stop",60039),variable:h("variable",60040),symbolVariable:h("symbol-variable",60040),array:h("array",60042),symbolArray:h("symbol-array",60042),symbolModule:h("symbol-module",60043),symbolPackage:h("symbol-package",60043),symbolNamespace:h("symbol-namespace",60043),symbolObject:h("symbol-object",60043),symbolMethod:h("symbol-method",60044),symbolFunction:h("symbol-function",60044),symbolConstructor:h("symbol-constructor",60044),symbolBoolean:h("symbol-boolean",60047),symbolNull:h("symbol-null",60047),symbolNumeric:h("symbol-numeric",60048),symbolNumber:h("symbol-number",60048),symbolStructure:h("symbol-structure",60049),symbolStruct:h("symbol-struct",60049),symbolParameter:h("symbol-parameter",60050),symbolTypeParameter:h("symbol-type-parameter",60050),symbolKey:h("symbol-key",60051),symbolText:h("symbol-text",60051),symbolReference:h("symbol-reference",60052),goToFile:h("go-to-file",60052),symbolEnum:h("symbol-enum",60053),symbolValue:h("symbol-value",60053),symbolRuler:h("symbol-ruler",60054),symbolUnit:h("symbol-unit",60054),activateBreakpoints:h("activate-breakpoints",60055),archive:h("archive",60056),arrowBoth:h("arrow-both",60057),arrowDown:h("arrow-down",60058),arrowLeft:h("arrow-left",60059),arrowRight:h("arrow-right",60060),arrowSmallDown:h("arrow-small-down",60061),arrowSmallLeft:h("arrow-small-left",60062),arrowSmallRight:h("arrow-small-right",60063),arrowSmallUp:h("arrow-small-up",60064),arrowUp:h("arrow-up",60065),bell:h("bell",60066),bold:h("bold",60067),book:h("book",60068),bookmark:h("bookmark",60069),debugBreakpointConditionalUnverified:h("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:h("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:h("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:h("debug-breakpoint-data-unverified",60072),debugBreakpointData:h("debug-breakpoint-data",60073),debugBreakpointDataDisabled:h("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:h("debug-breakpoint-log-unverified",60074),debugBreakpointLog:h("debug-breakpoint-log",60075),debugBreakpointLogDisabled:h("debug-breakpoint-log-disabled",60075),briefcase:h("briefcase",60076),broadcast:h("broadcast",60077),browser:h("browser",60078),bug:h("bug",60079),calendar:h("calendar",60080),caseSensitive:h("case-sensitive",60081),check:h("check",60082),checklist:h("checklist",60083),chevronDown:h("chevron-down",60084),chevronLeft:h("chevron-left",60085),chevronRight:h("chevron-right",60086),chevronUp:h("chevron-up",60087),chromeClose:h("chrome-close",60088),chromeMaximize:h("chrome-maximize",60089),chromeMinimize:h("chrome-minimize",60090),chromeRestore:h("chrome-restore",60091),circleOutline:h("circle-outline",60092),circle:h("circle",60092),debugBreakpointUnverified:h("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:h("terminal-decoration-incomplete",60092),circleSlash:h("circle-slash",60093),circuitBoard:h("circuit-board",60094),clearAll:h("clear-all",60095),clippy:h("clippy",60096),closeAll:h("close-all",60097),cloudDownload:h("cloud-download",60098),cloudUpload:h("cloud-upload",60099),code:h("code",60100),collapseAll:h("collapse-all",60101),colorMode:h("color-mode",60102),commentDiscussion:h("comment-discussion",60103),creditCard:h("credit-card",60105),dash:h("dash",60108),dashboard:h("dashboard",60109),database:h("database",60110),debugContinue:h("debug-continue",60111),debugDisconnect:h("debug-disconnect",60112),debugPause:h("debug-pause",60113),debugRestart:h("debug-restart",60114),debugStart:h("debug-start",60115),debugStepInto:h("debug-step-into",60116),debugStepOut:h("debug-step-out",60117),debugStepOver:h("debug-step-over",60118),debugStop:h("debug-stop",60119),debug:h("debug",60120),deviceCameraVideo:h("device-camera-video",60121),deviceCamera:h("device-camera",60122),deviceMobile:h("device-mobile",60123),diffAdded:h("diff-added",60124),diffIgnored:h("diff-ignored",60125),diffModified:h("diff-modified",60126),diffRemoved:h("diff-removed",60127),diffRenamed:h("diff-renamed",60128),diff:h("diff",60129),diffSidebyside:h("diff-sidebyside",60129),discard:h("discard",60130),editorLayout:h("editor-layout",60131),emptyWindow:h("empty-window",60132),exclude:h("exclude",60133),extensions:h("extensions",60134),eyeClosed:h("eye-closed",60135),fileBinary:h("file-binary",60136),fileCode:h("file-code",60137),fileMedia:h("file-media",60138),filePdf:h("file-pdf",60139),fileSubmodule:h("file-submodule",60140),fileSymlinkDirectory:h("file-symlink-directory",60141),fileSymlinkFile:h("file-symlink-file",60142),fileZip:h("file-zip",60143),files:h("files",60144),filter:h("filter",60145),flame:h("flame",60146),foldDown:h("fold-down",60147),foldUp:h("fold-up",60148),fold:h("fold",60149),folderActive:h("folder-active",60150),folderOpened:h("folder-opened",60151),gear:h("gear",60152),gift:h("gift",60153),gistSecret:h("gist-secret",60154),gist:h("gist",60155),gitCommit:h("git-commit",60156),gitCompare:h("git-compare",60157),compareChanges:h("compare-changes",60157),gitMerge:h("git-merge",60158),githubAction:h("github-action",60159),githubAlt:h("github-alt",60160),globe:h("globe",60161),grabber:h("grabber",60162),graph:h("graph",60163),gripper:h("gripper",60164),heart:h("heart",60165),home:h("home",60166),horizontalRule:h("horizontal-rule",60167),hubot:h("hubot",60168),inbox:h("inbox",60169),issueReopened:h("issue-reopened",60171),issues:h("issues",60172),italic:h("italic",60173),jersey:h("jersey",60174),json:h("json",60175),bracket:h("bracket",60175),kebabVertical:h("kebab-vertical",60176),key:h("key",60177),law:h("law",60178),lightbulbAutofix:h("lightbulb-autofix",60179),linkExternal:h("link-external",60180),link:h("link",60181),listOrdered:h("list-ordered",60182),listUnordered:h("list-unordered",60183),liveShare:h("live-share",60184),loading:h("loading",60185),location:h("location",60186),mailRead:h("mail-read",60187),mail:h("mail",60188),markdown:h("markdown",60189),megaphone:h("megaphone",60190),mention:h("mention",60191),milestone:h("milestone",60192),gitPullRequestMilestone:h("git-pull-request-milestone",60192),mortarBoard:h("mortar-board",60193),move:h("move",60194),multipleWindows:h("multiple-windows",60195),mute:h("mute",60196),noNewline:h("no-newline",60197),note:h("note",60198),octoface:h("octoface",60199),openPreview:h("open-preview",60200),package:h("package",60201),paintcan:h("paintcan",60202),pin:h("pin",60203),play:h("play",60204),run:h("run",60204),plug:h("plug",60205),preserveCase:h("preserve-case",60206),preview:h("preview",60207),project:h("project",60208),pulse:h("pulse",60209),question:h("question",60210),quote:h("quote",60211),radioTower:h("radio-tower",60212),reactions:h("reactions",60213),references:h("references",60214),refresh:h("refresh",60215),regex:h("regex",60216),remoteExplorer:h("remote-explorer",60217),remote:h("remote",60218),remove:h("remove",60219),replaceAll:h("replace-all",60220),replace:h("replace",60221),repoClone:h("repo-clone",60222),repoForcePush:h("repo-force-push",60223),repoPull:h("repo-pull",60224),repoPush:h("repo-push",60225),report:h("report",60226),requestChanges:h("request-changes",60227),rocket:h("rocket",60228),rootFolderOpened:h("root-folder-opened",60229),rootFolder:h("root-folder",60230),rss:h("rss",60231),ruby:h("ruby",60232),saveAll:h("save-all",60233),saveAs:h("save-as",60234),save:h("save",60235),screenFull:h("screen-full",60236),screenNormal:h("screen-normal",60237),searchStop:h("search-stop",60238),server:h("server",60240),settingsGear:h("settings-gear",60241),settings:h("settings",60242),shield:h("shield",60243),smiley:h("smiley",60244),sortPrecedence:h("sort-precedence",60245),splitHorizontal:h("split-horizontal",60246),splitVertical:h("split-vertical",60247),squirrel:h("squirrel",60248),starFull:h("star-full",60249),starHalf:h("star-half",60250),symbolClass:h("symbol-class",60251),symbolColor:h("symbol-color",60252),symbolConstant:h("symbol-constant",60253),symbolEnumMember:h("symbol-enum-member",60254),symbolField:h("symbol-field",60255),symbolFile:h("symbol-file",60256),symbolInterface:h("symbol-interface",60257),symbolKeyword:h("symbol-keyword",60258),symbolMisc:h("symbol-misc",60259),symbolOperator:h("symbol-operator",60260),symbolProperty:h("symbol-property",60261),wrench:h("wrench",60261),wrenchSubaction:h("wrench-subaction",60261),symbolSnippet:h("symbol-snippet",60262),tasklist:h("tasklist",60263),telescope:h("telescope",60264),textSize:h("text-size",60265),threeBars:h("three-bars",60266),thumbsdown:h("thumbsdown",60267),thumbsup:h("thumbsup",60268),tools:h("tools",60269),triangleDown:h("triangle-down",60270),triangleLeft:h("triangle-left",60271),triangleRight:h("triangle-right",60272),triangleUp:h("triangle-up",60273),twitter:h("twitter",60274),unfold:h("unfold",60275),unlock:h("unlock",60276),unmute:h("unmute",60277),unverified:h("unverified",60278),verified:h("verified",60279),versions:h("versions",60280),vmActive:h("vm-active",60281),vmOutline:h("vm-outline",60282),vmRunning:h("vm-running",60283),watch:h("watch",60284),whitespace:h("whitespace",60285),wholeWord:h("whole-word",60286),window:h("window",60287),wordWrap:h("word-wrap",60288),zoomIn:h("zoom-in",60289),zoomOut:h("zoom-out",60290),listFilter:h("list-filter",60291),listFlat:h("list-flat",60292),listSelection:h("list-selection",60293),selection:h("selection",60293),listTree:h("list-tree",60294),debugBreakpointFunctionUnverified:h("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:h("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:h("debug-breakpoint-function-disabled",60296),debugStackframeActive:h("debug-stackframe-active",60297),circleSmallFilled:h("circle-small-filled",60298),debugStackframeDot:h("debug-stackframe-dot",60298),terminalDecorationMark:h("terminal-decoration-mark",60298),debugStackframe:h("debug-stackframe",60299),debugStackframeFocused:h("debug-stackframe-focused",60299),debugBreakpointUnsupported:h("debug-breakpoint-unsupported",60300),symbolString:h("symbol-string",60301),debugReverseContinue:h("debug-reverse-continue",60302),debugStepBack:h("debug-step-back",60303),debugRestartFrame:h("debug-restart-frame",60304),debugAlt:h("debug-alt",60305),callIncoming:h("call-incoming",60306),callOutgoing:h("call-outgoing",60307),menu:h("menu",60308),expandAll:h("expand-all",60309),feedback:h("feedback",60310),gitPullRequestReviewer:h("git-pull-request-reviewer",60310),groupByRefType:h("group-by-ref-type",60311),ungroupByRefType:h("ungroup-by-ref-type",60312),account:h("account",60313),gitPullRequestAssignee:h("git-pull-request-assignee",60313),bellDot:h("bell-dot",60314),debugConsole:h("debug-console",60315),library:h("library",60316),output:h("output",60317),runAll:h("run-all",60318),syncIgnored:h("sync-ignored",60319),pinned:h("pinned",60320),githubInverted:h("github-inverted",60321),serverProcess:h("server-process",60322),serverEnvironment:h("server-environment",60323),pass:h("pass",60324),issueClosed:h("issue-closed",60324),stopCircle:h("stop-circle",60325),playCircle:h("play-circle",60326),record:h("record",60327),debugAltSmall:h("debug-alt-small",60328),vmConnect:h("vm-connect",60329),cloud:h("cloud",60330),merge:h("merge",60331),export:h("export",60332),graphLeft:h("graph-left",60333),magnet:h("magnet",60334),notebook:h("notebook",60335),redo:h("redo",60336),checkAll:h("check-all",60337),pinnedDirty:h("pinned-dirty",60338),passFilled:h("pass-filled",60339),circleLargeFilled:h("circle-large-filled",60340),circleLarge:h("circle-large",60341),circleLargeOutline:h("circle-large-outline",60341),combine:h("combine",60342),gather:h("gather",60342),table:h("table",60343),variableGroup:h("variable-group",60344),typeHierarchy:h("type-hierarchy",60345),typeHierarchySub:h("type-hierarchy-sub",60346),typeHierarchySuper:h("type-hierarchy-super",60347),gitPullRequestCreate:h("git-pull-request-create",60348),runAbove:h("run-above",60349),runBelow:h("run-below",60350),notebookTemplate:h("notebook-template",60351),debugRerun:h("debug-rerun",60352),workspaceTrusted:h("workspace-trusted",60353),workspaceUntrusted:h("workspace-untrusted",60354),workspaceUnknown:h("workspace-unknown",60355),terminalCmd:h("terminal-cmd",60356),terminalDebian:h("terminal-debian",60357),terminalLinux:h("terminal-linux",60358),terminalPowershell:h("terminal-powershell",60359),terminalTmux:h("terminal-tmux",60360),terminalUbuntu:h("terminal-ubuntu",60361),terminalBash:h("terminal-bash",60362),arrowSwap:h("arrow-swap",60363),copy:h("copy",60364),personAdd:h("person-add",60365),filterFilled:h("filter-filled",60366),wand:h("wand",60367),debugLineByLine:h("debug-line-by-line",60368),inspect:h("inspect",60369),layers:h("layers",60370),layersDot:h("layers-dot",60371),layersActive:h("layers-active",60372),compass:h("compass",60373),compassDot:h("compass-dot",60374),compassActive:h("compass-active",60375),azure:h("azure",60376),issueDraft:h("issue-draft",60377),gitPullRequestClosed:h("git-pull-request-closed",60378),gitPullRequestDraft:h("git-pull-request-draft",60379),debugAll:h("debug-all",60380),debugCoverage:h("debug-coverage",60381),runErrors:h("run-errors",60382),folderLibrary:h("folder-library",60383),debugContinueSmall:h("debug-continue-small",60384),beakerStop:h("beaker-stop",60385),graphLine:h("graph-line",60386),graphScatter:h("graph-scatter",60387),pieChart:h("pie-chart",60388),bracketDot:h("bracket-dot",60389),bracketError:h("bracket-error",60390),lockSmall:h("lock-small",60391),azureDevops:h("azure-devops",60392),verifiedFilled:h("verified-filled",60393),newline:h("newline",60394),layout:h("layout",60395),layoutActivitybarLeft:h("layout-activitybar-left",60396),layoutActivitybarRight:h("layout-activitybar-right",60397),layoutPanelLeft:h("layout-panel-left",60398),layoutPanelCenter:h("layout-panel-center",60399),layoutPanelJustify:h("layout-panel-justify",60400),layoutPanelRight:h("layout-panel-right",60401),layoutPanel:h("layout-panel",60402),layoutSidebarLeft:h("layout-sidebar-left",60403),layoutSidebarRight:h("layout-sidebar-right",60404),layoutStatusbar:h("layout-statusbar",60405),layoutMenubar:h("layout-menubar",60406),layoutCentered:h("layout-centered",60407),target:h("target",60408),indent:h("indent",60409),recordSmall:h("record-small",60410),errorSmall:h("error-small",60411),terminalDecorationError:h("terminal-decoration-error",60411),arrowCircleDown:h("arrow-circle-down",60412),arrowCircleLeft:h("arrow-circle-left",60413),arrowCircleRight:h("arrow-circle-right",60414),arrowCircleUp:h("arrow-circle-up",60415),layoutSidebarRightOff:h("layout-sidebar-right-off",60416),layoutPanelOff:h("layout-panel-off",60417),layoutSidebarLeftOff:h("layout-sidebar-left-off",60418),blank:h("blank",60419),heartFilled:h("heart-filled",60420),map:h("map",60421),mapHorizontal:h("map-horizontal",60421),foldHorizontal:h("fold-horizontal",60421),mapFilled:h("map-filled",60422),mapHorizontalFilled:h("map-horizontal-filled",60422),foldHorizontalFilled:h("fold-horizontal-filled",60422),circleSmall:h("circle-small",60423),bellSlash:h("bell-slash",60424),bellSlashDot:h("bell-slash-dot",60425),commentUnresolved:h("comment-unresolved",60426),gitPullRequestGoToChanges:h("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:h("git-pull-request-new-changes",60428),searchFuzzy:h("search-fuzzy",60429),commentDraft:h("comment-draft",60430),send:h("send",60431),sparkle:h("sparkle",60432),insert:h("insert",60433),mic:h("mic",60434),thumbsdownFilled:h("thumbsdown-filled",60435),thumbsupFilled:h("thumbsup-filled",60436),coffee:h("coffee",60437),snake:h("snake",60438),game:h("game",60439),vr:h("vr",60440),chip:h("chip",60441),piano:h("piano",60442),music:h("music",60443),micFilled:h("mic-filled",60444),repoFetch:h("repo-fetch",60445),copilot:h("copilot",60446),lightbulbSparkle:h("lightbulb-sparkle",60447),robot:h("robot",60448),sparkleFilled:h("sparkle-filled",60449),diffSingle:h("diff-single",60450),diffMultiple:h("diff-multiple",60451),surroundWith:h("surround-with",60452),share:h("share",60453),gitStash:h("git-stash",60454),gitStashApply:h("git-stash-apply",60455),gitStashPop:h("git-stash-pop",60456),vscode:h("vscode",60457),vscodeInsiders:h("vscode-insiders",60458),codeOss:h("code-oss",60459),runCoverage:h("run-coverage",60460),runAllCoverage:h("run-all-coverage",60461),coverage:h("coverage",60462),githubProject:h("github-project",60463),mapVertical:h("map-vertical",60464),foldVertical:h("fold-vertical",60464),mapVerticalFilled:h("map-vertical-filled",60465),foldVerticalFilled:h("fold-vertical-filled",60465),goToSearch:h("go-to-search",60466),percentage:h("percentage",60467),sortPercentage:h("sort-percentage",60467),attach:h("attach",60468),goToEditingSession:h("go-to-editing-session",60469),editSession:h("edit-session",60470),codeReview:h("code-review",60471),copilotWarning:h("copilot-warning",60472),python:h("python",60473),copilotLarge:h("copilot-large",60474),copilotWarningLarge:h("copilot-warning-large",60475),keyboardTab:h("keyboard-tab",60476),copilotBlocked:h("copilot-blocked",60477),copilotNotConnected:h("copilot-not-connected",60478),flag:h("flag",60479),lightbulbEmpty:h("lightbulb-empty",60480),symbolMethodArrow:h("symbol-method-arrow",60481),copilotUnavailable:h("copilot-unavailable",60482),repoPinned:h("repo-pinned",60483),keyboardTabAbove:h("keyboard-tab-above",60484),keyboardTabBelow:h("keyboard-tab-below",60485),gitPullRequestDone:h("git-pull-request-done",60486),mcp:h("mcp",60487),extensionsLarge:h("extensions-large",60488),layoutPanelDock:h("layout-panel-dock",60489),layoutSidebarLeftDock:h("layout-sidebar-left-dock",60490),layoutSidebarRightDock:h("layout-sidebar-right-dock",60491),copilotInProgress:h("copilot-in-progress",60492),copilotError:h("copilot-error",60493),copilotSuccess:h("copilot-success",60494),chatSparkle:h("chat-sparkle",60495),searchSparkle:h("search-sparkle",60496),editSparkle:h("edit-sparkle",60497),copilotSnooze:h("copilot-snooze",60498),sendToRemoteAgent:h("send-to-remote-agent",60499),commentDiscussionSparkle:h("comment-discussion-sparkle",60500),chatSparkleWarning:h("chat-sparkle-warning",60501),chatSparkleError:h("chat-sparkle-error",60502),collection:h("collection",60503),newCollection:h("new-collection",60504),thinking:h("thinking",60505),build:h("build",60506),commentDiscussionQuote:h("comment-discussion-quote",60507),cursor:h("cursor",60508),eraser:h("eraser",60509),fileText:h("file-text",60510),quotes:h("quotes",60512),rename:h("rename",60513),runWithDeps:h("run-with-deps",60514),debugConnected:h("debug-connected",60515),strikethrough:h("strikethrough",60516),openInProduct:h("open-in-product",60517),indexZero:h("index-zero",60518),agent:h("agent",60519),editCode:h("edit-code",60520),repoSelected:h("repo-selected",60521),skip:h("skip",60522),mergeInto:h("merge-into",60523),gitBranchChanges:h("git-branch-changes",60524),gitBranchStagedChanges:h("git-branch-staged-changes",60525),gitBranchConflicts:h("git-branch-conflicts",60526),gitBranch:h("git-branch",60527),gitBranchCreate:h("git-branch-create",60527),gitBranchDelete:h("git-branch-delete",60527),searchLarge:h("search-large",60528),terminalGitBash:h("terminal-git-bash",60529),windowActive:h("window-active",60530),forward:h("forward",60531),download:h("download",60532),clockface:h("clockface",60533),unarchive:h("unarchive",60534),sessionInProgress:h("session-in-progress",60535),collectionSmall:h("collection-small",60536),vmSmall:h("vm-small",60537),cloudSmall:h("cloud-small",60538),addSmall:h("add-small",60539),removeSmall:h("remove-small",60540),worktreeSmall:h("worktree-small",60541),worktree:h("worktree",60542)},Rl={dialogError:h("dialog-error","error"),dialogWarning:h("dialog-warning","warning"),dialogInfo:h("dialog-info","info"),dialogClose:h("dialog-close","close"),treeItemExpanded:h("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:h("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:h("tree-filter-on-type-off","list-selection"),treeFilterClear:h("tree-filter-clear","close"),treeItemLoading:h("tree-item-loading","loading"),menuSelection:h("menu-selection","check"),menuSubmenu:h("menu-submenu","chevron-right"),menuBarMore:h("menubar-more","more"),scrollbarButtonLeft:h("scrollbar-button-left","triangle-left"),scrollbarButtonRight:h("scrollbar-button-right","triangle-right"),scrollbarButtonUp:h("scrollbar-button-up","triangle-up"),scrollbarButtonDown:h("scrollbar-button-down","triangle-down"),toolBarMore:h("toolbar-more","more"),quickInputBack:h("quick-input-back","arrow-left"),dropDownButton:h("drop-down-button",60084),symbolCustomColor:h("symbol-customcolor",60252),exportIcon:h("export",60332),workspaceUnspecified:h("workspace-unspecified",60355),newLine:h("newline",60394),thumbsDownFilled:h("thumbsdown-filled",60435),thumbsUpFilled:h("thumbsup-filled",60436),gitFetch:h("git-fetch",60445),lightbulbSparkleAutofix:h("lightbulb-sparkle-autofix",60447),debugBreakpointPending:h("debug-breakpoint-pending",60377)},q={...El,...Rl};class Dl{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new Se,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})}register(e,n){return this._tokenizationSupports.set(e,n),this.handleChange([e]),$t(()=>{this._tokenizationSupports.get(e)===n&&(this._tokenizationSupports.delete(e),this.handleChange([e]))})}get(e){return this._tokenizationSupports.get(e)||null}registerFactory(e,n){this._factories.get(e)?.dispose();const i=new Ml(this,e,n);return this._factories.set(e,i),$t(()=>{const r=this._factories.get(e);!r||r!==i||(this._factories.delete(e),r.dispose())})}async getOrCreate(e){const n=this.get(e);if(n)return n;const i=this._factories.get(e);return!i||i.isResolved?null:(await i.resolve(),this.get(e))}isResolved(e){if(this.get(e))return!0;const i=this._factories.get(e);return!!(!i||i.isResolved)}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}}class Ml extends Xe{get isResolved(){return this._isResolved}constructor(e,n,i){super(),this._registry=e,this._languageId=n,this._factory=i,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}async _create(){const e=await this._factory.tokenizationSupport;this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))}}class Nl{constructor(e,n,i){this.offset=e,this.type=n,this.language=i,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}var lr;(function(t){t[t.Increase=0]="Increase",t[t.Decrease=1]="Decrease"})(lr||(lr={}));var ur;(function(t){const e=new Map;e.set(0,q.symbolMethod),e.set(1,q.symbolFunction),e.set(2,q.symbolConstructor),e.set(3,q.symbolField),e.set(4,q.symbolVariable),e.set(5,q.symbolClass),e.set(6,q.symbolStruct),e.set(7,q.symbolInterface),e.set(8,q.symbolModule),e.set(9,q.symbolProperty),e.set(10,q.symbolEvent),e.set(11,q.symbolOperator),e.set(12,q.symbolUnit),e.set(13,q.symbolValue),e.set(15,q.symbolEnum),e.set(14,q.symbolConstant),e.set(15,q.symbolEnum),e.set(16,q.symbolEnumMember),e.set(17,q.symbolKeyword),e.set(28,q.symbolSnippet),e.set(18,q.symbolText),e.set(19,q.symbolColor),e.set(20,q.symbolFile),e.set(21,q.symbolReference),e.set(22,q.symbolCustomColor),e.set(23,q.symbolFolder),e.set(24,q.symbolTypeParameter),e.set(25,q.account),e.set(26,q.issues),e.set(27,q.tools);function n(a){let l=e.get(a);return l||(console.info("No codicon found for CompletionItemKind "+a),l=q.symbolProperty),l}t.toIcon=n;function i(a){switch(a){case 0:return O(736,"Method");case 1:return O(737,"Function");case 2:return O(738,"Constructor");case 3:return O(739,"Field");case 4:return O(740,"Variable");case 5:return O(741,"Class");case 6:return O(742,"Struct");case 7:return O(743,"Interface");case 8:return O(744,"Module");case 9:return O(745,"Property");case 10:return O(746,"Event");case 11:return O(747,"Operator");case 12:return O(748,"Unit");case 13:return O(749,"Value");case 14:return O(750,"Constant");case 15:return O(751,"Enum");case 16:return O(752,"Enum Member");case 17:return O(753,"Keyword");case 18:return O(754,"Text");case 19:return O(755,"Color");case 20:return O(756,"File");case 21:return O(757,"Reference");case 22:return O(758,"Custom Color");case 23:return O(759,"Folder");case 24:return O(760,"Type Parameter");case 25:return O(761,"User");case 26:return O(762,"Issue");case 27:return O(763,"Tool");case 28:return O(764,"Snippet");default:return""}}t.toLabel=i;const r=new Map;r.set("method",0),r.set("function",1),r.set("constructor",2),r.set("field",3),r.set("variable",4),r.set("class",5),r.set("struct",6),r.set("interface",7),r.set("module",8),r.set("property",9),r.set("event",10),r.set("operator",11),r.set("unit",12),r.set("value",13),r.set("constant",14),r.set("enum",15),r.set("enum-member",16),r.set("enumMember",16),r.set("keyword",17),r.set("snippet",28),r.set("text",18),r.set("color",19),r.set("file",20),r.set("reference",21),r.set("customcolor",22),r.set("folder",23),r.set("type-parameter",24),r.set("typeParameter",24),r.set("account",25),r.set("issue",26),r.set("tool",27);function s(a,l){let o=r.get(a);return typeof o>"u"&&!l&&(o=9),o}t.fromString=s})(ur||(ur={}));var cr;(function(t){t[t.Automatic=0]="Automatic",t[t.Explicit=1]="Explicit"})(cr||(cr={}));var hr;(function(t){t[t.Code=1]="Code",t[t.Label=2]="Label"})(hr||(hr={}));var dr;(function(t){t[t.Accepted=0]="Accepted",t[t.Rejected=1]="Rejected",t[t.Ignored=2]="Ignored"})(dr||(dr={}));var mr;(function(t){t[t.Automatic=0]="Automatic",t[t.PasteAs=1]="PasteAs"})(mr||(mr={}));var fr;(function(t){t[t.Invoke=1]="Invoke",t[t.TriggerCharacter=2]="TriggerCharacter",t[t.ContentChange=3]="ContentChange"})(fr||(fr={}));var pr;(function(t){t[t.Text=0]="Text",t[t.Read=1]="Read",t[t.Write=2]="Write"})(pr||(pr={})),O(765,"array"),O(766,"boolean"),O(767,"class"),O(768,"constant"),O(769,"constructor"),O(770,"enumeration"),O(771,"enumeration member"),O(772,"event"),O(773,"field"),O(774,"file"),O(775,"function"),O(776,"interface"),O(777,"key"),O(778,"method"),O(779,"module"),O(780,"namespace"),O(781,"null"),O(782,"number"),O(783,"object"),O(784,"operator"),O(785,"package"),O(786,"property"),O(787,"string"),O(788,"struct"),O(789,"type parameter"),O(790,"variable");var gr;(function(t){const e=new Map;e.set(0,q.symbolFile),e.set(1,q.symbolModule),e.set(2,q.symbolNamespace),e.set(3,q.symbolPackage),e.set(4,q.symbolClass),e.set(5,q.symbolMethod),e.set(6,q.symbolProperty),e.set(7,q.symbolField),e.set(8,q.symbolConstructor),e.set(9,q.symbolEnum),e.set(10,q.symbolInterface),e.set(11,q.symbolFunction),e.set(12,q.symbolVariable),e.set(13,q.symbolConstant),e.set(14,q.symbolString),e.set(15,q.symbolNumber),e.set(16,q.symbolBoolean),e.set(17,q.symbolArray),e.set(18,q.symbolObject),e.set(19,q.symbolKey),e.set(20,q.symbolNull),e.set(21,q.symbolEnumMember),e.set(22,q.symbolStruct),e.set(23,q.symbolEvent),e.set(24,q.symbolOperator),e.set(25,q.symbolTypeParameter);function n(s){let a=e.get(s);return a||(console.info("No codicon found for SymbolKind "+s),a=q.symbolProperty),a}t.toIcon=n;const i=new Map;i.set(0,20),i.set(1,8),i.set(2,8),i.set(3,8),i.set(4,5),i.set(5,0),i.set(6,9),i.set(7,3),i.set(8,2),i.set(9,15),i.set(10,7),i.set(11,1),i.set(12,4),i.set(13,14),i.set(14,18),i.set(15,13),i.set(16,13),i.set(17,13),i.set(18,13),i.set(19,17),i.set(20,13),i.set(21,16),i.set(22,6),i.set(23,10),i.set(24,11),i.set(25,24);function r(s){let a=i.get(s);return a===void 0&&(console.info("No completion kind found for SymbolKind "+s),a=20),a}t.toCompletionKind=r})(gr||(gr={}));let ch=(me=class{static fromValue(e){switch(e){case"comment":return me.Comment;case"imports":return me.Imports;case"region":return me.Region}return new me(e)}constructor(e){this.value=e}},me.Comment=new me("comment"),me.Imports=new me("imports"),me.Region=new me("region"),me);var br;(function(t){t[t.AIGenerated=1]="AIGenerated"})(br||(br={}));var wr;(function(t){t[t.Invoke=0]="Invoke",t[t.Automatic=1]="Automatic"})(wr||(wr={}));var _r;(function(t){function e(n){return!n||typeof n!="object"?!1:typeof n.id=="string"&&typeof n.title=="string"}t.is=e})(_r||(_r={}));var vr;(function(t){t[t.Type=1]="Type",t[t.Parameter=2]="Parameter"})(vr||(vr={})),new Dl;var yr;(function(t){t[t.Unknown=0]="Unknown",t[t.Disabled=1]="Disabled",t[t.Enabled=2]="Enabled"})(yr||(yr={}));var Tr;(function(t){t[t.Invoke=1]="Invoke",t[t.Auto=2]="Auto"})(Tr||(Tr={}));var xr;(function(t){t[t.None=0]="None",t[t.KeepWhitespace=1]="KeepWhitespace",t[t.InsertAsSnippet=4]="InsertAsSnippet"})(xr||(xr={}));var kr;(function(t){t[t.Method=0]="Method",t[t.Function=1]="Function",t[t.Constructor=2]="Constructor",t[t.Field=3]="Field",t[t.Variable=4]="Variable",t[t.Class=5]="Class",t[t.Struct=6]="Struct",t[t.Interface=7]="Interface",t[t.Module=8]="Module",t[t.Property=9]="Property",t[t.Event=10]="Event",t[t.Operator=11]="Operator",t[t.Unit=12]="Unit",t[t.Value=13]="Value",t[t.Constant=14]="Constant",t[t.Enum=15]="Enum",t[t.EnumMember=16]="EnumMember",t[t.Keyword=17]="Keyword",t[t.Text=18]="Text",t[t.Color=19]="Color",t[t.File=20]="File",t[t.Reference=21]="Reference",t[t.Customcolor=22]="Customcolor",t[t.Folder=23]="Folder",t[t.TypeParameter=24]="TypeParameter",t[t.User=25]="User",t[t.Issue=26]="Issue",t[t.Tool=27]="Tool",t[t.Snippet=28]="Snippet"})(kr||(kr={}));var Sr;(function(t){t[t.Deprecated=1]="Deprecated"})(Sr||(Sr={}));var Ar;(function(t){t[t.Invoke=0]="Invoke",t[t.TriggerCharacter=1]="TriggerCharacter",t[t.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(Ar||(Ar={}));var Lr;(function(t){t[t.EXACT=0]="EXACT",t[t.ABOVE=1]="ABOVE",t[t.BELOW=2]="BELOW"})(Lr||(Lr={}));var Cr;(function(t){t[t.NotSet=0]="NotSet",t[t.ContentFlush=1]="ContentFlush",t[t.RecoverFromMarkers=2]="RecoverFromMarkers",t[t.Explicit=3]="Explicit",t[t.Paste=4]="Paste",t[t.Undo=5]="Undo",t[t.Redo=6]="Redo"})(Cr||(Cr={}));var Er;(function(t){t[t.LF=1]="LF",t[t.CRLF=2]="CRLF"})(Er||(Er={}));var Rr;(function(t){t[t.Text=0]="Text",t[t.Read=1]="Read",t[t.Write=2]="Write"})(Rr||(Rr={}));var Dr;(function(t){t[t.None=0]="None",t[t.Keep=1]="Keep",t[t.Brackets=2]="Brackets",t[t.Advanced=3]="Advanced",t[t.Full=4]="Full"})(Dr||(Dr={}));var Mr;(function(t){t[t.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",t[t.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",t[t.accessibilitySupport=2]="accessibilitySupport",t[t.accessibilityPageSize=3]="accessibilityPageSize",t[t.allowOverflow=4]="allowOverflow",t[t.allowVariableLineHeights=5]="allowVariableLineHeights",t[t.allowVariableFonts=6]="allowVariableFonts",t[t.allowVariableFontsInAccessibilityMode=7]="allowVariableFontsInAccessibilityMode",t[t.ariaLabel=8]="ariaLabel",t[t.ariaRequired=9]="ariaRequired",t[t.autoClosingBrackets=10]="autoClosingBrackets",t[t.autoClosingComments=11]="autoClosingComments",t[t.screenReaderAnnounceInlineSuggestion=12]="screenReaderAnnounceInlineSuggestion",t[t.autoClosingDelete=13]="autoClosingDelete",t[t.autoClosingOvertype=14]="autoClosingOvertype",t[t.autoClosingQuotes=15]="autoClosingQuotes",t[t.autoIndent=16]="autoIndent",t[t.autoIndentOnPaste=17]="autoIndentOnPaste",t[t.autoIndentOnPasteWithinString=18]="autoIndentOnPasteWithinString",t[t.automaticLayout=19]="automaticLayout",t[t.autoSurround=20]="autoSurround",t[t.bracketPairColorization=21]="bracketPairColorization",t[t.guides=22]="guides",t[t.codeLens=23]="codeLens",t[t.codeLensFontFamily=24]="codeLensFontFamily",t[t.codeLensFontSize=25]="codeLensFontSize",t[t.colorDecorators=26]="colorDecorators",t[t.colorDecoratorsLimit=27]="colorDecoratorsLimit",t[t.columnSelection=28]="columnSelection",t[t.comments=29]="comments",t[t.contextmenu=30]="contextmenu",t[t.copyWithSyntaxHighlighting=31]="copyWithSyntaxHighlighting",t[t.cursorBlinking=32]="cursorBlinking",t[t.cursorSmoothCaretAnimation=33]="cursorSmoothCaretAnimation",t[t.cursorStyle=34]="cursorStyle",t[t.cursorSurroundingLines=35]="cursorSurroundingLines",t[t.cursorSurroundingLinesStyle=36]="cursorSurroundingLinesStyle",t[t.cursorWidth=37]="cursorWidth",t[t.cursorHeight=38]="cursorHeight",t[t.disableLayerHinting=39]="disableLayerHinting",t[t.disableMonospaceOptimizations=40]="disableMonospaceOptimizations",t[t.domReadOnly=41]="domReadOnly",t[t.dragAndDrop=42]="dragAndDrop",t[t.dropIntoEditor=43]="dropIntoEditor",t[t.editContext=44]="editContext",t[t.emptySelectionClipboard=45]="emptySelectionClipboard",t[t.experimentalGpuAcceleration=46]="experimentalGpuAcceleration",t[t.experimentalWhitespaceRendering=47]="experimentalWhitespaceRendering",t[t.extraEditorClassName=48]="extraEditorClassName",t[t.fastScrollSensitivity=49]="fastScrollSensitivity",t[t.find=50]="find",t[t.fixedOverflowWidgets=51]="fixedOverflowWidgets",t[t.folding=52]="folding",t[t.foldingStrategy=53]="foldingStrategy",t[t.foldingHighlight=54]="foldingHighlight",t[t.foldingImportsByDefault=55]="foldingImportsByDefault",t[t.foldingMaximumRegions=56]="foldingMaximumRegions",t[t.unfoldOnClickAfterEndOfLine=57]="unfoldOnClickAfterEndOfLine",t[t.fontFamily=58]="fontFamily",t[t.fontInfo=59]="fontInfo",t[t.fontLigatures=60]="fontLigatures",t[t.fontSize=61]="fontSize",t[t.fontWeight=62]="fontWeight",t[t.fontVariations=63]="fontVariations",t[t.formatOnPaste=64]="formatOnPaste",t[t.formatOnType=65]="formatOnType",t[t.glyphMargin=66]="glyphMargin",t[t.gotoLocation=67]="gotoLocation",t[t.hideCursorInOverviewRuler=68]="hideCursorInOverviewRuler",t[t.hover=69]="hover",t[t.inDiffEditor=70]="inDiffEditor",t[t.inlineSuggest=71]="inlineSuggest",t[t.letterSpacing=72]="letterSpacing",t[t.lightbulb=73]="lightbulb",t[t.lineDecorationsWidth=74]="lineDecorationsWidth",t[t.lineHeight=75]="lineHeight",t[t.lineNumbers=76]="lineNumbers",t[t.lineNumbersMinChars=77]="lineNumbersMinChars",t[t.linkedEditing=78]="linkedEditing",t[t.links=79]="links",t[t.matchBrackets=80]="matchBrackets",t[t.minimap=81]="minimap",t[t.mouseStyle=82]="mouseStyle",t[t.mouseWheelScrollSensitivity=83]="mouseWheelScrollSensitivity",t[t.mouseWheelZoom=84]="mouseWheelZoom",t[t.multiCursorMergeOverlapping=85]="multiCursorMergeOverlapping",t[t.multiCursorModifier=86]="multiCursorModifier",t[t.mouseMiddleClickAction=87]="mouseMiddleClickAction",t[t.multiCursorPaste=88]="multiCursorPaste",t[t.multiCursorLimit=89]="multiCursorLimit",t[t.occurrencesHighlight=90]="occurrencesHighlight",t[t.occurrencesHighlightDelay=91]="occurrencesHighlightDelay",t[t.overtypeCursorStyle=92]="overtypeCursorStyle",t[t.overtypeOnPaste=93]="overtypeOnPaste",t[t.overviewRulerBorder=94]="overviewRulerBorder",t[t.overviewRulerLanes=95]="overviewRulerLanes",t[t.padding=96]="padding",t[t.pasteAs=97]="pasteAs",t[t.parameterHints=98]="parameterHints",t[t.peekWidgetDefaultFocus=99]="peekWidgetDefaultFocus",t[t.placeholder=100]="placeholder",t[t.definitionLinkOpensInPeek=101]="definitionLinkOpensInPeek",t[t.quickSuggestions=102]="quickSuggestions",t[t.quickSuggestionsDelay=103]="quickSuggestionsDelay",t[t.readOnly=104]="readOnly",t[t.readOnlyMessage=105]="readOnlyMessage",t[t.renameOnType=106]="renameOnType",t[t.renderRichScreenReaderContent=107]="renderRichScreenReaderContent",t[t.renderControlCharacters=108]="renderControlCharacters",t[t.renderFinalNewline=109]="renderFinalNewline",t[t.renderLineHighlight=110]="renderLineHighlight",t[t.renderLineHighlightOnlyWhenFocus=111]="renderLineHighlightOnlyWhenFocus",t[t.renderValidationDecorations=112]="renderValidationDecorations",t[t.renderWhitespace=113]="renderWhitespace",t[t.revealHorizontalRightPadding=114]="revealHorizontalRightPadding",t[t.roundedSelection=115]="roundedSelection",t[t.rulers=116]="rulers",t[t.scrollbar=117]="scrollbar",t[t.scrollBeyondLastColumn=118]="scrollBeyondLastColumn",t[t.scrollBeyondLastLine=119]="scrollBeyondLastLine",t[t.scrollPredominantAxis=120]="scrollPredominantAxis",t[t.selectionClipboard=121]="selectionClipboard",t[t.selectionHighlight=122]="selectionHighlight",t[t.selectionHighlightMaxLength=123]="selectionHighlightMaxLength",t[t.selectionHighlightMultiline=124]="selectionHighlightMultiline",t[t.selectOnLineNumbers=125]="selectOnLineNumbers",t[t.showFoldingControls=126]="showFoldingControls",t[t.showUnused=127]="showUnused",t[t.snippetSuggestions=128]="snippetSuggestions",t[t.smartSelect=129]="smartSelect",t[t.smoothScrolling=130]="smoothScrolling",t[t.stickyScroll=131]="stickyScroll",t[t.stickyTabStops=132]="stickyTabStops",t[t.stopRenderingLineAfter=133]="stopRenderingLineAfter",t[t.suggest=134]="suggest",t[t.suggestFontSize=135]="suggestFontSize",t[t.suggestLineHeight=136]="suggestLineHeight",t[t.suggestOnTriggerCharacters=137]="suggestOnTriggerCharacters",t[t.suggestSelection=138]="suggestSelection",t[t.tabCompletion=139]="tabCompletion",t[t.tabIndex=140]="tabIndex",t[t.trimWhitespaceOnDelete=141]="trimWhitespaceOnDelete",t[t.unicodeHighlighting=142]="unicodeHighlighting",t[t.unusualLineTerminators=143]="unusualLineTerminators",t[t.useShadowDOM=144]="useShadowDOM",t[t.useTabStops=145]="useTabStops",t[t.wordBreak=146]="wordBreak",t[t.wordSegmenterLocales=147]="wordSegmenterLocales",t[t.wordSeparators=148]="wordSeparators",t[t.wordWrap=149]="wordWrap",t[t.wordWrapBreakAfterCharacters=150]="wordWrapBreakAfterCharacters",t[t.wordWrapBreakBeforeCharacters=151]="wordWrapBreakBeforeCharacters",t[t.wordWrapColumn=152]="wordWrapColumn",t[t.wordWrapOverride1=153]="wordWrapOverride1",t[t.wordWrapOverride2=154]="wordWrapOverride2",t[t.wrappingIndent=155]="wrappingIndent",t[t.wrappingStrategy=156]="wrappingStrategy",t[t.showDeprecated=157]="showDeprecated",t[t.inertialScroll=158]="inertialScroll",t[t.inlayHints=159]="inlayHints",t[t.wrapOnEscapedLineFeeds=160]="wrapOnEscapedLineFeeds",t[t.effectiveCursorStyle=161]="effectiveCursorStyle",t[t.editorClassName=162]="editorClassName",t[t.pixelRatio=163]="pixelRatio",t[t.tabFocusMode=164]="tabFocusMode",t[t.layoutInfo=165]="layoutInfo",t[t.wrappingInfo=166]="wrappingInfo",t[t.defaultColorDecorators=167]="defaultColorDecorators",t[t.colorDecoratorsActivatedOn=168]="colorDecoratorsActivatedOn",t[t.inlineCompletionsAccessibilityVerbose=169]="inlineCompletionsAccessibilityVerbose",t[t.effectiveEditContext=170]="effectiveEditContext",t[t.scrollOnMiddleClick=171]="scrollOnMiddleClick",t[t.effectiveAllowVariableFonts=172]="effectiveAllowVariableFonts"})(Mr||(Mr={}));var Nr;(function(t){t[t.TextDefined=0]="TextDefined",t[t.LF=1]="LF",t[t.CRLF=2]="CRLF"})(Nr||(Nr={}));var Ir;(function(t){t[t.LF=0]="LF",t[t.CRLF=1]="CRLF"})(Ir||(Ir={}));var zr;(function(t){t[t.Left=1]="Left",t[t.Center=2]="Center",t[t.Right=3]="Right"})(zr||(zr={}));var Hr;(function(t){t[t.Increase=0]="Increase",t[t.Decrease=1]="Decrease"})(Hr||(Hr={}));var Ur;(function(t){t[t.None=0]="None",t[t.Indent=1]="Indent",t[t.IndentOutdent=2]="IndentOutdent",t[t.Outdent=3]="Outdent"})(Ur||(Ur={}));var Pr;(function(t){t[t.Both=0]="Both",t[t.Right=1]="Right",t[t.Left=2]="Left",t[t.None=3]="None"})(Pr||(Pr={}));var Wr;(function(t){t[t.Type=1]="Type",t[t.Parameter=2]="Parameter"})(Wr||(Wr={}));var Fr;(function(t){t[t.Accepted=0]="Accepted",t[t.Rejected=1]="Rejected",t[t.Ignored=2]="Ignored"})(Fr||(Fr={}));var Br;(function(t){t[t.Code=1]="Code",t[t.Label=2]="Label"})(Br||(Br={}));var qr;(function(t){t[t.Automatic=0]="Automatic",t[t.Explicit=1]="Explicit"})(qr||(qr={}));var Zn;(function(t){t[t.DependsOnKbLayout=-1]="DependsOnKbLayout",t[t.Unknown=0]="Unknown",t[t.Backspace=1]="Backspace",t[t.Tab=2]="Tab",t[t.Enter=3]="Enter",t[t.Shift=4]="Shift",t[t.Ctrl=5]="Ctrl",t[t.Alt=6]="Alt",t[t.PauseBreak=7]="PauseBreak",t[t.CapsLock=8]="CapsLock",t[t.Escape=9]="Escape",t[t.Space=10]="Space",t[t.PageUp=11]="PageUp",t[t.PageDown=12]="PageDown",t[t.End=13]="End",t[t.Home=14]="Home",t[t.LeftArrow=15]="LeftArrow",t[t.UpArrow=16]="UpArrow",t[t.RightArrow=17]="RightArrow",t[t.DownArrow=18]="DownArrow",t[t.Insert=19]="Insert",t[t.Delete=20]="Delete",t[t.Digit0=21]="Digit0",t[t.Digit1=22]="Digit1",t[t.Digit2=23]="Digit2",t[t.Digit3=24]="Digit3",t[t.Digit4=25]="Digit4",t[t.Digit5=26]="Digit5",t[t.Digit6=27]="Digit6",t[t.Digit7=28]="Digit7",t[t.Digit8=29]="Digit8",t[t.Digit9=30]="Digit9",t[t.KeyA=31]="KeyA",t[t.KeyB=32]="KeyB",t[t.KeyC=33]="KeyC",t[t.KeyD=34]="KeyD",t[t.KeyE=35]="KeyE",t[t.KeyF=36]="KeyF",t[t.KeyG=37]="KeyG",t[t.KeyH=38]="KeyH",t[t.KeyI=39]="KeyI",t[t.KeyJ=40]="KeyJ",t[t.KeyK=41]="KeyK",t[t.KeyL=42]="KeyL",t[t.KeyM=43]="KeyM",t[t.KeyN=44]="KeyN",t[t.KeyO=45]="KeyO",t[t.KeyP=46]="KeyP",t[t.KeyQ=47]="KeyQ",t[t.KeyR=48]="KeyR",t[t.KeyS=49]="KeyS",t[t.KeyT=50]="KeyT",t[t.KeyU=51]="KeyU",t[t.KeyV=52]="KeyV",t[t.KeyW=53]="KeyW",t[t.KeyX=54]="KeyX",t[t.KeyY=55]="KeyY",t[t.KeyZ=56]="KeyZ",t[t.Meta=57]="Meta",t[t.ContextMenu=58]="ContextMenu",t[t.F1=59]="F1",t[t.F2=60]="F2",t[t.F3=61]="F3",t[t.F4=62]="F4",t[t.F5=63]="F5",t[t.F6=64]="F6",t[t.F7=65]="F7",t[t.F8=66]="F8",t[t.F9=67]="F9",t[t.F10=68]="F10",t[t.F11=69]="F11",t[t.F12=70]="F12",t[t.F13=71]="F13",t[t.F14=72]="F14",t[t.F15=73]="F15",t[t.F16=74]="F16",t[t.F17=75]="F17",t[t.F18=76]="F18",t[t.F19=77]="F19",t[t.F20=78]="F20",t[t.F21=79]="F21",t[t.F22=80]="F22",t[t.F23=81]="F23",t[t.F24=82]="F24",t[t.NumLock=83]="NumLock",t[t.ScrollLock=84]="ScrollLock",t[t.Semicolon=85]="Semicolon",t[t.Equal=86]="Equal",t[t.Comma=87]="Comma",t[t.Minus=88]="Minus",t[t.Period=89]="Period",t[t.Slash=90]="Slash",t[t.Backquote=91]="Backquote",t[t.BracketLeft=92]="BracketLeft",t[t.Backslash=93]="Backslash",t[t.BracketRight=94]="BracketRight",t[t.Quote=95]="Quote",t[t.OEM_8=96]="OEM_8",t[t.IntlBackslash=97]="IntlBackslash",t[t.Numpad0=98]="Numpad0",t[t.Numpad1=99]="Numpad1",t[t.Numpad2=100]="Numpad2",t[t.Numpad3=101]="Numpad3",t[t.Numpad4=102]="Numpad4",t[t.Numpad5=103]="Numpad5",t[t.Numpad6=104]="Numpad6",t[t.Numpad7=105]="Numpad7",t[t.Numpad8=106]="Numpad8",t[t.Numpad9=107]="Numpad9",t[t.NumpadMultiply=108]="NumpadMultiply",t[t.NumpadAdd=109]="NumpadAdd",t[t.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",t[t.NumpadSubtract=111]="NumpadSubtract",t[t.NumpadDecimal=112]="NumpadDecimal",t[t.NumpadDivide=113]="NumpadDivide",t[t.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",t[t.ABNT_C1=115]="ABNT_C1",t[t.ABNT_C2=116]="ABNT_C2",t[t.AudioVolumeMute=117]="AudioVolumeMute",t[t.AudioVolumeUp=118]="AudioVolumeUp",t[t.AudioVolumeDown=119]="AudioVolumeDown",t[t.BrowserSearch=120]="BrowserSearch",t[t.BrowserHome=121]="BrowserHome",t[t.BrowserBack=122]="BrowserBack",t[t.BrowserForward=123]="BrowserForward",t[t.MediaTrackNext=124]="MediaTrackNext",t[t.MediaTrackPrevious=125]="MediaTrackPrevious",t[t.MediaStop=126]="MediaStop",t[t.MediaPlayPause=127]="MediaPlayPause",t[t.LaunchMediaPlayer=128]="LaunchMediaPlayer",t[t.LaunchMail=129]="LaunchMail",t[t.LaunchApp2=130]="LaunchApp2",t[t.Clear=131]="Clear",t[t.MAX_VALUE=132]="MAX_VALUE"})(Zn||(Zn={}));var Kn;(function(t){t[t.Hint=1]="Hint",t[t.Info=2]="Info",t[t.Warning=4]="Warning",t[t.Error=8]="Error"})(Kn||(Kn={}));var ei;(function(t){t[t.Unnecessary=1]="Unnecessary",t[t.Deprecated=2]="Deprecated"})(ei||(ei={}));var Or;(function(t){t[t.Inline=1]="Inline",t[t.Gutter=2]="Gutter"})(Or||(Or={}));var Vr;(function(t){t[t.Normal=1]="Normal",t[t.Underlined=2]="Underlined"})(Vr||(Vr={}));var jr;(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.TEXTAREA=1]="TEXTAREA",t[t.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",t[t.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",t[t.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",t[t.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",t[t.CONTENT_TEXT=6]="CONTENT_TEXT",t[t.CONTENT_EMPTY=7]="CONTENT_EMPTY",t[t.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",t[t.CONTENT_WIDGET=9]="CONTENT_WIDGET",t[t.OVERVIEW_RULER=10]="OVERVIEW_RULER",t[t.SCROLLBAR=11]="SCROLLBAR",t[t.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",t[t.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(jr||(jr={}));var $r;(function(t){t[t.AIGenerated=1]="AIGenerated"})($r||($r={}));var Gr;(function(t){t[t.Invoke=0]="Invoke",t[t.Automatic=1]="Automatic"})(Gr||(Gr={}));var Xr;(function(t){t[t.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",t[t.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",t[t.TOP_CENTER=2]="TOP_CENTER"})(Xr||(Xr={}));var Jr;(function(t){t[t.Left=1]="Left",t[t.Center=2]="Center",t[t.Right=4]="Right",t[t.Full=7]="Full"})(Jr||(Jr={}));var Qr;(function(t){t[t.Word=0]="Word",t[t.Line=1]="Line",t[t.Suggest=2]="Suggest"})(Qr||(Qr={}));var Yr;(function(t){t[t.Left=0]="Left",t[t.Right=1]="Right",t[t.None=2]="None",t[t.LeftOfInjectedText=3]="LeftOfInjectedText",t[t.RightOfInjectedText=4]="RightOfInjectedText"})(Yr||(Yr={}));var Zr;(function(t){t[t.Off=0]="Off",t[t.On=1]="On",t[t.Relative=2]="Relative",t[t.Interval=3]="Interval",t[t.Custom=4]="Custom"})(Zr||(Zr={}));var Kr;(function(t){t[t.None=0]="None",t[t.Text=1]="Text",t[t.Blocks=2]="Blocks"})(Kr||(Kr={}));var es;(function(t){t[t.Smooth=0]="Smooth",t[t.Immediate=1]="Immediate"})(es||(es={}));var ts;(function(t){t[t.Auto=1]="Auto",t[t.Hidden=2]="Hidden",t[t.Visible=3]="Visible"})(ts||(ts={}));var ti;(function(t){t[t.LTR=0]="LTR",t[t.RTL=1]="RTL"})(ti||(ti={}));var ns;(function(t){t.Off="off",t.OnCode="onCode",t.On="on"})(ns||(ns={}));var is;(function(t){t[t.Invoke=1]="Invoke",t[t.TriggerCharacter=2]="TriggerCharacter",t[t.ContentChange=3]="ContentChange"})(is||(is={}));var rs;(function(t){t[t.File=0]="File",t[t.Module=1]="Module",t[t.Namespace=2]="Namespace",t[t.Package=3]="Package",t[t.Class=4]="Class",t[t.Method=5]="Method",t[t.Property=6]="Property",t[t.Field=7]="Field",t[t.Constructor=8]="Constructor",t[t.Enum=9]="Enum",t[t.Interface=10]="Interface",t[t.Function=11]="Function",t[t.Variable=12]="Variable",t[t.Constant=13]="Constant",t[t.String=14]="String",t[t.Number=15]="Number",t[t.Boolean=16]="Boolean",t[t.Array=17]="Array",t[t.Object=18]="Object",t[t.Key=19]="Key",t[t.Null=20]="Null",t[t.EnumMember=21]="EnumMember",t[t.Struct=22]="Struct",t[t.Event=23]="Event",t[t.Operator=24]="Operator",t[t.TypeParameter=25]="TypeParameter"})(rs||(rs={}));var ss;(function(t){t[t.Deprecated=1]="Deprecated"})(ss||(ss={}));var as;(function(t){t[t.LTR=0]="LTR",t[t.RTL=1]="RTL"})(as||(as={}));var os;(function(t){t[t.Hidden=0]="Hidden",t[t.Blink=1]="Blink",t[t.Smooth=2]="Smooth",t[t.Phase=3]="Phase",t[t.Expand=4]="Expand",t[t.Solid=5]="Solid"})(os||(os={}));var ls;(function(t){t[t.Line=1]="Line",t[t.Block=2]="Block",t[t.Underline=3]="Underline",t[t.LineThin=4]="LineThin",t[t.BlockOutline=5]="BlockOutline",t[t.UnderlineThin=6]="UnderlineThin"})(ls||(ls={}));var us;(function(t){t[t.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",t[t.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",t[t.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",t[t.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(us||(us={}));var cs;(function(t){t[t.None=0]="None",t[t.Same=1]="Same",t[t.Indent=2]="Indent",t[t.DeepIndent=3]="DeepIndent"})(cs||(cs={}));const yt=class yt{static chord(e,n){return cl(e,n)}};yt.CtrlCmd=2048,yt.Shift=1024,yt.Alt=512,yt.WinCtrl=256;let ni=yt;function Il(){return{editor:void 0,languages:void 0,CancellationTokenSource:al,Emitter:Se,KeyCode:Zn,KeyMod:ni,Position:K,Range:j,Selection:we,SelectionDirection:ti,MarkerSeverity:Kn,MarkerTag:ei,Uri:Jn,Token:Nl}}var hs;class zl{constructor(){this[hs]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(e){return this._map.has(e)}get(e,n=0){const i=this._map.get(e);if(i)return n!==0&&this.touch(i,n),i.value}set(e,n,i=0){let r=this._map.get(e);if(r)r.value=n,i!==0&&this.touch(r,i);else{switch(r={key:e,value:n,next:void 0,previous:void 0},i){case 0:this.addItemLast(r);break;case 1:this.addItemFirst(r);break;case 2: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){const n=this._map.get(e);if(n)return this._map.delete(e),this.removeItem(n),this._size--,n.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,n){const i=this._state;let 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(){const e=this,n=this._state;let i=this._head;const r={[Symbol.iterator](){return r},next(){if(e._state!==n)throw new Error("LinkedMap got modified during iteration.");if(i){const s={value:i.key,done:!1};return i=i.next,s}else return{value:void 0,done:!0}}};return r}values(){const e=this,n=this._state;let i=this._head;const r={[Symbol.iterator](){return r},next(){if(e._state!==n)throw new Error("LinkedMap got modified during iteration.");if(i){const s={value:i.value,done:!1};return i=i.next,s}else return{value:void 0,done:!0}}};return r}entries(){const e=this,n=this._state;let i=this._head;const r={[Symbol.iterator](){return r},next(){if(e._state!==n)throw new Error("LinkedMap got modified during iteration.");if(i){const s={value:[i.key,i.value],done:!1};return i=i.next,s}else return{value:void 0,done:!0}}};return r}[(hs=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let n=this._head,i=this.size;for(;n&&i>e;)this._map.delete(n.key),n=n.next,i--;this._head=n,this._size=i,n&&(n.previous=void 0),this._state++}trimNew(e){if(e>=this.size)return;if(e===0){this.clear();return}let n=this._tail,i=this.size;for(;n&&i>e;)this._map.delete(n.key),n=n.previous,i--;this._tail=n,this._size=i,n&&(n.next=void 0),this._state++}addItemFirst(e){if(!this._head&&!this._tail)this._tail=e;else if(this._head)e.next=this._head,this._head.previous=e;else throw new Error("Invalid list");this._head=e,this._state++}addItemLast(e){if(!this._head&&!this._tail)this._head=e;else if(this._tail)e.previous=this._tail,this._tail.next=e;else throw new Error("Invalid list");this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const n=e.next,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!==1&&n!==2)){if(n===1){if(e===this._head)return;const 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===2){if(e===this._tail)return;const 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(){const e=[];return this.forEach((n,i)=>{e.push([i,n])}),e}fromJSON(e){this.clear();for(const[n,i]of e)this.set(n,i)}}class Hl extends zl{constructor(e,n=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,n),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get(e,n=2){return super.get(e,n)}peek(e){return super.get(e,0)}set(e,n){return super.set(e,n,2),this}checkTrim(){this.size>this._limit&&this.trim(Math.round(this._limit*this._ratio))}}class Ul extends Hl{constructor(e,n=1){super(e,n)}trim(e){this.trimOld(e)}set(e,n){return super.set(e,n),this.checkTrim(),this}}class Pl{constructor(){this.map=new Map}add(e,n){let i=this.map.get(e);i||(i=new Set,this.map.set(e,i)),i.add(n)}delete(e,n){const i=this.map.get(e);i&&(i.delete(n),i.size===0&&this.map.delete(e))}forEach(e,n){const i=this.map.get(e);i&&i.forEach(n)}}new Ul(10);var ds;(function(t){t[t.Left=1]="Left",t[t.Center=2]="Center",t[t.Right=4]="Right",t[t.Full=7]="Full"})(ds||(ds={}));var ms;(function(t){t[t.Left=1]="Left",t[t.Center=2]="Center",t[t.Right=3]="Right"})(ms||(ms={}));var fs;(function(t){t[t.LTR=0]="LTR",t[t.RTL=1]="RTL"})(fs||(fs={}));var ps;(function(t){t[t.Both=0]="Both",t[t.Right=1]="Right",t[t.Left=2]="Left",t[t.None=3]="None"})(ps||(ps={}));function Wl(t){if(!t||t.length===0)return!1;for(let e=0,n=t.length;e<n;e++){const i=t.charCodeAt(e);if(i===10)return!0;if(i===92){if(e++,e>=n)break;const r=t.charCodeAt(e);if(r===110||r===114||r===87)return!0}}return!1}function Fl(t,e,n,i,r){if(i===0)return!0;const s=e.charCodeAt(i-1);if(t.get(s)!==0||s===13||s===10)return!0;if(r>0){const a=e.charCodeAt(i);if(t.get(a)!==0)return!0}return!1}function Bl(t,e,n,i,r){if(i+r===n)return!0;const s=e.charCodeAt(i+r);if(t.get(s)!==0||s===13||s===10)return!0;if(r>0){const a=e.charCodeAt(i+r-1);if(t.get(a)!==0)return!0}return!1}function ql(t,e,n,i,r){return Fl(t,e,n,i,r)&&Bl(t,e,n,i,r)}class Ol{constructor(e,n){this._wordSeparators=e,this._searchRegex=n,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(e){const n=e.length;let i;do{if(this._prevMatchStartIndex+this._prevMatchLength===n||(i=this._searchRegex.exec(e),!i))return null;const r=i.index,s=i[0].length;if(r===this._prevMatchStartIndex&&s===this._prevMatchLength){if(s===0){qo(e,n,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=r,this._prevMatchLength=s,!this._wordSeparators||ql(this._wordSeparators,e,n,r,s))return i}while(i);return null}}const Vl="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function jl(t=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const n of Vl)t.indexOf(n)>=0||(e+="\\"+n);return e+="\\s]+)",new RegExp(e,"g")}const gs=jl();function bs(t){let e=gs;if(t&&t instanceof RegExp)if(t.global)e=t;else{let n="g";t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.unicode&&(n+="u"),e=new RegExp(t.source,n)}return e.lastIndex=0,e}const ws=new go;ws.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function ii(t,e,n,i,r){if(e=bs(e),r||(r=jt.first(ws)),n.length>r.maxLen){let u=t-r.maxLen/2;return u<0?u=0:i+=u,n=n.substring(u,t+r.maxLen/2),ii(t,e,n,i,r)}const s=Date.now(),a=t-1-i;let l=-1,o=null;for(let u=1;!(Date.now()-s>=r.timeBudget);u++){const c=a-r.windowSize*u;e.lastIndex=Math.max(0,c);const d=$l(e,n,a,l);if(!d&&o||(o=d,c<=0))break;l=c}if(o){const u={word:o[0],startColumn:i+1+o.index,endColumn:i+1+o.index+o[0].length};return e.lastIndex=0,u}return null}function $l(t,e,n,i){let r;for(;r=t.exec(e);){const s=r.index||0;if(s<=n&&t.lastIndex>=n)return r;if(i>0&&s>i)return null}return null}class Gl{static computeUnicodeHighlights(e,n,i){const r=i?i.startLineNumber:1,s=i?i.endLineNumber:e.getLineCount(),a=new _s(n),l=a.getCandidateCodePoints();let o;l==="allNonBasicAscii"?o=new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):o=new RegExp(`${Xl(Array.from(l))}`,"g");const u=new Ol(null,o),c=[];let d=!1,m,f=0,w=0,p=0;e:for(let T=r,y=s;T<=y;T++){const v=e.getLineContent(T),S=v.length;u.reset(0);do if(m=u.next(v),m){let I=m.index,H=m.index+m[0].length;if(I>0){const _=v.charCodeAt(I-1);Wn(_)&&I--}if(H+1<S){const _=v.charCodeAt(H-1);Wn(_)&&H++}const W=v.substring(I,H);let b=ii(I+1,gs,v,0);b&&b.endColumn<=I+1&&(b=null);const g=a.shouldHighlightNonBasicASCII(W,b?b.word:null);if(g!==0){if(g===3?f++:g===2?w++:g===1?p++:uo(),c.length>=1e3){d=!0;break e}c.push(new j(T,I+1,T,H+1))}}while(m)}return{ranges:c,hasMore:d,ambiguousCharacterCount:f,invisibleCharacterCount:w,nonBasicAsciiCharacterCount:p}}static computeUnicodeHighlightReason(e,n){const i=new _s(n);switch(i.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{const s=e.codePointAt(0),a=i.ambiguousCharacters.getPrimaryConfusable(s),l=At.getLocales().filter(o=>!At.getInstance(new Set([...n.allowedLocales,o])).isAmbiguous(s));return{kind:0,confusableWith:String.fromCodePoint(a),notAmbiguousInLocales:l}}case 1:return{kind:2}}}}function Xl(t,e){return`[${No(t.map(i=>String.fromCodePoint(i)).join(""))}]`}class _s{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=At.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const e=new Set;if(this.options.invisibleCharacters)for(const n of Lt.codePoints)vs(String.fromCodePoint(n))||e.add(n);if(this.options.ambiguousCharacters)for(const n of this.ambiguousCharacters.getConfusableCodePoints())e.add(n);for(const n of this.allowedCodePoints)e.delete(n);return e}shouldHighlightNonBasicASCII(e,n){const i=e.codePointAt(0);if(this.allowedCodePoints.has(i))return 0;if(this.options.nonBasicASCII)return 1;let r=!1,s=!1;if(n)for(const a of n){const l=a.codePointAt(0),o=Vo(a);r=r||o,!o&&!this.ambiguousCharacters.isAmbiguous(l)&&!Lt.isInvisibleCharacter(l)&&(s=!0)}return!r&&s?0:this.options.invisibleCharacters&&!vs(e)&&Lt.isInvisibleCharacter(i)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(i)?3:0}}function vs(t){return t===" "||t===`
7
+ `))}}class _o extends Error{constructor(e,n){super(e),this.name="ListenerLeakError",this.stack=n}}class vo extends Error{constructor(e,n){super(e),this.name="ListenerRefusalError",this.stack=n}}class Mn{constructor(e){this.value=e}}const yo=2;class Se{constructor(e){this._size=0,this._options=e,this._leakageMon=this._options?.leakWarningThreshold?new Rn(e?.onListenerError??Ot,this._options?.leakWarningThreshold??wo):void 0,this._perfMon=this._options?._profName?new En(this._options._profName):void 0,this._deliveryQueue=this._options?.deliveryQueue}dispose(){this._disposed||(this._disposed=!0,this._deliveryQueue?.current===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),this._options?.onDidRemoveLastListener?.(),this._leakageMon?.dispose())}get event(){return this._event??=(e,n,i)=>{if(this._leakageMon&&this._size>this._leakageMon.threshold**2){const l=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(l);const o=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],u=new vo(`${l}. HINT: Stack shows most frequent listener (${o[1]}-times)`,o[0]);return(this._options?.onListenerError||Ot)(u),Xe.None}if(this._disposed)return Xe.None;n&&(e=e.bind(n));const r=new Mn(e);let s;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(r.stack=Dn.create(),s=this._leakageMon.check(r.stack,this._size+1)),this._listeners?this._listeners instanceof Mn?(this._deliveryQueue??=new To,this._listeners=[this._listeners,r]):this._listeners.push(r):(this._options?.onWillAddFirstListener?.(this),this._listeners=r,this._options?.onDidAddFirstListener?.(this)),this._options?.onDidAddListener?.(this),this._size++;const a=$t(()=>{s?.(),this._removeListener(r)});return Nn(a,i),a},this._event}_removeListener(e){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(this._size===1){this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),this._size=0;return}const n=this._listeners,i=n.indexOf(e);if(i===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,n[i]=void 0;const r=this._deliveryQueue.current===this;if(this._size*yo<=n.length){let s=0;for(let a=0;a<n.length;a++)n[a]?n[s++]=n[a]:r&&s<this._deliveryQueue.end&&(this._deliveryQueue.end--,s<this._deliveryQueue.i&&this._deliveryQueue.i--);n.length=s}}_deliver(e,n){if(!e)return;const i=this._options?.onListenerError||Ot;if(!i){e.value(n);return}try{e.value(n)}catch(r){i(r)}}_deliverQueue(e){const n=e.current._listeners;for(;e.i<e.end;)this._deliver(n[e.i++],e.value);e.reset()}fire(e){if(this._deliveryQueue?.current&&(this._deliverQueue(this._deliveryQueue),this._perfMon?.stop()),this._perfMon?.start(this._size),this._listeners)if(this._listeners instanceof Mn)this._deliver(this._listeners,e);else{const n=this._deliveryQueue;n.enqueue(this,e,this._listeners.length),this._deliverQueue(n)}this._perfMon?.stop()}hasListeners(){return this._size>0}}class To{constructor(){this.i=-1,this.end=0}enqueue(e,n,i){this.i=0,this.end=i,this.current=e,this.value=n}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}function Nn(t,e){e instanceof kt?e.add(t):Array.isArray(e)&&e.push(t)}function Wi(t,e){if(e instanceof kt)e.delete(t);else if(Array.isArray(e)){const n=e.indexOf(t);n!==-1&&e.splice(n,1)}t.dispose()}function xo(){return globalThis._VSCODE_NLS_MESSAGES}function Fi(){return globalThis._VSCODE_NLS_LANGUAGE}const ko=Fi()==="pseudo"||typeof document<"u"&&document.location&&typeof document.location.hash=="string"&&document.location.hash.indexOf("pseudo=true")>=0;function Bi(t,e){let n;return e.length===0?n=t:n=t.replace(/\{(\d+)\}/g,(i,r)=>{const s=r[0],a=e[s];let l=i;return typeof a=="string"?l=a:(typeof a=="number"||typeof a=="boolean"||a===void 0||a===null)&&(l=String(a)),l}),ko&&(n="["+n.replace(/[aouei]/g,"$&$&")+"]"),n}function O(t,e,...n){return Bi(typeof t=="number"?So(t,e):e,n)}function So(t,e){const n=xo()?.[t];if(typeof n!="string"){if(typeof e=="string")return e;throw new Error(`!!! NLS MISSING: ${t} !!!`)}return n}const it="en";let In=!1,zn=!1,Hn=!1,Xt,Un=it,qi=it,Ao,Ie;const Je=globalThis;let fe;typeof Je.vscode<"u"&&typeof Je.vscode.process<"u"?fe=Je.vscode.process:typeof process<"u"&&typeof process?.versions?.node=="string"&&(fe=process);const Lo=typeof fe?.versions?.electron=="string"&&fe?.type==="renderer";if(typeof fe=="object"){In=fe.platform==="win32",zn=fe.platform==="darwin",Hn=fe.platform==="linux",Hn&&fe.env.SNAP&&fe.env.SNAP_REVISION,fe.env.CI||fe.env.BUILD_ARTIFACTSTAGINGDIRECTORY||fe.env.GITHUB_WORKSPACE,Xt=it,Un=it;const t=fe.env.VSCODE_NLS_CONFIG;if(t)try{const e=JSON.parse(t);Xt=e.userLocale,qi=e.osLocale,Un=e.resolvedLanguage||it,Ao=e.languagePack?.translationsConfigFile}catch{}}else typeof navigator=="object"&&!Lo?(Ie=navigator.userAgent,In=Ie.indexOf("Windows")>=0,zn=Ie.indexOf("Macintosh")>=0,(Ie.indexOf("Macintosh")>=0||Ie.indexOf("iPad")>=0||Ie.indexOf("iPhone")>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Hn=Ie.indexOf("Linux")>=0,Ie?.indexOf("Mobi")>=0,Un=Fi()||it,Xt=navigator.language.toLowerCase(),qi=Xt):console.error("Unable to resolve platform.");const St=In,Co=zn,Re=Ie,Eo=typeof Je.postMessage=="function"&&!Je.importScripts;(()=>{if(Eo){const t=[];Je.addEventListener("message",n=>{if(n.data&&n.data.vscodeScheduleAsyncWork)for(let i=0,r=t.length;i<r;i++){const s=t[i];if(s.id===n.data.vscodeScheduleAsyncWork){t.splice(i,1),s.callback();return}}});let e=0;return n=>{const i=++e;t.push({id:i,callback:n}),Je.postMessage({vscodeScheduleAsyncWork:i},"*")}}return t=>setTimeout(t)})();const Ro=!!(Re&&Re.indexOf("Chrome")>=0);Re&&Re.indexOf("Firefox")>=0,!Ro&&Re&&Re.indexOf("Safari")>=0,Re&&Re.indexOf("Edg/")>=0,Re&&Re.indexOf("Android")>=0;function Do(t){return t}class Mo{constructor(e,n){this.lastCache=void 0,this.lastArgKey=void 0,typeof e=="function"?(this._fn=e,this._computeKey=Do):(this._fn=n,this._computeKey=e.getCacheKey)}get(e){const n=this._computeKey(e);return this.lastArgKey!==n&&(this.lastArgKey=n,this.lastCache=this._fn(e)),this.lastCache}}var Qe;(function(t){t[t.Uninitialized=0]="Uninitialized",t[t.Running=1]="Running",t[t.Completed=2]="Completed"})(Qe||(Qe={}));class Pn{constructor(e){this.executor=e,this._state=Qe.Uninitialized}get value(){if(this._state===Qe.Uninitialized){this._state=Qe.Running;try{this._value=this.executor()}catch(e){this._error=e}finally{this._state=Qe.Completed}}else if(this._state===Qe.Running)throw new Error("Cannot read the value of a lazy that is being initialized");if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}function No(t){return t.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function Io(t){return t.source==="^"||t.source==="^$"||t.source==="$"||t.source==="^\\s*$"?!1:!!(t.exec("")&&t.lastIndex===0)}function zo(t){return t.split(/\r\n|\r|\n/)}function Ho(t){for(let e=0,n=t.length;e<n;e++){const i=t.charCodeAt(e);if(i!==32&&i!==9)return e}return-1}function Uo(t,e=t.length-1){for(let n=e;n>=0;n--){const i=t.charCodeAt(n);if(i!==32&&i!==9)return n}return-1}function Oi(t){return t>=65&&t<=90}function Po(t,e){const n=Math.min(t.length,e.length);let i;for(i=0;i<n;i++)if(t.charCodeAt(i)!==e.charCodeAt(i))return i;return n}function Wo(t,e){const n=Math.min(t.length,e.length);let i;const r=t.length-1,s=e.length-1;for(i=0;i<n;i++)if(t.charCodeAt(r-i)!==e.charCodeAt(s-i))return i;return n}function Wn(t){return 55296<=t&&t<=56319}function Fo(t){return 56320<=t&&t<=57343}function Bo(t,e){return(t-55296<<10)+(e-56320)+65536}function qo(t,e,n){const i=t.charCodeAt(n);if(Wn(i)&&n+1<e){const r=t.charCodeAt(n+1);if(Fo(r))return Bo(i,r)}return i}const Oo=/^[\t\n\r\x20-\x7E]*$/;function Vo(t){return Oo.test(t)}const Ne=class Ne{static getInstance(e){return Ne.cache.get(Array.from(e).join(","))}static getLocales(){return Ne._locales.value}constructor(e){this.confusableDictionary=e}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}};Ne.ambiguousCharacterData=new Pn(()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,1523,96,8242,96,1370,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,118002,50,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,118003,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,118004,52,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,118005,53,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,118006,54,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,118007,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,118008,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,118009,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,117974,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,117975,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71913,67,71922,67,65315,67,8557,67,8450,67,8493,67,117976,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,117977,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,117978,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,117979,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,117980,71,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,117981,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,117983,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,117984,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,118001,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,117982,108,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,117985,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,117986,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,117987,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,118000,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,117988,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,117989,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,117990,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,117991,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,117992,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,117993,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,117994,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,117995,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71910,87,71919,87,117996,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,117997,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,117998,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,71909,90,66293,90,65338,90,8484,90,8488,90,117999,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65283,35,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"cs":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"es":[8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"fr":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"it":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"ja":[8211,45,8218,44,65281,33,8216,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65292,44,65297,49,65307,59],"ko":[8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"pt-BR":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"ru":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"zh-hans":[160,32,65374,126,8218,44,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65297,49],"zh-hant":[8211,45,65374,126,8218,44,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89]}')),Ne.cache=new Mo(e=>{const n=e.split(",");function i(d){const m=new Map;for(let f=0;f<d.length;f+=2)m.set(d[f],d[f+1]);return m}function r(d,m){const f=new Map(d);for(const[w,p]of m)f.set(w,p);return f}function s(d,m){if(!d)return m;const f=new Map;for(const[w,p]of d)m.has(w)&&f.set(w,p);return f}const a=Ne.ambiguousCharacterData.value;let l=n.filter(d=>!d.startsWith("_")&&Object.hasOwn(a,d));l.length===0&&(l=["_default"]);let o;for(const d of l){const m=i(a[d]);o=s(o,m)}const u=i(a._common),h=r(u,o);return new Ne(h)}),Ne._locales=new Pn(()=>Object.keys(Ne.ambiguousCharacterData.value).filter(e=>!e.startsWith("_")));let At=Ne;const vt=class vt{static getRawData(){return JSON.parse('{"_common":[11,12,13,127,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999],"cs":[173,8203,12288],"de":[173,8203,12288],"es":[8203,12288],"fr":[173,8203,12288],"it":[160,173,12288],"ja":[173],"ko":[173,12288],"pl":[173,8203,12288],"pt-BR":[173,8203,12288],"qps-ploc":[160,173,8203,12288],"ru":[173,12288],"tr":[160,173,8203,12288],"zh-hans":[160,173,8203,12288],"zh-hant":[173,12288]}')}static getData(){return this._data||(this._data=new Set([...Object.values(vt.getRawData())].flat())),this._data}static isInvisibleCharacter(e){return vt.getData().has(e)}static get codePoints(){return vt.getData()}};vt._data=void 0;let Lt=vt;const Fn="default",jo="$initialize";class $o{constructor(e,n,i,r,s){this.vsWorker=e,this.req=n,this.channel=i,this.method=r,this.args=s,this.type=0}}class Vi{constructor(e,n,i,r){this.vsWorker=e,this.seq=n,this.res=i,this.err=r,this.type=1}}class Go{constructor(e,n,i,r,s){this.vsWorker=e,this.req=n,this.channel=i,this.eventName=r,this.arg=s,this.type=2}}class Xo{constructor(e,n,i){this.vsWorker=e,this.req=n,this.event=i,this.type=3}}class Jo{constructor(e,n){this.vsWorker=e,this.req=n,this.type=4}}class Qo{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}async sendMessage(e,n,i){const r=String(++this._lastSentReq);return new Promise((s,a)=>{this._pendingReplies[r]={resolve:s,reject:a},this._send(new $o(this._workerId,r,e,n,i))})}listen(e,n,i){let r=null;const s=new Se({onWillAddFirstListener:()=>{r=String(++this._lastSentReq),this._pendingEmitters.set(r,s),this._send(new Go(this._workerId,r,e,n,i))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(r),this._send(new Jo(this._workerId,r)),r=null}});return s.event}handleMessage(e){!e||!e.vsWorker||this._workerId!==-1&&e.vsWorker!==this._workerId||this._handleMessage(e)}createProxyToRemoteChannel(e,n){const i={get:(r,s)=>(typeof s=="string"&&!r[s]&&($i(s)?r[s]=a=>this.listen(e,s,a):ji(s)?r[s]=this.listen(e,s,void 0):s.charCodeAt(0)===36&&(r[s]=async(...a)=>(await n?.(),this.sendMessage(e,s,a)))),r[s])};return new Proxy(Object.create(null),i)}_handleMessage(e){switch(e.type){case 1:return this._handleReplyMessage(e);case 0:return this._handleRequestMessage(e);case 2:return this._handleSubscribeEventMessage(e);case 3:return this._handleEventMessage(e);case 4:return this._handleUnsubscribeEventMessage(e)}}_handleReplyMessage(e){if(!this._pendingReplies[e.seq]){console.warn("Got reply to unknown seq");return}const n=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let i=e.err;if(e.err.$isError){const r=new Error;r.name=e.err.name,r.message=e.err.message,r.stack=e.err.stack,i=r}n.reject(i);return}n.resolve(e.res)}_handleRequestMessage(e){const n=e.req;this._handler.handleMessage(e.channel,e.method,e.args).then(r=>{this._send(new Vi(this._workerId,n,r,void 0))},r=>{r.detail instanceof Error&&(r.detail=An(r.detail)),this._send(new Vi(this._workerId,n,void 0,An(r)))})}_handleSubscribeEventMessage(e){const n=e.req,i=this._handler.handleEvent(e.channel,e.eventName,e.arg)(r=>{this._send(new Xo(this._workerId,n,r))});this._pendingEvents.set(n,i)}_handleEventMessage(e){const n=this._pendingEmitters.get(e.req);if(n===void 0){console.warn("Got event for unknown req");return}n.fire(e.event)}_handleUnsubscribeEventMessage(e){const n=this._pendingEvents.get(e.req);if(n===void 0){console.warn("Got unsubscribe for unknown req");return}n.dispose(),this._pendingEvents.delete(e.req)}_send(e){const n=[];if(e.type===0)for(let i=0;i<e.args.length;i++){const r=e.args[i];r instanceof ArrayBuffer&&n.push(r)}else e.type===1&&e.res instanceof ArrayBuffer&&n.push(e.res);this._handler.sendMessage(e,n)}}function ji(t){return t[0]==="o"&&t[1]==="n"&&Oi(t.charCodeAt(2))}function $i(t){return/^onDynamic/.test(t)&&Oi(t.charCodeAt(9))}class Yo{constructor(e,n){this._localChannels=new Map,this._remoteChannels=new Map,this._protocol=new Qo({sendMessage:(i,r)=>{e(i,r)},handleMessage:(i,r,s)=>this._handleMessage(i,r,s),handleEvent:(i,r,s)=>this._handleEvent(i,r,s)}),this.requestHandler=n(this)}onmessage(e){this._protocol.handleMessage(e)}_handleMessage(e,n,i){if(e===Fn&&n===jo)return this.initialize(i[0]);const r=e===Fn?this.requestHandler:this._localChannels.get(e);if(!r)return Promise.reject(new Error(`Missing channel ${e} on worker thread`));const s=r[n];if(typeof s!="function")return Promise.reject(new Error(`Missing method ${n} on worker thread channel ${e}`));try{return Promise.resolve(s.apply(r,i))}catch(a){return Promise.reject(a)}}_handleEvent(e,n,i){const r=e===Fn?this.requestHandler:this._localChannels.get(e);if(!r)throw new Error(`Missing channel ${e} on worker thread`);if($i(n)){const s=r[n];if(typeof s!="function")throw new Error(`Missing dynamic event ${n} on request handler.`);const a=s.call(r,i);if(typeof a!="function")throw new Error(`Missing dynamic event ${n} on request handler.`);return a}if(ji(n)){const s=r[n];if(typeof s!="function")throw new Error(`Missing event ${n} on request handler.`);return s}throw new Error(`Malformed event name ${n}`)}getChannel(e){let n=this._remoteChannels.get(e);return n===void 0&&(n=this._protocol.createProxyToRemoteChannel(e),this._remoteChannels.set(e,n)),n}async initialize(e){this._protocol.setWorkerId(e)}}let Gi=!1;function Zo(t){if(Gi)throw new Error("WebWorker already initialized!");Gi=!0;const e=new Yo(n=>globalThis.postMessage(n),n=>t(n));return globalThis.onmessage=n=>{e.onmessage(n.data)},e}class Oe{constructor(e,n,i,r){this.originalStart=e,this.originalLength=n,this.modifiedStart=i,this.modifiedLength=r}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}new Pn(()=>new Uint8Array(256));function Xi(t,e){return(e<<5)-e+t|0}function Ko(t,e){e=Xi(149417,e);for(let n=0,i=t.length;n<i;n++)e=Xi(t.charCodeAt(n),e);return e}class Ji{constructor(e){this.source=e}getElements(){const e=this.source,n=new Int32Array(e.length);for(let i=0,r=e.length;i<r;i++)n[i]=e.charCodeAt(i);return n}}function el(t,e,n){return new Ve(new Ji(t),new Ji(e)).ComputeDiff(n).changes}class rt{static Assert(e,n){if(!e)throw new Error(n)}}class st{static Copy(e,n,i,r,s){for(let a=0;a<s;a++)i[r+a]=e[n+a]}static Copy2(e,n,i,r,s){for(let a=0;a<s;a++)i[r+a]=e[n+a]}}class Qi{constructor(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}MarkNextChange(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new Oe(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,n){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_originalCount++}AddModifiedElement(e,n){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class Ve{constructor(e,n,i=null){this.ContinueProcessingPredicate=i,this._originalSequence=e,this._modifiedSequence=n;const[r,s,a]=Ve._getElements(e),[l,o,u]=Ve._getElements(n);this._hasStrings=a&&u,this._originalStringElements=r,this._originalElementsOrHash=s,this._modifiedStringElements=l,this._modifiedElementsOrHash=o,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&typeof e[0]=="string"}static _getElements(e){const n=e.getElements();if(Ve._isStringArray(n)){const i=new Int32Array(n.length);for(let r=0,s=n.length;r<s;r++)i[r]=Ko(n[r],0);return[n,i,!0]}return n instanceof Int32Array?[[],n,!1]:[[],new Int32Array(n),!1]}ElementsAreEqual(e,n){return this._originalElementsOrHash[e]!==this._modifiedElementsOrHash[n]?!1:this._hasStrings?this._originalStringElements[e]===this._modifiedStringElements[n]:!0}ElementsAreStrictEqual(e,n){if(!this.ElementsAreEqual(e,n))return!1;const i=Ve._getStrictElement(this._originalSequence,e),r=Ve._getStrictElement(this._modifiedSequence,n);return i===r}static _getStrictElement(e,n){return typeof e.getStrictElement=="function"?e.getStrictElement(n):null}OriginalElementsAreEqual(e,n){return this._originalElementsOrHash[e]!==this._originalElementsOrHash[n]?!1:this._hasStrings?this._originalStringElements[e]===this._originalStringElements[n]:!0}ModifiedElementsAreEqual(e,n){return this._modifiedElementsOrHash[e]!==this._modifiedElementsOrHash[n]?!1:this._hasStrings?this._modifiedStringElements[e]===this._modifiedStringElements[n]:!0}ComputeDiff(e){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,e)}_ComputeDiff(e,n,i,r,s){const a=[!1];let l=this.ComputeDiffRecursive(e,n,i,r,a);return s&&(l=this.PrettifyChanges(l)),{quitEarly:a[0],changes:l}}ComputeDiffRecursive(e,n,i,r,s){for(s[0]=!1;e<=n&&i<=r&&this.ElementsAreEqual(e,i);)e++,i++;for(;n>=e&&r>=i&&this.ElementsAreEqual(n,r);)n--,r--;if(e>n||i>r){let d;return i<=r?(rt.Assert(e===n+1,"originalStart should only be one more than originalEnd"),d=[new Oe(e,0,i,r-i+1)]):e<=n?(rt.Assert(i===r+1,"modifiedStart should only be one more than modifiedEnd"),d=[new Oe(e,n-e+1,i,0)]):(rt.Assert(e===n+1,"originalStart should only be one more than originalEnd"),rt.Assert(i===r+1,"modifiedStart should only be one more than modifiedEnd"),d=[]),d}const a=[0],l=[0],o=this.ComputeRecursionPoint(e,n,i,r,a,l,s),u=a[0],h=l[0];if(o!==null)return o;if(!s[0]){const d=this.ComputeDiffRecursive(e,u,i,h,s);let m=[];return s[0]?m=[new Oe(u+1,n-(u+1)+1,h+1,r-(h+1)+1)]:m=this.ComputeDiffRecursive(u+1,n,h+1,r,s),this.ConcatenateChanges(d,m)}return[new Oe(e,n-e+1,i,r-i+1)]}WALKTRACE(e,n,i,r,s,a,l,o,u,h,d,m,f,w,p,T,y,v){let S=null,I=null,H=new Qi,W=n,b=i,g=f[0]-T[0]-r,_=-1073741824,N=this.m_forwardHistory.length-1;do{const A=g+e;A===W||A<b&&u[A-1]<u[A+1]?(d=u[A+1],w=d-g-r,d<_&&H.MarkNextChange(),_=d,H.AddModifiedElement(d+1,w),g=A+1-e):(d=u[A-1]+1,w=d-g-r,d<_&&H.MarkNextChange(),_=d-1,H.AddOriginalElement(d,w+1),g=A-1-e),N>=0&&(u=this.m_forwardHistory[N],e=u[0],W=1,b=u.length-1)}while(--N>=-1);if(S=H.getReverseChanges(),v[0]){let A=f[0]+1,x=T[0]+1;if(S!==null&&S.length>0){const R=S[S.length-1];A=Math.max(A,R.getOriginalEnd()),x=Math.max(x,R.getModifiedEnd())}I=[new Oe(A,m-A+1,x,p-x+1)]}else{H=new Qi,W=a,b=l,g=f[0]-T[0]-o,_=1073741824,N=y?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const A=g+s;A===W||A<b&&h[A-1]>=h[A+1]?(d=h[A+1]-1,w=d-g-o,d>_&&H.MarkNextChange(),_=d+1,H.AddOriginalElement(d+1,w+1),g=A+1-s):(d=h[A-1],w=d-g-o,d>_&&H.MarkNextChange(),_=d,H.AddModifiedElement(d+1,w+1),g=A-1-s),N>=0&&(h=this.m_reverseHistory[N],s=h[0],W=1,b=h.length-1)}while(--N>=-1);I=H.getChanges()}return this.ConcatenateChanges(S,I)}ComputeRecursionPoint(e,n,i,r,s,a,l){let o=0,u=0,h=0,d=0,m=0,f=0;e--,i--,s[0]=0,a[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const w=n-e+(r-i),p=w+1,T=new Int32Array(p),y=new Int32Array(p),v=r-i,S=n-e,I=e-i,H=n-r,b=(S-v)%2===0;T[v]=e,y[S]=n,l[0]=!1;for(let g=1;g<=w/2+1;g++){let _=0,N=0;h=this.ClipDiagonalBound(v-g,g,v,p),d=this.ClipDiagonalBound(v+g,g,v,p);for(let x=h;x<=d;x+=2){x===h||x<d&&T[x-1]<T[x+1]?o=T[x+1]:o=T[x-1]+1,u=o-(x-v)-I;const R=o;for(;o<n&&u<r&&this.ElementsAreEqual(o+1,u+1);)o++,u++;if(T[x]=o,o+u>_+N&&(_=o,N=u),!b&&Math.abs(x-S)<=g-1&&o>=y[x])return s[0]=o,a[0]=u,R<=y[x]&&g<=1448?this.WALKTRACE(v,h,d,I,S,m,f,H,T,y,o,n,s,u,r,a,b,l):null}const A=(_-e+(N-i)-g)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(_,A))return l[0]=!0,s[0]=_,a[0]=N,A>0&&g<=1448?this.WALKTRACE(v,h,d,I,S,m,f,H,T,y,o,n,s,u,r,a,b,l):(e++,i++,[new Oe(e,n-e+1,i,r-i+1)]);m=this.ClipDiagonalBound(S-g,g,S,p),f=this.ClipDiagonalBound(S+g,g,S,p);for(let x=m;x<=f;x+=2){x===m||x<f&&y[x-1]>=y[x+1]?o=y[x+1]-1:o=y[x-1],u=o-(x-S)-H;const R=o;for(;o>e&&u>i&&this.ElementsAreEqual(o,u);)o--,u--;if(y[x]=o,b&&Math.abs(x-v)<=g&&o<=T[x])return s[0]=o,a[0]=u,R>=T[x]&&g<=1448?this.WALKTRACE(v,h,d,I,S,m,f,H,T,y,o,n,s,u,r,a,b,l):null}if(g<=1447){let x=new Int32Array(d-h+2);x[0]=v-h+1,st.Copy2(T,h,x,1,d-h+1),this.m_forwardHistory.push(x),x=new Int32Array(f-m+2),x[0]=S-m+1,st.Copy2(y,m,x,1,f-m+1),this.m_reverseHistory.push(x)}}return this.WALKTRACE(v,h,d,I,S,m,f,H,T,y,o,n,s,u,r,a,b,l)}PrettifyChanges(e){for(let n=0;n<e.length;n++){const i=e[n],r=n<e.length-1?e[n+1].originalStart:this._originalElementsOrHash.length,s=n<e.length-1?e[n+1].modifiedStart:this._modifiedElementsOrHash.length,a=i.originalLength>0,l=i.modifiedLength>0;for(;i.originalStart+i.originalLength<r&&i.modifiedStart+i.modifiedLength<s&&(!a||this.OriginalElementsAreEqual(i.originalStart,i.originalStart+i.originalLength))&&(!l||this.ModifiedElementsAreEqual(i.modifiedStart,i.modifiedStart+i.modifiedLength));){const u=this.ElementsAreStrictEqual(i.originalStart,i.modifiedStart);if(this.ElementsAreStrictEqual(i.originalStart+i.originalLength,i.modifiedStart+i.modifiedLength)&&!u)break;i.originalStart++,i.modifiedStart++}const o=[null];if(n<e.length-1&&this.ChangesOverlap(e[n],e[n+1],o)){e[n]=o[0],e.splice(n+1,1),n--;continue}}for(let n=e.length-1;n>=0;n--){const i=e[n];let r=0,s=0;if(n>0){const d=e[n-1];r=d.originalStart+d.originalLength,s=d.modifiedStart+d.modifiedLength}const a=i.originalLength>0,l=i.modifiedLength>0;let o=0,u=this._boundaryScore(i.originalStart,i.originalLength,i.modifiedStart,i.modifiedLength);for(let d=1;;d++){const m=i.originalStart-d,f=i.modifiedStart-d;if(m<r||f<s||a&&!this.OriginalElementsAreEqual(m,m+i.originalLength)||l&&!this.ModifiedElementsAreEqual(f,f+i.modifiedLength))break;const p=(m===r&&f===s?5:0)+this._boundaryScore(m,i.originalLength,f,i.modifiedLength);p>u&&(u=p,o=d)}i.originalStart-=o,i.modifiedStart-=o;const h=[null];if(n>0&&this.ChangesOverlap(e[n-1],e[n],h)){e[n-1]=h[0],e.splice(n,1),n++;continue}}if(this._hasStrings)for(let n=1,i=e.length;n<i;n++){const r=e[n-1],s=e[n],a=s.originalStart-r.originalStart-r.originalLength,l=r.originalStart,o=s.originalStart+s.originalLength,u=o-l,h=r.modifiedStart,d=s.modifiedStart+s.modifiedLength,m=d-h;if(a<5&&u<20&&m<20){const f=this._findBetterContiguousSequence(l,u,h,m,a);if(f){const[w,p]=f;(w!==r.originalStart+r.originalLength||p!==r.modifiedStart+r.modifiedLength)&&(r.originalLength=w-r.originalStart,r.modifiedLength=p-r.modifiedStart,s.originalStart=w+a,s.modifiedStart=p+a,s.originalLength=o-s.originalStart,s.modifiedLength=d-s.modifiedStart)}}}return e}_findBetterContiguousSequence(e,n,i,r,s){if(n<s||r<s)return null;const a=e+n-s+1,l=i+r-s+1;let o=0,u=0,h=0;for(let d=e;d<a;d++)for(let m=i;m<l;m++){const f=this._contiguousSequenceScore(d,m,s);f>0&&f>o&&(o=f,u=d,h=m)}return o>0?[u,h]:null}_contiguousSequenceScore(e,n,i){let r=0;for(let s=0;s<i;s++){if(!this.ElementsAreEqual(e+s,n+s))return 0;r+=this._originalStringElements[e+s].length}return r}_OriginalIsBoundary(e){return e<=0||e>=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,n){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(n>0){const i=e+n;if(this._OriginalIsBoundary(i-1)||this._OriginalIsBoundary(i))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,n){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(n>0){const i=e+n;if(this._ModifiedIsBoundary(i-1)||this._ModifiedIsBoundary(i))return!0}return!1}_boundaryScore(e,n,i,r){const s=this._OriginalRegionIsBoundary(e,n)?1:0,a=this._ModifiedRegionIsBoundary(i,r)?1:0;return s+a}ConcatenateChanges(e,n){const i=[];if(e.length===0||n.length===0)return n.length>0?n:e;if(this.ChangesOverlap(e[e.length-1],n[0],i)){const r=new Array(e.length+n.length-1);return st.Copy(e,0,r,0,e.length-1),r[e.length-1]=i[0],st.Copy(n,1,r,e.length,n.length-1),r}else{const r=new Array(e.length+n.length);return st.Copy(e,0,r,0,e.length),st.Copy(n,0,r,e.length,n.length),r}}ChangesOverlap(e,n,i){if(rt.Assert(e.originalStart<=n.originalStart,"Left change is not less than or equal to right change"),rt.Assert(e.modifiedStart<=n.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=n.originalStart||e.modifiedStart+e.modifiedLength>=n.modifiedStart){const r=e.originalStart;let s=e.originalLength;const a=e.modifiedStart;let l=e.modifiedLength;return e.originalStart+e.originalLength>=n.originalStart&&(s=n.originalStart+n.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=n.modifiedStart&&(l=n.modifiedStart+n.modifiedLength-e.modifiedStart),i[0]=new Oe(r,s,a,l),!0}else return i[0]=null,!1}ClipDiagonalBound(e,n,i,r){if(e>=0&&e<r)return e;const s=i,a=r-i-1,l=n%2===0;if(e<0){const o=s%2===0;return l===o?0:1}else{const o=a%2===0;return l===o?r-1:r-2}}}let K=class tt{constructor(e,n){this.lineNumber=e,this.column=n}with(e=this.lineNumber,n=this.column){return e===this.lineNumber&&n===this.column?this:new tt(e,n)}delta(e=0,n=0){return this.with(Math.max(1,this.lineNumber+e),Math.max(1,this.column+n))}equals(e){return tt.equals(this,e)}static equals(e,n){return!e&&!n?!0:!!e&&!!n&&e.lineNumber===n.lineNumber&&e.column===n.column}isBefore(e){return tt.isBefore(this,e)}static isBefore(e,n){return e.lineNumber<n.lineNumber?!0:n.lineNumber<e.lineNumber?!1:e.column<n.column}isBeforeOrEqual(e){return tt.isBeforeOrEqual(this,e)}static isBeforeOrEqual(e,n){return e.lineNumber<n.lineNumber?!0:n.lineNumber<e.lineNumber?!1:e.column<=n.column}static compare(e,n){const i=e.lineNumber|0,r=n.lineNumber|0;if(i===r){const s=e.column|0,a=n.column|0;return s-a}return i-r}clone(){return new tt(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(e){return new tt(e.lineNumber,e.column)}static isIPosition(e){return!!e&&typeof e.lineNumber=="number"&&typeof e.column=="number"}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}},j=class re{constructor(e,n,i,r){e>i||e===i&&n>r?(this.startLineNumber=i,this.startColumn=r,this.endLineNumber=e,this.endColumn=n):(this.startLineNumber=e,this.startColumn=n,this.endLineNumber=i,this.endColumn=r)}isEmpty(){return re.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return re.containsPosition(this,e)}static containsPosition(e,n){return!(n.lineNumber<e.startLineNumber||n.lineNumber>e.endLineNumber||n.lineNumber===e.startLineNumber&&n.column<e.startColumn||n.lineNumber===e.endLineNumber&&n.column>e.endColumn)}static strictContainsPosition(e,n){return!(n.lineNumber<e.startLineNumber||n.lineNumber>e.endLineNumber||n.lineNumber===e.startLineNumber&&n.column<=e.startColumn||n.lineNumber===e.endLineNumber&&n.column>=e.endColumn)}containsRange(e){return re.containsRange(this,e)}static containsRange(e,n){return!(n.startLineNumber<e.startLineNumber||n.endLineNumber<e.startLineNumber||n.startLineNumber>e.endLineNumber||n.endLineNumber>e.endLineNumber||n.startLineNumber===e.startLineNumber&&n.startColumn<e.startColumn||n.endLineNumber===e.endLineNumber&&n.endColumn>e.endColumn)}strictContainsRange(e){return re.strictContainsRange(this,e)}static strictContainsRange(e,n){return!(n.startLineNumber<e.startLineNumber||n.endLineNumber<e.startLineNumber||n.startLineNumber>e.endLineNumber||n.endLineNumber>e.endLineNumber||n.startLineNumber===e.startLineNumber&&n.startColumn<=e.startColumn||n.endLineNumber===e.endLineNumber&&n.endColumn>=e.endColumn)}plusRange(e){return re.plusRange(this,e)}static plusRange(e,n){let i,r,s,a;return n.startLineNumber<e.startLineNumber?(i=n.startLineNumber,r=n.startColumn):n.startLineNumber===e.startLineNumber?(i=n.startLineNumber,r=Math.min(n.startColumn,e.startColumn)):(i=e.startLineNumber,r=e.startColumn),n.endLineNumber>e.endLineNumber?(s=n.endLineNumber,a=n.endColumn):n.endLineNumber===e.endLineNumber?(s=n.endLineNumber,a=Math.max(n.endColumn,e.endColumn)):(s=e.endLineNumber,a=e.endColumn),new re(i,r,s,a)}intersectRanges(e){return re.intersectRanges(this,e)}static intersectRanges(e,n){let i=e.startLineNumber,r=e.startColumn,s=e.endLineNumber,a=e.endColumn;const l=n.startLineNumber,o=n.startColumn,u=n.endLineNumber,h=n.endColumn;return i<l?(i=l,r=o):i===l&&(r=Math.max(r,o)),s>u?(s=u,a=h):s===u&&(a=Math.min(a,h)),i>s||i===s&&r>a?null:new re(i,r,s,a)}equalsRange(e){return re.equalsRange(this,e)}static equalsRange(e,n){return!e&&!n?!0:!!e&&!!n&&e.startLineNumber===n.startLineNumber&&e.startColumn===n.startColumn&&e.endLineNumber===n.endLineNumber&&e.endColumn===n.endColumn}getEndPosition(){return re.getEndPosition(this)}static getEndPosition(e){return new K(e.endLineNumber,e.endColumn)}getStartPosition(){return re.getStartPosition(this)}static getStartPosition(e){return new K(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,n){return new re(this.startLineNumber,this.startColumn,e,n)}setStartPosition(e,n){return new re(e,n,this.endLineNumber,this.endColumn)}collapseToStart(){return re.collapseToStart(this)}static collapseToStart(e){return new re(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return re.collapseToEnd(this)}static collapseToEnd(e){return new re(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new re(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}isSingleLine(){return this.startLineNumber===this.endLineNumber}static fromPositions(e,n=e){return new re(e.lineNumber,e.column,n.lineNumber,n.column)}static lift(e){return e?new re(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return!!e&&typeof e.startLineNumber=="number"&&typeof e.startColumn=="number"&&typeof e.endLineNumber=="number"&&typeof e.endColumn=="number"}static areIntersectingOrTouching(e,n){return!(e.endLineNumber<n.startLineNumber||e.endLineNumber===n.startLineNumber&&e.endColumn<n.startColumn||n.endLineNumber<e.startLineNumber||n.endLineNumber===e.startLineNumber&&n.endColumn<e.startColumn)}static areIntersecting(e,n){return!(e.endLineNumber<n.startLineNumber||e.endLineNumber===n.startLineNumber&&e.endColumn<=n.startColumn||n.endLineNumber<e.startLineNumber||n.endLineNumber===e.startLineNumber&&n.endColumn<=e.startColumn)}static areOnlyIntersecting(e,n){return!(e.endLineNumber<n.startLineNumber-1||e.endLineNumber===n.startLineNumber&&e.endColumn<n.startColumn-1||n.endLineNumber<e.startLineNumber-1||n.endLineNumber===e.startLineNumber&&n.endColumn<e.startColumn-1)}static compareRangesUsingStarts(e,n){if(e&&n){const s=e.startLineNumber|0,a=n.startLineNumber|0;if(s===a){const l=e.startColumn|0,o=n.startColumn|0;if(l===o){const u=e.endLineNumber|0,h=n.endLineNumber|0;if(u===h){const d=e.endColumn|0,m=n.endColumn|0;return d-m}return u-h}return l-o}return s-a}return(e?1:0)-(n?1:0)}static compareRangesUsingEnds(e,n){return e.endLineNumber===n.endLineNumber?e.endColumn===n.endColumn?e.startLineNumber===n.startLineNumber?e.startColumn-n.startColumn:e.startLineNumber-n.startLineNumber:e.endColumn-n.endColumn:e.endLineNumber-n.endLineNumber}static spansMultipleLines(e){return e.endLineNumber>e.startLineNumber}toJSON(){return this}};function Yi(t){return t<0?0:t>255?255:t|0}function at(t){return t<0?0:t>4294967295?4294967295:t|0}class Bn{constructor(e){const n=Yi(e);this._defaultValue=n,this._asciiMap=Bn._createAsciiMap(n),this._map=new Map}static _createAsciiMap(e){const n=new Uint8Array(256);return n.fill(e),n}set(e,n){const i=Yi(n);e>=0&&e<256?this._asciiMap[e]=i:this._map.set(e,i)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}class tl{constructor(e,n,i){const r=new Uint8Array(e*n);for(let s=0,a=e*n;s<a;s++)r[s]=i;this._data=r,this.rows=e,this.cols=n}get(e,n){return this._data[e*this.cols+n]}set(e,n,i){this._data[e*this.cols+n]=i}}class nl{constructor(e){let n=0,i=0;for(let s=0,a=e.length;s<a;s++){const[l,o,u]=e[s];o>n&&(n=o),l>i&&(i=l),u>i&&(i=u)}n++,i++;const r=new tl(i,n,0);for(let s=0,a=e.length;s<a;s++){const[l,o,u]=e[s];r.set(l,o,u)}this._states=r,this._maxCharCode=n}nextState(e,n){return n<0||n>=this._maxCharCode?0:this._states.get(e,n)}}let qn=null;function il(){return qn===null&&(qn=new nl([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),qn}let Ct=null;function rl(){if(Ct===null){Ct=new Bn(0);const t=` <>'"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…|`;for(let n=0;n<t.length;n++)Ct.set(t.charCodeAt(n),1);const e=".,;:";for(let n=0;n<e.length;n++)Ct.set(e.charCodeAt(n),2)}return Ct}class Jt{static _createLink(e,n,i,r,s){let a=s-1;do{const l=n.charCodeAt(a);if(e.get(l)!==2)break;a--}while(a>r);if(r>0){const l=n.charCodeAt(r-1),o=n.charCodeAt(a);(l===40&&o===41||l===91&&o===93||l===123&&o===125)&&a--}return{range:{startLineNumber:i,startColumn:r+1,endLineNumber:i,endColumn:a+2},url:n.substring(r,a+1)}}static computeLinks(e,n=il()){const i=rl(),r=[];for(let s=1,a=e.getLineCount();s<=a;s++){const l=e.getLineContent(s),o=l.length;let u=0,h=0,d=0,m=1,f=!1,w=!1,p=!1,T=!1;for(;u<o;){let y=!1;const v=l.charCodeAt(u);if(m===13){let S;switch(v){case 40:f=!0,S=0;break;case 41:S=f?0:1;break;case 91:p=!0,w=!0,S=0;break;case 93:p=!1,S=w?0:1;break;case 123:T=!0,S=0;break;case 125:S=T?0:1;break;case 39:case 34:case 96:d===v?S=1:d===39||d===34||d===96?S=0:S=1;break;case 42:S=d===42?1:0;break;case 32:S=p?0:1;break;default:S=i.get(v)}S===1&&(r.push(Jt._createLink(i,l,s,h,u)),y=!0)}else if(m===12){let S;v===91?(w=!0,S=0):S=i.get(v),S===1?y=!0:m=13}else m=n.nextState(m,v),m===0&&(y=!0);y&&(m=1,f=!1,w=!1,T=!1,h=u+1,d=v),u++}m===13&&r.push(Jt._createLink(i,l,s,h,o))}return r}}function sl(t){return!t||typeof t.getLineCount!="function"||typeof t.getLineContent!="function"?[]:Jt.computeLinks(t)}const Tn=class Tn{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(e,n,i,r,s){if(e&&n){const a=this.doNavigateValueSet(n,s);if(a)return{range:e,value:a}}if(i&&r){const a=this.doNavigateValueSet(r,s);if(a)return{range:i,value:a}}return null}doNavigateValueSet(e,n){const i=this.numberReplace(e,n);return i!==null?i:this.textReplace(e,n)}numberReplace(e,n){const i=Math.pow(10,e.length-(e.lastIndexOf(".")+1));let r=Number(e);const s=parseFloat(e);return!isNaN(r)&&!isNaN(s)&&r===s?r===0&&!n?null:(r=Math.floor(r*i),r+=n?i:-i,String(r/i)):null}textReplace(e,n){return this.valueSetsReplace(this._defaultValueSet,e,n)}valueSetsReplace(e,n,i){let r=null;for(let s=0,a=e.length;r===null&&s<a;s++)r=this.valueSetReplace(e[s],n,i);return r}valueSetReplace(e,n,i){let r=e.indexOf(n);return r>=0?(r+=i?1:-1,r<0?r=e.length-1:r%=e.length,e[r]):null}};Tn.INSTANCE=new Tn;let On=Tn;const Zi=Object.freeze(function(t,e){const n=setTimeout(t.bind(e),0);return{dispose(){clearTimeout(n)}}});var Qt;(function(t){function e(n){return n===t.None||n===t.Cancelled||n instanceof Yt?!0:!n||typeof n!="object"?!1:typeof n.isCancellationRequested=="boolean"&&typeof n.onCancellationRequested=="function"}t.isCancellationToken=e,t.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Cn.None}),t.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Zi})})(Qt||(Qt={}));class Yt{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?Zi:(this._emitter||(this._emitter=new Se),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class al{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new Yt),this._token}cancel(){this._token?this._token instanceof Yt&&this._token.cancel():this._token=Qt.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener?.dispose(),this._token?this._token instanceof Yt&&this._token.dispose():this._token=Qt.None}}class Vn{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,n){this._keyCodeToStr[e]=n,this._strToKeyCode[n.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const Zt=new Vn,jn=new Vn,$n=new Vn,ol=new Array(230),ll=Object.create(null),ul=Object.create(null);(function(){const e=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN","",""],[1,1,"Hyper",0,"",0,"","",""],[1,2,"Super",0,"",0,"","",""],[1,3,"Fn",0,"",0,"","",""],[1,4,"FnLock",0,"",0,"","",""],[1,5,"Suspend",0,"",0,"","",""],[1,6,"Resume",0,"",0,"","",""],[1,7,"Turbo",0,"",0,"","",""],[1,8,"Sleep",0,"",0,"VK_SLEEP","",""],[1,9,"WakeUp",0,"",0,"","",""],[0,10,"KeyA",31,"A",65,"VK_A","",""],[0,11,"KeyB",32,"B",66,"VK_B","",""],[0,12,"KeyC",33,"C",67,"VK_C","",""],[0,13,"KeyD",34,"D",68,"VK_D","",""],[0,14,"KeyE",35,"E",69,"VK_E","",""],[0,15,"KeyF",36,"F",70,"VK_F","",""],[0,16,"KeyG",37,"G",71,"VK_G","",""],[0,17,"KeyH",38,"H",72,"VK_H","",""],[0,18,"KeyI",39,"I",73,"VK_I","",""],[0,19,"KeyJ",40,"J",74,"VK_J","",""],[0,20,"KeyK",41,"K",75,"VK_K","",""],[0,21,"KeyL",42,"L",76,"VK_L","",""],[0,22,"KeyM",43,"M",77,"VK_M","",""],[0,23,"KeyN",44,"N",78,"VK_N","",""],[0,24,"KeyO",45,"O",79,"VK_O","",""],[0,25,"KeyP",46,"P",80,"VK_P","",""],[0,26,"KeyQ",47,"Q",81,"VK_Q","",""],[0,27,"KeyR",48,"R",82,"VK_R","",""],[0,28,"KeyS",49,"S",83,"VK_S","",""],[0,29,"KeyT",50,"T",84,"VK_T","",""],[0,30,"KeyU",51,"U",85,"VK_U","",""],[0,31,"KeyV",52,"V",86,"VK_V","",""],[0,32,"KeyW",53,"W",87,"VK_W","",""],[0,33,"KeyX",54,"X",88,"VK_X","",""],[0,34,"KeyY",55,"Y",89,"VK_Y","",""],[0,35,"KeyZ",56,"Z",90,"VK_Z","",""],[0,36,"Digit1",22,"1",49,"VK_1","",""],[0,37,"Digit2",23,"2",50,"VK_2","",""],[0,38,"Digit3",24,"3",51,"VK_3","",""],[0,39,"Digit4",25,"4",52,"VK_4","",""],[0,40,"Digit5",26,"5",53,"VK_5","",""],[0,41,"Digit6",27,"6",54,"VK_6","",""],[0,42,"Digit7",28,"7",55,"VK_7","",""],[0,43,"Digit8",29,"8",56,"VK_8","",""],[0,44,"Digit9",30,"9",57,"VK_9","",""],[0,45,"Digit0",21,"0",48,"VK_0","",""],[1,46,"Enter",3,"Enter",13,"VK_RETURN","",""],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE","",""],[1,48,"Backspace",1,"Backspace",8,"VK_BACK","",""],[1,49,"Tab",2,"Tab",9,"VK_TAB","",""],[1,50,"Space",10,"Space",32,"VK_SPACE","",""],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,"",0,"","",""],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL","",""],[1,64,"F1",59,"F1",112,"VK_F1","",""],[1,65,"F2",60,"F2",113,"VK_F2","",""],[1,66,"F3",61,"F3",114,"VK_F3","",""],[1,67,"F4",62,"F4",115,"VK_F4","",""],[1,68,"F5",63,"F5",116,"VK_F5","",""],[1,69,"F6",64,"F6",117,"VK_F6","",""],[1,70,"F7",65,"F7",118,"VK_F7","",""],[1,71,"F8",66,"F8",119,"VK_F8","",""],[1,72,"F9",67,"F9",120,"VK_F9","",""],[1,73,"F10",68,"F10",121,"VK_F10","",""],[1,74,"F11",69,"F11",122,"VK_F11","",""],[1,75,"F12",70,"F12",123,"VK_F12","",""],[1,76,"PrintScreen",0,"",0,"","",""],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL","",""],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE","",""],[1,79,"Insert",19,"Insert",45,"VK_INSERT","",""],[1,80,"Home",14,"Home",36,"VK_HOME","",""],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR","",""],[1,82,"Delete",20,"Delete",46,"VK_DELETE","",""],[1,83,"End",13,"End",35,"VK_END","",""],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT","",""],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",""],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",""],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",""],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",""],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK","",""],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE","",""],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY","",""],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT","",""],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD","",""],[1,94,"NumpadEnter",3,"",0,"","",""],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1","",""],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2","",""],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3","",""],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4","",""],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5","",""],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6","",""],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7","",""],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8","",""],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9","",""],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0","",""],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL","",""],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102","",""],[1,107,"ContextMenu",58,"ContextMenu",93,"","",""],[1,108,"Power",0,"",0,"","",""],[1,109,"NumpadEqual",0,"",0,"","",""],[1,110,"F13",71,"F13",124,"VK_F13","",""],[1,111,"F14",72,"F14",125,"VK_F14","",""],[1,112,"F15",73,"F15",126,"VK_F15","",""],[1,113,"F16",74,"F16",127,"VK_F16","",""],[1,114,"F17",75,"F17",128,"VK_F17","",""],[1,115,"F18",76,"F18",129,"VK_F18","",""],[1,116,"F19",77,"F19",130,"VK_F19","",""],[1,117,"F20",78,"F20",131,"VK_F20","",""],[1,118,"F21",79,"F21",132,"VK_F21","",""],[1,119,"F22",80,"F22",133,"VK_F22","",""],[1,120,"F23",81,"F23",134,"VK_F23","",""],[1,121,"F24",82,"F24",135,"VK_F24","",""],[1,122,"Open",0,"",0,"","",""],[1,123,"Help",0,"",0,"","",""],[1,124,"Select",0,"",0,"","",""],[1,125,"Again",0,"",0,"","",""],[1,126,"Undo",0,"",0,"","",""],[1,127,"Cut",0,"",0,"","",""],[1,128,"Copy",0,"",0,"","",""],[1,129,"Paste",0,"",0,"","",""],[1,130,"Find",0,"",0,"","",""],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE","",""],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP","",""],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN","",""],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR","",""],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1","",""],[1,136,"KanaMode",0,"",0,"","",""],[0,137,"IntlYen",0,"",0,"","",""],[1,138,"Convert",0,"",0,"","",""],[1,139,"NonConvert",0,"",0,"","",""],[1,140,"Lang1",0,"",0,"","",""],[1,141,"Lang2",0,"",0,"","",""],[1,142,"Lang3",0,"",0,"","",""],[1,143,"Lang4",0,"",0,"","",""],[1,144,"Lang5",0,"",0,"","",""],[1,145,"Abort",0,"",0,"","",""],[1,146,"Props",0,"",0,"","",""],[1,147,"NumpadParenLeft",0,"",0,"","",""],[1,148,"NumpadParenRight",0,"",0,"","",""],[1,149,"NumpadBackspace",0,"",0,"","",""],[1,150,"NumpadMemoryStore",0,"",0,"","",""],[1,151,"NumpadMemoryRecall",0,"",0,"","",""],[1,152,"NumpadMemoryClear",0,"",0,"","",""],[1,153,"NumpadMemoryAdd",0,"",0,"","",""],[1,154,"NumpadMemorySubtract",0,"",0,"","",""],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR","",""],[1,156,"NumpadClearEntry",0,"",0,"","",""],[1,0,"",5,"Ctrl",17,"VK_CONTROL","",""],[1,0,"",4,"Shift",16,"VK_SHIFT","",""],[1,0,"",6,"Alt",18,"VK_MENU","",""],[1,0,"",57,"Meta",91,"VK_COMMAND","",""],[1,157,"ControlLeft",5,"",0,"VK_LCONTROL","",""],[1,158,"ShiftLeft",4,"",0,"VK_LSHIFT","",""],[1,159,"AltLeft",6,"",0,"VK_LMENU","",""],[1,160,"MetaLeft",57,"",0,"VK_LWIN","",""],[1,161,"ControlRight",5,"",0,"VK_RCONTROL","",""],[1,162,"ShiftRight",4,"",0,"VK_RSHIFT","",""],[1,163,"AltRight",6,"",0,"VK_RMENU","",""],[1,164,"MetaRight",57,"",0,"VK_RWIN","",""],[1,165,"BrightnessUp",0,"",0,"","",""],[1,166,"BrightnessDown",0,"",0,"","",""],[1,167,"MediaPlay",0,"",0,"","",""],[1,168,"MediaRecord",0,"",0,"","",""],[1,169,"MediaFastForward",0,"",0,"","",""],[1,170,"MediaRewind",0,"",0,"","",""],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK","",""],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK","",""],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP","",""],[1,174,"Eject",0,"",0,"","",""],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE","",""],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT","",""],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL","",""],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2","",""],[1,179,"LaunchApp1",0,"",0,"VK_MEDIA_LAUNCH_APP1","",""],[1,180,"SelectTask",0,"",0,"","",""],[1,181,"LaunchScreenSaver",0,"",0,"","",""],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH","",""],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME","",""],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK","",""],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD","",""],[1,186,"BrowserStop",0,"",0,"VK_BROWSER_STOP","",""],[1,187,"BrowserRefresh",0,"",0,"VK_BROWSER_REFRESH","",""],[1,188,"BrowserFavorites",0,"",0,"VK_BROWSER_FAVORITES","",""],[1,189,"ZoomToggle",0,"",0,"","",""],[1,190,"MailReply",0,"",0,"","",""],[1,191,"MailForward",0,"",0,"","",""],[1,192,"MailSend",0,"",0,"","",""],[1,0,"",114,"KeyInComposition",229,"","",""],[1,0,"",116,"ABNT_C2",194,"VK_ABNT_C2","",""],[1,0,"",96,"OEM_8",223,"VK_OEM_8","",""],[1,0,"",0,"",0,"VK_KANA","",""],[1,0,"",0,"",0,"VK_HANGUL","",""],[1,0,"",0,"",0,"VK_JUNJA","",""],[1,0,"",0,"",0,"VK_FINAL","",""],[1,0,"",0,"",0,"VK_HANJA","",""],[1,0,"",0,"",0,"VK_KANJI","",""],[1,0,"",0,"",0,"VK_CONVERT","",""],[1,0,"",0,"",0,"VK_NONCONVERT","",""],[1,0,"",0,"",0,"VK_ACCEPT","",""],[1,0,"",0,"",0,"VK_MODECHANGE","",""],[1,0,"",0,"",0,"VK_SELECT","",""],[1,0,"",0,"",0,"VK_PRINT","",""],[1,0,"",0,"",0,"VK_EXECUTE","",""],[1,0,"",0,"",0,"VK_SNAPSHOT","",""],[1,0,"",0,"",0,"VK_HELP","",""],[1,0,"",0,"",0,"VK_APPS","",""],[1,0,"",0,"",0,"VK_PROCESSKEY","",""],[1,0,"",0,"",0,"VK_PACKET","",""],[1,0,"",0,"",0,"VK_DBE_SBCSCHAR","",""],[1,0,"",0,"",0,"VK_DBE_DBCSCHAR","",""],[1,0,"",0,"",0,"VK_ATTN","",""],[1,0,"",0,"",0,"VK_CRSEL","",""],[1,0,"",0,"",0,"VK_EXSEL","",""],[1,0,"",0,"",0,"VK_EREOF","",""],[1,0,"",0,"",0,"VK_PLAY","",""],[1,0,"",0,"",0,"VK_ZOOM","",""],[1,0,"",0,"",0,"VK_NONAME","",""],[1,0,"",0,"",0,"VK_PA1","",""],[1,0,"",0,"",0,"VK_OEM_CLEAR","",""]],n=[],i=[];for(const r of e){const[s,a,l,o,u,h,d,m,f]=r;if(i[a]||(i[a]=!0,ll[l]=a,ul[l.toLowerCase()]=a),!n[o]){if(n[o]=!0,!u)throw new Error(`String representation missing for key code ${o} around scan code ${l}`);Zt.define(o,u),jn.define(o,m||u),$n.define(o,f||m||u)}h&&(ol[h]=o)}})();var Ki;(function(t){function e(l){return Zt.keyCodeToStr(l)}t.toString=e;function n(l){return Zt.strToKeyCode(l)}t.fromString=n;function i(l){return jn.keyCodeToStr(l)}t.toUserSettingsUS=i;function r(l){return $n.keyCodeToStr(l)}t.toUserSettingsGeneral=r;function s(l){return jn.strToKeyCode(l)||$n.strToKeyCode(l)}t.fromUserSettings=s;function a(l){if(l>=98&&l<=113)return null;switch(l){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return Zt.keyCodeToStr(l)}t.toElectronAccelerator=a})(Ki||(Ki={}));function cl(t,e){const n=(e&65535)<<16>>>0;return(t|n)>>>0}let ot;const Gn=globalThis.vscode;if(typeof Gn<"u"&&typeof Gn.process<"u"){const t=Gn.process;ot={get platform(){return t.platform},get arch(){return t.arch},get env(){return t.env},cwd(){return t.cwd()}}}else typeof process<"u"&&typeof process?.versions?.node=="string"?ot={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:ot={get platform(){return St?"win32":Co?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const Kt=ot.cwd,hl=ot.env,dl=ot.platform,ml=65,fl=97,pl=90,gl=122,Ye=46,ae=47,pe=92,ze=58,bl=63;class er extends Error{constructor(e,n,i){let r;typeof n=="string"&&n.indexOf("not ")===0?(r="must not be",n=n.replace(/^not /,"")):r="must be";const s=e.indexOf(".")!==-1?"property":"argument";let a=`The "${e}" ${s} ${r} of type ${n}`;a+=`. Received type ${typeof i}`,super(a),this.code="ERR_INVALID_ARG_TYPE"}}function wl(t,e){if(t===null||typeof t!="object")throw new er(e,"Object",t)}function ie(t,e){if(typeof t!="string")throw new er(e,"string",t)}const He=dl==="win32";function $(t){return t===ae||t===pe}function Xn(t){return t===ae}function Ue(t){return t>=ml&&t<=pl||t>=fl&&t<=gl}function en(t,e,n,i){let r="",s=0,a=-1,l=0,o=0;for(let u=0;u<=t.length;++u){if(u<t.length)o=t.charCodeAt(u);else{if(i(o))break;o=ae}if(i(o)){if(!(a===u-1||l===1))if(l===2){if(r.length<2||s!==2||r.charCodeAt(r.length-1)!==Ye||r.charCodeAt(r.length-2)!==Ye){if(r.length>2){const h=r.lastIndexOf(n);h===-1?(r="",s=0):(r=r.slice(0,h),s=r.length-1-r.lastIndexOf(n)),a=u,l=0;continue}else if(r.length!==0){r="",s=0,a=u,l=0;continue}}e&&(r+=r.length>0?`${n}..`:"..",s=2)}else r.length>0?r+=`${n}${t.slice(a+1,u)}`:r=t.slice(a+1,u),s=u-a-1;a=u,l=0}else o===Ye&&l!==-1?++l:l=-1}return r}function _l(t){return t?`${t[0]==="."?"":"."}${t}`:""}function tr(t,e){wl(e,"pathObject");const n=e.dir||e.root,i=e.base||`${e.name||""}${_l(e.ext)}`;return n?n===e.root?`${n}${i}`:`${n}${t}${i}`:i}const ce={resolve(...t){let e="",n="",i=!1;for(let r=t.length-1;r>=-1;r--){let s;if(r>=0){if(s=t[r],ie(s,`paths[${r}]`),s.length===0)continue}else e.length===0?s=Kt():(s=hl[`=${e}`]||Kt(),(s===void 0||s.slice(0,2).toLowerCase()!==e.toLowerCase()&&s.charCodeAt(2)===pe)&&(s=`${e}\\`));const a=s.length;let l=0,o="",u=!1;const h=s.charCodeAt(0);if(a===1)$(h)&&(l=1,u=!0);else if($(h))if(u=!0,$(s.charCodeAt(1))){let d=2,m=d;for(;d<a&&!$(s.charCodeAt(d));)d++;if(d<a&&d!==m){const f=s.slice(m,d);for(m=d;d<a&&$(s.charCodeAt(d));)d++;if(d<a&&d!==m){for(m=d;d<a&&!$(s.charCodeAt(d));)d++;(d===a||d!==m)&&(o=`\\\\${f}\\${s.slice(m,d)}`,l=d)}}}else l=1;else Ue(h)&&s.charCodeAt(1)===ze&&(o=s.slice(0,2),l=2,a>2&&$(s.charCodeAt(2))&&(u=!0,l=3));if(o.length>0)if(e.length>0){if(o.toLowerCase()!==e.toLowerCase())continue}else e=o;if(i){if(e.length>0)break}else if(n=`${s.slice(l)}\\${n}`,i=u,u&&e.length>0)break}return n=en(n,!i,"\\",$),i?`${e}\\${n}`:`${e}${n}`||"."},normalize(t){ie(t,"path");const e=t.length;if(e===0)return".";let n=0,i,r=!1;const s=t.charCodeAt(0);if(e===1)return Xn(s)?"\\":t;if($(s))if(r=!0,$(t.charCodeAt(1))){let l=2,o=l;for(;l<e&&!$(t.charCodeAt(l));)l++;if(l<e&&l!==o){const u=t.slice(o,l);for(o=l;l<e&&$(t.charCodeAt(l));)l++;if(l<e&&l!==o){for(o=l;l<e&&!$(t.charCodeAt(l));)l++;if(l===e)return`\\\\${u}\\${t.slice(o)}\\`;l!==o&&(i=`\\\\${u}\\${t.slice(o,l)}`,n=l)}}}else n=1;else Ue(s)&&t.charCodeAt(1)===ze&&(i=t.slice(0,2),n=2,e>2&&$(t.charCodeAt(2))&&(r=!0,n=3));let a=n<e?en(t.slice(n),!r,"\\",$):"";if(a.length===0&&!r&&(a="."),a.length>0&&$(t.charCodeAt(e-1))&&(a+="\\"),!r&&i===void 0&&t.includes(":")){if(a.length>=2&&Ue(a.charCodeAt(0))&&a.charCodeAt(1)===ze)return`.\\${a}`;let l=t.indexOf(":");do if(l===e-1||$(t.charCodeAt(l+1)))return`.\\${a}`;while((l=t.indexOf(":",l+1))!==-1)}return i===void 0?r?`\\${a}`:a:r?`${i}\\${a}`:`${i}${a}`},isAbsolute(t){ie(t,"path");const e=t.length;if(e===0)return!1;const n=t.charCodeAt(0);return $(n)||e>2&&Ue(n)&&t.charCodeAt(1)===ze&&$(t.charCodeAt(2))},join(...t){if(t.length===0)return".";let e,n;for(let s=0;s<t.length;++s){const a=t[s];ie(a,"path"),a.length>0&&(e===void 0?e=n=a:e+=`\\${a}`)}if(e===void 0)return".";let i=!0,r=0;if(typeof n=="string"&&$(n.charCodeAt(0))){++r;const s=n.length;s>1&&$(n.charCodeAt(1))&&(++r,s>2&&($(n.charCodeAt(2))?++r:i=!1))}if(i){for(;r<e.length&&$(e.charCodeAt(r));)r++;r>=2&&(e=`\\${e.slice(r)}`)}return ce.normalize(e)},relative(t,e){if(ie(t,"from"),ie(e,"to"),t===e)return"";const n=ce.resolve(t),i=ce.resolve(e);if(n===i||(t=n.toLowerCase(),e=i.toLowerCase(),t===e))return"";if(n.length!==t.length||i.length!==e.length){const w=n.split("\\"),p=i.split("\\");w[w.length-1]===""&&w.pop(),p[p.length-1]===""&&p.pop();const T=w.length,y=p.length,v=T<y?T:y;let S;for(S=0;S<v&&w[S].toLowerCase()===p[S].toLowerCase();S++);return S===0?i:S===v?y>v?p.slice(S).join("\\"):T>v?"..\\".repeat(T-1-S)+"..":"":"..\\".repeat(T-S)+p.slice(S).join("\\")}let r=0;for(;r<t.length&&t.charCodeAt(r)===pe;)r++;let s=t.length;for(;s-1>r&&t.charCodeAt(s-1)===pe;)s--;const a=s-r;let l=0;for(;l<e.length&&e.charCodeAt(l)===pe;)l++;let o=e.length;for(;o-1>l&&e.charCodeAt(o-1)===pe;)o--;const u=o-l,h=a<u?a:u;let d=-1,m=0;for(;m<h;m++){const w=t.charCodeAt(r+m);if(w!==e.charCodeAt(l+m))break;w===pe&&(d=m)}if(m!==h){if(d===-1)return i}else{if(u>h){if(e.charCodeAt(l+m)===pe)return i.slice(l+m+1);if(m===2)return i.slice(l+m)}a>h&&(t.charCodeAt(r+m)===pe?d=m:m===2&&(d=3)),d===-1&&(d=0)}let f="";for(m=r+d+1;m<=s;++m)(m===s||t.charCodeAt(m)===pe)&&(f+=f.length===0?"..":"\\..");return l+=d,f.length>0?`${f}${i.slice(l,o)}`:(i.charCodeAt(l)===pe&&++l,i.slice(l,o))},toNamespacedPath(t){if(typeof t!="string"||t.length===0)return t;const e=ce.resolve(t);if(e.length<=2)return t;if(e.charCodeAt(0)===pe){if(e.charCodeAt(1)===pe){const n=e.charCodeAt(2);if(n!==bl&&n!==Ye)return`\\\\?\\UNC\\${e.slice(2)}`}}else if(Ue(e.charCodeAt(0))&&e.charCodeAt(1)===ze&&e.charCodeAt(2)===pe)return`\\\\?\\${e}`;return e},dirname(t){ie(t,"path");const e=t.length;if(e===0)return".";let n=-1,i=0;const r=t.charCodeAt(0);if(e===1)return $(r)?t:".";if($(r)){if(n=i=1,$(t.charCodeAt(1))){let l=2,o=l;for(;l<e&&!$(t.charCodeAt(l));)l++;if(l<e&&l!==o){for(o=l;l<e&&$(t.charCodeAt(l));)l++;if(l<e&&l!==o){for(o=l;l<e&&!$(t.charCodeAt(l));)l++;if(l===e)return t;l!==o&&(n=i=l+1)}}}}else Ue(r)&&t.charCodeAt(1)===ze&&(n=e>2&&$(t.charCodeAt(2))?3:2,i=n);let s=-1,a=!0;for(let l=e-1;l>=i;--l)if($(t.charCodeAt(l))){if(!a){s=l;break}}else a=!1;if(s===-1){if(n===-1)return".";s=n}return t.slice(0,s)},basename(t,e){e!==void 0&&ie(e,"suffix"),ie(t,"path");let n=0,i=-1,r=!0,s;if(t.length>=2&&Ue(t.charCodeAt(0))&&t.charCodeAt(1)===ze&&(n=2),e!==void 0&&e.length>0&&e.length<=t.length){if(e===t)return"";let a=e.length-1,l=-1;for(s=t.length-1;s>=n;--s){const o=t.charCodeAt(s);if($(o)){if(!r){n=s+1;break}}else l===-1&&(r=!1,l=s+1),a>=0&&(o===e.charCodeAt(a)?--a===-1&&(i=s):(a=-1,i=l))}return n===i?i=l:i===-1&&(i=t.length),t.slice(n,i)}for(s=t.length-1;s>=n;--s)if($(t.charCodeAt(s))){if(!r){n=s+1;break}}else i===-1&&(r=!1,i=s+1);return i===-1?"":t.slice(n,i)},extname(t){ie(t,"path");let e=0,n=-1,i=0,r=-1,s=!0,a=0;t.length>=2&&t.charCodeAt(1)===ze&&Ue(t.charCodeAt(0))&&(e=i=2);for(let l=t.length-1;l>=e;--l){const o=t.charCodeAt(l);if($(o)){if(!s){i=l+1;break}continue}r===-1&&(s=!1,r=l+1),o===Ye?n===-1?n=l:a!==1&&(a=1):n!==-1&&(a=-1)}return n===-1||r===-1||a===0||a===1&&n===r-1&&n===i+1?"":t.slice(n,r)},format:tr.bind(null,"\\"),parse(t){ie(t,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return e;const n=t.length;let i=0,r=t.charCodeAt(0);if(n===1)return $(r)?(e.root=e.dir=t,e):(e.base=e.name=t,e);if($(r)){if(i=1,$(t.charCodeAt(1))){let d=2,m=d;for(;d<n&&!$(t.charCodeAt(d));)d++;if(d<n&&d!==m){for(m=d;d<n&&$(t.charCodeAt(d));)d++;if(d<n&&d!==m){for(m=d;d<n&&!$(t.charCodeAt(d));)d++;d===n?i=d:d!==m&&(i=d+1)}}}}else if(Ue(r)&&t.charCodeAt(1)===ze){if(n<=2)return e.root=e.dir=t,e;if(i=2,$(t.charCodeAt(2))){if(n===3)return e.root=e.dir=t,e;i=3}}i>0&&(e.root=t.slice(0,i));let s=-1,a=i,l=-1,o=!0,u=t.length-1,h=0;for(;u>=i;--u){if(r=t.charCodeAt(u),$(r)){if(!o){a=u+1;break}continue}l===-1&&(o=!1,l=u+1),r===Ye?s===-1?s=u:h!==1&&(h=1):s!==-1&&(h=-1)}return l!==-1&&(s===-1||h===0||h===1&&s===l-1&&s===a+1?e.base=e.name=t.slice(a,l):(e.name=t.slice(a,s),e.base=t.slice(a,l),e.ext=t.slice(s,l))),a>0&&a!==i?e.dir=t.slice(0,a-1):e.dir=e.root,e},sep:"\\",delimiter:";",win32:null,posix:null},vl=(()=>{if(He){const t=/\\/g;return()=>{const e=Kt().replace(t,"/");return e.slice(e.indexOf("/"))}}return()=>Kt()})(),de={resolve(...t){let e="",n=!1;for(let i=t.length-1;i>=0&&!n;i--){const r=t[i];ie(r,`paths[${i}]`),r.length!==0&&(e=`${r}/${e}`,n=r.charCodeAt(0)===ae)}if(!n){const i=vl();e=`${i}/${e}`,n=i.charCodeAt(0)===ae}return e=en(e,!n,"/",Xn),n?`/${e}`:e.length>0?e:"."},normalize(t){if(ie(t,"path"),t.length===0)return".";const e=t.charCodeAt(0)===ae,n=t.charCodeAt(t.length-1)===ae;return t=en(t,!e,"/",Xn),t.length===0?e?"/":n?"./":".":(n&&(t+="/"),e?`/${t}`:t)},isAbsolute(t){return ie(t,"path"),t.length>0&&t.charCodeAt(0)===ae},join(...t){if(t.length===0)return".";const e=[];for(let n=0;n<t.length;++n){const i=t[n];ie(i,"path"),i.length>0&&e.push(i)}return e.length===0?".":de.normalize(e.join("/"))},relative(t,e){if(ie(t,"from"),ie(e,"to"),t===e||(t=de.resolve(t),e=de.resolve(e),t===e))return"";const n=1,i=t.length,r=i-n,s=1,a=e.length-s,l=r<a?r:a;let o=-1,u=0;for(;u<l;u++){const d=t.charCodeAt(n+u);if(d!==e.charCodeAt(s+u))break;d===ae&&(o=u)}if(u===l)if(a>l){if(e.charCodeAt(s+u)===ae)return e.slice(s+u+1);if(u===0)return e.slice(s+u)}else r>l&&(t.charCodeAt(n+u)===ae?o=u:u===0&&(o=0));let h="";for(u=n+o+1;u<=i;++u)(u===i||t.charCodeAt(u)===ae)&&(h+=h.length===0?"..":"/..");return`${h}${e.slice(s+o)}`},toNamespacedPath(t){return t},dirname(t){if(ie(t,"path"),t.length===0)return".";const e=t.charCodeAt(0)===ae;let n=-1,i=!0;for(let r=t.length-1;r>=1;--r)if(t.charCodeAt(r)===ae){if(!i){n=r;break}}else i=!1;return n===-1?e?"/":".":e&&n===1?"//":t.slice(0,n)},basename(t,e){e!==void 0&&ie(e,"suffix"),ie(t,"path");let n=0,i=-1,r=!0,s;if(e!==void 0&&e.length>0&&e.length<=t.length){if(e===t)return"";let a=e.length-1,l=-1;for(s=t.length-1;s>=0;--s){const o=t.charCodeAt(s);if(o===ae){if(!r){n=s+1;break}}else l===-1&&(r=!1,l=s+1),a>=0&&(o===e.charCodeAt(a)?--a===-1&&(i=s):(a=-1,i=l))}return n===i?i=l:i===-1&&(i=t.length),t.slice(n,i)}for(s=t.length-1;s>=0;--s)if(t.charCodeAt(s)===ae){if(!r){n=s+1;break}}else i===-1&&(r=!1,i=s+1);return i===-1?"":t.slice(n,i)},extname(t){ie(t,"path");let e=-1,n=0,i=-1,r=!0,s=0;for(let a=t.length-1;a>=0;--a){const l=t[a];if(l==="/"){if(!r){n=a+1;break}continue}i===-1&&(r=!1,i=a+1),l==="."?e===-1?e=a:s!==1&&(s=1):e!==-1&&(s=-1)}return e===-1||i===-1||s===0||s===1&&e===i-1&&e===n+1?"":t.slice(e,i)},format:tr.bind(null,"/"),parse(t){ie(t,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return e;const n=t.charCodeAt(0)===ae;let i;n?(e.root="/",i=1):i=0;let r=-1,s=0,a=-1,l=!0,o=t.length-1,u=0;for(;o>=i;--o){const h=t.charCodeAt(o);if(h===ae){if(!l){s=o+1;break}continue}a===-1&&(l=!1,a=o+1),h===Ye?r===-1?r=o:u!==1&&(u=1):r!==-1&&(u=-1)}if(a!==-1){const h=s===0&&n?1:s;r===-1||u===0||u===1&&r===a-1&&r===s+1?e.base=e.name=t.slice(h,a):(e.name=t.slice(h,r),e.base=t.slice(h,a),e.ext=t.slice(r,a))}return s>0?e.dir=t.slice(0,s-1):n&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};de.win32=ce.win32=ce,de.posix=ce.posix=de,He?ce.normalize:de.normalize,He?ce.join:de.join,He?ce.resolve:de.resolve,He?ce.relative:de.relative,He?ce.dirname:de.dirname,He?ce.basename:de.basename,He?ce.extname:de.extname,He?ce.sep:de.sep;const yl=/^\w[\w\d+.-]*$/,Tl=/^\//,xl=/^\/\//;function kl(t,e){if(!t.scheme&&e)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${t.authority}", path: "${t.path}", query: "${t.query}", fragment: "${t.fragment}"}`);if(t.scheme&&!yl.test(t.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(t.path){if(t.authority){if(!Tl.test(t.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(xl.test(t.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function Sl(t,e){return!t&&!e?"file":t}function Al(t,e){switch(t){case"https":case"http":case"file":e?e[0]!==Ae&&(e=Ae+e):e=Ae;break}return e}const ee="",Ae="/",Ll=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;let Jn=class Sn{static isUri(e){return e instanceof Sn?!0:!e||typeof e!="object"?!1:typeof e.authority=="string"&&typeof e.fragment=="string"&&typeof e.path=="string"&&typeof e.query=="string"&&typeof e.scheme=="string"&&typeof e.fsPath=="string"&&typeof e.with=="function"&&typeof e.toString=="function"}constructor(e,n,i,r,s,a=!1){typeof e=="object"?(this.scheme=e.scheme||ee,this.authority=e.authority||ee,this.path=e.path||ee,this.query=e.query||ee,this.fragment=e.fragment||ee):(this.scheme=Sl(e,a),this.authority=n||ee,this.path=Al(this.scheme,i||ee),this.query=r||ee,this.fragment=s||ee,kl(this,a))}get fsPath(){return Qn(this,!1)}with(e){if(!e)return this;let{scheme:n,authority:i,path:r,query:s,fragment:a}=e;return n===void 0?n=this.scheme:n===null&&(n=ee),i===void 0?i=this.authority:i===null&&(i=ee),r===void 0?r=this.path:r===null&&(r=ee),s===void 0?s=this.query:s===null&&(s=ee),a===void 0?a=this.fragment:a===null&&(a=ee),n===this.scheme&&i===this.authority&&r===this.path&&s===this.query&&a===this.fragment?this:new lt(n,i,r,s,a)}static parse(e,n=!1){const i=Ll.exec(e);return i?new lt(i[2]||ee,tn(i[4]||ee),tn(i[5]||ee),tn(i[7]||ee),tn(i[9]||ee),n):new lt(ee,ee,ee,ee,ee)}static file(e){let n=ee;if(St&&(e=e.replace(/\\/g,Ae)),e[0]===Ae&&e[1]===Ae){const i=e.indexOf(Ae,2);i===-1?(n=e.substring(2),e=Ae):(n=e.substring(2,i),e=e.substring(i)||Ae)}return new lt("file",n,e,ee,ee)}static from(e,n){return new lt(e.scheme,e.authority,e.path,e.query,e.fragment,n)}static joinPath(e,...n){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let i;return St&&e.scheme==="file"?i=Sn.file(ce.join(Qn(e,!0),...n)).path:i=de.join(e.path,...n),e.with({path:i})}toString(e=!1){return Yn(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof Sn)return e;{const n=new lt(e);return n._formatted=e.external??null,n._fsPath=e._sep===nr?e.fsPath??null:null,n}}else return e}};const nr=St?1:void 0;class lt extends Jn{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=Qn(this,!1)),this._fsPath}toString(e=!1){return e?Yn(this,!0):(this._formatted||(this._formatted=Yn(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=nr),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}const ir={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function rr(t,e,n){let i,r=-1;for(let s=0;s<t.length;s++){const a=t.charCodeAt(s);if(a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||a===45||a===46||a===95||a===126||e&&a===47||n&&a===91||n&&a===93||n&&a===58)r!==-1&&(i+=encodeURIComponent(t.substring(r,s)),r=-1),i!==void 0&&(i+=t.charAt(s));else{i===void 0&&(i=t.substr(0,s));const l=ir[a];l!==void 0?(r!==-1&&(i+=encodeURIComponent(t.substring(r,s)),r=-1),i+=l):r===-1&&(r=s)}}return r!==-1&&(i+=encodeURIComponent(t.substring(r))),i!==void 0?i:t}function Cl(t){let e;for(let n=0;n<t.length;n++){const i=t.charCodeAt(n);i===35||i===63?(e===void 0&&(e=t.substr(0,n)),e+=ir[i]):e!==void 0&&(e+=t[n])}return e!==void 0?e:t}function Qn(t,e){let n;return t.authority&&t.path.length>1&&t.scheme==="file"?n=`//${t.authority}${t.path}`:t.path.charCodeAt(0)===47&&(t.path.charCodeAt(1)>=65&&t.path.charCodeAt(1)<=90||t.path.charCodeAt(1)>=97&&t.path.charCodeAt(1)<=122)&&t.path.charCodeAt(2)===58?e?n=t.path.substr(1):n=t.path[1].toLowerCase()+t.path.substr(2):n=t.path,St&&(n=n.replace(/\//g,"\\")),n}function Yn(t,e){const n=e?Cl:rr;let i="",{scheme:r,authority:s,path:a,query:l,fragment:o}=t;if(r&&(i+=r,i+=":"),(s||r==="file")&&(i+=Ae,i+=Ae),s){let u=s.indexOf("@");if(u!==-1){const h=s.substr(0,u);s=s.substr(u+1),u=h.lastIndexOf(":"),u===-1?i+=n(h,!1,!1):(i+=n(h.substr(0,u),!1,!1),i+=":",i+=n(h.substr(u+1),!1,!0)),i+="@"}s=s.toLowerCase(),u=s.lastIndexOf(":"),u===-1?i+=n(s,!1,!0):(i+=n(s.substr(0,u),!1,!0),i+=s.substr(u))}if(a){if(a.length>=3&&a.charCodeAt(0)===47&&a.charCodeAt(2)===58){const u=a.charCodeAt(1);u>=65&&u<=90&&(a=`/${String.fromCharCode(u+32)}:${a.substr(3)}`)}else if(a.length>=2&&a.charCodeAt(1)===58){const u=a.charCodeAt(0);u>=65&&u<=90&&(a=`${String.fromCharCode(u+32)}:${a.substr(2)}`)}i+=n(a,!0,!1)}return l&&(i+="?",i+=n(l,!1,!1)),o&&(i+="#",i+=e?o:rr(o,!1,!1)),i}function sr(t){try{return decodeURIComponent(t)}catch{return t.length>3?t.substr(0,3)+sr(t.substr(3)):t}}const ar=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function tn(t){return t.match(ar)?t.replace(ar,e=>sr(e)):t}class we extends j{constructor(e,n,i,r){super(e,n,i,r),this.selectionStartLineNumber=e,this.selectionStartColumn=n,this.positionLineNumber=i,this.positionColumn=r}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return we.selectionsEqual(this,e)}static selectionsEqual(e,n){return e.selectionStartLineNumber===n.selectionStartLineNumber&&e.selectionStartColumn===n.selectionStartColumn&&e.positionLineNumber===n.positionLineNumber&&e.positionColumn===n.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,n){return this.getDirection()===0?new we(this.startLineNumber,this.startColumn,e,n):new we(e,n,this.startLineNumber,this.startColumn)}getPosition(){return new K(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new K(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,n){return this.getDirection()===0?new we(e,n,this.endLineNumber,this.endColumn):new we(this.endLineNumber,this.endColumn,e,n)}static fromPositions(e,n=e){return new we(e.lineNumber,e.column,n.lineNumber,n.column)}static fromRange(e,n){return n===0?new we(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new we(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new we(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,n){if(e&&!n||!e&&n)return!1;if(!e&&!n)return!0;if(e.length!==n.length)return!1;for(let i=0,r=e.length;i<r;i++)if(!this.selectionsEqual(e[i],n[i]))return!1;return!0}static isISelection(e){return!!e&&typeof e.selectionStartLineNumber=="number"&&typeof e.selectionStartColumn=="number"&&typeof e.positionLineNumber=="number"&&typeof e.positionColumn=="number"}static createWithDirection(e,n,i,r,s){return s===0?new we(e,n,i,r):new we(i,r,e,n)}}const or=Object.create(null);function c(t,e){if(ho(e)){const n=or[e];if(n===void 0)throw new Error(`${t} references an unknown codicon: ${e}`);e=n}return or[t]=e,{id:t}}const El={add:c("add",6e4),plus:c("plus",6e4),gistNew:c("gist-new",6e4),repoCreate:c("repo-create",6e4),lightbulb:c("lightbulb",60001),lightBulb:c("light-bulb",60001),repo:c("repo",60002),repoDelete:c("repo-delete",60002),gistFork:c("gist-fork",60003),repoForked:c("repo-forked",60003),gitPullRequest:c("git-pull-request",60004),gitPullRequestAbandoned:c("git-pull-request-abandoned",60004),recordKeys:c("record-keys",60005),keyboard:c("keyboard",60005),tag:c("tag",60006),gitPullRequestLabel:c("git-pull-request-label",60006),tagAdd:c("tag-add",60006),tagRemove:c("tag-remove",60006),person:c("person",60007),personFollow:c("person-follow",60007),personOutline:c("person-outline",60007),personFilled:c("person-filled",60007),sourceControl:c("source-control",60008),mirror:c("mirror",60009),mirrorPublic:c("mirror-public",60009),star:c("star",60010),starAdd:c("star-add",60010),starDelete:c("star-delete",60010),starEmpty:c("star-empty",60010),comment:c("comment",60011),commentAdd:c("comment-add",60011),alert:c("alert",60012),warning:c("warning",60012),search:c("search",60013),searchSave:c("search-save",60013),logOut:c("log-out",60014),signOut:c("sign-out",60014),logIn:c("log-in",60015),signIn:c("sign-in",60015),eye:c("eye",60016),eyeUnwatch:c("eye-unwatch",60016),eyeWatch:c("eye-watch",60016),circleFilled:c("circle-filled",60017),primitiveDot:c("primitive-dot",60017),closeDirty:c("close-dirty",60017),debugBreakpoint:c("debug-breakpoint",60017),debugBreakpointDisabled:c("debug-breakpoint-disabled",60017),debugHint:c("debug-hint",60017),terminalDecorationSuccess:c("terminal-decoration-success",60017),primitiveSquare:c("primitive-square",60018),edit:c("edit",60019),pencil:c("pencil",60019),info:c("info",60020),issueOpened:c("issue-opened",60020),gistPrivate:c("gist-private",60021),gitForkPrivate:c("git-fork-private",60021),lock:c("lock",60021),mirrorPrivate:c("mirror-private",60021),close:c("close",60022),removeClose:c("remove-close",60022),x:c("x",60022),repoSync:c("repo-sync",60023),sync:c("sync",60023),clone:c("clone",60024),desktopDownload:c("desktop-download",60024),beaker:c("beaker",60025),microscope:c("microscope",60025),vm:c("vm",60026),deviceDesktop:c("device-desktop",60026),file:c("file",60027),more:c("more",60028),ellipsis:c("ellipsis",60028),kebabHorizontal:c("kebab-horizontal",60028),mailReply:c("mail-reply",60029),reply:c("reply",60029),organization:c("organization",60030),organizationFilled:c("organization-filled",60030),organizationOutline:c("organization-outline",60030),newFile:c("new-file",60031),fileAdd:c("file-add",60031),newFolder:c("new-folder",60032),fileDirectoryCreate:c("file-directory-create",60032),trash:c("trash",60033),trashcan:c("trashcan",60033),history:c("history",60034),clock:c("clock",60034),folder:c("folder",60035),fileDirectory:c("file-directory",60035),symbolFolder:c("symbol-folder",60035),logoGithub:c("logo-github",60036),markGithub:c("mark-github",60036),github:c("github",60036),terminal:c("terminal",60037),console:c("console",60037),repl:c("repl",60037),zap:c("zap",60038),symbolEvent:c("symbol-event",60038),error:c("error",60039),stop:c("stop",60039),variable:c("variable",60040),symbolVariable:c("symbol-variable",60040),array:c("array",60042),symbolArray:c("symbol-array",60042),symbolModule:c("symbol-module",60043),symbolPackage:c("symbol-package",60043),symbolNamespace:c("symbol-namespace",60043),symbolObject:c("symbol-object",60043),symbolMethod:c("symbol-method",60044),symbolFunction:c("symbol-function",60044),symbolConstructor:c("symbol-constructor",60044),symbolBoolean:c("symbol-boolean",60047),symbolNull:c("symbol-null",60047),symbolNumeric:c("symbol-numeric",60048),symbolNumber:c("symbol-number",60048),symbolStructure:c("symbol-structure",60049),symbolStruct:c("symbol-struct",60049),symbolParameter:c("symbol-parameter",60050),symbolTypeParameter:c("symbol-type-parameter",60050),symbolKey:c("symbol-key",60051),symbolText:c("symbol-text",60051),symbolReference:c("symbol-reference",60052),goToFile:c("go-to-file",60052),symbolEnum:c("symbol-enum",60053),symbolValue:c("symbol-value",60053),symbolRuler:c("symbol-ruler",60054),symbolUnit:c("symbol-unit",60054),activateBreakpoints:c("activate-breakpoints",60055),archive:c("archive",60056),arrowBoth:c("arrow-both",60057),arrowDown:c("arrow-down",60058),arrowLeft:c("arrow-left",60059),arrowRight:c("arrow-right",60060),arrowSmallDown:c("arrow-small-down",60061),arrowSmallLeft:c("arrow-small-left",60062),arrowSmallRight:c("arrow-small-right",60063),arrowSmallUp:c("arrow-small-up",60064),arrowUp:c("arrow-up",60065),bell:c("bell",60066),bold:c("bold",60067),book:c("book",60068),bookmark:c("bookmark",60069),debugBreakpointConditionalUnverified:c("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:c("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:c("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:c("debug-breakpoint-data-unverified",60072),debugBreakpointData:c("debug-breakpoint-data",60073),debugBreakpointDataDisabled:c("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:c("debug-breakpoint-log-unverified",60074),debugBreakpointLog:c("debug-breakpoint-log",60075),debugBreakpointLogDisabled:c("debug-breakpoint-log-disabled",60075),briefcase:c("briefcase",60076),broadcast:c("broadcast",60077),browser:c("browser",60078),bug:c("bug",60079),calendar:c("calendar",60080),caseSensitive:c("case-sensitive",60081),check:c("check",60082),checklist:c("checklist",60083),chevronDown:c("chevron-down",60084),chevronLeft:c("chevron-left",60085),chevronRight:c("chevron-right",60086),chevronUp:c("chevron-up",60087),chromeClose:c("chrome-close",60088),chromeMaximize:c("chrome-maximize",60089),chromeMinimize:c("chrome-minimize",60090),chromeRestore:c("chrome-restore",60091),circleOutline:c("circle-outline",60092),circle:c("circle",60092),debugBreakpointUnverified:c("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:c("terminal-decoration-incomplete",60092),circleSlash:c("circle-slash",60093),circuitBoard:c("circuit-board",60094),clearAll:c("clear-all",60095),clippy:c("clippy",60096),closeAll:c("close-all",60097),cloudDownload:c("cloud-download",60098),cloudUpload:c("cloud-upload",60099),code:c("code",60100),collapseAll:c("collapse-all",60101),colorMode:c("color-mode",60102),commentDiscussion:c("comment-discussion",60103),creditCard:c("credit-card",60105),dash:c("dash",60108),dashboard:c("dashboard",60109),database:c("database",60110),debugContinue:c("debug-continue",60111),debugDisconnect:c("debug-disconnect",60112),debugPause:c("debug-pause",60113),debugRestart:c("debug-restart",60114),debugStart:c("debug-start",60115),debugStepInto:c("debug-step-into",60116),debugStepOut:c("debug-step-out",60117),debugStepOver:c("debug-step-over",60118),debugStop:c("debug-stop",60119),debug:c("debug",60120),deviceCameraVideo:c("device-camera-video",60121),deviceCamera:c("device-camera",60122),deviceMobile:c("device-mobile",60123),diffAdded:c("diff-added",60124),diffIgnored:c("diff-ignored",60125),diffModified:c("diff-modified",60126),diffRemoved:c("diff-removed",60127),diffRenamed:c("diff-renamed",60128),diff:c("diff",60129),diffSidebyside:c("diff-sidebyside",60129),discard:c("discard",60130),editorLayout:c("editor-layout",60131),emptyWindow:c("empty-window",60132),exclude:c("exclude",60133),extensions:c("extensions",60134),eyeClosed:c("eye-closed",60135),fileBinary:c("file-binary",60136),fileCode:c("file-code",60137),fileMedia:c("file-media",60138),filePdf:c("file-pdf",60139),fileSubmodule:c("file-submodule",60140),fileSymlinkDirectory:c("file-symlink-directory",60141),fileSymlinkFile:c("file-symlink-file",60142),fileZip:c("file-zip",60143),files:c("files",60144),filter:c("filter",60145),flame:c("flame",60146),foldDown:c("fold-down",60147),foldUp:c("fold-up",60148),fold:c("fold",60149),folderActive:c("folder-active",60150),folderOpened:c("folder-opened",60151),gear:c("gear",60152),gift:c("gift",60153),gistSecret:c("gist-secret",60154),gist:c("gist",60155),gitCommit:c("git-commit",60156),gitCompare:c("git-compare",60157),compareChanges:c("compare-changes",60157),gitMerge:c("git-merge",60158),githubAction:c("github-action",60159),githubAlt:c("github-alt",60160),globe:c("globe",60161),grabber:c("grabber",60162),graph:c("graph",60163),gripper:c("gripper",60164),heart:c("heart",60165),home:c("home",60166),horizontalRule:c("horizontal-rule",60167),hubot:c("hubot",60168),inbox:c("inbox",60169),issueReopened:c("issue-reopened",60171),issues:c("issues",60172),italic:c("italic",60173),jersey:c("jersey",60174),json:c("json",60175),bracket:c("bracket",60175),kebabVertical:c("kebab-vertical",60176),key:c("key",60177),law:c("law",60178),lightbulbAutofix:c("lightbulb-autofix",60179),linkExternal:c("link-external",60180),link:c("link",60181),listOrdered:c("list-ordered",60182),listUnordered:c("list-unordered",60183),liveShare:c("live-share",60184),loading:c("loading",60185),location:c("location",60186),mailRead:c("mail-read",60187),mail:c("mail",60188),markdown:c("markdown",60189),megaphone:c("megaphone",60190),mention:c("mention",60191),milestone:c("milestone",60192),gitPullRequestMilestone:c("git-pull-request-milestone",60192),mortarBoard:c("mortar-board",60193),move:c("move",60194),multipleWindows:c("multiple-windows",60195),mute:c("mute",60196),noNewline:c("no-newline",60197),note:c("note",60198),octoface:c("octoface",60199),openPreview:c("open-preview",60200),package:c("package",60201),paintcan:c("paintcan",60202),pin:c("pin",60203),play:c("play",60204),run:c("run",60204),plug:c("plug",60205),preserveCase:c("preserve-case",60206),preview:c("preview",60207),project:c("project",60208),pulse:c("pulse",60209),question:c("question",60210),quote:c("quote",60211),radioTower:c("radio-tower",60212),reactions:c("reactions",60213),references:c("references",60214),refresh:c("refresh",60215),regex:c("regex",60216),remoteExplorer:c("remote-explorer",60217),remote:c("remote",60218),remove:c("remove",60219),replaceAll:c("replace-all",60220),replace:c("replace",60221),repoClone:c("repo-clone",60222),repoForcePush:c("repo-force-push",60223),repoPull:c("repo-pull",60224),repoPush:c("repo-push",60225),report:c("report",60226),requestChanges:c("request-changes",60227),rocket:c("rocket",60228),rootFolderOpened:c("root-folder-opened",60229),rootFolder:c("root-folder",60230),rss:c("rss",60231),ruby:c("ruby",60232),saveAll:c("save-all",60233),saveAs:c("save-as",60234),save:c("save",60235),screenFull:c("screen-full",60236),screenNormal:c("screen-normal",60237),searchStop:c("search-stop",60238),server:c("server",60240),settingsGear:c("settings-gear",60241),settings:c("settings",60242),shield:c("shield",60243),smiley:c("smiley",60244),sortPrecedence:c("sort-precedence",60245),splitHorizontal:c("split-horizontal",60246),splitVertical:c("split-vertical",60247),squirrel:c("squirrel",60248),starFull:c("star-full",60249),starHalf:c("star-half",60250),symbolClass:c("symbol-class",60251),symbolColor:c("symbol-color",60252),symbolConstant:c("symbol-constant",60253),symbolEnumMember:c("symbol-enum-member",60254),symbolField:c("symbol-field",60255),symbolFile:c("symbol-file",60256),symbolInterface:c("symbol-interface",60257),symbolKeyword:c("symbol-keyword",60258),symbolMisc:c("symbol-misc",60259),symbolOperator:c("symbol-operator",60260),symbolProperty:c("symbol-property",60261),wrench:c("wrench",60261),wrenchSubaction:c("wrench-subaction",60261),symbolSnippet:c("symbol-snippet",60262),tasklist:c("tasklist",60263),telescope:c("telescope",60264),textSize:c("text-size",60265),threeBars:c("three-bars",60266),thumbsdown:c("thumbsdown",60267),thumbsup:c("thumbsup",60268),tools:c("tools",60269),triangleDown:c("triangle-down",60270),triangleLeft:c("triangle-left",60271),triangleRight:c("triangle-right",60272),triangleUp:c("triangle-up",60273),twitter:c("twitter",60274),unfold:c("unfold",60275),unlock:c("unlock",60276),unmute:c("unmute",60277),unverified:c("unverified",60278),verified:c("verified",60279),versions:c("versions",60280),vmActive:c("vm-active",60281),vmOutline:c("vm-outline",60282),vmRunning:c("vm-running",60283),watch:c("watch",60284),whitespace:c("whitespace",60285),wholeWord:c("whole-word",60286),window:c("window",60287),wordWrap:c("word-wrap",60288),zoomIn:c("zoom-in",60289),zoomOut:c("zoom-out",60290),listFilter:c("list-filter",60291),listFlat:c("list-flat",60292),listSelection:c("list-selection",60293),selection:c("selection",60293),listTree:c("list-tree",60294),debugBreakpointFunctionUnverified:c("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:c("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:c("debug-breakpoint-function-disabled",60296),debugStackframeActive:c("debug-stackframe-active",60297),circleSmallFilled:c("circle-small-filled",60298),debugStackframeDot:c("debug-stackframe-dot",60298),terminalDecorationMark:c("terminal-decoration-mark",60298),debugStackframe:c("debug-stackframe",60299),debugStackframeFocused:c("debug-stackframe-focused",60299),debugBreakpointUnsupported:c("debug-breakpoint-unsupported",60300),symbolString:c("symbol-string",60301),debugReverseContinue:c("debug-reverse-continue",60302),debugStepBack:c("debug-step-back",60303),debugRestartFrame:c("debug-restart-frame",60304),debugAlt:c("debug-alt",60305),callIncoming:c("call-incoming",60306),callOutgoing:c("call-outgoing",60307),menu:c("menu",60308),expandAll:c("expand-all",60309),feedback:c("feedback",60310),gitPullRequestReviewer:c("git-pull-request-reviewer",60310),groupByRefType:c("group-by-ref-type",60311),ungroupByRefType:c("ungroup-by-ref-type",60312),account:c("account",60313),gitPullRequestAssignee:c("git-pull-request-assignee",60313),bellDot:c("bell-dot",60314),debugConsole:c("debug-console",60315),library:c("library",60316),output:c("output",60317),runAll:c("run-all",60318),syncIgnored:c("sync-ignored",60319),pinned:c("pinned",60320),githubInverted:c("github-inverted",60321),serverProcess:c("server-process",60322),serverEnvironment:c("server-environment",60323),pass:c("pass",60324),issueClosed:c("issue-closed",60324),stopCircle:c("stop-circle",60325),playCircle:c("play-circle",60326),record:c("record",60327),debugAltSmall:c("debug-alt-small",60328),vmConnect:c("vm-connect",60329),cloud:c("cloud",60330),merge:c("merge",60331),export:c("export",60332),graphLeft:c("graph-left",60333),magnet:c("magnet",60334),notebook:c("notebook",60335),redo:c("redo",60336),checkAll:c("check-all",60337),pinnedDirty:c("pinned-dirty",60338),passFilled:c("pass-filled",60339),circleLargeFilled:c("circle-large-filled",60340),circleLarge:c("circle-large",60341),circleLargeOutline:c("circle-large-outline",60341),combine:c("combine",60342),gather:c("gather",60342),table:c("table",60343),variableGroup:c("variable-group",60344),typeHierarchy:c("type-hierarchy",60345),typeHierarchySub:c("type-hierarchy-sub",60346),typeHierarchySuper:c("type-hierarchy-super",60347),gitPullRequestCreate:c("git-pull-request-create",60348),runAbove:c("run-above",60349),runBelow:c("run-below",60350),notebookTemplate:c("notebook-template",60351),debugRerun:c("debug-rerun",60352),workspaceTrusted:c("workspace-trusted",60353),workspaceUntrusted:c("workspace-untrusted",60354),workspaceUnknown:c("workspace-unknown",60355),terminalCmd:c("terminal-cmd",60356),terminalDebian:c("terminal-debian",60357),terminalLinux:c("terminal-linux",60358),terminalPowershell:c("terminal-powershell",60359),terminalTmux:c("terminal-tmux",60360),terminalUbuntu:c("terminal-ubuntu",60361),terminalBash:c("terminal-bash",60362),arrowSwap:c("arrow-swap",60363),copy:c("copy",60364),personAdd:c("person-add",60365),filterFilled:c("filter-filled",60366),wand:c("wand",60367),debugLineByLine:c("debug-line-by-line",60368),inspect:c("inspect",60369),layers:c("layers",60370),layersDot:c("layers-dot",60371),layersActive:c("layers-active",60372),compass:c("compass",60373),compassDot:c("compass-dot",60374),compassActive:c("compass-active",60375),azure:c("azure",60376),issueDraft:c("issue-draft",60377),gitPullRequestClosed:c("git-pull-request-closed",60378),gitPullRequestDraft:c("git-pull-request-draft",60379),debugAll:c("debug-all",60380),debugCoverage:c("debug-coverage",60381),runErrors:c("run-errors",60382),folderLibrary:c("folder-library",60383),debugContinueSmall:c("debug-continue-small",60384),beakerStop:c("beaker-stop",60385),graphLine:c("graph-line",60386),graphScatter:c("graph-scatter",60387),pieChart:c("pie-chart",60388),bracketDot:c("bracket-dot",60389),bracketError:c("bracket-error",60390),lockSmall:c("lock-small",60391),azureDevops:c("azure-devops",60392),verifiedFilled:c("verified-filled",60393),newline:c("newline",60394),layout:c("layout",60395),layoutActivitybarLeft:c("layout-activitybar-left",60396),layoutActivitybarRight:c("layout-activitybar-right",60397),layoutPanelLeft:c("layout-panel-left",60398),layoutPanelCenter:c("layout-panel-center",60399),layoutPanelJustify:c("layout-panel-justify",60400),layoutPanelRight:c("layout-panel-right",60401),layoutPanel:c("layout-panel",60402),layoutSidebarLeft:c("layout-sidebar-left",60403),layoutSidebarRight:c("layout-sidebar-right",60404),layoutStatusbar:c("layout-statusbar",60405),layoutMenubar:c("layout-menubar",60406),layoutCentered:c("layout-centered",60407),target:c("target",60408),indent:c("indent",60409),recordSmall:c("record-small",60410),errorSmall:c("error-small",60411),terminalDecorationError:c("terminal-decoration-error",60411),arrowCircleDown:c("arrow-circle-down",60412),arrowCircleLeft:c("arrow-circle-left",60413),arrowCircleRight:c("arrow-circle-right",60414),arrowCircleUp:c("arrow-circle-up",60415),layoutSidebarRightOff:c("layout-sidebar-right-off",60416),layoutPanelOff:c("layout-panel-off",60417),layoutSidebarLeftOff:c("layout-sidebar-left-off",60418),blank:c("blank",60419),heartFilled:c("heart-filled",60420),map:c("map",60421),mapHorizontal:c("map-horizontal",60421),foldHorizontal:c("fold-horizontal",60421),mapFilled:c("map-filled",60422),mapHorizontalFilled:c("map-horizontal-filled",60422),foldHorizontalFilled:c("fold-horizontal-filled",60422),circleSmall:c("circle-small",60423),bellSlash:c("bell-slash",60424),bellSlashDot:c("bell-slash-dot",60425),commentUnresolved:c("comment-unresolved",60426),gitPullRequestGoToChanges:c("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:c("git-pull-request-new-changes",60428),searchFuzzy:c("search-fuzzy",60429),commentDraft:c("comment-draft",60430),send:c("send",60431),sparkle:c("sparkle",60432),insert:c("insert",60433),mic:c("mic",60434),thumbsdownFilled:c("thumbsdown-filled",60435),thumbsupFilled:c("thumbsup-filled",60436),coffee:c("coffee",60437),snake:c("snake",60438),game:c("game",60439),vr:c("vr",60440),chip:c("chip",60441),piano:c("piano",60442),music:c("music",60443),micFilled:c("mic-filled",60444),repoFetch:c("repo-fetch",60445),copilot:c("copilot",60446),lightbulbSparkle:c("lightbulb-sparkle",60447),robot:c("robot",60448),sparkleFilled:c("sparkle-filled",60449),diffSingle:c("diff-single",60450),diffMultiple:c("diff-multiple",60451),surroundWith:c("surround-with",60452),share:c("share",60453),gitStash:c("git-stash",60454),gitStashApply:c("git-stash-apply",60455),gitStashPop:c("git-stash-pop",60456),vscode:c("vscode",60457),vscodeInsiders:c("vscode-insiders",60458),codeOss:c("code-oss",60459),runCoverage:c("run-coverage",60460),runAllCoverage:c("run-all-coverage",60461),coverage:c("coverage",60462),githubProject:c("github-project",60463),mapVertical:c("map-vertical",60464),foldVertical:c("fold-vertical",60464),mapVerticalFilled:c("map-vertical-filled",60465),foldVerticalFilled:c("fold-vertical-filled",60465),goToSearch:c("go-to-search",60466),percentage:c("percentage",60467),sortPercentage:c("sort-percentage",60467),attach:c("attach",60468),goToEditingSession:c("go-to-editing-session",60469),editSession:c("edit-session",60470),codeReview:c("code-review",60471),copilotWarning:c("copilot-warning",60472),python:c("python",60473),copilotLarge:c("copilot-large",60474),copilotWarningLarge:c("copilot-warning-large",60475),keyboardTab:c("keyboard-tab",60476),copilotBlocked:c("copilot-blocked",60477),copilotNotConnected:c("copilot-not-connected",60478),flag:c("flag",60479),lightbulbEmpty:c("lightbulb-empty",60480),symbolMethodArrow:c("symbol-method-arrow",60481),copilotUnavailable:c("copilot-unavailable",60482),repoPinned:c("repo-pinned",60483),keyboardTabAbove:c("keyboard-tab-above",60484),keyboardTabBelow:c("keyboard-tab-below",60485),gitPullRequestDone:c("git-pull-request-done",60486),mcp:c("mcp",60487),extensionsLarge:c("extensions-large",60488),layoutPanelDock:c("layout-panel-dock",60489),layoutSidebarLeftDock:c("layout-sidebar-left-dock",60490),layoutSidebarRightDock:c("layout-sidebar-right-dock",60491),copilotInProgress:c("copilot-in-progress",60492),copilotError:c("copilot-error",60493),copilotSuccess:c("copilot-success",60494),chatSparkle:c("chat-sparkle",60495),searchSparkle:c("search-sparkle",60496),editSparkle:c("edit-sparkle",60497),copilotSnooze:c("copilot-snooze",60498),sendToRemoteAgent:c("send-to-remote-agent",60499),commentDiscussionSparkle:c("comment-discussion-sparkle",60500),chatSparkleWarning:c("chat-sparkle-warning",60501),chatSparkleError:c("chat-sparkle-error",60502),collection:c("collection",60503),newCollection:c("new-collection",60504),thinking:c("thinking",60505),build:c("build",60506),commentDiscussionQuote:c("comment-discussion-quote",60507),cursor:c("cursor",60508),eraser:c("eraser",60509),fileText:c("file-text",60510),quotes:c("quotes",60512),rename:c("rename",60513),runWithDeps:c("run-with-deps",60514),debugConnected:c("debug-connected",60515),strikethrough:c("strikethrough",60516),openInProduct:c("open-in-product",60517),indexZero:c("index-zero",60518),agent:c("agent",60519),editCode:c("edit-code",60520),repoSelected:c("repo-selected",60521),skip:c("skip",60522),mergeInto:c("merge-into",60523),gitBranchChanges:c("git-branch-changes",60524),gitBranchStagedChanges:c("git-branch-staged-changes",60525),gitBranchConflicts:c("git-branch-conflicts",60526),gitBranch:c("git-branch",60527),gitBranchCreate:c("git-branch-create",60527),gitBranchDelete:c("git-branch-delete",60527),searchLarge:c("search-large",60528),terminalGitBash:c("terminal-git-bash",60529),windowActive:c("window-active",60530),forward:c("forward",60531),download:c("download",60532),clockface:c("clockface",60533),unarchive:c("unarchive",60534),sessionInProgress:c("session-in-progress",60535),collectionSmall:c("collection-small",60536),vmSmall:c("vm-small",60537),cloudSmall:c("cloud-small",60538),addSmall:c("add-small",60539),removeSmall:c("remove-small",60540),worktreeSmall:c("worktree-small",60541),worktree:c("worktree",60542),screenCut:c("screen-cut",60543),ask:c("ask",60544)},Rl={dialogError:c("dialog-error","error"),dialogWarning:c("dialog-warning","warning"),dialogInfo:c("dialog-info","info"),dialogClose:c("dialog-close","close"),treeItemExpanded:c("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:c("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:c("tree-filter-on-type-off","list-selection"),treeFilterClear:c("tree-filter-clear","close"),treeItemLoading:c("tree-item-loading","loading"),menuSelection:c("menu-selection","check"),menuSubmenu:c("menu-submenu","chevron-right"),menuBarMore:c("menubar-more","more"),scrollbarButtonLeft:c("scrollbar-button-left","triangle-left"),scrollbarButtonRight:c("scrollbar-button-right","triangle-right"),scrollbarButtonUp:c("scrollbar-button-up","triangle-up"),scrollbarButtonDown:c("scrollbar-button-down","triangle-down"),toolBarMore:c("toolbar-more","more"),quickInputBack:c("quick-input-back","arrow-left"),dropDownButton:c("drop-down-button",60084),symbolCustomColor:c("symbol-customcolor",60252),exportIcon:c("export",60332),workspaceUnspecified:c("workspace-unspecified",60355),newLine:c("newline",60394),thumbsDownFilled:c("thumbsdown-filled",60435),thumbsUpFilled:c("thumbsup-filled",60436),gitFetch:c("git-fetch",60445),lightbulbSparkleAutofix:c("lightbulb-sparkle-autofix",60447),debugBreakpointPending:c("debug-breakpoint-pending",60377)},q={...El,...Rl};class Dl{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new Se,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})}register(e,n){return this._tokenizationSupports.set(e,n),this.handleChange([e]),$t(()=>{this._tokenizationSupports.get(e)===n&&(this._tokenizationSupports.delete(e),this.handleChange([e]))})}get(e){return this._tokenizationSupports.get(e)||null}registerFactory(e,n){this._factories.get(e)?.dispose();const i=new Ml(this,e,n);return this._factories.set(e,i),$t(()=>{const r=this._factories.get(e);!r||r!==i||(this._factories.delete(e),r.dispose())})}async getOrCreate(e){const n=this.get(e);if(n)return n;const i=this._factories.get(e);return!i||i.isResolved?null:(await i.resolve(),this.get(e))}isResolved(e){if(this.get(e))return!0;const i=this._factories.get(e);return!!(!i||i.isResolved)}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}}class Ml extends Xe{get isResolved(){return this._isResolved}constructor(e,n,i){super(),this._registry=e,this._languageId=n,this._factory=i,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}async _create(){const e=await this._factory.tokenizationSupport;this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))}}class Nl{constructor(e,n,i){this.offset=e,this.type=n,this.language=i,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}var lr;(function(t){t[t.Increase=0]="Increase",t[t.Decrease=1]="Decrease"})(lr||(lr={}));var ur;(function(t){const e=new Map;e.set(0,q.symbolMethod),e.set(1,q.symbolFunction),e.set(2,q.symbolConstructor),e.set(3,q.symbolField),e.set(4,q.symbolVariable),e.set(5,q.symbolClass),e.set(6,q.symbolStruct),e.set(7,q.symbolInterface),e.set(8,q.symbolModule),e.set(9,q.symbolProperty),e.set(10,q.symbolEvent),e.set(11,q.symbolOperator),e.set(12,q.symbolUnit),e.set(13,q.symbolValue),e.set(15,q.symbolEnum),e.set(14,q.symbolConstant),e.set(15,q.symbolEnum),e.set(16,q.symbolEnumMember),e.set(17,q.symbolKeyword),e.set(28,q.symbolSnippet),e.set(18,q.symbolText),e.set(19,q.symbolColor),e.set(20,q.symbolFile),e.set(21,q.symbolReference),e.set(22,q.symbolCustomColor),e.set(23,q.symbolFolder),e.set(24,q.symbolTypeParameter),e.set(25,q.account),e.set(26,q.issues),e.set(27,q.tools);function n(a){let l=e.get(a);return l||(console.info("No codicon found for CompletionItemKind "+a),l=q.symbolProperty),l}t.toIcon=n;function i(a){switch(a){case 0:return O(736,"Method");case 1:return O(737,"Function");case 2:return O(738,"Constructor");case 3:return O(739,"Field");case 4:return O(740,"Variable");case 5:return O(741,"Class");case 6:return O(742,"Struct");case 7:return O(743,"Interface");case 8:return O(744,"Module");case 9:return O(745,"Property");case 10:return O(746,"Event");case 11:return O(747,"Operator");case 12:return O(748,"Unit");case 13:return O(749,"Value");case 14:return O(750,"Constant");case 15:return O(751,"Enum");case 16:return O(752,"Enum Member");case 17:return O(753,"Keyword");case 18:return O(754,"Text");case 19:return O(755,"Color");case 20:return O(756,"File");case 21:return O(757,"Reference");case 22:return O(758,"Custom Color");case 23:return O(759,"Folder");case 24:return O(760,"Type Parameter");case 25:return O(761,"User");case 26:return O(762,"Issue");case 27:return O(763,"Tool");case 28:return O(764,"Snippet");default:return""}}t.toLabel=i;const r=new Map;r.set("method",0),r.set("function",1),r.set("constructor",2),r.set("field",3),r.set("variable",4),r.set("class",5),r.set("struct",6),r.set("interface",7),r.set("module",8),r.set("property",9),r.set("event",10),r.set("operator",11),r.set("unit",12),r.set("value",13),r.set("constant",14),r.set("enum",15),r.set("enum-member",16),r.set("enumMember",16),r.set("keyword",17),r.set("snippet",28),r.set("text",18),r.set("color",19),r.set("file",20),r.set("reference",21),r.set("customcolor",22),r.set("folder",23),r.set("type-parameter",24),r.set("typeParameter",24),r.set("account",25),r.set("issue",26),r.set("tool",27);function s(a,l){let o=r.get(a);return typeof o>"u"&&!l&&(o=9),o}t.fromString=s})(ur||(ur={}));var cr;(function(t){t[t.Automatic=0]="Automatic",t[t.Explicit=1]="Explicit"})(cr||(cr={}));var hr;(function(t){t[t.Code=1]="Code",t[t.Label=2]="Label"})(hr||(hr={}));var dr;(function(t){t[t.Accepted=0]="Accepted",t[t.Rejected=1]="Rejected",t[t.Ignored=2]="Ignored"})(dr||(dr={}));var mr;(function(t){t[t.Automatic=0]="Automatic",t[t.PasteAs=1]="PasteAs"})(mr||(mr={}));var fr;(function(t){t[t.Invoke=1]="Invoke",t[t.TriggerCharacter=2]="TriggerCharacter",t[t.ContentChange=3]="ContentChange"})(fr||(fr={}));var pr;(function(t){t[t.Text=0]="Text",t[t.Read=1]="Read",t[t.Write=2]="Write"})(pr||(pr={})),O(765,"array"),O(766,"boolean"),O(767,"class"),O(768,"constant"),O(769,"constructor"),O(770,"enumeration"),O(771,"enumeration member"),O(772,"event"),O(773,"field"),O(774,"file"),O(775,"function"),O(776,"interface"),O(777,"key"),O(778,"method"),O(779,"module"),O(780,"namespace"),O(781,"null"),O(782,"number"),O(783,"object"),O(784,"operator"),O(785,"package"),O(786,"property"),O(787,"string"),O(788,"struct"),O(789,"type parameter"),O(790,"variable");var gr;(function(t){const e=new Map;e.set(0,q.symbolFile),e.set(1,q.symbolModule),e.set(2,q.symbolNamespace),e.set(3,q.symbolPackage),e.set(4,q.symbolClass),e.set(5,q.symbolMethod),e.set(6,q.symbolProperty),e.set(7,q.symbolField),e.set(8,q.symbolConstructor),e.set(9,q.symbolEnum),e.set(10,q.symbolInterface),e.set(11,q.symbolFunction),e.set(12,q.symbolVariable),e.set(13,q.symbolConstant),e.set(14,q.symbolString),e.set(15,q.symbolNumber),e.set(16,q.symbolBoolean),e.set(17,q.symbolArray),e.set(18,q.symbolObject),e.set(19,q.symbolKey),e.set(20,q.symbolNull),e.set(21,q.symbolEnumMember),e.set(22,q.symbolStruct),e.set(23,q.symbolEvent),e.set(24,q.symbolOperator),e.set(25,q.symbolTypeParameter);function n(s){let a=e.get(s);return a||(console.info("No codicon found for SymbolKind "+s),a=q.symbolProperty),a}t.toIcon=n;const i=new Map;i.set(0,20),i.set(1,8),i.set(2,8),i.set(3,8),i.set(4,5),i.set(5,0),i.set(6,9),i.set(7,3),i.set(8,2),i.set(9,15),i.set(10,7),i.set(11,1),i.set(12,4),i.set(13,14),i.set(14,18),i.set(15,13),i.set(16,13),i.set(17,13),i.set(18,13),i.set(19,17),i.set(20,13),i.set(21,16),i.set(22,6),i.set(23,10),i.set(24,11),i.set(25,24);function r(s){let a=i.get(s);return a===void 0&&(console.info("No completion kind found for SymbolKind "+s),a=20),a}t.toCompletionKind=r})(gr||(gr={}));let ch=(me=class{static fromValue(e){switch(e){case"comment":return me.Comment;case"imports":return me.Imports;case"region":return me.Region}return new me(e)}constructor(e){this.value=e}},me.Comment=new me("comment"),me.Imports=new me("imports"),me.Region=new me("region"),me);var br;(function(t){t[t.AIGenerated=1]="AIGenerated"})(br||(br={}));var wr;(function(t){t[t.Invoke=0]="Invoke",t[t.Automatic=1]="Automatic"})(wr||(wr={}));var _r;(function(t){function e(n){return!n||typeof n!="object"?!1:typeof n.id=="string"&&typeof n.title=="string"}t.is=e})(_r||(_r={}));var vr;(function(t){t[t.Type=1]="Type",t[t.Parameter=2]="Parameter"})(vr||(vr={})),new Dl;var yr;(function(t){t[t.Unknown=0]="Unknown",t[t.Disabled=1]="Disabled",t[t.Enabled=2]="Enabled"})(yr||(yr={}));var Tr;(function(t){t[t.Invoke=1]="Invoke",t[t.Auto=2]="Auto"})(Tr||(Tr={}));var xr;(function(t){t[t.None=0]="None",t[t.KeepWhitespace=1]="KeepWhitespace",t[t.InsertAsSnippet=4]="InsertAsSnippet"})(xr||(xr={}));var kr;(function(t){t[t.Method=0]="Method",t[t.Function=1]="Function",t[t.Constructor=2]="Constructor",t[t.Field=3]="Field",t[t.Variable=4]="Variable",t[t.Class=5]="Class",t[t.Struct=6]="Struct",t[t.Interface=7]="Interface",t[t.Module=8]="Module",t[t.Property=9]="Property",t[t.Event=10]="Event",t[t.Operator=11]="Operator",t[t.Unit=12]="Unit",t[t.Value=13]="Value",t[t.Constant=14]="Constant",t[t.Enum=15]="Enum",t[t.EnumMember=16]="EnumMember",t[t.Keyword=17]="Keyword",t[t.Text=18]="Text",t[t.Color=19]="Color",t[t.File=20]="File",t[t.Reference=21]="Reference",t[t.Customcolor=22]="Customcolor",t[t.Folder=23]="Folder",t[t.TypeParameter=24]="TypeParameter",t[t.User=25]="User",t[t.Issue=26]="Issue",t[t.Tool=27]="Tool",t[t.Snippet=28]="Snippet"})(kr||(kr={}));var Sr;(function(t){t[t.Deprecated=1]="Deprecated"})(Sr||(Sr={}));var Ar;(function(t){t[t.Invoke=0]="Invoke",t[t.TriggerCharacter=1]="TriggerCharacter",t[t.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(Ar||(Ar={}));var Lr;(function(t){t[t.EXACT=0]="EXACT",t[t.ABOVE=1]="ABOVE",t[t.BELOW=2]="BELOW"})(Lr||(Lr={}));var Cr;(function(t){t[t.NotSet=0]="NotSet",t[t.ContentFlush=1]="ContentFlush",t[t.RecoverFromMarkers=2]="RecoverFromMarkers",t[t.Explicit=3]="Explicit",t[t.Paste=4]="Paste",t[t.Undo=5]="Undo",t[t.Redo=6]="Redo"})(Cr||(Cr={}));var Er;(function(t){t[t.LF=1]="LF",t[t.CRLF=2]="CRLF"})(Er||(Er={}));var Rr;(function(t){t[t.Text=0]="Text",t[t.Read=1]="Read",t[t.Write=2]="Write"})(Rr||(Rr={}));var Dr;(function(t){t[t.None=0]="None",t[t.Keep=1]="Keep",t[t.Brackets=2]="Brackets",t[t.Advanced=3]="Advanced",t[t.Full=4]="Full"})(Dr||(Dr={}));var Mr;(function(t){t[t.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",t[t.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",t[t.accessibilitySupport=2]="accessibilitySupport",t[t.accessibilityPageSize=3]="accessibilityPageSize",t[t.allowOverflow=4]="allowOverflow",t[t.allowVariableLineHeights=5]="allowVariableLineHeights",t[t.allowVariableFonts=6]="allowVariableFonts",t[t.allowVariableFontsInAccessibilityMode=7]="allowVariableFontsInAccessibilityMode",t[t.ariaLabel=8]="ariaLabel",t[t.ariaRequired=9]="ariaRequired",t[t.autoClosingBrackets=10]="autoClosingBrackets",t[t.autoClosingComments=11]="autoClosingComments",t[t.screenReaderAnnounceInlineSuggestion=12]="screenReaderAnnounceInlineSuggestion",t[t.autoClosingDelete=13]="autoClosingDelete",t[t.autoClosingOvertype=14]="autoClosingOvertype",t[t.autoClosingQuotes=15]="autoClosingQuotes",t[t.autoIndent=16]="autoIndent",t[t.autoIndentOnPaste=17]="autoIndentOnPaste",t[t.autoIndentOnPasteWithinString=18]="autoIndentOnPasteWithinString",t[t.automaticLayout=19]="automaticLayout",t[t.autoSurround=20]="autoSurround",t[t.bracketPairColorization=21]="bracketPairColorization",t[t.guides=22]="guides",t[t.codeLens=23]="codeLens",t[t.codeLensFontFamily=24]="codeLensFontFamily",t[t.codeLensFontSize=25]="codeLensFontSize",t[t.colorDecorators=26]="colorDecorators",t[t.colorDecoratorsLimit=27]="colorDecoratorsLimit",t[t.columnSelection=28]="columnSelection",t[t.comments=29]="comments",t[t.contextmenu=30]="contextmenu",t[t.copyWithSyntaxHighlighting=31]="copyWithSyntaxHighlighting",t[t.cursorBlinking=32]="cursorBlinking",t[t.cursorSmoothCaretAnimation=33]="cursorSmoothCaretAnimation",t[t.cursorStyle=34]="cursorStyle",t[t.cursorSurroundingLines=35]="cursorSurroundingLines",t[t.cursorSurroundingLinesStyle=36]="cursorSurroundingLinesStyle",t[t.cursorWidth=37]="cursorWidth",t[t.cursorHeight=38]="cursorHeight",t[t.disableLayerHinting=39]="disableLayerHinting",t[t.disableMonospaceOptimizations=40]="disableMonospaceOptimizations",t[t.domReadOnly=41]="domReadOnly",t[t.dragAndDrop=42]="dragAndDrop",t[t.dropIntoEditor=43]="dropIntoEditor",t[t.editContext=44]="editContext",t[t.emptySelectionClipboard=45]="emptySelectionClipboard",t[t.experimentalGpuAcceleration=46]="experimentalGpuAcceleration",t[t.experimentalWhitespaceRendering=47]="experimentalWhitespaceRendering",t[t.extraEditorClassName=48]="extraEditorClassName",t[t.fastScrollSensitivity=49]="fastScrollSensitivity",t[t.find=50]="find",t[t.fixedOverflowWidgets=51]="fixedOverflowWidgets",t[t.folding=52]="folding",t[t.foldingStrategy=53]="foldingStrategy",t[t.foldingHighlight=54]="foldingHighlight",t[t.foldingImportsByDefault=55]="foldingImportsByDefault",t[t.foldingMaximumRegions=56]="foldingMaximumRegions",t[t.unfoldOnClickAfterEndOfLine=57]="unfoldOnClickAfterEndOfLine",t[t.fontFamily=58]="fontFamily",t[t.fontInfo=59]="fontInfo",t[t.fontLigatures=60]="fontLigatures",t[t.fontSize=61]="fontSize",t[t.fontWeight=62]="fontWeight",t[t.fontVariations=63]="fontVariations",t[t.formatOnPaste=64]="formatOnPaste",t[t.formatOnType=65]="formatOnType",t[t.glyphMargin=66]="glyphMargin",t[t.gotoLocation=67]="gotoLocation",t[t.hideCursorInOverviewRuler=68]="hideCursorInOverviewRuler",t[t.hover=69]="hover",t[t.inDiffEditor=70]="inDiffEditor",t[t.inlineSuggest=71]="inlineSuggest",t[t.letterSpacing=72]="letterSpacing",t[t.lightbulb=73]="lightbulb",t[t.lineDecorationsWidth=74]="lineDecorationsWidth",t[t.lineHeight=75]="lineHeight",t[t.lineNumbers=76]="lineNumbers",t[t.lineNumbersMinChars=77]="lineNumbersMinChars",t[t.linkedEditing=78]="linkedEditing",t[t.links=79]="links",t[t.matchBrackets=80]="matchBrackets",t[t.minimap=81]="minimap",t[t.mouseStyle=82]="mouseStyle",t[t.mouseWheelScrollSensitivity=83]="mouseWheelScrollSensitivity",t[t.mouseWheelZoom=84]="mouseWheelZoom",t[t.multiCursorMergeOverlapping=85]="multiCursorMergeOverlapping",t[t.multiCursorModifier=86]="multiCursorModifier",t[t.mouseMiddleClickAction=87]="mouseMiddleClickAction",t[t.multiCursorPaste=88]="multiCursorPaste",t[t.multiCursorLimit=89]="multiCursorLimit",t[t.occurrencesHighlight=90]="occurrencesHighlight",t[t.occurrencesHighlightDelay=91]="occurrencesHighlightDelay",t[t.overtypeCursorStyle=92]="overtypeCursorStyle",t[t.overtypeOnPaste=93]="overtypeOnPaste",t[t.overviewRulerBorder=94]="overviewRulerBorder",t[t.overviewRulerLanes=95]="overviewRulerLanes",t[t.padding=96]="padding",t[t.pasteAs=97]="pasteAs",t[t.parameterHints=98]="parameterHints",t[t.peekWidgetDefaultFocus=99]="peekWidgetDefaultFocus",t[t.placeholder=100]="placeholder",t[t.definitionLinkOpensInPeek=101]="definitionLinkOpensInPeek",t[t.quickSuggestions=102]="quickSuggestions",t[t.quickSuggestionsDelay=103]="quickSuggestionsDelay",t[t.readOnly=104]="readOnly",t[t.readOnlyMessage=105]="readOnlyMessage",t[t.renameOnType=106]="renameOnType",t[t.renderRichScreenReaderContent=107]="renderRichScreenReaderContent",t[t.renderControlCharacters=108]="renderControlCharacters",t[t.renderFinalNewline=109]="renderFinalNewline",t[t.renderLineHighlight=110]="renderLineHighlight",t[t.renderLineHighlightOnlyWhenFocus=111]="renderLineHighlightOnlyWhenFocus",t[t.renderValidationDecorations=112]="renderValidationDecorations",t[t.renderWhitespace=113]="renderWhitespace",t[t.revealHorizontalRightPadding=114]="revealHorizontalRightPadding",t[t.roundedSelection=115]="roundedSelection",t[t.rulers=116]="rulers",t[t.scrollbar=117]="scrollbar",t[t.scrollBeyondLastColumn=118]="scrollBeyondLastColumn",t[t.scrollBeyondLastLine=119]="scrollBeyondLastLine",t[t.scrollPredominantAxis=120]="scrollPredominantAxis",t[t.selectionClipboard=121]="selectionClipboard",t[t.selectionHighlight=122]="selectionHighlight",t[t.selectionHighlightMaxLength=123]="selectionHighlightMaxLength",t[t.selectionHighlightMultiline=124]="selectionHighlightMultiline",t[t.selectOnLineNumbers=125]="selectOnLineNumbers",t[t.showFoldingControls=126]="showFoldingControls",t[t.showUnused=127]="showUnused",t[t.snippetSuggestions=128]="snippetSuggestions",t[t.smartSelect=129]="smartSelect",t[t.smoothScrolling=130]="smoothScrolling",t[t.stickyScroll=131]="stickyScroll",t[t.stickyTabStops=132]="stickyTabStops",t[t.stopRenderingLineAfter=133]="stopRenderingLineAfter",t[t.suggest=134]="suggest",t[t.suggestFontSize=135]="suggestFontSize",t[t.suggestLineHeight=136]="suggestLineHeight",t[t.suggestOnTriggerCharacters=137]="suggestOnTriggerCharacters",t[t.suggestSelection=138]="suggestSelection",t[t.tabCompletion=139]="tabCompletion",t[t.tabIndex=140]="tabIndex",t[t.trimWhitespaceOnDelete=141]="trimWhitespaceOnDelete",t[t.unicodeHighlighting=142]="unicodeHighlighting",t[t.unusualLineTerminators=143]="unusualLineTerminators",t[t.useShadowDOM=144]="useShadowDOM",t[t.useTabStops=145]="useTabStops",t[t.wordBreak=146]="wordBreak",t[t.wordSegmenterLocales=147]="wordSegmenterLocales",t[t.wordSeparators=148]="wordSeparators",t[t.wordWrap=149]="wordWrap",t[t.wordWrapBreakAfterCharacters=150]="wordWrapBreakAfterCharacters",t[t.wordWrapBreakBeforeCharacters=151]="wordWrapBreakBeforeCharacters",t[t.wordWrapColumn=152]="wordWrapColumn",t[t.wordWrapOverride1=153]="wordWrapOverride1",t[t.wordWrapOverride2=154]="wordWrapOverride2",t[t.wrappingIndent=155]="wrappingIndent",t[t.wrappingStrategy=156]="wrappingStrategy",t[t.showDeprecated=157]="showDeprecated",t[t.inertialScroll=158]="inertialScroll",t[t.inlayHints=159]="inlayHints",t[t.wrapOnEscapedLineFeeds=160]="wrapOnEscapedLineFeeds",t[t.effectiveCursorStyle=161]="effectiveCursorStyle",t[t.editorClassName=162]="editorClassName",t[t.pixelRatio=163]="pixelRatio",t[t.tabFocusMode=164]="tabFocusMode",t[t.layoutInfo=165]="layoutInfo",t[t.wrappingInfo=166]="wrappingInfo",t[t.defaultColorDecorators=167]="defaultColorDecorators",t[t.colorDecoratorsActivatedOn=168]="colorDecoratorsActivatedOn",t[t.inlineCompletionsAccessibilityVerbose=169]="inlineCompletionsAccessibilityVerbose",t[t.effectiveEditContext=170]="effectiveEditContext",t[t.scrollOnMiddleClick=171]="scrollOnMiddleClick",t[t.effectiveAllowVariableFonts=172]="effectiveAllowVariableFonts"})(Mr||(Mr={}));var Nr;(function(t){t[t.TextDefined=0]="TextDefined",t[t.LF=1]="LF",t[t.CRLF=2]="CRLF"})(Nr||(Nr={}));var Ir;(function(t){t[t.LF=0]="LF",t[t.CRLF=1]="CRLF"})(Ir||(Ir={}));var zr;(function(t){t[t.Left=1]="Left",t[t.Center=2]="Center",t[t.Right=3]="Right"})(zr||(zr={}));var Hr;(function(t){t[t.Increase=0]="Increase",t[t.Decrease=1]="Decrease"})(Hr||(Hr={}));var Ur;(function(t){t[t.None=0]="None",t[t.Indent=1]="Indent",t[t.IndentOutdent=2]="IndentOutdent",t[t.Outdent=3]="Outdent"})(Ur||(Ur={}));var Pr;(function(t){t[t.Both=0]="Both",t[t.Right=1]="Right",t[t.Left=2]="Left",t[t.None=3]="None"})(Pr||(Pr={}));var Wr;(function(t){t[t.Type=1]="Type",t[t.Parameter=2]="Parameter"})(Wr||(Wr={}));var Fr;(function(t){t[t.Accepted=0]="Accepted",t[t.Rejected=1]="Rejected",t[t.Ignored=2]="Ignored"})(Fr||(Fr={}));var Br;(function(t){t[t.Code=1]="Code",t[t.Label=2]="Label"})(Br||(Br={}));var qr;(function(t){t[t.Automatic=0]="Automatic",t[t.Explicit=1]="Explicit"})(qr||(qr={}));var Zn;(function(t){t[t.DependsOnKbLayout=-1]="DependsOnKbLayout",t[t.Unknown=0]="Unknown",t[t.Backspace=1]="Backspace",t[t.Tab=2]="Tab",t[t.Enter=3]="Enter",t[t.Shift=4]="Shift",t[t.Ctrl=5]="Ctrl",t[t.Alt=6]="Alt",t[t.PauseBreak=7]="PauseBreak",t[t.CapsLock=8]="CapsLock",t[t.Escape=9]="Escape",t[t.Space=10]="Space",t[t.PageUp=11]="PageUp",t[t.PageDown=12]="PageDown",t[t.End=13]="End",t[t.Home=14]="Home",t[t.LeftArrow=15]="LeftArrow",t[t.UpArrow=16]="UpArrow",t[t.RightArrow=17]="RightArrow",t[t.DownArrow=18]="DownArrow",t[t.Insert=19]="Insert",t[t.Delete=20]="Delete",t[t.Digit0=21]="Digit0",t[t.Digit1=22]="Digit1",t[t.Digit2=23]="Digit2",t[t.Digit3=24]="Digit3",t[t.Digit4=25]="Digit4",t[t.Digit5=26]="Digit5",t[t.Digit6=27]="Digit6",t[t.Digit7=28]="Digit7",t[t.Digit8=29]="Digit8",t[t.Digit9=30]="Digit9",t[t.KeyA=31]="KeyA",t[t.KeyB=32]="KeyB",t[t.KeyC=33]="KeyC",t[t.KeyD=34]="KeyD",t[t.KeyE=35]="KeyE",t[t.KeyF=36]="KeyF",t[t.KeyG=37]="KeyG",t[t.KeyH=38]="KeyH",t[t.KeyI=39]="KeyI",t[t.KeyJ=40]="KeyJ",t[t.KeyK=41]="KeyK",t[t.KeyL=42]="KeyL",t[t.KeyM=43]="KeyM",t[t.KeyN=44]="KeyN",t[t.KeyO=45]="KeyO",t[t.KeyP=46]="KeyP",t[t.KeyQ=47]="KeyQ",t[t.KeyR=48]="KeyR",t[t.KeyS=49]="KeyS",t[t.KeyT=50]="KeyT",t[t.KeyU=51]="KeyU",t[t.KeyV=52]="KeyV",t[t.KeyW=53]="KeyW",t[t.KeyX=54]="KeyX",t[t.KeyY=55]="KeyY",t[t.KeyZ=56]="KeyZ",t[t.Meta=57]="Meta",t[t.ContextMenu=58]="ContextMenu",t[t.F1=59]="F1",t[t.F2=60]="F2",t[t.F3=61]="F3",t[t.F4=62]="F4",t[t.F5=63]="F5",t[t.F6=64]="F6",t[t.F7=65]="F7",t[t.F8=66]="F8",t[t.F9=67]="F9",t[t.F10=68]="F10",t[t.F11=69]="F11",t[t.F12=70]="F12",t[t.F13=71]="F13",t[t.F14=72]="F14",t[t.F15=73]="F15",t[t.F16=74]="F16",t[t.F17=75]="F17",t[t.F18=76]="F18",t[t.F19=77]="F19",t[t.F20=78]="F20",t[t.F21=79]="F21",t[t.F22=80]="F22",t[t.F23=81]="F23",t[t.F24=82]="F24",t[t.NumLock=83]="NumLock",t[t.ScrollLock=84]="ScrollLock",t[t.Semicolon=85]="Semicolon",t[t.Equal=86]="Equal",t[t.Comma=87]="Comma",t[t.Minus=88]="Minus",t[t.Period=89]="Period",t[t.Slash=90]="Slash",t[t.Backquote=91]="Backquote",t[t.BracketLeft=92]="BracketLeft",t[t.Backslash=93]="Backslash",t[t.BracketRight=94]="BracketRight",t[t.Quote=95]="Quote",t[t.OEM_8=96]="OEM_8",t[t.IntlBackslash=97]="IntlBackslash",t[t.Numpad0=98]="Numpad0",t[t.Numpad1=99]="Numpad1",t[t.Numpad2=100]="Numpad2",t[t.Numpad3=101]="Numpad3",t[t.Numpad4=102]="Numpad4",t[t.Numpad5=103]="Numpad5",t[t.Numpad6=104]="Numpad6",t[t.Numpad7=105]="Numpad7",t[t.Numpad8=106]="Numpad8",t[t.Numpad9=107]="Numpad9",t[t.NumpadMultiply=108]="NumpadMultiply",t[t.NumpadAdd=109]="NumpadAdd",t[t.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",t[t.NumpadSubtract=111]="NumpadSubtract",t[t.NumpadDecimal=112]="NumpadDecimal",t[t.NumpadDivide=113]="NumpadDivide",t[t.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",t[t.ABNT_C1=115]="ABNT_C1",t[t.ABNT_C2=116]="ABNT_C2",t[t.AudioVolumeMute=117]="AudioVolumeMute",t[t.AudioVolumeUp=118]="AudioVolumeUp",t[t.AudioVolumeDown=119]="AudioVolumeDown",t[t.BrowserSearch=120]="BrowserSearch",t[t.BrowserHome=121]="BrowserHome",t[t.BrowserBack=122]="BrowserBack",t[t.BrowserForward=123]="BrowserForward",t[t.MediaTrackNext=124]="MediaTrackNext",t[t.MediaTrackPrevious=125]="MediaTrackPrevious",t[t.MediaStop=126]="MediaStop",t[t.MediaPlayPause=127]="MediaPlayPause",t[t.LaunchMediaPlayer=128]="LaunchMediaPlayer",t[t.LaunchMail=129]="LaunchMail",t[t.LaunchApp2=130]="LaunchApp2",t[t.Clear=131]="Clear",t[t.MAX_VALUE=132]="MAX_VALUE"})(Zn||(Zn={}));var Kn;(function(t){t[t.Hint=1]="Hint",t[t.Info=2]="Info",t[t.Warning=4]="Warning",t[t.Error=8]="Error"})(Kn||(Kn={}));var ei;(function(t){t[t.Unnecessary=1]="Unnecessary",t[t.Deprecated=2]="Deprecated"})(ei||(ei={}));var Or;(function(t){t[t.Inline=1]="Inline",t[t.Gutter=2]="Gutter"})(Or||(Or={}));var Vr;(function(t){t[t.Normal=1]="Normal",t[t.Underlined=2]="Underlined"})(Vr||(Vr={}));var jr;(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.TEXTAREA=1]="TEXTAREA",t[t.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",t[t.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",t[t.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",t[t.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",t[t.CONTENT_TEXT=6]="CONTENT_TEXT",t[t.CONTENT_EMPTY=7]="CONTENT_EMPTY",t[t.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",t[t.CONTENT_WIDGET=9]="CONTENT_WIDGET",t[t.OVERVIEW_RULER=10]="OVERVIEW_RULER",t[t.SCROLLBAR=11]="SCROLLBAR",t[t.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",t[t.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(jr||(jr={}));var $r;(function(t){t[t.AIGenerated=1]="AIGenerated"})($r||($r={}));var Gr;(function(t){t[t.Invoke=0]="Invoke",t[t.Automatic=1]="Automatic"})(Gr||(Gr={}));var Xr;(function(t){t[t.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",t[t.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",t[t.TOP_CENTER=2]="TOP_CENTER"})(Xr||(Xr={}));var Jr;(function(t){t[t.Left=1]="Left",t[t.Center=2]="Center",t[t.Right=4]="Right",t[t.Full=7]="Full"})(Jr||(Jr={}));var Qr;(function(t){t[t.Word=0]="Word",t[t.Line=1]="Line",t[t.Suggest=2]="Suggest"})(Qr||(Qr={}));var Yr;(function(t){t[t.Left=0]="Left",t[t.Right=1]="Right",t[t.None=2]="None",t[t.LeftOfInjectedText=3]="LeftOfInjectedText",t[t.RightOfInjectedText=4]="RightOfInjectedText"})(Yr||(Yr={}));var Zr;(function(t){t[t.Off=0]="Off",t[t.On=1]="On",t[t.Relative=2]="Relative",t[t.Interval=3]="Interval",t[t.Custom=4]="Custom"})(Zr||(Zr={}));var Kr;(function(t){t[t.None=0]="None",t[t.Text=1]="Text",t[t.Blocks=2]="Blocks"})(Kr||(Kr={}));var es;(function(t){t[t.Smooth=0]="Smooth",t[t.Immediate=1]="Immediate"})(es||(es={}));var ts;(function(t){t[t.Auto=1]="Auto",t[t.Hidden=2]="Hidden",t[t.Visible=3]="Visible"})(ts||(ts={}));var ti;(function(t){t[t.LTR=0]="LTR",t[t.RTL=1]="RTL"})(ti||(ti={}));var ns;(function(t){t.Off="off",t.OnCode="onCode",t.On="on"})(ns||(ns={}));var is;(function(t){t[t.Invoke=1]="Invoke",t[t.TriggerCharacter=2]="TriggerCharacter",t[t.ContentChange=3]="ContentChange"})(is||(is={}));var rs;(function(t){t[t.File=0]="File",t[t.Module=1]="Module",t[t.Namespace=2]="Namespace",t[t.Package=3]="Package",t[t.Class=4]="Class",t[t.Method=5]="Method",t[t.Property=6]="Property",t[t.Field=7]="Field",t[t.Constructor=8]="Constructor",t[t.Enum=9]="Enum",t[t.Interface=10]="Interface",t[t.Function=11]="Function",t[t.Variable=12]="Variable",t[t.Constant=13]="Constant",t[t.String=14]="String",t[t.Number=15]="Number",t[t.Boolean=16]="Boolean",t[t.Array=17]="Array",t[t.Object=18]="Object",t[t.Key=19]="Key",t[t.Null=20]="Null",t[t.EnumMember=21]="EnumMember",t[t.Struct=22]="Struct",t[t.Event=23]="Event",t[t.Operator=24]="Operator",t[t.TypeParameter=25]="TypeParameter"})(rs||(rs={}));var ss;(function(t){t[t.Deprecated=1]="Deprecated"})(ss||(ss={}));var as;(function(t){t[t.LTR=0]="LTR",t[t.RTL=1]="RTL"})(as||(as={}));var os;(function(t){t[t.Hidden=0]="Hidden",t[t.Blink=1]="Blink",t[t.Smooth=2]="Smooth",t[t.Phase=3]="Phase",t[t.Expand=4]="Expand",t[t.Solid=5]="Solid"})(os||(os={}));var ls;(function(t){t[t.Line=1]="Line",t[t.Block=2]="Block",t[t.Underline=3]="Underline",t[t.LineThin=4]="LineThin",t[t.BlockOutline=5]="BlockOutline",t[t.UnderlineThin=6]="UnderlineThin"})(ls||(ls={}));var us;(function(t){t[t.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",t[t.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",t[t.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",t[t.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(us||(us={}));var cs;(function(t){t[t.None=0]="None",t[t.Same=1]="Same",t[t.Indent=2]="Indent",t[t.DeepIndent=3]="DeepIndent"})(cs||(cs={}));const yt=class yt{static chord(e,n){return cl(e,n)}};yt.CtrlCmd=2048,yt.Shift=1024,yt.Alt=512,yt.WinCtrl=256;let ni=yt;function Il(){return{editor:void 0,languages:void 0,CancellationTokenSource:al,Emitter:Se,KeyCode:Zn,KeyMod:ni,Position:K,Range:j,Selection:we,SelectionDirection:ti,MarkerSeverity:Kn,MarkerTag:ei,Uri:Jn,Token:Nl}}var hs;class zl{constructor(){this[hs]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(e){return this._map.has(e)}get(e,n=0){const i=this._map.get(e);if(i)return n!==0&&this.touch(i,n),i.value}set(e,n,i=0){let r=this._map.get(e);if(r)r.value=n,i!==0&&this.touch(r,i);else{switch(r={key:e,value:n,next:void 0,previous:void 0},i){case 0:this.addItemLast(r);break;case 1:this.addItemFirst(r);break;case 2: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){const n=this._map.get(e);if(n)return this._map.delete(e),this.removeItem(n),this._size--,n.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,n){const i=this._state;let 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(){const e=this,n=this._state;let i=this._head;const r={[Symbol.iterator](){return r},next(){if(e._state!==n)throw new Error("LinkedMap got modified during iteration.");if(i){const s={value:i.key,done:!1};return i=i.next,s}else return{value:void 0,done:!0}}};return r}values(){const e=this,n=this._state;let i=this._head;const r={[Symbol.iterator](){return r},next(){if(e._state!==n)throw new Error("LinkedMap got modified during iteration.");if(i){const s={value:i.value,done:!1};return i=i.next,s}else return{value:void 0,done:!0}}};return r}entries(){const e=this,n=this._state;let i=this._head;const r={[Symbol.iterator](){return r},next(){if(e._state!==n)throw new Error("LinkedMap got modified during iteration.");if(i){const s={value:[i.key,i.value],done:!1};return i=i.next,s}else return{value:void 0,done:!0}}};return r}[(hs=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let n=this._head,i=this.size;for(;n&&i>e;)this._map.delete(n.key),n=n.next,i--;this._head=n,this._size=i,n&&(n.previous=void 0),this._state++}trimNew(e){if(e>=this.size)return;if(e===0){this.clear();return}let n=this._tail,i=this.size;for(;n&&i>e;)this._map.delete(n.key),n=n.previous,i--;this._tail=n,this._size=i,n&&(n.next=void 0),this._state++}addItemFirst(e){if(!this._head&&!this._tail)this._tail=e;else if(this._head)e.next=this._head,this._head.previous=e;else throw new Error("Invalid list");this._head=e,this._state++}addItemLast(e){if(!this._head&&!this._tail)this._head=e;else if(this._tail)e.previous=this._tail,this._tail.next=e;else throw new Error("Invalid list");this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const n=e.next,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!==1&&n!==2)){if(n===1){if(e===this._head)return;const 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===2){if(e===this._tail)return;const 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(){const e=[];return this.forEach((n,i)=>{e.push([i,n])}),e}fromJSON(e){this.clear();for(const[n,i]of e)this.set(n,i)}}class Hl extends zl{constructor(e,n=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,n),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get(e,n=2){return super.get(e,n)}peek(e){return super.get(e,0)}set(e,n){return super.set(e,n,2),this}checkTrim(){this.size>this._limit&&this.trim(Math.round(this._limit*this._ratio))}}class Ul extends Hl{constructor(e,n=1){super(e,n)}trim(e){this.trimOld(e)}set(e,n){return super.set(e,n),this.checkTrim(),this}}class Pl{constructor(){this.map=new Map}add(e,n){let i=this.map.get(e);i||(i=new Set,this.map.set(e,i)),i.add(n)}delete(e,n){const i=this.map.get(e);i&&(i.delete(n),i.size===0&&this.map.delete(e))}forEach(e,n){const i=this.map.get(e);i&&i.forEach(n)}}new Ul(10);var ds;(function(t){t[t.Left=1]="Left",t[t.Center=2]="Center",t[t.Right=4]="Right",t[t.Full=7]="Full"})(ds||(ds={}));var ms;(function(t){t[t.Left=1]="Left",t[t.Center=2]="Center",t[t.Right=3]="Right"})(ms||(ms={}));var fs;(function(t){t[t.LTR=0]="LTR",t[t.RTL=1]="RTL"})(fs||(fs={}));var ps;(function(t){t[t.Both=0]="Both",t[t.Right=1]="Right",t[t.Left=2]="Left",t[t.None=3]="None"})(ps||(ps={}));function Wl(t){if(!t||t.length===0)return!1;for(let e=0,n=t.length;e<n;e++){const i=t.charCodeAt(e);if(i===10)return!0;if(i===92){if(e++,e>=n)break;const r=t.charCodeAt(e);if(r===110||r===114||r===87)return!0}}return!1}function Fl(t,e,n,i,r){if(i===0)return!0;const s=e.charCodeAt(i-1);if(t.get(s)!==0||s===13||s===10)return!0;if(r>0){const a=e.charCodeAt(i);if(t.get(a)!==0)return!0}return!1}function Bl(t,e,n,i,r){if(i+r===n)return!0;const s=e.charCodeAt(i+r);if(t.get(s)!==0||s===13||s===10)return!0;if(r>0){const a=e.charCodeAt(i+r-1);if(t.get(a)!==0)return!0}return!1}function ql(t,e,n,i,r){return Fl(t,e,n,i,r)&&Bl(t,e,n,i,r)}class Ol{constructor(e,n){this._wordSeparators=e,this._searchRegex=n,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(e){const n=e.length;let i;do{if(this._prevMatchStartIndex+this._prevMatchLength===n||(i=this._searchRegex.exec(e),!i))return null;const r=i.index,s=i[0].length;if(r===this._prevMatchStartIndex&&s===this._prevMatchLength){if(s===0){qo(e,n,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=r,this._prevMatchLength=s,!this._wordSeparators||ql(this._wordSeparators,e,n,r,s))return i}while(i);return null}}const Vl="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function jl(t=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const n of Vl)t.indexOf(n)>=0||(e+="\\"+n);return e+="\\s]+)",new RegExp(e,"g")}const gs=jl();function bs(t){let e=gs;if(t&&t instanceof RegExp)if(t.global)e=t;else{let n="g";t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.unicode&&(n+="u"),e=new RegExp(t.source,n)}return e.lastIndex=0,e}const ws=new go;ws.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function ii(t,e,n,i,r){if(e=bs(e),r||(r=jt.first(ws)),n.length>r.maxLen){let u=t-r.maxLen/2;return u<0?u=0:i+=u,n=n.substring(u,t+r.maxLen/2),ii(t,e,n,i,r)}const s=Date.now(),a=t-1-i;let l=-1,o=null;for(let u=1;!(Date.now()-s>=r.timeBudget);u++){const h=a-r.windowSize*u;e.lastIndex=Math.max(0,h);const d=$l(e,n,a,l);if(!d&&o||(o=d,h<=0))break;l=h}if(o){const u={word:o[0],startColumn:i+1+o.index,endColumn:i+1+o.index+o[0].length};return e.lastIndex=0,u}return null}function $l(t,e,n,i){let r;for(;r=t.exec(e);){const s=r.index||0;if(s<=n&&t.lastIndex>=n)return r;if(i>0&&s>i)return null}return null}class Gl{static computeUnicodeHighlights(e,n,i){const r=i?i.startLineNumber:1,s=i?i.endLineNumber:e.getLineCount(),a=new _s(n),l=a.getCandidateCodePoints();let o;l==="allNonBasicAscii"?o=new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):o=new RegExp(`${Xl(Array.from(l))}`,"g");const u=new Ol(null,o),h=[];let d=!1,m,f=0,w=0,p=0;e:for(let T=r,y=s;T<=y;T++){const v=e.getLineContent(T),S=v.length;u.reset(0);do if(m=u.next(v),m){let I=m.index,H=m.index+m[0].length;if(I>0){const _=v.charCodeAt(I-1);Wn(_)&&I--}if(H+1<S){const _=v.charCodeAt(H-1);Wn(_)&&H++}const W=v.substring(I,H);let b=ii(I+1,gs,v,0);b&&b.endColumn<=I+1&&(b=null);const g=a.shouldHighlightNonBasicASCII(W,b?b.word:null);if(g!==0){if(g===3?f++:g===2?w++:g===1?p++:uo(),h.length>=1e3){d=!0;break e}h.push(new j(T,I+1,T,H+1))}}while(m)}return{ranges:h,hasMore:d,ambiguousCharacterCount:f,invisibleCharacterCount:w,nonBasicAsciiCharacterCount:p}}static computeUnicodeHighlightReason(e,n){const i=new _s(n);switch(i.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{const s=e.codePointAt(0),a=i.ambiguousCharacters.getPrimaryConfusable(s),l=At.getLocales().filter(o=>!At.getInstance(new Set([...n.allowedLocales,o])).isAmbiguous(s));return{kind:0,confusableWith:String.fromCodePoint(a),notAmbiguousInLocales:l}}case 1:return{kind:2}}}}function Xl(t,e){return`[${No(t.map(i=>String.fromCodePoint(i)).join(""))}]`}class _s{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=At.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const e=new Set;if(this.options.invisibleCharacters)for(const n of Lt.codePoints)vs(String.fromCodePoint(n))||e.add(n);if(this.options.ambiguousCharacters)for(const n of this.ambiguousCharacters.getConfusableCodePoints())e.add(n);for(const n of this.allowedCodePoints)e.delete(n);return e}shouldHighlightNonBasicASCII(e,n){const i=e.codePointAt(0);if(this.allowedCodePoints.has(i))return 0;if(this.options.nonBasicASCII)return 1;let r=!1,s=!1;if(n)for(const a of n){const l=a.codePointAt(0),o=Vo(a);r=r||o,!o&&!this.ambiguousCharacters.isAmbiguous(l)&&!Lt.isInvisibleCharacter(l)&&(s=!0)}return!r&&s?0:this.options.invisibleCharacters&&!vs(e)&&Lt.isInvisibleCharacter(i)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(i)?3:0}}function vs(t){return t===" "||t===`
8
8
  `||t===" "}class nn{constructor(e,n,i){this.changes=e,this.moves=n,this.hitTimeout=i}}class Jl{constructor(e,n){this.lineRangeMapping=e,this.changes=n}}function Ql(t,e,n=(i,r)=>i===r){if(t===e)return!0;if(!t||!e||t.length!==e.length)return!1;for(let i=0,r=t.length;i<r;i++)if(!n(t[i],e[i]))return!1;return!0}function*Yl(t,e){let n,i;for(const r of t)i!==void 0&&e(i,r)?n.push(r):(n&&(yield n),n=[r]),i=r;n&&(yield n)}function Zl(t,e){for(let n=0;n<=t.length;n++)e(n===0?void 0:t[n-1],n===t.length?void 0:t[n])}function Kl(t,e){for(let n=0;n<t.length;n++)e(n===0?void 0:t[n-1],t[n],n+1===t.length?void 0:t[n+1])}function eu(t,e){for(const n of e)t.push(n)}var ri;(function(t){function e(s){return s<0}t.isLessThan=e;function n(s){return s<=0}t.isLessThanOrEqual=n;function i(s){return s>0}t.isGreaterThan=i;function r(s){return s===0}t.isNeitherLessOrGreaterThan=r,t.greaterThan=1,t.lessThan=-1,t.neitherLessOrGreaterThan=0})(ri||(ri={}));function Et(t,e){return(n,i)=>e(t(n),t(i))}const Rt=(t,e)=>t-e;function tu(t){return(e,n)=>-t(e,n)}const Tt=class Tt{constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate(n=>(e.push(n),!0)),e}filter(e){return new Tt(n=>this.iterate(i=>e(i)?n(i):!0))}map(e){return new Tt(n=>this.iterate(i=>n(e(i))))}findLast(e){let n;return this.iterate(i=>(e(i)&&(n=i),!0)),n}findLastMaxBy(e){let n,i=!0;return this.iterate(r=>((i||ri.isGreaterThan(e(r,n)))&&(i=!1,n=r),!0)),n}};Tt.empty=new Tt(e=>{});let ys=Tt;class G{static fromTo(e,n){return new G(e,n)}static addRange(e,n){let i=0;for(;i<n.length&&n[i].endExclusive<e.start;)i++;let r=i;for(;r<n.length&&n[r].start<=e.endExclusive;)r++;if(i===r)n.splice(i,0,e);else{const s=Math.min(e.start,n[i].start),a=Math.max(e.endExclusive,n[r-1].endExclusive);n.splice(i,r-i,new G(s,a))}}static tryCreate(e,n){if(!(e>n))return new G(e,n)}static ofLength(e){return new G(0,e)}static ofStartAndLength(e,n){return new G(e,e+n)}static emptyAt(e){return new G(e,e)}constructor(e,n){if(this.start=e,this.endExclusive=n,e>n)throw new ue(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(e){return new G(this.start+e,this.endExclusive+e)}deltaStart(e){return new G(this.start+e,this.endExclusive)}deltaEnd(e){return new G(this.start,this.endExclusive+e)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}equals(e){return this.start===e.start&&this.endExclusive===e.endExclusive}containsRange(e){return this.start<=e.start&&e.endExclusive<=this.endExclusive}contains(e){return this.start<=e&&e<this.endExclusive}join(e){return new G(Math.min(this.start,e.start),Math.max(this.endExclusive,e.endExclusive))}intersect(e){const n=Math.max(this.start,e.start),i=Math.min(this.endExclusive,e.endExclusive);if(n<=i)return new G(n,i)}intersectionLength(e){const n=Math.max(this.start,e.start),i=Math.min(this.endExclusive,e.endExclusive);return Math.max(0,i-n)}intersects(e){const n=Math.max(this.start,e.start),i=Math.min(this.endExclusive,e.endExclusive);return n<i}intersectsOrTouches(e){const n=Math.max(this.start,e.start),i=Math.min(this.endExclusive,e.endExclusive);return n<=i}isBefore(e){return this.endExclusive<=e.start}isAfter(e){return this.start>=e.endExclusive}slice(e){return e.slice(this.start,this.endExclusive)}substring(e){return e.substring(this.start,this.endExclusive)}clip(e){if(this.isEmpty)throw new ue(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,e))}clipCyclic(e){if(this.isEmpty)throw new ue(`Invalid clipping range: ${this.toString()}`);return e<this.start?this.endExclusive-(this.start-e)%this.length:e>=this.endExclusive?this.start+(e-this.start)%this.length:e}forEach(e){for(let n=this.start;n<this.endExclusive;n++)e(n)}joinRightTouching(e){if(this.endExclusive!==e.start)throw new ue(`Invalid join: ${this.toString()} and ${e.toString()}`);return new G(this.start,e.endExclusive)}withMargin(e,n){return n===void 0&&(n=e),new G(this.start-e,this.endExclusive+n)}}function ut(t,e){const n=ct(t,e);return n===-1?void 0:t[n]}function ct(t,e,n=0,i=t.length){let r=n,s=i;for(;r<s;){const a=Math.floor((r+s)/2);e(t[a])?r=a+1:s=a}return r-1}function nu(t,e){const n=si(t,e);return n===t.length?void 0:t[n]}function si(t,e,n=0,i=t.length){let r=n,s=i;for(;r<s;){const a=Math.floor((r+s)/2);e(t[a])?s=a:r=a+1}return r}const xn=class xn{constructor(e){this._array=e,this._findLastMonotonousLastIdx=0}findLastMonotonous(e){if(xn.assertInvariants){if(this._prevFindLastPredicate){for(const i of this._array)if(this._prevFindLastPredicate(i)&&!e(i))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.")}this._prevFindLastPredicate=e}const n=ct(this._array,e,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=n+1,n===-1?void 0:this._array[n]}};xn.assertInvariants=!1;let rn=xn;const ye=class ye{static ofLength(e,n){return new ye(e,e+n)}static fromRange(e){return new ye(e.startLineNumber,e.endLineNumber)}static fromRangeInclusive(e){return new ye(e.startLineNumber,e.endLineNumber+1)}static joinMany(e){if(e.length===0)return[];let n=new De(e[0].slice());for(let i=1;i<e.length;i++)n=n.getUnion(new De(e[i].slice()));return n.ranges}static join(e){if(e.length===0)throw new ue("lineRanges cannot be empty");let n=e[0].startLineNumber,i=e[0].endLineNumberExclusive;for(let r=1;r<e.length;r++)n=Math.min(n,e[r].startLineNumber),i=Math.max(i,e[r].endLineNumberExclusive);return new ye(n,i)}static deserialize(e){return new ye(e[0],e[1])}constructor(e,n){if(e>n)throw new ue(`startLineNumber ${e} cannot be after endLineNumberExclusive ${n}`);this.startLineNumber=e,this.endLineNumberExclusive=n}contains(e){return this.startLineNumber<=e&&e<this.endLineNumberExclusive}get isEmpty(){return this.startLineNumber===this.endLineNumberExclusive}delta(e){return new ye(this.startLineNumber+e,this.endLineNumberExclusive+e)}deltaLength(e){return new ye(this.startLineNumber,this.endLineNumberExclusive+e)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(e){return new ye(Math.min(this.startLineNumber,e.startLineNumber),Math.max(this.endLineNumberExclusive,e.endLineNumberExclusive))}toString(){return`[${this.startLineNumber},${this.endLineNumberExclusive})`}intersect(e){const n=Math.max(this.startLineNumber,e.startLineNumber),i=Math.min(this.endLineNumberExclusive,e.endLineNumberExclusive);if(n<=i)return new ye(n,i)}intersectsStrict(e){return this.startLineNumber<e.endLineNumberExclusive&&e.startLineNumber<this.endLineNumberExclusive}intersectsOrTouches(e){return this.startLineNumber<=e.endLineNumberExclusive&&e.startLineNumber<=this.endLineNumberExclusive}equals(e){return this.startLineNumber===e.startLineNumber&&this.endLineNumberExclusive===e.endLineNumberExclusive}toInclusiveRange(){return this.isEmpty?null:new j(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new j(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(e){const n=[];for(let i=this.startLineNumber;i<this.endLineNumberExclusive;i++)n.push(e(i));return n}forEach(e){for(let n=this.startLineNumber;n<this.endLineNumberExclusive;n++)e(n)}serialize(){return[this.startLineNumber,this.endLineNumberExclusive]}toOffsetRange(){return new G(this.startLineNumber-1,this.endLineNumberExclusive-1)}addMargin(e,n){return new ye(this.startLineNumber-e,this.endLineNumberExclusive+n)}};ye.compareByStart=Et(e=>e.startLineNumber,Rt);let J=ye;class De{constructor(e=[]){this._normalizedRanges=e}get ranges(){return this._normalizedRanges}addRange(e){if(e.length===0)return;const n=si(this._normalizedRanges,r=>r.endLineNumberExclusive>=e.startLineNumber),i=ct(this._normalizedRanges,r=>r.startLineNumber<=e.endLineNumberExclusive)+1;if(n===i)this._normalizedRanges.splice(n,0,e);else if(n===i-1){const r=this._normalizedRanges[n];this._normalizedRanges[n]=r.join(e)}else{const r=this._normalizedRanges[n].join(this._normalizedRanges[i-1]).join(e);this._normalizedRanges.splice(n,i-n,r)}}contains(e){const n=ut(this._normalizedRanges,i=>i.startLineNumber<=e);return!!n&&n.endLineNumberExclusive>e}intersects(e){const n=ut(this._normalizedRanges,i=>i.startLineNumber<e.endLineNumberExclusive);return!!n&&n.endLineNumberExclusive>e.startLineNumber}getUnion(e){if(this._normalizedRanges.length===0)return e;if(e._normalizedRanges.length===0)return this;const n=[];let i=0,r=0,s=null;for(;i<this._normalizedRanges.length||r<e._normalizedRanges.length;){let a=null;if(i<this._normalizedRanges.length&&r<e._normalizedRanges.length){const l=this._normalizedRanges[i],o=e._normalizedRanges[r];l.startLineNumber<o.startLineNumber?(a=l,i++):(a=o,r++)}else i<this._normalizedRanges.length?(a=this._normalizedRanges[i],i++):(a=e._normalizedRanges[r],r++);s===null?s=a:s.endLineNumberExclusive>=a.startLineNumber?s=new J(s.startLineNumber,Math.max(s.endLineNumberExclusive,a.endLineNumberExclusive)):(n.push(s),s=a)}return s!==null&&n.push(s),new De(n)}subtractFrom(e){const n=si(this._normalizedRanges,a=>a.endLineNumberExclusive>=e.startLineNumber),i=ct(this._normalizedRanges,a=>a.startLineNumber<=e.endLineNumberExclusive)+1;if(n===i)return new De([e]);const r=[];let s=e.startLineNumber;for(let a=n;a<i;a++){const l=this._normalizedRanges[a];l.startLineNumber>s&&r.push(new J(s,l.startLineNumber)),s=l.endLineNumberExclusive}return s<e.endLineNumberExclusive&&r.push(new J(s,e.endLineNumberExclusive)),new De(r)}toString(){return this._normalizedRanges.map(e=>e.toString()).join(", ")}getIntersection(e){const n=[];let i=0,r=0;for(;i<this._normalizedRanges.length&&r<e._normalizedRanges.length;){const s=this._normalizedRanges[i],a=e._normalizedRanges[r],l=s.intersect(a);l&&!l.isEmpty&&n.push(l),s.endLineNumberExclusive<a.endLineNumberExclusive?i++:r++}return new De(n)}getWithDelta(e){return new De(this._normalizedRanges.map(n=>n.delta(e)))}}const Ee=class Ee{static betweenPositions(e,n){return e.lineNumber===n.lineNumber?new Ee(0,n.column-e.column):new Ee(n.lineNumber-e.lineNumber,n.column-1)}static fromPosition(e){return new Ee(e.lineNumber-1,e.column-1)}static ofRange(e){return Ee.betweenPositions(e.getStartPosition(),e.getEndPosition())}static ofText(e){let n=0,i=0;for(const r of e)r===`
9
9
  `?(n++,i=0):i++;return new Ee(n,i)}constructor(e,n){this.lineCount=e,this.columnCount=n}isGreaterThanOrEqualTo(e){return this.lineCount!==e.lineCount?this.lineCount>e.lineCount:this.columnCount>=e.columnCount}add(e){return e.lineCount===0?new Ee(this.lineCount,this.columnCount+e.columnCount):new Ee(this.lineCount+e.lineCount,e.columnCount)}createRange(e){return this.lineCount===0?new j(e.lineNumber,e.column,e.lineNumber,e.column+this.columnCount):new j(e.lineNumber,e.column,e.lineNumber+this.lineCount,this.columnCount+1)}toRange(){return new j(1,1,this.lineCount+1,this.columnCount+1)}toLineRange(){return J.ofLength(1,this.lineCount+1)}addToPosition(e){return this.lineCount===0?new K(e.lineNumber,e.column+this.columnCount):new K(e.lineNumber+this.lineCount,this.columnCount+1)}toString(){return`${this.lineCount},${this.columnCount}`}};Ee.zero=new Ee(0,0);let Dt=Ee;class iu{getOffsetRange(e){return new G(this.getOffset(e.getStartPosition()),this.getOffset(e.getEndPosition()))}getRange(e){return j.fromPositions(this.getPosition(e.start),this.getPosition(e.endExclusive))}getStringReplacement(e){return new ht.deps.StringReplacement(this.getOffsetRange(e.range),e.text)}getTextReplacement(e){return new ht.deps.TextReplacement(this.getRange(e.replaceRange),e.newText)}getTextEdit(e){const n=e.replacements.map(i=>this.getTextReplacement(i));return new ht.deps.TextEdit(n)}}const zi=class zi{static get deps(){if(!this._deps)throw new Error("Dependencies not set. Call _setDependencies first.");return this._deps}};zi._deps=void 0;let ht=zi;class ru extends iu{constructor(e){super(),this.text=e}get lineStartOffsetByLineIdx(){return this._lineStartOffsetByLineIdx||this._computeLineOffsets(),this._lineStartOffsetByLineIdx}get lineEndOffsetByLineIdx(){return this._lineEndOffsetByLineIdx||this._computeLineOffsets(),this._lineEndOffsetByLineIdx}_computeLineOffsets(){this._lineStartOffsetByLineIdx=[],this._lineEndOffsetByLineIdx=[],this._lineStartOffsetByLineIdx.push(0);for(let e=0;e<this.text.length;e++)this.text.charAt(e)===`
10
10
  `&&(this._lineStartOffsetByLineIdx.push(e+1),e>0&&this.text.charAt(e-1)==="\r"?this._lineEndOffsetByLineIdx.push(e-1):this._lineEndOffsetByLineIdx.push(e));this._lineEndOffsetByLineIdx.push(this.text.length)}getOffset(e){const n=this._validatePosition(e);return this.lineStartOffsetByLineIdx[n.lineNumber-1]+n.column-1}_validatePosition(e){if(e.lineNumber<1)return new K(1,1);const n=this.textLength.lineCount+1;if(e.lineNumber>n){const r=this.getLineLength(n);return new K(n,r+1)}if(e.column<1)return new K(e.lineNumber,1);const i=this.getLineLength(e.lineNumber);return e.column-1>i?new K(e.lineNumber,i+1):e}getPosition(e){const n=ct(this.lineStartOffsetByLineIdx,s=>s<=e),i=n+1,r=e-this.lineStartOffsetByLineIdx[n]+1;return new K(i,r)}get textLength(){const e=this.lineStartOffsetByLineIdx.length-1;return new ht.deps.TextLength(e,this.text.length-this.lineStartOffsetByLineIdx[e])}getLineLength(e){return this.lineEndOffsetByLineIdx[e-1]-this.lineStartOffsetByLineIdx[e-1]}}class su{constructor(){this._transformer=void 0}get endPositionExclusive(){return this.length.addToPosition(new K(1,1))}get lineRange(){return this.length.toLineRange()}getValue(){return this.getValueOfRange(this.length.toRange())}getValueOfOffsetRange(e){return this.getValueOfRange(this.getTransformer().getRange(e))}getLineLength(e){return this.getValueOfRange(new j(e,1,e,Number.MAX_SAFE_INTEGER)).length}getTransformer(){return this._transformer||(this._transformer=new ru(this.getValue())),this._transformer}getLineAt(e){return this.getValueOfRange(new j(e,1,e,Number.MAX_SAFE_INTEGER))}}class au extends su{constructor(e,n){co(n>=1),super(),this._getLineContent=e,this._lineCount=n}getValueOfRange(e){if(e.startLineNumber===e.endLineNumber)return this._getLineContent(e.startLineNumber).substring(e.startColumn-1,e.endColumn-1);let n=this._getLineContent(e.startLineNumber).substring(e.startColumn-1);for(let i=e.startLineNumber+1;i<e.endLineNumber;i++)n+=`
11
11
  `+this._getLineContent(i);return n+=`
12
- `+this._getLineContent(e.endLineNumber).substring(0,e.endColumn-1),n}getLineLength(e){return this._getLineContent(e).length}get length(){const e=this._getLineContent(this._lineCount);return new Dt(this._lineCount-1,e.length)}}class sn extends au{constructor(e){super(n=>e[n-1],e.length)}}class je{static joinReplacements(e,n){if(e.length===0)throw new ue;if(e.length===1)return e[0];const i=e[0].range.getStartPosition(),r=e[e.length-1].range.getEndPosition();let s="";for(let a=0;a<e.length;a++){const l=e[a];if(s+=l.text,a<e.length-1){const o=e[a+1],u=j.fromPositions(l.range.getEndPosition(),o.range.getStartPosition()),c=n.getValueOfRange(u);s+=c}}return new je(j.fromPositions(i,r),s)}static fromStringReplacement(e,n){return new je(n.getTransformer().getRange(e.replaceRange),e.newText)}static delete(e){return new je(e,"")}constructor(e,n){this.range=e,this.text=n}get isEmpty(){return this.range.isEmpty()&&this.text.length===0}static equals(e,n){return e.range.equalsRange(n.range)&&e.text===n.text}equals(e){return je.equals(this,e)}removeCommonPrefixAndSuffix(e){return this.removeCommonPrefix(e).removeCommonSuffix(e)}removeCommonPrefix(e){const n=e.getValueOfRange(this.range).replaceAll(`\r
12
+ `+this._getLineContent(e.endLineNumber).substring(0,e.endColumn-1),n}getLineLength(e){return this._getLineContent(e).length}get length(){const e=this._getLineContent(this._lineCount);return new Dt(this._lineCount-1,e.length)}}class sn extends au{constructor(e){super(n=>e[n-1],e.length)}}class je{static joinReplacements(e,n){if(e.length===0)throw new ue;if(e.length===1)return e[0];const i=e[0].range.getStartPosition(),r=e[e.length-1].range.getEndPosition();let s="";for(let a=0;a<e.length;a++){const l=e[a];if(s+=l.text,a<e.length-1){const o=e[a+1],u=j.fromPositions(l.range.getEndPosition(),o.range.getStartPosition()),h=n.getValueOfRange(u);s+=h}}return new je(j.fromPositions(i,r),s)}static fromStringReplacement(e,n){return new je(n.getTransformer().getRange(e.replaceRange),e.newText)}static delete(e){return new je(e,"")}constructor(e,n){this.range=e,this.text=n}get isEmpty(){return this.range.isEmpty()&&this.text.length===0}static equals(e,n){return e.range.equalsRange(n.range)&&e.text===n.text}equals(e){return je.equals(this,e)}removeCommonPrefixAndSuffix(e){return this.removeCommonPrefix(e).removeCommonSuffix(e)}removeCommonPrefix(e){const n=e.getValueOfRange(this.range).replaceAll(`\r
13
13
  `,`
14
14
  `),i=this.text.replaceAll(`\r
15
15
  `,`
@@ -17,57 +17,57 @@
17
17
  `,`
18
18
  `),i=this.text.replaceAll(`\r
19
19
  `,`
20
- `),r=Wo(n,i),s=Dt.ofText(n.substring(0,n.length-r)).addToPosition(this.range.getStartPosition()),a=i.substring(0,i.length-r),l=j.fromPositions(this.range.getStartPosition(),s);return new je(l,a)}toString(){const e=this.range.getStartPosition(),n=this.range.getEndPosition();return`(${e.lineNumber},${e.column} -> ${n.lineNumber},${n.column}): "${this.text}"`}}class Te{static inverse(e,n,i){const r=[];let s=1,a=1;for(const o of e){const u=new Te(new J(s,o.original.startLineNumber),new J(a,o.modified.startLineNumber));u.modified.isEmpty||r.push(u),s=o.original.endLineNumberExclusive,a=o.modified.endLineNumberExclusive}const l=new Te(new J(s,n+1),new J(a,i+1));return l.modified.isEmpty||r.push(l),r}static clip(e,n,i){const r=[];for(const s of e){const a=s.original.intersect(n),l=s.modified.intersect(i);a&&!a.isEmpty&&l&&!l.isEmpty&&r.push(new Te(a,l))}return r}constructor(e,n){this.original=e,this.modified=n}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new Te(this.modified,this.original)}join(e){return new Te(this.original.join(e.original),this.modified.join(e.modified))}toRangeMapping(){const e=this.original.toInclusiveRange(),n=this.modified.toInclusiveRange();if(e&&n)return new xe(e,n);if(this.original.startLineNumber===1||this.modified.startLineNumber===1){if(!(this.modified.startLineNumber===1&&this.original.startLineNumber===1))throw new ue("not a valid diff");return new xe(new j(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new j(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1))}else return new xe(new j(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),new j(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER))}toRangeMapping2(e,n){if(Ts(this.original.endLineNumberExclusive,e)&&Ts(this.modified.endLineNumberExclusive,n))return new xe(new j(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new j(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1));if(!this.original.isEmpty&&!this.modified.isEmpty)return new xe(j.fromPositions(new K(this.original.startLineNumber,1),dt(new K(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),e)),j.fromPositions(new K(this.modified.startLineNumber,1),dt(new K(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),n)));if(this.original.startLineNumber>1&&this.modified.startLineNumber>1)return new xe(j.fromPositions(dt(new K(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER),e),dt(new K(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),e)),j.fromPositions(dt(new K(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER),n),dt(new K(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),n)));throw new ue}}function dt(t,e){if(t.lineNumber<1)return new K(1,1);if(t.lineNumber>e.length)return new K(e.length,e[e.length-1].length+1);const n=e[t.lineNumber-1];return t.column>n.length+1?new K(t.lineNumber,n.length+1):t}function Ts(t,e){return t>=1&&t<=e.length}class Pe extends Te{static fromRangeMappings(e){const n=J.join(e.map(r=>J.fromRangeInclusive(r.originalRange))),i=J.join(e.map(r=>J.fromRangeInclusive(r.modifiedRange)));return new Pe(n,i,e)}constructor(e,n,i){super(e,n),this.innerChanges=i}flip(){return new Pe(this.modified,this.original,this.innerChanges?.map(e=>e.flip()))}withInnerChangesFromLineRanges(){return new Pe(this.original,this.modified,[this.toRangeMapping()])}}class xe{static fromEdit(e){const n=e.getNewRanges();return e.replacements.map((r,s)=>new xe(r.range,n[s]))}static assertSorted(e){for(let n=1;n<e.length;n++){const i=e[n-1],r=e[n];if(!(i.originalRange.getEndPosition().isBeforeOrEqual(r.originalRange.getStartPosition())&&i.modifiedRange.getEndPosition().isBeforeOrEqual(r.modifiedRange.getStartPosition())))throw new ue("Range mappings must be sorted")}}constructor(e,n){this.originalRange=e,this.modifiedRange=n}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new xe(this.modifiedRange,this.originalRange)}toTextEdit(e){const n=e.getValueOfRange(this.modifiedRange);return new je(this.originalRange,n)}}function xs(t,e,n,i=!1){const r=[];for(const s of Yl(t.map(a=>ou(a,e,n)),(a,l)=>a.original.intersectsOrTouches(l.original)||a.modified.intersectsOrTouches(l.modified))){const a=s[0],l=s[s.length-1];r.push(new Pe(a.original.join(l.original),a.modified.join(l.modified),s.map(o=>o.innerChanges[0])))}return Vt(()=>!i&&r.length>0&&(r[0].modified.startLineNumber!==r[0].original.startLineNumber||n.length.lineCount-r[r.length-1].modified.endLineNumberExclusive!==e.length.lineCount-r[r.length-1].original.endLineNumberExclusive)?!1:Ui(r,(s,a)=>a.original.startLineNumber-s.original.endLineNumberExclusive===a.modified.startLineNumber-s.modified.endLineNumberExclusive&&s.original.endLineNumberExclusive<a.original.startLineNumber&&s.modified.endLineNumberExclusive<a.modified.startLineNumber)),r}function ou(t,e,n){let i=0,r=0;t.modifiedRange.endColumn===1&&t.originalRange.endColumn===1&&t.originalRange.startLineNumber+i<=t.originalRange.endLineNumber&&t.modifiedRange.startLineNumber+i<=t.modifiedRange.endLineNumber&&(r=-1),t.modifiedRange.startColumn-1>=n.getLineLength(t.modifiedRange.startLineNumber)&&t.originalRange.startColumn-1>=e.getLineLength(t.originalRange.startLineNumber)&&t.originalRange.startLineNumber<=t.originalRange.endLineNumber+r&&t.modifiedRange.startLineNumber<=t.modifiedRange.endLineNumber+r&&(i=1);const s=new J(t.originalRange.startLineNumber+i,t.originalRange.endLineNumber+1+r),a=new J(t.modifiedRange.startLineNumber+i,t.modifiedRange.endLineNumber+1+r);return new Pe(s,a,[t])}const lu=3;class uu{computeDiff(e,n,i){const s=new du(e,n,{maxComputationTime:i.maxComputationTimeMs,shouldIgnoreTrimWhitespace:i.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),a=[];let l=null;for(const o of s.changes){let u;o.originalEndLineNumber===0?u=new J(o.originalStartLineNumber+1,o.originalStartLineNumber+1):u=new J(o.originalStartLineNumber,o.originalEndLineNumber+1);let c;o.modifiedEndLineNumber===0?c=new J(o.modifiedStartLineNumber+1,o.modifiedStartLineNumber+1):c=new J(o.modifiedStartLineNumber,o.modifiedEndLineNumber+1);let d=new Pe(u,c,o.charChanges?.map(m=>new xe(new j(m.originalStartLineNumber,m.originalStartColumn,m.originalEndLineNumber,m.originalEndColumn),new j(m.modifiedStartLineNumber,m.modifiedStartColumn,m.modifiedEndLineNumber,m.modifiedEndColumn))));l&&(l.modified.endLineNumberExclusive===d.modified.startLineNumber||l.original.endLineNumberExclusive===d.original.startLineNumber)&&(d=new Pe(l.original.join(d.original),l.modified.join(d.modified),l.innerChanges&&d.innerChanges?l.innerChanges.concat(d.innerChanges):void 0),a.pop()),a.push(d),l=d}return Vt(()=>Ui(a,(o,u)=>u.original.startLineNumber-o.original.endLineNumberExclusive===u.modified.startLineNumber-o.modified.endLineNumberExclusive&&o.original.endLineNumberExclusive<u.original.startLineNumber&&o.modified.endLineNumberExclusive<u.modified.startLineNumber)),new nn(a,[],s.quitEarly)}}function ks(t,e,n,i){return new Ve(t,e,n).ComputeDiff(i)}let Ss=class{constructor(e){const n=[],i=[];for(let r=0,s=e.length;r<s;r++)n[r]=ai(e[r],1),i[r]=oi(e[r],1);this.lines=e,this._startColumns=n,this._endColumns=i}getElements(){const e=[];for(let n=0,i=this.lines.length;n<i;n++)e[n]=this.lines[n].substring(this._startColumns[n]-1,this._endColumns[n]-1);return e}getStrictElement(e){return this.lines[e]}getStartLineNumber(e){return e+1}getEndLineNumber(e){return e+1}createCharSequence(e,n,i){const r=[],s=[],a=[];let l=0;for(let o=n;o<=i;o++){const u=this.lines[o],c=e?this._startColumns[o]:1,d=e?this._endColumns[o]:u.length+1;for(let m=c;m<d;m++)r[l]=u.charCodeAt(m-1),s[l]=o+1,a[l]=m,l++;!e&&o<i&&(r[l]=10,s[l]=o+1,a[l]=u.length+1,l++)}return new cu(r,s,a)}};class cu{constructor(e,n,i){this._charCodes=e,this._lineNumbers=n,this._columns=i}toString(){return"["+this._charCodes.map((e,n)=>(e===10?"\\n":String.fromCharCode(e))+`-(${this._lineNumbers[n]},${this._columns[n]})`).join(", ")+"]"}_assertIndex(e,n){if(e<0||e>=n.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(e){return e>0&&e===this._lineNumbers.length?this.getEndLineNumber(e-1):(this._assertIndex(e,this._lineNumbers),this._lineNumbers[e])}getEndLineNumber(e){return e===-1?this.getStartLineNumber(e+1):(this._assertIndex(e,this._lineNumbers),this._charCodes[e]===10?this._lineNumbers[e]+1:this._lineNumbers[e])}getStartColumn(e){return e>0&&e===this._columns.length?this.getEndColumn(e-1):(this._assertIndex(e,this._columns),this._columns[e])}getEndColumn(e){return e===-1?this.getStartColumn(e+1):(this._assertIndex(e,this._columns),this._charCodes[e]===10?1:this._columns[e]+1)}}class mt{constructor(e,n,i,r,s,a,l,o){this.originalStartLineNumber=e,this.originalStartColumn=n,this.originalEndLineNumber=i,this.originalEndColumn=r,this.modifiedStartLineNumber=s,this.modifiedStartColumn=a,this.modifiedEndLineNumber=l,this.modifiedEndColumn=o}static createFromDiffChange(e,n,i){const r=n.getStartLineNumber(e.originalStart),s=n.getStartColumn(e.originalStart),a=n.getEndLineNumber(e.originalStart+e.originalLength-1),l=n.getEndColumn(e.originalStart+e.originalLength-1),o=i.getStartLineNumber(e.modifiedStart),u=i.getStartColumn(e.modifiedStart),c=i.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),d=i.getEndColumn(e.modifiedStart+e.modifiedLength-1);return new mt(r,s,a,l,o,u,c,d)}}function hu(t){if(t.length<=1)return t;const e=[t[0]];let n=e[0];for(let i=1,r=t.length;i<r;i++){const s=t[i],a=s.originalStart-(n.originalStart+n.originalLength),l=s.modifiedStart-(n.modifiedStart+n.modifiedLength);Math.min(a,l)<lu?(n.originalLength=s.originalStart+s.originalLength-n.originalStart,n.modifiedLength=s.modifiedStart+s.modifiedLength-n.modifiedStart):(e.push(s),n=s)}return e}class Mt{constructor(e,n,i,r,s){this.originalStartLineNumber=e,this.originalEndLineNumber=n,this.modifiedStartLineNumber=i,this.modifiedEndLineNumber=r,this.charChanges=s}static createFromDiffResult(e,n,i,r,s,a,l){let o,u,c,d,m;if(n.originalLength===0?(o=i.getStartLineNumber(n.originalStart)-1,u=0):(o=i.getStartLineNumber(n.originalStart),u=i.getEndLineNumber(n.originalStart+n.originalLength-1)),n.modifiedLength===0?(c=r.getStartLineNumber(n.modifiedStart)-1,d=0):(c=r.getStartLineNumber(n.modifiedStart),d=r.getEndLineNumber(n.modifiedStart+n.modifiedLength-1)),a&&n.originalLength>0&&n.originalLength<20&&n.modifiedLength>0&&n.modifiedLength<20&&s()){const f=i.createCharSequence(e,n.originalStart,n.originalStart+n.originalLength-1),w=r.createCharSequence(e,n.modifiedStart,n.modifiedStart+n.modifiedLength-1);if(f.getElements().length>0&&w.getElements().length>0){let p=ks(f,w,s,!0).changes;l&&(p=hu(p)),m=[];for(let T=0,y=p.length;T<y;T++)m.push(mt.createFromDiffChange(p[T],f,w))}}return new Mt(o,u,c,d,m)}}class du{constructor(e,n,i){this.shouldComputeCharChanges=i.shouldComputeCharChanges,this.shouldPostProcessCharChanges=i.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=i.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=i.shouldMakePrettyDiff,this.originalLines=e,this.modifiedLines=n,this.original=new Ss(e),this.modified=new Ss(n),this.continueLineDiff=As(i.maxComputationTime),this.continueCharDiff=As(i.maxComputationTime===0?0:Math.min(i.maxComputationTime,5e3))}computeDiff(){if(this.original.lines.length===1&&this.original.lines[0].length===0)return this.modified.lines.length===1&&this.modified.lines[0].length===0?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:void 0}]};if(this.modified.lines.length===1&&this.modified.lines[0].length===0)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:void 0}]};const e=ks(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),n=e.changes,i=e.quitEarly;if(this.shouldIgnoreTrimWhitespace){const l=[];for(let o=0,u=n.length;o<u;o++)l.push(Mt.createFromDiffResult(this.shouldIgnoreTrimWhitespace,n[o],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:i,changes:l}}const r=[];let s=0,a=0;for(let l=-1,o=n.length;l<o;l++){const u=l+1<o?n[l+1]:null,c=u?u.originalStart:this.originalLines.length,d=u?u.modifiedStart:this.modifiedLines.length;for(;s<c&&a<d;){const m=this.originalLines[s],f=this.modifiedLines[a];if(m!==f){{let w=ai(m,1),p=ai(f,1);for(;w>1&&p>1;){const T=m.charCodeAt(w-2),y=f.charCodeAt(p-2);if(T!==y)break;w--,p--}(w>1||p>1)&&this._pushTrimWhitespaceCharChange(r,s+1,1,w,a+1,1,p)}{let w=oi(m,1),p=oi(f,1);const T=m.length+1,y=f.length+1;for(;w<T&&p<y;){const v=m.charCodeAt(w-1),S=m.charCodeAt(p-1);if(v!==S)break;w++,p++}(w<T||p<y)&&this._pushTrimWhitespaceCharChange(r,s+1,w,T,a+1,p,y)}}s++,a++}u&&(r.push(Mt.createFromDiffResult(this.shouldIgnoreTrimWhitespace,u,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),s+=u.originalLength,a+=u.modifiedLength)}return{quitEarly:i,changes:r}}_pushTrimWhitespaceCharChange(e,n,i,r,s,a,l){if(this._mergeTrimWhitespaceCharChange(e,n,i,r,s,a,l))return;let o;this.shouldComputeCharChanges&&(o=[new mt(n,i,n,r,s,a,s,l)]),e.push(new Mt(n,n,s,s,o))}_mergeTrimWhitespaceCharChange(e,n,i,r,s,a,l){const o=e.length;if(o===0)return!1;const u=e[o-1];return u.originalEndLineNumber===0||u.modifiedEndLineNumber===0?!1:u.originalEndLineNumber===n&&u.modifiedEndLineNumber===s?(this.shouldComputeCharChanges&&u.charChanges&&u.charChanges.push(new mt(n,i,n,r,s,a,s,l)),!0):u.originalEndLineNumber+1===n&&u.modifiedEndLineNumber+1===s?(u.originalEndLineNumber=n,u.modifiedEndLineNumber=s,this.shouldComputeCharChanges&&u.charChanges&&u.charChanges.push(new mt(n,i,n,r,s,a,s,l)),!0):!1}}function ai(t,e){const n=Ho(t);return n===-1?e:n+1}function oi(t,e){const n=Uo(t);return n===-1?e:n+2}function As(t){if(t===0)return()=>!0;const e=Date.now();return()=>Date.now()-e<t}class We{static trivial(e,n){return new We([new ne(G.ofLength(e.length),G.ofLength(n.length))],!1)}static trivialTimedOut(e,n){return new We([new ne(G.ofLength(e.length),G.ofLength(n.length))],!0)}constructor(e,n){this.diffs=e,this.hitTimeout=n}}class ne{static invert(e,n){const i=[];return Zl(e,(r,s)=>{i.push(ne.fromOffsetPairs(r?r.getEndExclusives():Fe.zero,s?s.getStarts():new Fe(n,(r?r.seq2Range.endExclusive-r.seq1Range.endExclusive:0)+n)))}),i}static fromOffsetPairs(e,n){return new ne(new G(e.offset1,n.offset1),new G(e.offset2,n.offset2))}static assertSorted(e){let n;for(const i of e){if(n&&!(n.seq1Range.endExclusive<=i.seq1Range.start&&n.seq2Range.endExclusive<=i.seq2Range.start))throw new ue("Sequence diffs must be sorted");n=i}}constructor(e,n){this.seq1Range=e,this.seq2Range=n}swap(){return new ne(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(e){return new ne(this.seq1Range.join(e.seq1Range),this.seq2Range.join(e.seq2Range))}delta(e){return e===0?this:new ne(this.seq1Range.delta(e),this.seq2Range.delta(e))}deltaStart(e){return e===0?this:new ne(this.seq1Range.deltaStart(e),this.seq2Range.deltaStart(e))}deltaEnd(e){return e===0?this:new ne(this.seq1Range.deltaEnd(e),this.seq2Range.deltaEnd(e))}intersect(e){const n=this.seq1Range.intersect(e.seq1Range),i=this.seq2Range.intersect(e.seq2Range);if(!(!n||!i))return new ne(n,i)}getStarts(){return new Fe(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new Fe(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}const Ke=class Ke{constructor(e,n){this.offset1=e,this.offset2=n}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(e){return e===0?this:new Ke(this.offset1+e,this.offset2+e)}equals(e){return this.offset1===e.offset1&&this.offset2===e.offset2}};Ke.zero=new Ke(0,0),Ke.max=new Ke(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER);let Fe=Ke;const kn=class kn{isValid(){return!0}};kn.instance=new kn;let Nt=kn;class mu{constructor(e){if(this.timeout=e,this.startTime=Date.now(),this.valid=!0,e<=0)throw new ue("timeout must be positive")}isValid(){return!(Date.now()-this.startTime<this.timeout)&&this.valid&&(this.valid=!1),this.valid}}class li{constructor(e,n){this.width=e,this.height=n,this.array=[],this.array=new Array(e*n)}get(e,n){return this.array[e+n*this.width]}set(e,n,i){this.array[e+n*this.width]=i}}function ui(t){return t===32||t===9}const Bt=class Bt{static getKey(e){let n=this.chrKeys.get(e);return n===void 0&&(n=this.chrKeys.size,this.chrKeys.set(e,n)),n}constructor(e,n,i){this.range=e,this.lines=n,this.source=i,this.histogram=[];let r=0;for(let s=e.startLineNumber-1;s<e.endLineNumberExclusive-1;s++){const a=n[s];for(let o=0;o<a.length;o++){r++;const u=a[o],c=Bt.getKey(u);this.histogram[c]=(this.histogram[c]||0)+1}r++;const l=Bt.getKey(`
21
- `);this.histogram[l]=(this.histogram[l]||0)+1}this.totalCount=r}computeSimilarity(e){let n=0;const i=Math.max(this.histogram.length,e.histogram.length);for(let r=0;r<i;r++)n+=Math.abs((this.histogram[r]??0)-(e.histogram[r]??0));return 1-n/(this.totalCount+e.totalCount)}};Bt.chrKeys=new Map;let an=Bt;class fu{compute(e,n,i=Nt.instance,r){if(e.length===0||n.length===0)return We.trivial(e,n);const s=new li(e.length,n.length),a=new li(e.length,n.length),l=new li(e.length,n.length);for(let w=0;w<e.length;w++)for(let p=0;p<n.length;p++){if(!i.isValid())return We.trivialTimedOut(e,n);const T=w===0?0:s.get(w-1,p),y=p===0?0:s.get(w,p-1);let v;e.getElement(w)===n.getElement(p)?(w===0||p===0?v=0:v=s.get(w-1,p-1),w>0&&p>0&&a.get(w-1,p-1)===3&&(v+=l.get(w-1,p-1)),v+=r?r(w,p):1):v=-1;const S=Math.max(T,y,v);if(S===v){const I=w>0&&p>0?l.get(w-1,p-1):0;l.set(w,p,I+1),a.set(w,p,3)}else S===T?(l.set(w,p,0),a.set(w,p,1)):S===y&&(l.set(w,p,0),a.set(w,p,2));s.set(w,p,S)}const o=[];let u=e.length,c=n.length;function d(w,p){(w+1!==u||p+1!==c)&&o.push(new ne(new G(w+1,u),new G(p+1,c))),u=w,c=p}let m=e.length-1,f=n.length-1;for(;m>=0&&f>=0;)a.get(m,f)===3?(d(m,f),m--,f--):a.get(m,f)===1?m--:f--;return d(-1,-1),o.reverse(),new We(o,!1)}}class Ls{compute(e,n,i=Nt.instance){if(e.length===0||n.length===0)return We.trivial(e,n);const r=e,s=n;function a(p,T){for(;p<r.length&&T<s.length&&r.getElement(p)===s.getElement(T);)p++,T++;return p}let l=0;const o=new pu;o.set(0,a(0,0));const u=new gu;u.set(0,o.get(0)===0?null:new Cs(null,0,0,o.get(0)));let c=0;e:for(;;){if(l++,!i.isValid())return We.trivialTimedOut(r,s);const p=-Math.min(l,s.length+l%2),T=Math.min(l,r.length+l%2);for(c=p;c<=T;c+=2){const y=c===T?-1:o.get(c+1),v=c===p?-1:o.get(c-1)+1,S=Math.min(Math.max(y,v),r.length),I=S-c;if(S>r.length||I>s.length)continue;const H=a(S,I);o.set(c,H);const W=S===y?u.get(c+1):u.get(c-1);if(u.set(c,H!==S?new Cs(W,S,I,H-S):W),o.get(c)===r.length&&o.get(c)-c===s.length)break e}}let d=u.get(c);const m=[];let f=r.length,w=s.length;for(;;){const p=d?d.x+d.length:0,T=d?d.y+d.length:0;if((p!==f||T!==w)&&m.push(new ne(new G(p,f),new G(T,w))),!d)break;f=d.x,w=d.y,d=d.prev}return m.reverse(),new We(m,!1)}}class Cs{constructor(e,n,i,r){this.prev=e,this.x=n,this.y=i,this.length=r}}class pu{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,n){if(e<0){if(e=-e-1,e>=this.negativeArr.length){const i=this.negativeArr;this.negativeArr=new Int32Array(i.length*2),this.negativeArr.set(i)}this.negativeArr[e]=n}else{if(e>=this.positiveArr.length){const i=this.positiveArr;this.positiveArr=new Int32Array(i.length*2),this.positiveArr.set(i)}this.positiveArr[e]=n}}}class gu{constructor(){this.positiveArr=[],this.negativeArr=[]}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,n){e<0?(e=-e-1,this.negativeArr[e]=n):this.positiveArr[e]=n}}class on{constructor(e,n,i){this.lines=e,this.range=n,this.considerWhitespaceChanges=i,this.elements=[],this.firstElementOffsetByLineIdx=[],this.lineStartOffsets=[],this.trimmedWsLengthsByLineIdx=[],this.firstElementOffsetByLineIdx.push(0);for(let r=this.range.startLineNumber;r<=this.range.endLineNumber;r++){let s=e[r-1],a=0;r===this.range.startLineNumber&&this.range.startColumn>1&&(a=this.range.startColumn-1,s=s.substring(a)),this.lineStartOffsets.push(a);let l=0;if(!i){const u=s.trimStart();l=s.length-u.length,s=u.trimEnd()}this.trimmedWsLengthsByLineIdx.push(l);const o=r===this.range.endLineNumber?Math.min(this.range.endColumn-1-a-l,s.length):s.length;for(let u=0;u<o;u++)this.elements.push(s.charCodeAt(u));r<this.range.endLineNumber&&(this.elements.push(10),this.firstElementOffsetByLineIdx.push(this.elements.length))}}toString(){return`Slice: "${this.text}"`}get text(){return this.getText(new G(0,this.length))}getText(e){return this.elements.slice(e.start,e.endExclusive).map(n=>String.fromCharCode(n)).join("")}getElement(e){return this.elements[e]}get length(){return this.elements.length}getBoundaryScore(e){const n=Ds(e>0?this.elements[e-1]:-1),i=Ds(e<this.elements.length?this.elements[e]:-1);if(n===7&&i===8)return 0;if(n===8)return 150;let r=0;return n!==i&&(r+=10,n===0&&i===1&&(r+=1)),r+=Rs(n),r+=Rs(i),r}translateOffset(e,n="right"){const i=ct(this.firstElementOffsetByLineIdx,s=>s<=e),r=e-this.firstElementOffsetByLineIdx[i];return new K(this.range.startLineNumber+i,1+this.lineStartOffsets[i]+r+(r===0&&n==="left"?0:this.trimmedWsLengthsByLineIdx[i]))}translateRange(e){const n=this.translateOffset(e.start,"right"),i=this.translateOffset(e.endExclusive,"left");return i.isBefore(n)?j.fromPositions(i,i):j.fromPositions(n,i)}findWordContaining(e){if(e<0||e>=this.elements.length||!ft(this.elements[e]))return;let n=e;for(;n>0&&ft(this.elements[n-1]);)n--;let i=e;for(;i<this.elements.length&&ft(this.elements[i]);)i++;return new G(n,i)}findSubWordContaining(e){if(e<0||e>=this.elements.length||!ft(this.elements[e]))return;let n=e;for(;n>0&&ft(this.elements[n-1])&&!Es(this.elements[n]);)n--;let i=e;for(;i<this.elements.length&&ft(this.elements[i])&&!Es(this.elements[i]);)i++;return new G(n,i)}countLinesIn(e){return this.translateOffset(e.endExclusive).lineNumber-this.translateOffset(e.start).lineNumber}isStronglyEqual(e,n){return this.elements[e]===this.elements[n]}extendToFullLines(e){const n=ut(this.firstElementOffsetByLineIdx,r=>r<=e.start)??0,i=nu(this.firstElementOffsetByLineIdx,r=>e.endExclusive<=r)??this.elements.length;return new G(n,i)}}function ft(t){return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57}function Es(t){return t>=65&&t<=90}const bu={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function Rs(t){return bu[t]}function Ds(t){return t===10?8:t===13?7:ui(t)?6:t>=97&&t<=122?0:t>=65&&t<=90?1:t>=48&&t<=57?2:t===-1?3:t===44||t===59?5:4}function wu(t,e,n,i,r,s){let{moves:a,excludedChanges:l}=vu(t,e,n,s);if(!s.isValid())return[];const o=t.filter(c=>!l.has(c)),u=yu(o,i,r,e,n,s);return eu(a,u),a=Tu(a),a=a.filter(c=>{const d=c.original.toOffsetRange().slice(e).map(f=>f.trim());return d.join(`
22
- `).length>=15&&_u(d,f=>f.length>=2)>=2}),a=xu(t,a),a}function _u(t,e){let n=0;for(const i of t)e(i)&&n++;return n}function vu(t,e,n,i){const r=[],s=t.filter(o=>o.modified.isEmpty&&o.original.length>=3).map(o=>new an(o.original,e,o)),a=new Set(t.filter(o=>o.original.isEmpty&&o.modified.length>=3).map(o=>new an(o.modified,n,o))),l=new Set;for(const o of s){let u=-1,c;for(const d of a){const m=o.computeSimilarity(d);m>u&&(u=m,c=d)}if(u>.9&&c&&(a.delete(c),r.push(new Te(o.range,c.range)),l.add(o.source),l.add(c.source)),!i.isValid())return{moves:r,excludedChanges:l}}return{moves:r,excludedChanges:l}}function yu(t,e,n,i,r,s){const a=[],l=new Pl;for(const m of t)for(let f=m.original.startLineNumber;f<m.original.endLineNumberExclusive-2;f++){const w=`${e[f-1]}:${e[f+1-1]}:${e[f+2-1]}`;l.add(w,{range:new J(f,f+3)})}const o=[];t.sort(Et(m=>m.modified.startLineNumber,Rt));for(const m of t){let f=[];for(let w=m.modified.startLineNumber;w<m.modified.endLineNumberExclusive-2;w++){const p=`${n[w-1]}:${n[w+1-1]}:${n[w+2-1]}`,T=new J(w,w+3),y=[];l.forEach(p,({range:v})=>{for(const I of f)if(I.originalLineRange.endLineNumberExclusive+1===v.endLineNumberExclusive&&I.modifiedLineRange.endLineNumberExclusive+1===T.endLineNumberExclusive){I.originalLineRange=new J(I.originalLineRange.startLineNumber,v.endLineNumberExclusive),I.modifiedLineRange=new J(I.modifiedLineRange.startLineNumber,T.endLineNumberExclusive),y.push(I);return}const S={modifiedLineRange:T,originalLineRange:v};o.push(S),y.push(S)}),f=y}if(!s.isValid())return[]}o.sort(tu(Et(m=>m.modifiedLineRange.length,Rt)));const u=new De,c=new De;for(const m of o){const f=m.modifiedLineRange.startLineNumber-m.originalLineRange.startLineNumber,w=u.subtractFrom(m.modifiedLineRange),p=c.subtractFrom(m.originalLineRange).getWithDelta(f),T=w.getIntersection(p);for(const y of T.ranges){if(y.length<3)continue;const v=y,S=y.delta(-f);a.push(new Te(S,v)),u.addRange(v),c.addRange(S)}}a.sort(Et(m=>m.original.startLineNumber,Rt));const d=new rn(t);for(let m=0;m<a.length;m++){const f=a[m],w=d.findLastMonotonous(W=>W.original.startLineNumber<=f.original.startLineNumber),p=ut(t,W=>W.modified.startLineNumber<=f.modified.startLineNumber),T=Math.max(f.original.startLineNumber-w.original.startLineNumber,f.modified.startLineNumber-p.modified.startLineNumber),y=d.findLastMonotonous(W=>W.original.startLineNumber<f.original.endLineNumberExclusive),v=ut(t,W=>W.modified.startLineNumber<f.modified.endLineNumberExclusive),S=Math.max(y.original.endLineNumberExclusive-f.original.endLineNumberExclusive,v.modified.endLineNumberExclusive-f.modified.endLineNumberExclusive);let I;for(I=0;I<T;I++){const W=f.original.startLineNumber-I-1,b=f.modified.startLineNumber-I-1;if(W>i.length||b>r.length||u.contains(b)||c.contains(W)||!Ms(i[W-1],r[b-1],s))break}I>0&&(c.addRange(new J(f.original.startLineNumber-I,f.original.startLineNumber)),u.addRange(new J(f.modified.startLineNumber-I,f.modified.startLineNumber)));let H;for(H=0;H<S;H++){const W=f.original.endLineNumberExclusive+H,b=f.modified.endLineNumberExclusive+H;if(W>i.length||b>r.length||u.contains(b)||c.contains(W)||!Ms(i[W-1],r[b-1],s))break}H>0&&(c.addRange(new J(f.original.endLineNumberExclusive,f.original.endLineNumberExclusive+H)),u.addRange(new J(f.modified.endLineNumberExclusive,f.modified.endLineNumberExclusive+H))),(I>0||H>0)&&(a[m]=new Te(new J(f.original.startLineNumber-I,f.original.endLineNumberExclusive+H),new J(f.modified.startLineNumber-I,f.modified.endLineNumberExclusive+H)))}return a}function Ms(t,e,n){if(t.trim()===e.trim())return!0;if(t.length>300&&e.length>300)return!1;const r=new Ls().compute(new on([t],new j(1,1,1,t.length),!1),new on([e],new j(1,1,1,e.length),!1),n);let s=0;const a=ne.invert(r.diffs,t.length);for(const c of a)c.seq1Range.forEach(d=>{ui(t.charCodeAt(d))||s++});function l(c){let d=0;for(let m=0;m<t.length;m++)ui(c.charCodeAt(m))||d++;return d}const o=l(t.length>e.length?t:e);return s/o>.6&&o>10}function Tu(t){if(t.length===0)return t;t.sort(Et(n=>n.original.startLineNumber,Rt));const e=[t[0]];for(let n=1;n<t.length;n++){const i=e[e.length-1],r=t[n],s=r.original.startLineNumber-i.original.endLineNumberExclusive,a=r.modified.startLineNumber-i.modified.endLineNumberExclusive;if(s>=0&&a>=0&&s+a<=2){e[e.length-1]=i.join(r);continue}e.push(r)}return e}function xu(t,e){const n=new rn(t);return e=e.filter(i=>{const r=n.findLastMonotonous(l=>l.original.startLineNumber<i.original.endLineNumberExclusive)||new Te(new J(1,1),new J(1,1)),s=ut(t,l=>l.modified.startLineNumber<i.modified.endLineNumberExclusive);return r!==s}),e}function Ns(t,e,n){let i=n;return i=Is(t,e,i),i=Is(t,e,i),i=ku(t,e,i),i}function Is(t,e,n){if(n.length===0)return n;const i=[];i.push(n[0]);for(let s=1;s<n.length;s++){const a=i[i.length-1];let l=n[s];if(l.seq1Range.isEmpty||l.seq2Range.isEmpty){const o=l.seq1Range.start-a.seq1Range.endExclusive;let u;for(u=1;u<=o&&!(t.getElement(l.seq1Range.start-u)!==t.getElement(l.seq1Range.endExclusive-u)||e.getElement(l.seq2Range.start-u)!==e.getElement(l.seq2Range.endExclusive-u));u++);if(u--,u===o){i[i.length-1]=new ne(new G(a.seq1Range.start,l.seq1Range.endExclusive-o),new G(a.seq2Range.start,l.seq2Range.endExclusive-o));continue}l=l.delta(-u)}i.push(l)}const r=[];for(let s=0;s<i.length-1;s++){const a=i[s+1];let l=i[s];if(l.seq1Range.isEmpty||l.seq2Range.isEmpty){const o=a.seq1Range.start-l.seq1Range.endExclusive;let u;for(u=0;u<o&&!(!t.isStronglyEqual(l.seq1Range.start+u,l.seq1Range.endExclusive+u)||!e.isStronglyEqual(l.seq2Range.start+u,l.seq2Range.endExclusive+u));u++);if(u===o){i[s+1]=new ne(new G(l.seq1Range.start+o,a.seq1Range.endExclusive),new G(l.seq2Range.start+o,a.seq2Range.endExclusive));continue}u>0&&(l=l.delta(u))}r.push(l)}return i.length>0&&r.push(i[i.length-1]),r}function ku(t,e,n){if(!t.getBoundaryScore||!e.getBoundaryScore)return n;for(let i=0;i<n.length;i++){const r=i>0?n[i-1]:void 0,s=n[i],a=i+1<n.length?n[i+1]:void 0,l=new G(r?r.seq1Range.endExclusive+1:0,a?a.seq1Range.start-1:t.length),o=new G(r?r.seq2Range.endExclusive+1:0,a?a.seq2Range.start-1:e.length);s.seq1Range.isEmpty?n[i]=zs(s,t,e,l,o):s.seq2Range.isEmpty&&(n[i]=zs(s.swap(),e,t,o,l).swap())}return n}function zs(t,e,n,i,r){let a=1;for(;t.seq1Range.start-a>=i.start&&t.seq2Range.start-a>=r.start&&n.isStronglyEqual(t.seq2Range.start-a,t.seq2Range.endExclusive-a)&&a<100;)a++;a--;let l=0;for(;t.seq1Range.start+l<i.endExclusive&&t.seq2Range.endExclusive+l<r.endExclusive&&n.isStronglyEqual(t.seq2Range.start+l,t.seq2Range.endExclusive+l)&&l<100;)l++;if(a===0&&l===0)return t;let o=0,u=-1;for(let c=-a;c<=l;c++){const d=t.seq2Range.start+c,m=t.seq2Range.endExclusive+c,f=t.seq1Range.start+c,w=e.getBoundaryScore(f)+n.getBoundaryScore(d)+n.getBoundaryScore(m);w>u&&(u=w,o=c)}return t.delta(o)}function Su(t,e,n){const i=[];for(const r of n){const s=i[i.length-1];if(!s){i.push(r);continue}r.seq1Range.start-s.seq1Range.endExclusive<=2||r.seq2Range.start-s.seq2Range.endExclusive<=2?i[i.length-1]=new ne(s.seq1Range.join(r.seq1Range),s.seq2Range.join(r.seq2Range)):i.push(r)}return i}function Hs(t,e,n,i,r=!1){const s=ne.invert(n,t.length),a=[];let l=new Fe(0,0);function o(c,d){if(c.offset1<l.offset1||c.offset2<l.offset2)return;const m=i(t,c.offset1),f=i(e,c.offset2);if(!m||!f)return;let w=new ne(m,f);const p=w.intersect(d);let T=p.seq1Range.length,y=p.seq2Range.length;for(;s.length>0;){const v=s[0];if(!(v.seq1Range.intersects(w.seq1Range)||v.seq2Range.intersects(w.seq2Range)))break;const I=i(t,v.seq1Range.start),H=i(e,v.seq2Range.start),W=new ne(I,H),b=W.intersect(v);if(T+=b.seq1Range.length,y+=b.seq2Range.length,w=w.join(W),w.seq1Range.endExclusive>=v.seq1Range.endExclusive)s.shift();else break}(r&&T+y<w.seq1Range.length+w.seq2Range.length||T+y<(w.seq1Range.length+w.seq2Range.length)*2/3)&&a.push(w),l=w.getEndExclusives()}for(;s.length>0;){const c=s.shift();c.seq1Range.isEmpty||(o(c.getStarts(),c),o(c.getEndExclusives().delta(-1),c))}return Au(n,a)}function Au(t,e){const n=[];for(;t.length>0||e.length>0;){const i=t[0],r=e[0];let s;i&&(!r||i.seq1Range.start<r.seq1Range.start)?s=t.shift():s=e.shift(),n.length>0&&n[n.length-1].seq1Range.endExclusive>=s.seq1Range.start?n[n.length-1]=n[n.length-1].join(s):n.push(s)}return n}function Lu(t,e,n){let i=n;if(i.length===0)return i;let r=0,s;do{s=!1;const a=[i[0]];for(let l=1;l<i.length;l++){let c=function(m,f){const w=new G(u.seq1Range.endExclusive,o.seq1Range.start);return t.getText(w).replace(/\s/g,"").length<=4&&(m.seq1Range.length+m.seq2Range.length>5||f.seq1Range.length+f.seq2Range.length>5)};const o=i[l],u=a[a.length-1];c(u,o)?(s=!0,a[a.length-1]=a[a.length-1].join(o)):a.push(o)}i=a}while(r++<10&&s);return i}function Cu(t,e,n){let i=n;if(i.length===0)return i;let r=0,s;do{s=!1;const l=[i[0]];for(let o=1;o<i.length;o++){let d=function(f,w){const p=new G(c.seq1Range.endExclusive,u.seq1Range.start);if(t.countLinesIn(p)>5||p.length>500)return!1;const y=t.getText(p).trim();if(y.length>20||y.split(/\r\n|\r|\n/).length>1)return!1;const v=t.countLinesIn(f.seq1Range),S=f.seq1Range.length,I=e.countLinesIn(f.seq2Range),H=f.seq2Range.length,W=t.countLinesIn(w.seq1Range),b=w.seq1Range.length,g=e.countLinesIn(w.seq2Range),_=w.seq2Range.length,N=130;function A(x){return Math.min(x,N)}return Math.pow(Math.pow(A(v*40+S),1.5)+Math.pow(A(I*40+H),1.5),1.5)+Math.pow(Math.pow(A(W*40+b),1.5)+Math.pow(A(g*40+_),1.5),1.5)>(N**1.5)**1.5*1.3};const u=i[o],c=l[l.length-1];d(c,u)?(s=!0,l[l.length-1]=l[l.length-1].join(u)):l.push(u)}i=l}while(r++<10&&s);const a=[];return Kl(i,(l,o,u)=>{let c=o;function d(y){return y.length>0&&y.trim().length<=3&&o.seq1Range.length+o.seq2Range.length>100}const m=t.extendToFullLines(o.seq1Range),f=t.getText(new G(m.start,o.seq1Range.start));d(f)&&(c=c.deltaStart(-f.length));const w=t.getText(new G(o.seq1Range.endExclusive,m.endExclusive));d(w)&&(c=c.deltaEnd(w.length));const p=ne.fromOffsetPairs(l?l.getEndExclusives():Fe.zero,u?u.getStarts():Fe.max),T=c.intersect(p);a.length>0&&T.getStarts().equals(a[a.length-1].getEndExclusives())?a[a.length-1]=a[a.length-1].join(T):a.push(T)}),a}class Us{constructor(e,n){this.trimmedHash=e,this.lines=n}getElement(e){return this.trimmedHash[e]}get length(){return this.trimmedHash.length}getBoundaryScore(e){const n=e===0?0:Ps(this.lines[e-1]),i=e===this.lines.length?0:Ps(this.lines[e]);return 1e3-(n+i)}getText(e){return this.lines.slice(e.start,e.endExclusive).join(`
23
- `)}isStronglyEqual(e,n){return this.lines[e]===this.lines[n]}}function Ps(t){let e=0;for(;e<t.length&&(t.charCodeAt(e)===32||t.charCodeAt(e)===9);)e++;return e}class Eu{constructor(){this.dynamicProgrammingDiffing=new fu,this.myersDiffingAlgorithm=new Ls}computeDiff(e,n,i){if(e.length<=1&&Ql(e,n,(b,g)=>b===g))return new nn([],[],!1);if(e.length===1&&e[0].length===0||n.length===1&&n[0].length===0)return new nn([new Pe(new J(1,e.length+1),new J(1,n.length+1),[new xe(new j(1,1,e.length,e[e.length-1].length+1),new j(1,1,n.length,n[n.length-1].length+1))])],[],!1);const r=i.maxComputationTimeMs===0?Nt.instance:new mu(i.maxComputationTimeMs),s=!i.ignoreTrimWhitespace,a=new Map;function l(b){let g=a.get(b);return g===void 0&&(g=a.size,a.set(b,g)),g}const o=e.map(b=>l(b.trim())),u=n.map(b=>l(b.trim())),c=new Us(o,e),d=new Us(u,n),m=c.length+d.length<1700?this.dynamicProgrammingDiffing.compute(c,d,r,(b,g)=>e[b]===n[g]?n[g].length===0?.1:1+Math.log(1+n[g].length):.99):this.myersDiffingAlgorithm.compute(c,d,r);let f=m.diffs,w=m.hitTimeout;f=Ns(c,d,f),f=Lu(c,d,f);const p=[],T=b=>{if(s)for(let g=0;g<b;g++){const _=y+g,N=v+g;if(e[_]!==n[N]){const A=this.refineDiff(e,n,new ne(new G(_,_+1),new G(N,N+1)),r,s,i);for(const x of A.mappings)p.push(x);A.hitTimeout&&(w=!0)}}};let y=0,v=0;for(const b of f){Vt(()=>b.seq1Range.start-y===b.seq2Range.start-v);const g=b.seq1Range.start-y;T(g),y=b.seq1Range.endExclusive,v=b.seq2Range.endExclusive;const _=this.refineDiff(e,n,b,r,s,i);_.hitTimeout&&(w=!0);for(const N of _.mappings)p.push(N)}T(e.length-y);const S=new sn(e),I=new sn(n),H=xs(p,S,I);let W=[];return i.computeMoves&&(W=this.computeMoves(H,e,n,o,u,r,s,i)),Vt(()=>{function b(_,N){if(_.lineNumber<1||_.lineNumber>N.length)return!1;const A=N[_.lineNumber-1];return!(_.column<1||_.column>A.length+1)}function g(_,N){return!(_.startLineNumber<1||_.startLineNumber>N.length+1||_.endLineNumberExclusive<1||_.endLineNumberExclusive>N.length+1)}for(const _ of H){if(!_.innerChanges)return!1;for(const N of _.innerChanges)if(!(b(N.modifiedRange.getStartPosition(),n)&&b(N.modifiedRange.getEndPosition(),n)&&b(N.originalRange.getStartPosition(),e)&&b(N.originalRange.getEndPosition(),e)))return!1;if(!g(_.modified,n)||!g(_.original,e))return!1}return!0}),new nn(H,W,w)}computeMoves(e,n,i,r,s,a,l,o){return wu(e,n,i,r,s,a).map(d=>{const m=this.refineDiff(n,i,new ne(d.original.toOffsetRange(),d.modified.toOffsetRange()),a,l,o),f=xs(m.mappings,new sn(n),new sn(i),!0);return new Jl(d,f)})}refineDiff(e,n,i,r,s,a){const o=Ru(i).toRangeMapping2(e,n),u=new on(e,o.originalRange,s),c=new on(n,o.modifiedRange,s),d=u.length+c.length<500?this.dynamicProgrammingDiffing.compute(u,c,r):this.myersDiffingAlgorithm.compute(u,c,r);let m=d.diffs;return m=Ns(u,c,m),m=Hs(u,c,m,(w,p)=>w.findWordContaining(p)),a.extendToSubwords&&(m=Hs(u,c,m,(w,p)=>w.findSubWordContaining(p),!0)),m=Su(u,c,m),m=Cu(u,c,m),{mappings:m.map(w=>new xe(u.translateRange(w.seq1Range),c.translateRange(w.seq2Range))),hitTimeout:d.hitTimeout}}}function Ru(t){return new Te(new J(t.seq1Range.start+1,t.seq1Range.endExclusive+1),new J(t.seq2Range.start+1,t.seq2Range.endExclusive+1))}const Ws={getLegacy:()=>new uu,getDefault:()=>new Eu};function $e(t,e){const n=Math.pow(10,e);return Math.round(t*n)/n}class C{constructor(e,n,i,r=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,e))|0,this.g=Math.min(255,Math.max(0,n))|0,this.b=Math.min(255,Math.max(0,i))|0,this.a=$e(Math.max(Math.min(1,r),0),3)}static equals(e,n){return e.r===n.r&&e.g===n.g&&e.b===n.b&&e.a===n.a}}class ke{constructor(e,n,i,r){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,e),0)|0,this.s=$e(Math.max(Math.min(1,n),0),3),this.l=$e(Math.max(Math.min(1,i),0),3),this.a=$e(Math.max(Math.min(1,r),0),3)}static equals(e,n){return e.h===n.h&&e.s===n.s&&e.l===n.l&&e.a===n.a}static fromRGBA(e){const n=e.r/255,i=e.g/255,r=e.b/255,s=e.a,a=Math.max(n,i,r),l=Math.min(n,i,r);let o=0,u=0;const c=(l+a)/2,d=a-l;if(d>0){switch(u=Math.min(c<=.5?d/(2*c):d/(2-2*c),1),a){case n:o=(i-r)/d+(i<r?6:0);break;case i:o=(r-n)/d+2;break;case r:o=(n-i)/d+4;break}o*=60,o=Math.round(o)}return new ke(o,u,c,s)}static _hue2rgb(e,n,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+(n-e)*6*i:i<1/2?n:i<2/3?e+(n-e)*(2/3-i)*6:e}static toRGBA(e){const n=e.h/360,{s:i,l:r,a:s}=e;let a,l,o;if(i===0)a=l=o=r;else{const u=r<.5?r*(1+i):r+i-r*i,c=2*r-u;a=ke._hue2rgb(c,u,n+1/3),l=ke._hue2rgb(c,u,n),o=ke._hue2rgb(c,u,n-1/3)}return new C(Math.round(a*255),Math.round(l*255),Math.round(o*255),s)}}class pt{constructor(e,n,i,r){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,e),0)|0,this.s=$e(Math.max(Math.min(1,n),0),3),this.v=$e(Math.max(Math.min(1,i),0),3),this.a=$e(Math.max(Math.min(1,r),0),3)}static equals(e,n){return e.h===n.h&&e.s===n.s&&e.v===n.v&&e.a===n.a}static fromRGBA(e){const n=e.r/255,i=e.g/255,r=e.b/255,s=Math.max(n,i,r),a=Math.min(n,i,r),l=s-a,o=s===0?0:l/s;let u;return l===0?u=0:s===n?u=((i-r)/l%6+6)%6:s===i?u=(r-n)/l+2:u=(n-i)/l+4,new pt(Math.round(u*60),o,s,e.a)}static toRGBA(e){const{h:n,s:i,v:r,a:s}=e,a=r*i,l=a*(1-Math.abs(n/60%2-1)),o=r-a;let[u,c,d]=[0,0,0];return n<60?(u=a,c=l):n<120?(u=l,c=a):n<180?(c=a,d=l):n<240?(c=l,d=a):n<300?(u=l,d=a):n<=360&&(u=a,d=l),u=Math.round((u+o)*255),c=Math.round((c+o)*255),d=Math.round((d+o)*255),new C(u,c,d,s)}}let ln=(Z=class{static fromHex(e){return Z.Format.CSS.parseHex(e)||Z.red}static equals(e,n){return!e&&!n?!0:!e||!n?!1:e.equals(n)}get hsla(){return this._hsla?this._hsla:ke.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:pt.fromRGBA(this.rgba)}constructor(e){if(e)if(e instanceof C)this.rgba=e;else if(e instanceof ke)this._hsla=e,this.rgba=ke.toRGBA(e);else if(e instanceof pt)this._hsva=e,this.rgba=pt.toRGBA(e);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}equals(e){return!!e&&C.equals(this.rgba,e.rgba)&&ke.equals(this.hsla,e.hsla)&&pt.equals(this.hsva,e.hsva)}getRelativeLuminance(){const e=Z._relativeLuminanceForComponent(this.rgba.r),n=Z._relativeLuminanceForComponent(this.rgba.g),i=Z._relativeLuminanceForComponent(this.rgba.b),r=.2126*e+.7152*n+.0722*i;return $e(r,4)}static _relativeLuminanceForComponent(e){const n=e/255;return n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(e){const n=this.getRelativeLuminance(),i=e.getRelativeLuminance();return n>i}isDarkerThan(e){const n=this.getRelativeLuminance(),i=e.getRelativeLuminance();return n<i}lighten(e){return new Z(new ke(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*e,this.hsla.a))}darken(e){return new Z(new ke(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*e,this.hsla.a))}transparent(e){const{r:n,g:i,b:r,a:s}=this.rgba;return new Z(new C(n,i,r,s*e))}isTransparent(){return this.rgba.a===0}isOpaque(){return this.rgba.a===1}opposite(){return new Z(new C(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}mix(e,n=.5){const i=Math.min(Math.max(n,0),1),r=this.rgba,s=e.rgba,a=r.r+(s.r-r.r)*i,l=r.g+(s.g-r.g)*i,o=r.b+(s.b-r.b)*i,u=r.a+(s.a-r.a)*i;return new Z(new C(a,l,o,u))}makeOpaque(e){if(this.isOpaque()||e.rgba.a!==1)return this;const{r:n,g:i,b:r,a:s}=this.rgba;return new Z(new C(e.rgba.r-s*(e.rgba.r-n),e.rgba.g-s*(e.rgba.g-i),e.rgba.b-s*(e.rgba.b-r),1))}toString(){return this._toString||(this._toString=Z.Format.CSS.format(this)),this._toString}toNumber32Bit(){return this._toNumber32Bit||(this._toNumber32Bit=(this.rgba.r<<24|this.rgba.g<<16|this.rgba.b<<8|this.rgba.a*255<<0)>>>0),this._toNumber32Bit}static getLighterColor(e,n,i){if(e.isLighterThan(n))return e;i=i||.5;const r=e.getRelativeLuminance(),s=n.getRelativeLuminance();return i=i*(s-r)/s,e.lighten(i)}static getDarkerColor(e,n,i){if(e.isDarkerThan(n))return e;i=i||.5;const r=e.getRelativeLuminance(),s=n.getRelativeLuminance();return i=i*(r-s)/r,e.darken(i)}},Z.white=new Z(new C(255,255,255,1)),Z.black=new Z(new C(0,0,0,1)),Z.red=new Z(new C(255,0,0,1)),Z.blue=new Z(new C(0,0,255,1)),Z.green=new Z(new C(0,255,0,1)),Z.cyan=new Z(new C(0,255,255,1)),Z.lightgrey=new Z(new C(211,211,211,1)),Z.transparent=new Z(new C(0,0,0,0)),Z);(function(t){(function(e){(function(n){function i(p){return p.rgba.a===1?`rgb(${p.rgba.r}, ${p.rgba.g}, ${p.rgba.b})`:t.Format.CSS.formatRGBA(p)}n.formatRGB=i;function r(p){return`rgba(${p.rgba.r}, ${p.rgba.g}, ${p.rgba.b}, ${+p.rgba.a.toFixed(2)})`}n.formatRGBA=r;function s(p){return p.hsla.a===1?`hsl(${p.hsla.h}, ${Math.round(p.hsla.s*100)}%, ${Math.round(p.hsla.l*100)}%)`:t.Format.CSS.formatHSLA(p)}n.formatHSL=s;function a(p){return`hsla(${p.hsla.h}, ${Math.round(p.hsla.s*100)}%, ${Math.round(p.hsla.l*100)}%, ${p.hsla.a.toFixed(2)})`}n.formatHSLA=a;function l(p){const T=p.toString(16);return T.length!==2?"0"+T:T}function o(p){return`#${l(p.rgba.r)}${l(p.rgba.g)}${l(p.rgba.b)}`}n.formatHex=o;function u(p,T=!1){return T&&p.rgba.a===1?t.Format.CSS.formatHex(p):`#${l(p.rgba.r)}${l(p.rgba.g)}${l(p.rgba.b)}${l(Math.round(p.rgba.a*255))}`}n.formatHexA=u;function c(p){return p.isOpaque()?t.Format.CSS.formatHex(p):t.Format.CSS.formatRGBA(p)}n.format=c;function d(p){if(p==="transparent")return t.transparent;if(p.startsWith("#"))return f(p);if(p.startsWith("rgba(")){const T=p.match(/rgba\((?<r>(?:\+|-)?\d+), *(?<g>(?:\+|-)?\d+), *(?<b>(?:\+|-)?\d+), *(?<a>(?:\+|-)?\d+(\.\d+)?)\)/);if(!T)throw new Error("Invalid color format "+p);const y=parseInt(T.groups?.r??"0"),v=parseInt(T.groups?.g??"0"),S=parseInt(T.groups?.b??"0"),I=parseFloat(T.groups?.a??"0");return new t(new C(y,v,S,I))}if(p.startsWith("rgb(")){const T=p.match(/rgb\((?<r>(?:\+|-)?\d+), *(?<g>(?:\+|-)?\d+), *(?<b>(?:\+|-)?\d+)\)/);if(!T)throw new Error("Invalid color format "+p);const y=parseInt(T.groups?.r??"0"),v=parseInt(T.groups?.g??"0"),S=parseInt(T.groups?.b??"0");return new t(new C(y,v,S))}return m(p)}n.parse=d;function m(p){switch(p){case"aliceblue":return new t(new C(240,248,255,1));case"antiquewhite":return new t(new C(250,235,215,1));case"aqua":return new t(new C(0,255,255,1));case"aquamarine":return new t(new C(127,255,212,1));case"azure":return new t(new C(240,255,255,1));case"beige":return new t(new C(245,245,220,1));case"bisque":return new t(new C(255,228,196,1));case"black":return new t(new C(0,0,0,1));case"blanchedalmond":return new t(new C(255,235,205,1));case"blue":return new t(new C(0,0,255,1));case"blueviolet":return new t(new C(138,43,226,1));case"brown":return new t(new C(165,42,42,1));case"burlywood":return new t(new C(222,184,135,1));case"cadetblue":return new t(new C(95,158,160,1));case"chartreuse":return new t(new C(127,255,0,1));case"chocolate":return new t(new C(210,105,30,1));case"coral":return new t(new C(255,127,80,1));case"cornflowerblue":return new t(new C(100,149,237,1));case"cornsilk":return new t(new C(255,248,220,1));case"crimson":return new t(new C(220,20,60,1));case"cyan":return new t(new C(0,255,255,1));case"darkblue":return new t(new C(0,0,139,1));case"darkcyan":return new t(new C(0,139,139,1));case"darkgoldenrod":return new t(new C(184,134,11,1));case"darkgray":return new t(new C(169,169,169,1));case"darkgreen":return new t(new C(0,100,0,1));case"darkgrey":return new t(new C(169,169,169,1));case"darkkhaki":return new t(new C(189,183,107,1));case"darkmagenta":return new t(new C(139,0,139,1));case"darkolivegreen":return new t(new C(85,107,47,1));case"darkorange":return new t(new C(255,140,0,1));case"darkorchid":return new t(new C(153,50,204,1));case"darkred":return new t(new C(139,0,0,1));case"darksalmon":return new t(new C(233,150,122,1));case"darkseagreen":return new t(new C(143,188,143,1));case"darkslateblue":return new t(new C(72,61,139,1));case"darkslategray":return new t(new C(47,79,79,1));case"darkslategrey":return new t(new C(47,79,79,1));case"darkturquoise":return new t(new C(0,206,209,1));case"darkviolet":return new t(new C(148,0,211,1));case"deeppink":return new t(new C(255,20,147,1));case"deepskyblue":return new t(new C(0,191,255,1));case"dimgray":return new t(new C(105,105,105,1));case"dimgrey":return new t(new C(105,105,105,1));case"dodgerblue":return new t(new C(30,144,255,1));case"firebrick":return new t(new C(178,34,34,1));case"floralwhite":return new t(new C(255,250,240,1));case"forestgreen":return new t(new C(34,139,34,1));case"fuchsia":return new t(new C(255,0,255,1));case"gainsboro":return new t(new C(220,220,220,1));case"ghostwhite":return new t(new C(248,248,255,1));case"gold":return new t(new C(255,215,0,1));case"goldenrod":return new t(new C(218,165,32,1));case"gray":return new t(new C(128,128,128,1));case"green":return new t(new C(0,128,0,1));case"greenyellow":return new t(new C(173,255,47,1));case"grey":return new t(new C(128,128,128,1));case"honeydew":return new t(new C(240,255,240,1));case"hotpink":return new t(new C(255,105,180,1));case"indianred":return new t(new C(205,92,92,1));case"indigo":return new t(new C(75,0,130,1));case"ivory":return new t(new C(255,255,240,1));case"khaki":return new t(new C(240,230,140,1));case"lavender":return new t(new C(230,230,250,1));case"lavenderblush":return new t(new C(255,240,245,1));case"lawngreen":return new t(new C(124,252,0,1));case"lemonchiffon":return new t(new C(255,250,205,1));case"lightblue":return new t(new C(173,216,230,1));case"lightcoral":return new t(new C(240,128,128,1));case"lightcyan":return new t(new C(224,255,255,1));case"lightgoldenrodyellow":return new t(new C(250,250,210,1));case"lightgray":return new t(new C(211,211,211,1));case"lightgreen":return new t(new C(144,238,144,1));case"lightgrey":return new t(new C(211,211,211,1));case"lightpink":return new t(new C(255,182,193,1));case"lightsalmon":return new t(new C(255,160,122,1));case"lightseagreen":return new t(new C(32,178,170,1));case"lightskyblue":return new t(new C(135,206,250,1));case"lightslategray":return new t(new C(119,136,153,1));case"lightslategrey":return new t(new C(119,136,153,1));case"lightsteelblue":return new t(new C(176,196,222,1));case"lightyellow":return new t(new C(255,255,224,1));case"lime":return new t(new C(0,255,0,1));case"limegreen":return new t(new C(50,205,50,1));case"linen":return new t(new C(250,240,230,1));case"magenta":return new t(new C(255,0,255,1));case"maroon":return new t(new C(128,0,0,1));case"mediumaquamarine":return new t(new C(102,205,170,1));case"mediumblue":return new t(new C(0,0,205,1));case"mediumorchid":return new t(new C(186,85,211,1));case"mediumpurple":return new t(new C(147,112,219,1));case"mediumseagreen":return new t(new C(60,179,113,1));case"mediumslateblue":return new t(new C(123,104,238,1));case"mediumspringgreen":return new t(new C(0,250,154,1));case"mediumturquoise":return new t(new C(72,209,204,1));case"mediumvioletred":return new t(new C(199,21,133,1));case"midnightblue":return new t(new C(25,25,112,1));case"mintcream":return new t(new C(245,255,250,1));case"mistyrose":return new t(new C(255,228,225,1));case"moccasin":return new t(new C(255,228,181,1));case"navajowhite":return new t(new C(255,222,173,1));case"navy":return new t(new C(0,0,128,1));case"oldlace":return new t(new C(253,245,230,1));case"olive":return new t(new C(128,128,0,1));case"olivedrab":return new t(new C(107,142,35,1));case"orange":return new t(new C(255,165,0,1));case"orangered":return new t(new C(255,69,0,1));case"orchid":return new t(new C(218,112,214,1));case"palegoldenrod":return new t(new C(238,232,170,1));case"palegreen":return new t(new C(152,251,152,1));case"paleturquoise":return new t(new C(175,238,238,1));case"palevioletred":return new t(new C(219,112,147,1));case"papayawhip":return new t(new C(255,239,213,1));case"peachpuff":return new t(new C(255,218,185,1));case"peru":return new t(new C(205,133,63,1));case"pink":return new t(new C(255,192,203,1));case"plum":return new t(new C(221,160,221,1));case"powderblue":return new t(new C(176,224,230,1));case"purple":return new t(new C(128,0,128,1));case"rebeccapurple":return new t(new C(102,51,153,1));case"red":return new t(new C(255,0,0,1));case"rosybrown":return new t(new C(188,143,143,1));case"royalblue":return new t(new C(65,105,225,1));case"saddlebrown":return new t(new C(139,69,19,1));case"salmon":return new t(new C(250,128,114,1));case"sandybrown":return new t(new C(244,164,96,1));case"seagreen":return new t(new C(46,139,87,1));case"seashell":return new t(new C(255,245,238,1));case"sienna":return new t(new C(160,82,45,1));case"silver":return new t(new C(192,192,192,1));case"skyblue":return new t(new C(135,206,235,1));case"slateblue":return new t(new C(106,90,205,1));case"slategray":return new t(new C(112,128,144,1));case"slategrey":return new t(new C(112,128,144,1));case"snow":return new t(new C(255,250,250,1));case"springgreen":return new t(new C(0,255,127,1));case"steelblue":return new t(new C(70,130,180,1));case"tan":return new t(new C(210,180,140,1));case"teal":return new t(new C(0,128,128,1));case"thistle":return new t(new C(216,191,216,1));case"tomato":return new t(new C(255,99,71,1));case"turquoise":return new t(new C(64,224,208,1));case"violet":return new t(new C(238,130,238,1));case"wheat":return new t(new C(245,222,179,1));case"white":return new t(new C(255,255,255,1));case"whitesmoke":return new t(new C(245,245,245,1));case"yellow":return new t(new C(255,255,0,1));case"yellowgreen":return new t(new C(154,205,50,1));default:return null}}function f(p){const T=p.length;if(T===0||p.charCodeAt(0)!==35)return null;if(T===7){const y=16*w(p.charCodeAt(1))+w(p.charCodeAt(2)),v=16*w(p.charCodeAt(3))+w(p.charCodeAt(4)),S=16*w(p.charCodeAt(5))+w(p.charCodeAt(6));return new t(new C(y,v,S,1))}if(T===9){const y=16*w(p.charCodeAt(1))+w(p.charCodeAt(2)),v=16*w(p.charCodeAt(3))+w(p.charCodeAt(4)),S=16*w(p.charCodeAt(5))+w(p.charCodeAt(6)),I=16*w(p.charCodeAt(7))+w(p.charCodeAt(8));return new t(new C(y,v,S,I/255))}if(T===4){const y=w(p.charCodeAt(1)),v=w(p.charCodeAt(2)),S=w(p.charCodeAt(3));return new t(new C(16*y+y,16*v+v,16*S+S))}if(T===5){const y=w(p.charCodeAt(1)),v=w(p.charCodeAt(2)),S=w(p.charCodeAt(3)),I=w(p.charCodeAt(4));return new t(new C(16*y+y,16*v+v,16*S+S,(16*I+I)/255))}return null}n.parseHex=f;function w(p){switch(p){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:return 10;case 65:return 10;case 98:return 11;case 66:return 11;case 99:return 12;case 67:return 12;case 100:return 13;case 68:return 13;case 101:return 14;case 69:return 14;case 102:return 15;case 70:return 15}return 0}})(e.CSS||(e.CSS={}))})(t.Format||(t.Format={}))})(ln||(ln={}));function Fs(t){const e=[];for(const n of t){const i=Number(n);(i||i===0&&n.replace(/\s/g,"")!=="")&&e.push(i)}return e}function ci(t,e,n,i){return{red:t/255,blue:n/255,green:e/255,alpha:i}}function It(t,e){const n=e.index,i=e[0].length;if(n===void 0)return;const r=t.positionAt(n);return{startLineNumber:r.lineNumber,startColumn:r.column,endLineNumber:r.lineNumber,endColumn:r.column+i}}function Du(t,e){if(!t)return;const n=ln.Format.CSS.parseHex(e);if(n)return{range:t,color:ci(n.rgba.r,n.rgba.g,n.rgba.b,n.rgba.a)}}function Bs(t,e,n){if(!t||e.length!==1)return;const r=e[0].values(),s=Fs(r);return{range:t,color:ci(s[0],s[1],s[2],n?s[3]:1)}}function qs(t,e,n){if(!t||e.length!==1)return;const r=e[0].values(),s=Fs(r),a=new ln(new ke(s[0],s[1]/100,s[2]/100,n?s[3]:1));return{range:t,color:ci(a.rgba.r,a.rgba.g,a.rgba.b,a.rgba.a)}}function zt(t,e){return typeof t=="string"?[...t.matchAll(e)]:t.findMatches(e)}function Mu(t){const e=[],n=new RegExp(`\\b(rgb|rgba|hsl|hsla)(\\([0-9\\s,.\\%\\/]*\\))|^(#)([A-Fa-f0-9]{3})\\b|^(#)([A-Fa-f0-9]{4})\\b|^(#)([A-Fa-f0-9]{6})\\b|^(#)([A-Fa-f0-9]{8})\\b|(?<=['"\\s])(#)([A-Fa-f0-9]{3})\\b|(?<=['"\\s])(#)([A-Fa-f0-9]{4})\\b|(?<=['"\\s])(#)([A-Fa-f0-9]{6})\\b|(?<=['"\\s])(#)([A-Fa-f0-9]{8})\\b`,"gm"),i=zt(t,n);if(i.length>0)for(const r of i){const s=r.filter(u=>u!==void 0),a=s[1],l=s[2];if(!l)continue;let o;if(a==="rgb"){const u=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*[\s,]\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*[\s,]\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;o=Bs(It(t,r),zt(l,u),!1)}else if(a==="rgba"){const u=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*[\s,]\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*[\s,]\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*(?:[\s,]|[\s]*\/)\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;o=Bs(It(t,r),zt(l,u),!0)}else if(a==="hsl"){const u=/^\(\s*((?:360(?:\.0+)?|(?:36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])(?:\.\d+)?))\s*[\s,]\s*(100(?:\.0+)?|\d{1,2}[.]\d*|\d{1,2})%\s*[\s,]\s*(100(?:\.0+)?|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;o=qs(It(t,r),zt(l,u),!1)}else if(a==="hsla"){const u=/^\(\s*((?:360(?:\.0+)?|(?:36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])(?:\.\d+)?))\s*[\s,]\s*(100(?:\.0+)?|\d{1,2}[.]\d*|\d{1,2})%\s*[\s,]\s*(100(?:\.0+)?|\d{1,2}[.]\d*|\d{1,2})%\s*(?:[\s,]|[\s]*\/)\s*(0[.][0-9]+|[.][0-9]+|[01][.]0*|[01])\s*\)$/gm;o=qs(It(t,r),zt(l,u),!0)}else a==="#"&&(o=Du(It(t,r),a+l));o&&e.push(o)}return e}function Nu(t){return!t||typeof t.getValue!="function"||typeof t.positionAt!="function"?[]:Mu(t)}const Iu=/^-+|-+$/g,Os=100,zu=5;function Hu(t,e){let n=[];if(e.findRegionSectionHeaders&&e.foldingRules?.markers){const i=Uu(t,e);n=n.concat(i)}if(e.findMarkSectionHeaders){const i=Pu(t,e);n=n.concat(i)}return n}function Uu(t,e){const n=[],i=t.getLineCount();for(let r=1;r<=i;r++){const s=t.getLineContent(r),a=s.match(e.foldingRules.markers.start);if(a){const l={startLineNumber:r,startColumn:a[0].length+1,endLineNumber:r,endColumn:s.length+1};if(l.endColumn>l.startColumn){const o={range:l,...Wu(s.substring(a[0].length)),shouldBeInComments:!1};(o.text||o.hasSeparatorLine)&&n.push(o)}}}return n}function Pu(t,e){const n=[],i=t.getLineCount();if(!e.markSectionHeaderRegex||e.markSectionHeaderRegex.trim()==="")return n;const r=Wl(e.markSectionHeaderRegex),s=new RegExp(e.markSectionHeaderRegex,`gdm${r?"s":""}`);if(Io(s))return n;for(let a=1;a<=i;a+=Os-zu){const l=Math.min(a+Os-1,i),o=[];for(let d=a;d<=l;d++)o.push(t.getLineContent(d));const u=o.join(`
24
- `);s.lastIndex=0;let c;for(;(c=s.exec(u))!==null;){const d=u.substring(0,c.index),m=(d.match(/\n/g)||[]).length,f=a+m,w=c[0].split(`
20
+ `),r=Wo(n,i),s=Dt.ofText(n.substring(0,n.length-r)).addToPosition(this.range.getStartPosition()),a=i.substring(0,i.length-r),l=j.fromPositions(this.range.getStartPosition(),s);return new je(l,a)}toString(){const e=this.range.getStartPosition(),n=this.range.getEndPosition();return`(${e.lineNumber},${e.column} -> ${n.lineNumber},${n.column}): "${this.text}"`}}class Te{static inverse(e,n,i){const r=[];let s=1,a=1;for(const o of e){const u=new Te(new J(s,o.original.startLineNumber),new J(a,o.modified.startLineNumber));u.modified.isEmpty||r.push(u),s=o.original.endLineNumberExclusive,a=o.modified.endLineNumberExclusive}const l=new Te(new J(s,n+1),new J(a,i+1));return l.modified.isEmpty||r.push(l),r}static clip(e,n,i){const r=[];for(const s of e){const a=s.original.intersect(n),l=s.modified.intersect(i);a&&!a.isEmpty&&l&&!l.isEmpty&&r.push(new Te(a,l))}return r}constructor(e,n){this.original=e,this.modified=n}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new Te(this.modified,this.original)}join(e){return new Te(this.original.join(e.original),this.modified.join(e.modified))}toRangeMapping(){const e=this.original.toInclusiveRange(),n=this.modified.toInclusiveRange();if(e&&n)return new xe(e,n);if(this.original.startLineNumber===1||this.modified.startLineNumber===1){if(!(this.modified.startLineNumber===1&&this.original.startLineNumber===1))throw new ue("not a valid diff");return new xe(new j(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new j(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1))}else return new xe(new j(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),new j(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER))}toRangeMapping2(e,n){if(Ts(this.original.endLineNumberExclusive,e)&&Ts(this.modified.endLineNumberExclusive,n))return new xe(new j(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new j(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1));if(!this.original.isEmpty&&!this.modified.isEmpty)return new xe(j.fromPositions(new K(this.original.startLineNumber,1),dt(new K(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),e)),j.fromPositions(new K(this.modified.startLineNumber,1),dt(new K(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),n)));if(this.original.startLineNumber>1&&this.modified.startLineNumber>1)return new xe(j.fromPositions(dt(new K(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER),e),dt(new K(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),e)),j.fromPositions(dt(new K(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER),n),dt(new K(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),n)));throw new ue}}function dt(t,e){if(t.lineNumber<1)return new K(1,1);if(t.lineNumber>e.length)return new K(e.length,e[e.length-1].length+1);const n=e[t.lineNumber-1];return t.column>n.length+1?new K(t.lineNumber,n.length+1):t}function Ts(t,e){return t>=1&&t<=e.length}class Pe extends Te{static fromRangeMappings(e){const n=J.join(e.map(r=>J.fromRangeInclusive(r.originalRange))),i=J.join(e.map(r=>J.fromRangeInclusive(r.modifiedRange)));return new Pe(n,i,e)}constructor(e,n,i){super(e,n),this.innerChanges=i}flip(){return new Pe(this.modified,this.original,this.innerChanges?.map(e=>e.flip()))}withInnerChangesFromLineRanges(){return new Pe(this.original,this.modified,[this.toRangeMapping()])}}class xe{static fromEdit(e){const n=e.getNewRanges();return e.replacements.map((r,s)=>new xe(r.range,n[s]))}static assertSorted(e){for(let n=1;n<e.length;n++){const i=e[n-1],r=e[n];if(!(i.originalRange.getEndPosition().isBeforeOrEqual(r.originalRange.getStartPosition())&&i.modifiedRange.getEndPosition().isBeforeOrEqual(r.modifiedRange.getStartPosition())))throw new ue("Range mappings must be sorted")}}constructor(e,n){this.originalRange=e,this.modifiedRange=n}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new xe(this.modifiedRange,this.originalRange)}toTextEdit(e){const n=e.getValueOfRange(this.modifiedRange);return new je(this.originalRange,n)}}function xs(t,e,n,i=!1){const r=[];for(const s of Yl(t.map(a=>ou(a,e,n)),(a,l)=>a.original.intersectsOrTouches(l.original)||a.modified.intersectsOrTouches(l.modified))){const a=s[0],l=s[s.length-1];r.push(new Pe(a.original.join(l.original),a.modified.join(l.modified),s.map(o=>o.innerChanges[0])))}return Vt(()=>!i&&r.length>0&&(r[0].modified.startLineNumber!==r[0].original.startLineNumber||n.length.lineCount-r[r.length-1].modified.endLineNumberExclusive!==e.length.lineCount-r[r.length-1].original.endLineNumberExclusive)?!1:Ui(r,(s,a)=>a.original.startLineNumber-s.original.endLineNumberExclusive===a.modified.startLineNumber-s.modified.endLineNumberExclusive&&s.original.endLineNumberExclusive<a.original.startLineNumber&&s.modified.endLineNumberExclusive<a.modified.startLineNumber)),r}function ou(t,e,n){let i=0,r=0;t.modifiedRange.endColumn===1&&t.originalRange.endColumn===1&&t.originalRange.startLineNumber+i<=t.originalRange.endLineNumber&&t.modifiedRange.startLineNumber+i<=t.modifiedRange.endLineNumber&&(r=-1),t.modifiedRange.startColumn-1>=n.getLineLength(t.modifiedRange.startLineNumber)&&t.originalRange.startColumn-1>=e.getLineLength(t.originalRange.startLineNumber)&&t.originalRange.startLineNumber<=t.originalRange.endLineNumber+r&&t.modifiedRange.startLineNumber<=t.modifiedRange.endLineNumber+r&&(i=1);const s=new J(t.originalRange.startLineNumber+i,t.originalRange.endLineNumber+1+r),a=new J(t.modifiedRange.startLineNumber+i,t.modifiedRange.endLineNumber+1+r);return new Pe(s,a,[t])}const lu=3;class uu{computeDiff(e,n,i){const s=new du(e,n,{maxComputationTime:i.maxComputationTimeMs,shouldIgnoreTrimWhitespace:i.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),a=[];let l=null;for(const o of s.changes){let u;o.originalEndLineNumber===0?u=new J(o.originalStartLineNumber+1,o.originalStartLineNumber+1):u=new J(o.originalStartLineNumber,o.originalEndLineNumber+1);let h;o.modifiedEndLineNumber===0?h=new J(o.modifiedStartLineNumber+1,o.modifiedStartLineNumber+1):h=new J(o.modifiedStartLineNumber,o.modifiedEndLineNumber+1);let d=new Pe(u,h,o.charChanges?.map(m=>new xe(new j(m.originalStartLineNumber,m.originalStartColumn,m.originalEndLineNumber,m.originalEndColumn),new j(m.modifiedStartLineNumber,m.modifiedStartColumn,m.modifiedEndLineNumber,m.modifiedEndColumn))));l&&(l.modified.endLineNumberExclusive===d.modified.startLineNumber||l.original.endLineNumberExclusive===d.original.startLineNumber)&&(d=new Pe(l.original.join(d.original),l.modified.join(d.modified),l.innerChanges&&d.innerChanges?l.innerChanges.concat(d.innerChanges):void 0),a.pop()),a.push(d),l=d}return Vt(()=>Ui(a,(o,u)=>u.original.startLineNumber-o.original.endLineNumberExclusive===u.modified.startLineNumber-o.modified.endLineNumberExclusive&&o.original.endLineNumberExclusive<u.original.startLineNumber&&o.modified.endLineNumberExclusive<u.modified.startLineNumber)),new nn(a,[],s.quitEarly)}}function ks(t,e,n,i){return new Ve(t,e,n).ComputeDiff(i)}let Ss=class{constructor(e){const n=[],i=[];for(let r=0,s=e.length;r<s;r++)n[r]=ai(e[r],1),i[r]=oi(e[r],1);this.lines=e,this._startColumns=n,this._endColumns=i}getElements(){const e=[];for(let n=0,i=this.lines.length;n<i;n++)e[n]=this.lines[n].substring(this._startColumns[n]-1,this._endColumns[n]-1);return e}getStrictElement(e){return this.lines[e]}getStartLineNumber(e){return e+1}getEndLineNumber(e){return e+1}createCharSequence(e,n,i){const r=[],s=[],a=[];let l=0;for(let o=n;o<=i;o++){const u=this.lines[o],h=e?this._startColumns[o]:1,d=e?this._endColumns[o]:u.length+1;for(let m=h;m<d;m++)r[l]=u.charCodeAt(m-1),s[l]=o+1,a[l]=m,l++;!e&&o<i&&(r[l]=10,s[l]=o+1,a[l]=u.length+1,l++)}return new cu(r,s,a)}};class cu{constructor(e,n,i){this._charCodes=e,this._lineNumbers=n,this._columns=i}toString(){return"["+this._charCodes.map((e,n)=>(e===10?"\\n":String.fromCharCode(e))+`-(${this._lineNumbers[n]},${this._columns[n]})`).join(", ")+"]"}_assertIndex(e,n){if(e<0||e>=n.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(e){return e>0&&e===this._lineNumbers.length?this.getEndLineNumber(e-1):(this._assertIndex(e,this._lineNumbers),this._lineNumbers[e])}getEndLineNumber(e){return e===-1?this.getStartLineNumber(e+1):(this._assertIndex(e,this._lineNumbers),this._charCodes[e]===10?this._lineNumbers[e]+1:this._lineNumbers[e])}getStartColumn(e){return e>0&&e===this._columns.length?this.getEndColumn(e-1):(this._assertIndex(e,this._columns),this._columns[e])}getEndColumn(e){return e===-1?this.getStartColumn(e+1):(this._assertIndex(e,this._columns),this._charCodes[e]===10?1:this._columns[e]+1)}}class mt{constructor(e,n,i,r,s,a,l,o){this.originalStartLineNumber=e,this.originalStartColumn=n,this.originalEndLineNumber=i,this.originalEndColumn=r,this.modifiedStartLineNumber=s,this.modifiedStartColumn=a,this.modifiedEndLineNumber=l,this.modifiedEndColumn=o}static createFromDiffChange(e,n,i){const r=n.getStartLineNumber(e.originalStart),s=n.getStartColumn(e.originalStart),a=n.getEndLineNumber(e.originalStart+e.originalLength-1),l=n.getEndColumn(e.originalStart+e.originalLength-1),o=i.getStartLineNumber(e.modifiedStart),u=i.getStartColumn(e.modifiedStart),h=i.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),d=i.getEndColumn(e.modifiedStart+e.modifiedLength-1);return new mt(r,s,a,l,o,u,h,d)}}function hu(t){if(t.length<=1)return t;const e=[t[0]];let n=e[0];for(let i=1,r=t.length;i<r;i++){const s=t[i],a=s.originalStart-(n.originalStart+n.originalLength),l=s.modifiedStart-(n.modifiedStart+n.modifiedLength);Math.min(a,l)<lu?(n.originalLength=s.originalStart+s.originalLength-n.originalStart,n.modifiedLength=s.modifiedStart+s.modifiedLength-n.modifiedStart):(e.push(s),n=s)}return e}class Mt{constructor(e,n,i,r,s){this.originalStartLineNumber=e,this.originalEndLineNumber=n,this.modifiedStartLineNumber=i,this.modifiedEndLineNumber=r,this.charChanges=s}static createFromDiffResult(e,n,i,r,s,a,l){let o,u,h,d,m;if(n.originalLength===0?(o=i.getStartLineNumber(n.originalStart)-1,u=0):(o=i.getStartLineNumber(n.originalStart),u=i.getEndLineNumber(n.originalStart+n.originalLength-1)),n.modifiedLength===0?(h=r.getStartLineNumber(n.modifiedStart)-1,d=0):(h=r.getStartLineNumber(n.modifiedStart),d=r.getEndLineNumber(n.modifiedStart+n.modifiedLength-1)),a&&n.originalLength>0&&n.originalLength<20&&n.modifiedLength>0&&n.modifiedLength<20&&s()){const f=i.createCharSequence(e,n.originalStart,n.originalStart+n.originalLength-1),w=r.createCharSequence(e,n.modifiedStart,n.modifiedStart+n.modifiedLength-1);if(f.getElements().length>0&&w.getElements().length>0){let p=ks(f,w,s,!0).changes;l&&(p=hu(p)),m=[];for(let T=0,y=p.length;T<y;T++)m.push(mt.createFromDiffChange(p[T],f,w))}}return new Mt(o,u,h,d,m)}}class du{constructor(e,n,i){this.shouldComputeCharChanges=i.shouldComputeCharChanges,this.shouldPostProcessCharChanges=i.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=i.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=i.shouldMakePrettyDiff,this.originalLines=e,this.modifiedLines=n,this.original=new Ss(e),this.modified=new Ss(n),this.continueLineDiff=As(i.maxComputationTime),this.continueCharDiff=As(i.maxComputationTime===0?0:Math.min(i.maxComputationTime,5e3))}computeDiff(){if(this.original.lines.length===1&&this.original.lines[0].length===0)return this.modified.lines.length===1&&this.modified.lines[0].length===0?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:void 0}]};if(this.modified.lines.length===1&&this.modified.lines[0].length===0)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:void 0}]};const e=ks(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),n=e.changes,i=e.quitEarly;if(this.shouldIgnoreTrimWhitespace){const l=[];for(let o=0,u=n.length;o<u;o++)l.push(Mt.createFromDiffResult(this.shouldIgnoreTrimWhitespace,n[o],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:i,changes:l}}const r=[];let s=0,a=0;for(let l=-1,o=n.length;l<o;l++){const u=l+1<o?n[l+1]:null,h=u?u.originalStart:this.originalLines.length,d=u?u.modifiedStart:this.modifiedLines.length;for(;s<h&&a<d;){const m=this.originalLines[s],f=this.modifiedLines[a];if(m!==f){{let w=ai(m,1),p=ai(f,1);for(;w>1&&p>1;){const T=m.charCodeAt(w-2),y=f.charCodeAt(p-2);if(T!==y)break;w--,p--}(w>1||p>1)&&this._pushTrimWhitespaceCharChange(r,s+1,1,w,a+1,1,p)}{let w=oi(m,1),p=oi(f,1);const T=m.length+1,y=f.length+1;for(;w<T&&p<y;){const v=m.charCodeAt(w-1),S=m.charCodeAt(p-1);if(v!==S)break;w++,p++}(w<T||p<y)&&this._pushTrimWhitespaceCharChange(r,s+1,w,T,a+1,p,y)}}s++,a++}u&&(r.push(Mt.createFromDiffResult(this.shouldIgnoreTrimWhitespace,u,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),s+=u.originalLength,a+=u.modifiedLength)}return{quitEarly:i,changes:r}}_pushTrimWhitespaceCharChange(e,n,i,r,s,a,l){if(this._mergeTrimWhitespaceCharChange(e,n,i,r,s,a,l))return;let o;this.shouldComputeCharChanges&&(o=[new mt(n,i,n,r,s,a,s,l)]),e.push(new Mt(n,n,s,s,o))}_mergeTrimWhitespaceCharChange(e,n,i,r,s,a,l){const o=e.length;if(o===0)return!1;const u=e[o-1];return u.originalEndLineNumber===0||u.modifiedEndLineNumber===0?!1:u.originalEndLineNumber===n&&u.modifiedEndLineNumber===s?(this.shouldComputeCharChanges&&u.charChanges&&u.charChanges.push(new mt(n,i,n,r,s,a,s,l)),!0):u.originalEndLineNumber+1===n&&u.modifiedEndLineNumber+1===s?(u.originalEndLineNumber=n,u.modifiedEndLineNumber=s,this.shouldComputeCharChanges&&u.charChanges&&u.charChanges.push(new mt(n,i,n,r,s,a,s,l)),!0):!1}}function ai(t,e){const n=Ho(t);return n===-1?e:n+1}function oi(t,e){const n=Uo(t);return n===-1?e:n+2}function As(t){if(t===0)return()=>!0;const e=Date.now();return()=>Date.now()-e<t}class We{static trivial(e,n){return new We([new ne(G.ofLength(e.length),G.ofLength(n.length))],!1)}static trivialTimedOut(e,n){return new We([new ne(G.ofLength(e.length),G.ofLength(n.length))],!0)}constructor(e,n){this.diffs=e,this.hitTimeout=n}}class ne{static invert(e,n){const i=[];return Zl(e,(r,s)=>{i.push(ne.fromOffsetPairs(r?r.getEndExclusives():Fe.zero,s?s.getStarts():new Fe(n,(r?r.seq2Range.endExclusive-r.seq1Range.endExclusive:0)+n)))}),i}static fromOffsetPairs(e,n){return new ne(new G(e.offset1,n.offset1),new G(e.offset2,n.offset2))}static assertSorted(e){let n;for(const i of e){if(n&&!(n.seq1Range.endExclusive<=i.seq1Range.start&&n.seq2Range.endExclusive<=i.seq2Range.start))throw new ue("Sequence diffs must be sorted");n=i}}constructor(e,n){this.seq1Range=e,this.seq2Range=n}swap(){return new ne(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(e){return new ne(this.seq1Range.join(e.seq1Range),this.seq2Range.join(e.seq2Range))}delta(e){return e===0?this:new ne(this.seq1Range.delta(e),this.seq2Range.delta(e))}deltaStart(e){return e===0?this:new ne(this.seq1Range.deltaStart(e),this.seq2Range.deltaStart(e))}deltaEnd(e){return e===0?this:new ne(this.seq1Range.deltaEnd(e),this.seq2Range.deltaEnd(e))}intersect(e){const n=this.seq1Range.intersect(e.seq1Range),i=this.seq2Range.intersect(e.seq2Range);if(!(!n||!i))return new ne(n,i)}getStarts(){return new Fe(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new Fe(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}const Ke=class Ke{constructor(e,n){this.offset1=e,this.offset2=n}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(e){return e===0?this:new Ke(this.offset1+e,this.offset2+e)}equals(e){return this.offset1===e.offset1&&this.offset2===e.offset2}};Ke.zero=new Ke(0,0),Ke.max=new Ke(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER);let Fe=Ke;const kn=class kn{isValid(){return!0}};kn.instance=new kn;let Nt=kn;class mu{constructor(e){if(this.timeout=e,this.startTime=Date.now(),this.valid=!0,e<=0)throw new ue("timeout must be positive")}isValid(){return!(Date.now()-this.startTime<this.timeout)&&this.valid&&(this.valid=!1),this.valid}}class li{constructor(e,n){this.width=e,this.height=n,this.array=[],this.array=new Array(e*n)}get(e,n){return this.array[e+n*this.width]}set(e,n,i){this.array[e+n*this.width]=i}}function ui(t){return t===32||t===9}const Bt=class Bt{static getKey(e){let n=this.chrKeys.get(e);return n===void 0&&(n=this.chrKeys.size,this.chrKeys.set(e,n)),n}constructor(e,n,i){this.range=e,this.lines=n,this.source=i,this.histogram=[];let r=0;for(let s=e.startLineNumber-1;s<e.endLineNumberExclusive-1;s++){const a=n[s];for(let o=0;o<a.length;o++){r++;const u=a[o],h=Bt.getKey(u);this.histogram[h]=(this.histogram[h]||0)+1}r++;const l=Bt.getKey(`
21
+ `);this.histogram[l]=(this.histogram[l]||0)+1}this.totalCount=r}computeSimilarity(e){let n=0;const i=Math.max(this.histogram.length,e.histogram.length);for(let r=0;r<i;r++)n+=Math.abs((this.histogram[r]??0)-(e.histogram[r]??0));return 1-n/(this.totalCount+e.totalCount)}};Bt.chrKeys=new Map;let an=Bt;class fu{compute(e,n,i=Nt.instance,r){if(e.length===0||n.length===0)return We.trivial(e,n);const s=new li(e.length,n.length),a=new li(e.length,n.length),l=new li(e.length,n.length);for(let w=0;w<e.length;w++)for(let p=0;p<n.length;p++){if(!i.isValid())return We.trivialTimedOut(e,n);const T=w===0?0:s.get(w-1,p),y=p===0?0:s.get(w,p-1);let v;e.getElement(w)===n.getElement(p)?(w===0||p===0?v=0:v=s.get(w-1,p-1),w>0&&p>0&&a.get(w-1,p-1)===3&&(v+=l.get(w-1,p-1)),v+=r?r(w,p):1):v=-1;const S=Math.max(T,y,v);if(S===v){const I=w>0&&p>0?l.get(w-1,p-1):0;l.set(w,p,I+1),a.set(w,p,3)}else S===T?(l.set(w,p,0),a.set(w,p,1)):S===y&&(l.set(w,p,0),a.set(w,p,2));s.set(w,p,S)}const o=[];let u=e.length,h=n.length;function d(w,p){(w+1!==u||p+1!==h)&&o.push(new ne(new G(w+1,u),new G(p+1,h))),u=w,h=p}let m=e.length-1,f=n.length-1;for(;m>=0&&f>=0;)a.get(m,f)===3?(d(m,f),m--,f--):a.get(m,f)===1?m--:f--;return d(-1,-1),o.reverse(),new We(o,!1)}}class Ls{compute(e,n,i=Nt.instance){if(e.length===0||n.length===0)return We.trivial(e,n);const r=e,s=n;function a(p,T){for(;p<r.length&&T<s.length&&r.getElement(p)===s.getElement(T);)p++,T++;return p}let l=0;const o=new pu;o.set(0,a(0,0));const u=new gu;u.set(0,o.get(0)===0?null:new Cs(null,0,0,o.get(0)));let h=0;e:for(;;){if(l++,!i.isValid())return We.trivialTimedOut(r,s);const p=-Math.min(l,s.length+l%2),T=Math.min(l,r.length+l%2);for(h=p;h<=T;h+=2){const y=h===T?-1:o.get(h+1),v=h===p?-1:o.get(h-1)+1,S=Math.min(Math.max(y,v),r.length),I=S-h;if(S>r.length||I>s.length)continue;const H=a(S,I);o.set(h,H);const W=S===y?u.get(h+1):u.get(h-1);if(u.set(h,H!==S?new Cs(W,S,I,H-S):W),o.get(h)===r.length&&o.get(h)-h===s.length)break e}}let d=u.get(h);const m=[];let f=r.length,w=s.length;for(;;){const p=d?d.x+d.length:0,T=d?d.y+d.length:0;if((p!==f||T!==w)&&m.push(new ne(new G(p,f),new G(T,w))),!d)break;f=d.x,w=d.y,d=d.prev}return m.reverse(),new We(m,!1)}}class Cs{constructor(e,n,i,r){this.prev=e,this.x=n,this.y=i,this.length=r}}class pu{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,n){if(e<0){if(e=-e-1,e>=this.negativeArr.length){const i=this.negativeArr;this.negativeArr=new Int32Array(i.length*2),this.negativeArr.set(i)}this.negativeArr[e]=n}else{if(e>=this.positiveArr.length){const i=this.positiveArr;this.positiveArr=new Int32Array(i.length*2),this.positiveArr.set(i)}this.positiveArr[e]=n}}}class gu{constructor(){this.positiveArr=[],this.negativeArr=[]}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,n){e<0?(e=-e-1,this.negativeArr[e]=n):this.positiveArr[e]=n}}class on{constructor(e,n,i){this.lines=e,this.range=n,this.considerWhitespaceChanges=i,this.elements=[],this.firstElementOffsetByLineIdx=[],this.lineStartOffsets=[],this.trimmedWsLengthsByLineIdx=[],this.firstElementOffsetByLineIdx.push(0);for(let r=this.range.startLineNumber;r<=this.range.endLineNumber;r++){let s=e[r-1],a=0;r===this.range.startLineNumber&&this.range.startColumn>1&&(a=this.range.startColumn-1,s=s.substring(a)),this.lineStartOffsets.push(a);let l=0;if(!i){const u=s.trimStart();l=s.length-u.length,s=u.trimEnd()}this.trimmedWsLengthsByLineIdx.push(l);const o=r===this.range.endLineNumber?Math.min(this.range.endColumn-1-a-l,s.length):s.length;for(let u=0;u<o;u++)this.elements.push(s.charCodeAt(u));r<this.range.endLineNumber&&(this.elements.push(10),this.firstElementOffsetByLineIdx.push(this.elements.length))}}toString(){return`Slice: "${this.text}"`}get text(){return this.getText(new G(0,this.length))}getText(e){return this.elements.slice(e.start,e.endExclusive).map(n=>String.fromCharCode(n)).join("")}getElement(e){return this.elements[e]}get length(){return this.elements.length}getBoundaryScore(e){const n=Ds(e>0?this.elements[e-1]:-1),i=Ds(e<this.elements.length?this.elements[e]:-1);if(n===7&&i===8)return 0;if(n===8)return 150;let r=0;return n!==i&&(r+=10,n===0&&i===1&&(r+=1)),r+=Rs(n),r+=Rs(i),r}translateOffset(e,n="right"){const i=ct(this.firstElementOffsetByLineIdx,s=>s<=e),r=e-this.firstElementOffsetByLineIdx[i];return new K(this.range.startLineNumber+i,1+this.lineStartOffsets[i]+r+(r===0&&n==="left"?0:this.trimmedWsLengthsByLineIdx[i]))}translateRange(e){const n=this.translateOffset(e.start,"right"),i=this.translateOffset(e.endExclusive,"left");return i.isBefore(n)?j.fromPositions(i,i):j.fromPositions(n,i)}findWordContaining(e){if(e<0||e>=this.elements.length||!ft(this.elements[e]))return;let n=e;for(;n>0&&ft(this.elements[n-1]);)n--;let i=e;for(;i<this.elements.length&&ft(this.elements[i]);)i++;return new G(n,i)}findSubWordContaining(e){if(e<0||e>=this.elements.length||!ft(this.elements[e]))return;let n=e;for(;n>0&&ft(this.elements[n-1])&&!Es(this.elements[n]);)n--;let i=e;for(;i<this.elements.length&&ft(this.elements[i])&&!Es(this.elements[i]);)i++;return new G(n,i)}countLinesIn(e){return this.translateOffset(e.endExclusive).lineNumber-this.translateOffset(e.start).lineNumber}isStronglyEqual(e,n){return this.elements[e]===this.elements[n]}extendToFullLines(e){const n=ut(this.firstElementOffsetByLineIdx,r=>r<=e.start)??0,i=nu(this.firstElementOffsetByLineIdx,r=>e.endExclusive<=r)??this.elements.length;return new G(n,i)}}function ft(t){return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57}function Es(t){return t>=65&&t<=90}const bu={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function Rs(t){return bu[t]}function Ds(t){return t===10?8:t===13?7:ui(t)?6:t>=97&&t<=122?0:t>=65&&t<=90?1:t>=48&&t<=57?2:t===-1?3:t===44||t===59?5:4}function wu(t,e,n,i,r,s){let{moves:a,excludedChanges:l}=vu(t,e,n,s);if(!s.isValid())return[];const o=t.filter(h=>!l.has(h)),u=yu(o,i,r,e,n,s);return eu(a,u),a=Tu(a),a=a.filter(h=>{const d=h.original.toOffsetRange().slice(e).map(f=>f.trim());return d.join(`
22
+ `).length>=15&&_u(d,f=>f.length>=2)>=2}),a=xu(t,a),a}function _u(t,e){let n=0;for(const i of t)e(i)&&n++;return n}function vu(t,e,n,i){const r=[],s=t.filter(o=>o.modified.isEmpty&&o.original.length>=3).map(o=>new an(o.original,e,o)),a=new Set(t.filter(o=>o.original.isEmpty&&o.modified.length>=3).map(o=>new an(o.modified,n,o))),l=new Set;for(const o of s){let u=-1,h;for(const d of a){const m=o.computeSimilarity(d);m>u&&(u=m,h=d)}if(u>.9&&h&&(a.delete(h),r.push(new Te(o.range,h.range)),l.add(o.source),l.add(h.source)),!i.isValid())return{moves:r,excludedChanges:l}}return{moves:r,excludedChanges:l}}function yu(t,e,n,i,r,s){const a=[],l=new Pl;for(const m of t)for(let f=m.original.startLineNumber;f<m.original.endLineNumberExclusive-2;f++){const w=`${e[f-1]}:${e[f+1-1]}:${e[f+2-1]}`;l.add(w,{range:new J(f,f+3)})}const o=[];t.sort(Et(m=>m.modified.startLineNumber,Rt));for(const m of t){let f=[];for(let w=m.modified.startLineNumber;w<m.modified.endLineNumberExclusive-2;w++){const p=`${n[w-1]}:${n[w+1-1]}:${n[w+2-1]}`,T=new J(w,w+3),y=[];l.forEach(p,({range:v})=>{for(const I of f)if(I.originalLineRange.endLineNumberExclusive+1===v.endLineNumberExclusive&&I.modifiedLineRange.endLineNumberExclusive+1===T.endLineNumberExclusive){I.originalLineRange=new J(I.originalLineRange.startLineNumber,v.endLineNumberExclusive),I.modifiedLineRange=new J(I.modifiedLineRange.startLineNumber,T.endLineNumberExclusive),y.push(I);return}const S={modifiedLineRange:T,originalLineRange:v};o.push(S),y.push(S)}),f=y}if(!s.isValid())return[]}o.sort(tu(Et(m=>m.modifiedLineRange.length,Rt)));const u=new De,h=new De;for(const m of o){const f=m.modifiedLineRange.startLineNumber-m.originalLineRange.startLineNumber,w=u.subtractFrom(m.modifiedLineRange),p=h.subtractFrom(m.originalLineRange).getWithDelta(f),T=w.getIntersection(p);for(const y of T.ranges){if(y.length<3)continue;const v=y,S=y.delta(-f);a.push(new Te(S,v)),u.addRange(v),h.addRange(S)}}a.sort(Et(m=>m.original.startLineNumber,Rt));const d=new rn(t);for(let m=0;m<a.length;m++){const f=a[m],w=d.findLastMonotonous(W=>W.original.startLineNumber<=f.original.startLineNumber),p=ut(t,W=>W.modified.startLineNumber<=f.modified.startLineNumber),T=Math.max(f.original.startLineNumber-w.original.startLineNumber,f.modified.startLineNumber-p.modified.startLineNumber),y=d.findLastMonotonous(W=>W.original.startLineNumber<f.original.endLineNumberExclusive),v=ut(t,W=>W.modified.startLineNumber<f.modified.endLineNumberExclusive),S=Math.max(y.original.endLineNumberExclusive-f.original.endLineNumberExclusive,v.modified.endLineNumberExclusive-f.modified.endLineNumberExclusive);let I;for(I=0;I<T;I++){const W=f.original.startLineNumber-I-1,b=f.modified.startLineNumber-I-1;if(W>i.length||b>r.length||u.contains(b)||h.contains(W)||!Ms(i[W-1],r[b-1],s))break}I>0&&(h.addRange(new J(f.original.startLineNumber-I,f.original.startLineNumber)),u.addRange(new J(f.modified.startLineNumber-I,f.modified.startLineNumber)));let H;for(H=0;H<S;H++){const W=f.original.endLineNumberExclusive+H,b=f.modified.endLineNumberExclusive+H;if(W>i.length||b>r.length||u.contains(b)||h.contains(W)||!Ms(i[W-1],r[b-1],s))break}H>0&&(h.addRange(new J(f.original.endLineNumberExclusive,f.original.endLineNumberExclusive+H)),u.addRange(new J(f.modified.endLineNumberExclusive,f.modified.endLineNumberExclusive+H))),(I>0||H>0)&&(a[m]=new Te(new J(f.original.startLineNumber-I,f.original.endLineNumberExclusive+H),new J(f.modified.startLineNumber-I,f.modified.endLineNumberExclusive+H)))}return a}function Ms(t,e,n){if(t.trim()===e.trim())return!0;if(t.length>300&&e.length>300)return!1;const r=new Ls().compute(new on([t],new j(1,1,1,t.length),!1),new on([e],new j(1,1,1,e.length),!1),n);let s=0;const a=ne.invert(r.diffs,t.length);for(const h of a)h.seq1Range.forEach(d=>{ui(t.charCodeAt(d))||s++});function l(h){let d=0;for(let m=0;m<t.length;m++)ui(h.charCodeAt(m))||d++;return d}const o=l(t.length>e.length?t:e);return s/o>.6&&o>10}function Tu(t){if(t.length===0)return t;t.sort(Et(n=>n.original.startLineNumber,Rt));const e=[t[0]];for(let n=1;n<t.length;n++){const i=e[e.length-1],r=t[n],s=r.original.startLineNumber-i.original.endLineNumberExclusive,a=r.modified.startLineNumber-i.modified.endLineNumberExclusive;if(s>=0&&a>=0&&s+a<=2){e[e.length-1]=i.join(r);continue}e.push(r)}return e}function xu(t,e){const n=new rn(t);return e=e.filter(i=>{const r=n.findLastMonotonous(l=>l.original.startLineNumber<i.original.endLineNumberExclusive)||new Te(new J(1,1),new J(1,1)),s=ut(t,l=>l.modified.startLineNumber<i.modified.endLineNumberExclusive);return r!==s}),e}function Ns(t,e,n){let i=n;return i=Is(t,e,i),i=Is(t,e,i),i=ku(t,e,i),i}function Is(t,e,n){if(n.length===0)return n;const i=[];i.push(n[0]);for(let s=1;s<n.length;s++){const a=i[i.length-1];let l=n[s];if(l.seq1Range.isEmpty||l.seq2Range.isEmpty){const o=l.seq1Range.start-a.seq1Range.endExclusive;let u;for(u=1;u<=o&&!(t.getElement(l.seq1Range.start-u)!==t.getElement(l.seq1Range.endExclusive-u)||e.getElement(l.seq2Range.start-u)!==e.getElement(l.seq2Range.endExclusive-u));u++);if(u--,u===o){i[i.length-1]=new ne(new G(a.seq1Range.start,l.seq1Range.endExclusive-o),new G(a.seq2Range.start,l.seq2Range.endExclusive-o));continue}l=l.delta(-u)}i.push(l)}const r=[];for(let s=0;s<i.length-1;s++){const a=i[s+1];let l=i[s];if(l.seq1Range.isEmpty||l.seq2Range.isEmpty){const o=a.seq1Range.start-l.seq1Range.endExclusive;let u;for(u=0;u<o&&!(!t.isStronglyEqual(l.seq1Range.start+u,l.seq1Range.endExclusive+u)||!e.isStronglyEqual(l.seq2Range.start+u,l.seq2Range.endExclusive+u));u++);if(u===o){i[s+1]=new ne(new G(l.seq1Range.start+o,a.seq1Range.endExclusive),new G(l.seq2Range.start+o,a.seq2Range.endExclusive));continue}u>0&&(l=l.delta(u))}r.push(l)}return i.length>0&&r.push(i[i.length-1]),r}function ku(t,e,n){if(!t.getBoundaryScore||!e.getBoundaryScore)return n;for(let i=0;i<n.length;i++){const r=i>0?n[i-1]:void 0,s=n[i],a=i+1<n.length?n[i+1]:void 0,l=new G(r?r.seq1Range.endExclusive+1:0,a?a.seq1Range.start-1:t.length),o=new G(r?r.seq2Range.endExclusive+1:0,a?a.seq2Range.start-1:e.length);s.seq1Range.isEmpty?n[i]=zs(s,t,e,l,o):s.seq2Range.isEmpty&&(n[i]=zs(s.swap(),e,t,o,l).swap())}return n}function zs(t,e,n,i,r){let a=1;for(;t.seq1Range.start-a>=i.start&&t.seq2Range.start-a>=r.start&&n.isStronglyEqual(t.seq2Range.start-a,t.seq2Range.endExclusive-a)&&a<100;)a++;a--;let l=0;for(;t.seq1Range.start+l<i.endExclusive&&t.seq2Range.endExclusive+l<r.endExclusive&&n.isStronglyEqual(t.seq2Range.start+l,t.seq2Range.endExclusive+l)&&l<100;)l++;if(a===0&&l===0)return t;let o=0,u=-1;for(let h=-a;h<=l;h++){const d=t.seq2Range.start+h,m=t.seq2Range.endExclusive+h,f=t.seq1Range.start+h,w=e.getBoundaryScore(f)+n.getBoundaryScore(d)+n.getBoundaryScore(m);w>u&&(u=w,o=h)}return t.delta(o)}function Su(t,e,n){const i=[];for(const r of n){const s=i[i.length-1];if(!s){i.push(r);continue}r.seq1Range.start-s.seq1Range.endExclusive<=2||r.seq2Range.start-s.seq2Range.endExclusive<=2?i[i.length-1]=new ne(s.seq1Range.join(r.seq1Range),s.seq2Range.join(r.seq2Range)):i.push(r)}return i}function Hs(t,e,n,i,r=!1){const s=ne.invert(n,t.length),a=[];let l=new Fe(0,0);function o(h,d){if(h.offset1<l.offset1||h.offset2<l.offset2)return;const m=i(t,h.offset1),f=i(e,h.offset2);if(!m||!f)return;let w=new ne(m,f);const p=w.intersect(d);let T=p.seq1Range.length,y=p.seq2Range.length;for(;s.length>0;){const v=s[0];if(!(v.seq1Range.intersects(w.seq1Range)||v.seq2Range.intersects(w.seq2Range)))break;const I=i(t,v.seq1Range.start),H=i(e,v.seq2Range.start),W=new ne(I,H),b=W.intersect(v);if(T+=b.seq1Range.length,y+=b.seq2Range.length,w=w.join(W),w.seq1Range.endExclusive>=v.seq1Range.endExclusive)s.shift();else break}(r&&T+y<w.seq1Range.length+w.seq2Range.length||T+y<(w.seq1Range.length+w.seq2Range.length)*2/3)&&a.push(w),l=w.getEndExclusives()}for(;s.length>0;){const h=s.shift();h.seq1Range.isEmpty||(o(h.getStarts(),h),o(h.getEndExclusives().delta(-1),h))}return Au(n,a)}function Au(t,e){const n=[];for(;t.length>0||e.length>0;){const i=t[0],r=e[0];let s;i&&(!r||i.seq1Range.start<r.seq1Range.start)?s=t.shift():s=e.shift(),n.length>0&&n[n.length-1].seq1Range.endExclusive>=s.seq1Range.start?n[n.length-1]=n[n.length-1].join(s):n.push(s)}return n}function Lu(t,e,n){let i=n;if(i.length===0)return i;let r=0,s;do{s=!1;const a=[i[0]];for(let l=1;l<i.length;l++){let h=function(m,f){const w=new G(u.seq1Range.endExclusive,o.seq1Range.start);return t.getText(w).replace(/\s/g,"").length<=4&&(m.seq1Range.length+m.seq2Range.length>5||f.seq1Range.length+f.seq2Range.length>5)};const o=i[l],u=a[a.length-1];h(u,o)?(s=!0,a[a.length-1]=a[a.length-1].join(o)):a.push(o)}i=a}while(r++<10&&s);return i}function Cu(t,e,n){let i=n;if(i.length===0)return i;let r=0,s;do{s=!1;const l=[i[0]];for(let o=1;o<i.length;o++){let d=function(f,w){const p=new G(h.seq1Range.endExclusive,u.seq1Range.start);if(t.countLinesIn(p)>5||p.length>500)return!1;const y=t.getText(p).trim();if(y.length>20||y.split(/\r\n|\r|\n/).length>1)return!1;const v=t.countLinesIn(f.seq1Range),S=f.seq1Range.length,I=e.countLinesIn(f.seq2Range),H=f.seq2Range.length,W=t.countLinesIn(w.seq1Range),b=w.seq1Range.length,g=e.countLinesIn(w.seq2Range),_=w.seq2Range.length,N=130;function A(x){return Math.min(x,N)}return Math.pow(Math.pow(A(v*40+S),1.5)+Math.pow(A(I*40+H),1.5),1.5)+Math.pow(Math.pow(A(W*40+b),1.5)+Math.pow(A(g*40+_),1.5),1.5)>(N**1.5)**1.5*1.3};const u=i[o],h=l[l.length-1];d(h,u)?(s=!0,l[l.length-1]=l[l.length-1].join(u)):l.push(u)}i=l}while(r++<10&&s);const a=[];return Kl(i,(l,o,u)=>{let h=o;function d(y){return y.length>0&&y.trim().length<=3&&o.seq1Range.length+o.seq2Range.length>100}const m=t.extendToFullLines(o.seq1Range),f=t.getText(new G(m.start,o.seq1Range.start));d(f)&&(h=h.deltaStart(-f.length));const w=t.getText(new G(o.seq1Range.endExclusive,m.endExclusive));d(w)&&(h=h.deltaEnd(w.length));const p=ne.fromOffsetPairs(l?l.getEndExclusives():Fe.zero,u?u.getStarts():Fe.max),T=h.intersect(p);a.length>0&&T.getStarts().equals(a[a.length-1].getEndExclusives())?a[a.length-1]=a[a.length-1].join(T):a.push(T)}),a}class Us{constructor(e,n){this.trimmedHash=e,this.lines=n}getElement(e){return this.trimmedHash[e]}get length(){return this.trimmedHash.length}getBoundaryScore(e){const n=e===0?0:Ps(this.lines[e-1]),i=e===this.lines.length?0:Ps(this.lines[e]);return 1e3-(n+i)}getText(e){return this.lines.slice(e.start,e.endExclusive).join(`
23
+ `)}isStronglyEqual(e,n){return this.lines[e]===this.lines[n]}}function Ps(t){let e=0;for(;e<t.length&&(t.charCodeAt(e)===32||t.charCodeAt(e)===9);)e++;return e}class Eu{constructor(){this.dynamicProgrammingDiffing=new fu,this.myersDiffingAlgorithm=new Ls}computeDiff(e,n,i){if(e.length<=1&&Ql(e,n,(b,g)=>b===g))return new nn([],[],!1);if(e.length===1&&e[0].length===0||n.length===1&&n[0].length===0)return new nn([new Pe(new J(1,e.length+1),new J(1,n.length+1),[new xe(new j(1,1,e.length,e[e.length-1].length+1),new j(1,1,n.length,n[n.length-1].length+1))])],[],!1);const r=i.maxComputationTimeMs===0?Nt.instance:new mu(i.maxComputationTimeMs),s=!i.ignoreTrimWhitespace,a=new Map;function l(b){let g=a.get(b);return g===void 0&&(g=a.size,a.set(b,g)),g}const o=e.map(b=>l(b.trim())),u=n.map(b=>l(b.trim())),h=new Us(o,e),d=new Us(u,n),m=h.length+d.length<1700?this.dynamicProgrammingDiffing.compute(h,d,r,(b,g)=>e[b]===n[g]?n[g].length===0?.1:1+Math.log(1+n[g].length):.99):this.myersDiffingAlgorithm.compute(h,d,r);let f=m.diffs,w=m.hitTimeout;f=Ns(h,d,f),f=Lu(h,d,f);const p=[],T=b=>{if(s)for(let g=0;g<b;g++){const _=y+g,N=v+g;if(e[_]!==n[N]){const A=this.refineDiff(e,n,new ne(new G(_,_+1),new G(N,N+1)),r,s,i);for(const x of A.mappings)p.push(x);A.hitTimeout&&(w=!0)}}};let y=0,v=0;for(const b of f){Vt(()=>b.seq1Range.start-y===b.seq2Range.start-v);const g=b.seq1Range.start-y;T(g),y=b.seq1Range.endExclusive,v=b.seq2Range.endExclusive;const _=this.refineDiff(e,n,b,r,s,i);_.hitTimeout&&(w=!0);for(const N of _.mappings)p.push(N)}T(e.length-y);const S=new sn(e),I=new sn(n),H=xs(p,S,I);let W=[];return i.computeMoves&&(W=this.computeMoves(H,e,n,o,u,r,s,i)),Vt(()=>{function b(_,N){if(_.lineNumber<1||_.lineNumber>N.length)return!1;const A=N[_.lineNumber-1];return!(_.column<1||_.column>A.length+1)}function g(_,N){return!(_.startLineNumber<1||_.startLineNumber>N.length+1||_.endLineNumberExclusive<1||_.endLineNumberExclusive>N.length+1)}for(const _ of H){if(!_.innerChanges)return!1;for(const N of _.innerChanges)if(!(b(N.modifiedRange.getStartPosition(),n)&&b(N.modifiedRange.getEndPosition(),n)&&b(N.originalRange.getStartPosition(),e)&&b(N.originalRange.getEndPosition(),e)))return!1;if(!g(_.modified,n)||!g(_.original,e))return!1}return!0}),new nn(H,W,w)}computeMoves(e,n,i,r,s,a,l,o){return wu(e,n,i,r,s,a).map(d=>{const m=this.refineDiff(n,i,new ne(d.original.toOffsetRange(),d.modified.toOffsetRange()),a,l,o),f=xs(m.mappings,new sn(n),new sn(i),!0);return new Jl(d,f)})}refineDiff(e,n,i,r,s,a){const o=Ru(i).toRangeMapping2(e,n),u=new on(e,o.originalRange,s),h=new on(n,o.modifiedRange,s),d=u.length+h.length<500?this.dynamicProgrammingDiffing.compute(u,h,r):this.myersDiffingAlgorithm.compute(u,h,r);let m=d.diffs;return m=Ns(u,h,m),m=Hs(u,h,m,(w,p)=>w.findWordContaining(p)),a.extendToSubwords&&(m=Hs(u,h,m,(w,p)=>w.findSubWordContaining(p),!0)),m=Su(u,h,m),m=Cu(u,h,m),{mappings:m.map(w=>new xe(u.translateRange(w.seq1Range),h.translateRange(w.seq2Range))),hitTimeout:d.hitTimeout}}}function Ru(t){return new Te(new J(t.seq1Range.start+1,t.seq1Range.endExclusive+1),new J(t.seq2Range.start+1,t.seq2Range.endExclusive+1))}const Ws={getLegacy:()=>new uu,getDefault:()=>new Eu};function $e(t,e){const n=Math.pow(10,e);return Math.round(t*n)/n}class C{constructor(e,n,i,r=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,e))|0,this.g=Math.min(255,Math.max(0,n))|0,this.b=Math.min(255,Math.max(0,i))|0,this.a=$e(Math.max(Math.min(1,r),0),3)}static equals(e,n){return e.r===n.r&&e.g===n.g&&e.b===n.b&&e.a===n.a}}class ke{constructor(e,n,i,r){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,e),0)|0,this.s=$e(Math.max(Math.min(1,n),0),3),this.l=$e(Math.max(Math.min(1,i),0),3),this.a=$e(Math.max(Math.min(1,r),0),3)}static equals(e,n){return e.h===n.h&&e.s===n.s&&e.l===n.l&&e.a===n.a}static fromRGBA(e){const n=e.r/255,i=e.g/255,r=e.b/255,s=e.a,a=Math.max(n,i,r),l=Math.min(n,i,r);let o=0,u=0;const h=(l+a)/2,d=a-l;if(d>0){switch(u=Math.min(h<=.5?d/(2*h):d/(2-2*h),1),a){case n:o=(i-r)/d+(i<r?6:0);break;case i:o=(r-n)/d+2;break;case r:o=(n-i)/d+4;break}o*=60,o=Math.round(o)}return new ke(o,u,h,s)}static _hue2rgb(e,n,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+(n-e)*6*i:i<1/2?n:i<2/3?e+(n-e)*(2/3-i)*6:e}static toRGBA(e){const n=e.h/360,{s:i,l:r,a:s}=e;let a,l,o;if(i===0)a=l=o=r;else{const u=r<.5?r*(1+i):r+i-r*i,h=2*r-u;a=ke._hue2rgb(h,u,n+1/3),l=ke._hue2rgb(h,u,n),o=ke._hue2rgb(h,u,n-1/3)}return new C(Math.round(a*255),Math.round(l*255),Math.round(o*255),s)}}class pt{constructor(e,n,i,r){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,e),0)|0,this.s=$e(Math.max(Math.min(1,n),0),3),this.v=$e(Math.max(Math.min(1,i),0),3),this.a=$e(Math.max(Math.min(1,r),0),3)}static equals(e,n){return e.h===n.h&&e.s===n.s&&e.v===n.v&&e.a===n.a}static fromRGBA(e){const n=e.r/255,i=e.g/255,r=e.b/255,s=Math.max(n,i,r),a=Math.min(n,i,r),l=s-a,o=s===0?0:l/s;let u;return l===0?u=0:s===n?u=((i-r)/l%6+6)%6:s===i?u=(r-n)/l+2:u=(n-i)/l+4,new pt(Math.round(u*60),o,s,e.a)}static toRGBA(e){const{h:n,s:i,v:r,a:s}=e,a=r*i,l=a*(1-Math.abs(n/60%2-1)),o=r-a;let[u,h,d]=[0,0,0];return n<60?(u=a,h=l):n<120?(u=l,h=a):n<180?(h=a,d=l):n<240?(h=l,d=a):n<300?(u=l,d=a):n<=360&&(u=a,d=l),u=Math.round((u+o)*255),h=Math.round((h+o)*255),d=Math.round((d+o)*255),new C(u,h,d,s)}}let ln=(Z=class{static fromHex(e){return Z.Format.CSS.parseHex(e)||Z.red}static equals(e,n){return!e&&!n?!0:!e||!n?!1:e.equals(n)}get hsla(){return this._hsla?this._hsla:ke.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:pt.fromRGBA(this.rgba)}constructor(e){if(e)if(e instanceof C)this.rgba=e;else if(e instanceof ke)this._hsla=e,this.rgba=ke.toRGBA(e);else if(e instanceof pt)this._hsva=e,this.rgba=pt.toRGBA(e);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}equals(e){return!!e&&C.equals(this.rgba,e.rgba)&&ke.equals(this.hsla,e.hsla)&&pt.equals(this.hsva,e.hsva)}getRelativeLuminance(){const e=Z._relativeLuminanceForComponent(this.rgba.r),n=Z._relativeLuminanceForComponent(this.rgba.g),i=Z._relativeLuminanceForComponent(this.rgba.b),r=.2126*e+.7152*n+.0722*i;return $e(r,4)}static _relativeLuminanceForComponent(e){const n=e/255;return n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(e){const n=this.getRelativeLuminance(),i=e.getRelativeLuminance();return n>i}isDarkerThan(e){const n=this.getRelativeLuminance(),i=e.getRelativeLuminance();return n<i}lighten(e){return new Z(new ke(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*e,this.hsla.a))}darken(e){return new Z(new ke(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*e,this.hsla.a))}transparent(e){const{r:n,g:i,b:r,a:s}=this.rgba;return new Z(new C(n,i,r,s*e))}isTransparent(){return this.rgba.a===0}isOpaque(){return this.rgba.a===1}opposite(){return new Z(new C(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}mix(e,n=.5){const i=Math.min(Math.max(n,0),1),r=this.rgba,s=e.rgba,a=r.r+(s.r-r.r)*i,l=r.g+(s.g-r.g)*i,o=r.b+(s.b-r.b)*i,u=r.a+(s.a-r.a)*i;return new Z(new C(a,l,o,u))}makeOpaque(e){if(this.isOpaque()||e.rgba.a!==1)return this;const{r:n,g:i,b:r,a:s}=this.rgba;return new Z(new C(e.rgba.r-s*(e.rgba.r-n),e.rgba.g-s*(e.rgba.g-i),e.rgba.b-s*(e.rgba.b-r),1))}toString(){return this._toString||(this._toString=Z.Format.CSS.format(this)),this._toString}toNumber32Bit(){return this._toNumber32Bit||(this._toNumber32Bit=(this.rgba.r<<24|this.rgba.g<<16|this.rgba.b<<8|this.rgba.a*255<<0)>>>0),this._toNumber32Bit}static getLighterColor(e,n,i){if(e.isLighterThan(n))return e;i=i||.5;const r=e.getRelativeLuminance(),s=n.getRelativeLuminance();return i=i*(s-r)/s,e.lighten(i)}static getDarkerColor(e,n,i){if(e.isDarkerThan(n))return e;i=i||.5;const r=e.getRelativeLuminance(),s=n.getRelativeLuminance();return i=i*(r-s)/r,e.darken(i)}},Z.white=new Z(new C(255,255,255,1)),Z.black=new Z(new C(0,0,0,1)),Z.red=new Z(new C(255,0,0,1)),Z.blue=new Z(new C(0,0,255,1)),Z.green=new Z(new C(0,255,0,1)),Z.cyan=new Z(new C(0,255,255,1)),Z.lightgrey=new Z(new C(211,211,211,1)),Z.transparent=new Z(new C(0,0,0,0)),Z);(function(t){(function(e){(function(n){function i(p){return p.rgba.a===1?`rgb(${p.rgba.r}, ${p.rgba.g}, ${p.rgba.b})`:t.Format.CSS.formatRGBA(p)}n.formatRGB=i;function r(p){return`rgba(${p.rgba.r}, ${p.rgba.g}, ${p.rgba.b}, ${+p.rgba.a.toFixed(2)})`}n.formatRGBA=r;function s(p){return p.hsla.a===1?`hsl(${p.hsla.h}, ${Math.round(p.hsla.s*100)}%, ${Math.round(p.hsla.l*100)}%)`:t.Format.CSS.formatHSLA(p)}n.formatHSL=s;function a(p){return`hsla(${p.hsla.h}, ${Math.round(p.hsla.s*100)}%, ${Math.round(p.hsla.l*100)}%, ${p.hsla.a.toFixed(2)})`}n.formatHSLA=a;function l(p){const T=p.toString(16);return T.length!==2?"0"+T:T}function o(p){return`#${l(p.rgba.r)}${l(p.rgba.g)}${l(p.rgba.b)}`}n.formatHex=o;function u(p,T=!1){return T&&p.rgba.a===1?t.Format.CSS.formatHex(p):`#${l(p.rgba.r)}${l(p.rgba.g)}${l(p.rgba.b)}${l(Math.round(p.rgba.a*255))}`}n.formatHexA=u;function h(p){return p.isOpaque()?t.Format.CSS.formatHex(p):t.Format.CSS.formatRGBA(p)}n.format=h;function d(p){if(p==="transparent")return t.transparent;if(p.startsWith("#"))return f(p);if(p.startsWith("rgba(")){const T=p.match(/rgba\((?<r>(?:\+|-)?\d+), *(?<g>(?:\+|-)?\d+), *(?<b>(?:\+|-)?\d+), *(?<a>(?:\+|-)?\d+(\.\d+)?)\)/);if(!T)throw new Error("Invalid color format "+p);const y=parseInt(T.groups?.r??"0"),v=parseInt(T.groups?.g??"0"),S=parseInt(T.groups?.b??"0"),I=parseFloat(T.groups?.a??"0");return new t(new C(y,v,S,I))}if(p.startsWith("rgb(")){const T=p.match(/rgb\((?<r>(?:\+|-)?\d+), *(?<g>(?:\+|-)?\d+), *(?<b>(?:\+|-)?\d+)\)/);if(!T)throw new Error("Invalid color format "+p);const y=parseInt(T.groups?.r??"0"),v=parseInt(T.groups?.g??"0"),S=parseInt(T.groups?.b??"0");return new t(new C(y,v,S))}return m(p)}n.parse=d;function m(p){switch(p){case"aliceblue":return new t(new C(240,248,255,1));case"antiquewhite":return new t(new C(250,235,215,1));case"aqua":return new t(new C(0,255,255,1));case"aquamarine":return new t(new C(127,255,212,1));case"azure":return new t(new C(240,255,255,1));case"beige":return new t(new C(245,245,220,1));case"bisque":return new t(new C(255,228,196,1));case"black":return new t(new C(0,0,0,1));case"blanchedalmond":return new t(new C(255,235,205,1));case"blue":return new t(new C(0,0,255,1));case"blueviolet":return new t(new C(138,43,226,1));case"brown":return new t(new C(165,42,42,1));case"burlywood":return new t(new C(222,184,135,1));case"cadetblue":return new t(new C(95,158,160,1));case"chartreuse":return new t(new C(127,255,0,1));case"chocolate":return new t(new C(210,105,30,1));case"coral":return new t(new C(255,127,80,1));case"cornflowerblue":return new t(new C(100,149,237,1));case"cornsilk":return new t(new C(255,248,220,1));case"crimson":return new t(new C(220,20,60,1));case"cyan":return new t(new C(0,255,255,1));case"darkblue":return new t(new C(0,0,139,1));case"darkcyan":return new t(new C(0,139,139,1));case"darkgoldenrod":return new t(new C(184,134,11,1));case"darkgray":return new t(new C(169,169,169,1));case"darkgreen":return new t(new C(0,100,0,1));case"darkgrey":return new t(new C(169,169,169,1));case"darkkhaki":return new t(new C(189,183,107,1));case"darkmagenta":return new t(new C(139,0,139,1));case"darkolivegreen":return new t(new C(85,107,47,1));case"darkorange":return new t(new C(255,140,0,1));case"darkorchid":return new t(new C(153,50,204,1));case"darkred":return new t(new C(139,0,0,1));case"darksalmon":return new t(new C(233,150,122,1));case"darkseagreen":return new t(new C(143,188,143,1));case"darkslateblue":return new t(new C(72,61,139,1));case"darkslategray":return new t(new C(47,79,79,1));case"darkslategrey":return new t(new C(47,79,79,1));case"darkturquoise":return new t(new C(0,206,209,1));case"darkviolet":return new t(new C(148,0,211,1));case"deeppink":return new t(new C(255,20,147,1));case"deepskyblue":return new t(new C(0,191,255,1));case"dimgray":return new t(new C(105,105,105,1));case"dimgrey":return new t(new C(105,105,105,1));case"dodgerblue":return new t(new C(30,144,255,1));case"firebrick":return new t(new C(178,34,34,1));case"floralwhite":return new t(new C(255,250,240,1));case"forestgreen":return new t(new C(34,139,34,1));case"fuchsia":return new t(new C(255,0,255,1));case"gainsboro":return new t(new C(220,220,220,1));case"ghostwhite":return new t(new C(248,248,255,1));case"gold":return new t(new C(255,215,0,1));case"goldenrod":return new t(new C(218,165,32,1));case"gray":return new t(new C(128,128,128,1));case"green":return new t(new C(0,128,0,1));case"greenyellow":return new t(new C(173,255,47,1));case"grey":return new t(new C(128,128,128,1));case"honeydew":return new t(new C(240,255,240,1));case"hotpink":return new t(new C(255,105,180,1));case"indianred":return new t(new C(205,92,92,1));case"indigo":return new t(new C(75,0,130,1));case"ivory":return new t(new C(255,255,240,1));case"khaki":return new t(new C(240,230,140,1));case"lavender":return new t(new C(230,230,250,1));case"lavenderblush":return new t(new C(255,240,245,1));case"lawngreen":return new t(new C(124,252,0,1));case"lemonchiffon":return new t(new C(255,250,205,1));case"lightblue":return new t(new C(173,216,230,1));case"lightcoral":return new t(new C(240,128,128,1));case"lightcyan":return new t(new C(224,255,255,1));case"lightgoldenrodyellow":return new t(new C(250,250,210,1));case"lightgray":return new t(new C(211,211,211,1));case"lightgreen":return new t(new C(144,238,144,1));case"lightgrey":return new t(new C(211,211,211,1));case"lightpink":return new t(new C(255,182,193,1));case"lightsalmon":return new t(new C(255,160,122,1));case"lightseagreen":return new t(new C(32,178,170,1));case"lightskyblue":return new t(new C(135,206,250,1));case"lightslategray":return new t(new C(119,136,153,1));case"lightslategrey":return new t(new C(119,136,153,1));case"lightsteelblue":return new t(new C(176,196,222,1));case"lightyellow":return new t(new C(255,255,224,1));case"lime":return new t(new C(0,255,0,1));case"limegreen":return new t(new C(50,205,50,1));case"linen":return new t(new C(250,240,230,1));case"magenta":return new t(new C(255,0,255,1));case"maroon":return new t(new C(128,0,0,1));case"mediumaquamarine":return new t(new C(102,205,170,1));case"mediumblue":return new t(new C(0,0,205,1));case"mediumorchid":return new t(new C(186,85,211,1));case"mediumpurple":return new t(new C(147,112,219,1));case"mediumseagreen":return new t(new C(60,179,113,1));case"mediumslateblue":return new t(new C(123,104,238,1));case"mediumspringgreen":return new t(new C(0,250,154,1));case"mediumturquoise":return new t(new C(72,209,204,1));case"mediumvioletred":return new t(new C(199,21,133,1));case"midnightblue":return new t(new C(25,25,112,1));case"mintcream":return new t(new C(245,255,250,1));case"mistyrose":return new t(new C(255,228,225,1));case"moccasin":return new t(new C(255,228,181,1));case"navajowhite":return new t(new C(255,222,173,1));case"navy":return new t(new C(0,0,128,1));case"oldlace":return new t(new C(253,245,230,1));case"olive":return new t(new C(128,128,0,1));case"olivedrab":return new t(new C(107,142,35,1));case"orange":return new t(new C(255,165,0,1));case"orangered":return new t(new C(255,69,0,1));case"orchid":return new t(new C(218,112,214,1));case"palegoldenrod":return new t(new C(238,232,170,1));case"palegreen":return new t(new C(152,251,152,1));case"paleturquoise":return new t(new C(175,238,238,1));case"palevioletred":return new t(new C(219,112,147,1));case"papayawhip":return new t(new C(255,239,213,1));case"peachpuff":return new t(new C(255,218,185,1));case"peru":return new t(new C(205,133,63,1));case"pink":return new t(new C(255,192,203,1));case"plum":return new t(new C(221,160,221,1));case"powderblue":return new t(new C(176,224,230,1));case"purple":return new t(new C(128,0,128,1));case"rebeccapurple":return new t(new C(102,51,153,1));case"red":return new t(new C(255,0,0,1));case"rosybrown":return new t(new C(188,143,143,1));case"royalblue":return new t(new C(65,105,225,1));case"saddlebrown":return new t(new C(139,69,19,1));case"salmon":return new t(new C(250,128,114,1));case"sandybrown":return new t(new C(244,164,96,1));case"seagreen":return new t(new C(46,139,87,1));case"seashell":return new t(new C(255,245,238,1));case"sienna":return new t(new C(160,82,45,1));case"silver":return new t(new C(192,192,192,1));case"skyblue":return new t(new C(135,206,235,1));case"slateblue":return new t(new C(106,90,205,1));case"slategray":return new t(new C(112,128,144,1));case"slategrey":return new t(new C(112,128,144,1));case"snow":return new t(new C(255,250,250,1));case"springgreen":return new t(new C(0,255,127,1));case"steelblue":return new t(new C(70,130,180,1));case"tan":return new t(new C(210,180,140,1));case"teal":return new t(new C(0,128,128,1));case"thistle":return new t(new C(216,191,216,1));case"tomato":return new t(new C(255,99,71,1));case"turquoise":return new t(new C(64,224,208,1));case"violet":return new t(new C(238,130,238,1));case"wheat":return new t(new C(245,222,179,1));case"white":return new t(new C(255,255,255,1));case"whitesmoke":return new t(new C(245,245,245,1));case"yellow":return new t(new C(255,255,0,1));case"yellowgreen":return new t(new C(154,205,50,1));default:return null}}function f(p){const T=p.length;if(T===0||p.charCodeAt(0)!==35)return null;if(T===7){const y=16*w(p.charCodeAt(1))+w(p.charCodeAt(2)),v=16*w(p.charCodeAt(3))+w(p.charCodeAt(4)),S=16*w(p.charCodeAt(5))+w(p.charCodeAt(6));return new t(new C(y,v,S,1))}if(T===9){const y=16*w(p.charCodeAt(1))+w(p.charCodeAt(2)),v=16*w(p.charCodeAt(3))+w(p.charCodeAt(4)),S=16*w(p.charCodeAt(5))+w(p.charCodeAt(6)),I=16*w(p.charCodeAt(7))+w(p.charCodeAt(8));return new t(new C(y,v,S,I/255))}if(T===4){const y=w(p.charCodeAt(1)),v=w(p.charCodeAt(2)),S=w(p.charCodeAt(3));return new t(new C(16*y+y,16*v+v,16*S+S))}if(T===5){const y=w(p.charCodeAt(1)),v=w(p.charCodeAt(2)),S=w(p.charCodeAt(3)),I=w(p.charCodeAt(4));return new t(new C(16*y+y,16*v+v,16*S+S,(16*I+I)/255))}return null}n.parseHex=f;function w(p){switch(p){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:return 10;case 65:return 10;case 98:return 11;case 66:return 11;case 99:return 12;case 67:return 12;case 100:return 13;case 68:return 13;case 101:return 14;case 69:return 14;case 102:return 15;case 70:return 15}return 0}})(e.CSS||(e.CSS={}))})(t.Format||(t.Format={}))})(ln||(ln={}));function Fs(t){const e=[];for(const n of t){const i=Number(n);(i||i===0&&n.replace(/\s/g,"")!=="")&&e.push(i)}return e}function ci(t,e,n,i){return{red:t/255,blue:n/255,green:e/255,alpha:i}}function It(t,e){const n=e.index,i=e[0].length;if(n===void 0)return;const r=t.positionAt(n);return{startLineNumber:r.lineNumber,startColumn:r.column,endLineNumber:r.lineNumber,endColumn:r.column+i}}function Du(t,e){if(!t)return;const n=ln.Format.CSS.parseHex(e);if(n)return{range:t,color:ci(n.rgba.r,n.rgba.g,n.rgba.b,n.rgba.a)}}function Bs(t,e,n){if(!t||e.length!==1)return;const r=e[0].values(),s=Fs(r);return{range:t,color:ci(s[0],s[1],s[2],n?s[3]:1)}}function qs(t,e,n){if(!t||e.length!==1)return;const r=e[0].values(),s=Fs(r),a=new ln(new ke(s[0],s[1]/100,s[2]/100,n?s[3]:1));return{range:t,color:ci(a.rgba.r,a.rgba.g,a.rgba.b,a.rgba.a)}}function zt(t,e){return typeof t=="string"?[...t.matchAll(e)]:t.findMatches(e)}function Mu(t){const e=[],n=new RegExp(`\\b(rgb|rgba|hsl|hsla)(\\([0-9\\s,.\\%\\/]*\\))|^(#)([A-Fa-f0-9]{3})\\b|^(#)([A-Fa-f0-9]{4})\\b|^(#)([A-Fa-f0-9]{6})\\b|^(#)([A-Fa-f0-9]{8})\\b|(?<=['"\\s])(#)([A-Fa-f0-9]{3})\\b|(?<=['"\\s])(#)([A-Fa-f0-9]{4})\\b|(?<=['"\\s])(#)([A-Fa-f0-9]{6})\\b|(?<=['"\\s])(#)([A-Fa-f0-9]{8})\\b`,"gm"),i=zt(t,n);if(i.length>0)for(const r of i){const s=r.filter(u=>u!==void 0),a=s[1],l=s[2];if(!l)continue;let o;if(a==="rgb"){const u=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*[\s,]\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*[\s,]\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;o=Bs(It(t,r),zt(l,u),!1)}else if(a==="rgba"){const u=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*[\s,]\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*[\s,]\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*(?:[\s,]|[\s]*\/)\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;o=Bs(It(t,r),zt(l,u),!0)}else if(a==="hsl"){const u=/^\(\s*((?:360(?:\.0+)?|(?:36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])(?:\.\d+)?))\s*[\s,]\s*(100(?:\.0+)?|\d{1,2}[.]\d*|\d{1,2})%\s*[\s,]\s*(100(?:\.0+)?|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;o=qs(It(t,r),zt(l,u),!1)}else if(a==="hsla"){const u=/^\(\s*((?:360(?:\.0+)?|(?:36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])(?:\.\d+)?))\s*[\s,]\s*(100(?:\.0+)?|\d{1,2}[.]\d*|\d{1,2})%\s*[\s,]\s*(100(?:\.0+)?|\d{1,2}[.]\d*|\d{1,2})%\s*(?:[\s,]|[\s]*\/)\s*(0[.][0-9]+|[.][0-9]+|[01][.]0*|[01])\s*\)$/gm;o=qs(It(t,r),zt(l,u),!0)}else a==="#"&&(o=Du(It(t,r),a+l));o&&e.push(o)}return e}function Nu(t){return!t||typeof t.getValue!="function"||typeof t.positionAt!="function"?[]:Mu(t)}const Iu=/^-+|-+$/g,Os=100,zu=5;function Hu(t,e){let n=[];if(e.findRegionSectionHeaders&&e.foldingRules?.markers){const i=Uu(t,e);n=n.concat(i)}if(e.findMarkSectionHeaders){const i=Pu(t,e);n=n.concat(i)}return n}function Uu(t,e){const n=[],i=t.getLineCount();for(let r=1;r<=i;r++){const s=t.getLineContent(r),a=s.match(e.foldingRules.markers.start);if(a){const l={startLineNumber:r,startColumn:a[0].length+1,endLineNumber:r,endColumn:s.length+1};if(l.endColumn>l.startColumn){const o={range:l,...Wu(s.substring(a[0].length)),shouldBeInComments:!1};(o.text||o.hasSeparatorLine)&&n.push(o)}}}return n}function Pu(t,e){const n=[],i=t.getLineCount();if(!e.markSectionHeaderRegex||e.markSectionHeaderRegex.trim()==="")return n;const r=Wl(e.markSectionHeaderRegex),s=new RegExp(e.markSectionHeaderRegex,`gdm${r?"s":""}`);if(Io(s))return n;for(let a=1;a<=i;a+=Os-zu){const l=Math.min(a+Os-1,i),o=[];for(let d=a;d<=l;d++)o.push(t.getLineContent(d));const u=o.join(`
24
+ `);s.lastIndex=0;let h;for(;(h=s.exec(u))!==null;){const d=u.substring(0,h.index),m=(d.match(/\n/g)||[]).length,f=a+m,w=h[0].split(`
25
25
  `),p=w.length,T=f+p-1,y=d.lastIndexOf(`
26
- `)+1,v=c.index-y+1,S=w[w.length-1],I=p===1?v+c[0].length:S.length+1,H={startLineNumber:f,startColumn:v,endLineNumber:T,endColumn:I},W=(c.groups??{}).label??"",b=((c.groups??{}).separator??"")!=="",g={range:H,text:W,hasSeparatorLine:b,shouldBeInComments:!0};(g.text||g.hasSeparatorLine)&&(n.length===0||n[n.length-1].range.endLineNumber<g.range.startLineNumber)&&n.push(g),s.lastIndex=c.index+c[0].length}}return n}function Wu(t){t=t.trim();const e=t.startsWith("-");return t=t.replace(Iu,""),{text:t,hasSeparatorLine:e}}class Vs{get isRejected(){return this.outcome?.outcome===1}get isSettled(){return!!this.outcome}constructor(){this.p=new Promise((e,n)=>{this.completeCallback=e,this.errorCallback=n})}complete(e){return this.isSettled?Promise.resolve():new Promise(n=>{this.completeCallback(e),this.outcome={outcome:0,value:e},n()})}error(e){return this.isSettled?Promise.resolve():new Promise(n=>{this.errorCallback(e),this.outcome={outcome:1,value:e},n()})}cancel(){return this.error(new Hi)}}var js;(function(t){async function e(i){let r;const s=await Promise.all(i.map(a=>a.then(l=>l,l=>{r||(r=l)})));if(typeof r<"u")throw r;return s}t.settled=e;function n(i){return new Promise(async(r,s)=>{try{await i(r,s)}catch(a){s(a)}})}t.withAsyncBody=n})(js||(js={}));class Fu{constructor(){this._unsatisfiedConsumers=[],this._unconsumedValues=[]}get hasFinalValue(){return!!this._finalValue}produce(e){if(this._ensureNoFinalValue(),this._unsatisfiedConsumers.length>0){const n=this._unsatisfiedConsumers.shift();this._resolveOrRejectDeferred(n,e)}else this._unconsumedValues.push(e)}produceFinal(e){this._ensureNoFinalValue(),this._finalValue=e;for(const n of this._unsatisfiedConsumers)this._resolveOrRejectDeferred(n,e);this._unsatisfiedConsumers.length=0}_ensureNoFinalValue(){if(this._finalValue)throw new ue("ProducerConsumer: cannot produce after final value has been set")}_resolveOrRejectDeferred(e,n){n.ok?e.complete(n.value):e.error(n.error)}consume(){if(this._unconsumedValues.length>0||this._finalValue){const e=this._unconsumedValues.length>0?this._unconsumedValues.shift():this._finalValue;return e.ok?Promise.resolve(e.value):Promise.reject(e.error)}else{const e=new Vs;return this._unsatisfiedConsumers.push(e),e.p}}}const he=class he{constructor(e,n){this._onReturn=n,this._producerConsumer=new Fu,this._iterator={next:()=>this._producerConsumer.consume(),return:()=>(this._onReturn?.(),Promise.resolve({done:!0,value:void 0})),throw:async i=>(this._finishError(i),{done:!0,value:void 0})},queueMicrotask(async()=>{const i=e({emitOne:r=>this._producerConsumer.produce({ok:!0,value:{done:!1,value:r}}),emitMany:r=>{for(const s of r)this._producerConsumer.produce({ok:!0,value:{done:!1,value:s}})},reject:r=>this._finishError(r)});if(!this._producerConsumer.hasFinalValue)try{await i,this._finishOk()}catch(r){this._finishError(r)}})}static fromArray(e){return new he(n=>{n.emitMany(e)})}static fromPromise(e){return new he(async n=>{n.emitMany(await e)})}static fromPromisesResolveOrder(e){return new he(async n=>{await Promise.all(e.map(async i=>n.emitOne(await i)))})}static merge(e){return new he(async n=>{await Promise.all(e.map(async i=>{for await(const r of i)n.emitOne(r)}))})}static map(e,n){return new he(async i=>{for await(const r of e)i.emitOne(n(r))})}static tee(e){let n,i;const r=new Vs,s=async()=>{if(!(!n||!i))try{for await(const o of e)n.emitOne(o),i.emitOne(o)}catch(o){n.reject(o),i.reject(o)}finally{r.complete()}},a=new he(async o=>(n=o,s(),r.p)),l=new he(async o=>(i=o,s(),r.p));return[a,l]}map(e){return he.map(this,e)}static coalesce(e){return he.filter(e,n=>!!n)}coalesce(){return he.coalesce(this)}static filter(e,n){return new he(async i=>{for await(const r of e)n(r)&&i.emitOne(r)})}filter(e){return he.filter(this,e)}_finishOk(){this._producerConsumer.hasFinalValue||this._producerConsumer.produceFinal({ok:!0,value:{done:!0,value:void 0}})}_finishError(e){this._producerConsumer.hasFinalValue||this._producerConsumer.produceFinal({ok:!1,error:e})}[Symbol.asyncIterator](){return this._iterator}};he.EMPTY=he.fromArray([]);let $s=he;class Bu{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,n){e=at(e);const i=this.values,r=this.prefixSum,s=n.length;return s===0?!1:(this.values=new Uint32Array(i.length+s),this.values.set(i.subarray(0,e),0),this.values.set(i.subarray(e),e+s),this.values.set(n,e),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(e,n){return e=at(e),n=at(n),this.values[e]===n?!1:(this.values[e]=n,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)}removeValues(e,n){e=at(e),n=at(n);const i=this.values,r=this.prefixSum;if(e>=i.length)return!1;const s=i.length-e;return n>=s&&(n=s),n===0?!1:(this.values=new Uint32Array(i.length-n),this.values.set(i.subarray(0,e),0),this.values.set(i.subarray(e+n),e),this.prefixSum=new Uint32Array(this.values.length),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=at(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let n=this.prefixSumValidIndex[0]+1;n===0&&(this.prefixSum[0]=this.values[0],n++),e>=this.values.length&&(e=this.values.length-1);for(let i=n;i<=e;i++)this.prefixSum[i]=this.prefixSum[i-1]+this.values[i];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let n=0,i=this.values.length-1,r=0,s=0,a=0;for(;n<=i;)if(r=n+(i-n)/2|0,s=this.prefixSum[r],a=s-this.values[r],e<a)i=r-1;else if(e>=s)n=r+1;else break;return new qu(r,e-a)}}class qu{constructor(e,n){this.index=e,this.remainder=n,this._prefixSumIndexOfResultBrand=void 0,this.index=e,this.remainder=n}}class Ou{constructor(e,n,i,r){this._uri=e,this._lines=n,this._eol=i,this._versionId=r,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return this._cachedTextValue===null&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);const n=e.changes;for(const i of n)this._acceptDeleteRange(i.range),this._acceptInsertText(new K(i.range.startLineNumber,i.range.startColumn),i.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const e=this._eol.length,n=this._lines.length,i=new Uint32Array(n);for(let r=0;r<n;r++)i[r]=this._lines[r].length+e;this._lineStarts=new Bu(i)}}_setLineText(e,n){this._lines[e]=n,this._lineStarts&&this._lineStarts.setValue(e,this._lines[e].length+this._eol.length)}_acceptDeleteRange(e){if(e.startLineNumber===e.endLineNumber){if(e.startColumn===e.endColumn)return;this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.startLineNumber-1].substring(e.endColumn-1));return}this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.endLineNumber-1].substring(e.endColumn-1)),this._lines.splice(e.startLineNumber,e.endLineNumber-e.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(e.startLineNumber,e.endLineNumber-e.startLineNumber)}_acceptInsertText(e,n){if(n.length===0)return;const i=zo(n);if(i.length===1){this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+i[0]+this._lines[e.lineNumber-1].substring(e.column-1));return}i[i.length-1]+=this._lines[e.lineNumber-1].substring(e.column-1),this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+i[0]);const r=new Uint32Array(i.length-1);for(let s=1;s<i.length;s++)this._lines.splice(e.lineNumber+s-1,0,i[s]),r[s-1]=i[s].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,r)}}class Vu{constructor(){this._models=Object.create(null)}getModel(e){return this._models[e]}getModels(){const e=[];return Object.keys(this._models).forEach(n=>e.push(this._models[n])),e}$acceptNewModel(e){this._models[e.url]=new ju(Jn.parse(e.url),e.lines,e.EOL,e.versionId)}$acceptModelChanged(e,n){if(!this._models[e])return;this._models[e].onEvents(n)}$acceptRemovedModel(e){this._models[e]&&delete this._models[e]}}class ju extends Ou{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(e){const n=[];for(let i=0;i<this._lines.length;i++){const r=this._lines[i],s=this.offsetAt(new K(i+1,1)),a=r.matchAll(e);for(const l of a)(l.index||l.index===0)&&(l.index=l.index+s),n.push(l)}return n}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(e){return this._lines[e-1]}getWordAtPosition(e,n){const i=ii(e.column,bs(n),this._lines[e.lineNumber-1],0);return i?new j(e.lineNumber,i.startColumn,e.lineNumber,i.endColumn):null}words(e){const n=this._lines,i=this._wordenize.bind(this);let r=0,s="",a=0,l=[];return{*[Symbol.iterator](){for(;;)if(a<l.length){const o=s.substring(l[a].start,l[a].end);a+=1,yield o}else if(r<n.length)s=n[r],l=i(s,e),a=0,r+=1;else break}}}getLineWords(e,n){const i=this._lines[e-1],r=this._wordenize(i,n),s=[];for(const a of r)s.push({word:i.substring(a.start,a.end),startColumn:a.start+1,endColumn:a.end+1});return s}_wordenize(e,n){const i=[];let r;for(n.lastIndex=0;(r=n.exec(e))&&r[0].length!==0;)i.push({start:r.index,end:r.index+r[0].length});return i}getValueInRange(e){if(e=this._validateRange(e),e.startLineNumber===e.endLineNumber)return this._lines[e.startLineNumber-1].substring(e.startColumn-1,e.endColumn-1);const n=this._eol,i=e.startLineNumber-1,r=e.endLineNumber-1,s=[];s.push(this._lines[i].substring(e.startColumn-1));for(let a=i+1;a<r;a++)s.push(this._lines[a]);return s.push(this._lines[r].substring(0,e.endColumn-1)),s.join(n)}offsetAt(e){return e=this._validatePosition(e),this._ensureLineStarts(),this._lineStarts.getPrefixSum(e.lineNumber-2)+(e.column-1)}positionAt(e){e=Math.floor(e),e=Math.max(0,e),this._ensureLineStarts();const n=this._lineStarts.getIndexOf(e),i=this._lines[n.index].length;return{lineNumber:1+n.index,column:1+Math.min(n.remainder,i)}}_validateRange(e){const n=this._validatePosition({lineNumber:e.startLineNumber,column:e.startColumn}),i=this._validatePosition({lineNumber:e.endLineNumber,column:e.endColumn});return n.lineNumber!==e.startLineNumber||n.column!==e.startColumn||i.lineNumber!==e.endLineNumber||i.column!==e.endColumn?{startLineNumber:n.lineNumber,startColumn:n.column,endLineNumber:i.lineNumber,endColumn:i.column}:e}_validatePosition(e){if(!K.isIPosition(e))throw new Error("bad position");let{lineNumber:n,column:i}=e,r=!1;if(n<1)n=1,i=1,r=!0;else if(n>this._lines.length)n=this._lines.length,i=this._lines[n-1].length+1,r=!0;else{const s=this._lines[n-1].length+1;i<1?(i=1,r=!0):i>s&&(i=s,r=!0)}return r?{lineNumber:n,column:i}:e}}const et=class et{constructor(e=null){this._foreignModule=e,this._requestHandlerBrand=void 0,this._workerTextModelSyncServer=new Vu}dispose(){}async $ping(){return"pong"}_getModel(e){return this._workerTextModelSyncServer.getModel(e)}getModels(){return this._workerTextModelSyncServer.getModels()}$acceptNewModel(e){this._workerTextModelSyncServer.$acceptNewModel(e)}$acceptModelChanged(e,n){this._workerTextModelSyncServer.$acceptModelChanged(e,n)}$acceptRemovedModel(e){this._workerTextModelSyncServer.$acceptRemovedModel(e)}async $computeUnicodeHighlights(e,n,i){const r=this._getModel(e);return r?Gl.computeUnicodeHighlights(r,n,i):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async $findSectionHeaders(e,n){const i=this._getModel(e);return i?Hu(i,n):[]}async $computeDiff(e,n,i,r){const s=this._getModel(e),a=this._getModel(n);return!s||!a?null:et.computeDiff(s,a,i,r)}static computeDiff(e,n,i,r){const s=r==="advanced"?Ws.getDefault():Ws.getLegacy(),a=e.getLinesContent(),l=n.getLinesContent(),o=s.computeDiff(a,l,i),u=o.changes.length>0?!1:this._modelsAreIdentical(e,n);function c(d){return d.map(m=>[m.original.startLineNumber,m.original.endLineNumberExclusive,m.modified.startLineNumber,m.modified.endLineNumberExclusive,m.innerChanges?.map(f=>[f.originalRange.startLineNumber,f.originalRange.startColumn,f.originalRange.endLineNumber,f.originalRange.endColumn,f.modifiedRange.startLineNumber,f.modifiedRange.startColumn,f.modifiedRange.endLineNumber,f.modifiedRange.endColumn])])}return{identical:u,quitEarly:o.hitTimeout,changes:c(o.changes),moves:o.moves.map(d=>[d.lineRangeMapping.original.startLineNumber,d.lineRangeMapping.original.endLineNumberExclusive,d.lineRangeMapping.modified.startLineNumber,d.lineRangeMapping.modified.endLineNumberExclusive,c(d.changes)])}}static _modelsAreIdentical(e,n){const i=e.getLineCount(),r=n.getLineCount();if(i!==r)return!1;for(let s=1;s<=i;s++){const a=e.getLineContent(s),l=n.getLineContent(s);if(a!==l)return!1}return!0}async $computeMoreMinimalEdits(e,n,i){const r=this._getModel(e);if(!r)return n;const s=[];let a;n=n.slice(0).sort((o,u)=>{if(o.range&&u.range)return j.compareRangesUsingStarts(o.range,u.range);const c=o.range?0:1,d=u.range?0:1;return c-d});let l=0;for(let o=1;o<n.length;o++)j.getEndPosition(n[l].range).equals(j.getStartPosition(n[o].range))?(n[l].range=j.fromPositions(j.getStartPosition(n[l].range),j.getEndPosition(n[o].range)),n[l].text+=n[o].text):(l++,n[l]=n[o]);n.length=l+1;for(let{range:o,text:u,eol:c}of n){if(typeof c=="number"&&(a=c),j.isEmpty(o)&&!u)continue;const d=r.getValueInRange(o);if(u=u.replace(/\r\n|\n|\r/g,r.eol),d===u)continue;if(Math.max(u.length,d.length)>et._diffLimit){s.push({range:o,text:u});continue}const m=el(d,u,i),f=r.offsetAt(j.lift(o).getStartPosition());for(const w of m){const p=r.positionAt(f+w.originalStart),T=r.positionAt(f+w.originalStart+w.originalLength),y={text:u.substr(w.modifiedStart,w.modifiedLength),range:{startLineNumber:p.lineNumber,startColumn:p.column,endLineNumber:T.lineNumber,endColumn:T.column}};r.getValueInRange(y.range)!==y.text&&s.push(y)}}return typeof a=="number"&&s.push({eol:a,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),s}async $computeLinks(e){const n=this._getModel(e);return n?sl(n):null}async $computeDefaultDocumentColors(e){const n=this._getModel(e);return n?Nu(n):null}async $textualSuggest(e,n,i,r){const s=new Gt,a=new RegExp(i,r),l=new Set;e:for(const o of e){const u=this._getModel(o);if(u){for(const c of u.words(a))if(!(c===n||!isNaN(Number(c)))&&(l.add(c),l.size>et._suggestionsLimit))break e}}return{words:Array.from(l),duration:s.elapsed()}}async $computeWordRanges(e,n,i,r){const s=this._getModel(e);if(!s)return Object.create(null);const a=new RegExp(i,r),l=Object.create(null);for(let o=n.startLineNumber;o<n.endLineNumber;o++){const u=s.getLineWords(o,a);for(const c of u){if(!isNaN(Number(c.word)))continue;let d=l[c.word];d||(d=[],l[c.word]=d),d.push({startLineNumber:o,startColumn:c.startColumn,endLineNumber:o,endColumn:c.endColumn})}}return l}async $navigateValueSet(e,n,i,r,s){const a=this._getModel(e);if(!a)return null;const l=new RegExp(r,s);n.startColumn===n.endColumn&&(n={startLineNumber:n.startLineNumber,startColumn:n.startColumn,endLineNumber:n.endLineNumber,endColumn:n.endColumn+1});const o=a.getValueInRange(n),u=a.getWordAtPosition({lineNumber:n.startLineNumber,column:n.startColumn},l);if(!u)return null;const c=a.getValueInRange(u);return On.INSTANCE.navigateValueSet(n,o,u,c,i)}$fmr(e,n){if(!this._foreignModule||typeof this._foreignModule[e]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,n))}catch(i){return Promise.reject(i)}}};et._diffLimit=1e5,et._suggestionsLimit=1e4;let hi=et;typeof importScripts=="function"&&(globalThis.monaco=Il());const qt=class qt{static getChannel(e){return e.getChannel(qt.CHANNEL_NAME)}static setChannel(e,n){e.setChannel(qt.CHANNEL_NAME,n)}};qt.CHANNEL_NAME="editorWorkerHost";let di=qt;function $u(t){let e;const n=Zo(i=>{const r=di.getChannel(i),a={host:new Proxy({},{get(l,o,u){if(o!=="then"){if(typeof o!="string")throw new Error("Not supported");return(...c)=>r.$fhr(o,c)}}}),getMirrorModels:()=>n.requestHandler.getModels()};return e=t(a),new hi(e)});return e}function Gu(t){self.onmessage=e=>{$u(n=>t(n,e.data))}}function Le(...t){const e=t[0];let 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){const s=t.slice(1);if(e.length!==s.length+1)throw new Error("expected a string as the first argument to l10n.t");let a=e[0];for(let l=1;l<e.length;l++)a+=`{${l-1}}`+e[l];return Le(a,...s)}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??{};return Ju(i,r)}var Xu=/{([^}]+)}/g;function Ju(t,e){return Object.keys(e).length===0?t:t.replace(Xu,(n,i)=>e[i]??n)}var Gs;(function(t){function e(n){return typeof n=="string"}t.is=e})(Gs||(Gs={}));var mi;(function(t){function e(n){return typeof n=="string"}t.is=e})(mi||(mi={}));var Xs;(function(t){t.MIN_VALUE=-2147483648,t.MAX_VALUE=2147483647;function e(n){return typeof n=="number"&&t.MIN_VALUE<=n&&n<=t.MAX_VALUE}t.is=e})(Xs||(Xs={}));var un;(function(t){t.MIN_VALUE=0,t.MAX_VALUE=2147483647;function e(n){return typeof n=="number"&&t.MIN_VALUE<=n&&n<=t.MAX_VALUE}t.is=e})(un||(un={}));var se;(function(t){function e(i,r){return i===Number.MAX_VALUE&&(i=un.MAX_VALUE),r===Number.MAX_VALUE&&(r=un.MAX_VALUE),{line:i,character:r}}t.create=e;function n(i){let r=i;return D.objectLiteral(r)&&D.uinteger(r.line)&&D.uinteger(r.character)}t.is=n})(se||(se={}));var Q;(function(t){function e(i,r,s,a){if(D.uinteger(i)&&D.uinteger(r)&&D.uinteger(s)&&D.uinteger(a))return{start:se.create(i,r),end:se.create(s,a)};if(se.is(i)&&se.is(r))return{start:i,end:r};throw new Error(`Range#create called with invalid arguments[${i}, ${r}, ${s}, ${a}]`)}t.create=e;function n(i){let r=i;return D.objectLiteral(r)&&se.is(r.start)&&se.is(r.end)}t.is=n})(Q||(Q={}));var cn;(function(t){function e(i,r){return{uri:i,range:r}}t.create=e;function n(i){let r=i;return D.objectLiteral(r)&&Q.is(r.range)&&(D.string(r.uri)||D.undefined(r.uri))}t.is=n})(cn||(cn={}));var Js;(function(t){function e(i,r,s,a){return{targetUri:i,targetRange:r,targetSelectionRange:s,originSelectionRange:a}}t.create=e;function n(i){let r=i;return D.objectLiteral(r)&&Q.is(r.targetRange)&&D.string(r.targetUri)&&Q.is(r.targetSelectionRange)&&(Q.is(r.originSelectionRange)||D.undefined(r.originSelectionRange))}t.is=n})(Js||(Js={}));var fi;(function(t){function e(i,r,s,a){return{red:i,green:r,blue:s,alpha:a}}t.create=e;function n(i){const r=i;return D.objectLiteral(r)&&D.numberRange(r.red,0,1)&&D.numberRange(r.green,0,1)&&D.numberRange(r.blue,0,1)&&D.numberRange(r.alpha,0,1)}t.is=n})(fi||(fi={}));var Qs;(function(t){function e(i,r){return{range:i,color:r}}t.create=e;function n(i){const r=i;return D.objectLiteral(r)&&Q.is(r.range)&&fi.is(r.color)}t.is=n})(Qs||(Qs={}));var Ys;(function(t){function e(i,r,s){return{label:i,textEdit:r,additionalTextEdits:s}}t.create=e;function n(i){const r=i;return D.objectLiteral(r)&&D.string(r.label)&&(D.undefined(r.textEdit)||oe.is(r))&&(D.undefined(r.additionalTextEdits)||D.typedArray(r.additionalTextEdits,oe.is))}t.is=n})(Ys||(Ys={}));var hn;(function(t){t.Comment="comment",t.Imports="imports",t.Region="region"})(hn||(hn={}));var Zs;(function(t){function e(i,r,s,a,l,o){const u={startLine:i,endLine:r};return D.defined(s)&&(u.startCharacter=s),D.defined(a)&&(u.endCharacter=a),D.defined(l)&&(u.kind=l),D.defined(o)&&(u.collapsedText=o),u}t.create=e;function n(i){const r=i;return D.objectLiteral(r)&&D.uinteger(r.startLine)&&D.uinteger(r.startLine)&&(D.undefined(r.startCharacter)||D.uinteger(r.startCharacter))&&(D.undefined(r.endCharacter)||D.uinteger(r.endCharacter))&&(D.undefined(r.kind)||D.string(r.kind))}t.is=n})(Zs||(Zs={}));var pi;(function(t){function e(i,r){return{location:i,message:r}}t.create=e;function n(i){let r=i;return D.defined(r)&&cn.is(r.location)&&D.string(r.message)}t.is=n})(pi||(pi={}));var Ks;(function(t){t.Error=1,t.Warning=2,t.Information=3,t.Hint=4})(Ks||(Ks={}));var ea;(function(t){t.Unnecessary=1,t.Deprecated=2})(ea||(ea={}));var ta;(function(t){function e(n){const i=n;return D.objectLiteral(i)&&D.string(i.href)}t.is=e})(ta||(ta={}));var dn;(function(t){function e(i,r,s,a,l,o){let u={range:i,message:r};return D.defined(s)&&(u.severity=s),D.defined(a)&&(u.code=a),D.defined(l)&&(u.source=l),D.defined(o)&&(u.relatedInformation=o),u}t.create=e;function n(i){var r;let s=i;return D.defined(s)&&Q.is(s.range)&&D.string(s.message)&&(D.number(s.severity)||D.undefined(s.severity))&&(D.integer(s.code)||D.string(s.code)||D.undefined(s.code))&&(D.undefined(s.codeDescription)||D.string((r=s.codeDescription)===null||r===void 0?void 0:r.href))&&(D.string(s.source)||D.undefined(s.source))&&(D.undefined(s.relatedInformation)||D.typedArray(s.relatedInformation,pi.is))}t.is=n})(dn||(dn={}));var gt;(function(t){function e(i,r,...s){let a={title:i,command:r};return D.defined(s)&&s.length>0&&(a.arguments=s),a}t.create=e;function n(i){let r=i;return D.defined(r)&&D.string(r.title)&&D.string(r.command)}t.is=n})(gt||(gt={}));var oe;(function(t){function e(s,a){return{range:s,newText:a}}t.replace=e;function n(s,a){return{range:{start:s,end:s},newText:a}}t.insert=n;function i(s){return{range:s,newText:""}}t.del=i;function r(s){const a=s;return D.objectLiteral(a)&&D.string(a.newText)&&Q.is(a.range)}t.is=r})(oe||(oe={}));var gi;(function(t){function e(i,r,s){const a={label:i};return r!==void 0&&(a.needsConfirmation=r),s!==void 0&&(a.description=s),a}t.create=e;function n(i){const r=i;return D.objectLiteral(r)&&D.string(r.label)&&(D.boolean(r.needsConfirmation)||r.needsConfirmation===void 0)&&(D.string(r.description)||r.description===void 0)}t.is=n})(gi||(gi={}));var bt;(function(t){function e(n){const i=n;return D.string(i)}t.is=e})(bt||(bt={}));var na;(function(t){function e(s,a,l){return{range:s,newText:a,annotationId:l}}t.replace=e;function n(s,a,l){return{range:{start:s,end:s},newText:a,annotationId:l}}t.insert=n;function i(s,a){return{range:s,newText:"",annotationId:a}}t.del=i;function r(s){const a=s;return oe.is(a)&&(gi.is(a.annotationId)||bt.is(a.annotationId))}t.is=r})(na||(na={}));var bi;(function(t){function e(i,r){return{textDocument:i,edits:r}}t.create=e;function n(i){let r=i;return D.defined(r)&&Ti.is(r.textDocument)&&Array.isArray(r.edits)}t.is=n})(bi||(bi={}));var wi;(function(t){function e(i,r,s){let a={kind:"create",uri:i};return r!==void 0&&(r.overwrite!==void 0||r.ignoreIfExists!==void 0)&&(a.options=r),s!==void 0&&(a.annotationId=s),a}t.create=e;function n(i){let r=i;return r&&r.kind==="create"&&D.string(r.uri)&&(r.options===void 0||(r.options.overwrite===void 0||D.boolean(r.options.overwrite))&&(r.options.ignoreIfExists===void 0||D.boolean(r.options.ignoreIfExists)))&&(r.annotationId===void 0||bt.is(r.annotationId))}t.is=n})(wi||(wi={}));var _i;(function(t){function e(i,r,s,a){let l={kind:"rename",oldUri:i,newUri:r};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(l.options=s),a!==void 0&&(l.annotationId=a),l}t.create=e;function n(i){let r=i;return r&&r.kind==="rename"&&D.string(r.oldUri)&&D.string(r.newUri)&&(r.options===void 0||(r.options.overwrite===void 0||D.boolean(r.options.overwrite))&&(r.options.ignoreIfExists===void 0||D.boolean(r.options.ignoreIfExists)))&&(r.annotationId===void 0||bt.is(r.annotationId))}t.is=n})(_i||(_i={}));var vi;(function(t){function e(i,r,s){let a={kind:"delete",uri:i};return r!==void 0&&(r.recursive!==void 0||r.ignoreIfNotExists!==void 0)&&(a.options=r),s!==void 0&&(a.annotationId=s),a}t.create=e;function n(i){let r=i;return r&&r.kind==="delete"&&D.string(r.uri)&&(r.options===void 0||(r.options.recursive===void 0||D.boolean(r.options.recursive))&&(r.options.ignoreIfNotExists===void 0||D.boolean(r.options.ignoreIfNotExists)))&&(r.annotationId===void 0||bt.is(r.annotationId))}t.is=n})(vi||(vi={}));var yi;(function(t){function e(n){let i=n;return i&&(i.changes!==void 0||i.documentChanges!==void 0)&&(i.documentChanges===void 0||i.documentChanges.every(r=>D.string(r.kind)?wi.is(r)||_i.is(r)||vi.is(r):bi.is(r)))}t.is=e})(yi||(yi={}));var ia;(function(t){function e(i){return{uri:i}}t.create=e;function n(i){let r=i;return D.defined(r)&&D.string(r.uri)}t.is=n})(ia||(ia={}));var ra;(function(t){function e(i,r){return{uri:i,version:r}}t.create=e;function n(i){let r=i;return D.defined(r)&&D.string(r.uri)&&D.integer(r.version)}t.is=n})(ra||(ra={}));var Ti;(function(t){function e(i,r){return{uri:i,version:r}}t.create=e;function n(i){let r=i;return D.defined(r)&&D.string(r.uri)&&(r.version===null||D.integer(r.version))}t.is=n})(Ti||(Ti={}));var sa;(function(t){function e(i,r,s,a){return{uri:i,languageId:r,version:s,text:a}}t.create=e;function n(i){let r=i;return D.defined(r)&&D.string(r.uri)&&D.string(r.languageId)&&D.integer(r.version)&&D.string(r.text)}t.is=n})(sa||(sa={}));var Be;(function(t){t.PlainText="plaintext",t.Markdown="markdown";function e(n){const i=n;return i===t.PlainText||i===t.Markdown}t.is=e})(Be||(Be={}));var Ht;(function(t){function e(n){const i=n;return D.objectLiteral(n)&&Be.is(i.kind)&&D.string(i.value)}t.is=e})(Ht||(Ht={}));var ge;(function(t){t.Text=1,t.Method=2,t.Function=3,t.Constructor=4,t.Field=5,t.Variable=6,t.Class=7,t.Interface=8,t.Module=9,t.Property=10,t.Unit=11,t.Value=12,t.Enum=13,t.Keyword=14,t.Snippet=15,t.Color=16,t.File=17,t.Reference=18,t.Folder=19,t.EnumMember=20,t.Constant=21,t.Struct=22,t.Event=23,t.Operator=24,t.TypeParameter=25})(ge||(ge={}));var Ce;(function(t){t.PlainText=1,t.Snippet=2})(Ce||(Ce={}));var aa;(function(t){t.Deprecated=1})(aa||(aa={}));var oa;(function(t){function e(i,r,s){return{newText:i,insert:r,replace:s}}t.create=e;function n(i){const r=i;return r&&D.string(r.newText)&&Q.is(r.insert)&&Q.is(r.replace)}t.is=n})(oa||(oa={}));var la;(function(t){t.asIs=1,t.adjustIndentation=2})(la||(la={}));var ua;(function(t){function e(n){const i=n;return i&&(D.string(i.detail)||i.detail===void 0)&&(D.string(i.description)||i.description===void 0)}t.is=e})(ua||(ua={}));var ca;(function(t){function e(n){return{label:n}}t.create=e})(ca||(ca={}));var ha;(function(t){function e(n,i){return{items:n||[],isIncomplete:!!i}}t.create=e})(ha||(ha={}));var mn;(function(t){function e(i){return i.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}t.fromPlainText=e;function n(i){const r=i;return D.string(r)||D.objectLiteral(r)&&D.string(r.language)&&D.string(r.value)}t.is=n})(mn||(mn={}));var da;(function(t){function e(n){let i=n;return!!i&&D.objectLiteral(i)&&(Ht.is(i.contents)||mn.is(i.contents)||D.typedArray(i.contents,mn.is))&&(n.range===void 0||Q.is(n.range))}t.is=e})(da||(da={}));var ma;(function(t){function e(n,i){return i?{label:n,documentation:i}:{label:n}}t.create=e})(ma||(ma={}));var fa;(function(t){function e(n,i,...r){let s={label:n};return D.defined(i)&&(s.documentation=i),D.defined(r)?s.parameters=r:s.parameters=[],s}t.create=e})(fa||(fa={}));var fn;(function(t){t.Text=1,t.Read=2,t.Write=3})(fn||(fn={}));var pa;(function(t){function e(n,i){let r={range:n};return D.number(i)&&(r.kind=i),r}t.create=e})(pa||(pa={}));var xi;(function(t){t.File=1,t.Module=2,t.Namespace=3,t.Package=4,t.Class=5,t.Method=6,t.Property=7,t.Field=8,t.Constructor=9,t.Enum=10,t.Interface=11,t.Function=12,t.Variable=13,t.Constant=14,t.String=15,t.Number=16,t.Boolean=17,t.Array=18,t.Object=19,t.Key=20,t.Null=21,t.EnumMember=22,t.Struct=23,t.Event=24,t.Operator=25,t.TypeParameter=26})(xi||(xi={}));var ga;(function(t){t.Deprecated=1})(ga||(ga={}));var ki;(function(t){function e(n,i,r,s,a){let l={name:n,kind:i,location:{uri:s,range:r}};return a&&(l.containerName=a),l}t.create=e})(ki||(ki={}));var ba;(function(t){function e(n,i,r,s){return s!==void 0?{name:n,kind:i,location:{uri:r,range:s}}:{name:n,kind:i,location:{uri:r}}}t.create=e})(ba||(ba={}));var Si;(function(t){function e(i,r,s,a,l,o){let u={name:i,detail:r,kind:s,range:a,selectionRange:l};return o!==void 0&&(u.children=o),u}t.create=e;function n(i){let r=i;return r&&D.string(r.name)&&D.number(r.kind)&&Q.is(r.range)&&Q.is(r.selectionRange)&&(r.detail===void 0||D.string(r.detail))&&(r.deprecated===void 0||D.boolean(r.deprecated))&&(r.children===void 0||Array.isArray(r.children))&&(r.tags===void 0||Array.isArray(r.tags))}t.is=n})(Si||(Si={}));var wa;(function(t){t.Empty="",t.QuickFix="quickfix",t.Refactor="refactor",t.RefactorExtract="refactor.extract",t.RefactorInline="refactor.inline",t.RefactorRewrite="refactor.rewrite",t.Source="source",t.SourceOrganizeImports="source.organizeImports",t.SourceFixAll="source.fixAll"})(wa||(wa={}));var pn;(function(t){t.Invoked=1,t.Automatic=2})(pn||(pn={}));var _a;(function(t){function e(i,r,s){let a={diagnostics:i};return r!=null&&(a.only=r),s!=null&&(a.triggerKind=s),a}t.create=e;function n(i){let r=i;return D.defined(r)&&D.typedArray(r.diagnostics,dn.is)&&(r.only===void 0||D.typedArray(r.only,D.string))&&(r.triggerKind===void 0||r.triggerKind===pn.Invoked||r.triggerKind===pn.Automatic)}t.is=n})(_a||(_a={}));var va;(function(t){function e(i,r,s){let a={title:i},l=!0;return typeof r=="string"?(l=!1,a.kind=r):gt.is(r)?a.command=r:a.edit=r,l&&s!==void 0&&(a.kind=s),a}t.create=e;function n(i){let r=i;return r&&D.string(r.title)&&(r.diagnostics===void 0||D.typedArray(r.diagnostics,dn.is))&&(r.kind===void 0||D.string(r.kind))&&(r.edit!==void 0||r.command!==void 0)&&(r.command===void 0||gt.is(r.command))&&(r.isPreferred===void 0||D.boolean(r.isPreferred))&&(r.edit===void 0||yi.is(r.edit))}t.is=n})(va||(va={}));var ya;(function(t){function e(i,r){let s={range:i};return D.defined(r)&&(s.data=r),s}t.create=e;function n(i){let r=i;return D.defined(r)&&Q.is(r.range)&&(D.undefined(r.command)||gt.is(r.command))}t.is=n})(ya||(ya={}));var Ta;(function(t){function e(i,r){return{tabSize:i,insertSpaces:r}}t.create=e;function n(i){let r=i;return D.defined(r)&&D.uinteger(r.tabSize)&&D.boolean(r.insertSpaces)}t.is=n})(Ta||(Ta={}));var xa;(function(t){function e(i,r,s){return{range:i,target:r,data:s}}t.create=e;function n(i){let r=i;return D.defined(r)&&Q.is(r.range)&&(D.undefined(r.target)||D.string(r.target))}t.is=n})(xa||(xa={}));var gn;(function(t){function e(i,r){return{range:i,parent:r}}t.create=e;function n(i){let r=i;return D.objectLiteral(r)&&Q.is(r.range)&&(r.parent===void 0||t.is(r.parent))}t.is=n})(gn||(gn={}));var ka;(function(t){t.namespace="namespace",t.type="type",t.class="class",t.enum="enum",t.interface="interface",t.struct="struct",t.typeParameter="typeParameter",t.parameter="parameter",t.variable="variable",t.property="property",t.enumMember="enumMember",t.event="event",t.function="function",t.method="method",t.macro="macro",t.keyword="keyword",t.modifier="modifier",t.comment="comment",t.string="string",t.number="number",t.regexp="regexp",t.operator="operator",t.decorator="decorator"})(ka||(ka={}));var Sa;(function(t){t.declaration="declaration",t.definition="definition",t.readonly="readonly",t.static="static",t.deprecated="deprecated",t.abstract="abstract",t.async="async",t.modification="modification",t.documentation="documentation",t.defaultLibrary="defaultLibrary"})(Sa||(Sa={}));var Aa;(function(t){function e(n){const i=n;return D.objectLiteral(i)&&(i.resultId===void 0||typeof i.resultId=="string")&&Array.isArray(i.data)&&(i.data.length===0||typeof i.data[0]=="number")}t.is=e})(Aa||(Aa={}));var La;(function(t){function e(i,r){return{range:i,text:r}}t.create=e;function n(i){const r=i;return r!=null&&Q.is(r.range)&&D.string(r.text)}t.is=n})(La||(La={}));var Ca;(function(t){function e(i,r,s){return{range:i,variableName:r,caseSensitiveLookup:s}}t.create=e;function n(i){const r=i;return r!=null&&Q.is(r.range)&&D.boolean(r.caseSensitiveLookup)&&(D.string(r.variableName)||r.variableName===void 0)}t.is=n})(Ca||(Ca={}));var Ea;(function(t){function e(i,r){return{range:i,expression:r}}t.create=e;function n(i){const r=i;return r!=null&&Q.is(r.range)&&(D.string(r.expression)||r.expression===void 0)}t.is=n})(Ea||(Ea={}));var Ra;(function(t){function e(i,r){return{frameId:i,stoppedLocation:r}}t.create=e;function n(i){const r=i;return D.defined(r)&&Q.is(i.stoppedLocation)}t.is=n})(Ra||(Ra={}));var Ai;(function(t){t.Type=1,t.Parameter=2;function e(n){return n===1||n===2}t.is=e})(Ai||(Ai={}));var Li;(function(t){function e(i){return{value:i}}t.create=e;function n(i){const r=i;return D.objectLiteral(r)&&(r.tooltip===void 0||D.string(r.tooltip)||Ht.is(r.tooltip))&&(r.location===void 0||cn.is(r.location))&&(r.command===void 0||gt.is(r.command))}t.is=n})(Li||(Li={}));var Da;(function(t){function e(i,r,s){const a={position:i,label:r};return s!==void 0&&(a.kind=s),a}t.create=e;function n(i){const r=i;return D.objectLiteral(r)&&se.is(r.position)&&(D.string(r.label)||D.typedArray(r.label,Li.is))&&(r.kind===void 0||Ai.is(r.kind))&&r.textEdits===void 0||D.typedArray(r.textEdits,oe.is)&&(r.tooltip===void 0||D.string(r.tooltip)||Ht.is(r.tooltip))&&(r.paddingLeft===void 0||D.boolean(r.paddingLeft))&&(r.paddingRight===void 0||D.boolean(r.paddingRight))}t.is=n})(Da||(Da={}));var Ma;(function(t){function e(n){return{kind:"snippet",value:n}}t.createSnippet=e})(Ma||(Ma={}));var Na;(function(t){function e(n,i,r,s){return{insertText:n,filterText:i,range:r,command:s}}t.create=e})(Na||(Na={}));var Ia;(function(t){function e(n){return{items:n}}t.create=e})(Ia||(Ia={}));var za;(function(t){t.Invoked=0,t.Automatic=1})(za||(za={}));var Ha;(function(t){function e(n,i){return{range:n,text:i}}t.create=e})(Ha||(Ha={}));var Ua;(function(t){function e(n,i){return{triggerKind:n,selectedCompletionInfo:i}}t.create=e})(Ua||(Ua={}));var Pa;(function(t){function e(n){const i=n;return D.objectLiteral(i)&&mi.is(i.uri)&&D.string(i.name)}t.is=e})(Pa||(Pa={}));var Wa;(function(t){function e(s,a,l,o){return new Qu(s,a,l,o)}t.create=e;function n(s){let a=s;return!!(D.defined(a)&&D.string(a.uri)&&(D.undefined(a.languageId)||D.string(a.languageId))&&D.uinteger(a.lineCount)&&D.func(a.getText)&&D.func(a.positionAt)&&D.func(a.offsetAt))}t.is=n;function i(s,a){let l=s.getText(),o=r(a,(c,d)=>{let m=c.range.start.line-d.range.start.line;return m===0?c.range.start.character-d.range.start.character:m}),u=l.length;for(let c=o.length-1;c>=0;c--){let d=o[c],m=s.offsetAt(d.range.start),f=s.offsetAt(d.range.end);if(f<=u)l=l.substring(0,m)+d.newText+l.substring(f,l.length);else throw new Error("Overlapping edit");u=m}return l}t.applyEdits=i;function r(s,a){if(s.length<=1)return s;const l=s.length/2|0,o=s.slice(0,l),u=s.slice(l);r(o,a),r(u,a);let c=0,d=0,m=0;for(;c<o.length&&d<u.length;)a(o[c],u[d])<=0?s[m++]=o[c++]:s[m++]=u[d++];for(;c<o.length;)s[m++]=o[c++];for(;d<u.length;)s[m++]=u[d++];return s}})(Wa||(Wa={}));let Qu=class{constructor(e,n,i,r){this._uri=e,this._languageId=n,this._version=i,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let n=this.offsetAt(e.start),i=this.offsetAt(e.end);return this._content.substring(n,i)}return this._content}update(e,n){this._content=e.text,this._version=n,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let e=[],n=this._content,i=!0;for(let r=0;r<n.length;r++){i&&(e.push(r),i=!1);let s=n.charAt(r);i=s==="\r"||s===`
26
+ `)+1,v=h.index-y+1,S=w[w.length-1],I=p===1?v+h[0].length:S.length+1,H={startLineNumber:f,startColumn:v,endLineNumber:T,endColumn:I},W=(h.groups??{}).label??"",b=((h.groups??{}).separator??"")!=="",g={range:H,text:W,hasSeparatorLine:b,shouldBeInComments:!0};(g.text||g.hasSeparatorLine)&&(n.length===0||n[n.length-1].range.endLineNumber<g.range.startLineNumber)&&n.push(g),s.lastIndex=h.index+h[0].length}}return n}function Wu(t){t=t.trim();const e=t.startsWith("-");return t=t.replace(Iu,""),{text:t,hasSeparatorLine:e}}class Vs{get isRejected(){return this.outcome?.outcome===1}get isSettled(){return!!this.outcome}constructor(){this.p=new Promise((e,n)=>{this.completeCallback=e,this.errorCallback=n})}complete(e){return this.isSettled?Promise.resolve():new Promise(n=>{this.completeCallback(e),this.outcome={outcome:0,value:e},n()})}error(e){return this.isSettled?Promise.resolve():new Promise(n=>{this.errorCallback(e),this.outcome={outcome:1,value:e},n()})}cancel(){return this.error(new Hi)}}var js;(function(t){async function e(i){let r;const s=await Promise.all(i.map(a=>a.then(l=>l,l=>{r||(r=l)})));if(typeof r<"u")throw r;return s}t.settled=e;function n(i){return new Promise(async(r,s)=>{try{await i(r,s)}catch(a){s(a)}})}t.withAsyncBody=n})(js||(js={}));class Fu{constructor(){this._unsatisfiedConsumers=[],this._unconsumedValues=[]}get hasFinalValue(){return!!this._finalValue}produce(e){if(this._ensureNoFinalValue(),this._unsatisfiedConsumers.length>0){const n=this._unsatisfiedConsumers.shift();this._resolveOrRejectDeferred(n,e)}else this._unconsumedValues.push(e)}produceFinal(e){this._ensureNoFinalValue(),this._finalValue=e;for(const n of this._unsatisfiedConsumers)this._resolveOrRejectDeferred(n,e);this._unsatisfiedConsumers.length=0}_ensureNoFinalValue(){if(this._finalValue)throw new ue("ProducerConsumer: cannot produce after final value has been set")}_resolveOrRejectDeferred(e,n){n.ok?e.complete(n.value):e.error(n.error)}consume(){if(this._unconsumedValues.length>0||this._finalValue){const e=this._unconsumedValues.length>0?this._unconsumedValues.shift():this._finalValue;return e.ok?Promise.resolve(e.value):Promise.reject(e.error)}else{const e=new Vs;return this._unsatisfiedConsumers.push(e),e.p}}}const he=class he{constructor(e,n){this._onReturn=n,this._producerConsumer=new Fu,this._iterator={next:()=>this._producerConsumer.consume(),return:()=>(this._onReturn?.(),Promise.resolve({done:!0,value:void 0})),throw:async i=>(this._finishError(i),{done:!0,value:void 0})},queueMicrotask(async()=>{const i=e({emitOne:r=>this._producerConsumer.produce({ok:!0,value:{done:!1,value:r}}),emitMany:r=>{for(const s of r)this._producerConsumer.produce({ok:!0,value:{done:!1,value:s}})},reject:r=>this._finishError(r)});if(!this._producerConsumer.hasFinalValue)try{await i,this._finishOk()}catch(r){this._finishError(r)}})}static fromArray(e){return new he(n=>{n.emitMany(e)})}static fromPromise(e){return new he(async n=>{n.emitMany(await e)})}static fromPromisesResolveOrder(e){return new he(async n=>{await Promise.all(e.map(async i=>n.emitOne(await i)))})}static merge(e){return new he(async n=>{await Promise.all(e.map(async i=>{for await(const r of i)n.emitOne(r)}))})}static map(e,n){return new he(async i=>{for await(const r of e)i.emitOne(n(r))})}static tee(e){let n,i;const r=new Vs,s=async()=>{if(!(!n||!i))try{for await(const o of e)n.emitOne(o),i.emitOne(o)}catch(o){n.reject(o),i.reject(o)}finally{r.complete()}},a=new he(async o=>(n=o,s(),r.p)),l=new he(async o=>(i=o,s(),r.p));return[a,l]}map(e){return he.map(this,e)}static coalesce(e){return he.filter(e,n=>!!n)}coalesce(){return he.coalesce(this)}static filter(e,n){return new he(async i=>{for await(const r of e)n(r)&&i.emitOne(r)})}filter(e){return he.filter(this,e)}_finishOk(){this._producerConsumer.hasFinalValue||this._producerConsumer.produceFinal({ok:!0,value:{done:!0,value:void 0}})}_finishError(e){this._producerConsumer.hasFinalValue||this._producerConsumer.produceFinal({ok:!1,error:e})}[Symbol.asyncIterator](){return this._iterator}};he.EMPTY=he.fromArray([]);let $s=he;class Bu{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,n){e=at(e);const i=this.values,r=this.prefixSum,s=n.length;return s===0?!1:(this.values=new Uint32Array(i.length+s),this.values.set(i.subarray(0,e),0),this.values.set(i.subarray(e),e+s),this.values.set(n,e),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(e,n){return e=at(e),n=at(n),this.values[e]===n?!1:(this.values[e]=n,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)}removeValues(e,n){e=at(e),n=at(n);const i=this.values,r=this.prefixSum;if(e>=i.length)return!1;const s=i.length-e;return n>=s&&(n=s),n===0?!1:(this.values=new Uint32Array(i.length-n),this.values.set(i.subarray(0,e),0),this.values.set(i.subarray(e+n),e),this.prefixSum=new Uint32Array(this.values.length),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=at(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let n=this.prefixSumValidIndex[0]+1;n===0&&(this.prefixSum[0]=this.values[0],n++),e>=this.values.length&&(e=this.values.length-1);for(let i=n;i<=e;i++)this.prefixSum[i]=this.prefixSum[i-1]+this.values[i];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let n=0,i=this.values.length-1,r=0,s=0,a=0;for(;n<=i;)if(r=n+(i-n)/2|0,s=this.prefixSum[r],a=s-this.values[r],e<a)i=r-1;else if(e>=s)n=r+1;else break;return new qu(r,e-a)}}class qu{constructor(e,n){this.index=e,this.remainder=n,this._prefixSumIndexOfResultBrand=void 0,this.index=e,this.remainder=n}}class Ou{constructor(e,n,i,r){this._uri=e,this._lines=n,this._eol=i,this._versionId=r,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return this._cachedTextValue===null&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);const n=e.changes;for(const i of n)this._acceptDeleteRange(i.range),this._acceptInsertText(new K(i.range.startLineNumber,i.range.startColumn),i.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const e=this._eol.length,n=this._lines.length,i=new Uint32Array(n);for(let r=0;r<n;r++)i[r]=this._lines[r].length+e;this._lineStarts=new Bu(i)}}_setLineText(e,n){this._lines[e]=n,this._lineStarts&&this._lineStarts.setValue(e,this._lines[e].length+this._eol.length)}_acceptDeleteRange(e){if(e.startLineNumber===e.endLineNumber){if(e.startColumn===e.endColumn)return;this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.startLineNumber-1].substring(e.endColumn-1));return}this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.endLineNumber-1].substring(e.endColumn-1)),this._lines.splice(e.startLineNumber,e.endLineNumber-e.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(e.startLineNumber,e.endLineNumber-e.startLineNumber)}_acceptInsertText(e,n){if(n.length===0)return;const i=zo(n);if(i.length===1){this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+i[0]+this._lines[e.lineNumber-1].substring(e.column-1));return}i[i.length-1]+=this._lines[e.lineNumber-1].substring(e.column-1),this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+i[0]);const r=new Uint32Array(i.length-1);for(let s=1;s<i.length;s++)this._lines.splice(e.lineNumber+s-1,0,i[s]),r[s-1]=i[s].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,r)}}class Vu{constructor(){this._models=Object.create(null)}getModel(e){return this._models[e]}getModels(){const e=[];return Object.keys(this._models).forEach(n=>e.push(this._models[n])),e}$acceptNewModel(e){this._models[e.url]=new ju(Jn.parse(e.url),e.lines,e.EOL,e.versionId)}$acceptModelChanged(e,n){if(!this._models[e])return;this._models[e].onEvents(n)}$acceptRemovedModel(e){this._models[e]&&delete this._models[e]}}class ju extends Ou{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(e){const n=[];for(let i=0;i<this._lines.length;i++){const r=this._lines[i],s=this.offsetAt(new K(i+1,1)),a=r.matchAll(e);for(const l of a)(l.index||l.index===0)&&(l.index=l.index+s),n.push(l)}return n}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(e){return this._lines[e-1]}getWordAtPosition(e,n){const i=ii(e.column,bs(n),this._lines[e.lineNumber-1],0);return i?new j(e.lineNumber,i.startColumn,e.lineNumber,i.endColumn):null}words(e){const n=this._lines,i=this._wordenize.bind(this);let r=0,s="",a=0,l=[];return{*[Symbol.iterator](){for(;;)if(a<l.length){const o=s.substring(l[a].start,l[a].end);a+=1,yield o}else if(r<n.length)s=n[r],l=i(s,e),a=0,r+=1;else break}}}getLineWords(e,n){const i=this._lines[e-1],r=this._wordenize(i,n),s=[];for(const a of r)s.push({word:i.substring(a.start,a.end),startColumn:a.start+1,endColumn:a.end+1});return s}_wordenize(e,n){const i=[];let r;for(n.lastIndex=0;(r=n.exec(e))&&r[0].length!==0;)i.push({start:r.index,end:r.index+r[0].length});return i}getValueInRange(e){if(e=this._validateRange(e),e.startLineNumber===e.endLineNumber)return this._lines[e.startLineNumber-1].substring(e.startColumn-1,e.endColumn-1);const n=this._eol,i=e.startLineNumber-1,r=e.endLineNumber-1,s=[];s.push(this._lines[i].substring(e.startColumn-1));for(let a=i+1;a<r;a++)s.push(this._lines[a]);return s.push(this._lines[r].substring(0,e.endColumn-1)),s.join(n)}offsetAt(e){return e=this._validatePosition(e),this._ensureLineStarts(),this._lineStarts.getPrefixSum(e.lineNumber-2)+(e.column-1)}positionAt(e){e=Math.floor(e),e=Math.max(0,e),this._ensureLineStarts();const n=this._lineStarts.getIndexOf(e),i=this._lines[n.index].length;return{lineNumber:1+n.index,column:1+Math.min(n.remainder,i)}}_validateRange(e){const n=this._validatePosition({lineNumber:e.startLineNumber,column:e.startColumn}),i=this._validatePosition({lineNumber:e.endLineNumber,column:e.endColumn});return n.lineNumber!==e.startLineNumber||n.column!==e.startColumn||i.lineNumber!==e.endLineNumber||i.column!==e.endColumn?{startLineNumber:n.lineNumber,startColumn:n.column,endLineNumber:i.lineNumber,endColumn:i.column}:e}_validatePosition(e){if(!K.isIPosition(e))throw new Error("bad position");let{lineNumber:n,column:i}=e,r=!1;if(n<1)n=1,i=1,r=!0;else if(n>this._lines.length)n=this._lines.length,i=this._lines[n-1].length+1,r=!0;else{const s=this._lines[n-1].length+1;i<1?(i=1,r=!0):i>s&&(i=s,r=!0)}return r?{lineNumber:n,column:i}:e}}const et=class et{constructor(e=null){this._foreignModule=e,this._requestHandlerBrand=void 0,this._workerTextModelSyncServer=new Vu}dispose(){}async $ping(){return"pong"}_getModel(e){return this._workerTextModelSyncServer.getModel(e)}getModels(){return this._workerTextModelSyncServer.getModels()}$acceptNewModel(e){this._workerTextModelSyncServer.$acceptNewModel(e)}$acceptModelChanged(e,n){this._workerTextModelSyncServer.$acceptModelChanged(e,n)}$acceptRemovedModel(e){this._workerTextModelSyncServer.$acceptRemovedModel(e)}async $computeUnicodeHighlights(e,n,i){const r=this._getModel(e);return r?Gl.computeUnicodeHighlights(r,n,i):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async $findSectionHeaders(e,n){const i=this._getModel(e);return i?Hu(i,n):[]}async $computeDiff(e,n,i,r){const s=this._getModel(e),a=this._getModel(n);return!s||!a?null:et.computeDiff(s,a,i,r)}static computeDiff(e,n,i,r){const s=r==="advanced"?Ws.getDefault():Ws.getLegacy(),a=e.getLinesContent(),l=n.getLinesContent(),o=s.computeDiff(a,l,i),u=o.changes.length>0?!1:this._modelsAreIdentical(e,n);function h(d){return d.map(m=>[m.original.startLineNumber,m.original.endLineNumberExclusive,m.modified.startLineNumber,m.modified.endLineNumberExclusive,m.innerChanges?.map(f=>[f.originalRange.startLineNumber,f.originalRange.startColumn,f.originalRange.endLineNumber,f.originalRange.endColumn,f.modifiedRange.startLineNumber,f.modifiedRange.startColumn,f.modifiedRange.endLineNumber,f.modifiedRange.endColumn])])}return{identical:u,quitEarly:o.hitTimeout,changes:h(o.changes),moves:o.moves.map(d=>[d.lineRangeMapping.original.startLineNumber,d.lineRangeMapping.original.endLineNumberExclusive,d.lineRangeMapping.modified.startLineNumber,d.lineRangeMapping.modified.endLineNumberExclusive,h(d.changes)])}}static _modelsAreIdentical(e,n){const i=e.getLineCount(),r=n.getLineCount();if(i!==r)return!1;for(let s=1;s<=i;s++){const a=e.getLineContent(s),l=n.getLineContent(s);if(a!==l)return!1}return!0}async $computeMoreMinimalEdits(e,n,i){const r=this._getModel(e);if(!r)return n;const s=[];let a;n=n.slice(0).sort((o,u)=>{if(o.range&&u.range)return j.compareRangesUsingStarts(o.range,u.range);const h=o.range?0:1,d=u.range?0:1;return h-d});let l=0;for(let o=1;o<n.length;o++)j.getEndPosition(n[l].range).equals(j.getStartPosition(n[o].range))?(n[l].range=j.fromPositions(j.getStartPosition(n[l].range),j.getEndPosition(n[o].range)),n[l].text+=n[o].text):(l++,n[l]=n[o]);n.length=l+1;for(let{range:o,text:u,eol:h}of n){if(typeof h=="number"&&(a=h),j.isEmpty(o)&&!u)continue;const d=r.getValueInRange(o);if(u=u.replace(/\r\n|\n|\r/g,r.eol),d===u)continue;if(Math.max(u.length,d.length)>et._diffLimit){s.push({range:o,text:u});continue}const m=el(d,u,i),f=r.offsetAt(j.lift(o).getStartPosition());for(const w of m){const p=r.positionAt(f+w.originalStart),T=r.positionAt(f+w.originalStart+w.originalLength),y={text:u.substr(w.modifiedStart,w.modifiedLength),range:{startLineNumber:p.lineNumber,startColumn:p.column,endLineNumber:T.lineNumber,endColumn:T.column}};r.getValueInRange(y.range)!==y.text&&s.push(y)}}return typeof a=="number"&&s.push({eol:a,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),s}async $computeLinks(e){const n=this._getModel(e);return n?sl(n):null}async $computeDefaultDocumentColors(e){const n=this._getModel(e);return n?Nu(n):null}async $textualSuggest(e,n,i,r){const s=new Gt,a=new RegExp(i,r),l=new Set;e:for(const o of e){const u=this._getModel(o);if(u){for(const h of u.words(a))if(!(h===n||!isNaN(Number(h)))&&(l.add(h),l.size>et._suggestionsLimit))break e}}return{words:Array.from(l),duration:s.elapsed()}}async $computeWordRanges(e,n,i,r){const s=this._getModel(e);if(!s)return Object.create(null);const a=new RegExp(i,r),l=Object.create(null);for(let o=n.startLineNumber;o<n.endLineNumber;o++){const u=s.getLineWords(o,a);for(const h of u){if(!isNaN(Number(h.word)))continue;let d=l[h.word];d||(d=[],l[h.word]=d),d.push({startLineNumber:o,startColumn:h.startColumn,endLineNumber:o,endColumn:h.endColumn})}}return l}async $navigateValueSet(e,n,i,r,s){const a=this._getModel(e);if(!a)return null;const l=new RegExp(r,s);n.startColumn===n.endColumn&&(n={startLineNumber:n.startLineNumber,startColumn:n.startColumn,endLineNumber:n.endLineNumber,endColumn:n.endColumn+1});const o=a.getValueInRange(n),u=a.getWordAtPosition({lineNumber:n.startLineNumber,column:n.startColumn},l);if(!u)return null;const h=a.getValueInRange(u);return On.INSTANCE.navigateValueSet(n,o,u,h,i)}$fmr(e,n){if(!this._foreignModule||typeof this._foreignModule[e]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,n))}catch(i){return Promise.reject(i)}}};et._diffLimit=1e5,et._suggestionsLimit=1e4;let hi=et;typeof importScripts=="function"&&(globalThis.monaco=Il());const qt=class qt{static getChannel(e){return e.getChannel(qt.CHANNEL_NAME)}static setChannel(e,n){e.setChannel(qt.CHANNEL_NAME,n)}};qt.CHANNEL_NAME="editorWorkerHost";let di=qt;function $u(t){let e;const n=Zo(i=>{const r=di.getChannel(i),a={host:new Proxy({},{get(l,o,u){if(o!=="then"){if(typeof o!="string")throw new Error("Not supported");return(...h)=>r.$fhr(o,h)}}}),getMirrorModels:()=>n.requestHandler.getModels()};return e=t(a),new hi(e)});return e}function Gu(t){self.onmessage=e=>{$u(n=>t(n,e.data))}}function Le(...t){const e=t[0];let 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){const s=t.slice(1);if(e.length!==s.length+1)throw new Error("expected a string as the first argument to l10n.t");let a=e[0];for(let l=1;l<e.length;l++)a+=`{${l-1}}`+e[l];return Le(a,...s)}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??{};return Ju(i,r)}var Xu=/{([^}]+)}/g;function Ju(t,e){return Object.keys(e).length===0?t:t.replace(Xu,(n,i)=>e[i]??n)}var Gs;(function(t){function e(n){return typeof n=="string"}t.is=e})(Gs||(Gs={}));var mi;(function(t){function e(n){return typeof n=="string"}t.is=e})(mi||(mi={}));var Xs;(function(t){t.MIN_VALUE=-2147483648,t.MAX_VALUE=2147483647;function e(n){return typeof n=="number"&&t.MIN_VALUE<=n&&n<=t.MAX_VALUE}t.is=e})(Xs||(Xs={}));var un;(function(t){t.MIN_VALUE=0,t.MAX_VALUE=2147483647;function e(n){return typeof n=="number"&&t.MIN_VALUE<=n&&n<=t.MAX_VALUE}t.is=e})(un||(un={}));var se;(function(t){function e(i,r){return i===Number.MAX_VALUE&&(i=un.MAX_VALUE),r===Number.MAX_VALUE&&(r=un.MAX_VALUE),{line:i,character:r}}t.create=e;function n(i){let r=i;return D.objectLiteral(r)&&D.uinteger(r.line)&&D.uinteger(r.character)}t.is=n})(se||(se={}));var Q;(function(t){function e(i,r,s,a){if(D.uinteger(i)&&D.uinteger(r)&&D.uinteger(s)&&D.uinteger(a))return{start:se.create(i,r),end:se.create(s,a)};if(se.is(i)&&se.is(r))return{start:i,end:r};throw new Error(`Range#create called with invalid arguments[${i}, ${r}, ${s}, ${a}]`)}t.create=e;function n(i){let r=i;return D.objectLiteral(r)&&se.is(r.start)&&se.is(r.end)}t.is=n})(Q||(Q={}));var cn;(function(t){function e(i,r){return{uri:i,range:r}}t.create=e;function n(i){let r=i;return D.objectLiteral(r)&&Q.is(r.range)&&(D.string(r.uri)||D.undefined(r.uri))}t.is=n})(cn||(cn={}));var Js;(function(t){function e(i,r,s,a){return{targetUri:i,targetRange:r,targetSelectionRange:s,originSelectionRange:a}}t.create=e;function n(i){let r=i;return D.objectLiteral(r)&&Q.is(r.targetRange)&&D.string(r.targetUri)&&Q.is(r.targetSelectionRange)&&(Q.is(r.originSelectionRange)||D.undefined(r.originSelectionRange))}t.is=n})(Js||(Js={}));var fi;(function(t){function e(i,r,s,a){return{red:i,green:r,blue:s,alpha:a}}t.create=e;function n(i){const r=i;return D.objectLiteral(r)&&D.numberRange(r.red,0,1)&&D.numberRange(r.green,0,1)&&D.numberRange(r.blue,0,1)&&D.numberRange(r.alpha,0,1)}t.is=n})(fi||(fi={}));var Qs;(function(t){function e(i,r){return{range:i,color:r}}t.create=e;function n(i){const r=i;return D.objectLiteral(r)&&Q.is(r.range)&&fi.is(r.color)}t.is=n})(Qs||(Qs={}));var Ys;(function(t){function e(i,r,s){return{label:i,textEdit:r,additionalTextEdits:s}}t.create=e;function n(i){const r=i;return D.objectLiteral(r)&&D.string(r.label)&&(D.undefined(r.textEdit)||oe.is(r))&&(D.undefined(r.additionalTextEdits)||D.typedArray(r.additionalTextEdits,oe.is))}t.is=n})(Ys||(Ys={}));var hn;(function(t){t.Comment="comment",t.Imports="imports",t.Region="region"})(hn||(hn={}));var Zs;(function(t){function e(i,r,s,a,l,o){const u={startLine:i,endLine:r};return D.defined(s)&&(u.startCharacter=s),D.defined(a)&&(u.endCharacter=a),D.defined(l)&&(u.kind=l),D.defined(o)&&(u.collapsedText=o),u}t.create=e;function n(i){const r=i;return D.objectLiteral(r)&&D.uinteger(r.startLine)&&D.uinteger(r.startLine)&&(D.undefined(r.startCharacter)||D.uinteger(r.startCharacter))&&(D.undefined(r.endCharacter)||D.uinteger(r.endCharacter))&&(D.undefined(r.kind)||D.string(r.kind))}t.is=n})(Zs||(Zs={}));var pi;(function(t){function e(i,r){return{location:i,message:r}}t.create=e;function n(i){let r=i;return D.defined(r)&&cn.is(r.location)&&D.string(r.message)}t.is=n})(pi||(pi={}));var Ks;(function(t){t.Error=1,t.Warning=2,t.Information=3,t.Hint=4})(Ks||(Ks={}));var ea;(function(t){t.Unnecessary=1,t.Deprecated=2})(ea||(ea={}));var ta;(function(t){function e(n){const i=n;return D.objectLiteral(i)&&D.string(i.href)}t.is=e})(ta||(ta={}));var dn;(function(t){function e(i,r,s,a,l,o){let u={range:i,message:r};return D.defined(s)&&(u.severity=s),D.defined(a)&&(u.code=a),D.defined(l)&&(u.source=l),D.defined(o)&&(u.relatedInformation=o),u}t.create=e;function n(i){var r;let s=i;return D.defined(s)&&Q.is(s.range)&&D.string(s.message)&&(D.number(s.severity)||D.undefined(s.severity))&&(D.integer(s.code)||D.string(s.code)||D.undefined(s.code))&&(D.undefined(s.codeDescription)||D.string((r=s.codeDescription)===null||r===void 0?void 0:r.href))&&(D.string(s.source)||D.undefined(s.source))&&(D.undefined(s.relatedInformation)||D.typedArray(s.relatedInformation,pi.is))}t.is=n})(dn||(dn={}));var gt;(function(t){function e(i,r,...s){let a={title:i,command:r};return D.defined(s)&&s.length>0&&(a.arguments=s),a}t.create=e;function n(i){let r=i;return D.defined(r)&&D.string(r.title)&&D.string(r.command)}t.is=n})(gt||(gt={}));var oe;(function(t){function e(s,a){return{range:s,newText:a}}t.replace=e;function n(s,a){return{range:{start:s,end:s},newText:a}}t.insert=n;function i(s){return{range:s,newText:""}}t.del=i;function r(s){const a=s;return D.objectLiteral(a)&&D.string(a.newText)&&Q.is(a.range)}t.is=r})(oe||(oe={}));var gi;(function(t){function e(i,r,s){const a={label:i};return r!==void 0&&(a.needsConfirmation=r),s!==void 0&&(a.description=s),a}t.create=e;function n(i){const r=i;return D.objectLiteral(r)&&D.string(r.label)&&(D.boolean(r.needsConfirmation)||r.needsConfirmation===void 0)&&(D.string(r.description)||r.description===void 0)}t.is=n})(gi||(gi={}));var bt;(function(t){function e(n){const i=n;return D.string(i)}t.is=e})(bt||(bt={}));var na;(function(t){function e(s,a,l){return{range:s,newText:a,annotationId:l}}t.replace=e;function n(s,a,l){return{range:{start:s,end:s},newText:a,annotationId:l}}t.insert=n;function i(s,a){return{range:s,newText:"",annotationId:a}}t.del=i;function r(s){const a=s;return oe.is(a)&&(gi.is(a.annotationId)||bt.is(a.annotationId))}t.is=r})(na||(na={}));var bi;(function(t){function e(i,r){return{textDocument:i,edits:r}}t.create=e;function n(i){let r=i;return D.defined(r)&&Ti.is(r.textDocument)&&Array.isArray(r.edits)}t.is=n})(bi||(bi={}));var wi;(function(t){function e(i,r,s){let a={kind:"create",uri:i};return r!==void 0&&(r.overwrite!==void 0||r.ignoreIfExists!==void 0)&&(a.options=r),s!==void 0&&(a.annotationId=s),a}t.create=e;function n(i){let r=i;return r&&r.kind==="create"&&D.string(r.uri)&&(r.options===void 0||(r.options.overwrite===void 0||D.boolean(r.options.overwrite))&&(r.options.ignoreIfExists===void 0||D.boolean(r.options.ignoreIfExists)))&&(r.annotationId===void 0||bt.is(r.annotationId))}t.is=n})(wi||(wi={}));var _i;(function(t){function e(i,r,s,a){let l={kind:"rename",oldUri:i,newUri:r};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(l.options=s),a!==void 0&&(l.annotationId=a),l}t.create=e;function n(i){let r=i;return r&&r.kind==="rename"&&D.string(r.oldUri)&&D.string(r.newUri)&&(r.options===void 0||(r.options.overwrite===void 0||D.boolean(r.options.overwrite))&&(r.options.ignoreIfExists===void 0||D.boolean(r.options.ignoreIfExists)))&&(r.annotationId===void 0||bt.is(r.annotationId))}t.is=n})(_i||(_i={}));var vi;(function(t){function e(i,r,s){let a={kind:"delete",uri:i};return r!==void 0&&(r.recursive!==void 0||r.ignoreIfNotExists!==void 0)&&(a.options=r),s!==void 0&&(a.annotationId=s),a}t.create=e;function n(i){let r=i;return r&&r.kind==="delete"&&D.string(r.uri)&&(r.options===void 0||(r.options.recursive===void 0||D.boolean(r.options.recursive))&&(r.options.ignoreIfNotExists===void 0||D.boolean(r.options.ignoreIfNotExists)))&&(r.annotationId===void 0||bt.is(r.annotationId))}t.is=n})(vi||(vi={}));var yi;(function(t){function e(n){let i=n;return i&&(i.changes!==void 0||i.documentChanges!==void 0)&&(i.documentChanges===void 0||i.documentChanges.every(r=>D.string(r.kind)?wi.is(r)||_i.is(r)||vi.is(r):bi.is(r)))}t.is=e})(yi||(yi={}));var ia;(function(t){function e(i){return{uri:i}}t.create=e;function n(i){let r=i;return D.defined(r)&&D.string(r.uri)}t.is=n})(ia||(ia={}));var ra;(function(t){function e(i,r){return{uri:i,version:r}}t.create=e;function n(i){let r=i;return D.defined(r)&&D.string(r.uri)&&D.integer(r.version)}t.is=n})(ra||(ra={}));var Ti;(function(t){function e(i,r){return{uri:i,version:r}}t.create=e;function n(i){let r=i;return D.defined(r)&&D.string(r.uri)&&(r.version===null||D.integer(r.version))}t.is=n})(Ti||(Ti={}));var sa;(function(t){function e(i,r,s,a){return{uri:i,languageId:r,version:s,text:a}}t.create=e;function n(i){let r=i;return D.defined(r)&&D.string(r.uri)&&D.string(r.languageId)&&D.integer(r.version)&&D.string(r.text)}t.is=n})(sa||(sa={}));var Be;(function(t){t.PlainText="plaintext",t.Markdown="markdown";function e(n){const i=n;return i===t.PlainText||i===t.Markdown}t.is=e})(Be||(Be={}));var Ht;(function(t){function e(n){const i=n;return D.objectLiteral(n)&&Be.is(i.kind)&&D.string(i.value)}t.is=e})(Ht||(Ht={}));var ge;(function(t){t.Text=1,t.Method=2,t.Function=3,t.Constructor=4,t.Field=5,t.Variable=6,t.Class=7,t.Interface=8,t.Module=9,t.Property=10,t.Unit=11,t.Value=12,t.Enum=13,t.Keyword=14,t.Snippet=15,t.Color=16,t.File=17,t.Reference=18,t.Folder=19,t.EnumMember=20,t.Constant=21,t.Struct=22,t.Event=23,t.Operator=24,t.TypeParameter=25})(ge||(ge={}));var Ce;(function(t){t.PlainText=1,t.Snippet=2})(Ce||(Ce={}));var aa;(function(t){t.Deprecated=1})(aa||(aa={}));var oa;(function(t){function e(i,r,s){return{newText:i,insert:r,replace:s}}t.create=e;function n(i){const r=i;return r&&D.string(r.newText)&&Q.is(r.insert)&&Q.is(r.replace)}t.is=n})(oa||(oa={}));var la;(function(t){t.asIs=1,t.adjustIndentation=2})(la||(la={}));var ua;(function(t){function e(n){const i=n;return i&&(D.string(i.detail)||i.detail===void 0)&&(D.string(i.description)||i.description===void 0)}t.is=e})(ua||(ua={}));var ca;(function(t){function e(n){return{label:n}}t.create=e})(ca||(ca={}));var ha;(function(t){function e(n,i){return{items:n||[],isIncomplete:!!i}}t.create=e})(ha||(ha={}));var mn;(function(t){function e(i){return i.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}t.fromPlainText=e;function n(i){const r=i;return D.string(r)||D.objectLiteral(r)&&D.string(r.language)&&D.string(r.value)}t.is=n})(mn||(mn={}));var da;(function(t){function e(n){let i=n;return!!i&&D.objectLiteral(i)&&(Ht.is(i.contents)||mn.is(i.contents)||D.typedArray(i.contents,mn.is))&&(n.range===void 0||Q.is(n.range))}t.is=e})(da||(da={}));var ma;(function(t){function e(n,i){return i?{label:n,documentation:i}:{label:n}}t.create=e})(ma||(ma={}));var fa;(function(t){function e(n,i,...r){let s={label:n};return D.defined(i)&&(s.documentation=i),D.defined(r)?s.parameters=r:s.parameters=[],s}t.create=e})(fa||(fa={}));var fn;(function(t){t.Text=1,t.Read=2,t.Write=3})(fn||(fn={}));var pa;(function(t){function e(n,i){let r={range:n};return D.number(i)&&(r.kind=i),r}t.create=e})(pa||(pa={}));var xi;(function(t){t.File=1,t.Module=2,t.Namespace=3,t.Package=4,t.Class=5,t.Method=6,t.Property=7,t.Field=8,t.Constructor=9,t.Enum=10,t.Interface=11,t.Function=12,t.Variable=13,t.Constant=14,t.String=15,t.Number=16,t.Boolean=17,t.Array=18,t.Object=19,t.Key=20,t.Null=21,t.EnumMember=22,t.Struct=23,t.Event=24,t.Operator=25,t.TypeParameter=26})(xi||(xi={}));var ga;(function(t){t.Deprecated=1})(ga||(ga={}));var ki;(function(t){function e(n,i,r,s,a){let l={name:n,kind:i,location:{uri:s,range:r}};return a&&(l.containerName=a),l}t.create=e})(ki||(ki={}));var ba;(function(t){function e(n,i,r,s){return s!==void 0?{name:n,kind:i,location:{uri:r,range:s}}:{name:n,kind:i,location:{uri:r}}}t.create=e})(ba||(ba={}));var Si;(function(t){function e(i,r,s,a,l,o){let u={name:i,detail:r,kind:s,range:a,selectionRange:l};return o!==void 0&&(u.children=o),u}t.create=e;function n(i){let r=i;return r&&D.string(r.name)&&D.number(r.kind)&&Q.is(r.range)&&Q.is(r.selectionRange)&&(r.detail===void 0||D.string(r.detail))&&(r.deprecated===void 0||D.boolean(r.deprecated))&&(r.children===void 0||Array.isArray(r.children))&&(r.tags===void 0||Array.isArray(r.tags))}t.is=n})(Si||(Si={}));var wa;(function(t){t.Empty="",t.QuickFix="quickfix",t.Refactor="refactor",t.RefactorExtract="refactor.extract",t.RefactorInline="refactor.inline",t.RefactorRewrite="refactor.rewrite",t.Source="source",t.SourceOrganizeImports="source.organizeImports",t.SourceFixAll="source.fixAll"})(wa||(wa={}));var pn;(function(t){t.Invoked=1,t.Automatic=2})(pn||(pn={}));var _a;(function(t){function e(i,r,s){let a={diagnostics:i};return r!=null&&(a.only=r),s!=null&&(a.triggerKind=s),a}t.create=e;function n(i){let r=i;return D.defined(r)&&D.typedArray(r.diagnostics,dn.is)&&(r.only===void 0||D.typedArray(r.only,D.string))&&(r.triggerKind===void 0||r.triggerKind===pn.Invoked||r.triggerKind===pn.Automatic)}t.is=n})(_a||(_a={}));var va;(function(t){function e(i,r,s){let a={title:i},l=!0;return typeof r=="string"?(l=!1,a.kind=r):gt.is(r)?a.command=r:a.edit=r,l&&s!==void 0&&(a.kind=s),a}t.create=e;function n(i){let r=i;return r&&D.string(r.title)&&(r.diagnostics===void 0||D.typedArray(r.diagnostics,dn.is))&&(r.kind===void 0||D.string(r.kind))&&(r.edit!==void 0||r.command!==void 0)&&(r.command===void 0||gt.is(r.command))&&(r.isPreferred===void 0||D.boolean(r.isPreferred))&&(r.edit===void 0||yi.is(r.edit))}t.is=n})(va||(va={}));var ya;(function(t){function e(i,r){let s={range:i};return D.defined(r)&&(s.data=r),s}t.create=e;function n(i){let r=i;return D.defined(r)&&Q.is(r.range)&&(D.undefined(r.command)||gt.is(r.command))}t.is=n})(ya||(ya={}));var Ta;(function(t){function e(i,r){return{tabSize:i,insertSpaces:r}}t.create=e;function n(i){let r=i;return D.defined(r)&&D.uinteger(r.tabSize)&&D.boolean(r.insertSpaces)}t.is=n})(Ta||(Ta={}));var xa;(function(t){function e(i,r,s){return{range:i,target:r,data:s}}t.create=e;function n(i){let r=i;return D.defined(r)&&Q.is(r.range)&&(D.undefined(r.target)||D.string(r.target))}t.is=n})(xa||(xa={}));var gn;(function(t){function e(i,r){return{range:i,parent:r}}t.create=e;function n(i){let r=i;return D.objectLiteral(r)&&Q.is(r.range)&&(r.parent===void 0||t.is(r.parent))}t.is=n})(gn||(gn={}));var ka;(function(t){t.namespace="namespace",t.type="type",t.class="class",t.enum="enum",t.interface="interface",t.struct="struct",t.typeParameter="typeParameter",t.parameter="parameter",t.variable="variable",t.property="property",t.enumMember="enumMember",t.event="event",t.function="function",t.method="method",t.macro="macro",t.keyword="keyword",t.modifier="modifier",t.comment="comment",t.string="string",t.number="number",t.regexp="regexp",t.operator="operator",t.decorator="decorator"})(ka||(ka={}));var Sa;(function(t){t.declaration="declaration",t.definition="definition",t.readonly="readonly",t.static="static",t.deprecated="deprecated",t.abstract="abstract",t.async="async",t.modification="modification",t.documentation="documentation",t.defaultLibrary="defaultLibrary"})(Sa||(Sa={}));var Aa;(function(t){function e(n){const i=n;return D.objectLiteral(i)&&(i.resultId===void 0||typeof i.resultId=="string")&&Array.isArray(i.data)&&(i.data.length===0||typeof i.data[0]=="number")}t.is=e})(Aa||(Aa={}));var La;(function(t){function e(i,r){return{range:i,text:r}}t.create=e;function n(i){const r=i;return r!=null&&Q.is(r.range)&&D.string(r.text)}t.is=n})(La||(La={}));var Ca;(function(t){function e(i,r,s){return{range:i,variableName:r,caseSensitiveLookup:s}}t.create=e;function n(i){const r=i;return r!=null&&Q.is(r.range)&&D.boolean(r.caseSensitiveLookup)&&(D.string(r.variableName)||r.variableName===void 0)}t.is=n})(Ca||(Ca={}));var Ea;(function(t){function e(i,r){return{range:i,expression:r}}t.create=e;function n(i){const r=i;return r!=null&&Q.is(r.range)&&(D.string(r.expression)||r.expression===void 0)}t.is=n})(Ea||(Ea={}));var Ra;(function(t){function e(i,r){return{frameId:i,stoppedLocation:r}}t.create=e;function n(i){const r=i;return D.defined(r)&&Q.is(i.stoppedLocation)}t.is=n})(Ra||(Ra={}));var Ai;(function(t){t.Type=1,t.Parameter=2;function e(n){return n===1||n===2}t.is=e})(Ai||(Ai={}));var Li;(function(t){function e(i){return{value:i}}t.create=e;function n(i){const r=i;return D.objectLiteral(r)&&(r.tooltip===void 0||D.string(r.tooltip)||Ht.is(r.tooltip))&&(r.location===void 0||cn.is(r.location))&&(r.command===void 0||gt.is(r.command))}t.is=n})(Li||(Li={}));var Da;(function(t){function e(i,r,s){const a={position:i,label:r};return s!==void 0&&(a.kind=s),a}t.create=e;function n(i){const r=i;return D.objectLiteral(r)&&se.is(r.position)&&(D.string(r.label)||D.typedArray(r.label,Li.is))&&(r.kind===void 0||Ai.is(r.kind))&&r.textEdits===void 0||D.typedArray(r.textEdits,oe.is)&&(r.tooltip===void 0||D.string(r.tooltip)||Ht.is(r.tooltip))&&(r.paddingLeft===void 0||D.boolean(r.paddingLeft))&&(r.paddingRight===void 0||D.boolean(r.paddingRight))}t.is=n})(Da||(Da={}));var Ma;(function(t){function e(n){return{kind:"snippet",value:n}}t.createSnippet=e})(Ma||(Ma={}));var Na;(function(t){function e(n,i,r,s){return{insertText:n,filterText:i,range:r,command:s}}t.create=e})(Na||(Na={}));var Ia;(function(t){function e(n){return{items:n}}t.create=e})(Ia||(Ia={}));var za;(function(t){t.Invoked=0,t.Automatic=1})(za||(za={}));var Ha;(function(t){function e(n,i){return{range:n,text:i}}t.create=e})(Ha||(Ha={}));var Ua;(function(t){function e(n,i){return{triggerKind:n,selectedCompletionInfo:i}}t.create=e})(Ua||(Ua={}));var Pa;(function(t){function e(n){const i=n;return D.objectLiteral(i)&&mi.is(i.uri)&&D.string(i.name)}t.is=e})(Pa||(Pa={}));var Wa;(function(t){function e(s,a,l,o){return new Qu(s,a,l,o)}t.create=e;function n(s){let a=s;return!!(D.defined(a)&&D.string(a.uri)&&(D.undefined(a.languageId)||D.string(a.languageId))&&D.uinteger(a.lineCount)&&D.func(a.getText)&&D.func(a.positionAt)&&D.func(a.offsetAt))}t.is=n;function i(s,a){let l=s.getText(),o=r(a,(h,d)=>{let m=h.range.start.line-d.range.start.line;return m===0?h.range.start.character-d.range.start.character:m}),u=l.length;for(let h=o.length-1;h>=0;h--){let d=o[h],m=s.offsetAt(d.range.start),f=s.offsetAt(d.range.end);if(f<=u)l=l.substring(0,m)+d.newText+l.substring(f,l.length);else throw new Error("Overlapping edit");u=m}return l}t.applyEdits=i;function r(s,a){if(s.length<=1)return s;const l=s.length/2|0,o=s.slice(0,l),u=s.slice(l);r(o,a),r(u,a);let h=0,d=0,m=0;for(;h<o.length&&d<u.length;)a(o[h],u[d])<=0?s[m++]=o[h++]:s[m++]=u[d++];for(;h<o.length;)s[m++]=o[h++];for(;d<u.length;)s[m++]=u[d++];return s}})(Wa||(Wa={}));let Qu=class{constructor(e,n,i,r){this._uri=e,this._languageId=n,this._version=i,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let n=this.offsetAt(e.start),i=this.offsetAt(e.end);return this._content.substring(n,i)}return this._content}update(e,n){this._content=e.text,this._version=n,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let e=[],n=this._content,i=!0;for(let r=0;r<n.length;r++){i&&(e.push(r),i=!1);let s=n.charAt(r);i=s==="\r"||s===`
27
27
  `,s==="\r"&&r+1<n.length&&n.charAt(r+1)===`
28
- `&&r++}i&&n.length>0&&e.push(n.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let n=this.getLineOffsets(),i=0,r=n.length;if(r===0)return se.create(0,e);for(;i<r;){let a=Math.floor((i+r)/2);n[a]>e?r=a:i=a+1}let s=i-1;return se.create(s,e-n[s])}offsetAt(e){let n=this.getLineOffsets();if(e.line>=n.length)return this._content.length;if(e.line<0)return 0;let i=n[e.line],r=e.line+1<n.length?n[e.line+1]:this._content.length;return Math.max(Math.min(i+e.character,r),i)}get lineCount(){return this.getLineOffsets().length}};var D;(function(t){const e=Object.prototype.toString;function n(f){return typeof f<"u"}t.defined=n;function i(f){return typeof f>"u"}t.undefined=i;function r(f){return f===!0||f===!1}t.boolean=r;function s(f){return e.call(f)==="[object String]"}t.string=s;function a(f){return e.call(f)==="[object Number]"}t.number=a;function l(f,w,p){return e.call(f)==="[object Number]"&&w<=f&&f<=p}t.numberRange=l;function o(f){return e.call(f)==="[object Number]"&&-2147483648<=f&&f<=2147483647}t.integer=o;function u(f){return e.call(f)==="[object Number]"&&0<=f&&f<=2147483647}t.uinteger=u;function c(f){return e.call(f)==="[object Function]"}t.func=c;function d(f){return f!==null&&typeof f=="object"}t.objectLiteral=d;function m(f,w){return Array.isArray(f)&&f.every(w)}t.typedArray=m})(D||(D={}));class Ut{constructor(e,n,i,r){this._uri=e,this._languageId=n,this._version=i,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){const n=this.offsetAt(e.start),i=this.offsetAt(e.end);return this._content.substring(n,i)}return this._content}update(e,n){for(let i of e)if(Ut.isIncremental(i)){const r=Ba(i.range),s=this.offsetAt(r.start),a=this.offsetAt(r.end);this._content=this._content.substring(0,s)+i.text+this._content.substring(a,this._content.length);const l=Math.max(r.start.line,0),o=Math.max(r.end.line,0);let u=this._lineOffsets;const c=Fa(i.text,!1,s);if(o-l===c.length)for(let m=0,f=c.length;m<f;m++)u[m+l+1]=c[m];else c.length<1e4?u.splice(l+1,o-l,...c):this._lineOffsets=u=u.slice(0,l+1).concat(c,u.slice(o+1));const d=i.text.length-(a-s);if(d!==0)for(let m=l+1+c.length,f=u.length;m<f;m++)u[m]=u[m]+d}else if(Ut.isFull(i))this._content=i.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received");this._version=n}getLineOffsets(){return this._lineOffsets===void 0&&(this._lineOffsets=Fa(this._content,!0)),this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let n=this.getLineOffsets(),i=0,r=n.length;if(r===0)return{line:0,character:e};for(;i<r;){let a=Math.floor((i+r)/2);n[a]>e?r=a:i=a+1}let s=i-1;return{line:s,character:e-n[s]}}offsetAt(e){let n=this.getLineOffsets();if(e.line>=n.length)return this._content.length;if(e.line<0)return 0;let i=n[e.line],r=e.line+1<n.length?n[e.line+1]:this._content.length;return Math.max(Math.min(i+e.character,r),i)}get lineCount(){return this.getLineOffsets().length}static isIncremental(e){let n=e;return n!=null&&typeof n.text=="string"&&n.range!==void 0&&(n.rangeLength===void 0||typeof n.rangeLength=="number")}static isFull(e){let n=e;return n!=null&&typeof n.text=="string"&&n.range===void 0&&n.rangeLength===void 0}}var Ci;(function(t){function e(r,s,a,l){return new Ut(r,s,a,l)}t.create=e;function n(r,s,a){if(r instanceof Ut)return r.update(s,a),r;throw new Error("TextDocument.update: document must be created by TextDocument.create")}t.update=n;function i(r,s){let a=r.getText(),l=Ei(s.map(Yu),(c,d)=>{let m=c.range.start.line-d.range.start.line;return m===0?c.range.start.character-d.range.start.character:m}),o=0;const u=[];for(const c of l){let d=r.offsetAt(c.range.start);if(d<o)throw new Error("Overlapping edit");d>o&&u.push(a.substring(o,d)),c.newText.length&&u.push(c.newText),o=r.offsetAt(c.range.end)}return u.push(a.substr(o)),u.join("")}t.applyEdits=i})(Ci||(Ci={}));function Ei(t,e){if(t.length<=1)return t;const n=t.length/2|0,i=t.slice(0,n),r=t.slice(n);Ei(i,e),Ei(r,e);let s=0,a=0,l=0;for(;s<i.length&&a<r.length;)e(i[s],r[a])<=0?t[l++]=i[s++]:t[l++]=r[a++];for(;s<i.length;)t[l++]=i[s++];for(;a<r.length;)t[l++]=r[a++];return t}function Fa(t,e,n=0){const i=e?[n]:[];for(let r=0;r<t.length;r++){let s=t.charCodeAt(r);(s===13||s===10)&&(s===13&&r+1<t.length&&t.charCodeAt(r+1)===10&&r++,i.push(n+r+1))}return i}function Ba(t){const e=t.start,n=t.end;return e.line>n.line||e.line===n.line&&e.character>n.character?{start:n,end:e}:t}function Yu(t){const e=Ba(t.range);return e!==t.range?{newText:t.newText,range:e}:t}var z;(function(t){t[t.StartCommentTag=0]="StartCommentTag",t[t.Comment=1]="Comment",t[t.EndCommentTag=2]="EndCommentTag",t[t.StartTagOpen=3]="StartTagOpen",t[t.StartTagClose=4]="StartTagClose",t[t.StartTagSelfClose=5]="StartTagSelfClose",t[t.StartTag=6]="StartTag",t[t.EndTagOpen=7]="EndTagOpen",t[t.EndTagClose=8]="EndTagClose",t[t.EndTag=9]="EndTag",t[t.DelimiterAssign=10]="DelimiterAssign",t[t.AttributeName=11]="AttributeName",t[t.AttributeValue=12]="AttributeValue",t[t.StartDoctypeTag=13]="StartDoctypeTag",t[t.Doctype=14]="Doctype",t[t.EndDoctypeTag=15]="EndDoctypeTag",t[t.Content=16]="Content",t[t.Whitespace=17]="Whitespace",t[t.Unknown=18]="Unknown",t[t.Script=19]="Script",t[t.Styles=20]="Styles",t[t.EOS=21]="EOS"})(z||(z={}));var V;(function(t){t[t.WithinContent=0]="WithinContent",t[t.AfterOpeningStartTag=1]="AfterOpeningStartTag",t[t.AfterOpeningEndTag=2]="AfterOpeningEndTag",t[t.WithinDoctype=3]="WithinDoctype",t[t.WithinTag=4]="WithinTag",t[t.WithinEndTag=5]="WithinEndTag",t[t.WithinComment=6]="WithinComment",t[t.WithinScriptContent=7]="WithinScriptContent",t[t.WithinStyleContent=8]="WithinStyleContent",t[t.AfterAttributeName=9]="AfterAttributeName",t[t.BeforeAttributeValue=10]="BeforeAttributeValue"})(V||(V={}));var qa;(function(t){t.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[Be.Markdown,Be.PlainText]}},hover:{contentFormat:[Be.Markdown,Be.PlainText]}}}})(qa||(qa={}));var Ri;(function(t){t[t.Unknown=0]="Unknown",t[t.File=1]="File",t[t.Directory=2]="Directory",t[t.SymbolicLink=64]="SymbolicLink"})(Ri||(Ri={}));class Zu{constructor(e,n){this.source=e,this.len=e.length,this.position=n}eos(){return this.len<=this.position}getSource(){return this.source}pos(){return this.position}goBackTo(e){this.position=e}goBack(e){this.position-=e}advance(e){this.position+=e}goToEnd(){this.position=this.source.length}nextChar(){return this.source.charCodeAt(this.position++)||0}peekChar(e=0){return this.source.charCodeAt(this.position+e)||0}advanceIfChar(e){return e===this.source.charCodeAt(this.position)?(this.position++,!0):!1}advanceIfChars(e){let n;if(this.position+e.length>this.source.length)return!1;for(n=0;n<e.length;n++)if(this.source.charCodeAt(this.position+n)!==e[n])return!1;return this.advance(n),!0}advanceIfRegExp(e){const i=this.source.substr(this.position).match(e);return i?(this.position=this.position+i.index+i[0].length,i[0]):""}advanceUntilRegExp(e){const i=this.source.substr(this.position).match(e);return i?(this.position=this.position+i.index,i[0]):(this.goToEnd(),"")}advanceUntilChar(e){for(;this.position<this.source.length;){if(this.source.charCodeAt(this.position)===e)return!0;this.advance(1)}return!1}advanceUntilChars(e){for(;this.position+e.length<=this.source.length;){let n=0;for(;n<e.length&&this.source.charCodeAt(this.position+n)===e[n];n++);if(n===e.length)return!0;this.advance(1)}return this.goToEnd(),!1}skipWhitespace(){return this.advanceWhileChar(n=>n===sc||n===ac||n===nc||n===rc||n===ic)>0}advanceWhileChar(e){const n=this.position;for(;this.position<this.len&&e(this.source.charCodeAt(this.position));)this.position++;return this.position-n}}const Oa=33,wt=45,bn=60,Me=62,Di=47,Ku=61,ec=34,tc=39,nc=10,ic=13,rc=12,sc=32,ac=9,oc={"text/x-handlebars-template":!0,"text/html":!0};function _e(t,e=0,n=V.WithinContent,i=!1){const r=new Zu(t,e);let s=n,a=0,l=z.Unknown,o,u,c,d,m;function f(){return r.advanceIfRegExp(/^[_:\w][_:\w-.\d]*/).toLowerCase()}function w(){return r.advanceIfRegExp(/^[^\s"'></=\x00-\x0F\x7F\x80-\x9F]*/).toLowerCase()}function p(v,S,I){return l=S,a=v,o=I,S}function T(){const v=r.pos(),S=s,I=y();return I!==z.EOS&&v===r.pos()&&!(i&&(I===z.StartTagClose||I===z.EndTagClose))?(console.warn("Scanner.scan has not advanced at offset "+v+", state before: "+S+" after: "+s),r.advance(1),p(v,z.Unknown)):I}function y(){const v=r.pos();if(r.eos())return p(v,z.EOS);let S;switch(s){case V.WithinComment:return r.advanceIfChars([wt,wt,Me])?(s=V.WithinContent,p(v,z.EndCommentTag)):(r.advanceUntilChars([wt,wt,Me]),p(v,z.Comment));case V.WithinDoctype:return r.advanceIfChar(Me)?(s=V.WithinContent,p(v,z.EndDoctypeTag)):(r.advanceUntilChar(Me),p(v,z.Doctype));case V.WithinContent:if(r.advanceIfChar(bn)){if(!r.eos()&&r.peekChar()===Oa){if(r.advanceIfChars([Oa,wt,wt]))return s=V.WithinComment,p(v,z.StartCommentTag);if(r.advanceIfRegExp(/^!doctype/i))return s=V.WithinDoctype,p(v,z.StartDoctypeTag)}return r.advanceIfChar(Di)?(s=V.AfterOpeningEndTag,p(v,z.EndTagOpen)):(s=V.AfterOpeningStartTag,p(v,z.StartTagOpen))}return r.advanceUntilChar(bn),p(v,z.Content);case V.AfterOpeningEndTag:return f().length>0?(s=V.WithinEndTag,p(v,z.EndTag)):r.skipWhitespace()?p(v,z.Whitespace,Le("Tag name must directly follow the open bracket.")):(s=V.WithinEndTag,r.advanceUntilChar(Me),v<r.pos()?p(v,z.Unknown,Le("End tag name expected.")):y());case V.WithinEndTag:if(r.skipWhitespace())return p(v,z.Whitespace);if(r.advanceIfChar(Me))return s=V.WithinContent,p(v,z.EndTagClose);if(i&&r.peekChar()===bn)return s=V.WithinContent,p(v,z.EndTagClose,Le("Closing bracket missing."));S=Le("Closing bracket expected.");break;case V.AfterOpeningStartTag:return c=f(),m=void 0,d=void 0,c.length>0?(u=!1,s=V.WithinTag,p(v,z.StartTag)):r.skipWhitespace()?p(v,z.Whitespace,Le("Tag name must directly follow the open bracket.")):(s=V.WithinTag,r.advanceUntilChar(Me),v<r.pos()?p(v,z.Unknown,Le("Start tag name expected.")):y());case V.WithinTag:return r.skipWhitespace()?(u=!0,p(v,z.Whitespace)):u&&(d=w(),d.length>0)?(s=V.AfterAttributeName,u=!1,p(v,z.AttributeName)):r.advanceIfChars([Di,Me])?(s=V.WithinContent,p(v,z.StartTagSelfClose)):r.advanceIfChar(Me)?(c==="script"?m&&oc[m]?s=V.WithinContent:s=V.WithinScriptContent:c==="style"?s=V.WithinStyleContent:s=V.WithinContent,p(v,z.StartTagClose)):i&&r.peekChar()===bn?(s=V.WithinContent,p(v,z.StartTagClose,Le("Closing bracket missing."))):(r.advance(1),p(v,z.Unknown,Le("Unexpected character in tag.")));case V.AfterAttributeName:return r.skipWhitespace()?(u=!0,p(v,z.Whitespace)):r.advanceIfChar(Ku)?(s=V.BeforeAttributeValue,p(v,z.DelimiterAssign)):(s=V.WithinTag,y());case V.BeforeAttributeValue:if(r.skipWhitespace())return p(v,z.Whitespace);let H=r.advanceIfRegExp(/^[^\s"'`=<>]+/);if(H.length>0&&(r.peekChar()===Me&&r.peekChar(-1)===Di&&(r.goBack(1),H=H.substring(0,H.length-1)),d==="type"&&(m=H),H.length>0))return s=V.WithinTag,u=!1,p(v,z.AttributeValue);const W=r.peekChar();return W===tc||W===ec?(r.advance(1),r.advanceUntilChar(W)&&r.advance(1),d==="type"&&(m=r.getSource().substring(v+1,r.pos()-1)),s=V.WithinTag,u=!1,p(v,z.AttributeValue)):(s=V.WithinTag,u=!1,y());case V.WithinScriptContent:let b=1;for(;!r.eos();){const g=r.advanceIfRegExp(/<!--|-->|<\/?script\s*\/?>?/i);if(g.length===0)return r.goToEnd(),p(v,z.Script);if(g==="<!--")b===1&&(b=2);else if(g==="-->")b=1;else if(g[1]!=="/")b===2&&(b=3);else if(b===3)b=2;else{r.goBack(g.length);break}}return s=V.WithinContent,v<r.pos()?p(v,z.Script):y();case V.WithinStyleContent:return r.advanceUntilRegExp(/<\/style/i),s=V.WithinContent,v<r.pos()?p(v,z.Styles):y()}return r.advance(1),s=V.WithinContent,p(v,z.Unknown,S)}return{scan:T,getTokenType:()=>l,getTokenOffset:()=>a,getTokenLength:()=>r.pos()-a,getTokenEnd:()=>r.pos(),getTokenText:()=>r.getSource().substring(a,r.pos()),getScannerState:()=>s,getTokenError:()=>o}}function Va(t,e){let n=0,i=t.length;if(i===0)return 0;for(;n<i;){let r=Math.floor((n+i)/2);e(t[r])?i=r:n=r+1}return n}function lc(t,e,n){let i=0,r=t.length-1;for(;i<=r;){const s=(i+r)/2|0,a=n(t[s],e);if(a<0)i=s+1;else if(a>0)r=s-1;else return s}return-(i+1)}class ja{get attributeNames(){return this.attributes?Object.keys(this.attributes):[]}constructor(e,n,i,r){this.start=e,this.end=n,this.children=i,this.parent=r,this.closed=!1}isSameTag(e){return this.tag===void 0?e===void 0:e!==void 0&&this.tag.length===e.length&&this.tag.toLowerCase()===e}get firstChild(){return this.children[0]}get lastChild(){return this.children.length?this.children[this.children.length-1]:void 0}findNodeBefore(e){const n=Va(this.children,i=>e<=i.start)-1;if(n>=0){const i=this.children[n];if(e>i.start){if(e<i.end)return i.findNodeBefore(e);const r=i.lastChild;return r&&r.end===i.end?i.findNodeBefore(e):i}}return this}findNodeAt(e){const n=Va(this.children,i=>e<=i.start)-1;if(n>=0){const i=this.children[n];if(e>i.start&&e<=i.end)return i.findNodeAt(e)}return this}}class uc{constructor(e){this.dataManager=e}parseDocument(e){return this.parse(e.getText(),this.dataManager.getVoidElements(e.languageId))}parse(e,n){const i=_e(e,void 0,void 0,!0),r=new ja(0,e.length,[],void 0);let s=r,a=-1,l,o=null,u=i.scan();for(;u!==z.EOS;){switch(u){case z.StartTagOpen:const c=new ja(i.getTokenOffset(),e.length,[],s);s.children.push(c),s=c;break;case z.StartTag:s.tag=i.getTokenText();break;case z.StartTagClose:s.parent&&(s.end=i.getTokenEnd(),i.getTokenLength()?(s.startTagEnd=i.getTokenEnd(),s.tag&&this.dataManager.isVoidElement(s.tag,n)&&(s.closed=!0,s=s.parent)):s=s.parent);break;case z.StartTagSelfClose:s.parent&&(s.closed=!0,s.end=i.getTokenEnd(),s.startTagEnd=i.getTokenEnd(),s=s.parent);break;case z.EndTagOpen:a=i.getTokenOffset(),l=void 0;break;case z.EndTag:l=i.getTokenText().toLowerCase();break;case z.EndTagClose:let d=s;for(;!d.isSameTag(l)&&d.parent;)d=d.parent;if(d.parent){for(;s!==d;)s.end=a,s.closed=!1,s=s.parent;s.closed=!0,s.endTagStart=a,s.end=i.getTokenEnd(),s=s.parent}break;case z.AttributeName:{o=i.getTokenText();let m=s.attributes;m||(s.attributes=m={}),m[o]=null;break}case z.AttributeValue:{const m=i.getTokenText(),f=s.attributes;f&&o&&(f[o]=m,o=null);break}}u=i.scan()}for(;s.parent;)s.end=e.length,s.closed=!1,s=s.parent;return{roots:r.children,findNodeBefore:r.findNodeBefore.bind(r),findNodeAt:r.findNodeAt.bind(r)}}}const Pt={"Aacute;":"Á",Aacute:"Á","aacute;":"á",aacute:"á","Abreve;":"Ă","abreve;":"ă","ac;":"∾","acd;":"∿","acE;":"∾̳","Acirc;":"Â",Acirc:"Â","acirc;":"â",acirc:"â","acute;":"´",acute:"´","Acy;":"А","acy;":"а","AElig;":"Æ",AElig:"Æ","aelig;":"æ",aelig:"æ","af;":"⁡","Afr;":"𝔄","afr;":"𝔞","Agrave;":"À",Agrave:"À","agrave;":"à",agrave:"à","alefsym;":"ℵ","aleph;":"ℵ","Alpha;":"Α","alpha;":"α","Amacr;":"Ā","amacr;":"ā","amalg;":"⨿","AMP;":"&",AMP:"&","amp;":"&",amp:"&","And;":"⩓","and;":"∧","andand;":"⩕","andd;":"⩜","andslope;":"⩘","andv;":"⩚","ang;":"∠","ange;":"⦤","angle;":"∠","angmsd;":"∡","angmsdaa;":"⦨","angmsdab;":"⦩","angmsdac;":"⦪","angmsdad;":"⦫","angmsdae;":"⦬","angmsdaf;":"⦭","angmsdag;":"⦮","angmsdah;":"⦯","angrt;":"∟","angrtvb;":"⊾","angrtvbd;":"⦝","angsph;":"∢","angst;":"Å","angzarr;":"⍼","Aogon;":"Ą","aogon;":"ą","Aopf;":"𝔸","aopf;":"𝕒","ap;":"≈","apacir;":"⩯","apE;":"⩰","ape;":"≊","apid;":"≋","apos;":"'","ApplyFunction;":"⁡","approx;":"≈","approxeq;":"≊","Aring;":"Å",Aring:"Å","aring;":"å",aring:"å","Ascr;":"𝒜","ascr;":"𝒶","Assign;":"≔","ast;":"*","asymp;":"≈","asympeq;":"≍","Atilde;":"Ã",Atilde:"Ã","atilde;":"ã",atilde:"ã","Auml;":"Ä",Auml:"Ä","auml;":"ä",auml:"ä","awconint;":"∳","awint;":"⨑","backcong;":"≌","backepsilon;":"϶","backprime;":"‵","backsim;":"∽","backsimeq;":"⋍","Backslash;":"∖","Barv;":"⫧","barvee;":"⊽","Barwed;":"⌆","barwed;":"⌅","barwedge;":"⌅","bbrk;":"⎵","bbrktbrk;":"⎶","bcong;":"≌","Bcy;":"Б","bcy;":"б","bdquo;":"„","becaus;":"∵","Because;":"∵","because;":"∵","bemptyv;":"⦰","bepsi;":"϶","bernou;":"ℬ","Bernoullis;":"ℬ","Beta;":"Β","beta;":"β","beth;":"ℶ","between;":"≬","Bfr;":"𝔅","bfr;":"𝔟","bigcap;":"⋂","bigcirc;":"◯","bigcup;":"⋃","bigodot;":"⨀","bigoplus;":"⨁","bigotimes;":"⨂","bigsqcup;":"⨆","bigstar;":"★","bigtriangledown;":"▽","bigtriangleup;":"△","biguplus;":"⨄","bigvee;":"⋁","bigwedge;":"⋀","bkarow;":"⤍","blacklozenge;":"⧫","blacksquare;":"▪","blacktriangle;":"▴","blacktriangledown;":"▾","blacktriangleleft;":"◂","blacktriangleright;":"▸","blank;":"␣","blk12;":"▒","blk14;":"░","blk34;":"▓","block;":"█","bne;":"=⃥","bnequiv;":"≡⃥","bNot;":"⫭","bnot;":"⌐","Bopf;":"𝔹","bopf;":"𝕓","bot;":"⊥","bottom;":"⊥","bowtie;":"⋈","boxbox;":"⧉","boxDL;":"╗","boxDl;":"╖","boxdL;":"╕","boxdl;":"┐","boxDR;":"╔","boxDr;":"╓","boxdR;":"╒","boxdr;":"┌","boxH;":"═","boxh;":"─","boxHD;":"╦","boxHd;":"╤","boxhD;":"╥","boxhd;":"┬","boxHU;":"╩","boxHu;":"╧","boxhU;":"╨","boxhu;":"┴","boxminus;":"⊟","boxplus;":"⊞","boxtimes;":"⊠","boxUL;":"╝","boxUl;":"╜","boxuL;":"╛","boxul;":"┘","boxUR;":"╚","boxUr;":"╙","boxuR;":"╘","boxur;":"└","boxV;":"║","boxv;":"│","boxVH;":"╬","boxVh;":"╫","boxvH;":"╪","boxvh;":"┼","boxVL;":"╣","boxVl;":"╢","boxvL;":"╡","boxvl;":"┤","boxVR;":"╠","boxVr;":"╟","boxvR;":"╞","boxvr;":"├","bprime;":"‵","Breve;":"˘","breve;":"˘","brvbar;":"¦",brvbar:"¦","Bscr;":"ℬ","bscr;":"𝒷","bsemi;":"⁏","bsim;":"∽","bsime;":"⋍","bsol;":"\\","bsolb;":"⧅","bsolhsub;":"⟈","bull;":"•","bullet;":"•","bump;":"≎","bumpE;":"⪮","bumpe;":"≏","Bumpeq;":"≎","bumpeq;":"≏","Cacute;":"Ć","cacute;":"ć","Cap;":"⋒","cap;":"∩","capand;":"⩄","capbrcup;":"⩉","capcap;":"⩋","capcup;":"⩇","capdot;":"⩀","CapitalDifferentialD;":"ⅅ","caps;":"∩︀","caret;":"⁁","caron;":"ˇ","Cayleys;":"ℭ","ccaps;":"⩍","Ccaron;":"Č","ccaron;":"č","Ccedil;":"Ç",Ccedil:"Ç","ccedil;":"ç",ccedil:"ç","Ccirc;":"Ĉ","ccirc;":"ĉ","Cconint;":"∰","ccups;":"⩌","ccupssm;":"⩐","Cdot;":"Ċ","cdot;":"ċ","cedil;":"¸",cedil:"¸","Cedilla;":"¸","cemptyv;":"⦲","cent;":"¢",cent:"¢","CenterDot;":"·","centerdot;":"·","Cfr;":"ℭ","cfr;":"𝔠","CHcy;":"Ч","chcy;":"ч","check;":"✓","checkmark;":"✓","Chi;":"Χ","chi;":"χ","cir;":"○","circ;":"ˆ","circeq;":"≗","circlearrowleft;":"↺","circlearrowright;":"↻","circledast;":"⊛","circledcirc;":"⊚","circleddash;":"⊝","CircleDot;":"⊙","circledR;":"®","circledS;":"Ⓢ","CircleMinus;":"⊖","CirclePlus;":"⊕","CircleTimes;":"⊗","cirE;":"⧃","cire;":"≗","cirfnint;":"⨐","cirmid;":"⫯","cirscir;":"⧂","ClockwiseContourIntegral;":"∲","CloseCurlyDoubleQuote;":"”","CloseCurlyQuote;":"’","clubs;":"♣","clubsuit;":"♣","Colon;":"∷","colon;":":","Colone;":"⩴","colone;":"≔","coloneq;":"≔","comma;":",","commat;":"@","comp;":"∁","compfn;":"∘","complement;":"∁","complexes;":"ℂ","cong;":"≅","congdot;":"⩭","Congruent;":"≡","Conint;":"∯","conint;":"∮","ContourIntegral;":"∮","Copf;":"ℂ","copf;":"𝕔","coprod;":"∐","Coproduct;":"∐","COPY;":"©",COPY:"©","copy;":"©",copy:"©","copysr;":"℗","CounterClockwiseContourIntegral;":"∳","crarr;":"↵","Cross;":"⨯","cross;":"✗","Cscr;":"𝒞","cscr;":"𝒸","csub;":"⫏","csube;":"⫑","csup;":"⫐","csupe;":"⫒","ctdot;":"⋯","cudarrl;":"⤸","cudarrr;":"⤵","cuepr;":"⋞","cuesc;":"⋟","cularr;":"↶","cularrp;":"⤽","Cup;":"⋓","cup;":"∪","cupbrcap;":"⩈","CupCap;":"≍","cupcap;":"⩆","cupcup;":"⩊","cupdot;":"⊍","cupor;":"⩅","cups;":"∪︀","curarr;":"↷","curarrm;":"⤼","curlyeqprec;":"⋞","curlyeqsucc;":"⋟","curlyvee;":"⋎","curlywedge;":"⋏","curren;":"¤",curren:"¤","curvearrowleft;":"↶","curvearrowright;":"↷","cuvee;":"⋎","cuwed;":"⋏","cwconint;":"∲","cwint;":"∱","cylcty;":"⌭","Dagger;":"‡","dagger;":"†","daleth;":"ℸ","Darr;":"↡","dArr;":"⇓","darr;":"↓","dash;":"‐","Dashv;":"⫤","dashv;":"⊣","dbkarow;":"⤏","dblac;":"˝","Dcaron;":"Ď","dcaron;":"ď","Dcy;":"Д","dcy;":"д","DD;":"ⅅ","dd;":"ⅆ","ddagger;":"‡","ddarr;":"⇊","DDotrahd;":"⤑","ddotseq;":"⩷","deg;":"°",deg:"°","Del;":"∇","Delta;":"Δ","delta;":"δ","demptyv;":"⦱","dfisht;":"⥿","Dfr;":"𝔇","dfr;":"𝔡","dHar;":"⥥","dharl;":"⇃","dharr;":"⇂","DiacriticalAcute;":"´","DiacriticalDot;":"˙","DiacriticalDoubleAcute;":"˝","DiacriticalGrave;":"`","DiacriticalTilde;":"˜","diam;":"⋄","Diamond;":"⋄","diamond;":"⋄","diamondsuit;":"♦","diams;":"♦","die;":"¨","DifferentialD;":"ⅆ","digamma;":"ϝ","disin;":"⋲","div;":"÷","divide;":"÷",divide:"÷","divideontimes;":"⋇","divonx;":"⋇","DJcy;":"Ђ","djcy;":"ђ","dlcorn;":"⌞","dlcrop;":"⌍","dollar;":"$","Dopf;":"𝔻","dopf;":"𝕕","Dot;":"¨","dot;":"˙","DotDot;":"⃜","doteq;":"≐","doteqdot;":"≑","DotEqual;":"≐","dotminus;":"∸","dotplus;":"∔","dotsquare;":"⊡","doublebarwedge;":"⌆","DoubleContourIntegral;":"∯","DoubleDot;":"¨","DoubleDownArrow;":"⇓","DoubleLeftArrow;":"⇐","DoubleLeftRightArrow;":"⇔","DoubleLeftTee;":"⫤","DoubleLongLeftArrow;":"⟸","DoubleLongLeftRightArrow;":"⟺","DoubleLongRightArrow;":"⟹","DoubleRightArrow;":"⇒","DoubleRightTee;":"⊨","DoubleUpArrow;":"⇑","DoubleUpDownArrow;":"⇕","DoubleVerticalBar;":"∥","DownArrow;":"↓","Downarrow;":"⇓","downarrow;":"↓","DownArrowBar;":"⤓","DownArrowUpArrow;":"⇵","DownBreve;":"̑","downdownarrows;":"⇊","downharpoonleft;":"⇃","downharpoonright;":"⇂","DownLeftRightVector;":"⥐","DownLeftTeeVector;":"⥞","DownLeftVector;":"↽","DownLeftVectorBar;":"⥖","DownRightTeeVector;":"⥟","DownRightVector;":"⇁","DownRightVectorBar;":"⥗","DownTee;":"⊤","DownTeeArrow;":"↧","drbkarow;":"⤐","drcorn;":"⌟","drcrop;":"⌌","Dscr;":"𝒟","dscr;":"𝒹","DScy;":"Ѕ","dscy;":"ѕ","dsol;":"⧶","Dstrok;":"Đ","dstrok;":"đ","dtdot;":"⋱","dtri;":"▿","dtrif;":"▾","duarr;":"⇵","duhar;":"⥯","dwangle;":"⦦","DZcy;":"Џ","dzcy;":"џ","dzigrarr;":"⟿","Eacute;":"É",Eacute:"É","eacute;":"é",eacute:"é","easter;":"⩮","Ecaron;":"Ě","ecaron;":"ě","ecir;":"≖","Ecirc;":"Ê",Ecirc:"Ê","ecirc;":"ê",ecirc:"ê","ecolon;":"≕","Ecy;":"Э","ecy;":"э","eDDot;":"⩷","Edot;":"Ė","eDot;":"≑","edot;":"ė","ee;":"ⅇ","efDot;":"≒","Efr;":"𝔈","efr;":"𝔢","eg;":"⪚","Egrave;":"È",Egrave:"È","egrave;":"è",egrave:"è","egs;":"⪖","egsdot;":"⪘","el;":"⪙","Element;":"∈","elinters;":"⏧","ell;":"ℓ","els;":"⪕","elsdot;":"⪗","Emacr;":"Ē","emacr;":"ē","empty;":"∅","emptyset;":"∅","EmptySmallSquare;":"◻","emptyv;":"∅","EmptyVerySmallSquare;":"▫","emsp;":" ","emsp13;":" ","emsp14;":" ","ENG;":"Ŋ","eng;":"ŋ","ensp;":" ","Eogon;":"Ę","eogon;":"ę","Eopf;":"𝔼","eopf;":"𝕖","epar;":"⋕","eparsl;":"⧣","eplus;":"⩱","epsi;":"ε","Epsilon;":"Ε","epsilon;":"ε","epsiv;":"ϵ","eqcirc;":"≖","eqcolon;":"≕","eqsim;":"≂","eqslantgtr;":"⪖","eqslantless;":"⪕","Equal;":"⩵","equals;":"=","EqualTilde;":"≂","equest;":"≟","Equilibrium;":"⇌","equiv;":"≡","equivDD;":"⩸","eqvparsl;":"⧥","erarr;":"⥱","erDot;":"≓","Escr;":"ℰ","escr;":"ℯ","esdot;":"≐","Esim;":"⩳","esim;":"≂","Eta;":"Η","eta;":"η","ETH;":"Ð",ETH:"Ð","eth;":"ð",eth:"ð","Euml;":"Ë",Euml:"Ë","euml;":"ë",euml:"ë","euro;":"€","excl;":"!","exist;":"∃","Exists;":"∃","expectation;":"ℰ","ExponentialE;":"ⅇ","exponentiale;":"ⅇ","fallingdotseq;":"≒","Fcy;":"Ф","fcy;":"ф","female;":"♀","ffilig;":"ffi","fflig;":"ff","ffllig;":"ffl","Ffr;":"𝔉","ffr;":"𝔣","filig;":"fi","FilledSmallSquare;":"◼","FilledVerySmallSquare;":"▪","fjlig;":"fj","flat;":"♭","fllig;":"fl","fltns;":"▱","fnof;":"ƒ","Fopf;":"𝔽","fopf;":"𝕗","ForAll;":"∀","forall;":"∀","fork;":"⋔","forkv;":"⫙","Fouriertrf;":"ℱ","fpartint;":"⨍","frac12;":"½",frac12:"½","frac13;":"⅓","frac14;":"¼",frac14:"¼","frac15;":"⅕","frac16;":"⅙","frac18;":"⅛","frac23;":"⅔","frac25;":"⅖","frac34;":"¾",frac34:"¾","frac35;":"⅗","frac38;":"⅜","frac45;":"⅘","frac56;":"⅚","frac58;":"⅝","frac78;":"⅞","frasl;":"⁄","frown;":"⌢","Fscr;":"ℱ","fscr;":"𝒻","gacute;":"ǵ","Gamma;":"Γ","gamma;":"γ","Gammad;":"Ϝ","gammad;":"ϝ","gap;":"⪆","Gbreve;":"Ğ","gbreve;":"ğ","Gcedil;":"Ģ","Gcirc;":"Ĝ","gcirc;":"ĝ","Gcy;":"Г","gcy;":"г","Gdot;":"Ġ","gdot;":"ġ","gE;":"≧","ge;":"≥","gEl;":"⪌","gel;":"⋛","geq;":"≥","geqq;":"≧","geqslant;":"⩾","ges;":"⩾","gescc;":"⪩","gesdot;":"⪀","gesdoto;":"⪂","gesdotol;":"⪄","gesl;":"⋛︀","gesles;":"⪔","Gfr;":"𝔊","gfr;":"𝔤","Gg;":"⋙","gg;":"≫","ggg;":"⋙","gimel;":"ℷ","GJcy;":"Ѓ","gjcy;":"ѓ","gl;":"≷","gla;":"⪥","glE;":"⪒","glj;":"⪤","gnap;":"⪊","gnapprox;":"⪊","gnE;":"≩","gne;":"⪈","gneq;":"⪈","gneqq;":"≩","gnsim;":"⋧","Gopf;":"𝔾","gopf;":"𝕘","grave;":"`","GreaterEqual;":"≥","GreaterEqualLess;":"⋛","GreaterFullEqual;":"≧","GreaterGreater;":"⪢","GreaterLess;":"≷","GreaterSlantEqual;":"⩾","GreaterTilde;":"≳","Gscr;":"𝒢","gscr;":"ℊ","gsim;":"≳","gsime;":"⪎","gsiml;":"⪐","GT;":">",GT:">","Gt;":"≫","gt;":">",gt:">","gtcc;":"⪧","gtcir;":"⩺","gtdot;":"⋗","gtlPar;":"⦕","gtquest;":"⩼","gtrapprox;":"⪆","gtrarr;":"⥸","gtrdot;":"⋗","gtreqless;":"⋛","gtreqqless;":"⪌","gtrless;":"≷","gtrsim;":"≳","gvertneqq;":"≩︀","gvnE;":"≩︀","Hacek;":"ˇ","hairsp;":" ","half;":"½","hamilt;":"ℋ","HARDcy;":"Ъ","hardcy;":"ъ","hArr;":"⇔","harr;":"↔","harrcir;":"⥈","harrw;":"↭","Hat;":"^","hbar;":"ℏ","Hcirc;":"Ĥ","hcirc;":"ĥ","hearts;":"♥","heartsuit;":"♥","hellip;":"…","hercon;":"⊹","Hfr;":"ℌ","hfr;":"𝔥","HilbertSpace;":"ℋ","hksearow;":"⤥","hkswarow;":"⤦","hoarr;":"⇿","homtht;":"∻","hookleftarrow;":"↩","hookrightarrow;":"↪","Hopf;":"ℍ","hopf;":"𝕙","horbar;":"―","HorizontalLine;":"─","Hscr;":"ℋ","hscr;":"𝒽","hslash;":"ℏ","Hstrok;":"Ħ","hstrok;":"ħ","HumpDownHump;":"≎","HumpEqual;":"≏","hybull;":"⁃","hyphen;":"‐","Iacute;":"Í",Iacute:"Í","iacute;":"í",iacute:"í","ic;":"⁣","Icirc;":"Î",Icirc:"Î","icirc;":"î",icirc:"î","Icy;":"И","icy;":"и","Idot;":"İ","IEcy;":"Е","iecy;":"е","iexcl;":"¡",iexcl:"¡","iff;":"⇔","Ifr;":"ℑ","ifr;":"𝔦","Igrave;":"Ì",Igrave:"Ì","igrave;":"ì",igrave:"ì","ii;":"ⅈ","iiiint;":"⨌","iiint;":"∭","iinfin;":"⧜","iiota;":"℩","IJlig;":"IJ","ijlig;":"ij","Im;":"ℑ","Imacr;":"Ī","imacr;":"ī","image;":"ℑ","ImaginaryI;":"ⅈ","imagline;":"ℐ","imagpart;":"ℑ","imath;":"ı","imof;":"⊷","imped;":"Ƶ","Implies;":"⇒","in;":"∈","incare;":"℅","infin;":"∞","infintie;":"⧝","inodot;":"ı","Int;":"∬","int;":"∫","intcal;":"⊺","integers;":"ℤ","Integral;":"∫","intercal;":"⊺","Intersection;":"⋂","intlarhk;":"⨗","intprod;":"⨼","InvisibleComma;":"⁣","InvisibleTimes;":"⁢","IOcy;":"Ё","iocy;":"ё","Iogon;":"Į","iogon;":"į","Iopf;":"𝕀","iopf;":"𝕚","Iota;":"Ι","iota;":"ι","iprod;":"⨼","iquest;":"¿",iquest:"¿","Iscr;":"ℐ","iscr;":"𝒾","isin;":"∈","isindot;":"⋵","isinE;":"⋹","isins;":"⋴","isinsv;":"⋳","isinv;":"∈","it;":"⁢","Itilde;":"Ĩ","itilde;":"ĩ","Iukcy;":"І","iukcy;":"і","Iuml;":"Ï",Iuml:"Ï","iuml;":"ï",iuml:"ï","Jcirc;":"Ĵ","jcirc;":"ĵ","Jcy;":"Й","jcy;":"й","Jfr;":"𝔍","jfr;":"𝔧","jmath;":"ȷ","Jopf;":"𝕁","jopf;":"𝕛","Jscr;":"𝒥","jscr;":"𝒿","Jsercy;":"Ј","jsercy;":"ј","Jukcy;":"Є","jukcy;":"є","Kappa;":"Κ","kappa;":"κ","kappav;":"ϰ","Kcedil;":"Ķ","kcedil;":"ķ","Kcy;":"К","kcy;":"к","Kfr;":"𝔎","kfr;":"𝔨","kgreen;":"ĸ","KHcy;":"Х","khcy;":"х","KJcy;":"Ќ","kjcy;":"ќ","Kopf;":"𝕂","kopf;":"𝕜","Kscr;":"𝒦","kscr;":"𝓀","lAarr;":"⇚","Lacute;":"Ĺ","lacute;":"ĺ","laemptyv;":"⦴","lagran;":"ℒ","Lambda;":"Λ","lambda;":"λ","Lang;":"⟪","lang;":"⟨","langd;":"⦑","langle;":"⟨","lap;":"⪅","Laplacetrf;":"ℒ","laquo;":"«",laquo:"«","Larr;":"↞","lArr;":"⇐","larr;":"←","larrb;":"⇤","larrbfs;":"⤟","larrfs;":"⤝","larrhk;":"↩","larrlp;":"↫","larrpl;":"⤹","larrsim;":"⥳","larrtl;":"↢","lat;":"⪫","lAtail;":"⤛","latail;":"⤙","late;":"⪭","lates;":"⪭︀","lBarr;":"⤎","lbarr;":"⤌","lbbrk;":"❲","lbrace;":"{","lbrack;":"[","lbrke;":"⦋","lbrksld;":"⦏","lbrkslu;":"⦍","Lcaron;":"Ľ","lcaron;":"ľ","Lcedil;":"Ļ","lcedil;":"ļ","lceil;":"⌈","lcub;":"{","Lcy;":"Л","lcy;":"л","ldca;":"⤶","ldquo;":"“","ldquor;":"„","ldrdhar;":"⥧","ldrushar;":"⥋","ldsh;":"↲","lE;":"≦","le;":"≤","LeftAngleBracket;":"⟨","LeftArrow;":"←","Leftarrow;":"⇐","leftarrow;":"←","LeftArrowBar;":"⇤","LeftArrowRightArrow;":"⇆","leftarrowtail;":"↢","LeftCeiling;":"⌈","LeftDoubleBracket;":"⟦","LeftDownTeeVector;":"⥡","LeftDownVector;":"⇃","LeftDownVectorBar;":"⥙","LeftFloor;":"⌊","leftharpoondown;":"↽","leftharpoonup;":"↼","leftleftarrows;":"⇇","LeftRightArrow;":"↔","Leftrightarrow;":"⇔","leftrightarrow;":"↔","leftrightarrows;":"⇆","leftrightharpoons;":"⇋","leftrightsquigarrow;":"↭","LeftRightVector;":"⥎","LeftTee;":"⊣","LeftTeeArrow;":"↤","LeftTeeVector;":"⥚","leftthreetimes;":"⋋","LeftTriangle;":"⊲","LeftTriangleBar;":"⧏","LeftTriangleEqual;":"⊴","LeftUpDownVector;":"⥑","LeftUpTeeVector;":"⥠","LeftUpVector;":"↿","LeftUpVectorBar;":"⥘","LeftVector;":"↼","LeftVectorBar;":"⥒","lEg;":"⪋","leg;":"⋚","leq;":"≤","leqq;":"≦","leqslant;":"⩽","les;":"⩽","lescc;":"⪨","lesdot;":"⩿","lesdoto;":"⪁","lesdotor;":"⪃","lesg;":"⋚︀","lesges;":"⪓","lessapprox;":"⪅","lessdot;":"⋖","lesseqgtr;":"⋚","lesseqqgtr;":"⪋","LessEqualGreater;":"⋚","LessFullEqual;":"≦","LessGreater;":"≶","lessgtr;":"≶","LessLess;":"⪡","lesssim;":"≲","LessSlantEqual;":"⩽","LessTilde;":"≲","lfisht;":"⥼","lfloor;":"⌊","Lfr;":"𝔏","lfr;":"𝔩","lg;":"≶","lgE;":"⪑","lHar;":"⥢","lhard;":"↽","lharu;":"↼","lharul;":"⥪","lhblk;":"▄","LJcy;":"Љ","ljcy;":"љ","Ll;":"⋘","ll;":"≪","llarr;":"⇇","llcorner;":"⌞","Lleftarrow;":"⇚","llhard;":"⥫","lltri;":"◺","Lmidot;":"Ŀ","lmidot;":"ŀ","lmoust;":"⎰","lmoustache;":"⎰","lnap;":"⪉","lnapprox;":"⪉","lnE;":"≨","lne;":"⪇","lneq;":"⪇","lneqq;":"≨","lnsim;":"⋦","loang;":"⟬","loarr;":"⇽","lobrk;":"⟦","LongLeftArrow;":"⟵","Longleftarrow;":"⟸","longleftarrow;":"⟵","LongLeftRightArrow;":"⟷","Longleftrightarrow;":"⟺","longleftrightarrow;":"⟷","longmapsto;":"⟼","LongRightArrow;":"⟶","Longrightarrow;":"⟹","longrightarrow;":"⟶","looparrowleft;":"↫","looparrowright;":"↬","lopar;":"⦅","Lopf;":"𝕃","lopf;":"𝕝","loplus;":"⨭","lotimes;":"⨴","lowast;":"∗","lowbar;":"_","LowerLeftArrow;":"↙","LowerRightArrow;":"↘","loz;":"◊","lozenge;":"◊","lozf;":"⧫","lpar;":"(","lparlt;":"⦓","lrarr;":"⇆","lrcorner;":"⌟","lrhar;":"⇋","lrhard;":"⥭","lrm;":"‎","lrtri;":"⊿","lsaquo;":"‹","Lscr;":"ℒ","lscr;":"𝓁","Lsh;":"↰","lsh;":"↰","lsim;":"≲","lsime;":"⪍","lsimg;":"⪏","lsqb;":"[","lsquo;":"‘","lsquor;":"‚","Lstrok;":"Ł","lstrok;":"ł","LT;":"<",LT:"<","Lt;":"≪","lt;":"<",lt:"<","ltcc;":"⪦","ltcir;":"⩹","ltdot;":"⋖","lthree;":"⋋","ltimes;":"⋉","ltlarr;":"⥶","ltquest;":"⩻","ltri;":"◃","ltrie;":"⊴","ltrif;":"◂","ltrPar;":"⦖","lurdshar;":"⥊","luruhar;":"⥦","lvertneqq;":"≨︀","lvnE;":"≨︀","macr;":"¯",macr:"¯","male;":"♂","malt;":"✠","maltese;":"✠","Map;":"⤅","map;":"↦","mapsto;":"↦","mapstodown;":"↧","mapstoleft;":"↤","mapstoup;":"↥","marker;":"▮","mcomma;":"⨩","Mcy;":"М","mcy;":"м","mdash;":"—","mDDot;":"∺","measuredangle;":"∡","MediumSpace;":" ","Mellintrf;":"ℳ","Mfr;":"𝔐","mfr;":"𝔪","mho;":"℧","micro;":"µ",micro:"µ","mid;":"∣","midast;":"*","midcir;":"⫰","middot;":"·",middot:"·","minus;":"−","minusb;":"⊟","minusd;":"∸","minusdu;":"⨪","MinusPlus;":"∓","mlcp;":"⫛","mldr;":"…","mnplus;":"∓","models;":"⊧","Mopf;":"𝕄","mopf;":"𝕞","mp;":"∓","Mscr;":"ℳ","mscr;":"𝓂","mstpos;":"∾","Mu;":"Μ","mu;":"μ","multimap;":"⊸","mumap;":"⊸","nabla;":"∇","Nacute;":"Ń","nacute;":"ń","nang;":"∠⃒","nap;":"≉","napE;":"⩰̸","napid;":"≋̸","napos;":"ʼn","napprox;":"≉","natur;":"♮","natural;":"♮","naturals;":"ℕ","nbsp;":" ",nbsp:" ","nbump;":"≎̸","nbumpe;":"≏̸","ncap;":"⩃","Ncaron;":"Ň","ncaron;":"ň","Ncedil;":"Ņ","ncedil;":"ņ","ncong;":"≇","ncongdot;":"⩭̸","ncup;":"⩂","Ncy;":"Н","ncy;":"н","ndash;":"–","ne;":"≠","nearhk;":"⤤","neArr;":"⇗","nearr;":"↗","nearrow;":"↗","nedot;":"≐̸","NegativeMediumSpace;":"​","NegativeThickSpace;":"​","NegativeThinSpace;":"​","NegativeVeryThinSpace;":"​","nequiv;":"≢","nesear;":"⤨","nesim;":"≂̸","NestedGreaterGreater;":"≫","NestedLessLess;":"≪","NewLine;":`
28
+ `&&r++}i&&n.length>0&&e.push(n.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let n=this.getLineOffsets(),i=0,r=n.length;if(r===0)return se.create(0,e);for(;i<r;){let a=Math.floor((i+r)/2);n[a]>e?r=a:i=a+1}let s=i-1;return se.create(s,e-n[s])}offsetAt(e){let n=this.getLineOffsets();if(e.line>=n.length)return this._content.length;if(e.line<0)return 0;let i=n[e.line],r=e.line+1<n.length?n[e.line+1]:this._content.length;return Math.max(Math.min(i+e.character,r),i)}get lineCount(){return this.getLineOffsets().length}};var D;(function(t){const e=Object.prototype.toString;function n(f){return typeof f<"u"}t.defined=n;function i(f){return typeof f>"u"}t.undefined=i;function r(f){return f===!0||f===!1}t.boolean=r;function s(f){return e.call(f)==="[object String]"}t.string=s;function a(f){return e.call(f)==="[object Number]"}t.number=a;function l(f,w,p){return e.call(f)==="[object Number]"&&w<=f&&f<=p}t.numberRange=l;function o(f){return e.call(f)==="[object Number]"&&-2147483648<=f&&f<=2147483647}t.integer=o;function u(f){return e.call(f)==="[object Number]"&&0<=f&&f<=2147483647}t.uinteger=u;function h(f){return e.call(f)==="[object Function]"}t.func=h;function d(f){return f!==null&&typeof f=="object"}t.objectLiteral=d;function m(f,w){return Array.isArray(f)&&f.every(w)}t.typedArray=m})(D||(D={}));class Ut{constructor(e,n,i,r){this._uri=e,this._languageId=n,this._version=i,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){const n=this.offsetAt(e.start),i=this.offsetAt(e.end);return this._content.substring(n,i)}return this._content}update(e,n){for(let i of e)if(Ut.isIncremental(i)){const r=Ba(i.range),s=this.offsetAt(r.start),a=this.offsetAt(r.end);this._content=this._content.substring(0,s)+i.text+this._content.substring(a,this._content.length);const l=Math.max(r.start.line,0),o=Math.max(r.end.line,0);let u=this._lineOffsets;const h=Fa(i.text,!1,s);if(o-l===h.length)for(let m=0,f=h.length;m<f;m++)u[m+l+1]=h[m];else h.length<1e4?u.splice(l+1,o-l,...h):this._lineOffsets=u=u.slice(0,l+1).concat(h,u.slice(o+1));const d=i.text.length-(a-s);if(d!==0)for(let m=l+1+h.length,f=u.length;m<f;m++)u[m]=u[m]+d}else if(Ut.isFull(i))this._content=i.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received");this._version=n}getLineOffsets(){return this._lineOffsets===void 0&&(this._lineOffsets=Fa(this._content,!0)),this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let n=this.getLineOffsets(),i=0,r=n.length;if(r===0)return{line:0,character:e};for(;i<r;){let a=Math.floor((i+r)/2);n[a]>e?r=a:i=a+1}let s=i-1;return{line:s,character:e-n[s]}}offsetAt(e){let n=this.getLineOffsets();if(e.line>=n.length)return this._content.length;if(e.line<0)return 0;let i=n[e.line],r=e.line+1<n.length?n[e.line+1]:this._content.length;return Math.max(Math.min(i+e.character,r),i)}get lineCount(){return this.getLineOffsets().length}static isIncremental(e){let n=e;return n!=null&&typeof n.text=="string"&&n.range!==void 0&&(n.rangeLength===void 0||typeof n.rangeLength=="number")}static isFull(e){let n=e;return n!=null&&typeof n.text=="string"&&n.range===void 0&&n.rangeLength===void 0}}var Ci;(function(t){function e(r,s,a,l){return new Ut(r,s,a,l)}t.create=e;function n(r,s,a){if(r instanceof Ut)return r.update(s,a),r;throw new Error("TextDocument.update: document must be created by TextDocument.create")}t.update=n;function i(r,s){let a=r.getText(),l=Ei(s.map(Yu),(h,d)=>{let m=h.range.start.line-d.range.start.line;return m===0?h.range.start.character-d.range.start.character:m}),o=0;const u=[];for(const h of l){let d=r.offsetAt(h.range.start);if(d<o)throw new Error("Overlapping edit");d>o&&u.push(a.substring(o,d)),h.newText.length&&u.push(h.newText),o=r.offsetAt(h.range.end)}return u.push(a.substr(o)),u.join("")}t.applyEdits=i})(Ci||(Ci={}));function Ei(t,e){if(t.length<=1)return t;const n=t.length/2|0,i=t.slice(0,n),r=t.slice(n);Ei(i,e),Ei(r,e);let s=0,a=0,l=0;for(;s<i.length&&a<r.length;)e(i[s],r[a])<=0?t[l++]=i[s++]:t[l++]=r[a++];for(;s<i.length;)t[l++]=i[s++];for(;a<r.length;)t[l++]=r[a++];return t}function Fa(t,e,n=0){const i=e?[n]:[];for(let r=0;r<t.length;r++){let s=t.charCodeAt(r);(s===13||s===10)&&(s===13&&r+1<t.length&&t.charCodeAt(r+1)===10&&r++,i.push(n+r+1))}return i}function Ba(t){const e=t.start,n=t.end;return e.line>n.line||e.line===n.line&&e.character>n.character?{start:n,end:e}:t}function Yu(t){const e=Ba(t.range);return e!==t.range?{newText:t.newText,range:e}:t}var z;(function(t){t[t.StartCommentTag=0]="StartCommentTag",t[t.Comment=1]="Comment",t[t.EndCommentTag=2]="EndCommentTag",t[t.StartTagOpen=3]="StartTagOpen",t[t.StartTagClose=4]="StartTagClose",t[t.StartTagSelfClose=5]="StartTagSelfClose",t[t.StartTag=6]="StartTag",t[t.EndTagOpen=7]="EndTagOpen",t[t.EndTagClose=8]="EndTagClose",t[t.EndTag=9]="EndTag",t[t.DelimiterAssign=10]="DelimiterAssign",t[t.AttributeName=11]="AttributeName",t[t.AttributeValue=12]="AttributeValue",t[t.StartDoctypeTag=13]="StartDoctypeTag",t[t.Doctype=14]="Doctype",t[t.EndDoctypeTag=15]="EndDoctypeTag",t[t.Content=16]="Content",t[t.Whitespace=17]="Whitespace",t[t.Unknown=18]="Unknown",t[t.Script=19]="Script",t[t.Styles=20]="Styles",t[t.EOS=21]="EOS"})(z||(z={}));var V;(function(t){t[t.WithinContent=0]="WithinContent",t[t.AfterOpeningStartTag=1]="AfterOpeningStartTag",t[t.AfterOpeningEndTag=2]="AfterOpeningEndTag",t[t.WithinDoctype=3]="WithinDoctype",t[t.WithinTag=4]="WithinTag",t[t.WithinEndTag=5]="WithinEndTag",t[t.WithinComment=6]="WithinComment",t[t.WithinScriptContent=7]="WithinScriptContent",t[t.WithinStyleContent=8]="WithinStyleContent",t[t.AfterAttributeName=9]="AfterAttributeName",t[t.BeforeAttributeValue=10]="BeforeAttributeValue"})(V||(V={}));var qa;(function(t){t.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[Be.Markdown,Be.PlainText]}},hover:{contentFormat:[Be.Markdown,Be.PlainText]}}}})(qa||(qa={}));var Ri;(function(t){t[t.Unknown=0]="Unknown",t[t.File=1]="File",t[t.Directory=2]="Directory",t[t.SymbolicLink=64]="SymbolicLink"})(Ri||(Ri={}));class Zu{constructor(e,n){this.source=e,this.len=e.length,this.position=n}eos(){return this.len<=this.position}getSource(){return this.source}pos(){return this.position}goBackTo(e){this.position=e}goBack(e){this.position-=e}advance(e){this.position+=e}goToEnd(){this.position=this.source.length}nextChar(){return this.source.charCodeAt(this.position++)||0}peekChar(e=0){return this.source.charCodeAt(this.position+e)||0}advanceIfChar(e){return e===this.source.charCodeAt(this.position)?(this.position++,!0):!1}advanceIfChars(e){let n;if(this.position+e.length>this.source.length)return!1;for(n=0;n<e.length;n++)if(this.source.charCodeAt(this.position+n)!==e[n])return!1;return this.advance(n),!0}advanceIfRegExp(e){const i=this.source.substr(this.position).match(e);return i?(this.position=this.position+i.index+i[0].length,i[0]):""}advanceUntilRegExp(e){const i=this.source.substr(this.position).match(e);return i?(this.position=this.position+i.index,i[0]):(this.goToEnd(),"")}advanceUntilChar(e){for(;this.position<this.source.length;){if(this.source.charCodeAt(this.position)===e)return!0;this.advance(1)}return!1}advanceUntilChars(e){for(;this.position+e.length<=this.source.length;){let n=0;for(;n<e.length&&this.source.charCodeAt(this.position+n)===e[n];n++);if(n===e.length)return!0;this.advance(1)}return this.goToEnd(),!1}skipWhitespace(){return this.advanceWhileChar(n=>n===sc||n===ac||n===nc||n===rc||n===ic)>0}advanceWhileChar(e){const n=this.position;for(;this.position<this.len&&e(this.source.charCodeAt(this.position));)this.position++;return this.position-n}}const Oa=33,wt=45,bn=60,Me=62,Di=47,Ku=61,ec=34,tc=39,nc=10,ic=13,rc=12,sc=32,ac=9,oc={"text/x-handlebars-template":!0,"text/html":!0};function _e(t,e=0,n=V.WithinContent,i=!1){const r=new Zu(t,e);let s=n,a=0,l=z.Unknown,o,u,h,d,m;function f(){return r.advanceIfRegExp(/^[_:\w][_:\w-.\d]*/).toLowerCase()}function w(){return r.advanceIfRegExp(/^[^\s"'></=\x00-\x0F\x7F\x80-\x9F]*/).toLowerCase()}function p(v,S,I){return l=S,a=v,o=I,S}function T(){const v=r.pos(),S=s,I=y();return I!==z.EOS&&v===r.pos()&&!(i&&(I===z.StartTagClose||I===z.EndTagClose))?(console.warn("Scanner.scan has not advanced at offset "+v+", state before: "+S+" after: "+s),r.advance(1),p(v,z.Unknown)):I}function y(){const v=r.pos();if(r.eos())return p(v,z.EOS);let S;switch(s){case V.WithinComment:return r.advanceIfChars([wt,wt,Me])?(s=V.WithinContent,p(v,z.EndCommentTag)):(r.advanceUntilChars([wt,wt,Me]),p(v,z.Comment));case V.WithinDoctype:return r.advanceIfChar(Me)?(s=V.WithinContent,p(v,z.EndDoctypeTag)):(r.advanceUntilChar(Me),p(v,z.Doctype));case V.WithinContent:if(r.advanceIfChar(bn)){if(!r.eos()&&r.peekChar()===Oa){if(r.advanceIfChars([Oa,wt,wt]))return s=V.WithinComment,p(v,z.StartCommentTag);if(r.advanceIfRegExp(/^!doctype/i))return s=V.WithinDoctype,p(v,z.StartDoctypeTag)}return r.advanceIfChar(Di)?(s=V.AfterOpeningEndTag,p(v,z.EndTagOpen)):(s=V.AfterOpeningStartTag,p(v,z.StartTagOpen))}return r.advanceUntilChar(bn),p(v,z.Content);case V.AfterOpeningEndTag:return f().length>0?(s=V.WithinEndTag,p(v,z.EndTag)):r.skipWhitespace()?p(v,z.Whitespace,Le("Tag name must directly follow the open bracket.")):(s=V.WithinEndTag,r.advanceUntilChar(Me),v<r.pos()?p(v,z.Unknown,Le("End tag name expected.")):y());case V.WithinEndTag:if(r.skipWhitespace())return p(v,z.Whitespace);if(r.advanceIfChar(Me))return s=V.WithinContent,p(v,z.EndTagClose);if(i&&r.peekChar()===bn)return s=V.WithinContent,p(v,z.EndTagClose,Le("Closing bracket missing."));S=Le("Closing bracket expected.");break;case V.AfterOpeningStartTag:return h=f(),m=void 0,d=void 0,h.length>0?(u=!1,s=V.WithinTag,p(v,z.StartTag)):r.skipWhitespace()?p(v,z.Whitespace,Le("Tag name must directly follow the open bracket.")):(s=V.WithinTag,r.advanceUntilChar(Me),v<r.pos()?p(v,z.Unknown,Le("Start tag name expected.")):y());case V.WithinTag:return r.skipWhitespace()?(u=!0,p(v,z.Whitespace)):u&&(d=w(),d.length>0)?(s=V.AfterAttributeName,u=!1,p(v,z.AttributeName)):r.advanceIfChars([Di,Me])?(s=V.WithinContent,p(v,z.StartTagSelfClose)):r.advanceIfChar(Me)?(h==="script"?m&&oc[m]?s=V.WithinContent:s=V.WithinScriptContent:h==="style"?s=V.WithinStyleContent:s=V.WithinContent,p(v,z.StartTagClose)):i&&r.peekChar()===bn?(s=V.WithinContent,p(v,z.StartTagClose,Le("Closing bracket missing."))):(r.advance(1),p(v,z.Unknown,Le("Unexpected character in tag.")));case V.AfterAttributeName:return r.skipWhitespace()?(u=!0,p(v,z.Whitespace)):r.advanceIfChar(Ku)?(s=V.BeforeAttributeValue,p(v,z.DelimiterAssign)):(s=V.WithinTag,y());case V.BeforeAttributeValue:if(r.skipWhitespace())return p(v,z.Whitespace);let H=r.advanceIfRegExp(/^[^\s"'`=<>]+/);if(H.length>0&&(r.peekChar()===Me&&r.peekChar(-1)===Di&&(r.goBack(1),H=H.substring(0,H.length-1)),d==="type"&&(m=H),H.length>0))return s=V.WithinTag,u=!1,p(v,z.AttributeValue);const W=r.peekChar();return W===tc||W===ec?(r.advance(1),r.advanceUntilChar(W)&&r.advance(1),d==="type"&&(m=r.getSource().substring(v+1,r.pos()-1)),s=V.WithinTag,u=!1,p(v,z.AttributeValue)):(s=V.WithinTag,u=!1,y());case V.WithinScriptContent:let b=1;for(;!r.eos();){const g=r.advanceIfRegExp(/<!--|-->|<\/?script\s*\/?>?/i);if(g.length===0)return r.goToEnd(),p(v,z.Script);if(g==="<!--")b===1&&(b=2);else if(g==="-->")b=1;else if(g[1]!=="/")b===2&&(b=3);else if(b===3)b=2;else{r.goBack(g.length);break}}return s=V.WithinContent,v<r.pos()?p(v,z.Script):y();case V.WithinStyleContent:return r.advanceUntilRegExp(/<\/style/i),s=V.WithinContent,v<r.pos()?p(v,z.Styles):y()}return r.advance(1),s=V.WithinContent,p(v,z.Unknown,S)}return{scan:T,getTokenType:()=>l,getTokenOffset:()=>a,getTokenLength:()=>r.pos()-a,getTokenEnd:()=>r.pos(),getTokenText:()=>r.getSource().substring(a,r.pos()),getScannerState:()=>s,getTokenError:()=>o}}function Va(t,e){let n=0,i=t.length;if(i===0)return 0;for(;n<i;){let r=Math.floor((n+i)/2);e(t[r])?i=r:n=r+1}return n}function lc(t,e,n){let i=0,r=t.length-1;for(;i<=r;){const s=(i+r)/2|0,a=n(t[s],e);if(a<0)i=s+1;else if(a>0)r=s-1;else return s}return-(i+1)}class ja{get attributeNames(){return this.attributes?Object.keys(this.attributes):[]}constructor(e,n,i,r){this.start=e,this.end=n,this.children=i,this.parent=r,this.closed=!1}isSameTag(e){return this.tag===void 0?e===void 0:e!==void 0&&this.tag.length===e.length&&this.tag.toLowerCase()===e}get firstChild(){return this.children[0]}get lastChild(){return this.children.length?this.children[this.children.length-1]:void 0}findNodeBefore(e){const n=Va(this.children,i=>e<=i.start)-1;if(n>=0){const i=this.children[n];if(e>i.start){if(e<i.end)return i.findNodeBefore(e);const r=i.lastChild;return r&&r.end===i.end?i.findNodeBefore(e):i}}return this}findNodeAt(e){const n=Va(this.children,i=>e<=i.start)-1;if(n>=0){const i=this.children[n];if(e>i.start&&e<=i.end)return i.findNodeAt(e)}return this}}class uc{constructor(e){this.dataManager=e}parseDocument(e){return this.parse(e.getText(),this.dataManager.getVoidElements(e.languageId))}parse(e,n){const i=_e(e,void 0,void 0,!0),r=new ja(0,e.length,[],void 0);let s=r,a=-1,l,o=null,u=i.scan();for(;u!==z.EOS;){switch(u){case z.StartTagOpen:const h=new ja(i.getTokenOffset(),e.length,[],s);s.children.push(h),s=h;break;case z.StartTag:s.tag=i.getTokenText();break;case z.StartTagClose:s.parent&&(s.end=i.getTokenEnd(),i.getTokenLength()?(s.startTagEnd=i.getTokenEnd(),s.tag&&this.dataManager.isVoidElement(s.tag,n)&&(s.closed=!0,s=s.parent)):s=s.parent);break;case z.StartTagSelfClose:s.parent&&(s.closed=!0,s.end=i.getTokenEnd(),s.startTagEnd=i.getTokenEnd(),s=s.parent);break;case z.EndTagOpen:a=i.getTokenOffset(),l=void 0;break;case z.EndTag:l=i.getTokenText().toLowerCase();break;case z.EndTagClose:let d=s;for(;!d.isSameTag(l)&&d.parent;)d=d.parent;if(d.parent){for(;s!==d;)s.end=a,s.closed=!1,s=s.parent;s.closed=!0,s.endTagStart=a,s.end=i.getTokenEnd(),s=s.parent}break;case z.AttributeName:{o=i.getTokenText();let m=s.attributes;m||(s.attributes=m={}),m[o]=null;break}case z.AttributeValue:{const m=i.getTokenText(),f=s.attributes;f&&o&&(f[o]=m,o=null);break}}u=i.scan()}for(;s.parent;)s.end=e.length,s.closed=!1,s=s.parent;return{roots:r.children,findNodeBefore:r.findNodeBefore.bind(r),findNodeAt:r.findNodeAt.bind(r)}}}const Pt={"Aacute;":"Á",Aacute:"Á","aacute;":"á",aacute:"á","Abreve;":"Ă","abreve;":"ă","ac;":"∾","acd;":"∿","acE;":"∾̳","Acirc;":"Â",Acirc:"Â","acirc;":"â",acirc:"â","acute;":"´",acute:"´","Acy;":"А","acy;":"а","AElig;":"Æ",AElig:"Æ","aelig;":"æ",aelig:"æ","af;":"⁡","Afr;":"𝔄","afr;":"𝔞","Agrave;":"À",Agrave:"À","agrave;":"à",agrave:"à","alefsym;":"ℵ","aleph;":"ℵ","Alpha;":"Α","alpha;":"α","Amacr;":"Ā","amacr;":"ā","amalg;":"⨿","AMP;":"&",AMP:"&","amp;":"&",amp:"&","And;":"⩓","and;":"∧","andand;":"⩕","andd;":"⩜","andslope;":"⩘","andv;":"⩚","ang;":"∠","ange;":"⦤","angle;":"∠","angmsd;":"∡","angmsdaa;":"⦨","angmsdab;":"⦩","angmsdac;":"⦪","angmsdad;":"⦫","angmsdae;":"⦬","angmsdaf;":"⦭","angmsdag;":"⦮","angmsdah;":"⦯","angrt;":"∟","angrtvb;":"⊾","angrtvbd;":"⦝","angsph;":"∢","angst;":"Å","angzarr;":"⍼","Aogon;":"Ą","aogon;":"ą","Aopf;":"𝔸","aopf;":"𝕒","ap;":"≈","apacir;":"⩯","apE;":"⩰","ape;":"≊","apid;":"≋","apos;":"'","ApplyFunction;":"⁡","approx;":"≈","approxeq;":"≊","Aring;":"Å",Aring:"Å","aring;":"å",aring:"å","Ascr;":"𝒜","ascr;":"𝒶","Assign;":"≔","ast;":"*","asymp;":"≈","asympeq;":"≍","Atilde;":"Ã",Atilde:"Ã","atilde;":"ã",atilde:"ã","Auml;":"Ä",Auml:"Ä","auml;":"ä",auml:"ä","awconint;":"∳","awint;":"⨑","backcong;":"≌","backepsilon;":"϶","backprime;":"‵","backsim;":"∽","backsimeq;":"⋍","Backslash;":"∖","Barv;":"⫧","barvee;":"⊽","Barwed;":"⌆","barwed;":"⌅","barwedge;":"⌅","bbrk;":"⎵","bbrktbrk;":"⎶","bcong;":"≌","Bcy;":"Б","bcy;":"б","bdquo;":"„","becaus;":"∵","Because;":"∵","because;":"∵","bemptyv;":"⦰","bepsi;":"϶","bernou;":"ℬ","Bernoullis;":"ℬ","Beta;":"Β","beta;":"β","beth;":"ℶ","between;":"≬","Bfr;":"𝔅","bfr;":"𝔟","bigcap;":"⋂","bigcirc;":"◯","bigcup;":"⋃","bigodot;":"⨀","bigoplus;":"⨁","bigotimes;":"⨂","bigsqcup;":"⨆","bigstar;":"★","bigtriangledown;":"▽","bigtriangleup;":"△","biguplus;":"⨄","bigvee;":"⋁","bigwedge;":"⋀","bkarow;":"⤍","blacklozenge;":"⧫","blacksquare;":"▪","blacktriangle;":"▴","blacktriangledown;":"▾","blacktriangleleft;":"◂","blacktriangleright;":"▸","blank;":"␣","blk12;":"▒","blk14;":"░","blk34;":"▓","block;":"█","bne;":"=⃥","bnequiv;":"≡⃥","bNot;":"⫭","bnot;":"⌐","Bopf;":"𝔹","bopf;":"𝕓","bot;":"⊥","bottom;":"⊥","bowtie;":"⋈","boxbox;":"⧉","boxDL;":"╗","boxDl;":"╖","boxdL;":"╕","boxdl;":"┐","boxDR;":"╔","boxDr;":"╓","boxdR;":"╒","boxdr;":"┌","boxH;":"═","boxh;":"─","boxHD;":"╦","boxHd;":"╤","boxhD;":"╥","boxhd;":"┬","boxHU;":"╩","boxHu;":"╧","boxhU;":"╨","boxhu;":"┴","boxminus;":"⊟","boxplus;":"⊞","boxtimes;":"⊠","boxUL;":"╝","boxUl;":"╜","boxuL;":"╛","boxul;":"┘","boxUR;":"╚","boxUr;":"╙","boxuR;":"╘","boxur;":"└","boxV;":"║","boxv;":"│","boxVH;":"╬","boxVh;":"╫","boxvH;":"╪","boxvh;":"┼","boxVL;":"╣","boxVl;":"╢","boxvL;":"╡","boxvl;":"┤","boxVR;":"╠","boxVr;":"╟","boxvR;":"╞","boxvr;":"├","bprime;":"‵","Breve;":"˘","breve;":"˘","brvbar;":"¦",brvbar:"¦","Bscr;":"ℬ","bscr;":"𝒷","bsemi;":"⁏","bsim;":"∽","bsime;":"⋍","bsol;":"\\","bsolb;":"⧅","bsolhsub;":"⟈","bull;":"•","bullet;":"•","bump;":"≎","bumpE;":"⪮","bumpe;":"≏","Bumpeq;":"≎","bumpeq;":"≏","Cacute;":"Ć","cacute;":"ć","Cap;":"⋒","cap;":"∩","capand;":"⩄","capbrcup;":"⩉","capcap;":"⩋","capcup;":"⩇","capdot;":"⩀","CapitalDifferentialD;":"ⅅ","caps;":"∩︀","caret;":"⁁","caron;":"ˇ","Cayleys;":"ℭ","ccaps;":"⩍","Ccaron;":"Č","ccaron;":"č","Ccedil;":"Ç",Ccedil:"Ç","ccedil;":"ç",ccedil:"ç","Ccirc;":"Ĉ","ccirc;":"ĉ","Cconint;":"∰","ccups;":"⩌","ccupssm;":"⩐","Cdot;":"Ċ","cdot;":"ċ","cedil;":"¸",cedil:"¸","Cedilla;":"¸","cemptyv;":"⦲","cent;":"¢",cent:"¢","CenterDot;":"·","centerdot;":"·","Cfr;":"ℭ","cfr;":"𝔠","CHcy;":"Ч","chcy;":"ч","check;":"✓","checkmark;":"✓","Chi;":"Χ","chi;":"χ","cir;":"○","circ;":"ˆ","circeq;":"≗","circlearrowleft;":"↺","circlearrowright;":"↻","circledast;":"⊛","circledcirc;":"⊚","circleddash;":"⊝","CircleDot;":"⊙","circledR;":"®","circledS;":"Ⓢ","CircleMinus;":"⊖","CirclePlus;":"⊕","CircleTimes;":"⊗","cirE;":"⧃","cire;":"≗","cirfnint;":"⨐","cirmid;":"⫯","cirscir;":"⧂","ClockwiseContourIntegral;":"∲","CloseCurlyDoubleQuote;":"”","CloseCurlyQuote;":"’","clubs;":"♣","clubsuit;":"♣","Colon;":"∷","colon;":":","Colone;":"⩴","colone;":"≔","coloneq;":"≔","comma;":",","commat;":"@","comp;":"∁","compfn;":"∘","complement;":"∁","complexes;":"ℂ","cong;":"≅","congdot;":"⩭","Congruent;":"≡","Conint;":"∯","conint;":"∮","ContourIntegral;":"∮","Copf;":"ℂ","copf;":"𝕔","coprod;":"∐","Coproduct;":"∐","COPY;":"©",COPY:"©","copy;":"©",copy:"©","copysr;":"℗","CounterClockwiseContourIntegral;":"∳","crarr;":"↵","Cross;":"⨯","cross;":"✗","Cscr;":"𝒞","cscr;":"𝒸","csub;":"⫏","csube;":"⫑","csup;":"⫐","csupe;":"⫒","ctdot;":"⋯","cudarrl;":"⤸","cudarrr;":"⤵","cuepr;":"⋞","cuesc;":"⋟","cularr;":"↶","cularrp;":"⤽","Cup;":"⋓","cup;":"∪","cupbrcap;":"⩈","CupCap;":"≍","cupcap;":"⩆","cupcup;":"⩊","cupdot;":"⊍","cupor;":"⩅","cups;":"∪︀","curarr;":"↷","curarrm;":"⤼","curlyeqprec;":"⋞","curlyeqsucc;":"⋟","curlyvee;":"⋎","curlywedge;":"⋏","curren;":"¤",curren:"¤","curvearrowleft;":"↶","curvearrowright;":"↷","cuvee;":"⋎","cuwed;":"⋏","cwconint;":"∲","cwint;":"∱","cylcty;":"⌭","Dagger;":"‡","dagger;":"†","daleth;":"ℸ","Darr;":"↡","dArr;":"⇓","darr;":"↓","dash;":"‐","Dashv;":"⫤","dashv;":"⊣","dbkarow;":"⤏","dblac;":"˝","Dcaron;":"Ď","dcaron;":"ď","Dcy;":"Д","dcy;":"д","DD;":"ⅅ","dd;":"ⅆ","ddagger;":"‡","ddarr;":"⇊","DDotrahd;":"⤑","ddotseq;":"⩷","deg;":"°",deg:"°","Del;":"∇","Delta;":"Δ","delta;":"δ","demptyv;":"⦱","dfisht;":"⥿","Dfr;":"𝔇","dfr;":"𝔡","dHar;":"⥥","dharl;":"⇃","dharr;":"⇂","DiacriticalAcute;":"´","DiacriticalDot;":"˙","DiacriticalDoubleAcute;":"˝","DiacriticalGrave;":"`","DiacriticalTilde;":"˜","diam;":"⋄","Diamond;":"⋄","diamond;":"⋄","diamondsuit;":"♦","diams;":"♦","die;":"¨","DifferentialD;":"ⅆ","digamma;":"ϝ","disin;":"⋲","div;":"÷","divide;":"÷",divide:"÷","divideontimes;":"⋇","divonx;":"⋇","DJcy;":"Ђ","djcy;":"ђ","dlcorn;":"⌞","dlcrop;":"⌍","dollar;":"$","Dopf;":"𝔻","dopf;":"𝕕","Dot;":"¨","dot;":"˙","DotDot;":"⃜","doteq;":"≐","doteqdot;":"≑","DotEqual;":"≐","dotminus;":"∸","dotplus;":"∔","dotsquare;":"⊡","doublebarwedge;":"⌆","DoubleContourIntegral;":"∯","DoubleDot;":"¨","DoubleDownArrow;":"⇓","DoubleLeftArrow;":"⇐","DoubleLeftRightArrow;":"⇔","DoubleLeftTee;":"⫤","DoubleLongLeftArrow;":"⟸","DoubleLongLeftRightArrow;":"⟺","DoubleLongRightArrow;":"⟹","DoubleRightArrow;":"⇒","DoubleRightTee;":"⊨","DoubleUpArrow;":"⇑","DoubleUpDownArrow;":"⇕","DoubleVerticalBar;":"∥","DownArrow;":"↓","Downarrow;":"⇓","downarrow;":"↓","DownArrowBar;":"⤓","DownArrowUpArrow;":"⇵","DownBreve;":"̑","downdownarrows;":"⇊","downharpoonleft;":"⇃","downharpoonright;":"⇂","DownLeftRightVector;":"⥐","DownLeftTeeVector;":"⥞","DownLeftVector;":"↽","DownLeftVectorBar;":"⥖","DownRightTeeVector;":"⥟","DownRightVector;":"⇁","DownRightVectorBar;":"⥗","DownTee;":"⊤","DownTeeArrow;":"↧","drbkarow;":"⤐","drcorn;":"⌟","drcrop;":"⌌","Dscr;":"𝒟","dscr;":"𝒹","DScy;":"Ѕ","dscy;":"ѕ","dsol;":"⧶","Dstrok;":"Đ","dstrok;":"đ","dtdot;":"⋱","dtri;":"▿","dtrif;":"▾","duarr;":"⇵","duhar;":"⥯","dwangle;":"⦦","DZcy;":"Џ","dzcy;":"џ","dzigrarr;":"⟿","Eacute;":"É",Eacute:"É","eacute;":"é",eacute:"é","easter;":"⩮","Ecaron;":"Ě","ecaron;":"ě","ecir;":"≖","Ecirc;":"Ê",Ecirc:"Ê","ecirc;":"ê",ecirc:"ê","ecolon;":"≕","Ecy;":"Э","ecy;":"э","eDDot;":"⩷","Edot;":"Ė","eDot;":"≑","edot;":"ė","ee;":"ⅇ","efDot;":"≒","Efr;":"𝔈","efr;":"𝔢","eg;":"⪚","Egrave;":"È",Egrave:"È","egrave;":"è",egrave:"è","egs;":"⪖","egsdot;":"⪘","el;":"⪙","Element;":"∈","elinters;":"⏧","ell;":"ℓ","els;":"⪕","elsdot;":"⪗","Emacr;":"Ē","emacr;":"ē","empty;":"∅","emptyset;":"∅","EmptySmallSquare;":"◻","emptyv;":"∅","EmptyVerySmallSquare;":"▫","emsp;":" ","emsp13;":" ","emsp14;":" ","ENG;":"Ŋ","eng;":"ŋ","ensp;":" ","Eogon;":"Ę","eogon;":"ę","Eopf;":"𝔼","eopf;":"𝕖","epar;":"⋕","eparsl;":"⧣","eplus;":"⩱","epsi;":"ε","Epsilon;":"Ε","epsilon;":"ε","epsiv;":"ϵ","eqcirc;":"≖","eqcolon;":"≕","eqsim;":"≂","eqslantgtr;":"⪖","eqslantless;":"⪕","Equal;":"⩵","equals;":"=","EqualTilde;":"≂","equest;":"≟","Equilibrium;":"⇌","equiv;":"≡","equivDD;":"⩸","eqvparsl;":"⧥","erarr;":"⥱","erDot;":"≓","Escr;":"ℰ","escr;":"ℯ","esdot;":"≐","Esim;":"⩳","esim;":"≂","Eta;":"Η","eta;":"η","ETH;":"Ð",ETH:"Ð","eth;":"ð",eth:"ð","Euml;":"Ë",Euml:"Ë","euml;":"ë",euml:"ë","euro;":"€","excl;":"!","exist;":"∃","Exists;":"∃","expectation;":"ℰ","ExponentialE;":"ⅇ","exponentiale;":"ⅇ","fallingdotseq;":"≒","Fcy;":"Ф","fcy;":"ф","female;":"♀","ffilig;":"ffi","fflig;":"ff","ffllig;":"ffl","Ffr;":"𝔉","ffr;":"𝔣","filig;":"fi","FilledSmallSquare;":"◼","FilledVerySmallSquare;":"▪","fjlig;":"fj","flat;":"♭","fllig;":"fl","fltns;":"▱","fnof;":"ƒ","Fopf;":"𝔽","fopf;":"𝕗","ForAll;":"∀","forall;":"∀","fork;":"⋔","forkv;":"⫙","Fouriertrf;":"ℱ","fpartint;":"⨍","frac12;":"½",frac12:"½","frac13;":"⅓","frac14;":"¼",frac14:"¼","frac15;":"⅕","frac16;":"⅙","frac18;":"⅛","frac23;":"⅔","frac25;":"⅖","frac34;":"¾",frac34:"¾","frac35;":"⅗","frac38;":"⅜","frac45;":"⅘","frac56;":"⅚","frac58;":"⅝","frac78;":"⅞","frasl;":"⁄","frown;":"⌢","Fscr;":"ℱ","fscr;":"𝒻","gacute;":"ǵ","Gamma;":"Γ","gamma;":"γ","Gammad;":"Ϝ","gammad;":"ϝ","gap;":"⪆","Gbreve;":"Ğ","gbreve;":"ğ","Gcedil;":"Ģ","Gcirc;":"Ĝ","gcirc;":"ĝ","Gcy;":"Г","gcy;":"г","Gdot;":"Ġ","gdot;":"ġ","gE;":"≧","ge;":"≥","gEl;":"⪌","gel;":"⋛","geq;":"≥","geqq;":"≧","geqslant;":"⩾","ges;":"⩾","gescc;":"⪩","gesdot;":"⪀","gesdoto;":"⪂","gesdotol;":"⪄","gesl;":"⋛︀","gesles;":"⪔","Gfr;":"𝔊","gfr;":"𝔤","Gg;":"⋙","gg;":"≫","ggg;":"⋙","gimel;":"ℷ","GJcy;":"Ѓ","gjcy;":"ѓ","gl;":"≷","gla;":"⪥","glE;":"⪒","glj;":"⪤","gnap;":"⪊","gnapprox;":"⪊","gnE;":"≩","gne;":"⪈","gneq;":"⪈","gneqq;":"≩","gnsim;":"⋧","Gopf;":"𝔾","gopf;":"𝕘","grave;":"`","GreaterEqual;":"≥","GreaterEqualLess;":"⋛","GreaterFullEqual;":"≧","GreaterGreater;":"⪢","GreaterLess;":"≷","GreaterSlantEqual;":"⩾","GreaterTilde;":"≳","Gscr;":"𝒢","gscr;":"ℊ","gsim;":"≳","gsime;":"⪎","gsiml;":"⪐","GT;":">",GT:">","Gt;":"≫","gt;":">",gt:">","gtcc;":"⪧","gtcir;":"⩺","gtdot;":"⋗","gtlPar;":"⦕","gtquest;":"⩼","gtrapprox;":"⪆","gtrarr;":"⥸","gtrdot;":"⋗","gtreqless;":"⋛","gtreqqless;":"⪌","gtrless;":"≷","gtrsim;":"≳","gvertneqq;":"≩︀","gvnE;":"≩︀","Hacek;":"ˇ","hairsp;":" ","half;":"½","hamilt;":"ℋ","HARDcy;":"Ъ","hardcy;":"ъ","hArr;":"⇔","harr;":"↔","harrcir;":"⥈","harrw;":"↭","Hat;":"^","hbar;":"ℏ","Hcirc;":"Ĥ","hcirc;":"ĥ","hearts;":"♥","heartsuit;":"♥","hellip;":"…","hercon;":"⊹","Hfr;":"ℌ","hfr;":"𝔥","HilbertSpace;":"ℋ","hksearow;":"⤥","hkswarow;":"⤦","hoarr;":"⇿","homtht;":"∻","hookleftarrow;":"↩","hookrightarrow;":"↪","Hopf;":"ℍ","hopf;":"𝕙","horbar;":"―","HorizontalLine;":"─","Hscr;":"ℋ","hscr;":"𝒽","hslash;":"ℏ","Hstrok;":"Ħ","hstrok;":"ħ","HumpDownHump;":"≎","HumpEqual;":"≏","hybull;":"⁃","hyphen;":"‐","Iacute;":"Í",Iacute:"Í","iacute;":"í",iacute:"í","ic;":"⁣","Icirc;":"Î",Icirc:"Î","icirc;":"î",icirc:"î","Icy;":"И","icy;":"и","Idot;":"İ","IEcy;":"Е","iecy;":"е","iexcl;":"¡",iexcl:"¡","iff;":"⇔","Ifr;":"ℑ","ifr;":"𝔦","Igrave;":"Ì",Igrave:"Ì","igrave;":"ì",igrave:"ì","ii;":"ⅈ","iiiint;":"⨌","iiint;":"∭","iinfin;":"⧜","iiota;":"℩","IJlig;":"IJ","ijlig;":"ij","Im;":"ℑ","Imacr;":"Ī","imacr;":"ī","image;":"ℑ","ImaginaryI;":"ⅈ","imagline;":"ℐ","imagpart;":"ℑ","imath;":"ı","imof;":"⊷","imped;":"Ƶ","Implies;":"⇒","in;":"∈","incare;":"℅","infin;":"∞","infintie;":"⧝","inodot;":"ı","Int;":"∬","int;":"∫","intcal;":"⊺","integers;":"ℤ","Integral;":"∫","intercal;":"⊺","Intersection;":"⋂","intlarhk;":"⨗","intprod;":"⨼","InvisibleComma;":"⁣","InvisibleTimes;":"⁢","IOcy;":"Ё","iocy;":"ё","Iogon;":"Į","iogon;":"į","Iopf;":"𝕀","iopf;":"𝕚","Iota;":"Ι","iota;":"ι","iprod;":"⨼","iquest;":"¿",iquest:"¿","Iscr;":"ℐ","iscr;":"𝒾","isin;":"∈","isindot;":"⋵","isinE;":"⋹","isins;":"⋴","isinsv;":"⋳","isinv;":"∈","it;":"⁢","Itilde;":"Ĩ","itilde;":"ĩ","Iukcy;":"І","iukcy;":"і","Iuml;":"Ï",Iuml:"Ï","iuml;":"ï",iuml:"ï","Jcirc;":"Ĵ","jcirc;":"ĵ","Jcy;":"Й","jcy;":"й","Jfr;":"𝔍","jfr;":"𝔧","jmath;":"ȷ","Jopf;":"𝕁","jopf;":"𝕛","Jscr;":"𝒥","jscr;":"𝒿","Jsercy;":"Ј","jsercy;":"ј","Jukcy;":"Є","jukcy;":"є","Kappa;":"Κ","kappa;":"κ","kappav;":"ϰ","Kcedil;":"Ķ","kcedil;":"ķ","Kcy;":"К","kcy;":"к","Kfr;":"𝔎","kfr;":"𝔨","kgreen;":"ĸ","KHcy;":"Х","khcy;":"х","KJcy;":"Ќ","kjcy;":"ќ","Kopf;":"𝕂","kopf;":"𝕜","Kscr;":"𝒦","kscr;":"𝓀","lAarr;":"⇚","Lacute;":"Ĺ","lacute;":"ĺ","laemptyv;":"⦴","lagran;":"ℒ","Lambda;":"Λ","lambda;":"λ","Lang;":"⟪","lang;":"⟨","langd;":"⦑","langle;":"⟨","lap;":"⪅","Laplacetrf;":"ℒ","laquo;":"«",laquo:"«","Larr;":"↞","lArr;":"⇐","larr;":"←","larrb;":"⇤","larrbfs;":"⤟","larrfs;":"⤝","larrhk;":"↩","larrlp;":"↫","larrpl;":"⤹","larrsim;":"⥳","larrtl;":"↢","lat;":"⪫","lAtail;":"⤛","latail;":"⤙","late;":"⪭","lates;":"⪭︀","lBarr;":"⤎","lbarr;":"⤌","lbbrk;":"❲","lbrace;":"{","lbrack;":"[","lbrke;":"⦋","lbrksld;":"⦏","lbrkslu;":"⦍","Lcaron;":"Ľ","lcaron;":"ľ","Lcedil;":"Ļ","lcedil;":"ļ","lceil;":"⌈","lcub;":"{","Lcy;":"Л","lcy;":"л","ldca;":"⤶","ldquo;":"“","ldquor;":"„","ldrdhar;":"⥧","ldrushar;":"⥋","ldsh;":"↲","lE;":"≦","le;":"≤","LeftAngleBracket;":"⟨","LeftArrow;":"←","Leftarrow;":"⇐","leftarrow;":"←","LeftArrowBar;":"⇤","LeftArrowRightArrow;":"⇆","leftarrowtail;":"↢","LeftCeiling;":"⌈","LeftDoubleBracket;":"⟦","LeftDownTeeVector;":"⥡","LeftDownVector;":"⇃","LeftDownVectorBar;":"⥙","LeftFloor;":"⌊","leftharpoondown;":"↽","leftharpoonup;":"↼","leftleftarrows;":"⇇","LeftRightArrow;":"↔","Leftrightarrow;":"⇔","leftrightarrow;":"↔","leftrightarrows;":"⇆","leftrightharpoons;":"⇋","leftrightsquigarrow;":"↭","LeftRightVector;":"⥎","LeftTee;":"⊣","LeftTeeArrow;":"↤","LeftTeeVector;":"⥚","leftthreetimes;":"⋋","LeftTriangle;":"⊲","LeftTriangleBar;":"⧏","LeftTriangleEqual;":"⊴","LeftUpDownVector;":"⥑","LeftUpTeeVector;":"⥠","LeftUpVector;":"↿","LeftUpVectorBar;":"⥘","LeftVector;":"↼","LeftVectorBar;":"⥒","lEg;":"⪋","leg;":"⋚","leq;":"≤","leqq;":"≦","leqslant;":"⩽","les;":"⩽","lescc;":"⪨","lesdot;":"⩿","lesdoto;":"⪁","lesdotor;":"⪃","lesg;":"⋚︀","lesges;":"⪓","lessapprox;":"⪅","lessdot;":"⋖","lesseqgtr;":"⋚","lesseqqgtr;":"⪋","LessEqualGreater;":"⋚","LessFullEqual;":"≦","LessGreater;":"≶","lessgtr;":"≶","LessLess;":"⪡","lesssim;":"≲","LessSlantEqual;":"⩽","LessTilde;":"≲","lfisht;":"⥼","lfloor;":"⌊","Lfr;":"𝔏","lfr;":"𝔩","lg;":"≶","lgE;":"⪑","lHar;":"⥢","lhard;":"↽","lharu;":"↼","lharul;":"⥪","lhblk;":"▄","LJcy;":"Љ","ljcy;":"љ","Ll;":"⋘","ll;":"≪","llarr;":"⇇","llcorner;":"⌞","Lleftarrow;":"⇚","llhard;":"⥫","lltri;":"◺","Lmidot;":"Ŀ","lmidot;":"ŀ","lmoust;":"⎰","lmoustache;":"⎰","lnap;":"⪉","lnapprox;":"⪉","lnE;":"≨","lne;":"⪇","lneq;":"⪇","lneqq;":"≨","lnsim;":"⋦","loang;":"⟬","loarr;":"⇽","lobrk;":"⟦","LongLeftArrow;":"⟵","Longleftarrow;":"⟸","longleftarrow;":"⟵","LongLeftRightArrow;":"⟷","Longleftrightarrow;":"⟺","longleftrightarrow;":"⟷","longmapsto;":"⟼","LongRightArrow;":"⟶","Longrightarrow;":"⟹","longrightarrow;":"⟶","looparrowleft;":"↫","looparrowright;":"↬","lopar;":"⦅","Lopf;":"𝕃","lopf;":"𝕝","loplus;":"⨭","lotimes;":"⨴","lowast;":"∗","lowbar;":"_","LowerLeftArrow;":"↙","LowerRightArrow;":"↘","loz;":"◊","lozenge;":"◊","lozf;":"⧫","lpar;":"(","lparlt;":"⦓","lrarr;":"⇆","lrcorner;":"⌟","lrhar;":"⇋","lrhard;":"⥭","lrm;":"‎","lrtri;":"⊿","lsaquo;":"‹","Lscr;":"ℒ","lscr;":"𝓁","Lsh;":"↰","lsh;":"↰","lsim;":"≲","lsime;":"⪍","lsimg;":"⪏","lsqb;":"[","lsquo;":"‘","lsquor;":"‚","Lstrok;":"Ł","lstrok;":"ł","LT;":"<",LT:"<","Lt;":"≪","lt;":"<",lt:"<","ltcc;":"⪦","ltcir;":"⩹","ltdot;":"⋖","lthree;":"⋋","ltimes;":"⋉","ltlarr;":"⥶","ltquest;":"⩻","ltri;":"◃","ltrie;":"⊴","ltrif;":"◂","ltrPar;":"⦖","lurdshar;":"⥊","luruhar;":"⥦","lvertneqq;":"≨︀","lvnE;":"≨︀","macr;":"¯",macr:"¯","male;":"♂","malt;":"✠","maltese;":"✠","Map;":"⤅","map;":"↦","mapsto;":"↦","mapstodown;":"↧","mapstoleft;":"↤","mapstoup;":"↥","marker;":"▮","mcomma;":"⨩","Mcy;":"М","mcy;":"м","mdash;":"—","mDDot;":"∺","measuredangle;":"∡","MediumSpace;":" ","Mellintrf;":"ℳ","Mfr;":"𝔐","mfr;":"𝔪","mho;":"℧","micro;":"µ",micro:"µ","mid;":"∣","midast;":"*","midcir;":"⫰","middot;":"·",middot:"·","minus;":"−","minusb;":"⊟","minusd;":"∸","minusdu;":"⨪","MinusPlus;":"∓","mlcp;":"⫛","mldr;":"…","mnplus;":"∓","models;":"⊧","Mopf;":"𝕄","mopf;":"𝕞","mp;":"∓","Mscr;":"ℳ","mscr;":"𝓂","mstpos;":"∾","Mu;":"Μ","mu;":"μ","multimap;":"⊸","mumap;":"⊸","nabla;":"∇","Nacute;":"Ń","nacute;":"ń","nang;":"∠⃒","nap;":"≉","napE;":"⩰̸","napid;":"≋̸","napos;":"ʼn","napprox;":"≉","natur;":"♮","natural;":"♮","naturals;":"ℕ","nbsp;":" ",nbsp:" ","nbump;":"≎̸","nbumpe;":"≏̸","ncap;":"⩃","Ncaron;":"Ň","ncaron;":"ň","Ncedil;":"Ņ","ncedil;":"ņ","ncong;":"≇","ncongdot;":"⩭̸","ncup;":"⩂","Ncy;":"Н","ncy;":"н","ndash;":"–","ne;":"≠","nearhk;":"⤤","neArr;":"⇗","nearr;":"↗","nearrow;":"↗","nedot;":"≐̸","NegativeMediumSpace;":"​","NegativeThickSpace;":"​","NegativeThinSpace;":"​","NegativeVeryThinSpace;":"​","nequiv;":"≢","nesear;":"⤨","nesim;":"≂̸","NestedGreaterGreater;":"≫","NestedLessLess;":"≪","NewLine;":`
29
29
  `,"nexist;":"∄","nexists;":"∄","Nfr;":"𝔑","nfr;":"𝔫","ngE;":"≧̸","nge;":"≱","ngeq;":"≱","ngeqq;":"≧̸","ngeqslant;":"⩾̸","nges;":"⩾̸","nGg;":"⋙̸","ngsim;":"≵","nGt;":"≫⃒","ngt;":"≯","ngtr;":"≯","nGtv;":"≫̸","nhArr;":"⇎","nharr;":"↮","nhpar;":"⫲","ni;":"∋","nis;":"⋼","nisd;":"⋺","niv;":"∋","NJcy;":"Њ","njcy;":"њ","nlArr;":"⇍","nlarr;":"↚","nldr;":"‥","nlE;":"≦̸","nle;":"≰","nLeftarrow;":"⇍","nleftarrow;":"↚","nLeftrightarrow;":"⇎","nleftrightarrow;":"↮","nleq;":"≰","nleqq;":"≦̸","nleqslant;":"⩽̸","nles;":"⩽̸","nless;":"≮","nLl;":"⋘̸","nlsim;":"≴","nLt;":"≪⃒","nlt;":"≮","nltri;":"⋪","nltrie;":"⋬","nLtv;":"≪̸","nmid;":"∤","NoBreak;":"⁠","NonBreakingSpace;":" ","Nopf;":"ℕ","nopf;":"𝕟","Not;":"⫬","not;":"¬",not:"¬","NotCongruent;":"≢","NotCupCap;":"≭","NotDoubleVerticalBar;":"∦","NotElement;":"∉","NotEqual;":"≠","NotEqualTilde;":"≂̸","NotExists;":"∄","NotGreater;":"≯","NotGreaterEqual;":"≱","NotGreaterFullEqual;":"≧̸","NotGreaterGreater;":"≫̸","NotGreaterLess;":"≹","NotGreaterSlantEqual;":"⩾̸","NotGreaterTilde;":"≵","NotHumpDownHump;":"≎̸","NotHumpEqual;":"≏̸","notin;":"∉","notindot;":"⋵̸","notinE;":"⋹̸","notinva;":"∉","notinvb;":"⋷","notinvc;":"⋶","NotLeftTriangle;":"⋪","NotLeftTriangleBar;":"⧏̸","NotLeftTriangleEqual;":"⋬","NotLess;":"≮","NotLessEqual;":"≰","NotLessGreater;":"≸","NotLessLess;":"≪̸","NotLessSlantEqual;":"⩽̸","NotLessTilde;":"≴","NotNestedGreaterGreater;":"⪢̸","NotNestedLessLess;":"⪡̸","notni;":"∌","notniva;":"∌","notnivb;":"⋾","notnivc;":"⋽","NotPrecedes;":"⊀","NotPrecedesEqual;":"⪯̸","NotPrecedesSlantEqual;":"⋠","NotReverseElement;":"∌","NotRightTriangle;":"⋫","NotRightTriangleBar;":"⧐̸","NotRightTriangleEqual;":"⋭","NotSquareSubset;":"⊏̸","NotSquareSubsetEqual;":"⋢","NotSquareSuperset;":"⊐̸","NotSquareSupersetEqual;":"⋣","NotSubset;":"⊂⃒","NotSubsetEqual;":"⊈","NotSucceeds;":"⊁","NotSucceedsEqual;":"⪰̸","NotSucceedsSlantEqual;":"⋡","NotSucceedsTilde;":"≿̸","NotSuperset;":"⊃⃒","NotSupersetEqual;":"⊉","NotTilde;":"≁","NotTildeEqual;":"≄","NotTildeFullEqual;":"≇","NotTildeTilde;":"≉","NotVerticalBar;":"∤","npar;":"∦","nparallel;":"∦","nparsl;":"⫽⃥","npart;":"∂̸","npolint;":"⨔","npr;":"⊀","nprcue;":"⋠","npre;":"⪯̸","nprec;":"⊀","npreceq;":"⪯̸","nrArr;":"⇏","nrarr;":"↛","nrarrc;":"⤳̸","nrarrw;":"↝̸","nRightarrow;":"⇏","nrightarrow;":"↛","nrtri;":"⋫","nrtrie;":"⋭","nsc;":"⊁","nsccue;":"⋡","nsce;":"⪰̸","Nscr;":"𝒩","nscr;":"𝓃","nshortmid;":"∤","nshortparallel;":"∦","nsim;":"≁","nsime;":"≄","nsimeq;":"≄","nsmid;":"∤","nspar;":"∦","nsqsube;":"⋢","nsqsupe;":"⋣","nsub;":"⊄","nsubE;":"⫅̸","nsube;":"⊈","nsubset;":"⊂⃒","nsubseteq;":"⊈","nsubseteqq;":"⫅̸","nsucc;":"⊁","nsucceq;":"⪰̸","nsup;":"⊅","nsupE;":"⫆̸","nsupe;":"⊉","nsupset;":"⊃⃒","nsupseteq;":"⊉","nsupseteqq;":"⫆̸","ntgl;":"≹","Ntilde;":"Ñ",Ntilde:"Ñ","ntilde;":"ñ",ntilde:"ñ","ntlg;":"≸","ntriangleleft;":"⋪","ntrianglelefteq;":"⋬","ntriangleright;":"⋫","ntrianglerighteq;":"⋭","Nu;":"Ν","nu;":"ν","num;":"#","numero;":"№","numsp;":" ","nvap;":"≍⃒","nVDash;":"⊯","nVdash;":"⊮","nvDash;":"⊭","nvdash;":"⊬","nvge;":"≥⃒","nvgt;":">⃒","nvHarr;":"⤄","nvinfin;":"⧞","nvlArr;":"⤂","nvle;":"≤⃒","nvlt;":"<⃒","nvltrie;":"⊴⃒","nvrArr;":"⤃","nvrtrie;":"⊵⃒","nvsim;":"∼⃒","nwarhk;":"⤣","nwArr;":"⇖","nwarr;":"↖","nwarrow;":"↖","nwnear;":"⤧","Oacute;":"Ó",Oacute:"Ó","oacute;":"ó",oacute:"ó","oast;":"⊛","ocir;":"⊚","Ocirc;":"Ô",Ocirc:"Ô","ocirc;":"ô",ocirc:"ô","Ocy;":"О","ocy;":"о","odash;":"⊝","Odblac;":"Ő","odblac;":"ő","odiv;":"⨸","odot;":"⊙","odsold;":"⦼","OElig;":"Œ","oelig;":"œ","ofcir;":"⦿","Ofr;":"𝔒","ofr;":"𝔬","ogon;":"˛","Ograve;":"Ò",Ograve:"Ò","ograve;":"ò",ograve:"ò","ogt;":"⧁","ohbar;":"⦵","ohm;":"Ω","oint;":"∮","olarr;":"↺","olcir;":"⦾","olcross;":"⦻","oline;":"‾","olt;":"⧀","Omacr;":"Ō","omacr;":"ō","Omega;":"Ω","omega;":"ω","Omicron;":"Ο","omicron;":"ο","omid;":"⦶","ominus;":"⊖","Oopf;":"𝕆","oopf;":"𝕠","opar;":"⦷","OpenCurlyDoubleQuote;":"“","OpenCurlyQuote;":"‘","operp;":"⦹","oplus;":"⊕","Or;":"⩔","or;":"∨","orarr;":"↻","ord;":"⩝","order;":"ℴ","orderof;":"ℴ","ordf;":"ª",ordf:"ª","ordm;":"º",ordm:"º","origof;":"⊶","oror;":"⩖","orslope;":"⩗","orv;":"⩛","oS;":"Ⓢ","Oscr;":"𝒪","oscr;":"ℴ","Oslash;":"Ø",Oslash:"Ø","oslash;":"ø",oslash:"ø","osol;":"⊘","Otilde;":"Õ",Otilde:"Õ","otilde;":"õ",otilde:"õ","Otimes;":"⨷","otimes;":"⊗","otimesas;":"⨶","Ouml;":"Ö",Ouml:"Ö","ouml;":"ö",ouml:"ö","ovbar;":"⌽","OverBar;":"‾","OverBrace;":"⏞","OverBracket;":"⎴","OverParenthesis;":"⏜","par;":"∥","para;":"¶",para:"¶","parallel;":"∥","parsim;":"⫳","parsl;":"⫽","part;":"∂","PartialD;":"∂","Pcy;":"П","pcy;":"п","percnt;":"%","period;":".","permil;":"‰","perp;":"⊥","pertenk;":"‱","Pfr;":"𝔓","pfr;":"𝔭","Phi;":"Φ","phi;":"φ","phiv;":"ϕ","phmmat;":"ℳ","phone;":"☎","Pi;":"Π","pi;":"π","pitchfork;":"⋔","piv;":"ϖ","planck;":"ℏ","planckh;":"ℎ","plankv;":"ℏ","plus;":"+","plusacir;":"⨣","plusb;":"⊞","pluscir;":"⨢","plusdo;":"∔","plusdu;":"⨥","pluse;":"⩲","PlusMinus;":"±","plusmn;":"±",plusmn:"±","plussim;":"⨦","plustwo;":"⨧","pm;":"±","Poincareplane;":"ℌ","pointint;":"⨕","Popf;":"ℙ","popf;":"𝕡","pound;":"£",pound:"£","Pr;":"⪻","pr;":"≺","prap;":"⪷","prcue;":"≼","prE;":"⪳","pre;":"⪯","prec;":"≺","precapprox;":"⪷","preccurlyeq;":"≼","Precedes;":"≺","PrecedesEqual;":"⪯","PrecedesSlantEqual;":"≼","PrecedesTilde;":"≾","preceq;":"⪯","precnapprox;":"⪹","precneqq;":"⪵","precnsim;":"⋨","precsim;":"≾","Prime;":"″","prime;":"′","primes;":"ℙ","prnap;":"⪹","prnE;":"⪵","prnsim;":"⋨","prod;":"∏","Product;":"∏","profalar;":"⌮","profline;":"⌒","profsurf;":"⌓","prop;":"∝","Proportion;":"∷","Proportional;":"∝","propto;":"∝","prsim;":"≾","prurel;":"⊰","Pscr;":"𝒫","pscr;":"𝓅","Psi;":"Ψ","psi;":"ψ","puncsp;":" ","Qfr;":"𝔔","qfr;":"𝔮","qint;":"⨌","Qopf;":"ℚ","qopf;":"𝕢","qprime;":"⁗","Qscr;":"𝒬","qscr;":"𝓆","quaternions;":"ℍ","quatint;":"⨖","quest;":"?","questeq;":"≟","QUOT;":'"',QUOT:'"',"quot;":'"',quot:'"',"rAarr;":"⇛","race;":"∽̱","Racute;":"Ŕ","racute;":"ŕ","radic;":"√","raemptyv;":"⦳","Rang;":"⟫","rang;":"⟩","rangd;":"⦒","range;":"⦥","rangle;":"⟩","raquo;":"»",raquo:"»","Rarr;":"↠","rArr;":"⇒","rarr;":"→","rarrap;":"⥵","rarrb;":"⇥","rarrbfs;":"⤠","rarrc;":"⤳","rarrfs;":"⤞","rarrhk;":"↪","rarrlp;":"↬","rarrpl;":"⥅","rarrsim;":"⥴","Rarrtl;":"⤖","rarrtl;":"↣","rarrw;":"↝","rAtail;":"⤜","ratail;":"⤚","ratio;":"∶","rationals;":"ℚ","RBarr;":"⤐","rBarr;":"⤏","rbarr;":"⤍","rbbrk;":"❳","rbrace;":"}","rbrack;":"]","rbrke;":"⦌","rbrksld;":"⦎","rbrkslu;":"⦐","Rcaron;":"Ř","rcaron;":"ř","Rcedil;":"Ŗ","rcedil;":"ŗ","rceil;":"⌉","rcub;":"}","Rcy;":"Р","rcy;":"р","rdca;":"⤷","rdldhar;":"⥩","rdquo;":"”","rdquor;":"”","rdsh;":"↳","Re;":"ℜ","real;":"ℜ","realine;":"ℛ","realpart;":"ℜ","reals;":"ℝ","rect;":"▭","REG;":"®",REG:"®","reg;":"®",reg:"®","ReverseElement;":"∋","ReverseEquilibrium;":"⇋","ReverseUpEquilibrium;":"⥯","rfisht;":"⥽","rfloor;":"⌋","Rfr;":"ℜ","rfr;":"𝔯","rHar;":"⥤","rhard;":"⇁","rharu;":"⇀","rharul;":"⥬","Rho;":"Ρ","rho;":"ρ","rhov;":"ϱ","RightAngleBracket;":"⟩","RightArrow;":"→","Rightarrow;":"⇒","rightarrow;":"→","RightArrowBar;":"⇥","RightArrowLeftArrow;":"⇄","rightarrowtail;":"↣","RightCeiling;":"⌉","RightDoubleBracket;":"⟧","RightDownTeeVector;":"⥝","RightDownVector;":"⇂","RightDownVectorBar;":"⥕","RightFloor;":"⌋","rightharpoondown;":"⇁","rightharpoonup;":"⇀","rightleftarrows;":"⇄","rightleftharpoons;":"⇌","rightrightarrows;":"⇉","rightsquigarrow;":"↝","RightTee;":"⊢","RightTeeArrow;":"↦","RightTeeVector;":"⥛","rightthreetimes;":"⋌","RightTriangle;":"⊳","RightTriangleBar;":"⧐","RightTriangleEqual;":"⊵","RightUpDownVector;":"⥏","RightUpTeeVector;":"⥜","RightUpVector;":"↾","RightUpVectorBar;":"⥔","RightVector;":"⇀","RightVectorBar;":"⥓","ring;":"˚","risingdotseq;":"≓","rlarr;":"⇄","rlhar;":"⇌","rlm;":"‏","rmoust;":"⎱","rmoustache;":"⎱","rnmid;":"⫮","roang;":"⟭","roarr;":"⇾","robrk;":"⟧","ropar;":"⦆","Ropf;":"ℝ","ropf;":"𝕣","roplus;":"⨮","rotimes;":"⨵","RoundImplies;":"⥰","rpar;":")","rpargt;":"⦔","rppolint;":"⨒","rrarr;":"⇉","Rrightarrow;":"⇛","rsaquo;":"›","Rscr;":"ℛ","rscr;":"𝓇","Rsh;":"↱","rsh;":"↱","rsqb;":"]","rsquo;":"’","rsquor;":"’","rthree;":"⋌","rtimes;":"⋊","rtri;":"▹","rtrie;":"⊵","rtrif;":"▸","rtriltri;":"⧎","RuleDelayed;":"⧴","ruluhar;":"⥨","rx;":"℞","Sacute;":"Ś","sacute;":"ś","sbquo;":"‚","Sc;":"⪼","sc;":"≻","scap;":"⪸","Scaron;":"Š","scaron;":"š","sccue;":"≽","scE;":"⪴","sce;":"⪰","Scedil;":"Ş","scedil;":"ş","Scirc;":"Ŝ","scirc;":"ŝ","scnap;":"⪺","scnE;":"⪶","scnsim;":"⋩","scpolint;":"⨓","scsim;":"≿","Scy;":"С","scy;":"с","sdot;":"⋅","sdotb;":"⊡","sdote;":"⩦","searhk;":"⤥","seArr;":"⇘","searr;":"↘","searrow;":"↘","sect;":"§",sect:"§","semi;":";","seswar;":"⤩","setminus;":"∖","setmn;":"∖","sext;":"✶","Sfr;":"𝔖","sfr;":"𝔰","sfrown;":"⌢","sharp;":"♯","SHCHcy;":"Щ","shchcy;":"щ","SHcy;":"Ш","shcy;":"ш","ShortDownArrow;":"↓","ShortLeftArrow;":"←","shortmid;":"∣","shortparallel;":"∥","ShortRightArrow;":"→","ShortUpArrow;":"↑","shy;":"­",shy:"­","Sigma;":"Σ","sigma;":"σ","sigmaf;":"ς","sigmav;":"ς","sim;":"∼","simdot;":"⩪","sime;":"≃","simeq;":"≃","simg;":"⪞","simgE;":"⪠","siml;":"⪝","simlE;":"⪟","simne;":"≆","simplus;":"⨤","simrarr;":"⥲","slarr;":"←","SmallCircle;":"∘","smallsetminus;":"∖","smashp;":"⨳","smeparsl;":"⧤","smid;":"∣","smile;":"⌣","smt;":"⪪","smte;":"⪬","smtes;":"⪬︀","SOFTcy;":"Ь","softcy;":"ь","sol;":"/","solb;":"⧄","solbar;":"⌿","Sopf;":"𝕊","sopf;":"𝕤","spades;":"♠","spadesuit;":"♠","spar;":"∥","sqcap;":"⊓","sqcaps;":"⊓︀","sqcup;":"⊔","sqcups;":"⊔︀","Sqrt;":"√","sqsub;":"⊏","sqsube;":"⊑","sqsubset;":"⊏","sqsubseteq;":"⊑","sqsup;":"⊐","sqsupe;":"⊒","sqsupset;":"⊐","sqsupseteq;":"⊒","squ;":"□","Square;":"□","square;":"□","SquareIntersection;":"⊓","SquareSubset;":"⊏","SquareSubsetEqual;":"⊑","SquareSuperset;":"⊐","SquareSupersetEqual;":"⊒","SquareUnion;":"⊔","squarf;":"▪","squf;":"▪","srarr;":"→","Sscr;":"𝒮","sscr;":"𝓈","ssetmn;":"∖","ssmile;":"⌣","sstarf;":"⋆","Star;":"⋆","star;":"☆","starf;":"★","straightepsilon;":"ϵ","straightphi;":"ϕ","strns;":"¯","Sub;":"⋐","sub;":"⊂","subdot;":"⪽","subE;":"⫅","sube;":"⊆","subedot;":"⫃","submult;":"⫁","subnE;":"⫋","subne;":"⊊","subplus;":"⪿","subrarr;":"⥹","Subset;":"⋐","subset;":"⊂","subseteq;":"⊆","subseteqq;":"⫅","SubsetEqual;":"⊆","subsetneq;":"⊊","subsetneqq;":"⫋","subsim;":"⫇","subsub;":"⫕","subsup;":"⫓","succ;":"≻","succapprox;":"⪸","succcurlyeq;":"≽","Succeeds;":"≻","SucceedsEqual;":"⪰","SucceedsSlantEqual;":"≽","SucceedsTilde;":"≿","succeq;":"⪰","succnapprox;":"⪺","succneqq;":"⪶","succnsim;":"⋩","succsim;":"≿","SuchThat;":"∋","Sum;":"∑","sum;":"∑","sung;":"♪","Sup;":"⋑","sup;":"⊃","sup1;":"¹",sup1:"¹","sup2;":"²",sup2:"²","sup3;":"³",sup3:"³","supdot;":"⪾","supdsub;":"⫘","supE;":"⫆","supe;":"⊇","supedot;":"⫄","Superset;":"⊃","SupersetEqual;":"⊇","suphsol;":"⟉","suphsub;":"⫗","suplarr;":"⥻","supmult;":"⫂","supnE;":"⫌","supne;":"⊋","supplus;":"⫀","Supset;":"⋑","supset;":"⊃","supseteq;":"⊇","supseteqq;":"⫆","supsetneq;":"⊋","supsetneqq;":"⫌","supsim;":"⫈","supsub;":"⫔","supsup;":"⫖","swarhk;":"⤦","swArr;":"⇙","swarr;":"↙","swarrow;":"↙","swnwar;":"⤪","szlig;":"ß",szlig:"ß","Tab;":" ","target;":"⌖","Tau;":"Τ","tau;":"τ","tbrk;":"⎴","Tcaron;":"Ť","tcaron;":"ť","Tcedil;":"Ţ","tcedil;":"ţ","Tcy;":"Т","tcy;":"т","tdot;":"⃛","telrec;":"⌕","Tfr;":"𝔗","tfr;":"𝔱","there4;":"∴","Therefore;":"∴","therefore;":"∴","Theta;":"Θ","theta;":"θ","thetasym;":"ϑ","thetav;":"ϑ","thickapprox;":"≈","thicksim;":"∼","ThickSpace;":"  ","thinsp;":" ","ThinSpace;":" ","thkap;":"≈","thksim;":"∼","THORN;":"Þ",THORN:"Þ","thorn;":"þ",thorn:"þ","Tilde;":"∼","tilde;":"˜","TildeEqual;":"≃","TildeFullEqual;":"≅","TildeTilde;":"≈","times;":"×",times:"×","timesb;":"⊠","timesbar;":"⨱","timesd;":"⨰","tint;":"∭","toea;":"⤨","top;":"⊤","topbot;":"⌶","topcir;":"⫱","Topf;":"𝕋","topf;":"𝕥","topfork;":"⫚","tosa;":"⤩","tprime;":"‴","TRADE;":"™","trade;":"™","triangle;":"▵","triangledown;":"▿","triangleleft;":"◃","trianglelefteq;":"⊴","triangleq;":"≜","triangleright;":"▹","trianglerighteq;":"⊵","tridot;":"◬","trie;":"≜","triminus;":"⨺","TripleDot;":"⃛","triplus;":"⨹","trisb;":"⧍","tritime;":"⨻","trpezium;":"⏢","Tscr;":"𝒯","tscr;":"𝓉","TScy;":"Ц","tscy;":"ц","TSHcy;":"Ћ","tshcy;":"ћ","Tstrok;":"Ŧ","tstrok;":"ŧ","twixt;":"≬","twoheadleftarrow;":"↞","twoheadrightarrow;":"↠","Uacute;":"Ú",Uacute:"Ú","uacute;":"ú",uacute:"ú","Uarr;":"↟","uArr;":"⇑","uarr;":"↑","Uarrocir;":"⥉","Ubrcy;":"Ў","ubrcy;":"ў","Ubreve;":"Ŭ","ubreve;":"ŭ","Ucirc;":"Û",Ucirc:"Û","ucirc;":"û",ucirc:"û","Ucy;":"У","ucy;":"у","udarr;":"⇅","Udblac;":"Ű","udblac;":"ű","udhar;":"⥮","ufisht;":"⥾","Ufr;":"𝔘","ufr;":"𝔲","Ugrave;":"Ù",Ugrave:"Ù","ugrave;":"ù",ugrave:"ù","uHar;":"⥣","uharl;":"↿","uharr;":"↾","uhblk;":"▀","ulcorn;":"⌜","ulcorner;":"⌜","ulcrop;":"⌏","ultri;":"◸","Umacr;":"Ū","umacr;":"ū","uml;":"¨",uml:"¨","UnderBar;":"_","UnderBrace;":"⏟","UnderBracket;":"⎵","UnderParenthesis;":"⏝","Union;":"⋃","UnionPlus;":"⊎","Uogon;":"Ų","uogon;":"ų","Uopf;":"𝕌","uopf;":"𝕦","UpArrow;":"↑","Uparrow;":"⇑","uparrow;":"↑","UpArrowBar;":"⤒","UpArrowDownArrow;":"⇅","UpDownArrow;":"↕","Updownarrow;":"⇕","updownarrow;":"↕","UpEquilibrium;":"⥮","upharpoonleft;":"↿","upharpoonright;":"↾","uplus;":"⊎","UpperLeftArrow;":"↖","UpperRightArrow;":"↗","Upsi;":"ϒ","upsi;":"υ","upsih;":"ϒ","Upsilon;":"Υ","upsilon;":"υ","UpTee;":"⊥","UpTeeArrow;":"↥","upuparrows;":"⇈","urcorn;":"⌝","urcorner;":"⌝","urcrop;":"⌎","Uring;":"Ů","uring;":"ů","urtri;":"◹","Uscr;":"𝒰","uscr;":"𝓊","utdot;":"⋰","Utilde;":"Ũ","utilde;":"ũ","utri;":"▵","utrif;":"▴","uuarr;":"⇈","Uuml;":"Ü",Uuml:"Ü","uuml;":"ü",uuml:"ü","uwangle;":"⦧","vangrt;":"⦜","varepsilon;":"ϵ","varkappa;":"ϰ","varnothing;":"∅","varphi;":"ϕ","varpi;":"ϖ","varpropto;":"∝","vArr;":"⇕","varr;":"↕","varrho;":"ϱ","varsigma;":"ς","varsubsetneq;":"⊊︀","varsubsetneqq;":"⫋︀","varsupsetneq;":"⊋︀","varsupsetneqq;":"⫌︀","vartheta;":"ϑ","vartriangleleft;":"⊲","vartriangleright;":"⊳","Vbar;":"⫫","vBar;":"⫨","vBarv;":"⫩","Vcy;":"В","vcy;":"в","VDash;":"⊫","Vdash;":"⊩","vDash;":"⊨","vdash;":"⊢","Vdashl;":"⫦","Vee;":"⋁","vee;":"∨","veebar;":"⊻","veeeq;":"≚","vellip;":"⋮","Verbar;":"‖","verbar;":"|","Vert;":"‖","vert;":"|","VerticalBar;":"∣","VerticalLine;":"|","VerticalSeparator;":"❘","VerticalTilde;":"≀","VeryThinSpace;":" ","Vfr;":"𝔙","vfr;":"𝔳","vltri;":"⊲","vnsub;":"⊂⃒","vnsup;":"⊃⃒","Vopf;":"𝕍","vopf;":"𝕧","vprop;":"∝","vrtri;":"⊳","Vscr;":"𝒱","vscr;":"𝓋","vsubnE;":"⫋︀","vsubne;":"⊊︀","vsupnE;":"⫌︀","vsupne;":"⊋︀","Vvdash;":"⊪","vzigzag;":"⦚","Wcirc;":"Ŵ","wcirc;":"ŵ","wedbar;":"⩟","Wedge;":"⋀","wedge;":"∧","wedgeq;":"≙","weierp;":"℘","Wfr;":"𝔚","wfr;":"𝔴","Wopf;":"𝕎","wopf;":"𝕨","wp;":"℘","wr;":"≀","wreath;":"≀","Wscr;":"𝒲","wscr;":"𝓌","xcap;":"⋂","xcirc;":"◯","xcup;":"⋃","xdtri;":"▽","Xfr;":"𝔛","xfr;":"𝔵","xhArr;":"⟺","xharr;":"⟷","Xi;":"Ξ","xi;":"ξ","xlArr;":"⟸","xlarr;":"⟵","xmap;":"⟼","xnis;":"⋻","xodot;":"⨀","Xopf;":"𝕏","xopf;":"𝕩","xoplus;":"⨁","xotime;":"⨂","xrArr;":"⟹","xrarr;":"⟶","Xscr;":"𝒳","xscr;":"𝓍","xsqcup;":"⨆","xuplus;":"⨄","xutri;":"△","xvee;":"⋁","xwedge;":"⋀","Yacute;":"Ý",Yacute:"Ý","yacute;":"ý",yacute:"ý","YAcy;":"Я","yacy;":"я","Ycirc;":"Ŷ","ycirc;":"ŷ","Ycy;":"Ы","ycy;":"ы","yen;":"¥",yen:"¥","Yfr;":"𝔜","yfr;":"𝔶","YIcy;":"Ї","yicy;":"ї","Yopf;":"𝕐","yopf;":"𝕪","Yscr;":"𝒴","yscr;":"𝓎","YUcy;":"Ю","yucy;":"ю","Yuml;":"Ÿ","yuml;":"ÿ",yuml:"ÿ","Zacute;":"Ź","zacute;":"ź","Zcaron;":"Ž","zcaron;":"ž","Zcy;":"З","zcy;":"з","Zdot;":"Ż","zdot;":"ż","zeetrf;":"ℨ","ZeroWidthSpace;":"​","Zeta;":"Ζ","zeta;":"ζ","Zfr;":"ℨ","zfr;":"𝔷","ZHcy;":"Ж","zhcy;":"ж","zigrarr;":"⇝","Zopf;":"ℤ","zopf;":"𝕫","Zscr;":"𝒵","zscr;":"𝓏","zwj;":"‍","zwnj;":"‌"};function Ge(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 cc(t,e){const n=t.length-e.length;return n>0?t.lastIndexOf(e)===n:n===0?t===e:!1}function $a(t,e){let n="";for(;e>0;)(e&1)===1&&(n+=t),t+=t,e=e>>>1;return n}const hc=97,dc=122,mc=65,fc=90,pc=48,gc=57;function Wt(t,e){const n=t.charCodeAt(e);return hc<=n&&n<=dc||mc<=n&&n<=fc||pc<=n&&n<=gc}function wn(t){return typeof t<"u"}function bc(t){if(t)return typeof t=="string"?{kind:"markdown",value:t}:{kind:"markdown",value:t.value}}class Ga{isApplicable(){return!0}constructor(e,n){this.id=e,this._tags=[],this._tagMap={},this._valueSetMap={},this._tags=n.tags||[],this._globalAttributes=n.globalAttributes||[],this._tags.forEach(i=>{this._tagMap[i.name.toLowerCase()]=i}),n.valueSets&&n.valueSets.forEach(i=>{this._valueSetMap[i.name]=i.values})}getId(){return this.id}provideTags(){return this._tags}provideAttributes(e){const n=[],i=s=>{n.push(s)},r=this._tagMap[e.toLowerCase()];return r&&r.attributes.forEach(i),this._globalAttributes.forEach(i),n}provideValues(e,n){const i=[];n=n.toLowerCase();const r=a=>{a.forEach(l=>{l.name.toLowerCase()===n&&(l.values&&l.values.forEach(o=>{i.push(o)}),l.valueSet&&this._valueSetMap[l.valueSet]&&this._valueSetMap[l.valueSet].forEach(o=>{i.push(o)}))})},s=this._tagMap[e.toLowerCase()];return s&&r(s.attributes),r(this._globalAttributes),i}}function Ze(t,e={},n){const i={kind:n?"markdown":"plaintext",value:""};if(t.description&&e.documentation!==!1){const r=bc(t.description);r&&(i.value+=r.value)}if(t.references&&t.references.length>0&&e.references!==!1&&(i.value.length&&(i.value+=`
30
30
 
31
31
  `),n?i.value+=t.references.map(r=>`[${r.name}](${r.url})`).join(" | "):i.value+=t.references.map(r=>`${r.name}: ${r.url}`).join(`
32
- `)),i.value!=="")return i}class wc{constructor(e,n){this.dataManager=e,this.readDirectory=n,this.atributeCompletions=[]}onHtmlAttributeValue(e){this.dataManager.isPathAttribute(e.tag,e.attribute)&&this.atributeCompletions.push(e)}async computeCompletions(e,n){const i={items:[],isIncomplete:!1};for(const r of this.atributeCompletions){const s=vc(e.getText(r.range));if(yc(s))if(s==="."||s==="..")i.isIncomplete=!0;else{const a=Tc(r.value,s,r.range),l=await this.providePathSuggestions(r.value,a,e,n);for(const o of l)i.items.push(o)}}return i}async providePathSuggestions(e,n,i,r){const s=e.substring(0,e.lastIndexOf("/")+1);let a=r.resolveReference(s||".",i.uri);if(a)try{const l=[],o=await this.readDirectory(a);for(const[u,c]of o)u.charCodeAt(0)!==_c&&l.push(xc(u,c===Ri.Directory,n));return l}catch{}return[]}}const _c=46;function vc(t){return Ge(t,"'")||Ge(t,'"')?t.slice(1,-1):t}function yc(t){return!(Ge(t,"http")||Ge(t,"https")||Ge(t,"//"))}function Tc(t,e,n){let i;const r=t.lastIndexOf("/");if(r===-1)i=kc(n,1,-1);else{const s=e.slice(r+1),a=Ft(n.end,-1-s.length),l=s.indexOf(" ");let o;l!==-1?o=Ft(a,l):o=Ft(n.end,-1),i=Q.create(a,o)}return i}function xc(t,e,n){return e?(t=t+"/",{label:t,kind:ge.Folder,textEdit:oe.replace(n,t),command:{title:"Suggest",command:"editor.action.triggerSuggest"}}):{label:t,kind:ge.File,textEdit:oe.replace(n,t)}}function Ft(t,e){return se.create(t.line,t.character+e)}function kc(t,e,n){const i=Ft(t.start,e),r=Ft(t.end,n);return Q.create(i,r)}class Sc{constructor(e,n){this.lsOptions=e,this.dataManager=n,this.completionParticipants=[]}setCompletionParticipants(e){this.completionParticipants=e||[]}async doComplete2(e,n,i,r,s){if(!this.lsOptions.fileSystemProvider||!this.lsOptions.fileSystemProvider.readDirectory)return this.doComplete(e,n,i,s);const a=new wc(this.dataManager,this.lsOptions.fileSystemProvider.readDirectory),l=this.completionParticipants;this.completionParticipants=[a].concat(l);const o=this.doComplete(e,n,i,s);try{const u=await a.computeCompletions(e,r);return{isIncomplete:o.isIncomplete||u.isIncomplete,items:u.items.concat(o.items)}}finally{this.completionParticipants=l}}doComplete(e,n,i,r){const s=this._doComplete(e,n,i,r);return this.convertCompletionList(s)}_doComplete(e,n,i,r){const s={isIncomplete:!1,items:[]},a=this.completionParticipants,l=this.dataManager.getDataProviders().filter(k=>k.isApplicable(e.languageId)&&(!r||r[k.getId()]!==!1)),o=this.dataManager.getVoidElements(l),u=this.doesSupportMarkdown(),c=e.getText(),d=e.offsetAt(n),m=i.findNodeBefore(d);if(!m)return s;const f=_e(c,m.start);let w="",p;function T(k,E=d){return k>d&&(k=d),{start:e.positionAt(k),end:e.positionAt(E)}}function y(k,E){const M=T(k,E);return l.forEach(U=>{U.provideTags().forEach(F=>{s.items.push({label:F.name,kind:ge.Property,documentation:Ze(F,void 0,u),textEdit:oe.replace(M,F.name),insertTextFormat:Ce.PlainText})})}),s}function v(k){let E=k;for(;E>0;){const M=c.charAt(E-1);if(`
33
- \r`.indexOf(M)>=0)return c.substring(E,k);if(!_n(M))return null;E--}return c.substring(0,k)}function S(k,E,M=d){const U=T(k,M),F=Xa(c,M,V.WithinEndTag,z.EndTagClose)?"":">";let P=m;for(E&&(P=P.parent);P;){const B=P.tag;if(B&&(!P.closed||P.endTagStart&&P.endTagStart>d)){const X={label:"/"+B,kind:ge.Property,filterText:"/"+B,textEdit:oe.replace(U,"/"+B+F),insertTextFormat:Ce.PlainText},Y=v(P.start),le=v(k-1);if(Y!==null&&le!==null&&Y!==le){const be=Y+"</"+B+F;X.textEdit=oe.replace(T(k-1-le.length),be),X.filterText=le+"</"+B}return s.items.push(X),s}P=P.parent}return E||l.forEach(B=>{B.provideTags().forEach(X=>{s.items.push({label:"/"+X.name,kind:ge.Property,documentation:Ze(X,void 0,u),filterText:"/"+X.name+F,textEdit:oe.replace(U,"/"+X.name+F),insertTextFormat:Ce.PlainText})})}),s}const I=(k,E)=>{if(r&&r.hideAutoCompleteProposals)return s;if(!this.dataManager.isVoidElement(E,o)){const M=e.positionAt(k);s.items.push({label:"</"+E+">",kind:ge.Property,filterText:"</"+E+">",textEdit:oe.insert(M,"$0</"+E+">"),insertTextFormat:Ce.Snippet})}return s};function H(k,E){return y(k,E),S(k,!0,E),s}function W(){const k=Object.create(null);return m.attributeNames.forEach(E=>{k[E]=!0}),k}function b(k,E=d){let M=d;for(;M<E&&c[M]!=="<";)M++;const U=c.substring(k,E),F=T(k,M);let P="";if(!Xa(c,E,V.AfterAttributeName,z.DelimiterAssign)){const X=r?.attributeDefaultValue??"doublequotes";X==="empty"?P="=$1":X==="singlequotes"?P="='$1'":P='="$1"'}const B=W();return B[U]=!1,l.forEach(X=>{X.provideAttributes(w).forEach(Y=>{if(B[Y.name])return;B[Y.name]=!0;let le=Y.name,be;Y.valueSet!=="v"&&P.length&&(le=le+P,(Y.valueSet||Y.name==="style")&&(be={title:"Suggest",command:"editor.action.triggerSuggest"})),s.items.push({label:Y.name,kind:Y.valueSet==="handler"?ge.Function:ge.Value,documentation:Ze(Y,void 0,u),textEdit:oe.replace(F,le),insertTextFormat:Ce.Snippet,command:be})})}),g(F,B),s}function g(k,E){const M="data-",U={};U[M]=`${M}$1="$2"`;function F(P){P.attributeNames.forEach(B=>{Ge(B,M)&&!U[B]&&!E[B]&&(U[B]=B+'="$1"')}),P.children.forEach(B=>F(B))}i&&i.roots.forEach(P=>F(P)),Object.keys(U).forEach(P=>s.items.push({label:P,kind:ge.Value,textEdit:oe.replace(k,U[P]),insertTextFormat:Ce.Snippet}))}function _(k,E=d){let M,U,F;if(d>k&&d<=E&&Ac(c[k])){const P=k+1;let B=E;E>k&&c[E-1]===c[k]&&B--;const X=Lc(c,d,P),Y=Cc(c,d,B);M=T(X,Y),F=d>=P&&d<=B?c.substring(P,d):"",U=!1}else M=T(k,E),F=c.substring(k,d),U=!0;if(a.length>0){const P=w.toLowerCase(),B=p.toLowerCase(),X=T(k,E);for(const Y of a)Y.onHtmlAttributeValue&&Y.onHtmlAttributeValue({document:e,position:n,tag:P,attribute:B,value:F,range:X})}return l.forEach(P=>{P.provideValues(w,p).forEach(B=>{const X=U?'"'+B.name+'"':B.name;s.items.push({label:B.name,filterText:X,kind:ge.Unit,documentation:Ze(B,void 0,u),textEdit:oe.replace(M,X),insertTextFormat:Ce.PlainText})})}),x(),s}function N(k){return d===f.getTokenEnd()&&(L=f.scan(),L===k&&f.getTokenOffset()===d)?f.getTokenEnd():d}function A(){for(const k of a)k.onHtmlContent&&k.onHtmlContent({document:e,position:n});return x()}function x(){let k=d-1,E=n.character;for(;k>=0&&Wt(c,k);)k--,E--;if(k>=0&&c[k]==="&"){const M=Q.create(se.create(n.line,E-1),n);for(const U in Pt)if(cc(U,";")){const F="&"+U;s.items.push({label:F,kind:ge.Keyword,documentation:Le("Character entity representing '{0}'",Pt[U]),textEdit:oe.replace(M,F),insertTextFormat:Ce.PlainText})}}return s}function R(k,E){const M=T(k,E);s.items.push({label:"!DOCTYPE",kind:ge.Property,documentation:"A preamble for an HTML document.",textEdit:oe.replace(M,"!DOCTYPE html>"),insertTextFormat:Ce.PlainText})}let L=f.scan();for(;L!==z.EOS&&f.getTokenOffset()<=d;){switch(L){case z.StartTagOpen:if(f.getTokenEnd()===d){const k=N(z.StartTag);return n.line===0&&R(d,k),H(d,k)}break;case z.StartTag:if(f.getTokenOffset()<=d&&d<=f.getTokenEnd())return y(f.getTokenOffset(),f.getTokenEnd());w=f.getTokenText();break;case z.AttributeName:if(f.getTokenOffset()<=d&&d<=f.getTokenEnd())return b(f.getTokenOffset(),f.getTokenEnd());p=f.getTokenText();break;case z.DelimiterAssign:if(f.getTokenEnd()===d){const k=N(z.AttributeValue);return _(d,k)}break;case z.AttributeValue:if(f.getTokenOffset()<=d&&d<=f.getTokenEnd())return _(f.getTokenOffset(),f.getTokenEnd());break;case z.Whitespace:if(d<=f.getTokenEnd())switch(f.getScannerState()){case V.AfterOpeningStartTag:const k=f.getTokenOffset(),E=N(z.StartTag);return H(k,E);case V.WithinTag:case V.AfterAttributeName:return b(f.getTokenEnd());case V.BeforeAttributeValue:return _(f.getTokenEnd());case V.AfterOpeningEndTag:return S(f.getTokenOffset()-1,!1);case V.WithinContent:return A()}break;case z.EndTagOpen:if(d<=f.getTokenEnd()){const k=f.getTokenOffset()+1,E=N(z.EndTag);return S(k,!1,E)}break;case z.EndTag:if(d<=f.getTokenEnd()){let k=f.getTokenOffset()-1;for(;k>=0;){const E=c.charAt(k);if(E==="/")return S(k,!1,f.getTokenEnd());if(!_n(E))break;k--}}break;case z.StartTagClose:if(d<=f.getTokenEnd()&&w)return I(f.getTokenEnd(),w);break;case z.Content:if(d<=f.getTokenEnd())return A();break;default:if(d<=f.getTokenEnd())return s;break}L=f.scan()}return s}doQuoteComplete(e,n,i,r){const s=e.offsetAt(n);if(s<=0)return null;const a=r?.attributeDefaultValue??"doublequotes";if(a==="empty"||e.getText().charAt(s-1)!=="=")return null;const o=a==="doublequotes"?'"$1"':"'$1'",u=i.findNodeBefore(s);if(u&&u.attributes&&u.start<s&&(!u.endTagStart||u.endTagStart>s)){const c=_e(e.getText(),u.start);let d=c.scan();for(;d!==z.EOS&&c.getTokenEnd()<=s;){if(d===z.AttributeName&&c.getTokenEnd()===s-1)return d=c.scan(),d!==z.DelimiterAssign||(d=c.scan(),d===z.Unknown||d===z.AttributeValue)?null:o;d=c.scan()}}return null}doTagComplete(e,n,i){const r=e.offsetAt(n);if(r<=0)return null;const s=e.getText().charAt(r-1);if(s===">"){const a=this.dataManager.getVoidElements(e.languageId),l=i.findNodeBefore(r);if(l&&l.tag&&!this.dataManager.isVoidElement(l.tag,a)&&l.start<r&&(!l.endTagStart||l.endTagStart>r)){const o=_e(e.getText(),l.start);let u=o.scan();for(;u!==z.EOS&&o.getTokenEnd()<=r;){if(u===z.StartTagClose&&o.getTokenEnd()===r)return`$0</${l.tag}>`;u=o.scan()}}}else if(s==="/"){let a=i.findNodeBefore(r);for(;a&&a.closed&&!(a.endTagStart&&a.endTagStart>r);)a=a.parent;if(a&&a.tag){const l=_e(e.getText(),a.start);let o=l.scan();for(;o!==z.EOS&&l.getTokenEnd()<=r;){if(o===z.EndTagOpen&&l.getTokenEnd()===r)return e.getText().charAt(r)!==">"?`${a.tag}>`:a.tag;o=l.scan()}}}return null}convertCompletionList(e){return this.doesSupportMarkdown()||e.items.forEach(n=>{n.documentation&&typeof n.documentation!="string"&&(n.documentation={kind:"plaintext",value:n.documentation.value})}),e}doesSupportMarkdown(){if(!wn(this.supportsMarkdown)){if(!wn(this.lsOptions.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;const e=this.lsOptions.clientCapabilities.textDocument?.completion?.completionItem?.documentationFormat;this.supportsMarkdown=Array.isArray(e)&&e.indexOf(Be.Markdown)!==-1}return this.supportsMarkdown}}function Ac(t){return/^["']*$/.test(t)}function _n(t){return/^\s*$/.test(t)}function Xa(t,e,n,i){const r=_e(t,e,n);let s=r.scan();for(;s===z.Whitespace;)s=r.scan();return s===i}function Lc(t,e,n){for(;e>n&&!_n(t[e-1]);)e--;return e}function Cc(t,e,n){for(;e<n&&!_n(t[e]);)e++;return e}class Ec{constructor(e,n){this.lsOptions=e,this.dataManager=n}doHover(e,n,i,r){const s=this.convertContents.bind(this),a=this.doesSupportMarkdown(),l=e.offsetAt(n),o=i.findNodeAt(l),u=e.getText();if(!o||!o.tag)return null;const c=this.dataManager.getDataProviders().filter(b=>b.isApplicable(e.languageId));function d(b,g,_){for(const N of c){let A=null;if(N.provideTags().forEach(x=>{if(x.name.toLowerCase()===b.toLowerCase()){let R=Ze(x,r,a);R||(R={kind:a?"markdown":"plaintext",value:""}),A={contents:R,range:g}}}),A)return A.contents=s(A.contents),A}return null}function m(b,g,_){for(const N of c){let A=null;if(N.provideAttributes(b).forEach(x=>{if(g===x.name&&x.description){const R=Ze(x,r,a);R?A={contents:R,range:_}:A=null}}),A)return A.contents=s(A.contents),A}return null}function f(b,g,_,N){for(const A of c){let x=null;if(A.provideValues(b,g).forEach(R=>{if(_===R.name&&R.description){const L=Ze(R,r,a);L?x={contents:L,range:N}:x=null}}),x)return x.contents=s(x.contents),x}return null}function w(b,g){let _=y(b);for(const N in Pt){let A=null;const x="&"+N;if(_===x){let R=Pt[N].charCodeAt(0).toString(16).toUpperCase(),L="U+";if(R.length<4){const E=4-R.length;let M=0;for(;M<E;)L+="0",M+=1}L+=R;const k=Le("Character entity representing '{0}', unicode equivalent '{1}'",Pt[N],L);k?A={contents:k,range:g}:A=null}if(A)return A.contents=s(A.contents),A}return null}function p(b,g){const _=_e(e.getText(),g);let N=_.scan();for(;N!==z.EOS&&(_.getTokenEnd()<l||_.getTokenEnd()===l&&N!==b);)N=_.scan();return N===b&&l<=_.getTokenEnd()?{start:e.positionAt(_.getTokenOffset()),end:e.positionAt(_.getTokenEnd())}:null}function T(){let b=l-1,g=n.character;for(;b>=0&&Wt(u,b);)b--,g--;let _=b+1,N=g;for(;Wt(u,_);)_++,N++;if(b>=0&&u[b]==="&"){let A=null;return u[_]===";"?A=Q.create(se.create(n.line,g),se.create(n.line,N+1)):A=Q.create(se.create(n.line,g),se.create(n.line,N)),A}return null}function y(b){let g=l-1,_="&";for(;g>=0&&Wt(b,g);)g--;for(g=g+1;Wt(b,g);)_+=b[g],g+=1;return _+=";",_}if(o.endTagStart&&l>=o.endTagStart){const b=p(z.EndTag,o.endTagStart);return b?d(o.tag,b):null}const v=p(z.StartTag,o.start);if(v)return d(o.tag,v);const S=p(z.AttributeName,o.start);if(S){const b=o.tag,g=e.getText(S);return m(b,g,S)}const I=T();if(I)return w(u,I);function H(b,g){const _=_e(e.getText(),b);let N=_.scan(),A;for(;N!==z.EOS&&_.getTokenEnd()<=g;)N=_.scan(),N===z.AttributeName&&(A=_.getTokenText());return A}const W=p(z.AttributeValue,o.start);if(W){const b=o.tag,g=Rc(e.getText(W)),_=H(o.start,e.offsetAt(W.start));if(_)return f(b,_,g,W)}return null}convertContents(e){if(!this.doesSupportMarkdown()){if(typeof e=="string")return e;if("kind"in e)return{kind:"plaintext",value:e.value};if(Array.isArray(e))e.map(n=>typeof n=="string"?n:n.value);else return e.value}return e}doesSupportMarkdown(){if(!wn(this.supportsMarkdown)){if(!wn(this.lsOptions.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;const e=this.lsOptions.clientCapabilities?.textDocument?.hover?.contentFormat;this.supportsMarkdown=Array.isArray(e)&&e.indexOf(Be.Markdown)!==-1}return this.supportsMarkdown}}function Rc(t){return t.length<=1?t.replace(/['"]/,""):((t[0]==="'"||t[0]==='"')&&(t=t.slice(1)),(t[t.length-1]==="'"||t[t.length-1]==='"')&&(t=t.slice(0,-1)),t)}function Dc(t,e){return t}var Ja;(function(){var t=[,,(function(r){function s(o){this.__parent=o,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}s.prototype.clone_empty=function(){var o=new s(this.__parent);return o.set_indent(this.__indent_count,this.__alignment_count),o},s.prototype.item=function(o){return o<0?this.__items[this.__items.length+o]:this.__items[o]},s.prototype.has_match=function(o){for(var u=this.__items.length-1;u>=0;u--)if(this.__items[u].match(o))return!0;return!1},s.prototype.set_indent=function(o,u){this.is_empty()&&(this.__indent_count=o||0,this.__alignment_count=u||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},s.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},s.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},s.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var o=this.__parent.current_line;return o.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),o.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),o.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,o.__items[0]===" "&&(o.__items.splice(0,1),o.__character_count-=1),!0}return!1},s.prototype.is_empty=function(){return this.__items.length===0},s.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},s.prototype.push=function(o){this.__items.push(o);var u=o.lastIndexOf(`
34
- `);u!==-1?this.__character_count=o.length-u:this.__character_count+=o.length},s.prototype.pop=function(){var o=null;return this.is_empty()||(o=this.__items.pop(),this.__character_count-=o.length),o},s.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},s.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},s.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},s.prototype.toString=function(){var o="";return this.is_empty()?this.__parent.indent_empty_lines&&(o=this.__parent.get_indent_string(this.__indent_count)):(o=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),o+=this.__items.join("")),o};function a(o,u){this.__cache=[""],this.__indent_size=o.indent_size,this.__indent_string=o.indent_char,o.indent_with_tabs||(this.__indent_string=new Array(o.indent_size+1).join(o.indent_char)),u=u||"",o.indent_level>0&&(u=new Array(o.indent_level+1).join(this.__indent_string)),this.__base_string=u,this.__base_string_length=u.length}a.prototype.get_indent_size=function(o,u){var c=this.__base_string_length;return u=u||0,o<0&&(c=0),c+=o*this.__indent_size,c+=u,c},a.prototype.get_indent_string=function(o,u){var c=this.__base_string;return u=u||0,o<0&&(o=0,c=""),u+=o*this.__indent_size,this.__ensure_cache(u),c+=this.__cache[u],c},a.prototype.__ensure_cache=function(o){for(;o>=this.__cache.length;)this.__add_column()},a.prototype.__add_column=function(){var o=this.__cache.length,u=0,c="";this.__indent_size&&o>=this.__indent_size&&(u=Math.floor(o/this.__indent_size),o-=u*this.__indent_size,c=new Array(u+1).join(this.__indent_string)),o&&(c+=new Array(o+1).join(" ")),this.__cache.push(c)};function l(o,u){this.__indent_cache=new a(o,u),this.raw=!1,this._end_with_newline=o.end_with_newline,this.indent_size=o.indent_size,this.wrap_line_length=o.wrap_line_length,this.indent_empty_lines=o.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new s(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}l.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},l.prototype.get_line_number=function(){return this.__lines.length},l.prototype.get_indent_string=function(o,u){return this.__indent_cache.get_indent_string(o,u)},l.prototype.get_indent_size=function(o,u){return this.__indent_cache.get_indent_size(o,u)},l.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},l.prototype.add_new_line=function(o){return this.is_empty()||!o&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},l.prototype.get_code=function(o){this.trim(!0);var u=this.current_line.pop();u&&(u[u.length-1]===`
35
- `&&(u=u.replace(/\n+$/g,"")),this.current_line.push(u)),this._end_with_newline&&this.__add_outputline();var c=this.__lines.join(`
32
+ `)),i.value!=="")return i}class wc{constructor(e,n){this.dataManager=e,this.readDirectory=n,this.atributeCompletions=[]}onHtmlAttributeValue(e){this.dataManager.isPathAttribute(e.tag,e.attribute)&&this.atributeCompletions.push(e)}async computeCompletions(e,n){const i={items:[],isIncomplete:!1};for(const r of this.atributeCompletions){const s=vc(e.getText(r.range));if(yc(s))if(s==="."||s==="..")i.isIncomplete=!0;else{const a=Tc(r.value,s,r.range),l=await this.providePathSuggestions(r.value,a,e,n);for(const o of l)i.items.push(o)}}return i}async providePathSuggestions(e,n,i,r){const s=e.substring(0,e.lastIndexOf("/")+1);let a=r.resolveReference(s||".",i.uri);if(a)try{const l=[],o=await this.readDirectory(a);for(const[u,h]of o)u.charCodeAt(0)!==_c&&l.push(xc(u,h===Ri.Directory,n));return l}catch{}return[]}}const _c=46;function vc(t){return Ge(t,"'")||Ge(t,'"')?t.slice(1,-1):t}function yc(t){return!(Ge(t,"http")||Ge(t,"https")||Ge(t,"//"))}function Tc(t,e,n){let i;const r=t.lastIndexOf("/");if(r===-1)i=kc(n,1,-1);else{const s=e.slice(r+1),a=Ft(n.end,-1-s.length),l=s.indexOf(" ");let o;l!==-1?o=Ft(a,l):o=Ft(n.end,-1),i=Q.create(a,o)}return i}function xc(t,e,n){return e?(t=t+"/",{label:t,kind:ge.Folder,textEdit:oe.replace(n,t),command:{title:"Suggest",command:"editor.action.triggerSuggest"}}):{label:t,kind:ge.File,textEdit:oe.replace(n,t)}}function Ft(t,e){return se.create(t.line,t.character+e)}function kc(t,e,n){const i=Ft(t.start,e),r=Ft(t.end,n);return Q.create(i,r)}class Sc{constructor(e,n){this.lsOptions=e,this.dataManager=n,this.completionParticipants=[]}setCompletionParticipants(e){this.completionParticipants=e||[]}async doComplete2(e,n,i,r,s){if(!this.lsOptions.fileSystemProvider||!this.lsOptions.fileSystemProvider.readDirectory)return this.doComplete(e,n,i,s);const a=new wc(this.dataManager,this.lsOptions.fileSystemProvider.readDirectory),l=this.completionParticipants;this.completionParticipants=[a].concat(l);const o=this.doComplete(e,n,i,s);try{const u=await a.computeCompletions(e,r);return{isIncomplete:o.isIncomplete||u.isIncomplete,items:u.items.concat(o.items)}}finally{this.completionParticipants=l}}doComplete(e,n,i,r){const s=this._doComplete(e,n,i,r);return this.convertCompletionList(s)}_doComplete(e,n,i,r){const s={isIncomplete:!1,items:[]},a=this.completionParticipants,l=this.dataManager.getDataProviders().filter(k=>k.isApplicable(e.languageId)&&(!r||r[k.getId()]!==!1)),o=this.dataManager.getVoidElements(l),u=this.doesSupportMarkdown(),h=e.getText(),d=e.offsetAt(n),m=i.findNodeBefore(d);if(!m)return s;const f=_e(h,m.start);let w="",p;function T(k,E=d){return k>d&&(k=d),{start:e.positionAt(k),end:e.positionAt(E)}}function y(k,E){const M=T(k,E);return l.forEach(U=>{U.provideTags().forEach(F=>{s.items.push({label:F.name,kind:ge.Property,documentation:Ze(F,void 0,u),textEdit:oe.replace(M,F.name),insertTextFormat:Ce.PlainText})})}),s}function v(k){let E=k;for(;E>0;){const M=h.charAt(E-1);if(`
33
+ \r`.indexOf(M)>=0)return h.substring(E,k);if(!_n(M))return null;E--}return h.substring(0,k)}function S(k,E,M=d){const U=T(k,M),F=Xa(h,M,V.WithinEndTag,z.EndTagClose)?"":">";let P=m;for(E&&(P=P.parent);P;){const B=P.tag;if(B&&(!P.closed||P.endTagStart&&P.endTagStart>d)){const X={label:"/"+B,kind:ge.Property,filterText:"/"+B,textEdit:oe.replace(U,"/"+B+F),insertTextFormat:Ce.PlainText},Y=v(P.start),le=v(k-1);if(Y!==null&&le!==null&&Y!==le){const be=Y+"</"+B+F;X.textEdit=oe.replace(T(k-1-le.length),be),X.filterText=le+"</"+B}return s.items.push(X),s}P=P.parent}return E||l.forEach(B=>{B.provideTags().forEach(X=>{s.items.push({label:"/"+X.name,kind:ge.Property,documentation:Ze(X,void 0,u),filterText:"/"+X.name+F,textEdit:oe.replace(U,"/"+X.name+F),insertTextFormat:Ce.PlainText})})}),s}const I=(k,E)=>{if(r&&r.hideAutoCompleteProposals)return s;if(!this.dataManager.isVoidElement(E,o)){const M=e.positionAt(k);s.items.push({label:"</"+E+">",kind:ge.Property,filterText:"</"+E+">",textEdit:oe.insert(M,"$0</"+E+">"),insertTextFormat:Ce.Snippet})}return s};function H(k,E){return y(k,E),S(k,!0,E),s}function W(){const k=Object.create(null);return m.attributeNames.forEach(E=>{k[E]=!0}),k}function b(k,E=d){let M=d;for(;M<E&&h[M]!=="<";)M++;const U=h.substring(k,E),F=T(k,M);let P="";if(!Xa(h,E,V.AfterAttributeName,z.DelimiterAssign)){const X=r?.attributeDefaultValue??"doublequotes";X==="empty"?P="=$1":X==="singlequotes"?P="='$1'":P='="$1"'}const B=W();return B[U]=!1,l.forEach(X=>{X.provideAttributes(w).forEach(Y=>{if(B[Y.name])return;B[Y.name]=!0;let le=Y.name,be;Y.valueSet!=="v"&&P.length&&(le=le+P,(Y.valueSet||Y.name==="style")&&(be={title:"Suggest",command:"editor.action.triggerSuggest"})),s.items.push({label:Y.name,kind:Y.valueSet==="handler"?ge.Function:ge.Value,documentation:Ze(Y,void 0,u),textEdit:oe.replace(F,le),insertTextFormat:Ce.Snippet,command:be})})}),g(F,B),s}function g(k,E){const M="data-",U={};U[M]=`${M}$1="$2"`;function F(P){P.attributeNames.forEach(B=>{Ge(B,M)&&!U[B]&&!E[B]&&(U[B]=B+'="$1"')}),P.children.forEach(B=>F(B))}i&&i.roots.forEach(P=>F(P)),Object.keys(U).forEach(P=>s.items.push({label:P,kind:ge.Value,textEdit:oe.replace(k,U[P]),insertTextFormat:Ce.Snippet}))}function _(k,E=d){let M,U,F;if(d>k&&d<=E&&Ac(h[k])){const P=k+1;let B=E;E>k&&h[E-1]===h[k]&&B--;const X=Lc(h,d,P),Y=Cc(h,d,B);M=T(X,Y),F=d>=P&&d<=B?h.substring(P,d):"",U=!1}else M=T(k,E),F=h.substring(k,d),U=!0;if(a.length>0){const P=w.toLowerCase(),B=p.toLowerCase(),X=T(k,E);for(const Y of a)Y.onHtmlAttributeValue&&Y.onHtmlAttributeValue({document:e,position:n,tag:P,attribute:B,value:F,range:X})}return l.forEach(P=>{P.provideValues(w,p).forEach(B=>{const X=U?'"'+B.name+'"':B.name;s.items.push({label:B.name,filterText:X,kind:ge.Unit,documentation:Ze(B,void 0,u),textEdit:oe.replace(M,X),insertTextFormat:Ce.PlainText})})}),x(),s}function N(k){return d===f.getTokenEnd()&&(L=f.scan(),L===k&&f.getTokenOffset()===d)?f.getTokenEnd():d}function A(){for(const k of a)k.onHtmlContent&&k.onHtmlContent({document:e,position:n});return x()}function x(){let k=d-1,E=n.character;for(;k>=0&&Wt(h,k);)k--,E--;if(k>=0&&h[k]==="&"){const M=Q.create(se.create(n.line,E-1),n);for(const U in Pt)if(cc(U,";")){const F="&"+U;s.items.push({label:F,kind:ge.Keyword,documentation:Le("Character entity representing '{0}'",Pt[U]),textEdit:oe.replace(M,F),insertTextFormat:Ce.PlainText})}}return s}function R(k,E){const M=T(k,E);s.items.push({label:"!DOCTYPE",kind:ge.Property,documentation:"A preamble for an HTML document.",textEdit:oe.replace(M,"!DOCTYPE html>"),insertTextFormat:Ce.PlainText})}let L=f.scan();for(;L!==z.EOS&&f.getTokenOffset()<=d;){switch(L){case z.StartTagOpen:if(f.getTokenEnd()===d){const k=N(z.StartTag);return n.line===0&&R(d,k),H(d,k)}break;case z.StartTag:if(f.getTokenOffset()<=d&&d<=f.getTokenEnd())return y(f.getTokenOffset(),f.getTokenEnd());w=f.getTokenText();break;case z.AttributeName:if(f.getTokenOffset()<=d&&d<=f.getTokenEnd())return b(f.getTokenOffset(),f.getTokenEnd());p=f.getTokenText();break;case z.DelimiterAssign:if(f.getTokenEnd()===d){const k=N(z.AttributeValue);return _(d,k)}break;case z.AttributeValue:if(f.getTokenOffset()<=d&&d<=f.getTokenEnd())return _(f.getTokenOffset(),f.getTokenEnd());break;case z.Whitespace:if(d<=f.getTokenEnd())switch(f.getScannerState()){case V.AfterOpeningStartTag:const k=f.getTokenOffset(),E=N(z.StartTag);return H(k,E);case V.WithinTag:case V.AfterAttributeName:return b(f.getTokenEnd());case V.BeforeAttributeValue:return _(f.getTokenEnd());case V.AfterOpeningEndTag:return S(f.getTokenOffset()-1,!1);case V.WithinContent:return A()}break;case z.EndTagOpen:if(d<=f.getTokenEnd()){const k=f.getTokenOffset()+1,E=N(z.EndTag);return S(k,!1,E)}break;case z.EndTag:if(d<=f.getTokenEnd()){let k=f.getTokenOffset()-1;for(;k>=0;){const E=h.charAt(k);if(E==="/")return S(k,!1,f.getTokenEnd());if(!_n(E))break;k--}}break;case z.StartTagClose:if(d<=f.getTokenEnd()&&w)return I(f.getTokenEnd(),w);break;case z.Content:if(d<=f.getTokenEnd())return A();break;default:if(d<=f.getTokenEnd())return s;break}L=f.scan()}return s}doQuoteComplete(e,n,i,r){const s=e.offsetAt(n);if(s<=0)return null;const a=r?.attributeDefaultValue??"doublequotes";if(a==="empty"||e.getText().charAt(s-1)!=="=")return null;const o=a==="doublequotes"?'"$1"':"'$1'",u=i.findNodeBefore(s);if(u&&u.attributes&&u.start<s&&(!u.endTagStart||u.endTagStart>s)){const h=_e(e.getText(),u.start);let d=h.scan();for(;d!==z.EOS&&h.getTokenEnd()<=s;){if(d===z.AttributeName&&h.getTokenEnd()===s-1)return d=h.scan(),d!==z.DelimiterAssign||(d=h.scan(),d===z.Unknown||d===z.AttributeValue)?null:o;d=h.scan()}}return null}doTagComplete(e,n,i){const r=e.offsetAt(n);if(r<=0)return null;const s=e.getText().charAt(r-1);if(s===">"){const a=this.dataManager.getVoidElements(e.languageId),l=i.findNodeBefore(r);if(l&&l.tag&&!this.dataManager.isVoidElement(l.tag,a)&&l.start<r&&(!l.endTagStart||l.endTagStart>r)){const o=_e(e.getText(),l.start);let u=o.scan();for(;u!==z.EOS&&o.getTokenEnd()<=r;){if(u===z.StartTagClose&&o.getTokenEnd()===r)return`$0</${l.tag}>`;u=o.scan()}}}else if(s==="/"){let a=i.findNodeBefore(r);for(;a&&a.closed&&!(a.endTagStart&&a.endTagStart>r);)a=a.parent;if(a&&a.tag){const l=_e(e.getText(),a.start);let o=l.scan();for(;o!==z.EOS&&l.getTokenEnd()<=r;){if(o===z.EndTagOpen&&l.getTokenEnd()===r)return e.getText().charAt(r)!==">"?`${a.tag}>`:a.tag;o=l.scan()}}}return null}convertCompletionList(e){return this.doesSupportMarkdown()||e.items.forEach(n=>{n.documentation&&typeof n.documentation!="string"&&(n.documentation={kind:"plaintext",value:n.documentation.value})}),e}doesSupportMarkdown(){if(!wn(this.supportsMarkdown)){if(!wn(this.lsOptions.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;const e=this.lsOptions.clientCapabilities.textDocument?.completion?.completionItem?.documentationFormat;this.supportsMarkdown=Array.isArray(e)&&e.indexOf(Be.Markdown)!==-1}return this.supportsMarkdown}}function Ac(t){return/^["']*$/.test(t)}function _n(t){return/^\s*$/.test(t)}function Xa(t,e,n,i){const r=_e(t,e,n);let s=r.scan();for(;s===z.Whitespace;)s=r.scan();return s===i}function Lc(t,e,n){for(;e>n&&!_n(t[e-1]);)e--;return e}function Cc(t,e,n){for(;e<n&&!_n(t[e]);)e++;return e}class Ec{constructor(e,n){this.lsOptions=e,this.dataManager=n}doHover(e,n,i,r){const s=this.convertContents.bind(this),a=this.doesSupportMarkdown(),l=e.offsetAt(n),o=i.findNodeAt(l),u=e.getText();if(!o||!o.tag)return null;const h=this.dataManager.getDataProviders().filter(b=>b.isApplicable(e.languageId));function d(b,g,_){for(const N of h){let A=null;if(N.provideTags().forEach(x=>{if(x.name.toLowerCase()===b.toLowerCase()){let R=Ze(x,r,a);R||(R={kind:a?"markdown":"plaintext",value:""}),A={contents:R,range:g}}}),A)return A.contents=s(A.contents),A}return null}function m(b,g,_){for(const N of h){let A=null;if(N.provideAttributes(b).forEach(x=>{if(g===x.name&&x.description){const R=Ze(x,r,a);R?A={contents:R,range:_}:A=null}}),A)return A.contents=s(A.contents),A}return null}function f(b,g,_,N){for(const A of h){let x=null;if(A.provideValues(b,g).forEach(R=>{if(_===R.name&&R.description){const L=Ze(R,r,a);L?x={contents:L,range:N}:x=null}}),x)return x.contents=s(x.contents),x}return null}function w(b,g){let _=y(b);for(const N in Pt){let A=null;const x="&"+N;if(_===x){let R=Pt[N].charCodeAt(0).toString(16).toUpperCase(),L="U+";if(R.length<4){const E=4-R.length;let M=0;for(;M<E;)L+="0",M+=1}L+=R;const k=Le("Character entity representing '{0}', unicode equivalent '{1}'",Pt[N],L);k?A={contents:k,range:g}:A=null}if(A)return A.contents=s(A.contents),A}return null}function p(b,g){const _=_e(e.getText(),g);let N=_.scan();for(;N!==z.EOS&&(_.getTokenEnd()<l||_.getTokenEnd()===l&&N!==b);)N=_.scan();return N===b&&l<=_.getTokenEnd()?{start:e.positionAt(_.getTokenOffset()),end:e.positionAt(_.getTokenEnd())}:null}function T(){let b=l-1,g=n.character;for(;b>=0&&Wt(u,b);)b--,g--;let _=b+1,N=g;for(;Wt(u,_);)_++,N++;if(b>=0&&u[b]==="&"){let A=null;return u[_]===";"?A=Q.create(se.create(n.line,g),se.create(n.line,N+1)):A=Q.create(se.create(n.line,g),se.create(n.line,N)),A}return null}function y(b){let g=l-1,_="&";for(;g>=0&&Wt(b,g);)g--;for(g=g+1;Wt(b,g);)_+=b[g],g+=1;return _+=";",_}if(o.endTagStart&&l>=o.endTagStart){const b=p(z.EndTag,o.endTagStart);return b?d(o.tag,b):null}const v=p(z.StartTag,o.start);if(v)return d(o.tag,v);const S=p(z.AttributeName,o.start);if(S){const b=o.tag,g=e.getText(S);return m(b,g,S)}const I=T();if(I)return w(u,I);function H(b,g){const _=_e(e.getText(),b);let N=_.scan(),A;for(;N!==z.EOS&&_.getTokenEnd()<=g;)N=_.scan(),N===z.AttributeName&&(A=_.getTokenText());return A}const W=p(z.AttributeValue,o.start);if(W){const b=o.tag,g=Rc(e.getText(W)),_=H(o.start,e.offsetAt(W.start));if(_)return f(b,_,g,W)}return null}convertContents(e){if(!this.doesSupportMarkdown()){if(typeof e=="string")return e;if("kind"in e)return{kind:"plaintext",value:e.value};if(Array.isArray(e))e.map(n=>typeof n=="string"?n:n.value);else return e.value}return e}doesSupportMarkdown(){if(!wn(this.supportsMarkdown)){if(!wn(this.lsOptions.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;const e=this.lsOptions.clientCapabilities?.textDocument?.hover?.contentFormat;this.supportsMarkdown=Array.isArray(e)&&e.indexOf(Be.Markdown)!==-1}return this.supportsMarkdown}}function Rc(t){return t.length<=1?t.replace(/['"]/,""):((t[0]==="'"||t[0]==='"')&&(t=t.slice(1)),(t[t.length-1]==="'"||t[t.length-1]==='"')&&(t=t.slice(0,-1)),t)}function Dc(t,e){return t}var Ja;(function(){var t=[,,(function(r){function s(o){this.__parent=o,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}s.prototype.clone_empty=function(){var o=new s(this.__parent);return o.set_indent(this.__indent_count,this.__alignment_count),o},s.prototype.item=function(o){return o<0?this.__items[this.__items.length+o]:this.__items[o]},s.prototype.has_match=function(o){for(var u=this.__items.length-1;u>=0;u--)if(this.__items[u].match(o))return!0;return!1},s.prototype.set_indent=function(o,u){this.is_empty()&&(this.__indent_count=o||0,this.__alignment_count=u||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},s.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},s.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},s.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var o=this.__parent.current_line;return o.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),o.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),o.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,o.__items[0]===" "&&(o.__items.splice(0,1),o.__character_count-=1),!0}return!1},s.prototype.is_empty=function(){return this.__items.length===0},s.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},s.prototype.push=function(o){this.__items.push(o);var u=o.lastIndexOf(`
34
+ `);u!==-1?this.__character_count=o.length-u:this.__character_count+=o.length},s.prototype.pop=function(){var o=null;return this.is_empty()||(o=this.__items.pop(),this.__character_count-=o.length),o},s.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},s.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},s.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},s.prototype.toString=function(){var o="";return this.is_empty()?this.__parent.indent_empty_lines&&(o=this.__parent.get_indent_string(this.__indent_count)):(o=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),o+=this.__items.join("")),o};function a(o,u){this.__cache=[""],this.__indent_size=o.indent_size,this.__indent_string=o.indent_char,o.indent_with_tabs||(this.__indent_string=new Array(o.indent_size+1).join(o.indent_char)),u=u||"",o.indent_level>0&&(u=new Array(o.indent_level+1).join(this.__indent_string)),this.__base_string=u,this.__base_string_length=u.length}a.prototype.get_indent_size=function(o,u){var h=this.__base_string_length;return u=u||0,o<0&&(h=0),h+=o*this.__indent_size,h+=u,h},a.prototype.get_indent_string=function(o,u){var h=this.__base_string;return u=u||0,o<0&&(o=0,h=""),u+=o*this.__indent_size,this.__ensure_cache(u),h+=this.__cache[u],h},a.prototype.__ensure_cache=function(o){for(;o>=this.__cache.length;)this.__add_column()},a.prototype.__add_column=function(){var o=this.__cache.length,u=0,h="";this.__indent_size&&o>=this.__indent_size&&(u=Math.floor(o/this.__indent_size),o-=u*this.__indent_size,h=new Array(u+1).join(this.__indent_string)),o&&(h+=new Array(o+1).join(" ")),this.__cache.push(h)};function l(o,u){this.__indent_cache=new a(o,u),this.raw=!1,this._end_with_newline=o.end_with_newline,this.indent_size=o.indent_size,this.wrap_line_length=o.wrap_line_length,this.indent_empty_lines=o.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new s(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}l.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},l.prototype.get_line_number=function(){return this.__lines.length},l.prototype.get_indent_string=function(o,u){return this.__indent_cache.get_indent_string(o,u)},l.prototype.get_indent_size=function(o,u){return this.__indent_cache.get_indent_size(o,u)},l.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},l.prototype.add_new_line=function(o){return this.is_empty()||!o&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},l.prototype.get_code=function(o){this.trim(!0);var u=this.current_line.pop();u&&(u[u.length-1]===`
35
+ `&&(u=u.replace(/\n+$/g,"")),this.current_line.push(u)),this._end_with_newline&&this.__add_outputline();var h=this.__lines.join(`
36
36
  `);return o!==`
37
- `&&(c=c.replace(/[\n]/g,o)),c},l.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},l.prototype.set_indent=function(o,u){return o=o||0,u=u||0,this.next_line.set_indent(o,u),this.__lines.length>1?(this.current_line.set_indent(o,u),!0):(this.current_line.set_indent(),!1)},l.prototype.add_raw_token=function(o){for(var u=0;u<o.newlines;u++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(o.whitespace_before),this.current_line.push(o.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},l.prototype.add_token=function(o){this.__add_space_before_token(),this.current_line.push(o),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},l.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},l.prototype.remove_indent=function(o){for(var u=this.__lines.length;o<u;)this.__lines[o]._remove_indent(),o++;this.current_line._remove_wrap_indent()},l.prototype.trim=function(o){for(o=o===void 0?!1:o,this.current_line.trim();o&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},l.prototype.just_added_newline=function(){return this.current_line.is_empty()},l.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},l.prototype.ensure_empty_line_above=function(o,u){for(var c=this.__lines.length-2;c>=0;){var d=this.__lines[c];if(d.is_empty())break;if(d.item(0).indexOf(o)!==0&&d.item(-1)!==u){this.__lines.splice(c+1,0,new s(this)),this.previous_line=this.__lines[this.__lines.length-2];break}c--}},r.exports.Output=l}),,,,(function(r){function s(o,u){this.raw_options=a(o,u),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}s.prototype._get_array=function(o,u){var c=this.raw_options[o],d=u||[];return typeof c=="object"?c!==null&&typeof c.concat=="function"&&(d=c.concat()):typeof c=="string"&&(d=c.split(/[^a-zA-Z0-9_\/\-]+/)),d},s.prototype._get_boolean=function(o,u){var c=this.raw_options[o],d=c===void 0?!!u:!!c;return d},s.prototype._get_characters=function(o,u){var c=this.raw_options[o],d=u||"";return typeof c=="string"&&(d=c.replace(/\\r/,"\r").replace(/\\n/,`
38
- `).replace(/\\t/," ")),d},s.prototype._get_number=function(o,u){var c=this.raw_options[o];u=parseInt(u,10),isNaN(u)&&(u=0);var d=parseInt(c,10);return isNaN(d)&&(d=u),d},s.prototype._get_selection=function(o,u,c){var d=this._get_selection_list(o,u,c);if(d.length!==1)throw new Error("Invalid Option Value: The option '"+o+`' can only be one of the following values:
37
+ `&&(h=h.replace(/[\n]/g,o)),h},l.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},l.prototype.set_indent=function(o,u){return o=o||0,u=u||0,this.next_line.set_indent(o,u),this.__lines.length>1?(this.current_line.set_indent(o,u),!0):(this.current_line.set_indent(),!1)},l.prototype.add_raw_token=function(o){for(var u=0;u<o.newlines;u++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(o.whitespace_before),this.current_line.push(o.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},l.prototype.add_token=function(o){this.__add_space_before_token(),this.current_line.push(o),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},l.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},l.prototype.remove_indent=function(o){for(var u=this.__lines.length;o<u;)this.__lines[o]._remove_indent(),o++;this.current_line._remove_wrap_indent()},l.prototype.trim=function(o){for(o=o===void 0?!1:o,this.current_line.trim();o&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},l.prototype.just_added_newline=function(){return this.current_line.is_empty()},l.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},l.prototype.ensure_empty_line_above=function(o,u){for(var h=this.__lines.length-2;h>=0;){var d=this.__lines[h];if(d.is_empty())break;if(d.item(0).indexOf(o)!==0&&d.item(-1)!==u){this.__lines.splice(h+1,0,new s(this)),this.previous_line=this.__lines[this.__lines.length-2];break}h--}},r.exports.Output=l}),,,,(function(r){function s(o,u){this.raw_options=a(o,u),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}s.prototype._get_array=function(o,u){var h=this.raw_options[o],d=u||[];return typeof h=="object"?h!==null&&typeof h.concat=="function"&&(d=h.concat()):typeof h=="string"&&(d=h.split(/[^a-zA-Z0-9_\/\-]+/)),d},s.prototype._get_boolean=function(o,u){var h=this.raw_options[o],d=h===void 0?!!u:!!h;return d},s.prototype._get_characters=function(o,u){var h=this.raw_options[o],d=u||"";return typeof h=="string"&&(d=h.replace(/\\r/,"\r").replace(/\\n/,`
38
+ `).replace(/\\t/," ")),d},s.prototype._get_number=function(o,u){var h=this.raw_options[o];u=parseInt(u,10),isNaN(u)&&(u=0);var d=parseInt(h,10);return isNaN(d)&&(d=u),d},s.prototype._get_selection=function(o,u,h){var d=this._get_selection_list(o,u,h);if(d.length!==1)throw new Error("Invalid Option Value: The option '"+o+`' can only be one of the following values:
39
39
  `+u+`
40
- You passed in: '`+this.raw_options[o]+"'");return d[0]},s.prototype._get_selection_list=function(o,u,c){if(!u||u.length===0)throw new Error("Selection list cannot be empty.");if(c=c||[u[0]],!this._is_valid_selection(c,u))throw new Error("Invalid Default Value!");var d=this._get_array(o,c);if(!this._is_valid_selection(d,u))throw new Error("Invalid Option Value: The option '"+o+`' can contain only the following values:
40
+ You passed in: '`+this.raw_options[o]+"'");return d[0]},s.prototype._get_selection_list=function(o,u,h){if(!u||u.length===0)throw new Error("Selection list cannot be empty.");if(h=h||[u[0]],!this._is_valid_selection(h,u))throw new Error("Invalid Default Value!");var d=this._get_array(o,h);if(!this._is_valid_selection(d,u))throw new Error("Invalid Option Value: The option '"+o+`' can contain only the following values:
41
41
  `+u+`
42
- You passed in: '`+this.raw_options[o]+"'");return d},s.prototype._is_valid_selection=function(o,u){return o.length&&u.length&&!o.some(function(c){return u.indexOf(c)===-1})};function a(o,u){var c={};o=l(o);var d;for(d in o)d!==u&&(c[d]=o[d]);if(u&&o[u])for(d in o[u])c[d]=o[u][d];return c}function l(o){var u={},c;for(c in o){var d=c.replace(/-/g,"_");u[d]=o[c]}return u}r.exports.Options=s,r.exports.normalizeOpts=l,r.exports.mergeOpts=a}),,(function(r){var s=RegExp.prototype.hasOwnProperty("sticky");function a(l){this.__input=l||"",this.__input_length=this.__input.length,this.__position=0}a.prototype.restart=function(){this.__position=0},a.prototype.back=function(){this.__position>0&&(this.__position-=1)},a.prototype.hasNext=function(){return this.__position<this.__input_length},a.prototype.next=function(){var l=null;return this.hasNext()&&(l=this.__input.charAt(this.__position),this.__position+=1),l},a.prototype.peek=function(l){var o=null;return l=l||0,l+=this.__position,l>=0&&l<this.__input_length&&(o=this.__input.charAt(l)),o},a.prototype.__match=function(l,o){l.lastIndex=o;var u=l.exec(this.__input);return u&&!(s&&l.sticky)&&u.index!==o&&(u=null),u},a.prototype.test=function(l,o){return o=o||0,o+=this.__position,o>=0&&o<this.__input_length?!!this.__match(l,o):!1},a.prototype.testChar=function(l,o){var u=this.peek(o);return l.lastIndex=0,u!==null&&l.test(u)},a.prototype.match=function(l){var o=this.__match(l,this.__position);return o?this.__position+=o[0].length:o=null,o},a.prototype.read=function(l,o,u){var c="",d;return l&&(d=this.match(l),d&&(c+=d[0])),o&&(d||!l)&&(c+=this.readUntil(o,u)),c},a.prototype.readUntil=function(l,o){var u="",c=this.__position;l.lastIndex=this.__position;var d=l.exec(this.__input);return d?(c=d.index,o&&(c+=d[0].length)):c=this.__input_length,u=this.__input.substring(this.__position,c),this.__position=c,u},a.prototype.readUntilAfter=function(l){return this.readUntil(l,!0)},a.prototype.get_regexp=function(l,o){var u=null,c="g";return o&&s&&(c="y"),typeof l=="string"&&l!==""?u=new RegExp(l,c):l&&(u=new RegExp(l.source,c)),u},a.prototype.get_literal_regexp=function(l){return RegExp(l.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},a.prototype.peekUntilAfter=function(l){var o=this.__position,u=this.readUntilAfter(l);return this.__position=o,u},a.prototype.lookBack=function(l){var o=this.__position-1;return o>=l.length&&this.__input.substring(o-l.length,o).toLowerCase()===l},r.exports.InputScanner=a}),,,,,(function(r){function s(a,l){a=typeof a=="string"?a:a.source,l=typeof l=="string"?l:l.source,this.__directives_block_pattern=new RegExp(a+/ beautify( \w+[:]\w+)+ /.source+l,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(a+/\sbeautify\signore:end\s/.source+l,"g")}s.prototype.get_directives=function(a){if(!a.match(this.__directives_block_pattern))return null;var l={};this.__directive_pattern.lastIndex=0;for(var o=this.__directive_pattern.exec(a);o;)l[o[1]]=o[2],o=this.__directive_pattern.exec(a);return l},s.prototype.readIgnored=function(a){return a.readUntilAfter(this.__directives_end_ignore_pattern)},r.exports.Directives=s}),,(function(r,s,a){var l=a(16).Beautifier,o=a(17).Options;function u(c,d){var m=new l(c,d);return m.beautify()}r.exports=u,r.exports.defaultOptions=function(){return new o}}),(function(r,s,a){var l=a(17).Options,o=a(2).Output,u=a(8).InputScanner,c=a(13).Directives,d=new c(/\/\*/,/\*\//),m=/\r\n|[\r\n]/,f=/\r\n|[\r\n]/g,w=/\s/,p=/(?:\s|\n)+/g,T=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,y=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function v(S,I){this._source_text=S||"",this._options=new l(I),this._ch=null,this._input=null,this.NESTED_AT_RULE={page:!0,"font-face":!0,keyframes:!0,media:!0,supports:!0,document:!0},this.CONDITIONAL_GROUP_RULE={media:!0,supports:!0,document:!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}v.prototype.eatString=function(S){var I="";for(this._ch=this._input.next();this._ch;){if(I+=this._ch,this._ch==="\\")I+=this._input.next();else if(S.indexOf(this._ch)!==-1||this._ch===`
42
+ You passed in: '`+this.raw_options[o]+"'");return d},s.prototype._is_valid_selection=function(o,u){return o.length&&u.length&&!o.some(function(h){return u.indexOf(h)===-1})};function a(o,u){var h={};o=l(o);var d;for(d in o)d!==u&&(h[d]=o[d]);if(u&&o[u])for(d in o[u])h[d]=o[u][d];return h}function l(o){var u={},h;for(h in o){var d=h.replace(/-/g,"_");u[d]=o[h]}return u}r.exports.Options=s,r.exports.normalizeOpts=l,r.exports.mergeOpts=a}),,(function(r){var s=RegExp.prototype.hasOwnProperty("sticky");function a(l){this.__input=l||"",this.__input_length=this.__input.length,this.__position=0}a.prototype.restart=function(){this.__position=0},a.prototype.back=function(){this.__position>0&&(this.__position-=1)},a.prototype.hasNext=function(){return this.__position<this.__input_length},a.prototype.next=function(){var l=null;return this.hasNext()&&(l=this.__input.charAt(this.__position),this.__position+=1),l},a.prototype.peek=function(l){var o=null;return l=l||0,l+=this.__position,l>=0&&l<this.__input_length&&(o=this.__input.charAt(l)),o},a.prototype.__match=function(l,o){l.lastIndex=o;var u=l.exec(this.__input);return u&&!(s&&l.sticky)&&u.index!==o&&(u=null),u},a.prototype.test=function(l,o){return o=o||0,o+=this.__position,o>=0&&o<this.__input_length?!!this.__match(l,o):!1},a.prototype.testChar=function(l,o){var u=this.peek(o);return l.lastIndex=0,u!==null&&l.test(u)},a.prototype.match=function(l){var o=this.__match(l,this.__position);return o?this.__position+=o[0].length:o=null,o},a.prototype.read=function(l,o,u){var h="",d;return l&&(d=this.match(l),d&&(h+=d[0])),o&&(d||!l)&&(h+=this.readUntil(o,u)),h},a.prototype.readUntil=function(l,o){var u="",h=this.__position;l.lastIndex=this.__position;var d=l.exec(this.__input);return d?(h=d.index,o&&(h+=d[0].length)):h=this.__input_length,u=this.__input.substring(this.__position,h),this.__position=h,u},a.prototype.readUntilAfter=function(l){return this.readUntil(l,!0)},a.prototype.get_regexp=function(l,o){var u=null,h="g";return o&&s&&(h="y"),typeof l=="string"&&l!==""?u=new RegExp(l,h):l&&(u=new RegExp(l.source,h)),u},a.prototype.get_literal_regexp=function(l){return RegExp(l.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},a.prototype.peekUntilAfter=function(l){var o=this.__position,u=this.readUntilAfter(l);return this.__position=o,u},a.prototype.lookBack=function(l){var o=this.__position-1;return o>=l.length&&this.__input.substring(o-l.length,o).toLowerCase()===l},r.exports.InputScanner=a}),,,,,(function(r){function s(a,l){a=typeof a=="string"?a:a.source,l=typeof l=="string"?l:l.source,this.__directives_block_pattern=new RegExp(a+/ beautify( \w+[:]\w+)+ /.source+l,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(a+/\sbeautify\signore:end\s/.source+l,"g")}s.prototype.get_directives=function(a){if(!a.match(this.__directives_block_pattern))return null;var l={};this.__directive_pattern.lastIndex=0;for(var o=this.__directive_pattern.exec(a);o;)l[o[1]]=o[2],o=this.__directive_pattern.exec(a);return l},s.prototype.readIgnored=function(a){return a.readUntilAfter(this.__directives_end_ignore_pattern)},r.exports.Directives=s}),,(function(r,s,a){var l=a(16).Beautifier,o=a(17).Options;function u(h,d){var m=new l(h,d);return m.beautify()}r.exports=u,r.exports.defaultOptions=function(){return new o}}),(function(r,s,a){var l=a(17).Options,o=a(2).Output,u=a(8).InputScanner,h=a(13).Directives,d=new h(/\/\*/,/\*\//),m=/\r\n|[\r\n]/,f=/\r\n|[\r\n]/g,w=/\s/,p=/(?:\s|\n)+/g,T=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,y=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function v(S,I){this._source_text=S||"",this._options=new l(I),this._ch=null,this._input=null,this.NESTED_AT_RULE={page:!0,"font-face":!0,keyframes:!0,media:!0,supports:!0,document:!0},this.CONDITIONAL_GROUP_RULE={media:!0,supports:!0,document:!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}v.prototype.eatString=function(S){var I="";for(this._ch=this._input.next();this._ch;){if(I+=this._ch,this._ch==="\\")I+=this._input.next();else if(S.indexOf(this._ch)!==-1||this._ch===`
43
43
  `)break;this._ch=this._input.next()}return I},v.prototype.eatWhitespace=function(S){for(var I=w.test(this._input.peek()),H=0;w.test(this._input.peek());)this._ch=this._input.next(),S&&this._ch===`
44
44
  `&&(H===0||H<this._options.max_preserve_newlines)&&(H++,this._output.add_new_line(!0));return I},v.prototype.foundNestedPseudoClass=function(){for(var S=0,I=1,H=this._input.peek(I);H;){if(H==="{")return!0;if(H==="(")S+=1;else if(H===")"){if(S===0)return!1;S-=1}else if(H===";"||H==="}")return!1;I++,H=this._input.peek(I)}return!1},v.prototype.print_string=function(S){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(S)},v.prototype.preserveSingleSpace=function(S){S&&(this._output.space_before_token=!0)},v.prototype.indent=function(){this._indentLevel++},v.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},v.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var S=this._source_text,I=this._options.eol;I==="auto"&&(I=`
45
45
  `,S&&m.test(S||"")&&(I=S.match(m)[0])),S=S.replace(f,`
46
46
  `);var H=S.match(/^[\t ]*/)[0];this._output=new o(this._options,H),this._input=new u(S),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var W=0,b=!1,g=!1,_=!1,N=!1,A=!1,x=this._ch,R=!1,L,k,E;L=this._input.read(p),k=L!=="",E=x,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),x=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var M=this._input.read(T),U=d.get_directives(M);U&&U.ignore==="start"&&(M+=d.readIgnored(this._input)),this.print_string(M),this.eatWhitespace(!0),this._output.add_new_line()}else if(this._ch==="/"&&this._input.peek()==="/")this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(y)),this.eatWhitespace(!0);else if(this._ch==="$"){this.preserveSingleSpace(k),this.print_string(this._ch);var F=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);F.match(/[ :]$/)&&(F=this.eatString(": ").replace(/\s+$/,""),this.print_string(F),this._output.space_before_token=!0),W===0&&F.indexOf(":")!==-1&&(g=!0,this.indent())}else if(this._ch==="@")if(this.preserveSingleSpace(k),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var P=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);P.match(/[ :]$/)&&(P=this.eatString(": ").replace(/\s+$/,""),this.print_string(P),this._output.space_before_token=!0),W===0&&P.indexOf(":")!==-1?(g=!0,this.indent()):P in this.NESTED_AT_RULE?(this._nestedLevel+=1,P in this.CONDITIONAL_GROUP_RULE&&(_=!0)):W===0&&!g&&(N=!0)}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(k),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")g&&(g=!1,this.outdent()),N=!1,_?(_=!1,b=this._indentLevel>=this._nestedLevel):b=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&b&&this._output.previous_line&&this._output.previous_line.item(-1)!=="{"&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,this._options.brace_style==="expand"?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(E==="("?this._output.space_before_token=!1:E!==","&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if(this._ch==="}")this.outdent(),this._output.add_new_line(),E==="{"&&this._output.trim(!0),g&&(this.outdent(),g=!1),this.print_string(this._ch),b=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&this._input.peek()!=="}"&&this._output.add_new_line(!0),this._input.peek()===")"&&(this._output.trim(!0),this._options.brace_style==="expand"&&this._output.add_new_line(!0));else if(this._ch===":"){for(var B=0;B<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;B++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[B])){R=!0;break}(b||_)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!N&&W===0?(this.print_string(":"),g||(g=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent())):(this._input.lookBack(" ")&&(this._output.space_before_token=!0),this._input.peek()===":"?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":"))}else if(this._ch==='"'||this._ch==="'"){var X=E==='"'||E==="'";this.preserveSingleSpace(X||k),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")R=!1,W===0?(g&&(this.outdent(),g=!1),N=!1,this.print_string(this._ch),this.eatWhitespace(!0),this._input.peek()!=="/"&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0);else if(this._ch==="(")if(this._input.lookBack("url"))this.print_string(this._ch),this.eatWhitespace(),W++,this.indent(),this._ch=this._input.next(),this._ch===")"||this._ch==='"'||this._ch==="'"?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),W&&(W--,this.outdent()));else{var Y=!1;this._input.lookBack("with")&&(Y=!0),this.preserveSingleSpace(k||Y),this.print_string(this._ch),g&&E==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),A=!0):(this.eatWhitespace(),W++,this.indent())}else if(this._ch===")")W&&(W--,this.outdent()),A&&this._input.peek()===";"&&this._options.selector_separator_newline&&(A=!1,this.outdent(),this._output.add_new_line()),this.print_string(this._ch);else if(this._ch===",")this.print_string(this._ch),this.eatWhitespace(!0),this._options.selector_separator_newline&&(!g||A)&&W===0&&!N?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!g&&W===0)this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&w.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(k),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),w.test(this._ch)&&(this._ch="");else if(this._ch==="!"&&!this._input.lookBack("\\"))this._output.space_before_token=!0,this.print_string(this._ch);else{var le=E==='"'||E==="'";this.preserveSingleSpace(le||k),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
47
- `&&R&&this._output.add_new_line()}var be=this._output.get_code(I);return be},r.exports.Beautifier=v}),(function(r,s,a){var l=a(6).Options;function o(u){l.call(this,u,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var c=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||c;var d=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var m=0;m<d.length;m++)d[m]!=="expand"?this.brace_style="collapse":this.brace_style=d[m]}o.prototype=new l,r.exports.Options=o})],e={};function n(r){var s=e[r];if(s!==void 0)return s.exports;var a=e[r]={exports:{}};return t[r](a,a.exports,n),a.exports}var i=n(15);Ja=i})();var Mc=Ja,Qa;(function(){var t=[,,(function(r){function s(o){this.__parent=o,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}s.prototype.clone_empty=function(){var o=new s(this.__parent);return o.set_indent(this.__indent_count,this.__alignment_count),o},s.prototype.item=function(o){return o<0?this.__items[this.__items.length+o]:this.__items[o]},s.prototype.has_match=function(o){for(var u=this.__items.length-1;u>=0;u--)if(this.__items[u].match(o))return!0;return!1},s.prototype.set_indent=function(o,u){this.is_empty()&&(this.__indent_count=o||0,this.__alignment_count=u||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},s.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},s.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},s.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var o=this.__parent.current_line;return o.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),o.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),o.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,o.__items[0]===" "&&(o.__items.splice(0,1),o.__character_count-=1),!0}return!1},s.prototype.is_empty=function(){return this.__items.length===0},s.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},s.prototype.push=function(o){this.__items.push(o);var u=o.lastIndexOf(`
48
- `);u!==-1?this.__character_count=o.length-u:this.__character_count+=o.length},s.prototype.pop=function(){var o=null;return this.is_empty()||(o=this.__items.pop(),this.__character_count-=o.length),o},s.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},s.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},s.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},s.prototype.toString=function(){var o="";return this.is_empty()?this.__parent.indent_empty_lines&&(o=this.__parent.get_indent_string(this.__indent_count)):(o=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),o+=this.__items.join("")),o};function a(o,u){this.__cache=[""],this.__indent_size=o.indent_size,this.__indent_string=o.indent_char,o.indent_with_tabs||(this.__indent_string=new Array(o.indent_size+1).join(o.indent_char)),u=u||"",o.indent_level>0&&(u=new Array(o.indent_level+1).join(this.__indent_string)),this.__base_string=u,this.__base_string_length=u.length}a.prototype.get_indent_size=function(o,u){var c=this.__base_string_length;return u=u||0,o<0&&(c=0),c+=o*this.__indent_size,c+=u,c},a.prototype.get_indent_string=function(o,u){var c=this.__base_string;return u=u||0,o<0&&(o=0,c=""),u+=o*this.__indent_size,this.__ensure_cache(u),c+=this.__cache[u],c},a.prototype.__ensure_cache=function(o){for(;o>=this.__cache.length;)this.__add_column()},a.prototype.__add_column=function(){var o=this.__cache.length,u=0,c="";this.__indent_size&&o>=this.__indent_size&&(u=Math.floor(o/this.__indent_size),o-=u*this.__indent_size,c=new Array(u+1).join(this.__indent_string)),o&&(c+=new Array(o+1).join(" ")),this.__cache.push(c)};function l(o,u){this.__indent_cache=new a(o,u),this.raw=!1,this._end_with_newline=o.end_with_newline,this.indent_size=o.indent_size,this.wrap_line_length=o.wrap_line_length,this.indent_empty_lines=o.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new s(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}l.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},l.prototype.get_line_number=function(){return this.__lines.length},l.prototype.get_indent_string=function(o,u){return this.__indent_cache.get_indent_string(o,u)},l.prototype.get_indent_size=function(o,u){return this.__indent_cache.get_indent_size(o,u)},l.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},l.prototype.add_new_line=function(o){return this.is_empty()||!o&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},l.prototype.get_code=function(o){this.trim(!0);var u=this.current_line.pop();u&&(u[u.length-1]===`
49
- `&&(u=u.replace(/\n+$/g,"")),this.current_line.push(u)),this._end_with_newline&&this.__add_outputline();var c=this.__lines.join(`
47
+ `&&R&&this._output.add_new_line()}var be=this._output.get_code(I);return be},r.exports.Beautifier=v}),(function(r,s,a){var l=a(6).Options;function o(u){l.call(this,u,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var h=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||h;var d=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var m=0;m<d.length;m++)d[m]!=="expand"?this.brace_style="collapse":this.brace_style=d[m]}o.prototype=new l,r.exports.Options=o})],e={};function n(r){var s=e[r];if(s!==void 0)return s.exports;var a=e[r]={exports:{}};return t[r](a,a.exports,n),a.exports}var i=n(15);Ja=i})();var Mc=Ja,Qa;(function(){var t=[,,(function(r){function s(o){this.__parent=o,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}s.prototype.clone_empty=function(){var o=new s(this.__parent);return o.set_indent(this.__indent_count,this.__alignment_count),o},s.prototype.item=function(o){return o<0?this.__items[this.__items.length+o]:this.__items[o]},s.prototype.has_match=function(o){for(var u=this.__items.length-1;u>=0;u--)if(this.__items[u].match(o))return!0;return!1},s.prototype.set_indent=function(o,u){this.is_empty()&&(this.__indent_count=o||0,this.__alignment_count=u||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},s.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},s.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},s.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var o=this.__parent.current_line;return o.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),o.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),o.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,o.__items[0]===" "&&(o.__items.splice(0,1),o.__character_count-=1),!0}return!1},s.prototype.is_empty=function(){return this.__items.length===0},s.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},s.prototype.push=function(o){this.__items.push(o);var u=o.lastIndexOf(`
48
+ `);u!==-1?this.__character_count=o.length-u:this.__character_count+=o.length},s.prototype.pop=function(){var o=null;return this.is_empty()||(o=this.__items.pop(),this.__character_count-=o.length),o},s.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},s.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},s.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},s.prototype.toString=function(){var o="";return this.is_empty()?this.__parent.indent_empty_lines&&(o=this.__parent.get_indent_string(this.__indent_count)):(o=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),o+=this.__items.join("")),o};function a(o,u){this.__cache=[""],this.__indent_size=o.indent_size,this.__indent_string=o.indent_char,o.indent_with_tabs||(this.__indent_string=new Array(o.indent_size+1).join(o.indent_char)),u=u||"",o.indent_level>0&&(u=new Array(o.indent_level+1).join(this.__indent_string)),this.__base_string=u,this.__base_string_length=u.length}a.prototype.get_indent_size=function(o,u){var h=this.__base_string_length;return u=u||0,o<0&&(h=0),h+=o*this.__indent_size,h+=u,h},a.prototype.get_indent_string=function(o,u){var h=this.__base_string;return u=u||0,o<0&&(o=0,h=""),u+=o*this.__indent_size,this.__ensure_cache(u),h+=this.__cache[u],h},a.prototype.__ensure_cache=function(o){for(;o>=this.__cache.length;)this.__add_column()},a.prototype.__add_column=function(){var o=this.__cache.length,u=0,h="";this.__indent_size&&o>=this.__indent_size&&(u=Math.floor(o/this.__indent_size),o-=u*this.__indent_size,h=new Array(u+1).join(this.__indent_string)),o&&(h+=new Array(o+1).join(" ")),this.__cache.push(h)};function l(o,u){this.__indent_cache=new a(o,u),this.raw=!1,this._end_with_newline=o.end_with_newline,this.indent_size=o.indent_size,this.wrap_line_length=o.wrap_line_length,this.indent_empty_lines=o.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new s(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}l.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},l.prototype.get_line_number=function(){return this.__lines.length},l.prototype.get_indent_string=function(o,u){return this.__indent_cache.get_indent_string(o,u)},l.prototype.get_indent_size=function(o,u){return this.__indent_cache.get_indent_size(o,u)},l.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},l.prototype.add_new_line=function(o){return this.is_empty()||!o&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},l.prototype.get_code=function(o){this.trim(!0);var u=this.current_line.pop();u&&(u[u.length-1]===`
49
+ `&&(u=u.replace(/\n+$/g,"")),this.current_line.push(u)),this._end_with_newline&&this.__add_outputline();var h=this.__lines.join(`
50
50
  `);return o!==`
51
- `&&(c=c.replace(/[\n]/g,o)),c},l.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},l.prototype.set_indent=function(o,u){return o=o||0,u=u||0,this.next_line.set_indent(o,u),this.__lines.length>1?(this.current_line.set_indent(o,u),!0):(this.current_line.set_indent(),!1)},l.prototype.add_raw_token=function(o){for(var u=0;u<o.newlines;u++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(o.whitespace_before),this.current_line.push(o.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},l.prototype.add_token=function(o){this.__add_space_before_token(),this.current_line.push(o),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},l.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},l.prototype.remove_indent=function(o){for(var u=this.__lines.length;o<u;)this.__lines[o]._remove_indent(),o++;this.current_line._remove_wrap_indent()},l.prototype.trim=function(o){for(o=o===void 0?!1:o,this.current_line.trim();o&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},l.prototype.just_added_newline=function(){return this.current_line.is_empty()},l.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},l.prototype.ensure_empty_line_above=function(o,u){for(var c=this.__lines.length-2;c>=0;){var d=this.__lines[c];if(d.is_empty())break;if(d.item(0).indexOf(o)!==0&&d.item(-1)!==u){this.__lines.splice(c+1,0,new s(this)),this.previous_line=this.__lines[this.__lines.length-2];break}c--}},r.exports.Output=l}),(function(r){function s(a,l,o,u){this.type=a,this.text=l,this.comments_before=null,this.newlines=o||0,this.whitespace_before=u||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}r.exports.Token=s}),,,(function(r){function s(o,u){this.raw_options=a(o,u),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}s.prototype._get_array=function(o,u){var c=this.raw_options[o],d=u||[];return typeof c=="object"?c!==null&&typeof c.concat=="function"&&(d=c.concat()):typeof c=="string"&&(d=c.split(/[^a-zA-Z0-9_\/\-]+/)),d},s.prototype._get_boolean=function(o,u){var c=this.raw_options[o],d=c===void 0?!!u:!!c;return d},s.prototype._get_characters=function(o,u){var c=this.raw_options[o],d=u||"";return typeof c=="string"&&(d=c.replace(/\\r/,"\r").replace(/\\n/,`
52
- `).replace(/\\t/," ")),d},s.prototype._get_number=function(o,u){var c=this.raw_options[o];u=parseInt(u,10),isNaN(u)&&(u=0);var d=parseInt(c,10);return isNaN(d)&&(d=u),d},s.prototype._get_selection=function(o,u,c){var d=this._get_selection_list(o,u,c);if(d.length!==1)throw new Error("Invalid Option Value: The option '"+o+`' can only be one of the following values:
51
+ `&&(h=h.replace(/[\n]/g,o)),h},l.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},l.prototype.set_indent=function(o,u){return o=o||0,u=u||0,this.next_line.set_indent(o,u),this.__lines.length>1?(this.current_line.set_indent(o,u),!0):(this.current_line.set_indent(),!1)},l.prototype.add_raw_token=function(o){for(var u=0;u<o.newlines;u++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(o.whitespace_before),this.current_line.push(o.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},l.prototype.add_token=function(o){this.__add_space_before_token(),this.current_line.push(o),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},l.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},l.prototype.remove_indent=function(o){for(var u=this.__lines.length;o<u;)this.__lines[o]._remove_indent(),o++;this.current_line._remove_wrap_indent()},l.prototype.trim=function(o){for(o=o===void 0?!1:o,this.current_line.trim();o&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},l.prototype.just_added_newline=function(){return this.current_line.is_empty()},l.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},l.prototype.ensure_empty_line_above=function(o,u){for(var h=this.__lines.length-2;h>=0;){var d=this.__lines[h];if(d.is_empty())break;if(d.item(0).indexOf(o)!==0&&d.item(-1)!==u){this.__lines.splice(h+1,0,new s(this)),this.previous_line=this.__lines[this.__lines.length-2];break}h--}},r.exports.Output=l}),(function(r){function s(a,l,o,u){this.type=a,this.text=l,this.comments_before=null,this.newlines=o||0,this.whitespace_before=u||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}r.exports.Token=s}),,,(function(r){function s(o,u){this.raw_options=a(o,u),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}s.prototype._get_array=function(o,u){var h=this.raw_options[o],d=u||[];return typeof h=="object"?h!==null&&typeof h.concat=="function"&&(d=h.concat()):typeof h=="string"&&(d=h.split(/[^a-zA-Z0-9_\/\-]+/)),d},s.prototype._get_boolean=function(o,u){var h=this.raw_options[o],d=h===void 0?!!u:!!h;return d},s.prototype._get_characters=function(o,u){var h=this.raw_options[o],d=u||"";return typeof h=="string"&&(d=h.replace(/\\r/,"\r").replace(/\\n/,`
52
+ `).replace(/\\t/," ")),d},s.prototype._get_number=function(o,u){var h=this.raw_options[o];u=parseInt(u,10),isNaN(u)&&(u=0);var d=parseInt(h,10);return isNaN(d)&&(d=u),d},s.prototype._get_selection=function(o,u,h){var d=this._get_selection_list(o,u,h);if(d.length!==1)throw new Error("Invalid Option Value: The option '"+o+`' can only be one of the following values:
53
53
  `+u+`
54
- You passed in: '`+this.raw_options[o]+"'");return d[0]},s.prototype._get_selection_list=function(o,u,c){if(!u||u.length===0)throw new Error("Selection list cannot be empty.");if(c=c||[u[0]],!this._is_valid_selection(c,u))throw new Error("Invalid Default Value!");var d=this._get_array(o,c);if(!this._is_valid_selection(d,u))throw new Error("Invalid Option Value: The option '"+o+`' can contain only the following values:
54
+ You passed in: '`+this.raw_options[o]+"'");return d[0]},s.prototype._get_selection_list=function(o,u,h){if(!u||u.length===0)throw new Error("Selection list cannot be empty.");if(h=h||[u[0]],!this._is_valid_selection(h,u))throw new Error("Invalid Default Value!");var d=this._get_array(o,h);if(!this._is_valid_selection(d,u))throw new Error("Invalid Option Value: The option '"+o+`' can contain only the following values:
55
55
  `+u+`
56
- You passed in: '`+this.raw_options[o]+"'");return d},s.prototype._is_valid_selection=function(o,u){return o.length&&u.length&&!o.some(function(c){return u.indexOf(c)===-1})};function a(o,u){var c={};o=l(o);var d;for(d in o)d!==u&&(c[d]=o[d]);if(u&&o[u])for(d in o[u])c[d]=o[u][d];return c}function l(o){var u={},c;for(c in o){var d=c.replace(/-/g,"_");u[d]=o[c]}return u}r.exports.Options=s,r.exports.normalizeOpts=l,r.exports.mergeOpts=a}),,(function(r){var s=RegExp.prototype.hasOwnProperty("sticky");function a(l){this.__input=l||"",this.__input_length=this.__input.length,this.__position=0}a.prototype.restart=function(){this.__position=0},a.prototype.back=function(){this.__position>0&&(this.__position-=1)},a.prototype.hasNext=function(){return this.__position<this.__input_length},a.prototype.next=function(){var l=null;return this.hasNext()&&(l=this.__input.charAt(this.__position),this.__position+=1),l},a.prototype.peek=function(l){var o=null;return l=l||0,l+=this.__position,l>=0&&l<this.__input_length&&(o=this.__input.charAt(l)),o},a.prototype.__match=function(l,o){l.lastIndex=o;var u=l.exec(this.__input);return u&&!(s&&l.sticky)&&u.index!==o&&(u=null),u},a.prototype.test=function(l,o){return o=o||0,o+=this.__position,o>=0&&o<this.__input_length?!!this.__match(l,o):!1},a.prototype.testChar=function(l,o){var u=this.peek(o);return l.lastIndex=0,u!==null&&l.test(u)},a.prototype.match=function(l){var o=this.__match(l,this.__position);return o?this.__position+=o[0].length:o=null,o},a.prototype.read=function(l,o,u){var c="",d;return l&&(d=this.match(l),d&&(c+=d[0])),o&&(d||!l)&&(c+=this.readUntil(o,u)),c},a.prototype.readUntil=function(l,o){var u="",c=this.__position;l.lastIndex=this.__position;var d=l.exec(this.__input);return d?(c=d.index,o&&(c+=d[0].length)):c=this.__input_length,u=this.__input.substring(this.__position,c),this.__position=c,u},a.prototype.readUntilAfter=function(l){return this.readUntil(l,!0)},a.prototype.get_regexp=function(l,o){var u=null,c="g";return o&&s&&(c="y"),typeof l=="string"&&l!==""?u=new RegExp(l,c):l&&(u=new RegExp(l.source,c)),u},a.prototype.get_literal_regexp=function(l){return RegExp(l.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},a.prototype.peekUntilAfter=function(l){var o=this.__position,u=this.readUntilAfter(l);return this.__position=o,u},a.prototype.lookBack=function(l){var o=this.__position-1;return o>=l.length&&this.__input.substring(o-l.length,o).toLowerCase()===l},r.exports.InputScanner=a}),(function(r,s,a){var l=a(8).InputScanner,o=a(3).Token,u=a(10).TokenStream,c=a(11).WhitespacePattern,d={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},m=function(f,w){this._input=new l(f),this._options=w||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new c(this._input)};m.prototype.tokenize=function(){this._input.restart(),this.__tokens=new u,this._reset();for(var f,w=new o(d.START,""),p=null,T=[],y=new u;w.type!==d.EOF;){for(f=this._get_next_token(w,p);this._is_comment(f);)y.add(f),f=this._get_next_token(w,p);y.isEmpty()||(f.comments_before=y,y=new u),f.parent=p,this._is_opening(f)?(T.push(p),p=f):p&&this._is_closing(f,p)&&(f.opened=p,p.closed=f,p=T.pop(),f.parent=p),f.previous=w,w.next=f,this.__tokens.add(f),w=f}return this.__tokens},m.prototype._is_first_token=function(){return this.__tokens.isEmpty()},m.prototype._reset=function(){},m.prototype._get_next_token=function(f,w){this._readWhitespace();var p=this._input.read(/.+/g);return p?this._create_token(d.RAW,p):this._create_token(d.EOF,"")},m.prototype._is_comment=function(f){return!1},m.prototype._is_opening=function(f){return!1},m.prototype._is_closing=function(f,w){return!1},m.prototype._create_token=function(f,w){var p=new o(f,w,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return p},m.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},r.exports.Tokenizer=m,r.exports.TOKEN=d}),(function(r){function s(a){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=a}s.prototype.restart=function(){this.__position=0},s.prototype.isEmpty=function(){return this.__tokens_length===0},s.prototype.hasNext=function(){return this.__position<this.__tokens_length},s.prototype.next=function(){var a=null;return this.hasNext()&&(a=this.__tokens[this.__position],this.__position+=1),a},s.prototype.peek=function(a){var l=null;return a=a||0,a+=this.__position,a>=0&&a<this.__tokens_length&&(l=this.__tokens[a]),l},s.prototype.add=function(a){this.__parent_token&&(a.parent=this.__parent_token),this.__tokens.push(a),this.__tokens_length+=1},r.exports.TokenStream=s}),(function(r,s,a){var l=a(12).Pattern;function o(u,c){l.call(this,u,c),c?this._line_regexp=this._input.get_regexp(c._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}o.prototype=new l,o.prototype.__set_whitespace_patterns=function(u,c){u+="\\t ",c+="\\n\\r",this._match_pattern=this._input.get_regexp("["+u+c+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+c+"]")},o.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var u=this._input.read(this._match_pattern);if(u===" ")this.whitespace_before_token=" ";else if(u){var c=this.__split(this._newline_regexp,u);this.newline_count=c.length-1,this.whitespace_before_token=c[this.newline_count]}return u},o.prototype.matching=function(u,c){var d=this._create();return d.__set_whitespace_patterns(u,c),d._update(),d},o.prototype._create=function(){return new o(this._input,this)},o.prototype.__split=function(u,c){u.lastIndex=0;for(var d=0,m=[],f=u.exec(c);f;)m.push(c.substring(d,f.index)),d=f.index+f[0].length,f=u.exec(c);return d<c.length?m.push(c.substring(d,c.length)):m.push(""),m},r.exports.WhitespacePattern=o}),(function(r){function s(a,l){this._input=a,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,l&&(this._starting_pattern=this._input.get_regexp(l._starting_pattern,!0),this._match_pattern=this._input.get_regexp(l._match_pattern,!0),this._until_pattern=this._input.get_regexp(l._until_pattern),this._until_after=l._until_after)}s.prototype.read=function(){var a=this._input.read(this._starting_pattern);return(!this._starting_pattern||a)&&(a+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),a},s.prototype.read_match=function(){return this._input.match(this._match_pattern)},s.prototype.until_after=function(a){var l=this._create();return l._until_after=!0,l._until_pattern=this._input.get_regexp(a),l._update(),l},s.prototype.until=function(a){var l=this._create();return l._until_after=!1,l._until_pattern=this._input.get_regexp(a),l._update(),l},s.prototype.starting_with=function(a){var l=this._create();return l._starting_pattern=this._input.get_regexp(a,!0),l._update(),l},s.prototype.matching=function(a){var l=this._create();return l._match_pattern=this._input.get_regexp(a,!0),l._update(),l},s.prototype._create=function(){return new s(this._input,this)},s.prototype._update=function(){},r.exports.Pattern=s}),(function(r){function s(a,l){a=typeof a=="string"?a:a.source,l=typeof l=="string"?l:l.source,this.__directives_block_pattern=new RegExp(a+/ beautify( \w+[:]\w+)+ /.source+l,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(a+/\sbeautify\signore:end\s/.source+l,"g")}s.prototype.get_directives=function(a){if(!a.match(this.__directives_block_pattern))return null;var l={};this.__directive_pattern.lastIndex=0;for(var o=this.__directive_pattern.exec(a);o;)l[o[1]]=o[2],o=this.__directive_pattern.exec(a);return l},s.prototype.readIgnored=function(a){return a.readUntilAfter(this.__directives_end_ignore_pattern)},r.exports.Directives=s}),(function(r,s,a){var l=a(12).Pattern,o={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function u(c,d){l.call(this,c,d),this.__template_pattern=null,this._disabled=Object.assign({},o),this._excluded=Object.assign({},o),d&&(this.__template_pattern=this._input.get_regexp(d.__template_pattern),this._excluded=Object.assign(this._excluded,d._excluded),this._disabled=Object.assign(this._disabled,d._disabled));var m=new l(c);this.__patterns={handlebars_comment:m.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:m.starting_with(/{{{/).until_after(/}}}/),handlebars:m.starting_with(/{{/).until_after(/}}/),php:m.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:m.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:m.starting_with(/{%/).until_after(/%}/),django_value:m.starting_with(/{{/).until_after(/}}/),django_comment:m.starting_with(/{#/).until_after(/#}/),smarty:m.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:m.starting_with(/{\*/).until_after(/\*}/),smarty_literal:m.starting_with(/{literal}/).until_after(/{\/literal}/)}}u.prototype=new l,u.prototype._create=function(){return new u(this._input,this)},u.prototype._update=function(){this.__set_templated_pattern()},u.prototype.disable=function(c){var d=this._create();return d._disabled[c]=!0,d._update(),d},u.prototype.read_options=function(c){var d=this._create();for(var m in o)d._disabled[m]=c.templating.indexOf(m)===-1;return d._update(),d},u.prototype.exclude=function(c){var d=this._create();return d._excluded[c]=!0,d._update(),d},u.prototype.read=function(){var c="";this._match_pattern?c=this._input.read(this._starting_pattern):c=this._input.read(this._starting_pattern,this.__template_pattern);for(var d=this._read_template();d;)this._match_pattern?d+=this._input.read(this._match_pattern):d+=this._input.readUntil(this.__template_pattern),c+=d,d=this._read_template();return this._until_after&&(c+=this._input.readUntilAfter(this._until_pattern)),c},u.prototype.__set_templated_pattern=function(){var c=[];this._disabled.php||c.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||c.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||c.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(c.push(this.__patterns.django._starting_pattern.source),c.push(this.__patterns.django_value._starting_pattern.source),c.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||c.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&c.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+c.join("|")+")")},u.prototype._read_template=function(){var c="",d=this._input.peek();if(d==="<"){var m=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&m==="?"&&(c=c||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&m==="%"&&(c=c||this.__patterns.erb.read())}else d==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(c=c||this.__patterns.handlebars_comment.read(),c=c||this.__patterns.handlebars_unescaped.read(),c=c||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(c=c||this.__patterns.django_value.read()),this._excluded.django||(c=c||this.__patterns.django_comment.read(),c=c||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(c=c||this.__patterns.smarty_comment.read(),c=c||this.__patterns.smarty_literal.read(),c=c||this.__patterns.smarty.read()));return c},r.exports.TemplatablePattern=u}),,,,(function(r,s,a){var l=a(19).Beautifier,o=a(20).Options;function u(c,d,m,f){var w=new l(c,d,m,f);return w.beautify()}r.exports=u,r.exports.defaultOptions=function(){return new o}}),(function(r,s,a){var l=a(20).Options,o=a(2).Output,u=a(21).Tokenizer,c=a(21).TOKEN,d=/\r\n|[\r\n]/,m=/\r\n|[\r\n]/g,f=function(b,g){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=b.max_preserve_newlines,this.preserve_newlines=b.preserve_newlines,this._output=new o(b,g)};f.prototype.current_line_has_match=function(b){return this._output.current_line.has_match(b)},f.prototype.set_space_before_token=function(b,g){this._output.space_before_token=b,this._output.non_breaking_space=g},f.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},f.prototype.add_raw_token=function(b){this._output.add_raw_token(b)},f.prototype.print_preserved_newlines=function(b){var g=0;b.type!==c.TEXT&&b.previous.type!==c.TEXT&&(g=b.newlines?1:0),this.preserve_newlines&&(g=b.newlines<this.max_preserve_newlines+1?b.newlines:this.max_preserve_newlines+1);for(var _=0;_<g;_++)this.print_newline(_>0);return g!==0},f.prototype.traverse_whitespace=function(b){return b.whitespace_before||b.newlines?(this.print_preserved_newlines(b)||(this._output.space_before_token=!0),!0):!1},f.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},f.prototype.print_newline=function(b){this._output.add_new_line(b)},f.prototype.print_token=function(b){b.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(b.text))},f.prototype.indent=function(){this.indent_level++},f.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},f.prototype.get_full_indent=function(b){return b=this.indent_level+(b||0),b<1?"":this._output.get_indent_string(b)};var w=function(b){for(var g=null,_=b.next;_.type!==c.EOF&&b.closed!==_;){if(_.type===c.ATTRIBUTE&&_.text==="type"){_.next&&_.next.type===c.EQUALS&&_.next.next&&_.next.next.type===c.VALUE&&(g=_.next.next.text);break}_=_.next}return g},p=function(b,g){var _=null,N=null;return g.closed?(b==="script"?_="text/javascript":b==="style"&&(_="text/css"),_=w(g)||_,_.search("text/css")>-1?N="css":_.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?N="javascript":_.search(/(text|application|dojo)\/(x-)?(html)/)>-1?N="html":_.search(/test\/null/)>-1&&(N="null"),N):null};function T(b,g){return g.indexOf(b)!==-1}function y(b,g,_){this.parent=b||null,this.tag=g?g.tag_name:"",this.indent_level=_||0,this.parser_token=g||null}function v(b){this._printer=b,this._current_frame=null}v.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},v.prototype.record_tag=function(b){var g=new y(this._current_frame,b,this._printer.indent_level);this._current_frame=g},v.prototype._try_pop_frame=function(b){var g=null;return b&&(g=b.parser_token,this._printer.indent_level=b.indent_level,this._current_frame=b.parent),g},v.prototype._get_frame=function(b,g){for(var _=this._current_frame;_&&b.indexOf(_.tag)===-1;){if(g&&g.indexOf(_.tag)!==-1){_=null;break}_=_.parent}return _},v.prototype.try_pop=function(b,g){var _=this._get_frame([b],g);return this._try_pop_frame(_)},v.prototype.indent_to_tag=function(b){var g=this._get_frame(b);g&&(this._printer.indent_level=g.indent_level)};function S(b,g,_,N){this._source_text=b||"",g=g||{},this._js_beautify=_,this._css_beautify=N,this._tag_stack=null;var A=new l(g,"html");this._options=A,this._is_wrap_attributes_force=this._options.wrap_attributes.substr(0,5)==="force",this._is_wrap_attributes_force_expand_multiline=this._options.wrap_attributes==="force-expand-multiline",this._is_wrap_attributes_force_aligned=this._options.wrap_attributes==="force-aligned",this._is_wrap_attributes_aligned_multiple=this._options.wrap_attributes==="aligned-multiple",this._is_wrap_attributes_preserve=this._options.wrap_attributes.substr(0,8)==="preserve",this._is_wrap_attributes_preserve_aligned=this._options.wrap_attributes==="preserve-aligned"}S.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var b=this._source_text,g=this._options.eol;this._options.eol==="auto"&&(g=`
56
+ You passed in: '`+this.raw_options[o]+"'");return d},s.prototype._is_valid_selection=function(o,u){return o.length&&u.length&&!o.some(function(h){return u.indexOf(h)===-1})};function a(o,u){var h={};o=l(o);var d;for(d in o)d!==u&&(h[d]=o[d]);if(u&&o[u])for(d in o[u])h[d]=o[u][d];return h}function l(o){var u={},h;for(h in o){var d=h.replace(/-/g,"_");u[d]=o[h]}return u}r.exports.Options=s,r.exports.normalizeOpts=l,r.exports.mergeOpts=a}),,(function(r){var s=RegExp.prototype.hasOwnProperty("sticky");function a(l){this.__input=l||"",this.__input_length=this.__input.length,this.__position=0}a.prototype.restart=function(){this.__position=0},a.prototype.back=function(){this.__position>0&&(this.__position-=1)},a.prototype.hasNext=function(){return this.__position<this.__input_length},a.prototype.next=function(){var l=null;return this.hasNext()&&(l=this.__input.charAt(this.__position),this.__position+=1),l},a.prototype.peek=function(l){var o=null;return l=l||0,l+=this.__position,l>=0&&l<this.__input_length&&(o=this.__input.charAt(l)),o},a.prototype.__match=function(l,o){l.lastIndex=o;var u=l.exec(this.__input);return u&&!(s&&l.sticky)&&u.index!==o&&(u=null),u},a.prototype.test=function(l,o){return o=o||0,o+=this.__position,o>=0&&o<this.__input_length?!!this.__match(l,o):!1},a.prototype.testChar=function(l,o){var u=this.peek(o);return l.lastIndex=0,u!==null&&l.test(u)},a.prototype.match=function(l){var o=this.__match(l,this.__position);return o?this.__position+=o[0].length:o=null,o},a.prototype.read=function(l,o,u){var h="",d;return l&&(d=this.match(l),d&&(h+=d[0])),o&&(d||!l)&&(h+=this.readUntil(o,u)),h},a.prototype.readUntil=function(l,o){var u="",h=this.__position;l.lastIndex=this.__position;var d=l.exec(this.__input);return d?(h=d.index,o&&(h+=d[0].length)):h=this.__input_length,u=this.__input.substring(this.__position,h),this.__position=h,u},a.prototype.readUntilAfter=function(l){return this.readUntil(l,!0)},a.prototype.get_regexp=function(l,o){var u=null,h="g";return o&&s&&(h="y"),typeof l=="string"&&l!==""?u=new RegExp(l,h):l&&(u=new RegExp(l.source,h)),u},a.prototype.get_literal_regexp=function(l){return RegExp(l.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},a.prototype.peekUntilAfter=function(l){var o=this.__position,u=this.readUntilAfter(l);return this.__position=o,u},a.prototype.lookBack=function(l){var o=this.__position-1;return o>=l.length&&this.__input.substring(o-l.length,o).toLowerCase()===l},r.exports.InputScanner=a}),(function(r,s,a){var l=a(8).InputScanner,o=a(3).Token,u=a(10).TokenStream,h=a(11).WhitespacePattern,d={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},m=function(f,w){this._input=new l(f),this._options=w||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new h(this._input)};m.prototype.tokenize=function(){this._input.restart(),this.__tokens=new u,this._reset();for(var f,w=new o(d.START,""),p=null,T=[],y=new u;w.type!==d.EOF;){for(f=this._get_next_token(w,p);this._is_comment(f);)y.add(f),f=this._get_next_token(w,p);y.isEmpty()||(f.comments_before=y,y=new u),f.parent=p,this._is_opening(f)?(T.push(p),p=f):p&&this._is_closing(f,p)&&(f.opened=p,p.closed=f,p=T.pop(),f.parent=p),f.previous=w,w.next=f,this.__tokens.add(f),w=f}return this.__tokens},m.prototype._is_first_token=function(){return this.__tokens.isEmpty()},m.prototype._reset=function(){},m.prototype._get_next_token=function(f,w){this._readWhitespace();var p=this._input.read(/.+/g);return p?this._create_token(d.RAW,p):this._create_token(d.EOF,"")},m.prototype._is_comment=function(f){return!1},m.prototype._is_opening=function(f){return!1},m.prototype._is_closing=function(f,w){return!1},m.prototype._create_token=function(f,w){var p=new o(f,w,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return p},m.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},r.exports.Tokenizer=m,r.exports.TOKEN=d}),(function(r){function s(a){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=a}s.prototype.restart=function(){this.__position=0},s.prototype.isEmpty=function(){return this.__tokens_length===0},s.prototype.hasNext=function(){return this.__position<this.__tokens_length},s.prototype.next=function(){var a=null;return this.hasNext()&&(a=this.__tokens[this.__position],this.__position+=1),a},s.prototype.peek=function(a){var l=null;return a=a||0,a+=this.__position,a>=0&&a<this.__tokens_length&&(l=this.__tokens[a]),l},s.prototype.add=function(a){this.__parent_token&&(a.parent=this.__parent_token),this.__tokens.push(a),this.__tokens_length+=1},r.exports.TokenStream=s}),(function(r,s,a){var l=a(12).Pattern;function o(u,h){l.call(this,u,h),h?this._line_regexp=this._input.get_regexp(h._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}o.prototype=new l,o.prototype.__set_whitespace_patterns=function(u,h){u+="\\t ",h+="\\n\\r",this._match_pattern=this._input.get_regexp("["+u+h+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+h+"]")},o.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var u=this._input.read(this._match_pattern);if(u===" ")this.whitespace_before_token=" ";else if(u){var h=this.__split(this._newline_regexp,u);this.newline_count=h.length-1,this.whitespace_before_token=h[this.newline_count]}return u},o.prototype.matching=function(u,h){var d=this._create();return d.__set_whitespace_patterns(u,h),d._update(),d},o.prototype._create=function(){return new o(this._input,this)},o.prototype.__split=function(u,h){u.lastIndex=0;for(var d=0,m=[],f=u.exec(h);f;)m.push(h.substring(d,f.index)),d=f.index+f[0].length,f=u.exec(h);return d<h.length?m.push(h.substring(d,h.length)):m.push(""),m},r.exports.WhitespacePattern=o}),(function(r){function s(a,l){this._input=a,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,l&&(this._starting_pattern=this._input.get_regexp(l._starting_pattern,!0),this._match_pattern=this._input.get_regexp(l._match_pattern,!0),this._until_pattern=this._input.get_regexp(l._until_pattern),this._until_after=l._until_after)}s.prototype.read=function(){var a=this._input.read(this._starting_pattern);return(!this._starting_pattern||a)&&(a+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),a},s.prototype.read_match=function(){return this._input.match(this._match_pattern)},s.prototype.until_after=function(a){var l=this._create();return l._until_after=!0,l._until_pattern=this._input.get_regexp(a),l._update(),l},s.prototype.until=function(a){var l=this._create();return l._until_after=!1,l._until_pattern=this._input.get_regexp(a),l._update(),l},s.prototype.starting_with=function(a){var l=this._create();return l._starting_pattern=this._input.get_regexp(a,!0),l._update(),l},s.prototype.matching=function(a){var l=this._create();return l._match_pattern=this._input.get_regexp(a,!0),l._update(),l},s.prototype._create=function(){return new s(this._input,this)},s.prototype._update=function(){},r.exports.Pattern=s}),(function(r){function s(a,l){a=typeof a=="string"?a:a.source,l=typeof l=="string"?l:l.source,this.__directives_block_pattern=new RegExp(a+/ beautify( \w+[:]\w+)+ /.source+l,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(a+/\sbeautify\signore:end\s/.source+l,"g")}s.prototype.get_directives=function(a){if(!a.match(this.__directives_block_pattern))return null;var l={};this.__directive_pattern.lastIndex=0;for(var o=this.__directive_pattern.exec(a);o;)l[o[1]]=o[2],o=this.__directive_pattern.exec(a);return l},s.prototype.readIgnored=function(a){return a.readUntilAfter(this.__directives_end_ignore_pattern)},r.exports.Directives=s}),(function(r,s,a){var l=a(12).Pattern,o={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function u(h,d){l.call(this,h,d),this.__template_pattern=null,this._disabled=Object.assign({},o),this._excluded=Object.assign({},o),d&&(this.__template_pattern=this._input.get_regexp(d.__template_pattern),this._excluded=Object.assign(this._excluded,d._excluded),this._disabled=Object.assign(this._disabled,d._disabled));var m=new l(h);this.__patterns={handlebars_comment:m.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:m.starting_with(/{{{/).until_after(/}}}/),handlebars:m.starting_with(/{{/).until_after(/}}/),php:m.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:m.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:m.starting_with(/{%/).until_after(/%}/),django_value:m.starting_with(/{{/).until_after(/}}/),django_comment:m.starting_with(/{#/).until_after(/#}/),smarty:m.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:m.starting_with(/{\*/).until_after(/\*}/),smarty_literal:m.starting_with(/{literal}/).until_after(/{\/literal}/)}}u.prototype=new l,u.prototype._create=function(){return new u(this._input,this)},u.prototype._update=function(){this.__set_templated_pattern()},u.prototype.disable=function(h){var d=this._create();return d._disabled[h]=!0,d._update(),d},u.prototype.read_options=function(h){var d=this._create();for(var m in o)d._disabled[m]=h.templating.indexOf(m)===-1;return d._update(),d},u.prototype.exclude=function(h){var d=this._create();return d._excluded[h]=!0,d._update(),d},u.prototype.read=function(){var h="";this._match_pattern?h=this._input.read(this._starting_pattern):h=this._input.read(this._starting_pattern,this.__template_pattern);for(var d=this._read_template();d;)this._match_pattern?d+=this._input.read(this._match_pattern):d+=this._input.readUntil(this.__template_pattern),h+=d,d=this._read_template();return this._until_after&&(h+=this._input.readUntilAfter(this._until_pattern)),h},u.prototype.__set_templated_pattern=function(){var h=[];this._disabled.php||h.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||h.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||h.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(h.push(this.__patterns.django._starting_pattern.source),h.push(this.__patterns.django_value._starting_pattern.source),h.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||h.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&h.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+h.join("|")+")")},u.prototype._read_template=function(){var h="",d=this._input.peek();if(d==="<"){var m=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&m==="?"&&(h=h||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&m==="%"&&(h=h||this.__patterns.erb.read())}else d==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(h=h||this.__patterns.handlebars_comment.read(),h=h||this.__patterns.handlebars_unescaped.read(),h=h||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(h=h||this.__patterns.django_value.read()),this._excluded.django||(h=h||this.__patterns.django_comment.read(),h=h||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(h=h||this.__patterns.smarty_comment.read(),h=h||this.__patterns.smarty_literal.read(),h=h||this.__patterns.smarty.read()));return h},r.exports.TemplatablePattern=u}),,,,(function(r,s,a){var l=a(19).Beautifier,o=a(20).Options;function u(h,d,m,f){var w=new l(h,d,m,f);return w.beautify()}r.exports=u,r.exports.defaultOptions=function(){return new o}}),(function(r,s,a){var l=a(20).Options,o=a(2).Output,u=a(21).Tokenizer,h=a(21).TOKEN,d=/\r\n|[\r\n]/,m=/\r\n|[\r\n]/g,f=function(b,g){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=b.max_preserve_newlines,this.preserve_newlines=b.preserve_newlines,this._output=new o(b,g)};f.prototype.current_line_has_match=function(b){return this._output.current_line.has_match(b)},f.prototype.set_space_before_token=function(b,g){this._output.space_before_token=b,this._output.non_breaking_space=g},f.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},f.prototype.add_raw_token=function(b){this._output.add_raw_token(b)},f.prototype.print_preserved_newlines=function(b){var g=0;b.type!==h.TEXT&&b.previous.type!==h.TEXT&&(g=b.newlines?1:0),this.preserve_newlines&&(g=b.newlines<this.max_preserve_newlines+1?b.newlines:this.max_preserve_newlines+1);for(var _=0;_<g;_++)this.print_newline(_>0);return g!==0},f.prototype.traverse_whitespace=function(b){return b.whitespace_before||b.newlines?(this.print_preserved_newlines(b)||(this._output.space_before_token=!0),!0):!1},f.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},f.prototype.print_newline=function(b){this._output.add_new_line(b)},f.prototype.print_token=function(b){b.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(b.text))},f.prototype.indent=function(){this.indent_level++},f.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},f.prototype.get_full_indent=function(b){return b=this.indent_level+(b||0),b<1?"":this._output.get_indent_string(b)};var w=function(b){for(var g=null,_=b.next;_.type!==h.EOF&&b.closed!==_;){if(_.type===h.ATTRIBUTE&&_.text==="type"){_.next&&_.next.type===h.EQUALS&&_.next.next&&_.next.next.type===h.VALUE&&(g=_.next.next.text);break}_=_.next}return g},p=function(b,g){var _=null,N=null;return g.closed?(b==="script"?_="text/javascript":b==="style"&&(_="text/css"),_=w(g)||_,_.search("text/css")>-1?N="css":_.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?N="javascript":_.search(/(text|application|dojo)\/(x-)?(html)/)>-1?N="html":_.search(/test\/null/)>-1&&(N="null"),N):null};function T(b,g){return g.indexOf(b)!==-1}function y(b,g,_){this.parent=b||null,this.tag=g?g.tag_name:"",this.indent_level=_||0,this.parser_token=g||null}function v(b){this._printer=b,this._current_frame=null}v.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},v.prototype.record_tag=function(b){var g=new y(this._current_frame,b,this._printer.indent_level);this._current_frame=g},v.prototype._try_pop_frame=function(b){var g=null;return b&&(g=b.parser_token,this._printer.indent_level=b.indent_level,this._current_frame=b.parent),g},v.prototype._get_frame=function(b,g){for(var _=this._current_frame;_&&b.indexOf(_.tag)===-1;){if(g&&g.indexOf(_.tag)!==-1){_=null;break}_=_.parent}return _},v.prototype.try_pop=function(b,g){var _=this._get_frame([b],g);return this._try_pop_frame(_)},v.prototype.indent_to_tag=function(b){var g=this._get_frame(b);g&&(this._printer.indent_level=g.indent_level)};function S(b,g,_,N){this._source_text=b||"",g=g||{},this._js_beautify=_,this._css_beautify=N,this._tag_stack=null;var A=new l(g,"html");this._options=A,this._is_wrap_attributes_force=this._options.wrap_attributes.substr(0,5)==="force",this._is_wrap_attributes_force_expand_multiline=this._options.wrap_attributes==="force-expand-multiline",this._is_wrap_attributes_force_aligned=this._options.wrap_attributes==="force-aligned",this._is_wrap_attributes_aligned_multiple=this._options.wrap_attributes==="aligned-multiple",this._is_wrap_attributes_preserve=this._options.wrap_attributes.substr(0,8)==="preserve",this._is_wrap_attributes_preserve_aligned=this._options.wrap_attributes==="preserve-aligned"}S.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var b=this._source_text,g=this._options.eol;this._options.eol==="auto"&&(g=`
57
57
  `,b&&d.test(b)&&(g=b.match(d)[0])),b=b.replace(m,`
58
- `);var _=b.match(/^[\t ]*/)[0],N={text:"",type:""},A=new I,x=new f(this._options,_),R=new u(b,this._options).tokenize();this._tag_stack=new v(x);for(var L=null,k=R.next();k.type!==c.EOF;)k.type===c.TAG_OPEN||k.type===c.COMMENT?(L=this._handle_tag_open(x,k,A,N,R),A=L):k.type===c.ATTRIBUTE||k.type===c.EQUALS||k.type===c.VALUE||k.type===c.TEXT&&!A.tag_complete?L=this._handle_inside_tag(x,k,A,N):k.type===c.TAG_CLOSE?L=this._handle_tag_close(x,k,A):k.type===c.TEXT?L=this._handle_text(x,k,A):k.type===c.CONTROL_FLOW_OPEN?L=this._handle_control_flow_open(x,k):k.type===c.CONTROL_FLOW_CLOSE?L=this._handle_control_flow_close(x,k):x.add_raw_token(k),N=L,k=R.next();var E=x._output.get_code(g);return E},S.prototype._handle_control_flow_open=function(b,g){var _={text:g.text,type:g.type};return b.set_space_before_token(g.newlines||g.whitespace_before!=="",!0),g.newlines?b.print_preserved_newlines(g):b.set_space_before_token(g.newlines||g.whitespace_before!=="",!0),b.print_token(g),b.indent(),_},S.prototype._handle_control_flow_close=function(b,g){var _={text:g.text,type:g.type};return b.deindent(),g.newlines?b.print_preserved_newlines(g):b.set_space_before_token(g.newlines||g.whitespace_before!=="",!0),b.print_token(g),_},S.prototype._handle_tag_close=function(b,g,_){var N={text:g.text,type:g.type};return b.alignment_size=0,_.tag_complete=!0,b.set_space_before_token(g.newlines||g.whitespace_before!=="",!0),_.is_unformatted?b.add_raw_token(g):(_.tag_start_char==="<"&&(b.set_space_before_token(g.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&_.has_wrapped_attrs&&b.print_newline(!1)),b.print_token(g)),_.indent_content&&!(_.is_unformatted||_.is_content_unformatted)&&(b.indent(),_.indent_content=!1),!_.is_inline_element&&!(_.is_unformatted||_.is_content_unformatted)&&b.set_wrap_point(),N},S.prototype._handle_inside_tag=function(b,g,_,N){var A=_.has_wrapped_attrs,x={text:g.text,type:g.type};return b.set_space_before_token(g.newlines||g.whitespace_before!=="",!0),_.is_unformatted?b.add_raw_token(g):_.tag_start_char==="{"&&g.type===c.TEXT?b.print_preserved_newlines(g)?(g.newlines=0,b.add_raw_token(g)):b.print_token(g):(g.type===c.ATTRIBUTE?b.set_space_before_token(!0):(g.type===c.EQUALS||g.type===c.VALUE&&g.previous.type===c.EQUALS)&&b.set_space_before_token(!1),g.type===c.ATTRIBUTE&&_.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(b.traverse_whitespace(g),A=A||g.newlines!==0),this._is_wrap_attributes_force&&_.attr_count>=this._options.wrap_attributes_min_attrs&&(N.type!==c.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(b.print_newline(!1),A=!0)),b.print_token(g),A=A||b.previous_token_wrapped(),_.has_wrapped_attrs=A),x},S.prototype._handle_text=function(b,g,_){var N={text:g.text,type:"TK_CONTENT"};return _.custom_beautifier_name?this._print_custom_beatifier_text(b,g,_):_.is_unformatted||_.is_content_unformatted?b.add_raw_token(g):(b.traverse_whitespace(g),b.print_token(g)),N},S.prototype._print_custom_beatifier_text=function(b,g,_){var N=this;if(g.text!==""){var A=g.text,x,R=1,L="",k="";_.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?x=this._js_beautify:_.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?x=this._css_beautify:_.custom_beautifier_name==="html"&&(x=function(B,X){var Y=new S(B,X,N._js_beautify,N._css_beautify);return Y.beautify()}),this._options.indent_scripts==="keep"?R=0:this._options.indent_scripts==="separate"&&(R=-b.indent_level);var E=b.get_full_indent(R);if(A=A.replace(/\n[ \t]*$/,""),_.custom_beautifier_name!=="html"&&A[0]==="<"&&A.match(/^(<!--|<!\[CDATA\[)/)){var M=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(A);if(!M){b.add_raw_token(g);return}L=E+M[1]+`
58
+ `);var _=b.match(/^[\t ]*/)[0],N={text:"",type:""},A=new I,x=new f(this._options,_),R=new u(b,this._options).tokenize();this._tag_stack=new v(x);for(var L=null,k=R.next();k.type!==h.EOF;)k.type===h.TAG_OPEN||k.type===h.COMMENT?(L=this._handle_tag_open(x,k,A,N,R),A=L):k.type===h.ATTRIBUTE||k.type===h.EQUALS||k.type===h.VALUE||k.type===h.TEXT&&!A.tag_complete?L=this._handle_inside_tag(x,k,A,N):k.type===h.TAG_CLOSE?L=this._handle_tag_close(x,k,A):k.type===h.TEXT?L=this._handle_text(x,k,A):k.type===h.CONTROL_FLOW_OPEN?L=this._handle_control_flow_open(x,k):k.type===h.CONTROL_FLOW_CLOSE?L=this._handle_control_flow_close(x,k):x.add_raw_token(k),N=L,k=R.next();var E=x._output.get_code(g);return E},S.prototype._handle_control_flow_open=function(b,g){var _={text:g.text,type:g.type};return b.set_space_before_token(g.newlines||g.whitespace_before!=="",!0),g.newlines?b.print_preserved_newlines(g):b.set_space_before_token(g.newlines||g.whitespace_before!=="",!0),b.print_token(g),b.indent(),_},S.prototype._handle_control_flow_close=function(b,g){var _={text:g.text,type:g.type};return b.deindent(),g.newlines?b.print_preserved_newlines(g):b.set_space_before_token(g.newlines||g.whitespace_before!=="",!0),b.print_token(g),_},S.prototype._handle_tag_close=function(b,g,_){var N={text:g.text,type:g.type};return b.alignment_size=0,_.tag_complete=!0,b.set_space_before_token(g.newlines||g.whitespace_before!=="",!0),_.is_unformatted?b.add_raw_token(g):(_.tag_start_char==="<"&&(b.set_space_before_token(g.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&_.has_wrapped_attrs&&b.print_newline(!1)),b.print_token(g)),_.indent_content&&!(_.is_unformatted||_.is_content_unformatted)&&(b.indent(),_.indent_content=!1),!_.is_inline_element&&!(_.is_unformatted||_.is_content_unformatted)&&b.set_wrap_point(),N},S.prototype._handle_inside_tag=function(b,g,_,N){var A=_.has_wrapped_attrs,x={text:g.text,type:g.type};return b.set_space_before_token(g.newlines||g.whitespace_before!=="",!0),_.is_unformatted?b.add_raw_token(g):_.tag_start_char==="{"&&g.type===h.TEXT?b.print_preserved_newlines(g)?(g.newlines=0,b.add_raw_token(g)):b.print_token(g):(g.type===h.ATTRIBUTE?b.set_space_before_token(!0):(g.type===h.EQUALS||g.type===h.VALUE&&g.previous.type===h.EQUALS)&&b.set_space_before_token(!1),g.type===h.ATTRIBUTE&&_.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(b.traverse_whitespace(g),A=A||g.newlines!==0),this._is_wrap_attributes_force&&_.attr_count>=this._options.wrap_attributes_min_attrs&&(N.type!==h.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(b.print_newline(!1),A=!0)),b.print_token(g),A=A||b.previous_token_wrapped(),_.has_wrapped_attrs=A),x},S.prototype._handle_text=function(b,g,_){var N={text:g.text,type:"TK_CONTENT"};return _.custom_beautifier_name?this._print_custom_beatifier_text(b,g,_):_.is_unformatted||_.is_content_unformatted?b.add_raw_token(g):(b.traverse_whitespace(g),b.print_token(g)),N},S.prototype._print_custom_beatifier_text=function(b,g,_){var N=this;if(g.text!==""){var A=g.text,x,R=1,L="",k="";_.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?x=this._js_beautify:_.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?x=this._css_beautify:_.custom_beautifier_name==="html"&&(x=function(B,X){var Y=new S(B,X,N._js_beautify,N._css_beautify);return Y.beautify()}),this._options.indent_scripts==="keep"?R=0:this._options.indent_scripts==="separate"&&(R=-b.indent_level);var E=b.get_full_indent(R);if(A=A.replace(/\n[ \t]*$/,""),_.custom_beautifier_name!=="html"&&A[0]==="<"&&A.match(/^(<!--|<!\[CDATA\[)/)){var M=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(A);if(!M){b.add_raw_token(g);return}L=E+M[1]+`
59
59
  `,A=M[4],M[5]&&(k=E+M[5]),A=A.replace(/\n[ \t]*$/,""),(M[2]||M[3].indexOf(`
60
60
  `)!==-1)&&(M=M[3].match(/[ \t]+$/),M&&(g.whitespace_before=M[0]))}if(A)if(x){var U=function(){this.eol=`
61
61
  `};U.prototype=this._options.raw_options;var F=new U;A=x(E+A,F)}else{var P=g.whitespace_before;P&&(A=A.replace(new RegExp(`
62
62
  (`+P+")?","g"),`
63
63
  `)),A=E+A.replace(/\n/g,`
64
64
  `+E)}L&&(A?A=L+A+`
65
- `+k:A=L+k),b.print_newline(!1),A&&(g.text=A,g.whitespace_before="",g.newlines=0,b.add_raw_token(g),b.print_newline(!0))}},S.prototype._handle_tag_open=function(b,g,_,N,A){var x=this._get_tag_open_token(g);if((_.is_unformatted||_.is_content_unformatted)&&!_.is_empty_element&&g.type===c.TAG_OPEN&&!x.is_start_tag?(b.add_raw_token(g),x.start_tag_token=this._tag_stack.try_pop(x.tag_name)):(b.traverse_whitespace(g),this._set_tag_position(b,g,x,_,N),x.is_inline_element||b.set_wrap_point(),b.print_token(g)),x.is_start_tag&&this._is_wrap_attributes_force){var R=0,L;do L=A.peek(R),L.type===c.ATTRIBUTE&&(x.attr_count+=1),R+=1;while(L.type!==c.EOF&&L.type!==c.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(x.alignment_size=g.text.length+1),!x.tag_complete&&!x.is_unformatted&&(b.alignment_size=x.alignment_size),x};var I=function(b,g){if(this.parent=b||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",!g)this.tag_complete=!0;else{var _;this.tag_start_char=g.text[0],this.text=g.text,this.tag_start_char==="<"?(_=g.text.match(/^<([^\s>]*)/),this.tag_check=_?_[1]:""):(_=g.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=_?_[1]:"",(g.text.startsWith("{{#>")||g.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&g.next!==null?this.tag_check=g.next.text.split(" ")[0]:this.tag_check=g.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),g.type===c.COMMENT&&(this.tag_complete=!0),this.is_start_tag=this.tag_check.charAt(0)!=="/",this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||g.closed&&g.closed.text==="/>";var N=2;this.tag_start_char==="{"&&this.text.length>=3&&this.text.charAt(2)==="~"&&(N=3),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(N)))}};S.prototype._get_tag_open_token=function(b){var g=new I(this._tag_stack.get_parser_token(),b);return g.alignment_size=this._options.wrap_attributes_indent_size,g.is_end_tag=g.is_end_tag||T(g.tag_check,this._options.void_elements),g.is_empty_element=g.tag_complete||g.is_start_tag&&g.is_end_tag,g.is_unformatted=!g.tag_complete&&T(g.tag_check,this._options.unformatted),g.is_content_unformatted=!g.is_empty_element&&T(g.tag_check,this._options.content_unformatted),g.is_inline_element=T(g.tag_name,this._options.inline)||this._options.inline_custom_elements&&g.tag_name.includes("-")||g.tag_start_char==="{",g},S.prototype._set_tag_position=function(b,g,_,N,A){if(_.is_empty_element||(_.is_end_tag?_.start_tag_token=this._tag_stack.try_pop(_.tag_name):(this._do_optional_end_element(_)&&(_.is_inline_element||b.print_newline(!1)),this._tag_stack.record_tag(_),(_.tag_name==="script"||_.tag_name==="style")&&!(_.is_unformatted||_.is_content_unformatted)&&(_.custom_beautifier_name=p(_.tag_check,g)))),T(_.tag_check,this._options.extra_liners)&&(b.print_newline(!1),b._output.just_added_blankline()||b.print_newline(!0)),_.is_empty_element){if(_.tag_start_char==="{"&&_.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),_.indent_content=!0;var x=b.current_line_has_match(/{{#if/);x||b.print_newline(!1)}_.tag_name==="!--"&&A.type===c.TAG_CLOSE&&N.is_end_tag&&_.text.indexOf(`
66
- `)===-1||(_.is_inline_element||_.is_unformatted||b.print_newline(!1),this._calcluate_parent_multiline(b,_))}else if(_.is_end_tag){var R=!1;R=_.start_tag_token&&_.start_tag_token.multiline_content,R=R||!_.is_inline_element&&!(N.is_inline_element||N.is_unformatted)&&!(A.type===c.TAG_CLOSE&&_.start_tag_token===N)&&A.type!=="TK_CONTENT",(_.is_content_unformatted||_.is_unformatted)&&(R=!1),R&&b.print_newline(!1)}else _.indent_content=!_.custom_beautifier_name,_.tag_start_char==="<"&&(_.tag_name==="html"?_.indent_content=this._options.indent_inner_html:_.tag_name==="head"?_.indent_content=this._options.indent_head_inner_html:_.tag_name==="body"&&(_.indent_content=this._options.indent_body_inner_html)),!(_.is_inline_element||_.is_unformatted)&&(A.type!=="TK_CONTENT"||_.is_content_unformatted)&&b.print_newline(!1),this._calcluate_parent_multiline(b,_)},S.prototype._calcluate_parent_multiline=function(b,g){g.parent&&b._output.just_added_newline()&&!((g.is_inline_element||g.is_unformatted)&&g.parent.is_inline_element)&&(g.parent.multiline_content=!0)};var H=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","menu","nav","ol","p","pre","section","table","ul"],W=["a","audio","del","ins","map","noscript","video"];S.prototype._do_optional_end_element=function(b){var g=null;if(!(b.is_empty_element||!b.is_start_tag||!b.parent)){if(b.tag_name==="body")g=g||this._tag_stack.try_pop("head");else if(b.tag_name==="li")g=g||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if(b.tag_name==="dd"||b.tag_name==="dt")g=g||this._tag_stack.try_pop("dt",["dl"]),g=g||this._tag_stack.try_pop("dd",["dl"]);else if(b.parent.tag_name==="p"&&H.indexOf(b.tag_name)!==-1){var _=b.parent.parent;(!_||W.indexOf(_.tag_name)===-1)&&(g=g||this._tag_stack.try_pop("p"))}else b.tag_name==="rp"||b.tag_name==="rt"?(g=g||this._tag_stack.try_pop("rt",["ruby","rtc"]),g=g||this._tag_stack.try_pop("rp",["ruby","rtc"])):b.tag_name==="optgroup"?g=g||this._tag_stack.try_pop("optgroup",["select"]):b.tag_name==="option"?g=g||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):b.tag_name==="colgroup"?g=g||this._tag_stack.try_pop("caption",["table"]):b.tag_name==="thead"?(g=g||this._tag_stack.try_pop("caption",["table"]),g=g||this._tag_stack.try_pop("colgroup",["table"])):b.tag_name==="tbody"||b.tag_name==="tfoot"?(g=g||this._tag_stack.try_pop("caption",["table"]),g=g||this._tag_stack.try_pop("colgroup",["table"]),g=g||this._tag_stack.try_pop("thead",["table"]),g=g||this._tag_stack.try_pop("tbody",["table"])):b.tag_name==="tr"?(g=g||this._tag_stack.try_pop("caption",["table"]),g=g||this._tag_stack.try_pop("colgroup",["table"]),g=g||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(b.tag_name==="th"||b.tag_name==="td")&&(g=g||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),g=g||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return b.parent=this._tag_stack.get_parser_token(),g}},r.exports.Beautifier=S}),(function(r,s,a){var l=a(6).Options;function o(u){l.call(this,u,"html"),this.templating.length===1&&this.templating[0]==="auto"&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_min_attrs=this._get_number("wrap_attributes_min_attrs",2),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.inline_custom_elements=this._get_boolean("inline_custom_elements",!0),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}o.prototype=new l,r.exports.Options=o}),(function(r,s,a){var l=a(9).Tokenizer,o=a(9).TOKEN,u=a(13).Directives,c=a(14).TemplatablePattern,d=a(12).Pattern,m={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",CONTROL_FLOW_OPEN:"TK_CONTROL_FLOW_OPEN",CONTROL_FLOW_CLOSE:"TK_CONTROL_FLOW_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:o.START,RAW:o.RAW,EOF:o.EOF},f=new u(/<\!--/,/-->/),w=function(p,T){l.call(this,p,T),this._current_tag_name="";var y=new c(this._input).read_options(this._options),v=new d(this._input);if(this.__patterns={word:y.until(/[\n\r\t <]/),word_control_flow_close_excluded:y.until(/[\n\r\t <}]/),single_quote:y.until_after(/'/),double_quote:y.until_after(/"/),attribute:y.until(/[\n\r\t =>]|\/>/),element_name:y.until(/[\n\r\t >\/]/),angular_control_flow_start:v.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:v.starting_with(/{{!--/).until_after(/--}}/),handlebars:v.starting_with(/{{/).until_after(/}}/),handlebars_open:v.until(/[\n\r\t }]/),handlebars_raw_close:v.until(/}}/),comment:v.starting_with(/<!--/).until_after(/-->/),cdata:v.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:v.starting_with(/<!\[/).until_after(/]>/),processing:v.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars"),this.__patterns.word_control_flow_close_excluded=this.__patterns.word_control_flow_close_excluded.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var S=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=v.matching(S).until_after(S)}};w.prototype=new l,w.prototype._is_comment=function(p){return!1},w.prototype._is_opening=function(p){return p.type===m.TAG_OPEN||p.type===m.CONTROL_FLOW_OPEN},w.prototype._is_closing=function(p,T){return p.type===m.TAG_CLOSE&&T&&((p.text===">"||p.text==="/>")&&T.text[0]==="<"||p.text==="}}"&&T.text[0]==="{"&&T.text[1]==="{")||p.type===m.CONTROL_FLOW_CLOSE&&p.text==="}"&&T.text.endsWith("{")},w.prototype._reset=function(){this._current_tag_name=""},w.prototype._get_next_token=function(p,T){var y=null;this._readWhitespace();var v=this._input.peek();return v===null?this._create_token(m.EOF,""):(y=y||this._read_open_handlebars(v,T),y=y||this._read_attribute(v,p,T),y=y||this._read_close(v,T),y=y||this._read_control_flows(v,T),y=y||this._read_raw_content(v,p,T),y=y||this._read_content_word(v,T),y=y||this._read_comment_or_cdata(v),y=y||this._read_processing(v),y=y||this._read_open(v,T),y=y||this._create_token(m.UNKNOWN,this._input.next()),y)},w.prototype._read_comment_or_cdata=function(p){var T=null,y=null,v=null;if(p==="<"){var S=this._input.peek(1);S==="!"&&(y=this.__patterns.comment.read(),y?(v=f.get_directives(y),v&&v.ignore==="start"&&(y+=f.readIgnored(this._input))):y=this.__patterns.cdata.read()),y&&(T=this._create_token(m.COMMENT,y),T.directives=v)}return T},w.prototype._read_processing=function(p){var T=null,y=null,v=null;if(p==="<"){var S=this._input.peek(1);(S==="!"||S==="?")&&(y=this.__patterns.conditional_comment.read(),y=y||this.__patterns.processing.read()),y&&(T=this._create_token(m.COMMENT,y),T.directives=v)}return T},w.prototype._read_open=function(p,T){var y=null,v=null;return(!T||T.type===m.CONTROL_FLOW_OPEN)&&p==="<"&&(y=this._input.next(),this._input.peek()==="/"&&(y+=this._input.next()),y+=this.__patterns.element_name.read(),v=this._create_token(m.TAG_OPEN,y)),v},w.prototype._read_open_handlebars=function(p,T){var y=null,v=null;return(!T||T.type===m.CONTROL_FLOW_OPEN)&&this._options.indent_handlebars&&p==="{"&&this._input.peek(1)==="{"&&(this._input.peek(2)==="!"?(y=this.__patterns.handlebars_comment.read(),y=y||this.__patterns.handlebars.read(),v=this._create_token(m.COMMENT,y)):(y=this.__patterns.handlebars_open.read(),v=this._create_token(m.TAG_OPEN,y))),v},w.prototype._read_control_flows=function(p,T){var y="",v=null;if(!this._options.templating.includes("angular")||!this._options.indent_handlebars)return v;if(p==="@"){if(y=this.__patterns.angular_control_flow_start.read(),y==="")return v;for(var S=y.endsWith("(")?1:0,I=0;!(y.endsWith("{")&&S===I);){var H=this._input.next();if(H===null)break;H==="("?S++:H===")"&&I++,y+=H}v=this._create_token(m.CONTROL_FLOW_OPEN,y)}else p==="}"&&T&&T.type===m.CONTROL_FLOW_OPEN&&(y=this._input.next(),v=this._create_token(m.CONTROL_FLOW_CLOSE,y));return v},w.prototype._read_close=function(p,T){var y=null,v=null;return T&&T.type===m.TAG_OPEN&&(T.text[0]==="<"&&(p===">"||p==="/"&&this._input.peek(1)===">")?(y=this._input.next(),p==="/"&&(y+=this._input.next()),v=this._create_token(m.TAG_CLOSE,y)):T.text[0]==="{"&&p==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),v=this._create_token(m.TAG_CLOSE,"}}"))),v},w.prototype._read_attribute=function(p,T,y){var v=null,S="";if(y&&y.text[0]==="<")if(p==="=")v=this._create_token(m.EQUALS,this._input.next());else if(p==='"'||p==="'"){var I=this._input.next();p==='"'?I+=this.__patterns.double_quote.read():I+=this.__patterns.single_quote.read(),v=this._create_token(m.VALUE,I)}else S=this.__patterns.attribute.read(),S&&(T.type===m.EQUALS?v=this._create_token(m.VALUE,S):v=this._create_token(m.ATTRIBUTE,S));return v},w.prototype._is_content_unformatted=function(p){return this._options.void_elements.indexOf(p)===-1&&(this._options.content_unformatted.indexOf(p)!==-1||this._options.unformatted.indexOf(p)!==-1)},w.prototype._read_raw_content=function(p,T,y){var v="";if(y&&y.text[0]==="{")v=this.__patterns.handlebars_raw_close.read();else if(T.type===m.TAG_CLOSE&&T.opened.text[0]==="<"&&T.text[0]!=="/"){var S=T.opened.text.substr(1).toLowerCase();if(S==="script"||S==="style"){var I=this._read_comment_or_cdata(p);if(I)return I.type=m.TEXT,I;v=this._input.readUntil(new RegExp("</"+S+"[\\n\\r\\t ]*?>","ig"))}else this._is_content_unformatted(S)&&(v=this._input.readUntil(new RegExp("</"+S+"[\\n\\r\\t ]*?>","ig")))}return v?this._create_token(m.TEXT,v):null},w.prototype._read_content_word=function(p,T){var y="";if(this._options.unformatted_content_delimiter&&p===this._options.unformatted_content_delimiter[0]&&(y=this.__patterns.unformatted_content_delimiter.read()),y||(y=T&&T.type===m.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),y)return this._create_token(m.TEXT,y)},r.exports.Tokenizer=w,r.exports.TOKEN=m})],e={};function n(r){var s=e[r];if(s!==void 0)return s.exports;var a=e[r]={exports:{}};return t[r](a,a.exports,n),a.exports}var i=n(18);Qa=i})();function Nc(t,e){return Qa(t,e,Dc,Mc)}function Ic(t,e,n){let i=t.getText(),r=!0,s=0;const a=n.tabSize||4;if(e){let u=t.offsetAt(e.start),c=u;for(;c>0&&Za(i,c-1);)c--;c===0||Ya(i,c-1)?u=c:c<u&&(u=c+1);let d=t.offsetAt(e.end),m=d;for(;m<i.length&&Za(i,m);)m++;(m===i.length||Ya(i,m))&&(d=m),e=Q.create(t.positionAt(u),t.positionAt(d));const f=i.substring(0,u);if(new RegExp(/.*[<][^>]*$/).test(f))return i=i.substring(u,d),[{range:e,newText:i}];if(r=d===i.length,i=i.substring(u,d),u!==0){const w=t.offsetAt(se.create(e.start.line,0));s=Uc(t.getText(),w,n)}}else e=Q.create(se.create(0,0),t.positionAt(i.length));const l={indent_size:a,indent_char:n.insertSpaces?" ":" ",indent_empty_lines:ve(n,"indentEmptyLines",!1),wrap_line_length:ve(n,"wrapLineLength",120),unformatted:Mi(n,"unformatted",void 0),content_unformatted:Mi(n,"contentUnformatted",void 0),indent_inner_html:ve(n,"indentInnerHtml",!1),preserve_newlines:ve(n,"preserveNewLines",!0),max_preserve_newlines:ve(n,"maxPreserveNewLines",32786),indent_handlebars:ve(n,"indentHandlebars",!1),end_with_newline:r&&ve(n,"endWithNewline",!1),extra_liners:Mi(n,"extraLiners",void 0),wrap_attributes:ve(n,"wrapAttributes","auto"),wrap_attributes_indent_size:ve(n,"wrapAttributesIndentSize",void 0),eol:`
65
+ `+k:A=L+k),b.print_newline(!1),A&&(g.text=A,g.whitespace_before="",g.newlines=0,b.add_raw_token(g),b.print_newline(!0))}},S.prototype._handle_tag_open=function(b,g,_,N,A){var x=this._get_tag_open_token(g);if((_.is_unformatted||_.is_content_unformatted)&&!_.is_empty_element&&g.type===h.TAG_OPEN&&!x.is_start_tag?(b.add_raw_token(g),x.start_tag_token=this._tag_stack.try_pop(x.tag_name)):(b.traverse_whitespace(g),this._set_tag_position(b,g,x,_,N),x.is_inline_element||b.set_wrap_point(),b.print_token(g)),x.is_start_tag&&this._is_wrap_attributes_force){var R=0,L;do L=A.peek(R),L.type===h.ATTRIBUTE&&(x.attr_count+=1),R+=1;while(L.type!==h.EOF&&L.type!==h.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(x.alignment_size=g.text.length+1),!x.tag_complete&&!x.is_unformatted&&(b.alignment_size=x.alignment_size),x};var I=function(b,g){if(this.parent=b||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",!g)this.tag_complete=!0;else{var _;this.tag_start_char=g.text[0],this.text=g.text,this.tag_start_char==="<"?(_=g.text.match(/^<([^\s>]*)/),this.tag_check=_?_[1]:""):(_=g.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=_?_[1]:"",(g.text.startsWith("{{#>")||g.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&g.next!==null?this.tag_check=g.next.text.split(" ")[0]:this.tag_check=g.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),g.type===h.COMMENT&&(this.tag_complete=!0),this.is_start_tag=this.tag_check.charAt(0)!=="/",this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||g.closed&&g.closed.text==="/>";var N=2;this.tag_start_char==="{"&&this.text.length>=3&&this.text.charAt(2)==="~"&&(N=3),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(N)))}};S.prototype._get_tag_open_token=function(b){var g=new I(this._tag_stack.get_parser_token(),b);return g.alignment_size=this._options.wrap_attributes_indent_size,g.is_end_tag=g.is_end_tag||T(g.tag_check,this._options.void_elements),g.is_empty_element=g.tag_complete||g.is_start_tag&&g.is_end_tag,g.is_unformatted=!g.tag_complete&&T(g.tag_check,this._options.unformatted),g.is_content_unformatted=!g.is_empty_element&&T(g.tag_check,this._options.content_unformatted),g.is_inline_element=T(g.tag_name,this._options.inline)||this._options.inline_custom_elements&&g.tag_name.includes("-")||g.tag_start_char==="{",g},S.prototype._set_tag_position=function(b,g,_,N,A){if(_.is_empty_element||(_.is_end_tag?_.start_tag_token=this._tag_stack.try_pop(_.tag_name):(this._do_optional_end_element(_)&&(_.is_inline_element||b.print_newline(!1)),this._tag_stack.record_tag(_),(_.tag_name==="script"||_.tag_name==="style")&&!(_.is_unformatted||_.is_content_unformatted)&&(_.custom_beautifier_name=p(_.tag_check,g)))),T(_.tag_check,this._options.extra_liners)&&(b.print_newline(!1),b._output.just_added_blankline()||b.print_newline(!0)),_.is_empty_element){if(_.tag_start_char==="{"&&_.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),_.indent_content=!0;var x=b.current_line_has_match(/{{#if/);x||b.print_newline(!1)}_.tag_name==="!--"&&A.type===h.TAG_CLOSE&&N.is_end_tag&&_.text.indexOf(`
66
+ `)===-1||(_.is_inline_element||_.is_unformatted||b.print_newline(!1),this._calcluate_parent_multiline(b,_))}else if(_.is_end_tag){var R=!1;R=_.start_tag_token&&_.start_tag_token.multiline_content,R=R||!_.is_inline_element&&!(N.is_inline_element||N.is_unformatted)&&!(A.type===h.TAG_CLOSE&&_.start_tag_token===N)&&A.type!=="TK_CONTENT",(_.is_content_unformatted||_.is_unformatted)&&(R=!1),R&&b.print_newline(!1)}else _.indent_content=!_.custom_beautifier_name,_.tag_start_char==="<"&&(_.tag_name==="html"?_.indent_content=this._options.indent_inner_html:_.tag_name==="head"?_.indent_content=this._options.indent_head_inner_html:_.tag_name==="body"&&(_.indent_content=this._options.indent_body_inner_html)),!(_.is_inline_element||_.is_unformatted)&&(A.type!=="TK_CONTENT"||_.is_content_unformatted)&&b.print_newline(!1),this._calcluate_parent_multiline(b,_)},S.prototype._calcluate_parent_multiline=function(b,g){g.parent&&b._output.just_added_newline()&&!((g.is_inline_element||g.is_unformatted)&&g.parent.is_inline_element)&&(g.parent.multiline_content=!0)};var H=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","menu","nav","ol","p","pre","section","table","ul"],W=["a","audio","del","ins","map","noscript","video"];S.prototype._do_optional_end_element=function(b){var g=null;if(!(b.is_empty_element||!b.is_start_tag||!b.parent)){if(b.tag_name==="body")g=g||this._tag_stack.try_pop("head");else if(b.tag_name==="li")g=g||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if(b.tag_name==="dd"||b.tag_name==="dt")g=g||this._tag_stack.try_pop("dt",["dl"]),g=g||this._tag_stack.try_pop("dd",["dl"]);else if(b.parent.tag_name==="p"&&H.indexOf(b.tag_name)!==-1){var _=b.parent.parent;(!_||W.indexOf(_.tag_name)===-1)&&(g=g||this._tag_stack.try_pop("p"))}else b.tag_name==="rp"||b.tag_name==="rt"?(g=g||this._tag_stack.try_pop("rt",["ruby","rtc"]),g=g||this._tag_stack.try_pop("rp",["ruby","rtc"])):b.tag_name==="optgroup"?g=g||this._tag_stack.try_pop("optgroup",["select"]):b.tag_name==="option"?g=g||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):b.tag_name==="colgroup"?g=g||this._tag_stack.try_pop("caption",["table"]):b.tag_name==="thead"?(g=g||this._tag_stack.try_pop("caption",["table"]),g=g||this._tag_stack.try_pop("colgroup",["table"])):b.tag_name==="tbody"||b.tag_name==="tfoot"?(g=g||this._tag_stack.try_pop("caption",["table"]),g=g||this._tag_stack.try_pop("colgroup",["table"]),g=g||this._tag_stack.try_pop("thead",["table"]),g=g||this._tag_stack.try_pop("tbody",["table"])):b.tag_name==="tr"?(g=g||this._tag_stack.try_pop("caption",["table"]),g=g||this._tag_stack.try_pop("colgroup",["table"]),g=g||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(b.tag_name==="th"||b.tag_name==="td")&&(g=g||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),g=g||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return b.parent=this._tag_stack.get_parser_token(),g}},r.exports.Beautifier=S}),(function(r,s,a){var l=a(6).Options;function o(u){l.call(this,u,"html"),this.templating.length===1&&this.templating[0]==="auto"&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_min_attrs=this._get_number("wrap_attributes_min_attrs",2),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.inline_custom_elements=this._get_boolean("inline_custom_elements",!0),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}o.prototype=new l,r.exports.Options=o}),(function(r,s,a){var l=a(9).Tokenizer,o=a(9).TOKEN,u=a(13).Directives,h=a(14).TemplatablePattern,d=a(12).Pattern,m={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",CONTROL_FLOW_OPEN:"TK_CONTROL_FLOW_OPEN",CONTROL_FLOW_CLOSE:"TK_CONTROL_FLOW_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:o.START,RAW:o.RAW,EOF:o.EOF},f=new u(/<\!--/,/-->/),w=function(p,T){l.call(this,p,T),this._current_tag_name="";var y=new h(this._input).read_options(this._options),v=new d(this._input);if(this.__patterns={word:y.until(/[\n\r\t <]/),word_control_flow_close_excluded:y.until(/[\n\r\t <}]/),single_quote:y.until_after(/'/),double_quote:y.until_after(/"/),attribute:y.until(/[\n\r\t =>]|\/>/),element_name:y.until(/[\n\r\t >\/]/),angular_control_flow_start:v.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:v.starting_with(/{{!--/).until_after(/--}}/),handlebars:v.starting_with(/{{/).until_after(/}}/),handlebars_open:v.until(/[\n\r\t }]/),handlebars_raw_close:v.until(/}}/),comment:v.starting_with(/<!--/).until_after(/-->/),cdata:v.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:v.starting_with(/<!\[/).until_after(/]>/),processing:v.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars"),this.__patterns.word_control_flow_close_excluded=this.__patterns.word_control_flow_close_excluded.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var S=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=v.matching(S).until_after(S)}};w.prototype=new l,w.prototype._is_comment=function(p){return!1},w.prototype._is_opening=function(p){return p.type===m.TAG_OPEN||p.type===m.CONTROL_FLOW_OPEN},w.prototype._is_closing=function(p,T){return p.type===m.TAG_CLOSE&&T&&((p.text===">"||p.text==="/>")&&T.text[0]==="<"||p.text==="}}"&&T.text[0]==="{"&&T.text[1]==="{")||p.type===m.CONTROL_FLOW_CLOSE&&p.text==="}"&&T.text.endsWith("{")},w.prototype._reset=function(){this._current_tag_name=""},w.prototype._get_next_token=function(p,T){var y=null;this._readWhitespace();var v=this._input.peek();return v===null?this._create_token(m.EOF,""):(y=y||this._read_open_handlebars(v,T),y=y||this._read_attribute(v,p,T),y=y||this._read_close(v,T),y=y||this._read_control_flows(v,T),y=y||this._read_raw_content(v,p,T),y=y||this._read_content_word(v,T),y=y||this._read_comment_or_cdata(v),y=y||this._read_processing(v),y=y||this._read_open(v,T),y=y||this._create_token(m.UNKNOWN,this._input.next()),y)},w.prototype._read_comment_or_cdata=function(p){var T=null,y=null,v=null;if(p==="<"){var S=this._input.peek(1);S==="!"&&(y=this.__patterns.comment.read(),y?(v=f.get_directives(y),v&&v.ignore==="start"&&(y+=f.readIgnored(this._input))):y=this.__patterns.cdata.read()),y&&(T=this._create_token(m.COMMENT,y),T.directives=v)}return T},w.prototype._read_processing=function(p){var T=null,y=null,v=null;if(p==="<"){var S=this._input.peek(1);(S==="!"||S==="?")&&(y=this.__patterns.conditional_comment.read(),y=y||this.__patterns.processing.read()),y&&(T=this._create_token(m.COMMENT,y),T.directives=v)}return T},w.prototype._read_open=function(p,T){var y=null,v=null;return(!T||T.type===m.CONTROL_FLOW_OPEN)&&p==="<"&&(y=this._input.next(),this._input.peek()==="/"&&(y+=this._input.next()),y+=this.__patterns.element_name.read(),v=this._create_token(m.TAG_OPEN,y)),v},w.prototype._read_open_handlebars=function(p,T){var y=null,v=null;return(!T||T.type===m.CONTROL_FLOW_OPEN)&&this._options.indent_handlebars&&p==="{"&&this._input.peek(1)==="{"&&(this._input.peek(2)==="!"?(y=this.__patterns.handlebars_comment.read(),y=y||this.__patterns.handlebars.read(),v=this._create_token(m.COMMENT,y)):(y=this.__patterns.handlebars_open.read(),v=this._create_token(m.TAG_OPEN,y))),v},w.prototype._read_control_flows=function(p,T){var y="",v=null;if(!this._options.templating.includes("angular")||!this._options.indent_handlebars)return v;if(p==="@"){if(y=this.__patterns.angular_control_flow_start.read(),y==="")return v;for(var S=y.endsWith("(")?1:0,I=0;!(y.endsWith("{")&&S===I);){var H=this._input.next();if(H===null)break;H==="("?S++:H===")"&&I++,y+=H}v=this._create_token(m.CONTROL_FLOW_OPEN,y)}else p==="}"&&T&&T.type===m.CONTROL_FLOW_OPEN&&(y=this._input.next(),v=this._create_token(m.CONTROL_FLOW_CLOSE,y));return v},w.prototype._read_close=function(p,T){var y=null,v=null;return T&&T.type===m.TAG_OPEN&&(T.text[0]==="<"&&(p===">"||p==="/"&&this._input.peek(1)===">")?(y=this._input.next(),p==="/"&&(y+=this._input.next()),v=this._create_token(m.TAG_CLOSE,y)):T.text[0]==="{"&&p==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),v=this._create_token(m.TAG_CLOSE,"}}"))),v},w.prototype._read_attribute=function(p,T,y){var v=null,S="";if(y&&y.text[0]==="<")if(p==="=")v=this._create_token(m.EQUALS,this._input.next());else if(p==='"'||p==="'"){var I=this._input.next();p==='"'?I+=this.__patterns.double_quote.read():I+=this.__patterns.single_quote.read(),v=this._create_token(m.VALUE,I)}else S=this.__patterns.attribute.read(),S&&(T.type===m.EQUALS?v=this._create_token(m.VALUE,S):v=this._create_token(m.ATTRIBUTE,S));return v},w.prototype._is_content_unformatted=function(p){return this._options.void_elements.indexOf(p)===-1&&(this._options.content_unformatted.indexOf(p)!==-1||this._options.unformatted.indexOf(p)!==-1)},w.prototype._read_raw_content=function(p,T,y){var v="";if(y&&y.text[0]==="{")v=this.__patterns.handlebars_raw_close.read();else if(T.type===m.TAG_CLOSE&&T.opened.text[0]==="<"&&T.text[0]!=="/"){var S=T.opened.text.substr(1).toLowerCase();if(S==="script"||S==="style"){var I=this._read_comment_or_cdata(p);if(I)return I.type=m.TEXT,I;v=this._input.readUntil(new RegExp("</"+S+"[\\n\\r\\t ]*?>","ig"))}else this._is_content_unformatted(S)&&(v=this._input.readUntil(new RegExp("</"+S+"[\\n\\r\\t ]*?>","ig")))}return v?this._create_token(m.TEXT,v):null},w.prototype._read_content_word=function(p,T){var y="";if(this._options.unformatted_content_delimiter&&p===this._options.unformatted_content_delimiter[0]&&(y=this.__patterns.unformatted_content_delimiter.read()),y||(y=T&&T.type===m.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),y)return this._create_token(m.TEXT,y)},r.exports.Tokenizer=w,r.exports.TOKEN=m})],e={};function n(r){var s=e[r];if(s!==void 0)return s.exports;var a=e[r]={exports:{}};return t[r](a,a.exports,n),a.exports}var i=n(18);Qa=i})();function Nc(t,e){return Qa(t,e,Dc,Mc)}function Ic(t,e,n){let i=t.getText(),r=!0,s=0;const a=n.tabSize||4;if(e){let u=t.offsetAt(e.start),h=u;for(;h>0&&Za(i,h-1);)h--;h===0||Ya(i,h-1)?u=h:h<u&&(u=h+1);let d=t.offsetAt(e.end),m=d;for(;m<i.length&&Za(i,m);)m++;(m===i.length||Ya(i,m))&&(d=m),e=Q.create(t.positionAt(u),t.positionAt(d));const f=i.substring(0,u);if(new RegExp(/.*[<][^>]*$/).test(f))return i=i.substring(u,d),[{range:e,newText:i}];if(r=d===i.length,i=i.substring(u,d),u!==0){const w=t.offsetAt(se.create(e.start.line,0));s=Uc(t.getText(),w,n)}}else e=Q.create(se.create(0,0),t.positionAt(i.length));const l={indent_size:a,indent_char:n.insertSpaces?" ":" ",indent_empty_lines:ve(n,"indentEmptyLines",!1),wrap_line_length:ve(n,"wrapLineLength",120),unformatted:Mi(n,"unformatted",void 0),content_unformatted:Mi(n,"contentUnformatted",void 0),indent_inner_html:ve(n,"indentInnerHtml",!1),preserve_newlines:ve(n,"preserveNewLines",!0),max_preserve_newlines:ve(n,"maxPreserveNewLines",32786),indent_handlebars:ve(n,"indentHandlebars",!1),end_with_newline:r&&ve(n,"endWithNewline",!1),extra_liners:Mi(n,"extraLiners",void 0),wrap_attributes:ve(n,"wrapAttributes","auto"),wrap_attributes_indent_size:ve(n,"wrapAttributesIndentSize",void 0),eol:`
67
67
  `,indent_scripts:ve(n,"indentScripts","normal"),templating:Hc(n,"all"),unformatted_content_delimiter:ve(n,"unformattedContentDelimiter","")};let o=Nc(zc(i),l);if(s>0){const u=n.insertSpaces?$a(" ",a*s):$a(" ",s);o=o.split(`
68
68
  `).join(`
69
69
  `+u),e.start.character===0&&(o=u+o)}return[{range:e,newText:o}]}function zc(t){return t.replace(/^\s+/,"")}function ve(t,e,n){if(t&&t.hasOwnProperty(e)){const i=t[e];if(i!==null)return i}return n}function Mi(t,e,n){const i=ve(t,e,null);return typeof i=="string"?i.length>0?i.split(",").map(r=>r.trim().toLowerCase()):[]:n}function Hc(t,e){const n=ve(t,"templating",e);return n===!0?["auto"]:n===!1||n===e||Array.isArray(n)===!1?["none"]:n}function Uc(t,e,n){let i=e,r=0;const s=n.tabSize||4;for(;i<t.length;){const a=t.charAt(i);if(a===" ")r++;else if(a===" ")r+=s;else break;i++}return Math.floor(r/s)}function Ya(t,e){return`\r
70
- `.indexOf(t.charAt(e))!==-1}function Za(t,e){return" ".indexOf(t.charAt(e))!==-1}var Ka;(()=>{var t={470:r=>{function s(o){if(typeof o!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(o))}function a(o,u){for(var c,d="",m=0,f=-1,w=0,p=0;p<=o.length;++p){if(p<o.length)c=o.charCodeAt(p);else{if(c===47)break;c=47}if(c===47){if(!(f===p-1||w===1))if(f!==p-1&&w===2){if(d.length<2||m!==2||d.charCodeAt(d.length-1)!==46||d.charCodeAt(d.length-2)!==46){if(d.length>2){var T=d.lastIndexOf("/");if(T!==d.length-1){T===-1?(d="",m=0):m=(d=d.slice(0,T)).length-1-d.lastIndexOf("/"),f=p,w=0;continue}}else if(d.length===2||d.length===1){d="",m=0,f=p,w=0;continue}}u&&(d.length>0?d+="/..":d="..",m=2)}else d.length>0?d+="/"+o.slice(f+1,p):d=o.slice(f+1,p),m=p-f-1;f=p,w=0}else c===46&&w!==-1?++w:w=-1}return d}var l={resolve:function(){for(var o,u="",c=!1,d=arguments.length-1;d>=-1&&!c;d--){var m;d>=0?m=arguments[d]:(o===void 0&&(o=process.cwd()),m=o),s(m),m.length!==0&&(u=m+"/"+u,c=m.charCodeAt(0)===47)}return u=a(u,!c),c?u.length>0?"/"+u:"/":u.length>0?u:"."},normalize:function(o){if(s(o),o.length===0)return".";var u=o.charCodeAt(0)===47,c=o.charCodeAt(o.length-1)===47;return(o=a(o,!u)).length!==0||u||(o="."),o.length>0&&c&&(o+="/"),u?"/"+o:o},isAbsolute:function(o){return s(o),o.length>0&&o.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var o,u=0;u<arguments.length;++u){var c=arguments[u];s(c),c.length>0&&(o===void 0?o=c:o+="/"+c)}return o===void 0?".":l.normalize(o)},relative:function(o,u){if(s(o),s(u),o===u||(o=l.resolve(o))===(u=l.resolve(u)))return"";for(var c=1;c<o.length&&o.charCodeAt(c)===47;++c);for(var d=o.length,m=d-c,f=1;f<u.length&&u.charCodeAt(f)===47;++f);for(var w=u.length-f,p=m<w?m:w,T=-1,y=0;y<=p;++y){if(y===p){if(w>p){if(u.charCodeAt(f+y)===47)return u.slice(f+y+1);if(y===0)return u.slice(f+y)}else m>p&&(o.charCodeAt(c+y)===47?T=y:y===0&&(T=0));break}var v=o.charCodeAt(c+y);if(v!==u.charCodeAt(f+y))break;v===47&&(T=y)}var S="";for(y=c+T+1;y<=d;++y)y!==d&&o.charCodeAt(y)!==47||(S.length===0?S+="..":S+="/..");return S.length>0?S+u.slice(f+T):(f+=T,u.charCodeAt(f)===47&&++f,u.slice(f))},_makeLong:function(o){return o},dirname:function(o){if(s(o),o.length===0)return".";for(var u=o.charCodeAt(0),c=u===47,d=-1,m=!0,f=o.length-1;f>=1;--f)if((u=o.charCodeAt(f))===47){if(!m){d=f;break}}else m=!1;return d===-1?c?"/":".":c&&d===1?"//":o.slice(0,d)},basename:function(o,u){if(u!==void 0&&typeof u!="string")throw new TypeError('"ext" argument must be a string');s(o);var c,d=0,m=-1,f=!0;if(u!==void 0&&u.length>0&&u.length<=o.length){if(u.length===o.length&&u===o)return"";var w=u.length-1,p=-1;for(c=o.length-1;c>=0;--c){var T=o.charCodeAt(c);if(T===47){if(!f){d=c+1;break}}else p===-1&&(f=!1,p=c+1),w>=0&&(T===u.charCodeAt(w)?--w==-1&&(m=c):(w=-1,m=p))}return d===m?m=p:m===-1&&(m=o.length),o.slice(d,m)}for(c=o.length-1;c>=0;--c)if(o.charCodeAt(c)===47){if(!f){d=c+1;break}}else m===-1&&(f=!1,m=c+1);return m===-1?"":o.slice(d,m)},extname:function(o){s(o);for(var u=-1,c=0,d=-1,m=!0,f=0,w=o.length-1;w>=0;--w){var p=o.charCodeAt(w);if(p!==47)d===-1&&(m=!1,d=w+1),p===46?u===-1?u=w:f!==1&&(f=1):u!==-1&&(f=-1);else if(!m){c=w+1;break}}return u===-1||d===-1||f===0||f===1&&u===d-1&&u===c+1?"":o.slice(u,d)},format:function(o){if(o===null||typeof o!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof o);return(function(u,c){var d=c.dir||c.root,m=c.base||(c.name||"")+(c.ext||"");return d?d===c.root?d+m:d+"/"+m:m})(0,o)},parse:function(o){s(o);var u={root:"",dir:"",base:"",ext:"",name:""};if(o.length===0)return u;var c,d=o.charCodeAt(0),m=d===47;m?(u.root="/",c=1):c=0;for(var f=-1,w=0,p=-1,T=!0,y=o.length-1,v=0;y>=c;--y)if((d=o.charCodeAt(y))!==47)p===-1&&(T=!1,p=y+1),d===46?f===-1?f=y:v!==1&&(v=1):f!==-1&&(v=-1);else if(!T){w=y+1;break}return f===-1||p===-1||v===0||v===1&&f===p-1&&f===w+1?p!==-1&&(u.base=u.name=w===0&&m?o.slice(1,p):o.slice(w,p)):(w===0&&m?(u.name=o.slice(1,f),u.base=o.slice(1,p)):(u.name=o.slice(w,f),u.base=o.slice(w,p)),u.ext=o.slice(f,p)),w>0?u.dir=o.slice(0,w-1):m&&(u.dir="/"),u},sep:"/",delimiter:":",win32:null,posix:null};l.posix=l,r.exports=l}},e={};function n(r){var s=e[r];if(s!==void 0)return s.exports;var a=e[r]={exports:{}};return t[r](a,a.exports,n),a.exports}n.d=(r,s)=>{for(var a in s)n.o(s,a)&&!n.o(r,a)&&Object.defineProperty(r,a,{enumerable:!0,get:s[a]})},n.o=(r,s)=>Object.prototype.hasOwnProperty.call(r,s),n.r=r=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})};var i={};(()=>{let r;n.r(i),n.d(i,{URI:()=>m,Utils:()=>N}),typeof process=="object"?r=process.platform==="win32":typeof navigator=="object"&&(r=navigator.userAgent.indexOf("Windows")>=0);const s=/^\w[\w\d+.-]*$/,a=/^\//,l=/^\/\//;function o(A,x){if(!A.scheme&&x)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${A.authority}", path: "${A.path}", query: "${A.query}", fragment: "${A.fragment}"}`);if(A.scheme&&!s.test(A.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(A.path){if(A.authority){if(!a.test(A.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(l.test(A.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}const u="",c="/",d=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class m{static isUri(x){return x instanceof m||!!x&&typeof x.authority=="string"&&typeof x.fragment=="string"&&typeof x.path=="string"&&typeof x.query=="string"&&typeof x.scheme=="string"&&typeof x.fsPath=="string"&&typeof x.with=="function"&&typeof x.toString=="function"}scheme;authority;path;query;fragment;constructor(x,R,L,k,E,M=!1){typeof x=="object"?(this.scheme=x.scheme||u,this.authority=x.authority||u,this.path=x.path||u,this.query=x.query||u,this.fragment=x.fragment||u):(this.scheme=(function(U,F){return U||F?U:"file"})(x,M),this.authority=R||u,this.path=(function(U,F){switch(U){case"https":case"http":case"file":F?F[0]!==c&&(F=c+F):F=c}return F})(this.scheme,L||u),this.query=k||u,this.fragment=E||u,o(this,M))}get fsPath(){return v(this)}with(x){if(!x)return this;let{scheme:R,authority:L,path:k,query:E,fragment:M}=x;return R===void 0?R=this.scheme:R===null&&(R=u),L===void 0?L=this.authority:L===null&&(L=u),k===void 0?k=this.path:k===null&&(k=u),E===void 0?E=this.query:E===null&&(E=u),M===void 0?M=this.fragment:M===null&&(M=u),R===this.scheme&&L===this.authority&&k===this.path&&E===this.query&&M===this.fragment?this:new w(R,L,k,E,M)}static parse(x,R=!1){const L=d.exec(x);return L?new w(L[2]||u,W(L[4]||u),W(L[5]||u),W(L[7]||u),W(L[9]||u),R):new w(u,u,u,u,u)}static file(x){let R=u;if(r&&(x=x.replace(/\\/g,c)),x[0]===c&&x[1]===c){const L=x.indexOf(c,2);L===-1?(R=x.substring(2),x=c):(R=x.substring(2,L),x=x.substring(L)||c)}return new w("file",R,x,u,u)}static from(x){const R=new w(x.scheme,x.authority,x.path,x.query,x.fragment);return o(R,!0),R}toString(x=!1){return S(this,x)}toJSON(){return this}static revive(x){if(x){if(x instanceof m)return x;{const R=new w(x);return R._formatted=x.external,R._fsPath=x._sep===f?x.fsPath:null,R}}return x}}const f=r?1:void 0;class w extends m{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=v(this)),this._fsPath}toString(x=!1){return x?S(this,!0):(this._formatted||(this._formatted=S(this,!1)),this._formatted)}toJSON(){const x={$mid:1};return this._fsPath&&(x.fsPath=this._fsPath,x._sep=f),this._formatted&&(x.external=this._formatted),this.path&&(x.path=this.path),this.scheme&&(x.scheme=this.scheme),this.authority&&(x.authority=this.authority),this.query&&(x.query=this.query),this.fragment&&(x.fragment=this.fragment),x}}const p={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function T(A,x,R){let L,k=-1;for(let E=0;E<A.length;E++){const M=A.charCodeAt(E);if(M>=97&&M<=122||M>=65&&M<=90||M>=48&&M<=57||M===45||M===46||M===95||M===126||x&&M===47||R&&M===91||R&&M===93||R&&M===58)k!==-1&&(L+=encodeURIComponent(A.substring(k,E)),k=-1),L!==void 0&&(L+=A.charAt(E));else{L===void 0&&(L=A.substr(0,E));const U=p[M];U!==void 0?(k!==-1&&(L+=encodeURIComponent(A.substring(k,E)),k=-1),L+=U):k===-1&&(k=E)}}return k!==-1&&(L+=encodeURIComponent(A.substring(k))),L!==void 0?L:A}function y(A){let x;for(let R=0;R<A.length;R++){const L=A.charCodeAt(R);L===35||L===63?(x===void 0&&(x=A.substr(0,R)),x+=p[L]):x!==void 0&&(x+=A[R])}return x!==void 0?x:A}function v(A,x){let R;return R=A.authority&&A.path.length>1&&A.scheme==="file"?`//${A.authority}${A.path}`:A.path.charCodeAt(0)===47&&(A.path.charCodeAt(1)>=65&&A.path.charCodeAt(1)<=90||A.path.charCodeAt(1)>=97&&A.path.charCodeAt(1)<=122)&&A.path.charCodeAt(2)===58?A.path[1].toLowerCase()+A.path.substr(2):A.path,r&&(R=R.replace(/\//g,"\\")),R}function S(A,x){const R=x?y:T;let L="",{scheme:k,authority:E,path:M,query:U,fragment:F}=A;if(k&&(L+=k,L+=":"),(E||k==="file")&&(L+=c,L+=c),E){let P=E.indexOf("@");if(P!==-1){const B=E.substr(0,P);E=E.substr(P+1),P=B.lastIndexOf(":"),P===-1?L+=R(B,!1,!1):(L+=R(B.substr(0,P),!1,!1),L+=":",L+=R(B.substr(P+1),!1,!0)),L+="@"}E=E.toLowerCase(),P=E.lastIndexOf(":"),P===-1?L+=R(E,!1,!0):(L+=R(E.substr(0,P),!1,!0),L+=E.substr(P))}if(M){if(M.length>=3&&M.charCodeAt(0)===47&&M.charCodeAt(2)===58){const P=M.charCodeAt(1);P>=65&&P<=90&&(M=`/${String.fromCharCode(P+32)}:${M.substr(3)}`)}else if(M.length>=2&&M.charCodeAt(1)===58){const P=M.charCodeAt(0);P>=65&&P<=90&&(M=`${String.fromCharCode(P+32)}:${M.substr(2)}`)}L+=R(M,!0,!1)}return U&&(L+="?",L+=R(U,!1,!1)),F&&(L+="#",L+=x?F:T(F,!1,!1)),L}function I(A){try{return decodeURIComponent(A)}catch{return A.length>3?A.substr(0,3)+I(A.substr(3)):A}}const H=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function W(A){return A.match(H)?A.replace(H,(x=>I(x))):A}var b=n(470);const g=b.posix||b,_="/";var N;(function(A){A.joinPath=function(x,...R){return x.with({path:g.join(x.path,...R)})},A.resolvePath=function(x,...R){let L=x.path,k=!1;L[0]!==_&&(L=_+L,k=!0);let E=g.resolve(L,...R);return k&&E[0]===_&&!x.authority&&(E=E.substring(1)),x.with({path:E})},A.dirname=function(x){if(x.path.length===0||x.path===_)return x;let R=g.dirname(x.path);return R.length===1&&R.charCodeAt(0)===46&&(R=""),x.with({path:R})},A.basename=function(x){return g.basename(x.path)},A.extname=function(x){return g.extname(x.path)}})(N||(N={}))})(),Ka=i})();const{URI:Pc,Utils:hh}=Ka;function Ni(t){const e=t[0],n=t[t.length-1];return e===n&&(e==="'"||e==='"')&&(t=t.substring(1,t.length-1)),t}function Wc(t,e){return!t.length||e==="handlebars"&&/{{|}}/.test(t)?!1:/\b(w[\w\d+.-]*:\/\/)?[^\s()<>]+(?:\([\w\d]+\)|([^[:punct:]\s]|\/?))/.test(t)}function Fc(t,e,n,i){if(/^\s*javascript\:/i.test(e)||/[\n\r]/.test(e))return;e=e.replace(/^\s*/g,"");const r=e.match(/^(\w[\w\d+.-]*):/);if(r){const s=r[1].toLowerCase();return s==="http"||s==="https"||s==="file"?e:void 0}return/^\#/i.test(e)?t+e:/^\/\//i.test(e)?(Ge(t,"https://")?"https":"http")+":"+e.replace(/^\s*/g,""):n?n.resolveReference(e,i||t):e}function Bc(t,e,n,i,r,s){const a=Ni(n);if(!Wc(a,t.languageId))return;a.length<n.length&&(i++,r--);const l=Fc(t.uri,a,e,s);if(!l)return;const o=Oc(l,t);return{range:Q.create(t.positionAt(i),t.positionAt(r)),target:o}}const qc=35;function Oc(t,e){try{let n=Pc.parse(t);return n.scheme==="file"&&n.query&&(n=n.with({query:null}),t=n.toString(!0)),n.scheme==="file"&&n.fragment&&!(t.startsWith(e.uri)&&t.charCodeAt(e.uri.length)===qc)?n.with({fragment:null}).toString(!0):t}catch{return}}class Vc{constructor(e){this.dataManager=e}findDocumentLinks(e,n){const i=[],r=_e(e.getText(),0);let s=r.scan(),a,l,o=!1,u;const c={};for(;s!==z.EOS;){switch(s){case z.StartTag:l=r.getTokenText().toLowerCase(),u||(o=l==="base");break;case z.AttributeName:a=r.getTokenText().toLowerCase();break;case z.AttributeValue:if(l&&a&&this.dataManager.isPathAttribute(l,a)){const d=r.getTokenText();if(!o){const m=Bc(e,n,d,r.getTokenOffset(),r.getTokenEnd(),u);m&&i.push(m)}o&&typeof u>"u"&&(u=Ni(d),u&&n&&(u=n.resolveReference(u,e.uri))),o=!1,a=void 0}else if(a==="id"){const d=Ni(r.getTokenText());c[d]=r.getTokenOffset()}break}s=r.scan()}for(const d of i){const m=e.uri+"#";if(d.target&&Ge(d.target,m)){const f=d.target.substring(m.length),w=c[f];if(w!==void 0){const p=e.positionAt(w);d.target=`${m}${p.line+1},${p.character+1}`}else d.target=e.uri}}return i}}function jc(t,e,n){const i=t.offsetAt(e),r=n.findNodeAt(i);if(!r.tag)return[];const s=[],a=no(z.StartTag,t,r.start),l=typeof r.endTagStart=="number"&&no(z.EndTag,t,r.endTagStart);return(a&&to(a,e)||l&&to(l,e))&&(a&&s.push({kind:fn.Read,range:a}),l&&s.push({kind:fn.Read,range:l})),s}function eo(t,e){return t.line<e.line||t.line===e.line&&t.character<=e.character}function to(t,e){return eo(t.start,e)&&eo(e,t.end)}function no(t,e,n){const i=_e(e.getText(),n);let r=i.scan();for(;r!==z.EOS&&r!==t;)r=i.scan();return r!==z.EOS?{start:e.positionAt(i.getTokenOffset()),end:e.positionAt(i.getTokenEnd())}:null}function $c(t,e){const n=[],i=io(t,e);for(const s of i)r(s,void 0);return n;function r(s,a){const l=ki.create(s.name,s.kind,s.range,t.uri,a?.name);if(l.containerName??(l.containerName=""),n.push(l),s.children)for(const o of s.children)r(o,s)}}function io(t,e){const n=[];return e.roots.forEach(i=>{ro(t,i,n)}),n}function ro(t,e,n){const i=Gc(e),r=Q.create(t.positionAt(e.start),t.positionAt(e.end)),s=Si.create(i,void 0,xi.Field,r,r);n.push(s),e.children.forEach(a=>{s.children??(s.children=[]),ro(t,a,s.children)})}function Gc(t){let e=t.tag;if(t.attributes){const n=t.attributes.id,i=t.attributes.class;n&&(e+=`#${n.replace(/[\"\']/g,"")}`),i&&(e+=i.replace(/[\"\']/g,"").split(/\s+/).map(r=>`.${r}`).join(""))}return e||"?"}function Xc(t,e,n,i){const r=t.offsetAt(e),s=i.findNodeAt(r);if(!s.tag||!Jc(s,r,s.tag))return null;const a=[],l={start:t.positionAt(s.start+1),end:t.positionAt(s.start+1+s.tag.length)};if(a.push({range:l,newText:n}),s.endTagStart){const u={start:t.positionAt(s.endTagStart+2),end:t.positionAt(s.endTagStart+2+s.tag.length)};a.push({range:u,newText:n})}return{changes:{[t.uri.toString()]:a}}}function Jc(t,e,n){return t.endTagStart&&t.endTagStart+2<=e&&e<=t.endTagStart+2+n.length?!0:t.start+1<=e&&e<=t.start+1+n.length}function Qc(t,e,n){const i=t.offsetAt(e),r=n.findNodeAt(i);if(!r.tag||!r.endTagStart)return null;if(r.start+1<=i&&i<=r.start+1+r.tag.length){const s=i-1-r.start+r.endTagStart+2;return t.positionAt(s)}if(r.endTagStart+2<=i&&i<=r.endTagStart+2+r.tag.length){const s=i-2-r.endTagStart+r.start+1;return t.positionAt(s)}return null}function so(t,e,n){const i=t.offsetAt(e),r=n.findNodeAt(i),s=r.tag?r.tag.length:0;return r.endTagStart&&(r.start+1<=i&&i<=r.start+1+s||r.endTagStart+2<=i&&i<=r.endTagStart+2+s)?[Q.create(t.positionAt(r.start+1),t.positionAt(r.start+1+s)),Q.create(t.positionAt(r.endTagStart+2),t.positionAt(r.endTagStart+2+s))]:null}class Yc{constructor(e){this.dataManager=e}limitRanges(e,n){e=e.sort((d,m)=>{let f=d.startLine-m.startLine;return f===0&&(f=d.endLine-m.endLine),f});let i;const r=[],s=[],a=[],l=(d,m)=>{s[d]=m,m<30&&(a[m]=(a[m]||0)+1)};for(let d=0;d<e.length;d++){const m=e[d];if(!i)i=m,l(d,0);else if(m.startLine>i.startLine){if(m.endLine<=i.endLine)r.push(i),i=m,l(d,r.length);else if(m.startLine>i.endLine){do i=r.pop();while(i&&m.startLine>i.endLine);i&&r.push(i),i=m,l(d,r.length)}}}let o=0,u=0;for(let d=0;d<a.length;d++){const m=a[d];if(m){if(m+o>n){u=d;break}o+=m}}const c=[];for(let d=0;d<e.length;d++){const m=s[d];typeof m=="number"&&(m<u||m===u&&o++<n)&&c.push(e[d])}return c}getFoldingRanges(e,n){const i=this.dataManager.getVoidElements(e.languageId),r=_e(e.getText());let s=r.scan();const a=[],l=[];let o=null,u=-1;function c(m){a.push(m),u=m.startLine}for(;s!==z.EOS;){switch(s){case z.StartTag:{const m=r.getTokenText(),f=e.positionAt(r.getTokenOffset()).line;l.push({startLine:f,tagName:m}),o=m;break}case z.EndTag:{o=r.getTokenText();break}case z.StartTagClose:if(!o||!this.dataManager.isVoidElement(o,i))break;case z.EndTagClose:case z.StartTagSelfClose:{let m=l.length-1;for(;m>=0&&l[m].tagName!==o;)m--;if(m>=0){const f=l[m];l.length=m;const w=e.positionAt(r.getTokenOffset()).line,p=f.startLine,T=w-1;T>p&&u!==p&&c({startLine:p,endLine:T})}break}case z.Comment:{let m=e.positionAt(r.getTokenOffset()).line;const w=r.getTokenText().match(/^\s*#(region\b)|(endregion\b)/);if(w)if(w[1])l.push({startLine:m,tagName:""});else{let p=l.length-1;for(;p>=0&&l[p].tagName.length;)p--;if(p>=0){const T=l[p];l.length=p;const y=m;m=T.startLine,y>m&&u!==m&&c({startLine:m,endLine:y,kind:hn.Region})}}else{const p=e.positionAt(r.getTokenOffset()+r.getTokenLength()).line;m<p&&c({startLine:m,endLine:p,kind:hn.Comment})}break}}s=r.scan()}const d=n&&n.rangeLimit||Number.MAX_VALUE;return a.length>d?this.limitRanges(a,d):a}}class Zc{constructor(e){this.htmlParser=e}getSelectionRanges(e,n){const i=this.htmlParser.parseDocument(e);return n.map(r=>this.getSelectionRange(r,e,i))}getSelectionRange(e,n,i){const r=this.getApplicableRanges(n,e,i);let s,a;for(let l=r.length-1;l>=0;l--){const o=r[l];(!s||o[0]!==s[0]||o[1]!==s[1])&&(a=gn.create(Q.create(n.positionAt(r[l][0]),n.positionAt(r[l][1])),a)),s=o}return a||(a=gn.create(Q.create(e,e))),a}getApplicableRanges(e,n,i){const r=e.offsetAt(n),s=i.findNodeAt(r);let a=this.getAllParentTagRanges(s);if(s.startTagEnd&&!s.endTagStart){if(s.startTagEnd!==s.end)return[[s.start,s.end]];const l=Q.create(e.positionAt(s.startTagEnd-2),e.positionAt(s.startTagEnd));return e.getText(l)==="/>"?a.unshift([s.start+1,s.startTagEnd-2]):a.unshift([s.start+1,s.startTagEnd-1]),a=this.getAttributeLevelRanges(e,s,r).concat(a),a}return!s.startTagEnd||!s.endTagStart?a:(a.unshift([s.start,s.end]),s.start<r&&r<s.startTagEnd?(a.unshift([s.start+1,s.startTagEnd-1]),a=this.getAttributeLevelRanges(e,s,r).concat(a),a):s.startTagEnd<=r&&r<=s.endTagStart?(a.unshift([s.startTagEnd,s.endTagStart]),a):(r>=s.endTagStart+2&&a.unshift([s.endTagStart+2,s.end-1]),a))}getAllParentTagRanges(e){let n=e;const i=[];for(;n.parent;)n=n.parent,this.getNodeRanges(n).forEach(r=>i.push(r));return i}getNodeRanges(e){return e.startTagEnd&&e.endTagStart&&e.startTagEnd<e.endTagStart?[[e.startTagEnd,e.endTagStart],[e.start,e.end]]:[[e.start,e.end]]}getAttributeLevelRanges(e,n,i){const r=Q.create(e.positionAt(n.start),e.positionAt(n.end)),s=e.getText(r),a=i-n.start,l=_e(s);let o=l.scan();const u=n.start,c=[];let d=!1,m=-1;for(;o!==z.EOS;){switch(o){case z.AttributeName:{if(a<l.getTokenOffset()){d=!1;break}a<=l.getTokenEnd()&&c.unshift([l.getTokenOffset(),l.getTokenEnd()]),d=!0,m=l.getTokenOffset();break}case z.AttributeValue:{if(!d)break;const f=l.getTokenText();if(a<l.getTokenOffset()){c.push([m,l.getTokenEnd()]);break}a>=l.getTokenOffset()&&a<=l.getTokenEnd()&&(c.unshift([l.getTokenOffset(),l.getTokenEnd()]),(f[0]==='"'&&f[f.length-1]==='"'||f[0]==="'"&&f[f.length-1]==="'")&&a>=l.getTokenOffset()+1&&a<=l.getTokenEnd()-1&&c.unshift([l.getTokenOffset()+1,l.getTokenEnd()-1]),c.push([m,l.getTokenEnd()]));break}}o=l.scan()}return c.map(f=>[f[0]+u,f[1]+u])}}const Kc={version:1.1,tags:[{name:"html",description:{kind:"markdown",value:"The html element represents the root of an HTML document."},attributes:[{name:"manifest",description:{kind:"markdown",value:"Specifies the URI of a resource manifest indicating resources that should be cached locally. See [Using the application cache](https://developer.mozilla.org/en-US/docs/Web/HTML/Using_the_application_cache) for details."}},{name:"version",description:'Specifies the version of the HTML [Document Type Definition](https://developer.mozilla.org/en-US/docs/Glossary/DTD "Document Type Definition: In HTML, the doctype is the required "<!DOCTYPE html>" preamble found at the top of all documents. Its sole purpose is to prevent a browser from switching into so-called “quirks mode” when rendering a document; that is, the "<!DOCTYPE html>" doctype ensures that the browser makes a best-effort attempt at following the relevant specifications, rather than using a different rendering mode that is incompatible with some specifications.") that governs the current document. This attribute is not needed, because it is redundant with the version information in the document type declaration.'},{name:"xmlns",description:'Specifies the XML Namespace of the document. Default value is `"http://www.w3.org/1999/xhtml"`. This is required in documents parsed with XML parsers, and optional in text/html documents.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/html"}]},{name:"head",description:{kind:"markdown",value:"The head element represents a collection of metadata for the Document."},attributes:[{name:"profile",description:"The URIs of one or more metadata profiles, separated by white space."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/head"}]},{name:"title",description:{kind:"markdown",value:"The title element represents the document's title or name. Authors should use titles that identify their documents even when they are used out of context, for example in a user's history or bookmarks, or in search results. The document's title is often different from its first heading, since the first heading does not have to stand alone when taken out of context."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/title"}]},{name:"base",description:{kind:"markdown",value:"The base element allows authors to specify the document base URL for the purposes of resolving relative URLs, and the name of the default browsing context for the purposes of following hyperlinks. The element does not represent any content beyond this information."},void:!0,attributes:[{name:"href",description:{kind:"markdown",value:"The base URL to be used throughout the document for relative URL addresses. If this attribute is specified, this element must come before any other elements with attributes whose values are URLs. Absolute and relative URLs are allowed."}},{name:"target",valueSet:"target",description:{kind:"markdown",value:"A name or keyword indicating the default location to display the result when hyperlinks or forms cause navigation, for elements that do not have an explicit target reference. It is a name of, or keyword for, a _browsing context_ (for example: tab, window, or inline frame). The following keywords have special meanings:\n\n* `_self`: Load the result into the same browsing context as the current one. This value is the default if the attribute is not specified.\n* `_blank`: Load the result into a new unnamed browsing context.\n* `_parent`: Load the result into the parent browsing context of the current one. If there is no parent, this option behaves the same way as `_self`.\n* `_top`: Load the result into the top-level browsing context (that is, the browsing context that is an ancestor of the current one, and has no parent). If there is no parent, this option behaves the same way as `_self`.\n\nIf this attribute is specified, this element must come before any other elements with attributes whose values are URLs."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/base"}]},{name:"link",description:{kind:"markdown",value:"The link element allows authors to link their document to other resources."},void:!0,attributes:[{name:"href",description:{kind:"markdown",value:'This attribute specifies the [URL](https://developer.mozilla.org/en-US/docs/Glossary/URL "URL: Uniform Resource Locator (URL) is a text string specifying where a resource can be found on the Internet.") of the linked resource. A URL can be absolute or relative.'}},{name:"crossorigin",valueSet:"xo",description:{kind:"markdown",value:'This enumerated attribute indicates whether [CORS](https://developer.mozilla.org/en-US/docs/Glossary/CORS "CORS: CORS (Cross-Origin Resource Sharing) is a system, consisting of transmitting HTTP headers, that determines whether browsers block frontend JavaScript code from accessing responses for cross-origin requests.") must be used when fetching the resource. [CORS-enabled images](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_Enabled_Image) can be reused in the [`<canvas>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/canvas "Use the HTML <canvas> element with either the canvas scripting API or the WebGL API to draw graphics and animations.") element without being _tainted_. The allowed values are:\n\n`anonymous`\n\nA cross-origin request (i.e. with an [`Origin`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin "The Origin request header indicates where a fetch originates from. It doesn\'t include any path information, but only the server name. It is sent with CORS requests, as well as with POST requests. It is similar to the Referer header, but, unlike this header, it doesn\'t disclose the whole path.") HTTP header) is performed, but no credential is sent (i.e. no cookie, X.509 certificate, or HTTP Basic authentication). If the server does not give credentials to the origin site (by not setting the [`Access-Control-Allow-Origin`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin "The Access-Control-Allow-Origin response header indicates whether the response can be shared with requesting code from the given origin.") HTTP header) the image will be tainted and its usage restricted.\n\n`use-credentials`\n\nA cross-origin request (i.e. with an `Origin` HTTP header) is performed along with a credential sent (i.e. a cookie, certificate, and/or HTTP Basic authentication is performed). If the server does not give credentials to the origin site (through [`Access-Control-Allow-Credentials`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Credentials "The Access-Control-Allow-Credentials response header tells browsers whether to expose the response to frontend JavaScript code when the request\'s credentials mode (Request.credentials) is "include".") HTTP header), the resource will be _tainted_ and its usage restricted.\n\nIf the attribute is not present, the resource is fetched without a [CORS](https://developer.mozilla.org/en-US/docs/Glossary/CORS "CORS: CORS (Cross-Origin Resource Sharing) is a system, consisting of transmitting HTTP headers, that determines whether browsers block frontend JavaScript code from accessing responses for cross-origin requests.") request (i.e. without sending the `Origin` HTTP header), preventing its non-tainted usage. If invalid, it is handled as if the enumerated keyword **anonymous** was used. See [CORS settings attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes) for additional information.'}},{name:"rel",description:{kind:"markdown",value:"This attribute names a relationship of the linked document to the current document. The attribute must be a space-separated list of the [link types values](https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types)."}},{name:"media",description:{kind:"markdown",value:"This attribute specifies the media that the linked resource applies to. Its value must be a media type / [media query](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_queries). This attribute is mainly useful when linking to external stylesheets — it allows the user agent to pick the best adapted one for the device it runs on.\n\n**Notes:**\n\n* In HTML 4, this can only be a simple white-space-separated list of media description literals, i.e., [media types and groups](https://developer.mozilla.org/en-US/docs/Web/CSS/@media), where defined and allowed as values for this attribute, such as `print`, `screen`, `aural`, `braille`. HTML5 extended this to any kind of [media queries](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_queries), which are a superset of the allowed values of HTML 4.\n* Browsers not supporting [CSS3 Media Queries](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_queries) won't necessarily recognize the adequate link; do not forget to set fallback links, the restricted set of media queries defined in HTML 4."}},{name:"hreflang",description:{kind:"markdown",value:"This attribute indicates the language of the linked resource. It is purely advisory. Allowed values are determined by [BCP47](https://www.ietf.org/rfc/bcp/bcp47.txt). Use this attribute only if the [`href`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-href) attribute is present."}},{name:"type",description:{kind:"markdown",value:'This attribute is used to define the type of the content linked to. The value of the attribute should be a MIME type such as **text/html**, **text/css**, and so on. The common use of this attribute is to define the type of stylesheet being referenced (such as **text/css**), but given that CSS is the only stylesheet language used on the web, not only is it possible to omit the `type` attribute, but is actually now recommended practice. It is also used on `rel="preload"` link types, to make sure the browser only downloads file types that it supports.'}},{name:"sizes",description:{kind:"markdown",value:"This attribute defines the sizes of the icons for visual media contained in the resource. It must be present only if the [`rel`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-rel) contains a value of `icon` or a non-standard type such as Apple's `apple-touch-icon`. It may have the following values:\n\n* `any`, meaning that the icon can be scaled to any size as it is in a vector format, like `image/svg+xml`.\n* a white-space separated list of sizes, each in the format `_<width in pixels>_x_<height in pixels>_` or `_<width in pixels>_X_<height in pixels>_`. Each of these sizes must be contained in the resource.\n\n**Note:** Most icon formats are only able to store one single icon; therefore most of the time the [`sizes`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-sizes) contains only one entry. MS's ICO format does, as well as Apple's ICNS. ICO is more ubiquitous; you should definitely use it."}},{name:"as",description:'This attribute is only used when `rel="preload"` or `rel="prefetch"` has been set on the `<link>` element. It specifies the type of content being loaded by the `<link>`, which is necessary for content prioritization, request matching, application of correct [content security policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), and setting of correct [`Accept`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept "The Accept request HTTP header advertises which content types, expressed as MIME types, the client is able to understand. Using content negotiation, the server then selects one of the proposals, uses it and informs the client of its choice with the Content-Type response header. Browsers set adequate values for this header depending on the context where the request is done: when fetching a CSS stylesheet a different value is set for the request than when fetching an image, video or a script.") request header.'},{name:"importance",description:"Indicates the relative importance of the resource. Priority hints are delegated using the values:"},{name:"importance",description:'**`auto`**: Indicates **no preference**. The browser may use its own heuristics to decide the priority of the resource.\n\n**`high`**: Indicates to the browser that the resource is of **high** priority.\n\n**`low`**: Indicates to the browser that the resource is of **low** priority.\n\n**Note:** The `importance` attribute may only be used for the `<link>` element if `rel="preload"` or `rel="prefetch"` is present.'},{name:"integrity",description:"Contains inline metadata — a base64-encoded cryptographic hash of the resource (file) you’re telling the browser to fetch. The browser can use this to verify that the fetched resource has been delivered free of unexpected manipulation. See [Subresource Integrity](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity)."},{name:"referrerpolicy",description:'A string indicating which referrer to use when fetching the resource:\n\n* `no-referrer` means that the [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will not be sent.\n* `no-referrer-when-downgrade` means that no [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will be sent when navigating to an origin without TLS (HTTPS). This is a user agent’s default behavior, if no policy is otherwise specified.\n* `origin` means that the referrer will be the origin of the page, which is roughly the scheme, the host, and the port.\n* `origin-when-cross-origin` means that navigating to other origins will be limited to the scheme, the host, and the port, while navigating on the same origin will include the referrer\'s path.\n* `unsafe-url` means that the referrer will include the origin and the path (but not the fragment, password, or username). This case is unsafe because it can leak origins and paths from TLS-protected resources to insecure origins.'},{name:"title",description:'The `title` attribute has special semantics on the `<link>` element. When used on a `<link rel="stylesheet">` it defines a [preferred or an alternate stylesheet](https://developer.mozilla.org/en-US/docs/Web/CSS/Alternative_style_sheets). Incorrectly using it may [cause the stylesheet to be ignored](https://developer.mozilla.org/en-US/docs/Correctly_Using_Titles_With_External_Stylesheets).'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/link"}]},{name:"meta",description:{kind:"markdown",value:"The meta element represents various kinds of metadata that cannot be expressed using the title, base, link, style, and script elements."},void:!0,attributes:[{name:"name",description:{kind:"markdown",value:`This attribute defines the name of a piece of document-level metadata. It should not be set if one of the attributes [\`itemprop\`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-itemprop), [\`http-equiv\`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-http-equiv) or [\`charset\`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-charset) is also set.
70
+ `.indexOf(t.charAt(e))!==-1}function Za(t,e){return" ".indexOf(t.charAt(e))!==-1}var Ka;(()=>{var t={470:r=>{function s(o){if(typeof o!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(o))}function a(o,u){for(var h,d="",m=0,f=-1,w=0,p=0;p<=o.length;++p){if(p<o.length)h=o.charCodeAt(p);else{if(h===47)break;h=47}if(h===47){if(!(f===p-1||w===1))if(f!==p-1&&w===2){if(d.length<2||m!==2||d.charCodeAt(d.length-1)!==46||d.charCodeAt(d.length-2)!==46){if(d.length>2){var T=d.lastIndexOf("/");if(T!==d.length-1){T===-1?(d="",m=0):m=(d=d.slice(0,T)).length-1-d.lastIndexOf("/"),f=p,w=0;continue}}else if(d.length===2||d.length===1){d="",m=0,f=p,w=0;continue}}u&&(d.length>0?d+="/..":d="..",m=2)}else d.length>0?d+="/"+o.slice(f+1,p):d=o.slice(f+1,p),m=p-f-1;f=p,w=0}else h===46&&w!==-1?++w:w=-1}return d}var l={resolve:function(){for(var o,u="",h=!1,d=arguments.length-1;d>=-1&&!h;d--){var m;d>=0?m=arguments[d]:(o===void 0&&(o=process.cwd()),m=o),s(m),m.length!==0&&(u=m+"/"+u,h=m.charCodeAt(0)===47)}return u=a(u,!h),h?u.length>0?"/"+u:"/":u.length>0?u:"."},normalize:function(o){if(s(o),o.length===0)return".";var u=o.charCodeAt(0)===47,h=o.charCodeAt(o.length-1)===47;return(o=a(o,!u)).length!==0||u||(o="."),o.length>0&&h&&(o+="/"),u?"/"+o:o},isAbsolute:function(o){return s(o),o.length>0&&o.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var o,u=0;u<arguments.length;++u){var h=arguments[u];s(h),h.length>0&&(o===void 0?o=h:o+="/"+h)}return o===void 0?".":l.normalize(o)},relative:function(o,u){if(s(o),s(u),o===u||(o=l.resolve(o))===(u=l.resolve(u)))return"";for(var h=1;h<o.length&&o.charCodeAt(h)===47;++h);for(var d=o.length,m=d-h,f=1;f<u.length&&u.charCodeAt(f)===47;++f);for(var w=u.length-f,p=m<w?m:w,T=-1,y=0;y<=p;++y){if(y===p){if(w>p){if(u.charCodeAt(f+y)===47)return u.slice(f+y+1);if(y===0)return u.slice(f+y)}else m>p&&(o.charCodeAt(h+y)===47?T=y:y===0&&(T=0));break}var v=o.charCodeAt(h+y);if(v!==u.charCodeAt(f+y))break;v===47&&(T=y)}var S="";for(y=h+T+1;y<=d;++y)y!==d&&o.charCodeAt(y)!==47||(S.length===0?S+="..":S+="/..");return S.length>0?S+u.slice(f+T):(f+=T,u.charCodeAt(f)===47&&++f,u.slice(f))},_makeLong:function(o){return o},dirname:function(o){if(s(o),o.length===0)return".";for(var u=o.charCodeAt(0),h=u===47,d=-1,m=!0,f=o.length-1;f>=1;--f)if((u=o.charCodeAt(f))===47){if(!m){d=f;break}}else m=!1;return d===-1?h?"/":".":h&&d===1?"//":o.slice(0,d)},basename:function(o,u){if(u!==void 0&&typeof u!="string")throw new TypeError('"ext" argument must be a string');s(o);var h,d=0,m=-1,f=!0;if(u!==void 0&&u.length>0&&u.length<=o.length){if(u.length===o.length&&u===o)return"";var w=u.length-1,p=-1;for(h=o.length-1;h>=0;--h){var T=o.charCodeAt(h);if(T===47){if(!f){d=h+1;break}}else p===-1&&(f=!1,p=h+1),w>=0&&(T===u.charCodeAt(w)?--w==-1&&(m=h):(w=-1,m=p))}return d===m?m=p:m===-1&&(m=o.length),o.slice(d,m)}for(h=o.length-1;h>=0;--h)if(o.charCodeAt(h)===47){if(!f){d=h+1;break}}else m===-1&&(f=!1,m=h+1);return m===-1?"":o.slice(d,m)},extname:function(o){s(o);for(var u=-1,h=0,d=-1,m=!0,f=0,w=o.length-1;w>=0;--w){var p=o.charCodeAt(w);if(p!==47)d===-1&&(m=!1,d=w+1),p===46?u===-1?u=w:f!==1&&(f=1):u!==-1&&(f=-1);else if(!m){h=w+1;break}}return u===-1||d===-1||f===0||f===1&&u===d-1&&u===h+1?"":o.slice(u,d)},format:function(o){if(o===null||typeof o!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof o);return(function(u,h){var d=h.dir||h.root,m=h.base||(h.name||"")+(h.ext||"");return d?d===h.root?d+m:d+"/"+m:m})(0,o)},parse:function(o){s(o);var u={root:"",dir:"",base:"",ext:"",name:""};if(o.length===0)return u;var h,d=o.charCodeAt(0),m=d===47;m?(u.root="/",h=1):h=0;for(var f=-1,w=0,p=-1,T=!0,y=o.length-1,v=0;y>=h;--y)if((d=o.charCodeAt(y))!==47)p===-1&&(T=!1,p=y+1),d===46?f===-1?f=y:v!==1&&(v=1):f!==-1&&(v=-1);else if(!T){w=y+1;break}return f===-1||p===-1||v===0||v===1&&f===p-1&&f===w+1?p!==-1&&(u.base=u.name=w===0&&m?o.slice(1,p):o.slice(w,p)):(w===0&&m?(u.name=o.slice(1,f),u.base=o.slice(1,p)):(u.name=o.slice(w,f),u.base=o.slice(w,p)),u.ext=o.slice(f,p)),w>0?u.dir=o.slice(0,w-1):m&&(u.dir="/"),u},sep:"/",delimiter:":",win32:null,posix:null};l.posix=l,r.exports=l}},e={};function n(r){var s=e[r];if(s!==void 0)return s.exports;var a=e[r]={exports:{}};return t[r](a,a.exports,n),a.exports}n.d=(r,s)=>{for(var a in s)n.o(s,a)&&!n.o(r,a)&&Object.defineProperty(r,a,{enumerable:!0,get:s[a]})},n.o=(r,s)=>Object.prototype.hasOwnProperty.call(r,s),n.r=r=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})};var i={};(()=>{let r;n.r(i),n.d(i,{URI:()=>m,Utils:()=>N}),typeof process=="object"?r=process.platform==="win32":typeof navigator=="object"&&(r=navigator.userAgent.indexOf("Windows")>=0);const s=/^\w[\w\d+.-]*$/,a=/^\//,l=/^\/\//;function o(A,x){if(!A.scheme&&x)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${A.authority}", path: "${A.path}", query: "${A.query}", fragment: "${A.fragment}"}`);if(A.scheme&&!s.test(A.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(A.path){if(A.authority){if(!a.test(A.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(l.test(A.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}const u="",h="/",d=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class m{static isUri(x){return x instanceof m||!!x&&typeof x.authority=="string"&&typeof x.fragment=="string"&&typeof x.path=="string"&&typeof x.query=="string"&&typeof x.scheme=="string"&&typeof x.fsPath=="string"&&typeof x.with=="function"&&typeof x.toString=="function"}scheme;authority;path;query;fragment;constructor(x,R,L,k,E,M=!1){typeof x=="object"?(this.scheme=x.scheme||u,this.authority=x.authority||u,this.path=x.path||u,this.query=x.query||u,this.fragment=x.fragment||u):(this.scheme=(function(U,F){return U||F?U:"file"})(x,M),this.authority=R||u,this.path=(function(U,F){switch(U){case"https":case"http":case"file":F?F[0]!==h&&(F=h+F):F=h}return F})(this.scheme,L||u),this.query=k||u,this.fragment=E||u,o(this,M))}get fsPath(){return v(this)}with(x){if(!x)return this;let{scheme:R,authority:L,path:k,query:E,fragment:M}=x;return R===void 0?R=this.scheme:R===null&&(R=u),L===void 0?L=this.authority:L===null&&(L=u),k===void 0?k=this.path:k===null&&(k=u),E===void 0?E=this.query:E===null&&(E=u),M===void 0?M=this.fragment:M===null&&(M=u),R===this.scheme&&L===this.authority&&k===this.path&&E===this.query&&M===this.fragment?this:new w(R,L,k,E,M)}static parse(x,R=!1){const L=d.exec(x);return L?new w(L[2]||u,W(L[4]||u),W(L[5]||u),W(L[7]||u),W(L[9]||u),R):new w(u,u,u,u,u)}static file(x){let R=u;if(r&&(x=x.replace(/\\/g,h)),x[0]===h&&x[1]===h){const L=x.indexOf(h,2);L===-1?(R=x.substring(2),x=h):(R=x.substring(2,L),x=x.substring(L)||h)}return new w("file",R,x,u,u)}static from(x){const R=new w(x.scheme,x.authority,x.path,x.query,x.fragment);return o(R,!0),R}toString(x=!1){return S(this,x)}toJSON(){return this}static revive(x){if(x){if(x instanceof m)return x;{const R=new w(x);return R._formatted=x.external,R._fsPath=x._sep===f?x.fsPath:null,R}}return x}}const f=r?1:void 0;class w extends m{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=v(this)),this._fsPath}toString(x=!1){return x?S(this,!0):(this._formatted||(this._formatted=S(this,!1)),this._formatted)}toJSON(){const x={$mid:1};return this._fsPath&&(x.fsPath=this._fsPath,x._sep=f),this._formatted&&(x.external=this._formatted),this.path&&(x.path=this.path),this.scheme&&(x.scheme=this.scheme),this.authority&&(x.authority=this.authority),this.query&&(x.query=this.query),this.fragment&&(x.fragment=this.fragment),x}}const p={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function T(A,x,R){let L,k=-1;for(let E=0;E<A.length;E++){const M=A.charCodeAt(E);if(M>=97&&M<=122||M>=65&&M<=90||M>=48&&M<=57||M===45||M===46||M===95||M===126||x&&M===47||R&&M===91||R&&M===93||R&&M===58)k!==-1&&(L+=encodeURIComponent(A.substring(k,E)),k=-1),L!==void 0&&(L+=A.charAt(E));else{L===void 0&&(L=A.substr(0,E));const U=p[M];U!==void 0?(k!==-1&&(L+=encodeURIComponent(A.substring(k,E)),k=-1),L+=U):k===-1&&(k=E)}}return k!==-1&&(L+=encodeURIComponent(A.substring(k))),L!==void 0?L:A}function y(A){let x;for(let R=0;R<A.length;R++){const L=A.charCodeAt(R);L===35||L===63?(x===void 0&&(x=A.substr(0,R)),x+=p[L]):x!==void 0&&(x+=A[R])}return x!==void 0?x:A}function v(A,x){let R;return R=A.authority&&A.path.length>1&&A.scheme==="file"?`//${A.authority}${A.path}`:A.path.charCodeAt(0)===47&&(A.path.charCodeAt(1)>=65&&A.path.charCodeAt(1)<=90||A.path.charCodeAt(1)>=97&&A.path.charCodeAt(1)<=122)&&A.path.charCodeAt(2)===58?A.path[1].toLowerCase()+A.path.substr(2):A.path,r&&(R=R.replace(/\//g,"\\")),R}function S(A,x){const R=x?y:T;let L="",{scheme:k,authority:E,path:M,query:U,fragment:F}=A;if(k&&(L+=k,L+=":"),(E||k==="file")&&(L+=h,L+=h),E){let P=E.indexOf("@");if(P!==-1){const B=E.substr(0,P);E=E.substr(P+1),P=B.lastIndexOf(":"),P===-1?L+=R(B,!1,!1):(L+=R(B.substr(0,P),!1,!1),L+=":",L+=R(B.substr(P+1),!1,!0)),L+="@"}E=E.toLowerCase(),P=E.lastIndexOf(":"),P===-1?L+=R(E,!1,!0):(L+=R(E.substr(0,P),!1,!0),L+=E.substr(P))}if(M){if(M.length>=3&&M.charCodeAt(0)===47&&M.charCodeAt(2)===58){const P=M.charCodeAt(1);P>=65&&P<=90&&(M=`/${String.fromCharCode(P+32)}:${M.substr(3)}`)}else if(M.length>=2&&M.charCodeAt(1)===58){const P=M.charCodeAt(0);P>=65&&P<=90&&(M=`${String.fromCharCode(P+32)}:${M.substr(2)}`)}L+=R(M,!0,!1)}return U&&(L+="?",L+=R(U,!1,!1)),F&&(L+="#",L+=x?F:T(F,!1,!1)),L}function I(A){try{return decodeURIComponent(A)}catch{return A.length>3?A.substr(0,3)+I(A.substr(3)):A}}const H=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function W(A){return A.match(H)?A.replace(H,(x=>I(x))):A}var b=n(470);const g=b.posix||b,_="/";var N;(function(A){A.joinPath=function(x,...R){return x.with({path:g.join(x.path,...R)})},A.resolvePath=function(x,...R){let L=x.path,k=!1;L[0]!==_&&(L=_+L,k=!0);let E=g.resolve(L,...R);return k&&E[0]===_&&!x.authority&&(E=E.substring(1)),x.with({path:E})},A.dirname=function(x){if(x.path.length===0||x.path===_)return x;let R=g.dirname(x.path);return R.length===1&&R.charCodeAt(0)===46&&(R=""),x.with({path:R})},A.basename=function(x){return g.basename(x.path)},A.extname=function(x){return g.extname(x.path)}})(N||(N={}))})(),Ka=i})();const{URI:Pc,Utils:hh}=Ka;function Ni(t){const e=t[0],n=t[t.length-1];return e===n&&(e==="'"||e==='"')&&(t=t.substring(1,t.length-1)),t}function Wc(t,e){return!t.length||e==="handlebars"&&/{{|}}/.test(t)?!1:/\b(w[\w\d+.-]*:\/\/)?[^\s()<>]+(?:\([\w\d]+\)|([^[:punct:]\s]|\/?))/.test(t)}function Fc(t,e,n,i){if(/^\s*javascript\:/i.test(e)||/[\n\r]/.test(e))return;e=e.replace(/^\s*/g,"");const r=e.match(/^(\w[\w\d+.-]*):/);if(r){const s=r[1].toLowerCase();return s==="http"||s==="https"||s==="file"?e:void 0}return/^\#/i.test(e)?t+e:/^\/\//i.test(e)?(Ge(t,"https://")?"https":"http")+":"+e.replace(/^\s*/g,""):n?n.resolveReference(e,i||t):e}function Bc(t,e,n,i,r,s){const a=Ni(n);if(!Wc(a,t.languageId))return;a.length<n.length&&(i++,r--);const l=Fc(t.uri,a,e,s);if(!l)return;const o=Oc(l,t);return{range:Q.create(t.positionAt(i),t.positionAt(r)),target:o}}const qc=35;function Oc(t,e){try{let n=Pc.parse(t);return n.scheme==="file"&&n.query&&(n=n.with({query:null}),t=n.toString(!0)),n.scheme==="file"&&n.fragment&&!(t.startsWith(e.uri)&&t.charCodeAt(e.uri.length)===qc)?n.with({fragment:null}).toString(!0):t}catch{return}}class Vc{constructor(e){this.dataManager=e}findDocumentLinks(e,n){const i=[],r=_e(e.getText(),0);let s=r.scan(),a,l,o=!1,u;const h={};for(;s!==z.EOS;){switch(s){case z.StartTag:l=r.getTokenText().toLowerCase(),u||(o=l==="base");break;case z.AttributeName:a=r.getTokenText().toLowerCase();break;case z.AttributeValue:if(l&&a&&this.dataManager.isPathAttribute(l,a)){const d=r.getTokenText();if(!o){const m=Bc(e,n,d,r.getTokenOffset(),r.getTokenEnd(),u);m&&i.push(m)}o&&typeof u>"u"&&(u=Ni(d),u&&n&&(u=n.resolveReference(u,e.uri))),o=!1,a=void 0}else if(a==="id"){const d=Ni(r.getTokenText());h[d]=r.getTokenOffset()}break}s=r.scan()}for(const d of i){const m=e.uri+"#";if(d.target&&Ge(d.target,m)){const f=d.target.substring(m.length),w=h[f];if(w!==void 0){const p=e.positionAt(w);d.target=`${m}${p.line+1},${p.character+1}`}else d.target=e.uri}}return i}}function jc(t,e,n){const i=t.offsetAt(e),r=n.findNodeAt(i);if(!r.tag)return[];const s=[],a=no(z.StartTag,t,r.start),l=typeof r.endTagStart=="number"&&no(z.EndTag,t,r.endTagStart);return(a&&to(a,e)||l&&to(l,e))&&(a&&s.push({kind:fn.Read,range:a}),l&&s.push({kind:fn.Read,range:l})),s}function eo(t,e){return t.line<e.line||t.line===e.line&&t.character<=e.character}function to(t,e){return eo(t.start,e)&&eo(e,t.end)}function no(t,e,n){const i=_e(e.getText(),n);let r=i.scan();for(;r!==z.EOS&&r!==t;)r=i.scan();return r!==z.EOS?{start:e.positionAt(i.getTokenOffset()),end:e.positionAt(i.getTokenEnd())}:null}function $c(t,e){const n=[],i=io(t,e);for(const s of i)r(s,void 0);return n;function r(s,a){const l=ki.create(s.name,s.kind,s.range,t.uri,a?.name);if(l.containerName??(l.containerName=""),n.push(l),s.children)for(const o of s.children)r(o,s)}}function io(t,e){const n=[];return e.roots.forEach(i=>{ro(t,i,n)}),n}function ro(t,e,n){const i=Gc(e),r=Q.create(t.positionAt(e.start),t.positionAt(e.end)),s=Si.create(i,void 0,xi.Field,r,r);n.push(s),e.children.forEach(a=>{s.children??(s.children=[]),ro(t,a,s.children)})}function Gc(t){let e=t.tag;if(t.attributes){const n=t.attributes.id,i=t.attributes.class;n&&(e+=`#${n.replace(/[\"\']/g,"")}`),i&&(e+=i.replace(/[\"\']/g,"").split(/\s+/).map(r=>`.${r}`).join(""))}return e||"?"}function Xc(t,e,n,i){const r=t.offsetAt(e),s=i.findNodeAt(r);if(!s.tag||!Jc(s,r,s.tag))return null;const a=[],l={start:t.positionAt(s.start+1),end:t.positionAt(s.start+1+s.tag.length)};if(a.push({range:l,newText:n}),s.endTagStart){const u={start:t.positionAt(s.endTagStart+2),end:t.positionAt(s.endTagStart+2+s.tag.length)};a.push({range:u,newText:n})}return{changes:{[t.uri.toString()]:a}}}function Jc(t,e,n){return t.endTagStart&&t.endTagStart+2<=e&&e<=t.endTagStart+2+n.length?!0:t.start+1<=e&&e<=t.start+1+n.length}function Qc(t,e,n){const i=t.offsetAt(e),r=n.findNodeAt(i);if(!r.tag||!r.endTagStart)return null;if(r.start+1<=i&&i<=r.start+1+r.tag.length){const s=i-1-r.start+r.endTagStart+2;return t.positionAt(s)}if(r.endTagStart+2<=i&&i<=r.endTagStart+2+r.tag.length){const s=i-2-r.endTagStart+r.start+1;return t.positionAt(s)}return null}function so(t,e,n){const i=t.offsetAt(e),r=n.findNodeAt(i),s=r.tag?r.tag.length:0;return r.endTagStart&&(r.start+1<=i&&i<=r.start+1+s||r.endTagStart+2<=i&&i<=r.endTagStart+2+s)?[Q.create(t.positionAt(r.start+1),t.positionAt(r.start+1+s)),Q.create(t.positionAt(r.endTagStart+2),t.positionAt(r.endTagStart+2+s))]:null}class Yc{constructor(e){this.dataManager=e}limitRanges(e,n){e=e.sort((d,m)=>{let f=d.startLine-m.startLine;return f===0&&(f=d.endLine-m.endLine),f});let i;const r=[],s=[],a=[],l=(d,m)=>{s[d]=m,m<30&&(a[m]=(a[m]||0)+1)};for(let d=0;d<e.length;d++){const m=e[d];if(!i)i=m,l(d,0);else if(m.startLine>i.startLine){if(m.endLine<=i.endLine)r.push(i),i=m,l(d,r.length);else if(m.startLine>i.endLine){do i=r.pop();while(i&&m.startLine>i.endLine);i&&r.push(i),i=m,l(d,r.length)}}}let o=0,u=0;for(let d=0;d<a.length;d++){const m=a[d];if(m){if(m+o>n){u=d;break}o+=m}}const h=[];for(let d=0;d<e.length;d++){const m=s[d];typeof m=="number"&&(m<u||m===u&&o++<n)&&h.push(e[d])}return h}getFoldingRanges(e,n){const i=this.dataManager.getVoidElements(e.languageId),r=_e(e.getText());let s=r.scan();const a=[],l=[];let o=null,u=-1;function h(m){a.push(m),u=m.startLine}for(;s!==z.EOS;){switch(s){case z.StartTag:{const m=r.getTokenText(),f=e.positionAt(r.getTokenOffset()).line;l.push({startLine:f,tagName:m}),o=m;break}case z.EndTag:{o=r.getTokenText();break}case z.StartTagClose:if(!o||!this.dataManager.isVoidElement(o,i))break;case z.EndTagClose:case z.StartTagSelfClose:{let m=l.length-1;for(;m>=0&&l[m].tagName!==o;)m--;if(m>=0){const f=l[m];l.length=m;const w=e.positionAt(r.getTokenOffset()).line,p=f.startLine,T=w-1;T>p&&u!==p&&h({startLine:p,endLine:T})}break}case z.Comment:{let m=e.positionAt(r.getTokenOffset()).line;const w=r.getTokenText().match(/^\s*#(region\b)|(endregion\b)/);if(w)if(w[1])l.push({startLine:m,tagName:""});else{let p=l.length-1;for(;p>=0&&l[p].tagName.length;)p--;if(p>=0){const T=l[p];l.length=p;const y=m;m=T.startLine,y>m&&u!==m&&h({startLine:m,endLine:y,kind:hn.Region})}}else{const p=e.positionAt(r.getTokenOffset()+r.getTokenLength()).line;m<p&&h({startLine:m,endLine:p,kind:hn.Comment})}break}}s=r.scan()}const d=n&&n.rangeLimit||Number.MAX_VALUE;return a.length>d?this.limitRanges(a,d):a}}class Zc{constructor(e){this.htmlParser=e}getSelectionRanges(e,n){const i=this.htmlParser.parseDocument(e);return n.map(r=>this.getSelectionRange(r,e,i))}getSelectionRange(e,n,i){const r=this.getApplicableRanges(n,e,i);let s,a;for(let l=r.length-1;l>=0;l--){const o=r[l];(!s||o[0]!==s[0]||o[1]!==s[1])&&(a=gn.create(Q.create(n.positionAt(r[l][0]),n.positionAt(r[l][1])),a)),s=o}return a||(a=gn.create(Q.create(e,e))),a}getApplicableRanges(e,n,i){const r=e.offsetAt(n),s=i.findNodeAt(r);let a=this.getAllParentTagRanges(s);if(s.startTagEnd&&!s.endTagStart){if(s.startTagEnd!==s.end)return[[s.start,s.end]];const l=Q.create(e.positionAt(s.startTagEnd-2),e.positionAt(s.startTagEnd));return e.getText(l)==="/>"?a.unshift([s.start+1,s.startTagEnd-2]):a.unshift([s.start+1,s.startTagEnd-1]),a=this.getAttributeLevelRanges(e,s,r).concat(a),a}return!s.startTagEnd||!s.endTagStart?a:(a.unshift([s.start,s.end]),s.start<r&&r<s.startTagEnd?(a.unshift([s.start+1,s.startTagEnd-1]),a=this.getAttributeLevelRanges(e,s,r).concat(a),a):s.startTagEnd<=r&&r<=s.endTagStart?(a.unshift([s.startTagEnd,s.endTagStart]),a):(r>=s.endTagStart+2&&a.unshift([s.endTagStart+2,s.end-1]),a))}getAllParentTagRanges(e){let n=e;const i=[];for(;n.parent;)n=n.parent,this.getNodeRanges(n).forEach(r=>i.push(r));return i}getNodeRanges(e){return e.startTagEnd&&e.endTagStart&&e.startTagEnd<e.endTagStart?[[e.startTagEnd,e.endTagStart],[e.start,e.end]]:[[e.start,e.end]]}getAttributeLevelRanges(e,n,i){const r=Q.create(e.positionAt(n.start),e.positionAt(n.end)),s=e.getText(r),a=i-n.start,l=_e(s);let o=l.scan();const u=n.start,h=[];let d=!1,m=-1;for(;o!==z.EOS;){switch(o){case z.AttributeName:{if(a<l.getTokenOffset()){d=!1;break}a<=l.getTokenEnd()&&h.unshift([l.getTokenOffset(),l.getTokenEnd()]),d=!0,m=l.getTokenOffset();break}case z.AttributeValue:{if(!d)break;const f=l.getTokenText();if(a<l.getTokenOffset()){h.push([m,l.getTokenEnd()]);break}a>=l.getTokenOffset()&&a<=l.getTokenEnd()&&(h.unshift([l.getTokenOffset(),l.getTokenEnd()]),(f[0]==='"'&&f[f.length-1]==='"'||f[0]==="'"&&f[f.length-1]==="'")&&a>=l.getTokenOffset()+1&&a<=l.getTokenEnd()-1&&h.unshift([l.getTokenOffset()+1,l.getTokenEnd()-1]),h.push([m,l.getTokenEnd()]));break}}o=l.scan()}return h.map(f=>[f[0]+u,f[1]+u])}}const Kc={version:1.1,tags:[{name:"html",description:{kind:"markdown",value:"The html element represents the root of an HTML document."},attributes:[{name:"manifest",description:{kind:"markdown",value:"Specifies the URI of a resource manifest indicating resources that should be cached locally. See [Using the application cache](https://developer.mozilla.org/en-US/docs/Web/HTML/Using_the_application_cache) for details."}},{name:"version",description:'Specifies the version of the HTML [Document Type Definition](https://developer.mozilla.org/en-US/docs/Glossary/DTD "Document Type Definition: In HTML, the doctype is the required "<!DOCTYPE html>" preamble found at the top of all documents. Its sole purpose is to prevent a browser from switching into so-called “quirks mode” when rendering a document; that is, the "<!DOCTYPE html>" doctype ensures that the browser makes a best-effort attempt at following the relevant specifications, rather than using a different rendering mode that is incompatible with some specifications.") that governs the current document. This attribute is not needed, because it is redundant with the version information in the document type declaration.'},{name:"xmlns",description:'Specifies the XML Namespace of the document. Default value is `"http://www.w3.org/1999/xhtml"`. This is required in documents parsed with XML parsers, and optional in text/html documents.'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/html"}]},{name:"head",description:{kind:"markdown",value:"The head element represents a collection of metadata for the Document."},attributes:[{name:"profile",description:"The URIs of one or more metadata profiles, separated by white space."}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/head"}]},{name:"title",description:{kind:"markdown",value:"The title element represents the document's title or name. Authors should use titles that identify their documents even when they are used out of context, for example in a user's history or bookmarks, or in search results. The document's title is often different from its first heading, since the first heading does not have to stand alone when taken out of context."},attributes:[],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/title"}]},{name:"base",description:{kind:"markdown",value:"The base element allows authors to specify the document base URL for the purposes of resolving relative URLs, and the name of the default browsing context for the purposes of following hyperlinks. The element does not represent any content beyond this information."},void:!0,attributes:[{name:"href",description:{kind:"markdown",value:"The base URL to be used throughout the document for relative URL addresses. If this attribute is specified, this element must come before any other elements with attributes whose values are URLs. Absolute and relative URLs are allowed."}},{name:"target",valueSet:"target",description:{kind:"markdown",value:"A name or keyword indicating the default location to display the result when hyperlinks or forms cause navigation, for elements that do not have an explicit target reference. It is a name of, or keyword for, a _browsing context_ (for example: tab, window, or inline frame). The following keywords have special meanings:\n\n* `_self`: Load the result into the same browsing context as the current one. This value is the default if the attribute is not specified.\n* `_blank`: Load the result into a new unnamed browsing context.\n* `_parent`: Load the result into the parent browsing context of the current one. If there is no parent, this option behaves the same way as `_self`.\n* `_top`: Load the result into the top-level browsing context (that is, the browsing context that is an ancestor of the current one, and has no parent). If there is no parent, this option behaves the same way as `_self`.\n\nIf this attribute is specified, this element must come before any other elements with attributes whose values are URLs."}}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/base"}]},{name:"link",description:{kind:"markdown",value:"The link element allows authors to link their document to other resources."},void:!0,attributes:[{name:"href",description:{kind:"markdown",value:'This attribute specifies the [URL](https://developer.mozilla.org/en-US/docs/Glossary/URL "URL: Uniform Resource Locator (URL) is a text string specifying where a resource can be found on the Internet.") of the linked resource. A URL can be absolute or relative.'}},{name:"crossorigin",valueSet:"xo",description:{kind:"markdown",value:'This enumerated attribute indicates whether [CORS](https://developer.mozilla.org/en-US/docs/Glossary/CORS "CORS: CORS (Cross-Origin Resource Sharing) is a system, consisting of transmitting HTTP headers, that determines whether browsers block frontend JavaScript code from accessing responses for cross-origin requests.") must be used when fetching the resource. [CORS-enabled images](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_Enabled_Image) can be reused in the [`<canvas>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/canvas "Use the HTML <canvas> element with either the canvas scripting API or the WebGL API to draw graphics and animations.") element without being _tainted_. The allowed values are:\n\n`anonymous`\n\nA cross-origin request (i.e. with an [`Origin`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin "The Origin request header indicates where a fetch originates from. It doesn\'t include any path information, but only the server name. It is sent with CORS requests, as well as with POST requests. It is similar to the Referer header, but, unlike this header, it doesn\'t disclose the whole path.") HTTP header) is performed, but no credential is sent (i.e. no cookie, X.509 certificate, or HTTP Basic authentication). If the server does not give credentials to the origin site (by not setting the [`Access-Control-Allow-Origin`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin "The Access-Control-Allow-Origin response header indicates whether the response can be shared with requesting code from the given origin.") HTTP header) the image will be tainted and its usage restricted.\n\n`use-credentials`\n\nA cross-origin request (i.e. with an `Origin` HTTP header) is performed along with a credential sent (i.e. a cookie, certificate, and/or HTTP Basic authentication is performed). If the server does not give credentials to the origin site (through [`Access-Control-Allow-Credentials`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Credentials "The Access-Control-Allow-Credentials response header tells browsers whether to expose the response to frontend JavaScript code when the request\'s credentials mode (Request.credentials) is "include".") HTTP header), the resource will be _tainted_ and its usage restricted.\n\nIf the attribute is not present, the resource is fetched without a [CORS](https://developer.mozilla.org/en-US/docs/Glossary/CORS "CORS: CORS (Cross-Origin Resource Sharing) is a system, consisting of transmitting HTTP headers, that determines whether browsers block frontend JavaScript code from accessing responses for cross-origin requests.") request (i.e. without sending the `Origin` HTTP header), preventing its non-tainted usage. If invalid, it is handled as if the enumerated keyword **anonymous** was used. See [CORS settings attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes) for additional information.'}},{name:"rel",description:{kind:"markdown",value:"This attribute names a relationship of the linked document to the current document. The attribute must be a space-separated list of the [link types values](https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types)."}},{name:"media",description:{kind:"markdown",value:"This attribute specifies the media that the linked resource applies to. Its value must be a media type / [media query](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_queries). This attribute is mainly useful when linking to external stylesheets — it allows the user agent to pick the best adapted one for the device it runs on.\n\n**Notes:**\n\n* In HTML 4, this can only be a simple white-space-separated list of media description literals, i.e., [media types and groups](https://developer.mozilla.org/en-US/docs/Web/CSS/@media), where defined and allowed as values for this attribute, such as `print`, `screen`, `aural`, `braille`. HTML5 extended this to any kind of [media queries](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_queries), which are a superset of the allowed values of HTML 4.\n* Browsers not supporting [CSS3 Media Queries](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_queries) won't necessarily recognize the adequate link; do not forget to set fallback links, the restricted set of media queries defined in HTML 4."}},{name:"hreflang",description:{kind:"markdown",value:"This attribute indicates the language of the linked resource. It is purely advisory. Allowed values are determined by [BCP47](https://www.ietf.org/rfc/bcp/bcp47.txt). Use this attribute only if the [`href`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-href) attribute is present."}},{name:"type",description:{kind:"markdown",value:'This attribute is used to define the type of the content linked to. The value of the attribute should be a MIME type such as **text/html**, **text/css**, and so on. The common use of this attribute is to define the type of stylesheet being referenced (such as **text/css**), but given that CSS is the only stylesheet language used on the web, not only is it possible to omit the `type` attribute, but is actually now recommended practice. It is also used on `rel="preload"` link types, to make sure the browser only downloads file types that it supports.'}},{name:"sizes",description:{kind:"markdown",value:"This attribute defines the sizes of the icons for visual media contained in the resource. It must be present only if the [`rel`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-rel) contains a value of `icon` or a non-standard type such as Apple's `apple-touch-icon`. It may have the following values:\n\n* `any`, meaning that the icon can be scaled to any size as it is in a vector format, like `image/svg+xml`.\n* a white-space separated list of sizes, each in the format `_<width in pixels>_x_<height in pixels>_` or `_<width in pixels>_X_<height in pixels>_`. Each of these sizes must be contained in the resource.\n\n**Note:** Most icon formats are only able to store one single icon; therefore most of the time the [`sizes`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-sizes) contains only one entry. MS's ICO format does, as well as Apple's ICNS. ICO is more ubiquitous; you should definitely use it."}},{name:"as",description:'This attribute is only used when `rel="preload"` or `rel="prefetch"` has been set on the `<link>` element. It specifies the type of content being loaded by the `<link>`, which is necessary for content prioritization, request matching, application of correct [content security policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP), and setting of correct [`Accept`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept "The Accept request HTTP header advertises which content types, expressed as MIME types, the client is able to understand. Using content negotiation, the server then selects one of the proposals, uses it and informs the client of its choice with the Content-Type response header. Browsers set adequate values for this header depending on the context where the request is done: when fetching a CSS stylesheet a different value is set for the request than when fetching an image, video or a script.") request header.'},{name:"importance",description:"Indicates the relative importance of the resource. Priority hints are delegated using the values:"},{name:"importance",description:'**`auto`**: Indicates **no preference**. The browser may use its own heuristics to decide the priority of the resource.\n\n**`high`**: Indicates to the browser that the resource is of **high** priority.\n\n**`low`**: Indicates to the browser that the resource is of **low** priority.\n\n**Note:** The `importance` attribute may only be used for the `<link>` element if `rel="preload"` or `rel="prefetch"` is present.'},{name:"integrity",description:"Contains inline metadata — a base64-encoded cryptographic hash of the resource (file) you’re telling the browser to fetch. The browser can use this to verify that the fetched resource has been delivered free of unexpected manipulation. See [Subresource Integrity](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity)."},{name:"referrerpolicy",description:'A string indicating which referrer to use when fetching the resource:\n\n* `no-referrer` means that the [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will not be sent.\n* `no-referrer-when-downgrade` means that no [`Referer`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer "The Referer request header contains the address of the previous web page from which a link to the currently requested page was followed. The Referer header allows servers to identify where people are visiting them from and may use that data for analytics, logging, or optimized caching, for example.") header will be sent when navigating to an origin without TLS (HTTPS). This is a user agent’s default behavior, if no policy is otherwise specified.\n* `origin` means that the referrer will be the origin of the page, which is roughly the scheme, the host, and the port.\n* `origin-when-cross-origin` means that navigating to other origins will be limited to the scheme, the host, and the port, while navigating on the same origin will include the referrer\'s path.\n* `unsafe-url` means that the referrer will include the origin and the path (but not the fragment, password, or username). This case is unsafe because it can leak origins and paths from TLS-protected resources to insecure origins.'},{name:"title",description:'The `title` attribute has special semantics on the `<link>` element. When used on a `<link rel="stylesheet">` it defines a [preferred or an alternate stylesheet](https://developer.mozilla.org/en-US/docs/Web/CSS/Alternative_style_sheets). Incorrectly using it may [cause the stylesheet to be ignored](https://developer.mozilla.org/en-US/docs/Correctly_Using_Titles_With_External_Stylesheets).'}],references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Element/link"}]},{name:"meta",description:{kind:"markdown",value:"The meta element represents various kinds of metadata that cannot be expressed using the title, base, link, style, and script elements."},void:!0,attributes:[{name:"name",description:{kind:"markdown",value:`This attribute defines the name of a piece of document-level metadata. It should not be set if one of the attributes [\`itemprop\`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-itemprop), [\`http-equiv\`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-http-equiv) or [\`charset\`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-charset) is also set.
71
71
 
72
72
  This metadata name is associated with the value contained by the [\`content\`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-content) attribute. The possible values for the name attribute are:
73
73