@scalar/api-client 2.31.3 → 2.33.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. package/CHANGELOG.md +94 -0
  2. package/dist/assets/yaml.worker-CcQnAKCg.js +490 -0
  3. package/dist/style.css +1 -1
  4. package/dist/v2/blocks/request-block/helpers/get-default-headers.js +1 -1
  5. package/dist/v2/features/app/App.vue.d.ts +0 -5
  6. package/dist/v2/features/app/App.vue.d.ts.map +1 -1
  7. package/dist/v2/features/app/App.vue.js +57 -60
  8. package/dist/v2/features/app/app-state.d.ts +17 -2
  9. package/dist/v2/features/app/app-state.d.ts.map +1 -1
  10. package/dist/v2/features/app/app-state.js +117 -105
  11. package/dist/v2/features/app/helpers/create-api-client-app.d.ts.map +1 -1
  12. package/dist/v2/features/app/helpers/create-api-client-app.js +1 -3
  13. package/dist/v2/features/app/helpers/routes.d.ts +17 -0
  14. package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
  15. package/dist/v2/features/app/helpers/routes.js +8 -2
  16. package/dist/v2/features/app/hooks/use-theme.d.ts +14 -0
  17. package/dist/v2/features/app/hooks/use-theme.d.ts.map +1 -1
  18. package/dist/v2/features/app/hooks/use-theme.js +42 -28
  19. package/dist/v2/features/collection/DocumentCollection.vue.js +8 -6
  20. package/dist/v2/features/collection/OperationCollection.vue.js +14 -12
  21. package/dist/v2/features/collection/WorkspaceCollection.vue.js +9 -7
  22. package/dist/v2/features/collection/components/Authentication.vue2.js +19 -17
  23. package/dist/v2/features/collection/components/Cookies.vue.js +10 -8
  24. package/dist/v2/features/collection/components/Editor/Editor.vue.d.ts +16 -0
  25. package/dist/v2/features/collection/components/Editor/Editor.vue.d.ts.map +1 -0
  26. package/dist/v2/features/collection/components/Editor/Editor.vue.js +7 -0
  27. package/dist/v2/features/collection/components/Editor/Editor.vue2.js +333 -0
  28. package/dist/v2/features/collection/components/Editor/components/EditorDiagnosticsPanel.vue.d.ts +19 -0
  29. package/dist/v2/features/collection/components/Editor/components/EditorDiagnosticsPanel.vue.d.ts.map +1 -0
  30. package/dist/v2/features/collection/components/Editor/components/EditorDiagnosticsPanel.vue.js +78 -0
  31. package/dist/v2/features/collection/components/Editor/components/EditorDiagnosticsPanel.vue2.js +4 -0
  32. package/dist/v2/features/collection/components/Editor/components/EditorSavePanel.vue.d.ts +16 -0
  33. package/dist/v2/features/collection/components/Editor/components/EditorSavePanel.vue.d.ts.map +1 -0
  34. package/dist/v2/features/collection/components/Editor/components/EditorSavePanel.vue.js +83 -0
  35. package/dist/v2/features/collection/components/Editor/components/EditorSavePanel.vue2.js +4 -0
  36. package/dist/v2/features/collection/components/Editor/helpers/apply-scalar-theme.d.ts +16 -0
  37. package/dist/v2/features/collection/components/Editor/helpers/apply-scalar-theme.d.ts.map +1 -0
  38. package/dist/v2/features/collection/components/Editor/helpers/apply-scalar-theme.js +56 -0
  39. package/dist/v2/features/collection/components/Editor/helpers/configure-language-support.d.ts +7 -0
  40. package/dist/v2/features/collection/components/Editor/helpers/configure-language-support.d.ts.map +1 -0
  41. package/dist/v2/features/collection/components/Editor/helpers/configure-language-support.js +40 -0
  42. package/dist/v2/features/collection/components/Editor/helpers/ensure-monaco-environment.d.ts +6 -0
  43. package/dist/v2/features/collection/components/Editor/helpers/ensure-monaco-environment.d.ts.map +1 -0
  44. package/dist/v2/features/collection/components/Editor/helpers/ensure-monaco-environment.js +23 -0
  45. package/dist/v2/features/collection/components/Editor/helpers/get-diagnostic-counts.d.ts +12 -0
  46. package/dist/v2/features/collection/components/Editor/helpers/get-diagnostic-counts.d.ts.map +1 -0
  47. package/dist/v2/features/collection/components/Editor/helpers/get-diagnostic-counts.js +10 -0
  48. package/dist/v2/features/collection/components/Editor/helpers/get-json-ast-node-from-path.d.ts +14 -0
  49. package/dist/v2/features/collection/components/Editor/helpers/get-json-ast-node-from-path.d.ts.map +1 -0
  50. package/dist/v2/features/collection/components/Editor/helpers/get-json-ast-node-from-path.js +9 -0
  51. package/dist/v2/features/collection/components/Editor/helpers/get-operation-context.d.ts +11 -0
  52. package/dist/v2/features/collection/components/Editor/helpers/get-operation-context.d.ts.map +1 -0
  53. package/dist/v2/features/collection/components/Editor/helpers/get-operation-context.js +5 -0
  54. package/dist/v2/features/collection/components/Editor/helpers/get-visible-diagnostics.d.ts +7 -0
  55. package/dist/v2/features/collection/components/Editor/helpers/get-visible-diagnostics.d.ts.map +1 -0
  56. package/dist/v2/features/collection/components/Editor/helpers/get-visible-diagnostics.js +5 -0
  57. package/dist/v2/features/collection/components/Editor/helpers/get-yaml-node-range-from-path.d.ts +19 -0
  58. package/dist/v2/features/collection/components/Editor/helpers/get-yaml-node-range-from-path.d.ts.map +1 -0
  59. package/dist/v2/features/collection/components/Editor/helpers/get-yaml-node-range-from-path.js +50 -0
  60. package/dist/v2/features/collection/components/Editor/helpers/json-ast.d.ts +12 -0
  61. package/dist/v2/features/collection/components/Editor/helpers/json-ast.d.ts.map +1 -0
  62. package/dist/v2/features/collection/components/Editor/helpers/json-ast.js +24 -0
  63. package/dist/v2/features/collection/components/Editor/helpers/json-pointer-links.d.ts +15 -0
  64. package/dist/v2/features/collection/components/Editor/helpers/json-pointer-links.d.ts.map +1 -0
  65. package/dist/v2/features/collection/components/Editor/helpers/json-pointer-links.js +72 -0
  66. package/dist/v2/features/collection/components/Editor/helpers/json-pointer-path.d.ts +7 -0
  67. package/dist/v2/features/collection/components/Editor/helpers/json-pointer-path.d.ts.map +1 -0
  68. package/dist/v2/features/collection/components/Editor/helpers/json-pointer-path.js +20 -0
  69. package/dist/v2/features/collection/components/Editor/helpers/load-css-variables.d.ts +14 -0
  70. package/dist/v2/features/collection/components/Editor/helpers/load-css-variables.d.ts.map +1 -0
  71. package/dist/v2/features/collection/components/Editor/helpers/load-css-variables.js +21 -0
  72. package/dist/v2/features/collection/components/Editor/helpers/parse-editor-object.d.ts +10 -0
  73. package/dist/v2/features/collection/components/Editor/helpers/parse-editor-object.d.ts.map +1 -0
  74. package/dist/v2/features/collection/components/Editor/helpers/parse-editor-object.js +21 -0
  75. package/dist/v2/features/collection/components/Editor/helpers/stringify-document.d.ts +10 -0
  76. package/dist/v2/features/collection/components/Editor/helpers/stringify-document.d.ts.map +1 -0
  77. package/dist/v2/features/collection/components/Editor/helpers/stringify-document.js +5 -0
  78. package/dist/v2/features/collection/components/Editor/helpers/yaml.worker.d.ts +2 -0
  79. package/dist/v2/features/collection/components/Editor/helpers/yaml.worker.d.ts.map +1 -0
  80. package/dist/v2/features/collection/components/Editor/helpers/yaml.worker.js +11 -0
  81. package/dist/v2/features/collection/components/Editor/hooks/use-editor-markers.d.ts +152 -0
  82. package/dist/v2/features/collection/components/Editor/hooks/use-editor-markers.d.ts.map +1 -0
  83. package/dist/v2/features/collection/components/Editor/hooks/use-editor-markers.js +34 -0
  84. package/dist/v2/features/collection/components/Editor/hooks/use-editor-state.d.ts +14 -0
  85. package/dist/v2/features/collection/components/Editor/hooks/use-editor-state.d.ts.map +1 -0
  86. package/dist/v2/features/collection/components/Editor/hooks/use-editor-state.js +25 -0
  87. package/dist/v2/features/collection/components/Editor/hooks/use-editor.d.ts +39 -0
  88. package/dist/v2/features/collection/components/Editor/hooks/use-editor.d.ts.map +1 -0
  89. package/dist/v2/features/collection/components/Editor/hooks/use-editor.js +153 -0
  90. package/dist/v2/features/collection/components/Editor/index.d.ts +2 -0
  91. package/dist/v2/features/collection/components/Editor/index.d.ts.map +1 -0
  92. package/dist/v2/features/collection/components/Editor/index.js +4 -0
  93. package/dist/v2/features/collection/components/Editor/schemas/openapi-3.1-schema.json.js +25 -0
  94. package/dist/v2/features/collection/components/Environment.vue.js +8 -6
  95. package/dist/v2/features/collection/components/Overview.vue2.js +16 -14
  96. package/dist/v2/features/collection/components/Servers.vue.js +18 -16
  97. package/dist/v2/features/collection/components/Settings.vue.d.ts.map +1 -1
  98. package/dist/v2/features/collection/components/Settings.vue.js +6 -4
  99. package/dist/v2/features/collection/components/Tabs.vue.js +4 -4
  100. package/dist/v2/features/operation/Operation.vue.js +9 -7
  101. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  102. package/package.json +32 -25
@@ -0,0 +1,490 @@
1
+ (function(){"use strict";var ps,fr;function h1(e,t){return t.forEach(function(n){n&&typeof n!="string"&&!Array.isArray(n)&&Object.keys(n).forEach(function(r){if(r!=="default"&&!(r in e)){var s=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(e,r,s.get?s:{enumerable:!0,get:function(){return n[r]}})}})}),Object.freeze(e)}class m1{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(t){setTimeout(()=>{throw t.stack?fa.isErrorNoTelemetry(t)?new fa(t.message+`
2
+
3
+ `+t.stack):new Error(t.message+`
4
+
5
+ `+t.stack):t},0)}}emit(t){this.listeners.forEach(n=>{n(t)})}onUnexpectedError(t){this.unexpectedErrorHandler(t),this.emit(t)}onUnexpectedExternalError(t){this.unexpectedErrorHandler(t)}}const g1=new m1;function nu(e){y1(e)||g1.onUnexpectedError(e)}function Ul(e){if(e instanceof Error){const{name:t,message:n,cause:r}=e,s=e.stacktrace||e.stack;return{$isError:!0,name:t,message:n,stack:s,noTelemetry:fa.isErrorNoTelemetry(e),cause:r?Ul(r):void 0,code:e.code}}return e}const Wl="Canceled";function y1(e){return e instanceof qp?!0:e instanceof Error&&e.name===Wl&&e.message===Wl}class qp extends Error{constructor(){super(Wl),this.name=this.message}}class fa extends Error{constructor(t){super(t),this.name="CodeExpectedError"}static fromError(t){if(t instanceof fa)return t;const n=new fa;return n.message=t.message,n.stack=t.stack,n}static isErrorNoTelemetry(t){return t.name==="CodeExpectedError"}}class ts extends Error{constructor(t){super(t||"An unexpected bug occurred."),Object.setPrototypeOf(this,ts.prototype)}}function D1(e,t="Unreachable"){throw new Error(t)}function b1(e,t="unexpected state"){if(!e)throw typeof t=="string"?new ts(`Assertion Failed: ${t}`):t}function ru(e){if(!e()){debugger;e(),nu(new ts("Assertion Failed"))}}function Up(e,t){let n=0;for(;n<e.length-1;){const r=e[n],s=e[n+1];if(!t(r,s))return!1;n++}return!0}function v1(e){return typeof e=="string"}function E1(e){return!!e&&typeof e[Symbol.iterator]=="function"}var su;(function(e){function t(Fe){return!!Fe&&typeof Fe=="object"&&typeof Fe[Symbol.iterator]=="function"}e.is=t;const n=Object.freeze([]);function r(){return n}e.empty=r;function*s(Fe){yield Fe}e.single=s;function i(Fe){return t(Fe)?Fe:s(Fe)}e.wrap=i;function a(Fe){return Fe||n}e.from=a;function*o(Fe){for(let Be=Fe.length-1;Be>=0;Be--)yield Fe[Be]}e.reverse=o;function u(Fe){return!Fe||Fe[Symbol.iterator]().next().done===!0}e.isEmpty=u;function l(Fe){return Fe[Symbol.iterator]().next().value}e.first=l;function b(Fe,Be){let xe=0;for(const Je of Fe)if(Be(Je,xe++))return!0;return!1}e.some=b;function c(Fe,Be){let xe=0;for(const Je of Fe)if(!Be(Je,xe++))return!1;return!0}e.every=c;function T(Fe,Be){for(const xe of Fe)if(Be(xe))return xe}e.find=T;function*K(Fe,Be){for(const xe of Fe)Be(xe)&&(yield xe)}e.filter=K;function*ne(Fe,Be){let xe=0;for(const Je of Fe)yield Be(Je,xe++)}e.map=ne;function*O(Fe,Be){let xe=0;for(const Je of Fe)yield*Be(Je,xe++)}e.flatMap=O;function*k(...Fe){for(const Be of Fe)E1(Be)?yield*Be:yield Be}e.concat=k;function me(Fe,Be,xe){let Je=xe;for(const ze of Fe)Je=Be(Je,ze);return Je}e.reduce=me;function Se(Fe){let Be=0;for(const xe of Fe)Be++;return Be}e.length=Se;function*_e(Fe,Be,xe=Fe.length){for(Be<-Fe.length&&(Be=0),Be<0&&(Be+=Fe.length),xe<0?xe+=Fe.length:xe>Fe.length&&(xe=Fe.length);Be<xe;Be++)yield Fe[Be]}e.slice=_e;function Ye(Fe,Be=Number.POSITIVE_INFINITY){const xe=[];if(Be===0)return[xe,Fe];const Je=Fe[Symbol.iterator]();for(let ze=0;ze<Be;ze++){const de=Je.next();if(de.done)return[xe,e.empty()];xe.push(de.value)}return[xe,{[Symbol.iterator](){return Je}}]}e.consume=Ye;async function ve(Fe){const Be=[];for await(const xe of Fe)Be.push(xe);return Be}e.asyncToArray=ve;async function Pe(Fe){let Be=[];for await(const xe of Fe)Be=Be.concat(xe);return Be}e.asyncToArrayFlat=Pe})(su||(su={}));function qw(e,t){}function Wp(e){if(su.is(e)){const t=[];for(const n of e)if(n)try{n.dispose()}catch(r){t.push(r)}if(t.length===1)throw t[0];if(t.length>1)throw new AggregateError(t,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}else if(e)return e.dispose(),e}function A1(...e){return iu(()=>Wp(e))}class w1{constructor(t){this._isDisposed=!1,this._fn=t}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 iu(e){return new w1(e)}const ul=class ul{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{Wp(this._toDispose)}finally{this._toDispose.clear()}}add(t){if(!t||t===Ri.None)return t;if(t===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?ul.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(t),t}delete(t){if(t){if(t===this)throw new Error("Cannot dispose a disposable on itself!");this._toDispose.delete(t),t.dispose()}}};ul.DISABLE_DISPOSED_WARNING=!1;let mo=ul;const Uf=class Uf{constructor(){this._store=new mo,this._store}dispose(){this._store.dispose()}_register(t){if(t===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(t)}};Uf.None=Object.freeze({dispose(){}});let Ri=Uf;const Ha=class Ha{constructor(t){this.element=t,this.next=Ha.Undefined,this.prev=Ha.Undefined}};Ha.Undefined=new Ha(void 0);let kr=Ha;class x1{constructor(){this._first=kr.Undefined,this._last=kr.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===kr.Undefined}clear(){let t=this._first;for(;t!==kr.Undefined;){const n=t.next;t.prev=kr.Undefined,t.next=kr.Undefined,t=n}this._first=kr.Undefined,this._last=kr.Undefined,this._size=0}unshift(t){return this._insert(t,!1)}push(t){return this._insert(t,!0)}_insert(t,n){const r=new kr(t);if(this._first===kr.Undefined)this._first=r,this._last=r;else if(n){const i=this._last;this._last=r,r.prev=i,i.next=r}else{const i=this._first;this._first=r,r.next=i,i.prev=r}this._size+=1;let s=!1;return()=>{s||(s=!0,this._remove(r))}}shift(){if(this._first!==kr.Undefined){const t=this._first.element;return this._remove(this._first),t}}pop(){if(this._last!==kr.Undefined){const t=this._last.element;return this._remove(this._last),t}}_remove(t){if(t.prev!==kr.Undefined&&t.next!==kr.Undefined){const n=t.prev;n.next=t.next,t.next.prev=n}else t.prev===kr.Undefined&&t.next===kr.Undefined?(this._first=kr.Undefined,this._last=kr.Undefined):t.next===kr.Undefined?(this._last=this._last.prev,this._last.next=kr.Undefined):t.prev===kr.Undefined&&(this._first=this._first.next,this._first.prev=kr.Undefined);this._size-=1}*[Symbol.iterator](){let t=this._first;for(;t!==kr.Undefined;)yield t.element,t=t.next}}const C1=globalThis.performance.now.bind(globalThis.performance);class au{static create(t){return new au(t)}constructor(t){this._now=t===!1?Date.now:C1,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 Gl;(function(e){e.None=()=>Ri.None;function t(de,Ze){return T(de,()=>{},0,void 0,!0,void 0,Ze)}e.defer=t;function n(de){return(Ze,at=null,He)=>{let ft=!1,Lt;return Lt=de(qt=>{if(!ft)return Lt?Lt.dispose():ft=!0,Ze.call(at,qt)},null,He),ft&&Lt.dispose(),Lt}}e.once=n;function r(de,Ze){return e.once(e.filter(de,Ze))}e.onceIf=r;function s(de,Ze,at){return b((He,ft=null,Lt)=>de(qt=>He.call(ft,Ze(qt)),null,Lt),at)}e.map=s;function i(de,Ze,at){return b((He,ft=null,Lt)=>de(qt=>{Ze(qt),He.call(ft,qt)},null,Lt),at)}e.forEach=i;function a(de,Ze,at){return b((He,ft=null,Lt)=>de(qt=>Ze(qt)&&He.call(ft,qt),null,Lt),at)}e.filter=a;function o(de){return de}e.signal=o;function u(...de){return(Ze,at=null,He)=>{const ft=A1(...de.map(Lt=>Lt(qt=>Ze.call(at,qt))));return c(ft,He)}}e.any=u;function l(de,Ze,at,He){let ft=at;return s(de,Lt=>(ft=Ze(ft,Lt),ft),He)}e.reduce=l;function b(de,Ze){let at;const He={onWillAddFirstListener(){at=de(ft.fire,ft)},onDidRemoveLastListener(){at?.dispose()}},ft=new Zs(He);return Ze?.add(ft),ft.event}function c(de,Ze){return Ze instanceof Array?Ze.push(de):Ze&&Ze.add(de),de}function T(de,Ze,at=100,He=!1,ft=!1,Lt,qt){let ln,rn,Pn,Gn=0,Sr;const Dr={leakWarningThreshold:Lt,onWillAddFirstListener(){ln=de(js=>{Gn++,rn=Ze(rn,js),He&&!Pn&&(Zr.fire(rn),rn=void 0),Sr=()=>{const Ii=rn;rn=void 0,Pn=void 0,(!He||Gn>1)&&Zr.fire(Ii),Gn=0},typeof at=="number"?(Pn&&clearTimeout(Pn),Pn=setTimeout(Sr,at)):Pn===void 0&&(Pn=null,queueMicrotask(Sr))})},onWillRemoveListener(){ft&&Gn>0&&Sr?.()},onDidRemoveLastListener(){Sr=void 0,ln.dispose()}},Zr=new Zs(Dr);return qt?.add(Zr),Zr.event}e.debounce=T;function K(de,Ze=0,at){return e.debounce(de,(He,ft)=>He?(He.push(ft),He):[ft],Ze,void 0,!0,void 0,at)}e.accumulate=K;function ne(de,Ze=(He,ft)=>He===ft,at){let He=!0,ft;return a(de,Lt=>{const qt=He||!Ze(Lt,ft);return He=!1,ft=Lt,qt},at)}e.latch=ne;function O(de,Ze,at){return[e.filter(de,Ze,at),e.filter(de,He=>!Ze(He),at)]}e.split=O;function k(de,Ze=!1,at=[],He){let ft=at.slice(),Lt=de(rn=>{ft?ft.push(rn):ln.fire(rn)});He&&He.add(Lt);const qt=()=>{ft?.forEach(rn=>ln.fire(rn)),ft=null},ln=new Zs({onWillAddFirstListener(){Lt||(Lt=de(rn=>ln.fire(rn)),He&&He.add(Lt))},onDidAddFirstListener(){ft&&(Ze?setTimeout(qt):qt())},onDidRemoveLastListener(){Lt&&Lt.dispose(),Lt=null}});return He&&He.add(ln),ln.event}e.buffer=k;function me(de,Ze){return(He,ft,Lt)=>{const qt=Ze(new _e);return de(function(ln){const rn=qt.evaluate(ln);rn!==Se&&He.call(ft,rn)},void 0,Lt)}}e.chain=me;const Se=Symbol("HaltChainable");class _e{constructor(){this.steps=[]}map(Ze){return this.steps.push(Ze),this}forEach(Ze){return this.steps.push(at=>(Ze(at),at)),this}filter(Ze){return this.steps.push(at=>Ze(at)?at:Se),this}reduce(Ze,at){let He=at;return this.steps.push(ft=>(He=Ze(He,ft),He)),this}latch(Ze=(at,He)=>at===He){let at=!0,He;return this.steps.push(ft=>{const Lt=at||!Ze(ft,He);return at=!1,He=ft,Lt?ft:Se}),this}evaluate(Ze){for(const at of this.steps)if(Ze=at(Ze),Ze===Se)break;return Ze}}function Ye(de,Ze,at=He=>He){const He=(...ln)=>qt.fire(at(...ln)),ft=()=>de.on(Ze,He),Lt=()=>de.removeListener(Ze,He),qt=new Zs({onWillAddFirstListener:ft,onDidRemoveLastListener:Lt});return qt.event}e.fromNodeEventEmitter=Ye;function ve(de,Ze,at=He=>He){const He=(...ln)=>qt.fire(at(...ln)),ft=()=>de.addEventListener(Ze,He),Lt=()=>de.removeEventListener(Ze,He),qt=new Zs({onWillAddFirstListener:ft,onDidRemoveLastListener:Lt});return qt.event}e.fromDOMEventEmitter=ve;function Pe(de,Ze){let at;const He=new Promise((ft,Lt)=>{const qt=n(de)(ft,null,Ze);at=()=>qt.dispose()});return He.cancel=at,He}e.toPromise=Pe;function Fe(de,Ze){return de(at=>Ze.fire(at))}e.forward=Fe;function Be(de,Ze,at){return Ze(at),de(He=>Ze(He))}e.runAndSubscribe=Be;class xe{constructor(Ze,at){this._observable=Ze,this._counter=0,this._hasChanged=!1;const He={onWillAddFirstListener:()=>{Ze.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{Ze.removeObserver(this)}};this.emitter=new Zs(He),at&&at.add(this.emitter)}beginUpdate(Ze){this._counter++}handlePossibleChange(Ze){}handleChange(Ze,at){this._hasChanged=!0}endUpdate(Ze){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function Je(de,Ze){return new xe(de,Ze).emitter.event}e.fromObservable=Je;function ze(de){return(Ze,at,He)=>{let ft=0,Lt=!1;const qt={beginUpdate(){ft++},endUpdate(){ft--,ft===0&&(de.reportChanges(),Lt&&(Lt=!1,Ze.call(at)))},handlePossibleChange(){},handleChange(){Lt=!0}};de.addObserver(qt),de.reportChanges();const ln={dispose(){de.removeObserver(qt)}};return He instanceof mo?He.add(ln):Array.isArray(He)&&He.push(ln),ln}}e.fromObservableLight=ze})(Gl||(Gl={}));const za=class za{constructor(t){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${t}_${za._idPool++}`,za.all.add(this)}start(t){this._stopWatch=new au,this.listenerCount=t}stop(){if(this._stopWatch){const t=this._stopWatch.elapsed();this.durations.push(t),this.elapsedOverall+=t,this.invocationCount+=1,this._stopWatch=void 0}}};za.all=new Set,za._idPool=0;let Jl=za,S1=-1;const ll=class ll{constructor(t,n,r=(ll._idPool++).toString(16).padStart(3,"0")){this._errorHandler=t,this.threshold=n,this.name=r,this._warnCountdown=0}dispose(){this._stacks?.clear()}check(t,n){const r=this.threshold;if(r<=0||n<r)return;this._stacks||(this._stacks=new Map);const s=this._stacks.get(t.value)||0;if(this._stacks.set(t.value,s+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=r*.5;const[i,a]=this.getMostFrequentStack(),o=`[${this.name}] potential listener LEAK detected, having ${n} listeners already. MOST frequent listener (${a}):`;console.warn(o),console.warn(i);const u=new F1(o,i);this._errorHandler(u)}return()=>{const i=this._stacks.get(t.value)||0;this._stacks.set(t.value,i-1)}}getMostFrequentStack(){if(!this._stacks)return;let t,n=0;for(const[r,s]of this._stacks)(!t||n<s)&&(t=[r,s],n=s);return t}};ll._idPool=1;let Yl=ll;class Hl{static create(){const t=new Error;return new Hl(t.stack??"")}constructor(t){this.value=t}print(){console.warn(this.value.split(`
6
+ `).slice(2).join(`
7
+ `))}}class F1 extends Error{constructor(t,n){super(t),this.name="ListenerLeakError",this.stack=n}}class N1 extends Error{constructor(t,n){super(t),this.name="ListenerRefusalError",this.stack=n}}class zl{constructor(t){this.value=t}}const T1=2;class Zs{constructor(t){this._size=0,this._options=t,this._leakageMon=this._options?.leakWarningThreshold?new Yl(t?.onListenerError??nu,this._options?.leakWarningThreshold??S1):void 0,this._perfMon=this._options?._profName?new Jl(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??=(t,n,r)=>{if(this._leakageMon&&this._size>this._leakageMon.threshold**2){const o=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(o);const u=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],l=new N1(`${o}. HINT: Stack shows most frequent listener (${u[1]}-times)`,u[0]);return(this._options?.onListenerError||nu)(l),Ri.None}if(this._disposed)return Ri.None;n&&(t=t.bind(n));const s=new zl(t);let i;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(s.stack=Hl.create(),i=this._leakageMon.check(s.stack,this._size+1)),this._listeners?this._listeners instanceof zl?(this._deliveryQueue??=new _1,this._listeners=[this._listeners,s]):this._listeners.push(s):(this._options?.onWillAddFirstListener?.(this),this._listeners=s,this._options?.onDidAddFirstListener?.(this)),this._options?.onDidAddListener?.(this),this._size++;const a=iu(()=>{i?.(),this._removeListener(s)});return r instanceof mo?r.add(a):Array.isArray(r)&&r.push(a),a},this._event}_removeListener(t){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,r=n.indexOf(t);if(r===-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[r]=void 0;const s=this._deliveryQueue.current===this;if(this._size*T1<=n.length){let i=0;for(let a=0;a<n.length;a++)n[a]?n[i++]=n[a]:s&&i<this._deliveryQueue.end&&(this._deliveryQueue.end--,i<this._deliveryQueue.i&&this._deliveryQueue.i--);n.length=i}}_deliver(t,n){if(!t)return;const r=this._options?.onListenerError||nu;if(!r){t.value(n);return}try{t.value(n)}catch(s){r(s)}}_deliverQueue(t){const n=t.current._listeners;for(;t.i<t.end;)this._deliver(n[t.i++],t.value);t.reset()}fire(t){if(this._deliveryQueue?.current&&(this._deliverQueue(this._deliveryQueue),this._perfMon?.stop()),this._perfMon?.start(this._size),this._listeners)if(this._listeners instanceof zl)this._deliver(this._listeners,t);else{const n=this._deliveryQueue;n.enqueue(this,t,this._listeners.length),this._deliverQueue(n)}this._perfMon?.stop()}hasListeners(){return this._size>0}}class _1{constructor(){this.i=-1,this.end=0}enqueue(t,n,r){this.i=0,this.end=r,this.current=t,this.value=n}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}function L1(){return globalThis._VSCODE_NLS_MESSAGES}function Gp(){return globalThis._VSCODE_NLS_LANGUAGE}const k1=Gp()==="pseudo"||typeof document<"u"&&document.location&&typeof document.location.hash=="string"&&document.location.hash.indexOf("pseudo=true")>=0;function Jp(e,t){let n;return t.length===0?n=e:n=e.replace(/\{(\d+)\}/g,(r,s)=>{const i=s[0],a=t[i];let o=r;return typeof a=="string"?o=a:(typeof a=="number"||typeof a=="boolean"||a===void 0||a===null)&&(o=String(a)),o}),k1&&(n="["+n.replace(/[aouei]/g,"$&$&")+"]"),n}function Mn(e,t,...n){return Jp(typeof e=="number"?P1(e,t):t,n)}function P1(e,t){const n=L1()?.[e];if(typeof n!="string"){if(typeof t=="string")return t;throw new Error(`!!! NLS MISSING: ${e} !!!`)}return n}const pa="en";let Xl=!1,Ql=!1,Kl=!1,ou,Zl=pa,Yp=pa,B1,oi;const ji=globalThis;let hs;typeof ji.vscode<"u"&&typeof ji.vscode.process<"u"?hs=ji.vscode.process:typeof process<"u"&&typeof process?.versions?.node=="string"&&(hs=process);const M1=typeof hs?.versions?.electron=="string"&&hs?.type==="renderer";if(typeof hs=="object"){Xl=hs.platform==="win32",Ql=hs.platform==="darwin",Kl=hs.platform==="linux",Kl&&hs.env.SNAP&&hs.env.SNAP_REVISION,hs.env.CI||hs.env.BUILD_ARTIFACTSTAGINGDIRECTORY||hs.env.GITHUB_WORKSPACE,ou=pa,Zl=pa;const e=hs.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e);ou=t.userLocale,Yp=t.osLocale,Zl=t.resolvedLanguage||pa,B1=t.languagePack?.translationsConfigFile}catch{}}else typeof navigator=="object"&&!M1?(oi=navigator.userAgent,Xl=oi.indexOf("Windows")>=0,Ql=oi.indexOf("Macintosh")>=0,(oi.indexOf("Macintosh")>=0||oi.indexOf("iPad")>=0||oi.indexOf("iPhone")>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Kl=oi.indexOf("Linux")>=0,oi?.indexOf("Mobi")>=0,Zl=Gp()||pa,ou=navigator.language.toLowerCase(),Yp=ou):console.error("Unable to resolve platform.");const go=Xl,I1=Ql,ei=oi,O1=typeof ji.postMessage=="function"&&!ji.importScripts;(()=>{if(O1){const e=[];ji.addEventListener("message",n=>{if(n.data&&n.data.vscodeScheduleAsyncWork)for(let r=0,s=e.length;r<s;r++){const i=e[r];if(i.id===n.data.vscodeScheduleAsyncWork){e.splice(r,1),i.callback();return}}});let t=0;return n=>{const r=++t;e.push({id:r,callback:n}),ji.postMessage({vscodeScheduleAsyncWork:r},"*")}}return e=>setTimeout(e)})();const R1=!!(ei&&ei.indexOf("Chrome")>=0);ei&&ei.indexOf("Firefox")>=0,!R1&&ei&&ei.indexOf("Safari")>=0,ei&&ei.indexOf("Edg/")>=0,ei&&ei.indexOf("Android")>=0;function j1(e){return e}class $1{constructor(t,n){this.lastCache=void 0,this.lastArgKey=void 0,typeof t=="function"?(this._fn=t,this._computeKey=j1):(this._fn=n,this._computeKey=t.getCacheKey)}get(t){const n=this._computeKey(t);return this.lastArgKey!==n&&(this.lastArgKey=n,this.lastCache=this._fn(t)),this.lastCache}}var $i;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Running=1]="Running",e[e.Completed=2]="Completed"})($i||($i={}));class ec{constructor(t){this.executor=t,this._state=$i.Uninitialized}get value(){if(this._state===$i.Uninitialized){this._state=$i.Running;try{this._value=this.executor()}catch(t){this._error=t}finally{this._state=$i.Completed}}else if(this._state===$i.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 V1(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function q1(e){return e.source==="^"||e.source==="^$"||e.source==="$"||e.source==="^\\s*$"?!1:!!(e.exec("")&&e.lastIndex===0)}function U1(e){return e.split(/\r\n|\r|\n/)}function W1(e){for(let t=0,n=e.length;t<n;t++){const r=e.charCodeAt(t);if(r!==32&&r!==9)return t}return-1}function G1(e,t=e.length-1){for(let n=t;n>=0;n--){const r=e.charCodeAt(n);if(r!==32&&r!==9)return n}return-1}function Hp(e){return e>=65&&e<=90}function J1(e,t){const n=Math.min(e.length,t.length);let r;for(r=0;r<n;r++)if(e.charCodeAt(r)!==t.charCodeAt(r))return r;return n}function Y1(e,t){const n=Math.min(e.length,t.length);let r;const s=e.length-1,i=t.length-1;for(r=0;r<n;r++)if(e.charCodeAt(s-r)!==t.charCodeAt(i-r))return r;return n}function tc(e){return 55296<=e&&e<=56319}function H1(e){return 56320<=e&&e<=57343}function z1(e,t){return(e-55296<<10)+(t-56320)+65536}function X1(e,t,n){const r=e.charCodeAt(n);if(tc(r)&&n+1<t){const s=e.charCodeAt(n+1);if(H1(s))return z1(r,s)}return r}const Q1=/^[\t\n\r\x20-\x7E]*$/;function K1(e){return Q1.test(e)}const si=class si{static getInstance(t){return si.cache.get(Array.from(t))}static getLocales(){return si._locales.value}constructor(t){this.confusableDictionary=t}isAmbiguous(t){return this.confusableDictionary.has(t)}getPrimaryConfusable(t){return this.confusableDictionary.get(t)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}};si.ambiguousCharacterData=new ec(()=>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]}')),si.cache=new $1({getCacheKey:JSON.stringify},t=>{function n(b){const c=new Map;for(let T=0;T<b.length;T+=2)c.set(b[T],b[T+1]);return c}function r(b,c){const T=new Map(b);for(const[K,ne]of c)T.set(K,ne);return T}function s(b,c){if(!b)return c;const T=new Map;for(const[K,ne]of b)c.has(K)&&T.set(K,ne);return T}const i=si.ambiguousCharacterData.value;let a=t.filter(b=>!b.startsWith("_")&&b in i);a.length===0&&(a=["_default"]);let o;for(const b of a){const c=n(i[b]);o=s(o,c)}const u=n(i._common),l=r(u,o);return new si(l)}),si._locales=new ec(()=>Object.keys(si.ambiguousCharacterData.value).filter(t=>!t.startsWith("_")));let yo=si;const Xa=class Xa{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(Xa.getRawData())].flat())),this._data}static isInvisibleCharacter(t){return Xa.getData().has(t)}static get codePoints(){return Xa.getData()}};Xa._data=void 0;let Do=Xa;const nc="default",Z1="$initialize";class ey{constructor(t,n,r,s,i){this.vsWorker=t,this.req=n,this.channel=r,this.method=s,this.args=i,this.type=0}}class zp{constructor(t,n,r,s){this.vsWorker=t,this.seq=n,this.res=r,this.err=s,this.type=1}}class ty{constructor(t,n,r,s,i){this.vsWorker=t,this.req=n,this.channel=r,this.eventName=s,this.arg=i,this.type=2}}class ny{constructor(t,n,r){this.vsWorker=t,this.req=n,this.event=r,this.type=3}}class ry{constructor(t,n){this.vsWorker=t,this.req=n,this.type=4}}class sy{constructor(t){this._workerId=-1,this._handler=t,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(t){this._workerId=t}sendMessage(t,n,r){const s=String(++this._lastSentReq);return new Promise((i,a)=>{this._pendingReplies[s]={resolve:i,reject:a},this._send(new ey(this._workerId,s,t,n,r))})}listen(t,n,r){let s=null;const i=new Zs({onWillAddFirstListener:()=>{s=String(++this._lastSentReq),this._pendingEmitters.set(s,i),this._send(new ty(this._workerId,s,t,n,r))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(s),this._send(new ry(this._workerId,s)),s=null}});return i.event}handleMessage(t){!t||!t.vsWorker||this._workerId!==-1&&t.vsWorker!==this._workerId||this._handleMessage(t)}createProxyToRemoteChannel(t,n){const r={get:(s,i)=>(typeof i=="string"&&!s[i]&&(Qp(i)?s[i]=a=>this.listen(t,i,a):Xp(i)?s[i]=this.listen(t,i,void 0):i.charCodeAt(0)===36&&(s[i]=async(...a)=>(await n?.(),this.sendMessage(t,i,a)))),s[i])};return new Proxy(Object.create(null),r)}_handleMessage(t){switch(t.type){case 1:return this._handleReplyMessage(t);case 0:return this._handleRequestMessage(t);case 2:return this._handleSubscribeEventMessage(t);case 3:return this._handleEventMessage(t);case 4:return this._handleUnsubscribeEventMessage(t)}}_handleReplyMessage(t){if(!this._pendingReplies[t.seq]){console.warn("Got reply to unknown seq");return}const n=this._pendingReplies[t.seq];if(delete this._pendingReplies[t.seq],t.err){let r=t.err;t.err.$isError&&(r=new Error,r.name=t.err.name,r.message=t.err.message,r.stack=t.err.stack),n.reject(r);return}n.resolve(t.res)}_handleRequestMessage(t){const n=t.req;this._handler.handleMessage(t.channel,t.method,t.args).then(s=>{this._send(new zp(this._workerId,n,s,void 0))},s=>{s.detail instanceof Error&&(s.detail=Ul(s.detail)),this._send(new zp(this._workerId,n,void 0,Ul(s)))})}_handleSubscribeEventMessage(t){const n=t.req,r=this._handler.handleEvent(t.channel,t.eventName,t.arg)(s=>{this._send(new ny(this._workerId,n,s))});this._pendingEvents.set(n,r)}_handleEventMessage(t){if(!this._pendingEmitters.has(t.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(t.req).fire(t.event)}_handleUnsubscribeEventMessage(t){if(!this._pendingEvents.has(t.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(t.req).dispose(),this._pendingEvents.delete(t.req)}_send(t){const n=[];if(t.type===0)for(let r=0;r<t.args.length;r++)t.args[r]instanceof ArrayBuffer&&n.push(t.args[r]);else t.type===1&&t.res instanceof ArrayBuffer&&n.push(t.res);this._handler.sendMessage(t,n)}}function Xp(e){return e[0]==="o"&&e[1]==="n"&&Hp(e.charCodeAt(2))}function Qp(e){return/^onDynamic/.test(e)&&Hp(e.charCodeAt(9))}class iy{constructor(t,n){this._localChannels=new Map,this._remoteChannels=new Map,this._protocol=new sy({sendMessage:(r,s)=>{t(r,s)},handleMessage:(r,s,i)=>this._handleMessage(r,s,i),handleEvent:(r,s,i)=>this._handleEvent(r,s,i)}),this.requestHandler=n(this)}onmessage(t){this._protocol.handleMessage(t)}_handleMessage(t,n,r){if(t===nc&&n===Z1)return this.initialize(r[0]);const s=t===nc?this.requestHandler:this._localChannels.get(t);if(!s)return Promise.reject(new Error(`Missing channel ${t} on worker thread`));if(typeof s[n]!="function")return Promise.reject(new Error(`Missing method ${n} on worker thread channel ${t}`));try{return Promise.resolve(s[n].apply(s,r))}catch(i){return Promise.reject(i)}}_handleEvent(t,n,r){const s=t===nc?this.requestHandler:this._localChannels.get(t);if(!s)throw new Error(`Missing channel ${t} on worker thread`);if(Qp(n)){const i=s[n].call(s,r);if(typeof i!="function")throw new Error(`Missing dynamic event ${n} on request handler.`);return i}if(Xp(n)){const i=s[n];if(typeof i!="function")throw new Error(`Missing event ${n} on request handler.`);return i}throw new Error(`Malformed event name ${n}`)}getChannel(t){if(!this._remoteChannels.has(t)){const n=this._protocol.createProxyToRemoteChannel(t);this._remoteChannels.set(t,n)}return this._remoteChannels.get(t)}async initialize(t){this._protocol.setWorkerId(t)}}let Kp=!1;function ay(e){if(Kp)throw new Error("WebWorker already initialized!");Kp=!0;const t=new iy(n=>globalThis.postMessage(n),n=>e(n));return globalThis.onmessage=n=>{t.onmessage(n.data)},t}class xi{constructor(t,n,r,s){this.originalStart=t,this.originalLength=n,this.modifiedStart=r,this.modifiedLength=s}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}new ec(()=>new Uint8Array(256));function Zp(e,t){return(t<<5)-t+e|0}function oy(e,t){t=Zp(149417,t);for(let n=0,r=e.length;n<r;n++)t=Zp(e.charCodeAt(n),t);return t}class ed{constructor(t){this.source=t}getElements(){const t=this.source,n=new Int32Array(t.length);for(let r=0,s=t.length;r<s;r++)n[r]=t.charCodeAt(r);return n}}function uy(e,t,n){return new Ci(new ed(e),new ed(t)).ComputeDiff(n).changes}class da{static Assert(t,n){if(!t)throw new Error(n)}}class ha{static Copy(t,n,r,s,i){for(let a=0;a<i;a++)r[s+a]=t[n+a]}static Copy2(t,n,r,s,i){for(let a=0;a<i;a++)r[s+a]=t[n+a]}}class td{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 xi(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(t,n){this.m_originalStart=Math.min(this.m_originalStart,t),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_originalCount++}AddModifiedElement(t,n){this.m_originalStart=Math.min(this.m_originalStart,t),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 Ci{constructor(t,n,r=null){this.ContinueProcessingPredicate=r,this._originalSequence=t,this._modifiedSequence=n;const[s,i,a]=Ci._getElements(t),[o,u,l]=Ci._getElements(n);this._hasStrings=a&&l,this._originalStringElements=s,this._originalElementsOrHash=i,this._modifiedStringElements=o,this._modifiedElementsOrHash=u,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(t){return t.length>0&&typeof t[0]=="string"}static _getElements(t){const n=t.getElements();if(Ci._isStringArray(n)){const r=new Int32Array(n.length);for(let s=0,i=n.length;s<i;s++)r[s]=oy(n[s],0);return[n,r,!0]}return n instanceof Int32Array?[[],n,!1]:[[],new Int32Array(n),!1]}ElementsAreEqual(t,n){return this._originalElementsOrHash[t]!==this._modifiedElementsOrHash[n]?!1:this._hasStrings?this._originalStringElements[t]===this._modifiedStringElements[n]:!0}ElementsAreStrictEqual(t,n){if(!this.ElementsAreEqual(t,n))return!1;const r=Ci._getStrictElement(this._originalSequence,t),s=Ci._getStrictElement(this._modifiedSequence,n);return r===s}static _getStrictElement(t,n){return typeof t.getStrictElement=="function"?t.getStrictElement(n):null}OriginalElementsAreEqual(t,n){return this._originalElementsOrHash[t]!==this._originalElementsOrHash[n]?!1:this._hasStrings?this._originalStringElements[t]===this._originalStringElements[n]:!0}ModifiedElementsAreEqual(t,n){return this._modifiedElementsOrHash[t]!==this._modifiedElementsOrHash[n]?!1:this._hasStrings?this._modifiedStringElements[t]===this._modifiedStringElements[n]:!0}ComputeDiff(t){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,t)}_ComputeDiff(t,n,r,s,i){const a=[!1];let o=this.ComputeDiffRecursive(t,n,r,s,a);return i&&(o=this.PrettifyChanges(o)),{quitEarly:a[0],changes:o}}ComputeDiffRecursive(t,n,r,s,i){for(i[0]=!1;t<=n&&r<=s&&this.ElementsAreEqual(t,r);)t++,r++;for(;n>=t&&s>=r&&this.ElementsAreEqual(n,s);)n--,s--;if(t>n||r>s){let c;return r<=s?(da.Assert(t===n+1,"originalStart should only be one more than originalEnd"),c=[new xi(t,0,r,s-r+1)]):t<=n?(da.Assert(r===s+1,"modifiedStart should only be one more than modifiedEnd"),c=[new xi(t,n-t+1,r,0)]):(da.Assert(t===n+1,"originalStart should only be one more than originalEnd"),da.Assert(r===s+1,"modifiedStart should only be one more than modifiedEnd"),c=[]),c}const a=[0],o=[0],u=this.ComputeRecursionPoint(t,n,r,s,a,o,i),l=a[0],b=o[0];if(u!==null)return u;if(!i[0]){const c=this.ComputeDiffRecursive(t,l,r,b,i);let T=[];return i[0]?T=[new xi(l+1,n-(l+1)+1,b+1,s-(b+1)+1)]:T=this.ComputeDiffRecursive(l+1,n,b+1,s,i),this.ConcatenateChanges(c,T)}return[new xi(t,n-t+1,r,s-r+1)]}WALKTRACE(t,n,r,s,i,a,o,u,l,b,c,T,K,ne,O,k,me,Se){let _e=null,Ye=null,ve=new td,Pe=n,Fe=r,Be=K[0]-k[0]-s,xe=-1073741824,Je=this.m_forwardHistory.length-1;do{const ze=Be+t;ze===Pe||ze<Fe&&l[ze-1]<l[ze+1]?(c=l[ze+1],ne=c-Be-s,c<xe&&ve.MarkNextChange(),xe=c,ve.AddModifiedElement(c+1,ne),Be=ze+1-t):(c=l[ze-1]+1,ne=c-Be-s,c<xe&&ve.MarkNextChange(),xe=c-1,ve.AddOriginalElement(c,ne+1),Be=ze-1-t),Je>=0&&(l=this.m_forwardHistory[Je],t=l[0],Pe=1,Fe=l.length-1)}while(--Je>=-1);if(_e=ve.getReverseChanges(),Se[0]){let ze=K[0]+1,de=k[0]+1;if(_e!==null&&_e.length>0){const Ze=_e[_e.length-1];ze=Math.max(ze,Ze.getOriginalEnd()),de=Math.max(de,Ze.getModifiedEnd())}Ye=[new xi(ze,T-ze+1,de,O-de+1)]}else{ve=new td,Pe=a,Fe=o,Be=K[0]-k[0]-u,xe=1073741824,Je=me?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const ze=Be+i;ze===Pe||ze<Fe&&b[ze-1]>=b[ze+1]?(c=b[ze+1]-1,ne=c-Be-u,c>xe&&ve.MarkNextChange(),xe=c+1,ve.AddOriginalElement(c+1,ne+1),Be=ze+1-i):(c=b[ze-1],ne=c-Be-u,c>xe&&ve.MarkNextChange(),xe=c,ve.AddModifiedElement(c+1,ne+1),Be=ze-1-i),Je>=0&&(b=this.m_reverseHistory[Je],i=b[0],Pe=1,Fe=b.length-1)}while(--Je>=-1);Ye=ve.getChanges()}return this.ConcatenateChanges(_e,Ye)}ComputeRecursionPoint(t,n,r,s,i,a,o){let u=0,l=0,b=0,c=0,T=0,K=0;t--,r--,i[0]=0,a[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const ne=n-t+(s-r),O=ne+1,k=new Int32Array(O),me=new Int32Array(O),Se=s-r,_e=n-t,Ye=t-r,ve=n-s,Fe=(_e-Se)%2===0;k[Se]=t,me[_e]=n,o[0]=!1;for(let Be=1;Be<=ne/2+1;Be++){let xe=0,Je=0;b=this.ClipDiagonalBound(Se-Be,Be,Se,O),c=this.ClipDiagonalBound(Se+Be,Be,Se,O);for(let de=b;de<=c;de+=2){de===b||de<c&&k[de-1]<k[de+1]?u=k[de+1]:u=k[de-1]+1,l=u-(de-Se)-Ye;const Ze=u;for(;u<n&&l<s&&this.ElementsAreEqual(u+1,l+1);)u++,l++;if(k[de]=u,u+l>xe+Je&&(xe=u,Je=l),!Fe&&Math.abs(de-_e)<=Be-1&&u>=me[de])return i[0]=u,a[0]=l,Ze<=me[de]&&Be<=1448?this.WALKTRACE(Se,b,c,Ye,_e,T,K,ve,k,me,u,n,i,l,s,a,Fe,o):null}const ze=(xe-t+(Je-r)-Be)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(xe,ze))return o[0]=!0,i[0]=xe,a[0]=Je,ze>0&&Be<=1448?this.WALKTRACE(Se,b,c,Ye,_e,T,K,ve,k,me,u,n,i,l,s,a,Fe,o):(t++,r++,[new xi(t,n-t+1,r,s-r+1)]);T=this.ClipDiagonalBound(_e-Be,Be,_e,O),K=this.ClipDiagonalBound(_e+Be,Be,_e,O);for(let de=T;de<=K;de+=2){de===T||de<K&&me[de-1]>=me[de+1]?u=me[de+1]-1:u=me[de-1],l=u-(de-_e)-ve;const Ze=u;for(;u>t&&l>r&&this.ElementsAreEqual(u,l);)u--,l--;if(me[de]=u,Fe&&Math.abs(de-Se)<=Be&&u<=k[de])return i[0]=u,a[0]=l,Ze>=k[de]&&Be<=1448?this.WALKTRACE(Se,b,c,Ye,_e,T,K,ve,k,me,u,n,i,l,s,a,Fe,o):null}if(Be<=1447){let de=new Int32Array(c-b+2);de[0]=Se-b+1,ha.Copy2(k,b,de,1,c-b+1),this.m_forwardHistory.push(de),de=new Int32Array(K-T+2),de[0]=_e-T+1,ha.Copy2(me,T,de,1,K-T+1),this.m_reverseHistory.push(de)}}return this.WALKTRACE(Se,b,c,Ye,_e,T,K,ve,k,me,u,n,i,l,s,a,Fe,o)}PrettifyChanges(t){for(let n=0;n<t.length;n++){const r=t[n],s=n<t.length-1?t[n+1].originalStart:this._originalElementsOrHash.length,i=n<t.length-1?t[n+1].modifiedStart:this._modifiedElementsOrHash.length,a=r.originalLength>0,o=r.modifiedLength>0;for(;r.originalStart+r.originalLength<s&&r.modifiedStart+r.modifiedLength<i&&(!a||this.OriginalElementsAreEqual(r.originalStart,r.originalStart+r.originalLength))&&(!o||this.ModifiedElementsAreEqual(r.modifiedStart,r.modifiedStart+r.modifiedLength));){const l=this.ElementsAreStrictEqual(r.originalStart,r.modifiedStart);if(this.ElementsAreStrictEqual(r.originalStart+r.originalLength,r.modifiedStart+r.modifiedLength)&&!l)break;r.originalStart++,r.modifiedStart++}const u=[null];if(n<t.length-1&&this.ChangesOverlap(t[n],t[n+1],u)){t[n]=u[0],t.splice(n+1,1),n--;continue}}for(let n=t.length-1;n>=0;n--){const r=t[n];let s=0,i=0;if(n>0){const c=t[n-1];s=c.originalStart+c.originalLength,i=c.modifiedStart+c.modifiedLength}const a=r.originalLength>0,o=r.modifiedLength>0;let u=0,l=this._boundaryScore(r.originalStart,r.originalLength,r.modifiedStart,r.modifiedLength);for(let c=1;;c++){const T=r.originalStart-c,K=r.modifiedStart-c;if(T<s||K<i||a&&!this.OriginalElementsAreEqual(T,T+r.originalLength)||o&&!this.ModifiedElementsAreEqual(K,K+r.modifiedLength))break;const O=(T===s&&K===i?5:0)+this._boundaryScore(T,r.originalLength,K,r.modifiedLength);O>l&&(l=O,u=c)}r.originalStart-=u,r.modifiedStart-=u;const b=[null];if(n>0&&this.ChangesOverlap(t[n-1],t[n],b)){t[n-1]=b[0],t.splice(n,1),n++;continue}}if(this._hasStrings)for(let n=1,r=t.length;n<r;n++){const s=t[n-1],i=t[n],a=i.originalStart-s.originalStart-s.originalLength,o=s.originalStart,u=i.originalStart+i.originalLength,l=u-o,b=s.modifiedStart,c=i.modifiedStart+i.modifiedLength,T=c-b;if(a<5&&l<20&&T<20){const K=this._findBetterContiguousSequence(o,l,b,T,a);if(K){const[ne,O]=K;(ne!==s.originalStart+s.originalLength||O!==s.modifiedStart+s.modifiedLength)&&(s.originalLength=ne-s.originalStart,s.modifiedLength=O-s.modifiedStart,i.originalStart=ne+a,i.modifiedStart=O+a,i.originalLength=u-i.originalStart,i.modifiedLength=c-i.modifiedStart)}}}return t}_findBetterContiguousSequence(t,n,r,s,i){if(n<i||s<i)return null;const a=t+n-i+1,o=r+s-i+1;let u=0,l=0,b=0;for(let c=t;c<a;c++)for(let T=r;T<o;T++){const K=this._contiguousSequenceScore(c,T,i);K>0&&K>u&&(u=K,l=c,b=T)}return u>0?[l,b]:null}_contiguousSequenceScore(t,n,r){let s=0;for(let i=0;i<r;i++){if(!this.ElementsAreEqual(t+i,n+i))return 0;s+=this._originalStringElements[t+i].length}return s}_OriginalIsBoundary(t){return t<=0||t>=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[t])}_OriginalRegionIsBoundary(t,n){if(this._OriginalIsBoundary(t)||this._OriginalIsBoundary(t-1))return!0;if(n>0){const r=t+n;if(this._OriginalIsBoundary(r-1)||this._OriginalIsBoundary(r))return!0}return!1}_ModifiedIsBoundary(t){return t<=0||t>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[t])}_ModifiedRegionIsBoundary(t,n){if(this._ModifiedIsBoundary(t)||this._ModifiedIsBoundary(t-1))return!0;if(n>0){const r=t+n;if(this._ModifiedIsBoundary(r-1)||this._ModifiedIsBoundary(r))return!0}return!1}_boundaryScore(t,n,r,s){const i=this._OriginalRegionIsBoundary(t,n)?1:0,a=this._ModifiedRegionIsBoundary(r,s)?1:0;return i+a}ConcatenateChanges(t,n){const r=[];if(t.length===0||n.length===0)return n.length>0?n:t;if(this.ChangesOverlap(t[t.length-1],n[0],r)){const s=new Array(t.length+n.length-1);return ha.Copy(t,0,s,0,t.length-1),s[t.length-1]=r[0],ha.Copy(n,1,s,t.length,n.length-1),s}else{const s=new Array(t.length+n.length);return ha.Copy(t,0,s,0,t.length),ha.Copy(n,0,s,t.length,n.length),s}}ChangesOverlap(t,n,r){if(da.Assert(t.originalStart<=n.originalStart,"Left change is not less than or equal to right change"),da.Assert(t.modifiedStart<=n.modifiedStart,"Left change is not less than or equal to right change"),t.originalStart+t.originalLength>=n.originalStart||t.modifiedStart+t.modifiedLength>=n.modifiedStart){const s=t.originalStart;let i=t.originalLength;const a=t.modifiedStart;let o=t.modifiedLength;return t.originalStart+t.originalLength>=n.originalStart&&(i=n.originalStart+n.originalLength-t.originalStart),t.modifiedStart+t.modifiedLength>=n.modifiedStart&&(o=n.modifiedStart+n.modifiedLength-t.modifiedStart),r[0]=new xi(s,i,a,o),!0}else return r[0]=null,!1}ClipDiagonalBound(t,n,r,s){if(t>=0&&t<s)return t;const i=r,a=s-r-1,o=n%2===0;if(t<0){const u=i%2===0;return o===u?0:1}else{const u=a%2===0;return o===u?s-1:s-2}}}let Cr=class ca{constructor(t,n){this.lineNumber=t,this.column=n}with(t=this.lineNumber,n=this.column){return t===this.lineNumber&&n===this.column?this:new ca(t,n)}delta(t=0,n=0){return this.with(Math.max(1,this.lineNumber+t),Math.max(1,this.column+n))}equals(t){return ca.equals(this,t)}static equals(t,n){return!t&&!n?!0:!!t&&!!n&&t.lineNumber===n.lineNumber&&t.column===n.column}isBefore(t){return ca.isBefore(this,t)}static isBefore(t,n){return t.lineNumber<n.lineNumber?!0:n.lineNumber<t.lineNumber?!1:t.column<n.column}isBeforeOrEqual(t){return ca.isBeforeOrEqual(this,t)}static isBeforeOrEqual(t,n){return t.lineNumber<n.lineNumber?!0:n.lineNumber<t.lineNumber?!1:t.column<=n.column}static compare(t,n){const r=t.lineNumber|0,s=n.lineNumber|0;if(r===s){const i=t.column|0,a=n.column|0;return i-a}return r-s}clone(){return new ca(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(t){return new ca(t.lineNumber,t.column)}static isIPosition(t){return t&&typeof t.lineNumber=="number"&&typeof t.column=="number"}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}},Zn=class Gr{constructor(t,n,r,s){t>r||t===r&&n>s?(this.startLineNumber=r,this.startColumn=s,this.endLineNumber=t,this.endColumn=n):(this.startLineNumber=t,this.startColumn=n,this.endLineNumber=r,this.endColumn=s)}isEmpty(){return Gr.isEmpty(this)}static isEmpty(t){return t.startLineNumber===t.endLineNumber&&t.startColumn===t.endColumn}containsPosition(t){return Gr.containsPosition(this,t)}static containsPosition(t,n){return!(n.lineNumber<t.startLineNumber||n.lineNumber>t.endLineNumber||n.lineNumber===t.startLineNumber&&n.column<t.startColumn||n.lineNumber===t.endLineNumber&&n.column>t.endColumn)}static strictContainsPosition(t,n){return!(n.lineNumber<t.startLineNumber||n.lineNumber>t.endLineNumber||n.lineNumber===t.startLineNumber&&n.column<=t.startColumn||n.lineNumber===t.endLineNumber&&n.column>=t.endColumn)}containsRange(t){return Gr.containsRange(this,t)}static containsRange(t,n){return!(n.startLineNumber<t.startLineNumber||n.endLineNumber<t.startLineNumber||n.startLineNumber>t.endLineNumber||n.endLineNumber>t.endLineNumber||n.startLineNumber===t.startLineNumber&&n.startColumn<t.startColumn||n.endLineNumber===t.endLineNumber&&n.endColumn>t.endColumn)}strictContainsRange(t){return Gr.strictContainsRange(this,t)}static strictContainsRange(t,n){return!(n.startLineNumber<t.startLineNumber||n.endLineNumber<t.startLineNumber||n.startLineNumber>t.endLineNumber||n.endLineNumber>t.endLineNumber||n.startLineNumber===t.startLineNumber&&n.startColumn<=t.startColumn||n.endLineNumber===t.endLineNumber&&n.endColumn>=t.endColumn)}plusRange(t){return Gr.plusRange(this,t)}static plusRange(t,n){let r,s,i,a;return n.startLineNumber<t.startLineNumber?(r=n.startLineNumber,s=n.startColumn):n.startLineNumber===t.startLineNumber?(r=n.startLineNumber,s=Math.min(n.startColumn,t.startColumn)):(r=t.startLineNumber,s=t.startColumn),n.endLineNumber>t.endLineNumber?(i=n.endLineNumber,a=n.endColumn):n.endLineNumber===t.endLineNumber?(i=n.endLineNumber,a=Math.max(n.endColumn,t.endColumn)):(i=t.endLineNumber,a=t.endColumn),new Gr(r,s,i,a)}intersectRanges(t){return Gr.intersectRanges(this,t)}static intersectRanges(t,n){let r=t.startLineNumber,s=t.startColumn,i=t.endLineNumber,a=t.endColumn;const o=n.startLineNumber,u=n.startColumn,l=n.endLineNumber,b=n.endColumn;return r<o?(r=o,s=u):r===o&&(s=Math.max(s,u)),i>l?(i=l,a=b):i===l&&(a=Math.min(a,b)),r>i||r===i&&s>a?null:new Gr(r,s,i,a)}equalsRange(t){return Gr.equalsRange(this,t)}static equalsRange(t,n){return!t&&!n?!0:!!t&&!!n&&t.startLineNumber===n.startLineNumber&&t.startColumn===n.startColumn&&t.endLineNumber===n.endLineNumber&&t.endColumn===n.endColumn}getEndPosition(){return Gr.getEndPosition(this)}static getEndPosition(t){return new Cr(t.endLineNumber,t.endColumn)}getStartPosition(){return Gr.getStartPosition(this)}static getStartPosition(t){return new Cr(t.startLineNumber,t.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(t,n){return new Gr(this.startLineNumber,this.startColumn,t,n)}setStartPosition(t,n){return new Gr(t,n,this.endLineNumber,this.endColumn)}collapseToStart(){return Gr.collapseToStart(this)}static collapseToStart(t){return new Gr(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn)}collapseToEnd(){return Gr.collapseToEnd(this)}static collapseToEnd(t){return new Gr(t.endLineNumber,t.endColumn,t.endLineNumber,t.endColumn)}delta(t){return new Gr(this.startLineNumber+t,this.startColumn,this.endLineNumber+t,this.endColumn)}isSingleLine(){return this.startLineNumber===this.endLineNumber}static fromPositions(t,n=t){return new Gr(t.lineNumber,t.column,n.lineNumber,n.column)}static lift(t){return t?new Gr(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):null}static isIRange(t){return t&&typeof t.startLineNumber=="number"&&typeof t.startColumn=="number"&&typeof t.endLineNumber=="number"&&typeof t.endColumn=="number"}static areIntersectingOrTouching(t,n){return!(t.endLineNumber<n.startLineNumber||t.endLineNumber===n.startLineNumber&&t.endColumn<n.startColumn||n.endLineNumber<t.startLineNumber||n.endLineNumber===t.startLineNumber&&n.endColumn<t.startColumn)}static areIntersecting(t,n){return!(t.endLineNumber<n.startLineNumber||t.endLineNumber===n.startLineNumber&&t.endColumn<=n.startColumn||n.endLineNumber<t.startLineNumber||n.endLineNumber===t.startLineNumber&&n.endColumn<=t.startColumn)}static areOnlyIntersecting(t,n){return!(t.endLineNumber<n.startLineNumber-1||t.endLineNumber===n.startLineNumber&&t.endColumn<n.startColumn-1||n.endLineNumber<t.startLineNumber-1||n.endLineNumber===t.startLineNumber&&n.endColumn<t.startColumn-1)}static compareRangesUsingStarts(t,n){if(t&&n){const i=t.startLineNumber|0,a=n.startLineNumber|0;if(i===a){const o=t.startColumn|0,u=n.startColumn|0;if(o===u){const l=t.endLineNumber|0,b=n.endLineNumber|0;if(l===b){const c=t.endColumn|0,T=n.endColumn|0;return c-T}return l-b}return o-u}return i-a}return(t?1:0)-(n?1:0)}static compareRangesUsingEnds(t,n){return t.endLineNumber===n.endLineNumber?t.endColumn===n.endColumn?t.startLineNumber===n.startLineNumber?t.startColumn-n.startColumn:t.startLineNumber-n.startLineNumber:t.endColumn-n.endColumn:t.endLineNumber-n.endLineNumber}static spansMultipleLines(t){return t.endLineNumber>t.startLineNumber}toJSON(){return this}};function nd(e){return e<0?0:e>255?255:e|0}function ma(e){return e<0?0:e>4294967295?4294967295:e|0}class rc{constructor(t){const n=nd(t);this._defaultValue=n,this._asciiMap=rc._createAsciiMap(n),this._map=new Map}static _createAsciiMap(t){const n=new Uint8Array(256);return n.fill(t),n}set(t,n){const r=nd(n);t>=0&&t<256?this._asciiMap[t]=r:this._map.set(t,r)}get(t){return t>=0&&t<256?this._asciiMap[t]:this._map.get(t)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}class ly{constructor(t,n,r){const s=new Uint8Array(t*n);for(let i=0,a=t*n;i<a;i++)s[i]=r;this._data=s,this.rows=t,this.cols=n}get(t,n){return this._data[t*this.cols+n]}set(t,n,r){this._data[t*this.cols+n]=r}}class cy{constructor(t){let n=0,r=0;for(let i=0,a=t.length;i<a;i++){const[o,u,l]=t[i];u>n&&(n=u),o>r&&(r=o),l>r&&(r=l)}n++,r++;const s=new ly(r,n,0);for(let i=0,a=t.length;i<a;i++){const[o,u,l]=t[i];s.set(o,u,l)}this._states=s,this._maxCharCode=n}nextState(t,n){return n<0||n>=this._maxCharCode?0:this._states.get(t,n)}}let sc=null;function fy(){return sc===null&&(sc=new cy([[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]])),sc}let bo=null;function py(){if(bo===null){bo=new rc(0);const e=` <>'"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…|`;for(let n=0;n<e.length;n++)bo.set(e.charCodeAt(n),1);const t=".,;:";for(let n=0;n<t.length;n++)bo.set(t.charCodeAt(n),2)}return bo}class uu{static _createLink(t,n,r,s,i){let a=i-1;do{const o=n.charCodeAt(a);if(t.get(o)!==2)break;a--}while(a>s);if(s>0){const o=n.charCodeAt(s-1),u=n.charCodeAt(a);(o===40&&u===41||o===91&&u===93||o===123&&u===125)&&a--}return{range:{startLineNumber:r,startColumn:s+1,endLineNumber:r,endColumn:a+2},url:n.substring(s,a+1)}}static computeLinks(t,n=fy()){const r=py(),s=[];for(let i=1,a=t.getLineCount();i<=a;i++){const o=t.getLineContent(i),u=o.length;let l=0,b=0,c=0,T=1,K=!1,ne=!1,O=!1,k=!1;for(;l<u;){let me=!1;const Se=o.charCodeAt(l);if(T===13){let _e;switch(Se){case 40:K=!0,_e=0;break;case 41:_e=K?0:1;break;case 91:O=!0,ne=!0,_e=0;break;case 93:O=!1,_e=ne?0:1;break;case 123:k=!0,_e=0;break;case 125:_e=k?0:1;break;case 39:case 34:case 96:c===Se?_e=1:c===39||c===34||c===96?_e=0:_e=1;break;case 42:_e=c===42?1:0;break;case 32:_e=O?0:1;break;default:_e=r.get(Se)}_e===1&&(s.push(uu._createLink(r,o,i,b,l)),me=!0)}else if(T===12){let _e;Se===91?(ne=!0,_e=0):_e=r.get(Se),_e===1?me=!0:T=13}else T=n.nextState(T,Se),T===0&&(me=!0);me&&(T=1,K=!1,ne=!1,k=!1,b=l+1,c=Se),l++}T===13&&s.push(uu._createLink(r,o,i,b,u))}return s}}function dy(e){return!e||typeof e.getLineCount!="function"||typeof e.getLineContent!="function"?[]:uu.computeLinks(e)}const cl=class cl{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(t,n,r,s,i){if(t&&n){const a=this.doNavigateValueSet(n,i);if(a)return{range:t,value:a}}if(r&&s){const a=this.doNavigateValueSet(s,i);if(a)return{range:r,value:a}}return null}doNavigateValueSet(t,n){const r=this.numberReplace(t,n);return r!==null?r:this.textReplace(t,n)}numberReplace(t,n){const r=Math.pow(10,t.length-(t.lastIndexOf(".")+1));let s=Number(t);const i=parseFloat(t);return!isNaN(s)&&!isNaN(i)&&s===i?s===0&&!n?null:(s=Math.floor(s*r),s+=n?r:-r,String(s/r)):null}textReplace(t,n){return this.valueSetsReplace(this._defaultValueSet,t,n)}valueSetsReplace(t,n,r){let s=null;for(let i=0,a=t.length;s===null&&i<a;i++)s=this.valueSetReplace(t[i],n,r);return s}valueSetReplace(t,n,r){let s=t.indexOf(n);return s>=0?(s+=r?1:-1,s<0?s=t.length-1:s%=t.length,t[s]):null}};cl.INSTANCE=new cl;let ic=cl;const rd=Object.freeze(function(e,t){const n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}});var lu;(function(e){function t(n){return n===e.None||n===e.Cancelled||n instanceof cu?!0:!n||typeof n!="object"?!1:typeof n.isCancellationRequested=="boolean"&&typeof n.onCancellationRequested=="function"}e.isCancellationToken=t,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Gl.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:rd})})(lu||(lu={}));class cu{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?rd:(this._emitter||(this._emitter=new Zs),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class hy{constructor(t){this._token=void 0,this._parentListener=void 0,this._parentListener=t&&t.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new cu),this._token}cancel(){this._token?this._token instanceof cu&&this._token.cancel():this._token=lu.Cancelled}dispose(t=!1){t&&this.cancel(),this._parentListener?.dispose(),this._token?this._token instanceof cu&&this._token.dispose():this._token=lu.None}}class ac{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(t,n){this._keyCodeToStr[t]=n,this._strToKeyCode[n.toLowerCase()]=t}keyCodeToStr(t){return this._keyCodeToStr[t]}strToKeyCode(t){return this._strToKeyCode[t.toLowerCase()]||0}}const fu=new ac,oc=new ac,uc=new ac,my=new Array(230),gy=Object.create(null),yy=Object.create(null);(function(){const t=[[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=[],r=[];for(const s of t){const[i,a,o,u,l,b,c,T,K]=s;if(r[a]||(r[a]=!0,gy[o]=a,yy[o.toLowerCase()]=a),!n[u]){if(n[u]=!0,!l)throw new Error(`String representation missing for key code ${u} around scan code ${o}`);fu.define(u,l),oc.define(u,T||l),uc.define(u,K||T||l)}b&&(my[b]=u)}})();var sd;(function(e){function t(o){return fu.keyCodeToStr(o)}e.toString=t;function n(o){return fu.strToKeyCode(o)}e.fromString=n;function r(o){return oc.keyCodeToStr(o)}e.toUserSettingsUS=r;function s(o){return uc.keyCodeToStr(o)}e.toUserSettingsGeneral=s;function i(o){return oc.strToKeyCode(o)||uc.strToKeyCode(o)}e.fromUserSettings=i;function a(o){if(o>=98&&o<=113)return null;switch(o){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return fu.keyCodeToStr(o)}e.toElectronAccelerator=a})(sd||(sd={}));function Dy(e,t){const n=(t&65535)<<16>>>0;return(e|n)>>>0}let ga;const lc=globalThis.vscode;if(typeof lc<"u"&&typeof lc.process<"u"){const e=lc.process;ga={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd(){return e.cwd()}}}else typeof process<"u"&&typeof process?.versions?.node=="string"?ga={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:ga={get platform(){return go?"win32":I1?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const pu=ga.cwd,by=ga.env,vy=ga.platform,Ey=65,Ay=97,wy=90,xy=122,Vi=46,Xr=47,ms=92,ui=58,Cy=63;class id extends Error{constructor(t,n,r){let s;typeof n=="string"&&n.indexOf("not ")===0?(s="must not be",n=n.replace(/^not /,"")):s="must be";const i=t.indexOf(".")!==-1?"property":"argument";let a=`The "${t}" ${i} ${s} of type ${n}`;a+=`. Received type ${typeof r}`,super(a),this.code="ERR_INVALID_ARG_TYPE"}}function Sy(e,t){if(e===null||typeof e!="object")throw new id(t,"Object",e)}function Rr(e,t){if(typeof e!="string")throw new id(t,"string",e)}const Si=vy==="win32";function er(e){return e===Xr||e===ms}function cc(e){return e===Xr}function li(e){return e>=Ey&&e<=wy||e>=Ay&&e<=xy}function du(e,t,n,r){let s="",i=0,a=-1,o=0,u=0;for(let l=0;l<=e.length;++l){if(l<e.length)u=e.charCodeAt(l);else{if(r(u))break;u=Xr}if(r(u)){if(!(a===l-1||o===1))if(o===2){if(s.length<2||i!==2||s.charCodeAt(s.length-1)!==Vi||s.charCodeAt(s.length-2)!==Vi){if(s.length>2){const b=s.lastIndexOf(n);b===-1?(s="",i=0):(s=s.slice(0,b),i=s.length-1-s.lastIndexOf(n)),a=l,o=0;continue}else if(s.length!==0){s="",i=0,a=l,o=0;continue}}t&&(s+=s.length>0?`${n}..`:"..",i=2)}else s.length>0?s+=`${n}${e.slice(a+1,l)}`:s=e.slice(a+1,l),i=l-a-1;a=l,o=0}else u===Vi&&o!==-1?++o:o=-1}return s}function Fy(e){return e?`${e[0]==="."?"":"."}${e}`:""}function ad(e,t){Sy(t,"pathObject");const n=t.dir||t.root,r=t.base||`${t.name||""}${Fy(t.ext)}`;return n?n===t.root?`${n}${r}`:`${n}${e}${r}`:r}const os={resolve(...e){let t="",n="",r=!1;for(let s=e.length-1;s>=-1;s--){let i;if(s>=0){if(i=e[s],Rr(i,`paths[${s}]`),i.length===0)continue}else t.length===0?i=pu():(i=by[`=${t}`]||pu(),(i===void 0||i.slice(0,2).toLowerCase()!==t.toLowerCase()&&i.charCodeAt(2)===ms)&&(i=`${t}\\`));const a=i.length;let o=0,u="",l=!1;const b=i.charCodeAt(0);if(a===1)er(b)&&(o=1,l=!0);else if(er(b))if(l=!0,er(i.charCodeAt(1))){let c=2,T=c;for(;c<a&&!er(i.charCodeAt(c));)c++;if(c<a&&c!==T){const K=i.slice(T,c);for(T=c;c<a&&er(i.charCodeAt(c));)c++;if(c<a&&c!==T){for(T=c;c<a&&!er(i.charCodeAt(c));)c++;(c===a||c!==T)&&(u=`\\\\${K}\\${i.slice(T,c)}`,o=c)}}}else o=1;else li(b)&&i.charCodeAt(1)===ui&&(u=i.slice(0,2),o=2,a>2&&er(i.charCodeAt(2))&&(l=!0,o=3));if(u.length>0)if(t.length>0){if(u.toLowerCase()!==t.toLowerCase())continue}else t=u;if(r){if(t.length>0)break}else if(n=`${i.slice(o)}\\${n}`,r=l,l&&t.length>0)break}return n=du(n,!r,"\\",er),r?`${t}\\${n}`:`${t}${n}`||"."},normalize(e){Rr(e,"path");const t=e.length;if(t===0)return".";let n=0,r,s=!1;const i=e.charCodeAt(0);if(t===1)return cc(i)?"\\":e;if(er(i))if(s=!0,er(e.charCodeAt(1))){let o=2,u=o;for(;o<t&&!er(e.charCodeAt(o));)o++;if(o<t&&o!==u){const l=e.slice(u,o);for(u=o;o<t&&er(e.charCodeAt(o));)o++;if(o<t&&o!==u){for(u=o;o<t&&!er(e.charCodeAt(o));)o++;if(o===t)return`\\\\${l}\\${e.slice(u)}\\`;o!==u&&(r=`\\\\${l}\\${e.slice(u,o)}`,n=o)}}}else n=1;else li(i)&&e.charCodeAt(1)===ui&&(r=e.slice(0,2),n=2,t>2&&er(e.charCodeAt(2))&&(s=!0,n=3));let a=n<t?du(e.slice(n),!s,"\\",er):"";if(a.length===0&&!s&&(a="."),a.length>0&&er(e.charCodeAt(t-1))&&(a+="\\"),!s&&r===void 0&&e.includes(":")){if(a.length>=2&&li(a.charCodeAt(0))&&a.charCodeAt(1)===ui)return`.\\${a}`;let o=e.indexOf(":");do if(o===t-1||er(e.charCodeAt(o+1)))return`.\\${a}`;while((o=e.indexOf(":",o+1))!==-1)}return r===void 0?s?`\\${a}`:a:s?`${r}\\${a}`:`${r}${a}`},isAbsolute(e){Rr(e,"path");const t=e.length;if(t===0)return!1;const n=e.charCodeAt(0);return er(n)||t>2&&li(n)&&e.charCodeAt(1)===ui&&er(e.charCodeAt(2))},join(...e){if(e.length===0)return".";let t,n;for(let i=0;i<e.length;++i){const a=e[i];Rr(a,"path"),a.length>0&&(t===void 0?t=n=a:t+=`\\${a}`)}if(t===void 0)return".";let r=!0,s=0;if(typeof n=="string"&&er(n.charCodeAt(0))){++s;const i=n.length;i>1&&er(n.charCodeAt(1))&&(++s,i>2&&(er(n.charCodeAt(2))?++s:r=!1))}if(r){for(;s<t.length&&er(t.charCodeAt(s));)s++;s>=2&&(t=`\\${t.slice(s)}`)}return os.normalize(t)},relative(e,t){if(Rr(e,"from"),Rr(t,"to"),e===t)return"";const n=os.resolve(e),r=os.resolve(t);if(n===r||(e=n.toLowerCase(),t=r.toLowerCase(),e===t))return"";if(n.length!==e.length||r.length!==t.length){const ne=n.split("\\"),O=r.split("\\");ne[ne.length-1]===""&&ne.pop(),O[O.length-1]===""&&O.pop();const k=ne.length,me=O.length,Se=k<me?k:me;let _e;for(_e=0;_e<Se&&ne[_e].toLowerCase()===O[_e].toLowerCase();_e++);return _e===0?r:_e===Se?me>Se?O.slice(_e).join("\\"):k>Se?"..\\".repeat(k-1-_e)+"..":"":"..\\".repeat(k-_e)+O.slice(_e).join("\\")}let s=0;for(;s<e.length&&e.charCodeAt(s)===ms;)s++;let i=e.length;for(;i-1>s&&e.charCodeAt(i-1)===ms;)i--;const a=i-s;let o=0;for(;o<t.length&&t.charCodeAt(o)===ms;)o++;let u=t.length;for(;u-1>o&&t.charCodeAt(u-1)===ms;)u--;const l=u-o,b=a<l?a:l;let c=-1,T=0;for(;T<b;T++){const ne=e.charCodeAt(s+T);if(ne!==t.charCodeAt(o+T))break;ne===ms&&(c=T)}if(T!==b){if(c===-1)return r}else{if(l>b){if(t.charCodeAt(o+T)===ms)return r.slice(o+T+1);if(T===2)return r.slice(o+T)}a>b&&(e.charCodeAt(s+T)===ms?c=T:T===2&&(c=3)),c===-1&&(c=0)}let K="";for(T=s+c+1;T<=i;++T)(T===i||e.charCodeAt(T)===ms)&&(K+=K.length===0?"..":"\\..");return o+=c,K.length>0?`${K}${r.slice(o,u)}`:(r.charCodeAt(o)===ms&&++o,r.slice(o,u))},toNamespacedPath(e){if(typeof e!="string"||e.length===0)return e;const t=os.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===ms){if(t.charCodeAt(1)===ms){const n=t.charCodeAt(2);if(n!==Cy&&n!==Vi)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(li(t.charCodeAt(0))&&t.charCodeAt(1)===ui&&t.charCodeAt(2)===ms)return`\\\\?\\${t}`;return t},dirname(e){Rr(e,"path");const t=e.length;if(t===0)return".";let n=-1,r=0;const s=e.charCodeAt(0);if(t===1)return er(s)?e:".";if(er(s)){if(n=r=1,er(e.charCodeAt(1))){let o=2,u=o;for(;o<t&&!er(e.charCodeAt(o));)o++;if(o<t&&o!==u){for(u=o;o<t&&er(e.charCodeAt(o));)o++;if(o<t&&o!==u){for(u=o;o<t&&!er(e.charCodeAt(o));)o++;if(o===t)return e;o!==u&&(n=r=o+1)}}}}else li(s)&&e.charCodeAt(1)===ui&&(n=t>2&&er(e.charCodeAt(2))?3:2,r=n);let i=-1,a=!0;for(let o=t-1;o>=r;--o)if(er(e.charCodeAt(o))){if(!a){i=o;break}}else a=!1;if(i===-1){if(n===-1)return".";i=n}return e.slice(0,i)},basename(e,t){t!==void 0&&Rr(t,"suffix"),Rr(e,"path");let n=0,r=-1,s=!0,i;if(e.length>=2&&li(e.charCodeAt(0))&&e.charCodeAt(1)===ui&&(n=2),t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let a=t.length-1,o=-1;for(i=e.length-1;i>=n;--i){const u=e.charCodeAt(i);if(er(u)){if(!s){n=i+1;break}}else o===-1&&(s=!1,o=i+1),a>=0&&(u===t.charCodeAt(a)?--a===-1&&(r=i):(a=-1,r=o))}return n===r?r=o:r===-1&&(r=e.length),e.slice(n,r)}for(i=e.length-1;i>=n;--i)if(er(e.charCodeAt(i))){if(!s){n=i+1;break}}else r===-1&&(s=!1,r=i+1);return r===-1?"":e.slice(n,r)},extname(e){Rr(e,"path");let t=0,n=-1,r=0,s=-1,i=!0,a=0;e.length>=2&&e.charCodeAt(1)===ui&&li(e.charCodeAt(0))&&(t=r=2);for(let o=e.length-1;o>=t;--o){const u=e.charCodeAt(o);if(er(u)){if(!i){r=o+1;break}continue}s===-1&&(i=!1,s=o+1),u===Vi?n===-1?n=o:a!==1&&(a=1):n!==-1&&(a=-1)}return n===-1||s===-1||a===0||a===1&&n===s-1&&n===r+1?"":e.slice(n,s)},format:ad.bind(null,"\\"),parse(e){Rr(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;const n=e.length;let r=0,s=e.charCodeAt(0);if(n===1)return er(s)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(er(s)){if(r=1,er(e.charCodeAt(1))){let c=2,T=c;for(;c<n&&!er(e.charCodeAt(c));)c++;if(c<n&&c!==T){for(T=c;c<n&&er(e.charCodeAt(c));)c++;if(c<n&&c!==T){for(T=c;c<n&&!er(e.charCodeAt(c));)c++;c===n?r=c:c!==T&&(r=c+1)}}}}else if(li(s)&&e.charCodeAt(1)===ui){if(n<=2)return t.root=t.dir=e,t;if(r=2,er(e.charCodeAt(2))){if(n===3)return t.root=t.dir=e,t;r=3}}r>0&&(t.root=e.slice(0,r));let i=-1,a=r,o=-1,u=!0,l=e.length-1,b=0;for(;l>=r;--l){if(s=e.charCodeAt(l),er(s)){if(!u){a=l+1;break}continue}o===-1&&(u=!1,o=l+1),s===Vi?i===-1?i=l:b!==1&&(b=1):i!==-1&&(b=-1)}return o!==-1&&(i===-1||b===0||b===1&&i===o-1&&i===a+1?t.base=t.name=e.slice(a,o):(t.name=e.slice(a,i),t.base=e.slice(a,o),t.ext=e.slice(i,o))),a>0&&a!==r?t.dir=e.slice(0,a-1):t.dir=t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},Ny=(()=>{if(Si){const e=/\\/g;return()=>{const t=pu().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>pu()})(),gs={resolve(...e){let t="",n=!1;for(let r=e.length-1;r>=0&&!n;r--){const s=e[r];Rr(s,`paths[${r}]`),s.length!==0&&(t=`${s}/${t}`,n=s.charCodeAt(0)===Xr)}if(!n){const r=Ny();t=`${r}/${t}`,n=r.charCodeAt(0)===Xr}return t=du(t,!n,"/",cc),n?`/${t}`:t.length>0?t:"."},normalize(e){if(Rr(e,"path"),e.length===0)return".";const t=e.charCodeAt(0)===Xr,n=e.charCodeAt(e.length-1)===Xr;return e=du(e,!t,"/",cc),e.length===0?t?"/":n?"./":".":(n&&(e+="/"),t?`/${e}`:e)},isAbsolute(e){return Rr(e,"path"),e.length>0&&e.charCodeAt(0)===Xr},join(...e){if(e.length===0)return".";const t=[];for(let n=0;n<e.length;++n){const r=e[n];Rr(r,"path"),r.length>0&&t.push(r)}return t.length===0?".":gs.normalize(t.join("/"))},relative(e,t){if(Rr(e,"from"),Rr(t,"to"),e===t||(e=gs.resolve(e),t=gs.resolve(t),e===t))return"";const n=1,r=e.length,s=r-n,i=1,a=t.length-i,o=s<a?s:a;let u=-1,l=0;for(;l<o;l++){const c=e.charCodeAt(n+l);if(c!==t.charCodeAt(i+l))break;c===Xr&&(u=l)}if(l===o)if(a>o){if(t.charCodeAt(i+l)===Xr)return t.slice(i+l+1);if(l===0)return t.slice(i+l)}else s>o&&(e.charCodeAt(n+l)===Xr?u=l:l===0&&(u=0));let b="";for(l=n+u+1;l<=r;++l)(l===r||e.charCodeAt(l)===Xr)&&(b+=b.length===0?"..":"/..");return`${b}${t.slice(i+u)}`},toNamespacedPath(e){return e},dirname(e){if(Rr(e,"path"),e.length===0)return".";const t=e.charCodeAt(0)===Xr;let n=-1,r=!0;for(let s=e.length-1;s>=1;--s)if(e.charCodeAt(s)===Xr){if(!r){n=s;break}}else r=!1;return n===-1?t?"/":".":t&&n===1?"//":e.slice(0,n)},basename(e,t){t!==void 0&&Rr(t,"suffix"),Rr(e,"path");let n=0,r=-1,s=!0,i;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let a=t.length-1,o=-1;for(i=e.length-1;i>=0;--i){const u=e.charCodeAt(i);if(u===Xr){if(!s){n=i+1;break}}else o===-1&&(s=!1,o=i+1),a>=0&&(u===t.charCodeAt(a)?--a===-1&&(r=i):(a=-1,r=o))}return n===r?r=o:r===-1&&(r=e.length),e.slice(n,r)}for(i=e.length-1;i>=0;--i)if(e.charCodeAt(i)===Xr){if(!s){n=i+1;break}}else r===-1&&(s=!1,r=i+1);return r===-1?"":e.slice(n,r)},extname(e){Rr(e,"path");let t=-1,n=0,r=-1,s=!0,i=0;for(let a=e.length-1;a>=0;--a){const o=e[a];if(o==="/"){if(!s){n=a+1;break}continue}r===-1&&(s=!1,r=a+1),o==="."?t===-1?t=a:i!==1&&(i=1):t!==-1&&(i=-1)}return t===-1||r===-1||i===0||i===1&&t===r-1&&t===n+1?"":e.slice(t,r)},format:ad.bind(null,"/"),parse(e){Rr(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;const n=e.charCodeAt(0)===Xr;let r;n?(t.root="/",r=1):r=0;let s=-1,i=0,a=-1,o=!0,u=e.length-1,l=0;for(;u>=r;--u){const b=e.charCodeAt(u);if(b===Xr){if(!o){i=u+1;break}continue}a===-1&&(o=!1,a=u+1),b===Vi?s===-1?s=u:l!==1&&(l=1):s!==-1&&(l=-1)}if(a!==-1){const b=i===0&&n?1:i;s===-1||l===0||l===1&&s===a-1&&s===i+1?t.base=t.name=e.slice(b,a):(t.name=e.slice(b,s),t.base=e.slice(b,a),t.ext=e.slice(s,a))}return i>0?t.dir=e.slice(0,i-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};gs.win32=os.win32=os,gs.posix=os.posix=gs,Si?os.normalize:gs.normalize,Si?os.resolve:gs.resolve,Si?os.relative:gs.relative,Si?os.dirname:gs.dirname,Si?os.basename:gs.basename,Si?os.extname:gs.extname,Si?os.sep:gs.sep;const Ty=/^\w[\w\d+.-]*$/,_y=/^\//,Ly=/^\/\//;function ky(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!Ty.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path){if(e.authority){if(!_y.test(e.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(Ly.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function Py(e,t){return!e&&!t?"file":e}function By(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==qs&&(t=qs+t):t=qs;break}return t}const Fr="",qs="/",My=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;let fc=class ql{static isUri(t){return t instanceof ql?!0:!t||typeof t!="object"?!1:typeof t.authority=="string"&&typeof t.fragment=="string"&&typeof t.path=="string"&&typeof t.query=="string"&&typeof t.scheme=="string"&&typeof t.fsPath=="string"&&typeof t.with=="function"&&typeof t.toString=="function"}constructor(t,n,r,s,i,a=!1){typeof t=="object"?(this.scheme=t.scheme||Fr,this.authority=t.authority||Fr,this.path=t.path||Fr,this.query=t.query||Fr,this.fragment=t.fragment||Fr):(this.scheme=Py(t,a),this.authority=n||Fr,this.path=By(this.scheme,r||Fr),this.query=s||Fr,this.fragment=i||Fr,ky(this,a))}get fsPath(){return pc(this,!1)}with(t){if(!t)return this;let{scheme:n,authority:r,path:s,query:i,fragment:a}=t;return n===void 0?n=this.scheme:n===null&&(n=Fr),r===void 0?r=this.authority:r===null&&(r=Fr),s===void 0?s=this.path:s===null&&(s=Fr),i===void 0?i=this.query:i===null&&(i=Fr),a===void 0?a=this.fragment:a===null&&(a=Fr),n===this.scheme&&r===this.authority&&s===this.path&&i===this.query&&a===this.fragment?this:new ya(n,r,s,i,a)}static parse(t,n=!1){const r=My.exec(t);return r?new ya(r[2]||Fr,hu(r[4]||Fr),hu(r[5]||Fr),hu(r[7]||Fr),hu(r[9]||Fr),n):new ya(Fr,Fr,Fr,Fr,Fr)}static file(t){let n=Fr;if(go&&(t=t.replace(/\\/g,qs)),t[0]===qs&&t[1]===qs){const r=t.indexOf(qs,2);r===-1?(n=t.substring(2),t=qs):(n=t.substring(2,r),t=t.substring(r)||qs)}return new ya("file",n,t,Fr,Fr)}static from(t,n){return new ya(t.scheme,t.authority,t.path,t.query,t.fragment,n)}static joinPath(t,...n){if(!t.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let r;return go&&t.scheme==="file"?r=ql.file(os.join(pc(t,!0),...n)).path:r=gs.join(t.path,...n),t.with({path:r})}toString(t=!1){return dc(this,t)}toJSON(){return this}static revive(t){if(t){if(t instanceof ql)return t;{const n=new ya(t);return n._formatted=t.external??null,n._fsPath=t._sep===od?t.fsPath??null:null,n}}else return t}};const od=go?1:void 0;class ya extends fc{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=pc(this,!1)),this._fsPath}toString(t=!1){return t?dc(this,!0):(this._formatted||(this._formatted=dc(this,!1)),this._formatted)}toJSON(){const t={$mid:1};return this._fsPath&&(t.fsPath=this._fsPath,t._sep=od),this._formatted&&(t.external=this._formatted),this.path&&(t.path=this.path),this.scheme&&(t.scheme=this.scheme),this.authority&&(t.authority=this.authority),this.query&&(t.query=this.query),this.fragment&&(t.fragment=this.fragment),t}}const ud={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 ld(e,t,n){let r,s=-1;for(let i=0;i<e.length;i++){const a=e.charCodeAt(i);if(a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||a===45||a===46||a===95||a===126||t&&a===47||n&&a===91||n&&a===93||n&&a===58)s!==-1&&(r+=encodeURIComponent(e.substring(s,i)),s=-1),r!==void 0&&(r+=e.charAt(i));else{r===void 0&&(r=e.substr(0,i));const o=ud[a];o!==void 0?(s!==-1&&(r+=encodeURIComponent(e.substring(s,i)),s=-1),r+=o):s===-1&&(s=i)}}return s!==-1&&(r+=encodeURIComponent(e.substring(s))),r!==void 0?r:e}function Iy(e){let t;for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);r===35||r===63?(t===void 0&&(t=e.substr(0,n)),t+=ud[r]):t!==void 0&&(t+=e[n])}return t!==void 0?t:e}function pc(e,t){let n;return e.authority&&e.path.length>1&&e.scheme==="file"?n=`//${e.authority}${e.path}`:e.path.charCodeAt(0)===47&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&e.path.charCodeAt(2)===58?t?n=e.path.substr(1):n=e.path[1].toLowerCase()+e.path.substr(2):n=e.path,go&&(n=n.replace(/\//g,"\\")),n}function dc(e,t){const n=t?Iy:ld;let r="",{scheme:s,authority:i,path:a,query:o,fragment:u}=e;if(s&&(r+=s,r+=":"),(i||s==="file")&&(r+=qs,r+=qs),i){let l=i.indexOf("@");if(l!==-1){const b=i.substr(0,l);i=i.substr(l+1),l=b.lastIndexOf(":"),l===-1?r+=n(b,!1,!1):(r+=n(b.substr(0,l),!1,!1),r+=":",r+=n(b.substr(l+1),!1,!0)),r+="@"}i=i.toLowerCase(),l=i.lastIndexOf(":"),l===-1?r+=n(i,!1,!0):(r+=n(i.substr(0,l),!1,!0),r+=i.substr(l))}if(a){if(a.length>=3&&a.charCodeAt(0)===47&&a.charCodeAt(2)===58){const l=a.charCodeAt(1);l>=65&&l<=90&&(a=`/${String.fromCharCode(l+32)}:${a.substr(3)}`)}else if(a.length>=2&&a.charCodeAt(1)===58){const l=a.charCodeAt(0);l>=65&&l<=90&&(a=`${String.fromCharCode(l+32)}:${a.substr(2)}`)}r+=n(a,!0,!1)}return o&&(r+="?",r+=n(o,!1,!1)),u&&(r+="#",r+=t?u:ld(u,!1,!1)),r}function cd(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+cd(e.substr(3)):e}}const fd=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function hu(e){return e.match(fd)?e.replace(fd,t=>cd(t)):e}class ws extends Zn{constructor(t,n,r,s){super(t,n,r,s),this.selectionStartLineNumber=t,this.selectionStartColumn=n,this.positionLineNumber=r,this.positionColumn=s}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(t){return ws.selectionsEqual(this,t)}static selectionsEqual(t,n){return t.selectionStartLineNumber===n.selectionStartLineNumber&&t.selectionStartColumn===n.selectionStartColumn&&t.positionLineNumber===n.positionLineNumber&&t.positionColumn===n.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(t,n){return this.getDirection()===0?new ws(this.startLineNumber,this.startColumn,t,n):new ws(t,n,this.startLineNumber,this.startColumn)}getPosition(){return new Cr(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new Cr(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(t,n){return this.getDirection()===0?new ws(t,n,this.endLineNumber,this.endColumn):new ws(this.endLineNumber,this.endColumn,t,n)}static fromPositions(t,n=t){return new ws(t.lineNumber,t.column,n.lineNumber,n.column)}static fromRange(t,n){return n===0?new ws(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):new ws(t.endLineNumber,t.endColumn,t.startLineNumber,t.startColumn)}static liftSelection(t){return new ws(t.selectionStartLineNumber,t.selectionStartColumn,t.positionLineNumber,t.positionColumn)}static selectionsArrEqual(t,n){if(t&&!n||!t&&n)return!1;if(!t&&!n)return!0;if(t.length!==n.length)return!1;for(let r=0,s=t.length;r<s;r++)if(!this.selectionsEqual(t[r],n[r]))return!1;return!0}static isISelection(t){return t&&typeof t.selectionStartLineNumber=="number"&&typeof t.selectionStartColumn=="number"&&typeof t.positionLineNumber=="number"&&typeof t.positionColumn=="number"}static createWithDirection(t,n,r,s,i){return i===0?new ws(t,n,r,s):new ws(r,s,t,n)}}const pd=Object.create(null);function w(e,t){if(v1(t)){const n=pd[t];if(n===void 0)throw new Error(`${e} references an unknown codicon: ${t}`);t=n}return pd[e]=t,{id:e}}const Oy={add:w("add",6e4),plus:w("plus",6e4),gistNew:w("gist-new",6e4),repoCreate:w("repo-create",6e4),lightbulb:w("lightbulb",60001),lightBulb:w("light-bulb",60001),repo:w("repo",60002),repoDelete:w("repo-delete",60002),gistFork:w("gist-fork",60003),repoForked:w("repo-forked",60003),gitPullRequest:w("git-pull-request",60004),gitPullRequestAbandoned:w("git-pull-request-abandoned",60004),recordKeys:w("record-keys",60005),keyboard:w("keyboard",60005),tag:w("tag",60006),gitPullRequestLabel:w("git-pull-request-label",60006),tagAdd:w("tag-add",60006),tagRemove:w("tag-remove",60006),person:w("person",60007),personFollow:w("person-follow",60007),personOutline:w("person-outline",60007),personFilled:w("person-filled",60007),gitBranch:w("git-branch",60008),gitBranchCreate:w("git-branch-create",60008),gitBranchDelete:w("git-branch-delete",60008),sourceControl:w("source-control",60008),mirror:w("mirror",60009),mirrorPublic:w("mirror-public",60009),star:w("star",60010),starAdd:w("star-add",60010),starDelete:w("star-delete",60010),starEmpty:w("star-empty",60010),comment:w("comment",60011),commentAdd:w("comment-add",60011),alert:w("alert",60012),warning:w("warning",60012),search:w("search",60013),searchSave:w("search-save",60013),logOut:w("log-out",60014),signOut:w("sign-out",60014),logIn:w("log-in",60015),signIn:w("sign-in",60015),eye:w("eye",60016),eyeUnwatch:w("eye-unwatch",60016),eyeWatch:w("eye-watch",60016),circleFilled:w("circle-filled",60017),primitiveDot:w("primitive-dot",60017),closeDirty:w("close-dirty",60017),debugBreakpoint:w("debug-breakpoint",60017),debugBreakpointDisabled:w("debug-breakpoint-disabled",60017),debugHint:w("debug-hint",60017),terminalDecorationSuccess:w("terminal-decoration-success",60017),primitiveSquare:w("primitive-square",60018),edit:w("edit",60019),pencil:w("pencil",60019),info:w("info",60020),issueOpened:w("issue-opened",60020),gistPrivate:w("gist-private",60021),gitForkPrivate:w("git-fork-private",60021),lock:w("lock",60021),mirrorPrivate:w("mirror-private",60021),close:w("close",60022),removeClose:w("remove-close",60022),x:w("x",60022),repoSync:w("repo-sync",60023),sync:w("sync",60023),clone:w("clone",60024),desktopDownload:w("desktop-download",60024),beaker:w("beaker",60025),microscope:w("microscope",60025),vm:w("vm",60026),deviceDesktop:w("device-desktop",60026),file:w("file",60027),fileText:w("file-text",60027),more:w("more",60028),ellipsis:w("ellipsis",60028),kebabHorizontal:w("kebab-horizontal",60028),mailReply:w("mail-reply",60029),reply:w("reply",60029),organization:w("organization",60030),organizationFilled:w("organization-filled",60030),organizationOutline:w("organization-outline",60030),newFile:w("new-file",60031),fileAdd:w("file-add",60031),newFolder:w("new-folder",60032),fileDirectoryCreate:w("file-directory-create",60032),trash:w("trash",60033),trashcan:w("trashcan",60033),history:w("history",60034),clock:w("clock",60034),folder:w("folder",60035),fileDirectory:w("file-directory",60035),symbolFolder:w("symbol-folder",60035),logoGithub:w("logo-github",60036),markGithub:w("mark-github",60036),github:w("github",60036),terminal:w("terminal",60037),console:w("console",60037),repl:w("repl",60037),zap:w("zap",60038),symbolEvent:w("symbol-event",60038),error:w("error",60039),stop:w("stop",60039),variable:w("variable",60040),symbolVariable:w("symbol-variable",60040),array:w("array",60042),symbolArray:w("symbol-array",60042),symbolModule:w("symbol-module",60043),symbolPackage:w("symbol-package",60043),symbolNamespace:w("symbol-namespace",60043),symbolObject:w("symbol-object",60043),symbolMethod:w("symbol-method",60044),symbolFunction:w("symbol-function",60044),symbolConstructor:w("symbol-constructor",60044),symbolBoolean:w("symbol-boolean",60047),symbolNull:w("symbol-null",60047),symbolNumeric:w("symbol-numeric",60048),symbolNumber:w("symbol-number",60048),symbolStructure:w("symbol-structure",60049),symbolStruct:w("symbol-struct",60049),symbolParameter:w("symbol-parameter",60050),symbolTypeParameter:w("symbol-type-parameter",60050),symbolKey:w("symbol-key",60051),symbolText:w("symbol-text",60051),symbolReference:w("symbol-reference",60052),goToFile:w("go-to-file",60052),symbolEnum:w("symbol-enum",60053),symbolValue:w("symbol-value",60053),symbolRuler:w("symbol-ruler",60054),symbolUnit:w("symbol-unit",60054),activateBreakpoints:w("activate-breakpoints",60055),archive:w("archive",60056),arrowBoth:w("arrow-both",60057),arrowDown:w("arrow-down",60058),arrowLeft:w("arrow-left",60059),arrowRight:w("arrow-right",60060),arrowSmallDown:w("arrow-small-down",60061),arrowSmallLeft:w("arrow-small-left",60062),arrowSmallRight:w("arrow-small-right",60063),arrowSmallUp:w("arrow-small-up",60064),arrowUp:w("arrow-up",60065),bell:w("bell",60066),bold:w("bold",60067),book:w("book",60068),bookmark:w("bookmark",60069),debugBreakpointConditionalUnverified:w("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:w("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:w("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:w("debug-breakpoint-data-unverified",60072),debugBreakpointData:w("debug-breakpoint-data",60073),debugBreakpointDataDisabled:w("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:w("debug-breakpoint-log-unverified",60074),debugBreakpointLog:w("debug-breakpoint-log",60075),debugBreakpointLogDisabled:w("debug-breakpoint-log-disabled",60075),briefcase:w("briefcase",60076),broadcast:w("broadcast",60077),browser:w("browser",60078),bug:w("bug",60079),calendar:w("calendar",60080),caseSensitive:w("case-sensitive",60081),check:w("check",60082),checklist:w("checklist",60083),chevronDown:w("chevron-down",60084),chevronLeft:w("chevron-left",60085),chevronRight:w("chevron-right",60086),chevronUp:w("chevron-up",60087),chromeClose:w("chrome-close",60088),chromeMaximize:w("chrome-maximize",60089),chromeMinimize:w("chrome-minimize",60090),chromeRestore:w("chrome-restore",60091),circleOutline:w("circle-outline",60092),circle:w("circle",60092),debugBreakpointUnverified:w("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:w("terminal-decoration-incomplete",60092),circleSlash:w("circle-slash",60093),circuitBoard:w("circuit-board",60094),clearAll:w("clear-all",60095),clippy:w("clippy",60096),closeAll:w("close-all",60097),cloudDownload:w("cloud-download",60098),cloudUpload:w("cloud-upload",60099),code:w("code",60100),collapseAll:w("collapse-all",60101),colorMode:w("color-mode",60102),commentDiscussion:w("comment-discussion",60103),creditCard:w("credit-card",60105),dash:w("dash",60108),dashboard:w("dashboard",60109),database:w("database",60110),debugContinue:w("debug-continue",60111),debugDisconnect:w("debug-disconnect",60112),debugPause:w("debug-pause",60113),debugRestart:w("debug-restart",60114),debugStart:w("debug-start",60115),debugStepInto:w("debug-step-into",60116),debugStepOut:w("debug-step-out",60117),debugStepOver:w("debug-step-over",60118),debugStop:w("debug-stop",60119),debug:w("debug",60120),deviceCameraVideo:w("device-camera-video",60121),deviceCamera:w("device-camera",60122),deviceMobile:w("device-mobile",60123),diffAdded:w("diff-added",60124),diffIgnored:w("diff-ignored",60125),diffModified:w("diff-modified",60126),diffRemoved:w("diff-removed",60127),diffRenamed:w("diff-renamed",60128),diff:w("diff",60129),diffSidebyside:w("diff-sidebyside",60129),discard:w("discard",60130),editorLayout:w("editor-layout",60131),emptyWindow:w("empty-window",60132),exclude:w("exclude",60133),extensions:w("extensions",60134),eyeClosed:w("eye-closed",60135),fileBinary:w("file-binary",60136),fileCode:w("file-code",60137),fileMedia:w("file-media",60138),filePdf:w("file-pdf",60139),fileSubmodule:w("file-submodule",60140),fileSymlinkDirectory:w("file-symlink-directory",60141),fileSymlinkFile:w("file-symlink-file",60142),fileZip:w("file-zip",60143),files:w("files",60144),filter:w("filter",60145),flame:w("flame",60146),foldDown:w("fold-down",60147),foldUp:w("fold-up",60148),fold:w("fold",60149),folderActive:w("folder-active",60150),folderOpened:w("folder-opened",60151),gear:w("gear",60152),gift:w("gift",60153),gistSecret:w("gist-secret",60154),gist:w("gist",60155),gitCommit:w("git-commit",60156),gitCompare:w("git-compare",60157),compareChanges:w("compare-changes",60157),gitMerge:w("git-merge",60158),githubAction:w("github-action",60159),githubAlt:w("github-alt",60160),globe:w("globe",60161),grabber:w("grabber",60162),graph:w("graph",60163),gripper:w("gripper",60164),heart:w("heart",60165),home:w("home",60166),horizontalRule:w("horizontal-rule",60167),hubot:w("hubot",60168),inbox:w("inbox",60169),issueReopened:w("issue-reopened",60171),issues:w("issues",60172),italic:w("italic",60173),jersey:w("jersey",60174),json:w("json",60175),kebabVertical:w("kebab-vertical",60176),key:w("key",60177),law:w("law",60178),lightbulbAutofix:w("lightbulb-autofix",60179),linkExternal:w("link-external",60180),link:w("link",60181),listOrdered:w("list-ordered",60182),listUnordered:w("list-unordered",60183),liveShare:w("live-share",60184),loading:w("loading",60185),location:w("location",60186),mailRead:w("mail-read",60187),mail:w("mail",60188),markdown:w("markdown",60189),megaphone:w("megaphone",60190),mention:w("mention",60191),milestone:w("milestone",60192),gitPullRequestMilestone:w("git-pull-request-milestone",60192),mortarBoard:w("mortar-board",60193),move:w("move",60194),multipleWindows:w("multiple-windows",60195),mute:w("mute",60196),noNewline:w("no-newline",60197),note:w("note",60198),octoface:w("octoface",60199),openPreview:w("open-preview",60200),package:w("package",60201),paintcan:w("paintcan",60202),pin:w("pin",60203),play:w("play",60204),run:w("run",60204),plug:w("plug",60205),preserveCase:w("preserve-case",60206),preview:w("preview",60207),project:w("project",60208),pulse:w("pulse",60209),question:w("question",60210),quote:w("quote",60211),radioTower:w("radio-tower",60212),reactions:w("reactions",60213),references:w("references",60214),refresh:w("refresh",60215),regex:w("regex",60216),remoteExplorer:w("remote-explorer",60217),remote:w("remote",60218),remove:w("remove",60219),replaceAll:w("replace-all",60220),replace:w("replace",60221),repoClone:w("repo-clone",60222),repoForcePush:w("repo-force-push",60223),repoPull:w("repo-pull",60224),repoPush:w("repo-push",60225),report:w("report",60226),requestChanges:w("request-changes",60227),rocket:w("rocket",60228),rootFolderOpened:w("root-folder-opened",60229),rootFolder:w("root-folder",60230),rss:w("rss",60231),ruby:w("ruby",60232),saveAll:w("save-all",60233),saveAs:w("save-as",60234),save:w("save",60235),screenFull:w("screen-full",60236),screenNormal:w("screen-normal",60237),searchStop:w("search-stop",60238),server:w("server",60240),settingsGear:w("settings-gear",60241),settings:w("settings",60242),shield:w("shield",60243),smiley:w("smiley",60244),sortPrecedence:w("sort-precedence",60245),splitHorizontal:w("split-horizontal",60246),splitVertical:w("split-vertical",60247),squirrel:w("squirrel",60248),starFull:w("star-full",60249),starHalf:w("star-half",60250),symbolClass:w("symbol-class",60251),symbolColor:w("symbol-color",60252),symbolConstant:w("symbol-constant",60253),symbolEnumMember:w("symbol-enum-member",60254),symbolField:w("symbol-field",60255),symbolFile:w("symbol-file",60256),symbolInterface:w("symbol-interface",60257),symbolKeyword:w("symbol-keyword",60258),symbolMisc:w("symbol-misc",60259),symbolOperator:w("symbol-operator",60260),symbolProperty:w("symbol-property",60261),wrench:w("wrench",60261),wrenchSubaction:w("wrench-subaction",60261),symbolSnippet:w("symbol-snippet",60262),tasklist:w("tasklist",60263),telescope:w("telescope",60264),textSize:w("text-size",60265),threeBars:w("three-bars",60266),thumbsdown:w("thumbsdown",60267),thumbsup:w("thumbsup",60268),tools:w("tools",60269),triangleDown:w("triangle-down",60270),triangleLeft:w("triangle-left",60271),triangleRight:w("triangle-right",60272),triangleUp:w("triangle-up",60273),twitter:w("twitter",60274),unfold:w("unfold",60275),unlock:w("unlock",60276),unmute:w("unmute",60277),unverified:w("unverified",60278),verified:w("verified",60279),versions:w("versions",60280),vmActive:w("vm-active",60281),vmOutline:w("vm-outline",60282),vmRunning:w("vm-running",60283),watch:w("watch",60284),whitespace:w("whitespace",60285),wholeWord:w("whole-word",60286),window:w("window",60287),wordWrap:w("word-wrap",60288),zoomIn:w("zoom-in",60289),zoomOut:w("zoom-out",60290),listFilter:w("list-filter",60291),listFlat:w("list-flat",60292),listSelection:w("list-selection",60293),selection:w("selection",60293),listTree:w("list-tree",60294),debugBreakpointFunctionUnverified:w("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:w("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:w("debug-breakpoint-function-disabled",60296),debugStackframeActive:w("debug-stackframe-active",60297),circleSmallFilled:w("circle-small-filled",60298),debugStackframeDot:w("debug-stackframe-dot",60298),terminalDecorationMark:w("terminal-decoration-mark",60298),debugStackframe:w("debug-stackframe",60299),debugStackframeFocused:w("debug-stackframe-focused",60299),debugBreakpointUnsupported:w("debug-breakpoint-unsupported",60300),symbolString:w("symbol-string",60301),debugReverseContinue:w("debug-reverse-continue",60302),debugStepBack:w("debug-step-back",60303),debugRestartFrame:w("debug-restart-frame",60304),debugAlt:w("debug-alt",60305),callIncoming:w("call-incoming",60306),callOutgoing:w("call-outgoing",60307),menu:w("menu",60308),expandAll:w("expand-all",60309),feedback:w("feedback",60310),gitPullRequestReviewer:w("git-pull-request-reviewer",60310),groupByRefType:w("group-by-ref-type",60311),ungroupByRefType:w("ungroup-by-ref-type",60312),account:w("account",60313),gitPullRequestAssignee:w("git-pull-request-assignee",60313),bellDot:w("bell-dot",60314),debugConsole:w("debug-console",60315),library:w("library",60316),output:w("output",60317),runAll:w("run-all",60318),syncIgnored:w("sync-ignored",60319),pinned:w("pinned",60320),githubInverted:w("github-inverted",60321),serverProcess:w("server-process",60322),serverEnvironment:w("server-environment",60323),pass:w("pass",60324),issueClosed:w("issue-closed",60324),stopCircle:w("stop-circle",60325),playCircle:w("play-circle",60326),record:w("record",60327),debugAltSmall:w("debug-alt-small",60328),vmConnect:w("vm-connect",60329),cloud:w("cloud",60330),merge:w("merge",60331),export:w("export",60332),graphLeft:w("graph-left",60333),magnet:w("magnet",60334),notebook:w("notebook",60335),redo:w("redo",60336),checkAll:w("check-all",60337),pinnedDirty:w("pinned-dirty",60338),passFilled:w("pass-filled",60339),circleLargeFilled:w("circle-large-filled",60340),circleLarge:w("circle-large",60341),circleLargeOutline:w("circle-large-outline",60341),combine:w("combine",60342),gather:w("gather",60342),table:w("table",60343),variableGroup:w("variable-group",60344),typeHierarchy:w("type-hierarchy",60345),typeHierarchySub:w("type-hierarchy-sub",60346),typeHierarchySuper:w("type-hierarchy-super",60347),gitPullRequestCreate:w("git-pull-request-create",60348),runAbove:w("run-above",60349),runBelow:w("run-below",60350),notebookTemplate:w("notebook-template",60351),debugRerun:w("debug-rerun",60352),workspaceTrusted:w("workspace-trusted",60353),workspaceUntrusted:w("workspace-untrusted",60354),workspaceUnknown:w("workspace-unknown",60355),terminalCmd:w("terminal-cmd",60356),terminalDebian:w("terminal-debian",60357),terminalLinux:w("terminal-linux",60358),terminalPowershell:w("terminal-powershell",60359),terminalTmux:w("terminal-tmux",60360),terminalUbuntu:w("terminal-ubuntu",60361),terminalBash:w("terminal-bash",60362),arrowSwap:w("arrow-swap",60363),copy:w("copy",60364),personAdd:w("person-add",60365),filterFilled:w("filter-filled",60366),wand:w("wand",60367),debugLineByLine:w("debug-line-by-line",60368),inspect:w("inspect",60369),layers:w("layers",60370),layersDot:w("layers-dot",60371),layersActive:w("layers-active",60372),compass:w("compass",60373),compassDot:w("compass-dot",60374),compassActive:w("compass-active",60375),azure:w("azure",60376),issueDraft:w("issue-draft",60377),gitPullRequestClosed:w("git-pull-request-closed",60378),gitPullRequestDraft:w("git-pull-request-draft",60379),debugAll:w("debug-all",60380),debugCoverage:w("debug-coverage",60381),runErrors:w("run-errors",60382),folderLibrary:w("folder-library",60383),debugContinueSmall:w("debug-continue-small",60384),beakerStop:w("beaker-stop",60385),graphLine:w("graph-line",60386),graphScatter:w("graph-scatter",60387),pieChart:w("pie-chart",60388),bracket:w("bracket",60175),bracketDot:w("bracket-dot",60389),bracketError:w("bracket-error",60390),lockSmall:w("lock-small",60391),azureDevops:w("azure-devops",60392),verifiedFilled:w("verified-filled",60393),newline:w("newline",60394),layout:w("layout",60395),layoutActivitybarLeft:w("layout-activitybar-left",60396),layoutActivitybarRight:w("layout-activitybar-right",60397),layoutPanelLeft:w("layout-panel-left",60398),layoutPanelCenter:w("layout-panel-center",60399),layoutPanelJustify:w("layout-panel-justify",60400),layoutPanelRight:w("layout-panel-right",60401),layoutPanel:w("layout-panel",60402),layoutSidebarLeft:w("layout-sidebar-left",60403),layoutSidebarRight:w("layout-sidebar-right",60404),layoutStatusbar:w("layout-statusbar",60405),layoutMenubar:w("layout-menubar",60406),layoutCentered:w("layout-centered",60407),target:w("target",60408),indent:w("indent",60409),recordSmall:w("record-small",60410),errorSmall:w("error-small",60411),terminalDecorationError:w("terminal-decoration-error",60411),arrowCircleDown:w("arrow-circle-down",60412),arrowCircleLeft:w("arrow-circle-left",60413),arrowCircleRight:w("arrow-circle-right",60414),arrowCircleUp:w("arrow-circle-up",60415),layoutSidebarRightOff:w("layout-sidebar-right-off",60416),layoutPanelOff:w("layout-panel-off",60417),layoutSidebarLeftOff:w("layout-sidebar-left-off",60418),blank:w("blank",60419),heartFilled:w("heart-filled",60420),map:w("map",60421),mapHorizontal:w("map-horizontal",60421),foldHorizontal:w("fold-horizontal",60421),mapFilled:w("map-filled",60422),mapHorizontalFilled:w("map-horizontal-filled",60422),foldHorizontalFilled:w("fold-horizontal-filled",60422),circleSmall:w("circle-small",60423),bellSlash:w("bell-slash",60424),bellSlashDot:w("bell-slash-dot",60425),commentUnresolved:w("comment-unresolved",60426),gitPullRequestGoToChanges:w("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:w("git-pull-request-new-changes",60428),searchFuzzy:w("search-fuzzy",60429),commentDraft:w("comment-draft",60430),send:w("send",60431),sparkle:w("sparkle",60432),insert:w("insert",60433),mic:w("mic",60434),thumbsdownFilled:w("thumbsdown-filled",60435),thumbsupFilled:w("thumbsup-filled",60436),coffee:w("coffee",60437),snake:w("snake",60438),game:w("game",60439),vr:w("vr",60440),chip:w("chip",60441),piano:w("piano",60442),music:w("music",60443),micFilled:w("mic-filled",60444),repoFetch:w("repo-fetch",60445),copilot:w("copilot",60446),lightbulbSparkle:w("lightbulb-sparkle",60447),robot:w("robot",60448),sparkleFilled:w("sparkle-filled",60449),diffSingle:w("diff-single",60450),diffMultiple:w("diff-multiple",60451),surroundWith:w("surround-with",60452),share:w("share",60453),gitStash:w("git-stash",60454),gitStashApply:w("git-stash-apply",60455),gitStashPop:w("git-stash-pop",60456),vscode:w("vscode",60457),vscodeInsiders:w("vscode-insiders",60458),codeOss:w("code-oss",60459),runCoverage:w("run-coverage",60460),runAllCoverage:w("run-all-coverage",60461),coverage:w("coverage",60462),githubProject:w("github-project",60463),mapVertical:w("map-vertical",60464),foldVertical:w("fold-vertical",60464),mapVerticalFilled:w("map-vertical-filled",60465),foldVerticalFilled:w("fold-vertical-filled",60465),goToSearch:w("go-to-search",60466),percentage:w("percentage",60467),sortPercentage:w("sort-percentage",60467),attach:w("attach",60468),goToEditingSession:w("go-to-editing-session",60469),editSession:w("edit-session",60470),codeReview:w("code-review",60471),copilotWarning:w("copilot-warning",60472),python:w("python",60473),copilotLarge:w("copilot-large",60474),copilotWarningLarge:w("copilot-warning-large",60475),keyboardTab:w("keyboard-tab",60476),copilotBlocked:w("copilot-blocked",60477),copilotNotConnected:w("copilot-not-connected",60478),flag:w("flag",60479),lightbulbEmpty:w("lightbulb-empty",60480),symbolMethodArrow:w("symbol-method-arrow",60481),copilotUnavailable:w("copilot-unavailable",60482),repoPinned:w("repo-pinned",60483),keyboardTabAbove:w("keyboard-tab-above",60484),keyboardTabBelow:w("keyboard-tab-below",60485),gitPullRequestDone:w("git-pull-request-done",60486),mcp:w("mcp",60487),extensionsLarge:w("extensions-large",60488),layoutPanelDock:w("layout-panel-dock",60489),layoutSidebarLeftDock:w("layout-sidebar-left-dock",60490),layoutSidebarRightDock:w("layout-sidebar-right-dock",60491),copilotInProgress:w("copilot-in-progress",60492),copilotError:w("copilot-error",60493),copilotSuccess:w("copilot-success",60494),chatSparkle:w("chat-sparkle",60495),searchSparkle:w("search-sparkle",60496),editSparkle:w("edit-sparkle",60497),copilotSnooze:w("copilot-snooze",60498),sendToRemoteAgent:w("send-to-remote-agent",60499),commentDiscussionSparkle:w("comment-discussion-sparkle",60500),chatSparkleWarning:w("chat-sparkle-warning",60501),chatSparkleError:w("chat-sparkle-error",60502),collection:w("collection",60503),newCollection:w("new-collection",60504),thinking:w("thinking",60505)},Ry={dialogError:w("dialog-error","error"),dialogWarning:w("dialog-warning","warning"),dialogInfo:w("dialog-info","info"),dialogClose:w("dialog-close","close"),treeItemExpanded:w("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:w("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:w("tree-filter-on-type-off","list-selection"),treeFilterClear:w("tree-filter-clear","close"),treeItemLoading:w("tree-item-loading","loading"),menuSelection:w("menu-selection","check"),menuSubmenu:w("menu-submenu","chevron-right"),menuBarMore:w("menubar-more","more"),scrollbarButtonLeft:w("scrollbar-button-left","triangle-left"),scrollbarButtonRight:w("scrollbar-button-right","triangle-right"),scrollbarButtonUp:w("scrollbar-button-up","triangle-up"),scrollbarButtonDown:w("scrollbar-button-down","triangle-down"),toolBarMore:w("toolbar-more","more"),quickInputBack:w("quick-input-back","arrow-left"),dropDownButton:w("drop-down-button",60084),symbolCustomColor:w("symbol-customcolor",60252),exportIcon:w("export",60332),workspaceUnspecified:w("workspace-unspecified",60355),newLine:w("newline",60394),thumbsDownFilled:w("thumbsdown-filled",60435),thumbsUpFilled:w("thumbsup-filled",60436),gitFetch:w("git-fetch",60445),lightbulbSparkleAutofix:w("lightbulb-sparkle-autofix",60447),debugBreakpointPending:w("debug-breakpoint-pending",60377)},Ln={...Oy,...Ry};class jy{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new Zs,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(t){this._onDidChange.fire({changedLanguages:t,changedColorMap:!1})}register(t,n){return this._tokenizationSupports.set(t,n),this.handleChange([t]),iu(()=>{this._tokenizationSupports.get(t)===n&&(this._tokenizationSupports.delete(t),this.handleChange([t]))})}get(t){return this._tokenizationSupports.get(t)||null}registerFactory(t,n){this._factories.get(t)?.dispose();const r=new $y(this,t,n);return this._factories.set(t,r),iu(()=>{const s=this._factories.get(t);!s||s!==r||(this._factories.delete(t),s.dispose())})}async getOrCreate(t){const n=this.get(t);if(n)return n;const r=this._factories.get(t);return!r||r.isResolved?null:(await r.resolve(),this.get(t))}isResolved(t){if(this.get(t))return!0;const r=this._factories.get(t);return!!(!r||r.isResolved)}setColorMap(t){this._colorMap=t,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 $y extends Ri{get isResolved(){return this._isResolved}constructor(t,n,r){super(),this._registry=t,this._languageId=n,this._factory=r,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}async _create(){const t=await this._factory.tokenizationSupport;this._isResolved=!0,t&&!this._isDisposed&&this._register(this._registry.register(this._languageId,t))}}class Vy{constructor(t,n,r){this.offset=t,this.type=n,this.language=r,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}var dd;(function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"})(dd||(dd={}));var hd;(function(e){const t=new Map;t.set(0,Ln.symbolMethod),t.set(1,Ln.symbolFunction),t.set(2,Ln.symbolConstructor),t.set(3,Ln.symbolField),t.set(4,Ln.symbolVariable),t.set(5,Ln.symbolClass),t.set(6,Ln.symbolStruct),t.set(7,Ln.symbolInterface),t.set(8,Ln.symbolModule),t.set(9,Ln.symbolProperty),t.set(10,Ln.symbolEvent),t.set(11,Ln.symbolOperator),t.set(12,Ln.symbolUnit),t.set(13,Ln.symbolValue),t.set(15,Ln.symbolEnum),t.set(14,Ln.symbolConstant),t.set(15,Ln.symbolEnum),t.set(16,Ln.symbolEnumMember),t.set(17,Ln.symbolKeyword),t.set(28,Ln.symbolSnippet),t.set(18,Ln.symbolText),t.set(19,Ln.symbolColor),t.set(20,Ln.symbolFile),t.set(21,Ln.symbolReference),t.set(22,Ln.symbolCustomColor),t.set(23,Ln.symbolFolder),t.set(24,Ln.symbolTypeParameter),t.set(25,Ln.account),t.set(26,Ln.issues),t.set(27,Ln.tools);function n(a){let o=t.get(a);return o||(console.info("No codicon found for CompletionItemKind "+a),o=Ln.symbolProperty),o}e.toIcon=n;function r(a){switch(a){case 0:return Mn(724,"Method");case 1:return Mn(725,"Function");case 2:return Mn(726,"Constructor");case 3:return Mn(727,"Field");case 4:return Mn(728,"Variable");case 5:return Mn(729,"Class");case 6:return Mn(730,"Struct");case 7:return Mn(731,"Interface");case 8:return Mn(732,"Module");case 9:return Mn(733,"Property");case 10:return Mn(734,"Event");case 11:return Mn(735,"Operator");case 12:return Mn(736,"Unit");case 13:return Mn(737,"Value");case 14:return Mn(738,"Constant");case 15:return Mn(739,"Enum");case 16:return Mn(740,"Enum Member");case 17:return Mn(741,"Keyword");case 18:return Mn(742,"Text");case 19:return Mn(743,"Color");case 20:return Mn(744,"File");case 21:return Mn(745,"Reference");case 22:return Mn(746,"Custom Color");case 23:return Mn(747,"Folder");case 24:return Mn(748,"Type Parameter");case 25:return Mn(749,"User");case 26:return Mn(750,"Issue");case 27:return Mn(751,"Tool");case 28:return Mn(752,"Snippet");default:return""}}e.toLabel=r;const s=new Map;s.set("method",0),s.set("function",1),s.set("constructor",2),s.set("field",3),s.set("variable",4),s.set("class",5),s.set("struct",6),s.set("interface",7),s.set("module",8),s.set("property",9),s.set("event",10),s.set("operator",11),s.set("unit",12),s.set("value",13),s.set("constant",14),s.set("enum",15),s.set("enum-member",16),s.set("enumMember",16),s.set("keyword",17),s.set("snippet",28),s.set("text",18),s.set("color",19),s.set("file",20),s.set("reference",21),s.set("customcolor",22),s.set("folder",23),s.set("type-parameter",24),s.set("typeParameter",24),s.set("account",25),s.set("issue",26),s.set("tool",27);function i(a,o){let u=s.get(a);return typeof u>"u"&&!o&&(u=9),u}e.fromString=i})(hd||(hd={}));var md;(function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"})(md||(md={}));var gd;(function(e){e[e.Code=1]="Code",e[e.Label=2]="Label"})(gd||(gd={}));var yd;(function(e){e[e.Accepted=0]="Accepted",e[e.Rejected=1]="Rejected",e[e.Ignored=2]="Ignored"})(yd||(yd={}));var Dd;(function(e){e[e.Automatic=0]="Automatic",e[e.PasteAs=1]="PasteAs"})(Dd||(Dd={}));var bd;(function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"})(bd||(bd={}));var vd;(function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"})(vd||(vd={})),Mn(753,"array"),Mn(754,"boolean"),Mn(755,"class"),Mn(756,"constant"),Mn(757,"constructor"),Mn(758,"enumeration"),Mn(759,"enumeration member"),Mn(760,"event"),Mn(761,"field"),Mn(762,"file"),Mn(763,"function"),Mn(764,"interface"),Mn(765,"key"),Mn(766,"method"),Mn(767,"module"),Mn(768,"namespace"),Mn(769,"null"),Mn(770,"number"),Mn(771,"object"),Mn(772,"operator"),Mn(773,"package"),Mn(774,"property"),Mn(775,"string"),Mn(776,"struct"),Mn(777,"type parameter"),Mn(778,"variable");var Ed;(function(e){const t=new Map;t.set(0,Ln.symbolFile),t.set(1,Ln.symbolModule),t.set(2,Ln.symbolNamespace),t.set(3,Ln.symbolPackage),t.set(4,Ln.symbolClass),t.set(5,Ln.symbolMethod),t.set(6,Ln.symbolProperty),t.set(7,Ln.symbolField),t.set(8,Ln.symbolConstructor),t.set(9,Ln.symbolEnum),t.set(10,Ln.symbolInterface),t.set(11,Ln.symbolFunction),t.set(12,Ln.symbolVariable),t.set(13,Ln.symbolConstant),t.set(14,Ln.symbolString),t.set(15,Ln.symbolNumber),t.set(16,Ln.symbolBoolean),t.set(17,Ln.symbolArray),t.set(18,Ln.symbolObject),t.set(19,Ln.symbolKey),t.set(20,Ln.symbolNull),t.set(21,Ln.symbolEnumMember),t.set(22,Ln.symbolStruct),t.set(23,Ln.symbolEvent),t.set(24,Ln.symbolOperator),t.set(25,Ln.symbolTypeParameter);function n(i){let a=t.get(i);return a||(console.info("No codicon found for SymbolKind "+i),a=Ln.symbolProperty),a}e.toIcon=n;const r=new Map;r.set(0,20),r.set(1,8),r.set(2,8),r.set(3,8),r.set(4,5),r.set(5,0),r.set(6,9),r.set(7,3),r.set(8,2),r.set(9,15),r.set(10,7),r.set(11,1),r.set(12,4),r.set(13,14),r.set(14,18),r.set(15,13),r.set(16,13),r.set(17,13),r.set(18,13),r.set(19,17),r.set(20,13),r.set(21,16),r.set(22,6),r.set(23,10),r.set(24,11),r.set(25,24);function s(i){let a=r.get(i);return a===void 0&&(console.info("No completion kind found for SymbolKind "+i),a=20),a}e.toCompletionKind=s})(Ed||(Ed={}));let Ww=(ps=class{static fromValue(t){switch(t){case"comment":return ps.Comment;case"imports":return ps.Imports;case"region":return ps.Region}return new ps(t)}constructor(t){this.value=t}},ps.Comment=new ps("comment"),ps.Imports=new ps("imports"),ps.Region=new ps("region"),ps);var Ad;(function(e){e[e.AIGenerated=1]="AIGenerated"})(Ad||(Ad={}));var wd;(function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"})(wd||(wd={}));var xd;(function(e){function t(n){return!n||typeof n!="object"?!1:typeof n.id=="string"&&typeof n.title=="string"}e.is=t})(xd||(xd={}));var Cd;(function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"})(Cd||(Cd={})),new jy;var Sd;(function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"})(Sd||(Sd={}));var Fd;(function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"})(Fd||(Fd={}));var Nd;(function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"})(Nd||(Nd={}));var Td;(function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Tool=27]="Tool",e[e.Snippet=28]="Snippet"})(Td||(Td={}));var _d;(function(e){e[e.Deprecated=1]="Deprecated"})(_d||(_d={}));var Ld;(function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(Ld||(Ld={}));var kd;(function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"})(kd||(kd={}));var Pd;(function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo"})(Pd||(Pd={}));var Bd;(function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(Bd||(Bd={}));var Md;(function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"})(Md||(Md={}));var Id;(function(e){e[e.None=0]="None",e[e.Keep=1]="Keep",e[e.Brackets=2]="Brackets",e[e.Advanced=3]="Advanced",e[e.Full=4]="Full"})(Id||(Id={}));var Od;(function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.allowOverflow=4]="allowOverflow",e[e.allowVariableLineHeights=5]="allowVariableLineHeights",e[e.allowVariableFonts=6]="allowVariableFonts",e[e.allowVariableFontsInAccessibilityMode=7]="allowVariableFontsInAccessibilityMode",e[e.ariaLabel=8]="ariaLabel",e[e.ariaRequired=9]="ariaRequired",e[e.autoClosingBrackets=10]="autoClosingBrackets",e[e.autoClosingComments=11]="autoClosingComments",e[e.screenReaderAnnounceInlineSuggestion=12]="screenReaderAnnounceInlineSuggestion",e[e.autoClosingDelete=13]="autoClosingDelete",e[e.autoClosingOvertype=14]="autoClosingOvertype",e[e.autoClosingQuotes=15]="autoClosingQuotes",e[e.autoIndent=16]="autoIndent",e[e.autoIndentOnPaste=17]="autoIndentOnPaste",e[e.autoIndentOnPasteWithinString=18]="autoIndentOnPasteWithinString",e[e.automaticLayout=19]="automaticLayout",e[e.autoSurround=20]="autoSurround",e[e.bracketPairColorization=21]="bracketPairColorization",e[e.guides=22]="guides",e[e.codeLens=23]="codeLens",e[e.codeLensFontFamily=24]="codeLensFontFamily",e[e.codeLensFontSize=25]="codeLensFontSize",e[e.colorDecorators=26]="colorDecorators",e[e.colorDecoratorsLimit=27]="colorDecoratorsLimit",e[e.columnSelection=28]="columnSelection",e[e.comments=29]="comments",e[e.contextmenu=30]="contextmenu",e[e.copyWithSyntaxHighlighting=31]="copyWithSyntaxHighlighting",e[e.cursorBlinking=32]="cursorBlinking",e[e.cursorSmoothCaretAnimation=33]="cursorSmoothCaretAnimation",e[e.cursorStyle=34]="cursorStyle",e[e.cursorSurroundingLines=35]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=36]="cursorSurroundingLinesStyle",e[e.cursorWidth=37]="cursorWidth",e[e.cursorHeight=38]="cursorHeight",e[e.disableLayerHinting=39]="disableLayerHinting",e[e.disableMonospaceOptimizations=40]="disableMonospaceOptimizations",e[e.domReadOnly=41]="domReadOnly",e[e.dragAndDrop=42]="dragAndDrop",e[e.dropIntoEditor=43]="dropIntoEditor",e[e.editContext=44]="editContext",e[e.emptySelectionClipboard=45]="emptySelectionClipboard",e[e.experimentalGpuAcceleration=46]="experimentalGpuAcceleration",e[e.experimentalWhitespaceRendering=47]="experimentalWhitespaceRendering",e[e.extraEditorClassName=48]="extraEditorClassName",e[e.fastScrollSensitivity=49]="fastScrollSensitivity",e[e.find=50]="find",e[e.fixedOverflowWidgets=51]="fixedOverflowWidgets",e[e.folding=52]="folding",e[e.foldingStrategy=53]="foldingStrategy",e[e.foldingHighlight=54]="foldingHighlight",e[e.foldingImportsByDefault=55]="foldingImportsByDefault",e[e.foldingMaximumRegions=56]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=57]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=58]="fontFamily",e[e.fontInfo=59]="fontInfo",e[e.fontLigatures=60]="fontLigatures",e[e.fontSize=61]="fontSize",e[e.fontWeight=62]="fontWeight",e[e.fontVariations=63]="fontVariations",e[e.formatOnPaste=64]="formatOnPaste",e[e.formatOnType=65]="formatOnType",e[e.glyphMargin=66]="glyphMargin",e[e.gotoLocation=67]="gotoLocation",e[e.hideCursorInOverviewRuler=68]="hideCursorInOverviewRuler",e[e.hover=69]="hover",e[e.inDiffEditor=70]="inDiffEditor",e[e.inlineSuggest=71]="inlineSuggest",e[e.letterSpacing=72]="letterSpacing",e[e.lightbulb=73]="lightbulb",e[e.lineDecorationsWidth=74]="lineDecorationsWidth",e[e.lineHeight=75]="lineHeight",e[e.lineNumbers=76]="lineNumbers",e[e.lineNumbersMinChars=77]="lineNumbersMinChars",e[e.linkedEditing=78]="linkedEditing",e[e.links=79]="links",e[e.matchBrackets=80]="matchBrackets",e[e.minimap=81]="minimap",e[e.mouseStyle=82]="mouseStyle",e[e.mouseWheelScrollSensitivity=83]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=84]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=85]="multiCursorMergeOverlapping",e[e.multiCursorModifier=86]="multiCursorModifier",e[e.mouseMiddleClickAction=87]="mouseMiddleClickAction",e[e.multiCursorPaste=88]="multiCursorPaste",e[e.multiCursorLimit=89]="multiCursorLimit",e[e.occurrencesHighlight=90]="occurrencesHighlight",e[e.occurrencesHighlightDelay=91]="occurrencesHighlightDelay",e[e.overtypeCursorStyle=92]="overtypeCursorStyle",e[e.overtypeOnPaste=93]="overtypeOnPaste",e[e.overviewRulerBorder=94]="overviewRulerBorder",e[e.overviewRulerLanes=95]="overviewRulerLanes",e[e.padding=96]="padding",e[e.pasteAs=97]="pasteAs",e[e.parameterHints=98]="parameterHints",e[e.peekWidgetDefaultFocus=99]="peekWidgetDefaultFocus",e[e.placeholder=100]="placeholder",e[e.definitionLinkOpensInPeek=101]="definitionLinkOpensInPeek",e[e.quickSuggestions=102]="quickSuggestions",e[e.quickSuggestionsDelay=103]="quickSuggestionsDelay",e[e.readOnly=104]="readOnly",e[e.readOnlyMessage=105]="readOnlyMessage",e[e.renameOnType=106]="renameOnType",e[e.renderRichScreenReaderContent=107]="renderRichScreenReaderContent",e[e.renderControlCharacters=108]="renderControlCharacters",e[e.renderFinalNewline=109]="renderFinalNewline",e[e.renderLineHighlight=110]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=111]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=112]="renderValidationDecorations",e[e.renderWhitespace=113]="renderWhitespace",e[e.revealHorizontalRightPadding=114]="revealHorizontalRightPadding",e[e.roundedSelection=115]="roundedSelection",e[e.rulers=116]="rulers",e[e.scrollbar=117]="scrollbar",e[e.scrollBeyondLastColumn=118]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=119]="scrollBeyondLastLine",e[e.scrollPredominantAxis=120]="scrollPredominantAxis",e[e.selectionClipboard=121]="selectionClipboard",e[e.selectionHighlight=122]="selectionHighlight",e[e.selectionHighlightMaxLength=123]="selectionHighlightMaxLength",e[e.selectionHighlightMultiline=124]="selectionHighlightMultiline",e[e.selectOnLineNumbers=125]="selectOnLineNumbers",e[e.showFoldingControls=126]="showFoldingControls",e[e.showUnused=127]="showUnused",e[e.snippetSuggestions=128]="snippetSuggestions",e[e.smartSelect=129]="smartSelect",e[e.smoothScrolling=130]="smoothScrolling",e[e.stickyScroll=131]="stickyScroll",e[e.stickyTabStops=132]="stickyTabStops",e[e.stopRenderingLineAfter=133]="stopRenderingLineAfter",e[e.suggest=134]="suggest",e[e.suggestFontSize=135]="suggestFontSize",e[e.suggestLineHeight=136]="suggestLineHeight",e[e.suggestOnTriggerCharacters=137]="suggestOnTriggerCharacters",e[e.suggestSelection=138]="suggestSelection",e[e.tabCompletion=139]="tabCompletion",e[e.tabIndex=140]="tabIndex",e[e.trimWhitespaceOnDelete=141]="trimWhitespaceOnDelete",e[e.unicodeHighlighting=142]="unicodeHighlighting",e[e.unusualLineTerminators=143]="unusualLineTerminators",e[e.useShadowDOM=144]="useShadowDOM",e[e.useTabStops=145]="useTabStops",e[e.wordBreak=146]="wordBreak",e[e.wordSegmenterLocales=147]="wordSegmenterLocales",e[e.wordSeparators=148]="wordSeparators",e[e.wordWrap=149]="wordWrap",e[e.wordWrapBreakAfterCharacters=150]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=151]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=152]="wordWrapColumn",e[e.wordWrapOverride1=153]="wordWrapOverride1",e[e.wordWrapOverride2=154]="wordWrapOverride2",e[e.wrappingIndent=155]="wrappingIndent",e[e.wrappingStrategy=156]="wrappingStrategy",e[e.showDeprecated=157]="showDeprecated",e[e.inertialScroll=158]="inertialScroll",e[e.inlayHints=159]="inlayHints",e[e.wrapOnEscapedLineFeeds=160]="wrapOnEscapedLineFeeds",e[e.effectiveCursorStyle=161]="effectiveCursorStyle",e[e.editorClassName=162]="editorClassName",e[e.pixelRatio=163]="pixelRatio",e[e.tabFocusMode=164]="tabFocusMode",e[e.layoutInfo=165]="layoutInfo",e[e.wrappingInfo=166]="wrappingInfo",e[e.defaultColorDecorators=167]="defaultColorDecorators",e[e.colorDecoratorsActivatedOn=168]="colorDecoratorsActivatedOn",e[e.inlineCompletionsAccessibilityVerbose=169]="inlineCompletionsAccessibilityVerbose",e[e.effectiveEditContext=170]="effectiveEditContext",e[e.scrollOnMiddleClick=171]="scrollOnMiddleClick",e[e.effectiveAllowVariableFonts=172]="effectiveAllowVariableFonts"})(Od||(Od={}));var Rd;(function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(Rd||(Rd={}));var jd;(function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"})(jd||(jd={}));var $d;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"})($d||($d={}));var Vd;(function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"})(Vd||(Vd={}));var qd;(function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"})(qd||(qd={}));var Ud;(function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"})(Ud||(Ud={}));var Wd;(function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"})(Wd||(Wd={}));var Gd;(function(e){e[e.Code=1]="Code",e[e.Label=2]="Label"})(Gd||(Gd={}));var Jd;(function(e){e[e.Accepted=0]="Accepted",e[e.Rejected=1]="Rejected",e[e.Ignored=2]="Ignored"})(Jd||(Jd={}));var Yd;(function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"})(Yd||(Yd={}));var hc;(function(e){e[e.DependsOnKbLayout=-1]="DependsOnKbLayout",e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.Digit0=21]="Digit0",e[e.Digit1=22]="Digit1",e[e.Digit2=23]="Digit2",e[e.Digit3=24]="Digit3",e[e.Digit4=25]="Digit4",e[e.Digit5=26]="Digit5",e[e.Digit6=27]="Digit6",e[e.Digit7=28]="Digit7",e[e.Digit8=29]="Digit8",e[e.Digit9=30]="Digit9",e[e.KeyA=31]="KeyA",e[e.KeyB=32]="KeyB",e[e.KeyC=33]="KeyC",e[e.KeyD=34]="KeyD",e[e.KeyE=35]="KeyE",e[e.KeyF=36]="KeyF",e[e.KeyG=37]="KeyG",e[e.KeyH=38]="KeyH",e[e.KeyI=39]="KeyI",e[e.KeyJ=40]="KeyJ",e[e.KeyK=41]="KeyK",e[e.KeyL=42]="KeyL",e[e.KeyM=43]="KeyM",e[e.KeyN=44]="KeyN",e[e.KeyO=45]="KeyO",e[e.KeyP=46]="KeyP",e[e.KeyQ=47]="KeyQ",e[e.KeyR=48]="KeyR",e[e.KeyS=49]="KeyS",e[e.KeyT=50]="KeyT",e[e.KeyU=51]="KeyU",e[e.KeyV=52]="KeyV",e[e.KeyW=53]="KeyW",e[e.KeyX=54]="KeyX",e[e.KeyY=55]="KeyY",e[e.KeyZ=56]="KeyZ",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.F20=78]="F20",e[e.F21=79]="F21",e[e.F22=80]="F22",e[e.F23=81]="F23",e[e.F24=82]="F24",e[e.NumLock=83]="NumLock",e[e.ScrollLock=84]="ScrollLock",e[e.Semicolon=85]="Semicolon",e[e.Equal=86]="Equal",e[e.Comma=87]="Comma",e[e.Minus=88]="Minus",e[e.Period=89]="Period",e[e.Slash=90]="Slash",e[e.Backquote=91]="Backquote",e[e.BracketLeft=92]="BracketLeft",e[e.Backslash=93]="Backslash",e[e.BracketRight=94]="BracketRight",e[e.Quote=95]="Quote",e[e.OEM_8=96]="OEM_8",e[e.IntlBackslash=97]="IntlBackslash",e[e.Numpad0=98]="Numpad0",e[e.Numpad1=99]="Numpad1",e[e.Numpad2=100]="Numpad2",e[e.Numpad3=101]="Numpad3",e[e.Numpad4=102]="Numpad4",e[e.Numpad5=103]="Numpad5",e[e.Numpad6=104]="Numpad6",e[e.Numpad7=105]="Numpad7",e[e.Numpad8=106]="Numpad8",e[e.Numpad9=107]="Numpad9",e[e.NumpadMultiply=108]="NumpadMultiply",e[e.NumpadAdd=109]="NumpadAdd",e[e.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",e[e.NumpadSubtract=111]="NumpadSubtract",e[e.NumpadDecimal=112]="NumpadDecimal",e[e.NumpadDivide=113]="NumpadDivide",e[e.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",e[e.ABNT_C1=115]="ABNT_C1",e[e.ABNT_C2=116]="ABNT_C2",e[e.AudioVolumeMute=117]="AudioVolumeMute",e[e.AudioVolumeUp=118]="AudioVolumeUp",e[e.AudioVolumeDown=119]="AudioVolumeDown",e[e.BrowserSearch=120]="BrowserSearch",e[e.BrowserHome=121]="BrowserHome",e[e.BrowserBack=122]="BrowserBack",e[e.BrowserForward=123]="BrowserForward",e[e.MediaTrackNext=124]="MediaTrackNext",e[e.MediaTrackPrevious=125]="MediaTrackPrevious",e[e.MediaStop=126]="MediaStop",e[e.MediaPlayPause=127]="MediaPlayPause",e[e.LaunchMediaPlayer=128]="LaunchMediaPlayer",e[e.LaunchMail=129]="LaunchMail",e[e.LaunchApp2=130]="LaunchApp2",e[e.Clear=131]="Clear",e[e.MAX_VALUE=132]="MAX_VALUE"})(hc||(hc={}));var mc;(function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"})(mc||(mc={}));var gc;(function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"})(gc||(gc={}));var Hd;(function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"})(Hd||(Hd={}));var zd;(function(e){e[e.Normal=1]="Normal",e[e.Underlined=2]="Underlined"})(zd||(zd={}));var Xd;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(Xd||(Xd={}));var Qd;(function(e){e[e.AIGenerated=1]="AIGenerated"})(Qd||(Qd={}));var Kd;(function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"})(Kd||(Kd={}));var Zd;(function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER"})(Zd||(Zd={}));var eh;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"})(eh||(eh={}));var th;(function(e){e[e.Word=0]="Word",e[e.Line=1]="Line",e[e.Suggest=2]="Suggest"})(th||(th={}));var nh;(function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.None=2]="None",e[e.LeftOfInjectedText=3]="LeftOfInjectedText",e[e.RightOfInjectedText=4]="RightOfInjectedText"})(nh||(nh={}));var rh;(function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"})(rh||(rh={}));var sh;(function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"})(sh||(sh={}));var ih;(function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"})(ih||(ih={}));var ah;(function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"})(ah||(ah={}));var yc;(function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"})(yc||(yc={}));var oh;(function(e){e.Off="off",e.OnCode="onCode",e.On="on"})(oh||(oh={}));var uh;(function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"})(uh||(uh={}));var lh;(function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"})(lh||(lh={}));var ch;(function(e){e[e.Deprecated=1]="Deprecated"})(ch||(ch={}));var fh;(function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"})(fh||(fh={}));var ph;(function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"})(ph||(ph={}));var dh;(function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"})(dh||(dh={}));var hh;(function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(hh||(hh={}));var mh;(function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"})(mh||(mh={}));const Qa=class Qa{static chord(t,n){return Dy(t,n)}};Qa.CtrlCmd=2048,Qa.Shift=1024,Qa.Alt=512,Qa.WinCtrl=256;let Dc=Qa;function qy(){return{editor:void 0,languages:void 0,CancellationTokenSource:hy,Emitter:Zs,KeyCode:hc,KeyMod:Dc,Position:Cr,Range:Zn,Selection:ws,SelectionDirection:yc,MarkerSeverity:mc,MarkerTag:gc,Uri:fc,Token:Vy}}var gh;class Uy{constructor(){this[gh]="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(t){return this._map.has(t)}get(t,n=0){const r=this._map.get(t);if(r)return n!==0&&this.touch(r,n),r.value}set(t,n,r=0){let s=this._map.get(t);if(s)s.value=n,r!==0&&this.touch(s,r);else{switch(s={key:t,value:n,next:void 0,previous:void 0},r){case 0:this.addItemLast(s);break;case 1:this.addItemFirst(s);break;case 2:this.addItemLast(s);break;default:this.addItemLast(s);break}this._map.set(t,s),this._size++}return this}delete(t){return!!this.remove(t)}remove(t){const n=this._map.get(t);if(n)return this._map.delete(t),this.removeItem(n),this._size--,n.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const t=this._head;return this._map.delete(t.key),this.removeItem(t),this._size--,t.value}forEach(t,n){const r=this._state;let s=this._head;for(;s;){if(n?t.bind(n)(s.value,s.key,this):t(s.value,s.key,this),this._state!==r)throw new Error("LinkedMap got modified during iteration.");s=s.next}}keys(){const t=this,n=this._state;let r=this._head;const s={[Symbol.iterator](){return s},next(){if(t._state!==n)throw new Error("LinkedMap got modified during iteration.");if(r){const i={value:r.key,done:!1};return r=r.next,i}else return{value:void 0,done:!0}}};return s}values(){const t=this,n=this._state;let r=this._head;const s={[Symbol.iterator](){return s},next(){if(t._state!==n)throw new Error("LinkedMap got modified during iteration.");if(r){const i={value:r.value,done:!1};return r=r.next,i}else return{value:void 0,done:!0}}};return s}entries(){const t=this,n=this._state;let r=this._head;const s={[Symbol.iterator](){return s},next(){if(t._state!==n)throw new Error("LinkedMap got modified during iteration.");if(r){const i={value:[r.key,r.value],done:!1};return r=r.next,i}else return{value:void 0,done:!0}}};return s}[(gh=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(t){if(t>=this.size)return;if(t===0){this.clear();return}let n=this._head,r=this.size;for(;n&&r>t;)this._map.delete(n.key),n=n.next,r--;this._head=n,this._size=r,n&&(n.previous=void 0),this._state++}trimNew(t){if(t>=this.size)return;if(t===0){this.clear();return}let n=this._tail,r=this.size;for(;n&&r>t;)this._map.delete(n.key),n=n.previous,r--;this._tail=n,this._size=r,n&&(n.next=void 0),this._state++}addItemFirst(t){if(!this._head&&!this._tail)this._tail=t;else if(this._head)t.next=this._head,this._head.previous=t;else throw new Error("Invalid list");this._head=t,this._state++}addItemLast(t){if(!this._head&&!this._tail)this._head=t;else if(this._tail)t.previous=this._tail,this._tail.next=t;else throw new Error("Invalid list");this._tail=t,this._state++}removeItem(t){if(t===this._head&&t===this._tail)this._head=void 0,this._tail=void 0;else if(t===this._head){if(!t.next)throw new Error("Invalid list");t.next.previous=void 0,this._head=t.next}else if(t===this._tail){if(!t.previous)throw new Error("Invalid list");t.previous.next=void 0,this._tail=t.previous}else{const n=t.next,r=t.previous;if(!n||!r)throw new Error("Invalid list");n.previous=r,r.next=n}t.next=void 0,t.previous=void 0,this._state++}touch(t,n){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(n!==1&&n!==2)){if(n===1){if(t===this._head)return;const r=t.next,s=t.previous;t===this._tail?(s.next=void 0,this._tail=s):(r.previous=s,s.next=r),t.previous=void 0,t.next=this._head,this._head.previous=t,this._head=t,this._state++}else if(n===2){if(t===this._tail)return;const r=t.next,s=t.previous;t===this._head?(r.previous=void 0,this._head=r):(r.previous=s,s.next=r),t.next=void 0,t.previous=this._tail,this._tail.next=t,this._tail=t,this._state++}}}toJSON(){const t=[];return this.forEach((n,r)=>{t.push([r,n])}),t}fromJSON(t){this.clear();for(const[n,r]of t)this.set(n,r)}}class Wy extends Uy{constructor(t,n=1){super(),this._limit=t,this._ratio=Math.min(Math.max(0,n),1)}get limit(){return this._limit}set limit(t){this._limit=t,this.checkTrim()}get(t,n=2){return super.get(t,n)}peek(t){return super.get(t,0)}set(t,n){return super.set(t,n,2),this}checkTrim(){this.size>this._limit&&this.trim(Math.round(this._limit*this._ratio))}}class Gy extends Wy{constructor(t,n=1){super(t,n)}trim(t){this.trimOld(t)}set(t,n){return super.set(t,n),this.checkTrim(),this}}class Jy{constructor(){this.map=new Map}add(t,n){let r=this.map.get(t);r||(r=new Set,this.map.set(t,r)),r.add(n)}delete(t,n){const r=this.map.get(t);r&&(r.delete(n),r.size===0&&this.map.delete(t))}forEach(t,n){const r=this.map.get(t);r&&r.forEach(n)}}new Gy(10);var yh;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"})(yh||(yh={}));var Dh;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"})(Dh||(Dh={}));var bh;(function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"})(bh||(bh={}));var vh;(function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"})(vh||(vh={}));function Yy(e){if(!e||e.length===0)return!1;for(let t=0,n=e.length;t<n;t++){const r=e.charCodeAt(t);if(r===10)return!0;if(r===92){if(t++,t>=n)break;const s=e.charCodeAt(t);if(s===110||s===114||s===87)return!0}}return!1}function Hy(e,t,n,r,s){if(r===0)return!0;const i=t.charCodeAt(r-1);if(e.get(i)!==0||i===13||i===10)return!0;if(s>0){const a=t.charCodeAt(r);if(e.get(a)!==0)return!0}return!1}function zy(e,t,n,r,s){if(r+s===n)return!0;const i=t.charCodeAt(r+s);if(e.get(i)!==0||i===13||i===10)return!0;if(s>0){const a=t.charCodeAt(r+s-1);if(e.get(a)!==0)return!0}return!1}function Xy(e,t,n,r,s){return Hy(e,t,n,r,s)&&zy(e,t,n,r,s)}class Qy{constructor(t,n){this._wordSeparators=t,this._searchRegex=n,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(t){this._searchRegex.lastIndex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(t){const n=t.length;let r;do{if(this._prevMatchStartIndex+this._prevMatchLength===n||(r=this._searchRegex.exec(t),!r))return null;const s=r.index,i=r[0].length;if(s===this._prevMatchStartIndex&&i===this._prevMatchLength){if(i===0){X1(t,n,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=s,this._prevMatchLength=i,!this._wordSeparators||Xy(this._wordSeparators,t,n,s,i))return r}while(r);return null}}const Ky="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function Zy(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(const n of Ky)e.indexOf(n)>=0||(t+="\\"+n);return t+="\\s]+)",new RegExp(t,"g")}const Eh=Zy();function Ah(e){let t=Eh;if(e&&e instanceof RegExp)if(e.global)t=e;else{let n="g";e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.unicode&&(n+="u"),t=new RegExp(e.source,n)}return t.lastIndex=0,t}const wh=new x1;wh.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function bc(e,t,n,r,s){if(t=Ah(t),s||(s=su.first(wh)),n.length>s.maxLen){let l=e-s.maxLen/2;return l<0?l=0:r+=l,n=n.substring(l,e+s.maxLen/2),bc(e,t,n,r,s)}const i=Date.now(),a=e-1-r;let o=-1,u=null;for(let l=1;!(Date.now()-i>=s.timeBudget);l++){const b=a-s.windowSize*l;t.lastIndex=Math.max(0,b);const c=eD(t,n,a,o);if(!c&&u||(u=c,b<=0))break;o=b}if(u){const l={word:u[0],startColumn:r+1+u.index,endColumn:r+1+u.index+u[0].length};return t.lastIndex=0,l}return null}function eD(e,t,n,r){let s;for(;s=e.exec(t);){const i=s.index||0;if(i<=n&&e.lastIndex>=n)return s;if(r>0&&i>r)return null}return null}class tD{static computeUnicodeHighlights(t,n,r){const s=r?r.startLineNumber:1,i=r?r.endLineNumber:t.getLineCount(),a=new xh(n),o=a.getCandidateCodePoints();let u;o==="allNonBasicAscii"?u=new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):u=new RegExp(`${nD(Array.from(o))}`,"g");const l=new Qy(null,u),b=[];let c=!1,T,K=0,ne=0,O=0;e:for(let k=s,me=i;k<=me;k++){const Se=t.getLineContent(k),_e=Se.length;l.reset(0);do if(T=l.next(Se),T){let Ye=T.index,ve=T.index+T[0].length;if(Ye>0){const xe=Se.charCodeAt(Ye-1);tc(xe)&&Ye--}if(ve+1<_e){const xe=Se.charCodeAt(ve-1);tc(xe)&&ve++}const Pe=Se.substring(Ye,ve);let Fe=bc(Ye+1,Eh,Se,0);Fe&&Fe.endColumn<=Ye+1&&(Fe=null);const Be=a.shouldHighlightNonBasicASCII(Pe,Fe?Fe.word:null);if(Be!==0){if(Be===3?K++:Be===2?ne++:Be===1?O++:D1(),b.length>=1e3){c=!0;break e}b.push(new Zn(k,Ye+1,k,ve+1))}}while(T)}return{ranges:b,hasMore:c,ambiguousCharacterCount:K,invisibleCharacterCount:ne,nonBasicAsciiCharacterCount:O}}static computeUnicodeHighlightReason(t,n){const r=new xh(n);switch(r.shouldHighlightNonBasicASCII(t,null)){case 0:return null;case 2:return{kind:1};case 3:{const i=t.codePointAt(0),a=r.ambiguousCharacters.getPrimaryConfusable(i),o=yo.getLocales().filter(u=>!yo.getInstance(new Set([...n.allowedLocales,u])).isAmbiguous(i));return{kind:0,confusableWith:String.fromCodePoint(a),notAmbiguousInLocales:o}}case 1:return{kind:2}}}}function nD(e,t){return`[${V1(e.map(r=>String.fromCodePoint(r)).join(""))}]`}class xh{constructor(t){this.options=t,this.allowedCodePoints=new Set(t.allowedCodePoints),this.ambiguousCharacters=yo.getInstance(new Set(t.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const t=new Set;if(this.options.invisibleCharacters)for(const n of Do.codePoints)Ch(String.fromCodePoint(n))||t.add(n);if(this.options.ambiguousCharacters)for(const n of this.ambiguousCharacters.getConfusableCodePoints())t.add(n);for(const n of this.allowedCodePoints)t.delete(n);return t}shouldHighlightNonBasicASCII(t,n){const r=t.codePointAt(0);if(this.allowedCodePoints.has(r))return 0;if(this.options.nonBasicASCII)return 1;let s=!1,i=!1;if(n)for(const a of n){const o=a.codePointAt(0),u=K1(a);s=s||u,!u&&!this.ambiguousCharacters.isAmbiguous(o)&&!Do.isInvisibleCharacter(o)&&(i=!0)}return!s&&i?0:this.options.invisibleCharacters&&!Ch(t)&&Do.isInvisibleCharacter(r)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(r)?3:0}}function Ch(e){return e===" "||e===`
8
+ `||e===" "}class mu{constructor(t,n,r){this.changes=t,this.moves=n,this.hitTimeout=r}}class rD{constructor(t,n){this.lineRangeMapping=t,this.changes=n}}function sD(e,t,n=(r,s)=>r===s){if(e===t)return!0;if(!e||!t||e.length!==t.length)return!1;for(let r=0,s=e.length;r<s;r++)if(!n(e[r],t[r]))return!1;return!0}function*iD(e,t){let n,r;for(const s of e)r!==void 0&&t(r,s)?n.push(s):(n&&(yield n),n=[s]),r=s;n&&(yield n)}function aD(e,t){for(let n=0;n<=e.length;n++)t(n===0?void 0:e[n-1],n===e.length?void 0:e[n])}function oD(e,t){for(let n=0;n<e.length;n++)t(n===0?void 0:e[n-1],e[n],n+1===e.length?void 0:e[n+1])}function uD(e,t){for(const n of t)e.push(n)}var vc;(function(e){function t(i){return i<0}e.isLessThan=t;function n(i){return i<=0}e.isLessThanOrEqual=n;function r(i){return i>0}e.isGreaterThan=r;function s(i){return i===0}e.isNeitherLessOrGreaterThan=s,e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0})(vc||(vc={}));function vo(e,t){return(n,r)=>t(e(n),e(r))}const Eo=(e,t)=>e-t;function lD(e){return(t,n)=>-e(t,n)}const Ka=class Ka{constructor(t){this.iterate=t}toArray(){const t=[];return this.iterate(n=>(t.push(n),!0)),t}filter(t){return new Ka(n=>this.iterate(r=>t(r)?n(r):!0))}map(t){return new Ka(n=>this.iterate(r=>n(t(r))))}findLast(t){let n;return this.iterate(r=>(t(r)&&(n=r),!0)),n}findLastMaxBy(t){let n,r=!0;return this.iterate(s=>((r||vc.isGreaterThan(t(s,n)))&&(r=!1,n=s),!0)),n}};Ka.empty=new Ka(t=>{});let Sh=Ka;class nr{static fromTo(t,n){return new nr(t,n)}static addRange(t,n){let r=0;for(;r<n.length&&n[r].endExclusive<t.start;)r++;let s=r;for(;s<n.length&&n[s].start<=t.endExclusive;)s++;if(r===s)n.splice(r,0,t);else{const i=Math.min(t.start,n[r].start),a=Math.max(t.endExclusive,n[s-1].endExclusive);n.splice(r,s-r,new nr(i,a))}}static tryCreate(t,n){if(!(t>n))return new nr(t,n)}static ofLength(t){return new nr(0,t)}static ofStartAndLength(t,n){return new nr(t,t+n)}static emptyAt(t){return new nr(t,t)}constructor(t,n){if(this.start=t,this.endExclusive=n,t>n)throw new ts(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(t){return new nr(this.start+t,this.endExclusive+t)}deltaStart(t){return new nr(this.start+t,this.endExclusive)}deltaEnd(t){return new nr(this.start,this.endExclusive+t)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}equals(t){return this.start===t.start&&this.endExclusive===t.endExclusive}contains(t){return this.start<=t&&t<this.endExclusive}join(t){return new nr(Math.min(this.start,t.start),Math.max(this.endExclusive,t.endExclusive))}intersect(t){const n=Math.max(this.start,t.start),r=Math.min(this.endExclusive,t.endExclusive);if(n<=r)return new nr(n,r)}intersectionLength(t){const n=Math.max(this.start,t.start),r=Math.min(this.endExclusive,t.endExclusive);return Math.max(0,r-n)}intersects(t){const n=Math.max(this.start,t.start),r=Math.min(this.endExclusive,t.endExclusive);return n<r}intersectsOrTouches(t){const n=Math.max(this.start,t.start),r=Math.min(this.endExclusive,t.endExclusive);return n<=r}isBefore(t){return this.endExclusive<=t.start}isAfter(t){return this.start>=t.endExclusive}slice(t){return t.slice(this.start,this.endExclusive)}substring(t){return t.substring(this.start,this.endExclusive)}clip(t){if(this.isEmpty)throw new ts(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,t))}clipCyclic(t){if(this.isEmpty)throw new ts(`Invalid clipping range: ${this.toString()}`);return t<this.start?this.endExclusive-(this.start-t)%this.length:t>=this.endExclusive?this.start+(t-this.start)%this.length:t}forEach(t){for(let n=this.start;n<this.endExclusive;n++)t(n)}joinRightTouching(t){if(this.endExclusive!==t.start)throw new ts(`Invalid join: ${this.toString()} and ${t.toString()}`);return new nr(this.start,t.endExclusive)}}function Da(e,t){const n=ba(e,t);return n===-1?void 0:e[n]}function ba(e,t,n=0,r=e.length){let s=n,i=r;for(;s<i;){const a=Math.floor((s+i)/2);t(e[a])?s=a+1:i=a}return s-1}function cD(e,t){const n=Ec(e,t);return n===e.length?void 0:e[n]}function Ec(e,t,n=0,r=e.length){let s=n,i=r;for(;s<i;){const a=Math.floor((s+i)/2);t(e[a])?i=a:s=a+1}return s}const fl=class fl{constructor(t){this._array=t,this._findLastMonotonousLastIdx=0}findLastMonotonous(t){if(fl.assertInvariants){if(this._prevFindLastPredicate){for(const r of this._array)if(this._prevFindLastPredicate(r)&&!t(r))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.")}this._prevFindLastPredicate=t}const n=ba(this._array,t,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=n+1,n===-1?void 0:this._array[n]}};fl.assertInvariants=!1;let gu=fl;const Fs=class Fs{static ofLength(t,n){return new Fs(t,t+n)}static fromRange(t){return new Fs(t.startLineNumber,t.endLineNumber)}static fromRangeInclusive(t){return new Fs(t.startLineNumber,t.endLineNumber+1)}static joinMany(t){if(t.length===0)return[];let n=new ti(t[0].slice());for(let r=1;r<t.length;r++)n=n.getUnion(new ti(t[r].slice()));return n.ranges}static join(t){if(t.length===0)throw new ts("lineRanges cannot be empty");let n=t[0].startLineNumber,r=t[0].endLineNumberExclusive;for(let s=1;s<t.length;s++)n=Math.min(n,t[s].startLineNumber),r=Math.max(r,t[s].endLineNumberExclusive);return new Fs(n,r)}static deserialize(t){return new Fs(t[0],t[1])}constructor(t,n){if(t>n)throw new ts(`startLineNumber ${t} cannot be after endLineNumberExclusive ${n}`);this.startLineNumber=t,this.endLineNumberExclusive=n}contains(t){return this.startLineNumber<=t&&t<this.endLineNumberExclusive}get isEmpty(){return this.startLineNumber===this.endLineNumberExclusive}delta(t){return new Fs(this.startLineNumber+t,this.endLineNumberExclusive+t)}deltaLength(t){return new Fs(this.startLineNumber,this.endLineNumberExclusive+t)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(t){return new Fs(Math.min(this.startLineNumber,t.startLineNumber),Math.max(this.endLineNumberExclusive,t.endLineNumberExclusive))}toString(){return`[${this.startLineNumber},${this.endLineNumberExclusive})`}intersect(t){const n=Math.max(this.startLineNumber,t.startLineNumber),r=Math.min(this.endLineNumberExclusive,t.endLineNumberExclusive);if(n<=r)return new Fs(n,r)}intersectsStrict(t){return this.startLineNumber<t.endLineNumberExclusive&&t.startLineNumber<this.endLineNumberExclusive}intersectsOrTouches(t){return this.startLineNumber<=t.endLineNumberExclusive&&t.startLineNumber<=this.endLineNumberExclusive}equals(t){return this.startLineNumber===t.startLineNumber&&this.endLineNumberExclusive===t.endLineNumberExclusive}toInclusiveRange(){return this.isEmpty?null:new Zn(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new Zn(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(t){const n=[];for(let r=this.startLineNumber;r<this.endLineNumberExclusive;r++)n.push(t(r));return n}forEach(t){for(let n=this.startLineNumber;n<this.endLineNumberExclusive;n++)t(n)}serialize(){return[this.startLineNumber,this.endLineNumberExclusive]}toOffsetRange(){return new nr(this.startLineNumber-1,this.endLineNumberExclusive-1)}addMargin(t,n){return new Fs(this.startLineNumber-t,this.endLineNumberExclusive+n)}};Fs.compareByStart=vo(t=>t.startLineNumber,Eo);let ar=Fs;class ti{constructor(t=[]){this._normalizedRanges=t}get ranges(){return this._normalizedRanges}addRange(t){if(t.length===0)return;const n=Ec(this._normalizedRanges,s=>s.endLineNumberExclusive>=t.startLineNumber),r=ba(this._normalizedRanges,s=>s.startLineNumber<=t.endLineNumberExclusive)+1;if(n===r)this._normalizedRanges.splice(n,0,t);else if(n===r-1){const s=this._normalizedRanges[n];this._normalizedRanges[n]=s.join(t)}else{const s=this._normalizedRanges[n].join(this._normalizedRanges[r-1]).join(t);this._normalizedRanges.splice(n,r-n,s)}}contains(t){const n=Da(this._normalizedRanges,r=>r.startLineNumber<=t);return!!n&&n.endLineNumberExclusive>t}intersects(t){const n=Da(this._normalizedRanges,r=>r.startLineNumber<t.endLineNumberExclusive);return!!n&&n.endLineNumberExclusive>t.startLineNumber}getUnion(t){if(this._normalizedRanges.length===0)return t;if(t._normalizedRanges.length===0)return this;const n=[];let r=0,s=0,i=null;for(;r<this._normalizedRanges.length||s<t._normalizedRanges.length;){let a=null;if(r<this._normalizedRanges.length&&s<t._normalizedRanges.length){const o=this._normalizedRanges[r],u=t._normalizedRanges[s];o.startLineNumber<u.startLineNumber?(a=o,r++):(a=u,s++)}else r<this._normalizedRanges.length?(a=this._normalizedRanges[r],r++):(a=t._normalizedRanges[s],s++);i===null?i=a:i.endLineNumberExclusive>=a.startLineNumber?i=new ar(i.startLineNumber,Math.max(i.endLineNumberExclusive,a.endLineNumberExclusive)):(n.push(i),i=a)}return i!==null&&n.push(i),new ti(n)}subtractFrom(t){const n=Ec(this._normalizedRanges,a=>a.endLineNumberExclusive>=t.startLineNumber),r=ba(this._normalizedRanges,a=>a.startLineNumber<=t.endLineNumberExclusive)+1;if(n===r)return new ti([t]);const s=[];let i=t.startLineNumber;for(let a=n;a<r;a++){const o=this._normalizedRanges[a];o.startLineNumber>i&&s.push(new ar(i,o.startLineNumber)),i=o.endLineNumberExclusive}return i<t.endLineNumberExclusive&&s.push(new ar(i,t.endLineNumberExclusive)),new ti(s)}toString(){return this._normalizedRanges.map(t=>t.toString()).join(", ")}getIntersection(t){const n=[];let r=0,s=0;for(;r<this._normalizedRanges.length&&s<t._normalizedRanges.length;){const i=this._normalizedRanges[r],a=t._normalizedRanges[s],o=i.intersect(a);o&&!o.isEmpty&&n.push(o),i.endLineNumberExclusive<a.endLineNumberExclusive?r++:s++}return new ti(n)}getWithDelta(t){return new ti(this._normalizedRanges.map(n=>n.delta(t)))}}const zs=class zs{static betweenPositions(t,n){return t.lineNumber===n.lineNumber?new zs(0,n.column-t.column):new zs(n.lineNumber-t.lineNumber,n.column-1)}static fromPosition(t){return new zs(t.lineNumber-1,t.column-1)}static ofRange(t){return zs.betweenPositions(t.getStartPosition(),t.getEndPosition())}static ofText(t){let n=0,r=0;for(const s of t)s===`
9
+ `?(n++,r=0):r++;return new zs(n,r)}constructor(t,n){this.lineCount=t,this.columnCount=n}isGreaterThanOrEqualTo(t){return this.lineCount!==t.lineCount?this.lineCount>t.lineCount:this.columnCount>=t.columnCount}add(t){return t.lineCount===0?new zs(this.lineCount,this.columnCount+t.columnCount):new zs(this.lineCount+t.lineCount,t.columnCount)}createRange(t){return this.lineCount===0?new Zn(t.lineNumber,t.column,t.lineNumber,t.column+this.columnCount):new Zn(t.lineNumber,t.column,t.lineNumber+this.lineCount,this.columnCount+1)}toRange(){return new Zn(1,1,this.lineCount+1,this.columnCount+1)}toLineRange(){return ar.ofLength(1,this.lineCount+1)}addToPosition(t){return this.lineCount===0?new Cr(t.lineNumber,t.column+this.columnCount):new Cr(t.lineNumber+this.lineCount,this.columnCount+1)}toString(){return`${this.lineCount},${this.columnCount}`}};zs.zero=new zs(0,0);let Ao=zs;class fD{getOffsetRange(t){return new nr(this.getOffset(t.getStartPosition()),this.getOffset(t.getEndPosition()))}getRange(t){return Zn.fromPositions(this.getPosition(t.start),this.getPosition(t.endExclusive))}getStringReplacement(t){return new va.deps.StringReplacement(this.getOffsetRange(t.range),t.text)}getTextReplacement(t){return new va.deps.TextReplacement(this.getRange(t.replaceRange),t.newText)}getTextEdit(t){const n=t.replacements.map(r=>this.getTextReplacement(r));return new va.deps.TextEdit(n)}}const Wf=class Wf{static get deps(){if(!this._deps)throw new Error("Dependencies not set. Call _setDependencies first.");return this._deps}};Wf._deps=void 0;let va=Wf;class pD extends fD{constructor(t){super(),this.text=t,this.lineStartOffsetByLineIdx=[],this.lineEndOffsetByLineIdx=[],this.lineStartOffsetByLineIdx.push(0);for(let n=0;n<t.length;n++)t.charAt(n)===`
10
+ `&&(this.lineStartOffsetByLineIdx.push(n+1),n>0&&t.charAt(n-1)==="\r"?this.lineEndOffsetByLineIdx.push(n-1):this.lineEndOffsetByLineIdx.push(n));this.lineEndOffsetByLineIdx.push(t.length)}getOffset(t){const n=this._validatePosition(t);return this.lineStartOffsetByLineIdx[n.lineNumber-1]+n.column-1}_validatePosition(t){if(t.lineNumber<1)return new Cr(1,1);const n=this.textLength.lineCount+1;if(t.lineNumber>n){const s=this.getLineLength(n);return new Cr(n,s+1)}if(t.column<1)return new Cr(t.lineNumber,1);const r=this.getLineLength(t.lineNumber);return t.column-1>r?new Cr(t.lineNumber,r+1):t}getPosition(t){const n=ba(this.lineStartOffsetByLineIdx,i=>i<=t),r=n+1,s=t-this.lineStartOffsetByLineIdx[n]+1;return new Cr(r,s)}get textLength(){const t=this.lineStartOffsetByLineIdx.length-1;return new va.deps.TextLength(t,this.text.length-this.lineStartOffsetByLineIdx[t])}getLineLength(t){return this.lineEndOffsetByLineIdx[t-1]-this.lineStartOffsetByLineIdx[t-1]}}class dD{constructor(){this._transformer=void 0}get endPositionExclusive(){return this.length.addToPosition(new Cr(1,1))}get lineRange(){return this.length.toLineRange()}getValue(){return this.getValueOfRange(this.length.toRange())}getValueOfOffsetRange(t){return this.getValueOfRange(this.getTransformer().getRange(t))}getLineLength(t){return this.getValueOfRange(new Zn(t,1,t,Number.MAX_SAFE_INTEGER)).length}getTransformer(){return this._transformer||(this._transformer=new pD(this.getValue())),this._transformer}getLineAt(t){return this.getValueOfRange(new Zn(t,1,t,Number.MAX_SAFE_INTEGER))}}class hD extends dD{constructor(t,n){b1(n>=1),super(),this._getLineContent=t,this._lineCount=n}getValueOfRange(t){if(t.startLineNumber===t.endLineNumber)return this._getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1);let n=this._getLineContent(t.startLineNumber).substring(t.startColumn-1);for(let r=t.startLineNumber+1;r<t.endLineNumber;r++)n+=`
11
+ `+this._getLineContent(r);return n+=`
12
+ `+this._getLineContent(t.endLineNumber).substring(0,t.endColumn-1),n}getLineLength(t){return this._getLineContent(t).length}get length(){const t=this._getLineContent(this._lineCount);return new Ao(this._lineCount-1,t.length)}}class yu extends hD{constructor(t){super(n=>t[n-1],t.length)}}class Fi{static joinReplacements(t,n){if(t.length===0)throw new ts;if(t.length===1)return t[0];const r=t[0].range.getStartPosition(),s=t[t.length-1].range.getEndPosition();let i="";for(let a=0;a<t.length;a++){const o=t[a];if(i+=o.text,a<t.length-1){const u=t[a+1],l=Zn.fromPositions(o.range.getEndPosition(),u.range.getStartPosition()),b=n.getValueOfRange(l);i+=b}}return new Fi(Zn.fromPositions(r,s),i)}static fromStringReplacement(t,n){return new Fi(n.getTransformer().getRange(t.replaceRange),t.newText)}static delete(t){return new Fi(t,"")}constructor(t,n){this.range=t,this.text=n}get isEmpty(){return this.range.isEmpty()&&this.text.length===0}static equals(t,n){return t.range.equalsRange(n.range)&&t.text===n.text}equals(t){return Fi.equals(this,t)}removeCommonPrefixAndSuffix(t){return this.removeCommonPrefix(t).removeCommonSuffix(t)}removeCommonPrefix(t){const n=t.getValueOfRange(this.range).replaceAll(`\r
13
+ `,`
14
+ `),r=this.text.replaceAll(`\r
15
+ `,`
16
+ `),s=J1(n,r),i=Ao.ofText(n.substring(0,s)).addToPosition(this.range.getStartPosition()),a=r.substring(s),o=Zn.fromPositions(i,this.range.getEndPosition());return new Fi(o,a)}removeCommonSuffix(t){const n=t.getValueOfRange(this.range).replaceAll(`\r
17
+ `,`
18
+ `),r=this.text.replaceAll(`\r
19
+ `,`
20
+ `),s=Y1(n,r),i=Ao.ofText(n.substring(0,n.length-s)).addToPosition(this.range.getStartPosition()),a=r.substring(0,r.length-s),o=Zn.fromPositions(this.range.getStartPosition(),i);return new Fi(o,a)}toString(){const t=this.range.getStartPosition(),n=this.range.getEndPosition();return`(${t.lineNumber},${t.column} -> ${n.lineNumber},${n.column}): "${this.text}"`}}class ks{static inverse(t,n,r){const s=[];let i=1,a=1;for(const u of t){const l=new ks(new ar(i,u.original.startLineNumber),new ar(a,u.modified.startLineNumber));l.modified.isEmpty||s.push(l),i=u.original.endLineNumberExclusive,a=u.modified.endLineNumberExclusive}const o=new ks(new ar(i,n+1),new ar(a,r+1));return o.modified.isEmpty||s.push(o),s}static clip(t,n,r){const s=[];for(const i of t){const a=i.original.intersect(n),o=i.modified.intersect(r);a&&!a.isEmpty&&o&&!o.isEmpty&&s.push(new ks(a,o))}return s}constructor(t,n){this.original=t,this.modified=n}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new ks(this.modified,this.original)}join(t){return new ks(this.original.join(t.original),this.modified.join(t.modified))}toRangeMapping(){const t=this.original.toInclusiveRange(),n=this.modified.toInclusiveRange();if(t&&n)return new Ps(t,n);if(this.original.startLineNumber===1||this.modified.startLineNumber===1){if(!(this.modified.startLineNumber===1&&this.original.startLineNumber===1))throw new ts("not a valid diff");return new Ps(new Zn(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new Zn(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1))}else return new Ps(new Zn(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),new Zn(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER))}toRangeMapping2(t,n){if(Fh(this.original.endLineNumberExclusive,t)&&Fh(this.modified.endLineNumberExclusive,n))return new Ps(new Zn(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new Zn(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1));if(!this.original.isEmpty&&!this.modified.isEmpty)return new Ps(Zn.fromPositions(new Cr(this.original.startLineNumber,1),Ea(new Cr(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),t)),Zn.fromPositions(new Cr(this.modified.startLineNumber,1),Ea(new Cr(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),n)));if(this.original.startLineNumber>1&&this.modified.startLineNumber>1)return new Ps(Zn.fromPositions(Ea(new Cr(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER),t),Ea(new Cr(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),t)),Zn.fromPositions(Ea(new Cr(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER),n),Ea(new Cr(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),n)));throw new ts}}function Ea(e,t){if(e.lineNumber<1)return new Cr(1,1);if(e.lineNumber>t.length)return new Cr(t.length,t[t.length-1].length+1);const n=t[e.lineNumber-1];return e.column>n.length+1?new Cr(e.lineNumber,n.length+1):e}function Fh(e,t){return e>=1&&e<=t.length}class ci extends ks{static fromRangeMappings(t){const n=ar.join(t.map(s=>ar.fromRangeInclusive(s.originalRange))),r=ar.join(t.map(s=>ar.fromRangeInclusive(s.modifiedRange)));return new ci(n,r,t)}constructor(t,n,r){super(t,n),this.innerChanges=r}flip(){return new ci(this.modified,this.original,this.innerChanges?.map(t=>t.flip()))}withInnerChangesFromLineRanges(){return new ci(this.original,this.modified,[this.toRangeMapping()])}}class Ps{static fromEdit(t){const n=t.getNewRanges();return t.replacements.map((s,i)=>new Ps(s.range,n[i]))}static assertSorted(t){for(let n=1;n<t.length;n++){const r=t[n-1],s=t[n];if(!(r.originalRange.getEndPosition().isBeforeOrEqual(s.originalRange.getStartPosition())&&r.modifiedRange.getEndPosition().isBeforeOrEqual(s.modifiedRange.getStartPosition())))throw new ts("Range mappings must be sorted")}}constructor(t,n){this.originalRange=t,this.modifiedRange=n}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new Ps(this.modifiedRange,this.originalRange)}toTextEdit(t){const n=t.getValueOfRange(this.modifiedRange);return new Fi(this.originalRange,n)}}function Nh(e,t,n,r=!1){const s=[];for(const i of iD(e.map(a=>mD(a,t,n)),(a,o)=>a.original.intersectsOrTouches(o.original)||a.modified.intersectsOrTouches(o.modified))){const a=i[0],o=i[i.length-1];s.push(new ci(a.original.join(o.original),a.modified.join(o.modified),i.map(u=>u.innerChanges[0])))}return ru(()=>!r&&s.length>0&&(s[0].modified.startLineNumber!==s[0].original.startLineNumber||n.length.lineCount-s[s.length-1].modified.endLineNumberExclusive!==t.length.lineCount-s[s.length-1].original.endLineNumberExclusive)?!1:Up(s,(i,a)=>a.original.startLineNumber-i.original.endLineNumberExclusive===a.modified.startLineNumber-i.modified.endLineNumberExclusive&&i.original.endLineNumberExclusive<a.original.startLineNumber&&i.modified.endLineNumberExclusive<a.modified.startLineNumber)),s}function mD(e,t,n){let r=0,s=0;e.modifiedRange.endColumn===1&&e.originalRange.endColumn===1&&e.originalRange.startLineNumber+r<=e.originalRange.endLineNumber&&e.modifiedRange.startLineNumber+r<=e.modifiedRange.endLineNumber&&(s=-1),e.modifiedRange.startColumn-1>=n.getLineLength(e.modifiedRange.startLineNumber)&&e.originalRange.startColumn-1>=t.getLineLength(e.originalRange.startLineNumber)&&e.originalRange.startLineNumber<=e.originalRange.endLineNumber+s&&e.modifiedRange.startLineNumber<=e.modifiedRange.endLineNumber+s&&(r=1);const i=new ar(e.originalRange.startLineNumber+r,e.originalRange.endLineNumber+1+s),a=new ar(e.modifiedRange.startLineNumber+r,e.modifiedRange.endLineNumber+1+s);return new ci(i,a,[e])}const gD=3;class yD{computeDiff(t,n,r){const i=new vD(t,n,{maxComputationTime:r.maxComputationTimeMs,shouldIgnoreTrimWhitespace:r.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),a=[];let o=null;for(const u of i.changes){let l;u.originalEndLineNumber===0?l=new ar(u.originalStartLineNumber+1,u.originalStartLineNumber+1):l=new ar(u.originalStartLineNumber,u.originalEndLineNumber+1);let b;u.modifiedEndLineNumber===0?b=new ar(u.modifiedStartLineNumber+1,u.modifiedStartLineNumber+1):b=new ar(u.modifiedStartLineNumber,u.modifiedEndLineNumber+1);let c=new ci(l,b,u.charChanges?.map(T=>new Ps(new Zn(T.originalStartLineNumber,T.originalStartColumn,T.originalEndLineNumber,T.originalEndColumn),new Zn(T.modifiedStartLineNumber,T.modifiedStartColumn,T.modifiedEndLineNumber,T.modifiedEndColumn))));o&&(o.modified.endLineNumberExclusive===c.modified.startLineNumber||o.original.endLineNumberExclusive===c.original.startLineNumber)&&(c=new ci(o.original.join(c.original),o.modified.join(c.modified),o.innerChanges&&c.innerChanges?o.innerChanges.concat(c.innerChanges):void 0),a.pop()),a.push(c),o=c}return ru(()=>Up(a,(u,l)=>l.original.startLineNumber-u.original.endLineNumberExclusive===l.modified.startLineNumber-u.modified.endLineNumberExclusive&&u.original.endLineNumberExclusive<l.original.startLineNumber&&u.modified.endLineNumberExclusive<l.modified.startLineNumber)),new mu(a,[],i.quitEarly)}}function Th(e,t,n,r){return new Ci(e,t,n).ComputeDiff(r)}let _h=class{constructor(t){const n=[],r=[];for(let s=0,i=t.length;s<i;s++)n[s]=Ac(t[s],1),r[s]=wc(t[s],1);this.lines=t,this._startColumns=n,this._endColumns=r}getElements(){const t=[];for(let n=0,r=this.lines.length;n<r;n++)t[n]=this.lines[n].substring(this._startColumns[n]-1,this._endColumns[n]-1);return t}getStrictElement(t){return this.lines[t]}getStartLineNumber(t){return t+1}getEndLineNumber(t){return t+1}createCharSequence(t,n,r){const s=[],i=[],a=[];let o=0;for(let u=n;u<=r;u++){const l=this.lines[u],b=t?this._startColumns[u]:1,c=t?this._endColumns[u]:l.length+1;for(let T=b;T<c;T++)s[o]=l.charCodeAt(T-1),i[o]=u+1,a[o]=T,o++;!t&&u<r&&(s[o]=10,i[o]=u+1,a[o]=l.length+1,o++)}return new DD(s,i,a)}};class DD{constructor(t,n,r){this._charCodes=t,this._lineNumbers=n,this._columns=r}toString(){return"["+this._charCodes.map((t,n)=>(t===10?"\\n":String.fromCharCode(t))+`-(${this._lineNumbers[n]},${this._columns[n]})`).join(", ")+"]"}_assertIndex(t,n){if(t<0||t>=n.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(t){return t>0&&t===this._lineNumbers.length?this.getEndLineNumber(t-1):(this._assertIndex(t,this._lineNumbers),this._lineNumbers[t])}getEndLineNumber(t){return t===-1?this.getStartLineNumber(t+1):(this._assertIndex(t,this._lineNumbers),this._charCodes[t]===10?this._lineNumbers[t]+1:this._lineNumbers[t])}getStartColumn(t){return t>0&&t===this._columns.length?this.getEndColumn(t-1):(this._assertIndex(t,this._columns),this._columns[t])}getEndColumn(t){return t===-1?this.getStartColumn(t+1):(this._assertIndex(t,this._columns),this._charCodes[t]===10?1:this._columns[t]+1)}}class Aa{constructor(t,n,r,s,i,a,o,u){this.originalStartLineNumber=t,this.originalStartColumn=n,this.originalEndLineNumber=r,this.originalEndColumn=s,this.modifiedStartLineNumber=i,this.modifiedStartColumn=a,this.modifiedEndLineNumber=o,this.modifiedEndColumn=u}static createFromDiffChange(t,n,r){const s=n.getStartLineNumber(t.originalStart),i=n.getStartColumn(t.originalStart),a=n.getEndLineNumber(t.originalStart+t.originalLength-1),o=n.getEndColumn(t.originalStart+t.originalLength-1),u=r.getStartLineNumber(t.modifiedStart),l=r.getStartColumn(t.modifiedStart),b=r.getEndLineNumber(t.modifiedStart+t.modifiedLength-1),c=r.getEndColumn(t.modifiedStart+t.modifiedLength-1);return new Aa(s,i,a,o,u,l,b,c)}}function bD(e){if(e.length<=1)return e;const t=[e[0]];let n=t[0];for(let r=1,s=e.length;r<s;r++){const i=e[r],a=i.originalStart-(n.originalStart+n.originalLength),o=i.modifiedStart-(n.modifiedStart+n.modifiedLength);Math.min(a,o)<gD?(n.originalLength=i.originalStart+i.originalLength-n.originalStart,n.modifiedLength=i.modifiedStart+i.modifiedLength-n.modifiedStart):(t.push(i),n=i)}return t}class wo{constructor(t,n,r,s,i){this.originalStartLineNumber=t,this.originalEndLineNumber=n,this.modifiedStartLineNumber=r,this.modifiedEndLineNumber=s,this.charChanges=i}static createFromDiffResult(t,n,r,s,i,a,o){let u,l,b,c,T;if(n.originalLength===0?(u=r.getStartLineNumber(n.originalStart)-1,l=0):(u=r.getStartLineNumber(n.originalStart),l=r.getEndLineNumber(n.originalStart+n.originalLength-1)),n.modifiedLength===0?(b=s.getStartLineNumber(n.modifiedStart)-1,c=0):(b=s.getStartLineNumber(n.modifiedStart),c=s.getEndLineNumber(n.modifiedStart+n.modifiedLength-1)),a&&n.originalLength>0&&n.originalLength<20&&n.modifiedLength>0&&n.modifiedLength<20&&i()){const K=r.createCharSequence(t,n.originalStart,n.originalStart+n.originalLength-1),ne=s.createCharSequence(t,n.modifiedStart,n.modifiedStart+n.modifiedLength-1);if(K.getElements().length>0&&ne.getElements().length>0){let O=Th(K,ne,i,!0).changes;o&&(O=bD(O)),T=[];for(let k=0,me=O.length;k<me;k++)T.push(Aa.createFromDiffChange(O[k],K,ne))}}return new wo(u,l,b,c,T)}}class vD{constructor(t,n,r){this.shouldComputeCharChanges=r.shouldComputeCharChanges,this.shouldPostProcessCharChanges=r.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=r.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=r.shouldMakePrettyDiff,this.originalLines=t,this.modifiedLines=n,this.original=new _h(t),this.modified=new _h(n),this.continueLineDiff=Lh(r.maxComputationTime),this.continueCharDiff=Lh(r.maxComputationTime===0?0:Math.min(r.maxComputationTime,5e3))}computeDiff(){if(this.original.lines.length===1&&this.original.lines[0].length===0)return this.modified.lines.length===1&&this.modified.lines[0].length===0?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:void 0}]};if(this.modified.lines.length===1&&this.modified.lines[0].length===0)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:void 0}]};const t=Th(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),n=t.changes,r=t.quitEarly;if(this.shouldIgnoreTrimWhitespace){const o=[];for(let u=0,l=n.length;u<l;u++)o.push(wo.createFromDiffResult(this.shouldIgnoreTrimWhitespace,n[u],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:r,changes:o}}const s=[];let i=0,a=0;for(let o=-1,u=n.length;o<u;o++){const l=o+1<u?n[o+1]:null,b=l?l.originalStart:this.originalLines.length,c=l?l.modifiedStart:this.modifiedLines.length;for(;i<b&&a<c;){const T=this.originalLines[i],K=this.modifiedLines[a];if(T!==K){{let ne=Ac(T,1),O=Ac(K,1);for(;ne>1&&O>1;){const k=T.charCodeAt(ne-2),me=K.charCodeAt(O-2);if(k!==me)break;ne--,O--}(ne>1||O>1)&&this._pushTrimWhitespaceCharChange(s,i+1,1,ne,a+1,1,O)}{let ne=wc(T,1),O=wc(K,1);const k=T.length+1,me=K.length+1;for(;ne<k&&O<me;){const Se=T.charCodeAt(ne-1),_e=T.charCodeAt(O-1);if(Se!==_e)break;ne++,O++}(ne<k||O<me)&&this._pushTrimWhitespaceCharChange(s,i+1,ne,k,a+1,O,me)}}i++,a++}l&&(s.push(wo.createFromDiffResult(this.shouldIgnoreTrimWhitespace,l,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),i+=l.originalLength,a+=l.modifiedLength)}return{quitEarly:r,changes:s}}_pushTrimWhitespaceCharChange(t,n,r,s,i,a,o){if(this._mergeTrimWhitespaceCharChange(t,n,r,s,i,a,o))return;let u;this.shouldComputeCharChanges&&(u=[new Aa(n,r,n,s,i,a,i,o)]),t.push(new wo(n,n,i,i,u))}_mergeTrimWhitespaceCharChange(t,n,r,s,i,a,o){const u=t.length;if(u===0)return!1;const l=t[u-1];return l.originalEndLineNumber===0||l.modifiedEndLineNumber===0?!1:l.originalEndLineNumber===n&&l.modifiedEndLineNumber===i?(this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new Aa(n,r,n,s,i,a,i,o)),!0):l.originalEndLineNumber+1===n&&l.modifiedEndLineNumber+1===i?(l.originalEndLineNumber=n,l.modifiedEndLineNumber=i,this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new Aa(n,r,n,s,i,a,i,o)),!0):!1}}function Ac(e,t){const n=W1(e);return n===-1?t:n+1}function wc(e,t){const n=G1(e);return n===-1?t:n+2}function Lh(e){if(e===0)return()=>!0;const t=Date.now();return()=>Date.now()-t<e}class fi{static trivial(t,n){return new fi([new Mr(nr.ofLength(t.length),nr.ofLength(n.length))],!1)}static trivialTimedOut(t,n){return new fi([new Mr(nr.ofLength(t.length),nr.ofLength(n.length))],!0)}constructor(t,n){this.diffs=t,this.hitTimeout=n}}class Mr{static invert(t,n){const r=[];return aD(t,(s,i)=>{r.push(Mr.fromOffsetPairs(s?s.getEndExclusives():pi.zero,i?i.getStarts():new pi(n,(s?s.seq2Range.endExclusive-s.seq1Range.endExclusive:0)+n)))}),r}static fromOffsetPairs(t,n){return new Mr(new nr(t.offset1,n.offset1),new nr(t.offset2,n.offset2))}static assertSorted(t){let n;for(const r of t){if(n&&!(n.seq1Range.endExclusive<=r.seq1Range.start&&n.seq2Range.endExclusive<=r.seq2Range.start))throw new ts("Sequence diffs must be sorted");n=r}}constructor(t,n){this.seq1Range=t,this.seq2Range=n}swap(){return new Mr(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(t){return new Mr(this.seq1Range.join(t.seq1Range),this.seq2Range.join(t.seq2Range))}delta(t){return t===0?this:new Mr(this.seq1Range.delta(t),this.seq2Range.delta(t))}deltaStart(t){return t===0?this:new Mr(this.seq1Range.deltaStart(t),this.seq2Range.deltaStart(t))}deltaEnd(t){return t===0?this:new Mr(this.seq1Range.deltaEnd(t),this.seq2Range.deltaEnd(t))}intersect(t){const n=this.seq1Range.intersect(t.seq1Range),r=this.seq2Range.intersect(t.seq2Range);if(!(!n||!r))return new Mr(n,r)}getStarts(){return new pi(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new pi(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}const ea=class ea{constructor(t,n){this.offset1=t,this.offset2=n}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(t){return t===0?this:new ea(this.offset1+t,this.offset2+t)}equals(t){return this.offset1===t.offset1&&this.offset2===t.offset2}};ea.zero=new ea(0,0),ea.max=new ea(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER);let pi=ea;const pl=class pl{isValid(){return!0}};pl.instance=new pl;let xo=pl;class ED{constructor(t){if(this.timeout=t,this.startTime=Date.now(),this.valid=!0,t<=0)throw new ts("timeout must be positive")}isValid(){return!(Date.now()-this.startTime<this.timeout)&&this.valid&&(this.valid=!1),this.valid}}class xc{constructor(t,n){this.width=t,this.height=n,this.array=[],this.array=new Array(t*n)}get(t,n){return this.array[t+n*this.width]}set(t,n,r){this.array[t+n*this.width]=r}}function Cc(e){return e===32||e===9}const Wo=class Wo{static getKey(t){let n=this.chrKeys.get(t);return n===void 0&&(n=this.chrKeys.size,this.chrKeys.set(t,n)),n}constructor(t,n,r){this.range=t,this.lines=n,this.source=r,this.histogram=[];let s=0;for(let i=t.startLineNumber-1;i<t.endLineNumberExclusive-1;i++){const a=n[i];for(let u=0;u<a.length;u++){s++;const l=a[u],b=Wo.getKey(l);this.histogram[b]=(this.histogram[b]||0)+1}s++;const o=Wo.getKey(`
21
+ `);this.histogram[o]=(this.histogram[o]||0)+1}this.totalCount=s}computeSimilarity(t){let n=0;const r=Math.max(this.histogram.length,t.histogram.length);for(let s=0;s<r;s++)n+=Math.abs((this.histogram[s]??0)-(t.histogram[s]??0));return 1-n/(this.totalCount+t.totalCount)}};Wo.chrKeys=new Map;let Du=Wo;class AD{compute(t,n,r=xo.instance,s){if(t.length===0||n.length===0)return fi.trivial(t,n);const i=new xc(t.length,n.length),a=new xc(t.length,n.length),o=new xc(t.length,n.length);for(let ne=0;ne<t.length;ne++)for(let O=0;O<n.length;O++){if(!r.isValid())return fi.trivialTimedOut(t,n);const k=ne===0?0:i.get(ne-1,O),me=O===0?0:i.get(ne,O-1);let Se;t.getElement(ne)===n.getElement(O)?(ne===0||O===0?Se=0:Se=i.get(ne-1,O-1),ne>0&&O>0&&a.get(ne-1,O-1)===3&&(Se+=o.get(ne-1,O-1)),Se+=s?s(ne,O):1):Se=-1;const _e=Math.max(k,me,Se);if(_e===Se){const Ye=ne>0&&O>0?o.get(ne-1,O-1):0;o.set(ne,O,Ye+1),a.set(ne,O,3)}else _e===k?(o.set(ne,O,0),a.set(ne,O,1)):_e===me&&(o.set(ne,O,0),a.set(ne,O,2));i.set(ne,O,_e)}const u=[];let l=t.length,b=n.length;function c(ne,O){(ne+1!==l||O+1!==b)&&u.push(new Mr(new nr(ne+1,l),new nr(O+1,b))),l=ne,b=O}let T=t.length-1,K=n.length-1;for(;T>=0&&K>=0;)a.get(T,K)===3?(c(T,K),T--,K--):a.get(T,K)===1?T--:K--;return c(-1,-1),u.reverse(),new fi(u,!1)}}class kh{compute(t,n,r=xo.instance){if(t.length===0||n.length===0)return fi.trivial(t,n);const s=t,i=n;function a(O,k){for(;O<s.length&&k<i.length&&s.getElement(O)===i.getElement(k);)O++,k++;return O}let o=0;const u=new wD;u.set(0,a(0,0));const l=new xD;l.set(0,u.get(0)===0?null:new Ph(null,0,0,u.get(0)));let b=0;e:for(;;){if(o++,!r.isValid())return fi.trivialTimedOut(s,i);const O=-Math.min(o,i.length+o%2),k=Math.min(o,s.length+o%2);for(b=O;b<=k;b+=2){const me=b===k?-1:u.get(b+1),Se=b===O?-1:u.get(b-1)+1,_e=Math.min(Math.max(me,Se),s.length),Ye=_e-b;if(_e>s.length||Ye>i.length)continue;const ve=a(_e,Ye);u.set(b,ve);const Pe=_e===me?l.get(b+1):l.get(b-1);if(l.set(b,ve!==_e?new Ph(Pe,_e,Ye,ve-_e):Pe),u.get(b)===s.length&&u.get(b)-b===i.length)break e}}let c=l.get(b);const T=[];let K=s.length,ne=i.length;for(;;){const O=c?c.x+c.length:0,k=c?c.y+c.length:0;if((O!==K||k!==ne)&&T.push(new Mr(new nr(O,K),new nr(k,ne))),!c)break;K=c.x,ne=c.y,c=c.prev}return T.reverse(),new fi(T,!1)}}class Ph{constructor(t,n,r,s){this.prev=t,this.x=n,this.y=r,this.length=s}}class wD{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(t){return t<0?(t=-t-1,this.negativeArr[t]):this.positiveArr[t]}set(t,n){if(t<0){if(t=-t-1,t>=this.negativeArr.length){const r=this.negativeArr;this.negativeArr=new Int32Array(r.length*2),this.negativeArr.set(r)}this.negativeArr[t]=n}else{if(t>=this.positiveArr.length){const r=this.positiveArr;this.positiveArr=new Int32Array(r.length*2),this.positiveArr.set(r)}this.positiveArr[t]=n}}}class xD{constructor(){this.positiveArr=[],this.negativeArr=[]}get(t){return t<0?(t=-t-1,this.negativeArr[t]):this.positiveArr[t]}set(t,n){t<0?(t=-t-1,this.negativeArr[t]=n):this.positiveArr[t]=n}}class bu{constructor(t,n,r){this.lines=t,this.range=n,this.considerWhitespaceChanges=r,this.elements=[],this.firstElementOffsetByLineIdx=[],this.lineStartOffsets=[],this.trimmedWsLengthsByLineIdx=[],this.firstElementOffsetByLineIdx.push(0);for(let s=this.range.startLineNumber;s<=this.range.endLineNumber;s++){let i=t[s-1],a=0;s===this.range.startLineNumber&&this.range.startColumn>1&&(a=this.range.startColumn-1,i=i.substring(a)),this.lineStartOffsets.push(a);let o=0;if(!r){const l=i.trimStart();o=i.length-l.length,i=l.trimEnd()}this.trimmedWsLengthsByLineIdx.push(o);const u=s===this.range.endLineNumber?Math.min(this.range.endColumn-1-a-o,i.length):i.length;for(let l=0;l<u;l++)this.elements.push(i.charCodeAt(l));s<this.range.endLineNumber&&(this.elements.push(10),this.firstElementOffsetByLineIdx.push(this.elements.length))}}toString(){return`Slice: "${this.text}"`}get text(){return this.getText(new nr(0,this.length))}getText(t){return this.elements.slice(t.start,t.endExclusive).map(n=>String.fromCharCode(n)).join("")}getElement(t){return this.elements[t]}get length(){return this.elements.length}getBoundaryScore(t){const n=Ih(t>0?this.elements[t-1]:-1),r=Ih(t<this.elements.length?this.elements[t]:-1);if(n===7&&r===8)return 0;if(n===8)return 150;let s=0;return n!==r&&(s+=10,n===0&&r===1&&(s+=1)),s+=Mh(n),s+=Mh(r),s}translateOffset(t,n="right"){const r=ba(this.firstElementOffsetByLineIdx,i=>i<=t),s=t-this.firstElementOffsetByLineIdx[r];return new Cr(this.range.startLineNumber+r,1+this.lineStartOffsets[r]+s+(s===0&&n==="left"?0:this.trimmedWsLengthsByLineIdx[r]))}translateRange(t){const n=this.translateOffset(t.start,"right"),r=this.translateOffset(t.endExclusive,"left");return r.isBefore(n)?Zn.fromPositions(r,r):Zn.fromPositions(n,r)}findWordContaining(t){if(t<0||t>=this.elements.length||!wa(this.elements[t]))return;let n=t;for(;n>0&&wa(this.elements[n-1]);)n--;let r=t;for(;r<this.elements.length&&wa(this.elements[r]);)r++;return new nr(n,r)}findSubWordContaining(t){if(t<0||t>=this.elements.length||!wa(this.elements[t]))return;let n=t;for(;n>0&&wa(this.elements[n-1])&&!Bh(this.elements[n]);)n--;let r=t;for(;r<this.elements.length&&wa(this.elements[r])&&!Bh(this.elements[r]);)r++;return new nr(n,r)}countLinesIn(t){return this.translateOffset(t.endExclusive).lineNumber-this.translateOffset(t.start).lineNumber}isStronglyEqual(t,n){return this.elements[t]===this.elements[n]}extendToFullLines(t){const n=Da(this.firstElementOffsetByLineIdx,s=>s<=t.start)??0,r=cD(this.firstElementOffsetByLineIdx,s=>t.endExclusive<=s)??this.elements.length;return new nr(n,r)}}function wa(e){return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}function Bh(e){return e>=65&&e<=90}const CD={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function Mh(e){return CD[e]}function Ih(e){return e===10?8:e===13?7:Cc(e)?6:e>=97&&e<=122?0:e>=65&&e<=90?1:e>=48&&e<=57?2:e===-1?3:e===44||e===59?5:4}function SD(e,t,n,r,s,i){let{moves:a,excludedChanges:o}=ND(e,t,n,i);if(!i.isValid())return[];const u=e.filter(b=>!o.has(b)),l=TD(u,r,s,t,n,i);return uD(a,l),a=_D(a),a=a.filter(b=>{const c=b.original.toOffsetRange().slice(t).map(K=>K.trim());return c.join(`
22
+ `).length>=15&&FD(c,K=>K.length>=2)>=2}),a=LD(e,a),a}function FD(e,t){let n=0;for(const r of e)t(r)&&n++;return n}function ND(e,t,n,r){const s=[],i=e.filter(u=>u.modified.isEmpty&&u.original.length>=3).map(u=>new Du(u.original,t,u)),a=new Set(e.filter(u=>u.original.isEmpty&&u.modified.length>=3).map(u=>new Du(u.modified,n,u))),o=new Set;for(const u of i){let l=-1,b;for(const c of a){const T=u.computeSimilarity(c);T>l&&(l=T,b=c)}if(l>.9&&b&&(a.delete(b),s.push(new ks(u.range,b.range)),o.add(u.source),o.add(b.source)),!r.isValid())return{moves:s,excludedChanges:o}}return{moves:s,excludedChanges:o}}function TD(e,t,n,r,s,i){const a=[],o=new Jy;for(const T of e)for(let K=T.original.startLineNumber;K<T.original.endLineNumberExclusive-2;K++){const ne=`${t[K-1]}:${t[K+1-1]}:${t[K+2-1]}`;o.add(ne,{range:new ar(K,K+3)})}const u=[];e.sort(vo(T=>T.modified.startLineNumber,Eo));for(const T of e){let K=[];for(let ne=T.modified.startLineNumber;ne<T.modified.endLineNumberExclusive-2;ne++){const O=`${n[ne-1]}:${n[ne+1-1]}:${n[ne+2-1]}`,k=new ar(ne,ne+3),me=[];o.forEach(O,({range:Se})=>{for(const Ye of K)if(Ye.originalLineRange.endLineNumberExclusive+1===Se.endLineNumberExclusive&&Ye.modifiedLineRange.endLineNumberExclusive+1===k.endLineNumberExclusive){Ye.originalLineRange=new ar(Ye.originalLineRange.startLineNumber,Se.endLineNumberExclusive),Ye.modifiedLineRange=new ar(Ye.modifiedLineRange.startLineNumber,k.endLineNumberExclusive),me.push(Ye);return}const _e={modifiedLineRange:k,originalLineRange:Se};u.push(_e),me.push(_e)}),K=me}if(!i.isValid())return[]}u.sort(lD(vo(T=>T.modifiedLineRange.length,Eo)));const l=new ti,b=new ti;for(const T of u){const K=T.modifiedLineRange.startLineNumber-T.originalLineRange.startLineNumber,ne=l.subtractFrom(T.modifiedLineRange),O=b.subtractFrom(T.originalLineRange).getWithDelta(K),k=ne.getIntersection(O);for(const me of k.ranges){if(me.length<3)continue;const Se=me,_e=me.delta(-K);a.push(new ks(_e,Se)),l.addRange(Se),b.addRange(_e)}}a.sort(vo(T=>T.original.startLineNumber,Eo));const c=new gu(e);for(let T=0;T<a.length;T++){const K=a[T],ne=c.findLastMonotonous(Pe=>Pe.original.startLineNumber<=K.original.startLineNumber),O=Da(e,Pe=>Pe.modified.startLineNumber<=K.modified.startLineNumber),k=Math.max(K.original.startLineNumber-ne.original.startLineNumber,K.modified.startLineNumber-O.modified.startLineNumber),me=c.findLastMonotonous(Pe=>Pe.original.startLineNumber<K.original.endLineNumberExclusive),Se=Da(e,Pe=>Pe.modified.startLineNumber<K.modified.endLineNumberExclusive),_e=Math.max(me.original.endLineNumberExclusive-K.original.endLineNumberExclusive,Se.modified.endLineNumberExclusive-K.modified.endLineNumberExclusive);let Ye;for(Ye=0;Ye<k;Ye++){const Pe=K.original.startLineNumber-Ye-1,Fe=K.modified.startLineNumber-Ye-1;if(Pe>r.length||Fe>s.length||l.contains(Fe)||b.contains(Pe)||!Oh(r[Pe-1],s[Fe-1],i))break}Ye>0&&(b.addRange(new ar(K.original.startLineNumber-Ye,K.original.startLineNumber)),l.addRange(new ar(K.modified.startLineNumber-Ye,K.modified.startLineNumber)));let ve;for(ve=0;ve<_e;ve++){const Pe=K.original.endLineNumberExclusive+ve,Fe=K.modified.endLineNumberExclusive+ve;if(Pe>r.length||Fe>s.length||l.contains(Fe)||b.contains(Pe)||!Oh(r[Pe-1],s[Fe-1],i))break}ve>0&&(b.addRange(new ar(K.original.endLineNumberExclusive,K.original.endLineNumberExclusive+ve)),l.addRange(new ar(K.modified.endLineNumberExclusive,K.modified.endLineNumberExclusive+ve))),(Ye>0||ve>0)&&(a[T]=new ks(new ar(K.original.startLineNumber-Ye,K.original.endLineNumberExclusive+ve),new ar(K.modified.startLineNumber-Ye,K.modified.endLineNumberExclusive+ve)))}return a}function Oh(e,t,n){if(e.trim()===t.trim())return!0;if(e.length>300&&t.length>300)return!1;const s=new kh().compute(new bu([e],new Zn(1,1,1,e.length),!1),new bu([t],new Zn(1,1,1,t.length),!1),n);let i=0;const a=Mr.invert(s.diffs,e.length);for(const b of a)b.seq1Range.forEach(c=>{Cc(e.charCodeAt(c))||i++});function o(b){let c=0;for(let T=0;T<e.length;T++)Cc(b.charCodeAt(T))||c++;return c}const u=o(e.length>t.length?e:t);return i/u>.6&&u>10}function _D(e){if(e.length===0)return e;e.sort(vo(n=>n.original.startLineNumber,Eo));const t=[e[0]];for(let n=1;n<e.length;n++){const r=t[t.length-1],s=e[n],i=s.original.startLineNumber-r.original.endLineNumberExclusive,a=s.modified.startLineNumber-r.modified.endLineNumberExclusive;if(i>=0&&a>=0&&i+a<=2){t[t.length-1]=r.join(s);continue}t.push(s)}return t}function LD(e,t){const n=new gu(e);return t=t.filter(r=>{const s=n.findLastMonotonous(o=>o.original.startLineNumber<r.original.endLineNumberExclusive)||new ks(new ar(1,1),new ar(1,1)),i=Da(e,o=>o.modified.startLineNumber<r.modified.endLineNumberExclusive);return s!==i}),t}function Rh(e,t,n){let r=n;return r=jh(e,t,r),r=jh(e,t,r),r=kD(e,t,r),r}function jh(e,t,n){if(n.length===0)return n;const r=[];r.push(n[0]);for(let i=1;i<n.length;i++){const a=r[r.length-1];let o=n[i];if(o.seq1Range.isEmpty||o.seq2Range.isEmpty){const u=o.seq1Range.start-a.seq1Range.endExclusive;let l;for(l=1;l<=u&&!(e.getElement(o.seq1Range.start-l)!==e.getElement(o.seq1Range.endExclusive-l)||t.getElement(o.seq2Range.start-l)!==t.getElement(o.seq2Range.endExclusive-l));l++);if(l--,l===u){r[r.length-1]=new Mr(new nr(a.seq1Range.start,o.seq1Range.endExclusive-u),new nr(a.seq2Range.start,o.seq2Range.endExclusive-u));continue}o=o.delta(-l)}r.push(o)}const s=[];for(let i=0;i<r.length-1;i++){const a=r[i+1];let o=r[i];if(o.seq1Range.isEmpty||o.seq2Range.isEmpty){const u=a.seq1Range.start-o.seq1Range.endExclusive;let l;for(l=0;l<u&&!(!e.isStronglyEqual(o.seq1Range.start+l,o.seq1Range.endExclusive+l)||!t.isStronglyEqual(o.seq2Range.start+l,o.seq2Range.endExclusive+l));l++);if(l===u){r[i+1]=new Mr(new nr(o.seq1Range.start+u,a.seq1Range.endExclusive),new nr(o.seq2Range.start+u,a.seq2Range.endExclusive));continue}l>0&&(o=o.delta(l))}s.push(o)}return r.length>0&&s.push(r[r.length-1]),s}function kD(e,t,n){if(!e.getBoundaryScore||!t.getBoundaryScore)return n;for(let r=0;r<n.length;r++){const s=r>0?n[r-1]:void 0,i=n[r],a=r+1<n.length?n[r+1]:void 0,o=new nr(s?s.seq1Range.endExclusive+1:0,a?a.seq1Range.start-1:e.length),u=new nr(s?s.seq2Range.endExclusive+1:0,a?a.seq2Range.start-1:t.length);i.seq1Range.isEmpty?n[r]=$h(i,e,t,o,u):i.seq2Range.isEmpty&&(n[r]=$h(i.swap(),t,e,u,o).swap())}return n}function $h(e,t,n,r,s){let a=1;for(;e.seq1Range.start-a>=r.start&&e.seq2Range.start-a>=s.start&&n.isStronglyEqual(e.seq2Range.start-a,e.seq2Range.endExclusive-a)&&a<100;)a++;a--;let o=0;for(;e.seq1Range.start+o<r.endExclusive&&e.seq2Range.endExclusive+o<s.endExclusive&&n.isStronglyEqual(e.seq2Range.start+o,e.seq2Range.endExclusive+o)&&o<100;)o++;if(a===0&&o===0)return e;let u=0,l=-1;for(let b=-a;b<=o;b++){const c=e.seq2Range.start+b,T=e.seq2Range.endExclusive+b,K=e.seq1Range.start+b,ne=t.getBoundaryScore(K)+n.getBoundaryScore(c)+n.getBoundaryScore(T);ne>l&&(l=ne,u=b)}return e.delta(u)}function PD(e,t,n){const r=[];for(const s of n){const i=r[r.length-1];if(!i){r.push(s);continue}s.seq1Range.start-i.seq1Range.endExclusive<=2||s.seq2Range.start-i.seq2Range.endExclusive<=2?r[r.length-1]=new Mr(i.seq1Range.join(s.seq1Range),i.seq2Range.join(s.seq2Range)):r.push(s)}return r}function Vh(e,t,n,r,s=!1){const i=Mr.invert(n,e.length),a=[];let o=new pi(0,0);function u(b,c){if(b.offset1<o.offset1||b.offset2<o.offset2)return;const T=r(e,b.offset1),K=r(t,b.offset2);if(!T||!K)return;let ne=new Mr(T,K);const O=ne.intersect(c);let k=O.seq1Range.length,me=O.seq2Range.length;for(;i.length>0;){const Se=i[0];if(!(Se.seq1Range.intersects(ne.seq1Range)||Se.seq2Range.intersects(ne.seq2Range)))break;const Ye=r(e,Se.seq1Range.start),ve=r(t,Se.seq2Range.start),Pe=new Mr(Ye,ve),Fe=Pe.intersect(Se);if(k+=Fe.seq1Range.length,me+=Fe.seq2Range.length,ne=ne.join(Pe),ne.seq1Range.endExclusive>=Se.seq1Range.endExclusive)i.shift();else break}(s&&k+me<ne.seq1Range.length+ne.seq2Range.length||k+me<(ne.seq1Range.length+ne.seq2Range.length)*2/3)&&a.push(ne),o=ne.getEndExclusives()}for(;i.length>0;){const b=i.shift();b.seq1Range.isEmpty||(u(b.getStarts(),b),u(b.getEndExclusives().delta(-1),b))}return BD(n,a)}function BD(e,t){const n=[];for(;e.length>0||t.length>0;){const r=e[0],s=t[0];let i;r&&(!s||r.seq1Range.start<s.seq1Range.start)?i=e.shift():i=t.shift(),n.length>0&&n[n.length-1].seq1Range.endExclusive>=i.seq1Range.start?n[n.length-1]=n[n.length-1].join(i):n.push(i)}return n}function MD(e,t,n){let r=n;if(r.length===0)return r;let s=0,i;do{i=!1;const a=[r[0]];for(let o=1;o<r.length;o++){let b=function(T,K){const ne=new nr(l.seq1Range.endExclusive,u.seq1Range.start);return e.getText(ne).replace(/\s/g,"").length<=4&&(T.seq1Range.length+T.seq2Range.length>5||K.seq1Range.length+K.seq2Range.length>5)};const u=r[o],l=a[a.length-1];b(l,u)?(i=!0,a[a.length-1]=a[a.length-1].join(u)):a.push(u)}r=a}while(s++<10&&i);return r}function ID(e,t,n){let r=n;if(r.length===0)return r;let s=0,i;do{i=!1;const o=[r[0]];for(let u=1;u<r.length;u++){let c=function(K,ne){const O=new nr(b.seq1Range.endExclusive,l.seq1Range.start);if(e.countLinesIn(O)>5||O.length>500)return!1;const me=e.getText(O).trim();if(me.length>20||me.split(/\r\n|\r|\n/).length>1)return!1;const Se=e.countLinesIn(K.seq1Range),_e=K.seq1Range.length,Ye=t.countLinesIn(K.seq2Range),ve=K.seq2Range.length,Pe=e.countLinesIn(ne.seq1Range),Fe=ne.seq1Range.length,Be=t.countLinesIn(ne.seq2Range),xe=ne.seq2Range.length,Je=130;function ze(de){return Math.min(de,Je)}return Math.pow(Math.pow(ze(Se*40+_e),1.5)+Math.pow(ze(Ye*40+ve),1.5),1.5)+Math.pow(Math.pow(ze(Pe*40+Fe),1.5)+Math.pow(ze(Be*40+xe),1.5),1.5)>(Je**1.5)**1.5*1.3};const l=r[u],b=o[o.length-1];c(b,l)?(i=!0,o[o.length-1]=o[o.length-1].join(l)):o.push(l)}r=o}while(s++<10&&i);const a=[];return oD(r,(o,u,l)=>{let b=u;function c(me){return me.length>0&&me.trim().length<=3&&u.seq1Range.length+u.seq2Range.length>100}const T=e.extendToFullLines(u.seq1Range),K=e.getText(new nr(T.start,u.seq1Range.start));c(K)&&(b=b.deltaStart(-K.length));const ne=e.getText(new nr(u.seq1Range.endExclusive,T.endExclusive));c(ne)&&(b=b.deltaEnd(ne.length));const O=Mr.fromOffsetPairs(o?o.getEndExclusives():pi.zero,l?l.getStarts():pi.max),k=b.intersect(O);a.length>0&&k.getStarts().equals(a[a.length-1].getEndExclusives())?a[a.length-1]=a[a.length-1].join(k):a.push(k)}),a}class qh{constructor(t,n){this.trimmedHash=t,this.lines=n}getElement(t){return this.trimmedHash[t]}get length(){return this.trimmedHash.length}getBoundaryScore(t){const n=t===0?0:Uh(this.lines[t-1]),r=t===this.lines.length?0:Uh(this.lines[t]);return 1e3-(n+r)}getText(t){return this.lines.slice(t.start,t.endExclusive).join(`
23
+ `)}isStronglyEqual(t,n){return this.lines[t]===this.lines[n]}}function Uh(e){let t=0;for(;t<e.length&&(e.charCodeAt(t)===32||e.charCodeAt(t)===9);)t++;return t}class OD{constructor(){this.dynamicProgrammingDiffing=new AD,this.myersDiffingAlgorithm=new kh}computeDiff(t,n,r){if(t.length<=1&&sD(t,n,(Fe,Be)=>Fe===Be))return new mu([],[],!1);if(t.length===1&&t[0].length===0||n.length===1&&n[0].length===0)return new mu([new ci(new ar(1,t.length+1),new ar(1,n.length+1),[new Ps(new Zn(1,1,t.length,t[t.length-1].length+1),new Zn(1,1,n.length,n[n.length-1].length+1))])],[],!1);const s=r.maxComputationTimeMs===0?xo.instance:new ED(r.maxComputationTimeMs),i=!r.ignoreTrimWhitespace,a=new Map;function o(Fe){let Be=a.get(Fe);return Be===void 0&&(Be=a.size,a.set(Fe,Be)),Be}const u=t.map(Fe=>o(Fe.trim())),l=n.map(Fe=>o(Fe.trim())),b=new qh(u,t),c=new qh(l,n),T=b.length+c.length<1700?this.dynamicProgrammingDiffing.compute(b,c,s,(Fe,Be)=>t[Fe]===n[Be]?n[Be].length===0?.1:1+Math.log(1+n[Be].length):.99):this.myersDiffingAlgorithm.compute(b,c,s);let K=T.diffs,ne=T.hitTimeout;K=Rh(b,c,K),K=MD(b,c,K);const O=[],k=Fe=>{if(i)for(let Be=0;Be<Fe;Be++){const xe=me+Be,Je=Se+Be;if(t[xe]!==n[Je]){const ze=this.refineDiff(t,n,new Mr(new nr(xe,xe+1),new nr(Je,Je+1)),s,i,r);for(const de of ze.mappings)O.push(de);ze.hitTimeout&&(ne=!0)}}};let me=0,Se=0;for(const Fe of K){ru(()=>Fe.seq1Range.start-me===Fe.seq2Range.start-Se);const Be=Fe.seq1Range.start-me;k(Be),me=Fe.seq1Range.endExclusive,Se=Fe.seq2Range.endExclusive;const xe=this.refineDiff(t,n,Fe,s,i,r);xe.hitTimeout&&(ne=!0);for(const Je of xe.mappings)O.push(Je)}k(t.length-me);const _e=new yu(t),Ye=new yu(n),ve=Nh(O,_e,Ye);let Pe=[];return r.computeMoves&&(Pe=this.computeMoves(ve,t,n,u,l,s,i,r)),ru(()=>{function Fe(xe,Je){if(xe.lineNumber<1||xe.lineNumber>Je.length)return!1;const ze=Je[xe.lineNumber-1];return!(xe.column<1||xe.column>ze.length+1)}function Be(xe,Je){return!(xe.startLineNumber<1||xe.startLineNumber>Je.length+1||xe.endLineNumberExclusive<1||xe.endLineNumberExclusive>Je.length+1)}for(const xe of ve){if(!xe.innerChanges)return!1;for(const Je of xe.innerChanges)if(!(Fe(Je.modifiedRange.getStartPosition(),n)&&Fe(Je.modifiedRange.getEndPosition(),n)&&Fe(Je.originalRange.getStartPosition(),t)&&Fe(Je.originalRange.getEndPosition(),t)))return!1;if(!Be(xe.modified,n)||!Be(xe.original,t))return!1}return!0}),new mu(ve,Pe,ne)}computeMoves(t,n,r,s,i,a,o,u){return SD(t,n,r,s,i,a).map(c=>{const T=this.refineDiff(n,r,new Mr(c.original.toOffsetRange(),c.modified.toOffsetRange()),a,o,u),K=Nh(T.mappings,new yu(n),new yu(r),!0);return new rD(c,K)})}refineDiff(t,n,r,s,i,a){const u=RD(r).toRangeMapping2(t,n),l=new bu(t,u.originalRange,i),b=new bu(n,u.modifiedRange,i),c=l.length+b.length<500?this.dynamicProgrammingDiffing.compute(l,b,s):this.myersDiffingAlgorithm.compute(l,b,s);let T=c.diffs;return T=Rh(l,b,T),T=Vh(l,b,T,(ne,O)=>ne.findWordContaining(O)),a.extendToSubwords&&(T=Vh(l,b,T,(ne,O)=>ne.findSubWordContaining(O),!0)),T=PD(l,b,T),T=ID(l,b,T),{mappings:T.map(ne=>new Ps(l.translateRange(ne.seq1Range),b.translateRange(ne.seq2Range))),hitTimeout:c.hitTimeout}}}function RD(e){return new ks(new ar(e.seq1Range.start+1,e.seq1Range.endExclusive+1),new ar(e.seq2Range.start+1,e.seq2Range.endExclusive+1))}const Wh={getLegacy:()=>new yD,getDefault:()=>new OD};function Ni(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}class xt{constructor(t,n,r,s=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,t))|0,this.g=Math.min(255,Math.max(0,n))|0,this.b=Math.min(255,Math.max(0,r))|0,this.a=Ni(Math.max(Math.min(1,s),0),3)}static equals(t,n){return t.r===n.r&&t.g===n.g&&t.b===n.b&&t.a===n.a}}class Bs{constructor(t,n,r,s){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,t),0)|0,this.s=Ni(Math.max(Math.min(1,n),0),3),this.l=Ni(Math.max(Math.min(1,r),0),3),this.a=Ni(Math.max(Math.min(1,s),0),3)}static equals(t,n){return t.h===n.h&&t.s===n.s&&t.l===n.l&&t.a===n.a}static fromRGBA(t){const n=t.r/255,r=t.g/255,s=t.b/255,i=t.a,a=Math.max(n,r,s),o=Math.min(n,r,s);let u=0,l=0;const b=(o+a)/2,c=a-o;if(c>0){switch(l=Math.min(b<=.5?c/(2*b):c/(2-2*b),1),a){case n:u=(r-s)/c+(r<s?6:0);break;case r:u=(s-n)/c+2;break;case s:u=(n-r)/c+4;break}u*=60,u=Math.round(u)}return new Bs(u,l,b,i)}static _hue2rgb(t,n,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(n-t)*6*r:r<1/2?n:r<2/3?t+(n-t)*(2/3-r)*6:t}static toRGBA(t){const n=t.h/360,{s:r,l:s,a:i}=t;let a,o,u;if(r===0)a=o=u=s;else{const l=s<.5?s*(1+r):s+r-s*r,b=2*s-l;a=Bs._hue2rgb(b,l,n+1/3),o=Bs._hue2rgb(b,l,n),u=Bs._hue2rgb(b,l,n-1/3)}return new xt(Math.round(a*255),Math.round(o*255),Math.round(u*255),i)}}class xa{constructor(t,n,r,s){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,t),0)|0,this.s=Ni(Math.max(Math.min(1,n),0),3),this.v=Ni(Math.max(Math.min(1,r),0),3),this.a=Ni(Math.max(Math.min(1,s),0),3)}static equals(t,n){return t.h===n.h&&t.s===n.s&&t.v===n.v&&t.a===n.a}static fromRGBA(t){const n=t.r/255,r=t.g/255,s=t.b/255,i=Math.max(n,r,s),a=Math.min(n,r,s),o=i-a,u=i===0?0:o/i;let l;return o===0?l=0:i===n?l=((r-s)/o%6+6)%6:i===r?l=(s-n)/o+2:l=(n-r)/o+4,new xa(Math.round(l*60),u,i,t.a)}static toRGBA(t){const{h:n,s:r,v:s,a:i}=t,a=s*r,o=a*(1-Math.abs(n/60%2-1)),u=s-a;let[l,b,c]=[0,0,0];return n<60?(l=a,b=o):n<120?(l=o,b=a):n<180?(b=a,c=o):n<240?(b=o,c=a):n<300?(l=o,c=a):n<=360&&(l=a,c=o),l=Math.round((l+u)*255),b=Math.round((b+u)*255),c=Math.round((c+u)*255),new xt(l,b,c,i)}}let vu=(fr=class{static fromHex(t){return fr.Format.CSS.parseHex(t)||fr.red}static equals(t,n){return!t&&!n?!0:!t||!n?!1:t.equals(n)}get hsla(){return this._hsla?this._hsla:Bs.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:xa.fromRGBA(this.rgba)}constructor(t){if(t)if(t instanceof xt)this.rgba=t;else if(t instanceof Bs)this._hsla=t,this.rgba=Bs.toRGBA(t);else if(t instanceof xa)this._hsva=t,this.rgba=xa.toRGBA(t);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}equals(t){return!!t&&xt.equals(this.rgba,t.rgba)&&Bs.equals(this.hsla,t.hsla)&&xa.equals(this.hsva,t.hsva)}getRelativeLuminance(){const t=fr._relativeLuminanceForComponent(this.rgba.r),n=fr._relativeLuminanceForComponent(this.rgba.g),r=fr._relativeLuminanceForComponent(this.rgba.b),s=.2126*t+.7152*n+.0722*r;return Ni(s,4)}static _relativeLuminanceForComponent(t){const n=t/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(t){const n=this.getRelativeLuminance(),r=t.getRelativeLuminance();return n>r}isDarkerThan(t){const n=this.getRelativeLuminance(),r=t.getRelativeLuminance();return n<r}lighten(t){return new fr(new Bs(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*t,this.hsla.a))}darken(t){return new fr(new Bs(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*t,this.hsla.a))}transparent(t){const{r:n,g:r,b:s,a:i}=this.rgba;return new fr(new xt(n,r,s,i*t))}isTransparent(){return this.rgba.a===0}isOpaque(){return this.rgba.a===1}opposite(){return new fr(new xt(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}mix(t,n=.5){const r=Math.min(Math.max(n,0),1),s=this.rgba,i=t.rgba,a=s.r+(i.r-s.r)*r,o=s.g+(i.g-s.g)*r,u=s.b+(i.b-s.b)*r,l=s.a+(i.a-s.a)*r;return new fr(new xt(a,o,u,l))}makeOpaque(t){if(this.isOpaque()||t.rgba.a!==1)return this;const{r:n,g:r,b:s,a:i}=this.rgba;return new fr(new xt(t.rgba.r-i*(t.rgba.r-n),t.rgba.g-i*(t.rgba.g-r),t.rgba.b-i*(t.rgba.b-s),1))}toString(){return this._toString||(this._toString=fr.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(t,n,r){if(t.isLighterThan(n))return t;r=r||.5;const s=t.getRelativeLuminance(),i=n.getRelativeLuminance();return r=r*(i-s)/i,t.lighten(r)}static getDarkerColor(t,n,r){if(t.isDarkerThan(n))return t;r=r||.5;const s=t.getRelativeLuminance(),i=n.getRelativeLuminance();return r=r*(s-i)/s,t.darken(r)}},fr.white=new fr(new xt(255,255,255,1)),fr.black=new fr(new xt(0,0,0,1)),fr.red=new fr(new xt(255,0,0,1)),fr.blue=new fr(new xt(0,0,255,1)),fr.green=new fr(new xt(0,255,0,1)),fr.cyan=new fr(new xt(0,255,255,1)),fr.lightgrey=new fr(new xt(211,211,211,1)),fr.transparent=new fr(new xt(0,0,0,0)),fr);(function(e){(function(t){(function(n){function r(O){return O.rgba.a===1?`rgb(${O.rgba.r}, ${O.rgba.g}, ${O.rgba.b})`:e.Format.CSS.formatRGBA(O)}n.formatRGB=r;function s(O){return`rgba(${O.rgba.r}, ${O.rgba.g}, ${O.rgba.b}, ${+O.rgba.a.toFixed(2)})`}n.formatRGBA=s;function i(O){return O.hsla.a===1?`hsl(${O.hsla.h}, ${Math.round(O.hsla.s*100)}%, ${Math.round(O.hsla.l*100)}%)`:e.Format.CSS.formatHSLA(O)}n.formatHSL=i;function a(O){return`hsla(${O.hsla.h}, ${Math.round(O.hsla.s*100)}%, ${Math.round(O.hsla.l*100)}%, ${O.hsla.a.toFixed(2)})`}n.formatHSLA=a;function o(O){const k=O.toString(16);return k.length!==2?"0"+k:k}function u(O){return`#${o(O.rgba.r)}${o(O.rgba.g)}${o(O.rgba.b)}`}n.formatHex=u;function l(O,k=!1){return k&&O.rgba.a===1?e.Format.CSS.formatHex(O):`#${o(O.rgba.r)}${o(O.rgba.g)}${o(O.rgba.b)}${o(Math.round(O.rgba.a*255))}`}n.formatHexA=l;function b(O){return O.isOpaque()?e.Format.CSS.formatHex(O):e.Format.CSS.formatRGBA(O)}n.format=b;function c(O){if(O==="transparent")return e.transparent;if(O.startsWith("#"))return K(O);if(O.startsWith("rgba(")){const k=O.match(/rgba\((?<r>(?:\+|-)?\d+), *(?<g>(?:\+|-)?\d+), *(?<b>(?:\+|-)?\d+), *(?<a>(?:\+|-)?\d+(\.\d+)?)\)/);if(!k)throw new Error("Invalid color format "+O);const me=parseInt(k.groups?.r??"0"),Se=parseInt(k.groups?.g??"0"),_e=parseInt(k.groups?.b??"0"),Ye=parseFloat(k.groups?.a??"0");return new e(new xt(me,Se,_e,Ye))}if(O.startsWith("rgb(")){const k=O.match(/rgb\((?<r>(?:\+|-)?\d+), *(?<g>(?:\+|-)?\d+), *(?<b>(?:\+|-)?\d+)\)/);if(!k)throw new Error("Invalid color format "+O);const me=parseInt(k.groups?.r??"0"),Se=parseInt(k.groups?.g??"0"),_e=parseInt(k.groups?.b??"0");return new e(new xt(me,Se,_e))}return T(O)}n.parse=c;function T(O){switch(O){case"aliceblue":return new e(new xt(240,248,255,1));case"antiquewhite":return new e(new xt(250,235,215,1));case"aqua":return new e(new xt(0,255,255,1));case"aquamarine":return new e(new xt(127,255,212,1));case"azure":return new e(new xt(240,255,255,1));case"beige":return new e(new xt(245,245,220,1));case"bisque":return new e(new xt(255,228,196,1));case"black":return new e(new xt(0,0,0,1));case"blanchedalmond":return new e(new xt(255,235,205,1));case"blue":return new e(new xt(0,0,255,1));case"blueviolet":return new e(new xt(138,43,226,1));case"brown":return new e(new xt(165,42,42,1));case"burlywood":return new e(new xt(222,184,135,1));case"cadetblue":return new e(new xt(95,158,160,1));case"chartreuse":return new e(new xt(127,255,0,1));case"chocolate":return new e(new xt(210,105,30,1));case"coral":return new e(new xt(255,127,80,1));case"cornflowerblue":return new e(new xt(100,149,237,1));case"cornsilk":return new e(new xt(255,248,220,1));case"crimson":return new e(new xt(220,20,60,1));case"cyan":return new e(new xt(0,255,255,1));case"darkblue":return new e(new xt(0,0,139,1));case"darkcyan":return new e(new xt(0,139,139,1));case"darkgoldenrod":return new e(new xt(184,134,11,1));case"darkgray":return new e(new xt(169,169,169,1));case"darkgreen":return new e(new xt(0,100,0,1));case"darkgrey":return new e(new xt(169,169,169,1));case"darkkhaki":return new e(new xt(189,183,107,1));case"darkmagenta":return new e(new xt(139,0,139,1));case"darkolivegreen":return new e(new xt(85,107,47,1));case"darkorange":return new e(new xt(255,140,0,1));case"darkorchid":return new e(new xt(153,50,204,1));case"darkred":return new e(new xt(139,0,0,1));case"darksalmon":return new e(new xt(233,150,122,1));case"darkseagreen":return new e(new xt(143,188,143,1));case"darkslateblue":return new e(new xt(72,61,139,1));case"darkslategray":return new e(new xt(47,79,79,1));case"darkslategrey":return new e(new xt(47,79,79,1));case"darkturquoise":return new e(new xt(0,206,209,1));case"darkviolet":return new e(new xt(148,0,211,1));case"deeppink":return new e(new xt(255,20,147,1));case"deepskyblue":return new e(new xt(0,191,255,1));case"dimgray":return new e(new xt(105,105,105,1));case"dimgrey":return new e(new xt(105,105,105,1));case"dodgerblue":return new e(new xt(30,144,255,1));case"firebrick":return new e(new xt(178,34,34,1));case"floralwhite":return new e(new xt(255,250,240,1));case"forestgreen":return new e(new xt(34,139,34,1));case"fuchsia":return new e(new xt(255,0,255,1));case"gainsboro":return new e(new xt(220,220,220,1));case"ghostwhite":return new e(new xt(248,248,255,1));case"gold":return new e(new xt(255,215,0,1));case"goldenrod":return new e(new xt(218,165,32,1));case"gray":return new e(new xt(128,128,128,1));case"green":return new e(new xt(0,128,0,1));case"greenyellow":return new e(new xt(173,255,47,1));case"grey":return new e(new xt(128,128,128,1));case"honeydew":return new e(new xt(240,255,240,1));case"hotpink":return new e(new xt(255,105,180,1));case"indianred":return new e(new xt(205,92,92,1));case"indigo":return new e(new xt(75,0,130,1));case"ivory":return new e(new xt(255,255,240,1));case"khaki":return new e(new xt(240,230,140,1));case"lavender":return new e(new xt(230,230,250,1));case"lavenderblush":return new e(new xt(255,240,245,1));case"lawngreen":return new e(new xt(124,252,0,1));case"lemonchiffon":return new e(new xt(255,250,205,1));case"lightblue":return new e(new xt(173,216,230,1));case"lightcoral":return new e(new xt(240,128,128,1));case"lightcyan":return new e(new xt(224,255,255,1));case"lightgoldenrodyellow":return new e(new xt(250,250,210,1));case"lightgray":return new e(new xt(211,211,211,1));case"lightgreen":return new e(new xt(144,238,144,1));case"lightgrey":return new e(new xt(211,211,211,1));case"lightpink":return new e(new xt(255,182,193,1));case"lightsalmon":return new e(new xt(255,160,122,1));case"lightseagreen":return new e(new xt(32,178,170,1));case"lightskyblue":return new e(new xt(135,206,250,1));case"lightslategray":return new e(new xt(119,136,153,1));case"lightslategrey":return new e(new xt(119,136,153,1));case"lightsteelblue":return new e(new xt(176,196,222,1));case"lightyellow":return new e(new xt(255,255,224,1));case"lime":return new e(new xt(0,255,0,1));case"limegreen":return new e(new xt(50,205,50,1));case"linen":return new e(new xt(250,240,230,1));case"magenta":return new e(new xt(255,0,255,1));case"maroon":return new e(new xt(128,0,0,1));case"mediumaquamarine":return new e(new xt(102,205,170,1));case"mediumblue":return new e(new xt(0,0,205,1));case"mediumorchid":return new e(new xt(186,85,211,1));case"mediumpurple":return new e(new xt(147,112,219,1));case"mediumseagreen":return new e(new xt(60,179,113,1));case"mediumslateblue":return new e(new xt(123,104,238,1));case"mediumspringgreen":return new e(new xt(0,250,154,1));case"mediumturquoise":return new e(new xt(72,209,204,1));case"mediumvioletred":return new e(new xt(199,21,133,1));case"midnightblue":return new e(new xt(25,25,112,1));case"mintcream":return new e(new xt(245,255,250,1));case"mistyrose":return new e(new xt(255,228,225,1));case"moccasin":return new e(new xt(255,228,181,1));case"navajowhite":return new e(new xt(255,222,173,1));case"navy":return new e(new xt(0,0,128,1));case"oldlace":return new e(new xt(253,245,230,1));case"olive":return new e(new xt(128,128,0,1));case"olivedrab":return new e(new xt(107,142,35,1));case"orange":return new e(new xt(255,165,0,1));case"orangered":return new e(new xt(255,69,0,1));case"orchid":return new e(new xt(218,112,214,1));case"palegoldenrod":return new e(new xt(238,232,170,1));case"palegreen":return new e(new xt(152,251,152,1));case"paleturquoise":return new e(new xt(175,238,238,1));case"palevioletred":return new e(new xt(219,112,147,1));case"papayawhip":return new e(new xt(255,239,213,1));case"peachpuff":return new e(new xt(255,218,185,1));case"peru":return new e(new xt(205,133,63,1));case"pink":return new e(new xt(255,192,203,1));case"plum":return new e(new xt(221,160,221,1));case"powderblue":return new e(new xt(176,224,230,1));case"purple":return new e(new xt(128,0,128,1));case"rebeccapurple":return new e(new xt(102,51,153,1));case"red":return new e(new xt(255,0,0,1));case"rosybrown":return new e(new xt(188,143,143,1));case"royalblue":return new e(new xt(65,105,225,1));case"saddlebrown":return new e(new xt(139,69,19,1));case"salmon":return new e(new xt(250,128,114,1));case"sandybrown":return new e(new xt(244,164,96,1));case"seagreen":return new e(new xt(46,139,87,1));case"seashell":return new e(new xt(255,245,238,1));case"sienna":return new e(new xt(160,82,45,1));case"silver":return new e(new xt(192,192,192,1));case"skyblue":return new e(new xt(135,206,235,1));case"slateblue":return new e(new xt(106,90,205,1));case"slategray":return new e(new xt(112,128,144,1));case"slategrey":return new e(new xt(112,128,144,1));case"snow":return new e(new xt(255,250,250,1));case"springgreen":return new e(new xt(0,255,127,1));case"steelblue":return new e(new xt(70,130,180,1));case"tan":return new e(new xt(210,180,140,1));case"teal":return new e(new xt(0,128,128,1));case"thistle":return new e(new xt(216,191,216,1));case"tomato":return new e(new xt(255,99,71,1));case"turquoise":return new e(new xt(64,224,208,1));case"violet":return new e(new xt(238,130,238,1));case"wheat":return new e(new xt(245,222,179,1));case"white":return new e(new xt(255,255,255,1));case"whitesmoke":return new e(new xt(245,245,245,1));case"yellow":return new e(new xt(255,255,0,1));case"yellowgreen":return new e(new xt(154,205,50,1));default:return null}}function K(O){const k=O.length;if(k===0||O.charCodeAt(0)!==35)return null;if(k===7){const me=16*ne(O.charCodeAt(1))+ne(O.charCodeAt(2)),Se=16*ne(O.charCodeAt(3))+ne(O.charCodeAt(4)),_e=16*ne(O.charCodeAt(5))+ne(O.charCodeAt(6));return new e(new xt(me,Se,_e,1))}if(k===9){const me=16*ne(O.charCodeAt(1))+ne(O.charCodeAt(2)),Se=16*ne(O.charCodeAt(3))+ne(O.charCodeAt(4)),_e=16*ne(O.charCodeAt(5))+ne(O.charCodeAt(6)),Ye=16*ne(O.charCodeAt(7))+ne(O.charCodeAt(8));return new e(new xt(me,Se,_e,Ye/255))}if(k===4){const me=ne(O.charCodeAt(1)),Se=ne(O.charCodeAt(2)),_e=ne(O.charCodeAt(3));return new e(new xt(16*me+me,16*Se+Se,16*_e+_e))}if(k===5){const me=ne(O.charCodeAt(1)),Se=ne(O.charCodeAt(2)),_e=ne(O.charCodeAt(3)),Ye=ne(O.charCodeAt(4));return new e(new xt(16*me+me,16*Se+Se,16*_e+_e,(16*Ye+Ye)/255))}return null}n.parseHex=K;function ne(O){switch(O){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}})(t.CSS||(t.CSS={}))})(e.Format||(e.Format={}))})(vu||(vu={}));function Gh(e){const t=[];for(const n of e){const r=Number(n);(r||r===0&&n.replace(/\s/g,"")!=="")&&t.push(r)}return t}function Sc(e,t,n,r){return{red:e/255,blue:n/255,green:t/255,alpha:r}}function Co(e,t){const n=t.index,r=t[0].length;if(n===void 0)return;const s=e.positionAt(n);return{startLineNumber:s.lineNumber,startColumn:s.column,endLineNumber:s.lineNumber,endColumn:s.column+r}}function jD(e,t){if(!e)return;const n=vu.Format.CSS.parseHex(t);if(n)return{range:e,color:Sc(n.rgba.r,n.rgba.g,n.rgba.b,n.rgba.a)}}function Jh(e,t,n){if(!e||t.length!==1)return;const s=t[0].values(),i=Gh(s);return{range:e,color:Sc(i[0],i[1],i[2],n?i[3]:1)}}function Yh(e,t,n){if(!e||t.length!==1)return;const s=t[0].values(),i=Gh(s),a=new vu(new Bs(i[0],i[1]/100,i[2]/100,n?i[3]:1));return{range:e,color:Sc(a.rgba.r,a.rgba.g,a.rgba.b,a.rgba.a)}}function So(e,t){return typeof e=="string"?[...e.matchAll(t)]:e.findMatches(t)}function $D(e){const t=[],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"),r=So(e,n);if(r.length>0)for(const s of r){const i=s.filter(l=>l!==void 0),a=i[1],o=i[2];if(!o)continue;let u;if(a==="rgb"){const l=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;u=Jh(Co(e,s),So(o,l),!1)}else if(a==="rgba"){const l=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;u=Jh(Co(e,s),So(o,l),!0)}else if(a==="hsl"){const l=/^\(\s*((?:360(?:\.0+)?|(?:36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])(?:\.\d+)?))\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;u=Yh(Co(e,s),So(o,l),!1)}else if(a==="hsla"){const l=/^\(\s*((?:360(?:\.0+)?|(?:36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])(?:\.\d+)?))\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*[\s,]\s*(0[.][0-9]+|[.][0-9]+|[01][.]0*|[01])\s*\)$/gm;u=Yh(Co(e,s),So(o,l),!0)}else a==="#"&&(u=jD(Co(e,s),a+o));u&&t.push(u)}return t}function VD(e){return!e||typeof e.getValue!="function"||typeof e.positionAt!="function"?[]:$D(e)}const qD=/^-+|-+$/g,Hh=100,UD=5;function WD(e,t){let n=[];if(t.findRegionSectionHeaders&&t.foldingRules?.markers){const r=GD(e,t);n=n.concat(r)}if(t.findMarkSectionHeaders){const r=JD(e,t);n=n.concat(r)}return n}function GD(e,t){const n=[],r=e.getLineCount();for(let s=1;s<=r;s++){const i=e.getLineContent(s),a=i.match(t.foldingRules.markers.start);if(a){const o={startLineNumber:s,startColumn:a[0].length+1,endLineNumber:s,endColumn:i.length+1};if(o.endColumn>o.startColumn){const u={range:o,...YD(i.substring(a[0].length)),shouldBeInComments:!1};(u.text||u.hasSeparatorLine)&&n.push(u)}}}return n}function JD(e,t){const n=[],r=e.getLineCount();if(!t.markSectionHeaderRegex||t.markSectionHeaderRegex.trim()==="")return n;const s=Yy(t.markSectionHeaderRegex),i=new RegExp(t.markSectionHeaderRegex,`gdm${s?"s":""}`);if(q1(i))return n;for(let a=1;a<=r;a+=Hh-UD){const o=Math.min(a+Hh-1,r),u=[];for(let c=a;c<=o;c++)u.push(e.getLineContent(c));const l=u.join(`
24
+ `);i.lastIndex=0;let b;for(;(b=i.exec(l))!==null;){const c=l.substring(0,b.index),T=(c.match(/\n/g)||[]).length,K=a+T,ne=b[0].split(`
25
+ `),O=ne.length,k=K+O-1,me=c.lastIndexOf(`
26
+ `)+1,Se=b.index-me+1,_e=ne[ne.length-1],Ye=O===1?Se+b[0].length:_e.length+1,ve={startLineNumber:K,startColumn:Se,endLineNumber:k,endColumn:Ye},Pe=(b.groups??{}).label??"",Fe=((b.groups??{}).separator??"")!=="",Be={range:ve,text:Pe,hasSeparatorLine:Fe,shouldBeInComments:!0};(Be.text||Be.hasSeparatorLine)&&(n.length===0||n[n.length-1].range.endLineNumber<Be.range.startLineNumber)&&n.push(Be),i.lastIndex=b.index+b[0].length}}return n}function YD(e){e=e.trim();const t=e.startsWith("-");return e=e.replace(qD,""),{text:e,hasSeparatorLine:t}}class HD{get isRejected(){return this.outcome?.outcome===1}get isSettled(){return!!this.outcome}constructor(){this.p=new Promise((t,n)=>{this.completeCallback=t,this.errorCallback=n})}complete(t){return this.isSettled?Promise.resolve():new Promise(n=>{this.completeCallback(t),this.outcome={outcome:0,value:t},n()})}error(t){return this.isSettled?Promise.resolve():new Promise(n=>{this.errorCallback(t),this.outcome={outcome:1,value:t},n()})}cancel(){return this.error(new qp)}}var zh;(function(e){async function t(r){let s;const i=await Promise.all(r.map(a=>a.then(o=>o,o=>{s||(s=o)})));if(typeof s<"u")throw s;return i}e.settled=t;function n(r){return new Promise(async(s,i)=>{try{await r(s,i)}catch(a){i(a)}})}e.withAsyncBody=n})(zh||(zh={}));class zD{constructor(){this._unsatisfiedConsumers=[],this._unconsumedValues=[]}get hasFinalValue(){return!!this._finalValue}produce(t){if(this._ensureNoFinalValue(),this._unsatisfiedConsumers.length>0){const n=this._unsatisfiedConsumers.shift();this._resolveOrRejectDeferred(n,t)}else this._unconsumedValues.push(t)}produceFinal(t){this._ensureNoFinalValue(),this._finalValue=t;for(const n of this._unsatisfiedConsumers)this._resolveOrRejectDeferred(n,t);this._unsatisfiedConsumers.length=0}_ensureNoFinalValue(){if(this._finalValue)throw new ts("ProducerConsumer: cannot produce after final value has been set")}_resolveOrRejectDeferred(t,n){n.ok?t.complete(n.value):t.error(n.error)}consume(){if(this._unconsumedValues.length>0||this._finalValue){const t=this._unconsumedValues.length>0?this._unconsumedValues.shift():this._finalValue;return t.ok?Promise.resolve(t.value):Promise.reject(t.error)}else{const t=new HD;return this._unsatisfiedConsumers.push(t),t.p}}}const Ds=class Ds{constructor(t,n){this._onReturn=n,this._producerConsumer=new zD,this._iterator={next:()=>this._producerConsumer.consume(),return:()=>(this._onReturn?.(),Promise.resolve({done:!0,value:void 0})),throw:async r=>(this._finishError(r),{done:!0,value:void 0})},queueMicrotask(async()=>{const r=t({emitOne:s=>this._producerConsumer.produce({ok:!0,value:{done:!1,value:s}}),emitMany:s=>{for(const i of s)this._producerConsumer.produce({ok:!0,value:{done:!1,value:i}})},reject:s=>this._finishError(s)});if(!this._producerConsumer.hasFinalValue)try{await r,this._finishOk()}catch(s){this._finishError(s)}})}static fromArray(t){return new Ds(n=>{n.emitMany(t)})}static fromPromise(t){return new Ds(async n=>{n.emitMany(await t)})}static fromPromisesResolveOrder(t){return new Ds(async n=>{await Promise.all(t.map(async r=>n.emitOne(await r)))})}static merge(t){return new Ds(async n=>{await Promise.all(t.map(async r=>{for await(const s of r)n.emitOne(s)}))})}static map(t,n){return new Ds(async r=>{for await(const s of t)r.emitOne(n(s))})}map(t){return Ds.map(this,t)}static coalesce(t){return Ds.filter(t,n=>!!n)}coalesce(){return Ds.coalesce(this)}static filter(t,n){return new Ds(async r=>{for await(const s of t)n(s)&&r.emitOne(s)})}filter(t){return Ds.filter(this,t)}_finishOk(){this._producerConsumer.hasFinalValue||this._producerConsumer.produceFinal({ok:!0,value:{done:!0,value:void 0}})}_finishError(t){this._producerConsumer.hasFinalValue||this._producerConsumer.produceFinal({ok:!1,error:t})}[Symbol.asyncIterator](){return this._iterator}};Ds.EMPTY=Ds.fromArray([]);let Xh=Ds;class XD{constructor(t){this.values=t,this.prefixSum=new Uint32Array(t.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(t,n){t=ma(t);const r=this.values,s=this.prefixSum,i=n.length;return i===0?!1:(this.values=new Uint32Array(r.length+i),this.values.set(r.subarray(0,t),0),this.values.set(r.subarray(t),t+i),this.values.set(n,t),t-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=t-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(s.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(t,n){return t=ma(t),n=ma(n),this.values[t]===n?!1:(this.values[t]=n,t-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=t-1),!0)}removeValues(t,n){t=ma(t),n=ma(n);const r=this.values,s=this.prefixSum;if(t>=r.length)return!1;const i=r.length-t;return n>=i&&(n=i),n===0?!1:(this.values=new Uint32Array(r.length-n),this.values.set(r.subarray(0,t),0),this.values.set(r.subarray(t+n),t),this.prefixSum=new Uint32Array(this.values.length),t-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=t-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(s.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(t){return t<0?0:(t=ma(t),this._getPrefixSum(t))}_getPrefixSum(t){if(t<=this.prefixSumValidIndex[0])return this.prefixSum[t];let n=this.prefixSumValidIndex[0]+1;n===0&&(this.prefixSum[0]=this.values[0],n++),t>=this.values.length&&(t=this.values.length-1);for(let r=n;r<=t;r++)this.prefixSum[r]=this.prefixSum[r-1]+this.values[r];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],t),this.prefixSum[t]}getIndexOf(t){t=Math.floor(t),this.getTotalSum();let n=0,r=this.values.length-1,s=0,i=0,a=0;for(;n<=r;)if(s=n+(r-n)/2|0,i=this.prefixSum[s],a=i-this.values[s],t<a)r=s-1;else if(t>=i)n=s+1;else break;return new QD(s,t-a)}}class QD{constructor(t,n){this.index=t,this.remainder=n,this._prefixSumIndexOfResultBrand=void 0,this.index=t,this.remainder=n}}class KD{constructor(t,n,r,s){this._uri=t,this._lines=n,this._eol=r,this._versionId=s,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(t){t.eol&&t.eol!==this._eol&&(this._eol=t.eol,this._lineStarts=null);const n=t.changes;for(const r of n)this._acceptDeleteRange(r.range),this._acceptInsertText(new Cr(r.range.startLineNumber,r.range.startColumn),r.text);this._versionId=t.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const t=this._eol.length,n=this._lines.length,r=new Uint32Array(n);for(let s=0;s<n;s++)r[s]=this._lines[s].length+t;this._lineStarts=new XD(r)}}_setLineText(t,n){this._lines[t]=n,this._lineStarts&&this._lineStarts.setValue(t,this._lines[t].length+this._eol.length)}_acceptDeleteRange(t){if(t.startLineNumber===t.endLineNumber){if(t.startColumn===t.endColumn)return;this._setLineText(t.startLineNumber-1,this._lines[t.startLineNumber-1].substring(0,t.startColumn-1)+this._lines[t.startLineNumber-1].substring(t.endColumn-1));return}this._setLineText(t.startLineNumber-1,this._lines[t.startLineNumber-1].substring(0,t.startColumn-1)+this._lines[t.endLineNumber-1].substring(t.endColumn-1)),this._lines.splice(t.startLineNumber,t.endLineNumber-t.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(t.startLineNumber,t.endLineNumber-t.startLineNumber)}_acceptInsertText(t,n){if(n.length===0)return;const r=U1(n);if(r.length===1){this._setLineText(t.lineNumber-1,this._lines[t.lineNumber-1].substring(0,t.column-1)+r[0]+this._lines[t.lineNumber-1].substring(t.column-1));return}r[r.length-1]+=this._lines[t.lineNumber-1].substring(t.column-1),this._setLineText(t.lineNumber-1,this._lines[t.lineNumber-1].substring(0,t.column-1)+r[0]);const s=new Uint32Array(r.length-1);for(let i=1;i<r.length;i++)this._lines.splice(t.lineNumber+i-1,0,r[i]),s[i-1]=r[i].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(t.lineNumber,s)}}class ZD{constructor(){this._models=Object.create(null)}getModel(t){return this._models[t]}getModels(){const t=[];return Object.keys(this._models).forEach(n=>t.push(this._models[n])),t}$acceptNewModel(t){this._models[t.url]=new eb(fc.parse(t.url),t.lines,t.EOL,t.versionId)}$acceptModelChanged(t,n){if(!this._models[t])return;this._models[t].onEvents(n)}$acceptRemovedModel(t){this._models[t]&&delete this._models[t]}}class eb extends KD{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(t){const n=[];for(let r=0;r<this._lines.length;r++){const s=this._lines[r],i=this.offsetAt(new Cr(r+1,1)),a=s.matchAll(t);for(const o of a)(o.index||o.index===0)&&(o.index=o.index+i),n.push(o)}return n}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(t){return this._lines[t-1]}getWordAtPosition(t,n){const r=bc(t.column,Ah(n),this._lines[t.lineNumber-1],0);return r?new Zn(t.lineNumber,r.startColumn,t.lineNumber,r.endColumn):null}words(t){const n=this._lines,r=this._wordenize.bind(this);let s=0,i="",a=0,o=[];return{*[Symbol.iterator](){for(;;)if(a<o.length){const u=i.substring(o[a].start,o[a].end);a+=1,yield u}else if(s<n.length)i=n[s],o=r(i,t),a=0,s+=1;else break}}}getLineWords(t,n){const r=this._lines[t-1],s=this._wordenize(r,n),i=[];for(const a of s)i.push({word:r.substring(a.start,a.end),startColumn:a.start+1,endColumn:a.end+1});return i}_wordenize(t,n){const r=[];let s;for(n.lastIndex=0;(s=n.exec(t))&&s[0].length!==0;)r.push({start:s.index,end:s.index+s[0].length});return r}getValueInRange(t){if(t=this._validateRange(t),t.startLineNumber===t.endLineNumber)return this._lines[t.startLineNumber-1].substring(t.startColumn-1,t.endColumn-1);const n=this._eol,r=t.startLineNumber-1,s=t.endLineNumber-1,i=[];i.push(this._lines[r].substring(t.startColumn-1));for(let a=r+1;a<s;a++)i.push(this._lines[a]);return i.push(this._lines[s].substring(0,t.endColumn-1)),i.join(n)}offsetAt(t){return t=this._validatePosition(t),this._ensureLineStarts(),this._lineStarts.getPrefixSum(t.lineNumber-2)+(t.column-1)}positionAt(t){t=Math.floor(t),t=Math.max(0,t),this._ensureLineStarts();const n=this._lineStarts.getIndexOf(t),r=this._lines[n.index].length;return{lineNumber:1+n.index,column:1+Math.min(n.remainder,r)}}_validateRange(t){const n=this._validatePosition({lineNumber:t.startLineNumber,column:t.startColumn}),r=this._validatePosition({lineNumber:t.endLineNumber,column:t.endColumn});return n.lineNumber!==t.startLineNumber||n.column!==t.startColumn||r.lineNumber!==t.endLineNumber||r.column!==t.endColumn?{startLineNumber:n.lineNumber,startColumn:n.column,endLineNumber:r.lineNumber,endColumn:r.column}:t}_validatePosition(t){if(!Cr.isIPosition(t))throw new Error("bad position");let{lineNumber:n,column:r}=t,s=!1;if(n<1)n=1,r=1,s=!0;else if(n>this._lines.length)n=this._lines.length,r=this._lines[n-1].length+1,s=!0;else{const i=this._lines[n-1].length+1;r<1?(r=1,s=!0):r>i&&(r=i,s=!0)}return s?{lineNumber:n,column:r}:t}}const ta=class ta{constructor(t=null){this._foreignModule=t,this._workerTextModelSyncServer=new ZD}dispose(){}async $ping(){return"pong"}_getModel(t){return this._workerTextModelSyncServer.getModel(t)}getModels(){return this._workerTextModelSyncServer.getModels()}$acceptNewModel(t){this._workerTextModelSyncServer.$acceptNewModel(t)}$acceptModelChanged(t,n){this._workerTextModelSyncServer.$acceptModelChanged(t,n)}$acceptRemovedModel(t){this._workerTextModelSyncServer.$acceptRemovedModel(t)}async $computeUnicodeHighlights(t,n,r){const s=this._getModel(t);return s?tD.computeUnicodeHighlights(s,n,r):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async $findSectionHeaders(t,n){const r=this._getModel(t);return r?WD(r,n):[]}async $computeDiff(t,n,r,s){const i=this._getModel(t),a=this._getModel(n);return!i||!a?null:ta.computeDiff(i,a,r,s)}static computeDiff(t,n,r,s){const i=s==="advanced"?Wh.getDefault():Wh.getLegacy(),a=t.getLinesContent(),o=n.getLinesContent(),u=i.computeDiff(a,o,r),l=u.changes.length>0?!1:this._modelsAreIdentical(t,n);function b(c){return c.map(T=>[T.original.startLineNumber,T.original.endLineNumberExclusive,T.modified.startLineNumber,T.modified.endLineNumberExclusive,T.innerChanges?.map(K=>[K.originalRange.startLineNumber,K.originalRange.startColumn,K.originalRange.endLineNumber,K.originalRange.endColumn,K.modifiedRange.startLineNumber,K.modifiedRange.startColumn,K.modifiedRange.endLineNumber,K.modifiedRange.endColumn])])}return{identical:l,quitEarly:u.hitTimeout,changes:b(u.changes),moves:u.moves.map(c=>[c.lineRangeMapping.original.startLineNumber,c.lineRangeMapping.original.endLineNumberExclusive,c.lineRangeMapping.modified.startLineNumber,c.lineRangeMapping.modified.endLineNumberExclusive,b(c.changes)])}}static _modelsAreIdentical(t,n){const r=t.getLineCount(),s=n.getLineCount();if(r!==s)return!1;for(let i=1;i<=r;i++){const a=t.getLineContent(i),o=n.getLineContent(i);if(a!==o)return!1}return!0}async $computeMoreMinimalEdits(t,n,r){const s=this._getModel(t);if(!s)return n;const i=[];let a;n=n.slice(0).sort((u,l)=>{if(u.range&&l.range)return Zn.compareRangesUsingStarts(u.range,l.range);const b=u.range?0:1,c=l.range?0:1;return b-c});let o=0;for(let u=1;u<n.length;u++)Zn.getEndPosition(n[o].range).equals(Zn.getStartPosition(n[u].range))?(n[o].range=Zn.fromPositions(Zn.getStartPosition(n[o].range),Zn.getEndPosition(n[u].range)),n[o].text+=n[u].text):(o++,n[o]=n[u]);n.length=o+1;for(let{range:u,text:l,eol:b}of n){if(typeof b=="number"&&(a=b),Zn.isEmpty(u)&&!l)continue;const c=s.getValueInRange(u);if(l=l.replace(/\r\n|\n|\r/g,s.eol),c===l)continue;if(Math.max(l.length,c.length)>ta._diffLimit){i.push({range:u,text:l});continue}const T=uy(c,l,r),K=s.offsetAt(Zn.lift(u).getStartPosition());for(const ne of T){const O=s.positionAt(K+ne.originalStart),k=s.positionAt(K+ne.originalStart+ne.originalLength),me={text:l.substr(ne.modifiedStart,ne.modifiedLength),range:{startLineNumber:O.lineNumber,startColumn:O.column,endLineNumber:k.lineNumber,endColumn:k.column}};s.getValueInRange(me.range)!==me.text&&i.push(me)}}return typeof a=="number"&&i.push({eol:a,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),i}async $computeLinks(t){const n=this._getModel(t);return n?dy(n):null}async $computeDefaultDocumentColors(t){const n=this._getModel(t);return n?VD(n):null}async $textualSuggest(t,n,r,s){const i=new au,a=new RegExp(r,s),o=new Set;e:for(const u of t){const l=this._getModel(u);if(l){for(const b of l.words(a))if(!(b===n||!isNaN(Number(b)))&&(o.add(b),o.size>ta._suggestionsLimit))break e}}return{words:Array.from(o),duration:i.elapsed()}}async $computeWordRanges(t,n,r,s){const i=this._getModel(t);if(!i)return Object.create(null);const a=new RegExp(r,s),o=Object.create(null);for(let u=n.startLineNumber;u<n.endLineNumber;u++){const l=i.getLineWords(u,a);for(const b of l){if(!isNaN(Number(b.word)))continue;let c=o[b.word];c||(c=[],o[b.word]=c),c.push({startLineNumber:u,startColumn:b.startColumn,endLineNumber:u,endColumn:b.endColumn})}}return o}async $navigateValueSet(t,n,r,s,i){const a=this._getModel(t);if(!a)return null;const o=new RegExp(s,i);n.startColumn===n.endColumn&&(n={startLineNumber:n.startLineNumber,startColumn:n.startColumn,endLineNumber:n.endLineNumber,endColumn:n.endColumn+1});const u=a.getValueInRange(n),l=a.getWordAtPosition({lineNumber:n.startLineNumber,column:n.startColumn},o);if(!l)return null;const b=a.getValueInRange(l);return ic.INSTANCE.navigateValueSet(n,u,l,b,r)}$fmr(t,n){if(!this._foreignModule||typeof this._foreignModule[t]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+t));try{return Promise.resolve(this._foreignModule[t].apply(this._foreignModule,n))}catch(r){return Promise.reject(r)}}};ta._diffLimit=1e5,ta._suggestionsLimit=1e4;let Fc=ta;typeof importScripts=="function"&&(globalThis.monaco=qy());const Go=class Go{static getChannel(t){return t.getChannel(Go.CHANNEL_NAME)}static setChannel(t,n){t.setChannel(Go.CHANNEL_NAME,n)}};Go.CHANNEL_NAME="editorWorkerHost";let Nc=Go;function Qh(e){let t;const n=ay(r=>{const s=Nc.getChannel(r),a={host:new Proxy({},{get(o,u,l){if(u!=="then"){if(typeof u!="string")throw new Error("Not supported");return(...b)=>s.$fhr(u,b)}}}),getMirrorModels:()=>n.requestHandler.getModels()};return t=e(a),new Fc(t)});return t}var Kh=!1;function tb(){return Kh}function nb(e){Kh=!0,self.onmessage=t=>{Qh(n=>e(n,t.data))}}self.onmessage=()=>{tb()||Qh(()=>({}))};function rb(e){self.onmessage=()=>{nb((t,n)=>Object.create(e(t,n)))}}let Zh=class Vp{constructor(t,n,r,s){this._uri=t,this._languageId=n,this._version=r,this._content=s,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(t){if(t){const n=this.offsetAt(t.start),r=this.offsetAt(t.end);return this._content.substring(n,r)}return this._content}update(t,n){for(const r of t)if(Vp.isIncremental(r)){const s=nm(r.range),i=this.offsetAt(s.start),a=this.offsetAt(s.end);this._content=this._content.substring(0,i)+r.text+this._content.substring(a,this._content.length);const o=Math.max(s.start.line,0),u=Math.max(s.end.line,0);let l=this._lineOffsets;const b=em(r.text,!1,i);if(u-o===b.length)for(let T=0,K=b.length;T<K;T++)l[T+o+1]=b[T];else b.length<1e4?l.splice(o+1,u-o,...b):this._lineOffsets=l=l.slice(0,o+1).concat(b,l.slice(u+1));const c=r.text.length-(a-i);if(c!==0)for(let T=o+1+b.length,K=l.length;T<K;T++)l[T]=l[T]+c}else if(Vp.isFull(r))this._content=r.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received");this._version=n}getLineOffsets(){return this._lineOffsets===void 0&&(this._lineOffsets=em(this._content,!0)),this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);const n=this.getLineOffsets();let r=0,s=n.length;if(s===0)return{line:0,character:t};for(;r<s;){const a=Math.floor((r+s)/2);n[a]>t?s=a:r=a+1}const i=r-1;return t=this.ensureBeforeEOL(t,n[i]),{line:i,character:t-n[i]}}offsetAt(t){const n=this.getLineOffsets();if(t.line>=n.length)return this._content.length;if(t.line<0)return 0;const r=n[t.line];if(t.character<=0)return r;const s=t.line+1<n.length?n[t.line+1]:this._content.length,i=Math.min(r+t.character,s);return this.ensureBeforeEOL(i,r)}ensureBeforeEOL(t,n){for(;t>n&&tm(this._content.charCodeAt(t-1));)t--;return t}get lineCount(){return this.getLineOffsets().length}static isIncremental(t){const n=t;return n!=null&&typeof n.text=="string"&&n.range!==void 0&&(n.rangeLength===void 0||typeof n.rangeLength=="number")}static isFull(t){const n=t;return n!=null&&typeof n.text=="string"&&n.range===void 0&&n.rangeLength===void 0}};var Tc;(function(e){function t(s,i,a,o){return new Zh(s,i,a,o)}e.create=t;function n(s,i,a){if(s instanceof Zh)return s.update(i,a),s;throw new Error("TextDocument.update: document must be created by TextDocument.create")}e.update=n;function r(s,i){const a=s.getText(),o=_c(i.map(sb),(b,c)=>{const T=b.range.start.line-c.range.start.line;return T===0?b.range.start.character-c.range.start.character:T});let u=0;const l=[];for(const b of o){const c=s.offsetAt(b.range.start);if(c<u)throw new Error("Overlapping edit");c>u&&l.push(a.substring(u,c)),b.newText.length&&l.push(b.newText),u=s.offsetAt(b.range.end)}return l.push(a.substr(u)),l.join("")}e.applyEdits=r})(Tc||(Tc={}));function _c(e,t){if(e.length<=1)return e;const n=e.length/2|0,r=e.slice(0,n),s=e.slice(n);_c(r,t),_c(s,t);let i=0,a=0,o=0;for(;i<r.length&&a<s.length;)t(r[i],s[a])<=0?e[o++]=r[i++]:e[o++]=s[a++];for(;i<r.length;)e[o++]=r[i++];for(;a<s.length;)e[o++]=s[a++];return e}function em(e,t,n=0){const r=t?[n]:[];for(let s=0;s<e.length;s++){const i=e.charCodeAt(s);tm(i)&&(i===13&&s+1<e.length&&e.charCodeAt(s+1)===10&&s++,r.push(n+s+1))}return r}function tm(e){return e===13||e===10}function nm(e){const t=e.start,n=e.end;return t.line>n.line||t.line===n.line&&t.character>n.character?{start:n,end:t}:e}function sb(e){const t=nm(e.range);return t!==e.range?{newText:e.newText,range:t}:e}function ib(e,t=!1){const n=e.length;let r=0,s="",i=0,a=16,o=0,u=0,l=0,b=0,c=0;function T(_e,Ye){let ve=0,Pe=0;for(;ve<_e;){let Fe=e.charCodeAt(r);if(Fe>=48&&Fe<=57)Pe=Pe*16+Fe-48;else if(Fe>=65&&Fe<=70)Pe=Pe*16+Fe-65+10;else if(Fe>=97&&Fe<=102)Pe=Pe*16+Fe-97+10;else break;r++,ve++}return ve<_e&&(Pe=-1),Pe}function K(_e){r=_e,s="",i=0,a=16,c=0}function ne(){let _e=r;if(e.charCodeAt(r)===48)r++;else for(r++;r<e.length&&Ca(e.charCodeAt(r));)r++;if(r<e.length&&e.charCodeAt(r)===46)if(r++,r<e.length&&Ca(e.charCodeAt(r)))for(r++;r<e.length&&Ca(e.charCodeAt(r));)r++;else return c=3,e.substring(_e,r);let Ye=r;if(r<e.length&&(e.charCodeAt(r)===69||e.charCodeAt(r)===101))if(r++,(r<e.length&&e.charCodeAt(r)===43||e.charCodeAt(r)===45)&&r++,r<e.length&&Ca(e.charCodeAt(r))){for(r++;r<e.length&&Ca(e.charCodeAt(r));)r++;Ye=r}else c=3;return e.substring(_e,Ye)}function O(){let _e="",Ye=r;for(;;){if(r>=n){_e+=e.substring(Ye,r),c=2;break}const ve=e.charCodeAt(r);if(ve===34){_e+=e.substring(Ye,r),r++;break}if(ve===92){if(_e+=e.substring(Ye,r),r++,r>=n){c=2;break}switch(e.charCodeAt(r++)){case 34:_e+='"';break;case 92:_e+="\\";break;case 47:_e+="/";break;case 98:_e+="\b";break;case 102:_e+="\f";break;case 110:_e+=`
27
+ `;break;case 114:_e+="\r";break;case 116:_e+=" ";break;case 117:const Fe=T(4);Fe>=0?_e+=String.fromCharCode(Fe):c=4;break;default:c=5}Ye=r;continue}if(ve>=0&&ve<=31)if(Fo(ve)){_e+=e.substring(Ye,r),c=2;break}else c=6;r++}return _e}function k(){if(s="",c=0,i=r,u=o,b=l,r>=n)return i=n,a=17;let _e=e.charCodeAt(r);if(Lc(_e)){do r++,s+=String.fromCharCode(_e),_e=e.charCodeAt(r);while(Lc(_e));return a=15}if(Fo(_e))return r++,s+=String.fromCharCode(_e),_e===13&&e.charCodeAt(r)===10&&(r++,s+=`
28
+ `),o++,l=r,a=14;switch(_e){case 123:return r++,a=1;case 125:return r++,a=2;case 91:return r++,a=3;case 93:return r++,a=4;case 58:return r++,a=6;case 44:return r++,a=5;case 34:return r++,s=O(),a=10;case 47:const Ye=r-1;if(e.charCodeAt(r+1)===47){for(r+=2;r<n&&!Fo(e.charCodeAt(r));)r++;return s=e.substring(Ye,r),a=12}if(e.charCodeAt(r+1)===42){r+=2;const ve=n-1;let Pe=!1;for(;r<ve;){const Fe=e.charCodeAt(r);if(Fe===42&&e.charCodeAt(r+1)===47){r+=2,Pe=!0;break}r++,Fo(Fe)&&(Fe===13&&e.charCodeAt(r)===10&&r++,o++,l=r)}return Pe||(r++,c=1),s=e.substring(Ye,r),a=13}return s+=String.fromCharCode(_e),r++,a=16;case 45:if(s+=String.fromCharCode(_e),r++,r===n||!Ca(e.charCodeAt(r)))return a=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return s+=ne(),a=11;default:for(;r<n&&me(_e);)r++,_e=e.charCodeAt(r);if(i!==r){switch(s=e.substring(i,r),s){case"true":return a=8;case"false":return a=9;case"null":return a=7}return a=16}return s+=String.fromCharCode(_e),r++,a=16}}function me(_e){if(Lc(_e)||Fo(_e))return!1;switch(_e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function Se(){let _e;do _e=k();while(_e>=12&&_e<=15);return _e}return{setPosition:K,getPosition:()=>r,scan:t?Se:k,getToken:()=>a,getTokenValue:()=>s,getTokenOffset:()=>i,getTokenLength:()=>r-i,getTokenStartLine:()=>u,getTokenStartCharacter:()=>i-b,getTokenError:()=>c}}function Lc(e){return e===32||e===9}function Fo(e){return e===10||e===13}function Ca(e){return e>=48&&e<=57}var rm;(function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"})(rm||(rm={})),new Array(20).fill(0).map((e,t)=>" ".repeat(t));const Sa=200;new Array(Sa).fill(0).map((e,t)=>`
29
+ `+" ".repeat(t)),new Array(Sa).fill(0).map((e,t)=>"\r"+" ".repeat(t)),new Array(Sa).fill(0).map((e,t)=>`\r
30
+ `+" ".repeat(t)),new Array(Sa).fill(0).map((e,t)=>`
31
+ `+" ".repeat(t)),new Array(Sa).fill(0).map((e,t)=>"\r"+" ".repeat(t)),new Array(Sa).fill(0).map((e,t)=>`\r
32
+ `+" ".repeat(t));var Eu;(function(e){e.DEFAULT={allowTrailingComma:!1}})(Eu||(Eu={}));function ab(e,t=[],n=Eu.DEFAULT){let r=null,s=[];const i=[];function a(u){Array.isArray(s)?s.push(u):r!==null&&(s[r]=u)}return ob(e,{onObjectBegin:()=>{const u={};a(u),i.push(s),s=u,r=null},onObjectProperty:u=>{r=u},onObjectEnd:()=>{s=i.pop()},onArrayBegin:()=>{const u=[];a(u),i.push(s),s=u,r=null},onArrayEnd:()=>{s=i.pop()},onLiteralValue:a,onError:(u,l,b)=>{t.push({error:u,offset:l,length:b})}},n),s[0]}function kc(e){switch(e.type){case"array":return e.children.map(kc);case"object":const t=Object.create(null);for(let n of e.children){const r=n.children[1];r&&(t[n.children[0].value]=kc(r))}return t;case"null":case"string":case"number":case"boolean":return e.value;default:return}}function ob(e,t,n=Eu.DEFAULT){const r=ib(e,!1),s=[];let i=0;function a(at){return at?()=>i===0&&at(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function o(at){return at?He=>i===0&&at(He,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function u(at){return at?He=>i===0&&at(He,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),()=>s.slice()):()=>!0}function l(at){return at?()=>{i>0?i++:at(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),()=>s.slice())===!1&&(i=1)}:()=>!0}function b(at){return at?()=>{i>0&&i--,i===0&&at(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter())}:()=>!0}const c=l(t.onObjectBegin),T=u(t.onObjectProperty),K=b(t.onObjectEnd),ne=l(t.onArrayBegin),O=b(t.onArrayEnd),k=u(t.onLiteralValue),me=o(t.onSeparator),Se=a(t.onComment),_e=o(t.onError),Ye=n&&n.disallowComments,ve=n&&n.allowTrailingComma;function Pe(){for(;;){const at=r.scan();switch(r.getTokenError()){case 4:Fe(14);break;case 5:Fe(15);break;case 3:Fe(13);break;case 1:Ye||Fe(11);break;case 2:Fe(12);break;case 6:Fe(16);break}switch(at){case 12:case 13:Ye?Fe(10):Se();break;case 16:Fe(1);break;case 15:case 14:break;default:return at}}}function Fe(at,He=[],ft=[]){if(_e(at),He.length+ft.length>0){let Lt=r.getToken();for(;Lt!==17;){if(He.indexOf(Lt)!==-1){Pe();break}else if(ft.indexOf(Lt)!==-1)break;Lt=Pe()}}}function Be(at){const He=r.getTokenValue();return at?k(He):(T(He),s.push(He)),Pe(),!0}function xe(){switch(r.getToken()){case 11:const at=r.getTokenValue();let He=Number(at);isNaN(He)&&(Fe(2),He=0),k(He);break;case 7:k(null);break;case 8:k(!0);break;case 9:k(!1);break;default:return!1}return Pe(),!0}function Je(){return r.getToken()!==10?(Fe(3,[],[2,5]),!1):(Be(!1),r.getToken()===6?(me(":"),Pe(),Ze()||Fe(4,[],[2,5])):Fe(5,[],[2,5]),s.pop(),!0)}function ze(){c(),Pe();let at=!1;for(;r.getToken()!==2&&r.getToken()!==17;){if(r.getToken()===5){if(at||Fe(4,[],[]),me(","),Pe(),r.getToken()===2&&ve)break}else at&&Fe(6,[],[]);Je()||Fe(4,[],[2,5]),at=!0}return K(),r.getToken()!==2?Fe(7,[2],[]):Pe(),!0}function de(){ne(),Pe();let at=!0,He=!1;for(;r.getToken()!==4&&r.getToken()!==17;){if(r.getToken()===5){if(He||Fe(4,[],[]),me(","),Pe(),r.getToken()===4&&ve)break}else He&&Fe(6,[],[]);at?(s.push(0),at=!1):s[s.length-1]++,Ze()||Fe(4,[],[4,5]),He=!0}return O(),at||s.pop(),r.getToken()!==4?Fe(8,[4],[]):Pe(),!0}function Ze(){switch(r.getToken()){case 3:return de();case 1:return ze();case 10:return Be(!0);default:return xe()}}return Pe(),r.getToken()===17?n.allowEmptyContent?!0:(Fe(4,[],[]),!1):Ze()?(r.getToken()!==17&&Fe(9,[],[]),!0):(Fe(4,[],[]),!1)}var sm;(function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"})(sm||(sm={}));var im;(function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"})(im||(im={}));const ub=ab,lb=kc;var am;(function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"})(am||(am={}));var om;(()=>{var e={975:ze=>{function de(He){if(typeof He!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(He))}function Ze(He,ft){for(var Lt,qt="",ln=0,rn=-1,Pn=0,Gn=0;Gn<=He.length;++Gn){if(Gn<He.length)Lt=He.charCodeAt(Gn);else{if(Lt===47)break;Lt=47}if(Lt===47){if(!(rn===Gn-1||Pn===1))if(rn!==Gn-1&&Pn===2){if(qt.length<2||ln!==2||qt.charCodeAt(qt.length-1)!==46||qt.charCodeAt(qt.length-2)!==46){if(qt.length>2){var Sr=qt.lastIndexOf("/");if(Sr!==qt.length-1){Sr===-1?(qt="",ln=0):ln=(qt=qt.slice(0,Sr)).length-1-qt.lastIndexOf("/"),rn=Gn,Pn=0;continue}}else if(qt.length===2||qt.length===1){qt="",ln=0,rn=Gn,Pn=0;continue}}ft&&(qt.length>0?qt+="/..":qt="..",ln=2)}else qt.length>0?qt+="/"+He.slice(rn+1,Gn):qt=He.slice(rn+1,Gn),ln=Gn-rn-1;rn=Gn,Pn=0}else Lt===46&&Pn!==-1?++Pn:Pn=-1}return qt}var at={resolve:function(){for(var He,ft="",Lt=!1,qt=arguments.length-1;qt>=-1&&!Lt;qt--){var ln;qt>=0?ln=arguments[qt]:(He===void 0&&(He=process.cwd()),ln=He),de(ln),ln.length!==0&&(ft=ln+"/"+ft,Lt=ln.charCodeAt(0)===47)}return ft=Ze(ft,!Lt),Lt?ft.length>0?"/"+ft:"/":ft.length>0?ft:"."},normalize:function(He){if(de(He),He.length===0)return".";var ft=He.charCodeAt(0)===47,Lt=He.charCodeAt(He.length-1)===47;return(He=Ze(He,!ft)).length!==0||ft||(He="."),He.length>0&&Lt&&(He+="/"),ft?"/"+He:He},isAbsolute:function(He){return de(He),He.length>0&&He.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var He,ft=0;ft<arguments.length;++ft){var Lt=arguments[ft];de(Lt),Lt.length>0&&(He===void 0?He=Lt:He+="/"+Lt)}return He===void 0?".":at.normalize(He)},relative:function(He,ft){if(de(He),de(ft),He===ft||(He=at.resolve(He))===(ft=at.resolve(ft)))return"";for(var Lt=1;Lt<He.length&&He.charCodeAt(Lt)===47;++Lt);for(var qt=He.length,ln=qt-Lt,rn=1;rn<ft.length&&ft.charCodeAt(rn)===47;++rn);for(var Pn=ft.length-rn,Gn=ln<Pn?ln:Pn,Sr=-1,Dr=0;Dr<=Gn;++Dr){if(Dr===Gn){if(Pn>Gn){if(ft.charCodeAt(rn+Dr)===47)return ft.slice(rn+Dr+1);if(Dr===0)return ft.slice(rn+Dr)}else ln>Gn&&(He.charCodeAt(Lt+Dr)===47?Sr=Dr:Dr===0&&(Sr=0));break}var Zr=He.charCodeAt(Lt+Dr);if(Zr!==ft.charCodeAt(rn+Dr))break;Zr===47&&(Sr=Dr)}var js="";for(Dr=Lt+Sr+1;Dr<=qt;++Dr)Dr!==qt&&He.charCodeAt(Dr)!==47||(js.length===0?js+="..":js+="/..");return js.length>0?js+ft.slice(rn+Sr):(rn+=Sr,ft.charCodeAt(rn)===47&&++rn,ft.slice(rn))},_makeLong:function(He){return He},dirname:function(He){if(de(He),He.length===0)return".";for(var ft=He.charCodeAt(0),Lt=ft===47,qt=-1,ln=!0,rn=He.length-1;rn>=1;--rn)if((ft=He.charCodeAt(rn))===47){if(!ln){qt=rn;break}}else ln=!1;return qt===-1?Lt?"/":".":Lt&&qt===1?"//":He.slice(0,qt)},basename:function(He,ft){if(ft!==void 0&&typeof ft!="string")throw new TypeError('"ext" argument must be a string');de(He);var Lt,qt=0,ln=-1,rn=!0;if(ft!==void 0&&ft.length>0&&ft.length<=He.length){if(ft.length===He.length&&ft===He)return"";var Pn=ft.length-1,Gn=-1;for(Lt=He.length-1;Lt>=0;--Lt){var Sr=He.charCodeAt(Lt);if(Sr===47){if(!rn){qt=Lt+1;break}}else Gn===-1&&(rn=!1,Gn=Lt+1),Pn>=0&&(Sr===ft.charCodeAt(Pn)?--Pn==-1&&(ln=Lt):(Pn=-1,ln=Gn))}return qt===ln?ln=Gn:ln===-1&&(ln=He.length),He.slice(qt,ln)}for(Lt=He.length-1;Lt>=0;--Lt)if(He.charCodeAt(Lt)===47){if(!rn){qt=Lt+1;break}}else ln===-1&&(rn=!1,ln=Lt+1);return ln===-1?"":He.slice(qt,ln)},extname:function(He){de(He);for(var ft=-1,Lt=0,qt=-1,ln=!0,rn=0,Pn=He.length-1;Pn>=0;--Pn){var Gn=He.charCodeAt(Pn);if(Gn!==47)qt===-1&&(ln=!1,qt=Pn+1),Gn===46?ft===-1?ft=Pn:rn!==1&&(rn=1):ft!==-1&&(rn=-1);else if(!ln){Lt=Pn+1;break}}return ft===-1||qt===-1||rn===0||rn===1&&ft===qt-1&&ft===Lt+1?"":He.slice(ft,qt)},format:function(He){if(He===null||typeof He!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof He);return(function(ft,Lt){var qt=Lt.dir||Lt.root,ln=Lt.base||(Lt.name||"")+(Lt.ext||"");return qt?qt===Lt.root?qt+ln:qt+"/"+ln:ln})(0,He)},parse:function(He){de(He);var ft={root:"",dir:"",base:"",ext:"",name:""};if(He.length===0)return ft;var Lt,qt=He.charCodeAt(0),ln=qt===47;ln?(ft.root="/",Lt=1):Lt=0;for(var rn=-1,Pn=0,Gn=-1,Sr=!0,Dr=He.length-1,Zr=0;Dr>=Lt;--Dr)if((qt=He.charCodeAt(Dr))!==47)Gn===-1&&(Sr=!1,Gn=Dr+1),qt===46?rn===-1?rn=Dr:Zr!==1&&(Zr=1):rn!==-1&&(Zr=-1);else if(!Sr){Pn=Dr+1;break}return rn===-1||Gn===-1||Zr===0||Zr===1&&rn===Gn-1&&rn===Pn+1?Gn!==-1&&(ft.base=ft.name=Pn===0&&ln?He.slice(1,Gn):He.slice(Pn,Gn)):(Pn===0&&ln?(ft.name=He.slice(1,rn),ft.base=He.slice(1,Gn)):(ft.name=He.slice(Pn,rn),ft.base=He.slice(Pn,Gn)),ft.ext=He.slice(rn,Gn)),Pn>0?ft.dir=He.slice(0,Pn-1):ln&&(ft.dir="/"),ft},sep:"/",delimiter:":",win32:null,posix:null};at.posix=at,ze.exports=at}},t={};function n(ze){var de=t[ze];if(de!==void 0)return de.exports;var Ze=t[ze]={exports:{}};return e[ze](Ze,Ze.exports,n),Ze.exports}n.d=(ze,de)=>{for(var Ze in de)n.o(de,Ze)&&!n.o(ze,Ze)&&Object.defineProperty(ze,Ze,{enumerable:!0,get:de[Ze]})},n.o=(ze,de)=>Object.prototype.hasOwnProperty.call(ze,de),n.r=ze=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(ze,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(ze,"__esModule",{value:!0})};var r={};let s;n.r(r),n.d(r,{URI:()=>T,Utils:()=>Je}),typeof process=="object"?s=process.platform==="win32":typeof navigator=="object"&&(s=navigator.userAgent.indexOf("Windows")>=0);const i=/^\w[\w\d+.-]*$/,a=/^\//,o=/^\/\//;function u(ze,de){if(!ze.scheme&&de)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${ze.authority}", path: "${ze.path}", query: "${ze.query}", fragment: "${ze.fragment}"}`);if(ze.scheme&&!i.test(ze.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(ze.path){if(ze.authority){if(!a.test(ze.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(o.test(ze.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}const l="",b="/",c=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class T{static isUri(de){return de instanceof T||!!de&&typeof de.authority=="string"&&typeof de.fragment=="string"&&typeof de.path=="string"&&typeof de.query=="string"&&typeof de.scheme=="string"&&typeof de.fsPath=="string"&&typeof de.with=="function"&&typeof de.toString=="function"}scheme;authority;path;query;fragment;constructor(de,Ze,at,He,ft,Lt=!1){typeof de=="object"?(this.scheme=de.scheme||l,this.authority=de.authority||l,this.path=de.path||l,this.query=de.query||l,this.fragment=de.fragment||l):(this.scheme=(function(qt,ln){return qt||ln?qt:"file"})(de,Lt),this.authority=Ze||l,this.path=(function(qt,ln){switch(qt){case"https":case"http":case"file":ln?ln[0]!==b&&(ln=b+ln):ln=b}return ln})(this.scheme,at||l),this.query=He||l,this.fragment=ft||l,u(this,Lt))}get fsPath(){return Se(this)}with(de){if(!de)return this;let{scheme:Ze,authority:at,path:He,query:ft,fragment:Lt}=de;return Ze===void 0?Ze=this.scheme:Ze===null&&(Ze=l),at===void 0?at=this.authority:at===null&&(at=l),He===void 0?He=this.path:He===null&&(He=l),ft===void 0?ft=this.query:ft===null&&(ft=l),Lt===void 0?Lt=this.fragment:Lt===null&&(Lt=l),Ze===this.scheme&&at===this.authority&&He===this.path&&ft===this.query&&Lt===this.fragment?this:new ne(Ze,at,He,ft,Lt)}static parse(de,Ze=!1){const at=c.exec(de);return at?new ne(at[2]||l,Pe(at[4]||l),Pe(at[5]||l),Pe(at[7]||l),Pe(at[9]||l),Ze):new ne(l,l,l,l,l)}static file(de){let Ze=l;if(s&&(de=de.replace(/\\/g,b)),de[0]===b&&de[1]===b){const at=de.indexOf(b,2);at===-1?(Ze=de.substring(2),de=b):(Ze=de.substring(2,at),de=de.substring(at)||b)}return new ne("file",Ze,de,l,l)}static from(de){const Ze=new ne(de.scheme,de.authority,de.path,de.query,de.fragment);return u(Ze,!0),Ze}toString(de=!1){return _e(this,de)}toJSON(){return this}static revive(de){if(de){if(de instanceof T)return de;{const Ze=new ne(de);return Ze._formatted=de.external,Ze._fsPath=de._sep===K?de.fsPath:null,Ze}}return de}}const K=s?1:void 0;class ne extends T{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=Se(this)),this._fsPath}toString(de=!1){return de?_e(this,!0):(this._formatted||(this._formatted=_e(this,!1)),this._formatted)}toJSON(){const de={$mid:1};return this._fsPath&&(de.fsPath=this._fsPath,de._sep=K),this._formatted&&(de.external=this._formatted),this.path&&(de.path=this.path),this.scheme&&(de.scheme=this.scheme),this.authority&&(de.authority=this.authority),this.query&&(de.query=this.query),this.fragment&&(de.fragment=this.fragment),de}}const O={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 k(ze,de,Ze){let at,He=-1;for(let ft=0;ft<ze.length;ft++){const Lt=ze.charCodeAt(ft);if(Lt>=97&&Lt<=122||Lt>=65&&Lt<=90||Lt>=48&&Lt<=57||Lt===45||Lt===46||Lt===95||Lt===126||de&&Lt===47||Ze&&Lt===91||Ze&&Lt===93||Ze&&Lt===58)He!==-1&&(at+=encodeURIComponent(ze.substring(He,ft)),He=-1),at!==void 0&&(at+=ze.charAt(ft));else{at===void 0&&(at=ze.substr(0,ft));const qt=O[Lt];qt!==void 0?(He!==-1&&(at+=encodeURIComponent(ze.substring(He,ft)),He=-1),at+=qt):He===-1&&(He=ft)}}return He!==-1&&(at+=encodeURIComponent(ze.substring(He))),at!==void 0?at:ze}function me(ze){let de;for(let Ze=0;Ze<ze.length;Ze++){const at=ze.charCodeAt(Ze);at===35||at===63?(de===void 0&&(de=ze.substr(0,Ze)),de+=O[at]):de!==void 0&&(de+=ze[Ze])}return de!==void 0?de:ze}function Se(ze,de){let Ze;return Ze=ze.authority&&ze.path.length>1&&ze.scheme==="file"?`//${ze.authority}${ze.path}`:ze.path.charCodeAt(0)===47&&(ze.path.charCodeAt(1)>=65&&ze.path.charCodeAt(1)<=90||ze.path.charCodeAt(1)>=97&&ze.path.charCodeAt(1)<=122)&&ze.path.charCodeAt(2)===58?ze.path[1].toLowerCase()+ze.path.substr(2):ze.path,s&&(Ze=Ze.replace(/\//g,"\\")),Ze}function _e(ze,de){const Ze=de?me:k;let at="",{scheme:He,authority:ft,path:Lt,query:qt,fragment:ln}=ze;if(He&&(at+=He,at+=":"),(ft||He==="file")&&(at+=b,at+=b),ft){let rn=ft.indexOf("@");if(rn!==-1){const Pn=ft.substr(0,rn);ft=ft.substr(rn+1),rn=Pn.lastIndexOf(":"),rn===-1?at+=Ze(Pn,!1,!1):(at+=Ze(Pn.substr(0,rn),!1,!1),at+=":",at+=Ze(Pn.substr(rn+1),!1,!0)),at+="@"}ft=ft.toLowerCase(),rn=ft.lastIndexOf(":"),rn===-1?at+=Ze(ft,!1,!0):(at+=Ze(ft.substr(0,rn),!1,!0),at+=ft.substr(rn))}if(Lt){if(Lt.length>=3&&Lt.charCodeAt(0)===47&&Lt.charCodeAt(2)===58){const rn=Lt.charCodeAt(1);rn>=65&&rn<=90&&(Lt=`/${String.fromCharCode(rn+32)}:${Lt.substr(3)}`)}else if(Lt.length>=2&&Lt.charCodeAt(1)===58){const rn=Lt.charCodeAt(0);rn>=65&&rn<=90&&(Lt=`${String.fromCharCode(rn+32)}:${Lt.substr(2)}`)}at+=Ze(Lt,!0,!1)}return qt&&(at+="?",at+=Ze(qt,!1,!1)),ln&&(at+="#",at+=de?ln:k(ln,!1,!1)),at}function Ye(ze){try{return decodeURIComponent(ze)}catch{return ze.length>3?ze.substr(0,3)+Ye(ze.substr(3)):ze}}const ve=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Pe(ze){return ze.match(ve)?ze.replace(ve,(de=>Ye(de))):ze}var Fe=n(975);const Be=Fe.posix||Fe,xe="/";var Je;(function(ze){ze.joinPath=function(de,...Ze){return de.with({path:Be.join(de.path,...Ze)})},ze.resolvePath=function(de,...Ze){let at=de.path,He=!1;at[0]!==xe&&(at=xe+at,He=!0);let ft=Be.resolve(at,...Ze);return He&&ft[0]===xe&&!de.authority&&(ft=ft.substring(1)),de.with({path:ft})},ze.dirname=function(de){if(de.path.length===0||de.path===xe)return de;let Ze=Be.dirname(de.path);return Ze.length===1&&Ze.charCodeAt(0)===46&&(Ze=""),de.with({path:Ze})},ze.basename=function(de){return Be.basename(de.path)},ze.extname=function(de){return Be.extname(de.path)}})(Je||(Je={})),om=r})();const{URI:xs,Utils:Gw}=om;var um;(function(e){function t(n){return typeof n=="string"}e.is=t})(um||(um={}));var Pc;(function(e){function t(n){return typeof n=="string"}e.is=t})(Pc||(Pc={}));var lm;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function t(n){return typeof n=="number"&&e.MIN_VALUE<=n&&n<=e.MAX_VALUE}e.is=t})(lm||(lm={}));var Au;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function t(n){return typeof n=="number"&&e.MIN_VALUE<=n&&n<=e.MAX_VALUE}e.is=t})(Au||(Au={}));var Qr;(function(e){function t(r,s){return r===Number.MAX_VALUE&&(r=Au.MAX_VALUE),s===Number.MAX_VALUE&&(s=Au.MAX_VALUE),{line:r,character:s}}e.create=t;function n(r){let s=r;return _t.objectLiteral(s)&&_t.uinteger(s.line)&&_t.uinteger(s.character)}e.is=n})(Qr||(Qr={}));var Vn;(function(e){function t(r,s,i,a){if(_t.uinteger(r)&&_t.uinteger(s)&&_t.uinteger(i)&&_t.uinteger(a))return{start:Qr.create(r,s),end:Qr.create(i,a)};if(Qr.is(r)&&Qr.is(s))return{start:r,end:s};throw new Error(`Range#create called with invalid arguments[${r}, ${s}, ${i}, ${a}]`)}e.create=t;function n(r){let s=r;return _t.objectLiteral(s)&&Qr.is(s.start)&&Qr.is(s.end)}e.is=n})(Vn||(Vn={}));var Fa;(function(e){function t(r,s){return{uri:r,range:s}}e.create=t;function n(r){let s=r;return _t.objectLiteral(s)&&Vn.is(s.range)&&(_t.string(s.uri)||_t.undefined(s.uri))}e.is=n})(Fa||(Fa={}));var Bc;(function(e){function t(r,s,i,a){return{targetUri:r,targetRange:s,targetSelectionRange:i,originSelectionRange:a}}e.create=t;function n(r){let s=r;return _t.objectLiteral(s)&&Vn.is(s.targetRange)&&_t.string(s.targetUri)&&Vn.is(s.targetSelectionRange)&&(Vn.is(s.originSelectionRange)||_t.undefined(s.originSelectionRange))}e.is=n})(Bc||(Bc={}));var Mc;(function(e){function t(r,s,i,a){return{red:r,green:s,blue:i,alpha:a}}e.create=t;function n(r){const s=r;return _t.objectLiteral(s)&&_t.numberRange(s.red,0,1)&&_t.numberRange(s.green,0,1)&&_t.numberRange(s.blue,0,1)&&_t.numberRange(s.alpha,0,1)}e.is=n})(Mc||(Mc={}));var cm;(function(e){function t(r,s){return{range:r,color:s}}e.create=t;function n(r){const s=r;return _t.objectLiteral(s)&&Vn.is(s.range)&&Mc.is(s.color)}e.is=n})(cm||(cm={}));var fm;(function(e){function t(r,s,i){return{label:r,textEdit:s,additionalTextEdits:i}}e.create=t;function n(r){const s=r;return _t.objectLiteral(s)&&_t.string(s.label)&&(_t.undefined(s.textEdit)||Ir.is(s))&&(_t.undefined(s.additionalTextEdits)||_t.typedArray(s.additionalTextEdits,Ir.is))}e.is=n})(fm||(fm={}));var pm;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(pm||(pm={}));var Ic;(function(e){function t(r,s,i,a,o,u){const l={startLine:r,endLine:s};return _t.defined(i)&&(l.startCharacter=i),_t.defined(a)&&(l.endCharacter=a),_t.defined(o)&&(l.kind=o),_t.defined(u)&&(l.collapsedText=u),l}e.create=t;function n(r){const s=r;return _t.objectLiteral(s)&&_t.uinteger(s.startLine)&&_t.uinteger(s.startLine)&&(_t.undefined(s.startCharacter)||_t.uinteger(s.startCharacter))&&(_t.undefined(s.endCharacter)||_t.uinteger(s.endCharacter))&&(_t.undefined(s.kind)||_t.string(s.kind))}e.is=n})(Ic||(Ic={}));var Oc;(function(e){function t(r,s){return{location:r,message:s}}e.create=t;function n(r){let s=r;return _t.defined(s)&&Fa.is(s.location)&&_t.string(s.message)}e.is=n})(Oc||(Oc={}));var tr;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(tr||(tr={}));var Rc;(function(e){e.Unnecessary=1,e.Deprecated=2})(Rc||(Rc={}));var dm;(function(e){function t(n){const r=n;return _t.objectLiteral(r)&&_t.string(r.href)}e.is=t})(dm||(dm={}));var Cs;(function(e){function t(r,s,i,a,o,u){let l={range:r,message:s};return _t.defined(i)&&(l.severity=i),_t.defined(a)&&(l.code=a),_t.defined(o)&&(l.source=o),_t.defined(u)&&(l.relatedInformation=u),l}e.create=t;function n(r){var s;let i=r;return _t.defined(i)&&Vn.is(i.range)&&_t.string(i.message)&&(_t.number(i.severity)||_t.undefined(i.severity))&&(_t.integer(i.code)||_t.string(i.code)||_t.undefined(i.code))&&(_t.undefined(i.codeDescription)||_t.string((s=i.codeDescription)===null||s===void 0?void 0:s.href))&&(_t.string(i.source)||_t.undefined(i.source))&&(_t.undefined(i.relatedInformation)||_t.typedArray(i.relatedInformation,Oc.is))}e.is=n})(Cs||(Cs={}));var qi;(function(e){function t(r,s,...i){let a={title:r,command:s};return _t.defined(i)&&i.length>0&&(a.arguments=i),a}e.create=t;function n(r){let s=r;return _t.defined(s)&&_t.string(s.title)&&_t.string(s.command)}e.is=n})(qi||(qi={}));var Ir;(function(e){function t(i,a){return{range:i,newText:a}}e.replace=t;function n(i,a){return{range:{start:i,end:i},newText:a}}e.insert=n;function r(i){return{range:i,newText:""}}e.del=r;function s(i){const a=i;return _t.objectLiteral(a)&&_t.string(a.newText)&&Vn.is(a.range)}e.is=s})(Ir||(Ir={}));var jc;(function(e){function t(r,s,i){const a={label:r};return s!==void 0&&(a.needsConfirmation=s),i!==void 0&&(a.description=i),a}e.create=t;function n(r){const s=r;return _t.objectLiteral(s)&&_t.string(s.label)&&(_t.boolean(s.needsConfirmation)||s.needsConfirmation===void 0)&&(_t.string(s.description)||s.description===void 0)}e.is=n})(jc||(jc={}));var Na;(function(e){function t(n){const r=n;return _t.string(r)}e.is=t})(Na||(Na={}));var hm;(function(e){function t(i,a,o){return{range:i,newText:a,annotationId:o}}e.replace=t;function n(i,a,o){return{range:{start:i,end:i},newText:a,annotationId:o}}e.insert=n;function r(i,a){return{range:i,newText:"",annotationId:a}}e.del=r;function s(i){const a=i;return Ir.is(a)&&(jc.is(a.annotationId)||Na.is(a.annotationId))}e.is=s})(hm||(hm={}));var $c;(function(e){function t(r,s){return{textDocument:r,edits:s}}e.create=t;function n(r){let s=r;return _t.defined(s)&&Gc.is(s.textDocument)&&Array.isArray(s.edits)}e.is=n})($c||($c={}));var Vc;(function(e){function t(r,s,i){let a={kind:"create",uri:r};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(a.options=s),i!==void 0&&(a.annotationId=i),a}e.create=t;function n(r){let s=r;return s&&s.kind==="create"&&_t.string(s.uri)&&(s.options===void 0||(s.options.overwrite===void 0||_t.boolean(s.options.overwrite))&&(s.options.ignoreIfExists===void 0||_t.boolean(s.options.ignoreIfExists)))&&(s.annotationId===void 0||Na.is(s.annotationId))}e.is=n})(Vc||(Vc={}));var qc;(function(e){function t(r,s,i,a){let o={kind:"rename",oldUri:r,newUri:s};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(o.options=i),a!==void 0&&(o.annotationId=a),o}e.create=t;function n(r){let s=r;return s&&s.kind==="rename"&&_t.string(s.oldUri)&&_t.string(s.newUri)&&(s.options===void 0||(s.options.overwrite===void 0||_t.boolean(s.options.overwrite))&&(s.options.ignoreIfExists===void 0||_t.boolean(s.options.ignoreIfExists)))&&(s.annotationId===void 0||Na.is(s.annotationId))}e.is=n})(qc||(qc={}));var Uc;(function(e){function t(r,s,i){let a={kind:"delete",uri:r};return s!==void 0&&(s.recursive!==void 0||s.ignoreIfNotExists!==void 0)&&(a.options=s),i!==void 0&&(a.annotationId=i),a}e.create=t;function n(r){let s=r;return s&&s.kind==="delete"&&_t.string(s.uri)&&(s.options===void 0||(s.options.recursive===void 0||_t.boolean(s.options.recursive))&&(s.options.ignoreIfNotExists===void 0||_t.boolean(s.options.ignoreIfNotExists)))&&(s.annotationId===void 0||Na.is(s.annotationId))}e.is=n})(Uc||(Uc={}));var Wc;(function(e){function t(n){let r=n;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(s=>_t.string(s.kind)?Vc.is(s)||qc.is(s)||Uc.is(s):$c.is(s)))}e.is=t})(Wc||(Wc={}));var mm;(function(e){function t(r){return{uri:r}}e.create=t;function n(r){let s=r;return _t.defined(s)&&_t.string(s.uri)}e.is=n})(mm||(mm={}));var gm;(function(e){function t(r,s){return{uri:r,version:s}}e.create=t;function n(r){let s=r;return _t.defined(s)&&_t.string(s.uri)&&_t.integer(s.version)}e.is=n})(gm||(gm={}));var Gc;(function(e){function t(r,s){return{uri:r,version:s}}e.create=t;function n(r){let s=r;return _t.defined(s)&&_t.string(s.uri)&&(s.version===null||_t.integer(s.version))}e.is=n})(Gc||(Gc={}));var ym;(function(e){function t(r,s,i,a){return{uri:r,languageId:s,version:i,text:a}}e.create=t;function n(r){let s=r;return _t.defined(s)&&_t.string(s.uri)&&_t.string(s.languageId)&&_t.integer(s.version)&&_t.string(s.text)}e.is=n})(ym||(ym={}));var di;(function(e){e.PlainText="plaintext",e.Markdown="markdown";function t(n){const r=n;return r===e.PlainText||r===e.Markdown}e.is=t})(di||(di={}));var No;(function(e){function t(n){const r=n;return _t.objectLiteral(n)&&di.is(r.kind)&&_t.string(r.value)}e.is=t})(No||(No={}));var Ss;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(Ss||(Ss={}));var ns;(function(e){e.PlainText=1,e.Snippet=2})(ns||(ns={}));var Dm;(function(e){e.Deprecated=1})(Dm||(Dm={}));var bm;(function(e){function t(r,s,i){return{newText:r,insert:s,replace:i}}e.create=t;function n(r){const s=r;return s&&_t.string(s.newText)&&Vn.is(s.insert)&&Vn.is(s.replace)}e.is=n})(bm||(bm={}));var Jc;(function(e){e.asIs=1,e.adjustIndentation=2})(Jc||(Jc={}));var vm;(function(e){function t(n){const r=n;return r&&(_t.string(r.detail)||r.detail===void 0)&&(_t.string(r.description)||r.description===void 0)}e.is=t})(vm||(vm={}));var Yc;(function(e){function t(n){return{label:n}}e.create=t})(Yc||(Yc={}));var Hc;(function(e){function t(n,r){return{items:n||[],isIncomplete:!!r}}e.create=t})(Hc||(Hc={}));var wu;(function(e){function t(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=t;function n(r){const s=r;return _t.string(s)||_t.objectLiteral(s)&&_t.string(s.language)&&_t.string(s.value)}e.is=n})(wu||(wu={}));var Em;(function(e){function t(n){let r=n;return!!r&&_t.objectLiteral(r)&&(No.is(r.contents)||wu.is(r.contents)||_t.typedArray(r.contents,wu.is))&&(n.range===void 0||Vn.is(n.range))}e.is=t})(Em||(Em={}));var Am;(function(e){function t(n,r){return r?{label:n,documentation:r}:{label:n}}e.create=t})(Am||(Am={}));var wm;(function(e){function t(n,r,...s){let i={label:n};return _t.defined(r)&&(i.documentation=r),_t.defined(s)?i.parameters=s:i.parameters=[],i}e.create=t})(wm||(wm={}));var xm;(function(e){e.Text=1,e.Read=2,e.Write=3})(xm||(xm={}));var Cm;(function(e){function t(n,r){let s={range:n};return _t.number(r)&&(s.kind=r),s}e.create=t})(Cm||(Cm={}));var ni;(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(ni||(ni={}));var Sm;(function(e){e.Deprecated=1})(Sm||(Sm={}));var Fm;(function(e){function t(n,r,s,i,a){let o={name:n,kind:r,location:{uri:i,range:s}};return a&&(o.containerName=a),o}e.create=t})(Fm||(Fm={}));var Nm;(function(e){function t(n,r,s,i){return i!==void 0?{name:n,kind:r,location:{uri:s,range:i}}:{name:n,kind:r,location:{uri:s}}}e.create=t})(Nm||(Nm={}));var Tm;(function(e){function t(r,s,i,a,o,u){let l={name:r,detail:s,kind:i,range:a,selectionRange:o};return u!==void 0&&(l.children=u),l}e.create=t;function n(r){let s=r;return s&&_t.string(s.name)&&_t.number(s.kind)&&Vn.is(s.range)&&Vn.is(s.selectionRange)&&(s.detail===void 0||_t.string(s.detail))&&(s.deprecated===void 0||_t.boolean(s.deprecated))&&(s.children===void 0||Array.isArray(s.children))&&(s.tags===void 0||Array.isArray(s.tags))}e.is=n})(Tm||(Tm={}));var Ti;(function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"})(Ti||(Ti={}));var xu;(function(e){e.Invoked=1,e.Automatic=2})(xu||(xu={}));var _m;(function(e){function t(r,s,i){let a={diagnostics:r};return s!=null&&(a.only=s),i!=null&&(a.triggerKind=i),a}e.create=t;function n(r){let s=r;return _t.defined(s)&&_t.typedArray(s.diagnostics,Cs.is)&&(s.only===void 0||_t.typedArray(s.only,_t.string))&&(s.triggerKind===void 0||s.triggerKind===xu.Invoked||s.triggerKind===xu.Automatic)}e.is=n})(_m||(_m={}));var hi;(function(e){function t(r,s,i){let a={title:r},o=!0;return typeof s=="string"?(o=!1,a.kind=s):qi.is(s)?a.command=s:a.edit=s,o&&i!==void 0&&(a.kind=i),a}e.create=t;function n(r){let s=r;return s&&_t.string(s.title)&&(s.diagnostics===void 0||_t.typedArray(s.diagnostics,Cs.is))&&(s.kind===void 0||_t.string(s.kind))&&(s.edit!==void 0||s.command!==void 0)&&(s.command===void 0||qi.is(s.command))&&(s.isPreferred===void 0||_t.boolean(s.isPreferred))&&(s.edit===void 0||Wc.is(s.edit))}e.is=n})(hi||(hi={}));var zc;(function(e){function t(r,s){let i={range:r};return _t.defined(s)&&(i.data=s),i}e.create=t;function n(r){let s=r;return _t.defined(s)&&Vn.is(s.range)&&(_t.undefined(s.command)||qi.is(s.command))}e.is=n})(zc||(zc={}));var Lm;(function(e){function t(r,s){return{tabSize:r,insertSpaces:s}}e.create=t;function n(r){let s=r;return _t.defined(s)&&_t.uinteger(s.tabSize)&&_t.boolean(s.insertSpaces)}e.is=n})(Lm||(Lm={}));var km;(function(e){function t(r,s,i){return{range:r,target:s,data:i}}e.create=t;function n(r){let s=r;return _t.defined(s)&&Vn.is(s.range)&&(_t.undefined(s.target)||_t.string(s.target))}e.is=n})(km||(km={}));var Cu;(function(e){function t(r,s){return{range:r,parent:s}}e.create=t;function n(r){let s=r;return _t.objectLiteral(s)&&Vn.is(s.range)&&(s.parent===void 0||e.is(s.parent))}e.is=n})(Cu||(Cu={}));var Pm;(function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"})(Pm||(Pm={}));var Bm;(function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"})(Bm||(Bm={}));var Mm;(function(e){function t(n){const r=n;return _t.objectLiteral(r)&&(r.resultId===void 0||typeof r.resultId=="string")&&Array.isArray(r.data)&&(r.data.length===0||typeof r.data[0]=="number")}e.is=t})(Mm||(Mm={}));var Im;(function(e){function t(r,s){return{range:r,text:s}}e.create=t;function n(r){const s=r;return s!=null&&Vn.is(s.range)&&_t.string(s.text)}e.is=n})(Im||(Im={}));var Om;(function(e){function t(r,s,i){return{range:r,variableName:s,caseSensitiveLookup:i}}e.create=t;function n(r){const s=r;return s!=null&&Vn.is(s.range)&&_t.boolean(s.caseSensitiveLookup)&&(_t.string(s.variableName)||s.variableName===void 0)}e.is=n})(Om||(Om={}));var Rm;(function(e){function t(r,s){return{range:r,expression:s}}e.create=t;function n(r){const s=r;return s!=null&&Vn.is(s.range)&&(_t.string(s.expression)||s.expression===void 0)}e.is=n})(Rm||(Rm={}));var jm;(function(e){function t(r,s){return{frameId:r,stoppedLocation:s}}e.create=t;function n(r){const s=r;return _t.defined(s)&&Vn.is(r.stoppedLocation)}e.is=n})(jm||(jm={}));var Xc;(function(e){e.Type=1,e.Parameter=2;function t(n){return n===1||n===2}e.is=t})(Xc||(Xc={}));var Qc;(function(e){function t(r){return{value:r}}e.create=t;function n(r){const s=r;return _t.objectLiteral(s)&&(s.tooltip===void 0||_t.string(s.tooltip)||No.is(s.tooltip))&&(s.location===void 0||Fa.is(s.location))&&(s.command===void 0||qi.is(s.command))}e.is=n})(Qc||(Qc={}));var $m;(function(e){function t(r,s,i){const a={position:r,label:s};return i!==void 0&&(a.kind=i),a}e.create=t;function n(r){const s=r;return _t.objectLiteral(s)&&Qr.is(s.position)&&(_t.string(s.label)||_t.typedArray(s.label,Qc.is))&&(s.kind===void 0||Xc.is(s.kind))&&s.textEdits===void 0||_t.typedArray(s.textEdits,Ir.is)&&(s.tooltip===void 0||_t.string(s.tooltip)||No.is(s.tooltip))&&(s.paddingLeft===void 0||_t.boolean(s.paddingLeft))&&(s.paddingRight===void 0||_t.boolean(s.paddingRight))}e.is=n})($m||($m={}));var Vm;(function(e){function t(n){return{kind:"snippet",value:n}}e.createSnippet=t})(Vm||(Vm={}));var qm;(function(e){function t(n,r,s,i){return{insertText:n,filterText:r,range:s,command:i}}e.create=t})(qm||(qm={}));var Um;(function(e){function t(n){return{items:n}}e.create=t})(Um||(Um={}));var Wm;(function(e){e.Invoked=0,e.Automatic=1})(Wm||(Wm={}));var Gm;(function(e){function t(n,r){return{range:n,text:r}}e.create=t})(Gm||(Gm={}));var Jm;(function(e){function t(n,r){return{triggerKind:n,selectedCompletionInfo:r}}e.create=t})(Jm||(Jm={}));var Ym;(function(e){function t(n){const r=n;return _t.objectLiteral(r)&&Pc.is(r.uri)&&_t.string(r.name)}e.is=t})(Ym||(Ym={}));var Hm;(function(e){function t(i,a,o,u){return new cb(i,a,o,u)}e.create=t;function n(i){let a=i;return!!(_t.defined(a)&&_t.string(a.uri)&&(_t.undefined(a.languageId)||_t.string(a.languageId))&&_t.uinteger(a.lineCount)&&_t.func(a.getText)&&_t.func(a.positionAt)&&_t.func(a.offsetAt))}e.is=n;function r(i,a){let o=i.getText(),u=s(a,(b,c)=>{let T=b.range.start.line-c.range.start.line;return T===0?b.range.start.character-c.range.start.character:T}),l=o.length;for(let b=u.length-1;b>=0;b--){let c=u[b],T=i.offsetAt(c.range.start),K=i.offsetAt(c.range.end);if(K<=l)o=o.substring(0,T)+c.newText+o.substring(K,o.length);else throw new Error("Overlapping edit");l=T}return o}e.applyEdits=r;function s(i,a){if(i.length<=1)return i;const o=i.length/2|0,u=i.slice(0,o),l=i.slice(o);s(u,a),s(l,a);let b=0,c=0,T=0;for(;b<u.length&&c<l.length;)a(u[b],l[c])<=0?i[T++]=u[b++]:i[T++]=l[c++];for(;b<u.length;)i[T++]=u[b++];for(;c<l.length;)i[T++]=l[c++];return i}})(Hm||(Hm={}));class cb{constructor(t,n,r,s){this._uri=t,this._languageId=n,this._version=r,this._content=s,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(t){if(t){let n=this.offsetAt(t.start),r=this.offsetAt(t.end);return this._content.substring(n,r)}return this._content}update(t,n){this._content=t.text,this._version=n,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let t=[],n=this._content,r=!0;for(let s=0;s<n.length;s++){r&&(t.push(s),r=!1);let i=n.charAt(s);r=i==="\r"||i===`
33
+ `,i==="\r"&&s+1<n.length&&n.charAt(s+1)===`
34
+ `&&s++}r&&n.length>0&&t.push(n.length),this._lineOffsets=t}return this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let n=this.getLineOffsets(),r=0,s=n.length;if(s===0)return Qr.create(0,t);for(;r<s;){let a=Math.floor((r+s)/2);n[a]>t?s=a:r=a+1}let i=r-1;return Qr.create(i,t-n[i])}offsetAt(t){let n=this.getLineOffsets();if(t.line>=n.length)return this._content.length;if(t.line<0)return 0;let r=n[t.line],s=t.line+1<n.length?n[t.line+1]:this._content.length;return Math.max(Math.min(r+t.character,s),r)}get lineCount(){return this.getLineOffsets().length}}var _t;(function(e){const t=Object.prototype.toString;function n(K){return typeof K<"u"}e.defined=n;function r(K){return typeof K>"u"}e.undefined=r;function s(K){return K===!0||K===!1}e.boolean=s;function i(K){return t.call(K)==="[object String]"}e.string=i;function a(K){return t.call(K)==="[object Number]"}e.number=a;function o(K,ne,O){return t.call(K)==="[object Number]"&&ne<=K&&K<=O}e.numberRange=o;function u(K){return t.call(K)==="[object Number]"&&-2147483648<=K&&K<=2147483647}e.integer=u;function l(K){return t.call(K)==="[object Number]"&&0<=K&&K<=2147483647}e.uinteger=l;function b(K){return t.call(K)==="[object Function]"}e.func=b;function c(K){return K!==null&&typeof K=="object"}e.objectLiteral=c;function T(K,ne){return Array.isArray(K)&&K.every(ne)}e.typedArray=T})(_t||(_t={}));const Kc=Symbol.for("yaml.alias"),Zc=Symbol.for("yaml.document"),_i=Symbol.for("yaml.map"),zm=Symbol.for("yaml.pair"),ri=Symbol.for("yaml.scalar"),Ta=Symbol.for("yaml.seq"),Ms=Symbol.for("yaml.node.type"),Us=e=>!!e&&typeof e=="object"&&e[Ms]===Kc,_a=e=>!!e&&typeof e=="object"&&e[Ms]===Zc,$r=e=>!!e&&typeof e=="object"&&e[Ms]===_i,vr=e=>!!e&&typeof e=="object"&&e[Ms]===zm,Wn=e=>!!e&&typeof e=="object"&&e[Ms]===ri,Vr=e=>!!e&&typeof e=="object"&&e[Ms]===Ta;function jr(e){if(e&&typeof e=="object")switch(e[Ms]){case _i:case Ta:return!0}return!1}function yr(e){if(e&&typeof e=="object")switch(e[Ms]){case Kc:case _i:case ri:case Ta:return!0}return!1}const Xm=e=>(Wn(e)||jr(e))&&!!e.anchor,Ui=Symbol("break visit"),fb=Symbol("skip children"),To=Symbol("remove node");function Br(e,t){const n=pb(t);_a(e)?La(null,e.contents,n,Object.freeze([e]))===To&&(e.contents=null):La(null,e,n,Object.freeze([]))}Br.BREAK=Ui,Br.SKIP=fb,Br.REMOVE=To;function La(e,t,n,r){const s=db(e,t,n,r);if(yr(s)||vr(s))return hb(e,r,s),La(e,s,n,r);if(typeof s!="symbol"){if(jr(t)){r=Object.freeze(r.concat(t));for(let i=0;i<t.items.length;++i){const a=La(i,t.items[i],n,r);if(typeof a=="number")i=a-1;else{if(a===Ui)return Ui;a===To&&(t.items.splice(i,1),i-=1)}}}else if(vr(t)){r=Object.freeze(r.concat(t));const i=La("key",t.key,n,r);if(i===Ui)return Ui;i===To&&(t.key=null);const a=La("value",t.value,n,r);if(a===Ui)return Ui;a===To&&(t.value=null)}}return s}function pb(e){return typeof e=="object"&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function db(e,t,n,r){if(typeof n=="function")return n(e,t,r);if($r(t))return n.Map?.(e,t,r);if(Vr(t))return n.Seq?.(e,t,r);if(vr(t))return n.Pair?.(e,t,r);if(Wn(t))return n.Scalar?.(e,t,r);if(Us(t))return n.Alias?.(e,t,r)}function hb(e,t,n){const r=t[t.length-1];if(jr(r))r.items[e]=n;else if(vr(r))e==="key"?r.key=n:r.value=n;else if(_a(r))r.contents=n;else{const s=Us(r)?"alias":"scalar";throw new Error(`Cannot replace node with ${s} parent`)}}const mb={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},gb=e=>e.replace(/[!,[\]{}]/g,t=>mb[t]);class us{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},us.defaultYaml,t),this.tags=Object.assign({},us.defaultTags,n)}clone(){const t=new us(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){const t=new us(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:us.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},us.defaultTags);break}return t}add(t,n){this.atNextDocument&&(this.yaml={explicit:us.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},us.defaultTags),this.atNextDocument=!1);const r=t.trim().split(/[ \t]+/),s=r.shift();switch(s){case"%TAG":{if(r.length!==2&&(n(0,"%TAG directive should contain exactly two parts"),r.length<2))return!1;const[i,a]=r;return this.tags[i]=a,!0}case"%YAML":{if(this.yaml.explicit=!0,r.length!==1)return n(0,"%YAML directive should contain exactly one part"),!1;const[i]=r;if(i==="1.1"||i==="1.2")return this.yaml.version=i,!0;{const a=/^\d+\.\d+$/.test(i);return n(6,`Unsupported YAML version ${i}`,a),!1}}default:return n(0,`Unknown directive ${s}`,!0),!1}}tagName(t,n){if(t==="!")return"!";if(t[0]!=="!")return n(`Not a valid tag: ${t}`),null;if(t[1]==="<"){const a=t.slice(2,-1);return a==="!"||a==="!!"?(n(`Verbatim tags aren't resolved, so ${t} is invalid.`),null):(t[t.length-1]!==">"&&n("Verbatim tags must end with a >"),a)}const[,r,s]=t.match(/^(.*!)([^!]*)$/s);s||n(`The ${t} tag has no suffix`);const i=this.tags[r];if(i)try{return i+decodeURIComponent(s)}catch(a){return n(String(a)),null}return r==="!"?t:(n(`Could not resolve tag: ${t}`),null)}tagString(t){for(const[n,r]of Object.entries(this.tags))if(t.startsWith(r))return n+gb(t.substring(r.length));return t[0]==="!"?t:`!<${t}>`}toString(t){const n=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],r=Object.entries(this.tags);let s;if(t&&r.length>0&&yr(t.contents)){const i={};Br(t.contents,(a,o)=>{yr(o)&&o.tag&&(i[o.tag]=!0)}),s=Object.keys(i)}else s=[];for(const[i,a]of r)i==="!!"&&a==="tag:yaml.org,2002:"||(!t||s.some(o=>o.startsWith(a)))&&n.push(`%TAG ${i} ${a}`);return n.join(`
35
+ `)}}us.defaultYaml={explicit:!1,version:"1.2"},us.defaultTags={"!!":"tag:yaml.org,2002:"};function Qm(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const n=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw new Error(n)}return!0}function Km(e){const t=new Set;return Br(e,{Value(n,r){r.anchor&&t.add(r.anchor)}}),t}function Zm(e,t){for(let n=1;;++n){const r=`${e}${n}`;if(!t.has(r))return r}}function yb(e,t){const n=[],r=new Map;let s=null;return{onAnchor:i=>{n.push(i),s??(s=Km(e));const a=Zm(t,s);return s.add(a),a},setAnchors:()=>{for(const i of n){const a=r.get(i);if(typeof a=="object"&&a.anchor&&(Wn(a.node)||jr(a.node)))a.node.anchor=a.anchor;else{const o=new Error("Failed to resolve repeated object (this should not happen)");throw o.source=i,o}}},sourceObjects:r}}function ka(e,t,n,r){if(r&&typeof r=="object")if(Array.isArray(r))for(let s=0,i=r.length;s<i;++s){const a=r[s],o=ka(e,r,String(s),a);o===void 0?delete r[s]:o!==a&&(r[s]=o)}else if(r instanceof Map)for(const s of Array.from(r.keys())){const i=r.get(s),a=ka(e,r,s,i);a===void 0?r.delete(s):a!==i&&r.set(s,a)}else if(r instanceof Set)for(const s of Array.from(r)){const i=ka(e,r,s,s);i===void 0?r.delete(s):i!==s&&(r.delete(s),r.add(i))}else for(const[s,i]of Object.entries(r)){const a=ka(e,r,s,i);a===void 0?delete r[s]:a!==i&&(r[s]=a)}return e.call(t,n,r)}function Is(e,t,n){if(Array.isArray(e))return e.map((r,s)=>Is(r,String(s),n));if(e&&typeof e.toJSON=="function"){if(!n||!Xm(e))return e.toJSON(t,n);const r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=i=>{r.res=i,delete n.onCreate};const s=e.toJSON(t,n);return n.onCreate&&n.onCreate(s),s}return typeof e=="bigint"&&!n?.keep?Number(e):e}class ef{constructor(t){Object.defineProperty(this,Ms,{value:t})}clone(){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(t.range=this.range.slice()),t}toJS(t,{mapAsMap:n,maxAliasCount:r,onAnchor:s,reviver:i}={}){if(!_a(t))throw new TypeError("A document argument is required");const a={anchors:new Map,doc:t,keep:!0,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof r=="number"?r:100},o=Is(this,"",a);if(typeof s=="function")for(const{count:u,res:l}of a.anchors.values())s(l,u);return typeof i=="function"?ka(i,{"":o},"",o):o}}class tf extends ef{constructor(t){super(Kc),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t,n){let r;n?.aliasResolveCache?r=n.aliasResolveCache:(r=[],Br(t,{Node:(i,a)=>{(Us(a)||Xm(a))&&r.push(a)}}),n&&(n.aliasResolveCache=r));let s;for(const i of r){if(i===this)break;i.anchor===this.source&&(s=i)}return s}toJSON(t,n){if(!n)return{source:this.source};const{anchors:r,doc:s,maxAliasCount:i}=n,a=this.resolve(s,n);if(!a){const u=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(u)}let o=r.get(a);if(o||(Is(a,null,n),o=r.get(a)),!o||o.res===void 0){const u="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(u)}if(i>=0&&(o.count+=1,o.aliasCount===0&&(o.aliasCount=Su(s,a,r)),o.count*o.aliasCount>i)){const u="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(u)}return o.res}toString(t,n,r){const s=`*${this.source}`;if(t){if(Qm(this.source),t.options.verifyAliasOrder&&!t.anchors.has(this.source)){const i=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(i)}if(t.implicitKey)return`${s} `}return s}}function Su(e,t,n){if(Us(t)){const r=t.resolve(e),s=n&&r&&n.get(r);return s?s.count*s.aliasCount:0}else if(jr(t)){let r=0;for(const s of t.items){const i=Su(e,s,n);i>r&&(r=i)}return r}else if(vr(t)){const r=Su(e,t.key,n),s=Su(e,t.value,n);return Math.max(r,s)}return 1}const eg=e=>!e||typeof e!="function"&&typeof e!="object";class Qn extends ef{constructor(t){super(ri),this.value=t}toJSON(t,n){return n?.keep?this.value:Is(this.value,t,n)}toString(){return String(this.value)}}Qn.BLOCK_FOLDED="BLOCK_FOLDED",Qn.BLOCK_LITERAL="BLOCK_LITERAL",Qn.PLAIN="PLAIN",Qn.QUOTE_DOUBLE="QUOTE_DOUBLE",Qn.QUOTE_SINGLE="QUOTE_SINGLE";const Db="tag:yaml.org,2002:";function bb(e,t,n){if(t){const r=n.filter(i=>i.tag===t),s=r.find(i=>!i.format)??r[0];if(!s)throw new Error(`Tag ${t} not found`);return s}return n.find(r=>r.identify?.(e)&&!r.format)}function _o(e,t,n){if(_a(e)&&(e=e.contents),yr(e))return e;if(vr(e)){const c=n.schema[_i].createNode?.(n.schema,null,n);return c.items.push(e),c}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<"u"&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:r,onAnchor:s,onTagObj:i,schema:a,sourceObjects:o}=n;let u;if(r&&e&&typeof e=="object"){if(u=o.get(e),u)return u.anchor??(u.anchor=s(e)),new tf(u.anchor);u={anchor:null,node:null},o.set(e,u)}t?.startsWith("!!")&&(t=Db+t.slice(2));let l=bb(e,t,a.tags);if(!l){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){const c=new Qn(e);return u&&(u.node=c),c}l=e instanceof Map?a[_i]:Symbol.iterator in Object(e)?a[Ta]:a[_i]}i&&(i(l),delete n.onTagObj);const b=l?.createNode?l.createNode(n.schema,e,n):typeof l?.nodeClass?.from=="function"?l.nodeClass.from(n.schema,e,n):new Qn(e);return t?b.tag=t:l.default||(b.tag=l.tag),u&&(u.node=b),b}function Fu(e,t,n){let r=n;for(let s=t.length-1;s>=0;--s){const i=t[s];if(typeof i=="number"&&Number.isInteger(i)&&i>=0){const a=[];a[i]=r,r=a}else r=new Map([[i,r]])}return _o(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const Lo=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done;class tg extends ef{constructor(t,n){super(t),Object.defineProperty(this,"schema",{value:n,configurable:!0,enumerable:!1,writable:!0})}clone(t){const n=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return t&&(n.schema=t),n.items=n.items.map(r=>yr(r)||vr(r)?r.clone(t):r),this.range&&(n.range=this.range.slice()),n}addIn(t,n){if(Lo(t))this.add(n);else{const[r,...s]=t,i=this.get(r,!0);if(jr(i))i.addIn(s,n);else if(i===void 0&&this.schema)this.set(r,Fu(this.schema,s,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${s}`)}}deleteIn(t){const[n,...r]=t;if(r.length===0)return this.delete(n);const s=this.get(n,!0);if(jr(s))return s.deleteIn(r);throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}getIn(t,n){const[r,...s]=t,i=this.get(r,!0);return s.length===0?!n&&Wn(i)?i.value:i:jr(i)?i.getIn(s,n):void 0}hasAllNullValues(t){return this.items.every(n=>{if(!vr(n))return!1;const r=n.value;return r==null||t&&Wn(r)&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag})}hasIn(t){const[n,...r]=t;if(r.length===0)return this.has(n);const s=this.get(n,!0);return jr(s)?s.hasIn(r):!1}setIn(t,n){const[r,...s]=t;if(s.length===0)this.set(r,n);else{const i=this.get(r,!0);if(jr(i))i.setIn(s,n);else if(i===void 0&&this.schema)this.set(r,Fu(this.schema,s,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${s}`)}}}const vb=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function mi(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const Wi=(e,t,n)=>e.endsWith(`
36
+ `)?mi(n,t):n.includes(`
37
+ `)?`
38
+ `+mi(n,t):(e.endsWith(" ")?"":" ")+n,ng="flow",nf="block",Nu="quoted";function Tu(e,t,n="flow",{indentAtStart:r,lineWidth:s=80,minContentWidth:i=20,onFold:a,onOverflow:o}={}){if(!s||s<0)return e;s<i&&(i=0);const u=Math.max(1+i,1+s-t.length);if(e.length<=u)return e;const l=[],b={};let c=s-t.length;typeof r=="number"&&(r>s-Math.max(2,i)?l.push(0):c=s-r);let T,K,ne=!1,O=-1,k=-1,me=-1;n===nf&&(O=rg(e,O,t.length),O!==-1&&(c=O+u));for(let _e;_e=e[O+=1];){if(n===Nu&&_e==="\\"){switch(k=O,e[O+1]){case"x":O+=3;break;case"u":O+=5;break;case"U":O+=9;break;default:O+=1}me=O}if(_e===`
39
+ `)n===nf&&(O=rg(e,O,t.length)),c=O+t.length+u,T=void 0;else{if(_e===" "&&K&&K!==" "&&K!==`
40
+ `&&K!==" "){const Ye=e[O+1];Ye&&Ye!==" "&&Ye!==`
41
+ `&&Ye!==" "&&(T=O)}if(O>=c)if(T)l.push(T),c=T+u,T=void 0;else if(n===Nu){for(;K===" "||K===" ";)K=_e,_e=e[O+=1],ne=!0;const Ye=O>me+1?O-2:k-1;if(b[Ye])return e;l.push(Ye),b[Ye]=!0,c=Ye+u,T=void 0}else ne=!0}K=_e}if(ne&&o&&o(),l.length===0)return e;a&&a();let Se=e.slice(0,l[0]);for(let _e=0;_e<l.length;++_e){const Ye=l[_e],ve=l[_e+1]||e.length;Ye===0?Se=`
42
+ ${t}${e.slice(0,ve)}`:(n===Nu&&b[Ye]&&(Se+=`${e[Ye]}\\`),Se+=`
43
+ ${t}${e.slice(Ye+1,ve)}`)}return Se}function rg(e,t,n){let r=t,s=t+1,i=e[s];for(;i===" "||i===" ";)if(t<s+n)i=e[++t];else{do i=e[++t];while(i&&i!==`
44
+ `);r=t,s=t+1,i=e[s]}return r}const _u=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),Lu=e=>/^(%|---|\.\.\.)/m.test(e);function Eb(e,t,n){if(!t||t<0)return!1;const r=t-n,s=e.length;if(s<=r)return!1;for(let i=0,a=0;i<s;++i)if(e[i]===`
45
+ `){if(i-a>r)return!0;if(a=i+1,s-a<=r)return!1}return!0}function ko(e,t){const n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;const{implicitKey:r}=t,s=t.options.doubleQuotedMinMultiLineLength,i=t.indent||(Lu(e)?" ":"");let a="",o=0;for(let u=0,l=n[u];l;l=n[++u])if(l===" "&&n[u+1]==="\\"&&n[u+2]==="n"&&(a+=n.slice(o,u)+"\\ ",u+=1,o=u,l="\\"),l==="\\")switch(n[u+1]){case"u":{a+=n.slice(o,u);const b=n.substr(u+2,4);switch(b){case"0000":a+="\\0";break;case"0007":a+="\\a";break;case"000b":a+="\\v";break;case"001b":a+="\\e";break;case"0085":a+="\\N";break;case"00a0":a+="\\_";break;case"2028":a+="\\L";break;case"2029":a+="\\P";break;default:b.substr(0,2)==="00"?a+="\\x"+b.substr(2):a+=n.substr(u,6)}u+=5,o=u+1}break;case"n":if(r||n[u+2]==='"'||n.length<s)u+=1;else{for(a+=n.slice(o,u)+`
46
+
47
+ `;n[u+2]==="\\"&&n[u+3]==="n"&&n[u+4]!=='"';)a+=`
48
+ `,u+=2;a+=i,n[u+2]===" "&&(a+="\\"),u+=1,o=u+1}break;default:u+=1}return a=o?a+n.slice(o):n,r?a:Tu(a,i,Nu,_u(t,!1))}function rf(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
49
+ `)||/[ \t]\n|\n[ \t]/.test(e))return ko(e,t);const n=t.indent||(Lu(e)?" ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
50
+ ${n}`)+"'";return t.implicitKey?r:Tu(r,n,ng,_u(t,!1))}function Pa(e,t){const{singleQuote:n}=t.options;let r;if(n===!1)r=ko;else{const s=e.includes('"'),i=e.includes("'");s&&!i?r=rf:i&&!s?r=ko:r=n?rf:ko}return r(e,t)}let sf;try{sf=new RegExp(`(^|(?<!
51
+ ))
52
+ +(?!
53
+ |$)`,"g")}catch{sf=/\n+(?!\n|$)/g}function ku({comment:e,type:t,value:n},r,s,i){const{blockQuote:a,commentString:o,lineWidth:u}=r.options;if(!a||/\n[\t ]+$/.test(n)||/^\s*$/.test(n))return Pa(n,r);const l=r.indent||(r.forceBlockIndent||Lu(n)?" ":""),b=a==="literal"?!0:a==="folded"||t===Qn.BLOCK_FOLDED?!1:t===Qn.BLOCK_LITERAL?!0:!Eb(n,u,l.length);if(!n)return b?`|
54
+ `:`>
55
+ `;let c,T;for(T=n.length;T>0;--T){const ve=n[T-1];if(ve!==`
56
+ `&&ve!==" "&&ve!==" ")break}let K=n.substring(T);const ne=K.indexOf(`
57
+ `);ne===-1?c="-":n===K||ne!==K.length-1?(c="+",i&&i()):c="",K&&(n=n.slice(0,-K.length),K[K.length-1]===`
58
+ `&&(K=K.slice(0,-1)),K=K.replace(sf,`$&${l}`));let O=!1,k,me=-1;for(k=0;k<n.length;++k){const ve=n[k];if(ve===" ")O=!0;else if(ve===`
59
+ `)me=k;else break}let Se=n.substring(0,me<k?me+1:k);Se&&(n=n.substring(Se.length),Se=Se.replace(/\n+/g,`$&${l}`));let Ye=(O?l?"2":"1":"")+c;if(e&&(Ye+=" "+o(e.replace(/ ?[\r\n]+/g," ")),s&&s()),!b){const ve=n.replace(/\n+/g,`
60
+ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${l}`);let Pe=!1;const Fe=_u(r,!0);a!=="folded"&&t!==Qn.BLOCK_FOLDED&&(Fe.onOverflow=()=>{Pe=!0});const Be=Tu(`${Se}${ve}${K}`,l,nf,Fe);if(!Pe)return`>${Ye}
61
+ ${l}${Be}`}return n=n.replace(/\n+/g,`$&${l}`),`|${Ye}
62
+ ${l}${Se}${n}${K}`}function Ab(e,t,n,r){const{type:s,value:i}=e,{actualString:a,implicitKey:o,indent:u,indentStep:l,inFlow:b}=t;if(o&&i.includes(`
63
+ `)||b&&/[[\]{},]/.test(i))return Pa(i,t);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(i))return o||b||!i.includes(`
64
+ `)?Pa(i,t):ku(e,t,n,r);if(!o&&!b&&s!==Qn.PLAIN&&i.includes(`
65
+ `))return ku(e,t,n,r);if(Lu(i)){if(u==="")return t.forceBlockIndent=!0,ku(e,t,n,r);if(o&&u===l)return Pa(i,t)}const c=i.replace(/\n+/g,`$&
66
+ ${u}`);if(a){const T=O=>O.default&&O.tag!=="tag:yaml.org,2002:str"&&O.test?.test(c),{compat:K,tags:ne}=t.doc.schema;if(ne.some(T)||K?.some(T))return Pa(i,t)}return o?c:Tu(c,u,ng,_u(t,!1))}function af(e,t,n,r){const{implicitKey:s,inFlow:i}=t,a=typeof e.value=="string"?e:Object.assign({},e,{value:String(e.value)});let{type:o}=e;o!==Qn.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(a.value)&&(o=Qn.QUOTE_DOUBLE);const u=b=>{switch(b){case Qn.BLOCK_FOLDED:case Qn.BLOCK_LITERAL:return s||i?Pa(a.value,t):ku(a,t,n,r);case Qn.QUOTE_DOUBLE:return ko(a.value,t);case Qn.QUOTE_SINGLE:return rf(a.value,t);case Qn.PLAIN:return Ab(a,t,n,r);default:return null}};let l=u(o);if(l===null){const{defaultKeyType:b,defaultStringType:c}=t.options,T=s&&b||c;if(l=u(T),l===null)throw new Error(`Unsupported default string type ${T}`)}return l}function sg(e,t){const n=Object.assign({blockQuote:!0,commentString:vb,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t);let r;switch(n.collectionStyle){case"block":r=!1;break;case"flow":r=!0;break;default:r=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?" ":"",indent:"",indentStep:typeof n.indent=="number"?" ".repeat(n.indent):" ",inFlow:r,options:n}}function wb(e,t){if(t.tag){const s=e.filter(i=>i.tag===t.tag);if(s.length>0)return s.find(i=>i.format===t.format)??s[0]}let n,r;if(Wn(t)){r=t.value;let s=e.filter(i=>i.identify?.(r));if(s.length>1){const i=s.filter(a=>a.test);i.length>0&&(s=i)}n=s.find(i=>i.format===t.format)??s.find(i=>!i.format)}else r=t,n=e.find(s=>s.nodeClass&&r instanceof s.nodeClass);if(!n){const s=r?.constructor?.name??(r===null?"null":typeof r);throw new Error(`Tag not resolved for ${s} value`)}return n}function xb(e,t,{anchors:n,doc:r}){if(!r.directives)return"";const s=[],i=(Wn(e)||jr(e))&&e.anchor;i&&Qm(i)&&(n.add(i),s.push(`&${i}`));const a=e.tag??(t.default?null:t.tag);return a&&s.push(r.directives.tagString(a)),s.join(" ")}function Ba(e,t,n,r){if(vr(e))return e.toString(t,n,r);if(Us(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let s;const i=yr(e)?e:t.doc.createNode(e,{onTagObj:u=>s=u});s??(s=wb(t.doc.schema.tags,i));const a=xb(i,s,t);a.length>0&&(t.indentAtStart=(t.indentAtStart??0)+a.length+1);const o=typeof s.stringify=="function"?s.stringify(i,t,n,r):Wn(i)?af(i,t,n,r):i.toString(t,n,r);return a?Wn(i)||o[0]==="{"||o[0]==="["?`${a} ${o}`:`${a}
67
+ ${t.indent}${o}`:o}function Cb({key:e,value:t},n,r,s){const{allNullValues:i,doc:a,indent:o,indentStep:u,options:{commentString:l,indentSeq:b,simpleKeys:c}}=n;let T=yr(e)&&e.comment||null;if(c){if(T)throw new Error("With simple keys, key nodes cannot have comments");if(jr(e)||!yr(e)&&typeof e=="object"){const Fe="With simple keys, collection cannot be used as a key value";throw new Error(Fe)}}let K=!c&&(!e||T&&t==null&&!n.inFlow||jr(e)||(Wn(e)?e.type===Qn.BLOCK_FOLDED||e.type===Qn.BLOCK_LITERAL:typeof e=="object"));n=Object.assign({},n,{allNullValues:!1,implicitKey:!K&&(c||!i),indent:o+u});let ne=!1,O=!1,k=Ba(e,n,()=>ne=!0,()=>O=!0);if(!K&&!n.inFlow&&k.length>1024){if(c)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");K=!0}if(n.inFlow){if(i||t==null)return ne&&r&&r(),k===""?"?":K?`? ${k}`:k}else if(i&&!c||t==null&&K)return k=`? ${k}`,T&&!ne?k+=Wi(k,n.indent,l(T)):O&&s&&s(),k;ne&&(T=null),K?(T&&(k+=Wi(k,n.indent,l(T))),k=`? ${k}
68
+ ${o}:`):(k=`${k}:`,T&&(k+=Wi(k,n.indent,l(T))));let me,Se,_e;yr(t)?(me=!!t.spaceBefore,Se=t.commentBefore,_e=t.comment):(me=!1,Se=null,_e=null,t&&typeof t=="object"&&(t=a.createNode(t))),n.implicitKey=!1,!K&&!T&&Wn(t)&&(n.indentAtStart=k.length+1),O=!1,!b&&u.length>=2&&!n.inFlow&&!K&&Vr(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let Ye=!1;const ve=Ba(t,n,()=>Ye=!0,()=>O=!0);let Pe=" ";if(T||me||Se){if(Pe=me?`
69
+ `:"",Se){const Fe=l(Se);Pe+=`
70
+ ${mi(Fe,n.indent)}`}ve===""&&!n.inFlow?Pe===`
71
+ `&&(Pe=`
72
+
73
+ `):Pe+=`
74
+ ${n.indent}`}else if(!K&&jr(t)){const Fe=ve[0],Be=ve.indexOf(`
75
+ `),xe=Be!==-1,Je=n.inFlow??t.flow??t.items.length===0;if(xe||!Je){let ze=!1;if(xe&&(Fe==="&"||Fe==="!")){let de=ve.indexOf(" ");Fe==="&"&&de!==-1&&de<Be&&ve[de+1]==="!"&&(de=ve.indexOf(" ",de+1)),(de===-1||Be<de)&&(ze=!0)}ze||(Pe=`
76
+ ${n.indent}`)}}else(ve===""||ve[0]===`
77
+ `)&&(Pe="");return k+=Pe+ve,n.inFlow?Ye&&r&&r():_e&&!Ye?k+=Wi(k,n.indent,l(_e)):O&&s&&s(),k}function ig(e,t){(e==="debug"||e==="warn")&&console.warn(t)}const Pu="<<",gi={identify:e=>e===Pu||typeof e=="symbol"&&e.description===Pu,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new Qn(Symbol(Pu)),{addToJSMap:ag}),stringify:()=>Pu},Sb=(e,t)=>(gi.identify(t)||Wn(t)&&(!t.type||t.type===Qn.PLAIN)&&gi.identify(t.value))&&e?.doc.schema.tags.some(n=>n.tag===gi.tag&&n.default);function ag(e,t,n){if(n=e&&Us(n)?n.resolve(e.doc):n,Vr(n))for(const r of n.items)of(e,t,r);else if(Array.isArray(n))for(const r of n)of(e,t,r);else of(e,t,n)}function of(e,t,n){const r=e&&Us(n)?n.resolve(e.doc):n;if(!$r(r))throw new Error("Merge sources must be maps or map aliases");const s=r.toJSON(null,e,Map);for(const[i,a]of s)t instanceof Map?t.has(i)||t.set(i,a):t instanceof Set?t.add(i):Object.prototype.hasOwnProperty.call(t,i)||Object.defineProperty(t,i,{value:a,writable:!0,enumerable:!0,configurable:!0});return t}function og(e,t,{key:n,value:r}){if(yr(n)&&n.addToJSMap)n.addToJSMap(e,t,r);else if(Sb(e,n))ag(e,t,r);else{const s=Is(n,"",e);if(t instanceof Map)t.set(s,Is(r,s,e));else if(t instanceof Set)t.add(s);else{const i=Fb(n,s,e),a=Is(r,i,e);i in t?Object.defineProperty(t,i,{value:a,writable:!0,enumerable:!0,configurable:!0}):t[i]=a}}return t}function Fb(e,t,n){if(t===null)return"";if(typeof t!="object")return String(t);if(yr(e)&&n?.doc){const r=sg(n.doc,{});r.anchors=new Set;for(const i of n.anchors.keys())r.anchors.add(i.anchor);r.inFlow=!0,r.inStringifyKey=!0;const s=e.toString(r);if(!n.mapKeyWarned){let i=JSON.stringify(s);i.length>40&&(i=i.substring(0,36)+'..."'),ig(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${i}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return s}return JSON.stringify(t)}function uf(e,t,n){const r=_o(e,void 0,n),s=_o(t,void 0,n);return new ls(r,s)}class ls{constructor(t,n=null){Object.defineProperty(this,Ms,{value:zm}),this.key=t,this.value=n}clone(t){let{key:n,value:r}=this;return yr(n)&&(n=n.clone(t)),yr(r)&&(r=r.clone(t)),new ls(n,r)}toJSON(t,n){const r=n?.mapAsMap?new Map:{};return og(n,r,this)}toString(t,n,r){return t?.doc?Cb(this,t,n,r):JSON.stringify(this)}}function ug(e,t,n){return(t.inFlow??e.flow?Tb:Nb)(e,t,n)}function Nb({comment:e,items:t},n,{blockItemPrefix:r,flowChars:s,itemIndent:i,onChompKeep:a,onComment:o}){const{indent:u,options:{commentString:l}}=n,b=Object.assign({},n,{indent:i,type:null});let c=!1;const T=[];for(let ne=0;ne<t.length;++ne){const O=t[ne];let k=null;if(yr(O))!c&&O.spaceBefore&&T.push(""),Bu(n,T,O.commentBefore,c),O.comment&&(k=O.comment);else if(vr(O)){const Se=yr(O.key)?O.key:null;Se&&(!c&&Se.spaceBefore&&T.push(""),Bu(n,T,Se.commentBefore,c))}c=!1;let me=Ba(O,b,()=>k=null,()=>c=!0);k&&(me+=Wi(me,i,l(k))),c&&k&&(c=!1),T.push(r+me)}let K;if(T.length===0)K=s.start+s.end;else{K=T[0];for(let ne=1;ne<T.length;++ne){const O=T[ne];K+=O?`
78
+ ${u}${O}`:`
79
+ `}}return e?(K+=`
80
+ `+mi(l(e),u),o&&o()):c&&a&&a(),K}function Tb({items:e},t,{flowChars:n,itemIndent:r}){const{indent:s,indentStep:i,flowCollectionPadding:a,options:{commentString:o}}=t;r+=i;const u=Object.assign({},t,{indent:r,inFlow:!0,type:null});let l=!1,b=0;const c=[];for(let ne=0;ne<e.length;++ne){const O=e[ne];let k=null;if(yr(O))O.spaceBefore&&c.push(""),Bu(t,c,O.commentBefore,!1),O.comment&&(k=O.comment);else if(vr(O)){const Se=yr(O.key)?O.key:null;Se&&(Se.spaceBefore&&c.push(""),Bu(t,c,Se.commentBefore,!1),Se.comment&&(l=!0));const _e=yr(O.value)?O.value:null;_e?(_e.comment&&(k=_e.comment),_e.commentBefore&&(l=!0)):O.value==null&&Se?.comment&&(k=Se.comment)}k&&(l=!0);let me=Ba(O,u,()=>k=null);ne<e.length-1&&(me+=","),k&&(me+=Wi(me,r,o(k))),!l&&(c.length>b||me.includes(`
81
+ `))&&(l=!0),c.push(me),b=c.length}const{start:T,end:K}=n;if(c.length===0)return T+K;if(!l){const ne=c.reduce((O,k)=>O+k.length+2,2);l=t.options.lineWidth>0&&ne>t.options.lineWidth}if(l){let ne=T;for(const O of c)ne+=O?`
82
+ ${i}${s}${O}`:`
83
+ `;return`${ne}
84
+ ${s}${K}`}else return`${T}${a}${c.join(" ")}${a}${K}`}function Bu({indent:e,options:{commentString:t}},n,r,s){if(r&&s&&(r=r.replace(/^\n+/,"")),r){const i=mi(t(r),e);n.push(i.trimStart())}}function Gi(e,t){const n=Wn(t)?t.value:t;for(const r of e)if(vr(r)&&(r.key===t||r.key===n||Wn(r.key)&&r.key.value===n))return r}class Os extends tg{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(_i,t),this.items=[]}static from(t,n,r){const{keepUndefined:s,replacer:i}=r,a=new this(t),o=(u,l)=>{if(typeof i=="function")l=i.call(n,u,l);else if(Array.isArray(i)&&!i.includes(u))return;(l!==void 0||s)&&a.items.push(uf(u,l,r))};if(n instanceof Map)for(const[u,l]of n)o(u,l);else if(n&&typeof n=="object")for(const u of Object.keys(n))o(u,n[u]);return typeof t.sortMapEntries=="function"&&a.items.sort(t.sortMapEntries),a}add(t,n){let r;vr(t)?r=t:!t||typeof t!="object"||!("key"in t)?r=new ls(t,t?.value):r=new ls(t.key,t.value);const s=Gi(this.items,r.key),i=this.schema?.sortMapEntries;if(s){if(!n)throw new Error(`Key ${r.key} already set`);Wn(s.value)&&eg(r.value)?s.value.value=r.value:s.value=r.value}else if(i){const a=this.items.findIndex(o=>i(r,o)<0);a===-1?this.items.push(r):this.items.splice(a,0,r)}else this.items.push(r)}delete(t){const n=Gi(this.items,t);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(t,n){const s=Gi(this.items,t)?.value;return(!n&&Wn(s)?s.value:s)??void 0}has(t){return!!Gi(this.items,t)}set(t,n){this.add(new ls(t,n),!0)}toJSON(t,n,r){const s=r?new r:n?.mapAsMap?new Map:{};n?.onCreate&&n.onCreate(s);for(const i of this.items)og(n,s,i);return s}toString(t,n,r){if(!t)return JSON.stringify(this);for(const s of this.items)if(!vr(s))throw new Error(`Map items must all be pairs; found ${JSON.stringify(s)} instead`);return!t.allNullValues&&this.hasAllNullValues(!1)&&(t=Object.assign({},t,{allNullValues:!0})),ug(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:r,onComment:n})}}const Ma={collection:"map",default:!0,nodeClass:Os,tag:"tag:yaml.org,2002:map",resolve(e,t){return $r(e)||t("Expected a mapping for this tag"),e},createNode:(e,t,n)=>Os.from(e,t,n)};class Ji extends tg{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super(Ta,t),this.items=[]}add(t){this.items.push(t)}delete(t){const n=Mu(t);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(t,n){const r=Mu(t);if(typeof r!="number")return;const s=this.items[r];return!n&&Wn(s)?s.value:s}has(t){const n=Mu(t);return typeof n=="number"&&n<this.items.length}set(t,n){const r=Mu(t);if(typeof r!="number")throw new Error(`Expected a valid index, not ${t}.`);const s=this.items[r];Wn(s)&&eg(n)?s.value=n:this.items[r]=n}toJSON(t,n){const r=[];n?.onCreate&&n.onCreate(r);let s=0;for(const i of this.items)r.push(Is(i,String(s++),n));return r}toString(t,n,r){return t?ug(this,t,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(t.indent||"")+" ",onChompKeep:r,onComment:n}):JSON.stringify(this)}static from(t,n,r){const{replacer:s}=r,i=new this(t);if(n&&Symbol.iterator in Object(n)){let a=0;for(let o of n){if(typeof s=="function"){const u=n instanceof Set?o:String(a++);o=s.call(n,u,o)}i.items.push(_o(o,void 0,r))}}return i}}function Mu(e){let t=Wn(e)?e.value:e;return t&&typeof t=="string"&&(t=Number(t)),typeof t=="number"&&Number.isInteger(t)&&t>=0?t:null}const Ia={collection:"seq",default:!0,nodeClass:Ji,tag:"tag:yaml.org,2002:seq",resolve(e,t){return Vr(e)||t("Expected a sequence for this tag"),e},createNode:(e,t,n)=>Ji.from(e,t,n)},Iu={identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,n,r){return t=Object.assign({actualString:!0},t),af(e,t,n,r)}},Ou={identify:e=>e==null,createNode:()=>new Qn(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new Qn(null),stringify:({source:e},t)=>typeof e=="string"&&Ou.test.test(e)?e:t.options.nullStr},lf={identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new Qn(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},n){if(e&&lf.test.test(e)){const r=e[0]==="t"||e[0]==="T";if(t===r)return e}return t?n.options.trueStr:n.options.falseStr}};function Ws({format:e,minFractionDigits:t,tag:n,value:r}){if(typeof r=="bigint")return String(r);const s=typeof r=="number"?r:Number(r);if(!isFinite(s))return isNaN(s)?".nan":s<0?"-.inf":".inf";let i=JSON.stringify(r);if(!e&&t&&(!n||n==="tag:yaml.org,2002:float")&&/^\d/.test(i)){let a=i.indexOf(".");a<0&&(a=i.length,i+=".");let o=t-(i.length-a-1);for(;o-- >0;)i+="0"}return i}const lg={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Ws},cg={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():Ws(e)}},fg={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new Qn(parseFloat(e)),n=e.indexOf(".");return n!==-1&&e[e.length-1]==="0"&&(t.minFractionDigits=e.length-n-1),t},stringify:Ws},Ru=e=>typeof e=="bigint"||Number.isInteger(e),cf=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function pg(e,t,n){const{value:r}=e;return Ru(r)&&r>=0?n+r.toString(t):Ws(e)}const dg={identify:e=>Ru(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>cf(e,2,8,n),stringify:e=>pg(e,8,"0o")},hg={identify:Ru,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>cf(e,0,10,n),stringify:Ws},mg={identify:e=>Ru(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>cf(e,2,16,n),stringify:e=>pg(e,16,"0x")},_b=[Ma,Ia,Iu,Ou,lf,dg,hg,mg,lg,cg,fg];function gg(e){return typeof e=="bigint"||Number.isInteger(e)}const ju=({value:e})=>JSON.stringify(e),Lb=[{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:ju},{identify:e=>e==null,createNode:()=>new Qn(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:ju},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:e=>e==="true",stringify:ju},{identify:gg,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>gg(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:ju}],kb={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},Pb=[Ma,Ia].concat(Lb,kb),ff={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof atob=="function"){const n=atob(e.replace(/[\n\r]/g,"")),r=new Uint8Array(n.length);for(let s=0;s<n.length;++s)r[s]=n.charCodeAt(s);return r}else return t("This environment does not support reading binary tags; either Buffer or atob is required"),e},stringify({comment:e,type:t,value:n},r,s,i){if(!n)return"";const a=n;let o;if(typeof btoa=="function"){let u="";for(let l=0;l<a.length;++l)u+=String.fromCharCode(a[l]);o=btoa(u)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(t??(t=Qn.BLOCK_LITERAL),t!==Qn.QUOTE_DOUBLE){const u=Math.max(r.options.lineWidth-r.indent.length,r.options.minContentWidth),l=Math.ceil(o.length/u),b=new Array(l);for(let c=0,T=0;c<l;++c,T+=u)b[c]=o.substr(T,u);o=b.join(t===Qn.BLOCK_LITERAL?`
85
+ `:" ")}return af({comment:e,type:t,value:o},r,s,i)}};function yg(e,t){if(Vr(e))for(let n=0;n<e.items.length;++n){let r=e.items[n];if(!vr(r)){if($r(r)){r.items.length>1&&t("Each pair must have its own sequence indicator");const s=r.items[0]||new ls(new Qn(null));if(r.commentBefore&&(s.key.commentBefore=s.key.commentBefore?`${r.commentBefore}
86
+ ${s.key.commentBefore}`:r.commentBefore),r.comment){const i=s.value??s.key;i.comment=i.comment?`${r.comment}
87
+ ${i.comment}`:r.comment}r=s}e.items[n]=vr(r)?r:new ls(r)}}else t("Expected a sequence for this tag");return e}function Dg(e,t,n){const{replacer:r}=n,s=new Ji(e);s.tag="tag:yaml.org,2002:pairs";let i=0;if(t&&Symbol.iterator in Object(t))for(let a of t){typeof r=="function"&&(a=r.call(t,String(i++),a));let o,u;if(Array.isArray(a))if(a.length===2)o=a[0],u=a[1];else throw new TypeError(`Expected [key, value] tuple: ${a}`);else if(a&&a instanceof Object){const l=Object.keys(a);if(l.length===1)o=l[0],u=a[o];else throw new TypeError(`Expected tuple with one key, not ${l.length} keys`)}else o=a;s.items.push(uf(o,u,n))}return s}const pf={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:yg,createNode:Dg};class Oa extends Ji{constructor(){super(),this.add=Os.prototype.add.bind(this),this.delete=Os.prototype.delete.bind(this),this.get=Os.prototype.get.bind(this),this.has=Os.prototype.has.bind(this),this.set=Os.prototype.set.bind(this),this.tag=Oa.tag}toJSON(t,n){if(!n)return super.toJSON(t);const r=new Map;n?.onCreate&&n.onCreate(r);for(const s of this.items){let i,a;if(vr(s)?(i=Is(s.key,"",n),a=Is(s.value,i,n)):i=Is(s,"",n),r.has(i))throw new Error("Ordered maps must not include duplicate keys");r.set(i,a)}return r}static from(t,n,r){const s=Dg(t,n,r),i=new this;return i.items=s.items,i}}Oa.tag="tag:yaml.org,2002:omap";const df={collection:"seq",identify:e=>e instanceof Map,nodeClass:Oa,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=yg(e,t),r=[];for(const{key:s}of n.items)Wn(s)&&(r.includes(s.value)?t(`Ordered maps must not include duplicate keys: ${s.value}`):r.push(s.value));return Object.assign(new Oa,n)},createNode:(e,t,n)=>Oa.from(e,t,n)};function bg({value:e,source:t},n){return t&&(e?vg:Eg).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}const vg={identify:e=>e===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new Qn(!0),stringify:bg},Eg={identify:e=>e===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new Qn(!1),stringify:bg},Bb={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Ws},Mb={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():Ws(e)}},Ib={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new Qn(parseFloat(e.replace(/_/g,""))),n=e.indexOf(".");if(n!==-1){const r=e.substring(n+1).replace(/_/g,"");r[r.length-1]==="0"&&(t.minFractionDigits=r.length)}return t},stringify:Ws},Po=e=>typeof e=="bigint"||Number.isInteger(e);function $u(e,t,n,{intAsBigInt:r}){const s=e[0];if((s==="-"||s==="+")&&(t+=1),e=e.substring(t).replace(/_/g,""),r){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}const a=BigInt(e);return s==="-"?BigInt(-1)*a:a}const i=parseInt(e,n);return s==="-"?-1*i:i}function hf(e,t,n){const{value:r}=e;if(Po(r)){const s=r.toString(t);return r<0?"-"+n+s.substr(1):n+s}return Ws(e)}const Ob={identify:Po,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>$u(e,2,2,n),stringify:e=>hf(e,2,"0b")},Rb={identify:Po,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>$u(e,1,8,n),stringify:e=>hf(e,8,"0")},jb={identify:Po,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>$u(e,0,10,n),stringify:Ws},$b={identify:Po,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>$u(e,2,16,n),stringify:e=>hf(e,16,"0x")};class Ra extends Os{constructor(t){super(t),this.tag=Ra.tag}add(t){let n;vr(t)?n=t:t&&typeof t=="object"&&"key"in t&&"value"in t&&t.value===null?n=new ls(t.key,null):n=new ls(t,null),Gi(this.items,n.key)||this.items.push(n)}get(t,n){const r=Gi(this.items,t);return!n&&vr(r)?Wn(r.key)?r.key.value:r.key:r}set(t,n){if(typeof n!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof n}`);const r=Gi(this.items,t);r&&!n?this.items.splice(this.items.indexOf(r),1):!r&&n&&this.items.push(new ls(t))}toJSON(t,n){return super.toJSON(t,n,Set)}toString(t,n,r){if(!t)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},t,{allNullValues:!0}),n,r);throw new Error("Set items must all have null values")}static from(t,n,r){const{replacer:s}=r,i=new this(t);if(n&&Symbol.iterator in Object(n))for(let a of n)typeof s=="function"&&(a=s.call(n,a,a)),i.items.push(uf(a,null,r));return i}}Ra.tag="tag:yaml.org,2002:set";const mf={collection:"map",identify:e=>e instanceof Set,nodeClass:Ra,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,n)=>Ra.from(e,t,n),resolve(e,t){if($r(e)){if(e.hasAllNullValues(!0))return Object.assign(new Ra,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};function gf(e,t){const n=e[0],r=n==="-"||n==="+"?e.substring(1):e,s=a=>t?BigInt(a):Number(a),i=r.replace(/_/g,"").split(":").reduce((a,o)=>a*s(60)+s(o),s(0));return n==="-"?s(-1)*i:i}function Ag(e){let{value:t}=e,n=a=>a;if(typeof t=="bigint")n=a=>BigInt(a);else if(isNaN(t)||!isFinite(t))return Ws(e);let r="";t<0&&(r="-",t*=n(-1));const s=n(60),i=[t%s];return t<60?i.unshift(0):(t=(t-i[0])/s,i.unshift(t%s),t>=60&&(t=(t-i[0])/s,i.unshift(t))),r+i.map(a=>String(a).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const wg={identify:e=>typeof e=="bigint"||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:n})=>gf(e,n),stringify:Ag},xg={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>gf(e,!1),stringify:Ag},Vu={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){const t=e.match(Vu.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,n,r,s,i,a,o]=t.map(Number),u=t[7]?Number((t[7]+"00").substr(1,3)):0;let l=Date.UTC(n,r-1,s,i||0,a||0,o||0,u);const b=t[8];if(b&&b!=="Z"){let c=gf(b,!1);Math.abs(c)<30&&(c*=60),l-=6e4*c}return new Date(l)},stringify:({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""},Cg=[Ma,Ia,Iu,Ou,vg,Eg,Ob,Rb,jb,$b,Bb,Mb,Ib,ff,gi,df,pf,mf,wg,xg,Vu],Sg=new Map([["core",_b],["failsafe",[Ma,Ia,Iu]],["json",Pb],["yaml11",Cg],["yaml-1.1",Cg]]),Fg={binary:ff,bool:lf,float:fg,floatExp:cg,floatNaN:lg,floatTime:xg,int:hg,intHex:mg,intOct:dg,intTime:wg,map:Ma,merge:gi,null:Ou,omap:df,pairs:pf,seq:Ia,set:mf,timestamp:Vu},Vb={"tag:yaml.org,2002:binary":ff,"tag:yaml.org,2002:merge":gi,"tag:yaml.org,2002:omap":df,"tag:yaml.org,2002:pairs":pf,"tag:yaml.org,2002:set":mf,"tag:yaml.org,2002:timestamp":Vu};function yf(e,t,n){const r=Sg.get(t);if(r&&!e)return n&&!r.includes(gi)?r.concat(gi):r.slice();let s=r;if(!s)if(Array.isArray(e))s=[];else{const i=Array.from(Sg.keys()).filter(a=>a!=="yaml11").map(a=>JSON.stringify(a)).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${i} or define customTags array`)}if(Array.isArray(e))for(const i of e)s=s.concat(i);else typeof e=="function"&&(s=e(s.slice()));return n&&(s=s.concat(gi)),s.reduce((i,a)=>{const o=typeof a=="string"?Fg[a]:a;if(!o){const u=JSON.stringify(a),l=Object.keys(Fg).map(b=>JSON.stringify(b)).join(", ");throw new Error(`Unknown custom tag ${u}; use one of ${l}`)}return i.includes(o)||i.push(o),i},[])}const qb=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class Df{constructor({compat:t,customTags:n,merge:r,resolveKnownTags:s,schema:i,sortMapEntries:a,toStringDefaults:o}){this.compat=Array.isArray(t)?yf(t,"compat"):t?yf(null,t):null,this.name=typeof i=="string"&&i||"core",this.knownTags=s?Vb:{},this.tags=yf(n,this.name,r),this.toStringOptions=o??null,Object.defineProperty(this,_i,{value:Ma}),Object.defineProperty(this,ri,{value:Iu}),Object.defineProperty(this,Ta,{value:Ia}),this.sortMapEntries=typeof a=="function"?a:a===!0?qb:null}clone(){const t=Object.create(Df.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}}function Ub(e,t){const n=[];let r=t.directives===!0;if(t.directives!==!1&&e.directives){const u=e.directives.toString(e);u?(n.push(u),r=!0):e.directives.docStart&&(r=!0)}r&&n.push("---");const s=sg(e,t),{commentString:i}=s.options;if(e.commentBefore){n.length!==1&&n.unshift("");const u=i(e.commentBefore);n.unshift(mi(u,""))}let a=!1,o=null;if(e.contents){if(yr(e.contents)){if(e.contents.spaceBefore&&r&&n.push(""),e.contents.commentBefore){const b=i(e.contents.commentBefore);n.push(mi(b,""))}s.forceBlockIndent=!!e.comment,o=e.contents.comment}const u=o?void 0:()=>a=!0;let l=Ba(e.contents,s,()=>o=null,u);o&&(l+=Wi(l,"",i(o))),(l[0]==="|"||l[0]===">")&&n[n.length-1]==="---"?n[n.length-1]=`--- ${l}`:n.push(l)}else n.push(Ba(e.contents,s));if(e.directives?.docEnd)if(e.comment){const u=i(e.comment);u.includes(`
88
+ `)?(n.push("..."),n.push(mi(u,""))):n.push(`... ${u}`)}else n.push("...");else{let u=e.comment;u&&a&&(u=u.replace(/^\n+/,"")),u&&((!a||o)&&n[n.length-1]!==""&&n.push(""),n.push(mi(i(u),"")))}return n.join(`
89
+ `)+`
90
+ `}class Bo{constructor(t,n,r){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Ms,{value:Zc});let s=null;typeof n=="function"||Array.isArray(n)?s=n:r===void 0&&n&&(r=n,n=void 0);const i=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},r);this.options=i;let{version:a}=i;r?._directives?(this.directives=r._directives.atDocument(),this.directives.yaml.explicit&&(a=this.directives.yaml.version)):this.directives=new us({version:a}),this.setSchema(a,r),this.contents=t===void 0?null:this.createNode(t,s,r)}clone(){const t=Object.create(Bo.prototype,{[Ms]:{value:Zc}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=yr(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){ja(this.contents)&&this.contents.add(t)}addIn(t,n){ja(this.contents)&&this.contents.addIn(t,n)}createAlias(t,n){if(!t.anchor){const r=Km(this);t.anchor=!n||r.has(n)?Zm(n||"a",r):n}return new tf(t.anchor)}createNode(t,n,r){let s;if(typeof n=="function")t=n.call({"":t},"",t),s=n;else if(Array.isArray(n)){const k=Se=>typeof Se=="number"||Se instanceof String||Se instanceof Number,me=n.filter(k).map(String);me.length>0&&(n=n.concat(me)),s=n}else r===void 0&&n&&(r=n,n=void 0);const{aliasDuplicateObjects:i,anchorPrefix:a,flow:o,keepUndefined:u,onTagObj:l,tag:b}=r??{},{onAnchor:c,setAnchors:T,sourceObjects:K}=yb(this,a||"a"),ne={aliasDuplicateObjects:i??!0,keepUndefined:u??!1,onAnchor:c,onTagObj:l,replacer:s,schema:this.schema,sourceObjects:K},O=_o(t,b,ne);return o&&jr(O)&&(O.flow=!0),T(),O}createPair(t,n,r={}){const s=this.createNode(t,null,r),i=this.createNode(n,null,r);return new ls(s,i)}delete(t){return ja(this.contents)?this.contents.delete(t):!1}deleteIn(t){return Lo(t)?this.contents==null?!1:(this.contents=null,!0):ja(this.contents)?this.contents.deleteIn(t):!1}get(t,n){return jr(this.contents)?this.contents.get(t,n):void 0}getIn(t,n){return Lo(t)?!n&&Wn(this.contents)?this.contents.value:this.contents:jr(this.contents)?this.contents.getIn(t,n):void 0}has(t){return jr(this.contents)?this.contents.has(t):!1}hasIn(t){return Lo(t)?this.contents!==void 0:jr(this.contents)?this.contents.hasIn(t):!1}set(t,n){this.contents==null?this.contents=Fu(this.schema,[t],n):ja(this.contents)&&this.contents.set(t,n)}setIn(t,n){Lo(t)?this.contents=n:this.contents==null?this.contents=Fu(this.schema,Array.from(t),n):ja(this.contents)&&this.contents.setIn(t,n)}setSchema(t,n={}){typeof t=="number"&&(t=String(t));let r;switch(t){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new us({version:"1.1"}),r={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=t:this.directives=new us({version:t}),r={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,r=null;break;default:{const s=JSON.stringify(t);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${s}`)}}if(n.schema instanceof Object)this.schema=n.schema;else if(r)this.schema=new Df(Object.assign(r,n));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:t,jsonArg:n,mapAsMap:r,maxAliasCount:s,onAnchor:i,reviver:a}={}){const o={anchors:new Map,doc:this,keep:!t,mapAsMap:r===!0,mapKeyWarned:!1,maxAliasCount:typeof s=="number"?s:100},u=Is(this.contents,n??"",o);if(typeof i=="function")for(const{count:l,res:b}of o.anchors.values())i(b,l);return typeof a=="function"?ka(a,{"":u},"",u):u}toJSON(t,n){return this.toJS({json:!0,jsonArg:t,mapAsMap:!1,onAnchor:n})}toString(t={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in t&&(!Number.isInteger(t.indent)||Number(t.indent)<=0)){const n=JSON.stringify(t.indent);throw new Error(`"indent" option must be a positive integer, not ${n}`)}return Ub(this,t)}}function ja(e){if(jr(e))return!0;throw new Error("Expected a YAML collection as document contents")}class Ng extends Error{constructor(t,n,r,s){super(),this.name=t,this.code=r,this.message=s,this.pos=n}}class Mo extends Ng{constructor(t,n,r){super("YAMLParseError",t,n,r)}}class Wb extends Ng{constructor(t,n,r){super("YAMLWarning",t,n,r)}}const Tg=(e,t)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(o=>t.linePos(o));const{line:r,col:s}=n.linePos[0];n.message+=` at line ${r}, column ${s}`;let i=s-1,a=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,"");if(i>=60&&a.length>80){const o=Math.min(i-39,a.length-79);a="…"+a.substring(o),i-=o-1}if(a.length>80&&(a=a.substring(0,79)+"…"),r>1&&/^ *$/.test(a.substring(0,i))){let o=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);o.length>80&&(o=o.substring(0,79)+`…
91
+ `),a=o+a}if(/[^ ]/.test(a)){let o=1;const u=n.linePos[1];u&&u.line===r&&u.col>s&&(o=Math.max(1,Math.min(u.col-s,80-i)));const l=" ".repeat(i)+"^".repeat(o);n.message+=`:
92
+
93
+ ${a}
94
+ ${l}
95
+ `}};function $a(e,{flow:t,indicator:n,next:r,offset:s,onError:i,parentIndent:a,startOnNewline:o}){let u=!1,l=o,b=o,c="",T="",K=!1,ne=!1,O=null,k=null,me=null,Se=null,_e=null,Ye=null,ve=null;for(const Be of e)switch(ne&&(Be.type!=="space"&&Be.type!=="newline"&&Be.type!=="comma"&&i(Be.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),ne=!1),O&&(l&&Be.type!=="comment"&&Be.type!=="newline"&&i(O,"TAB_AS_INDENT","Tabs are not allowed as indentation"),O=null),Be.type){case"space":!t&&(n!=="doc-start"||r?.type!=="flow-collection")&&Be.source.includes(" ")&&(O=Be),b=!0;break;case"comment":{b||i(Be,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const xe=Be.source.substring(1)||" ";c?c+=T+xe:c=xe,T="",l=!1;break}case"newline":l?c?c+=Be.source:(!Ye||n!=="seq-item-ind")&&(u=!0):T+=Be.source,l=!0,K=!0,(k||me)&&(Se=Be),b=!0;break;case"anchor":k&&i(Be,"MULTIPLE_ANCHORS","A node can have at most one anchor"),Be.source.endsWith(":")&&i(Be.offset+Be.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),k=Be,ve??(ve=Be.offset),l=!1,b=!1,ne=!0;break;case"tag":{me&&i(Be,"MULTIPLE_TAGS","A node can have at most one tag"),me=Be,ve??(ve=Be.offset),l=!1,b=!1,ne=!0;break}case n:(k||me)&&i(Be,"BAD_PROP_ORDER",`Anchors and tags must be after the ${Be.source} indicator`),Ye&&i(Be,"UNEXPECTED_TOKEN",`Unexpected ${Be.source} in ${t??"collection"}`),Ye=Be,l=n==="seq-item-ind"||n==="explicit-key-ind",b=!1;break;case"comma":if(t){_e&&i(Be,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),_e=Be,l=!1,b=!1;break}default:i(Be,"UNEXPECTED_TOKEN",`Unexpected ${Be.type} token`),l=!1,b=!1}const Pe=e[e.length-1],Fe=Pe?Pe.offset+Pe.source.length:s;return ne&&r&&r.type!=="space"&&r.type!=="newline"&&r.type!=="comma"&&(r.type!=="scalar"||r.source!=="")&&i(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),O&&(l&&O.indent<=a||r?.type==="block-map"||r?.type==="block-seq")&&i(O,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:_e,found:Ye,spaceBefore:u,comment:c,hasNewline:K,anchor:k,tag:me,newlineAfterProp:Se,end:Fe,start:ve??Fe}}function Io(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes(`
96
+ `))return!0;if(e.end){for(const t of e.end)if(t.type==="newline")return!0}return!1;case"flow-collection":for(const t of e.items){for(const n of t.start)if(n.type==="newline")return!0;if(t.sep){for(const n of t.sep)if(n.type==="newline")return!0}if(Io(t.key)||Io(t.value))return!0}return!1;default:return!0}}function bf(e,t,n){if(t?.type==="flow-collection"){const r=t.end[0];r.indent===e&&(r.source==="]"||r.source==="}")&&Io(t)&&n(r,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function _g(e,t,n){const{uniqueKeys:r}=e.options;if(r===!1)return!1;const s=typeof r=="function"?r:(i,a)=>i===a||Wn(i)&&Wn(a)&&i.value===a.value;return t.some(i=>s(i.key,n))}const Lg="All mapping items must start at the same column";function Gb({composeNode:e,composeEmptyNode:t},n,r,s,i){const a=i?.nodeClass??Os,o=new a(n.schema);n.atRoot&&(n.atRoot=!1);let u=r.offset,l=null;for(const b of r.items){const{start:c,key:T,sep:K,value:ne}=b,O=$a(c,{indicator:"explicit-key-ind",next:T??K?.[0],offset:u,onError:s,parentIndent:r.indent,startOnNewline:!0}),k=!O.found;if(k){if(T&&(T.type==="block-seq"?s(u,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in T&&T.indent!==r.indent&&s(u,"BAD_INDENT",Lg)),!O.anchor&&!O.tag&&!K){l=O.end,O.comment&&(o.comment?o.comment+=`
97
+ `+O.comment:o.comment=O.comment);continue}(O.newlineAfterProp||Io(T))&&s(T??c[c.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else O.found?.indent!==r.indent&&s(u,"BAD_INDENT",Lg);n.atKey=!0;const me=O.end,Se=T?e(n,T,O,s):t(n,me,c,null,O,s);n.schema.compat&&bf(r.indent,T,s),n.atKey=!1,_g(n,o.items,Se)&&s(me,"DUPLICATE_KEY","Map keys must be unique");const _e=$a(K??[],{indicator:"map-value-ind",next:ne,offset:Se.range[2],onError:s,parentIndent:r.indent,startOnNewline:!T||T.type==="block-scalar"});if(u=_e.end,_e.found){k&&(ne?.type==="block-map"&&!_e.hasNewline&&s(u,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&O.start<_e.found.offset-1024&&s(Se.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const Ye=ne?e(n,ne,_e,s):t(n,u,K,null,_e,s);n.schema.compat&&bf(r.indent,ne,s),u=Ye.range[2];const ve=new ls(Se,Ye);n.options.keepSourceTokens&&(ve.srcToken=b),o.items.push(ve)}else{k&&s(Se.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),_e.comment&&(Se.comment?Se.comment+=`
98
+ `+_e.comment:Se.comment=_e.comment);const Ye=new ls(Se);n.options.keepSourceTokens&&(Ye.srcToken=b),o.items.push(Ye)}}return l&&l<u&&s(l,"IMPOSSIBLE","Map comment with trailing content"),o.range=[r.offset,u,l??u],o}function Jb({composeNode:e,composeEmptyNode:t},n,r,s,i){const a=i?.nodeClass??Ji,o=new a(n.schema);n.atRoot&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let u=r.offset,l=null;for(const{start:b,value:c}of r.items){const T=$a(b,{indicator:"seq-item-ind",next:c,offset:u,onError:s,parentIndent:r.indent,startOnNewline:!0});if(!T.found)if(T.anchor||T.tag||c)c&&c.type==="block-seq"?s(T.end,"BAD_INDENT","All sequence items must start at the same column"):s(u,"MISSING_CHAR","Sequence item without - indicator");else{l=T.end,T.comment&&(o.comment=T.comment);continue}const K=c?e(n,c,T,s):t(n,T.end,b,null,T,s);n.schema.compat&&bf(r.indent,c,s),u=K.range[2],o.items.push(K)}return o.range=[r.offset,u,l??u],o}function Oo(e,t,n,r){let s="";if(e){let i=!1,a="";for(const o of e){const{source:u,type:l}=o;switch(l){case"space":i=!0;break;case"comment":{n&&!i&&r(o,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const b=u.substring(1)||" ";s?s+=a+b:s=b,a="";break}case"newline":s&&(a+=u),i=!0;break;default:r(o,"UNEXPECTED_TOKEN",`Unexpected ${l} at node end`)}t+=u.length}}return{comment:s,offset:t}}const vf="Block collections are not allowed within flow collections",Ef=e=>e&&(e.type==="block-map"||e.type==="block-seq");function Yb({composeNode:e,composeEmptyNode:t},n,r,s,i){const a=r.start.source==="{",o=a?"flow map":"flow sequence",u=i?.nodeClass??(a?Os:Ji),l=new u(n.schema);l.flow=!0;const b=n.atRoot;b&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let c=r.offset+r.start.source.length;for(let k=0;k<r.items.length;++k){const me=r.items[k],{start:Se,key:_e,sep:Ye,value:ve}=me,Pe=$a(Se,{flow:o,indicator:"explicit-key-ind",next:_e??Ye?.[0],offset:c,onError:s,parentIndent:r.indent,startOnNewline:!1});if(!Pe.found){if(!Pe.anchor&&!Pe.tag&&!Ye&&!ve){k===0&&Pe.comma?s(Pe.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${o}`):k<r.items.length-1&&s(Pe.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${o}`),Pe.comment&&(l.comment?l.comment+=`
99
+ `+Pe.comment:l.comment=Pe.comment),c=Pe.end;continue}!a&&n.options.strict&&Io(_e)&&s(_e,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(k===0)Pe.comma&&s(Pe.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${o}`);else if(Pe.comma||s(Pe.start,"MISSING_CHAR",`Missing , between ${o} items`),Pe.comment){let Fe="";e:for(const Be of Se)switch(Be.type){case"comma":case"space":break;case"comment":Fe=Be.source.substring(1);break e;default:break e}if(Fe){let Be=l.items[l.items.length-1];vr(Be)&&(Be=Be.value??Be.key),Be.comment?Be.comment+=`
100
+ `+Fe:Be.comment=Fe,Pe.comment=Pe.comment.substring(Fe.length+1)}}if(!a&&!Ye&&!Pe.found){const Fe=ve?e(n,ve,Pe,s):t(n,Pe.end,Ye,null,Pe,s);l.items.push(Fe),c=Fe.range[2],Ef(ve)&&s(Fe.range,"BLOCK_IN_FLOW",vf)}else{n.atKey=!0;const Fe=Pe.end,Be=_e?e(n,_e,Pe,s):t(n,Fe,Se,null,Pe,s);Ef(_e)&&s(Be.range,"BLOCK_IN_FLOW",vf),n.atKey=!1;const xe=$a(Ye??[],{flow:o,indicator:"map-value-ind",next:ve,offset:Be.range[2],onError:s,parentIndent:r.indent,startOnNewline:!1});if(xe.found){if(!a&&!Pe.found&&n.options.strict){if(Ye)for(const de of Ye){if(de===xe.found)break;if(de.type==="newline"){s(de,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}Pe.start<xe.found.offset-1024&&s(xe.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else ve&&("source"in ve&&ve.source&&ve.source[0]===":"?s(ve,"MISSING_CHAR",`Missing space after : in ${o}`):s(xe.start,"MISSING_CHAR",`Missing , or : between ${o} items`));const Je=ve?e(n,ve,xe,s):xe.found?t(n,xe.end,Ye,null,xe,s):null;Je?Ef(ve)&&s(Je.range,"BLOCK_IN_FLOW",vf):xe.comment&&(Be.comment?Be.comment+=`
101
+ `+xe.comment:Be.comment=xe.comment);const ze=new ls(Be,Je);if(n.options.keepSourceTokens&&(ze.srcToken=me),a){const de=l;_g(n,de.items,Be)&&s(Fe,"DUPLICATE_KEY","Map keys must be unique"),de.items.push(ze)}else{const de=new Os(n.schema);de.flow=!0,de.items.push(ze);const Ze=(Je??Be).range;de.range=[Be.range[0],Ze[1],Ze[2]],l.items.push(de)}c=Je?Je.range[2]:xe.end}}const T=a?"}":"]",[K,...ne]=r.end;let O=c;if(K&&K.source===T)O=K.offset+K.source.length;else{const k=o[0].toUpperCase()+o.substring(1),me=b?`${k} must end with a ${T}`:`${k} in block collection must be sufficiently indented and end with a ${T}`;s(c,b?"MISSING_CHAR":"BAD_INDENT",me),K&&K.source.length!==1&&ne.unshift(K)}if(ne.length>0){const k=Oo(ne,O,n.options.strict,s);k.comment&&(l.comment?l.comment+=`
102
+ `+k.comment:l.comment=k.comment),l.range=[r.offset,O,k.offset]}else l.range=[r.offset,O,O];return l}function Af(e,t,n,r,s,i){const a=n.type==="block-map"?Gb(e,t,n,r,i):n.type==="block-seq"?Jb(e,t,n,r,i):Yb(e,t,n,r,i),o=a.constructor;return s==="!"||s===o.tagName?(a.tag=o.tagName,a):(s&&(a.tag=s),a)}function Hb(e,t,n,r,s){const i=r.tag,a=i?t.directives.tagName(i.source,T=>s(i,"TAG_RESOLVE_FAILED",T)):null;if(n.type==="block-seq"){const{anchor:T,newlineAfterProp:K}=r,ne=T&&i?T.offset>i.offset?T:i:T??i;ne&&(!K||K.offset<ne.offset)&&s(ne,"MISSING_CHAR","Missing newline after block sequence props")}const o=n.type==="block-map"?"map":n.type==="block-seq"?"seq":n.start.source==="{"?"map":"seq";if(!i||!a||a==="!"||a===Os.tagName&&o==="map"||a===Ji.tagName&&o==="seq")return Af(e,t,n,s,a);let u=t.schema.tags.find(T=>T.tag===a&&T.collection===o);if(!u){const T=t.schema.knownTags[a];if(T&&T.collection===o)t.schema.tags.push(Object.assign({},T,{default:!1})),u=T;else return T?s(i,"BAD_COLLECTION_TYPE",`${T.tag} used for ${o} collection, but expects ${T.collection??"scalar"}`,!0):s(i,"TAG_RESOLVE_FAILED",`Unresolved tag: ${a}`,!0),Af(e,t,n,s,a)}const l=Af(e,t,n,s,a,u),b=u.resolve?.(l,T=>s(i,"TAG_RESOLVE_FAILED",T),t.options)??l,c=yr(b)?b:new Qn(b);return c.range=l.range,c.tag=a,u?.format&&(c.format=u.format),c}function zb(e,t,n){const r=t.offset,s=Xb(t,e.options.strict,n);if(!s)return{value:"",type:null,comment:"",range:[r,r,r]};const i=s.mode===">"?Qn.BLOCK_FOLDED:Qn.BLOCK_LITERAL,a=t.source?Qb(t.source):[];let o=a.length;for(let O=a.length-1;O>=0;--O){const k=a[O][1];if(k===""||k==="\r")o=O;else break}if(o===0){const O=s.chomp==="+"&&a.length>0?`
103
+ `.repeat(Math.max(1,a.length-1)):"";let k=r+s.length;return t.source&&(k+=t.source.length),{value:O,type:i,comment:s.comment,range:[r,k,k]}}let u=t.indent+s.indent,l=t.offset+s.length,b=0;for(let O=0;O<o;++O){const[k,me]=a[O];if(me===""||me==="\r")s.indent===0&&k.length>u&&(u=k.length);else{k.length<u&&n(l+k.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),s.indent===0&&(u=k.length),b=O,u===0&&!e.atRoot&&n(l,"BAD_INDENT","Block scalar values in collections must be indented");break}l+=k.length+me.length+1}for(let O=a.length-1;O>=o;--O)a[O][0].length>u&&(o=O+1);let c="",T="",K=!1;for(let O=0;O<b;++O)c+=a[O][0].slice(u)+`
104
+ `;for(let O=b;O<o;++O){let[k,me]=a[O];l+=k.length+me.length+1;const Se=me[me.length-1]==="\r";if(Se&&(me=me.slice(0,-1)),me&&k.length<u){const Ye=`Block scalar lines must not be less indented than their ${s.indent?"explicit indentation indicator":"first line"}`;n(l-me.length-(Se?2:1),"BAD_INDENT",Ye),k=""}i===Qn.BLOCK_LITERAL?(c+=T+k.slice(u)+me,T=`
105
+ `):k.length>u||me[0]===" "?(T===" "?T=`
106
+ `:!K&&T===`
107
+ `&&(T=`
108
+
109
+ `),c+=T+k.slice(u)+me,T=`
110
+ `,K=!0):me===""?T===`
111
+ `?c+=`
112
+ `:T=`
113
+ `:(c+=T+me,T=" ",K=!1)}switch(s.chomp){case"-":break;case"+":for(let O=o;O<a.length;++O)c+=`
114
+ `+a[O][0].slice(u);c[c.length-1]!==`
115
+ `&&(c+=`
116
+ `);break;default:c+=`
117
+ `}const ne=r+s.length+t.source.length;return{value:c,type:i,comment:s.comment,range:[r,ne,ne]}}function Xb({offset:e,props:t},n,r){if(t[0].type!=="block-scalar-header")return r(t[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:s}=t[0],i=s[0];let a=0,o="",u=-1;for(let T=1;T<s.length;++T){const K=s[T];if(!o&&(K==="-"||K==="+"))o=K;else{const ne=Number(K);!a&&ne?a=ne:u===-1&&(u=e+T)}}u!==-1&&r(u,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${s}`);let l=!1,b="",c=s.length;for(let T=1;T<t.length;++T){const K=t[T];switch(K.type){case"space":l=!0;case"newline":c+=K.source.length;break;case"comment":n&&!l&&r(K,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),c+=K.source.length,b=K.source.substring(1);break;case"error":r(K,"UNEXPECTED_TOKEN",K.message),c+=K.source.length;break;default:{const ne=`Unexpected token in block scalar header: ${K.type}`;r(K,"UNEXPECTED_TOKEN",ne);const O=K.source;O&&typeof O=="string"&&(c+=O.length)}}}return{mode:i,indent:a,chomp:o,comment:b,length:c}}function Qb(e){const t=e.split(/\n( *)/),n=t[0],r=n.match(/^( *)/),i=[r?.[1]?[r[1],n.slice(r[1].length)]:["",n]];for(let a=1;a<t.length;a+=2)i.push([t[a],t[a+1]]);return i}function Kb(e,t,n){const{offset:r,type:s,source:i,end:a}=e;let o,u;const l=(T,K,ne)=>n(r+T,K,ne);switch(s){case"scalar":o=Qn.PLAIN,u=Zb(i,l);break;case"single-quoted-scalar":o=Qn.QUOTE_SINGLE,u=ev(i,l);break;case"double-quoted-scalar":o=Qn.QUOTE_DOUBLE,u=tv(i,l);break;default:return n(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${s}`),{value:"",type:null,comment:"",range:[r,r+i.length,r+i.length]}}const b=r+i.length,c=Oo(a,b,t,n);return{value:u,type:o,comment:c.comment,range:[r,b,c.offset]}}function Zb(e,t){let n="";switch(e[0]){case" ":n="a tab character";break;case",":n="flow indicator character ,";break;case"%":n="directive indicator character %";break;case"|":case">":{n=`block scalar indicator ${e[0]}`;break}case"@":case"`":{n=`reserved character ${e[0]}`;break}}return n&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${n}`),kg(e)}function ev(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),kg(e.slice(1,-1)).replace(/''/g,"'")}function kg(e){let t,n;try{t=new RegExp(`(.*?)(?<![ ])[ ]*\r?
118
+ `,"sy"),n=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
119
+ `,"sy")}catch{t=/(.*?)[ \t]*\r?\n/sy,n=/[ \t]*(.*?)[ \t]*\r?\n/sy}let r=t.exec(e);if(!r)return e;let s=r[1],i=" ",a=t.lastIndex;for(n.lastIndex=a;r=n.exec(e);)r[1]===""?i===`
120
+ `?s+=i:i=`
121
+ `:(s+=i+r[1],i=" "),a=n.lastIndex;const o=/[ \t]*(.*)/sy;return o.lastIndex=a,r=o.exec(e),s+i+(r?.[1]??"")}function tv(e,t){let n="";for(let r=1;r<e.length-1;++r){const s=e[r];if(!(s==="\r"&&e[r+1]===`
122
+ `))if(s===`
123
+ `){const{fold:i,offset:a}=nv(e,r);n+=i,r=a}else if(s==="\\"){let i=e[++r];const a=rv[i];if(a)n+=a;else if(i===`
124
+ `)for(i=e[r+1];i===" "||i===" ";)i=e[++r+1];else if(i==="\r"&&e[r+1]===`
125
+ `)for(i=e[++r+1];i===" "||i===" ";)i=e[++r+1];else if(i==="x"||i==="u"||i==="U"){const o={x:2,u:4,U:8}[i];n+=sv(e,r+1,o,t),r+=o}else{const o=e.substr(r-1,2);t(r-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${o}`),n+=o}}else if(s===" "||s===" "){const i=r;let a=e[r+1];for(;a===" "||a===" ";)a=e[++r+1];a!==`
126
+ `&&!(a==="\r"&&e[r+2]===`
127
+ `)&&(n+=r>i?e.slice(i,r+1):s)}else n+=s}return(e[e.length-1]!=='"'||e.length===1)&&t(e.length,"MISSING_CHAR",'Missing closing "quote'),n}function nv(e,t){let n="",r=e[t+1];for(;(r===" "||r===" "||r===`
128
+ `||r==="\r")&&!(r==="\r"&&e[t+2]!==`
129
+ `);)r===`
130
+ `&&(n+=`
131
+ `),t+=1,r=e[t+1];return n||(n=" "),{fold:n,offset:t}}const rv={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
132
+ `,r:"\r",t:" ",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function sv(e,t,n,r){const s=e.substr(t,n),a=s.length===n&&/^[0-9a-fA-F]+$/.test(s)?parseInt(s,16):NaN;if(isNaN(a)){const o=e.substr(t-2,n+2);return r(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${o}`),o}return String.fromCodePoint(a)}function Pg(e,t,n,r){const{value:s,type:i,comment:a,range:o}=t.type==="block-scalar"?zb(e,t,r):Kb(t,e.options.strict,r),u=n?e.directives.tagName(n.source,c=>r(n,"TAG_RESOLVE_FAILED",c)):null;let l;e.options.stringKeys&&e.atKey?l=e.schema[ri]:u?l=iv(e.schema,s,u,n,r):t.type==="scalar"?l=av(e,s,t,r):l=e.schema[ri];let b;try{const c=l.resolve(s,T=>r(n??t,"TAG_RESOLVE_FAILED",T),e.options);b=Wn(c)?c:new Qn(c)}catch(c){const T=c instanceof Error?c.message:String(c);r(n??t,"TAG_RESOLVE_FAILED",T),b=new Qn(s)}return b.range=o,b.source=s,i&&(b.type=i),u&&(b.tag=u),l.format&&(b.format=l.format),a&&(b.comment=a),b}function iv(e,t,n,r,s){if(n==="!")return e[ri];const i=[];for(const o of e.tags)if(!o.collection&&o.tag===n)if(o.default&&o.test)i.push(o);else return o;for(const o of i)if(o.test?.test(t))return o;const a=e.knownTags[n];return a&&!a.collection?(e.tags.push(Object.assign({},a,{default:!1,test:void 0})),a):(s(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,n!=="tag:yaml.org,2002:str"),e[ri])}function av({atKey:e,directives:t,schema:n},r,s,i){const a=n.tags.find(o=>(o.default===!0||e&&o.default==="key")&&o.test?.test(r))||n[ri];if(n.compat){const o=n.compat.find(u=>u.default&&u.test?.test(r))??n[ri];if(a.tag!==o.tag){const u=t.tagString(a.tag),l=t.tagString(o.tag),b=`Value may be parsed as either ${u} or ${l}`;i(s,"TAG_RESOLVE_FAILED",b,!0)}}return a}function ov(e,t,n){if(t){n??(n=t.length);for(let r=n-1;r>=0;--r){let s=t[r];switch(s.type){case"space":case"comment":case"newline":e-=s.source.length;continue}for(s=t[++r];s?.type==="space";)e+=s.source.length,s=t[++r];break}}return e}const uv={composeNode:Bg,composeEmptyNode:wf};function Bg(e,t,n,r){const s=e.atKey,{spaceBefore:i,comment:a,anchor:o,tag:u}=n;let l,b=!0;switch(t.type){case"alias":l=lv(e,t,r),(o||u)&&r(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":l=Pg(e,t,u,r),o&&(l.anchor=o.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":l=Hb(uv,e,t,n,r),o&&(l.anchor=o.source.substring(1));break;default:{const c=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;r(t,"UNEXPECTED_TOKEN",c),l=wf(e,t.offset,void 0,null,n,r),b=!1}}return o&&l.anchor===""&&r(o,"BAD_ALIAS","Anchor cannot be an empty string"),s&&e.options.stringKeys&&(!Wn(l)||typeof l.value!="string"||l.tag&&l.tag!=="tag:yaml.org,2002:str")&&r(u??t,"NON_STRING_KEY","With stringKeys, all keys must be strings"),i&&(l.spaceBefore=!0),a&&(t.type==="scalar"&&t.source===""?l.comment=a:l.commentBefore=a),e.options.keepSourceTokens&&b&&(l.srcToken=t),l}function wf(e,t,n,r,{spaceBefore:s,comment:i,anchor:a,tag:o,end:u},l){const b={type:"scalar",offset:ov(t,n,r),indent:-1,source:""},c=Pg(e,b,o,l);return a&&(c.anchor=a.source.substring(1),c.anchor===""&&l(a,"BAD_ALIAS","Anchor cannot be an empty string")),s&&(c.spaceBefore=!0),i&&(c.comment=i,c.range[2]=u),c}function lv({options:e},{offset:t,source:n,end:r},s){const i=new tf(n.substring(1));i.source===""&&s(t,"BAD_ALIAS","Alias cannot be an empty string"),i.source.endsWith(":")&&s(t+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const a=t+n.length,o=Oo(r,a,e.strict,s);return i.range=[t,a,o.offset],o.comment&&(i.comment=o.comment),i}function cv(e,t,{offset:n,start:r,value:s,end:i},a){const o=Object.assign({_directives:t},e),u=new Bo(void 0,o),l={atKey:!1,atRoot:!0,directives:u.directives,options:u.options,schema:u.schema},b=$a(r,{indicator:"doc-start",next:s??i?.[0],offset:n,onError:a,parentIndent:0,startOnNewline:!0});b.found&&(u.directives.docStart=!0,s&&(s.type==="block-map"||s.type==="block-seq")&&!b.hasNewline&&a(b.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),u.contents=s?Bg(l,s,b,a):wf(l,b.end,r,null,b,a);const c=u.contents.range[2],T=Oo(i,c,!1,a);return T.comment&&(u.comment=T.comment),u.range=[n,c,T.offset],u}function Ro(e){if(typeof e=="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];const{offset:t,source:n}=e;return[t,t+(typeof n=="string"?n.length:1)]}function Mg(e){let t="",n=!1,r=!1;for(let s=0;s<e.length;++s){const i=e[s];switch(i[0]){case"#":t+=(t===""?"":r?`
133
+
134
+ `:`
135
+ `)+(i.substring(1)||" "),n=!0,r=!1;break;case"%":e[s+1]?.[0]!=="#"&&(s+=1),n=!1;break;default:n||(r=!0),n=!1}}return{comment:t,afterEmptyLine:r}}class Ig{constructor(t={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(n,r,s,i)=>{const a=Ro(n);i?this.warnings.push(new Wb(a,r,s)):this.errors.push(new Mo(a,r,s))},this.directives=new us({version:t.version||"1.2"}),this.options=t}decorate(t,n){const{comment:r,afterEmptyLine:s}=Mg(this.prelude);if(r){const i=t.contents;if(n)t.comment=t.comment?`${t.comment}
136
+ ${r}`:r;else if(s||t.directives.docStart||!i)t.commentBefore=r;else if(jr(i)&&!i.flow&&i.items.length>0){let a=i.items[0];vr(a)&&(a=a.key);const o=a.commentBefore;a.commentBefore=o?`${r}
137
+ ${o}`:r}else{const a=i.commentBefore;i.commentBefore=a?`${r}
138
+ ${a}`:r}}n?(Array.prototype.push.apply(t.errors,this.errors),Array.prototype.push.apply(t.warnings,this.warnings)):(t.errors=this.errors,t.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:Mg(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(t,n=!1,r=-1){for(const s of t)yield*this.next(s);yield*this.end(n,r)}*next(t){switch(t.type){case"directive":this.directives.add(t.source,(n,r,s)=>{const i=Ro(t);i[0]+=n,this.onError(i,"BAD_DIRECTIVE",r,s)}),this.prelude.push(t.source),this.atDirectives=!0;break;case"document":{const n=cv(this.options,this.directives,t,this.onError);this.atDirectives&&!n.directives.docStart&&this.onError(t,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(n,!1),this.doc&&(yield this.doc),this.doc=n,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(t.source);break;case"error":{const n=t.source?`${t.message}: ${JSON.stringify(t.source)}`:t.message,r=new Mo(Ro(t),"UNEXPECTED_TOKEN",n);this.atDirectives||!this.doc?this.errors.push(r):this.doc.errors.push(r);break}case"doc-end":{if(!this.doc){const r="Unexpected doc-end without preceding document";this.errors.push(new Mo(Ro(t),"UNEXPECTED_TOKEN",r));break}this.doc.directives.docEnd=!0;const n=Oo(t.end,t.offset+t.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),n.comment){const r=this.doc.comment;this.doc.comment=r?`${r}
139
+ ${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.push(new Mo(Ro(t),"UNEXPECTED_TOKEN",`Unsupported token ${t.type}`))}}*end(t=!1,n=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(t){const r=Object.assign({_directives:this.directives},this.options),s=new Bo(void 0,r);this.atDirectives&&this.onError(n,"MISSING_CHAR","Missing directives-end indicator line"),s.range=[0,n,n],this.decorate(s,!1),yield s}}}const Og=e=>"type"in e?qu(e):Uu(e);function qu(e){switch(e.type){case"block-scalar":{let t="";for(const n of e.props)t+=qu(n);return t+e.source}case"block-map":case"block-seq":{let t="";for(const n of e.items)t+=Uu(n);return t}case"flow-collection":{let t=e.start.source;for(const n of e.items)t+=Uu(n);for(const n of e.end)t+=n.source;return t}case"document":{let t=Uu(e);if(e.end)for(const n of e.end)t+=n.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(const n of e.end)t+=n.source;return t}}}function Uu({start:e,key:t,sep:n,value:r}){let s="";for(const i of e)s+=i.source;if(t&&(s+=qu(t)),n)for(const i of n)s+=i.source;return r&&(s+=qu(r)),s}const xf=Symbol("break visit"),fv=Symbol("skip children"),Rg=Symbol("remove item");function Yi(e,t){"type"in e&&e.type==="document"&&(e={start:e.start,value:e.value}),jg(Object.freeze([]),e,t)}Yi.BREAK=xf,Yi.SKIP=fv,Yi.REMOVE=Rg,Yi.itemAtPath=(e,t)=>{let n=e;for(const[r,s]of t){const i=n?.[r];if(i&&"items"in i)n=i.items[s];else return}return n},Yi.parentCollection=(e,t)=>{const n=Yi.itemAtPath(e,t.slice(0,-1)),r=t[t.length-1][0],s=n?.[r];if(s&&"items"in s)return s;throw new Error("Parent collection not found")};function jg(e,t,n){let r=n(t,e);if(typeof r=="symbol")return r;for(const s of["key","value"]){const i=t[s];if(i&&"items"in i){for(let a=0;a<i.items.length;++a){const o=jg(Object.freeze(e.concat([[s,a]])),i.items[a],n);if(typeof o=="number")a=o-1;else{if(o===xf)return xf;o===Rg&&(i.items.splice(a,1),a-=1)}}typeof r=="function"&&s==="key"&&(r=r(t,e))}}return typeof r=="function"?r(t,e):r}const $g="\uFEFF",Vg="",qg="",Cf="",pv=e=>!!e&&"items"in e,Sf=e=>!!e&&(e.type==="scalar"||e.type==="single-quoted-scalar"||e.type==="double-quoted-scalar"||e.type==="block-scalar");function dv(e){switch(e){case $g:return"byte-order-mark";case Vg:return"doc-mode";case qg:return"flow-error-end";case Cf:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
140
+ `:case`\r
141
+ `:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}function Gs(e){switch(e){case void 0:case" ":case`
142
+ `:case"\r":case" ":return!0;default:return!1}}const Ug=new Set("0123456789ABCDEFabcdef"),hv=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),Wu=new Set(",[]{}"),mv=new Set(` ,[]{}
143
+ \r `),Ff=e=>!e||mv.has(e);class gv{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(t,n=!1){if(t){if(typeof t!="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+t:t,this.lineEndPos=null}this.atEnd=!n;let r=this.next??"stream";for(;r&&(n||this.hasChars(1));)r=yield*this.parseNext(r)}atLineEnd(){let t=this.pos,n=this.buffer[t];for(;n===" "||n===" ";)n=this.buffer[++t];return!n||n==="#"||n===`
144
+ `?!0:n==="\r"?this.buffer[t+1]===`
145
+ `:!1}charAt(t){return this.buffer[this.pos+t]}continueScalar(t){let n=this.buffer[t];if(this.indentNext>0){let r=0;for(;n===" ";)n=this.buffer[++r+t];if(n==="\r"){const s=this.buffer[r+t+1];if(s===`
146
+ `||!s&&!this.atEnd)return t+r+1}return n===`
147
+ `||r>=this.indentNext||!n&&!this.atEnd?t+r:-1}if(n==="-"||n==="."){const r=this.buffer.substr(t,3);if((r==="---"||r==="...")&&Gs(this.buffer[t+3]))return-1}return t}getLine(){let t=this.lineEndPos;return(typeof t!="number"||t!==-1&&t<this.pos)&&(t=this.buffer.indexOf(`
148
+ `,this.pos),this.lineEndPos=t),t===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[t-1]==="\r"&&(t-=1),this.buffer.substring(this.pos,t))}hasChars(t){return this.pos+t<=this.buffer.length}setNext(t){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=t,null}peek(t){return this.buffer.substr(this.pos,t)}*parseNext(t){switch(t){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let t=this.getLine();if(t===null)return this.setNext("stream");if(t[0]===$g&&(yield*this.pushCount(1),t=t.substring(1)),t[0]==="%"){let n=t.length,r=t.indexOf("#");for(;r!==-1;){const i=t[r-1];if(i===" "||i===" "){n=r-1;break}else r=t.indexOf("#",r+1)}for(;;){const i=t[n-1];if(i===" "||i===" ")n-=1;else break}const s=(yield*this.pushCount(n))+(yield*this.pushSpaces(!0));return yield*this.pushCount(t.length-s),this.pushNewline(),"stream"}if(this.atLineEnd()){const n=yield*this.pushSpaces(!0);return yield*this.pushCount(t.length-n),yield*this.pushNewline(),"stream"}return yield Vg,yield*this.parseLineStart()}*parseLineStart(){const t=this.charAt(0);if(!t&&!this.atEnd)return this.setNext("line-start");if(t==="-"||t==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const n=this.peek(3);if((n==="---"||n==="...")&&Gs(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,n==="---"?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!Gs(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[t,n]=this.peek(2);if(!n&&!this.atEnd)return this.setNext("block-start");if((t==="-"||t==="?"||t===":")&&Gs(n)){const r=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=r,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const t=this.getLine();if(t===null)return this.setNext("doc");let n=yield*this.pushIndicators();switch(t[n]){case"#":yield*this.pushCount(t.length-n);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(Ff),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return n+=yield*this.parseBlockScalarHeader(),n+=yield*this.pushSpaces(!0),yield*this.pushCount(t.length-n),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let t,n,r=-1;do t=yield*this.pushNewline(),t>0?(n=yield*this.pushSpaces(!1),this.indentValue=r=n):n=0,n+=yield*this.pushSpaces(!0);while(t+n>0);const s=this.getLine();if(s===null)return this.setNext("flow");if((r!==-1&&r<this.indentNext&&s[0]!=="#"||r===0&&(s.startsWith("---")||s.startsWith("..."))&&Gs(s[3]))&&!(r===this.indentNext-1&&this.flowLevel===1&&(s[0]==="]"||s[0]==="}")))return this.flowLevel=0,yield qg,yield*this.parseLineStart();let i=0;for(;s[i]===",";)i+=yield*this.pushCount(1),i+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(i+=yield*this.pushIndicators(),s[i]){case void 0:return"flow";case"#":return yield*this.pushCount(s.length-i),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(Ff),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const a=this.charAt(1);if(this.flowKey||Gs(a)||a===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){const t=this.charAt(0);let n=this.buffer.indexOf(t,this.pos+1);if(t==="'")for(;n!==-1&&this.buffer[n+1]==="'";)n=this.buffer.indexOf("'",n+2);else for(;n!==-1;){let i=0;for(;this.buffer[n-1-i]==="\\";)i+=1;if(i%2===0)break;n=this.buffer.indexOf('"',n+1)}const r=this.buffer.substring(0,n);let s=r.indexOf(`
149
+ `,this.pos);if(s!==-1){for(;s!==-1;){const i=this.continueScalar(s+1);if(i===-1)break;s=r.indexOf(`
150
+ `,i)}s!==-1&&(n=s-(r[s-1]==="\r"?2:1))}if(n===-1){if(!this.atEnd)return this.setNext("quoted-scalar");n=this.buffer.length}return yield*this.pushToIndex(n+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let t=this.pos;for(;;){const n=this.buffer[++t];if(n==="+")this.blockScalarKeep=!0;else if(n>"0"&&n<="9")this.blockScalarIndent=Number(n)-1;else if(n!=="-")break}return yield*this.pushUntil(n=>Gs(n)||n==="#")}*parseBlockScalar(){let t=this.pos-1,n=0,r;e:for(let i=this.pos;r=this.buffer[i];++i)switch(r){case" ":n+=1;break;case`
151
+ `:t=i,n=0;break;case"\r":{const a=this.buffer[i+1];if(!a&&!this.atEnd)return this.setNext("block-scalar");if(a===`
152
+ `)break}default:break e}if(!r&&!this.atEnd)return this.setNext("block-scalar");if(n>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=n:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{const i=this.continueScalar(t+1);if(i===-1)break;t=this.buffer.indexOf(`
153
+ `,i)}while(t!==-1);if(t===-1){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}let s=t+1;for(r=this.buffer[s];r===" ";)r=this.buffer[++s];if(r===" "){for(;r===" "||r===" "||r==="\r"||r===`
154
+ `;)r=this.buffer[++s];t=s-1}else if(!this.blockScalarKeep)do{let i=t-1,a=this.buffer[i];a==="\r"&&(a=this.buffer[--i]);const o=i;for(;a===" ";)a=this.buffer[--i];if(a===`
155
+ `&&i>=this.pos&&i+1+n>o)t=i;else break}while(!0);return yield Cf,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const t=this.flowLevel>0;let n=this.pos-1,r=this.pos-1,s;for(;s=this.buffer[++r];)if(s===":"){const i=this.buffer[r+1];if(Gs(i)||t&&Wu.has(i))break;n=r}else if(Gs(s)){let i=this.buffer[r+1];if(s==="\r"&&(i===`
156
+ `?(r+=1,s=`
157
+ `,i=this.buffer[r+1]):n=r),i==="#"||t&&Wu.has(i))break;if(s===`
158
+ `){const a=this.continueScalar(r+1);if(a===-1)break;r=Math.max(r,a-2)}}else{if(t&&Wu.has(s))break;n=r}return!s&&!this.atEnd?this.setNext("plain-scalar"):(yield Cf,yield*this.pushToIndex(n+1,!0),t?"flow":"doc")}*pushCount(t){return t>0?(yield this.buffer.substr(this.pos,t),this.pos+=t,t):0}*pushToIndex(t,n){const r=this.buffer.slice(this.pos,t);return r?(yield r,this.pos+=r.length,r.length):(n&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(Ff))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const t=this.flowLevel>0,n=this.charAt(1);if(Gs(n)||t&&Wu.has(n))return t?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let t=this.pos+2,n=this.buffer[t];for(;!Gs(n)&&n!==">";)n=this.buffer[++t];return yield*this.pushToIndex(n===">"?t+1:t,!1)}else{let t=this.pos+1,n=this.buffer[t];for(;n;)if(hv.has(n))n=this.buffer[++t];else if(n==="%"&&Ug.has(this.buffer[t+1])&&Ug.has(this.buffer[t+2]))n=this.buffer[t+=3];else break;return yield*this.pushToIndex(t,!1)}}*pushNewline(){const t=this.buffer[this.pos];return t===`
159
+ `?yield*this.pushCount(1):t==="\r"&&this.charAt(1)===`
160
+ `?yield*this.pushCount(2):0}*pushSpaces(t){let n=this.pos-1,r;do r=this.buffer[++n];while(r===" "||t&&r===" ");const s=n-this.pos;return s>0&&(yield this.buffer.substr(this.pos,s),this.pos=n),s}*pushUntil(t){let n=this.pos,r=this.buffer[n];for(;!t(r);)r=this.buffer[++n];return yield*this.pushToIndex(n,!1)}}class Wg{constructor(){this.lineStarts=[],this.addNewLine=t=>this.lineStarts.push(t),this.linePos=t=>{let n=0,r=this.lineStarts.length;for(;n<r;){const i=n+r>>1;this.lineStarts[i]<t?n=i+1:r=i}if(this.lineStarts[n]===t)return{line:n+1,col:1};if(n===0)return{line:0,col:t};const s=this.lineStarts[n-1];return{line:n,col:t-s+1}}}}function Li(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function Gg(e){for(let t=0;t<e.length;++t)switch(e[t].type){case"space":case"comment":case"newline":break;default:return t}return-1}function Jg(e){switch(e?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function Gu(e){switch(e.type){case"document":return e.start;case"block-map":{const t=e.items[e.items.length-1];return t.sep??t.start}case"block-seq":return e.items[e.items.length-1].start;default:return[]}}function Va(e){if(e.length===0)return[];let t=e.length;e:for(;--t>=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;e[++t]?.type==="space";);return e.splice(t,e.length)}function Yg(e){if(e.start.type==="flow-seq-start")for(const t of e.items)t.sep&&!t.value&&!Li(t.start,"explicit-key-ind")&&!Li(t.sep,"map-value-ind")&&(t.key&&(t.value=t.key),delete t.key,Jg(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}class Nf{constructor(t){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new gv,this.onNewLine=t}*parse(t,n=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(const r of this.lexer.lex(t,n))yield*this.next(r);n||(yield*this.end())}*next(t){if(this.source=t,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=t.length;return}const n=dv(t);if(n)if(n==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=n,yield*this.step(),n){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+t.length);break;case"space":this.atNewLine&&t[0]===" "&&(this.indent+=t.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=t.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=t.length}else{const r=`Not a YAML token: ${t}`;yield*this.pop({type:"error",offset:this.offset,message:r,source:t}),this.offset+=t.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const t=this.peek(1);if(this.type==="doc-end"&&(!t||t.type!=="doc-end")){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!t)return yield*this.stream();switch(t.type){case"document":return yield*this.document(t);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(t);case"block-scalar":return yield*this.blockScalar(t);case"block-map":return yield*this.blockMap(t);case"block-seq":return yield*this.blockSequence(t);case"flow-collection":return yield*this.flowCollection(t);case"doc-end":return yield*this.documentEnd(t)}yield*this.pop()}peek(t){return this.stack[this.stack.length-t]}*pop(t){const n=t??this.stack.pop();if(!n)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield n;else{const r=this.peek(1);switch(n.type==="block-scalar"?n.indent="indent"in r?r.indent:0:n.type==="flow-collection"&&r.type==="document"&&(n.indent=0),n.type==="flow-collection"&&Yg(n),r.type){case"document":r.value=n;break;case"block-scalar":r.props.push(n);break;case"block-map":{const s=r.items[r.items.length-1];if(s.value){r.items.push({start:[],key:n,sep:[]}),this.onKeyLine=!0;return}else if(s.sep)s.value=n;else{Object.assign(s,{key:n,sep:[]}),this.onKeyLine=!s.explicitKey;return}break}case"block-seq":{const s=r.items[r.items.length-1];s.value?r.items.push({start:[],value:n}):s.value=n;break}case"flow-collection":{const s=r.items[r.items.length-1];!s||s.value?r.items.push({start:[],key:n,sep:[]}):s.sep?s.value=n:Object.assign(s,{key:n,sep:[]});return}default:yield*this.pop(),yield*this.pop(n)}if((r.type==="document"||r.type==="block-map"||r.type==="block-seq")&&(n.type==="block-map"||n.type==="block-seq")){const s=n.items[n.items.length-1];s&&!s.sep&&!s.value&&s.start.length>0&&Gg(s.start)===-1&&(n.indent===0||s.start.every(i=>i.type!=="comment"||i.indent<n.indent))&&(r.type==="document"?r.end=s.start:r.items.push({start:s.start}),n.items.splice(-1,1))}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{const t={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&t.start.push(this.sourceToken),this.stack.push(t);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(t){if(t.value)return yield*this.lineEnd(t);switch(this.type){case"doc-start":{Gg(t.start)!==-1?(yield*this.pop(),yield*this.step()):t.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":t.start.push(this.sourceToken);return}const n=this.startBlockValue(t);n?this.stack.push(n):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(t){if(this.type==="map-value-ind"){const n=Gu(this.peek(2)),r=Va(n);let s;t.end?(s=t.end,s.push(this.sourceToken),delete t.end):s=[this.sourceToken];const i={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:r,key:t,sep:s}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=i}else yield*this.lineEnd(t)}*blockScalar(t){switch(this.type){case"space":case"comment":case"newline":t.props.push(this.sourceToken);return;case"scalar":if(t.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let n=this.source.indexOf(`
161
+ `)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
162
+ `,n)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(t){const n=t.items[t.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,n.value){const r="end"in n.value?n.value.end:void 0;(Array.isArray(r)?r[r.length-1]:void 0)?.type==="comment"?r?.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)t.items.push({start:[this.sourceToken]});else if(n.sep)n.sep.push(this.sourceToken);else{if(this.atIndentedComment(n.start,t.indent)){const s=t.items[t.items.length-2]?.value?.end;if(Array.isArray(s)){Array.prototype.push.apply(s,n.start),s.push(this.sourceToken),t.items.pop();return}}n.start.push(this.sourceToken)}return}if(this.indent>=t.indent){const r=!this.onKeyLine&&this.indent===t.indent,s=r&&(n.sep||n.explicitKey)&&this.type!=="seq-item-ind";let i=[];if(s&&n.sep&&!n.value){const a=[];for(let o=0;o<n.sep.length;++o){const u=n.sep[o];switch(u.type){case"newline":a.push(o);break;case"space":break;case"comment":u.indent>t.indent&&(a.length=0);break;default:a.length=0}}a.length>=2&&(i=n.sep.splice(a[1]))}switch(this.type){case"anchor":case"tag":s||n.value?(i.push(this.sourceToken),t.items.push({start:i}),this.onKeyLine=!0):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"explicit-key-ind":!n.sep&&!n.explicitKey?(n.start.push(this.sourceToken),n.explicitKey=!0):s||n.value?(i.push(this.sourceToken),t.items.push({start:i,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(n.explicitKey)if(n.sep)if(n.value)t.items.push({start:[],key:null,sep:[this.sourceToken]});else if(Li(n.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]});else if(Jg(n.key)&&!Li(n.sep,"newline")){const a=Va(n.start),o=n.key,u=n.sep;u.push(this.sourceToken),delete n.key,delete n.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:a,key:o,sep:u}]})}else i.length>0?n.sep=n.sep.concat(i,this.sourceToken):n.sep.push(this.sourceToken);else if(Li(n.start,"newline"))Object.assign(n,{key:null,sep:[this.sourceToken]});else{const a=Va(n.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:a,key:null,sep:[this.sourceToken]}]})}else n.sep?n.value||s?t.items.push({start:i,key:null,sep:[this.sourceToken]}):Li(n.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const a=this.flowScalar(this.type);s||n.value?(t.items.push({start:i,key:a,sep:[]}),this.onKeyLine=!0):n.sep?this.stack.push(a):(Object.assign(n,{key:a,sep:[]}),this.onKeyLine=!0);return}default:{const a=this.startBlockValue(t);if(a){if(a.type==="block-seq"){if(!n.explicitKey&&n.sep&&!Li(n.sep,"newline")){yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source});return}}else r&&t.items.push({start:i});this.stack.push(a);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(t){const n=t.items[t.items.length-1];switch(this.type){case"newline":if(n.value){const r="end"in n.value?n.value.end:void 0;(Array.isArray(r)?r[r.length-1]:void 0)?.type==="comment"?r?.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)t.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(n.start,t.indent)){const s=t.items[t.items.length-2]?.value?.end;if(Array.isArray(s)){Array.prototype.push.apply(s,n.start),s.push(this.sourceToken),t.items.pop();return}}n.start.push(this.sourceToken)}return;case"anchor":case"tag":if(n.value||this.indent<=t.indent)break;n.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==t.indent)break;n.value||Li(n.start,"seq-item-ind")?t.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return}if(this.indent>t.indent){const r=this.startBlockValue(t);if(r){this.stack.push(r);return}}yield*this.pop(),yield*this.step()}*flowCollection(t){const n=t.items[t.items.length-1];if(this.type==="flow-error-end"){let r;do yield*this.pop(),r=this.peek(1);while(r&&r.type==="flow-collection")}else if(t.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!n||n.sep?t.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return;case"map-value-ind":!n||n.value?t.items.push({start:[],key:null,sep:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!n||n.value?t.items.push({start:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const s=this.flowScalar(this.type);!n||n.value?t.items.push({start:[],key:s,sep:[]}):n.sep?this.stack.push(s):Object.assign(n,{key:s,sep:[]});return}case"flow-map-end":case"flow-seq-end":t.end.push(this.sourceToken);return}const r=this.startBlockValue(t);r?this.stack.push(r):(yield*this.pop(),yield*this.step())}else{const r=this.peek(2);if(r.type==="block-map"&&(this.type==="map-value-ind"&&r.indent===t.indent||this.type==="newline"&&!r.items[r.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&r.type!=="flow-collection"){const s=Gu(r),i=Va(s);Yg(t);const a=t.end.splice(1,t.end.length);a.push(this.sourceToken);const o={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:i,key:t,sep:a}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=o}else yield*this.lineEnd(t)}}flowScalar(t){if(this.onNewLine){let n=this.source.indexOf(`
163
+ `)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
164
+ `,n)+1}return{type:t,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(t){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const n=Gu(t),r=Va(n);return r.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const n=Gu(t),r=Va(n);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(t,n){return this.type!=="comment"||this.indent<=n?!1:t.every(r=>r.type==="newline"||r.type==="space")}*documentEnd(t){this.type!=="doc-mode"&&(t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(t){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function yv(e){const t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new Wg||null,prettyErrors:t}}function Dv(e,t={}){const{lineCounter:n,prettyErrors:r}=yv(t),s=new Nf(n?.addNewLine),i=new Ig(t);let a=null;for(const o of i.compose(s.parse(e),!0,e.length))if(!a)a=o;else if(a.options.logLevel!=="silent"){a.errors.push(new Mo(o.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return r&&n&&(a.errors.forEach(Tg(e,n)),a.warnings.forEach(Tg(e,n))),a}function bv(e,t,n){let r;const s=Dv(e,n);if(!s)return null;if(s.warnings.forEach(i=>ig(s.options.logLevel,i)),s.errors.length>0){if(s.options.logLevel!=="silent")throw s.errors[0];s.errors=[]}return s.toJS(Object.assign({reviver:r},n))}function vv(e,t,n){let r=null;if(Array.isArray(t)?r=t:n===void 0&&t&&(n=t),typeof n=="string"&&(n=n.length),typeof n=="number"){const s=Math.round(n);n=s<1?void 0:s>8?{indent:8}:{indent:s}}if(e===void 0){const{keepUndefined:s}=n??t??{};if(!s)return}return _a(e)&&!r?e.toString(n):new Bo(e,r,n).toString(n)}var Hg=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ev(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Tf,zg;function Av(){if(zg)return Tf;zg=1;function e(s){if(typeof s!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(s))}function t(s,i){for(var a="",o=0,u=-1,l=0,b,c=0;c<=s.length;++c){if(c<s.length)b=s.charCodeAt(c);else{if(b===47)break;b=47}if(b===47){if(!(u===c-1||l===1))if(u!==c-1&&l===2){if(a.length<2||o!==2||a.charCodeAt(a.length-1)!==46||a.charCodeAt(a.length-2)!==46){if(a.length>2){var T=a.lastIndexOf("/");if(T!==a.length-1){T===-1?(a="",o=0):(a=a.slice(0,T),o=a.length-1-a.lastIndexOf("/")),u=c,l=0;continue}}else if(a.length===2||a.length===1){a="",o=0,u=c,l=0;continue}}i&&(a.length>0?a+="/..":a="..",o=2)}else a.length>0?a+="/"+s.slice(u+1,c):a=s.slice(u+1,c),o=c-u-1;u=c,l=0}else b===46&&l!==-1?++l:l=-1}return a}function n(s,i){var a=i.dir||i.root,o=i.base||(i.name||"")+(i.ext||"");return a?a===i.root?a+o:a+s+o:o}var r={resolve:function(){for(var i="",a=!1,o,u=arguments.length-1;u>=-1&&!a;u--){var l;u>=0?l=arguments[u]:(o===void 0&&(o=process.cwd()),l=o),e(l),l.length!==0&&(i=l+"/"+i,a=l.charCodeAt(0)===47)}return i=t(i,!a),a?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(i){if(e(i),i.length===0)return".";var a=i.charCodeAt(0)===47,o=i.charCodeAt(i.length-1)===47;return i=t(i,!a),i.length===0&&!a&&(i="."),i.length>0&&o&&(i+="/"),a?"/"+i:i},isAbsolute:function(i){return e(i),i.length>0&&i.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var i,a=0;a<arguments.length;++a){var o=arguments[a];e(o),o.length>0&&(i===void 0?i=o:i+="/"+o)}return i===void 0?".":r.normalize(i)},relative:function(i,a){if(e(i),e(a),i===a||(i=r.resolve(i),a=r.resolve(a),i===a))return"";for(var o=1;o<i.length&&i.charCodeAt(o)===47;++o);for(var u=i.length,l=u-o,b=1;b<a.length&&a.charCodeAt(b)===47;++b);for(var c=a.length,T=c-b,K=l<T?l:T,ne=-1,O=0;O<=K;++O){if(O===K){if(T>K){if(a.charCodeAt(b+O)===47)return a.slice(b+O+1);if(O===0)return a.slice(b+O)}else l>K&&(i.charCodeAt(o+O)===47?ne=O:O===0&&(ne=0));break}var k=i.charCodeAt(o+O),me=a.charCodeAt(b+O);if(k!==me)break;k===47&&(ne=O)}var Se="";for(O=o+ne+1;O<=u;++O)(O===u||i.charCodeAt(O)===47)&&(Se.length===0?Se+="..":Se+="/..");return Se.length>0?Se+a.slice(b+ne):(b+=ne,a.charCodeAt(b)===47&&++b,a.slice(b))},_makeLong:function(i){return i},dirname:function(i){if(e(i),i.length===0)return".";for(var a=i.charCodeAt(0),o=a===47,u=-1,l=!0,b=i.length-1;b>=1;--b)if(a=i.charCodeAt(b),a===47){if(!l){u=b;break}}else l=!1;return u===-1?o?"/":".":o&&u===1?"//":i.slice(0,u)},basename:function(i,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');e(i);var o=0,u=-1,l=!0,b;if(a!==void 0&&a.length>0&&a.length<=i.length){if(a.length===i.length&&a===i)return"";var c=a.length-1,T=-1;for(b=i.length-1;b>=0;--b){var K=i.charCodeAt(b);if(K===47){if(!l){o=b+1;break}}else T===-1&&(l=!1,T=b+1),c>=0&&(K===a.charCodeAt(c)?--c===-1&&(u=b):(c=-1,u=T))}return o===u?u=T:u===-1&&(u=i.length),i.slice(o,u)}else{for(b=i.length-1;b>=0;--b)if(i.charCodeAt(b)===47){if(!l){o=b+1;break}}else u===-1&&(l=!1,u=b+1);return u===-1?"":i.slice(o,u)}},extname:function(i){e(i);for(var a=-1,o=0,u=-1,l=!0,b=0,c=i.length-1;c>=0;--c){var T=i.charCodeAt(c);if(T===47){if(!l){o=c+1;break}continue}u===-1&&(l=!1,u=c+1),T===46?a===-1?a=c:b!==1&&(b=1):a!==-1&&(b=-1)}return a===-1||u===-1||b===0||b===1&&a===u-1&&a===o+1?"":i.slice(a,u)},format:function(i){if(i===null||typeof i!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof i);return n("/",i)},parse:function(i){e(i);var a={root:"",dir:"",base:"",ext:"",name:""};if(i.length===0)return a;var o=i.charCodeAt(0),u=o===47,l;u?(a.root="/",l=1):l=0;for(var b=-1,c=0,T=-1,K=!0,ne=i.length-1,O=0;ne>=l;--ne){if(o=i.charCodeAt(ne),o===47){if(!K){c=ne+1;break}continue}T===-1&&(K=!1,T=ne+1),o===46?b===-1?b=ne:O!==1&&(O=1):b!==-1&&(O=-1)}return b===-1||T===-1||O===0||O===1&&b===T-1&&b===c+1?T!==-1&&(c===0&&u?a.base=a.name=i.slice(1,T):a.base=a.name=i.slice(c,T)):(c===0&&u?(a.name=i.slice(1,b),a.base=i.slice(1,T)):(a.name=i.slice(c,b),a.base=i.slice(c,T)),a.ext=i.slice(b,T)),c>0?a.dir=i.slice(0,c-1):u&&(a.dir="/"),a},sep:"/",delimiter:":",win32:null,posix:null};return r.posix=r,Tf=r,Tf}var Hi=Av(),_f={exports:{}},Xg;function wv(){return Xg||(Xg=1,(function(e,t){(function(n){e.exports=n()})(function(){var n=(Zt,ct)=>()=>(ct||Zt((ct={exports:{}}).exports,ct),ct.exports),r=n((Zt,ct)=>{var tt=function(dt){return dt&&dt.Math==Math&&dt};ct.exports=tt(typeof globalThis=="object"&&globalThis)||tt(typeof window=="object"&&window)||tt(typeof self=="object"&&self)||tt(typeof Hg=="object"&&Hg)||(function(){return this})()||Function("return this")()}),s=n((Zt,ct)=>{ct.exports=function(tt){try{return!!tt()}catch{return!0}}}),i=n((Zt,ct)=>{var tt=s();ct.exports=!tt(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})}),a=n((Zt,ct)=>{var tt=s();ct.exports=!tt(function(){var dt=(function(){}).bind();return typeof dt!="function"||dt.hasOwnProperty("prototype")})}),o=n((Zt,ct)=>{var tt=a(),dt=Function.prototype.call;ct.exports=tt?dt.bind(dt):function(){return dt.apply(dt,arguments)}}),u=n(Zt=>{var ct={}.propertyIsEnumerable,tt=Object.getOwnPropertyDescriptor,dt=tt&&!ct.call({1:2},1);Zt.f=dt?function(ut){var Tt=tt(this,ut);return!!Tt&&Tt.enumerable}:ct}),l=n((Zt,ct)=>{ct.exports=function(tt,dt){return{enumerable:!(tt&1),configurable:!(tt&2),writable:!(tt&4),value:dt}}}),b=n((Zt,ct)=>{var tt=a(),dt=Function.prototype,ut=dt.call,Tt=tt&&dt.bind.bind(ut,ut);ct.exports=tt?Tt:function(Ot){return function(){return ut.apply(Ot,arguments)}}}),c=n((Zt,ct)=>{var tt=b(),dt=tt({}.toString),ut=tt("".slice);ct.exports=function(Tt){return ut(dt(Tt),8,-1)}}),T=n((Zt,ct)=>{var tt=b(),dt=s(),ut=c(),Tt=Object,Ot=tt("".split);ct.exports=dt(function(){return!Tt("z").propertyIsEnumerable(0)})?function(Xt){return ut(Xt)=="String"?Ot(Xt,""):Tt(Xt)}:Tt}),K=n((Zt,ct)=>{ct.exports=function(tt){return tt==null}}),ne=n((Zt,ct)=>{var tt=K(),dt=TypeError;ct.exports=function(ut){if(tt(ut))throw dt("Can't call method on "+ut);return ut}}),O=n((Zt,ct)=>{var tt=T(),dt=ne();ct.exports=function(ut){return tt(dt(ut))}}),k=n((Zt,ct)=>{var tt=typeof document=="object"&&document.all,dt=typeof tt>"u"&&tt!==void 0;ct.exports={all:tt,IS_HTMLDDA:dt}}),me=n((Zt,ct)=>{var tt=k(),dt=tt.all;ct.exports=tt.IS_HTMLDDA?function(ut){return typeof ut=="function"||ut===dt}:function(ut){return typeof ut=="function"}}),Se=n((Zt,ct)=>{var tt=me(),dt=k(),ut=dt.all;ct.exports=dt.IS_HTMLDDA?function(Tt){return typeof Tt=="object"?Tt!==null:tt(Tt)||Tt===ut}:function(Tt){return typeof Tt=="object"?Tt!==null:tt(Tt)}}),_e=n((Zt,ct)=>{var tt=r(),dt=me(),ut=function(Tt){return dt(Tt)?Tt:void 0};ct.exports=function(Tt,Ot){return arguments.length<2?ut(tt[Tt]):tt[Tt]&&tt[Tt][Ot]}}),Ye=n((Zt,ct)=>{var tt=b();ct.exports=tt({}.isPrototypeOf)}),ve=n((Zt,ct)=>{var tt=_e();ct.exports=tt("navigator","userAgent")||""}),Pe=n((Zt,ct)=>{var tt=r(),dt=ve(),ut=tt.process,Tt=tt.Deno,Ot=ut&&ut.versions||Tt&&Tt.version,Xt=Ot&&Ot.v8,Gt,Qt;Xt&&(Gt=Xt.split("."),Qt=Gt[0]>0&&Gt[0]<4?1:+(Gt[0]+Gt[1])),!Qt&&dt&&(Gt=dt.match(/Edge\/(\d+)/),(!Gt||Gt[1]>=74)&&(Gt=dt.match(/Chrome\/(\d+)/),Gt&&(Qt=+Gt[1]))),ct.exports=Qt}),Fe=n((Zt,ct)=>{var tt=Pe(),dt=s();ct.exports=!!Object.getOwnPropertySymbols&&!dt(function(){var ut=Symbol();return!String(ut)||!(Object(ut)instanceof Symbol)||!Symbol.sham&&tt&&tt<41})}),Be=n((Zt,ct)=>{var tt=Fe();ct.exports=tt&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}),xe=n((Zt,ct)=>{var tt=_e(),dt=me(),ut=Ye(),Tt=Be(),Ot=Object;ct.exports=Tt?function(Xt){return typeof Xt=="symbol"}:function(Xt){var Gt=tt("Symbol");return dt(Gt)&&ut(Gt.prototype,Ot(Xt))}}),Je=n((Zt,ct)=>{var tt=String;ct.exports=function(dt){try{return tt(dt)}catch{return"Object"}}}),ze=n((Zt,ct)=>{var tt=me(),dt=Je(),ut=TypeError;ct.exports=function(Tt){if(tt(Tt))return Tt;throw ut(dt(Tt)+" is not a function")}}),de=n((Zt,ct)=>{var tt=ze(),dt=K();ct.exports=function(ut,Tt){var Ot=ut[Tt];return dt(Ot)?void 0:tt(Ot)}}),Ze=n((Zt,ct)=>{var tt=o(),dt=me(),ut=Se(),Tt=TypeError;ct.exports=function(Ot,Xt){var Gt,Qt;if(Xt==="string"&&dt(Gt=Ot.toString)&&!ut(Qt=tt(Gt,Ot))||dt(Gt=Ot.valueOf)&&!ut(Qt=tt(Gt,Ot))||Xt!=="string"&&dt(Gt=Ot.toString)&&!ut(Qt=tt(Gt,Ot)))return Qt;throw Tt("Can't convert object to primitive value")}}),at=n((Zt,ct)=>{ct.exports=!1}),He=n((Zt,ct)=>{var tt=r(),dt=Object.defineProperty;ct.exports=function(ut,Tt){try{dt(tt,ut,{value:Tt,configurable:!0,writable:!0})}catch{tt[ut]=Tt}return Tt}}),ft=n((Zt,ct)=>{var tt=r(),dt=He(),ut="__core-js_shared__",Tt=tt[ut]||dt(ut,{});ct.exports=Tt}),Lt=n((Zt,ct)=>{var tt=at(),dt=ft();(ct.exports=function(ut,Tt){return dt[ut]||(dt[ut]=Tt!==void 0?Tt:{})})("versions",[]).push({version:"3.26.1",mode:tt?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE",source:"https://github.com/zloirock/core-js"})}),qt=n((Zt,ct)=>{var tt=ne(),dt=Object;ct.exports=function(ut){return dt(tt(ut))}}),ln=n((Zt,ct)=>{var tt=b(),dt=qt(),ut=tt({}.hasOwnProperty);ct.exports=Object.hasOwn||function(Tt,Ot){return ut(dt(Tt),Ot)}}),rn=n((Zt,ct)=>{var tt=b(),dt=0,ut=Math.random(),Tt=tt(1 .toString);ct.exports=function(Ot){return"Symbol("+(Ot===void 0?"":Ot)+")_"+Tt(++dt+ut,36)}}),Pn=n((Zt,ct)=>{var tt=r(),dt=Lt(),ut=ln(),Tt=rn(),Ot=Fe(),Xt=Be(),Gt=dt("wks"),Qt=tt.Symbol,mn=Qt&&Qt.for,vn=Xt?Qt:Qt&&Qt.withoutSetter||Tt;ct.exports=function(wn){if(!ut(Gt,wn)||!(Ot||typeof Gt[wn]=="string")){var gn="Symbol."+wn;Ot&&ut(Qt,wn)?Gt[wn]=Qt[wn]:Xt&&mn?Gt[wn]=mn(gn):Gt[wn]=vn(gn)}return Gt[wn]}}),Gn=n((Zt,ct)=>{var tt=o(),dt=Se(),ut=xe(),Tt=de(),Ot=Ze(),Xt=Pn(),Gt=TypeError,Qt=Xt("toPrimitive");ct.exports=function(mn,vn){if(!dt(mn)||ut(mn))return mn;var wn=Tt(mn,Qt),gn;if(wn){if(vn===void 0&&(vn="default"),gn=tt(wn,mn,vn),!dt(gn)||ut(gn))return gn;throw Gt("Can't convert object to primitive value")}return vn===void 0&&(vn="number"),Ot(mn,vn)}}),Sr=n((Zt,ct)=>{var tt=Gn(),dt=xe();ct.exports=function(ut){var Tt=tt(ut,"string");return dt(Tt)?Tt:Tt+""}}),Dr=n((Zt,ct)=>{var tt=r(),dt=Se(),ut=tt.document,Tt=dt(ut)&&dt(ut.createElement);ct.exports=function(Ot){return Tt?ut.createElement(Ot):{}}}),Zr=n((Zt,ct)=>{var tt=i(),dt=s(),ut=Dr();ct.exports=!tt&&!dt(function(){return Object.defineProperty(ut("div"),"a",{get:function(){return 7}}).a!=7})}),js=n(Zt=>{var ct=i(),tt=o(),dt=u(),ut=l(),Tt=O(),Ot=Sr(),Xt=ln(),Gt=Zr(),Qt=Object.getOwnPropertyDescriptor;Zt.f=ct?Qt:function(mn,vn){if(mn=Tt(mn),vn=Ot(vn),Gt)try{return Qt(mn,vn)}catch{}if(Xt(mn,vn))return ut(!tt(dt.f,mn,vn),mn[vn])}}),Ii=n((Zt,ct)=>{var tt=i(),dt=s();ct.exports=tt&&dt(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})}),Xs=n((Zt,ct)=>{var tt=Se(),dt=String,ut=TypeError;ct.exports=function(Tt){if(tt(Tt))return Tt;throw ut(dt(Tt)+" is not an object")}}),ir=n(Zt=>{var ct=i(),tt=Zr(),dt=Ii(),ut=Xs(),Tt=Sr(),Ot=TypeError,Xt=Object.defineProperty,Gt=Object.getOwnPropertyDescriptor,Qt="enumerable",mn="configurable",vn="writable";Zt.f=ct?dt?function(wn,gn,Te){if(ut(wn),gn=Tt(gn),ut(Te),typeof wn=="function"&&gn==="prototype"&&"value"in Te&&vn in Te&&!Te[vn]){var Nn=Gt(wn,gn);Nn&&Nn[vn]&&(wn[gn]=Te.value,Te={configurable:mn in Te?Te[mn]:Nn[mn],enumerable:Qt in Te?Te[Qt]:Nn[Qt],writable:!1})}return Xt(wn,gn,Te)}:Xt:function(wn,gn,Te){if(ut(wn),gn=Tt(gn),ut(Te),tt)try{return Xt(wn,gn,Te)}catch{}if("get"in Te||"set"in Te)throw Ot("Accessors not supported");return"value"in Te&&(wn[gn]=Te.value),wn}}),dl=n((Zt,ct)=>{var tt=i(),dt=ir(),ut=l();ct.exports=tt?function(Tt,Ot,Xt){return dt.f(Tt,Ot,ut(1,Xt))}:function(Tt,Ot,Xt){return Tt[Ot]=Xt,Tt}}),Gf=n((Zt,ct)=>{var tt=i(),dt=ln(),ut=Function.prototype,Tt=tt&&Object.getOwnPropertyDescriptor,Ot=dt(ut,"name"),Xt=Ot&&(function(){}).name==="something",Gt=Ot&&(!tt||tt&&Tt(ut,"name").configurable);ct.exports={EXISTS:Ot,PROPER:Xt,CONFIGURABLE:Gt}}),Za=n((Zt,ct)=>{var tt=b(),dt=me(),ut=ft(),Tt=tt(Function.toString);dt(ut.inspectSource)||(ut.inspectSource=function(Ot){return Tt(Ot)}),ct.exports=ut.inspectSource}),Jf=n((Zt,ct)=>{var tt=r(),dt=me(),ut=tt.WeakMap;ct.exports=dt(ut)&&/native code/.test(String(ut))}),Or=n((Zt,ct)=>{var tt=Lt(),dt=rn(),ut=tt("keys");ct.exports=function(Tt){return ut[Tt]||(ut[Tt]=dt(Tt))}}),hl=n((Zt,ct)=>{ct.exports={}}),Yf=n((Zt,ct)=>{var tt=Jf(),dt=r(),ut=Se(),Tt=dl(),Ot=ln(),Xt=ft(),Gt=Or(),Qt=hl(),mn="Object already initialized",vn=dt.TypeError,wn=dt.WeakMap,gn,Te,Nn,jn=function(Ve){return Nn(Ve)?Te(Ve):gn(Ve,{})},rr=function(Ve){return function(rs){var wi;if(!ut(rs)||(wi=Te(rs)).type!==Ve)throw vn("Incompatible receiver, "+Ve+" required");return wi}};tt||Xt.state?(Kn=Xt.state||(Xt.state=new wn),Kn.get=Kn.get,Kn.has=Kn.has,Kn.set=Kn.set,gn=function(Ve,rs){if(Kn.has(Ve))throw vn(mn);return rs.facade=Ve,Kn.set(Ve,rs),rs},Te=function(Ve){return Kn.get(Ve)||{}},Nn=function(Ve){return Kn.has(Ve)}):(Tr=Gt("state"),Qt[Tr]=!0,gn=function(Ve,rs){if(Ot(Ve,Tr))throw vn(mn);return rs.facade=Ve,Tt(Ve,Tr,rs),rs},Te=function(Ve){return Ot(Ve,Tr)?Ve[Tr]:{}},Nn=function(Ve){return Ot(Ve,Tr)});var Kn,Tr;ct.exports={set:gn,get:Te,has:Nn,enforce:jn,getterFor:rr}}),Di=n((Zt,ct)=>{var tt=s(),dt=me(),ut=ln(),Tt=i(),Ot=Gf().CONFIGURABLE,Xt=Za(),Gt=Yf(),Qt=Gt.enforce,mn=Gt.get,vn=Object.defineProperty,wn=Tt&&!tt(function(){return vn(function(){},"length",{value:8}).length!==8}),gn=String(String).split("String"),Te=ct.exports=function(Nn,jn,rr){String(jn).slice(0,7)==="Symbol("&&(jn="["+String(jn).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),rr&&rr.getter&&(jn="get "+jn),rr&&rr.setter&&(jn="set "+jn),(!ut(Nn,"name")||Ot&&Nn.name!==jn)&&(Tt?vn(Nn,"name",{value:jn,configurable:!0}):Nn.name=jn),wn&&rr&&ut(rr,"arity")&&Nn.length!==rr.arity&&vn(Nn,"length",{value:rr.arity});try{rr&&ut(rr,"constructor")&&rr.constructor?Tt&&vn(Nn,"prototype",{writable:!1}):Nn.prototype&&(Nn.prototype=void 0)}catch{}var Kn=Qt(Nn);return ut(Kn,"source")||(Kn.source=gn.join(typeof jn=="string"?jn:"")),Nn};Function.prototype.toString=Te(function(){return dt(this)&&mn(this).source||Xt(this)},"toString")}),eo=n((Zt,ct)=>{var tt=me(),dt=ir(),ut=Di(),Tt=He();ct.exports=function(Ot,Xt,Gt,Qt){Qt||(Qt={});var mn=Qt.enumerable,vn=Qt.name!==void 0?Qt.name:Xt;if(tt(Gt)&&ut(Gt,vn,Qt),Qt.global)mn?Ot[Xt]=Gt:Tt(Xt,Gt);else{try{Qt.unsafe?Ot[Xt]&&(mn=!0):delete Ot[Xt]}catch{}mn?Ot[Xt]=Gt:dt.f(Ot,Xt,{value:Gt,enumerable:!1,configurable:!Qt.nonConfigurable,writable:!Qt.nonWritable})}return Ot}}),bi=n((Zt,ct)=>{var tt=Math.ceil,dt=Math.floor;ct.exports=Math.trunc||function(ut){var Tt=+ut;return(Tt>0?dt:tt)(Tt)}}),Jo=n((Zt,ct)=>{var tt=bi();ct.exports=function(dt){var ut=+dt;return ut!==ut||ut===0?0:tt(ut)}}),Hf=n((Zt,ct)=>{var tt=Jo(),dt=Math.max,ut=Math.min;ct.exports=function(Tt,Ot){var Xt=tt(Tt);return Xt<0?dt(Xt+Ot,0):ut(Xt,Ot)}}),zf=n((Zt,ct)=>{var tt=Jo(),dt=Math.min;ct.exports=function(ut){return ut>0?dt(tt(ut),9007199254740991):0}}),na=n((Zt,ct)=>{var tt=zf();ct.exports=function(dt){return tt(dt.length)}}),ml=n((Zt,ct)=>{var tt=O(),dt=Hf(),ut=na(),Tt=function(Ot){return function(Xt,Gt,Qt){var mn=tt(Xt),vn=ut(mn),wn=dt(Qt,vn),gn;if(Ot&&Gt!=Gt){for(;vn>wn;)if(gn=mn[wn++],gn!=gn)return!0}else for(;vn>wn;wn++)if((Ot||wn in mn)&&mn[wn]===Gt)return Ot||wn||0;return!Ot&&-1}};ct.exports={includes:Tt(!0),indexOf:Tt(!1)}}),Xf=n((Zt,ct)=>{var tt=b(),dt=ln(),ut=O(),Tt=ml().indexOf,Ot=hl(),Xt=tt([].push);ct.exports=function(Gt,Qt){var mn=ut(Gt),vn=0,wn=[],gn;for(gn in mn)!dt(Ot,gn)&&dt(mn,gn)&&Xt(wn,gn);for(;Qt.length>vn;)dt(mn,gn=Qt[vn++])&&(~Tt(wn,gn)||Xt(wn,gn));return wn}}),Yo=n((Zt,ct)=>{ct.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]}),Qf=n(Zt=>{var ct=Xf(),tt=Yo(),dt=tt.concat("length","prototype");Zt.f=Object.getOwnPropertyNames||function(ut){return ct(ut,dt)}}),Kf=n(Zt=>{Zt.f=Object.getOwnPropertySymbols}),gl=n((Zt,ct)=>{var tt=_e(),dt=b(),ut=Qf(),Tt=Kf(),Ot=Xs(),Xt=dt([].concat);ct.exports=tt("Reflect","ownKeys")||function(Gt){var Qt=ut.f(Ot(Gt)),mn=Tt.f;return mn?Xt(Qt,mn(Gt)):Qt}}),yl=n((Zt,ct)=>{var tt=ln(),dt=gl(),ut=js(),Tt=ir();ct.exports=function(Ot,Xt,Gt){for(var Qt=dt(Xt),mn=Tt.f,vn=ut.f,wn=0;wn<Qt.length;wn++){var gn=Qt[wn];!tt(Ot,gn)&&!(Gt&&tt(Gt,gn))&&mn(Ot,gn,vn(Xt,gn))}}}),Zf=n((Zt,ct)=>{var tt=s(),dt=me(),ut=/#|\.prototype\./,Tt=function(mn,vn){var wn=Xt[Ot(mn)];return wn==Qt?!0:wn==Gt?!1:dt(vn)?tt(vn):!!vn},Ot=Tt.normalize=function(mn){return String(mn).replace(ut,".").toLowerCase()},Xt=Tt.data={},Gt=Tt.NATIVE="N",Qt=Tt.POLYFILL="P";ct.exports=Tt}),to=n((Zt,ct)=>{var tt=r(),dt=js().f,ut=dl(),Tt=eo(),Ot=He(),Xt=yl(),Gt=Zf();ct.exports=function(Qt,mn){var vn=Qt.target,wn=Qt.global,gn=Qt.stat,Te,Nn,jn,rr,Kn,Tr;if(wn?Nn=tt:gn?Nn=tt[vn]||Ot(vn,{}):Nn=(tt[vn]||{}).prototype,Nn)for(jn in mn){if(Kn=mn[jn],Qt.dontCallGetSet?(Tr=dt(Nn,jn),rr=Tr&&Tr.value):rr=Nn[jn],Te=Gt(wn?jn:vn+(gn?".":"#")+jn,Qt.forced),!Te&&rr!==void 0){if(typeof Kn==typeof rr)continue;Xt(Kn,rr)}(Qt.sham||rr&&rr.sham)&&ut(Kn,"sham",!0),Tt(Nn,jn,Kn,Qt)}}}),Dl=n((Zt,ct)=>{var tt=c();ct.exports=Array.isArray||function(dt){return tt(dt)=="Array"}}),ep=n((Zt,ct)=>{var tt=TypeError,dt=9007199254740991;ct.exports=function(ut){if(ut>dt)throw tt("Maximum allowed index exceeded");return ut}}),tp=n((Zt,ct)=>{var tt=c(),dt=b();ct.exports=function(ut){if(tt(ut)==="Function")return dt(ut)}}),no=n((Zt,ct)=>{var tt=tp(),dt=ze(),ut=a(),Tt=tt(tt.bind);ct.exports=function(Ot,Xt){return dt(Ot),Xt===void 0?Ot:ut?Tt(Ot,Xt):function(){return Ot.apply(Xt,arguments)}}}),bl=n((Zt,ct)=>{var tt=Dl(),dt=na(),ut=ep(),Tt=no(),Ot=function(Xt,Gt,Qt,mn,vn,wn,gn,Te){for(var Nn=vn,jn=0,rr=gn?Tt(gn,Te):!1,Kn,Tr;jn<mn;)jn in Qt&&(Kn=rr?rr(Qt[jn],jn,Gt):Qt[jn],wn>0&&tt(Kn)?(Tr=dt(Kn),Nn=Ot(Xt,Gt,Kn,Tr,Nn,wn-1)-1):(ut(Nn+1),Xt[Nn]=Kn),Nn++),jn++;return Nn};ct.exports=Ot}),np=n((Zt,ct)=>{var tt=Pn(),dt=tt("toStringTag"),ut={};ut[dt]="z",ct.exports=String(ut)==="[object z]"}),vi=n((Zt,ct)=>{var tt=np(),dt=me(),ut=c(),Tt=Pn(),Ot=Tt("toStringTag"),Xt=Object,Gt=ut((function(){return arguments})())=="Arguments",Qt=function(mn,vn){try{return mn[vn]}catch{}};ct.exports=tt?ut:function(mn){var vn,wn,gn;return mn===void 0?"Undefined":mn===null?"Null":typeof(wn=Qt(vn=Xt(mn),Ot))=="string"?wn:Gt?ut(vn):(gn=ut(vn))=="Object"&&dt(vn.callee)?"Arguments":gn}}),Ei=n((Zt,ct)=>{var tt=b(),dt=s(),ut=me(),Tt=vi(),Ot=_e(),Xt=Za(),Gt=function(){},Qt=[],mn=Ot("Reflect","construct"),vn=/^\s*(?:class|function)\b/,wn=tt(vn.exec),gn=!vn.exec(Gt),Te=function(jn){if(!ut(jn))return!1;try{return mn(Gt,Qt,jn),!0}catch{return!1}},Nn=function(jn){if(!ut(jn))return!1;switch(Tt(jn)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return gn||!!wn(vn,Xt(jn))}catch{return!0}};Nn.sham=!0,ct.exports=!mn||dt(function(){var jn;return Te(Te.call)||!Te(Object)||!Te(function(){jn=!0})||jn})?Nn:Te}),rp=n((Zt,ct)=>{var tt=Dl(),dt=Ei(),ut=Se(),Tt=Pn(),Ot=Tt("species"),Xt=Array;ct.exports=function(Gt){var Qt;return tt(Gt)&&(Qt=Gt.constructor,dt(Qt)&&(Qt===Xt||tt(Qt.prototype))?Qt=void 0:ut(Qt)&&(Qt=Qt[Ot],Qt===null&&(Qt=void 0))),Qt===void 0?Xt:Qt}}),Ai=n((Zt,ct)=>{var tt=rp();ct.exports=function(dt,ut){return new(tt(dt))(ut===0?0:ut)}}),vl=n(()=>{var Zt=to(),ct=bl(),tt=ze(),dt=qt(),ut=na(),Tt=Ai();Zt({target:"Array",proto:!0},{flatMap:function(Ot){var Xt=dt(this),Gt=ut(Xt),Qt;return tt(Ot),Qt=Tt(Xt,0),Qt.length=ct(Qt,Xt,Xt,Gt,0,1,Ot,arguments.length>1?arguments[1]:void 0),Qt}})}),El=n((Zt,ct)=>{ct.exports={}}),sp=n((Zt,ct)=>{var tt=Pn(),dt=El(),ut=tt("iterator"),Tt=Array.prototype;ct.exports=function(Ot){return Ot!==void 0&&(dt.Array===Ot||Tt[ut]===Ot)}}),Al=n((Zt,ct)=>{var tt=vi(),dt=de(),ut=K(),Tt=El(),Ot=Pn(),Xt=Ot("iterator");ct.exports=function(Gt){if(!ut(Gt))return dt(Gt,Xt)||dt(Gt,"@@iterator")||Tt[tt(Gt)]}}),ip=n((Zt,ct)=>{var tt=o(),dt=ze(),ut=Xs(),Tt=Je(),Ot=Al(),Xt=TypeError;ct.exports=function(Gt,Qt){var mn=arguments.length<2?Ot(Gt):Qt;if(dt(mn))return ut(tt(mn,Gt));throw Xt(Tt(Gt)+" is not iterable")}}),wl=n((Zt,ct)=>{var tt=o(),dt=Xs(),ut=de();ct.exports=function(Tt,Ot,Xt){var Gt,Qt;dt(Tt);try{if(Gt=ut(Tt,"return"),!Gt){if(Ot==="throw")throw Xt;return Xt}Gt=tt(Gt,Tt)}catch(mn){Qt=!0,Gt=mn}if(Ot==="throw")throw Xt;if(Qt)throw Gt;return dt(Gt),Xt}}),ap=n((Zt,ct)=>{var tt=no(),dt=o(),ut=Xs(),Tt=Je(),Ot=sp(),Xt=na(),Gt=Ye(),Qt=ip(),mn=Al(),vn=wl(),wn=TypeError,gn=function(Nn,jn){this.stopped=Nn,this.result=jn},Te=gn.prototype;ct.exports=function(Nn,jn,rr){var Kn=rr&&rr.that,Tr=!!(rr&&rr.AS_ENTRIES),Ve=!!(rr&&rr.IS_RECORD),rs=!!(rr&&rr.IS_ITERATOR),wi=!!(rr&&rr.INTERRUPTED),Oi=tt(jn,Kn),bs,ii,Jr,so,Hr,io,ai,ra=function(is){return bs&&vn(bs,"normal",is),new gn(!0,is)},sa=function(is){return Tr?(ut(is),wi?Oi(is[0],is[1],ra):Oi(is[0],is[1])):wi?Oi(is,ra):Oi(is)};if(Ve)bs=Nn.iterator;else if(rs)bs=Nn;else{if(ii=mn(Nn),!ii)throw wn(Tt(Nn)+" is not iterable");if(Ot(ii)){for(Jr=0,so=Xt(Nn);so>Jr;Jr++)if(Hr=sa(Nn[Jr]),Hr&&Gt(Te,Hr))return Hr;return new gn(!1)}bs=Qt(Nn,ii)}for(io=Ve?Nn.next:bs.next;!(ai=dt(io,bs)).done;){try{Hr=sa(ai.value)}catch(is){vn(bs,"throw",is)}if(typeof Hr=="object"&&Hr&&Gt(Te,Hr))return Hr}return new gn(!1)}}),xl=n((Zt,ct)=>{var tt=Sr(),dt=ir(),ut=l();ct.exports=function(Tt,Ot,Xt){var Gt=tt(Ot);Gt in Tt?dt.f(Tt,Gt,ut(0,Xt)):Tt[Gt]=Xt}}),ro=n(()=>{var Zt=to(),ct=ap(),tt=xl();Zt({target:"Object",stat:!0},{fromEntries:function(dt){var ut={};return ct(dt,function(Tt,Ot){tt(ut,Tt,Ot)},{AS_ENTRIES:!0}),ut}})}),Cl=n((Zt,ct)=>{var tt=Di(),dt=ir();ct.exports=function(ut,Tt,Ot){return Ot.get&&tt(Ot.get,Tt,{getter:!0}),Ot.set&&tt(Ot.set,Tt,{setter:!0}),dt.f(ut,Tt,Ot)}}),Sl=n((Zt,ct)=>{var tt=Xs();ct.exports=function(){var dt=tt(this),ut="";return dt.hasIndices&&(ut+="d"),dt.global&&(ut+="g"),dt.ignoreCase&&(ut+="i"),dt.multiline&&(ut+="m"),dt.dotAll&&(ut+="s"),dt.unicode&&(ut+="u"),dt.unicodeSets&&(ut+="v"),dt.sticky&&(ut+="y"),ut}}),Fl=n(()=>{var Zt=r(),ct=i(),tt=Cl(),dt=Sl(),ut=s(),Tt=Zt.RegExp,Ot=Tt.prototype,Xt=ct&&ut(function(){var Gt=!0;try{Tt(".","d")}catch{Gt=!1}var Qt={},mn="",vn=Gt?"dgimsy":"gimsy",wn=function(jn,rr){Object.defineProperty(Qt,jn,{get:function(){return mn+=rr,!0}})},gn={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};Gt&&(gn.hasIndices="d");for(var Te in gn)wn(Te,gn[Te]);var Nn=Object.getOwnPropertyDescriptor(Ot,"flags").get.call(Qt);return Nn!==vn||mn!==vn});Xt&&tt(Ot,"flags",{configurable:!0,get:dt})}),op=n(()=>{var Zt=to(),ct=r();Zt({global:!0,forced:ct.globalThis!==ct},{globalThis:ct})}),up=n(()=>{op()}),Ho=n(()=>{var Zt=to(),ct=bl(),tt=qt(),dt=na(),ut=Jo(),Tt=Ai();Zt({target:"Array",proto:!0},{flat:function(){var Ot=arguments.length?arguments[0]:void 0,Xt=tt(this),Gt=dt(Xt),Qt=Tt(Xt,0);return Qt.length=ct(Qt,Xt,Xt,Gt,0,Ot===void 0?1:ut(Ot)),Qt}})}),lp=n((Zt,ct)=>{var tt=["cliName","cliCategory","cliDescription"],dt=["_"],ut=["languageId"];function Tt(m,A){if(m==null)return{};var p=Ot(m,A),v,D;if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(m);for(D=0;D<f.length;D++)v=f[D],!(A.indexOf(v)>=0)&&Object.prototype.propertyIsEnumerable.call(m,v)&&(p[v]=m[v])}return p}function Ot(m,A){if(m==null)return{};var p={},v=Object.keys(m),D,f;for(f=0;f<v.length;f++)D=v[f],!(A.indexOf(D)>=0)&&(p[D]=m[D]);return p}vl(),ro(),Fl(),up(),Ho();var Xt=Object.create,Gt=Object.defineProperty,Qt=Object.getOwnPropertyDescriptor,mn=Object.getOwnPropertyNames,vn=Object.getPrototypeOf,wn=Object.prototype.hasOwnProperty,gn=(m,A)=>function(){return m&&(A=(0,m[mn(m)[0]])(m=0)),A},Te=(m,A)=>function(){return A||(0,m[mn(m)[0]])((A={exports:{}}).exports,A),A.exports},Nn=(m,A)=>{for(var p in A)Gt(m,p,{get:A[p],enumerable:!0})},jn=(m,A,p,v)=>{if(A&&typeof A=="object"||typeof A=="function")for(let D of mn(A))!wn.call(m,D)&&D!==p&&Gt(m,D,{get:()=>A[D],enumerable:!(v=Qt(A,D))||v.enumerable});return m},rr=(m,A,p)=>(p=m!=null?Xt(vn(m)):{},jn(!m||!m.__esModule?Gt(p,"default",{value:m,enumerable:!0}):p,m)),Kn=m=>jn(Gt({},"__esModule",{value:!0}),m),Tr,Ve=gn({"<define:process>"(){Tr={env:{},argv:[]}}}),rs=Te({"package.json"(m,A){A.exports={version:"2.8.8"}}}),wi=Te({"node_modules/diff/lib/diff/base.js"(m){Ve(),Object.defineProperty(m,"__esModule",{value:!0}),m.default=A;function A(){}A.prototype={diff:function(D,f){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},h=d.callback;typeof d=="function"&&(h=d,d={}),this.options=d;var E=this;function C($){return h?(setTimeout(function(){h(void 0,$)},0),!0):$}D=this.castInput(D),f=this.castInput(f),D=this.removeEmpty(this.tokenize(D)),f=this.removeEmpty(this.tokenize(f));var B=f.length,_=D.length,P=1,x=B+_,S=[{newPos:-1,components:[]}],R=this.extractCommon(S[0],f,D,0);if(S[0].newPos+1>=B&&R+1>=_)return C([{value:this.join(f),count:f.length}]);function X(){for(var $=-1*P;$<=P;$+=2){var Q=void 0,G=S[$-1],re=S[$+1],ee=(re?re.newPos:0)-$;G&&(S[$-1]=void 0);var De=G&&G.newPos+1<B,N=re&&0<=ee&&ee<_;if(!De&&!N){S[$]=void 0;continue}if(!De||N&&G.newPos<re.newPos?(Q=v(re),E.pushComponent(Q.components,void 0,!0)):(Q=G,Q.newPos++,E.pushComponent(Q.components,!0,void 0)),ee=E.extractCommon(Q,f,D,$),Q.newPos+1>=B&&ee+1>=_)return C(p(E,Q.components,f,D,E.useLongestToken));S[$]=Q}P++}if(h)(function $(){setTimeout(function(){if(P>x)return h();X()||$()},0)})();else for(;P<=x;){var te=X();if(te)return te}},pushComponent:function(D,f,d){var h=D[D.length-1];h&&h.added===f&&h.removed===d?D[D.length-1]={count:h.count+1,added:f,removed:d}:D.push({count:1,added:f,removed:d})},extractCommon:function(D,f,d,h){for(var E=f.length,C=d.length,B=D.newPos,_=B-h,P=0;B+1<E&&_+1<C&&this.equals(f[B+1],d[_+1]);)B++,_++,P++;return P&&D.components.push({count:P}),D.newPos=B,_},equals:function(D,f){return this.options.comparator?this.options.comparator(D,f):D===f||this.options.ignoreCase&&D.toLowerCase()===f.toLowerCase()},removeEmpty:function(D){for(var f=[],d=0;d<D.length;d++)D[d]&&f.push(D[d]);return f},castInput:function(D){return D},tokenize:function(D){return D.split("")},join:function(D){return D.join("")}};function p(D,f,d,h,E){for(var C=0,B=f.length,_=0,P=0;C<B;C++){var x=f[C];if(x.removed){if(x.value=D.join(h.slice(P,P+x.count)),P+=x.count,C&&f[C-1].added){var S=f[C-1];f[C-1]=f[C],f[C]=S}}else{if(!x.added&&E){var R=d.slice(_,_+x.count);R=R.map(function(te,$){var Q=h[P+$];return Q.length>te.length?Q:te}),x.value=D.join(R)}else x.value=D.join(d.slice(_,_+x.count));_+=x.count,x.added||(P+=x.count)}}var X=f[B-1];return B>1&&typeof X.value=="string"&&(X.added||X.removed)&&D.equals("",X.value)&&(f[B-2].value+=X.value,f.pop()),f}function v(D){return{newPos:D.newPos,components:D.components.slice(0)}}}}),Oi=Te({"node_modules/diff/lib/diff/array.js"(m){Ve(),Object.defineProperty(m,"__esModule",{value:!0}),m.diffArrays=D,m.arrayDiff=void 0;var A=p(wi());function p(f){return f&&f.__esModule?f:{default:f}}var v=new A.default;m.arrayDiff=v,v.tokenize=function(f){return f.slice()},v.join=v.removeEmpty=function(f){return f};function D(f,d,h){return v.diff(f,d,h)}}}),bs=Te({"src/document/doc-builders.js"(m,A){Ve();function p(j){return{type:"concat",parts:j}}function v(j){return{type:"indent",contents:j}}function D(j,y){return{type:"align",contents:y,n:j}}function f(j){let y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return{type:"group",id:y.id,contents:j,break:!!y.shouldBreak,expandedStates:y.expandedStates}}function d(j){return D(Number.NEGATIVE_INFINITY,j)}function h(j){return D({type:"root"},j)}function E(j){return D(-1,j)}function C(j,y){return f(j[0],Object.assign(Object.assign({},y),{},{expandedStates:j}))}function B(j){return{type:"fill",parts:j}}function _(j,y){let L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return{type:"if-break",breakContents:j,flatContents:y,groupId:L.groupId}}function P(j,y){return{type:"indent-if-break",contents:j,groupId:y.groupId,negate:y.negate}}function x(j){return{type:"line-suffix",contents:j}}var S={type:"line-suffix-boundary"},R={type:"break-parent"},X={type:"trim"},te={type:"line",hard:!0},$={type:"line",hard:!0,literal:!0},Q={type:"line"},G={type:"line",soft:!0},re=p([te,R]),ee=p([$,R]),De={type:"cursor",placeholder:Symbol("cursor")};function N(j,y){let L=[];for(let M=0;M<y.length;M++)M!==0&&L.push(j),L.push(y[M]);return p(L)}function J(j,y,L){let M=j;if(y>0){for(let q=0;q<Math.floor(y/L);++q)M=v(M);M=D(y%L,M),M=D(Number.NEGATIVE_INFINITY,M)}return M}function F(j,y){return{type:"label",label:j,contents:y}}A.exports={concat:p,join:N,line:Q,softline:G,hardline:re,literalline:ee,group:f,conditionalGroup:C,fill:B,lineSuffix:x,lineSuffixBoundary:S,cursor:De,breakParent:R,ifBreak:_,trim:X,indent:v,indentIfBreak:P,align:D,addAlignmentToDoc:J,markAsRoot:h,dedentToRoot:d,dedent:E,hardlineWithoutBreakParent:te,literallineWithoutBreakParent:$,label:F}}}),ii=Te({"src/common/end-of-line.js"(m,A){Ve();function p(d){let h=d.indexOf("\r");return h>=0?d.charAt(h+1)===`
165
+ `?"crlf":"cr":"lf"}function v(d){switch(d){case"cr":return"\r";case"crlf":return`\r
166
+ `;default:return`
167
+ `}}function D(d,h){let E;switch(h){case`
168
+ `:E=/\n/g;break;case"\r":E=/\r/g;break;case`\r
169
+ `:E=/\r\n/g;break;default:throw new Error(`Unexpected "eol" ${JSON.stringify(h)}.`)}let C=d.match(E);return C?C.length:0}function f(d){return d.replace(/\r\n?/g,`
170
+ `)}A.exports={guessEndOfLine:p,convertEndOfLineToChars:v,countEndOfLineChars:D,normalizeEndOfLine:f}}}),Jr=Te({"src/utils/get-last.js"(m,A){Ve();var p=v=>v[v.length-1];A.exports=p}});function so(){let{onlyFirst:m=!1}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},A=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(A,m?void 0:"g")}var Hr=gn({"node_modules/strip-ansi/node_modules/ansi-regex/index.js"(){Ve()}});function io(m){if(typeof m!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof m}\``);return m.replace(so(),"")}var ai=gn({"node_modules/strip-ansi/index.js"(){Ve(),Hr()}});function ra(m){return Number.isInteger(m)?m>=4352&&(m<=4447||m===9001||m===9002||11904<=m&&m<=12871&&m!==12351||12880<=m&&m<=19903||19968<=m&&m<=42182||43360<=m&&m<=43388||44032<=m&&m<=55203||63744<=m&&m<=64255||65040<=m&&m<=65049||65072<=m&&m<=65131||65281<=m&&m<=65376||65504<=m&&m<=65510||110592<=m&&m<=110593||127488<=m&&m<=127569||131072<=m&&m<=262141):!1}var sa=gn({"node_modules/is-fullwidth-code-point/index.js"(){Ve()}}),is=Te({"node_modules/emoji-regex/index.js"(m,A){Ve(),A.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}}}),Nl={};Nn(Nl,{default:()=>Tl});function Tl(m){if(typeof m!="string"||m.length===0||(m=io(m),m.length===0))return 0;m=m.replace((0,_l.default)()," ");let A=0;for(let p=0;p<m.length;p++){let v=m.codePointAt(p);v<=31||v>=127&&v<=159||v>=768&&v<=879||(v>65535&&p++,A+=ra(v)?2:1)}return A}var _l,cp=gn({"node_modules/string-width/index.js"(){Ve(),ai(),sa(),_l=rr(is())}}),Ll=Te({"src/utils/get-string-width.js"(m,A){Ve();var p=(cp(),Kn(Nl)).default,v=/[^\x20-\x7F]/;function D(f){return f?v.test(f)?p(f):f.length:0}A.exports=D}}),ia=Te({"src/document/doc-utils.js"(m,A){Ve();var p=Jr(),{literalline:v,join:D}=bs(),f=y=>Array.isArray(y)||y&&y.type==="concat",d=y=>{if(Array.isArray(y))return y;if(y.type!=="concat"&&y.type!=="fill")throw new Error("Expect doc type to be `concat` or `fill`.");return y.parts},h={};function E(y,L,M,q){let U=[y];for(;U.length>0;){let z=U.pop();if(z===h){M(U.pop());continue}if(M&&U.push(z,h),!L||L(z)!==!1)if(f(z)||z.type==="fill"){let se=d(z);for(let le=se.length,ge=le-1;ge>=0;--ge)U.push(se[ge])}else if(z.type==="if-break")z.flatContents&&U.push(z.flatContents),z.breakContents&&U.push(z.breakContents);else if(z.type==="group"&&z.expandedStates)if(q)for(let se=z.expandedStates.length,le=se-1;le>=0;--le)U.push(z.expandedStates[le]);else U.push(z.contents);else z.contents&&U.push(z.contents)}}function C(y,L){let M=new Map;return q(y);function q(z){if(M.has(z))return M.get(z);let se=U(z);return M.set(z,se),se}function U(z){if(Array.isArray(z))return L(z.map(q));if(z.type==="concat"||z.type==="fill"){let se=z.parts.map(q);return L(Object.assign(Object.assign({},z),{},{parts:se}))}if(z.type==="if-break"){let se=z.breakContents&&q(z.breakContents),le=z.flatContents&&q(z.flatContents);return L(Object.assign(Object.assign({},z),{},{breakContents:se,flatContents:le}))}if(z.type==="group"&&z.expandedStates){let se=z.expandedStates.map(q),le=se[0];return L(Object.assign(Object.assign({},z),{},{contents:le,expandedStates:se}))}if(z.contents){let se=q(z.contents);return L(Object.assign(Object.assign({},z),{},{contents:se}))}return L(z)}}function B(y,L,M){let q=M,U=!1;function z(se){let le=L(se);if(le!==void 0&&(U=!0,q=le),U)return!1}return E(y,z),q}function _(y){if(y.type==="group"&&y.break||y.type==="line"&&y.hard||y.type==="break-parent")return!0}function P(y){return B(y,_,!1)}function x(y){if(y.length>0){let L=p(y);!L.expandedStates&&!L.break&&(L.break="propagated")}return null}function S(y){let L=new Set,M=[];function q(z){if(z.type==="break-parent"&&x(M),z.type==="group"){if(M.push(z),L.has(z))return!1;L.add(z)}}function U(z){z.type==="group"&&M.pop().break&&x(M)}E(y,q,U,!0)}function R(y){return y.type==="line"&&!y.hard?y.soft?"":" ":y.type==="if-break"?y.flatContents||"":y}function X(y){return C(y,R)}var te=(y,L)=>y&&y.type==="line"&&y.hard&&L&&L.type==="break-parent";function $(y){if(!y)return y;if(f(y)||y.type==="fill"){let L=d(y);for(;L.length>1&&te(...L.slice(-2));)L.length-=2;if(L.length>0){let M=$(p(L));L[L.length-1]=M}return Array.isArray(y)?L:Object.assign(Object.assign({},y),{},{parts:L})}switch(y.type){case"align":case"indent":case"indent-if-break":case"group":case"line-suffix":case"label":{let L=$(y.contents);return Object.assign(Object.assign({},y),{},{contents:L})}case"if-break":{let L=$(y.breakContents),M=$(y.flatContents);return Object.assign(Object.assign({},y),{},{breakContents:L,flatContents:M})}}return y}function Q(y){return $(re(y))}function G(y){switch(y.type){case"fill":if(y.parts.every(M=>M===""))return"";break;case"group":if(!y.contents&&!y.id&&!y.break&&!y.expandedStates)return"";if(y.contents.type==="group"&&y.contents.id===y.id&&y.contents.break===y.break&&y.contents.expandedStates===y.expandedStates)return y.contents;break;case"align":case"indent":case"indent-if-break":case"line-suffix":if(!y.contents)return"";break;case"if-break":if(!y.flatContents&&!y.breakContents)return"";break}if(!f(y))return y;let L=[];for(let M of d(y)){if(!M)continue;let[q,...U]=f(M)?d(M):[M];typeof q=="string"&&typeof p(L)=="string"?L[L.length-1]+=q:L.push(q),L.push(...U)}return L.length===0?"":L.length===1?L[0]:Array.isArray(y)?L:Object.assign(Object.assign({},y),{},{parts:L})}function re(y){return C(y,L=>G(L))}function ee(y){let L=[],M=y.filter(Boolean);for(;M.length>0;){let q=M.shift();if(q){if(f(q)){M.unshift(...d(q));continue}if(L.length>0&&typeof p(L)=="string"&&typeof q=="string"){L[L.length-1]+=q;continue}L.push(q)}}return L}function De(y){return C(y,L=>Array.isArray(L)?ee(L):L.parts?Object.assign(Object.assign({},L),{},{parts:ee(L.parts)}):L)}function N(y){return C(y,L=>typeof L=="string"&&L.includes(`
171
+ `)?J(L):L)}function J(y){let L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:v;return D(L,y.split(`
172
+ `)).parts}function F(y){if(y.type==="line")return!0}function j(y){return B(y,F,!1)}A.exports={isConcat:f,getDocParts:d,willBreak:P,traverseDoc:E,findInDoc:B,mapDoc:C,propagateBreaks:S,removeLines:X,stripTrailingHardline:Q,normalizeParts:ee,normalizeDoc:De,cleanDoc:re,replaceTextEndOfLine:J,replaceEndOfLine:N,canBreak:j}}}),fp=Te({"src/document/doc-printer.js"(m,A){Ve();var{convertEndOfLineToChars:p}=ii(),v=Jr(),D=Ll(),{fill:f,cursor:d,indent:h}=bs(),{isConcat:E,getDocParts:C}=ia(),B,_=1,P=2;function x(){return{value:"",length:0,queue:[]}}function S(G,re){return X(G,{type:"indent"},re)}function R(G,re,ee){return re===Number.NEGATIVE_INFINITY?G.root||x():re<0?X(G,{type:"dedent"},ee):re?re.type==="root"?Object.assign(Object.assign({},G),{},{root:G}):X(G,{type:typeof re=="string"?"stringAlign":"numberAlign",n:re},ee):G}function X(G,re,ee){let De=re.type==="dedent"?G.queue.slice(0,-1):[...G.queue,re],N="",J=0,F=0,j=0;for(let se of De)switch(se.type){case"indent":M(),ee.useTabs?y(1):L(ee.tabWidth);break;case"stringAlign":M(),N+=se.n,J+=se.n.length;break;case"numberAlign":F+=1,j+=se.n;break;default:throw new Error(`Unexpected type '${se.type}'`)}return U(),Object.assign(Object.assign({},G),{},{value:N,length:J,queue:De});function y(se){N+=" ".repeat(se),J+=ee.tabWidth*se}function L(se){N+=" ".repeat(se),J+=se}function M(){ee.useTabs?q():U()}function q(){F>0&&y(F),z()}function U(){j>0&&L(j),z()}function z(){F=0,j=0}}function te(G){if(G.length===0)return 0;let re=0;for(;G.length>0&&typeof v(G)=="string"&&/^[\t ]*$/.test(v(G));)re+=G.pop().length;if(G.length>0&&typeof v(G)=="string"){let ee=v(G).replace(/[\t ]*$/,"");re+=v(G).length-ee.length,G[G.length-1]=ee}return re}function $(G,re,ee,De,N){let J=re.length,F=[G],j=[];for(;ee>=0;){if(F.length===0){if(J===0)return!0;F.push(re[--J]);continue}let{mode:y,doc:L}=F.pop();if(typeof L=="string")j.push(L),ee-=D(L);else if(E(L)||L.type==="fill"){let M=C(L);for(let q=M.length-1;q>=0;q--)F.push({mode:y,doc:M[q]})}else switch(L.type){case"indent":case"align":case"indent-if-break":case"label":F.push({mode:y,doc:L.contents});break;case"trim":ee+=te(j);break;case"group":{if(N&&L.break)return!1;let M=L.break?_:y,q=L.expandedStates&&M===_?v(L.expandedStates):L.contents;F.push({mode:M,doc:q});break}case"if-break":{let M=(L.groupId?B[L.groupId]||P:y)===_?L.breakContents:L.flatContents;M&&F.push({mode:y,doc:M});break}case"line":if(y===_||L.hard)return!0;L.soft||(j.push(" "),ee--);break;case"line-suffix":De=!0;break;case"line-suffix-boundary":if(De)return!1;break}}return!1}function Q(G,re){B={};let ee=re.printWidth,De=p(re.endOfLine),N=0,J=[{ind:x(),mode:_,doc:G}],F=[],j=!1,y=[];for(;J.length>0;){let{ind:M,mode:q,doc:U}=J.pop();if(typeof U=="string"){let z=De!==`
173
+ `?U.replace(/\n/g,De):U;F.push(z),N+=D(z)}else if(E(U)){let z=C(U);for(let se=z.length-1;se>=0;se--)J.push({ind:M,mode:q,doc:z[se]})}else switch(U.type){case"cursor":F.push(d.placeholder);break;case"indent":J.push({ind:S(M,re),mode:q,doc:U.contents});break;case"align":J.push({ind:R(M,U.n,re),mode:q,doc:U.contents});break;case"trim":N-=te(F);break;case"group":switch(q){case P:if(!j){J.push({ind:M,mode:U.break?_:P,doc:U.contents});break}case _:{j=!1;let z={ind:M,mode:P,doc:U.contents},se=ee-N,le=y.length>0;if(!U.break&&$(z,J,se,le))J.push(z);else if(U.expandedStates){let ge=v(U.expandedStates);if(U.break){J.push({ind:M,mode:_,doc:ge});break}else for(let ce=1;ce<U.expandedStates.length+1;ce++)if(ce>=U.expandedStates.length){J.push({ind:M,mode:_,doc:ge});break}else{let Le=U.expandedStates[ce],ie={ind:M,mode:P,doc:Le};if($(ie,J,se,le)){J.push(ie);break}}}else J.push({ind:M,mode:_,doc:U.contents});break}}U.id&&(B[U.id]=v(J).mode);break;case"fill":{let z=ee-N,{parts:se}=U;if(se.length===0)break;let[le,ge]=se,ce={ind:M,mode:P,doc:le},Le={ind:M,mode:_,doc:le},ie=$(ce,[],z,y.length>0,!0);if(se.length===1){ie?J.push(ce):J.push(Le);break}let We={ind:M,mode:P,doc:ge},he={ind:M,mode:_,doc:ge};if(se.length===2){ie?J.push(We,ce):J.push(he,Le);break}se.splice(0,2);let oe={ind:M,mode:q,doc:f(se)},Ue=se[0];$({ind:M,mode:P,doc:[le,ge,Ue]},[],z,y.length>0,!0)?J.push(oe,We,ce):ie?J.push(oe,he,ce):J.push(oe,he,Le);break}case"if-break":case"indent-if-break":{let z=U.groupId?B[U.groupId]:q;if(z===_){let se=U.type==="if-break"?U.breakContents:U.negate?U.contents:h(U.contents);se&&J.push({ind:M,mode:q,doc:se})}if(z===P){let se=U.type==="if-break"?U.flatContents:U.negate?h(U.contents):U.contents;se&&J.push({ind:M,mode:q,doc:se})}break}case"line-suffix":y.push({ind:M,mode:q,doc:U.contents});break;case"line-suffix-boundary":y.length>0&&J.push({ind:M,mode:q,doc:{type:"line",hard:!0}});break;case"line":switch(q){case P:if(U.hard)j=!0;else{U.soft||(F.push(" "),N+=1);break}case _:if(y.length>0){J.push({ind:M,mode:q,doc:U},...y.reverse()),y.length=0;break}U.literal?M.root?(F.push(De,M.root.value),N=M.root.length):(F.push(De),N=0):(N-=te(F),F.push(De+M.value),N=M.length);break}break;case"label":J.push({ind:M,mode:q,doc:U.contents});break}J.length===0&&y.length>0&&(J.push(...y.reverse()),y.length=0)}let L=F.indexOf(d.placeholder);if(L!==-1){let M=F.indexOf(d.placeholder,L+1),q=F.slice(0,L).join(""),U=F.slice(L+1,M).join(""),z=F.slice(M+1).join("");return{formatted:q+U+z,cursorNodeStart:q.length,cursorNodeText:U}}return{formatted:F.join("")}}A.exports={printDocToString:Q}}}),pp=Te({"src/document/doc-debug.js"(m,A){Ve();var{isConcat:p,getDocParts:v}=ia();function D(d){if(!d)return"";if(p(d)){let h=[];for(let E of v(d))if(p(E))h.push(...D(E).parts);else{let C=D(E);C!==""&&h.push(C)}return{type:"concat",parts:h}}return d.type==="if-break"?Object.assign(Object.assign({},d),{},{breakContents:D(d.breakContents),flatContents:D(d.flatContents)}):d.type==="group"?Object.assign(Object.assign({},d),{},{contents:D(d.contents),expandedStates:d.expandedStates&&d.expandedStates.map(D)}):d.type==="fill"?{type:"fill",parts:d.parts.map(D)}:d.contents?Object.assign(Object.assign({},d),{},{contents:D(d.contents)}):d}function f(d){let h=Object.create(null),E=new Set;return C(D(d));function C(_,P,x){if(typeof _=="string")return JSON.stringify(_);if(p(_)){let S=v(_).map(C).filter(Boolean);return S.length===1?S[0]:`[${S.join(", ")}]`}if(_.type==="line"){let S=Array.isArray(x)&&x[P+1]&&x[P+1].type==="break-parent";return _.literal?S?"literalline":"literallineWithoutBreakParent":_.hard?S?"hardline":"hardlineWithoutBreakParent":_.soft?"softline":"line"}if(_.type==="break-parent")return Array.isArray(x)&&x[P-1]&&x[P-1].type==="line"&&x[P-1].hard?void 0:"breakParent";if(_.type==="trim")return"trim";if(_.type==="indent")return"indent("+C(_.contents)+")";if(_.type==="align")return _.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+C(_.contents)+")":_.n<0?"dedent("+C(_.contents)+")":_.n.type==="root"?"markAsRoot("+C(_.contents)+")":"align("+JSON.stringify(_.n)+", "+C(_.contents)+")";if(_.type==="if-break")return"ifBreak("+C(_.breakContents)+(_.flatContents?", "+C(_.flatContents):"")+(_.groupId?(_.flatContents?"":', ""')+`, { groupId: ${B(_.groupId)} }`:"")+")";if(_.type==="indent-if-break"){let S=[];_.negate&&S.push("negate: true"),_.groupId&&S.push(`groupId: ${B(_.groupId)}`);let R=S.length>0?`, { ${S.join(", ")} }`:"";return`indentIfBreak(${C(_.contents)}${R})`}if(_.type==="group"){let S=[];_.break&&_.break!=="propagated"&&S.push("shouldBreak: true"),_.id&&S.push(`id: ${B(_.id)}`);let R=S.length>0?`, { ${S.join(", ")} }`:"";return _.expandedStates?`conditionalGroup([${_.expandedStates.map(X=>C(X)).join(",")}]${R})`:`group(${C(_.contents)}${R})`}if(_.type==="fill")return`fill([${_.parts.map(S=>C(S)).join(", ")}])`;if(_.type==="line-suffix")return"lineSuffix("+C(_.contents)+")";if(_.type==="line-suffix-boundary")return"lineSuffixBoundary";if(_.type==="label")return`label(${JSON.stringify(_.label)}, ${C(_.contents)})`;throw new Error("Unknown doc type "+_.type)}function B(_){if(typeof _!="symbol")return JSON.stringify(String(_));if(_ in h)return h[_];let P=String(_).slice(7,-1)||"symbol";for(let x=0;;x++){let S=P+(x>0?` #${x}`:"");if(!E.has(S))return E.add(S),h[_]=`Symbol.for(${JSON.stringify(S)})`}}}A.exports={printDocToDebug:f}}}),Tn=Te({"src/document/index.js"(m,A){Ve(),A.exports={builders:bs(),printer:fp(),utils:ia(),debug:pp()}}}),kl={};Nn(kl,{default:()=>dp});function dp(m){if(typeof m!="string")throw new TypeError("Expected a string");return m.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var hp=gn({"node_modules/escape-string-regexp/index.js"(){Ve()}}),Pl=Te({"node_modules/semver/internal/debug.js"(m,A){Ve();var p=typeof Tr=="object"&&Tr.env&&Tr.env.NODE_DEBUG&&/\bsemver\b/i.test(Tr.env.NODE_DEBUG)?function(){for(var v=arguments.length,D=new Array(v),f=0;f<v;f++)D[f]=arguments[f];return console.error("SEMVER",...D)}:()=>{};A.exports=p}}),Y=Te({"node_modules/semver/internal/constants.js"(m,A){Ve();var p="2.0.0",v=256,D=Number.MAX_SAFE_INTEGER||9007199254740991,f=16;A.exports={SEMVER_SPEC_VERSION:p,MAX_LENGTH:v,MAX_SAFE_INTEGER:D,MAX_SAFE_COMPONENT_LENGTH:f}}}),g=Te({"node_modules/semver/internal/re.js"(m,A){Ve();var{MAX_SAFE_COMPONENT_LENGTH:p}=Y(),v=Pl();m=A.exports={};var D=m.re=[],f=m.src=[],d=m.t={},h=0,E=(C,B,_)=>{let P=h++;v(C,P,B),d[C]=P,f[P]=B,D[P]=new RegExp(B,_?"g":void 0)};E("NUMERICIDENTIFIER","0|[1-9]\\d*"),E("NUMERICIDENTIFIERLOOSE","[0-9]+"),E("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),E("MAINVERSION",`(${f[d.NUMERICIDENTIFIER]})\\.(${f[d.NUMERICIDENTIFIER]})\\.(${f[d.NUMERICIDENTIFIER]})`),E("MAINVERSIONLOOSE",`(${f[d.NUMERICIDENTIFIERLOOSE]})\\.(${f[d.NUMERICIDENTIFIERLOOSE]})\\.(${f[d.NUMERICIDENTIFIERLOOSE]})`),E("PRERELEASEIDENTIFIER",`(?:${f[d.NUMERICIDENTIFIER]}|${f[d.NONNUMERICIDENTIFIER]})`),E("PRERELEASEIDENTIFIERLOOSE",`(?:${f[d.NUMERICIDENTIFIERLOOSE]}|${f[d.NONNUMERICIDENTIFIER]})`),E("PRERELEASE",`(?:-(${f[d.PRERELEASEIDENTIFIER]}(?:\\.${f[d.PRERELEASEIDENTIFIER]})*))`),E("PRERELEASELOOSE",`(?:-?(${f[d.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${f[d.PRERELEASEIDENTIFIERLOOSE]})*))`),E("BUILDIDENTIFIER","[0-9A-Za-z-]+"),E("BUILD",`(?:\\+(${f[d.BUILDIDENTIFIER]}(?:\\.${f[d.BUILDIDENTIFIER]})*))`),E("FULLPLAIN",`v?${f[d.MAINVERSION]}${f[d.PRERELEASE]}?${f[d.BUILD]}?`),E("FULL",`^${f[d.FULLPLAIN]}$`),E("LOOSEPLAIN",`[v=\\s]*${f[d.MAINVERSIONLOOSE]}${f[d.PRERELEASELOOSE]}?${f[d.BUILD]}?`),E("LOOSE",`^${f[d.LOOSEPLAIN]}$`),E("GTLT","((?:<|>)?=?)"),E("XRANGEIDENTIFIERLOOSE",`${f[d.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),E("XRANGEIDENTIFIER",`${f[d.NUMERICIDENTIFIER]}|x|X|\\*`),E("XRANGEPLAIN",`[v=\\s]*(${f[d.XRANGEIDENTIFIER]})(?:\\.(${f[d.XRANGEIDENTIFIER]})(?:\\.(${f[d.XRANGEIDENTIFIER]})(?:${f[d.PRERELEASE]})?${f[d.BUILD]}?)?)?`),E("XRANGEPLAINLOOSE",`[v=\\s]*(${f[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${f[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${f[d.XRANGEIDENTIFIERLOOSE]})(?:${f[d.PRERELEASELOOSE]})?${f[d.BUILD]}?)?)?`),E("XRANGE",`^${f[d.GTLT]}\\s*${f[d.XRANGEPLAIN]}$`),E("XRANGELOOSE",`^${f[d.GTLT]}\\s*${f[d.XRANGEPLAINLOOSE]}$`),E("COERCE",`(^|[^\\d])(\\d{1,${p}})(?:\\.(\\d{1,${p}}))?(?:\\.(\\d{1,${p}}))?(?:$|[^\\d])`),E("COERCERTL",f[d.COERCE],!0),E("LONETILDE","(?:~>?)"),E("TILDETRIM",`(\\s*)${f[d.LONETILDE]}\\s+`,!0),m.tildeTrimReplace="$1~",E("TILDE",`^${f[d.LONETILDE]}${f[d.XRANGEPLAIN]}$`),E("TILDELOOSE",`^${f[d.LONETILDE]}${f[d.XRANGEPLAINLOOSE]}$`),E("LONECARET","(?:\\^)"),E("CARETTRIM",`(\\s*)${f[d.LONECARET]}\\s+`,!0),m.caretTrimReplace="$1^",E("CARET",`^${f[d.LONECARET]}${f[d.XRANGEPLAIN]}$`),E("CARETLOOSE",`^${f[d.LONECARET]}${f[d.XRANGEPLAINLOOSE]}$`),E("COMPARATORLOOSE",`^${f[d.GTLT]}\\s*(${f[d.LOOSEPLAIN]})$|^$`),E("COMPARATOR",`^${f[d.GTLT]}\\s*(${f[d.FULLPLAIN]})$|^$`),E("COMPARATORTRIM",`(\\s*)${f[d.GTLT]}\\s*(${f[d.LOOSEPLAIN]}|${f[d.XRANGEPLAIN]})`,!0),m.comparatorTrimReplace="$1$2$3",E("HYPHENRANGE",`^\\s*(${f[d.XRANGEPLAIN]})\\s+-\\s+(${f[d.XRANGEPLAIN]})\\s*$`),E("HYPHENRANGELOOSE",`^\\s*(${f[d.XRANGEPLAINLOOSE]})\\s+-\\s+(${f[d.XRANGEPLAINLOOSE]})\\s*$`),E("STAR","(<|>)?=?\\s*\\*"),E("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),E("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}}),W=Te({"node_modules/semver/internal/parse-options.js"(m,A){Ve();var p=["includePrerelease","loose","rtl"],v=D=>D?typeof D!="object"?{loose:!0}:p.filter(f=>D[f]).reduce((f,d)=>(f[d]=!0,f),{}):{};A.exports=v}}),we=Te({"node_modules/semver/internal/identifiers.js"(m,A){Ve();var p=/^[0-9]+$/,v=(f,d)=>{let h=p.test(f),E=p.test(d);return h&&E&&(f=+f,d=+d),f===d?0:h&&!E?-1:E&&!h?1:f<d?-1:1},D=(f,d)=>v(d,f);A.exports={compareIdentifiers:v,rcompareIdentifiers:D}}}),Me=Te({"node_modules/semver/classes/semver.js"(m,A){Ve();var p=Pl(),{MAX_LENGTH:v,MAX_SAFE_INTEGER:D}=Y(),{re:f,t:d}=g(),h=W(),{compareIdentifiers:E}=we(),C=class{constructor(B,_){if(_=h(_),B instanceof C){if(B.loose===!!_.loose&&B.includePrerelease===!!_.includePrerelease)return B;B=B.version}else if(typeof B!="string")throw new TypeError(`Invalid Version: ${B}`);if(B.length>v)throw new TypeError(`version is longer than ${v} characters`);p("SemVer",B,_),this.options=_,this.loose=!!_.loose,this.includePrerelease=!!_.includePrerelease;let P=B.trim().match(_.loose?f[d.LOOSE]:f[d.FULL]);if(!P)throw new TypeError(`Invalid Version: ${B}`);if(this.raw=B,this.major=+P[1],this.minor=+P[2],this.patch=+P[3],this.major>D||this.major<0)throw new TypeError("Invalid major version");if(this.minor>D||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>D||this.patch<0)throw new TypeError("Invalid patch version");P[4]?this.prerelease=P[4].split(".").map(x=>{if(/^[0-9]+$/.test(x)){let S=+x;if(S>=0&&S<D)return S}return x}):this.prerelease=[],this.build=P[5]?P[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(B){if(p("SemVer.compare",this.version,this.options,B),!(B instanceof C)){if(typeof B=="string"&&B===this.version)return 0;B=new C(B,this.options)}return B.version===this.version?0:this.compareMain(B)||this.comparePre(B)}compareMain(B){return B instanceof C||(B=new C(B,this.options)),E(this.major,B.major)||E(this.minor,B.minor)||E(this.patch,B.patch)}comparePre(B){if(B instanceof C||(B=new C(B,this.options)),this.prerelease.length&&!B.prerelease.length)return-1;if(!this.prerelease.length&&B.prerelease.length)return 1;if(!this.prerelease.length&&!B.prerelease.length)return 0;let _=0;do{let P=this.prerelease[_],x=B.prerelease[_];if(p("prerelease compare",_,P,x),P===void 0&&x===void 0)return 0;if(x===void 0)return 1;if(P===void 0)return-1;if(P!==x)return E(P,x)}while(++_)}compareBuild(B){B instanceof C||(B=new C(B,this.options));let _=0;do{let P=this.build[_],x=B.build[_];if(p("prerelease compare",_,P,x),P===void 0&&x===void 0)return 0;if(x===void 0)return 1;if(P===void 0)return-1;if(P!==x)return E(P,x)}while(++_)}inc(B,_){switch(B){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",_);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",_);break;case"prepatch":this.prerelease.length=0,this.inc("patch",_),this.inc("pre",_);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",_),this.inc("pre",_);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{let P=this.prerelease.length;for(;--P>=0;)typeof this.prerelease[P]=="number"&&(this.prerelease[P]++,P=-2);P===-1&&this.prerelease.push(0)}_&&(E(this.prerelease[0],_)===0?isNaN(this.prerelease[1])&&(this.prerelease=[_,0]):this.prerelease=[_,0]);break;default:throw new Error(`invalid increment argument: ${B}`)}return this.format(),this.raw=this.version,this}};A.exports=C}}),Ie=Te({"node_modules/semver/functions/compare.js"(m,A){Ve();var p=Me(),v=(D,f,d)=>new p(D,d).compare(new p(f,d));A.exports=v}}),nt=Te({"node_modules/semver/functions/lt.js"(m,A){Ve();var p=Ie(),v=(D,f,d)=>p(D,f,d)<0;A.exports=v}}),vt=Te({"node_modules/semver/functions/gte.js"(m,A){Ve();var p=Ie(),v=(D,f,d)=>p(D,f,d)>=0;A.exports=v}}),Ut=Te({"src/utils/arrayify.js"(m,A){Ve(),A.exports=(p,v)=>Object.entries(p).map(D=>{let[f,d]=D;return Object.assign({[v]:f},d)})}}),lt=Te({"node_modules/outdent/lib/index.js"(m,A){Ve(),Object.defineProperty(m,"__esModule",{value:!0}),m.outdent=void 0;function p(){for(var $=[],Q=0;Q<arguments.length;Q++)$[Q]=arguments[Q]}function v(){return typeof WeakMap<"u"?new WeakMap:D()}function D(){return{add:p,delete:p,get:p,set:p,has:function($){return!1}}}var f=Object.prototype.hasOwnProperty,d=function($,Q){return f.call($,Q)};function h($,Q){for(var G in Q)d(Q,G)&&($[G]=Q[G]);return $}var E=/^[ \t]*(?:\r\n|\r|\n)/,C=/(?:\r\n|\r|\n)[ \t]*$/,B=/^(?:[\r\n]|$)/,_=/(?:\r\n|\r|\n)([ \t]*)(?:[^ \t\r\n]|$)/,P=/^[ \t]*[\r\n][ \t\r\n]*$/;function x($,Q,G){var re=0,ee=$[0].match(_);ee&&(re=ee[1].length);var De="(\\r\\n|\\r|\\n).{0,"+re+"}",N=new RegExp(De,"g");Q&&($=$.slice(1));var J=G.newline,F=G.trimLeadingNewline,j=G.trimTrailingNewline,y=typeof J=="string",L=$.length,M=$.map(function(q,U){return q=q.replace(N,"$1"),U===0&&F&&(q=q.replace(E,"")),U===L-1&&j&&(q=q.replace(C,"")),y&&(q=q.replace(/\r\n|\n|\r/g,function(z){return J})),q});return M}function S($,Q){for(var G="",re=0,ee=$.length;re<ee;re++)G+=$[re],re<ee-1&&(G+=Q[re]);return G}function R($){return d($,"raw")&&d($,"length")}function X($){var Q=v(),G=v();function re(De){for(var N=[],J=1;J<arguments.length;J++)N[J-1]=arguments[J];if(R(De)){var F=De,j=(N[0]===re||N[0]===te)&&P.test(F[0])&&B.test(F[1]),y=j?G:Q,L=y.get(F);if(L||(L=x(F,j,$),y.set(F,L)),N.length===0)return L[0];var M=S(L,j?N.slice(1):N);return M}else return X(h(h({},$),De||{}))}var ee=h(re,{string:function(De){return x([De],!1,$)[0]}});return ee}var te=X({trimLeadingNewline:!0,trimTrailingNewline:!0});if(m.outdent=te,m.default=te,typeof A<"u")try{A.exports=te,Object.defineProperty(te,"__esModule",{value:!0}),te.default=te,te.outdent=te}catch{}}}),At=Te({"src/main/core-options.js"(m,A){Ve();var{outdent:p}=lt(),v="Config",D="Editor",f="Format",d="Other",h="Output",E="Global",C="Special",B={cursorOffset:{since:"1.4.0",category:C,type:"int",default:-1,range:{start:-1,end:Number.POSITIVE_INFINITY,step:1},description:p`
174
+ Print (to stderr) where a cursor at the given position would move to after formatting.
175
+ This option cannot be used with --range-start and --range-end.
176
+ `,cliCategory:D},endOfLine:{since:"1.15.0",category:E,type:"choice",default:[{since:"1.15.0",value:"auto"},{since:"2.0.0",value:"lf"}],description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:p`
177
+ Maintain existing
178
+ (mixed values within one file are normalised by looking at what's used after the first line)
179
+ `}]},filepath:{since:"1.4.0",category:C,type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:d,cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{since:"1.8.0",category:C,type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:d},parser:{since:"0.0.10",category:E,type:"choice",default:[{since:"0.0.10",value:"babylon"},{since:"1.13.0",value:void 0}],description:"Which parser to use.",exception:_=>typeof _=="string"||typeof _=="function",choices:[{value:"flow",description:"Flow"},{value:"babel",since:"1.16.0",description:"JavaScript"},{value:"babel-flow",since:"1.16.0",description:"Flow"},{value:"babel-ts",since:"2.0.0",description:"TypeScript"},{value:"typescript",since:"1.4.0",description:"TypeScript"},{value:"acorn",since:"2.6.0",description:"JavaScript"},{value:"espree",since:"2.2.0",description:"JavaScript"},{value:"meriyah",since:"2.2.0",description:"JavaScript"},{value:"css",since:"1.7.1",description:"CSS"},{value:"less",since:"1.7.1",description:"Less"},{value:"scss",since:"1.7.1",description:"SCSS"},{value:"json",since:"1.5.0",description:"JSON"},{value:"json5",since:"1.13.0",description:"JSON5"},{value:"json-stringify",since:"1.13.0",description:"JSON.stringify"},{value:"graphql",since:"1.5.0",description:"GraphQL"},{value:"markdown",since:"1.8.0",description:"Markdown"},{value:"mdx",since:"1.15.0",description:"MDX"},{value:"vue",since:"1.10.0",description:"Vue"},{value:"yaml",since:"1.14.0",description:"YAML"},{value:"glimmer",since:"2.3.0",description:"Ember / Handlebars"},{value:"html",since:"1.15.0",description:"HTML"},{value:"angular",since:"1.15.0",description:"Angular"},{value:"lwc",since:"1.17.0",description:"Lightning Web Components"}]},plugins:{since:"1.10.0",type:"path",array:!0,default:[{value:[]}],category:E,description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:_=>typeof _=="string"||typeof _=="object",cliName:"plugin",cliCategory:v},pluginSearchDirs:{since:"1.13.0",type:"path",array:!0,default:[{value:[]}],category:E,description:p`
180
+ Custom directory that contains prettier plugins in node_modules subdirectory.
181
+ Overrides default behavior when plugins are searched relatively to the location of Prettier.
182
+ Multiple values are accepted.
183
+ `,exception:_=>typeof _=="string"||typeof _=="object",cliName:"plugin-search-dir",cliCategory:v},printWidth:{since:"0.0.0",category:E,type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},rangeEnd:{since:"1.4.0",category:C,type:"int",default:Number.POSITIVE_INFINITY,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:p`
184
+ Format code ending at a given character offset (exclusive).
185
+ The range will extend forwards to the end of the selected statement.
186
+ This option cannot be used with --cursor-offset.
187
+ `,cliCategory:D},rangeStart:{since:"1.4.0",category:C,type:"int",default:0,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:p`
188
+ Format code starting at a given character offset.
189
+ The range will extend backwards to the start of the first line containing the selected statement.
190
+ This option cannot be used with --cursor-offset.
191
+ `,cliCategory:D},requirePragma:{since:"1.7.0",category:C,type:"boolean",default:!1,description:p`
192
+ Require either '@prettier' or '@format' to be present in the file's first docblock comment
193
+ in order for it to be formatted.
194
+ `,cliCategory:d},tabWidth:{type:"int",category:E,default:2,description:"Number of spaces per indentation level.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},useTabs:{since:"1.0.0",category:E,type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{since:"2.1.0",category:E,type:"choice",default:[{since:"2.1.0",value:"auto"}],description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};A.exports={CATEGORY_CONFIG:v,CATEGORY_EDITOR:D,CATEGORY_FORMAT:f,CATEGORY_OTHER:d,CATEGORY_OUTPUT:h,CATEGORY_GLOBAL:E,CATEGORY_SPECIAL:C,options:B}}}),Pt=Te({"src/main/support.js"(m,A){Ve();var p={compare:Ie(),lt:nt(),gte:vt()},v=Ut(),D=rs().version,f=At().options;function d(){let{plugins:E=[],showUnreleased:C=!1,showDeprecated:B=!1,showInternal:_=!1}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},P=D.split("-",1)[0],x=E.flatMap($=>$.languages||[]).filter(R),S=v(Object.assign({},...E.map($=>{let{options:Q}=$;return Q}),f),"name").filter($=>R($)&&X($)).sort(($,Q)=>$.name===Q.name?0:$.name<Q.name?-1:1).map(te).map($=>{$=Object.assign({},$),Array.isArray($.default)&&($.default=$.default.length===1?$.default[0].value:$.default.filter(R).sort((G,re)=>p.compare(re.since,G.since))[0].value),Array.isArray($.choices)&&($.choices=$.choices.filter(G=>R(G)&&X(G)),$.name==="parser"&&h($,x,E));let Q=Object.fromEntries(E.filter(G=>G.defaultOptions&&G.defaultOptions[$.name]!==void 0).map(G=>[G.name,G.defaultOptions[$.name]]));return Object.assign(Object.assign({},$),{},{pluginDefaults:Q})});return{languages:x,options:S};function R($){return C||!("since"in $)||$.since&&p.gte(P,$.since)}function X($){return B||!("deprecated"in $)||$.deprecated&&p.lt(P,$.deprecated)}function te($){if(_)return $;let{cliName:Q,cliCategory:G,cliDescription:re}=$;return Tt($,tt)}}function h(E,C,B){let _=new Set(E.choices.map(P=>P.value));for(let P of C)if(P.parsers){for(let x of P.parsers)if(!_.has(x)){_.add(x);let S=B.find(X=>X.parsers&&X.parsers[x]),R=P.name;S&&S.name&&(R+=` (plugin: ${S.name})`),E.choices.push({value:x,description:R})}}}A.exports={getSupportInfo:d}}}),$t=Te({"src/utils/is-non-empty-array.js"(m,A){Ve();function p(v){return Array.isArray(v)&&v.length>0}A.exports=p}}),Mt=Te({"src/utils/text/skip.js"(m,A){Ve();function p(h){return(E,C,B)=>{let _=B&&B.backwards;if(C===!1)return!1;let{length:P}=E,x=C;for(;x>=0&&x<P;){let S=E.charAt(x);if(h instanceof RegExp){if(!h.test(S))return x}else if(!h.includes(S))return x;_?x--:x++}return x===-1||x===P?x:!1}}var v=p(/\s/),D=p(" "),f=p(",; "),d=p(/[^\n\r]/);A.exports={skipWhitespace:v,skipSpaces:D,skipToLineEnd:f,skipEverythingButNewLine:d}}}),Ht=Te({"src/utils/text/skip-inline-comment.js"(m,A){Ve();function p(v,D){if(D===!1)return!1;if(v.charAt(D)==="/"&&v.charAt(D+1)==="*"){for(let f=D+2;f<v.length;++f)if(v.charAt(f)==="*"&&v.charAt(f+1)==="/")return f+2}return D}A.exports=p}}),Yt=Te({"src/utils/text/skip-trailing-comment.js"(m,A){Ve();var{skipEverythingButNewLine:p}=Mt();function v(D,f){return f===!1?!1:D.charAt(f)==="/"&&D.charAt(f+1)==="/"?p(D,f):f}A.exports=v}}),en=Te({"src/utils/text/skip-newline.js"(m,A){Ve();function p(v,D,f){let d=f&&f.backwards;if(D===!1)return!1;let h=v.charAt(D);if(d){if(v.charAt(D-1)==="\r"&&h===`
195
+ `)return D-2;if(h===`
196
+ `||h==="\r"||h==="\u2028"||h==="\u2029")return D-1}else{if(h==="\r"&&v.charAt(D+1)===`
197
+ `)return D+2;if(h===`
198
+ `||h==="\r"||h==="\u2028"||h==="\u2029")return D+1}return D}A.exports=p}}),An=Te({"src/utils/text/get-next-non-space-non-comment-character-index-with-start-index.js"(m,A){Ve();var p=Ht(),v=en(),D=Yt(),{skipSpaces:f}=Mt();function d(h,E){let C=null,B=E;for(;B!==C;)C=B,B=f(h,B),B=p(h,B),B=D(h,B),B=v(h,B);return B}A.exports=d}}),ye=Te({"src/common/util.js"(m,A){Ve();var{default:p}=(hp(),Kn(kl)),v=Jr(),{getSupportInfo:D}=Pt(),f=$t(),d=Ll(),{skipWhitespace:h,skipSpaces:E,skipToLineEnd:C,skipEverythingButNewLine:B}=Mt(),_=Ht(),P=Yt(),x=en(),S=An(),R=he=>he[he.length-2];function X(he){return(oe,Ue,it)=>{let Xe=it&&it.backwards;if(Ue===!1)return!1;let{length:bt}=oe,be=Ue;for(;be>=0&&be<bt;){let Re=oe.charAt(be);if(he instanceof RegExp){if(!he.test(Re))return be}else if(!he.includes(Re))return be;Xe?be--:be++}return be===-1||be===bt?be:!1}}function te(he,oe){let Ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},it=E(he,Ue.backwards?oe-1:oe,Ue),Xe=x(he,it,Ue);return it!==Xe}function $(he,oe,Ue){for(let it=oe;it<Ue;++it)if(he.charAt(it)===`
199
+ `)return!0;return!1}function Q(he,oe,Ue){let it=Ue(oe)-1;it=E(he,it,{backwards:!0}),it=x(he,it,{backwards:!0}),it=E(he,it,{backwards:!0});let Xe=x(he,it,{backwards:!0});return it!==Xe}function G(he,oe){let Ue=null,it=oe;for(;it!==Ue;)Ue=it,it=C(he,it),it=_(he,it),it=E(he,it);return it=P(he,it),it=x(he,it),it!==!1&&te(he,it)}function re(he,oe,Ue){return G(he,Ue(oe))}function ee(he,oe,Ue){return S(he,Ue(oe))}function De(he,oe,Ue){return he.charAt(ee(he,oe,Ue))}function N(he,oe){let Ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return E(he,Ue.backwards?oe-1:oe,Ue)!==oe}function J(he,oe){let Ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,it=0;for(let Xe=Ue;Xe<he.length;++Xe)he[Xe]===" "?it=it+oe-it%oe:it++;return it}function F(he,oe){let Ue=he.lastIndexOf(`
200
+ `);return Ue===-1?0:J(he.slice(Ue+1).match(/^[\t ]*/)[0],oe)}function j(he,oe){let Ue={quote:'"',regex:/"/g,escaped:"&quot;"},it={quote:"'",regex:/'/g,escaped:"&apos;"},Xe=oe==="'"?it:Ue,bt=Xe===it?Ue:it,be=Xe;if(he.includes(Xe.quote)||he.includes(bt.quote)){let Re=(he.match(Xe.regex)||[]).length,gt=(he.match(bt.regex)||[]).length;be=Re>gt?bt:Xe}return be}function y(he,oe){let Ue=he.slice(1,-1),it=oe.parser==="json"||oe.parser==="json5"&&oe.quoteProps==="preserve"&&!oe.singleQuote?'"':oe.__isInHtmlAttribute?"'":j(Ue,oe.singleQuote?"'":'"').quote;return L(Ue,it,!(oe.parser==="css"||oe.parser==="less"||oe.parser==="scss"||oe.__embeddedInHtml))}function L(he,oe,Ue){let it=oe==='"'?"'":'"',Xe=/\\(.)|(["'])/gs,bt=he.replace(Xe,(be,Re,gt)=>Re===it?Re:gt===oe?"\\"+gt:gt||(Ue&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(Re)?Re:"\\"+Re));return oe+bt+oe}function M(he){return he.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(\d)/,"$1$2$3").replace(/^([+-]?[\d.]+)e[+-]?0+$/,"$1").replace(/^([+-])?\./,"$10.").replace(/(\.\d+?)0+(?=e|$)/,"$1").replace(/\.(?=e|$)/,"")}function q(he,oe){let Ue=he.match(new RegExp(`(${p(oe)})+`,"g"));return Ue===null?0:Ue.reduce((it,Xe)=>Math.max(it,Xe.length/oe.length),0)}function U(he,oe){let Ue=he.match(new RegExp(`(${p(oe)})+`,"g"));if(Ue===null)return 0;let it=new Map,Xe=0;for(let bt of Ue){let be=bt.length/oe.length;it.set(be,!0),be>Xe&&(Xe=be)}for(let bt=1;bt<Xe;bt++)if(!it.get(bt))return bt;return Xe+1}function z(he,oe){(he.comments||(he.comments=[])).push(oe),oe.printed=!1,oe.nodeDescription=We(he)}function se(he,oe){oe.leading=!0,oe.trailing=!1,z(he,oe)}function le(he,oe,Ue){oe.leading=!1,oe.trailing=!1,Ue&&(oe.marker=Ue),z(he,oe)}function ge(he,oe){oe.leading=!1,oe.trailing=!0,z(he,oe)}function ce(he,oe){let{languages:Ue}=D({plugins:oe.plugins}),it=Ue.find(Xe=>{let{name:bt}=Xe;return bt.toLowerCase()===he})||Ue.find(Xe=>{let{aliases:bt}=Xe;return Array.isArray(bt)&&bt.includes(he)})||Ue.find(Xe=>{let{extensions:bt}=Xe;return Array.isArray(bt)&&bt.includes(`.${he}`)});return it&&it.parsers[0]}function Le(he){return he&&he.type==="front-matter"}function ie(he){let oe=new WeakMap;return function(Ue){return oe.has(Ue)||oe.set(Ue,Symbol(he)),oe.get(Ue)}}function We(he){let oe=he.type||he.kind||"(unknown type)",Ue=String(he.name||he.id&&(typeof he.id=="object"?he.id.name:he.id)||he.key&&(typeof he.key=="object"?he.key.name:he.key)||he.value&&(typeof he.value=="object"?"":String(he.value))||he.operator||"");return Ue.length>20&&(Ue=Ue.slice(0,19)+"…"),oe+(Ue?" "+Ue:"")}A.exports={inferParserByLanguage:ce,getStringWidth:d,getMaxContinuousCount:q,getMinNotPresentContinuousCount:U,getPenultimate:R,getLast:v,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:S,getNextNonSpaceNonCommentCharacterIndex:ee,getNextNonSpaceNonCommentCharacter:De,skip:X,skipWhitespace:h,skipSpaces:E,skipToLineEnd:C,skipEverythingButNewLine:B,skipInlineComment:_,skipTrailingComment:P,skipNewline:x,isNextLineEmptyAfterIndex:G,isNextLineEmpty:re,isPreviousLineEmpty:Q,hasNewline:te,hasNewlineInRange:$,hasSpaces:N,getAlignmentSize:J,getIndentSize:F,getPreferredQuote:j,printString:y,printNumber:M,makeString:L,addLeadingComment:se,addDanglingComment:le,addTrailingComment:ge,isFrontMatterNode:Le,isNonEmptyArray:f,createGroupIdMapper:ie}}}),Z={};Nn(Z,{basename:()=>Ft,default:()=>_r,delimiter:()=>lr,dirname:()=>$e,extname:()=>Vt,isAbsolute:()=>Ne,join:()=>Oe,normalize:()=>ue,relative:()=>Ee,resolve:()=>H,sep:()=>Jn});function I(m,A){for(var p=0,v=m.length-1;v>=0;v--){var D=m[v];D==="."?m.splice(v,1):D===".."?(m.splice(v,1),p++):p&&(m.splice(v,1),p--)}if(A)for(;p--;p)m.unshift("..");return m}function H(){for(var m="",A=!1,p=arguments.length-1;p>=-1&&!A;p--){var v=p>=0?arguments[p]:"/";if(typeof v!="string")throw new TypeError("Arguments to path.resolve must be strings");v&&(m=v+"/"+m,A=v.charAt(0)==="/")}return m=I(Kt(m.split("/"),function(D){return!!D}),!A).join("/"),(A?"/":"")+m||"."}function ue(m){var A=Ne(m),p=vs(m,-1)==="/";return m=I(Kt(m.split("/"),function(v){return!!v}),!A).join("/"),!m&&!A&&(m="."),m&&p&&(m+="/"),(A?"/":"")+m}function Ne(m){return m.charAt(0)==="/"}function Oe(){var m=Array.prototype.slice.call(arguments,0);return ue(Kt(m,function(A,p){if(typeof A!="string")throw new TypeError("Arguments to path.join must be strings");return A}).join("/"))}function Ee(m,A){m=H(m).substr(1),A=H(A).substr(1);function p(C){for(var B=0;B<C.length&&C[B]==="";B++);for(var _=C.length-1;_>=0&&C[_]==="";_--);return B>_?[]:C.slice(B,_-B+1)}for(var v=p(m.split("/")),D=p(A.split("/")),f=Math.min(v.length,D.length),d=f,h=0;h<f;h++)if(v[h]!==D[h]){d=h;break}for(var E=[],h=d;h<v.length;h++)E.push("..");return E=E.concat(D.slice(d)),E.join("/")}function $e(m){var A=fn(m),p=A[0],v=A[1];return!p&&!v?".":(v&&(v=v.substr(0,v.length-1)),p+v)}function Ft(m,A){var p=fn(m)[2];return A&&p.substr(-1*A.length)===A&&(p=p.substr(0,p.length-A.length)),p}function Vt(m){return fn(m)[3]}function Kt(m,A){if(m.filter)return m.filter(A);for(var p=[],v=0;v<m.length;v++)A(m[v],v,m)&&p.push(m[v]);return p}var xn,fn,Jn,lr,_r,vs,ds=gn({"node-modules-polyfills:path"(){Ve(),xn=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,fn=function(m){return xn.exec(m).slice(1)},Jn="/",lr=":",_r={extname:Vt,basename:Ft,dirname:$e,sep:Jn,delimiter:lr,relative:Ee,join:Oe,isAbsolute:Ne,normalize:ue,resolve:H},vs="ab".substr(-1)==="b"?function(m,A,p){return m.substr(A,p)}:function(m,A,p){return A<0&&(A=m.length+A),m.substr(A,p)}}}),wt=Te({"node-modules-polyfills-commonjs:path"(m,A){Ve();var p=(ds(),Kn(Z));if(p&&p.default){A.exports=p.default;for(let v in p)A.exports[v]=p[v]}else p&&(A.exports=p)}}),sn=Te({"src/common/errors.js"(m,A){Ve();var p=class extends Error{},v=class extends Error{},D=class extends Error{},f=class extends Error{};A.exports={ConfigError:p,DebugError:v,UndefinedParserError:D,ArgExpansionBailout:f}}}),Dn={};Nn(Dn,{__assign:()=>pe,__asyncDelegator:()=>Dp,__asyncGenerator:()=>yp,__asyncValues:()=>bp,__await:()=>Es,__awaiter:()=>Ks,__classPrivateFieldGet:()=>wp,__classPrivateFieldSet:()=>xp,__createBinding:()=>aa,__decorate:()=>pr,__exportStar:()=>ao,__extends:()=>Sn,__generator:()=>Vs,__importDefault:()=>Ap,__importStar:()=>Ep,__makeTemplateObject:()=>vp,__metadata:()=>Qs,__param:()=>$s,__read:()=>Bl,__rest:()=>Hn,__spread:()=>mp,__spreadArrays:()=>gp,__values:()=>zo});function Sn(m,A){fe(m,A);function p(){this.constructor=m}m.prototype=A===null?Object.create(A):(p.prototype=A.prototype,new p)}function Hn(m,A){var p={};for(var v in m)Object.prototype.hasOwnProperty.call(m,v)&&A.indexOf(v)<0&&(p[v]=m[v]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function")for(var D=0,v=Object.getOwnPropertySymbols(m);D<v.length;D++)A.indexOf(v[D])<0&&Object.prototype.propertyIsEnumerable.call(m,v[D])&&(p[v[D]]=m[v[D]]);return p}function pr(m,A,p,v){var D=arguments.length,f=D<3?A:v===null?v=Object.getOwnPropertyDescriptor(A,p):v,d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")f=Reflect.decorate(m,A,p,v);else for(var h=m.length-1;h>=0;h--)(d=m[h])&&(f=(D<3?d(f):D>3?d(A,p,f):d(A,p))||f);return D>3&&f&&Object.defineProperty(A,p,f),f}function $s(m,A){return function(p,v){A(p,v,m)}}function Qs(m,A){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(m,A)}function Ks(m,A,p,v){function D(f){return f instanceof p?f:new p(function(d){d(f)})}return new(p||(p=Promise))(function(f,d){function h(B){try{C(v.next(B))}catch(_){d(_)}}function E(B){try{C(v.throw(B))}catch(_){d(_)}}function C(B){B.done?f(B.value):D(B.value).then(h,E)}C((v=v.apply(m,A||[])).next())})}function Vs(m,A){var p={label:0,sent:function(){if(f[0]&1)throw f[1];return f[1]},trys:[],ops:[]},v,D,f,d;return d={next:h(0),throw:h(1),return:h(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function h(C){return function(B){return E([C,B])}}function E(C){if(v)throw new TypeError("Generator is already executing.");for(;p;)try{if(v=1,D&&(f=C[0]&2?D.return:C[0]?D.throw||((f=D.return)&&f.call(D),0):D.next)&&!(f=f.call(D,C[1])).done)return f;switch(D=0,f&&(C=[C[0]&2,f.value]),C[0]){case 0:case 1:f=C;break;case 4:return p.label++,{value:C[1],done:!1};case 5:p.label++,D=C[1],C=[0];continue;case 7:C=p.ops.pop(),p.trys.pop();continue;default:if(f=p.trys,!(f=f.length>0&&f[f.length-1])&&(C[0]===6||C[0]===2)){p=0;continue}if(C[0]===3&&(!f||C[1]>f[0]&&C[1]<f[3])){p.label=C[1];break}if(C[0]===6&&p.label<f[1]){p.label=f[1],f=C;break}if(f&&p.label<f[2]){p.label=f[2],p.ops.push(C);break}f[2]&&p.ops.pop(),p.trys.pop();continue}C=A.call(m,p)}catch(B){C=[6,B],D=0}finally{v=f=0}if(C[0]&5)throw C[1];return{value:C[0]?C[1]:void 0,done:!0}}}function aa(m,A,p,v){v===void 0&&(v=p),m[v]=A[p]}function ao(m,A){for(var p in m)p!=="default"&&!A.hasOwnProperty(p)&&(A[p]=m[p])}function zo(m){var A=typeof Symbol=="function"&&Symbol.iterator,p=A&&m[A],v=0;if(p)return p.call(m);if(m&&typeof m.length=="number")return{next:function(){return m&&v>=m.length&&(m=void 0),{value:m&&m[v++],done:!m}}};throw new TypeError(A?"Object is not iterable.":"Symbol.iterator is not defined.")}function Bl(m,A){var p=typeof Symbol=="function"&&m[Symbol.iterator];if(!p)return m;var v=p.call(m),D,f=[],d;try{for(;(A===void 0||A-- >0)&&!(D=v.next()).done;)f.push(D.value)}catch(h){d={error:h}}finally{try{D&&!D.done&&(p=v.return)&&p.call(v)}finally{if(d)throw d.error}}return f}function mp(){for(var m=[],A=0;A<arguments.length;A++)m=m.concat(Bl(arguments[A]));return m}function gp(){for(var m=0,A=0,p=arguments.length;A<p;A++)m+=arguments[A].length;for(var v=Array(m),D=0,A=0;A<p;A++)for(var f=arguments[A],d=0,h=f.length;d<h;d++,D++)v[D]=f[d];return v}function Es(m){return this instanceof Es?(this.v=m,this):new Es(m)}function yp(m,A,p){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var v=p.apply(m,A||[]),D,f=[];return D={},d("next"),d("throw"),d("return"),D[Symbol.asyncIterator]=function(){return this},D;function d(P){v[P]&&(D[P]=function(x){return new Promise(function(S,R){f.push([P,x,S,R])>1||h(P,x)})})}function h(P,x){try{E(v[P](x))}catch(S){_(f[0][3],S)}}function E(P){P.value instanceof Es?Promise.resolve(P.value.v).then(C,B):_(f[0][2],P)}function C(P){h("next",P)}function B(P){h("throw",P)}function _(P,x){P(x),f.shift(),f.length&&h(f[0][0],f[0][1])}}function Dp(m){var A,p;return A={},v("next"),v("throw",function(D){throw D}),v("return"),A[Symbol.iterator]=function(){return this},A;function v(D,f){A[D]=m[D]?function(d){return(p=!p)?{value:Es(m[D](d)),done:D==="return"}:f?f(d):d}:f}}function bp(m){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var A=m[Symbol.asyncIterator],p;return A?A.call(m):(m=typeof zo=="function"?zo(m):m[Symbol.iterator](),p={},v("next"),v("throw"),v("return"),p[Symbol.asyncIterator]=function(){return this},p);function v(f){p[f]=m[f]&&function(d){return new Promise(function(h,E){d=m[f](d),D(h,E,d.done,d.value)})}}function D(f,d,h,E){Promise.resolve(E).then(function(C){f({value:C,done:h})},d)}}function vp(m,A){return Object.defineProperty?Object.defineProperty(m,"raw",{value:A}):m.raw=A,m}function Ep(m){if(m&&m.__esModule)return m;var A={};if(m!=null)for(var p in m)Object.hasOwnProperty.call(m,p)&&(A[p]=m[p]);return A.default=m,A}function Ap(m){return m&&m.__esModule?m:{default:m}}function wp(m,A){if(!A.has(m))throw new TypeError("attempted to get private field on non-instance");return A.get(m)}function xp(m,A,p){if(!A.has(m))throw new TypeError("attempted to set private field on non-instance");return A.set(m,p),p}var fe,pe,Ge=gn({"node_modules/tslib/tslib.es6.js"(){Ve(),fe=function(m,A){return fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,v){p.__proto__=v}||function(p,v){for(var D in v)v.hasOwnProperty(D)&&(p[D]=v[D])},fe(m,A)},pe=function(){return pe=Object.assign||function(m){for(var A,p=1,v=arguments.length;p<v;p++){A=arguments[p];for(var D in A)Object.prototype.hasOwnProperty.call(A,D)&&(m[D]=A[D])}return m},pe.apply(this,arguments)}}}),Ke=Te({"node_modules/vnopts/lib/descriptors/api.js"(m){Ve(),Object.defineProperty(m,"__esModule",{value:!0}),m.apiDescriptor={key:A=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(A)?A:JSON.stringify(A),value(A){if(A===null||typeof A!="object")return JSON.stringify(A);if(Array.isArray(A))return`[${A.map(v=>m.apiDescriptor.value(v)).join(", ")}]`;let p=Object.keys(A);return p.length===0?"{}":`{ ${p.map(v=>`${m.apiDescriptor.key(v)}: ${m.apiDescriptor.value(A[v])}`).join(", ")} }`},pair:A=>{let{key:p,value:v}=A;return m.apiDescriptor.value({[p]:v})}}}}),rt=Te({"node_modules/vnopts/lib/descriptors/index.js"(m){Ve(),Object.defineProperty(m,"__esModule",{value:!0});var A=(Ge(),Kn(Dn));A.__exportStar(Ke(),m)}}),st=Te({"scripts/build/shims/chalk.cjs"(m,A){Ve();var p=v=>v;p.grey=p,p.red=p,p.bold=p,p.yellow=p,p.blue=p,p.default=p,A.exports=p}}),Nt=Te({"node_modules/vnopts/lib/handlers/deprecated/common.js"(m){Ve(),Object.defineProperty(m,"__esModule",{value:!0});var A=st();m.commonDeprecatedHandler=(p,v,D)=>{let{descriptor:f}=D,d=[`${A.default.yellow(typeof p=="string"?f.key(p):f.pair(p))} is deprecated`];return v&&d.push(`we now treat it as ${A.default.blue(typeof v=="string"?f.key(v):f.pair(v))}`),d.join("; ")+"."}}}),kt=Te({"node_modules/vnopts/lib/handlers/deprecated/index.js"(m){Ve(),Object.defineProperty(m,"__esModule",{value:!0});var A=(Ge(),Kn(Dn));A.__exportStar(Nt(),m)}}),tn=Te({"node_modules/vnopts/lib/handlers/invalid/common.js"(m){Ve(),Object.defineProperty(m,"__esModule",{value:!0});var A=st();m.commonInvalidHandler=(p,v,D)=>[`Invalid ${A.default.red(D.descriptor.key(p))} value.`,`Expected ${A.default.blue(D.schemas[p].expected(D))},`,`but received ${A.default.red(D.descriptor.value(v))}.`].join(" ")}}),on=Te({"node_modules/vnopts/lib/handlers/invalid/index.js"(m){Ve(),Object.defineProperty(m,"__esModule",{value:!0});var A=(Ge(),Kn(Dn));A.__exportStar(tn(),m)}}),yn=Te({"node_modules/vnopts/node_modules/leven/index.js"(m,A){Ve();var p=[],v=[];A.exports=function(D,f){if(D===f)return 0;var d=D;D.length>f.length&&(D=f,f=d);var h=D.length,E=f.length;if(h===0)return E;if(E===0)return h;for(;h>0&&D.charCodeAt(~-h)===f.charCodeAt(~-E);)h--,E--;if(h===0)return E;for(var C=0;C<h&&D.charCodeAt(C)===f.charCodeAt(C);)C++;if(h-=C,E-=C,h===0)return E;for(var B,_,P,x,S=0,R=0;S<h;)v[C+S]=D.charCodeAt(C+S),p[S]=++S;for(;R<E;)for(B=f.charCodeAt(C+R),P=R++,_=R,S=0;S<h;S++)x=B===v[C+S]?P:P+1,P=p[S],_=p[S]=P>_?x>_?_+1:x:x>P?P+1:x;return _}}}),On=Te({"node_modules/vnopts/lib/handlers/unknown/leven.js"(m){Ve(),Object.defineProperty(m,"__esModule",{value:!0});var A=st(),p=yn();m.levenUnknownHandler=(v,D,f)=>{let{descriptor:d,logger:h,schemas:E}=f,C=[`Ignored unknown option ${A.default.yellow(d.pair({key:v,value:D}))}.`],B=Object.keys(E).sort().find(_=>p(v,_)<3);B&&C.push(`Did you mean ${A.default.blue(d.key(B))}?`),h.warn(C.join(" "))}}}),hr=Te({"node_modules/vnopts/lib/handlers/unknown/index.js"(m){Ve(),Object.defineProperty(m,"__esModule",{value:!0});var A=(Ge(),Kn(Dn));A.__exportStar(On(),m)}}),mr=Te({"node_modules/vnopts/lib/handlers/index.js"(m){Ve(),Object.defineProperty(m,"__esModule",{value:!0});var A=(Ge(),Kn(Dn));A.__exportStar(kt(),m),A.__exportStar(on(),m),A.__exportStar(hr(),m)}}),qn=Te({"node_modules/vnopts/lib/schema.js"(m){Ve(),Object.defineProperty(m,"__esModule",{value:!0});var A=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function p(f,d){let h=new f(d),E=Object.create(h);for(let C of A)C in d&&(E[C]=D(d[C],h,v.prototype[C].length));return E}m.createSchema=p;var v=class{constructor(f){this.name=f.name}static create(f){return p(this,f)}default(f){}expected(f){return"nothing"}validate(f,d){return!1}deprecated(f,d){return!1}forward(f,d){}redirect(f,d){}overlap(f,d,h){return f}preprocess(f,d){return f}postprocess(f,d){return f}};m.Schema=v;function D(f,d,h){return typeof f=="function"?function(){for(var E=arguments.length,C=new Array(E),B=0;B<E;B++)C[B]=arguments[B];return f(...C.slice(0,h-1),d,...C.slice(h-1))}:()=>f}}}),ur=Te({"node_modules/vnopts/lib/schemas/alias.js"(m){Ve(),Object.defineProperty(m,"__esModule",{value:!0});var A=qn(),p=class extends A.Schema{constructor(v){super(v),this._sourceName=v.sourceName}expected(v){return v.schemas[this._sourceName].expected(v)}validate(v,D){return D.schemas[this._sourceName].validate(v,D)}redirect(v,D){return this._sourceName}};m.AliasSchema=p}}),sr=Te({"node_modules/vnopts/lib/schemas/any.js"(m){Ve(),Object.defineProperty(m,"__esModule",{value:!0});var A=qn(),p=class extends A.Schema{expected(){return"anything"}validate(){return!0}};m.AnySchema=p}}),Yr=Te({"node_modules/vnopts/lib/schemas/array.js"(m){Ve(),Object.defineProperty(m,"__esModule",{value:!0});var A=(Ge(),Kn(Dn)),p=qn(),v=class extends p.Schema{constructor(f){var{valueSchema:d,name:h=d.name}=f,E=A.__rest(f,["valueSchema","name"]);super(Object.assign({},E,{name:h})),this._valueSchema=d}expected(f){return`an array of ${this._valueSchema.expected(f)}`}validate(f,d){if(!Array.isArray(f))return!1;let h=[];for(let E of f){let C=d.normalizeValidateResult(this._valueSchema.validate(E,d),E);C!==!0&&h.push(C.value)}return h.length===0?!0:{value:h}}deprecated(f,d){let h=[];for(let E of f){let C=d.normalizeDeprecatedResult(this._valueSchema.deprecated(E,d),E);C!==!1&&h.push(...C.map(B=>{let{value:_}=B;return{value:[_]}}))}return h}forward(f,d){let h=[];for(let E of f){let C=d.normalizeForwardResult(this._valueSchema.forward(E,d),E);h.push(...C.map(D))}return h}redirect(f,d){let h=[],E=[];for(let C of f){let B=d.normalizeRedirectResult(this._valueSchema.redirect(C,d),C);"remain"in B&&h.push(B.remain),E.push(...B.redirect.map(D))}return h.length===0?{redirect:E}:{redirect:E,remain:h}}overlap(f,d){return f.concat(d)}};m.ArraySchema=v;function D(f){let{from:d,to:h}=f;return{from:[d],to:h}}}}),dr=Te({"node_modules/vnopts/lib/schemas/boolean.js"(m){Ve(),Object.defineProperty(m,"__esModule",{value:!0});var A=qn(),p=class extends A.Schema{expected(){return"true or false"}validate(v){return typeof v=="boolean"}};m.BooleanSchema=p}}),zr=Te({"node_modules/vnopts/lib/utils.js"(m){Ve(),Object.defineProperty(m,"__esModule",{value:!0});function A(x,S){let R=Object.create(null);for(let X of x){let te=X[S];if(R[te])throw new Error(`Duplicate ${S} ${JSON.stringify(te)}`);R[te]=X}return R}m.recordFromArray=A;function p(x,S){let R=new Map;for(let X of x){let te=X[S];if(R.has(te))throw new Error(`Duplicate ${S} ${JSON.stringify(te)}`);R.set(te,X)}return R}m.mapFromArray=p;function v(){let x=Object.create(null);return S=>{let R=JSON.stringify(S);return x[R]?!0:(x[R]=!0,!1)}}m.createAutoChecklist=v;function D(x,S){let R=[],X=[];for(let te of x)S(te)?R.push(te):X.push(te);return[R,X]}m.partition=D;function f(x){return x===Math.floor(x)}m.isInt=f;function d(x,S){if(x===S)return 0;let R=typeof x,X=typeof S,te=["undefined","object","boolean","number","string"];return R!==X?te.indexOf(R)-te.indexOf(X):R!=="string"?Number(x)-Number(S):x.localeCompare(S)}m.comparePrimitive=d;function h(x){return x===void 0?{}:x}m.normalizeDefaultResult=h;function E(x,S){return x===!0?!0:x===!1?{value:S}:x}m.normalizeValidateResult=E;function C(x,S){let R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return x===!1?!1:x===!0?R?!0:[{value:S}]:"value"in x?[x]:x.length===0?!1:x}m.normalizeDeprecatedResult=C;function B(x,S){return typeof x=="string"||"key"in x?{from:S,to:x}:"from"in x?{from:x.from,to:x.to}:{from:S,to:x.to}}m.normalizeTransferResult=B;function _(x,S){return x===void 0?[]:Array.isArray(x)?x.map(R=>B(R,S)):[B(x,S)]}m.normalizeForwardResult=_;function P(x,S){let R=_(typeof x=="object"&&"redirect"in x?x.redirect:x,S);return R.length===0?{remain:S,redirect:R}:typeof x=="object"&&"remain"in x?{remain:x.remain,redirect:R}:{redirect:R}}m.normalizeRedirectResult=P}}),wr=Te({"node_modules/vnopts/lib/schemas/choice.js"(m){Ve(),Object.defineProperty(m,"__esModule",{value:!0});var A=qn(),p=zr(),v=class extends A.Schema{constructor(D){super(D),this._choices=p.mapFromArray(D.choices.map(f=>f&&typeof f=="object"?f:{value:f}),"value")}expected(D){let{descriptor:f}=D,d=Array.from(this._choices.keys()).map(C=>this._choices.get(C)).filter(C=>!C.deprecated).map(C=>C.value).sort(p.comparePrimitive).map(f.value),h=d.slice(0,-2),E=d.slice(-2);return h.concat(E.join(" or ")).join(", ")}validate(D){return this._choices.has(D)}deprecated(D){let f=this._choices.get(D);return f&&f.deprecated?{value:D}:!1}forward(D){let f=this._choices.get(D);return f?f.forward:void 0}redirect(D){let f=this._choices.get(D);return f?f.redirect:void 0}};m.ChoiceSchema=v}}),Pr=Te({"node_modules/vnopts/lib/schemas/number.js"(m){Ve(),Object.defineProperty(m,"__esModule",{value:!0});var A=qn(),p=class extends A.Schema{expected(){return"a number"}validate(v,D){return typeof v=="number"}};m.NumberSchema=p}}),oo=Te({"node_modules/vnopts/lib/schemas/integer.js"(m){Ve(),Object.defineProperty(m,"__esModule",{value:!0});var A=zr(),p=Pr(),v=class extends p.NumberSchema{expected(){return"an integer"}validate(D,f){return f.normalizeValidateResult(super.validate(D,f),D)===!0&&A.isInt(D)}};m.IntegerSchema=v}}),DE=Te({"node_modules/vnopts/lib/schemas/string.js"(m){Ve(),Object.defineProperty(m,"__esModule",{value:!0});var A=qn(),p=class extends A.Schema{expected(){return"a string"}validate(v){return typeof v=="string"}};m.StringSchema=p}}),bE=Te({"node_modules/vnopts/lib/schemas/index.js"(m){Ve(),Object.defineProperty(m,"__esModule",{value:!0});var A=(Ge(),Kn(Dn));A.__exportStar(ur(),m),A.__exportStar(sr(),m),A.__exportStar(Yr(),m),A.__exportStar(dr(),m),A.__exportStar(wr(),m),A.__exportStar(oo(),m),A.__exportStar(Pr(),m),A.__exportStar(DE(),m)}}),vE=Te({"node_modules/vnopts/lib/defaults.js"(m){Ve(),Object.defineProperty(m,"__esModule",{value:!0});var A=Ke(),p=Nt(),v=on(),D=On();m.defaultDescriptor=A.apiDescriptor,m.defaultUnknownHandler=D.levenUnknownHandler,m.defaultInvalidHandler=v.commonInvalidHandler,m.defaultDeprecatedHandler=p.commonDeprecatedHandler}}),EE=Te({"node_modules/vnopts/lib/normalize.js"(m){Ve(),Object.defineProperty(m,"__esModule",{value:!0});var A=vE(),p=zr();m.normalize=(D,f,d)=>new v(f,d).normalize(D);var v=class{constructor(D,f){let{logger:d=console,descriptor:h=A.defaultDescriptor,unknown:E=A.defaultUnknownHandler,invalid:C=A.defaultInvalidHandler,deprecated:B=A.defaultDeprecatedHandler}=f||{};this._utils={descriptor:h,logger:d||{warn:()=>{}},schemas:p.recordFromArray(D,"name"),normalizeDefaultResult:p.normalizeDefaultResult,normalizeDeprecatedResult:p.normalizeDeprecatedResult,normalizeForwardResult:p.normalizeForwardResult,normalizeRedirectResult:p.normalizeRedirectResult,normalizeValidateResult:p.normalizeValidateResult},this._unknownHandler=E,this._invalidHandler=C,this._deprecatedHandler=B,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=p.createAutoChecklist()}normalize(D){let f={},d=[D],h=()=>{for(;d.length!==0;){let E=d.shift(),C=this._applyNormalization(E,f);d.push(...C)}};h();for(let E of Object.keys(this._utils.schemas)){let C=this._utils.schemas[E];if(!(E in f)){let B=p.normalizeDefaultResult(C.default(this._utils));"value"in B&&d.push({[E]:B.value})}}h();for(let E of Object.keys(this._utils.schemas)){let C=this._utils.schemas[E];E in f&&(f[E]=C.postprocess(f[E],this._utils))}return f}_applyNormalization(D,f){let d=[],[h,E]=p.partition(Object.keys(D),C=>C in this._utils.schemas);for(let C of h){let B=this._utils.schemas[C],_=B.preprocess(D[C],this._utils),P=p.normalizeValidateResult(B.validate(_,this._utils),_);if(P!==!0){let{value:X}=P,te=this._invalidHandler(C,X,this._utils);throw typeof te=="string"?new Error(te):te}let x=X=>{let{from:te,to:$}=X;d.push(typeof $=="string"?{[$]:te}:{[$.key]:$.value})},S=X=>{let{value:te,redirectTo:$}=X,Q=p.normalizeDeprecatedResult(B.deprecated(te,this._utils),_,!0);if(Q!==!1)if(Q===!0)this._hasDeprecationWarned(C)||this._utils.logger.warn(this._deprecatedHandler(C,$,this._utils));else for(let{value:G}of Q){let re={key:C,value:G};if(!this._hasDeprecationWarned(re)){let ee=typeof $=="string"?{key:$,value:G}:$;this._utils.logger.warn(this._deprecatedHandler(re,ee,this._utils))}}};p.normalizeForwardResult(B.forward(_,this._utils),_).forEach(x);let R=p.normalizeRedirectResult(B.redirect(_,this._utils),_);if(R.redirect.forEach(x),"remain"in R){let X=R.remain;f[C]=C in f?B.overlap(f[C],X,this._utils):X,S({value:X})}for(let{from:X,to:te}of R.redirect)S({value:X,redirectTo:te})}for(let C of E){let B=D[C],_=this._unknownHandler(C,B,this._utils);if(_)for(let P of Object.keys(_)){let x={[P]:_[P]};P in this._utils.schemas?d.push(x):Object.assign(f,x)}}return d}};m.Normalizer=v}}),AE=Te({"node_modules/vnopts/lib/index.js"(m){Ve(),Object.defineProperty(m,"__esModule",{value:!0});var A=(Ge(),Kn(Dn));A.__exportStar(rt(),m),A.__exportStar(mr(),m),A.__exportStar(bE(),m),A.__exportStar(EE(),m),A.__exportStar(qn(),m)}}),wE=Te({"src/main/options-normalizer.js"(m,A){Ve();var p=AE(),v=Jr(),D={key:P=>P.length===1?`-${P}`:`--${P}`,value:P=>p.apiDescriptor.value(P),pair:P=>{let{key:x,value:S}=P;return S===!1?`--no-${x}`:S===!0?D.key(x):S===""?`${D.key(x)} without an argument`:`${D.key(x)}=${S}`}},f=P=>{let{colorsModule:x,levenshteinDistance:S}=P;return class extends p.ChoiceSchema{constructor(R){let{name:X,flags:te}=R;super({name:X,choices:te}),this._flags=[...te].sort()}preprocess(R,X){if(typeof R=="string"&&R.length>0&&!this._flags.includes(R)){let te=this._flags.find($=>S($,R)<3);if(te)return X.logger.warn([`Unknown flag ${x.yellow(X.descriptor.value(R))},`,`did you mean ${x.blue(X.descriptor.value(te))}?`].join(" ")),te}return R}expected(){return"a flag"}}},d;function h(P,x){let{logger:S=!1,isCLI:R=!1,passThrough:X=!1,colorsModule:te=null,levenshteinDistance:$=null}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Q=X?Array.isArray(X)?(J,F)=>X.includes(J)?{[J]:F}:void 0:(J,F)=>({[J]:F}):(J,F,j)=>{let y=j.schemas,{_:L}=y,M=Tt(y,dt);return p.levenUnknownHandler(J,F,Object.assign(Object.assign({},j),{},{schemas:M}))},G=R?D:p.apiDescriptor,re=E(x,{isCLI:R,colorsModule:te,levenshteinDistance:$}),ee=new p.Normalizer(re,{logger:S,unknown:Q,descriptor:G}),De=S!==!1;De&&d&&(ee._hasDeprecationWarned=d);let N=ee.normalize(P);return De&&(d=ee._hasDeprecationWarned),R&&N["plugin-search"]===!1&&(N["plugin-search-dir"]=!1),N}function E(P,x){let{isCLI:S,colorsModule:R,levenshteinDistance:X}=x,te=[];S&&te.push(p.AnySchema.create({name:"_"}));for(let $ of P)te.push(C($,{isCLI:S,optionInfos:P,colorsModule:R,levenshteinDistance:X})),$.alias&&S&&te.push(p.AliasSchema.create({name:$.alias,sourceName:$.name}));return te}function C(P,x){let{isCLI:S,optionInfos:R,colorsModule:X,levenshteinDistance:te}=x,{name:$}=P;if($==="plugin-search-dir"||$==="pluginSearchDirs")return p.AnySchema.create({name:$,preprocess(ee){return ee===!1||(ee=Array.isArray(ee)?ee:[ee]),ee},validate(ee){return ee===!1?!0:ee.every(De=>typeof De=="string")},expected(){return"false or paths to plugin search dir"}});let Q={name:$},G,re={};switch(P.type){case"int":G=p.IntegerSchema,S&&(Q.preprocess=Number);break;case"string":G=p.StringSchema;break;case"choice":G=p.ChoiceSchema,Q.choices=P.choices.map(ee=>typeof ee=="object"&&ee.redirect?Object.assign(Object.assign({},ee),{},{redirect:{to:{key:P.name,value:ee.redirect}}}):ee);break;case"boolean":G=p.BooleanSchema;break;case"flag":G=f({colorsModule:X,levenshteinDistance:te}),Q.flags=R.flatMap(ee=>[ee.alias,ee.description&&ee.name,ee.oppositeDescription&&`no-${ee.name}`].filter(Boolean));break;case"path":G=p.StringSchema;break;default:throw new Error(`Unexpected type ${P.type}`)}if(P.exception?Q.validate=(ee,De,N)=>P.exception(ee)||De.validate(ee,N):Q.validate=(ee,De,N)=>ee===void 0||De.validate(ee,N),P.redirect&&(re.redirect=ee=>ee?{to:{key:P.redirect.option,value:P.redirect.value}}:void 0),P.deprecated&&(re.deprecated=!0),S&&!P.array){let ee=Q.preprocess||(De=>De);Q.preprocess=(De,N,J)=>N.preprocess(ee(Array.isArray(De)?v(De):De),J)}return P.array?p.ArraySchema.create(Object.assign(Object.assign(Object.assign({},S?{preprocess:ee=>Array.isArray(ee)?ee:[ee]}:{}),re),{},{valueSchema:G.create(Q)})):G.create(Object.assign(Object.assign({},Q),re))}function B(P,x,S){return h(P,x,S)}function _(P,x,S){return h(P,x,Object.assign({isCLI:!0},S))}A.exports={normalizeApiOptions:B,normalizeCliOptions:_}}}),as=Te({"src/language-js/loc.js"(m,A){Ve();var p=$t();function v(E){var C,B;let _=E.range?E.range[0]:E.start,P=(C=(B=E.declaration)===null||B===void 0?void 0:B.decorators)!==null&&C!==void 0?C:E.decorators;return p(P)?Math.min(v(P[0]),_):_}function D(E){return E.range?E.range[1]:E.end}function f(E,C){let B=v(E);return Number.isInteger(B)&&B===v(C)}function d(E,C){let B=D(E);return Number.isInteger(B)&&B===D(C)}function h(E,C){return f(E,C)&&d(E,C)}A.exports={locStart:v,locEnd:D,hasSameLocStart:f,hasSameLoc:h}}}),xE=Te({"src/main/load-parser.js"(m,A){Ve(),A.exports=()=>{}}}),CE=Te({"scripts/build/shims/babel-highlight.cjs"(m,A){Ve();var p=st(),v={shouldHighlight:()=>!1,getChalk:()=>p};A.exports=v}}),SE=Te({"node_modules/@babel/code-frame/lib/index.js"(m){Ve(),Object.defineProperty(m,"__esModule",{value:!0}),m.codeFrameColumns=d,m.default=h;var A=CE(),p=!1;function v(E){return{gutter:E.grey,marker:E.red.bold,message:E.red.bold}}var D=/\r\n|[\n\r\u2028\u2029]/;function f(E,C,B){let _=Object.assign({column:0,line:-1},E.start),P=Object.assign({},_,E.end),{linesAbove:x=2,linesBelow:S=3}=B||{},R=_.line,X=_.column,te=P.line,$=P.column,Q=Math.max(R-(x+1),0),G=Math.min(C.length,te+S);R===-1&&(Q=0),te===-1&&(G=C.length);let re=te-R,ee={};if(re)for(let De=0;De<=re;De++){let N=De+R;if(!X)ee[N]=!0;else if(De===0){let J=C[N-1].length;ee[N]=[X,J-X+1]}else if(De===re)ee[N]=[0,$];else{let J=C[N-De].length;ee[N]=[0,J]}}else X===$?X?ee[R]=[X,0]:ee[R]=!0:ee[R]=[X,$-X];return{start:Q,end:G,markerLines:ee}}function d(E,C){let B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},_=(B.highlightCode||B.forceColor)&&(0,A.shouldHighlight)(B),P=(0,A.getChalk)(B),x=v(P),S=(ee,De)=>_?ee(De):De,R=E.split(D),{start:X,end:te,markerLines:$}=f(C,R,B),Q=C.start&&typeof C.start.column=="number",G=String(te).length,re=(_?(0,A.default)(E,B):E).split(D,te).slice(X,te).map((ee,De)=>{let N=X+1+De,J=` ${` ${N}`.slice(-G)} |`,F=$[N],j=!$[N+1];if(F){let y="";if(Array.isArray(F)){let L=ee.slice(0,Math.max(F[0]-1,0)).replace(/[^\t]/g," "),M=F[1]||1;y=[`
201
+ `,S(x.gutter,J.replace(/\d/g," "))," ",L,S(x.marker,"^").repeat(M)].join(""),j&&B.message&&(y+=" "+S(x.message,B.message))}return[S(x.marker,">"),S(x.gutter,J),ee.length>0?` ${ee}`:"",y].join("")}else return` ${S(x.gutter,J)}${ee.length>0?` ${ee}`:""}`}).join(`
202
+ `);return B.message&&!Q&&(re=`${" ".repeat(G+1)}${B.message}
203
+ ${re}`),_?P.reset(re):re}function h(E,C,B){let _=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};if(!p){p=!0;let P="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(Tr.emitWarning)Tr.emitWarning(P,"DeprecationWarning");else{let x=new Error(P);x.name="DeprecationWarning",console.warn(new Error(P))}}return B=Math.max(B,0),d(E,{start:{column:B,line:C}},_)}}}),Cp=Te({"src/main/parser.js"(m,A){Ve();var{ConfigError:p}=sn(),v=as();xE();var{locStart:D,locEnd:f}=v,d=Object.getOwnPropertyNames,h=Object.getOwnPropertyDescriptor;function E(_){let P={};for(let x of _.plugins)if(x.parsers)for(let S of d(x.parsers))Object.defineProperty(P,S,h(x.parsers,S));return P}function C(_){let P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:E(_);if(typeof _.parser=="function")return{parse:_.parser,astFormat:"estree",locStart:D,locEnd:f};if(typeof _.parser=="string"){if(Object.prototype.hasOwnProperty.call(P,_.parser))return P[_.parser];throw new p(`Couldn't resolve parser "${_.parser}". Parsers must be explicitly added to the standalone bundle.`)}}function B(_,P){let x=E(P),S=Object.defineProperties({},Object.fromEntries(Object.keys(x).map(X=>[X,{enumerable:!0,get(){return x[X].parse}}]))),R=C(P,x);try{return R.preprocess&&(_=R.preprocess(_,P)),{text:_,ast:R.parse(_,S,P)}}catch(X){let{loc:te}=X;if(te){let{codeFrameColumns:$}=SE();throw X.codeFrame=$(_,te,{highlightCode:!0}),X.message+=`
204
+ `+X.codeFrame,X}throw X}}A.exports={parse:B,resolveParser:C}}}),T0=Te({"src/main/options.js"(m,A){Ve();var p=wt(),{UndefinedParserError:v}=sn(),{getSupportInfo:D}=Pt(),f=wE(),{resolveParser:d}=Cp(),h={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};function E(_){let P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},x=Object.assign({},_),S=D({plugins:_.plugins,showUnreleased:!0,showDeprecated:!0}).options,R=Object.assign(Object.assign({},h),Object.fromEntries(S.filter(G=>G.default!==void 0).map(G=>[G.name,G.default])));if(!x.parser){if(!x.filepath)(P.logger||console).warn("No parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred."),x.parser="babel";else if(x.parser=B(x.filepath,x.plugins),!x.parser)throw new v(`No parser could be inferred for file: ${x.filepath}`)}let X=d(f.normalizeApiOptions(x,[S.find(G=>G.name==="parser")],{passThrough:!0,logger:!1}));x.astFormat=X.astFormat,x.locEnd=X.locEnd,x.locStart=X.locStart;let te=C(x);x.printer=te.printers[x.astFormat];let $=Object.fromEntries(S.filter(G=>G.pluginDefaults&&G.pluginDefaults[te.name]!==void 0).map(G=>[G.name,G.pluginDefaults[te.name]])),Q=Object.assign(Object.assign({},R),$);for(let[G,re]of Object.entries(Q))(x[G]===null||x[G]===void 0)&&(x[G]=re);return x.parser==="json"&&(x.trailingComma="none"),f.normalizeApiOptions(x,S,Object.assign({passThrough:Object.keys(h)},P))}function C(_){let{astFormat:P}=_;if(!P)throw new Error("getPlugin() requires astFormat to be set");let x=_.plugins.find(S=>S.printers&&S.printers[P]);if(!x)throw new Error(`Couldn't find plugin for AST format "${P}"`);return x}function B(_,P){let x=p.basename(_).toLowerCase(),S=D({plugins:P}).languages.filter(R=>R.since!==null).find(R=>R.extensions&&R.extensions.some(X=>x.endsWith(X))||R.filenames&&R.filenames.some(X=>X.toLowerCase()===x));return S&&S.parsers[0]}A.exports={normalize:E,hiddenDefaults:h,inferParser:B}}}),FE=Te({"src/main/massage-ast.js"(m,A){Ve();function p(v,D,f){if(Array.isArray(v))return v.map(C=>p(C,D,f)).filter(Boolean);if(!v||typeof v!="object")return v;let d=D.printer.massageAstNode,h;d&&d.ignoredProperties?h=d.ignoredProperties:h=new Set;let E={};for(let[C,B]of Object.entries(v))!h.has(C)&&typeof B!="function"&&(E[C]=p(B,D,v));if(d){let C=d(v,E,f);if(C===null)return;if(C)return C}return E}A.exports=p}}),Xo=Te({"scripts/build/shims/assert.cjs"(m,A){Ve();var p=()=>{};p.ok=p,p.strictEqual=p,A.exports=p}}),Ur=Te({"src/main/comments.js"(m,A){Ve();var p=Xo(),{builders:{line:v,hardline:D,breakParent:f,indent:d,lineSuffix:h,join:E,cursor:C}}=Tn(),{hasNewline:B,skipNewline:_,skipSpaces:P,isPreviousLineEmpty:x,addLeadingComment:S,addDanglingComment:R,addTrailingComment:X}=ye(),te=new WeakMap;function $(se,le,ge){if(!se)return;let{printer:ce,locStart:Le,locEnd:ie}=le;if(ge){if(ce.canAttachComment&&ce.canAttachComment(se)){let he;for(he=ge.length-1;he>=0&&!(Le(ge[he])<=Le(se)&&ie(ge[he])<=ie(se));--he);ge.splice(he+1,0,se);return}}else if(te.has(se))return te.get(se);let We=ce.getCommentChildNodes&&ce.getCommentChildNodes(se,le)||typeof se=="object"&&Object.entries(se).filter(he=>{let[oe]=he;return oe!=="enclosingNode"&&oe!=="precedingNode"&&oe!=="followingNode"&&oe!=="tokens"&&oe!=="comments"&&oe!=="parent"}).map(he=>{let[,oe]=he;return oe});if(We){ge||(ge=[],te.set(se,ge));for(let he of We)$(he,le,ge);return ge}}function Q(se,le,ge,ce){let{locStart:Le,locEnd:ie}=ge,We=Le(le),he=ie(le),oe=$(se,ge),Ue,it,Xe=0,bt=oe.length;for(;Xe<bt;){let be=Xe+bt>>1,Re=oe[be],gt=Le(Re),yt=ie(Re);if(gt<=We&&he<=yt)return Q(Re,le,ge,Re);if(yt<=We){Ue=Re,Xe=be+1;continue}if(he<=gt){it=Re,bt=be;continue}throw new Error("Comment location overlaps with node location")}if(ce&&ce.type==="TemplateLiteral"){let{quasis:be}=ce,Re=j(be,le,ge);Ue&&j(be,Ue,ge)!==Re&&(Ue=null),it&&j(be,it,ge)!==Re&&(it=null)}return{enclosingNode:ce,precedingNode:Ue,followingNode:it}}var G=()=>!1;function re(se,le,ge,ce){if(!Array.isArray(se))return;let Le=[],{locStart:ie,locEnd:We,printer:{handleComments:he={}}}=ce,{avoidAstMutation:oe,ownLine:Ue=G,endOfLine:it=G,remaining:Xe=G}=he,bt=se.map((be,Re)=>Object.assign(Object.assign({},Q(le,be,ce)),{},{comment:be,text:ge,options:ce,ast:le,isLastComment:se.length-1===Re}));for(let[be,Re]of bt.entries()){let{comment:gt,precedingNode:yt,enclosingNode:zt,followingNode:qe,text:Ce,options:Qe,ast:et,isLastComment:Ct}=Re;if(Qe.parser==="json"||Qe.parser==="json5"||Qe.parser==="__js_expression"||Qe.parser==="__vue_expression"||Qe.parser==="__vue_ts_expression"){if(ie(gt)-ie(et)<=0){S(et,gt);continue}if(We(gt)-We(et)>=0){X(et,gt);continue}}let Bt;if(oe?Bt=[Re]:(gt.enclosingNode=zt,gt.precedingNode=yt,gt.followingNode=qe,Bt=[gt,Ce,Qe,et,Ct]),De(Ce,Qe,bt,be))gt.placement="ownLine",Ue(...Bt)||(qe?S(qe,gt):yt?X(yt,gt):R(zt||et,gt));else if(N(Ce,Qe,bt,be))gt.placement="endOfLine",it(...Bt)||(yt?X(yt,gt):qe?S(qe,gt):R(zt||et,gt));else if(gt.placement="remaining",!Xe(...Bt))if(yt&&qe){let Rt=Le.length;Rt>0&&Le[Rt-1].followingNode!==qe&&J(Le,Ce,Qe),Le.push(Re)}else yt?X(yt,gt):qe?S(qe,gt):R(zt||et,gt)}if(J(Le,ge,ce),!oe)for(let be of se)delete be.precedingNode,delete be.enclosingNode,delete be.followingNode}var ee=se=>!/[\S\n\u2028\u2029]/.test(se);function De(se,le,ge,ce){let{comment:Le,precedingNode:ie}=ge[ce],{locStart:We,locEnd:he}=le,oe=We(Le);if(ie)for(let Ue=ce-1;Ue>=0;Ue--){let{comment:it,precedingNode:Xe}=ge[Ue];if(Xe!==ie||!ee(se.slice(he(it),oe)))break;oe=We(it)}return B(se,oe,{backwards:!0})}function N(se,le,ge,ce){let{comment:Le,followingNode:ie}=ge[ce],{locStart:We,locEnd:he}=le,oe=he(Le);if(ie)for(let Ue=ce+1;Ue<ge.length;Ue++){let{comment:it,followingNode:Xe}=ge[Ue];if(Xe!==ie||!ee(se.slice(oe,We(it))))break;oe=he(it)}return B(se,oe)}function J(se,le,ge){let ce=se.length;if(ce===0)return;let{precedingNode:Le,followingNode:ie,enclosingNode:We}=se[0],he=ge.printer.getGapRegex&&ge.printer.getGapRegex(We)||/^[\s(]*$/,oe=ge.locStart(ie),Ue;for(Ue=ce;Ue>0;--Ue){let{comment:it,precedingNode:Xe,followingNode:bt}=se[Ue-1];p.strictEqual(Xe,Le),p.strictEqual(bt,ie);let be=le.slice(ge.locEnd(it),oe);if(he.test(be))oe=ge.locStart(it);else break}for(let[it,{comment:Xe}]of se.entries())it<Ue?X(Le,Xe):S(ie,Xe);for(let it of[Le,ie])it.comments&&it.comments.length>1&&it.comments.sort((Xe,bt)=>ge.locStart(Xe)-ge.locStart(bt));se.length=0}function F(se,le){let ge=se.getValue();return ge.printed=!0,le.printer.printComment(se,le)}function j(se,le,ge){let ce=ge.locStart(le)-1;for(let Le=1;Le<se.length;++Le)if(ce<ge.locStart(se[Le]))return Le-1;return 0}function y(se,le){let ge=se.getValue(),ce=[F(se,le)],{printer:Le,originalText:ie,locStart:We,locEnd:he}=le;if(Le.isBlockComment&&Le.isBlockComment(ge)){let Ue=B(ie,he(ge))?B(ie,We(ge),{backwards:!0})?D:v:" ";ce.push(Ue)}else ce.push(D);let oe=_(ie,P(ie,he(ge)));return oe!==!1&&B(ie,oe)&&ce.push(D),ce}function L(se,le){let ge=se.getValue(),ce=F(se,le),{printer:Le,originalText:ie,locStart:We}=le,he=Le.isBlockComment&&Le.isBlockComment(ge);if(B(ie,We(ge),{backwards:!0})){let Ue=x(ie,ge,We);return h([D,Ue?D:"",ce])}let oe=[" ",ce];return he||(oe=[h(oe),f]),oe}function M(se,le,ge,ce){let Le=[],ie=se.getValue();return!ie||!ie.comments||(se.each(()=>{let We=se.getValue();!We.leading&&!We.trailing&&(!ce||ce(We))&&Le.push(F(se,le))},"comments"),Le.length===0)?"":ge?E(D,Le):d([D,E(D,Le)])}function q(se,le,ge){let ce=se.getValue();if(!ce)return{};let Le=ce.comments||[];ge&&(Le=Le.filter(oe=>!ge.has(oe)));let ie=ce===le.cursorNode;if(Le.length===0){let oe=ie?C:"";return{leading:oe,trailing:oe}}let We=[],he=[];return se.each(()=>{let oe=se.getValue();if(ge&&ge.has(oe))return;let{leading:Ue,trailing:it}=oe;Ue?We.push(y(se,le)):it&&he.push(L(se,le))},"comments"),ie&&(We.unshift(C),he.push(C)),{leading:We,trailing:he}}function U(se,le,ge,ce){let{leading:Le,trailing:ie}=q(se,ge,ce);return!Le&&!ie?le:[Le,le,ie]}function z(se){if(se)for(let le of se){if(!le.printed)throw new Error('Comment "'+le.value.trim()+'" was not printed. Please report this error!');delete le.printed}}A.exports={attach:re,printComments:U,printCommentsSeparately:q,printDanglingComments:M,getSortedChildNodes:$,ensureAllCommentsPrinted:z}}}),NE=Te({"src/common/ast-path.js"(m,A){Ve();var p=Jr();function v(d,h){let E=D(d.stack,h);return E===-1?null:d.stack[E]}function D(d,h){for(let E=d.length-1;E>=0;E-=2){let C=d[E];if(C&&!Array.isArray(C)&&--h<0)return E}return-1}var f=class{constructor(d){this.stack=[d]}getName(){let{stack:d}=this,{length:h}=d;return h>1?d[h-2]:null}getValue(){return p(this.stack)}getNode(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return v(this,d)}getParentNode(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return v(this,d+1)}call(d){let{stack:h}=this,{length:E}=h,C=p(h);for(var B=arguments.length,_=new Array(B>1?B-1:0),P=1;P<B;P++)_[P-1]=arguments[P];for(let S of _)C=C[S],h.push(S,C);let x=d(this);return h.length=E,x}callParent(d){let h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,E=D(this.stack,h+1),C=this.stack.splice(E+1),B=d(this);return this.stack.push(...C),B}each(d){let{stack:h}=this,{length:E}=h,C=p(h);for(var B=arguments.length,_=new Array(B>1?B-1:0),P=1;P<B;P++)_[P-1]=arguments[P];for(let x of _)C=C[x],h.push(x,C);for(let x=0;x<C.length;++x)h.push(x,C[x]),d(this,x,C),h.length-=2;h.length=E}map(d){let h=[];for(var E=arguments.length,C=new Array(E>1?E-1:0),B=1;B<E;B++)C[B-1]=arguments[B];return this.each((_,P,x)=>{h[P]=d(_,P,x)},...C),h}try(d){let{stack:h}=this,E=[...h];try{return d()}finally{h.length=0,h.push(...E)}}match(){let d=this.stack.length-1,h=null,E=this.stack[d--];for(var C=arguments.length,B=new Array(C),_=0;_<C;_++)B[_]=arguments[_];for(let P of B){if(E===void 0)return!1;let x=null;if(typeof h=="number"&&(x=h,h=this.stack[d--],E=this.stack[d--]),P&&!P(E,h,x))return!1;h=this.stack[d--],E=this.stack[d--]}return!0}findAncestor(d){let h=this.stack.length-1,E=null,C=this.stack[h--];for(;C;){let B=null;if(typeof E=="number"&&(B=E,E=this.stack[h--],C=this.stack[h--]),E!==null&&d(C,E,B))return C;E=this.stack[h--],C=this.stack[h--]}}};A.exports=f}}),TE=Te({"src/main/multiparser.js"(m,A){Ve();var{utils:{stripTrailingHardline:p}}=Tn(),{normalize:v}=T0(),D=Ur();function f(h,E,C,B){if(C.printer.embed&&C.embeddedLanguageFormatting==="auto")return C.printer.embed(h,E,(_,P,x)=>d(_,P,C,B,x),C)}function d(h,E,C,B){let{stripTrailingHardline:_=!1}=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{},P=v(Object.assign(Object.assign(Object.assign({},C),E),{},{parentParser:C.parser,originalText:h}),{passThrough:!0}),x=Cp().parse(h,P),{ast:S}=x;h=x.text;let R=S.comments;delete S.comments,D.attach(R,S,h,P),P[Symbol.for("comments")]=R||[],P[Symbol.for("tokens")]=S.tokens||[];let X=B(S,P);return D.ensureAllCommentsPrinted(R),_?typeof X=="string"?X.replace(/(?:\r?\n)*$/,""):p(X):X}A.exports={printSubtree:f}}}),_E=Te({"src/main/ast-to-doc.js"(m,A){Ve();var p=NE(),{builders:{hardline:v,addAlignmentToDoc:D},utils:{propagateBreaks:f}}=Tn(),{printComments:d}=Ur(),h=TE();function E(_,P){let x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,{printer:S}=P;S.preprocess&&(_=S.preprocess(_,P));let R=new Map,X=new p(_),te=$();return x>0&&(te=D([v,te],x,P.tabWidth)),f(te),te;function $(G,re){return G===void 0||G===X?Q(re):Array.isArray(G)?X.call(()=>Q(re),...G):X.call(()=>Q(re),G)}function Q(G){let re=X.getValue(),ee=re&&typeof re=="object"&&G===void 0;if(ee&&R.has(re))return R.get(re);let De=B(X,P,$,G);return ee&&R.set(re,De),De}}function C(_,P){let{originalText:x,[Symbol.for("comments")]:S,locStart:R,locEnd:X}=P,te=R(_),$=X(_),Q=new Set;for(let G of S)R(G)>=te&&X(G)<=$&&(G.printed=!0,Q.add(G));return{doc:x.slice(te,$),printedComments:Q}}function B(_,P,x,S){let R=_.getValue(),{printer:X}=P,te,$;if(X.hasPrettierIgnore&&X.hasPrettierIgnore(_))({doc:te,printedComments:$}=C(R,P));else{if(R)try{te=h.printSubtree(_,x,P,E)}catch(Q){if(globalThis.PRETTIER_DEBUG)throw Q}te||(te=X.print(_,P,x,S))}return(!X.willPrintOwnComments||!X.willPrintOwnComments(_,P))&&(te=d(_,te,P,$)),te}A.exports=E}}),LE=Te({"src/main/range-util.js"(m,A){Ve();var p=Xo(),v=Ur(),D=S=>{let{parser:R}=S;return R==="json"||R==="json5"||R==="json-stringify"};function f(S,R){let X=[S.node,...S.parentNodes],te=new Set([R.node,...R.parentNodes]);return X.find($=>B.has($.type)&&te.has($))}function d(S){let R=S.length-1;for(;;){let X=S[R];if(X&&(X.type==="Program"||X.type==="File"))R--;else break}return S.slice(0,R+1)}function h(S,R,X){let{locStart:te,locEnd:$}=X,Q=S.node,G=R.node;if(Q===G)return{startNode:Q,endNode:G};let re=te(S.node);for(let De of d(R.parentNodes))if(te(De)>=re)G=De;else break;let ee=$(R.node);for(let De of d(S.parentNodes)){if($(De)<=ee)Q=De;else break;if(Q===G)break}return{startNode:Q,endNode:G}}function E(S,R,X,te){let $=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],Q=arguments.length>5?arguments[5]:void 0,{locStart:G,locEnd:re}=X,ee=G(S),De=re(S);if(!(R>De||R<ee||Q==="rangeEnd"&&R===ee||Q==="rangeStart"&&R===De)){for(let N of v.getSortedChildNodes(S,X)){let J=E(N,R,X,te,[S,...$],Q);if(J)return J}if(!te||te(S,$[0]))return{node:S,parentNodes:$}}}function C(S,R){return R!=="DeclareExportDeclaration"&&S!=="TypeParameterDeclaration"&&(S==="Directive"||S==="TypeAlias"||S==="TSExportAssignment"||S.startsWith("Declare")||S.startsWith("TSDeclare")||S.endsWith("Statement")||S.endsWith("Declaration"))}var B=new Set(["ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral","UnaryExpression","TemplateLiteral"]),_=new Set(["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"]);function P(S,R,X){if(!R)return!1;switch(S.parser){case"flow":case"babel":case"babel-flow":case"babel-ts":case"typescript":case"acorn":case"espree":case"meriyah":case"__babel_estree":return C(R.type,X&&X.type);case"json":case"json5":case"json-stringify":return B.has(R.type);case"graphql":return _.has(R.kind);case"vue":return R.tag!=="root"}return!1}function x(S,R,X){let{rangeStart:te,rangeEnd:$,locStart:Q,locEnd:G}=R;p.ok($>te);let re=S.slice(te,$).search(/\S/),ee=re===-1;if(!ee)for(te+=re;$>te&&!/\S/.test(S[$-1]);--$);let De=E(X,te,R,(j,y)=>P(R,j,y),[],"rangeStart"),N=ee?De:E(X,$,R,j=>P(R,j),[],"rangeEnd");if(!De||!N)return{rangeStart:0,rangeEnd:0};let J,F;if(D(R)){let j=f(De,N);J=j,F=j}else({startNode:J,endNode:F}=h(De,N,R));return{rangeStart:Math.min(Q(J),Q(F)),rangeEnd:Math.max(G(J),G(F))}}A.exports={calculateRange:x,findNodeAtOffset:E}}}),kE=Te({"src/main/core.js"(m,A){Ve();var{diffArrays:p}=Oi(),{printer:{printDocToString:v},debug:{printDocToDebug:D}}=Tn(),{getAlignmentSize:f}=ye(),{guessEndOfLine:d,convertEndOfLineToChars:h,countEndOfLineChars:E,normalizeEndOfLine:C}=ii(),B=T0().normalize,_=FE(),P=Ur(),x=Cp(),S=_E(),R=LE(),X="\uFEFF",te=Symbol("cursor");function $(F,j,y){let L=j.comments;return L&&(delete j.comments,P.attach(L,j,F,y)),y[Symbol.for("comments")]=L||[],y[Symbol.for("tokens")]=j.tokens||[],y.originalText=F,L}function Q(F,j){let y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(!F||F.trim().length===0)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:L,text:M}=x.parse(F,j);if(j.cursorOffset>=0){let se=R.findNodeAtOffset(L,j.cursorOffset,j);se&&se.node&&(j.cursorNode=se.node)}let q=$(M,L,j),U=S(L,j,y),z=v(U,j);if(P.ensureAllCommentsPrinted(q),y>0){let se=z.formatted.trim();z.cursorNodeStart!==void 0&&(z.cursorNodeStart-=z.formatted.indexOf(se)),z.formatted=se+h(j.endOfLine)}if(j.cursorOffset>=0){let se,le,ge,ce,Le;if(j.cursorNode&&z.cursorNodeText?(se=j.locStart(j.cursorNode),le=M.slice(se,j.locEnd(j.cursorNode)),ge=j.cursorOffset-se,ce=z.cursorNodeStart,Le=z.cursorNodeText):(se=0,le=M,ge=j.cursorOffset,ce=0,Le=z.formatted),le===Le)return{formatted:z.formatted,cursorOffset:ce+ge,comments:q};let ie=[...le];ie.splice(ge,0,te);let We=[...Le],he=p(ie,We),oe=ce;for(let Ue of he)if(Ue.removed){if(Ue.value.includes(te))break}else oe+=Ue.count;return{formatted:z.formatted,cursorOffset:oe,comments:q}}return{formatted:z.formatted,cursorOffset:-1,comments:q}}function G(F,j){let{ast:y,text:L}=x.parse(F,j),{rangeStart:M,rangeEnd:q}=R.calculateRange(L,j,y),U=L.slice(M,q),z=Math.min(M,L.lastIndexOf(`
205
+ `,M)+1),se=L.slice(z,M).match(/^\s*/)[0],le=f(se,j.tabWidth),ge=Q(U,Object.assign(Object.assign({},j),{},{rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:j.cursorOffset>M&&j.cursorOffset<=q?j.cursorOffset-M:-1,endOfLine:"lf"}),le),ce=ge.formatted.trimEnd(),{cursorOffset:Le}=j;Le>q?Le+=ce.length-U.length:ge.cursorOffset>=0&&(Le=ge.cursorOffset+M);let ie=L.slice(0,M)+ce+L.slice(q);if(j.endOfLine!=="lf"){let We=h(j.endOfLine);Le>=0&&We===`\r
206
+ `&&(Le+=E(ie.slice(0,Le),`
207
+ `)),ie=ie.replace(/\n/g,We)}return{formatted:ie,cursorOffset:Le,comments:ge.comments}}function re(F,j,y){return typeof j!="number"||Number.isNaN(j)||j<0||j>F.length?y:j}function ee(F,j){let{cursorOffset:y,rangeStart:L,rangeEnd:M}=j;return y=re(F,y,-1),L=re(F,L,0),M=re(F,M,F.length),Object.assign(Object.assign({},j),{},{cursorOffset:y,rangeStart:L,rangeEnd:M})}function De(F,j){let{cursorOffset:y,rangeStart:L,rangeEnd:M,endOfLine:q}=ee(F,j),U=F.charAt(0)===X;if(U&&(F=F.slice(1),y--,L--,M--),q==="auto"&&(q=d(F)),F.includes("\r")){let z=se=>E(F.slice(0,Math.max(se,0)),`\r
208
+ `);y-=z(y),L-=z(L),M-=z(M),F=C(F)}return{hasBOM:U,text:F,options:ee(F,Object.assign(Object.assign({},j),{},{cursorOffset:y,rangeStart:L,rangeEnd:M,endOfLine:q}))}}function N(F,j){let y=x.resolveParser(j);return!y.hasPragma||y.hasPragma(F)}function J(F,j){let{hasBOM:y,text:L,options:M}=De(F,B(j));if(M.rangeStart>=M.rangeEnd&&L!==""||M.requirePragma&&!N(L,M))return{formatted:F,cursorOffset:j.cursorOffset,comments:[]};let q;return M.rangeStart>0||M.rangeEnd<L.length?q=G(L,M):(!M.requirePragma&&M.insertPragma&&M.printer.insertPragma&&!N(L,M)&&(L=M.printer.insertPragma(L)),q=Q(L,M)),y&&(q.formatted=X+q.formatted,q.cursorOffset>=0&&q.cursorOffset++),q}A.exports={formatWithCursor:J,parse(F,j,y){let{text:L,options:M}=De(F,B(j)),q=x.parse(L,M);return y&&(q.ast=_(q.ast,M)),q},formatAST(F,j){j=B(j);let y=S(F,j);return v(y,j)},formatDoc(F,j){return J(D(F),Object.assign(Object.assign({},j),{},{parser:"__js_expression"})).formatted},printToDoc(F,j){j=B(j);let{ast:y,text:L}=x.parse(F,j);return $(L,y,j),S(y,j)},printDocToString(F,j){return v(F,B(j))}}}}),PE=Te({"src/common/util-shared.js"(m,A){Ve();var{getMaxContinuousCount:p,getStringWidth:v,getAlignmentSize:D,getIndentSize:f,skip:d,skipWhitespace:h,skipSpaces:E,skipNewline:C,skipToLineEnd:B,skipEverythingButNewLine:_,skipInlineComment:P,skipTrailingComment:x,hasNewline:S,hasNewlineInRange:R,hasSpaces:X,isNextLineEmpty:te,isNextLineEmptyAfterIndex:$,isPreviousLineEmpty:Q,getNextNonSpaceNonCommentCharacterIndex:G,makeString:re,addLeadingComment:ee,addDanglingComment:De,addTrailingComment:N}=ye();A.exports={getMaxContinuousCount:p,getStringWidth:v,getAlignmentSize:D,getIndentSize:f,skip:d,skipWhitespace:h,skipSpaces:E,skipNewline:C,skipToLineEnd:B,skipEverythingButNewLine:_,skipInlineComment:P,skipTrailingComment:x,hasNewline:S,hasNewlineInRange:R,hasSpaces:X,isNextLineEmpty:te,isNextLineEmptyAfterIndex:$,isPreviousLineEmpty:Q,getNextNonSpaceNonCommentCharacterIndex:G,makeString:re,addLeadingComment:ee,addDanglingComment:De,addTrailingComment:N}}}),oa=Te({"src/utils/create-language.js"(m,A){Ve(),A.exports=function(p,v){let{languageId:D}=p,f=Tt(p,ut);return Object.assign(Object.assign({linguistLanguageId:D},f),v(p))}}}),BE=Te({"node_modules/esutils/lib/ast.js"(m,A){Ve(),(function(){function p(E){if(E==null)return!1;switch(E.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1}function v(E){if(E==null)return!1;switch(E.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1}function D(E){if(E==null)return!1;switch(E.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function f(E){return D(E)||E!=null&&E.type==="FunctionDeclaration"}function d(E){switch(E.type){case"IfStatement":return E.alternate!=null?E.alternate:E.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return E.body}return null}function h(E){var C;if(E.type!=="IfStatement"||E.alternate==null)return!1;C=E.consequent;do{if(C.type==="IfStatement"&&C.alternate==null)return!0;C=d(C)}while(C);return!1}A.exports={isExpression:p,isStatement:D,isIterationStatement:v,isSourceElement:f,isProblematicIfStatement:h,trailingStatement:d}})()}}),_0=Te({"node_modules/esutils/lib/code.js"(m,A){Ve(),(function(){var p,v,D,f,d,h;v={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},p={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};function E($){return 48<=$&&$<=57}function C($){return 48<=$&&$<=57||97<=$&&$<=102||65<=$&&$<=70}function B($){return $>=48&&$<=55}D=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function _($){return $===32||$===9||$===11||$===12||$===160||$>=5760&&D.indexOf($)>=0}function P($){return $===10||$===13||$===8232||$===8233}function x($){if($<=65535)return String.fromCharCode($);var Q=String.fromCharCode(Math.floor(($-65536)/1024)+55296),G=String.fromCharCode(($-65536)%1024+56320);return Q+G}for(f=new Array(128),h=0;h<128;++h)f[h]=h>=97&&h<=122||h>=65&&h<=90||h===36||h===95;for(d=new Array(128),h=0;h<128;++h)d[h]=h>=97&&h<=122||h>=65&&h<=90||h>=48&&h<=57||h===36||h===95;function S($){return $<128?f[$]:v.NonAsciiIdentifierStart.test(x($))}function R($){return $<128?d[$]:v.NonAsciiIdentifierPart.test(x($))}function X($){return $<128?f[$]:p.NonAsciiIdentifierStart.test(x($))}function te($){return $<128?d[$]:p.NonAsciiIdentifierPart.test(x($))}A.exports={isDecimalDigit:E,isHexDigit:C,isOctalDigit:B,isWhiteSpace:_,isLineTerminator:P,isIdentifierStartES5:S,isIdentifierPartES5:R,isIdentifierStartES6:X,isIdentifierPartES6:te}})()}}),ME=Te({"node_modules/esutils/lib/keyword.js"(m,A){Ve(),(function(){var p=_0();function v(S){switch(S){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}function D(S,R){return!R&&S==="yield"?!1:f(S,R)}function f(S,R){if(R&&v(S))return!0;switch(S.length){case 2:return S==="if"||S==="in"||S==="do";case 3:return S==="var"||S==="for"||S==="new"||S==="try";case 4:return S==="this"||S==="else"||S==="case"||S==="void"||S==="with"||S==="enum";case 5:return S==="while"||S==="break"||S==="catch"||S==="throw"||S==="const"||S==="yield"||S==="class"||S==="super";case 6:return S==="return"||S==="typeof"||S==="delete"||S==="switch"||S==="export"||S==="import";case 7:return S==="default"||S==="finally"||S==="extends";case 8:return S==="function"||S==="continue"||S==="debugger";case 10:return S==="instanceof";default:return!1}}function d(S,R){return S==="null"||S==="true"||S==="false"||D(S,R)}function h(S,R){return S==="null"||S==="true"||S==="false"||f(S,R)}function E(S){return S==="eval"||S==="arguments"}function C(S){var R,X,te;if(S.length===0||(te=S.charCodeAt(0),!p.isIdentifierStartES5(te)))return!1;for(R=1,X=S.length;R<X;++R)if(te=S.charCodeAt(R),!p.isIdentifierPartES5(te))return!1;return!0}function B(S,R){return(S-55296)*1024+(R-56320)+65536}function _(S){var R,X,te,$,Q;if(S.length===0)return!1;for(Q=p.isIdentifierStartES6,R=0,X=S.length;R<X;++R){if(te=S.charCodeAt(R),55296<=te&&te<=56319){if(++R,R>=X||($=S.charCodeAt(R),!(56320<=$&&$<=57343)))return!1;te=B(te,$)}if(!Q(te))return!1;Q=p.isIdentifierPartES6}return!0}function P(S,R){return C(S)&&!d(S,R)}function x(S,R){return _(S)&&!h(S,R)}A.exports={isKeywordES5:D,isKeywordES6:f,isReservedWordES5:d,isReservedWordES6:h,isRestrictedWord:E,isIdentifierNameES5:C,isIdentifierNameES6:_,isIdentifierES5:P,isIdentifierES6:x}})()}}),IE=Te({"node_modules/esutils/lib/utils.js"(m){Ve(),(function(){m.ast=BE(),m.code=_0(),m.keyword=ME()})()}}),ua=Te({"src/language-js/utils/is-block-comment.js"(m,A){Ve();var p=new Set(["Block","CommentBlock","MultiLine"]),v=D=>p.has(D?.type);A.exports=v}}),OE=Te({"src/language-js/utils/is-node-matches.js"(m,A){Ve();function p(D,f){let d=f.split(".");for(let h=d.length-1;h>=0;h--){let E=d[h];if(h===0)return D.type==="Identifier"&&D.name===E;if(D.type!=="MemberExpression"||D.optional||D.computed||D.property.type!=="Identifier"||D.property.name!==E)return!1;D=D.object}}function v(D,f){return f.some(d=>p(D,d))}A.exports=v}}),br=Te({"src/language-js/utils/index.js"(m,A){Ve();var p=IE().keyword.isIdentifierNameES5,{getLast:v,hasNewline:D,skipWhitespace:f,isNonEmptyArray:d,isNextLineEmptyAfterIndex:h,getStringWidth:E}=ye(),{locStart:C,locEnd:B,hasSameLocStart:_}=as(),P=ua(),x=OE(),S="(?:(?=.)\\s)",R=new RegExp(`^${S}*:`),X=new RegExp(`^${S}*::`);function te(ae){var St,bn;return((St=ae.extra)===null||St===void 0?void 0:St.parenthesized)&&P((bn=ae.trailingComments)===null||bn===void 0?void 0:bn[0])&&R.test(ae.trailingComments[0].value)}function $(ae){let St=ae?.[0];return P(St)&&X.test(St.value)}function Q(ae,St){if(!ae||typeof ae!="object")return!1;if(Array.isArray(ae))return ae.some(zn=>Q(zn,St));let bn=St(ae);return typeof bn=="boolean"?bn:Object.values(ae).some(zn=>Q(zn,St))}function G(ae){return ae.type==="AssignmentExpression"||ae.type==="BinaryExpression"||ae.type==="LogicalExpression"||ae.type==="NGPipeExpression"||ae.type==="ConditionalExpression"||gt(ae)||yt(ae)||ae.type==="SequenceExpression"||ae.type==="TaggedTemplateExpression"||ae.type==="BindExpression"||ae.type==="UpdateExpression"&&!ae.prefix||_s(ae)||ae.type==="TSNonNullExpression"}function re(ae){var St,bn,zn,Xn,As,Lr;return ae.expressions?ae.expressions[0]:(St=(bn=(zn=(Xn=(As=(Lr=ae.left)!==null&&Lr!==void 0?Lr:ae.test)!==null&&As!==void 0?As:ae.callee)!==null&&Xn!==void 0?Xn:ae.object)!==null&&zn!==void 0?zn:ae.tag)!==null&&bn!==void 0?bn:ae.argument)!==null&&St!==void 0?St:ae.expression}function ee(ae,St){if(St.expressions)return["expressions",0];if(St.left)return["left"];if(St.test)return["test"];if(St.object)return["object"];if(St.callee)return["callee"];if(St.tag)return["tag"];if(St.argument)return["argument"];if(St.expression)return["expression"];throw new Error("Unexpected node has no left side.")}function De(ae){return ae=new Set(ae),St=>ae.has(St?.type)}var N=De(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose"]),J=De(["ExportDefaultDeclaration","ExportDefaultSpecifier","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration"]);function F(ae){let St=ae.getParentNode();return ae.getName()==="declaration"&&J(St)?St:null}var j=De(["BooleanLiteral","DirectiveLiteral","Literal","NullLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","RegExpLiteral","StringLiteral","TemplateLiteral","TSTypeLiteral","JSXText"]);function y(ae){return ae.type==="NumericLiteral"||ae.type==="Literal"&&typeof ae.value=="number"}function L(ae){return ae.type==="UnaryExpression"&&(ae.operator==="+"||ae.operator==="-")&&y(ae.argument)}function M(ae){return ae.type==="StringLiteral"||ae.type==="Literal"&&typeof ae.value=="string"}var q=De(["ObjectTypeAnnotation","TSTypeLiteral","TSMappedType"]),U=De(["FunctionExpression","ArrowFunctionExpression"]);function z(ae){return ae.type==="FunctionExpression"||ae.type==="ArrowFunctionExpression"&&ae.body.type==="BlockStatement"}function se(ae){return gt(ae)&&ae.callee.type==="Identifier"&&["async","inject","fakeAsync","waitForAsync"].includes(ae.callee.name)}var le=De(["JSXElement","JSXFragment"]);function ge(ae,St){if(ae.parentParser!=="markdown"&&ae.parentParser!=="mdx")return!1;let bn=St.getNode();if(!bn.expression||!le(bn.expression))return!1;let zn=St.getParentNode();return zn.type==="Program"&&zn.body.length===1}function ce(ae){return ae.kind==="get"||ae.kind==="set"}function Le(ae){return ce(ae)||_(ae,ae.value)}function ie(ae){return(ae.type==="ObjectTypeProperty"||ae.type==="ObjectTypeInternalSlot")&&ae.value.type==="FunctionTypeAnnotation"&&!ae.static&&!Le(ae)}function We(ae){return(ae.type==="TypeAnnotation"||ae.type==="TSTypeAnnotation")&&ae.typeAnnotation.type==="FunctionTypeAnnotation"&&!ae.static&&!_(ae,ae.typeAnnotation)}var he=De(["BinaryExpression","LogicalExpression","NGPipeExpression"]);function oe(ae){return yt(ae)||ae.type==="BindExpression"&&!!ae.object}var Ue=new Set(["AnyTypeAnnotation","TSAnyKeyword","NullLiteralTypeAnnotation","TSNullKeyword","ThisTypeAnnotation","TSThisType","NumberTypeAnnotation","TSNumberKeyword","VoidTypeAnnotation","TSVoidKeyword","BooleanTypeAnnotation","TSBooleanKeyword","BigIntTypeAnnotation","TSBigIntKeyword","SymbolTypeAnnotation","TSSymbolKeyword","StringTypeAnnotation","TSStringKeyword","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType","EmptyTypeAnnotation","MixedTypeAnnotation","TSNeverKeyword","TSObjectKeyword","TSUndefinedKeyword","TSUnknownKeyword"]);function it(ae){return ae?!!((ae.type==="GenericTypeAnnotation"||ae.type==="TSTypeReference")&&!ae.typeParameters||Ue.has(ae.type)):!1}function Xe(ae){let St=/^(?:before|after)(?:Each|All)$/;return ae.callee.type==="Identifier"&&St.test(ae.callee.name)&&ae.arguments.length===1}var bt=["it","it.only","it.skip","describe","describe.only","describe.skip","test","test.only","test.skip","test.step","test.describe","test.describe.only","test.describe.parallel","test.describe.parallel.only","test.describe.serial","test.describe.serial.only","skip","xit","xdescribe","xtest","fit","fdescribe","ftest"];function be(ae){return x(ae,bt)}function Re(ae,St){if(ae.type!=="CallExpression")return!1;if(ae.arguments.length===1){if(se(ae)&&St&&Re(St))return U(ae.arguments[0]);if(Xe(ae))return se(ae.arguments[0])}else if((ae.arguments.length===2||ae.arguments.length===3)&&(ae.arguments[0].type==="TemplateLiteral"||M(ae.arguments[0]))&&be(ae.callee))return ae.arguments[2]&&!y(ae.arguments[2])?!1:(ae.arguments.length===2?U(ae.arguments[1]):z(ae.arguments[1])&&jt(ae.arguments[1]).length<=1)||se(ae.arguments[1]);return!1}var gt=De(["CallExpression","OptionalCallExpression"]),yt=De(["MemberExpression","OptionalMemberExpression"]);function zt(ae){let St="expressions";ae.type==="TSTemplateLiteralType"&&(St="types");let bn=ae[St];return bn.length===0?!1:bn.every(zn=>{if(Fn(zn))return!1;if(zn.type==="Identifier"||zn.type==="ThisExpression")return!0;if(yt(zn)){let Xn=zn;for(;yt(Xn);)if(Xn.property.type!=="Identifier"&&Xn.property.type!=="Literal"&&Xn.property.type!=="StringLiteral"&&Xn.property.type!=="NumericLiteral"||(Xn=Xn.object,Fn(Xn)))return!1;return Xn.type==="Identifier"||Xn.type==="ThisExpression"}return!1})}function qe(ae,St){return ae==="+"||ae==="-"?ae+St:St}function Ce(ae,St){let bn=C(St),zn=f(ae,B(St));return zn!==!1&&ae.slice(bn,bn+2)==="/*"&&ae.slice(zn,zn+2)==="*/"}function Qe(ae,St){return le(St)?In(St):Fn(St,cn.Leading,bn=>D(ae,B(bn)))}function et(ae,St){return St.parser!=="json"&&M(ae.key)&&pt(ae.key).slice(1,-1)===ae.key.value&&(p(ae.key.value)&&!(St.parser==="babel-ts"&&ae.type==="ClassProperty"||St.parser==="typescript"&&ae.type==="PropertyDefinition")||Ct(ae.key.value)&&String(Number(ae.key.value))===ae.key.value&&(St.parser==="babel"||St.parser==="acorn"||St.parser==="espree"||St.parser==="meriyah"||St.parser==="__babel_estree"))}function Ct(ae){return/^(?:\d+|\d+\.\d+)$/.test(ae)}function Bt(ae,St){let bn=/^[fx]?(?:describe|it|test)$/;return St.type==="TaggedTemplateExpression"&&St.quasi===ae&&St.tag.type==="MemberExpression"&&St.tag.property.type==="Identifier"&&St.tag.property.name==="each"&&(St.tag.object.type==="Identifier"&&bn.test(St.tag.object.name)||St.tag.object.type==="MemberExpression"&&St.tag.object.property.type==="Identifier"&&(St.tag.object.property.name==="only"||St.tag.object.property.name==="skip")&&St.tag.object.object.type==="Identifier"&&bn.test(St.tag.object.object.name))}function Rt(ae){return ae.quasis.some(St=>St.value.raw.includes(`
209
+ `))}function hn(ae,St){return(ae.type==="TemplateLiteral"&&Rt(ae)||ae.type==="TaggedTemplateExpression"&&Rt(ae.quasi))&&!D(St,C(ae),{backwards:!0})}function Rn(ae){if(!Fn(ae))return!1;let St=v(ht(ae,cn.Dangling));return St&&!P(St)}function Bn(ae){if(ae.length<=1)return!1;let St=0;for(let bn of ae)if(U(bn)){if(St+=1,St>1)return!0}else if(gt(bn)){for(let zn of bn.arguments)if(U(zn))return!0}return!1}function dn(ae){let St=ae.getValue(),bn=ae.getParentNode();return gt(St)&&gt(bn)&&bn.callee===St&&St.arguments.length>bn.arguments.length&&bn.arguments.length>0}function En(ae,St){if(St>=2)return!1;let bn=Lr=>En(Lr,St+1),zn=ae.type==="Literal"&&"regex"in ae&&ae.regex.pattern||ae.type==="RegExpLiteral"&&ae.pattern;if(zn&&E(zn)>5)return!1;if(ae.type==="Literal"||ae.type==="BigIntLiteral"||ae.type==="DecimalLiteral"||ae.type==="BooleanLiteral"||ae.type==="NullLiteral"||ae.type==="NumericLiteral"||ae.type==="RegExpLiteral"||ae.type==="StringLiteral"||ae.type==="Identifier"||ae.type==="ThisExpression"||ae.type==="Super"||ae.type==="PrivateName"||ae.type==="PrivateIdentifier"||ae.type==="ArgumentPlaceholder"||ae.type==="Import")return!0;if(ae.type==="TemplateLiteral")return ae.quasis.every(Lr=>!Lr.value.raw.includes(`
210
+ `))&&ae.expressions.every(bn);if(ae.type==="ObjectExpression")return ae.properties.every(Lr=>!Lr.computed&&(Lr.shorthand||Lr.value&&bn(Lr.value)));if(ae.type==="ArrayExpression")return ae.elements.every(Lr=>Lr===null||bn(Lr));if(es(ae))return(ae.type==="ImportExpression"||En(ae.callee,St))&&xr(ae).every(bn);if(yt(ae))return En(ae.object,St)&&En(ae.property,St);let Xn={"!":!0,"-":!0,"+":!0,"~":!0};if(ae.type==="UnaryExpression"&&Xn[ae.operator])return En(ae.argument,St);let As={"++":!0,"--":!0};return ae.type==="UpdateExpression"&&As[ae.operator]?En(ae.argument,St):ae.type==="TSNonNullExpression"?En(ae.expression,St):!1}function pt(ae){var St,bn;return(St=(bn=ae.extra)===null||bn===void 0?void 0:bn.raw)!==null&&St!==void 0?St:ae.raw}function Ae(ae){return ae}function Dt(ae){return ae.filepath&&/\.tsx$/i.test(ae.filepath)}function je(ae){let St=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"es5";return ae.trailingComma==="es5"&&St==="es5"||ae.trailingComma==="all"&&(St==="all"||St==="es5")}function mt(ae,St){switch(ae.type){case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":case"NGPipeExpression":return mt(ae.left,St);case"MemberExpression":case"OptionalMemberExpression":return mt(ae.object,St);case"TaggedTemplateExpression":return ae.tag.type==="FunctionExpression"?!1:mt(ae.tag,St);case"CallExpression":case"OptionalCallExpression":return ae.callee.type==="FunctionExpression"?!1:mt(ae.callee,St);case"ConditionalExpression":return mt(ae.test,St);case"UpdateExpression":return!ae.prefix&&mt(ae.argument,St);case"BindExpression":return ae.object&&mt(ae.object,St);case"SequenceExpression":return mt(ae.expressions[0],St);case"TSSatisfiesExpression":case"TSAsExpression":case"TSNonNullExpression":return mt(ae.expression,St);default:return St(ae)}}var nn={"==":!0,"!=":!0,"===":!0,"!==":!0},Jt={"*":!0,"/":!0,"%":!0},Et={">>":!0,">>>":!0,"<<":!0};function V(ae,St){return!(ot(St)!==ot(ae)||ae==="**"||nn[ae]&&nn[St]||St==="%"&&Jt[ae]||ae==="%"&&Jt[St]||St!==ae&&Jt[St]&&Jt[ae]||Et[ae]&&Et[St])}var ke=new Map([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].flatMap((ae,St)=>ae.map(bn=>[bn,St])));function ot(ae){return ke.get(ae)}function It(ae){return!!Et[ae]||ae==="|"||ae==="^"||ae==="&"}function Wt(ae){var St;if(ae.rest)return!0;let bn=jt(ae);return((St=v(bn))===null||St===void 0?void 0:St.type)==="RestElement"}var pn=new WeakMap;function jt(ae){if(pn.has(ae))return pn.get(ae);let St=[];return ae.this&&St.push(ae.this),Array.isArray(ae.parameters)?St.push(...ae.parameters):Array.isArray(ae.params)&&St.push(...ae.params),ae.rest&&St.push(ae.rest),pn.set(ae,St),St}function Nr(ae,St){let bn=ae.getValue(),zn=0,Xn=As=>St(As,zn++);bn.this&&ae.call(Xn,"this"),Array.isArray(bn.parameters)?ae.each(Xn,"parameters"):Array.isArray(bn.params)&&ae.each(Xn,"params"),bn.rest&&ae.call(Xn,"rest")}var un=new WeakMap;function xr(ae){if(un.has(ae))return un.get(ae);let St=ae.arguments;return ae.type==="ImportExpression"&&(St=[ae.source],ae.attributes&&St.push(ae.attributes)),un.set(ae,St),St}function an(ae,St){let bn=ae.getValue();bn.type==="ImportExpression"?(ae.call(zn=>St(zn,0),"source"),bn.attributes&&ae.call(zn=>St(zn,1),"attributes")):ae.each(St,"arguments")}function Cn(ae){return ae.value.trim()==="prettier-ignore"&&!ae.unignore}function In(ae){return ae&&(ae.prettierIgnore||Fn(ae,cn.PrettierIgnore))}function cr(ae){let St=ae.getValue();return In(St)}var cn={Leading:2,Trailing:4,Dangling:8,Block:16,Line:32,PrettierIgnore:64,First:128,Last:256},kn=(ae,St)=>{if(typeof ae=="function"&&(St=ae,ae=0),ae||St)return(bn,zn,Xn)=>!(ae&cn.Leading&&!bn.leading||ae&cn.Trailing&&!bn.trailing||ae&cn.Dangling&&(bn.leading||bn.trailing)||ae&cn.Block&&!P(bn)||ae&cn.Line&&!N(bn)||ae&cn.First&&zn!==0||ae&cn.Last&&zn!==Xn.length-1||ae&cn.PrettierIgnore&&!Cn(bn)||St&&!St(bn))};function Fn(ae,St,bn){if(!d(ae?.comments))return!1;let zn=kn(St,bn);return zn?ae.comments.some(zn):!0}function ht(ae,St,bn){if(!Array.isArray(ae?.comments))return[];let zn=kn(St,bn);return zn?ae.comments.filter(zn):ae.comments}var Ts=(ae,St)=>{let{originalText:bn}=St;return h(bn,B(ae))};function es(ae){return gt(ae)||ae.type==="NewExpression"||ae.type==="ImportExpression"}function Un(ae){return ae&&(ae.type==="ObjectProperty"||ae.type==="Property"&&!ae.method&&ae.kind==="init")}function Yn(ae){return!!ae.__isUsingHackPipeline}var gr=Symbol("ifWithoutBlockAndSameLineComment");function _s(ae){return ae.type==="TSAsExpression"||ae.type==="TSSatisfiesExpression"}A.exports={getFunctionParameters:jt,iterateFunctionParametersPath:Nr,getCallArguments:xr,iterateCallArgumentsPath:an,hasRestParameter:Wt,getLeftSide:re,getLeftSidePathName:ee,getParentExportDeclaration:F,getTypeScriptMappedTypeModifier:qe,hasFlowAnnotationComment:$,hasFlowShorthandAnnotationComment:te,hasLeadingOwnLineComment:Qe,hasNakedLeftSide:G,hasNode:Q,hasIgnoreComment:cr,hasNodeIgnoreComment:In,identity:Ae,isBinaryish:he,isCallLikeExpression:es,isEnabledHackPipeline:Yn,isLineComment:N,isPrettierIgnoreComment:Cn,isCallExpression:gt,isMemberExpression:yt,isExportDeclaration:J,isFlowAnnotationComment:Ce,isFunctionCompositionArgs:Bn,isFunctionNotation:Le,isFunctionOrArrowExpression:U,isGetterOrSetter:ce,isJestEachTemplateLiteral:Bt,isJsxNode:le,isLiteral:j,isLongCurriedCallExpression:dn,isSimpleCallArgument:En,isMemberish:oe,isNumericLiteral:y,isSignedNumericLiteral:L,isObjectProperty:Un,isObjectType:q,isObjectTypePropertyAFunction:ie,isSimpleType:it,isSimpleNumber:Ct,isSimpleTemplateLiteral:zt,isStringLiteral:M,isStringPropSafeToUnquote:et,isTemplateOnItsOwnLine:hn,isTestCall:Re,isTheOnlyJsxElementInMarkdown:ge,isTSXFile:Dt,isTypeAnnotationAFunction:We,isNextLineEmpty:Ts,needsHardlineAfterDanglingComment:Rn,rawText:pt,shouldPrintComma:je,isBitwiseOperator:It,shouldFlatten:V,startsWithNoLookaheadToken:mt,getPrecedence:ot,hasComment:Fn,getComments:ht,CommentCheckFlags:cn,markerForIfWithoutBlockAndSameLineComment:gr,isTSTypeExpression:_s}}}),uo=Te({"src/language-js/print/template-literal.js"(m,A){Ve();var p=Jr(),{getStringWidth:v,getIndentSize:D}=ye(),{builders:{join:f,hardline:d,softline:h,group:E,indent:C,align:B,lineSuffixBoundary:_,addAlignmentToDoc:P},printer:{printDocToString:x},utils:{mapDoc:S}}=Tn(),{isBinaryish:R,isJestEachTemplateLiteral:X,isSimpleTemplateLiteral:te,hasComment:$,isMemberExpression:Q,isTSTypeExpression:G}=br();function re(j,y,L){let M=j.getValue();if(M.type==="TemplateLiteral"&&X(M,j.getParentNode())){let le=ee(j,L,y);if(le)return le}let q="expressions";M.type==="TSTemplateLiteralType"&&(q="types");let U=[],z=j.map(y,q),se=te(M);return se&&(z=z.map(le=>x(le,Object.assign(Object.assign({},L),{},{printWidth:Number.POSITIVE_INFINITY})).formatted)),U.push(_,"`"),j.each(le=>{let ge=le.getName();if(U.push(y()),ge<z.length){let{tabWidth:ce}=L,Le=le.getValue(),ie=D(Le.value.raw,ce),We=z[ge];if(!se){let oe=M[q][ge];($(oe)||Q(oe)||oe.type==="ConditionalExpression"||oe.type==="SequenceExpression"||G(oe)||R(oe))&&(We=[C([h,We]),h])}let he=ie===0&&Le.value.raw.endsWith(`
211
+ `)?B(Number.NEGATIVE_INFINITY,We):P(We,ie,ce);U.push(E(["${",he,_,"}"]))}},"quasis"),U.push("`"),U}function ee(j,y,L){let M=j.getNode(),q=M.quasis[0].value.raw.trim().split(/\s*\|\s*/);if(q.length>1||q.some(U=>U.length>0)){y.__inJestEach=!0;let U=j.map(L,"expressions");y.__inJestEach=!1;let z=[],se=U.map(ie=>"${"+x(ie,Object.assign(Object.assign({},y),{},{printWidth:Number.POSITIVE_INFINITY,endOfLine:"lf"})).formatted+"}"),le=[{hasLineBreak:!1,cells:[]}];for(let ie=1;ie<M.quasis.length;ie++){let We=p(le),he=se[ie-1];We.cells.push(he),he.includes(`
212
+ `)&&(We.hasLineBreak=!0),M.quasis[ie].value.raw.includes(`
213
+ `)&&le.push({hasLineBreak:!1,cells:[]})}let ge=Math.max(q.length,...le.map(ie=>ie.cells.length)),ce=Array.from({length:ge}).fill(0),Le=[{cells:q},...le.filter(ie=>ie.cells.length>0)];for(let{cells:ie}of Le.filter(We=>!We.hasLineBreak))for(let[We,he]of ie.entries())ce[We]=Math.max(ce[We],v(he));return z.push(_,"`",C([d,f(d,Le.map(ie=>f(" | ",ie.cells.map((We,he)=>ie.hasLineBreak?We:We+" ".repeat(ce[he]-v(We))))))]),d,"`"),z}}function De(j,y){let L=j.getValue(),M=y();return $(L)&&(M=E([C([h,M]),h])),["${",M,_,"}"]}function N(j,y){return j.map(L=>De(L,y),"expressions")}function J(j,y){return S(j,L=>typeof L=="string"?y?L.replace(/(\\*)`/g,"$1$1\\`"):F(L):L)}function F(j){return j.replace(/([\\`]|\${)/g,"\\$1")}A.exports={printTemplateLiteral:re,printTemplateExpressions:N,escapeTemplateCharacters:J,uncookTemplateElementValue:F}}}),RE=Te({"src/language-js/embed/markdown.js"(m,A){Ve();var{builders:{indent:p,softline:v,literalline:D,dedentToRoot:f}}=Tn(),{escapeTemplateCharacters:d}=uo();function h(C,B,_){let P=C.getValue().quasis[0].value.raw.replace(/((?:\\\\)*)\\`/g,(X,te)=>"\\".repeat(te.length/2)+"`"),x=E(P),S=x!=="";S&&(P=P.replace(new RegExp(`^${x}`,"gm"),""));let R=d(_(P,{parser:"markdown",__inJsTemplate:!0},{stripTrailingHardline:!0}),!0);return["`",S?p([v,R]):[D,f(R)],v,"`"]}function E(C){let B=C.match(/^([^\S\n]*)\S/m);return B===null?"":B[1]}A.exports=h}}),jE=Te({"src/language-js/embed/css.js"(m,A){Ve();var{isNonEmptyArray:p}=ye(),{builders:{indent:v,hardline:D,softline:f},utils:{mapDoc:d,replaceEndOfLine:h,cleanDoc:E}}=Tn(),{printTemplateExpressions:C}=uo();function B(x,S,R){let X=x.getValue(),te=X.quasis.map(ee=>ee.value.raw),$=0,Q=te.reduce((ee,De,N)=>N===0?De:ee+"@prettier-placeholder-"+$+++"-id"+De,""),G=R(Q,{parser:"scss"},{stripTrailingHardline:!0}),re=C(x,S);return _(G,X,re)}function _(x,S,R){if(S.quasis.length===1&&!S.quasis[0].value.raw.trim())return"``";let X=P(x,R);if(!X)throw new Error("Couldn't insert all the expressions");return["`",v([D,X]),f,"`"]}function P(x,S){if(!p(S))return x;let R=0,X=d(E(x),te=>typeof te!="string"||!te.includes("@prettier-placeholder")?te:te.split(/@prettier-placeholder-(\d+)-id/).map(($,Q)=>Q%2===0?h($):(R++,S[$])));return S.length===R?X:null}A.exports=B}}),$E=Te({"src/language-js/embed/graphql.js"(m,A){Ve();var{builders:{indent:p,join:v,hardline:D}}=Tn(),{escapeTemplateCharacters:f,printTemplateExpressions:d}=uo();function h(C,B,_){let P=C.getValue(),x=P.quasis.length;if(x===1&&P.quasis[0].value.raw.trim()==="")return"``";let S=d(C,B),R=[];for(let X=0;X<x;X++){let te=P.quasis[X],$=X===0,Q=X===x-1,G=te.value.cooked,re=G.split(`
214
+ `),ee=re.length,De=S[X],N=ee>2&&re[0].trim()===""&&re[1].trim()==="",J=ee>2&&re[ee-1].trim()===""&&re[ee-2].trim()==="",F=re.every(y=>/^\s*(?:#[^\n\r]*)?$/.test(y));if(!Q&&/#[^\n\r]*$/.test(re[ee-1]))return null;let j=null;F?j=E(re):j=_(G,{parser:"graphql"},{stripTrailingHardline:!0}),j?(j=f(j,!1),!$&&N&&R.push(""),R.push(j),!Q&&J&&R.push("")):!$&&!Q&&N&&R.push(""),De&&R.push(De)}return["`",p([D,v(D,R)]),D,"`"]}function E(C){let B=[],_=!1,P=C.map(x=>x.trim());for(let[x,S]of P.entries())S!==""&&(P[x-1]===""&&_?B.push([D,S]):B.push(S),_=!0);return B.length===0?null:v(D,B)}A.exports=h}}),VE=Te({"src/language-js/embed/html.js"(m,A){Ve();var{builders:{indent:p,line:v,hardline:D,group:f},utils:{mapDoc:d}}=Tn(),{printTemplateExpressions:h,uncookTemplateElementValue:E}=uo(),C=0;function B(_,P,x,S,R){let{parser:X}=R,te=_.getValue(),$=C;C=C+1>>>0;let Q=L=>`PRETTIER_HTML_PLACEHOLDER_${L}_${$}_IN_JS`,G=te.quasis.map((L,M,q)=>M===q.length-1?L.value.cooked:L.value.cooked+Q(M)).join(""),re=h(_,P);if(re.length===0&&G.trim().length===0)return"``";let ee=new RegExp(Q("(\\d+)"),"g"),De=0,N=x(G,{parser:X,__onHtmlRoot(L){De=L.children.length}},{stripTrailingHardline:!0}),J=d(N,L=>{if(typeof L!="string")return L;let M=[],q=L.split(ee);for(let U=0;U<q.length;U++){let z=q[U];if(U%2===0){z&&(z=E(z),S.__embeddedInHtml&&(z=z.replace(/<\/(script)\b/gi,"<\\/$1")),M.push(z));continue}let se=Number(z);M.push(re[se])}return M}),F=/^\s/.test(G)?" ":"",j=/\s$/.test(G)?" ":"",y=S.htmlWhitespaceSensitivity==="ignore"?D:F&&j?v:null;return f(y?["`",p([y,f(J)]),y,"`"]:["`",F,De>1?p(f(J)):f(J),j,"`"])}A.exports=B}}),qE=Te({"src/language-js/embed.js"(m,A){Ve();var{hasComment:p,CommentCheckFlags:v,isObjectProperty:D}=br(),f=RE(),d=jE(),h=$E(),E=VE();function C(N){if(P(N)||X(N)||te(N)||x(N))return"css";if(G(N))return"graphql";if(ee(N))return"html";if(S(N))return"angular";if(_(N))return"markdown"}function B(N,J,F,j){let y=N.getValue();if(y.type!=="TemplateLiteral"||De(y))return;let L=C(N);if(L){if(L==="markdown")return f(N,J,F);if(L==="css")return d(N,J,F);if(L==="graphql")return h(N,J,F);if(L==="html"||L==="angular")return E(N,J,F,j,{parser:L})}}function _(N){let J=N.getValue(),F=N.getParentNode();return F&&F.type==="TaggedTemplateExpression"&&J.quasis.length===1&&F.tag.type==="Identifier"&&(F.tag.name==="md"||F.tag.name==="markdown")}function P(N){let J=N.getValue(),F=N.getParentNode(),j=N.getParentNode(1);return j&&J.quasis&&F.type==="JSXExpressionContainer"&&j.type==="JSXElement"&&j.openingElement.name.name==="style"&&j.openingElement.attributes.some(y=>y.name.name==="jsx")||F&&F.type==="TaggedTemplateExpression"&&F.tag.type==="Identifier"&&F.tag.name==="css"||F&&F.type==="TaggedTemplateExpression"&&F.tag.type==="MemberExpression"&&F.tag.object.name==="css"&&(F.tag.property.name==="global"||F.tag.property.name==="resolve")}function x(N){return N.match(J=>J.type==="TemplateLiteral",(J,F)=>J.type==="ArrayExpression"&&F==="elements",(J,F)=>D(J)&&J.key.type==="Identifier"&&J.key.name==="styles"&&F==="value",...R)}function S(N){return N.match(J=>J.type==="TemplateLiteral",(J,F)=>D(J)&&J.key.type==="Identifier"&&J.key.name==="template"&&F==="value",...R)}var R=[(N,J)=>N.type==="ObjectExpression"&&J==="properties",(N,J)=>N.type==="CallExpression"&&N.callee.type==="Identifier"&&N.callee.name==="Component"&&J==="arguments",(N,J)=>N.type==="Decorator"&&J==="expression"];function X(N){let J=N.getParentNode();if(!J||J.type!=="TaggedTemplateExpression")return!1;let F=J.tag.type==="ParenthesizedExpression"?J.tag.expression:J.tag;switch(F.type){case"MemberExpression":return $(F.object)||Q(F);case"CallExpression":return $(F.callee)||F.callee.type==="MemberExpression"&&(F.callee.object.type==="MemberExpression"&&($(F.callee.object.object)||Q(F.callee.object))||F.callee.object.type==="CallExpression"&&$(F.callee.object.callee));case"Identifier":return F.name==="css";default:return!1}}function te(N){let J=N.getParentNode(),F=N.getParentNode(1);return F&&J.type==="JSXExpressionContainer"&&F.type==="JSXAttribute"&&F.name.type==="JSXIdentifier"&&F.name.name==="css"}function $(N){return N.type==="Identifier"&&N.name==="styled"}function Q(N){return/^[A-Z]/.test(N.object.name)&&N.property.name==="extend"}function G(N){let J=N.getValue(),F=N.getParentNode();return re(J,"GraphQL")||F&&(F.type==="TaggedTemplateExpression"&&(F.tag.type==="MemberExpression"&&F.tag.object.name==="graphql"&&F.tag.property.name==="experimental"||F.tag.type==="Identifier"&&(F.tag.name==="gql"||F.tag.name==="graphql"))||F.type==="CallExpression"&&F.callee.type==="Identifier"&&F.callee.name==="graphql")}function re(N,J){return p(N,v.Block|v.Leading,F=>{let{value:j}=F;return j===` ${J} `})}function ee(N){return re(N.getValue(),"HTML")||N.match(J=>J.type==="TemplateLiteral",(J,F)=>J.type==="TaggedTemplateExpression"&&J.tag.type==="Identifier"&&J.tag.name==="html"&&F==="quasi")}function De(N){let{quasis:J}=N;return J.some(F=>{let{value:{cooked:j}}=F;return j===null})}A.exports=B}}),UE=Te({"src/language-js/clean.js"(m,A){Ve();var p=ua(),v=new Set(["range","raw","comments","leadingComments","trailingComments","innerComments","extra","start","end","loc","flags","errors","tokens"]),D=d=>{for(let h of d.quasis)delete h.value};function f(d,h,E){if(d.type==="Program"&&delete h.sourceType,(d.type==="BigIntLiteral"||d.type==="BigIntLiteralTypeAnnotation")&&h.value&&(h.value=h.value.toLowerCase()),(d.type==="BigIntLiteral"||d.type==="Literal")&&h.bigint&&(h.bigint=h.bigint.toLowerCase()),d.type==="DecimalLiteral"&&(h.value=Number(h.value)),d.type==="Literal"&&h.decimal&&(h.decimal=Number(h.decimal)),d.type==="EmptyStatement"||d.type==="JSXText"||d.type==="JSXExpressionContainer"&&(d.expression.type==="Literal"||d.expression.type==="StringLiteral")&&d.expression.value===" ")return null;if((d.type==="Property"||d.type==="ObjectProperty"||d.type==="MethodDefinition"||d.type==="ClassProperty"||d.type==="ClassMethod"||d.type==="PropertyDefinition"||d.type==="TSDeclareMethod"||d.type==="TSPropertySignature"||d.type==="ObjectTypeProperty")&&typeof d.key=="object"&&d.key&&(d.key.type==="Literal"||d.key.type==="NumericLiteral"||d.key.type==="StringLiteral"||d.key.type==="Identifier")&&delete h.key,d.type==="JSXElement"&&d.openingElement.name.name==="style"&&d.openingElement.attributes.some(_=>_.name.name==="jsx"))for(let{type:_,expression:P}of h.children)_==="JSXExpressionContainer"&&P.type==="TemplateLiteral"&&D(P);d.type==="JSXAttribute"&&d.name.name==="css"&&d.value.type==="JSXExpressionContainer"&&d.value.expression.type==="TemplateLiteral"&&D(h.value.expression),d.type==="JSXAttribute"&&d.value&&d.value.type==="Literal"&&/["']|&quot;|&apos;/.test(d.value.value)&&(h.value.value=h.value.value.replace(/["']|&quot;|&apos;/g,'"'));let C=d.expression||d.callee;if(d.type==="Decorator"&&C.type==="CallExpression"&&C.callee.name==="Component"&&C.arguments.length===1){let _=d.expression.arguments[0].properties;for(let[P,x]of h.expression.arguments[0].properties.entries())switch(_[P].key.name){case"styles":x.value.type==="ArrayExpression"&&D(x.value.elements[0]);break;case"template":x.value.type==="TemplateLiteral"&&D(x.value);break}}if(d.type==="TaggedTemplateExpression"&&(d.tag.type==="MemberExpression"||d.tag.type==="Identifier"&&(d.tag.name==="gql"||d.tag.name==="graphql"||d.tag.name==="css"||d.tag.name==="md"||d.tag.name==="markdown"||d.tag.name==="html")||d.tag.type==="CallExpression")&&D(h.quasi),d.type==="TemplateLiteral"){var B;(!((B=d.leadingComments)===null||B===void 0)&&B.some(_=>p(_)&&["GraphQL","HTML"].some(P=>_.value===` ${P} `))||E.type==="CallExpression"&&E.callee.name==="graphql"||!d.leadingComments)&&D(h)}if(d.type==="InterpreterDirective"&&(h.value=h.value.trimEnd()),(d.type==="TSIntersectionType"||d.type==="TSUnionType")&&d.types.length===1)return h.types[0]}f.ignoredProperties=v,A.exports=f}}),L0={};Nn(L0,{EOL:()=>Np,arch:()=>WE,cpus:()=>R0,default:()=>U0,endianness:()=>k0,freemem:()=>I0,getNetworkInterfaces:()=>q0,hostname:()=>P0,loadavg:()=>B0,networkInterfaces:()=>V0,platform:()=>GE,release:()=>$0,tmpDir:()=>Sp,tmpdir:()=>Fp,totalmem:()=>O0,type:()=>j0,uptime:()=>M0});function k0(){if(typeof Ml>"u"){var m=new ArrayBuffer(2),A=new Uint8Array(m),p=new Uint16Array(m);if(A[0]=1,A[1]=2,p[0]===258)Ml="BE";else if(p[0]===513)Ml="LE";else throw new Error("unable to figure out endianess")}return Ml}function P0(){return typeof globalThis.location<"u"?globalThis.location.hostname:""}function B0(){return[]}function M0(){return 0}function I0(){return Number.MAX_VALUE}function O0(){return Number.MAX_VALUE}function R0(){return[]}function j0(){return"Browser"}function $0(){return typeof globalThis.navigator<"u"?globalThis.navigator.appVersion:""}function V0(){}function q0(){}function WE(){return"javascript"}function GE(){return"browser"}function Sp(){return"/tmp"}var Ml,Fp,Np,U0,JE=gn({"node-modules-polyfills:os"(){Ve(),Fp=Sp,Np=`
215
+ `,U0={EOL:Np,tmpdir:Fp,tmpDir:Sp,networkInterfaces:V0,getNetworkInterfaces:q0,release:$0,type:j0,cpus:R0,totalmem:O0,freemem:I0,uptime:M0,loadavg:B0,hostname:P0,endianness:k0}}}),YE=Te({"node-modules-polyfills-commonjs:os"(m,A){Ve();var p=(JE(),Kn(L0));if(p&&p.default){A.exports=p.default;for(let v in p)A.exports[v]=p[v]}else p&&(A.exports=p)}}),HE=Te({"node_modules/detect-newline/index.js"(m,A){Ve();var p=v=>{if(typeof v!="string")throw new TypeError("Expected a string");let D=v.match(/(?:\r?\n)/g)||[];if(D.length===0)return;let f=D.filter(h=>h===`\r
216
+ `).length,d=D.length-f;return f>d?`\r
217
+ `:`
218
+ `};A.exports=p,A.exports.graceful=v=>typeof v=="string"&&p(v)||`
219
+ `}}),zE=Te({"node_modules/jest-docblock/build/index.js"(m){Ve(),Object.defineProperty(m,"__esModule",{value:!0}),m.extract=x,m.parse=R,m.parseWithComments=X,m.print=te,m.strip=S;function A(){let Q=YE();return A=function(){return Q},Q}function p(){let Q=v(HE());return p=function(){return Q},Q}function v(Q){return Q&&Q.__esModule?Q:{default:Q}}var D=/\*\/$/,f=/^\/\*\*?/,d=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,h=/(^|\s+)\/\/([^\r\n]*)/g,E=/^(\r?\n)+/,C=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,B=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,_=/(\r?\n|^) *\* ?/g,P=[];function x(Q){let G=Q.match(d);return G?G[0].trimLeft():""}function S(Q){let G=Q.match(d);return G&&G[0]?Q.substring(G[0].length):Q}function R(Q){return X(Q).pragmas}function X(Q){let G=(0,p().default)(Q)||A().EOL;Q=Q.replace(f,"").replace(D,"").replace(_,"$1");let re="";for(;re!==Q;)re=Q,Q=Q.replace(C,`${G}$1 $2${G}`);Q=Q.replace(E,"").trimRight();let ee=Object.create(null),De=Q.replace(B,"").replace(E,"").trimRight(),N;for(;N=B.exec(Q);){let J=N[2].replace(h,"");typeof ee[N[1]]=="string"||Array.isArray(ee[N[1]])?ee[N[1]]=P.concat(ee[N[1]],J):ee[N[1]]=J}return{comments:De,pragmas:ee}}function te(Q){let{comments:G="",pragmas:re={}}=Q,ee=(0,p().default)(G)||A().EOL,De="/**",N=" *",J=" */",F=Object.keys(re),j=F.map(L=>$(L,re[L])).reduce((L,M)=>L.concat(M),[]).map(L=>`${N} ${L}${ee}`).join("");if(!G){if(F.length===0)return"";if(F.length===1&&!Array.isArray(re[F[0]])){let L=re[F[0]];return`${De} ${$(F[0],L)[0]}${J}`}}let y=G.split(ee).map(L=>`${N} ${L}`).join(ee)+ee;return De+ee+(G?y:"")+(G&&F.length?N+ee:"")+j+J}function $(Q,G){return P.concat(G).map(re=>`@${Q} ${re}`.trim())}}}),XE=Te({"src/language-js/utils/get-shebang.js"(m,A){Ve();function p(v){if(!v.startsWith("#!"))return"";let D=v.indexOf(`
220
+ `);return D===-1?v:v.slice(0,D)}A.exports=p}}),W0=Te({"src/language-js/pragma.js"(m,A){Ve();var{parseWithComments:p,strip:v,extract:D,print:f}=zE(),{normalizeEndOfLine:d}=ii(),h=XE();function E(_){let P=h(_);P&&(_=_.slice(P.length+1));let x=D(_),{pragmas:S,comments:R}=p(x);return{shebang:P,text:_,pragmas:S,comments:R}}function C(_){let P=Object.keys(E(_).pragmas);return P.includes("prettier")||P.includes("format")}function B(_){let{shebang:P,text:x,pragmas:S,comments:R}=E(_),X=v(x),te=f({pragmas:Object.assign({format:""},S),comments:R.trimStart()});return(P?`${P}
221
+ `:"")+d(te)+(X.startsWith(`
222
+ `)?`
223
+ `:`
224
+
225
+ `)+X}A.exports={hasPragma:C,insertPragma:B}}}),QE=Te({"src/language-js/utils/is-type-cast-comment.js"(m,A){Ve();var p=ua();function v(D){return p(D)&&D.value[0]==="*"&&/@(?:type|satisfies)\b/.test(D.value)}A.exports=v}}),G0=Te({"src/language-js/comments.js"(m,A){Ve();var{getLast:p,hasNewline:v,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:D,getNextNonSpaceNonCommentCharacter:f,hasNewlineInRange:d,addLeadingComment:h,addTrailingComment:E,addDanglingComment:C,getNextNonSpaceNonCommentCharacterIndex:B,isNonEmptyArray:_}=ye(),{getFunctionParameters:P,isPrettierIgnoreComment:x,isJsxNode:S,hasFlowShorthandAnnotationComment:R,hasFlowAnnotationComment:X,hasIgnoreComment:te,isCallLikeExpression:$,getCallArguments:Q,isCallExpression:G,isMemberExpression:re,isObjectProperty:ee,isLineComment:De,getComments:N,CommentCheckFlags:J,markerForIfWithoutBlockAndSameLineComment:F}=br(),{locStart:j,locEnd:y}=as(),L=ua(),M=QE();function q(Et){return[Ae,zt,We,ce,Le,ie,it,Rt,et,Bt,hn,Rn,bt,qe,Ce].some(V=>V(Et))}function U(Et){return[ge,zt,he,hn,ce,Le,ie,it,qe,Qe,Ct,Bt,En,Ce,je].some(V=>V(Et))}function z(Et){return[Ae,ce,Le,oe,yt,bt,Bt,gt,Re,Dt,Ce,pt].some(V=>V(Et))}function se(Et,V){let ke=(Et.body||Et.properties).find(ot=>{let{type:It}=ot;return It!=="EmptyStatement"});ke?h(ke,V):C(Et,V)}function le(Et,V){Et.type==="BlockStatement"?se(Et,V):h(Et,V)}function ge(Et){let{comment:V,followingNode:ke}=Et;return ke&&M(V)?(h(ke,V),!0):!1}function ce(Et){let{comment:V,precedingNode:ke,enclosingNode:ot,followingNode:It,text:Wt}=Et;if(ot?.type!=="IfStatement"||!It)return!1;if(f(Wt,V,y)===")")return E(ke,V),!0;if(ke===ot.consequent&&It===ot.alternate){if(ke.type==="BlockStatement")E(ke,V);else{let pn=V.type==="SingleLine"||V.loc.start.line===V.loc.end.line,jt=V.loc.start.line===ke.loc.start.line;pn&&jt?C(ke,V,F):C(ot,V)}return!0}return It.type==="BlockStatement"?(se(It,V),!0):It.type==="IfStatement"?(le(It.consequent,V),!0):ot.consequent===It?(h(It,V),!0):!1}function Le(Et){let{comment:V,precedingNode:ke,enclosingNode:ot,followingNode:It,text:Wt}=Et;return ot?.type!=="WhileStatement"||!It?!1:f(Wt,V,y)===")"?(E(ke,V),!0):It.type==="BlockStatement"?(se(It,V),!0):ot.body===It?(h(It,V),!0):!1}function ie(Et){let{comment:V,precedingNode:ke,enclosingNode:ot,followingNode:It}=Et;return ot?.type!=="TryStatement"&&ot?.type!=="CatchClause"||!It?!1:ot.type==="CatchClause"&&ke?(E(ke,V),!0):It.type==="BlockStatement"?(se(It,V),!0):It.type==="TryStatement"?(le(It.finalizer,V),!0):It.type==="CatchClause"?(le(It.body,V),!0):!1}function We(Et){let{comment:V,enclosingNode:ke,followingNode:ot}=Et;return re(ke)&&ot?.type==="Identifier"?(h(ke,V),!0):!1}function he(Et){let{comment:V,precedingNode:ke,enclosingNode:ot,followingNode:It,text:Wt}=Et,pn=ke&&!d(Wt,y(ke),j(V));return(!ke||!pn)&&(ot?.type==="ConditionalExpression"||ot?.type==="TSConditionalType")&&It?(h(It,V),!0):!1}function oe(Et){let{comment:V,precedingNode:ke,enclosingNode:ot}=Et;return ee(ot)&&ot.shorthand&&ot.key===ke&&ot.value.type==="AssignmentPattern"?(E(ot.value.left,V),!0):!1}var Ue=new Set(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function it(Et){let{comment:V,precedingNode:ke,enclosingNode:ot,followingNode:It}=Et;if(Ue.has(ot?.type)){if(_(ot.decorators)&&!(It&&It.type==="Decorator"))return E(p(ot.decorators),V),!0;if(ot.body&&It===ot.body)return se(ot.body,V),!0;if(It){if(ot.superClass&&It===ot.superClass&&ke&&(ke===ot.id||ke===ot.typeParameters))return E(ke,V),!0;for(let Wt of["implements","extends","mixins"])if(ot[Wt]&&It===ot[Wt][0])return ke&&(ke===ot.id||ke===ot.typeParameters||ke===ot.superClass)?E(ke,V):C(ot,V,Wt),!0}}return!1}var Xe=new Set(["ClassMethod","ClassProperty","PropertyDefinition","TSAbstractPropertyDefinition","TSAbstractMethodDefinition","TSDeclareMethod","MethodDefinition","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty"]);function bt(Et){let{comment:V,precedingNode:ke,enclosingNode:ot,text:It}=Et;return ot&&ke&&f(It,V,y)==="("&&(ot.type==="Property"||ot.type==="TSDeclareMethod"||ot.type==="TSAbstractMethodDefinition")&&ke.type==="Identifier"&&ot.key===ke&&f(It,ke,y)!==":"||ke?.type==="Decorator"&&Xe.has(ot?.type)?(E(ke,V),!0):!1}var be=new Set(["FunctionDeclaration","FunctionExpression","ClassMethod","MethodDefinition","ObjectMethod"]);function Re(Et){let{comment:V,precedingNode:ke,enclosingNode:ot,text:It}=Et;return f(It,V,y)!=="("?!1:ke&&be.has(ot?.type)?(E(ke,V),!0):!1}function gt(Et){let{comment:V,enclosingNode:ke,text:ot}=Et;if(ke?.type!=="ArrowFunctionExpression")return!1;let It=B(ot,V,y);return It!==!1&&ot.slice(It,It+2)==="=>"?(C(ke,V),!0):!1}function yt(Et){let{comment:V,enclosingNode:ke,text:ot}=Et;return f(ot,V,y)!==")"?!1:ke&&(mt(ke)&&P(ke).length===0||$(ke)&&Q(ke).length===0)?(C(ke,V),!0):(ke?.type==="MethodDefinition"||ke?.type==="TSAbstractMethodDefinition")&&P(ke.value).length===0?(C(ke.value,V),!0):!1}function zt(Et){let{comment:V,precedingNode:ke,enclosingNode:ot,followingNode:It,text:Wt}=Et;if(ke?.type==="FunctionTypeParam"&&ot?.type==="FunctionTypeAnnotation"&&It?.type!=="FunctionTypeParam"||(ke?.type==="Identifier"||ke?.type==="AssignmentPattern")&&ot&&mt(ot)&&f(Wt,V,y)===")")return E(ke,V),!0;if(ot?.type==="FunctionDeclaration"&&It?.type==="BlockStatement"){let pn=(()=>{let jt=P(ot);if(jt.length>0)return D(Wt,y(p(jt)));let Nr=D(Wt,y(ot.id));return Nr!==!1&&D(Wt,Nr+1)})();if(j(V)>pn)return se(It,V),!0}return!1}function qe(Et){let{comment:V,enclosingNode:ke}=Et;return ke?.type==="LabeledStatement"?(h(ke,V),!0):!1}function Ce(Et){let{comment:V,enclosingNode:ke}=Et;return(ke?.type==="ContinueStatement"||ke?.type==="BreakStatement")&&!ke.label?(E(ke,V),!0):!1}function Qe(Et){let{comment:V,precedingNode:ke,enclosingNode:ot}=Et;return G(ot)&&ke&&ot.callee===ke&&ot.arguments.length>0?(h(ot.arguments[0],V),!0):!1}function et(Et){let{comment:V,precedingNode:ke,enclosingNode:ot,followingNode:It}=Et;return ot?.type==="UnionTypeAnnotation"||ot?.type==="TSUnionType"?(x(V)&&(It.prettierIgnore=!0,V.unignore=!0),ke?(E(ke,V),!0):!1):((It?.type==="UnionTypeAnnotation"||It?.type==="TSUnionType")&&x(V)&&(It.types[0].prettierIgnore=!0,V.unignore=!0),!1)}function Ct(Et){let{comment:V,enclosingNode:ke}=Et;return ee(ke)?(h(ke,V),!0):!1}function Bt(Et){let{comment:V,enclosingNode:ke,followingNode:ot,ast:It,isLastComment:Wt}=Et;return It&&It.body&&It.body.length===0?(Wt?C(It,V):h(It,V),!0):ke?.type==="Program"&&ke?.body.length===0&&!_(ke.directives)?(Wt?C(ke,V):h(ke,V),!0):ot?.type==="Program"&&ot?.body.length===0&&ke?.type==="ModuleExpression"?(C(ot,V),!0):!1}function Rt(Et){let{comment:V,enclosingNode:ke}=Et;return ke?.type==="ForInStatement"||ke?.type==="ForOfStatement"?(h(ke,V),!0):!1}function hn(Et){let{comment:V,precedingNode:ke,enclosingNode:ot,text:It}=Et;if(ot?.type==="ImportSpecifier"||ot?.type==="ExportSpecifier")return h(ot,V),!0;let Wt=ke?.type==="ImportSpecifier"&&ot?.type==="ImportDeclaration",pn=ke?.type==="ExportSpecifier"&&ot?.type==="ExportNamedDeclaration";return(Wt||pn)&&v(It,y(V))?(E(ke,V),!0):!1}function Rn(Et){let{comment:V,enclosingNode:ke}=Et;return ke?.type==="AssignmentPattern"?(h(ke,V),!0):!1}var Bn=new Set(["VariableDeclarator","AssignmentExpression","TypeAlias","TSTypeAliasDeclaration"]),dn=new Set(["ObjectExpression","ArrayExpression","TemplateLiteral","TaggedTemplateExpression","ObjectTypeAnnotation","TSTypeLiteral"]);function En(Et){let{comment:V,enclosingNode:ke,followingNode:ot}=Et;return Bn.has(ke?.type)&&ot&&(dn.has(ot.type)||L(V))?(h(ot,V),!0):!1}function pt(Et){let{comment:V,enclosingNode:ke,followingNode:ot,text:It}=Et;return!ot&&(ke?.type==="TSMethodSignature"||ke?.type==="TSDeclareFunction"||ke?.type==="TSAbstractMethodDefinition")&&f(It,V,y)===";"?(E(ke,V),!0):!1}function Ae(Et){let{comment:V,enclosingNode:ke,followingNode:ot}=Et;if(x(V)&&ke?.type==="TSMappedType"&&ot?.type==="TSTypeParameter"&&ot.constraint)return ke.prettierIgnore=!0,V.unignore=!0,!0}function Dt(Et){let{comment:V,precedingNode:ke,enclosingNode:ot,followingNode:It}=Et;return ot?.type!=="TSMappedType"?!1:It?.type==="TSTypeParameter"&&It.name?(h(It.name,V),!0):ke?.type==="TSTypeParameter"&&ke.constraint?(E(ke.constraint,V),!0):!1}function je(Et){let{comment:V,enclosingNode:ke,followingNode:ot}=Et;return!ke||ke.type!=="SwitchCase"||ke.test||!ot||ot!==ke.consequent[0]?!1:(ot.type==="BlockStatement"&&De(V)?se(ot,V):C(ke,V),!0)}function mt(Et){return Et.type==="ArrowFunctionExpression"||Et.type==="FunctionExpression"||Et.type==="FunctionDeclaration"||Et.type==="ObjectMethod"||Et.type==="ClassMethod"||Et.type==="TSDeclareFunction"||Et.type==="TSCallSignatureDeclaration"||Et.type==="TSConstructSignatureDeclaration"||Et.type==="TSMethodSignature"||Et.type==="TSConstructorType"||Et.type==="TSFunctionType"||Et.type==="TSDeclareMethod"}function nn(Et,V){if((V.parser==="typescript"||V.parser==="flow"||V.parser==="acorn"||V.parser==="espree"||V.parser==="meriyah"||V.parser==="__babel_estree")&&Et.type==="MethodDefinition"&&Et.value&&Et.value.type==="FunctionExpression"&&P(Et.value).length===0&&!Et.value.returnType&&!_(Et.value.typeParameters)&&Et.value.body)return[...Et.decorators||[],Et.key,Et.value.body]}function Jt(Et){let V=Et.getValue(),ke=Et.getParentNode(),ot=It=>X(N(It,J.Leading))||X(N(It,J.Trailing));return(V&&(S(V)||R(V)||G(ke)&&ot(V))||ke&&(ke.type==="JSXSpreadAttribute"||ke.type==="JSXSpreadChild"||ke.type==="UnionTypeAnnotation"||ke.type==="TSUnionType"||(ke.type==="ClassDeclaration"||ke.type==="ClassExpression")&&ke.superClass===V))&&(!te(Et)||ke.type==="UnionTypeAnnotation"||ke.type==="TSUnionType")}A.exports={handleOwnLineComment:q,handleEndOfLineComment:U,handleRemainingComment:z,getCommentChildNodes:nn,willPrintOwnComments:Jt}}}),lo=Te({"src/language-js/needs-parens.js"(m,A){Ve();var p=Jr(),v=$t(),{getFunctionParameters:D,getLeftSidePathName:f,hasFlowShorthandAnnotationComment:d,hasNakedLeftSide:h,hasNode:E,isBitwiseOperator:C,startsWithNoLookaheadToken:B,shouldFlatten:_,getPrecedence:P,isCallExpression:x,isMemberExpression:S,isObjectProperty:R,isTSTypeExpression:X}=br();function te(N,J){let F=N.getParentNode();if(!F)return!1;let j=N.getName(),y=N.getNode();if(J.__isInHtmlInterpolation&&!J.bracketSpacing&&re(y)&&ee(N))return!0;if($(y))return!1;if(J.parser!=="flow"&&d(N.getValue()))return!0;if(y.type==="Identifier"){if(y.extra&&y.extra.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(y.name)||j==="left"&&(y.name==="async"&&!F.await||y.name==="let")&&F.type==="ForOfStatement")return!0;if(y.name==="let"){var L;let q=(L=N.findAncestor(U=>U.type==="ForOfStatement"))===null||L===void 0?void 0:L.left;if(q&&B(q,U=>U===y))return!0}if(j==="object"&&y.name==="let"&&F.type==="MemberExpression"&&F.computed&&!F.optional){let q=N.findAncestor(z=>z.type==="ExpressionStatement"||z.type==="ForStatement"||z.type==="ForInStatement"),U=q?q.type==="ExpressionStatement"?q.expression:q.type==="ForStatement"?q.init:q.left:void 0;if(U&&B(U,z=>z===y))return!0}return!1}if(y.type==="ObjectExpression"||y.type==="FunctionExpression"||y.type==="ClassExpression"||y.type==="DoExpression"){var M;let q=(M=N.findAncestor(U=>U.type==="ExpressionStatement"))===null||M===void 0?void 0:M.expression;if(q&&B(q,U=>U===y))return!0}switch(F.type){case"ParenthesizedExpression":return!1;case"ClassDeclaration":case"ClassExpression":{if(j==="superClass"&&(y.type==="ArrowFunctionExpression"||y.type==="AssignmentExpression"||y.type==="AwaitExpression"||y.type==="BinaryExpression"||y.type==="ConditionalExpression"||y.type==="LogicalExpression"||y.type==="NewExpression"||y.type==="ObjectExpression"||y.type==="SequenceExpression"||y.type==="TaggedTemplateExpression"||y.type==="UnaryExpression"||y.type==="UpdateExpression"||y.type==="YieldExpression"||y.type==="TSNonNullExpression"))return!0;break}case"ExportDefaultDeclaration":return De(N,J)||y.type==="SequenceExpression";case"Decorator":{if(j==="expression"){if(S(y)&&y.computed)return!0;let q=!1,U=!1,z=y;for(;z;)switch(z.type){case"MemberExpression":U=!0,z=z.object;break;case"CallExpression":if(U||q)return J.parser!=="typescript";q=!0,z=z.callee;break;case"Identifier":return!1;case"TaggedTemplateExpression":return J.parser!=="typescript";default:return!0}return!0}break}case"ArrowFunctionExpression":{if(j==="body"&&y.type!=="SequenceExpression"&&B(y,q=>q.type==="ObjectExpression"))return!0;break}}switch(y.type){case"UpdateExpression":if(F.type==="UnaryExpression")return y.prefix&&(y.operator==="++"&&F.operator==="+"||y.operator==="--"&&F.operator==="-");case"UnaryExpression":switch(F.type){case"UnaryExpression":return y.operator===F.operator&&(y.operator==="+"||y.operator==="-");case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return j==="object";case"TaggedTemplateExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return j==="callee";case"BinaryExpression":return j==="left"&&F.operator==="**";case"TSNonNullExpression":return!0;default:return!1}case"BinaryExpression":{if(F.type==="UpdateExpression"||y.operator==="in"&&Q(N))return!0;if(y.operator==="|>"&&y.extra&&y.extra.parenthesized){let q=N.getParentNode(1);if(q.type==="BinaryExpression"&&q.operator==="|>")return!0}}case"TSTypeAssertion":case"TSAsExpression":case"TSSatisfiesExpression":case"LogicalExpression":switch(F.type){case"TSSatisfiesExpression":case"TSAsExpression":return!X(y);case"ConditionalExpression":return X(y);case"CallExpression":case"NewExpression":case"OptionalCallExpression":return j==="callee";case"ClassExpression":case"ClassDeclaration":return j==="superClass";case"TSTypeAssertion":case"TaggedTemplateExpression":case"UnaryExpression":case"JSXSpreadAttribute":case"SpreadElement":case"SpreadProperty":case"BindExpression":case"AwaitExpression":case"TSNonNullExpression":case"UpdateExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return j==="object";case"AssignmentExpression":case"AssignmentPattern":return j==="left"&&(y.type==="TSTypeAssertion"||X(y));case"LogicalExpression":if(y.type==="LogicalExpression")return F.operator!==y.operator;case"BinaryExpression":{let{operator:q,type:U}=y;if(!q&&U!=="TSTypeAssertion")return!0;let z=P(q),se=F.operator,le=P(se);return le>z||j==="right"&&le===z||le===z&&!_(se,q)?!0:le<z&&q==="%"?se==="+"||se==="-":!!C(se)}default:return!1}case"SequenceExpression":switch(F.type){case"ReturnStatement":return!1;case"ForStatement":return!1;case"ExpressionStatement":return j!=="expression";case"ArrowFunctionExpression":return j!=="body";default:return!0}case"YieldExpression":if(F.type==="UnaryExpression"||F.type==="AwaitExpression"||X(F)||F.type==="TSNonNullExpression")return!0;case"AwaitExpression":switch(F.type){case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"SpreadElement":case"SpreadProperty":case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return j==="object";case"NewExpression":case"CallExpression":case"OptionalCallExpression":return j==="callee";case"ConditionalExpression":return j==="test";case"BinaryExpression":return!(!y.argument&&F.operator==="|>");default:return!1}case"TSConditionalType":case"TSFunctionType":case"TSConstructorType":if(j==="extendsType"&&F.type==="TSConditionalType"){if(y.type==="TSConditionalType")return!0;let{typeAnnotation:q}=y.returnType||y.typeAnnotation;if(q.type==="TSTypePredicate"&&q.typeAnnotation&&(q=q.typeAnnotation.typeAnnotation),q.type==="TSInferType"&&q.typeParameter.constraint)return!0}if(j==="checkType"&&F.type==="TSConditionalType")return!0;case"TSUnionType":case"TSIntersectionType":if((F.type==="TSUnionType"||F.type==="TSIntersectionType")&&F.types.length>1&&(!y.types||y.types.length>1))return!0;case"TSInferType":if(y.type==="TSInferType"&&F.type==="TSRestType")return!1;case"TSTypeOperator":return F.type==="TSArrayType"||F.type==="TSOptionalType"||F.type==="TSRestType"||j==="objectType"&&F.type==="TSIndexedAccessType"||F.type==="TSTypeOperator"||F.type==="TSTypeAnnotation"&&N.getParentNode(1).type.startsWith("TSJSDoc");case"TSTypeQuery":return j==="objectType"&&F.type==="TSIndexedAccessType"||j==="elementType"&&F.type==="TSArrayType";case"TypeofTypeAnnotation":return j==="objectType"&&(F.type==="IndexedAccessType"||F.type==="OptionalIndexedAccessType")||j==="elementType"&&F.type==="ArrayTypeAnnotation";case"ArrayTypeAnnotation":return F.type==="NullableTypeAnnotation";case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return F.type==="ArrayTypeAnnotation"||F.type==="NullableTypeAnnotation"||F.type==="IntersectionTypeAnnotation"||F.type==="UnionTypeAnnotation"||j==="objectType"&&(F.type==="IndexedAccessType"||F.type==="OptionalIndexedAccessType");case"NullableTypeAnnotation":return F.type==="ArrayTypeAnnotation"||j==="objectType"&&(F.type==="IndexedAccessType"||F.type==="OptionalIndexedAccessType");case"FunctionTypeAnnotation":{let q=F.type==="NullableTypeAnnotation"?N.getParentNode(1):F;return q.type==="UnionTypeAnnotation"||q.type==="IntersectionTypeAnnotation"||q.type==="ArrayTypeAnnotation"||j==="objectType"&&(q.type==="IndexedAccessType"||q.type==="OptionalIndexedAccessType")||q.type==="NullableTypeAnnotation"||F.type==="FunctionTypeParam"&&F.name===null&&D(y).some(U=>U.typeAnnotation&&U.typeAnnotation.type==="NullableTypeAnnotation")}case"OptionalIndexedAccessType":return j==="objectType"&&F.type==="IndexedAccessType";case"StringLiteral":case"NumericLiteral":case"Literal":if(typeof y.value=="string"&&F.type==="ExpressionStatement"&&!F.directive){let q=N.getParentNode(1);return q.type==="Program"||q.type==="BlockStatement"}return j==="object"&&F.type==="MemberExpression"&&typeof y.value=="number";case"AssignmentExpression":{let q=N.getParentNode(1);return j==="body"&&F.type==="ArrowFunctionExpression"?!0:j==="key"&&(F.type==="ClassProperty"||F.type==="PropertyDefinition")&&F.computed||(j==="init"||j==="update")&&F.type==="ForStatement"?!1:F.type==="ExpressionStatement"?y.left.type==="ObjectPattern":!(j==="key"&&F.type==="TSPropertySignature"||F.type==="AssignmentExpression"||F.type==="SequenceExpression"&&q&&q.type==="ForStatement"&&(q.init===F||q.update===F)||j==="value"&&F.type==="Property"&&q&&q.type==="ObjectPattern"&&q.properties.includes(F)||F.type==="NGChainedExpression")}case"ConditionalExpression":switch(F.type){case"TaggedTemplateExpression":case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":case"ExportDefaultDeclaration":case"AwaitExpression":case"JSXSpreadAttribute":case"TSTypeAssertion":case"TypeCastExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return j==="callee";case"ConditionalExpression":return j==="test";case"MemberExpression":case"OptionalMemberExpression":return j==="object";default:return!1}case"FunctionExpression":switch(F.type){case"NewExpression":case"CallExpression":case"OptionalCallExpression":return j==="callee";case"TaggedTemplateExpression":return!0;default:return!1}case"ArrowFunctionExpression":switch(F.type){case"BinaryExpression":return F.operator!=="|>"||y.extra&&y.extra.parenthesized;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return j==="callee";case"MemberExpression":case"OptionalMemberExpression":return j==="object";case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"BindExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"AwaitExpression":case"TSTypeAssertion":return!0;case"ConditionalExpression":return j==="test";default:return!1}case"ClassExpression":return v(y.decorators)?!0:F.type==="NewExpression"?j==="callee":!1;case"OptionalMemberExpression":case"OptionalCallExpression":{let q=N.getParentNode(1);if(j==="object"&&F.type==="MemberExpression"||j==="callee"&&(F.type==="CallExpression"||F.type==="NewExpression")||F.type==="TSNonNullExpression"&&q.type==="MemberExpression"&&q.object===F)return!0}case"CallExpression":case"MemberExpression":case"TaggedTemplateExpression":case"TSNonNullExpression":if(j==="callee"&&(F.type==="BindExpression"||F.type==="NewExpression")){let q=y;for(;q;)switch(q.type){case"CallExpression":case"OptionalCallExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":case"BindExpression":q=q.object;break;case"TaggedTemplateExpression":q=q.tag;break;case"TSNonNullExpression":q=q.expression;break;default:return!1}}return!1;case"BindExpression":return j==="callee"&&(F.type==="BindExpression"||F.type==="NewExpression")||j==="object"&&S(F);case"NGPipeExpression":return!(F.type==="NGRoot"||F.type==="NGMicrosyntaxExpression"||F.type==="ObjectProperty"&&!(y.extra&&y.extra.parenthesized)||F.type==="ArrayExpression"||x(F)&&F.arguments[j]===y||j==="right"&&F.type==="NGPipeExpression"||j==="property"&&F.type==="MemberExpression"||F.type==="AssignmentExpression");case"JSXFragment":case"JSXElement":return j==="callee"||j==="left"&&F.type==="BinaryExpression"&&F.operator==="<"||F.type!=="ArrayExpression"&&F.type!=="ArrowFunctionExpression"&&F.type!=="AssignmentExpression"&&F.type!=="AssignmentPattern"&&F.type!=="BinaryExpression"&&F.type!=="NewExpression"&&F.type!=="ConditionalExpression"&&F.type!=="ExpressionStatement"&&F.type!=="JsExpressionRoot"&&F.type!=="JSXAttribute"&&F.type!=="JSXElement"&&F.type!=="JSXExpressionContainer"&&F.type!=="JSXFragment"&&F.type!=="LogicalExpression"&&!x(F)&&!R(F)&&F.type!=="ReturnStatement"&&F.type!=="ThrowStatement"&&F.type!=="TypeCastExpression"&&F.type!=="VariableDeclarator"&&F.type!=="YieldExpression";case"TypeAnnotation":return j==="returnType"&&F.type==="ArrowFunctionExpression"&&G(y)}return!1}function $(N){return N.type==="BlockStatement"||N.type==="BreakStatement"||N.type==="ClassBody"||N.type==="ClassDeclaration"||N.type==="ClassMethod"||N.type==="ClassProperty"||N.type==="PropertyDefinition"||N.type==="ClassPrivateProperty"||N.type==="ContinueStatement"||N.type==="DebuggerStatement"||N.type==="DeclareClass"||N.type==="DeclareExportAllDeclaration"||N.type==="DeclareExportDeclaration"||N.type==="DeclareFunction"||N.type==="DeclareInterface"||N.type==="DeclareModule"||N.type==="DeclareModuleExports"||N.type==="DeclareVariable"||N.type==="DoWhileStatement"||N.type==="EnumDeclaration"||N.type==="ExportAllDeclaration"||N.type==="ExportDefaultDeclaration"||N.type==="ExportNamedDeclaration"||N.type==="ExpressionStatement"||N.type==="ForInStatement"||N.type==="ForOfStatement"||N.type==="ForStatement"||N.type==="FunctionDeclaration"||N.type==="IfStatement"||N.type==="ImportDeclaration"||N.type==="InterfaceDeclaration"||N.type==="LabeledStatement"||N.type==="MethodDefinition"||N.type==="ReturnStatement"||N.type==="SwitchStatement"||N.type==="ThrowStatement"||N.type==="TryStatement"||N.type==="TSDeclareFunction"||N.type==="TSEnumDeclaration"||N.type==="TSImportEqualsDeclaration"||N.type==="TSInterfaceDeclaration"||N.type==="TSModuleDeclaration"||N.type==="TSNamespaceExportDeclaration"||N.type==="TypeAlias"||N.type==="VariableDeclaration"||N.type==="WhileStatement"||N.type==="WithStatement"}function Q(N){let J=0,F=N.getValue();for(;F;){let j=N.getParentNode(J++);if(j&&j.type==="ForStatement"&&j.init===F)return!0;F=j}return!1}function G(N){return E(N,J=>J.type==="ObjectTypeAnnotation"&&E(J,F=>F.type==="FunctionTypeAnnotation"||void 0)||void 0)}function re(N){return N.type==="ObjectExpression"}function ee(N){let J=N.getValue(),F=N.getParentNode(),j=N.getName();switch(F.type){case"NGPipeExpression":if(typeof j=="number"&&F.arguments[j]===J&&F.arguments.length-1===j)return N.callParent(ee);break;case"ObjectProperty":if(j==="value"){let y=N.getParentNode(1);return p(y.properties)===F}break;case"BinaryExpression":case"LogicalExpression":if(j==="right")return N.callParent(ee);break;case"ConditionalExpression":if(j==="alternate")return N.callParent(ee);break;case"UnaryExpression":if(F.prefix)return N.callParent(ee);break}return!1}function De(N,J){let F=N.getValue(),j=N.getParentNode();return F.type==="FunctionExpression"||F.type==="ClassExpression"?j.type==="ExportDefaultDeclaration"||!te(N,J):!h(F)||j.type!=="ExportDefaultDeclaration"&&te(N,J)?!1:N.call(y=>De(y,J),...f(N,F))}A.exports=te}}),J0=Te({"src/language-js/print-preprocess.js"(m,A){Ve();function p(v,D){switch(D.parser){case"json":case"json5":case"json-stringify":case"__js_expression":case"__vue_expression":case"__vue_ts_expression":return Object.assign(Object.assign({},v),{},{type:D.parser.startsWith("__")?"JsExpressionRoot":"JsonRoot",node:v,comments:[],rootMarker:D.rootMarker});default:return v}}A.exports=p}}),KE=Te({"src/language-js/print/html-binding.js"(m,A){Ve();var{builders:{join:p,line:v,group:D,softline:f,indent:d}}=Tn();function h(C,B,_){let P=C.getValue();if(B.__onHtmlBindingRoot&&C.getName()===null&&B.__onHtmlBindingRoot(P,B),P.type==="File"){if(B.__isVueForBindingLeft)return C.call(x=>{let S=p([",",v],x.map(_,"params")),{params:R}=x.getValue();return R.length===1?S:["(",d([f,D(S)]),f,")"]},"program","body",0);if(B.__isVueBindings)return C.call(x=>p([",",v],x.map(_,"params")),"program","body",0)}}function E(C){switch(C.type){case"MemberExpression":switch(C.property.type){case"Identifier":case"NumericLiteral":case"StringLiteral":return E(C.object)}return!1;case"Identifier":return!0;default:return!1}}A.exports={isVueEventBindingExpression:E,printHtmlBinding:h}}}),Tp=Te({"src/language-js/print/binaryish.js"(m,A){Ve();var{printComments:p}=Ur(),{getLast:v}=ye(),{builders:{join:D,line:f,softline:d,group:h,indent:E,align:C,indentIfBreak:B},utils:{cleanDoc:_,getDocParts:P,isConcat:x}}=Tn(),{hasLeadingOwnLineComment:S,isBinaryish:R,isJsxNode:X,shouldFlatten:te,hasComment:$,CommentCheckFlags:Q,isCallExpression:G,isMemberExpression:re,isObjectProperty:ee,isEnabledHackPipeline:De}=br(),N=0;function J(y,L,M){let q=y.getValue(),U=y.getParentNode(),z=y.getParentNode(1),se=q!==U.body&&(U.type==="IfStatement"||U.type==="WhileStatement"||U.type==="SwitchStatement"||U.type==="DoWhileStatement"),le=De(L)&&q.operator==="|>",ge=F(y,M,L,!1,se);if(se)return ge;if(le)return h(ge);if(G(U)&&U.callee===q||U.type==="UnaryExpression"||re(U)&&!U.computed)return h([E([d,...ge]),d]);let ce=U.type==="ReturnStatement"||U.type==="ThrowStatement"||U.type==="JSXExpressionContainer"&&z.type==="JSXAttribute"||q.operator!=="|"&&U.type==="JsExpressionRoot"||q.type!=="NGPipeExpression"&&(U.type==="NGRoot"&&L.parser==="__ng_binding"||U.type==="NGMicrosyntaxExpression"&&z.type==="NGMicrosyntax"&&z.body.length===1)||q===U.body&&U.type==="ArrowFunctionExpression"||q!==U.body&&U.type==="ForStatement"||U.type==="ConditionalExpression"&&z.type!=="ReturnStatement"&&z.type!=="ThrowStatement"&&!G(z)||U.type==="TemplateLiteral",Le=U.type==="AssignmentExpression"||U.type==="VariableDeclarator"||U.type==="ClassProperty"||U.type==="PropertyDefinition"||U.type==="TSAbstractPropertyDefinition"||U.type==="ClassPrivateProperty"||ee(U),ie=R(q.left)&&te(q.operator,q.left.operator);if(ce||j(q)&&!ie||!j(q)&&Le)return h(ge);if(ge.length===0)return"";let We=X(q.right),he=ge.findIndex(be=>typeof be!="string"&&!Array.isArray(be)&&be.type==="group"),oe=ge.slice(0,he===-1?1:he+1),Ue=ge.slice(oe.length,We?-1:void 0),it=Symbol("logicalChain-"+ ++N),Xe=h([...oe,E(Ue)],{id:it});if(!We)return Xe;let bt=v(ge);return h([Xe,B(bt,{groupId:it})])}function F(y,L,M,q,U){let z=y.getValue();if(!R(z))return[h(L())];let se=[];te(z.operator,z.left.operator)?se=y.call(Ue=>F(Ue,L,M,!0,U),"left"):se.push(h(L("left")));let le=j(z),ge=(z.operator==="|>"||z.type==="NGPipeExpression"||z.operator==="|"&&M.parser==="__vue_expression")&&!S(M.originalText,z.right),ce=z.type==="NGPipeExpression"?"|":z.operator,Le=z.type==="NGPipeExpression"&&z.arguments.length>0?h(E([f,": ",D([f,": "],y.map(L,"arguments").map(Ue=>C(2,h(Ue))))])):"",ie;if(le)ie=[ce," ",L("right"),Le];else{let Ue=De(M)&&ce==="|>"?y.call(it=>F(it,L,M,!0,U),"right"):L("right");ie=[ge?f:"",ce,ge?" ":f,Ue,Le]}let We=y.getParentNode(),he=$(z.left,Q.Trailing|Q.Line),oe=he||!(U&&z.type==="LogicalExpression")&&We.type!==z.type&&z.left.type!==z.type&&z.right.type!==z.type;if(se.push(ge?"":" ",oe?h(ie,{shouldBreak:he}):ie),q&&$(z)){let Ue=_(p(y,se,M));return x(Ue)||Ue.type==="fill"?P(Ue):[Ue]}return se}function j(y){return y.type!=="LogicalExpression"?!1:!!(y.right.type==="ObjectExpression"&&y.right.properties.length>0||y.right.type==="ArrayExpression"&&y.right.elements.length>0||X(y.right))}A.exports={printBinaryishExpression:J,shouldInlineLogicalExpression:j}}}),ZE=Te({"src/language-js/print/angular.js"(m,A){Ve();var{builders:{join:p,line:v,group:D}}=Tn(),{hasNode:f,hasComment:d,getComments:h}=br(),{printBinaryishExpression:E}=Tp();function C(P,x,S){let R=P.getValue();if(R.type.startsWith("NG"))switch(R.type){case"NGRoot":return[S("node"),d(R.node)?" //"+h(R.node)[0].value.trimEnd():""];case"NGPipeExpression":return E(P,x,S);case"NGChainedExpression":return D(p([";",v],P.map(X=>_(X)?S():["(",S(),")"],"expressions")));case"NGEmptyExpression":return"";case"NGQuotedExpression":return[R.prefix,": ",R.value.trim()];case"NGMicrosyntax":return P.map((X,te)=>[te===0?"":B(X.getValue(),te,R)?" ":[";",v],S()],"body");case"NGMicrosyntaxKey":return/^[$_a-z][\w$]*(?:-[$_a-z][\w$])*$/i.test(R.name)?R.name:JSON.stringify(R.name);case"NGMicrosyntaxExpression":return[S("expression"),R.alias===null?"":[" as ",S("alias")]];case"NGMicrosyntaxKeyedExpression":{let X=P.getName(),te=P.getParentNode(),$=B(R,X,te)||(X===1&&(R.key.name==="then"||R.key.name==="else")||X===2&&R.key.name==="else"&&te.body[X-1].type==="NGMicrosyntaxKeyedExpression"&&te.body[X-1].key.name==="then")&&te.body[0].type==="NGMicrosyntaxExpression";return[S("key"),$?" ":": ",S("expression")]}case"NGMicrosyntaxLet":return["let ",S("key"),R.value===null?"":[" = ",S("value")]];case"NGMicrosyntaxAs":return[S("key")," as ",S("alias")];default:throw new Error(`Unknown Angular node type: ${JSON.stringify(R.type)}.`)}}function B(P,x,S){return P.type==="NGMicrosyntaxKeyedExpression"&&P.key.name==="of"&&x===1&&S.body[0].type==="NGMicrosyntaxLet"&&S.body[0].value===null}function _(P){return f(P.getValue(),x=>{switch(x.type){case void 0:return!1;case"CallExpression":case"OptionalCallExpression":case"AssignmentExpression":return!0}})}A.exports={printAngular:C}}}),eA=Te({"src/language-js/print/jsx.js"(m,A){Ve();var{printComments:p,printDanglingComments:v,printCommentsSeparately:D}=Ur(),{builders:{line:f,hardline:d,softline:h,group:E,indent:C,conditionalGroup:B,fill:_,ifBreak:P,lineSuffixBoundary:x,join:S},utils:{willBreak:R}}=Tn(),{getLast:X,getPreferredQuote:te}=ye(),{isJsxNode:$,rawText:Q,isCallExpression:G,isStringLiteral:re,isBinaryish:ee,hasComment:De,CommentCheckFlags:N,hasNodeIgnoreComment:J}=br(),F=lo(),{willPrintOwnComments:j}=G0(),y=Ce=>Ce===""||Ce===f||Ce===d||Ce===h;function L(Ce,Qe,et){let Ct=Ce.getValue();if(Ct.type==="JSXElement"&&gt(Ct))return[et("openingElement"),et("closingElement")];let Bt=Ct.type==="JSXElement"?et("openingElement"):et("openingFragment"),Rt=Ct.type==="JSXElement"?et("closingElement"):et("closingFragment");if(Ct.children.length===1&&Ct.children[0].type==="JSXExpressionContainer"&&(Ct.children[0].expression.type==="TemplateLiteral"||Ct.children[0].expression.type==="TaggedTemplateExpression"))return[Bt,...Ce.map(et,"children"),Rt];Ct.children=Ct.children.map(V=>zt(V)?{type:"JSXText",value:" ",raw:" "}:V);let hn=Ct.children.some($),Rn=Ct.children.filter(V=>V.type==="JSXExpressionContainer").length>1,Bn=Ct.type==="JSXElement"&&Ct.openingElement.attributes.length>1,dn=R(Bt)||hn||Bn||Rn,En=Ce.getParentNode().rootMarker==="mdx",pt=Qe.singleQuote?"{' '}":'{" "}',Ae=En?" ":P([pt,h]," "),Dt=Ct.openingElement&&Ct.openingElement.name&&Ct.openingElement.name.name==="fbt",je=M(Ce,Qe,et,Ae,Dt),mt=Ct.children.some(V=>yt(V));for(let V=je.length-2;V>=0;V--){let ke=je[V]===""&&je[V+1]==="",ot=je[V]===d&&je[V+1]===""&&je[V+2]===d,It=(je[V]===h||je[V]===d)&&je[V+1]===""&&je[V+2]===Ae,Wt=je[V]===Ae&&je[V+1]===""&&(je[V+2]===h||je[V+2]===d),pn=je[V]===Ae&&je[V+1]===""&&je[V+2]===Ae,jt=je[V]===h&&je[V+1]===""&&je[V+2]===d||je[V]===d&&je[V+1]===""&&je[V+2]===h;ot&&mt||ke||It||pn||jt?je.splice(V,2):Wt&&je.splice(V+1,2)}for(;je.length>0&&y(X(je));)je.pop();for(;je.length>1&&y(je[0])&&y(je[1]);)je.shift(),je.shift();let nn=[];for(let[V,ke]of je.entries()){if(ke===Ae){if(V===1&&je[V-1]===""){if(je.length===2){nn.push(pt);continue}nn.push([pt,d]);continue}else if(V===je.length-1){nn.push(pt);continue}else if(je[V-1]===""&&je[V-2]===d){nn.push(pt);continue}}nn.push(ke),R(ke)&&(dn=!0)}let Jt=mt?_(nn):E(nn,{shouldBreak:!0});if(En)return Jt;let Et=E([Bt,C([d,Jt]),d,Rt]);return dn?Et:B([E([Bt,...je,Rt]),Et])}function M(Ce,Qe,et,Ct,Bt){let Rt=[];return Ce.each((hn,Rn,Bn)=>{let dn=hn.getValue();if(dn.type==="JSXText"){let En=Q(dn);if(yt(dn)){let pt=En.split(bt);if(pt[0]===""){if(Rt.push(""),pt.shift(),/\n/.test(pt[0])){let Dt=Bn[Rn+1];Rt.push(U(Bt,pt[1],dn,Dt))}else Rt.push(Ct);pt.shift()}let Ae;if(X(pt)===""&&(pt.pop(),Ae=pt.pop()),pt.length===0)return;for(let[Dt,je]of pt.entries())Dt%2===1?Rt.push(f):Rt.push(je);if(Ae!==void 0)if(/\n/.test(Ae)){let Dt=Bn[Rn+1];Rt.push(U(Bt,X(Rt),dn,Dt))}else Rt.push(Ct);else{let Dt=Bn[Rn+1];Rt.push(q(Bt,X(Rt),dn,Dt))}}else/\n/.test(En)?En.match(/\n/g).length>1&&Rt.push("",d):Rt.push("",Ct)}else{let En=et();Rt.push(En);let pt=Bn[Rn+1];if(pt&&yt(pt)){let Ae=Re(Q(pt)).split(bt)[0];Rt.push(q(Bt,Ae,dn,pt))}else Rt.push(d)}},"children"),Rt}function q(Ce,Qe,et,Ct){return Ce?"":et.type==="JSXElement"&&!et.closingElement||Ct&&Ct.type==="JSXElement"&&!Ct.closingElement?Qe.length===1?h:d:h}function U(Ce,Qe,et,Ct){return Ce?d:Qe.length===1?et.type==="JSXElement"&&!et.closingElement||Ct&&Ct.type==="JSXElement"&&!Ct.closingElement?d:h:d}function z(Ce,Qe,et){let Ct=Ce.getParentNode();if(!Ct||{ArrayExpression:!0,JSXAttribute:!0,JSXElement:!0,JSXExpressionContainer:!0,JSXFragment:!0,ExpressionStatement:!0,CallExpression:!0,OptionalCallExpression:!0,ConditionalExpression:!0,JsExpressionRoot:!0}[Ct.type])return Qe;let Bt=Ce.match(void 0,hn=>hn.type==="ArrowFunctionExpression",G,hn=>hn.type==="JSXExpressionContainer"),Rt=F(Ce,et);return E([Rt?"":P("("),C([h,Qe]),h,Rt?"":P(")")],{shouldBreak:Bt})}function se(Ce,Qe,et){let Ct=Ce.getValue(),Bt=[];if(Bt.push(et("name")),Ct.value){let Rt;if(re(Ct.value)){let hn=Q(Ct.value).slice(1,-1).replace(/&apos;/g,"'").replace(/&quot;/g,'"'),{escaped:Rn,quote:Bn,regex:dn}=te(hn,Qe.jsxSingleQuote?"'":'"');hn=hn.replace(dn,Rn);let{leading:En,trailing:pt}=Ce.call(()=>D(Ce,Qe),"value");Rt=[En,Bn,hn,Bn,pt]}else Rt=et("value");Bt.push("=",Rt)}return Bt}function le(Ce,Qe,et){let Ct=Ce.getValue(),Bt=(Rt,hn)=>Rt.type==="JSXEmptyExpression"||!De(Rt)&&(Rt.type==="ArrayExpression"||Rt.type==="ObjectExpression"||Rt.type==="ArrowFunctionExpression"||Rt.type==="AwaitExpression"&&(Bt(Rt.argument,Rt)||Rt.argument.type==="JSXElement")||G(Rt)||Rt.type==="FunctionExpression"||Rt.type==="TemplateLiteral"||Rt.type==="TaggedTemplateExpression"||Rt.type==="DoExpression"||$(hn)&&(Rt.type==="ConditionalExpression"||ee(Rt)));return Bt(Ct.expression,Ce.getParentNode(0))?E(["{",et("expression"),x,"}"]):E(["{",C([h,et("expression")]),h,x,"}"])}function ge(Ce,Qe,et){let Ct=Ce.getValue(),Bt=Ct.name&&De(Ct.name)||Ct.typeParameters&&De(Ct.typeParameters);if(Ct.selfClosing&&Ct.attributes.length===0&&!Bt)return["<",et("name"),et("typeParameters")," />"];if(Ct.attributes&&Ct.attributes.length===1&&Ct.attributes[0].value&&re(Ct.attributes[0].value)&&!Ct.attributes[0].value.value.includes(`
226
+ `)&&!Bt&&!De(Ct.attributes[0]))return E(["<",et("name"),et("typeParameters")," ",...Ce.map(et,"attributes"),Ct.selfClosing?" />":">"]);let Rt=Ct.attributes&&Ct.attributes.some(Rn=>Rn.value&&re(Rn.value)&&Rn.value.value.includes(`
227
+ `)),hn=Qe.singleAttributePerLine&&Ct.attributes.length>1?d:f;return E(["<",et("name"),et("typeParameters"),C(Ce.map(()=>[hn,et()],"attributes")),...ce(Ct,Qe,Bt)],{shouldBreak:Rt})}function ce(Ce,Qe,et){return Ce.selfClosing?[f,"/>"]:Le(Ce,Qe,et)?[">"]:[h,">"]}function Le(Ce,Qe,et){let Ct=Ce.attributes.length>0&&De(X(Ce.attributes),N.Trailing);return Ce.attributes.length===0&&!et||(Qe.bracketSameLine||Qe.jsxBracketSameLine)&&(!et||Ce.attributes.length>0)&&!Ct}function ie(Ce,Qe,et){let Ct=Ce.getValue(),Bt=[];Bt.push("</");let Rt=et("name");return De(Ct.name,N.Leading|N.Line)?Bt.push(C([d,Rt]),d):De(Ct.name,N.Leading|N.Block)?Bt.push(" ",Rt):Bt.push(Rt),Bt.push(">"),Bt}function We(Ce,Qe){let et=Ce.getValue(),Ct=De(et),Bt=De(et,N.Line),Rt=et.type==="JSXOpeningFragment";return[Rt?"<":"</",C([Bt?d:Ct&&!Rt?" ":"",v(Ce,Qe,!0)]),Bt?d:"",">"]}function he(Ce,Qe,et){let Ct=p(Ce,L(Ce,Qe,et),Qe);return z(Ce,Ct,Qe)}function oe(Ce,Qe){let et=Ce.getValue(),Ct=De(et,N.Line);return[v(Ce,Qe,!Ct),Ct?d:""]}function Ue(Ce,Qe,et){let Ct=Ce.getValue();return["{",Ce.call(Bt=>{let Rt=["...",et()],hn=Bt.getValue();return!De(hn)||!j(Bt)?Rt:[C([h,p(Bt,Rt,Qe)]),h]},Ct.type==="JSXSpreadAttribute"?"argument":"expression"),"}"]}function it(Ce,Qe,et){let Ct=Ce.getValue();if(Ct.type.startsWith("JSX"))switch(Ct.type){case"JSXAttribute":return se(Ce,Qe,et);case"JSXIdentifier":return String(Ct.name);case"JSXNamespacedName":return S(":",[et("namespace"),et("name")]);case"JSXMemberExpression":return S(".",[et("object"),et("property")]);case"JSXSpreadAttribute":return Ue(Ce,Qe,et);case"JSXSpreadChild":return Ue(Ce,Qe,et);case"JSXExpressionContainer":return le(Ce,Qe,et);case"JSXFragment":case"JSXElement":return he(Ce,Qe,et);case"JSXOpeningElement":return ge(Ce,Qe,et);case"JSXClosingElement":return ie(Ce,Qe,et);case"JSXOpeningFragment":case"JSXClosingFragment":return We(Ce,Qe);case"JSXEmptyExpression":return oe(Ce,Qe);case"JSXText":throw new Error("JSXText should be handled by JSXElement");default:throw new Error(`Unknown JSX node type: ${JSON.stringify(Ct.type)}.`)}}var Xe=`
228
+ \r `,bt=new RegExp("(["+Xe+"]+)"),be=new RegExp("[^"+Xe+"]"),Re=Ce=>Ce.replace(new RegExp("(?:^"+bt.source+"|"+bt.source+"$)"),"");function gt(Ce){if(Ce.children.length===0)return!0;if(Ce.children.length>1)return!1;let Qe=Ce.children[0];return Qe.type==="JSXText"&&!yt(Qe)}function yt(Ce){return Ce.type==="JSXText"&&(be.test(Q(Ce))||!/\n/.test(Q(Ce)))}function zt(Ce){return Ce.type==="JSXExpressionContainer"&&re(Ce.expression)&&Ce.expression.value===" "&&!De(Ce.expression)}function qe(Ce){let Qe=Ce.getValue(),et=Ce.getParentNode();if(!et||!Qe||!$(Qe)||!$(et))return!1;let Ct=et.children.indexOf(Qe),Bt=null;for(let Rt=Ct;Rt>0;Rt--){let hn=et.children[Rt-1];if(!(hn.type==="JSXText"&&!yt(hn))){Bt=hn;break}}return Bt&&Bt.type==="JSXExpressionContainer"&&Bt.expression.type==="JSXEmptyExpression"&&J(Bt.expression)}A.exports={hasJsxIgnoreComment:qe,printJsx:it}}}),Ns=Te({"src/language-js/print/misc.js"(m,A){Ve();var{isNonEmptyArray:p}=ye(),{builders:{indent:v,join:D,line:f}}=Tn(),{isFlowAnnotationComment:d}=br();function h(X){let te=X.getValue();return!te.optional||te.type==="Identifier"&&te===X.getParentNode().key?"":te.type==="OptionalCallExpression"||te.type==="OptionalMemberExpression"&&te.computed?"?.":"?"}function E(X){return X.getValue().definite||X.match(void 0,(te,$)=>$==="id"&&te.type==="VariableDeclarator"&&te.definite)?"!":""}function C(X,te,$){let Q=X.getValue();return Q.typeArguments?$("typeArguments"):Q.typeParameters?$("typeParameters"):""}function B(X,te,$){let Q=X.getValue();if(!Q.typeAnnotation)return"";let G=X.getParentNode(),re=G.type==="DeclareFunction"&&G.id===Q;return d(te.originalText,Q.typeAnnotation)?[" /*: ",$("typeAnnotation")," */"]:[re?"":": ",$("typeAnnotation")]}function _(X,te,$){return["::",$("callee")]}function P(X,te,$){let Q=X.getValue();return p(Q.modifiers)?[D(" ",X.map($,"modifiers"))," "]:""}function x(X,te,$){return X.type==="EmptyStatement"?";":X.type==="BlockStatement"||$?[" ",te]:v([f,te])}function S(X,te,$){return["...",$("argument"),B(X,te,$)]}function R(X,te){let $=X.slice(1,-1);if($.includes('"')||$.includes("'"))return X;let Q=te.singleQuote?"'":'"';return Q+$+Q}A.exports={printOptionalToken:h,printDefiniteToken:E,printFunctionTypeParameters:C,printBindExpressionCallee:_,printTypeScriptModifiers:P,printTypeAnnotation:B,printRestSpread:S,adjustClause:x,printDirective:R}}}),Qo=Te({"src/language-js/print/array.js"(m,A){Ve();var{printDanglingComments:p}=Ur(),{builders:{line:v,softline:D,hardline:f,group:d,indent:h,ifBreak:E,fill:C}}=Tn(),{getLast:B,hasNewline:_}=ye(),{shouldPrintComma:P,hasComment:x,CommentCheckFlags:S,isNextLineEmpty:R,isNumericLiteral:X,isSignedNumericLiteral:te}=br(),{locStart:$}=as(),{printOptionalToken:Q,printTypeAnnotation:G}=Ns();function re(J,F,j){let y=J.getValue(),L=[],M=y.type==="TupleExpression"?"#[":"[",q="]";if(y.elements.length===0)x(y,S.Dangling)?L.push(d([M,p(J,F),D,q])):L.push(M,q);else{let U=B(y.elements),z=!(U&&U.type==="RestElement"),se=U===null,le=Symbol("array"),ge=!F.__inJestEach&&y.elements.length>1&&y.elements.every((ie,We,he)=>{let oe=ie&&ie.type;if(oe!=="ArrayExpression"&&oe!=="ObjectExpression")return!1;let Ue=he[We+1];if(Ue&&oe!==Ue.type)return!1;let it=oe==="ArrayExpression"?"elements":"properties";return ie[it]&&ie[it].length>1}),ce=ee(y,F),Le=z?se?",":P(F)?ce?E(",","",{groupId:le}):E(","):"":"";L.push(d([M,h([D,ce?N(J,F,j,Le):[De(J,F,"elements",j),Le],p(J,F,!0)]),D,q],{shouldBreak:ge,id:le}))}return L.push(Q(J),G(J,F,j)),L}function ee(J,F){return J.elements.length>1&&J.elements.every(j=>j&&(X(j)||te(j)&&!x(j.argument))&&!x(j,S.Trailing|S.Line,y=>!_(F.originalText,$(y),{backwards:!0})))}function De(J,F,j,y){let L=[],M=[];return J.each(q=>{L.push(M,d(y())),M=[",",v],q.getValue()&&R(q.getValue(),F)&&M.push(D)},j),L}function N(J,F,j,y){let L=[];return J.each((M,q,U)=>{let z=q===U.length-1;L.push([j(),z?y:","]),z||L.push(R(M.getValue(),F)?[f,f]:x(U[q+1],S.Leading|S.Line)?f:v)},"elements"),C(L)}A.exports={printArray:re,printArrayItems:De,isConciselyPrintedArray:ee}}}),Y0=Te({"src/language-js/print/call-arguments.js"(m,A){Ve();var{printDanglingComments:p}=Ur(),{getLast:v,getPenultimate:D}=ye(),{getFunctionParameters:f,hasComment:d,CommentCheckFlags:h,isFunctionCompositionArgs:E,isJsxNode:C,isLongCurriedCallExpression:B,shouldPrintComma:_,getCallArguments:P,iterateCallArgumentsPath:x,isNextLineEmpty:S,isCallExpression:R,isStringLiteral:X,isObjectProperty:te,isTSTypeExpression:$}=br(),{builders:{line:Q,hardline:G,softline:re,group:ee,indent:De,conditionalGroup:N,ifBreak:J,breakParent:F},utils:{willBreak:j}}=Tn(),{ArgExpansionBailout:y}=sn(),{isConciselyPrintedArray:L}=Qo();function M(ce,Le,ie){let We=ce.getValue(),he=We.type==="ImportExpression",oe=P(We);if(oe.length===0)return["(",p(ce,Le,!0),")"];if(se(oe))return["(",ie(["arguments",0]),", ",ie(["arguments",1]),")"];let Ue=!1,it=!1,Xe=oe.length-1,bt=[];x(ce,(qe,Ce)=>{let Qe=qe.getNode(),et=[ie()];Ce===Xe||(S(Qe,Le)?(Ce===0&&(it=!0),Ue=!0,et.push(",",G,G)):et.push(",",Q)),bt.push(et)});let be=!(he||We.callee&&We.callee.type==="Import")&&_(Le,"all")?",":"";function Re(){return ee(["(",De([Q,...bt]),be,Q,")"],{shouldBreak:!0})}if(Ue||ce.getParentNode().type!=="Decorator"&&E(oe))return Re();let gt=z(oe),yt=U(oe,Le);if(gt||yt){if(gt?bt.slice(1).some(j):bt.slice(0,-1).some(j))return Re();let qe=[];try{ce.try(()=>{x(ce,(Ce,Qe)=>{gt&&Qe===0&&(qe=[[ie([],{expandFirstArg:!0}),bt.length>1?",":"",it?G:Q,it?G:""],...bt.slice(1)]),yt&&Qe===Xe&&(qe=[...bt.slice(0,-1),ie([],{expandLastArg:!0})])})})}catch(Ce){if(Ce instanceof y)return Re();throw Ce}return[bt.some(j)?F:"",N([["(",...qe,")"],gt?["(",ee(qe[0],{shouldBreak:!0}),...qe.slice(1),")"]:["(",...bt.slice(0,-1),ee(v(qe),{shouldBreak:!0}),")"],Re()])]}let zt=["(",De([re,...bt]),J(be),re,")"];return B(ce)?zt:ee(zt,{shouldBreak:bt.some(j)||Ue})}function q(ce){let Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return ce.type==="ObjectExpression"&&(ce.properties.length>0||d(ce))||ce.type==="ArrayExpression"&&(ce.elements.length>0||d(ce))||ce.type==="TSTypeAssertion"&&q(ce.expression)||$(ce)&&q(ce.expression)||ce.type==="FunctionExpression"||ce.type==="ArrowFunctionExpression"&&(!ce.returnType||!ce.returnType.typeAnnotation||ce.returnType.typeAnnotation.type!=="TSTypeReference"||le(ce.body))&&(ce.body.type==="BlockStatement"||ce.body.type==="ArrowFunctionExpression"&&q(ce.body,!0)||ce.body.type==="ObjectExpression"||ce.body.type==="ArrayExpression"||!Le&&(R(ce.body)||ce.body.type==="ConditionalExpression")||C(ce.body))||ce.type==="DoExpression"||ce.type==="ModuleExpression"}function U(ce,Le){let ie=v(ce),We=D(ce);return!d(ie,h.Leading)&&!d(ie,h.Trailing)&&q(ie)&&(!We||We.type!==ie.type)&&(ce.length!==2||We.type!=="ArrowFunctionExpression"||ie.type!=="ArrayExpression")&&!(ce.length>1&&ie.type==="ArrayExpression"&&L(ie,Le))}function z(ce){if(ce.length!==2)return!1;let[Le,ie]=ce;return Le.type==="ModuleExpression"&&ge(ie)?!0:!d(Le)&&(Le.type==="FunctionExpression"||Le.type==="ArrowFunctionExpression"&&Le.body.type==="BlockStatement")&&ie.type!=="FunctionExpression"&&ie.type!=="ArrowFunctionExpression"&&ie.type!=="ConditionalExpression"&&!q(ie)}function se(ce){return ce.length===2&&ce[0].type==="ArrowFunctionExpression"&&f(ce[0]).length===0&&ce[0].body.type==="BlockStatement"&&ce[1].type==="ArrayExpression"&&!ce.some(Le=>d(Le))}function le(ce){return ce.type==="BlockStatement"&&(ce.body.some(Le=>Le.type!=="EmptyStatement")||d(ce,h.Dangling))}function ge(ce){return ce.type==="ObjectExpression"&&ce.properties.length===1&&te(ce.properties[0])&&ce.properties[0].key.type==="Identifier"&&ce.properties[0].key.name==="type"&&X(ce.properties[0].value)&&ce.properties[0].value.value==="module"}A.exports=M}}),H0=Te({"src/language-js/print/member.js"(m,A){Ve();var{builders:{softline:p,group:v,indent:D,label:f}}=Tn(),{isNumericLiteral:d,isMemberExpression:h,isCallExpression:E}=br(),{printOptionalToken:C}=Ns();function B(P,x,S){let R=P.getValue(),X=P.getParentNode(),te,$=0;do te=P.getParentNode($),$++;while(te&&(h(te)||te.type==="TSNonNullExpression"));let Q=S("object"),G=_(P,x,S),re=te&&(te.type==="NewExpression"||te.type==="BindExpression"||te.type==="AssignmentExpression"&&te.left.type!=="Identifier")||R.computed||R.object.type==="Identifier"&&R.property.type==="Identifier"&&!h(X)||(X.type==="AssignmentExpression"||X.type==="VariableDeclarator")&&(E(R.object)&&R.object.arguments.length>0||R.object.type==="TSNonNullExpression"&&E(R.object.expression)&&R.object.expression.arguments.length>0||Q.label==="member-chain");return f(Q.label==="member-chain"?"member-chain":"member",[Q,re?G:v(D([p,G]))])}function _(P,x,S){let R=S("property"),X=P.getValue(),te=C(P);return X.computed?!X.property||d(X.property)?[te,"[",R,"]"]:v([te,"[",D([p,R]),p,"]"]):[te,".",R]}A.exports={printMemberExpression:B,printMemberLookup:_}}}),tA=Te({"src/language-js/print/member-chain.js"(m,A){Ve();var{printComments:p}=Ur(),{getLast:v,isNextLineEmptyAfterIndex:D,getNextNonSpaceNonCommentCharacterIndex:f}=ye(),d=lo(),{isCallExpression:h,isMemberExpression:E,isFunctionOrArrowExpression:C,isLongCurriedCallExpression:B,isMemberish:_,isNumericLiteral:P,isSimpleCallArgument:x,hasComment:S,CommentCheckFlags:R,isNextLineEmpty:X}=br(),{locEnd:te}=as(),{builders:{join:$,hardline:Q,group:G,indent:re,conditionalGroup:ee,breakParent:De,label:N},utils:{willBreak:J}}=Tn(),F=Y0(),{printMemberLookup:j}=H0(),{printOptionalToken:y,printFunctionTypeParameters:L,printBindExpressionCallee:M}=Ns();function q(U,z,se){let le=U.getParentNode(),ge=!le||le.type==="ExpressionStatement",ce=[];function Le(dn){let{originalText:En}=z,pt=f(En,dn,te);return En.charAt(pt)===")"?pt!==!1&&D(En,pt+1):X(dn,z)}function ie(dn){let En=dn.getValue();h(En)&&(_(En.callee)||h(En.callee))?(ce.unshift({node:En,printed:[p(dn,[y(dn),L(dn,z,se),F(dn,z,se)],z),Le(En)?Q:""]}),dn.call(pt=>ie(pt),"callee")):_(En)?(ce.unshift({node:En,needsParens:d(dn,z),printed:p(dn,E(En)?j(dn,z,se):M(dn,z,se),z)}),dn.call(pt=>ie(pt),"object")):En.type==="TSNonNullExpression"?(ce.unshift({node:En,printed:p(dn,"!",z)}),dn.call(pt=>ie(pt),"expression")):ce.unshift({node:En,printed:se()})}let We=U.getValue();ce.unshift({node:We,printed:[y(U),L(U,z,se),F(U,z,se)]}),We.callee&&U.call(dn=>ie(dn),"callee");let he=[],oe=[ce[0]],Ue=1;for(;Ue<ce.length&&(ce[Ue].node.type==="TSNonNullExpression"||h(ce[Ue].node)||E(ce[Ue].node)&&ce[Ue].node.computed&&P(ce[Ue].node.property));++Ue)oe.push(ce[Ue]);if(!h(ce[0].node))for(;Ue+1<ce.length&&_(ce[Ue].node)&&_(ce[Ue+1].node);++Ue)oe.push(ce[Ue]);he.push(oe),oe=[];let it=!1;for(;Ue<ce.length;++Ue){if(it&&_(ce[Ue].node)){if(ce[Ue].node.computed&&P(ce[Ue].node.property)){oe.push(ce[Ue]);continue}he.push(oe),oe=[],it=!1}(h(ce[Ue].node)||ce[Ue].node.type==="ImportExpression")&&(it=!0),oe.push(ce[Ue]),S(ce[Ue].node,R.Trailing)&&(he.push(oe),oe=[],it=!1)}oe.length>0&&he.push(oe);function Xe(dn){return/^[A-Z]|^[$_]+$/.test(dn)}function bt(dn){return dn.length<=z.tabWidth}function be(dn){let En=dn[1].length>0&&dn[1][0].node.computed;if(dn[0].length===1){let Ae=dn[0][0].node;return Ae.type==="ThisExpression"||Ae.type==="Identifier"&&(Xe(Ae.name)||ge&&bt(Ae.name)||En)}let pt=v(dn[0]).node;return E(pt)&&pt.property.type==="Identifier"&&(Xe(pt.property.name)||En)}let Re=he.length>=2&&!S(he[1][0].node)&&be(he);function gt(dn){let En=dn.map(pt=>pt.printed);return dn.length>0&&v(dn).needsParens?["(",...En,")"]:En}function yt(dn){return dn.length===0?"":re(G([Q,$(Q,dn.map(gt))]))}let zt=he.map(gt),qe=zt,Ce=Re?3:2,Qe=he.flat(),et=Qe.slice(1,-1).some(dn=>S(dn.node,R.Leading))||Qe.slice(0,-1).some(dn=>S(dn.node,R.Trailing))||he[Ce]&&S(he[Ce][0].node,R.Leading);if(he.length<=Ce&&!et)return B(U)?qe:G(qe);let Ct=v(he[Re?1:0]).node,Bt=!h(Ct)&&Le(Ct),Rt=[gt(he[0]),Re?he.slice(1,2).map(gt):"",Bt?Q:"",yt(he.slice(Re?2:1))],hn=ce.map(dn=>{let{node:En}=dn;return En}).filter(h);function Rn(){let dn=v(v(he)).node,En=v(zt);return h(dn)&&J(En)&&hn.slice(0,-1).some(pt=>pt.arguments.some(C))}let Bn;return et||hn.length>2&&hn.some(dn=>!dn.arguments.every(En=>x(En,0)))||zt.slice(0,-1).some(J)||Rn()?Bn=G(Rt):Bn=[J(qe)||Bt?De:"",ee([qe,Rt])],N("member-chain",Bn)}A.exports=q}}),z0=Te({"src/language-js/print/call-expression.js"(m,A){Ve();var{builders:{join:p,group:v}}=Tn(),D=lo(),{getCallArguments:f,hasFlowAnnotationComment:d,isCallExpression:h,isMemberish:E,isStringLiteral:C,isTemplateOnItsOwnLine:B,isTestCall:_,iterateCallArgumentsPath:P}=br(),x=tA(),S=Y0(),{printOptionalToken:R,printFunctionTypeParameters:X}=Ns();function te(Q,G,re){let ee=Q.getValue(),De=Q.getParentNode(),N=ee.type==="NewExpression",J=ee.type==="ImportExpression",F=R(Q),j=f(ee);if(j.length>0&&(!J&&!N&&$(ee,De)||j.length===1&&B(j[0],G.originalText)||!N&&_(ee,De))){let M=[];return P(Q,()=>{M.push(re())}),[N?"new ":"",re("callee"),F,X(Q,G,re),"(",p(", ",M),")"]}let y=(G.parser==="babel"||G.parser==="babel-flow")&&ee.callee&&ee.callee.type==="Identifier"&&d(ee.callee.trailingComments);if(y&&(ee.callee.trailingComments[0].printed=!0),!J&&!N&&E(ee.callee)&&!Q.call(M=>D(M,G),"callee"))return x(Q,G,re);let L=[N?"new ":"",J?"import":re("callee"),F,y?`/*:: ${ee.callee.trailingComments[0].value.slice(2).trim()} */`:"",X(Q,G,re),S(Q,G,re)];return J||h(ee.callee)?v(L):L}function $(Q,G){if(Q.callee.type!=="Identifier")return!1;if(Q.callee.name==="require")return!0;if(Q.callee.name==="define"){let re=f(Q);return G.type==="ExpressionStatement"&&(re.length===1||re.length===2&&re[0].type==="ArrayExpression"||re.length===3&&C(re[0])&&re[1].type==="ArrayExpression")}return!1}A.exports={printCallExpression:te}}}),Ko=Te({"src/language-js/print/assignment.js"(m,A){Ve();var{isNonEmptyArray:p,getStringWidth:v}=ye(),{builders:{line:D,group:f,indent:d,indentIfBreak:h,lineSuffixBoundary:E},utils:{cleanDoc:C,willBreak:B,canBreak:_}}=Tn(),{hasLeadingOwnLineComment:P,isBinaryish:x,isStringLiteral:S,isLiteral:R,isNumericLiteral:X,isCallExpression:te,isMemberExpression:$,getCallArguments:Q,rawText:G,hasComment:re,isSignedNumericLiteral:ee,isObjectProperty:De}=br(),{shouldInlineLogicalExpression:N}=Tp(),{printCallExpression:J}=z0();function F(be,Re,gt,yt,zt,qe){let Ce=L(be,Re,gt,yt,qe),Qe=gt(qe,{assignmentLayout:Ce});switch(Ce){case"break-after-operator":return f([f(yt),zt,f(d([D,Qe]))]);case"never-break-after-operator":return f([f(yt),zt," ",Qe]);case"fluid":{let et=Symbol("assignment");return f([f(yt),zt,f(d(D),{id:et}),E,h(Qe,{groupId:et})])}case"break-lhs":return f([yt,zt," ",f(Qe)]);case"chain":return[f(yt),zt,D,Qe];case"chain-tail":return[f(yt),zt,d([D,Qe])];case"chain-tail-arrow-chain":return[f(yt),zt,Qe];case"only-left":return yt}}function j(be,Re,gt){let yt=be.getValue();return F(be,Re,gt,gt("left"),[" ",yt.operator],"right")}function y(be,Re,gt){return F(be,Re,gt,gt("id")," =","init")}function L(be,Re,gt,yt,zt){let qe=be.getValue(),Ce=qe[zt];if(!Ce)return"only-left";let Qe=!U(Ce);if(be.match(U,z,Ct=>!Qe||Ct.type!=="ExpressionStatement"&&Ct.type!=="VariableDeclaration"))return Qe?Ce.type==="ArrowFunctionExpression"&&Ce.body.type==="ArrowFunctionExpression"?"chain-tail-arrow-chain":"chain-tail":"chain";if(!Qe&&U(Ce.right)||P(Re.originalText,Ce))return"break-after-operator";if(Ce.type==="CallExpression"&&Ce.callee.name==="require"||Re.parser==="json5"||Re.parser==="json")return"never-break-after-operator";if(q(qe)||se(qe)||ce(qe)||Le(qe)&&_(yt))return"break-lhs";let et=it(qe,yt,Re);return be.call(()=>M(be,Re,gt,et),zt)?"break-after-operator":et||Ce.type==="TemplateLiteral"||Ce.type==="TaggedTemplateExpression"||Ce.type==="BooleanLiteral"||X(Ce)||Ce.type==="ClassExpression"?"never-break-after-operator":"fluid"}function M(be,Re,gt,yt){let zt=be.getValue();if(x(zt)&&!N(zt))return!0;switch(zt.type){case"StringLiteralTypeAnnotation":case"SequenceExpression":return!0;case"ConditionalExpression":{let{test:Qe}=zt;return x(Qe)&&!N(Qe)}case"ClassExpression":return p(zt.decorators)}if(yt)return!1;let qe=zt,Ce=[];for(;;)if(qe.type==="UnaryExpression")qe=qe.argument,Ce.push("argument");else if(qe.type==="TSNonNullExpression")qe=qe.expression,Ce.push("expression");else break;return!!(S(qe)||be.call(()=>he(be,Re,gt),...Ce))}function q(be){if(z(be)){let Re=be.left||be.id;return Re.type==="ObjectPattern"&&Re.properties.length>2&&Re.properties.some(gt=>De(gt)&&(!gt.shorthand||gt.value&&gt.value.type==="AssignmentPattern"))}return!1}function U(be){return be.type==="AssignmentExpression"}function z(be){return U(be)||be.type==="VariableDeclarator"}function se(be){let Re=le(be);if(p(Re)){let gt=be.type==="TSTypeAliasDeclaration"?"constraint":"bound";if(Re.length>1&&Re.some(yt=>yt[gt]||yt.default))return!0}return!1}function le(be){return ge(be)&&be.typeParameters&&be.typeParameters.params?be.typeParameters.params:null}function ge(be){return be.type==="TSTypeAliasDeclaration"||be.type==="TypeAlias"}function ce(be){if(be.type!=="VariableDeclarator")return!1;let{typeAnnotation:Re}=be.id;if(!Re||!Re.typeAnnotation)return!1;let gt=ie(Re.typeAnnotation);return p(gt)&&gt.length>1&&gt.some(yt=>p(ie(yt))||yt.type==="TSConditionalType")}function Le(be){return be.type==="VariableDeclarator"&&be.init&&be.init.type==="ArrowFunctionExpression"}function ie(be){return We(be)&&be.typeParameters&&be.typeParameters.params?be.typeParameters.params:null}function We(be){return be.type==="TSTypeReference"||be.type==="GenericTypeAnnotation"}function he(be,Re,gt){let yt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,zt=be.getValue(),qe=()=>he(be,Re,gt,!0);if(zt.type==="TSNonNullExpression")return be.call(qe,"expression");if(te(zt)){if(J(be,Re,gt).label==="member-chain")return!1;let Ce=Q(zt);return!(Ce.length===0||Ce.length===1&&Ue(Ce[0],Re))||Xe(zt,gt)?!1:be.call(qe,"callee")}return $(zt)?be.call(qe,"object"):yt&&(zt.type==="Identifier"||zt.type==="ThisExpression")}var oe=.25;function Ue(be,Re){let{printWidth:gt}=Re;if(re(be))return!1;let yt=gt*oe;if(be.type==="ThisExpression"||be.type==="Identifier"&&be.name.length<=yt||ee(be)&&!re(be.argument))return!0;let zt=be.type==="Literal"&&"regex"in be&&be.regex.pattern||be.type==="RegExpLiteral"&&be.pattern;return zt?zt.length<=yt:S(be)?G(be).length<=yt:be.type==="TemplateLiteral"?be.expressions.length===0&&be.quasis[0].value.raw.length<=yt&&!be.quasis[0].value.raw.includes(`
229
+ `):R(be)}function it(be,Re,gt){return De(be)?(Re=C(Re),typeof Re=="string"&&v(Re)<gt.tabWidth+3):!1}function Xe(be,Re){let gt=bt(be);if(p(gt)){if(gt.length>1)return!0;if(gt.length===1){let zt=gt[0];if(zt.type==="TSUnionType"||zt.type==="UnionTypeAnnotation"||zt.type==="TSIntersectionType"||zt.type==="IntersectionTypeAnnotation"||zt.type==="TSTypeLiteral"||zt.type==="ObjectTypeAnnotation")return!0}let yt=be.typeParameters?"typeParameters":"typeArguments";if(B(Re(yt)))return!0}return!1}function bt(be){return be.typeParameters&&be.typeParameters.params||be.typeArguments&&be.typeArguments.params}A.exports={printVariableDeclarator:y,printAssignmentExpression:j,printAssignment:F,isArrowFunctionVariableDeclarator:Le}}}),Il=Te({"src/language-js/print/function-parameters.js"(m,A){Ve();var{getNextNonSpaceNonCommentCharacter:p}=ye(),{printDanglingComments:v}=Ur(),{builders:{line:D,hardline:f,softline:d,group:h,indent:E,ifBreak:C},utils:{removeLines:B,willBreak:_}}=Tn(),{getFunctionParameters:P,iterateFunctionParametersPath:x,isSimpleType:S,isTestCall:R,isTypeAnnotationAFunction:X,isObjectType:te,isObjectTypePropertyAFunction:$,hasRestParameter:Q,shouldPrintComma:G,hasComment:re,isNextLineEmpty:ee}=br(),{locEnd:De}=as(),{ArgExpansionBailout:N}=sn(),{printFunctionTypeParameters:J}=Ns();function F(M,q,U,z,se){let le=M.getValue(),ge=P(le),ce=se?J(M,U,q):"";if(ge.length===0)return[ce,"(",v(M,U,!0,Ue=>p(U.originalText,Ue,De)===")"),")"];let Le=M.getParentNode(),ie=R(Le),We=j(le),he=[];if(x(M,(Ue,it)=>{let Xe=it===ge.length-1;Xe&&le.rest&&he.push("..."),he.push(q()),!Xe&&(he.push(","),ie||We?he.push(" "):ee(ge[it],U)?he.push(f,f):he.push(D))}),z){if(_(ce)||_(he))throw new N;return h([B(ce),"(",B(he),")"])}let oe=ge.every(Ue=>!Ue.decorators);return We&&oe?[ce,"(",...he,")"]:ie?[ce,"(",...he,")"]:($(Le)||X(Le)||Le.type==="TypeAlias"||Le.type==="UnionTypeAnnotation"||Le.type==="TSUnionType"||Le.type==="IntersectionTypeAnnotation"||Le.type==="FunctionTypeAnnotation"&&Le.returnType===le)&&ge.length===1&&ge[0].name===null&&le.this!==ge[0]&&ge[0].typeAnnotation&&le.typeParameters===null&&S(ge[0].typeAnnotation)&&!le.rest?U.arrowParens==="always"?["(",...he,")"]:he:[ce,"(",E([d,...he]),C(!Q(le)&&G(U,"all")?",":""),d,")"]}function j(M){if(!M)return!1;let q=P(M);if(q.length!==1)return!1;let[U]=q;return!re(U)&&(U.type==="ObjectPattern"||U.type==="ArrayPattern"||U.type==="Identifier"&&U.typeAnnotation&&(U.typeAnnotation.type==="TypeAnnotation"||U.typeAnnotation.type==="TSTypeAnnotation")&&te(U.typeAnnotation.typeAnnotation)||U.type==="FunctionTypeParam"&&te(U.typeAnnotation)||U.type==="AssignmentPattern"&&(U.left.type==="ObjectPattern"||U.left.type==="ArrayPattern")&&(U.right.type==="Identifier"||U.right.type==="ObjectExpression"&&U.right.properties.length===0||U.right.type==="ArrayExpression"&&U.right.elements.length===0))}function y(M){let q;return M.returnType?(q=M.returnType,q.typeAnnotation&&(q=q.typeAnnotation)):M.typeAnnotation&&(q=M.typeAnnotation),q}function L(M,q){let U=y(M);if(!U)return!1;let z=M.typeParameters&&M.typeParameters.params;if(z){if(z.length>1)return!1;if(z.length===1){let se=z[0];if(se.constraint||se.default)return!1}}return P(M).length===1&&(te(U)||_(q))}A.exports={printFunctionParameters:F,shouldHugFunctionParameters:j,shouldGroupFunctionParameters:L}}}),Ol=Te({"src/language-js/print/type-annotation.js"(m,A){Ve();var{printComments:p,printDanglingComments:v}=Ur(),{isNonEmptyArray:D}=ye(),{builders:{group:f,join:d,line:h,softline:E,indent:C,align:B,ifBreak:_}}=Tn(),P=lo(),{locStart:x}=as(),{isSimpleType:S,isObjectType:R,hasLeadingOwnLineComment:X,isObjectTypePropertyAFunction:te,shouldPrintComma:$}=br(),{printAssignment:Q}=Ko(),{printFunctionParameters:G,shouldGroupFunctionParameters:re}=Il(),{printArrayItems:ee}=Qo();function De(U){if(S(U)||R(U))return!0;if(U.type==="UnionTypeAnnotation"||U.type==="TSUnionType"){let z=U.types.filter(le=>le.type==="VoidTypeAnnotation"||le.type==="TSVoidKeyword"||le.type==="NullLiteralTypeAnnotation"||le.type==="TSNullKeyword").length,se=U.types.some(le=>le.type==="ObjectTypeAnnotation"||le.type==="TSTypeLiteral"||le.type==="GenericTypeAnnotation"||le.type==="TSTypeReference");if(U.types.length-1===z&&se)return!0}return!1}function N(U,z,se){let le=z.semi?";":"",ge=U.getValue(),ce=[];return ce.push("opaque type ",se("id"),se("typeParameters")),ge.supertype&&ce.push(": ",se("supertype")),ge.impltype&&ce.push(" = ",se("impltype")),ce.push(le),ce}function J(U,z,se){let le=z.semi?";":"",ge=U.getValue(),ce=[];ge.declare&&ce.push("declare "),ce.push("type ",se("id"),se("typeParameters"));let Le=ge.type==="TSTypeAliasDeclaration"?"typeAnnotation":"right";return[Q(U,z,se,ce," =",Le),le]}function F(U,z,se){let le=U.getValue(),ge=U.map(se,"types"),ce=[],Le=!1;for(let ie=0;ie<ge.length;++ie)ie===0?ce.push(ge[ie]):R(le.types[ie-1])&&R(le.types[ie])?ce.push([" & ",Le?C(ge[ie]):ge[ie]]):!R(le.types[ie-1])&&!R(le.types[ie])?ce.push(C([" &",h,ge[ie]])):(ie>1&&(Le=!0),ce.push(" & ",ie>1?C(ge[ie]):ge[ie]));return f(ce)}function j(U,z,se){let le=U.getValue(),ge=U.getParentNode(),ce=ge.type!=="TypeParameterInstantiation"&&ge.type!=="TSTypeParameterInstantiation"&&ge.type!=="GenericTypeAnnotation"&&ge.type!=="TSTypeReference"&&ge.type!=="TSTypeAssertion"&&ge.type!=="TupleTypeAnnotation"&&ge.type!=="TSTupleType"&&!(ge.type==="FunctionTypeParam"&&!ge.name&&U.getParentNode(1).this!==ge)&&!((ge.type==="TypeAlias"||ge.type==="VariableDeclarator"||ge.type==="TSTypeAliasDeclaration")&&X(z.originalText,le)),Le=De(le),ie=U.map(oe=>{let Ue=se();return Le||(Ue=B(2,Ue)),p(oe,Ue,z)},"types");if(Le)return d(" | ",ie);let We=ce&&!X(z.originalText,le),he=[_([We?h:"","| "]),d([h,"| "],ie)];return P(U,z)?f([C(he),E]):ge.type==="TupleTypeAnnotation"&&ge.types.length>1||ge.type==="TSTupleType"&&ge.elementTypes.length>1?f([C([_(["(",E]),he]),E,_(")")]):f(ce?C(he):he)}function y(U,z,se){let le=U.getValue(),ge=[],ce=U.getParentNode(0),Le=U.getParentNode(1),ie=U.getParentNode(2),We=le.type==="TSFunctionType"||!((ce.type==="ObjectTypeProperty"||ce.type==="ObjectTypeInternalSlot")&&!ce.variance&&!ce.optional&&x(ce)===x(le)||ce.type==="ObjectTypeCallProperty"||ie&&ie.type==="DeclareFunction"),he=We&&(ce.type==="TypeAnnotation"||ce.type==="TSTypeAnnotation"),oe=he&&We&&(ce.type==="TypeAnnotation"||ce.type==="TSTypeAnnotation")&&Le.type==="ArrowFunctionExpression";te(ce)&&(We=!0,he=!0),oe&&ge.push("(");let Ue=G(U,se,z,!1,!0),it=le.returnType||le.predicate||le.typeAnnotation?[We?" => ":": ",se("returnType"),se("predicate"),se("typeAnnotation")]:"",Xe=re(le,it);return ge.push(Xe?f(Ue):Ue),it&&ge.push(it),oe&&ge.push(")"),f(ge)}function L(U,z,se){let le=U.getValue(),ge=le.type==="TSTupleType"?"elementTypes":"types",ce=le[ge],Le=D(ce),ie=Le?E:"";return f(["[",C([ie,ee(U,z,ge,se)]),_(Le&&$(z,"all")?",":""),v(U,z,!0),ie,"]"])}function M(U,z,se){let le=U.getValue(),ge=le.type==="OptionalIndexedAccessType"&&le.optional?"?.[":"[";return[se("objectType"),ge,se("indexType"),"]"]}function q(U,z,se){let le=U.getValue();return[le.postfix?"":se,z("typeAnnotation"),le.postfix?se:""]}A.exports={printOpaqueType:N,printTypeAlias:J,printIntersectionType:F,printUnionType:j,printFunctionType:y,printTupleType:L,printIndexedAccessType:M,shouldHugType:De,printJSDocType:q}}}),Rl=Te({"src/language-js/print/type-parameters.js"(m,A){Ve();var{printDanglingComments:p}=Ur(),{builders:{join:v,line:D,hardline:f,softline:d,group:h,indent:E,ifBreak:C}}=Tn(),{isTestCall:B,hasComment:_,CommentCheckFlags:P,isTSXFile:x,shouldPrintComma:S,getFunctionParameters:R,isObjectType:X,getTypeScriptMappedTypeModifier:te}=br(),{createGroupIdMapper:$}=ye(),{shouldHugType:Q}=Ol(),{isArrowFunctionVariableDeclarator:G}=Ko(),re=$("typeParameters");function ee(J,F,j,y){let L=J.getValue();if(!L[y])return"";if(!Array.isArray(L[y]))return j(y);let M=J.getNode(2),q=M&&B(M),U=J.match(se=>!(se[y].length===1&&X(se[y][0])),void 0,(se,le)=>le==="typeAnnotation",se=>se.type==="Identifier",G);if(L[y].length===0||!U&&(q||L[y].length===1&&(L[y][0].type==="NullableTypeAnnotation"||Q(L[y][0]))))return["<",v(", ",J.map(j,y)),De(J,F),">"];let z=L.type==="TSTypeParameterInstantiation"?"":R(L).length===1&&x(F)&&!L[y][0].constraint&&J.getParentNode().type==="ArrowFunctionExpression"?",":S(F,"all")?C(","):"";return h(["<",E([d,v([",",D],J.map(j,y))]),z,d,">"],{id:re(L)})}function De(J,F){let j=J.getValue();if(!_(j,P.Dangling))return"";let y=!_(j,P.Line),L=p(J,F,y);return y?L:[L,f]}function N(J,F,j){let y=J.getValue(),L=[y.type==="TSTypeParameter"&&y.const?"const ":""],M=J.getParentNode();return M.type==="TSMappedType"?(M.readonly&&L.push(te(M.readonly,"readonly")," "),L.push("[",j("name")),y.constraint&&L.push(" in ",j("constraint")),M.nameType&&L.push(" as ",J.callParent(()=>j("nameType"))),L.push("]"),L):(y.variance&&L.push(j("variance")),y.in&&L.push("in "),y.out&&L.push("out "),L.push(j("name")),y.bound&&L.push(": ",j("bound")),y.constraint&&L.push(" extends ",j("constraint")),y.default&&L.push(" = ",j("default")),L)}A.exports={printTypeParameter:N,printTypeParameters:ee,getTypeParametersGroupId:re}}}),Zo=Te({"src/language-js/print/property.js"(m,A){Ve();var{printComments:p}=Ur(),{printString:v,printNumber:D}=ye(),{isNumericLiteral:f,isSimpleNumber:d,isStringLiteral:h,isStringPropSafeToUnquote:E,rawText:C}=br(),{printAssignment:B}=Ko(),_=new WeakMap;function P(S,R,X){let te=S.getNode();if(te.computed)return["[",X("key"),"]"];let $=S.getParentNode(),{key:Q}=te;if(R.quoteProps==="consistent"&&!_.has($)){let G=($.properties||$.body||$.members).some(re=>!re.computed&&re.key&&h(re.key)&&!E(re,R));_.set($,G)}if((Q.type==="Identifier"||f(Q)&&d(D(C(Q)))&&String(Q.value)===D(C(Q))&&!(R.parser==="typescript"||R.parser==="babel-ts"))&&(R.parser==="json"||R.quoteProps==="consistent"&&_.get($))){let G=v(JSON.stringify(Q.type==="Identifier"?Q.name:Q.value.toString()),R);return S.call(re=>p(re,G,R),"key")}return E(te,R)&&(R.quoteProps==="as-needed"||R.quoteProps==="consistent"&&!_.get($))?S.call(G=>p(G,/^\d/.test(Q.value)?D(Q.value):Q.value,R),"key"):X("key")}function x(S,R,X){return S.getValue().shorthand?X("value"):B(S,R,X,P(S,R,X),":","value")}A.exports={printProperty:x,printPropertyKey:P}}}),jl=Te({"src/language-js/print/function.js"(m,A){Ve();var p=Xo(),{printDanglingComments:v,printCommentsSeparately:D}=Ur(),f=Jr(),{getNextNonSpaceNonCommentCharacterIndex:d}=ye(),{builders:{line:h,softline:E,group:C,indent:B,ifBreak:_,hardline:P,join:x,indentIfBreak:S},utils:{removeLines:R,willBreak:X}}=Tn(),{ArgExpansionBailout:te}=sn(),{getFunctionParameters:$,hasLeadingOwnLineComment:Q,isFlowAnnotationComment:G,isJsxNode:re,isTemplateOnItsOwnLine:ee,shouldPrintComma:De,startsWithNoLookaheadToken:N,isBinaryish:J,isLineComment:F,hasComment:j,getComments:y,CommentCheckFlags:L,isCallLikeExpression:M,isCallExpression:q,getCallArguments:U,hasNakedLeftSide:z,getLeftSide:se}=br(),{locEnd:le}=as(),{printFunctionParameters:ge,shouldGroupFunctionParameters:ce}=Il(),{printPropertyKey:Le}=Zo(),{printFunctionTypeParameters:ie}=Ns();function We(Ce,Qe,et,Ct){let Bt=Ce.getValue(),Rt=!1;if((Bt.type==="FunctionDeclaration"||Bt.type==="FunctionExpression")&&Ct&&Ct.expandLastArg){let En=Ce.getParentNode();q(En)&&U(En).length>1&&(Rt=!0)}let hn=[];Bt.type==="TSDeclareFunction"&&Bt.declare&&hn.push("declare "),Bt.async&&hn.push("async "),Bt.generator?hn.push("function* "):hn.push("function "),Bt.id&&hn.push(Qe("id"));let Rn=ge(Ce,Qe,et,Rt),Bn=Re(Ce,Qe,et),dn=ce(Bt,Bn);return hn.push(ie(Ce,et,Qe),C([dn?C(Rn):Rn,Bn]),Bt.body?" ":"",Qe("body")),et.semi&&(Bt.declare||!Bt.body)&&hn.push(";"),hn}function he(Ce,Qe,et){let Ct=Ce.getNode(),{kind:Bt}=Ct,Rt=Ct.value||Ct,hn=[];return!Bt||Bt==="init"||Bt==="method"||Bt==="constructor"?Rt.async&&hn.push("async "):(p.ok(Bt==="get"||Bt==="set"),hn.push(Bt," ")),Rt.generator&&hn.push("*"),hn.push(Le(Ce,Qe,et),Ct.optional||Ct.key.optional?"?":""),Ct===Rt?hn.push(oe(Ce,Qe,et)):Rt.type==="FunctionExpression"?hn.push(Ce.call(Rn=>oe(Rn,Qe,et),"value")):hn.push(et("value")),hn}function oe(Ce,Qe,et){let Ct=Ce.getNode(),Bt=ge(Ce,et,Qe),Rt=Re(Ce,et,Qe),hn=ce(Ct,Rt),Rn=[ie(Ce,Qe,et),C([hn?C(Bt):Bt,Rt])];return Ct.body?Rn.push(" ",et("body")):Rn.push(Qe.semi?";":""),Rn}function Ue(Ce,Qe,et,Ct){let Bt=Ce.getValue(),Rt=[];if(Bt.async&&Rt.push("async "),be(Ce,Qe))Rt.push(et(["params",0]));else{let Rn=Ct&&(Ct.expandLastArg||Ct.expandFirstArg),Bn=Re(Ce,et,Qe);if(Rn){if(X(Bn))throw new te;Bn=C(R(Bn))}Rt.push(C([ge(Ce,et,Qe,Rn,!0),Bn]))}let hn=v(Ce,Qe,!0,Rn=>{let Bn=d(Qe.originalText,Rn,le);return Bn!==!1&&Qe.originalText.slice(Bn,Bn+2)==="=>"});return hn&&Rt.push(" ",hn),Rt}function it(Ce,Qe,et,Ct,Bt,Rt){let hn=Ce.getName(),Rn=Ce.getParentNode(),Bn=M(Rn)&&hn==="callee",dn=!!(Qe&&Qe.assignmentLayout),En=Rt.body.type!=="BlockStatement"&&Rt.body.type!=="ObjectExpression"&&Rt.body.type!=="SequenceExpression",pt=Bn&&En||Qe&&Qe.assignmentLayout==="chain-tail-arrow-chain",Ae=Symbol("arrow-chain");return Rt.body.type==="SequenceExpression"&&(Bt=C(["(",B([E,Bt]),E,")"])),C([C(B([Bn||dn?E:"",C(x([" =>",h],et),{shouldBreak:Ct})]),{id:Ae,shouldBreak:pt})," =>",S(En?B([h,Bt]):[" ",Bt],{groupId:Ae}),Bn?_(E,"",{groupId:Ae}):""])}function Xe(Ce,Qe,et,Ct){let Bt=Ce.getValue(),Rt=[],hn=[],Rn=!1;if((function Ae(){let Dt=Ue(Ce,Qe,et,Ct);if(Rt.length===0)Rt.push(Dt);else{let{leading:je,trailing:mt}=D(Ce,Qe);Rt.push([je,Dt]),hn.unshift(mt)}Rn=Rn||Bt.returnType&&$(Bt).length>0||Bt.typeParameters||$(Bt).some(je=>je.type!=="Identifier"),Bt.body.type!=="ArrowFunctionExpression"||Ct&&Ct.expandLastArg?hn.unshift(et("body",Ct)):(Bt=Bt.body,Ce.call(Ae,"body"))})(),Rt.length>1)return it(Ce,Ct,Rt,Rn,hn,Bt);let Bn=Rt;if(Bn.push(" =>"),!Q(Qe.originalText,Bt.body)&&(Bt.body.type==="ArrayExpression"||Bt.body.type==="ObjectExpression"||Bt.body.type==="BlockStatement"||re(Bt.body)||ee(Bt.body,Qe.originalText)||Bt.body.type==="ArrowFunctionExpression"||Bt.body.type==="DoExpression"))return C([...Bn," ",hn]);if(Bt.body.type==="SequenceExpression")return C([...Bn,C([" (",B([E,hn]),E,")"])]);let dn=(Ct&&Ct.expandLastArg||Ce.getParentNode().type==="JSXExpressionContainer")&&!j(Bt),En=Ct&&Ct.expandLastArg&&De(Qe,"all"),pt=Bt.body.type==="ConditionalExpression"&&!N(Bt.body,Ae=>Ae.type==="ObjectExpression");return C([...Bn,C([B([h,pt?_("","("):"",hn,pt?_("",")"):""]),dn?[_(En?",":""),E]:""])])}function bt(Ce){let Qe=$(Ce);return Qe.length===1&&!Ce.typeParameters&&!j(Ce,L.Dangling)&&Qe[0].type==="Identifier"&&!Qe[0].typeAnnotation&&!j(Qe[0])&&!Qe[0].optional&&!Ce.predicate&&!Ce.returnType}function be(Ce,Qe){if(Qe.arrowParens==="always")return!1;if(Qe.arrowParens==="avoid"){let et=Ce.getValue();return bt(et)}return!1}function Re(Ce,Qe,et){let Ct=Ce.getValue(),Bt=Qe("returnType");if(Ct.returnType&&G(et.originalText,Ct.returnType))return[" /*: ",Bt," */"];let Rt=[Bt];return Ct.returnType&&Ct.returnType.typeAnnotation&&Rt.unshift(": "),Ct.predicate&&Rt.push(Ct.returnType?" ":": ",Qe("predicate")),Rt}function gt(Ce,Qe,et){let Ct=Ce.getValue(),Bt=Qe.semi?";":"",Rt=[];Ct.argument&&(qe(Qe,Ct.argument)?Rt.push([" (",B([P,et("argument")]),P,")"]):J(Ct.argument)||Ct.argument.type==="SequenceExpression"?Rt.push(C([_(" ("," "),B([E,et("argument")]),E,_(")")])):Rt.push(" ",et("argument")));let hn=y(Ct),Rn=f(hn),Bn=Rn&&F(Rn);return Bn&&Rt.push(Bt),j(Ct,L.Dangling)&&Rt.push(" ",v(Ce,Qe,!0)),Bn||Rt.push(Bt),Rt}function yt(Ce,Qe,et){return["return",gt(Ce,Qe,et)]}function zt(Ce,Qe,et){return["throw",gt(Ce,Qe,et)]}function qe(Ce,Qe){if(Q(Ce.originalText,Qe))return!0;if(z(Qe)){let et=Qe,Ct;for(;Ct=se(et);)if(et=Ct,Q(Ce.originalText,et))return!0}return!1}A.exports={printFunction:We,printArrowFunction:Xe,printMethod:he,printReturnStatement:yt,printThrowStatement:zt,printMethodInternal:oe,shouldPrintParamsWithoutParens:be}}}),_p=Te({"src/language-js/print/decorators.js"(m,A){Ve();var{isNonEmptyArray:p,hasNewline:v}=ye(),{builders:{line:D,hardline:f,join:d,breakParent:h,group:E}}=Tn(),{locStart:C,locEnd:B}=as(),{getParentExportDeclaration:_}=br();function P(te,$,Q){let G=te.getValue();return E([d(D,te.map(Q,"decorators")),R(G,$)?f:D])}function x(te,$,Q){return[d(f,te.map(Q,"declaration","decorators")),f]}function S(te,$,Q){let G=te.getValue(),{decorators:re}=G;if(!p(re)||X(te.getParentNode()))return;let ee=G.type==="ClassExpression"||G.type==="ClassDeclaration"||R(G,$);return[_(te)?f:ee?h:"",d(D,te.map(Q,"decorators")),D]}function R(te,$){return te.decorators.some(Q=>v($.originalText,B(Q)))}function X(te){if(te.type!=="ExportDefaultDeclaration"&&te.type!=="ExportNamedDeclaration"&&te.type!=="DeclareExportDeclaration")return!1;let $=te.declaration&&te.declaration.decorators;return p($)&&C(te)===C($[0])}A.exports={printDecorators:S,printClassMemberDecorators:P,printDecoratorsBeforeExport:x,hasDecoratorsBeforeExport:X}}}),eu=Te({"src/language-js/print/class.js"(m,A){Ve();var{isNonEmptyArray:p,createGroupIdMapper:v}=ye(),{printComments:D,printDanglingComments:f}=Ur(),{builders:{join:d,line:h,hardline:E,softline:C,group:B,indent:_,ifBreak:P}}=Tn(),{hasComment:x,CommentCheckFlags:S}=br(),{getTypeParametersGroupId:R}=Rl(),{printMethod:X}=jl(),{printOptionalToken:te,printTypeAnnotation:$,printDefiniteToken:Q}=Ns(),{printPropertyKey:G}=Zo(),{printAssignment:re}=Ko(),{printClassMemberDecorators:ee}=_p();function De(U,z,se){let le=U.getValue(),ge=[];le.declare&&ge.push("declare "),le.abstract&&ge.push("abstract "),ge.push("class");let ce=le.id&&x(le.id,S.Trailing)||le.typeParameters&&x(le.typeParameters,S.Trailing)||le.superClass&&x(le.superClass)||p(le.extends)||p(le.mixins)||p(le.implements),Le=[],ie=[];if(le.id&&Le.push(" ",se("id")),Le.push(se("typeParameters")),le.superClass){let We=[L(U,z,se),se("superTypeParameters")],he=U.call(oe=>["extends ",D(oe,We,z)],"superClass");ce?ie.push(h,B(he)):ie.push(" ",he)}else ie.push(y(U,z,se,"extends"));if(ie.push(y(U,z,se,"mixins"),y(U,z,se,"implements")),ce){let We;j(le)?We=[...Le,_(ie)]:We=_([...Le,ie]),ge.push(B(We,{id:N(le)}))}else ge.push(...Le,...ie);return ge.push(" ",se("body")),ge}var N=v("heritageGroup");function J(U){return P(E,"",{groupId:N(U)})}function F(U){return["superClass","extends","mixins","implements"].filter(z=>!!U[z]).length>1}function j(U){return U.typeParameters&&!x(U.typeParameters,S.Trailing|S.Line)&&!F(U)}function y(U,z,se,le){let ge=U.getValue();if(!p(ge[le]))return"";let ce=f(U,z,!0,Le=>{let{marker:ie}=Le;return ie===le});return[j(ge)?P(" ",h,{groupId:R(ge.typeParameters)}):h,ce,ce&&E,le,B(_([h,d([",",h],U.map(se,le))]))]}function L(U,z,se){let le=se("superClass");return U.getParentNode().type==="AssignmentExpression"?B(P(["(",_([C,le]),C,")"],le)):le}function M(U,z,se){let le=U.getValue(),ge=[];return p(le.decorators)&&ge.push(ee(U,z,se)),le.accessibility&&ge.push(le.accessibility+" "),le.readonly&&ge.push("readonly "),le.declare&&ge.push("declare "),le.static&&ge.push("static "),(le.type==="TSAbstractMethodDefinition"||le.abstract)&&ge.push("abstract "),le.override&&ge.push("override "),ge.push(X(U,z,se)),ge}function q(U,z,se){let le=U.getValue(),ge=[],ce=z.semi?";":"";return p(le.decorators)&&ge.push(ee(U,z,se)),le.accessibility&&ge.push(le.accessibility+" "),le.declare&&ge.push("declare "),le.static&&ge.push("static "),(le.type==="TSAbstractPropertyDefinition"||le.type==="TSAbstractAccessorProperty"||le.abstract)&&ge.push("abstract "),le.override&&ge.push("override "),le.readonly&&ge.push("readonly "),le.variance&&ge.push(se("variance")),(le.type==="ClassAccessorProperty"||le.type==="AccessorProperty"||le.type==="TSAbstractAccessorProperty")&&ge.push("accessor "),ge.push(G(U,z,se),te(U),Q(U),$(U,z,se)),[re(U,z,se,ge," =","value"),ce]}A.exports={printClass:De,printClassMethod:M,printClassProperty:q,printHardlineAfterHeritage:J}}}),X0=Te({"src/language-js/print/interface.js"(m,A){Ve();var{isNonEmptyArray:p}=ye(),{builders:{join:v,line:D,group:f,indent:d,ifBreak:h}}=Tn(),{hasComment:E,identity:C,CommentCheckFlags:B}=br(),{getTypeParametersGroupId:_}=Rl(),{printTypeScriptModifiers:P}=Ns();function x(S,R,X){let te=S.getValue(),$=[];te.declare&&$.push("declare "),te.type==="TSInterfaceDeclaration"&&$.push(te.abstract?"abstract ":"",P(S,R,X)),$.push("interface");let Q=[],G=[];te.type!=="InterfaceTypeAnnotation"&&Q.push(" ",X("id"),X("typeParameters"));let re=te.typeParameters&&!E(te.typeParameters,B.Trailing|B.Line);return p(te.extends)&&G.push(re?h(" ",D,{groupId:_(te.typeParameters)}):D,"extends ",(te.extends.length===1?C:d)(v([",",D],S.map(X,"extends")))),te.id&&E(te.id,B.Trailing)||p(te.extends)?re?$.push(f([...Q,d(G)])):$.push(f(d([...Q,...G]))):$.push(...Q,...G),$.push(" ",X("body")),f($)}A.exports={printInterface:x}}}),Q0=Te({"src/language-js/print/module.js"(m,A){Ve();var{isNonEmptyArray:p}=ye(),{builders:{softline:v,group:D,indent:f,join:d,line:h,ifBreak:E,hardline:C}}=Tn(),{printDanglingComments:B}=Ur(),{hasComment:_,CommentCheckFlags:P,shouldPrintComma:x,needsHardlineAfterDanglingComment:S,isStringLiteral:R,rawText:X}=br(),{locStart:te,hasSameLoc:$}=as(),{hasDecoratorsBeforeExport:Q,printDecoratorsBeforeExport:G}=_p();function re(q,U,z){let se=q.getValue(),le=U.semi?";":"",ge=[],{importKind:ce}=se;return ge.push("import"),ce&&ce!=="value"&&ge.push(" ",ce),ge.push(F(q,U,z),J(q,U,z),y(q,U,z),le),ge}function ee(q,U,z){let se=q.getValue(),le=[];Q(se)&&le.push(G(q,U,z));let{type:ge,exportKind:ce,declaration:Le}=se;return le.push("export"),(se.default||ge==="ExportDefaultDeclaration")&&le.push(" default"),_(se,P.Dangling)&&(le.push(" ",B(q,U,!0)),S(se)&&le.push(C)),Le?le.push(" ",z("declaration")):le.push(ce==="type"?" type":"",F(q,U,z),J(q,U,z),y(q,U,z)),N(se,U)&&le.push(";"),le}function De(q,U,z){let se=q.getValue(),le=U.semi?";":"",ge=[],{exportKind:ce,exported:Le}=se;return ge.push("export"),ce==="type"&&ge.push(" type"),ge.push(" *"),Le&&ge.push(" as ",z("exported")),ge.push(J(q,U,z),y(q,U,z),le),ge}function N(q,U){if(!U.semi)return!1;let{type:z,declaration:se}=q,le=q.default||z==="ExportDefaultDeclaration";if(!se)return!0;let{type:ge}=se;return!!(le&&ge!=="ClassDeclaration"&&ge!=="FunctionDeclaration"&&ge!=="TSInterfaceDeclaration"&&ge!=="DeclareClass"&&ge!=="DeclareFunction"&&ge!=="TSDeclareFunction"&&ge!=="EnumDeclaration")}function J(q,U,z){let se=q.getValue();if(!se.source)return"";let le=[];return j(se,U)||le.push(" from"),le.push(" ",z("source")),le}function F(q,U,z){let se=q.getValue();if(j(se,U))return"";let le=[" "];if(p(se.specifiers)){let ge=[],ce=[];q.each(()=>{let Le=q.getValue().type;if(Le==="ExportNamespaceSpecifier"||Le==="ExportDefaultSpecifier"||Le==="ImportNamespaceSpecifier"||Le==="ImportDefaultSpecifier")ge.push(z());else if(Le==="ExportSpecifier"||Le==="ImportSpecifier")ce.push(z());else throw new Error(`Unknown specifier type ${JSON.stringify(Le)}`)},"specifiers"),le.push(d(", ",ge)),ce.length>0&&(ge.length>0&&le.push(", "),ce.length>1||ge.length>0||se.specifiers.some(Le=>_(Le))?le.push(D(["{",f([U.bracketSpacing?h:v,d([",",h],ce)]),E(x(U)?",":""),U.bracketSpacing?h:v,"}"])):le.push(["{",U.bracketSpacing?" ":"",...ce,U.bracketSpacing?" ":"","}"]))}else le.push("{}");return le}function j(q,U){let{type:z,importKind:se,source:le,specifiers:ge}=q;return z!=="ImportDeclaration"||p(ge)||se==="type"?!1:!/{\s*}/.test(U.originalText.slice(te(q),te(le)))}function y(q,U,z){let se=q.getNode();return p(se.assertions)?[" assert {",U.bracketSpacing?" ":"",d(", ",q.map(z,"assertions")),U.bracketSpacing?" ":"","}"]:""}function L(q,U,z){let se=q.getNode(),{type:le}=se,ge=[],ce=le==="ImportSpecifier"?se.importKind:se.exportKind;ce&&ce!=="value"&&ge.push(ce," ");let Le=le.startsWith("Import"),ie=Le?"imported":"local",We=Le?"local":"exported",he=se[ie],oe=se[We],Ue="",it="";return le==="ExportNamespaceSpecifier"||le==="ImportNamespaceSpecifier"?Ue="*":he&&(Ue=z(ie)),oe&&!M(se)&&(it=z(We)),ge.push(Ue,Ue&&it?" as ":"",it),ge}function M(q){if(q.type!=="ImportSpecifier"&&q.type!=="ExportSpecifier")return!1;let{local:U,[q.type==="ImportSpecifier"?"imported":"exported"]:z}=q;return U.type!==z.type||!$(U,z)?!1:R(U)?U.value===z.value&&X(U)===X(z):U.type==="Identifier"?U.name===z.name:!1}A.exports={printImportDeclaration:re,printExportDeclaration:ee,printExportAllDeclaration:De,printModuleSpecifier:L}}}),Lp=Te({"src/language-js/print/object.js"(m,A){Ve();var{printDanglingComments:p}=Ur(),{builders:{line:v,softline:D,group:f,indent:d,ifBreak:h,hardline:E}}=Tn(),{getLast:C,hasNewlineInRange:B,hasNewline:_,isNonEmptyArray:P}=ye(),{shouldPrintComma:x,hasComment:S,getComments:R,CommentCheckFlags:X,isNextLineEmpty:te}=br(),{locStart:$,locEnd:Q}=as(),{printOptionalToken:G,printTypeAnnotation:re}=Ns(),{shouldHugFunctionParameters:ee}=Il(),{shouldHugType:De}=Ol(),{printHardlineAfterHeritage:N}=eu();function J(F,j,y){let L=j.semi?";":"",M=F.getValue(),q;M.type==="TSTypeLiteral"?q="members":M.type==="TSInterfaceBody"?q="body":q="properties";let U=M.type==="ObjectTypeAnnotation",z=[q];U&&z.push("indexers","callProperties","internalSlots");let se=z.map(be=>M[be][0]).sort((be,Re)=>$(be)-$(Re))[0],le=F.getParentNode(0),ge=U&&le&&(le.type==="InterfaceDeclaration"||le.type==="DeclareInterface"||le.type==="DeclareClass")&&F.getName()==="body",ce=M.type==="TSInterfaceBody"||ge||M.type==="ObjectPattern"&&le.type!=="FunctionDeclaration"&&le.type!=="FunctionExpression"&&le.type!=="ArrowFunctionExpression"&&le.type!=="ObjectMethod"&&le.type!=="ClassMethod"&&le.type!=="ClassPrivateMethod"&&le.type!=="AssignmentPattern"&&le.type!=="CatchClause"&&M.properties.some(be=>be.value&&(be.value.type==="ObjectPattern"||be.value.type==="ArrayPattern"))||M.type!=="ObjectPattern"&&se&&B(j.originalText,$(M),$(se)),Le=ge?";":M.type==="TSInterfaceBody"||M.type==="TSTypeLiteral"?h(L,";"):",",ie=M.type==="RecordExpression"?"#{":M.exact?"{|":"{",We=M.exact?"|}":"}",he=[];for(let be of z)F.each(Re=>{let gt=Re.getValue();he.push({node:gt,printed:y(),loc:$(gt)})},be);z.length>1&&he.sort((be,Re)=>be.loc-Re.loc);let oe=[],Ue=he.map(be=>{let Re=[...oe,f(be.printed)];return oe=[Le,v],(be.node.type==="TSPropertySignature"||be.node.type==="TSMethodSignature"||be.node.type==="TSConstructSignatureDeclaration")&&S(be.node,X.PrettierIgnore)&&oe.shift(),te(be.node,j)&&oe.push(E),Re});if(M.inexact){let be;if(S(M,X.Dangling)){let Re=S(M,X.Line);be=[p(F,j,!0),Re||_(j.originalText,Q(C(R(M))))?E:v,"..."]}else be=["..."];Ue.push([...oe,...be])}let it=C(M[q]),Xe=!(M.inexact||it&&it.type==="RestElement"||it&&(it.type==="TSPropertySignature"||it.type==="TSCallSignatureDeclaration"||it.type==="TSMethodSignature"||it.type==="TSConstructSignatureDeclaration")&&S(it,X.PrettierIgnore)),bt;if(Ue.length===0){if(!S(M,X.Dangling))return[ie,We,re(F,j,y)];bt=f([ie,p(F,j),D,We,G(F),re(F,j,y)])}else bt=[ge&&P(M.properties)?N(le):"",ie,d([j.bracketSpacing?v:D,...Ue]),h(Xe&&(Le!==","||x(j))?Le:""),j.bracketSpacing?v:D,We,G(F),re(F,j,y)];return F.match(be=>be.type==="ObjectPattern"&&!be.decorators,(be,Re,gt)=>ee(be)&&(Re==="params"||Re==="parameters"||Re==="this"||Re==="rest")&&gt===0)||F.match(De,(be,Re)=>Re==="typeAnnotation",(be,Re)=>Re==="typeAnnotation",(be,Re,gt)=>ee(be)&&(Re==="params"||Re==="parameters"||Re==="this"||Re==="rest")&&gt===0)||!ce&&F.match(be=>be.type==="ObjectPattern",be=>be.type==="AssignmentExpression"||be.type==="VariableDeclarator")?bt:f(bt,{shouldBreak:ce})}A.exports={printObject:J}}}),nA=Te({"src/language-js/print/flow.js"(m,A){Ve();var p=Xo(),{printDanglingComments:v}=Ur(),{printString:D,printNumber:f}=ye(),{builders:{hardline:d,softline:h,group:E,indent:C}}=Tn(),{getParentExportDeclaration:B,isFunctionNotation:_,isGetterOrSetter:P,rawText:x,shouldPrintComma:S}=br(),{locStart:R,locEnd:X}=as(),{replaceTextEndOfLine:te}=ia(),{printClass:$}=eu(),{printOpaqueType:Q,printTypeAlias:G,printIntersectionType:re,printUnionType:ee,printFunctionType:De,printTupleType:N,printIndexedAccessType:J}=Ol(),{printInterface:F}=X0(),{printTypeParameter:j,printTypeParameters:y}=Rl(),{printExportDeclaration:L,printExportAllDeclaration:M}=Q0(),{printArrayItems:q}=Qo(),{printObject:U}=Lp(),{printPropertyKey:z}=Zo(),{printOptionalToken:se,printTypeAnnotation:le,printRestSpread:ge}=Ns();function ce(ie,We,he){let oe=ie.getValue(),Ue=We.semi?";":"",it=[];switch(oe.type){case"DeclareClass":return Le(ie,$(ie,We,he));case"DeclareFunction":return Le(ie,["function ",he("id"),oe.predicate?" ":"",he("predicate"),Ue]);case"DeclareModule":return Le(ie,["module ",he("id")," ",he("body")]);case"DeclareModuleExports":return Le(ie,["module.exports",": ",he("typeAnnotation"),Ue]);case"DeclareVariable":return Le(ie,["var ",he("id"),Ue]);case"DeclareOpaqueType":return Le(ie,Q(ie,We,he));case"DeclareInterface":return Le(ie,F(ie,We,he));case"DeclareTypeAlias":return Le(ie,G(ie,We,he));case"DeclareExportDeclaration":return Le(ie,L(ie,We,he));case"DeclareExportAllDeclaration":return Le(ie,M(ie,We,he));case"OpaqueType":return Q(ie,We,he);case"TypeAlias":return G(ie,We,he);case"IntersectionTypeAnnotation":return re(ie,We,he);case"UnionTypeAnnotation":return ee(ie,We,he);case"FunctionTypeAnnotation":return De(ie,We,he);case"TupleTypeAnnotation":return N(ie,We,he);case"GenericTypeAnnotation":return[he("id"),y(ie,We,he,"typeParameters")];case"IndexedAccessType":case"OptionalIndexedAccessType":return J(ie,We,he);case"TypeAnnotation":return he("typeAnnotation");case"TypeParameter":return j(ie,We,he);case"TypeofTypeAnnotation":return["typeof ",he("argument")];case"ExistsTypeAnnotation":return"*";case"EmptyTypeAnnotation":return"empty";case"MixedTypeAnnotation":return"mixed";case"ArrayTypeAnnotation":return[he("elementType"),"[]"];case"BooleanLiteralTypeAnnotation":return String(oe.value);case"EnumDeclaration":return["enum ",he("id")," ",he("body")];case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":{if(oe.type==="EnumSymbolBody"||oe.explicitType){let Xe=null;switch(oe.type){case"EnumBooleanBody":Xe="boolean";break;case"EnumNumberBody":Xe="number";break;case"EnumStringBody":Xe="string";break;case"EnumSymbolBody":Xe="symbol";break}it.push("of ",Xe," ")}if(oe.members.length===0&&!oe.hasUnknownMembers)it.push(E(["{",v(ie,We),h,"}"]));else{let Xe=oe.members.length>0?[d,q(ie,We,"members",he),oe.hasUnknownMembers||S(We)?",":""]:[];it.push(E(["{",C([...Xe,...oe.hasUnknownMembers?[d,"..."]:[]]),v(ie,We,!0),d,"}"]))}return it}case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":return[he("id")," = ",typeof oe.init=="object"?he("init"):String(oe.init)];case"EnumDefaultedMember":return he("id");case"FunctionTypeParam":{let Xe=oe.name?he("name"):ie.getParentNode().this===oe?"this":"";return[Xe,se(ie),Xe?": ":"",he("typeAnnotation")]}case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return F(ie,We,he);case"ClassImplements":case"InterfaceExtends":return[he("id"),he("typeParameters")];case"NullableTypeAnnotation":return["?",he("typeAnnotation")];case"Variance":{let{kind:Xe}=oe;return p.ok(Xe==="plus"||Xe==="minus"),Xe==="plus"?"+":"-"}case"ObjectTypeCallProperty":return oe.static&&it.push("static "),it.push(he("value")),it;case"ObjectTypeIndexer":return[oe.static?"static ":"",oe.variance?he("variance"):"","[",he("id"),oe.id?": ":"",he("key"),"]: ",he("value")];case"ObjectTypeProperty":{let Xe="";return oe.proto?Xe="proto ":oe.static&&(Xe="static "),[Xe,P(oe)?oe.kind+" ":"",oe.variance?he("variance"):"",z(ie,We,he),se(ie),_(oe)?"":": ",he("value")]}case"ObjectTypeAnnotation":return U(ie,We,he);case"ObjectTypeInternalSlot":return[oe.static?"static ":"","[[",he("id"),"]]",se(ie),oe.method?"":": ",he("value")];case"ObjectTypeSpreadProperty":return ge(ie,We,he);case"QualifiedTypeofIdentifier":case"QualifiedTypeIdentifier":return[he("qualification"),".",he("id")];case"StringLiteralTypeAnnotation":return te(D(x(oe),We));case"NumberLiteralTypeAnnotation":p.strictEqual(typeof oe.value,"number");case"BigIntLiteralTypeAnnotation":return oe.extra?f(oe.extra.raw):f(oe.raw);case"TypeCastExpression":return["(",he("expression"),le(ie,We,he),")"];case"TypeParameterDeclaration":case"TypeParameterInstantiation":{let Xe=y(ie,We,he,"params");if(We.parser==="flow"){let bt=R(oe),be=X(oe),Re=We.originalText.lastIndexOf("/*",bt),gt=We.originalText.indexOf("*/",be);if(Re!==-1&&gt!==-1){let yt=We.originalText.slice(Re+2,gt).trim();if(yt.startsWith("::")&&!yt.includes("/*")&&!yt.includes("*/"))return["/*:: ",Xe," */"]}}return Xe}case"InferredPredicate":return"%checks";case"DeclaredPredicate":return["%checks(",he("value"),")"];case"AnyTypeAnnotation":return"any";case"BooleanTypeAnnotation":return"boolean";case"BigIntTypeAnnotation":return"bigint";case"NullLiteralTypeAnnotation":return"null";case"NumberTypeAnnotation":return"number";case"SymbolTypeAnnotation":return"symbol";case"StringTypeAnnotation":return"string";case"VoidTypeAnnotation":return"void";case"ThisTypeAnnotation":return"this";case"Node":case"Printable":case"SourceLocation":case"Position":case"Statement":case"Function":case"Pattern":case"Expression":case"Declaration":case"Specifier":case"NamedSpecifier":case"Comment":case"MemberTypeAnnotation":case"Type":throw new Error("unprintable type: "+JSON.stringify(oe.type))}}function Le(ie,We){let he=B(ie);return he?(p.strictEqual(he.type,"DeclareExportDeclaration"),We):["declare ",We]}A.exports={printFlow:ce}}}),rA=Te({"src/language-js/utils/is-ts-keyword-type.js"(m,A){Ve();function p(v){let{type:D}=v;return D.startsWith("TS")&&D.endsWith("Keyword")}A.exports=p}}),K0=Te({"src/language-js/print/ternary.js"(m,A){Ve();var{hasNewlineInRange:p}=ye(),{isJsxNode:v,getComments:D,isCallExpression:f,isMemberExpression:d,isTSTypeExpression:h}=br(),{locStart:E,locEnd:C}=as(),B=ua(),{builders:{line:_,softline:P,group:x,indent:S,align:R,ifBreak:X,dedent:te,breakParent:$}}=Tn();function Q(N){let J=[N];for(let F=0;F<J.length;F++){let j=J[F];for(let y of["test","consequent","alternate"]){let L=j[y];if(v(L))return!0;L.type==="ConditionalExpression"&&J.push(L)}}return!1}function G(N,J,F){let j=N.getValue(),y=j.type==="ConditionalExpression",L=y?"alternate":"falseType",M=N.getParentNode(),q=y?F("test"):[F("checkType")," ","extends"," ",F("extendsType")];return M.type===j.type&&M[L]===j?R(2,q):q}var re=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"]]);function ee(N){let J=N.getValue();if(J.type!=="ConditionalExpression")return!1;let F,j=J;for(let y=0;!F;y++){let L=N.getParentNode(y);if(f(L)&&L.callee===j||d(L)&&L.object===j||L.type==="TSNonNullExpression"&&L.expression===j){j=L;continue}L.type==="NewExpression"&&L.callee===j||h(L)&&L.expression===j?(F=N.getParentNode(y+1),j=L):F=L}return j===J?!1:F[re.get(F.type)]===j}function De(N,J,F){let j=N.getValue(),y=j.type==="ConditionalExpression",L=y?"consequent":"trueType",M=y?"alternate":"falseType",q=y?["test"]:["checkType","extendsType"],U=j[L],z=j[M],se=[],le=!1,ge=N.getParentNode(),ce=ge.type===j.type&&q.some(gt=>ge[gt]===j),Le=ge.type===j.type&&!ce,ie,We,he=0;do We=ie||j,ie=N.getParentNode(he),he++;while(ie&&ie.type===j.type&&q.every(gt=>ie[gt]!==We));let oe=ie||ge,Ue=We;if(y&&(v(j[q[0]])||v(U)||v(z)||Q(Ue))){le=!0,Le=!0;let gt=zt=>[X("("),S([P,zt]),P,X(")")],yt=zt=>zt.type==="NullLiteral"||zt.type==="Literal"&&zt.value===null||zt.type==="Identifier"&&zt.name==="undefined";se.push(" ? ",yt(U)?F(L):gt(F(L))," : ",z.type===j.type||yt(z)?F(M):gt(F(M)))}else{let gt=[_,"? ",U.type===j.type?X("","("):"",R(2,F(L)),U.type===j.type?X("",")"):"",_,": ",z.type===j.type?F(M):R(2,F(M))];se.push(ge.type!==j.type||ge[M]===j||ce?gt:J.useTabs?te(S(gt)):R(Math.max(0,J.tabWidth-2),gt))}let it=[...q.map(gt=>D(j[gt])),D(U),D(z)].flat().some(gt=>B(gt)&&p(J.originalText,E(gt),C(gt))),Xe=gt=>ge===oe?x(gt,{shouldBreak:it}):it?[gt,$]:gt,bt=!le&&(d(ge)||ge.type==="NGPipeExpression"&&ge.left===j)&&!ge.computed,be=ee(N),Re=Xe([G(N,J,F),Le?se:S(se),y&&bt&&!be?P:""]);return ce||be?x([S([P,Re]),P]):Re}A.exports={printTernary:De}}}),Z0=Te({"src/language-js/print/statement.js"(m,A){Ve();var{builders:{hardline:p}}=Tn(),v=lo(),{getLeftSidePathName:D,hasNakedLeftSide:f,isJsxNode:d,isTheOnlyJsxElementInMarkdown:h,hasComment:E,CommentCheckFlags:C,isNextLineEmpty:B}=br(),{shouldPrintParamsWithoutParens:_}=jl();function P(G,re,ee,De){let N=G.getValue(),J=[],F=N.type==="ClassBody",j=x(N[De]);return G.each((y,L,M)=>{let q=y.getValue();if(q.type==="EmptyStatement")return;let U=ee();!re.semi&&!F&&!h(re,y)&&S(y,re)?E(q,C.Leading)?J.push(ee([],{needsSemi:!0})):J.push(";",U):J.push(U),!re.semi&&F&&$(q)&&Q(q,M[L+1])&&J.push(";"),q!==j&&(J.push(p),B(q,re)&&J.push(p))},De),J}function x(G){for(let re=G.length-1;re>=0;re--){let ee=G[re];if(ee.type!=="EmptyStatement")return ee}}function S(G,re){return G.getNode().type!=="ExpressionStatement"?!1:G.call(ee=>R(ee,re),"expression")}function R(G,re){let ee=G.getValue();switch(ee.type){case"ParenthesizedExpression":case"TypeCastExpression":case"ArrayExpression":case"ArrayPattern":case"TemplateLiteral":case"TemplateElement":case"RegExpLiteral":return!0;case"ArrowFunctionExpression":{if(!_(G,re))return!0;break}case"UnaryExpression":{let{prefix:De,operator:N}=ee;if(De&&(N==="+"||N==="-"))return!0;break}case"BindExpression":{if(!ee.object)return!0;break}case"Literal":{if(ee.regex)return!0;break}default:if(d(ee))return!0}return v(G,re)?!0:f(ee)?G.call(De=>R(De,re),...D(G,ee)):!1}function X(G,re,ee){return P(G,re,ee,"body")}function te(G,re,ee){return P(G,re,ee,"consequent")}var $=G=>{let{type:re}=G;return re==="ClassProperty"||re==="PropertyDefinition"||re==="ClassPrivateProperty"||re==="ClassAccessorProperty"||re==="AccessorProperty"||re==="TSAbstractPropertyDefinition"||re==="TSAbstractAccessorProperty"};function Q(G,re){let{type:ee,name:De}=G.key;if(!G.computed&&ee==="Identifier"&&(De==="static"||De==="get"||De==="set"||De==="accessor")&&!G.value&&!G.typeAnnotation)return!0;if(!re||re.static||re.accessibility)return!1;if(!re.computed){let N=re.key&&re.key.name;if(N==="in"||N==="instanceof")return!0}if($(re)&&re.variance&&!re.static&&!re.declare)return!0;switch(re.type){case"ClassProperty":case"PropertyDefinition":case"TSAbstractPropertyDefinition":return re.computed;case"MethodDefinition":case"TSAbstractMethodDefinition":case"ClassMethod":case"ClassPrivateMethod":{if((re.value?re.value.async:re.async)||re.kind==="get"||re.kind==="set")return!1;let N=re.value?re.value.generator:re.generator;return!!(re.computed||N)}case"TSIndexSignature":return!0}return!1}A.exports={printBody:X,printSwitchCaseConsequent:te}}}),e1=Te({"src/language-js/print/block.js"(m,A){Ve();var{printDanglingComments:p}=Ur(),{isNonEmptyArray:v}=ye(),{builders:{hardline:D,indent:f}}=Tn(),{hasComment:d,CommentCheckFlags:h,isNextLineEmpty:E}=br(),{printHardlineAfterHeritage:C}=eu(),{printBody:B}=Z0();function _(x,S,R){let X=x.getValue(),te=[];if(X.type==="StaticBlock"&&te.push("static "),X.type==="ClassBody"&&v(X.body)){let Q=x.getParentNode();te.push(C(Q))}te.push("{");let $=P(x,S,R);if($)te.push(f([D,$]),D);else{let Q=x.getParentNode(),G=x.getParentNode(1);Q.type==="ArrowFunctionExpression"||Q.type==="FunctionExpression"||Q.type==="FunctionDeclaration"||Q.type==="ObjectMethod"||Q.type==="ClassMethod"||Q.type==="ClassPrivateMethod"||Q.type==="ForStatement"||Q.type==="WhileStatement"||Q.type==="DoWhileStatement"||Q.type==="DoExpression"||Q.type==="CatchClause"&&!G.finalizer||Q.type==="TSModuleDeclaration"||Q.type==="TSDeclareFunction"||X.type==="StaticBlock"||X.type==="ClassBody"||te.push(D)}return te.push("}"),te}function P(x,S,R){let X=x.getValue(),te=v(X.directives),$=X.body.some(re=>re.type!=="EmptyStatement"),Q=d(X,h.Dangling);if(!te&&!$&&!Q)return"";let G=[];if(te&&x.each((re,ee,De)=>{G.push(R()),(ee<De.length-1||$||Q)&&(G.push(D),E(re.getValue(),S)&&G.push(D))},"directives"),$&&G.push(B(x,S,R)),Q&&G.push(p(x,S,!0)),X.type==="Program"){let re=x.getParentNode();(!re||re.type!=="ModuleExpression")&&G.push(D)}return G}A.exports={printBlock:_,printBlockBody:P}}}),sA=Te({"src/language-js/print/typescript.js"(m,A){Ve();var{printDanglingComments:p}=Ur(),{hasNewlineInRange:v}=ye(),{builders:{join:D,line:f,hardline:d,softline:h,group:E,indent:C,conditionalGroup:B,ifBreak:_}}=Tn(),{isStringLiteral:P,getTypeScriptMappedTypeModifier:x,shouldPrintComma:S,isCallExpression:R,isMemberExpression:X}=br(),te=rA(),{locStart:$,locEnd:Q}=as(),{printOptionalToken:G,printTypeScriptModifiers:re}=Ns(),{printTernary:ee}=K0(),{printFunctionParameters:De,shouldGroupFunctionParameters:N}=Il(),{printTemplateLiteral:J}=uo(),{printArrayItems:F}=Qo(),{printObject:j}=Lp(),{printClassProperty:y,printClassMethod:L}=eu(),{printTypeParameter:M,printTypeParameters:q}=Rl(),{printPropertyKey:U}=Zo(),{printFunction:z,printMethodInternal:se}=jl(),{printInterface:le}=X0(),{printBlock:ge}=e1(),{printTypeAlias:ce,printIntersectionType:Le,printUnionType:ie,printFunctionType:We,printTupleType:he,printIndexedAccessType:oe,printJSDocType:Ue}=Ol();function it(Xe,bt,be){let Re=Xe.getValue();if(!Re.type.startsWith("TS"))return;if(te(Re))return Re.type.slice(2,-7).toLowerCase();let gt=bt.semi?";":"",yt=[];switch(Re.type){case"TSThisType":return"this";case"TSTypeAssertion":{let zt=!(Re.expression.type==="ArrayExpression"||Re.expression.type==="ObjectExpression"),qe=E(["<",C([h,be("typeAnnotation")]),h,">"]),Ce=[_("("),C([h,be("expression")]),h,_(")")];return zt?B([[qe,be("expression")],[qe,E(Ce,{shouldBreak:!0})],[qe,be("expression")]]):E([qe,be("expression")])}case"TSDeclareFunction":return z(Xe,be,bt);case"TSExportAssignment":return["export = ",be("expression"),gt];case"TSModuleBlock":return ge(Xe,bt,be);case"TSInterfaceBody":case"TSTypeLiteral":return j(Xe,bt,be);case"TSTypeAliasDeclaration":return ce(Xe,bt,be);case"TSQualifiedName":return D(".",[be("left"),be("right")]);case"TSAbstractMethodDefinition":case"TSDeclareMethod":return L(Xe,bt,be);case"TSAbstractAccessorProperty":case"TSAbstractPropertyDefinition":return y(Xe,bt,be);case"TSInterfaceHeritage":case"TSExpressionWithTypeArguments":return yt.push(be("expression")),Re.typeParameters&&yt.push(be("typeParameters")),yt;case"TSTemplateLiteralType":return J(Xe,be,bt);case"TSNamedTupleMember":return[be("label"),Re.optional?"?":"",": ",be("elementType")];case"TSRestType":return["...",be("typeAnnotation")];case"TSOptionalType":return[be("typeAnnotation"),"?"];case"TSInterfaceDeclaration":return le(Xe,bt,be);case"TSClassImplements":return[be("expression"),be("typeParameters")];case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return q(Xe,bt,be,"params");case"TSTypeParameter":return M(Xe,bt,be);case"TSSatisfiesExpression":case"TSAsExpression":{let zt=Re.type==="TSAsExpression"?"as":"satisfies";yt.push(be("expression"),` ${zt} `,be("typeAnnotation"));let qe=Xe.getParentNode();return R(qe)&&qe.callee===Re||X(qe)&&qe.object===Re?E([C([h,...yt]),h]):yt}case"TSArrayType":return[be("elementType"),"[]"];case"TSPropertySignature":return Re.readonly&&yt.push("readonly "),yt.push(U(Xe,bt,be),G(Xe)),Re.typeAnnotation&&yt.push(": ",be("typeAnnotation")),Re.initializer&&yt.push(" = ",be("initializer")),yt;case"TSParameterProperty":return Re.accessibility&&yt.push(Re.accessibility+" "),Re.export&&yt.push("export "),Re.static&&yt.push("static "),Re.override&&yt.push("override "),Re.readonly&&yt.push("readonly "),yt.push(be("parameter")),yt;case"TSTypeQuery":return["typeof ",be("exprName"),be("typeParameters")];case"TSIndexSignature":{let zt=Xe.getParentNode(),qe=Re.parameters.length>1?_(S(bt)?",":""):"",Ce=E([C([h,D([", ",h],Xe.map(be,"parameters"))]),qe,h]);return[Re.export?"export ":"",Re.accessibility?[Re.accessibility," "]:"",Re.static?"static ":"",Re.readonly?"readonly ":"",Re.declare?"declare ":"","[",Re.parameters?Ce:"",Re.typeAnnotation?"]: ":"]",Re.typeAnnotation?be("typeAnnotation"):"",zt.type==="ClassBody"?gt:""]}case"TSTypePredicate":return[Re.asserts?"asserts ":"",be("parameterName"),Re.typeAnnotation?[" is ",be("typeAnnotation")]:""];case"TSNonNullExpression":return[be("expression"),"!"];case"TSImportType":return[Re.isTypeOf?"typeof ":"","import(",be(Re.parameter?"parameter":"argument"),")",Re.qualifier?[".",be("qualifier")]:"",q(Xe,bt,be,"typeParameters")];case"TSLiteralType":return be("literal");case"TSIndexedAccessType":return oe(Xe,bt,be);case"TSConstructSignatureDeclaration":case"TSCallSignatureDeclaration":case"TSConstructorType":{if(Re.type==="TSConstructorType"&&Re.abstract&&yt.push("abstract "),Re.type!=="TSCallSignatureDeclaration"&&yt.push("new "),yt.push(E(De(Xe,be,bt,!1,!0))),Re.returnType||Re.typeAnnotation){let zt=Re.type==="TSConstructorType";yt.push(zt?" => ":": ",be("returnType"),be("typeAnnotation"))}return yt}case"TSTypeOperator":return[Re.operator," ",be("typeAnnotation")];case"TSMappedType":{let zt=v(bt.originalText,$(Re),Q(Re));return E(["{",C([bt.bracketSpacing?f:h,be("typeParameter"),Re.optional?x(Re.optional,"?"):"",Re.typeAnnotation?": ":"",be("typeAnnotation"),_(gt)]),p(Xe,bt,!0),bt.bracketSpacing?f:h,"}"],{shouldBreak:zt})}case"TSMethodSignature":{let zt=Re.kind&&Re.kind!=="method"?`${Re.kind} `:"";yt.push(Re.accessibility?[Re.accessibility," "]:"",zt,Re.export?"export ":"",Re.static?"static ":"",Re.readonly?"readonly ":"",Re.abstract?"abstract ":"",Re.declare?"declare ":"",Re.computed?"[":"",be("key"),Re.computed?"]":"",G(Xe));let qe=De(Xe,be,bt,!1,!0),Ce=Re.returnType?"returnType":"typeAnnotation",Qe=Re[Ce],et=Qe?be(Ce):"",Ct=N(Re,et);return yt.push(Ct?E(qe):qe),Qe&&yt.push(": ",E(et)),E(yt)}case"TSNamespaceExportDeclaration":return yt.push("export as namespace ",be("id")),bt.semi&&yt.push(";"),E(yt);case"TSEnumDeclaration":return Re.declare&&yt.push("declare "),Re.modifiers&&yt.push(re(Xe,bt,be)),Re.const&&yt.push("const "),yt.push("enum ",be("id")," "),Re.members.length===0?yt.push(E(["{",p(Xe,bt),h,"}"])):yt.push(E(["{",C([d,F(Xe,bt,"members",be),S(bt,"es5")?",":""]),p(Xe,bt,!0),d,"}"])),yt;case"TSEnumMember":return Re.computed?yt.push("[",be("id"),"]"):yt.push(be("id")),Re.initializer&&yt.push(" = ",be("initializer")),yt;case"TSImportEqualsDeclaration":return Re.isExport&&yt.push("export "),yt.push("import "),Re.importKind&&Re.importKind!=="value"&&yt.push(Re.importKind," "),yt.push(be("id")," = ",be("moduleReference")),bt.semi&&yt.push(";"),E(yt);case"TSExternalModuleReference":return["require(",be("expression"),")"];case"TSModuleDeclaration":{let zt=Xe.getParentNode(),qe=P(Re.id),Ce=zt.type==="TSModuleDeclaration",Qe=Re.body&&Re.body.type==="TSModuleDeclaration";if(Ce)yt.push(".");else{Re.declare&&yt.push("declare "),yt.push(re(Xe,bt,be));let et=bt.originalText.slice($(Re),$(Re.id));Re.id.type==="Identifier"&&Re.id.name==="global"&&!/namespace|module/.test(et)||yt.push(qe||/(?:^|\s)module(?:\s|$)/.test(et)?"module ":"namespace ")}return yt.push(be("id")),Qe?yt.push(be("body")):Re.body?yt.push(" ",E(be("body"))):yt.push(gt),yt}case"TSConditionalType":return ee(Xe,bt,be);case"TSInferType":return["infer"," ",be("typeParameter")];case"TSIntersectionType":return Le(Xe,bt,be);case"TSUnionType":return ie(Xe,bt,be);case"TSFunctionType":return We(Xe,bt,be);case"TSTupleType":return he(Xe,bt,be);case"TSTypeReference":return[be("typeName"),q(Xe,bt,be,"typeParameters")];case"TSTypeAnnotation":return be("typeAnnotation");case"TSEmptyBodyFunctionExpression":return se(Xe,bt,be);case"TSJSDocAllType":return"*";case"TSJSDocUnknownType":return"?";case"TSJSDocNullableType":return Ue(Xe,be,"?");case"TSJSDocNonNullableType":return Ue(Xe,be,"!");case"TSInstantiationExpression":return[be("expression"),be("typeParameters")];default:throw new Error(`Unknown TypeScript node type: ${JSON.stringify(Re.type)}.`)}}A.exports={printTypescript:it}}}),iA=Te({"src/language-js/print/comment.js"(m,A){Ve();var{hasNewline:p}=ye(),{builders:{join:v,hardline:D},utils:{replaceTextEndOfLine:f}}=Tn(),{isLineComment:d}=br(),{locStart:h,locEnd:E}=as(),C=ua();function B(x,S){let R=x.getValue();if(d(R))return S.originalText.slice(h(R),E(R)).trimEnd();if(C(R)){if(_(R)){let $=P(R);return R.trailing&&!p(S.originalText,h(R),{backwards:!0})?[D,$]:$}let X=E(R),te=S.originalText.slice(X-3,X)==="*-/";return["/*",f(R.value),te?"*-/":"*/"]}throw new Error("Not a comment: "+JSON.stringify(R))}function _(x){let S=`*${x.value}*`.split(`
230
+ `);return S.length>1&&S.every(R=>R.trim()[0]==="*")}function P(x){let S=x.value.split(`
231
+ `);return["/*",v(D,S.map((R,X)=>X===0?R.trimEnd():" "+(X<S.length-1?R.trim():R.trimStart()))),"*/"]}A.exports={printComment:B}}}),aA=Te({"src/language-js/print/literal.js"(m,A){Ve();var{printString:p,printNumber:v}=ye(),{replaceTextEndOfLine:D}=ia(),{printDirective:f}=Ns();function d(B,_){let P=B.getNode();switch(P.type){case"RegExpLiteral":return C(P);case"BigIntLiteral":return E(P.bigint||P.extra.raw);case"NumericLiteral":return v(P.extra.raw);case"StringLiteral":return D(p(P.extra.raw,_));case"NullLiteral":return"null";case"BooleanLiteral":return String(P.value);case"DecimalLiteral":return v(P.value)+"m";case"Literal":{if(P.regex)return C(P.regex);if(P.bigint)return E(P.raw);if(P.decimal)return v(P.decimal)+"m";let{value:x}=P;return typeof x=="number"?v(P.raw):typeof x=="string"?h(B)?f(P.raw,_):D(p(P.raw,_)):String(x)}}}function h(B){if(B.getName()!=="expression")return;let _=B.getParentNode();return _.type==="ExpressionStatement"&&_.directive}function E(B){return B.toLowerCase()}function C(B){let{pattern:_,flags:P}=B;return P=[...P].sort().join(""),`/${_}/${P}`}A.exports={printLiteral:d}}}),oA=Te({"src/language-js/printer-estree.js"(m,A){Ve();var{printDanglingComments:p}=Ur(),{hasNewline:v}=ye(),{builders:{join:D,line:f,hardline:d,softline:h,group:E,indent:C},utils:{replaceTextEndOfLine:B}}=Tn(),_=qE(),P=UE(),{insertPragma:x}=W0(),S=G0(),R=lo(),X=J0(),{hasFlowShorthandAnnotationComment:te,hasComment:$,CommentCheckFlags:Q,isTheOnlyJsxElementInMarkdown:G,isLineComment:re,isNextLineEmpty:ee,needsHardlineAfterDanglingComment:De,hasIgnoreComment:N,isCallExpression:J,isMemberExpression:F,markerForIfWithoutBlockAndSameLineComment:j}=br(),{locStart:y,locEnd:L}=as(),M=ua(),{printHtmlBinding:q,isVueEventBindingExpression:U}=KE(),{printAngular:z}=ZE(),{printJsx:se,hasJsxIgnoreComment:le}=eA(),{printFlow:ge}=nA(),{printTypescript:ce}=sA(),{printOptionalToken:Le,printBindExpressionCallee:ie,printTypeAnnotation:We,adjustClause:he,printRestSpread:oe,printDefiniteToken:Ue,printDirective:it}=Ns(),{printImportDeclaration:Xe,printExportDeclaration:bt,printExportAllDeclaration:be,printModuleSpecifier:Re}=Q0(),{printTernary:gt}=K0(),{printTemplateLiteral:yt}=uo(),{printArray:zt}=Qo(),{printObject:qe}=Lp(),{printClass:Ce,printClassMethod:Qe,printClassProperty:et}=eu(),{printProperty:Ct}=Zo(),{printFunction:Bt,printArrowFunction:Rt,printMethod:hn,printReturnStatement:Rn,printThrowStatement:Bn}=jl(),{printCallExpression:dn}=z0(),{printVariableDeclarator:En,printAssignmentExpression:pt}=Ko(),{printBinaryishExpression:Ae}=Tp(),{printSwitchCaseConsequent:Dt}=Z0(),{printMemberExpression:je}=H0(),{printBlock:mt,printBlockBody:nn}=e1(),{printComment:Jt}=iA(),{printLiteral:Et}=aA(),{printDecorators:V}=_p();function ke(Wt,pn,jt,Nr){let un=ot(Wt,pn,jt,Nr);if(!un)return"";let xr=Wt.getValue(),{type:an}=xr;if(an==="ClassMethod"||an==="ClassPrivateMethod"||an==="ClassProperty"||an==="ClassAccessorProperty"||an==="AccessorProperty"||an==="TSAbstractAccessorProperty"||an==="PropertyDefinition"||an==="TSAbstractPropertyDefinition"||an==="ClassPrivateProperty"||an==="MethodDefinition"||an==="TSAbstractMethodDefinition"||an==="TSDeclareMethod")return un;let Cn=[un],In=V(Wt,pn,jt),cr=xr.type==="ClassExpression"&&In;if(In&&(Cn=[...In,un],!cr))return E(Cn);if(!R(Wt,pn))return Nr&&Nr.needsSemi&&Cn.unshift(";"),Cn.length===1&&Cn[0]===un?un:Cn;if(cr&&(Cn=[C([f,...Cn])]),Cn.unshift("("),Nr&&Nr.needsSemi&&Cn.unshift(";"),te(xr)){let[cn]=xr.trailingComments;Cn.push(" /*",cn.value.trimStart(),"*/"),cn.printed=!0}return cr&&Cn.push(f),Cn.push(")"),Cn}function ot(Wt,pn,jt,Nr){let un=Wt.getValue(),xr=pn.semi?";":"";if(!un)return"";if(typeof un=="string")return un;for(let Cn of[Et,q,z,se,ge,ce]){let In=Cn(Wt,pn,jt);if(typeof In<"u")return In}let an=[];switch(un.type){case"JsExpressionRoot":return jt("node");case"JsonRoot":return[jt("node"),d];case"File":return un.program&&un.program.interpreter&&an.push(jt(["program","interpreter"])),an.push(jt("program")),an;case"Program":return nn(Wt,pn,jt);case"EmptyStatement":return"";case"ExpressionStatement":{if(pn.parser==="__vue_event_binding"||pn.parser==="__vue_ts_event_binding"){let In=Wt.getParentNode();if(In.type==="Program"&&In.body.length===1&&In.body[0]===un)return[jt("expression"),U(un.expression)?";":""]}let Cn=p(Wt,pn,!0,In=>{let{marker:cr}=In;return cr===j});return[jt("expression"),G(pn,Wt)?"":xr,Cn?[" ",Cn]:""]}case"ParenthesizedExpression":return!$(un.expression)&&(un.expression.type==="ObjectExpression"||un.expression.type==="ArrayExpression")?["(",jt("expression"),")"]:E(["(",C([h,jt("expression")]),h,")"]);case"AssignmentExpression":return pt(Wt,pn,jt);case"VariableDeclarator":return En(Wt,pn,jt);case"BinaryExpression":case"LogicalExpression":return Ae(Wt,pn,jt);case"AssignmentPattern":return[jt("left")," = ",jt("right")];case"OptionalMemberExpression":case"MemberExpression":return je(Wt,pn,jt);case"MetaProperty":return[jt("meta"),".",jt("property")];case"BindExpression":return un.object&&an.push(jt("object")),an.push(E(C([h,ie(Wt,pn,jt)]))),an;case"Identifier":return[un.name,Le(Wt),Ue(Wt),We(Wt,pn,jt)];case"V8IntrinsicIdentifier":return["%",un.name];case"SpreadElement":case"SpreadElementPattern":case"SpreadProperty":case"SpreadPropertyPattern":case"RestElement":return oe(Wt,pn,jt);case"FunctionDeclaration":case"FunctionExpression":return Bt(Wt,jt,pn,Nr);case"ArrowFunctionExpression":return Rt(Wt,pn,jt,Nr);case"YieldExpression":return an.push("yield"),un.delegate&&an.push("*"),un.argument&&an.push(" ",jt("argument")),an;case"AwaitExpression":{if(an.push("await"),un.argument){an.push(" ",jt("argument"));let Cn=Wt.getParentNode();if(J(Cn)&&Cn.callee===un||F(Cn)&&Cn.object===un){an=[C([h,...an]),h];let In=Wt.findAncestor(cr=>cr.type==="AwaitExpression"||cr.type==="BlockStatement");if(!In||In.type!=="AwaitExpression")return E(an)}}return an}case"ExportDefaultDeclaration":case"ExportNamedDeclaration":return bt(Wt,pn,jt);case"ExportAllDeclaration":return be(Wt,pn,jt);case"ImportDeclaration":return Xe(Wt,pn,jt);case"ImportSpecifier":case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ExportNamespaceSpecifier":case"ImportDefaultSpecifier":case"ExportDefaultSpecifier":return Re(Wt,pn,jt);case"ImportAttribute":return[jt("key"),": ",jt("value")];case"Import":return"import";case"BlockStatement":case"StaticBlock":case"ClassBody":return mt(Wt,pn,jt);case"ThrowStatement":return Bn(Wt,pn,jt);case"ReturnStatement":return Rn(Wt,pn,jt);case"NewExpression":case"ImportExpression":case"OptionalCallExpression":case"CallExpression":return dn(Wt,pn,jt);case"ObjectExpression":case"ObjectPattern":case"RecordExpression":return qe(Wt,pn,jt);case"ObjectProperty":case"Property":return un.method||un.kind==="get"||un.kind==="set"?hn(Wt,pn,jt):Ct(Wt,pn,jt);case"ObjectMethod":return hn(Wt,pn,jt);case"Decorator":return["@",jt("expression")];case"ArrayExpression":case"ArrayPattern":case"TupleExpression":return zt(Wt,pn,jt);case"SequenceExpression":{let Cn=Wt.getParentNode(0);if(Cn.type==="ExpressionStatement"||Cn.type==="ForStatement"){let In=[];return Wt.each((cr,cn)=>{cn===0?In.push(jt()):In.push(",",C([f,jt()]))},"expressions"),E(In)}return E(D([",",f],Wt.map(jt,"expressions")))}case"ThisExpression":return"this";case"Super":return"super";case"Directive":return[jt("value"),xr];case"DirectiveLiteral":return it(un.extra.raw,pn);case"UnaryExpression":return an.push(un.operator),/[a-z]$/.test(un.operator)&&an.push(" "),$(un.argument)?an.push(E(["(",C([h,jt("argument")]),h,")"])):an.push(jt("argument")),an;case"UpdateExpression":return an.push(jt("argument"),un.operator),un.prefix&&an.reverse(),an;case"ConditionalExpression":return gt(Wt,pn,jt);case"VariableDeclaration":{let Cn=Wt.map(jt,"declarations"),In=Wt.getParentNode(),cr=In.type==="ForStatement"||In.type==="ForInStatement"||In.type==="ForOfStatement",cn=un.declarations.some(Fn=>Fn.init),kn;return Cn.length===1&&!$(un.declarations[0])?kn=Cn[0]:Cn.length>0&&(kn=C(Cn[0])),an=[un.declare?"declare ":"",un.kind,kn?[" ",kn]:"",C(Cn.slice(1).map(Fn=>[",",cn&&!cr?d:f,Fn]))],cr&&In.body!==un||an.push(xr),E(an)}case"WithStatement":return E(["with (",jt("object"),")",he(un.body,jt("body"))]);case"IfStatement":{let Cn=he(un.consequent,jt("consequent")),In=E(["if (",E([C([h,jt("test")]),h]),")",Cn]);if(an.push(In),un.alternate){let cr=$(un.consequent,Q.Trailing|Q.Line)||De(un),cn=un.consequent.type==="BlockStatement"&&!cr;an.push(cn?" ":d),$(un,Q.Dangling)&&an.push(p(Wt,pn,!0),cr?d:" "),an.push("else",E(he(un.alternate,jt("alternate"),un.alternate.type==="IfStatement")))}return an}case"ForStatement":{let Cn=he(un.body,jt("body")),In=p(Wt,pn,!0),cr=In?[In,h]:"";return!un.init&&!un.test&&!un.update?[cr,E(["for (;;)",Cn])]:[cr,E(["for (",E([C([h,jt("init"),";",f,jt("test"),";",f,jt("update")]),h]),")",Cn])]}case"WhileStatement":return E(["while (",E([C([h,jt("test")]),h]),")",he(un.body,jt("body"))]);case"ForInStatement":return E(["for (",jt("left")," in ",jt("right"),")",he(un.body,jt("body"))]);case"ForOfStatement":return E(["for",un.await?" await":""," (",jt("left")," of ",jt("right"),")",he(un.body,jt("body"))]);case"DoWhileStatement":{let Cn=he(un.body,jt("body"));return an=[E(["do",Cn])],un.body.type==="BlockStatement"?an.push(" "):an.push(d),an.push("while (",E([C([h,jt("test")]),h]),")",xr),an}case"DoExpression":return[un.async?"async ":"","do ",jt("body")];case"BreakStatement":return an.push("break"),un.label&&an.push(" ",jt("label")),an.push(xr),an;case"ContinueStatement":return an.push("continue"),un.label&&an.push(" ",jt("label")),an.push(xr),an;case"LabeledStatement":return un.body.type==="EmptyStatement"?[jt("label"),":;"]:[jt("label"),": ",jt("body")];case"TryStatement":return["try ",jt("block"),un.handler?[" ",jt("handler")]:"",un.finalizer?[" finally ",jt("finalizer")]:""];case"CatchClause":if(un.param){let Cn=$(un.param,cr=>!M(cr)||cr.leading&&v(pn.originalText,L(cr))||cr.trailing&&v(pn.originalText,y(cr),{backwards:!0})),In=jt("param");return["catch ",Cn?["(",C([h,In]),h,") "]:["(",In,") "],jt("body")]}return["catch ",jt("body")];case"SwitchStatement":return[E(["switch (",C([h,jt("discriminant")]),h,")"])," {",un.cases.length>0?C([d,D(d,Wt.map((Cn,In,cr)=>{let cn=Cn.getValue();return[jt(),In!==cr.length-1&&ee(cn,pn)?d:""]},"cases"))]):"",d,"}"];case"SwitchCase":{un.test?an.push("case ",jt("test"),":"):an.push("default:"),$(un,Q.Dangling)&&an.push(" ",p(Wt,pn,!0));let Cn=un.consequent.filter(In=>In.type!=="EmptyStatement");if(Cn.length>0){let In=Dt(Wt,pn,jt);an.push(Cn.length===1&&Cn[0].type==="BlockStatement"?[" ",In]:C([d,In]))}return an}case"DebuggerStatement":return["debugger",xr];case"ClassDeclaration":case"ClassExpression":return Ce(Wt,pn,jt);case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":return Qe(Wt,pn,jt);case"ClassProperty":case"PropertyDefinition":case"ClassPrivateProperty":case"ClassAccessorProperty":case"AccessorProperty":return et(Wt,pn,jt);case"TemplateElement":return B(un.value.raw);case"TemplateLiteral":return yt(Wt,jt,pn);case"TaggedTemplateExpression":return[jt("tag"),jt("typeParameters"),jt("quasi")];case"PrivateIdentifier":return["#",jt("name")];case"PrivateName":return["#",jt("id")];case"InterpreterDirective":return an.push("#!",un.value,d),ee(un,pn)&&an.push(d),an;case"TopicReference":return"%";case"ArgumentPlaceholder":return"?";case"ModuleExpression":{an.push("module {");let Cn=jt("body");return Cn&&an.push(C([d,Cn]),d),an.push("}"),an}default:throw new Error("unknown type: "+JSON.stringify(un.type))}}function It(Wt){return Wt.type&&!M(Wt)&&!re(Wt)&&Wt.type!=="EmptyStatement"&&Wt.type!=="TemplateElement"&&Wt.type!=="Import"&&Wt.type!=="TSEmptyBodyFunctionExpression"}A.exports={preprocess:X,print:ke,embed:_,insertPragma:x,massageAstNode:P,hasPrettierIgnore(Wt){return N(Wt)||le(Wt)},willPrintOwnComments:S.willPrintOwnComments,canAttachComment:It,printComment:Jt,isBlockComment:M,handleComments:{avoidAstMutation:!0,ownLine:S.handleOwnLineComment,endOfLine:S.handleEndOfLineComment,remaining:S.handleRemainingComment},getCommentChildNodes:S.getCommentChildNodes}}}),uA=Te({"src/language-js/printer-estree-json.js"(m,A){Ve();var{builders:{hardline:p,indent:v,join:D}}=Tn(),f=J0();function d(B,_,P){let x=B.getValue();switch(x.type){case"JsonRoot":return[P("node"),p];case"ArrayExpression":{if(x.elements.length===0)return"[]";let S=B.map(()=>B.getValue()===null?"null":P(),"elements");return["[",v([p,D([",",p],S)]),p,"]"]}case"ObjectExpression":return x.properties.length===0?"{}":["{",v([p,D([",",p],B.map(P,"properties"))]),p,"}"];case"ObjectProperty":return[P("key"),": ",P("value")];case"UnaryExpression":return[x.operator==="+"?"":x.operator,P("argument")];case"NullLiteral":return"null";case"BooleanLiteral":return x.value?"true":"false";case"StringLiteral":return JSON.stringify(x.value);case"NumericLiteral":return h(B)?JSON.stringify(String(x.value)):JSON.stringify(x.value);case"Identifier":return h(B)?JSON.stringify(x.name):x.name;case"TemplateLiteral":return P(["quasis",0]);case"TemplateElement":return JSON.stringify(x.value.cooked);default:throw new Error("unknown type: "+JSON.stringify(x.type))}}function h(B){return B.getName()==="key"&&B.getParentNode().type==="ObjectProperty"}var E=new Set(["start","end","extra","loc","comments","leadingComments","trailingComments","innerComments","errors","range","tokens"]);function C(B,_){let{type:P}=B;if(P==="ObjectProperty"){let{key:x}=B;x.type==="Identifier"?_.key={type:"StringLiteral",value:x.name}:x.type==="NumericLiteral"&&(_.key={type:"StringLiteral",value:String(x.value)});return}if(P==="UnaryExpression"&&B.operator==="+")return _.argument;if(P==="ArrayExpression"){for(let[x,S]of B.elements.entries())S===null&&_.elements.splice(x,0,{type:"NullLiteral"});return}if(P==="TemplateLiteral")return{type:"StringLiteral",value:B.quasis[0].value.cooked}}C.ignoredProperties=E,A.exports={preprocess:f,print:d,massageAstNode:C}}}),co=Te({"src/common/common-options.js"(m,A){Ve();var p="Common";A.exports={bracketSpacing:{since:"0.0.0",category:p,type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{since:"0.0.0",category:p,type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{since:"1.8.2",category:p,type:"choice",default:[{since:"1.8.2",value:!0},{since:"1.9.0",value:"preserve"}],description:"How to wrap prose.",choices:[{since:"1.9.0",value:"always",description:"Wrap prose if it exceeds the print width."},{since:"1.9.0",value:"never",description:"Do not wrap prose."},{since:"1.9.0",value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{since:"2.4.0",category:p,type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{since:"2.6.0",category:p,type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}}}}),lA=Te({"src/language-js/options.js"(m,A){Ve();var p=co(),v="JavaScript";A.exports={arrowParens:{since:"1.9.0",category:v,type:"choice",default:[{since:"1.9.0",value:"avoid"},{since:"2.0.0",value:"always"}],description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSameLine:p.bracketSameLine,bracketSpacing:p.bracketSpacing,jsxBracketSameLine:{since:"0.17.0",category:v,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{since:"1.0.0",category:v,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},singleQuote:p.singleQuote,jsxSingleQuote:{since:"1.15.0",category:v,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{since:"1.17.0",category:v,type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{since:"0.0.0",category:v,type:"choice",default:[{since:"0.0.0",value:!1},{since:"0.19.0",value:"none"},{since:"2.0.0",value:"es5"}],description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."},{value:"all",description:"Trailing commas wherever possible (including function arguments)."}]},singleAttributePerLine:p.singleAttributePerLine}}}),cA=Te({"src/language-js/parse/parsers.js"(){Ve()}}),kp=Te({"node_modules/linguist-languages/data/JavaScript.json"(m,A){A.exports={name:"JavaScript",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:["js","node"],extensions:[".js","._js",".bones",".cjs",".es",".es6",".frag",".gs",".jake",".javascript",".jsb",".jscad",".jsfl",".jslib",".jsm",".jspre",".jss",".jsx",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib"],filenames:["Jakefile"],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],languageId:183}}}),fA=Te({"node_modules/linguist-languages/data/TypeScript.json"(m,A){A.exports={name:"TypeScript",type:"programming",color:"#3178c6",aliases:["ts"],interpreters:["deno","ts-node"],extensions:[".ts",".cts",".mts"],tmScope:"source.ts",aceMode:"typescript",codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",languageId:378}}}),pA=Te({"node_modules/linguist-languages/data/TSX.json"(m,A){A.exports={name:"TSX",type:"programming",color:"#3178c6",group:"TypeScript",extensions:[".tsx"],tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",languageId:94901924}}}),t1=Te({"node_modules/linguist-languages/data/JSON.json"(m,A){A.exports={name:"JSON",type:"data",color:"#292929",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",aliases:["geojson","jsonl","topojson"],extensions:[".json",".4DForm",".4DProject",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".jsonl",".mcmeta",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],filenames:[".arcconfig",".auto-changelog",".c8rc",".htmlhintrc",".imgbotconfig",".nycrc",".tern-config",".tern-project",".watchmanconfig","Pipfile.lock","composer.lock","mcmod.info"],languageId:174}}}),dA=Te({"node_modules/linguist-languages/data/JSON with Comments.json"(m,A){A.exports={name:"JSON with Comments",type:"data",color:"#292929",group:"JSON",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",aliases:["jsonc"],extensions:[".jsonc",".code-snippets",".sublime-build",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],filenames:[".babelrc",".devcontainer.json",".eslintrc.json",".jscsrc",".jshintrc",".jslintrc","api-extractor.json","devcontainer.json","jsconfig.json","language-configuration.json","tsconfig.json","tslint.json"],languageId:423}}}),hA=Te({"node_modules/linguist-languages/data/JSON5.json"(m,A){A.exports={name:"JSON5",type:"data",color:"#267CB9",extensions:[".json5"],tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",languageId:175}}}),mA=Te({"src/language-js/index.js"(m,A){Ve();var p=oa(),v=oA(),D=uA(),f=lA(),d=cA(),h=[p(kp(),C=>({since:"0.0.0",parsers:["babel","acorn","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"],interpreters:[...C.interpreters,"zx"],extensions:[...C.extensions.filter(B=>B!==".jsx"),".wxs"]})),p(kp(),()=>({name:"Flow",since:"0.0.0",parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"],aliases:[],filenames:[],extensions:[".js.flow"]})),p(kp(),()=>({name:"JSX",since:"0.0.0",parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],aliases:void 0,filenames:void 0,extensions:[".jsx"],group:"JavaScript",interpreters:void 0,tmScope:"source.js.jsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",color:void 0})),p(fA(),()=>({since:"1.4.0",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"]})),p(pA(),()=>({since:"1.4.0",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"]})),p(t1(),()=>({name:"JSON.stringify",since:"1.13.0",parsers:["json-stringify"],vscodeLanguageIds:["json"],extensions:[".importmap"],filenames:["package.json","package-lock.json","composer.json"]})),p(t1(),C=>({since:"1.5.0",parsers:["json"],vscodeLanguageIds:["json"],extensions:C.extensions.filter(B=>B!==".jsonl")})),p(dA(),C=>({since:"1.5.0",parsers:["json"],vscodeLanguageIds:["jsonc"],filenames:[...C.filenames,".eslintrc",".swcrc"]})),p(hA(),()=>({since:"1.13.0",parsers:["json5"],vscodeLanguageIds:["json5"]}))],E={estree:v,"estree-json":D};A.exports={languages:h,options:f,printers:E,parsers:d}}}),gA=Te({"src/language-css/clean.js"(m,A){Ve();var{isFrontMatterNode:p}=ye(),v=Jr(),D=new Set(["raw","raws","sourceIndex","source","before","after","trailingComma"]);function f(h,E,C){if(p(h)&&h.lang==="yaml"&&delete E.value,h.type==="css-comment"&&C.type==="css-root"&&C.nodes.length>0&&((C.nodes[0]===h||p(C.nodes[0])&&C.nodes[1]===h)&&(delete E.text,/^\*\s*@(?:format|prettier)\s*$/.test(h.text))||C.type==="css-root"&&v(C.nodes)===h))return null;if(h.type==="value-root"&&delete E.text,(h.type==="media-query"||h.type==="media-query-list"||h.type==="media-feature-expression")&&delete E.value,h.type==="css-rule"&&delete E.params,h.type==="selector-combinator"&&(E.value=E.value.replace(/\s+/g," ")),h.type==="media-feature"&&(E.value=E.value.replace(/ /g,"")),(h.type==="value-word"&&(h.isColor&&h.isHex||["initial","inherit","unset","revert"].includes(E.value.replace().toLowerCase()))||h.type==="media-feature"||h.type==="selector-root-invalid"||h.type==="selector-pseudo")&&(E.value=E.value.toLowerCase()),h.type==="css-decl"&&(E.prop=E.prop.toLowerCase()),(h.type==="css-atrule"||h.type==="css-import")&&(E.name=E.name.toLowerCase()),h.type==="value-number"&&(E.unit=E.unit.toLowerCase()),(h.type==="media-feature"||h.type==="media-keyword"||h.type==="media-type"||h.type==="media-unknown"||h.type==="media-url"||h.type==="media-value"||h.type==="selector-attribute"||h.type==="selector-string"||h.type==="selector-class"||h.type==="selector-combinator"||h.type==="value-string")&&E.value&&(E.value=d(E.value)),h.type==="selector-attribute"&&(E.attribute=E.attribute.trim(),E.namespace&&typeof E.namespace=="string"&&(E.namespace=E.namespace.trim(),E.namespace.length===0&&(E.namespace=!0)),E.value&&(E.value=E.value.trim().replace(/^["']|["']$/g,""),delete E.quoted)),(h.type==="media-value"||h.type==="media-type"||h.type==="value-number"||h.type==="selector-root-invalid"||h.type==="selector-class"||h.type==="selector-combinator"||h.type==="selector-tag")&&E.value&&(E.value=E.value.replace(/([\d+.Ee-]+)([A-Za-z]*)/g,(B,_,P)=>{let x=Number(_);return Number.isNaN(x)?B:x+P.toLowerCase()})),h.type==="selector-tag"){let B=h.value.toLowerCase();["from","to"].includes(B)&&(E.value=B)}if(h.type==="css-atrule"&&h.name.toLowerCase()==="supports"&&delete E.value,h.type==="selector-unknown"&&delete E.value,h.type==="value-comma_group"){let B=h.groups.findIndex(_=>_.type==="value-number"&&_.unit==="...");B!==-1&&(E.groups[B].unit="",E.groups.splice(B+1,0,{type:"value-word",value:"...",isColor:!1,isHex:!1}))}if(h.type==="value-comma_group"&&h.groups.some(B=>B.type==="value-atword"&&B.value.endsWith("[")||B.type==="value-word"&&B.value.startsWith("]")))return{type:"value-atword",value:h.groups.map(B=>B.value).join(""),group:{open:null,close:null,groups:[],type:"value-paren_group"}}}f.ignoredProperties=D;function d(h){return h.replace(/'/g,'"').replace(/\\([^\dA-Fa-f])/g,"$1")}A.exports=f}}),Pp=Te({"src/utils/front-matter/print.js"(m,A){Ve();var{builders:{hardline:p,markAsRoot:v}}=Tn();function D(f,d){if(f.lang==="yaml"){let h=f.value.trim(),E=h?d(h,{parser:"yaml"},{stripTrailingHardline:!0}):"";return v([f.startDelimiter,p,E,E?p:"",f.endDelimiter])}}A.exports=D}}),yA=Te({"src/language-css/embed.js"(m,A){Ve();var{builders:{hardline:p}}=Tn(),v=Pp();function D(f,d,h){let E=f.getValue();if(E.type==="front-matter"){let C=v(E,h);return C?[C,p]:""}}A.exports=D}}),n1=Te({"src/utils/front-matter/parse.js"(m,A){Ve();var p=new RegExp("^(?<startDelimiter>-{3}|\\+{3})(?<language>[^\\n]*)\\n(?:|(?<value>.*?)\\n)(?<endDelimiter>\\k<startDelimiter>|\\.{3})[^\\S\\n]*(?:\\n|$)","s");function v(D){let f=D.match(p);if(!f)return{content:D};let{startDelimiter:d,language:h,value:E="",endDelimiter:C}=f.groups,B=h.trim()||"yaml";if(d==="+++"&&(B="toml"),B!=="yaml"&&d!==C)return{content:D};let[_]=f;return{frontMatter:{type:"front-matter",lang:B,value:E,startDelimiter:d,endDelimiter:C,raw:_.replace(/\n$/,"")},content:_.replace(/[^\n]/g," ")+D.slice(_.length)}}A.exports=v}}),DA=Te({"src/language-css/pragma.js"(m,A){Ve();var p=W0(),v=n1();function D(d){return p.hasPragma(v(d).content)}function f(d){let{frontMatter:h,content:E}=v(d);return(h?h.raw+`
232
+
233
+ `:"")+p.insertPragma(E)}A.exports={hasPragma:D,insertPragma:f}}}),bA=Te({"src/language-css/utils/index.js"(m,A){Ve();var p=new Set(["red","green","blue","alpha","a","rgb","hue","h","saturation","s","lightness","l","whiteness","w","blackness","b","tint","shade","blend","blenda","contrast","hsl","hsla","hwb","hwba"]);function v(qe,Ce){let Qe=Array.isArray(Ce)?Ce:[Ce],et=-1,Ct;for(;Ct=qe.getParentNode(++et);)if(Qe.includes(Ct.type))return et;return-1}function D(qe,Ce){let Qe=v(qe,Ce);return Qe===-1?null:qe.getParentNode(Qe)}function f(qe){var Ce;let Qe=D(qe,"css-decl");return Qe==null||(Ce=Qe.prop)===null||Ce===void 0?void 0:Ce.toLowerCase()}var d=new Set(["initial","inherit","unset","revert"]);function h(qe){return d.has(qe.toLowerCase())}function E(qe,Ce){let Qe=D(qe,"css-atrule");return Qe?.name&&Qe.name.toLowerCase().endsWith("keyframes")&&["from","to"].includes(Ce.toLowerCase())}function C(qe){return qe.includes("$")||qe.includes("@")||qe.includes("#")||qe.startsWith("%")||qe.startsWith("--")||qe.startsWith(":--")||qe.includes("(")&&qe.includes(")")?qe:qe.toLowerCase()}function B(qe,Ce){var Qe;let et=D(qe,"value-func");return(et==null||(Qe=et.value)===null||Qe===void 0?void 0:Qe.toLowerCase())===Ce}function _(qe){var Ce;let Qe=D(qe,"css-rule"),et=Qe==null||(Ce=Qe.raws)===null||Ce===void 0?void 0:Ce.selector;return et&&(et.startsWith(":import")||et.startsWith(":export"))}function P(qe,Ce){let Qe=Array.isArray(Ce)?Ce:[Ce],et=D(qe,"css-atrule");return et&&Qe.includes(et.name.toLowerCase())}function x(qe){let Ce=qe.getValue(),Qe=D(qe,"css-atrule");return Qe?.name==="import"&&Ce.groups[0].value==="url"&&Ce.groups.length===2}function S(qe){return qe.type==="value-func"&&qe.value.toLowerCase()==="url"}function R(qe,Ce){var Qe;let et=(Qe=qe.getParentNode())===null||Qe===void 0?void 0:Qe.nodes;return et&&et.indexOf(Ce)===et.length-1}function X(qe){let{selector:Ce}=qe;return Ce?typeof Ce=="string"&&/^@.+:.*$/.test(Ce)||Ce.value&&/^@.+:.*$/.test(Ce.value):!1}function te(qe){return qe.type==="value-word"&&["from","through","end"].includes(qe.value)}function $(qe){return qe.type==="value-word"&&["and","or","not"].includes(qe.value)}function Q(qe){return qe.type==="value-word"&&qe.value==="in"}function G(qe){return qe.type==="value-operator"&&qe.value==="*"}function re(qe){return qe.type==="value-operator"&&qe.value==="/"}function ee(qe){return qe.type==="value-operator"&&qe.value==="+"}function De(qe){return qe.type==="value-operator"&&qe.value==="-"}function N(qe){return qe.type==="value-operator"&&qe.value==="%"}function J(qe){return G(qe)||re(qe)||ee(qe)||De(qe)||N(qe)}function F(qe){return qe.type==="value-word"&&["==","!="].includes(qe.value)}function j(qe){return qe.type==="value-word"&&["<",">","<=",">="].includes(qe.value)}function y(qe){return qe.type==="css-atrule"&&["if","else","for","each","while"].includes(qe.name)}function L(qe){var Ce;return((Ce=qe.raws)===null||Ce===void 0?void 0:Ce.params)&&/^\(\s*\)$/.test(qe.raws.params)}function M(qe){return qe.name.startsWith("prettier-placeholder")}function q(qe){return qe.prop.startsWith("@prettier-placeholder")}function U(qe,Ce){return qe.value==="$$"&&qe.type==="value-func"&&Ce?.type==="value-word"&&!Ce.raws.before}function z(qe){var Ce,Qe;return((Ce=qe.value)===null||Ce===void 0?void 0:Ce.type)==="value-root"&&((Qe=qe.value.group)===null||Qe===void 0?void 0:Qe.type)==="value-value"&&qe.prop.toLowerCase()==="composes"}function se(qe){var Ce,Qe,et;return((Ce=qe.value)===null||Ce===void 0||(Qe=Ce.group)===null||Qe===void 0||(et=Qe.group)===null||et===void 0?void 0:et.type)==="value-paren_group"&&qe.value.group.group.open!==null&&qe.value.group.group.close!==null}function le(qe){var Ce;return((Ce=qe.raws)===null||Ce===void 0?void 0:Ce.before)===""}function ge(qe){var Ce,Qe;return qe.type==="value-comma_group"&&((Ce=qe.groups)===null||Ce===void 0||(Qe=Ce[1])===null||Qe===void 0?void 0:Qe.type)==="value-colon"}function ce(qe){var Ce;return qe.type==="value-paren_group"&&((Ce=qe.groups)===null||Ce===void 0?void 0:Ce[0])&&ge(qe.groups[0])}function Le(qe){var Ce;let Qe=qe.getValue();if(Qe.groups.length===0)return!1;let et=qe.getParentNode(1);if(!ce(Qe)&&!(et&&ce(et)))return!1;let Ct=D(qe,"css-decl");return!!(Ct!=null&&(Ce=Ct.prop)!==null&&Ce!==void 0&&Ce.startsWith("$")||ce(et)||et.type==="value-func")}function ie(qe){return qe.type==="value-comment"&&qe.inline}function We(qe){return qe.type==="value-word"&&qe.value==="#"}function he(qe){return qe.type==="value-word"&&qe.value==="{"}function oe(qe){return qe.type==="value-word"&&qe.value==="}"}function Ue(qe){return["value-word","value-atword"].includes(qe.type)}function it(qe){return qe?.type==="value-colon"}function Xe(qe,Ce){if(!ge(Ce))return!1;let{groups:Qe}=Ce,et=Qe.indexOf(qe);return et===-1?!1:it(Qe[et+1])}function bt(qe){return qe.value&&["not","and","or"].includes(qe.value.toLowerCase())}function be(qe){return qe.type!=="value-func"?!1:p.has(qe.value.toLowerCase())}function Re(qe){return/\/\//.test(qe.split(/[\n\r]/).pop())}function gt(qe){return qe?.type==="value-atword"&&qe.value.startsWith("prettier-placeholder-")}function yt(qe,Ce){var Qe,et;if(((Qe=qe.open)===null||Qe===void 0?void 0:Qe.value)!=="("||((et=qe.close)===null||et===void 0?void 0:et.value)!==")"||qe.groups.some(Ct=>Ct.type!=="value-comma_group"))return!1;if(Ce.type==="value-comma_group"){let Ct=Ce.groups.indexOf(qe)-1,Bt=Ce.groups[Ct];if(Bt?.type==="value-word"&&Bt.value==="with")return!0}return!1}function zt(qe){var Ce,Qe;return qe.type==="value-paren_group"&&((Ce=qe.open)===null||Ce===void 0?void 0:Ce.value)==="("&&((Qe=qe.close)===null||Qe===void 0?void 0:Qe.value)===")"}A.exports={getAncestorCounter:v,getAncestorNode:D,getPropOfDeclNode:f,maybeToLowerCase:C,insideValueFunctionNode:B,insideICSSRuleNode:_,insideAtRuleNode:P,insideURLFunctionInImportAtRuleNode:x,isKeyframeAtRuleKeywords:E,isWideKeywords:h,isLastNode:R,isSCSSControlDirectiveNode:y,isDetachedRulesetDeclarationNode:X,isRelationalOperatorNode:j,isEqualityOperatorNode:F,isMultiplicationNode:G,isDivisionNode:re,isAdditionNode:ee,isSubtractionNode:De,isModuloNode:N,isMathOperatorNode:J,isEachKeywordNode:Q,isForKeywordNode:te,isURLFunctionNode:S,isIfElseKeywordNode:$,hasComposesNode:z,hasParensAroundNode:se,hasEmptyRawBefore:le,isDetachedRulesetCallNode:L,isTemplatePlaceholderNode:M,isTemplatePropNode:q,isPostcssSimpleVarNode:U,isKeyValuePairNode:ge,isKeyValuePairInParenGroupNode:ce,isKeyInValuePairNode:Xe,isSCSSMapItemNode:Le,isInlineValueCommentNode:ie,isHashNode:We,isLeftCurlyBraceNode:he,isRightCurlyBraceNode:oe,isWordNode:Ue,isColonNode:it,isMediaAndSupportsKeywords:bt,isColorAdjusterFuncNode:be,lastLineHasInlineComment:Re,isAtWordPlaceholderNode:gt,isConfigurationNode:yt,isParenGroupNode:zt}}}),vA=Te({"src/utils/line-column-to-index.js"(m,A){Ve(),A.exports=function(p,v){let D=0;for(let f=0;f<p.line-1;++f)D=v.indexOf(`
234
+ `,D)+1;return D+p.column}}}),EA=Te({"src/language-css/loc.js"(m,A){Ve();var{skipEverythingButNewLine:p}=Mt(),v=Jr(),D=vA();function f(x,S){return typeof x.sourceIndex=="number"?x.sourceIndex:x.source?D(x.source.start,S)-1:null}function d(x,S){if(x.type==="css-comment"&&x.inline)return p(S,x.source.startOffset);let R=x.nodes&&v(x.nodes);return R&&x.source&&!x.source.end&&(x=R),x.source&&x.source.end?D(x.source.end,S):null}function h(x,S){x.source&&(x.source.startOffset=f(x,S),x.source.endOffset=d(x,S));for(let R in x){let X=x[R];R==="source"||!X||typeof X!="object"||(X.type==="value-root"||X.type==="value-unknown"?E(X,C(x),X.text||X.value):h(X,S))}}function E(x,S,R){x.source&&(x.source.startOffset=f(x,R)+S,x.source.endOffset=d(x,R)+S);for(let X in x){let te=x[X];X==="source"||!te||typeof te!="object"||E(te,S,R)}}function C(x){let S=x.source.startOffset;return typeof x.prop=="string"&&(S+=x.prop.length),x.type==="css-atrule"&&typeof x.name=="string"&&(S+=1+x.name.length+x.raws.afterName.match(/^\s*:?\s*/)[0].length),x.type!=="css-atrule"&&x.raws&&typeof x.raws.between=="string"&&(S+=x.raws.between.length),S}function B(x){let S="initial",R="initial",X,te=!1,$=[];for(let Q=0;Q<x.length;Q++){let G=x[Q];switch(S){case"initial":if(G==="'"){S="single-quotes";continue}if(G==='"'){S="double-quotes";continue}if((G==="u"||G==="U")&&x.slice(Q,Q+4).toLowerCase()==="url("){S="url",Q+=3;continue}if(G==="*"&&x[Q-1]==="/"){S="comment-block";continue}if(G==="/"&&x[Q-1]==="/"){S="comment-inline",X=Q-1;continue}continue;case"single-quotes":if(G==="'"&&x[Q-1]!=="\\"&&(S=R,R="initial"),G===`
235
+ `||G==="\r")return x;continue;case"double-quotes":if(G==='"'&&x[Q-1]!=="\\"&&(S=R,R="initial"),G===`
236
+ `||G==="\r")return x;continue;case"url":if(G===")"&&(S="initial"),G===`
237
+ `||G==="\r")return x;if(G==="'"){S="single-quotes",R="url";continue}if(G==='"'){S="double-quotes",R="url";continue}continue;case"comment-block":G==="/"&&x[Q-1]==="*"&&(S="initial");continue;case"comment-inline":(G==='"'||G==="'"||G==="*")&&(te=!0),(G===`
238
+ `||G==="\r")&&(te&&$.push([X,Q]),S="initial",te=!1);continue}}for(let[Q,G]of $)x=x.slice(0,Q)+x.slice(Q,G).replace(/["'*]/g," ")+x.slice(G);return x}function _(x){return x.source.startOffset}function P(x){return x.source.endOffset}A.exports={locStart:_,locEnd:P,calculateLoc:h,replaceQuotesInInlineComments:B}}}),AA=Te({"src/language-css/utils/is-less-parser.js"(m,A){Ve();function p(v){return v.parser==="css"||v.parser==="less"}A.exports=p}}),wA=Te({"src/language-css/utils/is-scss.js"(m,A){Ve();function p(v,D){return v==="less"||v==="scss"?v==="scss":/(?:\w\s*:\s*[^:}]+|#){|@import[^\n]+(?:url|,)/.test(D)}A.exports=p}}),xA=Te({"src/language-css/utils/css-units.evaluate.js"(m,A){A.exports={em:"em",rem:"rem",ex:"ex",rex:"rex",cap:"cap",rcap:"rcap",ch:"ch",rch:"rch",ic:"ic",ric:"ric",lh:"lh",rlh:"rlh",vw:"vw",svw:"svw",lvw:"lvw",dvw:"dvw",vh:"vh",svh:"svh",lvh:"lvh",dvh:"dvh",vi:"vi",svi:"svi",lvi:"lvi",dvi:"dvi",vb:"vb",svb:"svb",lvb:"lvb",dvb:"dvb",vmin:"vmin",svmin:"svmin",lvmin:"lvmin",dvmin:"dvmin",vmax:"vmax",svmax:"svmax",lvmax:"lvmax",dvmax:"dvmax",cm:"cm",mm:"mm",q:"Q",in:"in",pt:"pt",pc:"pc",px:"px",deg:"deg",grad:"grad",rad:"rad",turn:"turn",s:"s",ms:"ms",hz:"Hz",khz:"kHz",dpi:"dpi",dpcm:"dpcm",dppx:"dppx",x:"x"}}}),CA=Te({"src/language-css/utils/print-unit.js"(m,A){Ve();var p=xA();function v(D){let f=D.toLowerCase();return Object.prototype.hasOwnProperty.call(p,f)?p[f]:D}A.exports=v}}),SA=Te({"src/language-css/printer-postcss.js"(m,A){Ve();var p=Jr(),{printNumber:v,printString:D,hasNewline:f,isFrontMatterNode:d,isNextLineEmpty:h,isNonEmptyArray:E}=ye(),{builders:{join:C,line:B,hardline:_,softline:P,group:x,fill:S,indent:R,dedent:X,ifBreak:te,breakParent:$},utils:{removeLines:Q,getDocParts:G}}=Tn(),re=gA(),ee=yA(),{insertPragma:De}=DA(),{getAncestorNode:N,getPropOfDeclNode:J,maybeToLowerCase:F,insideValueFunctionNode:j,insideICSSRuleNode:y,insideAtRuleNode:L,insideURLFunctionInImportAtRuleNode:M,isKeyframeAtRuleKeywords:q,isWideKeywords:U,isLastNode:z,isSCSSControlDirectiveNode:se,isDetachedRulesetDeclarationNode:le,isRelationalOperatorNode:ge,isEqualityOperatorNode:ce,isMultiplicationNode:Le,isDivisionNode:ie,isAdditionNode:We,isSubtractionNode:he,isMathOperatorNode:oe,isEachKeywordNode:Ue,isForKeywordNode:it,isURLFunctionNode:Xe,isIfElseKeywordNode:bt,hasComposesNode:be,hasParensAroundNode:Re,hasEmptyRawBefore:gt,isKeyValuePairNode:yt,isKeyInValuePairNode:zt,isDetachedRulesetCallNode:qe,isTemplatePlaceholderNode:Ce,isTemplatePropNode:Qe,isPostcssSimpleVarNode:et,isSCSSMapItemNode:Ct,isInlineValueCommentNode:Bt,isHashNode:Rt,isLeftCurlyBraceNode:hn,isRightCurlyBraceNode:Rn,isWordNode:Bn,isColonNode:dn,isMediaAndSupportsKeywords:En,isColorAdjusterFuncNode:pt,lastLineHasInlineComment:Ae,isAtWordPlaceholderNode:Dt,isConfigurationNode:je,isParenGroupNode:mt}=bA(),{locStart:nn,locEnd:Jt}=EA(),Et=AA(),V=wA(),ke=CA();function ot(cn){return cn.trailingComma==="es5"||cn.trailingComma==="all"}function It(cn,kn,Fn){let ht=cn.getValue();if(!ht)return"";if(typeof ht=="string")return ht;switch(ht.type){case"front-matter":return[ht.raw,_];case"css-root":{let Un=Wt(cn,kn,Fn),Yn=ht.raws.after.trim();return Yn.startsWith(";")&&(Yn=Yn.slice(1).trim()),[Un,Yn?` ${Yn}`:"",G(Un).length>0?_:""]}case"css-comment":{let Un=ht.inline||ht.raws.inline,Yn=kn.originalText.slice(nn(ht),Jt(ht));return Un?Yn.trimEnd():Yn}case"css-rule":return[Fn("selector"),ht.important?" !important":"",ht.nodes?[ht.selector&&ht.selector.type==="selector-unknown"&&Ae(ht.selector.value)?B:" ","{",ht.nodes.length>0?R([_,Wt(cn,kn,Fn)]):"",_,"}",le(ht)?";":""]:";"];case"css-decl":{let Un=cn.getParentNode(),{between:Yn}=ht.raws,gr=Yn.trim(),_s=gr===":",ae=be(ht)?Q(Fn("value")):Fn("value");return!_s&&Ae(gr)&&(ae=R([_,X(ae)])),[ht.raws.before.replace(/[\s;]/g,""),Un.type==="css-atrule"&&Un.variable||y(cn)?ht.prop:F(ht.prop),gr.startsWith("//")?" ":"",gr,ht.extend?"":" ",Et(kn)&&ht.extend&&ht.selector?["extend(",Fn("selector"),")"]:"",ae,ht.raws.important?ht.raws.important.replace(/\s*!\s*important/i," !important"):ht.important?" !important":"",ht.raws.scssDefault?ht.raws.scssDefault.replace(/\s*!default/i," !default"):ht.scssDefault?" !default":"",ht.raws.scssGlobal?ht.raws.scssGlobal.replace(/\s*!global/i," !global"):ht.scssGlobal?" !global":"",ht.nodes?[" {",R([P,Wt(cn,kn,Fn)]),P,"}"]:Qe(ht)&&!Un.raws.semicolon&&kn.originalText[Jt(ht)-1]!==";"?"":kn.__isHTMLStyleAttribute&&z(cn,ht)?te(";"):";"]}case"css-atrule":{let Un=cn.getParentNode(),Yn=Ce(ht)&&!Un.raws.semicolon&&kn.originalText[Jt(ht)-1]!==";";if(Et(kn)){if(ht.mixin)return[Fn("selector"),ht.important?" !important":"",Yn?"":";"];if(ht.function)return[ht.name,Fn("params"),Yn?"":";"];if(ht.variable)return["@",ht.name,": ",ht.value?Fn("value"):"",ht.raws.between.trim()?ht.raws.between.trim()+" ":"",ht.nodes?["{",R([ht.nodes.length>0?P:"",Wt(cn,kn,Fn)]),P,"}"]:"",Yn?"":";"]}return["@",qe(ht)||ht.name.endsWith(":")?ht.name:F(ht.name),ht.params?[qe(ht)?"":Ce(ht)?ht.raws.afterName===""?"":ht.name.endsWith(":")?" ":/^\s*\n\s*\n/.test(ht.raws.afterName)?[_,_]:/^\s*\n/.test(ht.raws.afterName)?_:" ":" ",Fn("params")]:"",ht.selector?R([" ",Fn("selector")]):"",ht.value?x([" ",Fn("value"),se(ht)?Re(ht)?" ":B:""]):ht.name==="else"?" ":"",ht.nodes?[se(ht)?"":ht.selector&&!ht.selector.nodes&&typeof ht.selector.value=="string"&&Ae(ht.selector.value)||!ht.selector&&typeof ht.params=="string"&&Ae(ht.params)?B:" ","{",R([ht.nodes.length>0?P:"",Wt(cn,kn,Fn)]),P,"}"]:Yn?"":";"]}case"media-query-list":{let Un=[];return cn.each(Yn=>{let gr=Yn.getValue();gr.type==="media-query"&&gr.value===""||Un.push(Fn())},"nodes"),x(R(C(B,Un)))}case"media-query":return[C(" ",cn.map(Fn,"nodes")),z(cn,ht)?"":","];case"media-type":return In(an(ht.value,kn));case"media-feature-expression":return ht.nodes?["(",...cn.map(Fn,"nodes"),")"]:ht.value;case"media-feature":return F(an(ht.value.replace(/ +/g," "),kn));case"media-colon":return[ht.value," "];case"media-value":return In(an(ht.value,kn));case"media-keyword":return an(ht.value,kn);case"media-url":return an(ht.value.replace(/^url\(\s+/gi,"url(").replace(/\s+\)$/g,")"),kn);case"media-unknown":return ht.value;case"selector-root":return x([L(cn,"custom-selector")?[N(cn,"css-atrule").customSelector,B]:"",C([",",L(cn,["extend","custom-selector","nest"])?B:_],cn.map(Fn,"nodes"))]);case"selector-selector":return x(R(cn.map(Fn,"nodes")));case"selector-comment":return ht.value;case"selector-string":return an(ht.value,kn);case"selector-tag":{let Un=cn.getParentNode(),Yn=Un&&Un.nodes.indexOf(ht),gr=Yn&&Un.nodes[Yn-1];return[ht.namespace?[ht.namespace===!0?"":ht.namespace.trim(),"|"]:"",gr.type==="selector-nesting"?ht.value:In(q(cn,ht.value)?ht.value.toLowerCase():ht.value)]}case"selector-id":return["#",ht.value];case"selector-class":return[".",In(an(ht.value,kn))];case"selector-attribute":{var Ts;return["[",ht.namespace?[ht.namespace===!0?"":ht.namespace.trim(),"|"]:"",ht.attribute.trim(),(Ts=ht.operator)!==null&&Ts!==void 0?Ts:"",ht.value?Cn(an(ht.value.trim(),kn),kn):"",ht.insensitive?" i":"","]"]}case"selector-combinator":{if(ht.value==="+"||ht.value===">"||ht.value==="~"||ht.value===">>>"){let gr=cn.getParentNode();return[gr.type==="selector-selector"&&gr.nodes[0]===ht?"":B,ht.value,z(cn,ht)?"":" "]}let Un=ht.value.trim().startsWith("(")?B:"",Yn=In(an(ht.value.trim(),kn))||B;return[Un,Yn]}case"selector-universal":return[ht.namespace?[ht.namespace===!0?"":ht.namespace.trim(),"|"]:"",ht.value];case"selector-pseudo":return[F(ht.value),E(ht.nodes)?x(["(",R([P,C([",",B],cn.map(Fn,"nodes"))]),P,")"]):""];case"selector-nesting":return ht.value;case"selector-unknown":{let Un=N(cn,"css-rule");if(Un&&Un.isSCSSNesterProperty)return In(an(F(ht.value),kn));let Yn=cn.getParentNode();if(Yn.raws&&Yn.raws.selector){let _s=nn(Yn),ae=_s+Yn.raws.selector.length;return kn.originalText.slice(_s,ae).trim()}let gr=cn.getParentNode(1);if(Yn.type==="value-paren_group"&&gr&&gr.type==="value-func"&&gr.value==="selector"){let _s=Jt(Yn.open)+1,ae=nn(Yn.close),St=kn.originalText.slice(_s,ae).trim();return Ae(St)?[$,St]:St}return ht.value}case"value-value":case"value-root":return Fn("group");case"value-comment":return kn.originalText.slice(nn(ht),Jt(ht));case"value-comma_group":{let Un=cn.getParentNode(),Yn=cn.getParentNode(1),gr=J(cn),_s=gr&&Un.type==="value-value"&&(gr==="grid"||gr.startsWith("grid-template")),ae=N(cn,"css-atrule"),St=ae&&se(ae),bn=ht.groups.some(Ls=>Bt(Ls)),zn=cn.map(Fn,"groups"),Xn=[],As=j(cn,"url"),Lr=!1,ss=!1;for(let Ls=0;Ls<ht.groups.length;++Ls){var es;Xn.push(zn[Ls]);let Wr=ht.groups[Ls-1],_n=ht.groups[Ls],$n=ht.groups[Ls+1],Vl=ht.groups[Ls+2];if(As){($n&&We($n)||We(_n))&&Xn.push(" ");continue}if(L(cn,"forward")&&_n.type==="value-word"&&_n.value&&Wr!==void 0&&Wr.type==="value-word"&&Wr.value==="as"&&$n.type==="value-operator"&&$n.value==="*"||!$n||_n.type==="value-word"&&_n.value.endsWith("-")&&Dt($n))continue;if(_n.type==="value-string"&&_n.quoted){let jp=_n.value.lastIndexOf("#{"),$p=_n.value.lastIndexOf("}");jp!==-1&&$p!==-1?Lr=jp>$p:jp!==-1?Lr=!0:$p!==-1&&(Lr=!1)}if(Lr||dn(_n)||dn($n)||_n.type==="value-atword"&&(_n.value===""||_n.value.endsWith("["))||$n.type==="value-word"&&$n.value.startsWith("]")||_n.value==="~"||_n.value&&_n.value.includes("\\")&&$n&&$n.type!=="value-comment"||Wr&&Wr.value&&Wr.value.indexOf("\\")===Wr.value.length-1&&_n.type==="value-operator"&&_n.value==="/"||_n.value==="\\"||et(_n,$n)||Rt(_n)||hn(_n)||Rn($n)||hn($n)&&gt($n)||Rn(_n)&&gt($n)||_n.value==="--"&&Rt($n))continue;let Rp=oe(_n),l1=oe($n);if((Rp&&Rt($n)||l1&&Rn(_n))&&gt($n)||!Wr&&ie(_n)||j(cn,"calc")&&(We(_n)||We($n)||he(_n)||he($n))&&gt($n))continue;let Vw=(We(_n)||he(_n))&&Ls===0&&($n.type==="value-number"||$n.isHex)&&Yn&&pt(Yn)&&!gt($n),c1=Vl&&Vl.type==="value-func"||Vl&&Bn(Vl)||_n.type==="value-func"||Bn(_n),f1=$n.type==="value-func"||Bn($n)||Wr&&Wr.type==="value-func"||Wr&&Bn(Wr);if(!(!(Le($n)||Le(_n))&&!j(cn,"calc")&&!Vw&&(ie($n)&&!c1||ie(_n)&&!f1||We($n)&&!c1||We(_n)&&!f1||he($n)||he(_n))&&(gt($n)||Rp&&(!Wr||Wr&&oe(Wr))))&&!((kn.parser==="scss"||kn.parser==="less")&&Rp&&_n.value==="-"&&mt($n)&&Jt(_n)===nn($n.open)&&$n.open.value==="(")){if(Bt(_n)){if(Un.type==="value-paren_group"){Xn.push(X(_));continue}Xn.push(_);continue}if(St&&(ce($n)||ge($n)||bt($n)||Ue(_n)||it(_n))){Xn.push(" ");continue}if(ae&&ae.name.toLowerCase()==="namespace"){Xn.push(" ");continue}if(_s){_n.source&&$n.source&&_n.source.start.line!==$n.source.start.line?(Xn.push(_),ss=!0):Xn.push(" ");continue}if(l1){Xn.push(" ");continue}if(!($n&&$n.value==="...")&&!(Dt(_n)&&Dt($n)&&Jt(_n)===nn($n))){if(Dt(_n)&&mt($n)&&Jt(_n)===nn($n.open)){Xn.push(P);continue}if(_n.value==="with"&&mt($n)){Xn.push(" ");continue}(es=_n.value)!==null&&es!==void 0&&es.endsWith("#")&&$n.value==="{"&&mt($n.group)||Xn.push(B)}}}return bn&&Xn.push($),ss&&Xn.unshift(_),St?x(R(Xn)):M(cn)?x(S(Xn)):x(R(S(Xn)))}case"value-paren_group":{let Un=cn.getParentNode();if(Un&&Xe(Un)&&(ht.groups.length===1||ht.groups.length>0&&ht.groups[0].type==="value-comma_group"&&ht.groups[0].groups.length>0&&ht.groups[0].groups[0].type==="value-word"&&ht.groups[0].groups[0].value.startsWith("data:")))return[ht.open?Fn("open"):"",C(",",cn.map(Fn,"groups")),ht.close?Fn("close"):""];if(!ht.open){let As=cn.map(Fn,"groups"),Lr=[];for(let ss=0;ss<As.length;ss++)ss!==0&&Lr.push([",",B]),Lr.push(As[ss]);return x(R(S(Lr)))}let Yn=Ct(cn),gr=p(ht.groups),_s=gr&&gr.type==="value-comment",ae=zt(ht,Un),St=je(ht,Un),bn=St||Yn&&!ae,zn=St||ae,Xn=x([ht.open?Fn("open"):"",R([P,C([B],cn.map((As,Lr)=>{let ss=As.getValue(),Ls=Lr===ht.groups.length-1,Wr=[Fn(),Ls?"":","];if(yt(ss)&&ss.type==="value-comma_group"&&ss.groups&&ss.groups[0].type!=="value-paren_group"&&ss.groups[2]&&ss.groups[2].type==="value-paren_group"){let _n=G(Wr[0].contents.contents);_n[1]=x(_n[1]),Wr=[x(X(Wr))]}if(!Ls&&ss.type==="value-comma_group"&&E(ss.groups)){let _n=p(ss.groups);!_n.source&&_n.close&&(_n=_n.close),_n.source&&h(kn.originalText,_n,Jt)&&Wr.push(_)}return Wr},"groups"))]),te(!_s&&V(kn.parser,kn.originalText)&&Yn&&ot(kn)?",":""),P,ht.close?Fn("close"):""],{shouldBreak:bn});return zn?X(Xn):Xn}case"value-func":return[ht.value,L(cn,"supports")&&En(ht)?" ":"",Fn("group")];case"value-paren":return ht.value;case"value-number":return[cr(ht.value),ke(ht.unit)];case"value-operator":return ht.value;case"value-word":return ht.isColor&&ht.isHex||U(ht.value)?ht.value.toLowerCase():ht.value;case"value-colon":{let Un=cn.getParentNode(),Yn=Un&&Un.groups.indexOf(ht),gr=Yn&&Un.groups[Yn-1];return[ht.value,gr&&typeof gr.value=="string"&&p(gr.value)==="\\"||j(cn,"url")?"":B]}case"value-comma":return[ht.value," "];case"value-string":return D(ht.raws.quote+ht.value+ht.raws.quote,kn);case"value-atword":return["@",ht.value];case"value-unicode-range":return ht.value;case"value-unknown":return ht.value;default:throw new Error(`Unknown postcss type ${JSON.stringify(ht.type)}`)}}function Wt(cn,kn,Fn){let ht=[];return cn.each((Ts,es,Un)=>{let Yn=Un[es-1];if(Yn&&Yn.type==="css-comment"&&Yn.text.trim()==="prettier-ignore"){let gr=Ts.getValue();ht.push(kn.originalText.slice(nn(gr),Jt(gr)))}else ht.push(Fn());es!==Un.length-1&&(Un[es+1].type==="css-comment"&&!f(kn.originalText,nn(Un[es+1]),{backwards:!0})&&!d(Un[es])||Un[es+1].type==="css-atrule"&&Un[es+1].name==="else"&&Un[es].type!=="css-comment"?ht.push(" "):(ht.push(kn.__isHTMLStyleAttribute?B:_),h(kn.originalText,Ts.getValue(),Jt)&&!d(Un[es])&&ht.push(_)))},"nodes"),ht}var pn=/(["'])(?:(?!\1)[^\\]|\\.)*\1/gs,jt=/(?:\d*\.\d+|\d+\.?)(?:[Ee][+-]?\d+)?/g,Nr=/[A-Za-z]+/g,un=/[$@]?[A-Z_a-z\u0080-\uFFFF][\w\u0080-\uFFFF-]*/g,xr=new RegExp(pn.source+`|(${un.source})?(${jt.source})(${Nr.source})?`,"g");function an(cn,kn){return cn.replace(pn,Fn=>D(Fn,kn))}function Cn(cn,kn){let Fn=kn.singleQuote?"'":'"';return cn.includes('"')||cn.includes("'")?cn:Fn+cn+Fn}function In(cn){return cn.replace(xr,(kn,Fn,ht,Ts,es)=>!ht&&Ts?cr(Ts)+F(es||""):kn)}function cr(cn){return v(cn).replace(/\.0(?=$|e)/,"")}A.exports={print:It,embed:ee,insertPragma:De,massageAstNode:re}}}),FA=Te({"src/language-css/options.js"(m,A){Ve();var p=co();A.exports={singleQuote:p.singleQuote}}}),NA=Te({"src/language-css/parsers.js"(){Ve()}}),TA=Te({"node_modules/linguist-languages/data/CSS.json"(m,A){A.exports={name:"CSS",type:"markup",tmScope:"source.css",aceMode:"css",codemirrorMode:"css",codemirrorMimeType:"text/css",color:"#563d7c",extensions:[".css"],languageId:50}}}),_A=Te({"node_modules/linguist-languages/data/PostCSS.json"(m,A){A.exports={name:"PostCSS",type:"markup",color:"#dc3a0c",tmScope:"source.postcss",group:"CSS",extensions:[".pcss",".postcss"],aceMode:"text",languageId:262764437}}}),LA=Te({"node_modules/linguist-languages/data/Less.json"(m,A){A.exports={name:"Less",type:"markup",color:"#1d365d",aliases:["less-css"],extensions:[".less"],tmScope:"source.css.less",aceMode:"less",codemirrorMode:"css",codemirrorMimeType:"text/css",languageId:198}}}),kA=Te({"node_modules/linguist-languages/data/SCSS.json"(m,A){A.exports={name:"SCSS",type:"markup",color:"#c6538c",tmScope:"source.css.scss",aceMode:"scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",extensions:[".scss"],languageId:329}}}),PA=Te({"src/language-css/index.js"(m,A){Ve();var p=oa(),v=SA(),D=FA(),f=NA(),d=[p(TA(),E=>({since:"1.4.0",parsers:["css"],vscodeLanguageIds:["css"],extensions:[...E.extensions,".wxss"]})),p(_A(),()=>({since:"1.4.0",parsers:["css"],vscodeLanguageIds:["postcss"]})),p(LA(),()=>({since:"1.4.0",parsers:["less"],vscodeLanguageIds:["less"]})),p(kA(),()=>({since:"1.4.0",parsers:["scss"],vscodeLanguageIds:["scss"]}))],h={postcss:v};A.exports={languages:d,options:D,printers:h,parsers:f}}}),BA=Te({"src/language-handlebars/loc.js"(m,A){Ve();function p(D){return D.loc.start.offset}function v(D){return D.loc.end.offset}A.exports={locStart:p,locEnd:v}}}),MA=Te({"src/language-handlebars/clean.js"(m,A){Ve();function p(v,D){if(v.type==="TextNode"){let f=v.chars.trim();if(!f)return null;D.chars=f.replace(/[\t\n\f\r ]+/g," ")}v.type==="AttrNode"&&v.name.toLowerCase()==="class"&&delete D.value}p.ignoredProperties=new Set(["loc","selfClosing"]),A.exports=p}}),IA=Te({"src/language-handlebars/html-void-elements.evaluate.js"(m,A){A.exports=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]}}),OA=Te({"src/language-handlebars/utils.js"(m,A){Ve();var p=Jr(),v=IA();function D(G){let re=G.getValue(),ee=G.getParentNode(0);return!!(P(G,["ElementNode"])&&p(ee.children)===re||P(G,["Block"])&&p(ee.body)===re)}function f(G){return G.toUpperCase()===G}function d(G){return _(G,["ElementNode"])&&typeof G.tag=="string"&&!G.tag.startsWith(":")&&(f(G.tag[0])||G.tag.includes("."))}var h=new Set(v);function E(G){return h.has(G.toLowerCase())&&!f(G[0])}function C(G){return G.selfClosing===!0||E(G.tag)||d(G)&&G.children.every(re=>B(re))}function B(G){return _(G,["TextNode"])&&!/\S/.test(G.chars)}function _(G,re){return G&&re.includes(G.type)}function P(G,re){let ee=G.getParentNode(0);return _(ee,re)}function x(G,re){let ee=X(G);return _(ee,re)}function S(G,re){let ee=te(G);return _(ee,re)}function R(G,re){var ee,De,N,J;let F=G.getValue(),j=(ee=G.getParentNode(0))!==null&&ee!==void 0?ee:{},y=(De=(N=(J=j.children)!==null&&J!==void 0?J:j.body)!==null&&N!==void 0?N:j.parts)!==null&&De!==void 0?De:[],L=y.indexOf(F);return L!==-1&&y[L+re]}function X(G){let re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return R(G,-re)}function te(G){return R(G,1)}function $(G){return _(G,["MustacheCommentStatement"])&&typeof G.value=="string"&&G.value.trim()==="prettier-ignore"}function Q(G){let re=G.getValue(),ee=X(G,2);return $(re)||$(ee)}A.exports={getNextNode:te,getPreviousNode:X,hasPrettierIgnore:Q,isLastNodeOfSiblings:D,isNextNodeOfSomeType:S,isNodeOfSomeType:_,isParentOfSomeType:P,isPreviousNodeOfSomeType:x,isVoid:C,isWhitespaceNode:B}}}),RA=Te({"src/language-handlebars/printer-glimmer.js"(m,A){Ve();var{builders:{dedent:p,fill:v,group:D,hardline:f,ifBreak:d,indent:h,join:E,line:C,softline:B},utils:{getDocParts:_,replaceTextEndOfLine:P}}=Tn(),{getPreferredQuote:x,isNonEmptyArray:S}=ye(),{locStart:R,locEnd:X}=BA(),te=MA(),{getNextNode:$,getPreviousNode:Q,hasPrettierIgnore:G,isLastNodeOfSiblings:re,isNextNodeOfSomeType:ee,isNodeOfSomeType:De,isParentOfSomeType:N,isPreviousNodeOfSomeType:J,isVoid:F,isWhitespaceNode:j}=OA(),y=2;function L(Ae,Dt,je){let mt=Ae.getValue();if(!mt)return"";if(G(Ae))return Dt.originalText.slice(R(mt),X(mt));let nn=Dt.singleQuote?"'":'"';switch(mt.type){case"Block":case"Program":case"Template":return D(Ae.map(je,"body"));case"ElementNode":{let Jt=D(q(Ae,je)),Et=Dt.htmlWhitespaceSensitivity==="ignore"&&ee(Ae,["ElementNode"])?B:"";if(F(mt))return[Jt,Et];let V=["</",mt.tag,">"];return mt.children.length===0?[Jt,h(V),Et]:Dt.htmlWhitespaceSensitivity==="ignore"?[Jt,h(U(Ae,Dt,je)),f,h(V),Et]:[Jt,h(D(U(Ae,Dt,je))),h(V),Et]}case"BlockStatement":{let Jt=Ae.getParentNode(1);return Jt&&Jt.inverse&&Jt.inverse.body.length===1&&Jt.inverse.body[0]===mt&&Jt.inverse.body[0].path.parts[0]===Jt.path.parts[0]?[it(Ae,je,Jt.inverse.body[0].path.parts[0]),gt(Ae,je,Dt),yt(Ae,je,Dt)]:[oe(Ae,je),D([gt(Ae,je,Dt),yt(Ae,je,Dt),Xe(Ae,je,Dt)])]}case"ElementModifierStatement":return D(["{{",Bn(Ae,je),"}}"]);case"MustacheStatement":return D([se(mt),Bn(Ae,je),le(mt)]);case"SubExpression":return D(["(",Rn(Ae,je),B,")"]);case"AttrNode":{let Jt=mt.value.type==="TextNode";if(Jt&&mt.value.chars===""&&R(mt.value)===X(mt.value))return mt.name;let Et=Jt?x(mt.value.chars,nn).quote:mt.value.type==="ConcatStatement"?x(mt.value.parts.filter(ke=>ke.type==="TextNode").map(ke=>ke.chars).join(""),nn).quote:"",V=je("value");return[mt.name,"=",Et,mt.name==="class"&&Et?D(h(V)):V,Et]}case"ConcatStatement":return Ae.map(je,"parts");case"Hash":return E(C,Ae.map(je,"pairs"));case"HashPair":return[mt.key,"=",je("value")];case"TextNode":{let Jt=mt.chars.replace(/{{/g,"\\{{"),Et=Ce(Ae);if(Et){if(Et==="class"){let un=Jt.trim().split(/\s+/).join(" "),xr=!1,an=!1;return N(Ae,["ConcatStatement"])&&(J(Ae,["MustacheStatement"])&&/^\s/.test(Jt)&&(xr=!0),ee(Ae,["MustacheStatement"])&&/\s$/.test(Jt)&&un!==""&&(an=!0)),[xr?C:"",un,an?C:""]}return P(Jt)}let V=/^[\t\n\f\r ]*$/.test(Jt),ke=!Q(Ae),ot=!$(Ae);if(Dt.htmlWhitespaceSensitivity!=="ignore"){let un=/^[\t\n\f\r ]*/,xr=/[\t\n\f\r ]*$/,an=ot&&N(Ae,["Template"]),Cn=ke&&N(Ae,["Template"]);if(V){if(Cn||an)return"";let Fn=[C],ht=Qe(Jt);return ht&&(Fn=Bt(ht)),re(Ae)&&(Fn=Fn.map(Ts=>p(Ts))),Fn}let[In]=Jt.match(un),[cr]=Jt.match(xr),cn=[];if(In){cn=[C];let Fn=Qe(In);Fn&&(cn=Bt(Fn)),Jt=Jt.replace(un,"")}let kn=[];if(cr){if(!an){kn=[C];let Fn=Qe(cr);Fn&&(kn=Bt(Fn)),re(Ae)&&(kn=kn.map(ht=>p(ht)))}Jt=Jt.replace(xr,"")}return[...cn,v(zt(Jt)),...kn]}let It=Qe(Jt),Wt=et(Jt),pn=Ct(Jt);if((ke||ot)&&V&&N(Ae,["Block","ElementNode","Template"]))return"";V&&It?(Wt=Math.min(It,y),pn=0):(ee(Ae,["BlockStatement","ElementNode"])&&(pn=Math.max(pn,1)),J(Ae,["BlockStatement","ElementNode"])&&(Wt=Math.max(Wt,1)));let jt="",Nr="";return pn===0&&ee(Ae,["MustacheStatement"])&&(Nr=" "),Wt===0&&J(Ae,["MustacheStatement"])&&(jt=" "),ke&&(Wt=0,jt=""),ot&&(pn=0,Nr=""),Jt=Jt.replace(/^[\t\n\f\r ]+/g,jt).replace(/[\t\n\f\r ]+$/,Nr),[...Bt(Wt),v(zt(Jt)),...Bt(pn)]}case"MustacheCommentStatement":{let Jt=R(mt),Et=X(mt),V=Dt.originalText.charAt(Jt+2)==="~",ke=Dt.originalText.charAt(Et-3)==="~",ot=mt.value.includes("}}")?"--":"";return["{{",V?"~":"","!",ot,mt.value,ot,ke?"~":"","}}"]}case"PathExpression":return mt.original;case"BooleanLiteral":return String(mt.value);case"CommentStatement":return["<!--",mt.value,"-->"];case"StringLiteral":{if(hn(Ae)){let Jt=Dt.singleQuote?'"':"'";return Rt(mt.value,Jt)}return Rt(mt.value,nn)}case"NumberLiteral":return String(mt.value);case"UndefinedLiteral":return"undefined";case"NullLiteral":return"null";default:throw new Error("unknown glimmer type: "+JSON.stringify(mt.type))}}function M(Ae,Dt){return R(Ae)-R(Dt)}function q(Ae,Dt){let je=Ae.getValue(),mt=["attributes","modifiers","comments"].filter(Jt=>S(je[Jt])),nn=mt.flatMap(Jt=>je[Jt]).sort(M);for(let Jt of mt)Ae.each(Et=>{let V=nn.indexOf(Et.getValue());nn.splice(V,1,[C,Dt()])},Jt);return S(je.blockParams)&&nn.push(C,pt(je)),["<",je.tag,h(nn),z(je)]}function U(Ae,Dt,je){let mt=Ae.getValue().children.every(nn=>j(nn));return Dt.htmlWhitespaceSensitivity==="ignore"&&mt?"":Ae.map((nn,Jt)=>{let Et=je();return Jt===0&&Dt.htmlWhitespaceSensitivity==="ignore"?[B,Et]:Et},"children")}function z(Ae){return F(Ae)?d([B,"/>"],[" />",B]):d([B,">"],">")}function se(Ae){let Dt=Ae.escaped===!1?"{{{":"{{",je=Ae.strip&&Ae.strip.open?"~":"";return[Dt,je]}function le(Ae){let Dt=Ae.escaped===!1?"}}}":"}}";return[Ae.strip&&Ae.strip.close?"~":"",Dt]}function ge(Ae){let Dt=se(Ae),je=Ae.openStrip.open?"~":"";return[Dt,je,"#"]}function ce(Ae){let Dt=le(Ae);return[Ae.openStrip.close?"~":"",Dt]}function Le(Ae){let Dt=se(Ae),je=Ae.closeStrip.open?"~":"";return[Dt,je,"/"]}function ie(Ae){let Dt=le(Ae);return[Ae.closeStrip.close?"~":"",Dt]}function We(Ae){let Dt=se(Ae),je=Ae.inverseStrip.open?"~":"";return[Dt,je]}function he(Ae){let Dt=le(Ae);return[Ae.inverseStrip.close?"~":"",Dt]}function oe(Ae,Dt){let je=Ae.getValue(),mt=[],nn=En(Ae,Dt);return nn&&mt.push(D(nn)),S(je.program.blockParams)&&mt.push(pt(je.program)),D([ge(je),dn(Ae,Dt),mt.length>0?h([C,E(C,mt)]):"",B,ce(je)])}function Ue(Ae,Dt){return[Dt.htmlWhitespaceSensitivity==="ignore"?f:"",We(Ae),"else",he(Ae)]}function it(Ae,Dt,je){let mt=Ae.getValue(),nn=Ae.getParentNode(1);return D([We(nn),["else"," ",je],h([C,D(En(Ae,Dt)),...S(mt.program.blockParams)?[C,pt(mt.program)]:[]]),B,he(nn)])}function Xe(Ae,Dt,je){let mt=Ae.getValue();return je.htmlWhitespaceSensitivity==="ignore"?[bt(mt)?B:f,Le(mt),Dt("path"),ie(mt)]:[Le(mt),Dt("path"),ie(mt)]}function bt(Ae){return De(Ae,["BlockStatement"])&&Ae.program.body.every(Dt=>j(Dt))}function be(Ae){return Re(Ae)&&Ae.inverse.body.length===1&&De(Ae.inverse.body[0],["BlockStatement"])&&Ae.inverse.body[0].path.parts[0]===Ae.path.parts[0]}function Re(Ae){return De(Ae,["BlockStatement"])&&Ae.inverse}function gt(Ae,Dt,je){let mt=Ae.getValue();if(bt(mt))return"";let nn=Dt("program");return je.htmlWhitespaceSensitivity==="ignore"?h([f,nn]):h(nn)}function yt(Ae,Dt,je){let mt=Ae.getValue(),nn=Dt("inverse"),Jt=je.htmlWhitespaceSensitivity==="ignore"?[f,nn]:nn;return be(mt)?Jt:Re(mt)?[Ue(mt,je),h(Jt)]:""}function zt(Ae){return _(E(C,qe(Ae)))}function qe(Ae){return Ae.split(/[\t\n\f\r ]+/)}function Ce(Ae){for(let Dt=0;Dt<2;Dt++){let je=Ae.getParentNode(Dt);if(je&&je.type==="AttrNode")return je.name.toLowerCase()}}function Qe(Ae){return Ae=typeof Ae=="string"?Ae:"",Ae.split(`
239
+ `).length-1}function et(Ae){Ae=typeof Ae=="string"?Ae:"";let Dt=(Ae.match(/^([^\S\n\r]*[\n\r])+/g)||[])[0]||"";return Qe(Dt)}function Ct(Ae){Ae=typeof Ae=="string"?Ae:"";let Dt=(Ae.match(/([\n\r][^\S\n\r]*)+$/g)||[])[0]||"";return Qe(Dt)}function Bt(){let Ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return Array.from({length:Math.min(Ae,y)}).fill(f)}function Rt(Ae,Dt){let{quote:je,regex:mt}=x(Ae,Dt);return[je,Ae.replace(mt,`\\${je}`),je]}function hn(Ae){let Dt=0,je=Ae.getParentNode(Dt);for(;je&&De(je,["SubExpression"]);)Dt++,je=Ae.getParentNode(Dt);return!!(je&&De(Ae.getParentNode(Dt+1),["ConcatStatement"])&&De(Ae.getParentNode(Dt+2),["AttrNode"]))}function Rn(Ae,Dt){let je=dn(Ae,Dt),mt=En(Ae,Dt);return mt?h([je,C,D(mt)]):je}function Bn(Ae,Dt){let je=dn(Ae,Dt),mt=En(Ae,Dt);return mt?[h([je,C,mt]),B]:je}function dn(Ae,Dt){return Dt("path")}function En(Ae,Dt){let je=Ae.getValue(),mt=[];if(je.params.length>0){let nn=Ae.map(Dt,"params");mt.push(...nn)}if(je.hash&&je.hash.pairs.length>0){let nn=Dt("hash");mt.push(nn)}return mt.length===0?"":E(C,mt)}function pt(Ae){return["as |",Ae.blockParams.join(" "),"|"]}A.exports={print:L,massageAstNode:te}}}),jA=Te({"src/language-handlebars/parsers.js"(){Ve()}}),$A=Te({"node_modules/linguist-languages/data/Handlebars.json"(m,A){A.exports={name:"Handlebars",type:"markup",color:"#f7931e",aliases:["hbs","htmlbars"],extensions:[".handlebars",".hbs"],tmScope:"text.html.handlebars",aceMode:"handlebars",languageId:155}}}),VA=Te({"src/language-handlebars/index.js"(m,A){Ve();var p=oa(),v=RA(),D=jA(),f=[p($A(),()=>({since:"2.3.0",parsers:["glimmer"],vscodeLanguageIds:["handlebars"]}))],d={glimmer:v};A.exports={languages:f,printers:d,parsers:D}}}),qA=Te({"src/language-graphql/pragma.js"(m,A){Ve();function p(D){return/^\s*#[^\S\n]*@(?:format|prettier)\s*(?:\n|$)/.test(D)}function v(D){return`# @format
240
+
241
+ `+D}A.exports={hasPragma:p,insertPragma:v}}}),UA=Te({"src/language-graphql/loc.js"(m,A){Ve();function p(D){return typeof D.start=="number"?D.start:D.loc&&D.loc.start}function v(D){return typeof D.end=="number"?D.end:D.loc&&D.loc.end}A.exports={locStart:p,locEnd:v}}}),WA=Te({"src/language-graphql/printer-graphql.js"(m,A){Ve();var{builders:{join:p,hardline:v,line:D,softline:f,group:d,indent:h,ifBreak:E}}=Tn(),{isNextLineEmpty:C,isNonEmptyArray:B}=ye(),{insertPragma:_}=qA(),{locStart:P,locEnd:x}=UA();function S(ee,De,N){let J=ee.getValue();if(!J)return"";if(typeof J=="string")return J;switch(J.kind){case"Document":{let F=[];return ee.each((j,y,L)=>{F.push(N()),y!==L.length-1&&(F.push(v),C(De.originalText,j.getValue(),x)&&F.push(v))},"definitions"),[...F,v]}case"OperationDefinition":{let F=De.originalText[P(J)]!=="{",j=!!J.name;return[F?J.operation:"",F&&j?[" ",N("name")]:"",F&&!j&&B(J.variableDefinitions)?" ":"",B(J.variableDefinitions)?d(["(",h([f,p([E("",", "),f],ee.map(N,"variableDefinitions"))]),f,")"]):"",R(ee,N,J),J.selectionSet?!F&&!j?"":" ":"",N("selectionSet")]}case"FragmentDefinition":return["fragment ",N("name"),B(J.variableDefinitions)?d(["(",h([f,p([E("",", "),f],ee.map(N,"variableDefinitions"))]),f,")"]):""," on ",N("typeCondition"),R(ee,N,J)," ",N("selectionSet")];case"SelectionSet":return["{",h([v,p(v,X(ee,De,N,"selections"))]),v,"}"];case"Field":return d([J.alias?[N("alias"),": "]:"",N("name"),J.arguments.length>0?d(["(",h([f,p([E("",", "),f],X(ee,De,N,"arguments"))]),f,")"]):"",R(ee,N,J),J.selectionSet?" ":"",N("selectionSet")]);case"Name":return J.value;case"StringValue":{if(J.block){let F=J.value.replace(/"""/g,"\\$&").split(`
242
+ `);return F.length===1&&(F[0]=F[0].trim()),F.every(j=>j==="")&&(F.length=0),p(v,['"""',...F,'"""'])}return['"',J.value.replace(/["\\]/g,"\\$&").replace(/\n/g,"\\n"),'"']}case"IntValue":case"FloatValue":case"EnumValue":return J.value;case"BooleanValue":return J.value?"true":"false";case"NullValue":return"null";case"Variable":return["$",N("name")];case"ListValue":return d(["[",h([f,p([E("",", "),f],ee.map(N,"values"))]),f,"]"]);case"ObjectValue":return d(["{",De.bracketSpacing&&J.fields.length>0?" ":"",h([f,p([E("",", "),f],ee.map(N,"fields"))]),f,E("",De.bracketSpacing&&J.fields.length>0?" ":""),"}"]);case"ObjectField":case"Argument":return[N("name"),": ",N("value")];case"Directive":return["@",N("name"),J.arguments.length>0?d(["(",h([f,p([E("",", "),f],X(ee,De,N,"arguments"))]),f,")"]):""];case"NamedType":return N("name");case"VariableDefinition":return[N("variable"),": ",N("type"),J.defaultValue?[" = ",N("defaultValue")]:"",R(ee,N,J)];case"ObjectTypeExtension":case"ObjectTypeDefinition":return[N("description"),J.description?v:"",J.kind==="ObjectTypeExtension"?"extend ":"","type ",N("name"),J.interfaces.length>0?[" implements ",...Q(ee,De,N)]:"",R(ee,N,J),J.fields.length>0?[" {",h([v,p(v,X(ee,De,N,"fields"))]),v,"}"]:""];case"FieldDefinition":return[N("description"),J.description?v:"",N("name"),J.arguments.length>0?d(["(",h([f,p([E("",", "),f],X(ee,De,N,"arguments"))]),f,")"]):"",": ",N("type"),R(ee,N,J)];case"DirectiveDefinition":return[N("description"),J.description?v:"","directive ","@",N("name"),J.arguments.length>0?d(["(",h([f,p([E("",", "),f],X(ee,De,N,"arguments"))]),f,")"]):"",J.repeatable?" repeatable":""," on ",p(" | ",ee.map(N,"locations"))];case"EnumTypeExtension":case"EnumTypeDefinition":return[N("description"),J.description?v:"",J.kind==="EnumTypeExtension"?"extend ":"","enum ",N("name"),R(ee,N,J),J.values.length>0?[" {",h([v,p(v,X(ee,De,N,"values"))]),v,"}"]:""];case"EnumValueDefinition":return[N("description"),J.description?v:"",N("name"),R(ee,N,J)];case"InputValueDefinition":return[N("description"),J.description?J.description.block?v:D:"",N("name"),": ",N("type"),J.defaultValue?[" = ",N("defaultValue")]:"",R(ee,N,J)];case"InputObjectTypeExtension":case"InputObjectTypeDefinition":return[N("description"),J.description?v:"",J.kind==="InputObjectTypeExtension"?"extend ":"","input ",N("name"),R(ee,N,J),J.fields.length>0?[" {",h([v,p(v,X(ee,De,N,"fields"))]),v,"}"]:""];case"SchemaExtension":return["extend schema",R(ee,N,J),...J.operationTypes.length>0?[" {",h([v,p(v,X(ee,De,N,"operationTypes"))]),v,"}"]:[]];case"SchemaDefinition":return[N("description"),J.description?v:"","schema",R(ee,N,J)," {",J.operationTypes.length>0?h([v,p(v,X(ee,De,N,"operationTypes"))]):"",v,"}"];case"OperationTypeDefinition":return[N("operation"),": ",N("type")];case"InterfaceTypeExtension":case"InterfaceTypeDefinition":return[N("description"),J.description?v:"",J.kind==="InterfaceTypeExtension"?"extend ":"","interface ",N("name"),J.interfaces.length>0?[" implements ",...Q(ee,De,N)]:"",R(ee,N,J),J.fields.length>0?[" {",h([v,p(v,X(ee,De,N,"fields"))]),v,"}"]:""];case"FragmentSpread":return["...",N("name"),R(ee,N,J)];case"InlineFragment":return["...",J.typeCondition?[" on ",N("typeCondition")]:"",R(ee,N,J)," ",N("selectionSet")];case"UnionTypeExtension":case"UnionTypeDefinition":return d([N("description"),J.description?v:"",d([J.kind==="UnionTypeExtension"?"extend ":"","union ",N("name"),R(ee,N,J),J.types.length>0?[" =",E(""," "),h([E([D," "]),p([D,"| "],ee.map(N,"types"))])]:""])]);case"ScalarTypeExtension":case"ScalarTypeDefinition":return[N("description"),J.description?v:"",J.kind==="ScalarTypeExtension"?"extend ":"","scalar ",N("name"),R(ee,N,J)];case"NonNullType":return[N("type"),"!"];case"ListType":return["[",N("type"),"]"];default:throw new Error("unknown graphql type: "+JSON.stringify(J.kind))}}function R(ee,De,N){if(N.directives.length===0)return"";let J=p(D,ee.map(De,"directives"));return N.kind==="FragmentDefinition"||N.kind==="OperationDefinition"?d([D,J]):[" ",d(h([f,J]))]}function X(ee,De,N,J){return ee.map((F,j,y)=>{let L=N();return j<y.length-1&&C(De.originalText,F.getValue(),x)?[L,v]:L},J)}function te(ee){return ee.kind&&ee.kind!=="Comment"}function $(ee){let De=ee.getValue();if(De.kind==="Comment")return"#"+De.value.trimEnd();throw new Error("Not a comment: "+JSON.stringify(De))}function Q(ee,De,N){let J=ee.getNode(),F=[],{interfaces:j}=J,y=ee.map(L=>N(L),"interfaces");for(let L=0;L<j.length;L++){let M=j[L];F.push(y[L]);let q=j[L+1];if(q){let U=De.originalText.slice(M.loc.end,q.loc.start),z=U.includes("#"),se=U.replace(/#.*/g,"").trim();F.push(se===","?",":" &",z?D:" ")}}return F}function G(ee,De){ee.kind==="StringValue"&&ee.block&&!ee.value.includes(`
243
+ `)&&(De.value=De.value.trim())}G.ignoredProperties=new Set(["loc","comments"]);function re(ee){var De;let N=ee.getValue();return N==null||(De=N.comments)===null||De===void 0?void 0:De.some(J=>J.value.trim()==="prettier-ignore")}A.exports={print:S,massageAstNode:G,hasPrettierIgnore:re,insertPragma:_,printComment:$,canAttachComment:te}}}),GA=Te({"src/language-graphql/options.js"(m,A){Ve();var p=co();A.exports={bracketSpacing:p.bracketSpacing}}}),JA=Te({"src/language-graphql/parsers.js"(){Ve()}}),YA=Te({"node_modules/linguist-languages/data/GraphQL.json"(m,A){A.exports={name:"GraphQL",type:"data",color:"#e10098",extensions:[".graphql",".gql",".graphqls"],tmScope:"source.graphql",aceMode:"text",languageId:139}}}),HA=Te({"src/language-graphql/index.js"(m,A){Ve();var p=oa(),v=WA(),D=GA(),f=JA(),d=[p(YA(),()=>({since:"1.5.0",parsers:["graphql"],vscodeLanguageIds:["graphql"]}))],h={graphql:v};A.exports={languages:d,options:D,printers:h,parsers:f}}}),r1=Te({"node_modules/collapse-white-space/index.js"(m,A){Ve(),A.exports=p;function p(v){return String(v).replace(/\s+/g," ")}}}),s1=Te({"src/language-markdown/loc.js"(m,A){Ve();function p(D){return D.position.start.offset}function v(D){return D.position.end.offset}A.exports={locStart:p,locEnd:v}}}),zA=Te({"src/language-markdown/constants.evaluate.js"(m,A){A.exports={cjkPattern:"(?:[\\u02ea-\\u02eb\\u1100-\\u11ff\\u2e80-\\u2e99\\u2e9b-\\u2ef3\\u2f00-\\u2fd5\\u2ff0-\\u303f\\u3041-\\u3096\\u3099-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312f\\u3131-\\u318e\\u3190-\\u3191\\u3196-\\u31ba\\u31c0-\\u31e3\\u31f0-\\u321e\\u322a-\\u3247\\u3260-\\u327e\\u328a-\\u32b0\\u32c0-\\u32cb\\u32d0-\\u3370\\u337b-\\u337f\\u33e0-\\u33fe\\u3400-\\u4db5\\u4e00-\\u9fef\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufe10-\\ufe1f\\ufe30-\\ufe6f\\uff00-\\uffef]|[\\ud840-\\ud868\\ud86a-\\ud86c\\ud86f-\\ud872\\ud874-\\ud879][\\udc00-\\udfff]|\\ud82c[\\udc00-\\udd1e\\udd50-\\udd52\\udd64-\\udd67]|\\ud83c[\\ude00\\ude50-\\ude51]|\\ud869[\\udc00-\\uded6\\udf00-\\udfff]|\\ud86d[\\udc00-\\udf34\\udf40-\\udfff]|\\ud86e[\\udc00-\\udc1d\\udc20-\\udfff]|\\ud873[\\udc00-\\udea1\\udeb0-\\udfff]|\\ud87a[\\udc00-\\udfe0]|\\ud87e[\\udc00-\\ude1d])(?:[\\ufe00-\\ufe0f]|\\udb40[\\udd00-\\uddef])?",kPattern:"[\\u1100-\\u11ff\\u3001-\\u3003\\u3008-\\u3011\\u3013-\\u301f\\u302e-\\u3030\\u3037\\u30fb\\u3131-\\u318e\\u3200-\\u321e\\u3260-\\u327e\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\ufe45-\\ufe46\\uff61-\\uff65\\uffa0-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc]",punctuationPattern:"[\\u0021-\\u002f\\u003a-\\u0040\\u005b-\\u0060\\u007b-\\u007e\\u00a1\\u00a7\\u00ab\\u00b6-\\u00b7\\u00bb\\u00bf\\u037e\\u0387\\u055a-\\u055f\\u0589-\\u058a\\u05be\\u05c0\\u05c3\\u05c6\\u05f3-\\u05f4\\u0609-\\u060a\\u060c-\\u060d\\u061b\\u061e-\\u061f\\u066a-\\u066d\\u06d4\\u0700-\\u070d\\u07f7-\\u07f9\\u0830-\\u083e\\u085e\\u0964-\\u0965\\u0970\\u09fd\\u0a76\\u0af0\\u0c77\\u0c84\\u0df4\\u0e4f\\u0e5a-\\u0e5b\\u0f04-\\u0f12\\u0f14\\u0f3a-\\u0f3d\\u0f85\\u0fd0-\\u0fd4\\u0fd9-\\u0fda\\u104a-\\u104f\\u10fb\\u1360-\\u1368\\u1400\\u166e\\u169b-\\u169c\\u16eb-\\u16ed\\u1735-\\u1736\\u17d4-\\u17d6\\u17d8-\\u17da\\u1800-\\u180a\\u1944-\\u1945\\u1a1e-\\u1a1f\\u1aa0-\\u1aa6\\u1aa8-\\u1aad\\u1b5a-\\u1b60\\u1bfc-\\u1bff\\u1c3b-\\u1c3f\\u1c7e-\\u1c7f\\u1cc0-\\u1cc7\\u1cd3\\u2010-\\u2027\\u2030-\\u2043\\u2045-\\u2051\\u2053-\\u205e\\u207d-\\u207e\\u208d-\\u208e\\u2308-\\u230b\\u2329-\\u232a\\u2768-\\u2775\\u27c5-\\u27c6\\u27e6-\\u27ef\\u2983-\\u2998\\u29d8-\\u29db\\u29fc-\\u29fd\\u2cf9-\\u2cfc\\u2cfe-\\u2cff\\u2d70\\u2e00-\\u2e2e\\u2e30-\\u2e4f\\u3001-\\u3003\\u3008-\\u3011\\u3014-\\u301f\\u3030\\u303d\\u30a0\\u30fb\\ua4fe-\\ua4ff\\ua60d-\\ua60f\\ua673\\ua67e\\ua6f2-\\ua6f7\\ua874-\\ua877\\ua8ce-\\ua8cf\\ua8f8-\\ua8fa\\ua8fc\\ua92e-\\ua92f\\ua95f\\ua9c1-\\ua9cd\\ua9de-\\ua9df\\uaa5c-\\uaa5f\\uaade-\\uaadf\\uaaf0-\\uaaf1\\uabeb\\ufd3e-\\ufd3f\\ufe10-\\ufe19\\ufe30-\\ufe52\\ufe54-\\ufe61\\ufe63\\ufe68\\ufe6a-\\ufe6b\\uff01-\\uff03\\uff05-\\uff0a\\uff0c-\\uff0f\\uff1a-\\uff1b\\uff1f-\\uff20\\uff3b-\\uff3d\\uff3f\\uff5b\\uff5d\\uff5f-\\uff65]|\\ud800[\\udd00-\\udd02\\udf9f\\udfd0]|\\ud801[\\udd6f]|\\ud802[\\udc57\\udd1f\\udd3f\\ude50-\\ude58\\ude7f\\udef0-\\udef6\\udf39-\\udf3f\\udf99-\\udf9c]|\\ud803[\\udf55-\\udf59]|\\ud804[\\udc47-\\udc4d\\udcbb-\\udcbc\\udcbe-\\udcc1\\udd40-\\udd43\\udd74-\\udd75\\uddc5-\\uddc8\\uddcd\\udddb\\udddd-\\udddf\\ude38-\\ude3d\\udea9]|\\ud805[\\udc4b-\\udc4f\\udc5b\\udc5d\\udcc6\\uddc1-\\uddd7\\ude41-\\ude43\\ude60-\\ude6c\\udf3c-\\udf3e]|\\ud806[\\udc3b\\udde2\\ude3f-\\ude46\\ude9a-\\ude9c\\ude9e-\\udea2]|\\ud807[\\udc41-\\udc45\\udc70-\\udc71\\udef7-\\udef8\\udfff]|\\ud809[\\udc70-\\udc74]|\\ud81a[\\ude6e-\\ude6f\\udef5\\udf37-\\udf3b\\udf44]|\\ud81b[\\ude97-\\ude9a\\udfe2]|\\ud82f[\\udc9f]|\\ud836[\\ude87-\\ude8b]|\\ud83a[\\udd5e-\\udd5f]"}}}),Bp=Te({"src/language-markdown/utils.js"(m,A){Ve();var{getLast:p}=ye(),{locStart:v,locEnd:D}=s1(),{cjkPattern:f,kPattern:d,punctuationPattern:h}=zA(),E=["liquidNode","inlineCode","emphasis","esComment","strong","delete","wikiLink","link","linkReference","image","imageReference","footnote","footnoteReference","sentence","whitespace","word","break","inlineMath"],C=[...E,"tableCell","paragraph","heading"],B=new RegExp(d),_=new RegExp(h);function P($,Q){let G="non-cjk",re="cj-letter",ee="k-letter",De="cjk-punctuation",N=[],J=(Q.proseWrap==="preserve"?$:$.replace(new RegExp(`(${f})
244
+ (${f})`,"g"),"$1$2")).split(/([\t\n ]+)/);for(let[j,y]of J.entries()){if(j%2===1){N.push({type:"whitespace",value:/\n/.test(y)?`
245
+ `:" "});continue}if((j===0||j===J.length-1)&&y==="")continue;let L=y.split(new RegExp(`(${f})`));for(let[M,q]of L.entries())if(!((M===0||M===L.length-1)&&q==="")){if(M%2===0){q!==""&&F({type:"word",value:q,kind:G,hasLeadingPunctuation:_.test(q[0]),hasTrailingPunctuation:_.test(p(q))});continue}F(_.test(q)?{type:"word",value:q,kind:De,hasLeadingPunctuation:!0,hasTrailingPunctuation:!0}:{type:"word",value:q,kind:B.test(q)?ee:re,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1})}}return N;function F(j){let y=p(N);y&&y.type==="word"&&(y.kind===G&&j.kind===re&&!y.hasTrailingPunctuation||y.kind===re&&j.kind===G&&!j.hasLeadingPunctuation?N.push({type:"whitespace",value:" "}):!L(G,De)&&![y.value,j.value].some(M=>/\u3000/.test(M))&&N.push({type:"whitespace",value:""})),N.push(j);function L(M,q){return y.kind===M&&j.kind===q||y.kind===q&&j.kind===M}}}function x($,Q){let[,G,re,ee]=Q.slice($.position.start.offset,$.position.end.offset).match(/^\s*(\d+)(\.|\))(\s*)/);return{numberText:G,marker:re,leadingSpaces:ee}}function S($,Q){if(!$.ordered||$.children.length<2)return!1;let G=Number(x($.children[0],Q.originalText).numberText),re=Number(x($.children[1],Q.originalText).numberText);if(G===0&&$.children.length>2){let ee=Number(x($.children[2],Q.originalText).numberText);return re===1&&ee===1}return re===1}function R($,Q){let{value:G}=$;return $.position.end.offset===Q.length&&G.endsWith(`
246
+ `)&&Q.endsWith(`
247
+ `)?G.slice(0,-1):G}function X($,Q){return(function G(re,ee,De){let N=Object.assign({},Q(re,ee,De));return N.children&&(N.children=N.children.map((J,F)=>G(J,F,[N,...De]))),N})($,null,[])}function te($){if($?.type!=="link"||$.children.length!==1)return!1;let[Q]=$.children;return v($)===v(Q)&&D($)===D(Q)}A.exports={mapAst:X,splitText:P,punctuationPattern:h,getFencedCodeBlockValue:R,getOrderedListItemInfo:x,hasGitDiffFriendlyOrderedList:S,INLINE_NODE_TYPES:E,INLINE_NODE_WRAPPER_TYPES:C,isAutolink:te}}}),XA=Te({"src/language-markdown/embed.js"(m,A){Ve();var{inferParserByLanguage:p,getMaxContinuousCount:v}=ye(),{builders:{hardline:D,markAsRoot:f},utils:{replaceEndOfLine:d}}=Tn(),h=Pp(),{getFencedCodeBlockValue:E}=Bp();function C(B,_,P,x){let S=B.getValue();if(S.type==="code"&&S.lang!==null){let R=p(S.lang,x);if(R){let X=x.__inJsTemplate?"~":"`",te=X.repeat(Math.max(3,v(S.value,X)+1)),$={parser:R};S.lang==="tsx"&&($.filepath="dummy.tsx");let Q=P(E(S,x.originalText),$,{stripTrailingHardline:!0});return f([te,S.lang,S.meta?" "+S.meta:"",D,d(Q),D,te])}}switch(S.type){case"front-matter":return h(S,P);case"importExport":return[P(S.value,{parser:"babel"},{stripTrailingHardline:!0}),D];case"jsx":return P(`<$>${S.value}</$>`,{parser:"__js_expression",rootMarker:"mdx"},{stripTrailingHardline:!0})}return null}A.exports=C}}),i1=Te({"src/language-markdown/pragma.js"(m,A){Ve();var p=n1(),v=["format","prettier"];function D(f){let d=`@(${v.join("|")})`,h=new RegExp([`<!--\\s*${d}\\s*-->`,`{\\s*\\/\\*\\s*${d}\\s*\\*\\/\\s*}`,`<!--.*\r?
248
+ [\\s\\S]*(^|
249
+ )[^\\S
250
+ ]*${d}[^\\S
251
+ ]*($|
252
+ )[\\s\\S]*
253
+ .*-->`].join("|"),"m"),E=f.match(h);return E?.index===0}A.exports={startWithPragma:D,hasPragma:f=>D(p(f).content.trimStart()),insertPragma:f=>{let d=p(f),h=`<!-- @${v[0]} -->`;return d.frontMatter?`${d.frontMatter.raw}
254
+
255
+ ${h}
256
+
257
+ ${d.content}`:`${h}
258
+
259
+ ${d.content}`}}}}),QA=Te({"src/language-markdown/print-preprocess.js"(m,A){Ve();var p=Jr(),{getOrderedListItemInfo:v,mapAst:D,splitText:f}=Bp(),d=/^.$/su;function h(te,$){return te=B(te,$),te=x(te),te=C(te,$),te=R(te,$),te=X(te,$),te=S(te,$),te=E(te),te=_(te),te}function E(te){return D(te,$=>$.type!=="import"&&$.type!=="export"?$:Object.assign(Object.assign({},$),{},{type:"importExport"}))}function C(te,$){return D(te,Q=>Q.type!=="inlineCode"||$.proseWrap==="preserve"?Q:Object.assign(Object.assign({},Q),{},{value:Q.value.replace(/\s+/g," ")}))}function B(te,$){return D(te,Q=>Q.type!=="text"||Q.value==="*"||Q.value==="_"||!d.test(Q.value)||Q.position.end.offset-Q.position.start.offset===Q.value.length?Q:Object.assign(Object.assign({},Q),{},{value:$.originalText.slice(Q.position.start.offset,Q.position.end.offset)}))}function _(te){return P(te,($,Q)=>$.type==="importExport"&&Q.type==="importExport",($,Q)=>({type:"importExport",value:$.value+`
260
+
261
+ `+Q.value,position:{start:$.position.start,end:Q.position.end}}))}function P(te,$,Q){return D(te,G=>{if(!G.children)return G;let re=G.children.reduce((ee,De)=>{let N=p(ee);return N&&$(N,De)?ee.splice(-1,1,Q(N,De)):ee.push(De),ee},[]);return Object.assign(Object.assign({},G),{},{children:re})})}function x(te){return P(te,($,Q)=>$.type==="text"&&Q.type==="text",($,Q)=>({type:"text",value:$.value+Q.value,position:{start:$.position.start,end:Q.position.end}}))}function S(te,$){return D(te,(Q,G,re)=>{let[ee]=re;if(Q.type!=="text")return Q;let{value:De}=Q;return ee.type==="paragraph"&&(G===0&&(De=De.trimStart()),G===ee.children.length-1&&(De=De.trimEnd())),{type:"sentence",position:Q.position,children:f(De,$)}})}function R(te,$){return D(te,(Q,G,re)=>{if(Q.type==="code"){let ee=/^\n?(?: {4,}|\t)/.test($.originalText.slice(Q.position.start.offset,Q.position.end.offset));if(Q.isIndented=ee,ee)for(let De=0;De<re.length;De++){let N=re[De];if(N.hasIndentedCodeblock)break;N.type==="list"&&(N.hasIndentedCodeblock=!0)}}return Q})}function X(te,$){return D(te,(re,ee,De)=>{if(re.type==="list"&&re.children.length>0){for(let N=0;N<De.length;N++){let J=De[N];if(J.type==="list"&&!J.isAligned)return re.isAligned=!1,re}re.isAligned=G(re)}return re});function Q(re){return re.children.length===0?-1:re.children[0].position.start.column-1}function G(re){if(!re.ordered)return!0;let[ee,De]=re.children;if(v(ee,$.originalText).leadingSpaces.length>1)return!0;let N=Q(ee);if(N===-1)return!1;if(re.children.length===1)return N%$.tabWidth===0;let J=Q(De);return N!==J?!1:N%$.tabWidth===0?!0:v(De,$.originalText).leadingSpaces.length>1}}A.exports=h}}),KA=Te({"src/language-markdown/clean.js"(m,A){Ve();var p=r1(),{isFrontMatterNode:v}=ye(),{startWithPragma:D}=i1(),f=new Set(["position","raw"]);function d(h,E,C){if((h.type==="front-matter"||h.type==="code"||h.type==="yaml"||h.type==="import"||h.type==="export"||h.type==="jsx")&&delete E.value,h.type==="list"&&delete E.isAligned,(h.type==="list"||h.type==="listItem")&&(delete E.spread,delete E.loose),h.type==="text"||(h.type==="inlineCode"&&(E.value=h.value.replace(/[\t\n ]+/g," ")),h.type==="wikiLink"&&(E.value=h.value.trim().replace(/[\t\n]+/g," ")),(h.type==="definition"||h.type==="linkReference"||h.type==="imageReference")&&(E.label=p(h.label)),(h.type==="definition"||h.type==="link"||h.type==="image")&&h.title&&(E.title=h.title.replace(/\\(["')])/g,"$1")),C&&C.type==="root"&&C.children.length>0&&(C.children[0]===h||v(C.children[0])&&C.children[1]===h)&&h.type==="html"&&D(h.value)))return null}d.ignoredProperties=f,A.exports=d}}),ZA=Te({"src/language-markdown/printer-markdown.js"(m,A){Ve();var p=r1(),{getLast:v,getMinNotPresentContinuousCount:D,getMaxContinuousCount:f,getStringWidth:d,isNonEmptyArray:h}=ye(),{builders:{breakParent:E,join:C,line:B,literalline:_,markAsRoot:P,hardline:x,softline:S,ifBreak:R,fill:X,align:te,indent:$,group:Q,hardlineWithoutBreakParent:G},utils:{normalizeDoc:re,replaceTextEndOfLine:ee},printer:{printDocToString:De}}=Tn(),N=XA(),{insertPragma:J}=i1(),{locStart:F,locEnd:j}=s1(),y=QA(),L=KA(),{getFencedCodeBlockValue:M,hasGitDiffFriendlyOrderedList:q,splitText:U,punctuationPattern:z,INLINE_NODE_TYPES:se,INLINE_NODE_WRAPPER_TYPES:le,isAutolink:ge}=Bp(),ce=new Set(["importExport"]),Le=["heading","tableCell","link","wikiLink"],ie=new Set(["listItem","definition","footnoteDefinition"]);function We(pt,Ae,Dt){let je=pt.getValue();if(Bt(pt))return U(Ae.originalText.slice(je.position.start.offset,je.position.end.offset),Ae).map(mt=>mt.type==="word"?mt.value:mt.value===""?"":be(pt,mt.value,Ae));switch(je.type){case"front-matter":return Ae.originalText.slice(je.position.start.offset,je.position.end.offset);case"root":return je.children.length===0?"":[re(gt(pt,Ae,Dt)),ce.has(qe(je).type)?"":x];case"paragraph":return yt(pt,Ae,Dt,{postprocessor:X});case"sentence":return yt(pt,Ae,Dt);case"word":{let mt=je.value.replace(/\*/g,"\\$&").replace(new RegExp([`(^|${z})(_+)`,`(_+)(${z}|$)`].join("|"),"g"),(Et,V,ke,ot,It)=>(ke?`${V}${ke}`:`${ot}${It}`).replace(/_/g,"\\_")),nn=(Et,V,ke)=>Et.type==="sentence"&&ke===0,Jt=(Et,V,ke)=>ge(Et.children[ke-1]);return mt!==je.value&&(pt.match(void 0,nn,Jt)||pt.match(void 0,nn,(Et,V,ke)=>Et.type==="emphasis"&&ke===0,Jt))&&(mt=mt.replace(/^(\\?[*_])+/,Et=>Et.replace(/\\/g,""))),mt}case"whitespace":{let mt=pt.getParentNode(),nn=mt.children.indexOf(je),Jt=mt.children[nn+1],Et=Jt&&/^>|^(?:[*+-]|#{1,6}|\d+[).])$/.test(Jt.value)?"never":Ae.proseWrap;return be(pt,je.value,{proseWrap:Et})}case"emphasis":{let mt;if(ge(je.children[0]))mt=Ae.originalText[je.position.start.offset];else{let nn=pt.getParentNode(),Jt=nn.children.indexOf(je),Et=nn.children[Jt-1],V=nn.children[Jt+1];mt=Et&&Et.type==="sentence"&&Et.children.length>0&&v(Et.children).type==="word"&&!v(Et.children).hasTrailingPunctuation||V&&V.type==="sentence"&&V.children.length>0&&V.children[0].type==="word"&&!V.children[0].hasLeadingPunctuation||bt(pt,"emphasis")?"*":"_"}return[mt,yt(pt,Ae,Dt),mt]}case"strong":return["**",yt(pt,Ae,Dt),"**"];case"delete":return["~~",yt(pt,Ae,Dt),"~~"];case"inlineCode":{let mt=D(je.value,"`"),nn="`".repeat(mt||1),Jt=mt&&!/^\s/.test(je.value)?" ":"";return[nn,Jt,je.value,Jt,nn]}case"wikiLink":{let mt="";return Ae.proseWrap==="preserve"?mt=je.value:mt=je.value.replace(/[\t\n]+/g," "),["[[",mt,"]]"]}case"link":switch(Ae.originalText[je.position.start.offset]){case"<":{let mt="mailto:";return["<",je.url.startsWith(mt)&&Ae.originalText.slice(je.position.start.offset+1,je.position.start.offset+1+mt.length)!==mt?je.url.slice(mt.length):je.url,">"]}case"[":return["[",yt(pt,Ae,Dt),"](",Rt(je.url,")"),hn(je.title,Ae),")"];default:return Ae.originalText.slice(je.position.start.offset,je.position.end.offset)}case"image":return["![",je.alt||"","](",Rt(je.url,")"),hn(je.title,Ae),")"];case"blockquote":return["> ",te("> ",yt(pt,Ae,Dt))];case"heading":return["#".repeat(je.depth)+" ",yt(pt,Ae,Dt)];case"code":{if(je.isIndented){let Jt=" ".repeat(4);return te(Jt,[Jt,...ee(je.value,x)])}let mt=Ae.__inJsTemplate?"~":"`",nn=mt.repeat(Math.max(3,f(je.value,mt)+1));return[nn,je.lang||"",je.meta?" "+je.meta:"",x,...ee(M(je,Ae.originalText),x),x,nn]}case"html":{let mt=pt.getParentNode(),nn=mt.type==="root"&&v(mt.children)===je?je.value.trimEnd():je.value,Jt=/^<!--.*-->$/s.test(nn);return ee(nn,Jt?x:P(_))}case"list":{let mt=Ue(je,pt.getParentNode()),nn=q(je,Ae);return yt(pt,Ae,Dt,{processor:(Jt,Et)=>{let V=ot(),ke=Jt.getValue();if(ke.children.length===2&&ke.children[1].type==="html"&&ke.children[0].position.start.column!==ke.children[1].position.start.column)return[V,he(Jt,Ae,Dt,V)];return[V,te(" ".repeat(V.length),he(Jt,Ae,Dt,V))];function ot(){let It=je.ordered?(Et===0?je.start:nn?1:je.start+Et)+(mt%2===0?". ":") "):mt%2===0?"- ":"* ";return je.isAligned||je.hasIndentedCodeblock?oe(It,Ae):It}}})}case"thematicBreak":{let mt=Xe(pt,"list");return mt===-1?"---":Ue(pt.getParentNode(mt),pt.getParentNode(mt+1))%2===0?"***":"---"}case"linkReference":return["[",yt(pt,Ae,Dt),"]",je.referenceType==="full"?dn(je):je.referenceType==="collapsed"?"[]":""];case"imageReference":return je.referenceType==="full"?["![",je.alt||"","]",dn(je)]:["![",je.alt,"]",je.referenceType==="collapsed"?"[]":""];case"definition":{let mt=Ae.proseWrap==="always"?B:" ";return Q([dn(je),":",$([mt,Rt(je.url),je.title===null?"":[mt,hn(je.title,Ae,!1)]])])}case"footnote":return["[^",yt(pt,Ae,Dt),"]"];case"footnoteReference":return En(je);case"footnoteDefinition":{let mt=pt.getParentNode().children[pt.getName()+1],nn=je.children.length===1&&je.children[0].type==="paragraph"&&(Ae.proseWrap==="never"||Ae.proseWrap==="preserve"&&je.children[0].position.start.line===je.children[0].position.end.line);return[En(je),": ",nn?yt(pt,Ae,Dt):Q([te(" ".repeat(4),yt(pt,Ae,Dt,{processor:(Jt,Et)=>Et===0?Q([S,Dt()]):Dt()})),mt&&mt.type==="footnoteDefinition"?S:""])]}case"table":return Re(pt,Ae,Dt);case"tableCell":return yt(pt,Ae,Dt);case"break":return/\s/.test(Ae.originalText[je.position.start.offset])?[" ",P(_)]:["\\",x];case"liquidNode":return ee(je.value,x);case"importExport":return[je.value,x];case"esComment":return["{/* ",je.value," */}"];case"jsx":return je.value;case"math":return["$$",x,je.value?[...ee(je.value,x),x]:"","$$"];case"inlineMath":return Ae.originalText.slice(F(je),j(je));default:throw new Error(`Unknown markdown type ${JSON.stringify(je.type)}`)}}function he(pt,Ae,Dt,je){let mt=pt.getValue(),nn=mt.checked===null?"":mt.checked?"[x] ":"[ ] ";return[nn,yt(pt,Ae,Dt,{processor:(Jt,Et)=>{if(Et===0&&Jt.getValue().type!=="list")return te(" ".repeat(nn.length),Dt());let V=" ".repeat(Rn(Ae.tabWidth-je.length,0,3));return[V,te(V,Dt())]}})]}function oe(pt,Ae){let Dt=je();return pt+" ".repeat(Dt>=4?0:Dt);function je(){let mt=pt.length%Ae.tabWidth;return mt===0?0:Ae.tabWidth-mt}}function Ue(pt,Ae){return it(pt,Ae,Dt=>Dt.ordered===pt.ordered)}function it(pt,Ae,Dt){let je=-1;for(let mt of Ae.children)if(mt.type===pt.type&&Dt(mt)?je++:je=-1,mt===pt)return je}function Xe(pt,Ae){let Dt=Array.isArray(Ae)?Ae:[Ae],je=-1,mt;for(;mt=pt.getParentNode(++je);)if(Dt.includes(mt.type))return je;return-1}function bt(pt,Ae){let Dt=Xe(pt,Ae);return Dt===-1?null:pt.getParentNode(Dt)}function be(pt,Ae,Dt){if(Dt.proseWrap==="preserve"&&Ae===`
262
+ `)return x;let je=Dt.proseWrap==="always"&&!bt(pt,Le);return Ae!==""?je?B:" ":je?S:""}function Re(pt,Ae,Dt){let je=pt.getValue(),mt=[],nn=pt.map(It=>It.map((Wt,pn)=>{let jt=De(Dt(),Ae).formatted,Nr=d(jt);return mt[pn]=Math.max(mt[pn]||3,Nr),{text:jt,width:Nr}},"children"),"children"),Jt=V(!1);if(Ae.proseWrap!=="never")return[E,Jt];let Et=V(!0);return[E,Q(R(Et,Jt))];function V(It){let Wt=[ot(nn[0],It),ke(It)];return nn.length>1&&Wt.push(C(G,nn.slice(1).map(pn=>ot(pn,It)))),C(G,Wt)}function ke(It){return`| ${mt.map((Wt,pn)=>{let jt=je.align[pn],Nr=jt==="center"||jt==="left"?":":"-",un=jt==="center"||jt==="right"?":":"-",xr=It?"-":"-".repeat(Wt-2);return`${Nr}${xr}${un}`}).join(" | ")} |`}function ot(It,Wt){return`| ${It.map((pn,jt)=>{let{text:Nr,width:un}=pn;if(Wt)return Nr;let xr=mt[jt]-un,an=je.align[jt],Cn=0;an==="right"?Cn=xr:an==="center"&&(Cn=Math.floor(xr/2));let In=xr-Cn;return`${" ".repeat(Cn)}${Nr}${" ".repeat(In)}`}).join(" | ")} |`}}function gt(pt,Ae,Dt){let je=[],mt=null,{children:nn}=pt.getValue();for(let[Jt,Et]of nn.entries())switch(Ce(Et)){case"start":mt===null&&(mt={index:Jt,offset:Et.position.end.offset});break;case"end":mt!==null&&(je.push({start:mt,end:{index:Jt,offset:Et.position.start.offset}}),mt=null);break}return yt(pt,Ae,Dt,{processor:(Jt,Et)=>{if(je.length>0){let V=je[0];if(Et===V.start.index)return[zt(nn[V.start.index]),Ae.originalText.slice(V.start.offset,V.end.offset),zt(nn[V.end.index])];if(V.start.index<Et&&Et<V.end.index)return!1;if(Et===V.end.index)return je.shift(),!1}return Dt()}})}function yt(pt,Ae,Dt){let je=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},{postprocessor:mt}=je,nn=je.processor||(()=>Dt()),Jt=pt.getValue(),Et=[],V;return pt.each((ke,ot)=>{let It=ke.getValue(),Wt=nn(ke,ot);if(Wt!==!1){let pn={parts:Et,prevNode:V,parentNode:Jt};Qe(It,pn)&&(Et.push(x),V&&ce.has(V.type)||(et(It,pn)||Ct(It,pn))&&Et.push(x),Ct(It,pn)&&Et.push(x)),Et.push(Wt),V=It}},"children"),mt?mt(Et):Et}function zt(pt){if(pt.type==="html")return pt.value;if(pt.type==="paragraph"&&Array.isArray(pt.children)&&pt.children.length===1&&pt.children[0].type==="esComment")return["{/* ",pt.children[0].value," */}"]}function qe(pt){let Ae=pt;for(;h(Ae.children);)Ae=v(Ae.children);return Ae}function Ce(pt){let Ae;if(pt.type==="html")Ae=pt.value.match(/^<!--\s*prettier-ignore(?:-(start|end))?\s*-->$/);else{let Dt;pt.type==="esComment"?Dt=pt:pt.type==="paragraph"&&pt.children.length===1&&pt.children[0].type==="esComment"&&(Dt=pt.children[0]),Dt&&(Ae=Dt.value.match(/^prettier-ignore(?:-(start|end))?$/))}return Ae?Ae[1]||"next":!1}function Qe(pt,Ae){let Dt=Ae.parts.length===0,je=se.includes(pt.type),mt=pt.type==="html"&&le.includes(Ae.parentNode.type);return!Dt&&!je&&!mt}function et(pt,Ae){var Dt,je,mt;let nn=(Ae.prevNode&&Ae.prevNode.type)===pt.type&&ie.has(pt.type),Jt=Ae.parentNode.type==="listItem"&&!Ae.parentNode.loose,Et=((Dt=Ae.prevNode)===null||Dt===void 0?void 0:Dt.type)==="listItem"&&Ae.prevNode.loose,V=Ce(Ae.prevNode)==="next",ke=pt.type==="html"&&((je=Ae.prevNode)===null||je===void 0?void 0:je.type)==="html"&&Ae.prevNode.position.end.line+1===pt.position.start.line,ot=pt.type==="html"&&Ae.parentNode.type==="listItem"&&((mt=Ae.prevNode)===null||mt===void 0?void 0:mt.type)==="paragraph"&&Ae.prevNode.position.end.line+1===pt.position.start.line;return Et||!(nn||Jt||V||ke||ot)}function Ct(pt,Ae){let Dt=Ae.prevNode&&Ae.prevNode.type==="list",je=pt.type==="code"&&pt.isIndented;return Dt&&je}function Bt(pt){let Ae=bt(pt,["linkReference","imageReference"]);return Ae&&(Ae.type!=="linkReference"||Ae.referenceType!=="full")}function Rt(pt){let Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Dt=[" ",...Array.isArray(Ae)?Ae:[Ae]];return new RegExp(Dt.map(je=>`\\${je}`).join("|")).test(pt)?`<${pt}>`:pt}function hn(pt,Ae){let Dt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!pt)return"";if(Dt)return" "+hn(pt,Ae,!1);if(pt=pt.replace(/\\(["')])/g,"$1"),pt.includes('"')&&pt.includes("'")&&!pt.includes(")"))return`(${pt})`;let je=pt.split("'").length-1,mt=pt.split('"').length-1,nn=je>mt?'"':mt>je||Ae.singleQuote?"'":'"';return pt=pt.replace(/\\/,"\\\\"),pt=pt.replace(new RegExp(`(${nn})`,"g"),"\\$1"),`${nn}${pt}${nn}`}function Rn(pt,Ae,Dt){return pt<Ae?Ae:pt>Dt?Dt:pt}function Bn(pt){let Ae=Number(pt.getName());if(Ae===0)return!1;let Dt=pt.getParentNode().children[Ae-1];return Ce(Dt)==="next"}function dn(pt){return`[${p(pt.label)}]`}function En(pt){return`[^${pt.label}]`}A.exports={preprocess:y,print:We,embed:N,massageAstNode:L,hasPrettierIgnore:Bn,insertPragma:J}}}),ew=Te({"src/language-markdown/options.js"(m,A){Ve();var p=co();A.exports={proseWrap:p.proseWrap,singleQuote:p.singleQuote}}}),tw=Te({"src/language-markdown/parsers.js"(){Ve()}}),a1=Te({"node_modules/linguist-languages/data/Markdown.json"(m,A){A.exports={name:"Markdown",type:"prose",color:"#083fa1",aliases:["pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".md",".livemd",".markdown",".mdown",".mdwn",".mdx",".mkd",".mkdn",".mkdown",".ronn",".scd",".workbook"],filenames:["contents.lr"],tmScope:"source.gfm",languageId:222}}}),nw=Te({"src/language-markdown/index.js"(m,A){Ve();var p=oa(),v=ZA(),D=ew(),f=tw(),d=[p(a1(),E=>({since:"1.8.0",parsers:["markdown"],vscodeLanguageIds:["markdown"],filenames:[...E.filenames,"README"],extensions:E.extensions.filter(C=>C!==".mdx")})),p(a1(),()=>({name:"MDX",since:"1.15.0",parsers:["mdx"],vscodeLanguageIds:["mdx"],filenames:[],extensions:[".mdx"]}))],h={mdast:v};A.exports={languages:d,options:D,printers:h,parsers:f}}}),rw=Te({"src/language-html/clean.js"(m,A){Ve();var{isFrontMatterNode:p}=ye(),v=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan"]);function D(f,d){if(f.type==="text"||f.type==="comment"||p(f)||f.type==="yaml"||f.type==="toml")return null;f.type==="attribute"&&delete d.value,f.type==="docType"&&delete d.value}D.ignoredProperties=v,A.exports=D}}),sw=Te({"src/language-html/constants.evaluate.js"(m,A){A.exports={CSS_DISPLAY_TAGS:{area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"block",rp:"none",script:"block",source:"block",style:"none",template:"inline",track:"block",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",fieldset:"block",button:"inline-block",details:"block",summary:"block",dialog:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",select:"inline-block",option:"block",optgroup:"block"},CSS_DISPLAY_DEFAULT:"inline",CSS_WHITE_SPACE_TAGS:{listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"},CSS_WHITE_SPACE_DEFAULT:"normal"}}}),iw=Te({"src/language-html/utils/is-unknown-namespace.js"(m,A){Ve();function p(v){return v.type==="element"&&!v.hasExplicitNamespace&&!["html","svg"].includes(v.namespace)}A.exports=p}}),fo=Te({"src/language-html/utils/index.js"(m,A){Ve();var{inferParserByLanguage:p,isFrontMatterNode:v}=ye(),{builders:{line:D,hardline:f,join:d},utils:{getDocParts:h,replaceTextEndOfLine:E}}=Tn(),{CSS_DISPLAY_TAGS:C,CSS_DISPLAY_DEFAULT:B,CSS_WHITE_SPACE_TAGS:_,CSS_WHITE_SPACE_DEFAULT:P}=sw(),x=iw(),S=new Set([" ",`
263
+ `,"\f","\r"," "]),R=V=>V.replace(/^[\t\n\f\r ]+/,""),X=V=>V.replace(/[\t\n\f\r ]+$/,""),te=V=>R(X(V)),$=V=>V.replace(/^[\t\f\r ]*\n/g,""),Q=V=>$(X(V)),G=V=>V.split(/[\t\n\f\r ]+/),re=V=>V.match(/^[\t\n\f\r ]*/)[0],ee=V=>{let[,ke,ot,It]=V.match(/^([\t\n\f\r ]*)(.*?)([\t\n\f\r ]*)$/s);return{leadingWhitespace:ke,trailingWhitespace:It,text:ot}},De=V=>/[\t\n\f\r ]/.test(V);function N(V,ke){return!!(V.type==="ieConditionalComment"&&V.lastChild&&!V.lastChild.isSelfClosing&&!V.lastChild.endSourceSpan||V.type==="ieConditionalComment"&&!V.complete||et(V)&&V.children.some(ot=>ot.type!=="text"&&ot.type!=="interpolation")||je(V,ke)&&!y(V)&&V.type!=="interpolation")}function J(V){return V.type==="attribute"||!V.parent||!V.prev?!1:F(V.prev)}function F(V){return V.type==="comment"&&V.value.trim()==="prettier-ignore"}function j(V){return V.type==="text"||V.type==="comment"}function y(V){return V.type==="element"&&(V.fullName==="script"||V.fullName==="style"||V.fullName==="svg:style"||x(V)&&(V.name==="script"||V.name==="style"))}function L(V){return V.children&&!y(V)}function M(V){return y(V)||V.type==="interpolation"||q(V)}function q(V){return hn(V).startsWith("pre")}function U(V,ke){let ot=It();if(ot&&!V.prev&&V.parent&&V.parent.tagDefinition&&V.parent.tagDefinition.ignoreFirstLf)return V.type==="interpolation";return ot;function It(){return v(V)?!1:(V.type==="text"||V.type==="interpolation")&&V.prev&&(V.prev.type==="text"||V.prev.type==="interpolation")?!0:!V.parent||V.parent.cssDisplay==="none"?!1:et(V.parent)?!0:!(!V.prev&&(V.parent.type==="root"||et(V)&&V.parent||y(V.parent)||Ae(V.parent,ke)||!yt(V.parent.cssDisplay))||V.prev&&!Ce(V.prev.cssDisplay))}}function z(V,ke){return v(V)?!1:(V.type==="text"||V.type==="interpolation")&&V.next&&(V.next.type==="text"||V.next.type==="interpolation")?!0:!V.parent||V.parent.cssDisplay==="none"?!1:et(V.parent)?!0:!(!V.next&&(V.parent.type==="root"||et(V)&&V.parent||y(V.parent)||Ae(V.parent,ke)||!zt(V.parent.cssDisplay))||V.next&&!qe(V.next.cssDisplay))}function se(V){return Qe(V.cssDisplay)&&!y(V)}function le(V){return v(V)||V.next&&V.sourceSpan.end&&V.sourceSpan.end.line+1<V.next.sourceSpan.start.line}function ge(V){return ce(V)||V.type==="element"&&V.children.length>0&&(["body","script","style"].includes(V.name)||V.children.some(ke=>Xe(ke)))||V.firstChild&&V.firstChild===V.lastChild&&V.firstChild.type!=="text"&&he(V.firstChild)&&(!V.lastChild.isTrailingSpaceSensitive||oe(V.lastChild))}function ce(V){return V.type==="element"&&V.children.length>0&&(["html","head","ul","ol","select"].includes(V.name)||V.cssDisplay.startsWith("table")&&V.cssDisplay!=="table-cell")}function Le(V){return Ue(V)||V.prev&&ie(V.prev)||We(V)}function ie(V){return Ue(V)||V.type==="element"&&V.fullName==="br"||We(V)}function We(V){return he(V)&&oe(V)}function he(V){return V.hasLeadingSpaces&&(V.prev?V.prev.sourceSpan.end.line<V.sourceSpan.start.line:V.parent.type==="root"||V.parent.startSourceSpan.end.line<V.sourceSpan.start.line)}function oe(V){return V.hasTrailingSpaces&&(V.next?V.next.sourceSpan.start.line>V.sourceSpan.end.line:V.parent.type==="root"||V.parent.endSourceSpan&&V.parent.endSourceSpan.start.line>V.sourceSpan.end.line)}function Ue(V){switch(V.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(V.name)}return!1}function it(V){return V.lastChild?it(V.lastChild):V}function Xe(V){return V.children&&V.children.some(ke=>ke.type!=="text")}function bt(V){let{type:ke,lang:ot}=V.attrMap;if(ke==="module"||ke==="text/javascript"||ke==="text/babel"||ke==="application/javascript"||ot==="jsx")return"babel";if(ke==="application/x-typescript"||ot==="ts"||ot==="tsx")return"typescript";if(ke==="text/markdown")return"markdown";if(ke==="text/html")return"html";if(ke&&(ke.endsWith("json")||ke.endsWith("importmap"))||ke==="speculationrules")return"json";if(ke==="text/x-handlebars-template")return"glimmer"}function be(V,ke){let{lang:ot}=V.attrMap;if(!ot||ot==="postcss"||ot==="css")return"css";if(ot==="scss")return"scss";if(ot==="less")return"less";if(ot==="stylus")return p("stylus",ke)}function Re(V,ke){if(V.name==="script"&&!V.attrMap.src)return!V.attrMap.lang&&!V.attrMap.type?"babel":bt(V);if(V.name==="style")return be(V,ke);if(ke&&je(V,ke))return bt(V)||!("src"in V.attrMap)&&p(V.attrMap.lang,ke)}function gt(V){return V==="block"||V==="list-item"||V.startsWith("table")}function yt(V){return!gt(V)&&V!=="inline-block"}function zt(V){return!gt(V)&&V!=="inline-block"}function qe(V){return!gt(V)}function Ce(V){return!gt(V)}function Qe(V){return!gt(V)&&V!=="inline-block"}function et(V){return hn(V).startsWith("pre")}function Ct(V,ke){let ot=0;for(let It=V.stack.length-1;It>=0;It--){let Wt=V.stack[It];Wt&&typeof Wt=="object"&&!Array.isArray(Wt)&&ke(Wt)&&ot++}return ot}function Bt(V,ke){let ot=V;for(;ot;){if(ke(ot))return!0;ot=ot.parent}return!1}function Rt(V,ke){if(V.prev&&V.prev.type==="comment"){let It=V.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/);if(It)return It[1]}let ot=!1;if(V.type==="element"&&V.namespace==="svg")if(Bt(V,It=>It.fullName==="svg:foreignObject"))ot=!0;else return V.name==="svg"?"inline-block":"block";switch(ke.htmlWhitespaceSensitivity){case"strict":return"inline";case"ignore":return"block";default:return ke.parser==="vue"&&V.parent&&V.parent.type==="root"?"block":V.type==="element"&&(!V.namespace||ot||x(V))&&C[V.name]||B}}function hn(V){return V.type==="element"&&(!V.namespace||x(V))&&_[V.name]||P}function Rn(V){let ke=Number.POSITIVE_INFINITY;for(let ot of V.split(`
264
+ `)){if(ot.length===0)continue;if(!S.has(ot[0]))return 0;let It=re(ot).length;ot.length!==It&&It<ke&&(ke=It)}return ke===Number.POSITIVE_INFINITY?0:ke}function Bn(V){let ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Rn(V);return ke===0?V:V.split(`
265
+ `).map(ot=>ot.slice(ke)).join(`
266
+ `)}function dn(V,ke){let ot=0;for(let It=0;It<V.length;It++)V[It]===ke&&ot++;return ot}function En(V){return V.replace(/&apos;/g,"'").replace(/&quot;/g,'"')}var pt=new Set(["template","style","script"]);function Ae(V,ke){return Dt(V,ke)&&!pt.has(V.fullName)}function Dt(V,ke){return ke.parser==="vue"&&V.type==="element"&&V.parent.type==="root"&&V.fullName.toLowerCase()!=="html"}function je(V,ke){return Dt(V,ke)&&(Ae(V,ke)||V.attrMap.lang&&V.attrMap.lang!=="html")}function mt(V){let ke=V.fullName;return ke.charAt(0)==="#"||ke==="slot-scope"||ke==="v-slot"||ke.startsWith("v-slot:")}function nn(V,ke){let ot=V.parent;if(!Dt(ot,ke))return!1;let It=ot.fullName,Wt=V.fullName;return It==="script"&&Wt==="setup"||It==="style"&&Wt==="vars"}function Jt(V){let ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:V.value;return V.parent.isWhitespaceSensitive?V.parent.isIndentationSensitive?E(ke):E(Bn(Q(ke)),f):h(d(D,G(ke)))}function Et(V,ke){return Dt(V,ke)&&V.name==="script"}A.exports={htmlTrim:te,htmlTrimPreserveIndentation:Q,hasHtmlWhitespace:De,getLeadingAndTrailingHtmlWhitespace:ee,canHaveInterpolation:L,countChars:dn,countParents:Ct,dedentString:Bn,forceBreakChildren:ce,forceBreakContent:ge,forceNextEmptyLine:le,getLastDescendant:it,getNodeCssStyleDisplay:Rt,getNodeCssStyleWhiteSpace:hn,hasPrettierIgnore:J,inferScriptParser:Re,isVueCustomBlock:Ae,isVueNonHtmlBlock:je,isVueScriptTag:Et,isVueSlotAttribute:mt,isVueSfcBindingsAttribute:nn,isVueSfcBlock:Dt,isDanglingSpaceSensitiveNode:se,isIndentationSensitiveNode:q,isLeadingSpaceSensitiveNode:U,isPreLikeNode:et,isScriptLikeTag:y,isTextLikeNode:j,isTrailingSpaceSensitiveNode:z,isWhitespaceSensitiveNode:M,isUnknownNamespace:x,preferHardlineAsLeadingSpaces:Le,preferHardlineAsTrailingSpaces:ie,shouldPreserveContent:N,unescapeQuoteEntities:En,getTextValueParts:Jt}}}),aw=Te({"node_modules/angular-html-parser/lib/compiler/src/chars.js"(m){Ve(),Object.defineProperty(m,"__esModule",{value:!0}),m.$EOF=0,m.$BSPACE=8,m.$TAB=9,m.$LF=10,m.$VTAB=11,m.$FF=12,m.$CR=13,m.$SPACE=32,m.$BANG=33,m.$DQ=34,m.$HASH=35,m.$$=36,m.$PERCENT=37,m.$AMPERSAND=38,m.$SQ=39,m.$LPAREN=40,m.$RPAREN=41,m.$STAR=42,m.$PLUS=43,m.$COMMA=44,m.$MINUS=45,m.$PERIOD=46,m.$SLASH=47,m.$COLON=58,m.$SEMICOLON=59,m.$LT=60,m.$EQ=61,m.$GT=62,m.$QUESTION=63,m.$0=48,m.$7=55,m.$9=57,m.$A=65,m.$E=69,m.$F=70,m.$X=88,m.$Z=90,m.$LBRACKET=91,m.$BACKSLASH=92,m.$RBRACKET=93,m.$CARET=94,m.$_=95,m.$a=97,m.$b=98,m.$e=101,m.$f=102,m.$n=110,m.$r=114,m.$t=116,m.$u=117,m.$v=118,m.$x=120,m.$z=122,m.$LBRACE=123,m.$BAR=124,m.$RBRACE=125,m.$NBSP=160,m.$PIPE=124,m.$TILDA=126,m.$AT=64,m.$BT=96;function A(h){return h>=m.$TAB&&h<=m.$SPACE||h==m.$NBSP}m.isWhitespace=A;function p(h){return m.$0<=h&&h<=m.$9}m.isDigit=p;function v(h){return h>=m.$a&&h<=m.$z||h>=m.$A&&h<=m.$Z}m.isAsciiLetter=v;function D(h){return h>=m.$a&&h<=m.$f||h>=m.$A&&h<=m.$F||p(h)}m.isAsciiHexDigit=D;function f(h){return h===m.$LF||h===m.$CR}m.isNewLine=f;function d(h){return m.$0<=h&&h<=m.$7}m.isOctalDigit=d}}),ow=Te({"node_modules/angular-html-parser/lib/compiler/src/aot/static_symbol.js"(m){Ve(),Object.defineProperty(m,"__esModule",{value:!0});var A=class{constructor(v,D,f){this.filePath=v,this.name=D,this.members=f}assertNoMembers(){if(this.members.length)throw new Error(`Illegal state: symbol without members expected, but got ${JSON.stringify(this)}.`)}};m.StaticSymbol=A;var p=class{constructor(){this.cache=new Map}get(v,D,f){f=f||[];let d=f.length?`.${f.join(".")}`:"",h=`"${v}".${D}${d}`,E=this.cache.get(h);return E||(E=new A(v,D,f),this.cache.set(h,E)),E}};m.StaticSymbolCache=p}}),uw=Te({"node_modules/angular-html-parser/lib/compiler/src/util.js"(m){Ve(),Object.defineProperty(m,"__esModule",{value:!0});var A=/-+([a-z0-9])/g;function p(y){return y.replace(A,function(){for(var L=arguments.length,M=new Array(L),q=0;q<L;q++)M[q]=arguments[q];return M[1].toUpperCase()})}m.dashCaseToCamelCase=p;function v(y,L){return f(y,":",L)}m.splitAtColon=v;function D(y,L){return f(y,".",L)}m.splitAtPeriod=D;function f(y,L,M){let q=y.indexOf(L);return q==-1?M:[y.slice(0,q).trim(),y.slice(q+1).trim()]}function d(y,L,M){return Array.isArray(y)?L.visitArray(y,M):$(y)?L.visitStringMap(y,M):y==null||typeof y=="string"||typeof y=="number"||typeof y=="boolean"?L.visitPrimitive(y,M):L.visitOther(y,M)}m.visitValue=d;function h(y){return y!=null}m.isDefined=h;function E(y){return y===void 0?null:y}m.noUndefined=E;var C=class{visitArray(y,L){return y.map(M=>d(M,this,L))}visitStringMap(y,L){let M={};return Object.keys(y).forEach(q=>{M[q]=d(y[q],this,L)}),M}visitPrimitive(y,L){return y}visitOther(y,L){return y}};m.ValueTransformer=C,m.SyncAsync={assertSync:y=>{if(ee(y))throw new Error("Illegal state: value cannot be a promise");return y},then:(y,L)=>ee(y)?y.then(L):L(y),all:y=>y.some(ee)?Promise.all(y):y};function B(y){throw new Error(`Internal Error: ${y}`)}m.error=B;function _(y,L){let M=Error(y);return M[P]=!0,L&&(M[x]=L),M}m.syntaxError=_;var P="ngSyntaxError",x="ngParseErrors";function S(y){return y[P]}m.isSyntaxError=S;function R(y){return y[x]||[]}m.getParseErrors=R;function X(y){return y.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}m.escapeRegExp=X;var te=Object.getPrototypeOf({});function $(y){return typeof y=="object"&&y!==null&&Object.getPrototypeOf(y)===te}function Q(y){let L="";for(let M=0;M<y.length;M++){let q=y.charCodeAt(M);if(q>=55296&&q<=56319&&y.length>M+1){let U=y.charCodeAt(M+1);U>=56320&&U<=57343&&(M++,q=(q-55296<<10)+U-56320+65536)}q<=127?L+=String.fromCharCode(q):q<=2047?L+=String.fromCharCode(q>>6&31|192,q&63|128):q<=65535?L+=String.fromCharCode(q>>12|224,q>>6&63|128,q&63|128):q<=2097151&&(L+=String.fromCharCode(q>>18&7|240,q>>12&63|128,q>>6&63|128,q&63|128))}return L}m.utf8Encode=Q;function G(y){if(typeof y=="string")return y;if(y instanceof Array)return"["+y.map(G).join(", ")+"]";if(y==null)return""+y;if(y.overriddenName)return`${y.overriddenName}`;if(y.name)return`${y.name}`;if(!y.toString)return"object";let L=y.toString();if(L==null)return""+L;let M=L.indexOf(`
267
+ `);return M===-1?L:L.substring(0,M)}m.stringify=G;function re(y){return typeof y=="function"&&y.hasOwnProperty("__forward_ref__")?y():y}m.resolveForwardRef=re;function ee(y){return!!y&&typeof y.then=="function"}m.isPromise=ee;var De=class{constructor(y){this.full=y;let L=y.split(".");this.major=L[0],this.minor=L[1],this.patch=L.slice(2).join(".")}};m.Version=De;var N=typeof window<"u"&&window,J=typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self,F=typeof globalThis<"u"&&globalThis,j=F||N||J;m.global=j}}),lw=Te({"node_modules/angular-html-parser/lib/compiler/src/compile_metadata.js"(m){Ve(),Object.defineProperty(m,"__esModule",{value:!0});var A=ow(),p=uw(),v=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/;function D(M){return M.replace(/\W/g,"_")}m.sanitizeIdentifier=D;var f=0;function d(M){if(!M||!M.reference)return null;let q=M.reference;if(q instanceof A.StaticSymbol)return q.name;if(q.__anonymousType)return q.__anonymousType;let U=p.stringify(q);return U.indexOf("(")>=0?(U=`anonymous_${f++}`,q.__anonymousType=U):U=D(U),U}m.identifierName=d;function h(M){let q=M.reference;return q instanceof A.StaticSymbol?q.filePath:`./${p.stringify(q)}`}m.identifierModuleUrl=h;function E(M,q){return`View_${d({reference:M})}_${q}`}m.viewClassName=E;function C(M){return`RenderType_${d({reference:M})}`}m.rendererTypeName=C;function B(M){return`HostView_${d({reference:M})}`}m.hostViewClassName=B;function _(M){return`${d({reference:M})}NgFactory`}m.componentFactoryName=_;var P;(function(M){M[M.Pipe=0]="Pipe",M[M.Directive=1]="Directive",M[M.NgModule=2]="NgModule",M[M.Injectable=3]="Injectable"})(P=m.CompileSummaryKind||(m.CompileSummaryKind={}));function x(M){return M.value!=null?D(M.value):d(M.identifier)}m.tokenName=x;function S(M){return M.identifier!=null?M.identifier.reference:M.value}m.tokenReference=S;var R=class{constructor(){let{moduleUrl:M,styles:q,styleUrls:U}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.moduleUrl=M||null,this.styles=ee(q),this.styleUrls=ee(U)}};m.CompileStylesheetMetadata=R;var X=class{constructor(M){let{encapsulation:q,template:U,templateUrl:z,htmlAst:se,styles:le,styleUrls:ge,externalStylesheets:ce,animations:Le,ngContentSelectors:ie,interpolation:We,isInline:he,preserveWhitespaces:oe}=M;if(this.encapsulation=q,this.template=U,this.templateUrl=z,this.htmlAst=se,this.styles=ee(le),this.styleUrls=ee(ge),this.externalStylesheets=ee(ce),this.animations=Le?N(Le):[],this.ngContentSelectors=ie||[],We&&We.length!=2)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=We,this.isInline=he,this.preserveWhitespaces=oe}toSummary(){return{ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation,styles:this.styles,animations:this.animations}}};m.CompileTemplateMetadata=X;var te=class{static create(M){let{isHost:q,type:U,isComponent:z,selector:se,exportAs:le,changeDetection:ge,inputs:ce,outputs:Le,host:ie,providers:We,viewProviders:he,queries:oe,guards:Ue,viewQueries:it,entryComponents:Xe,template:bt,componentViewType:be,rendererType:Re,componentFactory:gt}=M,yt={},zt={},qe={};ie!=null&&Object.keys(ie).forEach(et=>{let Ct=ie[et],Bt=et.match(v);Bt===null?qe[et]=Ct:Bt[1]!=null?zt[Bt[1]]=Ct:Bt[2]!=null&&(yt[Bt[2]]=Ct)});let Ce={};ce?.forEach(et=>{let Ct=p.splitAtColon(et,[et,et]);Ce[Ct[0]]=Ct[1]});let Qe={};return Le?.forEach(et=>{let Ct=p.splitAtColon(et,[et,et]);Qe[Ct[0]]=Ct[1]}),new te({isHost:q,type:U,isComponent:!!z,selector:se,exportAs:le,changeDetection:ge,inputs:Ce,outputs:Qe,hostListeners:yt,hostProperties:zt,hostAttributes:qe,providers:We,viewProviders:he,queries:oe,guards:Ue,viewQueries:it,entryComponents:Xe,template:bt,componentViewType:be,rendererType:Re,componentFactory:gt})}constructor(M){let{isHost:q,type:U,isComponent:z,selector:se,exportAs:le,changeDetection:ge,inputs:ce,outputs:Le,hostListeners:ie,hostProperties:We,hostAttributes:he,providers:oe,viewProviders:Ue,queries:it,guards:Xe,viewQueries:bt,entryComponents:be,template:Re,componentViewType:gt,rendererType:yt,componentFactory:zt}=M;this.isHost=!!q,this.type=U,this.isComponent=z,this.selector=se,this.exportAs=le,this.changeDetection=ge,this.inputs=ce,this.outputs=Le,this.hostListeners=ie,this.hostProperties=We,this.hostAttributes=he,this.providers=ee(oe),this.viewProviders=ee(Ue),this.queries=ee(it),this.guards=Xe,this.viewQueries=ee(bt),this.entryComponents=ee(be),this.template=Re,this.componentViewType=gt,this.rendererType=yt,this.componentFactory=zt}toSummary(){return{summaryKind:P.Directive,type:this.type,isComponent:this.isComponent,selector:this.selector,exportAs:this.exportAs,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,providers:this.providers,viewProviders:this.viewProviders,queries:this.queries,guards:this.guards,viewQueries:this.viewQueries,entryComponents:this.entryComponents,changeDetection:this.changeDetection,template:this.template&&this.template.toSummary(),componentViewType:this.componentViewType,rendererType:this.rendererType,componentFactory:this.componentFactory}}};m.CompileDirectiveMetadata=te;var $=class{constructor(M){let{type:q,name:U,pure:z}=M;this.type=q,this.name=U,this.pure=!!z}toSummary(){return{summaryKind:P.Pipe,type:this.type,name:this.name,pure:this.pure}}};m.CompilePipeMetadata=$;var Q=class{};m.CompileShallowModuleMetadata=Q;var G=class{constructor(M){let{type:q,providers:U,declaredDirectives:z,exportedDirectives:se,declaredPipes:le,exportedPipes:ge,entryComponents:ce,bootstrapComponents:Le,importedModules:ie,exportedModules:We,schemas:he,transitiveModule:oe,id:Ue}=M;this.type=q||null,this.declaredDirectives=ee(z),this.exportedDirectives=ee(se),this.declaredPipes=ee(le),this.exportedPipes=ee(ge),this.providers=ee(U),this.entryComponents=ee(ce),this.bootstrapComponents=ee(Le),this.importedModules=ee(ie),this.exportedModules=ee(We),this.schemas=ee(he),this.id=Ue||null,this.transitiveModule=oe||null}toSummary(){let M=this.transitiveModule;return{summaryKind:P.NgModule,type:this.type,entryComponents:M.entryComponents,providers:M.providers,modules:M.modules,exportedDirectives:M.exportedDirectives,exportedPipes:M.exportedPipes}}};m.CompileNgModuleMetadata=G;var re=class{constructor(){this.directivesSet=new Set,this.directives=[],this.exportedDirectivesSet=new Set,this.exportedDirectives=[],this.pipesSet=new Set,this.pipes=[],this.exportedPipesSet=new Set,this.exportedPipes=[],this.modulesSet=new Set,this.modules=[],this.entryComponentsSet=new Set,this.entryComponents=[],this.providers=[]}addProvider(M,q){this.providers.push({provider:M,module:q})}addDirective(M){this.directivesSet.has(M.reference)||(this.directivesSet.add(M.reference),this.directives.push(M))}addExportedDirective(M){this.exportedDirectivesSet.has(M.reference)||(this.exportedDirectivesSet.add(M.reference),this.exportedDirectives.push(M))}addPipe(M){this.pipesSet.has(M.reference)||(this.pipesSet.add(M.reference),this.pipes.push(M))}addExportedPipe(M){this.exportedPipesSet.has(M.reference)||(this.exportedPipesSet.add(M.reference),this.exportedPipes.push(M))}addModule(M){this.modulesSet.has(M.reference)||(this.modulesSet.add(M.reference),this.modules.push(M))}addEntryComponent(M){this.entryComponentsSet.has(M.componentType)||(this.entryComponentsSet.add(M.componentType),this.entryComponents.push(M))}};m.TransitiveCompileNgModuleMetadata=re;function ee(M){return M||[]}var De=class{constructor(M,q){let{useClass:U,useValue:z,useExisting:se,useFactory:le,deps:ge,multi:ce}=q;this.token=M,this.useClass=U||null,this.useValue=z,this.useExisting=se,this.useFactory=le||null,this.dependencies=ge||null,this.multi=!!ce}};m.ProviderMeta=De;function N(M){return M.reduce((q,U)=>{let z=Array.isArray(U)?N(U):U;return q.concat(z)},[])}m.flatten=N;function J(M){return M.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}function F(M,q,U){let z;return U.isInline?q.type.reference instanceof A.StaticSymbol?z=`${q.type.reference.filePath}.${q.type.reference.name}.html`:z=`${d(M)}/${d(q.type)}.html`:z=U.templateUrl,q.type.reference instanceof A.StaticSymbol?z:J(z)}m.templateSourceUrl=F;function j(M,q){let U=M.moduleUrl.split(/\/\\/g),z=U[U.length-1];return J(`css/${q}${z}.ngstyle.js`)}m.sharedStylesheetJitUrl=j;function y(M){return J(`${d(M.type)}/module.ngfactory.js`)}m.ngModuleJitUrl=y;function L(M,q){return J(`${d(M)}/${d(q.type)}.ngfactory.js`)}m.templateJitUrl=L}}),cw=Te({"node_modules/angular-html-parser/lib/compiler/src/parse_util.js"(m){Ve(),Object.defineProperty(m,"__esModule",{value:!0});var A=aw(),p=lw(),v=class{constructor(B,_,P,x){this.file=B,this.offset=_,this.line=P,this.col=x}toString(){return this.offset!=null?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(B){let _=this.file.content,P=_.length,x=this.offset,S=this.line,R=this.col;for(;x>0&&B<0;)if(x--,B++,_.charCodeAt(x)==A.$LF){S--;let X=_.substr(0,x-1).lastIndexOf(String.fromCharCode(A.$LF));R=X>0?x-X:x}else R--;for(;x<P&&B>0;){let X=_.charCodeAt(x);x++,B--,X==A.$LF?(S++,R=0):R++}return new v(this.file,x,S,R)}getContext(B,_){let P=this.file.content,x=this.offset;if(x!=null){x>P.length-1&&(x=P.length-1);let S=x,R=0,X=0;for(;R<B&&x>0&&(x--,R++,!(P[x]==`
268
+ `&&++X==_)););for(R=0,X=0;R<B&&S<P.length-1&&(S++,R++,!(P[S]==`
269
+ `&&++X==_)););return{before:P.substring(x,this.offset),after:P.substring(this.offset,S+1)}}return null}};m.ParseLocation=v;var D=class{constructor(B,_){this.content=B,this.url=_}};m.ParseSourceFile=D;var f=class{constructor(B,_){let P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;this.start=B,this.end=_,this.details=P}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}};m.ParseSourceSpan=f,m.EMPTY_PARSE_LOCATION=new v(new D("",""),0,0,0),m.EMPTY_SOURCE_SPAN=new f(m.EMPTY_PARSE_LOCATION,m.EMPTY_PARSE_LOCATION);var d;(function(B){B[B.WARNING=0]="WARNING",B[B.ERROR=1]="ERROR"})(d=m.ParseErrorLevel||(m.ParseErrorLevel={}));var h=class{constructor(B,_){let P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:d.ERROR;this.span=B,this.msg=_,this.level=P}contextualMessage(){let B=this.span.start.getContext(100,3);return B?`${this.msg} ("${B.before}[${d[this.level]} ->]${B.after}")`:this.msg}toString(){let B=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${B}`}};m.ParseError=h;function E(B,_){let P=p.identifierModuleUrl(_),x=P!=null?`in ${B} ${p.identifierName(_)} in ${P}`:`in ${B} ${p.identifierName(_)}`,S=new D("",x);return new f(new v(S,-1,-1,-1),new v(S,-1,-1,-1))}m.typeSourceSpan=E;function C(B,_,P){let x=`in ${B} ${_} in ${P}`,S=new D("",x);return new f(new v(S,-1,-1,-1),new v(S,-1,-1,-1))}m.r3JitTypeSourceSpan=C}}),fw=Te({"src/language-html/print-preprocess.js"(m,A){Ve();var{ParseSourceSpan:p}=cw(),{htmlTrim:v,getLeadingAndTrailingHtmlWhitespace:D,hasHtmlWhitespace:f,canHaveInterpolation:d,getNodeCssStyleDisplay:h,isDanglingSpaceSensitiveNode:E,isIndentationSensitiveNode:C,isLeadingSpaceSensitiveNode:B,isTrailingSpaceSensitiveNode:_,isWhitespaceSensitiveNode:P,isVueScriptTag:x}=fo(),S=[X,te,Q,re,ee,J,De,N,F,G,j];function R(y,L){for(let M of S)M(y,L);return y}function X(y){y.walk(L=>{if(L.type==="element"&&L.tagDefinition.ignoreFirstLf&&L.children.length>0&&L.children[0].type==="text"&&L.children[0].value[0]===`
270
+ `){let M=L.children[0];M.value.length===1?L.removeChild(M):M.value=M.value.slice(1)}})}function te(y){let L=M=>M.type==="element"&&M.prev&&M.prev.type==="ieConditionalStartComment"&&M.prev.sourceSpan.end.offset===M.startSourceSpan.start.offset&&M.firstChild&&M.firstChild.type==="ieConditionalEndComment"&&M.firstChild.sourceSpan.start.offset===M.startSourceSpan.end.offset;y.walk(M=>{if(M.children)for(let q=0;q<M.children.length;q++){let U=M.children[q];if(!L(U))continue;let z=U.prev,se=U.firstChild;M.removeChild(z),q--;let le=new p(z.sourceSpan.start,se.sourceSpan.end),ge=new p(le.start,U.sourceSpan.end);U.condition=z.condition,U.sourceSpan=ge,U.startSourceSpan=le,U.removeChild(se)}})}function $(y,L,M){y.walk(q=>{if(q.children)for(let U=0;U<q.children.length;U++){let z=q.children[U];if(z.type!=="text"&&!L(z))continue;z.type!=="text"&&(z.type="text",z.value=M(z));let se=z.prev;!se||se.type!=="text"||(se.value+=z.value,se.sourceSpan=new p(se.sourceSpan.start,z.sourceSpan.end),q.removeChild(z),U--)}})}function Q(y){return $(y,L=>L.type==="cdata",L=>`<![CDATA[${L.value}]]>`)}function G(y){let L=M=>M.type==="element"&&M.attrs.length===0&&M.children.length===1&&M.firstChild.type==="text"&&!f(M.children[0].value)&&!M.firstChild.hasLeadingSpaces&&!M.firstChild.hasTrailingSpaces&&M.isLeadingSpaceSensitive&&!M.hasLeadingSpaces&&M.isTrailingSpaceSensitive&&!M.hasTrailingSpaces&&M.prev&&M.prev.type==="text"&&M.next&&M.next.type==="text";y.walk(M=>{if(M.children)for(let q=0;q<M.children.length;q++){let U=M.children[q];if(!L(U))continue;let z=U.prev,se=U.next;z.value+=`<${U.rawName}>`+U.firstChild.value+`</${U.rawName}>`+se.value,z.sourceSpan=new p(z.sourceSpan.start,se.sourceSpan.end),z.isTrailingSpaceSensitive=se.isTrailingSpaceSensitive,z.hasTrailingSpaces=se.hasTrailingSpaces,M.removeChild(U),q--,M.removeChild(se)}})}function re(y,L){if(L.parser==="html")return;let M=/{{(.+?)}}/s;y.walk(q=>{if(d(q))for(let U of q.children){if(U.type!=="text")continue;let z=U.sourceSpan.start,se=null,le=U.value.split(M);for(let ge=0;ge<le.length;ge++,z=se){let ce=le[ge];if(ge%2===0){se=z.moveBy(ce.length),ce.length>0&&q.insertChildBefore(U,{type:"text",value:ce,sourceSpan:new p(z,se)});continue}se=z.moveBy(ce.length+4),q.insertChildBefore(U,{type:"interpolation",sourceSpan:new p(z,se),children:ce.length===0?[]:[{type:"text",value:ce,sourceSpan:new p(z.moveBy(2),se.moveBy(-2))}]})}q.removeChild(U)}})}function ee(y){y.walk(L=>{if(!L.children)return;if(L.children.length===0||L.children.length===1&&L.children[0].type==="text"&&v(L.children[0].value).length===0){L.hasDanglingSpaces=L.children.length>0,L.children=[];return}let M=P(L),q=C(L);if(!M)for(let U=0;U<L.children.length;U++){let z=L.children[U];if(z.type!=="text")continue;let{leadingWhitespace:se,text:le,trailingWhitespace:ge}=D(z.value),ce=z.prev,Le=z.next;le?(z.value=le,z.sourceSpan=new p(z.sourceSpan.start.moveBy(se.length),z.sourceSpan.end.moveBy(-ge.length)),se&&(ce&&(ce.hasTrailingSpaces=!0),z.hasLeadingSpaces=!0),ge&&(z.hasTrailingSpaces=!0,Le&&(Le.hasLeadingSpaces=!0))):(L.removeChild(z),U--,(se||ge)&&(ce&&(ce.hasTrailingSpaces=!0),Le&&(Le.hasLeadingSpaces=!0)))}L.isWhitespaceSensitive=M,L.isIndentationSensitive=q})}function De(y){y.walk(L=>{L.isSelfClosing=!L.children||L.type==="element"&&(L.tagDefinition.isVoid||L.startSourceSpan===L.endSourceSpan)})}function N(y,L){y.walk(M=>{M.type==="element"&&(M.hasHtmComponentClosingTag=M.endSourceSpan&&/^<\s*\/\s*\/\s*>$/.test(L.originalText.slice(M.endSourceSpan.start.offset,M.endSourceSpan.end.offset)))})}function J(y,L){y.walk(M=>{M.cssDisplay=h(M,L)})}function F(y,L){y.walk(M=>{let{children:q}=M;if(q){if(q.length===0){M.isDanglingSpaceSensitive=E(M);return}for(let U of q)U.isLeadingSpaceSensitive=B(U,L),U.isTrailingSpaceSensitive=_(U,L);for(let U=0;U<q.length;U++){let z=q[U];z.isLeadingSpaceSensitive=(U===0||z.prev.isTrailingSpaceSensitive)&&z.isLeadingSpaceSensitive,z.isTrailingSpaceSensitive=(U===q.length-1||z.next.isLeadingSpaceSensitive)&&z.isTrailingSpaceSensitive}}})}function j(y,L){if(L.parser==="vue"){let M=y.children.find(U=>x(U,L));if(!M)return;let{lang:q}=M.attrMap;(q==="ts"||q==="typescript")&&(L.__should_parse_vue_template_with_ts=!0)}}A.exports=R}}),pw=Te({"src/language-html/pragma.js"(m,A){Ve();function p(D){return/^\s*<!--\s*@(?:format|prettier)\s*-->/.test(D)}function v(D){return`<!-- @format -->
271
+
272
+ `+D.replace(/^\s*\n/,"")}A.exports={hasPragma:p,insertPragma:v}}}),Mp=Te({"src/language-html/loc.js"(m,A){Ve();function p(D){return D.sourceSpan.start.offset}function v(D){return D.sourceSpan.end.offset}A.exports={locStart:p,locEnd:v}}}),tu=Te({"src/language-html/print/tag.js"(m,A){Ve();var p=Xo(),{isNonEmptyArray:v}=ye(),{builders:{indent:D,join:f,line:d,softline:h,hardline:E},utils:{replaceTextEndOfLine:C}}=Tn(),{locStart:B,locEnd:_}=Mp(),{isTextLikeNode:P,getLastDescendant:x,isPreLikeNode:S,hasPrettierIgnore:R,shouldPreserveContent:X,isVueSfcBlock:te}=fo();function $(ie,We){return[ie.isSelfClosing?"":Q(ie,We),G(ie,We)]}function Q(ie,We){return ie.lastChild&&y(ie.lastChild)?"":[re(ie,We),De(ie,We)]}function G(ie,We){return(ie.next?F(ie.next):j(ie.parent))?"":[N(ie,We),ee(ie,We)]}function re(ie,We){return j(ie)?N(ie.lastChild,We):""}function ee(ie,We){return y(ie)?De(ie.parent,We):L(ie)?ce(ie.next):""}function De(ie,We){if(p(!ie.isSelfClosing),J(ie,We))return"";switch(ie.type){case"ieConditionalComment":return"<!";case"element":if(ie.hasHtmComponentClosingTag)return"<//";default:return`</${ie.rawName}`}}function N(ie,We){if(J(ie,We))return"";switch(ie.type){case"ieConditionalComment":case"ieConditionalEndComment":return"[endif]-->";case"ieConditionalStartComment":return"]><!-->";case"interpolation":return"}}";case"element":if(ie.isSelfClosing)return"/>";default:return">"}}function J(ie,We){return!ie.isSelfClosing&&!ie.endSourceSpan&&(R(ie)||X(ie.parent,We))}function F(ie){return ie.prev&&ie.prev.type!=="docType"&&!P(ie.prev)&&ie.isLeadingSpaceSensitive&&!ie.hasLeadingSpaces}function j(ie){return ie.lastChild&&ie.lastChild.isTrailingSpaceSensitive&&!ie.lastChild.hasTrailingSpaces&&!P(x(ie.lastChild))&&!S(ie)}function y(ie){return!ie.next&&!ie.hasTrailingSpaces&&ie.isTrailingSpaceSensitive&&P(x(ie))}function L(ie){return ie.next&&!P(ie.next)&&P(ie)&&ie.isTrailingSpaceSensitive&&!ie.hasTrailingSpaces}function M(ie){let We=ie.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/s);return We?We[1]?We[1].split(/\s+/):!0:!1}function q(ie){return!ie.prev&&ie.isLeadingSpaceSensitive&&!ie.hasLeadingSpaces}function U(ie,We,he){let oe=ie.getValue();if(!v(oe.attrs))return oe.isSelfClosing?" ":"";let Ue=oe.prev&&oe.prev.type==="comment"&&M(oe.prev.value),it=typeof Ue=="boolean"?()=>Ue:Array.isArray(Ue)?gt=>Ue.includes(gt.rawName):()=>!1,Xe=ie.map(gt=>{let yt=gt.getValue();return it(yt)?C(We.originalText.slice(B(yt),_(yt))):he()},"attrs"),bt=oe.type==="element"&&oe.fullName==="script"&&oe.attrs.length===1&&oe.attrs[0].fullName==="src"&&oe.children.length===0,be=We.singleAttributePerLine&&oe.attrs.length>1&&!te(oe,We)?E:d,Re=[D([bt?" ":d,f(be,Xe)])];return oe.firstChild&&q(oe.firstChild)||oe.isSelfClosing&&j(oe.parent)||bt?Re.push(oe.isSelfClosing?" ":""):Re.push(We.bracketSameLine?oe.isSelfClosing?" ":"":oe.isSelfClosing?d:h),Re}function z(ie){return ie.firstChild&&q(ie.firstChild)?"":Le(ie)}function se(ie,We,he){let oe=ie.getValue();return[le(oe,We),U(ie,We,he),oe.isSelfClosing?"":z(oe)]}function le(ie,We){return ie.prev&&L(ie.prev)?"":[ge(ie,We),ce(ie)]}function ge(ie,We){return q(ie)?Le(ie.parent):F(ie)?N(ie.prev,We):""}function ce(ie){switch(ie.type){case"ieConditionalComment":case"ieConditionalStartComment":return`<!--[if ${ie.condition}`;case"ieConditionalEndComment":return"<!--<!";case"interpolation":return"{{";case"docType":return"<!DOCTYPE";case"element":if(ie.condition)return`<!--[if ${ie.condition}]><!--><${ie.rawName}`;default:return`<${ie.rawName}`}}function Le(ie){switch(p(!ie.isSelfClosing),ie.type){case"ieConditionalComment":return"]>";case"element":if(ie.condition)return"><!--<![endif]-->";default:return">"}}A.exports={printClosingTag:$,printClosingTagStart:Q,printClosingTagStartMarker:De,printClosingTagEndMarker:N,printClosingTagSuffix:ee,printClosingTagEnd:G,needsToBorrowLastChildClosingTagEndMarker:j,needsToBorrowParentClosingTagStartMarker:y,needsToBorrowPrevClosingTagEndMarker:F,printOpeningTag:se,printOpeningTagStart:le,printOpeningTagPrefix:ge,printOpeningTagStartMarker:ce,printOpeningTagEndMarker:Le,needsToBorrowNextOpeningTagStartMarker:L,needsToBorrowParentOpeningTagEndMarker:q}}}),dw=Te({"node_modules/parse-srcset/src/parse-srcset.js"(m,A){Ve(),(function(p,v){typeof A=="object"&&A.exports?A.exports=v():p.parseSrcset=v()})(m,function(){return function(p,v){var D=v&&v.logger||console;function f(De){return De===" "||De===" "||De===`
273
+ `||De==="\f"||De==="\r"}function d(De){var N,J=De.exec(p.substring(Q));if(J)return N=J[0],Q+=N.length,N}for(var h=p.length,E=/^[ \t\n\r\u000c]+/,C=/^[, \t\n\r\u000c]+/,B=/^[^ \t\n\r\u000c]+/,_=/[,]+$/,P=/^\d+$/,x=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,S,R,X,te,$,Q=0,G=[];;){if(d(C),Q>=h)return G;S=d(B),R=[],S.slice(-1)===","?(S=S.replace(_,""),ee()):re()}function re(){for(d(E),X="",te="in descriptor";;){if($=p.charAt(Q),te==="in descriptor")if(f($))X&&(R.push(X),X="",te="after descriptor");else if($===","){Q+=1,X&&R.push(X),ee();return}else if($==="(")X=X+$,te="in parens";else if($===""){X&&R.push(X),ee();return}else X=X+$;else if(te==="in parens")if($===")")X=X+$,te="in descriptor";else if($===""){R.push(X),ee();return}else X=X+$;else if(te==="after descriptor"&&!f($))if($===""){ee();return}else te="in descriptor",Q-=1;Q+=1}}function ee(){var De=!1,N,J,F,j,y={},L,M,q,U,z;for(j=0;j<R.length;j++)L=R[j],M=L[L.length-1],q=L.substring(0,L.length-1),U=parseInt(q,10),z=parseFloat(q),P.test(q)&&M==="w"?((N||J)&&(De=!0),U===0?De=!0:N=U):x.test(q)&&M==="x"?((N||J||F)&&(De=!0),z<0?De=!0:J=z):P.test(q)&&M==="h"?((F||J)&&(De=!0),U===0?De=!0:F=U):De=!0;De?D&&D.error&&D.error("Invalid srcset descriptor found in '"+p+"' at '"+L+"'."):(y.url=S,N&&(y.w=N),J&&(y.d=J),F&&(y.h=F),G.push(y))}}})}}),hw=Te({"src/language-html/syntax-attribute.js"(m,A){Ve();var p=dw(),{builders:{ifBreak:v,join:D,line:f}}=Tn();function d(E){let C=p(E,{logger:{error(re){throw new Error(re)}}}),B=C.some(re=>{let{w:ee}=re;return ee}),_=C.some(re=>{let{h:ee}=re;return ee}),P=C.some(re=>{let{d:ee}=re;return ee});if(B+_+P>1)throw new Error("Mixed descriptor in srcset is not supported");let x=B?"w":_?"h":"d",S=B?"w":_?"h":"x",R=re=>Math.max(...re),X=C.map(re=>re.url),te=R(X.map(re=>re.length)),$=C.map(re=>re[x]).map(re=>re?re.toString():""),Q=$.map(re=>{let ee=re.indexOf(".");return ee===-1?re.length:ee}),G=R(Q);return D([",",f],X.map((re,ee)=>{let De=[re],N=$[ee];if(N){let J=te-re.length+1,F=G-Q[ee],j=" ".repeat(J+F);De.push(v(j," "),N+S)}return De}))}function h(E){return E.trim().split(/\s+/).join(" ")}A.exports={printImgSrcset:d,printClassNames:h}}}),mw=Te({"src/language-html/syntax-vue.js"(m,A){Ve();var{builders:{group:p}}=Tn();function v(h,E){let{left:C,operator:B,right:_}=D(h);return[p(E(`function _(${C}) {}`,{parser:"babel",__isVueForBindingLeft:!0}))," ",B," ",E(_,{parser:"__js_expression"},{stripTrailingHardline:!0})]}function D(h){let E=/(.*?)\s+(in|of)\s+(.*)/s,C=/,([^,\]}]*)(?:,([^,\]}]*))?$/,B=/^\(|\)$/g,_=h.match(E);if(!_)return;let P={};if(P.for=_[3].trim(),!P.for)return;let x=_[1].trim().replace(B,""),S=x.match(C);S?(P.alias=x.replace(C,""),P.iterator1=S[1].trim(),S[2]&&(P.iterator2=S[2].trim())):P.alias=x;let R=[P.alias,P.iterator1,P.iterator2];if(!R.some((X,te)=>!X&&(te===0||R.slice(te+1).some(Boolean))))return{left:R.filter(Boolean).join(","),operator:_[2],right:P.for}}function f(h,E){return E(`function _(${h}) {}`,{parser:"babel",__isVueBindings:!0})}function d(h){let E=/^(?:[\w$]+|\([^)]*\))\s*=>|^function\s*\(/,C=/^[$A-Z_a-z][\w$]*(?:\.[$A-Z_a-z][\w$]*|\['[^']*']|\["[^"]*"]|\[\d+]|\[[$A-Z_a-z][\w$]*])*$/,B=h.trim();return E.test(B)||C.test(B)}A.exports={isVueEventBindingExpression:d,printVueFor:v,printVueBindings:f}}}),o1=Te({"src/language-html/get-node-content.js"(m,A){Ve();var{needsToBorrowParentClosingTagStartMarker:p,printClosingTagStartMarker:v,needsToBorrowLastChildClosingTagEndMarker:D,printClosingTagEndMarker:f,needsToBorrowParentOpeningTagEndMarker:d,printOpeningTagEndMarker:h}=tu();function E(C,B){let _=C.startSourceSpan.end.offset;C.firstChild&&d(C.firstChild)&&(_-=h(C).length);let P=C.endSourceSpan.start.offset;return C.lastChild&&p(C.lastChild)?P+=v(C,B).length:D(C)&&(P-=f(C.lastChild,B).length),B.originalText.slice(_,P)}A.exports=E}}),gw=Te({"src/language-html/embed.js"(m,A){Ve();var{builders:{breakParent:p,group:v,hardline:D,indent:f,line:d,fill:h,softline:E},utils:{mapDoc:C,replaceTextEndOfLine:B}}=Tn(),_=Pp(),{printClosingTag:P,printClosingTagSuffix:x,needsToBorrowPrevClosingTagEndMarker:S,printOpeningTagPrefix:R,printOpeningTag:X}=tu(),{printImgSrcset:te,printClassNames:$}=hw(),{printVueFor:Q,printVueBindings:G,isVueEventBindingExpression:re}=mw(),{isScriptLikeTag:ee,isVueNonHtmlBlock:De,inferScriptParser:N,htmlTrimPreserveIndentation:J,dedentString:F,unescapeQuoteEntities:j,isVueSlotAttribute:y,isVueSfcBindingsAttribute:L,getTextValueParts:M}=fo(),q=o1();function U(se,le,ge){let ce=Xe=>new RegExp(Xe.join("|")).test(se.fullName),Le=()=>j(se.value),ie=!1,We=(Xe,bt)=>{let be=Xe.type==="NGRoot"?Xe.node.type==="NGMicrosyntax"&&Xe.node.body.length===1&&Xe.node.body[0].type==="NGMicrosyntaxExpression"?Xe.node.body[0].expression:Xe.node:Xe.type==="JsExpressionRoot"?Xe.node:Xe;be&&(be.type==="ObjectExpression"||be.type==="ArrayExpression"||bt.parser==="__vue_expression"&&(be.type==="TemplateLiteral"||be.type==="StringLiteral"))&&(ie=!0)},he=Xe=>v(Xe),oe=function(Xe){let bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return v([f([E,Xe]),bt?E:""])},Ue=Xe=>ie?he(Xe):oe(Xe),it=(Xe,bt)=>le(Xe,Object.assign({__onHtmlBindingRoot:We,__embeddedInHtml:!0},bt));if(se.fullName==="srcset"&&(se.parent.fullName==="img"||se.parent.fullName==="source"))return oe(te(Le()));if(se.fullName==="class"&&!ge.parentParser){let Xe=Le();if(!Xe.includes("{{"))return $(Xe)}if(se.fullName==="style"&&!ge.parentParser){let Xe=Le();if(!Xe.includes("{{"))return oe(it(Xe,{parser:"css",__isHTMLStyleAttribute:!0}))}if(ge.parser==="vue"){if(se.fullName==="v-for")return Q(Le(),it);if(y(se)||L(se,ge))return G(Le(),it);let Xe=["^@","^v-on:"],bt=["^:","^v-bind:"],be=["^v-"];if(ce(Xe)){let Re=Le(),gt=re(Re)?"__js_expression":ge.__should_parse_vue_template_with_ts?"__vue_ts_event_binding":"__vue_event_binding";return Ue(it(Re,{parser:gt}))}if(ce(bt))return Ue(it(Le(),{parser:"__vue_expression"}));if(ce(be))return Ue(it(Le(),{parser:"__js_expression"}))}if(ge.parser==="angular"){let Xe=(qe,Ce)=>it(qe,Object.assign(Object.assign({},Ce),{},{trailingComma:"none"})),bt=["^\\*"],be=["^\\(.+\\)$","^on-"],Re=["^\\[.+\\]$","^bind(on)?-","^ng-(if|show|hide|class|style)$"],gt=["^i18n(-.+)?$"];if(ce(be))return Ue(Xe(Le(),{parser:"__ng_action"}));if(ce(Re))return Ue(Xe(Le(),{parser:"__ng_binding"}));if(ce(gt)){let qe=Le().trim();return oe(h(M(se,qe)),!qe.includes("@@"))}if(ce(bt))return Ue(Xe(Le(),{parser:"__ng_directive"}));let yt=/{{(.+?)}}/s,zt=Le();if(yt.test(zt)){let qe=[];for(let[Ce,Qe]of zt.split(yt).entries())if(Ce%2===0)qe.push(B(Qe));else try{qe.push(v(["{{",f([d,Xe(Qe,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),d,"}}"]))}catch{qe.push("{{",B(Qe),"}}")}return v(qe)}}return null}function z(se,le,ge,ce){let Le=se.getValue();switch(Le.type){case"element":{if(ee(Le)||Le.type==="interpolation")return;if(!Le.isSelfClosing&&De(Le,ce)){let ie=N(Le,ce);if(!ie)return;let We=q(Le,ce),he=/^\s*$/.test(We),oe="";return he||(oe=ge(J(We),{parser:ie,__embeddedInHtml:!0},{stripTrailingHardline:!0}),he=oe===""),[R(Le,ce),v(X(se,ce,le)),he?"":D,oe,he?"":D,P(Le,ce),x(Le,ce)]}break}case"text":{if(ee(Le.parent)){let ie=N(Le.parent,ce);if(ie){let We=ie==="markdown"?F(Le.value.replace(/^[^\S\n]*\n/,"")):Le.value,he={parser:ie,__embeddedInHtml:!0};if(ce.parser==="html"&&ie==="babel"){let oe="script",{attrMap:Ue}=Le.parent;Ue&&(Ue.type==="module"||Ue.type==="text/babel"&&Ue["data-type"]==="module")&&(oe="module"),he.__babelSourceType=oe}return[p,R(Le,ce),ge(We,he,{stripTrailingHardline:!0}),x(Le,ce)]}}else if(Le.parent.type==="interpolation"){let ie={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return ce.parser==="angular"?(ie.parser="__ng_interpolation",ie.trailingComma="none"):ce.parser==="vue"?ie.parser=ce.__should_parse_vue_template_with_ts?"__vue_ts_expression":"__vue_expression":ie.parser="__js_expression",[f([d,ge(Le.value,ie,{stripTrailingHardline:!0})]),Le.parent.next&&S(Le.parent.next)?" ":d]}break}case"attribute":{if(!Le.value)break;if(/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(ce.originalText.slice(Le.valueSpan.start.offset,Le.valueSpan.end.offset)))return[Le.rawName,"=",Le.value];if(ce.parser==="lwc"&&/^{.*}$/s.test(ce.originalText.slice(Le.valueSpan.start.offset,Le.valueSpan.end.offset)))return[Le.rawName,"=",Le.value];let ie=U(Le,(We,he)=>ge(We,Object.assign({__isInHtmlAttribute:!0,__embeddedInHtml:!0},he),{stripTrailingHardline:!0}),ce);if(ie)return[Le.rawName,'="',v(C(ie,We=>typeof We=="string"?We.replace(/"/g,"&quot;"):We)),'"'];break}case"front-matter":return _(Le,ge)}}A.exports=z}}),u1=Te({"src/language-html/print/children.js"(m,A){Ve();var{builders:{breakParent:p,group:v,ifBreak:D,line:f,softline:d,hardline:h},utils:{replaceTextEndOfLine:E}}=Tn(),{locStart:C,locEnd:B}=Mp(),{forceBreakChildren:_,forceNextEmptyLine:P,isTextLikeNode:x,hasPrettierIgnore:S,preferHardlineAsLeadingSpaces:R}=fo(),{printOpeningTagPrefix:X,needsToBorrowNextOpeningTagStartMarker:te,printOpeningTagStartMarker:$,needsToBorrowPrevClosingTagEndMarker:Q,printClosingTagEndMarker:G,printClosingTagSuffix:re,needsToBorrowParentClosingTagStartMarker:ee}=tu();function De(F,j,y){let L=F.getValue();return S(L)?[X(L,j),...E(j.originalText.slice(C(L)+(L.prev&&te(L.prev)?$(L).length:0),B(L)-(L.next&&Q(L.next)?G(L,j).length:0))),re(L,j)]:y()}function N(F,j){return x(F)&&x(j)?F.isTrailingSpaceSensitive?F.hasTrailingSpaces?R(j)?h:f:"":R(j)?h:d:te(F)&&(S(j)||j.firstChild||j.isSelfClosing||j.type==="element"&&j.attrs.length>0)||F.type==="element"&&F.isSelfClosing&&Q(j)?"":!j.isLeadingSpaceSensitive||R(j)||Q(j)&&F.lastChild&&ee(F.lastChild)&&F.lastChild.lastChild&&ee(F.lastChild.lastChild)?h:j.hasLeadingSpaces?f:d}function J(F,j,y){let L=F.getValue();if(_(L))return[p,...F.map(q=>{let U=q.getValue(),z=U.prev?N(U.prev,U):"";return[z?[z,P(U.prev)?h:""]:"",De(q,j,y)]},"children")];let M=L.children.map(()=>Symbol(""));return F.map((q,U)=>{let z=q.getValue();if(x(z)){if(z.prev&&x(z.prev)){let We=N(z.prev,z);if(We)return P(z.prev)?[h,h,De(q,j,y)]:[We,De(q,j,y)]}return De(q,j,y)}let se=[],le=[],ge=[],ce=[],Le=z.prev?N(z.prev,z):"",ie=z.next?N(z,z.next):"";return Le&&(P(z.prev)?se.push(h,h):Le===h?se.push(h):x(z.prev)?le.push(Le):le.push(D("",d,{groupId:M[U-1]}))),ie&&(P(z)?x(z.next)&&ce.push(h,h):ie===h?x(z.next)&&ce.push(h):ge.push(ie)),[...se,v([...le,v([De(q,j,y),...ge],{id:M[U]})]),...ce]},"children")}A.exports={printChildren:J}}}),yw=Te({"src/language-html/print/element.js"(m,A){Ve();var{builders:{breakParent:p,dedentToRoot:v,group:D,ifBreak:f,indentIfBreak:d,indent:h,line:E,softline:C},utils:{replaceTextEndOfLine:B}}=Tn(),_=o1(),{shouldPreserveContent:P,isScriptLikeTag:x,isVueCustomBlock:S,countParents:R,forceBreakContent:X}=fo(),{printOpeningTagPrefix:te,printOpeningTag:$,printClosingTagSuffix:Q,printClosingTag:G,needsToBorrowPrevClosingTagEndMarker:re,needsToBorrowLastChildClosingTagEndMarker:ee}=tu(),{printChildren:De}=u1();function N(J,F,j){let y=J.getValue();if(P(y,F))return[te(y,F),D($(J,F,j)),...B(_(y,F)),...G(y,F),Q(y,F)];let L=y.children.length===1&&y.firstChild.type==="interpolation"&&y.firstChild.isLeadingSpaceSensitive&&!y.firstChild.hasLeadingSpaces&&y.lastChild.isTrailingSpaceSensitive&&!y.lastChild.hasTrailingSpaces,M=Symbol("element-attr-group-id"),q=le=>D([D($(J,F,j),{id:M}),le,G(y,F)]),U=le=>L?d(le,{groupId:M}):(x(y)||S(y,F))&&y.parent.type==="root"&&F.parser==="vue"&&!F.vueIndentScriptAndStyle?le:h(le),z=()=>L?f(C,"",{groupId:M}):y.firstChild.hasLeadingSpaces&&y.firstChild.isLeadingSpaceSensitive?E:y.firstChild.type==="text"&&y.isWhitespaceSensitive&&y.isIndentationSensitive?v(C):C,se=()=>(y.next?re(y.next):ee(y.parent))?y.lastChild.hasTrailingSpaces&&y.lastChild.isTrailingSpaceSensitive?" ":"":L?f(C,"",{groupId:M}):y.lastChild.hasTrailingSpaces&&y.lastChild.isTrailingSpaceSensitive?E:(y.lastChild.type==="comment"||y.lastChild.type==="text"&&y.isWhitespaceSensitive&&y.isIndentationSensitive)&&new RegExp(`\\n[\\t ]{${F.tabWidth*R(J,le=>le.parent&&le.parent.type!=="root")}}$`).test(y.lastChild.value)?"":C;return y.children.length===0?q(y.hasDanglingSpaces&&y.isDanglingSpaceSensitive?E:""):q([X(y)?p:"",U([z(),De(J,F,j)]),se()])}A.exports={printElement:N}}}),Dw=Te({"src/language-html/printer-html.js"(m,A){Ve();var{builders:{fill:p,group:v,hardline:D,literalline:f},utils:{cleanDoc:d,getDocParts:h,isConcat:E,replaceTextEndOfLine:C}}=Tn(),B=rw(),{countChars:_,unescapeQuoteEntities:P,getTextValueParts:x}=fo(),S=fw(),{insertPragma:R}=pw(),{locStart:X,locEnd:te}=Mp(),$=gw(),{printClosingTagSuffix:Q,printClosingTagEnd:G,printOpeningTagPrefix:re,printOpeningTagStart:ee}=tu(),{printElement:De}=yw(),{printChildren:N}=u1();function J(F,j,y){let L=F.getValue();switch(L.type){case"front-matter":return C(L.raw);case"root":return j.__onHtmlRoot&&j.__onHtmlRoot(L),[v(N(F,j,y)),D];case"element":case"ieConditionalComment":return De(F,j,y);case"ieConditionalStartComment":case"ieConditionalEndComment":return[ee(L),G(L)];case"interpolation":return[ee(L,j),...F.map(y,"children"),G(L,j)];case"text":{if(L.parent.type==="interpolation"){let q=/\n[^\S\n]*$/,U=q.test(L.value),z=U?L.value.replace(q,""):L.value;return[...C(z),U?D:""]}let M=d([re(L,j),...x(L),Q(L,j)]);return E(M)||M.type==="fill"?p(h(M)):M}case"docType":return[v([ee(L,j)," ",L.value.replace(/^html\b/i,"html").replace(/\s+/g," ")]),G(L,j)];case"comment":return[re(L,j),...C(j.originalText.slice(X(L),te(L)),f),Q(L,j)];case"attribute":{if(L.value===null)return L.rawName;let M=P(L.value),q=_(M,"'"),U=_(M,'"'),z=q<U?"'":'"';return[L.rawName,"=",z,...C(z==='"'?M.replace(/"/g,"&quot;"):M.replace(/'/g,"&apos;")),z]}default:throw new Error(`Unexpected node type ${L.type}`)}}A.exports={preprocess:S,print:J,insertPragma:R,massageAstNode:B,embed:$}}}),bw=Te({"src/language-html/options.js"(m,A){Ve();var p=co(),v="HTML";A.exports={bracketSameLine:p.bracketSameLine,htmlWhitespaceSensitivity:{since:"1.15.0",category:v,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},singleAttributePerLine:p.singleAttributePerLine,vueIndentScriptAndStyle:{since:"1.19.0",category:v,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}}}}),vw=Te({"src/language-html/parsers.js"(){Ve()}}),Ip=Te({"node_modules/linguist-languages/data/HTML.json"(m,A){A.exports={name:"HTML",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".html",".hta",".htm",".html.hl",".inc",".xht",".xhtml"],languageId:146}}}),Ew=Te({"node_modules/linguist-languages/data/Vue.json"(m,A){A.exports={name:"Vue",type:"markup",color:"#41b883",extensions:[".vue"],tmScope:"text.html.vue",aceMode:"html",languageId:391}}}),Aw=Te({"src/language-html/index.js"(m,A){Ve();var p=oa(),v=Dw(),D=bw(),f=vw(),d=[p(Ip(),()=>({name:"Angular",since:"1.15.0",parsers:["angular"],vscodeLanguageIds:["html"],extensions:[".component.html"],filenames:[]})),p(Ip(),E=>({since:"1.15.0",parsers:["html"],vscodeLanguageIds:["html"],extensions:[...E.extensions,".mjml"]})),p(Ip(),()=>({name:"Lightning Web Components",since:"1.17.0",parsers:["lwc"],vscodeLanguageIds:["html"],extensions:[],filenames:[]})),p(Ew(),()=>({since:"1.10.0",parsers:["vue"],vscodeLanguageIds:["vue"]}))],h={html:v};A.exports={languages:d,printers:h,options:D,parsers:f}}}),ww=Te({"src/language-yaml/pragma.js"(m,A){Ve();function p(f){return/^\s*@(?:prettier|format)\s*$/.test(f)}function v(f){return/^\s*#[^\S\n]*@(?:prettier|format)\s*?(?:\n|$)/.test(f)}function D(f){return`# @format
274
+
275
+ ${f}`}A.exports={isPragma:p,hasPragma:v,insertPragma:D}}}),xw=Te({"src/language-yaml/loc.js"(m,A){Ve();function p(D){return D.position.start.offset}function v(D){return D.position.end.offset}A.exports={locStart:p,locEnd:v}}}),Cw=Te({"src/language-yaml/embed.js"(m,A){Ve();function p(v,D,f,d){if(v.getValue().type==="root"&&d.filepath&&/(?:[/\\]|^)\.(?:prettier|stylelint|lintstaged)rc$/.test(d.filepath))return f(d.originalText,Object.assign(Object.assign({},d),{},{parser:"json"}))}A.exports=p}}),po=Te({"src/language-yaml/utils.js"(m,A){Ve();var{getLast:p,isNonEmptyArray:v}=ye();function D(N,J){let F=0,j=N.stack.length-1;for(let y=0;y<j;y++){let L=N.stack[y];f(L)&&J(L)&&F++}return F}function f(N,J){return N&&typeof N.type=="string"&&(!J||J.includes(N.type))}function d(N,J,F){return J("children"in N?Object.assign(Object.assign({},N),{},{children:N.children.map(j=>d(j,J,N))}):N,F)}function h(N,J,F){Object.defineProperty(N,J,{get:F,enumerable:!1})}function E(N,J){let F=0,j=J.length;for(let y=N.position.end.offset-1;y<j;y++){let L=J[y];if(L===`
276
+ `&&F++,F===1&&/\S/.test(L))return!1;if(F===2)return!0}return!1}function C(N){switch(N.getValue().type){case"tag":case"anchor":case"comment":return!1}let J=N.stack.length;for(let F=1;F<J;F++){let j=N.stack[F],y=N.stack[F-1];if(Array.isArray(y)&&typeof j=="number"&&j!==y.length-1)return!1}return!0}function B(N){return v(N.children)?B(p(N.children)):N}function _(N){return N.value.trim()==="prettier-ignore"}function P(N){let J=N.getValue();if(J.type==="documentBody"){let F=N.getParentNode();return Q(F.head)&&_(p(F.head.endComments))}return R(J)&&_(p(J.leadingComments))}function x(N){return!v(N.children)&&!S(N)}function S(N){return R(N)||X(N)||te(N)||$(N)||Q(N)}function R(N){return v(N?.leadingComments)}function X(N){return v(N?.middleComments)}function te(N){return N?.indicatorComment}function $(N){return N?.trailingComment}function Q(N){return v(N?.endComments)}function G(N){let J=[],F;for(let j of N.split(/( +)/))j!==" "?F===" "?J.push(j):J.push((J.pop()||"")+j):F===void 0&&J.unshift(""),F=j;return F===" "&&J.push((J.pop()||"")+" "),J[0]===""&&(J.shift(),J.unshift(" "+(J.shift()||""))),J}function re(N,J,F){let j=J.split(`
277
+ `).map((y,L,M)=>L===0&&L===M.length-1?y:L!==0&&L!==M.length-1?y.trim():L===0?y.trimEnd():y.trimStart());return F.proseWrap==="preserve"?j.map(y=>y.length===0?[]:[y]):j.map(y=>y.length===0?[]:G(y)).reduce((y,L,M)=>M!==0&&j[M-1].length>0&&L.length>0&&!(N==="quoteDouble"&&p(p(y)).endsWith("\\"))?[...y.slice(0,-1),[...p(y),...L]]:[...y,L],[]).map(y=>F.proseWrap==="never"?[y.join(" ")]:y)}function ee(N,J){let{parentIndent:F,isLastDescendant:j,options:y}=J,L=N.position.start.line===N.position.end.line?"":y.originalText.slice(N.position.start.offset,N.position.end.offset).match(/^[^\n]*\n(.*)$/s)[1],M;if(N.indent===null){let z=L.match(/^(?<leadingSpace> *)[^\n\r ]/m);M=z?z.groups.leadingSpace.length:Number.POSITIVE_INFINITY}else M=N.indent-1+F;let q=L.split(`
278
+ `).map(z=>z.slice(M));if(y.proseWrap==="preserve"||N.type==="blockLiteral")return U(q.map(z=>z.length===0?[]:[z]));return U(q.map(z=>z.length===0?[]:G(z)).reduce((z,se,le)=>le!==0&&q[le-1].length>0&&se.length>0&&!/^\s/.test(se[0])&&!/^\s|\s$/.test(p(z))?[...z.slice(0,-1),[...p(z),...se]]:[...z,se],[]).map(z=>z.reduce((se,le)=>se.length>0&&/\s$/.test(p(se))?[...se.slice(0,-1),p(se)+" "+le]:[...se,le],[])).map(z=>y.proseWrap==="never"?[z.join(" ")]:z));function U(z){if(N.chomping==="keep")return p(z).length===0?z.slice(0,-1):z;let se=0;for(let le=z.length-1;le>=0&&z[le].length===0;le--)se++;return se===0?z:se>=2&&!j?z.slice(0,-(se-1)):z.slice(0,-se)}}function De(N){if(!N)return!0;switch(N.type){case"plain":case"quoteDouble":case"quoteSingle":case"alias":case"flowMapping":case"flowSequence":return!0;default:return!1}}A.exports={getLast:p,getAncestorCount:D,isNode:f,isEmptyNode:x,isInlineNode:De,mapNode:d,defineShortcut:h,isNextLineEmpty:E,isLastDescendantNode:C,getBlockValueLineContents:ee,getFlowScalarLineContents:re,getLastDescendantNode:B,hasPrettierIgnore:P,hasLeadingComments:R,hasMiddleComments:X,hasIndicatorComment:te,hasTrailingComment:$,hasEndComments:Q}}}),Sw=Te({"src/language-yaml/print-preprocess.js"(m,A){Ve();var{defineShortcut:p,mapNode:v}=po();function D(d){return v(d,f)}function f(d){switch(d.type){case"document":p(d,"head",()=>d.children[0]),p(d,"body",()=>d.children[1]);break;case"documentBody":case"sequenceItem":case"flowSequenceItem":case"mappingKey":case"mappingValue":p(d,"content",()=>d.children[0]);break;case"mappingItem":case"flowMappingItem":p(d,"key",()=>d.children[0]),p(d,"value",()=>d.children[1]);break}return d}A.exports=D}}),$l=Te({"src/language-yaml/print/misc.js"(m,A){Ve();var{builders:{softline:p,align:v}}=Tn(),{hasEndComments:D,isNextLineEmpty:f,isNode:d}=po(),h=new WeakMap;function E(_,P){let x=_.getValue(),S=_.stack[0],R;return h.has(S)?R=h.get(S):(R=new Set,h.set(S,R)),!R.has(x.position.end.line)&&(R.add(x.position.end.line),f(x,P)&&!C(_.getParentNode()))?p:""}function C(_){return D(_)&&!d(_,["documentHead","documentBody","flowMapping","flowSequence"])}function B(_,P){return v(" ".repeat(_),P)}A.exports={alignWithSpaces:B,shouldPrintEndComments:C,printNextEmptyLine:E}}}),Fw=Te({"src/language-yaml/print/flow-mapping-sequence.js"(m,A){Ve();var{builders:{ifBreak:p,line:v,softline:D,hardline:f,join:d}}=Tn(),{isEmptyNode:h,getLast:E,hasEndComments:C}=po(),{printNextEmptyLine:B,alignWithSpaces:_}=$l();function P(S,R,X){let te=S.getValue(),$=te.type==="flowMapping",Q=$?"{":"[",G=$?"}":"]",re=D;$&&te.children.length>0&&X.bracketSpacing&&(re=v);let ee=E(te.children),De=ee&&ee.type==="flowMappingItem"&&h(ee.key)&&h(ee.value);return[Q,_(X.tabWidth,[re,x(S,R,X),X.trailingComma==="none"?"":p(","),C(te)?[f,d(f,S.map(R,"endComments"))]:""]),De?"":re,G]}function x(S,R,X){let te=S.getValue();return S.map(($,Q)=>[R(),Q===te.children.length-1?"":[",",v,te.children[Q].position.start.line!==te.children[Q+1].position.start.line?B($,X.originalText):""]],"children")}A.exports={printFlowMapping:P,printFlowSequence:P}}}),Nw=Te({"src/language-yaml/print/mapping-item.js"(m,A){Ve();var{builders:{conditionalGroup:p,group:v,hardline:D,ifBreak:f,join:d,line:h}}=Tn(),{hasLeadingComments:E,hasMiddleComments:C,hasTrailingComment:B,hasEndComments:_,isNode:P,isEmptyNode:x,isInlineNode:S}=po(),{alignWithSpaces:R}=$l();function X(G,re,ee,De,N){let{key:J,value:F}=G,j=x(J),y=x(F);if(j&&y)return": ";let L=De("key"),M=$(G)?" ":"";if(y)return G.type==="flowMappingItem"&&re.type==="flowMapping"?L:G.type==="mappingItem"&&te(J.content,N)&&!B(J.content)&&(!re.tag||re.tag.value!=="tag:yaml.org,2002:set")?[L,M,":"]:["? ",R(2,L)];let q=De("value");if(j)return[": ",R(2,q)];if(E(F)||!S(J.content))return["? ",R(2,L),D,d("",ee.map(De,"value","leadingComments").map(ce=>[ce,D])),": ",R(2,q)];if(Q(J.content)&&!E(J.content)&&!C(J.content)&&!B(J.content)&&!_(J)&&!E(F.content)&&!C(F.content)&&!_(F)&&te(F.content,N))return[L,M,": ",q];let U=Symbol("mappingKey"),z=v([f("? "),v(R(2,L),{id:U})]),se=[D,": ",R(2,q)],le=[M,":"];E(F.content)||_(F)&&F.content&&!P(F.content,["mapping","sequence"])||re.type==="mapping"&&B(J.content)&&S(F.content)||P(F.content,["mapping","sequence"])&&F.content.tag===null&&F.content.anchor===null?le.push(D):F.content&&le.push(h),le.push(q);let ge=R(N.tabWidth,le);return te(J.content,N)&&!E(J.content)&&!C(J.content)&&!_(J)?p([[L,ge]]):p([[z,f(se,ge,{groupId:U})]])}function te(G,re){if(!G)return!0;switch(G.type){case"plain":case"quoteSingle":case"quoteDouble":break;case"alias":return!0;default:return!1}if(re.proseWrap==="preserve")return G.position.start.line===G.position.end.line;if(/\\$/m.test(re.originalText.slice(G.position.start.offset,G.position.end.offset)))return!1;switch(re.proseWrap){case"never":return!G.value.includes(`
279
+ `);case"always":return!/[\n ]/.test(G.value);default:return!1}}function $(G){return G.key.content&&G.key.content.type==="alias"}function Q(G){if(!G)return!0;switch(G.type){case"plain":case"quoteDouble":case"quoteSingle":return G.position.start.line===G.position.end.line;case"alias":return!0;default:return!1}}A.exports=X}}),Tw=Te({"src/language-yaml/print/block.js"(m,A){Ve();var{builders:{dedent:p,dedentToRoot:v,fill:D,hardline:f,join:d,line:h,literalline:E,markAsRoot:C},utils:{getDocParts:B}}=Tn(),{getAncestorCount:_,getBlockValueLineContents:P,hasIndicatorComment:x,isLastDescendantNode:S,isNode:R}=po(),{alignWithSpaces:X}=$l();function te($,Q,G){let re=$.getValue(),ee=_($,j=>R(j,["sequence","mapping"])),De=S($),N=[re.type==="blockFolded"?">":"|"];re.indent!==null&&N.push(re.indent.toString()),re.chomping!=="clip"&&N.push(re.chomping==="keep"?"+":"-"),x(re)&&N.push(" ",Q("indicatorComment"));let J=P(re,{parentIndent:ee,isLastDescendant:De,options:G}),F=[];for(let[j,y]of J.entries())j===0&&F.push(f),F.push(D(B(d(h,y)))),j!==J.length-1?F.push(y.length===0?f:C(E)):re.chomping==="keep"&&De&&F.push(v(y.length===0?f:E));return re.indent===null?N.push(p(X(G.tabWidth,F))):N.push(v(X(re.indent-1+ee,F))),N}A.exports=te}}),_w=Te({"src/language-yaml/printer-yaml.js"(m,A){Ve();var{builders:{breakParent:p,fill:v,group:D,hardline:f,join:d,line:h,lineSuffix:E,literalline:C},utils:{getDocParts:B,replaceTextEndOfLine:_}}=Tn(),{isPreviousLineEmpty:P}=ye(),{insertPragma:x,isPragma:S}=ww(),{locStart:R}=xw(),X=Cw(),{getFlowScalarLineContents:te,getLastDescendantNode:$,hasLeadingComments:Q,hasMiddleComments:G,hasTrailingComment:re,hasEndComments:ee,hasPrettierIgnore:De,isLastDescendantNode:N,isNode:J,isInlineNode:F}=po(),j=Sw(),{alignWithSpaces:y,printNextEmptyLine:L,shouldPrintEndComments:M}=$l(),{printFlowMapping:q,printFlowSequence:U}=Fw(),z=Nw(),se=Tw();function le(oe,Ue,it){let Xe=oe.getValue(),bt=[];Xe.type!=="mappingValue"&&Q(Xe)&&bt.push([d(f,oe.map(it,"leadingComments")),f]);let{tag:be,anchor:Re}=Xe;be&&bt.push(it("tag")),be&&Re&&bt.push(" "),Re&&bt.push(it("anchor"));let gt="";J(Xe,["mapping","sequence","comment","directive","mappingItem","sequenceItem"])&&!N(oe)&&(gt=L(oe,Ue.originalText)),(be||Re)&&(J(Xe,["sequence","mapping"])&&!G(Xe)?bt.push(f):bt.push(" ")),G(Xe)&&bt.push([Xe.middleComments.length===1?"":f,d(f,oe.map(it,"middleComments")),f]);let yt=oe.getParentNode();return De(oe)?bt.push(_(Ue.originalText.slice(Xe.position.start.offset,Xe.position.end.offset).trimEnd(),C)):bt.push(D(ge(Xe,yt,oe,Ue,it))),re(Xe)&&!J(Xe,["document","documentHead"])&&bt.push(E([Xe.type==="mappingValue"&&!Xe.content?"":" ",yt.type==="mappingKey"&&oe.getParentNode(2).type==="mapping"&&F(Xe)?"":p,it("trailingComment")])),M(Xe)&&bt.push(y(Xe.type==="sequenceItem"?2:0,[f,d(f,oe.map(zt=>[P(Ue.originalText,zt.getValue(),R)?f:"",it()],"endComments"))])),bt.push(gt),bt}function ge(oe,Ue,it,Xe,bt){switch(oe.type){case"root":{let{children:be}=oe,Re=[];it.each((yt,zt)=>{let qe=be[zt],Ce=be[zt+1];zt!==0&&Re.push(f),Re.push(bt()),Le(qe,Ce)?(Re.push(f,"..."),re(qe)&&Re.push(" ",bt("trailingComment"))):Ce&&!re(Ce.head)&&Re.push(f,"---")},"children");let gt=$(oe);return(!J(gt,["blockLiteral","blockFolded"])||gt.chomping!=="keep")&&Re.push(f),Re}case"document":{let be=Ue.children[it.getName()+1],Re=[];return ie(oe,be,Ue,Xe)==="head"&&((oe.head.children.length>0||oe.head.endComments.length>0)&&Re.push(bt("head")),re(oe.head)?Re.push(["---"," ",bt(["head","trailingComment"])]):Re.push("---")),ce(oe)&&Re.push(bt("body")),d(f,Re)}case"documentHead":return d(f,[...it.map(bt,"children"),...it.map(bt,"endComments")]);case"documentBody":{let{children:be,endComments:Re}=oe,gt="";if(be.length>0&&Re.length>0){let yt=$(oe);J(yt,["blockFolded","blockLiteral"])?yt.chomping!=="keep"&&(gt=[f,f]):gt=f}return[d(f,it.map(bt,"children")),gt,d(f,it.map(bt,"endComments"))]}case"directive":return["%",d(" ",[oe.name,...oe.parameters])];case"comment":return["#",oe.value];case"alias":return["*",oe.value];case"tag":return Xe.originalText.slice(oe.position.start.offset,oe.position.end.offset);case"anchor":return["&",oe.value];case"plain":return We(oe.type,Xe.originalText.slice(oe.position.start.offset,oe.position.end.offset),Xe);case"quoteDouble":case"quoteSingle":{let be="'",Re='"',gt=Xe.originalText.slice(oe.position.start.offset+1,oe.position.end.offset-1);if(oe.type==="quoteSingle"&&gt.includes("\\")||oe.type==="quoteDouble"&&/\\[^"]/.test(gt)){let zt=oe.type==="quoteDouble"?Re:be;return[zt,We(oe.type,gt,Xe),zt]}if(gt.includes(Re))return[be,We(oe.type,oe.type==="quoteDouble"?gt.replace(/\\"/g,Re).replace(/'/g,be.repeat(2)):gt,Xe),be];if(gt.includes(be))return[Re,We(oe.type,oe.type==="quoteSingle"?gt.replace(/''/g,be):gt,Xe),Re];let yt=Xe.singleQuote?be:Re;return[yt,We(oe.type,gt,Xe),yt]}case"blockFolded":case"blockLiteral":return se(it,bt,Xe);case"mapping":case"sequence":return d(f,it.map(bt,"children"));case"sequenceItem":return["- ",y(2,oe.content?bt("content"):"")];case"mappingKey":case"mappingValue":return oe.content?bt("content"):"";case"mappingItem":case"flowMappingItem":return z(oe,Ue,it,bt,Xe);case"flowMapping":return q(it,bt,Xe);case"flowSequence":return U(it,bt,Xe);case"flowSequenceItem":return bt("content");default:throw new Error(`Unexpected node type ${oe.type}`)}}function ce(oe){return oe.body.children.length>0||ee(oe.body)}function Le(oe,Ue){return re(oe)||Ue&&(Ue.head.children.length>0||ee(Ue.head))}function ie(oe,Ue,it,Xe){return it.children[0]===oe&&/---(?:\s|$)/.test(Xe.originalText.slice(R(oe),R(oe)+4))||oe.head.children.length>0||ee(oe.head)||re(oe.head)?"head":Le(oe,Ue)?!1:Ue?"root":!1}function We(oe,Ue,it){let Xe=te(oe,Ue,it);return d(f,Xe.map(bt=>v(B(d(h,bt)))))}function he(oe,Ue){if(J(Ue))switch(delete Ue.position,Ue.type){case"comment":if(S(Ue.value))return null;break;case"quoteDouble":case"quoteSingle":Ue.type="quote";break}}A.exports={preprocess:j,embed:X,print:le,massageAstNode:he,insertPragma:x}}}),Lw=Te({"src/language-yaml/options.js"(m,A){Ve();var p=co();A.exports={bracketSpacing:p.bracketSpacing,singleQuote:p.singleQuote,proseWrap:p.proseWrap}}}),kw=Te({"src/language-yaml/parsers.js"(){Ve()}}),Pw=Te({"node_modules/linguist-languages/data/YAML.json"(m,A){A.exports={name:"YAML",type:"data",color:"#cb171e",tmScope:"source.yaml",aliases:["yml"],extensions:[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yaml.sed",".yml.mysql"],filenames:[".clang-format",".clang-tidy",".gemrc","CITATION.cff","glide.lock","yarn.lock"],aceMode:"yaml",codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",languageId:407}}}),Bw=Te({"src/language-yaml/index.js"(m,A){Ve();var p=oa(),v=_w(),D=Lw(),f=kw(),d=[p(Pw(),h=>({since:"1.14.0",parsers:["yaml"],vscodeLanguageIds:["yaml","ansible","home-assistant"],filenames:[...h.filenames.filter(E=>E!=="yarn.lock"),".prettierrc",".stylelintrc",".lintstagedrc"]}))];A.exports={languages:d,printers:{yaml:v},options:D,parsers:f}}}),Mw=Te({"src/languages.js"(m,A){Ve(),A.exports=[mA(),PA(),VA(),HA(),nw(),Aw(),Bw()]}});Ve();var{version:Iw}=rs(),ho=kE(),{getSupportInfo:Ow}=Pt(),Rw=PE(),jw=Mw(),$w=Tn();function la(m){let A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return function(){for(var p=arguments.length,v=new Array(p),D=0;D<p;D++)v[D]=arguments[D];let f=v[A]||{},d=f.plugins||[];return v[A]=Object.assign(Object.assign({},f),{},{plugins:[...jw,...Array.isArray(d)?d:Object.values(d)]}),m(...v)}}var Op=la(ho.formatWithCursor);ct.exports={formatWithCursor:Op,format(m,A){return Op(m,A).formatted},check(m,A){let{formatted:p}=Op(m,A);return p===m},doc:$w,getSupportInfo:la(Ow,0),version:Iw,util:Rw,__debug:{parse:la(ho.parse),formatAST:la(ho.formatAST),formatDoc:la(ho.formatDoc),printToDoc:la(ho.printToDoc),printDocToString:la(ho.printDocToString)}}});return lp()})})(_f)),_f.exports}var xv=wv(),Lf={exports:{}},Qg;function Cv(){return Qg||(Qg=1,(function(e,t){(function(n){e.exports=n()})(function(){var n=(s,i)=>()=>(i||s((i={exports:{}}).exports,i),i.exports),r=n((s,i)=>{var a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,b=(Y,g)=>function(){return Y&&(g=(0,Y[u(Y)[0]])(Y=0)),g},c=(Y,g)=>function(){return g||(0,Y[u(Y)[0]])((g={exports:{}}).exports,g),g.exports},T=(Y,g)=>{for(var W in g)a(Y,W,{get:g[W],enumerable:!0})},K=(Y,g,W,we)=>{if(g&&typeof g=="object"||typeof g=="function")for(let Me of u(g))!l.call(Y,Me)&&Me!==W&&a(Y,Me,{get:()=>g[Me],enumerable:!(we=o(g,Me))||we.enumerable});return Y},ne=Y=>K(a({},"__esModule",{value:!0}),Y),O,k=b({"<define:process>"(){O={env:{},argv:[]}}}),me=c({"src/common/parser-create-error.js"(Y,g){k();function W(we,Me){let Ie=new SyntaxError(we+" ("+Me.start.line+":"+Me.start.column+")");return Ie.loc=Me,Ie}g.exports=W}}),Se=c({"src/language-yaml/pragma.js"(Y,g){k();function W(Ie){return/^\s*@(?:prettier|format)\s*$/.test(Ie)}function we(Ie){return/^\s*#[^\S\n]*@(?:prettier|format)\s*?(?:\n|$)/.test(Ie)}function Me(Ie){return`# @format
280
+
281
+ ${Ie}`}g.exports={isPragma:W,hasPragma:we,insertPragma:Me}}}),_e=c({"src/language-yaml/loc.js"(Y,g){k();function W(Me){return Me.position.start.offset}function we(Me){return Me.position.end.offset}g.exports={locStart:W,locEnd:we}}}),Ye={};T(Ye,{__assign:()=>Xs,__asyncDelegator:()=>rn,__asyncGenerator:()=>ln,__asyncValues:()=>Pn,__await:()=>qt,__awaiter:()=>Je,__classPrivateFieldGet:()=>Zr,__classPrivateFieldSet:()=>js,__createBinding:()=>de,__decorate:()=>Fe,__exportStar:()=>Ze,__extends:()=>ve,__generator:()=>ze,__importDefault:()=>Dr,__importStar:()=>Sr,__makeTemplateObject:()=>Gn,__metadata:()=>xe,__param:()=>Be,__read:()=>He,__rest:()=>Pe,__spread:()=>ft,__spreadArrays:()=>Lt,__values:()=>at});function ve(Y,g){Ii(Y,g);function W(){this.constructor=Y}Y.prototype=g===null?Object.create(g):(W.prototype=g.prototype,new W)}function Pe(Y,g){var W={};for(var we in Y)Object.prototype.hasOwnProperty.call(Y,we)&&g.indexOf(we)<0&&(W[we]=Y[we]);if(Y!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,we=Object.getOwnPropertySymbols(Y);Me<we.length;Me++)g.indexOf(we[Me])<0&&Object.prototype.propertyIsEnumerable.call(Y,we[Me])&&(W[we[Me]]=Y[we[Me]]);return W}function Fe(Y,g,W,we){var Me=arguments.length,Ie=Me<3?g:we===null?we=Object.getOwnPropertyDescriptor(g,W):we,nt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Ie=Reflect.decorate(Y,g,W,we);else for(var vt=Y.length-1;vt>=0;vt--)(nt=Y[vt])&&(Ie=(Me<3?nt(Ie):Me>3?nt(g,W,Ie):nt(g,W))||Ie);return Me>3&&Ie&&Object.defineProperty(g,W,Ie),Ie}function Be(Y,g){return function(W,we){g(W,we,Y)}}function xe(Y,g){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(Y,g)}function Je(Y,g,W,we){function Me(Ie){return Ie instanceof W?Ie:new W(function(nt){nt(Ie)})}return new(W||(W=Promise))(function(Ie,nt){function vt(At){try{lt(we.next(At))}catch(Pt){nt(Pt)}}function Ut(At){try{lt(we.throw(At))}catch(Pt){nt(Pt)}}function lt(At){At.done?Ie(At.value):Me(At.value).then(vt,Ut)}lt((we=we.apply(Y,g||[])).next())})}function ze(Y,g){var W={label:0,sent:function(){if(Ie[0]&1)throw Ie[1];return Ie[1]},trys:[],ops:[]},we,Me,Ie,nt;return nt={next:vt(0),throw:vt(1),return:vt(2)},typeof Symbol=="function"&&(nt[Symbol.iterator]=function(){return this}),nt;function vt(lt){return function(At){return Ut([lt,At])}}function Ut(lt){if(we)throw new TypeError("Generator is already executing.");for(;W;)try{if(we=1,Me&&(Ie=lt[0]&2?Me.return:lt[0]?Me.throw||((Ie=Me.return)&&Ie.call(Me),0):Me.next)&&!(Ie=Ie.call(Me,lt[1])).done)return Ie;switch(Me=0,Ie&&(lt=[lt[0]&2,Ie.value]),lt[0]){case 0:case 1:Ie=lt;break;case 4:return W.label++,{value:lt[1],done:!1};case 5:W.label++,Me=lt[1],lt=[0];continue;case 7:lt=W.ops.pop(),W.trys.pop();continue;default:if(Ie=W.trys,!(Ie=Ie.length>0&&Ie[Ie.length-1])&&(lt[0]===6||lt[0]===2)){W=0;continue}if(lt[0]===3&&(!Ie||lt[1]>Ie[0]&&lt[1]<Ie[3])){W.label=lt[1];break}if(lt[0]===6&&W.label<Ie[1]){W.label=Ie[1],Ie=lt;break}if(Ie&&W.label<Ie[2]){W.label=Ie[2],W.ops.push(lt);break}Ie[2]&&W.ops.pop(),W.trys.pop();continue}lt=g.call(Y,W)}catch(At){lt=[6,At],Me=0}finally{we=Ie=0}if(lt[0]&5)throw lt[1];return{value:lt[0]?lt[1]:void 0,done:!0}}}function de(Y,g,W,we){we===void 0&&(we=W),Y[we]=g[W]}function Ze(Y,g){for(var W in Y)W!=="default"&&!g.hasOwnProperty(W)&&(g[W]=Y[W])}function at(Y){var g=typeof Symbol=="function"&&Symbol.iterator,W=g&&Y[g],we=0;if(W)return W.call(Y);if(Y&&typeof Y.length=="number")return{next:function(){return Y&&we>=Y.length&&(Y=void 0),{value:Y&&Y[we++],done:!Y}}};throw new TypeError(g?"Object is not iterable.":"Symbol.iterator is not defined.")}function He(Y,g){var W=typeof Symbol=="function"&&Y[Symbol.iterator];if(!W)return Y;var we=W.call(Y),Me,Ie=[],nt;try{for(;(g===void 0||g-- >0)&&!(Me=we.next()).done;)Ie.push(Me.value)}catch(vt){nt={error:vt}}finally{try{Me&&!Me.done&&(W=we.return)&&W.call(we)}finally{if(nt)throw nt.error}}return Ie}function ft(){for(var Y=[],g=0;g<arguments.length;g++)Y=Y.concat(He(arguments[g]));return Y}function Lt(){for(var Y=0,g=0,W=arguments.length;g<W;g++)Y+=arguments[g].length;for(var we=Array(Y),Me=0,g=0;g<W;g++)for(var Ie=arguments[g],nt=0,vt=Ie.length;nt<vt;nt++,Me++)we[Me]=Ie[nt];return we}function qt(Y){return this instanceof qt?(this.v=Y,this):new qt(Y)}function ln(Y,g,W){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var we=W.apply(Y,g||[]),Me,Ie=[];return Me={},nt("next"),nt("throw"),nt("return"),Me[Symbol.asyncIterator]=function(){return this},Me;function nt($t){we[$t]&&(Me[$t]=function(Mt){return new Promise(function(Ht,Yt){Ie.push([$t,Mt,Ht,Yt])>1||vt($t,Mt)})})}function vt($t,Mt){try{Ut(we[$t](Mt))}catch(Ht){Pt(Ie[0][3],Ht)}}function Ut($t){$t.value instanceof qt?Promise.resolve($t.value.v).then(lt,At):Pt(Ie[0][2],$t)}function lt($t){vt("next",$t)}function At($t){vt("throw",$t)}function Pt($t,Mt){$t(Mt),Ie.shift(),Ie.length&&vt(Ie[0][0],Ie[0][1])}}function rn(Y){var g,W;return g={},we("next"),we("throw",function(Me){throw Me}),we("return"),g[Symbol.iterator]=function(){return this},g;function we(Me,Ie){g[Me]=Y[Me]?function(nt){return(W=!W)?{value:qt(Y[Me](nt)),done:Me==="return"}:Ie?Ie(nt):nt}:Ie}}function Pn(Y){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var g=Y[Symbol.asyncIterator],W;return g?g.call(Y):(Y=typeof at=="function"?at(Y):Y[Symbol.iterator](),W={},we("next"),we("throw"),we("return"),W[Symbol.asyncIterator]=function(){return this},W);function we(Ie){W[Ie]=Y[Ie]&&function(nt){return new Promise(function(vt,Ut){nt=Y[Ie](nt),Me(vt,Ut,nt.done,nt.value)})}}function Me(Ie,nt,vt,Ut){Promise.resolve(Ut).then(function(lt){Ie({value:lt,done:vt})},nt)}}function Gn(Y,g){return Object.defineProperty?Object.defineProperty(Y,"raw",{value:g}):Y.raw=g,Y}function Sr(Y){if(Y&&Y.__esModule)return Y;var g={};if(Y!=null)for(var W in Y)Object.hasOwnProperty.call(Y,W)&&(g[W]=Y[W]);return g.default=Y,g}function Dr(Y){return Y&&Y.__esModule?Y:{default:Y}}function Zr(Y,g){if(!g.has(Y))throw new TypeError("attempted to get private field on non-instance");return g.get(Y)}function js(Y,g,W){if(!g.has(Y))throw new TypeError("attempted to set private field on non-instance");return g.set(Y,W),W}var Ii,Xs,ir=b({"node_modules/tslib/tslib.es6.js"(){k(),Ii=function(Y,g){return Ii=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(W,we){W.__proto__=we}||function(W,we){for(var Me in we)we.hasOwnProperty(Me)&&(W[Me]=we[Me])},Ii(Y,g)},Xs=function(){return Xs=Object.assign||function(Y){for(var g,W=1,we=arguments.length;W<we;W++){g=arguments[W];for(var Me in g)Object.prototype.hasOwnProperty.call(g,Me)&&(Y[Me]=g[Me])}return Y},Xs.apply(this,arguments)}}}),dl=c({"node_modules/yaml-unist-parser/node_modules/lines-and-columns/build/index.js"(Y){k(),Y.__esModule=!0,Y.LinesAndColumns=void 0;var g=`
282
+ `,W="\r",we=(function(){function Me(Ie){this.string=Ie;for(var nt=[0],vt=0;vt<Ie.length;)switch(Ie[vt]){case g:vt+=g.length,nt.push(vt);break;case W:vt+=W.length,Ie[vt]===g&&(vt+=g.length),nt.push(vt);break;default:vt++;break}this.offsets=nt}return Me.prototype.locationForIndex=function(Ie){if(Ie<0||Ie>this.string.length)return null;for(var nt=0,vt=this.offsets;vt[nt+1]<=Ie;)nt++;var Ut=Ie-vt[nt];return{line:nt,column:Ut}},Me.prototype.indexForLocation=function(Ie){var nt=Ie.line,vt=Ie.column;return nt<0||nt>=this.offsets.length||vt<0||vt>this.lengthOfLine(nt)?null:this.offsets[nt]+vt},Me.prototype.lengthOfLine=function(Ie){var nt=this.offsets[Ie],vt=Ie===this.offsets.length-1?this.string.length:this.offsets[Ie+1];return vt-nt},Me})();Y.LinesAndColumns=we,Y.default=we}}),Gf=c({"node_modules/yaml-unist-parser/lib/utils/define-parents.js"(Y){k(),Y.__esModule=!0;function g(W,we){we===void 0&&(we=null),"children"in W&&W.children.forEach(function(Me){return g(Me,W)}),"anchor"in W&&W.anchor&&g(W.anchor,W),"tag"in W&&W.tag&&g(W.tag,W),"leadingComments"in W&&W.leadingComments.forEach(function(Me){return g(Me,W)}),"middleComments"in W&&W.middleComments.forEach(function(Me){return g(Me,W)}),"indicatorComment"in W&&W.indicatorComment&&g(W.indicatorComment,W),"trailingComment"in W&&W.trailingComment&&g(W.trailingComment,W),"endComments"in W&&W.endComments.forEach(function(Me){return g(Me,W)}),Object.defineProperty(W,"_parent",{value:we,enumerable:!1})}Y.defineParents=g}}),Za=c({"node_modules/yaml-unist-parser/lib/utils/get-point-text.js"(Y){k(),Y.__esModule=!0;function g(W){return W.line+":"+W.column}Y.getPointText=g}}),Jf=c({"node_modules/yaml-unist-parser/lib/attach.js"(Y){k(),Y.__esModule=!0;var g=Gf(),W=Za();function we(lt){g.defineParents(lt);var At=Me(lt),Pt=lt.children.slice();lt.comments.sort(function($t,Mt){return $t.position.start.offset-Mt.position.end.offset}).filter(function($t){return!$t._parent}).forEach(function($t){for(;Pt.length>1&&$t.position.start.line>Pt[0].position.end.line;)Pt.shift();nt($t,At,Pt[0])})}Y.attachComments=we;function Me(lt){for(var At=Array.from(new Array(lt.position.end.line),function(){return{}}),Pt=0,$t=lt.comments;Pt<$t.length;Pt++){var Mt=$t[Pt];At[Mt.position.start.line-1].comment=Mt}return Ie(At,lt),At}function Ie(lt,At){if(At.position.start.offset!==At.position.end.offset){if("leadingComments"in At){var Pt=At.position.start,$t=lt[Pt.line-1].leadingAttachableNode;(!$t||Pt.column<$t.position.start.column)&&(lt[Pt.line-1].leadingAttachableNode=At)}if("trailingComment"in At&&At.position.end.column>1&&At.type!=="document"&&At.type!=="documentHead"){var Mt=At.position.end,Ht=lt[Mt.line-1].trailingAttachableNode;(!Ht||Mt.column>=Ht.position.end.column)&&(lt[Mt.line-1].trailingAttachableNode=At)}if(At.type!=="root"&&At.type!=="document"&&At.type!=="documentHead"&&At.type!=="documentBody")for(var Yt=At.position,Pt=Yt.start,Mt=Yt.end,en=[Mt.line].concat(Pt.line===Mt.line?[]:Pt.line),An=0,ye=en;An<ye.length;An++){var Z=ye[An],I=lt[Z-1].trailingNode;(!I||Mt.column>=I.position.end.column)&&(lt[Z-1].trailingNode=At)}"children"in At&&At.children.forEach(function(H){Ie(lt,H)})}}function nt(lt,At,Pt){var $t=lt.position.start.line,Mt=At[$t-1].trailingAttachableNode;if(Mt){if(Mt.trailingComment)throw new Error("Unexpected multiple trailing comment at "+W.getPointText(lt.position.start));g.defineParents(lt,Mt),Mt.trailingComment=lt;return}for(var Ht=$t;Ht>=Pt.position.start.line;Ht--){var Yt=At[Ht-1].trailingNode,en=void 0;if(Yt)en=Yt;else if(Ht!==$t&&At[Ht-1].comment)en=At[Ht-1].comment._parent;else continue;if((en.type==="sequence"||en.type==="mapping")&&(en=en.children[0]),en.type==="mappingItem"){var An=en.children,ye=An[0],Z=An[1];en=Ut(ye)?ye:Z}for(;;){if(vt(en,lt)){g.defineParents(lt,en),en.endComments.push(lt);return}if(!en._parent)break;en=en._parent}break}for(var Ht=$t+1;Ht<=Pt.position.end.line;Ht++){var I=At[Ht-1].leadingAttachableNode;if(I){g.defineParents(lt,I),I.leadingComments.push(lt);return}}var H=Pt.children[1];g.defineParents(lt,H),H.endComments.push(lt)}function vt(lt,At){if(lt.position.start.offset<At.position.start.offset&&lt.position.end.offset>At.position.end.offset)switch(lt.type){case"flowMapping":case"flowSequence":return lt.children.length===0||At.position.start.line>lt.children[lt.children.length-1].position.end.line}if(At.position.end.offset<lt.position.end.offset)return!1;switch(lt.type){case"sequenceItem":return At.position.start.column>lt.position.start.column;case"mappingKey":case"mappingValue":return At.position.start.column>lt._parent.position.start.column&&(lt.children.length===0||lt.children.length===1&&lt.children[0].type!=="blockFolded"&&lt.children[0].type!=="blockLiteral")&&(lt.type==="mappingValue"||Ut(lt));default:return!1}}function Ut(lt){return lt.position.start!==lt.position.end&&(lt.children.length===0||lt.position.start.offset!==lt.children[0].position.start.offset)}}}),Or=c({"node_modules/yaml-unist-parser/lib/factories/node.js"(Y){k(),Y.__esModule=!0;function g(W,we){return{type:W,position:we}}Y.createNode=g}}),hl=c({"node_modules/yaml-unist-parser/lib/factories/root.js"(Y){k(),Y.__esModule=!0;var g=(ir(),ne(Ye)),W=Or();function we(Me,Ie,nt){return g.__assign(g.__assign({},W.createNode("root",Me)),{children:Ie,comments:nt})}Y.createRoot=we}}),Yf=c({"node_modules/yaml-unist-parser/lib/preprocess.js"(Y){k(),Y.__esModule=!0;function g(W){switch(W.type){case"DOCUMENT":for(var we=W.contents.length-1;we>=0;we--)W.contents[we].type==="BLANK_LINE"?W.contents.splice(we,1):g(W.contents[we]);for(var we=W.directives.length-1;we>=0;we--)W.directives[we].type==="BLANK_LINE"&&W.directives.splice(we,1);break;case"FLOW_MAP":case"FLOW_SEQ":case"MAP":case"SEQ":for(var we=W.items.length-1;we>=0;we--){var Me=W.items[we];"char"in Me||(Me.type==="BLANK_LINE"?W.items.splice(we,1):g(Me))}break;case"MAP_KEY":case"MAP_VALUE":case"SEQ_ITEM":W.node&&g(W.node);break;case"ALIAS":case"BLANK_LINE":case"BLOCK_FOLDED":case"BLOCK_LITERAL":case"COMMENT":case"DIRECTIVE":case"PLAIN":case"QUOTE_DOUBLE":case"QUOTE_SINGLE":break;default:throw new Error("Unexpected node type "+JSON.stringify(W.type))}}Y.removeCstBlankLine=g}}),Di=c({"node_modules/yaml-unist-parser/lib/factories/leading-comment-attachable.js"(Y){k(),Y.__esModule=!0;function g(){return{leadingComments:[]}}Y.createLeadingCommentAttachable=g}}),eo=c({"node_modules/yaml-unist-parser/lib/factories/trailing-comment-attachable.js"(Y){k(),Y.__esModule=!0;function g(W){return W===void 0&&(W=null),{trailingComment:W}}Y.createTrailingCommentAttachable=g}}),bi=c({"node_modules/yaml-unist-parser/lib/factories/comment-attachable.js"(Y){k(),Y.__esModule=!0;var g=(ir(),ne(Ye)),W=Di(),we=eo();function Me(){return g.__assign(g.__assign({},W.createLeadingCommentAttachable()),we.createTrailingCommentAttachable())}Y.createCommentAttachable=Me}}),Jo=c({"node_modules/yaml-unist-parser/lib/factories/alias.js"(Y){k(),Y.__esModule=!0;var g=(ir(),ne(Ye)),W=bi(),we=Or();function Me(Ie,nt,vt){return g.__assign(g.__assign(g.__assign(g.__assign({},we.createNode("alias",Ie)),W.createCommentAttachable()),nt),{value:vt})}Y.createAlias=Me}}),Hf=c({"node_modules/yaml-unist-parser/lib/transforms/alias.js"(Y){k(),Y.__esModule=!0;var g=Jo();function W(we,Me){var Ie=we.cstNode;return g.createAlias(Me.transformRange({origStart:Ie.valueRange.origStart-1,origEnd:Ie.valueRange.origEnd}),Me.transformContent(we),Ie.rawValue)}Y.transformAlias=W}}),zf=c({"node_modules/yaml-unist-parser/lib/factories/block-folded.js"(Y){k(),Y.__esModule=!0;var g=(ir(),ne(Ye));function W(we){return g.__assign(g.__assign({},we),{type:"blockFolded"})}Y.createBlockFolded=W}}),na=c({"node_modules/yaml-unist-parser/lib/factories/block-value.js"(Y){k(),Y.__esModule=!0;var g=(ir(),ne(Ye)),W=Di(),we=Or();function Me(Ie,nt,vt,Ut,lt,At){return g.__assign(g.__assign(g.__assign(g.__assign({},we.createNode("blockValue",Ie)),W.createLeadingCommentAttachable()),nt),{chomping:vt,indent:Ut,value:lt,indicatorComment:At})}Y.createBlockValue=Me}}),ml=c({"node_modules/yaml-unist-parser/lib/constants.js"(Y){k(),Y.__esModule=!0,(function(g){g.Tag="!",g.Anchor="&",g.Comment="#"})(Y.PropLeadingCharacter||(Y.PropLeadingCharacter={}))}}),Xf=c({"node_modules/yaml-unist-parser/lib/factories/anchor.js"(Y){k(),Y.__esModule=!0;var g=(ir(),ne(Ye)),W=Or();function we(Me,Ie){return g.__assign(g.__assign({},W.createNode("anchor",Me)),{value:Ie})}Y.createAnchor=we}}),Yo=c({"node_modules/yaml-unist-parser/lib/factories/comment.js"(Y){k(),Y.__esModule=!0;var g=(ir(),ne(Ye)),W=Or();function we(Me,Ie){return g.__assign(g.__assign({},W.createNode("comment",Me)),{value:Ie})}Y.createComment=we}}),Qf=c({"node_modules/yaml-unist-parser/lib/factories/content.js"(Y){k(),Y.__esModule=!0;function g(W,we,Me){return{anchor:we,tag:W,middleComments:Me}}Y.createContent=g}}),Kf=c({"node_modules/yaml-unist-parser/lib/factories/tag.js"(Y){k(),Y.__esModule=!0;var g=(ir(),ne(Ye)),W=Or();function we(Me,Ie){return g.__assign(g.__assign({},W.createNode("tag",Me)),{value:Ie})}Y.createTag=we}}),gl=c({"node_modules/yaml-unist-parser/lib/transforms/content.js"(Y){k(),Y.__esModule=!0;var g=ml(),W=Xf(),we=Yo(),Me=Qf(),Ie=Kf();function nt(vt,Ut,lt){lt===void 0&&(lt=function(){return!1});for(var At=vt.cstNode,Pt=[],$t=null,Mt=null,Ht=null,Yt=0,en=At.props;Yt<en.length;Yt++){var An=en[Yt],ye=Ut.text[An.origStart];switch(ye){case g.PropLeadingCharacter.Tag:$t=$t||An,Mt=Ie.createTag(Ut.transformRange(An),vt.tag);break;case g.PropLeadingCharacter.Anchor:$t=$t||An,Ht=W.createAnchor(Ut.transformRange(An),At.anchor);break;case g.PropLeadingCharacter.Comment:{var Z=we.createComment(Ut.transformRange(An),Ut.text.slice(An.origStart+1,An.origEnd));Ut.comments.push(Z),!lt(Z)&&$t&&$t.origEnd<=An.origStart&&An.origEnd<=At.valueRange.origStart&&Pt.push(Z);break}default:throw new Error("Unexpected leading character "+JSON.stringify(ye))}}return Me.createContent(Mt,Ht,Pt)}Y.transformContent=nt}}),yl=c({"node_modules/yaml-unist-parser/lib/transforms/block-value.js"(Y){k(),Y.__esModule=!0;var g=na(),W=Za(),we=gl(),Me;(function(nt){nt.CLIP="clip",nt.STRIP="strip",nt.KEEP="keep"})(Me||(Me={}));function Ie(nt,vt){var Ut=nt.cstNode,lt=1,At=Ut.chomping==="CLIP"?0:1,Pt=Ut.header.origEnd-Ut.header.origStart,$t=Pt-lt-At!==0,Mt=vt.transformRange({origStart:Ut.header.origStart,origEnd:Ut.valueRange.origEnd}),Ht=null,Yt=we.transformContent(nt,vt,function(en){var An=Mt.start.offset<en.position.start.offset&&en.position.end.offset<Mt.end.offset;if(!An)return!1;if(Ht)throw new Error("Unexpected multiple indicator comments at "+W.getPointText(en.position.start));return Ht=en,!0});return g.createBlockValue(Mt,Yt,Me[Ut.chomping],$t?Ut.blockIndent:null,Ut.strValue,Ht)}Y.transformAstBlockValue=Ie}}),Zf=c({"node_modules/yaml-unist-parser/lib/transforms/block-folded.js"(Y){k(),Y.__esModule=!0;var g=zf(),W=yl();function we(Me,Ie){return g.createBlockFolded(W.transformAstBlockValue(Me,Ie))}Y.transformBlockFolded=we}}),to=c({"node_modules/yaml-unist-parser/lib/factories/block-literal.js"(Y){k(),Y.__esModule=!0;var g=(ir(),ne(Ye));function W(we){return g.__assign(g.__assign({},we),{type:"blockLiteral"})}Y.createBlockLiteral=W}}),Dl=c({"node_modules/yaml-unist-parser/lib/transforms/block-literal.js"(Y){k(),Y.__esModule=!0;var g=to(),W=yl();function we(Me,Ie){return g.createBlockLiteral(W.transformAstBlockValue(Me,Ie))}Y.transformBlockLiteral=we}}),ep=c({"node_modules/yaml-unist-parser/lib/transforms/comment.js"(Y){k(),Y.__esModule=!0;var g=Yo();function W(we,Me){return g.createComment(Me.transformRange(we.range),we.comment)}Y.transformComment=W}}),tp=c({"node_modules/yaml-unist-parser/lib/factories/directive.js"(Y){k(),Y.__esModule=!0;var g=(ir(),ne(Ye)),W=bi(),we=Or();function Me(Ie,nt,vt){return g.__assign(g.__assign(g.__assign({},we.createNode("directive",Ie)),W.createCommentAttachable()),{name:nt,parameters:vt})}Y.createDirective=Me}}),no=c({"node_modules/yaml-unist-parser/lib/utils/extract-prop-comments.js"(Y){k(),Y.__esModule=!0;var g=ml(),W=Yo();function we(Me,Ie){for(var nt=0,vt=Me.props;nt<vt.length;nt++){var Ut=vt[nt],lt=Ie.text[Ut.origStart];if(lt===g.PropLeadingCharacter.Comment)Ie.comments.push(W.createComment(Ie.transformRange(Ut),Ie.text.slice(Ut.origStart+1,Ut.origEnd)));else throw new Error("Unexpected leading character "+JSON.stringify(lt))}}Y.extractPropComments=we}}),bl=c({"node_modules/yaml-unist-parser/lib/transforms/directive.js"(Y){k(),Y.__esModule=!0;var g=tp(),W=no();function we(Me,Ie){return W.extractPropComments(Me,Ie),g.createDirective(Ie.transformRange(Me.range),Me.name,Me.parameters)}Y.transformDirective=we}}),np=c({"node_modules/yaml-unist-parser/lib/factories/document.js"(Y){k(),Y.__esModule=!0;var g=(ir(),ne(Ye)),W=Or(),we=eo();function Me(Ie,nt,vt,Ut){return g.__assign(g.__assign(g.__assign({},W.createNode("document",Ie)),we.createTrailingCommentAttachable(Ut)),{children:[nt,vt]})}Y.createDocument=Me}}),vi=c({"node_modules/yaml-unist-parser/lib/factories/position.js"(Y){k(),Y.__esModule=!0;function g(we,Me){return{start:we,end:Me}}Y.createPosition=g;function W(we){return{start:we,end:we}}Y.createEmptyPosition=W}}),Ei=c({"node_modules/yaml-unist-parser/lib/factories/end-comment-attachable.js"(Y){k(),Y.__esModule=!0;function g(W){return W===void 0&&(W=[]),{endComments:W}}Y.createEndCommentAttachable=g}}),rp=c({"node_modules/yaml-unist-parser/lib/factories/document-body.js"(Y){k(),Y.__esModule=!0;var g=(ir(),ne(Ye)),W=Ei(),we=Or();function Me(Ie,nt,vt){return g.__assign(g.__assign(g.__assign({},we.createNode("documentBody",Ie)),W.createEndCommentAttachable(vt)),{children:nt?[nt]:[]})}Y.createDocumentBody=Me}}),Ai=c({"node_modules/yaml-unist-parser/lib/utils/get-last.js"(Y){k(),Y.__esModule=!0;function g(W){return W[W.length-1]}Y.getLast=g}}),vl=c({"node_modules/yaml-unist-parser/lib/utils/get-match-index.js"(Y){k(),Y.__esModule=!0;function g(W,we){var Me=W.match(we);return Me?Me.index:-1}Y.getMatchIndex=g}}),El=c({"node_modules/yaml-unist-parser/lib/transforms/document-body.js"(Y){k(),Y.__esModule=!0;var g=(ir(),ne(Ye)),W=rp(),we=Ai(),Me=vl(),Ie=Za();function nt(lt,At,Pt){var $t,Mt=lt.cstNode,Ht=vt(Mt,At,Pt),Yt=Ht.comments,en=Ht.endComments,An=Ht.documentTrailingComment,ye=Ht.documentHeadTrailingComment,Z=At.transformNode(lt.contents),I=Ut(Mt,Z,At),H=I.position,ue=I.documentEndPoint;return($t=At.comments).push.apply($t,g.__spreadArrays(Yt,en)),{documentBody:W.createDocumentBody(H,Z,en),documentEndPoint:ue,documentTrailingComment:An,documentHeadTrailingComment:ye}}Y.transformDocumentBody=nt;function vt(lt,At,Pt){for(var $t=[],Mt=[],Ht=[],Yt=[],en=!1,An=lt.contents.length-1;An>=0;An--){var ye=lt.contents[An];if(ye.type==="COMMENT"){var Z=At.transformNode(ye);Pt&&Pt.line===Z.position.start.line?Yt.unshift(Z):en?$t.unshift(Z):Z.position.start.offset>=lt.valueRange.origEnd?Ht.unshift(Z):$t.unshift(Z)}else en=!0}if(Ht.length>1)throw new Error("Unexpected multiple document trailing comments at "+Ie.getPointText(Ht[1].position.start));if(Yt.length>1)throw new Error("Unexpected multiple documentHead trailing comments at "+Ie.getPointText(Yt[1].position.start));return{comments:$t,endComments:Mt,documentTrailingComment:we.getLast(Ht)||null,documentHeadTrailingComment:we.getLast(Yt)||null}}function Ut(lt,At,Pt){var $t=Me.getMatchIndex(Pt.text.slice(lt.valueRange.origEnd),/^\.\.\./),Mt=$t===-1?lt.valueRange.origEnd:Math.max(0,lt.valueRange.origEnd-1);Pt.text[Mt-1]==="\r"&&Mt--;var Ht=Pt.transformRange({origStart:At!==null?At.position.start.offset:Mt,origEnd:Mt}),Yt=$t===-1?Ht.end:Pt.transformOffset(lt.valueRange.origEnd+3);return{position:Ht,documentEndPoint:Yt}}}}),sp=c({"node_modules/yaml-unist-parser/lib/factories/document-head.js"(Y){k(),Y.__esModule=!0;var g=(ir(),ne(Ye)),W=Ei(),we=Or(),Me=eo();function Ie(nt,vt,Ut,lt){return g.__assign(g.__assign(g.__assign(g.__assign({},we.createNode("documentHead",nt)),W.createEndCommentAttachable(Ut)),Me.createTrailingCommentAttachable(lt)),{children:vt})}Y.createDocumentHead=Ie}}),Al=c({"node_modules/yaml-unist-parser/lib/transforms/document-head.js"(Y){k(),Y.__esModule=!0;var g=(ir(),ne(Ye)),W=sp(),we=vl();function Me(vt,Ut){var lt,At=vt.cstNode,Pt=Ie(At,Ut),$t=Pt.directives,Mt=Pt.comments,Ht=Pt.endComments,Yt=nt(At,$t,Ut),en=Yt.position,An=Yt.endMarkerPoint;(lt=Ut.comments).push.apply(lt,g.__spreadArrays(Mt,Ht));var ye=function(Z){return Z&&Ut.comments.push(Z),W.createDocumentHead(en,$t,Ht,Z)};return{createDocumentHeadWithTrailingComment:ye,documentHeadEndMarkerPoint:An}}Y.transformDocumentHead=Me;function Ie(vt,Ut){for(var lt=[],At=[],Pt=[],$t=!1,Mt=vt.directives.length-1;Mt>=0;Mt--){var Ht=Ut.transformNode(vt.directives[Mt]);Ht.type==="comment"?$t?At.unshift(Ht):Pt.unshift(Ht):($t=!0,lt.unshift(Ht))}return{directives:lt,comments:At,endComments:Pt}}function nt(vt,Ut,lt){var At=we.getMatchIndex(lt.text.slice(0,vt.valueRange.origStart),/---\s*$/);At>0&&!/[\r\n]/.test(lt.text[At-1])&&(At=-1);var Pt=At===-1?{origStart:vt.valueRange.origStart,origEnd:vt.valueRange.origStart}:{origStart:At,origEnd:At+3};return Ut.length!==0&&(Pt.origStart=Ut[0].position.start.offset),{position:lt.transformRange(Pt),endMarkerPoint:At===-1?null:lt.transformOffset(At)}}}}),ip=c({"node_modules/yaml-unist-parser/lib/transforms/document.js"(Y){k(),Y.__esModule=!0;var g=np(),W=vi(),we=El(),Me=Al();function Ie(nt,vt){var Ut=Me.transformDocumentHead(nt,vt),lt=Ut.createDocumentHeadWithTrailingComment,At=Ut.documentHeadEndMarkerPoint,Pt=we.transformDocumentBody(nt,vt,At),$t=Pt.documentBody,Mt=Pt.documentEndPoint,Ht=Pt.documentTrailingComment,Yt=Pt.documentHeadTrailingComment,en=lt(Yt);return Ht&&vt.comments.push(Ht),g.createDocument(W.createPosition(en.position.start,Mt),en,$t,Ht)}Y.transformDocument=Ie}}),wl=c({"node_modules/yaml-unist-parser/lib/factories/flow-collection.js"(Y){k(),Y.__esModule=!0;var g=(ir(),ne(Ye)),W=bi(),we=Ei(),Me=Or();function Ie(nt,vt,Ut){return g.__assign(g.__assign(g.__assign(g.__assign(g.__assign({},Me.createNode("flowCollection",nt)),W.createCommentAttachable()),we.createEndCommentAttachable()),vt),{children:Ut})}Y.createFlowCollection=Ie}}),ap=c({"node_modules/yaml-unist-parser/lib/factories/flow-mapping.js"(Y){k(),Y.__esModule=!0;var g=(ir(),ne(Ye)),W=wl();function we(Me,Ie,nt){return g.__assign(g.__assign({},W.createFlowCollection(Me,Ie,nt)),{type:"flowMapping"})}Y.createFlowMapping=we}}),xl=c({"node_modules/yaml-unist-parser/lib/factories/flow-mapping-item.js"(Y){k(),Y.__esModule=!0;var g=(ir(),ne(Ye)),W=Di(),we=Or();function Me(Ie,nt,vt){return g.__assign(g.__assign(g.__assign({},we.createNode("flowMappingItem",Ie)),W.createLeadingCommentAttachable()),{children:[nt,vt]})}Y.createFlowMappingItem=Me}}),ro=c({"node_modules/yaml-unist-parser/lib/utils/extract-comments.js"(Y){k(),Y.__esModule=!0;function g(W,we){for(var Me=[],Ie=0,nt=W;Ie<nt.length;Ie++){var vt=nt[Ie];vt&&"type"in vt&&vt.type==="COMMENT"?we.comments.push(we.transformNode(vt)):Me.push(vt)}return Me}Y.extractComments=g}}),Cl=c({"node_modules/yaml-unist-parser/lib/utils/get-flow-map-item-additional-ranges.js"(Y){k(),Y.__esModule=!0;function g(W){var we=["?",":"].map(function(nt){var vt=W.find(function(Ut){return"char"in Ut&&Ut.char===nt});return vt?{origStart:vt.origOffset,origEnd:vt.origOffset+1}:null}),Me=we[0],Ie=we[1];return{additionalKeyRange:Me,additionalValueRange:Ie}}Y.getFlowMapItemAdditionalRanges=g}}),Sl=c({"node_modules/yaml-unist-parser/lib/utils/create-slicer.js"(Y){k(),Y.__esModule=!0;function g(W,we){var Me=we;return function(Ie){return W.slice(Me,Me=Ie)}}Y.createSlicer=g}}),Fl=c({"node_modules/yaml-unist-parser/lib/utils/group-cst-flow-collection-items.js"(Y){k(),Y.__esModule=!0;var g=Sl();function W(we){for(var Me=[],Ie=g.createSlicer(we,1),nt=!1,vt=1;vt<we.length-1;vt++){var Ut=we[vt];if("char"in Ut&&Ut.char===","){Me.push(Ie(vt)),Ie(vt+1),nt=!1;continue}nt=!0}return nt&&Me.push(Ie(we.length-1)),Me}Y.groupCstFlowCollectionItems=W}}),op=c({"node_modules/yaml-unist-parser/lib/factories/mapping-key.js"(Y){k(),Y.__esModule=!0;var g=(ir(),ne(Ye)),W=Ei(),we=Or(),Me=eo();function Ie(nt,vt){return g.__assign(g.__assign(g.__assign(g.__assign({},we.createNode("mappingKey",nt)),Me.createTrailingCommentAttachable()),W.createEndCommentAttachable()),{children:vt?[vt]:[]})}Y.createMappingKey=Ie}}),up=c({"node_modules/yaml-unist-parser/lib/factories/mapping-value.js"(Y){k(),Y.__esModule=!0;var g=(ir(),ne(Ye)),W=bi(),we=Ei(),Me=Or();function Ie(nt,vt){return g.__assign(g.__assign(g.__assign(g.__assign({},Me.createNode("mappingValue",nt)),W.createCommentAttachable()),we.createEndCommentAttachable()),{children:vt?[vt]:[]})}Y.createMappingValue=Ie}}),Ho=c({"node_modules/yaml-unist-parser/lib/transforms/pair.js"(Y){k(),Y.__esModule=!0;var g=op(),W=up(),we=vi();function Me(Ie,nt,vt,Ut,lt){var At=nt.transformNode(Ie.key),Pt=nt.transformNode(Ie.value),$t=At||Ut?g.createMappingKey(nt.transformRange({origStart:Ut?Ut.origStart:At.position.start.offset,origEnd:At?At.position.end.offset:Ut.origStart+1}),At):null,Mt=Pt||lt?W.createMappingValue(nt.transformRange({origStart:lt?lt.origStart:Pt.position.start.offset,origEnd:Pt?Pt.position.end.offset:lt.origStart+1}),Pt):null;return vt(we.createPosition($t?$t.position.start:Mt.position.start,Mt?Mt.position.end:$t.position.end),$t||g.createMappingKey(we.createEmptyPosition(Mt.position.start),null),Mt||W.createMappingValue(we.createEmptyPosition($t.position.end),null))}Y.transformAstPair=Me}}),lp=c({"node_modules/yaml-unist-parser/lib/transforms/flow-map.js"(Y){k(),Y.__esModule=!0;var g=ap(),W=xl(),we=ro(),Me=Cl(),Ie=Ai(),nt=Fl(),vt=Ho();function Ut(lt,At){var Pt=we.extractComments(lt.cstNode.items,At),$t=nt.groupCstFlowCollectionItems(Pt),Mt=lt.items.map(function(en,An){var ye=$t[An],Z=Me.getFlowMapItemAdditionalRanges(ye),I=Z.additionalKeyRange,H=Z.additionalValueRange;return vt.transformAstPair(en,At,W.createFlowMappingItem,I,H)}),Ht=Pt[0],Yt=Ie.getLast(Pt);return g.createFlowMapping(At.transformRange({origStart:Ht.origOffset,origEnd:Yt.origOffset+1}),At.transformContent(lt),Mt)}Y.transformFlowMap=Ut}}),Zt=c({"node_modules/yaml-unist-parser/lib/factories/flow-sequence.js"(Y){k(),Y.__esModule=!0;var g=(ir(),ne(Ye)),W=wl();function we(Me,Ie,nt){return g.__assign(g.__assign({},W.createFlowCollection(Me,Ie,nt)),{type:"flowSequence"})}Y.createFlowSequence=we}}),ct=c({"node_modules/yaml-unist-parser/lib/factories/flow-sequence-item.js"(Y){k(),Y.__esModule=!0;var g=(ir(),ne(Ye)),W=Or();function we(Me,Ie){return g.__assign(g.__assign({},W.createNode("flowSequenceItem",Me)),{children:[Ie]})}Y.createFlowSequenceItem=we}}),tt=c({"node_modules/yaml-unist-parser/lib/transforms/flow-seq.js"(Y){k(),Y.__esModule=!0;var g=xl(),W=Zt(),we=ct(),Me=vi(),Ie=ro(),nt=Cl(),vt=Ai(),Ut=Fl(),lt=Ho();function At(Pt,$t){var Mt=Ie.extractComments(Pt.cstNode.items,$t),Ht=Ut.groupCstFlowCollectionItems(Mt),Yt=Pt.items.map(function(ye,Z){if(ye.type!=="PAIR"){var I=$t.transformNode(ye);return we.createFlowSequenceItem(Me.createPosition(I.position.start,I.position.end),I)}else{var H=Ht[Z],ue=nt.getFlowMapItemAdditionalRanges(H),Ne=ue.additionalKeyRange,Oe=ue.additionalValueRange;return lt.transformAstPair(ye,$t,g.createFlowMappingItem,Ne,Oe)}}),en=Mt[0],An=vt.getLast(Mt);return W.createFlowSequence($t.transformRange({origStart:en.origOffset,origEnd:An.origOffset+1}),$t.transformContent(Pt),Yt)}Y.transformFlowSeq=At}}),dt=c({"node_modules/yaml-unist-parser/lib/factories/mapping.js"(Y){k(),Y.__esModule=!0;var g=(ir(),ne(Ye)),W=Di(),we=Or();function Me(Ie,nt,vt){return g.__assign(g.__assign(g.__assign(g.__assign({},we.createNode("mapping",Ie)),W.createLeadingCommentAttachable()),nt),{children:vt})}Y.createMapping=Me}}),ut=c({"node_modules/yaml-unist-parser/lib/factories/mapping-item.js"(Y){k(),Y.__esModule=!0;var g=(ir(),ne(Ye)),W=Di(),we=Or();function Me(Ie,nt,vt){return g.__assign(g.__assign(g.__assign({},we.createNode("mappingItem",Ie)),W.createLeadingCommentAttachable()),{children:[nt,vt]})}Y.createMappingItem=Me}}),Tt=c({"node_modules/yaml-unist-parser/lib/transforms/map.js"(Y){k(),Y.__esModule=!0;var g=dt(),W=ut(),we=vi(),Me=Sl(),Ie=ro(),nt=no(),vt=Ai(),Ut=Ho();function lt(Pt,$t){var Mt=Pt.cstNode;Mt.items.filter(function(An){return An.type==="MAP_KEY"||An.type==="MAP_VALUE"}).forEach(function(An){return nt.extractPropComments(An,$t)});var Ht=Ie.extractComments(Mt.items,$t),Yt=At(Ht),en=Pt.items.map(function(An,ye){var Z=Yt[ye],I=Z[0].type==="MAP_VALUE"?[null,Z[0].range]:[Z[0].range,Z.length===1?null:Z[1].range],H=I[0],ue=I[1];return Ut.transformAstPair(An,$t,W.createMappingItem,H,ue)});return g.createMapping(we.createPosition(en[0].position.start,vt.getLast(en).position.end),$t.transformContent(Pt),en)}Y.transformMap=lt;function At(Pt){for(var $t=[],Mt=Me.createSlicer(Pt,0),Ht=!1,Yt=0;Yt<Pt.length;Yt++){var en=Pt[Yt];if(en.type==="MAP_VALUE"){$t.push(Mt(Yt+1)),Ht=!1;continue}Ht&&$t.push(Mt(Yt)),Ht=!0}return Ht&&$t.push(Mt(1/0)),$t}}}),Ot=c({"node_modules/yaml-unist-parser/lib/factories/plain.js"(Y){k(),Y.__esModule=!0;var g=(ir(),ne(Ye)),W=bi(),we=Or();function Me(Ie,nt,vt){return g.__assign(g.__assign(g.__assign(g.__assign({},we.createNode("plain",Ie)),W.createCommentAttachable()),nt),{value:vt})}Y.createPlain=Me}}),Xt=c({"node_modules/yaml-unist-parser/lib/utils/find-last-char-index.js"(Y){k(),Y.__esModule=!0;function g(W,we,Me){for(var Ie=we;Ie>=0;Ie--)if(Me.test(W[Ie]))return Ie;return-1}Y.findLastCharIndex=g}}),Gt=c({"node_modules/yaml-unist-parser/lib/transforms/plain.js"(Y){k(),Y.__esModule=!0;var g=Ot(),W=Xt();function we(Me,Ie){var nt=Me.cstNode;return g.createPlain(Ie.transformRange({origStart:nt.valueRange.origStart,origEnd:W.findLastCharIndex(Ie.text,nt.valueRange.origEnd-1,/\S/)+1}),Ie.transformContent(Me),nt.strValue)}Y.transformPlain=we}}),Qt=c({"node_modules/yaml-unist-parser/lib/factories/quote-double.js"(Y){k(),Y.__esModule=!0;var g=(ir(),ne(Ye));function W(we){return g.__assign(g.__assign({},we),{type:"quoteDouble"})}Y.createQuoteDouble=W}}),mn=c({"node_modules/yaml-unist-parser/lib/factories/quote-value.js"(Y){k(),Y.__esModule=!0;var g=(ir(),ne(Ye)),W=bi(),we=Or();function Me(Ie,nt,vt){return g.__assign(g.__assign(g.__assign(g.__assign({},we.createNode("quoteValue",Ie)),nt),W.createCommentAttachable()),{value:vt})}Y.createQuoteValue=Me}}),vn=c({"node_modules/yaml-unist-parser/lib/transforms/quote-value.js"(Y){k(),Y.__esModule=!0;var g=mn();function W(we,Me){var Ie=we.cstNode;return g.createQuoteValue(Me.transformRange(Ie.valueRange),Me.transformContent(we),Ie.strValue)}Y.transformAstQuoteValue=W}}),wn=c({"node_modules/yaml-unist-parser/lib/transforms/quote-double.js"(Y){k(),Y.__esModule=!0;var g=Qt(),W=vn();function we(Me,Ie){return g.createQuoteDouble(W.transformAstQuoteValue(Me,Ie))}Y.transformQuoteDouble=we}}),gn=c({"node_modules/yaml-unist-parser/lib/factories/quote-single.js"(Y){k(),Y.__esModule=!0;var g=(ir(),ne(Ye));function W(we){return g.__assign(g.__assign({},we),{type:"quoteSingle"})}Y.createQuoteSingle=W}}),Te=c({"node_modules/yaml-unist-parser/lib/transforms/quote-single.js"(Y){k(),Y.__esModule=!0;var g=gn(),W=vn();function we(Me,Ie){return g.createQuoteSingle(W.transformAstQuoteValue(Me,Ie))}Y.transformQuoteSingle=we}}),Nn=c({"node_modules/yaml-unist-parser/lib/factories/sequence.js"(Y){k(),Y.__esModule=!0;var g=(ir(),ne(Ye)),W=Ei(),we=Di(),Me=Or();function Ie(nt,vt,Ut){return g.__assign(g.__assign(g.__assign(g.__assign(g.__assign({},Me.createNode("sequence",nt)),we.createLeadingCommentAttachable()),W.createEndCommentAttachable()),vt),{children:Ut})}Y.createSequence=Ie}}),jn=c({"node_modules/yaml-unist-parser/lib/factories/sequence-item.js"(Y){k(),Y.__esModule=!0;var g=(ir(),ne(Ye)),W=bi(),we=Ei(),Me=Or();function Ie(nt,vt){return g.__assign(g.__assign(g.__assign(g.__assign({},Me.createNode("sequenceItem",nt)),W.createCommentAttachable()),we.createEndCommentAttachable()),{children:vt?[vt]:[]})}Y.createSequenceItem=Ie}}),rr=c({"node_modules/yaml-unist-parser/lib/transforms/seq.js"(Y){k(),Y.__esModule=!0;var g=vi(),W=Nn(),we=jn(),Me=ro(),Ie=no(),nt=Ai();function vt(Ut,lt){var At=Me.extractComments(Ut.cstNode.items,lt),Pt=At.map(function($t,Mt){Ie.extractPropComments($t,lt);var Ht=lt.transformNode(Ut.items[Mt]);return we.createSequenceItem(g.createPosition(lt.transformOffset($t.valueRange.origStart),Ht===null?lt.transformOffset($t.valueRange.origStart+1):Ht.position.end),Ht)});return W.createSequence(g.createPosition(Pt[0].position.start,nt.getLast(Pt).position.end),lt.transformContent(Ut),Pt)}Y.transformSeq=vt}}),Kn=c({"node_modules/yaml-unist-parser/lib/transform.js"(Y){k(),Y.__esModule=!0;var g=Hf(),W=Zf(),we=Dl(),Me=ep(),Ie=bl(),nt=ip(),vt=lp(),Ut=tt(),lt=Tt(),At=Gt(),Pt=wn(),$t=Te(),Mt=rr();function Ht(Yt,en){if(Yt===null||Yt.type===void 0&&Yt.value===null)return null;switch(Yt.type){case"ALIAS":return g.transformAlias(Yt,en);case"BLOCK_FOLDED":return W.transformBlockFolded(Yt,en);case"BLOCK_LITERAL":return we.transformBlockLiteral(Yt,en);case"COMMENT":return Me.transformComment(Yt,en);case"DIRECTIVE":return Ie.transformDirective(Yt,en);case"DOCUMENT":return nt.transformDocument(Yt,en);case"FLOW_MAP":return vt.transformFlowMap(Yt,en);case"FLOW_SEQ":return Ut.transformFlowSeq(Yt,en);case"MAP":return lt.transformMap(Yt,en);case"PLAIN":return At.transformPlain(Yt,en);case"QUOTE_DOUBLE":return Pt.transformQuoteDouble(Yt,en);case"QUOTE_SINGLE":return $t.transformQuoteSingle(Yt,en);case"SEQ":return Mt.transformSeq(Yt,en);default:throw new Error("Unexpected node type "+Yt.type)}}Y.transformNode=Ht}}),Tr=c({"node_modules/yaml-unist-parser/lib/factories/error.js"(Y){k(),Y.__esModule=!0;function g(W,we,Me){var Ie=new SyntaxError(W);return Ie.name="YAMLSyntaxError",Ie.source=we,Ie.position=Me,Ie}Y.createError=g}}),Ve=c({"node_modules/yaml-unist-parser/lib/transforms/error.js"(Y){k(),Y.__esModule=!0;var g=Tr();function W(we,Me){var Ie=we.source.range||we.source.valueRange;return g.createError(we.message,Me.text,Me.transformRange(Ie))}Y.transformError=W}}),rs=c({"node_modules/yaml-unist-parser/lib/factories/point.js"(Y){k(),Y.__esModule=!0;function g(W,we,Me){return{offset:W,line:we,column:Me}}Y.createPoint=g}}),wi=c({"node_modules/yaml-unist-parser/lib/transforms/offset.js"(Y){k(),Y.__esModule=!0;var g=rs();function W(we,Me){we<0?we=0:we>Me.text.length&&(we=Me.text.length);var Ie=Me.locator.locationForIndex(we);return g.createPoint(we,Ie.line+1,Ie.column+1)}Y.transformOffset=W}}),Oi=c({"node_modules/yaml-unist-parser/lib/transforms/range.js"(Y){k(),Y.__esModule=!0;var g=vi();function W(we,Me){return g.createPosition(Me.transformOffset(we.origStart),Me.transformOffset(we.origEnd))}Y.transformRange=W}}),bs=c({"node_modules/yaml-unist-parser/lib/utils/add-orig-range.js"(Y){k(),Y.__esModule=!0;var g=!0;function W(nt){if(!nt.setOrigRanges()){var vt=function(Ut){if(Me(Ut))return Ut.origStart=Ut.start,Ut.origEnd=Ut.end,g;if(Ie(Ut))return Ut.origOffset=Ut.offset,g};nt.forEach(function(Ut){return we(Ut,vt)})}}Y.addOrigRange=W;function we(nt,vt){if(!(!nt||typeof nt!="object")&&vt(nt)!==g)for(var Ut=0,lt=Object.keys(nt);Ut<lt.length;Ut++){var At=lt[Ut];if(!(At==="context"||At==="error")){var Pt=nt[At];Array.isArray(Pt)?Pt.forEach(function($t){return we($t,vt)}):we(Pt,vt)}}}function Me(nt){return typeof nt.start=="number"}function Ie(nt){return typeof nt.offset=="number"}}}),ii=c({"node_modules/yaml-unist-parser/lib/utils/remove-fake-nodes.js"(Y){k(),Y.__esModule=!0;function g(W){if("children"in W){if(W.children.length===1){var we=W.children[0];if(we.type==="plain"&&we.tag===null&&we.anchor===null&&we.value==="")return W.children.splice(0,1),W}W.children.forEach(g)}return W}Y.removeFakeNodes=g}}),Jr=c({"node_modules/yaml-unist-parser/lib/utils/create-updater.js"(Y){k(),Y.__esModule=!0;function g(W,we,Me,Ie){var nt=we(W);return function(vt){Ie(nt,vt)&&Me(W,nt=vt)}}Y.createUpdater=g}}),so=c({"node_modules/yaml-unist-parser/lib/utils/update-positions.js"(Y){k(),Y.__esModule=!0;var g=Jr(),W=Ai();function we(At){if(!(At===null||!("children"in At))){var Pt=At.children;if(Pt.forEach(we),At.type==="document"){var $t=At.children,Mt=$t[0],Ht=$t[1];Mt.position.start.offset===Mt.position.end.offset?Mt.position.start=Mt.position.end=Ht.position.start:Ht.position.start.offset===Ht.position.end.offset&&(Ht.position.start=Ht.position.end=Mt.position.end)}var Yt=g.createUpdater(At.position,Me,Ie,Ut),en=g.createUpdater(At.position,nt,vt,lt);"endComments"in At&&At.endComments.length!==0&&(Yt(At.endComments[0].position.start),en(W.getLast(At.endComments).position.end));var An=Pt.filter(function(I){return I!==null});if(An.length!==0){var ye=An[0],Z=W.getLast(An);Yt(ye.position.start),en(Z.position.end),"leadingComments"in ye&&ye.leadingComments.length!==0&&Yt(ye.leadingComments[0].position.start),"tag"in ye&&ye.tag&&Yt(ye.tag.position.start),"anchor"in ye&&ye.anchor&&Yt(ye.anchor.position.start),"trailingComment"in Z&&Z.trailingComment&&en(Z.trailingComment.position.end)}}}Y.updatePositions=we;function Me(At){return At.start}function Ie(At,Pt){At.start=Pt}function nt(At){return At.end}function vt(At,Pt){At.end=Pt}function Ut(At,Pt){return Pt.offset<At.offset}function lt(At,Pt){return Pt.offset>At.offset}}}),Hr=c({"node_modules/yaml/dist/PlainValue-ec8e588e.js"(Y){k();var g={ANCHOR:"&",COMMENT:"#",TAG:"!",DIRECTIVES_END:"-",DOCUMENT_END:"."},W={ALIAS:"ALIAS",BLANK_LINE:"BLANK_LINE",BLOCK_FOLDED:"BLOCK_FOLDED",BLOCK_LITERAL:"BLOCK_LITERAL",COMMENT:"COMMENT",DIRECTIVE:"DIRECTIVE",DOCUMENT:"DOCUMENT",FLOW_MAP:"FLOW_MAP",FLOW_SEQ:"FLOW_SEQ",MAP:"MAP",MAP_KEY:"MAP_KEY",MAP_VALUE:"MAP_VALUE",PLAIN:"PLAIN",QUOTE_DOUBLE:"QUOTE_DOUBLE",QUOTE_SINGLE:"QUOTE_SINGLE",SEQ:"SEQ",SEQ_ITEM:"SEQ_ITEM"},we="tag:yaml.org,2002:",Me={MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"};function Ie(Z){let I=[0],H=Z.indexOf(`
283
+ `);for(;H!==-1;)H+=1,I.push(H),H=Z.indexOf(`
284
+ `,H);return I}function nt(Z){let I,H;return typeof Z=="string"?(I=Ie(Z),H=Z):(Array.isArray(Z)&&(Z=Z[0]),Z&&Z.context&&(Z.lineStarts||(Z.lineStarts=Ie(Z.context.src)),I=Z.lineStarts,H=Z.context.src)),{lineStarts:I,src:H}}function vt(Z,I){if(typeof Z!="number"||Z<0)return null;let{lineStarts:H,src:ue}=nt(I);if(!H||!ue||Z>ue.length)return null;for(let Oe=0;Oe<H.length;++Oe){let Ee=H[Oe];if(Z<Ee)return{line:Oe,col:Z-H[Oe-1]+1};if(Z===Ee)return{line:Oe+1,col:1}}let Ne=H.length;return{line:Ne,col:Z-H[Ne-1]+1}}function Ut(Z,I){let{lineStarts:H,src:ue}=nt(I);if(!H||!(Z>=1)||Z>H.length)return null;let Ne=H[Z-1],Oe=H[Z];for(;Oe&&Oe>Ne&&ue[Oe-1]===`
285
+ `;)--Oe;return ue.slice(Ne,Oe)}function lt(Z,I){let{start:H,end:ue}=Z,Ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:80,Oe=Ut(H.line,I);if(!Oe)return null;let{col:Ee}=H;if(Oe.length>Ne)if(Ee<=Ne-10)Oe=Oe.substr(0,Ne-1)+"…";else{let xn=Math.round(Ne/2);Oe.length>Ee+xn&&(Oe=Oe.substr(0,Ee+xn-1)+"…"),Ee-=Oe.length-Ne,Oe="…"+Oe.substr(1-Ne)}let $e=1,Ft="";ue&&(ue.line===H.line&&Ee+(ue.col-H.col)<=Ne+1?$e=ue.col-H.col:($e=Math.min(Oe.length+1,Ne)-Ee,Ft="…"));let Vt=Ee>1?" ".repeat(Ee-1):"",Kt="^".repeat($e);return`${Oe}
286
+ ${Vt}${Kt}${Ft}`}var At=class{static copy(Z){return new At(Z.start,Z.end)}constructor(Z,I){this.start=Z,this.end=I||Z}isEmpty(){return typeof this.start!="number"||!this.end||this.end<=this.start}setOrigRange(Z,I){let{start:H,end:ue}=this;if(Z.length===0||ue<=Z[0])return this.origStart=H,this.origEnd=ue,I;let Ne=I;for(;Ne<Z.length&&!(Z[Ne]>H);)++Ne;this.origStart=H+Ne;let Oe=Ne;for(;Ne<Z.length&&!(Z[Ne]>=ue);)++Ne;return this.origEnd=ue+Ne,Oe}},Pt=class{static addStringTerminator(Z,I,H){if(H[H.length-1]===`
287
+ `)return H;let ue=Pt.endOfWhiteSpace(Z,I);return ue>=Z.length||Z[ue]===`
288
+ `?H+`
289
+ `:H}static atDocumentBoundary(Z,I,H){let ue=Z[I];if(!ue)return!0;let Ne=Z[I-1];if(Ne&&Ne!==`
290
+ `)return!1;if(H){if(ue!==H)return!1}else if(ue!==g.DIRECTIVES_END&&ue!==g.DOCUMENT_END)return!1;let Oe=Z[I+1],Ee=Z[I+2];if(Oe!==ue||Ee!==ue)return!1;let $e=Z[I+3];return!$e||$e===`
291
+ `||$e===" "||$e===" "}static endOfIdentifier(Z,I){let H=Z[I],ue=H==="<",Ne=ue?[`
292
+ `," "," ",">"]:[`
293
+ `," "," ","[","]","{","}",","];for(;H&&Ne.indexOf(H)===-1;)H=Z[I+=1];return ue&&H===">"&&(I+=1),I}static endOfIndent(Z,I){let H=Z[I];for(;H===" ";)H=Z[I+=1];return I}static endOfLine(Z,I){let H=Z[I];for(;H&&H!==`
294
+ `;)H=Z[I+=1];return I}static endOfWhiteSpace(Z,I){let H=Z[I];for(;H===" "||H===" ";)H=Z[I+=1];return I}static startOfLine(Z,I){let H=Z[I-1];if(H===`
295
+ `)return I;for(;H&&H!==`
296
+ `;)H=Z[I-=1];return I+1}static endOfBlockIndent(Z,I,H){let ue=Pt.endOfIndent(Z,H);if(ue>H+I)return ue;{let Ne=Pt.endOfWhiteSpace(Z,ue),Oe=Z[Ne];if(!Oe||Oe===`
297
+ `)return Ne}return null}static atBlank(Z,I,H){let ue=Z[I];return ue===`
298
+ `||ue===" "||ue===" "||H&&!ue}static nextNodeIsIndented(Z,I,H){return!Z||I<0?!1:I>0?!0:H&&Z==="-"}static normalizeOffset(Z,I){let H=Z[I];return H?H!==`
299
+ `&&Z[I-1]===`
300
+ `?I-1:Pt.endOfWhiteSpace(Z,I):I}static foldNewline(Z,I,H){let ue=0,Ne=!1,Oe="",Ee=Z[I+1];for(;Ee===" "||Ee===" "||Ee===`
301
+ `;){switch(Ee){case`
302
+ `:ue=0,I+=1,Oe+=`
303
+ `;break;case" ":ue<=H&&(Ne=!0),I=Pt.endOfWhiteSpace(Z,I+2)-1;break;case" ":ue+=1,I+=1;break}Ee=Z[I+1]}return Oe||(Oe=" "),Ee&&ue<=H&&(Ne=!0),{fold:Oe,offset:I,error:Ne}}constructor(Z,I,H){Object.defineProperty(this,"context",{value:H||null,writable:!0}),this.error=null,this.range=null,this.valueRange=null,this.props=I||[],this.type=Z,this.value=null}getPropValue(Z,I,H){if(!this.context)return null;let{src:ue}=this.context,Ne=this.props[Z];return Ne&&ue[Ne.start]===I?ue.slice(Ne.start+(H?1:0),Ne.end):null}get anchor(){for(let Z=0;Z<this.props.length;++Z){let I=this.getPropValue(Z,g.ANCHOR,!0);if(I!=null)return I}return null}get comment(){let Z=[];for(let I=0;I<this.props.length;++I){let H=this.getPropValue(I,g.COMMENT,!0);H!=null&&Z.push(H)}return Z.length>0?Z.join(`
304
+ `):null}commentHasRequiredWhitespace(Z){let{src:I}=this.context;if(this.header&&Z===this.header.end||!this.valueRange)return!1;let{end:H}=this.valueRange;return Z!==H||Pt.atBlank(I,H-1)}get hasComment(){if(this.context){let{src:Z}=this.context;for(let I=0;I<this.props.length;++I)if(Z[this.props[I].start]===g.COMMENT)return!0}return!1}get hasProps(){if(this.context){let{src:Z}=this.context;for(let I=0;I<this.props.length;++I)if(Z[this.props[I].start]!==g.COMMENT)return!0}return!1}get includesTrailingLines(){return!1}get jsonLike(){return[W.FLOW_MAP,W.FLOW_SEQ,W.QUOTE_DOUBLE,W.QUOTE_SINGLE].indexOf(this.type)!==-1}get rangeAsLinePos(){if(!this.range||!this.context)return;let Z=vt(this.range.start,this.context.root);if(!Z)return;let I=vt(this.range.end,this.context.root);return{start:Z,end:I}}get rawValue(){if(!this.valueRange||!this.context)return null;let{start:Z,end:I}=this.valueRange;return this.context.src.slice(Z,I)}get tag(){for(let Z=0;Z<this.props.length;++Z){let I=this.getPropValue(Z,g.TAG,!1);if(I!=null){if(I[1]==="<")return{verbatim:I.slice(2,-1)};{let[H,ue,Ne]=I.match(/^(.*!)([^!]*)$/);return{handle:ue,suffix:Ne}}}}return null}get valueRangeContainsNewline(){if(!this.valueRange||!this.context)return!1;let{start:Z,end:I}=this.valueRange,{src:H}=this.context;for(let ue=Z;ue<I;++ue)if(H[ue]===`
305
+ `)return!0;return!1}parseComment(Z){let{src:I}=this.context;if(I[Z]===g.COMMENT){let H=Pt.endOfLine(I,Z+1),ue=new At(Z,H);return this.props.push(ue),H}return Z}setOrigRanges(Z,I){return this.range&&(I=this.range.setOrigRange(Z,I)),this.valueRange&&this.valueRange.setOrigRange(Z,I),this.props.forEach(H=>H.setOrigRange(Z,I)),I}toString(){let{context:{src:Z},range:I,value:H}=this;if(H!=null)return H;let ue=Z.slice(I.start,I.end);return Pt.addStringTerminator(Z,I.end,ue)}},$t=class extends Error{constructor(Z,I,H){if(!H||!(I instanceof Pt))throw new Error(`Invalid arguments for new ${Z}`);super(),this.name=Z,this.message=H,this.source=I}makePretty(){if(!this.source)return;this.nodeType=this.source.type;let Z=this.source.context&&this.source.context.root;if(typeof this.offset=="number"){this.range=new At(this.offset,this.offset+1);let I=Z&&vt(this.offset,Z);if(I){let H={line:I.line,col:I.col+1};this.linePos={start:I,end:H}}delete this.offset}else this.range=this.source.range,this.linePos=this.source.rangeAsLinePos;if(this.linePos){let{line:I,col:H}=this.linePos.start;this.message+=` at line ${I}, column ${H}`;let ue=Z&&lt(this.linePos,Z);ue&&(this.message+=`:
306
+
307
+ ${ue}
308
+ `)}delete this.source}},Mt=class extends $t{constructor(Z,I){super("YAMLReferenceError",Z,I)}},Ht=class extends $t{constructor(Z,I){super("YAMLSemanticError",Z,I)}},Yt=class extends $t{constructor(Z,I){super("YAMLSyntaxError",Z,I)}},en=class extends $t{constructor(Z,I){super("YAMLWarning",Z,I)}};function An(Z,I,H){return I in Z?Object.defineProperty(Z,I,{value:H,enumerable:!0,configurable:!0,writable:!0}):Z[I]=H,Z}var ye=class extends Pt{static endOfLine(Z,I,H){let ue=Z[I],Ne=I;for(;ue&&ue!==`
309
+ `&&!(H&&(ue==="["||ue==="]"||ue==="{"||ue==="}"||ue===","));){let Oe=Z[Ne+1];if(ue===":"&&(!Oe||Oe===`
310
+ `||Oe===" "||Oe===" "||H&&Oe===",")||(ue===" "||ue===" ")&&Oe==="#")break;Ne+=1,ue=Oe}return Ne}get strValue(){if(!this.valueRange||!this.context)return null;let{start:Z,end:I}=this.valueRange,{src:H}=this.context,ue=H[I-1];for(;Z<I&&(ue===`
311
+ `||ue===" "||ue===" ");)ue=H[--I-1];let Ne="";for(let Ee=Z;Ee<I;++Ee){let $e=H[Ee];if($e===`
312
+ `){let{fold:Ft,offset:Vt}=Pt.foldNewline(H,Ee,-1);Ne+=Ft,Ee=Vt}else if($e===" "||$e===" "){let Ft=Ee,Vt=H[Ee+1];for(;Ee<I&&(Vt===" "||Vt===" ");)Ee+=1,Vt=H[Ee+1];Vt!==`
313
+ `&&(Ne+=Ee>Ft?H.slice(Ft,Ee+1):$e)}else Ne+=$e}let Oe=H[Z];switch(Oe){case" ":{let Ee="Plain value cannot start with a tab character";return{errors:[new Ht(this,Ee)],str:Ne}}case"@":case"`":{let Ee=`Plain value cannot start with reserved character ${Oe}`;return{errors:[new Ht(this,Ee)],str:Ne}}default:return Ne}}parseBlockValue(Z){let{indent:I,inFlow:H,src:ue}=this.context,Ne=Z,Oe=Z;for(let Ee=ue[Ne];Ee===`
314
+ `&&!Pt.atDocumentBoundary(ue,Ne+1);Ee=ue[Ne]){let $e=Pt.endOfBlockIndent(ue,I,Ne+1);if($e===null||ue[$e]==="#")break;ue[$e]===`
315
+ `?Ne=$e:(Oe=ye.endOfLine(ue,$e,H),Ne=Oe)}return this.valueRange.isEmpty()&&(this.valueRange.start=Z),this.valueRange.end=Oe,Oe}parse(Z,I){this.context=Z;let{inFlow:H,src:ue}=Z,Ne=I,Oe=ue[Ne];return Oe&&Oe!=="#"&&Oe!==`
316
+ `&&(Ne=ye.endOfLine(ue,I,H)),this.valueRange=new At(I,Ne),Ne=Pt.endOfWhiteSpace(ue,Ne),Ne=this.parseComment(Ne),(!this.hasComment||this.valueRange.isEmpty())&&(Ne=this.parseBlockValue(Ne)),Ne}};Y.Char=g,Y.Node=Pt,Y.PlainValue=ye,Y.Range=At,Y.Type=W,Y.YAMLError=$t,Y.YAMLReferenceError=Mt,Y.YAMLSemanticError=Ht,Y.YAMLSyntaxError=Yt,Y.YAMLWarning=en,Y._defineProperty=An,Y.defaultTagPrefix=we,Y.defaultTags=Me}}),io=c({"node_modules/yaml/dist/parse-cst.js"(Y){k();var g=Hr(),W=class extends g.Node{constructor(){super(g.Type.BLANK_LINE)}get includesTrailingLines(){return!0}parse(ye,Z){return this.context=ye,this.range=new g.Range(Z,Z+1),Z+1}},we=class extends g.Node{constructor(ye,Z){super(ye,Z),this.node=null}get includesTrailingLines(){return!!this.node&&this.node.includesTrailingLines}parse(ye,Z){this.context=ye;let{parseNode:I,src:H}=ye,{atLineStart:ue,lineStart:Ne}=ye;!ue&&this.type===g.Type.SEQ_ITEM&&(this.error=new g.YAMLSemanticError(this,"Sequence items must not have preceding content on the same line"));let Oe=ue?Z-Ne:ye.indent,Ee=g.Node.endOfWhiteSpace(H,Z+1),$e=H[Ee],Ft=$e==="#",Vt=[],Kt=null;for(;$e===`
317
+ `||$e==="#";){if($e==="#"){let fn=g.Node.endOfLine(H,Ee+1);Vt.push(new g.Range(Ee,fn)),Ee=fn}else{ue=!0,Ne=Ee+1;let fn=g.Node.endOfWhiteSpace(H,Ne);H[fn]===`
318
+ `&&Vt.length===0&&(Kt=new W,Ne=Kt.parse({src:H},Ne)),Ee=g.Node.endOfIndent(H,Ne)}$e=H[Ee]}if(g.Node.nextNodeIsIndented($e,Ee-(Ne+Oe),this.type!==g.Type.SEQ_ITEM)?this.node=I({atLineStart:ue,inCollection:!1,indent:Oe,lineStart:Ne,parent:this},Ee):$e&&Ne>Z+1&&(Ee=Ne-1),this.node){if(Kt){let fn=ye.parent.items||ye.parent.contents;fn&&fn.push(Kt)}Vt.length&&Array.prototype.push.apply(this.props,Vt),Ee=this.node.range.end}else if(Ft){let fn=Vt[0];this.props.push(fn),Ee=fn.end}else Ee=g.Node.endOfLine(H,Z+1);let xn=this.node?this.node.valueRange.end:Ee;return this.valueRange=new g.Range(Z,xn),Ee}setOrigRanges(ye,Z){return Z=super.setOrigRanges(ye,Z),this.node?this.node.setOrigRanges(ye,Z):Z}toString(){let{context:{src:ye},node:Z,range:I,value:H}=this;if(H!=null)return H;let ue=Z?ye.slice(I.start,Z.range.start)+String(Z):ye.slice(I.start,I.end);return g.Node.addStringTerminator(ye,I.end,ue)}},Me=class extends g.Node{constructor(){super(g.Type.COMMENT)}parse(ye,Z){this.context=ye;let I=this.parseComment(Z);return this.range=new g.Range(Z,I),I}};function Ie(ye){let Z=ye;for(;Z instanceof we;)Z=Z.node;if(!(Z instanceof nt))return null;let I=Z.items.length,H=-1;for(let Oe=I-1;Oe>=0;--Oe){let Ee=Z.items[Oe];if(Ee.type===g.Type.COMMENT){let{indent:$e,lineStart:Ft}=Ee.context;if($e>0&&Ee.range.start>=Ft+$e)break;H=Oe}else if(Ee.type===g.Type.BLANK_LINE)H=Oe;else break}if(H===-1)return null;let ue=Z.items.splice(H,I-H),Ne=ue[0].range.start;for(;Z.range.end=Ne,Z.valueRange&&Z.valueRange.end>Ne&&(Z.valueRange.end=Ne),Z!==ye;)Z=Z.context.parent;return ue}var nt=class extends g.Node{static nextContentHasIndent(ye,Z,I){let H=g.Node.endOfLine(ye,Z)+1;Z=g.Node.endOfWhiteSpace(ye,H);let ue=ye[Z];return ue?Z>=H+I?!0:ue!=="#"&&ue!==`
319
+ `?!1:nt.nextContentHasIndent(ye,Z,I):!1}constructor(ye){super(ye.type===g.Type.SEQ_ITEM?g.Type.SEQ:g.Type.MAP);for(let I=ye.props.length-1;I>=0;--I)if(ye.props[I].start<ye.context.lineStart){this.props=ye.props.slice(0,I+1),ye.props=ye.props.slice(I+1);let H=ye.props[0]||ye.valueRange;ye.range.start=H.start;break}this.items=[ye];let Z=Ie(ye);Z&&Array.prototype.push.apply(this.items,Z)}get includesTrailingLines(){return this.items.length>0}parse(ye,Z){this.context=ye;let{parseNode:I,src:H}=ye,ue=g.Node.startOfLine(H,Z),Ne=this.items[0];Ne.context.parent=this,this.valueRange=g.Range.copy(Ne.valueRange);let Oe=Ne.range.start-Ne.context.lineStart,Ee=Z;Ee=g.Node.normalizeOffset(H,Ee);let $e=H[Ee],Ft=g.Node.endOfWhiteSpace(H,ue)===Ee,Vt=!1;for(;$e;){for(;$e===`
320
+ `||$e==="#";){if(Ft&&$e===`
321
+ `&&!Vt){let fn=new W;if(Ee=fn.parse({src:H},Ee),this.valueRange.end=Ee,Ee>=H.length){$e=null;break}this.items.push(fn),Ee-=1}else if($e==="#"){if(Ee<ue+Oe&&!nt.nextContentHasIndent(H,Ee,Oe))return Ee;let fn=new Me;if(Ee=fn.parse({indent:Oe,lineStart:ue,src:H},Ee),this.items.push(fn),this.valueRange.end=Ee,Ee>=H.length){$e=null;break}}if(ue=Ee+1,Ee=g.Node.endOfIndent(H,ue),g.Node.atBlank(H,Ee)){let fn=g.Node.endOfWhiteSpace(H,Ee),Jn=H[fn];(!Jn||Jn===`
322
+ `||Jn==="#")&&(Ee=fn)}$e=H[Ee],Ft=!0}if(!$e)break;if(Ee!==ue+Oe&&(Ft||$e!==":")){if(Ee<ue+Oe){ue>Z&&(Ee=ue);break}else if(!this.error){let fn="All collection items must start at the same column";this.error=new g.YAMLSyntaxError(this,fn)}}if(Ne.type===g.Type.SEQ_ITEM){if($e!=="-"){ue>Z&&(Ee=ue);break}}else if($e==="-"&&!this.error){let fn=H[Ee+1];if(!fn||fn===`
323
+ `||fn===" "||fn===" "){let Jn="A collection cannot be both a mapping and a sequence";this.error=new g.YAMLSyntaxError(this,Jn)}}let Kt=I({atLineStart:Ft,inCollection:!0,indent:Oe,lineStart:ue,parent:this},Ee);if(!Kt)return Ee;if(this.items.push(Kt),this.valueRange.end=Kt.valueRange.end,Ee=g.Node.normalizeOffset(H,Kt.range.end),$e=H[Ee],Ft=!1,Vt=Kt.includesTrailingLines,$e){let fn=Ee-1,Jn=H[fn];for(;Jn===" "||Jn===" ";)Jn=H[--fn];Jn===`
324
+ `&&(ue=fn+1,Ft=!0)}let xn=Ie(Kt);xn&&Array.prototype.push.apply(this.items,xn)}return Ee}setOrigRanges(ye,Z){return Z=super.setOrigRanges(ye,Z),this.items.forEach(I=>{Z=I.setOrigRanges(ye,Z)}),Z}toString(){let{context:{src:ye},items:Z,range:I,value:H}=this;if(H!=null)return H;let ue=ye.slice(I.start,Z[0].range.start)+String(Z[0]);for(let Ne=1;Ne<Z.length;++Ne){let Oe=Z[Ne],{atLineStart:Ee,indent:$e}=Oe.context;if(Ee)for(let Ft=0;Ft<$e;++Ft)ue+=" ";ue+=String(Oe)}return g.Node.addStringTerminator(ye,I.end,ue)}},vt=class extends g.Node{constructor(){super(g.Type.DIRECTIVE),this.name=null}get parameters(){let ye=this.rawValue;return ye?ye.trim().split(/[ \t]+/):[]}parseName(ye){let{src:Z}=this.context,I=ye,H=Z[I];for(;H&&H!==`
325
+ `&&H!==" "&&H!==" ";)H=Z[I+=1];return this.name=Z.slice(ye,I),I}parseParameters(ye){let{src:Z}=this.context,I=ye,H=Z[I];for(;H&&H!==`
326
+ `&&H!=="#";)H=Z[I+=1];return this.valueRange=new g.Range(ye,I),I}parse(ye,Z){this.context=ye;let I=this.parseName(Z+1);return I=this.parseParameters(I),I=this.parseComment(I),this.range=new g.Range(Z,I),I}},Ut=class extends g.Node{static startCommentOrEndBlankLine(ye,Z){let I=g.Node.endOfWhiteSpace(ye,Z),H=ye[I];return H==="#"||H===`
327
+ `?I:Z}constructor(){super(g.Type.DOCUMENT),this.directives=null,this.contents=null,this.directivesEndMarker=null,this.documentEndMarker=null}parseDirectives(ye){let{src:Z}=this.context;this.directives=[];let I=!0,H=!1,ue=ye;for(;!g.Node.atDocumentBoundary(Z,ue,g.Char.DIRECTIVES_END);)switch(ue=Ut.startCommentOrEndBlankLine(Z,ue),Z[ue]){case`
328
+ `:if(I){let Ne=new W;ue=Ne.parse({src:Z},ue),ue<Z.length&&this.directives.push(Ne)}else ue+=1,I=!0;break;case"#":{let Ne=new Me;ue=Ne.parse({src:Z},ue),this.directives.push(Ne),I=!1}break;case"%":{let Ne=new vt;ue=Ne.parse({parent:this,src:Z},ue),this.directives.push(Ne),H=!0,I=!1}break;default:return H?this.error=new g.YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),ue}return Z[ue]?(this.directivesEndMarker=new g.Range(ue,ue+3),ue+3):(H?this.error=new g.YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),ue)}parseContents(ye){let{parseNode:Z,src:I}=this.context;this.contents||(this.contents=[]);let H=ye;for(;I[H-1]==="-";)H-=1;let ue=g.Node.endOfWhiteSpace(I,ye),Ne=H===ye;for(this.valueRange=new g.Range(ue);!g.Node.atDocumentBoundary(I,ue,g.Char.DOCUMENT_END);){switch(I[ue]){case`
329
+ `:if(Ne){let Oe=new W;ue=Oe.parse({src:I},ue),ue<I.length&&this.contents.push(Oe)}else ue+=1,Ne=!0;H=ue;break;case"#":{let Oe=new Me;ue=Oe.parse({src:I},ue),this.contents.push(Oe),Ne=!1}break;default:{let Oe=g.Node.endOfIndent(I,ue),Ee=Z({atLineStart:Ne,indent:-1,inFlow:!1,inCollection:!1,lineStart:H,parent:this},Oe);if(!Ee)return this.valueRange.end=Oe;this.contents.push(Ee),ue=Ee.range.end,Ne=!1;let $e=Ie(Ee);$e&&Array.prototype.push.apply(this.contents,$e)}}ue=Ut.startCommentOrEndBlankLine(I,ue)}if(this.valueRange.end=ue,I[ue]&&(this.documentEndMarker=new g.Range(ue,ue+3),ue+=3,I[ue])){if(ue=g.Node.endOfWhiteSpace(I,ue),I[ue]==="#"){let Oe=new Me;ue=Oe.parse({src:I},ue),this.contents.push(Oe)}switch(I[ue]){case`
330
+ `:ue+=1;break;case void 0:break;default:this.error=new g.YAMLSyntaxError(this,"Document end marker line cannot have a non-comment suffix")}}return ue}parse(ye,Z){ye.root=this,this.context=ye;let{src:I}=ye,H=I.charCodeAt(Z)===65279?Z+1:Z;return H=this.parseDirectives(H),H=this.parseContents(H),H}setOrigRanges(ye,Z){return Z=super.setOrigRanges(ye,Z),this.directives.forEach(I=>{Z=I.setOrigRanges(ye,Z)}),this.directivesEndMarker&&(Z=this.directivesEndMarker.setOrigRange(ye,Z)),this.contents.forEach(I=>{Z=I.setOrigRanges(ye,Z)}),this.documentEndMarker&&(Z=this.documentEndMarker.setOrigRange(ye,Z)),Z}toString(){let{contents:ye,directives:Z,value:I}=this;if(I!=null)return I;let H=Z.join("");return ye.length>0&&((Z.length>0||ye[0].type===g.Type.COMMENT)&&(H+=`---
331
+ `),H+=ye.join("")),H[H.length-1]!==`
332
+ `&&(H+=`
333
+ `),H}},lt=class extends g.Node{parse(ye,Z){this.context=ye;let{src:I}=ye,H=g.Node.endOfIdentifier(I,Z+1);return this.valueRange=new g.Range(Z+1,H),H=g.Node.endOfWhiteSpace(I,H),H=this.parseComment(H),H}},At={CLIP:"CLIP",KEEP:"KEEP",STRIP:"STRIP"},Pt=class extends g.Node{constructor(ye,Z){super(ye,Z),this.blockIndent=null,this.chomping=At.CLIP,this.header=null}get includesTrailingLines(){return this.chomping===At.KEEP}get strValue(){if(!this.valueRange||!this.context)return null;let{start:ye,end:Z}=this.valueRange,{indent:I,src:H}=this.context;if(this.valueRange.isEmpty())return"";let ue=null,Ne=H[Z-1];for(;Ne===`
334
+ `||Ne===" "||Ne===" ";){if(Z-=1,Z<=ye){if(this.chomping===At.KEEP)break;return""}Ne===`
335
+ `&&(ue=Z),Ne=H[Z-1]}let Oe=Z+1;ue&&(this.chomping===At.KEEP?(Oe=ue,Z=this.valueRange.end):Z=ue);let Ee=I+this.blockIndent,$e=this.type===g.Type.BLOCK_FOLDED,Ft=!0,Vt="",Kt="",xn=!1;for(let fn=ye;fn<Z;++fn){for(let lr=0;lr<Ee&&H[fn]===" ";++lr)fn+=1;let Jn=H[fn];if(Jn===`
336
+ `)Kt===`
337
+ `?Vt+=`
338
+ `:Kt=`
339
+ `;else{let lr=g.Node.endOfLine(H,fn),_r=H.slice(fn,lr);fn=lr,$e&&(Jn===" "||Jn===" ")&&fn<Oe?(Kt===" "?Kt=`
340
+ `:!xn&&!Ft&&Kt===`
341
+ `&&(Kt=`
342
+
343
+ `),Vt+=Kt+_r,Kt=lr<Z&&H[lr]||"",xn=!0):(Vt+=Kt+_r,Kt=$e&&fn<Oe?" ":`
344
+ `,xn=!1),Ft&&_r!==""&&(Ft=!1)}}return this.chomping===At.STRIP?Vt:Vt+`
345
+ `}parseBlockHeader(ye){let{src:Z}=this.context,I=ye+1,H="";for(;;){let ue=Z[I];switch(ue){case"-":this.chomping=At.STRIP;break;case"+":this.chomping=At.KEEP;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":H+=ue;break;default:return this.blockIndent=Number(H)||null,this.header=new g.Range(ye,I),I}I+=1}}parseBlockValue(ye){let{indent:Z,src:I}=this.context,H=!!this.blockIndent,ue=ye,Ne=ye,Oe=1;for(let Ee=I[ue];Ee===`
346
+ `&&(ue+=1,!g.Node.atDocumentBoundary(I,ue));Ee=I[ue]){let $e=g.Node.endOfBlockIndent(I,Z,ue);if($e===null)break;let Ft=I[$e],Vt=$e-(ue+Z);if(this.blockIndent){if(Ft&&Ft!==`
347
+ `&&Vt<this.blockIndent){if(I[$e]==="#")break;if(!this.error){let Kt=`Block scalars must not be less indented than their ${H?"explicit indentation indicator":"first line"}`;this.error=new g.YAMLSemanticError(this,Kt)}}}else if(I[$e]!==`
348
+ `){if(Vt<Oe){let Kt="Block scalars with more-indented leading empty lines must use an explicit indentation indicator";this.error=new g.YAMLSemanticError(this,Kt)}this.blockIndent=Vt}else Vt>Oe&&(Oe=Vt);I[$e]===`
349
+ `?ue=$e:ue=Ne=g.Node.endOfLine(I,$e)}return this.chomping!==At.KEEP&&(ue=I[Ne]?Ne+1:Ne),this.valueRange=new g.Range(ye+1,ue),ue}parse(ye,Z){this.context=ye;let{src:I}=ye,H=this.parseBlockHeader(Z);return H=g.Node.endOfWhiteSpace(I,H),H=this.parseComment(H),H=this.parseBlockValue(H),H}setOrigRanges(ye,Z){return Z=super.setOrigRanges(ye,Z),this.header?this.header.setOrigRange(ye,Z):Z}},$t=class extends g.Node{constructor(ye,Z){super(ye,Z),this.items=null}prevNodeIsJsonLike(){let ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.items.length,Z=this.items[ye-1];return!!Z&&(Z.jsonLike||Z.type===g.Type.COMMENT&&this.prevNodeIsJsonLike(ye-1))}parse(ye,Z){this.context=ye;let{parseNode:I,src:H}=ye,{indent:ue,lineStart:Ne}=ye,Oe=H[Z];this.items=[{char:Oe,offset:Z}];let Ee=g.Node.endOfWhiteSpace(H,Z+1);for(Oe=H[Ee];Oe&&Oe!=="]"&&Oe!=="}";){switch(Oe){case`
350
+ `:{Ne=Ee+1;let $e=g.Node.endOfWhiteSpace(H,Ne);if(H[$e]===`
351
+ `){let Ft=new W;Ne=Ft.parse({src:H},Ne),this.items.push(Ft)}if(Ee=g.Node.endOfIndent(H,Ne),Ee<=Ne+ue&&(Oe=H[Ee],Ee<Ne+ue||Oe!=="]"&&Oe!=="}")){let Ft="Insufficient indentation in flow collection";this.error=new g.YAMLSemanticError(this,Ft)}}break;case",":this.items.push({char:Oe,offset:Ee}),Ee+=1;break;case"#":{let $e=new Me;Ee=$e.parse({src:H},Ee),this.items.push($e)}break;case"?":case":":{let $e=H[Ee+1];if($e===`
352
+ `||$e===" "||$e===" "||$e===","||Oe===":"&&this.prevNodeIsJsonLike()){this.items.push({char:Oe,offset:Ee}),Ee+=1;break}}default:{let $e=I({atLineStart:!1,inCollection:!1,inFlow:!0,indent:-1,lineStart:Ne,parent:this},Ee);if(!$e)return this.valueRange=new g.Range(Z,Ee),Ee;this.items.push($e),Ee=g.Node.normalizeOffset(H,$e.range.end)}}Ee=g.Node.endOfWhiteSpace(H,Ee),Oe=H[Ee]}return this.valueRange=new g.Range(Z,Ee+1),Oe&&(this.items.push({char:Oe,offset:Ee}),Ee=g.Node.endOfWhiteSpace(H,Ee+1),Ee=this.parseComment(Ee)),Ee}setOrigRanges(ye,Z){return Z=super.setOrigRanges(ye,Z),this.items.forEach(I=>{if(I instanceof g.Node)Z=I.setOrigRanges(ye,Z);else if(ye.length===0)I.origOffset=I.offset;else{let H=Z;for(;H<ye.length&&!(ye[H]>I.offset);)++H;I.origOffset=I.offset+H,Z=H}}),Z}toString(){let{context:{src:ye},items:Z,range:I,value:H}=this;if(H!=null)return H;let ue=Z.filter(Ee=>Ee instanceof g.Node),Ne="",Oe=I.start;return ue.forEach(Ee=>{let $e=ye.slice(Oe,Ee.range.start);Oe=Ee.range.end,Ne+=$e+String(Ee),Ne[Ne.length-1]===`
353
+ `&&ye[Oe-1]!==`
354
+ `&&ye[Oe]===`
355
+ `&&(Oe+=1)}),Ne+=ye.slice(Oe,I.end),g.Node.addStringTerminator(ye,I.end,Ne)}},Mt=class extends g.Node{static endOfQuote(ye,Z){let I=ye[Z];for(;I&&I!=='"';)Z+=I==="\\"?2:1,I=ye[Z];return Z+1}get strValue(){if(!this.valueRange||!this.context)return null;let ye=[],{start:Z,end:I}=this.valueRange,{indent:H,src:ue}=this.context;ue[I-1]!=='"'&&ye.push(new g.YAMLSyntaxError(this,'Missing closing "quote'));let Ne="";for(let Oe=Z+1;Oe<I-1;++Oe){let Ee=ue[Oe];if(Ee===`
356
+ `){g.Node.atDocumentBoundary(ue,Oe+1)&&ye.push(new g.YAMLSemanticError(this,"Document boundary indicators are not allowed within string values"));let{fold:$e,offset:Ft,error:Vt}=g.Node.foldNewline(ue,Oe,H);Ne+=$e,Oe=Ft,Vt&&ye.push(new g.YAMLSemanticError(this,"Multi-line double-quoted string needs to be sufficiently indented"))}else if(Ee==="\\")switch(Oe+=1,ue[Oe]){case"0":Ne+="\0";break;case"a":Ne+="\x07";break;case"b":Ne+="\b";break;case"e":Ne+="\x1B";break;case"f":Ne+="\f";break;case"n":Ne+=`
357
+ `;break;case"r":Ne+="\r";break;case"t":Ne+=" ";break;case"v":Ne+="\v";break;case"N":Ne+="…";break;case"_":Ne+=" ";break;case"L":Ne+="\u2028";break;case"P":Ne+="\u2029";break;case" ":Ne+=" ";break;case'"':Ne+='"';break;case"/":Ne+="/";break;case"\\":Ne+="\\";break;case" ":Ne+=" ";break;case"x":Ne+=this.parseCharCode(Oe+1,2,ye),Oe+=2;break;case"u":Ne+=this.parseCharCode(Oe+1,4,ye),Oe+=4;break;case"U":Ne+=this.parseCharCode(Oe+1,8,ye),Oe+=8;break;case`
358
+ `:for(;ue[Oe+1]===" "||ue[Oe+1]===" ";)Oe+=1;break;default:ye.push(new g.YAMLSyntaxError(this,`Invalid escape sequence ${ue.substr(Oe-1,2)}`)),Ne+="\\"+ue[Oe]}else if(Ee===" "||Ee===" "){let $e=Oe,Ft=ue[Oe+1];for(;Ft===" "||Ft===" ";)Oe+=1,Ft=ue[Oe+1];Ft!==`
359
+ `&&(Ne+=Oe>$e?ue.slice($e,Oe+1):Ee)}else Ne+=Ee}return ye.length>0?{errors:ye,str:Ne}:Ne}parseCharCode(ye,Z,I){let{src:H}=this.context,ue=H.substr(ye,Z),Ne=ue.length===Z&&/^[0-9a-fA-F]+$/.test(ue)?parseInt(ue,16):NaN;return isNaN(Ne)?(I.push(new g.YAMLSyntaxError(this,`Invalid escape sequence ${H.substr(ye-2,Z+2)}`)),H.substr(ye-2,Z+2)):String.fromCodePoint(Ne)}parse(ye,Z){this.context=ye;let{src:I}=ye,H=Mt.endOfQuote(I,Z+1);return this.valueRange=new g.Range(Z,H),H=g.Node.endOfWhiteSpace(I,H),H=this.parseComment(H),H}},Ht=class extends g.Node{static endOfQuote(ye,Z){let I=ye[Z];for(;I;)if(I==="'"){if(ye[Z+1]!=="'")break;I=ye[Z+=2]}else I=ye[Z+=1];return Z+1}get strValue(){if(!this.valueRange||!this.context)return null;let ye=[],{start:Z,end:I}=this.valueRange,{indent:H,src:ue}=this.context;ue[I-1]!=="'"&&ye.push(new g.YAMLSyntaxError(this,"Missing closing 'quote"));let Ne="";for(let Oe=Z+1;Oe<I-1;++Oe){let Ee=ue[Oe];if(Ee===`
360
+ `){g.Node.atDocumentBoundary(ue,Oe+1)&&ye.push(new g.YAMLSemanticError(this,"Document boundary indicators are not allowed within string values"));let{fold:$e,offset:Ft,error:Vt}=g.Node.foldNewline(ue,Oe,H);Ne+=$e,Oe=Ft,Vt&&ye.push(new g.YAMLSemanticError(this,"Multi-line single-quoted string needs to be sufficiently indented"))}else if(Ee==="'")Ne+=Ee,Oe+=1,ue[Oe]!=="'"&&ye.push(new g.YAMLSyntaxError(this,"Unescaped single quote? This should not happen."));else if(Ee===" "||Ee===" "){let $e=Oe,Ft=ue[Oe+1];for(;Ft===" "||Ft===" ";)Oe+=1,Ft=ue[Oe+1];Ft!==`
361
+ `&&(Ne+=Oe>$e?ue.slice($e,Oe+1):Ee)}else Ne+=Ee}return ye.length>0?{errors:ye,str:Ne}:Ne}parse(ye,Z){this.context=ye;let{src:I}=ye,H=Ht.endOfQuote(I,Z+1);return this.valueRange=new g.Range(Z,H),H=g.Node.endOfWhiteSpace(I,H),H=this.parseComment(H),H}};function Yt(ye,Z){switch(ye){case g.Type.ALIAS:return new lt(ye,Z);case g.Type.BLOCK_FOLDED:case g.Type.BLOCK_LITERAL:return new Pt(ye,Z);case g.Type.FLOW_MAP:case g.Type.FLOW_SEQ:return new $t(ye,Z);case g.Type.MAP_KEY:case g.Type.MAP_VALUE:case g.Type.SEQ_ITEM:return new we(ye,Z);case g.Type.COMMENT:case g.Type.PLAIN:return new g.PlainValue(ye,Z);case g.Type.QUOTE_DOUBLE:return new Mt(ye,Z);case g.Type.QUOTE_SINGLE:return new Ht(ye,Z);default:return null}}var en=class{static parseType(ye,Z,I){switch(ye[Z]){case"*":return g.Type.ALIAS;case">":return g.Type.BLOCK_FOLDED;case"|":return g.Type.BLOCK_LITERAL;case"{":return g.Type.FLOW_MAP;case"[":return g.Type.FLOW_SEQ;case"?":return!I&&g.Node.atBlank(ye,Z+1,!0)?g.Type.MAP_KEY:g.Type.PLAIN;case":":return!I&&g.Node.atBlank(ye,Z+1,!0)?g.Type.MAP_VALUE:g.Type.PLAIN;case"-":return!I&&g.Node.atBlank(ye,Z+1,!0)?g.Type.SEQ_ITEM:g.Type.PLAIN;case'"':return g.Type.QUOTE_DOUBLE;case"'":return g.Type.QUOTE_SINGLE;default:return g.Type.PLAIN}}constructor(){let ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{atLineStart:Z,inCollection:I,inFlow:H,indent:ue,lineStart:Ne,parent:Oe}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};g._defineProperty(this,"parseNode",(Ee,$e)=>{if(g.Node.atDocumentBoundary(this.src,$e))return null;let Ft=new en(this,Ee),{props:Vt,type:Kt,valueStart:xn}=Ft.parseProps($e),fn=Yt(Kt,Vt),Jn=fn.parse(Ft,xn);if(fn.range=new g.Range($e,Jn),Jn<=$e&&(fn.error=new Error("Node#parse consumed no characters"),fn.error.parseEnd=Jn,fn.error.source=fn,fn.range.end=$e+1),Ft.nodeStartsCollection(fn)){!fn.error&&!Ft.atLineStart&&Ft.parent.type===g.Type.DOCUMENT&&(fn.error=new g.YAMLSyntaxError(fn,"Block collection must not have preceding content here (e.g. directives-end indicator)"));let lr=new nt(fn);return Jn=lr.parse(new en(Ft),Jn),lr.range=new g.Range($e,Jn),lr}return fn}),this.atLineStart=Z??(ye.atLineStart||!1),this.inCollection=I??(ye.inCollection||!1),this.inFlow=H??(ye.inFlow||!1),this.indent=ue??ye.indent,this.lineStart=Ne??ye.lineStart,this.parent=Oe??(ye.parent||{}),this.root=ye.root,this.src=ye.src}nodeStartsCollection(ye){let{inCollection:Z,inFlow:I,src:H}=this;if(Z||I)return!1;if(ye instanceof we)return!0;let ue=ye.range.end;return H[ue]===`
362
+ `||H[ue-1]===`
363
+ `?!1:(ue=g.Node.endOfWhiteSpace(H,ue),H[ue]===":")}parseProps(ye){let{inFlow:Z,parent:I,src:H}=this,ue=[],Ne=!1;ye=this.atLineStart?g.Node.endOfIndent(H,ye):g.Node.endOfWhiteSpace(H,ye);let Oe=H[ye];for(;Oe===g.Char.ANCHOR||Oe===g.Char.COMMENT||Oe===g.Char.TAG||Oe===`
364
+ `;){if(Oe===`
365
+ `){let $e=ye,Ft;do Ft=$e+1,$e=g.Node.endOfIndent(H,Ft);while(H[$e]===`
366
+ `);let Vt=$e-(Ft+this.indent),Kt=I.type===g.Type.SEQ_ITEM&&I.context.atLineStart;if(H[$e]!=="#"&&!g.Node.nextNodeIsIndented(H[$e],Vt,!Kt))break;this.atLineStart=!0,this.lineStart=Ft,Ne=!1,ye=$e}else if(Oe===g.Char.COMMENT){let $e=g.Node.endOfLine(H,ye+1);ue.push(new g.Range(ye,$e)),ye=$e}else{let $e=g.Node.endOfIdentifier(H,ye+1);Oe===g.Char.TAG&&H[$e]===","&&/^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(H.slice(ye+1,$e+13))&&($e=g.Node.endOfIdentifier(H,$e+5)),ue.push(new g.Range(ye,$e)),Ne=!0,ye=g.Node.endOfWhiteSpace(H,$e)}Oe=H[ye]}Ne&&Oe===":"&&g.Node.atBlank(H,ye+1,!0)&&(ye-=1);let Ee=en.parseType(H,ye,Z);return{props:ue,type:Ee,valueStart:ye}}};function An(ye){let Z=[];ye.indexOf("\r")!==-1&&(ye=ye.replace(/\r\n?/g,(ue,Ne)=>(ue.length>1&&Z.push(Ne),`
367
+ `)));let I=[],H=0;do{let ue=new Ut,Ne=new en({src:ye});H=ue.parse(Ne,H),I.push(ue)}while(H<ye.length);return I.setOrigRanges=()=>{if(Z.length===0)return!1;for(let Ne=1;Ne<Z.length;++Ne)Z[Ne]-=Ne;let ue=0;for(let Ne=0;Ne<I.length;++Ne)ue=I[Ne].setOrigRanges(Z,ue);return Z.splice(0,Z.length),!0},I.toString=()=>I.join(`...
368
+ `),I}Y.parse=An}}),ai=c({"node_modules/yaml/dist/resolveSeq-d03cb037.js"(Y){k();var g=Hr();function W(fe,pe,Ge){return Ge?`#${Ge.replace(/[\s\S]^/gm,`$&${pe}#`)}
369
+ ${pe}${fe}`:fe}function we(fe,pe,Ge){return Ge?Ge.indexOf(`
370
+ `)===-1?`${fe} #${Ge}`:`${fe}
371
+ `+Ge.replace(/^/gm,`${pe||""}#`):fe}var Me=class{};function Ie(fe,pe,Ge){if(Array.isArray(fe))return fe.map((Ke,rt)=>Ie(Ke,String(rt),Ge));if(fe&&typeof fe.toJSON=="function"){let Ke=Ge&&Ge.anchors&&Ge.anchors.get(fe);Ke&&(Ge.onCreate=st=>{Ke.res=st,delete Ge.onCreate});let rt=fe.toJSON(pe,Ge);return Ke&&Ge.onCreate&&Ge.onCreate(rt),rt}return(!Ge||!Ge.keep)&&typeof fe=="bigint"?Number(fe):fe}var nt=class extends Me{constructor(fe){super(),this.value=fe}toJSON(fe,pe){return pe&&pe.keep?this.value:Ie(this.value,fe,pe)}toString(){return String(this.value)}};function vt(fe,pe,Ge){let Ke=Ge;for(let rt=pe.length-1;rt>=0;--rt){let st=pe[rt];if(Number.isInteger(st)&&st>=0){let Nt=[];Nt[st]=Ke,Ke=Nt}else{let Nt={};Object.defineProperty(Nt,st,{value:Ke,writable:!0,enumerable:!0,configurable:!0}),Ke=Nt}}return fe.createNode(Ke,!1)}var Ut=fe=>fe==null||typeof fe=="object"&&fe[Symbol.iterator]().next().done,lt=class extends Me{constructor(fe){super(),g._defineProperty(this,"items",[]),this.schema=fe}addIn(fe,pe){if(Ut(fe))this.add(pe);else{let[Ge,...Ke]=fe,rt=this.get(Ge,!0);if(rt instanceof lt)rt.addIn(Ke,pe);else if(rt===void 0&&this.schema)this.set(Ge,vt(this.schema,Ke,pe));else throw new Error(`Expected YAML collection at ${Ge}. Remaining path: ${Ke}`)}}deleteIn(fe){let[pe,...Ge]=fe;if(Ge.length===0)return this.delete(pe);let Ke=this.get(pe,!0);if(Ke instanceof lt)return Ke.deleteIn(Ge);throw new Error(`Expected YAML collection at ${pe}. Remaining path: ${Ge}`)}getIn(fe,pe){let[Ge,...Ke]=fe,rt=this.get(Ge,!0);return Ke.length===0?!pe&&rt instanceof nt?rt.value:rt:rt instanceof lt?rt.getIn(Ke,pe):void 0}hasAllNullValues(){return this.items.every(fe=>{if(!fe||fe.type!=="PAIR")return!1;let pe=fe.value;return pe==null||pe instanceof nt&&pe.value==null&&!pe.commentBefore&&!pe.comment&&!pe.tag})}hasIn(fe){let[pe,...Ge]=fe;if(Ge.length===0)return this.has(pe);let Ke=this.get(pe,!0);return Ke instanceof lt?Ke.hasIn(Ge):!1}setIn(fe,pe){let[Ge,...Ke]=fe;if(Ke.length===0)this.set(Ge,pe);else{let rt=this.get(Ge,!0);if(rt instanceof lt)rt.setIn(Ke,pe);else if(rt===void 0&&this.schema)this.set(Ge,vt(this.schema,Ke,pe));else throw new Error(`Expected YAML collection at ${Ge}. Remaining path: ${Ke}`)}}toJSON(){return null}toString(fe,pe,Ge,Ke){let{blockItem:rt,flowChars:st,isMap:Nt,itemIndent:kt}=pe,{indent:tn,indentStep:on,stringify:yn}=fe,On=this.type===g.Type.FLOW_MAP||this.type===g.Type.FLOW_SEQ||fe.inFlow;On&&(kt+=on);let hr=Nt&&this.hasAllNullValues();fe=Object.assign({},fe,{allNullValues:hr,indent:kt,inFlow:On,type:null});let mr=!1,qn=!1,ur=this.items.reduce((Yr,dr,zr)=>{let wr;dr&&(!mr&&dr.spaceBefore&&Yr.push({type:"comment",str:""}),dr.commentBefore&&dr.commentBefore.match(/^.*$/gm).forEach(oo=>{Yr.push({type:"comment",str:`#${oo}`})}),dr.comment&&(wr=dr.comment),On&&(!mr&&dr.spaceBefore||dr.commentBefore||dr.comment||dr.key&&(dr.key.commentBefore||dr.key.comment)||dr.value&&(dr.value.commentBefore||dr.value.comment))&&(qn=!0)),mr=!1;let Pr=yn(dr,fe,()=>wr=null,()=>mr=!0);return On&&!qn&&Pr.includes(`
372
+ `)&&(qn=!0),On&&zr<this.items.length-1&&(Pr+=","),Pr=we(Pr,kt,wr),mr&&(wr||On)&&(mr=!1),Yr.push({type:"item",str:Pr}),Yr},[]),sr;if(ur.length===0)sr=st.start+st.end;else if(On){let{start:Yr,end:dr}=st,zr=ur.map(wr=>wr.str);if(qn||zr.reduce((wr,Pr)=>wr+Pr.length+2,2)>lt.maxFlowStringSingleLineLength){sr=Yr;for(let wr of zr)sr+=wr?`
373
+ ${on}${tn}${wr}`:`
374
+ `;sr+=`
375
+ ${tn}${dr}`}else sr=`${Yr} ${zr.join(" ")} ${dr}`}else{let Yr=ur.map(rt);sr=Yr.shift();for(let dr of Yr)sr+=dr?`
376
+ ${tn}${dr}`:`
377
+ `}return this.comment?(sr+=`
378
+ `+this.comment.replace(/^/gm,`${tn}#`),Ge&&Ge()):mr&&Ke&&Ke(),sr}};g._defineProperty(lt,"maxFlowStringSingleLineLength",60);function At(fe){let pe=fe instanceof nt?fe.value:fe;return pe&&typeof pe=="string"&&(pe=Number(pe)),Number.isInteger(pe)&&pe>=0?pe:null}var Pt=class extends lt{add(fe){this.items.push(fe)}delete(fe){let pe=At(fe);return typeof pe!="number"?!1:this.items.splice(pe,1).length>0}get(fe,pe){let Ge=At(fe);if(typeof Ge!="number")return;let Ke=this.items[Ge];return!pe&&Ke instanceof nt?Ke.value:Ke}has(fe){let pe=At(fe);return typeof pe=="number"&&pe<this.items.length}set(fe,pe){let Ge=At(fe);if(typeof Ge!="number")throw new Error(`Expected a valid index, not ${fe}.`);this.items[Ge]=pe}toJSON(fe,pe){let Ge=[];pe&&pe.onCreate&&pe.onCreate(Ge);let Ke=0;for(let rt of this.items)Ge.push(Ie(rt,String(Ke++),pe));return Ge}toString(fe,pe,Ge){return fe?super.toString(fe,{blockItem:Ke=>Ke.type==="comment"?Ke.str:`- ${Ke.str}`,flowChars:{start:"[",end:"]"},isMap:!1,itemIndent:(fe.indent||"")+" "},pe,Ge):JSON.stringify(this)}},$t=(fe,pe,Ge)=>pe===null?"":typeof pe!="object"?String(pe):fe instanceof Me&&Ge&&Ge.doc?fe.toString({anchors:Object.create(null),doc:Ge.doc,indent:"",indentStep:Ge.indentStep,inFlow:!0,inStringifyKey:!0,stringify:Ge.stringify}):JSON.stringify(pe),Mt=class extends Me{constructor(fe){let pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;super(),this.key=fe,this.value=pe,this.type=Mt.Type.PAIR}get commentBefore(){return this.key instanceof Me?this.key.commentBefore:void 0}set commentBefore(fe){if(this.key==null&&(this.key=new nt(null)),this.key instanceof Me)this.key.commentBefore=fe;else{let pe="Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.";throw new Error(pe)}}addToJSMap(fe,pe){let Ge=Ie(this.key,"",fe);if(pe instanceof Map){let Ke=Ie(this.value,Ge,fe);pe.set(Ge,Ke)}else if(pe instanceof Set)pe.add(Ge);else{let Ke=$t(this.key,Ge,fe),rt=Ie(this.value,Ke,fe);Ke in pe?Object.defineProperty(pe,Ke,{value:rt,writable:!0,enumerable:!0,configurable:!0}):pe[Ke]=rt}return pe}toJSON(fe,pe){let Ge=pe&&pe.mapAsMap?new Map:{};return this.addToJSMap(pe,Ge)}toString(fe,pe,Ge){if(!fe||!fe.doc)return JSON.stringify(this);let{indent:Ke,indentSeq:rt,simpleKeys:st}=fe.doc.options,{key:Nt,value:kt}=this,tn=Nt instanceof Me&&Nt.comment;if(st){if(tn)throw new Error("With simple keys, key nodes cannot have comments");if(Nt instanceof lt){let wr="With simple keys, collection cannot be used as a key value";throw new Error(wr)}}let on=!st&&(!Nt||tn||(Nt instanceof Me?Nt instanceof lt||Nt.type===g.Type.BLOCK_FOLDED||Nt.type===g.Type.BLOCK_LITERAL:typeof Nt=="object")),{doc:yn,indent:On,indentStep:hr,stringify:mr}=fe;fe=Object.assign({},fe,{implicitKey:!on,indent:On+hr});let qn=!1,ur=mr(Nt,fe,()=>tn=null,()=>qn=!0);if(ur=we(ur,fe.indent,tn),!on&&ur.length>1024){if(st)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");on=!0}if(fe.allNullValues&&!st)return this.comment?(ur=we(ur,fe.indent,this.comment),pe&&pe()):qn&&!tn&&Ge&&Ge(),fe.inFlow&&!on?ur:`? ${ur}`;ur=on?`? ${ur}
379
+ ${On}:`:`${ur}:`,this.comment&&(ur=we(ur,fe.indent,this.comment),pe&&pe());let sr="",Yr=null;if(kt instanceof Me){if(kt.spaceBefore&&(sr=`
380
+ `),kt.commentBefore){let wr=kt.commentBefore.replace(/^/gm,`${fe.indent}#`);sr+=`
381
+ ${wr}`}Yr=kt.comment}else kt&&typeof kt=="object"&&(kt=yn.schema.createNode(kt,!0));fe.implicitKey=!1,!on&&!this.comment&&kt instanceof nt&&(fe.indentAtStart=ur.length+1),qn=!1,!rt&&Ke>=2&&!fe.inFlow&&!on&&kt instanceof Pt&&kt.type!==g.Type.FLOW_SEQ&&!kt.tag&&!yn.anchors.getName(kt)&&(fe.indent=fe.indent.substr(2));let dr=mr(kt,fe,()=>Yr=null,()=>qn=!0),zr=" ";return sr||this.comment?zr=`${sr}
382
+ ${fe.indent}`:!on&&kt instanceof lt?(!(dr[0]==="["||dr[0]==="{")||dr.includes(`
383
+ `))&&(zr=`
384
+ ${fe.indent}`):dr[0]===`
385
+ `&&(zr=""),qn&&!Yr&&Ge&&Ge(),we(ur+zr+dr,fe.indent,Yr)}};g._defineProperty(Mt,"Type",{PAIR:"PAIR",MERGE_PAIR:"MERGE_PAIR"});var Ht=(fe,pe)=>{if(fe instanceof Yt){let Ge=pe.get(fe.source);return Ge.count*Ge.aliasCount}else if(fe instanceof lt){let Ge=0;for(let Ke of fe.items){let rt=Ht(Ke,pe);rt>Ge&&(Ge=rt)}return Ge}else if(fe instanceof Mt){let Ge=Ht(fe.key,pe),Ke=Ht(fe.value,pe);return Math.max(Ge,Ke)}return 1},Yt=class extends Me{static stringify(fe,pe){let{range:Ge,source:Ke}=fe,{anchors:rt,doc:st,implicitKey:Nt,inStringifyKey:kt}=pe,tn=Object.keys(rt).find(yn=>rt[yn]===Ke);if(!tn&&kt&&(tn=st.anchors.getName(Ke)||st.anchors.newName()),tn)return`*${tn}${Nt?" ":""}`;let on=st.anchors.getName(Ke)?"Alias node must be after source node":"Source node not found for alias node";throw new Error(`${on} [${Ge}]`)}constructor(fe){super(),this.source=fe,this.type=g.Type.ALIAS}set tag(fe){throw new Error("Alias nodes cannot have tags")}toJSON(fe,pe){if(!pe)return Ie(this.source,fe,pe);let{anchors:Ge,maxAliasCount:Ke}=pe,rt=Ge.get(this.source);if(!rt||rt.res===void 0){let st="This should not happen: Alias anchor was not resolved?";throw this.cstNode?new g.YAMLReferenceError(this.cstNode,st):new ReferenceError(st)}if(Ke>=0&&(rt.count+=1,rt.aliasCount===0&&(rt.aliasCount=Ht(this.source,Ge)),rt.count*rt.aliasCount>Ke)){let st="Excessive alias count indicates a resource exhaustion attack";throw this.cstNode?new g.YAMLReferenceError(this.cstNode,st):new ReferenceError(st)}return rt.res}toString(fe){return Yt.stringify(this,fe)}};g._defineProperty(Yt,"default",!0);function en(fe,pe){let Ge=pe instanceof nt?pe.value:pe;for(let Ke of fe)if(Ke instanceof Mt&&(Ke.key===pe||Ke.key===Ge||Ke.key&&Ke.key.value===Ge))return Ke}var An=class extends lt{add(fe,pe){fe?fe instanceof Mt||(fe=new Mt(fe.key||fe,fe.value)):fe=new Mt(fe);let Ge=en(this.items,fe.key),Ke=this.schema&&this.schema.sortMapEntries;if(Ge)if(pe)Ge.value=fe.value;else throw new Error(`Key ${fe.key} already set`);else if(Ke){let rt=this.items.findIndex(st=>Ke(fe,st)<0);rt===-1?this.items.push(fe):this.items.splice(rt,0,fe)}else this.items.push(fe)}delete(fe){let pe=en(this.items,fe);return pe?this.items.splice(this.items.indexOf(pe),1).length>0:!1}get(fe,pe){let Ge=en(this.items,fe),Ke=Ge&&Ge.value;return!pe&&Ke instanceof nt?Ke.value:Ke}has(fe){return!!en(this.items,fe)}set(fe,pe){this.add(new Mt(fe,pe),!0)}toJSON(fe,pe,Ge){let Ke=Ge?new Ge:pe&&pe.mapAsMap?new Map:{};pe&&pe.onCreate&&pe.onCreate(Ke);for(let rt of this.items)rt.addToJSMap(pe,Ke);return Ke}toString(fe,pe,Ge){if(!fe)return JSON.stringify(this);for(let Ke of this.items)if(!(Ke instanceof Mt))throw new Error(`Map items must all be pairs; found ${JSON.stringify(Ke)} instead`);return super.toString(fe,{blockItem:Ke=>Ke.str,flowChars:{start:"{",end:"}"},isMap:!0,itemIndent:fe.indent||""},pe,Ge)}},ye="<<",Z=class extends Mt{constructor(fe){if(fe instanceof Mt){let pe=fe.value;pe instanceof Pt||(pe=new Pt,pe.items.push(fe.value),pe.range=fe.value.range),super(fe.key,pe),this.range=fe.range}else super(new nt(ye),new Pt);this.type=Mt.Type.MERGE_PAIR}addToJSMap(fe,pe){for(let{source:Ge}of this.value.items){if(!(Ge instanceof An))throw new Error("Merge sources must be maps");let Ke=Ge.toJSON(null,fe,Map);for(let[rt,st]of Ke)pe instanceof Map?pe.has(rt)||pe.set(rt,st):pe instanceof Set?pe.add(rt):Object.prototype.hasOwnProperty.call(pe,rt)||Object.defineProperty(pe,rt,{value:st,writable:!0,enumerable:!0,configurable:!0})}return pe}toString(fe,pe){let Ge=this.value;if(Ge.items.length>1)return super.toString(fe,pe);this.value=Ge.items[0];let Ke=super.toString(fe,pe);return this.value=Ge,Ke}},I={defaultType:g.Type.BLOCK_LITERAL,lineWidth:76},H={trueStr:"true",falseStr:"false"},ue={asBigInt:!1},Ne={nullStr:"null"},Oe={defaultType:g.Type.PLAIN,doubleQuoted:{jsonEncoding:!1,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};function Ee(fe,pe,Ge){for(let{format:Ke,test:rt,resolve:st}of pe)if(rt){let Nt=fe.match(rt);if(Nt){let kt=st.apply(null,Nt);return kt instanceof nt||(kt=new nt(kt)),Ke&&(kt.format=Ke),kt}}return Ge&&(fe=Ge(fe)),new nt(fe)}var $e="flow",Ft="block",Vt="quoted",Kt=(fe,pe)=>{let Ge=fe[pe+1];for(;Ge===" "||Ge===" ";){do Ge=fe[pe+=1];while(Ge&&Ge!==`
386
+ `);Ge=fe[pe+1]}return pe};function xn(fe,pe,Ge,Ke){let{indentAtStart:rt,lineWidth:st=80,minContentWidth:Nt=20,onFold:kt,onOverflow:tn}=Ke;if(!st||st<0)return fe;let on=Math.max(1+Nt,1+st-pe.length);if(fe.length<=on)return fe;let yn=[],On={},hr=st-pe.length;typeof rt=="number"&&(rt>st-Math.max(2,Nt)?yn.push(0):hr=st-rt);let mr,qn,ur=!1,sr=-1,Yr=-1,dr=-1;Ge===Ft&&(sr=Kt(fe,sr),sr!==-1&&(hr=sr+on));for(let wr;wr=fe[sr+=1];){if(Ge===Vt&&wr==="\\"){switch(Yr=sr,fe[sr+1]){case"x":sr+=3;break;case"u":sr+=5;break;case"U":sr+=9;break;default:sr+=1}dr=sr}if(wr===`
387
+ `)Ge===Ft&&(sr=Kt(fe,sr)),hr=sr+on,mr=void 0;else{if(wr===" "&&qn&&qn!==" "&&qn!==`
388
+ `&&qn!==" "){let Pr=fe[sr+1];Pr&&Pr!==" "&&Pr!==`
389
+ `&&Pr!==" "&&(mr=sr)}if(sr>=hr)if(mr)yn.push(mr),hr=mr+on,mr=void 0;else if(Ge===Vt){for(;qn===" "||qn===" ";)qn=wr,wr=fe[sr+=1],ur=!0;let Pr=sr>dr+1?sr-2:Yr-1;if(On[Pr])return fe;yn.push(Pr),On[Pr]=!0,hr=Pr+on,mr=void 0}else ur=!0}qn=wr}if(ur&&tn&&tn(),yn.length===0)return fe;kt&&kt();let zr=fe.slice(0,yn[0]);for(let wr=0;wr<yn.length;++wr){let Pr=yn[wr],oo=yn[wr+1]||fe.length;Pr===0?zr=`
390
+ ${pe}${fe.slice(0,oo)}`:(Ge===Vt&&On[Pr]&&(zr+=`${fe[Pr]}\\`),zr+=`
391
+ ${pe}${fe.slice(Pr+1,oo)}`)}return zr}var fn=fe=>{let{indentAtStart:pe}=fe;return pe?Object.assign({indentAtStart:pe},Oe.fold):Oe.fold},Jn=fe=>/^(%|---|\.\.\.)/m.test(fe);function lr(fe,pe,Ge){if(!pe||pe<0)return!1;let Ke=pe-Ge,rt=fe.length;if(rt<=Ke)return!1;for(let st=0,Nt=0;st<rt;++st)if(fe[st]===`
392
+ `){if(st-Nt>Ke)return!0;if(Nt=st+1,rt-Nt<=Ke)return!1}return!0}function _r(fe,pe){let{implicitKey:Ge}=pe,{jsonEncoding:Ke,minMultiLineLength:rt}=Oe.doubleQuoted,st=JSON.stringify(fe);if(Ke)return st;let Nt=pe.indent||(Jn(fe)?" ":""),kt="",tn=0;for(let on=0,yn=st[on];yn;yn=st[++on])if(yn===" "&&st[on+1]==="\\"&&st[on+2]==="n"&&(kt+=st.slice(tn,on)+"\\ ",on+=1,tn=on,yn="\\"),yn==="\\")switch(st[on+1]){case"u":{kt+=st.slice(tn,on);let On=st.substr(on+2,4);switch(On){case"0000":kt+="\\0";break;case"0007":kt+="\\a";break;case"000b":kt+="\\v";break;case"001b":kt+="\\e";break;case"0085":kt+="\\N";break;case"00a0":kt+="\\_";break;case"2028":kt+="\\L";break;case"2029":kt+="\\P";break;default:On.substr(0,2)==="00"?kt+="\\x"+On.substr(2):kt+=st.substr(on,6)}on+=5,tn=on+1}break;case"n":if(Ge||st[on+2]==='"'||st.length<rt)on+=1;else{for(kt+=st.slice(tn,on)+`
393
+
394
+ `;st[on+2]==="\\"&&st[on+3]==="n"&&st[on+4]!=='"';)kt+=`
395
+ `,on+=2;kt+=Nt,st[on+2]===" "&&(kt+="\\"),on+=1,tn=on+1}break;default:on+=1}return kt=tn?kt+st.slice(tn):st,Ge?kt:xn(kt,Nt,Vt,fn(pe))}function vs(fe,pe){if(pe.implicitKey){if(/\n/.test(fe))return _r(fe,pe)}else if(/[ \t]\n|\n[ \t]/.test(fe))return _r(fe,pe);let Ge=pe.indent||(Jn(fe)?" ":""),Ke="'"+fe.replace(/'/g,"''").replace(/\n+/g,`$&
396
+ ${Ge}`)+"'";return pe.implicitKey?Ke:xn(Ke,Ge,$e,fn(pe))}function ds(fe,pe,Ge,Ke){let{comment:rt,type:st,value:Nt}=fe;if(/\n[\t ]+$/.test(Nt)||/^\s*$/.test(Nt))return _r(Nt,pe);let kt=pe.indent||(pe.forceBlockIndent||Jn(Nt)?" ":""),tn=kt?"2":"1",on=st===g.Type.BLOCK_FOLDED?!1:st===g.Type.BLOCK_LITERAL?!0:!lr(Nt,Oe.fold.lineWidth,kt.length),yn=on?"|":">";if(!Nt)return yn+`
397
+ `;let On="",hr="";if(Nt=Nt.replace(/[\n\t ]*$/,qn=>{let ur=qn.indexOf(`
398
+ `);return ur===-1?yn+="-":(Nt===qn||ur!==qn.length-1)&&(yn+="+",Ke&&Ke()),hr=qn.replace(/\n$/,""),""}).replace(/^[\n ]*/,qn=>{qn.indexOf(" ")!==-1&&(yn+=tn);let ur=qn.match(/ +$/);return ur?(On=qn.slice(0,-ur[0].length),ur[0]):(On=qn,"")}),hr&&(hr=hr.replace(/\n+(?!\n|$)/g,`$&${kt}`)),On&&(On=On.replace(/\n+/g,`$&${kt}`)),rt&&(yn+=" #"+rt.replace(/ ?[\r\n]+/g," "),Ge&&Ge()),!Nt)return`${yn}${tn}
399
+ ${kt}${hr}`;if(on)return Nt=Nt.replace(/\n+/g,`$&${kt}`),`${yn}
400
+ ${kt}${On}${Nt}${hr}`;Nt=Nt.replace(/\n+/g,`
401
+ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${kt}`);let mr=xn(`${On}${Nt}${hr}`,kt,Ft,Oe.fold);return`${yn}
402
+ ${kt}${mr}`}function wt(fe,pe,Ge,Ke){let{comment:rt,type:st,value:Nt}=fe,{actualString:kt,implicitKey:tn,indent:on,inFlow:yn}=pe;if(tn&&/[\n[\]{},]/.test(Nt)||yn&&/[[\]{},]/.test(Nt))return _r(Nt,pe);if(!Nt||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(Nt))return tn||yn||Nt.indexOf(`
403
+ `)===-1?Nt.indexOf('"')!==-1&&Nt.indexOf("'")===-1?vs(Nt,pe):_r(Nt,pe):ds(fe,pe,Ge,Ke);if(!tn&&!yn&&st!==g.Type.PLAIN&&Nt.indexOf(`
404
+ `)!==-1)return ds(fe,pe,Ge,Ke);if(on===""&&Jn(Nt))return pe.forceBlockIndent=!0,ds(fe,pe,Ge,Ke);let On=Nt.replace(/\n+/g,`$&
405
+ ${on}`);if(kt){let{tags:mr}=pe.doc.schema;if(typeof Ee(On,mr,mr.scalarFallback).value!="string")return _r(Nt,pe)}let hr=tn?On:xn(On,on,$e,fn(pe));return rt&&!yn&&(hr.indexOf(`
406
+ `)!==-1||rt.indexOf(`
407
+ `)!==-1)?(Ge&&Ge(),W(hr,on,rt)):hr}function sn(fe,pe,Ge,Ke){let{defaultType:rt}=Oe,{implicitKey:st,inFlow:Nt}=pe,{type:kt,value:tn}=fe;typeof tn!="string"&&(tn=String(tn),fe=Object.assign({},fe,{value:tn}));let on=On=>{switch(On){case g.Type.BLOCK_FOLDED:case g.Type.BLOCK_LITERAL:return ds(fe,pe,Ge,Ke);case g.Type.QUOTE_DOUBLE:return _r(tn,pe);case g.Type.QUOTE_SINGLE:return vs(tn,pe);case g.Type.PLAIN:return wt(fe,pe,Ge,Ke);default:return null}};(kt!==g.Type.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(tn)||(st||Nt)&&(kt===g.Type.BLOCK_FOLDED||kt===g.Type.BLOCK_LITERAL))&&(kt=g.Type.QUOTE_DOUBLE);let yn=on(kt);if(yn===null&&(yn=on(rt),yn===null))throw new Error(`Unsupported default string type ${rt}`);return yn}function Dn(fe){let{format:pe,minFractionDigits:Ge,tag:Ke,value:rt}=fe;if(typeof rt=="bigint")return String(rt);if(!isFinite(rt))return isNaN(rt)?".nan":rt<0?"-.inf":".inf";let st=JSON.stringify(rt);if(!pe&&Ge&&(!Ke||Ke==="tag:yaml.org,2002:float")&&/^\d/.test(st)){let Nt=st.indexOf(".");Nt<0&&(Nt=st.length,st+=".");let kt=Ge-(st.length-Nt-1);for(;kt-- >0;)st+="0"}return st}function Sn(fe,pe){let Ge,Ke;switch(pe.type){case g.Type.FLOW_MAP:Ge="}",Ke="flow map";break;case g.Type.FLOW_SEQ:Ge="]",Ke="flow sequence";break;default:fe.push(new g.YAMLSemanticError(pe,"Not a flow collection!?"));return}let rt;for(let st=pe.items.length-1;st>=0;--st){let Nt=pe.items[st];if(!Nt||Nt.type!==g.Type.COMMENT){rt=Nt;break}}if(rt&&rt.char!==Ge){let st=`Expected ${Ke} to end with ${Ge}`,Nt;typeof rt.offset=="number"?(Nt=new g.YAMLSemanticError(pe,st),Nt.offset=rt.offset+1):(Nt=new g.YAMLSemanticError(rt,st),rt.range&&rt.range.end&&(Nt.offset=rt.range.end-rt.range.start)),fe.push(Nt)}}function Hn(fe,pe){let Ge=pe.context.src[pe.range.start-1];if(Ge!==`
408
+ `&&Ge!==" "&&Ge!==" "){let Ke="Comments must be separated from other tokens by white space characters";fe.push(new g.YAMLSemanticError(pe,Ke))}}function pr(fe,pe){let Ge=String(pe),Ke=Ge.substr(0,8)+"..."+Ge.substr(-8);return new g.YAMLSemanticError(fe,`The "${Ke}" key is too long`)}function $s(fe,pe){for(let{afterKey:Ge,before:Ke,comment:rt}of pe){let st=fe.items[Ke];st?(Ge&&st.value&&(st=st.value),rt===void 0?(Ge||!st.commentBefore)&&(st.spaceBefore=!0):st.commentBefore?st.commentBefore+=`
409
+ `+rt:st.commentBefore=rt):rt!==void 0&&(fe.comment?fe.comment+=`
410
+ `+rt:fe.comment=rt)}}function Qs(fe,pe){let Ge=pe.strValue;return Ge?typeof Ge=="string"?Ge:(Ge.errors.forEach(Ke=>{Ke.source||(Ke.source=pe),fe.errors.push(Ke)}),Ge.str):""}function Ks(fe,pe){let{handle:Ge,suffix:Ke}=pe.tag,rt=fe.tagPrefixes.find(st=>st.handle===Ge);if(!rt){let st=fe.getDefaults().tagPrefixes;if(st&&(rt=st.find(Nt=>Nt.handle===Ge)),!rt)throw new g.YAMLSemanticError(pe,`The ${Ge} tag handle is non-default and was not declared.`)}if(!Ke)throw new g.YAMLSemanticError(pe,`The ${Ge} tag has no suffix.`);if(Ge==="!"&&(fe.version||fe.options.version)==="1.0"){if(Ke[0]==="^")return fe.warnings.push(new g.YAMLWarning(pe,"YAML 1.0 ^ tag expansion is not supported")),Ke;if(/[:/]/.test(Ke)){let st=Ke.match(/^([a-z0-9-]+)\/(.*)/i);return st?`tag:${st[1]}.yaml.org,2002:${st[2]}`:`tag:${Ke}`}}return rt.prefix+decodeURIComponent(Ke)}function Vs(fe,pe){let{tag:Ge,type:Ke}=pe,rt=!1;if(Ge){let{handle:st,suffix:Nt,verbatim:kt}=Ge;if(kt){if(kt!=="!"&&kt!=="!!")return kt;let tn=`Verbatim tags aren't resolved, so ${kt} is invalid.`;fe.errors.push(new g.YAMLSemanticError(pe,tn))}else if(st==="!"&&!Nt)rt=!0;else try{return Ks(fe,pe)}catch(tn){fe.errors.push(tn)}}switch(Ke){case g.Type.BLOCK_FOLDED:case g.Type.BLOCK_LITERAL:case g.Type.QUOTE_DOUBLE:case g.Type.QUOTE_SINGLE:return g.defaultTags.STR;case g.Type.FLOW_MAP:case g.Type.MAP:return g.defaultTags.MAP;case g.Type.FLOW_SEQ:case g.Type.SEQ:return g.defaultTags.SEQ;case g.Type.PLAIN:return rt?g.defaultTags.STR:null;default:return null}}function aa(fe,pe,Ge){let{tags:Ke}=fe.schema,rt=[];for(let Nt of Ke)if(Nt.tag===Ge)if(Nt.test)rt.push(Nt);else{let kt=Nt.resolve(fe,pe);return kt instanceof lt?kt:new nt(kt)}let st=Qs(fe,pe);return typeof st=="string"&&rt.length>0?Ee(st,rt,Ke.scalarFallback):null}function ao(fe){let{type:pe}=fe;switch(pe){case g.Type.FLOW_MAP:case g.Type.MAP:return g.defaultTags.MAP;case g.Type.FLOW_SEQ:case g.Type.SEQ:return g.defaultTags.SEQ;default:return g.defaultTags.STR}}function zo(fe,pe,Ge){try{let Ke=aa(fe,pe,Ge);if(Ke)return Ge&&pe.tag&&(Ke.tag=Ge),Ke}catch(Ke){return Ke.source||(Ke.source=pe),fe.errors.push(Ke),null}try{let Ke=ao(pe);if(!Ke)throw new Error(`The tag ${Ge} is unavailable`);let rt=`The tag ${Ge} is unavailable, falling back to ${Ke}`;fe.warnings.push(new g.YAMLWarning(pe,rt));let st=aa(fe,pe,Ke);return st.tag=Ge,st}catch(Ke){let rt=new g.YAMLReferenceError(pe,Ke.message);return rt.stack=Ke.stack,fe.errors.push(rt),null}}var Bl=fe=>{if(!fe)return!1;let{type:pe}=fe;return pe===g.Type.MAP_KEY||pe===g.Type.MAP_VALUE||pe===g.Type.SEQ_ITEM};function mp(fe,pe){let Ge={before:[],after:[]},Ke=!1,rt=!1,st=Bl(pe.context.parent)?pe.context.parent.props.concat(pe.props):pe.props;for(let{start:Nt,end:kt}of st)switch(pe.context.src[Nt]){case g.Char.COMMENT:{if(!pe.commentHasRequiredWhitespace(Nt)){let yn="Comments must be separated from other tokens by white space characters";fe.push(new g.YAMLSemanticError(pe,yn))}let{header:tn,valueRange:on}=pe;(on&&(Nt>on.start||tn&&Nt>tn.start)?Ge.after:Ge.before).push(pe.context.src.slice(Nt+1,kt));break}case g.Char.ANCHOR:if(Ke){let tn="A node can have at most one anchor";fe.push(new g.YAMLSemanticError(pe,tn))}Ke=!0;break;case g.Char.TAG:if(rt){let tn="A node can have at most one tag";fe.push(new g.YAMLSemanticError(pe,tn))}rt=!0;break}return{comments:Ge,hasAnchor:Ke,hasTag:rt}}function gp(fe,pe){let{anchors:Ge,errors:Ke,schema:rt}=fe;if(pe.type===g.Type.ALIAS){let Nt=pe.rawValue,kt=Ge.getNode(Nt);if(!kt){let on=`Aliased anchor not found: ${Nt}`;return Ke.push(new g.YAMLReferenceError(pe,on)),null}let tn=new Yt(kt);return Ge._cstAliases.push(tn),tn}let st=Vs(fe,pe);if(st)return zo(fe,pe,st);if(pe.type!==g.Type.PLAIN){let Nt=`Failed to resolve ${pe.type} node here`;return Ke.push(new g.YAMLSyntaxError(pe,Nt)),null}try{let Nt=Qs(fe,pe);return Ee(Nt,rt.tags,rt.tags.scalarFallback)}catch(Nt){return Nt.source||(Nt.source=pe),Ke.push(Nt),null}}function Es(fe,pe){if(!pe)return null;pe.error&&fe.errors.push(pe.error);let{comments:Ge,hasAnchor:Ke,hasTag:rt}=mp(fe.errors,pe);if(Ke){let{anchors:Nt}=fe,kt=pe.anchor,tn=Nt.getNode(kt);tn&&(Nt.map[Nt.newName(kt)]=tn),Nt.map[kt]=pe}if(pe.type===g.Type.ALIAS&&(Ke||rt)){let Nt="An alias node must not specify any properties";fe.errors.push(new g.YAMLSemanticError(pe,Nt))}let st=gp(fe,pe);if(st){st.range=[pe.range.start,pe.range.end],fe.options.keepCstNodes&&(st.cstNode=pe),fe.options.keepNodeTypes&&(st.type=pe.type);let Nt=Ge.before.join(`
411
+ `);Nt&&(st.commentBefore=st.commentBefore?`${st.commentBefore}
412
+ ${Nt}`:Nt);let kt=Ge.after.join(`
413
+ `);kt&&(st.comment=st.comment?`${st.comment}
414
+ ${kt}`:kt)}return pe.resolved=st}function yp(fe,pe){if(pe.type!==g.Type.MAP&&pe.type!==g.Type.FLOW_MAP){let Nt=`A ${pe.type} node cannot be resolved as a mapping`;return fe.errors.push(new g.YAMLSyntaxError(pe,Nt)),null}let{comments:Ge,items:Ke}=pe.type===g.Type.FLOW_MAP?Ep(fe,pe):vp(fe,pe),rt=new An;rt.items=Ke,$s(rt,Ge);let st=!1;for(let Nt=0;Nt<Ke.length;++Nt){let{key:kt}=Ke[Nt];if(kt instanceof lt&&(st=!0),fe.schema.merge&&kt&&kt.value===ye){Ke[Nt]=new Z(Ke[Nt]);let tn=Ke[Nt].value.items,on=null;tn.some(yn=>{if(yn instanceof Yt){let{type:On}=yn.source;return On===g.Type.MAP||On===g.Type.FLOW_MAP?!1:on="Merge nodes aliases can only point to maps"}return on="Merge nodes can only have Alias nodes as values"}),on&&fe.errors.push(new g.YAMLSemanticError(pe,on))}else for(let tn=Nt+1;tn<Ke.length;++tn){let{key:on}=Ke[tn];if(kt===on||kt&&on&&Object.prototype.hasOwnProperty.call(kt,"value")&&kt.value===on.value){let yn=`Map keys must be unique; "${kt}" is repeated`;fe.errors.push(new g.YAMLSemanticError(pe,yn));break}}}if(st&&!fe.options.mapAsMap){let Nt="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";fe.warnings.push(new g.YAMLWarning(pe,Nt))}return pe.resolved=rt,rt}var Dp=fe=>{let{context:{lineStart:pe,node:Ge,src:Ke},props:rt}=fe;if(rt.length===0)return!1;let{start:st}=rt[0];if(Ge&&st>Ge.valueRange.start||Ke[st]!==g.Char.COMMENT)return!1;for(let Nt=pe;Nt<st;++Nt)if(Ke[Nt]===`
415
+ `)return!1;return!0};function bp(fe,pe){if(!Dp(fe))return;let Ge=fe.getPropValue(0,g.Char.COMMENT,!0),Ke=!1,rt=pe.value.commentBefore;if(rt&&rt.startsWith(Ge))pe.value.commentBefore=rt.substr(Ge.length+1),Ke=!0;else{let st=pe.value.comment;!fe.node&&st&&st.startsWith(Ge)&&(pe.value.comment=st.substr(Ge.length+1),Ke=!0)}Ke&&(pe.comment=Ge)}function vp(fe,pe){let Ge=[],Ke=[],rt,st=null;for(let Nt=0;Nt<pe.items.length;++Nt){let kt=pe.items[Nt];switch(kt.type){case g.Type.BLANK_LINE:Ge.push({afterKey:!!rt,before:Ke.length});break;case g.Type.COMMENT:Ge.push({afterKey:!!rt,before:Ke.length,comment:kt.comment});break;case g.Type.MAP_KEY:rt!==void 0&&Ke.push(new Mt(rt)),kt.error&&fe.errors.push(kt.error),rt=Es(fe,kt.node),st=null;break;case g.Type.MAP_VALUE:{if(rt===void 0&&(rt=null),kt.error&&fe.errors.push(kt.error),!kt.context.atLineStart&&kt.node&&kt.node.type===g.Type.MAP&&!kt.node.context.atLineStart){let yn="Nested mappings are not allowed in compact mappings";fe.errors.push(new g.YAMLSemanticError(kt.node,yn))}let tn=kt.node;if(!tn&&kt.props.length>0){tn=new g.PlainValue(g.Type.PLAIN,[]),tn.context={parent:kt,src:kt.context.src};let yn=kt.range.start+1;if(tn.range={start:yn,end:yn},tn.valueRange={start:yn,end:yn},typeof kt.range.origStart=="number"){let On=kt.range.origStart+1;tn.range.origStart=tn.range.origEnd=On,tn.valueRange.origStart=tn.valueRange.origEnd=On}}let on=new Mt(rt,Es(fe,tn));bp(kt,on),Ke.push(on),rt&&typeof st=="number"&&kt.range.start>st+1024&&fe.errors.push(pr(pe,rt)),rt=void 0,st=null}break;default:rt!==void 0&&Ke.push(new Mt(rt)),rt=Es(fe,kt),st=kt.range.start,kt.error&&fe.errors.push(kt.error);e:for(let tn=Nt+1;;++tn){let on=pe.items[tn];switch(on&&on.type){case g.Type.BLANK_LINE:case g.Type.COMMENT:continue e;case g.Type.MAP_VALUE:break e;default:{let yn="Implicit map keys need to be followed by map values";fe.errors.push(new g.YAMLSemanticError(kt,yn));break e}}}if(kt.valueRangeContainsNewline){let tn="Implicit map keys need to be on a single line";fe.errors.push(new g.YAMLSemanticError(kt,tn))}}}return rt!==void 0&&Ke.push(new Mt(rt)),{comments:Ge,items:Ke}}function Ep(fe,pe){let Ge=[],Ke=[],rt,st=!1,Nt="{";for(let kt=0;kt<pe.items.length;++kt){let tn=pe.items[kt];if(typeof tn.char=="string"){let{char:on,offset:yn}=tn;if(on==="?"&&rt===void 0&&!st){st=!0,Nt=":";continue}if(on===":"){if(rt===void 0&&(rt=null),Nt===":"){Nt=",";continue}}else if(st&&(rt===void 0&&on!==","&&(rt=null),st=!1),rt!==void 0&&(Ke.push(new Mt(rt)),rt=void 0,on===",")){Nt=":";continue}if(on==="}"){if(kt===pe.items.length-1)continue}else if(on===Nt){Nt=":";continue}let On=`Flow map contains an unexpected ${on}`,hr=new g.YAMLSyntaxError(pe,On);hr.offset=yn,fe.errors.push(hr)}else tn.type===g.Type.BLANK_LINE?Ge.push({afterKey:!!rt,before:Ke.length}):tn.type===g.Type.COMMENT?(Hn(fe.errors,tn),Ge.push({afterKey:!!rt,before:Ke.length,comment:tn.comment})):rt===void 0?(Nt===","&&fe.errors.push(new g.YAMLSemanticError(tn,"Separator , missing in flow map")),rt=Es(fe,tn)):(Nt!==","&&fe.errors.push(new g.YAMLSemanticError(tn,"Indicator : missing in flow map entry")),Ke.push(new Mt(rt,Es(fe,tn))),rt=void 0,st=!1)}return Sn(fe.errors,pe),rt!==void 0&&Ke.push(new Mt(rt)),{comments:Ge,items:Ke}}function Ap(fe,pe){if(pe.type!==g.Type.SEQ&&pe.type!==g.Type.FLOW_SEQ){let st=`A ${pe.type} node cannot be resolved as a sequence`;return fe.errors.push(new g.YAMLSyntaxError(pe,st)),null}let{comments:Ge,items:Ke}=pe.type===g.Type.FLOW_SEQ?xp(fe,pe):wp(fe,pe),rt=new Pt;if(rt.items=Ke,$s(rt,Ge),!fe.options.mapAsMap&&Ke.some(st=>st instanceof Mt&&st.key instanceof lt)){let st="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";fe.warnings.push(new g.YAMLWarning(pe,st))}return pe.resolved=rt,rt}function wp(fe,pe){let Ge=[],Ke=[];for(let rt=0;rt<pe.items.length;++rt){let st=pe.items[rt];switch(st.type){case g.Type.BLANK_LINE:Ge.push({before:Ke.length});break;case g.Type.COMMENT:Ge.push({comment:st.comment,before:Ke.length});break;case g.Type.SEQ_ITEM:if(st.error&&fe.errors.push(st.error),Ke.push(Es(fe,st.node)),st.hasProps){let Nt="Sequence items cannot have tags or anchors before the - indicator";fe.errors.push(new g.YAMLSemanticError(st,Nt))}break;default:st.error&&fe.errors.push(st.error),fe.errors.push(new g.YAMLSyntaxError(st,`Unexpected ${st.type} node in sequence`))}}return{comments:Ge,items:Ke}}function xp(fe,pe){let Ge=[],Ke=[],rt=!1,st,Nt=null,kt="[",tn=null;for(let on=0;on<pe.items.length;++on){let yn=pe.items[on];if(typeof yn.char=="string"){let{char:On,offset:hr}=yn;if(On!==":"&&(rt||st!==void 0)&&(rt&&st===void 0&&(st=kt?Ke.pop():null),Ke.push(new Mt(st)),rt=!1,st=void 0,Nt=null),On===kt)kt=null;else if(!kt&&On==="?")rt=!0;else if(kt!=="["&&On===":"&&st===void 0){if(kt===","){if(st=Ke.pop(),st instanceof Mt){let mr="Chaining flow sequence pairs is invalid",qn=new g.YAMLSemanticError(pe,mr);qn.offset=hr,fe.errors.push(qn)}if(!rt&&typeof Nt=="number"){let mr=yn.range?yn.range.start:yn.offset;mr>Nt+1024&&fe.errors.push(pr(pe,st));let{src:qn}=tn.context;for(let ur=Nt;ur<mr;++ur)if(qn[ur]===`
416
+ `){let sr="Implicit keys of flow sequence pairs need to be on a single line";fe.errors.push(new g.YAMLSemanticError(tn,sr));break}}}else st=null;Nt=null,rt=!1,kt=null}else if(kt==="["||On!=="]"||on<pe.items.length-1){let mr=`Flow sequence contains an unexpected ${On}`,qn=new g.YAMLSyntaxError(pe,mr);qn.offset=hr,fe.errors.push(qn)}}else if(yn.type===g.Type.BLANK_LINE)Ge.push({before:Ke.length});else if(yn.type===g.Type.COMMENT)Hn(fe.errors,yn),Ge.push({comment:yn.comment,before:Ke.length});else{if(kt){let hr=`Expected a ${kt} in flow sequence`;fe.errors.push(new g.YAMLSemanticError(yn,hr))}let On=Es(fe,yn);st===void 0?(Ke.push(On),tn=yn):(Ke.push(new Mt(st,On)),st=void 0),Nt=yn.range.start,kt=","}}return Sn(fe.errors,pe),st!==void 0&&Ke.push(new Mt(st)),{comments:Ge,items:Ke}}Y.Alias=Yt,Y.Collection=lt,Y.Merge=Z,Y.Node=Me,Y.Pair=Mt,Y.Scalar=nt,Y.YAMLMap=An,Y.YAMLSeq=Pt,Y.addComment=we,Y.binaryOptions=I,Y.boolOptions=H,Y.findPair=en,Y.intOptions=ue,Y.isEmptyPath=Ut,Y.nullOptions=Ne,Y.resolveMap=yp,Y.resolveNode=Es,Y.resolveSeq=Ap,Y.resolveString=Qs,Y.strOptions=Oe,Y.stringifyNumber=Dn,Y.stringifyString=sn,Y.toJSON=Ie}}),ra=c({"node_modules/yaml/dist/warnings-1000a372.js"(Y){k();var g=Hr(),W=ai(),we={identify:Ee=>Ee instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve:(Ee,$e)=>{let Ft=W.resolveString(Ee,$e);if(typeof Buffer=="function")return Buffer.from(Ft,"base64");if(typeof atob=="function"){let Vt=atob(Ft.replace(/[\n\r]/g,"")),Kt=new Uint8Array(Vt.length);for(let xn=0;xn<Vt.length;++xn)Kt[xn]=Vt.charCodeAt(xn);return Kt}else{let Vt="This environment does not support reading binary tags; either Buffer or atob is required";return Ee.errors.push(new g.YAMLReferenceError($e,Vt)),null}},options:W.binaryOptions,stringify:(Ee,$e,Ft,Vt)=>{let{comment:Kt,type:xn,value:fn}=Ee,Jn;if(typeof Buffer=="function")Jn=fn instanceof Buffer?fn.toString("base64"):Buffer.from(fn.buffer).toString("base64");else if(typeof btoa=="function"){let lr="";for(let _r=0;_r<fn.length;++_r)lr+=String.fromCharCode(fn[_r]);Jn=btoa(lr)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(xn||(xn=W.binaryOptions.defaultType),xn===g.Type.QUOTE_DOUBLE)fn=Jn;else{let{lineWidth:lr}=W.binaryOptions,_r=Math.ceil(Jn.length/lr),vs=new Array(_r);for(let ds=0,wt=0;ds<_r;++ds,wt+=lr)vs[ds]=Jn.substr(wt,lr);fn=vs.join(xn===g.Type.BLOCK_LITERAL?`
417
+ `:" ")}return W.stringifyString({comment:Kt,type:xn,value:fn},$e,Ft,Vt)}};function Me(Ee,$e){let Ft=W.resolveSeq(Ee,$e);for(let Vt=0;Vt<Ft.items.length;++Vt){let Kt=Ft.items[Vt];if(!(Kt instanceof W.Pair)){if(Kt instanceof W.YAMLMap){if(Kt.items.length>1){let fn="Each pair must have its own sequence indicator";throw new g.YAMLSemanticError($e,fn)}let xn=Kt.items[0]||new W.Pair;Kt.commentBefore&&(xn.commentBefore=xn.commentBefore?`${Kt.commentBefore}
418
+ ${xn.commentBefore}`:Kt.commentBefore),Kt.comment&&(xn.comment=xn.comment?`${Kt.comment}
419
+ ${xn.comment}`:Kt.comment),Kt=xn}Ft.items[Vt]=Kt instanceof W.Pair?Kt:new W.Pair(Kt)}}return Ft}function Ie(Ee,$e,Ft){let Vt=new W.YAMLSeq(Ee);Vt.tag="tag:yaml.org,2002:pairs";for(let Kt of $e){let xn,fn;if(Array.isArray(Kt))if(Kt.length===2)xn=Kt[0],fn=Kt[1];else throw new TypeError(`Expected [key, value] tuple: ${Kt}`);else if(Kt&&Kt instanceof Object){let lr=Object.keys(Kt);if(lr.length===1)xn=lr[0],fn=Kt[xn];else throw new TypeError(`Expected { key: value } tuple: ${Kt}`)}else xn=Kt;let Jn=Ee.createPair(xn,fn,Ft);Vt.items.push(Jn)}return Vt}var nt={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Me,createNode:Ie},vt=class extends W.YAMLSeq{constructor(){super(),g._defineProperty(this,"add",W.YAMLMap.prototype.add.bind(this)),g._defineProperty(this,"delete",W.YAMLMap.prototype.delete.bind(this)),g._defineProperty(this,"get",W.YAMLMap.prototype.get.bind(this)),g._defineProperty(this,"has",W.YAMLMap.prototype.has.bind(this)),g._defineProperty(this,"set",W.YAMLMap.prototype.set.bind(this)),this.tag=vt.tag}toJSON(Ee,$e){let Ft=new Map;$e&&$e.onCreate&&$e.onCreate(Ft);for(let Vt of this.items){let Kt,xn;if(Vt instanceof W.Pair?(Kt=W.toJSON(Vt.key,"",$e),xn=W.toJSON(Vt.value,Kt,$e)):Kt=W.toJSON(Vt,"",$e),Ft.has(Kt))throw new Error("Ordered maps must not include duplicate keys");Ft.set(Kt,xn)}return Ft}};g._defineProperty(vt,"tag","tag:yaml.org,2002:omap");function Ut(Ee,$e){let Ft=Me(Ee,$e),Vt=[];for(let{key:Kt}of Ft.items)if(Kt instanceof W.Scalar)if(Vt.includes(Kt.value)){let xn="Ordered maps must not include duplicate keys";throw new g.YAMLSemanticError($e,xn)}else Vt.push(Kt.value);return Object.assign(new vt,Ft)}function lt(Ee,$e,Ft){let Vt=Ie(Ee,$e,Ft),Kt=new vt;return Kt.items=Vt.items,Kt}var At={identify:Ee=>Ee instanceof Map,nodeClass:vt,default:!1,tag:"tag:yaml.org,2002:omap",resolve:Ut,createNode:lt},Pt=class extends W.YAMLMap{constructor(){super(),this.tag=Pt.tag}add(Ee){let $e=Ee instanceof W.Pair?Ee:new W.Pair(Ee);W.findPair(this.items,$e.key)||this.items.push($e)}get(Ee,$e){let Ft=W.findPair(this.items,Ee);return!$e&&Ft instanceof W.Pair?Ft.key instanceof W.Scalar?Ft.key.value:Ft.key:Ft}set(Ee,$e){if(typeof $e!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof $e}`);let Ft=W.findPair(this.items,Ee);Ft&&!$e?this.items.splice(this.items.indexOf(Ft),1):!Ft&&$e&&this.items.push(new W.Pair(Ee))}toJSON(Ee,$e){return super.toJSON(Ee,$e,Set)}toString(Ee,$e,Ft){if(!Ee)return JSON.stringify(this);if(this.hasAllNullValues())return super.toString(Ee,$e,Ft);throw new Error("Set items must all have null values")}};g._defineProperty(Pt,"tag","tag:yaml.org,2002:set");function $t(Ee,$e){let Ft=W.resolveMap(Ee,$e);if(!Ft.hasAllNullValues())throw new g.YAMLSemanticError($e,"Set items must all have null values");return Object.assign(new Pt,Ft)}function Mt(Ee,$e,Ft){let Vt=new Pt;for(let Kt of $e)Vt.items.push(Ee.createPair(Kt,null,Ft));return Vt}var Ht={identify:Ee=>Ee instanceof Set,nodeClass:Pt,default:!1,tag:"tag:yaml.org,2002:set",resolve:$t,createNode:Mt},Yt=(Ee,$e)=>{let Ft=$e.split(":").reduce((Vt,Kt)=>Vt*60+Number(Kt),0);return Ee==="-"?-Ft:Ft},en=Ee=>{let{value:$e}=Ee;if(isNaN($e)||!isFinite($e))return W.stringifyNumber($e);let Ft="";$e<0&&(Ft="-",$e=Math.abs($e));let Vt=[$e%60];return $e<60?Vt.unshift(0):($e=Math.round(($e-Vt[0])/60),Vt.unshift($e%60),$e>=60&&($e=Math.round(($e-Vt[0])/60),Vt.unshift($e))),Ft+Vt.map(Kt=>Kt<10?"0"+String(Kt):String(Kt)).join(":").replace(/000000\d*$/,"")},An={identify:Ee=>typeof Ee=="number",default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:(Ee,$e,Ft)=>Yt($e,Ft.replace(/_/g,"")),stringify:en},ye={identify:Ee=>typeof Ee=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:(Ee,$e,Ft)=>Yt($e,Ft.replace(/_/g,"")),stringify:en},Z={identify:Ee=>Ee instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^(?:([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?)$"),resolve:(Ee,$e,Ft,Vt,Kt,xn,fn,Jn,lr)=>{Jn&&(Jn=(Jn+"00").substr(1,3));let _r=Date.UTC($e,Ft-1,Vt,Kt||0,xn||0,fn||0,Jn||0);if(lr&&lr!=="Z"){let vs=Yt(lr[0],lr.slice(1));Math.abs(vs)<30&&(vs*=60),_r-=6e4*vs}return new Date(_r)},stringify:Ee=>{let{value:$e}=Ee;return $e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")}};function I(Ee){let $e=typeof O<"u"&&O.env||{};return Ee?typeof YAML_SILENCE_DEPRECATION_WARNINGS<"u"?!YAML_SILENCE_DEPRECATION_WARNINGS:!$e.YAML_SILENCE_DEPRECATION_WARNINGS:typeof YAML_SILENCE_WARNINGS<"u"?!YAML_SILENCE_WARNINGS:!$e.YAML_SILENCE_WARNINGS}function H(Ee,$e){if(I(!1)){let Ft=typeof O<"u"&&O.emitWarning;Ft?Ft(Ee,$e):console.warn($e?`${$e}: ${Ee}`:Ee)}}function ue(Ee){if(I(!0)){let $e=Ee.replace(/.*yaml[/\\]/i,"").replace(/\.js$/,"").replace(/\\/g,"/");H(`The endpoint 'yaml/${$e}' will be removed in a future release.`,"DeprecationWarning")}}var Ne={};function Oe(Ee,$e){if(!Ne[Ee]&&I(!0)){Ne[Ee]=!0;let Ft=`The option '${Ee}' will be removed in a future release`;Ft+=$e?`, use '${$e}' instead.`:".",H(Ft,"DeprecationWarning")}}Y.binary=we,Y.floatTime=ye,Y.intTime=An,Y.omap=At,Y.pairs=nt,Y.set=Ht,Y.timestamp=Z,Y.warn=H,Y.warnFileDeprecation=ue,Y.warnOptionDeprecation=Oe}}),sa=c({"node_modules/yaml/dist/Schema-88e323a7.js"(Y){k();var g=Hr(),W=ai(),we=ra();function Me(wt,sn,Dn){let Sn=new W.YAMLMap(wt);if(sn instanceof Map)for(let[Hn,pr]of sn)Sn.items.push(wt.createPair(Hn,pr,Dn));else if(sn&&typeof sn=="object")for(let Hn of Object.keys(sn))Sn.items.push(wt.createPair(Hn,sn[Hn],Dn));return typeof wt.sortMapEntries=="function"&&Sn.items.sort(wt.sortMapEntries),Sn}var Ie={createNode:Me,default:!0,nodeClass:W.YAMLMap,tag:"tag:yaml.org,2002:map",resolve:W.resolveMap};function nt(wt,sn,Dn){let Sn=new W.YAMLSeq(wt);if(sn&&sn[Symbol.iterator])for(let Hn of sn){let pr=wt.createNode(Hn,Dn.wrapScalars,null,Dn);Sn.items.push(pr)}return Sn}var vt={createNode:nt,default:!0,nodeClass:W.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve:W.resolveSeq},Ut={identify:wt=>typeof wt=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:W.resolveString,stringify(wt,sn,Dn,Sn){return sn=Object.assign({actualString:!0},sn),W.stringifyString(wt,sn,Dn,Sn)},options:W.strOptions},lt=[Ie,vt,Ut],At=wt=>typeof wt=="bigint"||Number.isInteger(wt),Pt=(wt,sn,Dn)=>W.intOptions.asBigInt?BigInt(wt):parseInt(sn,Dn);function $t(wt,sn,Dn){let{value:Sn}=wt;return At(Sn)&&Sn>=0?Dn+Sn.toString(sn):W.stringifyNumber(wt)}var Mt={identify:wt=>wt==null,createNode:(wt,sn,Dn)=>Dn.wrapScalars?new W.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:W.nullOptions,stringify:()=>W.nullOptions.nullStr},Ht={identify:wt=>typeof wt=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:wt=>wt[0]==="t"||wt[0]==="T",options:W.boolOptions,stringify:wt=>{let{value:sn}=wt;return sn?W.boolOptions.trueStr:W.boolOptions.falseStr}},Yt={identify:wt=>At(wt)&&wt>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:(wt,sn)=>Pt(wt,sn,8),options:W.intOptions,stringify:wt=>$t(wt,8,"0o")},en={identify:At,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:wt=>Pt(wt,wt,10),options:W.intOptions,stringify:W.stringifyNumber},An={identify:wt=>At(wt)&&wt>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:(wt,sn)=>Pt(wt,sn,16),options:W.intOptions,stringify:wt=>$t(wt,16,"0x")},ye={identify:wt=>typeof wt=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(wt,sn)=>sn?NaN:wt[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:W.stringifyNumber},Z={identify:wt=>typeof wt=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:wt=>parseFloat(wt),stringify:wt=>{let{value:sn}=wt;return Number(sn).toExponential()}},I={identify:wt=>typeof wt=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.([0-9]+)|[0-9]+\.([0-9]*))$/,resolve(wt,sn,Dn){let Sn=sn||Dn,Hn=new W.Scalar(parseFloat(wt));return Sn&&Sn[Sn.length-1]==="0"&&(Hn.minFractionDigits=Sn.length),Hn},stringify:W.stringifyNumber},H=lt.concat([Mt,Ht,Yt,en,An,ye,Z,I]),ue=wt=>typeof wt=="bigint"||Number.isInteger(wt),Ne=wt=>{let{value:sn}=wt;return JSON.stringify(sn)},Oe=[Ie,vt,{identify:wt=>typeof wt=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:W.resolveString,stringify:Ne},{identify:wt=>wt==null,createNode:(wt,sn,Dn)=>Dn.wrapScalars?new W.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Ne},{identify:wt=>typeof wt=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:wt=>wt==="true",stringify:Ne},{identify:ue,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:wt=>W.intOptions.asBigInt?BigInt(wt):parseInt(wt,10),stringify:wt=>{let{value:sn}=wt;return ue(sn)?sn.toString():JSON.stringify(sn)}},{identify:wt=>typeof wt=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:wt=>parseFloat(wt),stringify:Ne}];Oe.scalarFallback=wt=>{throw new SyntaxError(`Unresolved plain scalar ${JSON.stringify(wt)}`)};var Ee=wt=>{let{value:sn}=wt;return sn?W.boolOptions.trueStr:W.boolOptions.falseStr},$e=wt=>typeof wt=="bigint"||Number.isInteger(wt);function Ft(wt,sn,Dn){let Sn=sn.replace(/_/g,"");if(W.intOptions.asBigInt){switch(Dn){case 2:Sn=`0b${Sn}`;break;case 8:Sn=`0o${Sn}`;break;case 16:Sn=`0x${Sn}`;break}let pr=BigInt(Sn);return wt==="-"?BigInt(-1)*pr:pr}let Hn=parseInt(Sn,Dn);return wt==="-"?-1*Hn:Hn}function Vt(wt,sn,Dn){let{value:Sn}=wt;if($e(Sn)){let Hn=Sn.toString(sn);return Sn<0?"-"+Dn+Hn.substr(1):Dn+Hn}return W.stringifyNumber(wt)}var Kt=lt.concat([{identify:wt=>wt==null,createNode:(wt,sn,Dn)=>Dn.wrapScalars?new W.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:W.nullOptions,stringify:()=>W.nullOptions.nullStr},{identify:wt=>typeof wt=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>!0,options:W.boolOptions,stringify:Ee},{identify:wt=>typeof wt=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>!1,options:W.boolOptions,stringify:Ee},{identify:$e,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^([-+]?)0b([0-1_]+)$/,resolve:(wt,sn,Dn)=>Ft(sn,Dn,2),stringify:wt=>Vt(wt,2,"0b")},{identify:$e,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^([-+]?)0([0-7_]+)$/,resolve:(wt,sn,Dn)=>Ft(sn,Dn,8),stringify:wt=>Vt(wt,8,"0")},{identify:$e,default:!0,tag:"tag:yaml.org,2002:int",test:/^([-+]?)([0-9][0-9_]*)$/,resolve:(wt,sn,Dn)=>Ft(sn,Dn,10),stringify:W.stringifyNumber},{identify:$e,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^([-+]?)0x([0-9a-fA-F_]+)$/,resolve:(wt,sn,Dn)=>Ft(sn,Dn,16),stringify:wt=>Vt(wt,16,"0x")},{identify:wt=>typeof wt=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(wt,sn)=>sn?NaN:wt[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:W.stringifyNumber},{identify:wt=>typeof wt=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?([0-9][0-9_]*)?(\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:wt=>parseFloat(wt.replace(/_/g,"")),stringify:wt=>{let{value:sn}=wt;return Number(sn).toExponential()}},{identify:wt=>typeof wt=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve(wt,sn){let Dn=new W.Scalar(parseFloat(wt.replace(/_/g,"")));if(sn){let Sn=sn.replace(/_/g,"");Sn[Sn.length-1]==="0"&&(Dn.minFractionDigits=Sn.length)}return Dn},stringify:W.stringifyNumber}],we.binary,we.omap,we.pairs,we.set,we.intTime,we.floatTime,we.timestamp),xn={core:H,failsafe:lt,json:Oe,yaml11:Kt},fn={binary:we.binary,bool:Ht,float:I,floatExp:Z,floatNaN:ye,floatTime:we.floatTime,int:en,intHex:An,intOct:Yt,intTime:we.intTime,map:Ie,null:Mt,omap:we.omap,pairs:we.pairs,seq:vt,set:we.set,timestamp:we.timestamp};function Jn(wt,sn,Dn){if(sn){let Sn=Dn.filter(pr=>pr.tag===sn),Hn=Sn.find(pr=>!pr.format)||Sn[0];if(!Hn)throw new Error(`Tag ${sn} not found`);return Hn}return Dn.find(Sn=>(Sn.identify&&Sn.identify(wt)||Sn.class&&wt instanceof Sn.class)&&!Sn.format)}function lr(wt,sn,Dn){if(wt instanceof W.Node)return wt;let{defaultPrefix:Sn,onTagObj:Hn,prevObjects:pr,schema:$s,wrapScalars:Qs}=Dn;sn&&sn.startsWith("!!")&&(sn=Sn+sn.slice(2));let Ks=Jn(wt,sn,$s.tags);if(!Ks){if(typeof wt.toJSON=="function"&&(wt=wt.toJSON()),!wt||typeof wt!="object")return Qs?new W.Scalar(wt):wt;Ks=wt instanceof Map?Ie:wt[Symbol.iterator]?vt:Ie}Hn&&(Hn(Ks),delete Dn.onTagObj);let Vs={value:void 0,node:void 0};if(wt&&typeof wt=="object"&&pr){let aa=pr.get(wt);if(aa){let ao=new W.Alias(aa);return Dn.aliasNodes.push(ao),ao}Vs.value=wt,pr.set(wt,Vs)}return Vs.node=Ks.createNode?Ks.createNode(Dn.schema,wt,Dn):Qs?new W.Scalar(wt):wt,sn&&Vs.node instanceof W.Node&&(Vs.node.tag=sn),Vs.node}function _r(wt,sn,Dn,Sn){let Hn=wt[Sn.replace(/\W/g,"")];if(!Hn){let pr=Object.keys(wt).map($s=>JSON.stringify($s)).join(", ");throw new Error(`Unknown schema "${Sn}"; use one of ${pr}`)}if(Array.isArray(Dn))for(let pr of Dn)Hn=Hn.concat(pr);else typeof Dn=="function"&&(Hn=Dn(Hn.slice()));for(let pr=0;pr<Hn.length;++pr){let $s=Hn[pr];if(typeof $s=="string"){let Qs=sn[$s];if(!Qs){let Ks=Object.keys(sn).map(Vs=>JSON.stringify(Vs)).join(", ");throw new Error(`Unknown custom tag "${$s}"; use one of ${Ks}`)}Hn[pr]=Qs}}return Hn}var vs=(wt,sn)=>wt.key<sn.key?-1:wt.key>sn.key?1:0,ds=class{constructor(wt){let{customTags:sn,merge:Dn,schema:Sn,sortMapEntries:Hn,tags:pr}=wt;this.merge=!!Dn,this.name=Sn,this.sortMapEntries=Hn===!0?vs:Hn||null,!sn&&pr&&we.warnOptionDeprecation("tags","customTags"),this.tags=_r(xn,fn,sn||pr,Sn)}createNode(wt,sn,Dn,Sn){let Hn={defaultPrefix:ds.defaultPrefix,schema:this,wrapScalars:sn},pr=Sn?Object.assign(Sn,Hn):Hn;return lr(wt,Dn,pr)}createPair(wt,sn,Dn){Dn||(Dn={wrapScalars:!0});let Sn=this.createNode(wt,Dn.wrapScalars,null,Dn),Hn=this.createNode(sn,Dn.wrapScalars,null,Dn);return new W.Pair(Sn,Hn)}};g._defineProperty(ds,"defaultPrefix",g.defaultTagPrefix),g._defineProperty(ds,"defaultTags",g.defaultTags),Y.Schema=ds}}),is=c({"node_modules/yaml/dist/Document-9b4560a1.js"(Y){k();var g=Hr(),W=ai(),we=sa(),Me={anchorPrefix:"a",customTags:null,indent:2,indentSeq:!0,keepCstNodes:!1,keepNodeTypes:!0,keepBlobsInJSON:!0,mapAsMap:!1,maxAliasCount:100,prettyErrors:!1,simpleKeys:!1,version:"1.2"},Ie={get binary(){return W.binaryOptions},set binary(I){Object.assign(W.binaryOptions,I)},get bool(){return W.boolOptions},set bool(I){Object.assign(W.boolOptions,I)},get int(){return W.intOptions},set int(I){Object.assign(W.intOptions,I)},get null(){return W.nullOptions},set null(I){Object.assign(W.nullOptions,I)},get str(){return W.strOptions},set str(I){Object.assign(W.strOptions,I)}},nt={"1.0":{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:g.defaultTagPrefix},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:g.defaultTagPrefix}]},1.2:{schema:"core",merge:!1,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:g.defaultTagPrefix}]}};function vt(I,H){if((I.version||I.options.version)==="1.0"){let Oe=H.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);if(Oe)return"!"+Oe[1];let Ee=H.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return Ee?`!${Ee[1]}/${Ee[2]}`:`!${H.replace(/^tag:/,"")}`}let ue=I.tagPrefixes.find(Oe=>H.indexOf(Oe.prefix)===0);if(!ue){let Oe=I.getDefaults().tagPrefixes;ue=Oe&&Oe.find(Ee=>H.indexOf(Ee.prefix)===0)}if(!ue)return H[0]==="!"?H:`!<${H}>`;let Ne=H.substr(ue.prefix.length).replace(/[!,[\]{}]/g,Oe=>({"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"})[Oe]);return ue.handle+Ne}function Ut(I,H){if(H instanceof W.Alias)return W.Alias;if(H.tag){let Oe=I.filter(Ee=>Ee.tag===H.tag);if(Oe.length>0)return Oe.find(Ee=>Ee.format===H.format)||Oe[0]}let ue,Ne;if(H instanceof W.Scalar){Ne=H.value;let Oe=I.filter(Ee=>Ee.identify&&Ee.identify(Ne)||Ee.class&&Ne instanceof Ee.class);ue=Oe.find(Ee=>Ee.format===H.format)||Oe.find(Ee=>!Ee.format)}else Ne=H,ue=I.find(Oe=>Oe.nodeClass&&Ne instanceof Oe.nodeClass);if(!ue){let Oe=Ne&&Ne.constructor?Ne.constructor.name:typeof Ne;throw new Error(`Tag not resolved for ${Oe} value`)}return ue}function lt(I,H,ue){let{anchors:Ne,doc:Oe}=ue,Ee=[],$e=Oe.anchors.getName(I);return $e&&(Ne[$e]=I,Ee.push(`&${$e}`)),I.tag?Ee.push(vt(Oe,I.tag)):H.default||Ee.push(vt(Oe,H.tag)),Ee.join(" ")}function At(I,H,ue,Ne){let{anchors:Oe,schema:Ee}=H.doc,$e;if(!(I instanceof W.Node)){let Kt={aliasNodes:[],onTagObj:xn=>$e=xn,prevObjects:new Map};I=Ee.createNode(I,!0,null,Kt);for(let xn of Kt.aliasNodes){xn.source=xn.source.node;let fn=Oe.getName(xn.source);fn||(fn=Oe.newName(),Oe.map[fn]=xn.source)}}if(I instanceof W.Pair)return I.toString(H,ue,Ne);$e||($e=Ut(Ee.tags,I));let Ft=lt(I,$e,H);Ft.length>0&&(H.indentAtStart=(H.indentAtStart||0)+Ft.length+1);let Vt=typeof $e.stringify=="function"?$e.stringify(I,H,ue,Ne):I instanceof W.Scalar?W.stringifyString(I,H,ue,Ne):I.toString(H,ue,Ne);return Ft?I instanceof W.Scalar||Vt[0]==="{"||Vt[0]==="["?`${Ft} ${Vt}`:`${Ft}
420
+ ${H.indent}${Vt}`:Vt}var Pt=class{static validAnchorNode(I){return I instanceof W.Scalar||I instanceof W.YAMLSeq||I instanceof W.YAMLMap}constructor(I){g._defineProperty(this,"map",Object.create(null)),this.prefix=I}createAlias(I,H){return this.setAnchor(I,H),new W.Alias(I)}createMergePair(){let I=new W.Merge;for(var H=arguments.length,ue=new Array(H),Ne=0;Ne<H;Ne++)ue[Ne]=arguments[Ne];return I.value.items=ue.map(Oe=>{if(Oe instanceof W.Alias){if(Oe.source instanceof W.YAMLMap)return Oe}else if(Oe instanceof W.YAMLMap)return this.createAlias(Oe);throw new Error("Merge sources must be Map nodes or their Aliases")}),I}getName(I){let{map:H}=this;return Object.keys(H).find(ue=>H[ue]===I)}getNames(){return Object.keys(this.map)}getNode(I){return this.map[I]}newName(I){I||(I=this.prefix);let H=Object.keys(this.map);for(let ue=1;;++ue){let Ne=`${I}${ue}`;if(!H.includes(Ne))return Ne}}resolveNodes(){let{map:I,_cstAliases:H}=this;Object.keys(I).forEach(ue=>{I[ue]=I[ue].resolved}),H.forEach(ue=>{ue.source=ue.source.resolved}),delete this._cstAliases}setAnchor(I,H){if(I!=null&&!Pt.validAnchorNode(I))throw new Error("Anchors may only be set for Scalar, Seq and Map nodes");if(H&&/[\x00-\x19\s,[\]{}]/.test(H))throw new Error("Anchor names must not contain whitespace or control characters");let{map:ue}=this,Ne=I&&Object.keys(ue).find(Oe=>ue[Oe]===I);if(Ne)if(H)Ne!==H&&(delete ue[Ne],ue[H]=I);else return Ne;else{if(!H){if(!I)return null;H=this.newName()}ue[H]=I}return H}},$t=(I,H)=>{if(I&&typeof I=="object"){let{tag:ue}=I;I instanceof W.Collection?(ue&&(H[ue]=!0),I.items.forEach(Ne=>$t(Ne,H))):I instanceof W.Pair?($t(I.key,H),$t(I.value,H)):I instanceof W.Scalar&&ue&&(H[ue]=!0)}return H},Mt=I=>Object.keys($t(I,{}));function Ht(I,H){let ue={before:[],after:[]},Ne,Oe=!1;for(let Ee of H)if(Ee.valueRange){if(Ne!==void 0){let Ft="Document contains trailing content not separated by a ... or --- line";I.errors.push(new g.YAMLSyntaxError(Ee,Ft));break}let $e=W.resolveNode(I,Ee);Oe&&($e.spaceBefore=!0,Oe=!1),Ne=$e}else Ee.comment!==null?(Ne===void 0?ue.before:ue.after).push(Ee.comment):Ee.type===g.Type.BLANK_LINE&&(Oe=!0,Ne===void 0&&ue.before.length>0&&!I.commentBefore&&(I.commentBefore=ue.before.join(`
421
+ `),ue.before=[]));if(I.contents=Ne||null,!Ne)I.comment=ue.before.concat(ue.after).join(`
422
+ `)||null;else{let Ee=ue.before.join(`
423
+ `);if(Ee){let $e=Ne instanceof W.Collection&&Ne.items[0]?Ne.items[0]:Ne;$e.commentBefore=$e.commentBefore?`${Ee}
424
+ ${$e.commentBefore}`:Ee}I.comment=ue.after.join(`
425
+ `)||null}}function Yt(I,H){let{tagPrefixes:ue}=I,[Ne,Oe]=H.parameters;if(!Ne||!Oe){let Ee="Insufficient parameters given for %TAG directive";throw new g.YAMLSemanticError(H,Ee)}if(ue.some(Ee=>Ee.handle===Ne)){let Ee="The %TAG directive must only be given at most once per handle in the same document.";throw new g.YAMLSemanticError(H,Ee)}return{handle:Ne,prefix:Oe}}function en(I,H){let[ue]=H.parameters;if(H.name==="YAML:1.0"&&(ue="1.0"),!ue){let Ne="Insufficient parameters given for %YAML directive";throw new g.YAMLSemanticError(H,Ne)}if(!nt[ue]){let Ne=`Document will be parsed as YAML ${I.version||I.options.version} rather than YAML ${ue}`;I.warnings.push(new g.YAMLWarning(H,Ne))}return ue}function An(I,H,ue){let Ne=[],Oe=!1;for(let Ee of H){let{comment:$e,name:Ft}=Ee;switch(Ft){case"TAG":try{I.tagPrefixes.push(Yt(I,Ee))}catch(Vt){I.errors.push(Vt)}Oe=!0;break;case"YAML":case"YAML:1.0":if(I.version){let Vt="The %YAML directive must only be given at most once per document.";I.errors.push(new g.YAMLSemanticError(Ee,Vt))}try{I.version=en(I,Ee)}catch(Vt){I.errors.push(Vt)}Oe=!0;break;default:if(Ft){let Vt=`YAML only supports %TAG and %YAML directives, and not %${Ft}`;I.warnings.push(new g.YAMLWarning(Ee,Vt))}}$e&&Ne.push($e)}if(ue&&!Oe&&(I.version||ue.version||I.options.version)==="1.1"){let Ee=$e=>{let{handle:Ft,prefix:Vt}=$e;return{handle:Ft,prefix:Vt}};I.tagPrefixes=ue.tagPrefixes.map(Ee),I.version=ue.version}I.commentBefore=Ne.join(`
426
+ `)||null}function ye(I){if(I instanceof W.Collection)return!0;throw new Error("Expected a YAML collection as document contents")}var Z=class{constructor(I){this.anchors=new Pt(I.anchorPrefix),this.commentBefore=null,this.comment=null,this.contents=null,this.directivesEndMarker=null,this.errors=[],this.options=I,this.schema=null,this.tagPrefixes=[],this.version=null,this.warnings=[]}add(I){return ye(this.contents),this.contents.add(I)}addIn(I,H){ye(this.contents),this.contents.addIn(I,H)}delete(I){return ye(this.contents),this.contents.delete(I)}deleteIn(I){return W.isEmptyPath(I)?this.contents==null?!1:(this.contents=null,!0):(ye(this.contents),this.contents.deleteIn(I))}getDefaults(){return Z.defaults[this.version]||Z.defaults[this.options.version]||{}}get(I,H){return this.contents instanceof W.Collection?this.contents.get(I,H):void 0}getIn(I,H){return W.isEmptyPath(I)?!H&&this.contents instanceof W.Scalar?this.contents.value:this.contents:this.contents instanceof W.Collection?this.contents.getIn(I,H):void 0}has(I){return this.contents instanceof W.Collection?this.contents.has(I):!1}hasIn(I){return W.isEmptyPath(I)?this.contents!==void 0:this.contents instanceof W.Collection?this.contents.hasIn(I):!1}set(I,H){ye(this.contents),this.contents.set(I,H)}setIn(I,H){W.isEmptyPath(I)?this.contents=H:(ye(this.contents),this.contents.setIn(I,H))}setSchema(I,H){if(!I&&!H&&this.schema)return;typeof I=="number"&&(I=I.toFixed(1)),I==="1.0"||I==="1.1"||I==="1.2"?(this.version?this.version=I:this.options.version=I,delete this.options.schema):I&&typeof I=="string"&&(this.options.schema=I),Array.isArray(H)&&(this.options.customTags=H);let ue=Object.assign({},this.getDefaults(),this.options);this.schema=new we.Schema(ue)}parse(I,H){this.options.keepCstNodes&&(this.cstNode=I),this.options.keepNodeTypes&&(this.type="DOCUMENT");let{directives:ue=[],contents:Ne=[],directivesEndMarker:Oe,error:Ee,valueRange:$e}=I;if(Ee&&(Ee.source||(Ee.source=this),this.errors.push(Ee)),An(this,ue,H),Oe&&(this.directivesEndMarker=!0),this.range=$e?[$e.start,$e.end]:null,this.setSchema(),this.anchors._cstAliases=[],Ht(this,Ne),this.anchors.resolveNodes(),this.options.prettyErrors){for(let Ft of this.errors)Ft instanceof g.YAMLError&&Ft.makePretty();for(let Ft of this.warnings)Ft instanceof g.YAMLError&&Ft.makePretty()}return this}listNonDefaultTags(){return Mt(this.contents).filter(I=>I.indexOf(we.Schema.defaultPrefix)!==0)}setTagPrefix(I,H){if(I[0]!=="!"||I[I.length-1]!=="!")throw new Error("Handle must start and end with !");if(H){let ue=this.tagPrefixes.find(Ne=>Ne.handle===I);ue?ue.prefix=H:this.tagPrefixes.push({handle:I,prefix:H})}else this.tagPrefixes=this.tagPrefixes.filter(ue=>ue.handle!==I)}toJSON(I,H){let{keepBlobsInJSON:ue,mapAsMap:Ne,maxAliasCount:Oe}=this.options,Ee=ue&&(typeof I!="string"||!(this.contents instanceof W.Scalar)),$e={doc:this,indentStep:" ",keep:Ee,mapAsMap:Ee&&!!Ne,maxAliasCount:Oe,stringify:At},Ft=Object.keys(this.anchors.map);Ft.length>0&&($e.anchors=new Map(Ft.map(Kt=>[this.anchors.map[Kt],{alias:[],aliasCount:0,count:1}])));let Vt=W.toJSON(this.contents,I,$e);if(typeof H=="function"&&$e.anchors)for(let{count:Kt,res:xn}of $e.anchors.values())H(xn,Kt);return Vt}toString(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");let I=this.options.indent;if(!Number.isInteger(I)||I<=0){let Ft=JSON.stringify(I);throw new Error(`"indent" option must be a positive integer, not ${Ft}`)}this.setSchema();let H=[],ue=!1;if(this.version){let Ft="%YAML 1.2";this.schema.name==="yaml-1.1"&&(this.version==="1.0"?Ft="%YAML:1.0":this.version==="1.1"&&(Ft="%YAML 1.1")),H.push(Ft),ue=!0}let Ne=this.listNonDefaultTags();this.tagPrefixes.forEach(Ft=>{let{handle:Vt,prefix:Kt}=Ft;Ne.some(xn=>xn.indexOf(Kt)===0)&&(H.push(`%TAG ${Vt} ${Kt}`),ue=!0)}),(ue||this.directivesEndMarker)&&H.push("---"),this.commentBefore&&((ue||!this.directivesEndMarker)&&H.unshift(""),H.unshift(this.commentBefore.replace(/^/gm,"#")));let Oe={anchors:Object.create(null),doc:this,indent:"",indentStep:" ".repeat(I),stringify:At},Ee=!1,$e=null;if(this.contents){this.contents instanceof W.Node&&(this.contents.spaceBefore&&(ue||this.directivesEndMarker)&&H.push(""),this.contents.commentBefore&&H.push(this.contents.commentBefore.replace(/^/gm,"#")),Oe.forceBlockIndent=!!this.comment,$e=this.contents.comment);let Ft=$e?null:()=>Ee=!0,Vt=At(this.contents,Oe,()=>$e=null,Ft);H.push(W.addComment(Vt,"",$e))}else this.contents!==void 0&&H.push(At(this.contents,Oe));return this.comment&&((!Ee||$e)&&H[H.length-1]!==""&&H.push(""),H.push(this.comment.replace(/^/gm,"#"))),H.join(`
427
+ `)+`
428
+ `}};g._defineProperty(Z,"defaults",nt),Y.Document=Z,Y.defaultOptions=Me,Y.scalarOptions=Ie}}),Nl=c({"node_modules/yaml/dist/index.js"(Y){k();var g=io(),W=is(),we=sa(),Me=Hr(),Ie=ra();ai();function nt(Mt){let Ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Yt=arguments.length>2?arguments[2]:void 0;Yt===void 0&&typeof Ht=="string"&&(Yt=Ht,Ht=!0);let en=Object.assign({},W.Document.defaults[W.defaultOptions.version],W.defaultOptions);return new we.Schema(en).createNode(Mt,Ht,Yt)}var vt=class extends W.Document{constructor(Mt){super(Object.assign({},W.defaultOptions,Mt))}};function Ut(Mt,Ht){let Yt=[],en;for(let An of g.parse(Mt)){let ye=new vt(Ht);ye.parse(An,en),Yt.push(ye),en=ye}return Yt}function lt(Mt,Ht){let Yt=g.parse(Mt),en=new vt(Ht).parse(Yt[0]);if(Yt.length>1){let An="Source contains multiple documents; please use YAML.parseAllDocuments()";en.errors.unshift(new Me.YAMLSemanticError(Yt[1],An))}return en}function At(Mt,Ht){let Yt=lt(Mt,Ht);if(Yt.warnings.forEach(en=>Ie.warn(en)),Yt.errors.length>0)throw Yt.errors[0];return Yt.toJSON()}function Pt(Mt,Ht){let Yt=new vt(Ht);return Yt.contents=Mt,String(Yt)}var $t={createNode:nt,defaultOptions:W.defaultOptions,Document:vt,parse:At,parseAllDocuments:Ut,parseCST:g.parse,parseDocument:lt,scalarOptions:W.scalarOptions,stringify:Pt};Y.YAML=$t}}),Tl=c({"node_modules/yaml/index.js"(Y,g){k(),g.exports=Nl().YAML}}),_l=c({"node_modules/yaml/dist/util.js"(Y){k();var g=ai(),W=Hr();Y.findPair=g.findPair,Y.parseMap=g.resolveMap,Y.parseSeq=g.resolveSeq,Y.stringifyNumber=g.stringifyNumber,Y.stringifyString=g.stringifyString,Y.toJSON=g.toJSON,Y.Type=W.Type,Y.YAMLError=W.YAMLError,Y.YAMLReferenceError=W.YAMLReferenceError,Y.YAMLSemanticError=W.YAMLSemanticError,Y.YAMLSyntaxError=W.YAMLSyntaxError,Y.YAMLWarning=W.YAMLWarning}}),cp=c({"node_modules/yaml/util.js"(Y){k();var g=_l();Y.findPair=g.findPair,Y.toJSON=g.toJSON,Y.parseMap=g.parseMap,Y.parseSeq=g.parseSeq,Y.stringifyNumber=g.stringifyNumber,Y.stringifyString=g.stringifyString,Y.Type=g.Type,Y.YAMLError=g.YAMLError,Y.YAMLReferenceError=g.YAMLReferenceError,Y.YAMLSemanticError=g.YAMLSemanticError,Y.YAMLSyntaxError=g.YAMLSyntaxError,Y.YAMLWarning=g.YAMLWarning}}),Ll=c({"node_modules/yaml-unist-parser/lib/yaml.js"(Y){k(),Y.__esModule=!0;var g=Tl();Y.Document=g.Document;var W=Tl();Y.parseCST=W.parseCST;var we=cp();Y.YAMLError=we.YAMLError,Y.YAMLSyntaxError=we.YAMLSyntaxError,Y.YAMLSemanticError=we.YAMLSemanticError}}),ia=c({"node_modules/yaml-unist-parser/lib/parse.js"(Y){k(),Y.__esModule=!0;var g=dl(),W=Jf(),we=hl(),Me=Yf(),Ie=Kn(),nt=gl(),vt=Ve(),Ut=wi(),lt=Oi(),At=bs(),Pt=ii(),$t=so(),Mt=Ll();function Ht(Yt){var en=Mt.parseCST(Yt);At.addOrigRange(en);for(var An=en.map(function(Vt){return new Mt.Document({merge:!1,keepCstNodes:!0}).parse(Vt)}),ye=new g.default(Yt),Z=[],I={text:Yt,locator:ye,comments:Z,transformOffset:function(Vt){return Ut.transformOffset(Vt,I)},transformRange:function(Vt){return lt.transformRange(Vt,I)},transformNode:function(Vt){return Ie.transformNode(Vt,I)},transformContent:function(Vt){return nt.transformContent(Vt,I)}},H=0,ue=An;H<ue.length;H++)for(var Ne=ue[H],Oe=0,Ee=Ne.errors;Oe<Ee.length;Oe++){var $e=Ee[Oe];if(!($e instanceof Mt.YAMLSemanticError&&$e.message==='Map keys must be unique; "<<" is repeated'))throw vt.transformError($e,I)}An.forEach(function(Vt){return Me.removeCstBlankLine(Vt.cstNode)});var Ft=we.createRoot(I.transformRange({origStart:0,origEnd:I.text.length}),An.map(I.transformNode),Z);return W.attachComments(Ft),$t.updatePositions(Ft),Pt.removeFakeNodes(Ft),Ft}Y.parse=Ht}}),fp=c({"node_modules/yaml-unist-parser/lib/index.js"(Y){k(),Y.__esModule=!0;var g=(ir(),ne(Ye));g.__exportStar(ia(),Y)}});k();var pp=me(),{hasPragma:Tn}=Se(),{locStart:kl,locEnd:dp}=_e();function hp(Y){let{parse:g}=fp();try{let W=g(Y);return delete W.comments,W}catch(W){throw W!=null&&W.position?pp(W.message,W.position):W}}var Pl={astFormat:"yaml",parse:hp,hasPragma:Tn,locStart:kl,locEnd:dp};i.exports={parsers:{yaml:Pl}}});return r()})})(Lf)),Lf.exports}var Kg=Cv(),Sv=Ev(Kg),Fv=h1({__proto__:null,default:Sv},[Kg]);function Zg(e,t){if(e.length<t.length)return!1;for(var n=0;n<t.length;n++)if(e[n]!==t[n])return!1;return!0}function kf(e,t){var n=e.length-t.length;return n>0?e.lastIndexOf(t)===n:n===0?e===t:!1}function Nv(e){return Zg(e,"(?i)")?new RegExp(e.substring(4),"i"):new RegExp(e)}function qa(e){return typeof e=="boolean"}var Js;(function(e){e[e.Undefined=0]="Undefined",e[e.EnumValueMismatch=1]="EnumValueMismatch",e[e.Deprecated=2]="Deprecated",e[e.UnexpectedEndOfComment=257]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=258]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=259]="UnexpectedEndOfNumber",e[e.InvalidUnicode=260]="InvalidUnicode",e[e.InvalidEscapeCharacter=261]="InvalidEscapeCharacter",e[e.InvalidCharacter=262]="InvalidCharacter",e[e.PropertyExpected=513]="PropertyExpected",e[e.CommaExpected=514]="CommaExpected",e[e.ColonExpected=515]="ColonExpected",e[e.ValueExpected=516]="ValueExpected",e[e.CommaOrCloseBacketExpected=517]="CommaOrCloseBacketExpected",e[e.CommaOrCloseBraceExpected=518]="CommaOrCloseBraceExpected",e[e.TrailingComma=519]="TrailingComma",e[e.DuplicateKey=520]="DuplicateKey",e[e.CommentNotPermitted=521]="CommentNotPermitted",e[e.SchemaResolveError=768]="SchemaResolveError"})(Js||(Js={}));var e0;(function(e){e.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[di.Markdown,di.PlainText],commitCharactersSupport:!0}}}}})(e0||(e0={}));var Tv=(e,t,...n)=>n.length===0?t:t.replace(/{(\d+)}/g,(r,[s])=>s in n?String(n[s]):r);function Ua(){return Tv}var zi=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,s){r.__proto__=s}||function(r,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(r[i]=s[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),jo=Ua();jo("colorHexFormatWarning","Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA."),jo("dateTimeFormatWarning","String is not a RFC3339 date-time."),jo("dateFormatWarning","String is not a RFC3339 date."),jo("timeFormatWarning","String is not a RFC3339 time."),jo("emailFormatWarning","String is not an e-mail address.");var Xi=(function(){function e(t,n,r){r===void 0&&(r=0),this.offset=n,this.length=r,this.parent=t}return Object.defineProperty(e.prototype,"children",{get:function(){return[]},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return"type: "+this.type+" ("+this.offset+"/"+this.length+")"+(this.parent?" parent: {"+this.parent.toString()+"}":"")},e})();(function(e){zi(t,e);function t(n,r){var s=e.call(this,n,r)||this;return s.type="null",s.value=null,s}return t})(Xi),(function(e){zi(t,e);function t(n,r,s){var i=e.call(this,n,s)||this;return i.type="boolean",i.value=r,i}return t})(Xi),(function(e){zi(t,e);function t(n,r){var s=e.call(this,n,r)||this;return s.type="array",s.items=[],s}return Object.defineProperty(t.prototype,"children",{get:function(){return this.items},enumerable:!1,configurable:!0}),t})(Xi),(function(e){zi(t,e);function t(n,r){var s=e.call(this,n,r)||this;return s.type="number",s.isInteger=!0,s.value=Number.NaN,s}return t})(Xi),(function(e){zi(t,e);function t(n,r,s){var i=e.call(this,n,r,s)||this;return i.type="string",i.value="",i}return t})(Xi),(function(e){zi(t,e);function t(n,r,s){var i=e.call(this,n,r)||this;return i.type="property",i.colonOffset=-1,i.keyNode=s,i}return Object.defineProperty(t.prototype,"children",{get:function(){return this.valueNode?[this.keyNode,this.valueNode]:[this.keyNode]},enumerable:!1,configurable:!0}),t})(Xi),(function(e){zi(t,e);function t(n,r){var s=e.call(this,n,r)||this;return s.type="object",s.properties=[],s}return Object.defineProperty(t.prototype,"children",{get:function(){return this.properties},enumerable:!1,configurable:!0}),t})(Xi);function _v(e){return qa(e)?e?{}:{not:{}}:e}var t0;(function(e){e[e.Key=0]="Key",e[e.Enum=1]="Enum"})(t0||(t0={})),(function(){function e(){}return Object.defineProperty(e.prototype,"schemas",{get:function(){return[]},enumerable:!1,configurable:!0}),e.prototype.add=function(t){},e.prototype.merge=function(t){},e.prototype.include=function(t){return!0},e.prototype.newSub=function(){return this},e.instance=new e,e})();function Ju(e){return lb(e)}function Lv(e,t){if(typeof e!="string")throw new TypeError("Expected a string");for(var n=String(e),r="",s=!!t,i=!!t,a=!1,o=t&&typeof t.flags=="string"?t.flags:"",u,l=0,b=n.length;l<b;l++)switch(u=n[l],u){case"/":case"$":case"^":case"+":case".":case"(":case")":case"=":case"!":case"|":r+="\\"+u;break;case"?":if(s){r+=".";break}case"[":case"]":if(s){r+=u;break}case"{":if(s){a=!0,r+="(";break}case"}":if(s){a=!1,r+=")";break}case",":if(a){r+="|";break}r+="\\"+u;break;case"*":for(var c=n[l-1],T=1;n[l+1]==="*";)T++,l++;var K=n[l+1];if(!i)r+=".*";else{var ne=T>1&&(c==="/"||c===void 0||c==="{"||c===",")&&(K==="/"||K===void 0||K===","||K==="}");ne?(K==="/"?l++:c==="/"&&r.endsWith("\\/")&&(r=r.substr(0,r.length-2)),r+="((?:[^/]*(?:/|$))*)"):r+="([^/]*)"}break;default:r+=u}return(!o||!~o.indexOf("g"))&&(r="^"+r+"$"),new RegExp(r,o)}var ki=Ua(),kv="!",Pv="/",Bv=(function(){function e(t,n){this.globWrappers=[];try{for(var r=0,s=t;r<s.length;r++){var i=s[r],a=i[0]!==kv;a||(i=i.substring(1)),i.length>0&&(i[0]===Pv&&(i=i.substring(1)),this.globWrappers.push({regexp:Lv("**/"+i,{extended:!0,globstar:!0}),include:a}))}this.uris=n}catch{this.globWrappers.length=0,this.uris=[]}}return e.prototype.matchesPattern=function(t){for(var n=!1,r=0,s=this.globWrappers;r<s.length;r++){var i=s[r],a=i.regexp,o=i.include;a.test(t)&&(n=o)}return n},e.prototype.getURIs=function(){return this.uris},e})(),Mv=(function(){function e(t,n,r){this.service=t,this.url=n,this.dependencies={},r&&(this.unresolvedSchema=this.service.promise.resolve(new Ys(r)))}return e.prototype.getUnresolvedSchema=function(){return this.unresolvedSchema||(this.unresolvedSchema=this.service.loadSchema(this.url)),this.unresolvedSchema},e.prototype.getResolvedSchema=function(){var t=this;return this.resolvedSchema||(this.resolvedSchema=this.getUnresolvedSchema().then(function(n){return t.service.resolveSchemaContent(n,t.url,t.dependencies)})),this.resolvedSchema},e.prototype.clearSchema=function(){this.resolvedSchema=void 0,this.unresolvedSchema=void 0,this.dependencies={}},e})(),Ys=(function(){function e(t,n){n===void 0&&(n=[]),this.schema=t,this.errors=n}return e})(),$o=(function(){function e(t,n){n===void 0&&(n=[]),this.schema=t,this.errors=n}return e.prototype.getSection=function(t){var n=this.getSectionRecursive(t,this.schema);if(n)return _v(n)},e.prototype.getSectionRecursive=function(t,n){if(!n||typeof n=="boolean"||t.length===0)return n;var r=t.shift();if(n.properties&&typeof n.properties[r])return this.getSectionRecursive(t,n.properties[r]);if(n.patternProperties)for(var s=0,i=Object.keys(n.patternProperties);s<i.length;s++){var a=i[s],o=Nv(a);if(o.test(r))return this.getSectionRecursive(t,n.patternProperties[a])}else{if(typeof n.additionalProperties=="object")return this.getSectionRecursive(t,n.additionalProperties);if(r.match("[0-9]+")){if(Array.isArray(n.items)){var u=parseInt(r,10);if(!isNaN(u)&&n.items[u])return this.getSectionRecursive(t,n.items[u])}else if(n.items)return this.getSectionRecursive(t,n.items)}}},e})(),Iv=(function(){function e(t,n,r){this.contextService=n,this.requestService=t,this.promiseConstructor=r||Promise,this.callOnDispose=[],this.contributionSchemas={},this.contributionAssociations=[],this.schemasById={},this.filePatternAssociations=[],this.registeredSchemasIds={}}return e.prototype.getRegisteredSchemaIds=function(t){return Object.keys(this.registeredSchemasIds).filter(function(n){var r=xs.parse(n).scheme;return r!=="schemaservice"&&(!t||t(r))})},Object.defineProperty(e.prototype,"promise",{get:function(){return this.promiseConstructor},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){for(;this.callOnDispose.length>0;)this.callOnDispose.pop()()},e.prototype.onResourceChange=function(t){var n=this;this.cachedSchemaForResource=void 0;var r=!1;t=Pi(t);for(var s=[t],i=Object.keys(this.schemasById).map(function(l){return n.schemasById[l]});s.length;)for(var a=s.pop(),o=0;o<i.length;o++){var u=i[o];u&&(u.url===a||u.dependencies[a])&&(u.url!==a&&s.push(u.url),u.clearSchema(),i[o]=void 0,r=!0)}return r},e.prototype.setSchemaContributions=function(t){if(t.schemas){var n=t.schemas;for(var r in n){var s=Pi(r);this.contributionSchemas[s]=this.addSchemaHandle(s,n[r])}}if(Array.isArray(t.schemaAssociations))for(var i=t.schemaAssociations,a=0,o=i;a<o.length;a++){var u=o[a],l=u.uris.map(Pi),b=this.addFilePatternAssociation(u.pattern,l);this.contributionAssociations.push(b)}},e.prototype.addSchemaHandle=function(t,n){var r=new Mv(this,t,n);return this.schemasById[t]=r,r},e.prototype.getOrAddSchemaHandle=function(t,n){return this.schemasById[t]||this.addSchemaHandle(t,n)},e.prototype.addFilePatternAssociation=function(t,n){var r=new Bv(t,n);return this.filePatternAssociations.push(r),r},e.prototype.registerExternalSchema=function(t,n,r){var s=Pi(t);return this.registeredSchemasIds[s]=!0,this.cachedSchemaForResource=void 0,n&&this.addFilePatternAssociation(n,[t]),r?this.addSchemaHandle(s,r):this.getOrAddSchemaHandle(s)},e.prototype.clearExternalSchemas=function(){this.schemasById={},this.filePatternAssociations=[],this.registeredSchemasIds={},this.cachedSchemaForResource=void 0;for(var t in this.contributionSchemas)this.schemasById[t]=this.contributionSchemas[t],this.registeredSchemasIds[t]=!0;for(var n=0,r=this.contributionAssociations;n<r.length;n++){var s=r[n];this.filePatternAssociations.push(s)}},e.prototype.getResolvedSchema=function(t){var n=Pi(t),r=this.schemasById[n];return r?r.getResolvedSchema():this.promise.resolve(void 0)},e.prototype.loadSchema=function(t){if(!this.requestService){var n=ki("json.schema.norequestservice","Unable to load schema from '{0}'. No schema request service available",Yu(t));return this.promise.resolve(new Ys({},[n]))}return this.requestService(t).then(function(r){if(!r){var s=ki("json.schema.nocontent","Unable to load schema from '{0}': No content.",Yu(t));return new Ys({},[s])}var i={},a=[];i=ub(r,a);var o=a.length?[ki("json.schema.invalidFormat","Unable to parse content from '{0}': Parse error at offset {1}.",Yu(t),a[0].offset)]:[];return new Ys(i,o)},function(r){var s=r.toString(),i=r.toString().split("Error: ");return i.length>1&&(s=i[1]),kf(s,".")&&(s=s.substr(0,s.length-1)),new Ys({},[ki("json.schema.nocontent","Unable to load schema from '{0}': {1}.",Yu(t),s)])})},e.prototype.resolveSchemaContent=function(t,n,r){var s=this,i=t.errors.slice(0),a=t.schema;if(a.$schema){var o=Pi(a.$schema);if(o==="http://json-schema.org/draft-03/schema")return this.promise.resolve(new $o({},[ki("json.schema.draft03.notsupported","Draft-03 schemas are not supported.")]));o==="https://json-schema.org/draft/2019-09/schema"&&i.push(ki("json.schema.draft201909.notsupported","Draft 2019-09 schemas are not yet fully supported."))}var u=this.contextService,l=function(K,ne){if(!ne)return K;var O=K;return ne[0]==="/"&&(ne=ne.substr(1)),ne.split("/").some(function(k){return k=k.replace(/~1/g,"/").replace(/~0/g,"~"),O=O[k],!O}),O},b=function(K,ne,O,k){var me=k?decodeURIComponent(k):void 0,Se=l(ne,me);if(Se)for(var _e in Se)Se.hasOwnProperty(_e)&&!K.hasOwnProperty(_e)&&(K[_e]=Se[_e]);else i.push(ki("json.schema.invalidref","$ref '{0}' in '{1}' can not be resolved.",me,O))},c=function(K,ne,O,k,me){u&&!/^[A-Za-z][A-Za-z0-9+\-.+]*:\/\/.*/.test(ne)&&(ne=u.resolveRelativePath(ne,k)),ne=Pi(ne);var Se=s.getOrAddSchemaHandle(ne);return Se.getUnresolvedSchema().then(function(_e){if(me[ne]=!0,_e.errors.length){var Ye=O?ne+"#"+O:ne;i.push(ki("json.schema.problemloadingref","Problems loading reference '{0}': {1}",Ye,_e.errors[0]))}return b(K,_e.schema,ne,O),T(K,_e.schema,ne,Se.dependencies)})},T=function(K,ne,O,k){if(!K||typeof K!="object")return Promise.resolve(null);for(var me=[K],Se=[],_e=[],Ye=function(){for(var xe=[],Je=0;Je<arguments.length;Je++)xe[Je]=arguments[Je];for(var ze=0,de=xe;ze<de.length;ze++){var Ze=de[ze];typeof Ze=="object"&&me.push(Ze)}},ve=function(){for(var xe=[],Je=0;Je<arguments.length;Je++)xe[Je]=arguments[Je];for(var ze=0,de=xe;ze<de.length;ze++){var Ze=de[ze];if(typeof Ze=="object")for(var at in Ze){var He=at,ft=Ze[He];typeof ft=="object"&&me.push(ft)}}},Pe=function(){for(var xe=[],Je=0;Je<arguments.length;Je++)xe[Je]=arguments[Je];for(var ze=0,de=xe;ze<de.length;ze++){var Ze=de[ze];if(Array.isArray(Ze))for(var at=0,He=Ze;at<He.length;at++){var ft=He[at];typeof ft=="object"&&me.push(ft)}}},Fe=function(xe){for(var Je=[];xe.$ref;){var ze=xe.$ref,de=ze.split("#",2);if(delete xe.$ref,de[0].length>0){_e.push(c(xe,de[0],de[1],O,k));return}else Je.indexOf(ze)===-1&&(b(xe,ne,O,de[1]),Je.push(ze))}Ye(xe.items,xe.additionalItems,xe.additionalProperties,xe.not,xe.contains,xe.propertyNames,xe.if,xe.then,xe.else),ve(xe.definitions,xe.properties,xe.patternProperties,xe.dependencies),Pe(xe.anyOf,xe.allOf,xe.oneOf,xe.items)};me.length;){var Be=me.pop();Se.indexOf(Be)>=0||(Se.push(Be),Fe(Be))}return s.promise.all(_e)};return T(a,a,n,r).then(function(K){return new $o(a,i)})},e.prototype.getSchemaForResource=function(t,n){if(n&&n.root&&n.root.type==="object"){var r=n.root.properties.filter(function(me){return me.keyNode.value==="$schema"&&me.valueNode&&me.valueNode.type==="string"});if(r.length>0){var s=r[0].valueNode;if(s&&s.type==="string"){var i=Ju(s);if(i&&Zg(i,".")&&this.contextService&&(i=this.contextService.resolveRelativePath(i,t)),i){var a=Pi(i);return this.getOrAddSchemaHandle(a).getResolvedSchema()}}}}if(this.cachedSchemaForResource&&this.cachedSchemaForResource.resource===t)return this.cachedSchemaForResource.resolvedSchema;for(var o=Object.create(null),u=[],l=Rv(t),b=0,c=this.filePatternAssociations;b<c.length;b++){var T=c[b];if(T.matchesPattern(l))for(var K=0,ne=T.getURIs();K<ne.length;K++){var O=ne[K];o[O]||(u.push(O),o[O]=!0)}}var k=u.length>0?this.createCombinedSchema(t,u).getResolvedSchema():this.promise.resolve(void 0);return this.cachedSchemaForResource={resource:t,resolvedSchema:k},k},e.prototype.createCombinedSchema=function(t,n){if(n.length===1)return this.getOrAddSchemaHandle(n[0]);var r="schemaservice://combinedSchema/"+encodeURIComponent(t),s={allOf:n.map(function(i){return{$ref:i}})};return this.addSchemaHandle(r,s)},e.prototype.getMatchingSchemas=function(t,n,r){if(r){var s=r.id||"schemaservice://untitled/matchingSchemas/"+Ov++;return this.resolveSchemaContent(new Ys(r),s,{}).then(function(i){return n.getMatchingSchemas(i.schema).filter(function(a){return!a.inverted})})}return this.getSchemaForResource(t.uri,n).then(function(i){return i?n.getMatchingSchemas(i.schema).filter(function(a){return!a.inverted}):[]})},e})(),Ov=0;function Pi(e){try{return xs.parse(e).toString()}catch{return e}}function Rv(e){try{return xs.parse(e).with({fragment:null,query:null}).toString()}catch{return e}}function Yu(e){try{var t=xs.parse(e);if(t.scheme==="file")return t.fsPath}catch{}return e}function jv(e){return e.replace(/[-\\{}+?|^$.,[\]()#\s]/g,"\\$&").replace(/[*]/g,".*")}function $v(e,t){if(e.length<t)return 0;for(let n=0;n<t;n++){const r=e.charCodeAt(n);if(r!==32&&r!==9)return n}return t}function n0(e){try{return new RegExp(e,"u")}catch{return new RegExp(e)}}function Vv(e,t){t++;for(let n=t;n<e.length;n++){const r=e.charAt(n);if(r===" "||r===" ")t++;else return t}return t}function Vo(e,t){if(e===t)return!0;if(e==null||t===null||t===void 0||typeof e!=typeof t||typeof e!="object"||Array.isArray(e)!==Array.isArray(t))return!1;let n,r;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(!Vo(e[n],t[n]))return!1}else{const s=[];for(r in e)s.push(r);s.sort();const i=[];for(r in t)i.push(r);if(i.sort(),!Vo(s,i))return!1;for(n=0;n<s.length;n++)if(!Vo(e[s[n]],t[s[n]]))return!1}return!0}function Rs(e){return typeof e=="number"}function Qi(e){return typeof e<"u"}function Wa(e){return typeof e=="boolean"}function Ga(e){return typeof e=="string"}function qv(e){return Symbol.iterator in Object(e)}function yi(e){var t;return e?e instanceof Error&&(t=e.stack)!=null?t:e.toString():"null"}function Pf(e){const t=e.type&&e.closestTitle;return e.title?e.title:e.$id?r0(e.$id):e.$ref||e._$ref?r0(e.$ref||e._$ref):Array.isArray(e.type)?e.type.join(" | "):t?e.type.concat("(",e.closestTitle,")"):e.type||e.closestTitle}function r0(e){const t=e.match(/^(?:.*\/)?(.*?)(?:\.schema\.json)?$/);let n=!!t&&t[1];return n||(n="typeNotFound",console.error(`$ref (${e}) not parsed properly`)),n}function s0(e,t){const n=xs.parse(t);let r=Hi.basename(n.fsPath);return Hi.extname(n.fsPath)||(r+=".json"),Object.getOwnPropertyDescriptor(e,"name")?Object.getOwnPropertyDescriptor(e,"name").value+` (${r})`:e.title?e.description?e.title+" - "+e.description+` (${r})`:e.title+` (${r})`:r}function Uv(e){return e.type!=="object"&&!Bf(e)}function Bf(e){return!!(e.anyOf||e.allOf||e.oneOf)}var Wv=Ua(),Gv=(function(){function e(t,n){this.jsonSchemaService=t,this.promise=n,this.validationEnabled=!0}return e.prototype.configure=function(t){t&&(this.validationEnabled=t.validate!==!1,this.commentSeverity=t.allowComments?void 0:tr.Error)},e.prototype.doValidation=function(t,n,r,s){var i=this;if(!this.validationEnabled)return this.promise.resolve([]);var a=[],o={},u=function(c){var T=c.range.start.line+" "+c.range.start.character+" "+c.message;o[T]||(o[T]=!0,a.push(c))},l=function(c){var T=r?.trailingCommas?Hu(r.trailingCommas):tr.Error,K=r?.comments?Hu(r.comments):i.commentSeverity,ne=r?.schemaValidation?Hu(r.schemaValidation):tr.Warning,O=r?.schemaRequest?Hu(r.schemaRequest):tr.Warning;if(c){if(c.errors.length&&n.root&&O){var k=n.root,me=k.type==="object"?k.properties[0]:void 0;if(me&&me.keyNode.value==="$schema"){var Se=me.valueNode||me,_e=Vn.create(t.positionAt(Se.offset),t.positionAt(Se.offset+Se.length));u(Cs.create(_e,c.errors[0],O,Js.SchemaResolveError))}else{var _e=Vn.create(t.positionAt(k.offset),t.positionAt(k.offset+1));u(Cs.create(_e,c.errors[0],O,Js.SchemaResolveError))}}else if(ne){var Ye=n.validate(t,c.schema,ne);Ye&&Ye.forEach(u)}i0(c.schema)&&(K=void 0),a0(c.schema)&&(T=void 0)}for(var ve=0,Pe=n.syntaxErrors;ve<Pe.length;ve++){var Fe=Pe[ve];if(Fe.code===Js.TrailingComma){if(typeof T!="number")continue;Fe.severity=T}u(Fe)}if(typeof K=="number"){var Be=Wv("InvalidCommentToken","Comments are not permitted in JSON.");n.comments.forEach(function(xe){u(Cs.create(xe,Be,K,Js.CommentNotPermitted))})}return a};if(s){var b=s.id||"schemaservice://untitled/"+Jv++;return this.jsonSchemaService.resolveSchemaContent(new Ys(s),b,{}).then(function(c){return l(c)})}return this.jsonSchemaService.getSchemaForResource(t.uri,n).then(function(c){return l(c)})},e})(),Jv=0;function i0(e){if(e&&typeof e=="object"){if(qa(e.allowComments))return e.allowComments;if(e.allOf)for(var t=0,n=e.allOf;t<n.length;t++){var r=n[t],s=i0(r);if(qa(s))return s}}}function a0(e){if(e&&typeof e=="object"){if(qa(e.allowTrailingCommas))return e.allowTrailingCommas;var t=e;if(qa(t.allowsTrailingCommas))return t.allowsTrailingCommas;if(e.allOf)for(var n=0,r=e.allOf;n<r.length;n++){var s=r[n],i=a0(s);if(qa(i))return i}}}function Hu(e){switch(e){case"error":return tr.Error;case"warning":return tr.Warning;case"ignore":return}}var o0=48,Yv=57,Hv=65,zu=97,zv=102;function qr(e){return e<o0?0:e<=Yv?e-o0:(e<zu&&(e+=zu-Hv),e>=zu&&e<=zv?e-zu+10:0)}function Xv(e){if(e[0]==="#")switch(e.length){case 4:return{red:qr(e.charCodeAt(1))*17/255,green:qr(e.charCodeAt(2))*17/255,blue:qr(e.charCodeAt(3))*17/255,alpha:1};case 5:return{red:qr(e.charCodeAt(1))*17/255,green:qr(e.charCodeAt(2))*17/255,blue:qr(e.charCodeAt(3))*17/255,alpha:qr(e.charCodeAt(4))*17/255};case 7:return{red:(qr(e.charCodeAt(1))*16+qr(e.charCodeAt(2)))/255,green:(qr(e.charCodeAt(3))*16+qr(e.charCodeAt(4)))/255,blue:(qr(e.charCodeAt(5))*16+qr(e.charCodeAt(6)))/255,alpha:1};case 9:return{red:(qr(e.charCodeAt(1))*16+qr(e.charCodeAt(2)))/255,green:(qr(e.charCodeAt(3))*16+qr(e.charCodeAt(4)))/255,blue:(qr(e.charCodeAt(5))*16+qr(e.charCodeAt(6)))/255,alpha:(qr(e.charCodeAt(7))*16+qr(e.charCodeAt(8)))/255}}}var Qv=(function(){function e(t){this.schemaService=t}return e.prototype.findDocumentSymbols=function(t,n,r){var s=this;r===void 0&&(r={resultLimit:Number.MAX_VALUE});var i=n.root;if(!i)return[];var a=r.resultLimit||Number.MAX_VALUE,o=t.uri;if((o==="vscode://defaultsettings/keybindings.json"||kf(o.toLowerCase(),"/user/keybindings.json"))&&i.type==="array"){for(var u=[],l=0,b=i.items;l<b.length;l++){var c=b[l];if(c.type==="object")for(var T=0,K=c.properties;T<K.length;T++){var ne=K[T];if(ne.keyNode.value==="key"&&ne.valueNode){var O=Fa.create(t.uri,Bi(t,c));if(u.push({name:Ju(ne.valueNode),kind:ni.Function,location:O}),a--,a<=0)return r&&r.onResultLimitExceeded&&r.onResultLimitExceeded(o),u}}}return u}for(var k=[{node:i,containerName:""}],me=0,Se=!1,_e=[],Ye=function(Pe,Fe){Pe.type==="array"?Pe.items.forEach(function(Be){Be&&k.push({node:Be,containerName:Fe})}):Pe.type==="object"&&Pe.properties.forEach(function(Be){var xe=Be.valueNode;if(xe)if(a>0){a--;var Je=Fa.create(t.uri,Bi(t,Be)),ze=Fe?Fe+"."+Be.keyNode.value:Be.keyNode.value;_e.push({name:s.getKeyLabel(Be),kind:s.getSymbolKind(xe.type),location:Je,containerName:Fe}),k.push({node:xe,containerName:ze})}else Se=!0})};me<k.length;){var ve=k[me++];Ye(ve.node,ve.containerName)}return Se&&r&&r.onResultLimitExceeded&&r.onResultLimitExceeded(o),_e},e.prototype.findDocumentSymbols2=function(t,n,r){var s=this;r===void 0&&(r={resultLimit:Number.MAX_VALUE});var i=n.root;if(!i)return[];var a=r.resultLimit||Number.MAX_VALUE,o=t.uri;if((o==="vscode://defaultsettings/keybindings.json"||kf(o.toLowerCase(),"/user/keybindings.json"))&&i.type==="array"){for(var u=[],l=0,b=i.items;l<b.length;l++){var c=b[l];if(c.type==="object")for(var T=0,K=c.properties;T<K.length;T++){var ne=K[T];if(ne.keyNode.value==="key"&&ne.valueNode){var O=Bi(t,c),k=Bi(t,ne.keyNode);if(u.push({name:Ju(ne.valueNode),kind:ni.Function,range:O,selectionRange:k}),a--,a<=0)return r&&r.onResultLimitExceeded&&r.onResultLimitExceeded(o),u}}}return u}for(var me=[],Se=[{node:i,result:me}],_e=0,Ye=!1,ve=function(Fe,Be){Fe.type==="array"?Fe.items.forEach(function(xe,Je){if(xe)if(a>0){a--;var ze=Bi(t,xe),de=ze,Ze=String(Je),at={name:Ze,kind:s.getSymbolKind(xe.type),range:ze,selectionRange:de,children:[]};Be.push(at),Se.push({result:at.children,node:xe})}else Ye=!0}):Fe.type==="object"&&Fe.properties.forEach(function(xe){var Je=xe.valueNode;if(Je)if(a>0){a--;var ze=Bi(t,xe),de=Bi(t,xe.keyNode),Ze=[],at={name:s.getKeyLabel(xe),kind:s.getSymbolKind(Je.type),range:ze,selectionRange:de,children:Ze,detail:s.getDetail(Je)};Be.push(at),Se.push({result:Ze,node:Je})}else Ye=!0})};_e<Se.length;){var Pe=Se[_e++];ve(Pe.node,Pe.result)}return Ye&&r&&r.onResultLimitExceeded&&r.onResultLimitExceeded(o),me},e.prototype.getSymbolKind=function(t){switch(t){case"object":return ni.Module;case"string":return ni.String;case"number":return ni.Number;case"array":return ni.Array;case"boolean":return ni.Boolean;default:return ni.Variable}},e.prototype.getKeyLabel=function(t){var n=t.keyNode.value;return n&&(n=n.replace(/[\n]/g,"↵")),n&&n.trim()?n:'"'+n+'"'},e.prototype.getDetail=function(t){if(t){if(t.type==="boolean"||t.type==="number"||t.type==="null"||t.type==="string")return String(t.value);if(t.type==="array")return t.children.length?void 0:"[]";if(t.type==="object")return t.children.length?void 0:"{}"}},e.prototype.findDocumentColors=function(t,n,r){return this.schemaService.getSchemaForResource(t.uri,n).then(function(s){var i=[];if(s)for(var a=r&&typeof r.resultLimit=="number"?r.resultLimit:Number.MAX_VALUE,o=n.getMatchingSchemas(s.schema),u={},l=0,b=o;l<b.length;l++){var c=b[l];if(!c.inverted&&c.schema&&(c.schema.format==="color"||c.schema.format==="color-hex")&&c.node&&c.node.type==="string"){var T=String(c.node.offset);if(!u[T]){var K=Xv(Ju(c.node));if(K){var ne=Bi(t,c.node);i.push({color:K,range:ne})}if(u[T]=!0,a--,a<=0)return r&&r.onResultLimitExceeded&&r.onResultLimitExceeded(t.uri),i}}}return i})},e.prototype.getColorPresentations=function(t,n,r,s){var i=[],a=Math.round(r.red*255),o=Math.round(r.green*255),u=Math.round(r.blue*255);function l(c){var T=c.toString(16);return T.length!==2?"0"+T:T}var b;return r.alpha===1?b="#"+l(a)+l(o)+l(u):b="#"+l(a)+l(o)+l(u)+l(Math.round(r.alpha*255)),i.push({label:b,textEdit:Ir.replace(s,JSON.stringify(b))}),i},e})();function Bi(e,t){return Vn.create(e.positionAt(t.offset),e.positionAt(t.offset+t.length))}function Kv(e,t){var n=[];return t.visit(function(r){var s;if(r.type==="property"&&r.keyNode.value==="$ref"&&((s=r.valueNode)===null||s===void 0?void 0:s.type)==="string"){var i=r.valueNode.value,a=e2(t,i);if(a){var o=e.positionAt(a.offset);n.push({target:e.uri+"#"+(o.line+1)+","+(o.character+1),range:Zv(e,r.valueNode)})}}return!0}),Promise.resolve(n)}function Zv(e,t){return Vn.create(e.positionAt(t.offset+1),e.positionAt(t.offset+t.length-1))}function e2(e,t){var n=t2(t);return n?Mf(n,e.root):null}function Mf(e,t){if(!t)return null;if(e.length===0)return t;var n=e.shift();if(t&&t.type==="object"){var r=t.properties.find(function(a){return a.keyNode.value===n});return r?Mf(e,r.valueNode):null}else if(t&&t.type==="array"&&n.match(/^(0|[1-9][0-9]*)$/)){var s=Number.parseInt(n),i=t.items[s];return i?Mf(e,i):null}return null}function t2(e){return e==="#"?[]:e[0]!=="#"||e[1]!=="/"?null:e.substring(2).split(/\//).map(n2)}function n2(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function Xu(e,t){for(const n of t.documents)if(n.internalDocument&&n.internalDocument.range[0]<=e&&n.internalDocument.range[2]>=e)return n;return t.documents.length===1?t.documents[0]:null}function u0(e){const t=["mapping","scalar","sequence"];return e?e.filter(n=>{if(typeof n=="string"){const r=n.split(" "),s=r[1]&&r[1].toLowerCase()||"scalar";return s==="map"?!1:t.indexOf(s)!==-1}return!1}):[]}function l0(e,t){if(!t||!e||t.length!==e.length)return!1;for(let n=e.length-1;n>=0;n--)if(e[n]!==t[n])return!1;return!0}var or=Ua(),If="Property {0} is not allowed.",r2={"color-hex":{errorMessage:or("colorHexFormatWarning","Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA."),pattern:/^#([0-9A-Fa-f]{3,4}|([0-9A-Fa-f]{2}){3,4})$/},"date-time":{errorMessage:or("dateTimeFormatWarning","String is not a RFC3339 date-time."),pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},date:{errorMessage:or("dateFormatWarning","String is not a RFC3339 date."),pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/i},time:{errorMessage:or("timeFormatWarning","String is not a RFC3339 time."),pattern:/^([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},email:{errorMessage:or("emailFormatWarning","String is not an e-mail address."),pattern:/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/},ipv4:{errorMessage:or("ipv4FormatWarning","String does not match IPv4 format."),pattern:/^((25[0-5]|(2[0-4]|1\d|[1-9]|)\d)\.?\b){4}$/},ipv6:{errorMessage:or("ipv6FormatWarning","String does not match IPv6 format."),pattern:/^([0-9a-f]|:){1,4}(:([0-9a-f]{0,4})*){1,7}$/i}},Qu="YAML",c0="yaml-schema: ",cs;(function(e){e.missingRequiredPropWarning="missingRequiredPropWarning",e.typeMismatchWarning="typeMismatchWarning",e.constWarning="constWarning"})(cs||(cs={}));var s2={[cs.missingRequiredPropWarning]:'Missing property "{0}".',[cs.typeMismatchWarning]:'Incorrect type. Expected "{0}".',[cs.constWarning]:"Value must be {0}."},Ki=class{constructor(e,t,n,r){this.offset=n,this.length=r,this.parent=e,this.internalNode=t}getNodeFromOffsetEndInclusive(e){const t=[],n=a=>{if(e>=a.offset&&e<=a.offset+a.length){const o=a.children;for(let u=0;u<o.length&&o[u].offset<=e;u++){const l=n(o[u]);l&&t.push(l)}return a}return null},r=n(this);let s=Number.MAX_VALUE,i=null;for(const a of t){const o=a.length+a.offset-e+(e-a.offset);o<s&&(i=a,s=o)}return i||r}get children(){return[]}toString(){return"type: "+this.type+" ("+this.offset+"/"+this.length+")"+(this.parent?" parent: {"+this.parent.toString()+"}":"")}},i2=class extends Ki{constructor(e,t,n,r){super(e,t,n,r),this.type="null",this.value=null}},a2=class extends Ki{constructor(e,t,n,r,s){super(e,t,r,s),this.type="boolean",this.value=n}},o2=class extends Ki{constructor(e,t,n,r){super(e,t,n,r),this.type="array",this.items=[]}get children(){return this.items}},u2=class extends Ki{constructor(e,t,n,r){super(e,t,n,r),this.type="number",this.isInteger=!0,this.value=Number.NaN}},Ku=class extends Ki{constructor(e,t,n,r){super(e,t,n,r),this.type="string",this.value=""}},l2=class extends Ki{constructor(e,t,n,r){super(e,t,n,r),this.type="property",this.colonOffset=-1}get children(){return this.valueNode?[this.keyNode,this.valueNode]:[this.keyNode]}},c2=class extends Ki{constructor(e,t,n,r){super(e,t,n,r),this.type="object",this.properties=[]}get children(){return this.properties}};function fs(e){if(e!==void 0)return Wa(e)?e?{}:{not:{}}:(typeof e!="object"&&(console.warn(`Wrong schema: ${JSON.stringify(e)}, it MUST be an Object or Boolean`),e={type:e}),e)}var f0;(function(e){e[e.Key=0]="Key",e[e.Enum=1]="Enum"})(f0||(f0={}));var f2=class p1{constructor(t=-1,n=null){this.focusOffset=t,this.exclude=n,this.schemas=[]}add(t){this.schemas.push(t)}merge(t){this.schemas.push(...t.schemas)}include(t){return(this.focusOffset===-1||p0(t,this.focusOffset))&&t!==this.exclude}newSub(){return new p1(-1,this.exclude)}},qo=class{constructor(){}get schemas(){return[]}add(e){}merge(e){}include(e){return!0}newSub(){return this}};qo.instance=new qo;var ys=class{constructor(e){this.problems=[],this.propertiesMatches=0,this.propertiesValueMatches=0,this.primaryValueMatches=0,this.enumValueMatch=!1,e?this.enumValues=[]:this.enumValues=null}hasProblems(){return!!this.problems.length}mergeAll(e){for(const t of e)this.merge(t)}merge(e){this.problems=this.problems.concat(e.problems)}mergeEnumValues(e){if(!this.enumValueMatch&&!e.enumValueMatch&&this.enumValues&&e.enumValues){this.enumValues=this.enumValues.concat(e.enumValues);for(const t of this.problems)t.code===Js.EnumValueMismatch&&(t.message=or("enumWarning","Value is not accepted. Valid values: {0}.",[...new Set(this.enumValues)].map(n=>JSON.stringify(n)).join(", ")))}}mergeWarningGeneric(e,t){var n,r,s;if((n=this.problems)!=null&&n.length)for(const i of t){const a=this.problems.filter(o=>o.problemType===i);for(const o of a){const u=(r=e.problems)==null?void 0:r.find(l=>l.problemType===i&&o.location.offset===l.location.offset&&(i!==cs.missingRequiredPropWarning||l0(l.problemArgs,o.problemArgs)));u&&((s=u.problemArgs)!=null&&s.length&&(u.problemArgs.filter(l=>!o.problemArgs.includes(l)).forEach(l=>o.problemArgs.push(l)),o.message=Zu(o.problemType,o.problemArgs)),this.mergeSources(u,o))}}}mergePropertyMatch(e){this.merge(e),this.propertiesMatches++,(e.enumValueMatch||!e.hasProblems()&&e.propertiesMatches)&&this.propertiesValueMatches++,e.enumValueMatch&&e.enumValues&&this.primaryValueMatches++}mergeSources(e,t){const n=e.source.replace(c0,"");t.source.includes(n)||(t.source=t.source+" | "+n),t.schemaUri.includes(e.schemaUri[0])||(t.schemaUri=t.schemaUri.concat(e.schemaUri))}compareGeneric(e){const t=this.hasProblems();return t!==e.hasProblems()?t?-1:1:this.enumValueMatch!==e.enumValueMatch?e.enumValueMatch?-1:1:this.propertiesValueMatches!==e.propertiesValueMatches?this.propertiesValueMatches-e.propertiesValueMatches:this.primaryValueMatches!==e.primaryValueMatches?this.primaryValueMatches-e.primaryValueMatches:this.propertiesMatches-e.propertiesMatches}compareKubernetes(e){const t=this.hasProblems();return this.propertiesMatches!==e.propertiesMatches?this.propertiesMatches-e.propertiesMatches:this.enumValueMatch!==e.enumValueMatch?e.enumValueMatch?-1:1:this.primaryValueMatches!==e.primaryValueMatches?this.primaryValueMatches-e.primaryValueMatches:this.propertiesValueMatches!==e.propertiesValueMatches?this.propertiesValueMatches-e.propertiesValueMatches:t!==e.hasProblems()?t?-1:1:this.propertiesMatches-e.propertiesMatches}};function Uo(e){switch(e.type){case"array":return e.children.map(Uo);case"object":{const t=Object.create(null);for(let n=0,r=e.children;n<r.length;n++){const s=r[n],i=s.children[1];i&&(t[s.children[0].value]=Uo(i))}return t}case"null":case"string":case"number":case"boolean":return e.value;default:return}}function p0(e,t,n=!1){return t>=e.offset&&t<=e.offset+e.length||n&&t===e.offset+e.length}function d0(e,t,n){if(n===void 0&&(n=!1),p0(e,t,n)){const r=e.children;if(Array.isArray(r))for(let s=0;s<r.length&&r[s].offset<=t;s++){const i=d0(r[s],t,n);if(i)return i}return e}}var p2=class{constructor(e,t=[],n=[]){this.root=e,this.syntaxErrors=t,this.comments=n}getNodeFromOffset(e,t=!1){if(this.root)return d0(this.root,e,t)}getNodeFromOffsetEndInclusive(e){return this.root&&this.root.getNodeFromOffsetEndInclusive(e)}visit(e){if(this.root){const t=n=>{let r=e(n);const s=n.children;if(Array.isArray(s))for(let i=0;i<s.length&&r;i++)r=t(s[i]);return r};t(this.root)}}validate(e,t){if(this.root&&t){const n=new ys(this.isKubernetes);return Kr(this.root,t,t,n,qo.instance,{isKubernetes:this.isKubernetes,disableAdditionalProperties:this.disableAdditionalProperties,uri:this.uri}),n.problems.map(r=>{const s=Vn.create(e.positionAt(r.location.offset),e.positionAt(r.location.offset+r.location.length)),i=Cs.create(s,r.message,r.severity,r.code?r.code:Js.Undefined,r.source);return i.data={schemaUri:r.schemaUri,...r.data},i})}return null}getMatchingSchemas(e,t=-1,n=null,r){const s=new f2(t,n);return this.root&&e&&Kr(this.root,e,e,new ys(this.isKubernetes),s,{isKubernetes:this.isKubernetes,disableAdditionalProperties:this.disableAdditionalProperties,uri:this.uri,callFromAutoComplete:r}),s.schemas}};function Kr(e,t,n,r,s,i){const{isKubernetes:a,callFromAutoComplete:o}=i;if(!e||typeof t!="object")return;switch(t.url||(t.url=n.url),t.closestTitle=t.title||n.closestTitle,e.type){case"object":T(e,t,r,s);break;case"array":c(e,t,r,s);break;case"string":b(e,t,r);break;case"number":l(e,t,r);break;case"property":return Kr(e.valueNode,t,t,r,s,i)}u(),s.add({node:e,schema:t});function u(){function O(ve){return e.type===ve||ve==="integer"&&e.type==="number"&&e.isInteger}if(Array.isArray(t.type))t.type.some(O)||r.problems.push({location:{offset:e.offset,length:e.length},severity:tr.Warning,message:t.errorMessage||or("typeArrayMismatchWarning","Incorrect type. Expected one of {0}.",t.type.join(", ")),source:Er(t,n),schemaUri:Ar(t,n)});else if(t.type&&!O(t.type)){const ve=t.type==="object"?Pf(t):t.type;r.problems.push({location:{offset:e.offset,length:e.length},severity:tr.Warning,message:t.errorMessage||Zu(cs.typeMismatchWarning,[ve]),source:Er(t,n),schemaUri:Ar(t,n),problemType:cs.typeMismatchWarning,problemArgs:[ve]})}if(Array.isArray(t.allOf))for(const ve of t.allOf)Kr(e,fs(ve),t,r,s,i);const k=fs(t.not);if(k){const ve=new ys(a),Pe=s.newSub();Kr(e,k,t,ve,Pe,i),ve.hasProblems()||r.problems.push({location:{offset:e.offset,length:e.length},severity:tr.Warning,message:or("notSchemaWarning","Matches a schema that is not allowed."),source:Er(t,n),schemaUri:Ar(t,n)});for(const Fe of Pe.schemas)Fe.inverted=!Fe.inverted,s.add(Fe)}const me=(ve,Pe)=>{var Fe;const Be=[],xe=[],Je=[];let ze=null;for(const de of ve){const Ze={...fs(de)},at=new ys(a),He=s.newSub();Kr(e,Ze,t,at,He,i),(!at.hasProblems()||o)&&(Be.push(Ze),xe.push(Ze),at.propertiesMatches===0&&Je.push(Ze),Ze.format&&xe.pop()),ze?a?ze=K(at,ze,Ze,He):ze=ne(e,Pe,at,ze,Ze,He):ze={schema:Ze,validationResult:at,matchingSchemas:He}}return xe.length>1&&(xe.length>1||Je.length===0)&&Pe&&r.problems.push({location:{offset:e.offset,length:1},severity:tr.Warning,message:or("oneOfWarning","Matches multiple schemas when only one must validate."),source:Er(t,n),schemaUri:Ar(t,n)}),ze!==null&&(r.merge(ze.validationResult),r.propertiesMatches+=ze.validationResult.propertiesMatches,r.propertiesValueMatches+=ze.validationResult.propertiesValueMatches,r.enumValueMatch=r.enumValueMatch||ze.validationResult.enumValueMatch,(Fe=ze.validationResult.enumValues)!=null&&Fe.length&&(r.enumValues=(r.enumValues||[]).concat(ze.validationResult.enumValues)),s.merge(ze.matchingSchemas)),Be.length};Array.isArray(t.anyOf)&&me(t.anyOf,!1),Array.isArray(t.oneOf)&&me(t.oneOf,!0);const Se=(ve,Pe)=>{const Fe=new ys(a),Be=s.newSub();Kr(e,fs(ve),Pe,Fe,Be,i),r.merge(Fe),r.propertiesMatches+=Fe.propertiesMatches,r.propertiesValueMatches+=Fe.propertiesValueMatches,s.merge(Be)},_e=(ve,Pe,Fe,Be)=>{const xe=fs(ve),Je=new ys(a),ze=s.newSub();Kr(e,xe,Pe,Je,ze,i),s.merge(ze);const{filePatternAssociation:de}=xe;de&&(new B2(de).matchesPattern(i.uri)||Je.problems.push({location:{offset:e.offset,length:e.length},severity:tr.Warning,message:or("ifFilePatternAssociation",`filePatternAssociation '${de}' does not match with doc uri '${i.uri}'.`),source:Er(t,Pe),schemaUri:Ar(t,Pe)})),Je.hasProblems()?Be&&Se(Be,Pe):Fe&&Se(Fe,Pe)},Ye=fs(t.if);if(Ye&&_e(Ye,t,fs(t.then),fs(t.else)),Array.isArray(t.enum)){const ve=Uo(e);let Pe=!1;for(const Fe of t.enum)if(Vo(ve,Fe)||o&&Ga(ve)&&Ga(Fe)&&ve&&Fe.startsWith(ve)){Pe=!0;break}r.enumValues=t.enum,r.enumValueMatch=Pe,Pe||r.problems.push({location:{offset:e.offset,length:e.length},severity:tr.Warning,code:Js.EnumValueMismatch,message:t.errorMessage||or("enumWarning","Value is not accepted. Valid values: {0}.",t.enum.map(Fe=>JSON.stringify(Fe)).join(", ")),source:Er(t,n),schemaUri:Ar(t,n)})}if(Qi(t.const)){const ve=Uo(e);!Vo(ve,t.const)&&!(o&&Ga(ve)&&Ga(t.const)&&t.const.startsWith(ve))?(r.problems.push({location:{offset:e.offset,length:e.length},severity:tr.Warning,code:Js.EnumValueMismatch,problemType:cs.constWarning,message:t.errorMessage||Zu(cs.constWarning,[JSON.stringify(t.const)]),source:Er(t,n),schemaUri:Ar(t,n),problemArgs:[JSON.stringify(t.const)]}),r.enumValueMatch=!1):r.enumValueMatch=!0,r.enumValues=[t.const]}t.deprecationMessage&&e.parent&&r.problems.push({location:{offset:e.parent.offset,length:e.parent.length},severity:tr.Warning,message:t.deprecationMessage,source:Er(t,n),schemaUri:Ar(t,n)})}function l(O,k,me){const Se=O.value;Rs(k.multipleOf)&&Se%k.multipleOf!==0&&me.problems.push({location:{offset:O.offset,length:O.length},severity:tr.Warning,message:or("multipleOfWarning","Value is not divisible by {0}.",k.multipleOf),source:Er(k,n),schemaUri:Ar(k,n)});function _e(xe,Je){if(Rs(Je))return Je;if(Wa(Je)&&Je)return xe}function Ye(xe,Je){if(!Wa(Je)||!Je)return xe}const ve=_e(k.minimum,k.exclusiveMinimum);Rs(ve)&&Se<=ve&&me.problems.push({location:{offset:O.offset,length:O.length},severity:tr.Warning,message:or("exclusiveMinimumWarning","Value is below the exclusive minimum of {0}.",ve),source:Er(k,n),schemaUri:Ar(k,n)});const Pe=_e(k.maximum,k.exclusiveMaximum);Rs(Pe)&&Se>=Pe&&me.problems.push({location:{offset:O.offset,length:O.length},severity:tr.Warning,message:or("exclusiveMaximumWarning","Value is above the exclusive maximum of {0}.",Pe),source:Er(k,n),schemaUri:Ar(k,n)});const Fe=Ye(k.minimum,k.exclusiveMinimum);Rs(Fe)&&Se<Fe&&me.problems.push({location:{offset:O.offset,length:O.length},severity:tr.Warning,message:or("minimumWarning","Value is below the minimum of {0}.",Fe),source:Er(k,n),schemaUri:Ar(k,n)});const Be=Ye(k.maximum,k.exclusiveMaximum);Rs(Be)&&Se>Be&&me.problems.push({location:{offset:O.offset,length:O.length},severity:tr.Warning,message:or("maximumWarning","Value is above the maximum of {0}.",Be),source:Er(k,n),schemaUri:Ar(k,n)})}function b(O,k,me){if(Rs(k.minLength)&&O.value.length<k.minLength&&me.problems.push({location:{offset:O.offset,length:O.length},severity:tr.Warning,message:or("minLengthWarning","String is shorter than the minimum length of {0}.",k.minLength),source:Er(k,n),schemaUri:Ar(k,n)}),Rs(k.maxLength)&&O.value.length>k.maxLength&&me.problems.push({location:{offset:O.offset,length:O.length},severity:tr.Warning,message:or("maxLengthWarning","String is longer than the maximum length of {0}.",k.maxLength),source:Er(k,n),schemaUri:Ar(k,n)}),Ga(k.pattern)&&(n0(k.pattern).test(O.value)||me.problems.push({location:{offset:O.offset,length:O.length},severity:tr.Warning,message:k.patternErrorMessage||k.errorMessage||or("patternWarning",'String does not match the pattern of "{0}".',k.pattern),source:Er(k,n),schemaUri:Ar(k,n)})),k.format)switch(k.format){case"uri":case"uri-reference":{let Se;if(!O.value)Se=or("uriEmpty","URI expected.");else try{!xs.parse(O.value).scheme&&k.format==="uri"&&(Se=or("uriSchemeMissing","URI with a scheme is expected."))}catch(_e){Se=_e.message}Se&&me.problems.push({location:{offset:O.offset,length:O.length},severity:tr.Warning,message:k.patternErrorMessage||k.errorMessage||or("uriFormatWarning","String is not a URI: {0}",Se),source:Er(k,n),schemaUri:Ar(k,n)})}break;case"color-hex":case"date-time":case"date":case"time":case"email":case"ipv4":case"ipv6":{const Se=r2[k.format];(!O.value||!Se.pattern.test(O.value))&&me.problems.push({location:{offset:O.offset,length:O.length},severity:tr.Warning,message:k.patternErrorMessage||k.errorMessage||Se.errorMessage,source:Er(k,n),schemaUri:Ar(k,n)})}break}}function c(O,k,me,Se){if(Array.isArray(k.items)){const Ye=k.items;for(let ve=0;ve<Ye.length;ve++){const Pe=Ye[ve],Fe=fs(Pe),Be=new ys(a),xe=O.items[ve];xe?(Kr(xe,Fe,k,Be,Se,i),me.mergePropertyMatch(Be),me.mergeEnumValues(Be)):O.items.length>=Ye.length&&me.propertiesValueMatches++}if(O.items.length>Ye.length)if(typeof k.additionalItems=="object")for(let ve=Ye.length;ve<O.items.length;ve++){const Pe=new ys(a);Kr(O.items[ve],k.additionalItems,k,Pe,Se,i),me.mergePropertyMatch(Pe),me.mergeEnumValues(Pe)}else k.additionalItems===!1&&me.problems.push({location:{offset:O.offset,length:O.length},severity:tr.Warning,message:or("additionalItemsWarning","Array has too many items according to schema. Expected {0} or fewer.",Ye.length),source:Er(k,n),schemaUri:Ar(k,n)})}else{const Ye=fs(k.items);if(Ye){const ve=new ys(a);O.items.forEach(Pe=>{if(Ye.oneOf&&Ye.oneOf.length===1){const Fe=Ye.oneOf[0],Be={...fs(Fe)};Be.title=k.title,Be.closestTitle=k.closestTitle,Kr(Pe,Be,k,ve,Se,i),me.mergePropertyMatch(ve),me.mergeEnumValues(ve)}else Kr(Pe,Ye,k,ve,Se,i),me.mergePropertyMatch(ve),me.mergeEnumValues(ve)})}}const _e=fs(k.contains);if(_e&&(O.items.some(ve=>{const Pe=new ys(a);return Kr(ve,_e,k,Pe,qo.instance,i),!Pe.hasProblems()})||me.problems.push({location:{offset:O.offset,length:O.length},severity:tr.Warning,message:k.errorMessage||or("requiredItemMissingWarning","Array does not contain required item."),source:Er(k,n),schemaUri:Ar(k,n)})),Rs(k.minItems)&&O.items.length<k.minItems&&me.problems.push({location:{offset:O.offset,length:O.length},severity:tr.Warning,message:or("minItemsWarning","Array has too few items. Expected {0} or more.",k.minItems),source:Er(k,n),schemaUri:Ar(k,n)}),Rs(k.maxItems)&&O.items.length>k.maxItems&&me.problems.push({location:{offset:O.offset,length:O.length},severity:tr.Warning,message:or("maxItemsWarning","Array has too many items. Expected {0} or fewer.",k.maxItems),source:Er(k,n),schemaUri:Ar(k,n)}),k.uniqueItems===!0){const Ye=Uo(O);Ye.some((Pe,Fe)=>Fe!==Ye.lastIndexOf(Pe))&&me.problems.push({location:{offset:O.offset,length:O.length},severity:tr.Warning,message:or("uniqueItemsWarning","Array has duplicate items."),source:Er(k,n),schemaUri:Ar(k,n)})}}function T(O,k,me,Se){var _e;const Ye=Object.create(null),ve=[],Pe=[...O.properties];for(;Pe.length>0;){const xe=Pe.pop(),Je=xe.keyNode.value;if(Je==="<<"&&xe.valueNode)switch(xe.valueNode.type){case"object":{Pe.push(...xe.valueNode.properties);break}case"array":{xe.valueNode.items.forEach(ze=>{ze&&qv(ze.properties)&&Pe.push(...ze.properties)});break}}else Ye[Je]=xe.valueNode,ve.push(Je)}if(Array.isArray(k.required)){for(const xe of k.required)if(Ye[xe]===void 0){const Je=O.parent&&O.parent.type==="property"&&O.parent.keyNode,ze=Je?{offset:Je.offset,length:Je.length}:{offset:O.offset,length:1};me.problems.push({location:ze,severity:tr.Warning,message:Zu(cs.missingRequiredPropWarning,[xe]),source:Er(k,n),schemaUri:Ar(k,n),problemArgs:[xe],problemType:cs.missingRequiredPropWarning})}}const Fe=xe=>{let Je=ve.indexOf(xe);for(;Je>=0;)ve.splice(Je,1),Je=ve.indexOf(xe)};if(k.properties)for(const xe of Object.keys(k.properties)){Fe(xe);const Je=k.properties[xe],ze=Ye[xe];if(ze)if(Wa(Je))if(Je)me.propertiesMatches++,me.propertiesValueMatches++;else{const de=ze.parent;me.problems.push({location:{offset:de.keyNode.offset,length:de.keyNode.length},severity:tr.Warning,message:k.errorMessage||or("DisallowedExtraPropWarning",If,xe),source:Er(k,n),schemaUri:Ar(k,n)})}else{Je.url=(_e=k.url)!=null?_e:n.url;const de=new ys(a);Kr(ze,Je,k,de,Se,i),me.mergePropertyMatch(de),me.mergeEnumValues(de)}}if(k.patternProperties)for(const xe of Object.keys(k.patternProperties)){const Je=n0(xe);for(const ze of ve.slice(0))if(Je.test(ze)){Fe(ze);const de=Ye[ze];if(de){const Ze=k.patternProperties[xe];if(Wa(Ze))if(Ze)me.propertiesMatches++,me.propertiesValueMatches++;else{const at=de.parent;me.problems.push({location:{offset:at.keyNode.offset,length:at.keyNode.length},severity:tr.Warning,message:k.errorMessage||or("DisallowedExtraPropWarning",If,ze),source:Er(k,n),schemaUri:Ar(k,n)})}else{const at=new ys(a);Kr(de,Ze,k,at,Se,i),me.mergePropertyMatch(at),me.mergeEnumValues(at)}}}}if(typeof k.additionalProperties=="object")for(const xe of ve){const Je=Ye[xe];if(Je){const ze=new ys(a);Kr(Je,k.additionalProperties,k,ze,Se,i),me.mergePropertyMatch(ze),me.mergeEnumValues(ze)}}else if((k.additionalProperties===!1||k.type==="object"&&k.additionalProperties===void 0&&i.disableAdditionalProperties===!0)&&ve.length>0){const xe=k.properties&&Object.keys(k.properties).filter(Je=>!Ye[Je]);for(const Je of ve){const ze=Ye[Je];if(ze){let de=null;ze.type!=="property"?(de=ze.parent,de.type==="object"&&(de=de.properties[0])):de=ze;const Ze={location:{offset:de.keyNode.offset,length:de.keyNode.length},severity:tr.Warning,message:k.errorMessage||or("DisallowedExtraPropWarning",If,Je),source:Er(k,n),schemaUri:Ar(k,n)};xe?.length&&(Ze.data={properties:xe}),me.problems.push(Ze)}}}if(Rs(k.maxProperties)&&O.properties.length>k.maxProperties&&me.problems.push({location:{offset:O.offset,length:O.length},severity:tr.Warning,message:or("MaxPropWarning","Object has more properties than limit of {0}.",k.maxProperties),source:Er(k,n),schemaUri:Ar(k,n)}),Rs(k.minProperties)&&O.properties.length<k.minProperties&&me.problems.push({location:{offset:O.offset,length:O.length},severity:tr.Warning,message:or("MinPropWarning","Object has fewer properties than the required number of {0}",k.minProperties),source:Er(k,n),schemaUri:Ar(k,n)}),k.dependencies){for(const xe of Object.keys(k.dependencies))if(Ye[xe]){const ze=k.dependencies[xe];if(Array.isArray(ze))for(const de of ze)Ye[de]?me.propertiesValueMatches++:me.problems.push({location:{offset:O.offset,length:O.length},severity:tr.Warning,message:or("RequiredDependentPropWarning","Object is missing property {0} required by property {1}.",de,xe),source:Er(k,n),schemaUri:Ar(k,n)});else{const de=fs(ze);if(de){const Ze=new ys(a);Kr(O,de,k,Ze,Se,i),me.mergePropertyMatch(Ze),me.mergeEnumValues(Ze)}}}}const Be=fs(k.propertyNames);if(Be)for(const xe of O.properties){const Je=xe.keyNode;Je&&Kr(Je,Be,k,me,qo.instance,i)}}function K(O,k,me,Se){const _e=O.compareKubernetes(k.validationResult);return _e>0?k={schema:me,validationResult:O,matchingSchemas:Se}:_e===0&&(k.matchingSchemas.merge(Se),k.validationResult.mergeEnumValues(O)),k}function ne(O,k,me,Se,_e,Ye){if(!k&&!me.hasProblems()&&(!Se.validationResult.hasProblems()||o))Se.matchingSchemas.merge(Ye),Se.validationResult.propertiesMatches+=me.propertiesMatches,Se.validationResult.propertiesValueMatches+=me.propertiesValueMatches;else{const ve=me.compareGeneric(Se.validationResult);ve>0||ve===0&&k&&Se.schema.type==="object"&&O.type!=="null"&&O.type!==Se.schema.type?Se={schema:_e,validationResult:me,matchingSchemas:Ye}:ve===0&&(Se.matchingSchemas.merge(Ye),Se.validationResult.mergeEnumValues(me),Se.validationResult.mergeWarningGeneric(me,[cs.missingRequiredPropWarning,cs.typeMismatchWarning,cs.constWarning]))}return Se}}function Er(e,t){var n;if(e){let r;if(e.title)r=e.title;else if(e.closestTitle)r=e.closestTitle;else if(t.closestTitle)r=t.closestTitle;else{const s=(n=e.url)!=null?n:t.url;if(s){const i=xs.parse(s);i.scheme==="file"&&(r=i.fsPath),r=i.toString()}}if(r)return`${c0}${r}`}return Qu}function Ar(e,t){var n;const r=(n=e.url)!=null?n:t.url;return r?[r]:[]}function Zu(e,t){return or(e,s2[e],t.join(" | "))}var d2=1e3,Of=0,Rf=new Set;function Ja(e,t,n,r){if(e||(Of=0),!t)return null;if($r(t))return h2(t,e,n,r);if(vr(t))return m2(t,e,n,r);if(Vr(t))return g2(t,e,n,r);if(Wn(t))return y2(t,e);if(Us(t)&&!Rf.has(t)&&Of<d2){Rf.add(t);const s=D2(t,e,n,r);return Rf.delete(t),s}else return}function h2(e,t,n,r){let s;e.flow&&!e.range?s=b2(e):s=e.range;const i=new c2(t,e,...h0(s,r));for(const a of e.items)vr(a)&&i.properties.push(Ja(i,a,n,r));return i}function m2(e,t,n,r){const s=e.key,i=e.value,a=s.range[0];let o=s.range[1],u=s.range[2];i&&(o=i.range[1],u=i.range[2]);const l=new l2(t,e,...h0([a,o,u],r));if(Us(s)){const b=new Ku(t,s,...Mi(s.range));b.value=s.source,l.keyNode=b}else l.keyNode=Ja(l,s,n,r);return l.valueNode=Ja(l,i,n,r),l}function g2(e,t,n,r){const s=new o2(t,e,...Mi(e.range));for(const i of e.items)if(yr(i)){const a=Ja(s,i,n,r);a&&s.children.push(a)}return s}function y2(e,t){if(e.value===null)return new i2(t,e,...Mi(e.range));switch(typeof e.value){case"string":{const n=new Ku(t,e,...Mi(e.range));return n.value=e.value,n}case"boolean":return new a2(t,e,e.value,...Mi(e.range));case"number":{const n=new u2(t,e,...Mi(e.range));return n.value=e.value,n.isInteger=Number.isInteger(n.value),n}default:{const n=new Ku(t,e,...Mi(e.range));return n.value=e.source,n}}}function D2(e,t,n,r){Of++;const s=e.resolve(n);if(s)return Ja(t,s,n,r);{const i=new Ku(t,e,...Mi(e.range));return i.value=e.source,i}}function Mi(e){return[e[0],e[1]-e[0]]}function h0(e,t){const n=t.linePos(e[0]),r=t.linePos(e[1]),s=[e[0],e[1]-e[0]];return n.line!==r.line&&(t.lineStarts.length!==r.line||r.col===1)&&s[1]--,s}function b2(e){let t=Number.MAX_SAFE_INTEGER,n=0;for(const r of e.items)vr(r)&&(yr(r.key)&&r.key.range&&r.key.range[0]<=t&&(t=r.key.range[0]),yr(r.value)&&r.value.range&&r.value.range[2]>=n&&(n=r.value.range[2]));return[t,n,n]}function v2(e,t){let n;if(Br(e,(r,s,i)=>{if(s===t)return n=i[i.length-1],Br.BREAK}),!_a(n))return n}function E2(e){if(e.items.length>1)return!1;const t=e.items[0];return Wn(t.key)&&Wn(t.value)&&t.key.value===""&&!t.value.value}function A2(e,t){for(const[n,r]of e.items.entries())if(t===r)return n}function w2(e,t){let n=!1;for(const r of e){if(r.type==="document")jf([],r,s=>{var i;if(m0(s)&&((i=s.value)==null?void 0:i.type)==="comment"){if(r.offset<=t&&s.value.source.length+s.value.offset>=t)return n=!0,Br.BREAK}else if(s.type==="comment"&&s.offset<=t&&s.offset+s.source.length>=t)return n=!0,Br.BREAK});else if(r.type==="comment"&&r.offset<=t&&r.source.length+r.offset>=t)return!0;if(n)break}return n}function m0(e){return e.start!==void 0}function jf(e,t,n){let r=n(t,e);if(typeof r=="symbol")return r;for(const i of["key","value"]){const a=t[i];if(a&&"items"in a){for(let o=0;o<a.items.length;++o){const u=jf(Object.freeze(e.concat([[i,o]])),a.items[o],n);if(typeof u=="number")o=u-1;else{if(u===Br.BREAK)return Br.BREAK;u===Br.REMOVE&&(a.items.splice(o,1),o-=1)}}typeof r=="function"&&i==="key"&&(r=r(t,e))}}const s=t.sep;if(s)for(let i=0;i<s.length;++i){const a=jf(Object.freeze(e),s[i],n);if(typeof a=="number")i=a-1;else{if(a===Br.BREAK)return Br.BREAK;a===Br.REMOVE&&(s.items.splice(i,1),i-=1)}}return typeof r=="function"?r(t,e):r}var g0=class d1 extends p2{constructor(t){super(null,[]),this.lineCounter=t}clone(){const t=new d1(this.lineCounter);return t.isKubernetes=this.isKubernetes,t.disableAdditionalProperties=this.disableAdditionalProperties,t.uri=this.uri,t.currentDocIndex=this.currentDocIndex,t._lineComments=this.lineComments.slice(),t.internalDocument=this._internalDocument.clone(),t}collectLineComments(){this._lineComments=[],this._internalDocument.commentBefore&&this._internalDocument.commentBefore.split(`
429
+ `).forEach(n=>this._lineComments.push(`#${n}`)),Br(this.internalDocument,(t,n)=>{n?.commentBefore&&(n?.commentBefore.split(`
430
+ `)).forEach(s=>this._lineComments.push(`#${s}`)),n?.comment&&this._lineComments.push(`#${n.comment}`)}),this._internalDocument.comment&&this._lineComments.push(`#${this._internalDocument.comment}`)}updateFromInternalDocument(){this.root=Ja(null,this._internalDocument.contents,this._internalDocument,this.lineCounter)}set internalDocument(t){this._internalDocument=t,this.updateFromInternalDocument()}get internalDocument(){return this._internalDocument}get lineComments(){return this._lineComments||this.collectLineComments(),this._lineComments}set lineComments(t){this._lineComments=t}get errors(){return this.internalDocument.errors.map(D0)}get warnings(){return this.internalDocument.warnings.map(D0)}getNodeFromPosition(t,n,r){const s=n.getPosition(t),i=n.getLineContent(s.line);if(i.trim().length===0)return[this.findClosestNode(t,n,r),!0];const o=i.substring(s.character).match(/^([ ]+)\n?$/),u=!!o,l=o?.[1].length;let b;return Br(this.internalDocument,(c,T)=>{if(!T)return;const K=T.range;if(!K)return;const ne=()=>u&&t+l===K[2]&&Wn(T)&&T.value===null;if(K[0]<=t&&K[1]>=t||ne())b=T;else return Br.SKIP}),[b,!1]}findClosestNode(t,n,r){let s=this.internalDocument.range[2],i=this.internalDocument.range[0],a;Br(this.internalDocument,(b,c)=>{if(!c)return;const T=c.range;if(!T)return;const K=T[1]-t;i<=T[0]&&K<=0&&Math.abs(K)<=s&&(s=Math.abs(K),i=T[0],a=c)});const o=n.getPosition(t),u=n.getLineContent(o.line),l=$v(u,o.character);return Wn(a)&&a.value===null||l===o.character&&(a=this.getProperParentByIndentation(l,a,n,"",r)),a}getProperParentByIndentation(t,n,r,s,i,a){if(!n)return this.internalDocument.contents;if(i=i||2,yr(n)&&n.range){const o=r.getPosition(n.range[0]),u=r.getLineContent(o.line);if(s=s===""?u.trim():s,s.startsWith("-")&&t===i&&s===u.trim()&&(o.character+=t),o.character>t&&o.character>0){const l=this.getParent(n);if(l)return this.getProperParentByIndentation(t,l,r,s,i,a)}else if(o.character<t){const l=this.getParent(n);if(vr(l)&&yr(l.value))return l.value;if(vr(a)&&yr(a.value))return a.value}else return n}else if(vr(n)){a=n;const o=this.getParent(n);return this.getProperParentByIndentation(t,o,r,s,i,a)}return n}getParent(t){return v2(this.internalDocument,t)}},y0=class{constructor(e,t){this.documents=e,this.tokens=t,this.errors=[],this.warnings=[]}},x2=class{constructor(){this.cache=new Map}getYamlDocument(e,t,n=!1){return this.ensureCache(e,t??el,n),this.cache.get(e.uri).document}clear(){this.cache.clear()}ensureCache(e,t,n){const r=e.uri;this.cache.has(r)||this.cache.set(r,{version:-1,document:new y0([],[]),parserOptions:el});const s=this.cache.get(r);if(s.version!==e.version||t.customTags&&!l0(s.parserOptions.customTags,t.customTags)){let i=e.getText();n&&!/\S/.test(i)&&(i=`{${i}}`);const a=N2(i,t,e);s.document=a,s.version=e.version,s.parserOptions=t}}},Hs=new x2;function D0(e){return{message:e.message,location:{start:e.pos[0],end:e.pos[1],toLineEnd:!0},severity:1,code:Js.Undefined}}var C2=class{constructor(e,t){this.tag=e,this.type=t}get collection(){if(this.type==="mapping")return"map";if(this.type==="sequence")return"seq"}resolve(e){if($r(e)&&this.type==="mapping"||Vr(e)&&this.type==="sequence"||typeof e=="string"&&this.type==="scalar")return e}},S2=class{constructor(){this.tag="!include",this.type="scalar"}resolve(e,t){if(e&&e.length>0&&e.trim())return e;t("!include without value")}};function F2(e){const t=[],n=u0(e);for(const r of n){const s=r.split(" "),i=s[0],a=s[1]&&s[1].toLowerCase()||"scalar";t.push(new C2(i,a))}return t.push(new S2),t}var Zi=class{constructor(e){this.doc=e}getLineCount(){return this.doc.lineCount}getLineLength(e){const t=this.doc.getLineOffsets();return e>=t.length?this.doc.getText().length:e<0?0:(e+1<t.length?t[e+1]:this.doc.getText().length)-t[e]}getLineContent(e){const t=this.doc.getLineOffsets();if(e>=t.length)return this.doc.getText();if(e<0)return"";const n=e+1<t.length?t[e+1]:this.doc.getText().length;return this.doc.getText().substring(t[e],n)}getLineCharCode(e,t){return this.doc.getText(Vn.create(e-1,t,e-1,t+1)).charCodeAt(0)}getText(e){return this.doc.getText(e)}getPosition(e){return this.doc.positionAt(e)}},el={customTags:[],yamlVersion:"1.2"};function N2(e,t=el,n){var r;const s={strict:!1,customTags:F2(t.customTags),version:(r=t.yamlVersion)!=null?r:el.yamlVersion,keepSourceTokens:!0},i=new Ig(s),a=new Wg;let o=!1;if(n){const K=new Zi(n),ne=K.getPosition(e.length);o=K.getLineContent(ne.line).trim().length===0}const l=(o?new Nf:new Nf(a.addNewLine)).parse(e),b=Array.from(l),c=i.compose(b,!0,e.length),T=Array.from(c,K=>T2(K,a));return new y0(T,b)}function T2(e,t){const n=new g0(t);return n.internalDocument=e,n}function _2(e){if(e instanceof g0){const t=e.lineComments.find(n=>$f(n));if(t!=null){const n=t.match(/\$schema=\S+/g);if(n!==null&&n.length>=1)return n.length>=2&&console.log("Several $schema attributes have been found on the yaml-language-server modeline. The first one will be picked."),n[0].substring(8)}}}function $f(e){const t=e.match(/^#\s+yaml-language-server\s*:/g);return t!==null&&t.length===1}var L2=class{compile(){return()=>!0}},tl=Ua(),k2=new L2,P2=void 0,b0=k2.compile(P2),v0;(function(e){e[e.delete=0]="delete",e[e.add=1]="add",e[e.deleteAll=2]="deleteAll"})(v0||(v0={}));var B2=class{constructor(e){try{this.patternRegExp=new RegExp(jv(e)+"$")}catch{this.patternRegExp=null}this.schemas=[]}addSchema(e){this.schemas.push(e)}matchesPattern(e){return this.patternRegExp&&this.patternRegExp.test(e)}getSchemas(){return this.schemas}},M2=class extends Iv{constructor(e,t,n){super(e,t,n),this.schemaUriToNameAndDescription=new Map,this.customSchemaProvider=void 0,this.requestService=e,this.schemaPriorityMapping=new Map}registerCustomSchemaProvider(e){this.customSchemaProvider=e}getAllSchemas(){const e=[],t=new Set;for(const n of this.filePatternAssociations){const r=n.uris[0];if(t.has(r))continue;t.add(r);const s={uri:r,fromStore:!1,usedForCurrentFile:!1};if(this.schemaUriToNameAndDescription.has(r)){const{name:i,description:a,versions:o}=this.schemaUriToNameAndDescription.get(r);s.name=i,s.description=a,s.fromStore=!0,s.versions=o}e.push(s)}return e}async resolveSchemaContent(e,t,n){const r=e.errors.slice(0);let s=e.schema;const i=this.contextService;if(!b0(s)){const b=[];for(const c of b0.errors)b.push(`${c.instancePath} : ${c.message}`);r.push(`Schema '${s0(e.schema,t)}' is not valid:
431
+ ${b.join(`
432
+ `)}`)}const a=(b,c)=>{if(!c)return b;let T=b;return c[0]==="/"&&(c=c.substr(1)),c.split("/").some(K=>(T=T[K],!T)),T},o=(b,c,T,K)=>{const ne=a(c,K);if(ne)for(const O in ne)Object.prototype.hasOwnProperty.call(ne,O)&&!Object.prototype.hasOwnProperty.call(b,O)&&(b[O]=ne[O]);else r.push(tl("json.schema.invalidref","$ref '{0}' in '{1}' can not be resolved.",K,T))},u=(b,c,T,K,ne)=>{i&&!/^\w+:\/\/.*/.test(c)&&(c=i.resolveRelativePath(c,K)),c=this.normalizeId(c);const O=this.getOrAddSchemaHandle(c);return O.getUnresolvedSchema().then(k=>{if(ne[c]=!0,k.errors.length){const me=T?c+"#"+T:c;r.push(tl("json.schema.problemloadingref","Problems loading reference '{0}': {1}",me,k.errors[0]))}return o(b,k.schema,c,T),b.url=c,l(b,k.schema,c,O.dependencies)})},l=async(b,c,T,K)=>{if(!b||typeof b!="object")return null;const ne=[b],O=new Set,k=[],me=(...ve)=>{for(const Pe of ve)typeof Pe=="object"&&ne.push(Pe)},Se=(...ve)=>{for(const Pe of ve)if(typeof Pe=="object")for(const Fe in Pe){const Be=Pe[Fe];typeof Be=="object"&&ne.push(Be)}},_e=(...ve)=>{for(const Pe of ve)if(Array.isArray(Pe))for(const Fe of Pe)typeof Fe=="object"&&ne.push(Fe)},Ye=ve=>{const Pe=new Set;for(;ve.$ref;){const Fe=ve.$ref,Be=Fe.split("#",2);if(ve._$ref=ve.$ref,delete ve.$ref,Be[0].length>0){k.push(u(ve,Be[0],Be[1],T,K));return}else Pe.has(Fe)||(o(ve,c,T,Be[1]),Pe.add(Fe))}me(ve.items,ve.additionalItems,ve.additionalProperties,ve.not,ve.contains,ve.propertyNames,ve.if,ve.then,ve.else),Se(ve.definitions,ve.properties,ve.patternProperties,ve.dependencies),_e(ve.anyOf,ve.allOf,ve.oneOf,ve.items,ve.schemaSequence)};if(T.indexOf("#")>0){const ve=T.split("#",2);if(ve[0].length>0&&ve[1].length>0){const Pe={};await u(Pe,ve[0],ve[1],T,K);for(const Fe in s)Fe!=="required"&&Object.prototype.hasOwnProperty.call(s,Fe)&&!Object.prototype.hasOwnProperty.call(Pe,Fe)&&(Pe[Fe]=s[Fe]);s=Pe}}for(;ne.length;){const ve=ne.pop();O.has(ve)||(O.add(ve),Ye(ve))}return Promise.all(k)};return await l(s,s,t,n),new $o(s,r)}getSchemaForResource(e,t){const n=()=>{let a=_2(t);if(a!==void 0){if(!a.startsWith("file:")&&!a.startsWith("http")){let o="";if(a.indexOf("#")>0){const u=a.split("#",2);a=u[0],o=u[1]}if(Hi.isAbsolute(a))a=xs.file(a).toString();else{const u=xs.parse(e);a=xs.file(Hi.resolve(Hi.parse(u.fsPath).dir,a)).toString()}o.length>0&&(a+="#"+o)}return a}},r=a=>{const o=super.createCombinedSchema(e,a);return o.getResolvedSchema().then(u=>(u.schema&&typeof u.schema=="object"&&(u.schema.url=o.url),u.schema&&u.schema.schemaSequence&&u.schema.schemaSequence[t.currentDocIndex]?new $o(u.schema.schemaSequence[t.currentDocIndex]):u))},s=()=>{const a=Object.create(null),o=[];for(const u of this.filePatternAssociations)if(u.matchesPattern(e))for(const l of u.getURIs())a[l]||(o.push(l),a[l]=!0);if(o.length>0){const u=this.highestPrioritySchemas(o);return r(u)}return Promise.resolve(null)},i=n();return i?r([i]):this.customSchemaProvider?this.customSchemaProvider(e).then(a=>Array.isArray(a)?a.length===0?s():Promise.all(a.map(o=>this.resolveCustomSchema(o,t))).then(o=>({errors:[],schema:{allOf:o.map(u=>u.schema)}}),()=>s()):a?this.resolveCustomSchema(a,t):s()).then(a=>a,()=>s()):s()}addSchemaPriority(e,t){let n=this.schemaPriorityMapping.get(e);n?(n=n.add(t),this.schemaPriorityMapping.set(e,n)):this.schemaPriorityMapping.set(e,new Set().add(t))}highestPrioritySchemas(e){let t=0;const n=new Map;return e.forEach(r=>{(this.schemaPriorityMapping.get(r)||[0]).forEach(i=>{i>t&&(t=i);let a=n.get(i);a?(a=a.concat(r),n.set(i,a)):n.set(i,[r])})}),n.get(t)||[]}async resolveCustomSchema(e,t){const n=await this.loadSchema(e),r=await this.resolveSchemaContent(n,e,[]);return r.schema&&typeof r.schema=="object"&&(r.schema.url=e),r.schema&&r.schema.schemaSequence&&r.schema.schemaSequence[t.currentDocIndex]?new $o(r.schema.schemaSequence[t.currentDocIndex],r.errors):r}async saveSchema(e,t){const n=this.normalizeId(e);return this.getOrAddSchemaHandle(n,t),this.schemaPriorityMapping.set(n,new Set().add(qf.Settings)),Promise.resolve(void 0)}async deleteSchemas(e){return e.schemas.forEach(t=>{this.deleteSchema(t)}),Promise.resolve(void 0)}async deleteSchema(e){const t=this.normalizeId(e);return this.schemasById[t]&&delete this.schemasById[t],this.schemaPriorityMapping.delete(t),Promise.resolve(void 0)}async addContent(e){const t=await this.getResolvedSchema(e.schema);if(t){const n=this.resolveJSONSchemaToSection(t.schema,e.path);typeof n=="object"&&(n[e.key]=e.content),await this.saveSchema(e.schema,t.schema)}}async deleteContent(e){const t=await this.getResolvedSchema(e.schema);if(t){const n=this.resolveJSONSchemaToSection(t.schema,e.path);typeof n=="object"&&delete n[e.key],await this.saveSchema(e.schema,t.schema)}}resolveJSONSchemaToSection(e,t){const n=t.split("/");let r=e;for(const s of n)s!==""&&(this.resolveNext(r,s),r=r[s]);return r}resolveNext(e,t){if(Array.isArray(e)&&isNaN(t))throw new Error("Expected a number after the array object");if(typeof e=="object"&&typeof t!="string")throw new Error("Expected a string after the object")}normalizeId(e){try{return xs.parse(e).toString()}catch{return e}}getOrAddSchemaHandle(e,t){return super.getOrAddSchemaHandle(e,t)}loadSchema(e){const t=this.requestService;return super.loadSchema(e).then(n=>{if(n.errors&&n.schema===void 0)return t(e).then(r=>{if(!r){const s=tl("json.schema.nocontent","Unable to load schema from '{0}': No content. {1}",E0(e),n.errors);return new Ys({},[s])}try{const s=bv(r);return new Ys(s,[])}catch(s){const i=tl("json.schema.invalidFormat","Unable to parse content from '{0}': {1}.",E0(e),s);return new Ys({},[i])}},r=>{let s=r.toString();const i=r.toString().split("Error: ");return i.length>1&&(s=i[1]),new Ys({},[s])});if(n.uri=e,this.schemaUriToNameAndDescription.has(e)){const{name:r,description:s,versions:i}=this.schemaUriToNameAndDescription.get(e);n.schema.title=r??n.schema.title,n.schema.description=s??n.schema.description,n.schema.versions=i??n.schema.versions}return n})}registerExternalSchema(e,t,n,r,s,i){return(r||s)&&this.schemaUriToNameAndDescription.set(e,{name:r,description:s,versions:i}),super.registerExternalSchema(e,t,n)}clearExternalSchemas(){super.clearExternalSchemas()}setSchemaContributions(e){super.setSchemaContributions(e)}getRegisteredSchemaIds(e){return super.getRegisteredSchemaIds(e)}getResolvedSchema(e){return super.getResolvedSchema(e)}onResourceChange(e){return super.onResourceChange(e)}};function E0(e){try{const t=xs.parse(e);if(t.scheme==="file")return t.fsPath}catch{}return e}var I2=class{constructor(e,t){this.telemetry=t,this.jsonDocumentSymbols=new Qv(e),this.jsonDocumentSymbols.getKeyLabel=n=>{const r=n.keyNode.internalNode;let s="";return $r(r)?s="{}":Vr(r)?s="[]":s=r.source,s}}findDocumentSymbols(e,t={resultLimit:Number.MAX_VALUE}){var n;let r=[];try{const s=Hs.getYamlDocument(e);if(!s||s.documents.length===0)return null;for(const i of s.documents)i.root&&(r=r.concat(this.jsonDocumentSymbols.findDocumentSymbols(e,i,t)))}catch(s){(n=this.telemetry)==null||n.sendError("yaml.documentSymbols.error",{error:yi(s)})}return r}findHierarchicalDocumentSymbols(e,t={resultLimit:Number.MAX_VALUE}){var n;let r=[];try{const s=Hs.getYamlDocument(e);if(!s||s.documents.length===0)return null;for(const i of s.documents)i.root&&(r=r.concat(this.jsonDocumentSymbols.findDocumentSymbols2(e,i,t)))}catch(s){(n=this.telemetry)==null||n.sendError("yaml.hierarchicalDocumentSymbols.error",{error:yi(s)})}return r}};function A0(e,t){for(const n of e)n.isKubernetes=t}var O2=class{constructor(e,t){this.telemetry=t,this.shouldHover=!0,this.schemaService=e}configure(e){e&&(this.shouldHover=e.hover,this.indentation=e.indentation)}doHover(e,t,n=!1){var r;try{if(!this.shouldHover||!e)return Promise.resolve(void 0);const s=Hs.getYamlDocument(e),i=e.offsetAt(t),a=Xu(i,s);if(a===null)return Promise.resolve(void 0);A0(s.documents,n);const o=s.documents.indexOf(a);return a.currentDocIndex=o,this.getHover(e,t,a)}catch(s){(r=this.telemetry)==null||r.sendError("yaml.hover.error",{error:yi(s)})}}getHover(e,t,n){const r=e.offsetAt(t);let s=n.getNodeFromOffset(r);if(!s||(s.type==="object"||s.type==="array")&&r>s.offset+1&&r<s.offset+s.length-1)return Promise.resolve(null);const i=s;if(s.type==="string"){const l=s.parent;if(l&&l.type==="property"&&l.keyNode===s&&(s=l.valueNode,!s))return Promise.resolve(null)}const a=Vn.create(e.positionAt(i.offset),e.positionAt(i.offset+i.length)),o=l=>({contents:{kind:di.Markdown,value:l},range:a}),u=l=>l.replace(/\|\|\s*$/,"");return this.schemaService.getSchemaForResource(e.uri,n).then(l=>{if(l&&s&&!l.errors.length){const b=n.getMatchingSchemas(l.schema,s.offset);let c,T,K=[];const ne=[],O=[];b.every(me=>((me.node===s||s.type==="property"&&s.valueNode===me.node)&&!me.inverted&&me.schema&&(c=c||me.schema.title||me.schema.closestTitle,T=T||me.schema.markdownDescription||this.toMarkdown(me.schema.description),me.schema.enum&&(me.schema.markdownEnumDescriptions?K=me.schema.markdownEnumDescriptions:me.schema.enumDescriptions?K=me.schema.enumDescriptions.map(this.toMarkdown,this):K=[],me.schema.enum.forEach((Se,_e)=>{typeof Se!="string"&&(Se=JSON.stringify(Se)),O.push({value:Se,description:K[_e]})})),me.schema.anyOf&&j2(s,b,me.schema)&&(c="",T="",me.schema.anyOf.forEach((Se,_e)=>{c+=Se.title||me.schema.closestTitle||"",T+=Se.markdownDescription||this.toMarkdown(Se.description)||"",_e!==me.schema.anyOf.length-1&&(c+=" || ",T+=" || ")}),c=u(c),T=u(T)),me.schema.examples&&me.schema.examples.forEach(Se=>{ne.push(vv(Se,null,2))})),!0));let k="";return c&&(k="#### "+this.toMarkdown(c)),T&&(k=nl(k),k+=T),O.length!==0&&(k=nl(k),k+=`Allowed Values:
433
+
434
+ `,O.forEach(me=>{me.description?k+=`* \`${w0(me.value)}\`: ${me.description}
435
+ `:k+=`* \`${w0(me.value)}\`
436
+ `})),ne.length!==0&&ne.forEach(me=>{k=nl(k),k+=`Example:
437
+
438
+ `,k+=`\`\`\`yaml
439
+ ${me}\`\`\`
440
+ `}),k.length>0&&l.schema.url&&(k=nl(k),k+=`Source: [${R2(l.schema)}](${l.schema.url})`),o(k)}return null})}toMarkdown(e){if(e){let t=e.replace(/([^\n\r])(\r?\n)([^\n\r])/gm,`$1
441
+
442
+ $3`);if(t=t.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&"),this.indentation!==void 0){const n=new RegExp(` {${this.indentation.length}}`,"g");t=t.replace(n,"&emsp;")}return t}}};function nl(e){return e.length===0?e:(e.endsWith(`
443
+ `)||(e+=`
444
+ `),e+`
445
+ `)}function R2(e){let t="JSON Schema";const n=e.url;if(n){const r=xs.parse(n);t=Hi.basename(r.fsPath)}else e.title&&(t=e.title);return t}function w0(e){return e.indexOf("`")!==-1?"`` "+e+" ``":e}function j2(e,t,n){let r=0;for(const s of t)e===s.node&&s.schema!==n&&n.anyOf.forEach(i=>{s.schema.title===i.title&&s.schema.description===i.description&&s.schema.properties===i.properties&&r++});return r===n.anyOf.length}var $2=class{validate(e,t){const n=[],r=new Set,s=new Set,i=new Map;Br(t.internalDocument,(a,o,u)=>{yr(o)&&((jr(o)||Wn(o))&&o.anchor&&(r.add(o),i.set(o,u[u.length-1])),Us(o)&&s.add(o.resolve(t.internalDocument)))});for(const a of r)if(!s.has(a)){const o=this.getAnchorNode(i.get(a),a);if(o){const u=Vn.create(e.positionAt(o.offset),e.positionAt(o.offset+o.source.length)),l=Cs.create(u,`Unused anchor "${o.source}"`,tr.Hint,0);l.tags=[Rc.Unnecessary],n.push(l)}}return n}getAnchorNode(e,t){if(e&&e.srcToken){const n=e.srcToken;if(m0(n))return x0(n);if(pv(n))for(const r of n.items){if(t.srcToken!==r.value)continue;const s=x0(r);if(s)return s}}}};function x0(e){for(const t of e.start)if(t.type==="anchor")return t;if(e.sep&&Array.isArray(e.sep)){for(const t of e.sep)if(t.type==="anchor")return t}}var V2=class{constructor(e){this.forbidMapping=e.flowMapping==="forbid",this.forbidSequence=e.flowSequence==="forbid"}validate(e,t){const n=[];return Br(t.internalDocument,(r,s)=>{var i,a;this.forbidMapping&&$r(s)&&((i=s.srcToken)==null?void 0:i.type)==="flow-collection"&&n.push(Cs.create(this.getRangeOf(e,s.srcToken),"Flow style mapping is forbidden",tr.Error,"flowMap")),this.forbidSequence&&Vr(s)&&((a=s.srcToken)==null?void 0:a.type)==="flow-collection"&&n.push(Cs.create(this.getRangeOf(e,s.srcToken),"Flow style sequence is forbidden",tr.Error,"flowSeq"))}),n}getRangeOf(e,t){return Vn.create(e.positionAt(t.start.offset),e.positionAt(t.end.pop().offset))}},q2=class{validate(e,t){const n=[];return Br(t.internalDocument,(r,s)=>{if($r(s)){for(let i=1;i<s.items.length;i++)if(W2(s.items[i-1],s.items[i])>0){const a=U2(e,s.items[i-1]);n.push(Cs.create(a,`Wrong ordering of key "${s.items[i-1].key}" in mapping`,tr.Error,"mapKeyOrder"))}}}),n}};function U2(e,t){var n,r,s,i,a,o,u,l,b,c,T;const K=(o=(s=(n=t?.srcToken.start[0])==null?void 0:n.offset)!=null?s:(r=t?.srcToken)==null?void 0:r.key.offset)!=null?o:(a=(i=t?.srcToken)==null?void 0:i.sep[0])==null?void 0:a.offset,ne=((u=t?.srcToken)==null?void 0:u.value.offset)||((b=(l=t?.srcToken)==null?void 0:l.sep[0])==null?void 0:b.offset)||((c=t?.srcToken)==null?void 0:c.key.offset)||((T=t?.srcToken.start[t.srcToken.start.length-1])==null?void 0:T.offset);return Vn.create(e.positionAt(K),e.positionAt(ne))}function W2(e,t){const n=String(t.key);return String(e.key).localeCompare(n)}var G2=(e,t)=>{const n=t.positionAt(e.location.start),r={start:n,end:e.location.toLineEnd?Qr.create(n.line,new Zi(t).getLineLength(n.line)):t.positionAt(e.location.end)};return Cs.create(r,e.message,e.severity,e.code,Qu)},J2=class{constructor(e,t){this.telemetry=t,this.validators=[],this.MATCHES_MULTIPLE="Matches multiple schemas when only one must validate.",this.validationEnabled=!0,this.jsonValidation=new Gv(e,Promise)}configure(e){this.validators=[],e&&(this.validationEnabled=e.validate,this.customTags=e.customTags,this.disableAdditionalProperties=e.disableAdditionalProperties,this.yamlVersion=e.yamlVersion,(e.flowMapping==="forbid"||e.flowSequence==="forbid")&&this.validators.push(new V2(e)),e.keyOrdering&&this.validators.push(new q2)),this.validators.push(new $2)}async doValidation(e,t=!1){var n;if(!this.validationEnabled)return Promise.resolve([]);const r=[];try{const o=Hs.getYamlDocument(e,{customTags:this.customTags,yamlVersion:this.yamlVersion},!0);let u=0;for(const l of o.documents){l.isKubernetes=t,l.currentDocIndex=u,l.disableAdditionalProperties=this.disableAdditionalProperties,l.uri=e.uri;const b=await this.jsonValidation.doValidation(e,l),c=l;c.errors.length>0&&r.push(...c.errors),c.warnings.length>0&&r.push(...c.warnings),r.push(...b),r.push(...this.runAdditionalValidators(e,l)),u++}}catch(o){(n=this.telemetry)==null||n.sendError("yaml.validation.error",{error:yi(o)})}let s;const i=new Set,a=[];for(let o of r){if(t&&o.message===this.MATCHES_MULTIPLE)continue;if(Object.prototype.hasOwnProperty.call(o,"location")&&(o=G2(o,e)),o.source||(o.source=Qu),s&&s.message===o.message&&s.range.end.line===o.range.start.line&&Math.abs(s.range.end.character-o.range.end.character)>=1){s.range.end=o.range.end;continue}else s=o;const u=o.range.start.line+" "+o.range.start.character+" "+o.message;i.has(u)||(a.push(o),i.add(u))}return a}runAdditionalValidators(e,t){const n=[];for(const r of this.validators)n.push(...r.validate(e,t));return n}},Y2=class{constructor(){this.formatterEnabled=!0}configure(e){e&&(this.formatterEnabled=e.format)}format(e,t={}){if(!this.formatterEnabled)return[];try{const n=e.getText(),r={parser:"yaml",plugins:[Fv],tabWidth:t.tabWidth||t.tabSize,singleQuote:t.singleQuote,bracketSpacing:t.bracketSpacing,proseWrap:t.proseWrap==="always"?"always":t.proseWrap==="never"?"never":"preserve",printWidth:t.printWidth},s=xv.format(n,r);return[Ir.replace(Vn.create(Qr.create(0,0),e.positionAt(n.length)),s)]}catch{return[]}}},H2=class{constructor(e){this.telemetry=e}findLinks(e){var t;try{const n=Hs.getYamlDocument(e),r=[];for(const s of n.documents)r.push(Kv(e,s));return Promise.all(r).then(s=>[].concat(...s))}catch(n){(t=this.telemetry)==null||t.sendError("yaml.documentLink.error",{error:yi(n)})}}};function z2(e,t){if(!e)return;const n=[],r=Hs.getYamlDocument(e);for(const i of r.documents)r.documents.length>1&&n.push(rl(e,i.root)),i.visit(a=>{var o;if(a.type==="object"&&((o=a.parent)==null?void 0:o.type)==="array"&&n.push(rl(e,a)),a.type==="property"&&a.valueNode)switch(a.valueNode.type){case"array":case"object":n.push(rl(e,a));break;case"string":{const u=e.positionAt(a.offset),l=e.positionAt(a.valueNode.offset+a.valueNode.length);u.line!==l.line&&n.push(rl(e,a));break}default:return!0}return!0});const s=t&&t.rangeLimit;return typeof s!="number"||n.length<=s?n:(t&&t.onRangeLimitExceeded&&t.onRangeLimitExceeded(e.uri),n.slice(0,t.rangeLimit))}function rl(e,t){const n=e.positionAt(t.offset);let r=e.positionAt(t.offset+t.length);const s=e.getText(Vn.create(n,r)),i=s.length-s.trimRight().length;return i>0&&(r=e.positionAt(t.offset+t.length-i)),Ic.create(n.line,r.line,n.character,r.character)}var sl;(function(e){e.JUMP_TO_SCHEMA="jumpToSchema"})(sl||(sl={}));var X2=class{constructor(e){this.indentation=e}write(e){if(e.internalNode.srcToken.type!=="flow-collection")return null;const t=e.internalNode.srcToken,n=t.start.type==="flow-map-start"?"block-map":"block-seq",r=e.parent.type,s={type:n,offset:t.offset,indent:t.indent,items:[]};for(const i of t.items)Yi(i,({key:a,sep:o,value:u})=>{if(n==="block-map"){const l=[{type:"space",indent:0,offset:a.offset,source:this.indentation}];r==="property"&&l.unshift({type:"newline",indent:0,offset:a.offset,source:`
446
+ `}),s.items.push({start:l,key:a,sep:o,value:u})}else n==="block-seq"&&s.items.push({start:[{type:"newline",indent:0,offset:u.offset,source:`
447
+ `},{type:"space",indent:0,offset:u.offset,source:this.indentation},{type:"seq-item-ind",indent:0,offset:u.offset,source:"-"},{type:"space",indent:0,offset:u.offset,source:" "}],value:u});if(u.type==="flow-collection")return Br.SKIP});return Og(s)}},Q2=structuredClone,K2=class{constructor(e){this.clientCapabilities=e,this.indentation=" "}configure(e){this.indentation=e.indentation}getCodeAction(e,t){if(!t.context.diagnostics)return;const n=[];return n.push(...this.getConvertToBooleanActions(t.context.diagnostics,e)),n.push(...this.getJumpToSchemaActions(t.context.diagnostics)),n.push(...this.getTabToSpaceConverting(t.context.diagnostics,e)),n.push(...this.getUnusedAnchorsDelete(t.context.diagnostics,e)),n.push(...this.getConvertToBlockStyleActions(t.context.diagnostics,e)),n.push(...this.getKeyOrderActions(t.context.diagnostics,e)),n}getJumpToSchemaActions(e){var t,n,r,s,i;if(!((s=(r=(n=(t=this.clientCapabilities)==null?void 0:t.window)==null?void 0:n.showDocument)==null?void 0:r.support)!=null?s:!1))return[];const o=new Map;for(const l of e){const b=((i=l.data)==null?void 0:i.schemaUri)||[];for(const c of b)c&&(o.has(c)||o.set(c,[]),o.get(c).push(l))}const u=[];for(const l of o.keys()){const b=hi.create(`Jump to schema location (${Hi.basename(l)})`,qi.create("JumpToSchema",sl.JUMP_TO_SCHEMA,l));b.diagnostics=o.get(l),u.push(b)}return u}getTabToSpaceConverting(e,t){const n=[],r=new Zi(t),s=[];for(const i of e)if(i.message==="Using tabs can lead to unpredictable results"){if(s.includes(i.range.start.line))continue;const a=r.getLineContent(i.range.start.line);let o=0,u="";for(let b=i.range.start.character;b<=i.range.end.character&&a.charAt(b)===" ";b++)o++,u+=this.indentation;s.push(i.range.start.line);let l=i.range;o!==i.range.end.character-i.range.start.character&&(l=Vn.create(i.range.start,Qr.create(i.range.end.line,i.range.start.character+o))),n.push(hi.create("Convert Tab to Spaces",Ya(t.uri,[Ir.replace(l,u)]),Ti.QuickFix))}if(n.length!==0){const i=[];for(let a=0;a<=r.getLineCount();a++){const o=r.getLineContent(a);let u=0,l="";for(let b=0;b<o.length;b++){const c=o.charAt(b);if(c!==" "&&c!==" "){u!==0&&(i.push(Ir.replace(Vn.create(a,b-u,a,b),l)),u=0,l="");break}if(c===" "&&u!==0){i.push(Ir.replace(Vn.create(a,b-u,a,b),l)),u=0,l="";continue}c===" "&&(l+=this.indentation,u++)}u!==0&&i.push(Ir.replace(Vn.create(a,0,a,r.getLineLength(a)),l))}i.length>0&&n.push(hi.create("Convert all Tabs to Spaces",Ya(t.uri,i),Ti.QuickFix))}return n}getUnusedAnchorsDelete(e,t){const n=[],r=new Zi(t);for(const s of e)if(s.message.startsWith("Unused anchor")&&s.source===Qu){const i=Vn.create(s.range.start,s.range.end),a=r.getText(i),o=r.getLineContent(i.end.line),u=Vv(o,i.end.character);i.end.character=u;const l=hi.create(`Delete unused anchor: ${a}`,Ya(t.uri,[Ir.del(i)]),Ti.QuickFix);l.diagnostics=[s],n.push(l)}return n}getConvertToBooleanActions(e,t){const n=[];for(const r of e)if(r.message==='Incorrect type. Expected "boolean".'){const s=t.getText(r.range).toLocaleLowerCase();if(s==='"true"'||s==='"false"'||s==="'true'"||s==="'false'"){const i=s.includes("true")?"true":"false";n.push(hi.create("Convert to boolean",Ya(t.uri,[Ir.replace(r.range,i)]),Ti.QuickFix))}}return n}getConvertToBlockStyleActions(e,t){const n=[];for(const r of e)if(r.code==="flowMap"||r.code==="flowSeq"){const s=C0(t,r);if($r(s.internalNode)||Vr(s.internalNode)){const i=$r(s.internalNode)?"map":"sequence",a=new X2(this.indentation);n.push(hi.create(`Convert to block style ${i}`,Ya(t.uri,[Ir.replace(r.range,a.write(s))]),Ti.QuickFix))}}return n}getKeyOrderActions(e,t){var n,r,s,i,a,o,u,l,b,c,T,K,ne,O;const k=[];for(const me of e)if(me?.code==="mapKeyOrder"){let Se=C0(t,me);for(;Se&&Se.type!=="object";)Se=Se.parent;if(Se&&$r(Se.internalNode)){const _e=Q2(Se.internalNode);if((_e.srcToken.type==="block-map"||_e.srcToken.type==="flow-collection")&&(Se.internalNode.srcToken.type==="block-map"||Se.internalNode.srcToken.type==="flow-collection")){_e.srcToken.items.sort((ve,Pe)=>{if(ve.key&&Pe.key&&Sf(ve.key)&&Sf(Pe.key))return ve.key.source.localeCompare(Pe.key.source);if(!ve.key&&Pe.key)return-1;if(ve.key&&!Pe.key)return 1;if(!ve.key&&!Pe.key)return 0});for(let ve=0;ve<_e.srcToken.items.length;ve++){const Pe=_e.srcToken.items[ve],Fe=Se.internalNode.srcToken.items[ve];if(Pe.start=Fe.start,((n=Pe.value)==null?void 0:n.type)==="alias"||((r=Pe.value)==null?void 0:r.type)==="scalar"||((s=Pe.value)==null?void 0:s.type)==="single-quoted-scalar"||((i=Pe.value)==null?void 0:i.type)==="double-quoted-scalar"){const Be=(u=(o=(a=Pe.value)==null?void 0:a.end)==null?void 0:o.findIndex(Je=>Je.type==="newline"))!=null?u:-1;let xe=null;((l=Fe.value)==null?void 0:l.type)==="block-scalar"?xe=(c=(b=Fe.value)==null?void 0:b.props)==null?void 0:c.find(Je=>Je.type==="newline"):Sf(Fe.value)&&(xe=(K=(T=Fe.value)==null?void 0:T.end)==null?void 0:K.find(Je=>Je.type==="newline")),xe&&Be<0&&(Pe.value.end=(ne=Pe.value.end)!=null?ne:[],Pe.value.end.push(xe)),!xe&&Be>-1&&Pe.value.end.splice(Be,1)}else((O=Pe.value)==null?void 0:O.type)==="block-scalar"&&(Pe.value.props.find(xe=>xe.type==="newline")||Pe.value.props.push({type:"newline",indent:0,offset:Pe.value.offset,source:`
448
+ `}))}}const Ye=Vn.create(t.positionAt(Se.offset),t.positionAt(Se.offset+Se.length));k.push(hi.create("Fix key order for this map",Ya(t.uri,[Ir.replace(Ye,Og(_e.srcToken))]),Ti.QuickFix))}}return k}};function C0(e,t){const n=Hs.getYamlDocument(e),r=e.offsetAt(t.range.start);return Xu(r,n).getNodeFromOffset(r)}function Ya(e,t){const n={};return n[e]=t,{changes:n}}function Z2(e,t){const{position:n}=t,r=new Zi(e);if(t.ch===`
449
+ `){const s=r.getLineContent(n.line-1);if(s.trimRight().endsWith(":")){const i=r.getLineContent(n.line),a=i.substring(n.character,i.length),o=s.indexOf(" - ")!==-1;if(a.trimRight().length===0){const u=n.character-(s.length-s.trimLeft().length);if(u===t.options.tabSize&&!o)return;const l=[];return i.length>0&&l.push(Ir.del(Vn.create(n,Qr.create(n.line,i.length-1)))),l.push(Ir.insert(n," ".repeat(t.options.tabSize+(o?2-u:0)))),l}if(o)return[Ir.insert(n," ".repeat(t.options.tabSize))]}if(s.trimRight().endsWith("|"))return[Ir.insert(n," ".repeat(t.options.tabSize))];if(s.includes(" - ")&&!s.includes(": "))return[Ir.insert(n,"- ")];if(s.includes(" - ")&&s.includes(": "))return[Ir.insert(n," ")]}}function eE(e){const t=new Map;return e&&(e.url?e.url.startsWith("schemaservice://combinedSchema/")?S0(e,t):t.set(e.url,e):S0(e,t)),t}function S0(e,t){e.allOf&&Vf(e.allOf,t),e.anyOf&&Vf(e.anyOf,t),e.oneOf&&Vf(e.oneOf,t)}function Vf(e,t){for(const n of e)!Wa(n)&&n.url&&!t.has(n.url)&&t.set(n.url,n)}var tE=class{constructor(e,t){this.schemaService=e,this.telemetry=t}async getCodeLens(e){var t;const n=[];try{const r=Hs.getYamlDocument(e);let s=new Map;for(const i of r.documents){const a=await this.schemaService.getSchemaForResource(e.uri,i);a?.schema&&(s=new Map([...eE(a?.schema),...s]))}for(const i of s){const a=zc.create(Vn.create(0,0,0,0));a.command={title:s0(i[1],i[0]),command:sl.JUMP_TO_SCHEMA,arguments:[i[0]]},n.push(a)}}catch(r){(t=this.telemetry)==null||t.sendError("yaml.codeLens.error",{error:yi(r)})}return n}resolveCodeLens(e){return e}},nE=class{constructor(){this.spacesDiff=0,this.looksLikeAlignment=!1}};function rE(e,t,n,r,s){s.spacesDiff=0,s.looksLikeAlignment=!1;let i;for(i=0;i<t&&i<r;i++){const T=e.charCodeAt(i),K=n.charCodeAt(i);if(T!==K)break}let a=0,o=0;for(let T=i;T<t;T++)e.charCodeAt(T)===32?a++:o++;let u=0,l=0;for(let T=i;T<r;T++)n.charCodeAt(T)===32?u++:l++;if(a>0&&o>0||u>0&&l>0)return;const b=Math.abs(o-l),c=Math.abs(a-u);if(b===0){s.spacesDiff=c,c>0&&0<=u-1&&u-1<e.length&&u<n.length&&n.charCodeAt(u)!==32&&e.charCodeAt(u-1)===32&&e.charCodeAt(e.length-1)===44&&(s.looksLikeAlignment=!0);return}c%b===0&&(s.spacesDiff=c/b)}function sE(e,t,n){const r=Math.min(e.getLineCount(),1e4);let s=0,i=0,a="",o=0;const u=[2,4,6,8,3,5,7],l=8,b=[0,0,0,0,0,0,0,0,0],c=new nE;for(let ne=1;ne<=r;ne++){const O=e.getLineLength(ne),k=e.getLineContent(ne),me=O<=65536;let Se=!1,_e=0,Ye=0,ve=0;for(let Fe=0,Be=O;Fe<Be;Fe++){const xe=me?k.charCodeAt(Fe):e.getLineCharCode(ne,Fe);if(xe===9)ve++;else if(xe===32)Ye++;else{Se=!0,_e=Fe;break}}if(!Se||(ve>0?s++:Ye>1&&i++,rE(a,o,k,_e,c),c.looksLikeAlignment&&t!==c.spacesDiff))continue;const Pe=c.spacesDiff;Pe<=l&&b[Pe]++,a=k,o=_e}let T=n;s!==i&&(T=s<i);let K=t;if(T){let ne=T?0:.1*r;u.forEach(O=>{const k=b[O];k>ne&&(ne=k,K=O)}),K===4&&b[4]>0&&b[2]>0&&b[2]>=b[4]/2&&(K=2)}return{insertSpaces:T,tabSize:K}}function il(e,t,n,r,s=0,i=0){if(e!==null&&typeof e=="object"){const a=s===0&&r.shouldIndentWithTab||s>0?t+r.indentation:"";if(Array.isArray(e)){if(i+=1,e.length===0)return"";let o="";for(let u=0;u<e.length;u++){let l=e[u];if(typeof e[u]!="object"){o+=`
450
+ `+a+"- "+n(e[u]);continue}Array.isArray(e[u])||(l=iE(e[u],i)),o+=il(l,t,n,r,s+=1,i)}return o}else{const o=Object.keys(e);if(o.length===0)return"";let u=s===0&&r.newLineFirst||s>0?`
451
+ `:"",l=!0;for(let b=0;b<o.length;b++){const c=o[b];if(s===0&&r.existingProps.includes(c))continue;const T=typeof e[c]=="object",K=T?":":": ",ne=T&&/^\s|-/.test(c)?r.indentation:"",O=a+ne,k=l?"":`
452
+ `;if(s===0&&l&&!r.indentFirstObject){const me=il(e[c],O,n,r,s+1,0);u+=k+t+c+K+me}else{const me=il(e[c],O,n,r,s+1,0);u+=k+a+c+K+me}l=!1}return u}}return n(e)}function iE(e,t){const n={};for(let r=0;r<Object.keys(e).length;r++){const s=Object.keys(e)[r];r===0?n["- ".repeat(t)+s]=e[s]:n[" ".repeat(t)+s]=e[s]}return n}var aE=Ua(),F0=/[\\]+"/g,N0=Ss.Class,al="__",oE=class{constructor(e,t={},n,r){this.schemaService=e,this.clientCapabilities=t,this.yamlDocument=n,this.telemetry=r,this.completionEnabled=!0,this.arrayPrefixIndentation=""}configure(e){e&&(this.completionEnabled=e.completion),this.customTags=e.customTags,this.yamlVersion=e.yamlVersion,this.configuredIndentation=e.indentation,this.disableDefaultProperties=e.disableDefaultProperties,this.parentSkeletonSelectedFirst=e.parentSkeletonSelectedFirst}async doComplete(e,t,n=!1,r=!0){var s;const i=Hc.create([],!1);if(!this.completionEnabled)return i;const a=this.yamlDocument.getYamlDocument(e,{customTags:this.customTags,yamlVersion:this.yamlVersion},!0),o=new Zi(e);if(this.configuredIndentation)this.indentation=this.configuredIndentation;else{const ve=sE(o,2,!0);this.indentation=ve.insertSpaces?" ".repeat(ve.tabSize):" "}A0(a.documents,n);for(const ve of a.documents)ve.uri=e.uri;const u=e.offsetAt(t),l=e.getText();if(l.charAt(u-1)===":")return Promise.resolve(i);let b=Xu(u,a);if(b===null)return Promise.resolve(i);b=b.clone();let[c,T]=b.getNodeFromPosition(u,o,this.indentation.length);const K=this.getCurrentWord(e,u);let ne=o.getLineContent(t.line);const O=ne.substring(t.character),k=/^[ ]+\n?$/.test(O);this.arrayPrefixIndentation="";let me=null;if(k){me=Vn.create(t,Qr.create(t.line,ne.length));const ve=ne.trim().length===0,Pe=ne.match(/^\s*(-)\s*$/);if(c&&Wn(c)&&!ve&&!Pe){const Fe=ne.substring(0,t.character),Be=Fe.match(/^[\s-]*([^:]+)?$/)||Fe.match(/:[ \t]((?!:[ \t]).*)$/);Be?.[1]&&(me=Vn.create(Qr.create(t.line,t.character-Be[1].length),Qr.create(t.line,ne.length)))}}else if(c&&Wn(c)&&c.value==="null"){const ve=e.positionAt(c.range[0]);ve.character+=1;const Pe=e.positionAt(c.range[2]);Pe.character+=1,me=Vn.create(ve,Pe)}else if(c&&Wn(c)&&c.value){const ve=e.positionAt(c.range[0]);me=Vn.create(ve,e.positionAt(c.range[1]))}else if(c&&Wn(c)&&c.value===null&&K==="-")me=Vn.create(t,t),this.arrayPrefixIndentation=" ";else{let ve=u-K.length;ve>0&&l[ve-1]==='"'&&ve--,me=Vn.create(e.positionAt(ve),t)}const Se={},_e={add:(ve,Pe)=>{const Fe=function(de){var Ze;if(((Ze=Se[de.label])==null?void 0:Ze.label)===al)return;const He=de.parent.schema,ft=Pf(He),Lt=He.markdownDescription||He.description;let qt=i.items.find(ln=>{var rn;return((rn=ln.parent)==null?void 0:rn.schema)===He&&ln.kind===N0});qt&&qt.parent.insertTexts.includes(de.insertText)||(qt?qt.parent.insertTexts.push(de.insertText):(qt={...de,label:ft,documentation:Lt,sortText:"_"+ft,kind:N0},qt.label=qt.label||de.label,qt.parent.insertTexts=[de.insertText],i.items.push(qt)))},Be=!!ve.parent;let xe=ve.label;if(!xe){console.warn(`Ignoring CompletionItem without label: ${JSON.stringify(ve)}`);return}if(Ga(xe)||(xe=String(xe)),xe=xe.replace(/[\n]/g,"↵"),xe.length>60){const de=xe.substr(0,57).trim()+"...";Se[de]||(xe=de)}if(ve.insertText.endsWith("$1")&&!Be&&(ve.insertText=ve.insertText.substr(0,ve.insertText.length-2)),me&&me.start.line===me.end.line&&(ve.textEdit=Ir.replace(me,ve.insertText)),ve.label=xe,Be){Fe(ve);return}this.arrayPrefixIndentation&&this.updateCompletionText(ve,this.arrayPrefixIndentation+ve.insertText);const Je=Se[xe],ze=Je?.label!==al&&Je?.insertText!==ve.insertText;if(!Je)Se[xe]=ve,i.items.push(ve);else if(ze){const de=this.mergeSimpleInsertTexts(xe,Je.insertText,ve.insertText,Pe);de?this.updateCompletionText(Je,de):(Se[xe]=ve,i.items.push(ve))}Je&&!Je.documentation&&ve.documentation&&(Je.documentation=ve.documentation)},error:ve=>{var Pe;(Pe=this.telemetry)==null||Pe.sendError("yaml.completion.error",{error:yi(ve)})},log:ve=>{console.log(ve)},getNumberOfProposals:()=>i.items.length,result:i,proposed:Se};this.customTags&&this.customTags.length>0&&this.getCustomTagValueCompletions(_e),ne.endsWith(`
453
+ `)&&(ne=ne.substr(0,ne.length-1));try{const ve=await this.schemaService.getSchemaForResource(e.uri,b);if((!ve||ve.errors.length)&&t.line===0&&t.character===0&&!$f(ne)){const xe={kind:Ss.Text,label:"Inline schema",insertText:"# yaml-language-server: $schema=",insertTextFormat:ns.PlainText};i.items.push(xe)}if($f(ne)||w2(a.tokens,u)){const xe=ne.indexOf("$schema=");return xe!==-1&&xe+8<=t.character&&this.schemaService.getAllSchemas().forEach(Je=>{var ze;const de={kind:Ss.Constant,label:(ze=Je.name)!=null?ze:Je.uri,detail:Je.description,insertText:Je.uri,insertTextFormat:ns.PlainText,insertTextMode:Jc.asIs};i.items.push(de)}),i}if(!ve||ve.errors.length)return i;let Pe=null;if(!c)if(!b.internalDocument.contents||Wn(b.internalDocument.contents)){const xe=b.internalDocument.createNode({});xe.range=[u,u+1,u+1],b.internalDocument.contents=xe,b.updateFromInternalDocument(),c=xe}else c=b.findClosestNode(u,o),T=!0;const Fe=c;if(c)if(ne.length===0)c=b.internalDocument.contents;else{const xe=b.getParent(c);if(xe){if(Wn(c)){if(c.value){if(vr(xe)){if(xe.value===c){if(ne.trim().length>0&&ne.indexOf(":")<0){const Je=this.createTempObjNode(K,c,b),ze=b.getParent(xe);if(Vr(b.internalDocument.contents)){const de=A2(b.internalDocument.contents,xe);typeof de=="number"&&(b.internalDocument.set(de,Je),b.updateFromInternalDocument())}else ze&&($r(ze)||Vr(ze))?(ze.set(xe.key,Je),b.updateFromInternalDocument()):(b.internalDocument.set(xe.key,Je),b.updateFromInternalDocument());Pe=Je.items[0],c=Je}else if(ne.trim().length===0){const Je=b.getParent(xe);Je&&(c=Je)}}else if(xe.key===c){const Je=b.getParent(xe);Pe=xe,Je&&(c=Je)}}else if(Vr(xe))if(ne.trim().length>0){const Je=this.createTempObjNode(K,c,b);xe.delete(c),xe.add(Je),b.updateFromInternalDocument(),c=Je}else c=xe}else if(c.value===null){if(vr(xe)){if(xe.key===c)c=xe;else if(yr(xe.key)&&xe.key.range){const Je=b.getParent(xe);if(T&&Je&&$r(Je)&&E2(Je))c=Je;else{const ze=e.positionAt(xe.key.range[0]);if(t.character>ze.character&&t.line!==ze.line){const de=this.createTempObjNode(K,c,b);Je&&($r(Je)||Vr(Je))?(Je.set(xe.key,de),b.updateFromInternalDocument()):(b.internalDocument.set(xe.key,de),b.updateFromInternalDocument()),Pe=de.items[0],c=de}else ze.character===t.character&&Je&&(c=Je)}}}else if(Vr(xe))if(ne.charAt(t.character-1)!=="-"){const Je=this.createTempObjNode(K,c,b);xe.delete(c),xe.add(Je),b.updateFromInternalDocument(),c=Je}else if(ne.charAt(t.character-1)==="-"){const Je=this.createTempObjNode("",c,b);xe.delete(c),xe.add(Je),b.updateFromInternalDocument(),c=Je}else c=xe}}else if($r(c)&&!T&&ne.trim().length===0&&Vr(xe)){const Je=o.getLineContent(t.line+1);(o.getLineCount()===t.line+1||Je.trim().length===0)&&(c=xe)}}else if(Wn(c)){const Je=this.createTempObjNode(K,c,b);b.internalDocument.contents=Je,b.updateFromInternalDocument(),Pe=Je.items[0],c=Je}else if($r(c))for(const Je of c.items)yr(Je.value)&&Je.value.range&&Je.value.range[0]===u+1&&(c=Je.value);else if(Vr(c)&&ne.charAt(t.character-1)!=="-"){const Je=this.createTempObjNode(K,c,b);Je.items=[],b.updateFromInternalDocument();for(const ze of c.items)$r(ze)&&ze.items.forEach(de=>{Je.items.push(de)});c=Je}}if(c&&$r(c)){const xe=c.items;for(const Je of xe)(!Pe||Pe!==Je)&&Wn(Je.key)&&(Se[Je.key.value+""]=Yc.create(al));this.addPropertyCompletions(ve,b,c,Fe,"",_e,o,me,r),!ve&&K.length>0&&l.charAt(u-K.length-1)!=='"'&&_e.add({kind:Ss.Property,label:K,insertText:this.getInsertTextForProperty(K,null,""),insertTextFormat:ns.Snippet})}const Be={};this.getValueCompletions(ve,b,c,u,e,_e,Be,r)}catch(ve){(s=this.telemetry)==null||s.sendError("yaml.completion.error",{error:yi(ve)})}this.finalizeParentCompletion(i);const Ye=i.items.filter((ve,Pe,Fe)=>Pe===Fe.findIndex(Be=>Be.label===ve.label&&Be.insertText===ve.insertText&&Be.kind===ve.kind));return Ye?.length>0&&(i.items=Ye),i}updateCompletionText(e,t){e.insertText=t,e.textEdit&&(e.textEdit.newText=t)}mergeSimpleInsertTexts(e,t,n,r){const s=b=>b.includes(`
454
+ `),i=b=>b.startsWith(`
455
+ `),a=b=>{const c=b.indexOf(`
456
+ `);return c>0&&b.substring(c,b.length).trim().length===0};if(s(t)||s(n))return r&&a(t)&&!a(n)&&!i(n)?n:void 0;const o=this.getValuesFromInsertText(t),u=this.getValuesFromInsertText(n),l=Array.prototype.concat(o,u);if(l.length)return l.length===1?`${e}: \${1:${l[0]}}`:`${e}: \${1|${l.join(",")}|}`}getValuesFromInsertText(e){const t=e.substring(e.indexOf(":")+1).trim();if(!t)return[];const n=t.match(/^\${1[|:]([^|]*)+\|?}$/);return n?n[1].split(","):[t]}finalizeParentCompletion(e){const t=n=>{let r=0;return n.map(s=>{const i=s.match(/\$([0-9]+)|\${[0-9]+:/g);if(!i)return s;const a=i.map(u=>+u.replace(/\${([0-9]+)[:|]/g,"$1").replace("$","")).reduce((u,l)=>l>u?l:u,0),o=s.replace(/\$([0-9]+)/g,(u,l)=>"$"+(+l+r)).replace(/\${([0-9]+)[:|]/g,(u,l)=>"${"+(+l+r)+":");return r+=a,o})};e.items.forEach(n=>{if(cE(n)){const r=n.parent.indent||"";let i=t(n.parent.insertTexts).join(`
457
+ ${r}`);i.endsWith("$1")&&(i=i.substring(0,i.length-2)),n.insertText=this.arrayPrefixIndentation+i,n.textEdit&&(n.textEdit.newText=n.insertText);const a=i.replace(/\${[0-9]+[:|](.*)}/g,(u,l)=>l).replace(/\$([0-9]+)/g,""),o=n.documentation?[n.documentation,"","----",""]:[];n.documentation={kind:di.Markdown,value:[...o,"```yaml",r+a,"```"].join(`
458
+ `)},delete n.parent}})}createTempObjNode(e,t,n){const r={};r[e]=null;const s=n.internalDocument.createNode(r);return s.range=t.range,s.items[0].key.range=t.range,s.items[0].value.range=t.range,s}addPropertyCompletions(e,t,n,r,s,i,a,o,u){var l,b,c;const T=t.getMatchingSchemas(e.schema,-1,null,u),K=a.getText(o),ne=a.getLineContent(o.start.line),O=ne.trim().length===0,k=ne.indexOf(":")!==-1,me=ne.trimLeft().indexOf("-")===0,Se=t.getParent(n),_e=T.find(Pe=>Pe.node.internalNode===r&&Pe.schema.properties),Ye=T.filter(Pe=>Pe.schema.oneOf).map(Pe=>Pe.schema.oneOf)[0];let ve=!1;Ye?.length<T.length&&Ye?.forEach((Pe,Fe)=>{var Be,xe;!((Be=T[Fe])!=null&&Be.schema.oneOf)&&((xe=T[Fe])==null?void 0:xe.schema.properties)===Pe.properties&&(ve=!0)});for(const Pe of T){if((Pe.node.internalNode===n&&!_e||Pe.node.internalNode===r&&!k||((l=Pe.node.parent)==null?void 0:l.internalNode)===r&&!k)&&!Pe.inverted){this.collectDefaultSnippets(Pe.schema,s,i,{newLineFirst:!1,indentFirstObject:!1,shouldIndentWithTab:me});const Fe=Pe.schema.properties;if(Fe){const Be=Pe.schema.maxProperties;if(Be===void 0||n.items===void 0||n.items.length<Be||n.items.length===Be&&!O){for(const xe in Fe)if(Object.prototype.hasOwnProperty.call(Fe,xe)){const Je=Fe[xe];if(typeof Je=="object"&&!Je.deprecationMessage&&!Je.doNotSuggest){let ze="";if(Se&&Vr(Se)&&n.items.length<=1&&!O){const ft=a.getText(),Lt=ft.lastIndexOf("-",n.range[0]-1);if(Lt>=0){const qt=o.end.character-o.start.character;ze=" "+ft.slice(Lt+1,n.range[1]-qt)}}ze+=this.arrayPrefixIndentation;let de;Je.type==="array"&&(de=n.items.find(ft=>Wn(ft.key)&&ft.key.range&&ft.key.value===xe&&Wn(ft.value)&&!ft.value.value&&a.getPosition(ft.key.range[2]).line===o.end.line-1))&&de&&(Array.isArray(Je.items)?this.addSchemaValueCompletions(Je.items[0],s,i,{},"property"):typeof Je.items=="object"&&Je.items.type==="object"&&this.addArrayItemValueCompletion(Je.items,s,i));let Ze=xe;(!xe.startsWith(K)||!k)&&(Ze=this.getInsertTextForProperty(xe,Je,s,ze+this.indentation));const at=Wn(r)&&r.value===null||$r(r)&&r.items.length===0,He=((b=Pe.schema.required)==null?void 0:b.length)>0;(!this.parentSkeletonSelectedFirst||!at||!He)&&i.add({kind:Ss.Property,label:xe,insertText:Ze,insertTextFormat:ns.Snippet,documentation:this.fromMarkup(Je.markdownDescription)||Je.description||""},ve),(c=Pe.schema.required)!=null&&c.includes(xe)&&i.add({label:xe,insertText:this.getInsertTextForProperty(xe,Je,s,ze+this.indentation),insertTextFormat:ns.Snippet,documentation:this.fromMarkup(Je.markdownDescription)||Je.description||"",parent:{schema:Pe.schema,indent:ze}})}}}}if(Se&&Vr(Se)&&Uv(Pe.schema)&&this.addSchemaValueCompletions(Pe.schema,s,i,{},"property",Array.isArray(Se.items)),Pe.schema.propertyNames&&Pe.schema.additionalProperties&&Pe.schema.type==="object"){const Be=fs(Pe.schema.propertyNames),xe=Be.title||"property";i.add({kind:Ss.Property,label:xe,insertText:`\${1:${xe}}: `,insertTextFormat:ns.Snippet,documentation:this.fromMarkup(Be.markdownDescription)||Be.description||""})}}Se&&Pe.node.internalNode===Se&&Pe.schema.defaultSnippets&&(n.items.length===1?this.collectDefaultSnippets(Pe.schema,s,i,{newLineFirst:!1,indentFirstObject:!1,shouldIndentWithTab:!0},1):this.collectDefaultSnippets(Pe.schema,s,i,{newLineFirst:!1,indentFirstObject:!0,shouldIndentWithTab:!1},1))}}getValueCompletions(e,t,n,r,s,i,a,o){let u=null;if(n&&Wn(n)&&(n=t.getParent(n)),!n){this.addSchemaValueCompletions(e.schema,"",i,a,"value");return}if(vr(n)){const l=n.value;if(l&&l.range&&r>l.range[0]+l.range[2])return;u=Wn(n.key)?n.key.value+"":null,n=t.getParent(n)}if(n&&(u!==null||Vr(n))){const b=t.getMatchingSchemas(e.schema,-1,null,o);for(const c of b)if(c.node.internalNode===n&&!c.inverted&&c.schema){if(c.schema.items&&(this.collectDefaultSnippets(c.schema,"",i,{newLineFirst:!1,indentFirstObject:!1,shouldIndentWithTab:!1}),Vr(n)&&n.items))if(Array.isArray(c.schema.items)){const T=this.findItemAtOffset(n,s,r);T<c.schema.items.length&&this.addSchemaValueCompletions(c.schema.items[T],"",i,a,"value")}else typeof c.schema.items=="object"&&(c.schema.items.type==="object"||Bf(c.schema.items))?this.addSchemaValueCompletions(c.schema.items,"",i,a,"value",!0):this.addSchemaValueCompletions(c.schema.items,"",i,a,"value");if(c.schema.properties){const T=c.schema.properties[u];T&&this.addSchemaValueCompletions(T,"",i,a,"value")}c.schema.additionalProperties&&this.addSchemaValueCompletions(c.schema.additionalProperties,"",i,a,"value")}a.boolean&&(this.addBooleanValueCompletion(!0,"",i),this.addBooleanValueCompletion(!1,"",i)),a.null&&this.addNullValueCompletion("",i)}}addArrayItemValueCompletion(e,t,n,r){const s=Pf(e),i=`- ${this.getInsertTextForObject(e,t).insertText.trimLeft()}`,a=s?" type `"+s+"`":"",o=e.description?" ("+e.description+")":"",u=this.getDocumentationWithMarkdownText(`Create an item of an array${a}${o}`,i);n.add({kind:this.getSuggestionKind(e.type),label:"- (array item) "+(s||r),documentation:u,insertText:i,insertTextFormat:ns.Snippet})}getInsertTextForProperty(e,t,n,r=this.indentation){const s=this.getInsertTextForValue(e,"","string"),i=s+":";let a,o=0;if(t){let u=Array.isArray(t.type)?t.type[0]:t.type;if(u||(t.properties?u="object":t.items?u="array":t.anyOf&&(u="anyOf")),Array.isArray(t.defaultSnippets)){if(t.defaultSnippets.length===1){const l=t.defaultSnippets[0].body;Qi(l)&&(a=this.getInsertTextForSnippetValue(l,"",{newLineFirst:!0,indentFirstObject:!1,shouldIndentWithTab:!1},[],1),!a.startsWith(" ")&&!a.startsWith(`
459
+ `)&&(a=" "+a))}o+=t.defaultSnippets.length}if(t.enum&&(!a&&t.enum.length===1&&(a=" "+this.getInsertTextForGuessedValue(t.enum[0],"",u)),o+=t.enum.length),t.const&&(a||(a=this.getInsertTextForGuessedValue(t.const,"",u),a=lE(a),a=" "+a),o++),Qi(t.default)&&(a||(a=" "+this.getInsertTextForGuessedValue(t.default,"",u)),o++),Array.isArray(t.examples)&&t.examples.length&&(a||(a=" "+this.getInsertTextForGuessedValue(t.examples[0],"",u)),o+=t.examples.length),t.properties)return`${i}
460
+ ${this.getInsertTextForObject(t,n,r).insertText}`;if(t.items)return`${i}
461
+ ${r}- ${this.getInsertTextForArray(t.items,n,1,r).insertText}`;if(o===0)switch(u){case"boolean":a=" $1";break;case"string":a=" $1";break;case"object":a=`
462
+ ${r}`;break;case"array":a=`
463
+ ${r}- `;break;case"number":case"integer":a=" ${1:0}";break;case"null":a=" ${1:null}";break;case"anyOf":a=" $1";break;default:return s}}return(!a||o>1)&&(a=" $1"),i+a+n}getInsertTextForObject(e,t,n=this.indentation,r=1){let s="";return e.properties?(Object.keys(e.properties).forEach(i=>{const a=e.properties[i];let o=Array.isArray(a.type)?a.type[0]:a.type;if(o||(a.anyOf&&(o="anyOf"),a.properties&&(o="object"),a.items&&(o="array")),e.required&&e.required.indexOf(i)>-1)switch(o){case"boolean":case"string":case"number":case"integer":case"anyOf":{let u=a.default||a.const;u?(o==="string"&&(u=ol(u)),s+=`${n}${i}: \${${r++}:${u}}
464
+ `):s+=`${n}${i}: $${r++}
465
+ `;break}case"array":{const u=this.getInsertTextForArray(a.items,t,r++,n),l=u.insertText.split(`
466
+ `);let b=u.insertText;if(l.length>1){for(let c=1;c<l.length;c++){const T=l[c];l[c]=` ${T}`}b=l.join(`
467
+ `)}r=u.insertIndex,s+=`${n}${i}:
468
+ ${n}${this.indentation}- ${b}
469
+ `}break;case"object":{const u=this.getInsertTextForObject(a,t,`${n}${this.indentation}`,r++);r=u.insertIndex,s+=`${n}${i}:
470
+ ${u.insertText}
471
+ `}break}else if(!this.disableDefaultProperties&&a.default!==void 0)switch(o){case"boolean":case"number":case"integer":s+=`${n}${i==="null"?this.getInsertTextForValue(i,"","string"):i}: \${${r++}:${a.default}}
472
+ `;break;case"string":s+=`${n}${i}: \${${r++}:${ol(a.default)}}
473
+ `;break}}),s.trim().length===0&&(s=`${n}$${r++}
474
+ `),s=s.trimRight()+t,{insertText:s,insertIndex:r}):(s=`${n}$${r++}
475
+ `,{insertText:s,insertIndex:r})}getInsertTextForArray(e,t,n=1,r=this.indentation){let s="";if(!e)return s=`$${n++}`,{insertText:s,insertIndex:n};let i=Array.isArray(e.type)?e.type[0]:e.type;switch(i||(e.properties&&(i="object"),e.items&&(i="array")),e.type){case"boolean":s=`\${${n++}:false}`;break;case"number":case"integer":s=`\${${n++}:0}`;break;case"string":s=`\${${n++}}`;break;case"object":{const a=this.getInsertTextForObject(e,t,`${r} `,n++);s=a.insertText.trimLeft(),n=a.insertIndex}break}return{insertText:s,insertIndex:n}}getInsertTextForGuessedValue(e,t,n){switch(typeof e){case"object":return e===null?"${1:null}"+t:this.getInsertTextForValue(e,t,n);case"string":{let r=JSON.stringify(e);return r=r.substr(1,r.length-2),r=this.getInsertTextForPlainText(r),n==="string"&&(r=ol(r)),"${1:"+r+"}"+t}case"number":case"boolean":return"${1:"+e+"}"+t}return this.getInsertTextForValue(e,t,n)}getInsertTextForPlainText(e){return e.replace(/[\\$}]/g,"\\$&")}getInsertTextForValue(e,t,n){if(e===null)return"null";switch(typeof e){case"object":{const r=this.indentation;return this.getInsertTemplateForValue(e,r,{index:1},t)}case"number":case"boolean":return this.getInsertTextForPlainText(e+t)}return n=Array.isArray(n)?n[0]:n,n==="string"&&(e=ol(e)),this.getInsertTextForPlainText(e+t)}getInsertTemplateForValue(e,t,n,r){if(Array.isArray(e)){let s=`
476
+ `;for(const i of e)s+=`${t}- \${${n.index++}:${i}}
477
+ `;return s}else if(typeof e=="object"){let s=`
478
+ `;for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)){const a=e[i];s+=`${t}\${${n.index++}:${i}}:`;let o;typeof a=="object"?o=`${this.getInsertTemplateForValue(a,t+this.indentation,n,r)}`:o=` \${${n.index++}:${this.getInsertTextForPlainText(a+r)}}
479
+ `,s+=`${o}`}return s}return this.getInsertTextForPlainText(e+r)}addSchemaValueCompletions(e,t,n,r,s,i){typeof e=="object"&&(this.addEnumValueCompletions(e,t,n,i),this.addDefaultValueCompletions(e,t,n),this.collectTypes(e,r),i&&s==="value"&&!Bf(e)&&this.addArrayItemValueCompletion(e,t,n),Array.isArray(e.allOf)&&e.allOf.forEach(a=>this.addSchemaValueCompletions(a,t,n,r,s,i)),Array.isArray(e.anyOf)&&e.anyOf.forEach(a=>this.addSchemaValueCompletions(a,t,n,r,s,i)),Array.isArray(e.oneOf)&&e.oneOf.forEach(a=>this.addSchemaValueCompletions(a,t,n,r,s,i)))}collectTypes(e,t){if(Array.isArray(e.enum)||Qi(e.const))return;const n=e.type;Array.isArray(n)?n.forEach(function(r){return t[r]=!0}):n&&(t[n]=!0)}addDefaultValueCompletions(e,t,n,r=0){let s=!1;if(Qi(e.default)){let i=e.type,a=e.default;for(let u=r;u>0;u--)a=[a],i="array";let o;typeof a=="object"?o="Default value":o=a.toString().replace(F0,'"'),n.add({kind:this.getSuggestionKind(i),label:o,insertText:this.getInsertTextForValue(a,t,i),insertTextFormat:ns.Snippet,detail:aE("json.suggest.default","Default value")}),s=!0}Array.isArray(e.examples)&&e.examples.forEach(i=>{let a=e.type,o=i;for(let u=r;u>0;u--)o=[o],a="array";n.add({kind:this.getSuggestionKind(a),label:this.getLabelForValue(o),insertText:this.getInsertTextForValue(o,t,a),insertTextFormat:ns.Snippet}),s=!0}),this.collectDefaultSnippets(e,t,n,{newLineFirst:!0,indentFirstObject:!0,shouldIndentWithTab:!0}),!s&&typeof e.items=="object"&&!Array.isArray(e.items)&&this.addDefaultValueCompletions(e.items,t,n,r+1)}addEnumValueCompletions(e,t,n,r){if(Qi(e.const)&&!r&&n.add({kind:this.getSuggestionKind(e.type),label:this.getLabelForValue(e.const),insertText:this.getInsertTextForValue(e.const,t,e.type),insertTextFormat:ns.Snippet,documentation:this.fromMarkup(e.markdownDescription)||e.description}),Array.isArray(e.enum))for(let s=0,i=e.enum.length;s<i;s++){const a=e.enum[s];let o=this.fromMarkup(e.markdownDescription)||e.description;e.markdownEnumDescriptions&&s<e.markdownEnumDescriptions.length&&this.doesSupportMarkdown()?o=this.fromMarkup(e.markdownEnumDescriptions[s]):e.enumDescriptions&&s<e.enumDescriptions.length&&(o=e.enumDescriptions[s]),n.add({kind:this.getSuggestionKind(e.type),label:this.getLabelForValue(a),insertText:this.getInsertTextForValue(a,t,e.type),insertTextFormat:ns.Snippet,documentation:o})}}getLabelForValue(e){return e===null?"null":Array.isArray(e)?JSON.stringify(e):""+e}collectDefaultSnippets(e,t,n,r,s=0){if(Array.isArray(e.defaultSnippets))for(const i of e.defaultSnippets){let a=e.type,o=i.body,u=i.label,l,b;if(Qi(o)){const c=i.type||e.type;if(s===0&&c==="array"){const K={};Object.keys(o).forEach((ne,O)=>{O===0&&!ne.startsWith("-")?K[`- ${ne}`]=o[ne]:K[` ${ne}`]=o[ne]}),o=K}const T=Object.keys(n.proposed).filter(K=>n.proposed[K].label===al);if(l=this.getInsertTextForSnippetValue(o,t,r,T),l===""&&o)continue;u=u||this.getLabelForSnippetValue(o)}else if(typeof i.bodyText=="string"){let c="",T="",K="";for(let ne=s;ne>0;ne--)c=c+K+`[
480
+ `,T=T+`
481
+ `+K+"]",K+=this.indentation,a="array";l=c+K+i.bodyText.split(`
482
+ `).join(`
483
+ `+K)+T+t,u=u||l,b=l.replace(/[\n]/g,"")}n.add({kind:i.suggestionKind||this.getSuggestionKind(a),label:u,sortText:i.sortText||i.label,documentation:this.fromMarkup(i.markdownDescription)||i.description,insertText:l,insertTextFormat:ns.Snippet,filterText:b})}}getInsertTextForSnippetValue(e,t,n,r,s){return il(e,"",a=>{if(typeof a=="string"){if(a[0]==="^")return a.substr(1);if(a==="true"||a==="false")return`"${a}"`}return a},{...n,indentation:this.indentation,existingProps:r},s)+t}addBooleanValueCompletion(e,t,n){n.add({kind:this.getSuggestionKind("boolean"),label:e?"true":"false",insertText:this.getInsertTextForValue(e,t,"boolean"),insertTextFormat:ns.Snippet,documentation:""})}addNullValueCompletion(e,t){t.add({kind:this.getSuggestionKind("null"),label:"null",insertText:"null"+e,insertTextFormat:ns.Snippet,documentation:""})}getLabelForSnippetValue(e){return JSON.stringify(e).replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1")}getCustomTagValueCompletions(e){u0(this.customTags).forEach(n=>{const r=n.split(" ")[0];this.addCustomTagValueCompletion(e," ",r)})}addCustomTagValueCompletion(e,t,n){e.add({kind:this.getSuggestionKind("string"),label:n,insertText:n+t,insertTextFormat:ns.Snippet,documentation:""})}getDocumentationWithMarkdownText(e,t){let n=e;return this.doesSupportMarkdown()&&(t=t.replace(/\${[0-9]+[:|](.*)}/g,(r,s)=>s).replace(/\$([0-9]+)/g,""),n=this.fromMarkup(`${e}
484
+ \`\`\`
485
+ ${t}
486
+ \`\`\``)),n}getSuggestionKind(e){if(Array.isArray(e)){const t=e;e=t.length>0?t[0]:null}if(!e)return Ss.Value;switch(e){case"string":return Ss.Value;case"object":return Ss.Module;case"property":return Ss.Property;default:return Ss.Value}}getCurrentWord(e,t){let n=t-1;const r=e.getText();for(;n>=0&&`
487
+ \r\v":{[,]}`.indexOf(r.charAt(n))===-1;)n--;return r.substring(n+1,t)}fromMarkup(e){if(e&&this.doesSupportMarkdown())return{kind:di.Markdown,value:e}}doesSupportMarkdown(){if(this.supportsMarkdown===void 0){const e=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsMarkdown=e&&e.completionItem&&Array.isArray(e.completionItem.documentationFormat)&&e.completionItem.documentationFormat.indexOf(di.Markdown)!==-1}return this.supportsMarkdown}findItemAtOffset(e,t,n){for(let r=e.items.length-1;r>=0;r--){const s=e.items[r];if(yr(s)&&s.range){if(n>s.range[1])return r;if(n>=s.range[0])return r}}return 0}},uE=/^\d+$/;function ol(e){let t;if(typeof e=="string"?t=e:t=""+e,t.length===0)return t;if(t==="true"||t==="false"||t==="null"||uE.test(t))return`"${t}"`;t.indexOf('"')!==-1&&(t=t.replace(F0,'"'));let n=!isNaN(parseInt(t))||t.charAt(0)==="@";if(!n){let r=t.indexOf(":",0);for(;r>0&&r<t.length;r=t.indexOf(":",r+1)){if(r===t.length-1){n=!0;break}const s=t.charAt(r+1);if(s===" "||s===" "){n=!0;break}}}return n&&(t=`"${t}"`),t}function lE(e){return e.replace(/\$\{1:(.*)\}/,"$1")}function cE(e){return"parent"in e}var fE=class{constructor(e){this.telemetry=e}getDefinition(e,t){var n;try{const r=Hs.getYamlDocument(e),s=e.offsetAt(t.position),i=Xu(s,r);if(i){const[a]=i.getNodeFromPosition(s,new Zi(e));if(a&&Us(a)){const o=a.resolve(i.internalDocument);if(o&&o.range){const u=Vn.create(e.positionAt(o.range[0]),e.positionAt(o.range[2])),l=Vn.create(e.positionAt(o.range[0]),e.positionAt(o.range[1]));return[Bc.create(e.uri,u,l)]}}}}catch(r){(n=this.telemetry)==null||n.sendError("yaml.definition.error",{error:yi(r)})}}};function pE(e,t){const n=Hs.getYamlDocument(e);return t.map(a=>{const o=r(a);let u;for(const l of o)u=Cu.create(l,u);return u??Cu.create({start:a,end:a})});function r(a){const o=e.offsetAt(a),u=[];for(const l of n.documents){let b,c;for(l.visit(T=>{const K=T.offset+T.length;if(K<o||i(K-1,K)===`
488
+ `&&K-1<o)return!0;let ne=T.offset;if(ne>o){const O=s(T,a);if(!O||O>o)return!0;ne=O}return(!b||ne>=b.offset)&&(b=T,c=ne),!0});b;){const T=c??b.offset,K=b.offset+b.length,ne={start:e.positionAt(T),end:e.positionAt(K)},O=e.getText(ne),k=dE(O),me=T+k.length;me>=o&&(ne.end=e.positionAt(me));const Se=(_e,Ye)=>k.startsWith(_e)&&k.endsWith(Ye||_e);(b.type==="string"&&(Se("'")||Se('"'))||b.type==="object"&&Se("{","}")||b.type==="array"&&Se("[","]"))&&u.push({start:e.positionAt(T+1),end:e.positionAt(K-1)}),u.push(ne),b=b.parent,c=void 0}if(u.length>0)break}return u.reverse()}function s(a,o){var u;const l=e.positionAt(a.offset);if(l.line===o.line){if(((u=a.parent)==null?void 0:u.type)==="array"&&i(a.offset-2,a.offset)==="- ")return a.offset-2;if(a.type==="array"||a.type==="object"){const b={line:l.line,character:0};if(e.getText({start:b,end:l}).trim().length===0)return e.offsetAt(b)}}}function i(a,o){return e.getText({start:e.positionAt(a),end:e.positionAt(o)})}}function dE(e){return e.endsWith(`\r
489
+ `)?e.substring(0,e.length-2):e.endsWith(`
490
+ `)?e.substring(0,e.length-1):e}var qf;(function(e){e[e.SchemaStore=1]="SchemaStore",e[e.SchemaAssociation=2]="SchemaAssociation",e[e.Settings=3]="Settings"})(qf||(qf={}));function hE(e){const t=new M2(e.schemaRequestService,e.workspaceContext),n=new oE(t,e.clientCapabilities,Hs,e.telemetry),r=new O2(t,e.telemetry),s=new I2(t,e.telemetry),i=new J2(t,e.telemetry),a=new Y2,o=new K2(e.clientCapabilities),u=new tE(t,e.telemetry),l=new H2(e.telemetry),b=new fE(e.telemetry);return{configure:c=>{t.clearExternalSchemas(),c.schemas&&(t.schemaPriorityMapping=new Map,c.schemas.forEach(T=>{const K=T.priority?T.priority:0;t.addSchemaPriority(T.uri,K),t.registerExternalSchema(T.uri,T.fileMatch,T.schema,T.name,T.description,T.versions)})),i.configure(c),r.configure(c),n.configure(c),a.configure(c),o.configure(c)},registerCustomSchemaProvider:c=>{t.registerCustomSchemaProvider(c)},findLinks:l.findLinks.bind(l),doComplete:n.doComplete.bind(n),doValidation:i.doValidation.bind(i),doHover:r.doHover.bind(r),findDocumentSymbols:s.findDocumentSymbols.bind(s),findDocumentSymbols2:s.findHierarchicalDocumentSymbols.bind(s),doDefinition:b.getDefinition.bind(b),resetSchema:c=>t.onResourceChange(c),doFormat:a.format.bind(a),doDocumentOnTypeFormatting:Z2,addSchema:(c,T)=>t.saveSchema(c,T),deleteSchema:c=>t.deleteSchema(c),modifySchemaContent:c=>t.addContent(c),deleteSchemaContent:c=>t.deleteContent(c),deleteSchemasWhole:c=>t.deleteSchemas(c),getFoldingRanges:z2,getSelectionRanges:pE,getCodeAction:(c,T)=>o.getCodeAction(c,T),getCodeLens:c=>u.getCodeLens(c),resolveCodeLens:c=>u.resolveCodeLens(c)}}async function mE(e){const t=await fetch(e);if(t.ok)return t.text();throw new Error(`Schema request failed for ${e}`)}var gE={send(){},sendError(e,t){console.error("monaco-yaml",e,t)},sendTrack(){}},yE={resolveRelativePath(e,t){return String(new URL(e,t))}};rb((e,{enableSchemaRequest:t,...n})=>{const r=hE({schemaRequestService:t?mE:null,telemetry:gE,workspaceContext:yE,clientCapabilities:{textDocument:{completion:{completionItem:{commitCharactersSupport:!0,documentationFormat:["markdown","plaintext"]}},moniker:{}}}}),s=i=>(a,...o)=>{const u=e.getMirrorModels();for(const l of u)if(String(l.uri)===a)return i(Tc.create(a,"yaml",l.version,l.getValue()),...o)};return r.configure(n),{doValidation:s(i=>r.doValidation(i,!!n.isKubernetes)),doComplete:s((i,a)=>r.doComplete(i,a,!!n.isKubernetes)),doDefinition:s((i,a)=>r.doDefinition(i,{position:a,textDocument:i})),doDocumentOnTypeFormatting:s((i,a,o,u)=>r.doDocumentOnTypeFormatting(i,{ch:o,options:u,position:a,textDocument:i})),doHover:s(r.doHover),format:s(r.doFormat),resetSchema:r.resetSchema,findDocumentSymbols:s(r.findDocumentSymbols2),findLinks:s(r.findLinks),getCodeAction:s((i,a,o)=>r.getCodeAction(i,{range:a,textDocument:i,context:o})),getFoldingRanges:s(i=>r.getFoldingRanges(i,{lineFoldingOnly:!0})),getSelectionRanges:s(r.getSelectionRanges)}})})();