@journeyapps-labs/reactor-mod-editor 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (170) hide show
  1. package/README.md +10 -0
  2. package/dist/@types/EditorModule.d.ts +7 -0
  3. package/dist/@types/MonacoCommandPalletSearchEngine.d.ts +21 -0
  4. package/dist/@types/actions/ChangeEditorThemeAction.d.ts +9 -0
  5. package/dist/@types/index.d.ts +16 -0
  6. package/dist/@types/languages/languages.d.ts +39 -0
  7. package/dist/@types/languages/logs.d.ts +3 -0
  8. package/dist/@types/providers/EditorThemeProvider.d.ts +14 -0
  9. package/dist/@types/settings/StoredThemesSettings.d.ts +13 -0
  10. package/dist/@types/settings/VimSupportSetting.d.ts +7 -0
  11. package/dist/@types/shortcuts/MonacoShortcut.d.ts +9 -0
  12. package/dist/@types/shortcuts/MonacoShortcutHandler.d.ts +17 -0
  13. package/dist/@types/shortcuts/MonacoShortcutMap.d.ts +83 -0
  14. package/dist/@types/stores/MonacoStore.d.ts +38 -0
  15. package/dist/@types/stores/MonacoThemeStore.d.ts +34 -0
  16. package/dist/@types/stores/keybindings/KeybindingsRegistry.d.ts +46 -0
  17. package/dist/@types/stores/keybindings/MonacoKeybindingStore.d.ts +27 -0
  18. package/dist/@types/stores/keybindings/definitions.d.ts +21 -0
  19. package/dist/@types/stores/keybindings/utils.d.ts +2 -0
  20. package/dist/@types/theme/EditorThemePreferencesWidget.d.ts +26 -0
  21. package/dist/@types/theme/SmartEditorThemePreferencesWidget.d.ts +8 -0
  22. package/dist/@types/theme/UploadVSIXThemeBtnWidget.d.ts +12 -0
  23. package/dist/@types/theme/patchThemeService.d.ts +9 -0
  24. package/dist/@types/theme/theme-utils.d.ts +61 -0
  25. package/dist/@types/theme-reactor/editor-theme-fragment.d.ts +41 -0
  26. package/dist/@types/utils/paths.d.ts +23 -0
  27. package/dist/@types/utils/useEditorStickyHeader.d.ts +8 -0
  28. package/dist/@types/widgets/DualEditorWidget.d.ts +7 -0
  29. package/dist/@types/widgets/EditorWidget.d.ts +15 -0
  30. package/dist/@types/widgets/MonacoEditorWidget.d.ts +10 -0
  31. package/dist/@types/widgets/SimpleEditorWidget.d.ts +8 -0
  32. package/dist/EditorModule.js +73 -0
  33. package/dist/EditorModule.js.map +1 -0
  34. package/dist/MonacoCommandPalletSearchEngine.js +52 -0
  35. package/dist/MonacoCommandPalletSearchEngine.js.map +1 -0
  36. package/dist/actions/ChangeEditorThemeAction.js +43 -0
  37. package/dist/actions/ChangeEditorThemeAction.js.map +1 -0
  38. package/dist/index.js +33 -0
  39. package/dist/index.js.map +1 -0
  40. package/dist/languages/languages.js +155 -0
  41. package/dist/languages/languages.js.map +1 -0
  42. package/dist/languages/logs.js +110 -0
  43. package/dist/languages/logs.js.map +1 -0
  44. package/dist/providers/EditorThemeProvider.js +26 -0
  45. package/dist/providers/EditorThemeProvider.js.map +1 -0
  46. package/dist/settings/StoredThemesSettings.js +45 -0
  47. package/dist/settings/StoredThemesSettings.js.map +1 -0
  48. package/dist/settings/VimSupportSetting.js +19 -0
  49. package/dist/settings/VimSupportSetting.js.map +1 -0
  50. package/dist/shortcuts/MonacoShortcut.js +27 -0
  51. package/dist/shortcuts/MonacoShortcut.js.map +1 -0
  52. package/dist/shortcuts/MonacoShortcutHandler.js +119 -0
  53. package/dist/shortcuts/MonacoShortcutHandler.js.map +1 -0
  54. package/dist/shortcuts/MonacoShortcutMap.js +84 -0
  55. package/dist/shortcuts/MonacoShortcutMap.js.map +1 -0
  56. package/dist/stores/MonacoStore.js +119 -0
  57. package/dist/stores/MonacoStore.js.map +1 -0
  58. package/dist/stores/MonacoThemeStore.js +143 -0
  59. package/dist/stores/MonacoThemeStore.js.map +1 -0
  60. package/dist/stores/keybindings/KeybindingsRegistry.js +131 -0
  61. package/dist/stores/keybindings/KeybindingsRegistry.js.map +1 -0
  62. package/dist/stores/keybindings/MonacoKeybindingStore.js +105 -0
  63. package/dist/stores/keybindings/MonacoKeybindingStore.js.map +1 -0
  64. package/dist/stores/keybindings/definitions.js +5 -0
  65. package/dist/stores/keybindings/definitions.js.map +1 -0
  66. package/dist/stores/keybindings/utils.js +12 -0
  67. package/dist/stores/keybindings/utils.js.map +1 -0
  68. package/dist/theme/EditorThemePreferencesWidget.js +160 -0
  69. package/dist/theme/EditorThemePreferencesWidget.js.map +1 -0
  70. package/dist/theme/SmartEditorThemePreferencesWidget.js +62 -0
  71. package/dist/theme/SmartEditorThemePreferencesWidget.js.map +1 -0
  72. package/dist/theme/UploadVSIXThemeBtnWidget.js +93 -0
  73. package/dist/theme/UploadVSIXThemeBtnWidget.js.map +1 -0
  74. package/dist/theme/patchThemeService.js +146 -0
  75. package/dist/theme/patchThemeService.js.map +1 -0
  76. package/dist/theme/theme-utils.js +65 -0
  77. package/dist/theme/theme-utils.js.map +1 -0
  78. package/dist/theme-reactor/editor-theme-fragment.js +70 -0
  79. package/dist/theme-reactor/editor-theme-fragment.js.map +1 -0
  80. package/dist/tsconfig.tsbuildinfo +1 -0
  81. package/dist/utils/paths.js +110 -0
  82. package/dist/utils/paths.js.map +1 -0
  83. package/dist/utils/useEditorStickyHeader.js +45 -0
  84. package/dist/utils/useEditorStickyHeader.js.map +1 -0
  85. package/dist/widgets/DualEditorWidget.js +79 -0
  86. package/dist/widgets/DualEditorWidget.js.map +1 -0
  87. package/dist/widgets/EditorWidget.js +85 -0
  88. package/dist/widgets/EditorWidget.js.map +1 -0
  89. package/dist/widgets/MonacoEditorWidget.js +29 -0
  90. package/dist/widgets/MonacoEditorWidget.js.map +1 -0
  91. package/dist/widgets/SimpleEditorWidget.js +71 -0
  92. package/dist/widgets/SimpleEditorWidget.js.map +1 -0
  93. package/dist-module/00a5102416a37050fa62.tmLanguage +1282 -0
  94. package/dist-module/092ac75109eb363dd826.tmLanguage +424 -0
  95. package/dist-module/100.bundle.js +1 -0
  96. package/dist-module/116.bundle.js +1 -0
  97. package/dist-module/173.bundle.js +1 -0
  98. package/dist-module/179.bundle.js +1 -0
  99. package/dist-module/18358219dee0ad14cc0c.tmLanguage +765 -0
  100. package/dist-module/195.bundle.js +1 -0
  101. package/dist-module/277.bundle.js +1 -0
  102. package/dist-module/299.bundle.js +1 -0
  103. package/dist-module/306.bundle.js +1 -0
  104. package/dist-module/344.bundle.js +1 -0
  105. package/dist-module/399345f371a7cb9eb1ba.tmLanguage +629 -0
  106. package/dist-module/404.bundle.js +4 -0
  107. package/dist-module/404.bundle.js.LICENSE.txt +6 -0
  108. package/dist-module/404.bundle.js.map +1 -0
  109. package/dist-module/43.bundle.js +1 -0
  110. package/dist-module/438.bundle.js +3 -0
  111. package/dist-module/438.bundle.js.map +1 -0
  112. package/dist-module/479.bundle.js +1 -0
  113. package/dist-module/491.bundle.js +1 -0
  114. package/dist-module/513.bundle.js +1 -0
  115. package/dist-module/549.bundle.js +1 -0
  116. package/dist-module/5e221c90a0dcbd4af855.tmLanguage +237 -0
  117. package/dist-module/6486a2df9ca5896c2cb6.tmLanguage +5739 -0
  118. package/dist-module/65.bundle.js +1 -0
  119. package/dist-module/66.bundle.js +1 -0
  120. package/dist-module/685.bundle.js +1 -0
  121. package/dist-module/6e3d5ec6699a8d147d29.wasm +0 -0
  122. package/dist-module/7.bundle.js +1 -0
  123. package/dist-module/703774d50b4d4526a465.tmLanguage +386 -0
  124. package/dist-module/717.bundle.js +2 -0
  125. package/dist-module/728.bundle.js +1 -0
  126. package/dist-module/77a7afbe329083ed0f59.tmLanguage +1183 -0
  127. package/dist-module/78.bundle.js +1 -0
  128. package/dist-module/829.bundle.js +1 -0
  129. package/dist-module/831968f77a9412d07cc2.tmLanguage +506 -0
  130. package/dist-module/862.bundle.js +1 -0
  131. package/dist-module/87.bundle.js +1 -0
  132. package/dist-module/923.bundle.js +1 -0
  133. package/dist-module/931.bundle.js +1 -0
  134. package/dist-module/933.bundle.js +3 -0
  135. package/dist-module/933.bundle.js.map +1 -0
  136. package/dist-module/970.bundle.js +1 -0
  137. package/dist-module/984.bundle.js +1 -0
  138. package/dist-module/992.bundle.js +1 -0
  139. package/dist-module/996.bundle.js +1 -0
  140. package/dist-module/9c8494157d226e95da5e.tmLanguage +1377 -0
  141. package/dist-module/a3e215de85a86294de8a.tmLanguage +385 -0
  142. package/dist-module/ba5650c2a0269a236153.tmLanguage +9349 -0
  143. package/dist-module/bundle.js +97 -0
  144. package/dist-module/bundle.js.LICENSE.txt +27 -0
  145. package/dist-module/bundle.js.map +1 -0
  146. package/dist-module/editor.worker.bundle.js +1 -0
  147. package/dist-module/f6283f7ccaed1249d9eb.ttf +0 -0
  148. package/dist-module/json.worker.bundle.js +2 -0
  149. package/dist-module/json.worker.bundle.js.LICENSE.txt +6 -0
  150. package/dist-module/yaml.worker.bundle.js +1 -0
  151. package/media/css.tmLanguage +1183 -0
  152. package/media/handlebars.tmLanguage +1282 -0
  153. package/media/html.tmLanguage +506 -0
  154. package/media/javascript.tmLanguage +5739 -0
  155. package/media/json.tmLanguage +386 -0
  156. package/media/jxml.tmLanguage +424 -0
  157. package/media/markdown.tmLanguage +1377 -0
  158. package/media/regularExpressions.tmLanguage +237 -0
  159. package/media/sql.tmLanguage +765 -0
  160. package/media/themes/ayu-light.json5 +847 -0
  161. package/media/themes/ayu-mirage.json5 +846 -0
  162. package/media/themes/journey.json5 +1061 -0
  163. package/media/themes/oxide.json5 +579 -0
  164. package/media/themes/reactor.json5 +775 -0
  165. package/media/themes/scarlet.json5 +836 -0
  166. package/media/typescript.tmLanguage +9349 -0
  167. package/media/xml.tmLanguage +385 -0
  168. package/media/yaml.tmLanguage +629 -0
  169. package/package.json +45 -0
  170. package/reactor.config.json +4 -0
@@ -0,0 +1 @@
1
+ (()=>{var e,t,n={6:(e,t,n)=>{"use strict";n.d(t,{lt:()=>h,W5:()=>g,hB:()=>m,dr:()=>f,wC:()=>p});var r=n(5259),i=n(9223),s=n(5863);class o extends s.V{constructor(e,t){super(0),this._segmenter=null,this._cachedLine=null,this._cachedSegments=[],this.intlSegmenterLocales=t,this.intlSegmenterLocales.length>0?this._segmenter=new Intl.Segmenter(this.intlSegmenterLocales,{granularity:"word"}):this._segmenter=null;for(let t=0,n=e.length;t<n;t++)this.set(e.charCodeAt(t),2);this.set(32,1),this.set(9,1)}findPrevIntlWordBeforeOrAtOffset(e,t){let n=null;for(const r of this._getIntlSegmenterWordsOnLine(e)){if(r.index>t)break;n=r}return n}findNextIntlWordAtOrAfterOffset(e,t){for(const n of this._getIntlSegmenterWordsOnLine(e))if(!(n.index<t))return n;return null}_getIntlSegmenterWordsOnLine(e){return this._segmenter?(this._cachedLine===e||(this._cachedLine=e,this._cachedSegments=this._filterWordSegments(this._segmenter.segment(e))),this._cachedSegments):[]}_filterWordSegments(e){const t=[];for(const n of e)this._isWordLike(n)&&t.push(n);return t}_isWordLike(e){return!!e.isWordLike}}const a=new i.qK(10);var l=n(3434),u=n(520),c=n(1284);class h{constructor(e,t,n,r){this.searchString=e,this.isRegex=t,this.matchCase=n,this.wordSeparators=r}parseSearchRequest(){if(""===this.searchString)return null;let e;e=this.isRegex?function(e){if(!e||0===e.length)return!1;for(let t=0,n=e.length;t<n;t++){const r=e.charCodeAt(t);if(10===r)return!0;if(92===r){if(t++,t>=n)break;const r=e.charCodeAt(t);if(110===r||114===r||87===r)return!0}}return!1}(this.searchString):this.searchString.indexOf("\n")>=0;let t=null;try{t=r.OS(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:e,global:!0,unicode:!0})}catch(e){return null}if(!t)return null;let n=!this.isRegex&&!e;return n&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(n=this.matchCase),new c.L5(t,this.wordSeparators?function(e,t){const n=`${e}/${t.join(",")}`;let r=a.get(n);return r||(r=new o(e,t),a.set(n,r)),r}(this.wordSeparators,[]):null,n?this.searchString:null)}}function f(e,t,n){if(!n)return new c.Dg(e,null);const r=[];for(let e=0,n=t.length;e<n;e++)r[e]=t[e];return new c.Dg(e,r)}class d{constructor(e){const t=[];let n=0;for(let r=0,i=e.length;r<i;r++)10===e.charCodeAt(r)&&(t[n++]=r);this._lineFeedsOffsets=t}findLineFeedCountBeforeOffset(e){const t=this._lineFeedsOffsets;let n=0,r=t.length-1;if(-1===r)return 0;if(e<=t[0])return 0;for(;n<r;){const i=n+((r-n)/2|0);t[i]>=e?r=i-1:t[i+1]>=e?(n=i,r=i):n=i+1}return n+1}}class m{static findMatches(e,t,n,r,i){const s=t.parseSearchRequest();return s?s.regex.multiline?this._doFindMatchesMultiline(e,n,new g(s.wordSeparators,s.regex),r,i):this._doFindMatchesLineByLine(e,n,s,r,i):[]}static _getMultilineMatchRange(e,t,n,r,i,s){let o,a,l=0;if(r?(l=r.findLineFeedCountBeforeOffset(i),o=t+i+l):o=t+i,r){const e=r.findLineFeedCountBeforeOffset(i+s.length)-l;a=o+s.length+e}else a=o+s.length;const c=e.getPositionAt(o),h=e.getPositionAt(a);return new u.Q(c.lineNumber,c.column,h.lineNumber,h.column)}static _doFindMatchesMultiline(e,t,n,r,i){const s=e.getOffsetAt(t.getStartPosition()),o=e.getValueInRange(t,1),a="\r\n"===e.getEOL()?new d(o):null,l=[];let u,c=0;for(n.reset(0);u=n.next(o);)if(l[c++]=f(this._getMultilineMatchRange(e,s,o,a,u.index,u[0]),u,r),c>=i)return l;return l}static _doFindMatchesLineByLine(e,t,n,r,i){const s=[];let o=0;if(t.startLineNumber===t.endLineNumber){const a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1);return o=this._findMatchesInLine(n,a,t.startLineNumber,t.startColumn-1,o,s,r,i),s}const a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1);o=this._findMatchesInLine(n,a,t.startLineNumber,t.startColumn-1,o,s,r,i);for(let a=t.startLineNumber+1;a<t.endLineNumber&&o<i;a++)o=this._findMatchesInLine(n,e.getLineContent(a),a,0,o,s,r,i);if(o<i){const a=e.getLineContent(t.endLineNumber).substring(0,t.endColumn-1);o=this._findMatchesInLine(n,a,t.endLineNumber,0,o,s,r,i)}return s}static _findMatchesInLine(e,t,n,r,i,s,o,a){const l=e.wordSeparators;if(!o&&e.simpleSearch){const o=e.simpleSearch,h=o.length,f=t.length;let d=-h;for(;-1!==(d=t.indexOf(o,d+h));)if((!l||p(l,t,f,d,h))&&(s[i++]=new c.Dg(new u.Q(n,d+1+r,n,d+1+h+r),null),i>=a))return i;return i}const h=new g(e.wordSeparators,e.regex);let d;h.reset(0);do{if(d=h.next(t),d&&(s[i++]=f(new u.Q(n,d.index+1+r,n,d.index+1+d[0].length+r),d,o),i>=a))return i}while(d);return i}static findNextMatch(e,t,n,r){const i=t.parseSearchRequest();if(!i)return null;const s=new g(i.wordSeparators,i.regex);return i.regex.multiline?this._doFindNextMatchMultiline(e,n,s,r):this._doFindNextMatchLineByLine(e,n,s,r)}static _doFindNextMatchMultiline(e,t,n,r){const i=new l.y(t.lineNumber,1),s=e.getOffsetAt(i),o=e.getLineCount(),a=e.getValueInRange(new u.Q(i.lineNumber,i.column,o,e.getLineMaxColumn(o)),1),c="\r\n"===e.getEOL()?new d(a):null;n.reset(t.column-1);const h=n.next(a);return h?f(this._getMultilineMatchRange(e,s,a,c,h.index,h[0]),h,r):1!==t.lineNumber||1!==t.column?this._doFindNextMatchMultiline(e,new l.y(1,1),n,r):null}static _doFindNextMatchLineByLine(e,t,n,r){const i=e.getLineCount(),s=t.lineNumber,o=e.getLineContent(s),a=this._findFirstMatchInLine(n,o,s,t.column,r);if(a)return a;for(let t=1;t<=i;t++){const o=(s+t-1)%i,a=e.getLineContent(o+1),l=this._findFirstMatchInLine(n,a,o+1,1,r);if(l)return l}return null}static _findFirstMatchInLine(e,t,n,r,i){e.reset(r-1);const s=e.next(t);return s?f(new u.Q(n,s.index+1,n,s.index+1+s[0].length),s,i):null}static findPreviousMatch(e,t,n,r){const i=t.parseSearchRequest();if(!i)return null;const s=new g(i.wordSeparators,i.regex);return i.regex.multiline?this._doFindPreviousMatchMultiline(e,n,s,r):this._doFindPreviousMatchLineByLine(e,n,s,r)}static _doFindPreviousMatchMultiline(e,t,n,r){const i=this._doFindMatchesMultiline(e,new u.Q(1,1,t.lineNumber,t.column),n,r,9990);if(i.length>0)return i[i.length-1];const s=e.getLineCount();return t.lineNumber!==s||t.column!==e.getLineMaxColumn(s)?this._doFindPreviousMatchMultiline(e,new l.y(s,e.getLineMaxColumn(s)),n,r):null}static _doFindPreviousMatchLineByLine(e,t,n,r){const i=e.getLineCount(),s=t.lineNumber,o=e.getLineContent(s).substring(0,t.column-1),a=this._findLastMatchInLine(n,o,s,r);if(a)return a;for(let t=1;t<=i;t++){const o=(i+s-t-1)%i,a=e.getLineContent(o+1),l=this._findLastMatchInLine(n,a,o+1,r);if(l)return l}return null}static _findLastMatchInLine(e,t,n,r){let i,s=null;for(e.reset(0);i=e.next(t);)s=f(new u.Q(n,i.index+1,n,i.index+1+i[0].length),i,r);return s}}function p(e,t,n,r,i){return function(e,t,n,r,i){if(0===r)return!0;const s=t.charCodeAt(r-1);if(0!==e.get(s))return!0;if(13===s||10===s)return!0;if(i>0){const n=t.charCodeAt(r);if(0!==e.get(n))return!0}return!1}(e,t,0,r,i)&&function(e,t,n,r,i){if(r+i===n)return!0;const s=t.charCodeAt(r+i);if(0!==e.get(s))return!0;if(13===s||10===s)return!0;if(i>0){const n=t.charCodeAt(r+i-1);if(0!==e.get(n))return!0}return!1}(e,t,n,r,i)}class g{constructor(e,t){this._wordSeparators=e,this._searchRegex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(e){const t=e.length;let n;do{if(this._prevMatchStartIndex+this._prevMatchLength===t)return null;if(n=this._searchRegex.exec(e),!n)return null;const i=n.index,s=n[0].length;if(i===this._prevMatchStartIndex&&s===this._prevMatchLength){if(0===s){r.Z5(e,t,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=i,this._prevMatchLength=s,!this._wordSeparators||p(this._wordSeparators,e,t,i,s))return n}while(n);return null}}},237:(e,t,n)=>{"use strict";function r(e){return e<0?0:e>255?255:0|e}function i(e){return e<0?0:e>4294967295?4294967295:0|e}n.d(t,{W:()=>r,j:()=>i})},315:(e,t,n)=>{"use strict";n.d(t,{d:()=>r});class r{constructor(e){this.executor=e,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}},404:(e,t,n)=>{"use strict";function r(e,t){const n=function(e,t,n=e.length-1){for(let r=n;r>=0;r--)if(t(e[r]))return r;return-1}(e,t);if(-1!==n)return e[n]}function i(e,t){const n=s(e,t);return-1===n?void 0:e[n]}function s(e,t,n=0,r=e.length){let i=n,s=r;for(;i<s;){const n=Math.floor((i+s)/2);t(e[n])?i=n+1:s=n}return i-1}function o(e,t){const n=a(e,t);return n===e.length?void 0:e[n]}function a(e,t,n=0,r=e.length){let i=n,s=r;for(;i<s;){const n=Math.floor((i+s)/2);t(e[n])?s=n:i=n+1}return i}n.d(t,{Uk:()=>r,XP:()=>o,hw:()=>a,iM:()=>s,lx:()=>i,vJ:()=>l});class l{static{this.assertInvariants=!1}constructor(e){this._array=e,this._findLastMonotonousLastIdx=0}findLastMonotonous(e){if(l.assertInvariants){if(this._prevFindLastPredicate)for(const t of this._array)if(this._prevFindLastPredicate(t)&&!e(t))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.");this._prevFindLastPredicate=e}const t=s(this._array,e,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=t+1,-1===t?void 0:this._array[t]}}},520:(e,t,n)=>{"use strict";n.d(t,{Q:()=>i});var r=n(3434);class i{constructor(e,t,n,r){e>n||e===n&&t>r?(this.startLineNumber=n,this.startColumn=r,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=n,this.endColumn=r)}isEmpty(){return i.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return i.containsPosition(this,e)}static containsPosition(e,t){return!(t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber||t.lineNumber===e.startLineNumber&&t.column<e.startColumn||t.lineNumber===e.endLineNumber&&t.column>e.endColumn)}static strictContainsPosition(e,t){return!(t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber||t.lineNumber===e.startLineNumber&&t.column<=e.startColumn||t.lineNumber===e.endLineNumber&&t.column>=e.endColumn)}containsRange(e){return i.containsRange(this,e)}static containsRange(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber||t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber||t.startLineNumber===e.startLineNumber&&t.startColumn<e.startColumn||t.endLineNumber===e.endLineNumber&&t.endColumn>e.endColumn)}strictContainsRange(e){return i.strictContainsRange(this,e)}static strictContainsRange(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber||t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber||t.startLineNumber===e.startLineNumber&&t.startColumn<=e.startColumn||t.endLineNumber===e.endLineNumber&&t.endColumn>=e.endColumn)}plusRange(e){return i.plusRange(this,e)}static plusRange(e,t){let n,r,s,o;return t.startLineNumber<e.startLineNumber?(n=t.startLineNumber,r=t.startColumn):t.startLineNumber===e.startLineNumber?(n=t.startLineNumber,r=Math.min(t.startColumn,e.startColumn)):(n=e.startLineNumber,r=e.startColumn),t.endLineNumber>e.endLineNumber?(s=t.endLineNumber,o=t.endColumn):t.endLineNumber===e.endLineNumber?(s=t.endLineNumber,o=Math.max(t.endColumn,e.endColumn)):(s=e.endLineNumber,o=e.endColumn),new i(n,r,s,o)}intersectRanges(e){return i.intersectRanges(this,e)}static intersectRanges(e,t){let n=e.startLineNumber,r=e.startColumn,s=e.endLineNumber,o=e.endColumn;const a=t.startLineNumber,l=t.startColumn,u=t.endLineNumber,c=t.endColumn;return n<a?(n=a,r=l):n===a&&(r=Math.max(r,l)),s>u?(s=u,o=c):s===u&&(o=Math.min(o,c)),n>s||n===s&&r>o?null:new i(n,r,s,o)}equalsRange(e){return i.equalsRange(this,e)}static equalsRange(e,t){return!e&&!t||!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return i.getEndPosition(this)}static getEndPosition(e){return new r.y(e.endLineNumber,e.endColumn)}getStartPosition(){return i.getStartPosition(this)}static getStartPosition(e){return new r.y(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new i(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new i(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return i.collapseToStart(this)}static collapseToStart(e){return new i(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return i.collapseToEnd(this)}static collapseToEnd(e){return new i(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new i(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e,t=e){return new i(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new i(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&"number"==typeof e.startLineNumber&&"number"==typeof e.startColumn&&"number"==typeof e.endLineNumber&&"number"==typeof e.endColumn}static areIntersectingOrTouching(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<t.startColumn||t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<e.startColumn)}static areIntersecting(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<=t.startColumn||t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<=e.startColumn)}static compareRangesUsingStarts(e,t){if(e&&t){const n=0|e.startLineNumber,r=0|t.startLineNumber;if(n===r){const n=0|e.startColumn,r=0|t.startColumn;if(n===r){const n=0|e.endLineNumber,r=0|t.endLineNumber;return n===r?(0|e.endColumn)-(0|t.endColumn):n-r}return n-r}return n-r}return(e?1:0)-(t?1:0)}static compareRangesUsingEnds(e,t){return e.endLineNumber===t.endLineNumber?e.endColumn===t.endColumn?e.startLineNumber===t.startLineNumber?e.startColumn-t.startColumn:e.startLineNumber-t.startLineNumber:e.endColumn-t.endColumn:e.endLineNumber-t.endLineNumber}static spansMultipleLines(e){return e.endLineNumber>e.startLineNumber}toJSON(){return this}}},714:(e,t,n)=>{"use strict";function r(e,t){const n=this;let r,i=!1;return function(){if(i)return r;if(i=!0,t)try{r=e.apply(n,arguments)}finally{t()}else r=e.apply(n,arguments);return r}}n.d(t,{jG:()=>d,$w:()=>p,Cm:()=>f,HE:()=>m,qE:()=>c,AS:()=>u,VD:()=>a,s:()=>h,Ay:()=>o});var i=n(2875);let s=null;function o(e){return s?.trackDisposable(e),e}function a(e){s?.markAsDisposed(e)}function l(e,t){s?.setParent(e,t)}function u(e){if(i.f.is(e)){const t=[];for(const n of e)if(n)try{n.dispose()}catch(e){t.push(e)}if(1===t.length)throw t[0];if(t.length>1)throw new AggregateError(t,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function c(...e){const t=h((()=>u(e)));return function(e,t){if(s)for(const n of e)s.setParent(n,t)}(e,t),t}function h(e){const t=o({dispose:r((()=>{a(t),e()}))});return t}class f{static{this.DISABLE_DISPOSED_WARNING=!1}constructor(){this._toDispose=new Set,this._isDisposed=!1,o(this)}dispose(){this._isDisposed||(a(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(0!==this._toDispose.size)try{u(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return l(e,this),this._isDisposed?f.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}deleteAndLeak(e){e&&this._toDispose.has(e)&&(this._toDispose.delete(e),l(e,null))}}class d{static{this.None=Object.freeze({dispose(){}})}constructor(){this._store=new f,o(this),l(this._store,this)}dispose(){a(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}class m{constructor(){this._isDisposed=!1,o(this)}get value(){return this._isDisposed?void 0:this._value}set value(e){this._isDisposed||e===this._value||(this._value?.dispose(),e&&l(e,this),this._value=e)}clear(){this.value=void 0}dispose(){this._isDisposed=!0,a(this),this._value?.dispose(),this._value=void 0}}class p{constructor(){this._store=new Map,this._isDisposed=!1,o(this)}dispose(){a(this),this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{u(this._store.values())}finally{this._store.clear()}}get(e){return this._store.get(e)}set(e,t,n=!1){this._isDisposed&&console.warn(new Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),n||this._store.get(e)?.dispose(),this._store.set(e,t)}deleteAndDispose(e){this._store.get(e)?.dispose(),this._store.delete(e)}[Symbol.iterator](){return this._store[Symbol.iterator]()}}},1069:(e,t,n)=>{"use strict";n.d(t,{Jh:()=>r,vl:()=>d});var r,i=n(5146),s=n(714),o=(n(7340),n(1726));!function(e){function t(e){return(t,n=null,r)=>{let i,s=!1;return i=e((e=>{if(!s)return i?i.dispose():s=!0,t.call(n,e)}),null,r),s&&i.dispose(),i}}function n(e,t,n){return i(((n,r=null,i)=>e((e=>n.call(r,t(e))),null,i)),n)}function r(e,t,n){return i(((n,r=null,i)=>e((e=>t(e)&&n.call(r,e)),null,i)),n)}function i(e,t){let n;const r=new d({onWillAddFirstListener(){n=e(r.fire,r)},onDidRemoveLastListener(){n?.dispose()}});return t?.add(r),r.event}function o(e,t,n=100,r=!1,i=!1,s,o){let a,l,u,c,h=0;const f=new d({leakWarningThreshold:s,onWillAddFirstListener(){a=e((e=>{h++,l=t(l,e),r&&!u&&(f.fire(l),l=void 0),c=()=>{const e=l;l=void 0,u=void 0,(!r||h>1)&&f.fire(e),h=0},"number"==typeof n?(clearTimeout(u),u=setTimeout(c,n)):void 0===u&&(u=0,queueMicrotask(c))}))},onWillRemoveListener(){i&&h>0&&c?.()},onDidRemoveLastListener(){c=void 0,a.dispose()}});return o?.add(f),f.event}e.None=()=>s.jG.None,e.defer=function(e,t){return o(e,(()=>{}),0,void 0,!0,void 0,t)},e.once=t,e.onceIf=function(t,n){return e.once(e.filter(t,n))},e.map=n,e.forEach=function(e,t,n){return i(((n,r=null,i)=>e((e=>{t(e),n.call(r,e)}),null,i)),n)},e.filter=r,e.signal=function(e){return e},e.any=function(...e){return(t,n=null,r)=>{return i=(0,s.qE)(...e.map((e=>e((e=>t.call(n,e)))))),(o=r)instanceof Array?o.push(i):o&&o.add(i),i;var i,o}},e.reduce=function(e,t,r,i){let s=r;return n(e,(e=>(s=t(s,e),s)),i)},e.debounce=o,e.accumulate=function(t,n=0,r){return e.debounce(t,((e,t)=>e?(e.push(t),e):[t]),n,void 0,!0,void 0,r)},e.latch=function(e,t=(e,t)=>e===t,n){let i,s=!0;return r(e,(e=>{const n=s||!t(e,i);return s=!1,i=e,n}),n)},e.split=function(t,n,r){return[e.filter(t,n,r),e.filter(t,(e=>!n(e)),r)]},e.buffer=function(e,t=!1,n=[],r){let i=n.slice(),s=e((e=>{i?i.push(e):a.fire(e)}));r&&r.add(s);const o=()=>{i?.forEach((e=>a.fire(e))),i=null},a=new d({onWillAddFirstListener(){s||(s=e((e=>a.fire(e))),r&&r.add(s))},onDidAddFirstListener(){i&&(t?setTimeout(o):o())},onDidRemoveLastListener(){s&&s.dispose(),s=null}});return r&&r.add(a),a.event},e.chain=function(e,t){return(n,r,i)=>{const s=t(new l);return e((function(e){const t=s.evaluate(e);t!==a&&n.call(r,t)}),void 0,i)}};const a=Symbol("HaltChainable");class l{constructor(){this.steps=[]}map(e){return this.steps.push(e),this}forEach(e){return this.steps.push((t=>(e(t),t))),this}filter(e){return this.steps.push((t=>e(t)?t:a)),this}reduce(e,t){let n=t;return this.steps.push((t=>(n=e(n,t),n))),this}latch(e=(e,t)=>e===t){let t,n=!0;return this.steps.push((r=>{const i=n||!e(r,t);return n=!1,t=r,i?r:a})),this}evaluate(e){for(const t of this.steps)if((e=t(e))===a)break;return e}}e.fromNodeEventEmitter=function(e,t,n=e=>e){const r=(...e)=>i.fire(n(...e)),i=new d({onWillAddFirstListener:()=>e.on(t,r),onDidRemoveLastListener:()=>e.removeListener(t,r)});return i.event},e.fromDOMEventEmitter=function(e,t,n=e=>e){const r=(...e)=>i.fire(n(...e)),i=new d({onWillAddFirstListener:()=>e.addEventListener(t,r),onDidRemoveLastListener:()=>e.removeEventListener(t,r)});return i.event},e.toPromise=function(e){return new Promise((n=>t(e)(n)))},e.fromPromise=function(e){const t=new d;return e.then((e=>{t.fire(e)}),(()=>{t.fire(void 0)})).finally((()=>{t.dispose()})),t.event},e.forward=function(e,t){return e((e=>t.fire(e)))},e.runAndSubscribe=function(e,t,n){return t(n),e((e=>t(e)))};class u{constructor(e,t){this._observable=e,this._counter=0,this._hasChanged=!1;const n={onWillAddFirstListener:()=>{e.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{e.removeObserver(this)}};this.emitter=new d(n),t&&t.add(this.emitter)}beginUpdate(e){this._counter++}handlePossibleChange(e){}handleChange(e,t){this._hasChanged=!0}endUpdate(e){this._counter--,0===this._counter&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}e.fromObservable=function(e,t){return new u(e,t).emitter.event},e.fromObservableLight=function(e){return(t,n,r)=>{let i=0,o=!1;const a={beginUpdate(){i++},endUpdate(){i--,0===i&&(e.reportChanges(),o&&(o=!1,t.call(n)))},handlePossibleChange(){},handleChange(){o=!0}};e.addObserver(a),e.reportChanges();const l={dispose(){e.removeObserver(a)}};return r instanceof s.Cm?r.add(l):Array.isArray(r)&&r.push(l),l}}}(r||(r={}));class a{static{this.all=new Set}static{this._idPool=0}constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${a._idPool++}`,a.all.add(this)}start(e){this._stopWatch=new o.W,this.listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}}class l{static{this._idPool=1}constructor(e,t,n=(l._idPool++).toString(16).padStart(3,"0")){this._errorHandler=e,this.threshold=t,this.name=n,this._warnCountdown=0}dispose(){this._stacks?.clear()}check(e,t){const n=this.threshold;if(n<=0||t<n)return;this._stacks||(this._stacks=new Map);const r=this._stacks.get(e.value)||0;if(this._stacks.set(e.value,r+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=.5*n;const[e,r]=this.getMostFrequentStack(),i=`[${this.name}] potential listener LEAK detected, having ${t} listeners already. MOST frequent listener (${r}):`;console.warn(i),console.warn(e);const s=new c(i,e);this._errorHandler(s)}return()=>{const t=this._stacks.get(e.value)||0;this._stacks.set(e.value,t-1)}}getMostFrequentStack(){if(!this._stacks)return;let e,t=0;for(const[n,r]of this._stacks)(!e||t<r)&&(e=[n,r],t=r);return e}}class u{static create(){const e=new Error;return new u(e.stack??"")}constructor(e){this.value=e}print(){console.warn(this.value.split("\n").slice(2).join("\n"))}}class c extends Error{constructor(e,t){super(e),this.name="ListenerLeakError",this.stack=t}}class h extends Error{constructor(e,t){super(e),this.name="ListenerRefusalError",this.stack=t}}class f{constructor(e){this.value=e}}class d{constructor(e){this._size=0,this._options=e,this._leakageMon=this._options?.leakWarningThreshold?new l(e?.onListenerError??i.dz,this._options?.leakWarningThreshold??-1):void 0,this._perfMon=this._options?._profName?new a(this._options._profName):void 0,this._deliveryQueue=this._options?.deliveryQueue}dispose(){this._disposed||(this._disposed=!0,this._deliveryQueue?.current===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),this._options?.onDidRemoveLastListener?.(),this._leakageMon?.dispose())}get event(){return this._event??=(e,t,n)=>{if(this._leakageMon&&this._size>this._leakageMon.threshold**2){const e=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(e);const t=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],n=new h(`${e}. HINT: Stack shows most frequent listener (${t[1]}-times)`,t[0]);return(this._options?.onListenerError||i.dz)(n),s.jG.None}if(this._disposed)return s.jG.None;t&&(e=e.bind(t));const r=new f(e);let o;this._leakageMon&&this._size>=Math.ceil(.2*this._leakageMon.threshold)&&(r.stack=u.create(),o=this._leakageMon.check(r.stack,this._size+1)),this._listeners?this._listeners instanceof f?(this._deliveryQueue??=new m,this._listeners=[this._listeners,r]):this._listeners.push(r):(this._options?.onWillAddFirstListener?.(this),this._listeners=r,this._options?.onDidAddFirstListener?.(this)),this._size++;const a=(0,s.s)((()=>{o?.(),this._removeListener(r)}));return n instanceof s.Cm?n.add(a):Array.isArray(n)&&n.push(a),a},this._event}_removeListener(e){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(1===this._size)return this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),void(this._size=0);const t=this._listeners,n=t.indexOf(e);if(-1===n)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--,t[n]=void 0;const r=this._deliveryQueue.current===this;if(2*this._size<=t.length){let e=0;for(let n=0;n<t.length;n++)t[n]?t[e++]=t[n]:r&&(this._deliveryQueue.end--,e<this._deliveryQueue.i&&this._deliveryQueue.i--);t.length=e}}_deliver(e,t){if(!e)return;const n=this._options?.onListenerError||i.dz;if(n)try{e.value(t)}catch(e){n(e)}else e.value(t)}_deliverQueue(e){const t=e.current._listeners;for(;e.i<e.end;)this._deliver(t[e.i++],e.value);e.reset()}fire(e){if(this._deliveryQueue?.current&&(this._deliverQueue(this._deliveryQueue),this._perfMon?.stop()),this._perfMon?.start(this._size),this._listeners)if(this._listeners instanceof f)this._deliver(this._listeners,e);else{const t=this._deliveryQueue;t.enqueue(this,e,this._listeners.length),this._deliverQueue(t)}this._perfMon?.stop()}hasListeners(){return this._size>0}}class m{constructor(){this.i=-1,this.end=0}enqueue(e,t,n){this.i=0,this.end=n,this.current=e,this.value=t}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}},1284:(e,t,n)=>{"use strict";n.d(t,{A5:()=>r,Dg:()=>l,F4:()=>f,L5:()=>h,Wo:()=>c,X2:()=>a,ZS:()=>i,nk:()=>u,vd:()=>d});var r,i,s,o=n(2349);!function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(r||(r={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}(i||(i={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(s||(s={}));class a{get originalIndentSize(){return this._indentSizeIsTabSize?"tabSize":this.indentSize}constructor(e){this._textModelResolvedOptionsBrand=void 0,this.tabSize=Math.max(1,0|e.tabSize),"tabSize"===e.indentSize?(this.indentSize=this.tabSize,this._indentSizeIsTabSize=!0):(this.indentSize=Math.max(1,0|e.indentSize),this._indentSizeIsTabSize=!1),this.insertSpaces=Boolean(e.insertSpaces),this.defaultEOL=0|e.defaultEOL,this.trimAutoWhitespace=Boolean(e.trimAutoWhitespace),this.bracketPairColorizationOptions=e.bracketPairColorizationOptions}equals(e){return this.tabSize===e.tabSize&&this._indentSizeIsTabSize===e._indentSizeIsTabSize&&this.indentSize===e.indentSize&&this.insertSpaces===e.insertSpaces&&this.defaultEOL===e.defaultEOL&&this.trimAutoWhitespace===e.trimAutoWhitespace&&(0,o.aI)(this.bracketPairColorizationOptions,e.bracketPairColorizationOptions)}createChangeEvent(e){return{tabSize:this.tabSize!==e.tabSize,indentSize:this.indentSize!==e.indentSize,insertSpaces:this.insertSpaces!==e.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==e.trimAutoWhitespace}}}class l{constructor(e,t){this._findMatchBrand=void 0,this.range=e,this.matches=t}}function u(e){return e&&"function"==typeof e.read}class c{constructor(e,t,n,r,i,s){this.identifier=e,this.range=t,this.text=n,this.forceMoveMarkers=r,this.isAutoWhitespaceEdit=i,this._isTracked=s}}class h{constructor(e,t,n){this.regex=e,this.wordSeparators=t,this.simpleSearch=n}}class f{constructor(e,t,n){this.reverseEdits=e,this.changes=t,this.trimAutoWhitespaceLineNumbers=n}}function d(e){return!e.isTooLargeForSyncing()&&!e.isForSimpleWidget}},1726:(e,t,n)=>{"use strict";n.d(t,{W:()=>i});const r=globalThis.performance&&"function"==typeof globalThis.performance.now;class i{static create(e){return new i(e)}constructor(e){this._now=r&&!1===e?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}}},1729:(e,t,n)=>{"use strict";n.d(t,{L:()=>i});var r=n(5146);class i{static addRange(e,t){let n=0;for(;n<t.length&&t[n].endExclusive<e.start;)n++;let r=n;for(;r<t.length&&t[r].start<=e.endExclusive;)r++;if(n===r)t.splice(n,0,e);else{const s=Math.min(e.start,t[n].start),o=Math.max(e.endExclusive,t[r-1].endExclusive);t.splice(n,r-n,new i(s,o))}}static tryCreate(e,t){if(!(e>t))return new i(e,t)}static ofLength(e){return new i(0,e)}static ofStartAndLength(e,t){return new i(e,e+t)}constructor(e,t){if(this.start=e,this.endExclusive=t,e>t)throw new r.D7(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(e){return new i(this.start+e,this.endExclusive+e)}deltaStart(e){return new i(this.start+e,this.endExclusive)}deltaEnd(e){return new i(this.start,this.endExclusive+e)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}contains(e){return this.start<=e&&e<this.endExclusive}join(e){return new i(Math.min(this.start,e.start),Math.max(this.endExclusive,e.endExclusive))}intersect(e){const t=Math.max(this.start,e.start),n=Math.min(this.endExclusive,e.endExclusive);if(t<=n)return new i(t,n)}intersects(e){return Math.max(this.start,e.start)<Math.min(this.endExclusive,e.endExclusive)}isBefore(e){return this.endExclusive<=e.start}isAfter(e){return this.start>=e.endExclusive}slice(e){return e.slice(this.start,this.endExclusive)}substring(e){return e.substring(this.start,this.endExclusive)}clip(e){if(this.isEmpty)throw new r.D7(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,e))}clipCyclic(e){if(this.isEmpty)throw new r.D7(`Invalid clipping range: ${this.toString()}`);return e<this.start?this.endExclusive-(this.start-e)%this.length:e>=this.endExclusive?this.start+(e-this.start)%this.length:e}forEach(e){for(let t=this.start;t<this.endExclusive;t++)e(t)}}},2194:(e,t,n)=>{"use strict";n.d(t,{P8:()=>L,pD:()=>N,LC:()=>x,fj:()=>A,S8:()=>S,SA:()=>E,V8:()=>k,hd:()=>_,Vn:()=>F,IN:()=>w});var r=n(7622);let i;const s=globalThis.vscode;if(void 0!==s&&void 0!==s.process){const e=s.process;i={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd:()=>e.cwd()}}else i="undefined"!=typeof process&&"string"==typeof process?.versions?.node?{get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd:()=>process.env.VSCODE_CWD||process.cwd()}:{get platform(){return r.uF?"win32":r.zx?"darwin":"linux"},get arch(){},get env(){return{}},cwd:()=>"/"};const o=i.cwd,a=i.env,l=i.platform,u=46,c=47,h=92,f=58;class d extends Error{constructor(e,t,n){let r;"string"==typeof t&&0===t.indexOf("not ")?(r="must not be",t=t.replace(/^not /,"")):r="must be";const i=-1!==e.indexOf(".")?"property":"argument";let s=`The "${e}" ${i} ${r} of type ${t}`;s+=". Received type "+typeof n,super(s),this.code="ERR_INVALID_ARG_TYPE"}}function m(e,t){if("string"!=typeof e)throw new d(t,"string",e)}const p="win32"===l;function g(e){return e===c||e===h}function y(e){return e===c}function b(e){return e>=65&&e<=90||e>=97&&e<=122}function v(e,t,n,r){let i="",s=0,o=-1,a=0,l=0;for(let h=0;h<=e.length;++h){if(h<e.length)l=e.charCodeAt(h);else{if(r(l))break;l=c}if(r(l)){if(o===h-1||1===a);else if(2===a){if(i.length<2||2!==s||i.charCodeAt(i.length-1)!==u||i.charCodeAt(i.length-2)!==u){if(i.length>2){const e=i.lastIndexOf(n);-1===e?(i="",s=0):(i=i.slice(0,e),s=i.length-1-i.lastIndexOf(n)),o=h,a=0;continue}if(0!==i.length){i="",s=0,o=h,a=0;continue}}t&&(i+=i.length>0?`${n}..`:"..",s=2)}else i.length>0?i+=`${n}${e.slice(o+1,h)}`:i=e.slice(o+1,h),s=h-o-1;o=h,a=0}else l===u&&-1!==a?++a:a=-1}return i}function D(e,t){!function(e){if(null===e||"object"!=typeof e)throw new d("pathObject","Object",e)}(t);const n=t.dir||t.root,r=t.base||`${t.name||""}${i=t.ext,i?`${"."===i[0]?"":"."}${i}`:""}`;var i;return n?n===t.root?`${n}${r}`:`${n}${e}${r}`:r}const w={resolve(...e){let t="",n="",r=!1;for(let i=e.length-1;i>=-1;i--){let s;if(i>=0){if(s=e[i],m(s,`paths[${i}]`),0===s.length)continue}else 0===t.length?s=o():(s=a[`=${t}`]||o(),(void 0===s||s.slice(0,2).toLowerCase()!==t.toLowerCase()&&s.charCodeAt(2)===h)&&(s=`${t}\\`));const l=s.length;let u=0,c="",d=!1;const p=s.charCodeAt(0);if(1===l)g(p)&&(u=1,d=!0);else if(g(p))if(d=!0,g(s.charCodeAt(1))){let e=2,t=e;for(;e<l&&!g(s.charCodeAt(e));)e++;if(e<l&&e!==t){const n=s.slice(t,e);for(t=e;e<l&&g(s.charCodeAt(e));)e++;if(e<l&&e!==t){for(t=e;e<l&&!g(s.charCodeAt(e));)e++;e!==l&&e===t||(c=`\\\\${n}\\${s.slice(t,e)}`,u=e)}}}else u=1;else b(p)&&s.charCodeAt(1)===f&&(c=s.slice(0,2),u=2,l>2&&g(s.charCodeAt(2))&&(d=!0,u=3));if(c.length>0)if(t.length>0){if(c.toLowerCase()!==t.toLowerCase())continue}else t=c;if(r){if(t.length>0)break}else if(n=`${s.slice(u)}\\${n}`,r=d,d&&t.length>0)break}return n=v(n,!r,"\\",g),r?`${t}\\${n}`:`${t}${n}`||"."},normalize(e){m(e,"path");const t=e.length;if(0===t)return".";let n,r=0,i=!1;const s=e.charCodeAt(0);if(1===t)return y(s)?"\\":e;if(g(s))if(i=!0,g(e.charCodeAt(1))){let i=2,s=i;for(;i<t&&!g(e.charCodeAt(i));)i++;if(i<t&&i!==s){const o=e.slice(s,i);for(s=i;i<t&&g(e.charCodeAt(i));)i++;if(i<t&&i!==s){for(s=i;i<t&&!g(e.charCodeAt(i));)i++;if(i===t)return`\\\\${o}\\${e.slice(s)}\\`;i!==s&&(n=`\\\\${o}\\${e.slice(s,i)}`,r=i)}}}else r=1;else b(s)&&e.charCodeAt(1)===f&&(n=e.slice(0,2),r=2,t>2&&g(e.charCodeAt(2))&&(i=!0,r=3));let o=r<t?v(e.slice(r),!i,"\\",g):"";return 0!==o.length||i||(o="."),o.length>0&&g(e.charCodeAt(t-1))&&(o+="\\"),void 0===n?i?`\\${o}`:o:i?`${n}\\${o}`:`${n}${o}`},isAbsolute(e){m(e,"path");const t=e.length;if(0===t)return!1;const n=e.charCodeAt(0);return g(n)||t>2&&b(n)&&e.charCodeAt(1)===f&&g(e.charCodeAt(2))},join(...e){if(0===e.length)return".";let t,n;for(let r=0;r<e.length;++r){const i=e[r];m(i,"path"),i.length>0&&(void 0===t?t=n=i:t+=`\\${i}`)}if(void 0===t)return".";let r=!0,i=0;if("string"==typeof n&&g(n.charCodeAt(0))){++i;const e=n.length;e>1&&g(n.charCodeAt(1))&&(++i,e>2&&(g(n.charCodeAt(2))?++i:r=!1))}if(r){for(;i<t.length&&g(t.charCodeAt(i));)i++;i>=2&&(t=`\\${t.slice(i)}`)}return w.normalize(t)},relative(e,t){if(m(e,"from"),m(t,"to"),e===t)return"";const n=w.resolve(e),r=w.resolve(t);if(n===r)return"";if((e=n.toLowerCase())===(t=r.toLowerCase()))return"";let i=0;for(;i<e.length&&e.charCodeAt(i)===h;)i++;let s=e.length;for(;s-1>i&&e.charCodeAt(s-1)===h;)s--;const o=s-i;let a=0;for(;a<t.length&&t.charCodeAt(a)===h;)a++;let l=t.length;for(;l-1>a&&t.charCodeAt(l-1)===h;)l--;const u=l-a,c=o<u?o:u;let f=-1,d=0;for(;d<c;d++){const n=e.charCodeAt(i+d);if(n!==t.charCodeAt(a+d))break;n===h&&(f=d)}if(d!==c){if(-1===f)return r}else{if(u>c){if(t.charCodeAt(a+d)===h)return r.slice(a+d+1);if(2===d)return r.slice(a+d)}o>c&&(e.charCodeAt(i+d)===h?f=d:2===d&&(f=3)),-1===f&&(f=0)}let p="";for(d=i+f+1;d<=s;++d)d!==s&&e.charCodeAt(d)!==h||(p+=0===p.length?"..":"\\..");return a+=f,p.length>0?`${p}${r.slice(a,l)}`:(r.charCodeAt(a)===h&&++a,r.slice(a,l))},toNamespacedPath(e){if("string"!=typeof e||0===e.length)return e;const t=w.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===h){if(t.charCodeAt(1)===h){const e=t.charCodeAt(2);if(63!==e&&e!==u)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(b(t.charCodeAt(0))&&t.charCodeAt(1)===f&&t.charCodeAt(2)===h)return`\\\\?\\${t}`;return e},dirname(e){m(e,"path");const t=e.length;if(0===t)return".";let n=-1,r=0;const i=e.charCodeAt(0);if(1===t)return g(i)?e:".";if(g(i)){if(n=r=1,g(e.charCodeAt(1))){let i=2,s=i;for(;i<t&&!g(e.charCodeAt(i));)i++;if(i<t&&i!==s){for(s=i;i<t&&g(e.charCodeAt(i));)i++;if(i<t&&i!==s){for(s=i;i<t&&!g(e.charCodeAt(i));)i++;if(i===t)return e;i!==s&&(n=r=i+1)}}}}else b(i)&&e.charCodeAt(1)===f&&(n=t>2&&g(e.charCodeAt(2))?3:2,r=n);let s=-1,o=!0;for(let n=t-1;n>=r;--n)if(g(e.charCodeAt(n))){if(!o){s=n;break}}else o=!1;if(-1===s){if(-1===n)return".";s=n}return e.slice(0,s)},basename(e,t){void 0!==t&&m(t,"suffix"),m(e,"path");let n,r=0,i=-1,s=!0;if(e.length>=2&&b(e.charCodeAt(0))&&e.charCodeAt(1)===f&&(r=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,a=-1;for(n=e.length-1;n>=r;--n){const l=e.charCodeAt(n);if(g(l)){if(!s){r=n+1;break}}else-1===a&&(s=!1,a=n+1),o>=0&&(l===t.charCodeAt(o)?-1==--o&&(i=n):(o=-1,i=a))}return r===i?i=a:-1===i&&(i=e.length),e.slice(r,i)}for(n=e.length-1;n>=r;--n)if(g(e.charCodeAt(n))){if(!s){r=n+1;break}}else-1===i&&(s=!1,i=n+1);return-1===i?"":e.slice(r,i)},extname(e){m(e,"path");let t=0,n=-1,r=0,i=-1,s=!0,o=0;e.length>=2&&e.charCodeAt(1)===f&&b(e.charCodeAt(0))&&(t=r=2);for(let a=e.length-1;a>=t;--a){const t=e.charCodeAt(a);if(g(t)){if(!s){r=a+1;break}}else-1===i&&(s=!1,i=a+1),t===u?-1===n?n=a:1!==o&&(o=1):-1!==n&&(o=-1)}return-1===n||-1===i||0===o||1===o&&n===i-1&&n===r+1?"":e.slice(n,i)},format:D.bind(null,"\\"),parse(e){m(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.length;let r=0,i=e.charCodeAt(0);if(1===n)return g(i)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(g(i)){if(r=1,g(e.charCodeAt(1))){let t=2,i=t;for(;t<n&&!g(e.charCodeAt(t));)t++;if(t<n&&t!==i){for(i=t;t<n&&g(e.charCodeAt(t));)t++;if(t<n&&t!==i){for(i=t;t<n&&!g(e.charCodeAt(t));)t++;t===n?r=t:t!==i&&(r=t+1)}}}}else if(b(i)&&e.charCodeAt(1)===f){if(n<=2)return t.root=t.dir=e,t;if(r=2,g(e.charCodeAt(2))){if(3===n)return t.root=t.dir=e,t;r=3}}r>0&&(t.root=e.slice(0,r));let s=-1,o=r,a=-1,l=!0,c=e.length-1,h=0;for(;c>=r;--c)if(i=e.charCodeAt(c),g(i)){if(!l){o=c+1;break}}else-1===a&&(l=!1,a=c+1),i===u?-1===s?s=c:1!==h&&(h=1):-1!==s&&(h=-1);return-1!==a&&(-1===s||0===h||1===h&&s===a-1&&s===o+1?t.base=t.name=e.slice(o,a):(t.name=e.slice(o,s),t.base=e.slice(o,a),t.ext=e.slice(s,a))),t.dir=o>0&&o!==r?e.slice(0,o-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},C=(()=>{if(p){const e=/\\/g;return()=>{const t=o().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>o()})(),E={resolve(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){const i=r>=0?e[r]:C();m(i,`paths[${r}]`),0!==i.length&&(t=`${i}/${t}`,n=i.charCodeAt(0)===c)}return t=v(t,!n,"/",y),n?`/${t}`:t.length>0?t:"."},normalize(e){if(m(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===c,n=e.charCodeAt(e.length-1)===c;return 0===(e=v(e,!t,"/",y)).length?t?"/":n?"./":".":(n&&(e+="/"),t?`/${e}`:e)},isAbsolute:e=>(m(e,"path"),e.length>0&&e.charCodeAt(0)===c),join(...e){if(0===e.length)return".";let t;for(let n=0;n<e.length;++n){const r=e[n];m(r,"path"),r.length>0&&(void 0===t?t=r:t+=`/${r}`)}return void 0===t?".":E.normalize(t)},relative(e,t){if(m(e,"from"),m(t,"to"),e===t)return"";if((e=E.resolve(e))===(t=E.resolve(t)))return"";const n=e.length,r=n-1,i=t.length-1,s=r<i?r:i;let o=-1,a=0;for(;a<s;a++){const n=e.charCodeAt(1+a);if(n!==t.charCodeAt(1+a))break;n===c&&(o=a)}if(a===s)if(i>s){if(t.charCodeAt(1+a)===c)return t.slice(1+a+1);if(0===a)return t.slice(1+a)}else r>s&&(e.charCodeAt(1+a)===c?o=a:0===a&&(o=0));let l="";for(a=1+o+1;a<=n;++a)a!==n&&e.charCodeAt(a)!==c||(l+=0===l.length?"..":"/..");return`${l}${t.slice(1+o)}`},toNamespacedPath:e=>e,dirname(e){if(m(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===c;let n=-1,r=!0;for(let t=e.length-1;t>=1;--t)if(e.charCodeAt(t)===c){if(!r){n=t;break}}else r=!1;return-1===n?t?"/":".":t&&1===n?"//":e.slice(0,n)},basename(e,t){void 0!==t&&m(t,"ext"),m(e,"path");let n,r=0,i=-1,s=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,a=-1;for(n=e.length-1;n>=0;--n){const l=e.charCodeAt(n);if(l===c){if(!s){r=n+1;break}}else-1===a&&(s=!1,a=n+1),o>=0&&(l===t.charCodeAt(o)?-1==--o&&(i=n):(o=-1,i=a))}return r===i?i=a:-1===i&&(i=e.length),e.slice(r,i)}for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===c){if(!s){r=n+1;break}}else-1===i&&(s=!1,i=n+1);return-1===i?"":e.slice(r,i)},extname(e){m(e,"path");let t=-1,n=0,r=-1,i=!0,s=0;for(let o=e.length-1;o>=0;--o){const a=e.charCodeAt(o);if(a!==c)-1===r&&(i=!1,r=o+1),a===u?-1===t?t=o:1!==s&&(s=1):-1!==t&&(s=-1);else if(!i){n=o+1;break}}return-1===t||-1===r||0===s||1===s&&t===r-1&&t===n+1?"":e.slice(t,r)},format:D.bind(null,"/"),parse(e){m(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.charCodeAt(0)===c;let r;n?(t.root="/",r=1):r=0;let i=-1,s=0,o=-1,a=!0,l=e.length-1,h=0;for(;l>=r;--l){const t=e.charCodeAt(l);if(t!==c)-1===o&&(a=!1,o=l+1),t===u?-1===i?i=l:1!==h&&(h=1):-1!==i&&(h=-1);else if(!a){s=l+1;break}}if(-1!==o){const r=0===s&&n?1:s;-1===i||0===h||1===h&&i===o-1&&i===s+1?t.base=t.name=e.slice(r,o):(t.name=e.slice(r,i),t.base=e.slice(r,o),t.ext=e.slice(i,o))}return s>0?t.dir=e.slice(0,s-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};E.win32=w.win32=w,E.posix=w.posix=E;const S=p?w.normalize:E.normalize,A=p?w.join:E.join,_=p?w.resolve:E.resolve,k=p?w.relative:E.relative,N=p?w.dirname:E.dirname,L=p?w.basename:E.basename,x=p?w.extname:E.extname,F=p?w.sep:E.sep},2346:(e,t,n)=>{"use strict";n.d(t,{W:()=>o});var r=n(8860);const i=Object.create(null);function s(e,t){if((0,r.Kg)(t)){const n=i[t];if(void 0===n)throw new Error(`${e} references an unknown codicon: ${t}`);t=n}return i[e]=t,{id:e}}const o={add:s("add",6e4),plus:s("plus",6e4),gistNew:s("gist-new",6e4),repoCreate:s("repo-create",6e4),lightbulb:s("lightbulb",60001),lightBulb:s("light-bulb",60001),repo:s("repo",60002),repoDelete:s("repo-delete",60002),gistFork:s("gist-fork",60003),repoForked:s("repo-forked",60003),gitPullRequest:s("git-pull-request",60004),gitPullRequestAbandoned:s("git-pull-request-abandoned",60004),recordKeys:s("record-keys",60005),keyboard:s("keyboard",60005),tag:s("tag",60006),gitPullRequestLabel:s("git-pull-request-label",60006),tagAdd:s("tag-add",60006),tagRemove:s("tag-remove",60006),person:s("person",60007),personFollow:s("person-follow",60007),personOutline:s("person-outline",60007),personFilled:s("person-filled",60007),gitBranch:s("git-branch",60008),gitBranchCreate:s("git-branch-create",60008),gitBranchDelete:s("git-branch-delete",60008),sourceControl:s("source-control",60008),mirror:s("mirror",60009),mirrorPublic:s("mirror-public",60009),star:s("star",60010),starAdd:s("star-add",60010),starDelete:s("star-delete",60010),starEmpty:s("star-empty",60010),comment:s("comment",60011),commentAdd:s("comment-add",60011),alert:s("alert",60012),warning:s("warning",60012),search:s("search",60013),searchSave:s("search-save",60013),logOut:s("log-out",60014),signOut:s("sign-out",60014),logIn:s("log-in",60015),signIn:s("sign-in",60015),eye:s("eye",60016),eyeUnwatch:s("eye-unwatch",60016),eyeWatch:s("eye-watch",60016),circleFilled:s("circle-filled",60017),primitiveDot:s("primitive-dot",60017),closeDirty:s("close-dirty",60017),debugBreakpoint:s("debug-breakpoint",60017),debugBreakpointDisabled:s("debug-breakpoint-disabled",60017),debugHint:s("debug-hint",60017),terminalDecorationSuccess:s("terminal-decoration-success",60017),primitiveSquare:s("primitive-square",60018),edit:s("edit",60019),pencil:s("pencil",60019),info:s("info",60020),issueOpened:s("issue-opened",60020),gistPrivate:s("gist-private",60021),gitForkPrivate:s("git-fork-private",60021),lock:s("lock",60021),mirrorPrivate:s("mirror-private",60021),close:s("close",60022),removeClose:s("remove-close",60022),x:s("x",60022),repoSync:s("repo-sync",60023),sync:s("sync",60023),clone:s("clone",60024),desktopDownload:s("desktop-download",60024),beaker:s("beaker",60025),microscope:s("microscope",60025),vm:s("vm",60026),deviceDesktop:s("device-desktop",60026),file:s("file",60027),fileText:s("file-text",60027),more:s("more",60028),ellipsis:s("ellipsis",60028),kebabHorizontal:s("kebab-horizontal",60028),mailReply:s("mail-reply",60029),reply:s("reply",60029),organization:s("organization",60030),organizationFilled:s("organization-filled",60030),organizationOutline:s("organization-outline",60030),newFile:s("new-file",60031),fileAdd:s("file-add",60031),newFolder:s("new-folder",60032),fileDirectoryCreate:s("file-directory-create",60032),trash:s("trash",60033),trashcan:s("trashcan",60033),history:s("history",60034),clock:s("clock",60034),folder:s("folder",60035),fileDirectory:s("file-directory",60035),symbolFolder:s("symbol-folder",60035),logoGithub:s("logo-github",60036),markGithub:s("mark-github",60036),github:s("github",60036),terminal:s("terminal",60037),console:s("console",60037),repl:s("repl",60037),zap:s("zap",60038),symbolEvent:s("symbol-event",60038),error:s("error",60039),stop:s("stop",60039),variable:s("variable",60040),symbolVariable:s("symbol-variable",60040),array:s("array",60042),symbolArray:s("symbol-array",60042),symbolModule:s("symbol-module",60043),symbolPackage:s("symbol-package",60043),symbolNamespace:s("symbol-namespace",60043),symbolObject:s("symbol-object",60043),symbolMethod:s("symbol-method",60044),symbolFunction:s("symbol-function",60044),symbolConstructor:s("symbol-constructor",60044),symbolBoolean:s("symbol-boolean",60047),symbolNull:s("symbol-null",60047),symbolNumeric:s("symbol-numeric",60048),symbolNumber:s("symbol-number",60048),symbolStructure:s("symbol-structure",60049),symbolStruct:s("symbol-struct",60049),symbolParameter:s("symbol-parameter",60050),symbolTypeParameter:s("symbol-type-parameter",60050),symbolKey:s("symbol-key",60051),symbolText:s("symbol-text",60051),symbolReference:s("symbol-reference",60052),goToFile:s("go-to-file",60052),symbolEnum:s("symbol-enum",60053),symbolValue:s("symbol-value",60053),symbolRuler:s("symbol-ruler",60054),symbolUnit:s("symbol-unit",60054),activateBreakpoints:s("activate-breakpoints",60055),archive:s("archive",60056),arrowBoth:s("arrow-both",60057),arrowDown:s("arrow-down",60058),arrowLeft:s("arrow-left",60059),arrowRight:s("arrow-right",60060),arrowSmallDown:s("arrow-small-down",60061),arrowSmallLeft:s("arrow-small-left",60062),arrowSmallRight:s("arrow-small-right",60063),arrowSmallUp:s("arrow-small-up",60064),arrowUp:s("arrow-up",60065),bell:s("bell",60066),bold:s("bold",60067),book:s("book",60068),bookmark:s("bookmark",60069),debugBreakpointConditionalUnverified:s("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:s("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:s("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:s("debug-breakpoint-data-unverified",60072),debugBreakpointData:s("debug-breakpoint-data",60073),debugBreakpointDataDisabled:s("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:s("debug-breakpoint-log-unverified",60074),debugBreakpointLog:s("debug-breakpoint-log",60075),debugBreakpointLogDisabled:s("debug-breakpoint-log-disabled",60075),briefcase:s("briefcase",60076),broadcast:s("broadcast",60077),browser:s("browser",60078),bug:s("bug",60079),calendar:s("calendar",60080),caseSensitive:s("case-sensitive",60081),check:s("check",60082),checklist:s("checklist",60083),chevronDown:s("chevron-down",60084),chevronLeft:s("chevron-left",60085),chevronRight:s("chevron-right",60086),chevronUp:s("chevron-up",60087),chromeClose:s("chrome-close",60088),chromeMaximize:s("chrome-maximize",60089),chromeMinimize:s("chrome-minimize",60090),chromeRestore:s("chrome-restore",60091),circleOutline:s("circle-outline",60092),circle:s("circle",60092),debugBreakpointUnverified:s("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:s("terminal-decoration-incomplete",60092),circleSlash:s("circle-slash",60093),circuitBoard:s("circuit-board",60094),clearAll:s("clear-all",60095),clippy:s("clippy",60096),closeAll:s("close-all",60097),cloudDownload:s("cloud-download",60098),cloudUpload:s("cloud-upload",60099),code:s("code",60100),collapseAll:s("collapse-all",60101),colorMode:s("color-mode",60102),commentDiscussion:s("comment-discussion",60103),creditCard:s("credit-card",60105),dash:s("dash",60108),dashboard:s("dashboard",60109),database:s("database",60110),debugContinue:s("debug-continue",60111),debugDisconnect:s("debug-disconnect",60112),debugPause:s("debug-pause",60113),debugRestart:s("debug-restart",60114),debugStart:s("debug-start",60115),debugStepInto:s("debug-step-into",60116),debugStepOut:s("debug-step-out",60117),debugStepOver:s("debug-step-over",60118),debugStop:s("debug-stop",60119),debug:s("debug",60120),deviceCameraVideo:s("device-camera-video",60121),deviceCamera:s("device-camera",60122),deviceMobile:s("device-mobile",60123),diffAdded:s("diff-added",60124),diffIgnored:s("diff-ignored",60125),diffModified:s("diff-modified",60126),diffRemoved:s("diff-removed",60127),diffRenamed:s("diff-renamed",60128),diff:s("diff",60129),diffSidebyside:s("diff-sidebyside",60129),discard:s("discard",60130),editorLayout:s("editor-layout",60131),emptyWindow:s("empty-window",60132),exclude:s("exclude",60133),extensions:s("extensions",60134),eyeClosed:s("eye-closed",60135),fileBinary:s("file-binary",60136),fileCode:s("file-code",60137),fileMedia:s("file-media",60138),filePdf:s("file-pdf",60139),fileSubmodule:s("file-submodule",60140),fileSymlinkDirectory:s("file-symlink-directory",60141),fileSymlinkFile:s("file-symlink-file",60142),fileZip:s("file-zip",60143),files:s("files",60144),filter:s("filter",60145),flame:s("flame",60146),foldDown:s("fold-down",60147),foldUp:s("fold-up",60148),fold:s("fold",60149),folderActive:s("folder-active",60150),folderOpened:s("folder-opened",60151),gear:s("gear",60152),gift:s("gift",60153),gistSecret:s("gist-secret",60154),gist:s("gist",60155),gitCommit:s("git-commit",60156),gitCompare:s("git-compare",60157),compareChanges:s("compare-changes",60157),gitMerge:s("git-merge",60158),githubAction:s("github-action",60159),githubAlt:s("github-alt",60160),globe:s("globe",60161),grabber:s("grabber",60162),graph:s("graph",60163),gripper:s("gripper",60164),heart:s("heart",60165),home:s("home",60166),horizontalRule:s("horizontal-rule",60167),hubot:s("hubot",60168),inbox:s("inbox",60169),issueReopened:s("issue-reopened",60171),issues:s("issues",60172),italic:s("italic",60173),jersey:s("jersey",60174),json:s("json",60175),kebabVertical:s("kebab-vertical",60176),key:s("key",60177),law:s("law",60178),lightbulbAutofix:s("lightbulb-autofix",60179),linkExternal:s("link-external",60180),link:s("link",60181),listOrdered:s("list-ordered",60182),listUnordered:s("list-unordered",60183),liveShare:s("live-share",60184),loading:s("loading",60185),location:s("location",60186),mailRead:s("mail-read",60187),mail:s("mail",60188),markdown:s("markdown",60189),megaphone:s("megaphone",60190),mention:s("mention",60191),milestone:s("milestone",60192),gitPullRequestMilestone:s("git-pull-request-milestone",60192),mortarBoard:s("mortar-board",60193),move:s("move",60194),multipleWindows:s("multiple-windows",60195),mute:s("mute",60196),noNewline:s("no-newline",60197),note:s("note",60198),octoface:s("octoface",60199),openPreview:s("open-preview",60200),package:s("package",60201),paintcan:s("paintcan",60202),pin:s("pin",60203),play:s("play",60204),run:s("run",60204),plug:s("plug",60205),preserveCase:s("preserve-case",60206),preview:s("preview",60207),project:s("project",60208),pulse:s("pulse",60209),question:s("question",60210),quote:s("quote",60211),radioTower:s("radio-tower",60212),reactions:s("reactions",60213),references:s("references",60214),refresh:s("refresh",60215),regex:s("regex",60216),remoteExplorer:s("remote-explorer",60217),remote:s("remote",60218),remove:s("remove",60219),replaceAll:s("replace-all",60220),replace:s("replace",60221),repoClone:s("repo-clone",60222),repoForcePush:s("repo-force-push",60223),repoPull:s("repo-pull",60224),repoPush:s("repo-push",60225),report:s("report",60226),requestChanges:s("request-changes",60227),rocket:s("rocket",60228),rootFolderOpened:s("root-folder-opened",60229),rootFolder:s("root-folder",60230),rss:s("rss",60231),ruby:s("ruby",60232),saveAll:s("save-all",60233),saveAs:s("save-as",60234),save:s("save",60235),screenFull:s("screen-full",60236),screenNormal:s("screen-normal",60237),searchStop:s("search-stop",60238),server:s("server",60240),settingsGear:s("settings-gear",60241),settings:s("settings",60242),shield:s("shield",60243),smiley:s("smiley",60244),sortPrecedence:s("sort-precedence",60245),splitHorizontal:s("split-horizontal",60246),splitVertical:s("split-vertical",60247),squirrel:s("squirrel",60248),starFull:s("star-full",60249),starHalf:s("star-half",60250),symbolClass:s("symbol-class",60251),symbolColor:s("symbol-color",60252),symbolConstant:s("symbol-constant",60253),symbolEnumMember:s("symbol-enum-member",60254),symbolField:s("symbol-field",60255),symbolFile:s("symbol-file",60256),symbolInterface:s("symbol-interface",60257),symbolKeyword:s("symbol-keyword",60258),symbolMisc:s("symbol-misc",60259),symbolOperator:s("symbol-operator",60260),symbolProperty:s("symbol-property",60261),wrench:s("wrench",60261),wrenchSubaction:s("wrench-subaction",60261),symbolSnippet:s("symbol-snippet",60262),tasklist:s("tasklist",60263),telescope:s("telescope",60264),textSize:s("text-size",60265),threeBars:s("three-bars",60266),thumbsdown:s("thumbsdown",60267),thumbsup:s("thumbsup",60268),tools:s("tools",60269),triangleDown:s("triangle-down",60270),triangleLeft:s("triangle-left",60271),triangleRight:s("triangle-right",60272),triangleUp:s("triangle-up",60273),twitter:s("twitter",60274),unfold:s("unfold",60275),unlock:s("unlock",60276),unmute:s("unmute",60277),unverified:s("unverified",60278),verified:s("verified",60279),versions:s("versions",60280),vmActive:s("vm-active",60281),vmOutline:s("vm-outline",60282),vmRunning:s("vm-running",60283),watch:s("watch",60284),whitespace:s("whitespace",60285),wholeWord:s("whole-word",60286),window:s("window",60287),wordWrap:s("word-wrap",60288),zoomIn:s("zoom-in",60289),zoomOut:s("zoom-out",60290),listFilter:s("list-filter",60291),listFlat:s("list-flat",60292),listSelection:s("list-selection",60293),selection:s("selection",60293),listTree:s("list-tree",60294),debugBreakpointFunctionUnverified:s("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:s("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:s("debug-breakpoint-function-disabled",60296),debugStackframeActive:s("debug-stackframe-active",60297),circleSmallFilled:s("circle-small-filled",60298),debugStackframeDot:s("debug-stackframe-dot",60298),terminalDecorationMark:s("terminal-decoration-mark",60298),debugStackframe:s("debug-stackframe",60299),debugStackframeFocused:s("debug-stackframe-focused",60299),debugBreakpointUnsupported:s("debug-breakpoint-unsupported",60300),symbolString:s("symbol-string",60301),debugReverseContinue:s("debug-reverse-continue",60302),debugStepBack:s("debug-step-back",60303),debugRestartFrame:s("debug-restart-frame",60304),debugAlt:s("debug-alt",60305),callIncoming:s("call-incoming",60306),callOutgoing:s("call-outgoing",60307),menu:s("menu",60308),expandAll:s("expand-all",60309),feedback:s("feedback",60310),gitPullRequestReviewer:s("git-pull-request-reviewer",60310),groupByRefType:s("group-by-ref-type",60311),ungroupByRefType:s("ungroup-by-ref-type",60312),account:s("account",60313),gitPullRequestAssignee:s("git-pull-request-assignee",60313),bellDot:s("bell-dot",60314),debugConsole:s("debug-console",60315),library:s("library",60316),output:s("output",60317),runAll:s("run-all",60318),syncIgnored:s("sync-ignored",60319),pinned:s("pinned",60320),githubInverted:s("github-inverted",60321),serverProcess:s("server-process",60322),serverEnvironment:s("server-environment",60323),pass:s("pass",60324),issueClosed:s("issue-closed",60324),stopCircle:s("stop-circle",60325),playCircle:s("play-circle",60326),record:s("record",60327),debugAltSmall:s("debug-alt-small",60328),vmConnect:s("vm-connect",60329),cloud:s("cloud",60330),merge:s("merge",60331),export:s("export",60332),graphLeft:s("graph-left",60333),magnet:s("magnet",60334),notebook:s("notebook",60335),redo:s("redo",60336),checkAll:s("check-all",60337),pinnedDirty:s("pinned-dirty",60338),passFilled:s("pass-filled",60339),circleLargeFilled:s("circle-large-filled",60340),circleLarge:s("circle-large",60341),circleLargeOutline:s("circle-large-outline",60341),combine:s("combine",60342),gather:s("gather",60342),table:s("table",60343),variableGroup:s("variable-group",60344),typeHierarchy:s("type-hierarchy",60345),typeHierarchySub:s("type-hierarchy-sub",60346),typeHierarchySuper:s("type-hierarchy-super",60347),gitPullRequestCreate:s("git-pull-request-create",60348),runAbove:s("run-above",60349),runBelow:s("run-below",60350),notebookTemplate:s("notebook-template",60351),debugRerun:s("debug-rerun",60352),workspaceTrusted:s("workspace-trusted",60353),workspaceUntrusted:s("workspace-untrusted",60354),workspaceUnknown:s("workspace-unknown",60355),terminalCmd:s("terminal-cmd",60356),terminalDebian:s("terminal-debian",60357),terminalLinux:s("terminal-linux",60358),terminalPowershell:s("terminal-powershell",60359),terminalTmux:s("terminal-tmux",60360),terminalUbuntu:s("terminal-ubuntu",60361),terminalBash:s("terminal-bash",60362),arrowSwap:s("arrow-swap",60363),copy:s("copy",60364),personAdd:s("person-add",60365),filterFilled:s("filter-filled",60366),wand:s("wand",60367),debugLineByLine:s("debug-line-by-line",60368),inspect:s("inspect",60369),layers:s("layers",60370),layersDot:s("layers-dot",60371),layersActive:s("layers-active",60372),compass:s("compass",60373),compassDot:s("compass-dot",60374),compassActive:s("compass-active",60375),azure:s("azure",60376),issueDraft:s("issue-draft",60377),gitPullRequestClosed:s("git-pull-request-closed",60378),gitPullRequestDraft:s("git-pull-request-draft",60379),debugAll:s("debug-all",60380),debugCoverage:s("debug-coverage",60381),runErrors:s("run-errors",60382),folderLibrary:s("folder-library",60383),debugContinueSmall:s("debug-continue-small",60384),beakerStop:s("beaker-stop",60385),graphLine:s("graph-line",60386),graphScatter:s("graph-scatter",60387),pieChart:s("pie-chart",60388),bracket:s("bracket",60175),bracketDot:s("bracket-dot",60389),bracketError:s("bracket-error",60390),lockSmall:s("lock-small",60391),azureDevops:s("azure-devops",60392),verifiedFilled:s("verified-filled",60393),newline:s("newline",60394),layout:s("layout",60395),layoutActivitybarLeft:s("layout-activitybar-left",60396),layoutActivitybarRight:s("layout-activitybar-right",60397),layoutPanelLeft:s("layout-panel-left",60398),layoutPanelCenter:s("layout-panel-center",60399),layoutPanelJustify:s("layout-panel-justify",60400),layoutPanelRight:s("layout-panel-right",60401),layoutPanel:s("layout-panel",60402),layoutSidebarLeft:s("layout-sidebar-left",60403),layoutSidebarRight:s("layout-sidebar-right",60404),layoutStatusbar:s("layout-statusbar",60405),layoutMenubar:s("layout-menubar",60406),layoutCentered:s("layout-centered",60407),target:s("target",60408),indent:s("indent",60409),recordSmall:s("record-small",60410),errorSmall:s("error-small",60411),terminalDecorationError:s("terminal-decoration-error",60411),arrowCircleDown:s("arrow-circle-down",60412),arrowCircleLeft:s("arrow-circle-left",60413),arrowCircleRight:s("arrow-circle-right",60414),arrowCircleUp:s("arrow-circle-up",60415),layoutSidebarRightOff:s("layout-sidebar-right-off",60416),layoutPanelOff:s("layout-panel-off",60417),layoutSidebarLeftOff:s("layout-sidebar-left-off",60418),blank:s("blank",60419),heartFilled:s("heart-filled",60420),map:s("map",60421),mapHorizontal:s("map-horizontal",60421),foldHorizontal:s("fold-horizontal",60421),mapFilled:s("map-filled",60422),mapHorizontalFilled:s("map-horizontal-filled",60422),foldHorizontalFilled:s("fold-horizontal-filled",60422),circleSmall:s("circle-small",60423),bellSlash:s("bell-slash",60424),bellSlashDot:s("bell-slash-dot",60425),commentUnresolved:s("comment-unresolved",60426),gitPullRequestGoToChanges:s("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:s("git-pull-request-new-changes",60428),searchFuzzy:s("search-fuzzy",60429),commentDraft:s("comment-draft",60430),send:s("send",60431),sparkle:s("sparkle",60432),insert:s("insert",60433),mic:s("mic",60434),thumbsdownFilled:s("thumbsdown-filled",60435),thumbsupFilled:s("thumbsup-filled",60436),coffee:s("coffee",60437),snake:s("snake",60438),game:s("game",60439),vr:s("vr",60440),chip:s("chip",60441),piano:s("piano",60442),music:s("music",60443),micFilled:s("mic-filled",60444),repoFetch:s("repo-fetch",60445),copilot:s("copilot",60446),lightbulbSparkle:s("lightbulb-sparkle",60447),robot:s("robot",60448),sparkleFilled:s("sparkle-filled",60449),diffSingle:s("diff-single",60450),diffMultiple:s("diff-multiple",60451),surroundWith:s("surround-with",60452),share:s("share",60453),gitStash:s("git-stash",60454),gitStashApply:s("git-stash-apply",60455),gitStashPop:s("git-stash-pop",60456),vscode:s("vscode",60457),vscodeInsiders:s("vscode-insiders",60458),codeOss:s("code-oss",60459),runCoverage:s("run-coverage",60460),runAllCoverage:s("run-all-coverage",60461),coverage:s("coverage",60462),githubProject:s("github-project",60463),mapVertical:s("map-vertical",60464),foldVertical:s("fold-vertical",60464),mapVerticalFilled:s("map-vertical-filled",60465),foldVerticalFilled:s("fold-vertical-filled",60465),goToSearch:s("go-to-search",60466),percentage:s("percentage",60467),sortPercentage:s("sort-percentage",60467),attach:s("attach",60468),dialogError:s("dialog-error","error"),dialogWarning:s("dialog-warning","warning"),dialogInfo:s("dialog-info","info"),dialogClose:s("dialog-close","close"),treeItemExpanded:s("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:s("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:s("tree-filter-on-type-off","list-selection"),treeFilterClear:s("tree-filter-clear","close"),treeItemLoading:s("tree-item-loading","loading"),menuSelection:s("menu-selection","check"),menuSubmenu:s("menu-submenu","chevron-right"),menuBarMore:s("menubar-more","more"),scrollbarButtonLeft:s("scrollbar-button-left","triangle-left"),scrollbarButtonRight:s("scrollbar-button-right","triangle-right"),scrollbarButtonUp:s("scrollbar-button-up","triangle-up"),scrollbarButtonDown:s("scrollbar-button-down","triangle-down"),toolBarMore:s("toolbar-more","more"),quickInputBack:s("quick-input-back","arrow-left"),dropDownButton:s("drop-down-button",60084),symbolCustomColor:s("symbol-customcolor",60252),exportIcon:s("export",60332),workspaceUnspecified:s("workspace-unspecified",60355),newLine:s("newline",60394),thumbsDownFilled:s("thumbsdown-filled",60435),thumbsUpFilled:s("thumbsup-filled",60436),gitFetch:s("git-fetch",60445),lightbulbSparkleAutofix:s("lightbulb-sparkle-autofix",60447),debugBreakpointPending:s("debug-breakpoint-pending",60377)}},2349:(e,t,n)=>{"use strict";function r(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(typeof e!=typeof t)return!1;if("object"!=typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;let n,i;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(!r(e[n],t[n]))return!1}else{const s=[];for(i in e)s.push(i);s.sort();const o=[];for(i in t)o.push(i);if(o.sort(),!r(s,o))return!1;for(n=0;n<s.length;n++)if(!r(e[s[n]],t[s[n]]))return!1}return!0}function i(e){const t=[];for(const n of function(e){let t=[];for(;Object.prototype!==e;)t=t.concat(Object.getOwnPropertyNames(e)),e=Object.getPrototypeOf(e);return t}(e))"function"==typeof e[n]&&t.push(n);return t}function s(e,t){const n=e=>function(){const n=Array.prototype.slice.call(arguments,0);return t(e,n)},r={};for(const t of e)r[t]=n(t);return r}n.d(t,{V0:()=>i,aI:()=>r,kT:()=>s}),Object.prototype.hasOwnProperty},2373:(e,t,n)=>{var r={"./simpleWorker":6078,"./simpleWorker.js":6078};function i(e){return Promise.resolve().then((()=>{if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n(r[e])}))}i.keys=()=>Object.keys(r),i.id=2373,e.exports=i},2875:(e,t,n)=>{"use strict";var r;n.d(t,{f:()=>r}),function(e){function t(e){return e&&"object"==typeof e&&"function"==typeof e[Symbol.iterator]}e.is=t;const n=Object.freeze([]);function*r(e){yield e}e.empty=function(){return n},e.single=r,e.wrap=function(e){return t(e)?e:r(e)},e.from=function(e){return e||n},e.reverse=function*(e){for(let t=e.length-1;t>=0;t--)yield e[t]},e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done},e.first=function(e){return e[Symbol.iterator]().next().value},e.some=function(e,t){let n=0;for(const r of e)if(t(r,n++))return!0;return!1},e.find=function(e,t){for(const n of e)if(t(n))return n},e.filter=function*(e,t){for(const n of e)t(n)&&(yield n)},e.map=function*(e,t){let n=0;for(const r of e)yield t(r,n++)},e.flatMap=function*(e,t){let n=0;for(const r of e)yield*t(r,n++)},e.concat=function*(...e){for(const t of e)yield*t},e.reduce=function(e,t,n){let r=n;for(const n of e)r=t(r,n);return r},e.slice=function*(e,t,n=e.length){for(t<0&&(t+=e.length),n<0?n+=e.length:n>e.length&&(n=e.length);t<n;t++)yield e[t]},e.consume=function(t,n=Number.POSITIVE_INFINITY){const r=[];if(0===n)return[r,t];const i=t[Symbol.iterator]();for(let t=0;t<n;t++){const t=i.next();if(t.done)return[r,e.empty()];r.push(t.value)}return[r,{[Symbol.iterator]:()=>i}]},e.asyncToArray=async function(e){const t=[];for await(const n of e)t.push(n);return Promise.resolve(t)}}(r||(r={}))},2926:(e,t,n)=>{"use strict";n.d(t,{Qi:()=>a});var r=n(1069);const i=Object.freeze((function(e,t){const n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}}));var s;!function(e){e.isCancellationToken=function(t){return t===e.None||t===e.Cancelled||t instanceof o||!(!t||"object"!=typeof t)&&"boolean"==typeof t.isCancellationRequested&&"function"==typeof t.onCancellationRequested},e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:r.Jh.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:i})}(s||(s={}));class o{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?i:(this._emitter||(this._emitter=new r.vl),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class a{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new o),this._token}cancel(){this._token?this._token instanceof o&&this._token.cancel():this._token=s.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener?.dispose(),this._token?this._token instanceof o&&this._token.dispose():this._token=s.None}}},3078:e=>{"use strict";function t(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,r="",i=0,s=-1,o=0,a=0;a<=e.length;++a){if(a<e.length)n=e.charCodeAt(a);else{if(47===n)break;n=47}if(47===n){if(s===a-1||1===o);else if(s!==a-1&&2===o){if(r.length<2||2!==i||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2))if(r.length>2){var l=r.lastIndexOf("/");if(l!==r.length-1){-1===l?(r="",i=0):i=(r=r.slice(0,l)).length-1-r.lastIndexOf("/"),s=a,o=0;continue}}else if(2===r.length||1===r.length){r="",i=0,s=a,o=0;continue}t&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+e.slice(s+1,a):r=e.slice(s+1,a),i=a-s-1;s=a,o=0}else 46===n&&-1!==o?++o:o=-1}return r}var r={resolve:function(){for(var e,r="",i=!1,s=arguments.length-1;s>=-1&&!i;s--){var o;s>=0?o=arguments[s]:(void 0===e&&(e=process.cwd()),o=e),t(o),0!==o.length&&(r=o+"/"+r,i=47===o.charCodeAt(0))}return r=n(r,!i),i?r.length>0?"/"+r:"/":r.length>0?r:"."},normalize:function(e){if(t(e),0===e.length)return".";var r=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return 0!==(e=n(e,!r)).length||r||(e="."),e.length>0&&i&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,n=0;n<arguments.length;++n){var i=arguments[n];t(i),i.length>0&&(void 0===e?e=i:e+="/"+i)}return void 0===e?".":r.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n)return"";if((e=r.resolve(e))===(n=r.resolve(n)))return"";for(var i=1;i<e.length&&47===e.charCodeAt(i);++i);for(var s=e.length,o=s-i,a=1;a<n.length&&47===n.charCodeAt(a);++a);for(var l=n.length-a,u=o<l?o:l,c=-1,h=0;h<=u;++h){if(h===u){if(l>u){if(47===n.charCodeAt(a+h))return n.slice(a+h+1);if(0===h)return n.slice(a+h)}else o>u&&(47===e.charCodeAt(i+h)?c=h:0===h&&(c=0));break}var f=e.charCodeAt(i+h);if(f!==n.charCodeAt(a+h))break;47===f&&(c=h)}var d="";for(h=i+c+1;h<=s;++h)h!==s&&47!==e.charCodeAt(h)||(0===d.length?d+="..":d+="/..");return d.length>0?d+n.slice(a+c):(a+=c,47===n.charCodeAt(a)&&++a,n.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),r=47===n,i=-1,s=!0,o=e.length-1;o>=1;--o)if(47===(n=e.charCodeAt(o))){if(!s){i=o;break}}else s=!1;return-1===i?r?"/":".":r&&1===i?"//":e.slice(0,i)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');t(e);var r,i=0,s=-1,o=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var a=n.length-1,l=-1;for(r=e.length-1;r>=0;--r){var u=e.charCodeAt(r);if(47===u){if(!o){i=r+1;break}}else-1===l&&(o=!1,l=r+1),a>=0&&(u===n.charCodeAt(a)?-1==--a&&(s=r):(a=-1,s=l))}return i===s?s=l:-1===s&&(s=e.length),e.slice(i,s)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!o){i=r+1;break}}else-1===s&&(o=!1,s=r+1);return-1===s?"":e.slice(i,s)},extname:function(e){t(e);for(var n=-1,r=0,i=-1,s=!0,o=0,a=e.length-1;a>=0;--a){var l=e.charCodeAt(a);if(47!==l)-1===i&&(s=!1,i=a+1),46===l?-1===n?n=a:1!==o&&(o=1):-1!==n&&(o=-1);else if(!s){r=a+1;break}}return-1===n||-1===i||0===o||1===o&&n===i-1&&n===r+1?"":e.slice(n,i)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+"/"+r:r}(0,e)},parse:function(e){t(e);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;var r,i=e.charCodeAt(0),s=47===i;s?(n.root="/",r=1):r=0;for(var o=-1,a=0,l=-1,u=!0,c=e.length-1,h=0;c>=r;--c)if(47!==(i=e.charCodeAt(c)))-1===l&&(u=!1,l=c+1),46===i?-1===o?o=c:1!==h&&(h=1):-1!==o&&(h=-1);else if(!u){a=c+1;break}return-1===o||-1===l||0===h||1===h&&o===l-1&&o===a+1?-1!==l&&(n.base=n.name=0===a&&s?e.slice(1,l):e.slice(a,l)):(0===a&&s?(n.name=e.slice(1,o),n.base=e.slice(1,l)):(n.name=e.slice(a,o),n.base=e.slice(a,l)),n.ext=e.slice(o,l)),a>0?n.dir=e.slice(0,a-1):s&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};r.posix=r,e.exports=r},3434:(e,t,n)=>{"use strict";n.d(t,{y:()=>r});class r{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new r(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return r.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return r.isBefore(this,e)}static isBefore(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<t.column}isBeforeOrEqual(e){return r.isBeforeOrEqual(this,e)}static isBeforeOrEqual(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<=t.column}static compare(e,t){const n=0|e.lineNumber,r=0|t.lineNumber;return n===r?(0|e.column)-(0|t.column):n-r}clone(){return new r(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(e){return new r(e.lineNumber,e.column)}static isIPosition(e){return e&&"number"==typeof e.lineNumber&&"number"==typeof e.column}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}}},3641:(e,t,n)=>{"use strict";n.d(t,{rY:()=>w,ou:()=>D,dG:()=>E,OB:()=>S});var r=n(2346),i=(n(8095),n(1069)),s=n(714);class o{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new i.vl,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})}register(e,t){return this._tokenizationSupports.set(e,t),this.handleChange([e]),(0,s.s)((()=>{this._tokenizationSupports.get(e)===t&&(this._tokenizationSupports.delete(e),this.handleChange([e]))}))}get(e){return this._tokenizationSupports.get(e)||null}registerFactory(e,t){this._factories.get(e)?.dispose();const n=new a(this,e,t);return this._factories.set(e,n),(0,s.s)((()=>{const t=this._factories.get(e);t&&t===n&&(this._factories.delete(e),t.dispose())}))}async getOrCreate(e){const t=this.get(e);if(t)return t;const n=this._factories.get(e);return!n||n.isResolved?null:(await n.resolve(),this.get(e))}isResolved(e){if(this.get(e))return!0;const t=this._factories.get(e);return!(t&&!t.isResolved)}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}}class a extends s.jG{get isResolved(){return this._isResolved}constructor(e,t,n){super(),this._registry=e,this._languageId=t,this._factory=n,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}async _create(){const e=await this._factory.tokenizationSupport;this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))}}var l,u,c,h,f,d,m,p,g,y,b,v=n(5459);class D{constructor(e,t,n){this.offset=e,this.type=t,this.language=n,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}class w{constructor(e,t){this.tokens=e,this.endState=t,this._encodedTokenizationResultBrand=void 0}}!function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"}(l||(l={})),function(e){const t=new Map;t.set(0,r.W.symbolMethod),t.set(1,r.W.symbolFunction),t.set(2,r.W.symbolConstructor),t.set(3,r.W.symbolField),t.set(4,r.W.symbolVariable),t.set(5,r.W.symbolClass),t.set(6,r.W.symbolStruct),t.set(7,r.W.symbolInterface),t.set(8,r.W.symbolModule),t.set(9,r.W.symbolProperty),t.set(10,r.W.symbolEvent),t.set(11,r.W.symbolOperator),t.set(12,r.W.symbolUnit),t.set(13,r.W.symbolValue),t.set(15,r.W.symbolEnum),t.set(14,r.W.symbolConstant),t.set(15,r.W.symbolEnum),t.set(16,r.W.symbolEnumMember),t.set(17,r.W.symbolKeyword),t.set(27,r.W.symbolSnippet),t.set(18,r.W.symbolText),t.set(19,r.W.symbolColor),t.set(20,r.W.symbolFile),t.set(21,r.W.symbolReference),t.set(22,r.W.symbolCustomColor),t.set(23,r.W.symbolFolder),t.set(24,r.W.symbolTypeParameter),t.set(25,r.W.account),t.set(26,r.W.issues),e.toIcon=function(e){let n=t.get(e);return n||(console.info("No codicon found for CompletionItemKind "+e),n=r.W.symbolProperty),n};const n=new Map;n.set("method",0),n.set("function",1),n.set("constructor",2),n.set("field",3),n.set("variable",4),n.set("class",5),n.set("struct",6),n.set("interface",7),n.set("module",8),n.set("property",9),n.set("event",10),n.set("operator",11),n.set("unit",12),n.set("value",13),n.set("constant",14),n.set("enum",15),n.set("enum-member",16),n.set("enumMember",16),n.set("keyword",17),n.set("snippet",27),n.set("text",18),n.set("color",19),n.set("file",20),n.set("reference",21),n.set("customcolor",22),n.set("folder",23),n.set("type-parameter",24),n.set("typeParameter",24),n.set("account",25),n.set("issue",26),e.fromString=function(e,t){let r=n.get(e);return void 0!==r||t||(r=9),r}}(u||(u={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(c||(c={})),function(e){e[e.Automatic=0]="Automatic",e[e.PasteAs=1]="PasteAs"}(h||(h={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(f||(f={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(d||(d={})),(0,v.kg)("Array","array"),(0,v.kg)("Boolean","boolean"),(0,v.kg)("Class","class"),(0,v.kg)("Constant","constant"),(0,v.kg)("Constructor","constructor"),(0,v.kg)("Enum","enumeration"),(0,v.kg)("EnumMember","enumeration member"),(0,v.kg)("Event","event"),(0,v.kg)("Field","field"),(0,v.kg)("File","file"),(0,v.kg)("Function","function"),(0,v.kg)("Interface","interface"),(0,v.kg)("Key","key"),(0,v.kg)("Method","method"),(0,v.kg)("Module","module"),(0,v.kg)("Namespace","namespace"),(0,v.kg)("Null","null"),(0,v.kg)("Number","number"),(0,v.kg)("Object","object"),(0,v.kg)("Operator","operator"),(0,v.kg)("Package","package"),(0,v.kg)("Property","property"),(0,v.kg)("String","string"),(0,v.kg)("Struct","struct"),(0,v.kg)("TypeParameter","type parameter"),(0,v.kg)("Variable","variable"),function(e){const t=new Map;t.set(0,r.W.symbolFile),t.set(1,r.W.symbolModule),t.set(2,r.W.symbolNamespace),t.set(3,r.W.symbolPackage),t.set(4,r.W.symbolClass),t.set(5,r.W.symbolMethod),t.set(6,r.W.symbolProperty),t.set(7,r.W.symbolField),t.set(8,r.W.symbolConstructor),t.set(9,r.W.symbolEnum),t.set(10,r.W.symbolInterface),t.set(11,r.W.symbolFunction),t.set(12,r.W.symbolVariable),t.set(13,r.W.symbolConstant),t.set(14,r.W.symbolString),t.set(15,r.W.symbolNumber),t.set(16,r.W.symbolBoolean),t.set(17,r.W.symbolArray),t.set(18,r.W.symbolObject),t.set(19,r.W.symbolKey),t.set(20,r.W.symbolNull),t.set(21,r.W.symbolEnumMember),t.set(22,r.W.symbolStruct),t.set(23,r.W.symbolEvent),t.set(24,r.W.symbolOperator),t.set(25,r.W.symbolTypeParameter),e.toIcon=function(e){let n=t.get(e);return n||(console.info("No codicon found for SymbolKind "+e),n=r.W.symbolProperty),n}}(m||(m={}));class C{static{this.Comment=new C("comment")}static{this.Imports=new C("imports")}static{this.Region=new C("region")}static fromValue(e){switch(e){case"comment":return C.Comment;case"imports":return C.Imports;case"region":return C.Region}return new C(e)}constructor(e){this.value=e}}!function(e){e[e.AIGenerated=1]="AIGenerated"}(p||(p={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(g||(g={})),function(e){e.is=function(e){return!(!e||"object"!=typeof e)&&"string"==typeof e.id&&"string"==typeof e.title}}(y||(y={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(b||(b={}));const E=new o,S=new o;var A;!function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(A||(A={}))},3715:(e,t,n)=>{"use strict";function r(e){return e}n.d(t,{VV:()=>s,o5:()=>i});class i{constructor(e,t){this.lastCache=void 0,this.lastArgKey=void 0,"function"==typeof e?(this._fn=e,this._computeKey=r):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){const t=this._computeKey(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this._fn(e)),this.lastCache}}class s{get cachedValues(){return this._map}constructor(e,t){this._map=new Map,this._map2=new Map,"function"==typeof e?(this._fn=e,this._computeKey=r):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){const t=this._computeKey(e);if(this._map2.has(t))return this._map2.get(t);const n=this._fn(e);return this._map.set(e,n),this._map2.set(t,n),n}}},4571:(e,t,n)=>{"use strict";n.r(t),n.d(t,{BaseEditorSimpleWorker:()=>Te,EditorSimpleWorker:()=>Ie,create:()=>Re});class r{constructor(e,t,n,r){this.originalStart=e,this.originalLength=t,this.modifiedStart=n,this.modifiedLength=r}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}var i=n(5109);class s{constructor(e){this.source=e}getElements(){const e=this.source,t=new Int32Array(e.length);for(let n=0,r=e.length;n<r;n++)t[n]=e.charCodeAt(n);return t}}function o(e,t,n){return new c(new s(e),new s(t)).ComputeDiff(n).changes}class a{static Assert(e,t){if(!e)throw new Error(t)}}class l{static Copy(e,t,n,r,i){for(let s=0;s<i;s++)n[r+s]=e[t+s]}static Copy2(e,t,n,r,i){for(let s=0;s<i;s++)n[r+s]=e[t+s]}}class u{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 r(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++}AddModifiedElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),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 c{constructor(e,t,n=null){this.ContinueProcessingPredicate=n,this._originalSequence=e,this._modifiedSequence=t;const[r,i,s]=c._getElements(e),[o,a,l]=c._getElements(t);this._hasStrings=s&&l,this._originalStringElements=r,this._originalElementsOrHash=i,this._modifiedStringElements=o,this._modifiedElementsOrHash=a,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&"string"==typeof e[0]}static _getElements(e){const t=e.getElements();if(c._isStringArray(t)){const e=new Int32Array(t.length);for(let n=0,r=t.length;n<r;n++)e[n]=(0,i.e2)(t[n],0);return[t,e,!0]}return t instanceof Int32Array?[[],t,!1]:[[],new Int32Array(t),!1]}ElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._modifiedStringElements[t])}ElementsAreStrictEqual(e,t){return!!this.ElementsAreEqual(e,t)&&c._getStrictElement(this._originalSequence,e)===c._getStrictElement(this._modifiedSequence,t)}static _getStrictElement(e,t){return"function"==typeof e.getStrictElement?e.getStrictElement(t):null}OriginalElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._originalElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._originalStringElements[t])}ModifiedElementsAreEqual(e,t){return this._modifiedElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._modifiedStringElements[e]===this._modifiedStringElements[t])}ComputeDiff(e){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,e)}_ComputeDiff(e,t,n,r,i){const s=[!1];let o=this.ComputeDiffRecursive(e,t,n,r,s);return i&&(o=this.PrettifyChanges(o)),{quitEarly:s[0],changes:o}}ComputeDiffRecursive(e,t,n,i,s){for(s[0]=!1;e<=t&&n<=i&&this.ElementsAreEqual(e,n);)e++,n++;for(;t>=e&&i>=n&&this.ElementsAreEqual(t,i);)t--,i--;if(e>t||n>i){let s;return n<=i?(a.Assert(e===t+1,"originalStart should only be one more than originalEnd"),s=[new r(e,0,n,i-n+1)]):e<=t?(a.Assert(n===i+1,"modifiedStart should only be one more than modifiedEnd"),s=[new r(e,t-e+1,n,0)]):(a.Assert(e===t+1,"originalStart should only be one more than originalEnd"),a.Assert(n===i+1,"modifiedStart should only be one more than modifiedEnd"),s=[]),s}const o=[0],l=[0],u=this.ComputeRecursionPoint(e,t,n,i,o,l,s),c=o[0],h=l[0];if(null!==u)return u;if(!s[0]){const o=this.ComputeDiffRecursive(e,c,n,h,s);let a=[];return a=s[0]?[new r(c+1,t-(c+1)+1,h+1,i-(h+1)+1)]:this.ComputeDiffRecursive(c+1,t,h+1,i,s),this.ConcatenateChanges(o,a)}return[new r(e,t-e+1,n,i-n+1)]}WALKTRACE(e,t,n,i,s,o,a,l,c,h,f,d,m,p,g,y,b,v){let D=null,w=null,C=new u,E=t,S=n,A=m[0]-y[0]-i,_=-1073741824,k=this.m_forwardHistory.length-1;do{const t=A+e;t===E||t<S&&c[t-1]<c[t+1]?(p=(f=c[t+1])-A-i,f<_&&C.MarkNextChange(),_=f,C.AddModifiedElement(f+1,p),A=t+1-e):(p=(f=c[t-1]+1)-A-i,f<_&&C.MarkNextChange(),_=f-1,C.AddOriginalElement(f,p+1),A=t-1-e),k>=0&&(e=(c=this.m_forwardHistory[k])[0],E=1,S=c.length-1)}while(--k>=-1);if(D=C.getReverseChanges(),v[0]){let e=m[0]+1,t=y[0]+1;if(null!==D&&D.length>0){const n=D[D.length-1];e=Math.max(e,n.getOriginalEnd()),t=Math.max(t,n.getModifiedEnd())}w=[new r(e,d-e+1,t,g-t+1)]}else{C=new u,E=o,S=a,A=m[0]-y[0]-l,_=1073741824,k=b?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const e=A+s;e===E||e<S&&h[e-1]>=h[e+1]?(p=(f=h[e+1]-1)-A-l,f>_&&C.MarkNextChange(),_=f+1,C.AddOriginalElement(f+1,p+1),A=e+1-s):(p=(f=h[e-1])-A-l,f>_&&C.MarkNextChange(),_=f,C.AddModifiedElement(f+1,p+1),A=e-1-s),k>=0&&(s=(h=this.m_reverseHistory[k])[0],E=1,S=h.length-1)}while(--k>=-1);w=C.getChanges()}return this.ConcatenateChanges(D,w)}ComputeRecursionPoint(e,t,n,i,s,o,a){let u=0,c=0,h=0,f=0,d=0,m=0;e--,n--,s[0]=0,o[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const p=t-e+(i-n),g=p+1,y=new Int32Array(g),b=new Int32Array(g),v=i-n,D=t-e,w=e-n,C=t-i,E=(D-v)%2==0;y[v]=e,b[D]=t,a[0]=!1;for(let S=1;S<=p/2+1;S++){let p=0,A=0;h=this.ClipDiagonalBound(v-S,S,v,g),f=this.ClipDiagonalBound(v+S,S,v,g);for(let e=h;e<=f;e+=2){u=e===h||e<f&&y[e-1]<y[e+1]?y[e+1]:y[e-1]+1,c=u-(e-v)-w;const n=u;for(;u<t&&c<i&&this.ElementsAreEqual(u+1,c+1);)u++,c++;if(y[e]=u,u+c>p+A&&(p=u,A=c),!E&&Math.abs(e-D)<=S-1&&u>=b[e])return s[0]=u,o[0]=c,n<=b[e]&&S<=1448?this.WALKTRACE(v,h,f,w,D,d,m,C,y,b,u,t,s,c,i,o,E,a):null}const _=(p-e+(A-n)-S)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(p,_))return a[0]=!0,s[0]=p,o[0]=A,_>0&&S<=1448?this.WALKTRACE(v,h,f,w,D,d,m,C,y,b,u,t,s,c,i,o,E,a):(e++,n++,[new r(e,t-e+1,n,i-n+1)]);d=this.ClipDiagonalBound(D-S,S,D,g),m=this.ClipDiagonalBound(D+S,S,D,g);for(let r=d;r<=m;r+=2){u=r===d||r<m&&b[r-1]>=b[r+1]?b[r+1]-1:b[r-1],c=u-(r-D)-C;const l=u;for(;u>e&&c>n&&this.ElementsAreEqual(u,c);)u--,c--;if(b[r]=u,E&&Math.abs(r-v)<=S&&u<=y[r])return s[0]=u,o[0]=c,l>=y[r]&&S<=1448?this.WALKTRACE(v,h,f,w,D,d,m,C,y,b,u,t,s,c,i,o,E,a):null}if(S<=1447){let e=new Int32Array(f-h+2);e[0]=v-h+1,l.Copy2(y,h,e,1,f-h+1),this.m_forwardHistory.push(e),e=new Int32Array(m-d+2),e[0]=D-d+1,l.Copy2(b,d,e,1,m-d+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(v,h,f,w,D,d,m,C,y,b,u,t,s,c,i,o,E,a)}PrettifyChanges(e){for(let t=0;t<e.length;t++){const n=e[t],r=t<e.length-1?e[t+1].originalStart:this._originalElementsOrHash.length,i=t<e.length-1?e[t+1].modifiedStart:this._modifiedElementsOrHash.length,s=n.originalLength>0,o=n.modifiedLength>0;for(;n.originalStart+n.originalLength<r&&n.modifiedStart+n.modifiedLength<i&&(!s||this.OriginalElementsAreEqual(n.originalStart,n.originalStart+n.originalLength))&&(!o||this.ModifiedElementsAreEqual(n.modifiedStart,n.modifiedStart+n.modifiedLength));){const e=this.ElementsAreStrictEqual(n.originalStart,n.modifiedStart);if(this.ElementsAreStrictEqual(n.originalStart+n.originalLength,n.modifiedStart+n.modifiedLength)&&!e)break;n.originalStart++,n.modifiedStart++}const a=[null];t<e.length-1&&this.ChangesOverlap(e[t],e[t+1],a)&&(e[t]=a[0],e.splice(t+1,1),t--)}for(let t=e.length-1;t>=0;t--){const n=e[t];let r=0,i=0;if(t>0){const n=e[t-1];r=n.originalStart+n.originalLength,i=n.modifiedStart+n.modifiedLength}const s=n.originalLength>0,o=n.modifiedLength>0;let a=0,l=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength);for(let e=1;;e++){const t=n.originalStart-e,u=n.modifiedStart-e;if(t<r||u<i)break;if(s&&!this.OriginalElementsAreEqual(t,t+n.originalLength))break;if(o&&!this.ModifiedElementsAreEqual(u,u+n.modifiedLength))break;const c=(t===r&&u===i?5:0)+this._boundaryScore(t,n.originalLength,u,n.modifiedLength);c>l&&(l=c,a=e)}n.originalStart-=a,n.modifiedStart-=a;const u=[null];t>0&&this.ChangesOverlap(e[t-1],e[t],u)&&(e[t-1]=u[0],e.splice(t,1),t++)}if(this._hasStrings)for(let t=1,n=e.length;t<n;t++){const n=e[t-1],r=e[t],i=r.originalStart-n.originalStart-n.originalLength,s=n.originalStart,o=r.originalStart+r.originalLength,a=o-s,l=n.modifiedStart,u=r.modifiedStart+r.modifiedLength,c=u-l;if(i<5&&a<20&&c<20){const e=this._findBetterContiguousSequence(s,a,l,c,i);if(e){const[t,s]=e;t===n.originalStart+n.originalLength&&s===n.modifiedStart+n.modifiedLength||(n.originalLength=t-n.originalStart,n.modifiedLength=s-n.modifiedStart,r.originalStart=t+i,r.modifiedStart=s+i,r.originalLength=o-r.originalStart,r.modifiedLength=u-r.modifiedStart)}}}return e}_findBetterContiguousSequence(e,t,n,r,i){if(t<i||r<i)return null;const s=e+t-i+1,o=n+r-i+1;let a=0,l=0,u=0;for(let t=e;t<s;t++)for(let e=n;e<o;e++){const n=this._contiguousSequenceScore(t,e,i);n>0&&n>a&&(a=n,l=t,u=e)}return a>0?[l,u]:null}_contiguousSequenceScore(e,t,n){let r=0;for(let i=0;i<n;i++){if(!this.ElementsAreEqual(e+i,t+i))return 0;r+=this._originalStringElements[e+i].length}return r}_OriginalIsBoundary(e){return e<=0||e>=this._originalElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){const n=e+t;if(this._OriginalIsBoundary(n-1)||this._OriginalIsBoundary(n))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){const n=e+t;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1}_boundaryScore(e,t,n,r){return(this._OriginalRegionIsBoundary(e,t)?1:0)+(this._ModifiedRegionIsBoundary(n,r)?1:0)}ConcatenateChanges(e,t){const n=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],n)){const r=new Array(e.length+t.length-1);return l.Copy(e,0,r,0,e.length-1),r[e.length-1]=n[0],l.Copy(t,1,r,e.length,t.length-1),r}{const n=new Array(e.length+t.length);return l.Copy(e,0,n,0,e.length),l.Copy(t,0,n,e.length,t.length),n}}ChangesOverlap(e,t,n){if(a.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),a.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){const i=e.originalStart;let s=e.originalLength;const o=e.modifiedStart;let a=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(s=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(a=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new r(i,s,o,a),!0}return n[0]=null,!1}ClipDiagonalBound(e,t,n,r){if(e>=0&&e<r)return e;const i=t%2==0;return e<0?i===(n%2==0)?0:1:i===((r-n-1)%2==0)?r-1:r-2}}var h=n(520),f=n(5863);class d{constructor(e,t,n){const r=new Uint8Array(e*t);for(let i=0,s=e*t;i<s;i++)r[i]=n;this._data=r,this.rows=e,this.cols=t}get(e,t){return this._data[e*this.cols+t]}set(e,t,n){this._data[e*this.cols+t]=n}}class m{constructor(e){let t=0,n=0;for(let r=0,i=e.length;r<i;r++){const[i,s,o]=e[r];s>t&&(t=s),i>n&&(n=i),o>n&&(n=o)}t++,n++;const r=new d(n,t,0);for(let t=0,n=e.length;t<n;t++){const[n,i,s]=e[t];r.set(n,i,s)}this._states=r,this._maxCharCode=t}nextState(e,t){return t<0||t>=this._maxCharCode?0:this._states.get(e,t)}}let p=null,g=null;class y{static _createLink(e,t,n,r,i){let s=i-1;do{const n=t.charCodeAt(s);if(2!==e.get(n))break;s--}while(s>r);if(r>0){const e=t.charCodeAt(r-1),n=t.charCodeAt(s);(40===e&&41===n||91===e&&93===n||123===e&&125===n)&&s--}return{range:{startLineNumber:n,startColumn:r+1,endLineNumber:n,endColumn:s+2},url:t.substring(r,s+1)}}static computeLinks(e,t=function(){return null===p&&(p=new m([[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]])),p}()){const n=function(){if(null===g){g=new f.V(0);const e=" \t<>'\"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…";for(let t=0;t<e.length;t++)g.set(e.charCodeAt(t),1);const t=".,;:";for(let e=0;e<t.length;e++)g.set(t.charCodeAt(e),2)}return g}(),r=[];for(let i=1,s=e.getLineCount();i<=s;i++){const s=e.getLineContent(i),o=s.length;let a=0,l=0,u=0,c=1,h=!1,f=!1,d=!1,m=!1;for(;a<o;){let e=!1;const o=s.charCodeAt(a);if(13===c){let t;switch(o){case 40:h=!0,t=0;break;case 41:t=h?0:1;break;case 91:d=!0,f=!0,t=0;break;case 93:d=!1,t=f?0:1;break;case 123:m=!0,t=0;break;case 125:t=m?0:1;break;case 39:case 34:case 96:t=u===o?1:39===u||34===u||96===u?0:1;break;case 42:t=42===u?1:0;break;case 124:t=124===u?1:0;break;case 32:t=d?0:1;break;default:t=n.get(o)}1===t&&(r.push(y._createLink(n,s,i,l,a)),e=!0)}else if(12===c){let t;91===o?(f=!0,t=0):t=n.get(o),1===t?e=!0:c=13}else c=t.nextState(c,o),0===c&&(e=!0);e&&(c=1,h=!1,f=!1,m=!1,l=a+1,u=o),a++}13===c&&r.push(y._createLink(n,s,i,l,o))}return r}}class b{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}static{this.INSTANCE=new b}navigateValueSet(e,t,n,r,i){if(e&&t){const n=this.doNavigateValueSet(t,i);if(n)return{range:e,value:n}}if(n&&r){const e=this.doNavigateValueSet(r,i);if(e)return{range:n,value:e}}return null}doNavigateValueSet(e,t){const n=this.numberReplace(e,t);return null!==n?n:this.textReplace(e,t)}numberReplace(e,t){const n=Math.pow(10,e.length-(e.lastIndexOf(".")+1));let r=Number(e);const i=parseFloat(e);return isNaN(r)||isNaN(i)||r!==i?null:0!==r||t?(r=Math.floor(r*n),r+=t?n:-n,String(r/n)):null}textReplace(e,t){return this.valueSetsReplace(this._defaultValueSet,e,t)}valueSetsReplace(e,t,n){let r=null;for(let i=0,s=e.length;null===r&&i<s;i++)r=this.valueSetReplace(e[i],t,n);return r}valueSetReplace(e,t,n){let r=e.indexOf(t);return r>=0?(r+=n?1:-1,r<0?r=e.length-1:r%=e.length,e[r]):null}}var v=n(5149),D=n(4965),w=n(1726),C=n(5170);class E{constructor(e,t,n){this.changes=e,this.moves=t,this.hitTimeout=n}}class S{constructor(e,t){this.lineRangeMapping=e,this.changes=t}}var A=n(5146),_=n(9874),k=n(3434),N=n(5835),L=n(1729);n(9398);class x{constructor(e,t){this.range=e,this.text=t}toSingleEditOperation(){return{range:this.range,text:this.text}}}class F{static inverse(e,t,n){const r=[];let i=1,s=1;for(const t of e){const e=new F(new _.M(i,t.original.startLineNumber),new _.M(s,t.modified.startLineNumber));e.modified.isEmpty||r.push(e),i=t.original.endLineNumberExclusive,s=t.modified.endLineNumberExclusive}const o=new F(new _.M(i,t+1),new _.M(s,n+1));return o.modified.isEmpty||r.push(o),r}static clip(e,t,n){const r=[];for(const i of e){const e=i.original.intersect(t),s=i.modified.intersect(n);e&&!e.isEmpty&&s&&!s.isEmpty&&r.push(new F(e,s))}return r}constructor(e,t){this.original=e,this.modified=t}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new F(this.modified,this.original)}join(e){return new F(this.original.join(e.original),this.modified.join(e.modified))}toRangeMapping(){const e=this.original.toInclusiveRange(),t=this.modified.toInclusiveRange();if(e&&t)return new I(e,t);if(1===this.original.startLineNumber||1===this.modified.startLineNumber){if(1!==this.modified.startLineNumber||1!==this.original.startLineNumber)throw new A.D7("not a valid diff");return new I(new h.Q(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new h.Q(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1))}return new I(new h.Q(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),new h.Q(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER))}toRangeMapping2(e,t){if(M(this.original.endLineNumberExclusive,e)&&M(this.modified.endLineNumberExclusive,t))return new I(new h.Q(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new h.Q(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1));if(!this.original.isEmpty&&!this.modified.isEmpty)return new I(h.Q.fromPositions(new k.y(this.original.startLineNumber,1),O(new k.y(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),e)),h.Q.fromPositions(new k.y(this.modified.startLineNumber,1),O(new k.y(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),t)));if(this.original.startLineNumber>1&&this.modified.startLineNumber>1)return new I(h.Q.fromPositions(O(new k.y(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER),e),O(new k.y(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),e)),h.Q.fromPositions(O(new k.y(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER),t),O(new k.y(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),t)));throw new A.D7}}function O(e,t){if(e.lineNumber<1)return new k.y(1,1);if(e.lineNumber>t.length)return new k.y(t.length,t[t.length-1].length+1);const n=t[e.lineNumber-1];return e.column>n.length+1?new k.y(e.lineNumber,n.length+1):e}function M(e,t){return e>=1&&e<=t.length}class T extends F{static fromRangeMappings(e){const t=_.M.join(e.map((e=>_.M.fromRangeInclusive(e.originalRange)))),n=_.M.join(e.map((e=>_.M.fromRangeInclusive(e.modifiedRange))));return new T(t,n,e)}constructor(e,t,n){super(e,t),this.innerChanges=n}flip(){return new T(this.modified,this.original,this.innerChanges?.map((e=>e.flip())))}withInnerChangesFromLineRanges(){return new T(this.original,this.modified,[this.toRangeMapping()])}}class I{static assertSorted(e){for(let t=1;t<e.length;t++){const n=e[t-1],r=e[t];if(!n.originalRange.getEndPosition().isBeforeOrEqual(r.originalRange.getStartPosition())||!n.modifiedRange.getEndPosition().isBeforeOrEqual(r.modifiedRange.getStartPosition()))throw new A.D7("Range mappings must be sorted")}}constructor(e,t){this.originalRange=e,this.modifiedRange=t}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new I(this.modifiedRange,this.originalRange)}toTextEdit(e){const t=e.getValueOfRange(this.modifiedRange);return new x(this.originalRange,t)}}var R=n(5259);class P{computeDiff(e,t,n){const r=new q(e,t,{maxComputationTime:n.maxComputationTimeMs,shouldIgnoreTrimWhitespace:n.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),i=[];let s=null;for(const e of r.changes){let t,n;t=0===e.originalEndLineNumber?new _.M(e.originalStartLineNumber+1,e.originalStartLineNumber+1):new _.M(e.originalStartLineNumber,e.originalEndLineNumber+1),n=0===e.modifiedEndLineNumber?new _.M(e.modifiedStartLineNumber+1,e.modifiedStartLineNumber+1):new _.M(e.modifiedStartLineNumber,e.modifiedEndLineNumber+1);let r=new T(t,n,e.charChanges?.map((e=>new I(new h.Q(e.originalStartLineNumber,e.originalStartColumn,e.originalEndLineNumber,e.originalEndColumn),new h.Q(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn)))));s&&(s.modified.endLineNumberExclusive!==r.modified.startLineNumber&&s.original.endLineNumberExclusive!==r.original.startLineNumber||(r=new T(s.original.join(r.original),s.modified.join(r.modified),s.innerChanges&&r.innerChanges?s.innerChanges.concat(r.innerChanges):void 0),i.pop())),i.push(r),s=r}return(0,N.Ft)((()=>(0,N.Xo)(i,((e,t)=>t.original.startLineNumber-e.original.endLineNumberExclusive==t.modified.startLineNumber-e.modified.endLineNumberExclusive&&e.original.endLineNumberExclusive<t.original.startLineNumber&&e.modified.endLineNumberExclusive<t.modified.startLineNumber)))),new E(i,[],r.quitEarly)}}function B(e,t,n,r){return new c(e,t,n).ComputeDiff(r)}class ${constructor(e){const t=[],n=[];for(let r=0,i=e.length;r<i;r++)t[r]=K(e[r],1),n[r]=U(e[r],1);this.lines=e,this._startColumns=t,this._endColumns=n}getElements(){const e=[];for(let t=0,n=this.lines.length;t<n;t++)e[t]=this.lines[t].substring(this._startColumns[t]-1,this._endColumns[t]-1);return e}getStrictElement(e){return this.lines[e]}getStartLineNumber(e){return e+1}getEndLineNumber(e){return e+1}createCharSequence(e,t,n){const r=[],i=[],s=[];let o=0;for(let a=t;a<=n;a++){const t=this.lines[a],l=e?this._startColumns[a]:1,u=e?this._endColumns[a]:t.length+1;for(let e=l;e<u;e++)r[o]=t.charCodeAt(e-1),i[o]=a+1,s[o]=e,o++;!e&&a<n&&(r[o]=10,i[o]=a+1,s[o]=t.length+1,o++)}return new j(r,i,s)}}class j{constructor(e,t,n){this._charCodes=e,this._lineNumbers=t,this._columns=n}toString(){return"["+this._charCodes.map(((e,t)=>(10===e?"\\n":String.fromCharCode(e))+`-(${this._lineNumbers[t]},${this._columns[t]})`)).join(", ")+"]"}_assertIndex(e,t){if(e<0||e>=t.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(e){return e>0&&e===this._lineNumbers.length?this.getEndLineNumber(e-1):(this._assertIndex(e,this._lineNumbers),this._lineNumbers[e])}getEndLineNumber(e){return-1===e?this.getStartLineNumber(e+1):(this._assertIndex(e,this._lineNumbers),10===this._charCodes[e]?this._lineNumbers[e]+1:this._lineNumbers[e])}getStartColumn(e){return e>0&&e===this._columns.length?this.getEndColumn(e-1):(this._assertIndex(e,this._columns),this._columns[e])}getEndColumn(e){return-1===e?this.getStartColumn(e+1):(this._assertIndex(e,this._columns),10===this._charCodes[e]?1:this._columns[e]+1)}}class V{constructor(e,t,n,r,i,s,o,a){this.originalStartLineNumber=e,this.originalStartColumn=t,this.originalEndLineNumber=n,this.originalEndColumn=r,this.modifiedStartLineNumber=i,this.modifiedStartColumn=s,this.modifiedEndLineNumber=o,this.modifiedEndColumn=a}static createFromDiffChange(e,t,n){const r=t.getStartLineNumber(e.originalStart),i=t.getStartColumn(e.originalStart),s=t.getEndLineNumber(e.originalStart+e.originalLength-1),o=t.getEndColumn(e.originalStart+e.originalLength-1),a=n.getStartLineNumber(e.modifiedStart),l=n.getStartColumn(e.modifiedStart),u=n.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),c=n.getEndColumn(e.modifiedStart+e.modifiedLength-1);return new V(r,i,s,o,a,l,u,c)}}class W{constructor(e,t,n,r,i){this.originalStartLineNumber=e,this.originalEndLineNumber=t,this.modifiedStartLineNumber=n,this.modifiedEndLineNumber=r,this.charChanges=i}static createFromDiffResult(e,t,n,r,i,s,o){let a,l,u,c,h;if(0===t.originalLength?(a=n.getStartLineNumber(t.originalStart)-1,l=0):(a=n.getStartLineNumber(t.originalStart),l=n.getEndLineNumber(t.originalStart+t.originalLength-1)),0===t.modifiedLength?(u=r.getStartLineNumber(t.modifiedStart)-1,c=0):(u=r.getStartLineNumber(t.modifiedStart),c=r.getEndLineNumber(t.modifiedStart+t.modifiedLength-1)),s&&t.originalLength>0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&i()){const s=n.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),a=r.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);if(s.getElements().length>0&&a.getElements().length>0){let e=B(s,a,i,!0).changes;o&&(e=function(e){if(e.length<=1)return e;const t=[e[0]];let n=t[0];for(let r=1,i=e.length;r<i;r++){const i=e[r],s=i.originalStart-(n.originalStart+n.originalLength),o=i.modifiedStart-(n.modifiedStart+n.modifiedLength);Math.min(s,o)<3?(n.originalLength=i.originalStart+i.originalLength-n.originalStart,n.modifiedLength=i.modifiedStart+i.modifiedLength-n.modifiedStart):(t.push(i),n=i)}return t}(e)),h=[];for(let t=0,n=e.length;t<n;t++)h.push(V.createFromDiffChange(e[t],s,a))}}return new W(a,l,u,c,h)}}class q{constructor(e,t,n){this.shouldComputeCharChanges=n.shouldComputeCharChanges,this.shouldPostProcessCharChanges=n.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=n.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=n.shouldMakePrettyDiff,this.originalLines=e,this.modifiedLines=t,this.original=new $(e),this.modified=new $(t),this.continueLineDiff=H(n.maxComputationTime),this.continueCharDiff=H(0===n.maxComputationTime?0:Math.min(n.maxComputationTime,5e3))}computeDiff(){if(1===this.original.lines.length&&0===this.original.lines[0].length)return 1===this.modified.lines.length&&0===this.modified.lines[0].length?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:void 0}]};if(1===this.modified.lines.length&&0===this.modified.lines[0].length)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:void 0}]};const e=B(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),t=e.changes,n=e.quitEarly;if(this.shouldIgnoreTrimWhitespace){const e=[];for(let n=0,r=t.length;n<r;n++)e.push(W.createFromDiffResult(this.shouldIgnoreTrimWhitespace,t[n],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:n,changes:e}}const r=[];let i=0,s=0;for(let e=-1,n=t.length;e<n;e++){const o=e+1<n?t[e+1]:null,a=o?o.originalStart:this.originalLines.length,l=o?o.modifiedStart:this.modifiedLines.length;for(;i<a&&s<l;){const e=this.originalLines[i],t=this.modifiedLines[s];if(e!==t){{let n=K(e,1),o=K(t,1);for(;n>1&&o>1&&e.charCodeAt(n-2)===t.charCodeAt(o-2);)n--,o--;(n>1||o>1)&&this._pushTrimWhitespaceCharChange(r,i+1,1,n,s+1,1,o)}{let n=U(e,1),o=U(t,1);const a=e.length+1,l=t.length+1;for(;n<a&&o<l&&e.charCodeAt(n-1)===e.charCodeAt(o-1);)n++,o++;(n<a||o<l)&&this._pushTrimWhitespaceCharChange(r,i+1,n,a,s+1,o,l)}}i++,s++}o&&(r.push(W.createFromDiffResult(this.shouldIgnoreTrimWhitespace,o,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),i+=o.originalLength,s+=o.modifiedLength)}return{quitEarly:n,changes:r}}_pushTrimWhitespaceCharChange(e,t,n,r,i,s,o){if(this._mergeTrimWhitespaceCharChange(e,t,n,r,i,s,o))return;let a;this.shouldComputeCharChanges&&(a=[new V(t,n,t,r,i,s,i,o)]),e.push(new W(t,t,i,i,a))}_mergeTrimWhitespaceCharChange(e,t,n,r,i,s,o){const a=e.length;if(0===a)return!1;const l=e[a-1];return 0!==l.originalEndLineNumber&&0!==l.modifiedEndLineNumber&&(l.originalEndLineNumber===t&&l.modifiedEndLineNumber===i?(this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new V(t,n,t,r,i,s,i,o)),!0):l.originalEndLineNumber+1===t&&l.modifiedEndLineNumber+1===i&&(l.originalEndLineNumber=t,l.modifiedEndLineNumber=i,this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new V(t,n,t,r,i,s,i,o)),!0))}}function K(e,t){const n=R.HG(e);return-1===n?t:n+1}function U(e,t){const n=R.lT(e);return-1===n?t:n+2}function H(e){if(0===e)return()=>!0;const t=Date.now();return()=>Date.now()-t<e}var z=n(7840);class Y{static trivial(e,t){return new Y([new G(L.L.ofLength(e.length),L.L.ofLength(t.length))],!1)}static trivialTimedOut(e,t){return new Y([new G(L.L.ofLength(e.length),L.L.ofLength(t.length))],!0)}constructor(e,t){this.diffs=e,this.hitTimeout=t}}class G{static invert(e,t){const n=[];return(0,z.pN)(e,((e,r)=>{n.push(G.fromOffsetPairs(e?e.getEndExclusives():Q.zero,r?r.getStarts():new Q(t,(e?e.seq2Range.endExclusive-e.seq1Range.endExclusive:0)+t)))})),n}static fromOffsetPairs(e,t){return new G(new L.L(e.offset1,t.offset1),new L.L(e.offset2,t.offset2))}static assertSorted(e){let t;for(const n of e){if(t&&!(t.seq1Range.endExclusive<=n.seq1Range.start&&t.seq2Range.endExclusive<=n.seq2Range.start))throw new A.D7("Sequence diffs must be sorted");t=n}}constructor(e,t){this.seq1Range=e,this.seq2Range=t}swap(){return new G(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(e){return new G(this.seq1Range.join(e.seq1Range),this.seq2Range.join(e.seq2Range))}delta(e){return 0===e?this:new G(this.seq1Range.delta(e),this.seq2Range.delta(e))}deltaStart(e){return 0===e?this:new G(this.seq1Range.deltaStart(e),this.seq2Range.deltaStart(e))}deltaEnd(e){return 0===e?this:new G(this.seq1Range.deltaEnd(e),this.seq2Range.deltaEnd(e))}intersect(e){const t=this.seq1Range.intersect(e.seq1Range),n=this.seq2Range.intersect(e.seq2Range);if(t&&n)return new G(t,n)}getStarts(){return new Q(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new Q(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}class Q{static{this.zero=new Q(0,0)}static{this.max=new Q(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER)}constructor(e,t){this.offset1=e,this.offset2=t}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(e){return 0===e?this:new Q(this.offset1+e,this.offset2+e)}equals(e){return this.offset1===e.offset1&&this.offset2===e.offset2}}class J{static{this.instance=new J}isValid(){return!0}}class X{constructor(e){if(this.timeout=e,this.startTime=Date.now(),this.valid=!0,e<=0)throw new A.D7("timeout must be positive")}isValid(){return!(Date.now()-this.startTime<this.timeout)&&this.valid&&(this.valid=!1),this.valid}}class Z{constructor(e,t){this.width=e,this.height=t,this.array=[],this.array=new Array(e*t)}get(e,t){return this.array[e+t*this.width]}set(e,t,n){this.array[e+t*this.width]=n}}function ee(e){return 32===e||9===e}class te{static{this.chrKeys=new Map}static getKey(e){let t=this.chrKeys.get(e);return void 0===t&&(t=this.chrKeys.size,this.chrKeys.set(e,t)),t}constructor(e,t,n){this.range=e,this.lines=t,this.source=n,this.histogram=[];let r=0;for(let n=e.startLineNumber-1;n<e.endLineNumberExclusive-1;n++){const e=t[n];for(let t=0;t<e.length;t++){r++;const n=e[t],i=te.getKey(n);this.histogram[i]=(this.histogram[i]||0)+1}r++;const i=te.getKey("\n");this.histogram[i]=(this.histogram[i]||0)+1}this.totalCount=r}computeSimilarity(e){let t=0;const n=Math.max(this.histogram.length,e.histogram.length);for(let r=0;r<n;r++)t+=Math.abs((this.histogram[r]??0)-(e.histogram[r]??0));return 1-t/(this.totalCount+e.totalCount)}}class ne{compute(e,t,n=J.instance,r){if(0===e.length||0===t.length)return Y.trivial(e,t);const i=new Z(e.length,t.length),s=new Z(e.length,t.length),o=new Z(e.length,t.length);for(let a=0;a<e.length;a++)for(let l=0;l<t.length;l++){if(!n.isValid())return Y.trivialTimedOut(e,t);const u=0===a?0:i.get(a-1,l),c=0===l?0:i.get(a,l-1);let h;e.getElement(a)===t.getElement(l)?(h=0===a||0===l?0:i.get(a-1,l-1),a>0&&l>0&&3===s.get(a-1,l-1)&&(h+=o.get(a-1,l-1)),h+=r?r(a,l):1):h=-1;const f=Math.max(u,c,h);if(f===h){const e=a>0&&l>0?o.get(a-1,l-1):0;o.set(a,l,e+1),s.set(a,l,3)}else f===u?(o.set(a,l,0),s.set(a,l,1)):f===c&&(o.set(a,l,0),s.set(a,l,2));i.set(a,l,f)}const a=[];let l=e.length,u=t.length;function c(e,t){e+1===l&&t+1===u||a.push(new G(new L.L(e+1,l),new L.L(t+1,u))),l=e,u=t}let h=e.length-1,f=t.length-1;for(;h>=0&&f>=0;)3===s.get(h,f)?(c(h,f),h--,f--):1===s.get(h,f)?h--:f--;return c(-1,-1),a.reverse(),new Y(a,!1)}}class re{compute(e,t,n=J.instance){if(0===e.length||0===t.length)return Y.trivial(e,t);const r=e,i=t;function s(e,t){for(;e<r.length&&t<i.length&&r.getElement(e)===i.getElement(t);)e++,t++;return e}let o=0;const a=new se;a.set(0,s(0,0));const l=new oe;l.set(0,0===a.get(0)?null:new ie(null,0,0,a.get(0)));let u=0;e:for(;;){if(o++,!n.isValid())return Y.trivialTimedOut(r,i);const e=-Math.min(o,i.length+o%2),t=Math.min(o,r.length+o%2);for(u=e;u<=t;u+=2){let n=0;const o=u===t?-1:a.get(u+1),c=u===e?-1:a.get(u-1)+1;n++;const h=Math.min(Math.max(o,c),r.length),f=h-u;if(n++,h>r.length||f>i.length)continue;const d=s(h,f);a.set(u,d);const m=h===o?l.get(u+1):l.get(u-1);if(l.set(u,d!==h?new ie(m,h,f,d-h):m),a.get(u)===r.length&&a.get(u)-u===i.length)break e}}let c=l.get(u);const h=[];let f=r.length,d=i.length;for(;;){const e=c?c.x+c.length:0,t=c?c.y+c.length:0;if(e===f&&t===d||h.push(new G(new L.L(e,f),new L.L(t,d))),!c)break;f=c.x,d=c.y,c=c.prev}return h.reverse(),new Y(h,!1)}}class ie{constructor(e,t,n,r){this.prev=e,this.x=t,this.y=n,this.length=r}}class se{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,t){if(e<0){if((e=-e-1)>=this.negativeArr.length){const e=this.negativeArr;this.negativeArr=new Int32Array(2*e.length),this.negativeArr.set(e)}this.negativeArr[e]=t}else{if(e>=this.positiveArr.length){const e=this.positiveArr;this.positiveArr=new Int32Array(2*e.length),this.positiveArr.set(e)}this.positiveArr[e]=t}}}class oe{constructor(){this.positiveArr=[],this.negativeArr=[]}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,t){e<0?(e=-e-1,this.negativeArr[e]=t):this.positiveArr[e]=t}}var ae=n(404),le=n(9223);class ue{constructor(e,t,n){this.lines=e,this.range=t,this.considerWhitespaceChanges=n,this.elements=[],this.firstElementOffsetByLineIdx=[],this.lineStartOffsets=[],this.trimmedWsLengthsByLineIdx=[],this.firstElementOffsetByLineIdx.push(0);for(let t=this.range.startLineNumber;t<=this.range.endLineNumber;t++){let r=e[t-1],i=0;t===this.range.startLineNumber&&this.range.startColumn>1&&(i=this.range.startColumn-1,r=r.substring(i)),this.lineStartOffsets.push(i);let s=0;if(!n){const e=r.trimStart();s=r.length-e.length,r=e.trimEnd()}this.trimmedWsLengthsByLineIdx.push(s);const o=t===this.range.endLineNumber?Math.min(this.range.endColumn-1-i-s,r.length):r.length;for(let e=0;e<o;e++)this.elements.push(r.charCodeAt(e));t<this.range.endLineNumber&&(this.elements.push("\n".charCodeAt(0)),this.firstElementOffsetByLineIdx.push(this.elements.length))}}toString(){return`Slice: "${this.text}"`}get text(){return this.getText(new L.L(0,this.length))}getText(e){return this.elements.slice(e.start,e.endExclusive).map((e=>String.fromCharCode(e))).join("")}getElement(e){return this.elements[e]}get length(){return this.elements.length}getBoundaryScore(e){const t=de(e>0?this.elements[e-1]:-1),n=de(e<this.elements.length?this.elements[e]:-1);if(7===t&&8===n)return 0;if(8===t)return 150;let r=0;return t!==n&&(r+=10,0===t&&1===n&&(r+=1)),r+=fe(t),r+=fe(n),r}translateOffset(e,t="right"){const n=(0,ae.iM)(this.firstElementOffsetByLineIdx,(t=>t<=e)),r=e-this.firstElementOffsetByLineIdx[n];return new k.y(this.range.startLineNumber+n,1+this.lineStartOffsets[n]+r+(0===r&&"left"===t?0:this.trimmedWsLengthsByLineIdx[n]))}translateRange(e){const t=this.translateOffset(e.start,"right"),n=this.translateOffset(e.endExclusive,"left");return n.isBefore(t)?h.Q.fromPositions(n,n):h.Q.fromPositions(t,n)}findWordContaining(e){if(e<0||e>=this.elements.length)return;if(!ce(this.elements[e]))return;let t=e;for(;t>0&&ce(this.elements[t-1]);)t--;let n=e;for(;n<this.elements.length&&ce(this.elements[n]);)n++;return new L.L(t,n)}countLinesIn(e){return this.translateOffset(e.endExclusive).lineNumber-this.translateOffset(e.start).lineNumber}isStronglyEqual(e,t){return this.elements[e]===this.elements[t]}extendToFullLines(e){const t=(0,ae.lx)(this.firstElementOffsetByLineIdx,(t=>t<=e.start))??0,n=(0,ae.XP)(this.firstElementOffsetByLineIdx,(t=>e.endExclusive<=t))??this.elements.length;return new L.L(t,n)}}function ce(e){return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}const he={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function fe(e){return he[e]}function de(e){return 10===e?8:13===e?7:ee(e)?6:e>=97&&e<=122?0:e>=65&&e<=90?1:e>=48&&e<=57?2:-1===e?3:44===e||59===e?5:4}function me(e,t,n){if(e.trim()===t.trim())return!0;if(e.length>300&&t.length>300)return!1;const r=(new re).compute(new ue([e],new h.Q(1,1,1,e.length),!1),new ue([t],new h.Q(1,1,1,t.length),!1),n);let i=0;const s=G.invert(r.diffs,e.length);for(const t of s)t.seq1Range.forEach((t=>{ee(e.charCodeAt(t))||i++}));const o=function(t){let n=0;for(let r=0;r<e.length;r++)ee(t.charCodeAt(r))||n++;return n}(e.length>t.length?e:t);return i/o>.6&&o>10}function pe(e,t,n){let r=n;return r=ge(e,t,r),r=ge(e,t,r),r=function(e,t,n){if(!e.getBoundaryScore||!t.getBoundaryScore)return n;for(let r=0;r<n.length;r++){const i=r>0?n[r-1]:void 0,s=n[r],o=r+1<n.length?n[r+1]:void 0,a=new L.L(i?i.seq1Range.endExclusive+1:0,o?o.seq1Range.start-1:e.length),l=new L.L(i?i.seq2Range.endExclusive+1:0,o?o.seq2Range.start-1:t.length);s.seq1Range.isEmpty?n[r]=ye(s,e,t,a,l):s.seq2Range.isEmpty&&(n[r]=ye(s.swap(),t,e,l,a).swap())}return n}(e,t,r),r}function ge(e,t,n){if(0===n.length)return n;const r=[];r.push(n[0]);for(let i=1;i<n.length;i++){const s=r[r.length-1];let o=n[i];if(o.seq1Range.isEmpty||o.seq2Range.isEmpty){const n=o.seq1Range.start-s.seq1Range.endExclusive;let i;for(i=1;i<=n&&e.getElement(o.seq1Range.start-i)===e.getElement(o.seq1Range.endExclusive-i)&&t.getElement(o.seq2Range.start-i)===t.getElement(o.seq2Range.endExclusive-i);i++);if(i--,i===n){r[r.length-1]=new G(new L.L(s.seq1Range.start,o.seq1Range.endExclusive-n),new L.L(s.seq2Range.start,o.seq2Range.endExclusive-n));continue}o=o.delta(-i)}r.push(o)}const i=[];for(let n=0;n<r.length-1;n++){const s=r[n+1];let o=r[n];if(o.seq1Range.isEmpty||o.seq2Range.isEmpty){const i=s.seq1Range.start-o.seq1Range.endExclusive;let a;for(a=0;a<i&&e.isStronglyEqual(o.seq1Range.start+a,o.seq1Range.endExclusive+a)&&t.isStronglyEqual(o.seq2Range.start+a,o.seq2Range.endExclusive+a);a++);if(a===i){r[n+1]=new G(new L.L(o.seq1Range.start+i,s.seq1Range.endExclusive),new L.L(o.seq2Range.start+i,s.seq2Range.endExclusive));continue}a>0&&(o=o.delta(a))}i.push(o)}return r.length>0&&i.push(r[r.length-1]),i}function ye(e,t,n,r,i){let s=1;for(;e.seq1Range.start-s>=r.start&&e.seq2Range.start-s>=i.start&&n.isStronglyEqual(e.seq2Range.start-s,e.seq2Range.endExclusive-s)&&s<100;)s++;s--;let o=0;for(;e.seq1Range.start+o<r.endExclusive&&e.seq2Range.endExclusive+o<i.endExclusive&&n.isStronglyEqual(e.seq2Range.start+o,e.seq2Range.endExclusive+o)&&o<100;)o++;if(0===s&&0===o)return e;let a=0,l=-1;for(let r=-s;r<=o;r++){const i=e.seq2Range.start+r,s=e.seq2Range.endExclusive+r,o=e.seq1Range.start+r,u=t.getBoundaryScore(o)+n.getBoundaryScore(i)+n.getBoundaryScore(s);u>l&&(l=u,a=r)}return e.delta(a)}class be{constructor(e,t){this.trimmedHash=e,this.lines=t}getElement(e){return this.trimmedHash[e]}get length(){return this.trimmedHash.length}getBoundaryScore(e){return 1e3-((0===e?0:ve(this.lines[e-1]))+(e===this.lines.length?0:ve(this.lines[e])))}getText(e){return this.lines.slice(e.start,e.endExclusive).join("\n")}isStronglyEqual(e,t){return this.lines[e]===this.lines[t]}}function ve(e){let t=0;for(;t<e.length&&(32===e.charCodeAt(t)||9===e.charCodeAt(t));)t++;return t}class De{constructor(){this.dynamicProgrammingDiffing=new ne,this.myersDiffingAlgorithm=new re}computeDiff(e,t,n){if(e.length<=1&&(0,z.aI)(e,t,((e,t)=>e===t)))return new E([],[],!1);if(1===e.length&&0===e[0].length||1===t.length&&0===t[0].length)return new E([new T(new _.M(1,e.length+1),new _.M(1,t.length+1),[new I(new h.Q(1,1,e.length,e[e.length-1].length+1),new h.Q(1,1,t.length,t[t.length-1].length+1))])],[],!1);const r=0===n.maxComputationTimeMs?J.instance:new X(n.maxComputationTimeMs),i=!n.ignoreTrimWhitespace,s=new Map;function o(e){let t=s.get(e);return void 0===t&&(t=s.size,s.set(e,t)),t}const a=e.map((e=>o(e.trim()))),l=t.map((e=>o(e.trim()))),u=new be(a,e),c=new be(l,t),f=(()=>u.length+c.length<1700?this.dynamicProgrammingDiffing.compute(u,c,r,((n,r)=>e[n]===t[r]?0===t[r].length?.1:1+Math.log(1+t[r].length):.99)):this.myersDiffingAlgorithm.compute(u,c,r))();let d=f.diffs,m=f.hitTimeout;d=pe(u,c,d),d=function(e,t,n){let r=n;if(0===r.length)return r;let i,s=0;do{i=!1;const o=[r[0]];for(let a=1;a<r.length;a++){const l=r[a],u=o[o.length-1];function c(t,n){const r=new L.L(u.seq1Range.endExclusive,l.seq1Range.start);return e.getText(r).replace(/\s/g,"").length<=4&&(t.seq1Range.length+t.seq2Range.length>5||n.seq1Range.length+n.seq2Range.length>5)}c(u,l)?(i=!0,o[o.length-1]=o[o.length-1].join(l)):o.push(l)}r=o}while(s++<10&&i);return r}(u,0,d);const p=[],g=n=>{if(i)for(let s=0;s<n;s++){const n=y+s,o=b+s;if(e[n]!==t[o]){const s=this.refineDiff(e,t,new G(new L.L(n,n+1),new L.L(o,o+1)),r,i);for(const e of s.mappings)p.push(e);s.hitTimeout&&(m=!0)}}};let y=0,b=0;for(const n of d){(0,N.Ft)((()=>n.seq1Range.start-y==n.seq2Range.start-b)),g(n.seq1Range.start-y),y=n.seq1Range.endExclusive,b=n.seq2Range.endExclusive;const s=this.refineDiff(e,t,n,r,i);s.hitTimeout&&(m=!0);for(const e of s.mappings)p.push(e)}g(e.length-y);const v=we(p,e,t);let D=[];return n.computeMoves&&(D=this.computeMoves(v,e,t,a,l,r,i)),(0,N.Ft)((()=>{function n(e,t){if(e.lineNumber<1||e.lineNumber>t.length)return!1;const n=t[e.lineNumber-1];return!(e.column<1||e.column>n.length+1)}function r(e,t){return!(e.startLineNumber<1||e.startLineNumber>t.length+1||e.endLineNumberExclusive<1||e.endLineNumberExclusive>t.length+1)}for(const i of v){if(!i.innerChanges)return!1;for(const r of i.innerChanges)if(!(n(r.modifiedRange.getStartPosition(),t)&&n(r.modifiedRange.getEndPosition(),t)&&n(r.originalRange.getStartPosition(),e)&&n(r.originalRange.getEndPosition(),e)))return!1;if(!r(i.modified,t)||!r(i.original,e))return!1}return!0})),new E(v,D,m)}computeMoves(e,t,n,r,i,s,o){return function(e,t,n,r,i,s){let{moves:o,excludedChanges:a}=function(e,t,n,r){const i=[],s=e.filter((e=>e.modified.isEmpty&&e.original.length>=3)).map((e=>new te(e.original,t,e))),o=new Set(e.filter((e=>e.original.isEmpty&&e.modified.length>=3)).map((e=>new te(e.modified,n,e)))),a=new Set;for(const e of s){let t,n=-1;for(const r of o){const i=e.computeSimilarity(r);i>n&&(n=i,t=r)}if(n>.9&&t&&(o.delete(t),i.push(new F(e.range,t.range)),a.add(e.source),a.add(t.source)),!r.isValid())return{moves:i,excludedChanges:a}}return{moves:i,excludedChanges:a}}(e,t,n,s);if(!s.isValid())return[];const l=function(e,t,n,r,i,s){const o=[],a=new le.db;for(const n of e)for(let e=n.original.startLineNumber;e<n.original.endLineNumberExclusive-2;e++){const n=`${t[e-1]}:${t[e+1-1]}:${t[e+2-1]}`;a.add(n,{range:new _.M(e,e+3)})}const l=[];e.sort((0,z.VE)((e=>e.modified.startLineNumber),z.U9));for(const t of e){let e=[];for(let r=t.modified.startLineNumber;r<t.modified.endLineNumberExclusive-2;r++){const t=`${n[r-1]}:${n[r+1-1]}:${n[r+2-1]}`,i=new _.M(r,r+3),s=[];a.forEach(t,(({range:t})=>{for(const n of e)if(n.originalLineRange.endLineNumberExclusive+1===t.endLineNumberExclusive&&n.modifiedLineRange.endLineNumberExclusive+1===i.endLineNumberExclusive)return n.originalLineRange=new _.M(n.originalLineRange.startLineNumber,t.endLineNumberExclusive),n.modifiedLineRange=new _.M(n.modifiedLineRange.startLineNumber,i.endLineNumberExclusive),void s.push(n);const n={modifiedLineRange:i,originalLineRange:t};l.push(n),s.push(n)})),e=s}if(!s.isValid())return[]}l.sort((0,z.Hw)((0,z.VE)((e=>e.modifiedLineRange.length),z.U9)));const u=new _.S,c=new _.S;for(const e of l){const t=e.modifiedLineRange.startLineNumber-e.originalLineRange.startLineNumber,n=u.subtractFrom(e.modifiedLineRange),r=c.subtractFrom(e.originalLineRange).getWithDelta(t),i=n.getIntersection(r);for(const e of i.ranges){if(e.length<3)continue;const n=e,r=e.delta(-t);o.push(new F(r,n)),u.addRange(n),c.addRange(r)}}o.sort((0,z.VE)((e=>e.original.startLineNumber),z.U9));const h=new ae.vJ(e);for(let t=0;t<o.length;t++){const n=o[t],a=h.findLastMonotonous((e=>e.original.startLineNumber<=n.original.startLineNumber)),l=(0,ae.lx)(e,(e=>e.modified.startLineNumber<=n.modified.startLineNumber)),f=Math.max(n.original.startLineNumber-a.original.startLineNumber,n.modified.startLineNumber-l.modified.startLineNumber),d=h.findLastMonotonous((e=>e.original.startLineNumber<n.original.endLineNumberExclusive)),m=(0,ae.lx)(e,(e=>e.modified.startLineNumber<n.modified.endLineNumberExclusive)),p=Math.max(d.original.endLineNumberExclusive-n.original.endLineNumberExclusive,m.modified.endLineNumberExclusive-n.modified.endLineNumberExclusive);let g,y;for(g=0;g<f;g++){const e=n.original.startLineNumber-g-1,t=n.modified.startLineNumber-g-1;if(e>r.length||t>i.length)break;if(u.contains(t)||c.contains(e))break;if(!me(r[e-1],i[t-1],s))break}for(g>0&&(c.addRange(new _.M(n.original.startLineNumber-g,n.original.startLineNumber)),u.addRange(new _.M(n.modified.startLineNumber-g,n.modified.startLineNumber))),y=0;y<p;y++){const e=n.original.endLineNumberExclusive+y,t=n.modified.endLineNumberExclusive+y;if(e>r.length||t>i.length)break;if(u.contains(t)||c.contains(e))break;if(!me(r[e-1],i[t-1],s))break}y>0&&(c.addRange(new _.M(n.original.endLineNumberExclusive,n.original.endLineNumberExclusive+y)),u.addRange(new _.M(n.modified.endLineNumberExclusive,n.modified.endLineNumberExclusive+y))),(g>0||y>0)&&(o[t]=new F(new _.M(n.original.startLineNumber-g,n.original.endLineNumberExclusive+y),new _.M(n.modified.startLineNumber-g,n.modified.endLineNumberExclusive+y)))}return o}(e.filter((e=>!a.has(e))),r,i,t,n,s);return(0,z.E4)(o,l),o=function(e){if(0===e.length)return e;e.sort((0,z.VE)((e=>e.original.startLineNumber),z.U9));const t=[e[0]];for(let n=1;n<e.length;n++){const r=t[t.length-1],i=e[n],s=i.original.startLineNumber-r.original.endLineNumberExclusive,o=i.modified.startLineNumber-r.modified.endLineNumberExclusive;s>=0&&o>=0&&s+o<=2?t[t.length-1]=r.join(i):t.push(i)}return t}(o),o=o.filter((e=>{const n=e.original.toOffsetRange().slice(t).map((e=>e.trim()));return n.join("\n").length>=15&&function(e){let t=0;for(const n of e)n.length>=2&&t++;return t}(n)>=2})),o=function(e,t){const n=new ae.vJ(e);return t.filter((t=>(n.findLastMonotonous((e=>e.original.startLineNumber<t.original.endLineNumberExclusive))||new F(new _.M(1,1),new _.M(1,1)))!==(0,ae.lx)(e,(e=>e.modified.startLineNumber<t.modified.endLineNumberExclusive))))}(e,o),o}(e,t,n,r,i,s).map((e=>{const r=we(this.refineDiff(t,n,new G(e.original.toOffsetRange(),e.modified.toOffsetRange()),s,o).mappings,t,n,!0);return new S(e,r)}))}refineDiff(e,t,n,r,i){var s;const o=(s=n,new F(new _.M(s.seq1Range.start+1,s.seq1Range.endExclusive+1),new _.M(s.seq2Range.start+1,s.seq2Range.endExclusive+1))).toRangeMapping2(e,t),a=new ue(e,o.originalRange,i),l=new ue(t,o.modifiedRange,i),u=a.length+l.length<500?this.dynamicProgrammingDiffing.compute(a,l,r):this.myersDiffingAlgorithm.compute(a,l,r);let c=u.diffs;c=pe(a,l,c),c=function(e,t,n){const r=G.invert(n,e.length),i=[];let s=new Q(0,0);function o(n,o){if(n.offset1<s.offset1||n.offset2<s.offset2)return;const a=e.findWordContaining(n.offset1),l=t.findWordContaining(n.offset2);if(!a||!l)return;let u=new G(a,l);const c=u.intersect(o);let h=c.seq1Range.length,f=c.seq2Range.length;for(;r.length>0;){const n=r[0];if(!n.seq1Range.intersects(u.seq1Range)&&!n.seq2Range.intersects(u.seq2Range))break;const i=e.findWordContaining(n.seq1Range.start),s=t.findWordContaining(n.seq2Range.start),o=new G(i,s),a=o.intersect(n);if(h+=a.seq1Range.length,f+=a.seq2Range.length,u=u.join(o),!(u.seq1Range.endExclusive>=n.seq1Range.endExclusive))break;r.shift()}h+f<2*(u.seq1Range.length+u.seq2Range.length)/3&&i.push(u),s=u.getEndExclusives()}for(;r.length>0;){const e=r.shift();e.seq1Range.isEmpty||(o(e.getStarts(),e),o(e.getEndExclusives().delta(-1),e))}return function(e,t){const n=[];for(;e.length>0||t.length>0;){const r=e[0],i=t[0];let s;s=r&&(!i||r.seq1Range.start<i.seq1Range.start)?e.shift():t.shift(),n.length>0&&n[n.length-1].seq1Range.endExclusive>=s.seq1Range.start?n[n.length-1]=n[n.length-1].join(s):n.push(s)}return n}(n,i)}(a,l,c),c=function(e,t,n){const r=[];for(const e of n){const t=r[r.length-1];t&&(e.seq1Range.start-t.seq1Range.endExclusive<=2||e.seq2Range.start-t.seq2Range.endExclusive<=2)?r[r.length-1]=new G(t.seq1Range.join(e.seq1Range),t.seq2Range.join(e.seq2Range)):r.push(e)}return r}(0,0,c),c=function(e,t,n){let r=n;if(0===r.length)return r;let i,s=0;do{i=!1;const a=[r[0]];for(let l=1;l<r.length;l++){const u=r[l],c=a[a.length-1];function h(n,r){const i=new L.L(c.seq1Range.endExclusive,u.seq1Range.start);if(e.countLinesIn(i)>5||i.length>500)return!1;const s=e.getText(i).trim();if(s.length>20||s.split(/\r\n|\r|\n/).length>1)return!1;const o=e.countLinesIn(n.seq1Range),a=n.seq1Range.length,l=t.countLinesIn(n.seq2Range),h=n.seq2Range.length,f=e.countLinesIn(r.seq1Range),d=r.seq1Range.length,m=t.countLinesIn(r.seq2Range),p=r.seq2Range.length;function g(e){return Math.min(e,130)}return Math.pow(Math.pow(g(40*o+a),1.5)+Math.pow(g(40*l+h),1.5),1.5)+Math.pow(Math.pow(g(40*f+d),1.5)+Math.pow(g(40*m+p),1.5),1.5)>74184.96480721243}h(c,u)?(i=!0,a[a.length-1]=a[a.length-1].join(u)):a.push(u)}r=a}while(s++<10&&i);const o=[];return(0,z.kj)(r,((t,n,r)=>{let i=n;function s(e){return e.length>0&&e.trim().length<=3&&n.seq1Range.length+n.seq2Range.length>100}const a=e.extendToFullLines(n.seq1Range),l=e.getText(new L.L(a.start,n.seq1Range.start));s(l)&&(i=i.deltaStart(-l.length));const u=e.getText(new L.L(n.seq1Range.endExclusive,a.endExclusive));s(u)&&(i=i.deltaEnd(u.length));const c=G.fromOffsetPairs(t?t.getEndExclusives():Q.zero,r?r.getStarts():Q.max),h=i.intersect(c);o.length>0&&h.getStarts().equals(o[o.length-1].getEndExclusives())?o[o.length-1]=o[o.length-1].join(h):o.push(h)})),o}(a,l,c);return{mappings:c.map((e=>new I(a.translateRange(e.seq1Range),l.translateRange(e.seq2Range)))),hitTimeout:u.hitTimeout}}}function we(e,t,n,r=!1){const i=[];for(const r of(0,z.n)(e.map((e=>function(e,t,n){let r=0,i=0;1===e.modifiedRange.endColumn&&1===e.originalRange.endColumn&&e.originalRange.startLineNumber+r<=e.originalRange.endLineNumber&&e.modifiedRange.startLineNumber+r<=e.modifiedRange.endLineNumber&&(i=-1),e.modifiedRange.startColumn-1>=n[e.modifiedRange.startLineNumber-1].length&&e.originalRange.startColumn-1>=t[e.originalRange.startLineNumber-1].length&&e.originalRange.startLineNumber<=e.originalRange.endLineNumber+i&&e.modifiedRange.startLineNumber<=e.modifiedRange.endLineNumber+i&&(r=1);const s=new _.M(e.originalRange.startLineNumber+r,e.originalRange.endLineNumber+1+i),o=new _.M(e.modifiedRange.startLineNumber+r,e.modifiedRange.endLineNumber+1+i);return new T(s,o,[e])}(e,t,n))),((e,t)=>e.original.overlapOrTouch(t.original)||e.modified.overlapOrTouch(t.modified)))){const e=r[0],t=r[r.length-1];i.push(new T(e.original.join(t.original),e.modified.join(t.modified),r.map((e=>e.innerChanges[0]))))}return(0,N.Ft)((()=>{if(!r&&i.length>0){if(i[0].modified.startLineNumber!==i[0].original.startLineNumber)return!1;if(n.length-i[i.length-1].modified.endLineNumberExclusive!=t.length-i[i.length-1].original.endLineNumberExclusive)return!1}return(0,N.Xo)(i,((e,t)=>t.original.startLineNumber-e.original.endLineNumberExclusive==t.modified.startLineNumber-e.modified.endLineNumberExclusive&&e.original.endLineNumberExclusive<t.original.startLineNumber&&e.modified.endLineNumberExclusive<t.modified.startLineNumber))})),i}var Ce=n(2349),Ee=n(6339),Se=n(6378);function Ae(e){const t=[];for(const n of e){const e=Number(n);(e||0===e&&""!==n.replace(/\s/g,""))&&t.push(e)}return t}function _e(e,t,n,r){return{red:e/255,blue:n/255,green:t/255,alpha:r}}function ke(e,t){const n=t.index,r=t[0].length;if(!n)return;const i=e.positionAt(n);return{startLineNumber:i.lineNumber,startColumn:i.column,endLineNumber:i.lineNumber,endColumn:i.column+r}}function Ne(e,t){if(!e)return;const n=Se.Q1.Format.CSS.parseHex(t);return n?{range:e,color:_e(n.rgba.r,n.rgba.g,n.rgba.b,n.rgba.a)}:void 0}function Le(e,t,n){if(!e||1!==t.length)return;const r=Ae(t[0].values());return{range:e,color:_e(r[0],r[1],r[2],n?r[3]:1)}}function xe(e,t,n){if(!e||1!==t.length)return;const r=Ae(t[0].values()),i=new Se.Q1(new Se.hB(r[0],r[1]/100,r[2]/100,n?r[3]:1));return{range:e,color:_e(i.rgba.r,i.rgba.g,i.rgba.b,i.rgba.a)}}function Fe(e,t){return"string"==typeof e?[...e.matchAll(t)]:e.findMatches(t)}var Oe=n(4628),Me=n(9212);class Te{constructor(){this._workerTextModelSyncServer=new Me.WorkerTextModelSyncServer}dispose(){}_getModel(e){return this._workerTextModelSyncServer.getModel(e)}_getModels(){return this._workerTextModelSyncServer.getModels()}$acceptNewModel(e){this._workerTextModelSyncServer.$acceptNewModel(e)}$acceptModelChanged(e,t){this._workerTextModelSyncServer.$acceptModelChanged(e,t)}$acceptRemovedModel(e){this._workerTextModelSyncServer.$acceptRemovedModel(e)}async $computeUnicodeHighlights(e,t,n){const r=this._getModel(e);return r?C.UnicodeTextModelHighlighter.computeUnicodeHighlights(r,t,n):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async $findSectionHeaders(e,t){const n=this._getModel(e);return n?(0,Oe.findSectionHeaders)(n,t):[]}async $computeDiff(e,t,n,r){const i=this._getModel(e),s=this._getModel(t);return i&&s?Ie.computeDiff(i,s,n,r):null}static computeDiff(e,t,n,r){const i="advanced"===r?new De:new P,s=e.getLinesContent(),o=t.getLinesContent(),a=i.computeDiff(s,o,n);function l(e){return e.map((e=>[e.original.startLineNumber,e.original.endLineNumberExclusive,e.modified.startLineNumber,e.modified.endLineNumberExclusive,e.innerChanges?.map((e=>[e.originalRange.startLineNumber,e.originalRange.startColumn,e.originalRange.endLineNumber,e.originalRange.endColumn,e.modifiedRange.startLineNumber,e.modifiedRange.startColumn,e.modifiedRange.endLineNumber,e.modifiedRange.endColumn]))]))}return{identical:!(a.changes.length>0)&&this._modelsAreIdentical(e,t),quitEarly:a.hitTimeout,changes:l(a.changes),moves:a.moves.map((e=>[e.lineRangeMapping.original.startLineNumber,e.lineRangeMapping.original.endLineNumberExclusive,e.lineRangeMapping.modified.startLineNumber,e.lineRangeMapping.modified.endLineNumberExclusive,l(e.changes)]))}}static _modelsAreIdentical(e,t){const n=e.getLineCount();if(n!==t.getLineCount())return!1;for(let r=1;r<=n;r++)if(e.getLineContent(r)!==t.getLineContent(r))return!1;return!0}static{this._diffLimit=1e5}async $computeMoreMinimalEdits(e,t,n){const r=this._getModel(e);if(!r)return t;const i=[];let s;t=t.slice(0).sort(((e,t)=>e.range&&t.range?h.Q.compareRangesUsingStarts(e.range,t.range):(e.range?0:1)-(t.range?0:1)));let a=0;for(let e=1;e<t.length;e++)h.Q.getEndPosition(t[a].range).equals(h.Q.getStartPosition(t[e].range))?(t[a].range=h.Q.fromPositions(h.Q.getStartPosition(t[a].range),h.Q.getEndPosition(t[e].range)),t[a].text+=t[e].text):(a++,t[a]=t[e]);t.length=a+1;for(let{range:e,text:a,eol:l}of t){if("number"==typeof l&&(s=l),h.Q.isEmpty(e)&&!a)continue;const t=r.getValueInRange(e);if(a=a.replace(/\r\n|\n|\r/g,r.eol),t===a)continue;if(Math.max(a.length,t.length)>Ie._diffLimit){i.push({range:e,text:a});continue}const u=o(t,a,n),c=r.offsetAt(h.Q.lift(e).getStartPosition());for(const e of u){const t=r.positionAt(c+e.originalStart),n=r.positionAt(c+e.originalStart+e.originalLength),s={text:a.substr(e.modifiedStart,e.modifiedLength),range:{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:n.lineNumber,endColumn:n.column}};r.getValueInRange(s.range)!==s.text&&i.push(s)}}return"number"==typeof s&&i.push({eol:s,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),i}async $computeLinks(e){const t=this._getModel(e);return t?function(e){return e&&"function"==typeof e.getLineCount&&"function"==typeof e.getLineContent?y.computeLinks(e):[]}(t):null}async $computeDefaultDocumentColors(e){const t=this._getModel(e);return t?function(e){return e&&"function"==typeof e.getValue&&"function"==typeof e.positionAt?function(e){const t=[],n=Fe(e,/\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/gm);if(n.length>0)for(const r of n){const n=r.filter((e=>void 0!==e)),i=n[1],s=n[2];if(!s)continue;let o;if("rgb"===i){const t=/^\(\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;o=Le(ke(e,r),Fe(s,t),!1)}else if("rgba"===i){const t=/^\(\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;o=Le(ke(e,r),Fe(s,t),!0)}else if("hsl"===i){const t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;o=xe(ke(e,r),Fe(s,t),!1)}else if("hsla"===i){const t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;o=xe(ke(e,r),Fe(s,t),!0)}else"#"===i&&(o=Ne(ke(e,r),i+s));o&&t.push(o)}return t}(e):[]}(t):null}static{this._suggestionsLimit=1e4}async $textualSuggest(e,t,n,r){const i=new w.W,s=new RegExp(n,r),o=new Set;e:for(const n of e){const e=this._getModel(n);if(e)for(const n of e.words(s))if(n!==t&&isNaN(Number(n))&&(o.add(n),o.size>Ie._suggestionsLimit))break e}return{words:Array.from(o),duration:i.elapsed()}}async $computeWordRanges(e,t,n,r){const i=this._getModel(e);if(!i)return Object.create(null);const s=new RegExp(n,r),o=Object.create(null);for(let e=t.startLineNumber;e<t.endLineNumber;e++){const t=i.getLineWords(e,s);for(const n of t){if(!isNaN(Number(n.word)))continue;let t=o[n.word];t||(t=[],o[n.word]=t),t.push({startLineNumber:e,startColumn:n.startColumn,endLineNumber:e,endColumn:n.endColumn})}}return o}async $navigateValueSet(e,t,n,r,i){const s=this._getModel(e);if(!s)return null;const o=new RegExp(r,i);t.startColumn===t.endColumn&&(t={startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn+1});const a=s.getValueInRange(t),l=s.getWordAtPosition({lineNumber:t.startLineNumber,column:t.startColumn},o);if(!l)return null;const u=s.getValueInRange(l);return b.INSTANCE.navigateValueSet(t,a,l,u,n)}}class Ie extends Te{constructor(e,t){super(),this._host=e,this._foreignModuleFactory=t,this._foreignModule=null}async $ping(){return"pong"}$loadForeignModule(e,t,r){const i={host:(0,Ce.kT)(r,((e,t)=>this._host.$fhr(e,t))),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(i,t),Promise.resolve((0,Ce.V0)(this._foreignModule))):new Promise(((r,s)=>{const o=e=>{this._foreignModule=e.create(i,t),r((0,Ce.V0)(this._foreignModule))};{const t=Ee.zl.asBrowserUri(`${e}.js`).toString(!0);n(6399)(`${t}`).then(o).catch(s)}}))}$fmr(e,t){if(!this._foreignModule||"function"!=typeof this._foreignModule[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(e){return Promise.reject(e)}}}function Re(e){return new Ie(D.EditorWorkerHost.getChannel(e),null)}"function"==typeof importScripts&&(globalThis.monaco=(0,v.createMonacoBaseAPI)())},4628:(e,t,n)=>{"use strict";n.r(t),n.d(t,{findSectionHeaders:()=>s});const r=new RegExp("\\bMARK:\\s*(.*)$","d"),i=/^-+|-+$/g;function s(e,t){let n=[];if(t.findRegionSectionHeaders&&t.foldingRules?.markers){const r=function(e,t){const n=[],r=e.getLineCount();for(let i=1;i<=r;i++){const r=e.getLineContent(i),s=r.match(t.foldingRules.markers.start);if(s){const e={startLineNumber:i,startColumn:s[0].length+1,endLineNumber:i,endColumn:r.length+1};if(e.endColumn>e.startColumn){const t={range:e,...a(r.substring(s[0].length)),shouldBeInComments:!1};(t.text||t.hasSeparatorLine)&&n.push(t)}}}return n}(e,t);n=n.concat(r)}if(t.findMarkSectionHeaders){const t=function(e){const t=[],n=e.getLineCount();for(let r=1;r<=n;r++)o(e.getLineContent(r),r,t);return t}(e);n=n.concat(t)}return n}function o(e,t,n){r.lastIndex=0;const i=r.exec(e);if(i){const e={startLineNumber:t,startColumn:i.indices[1][0]+1,endLineNumber:t,endColumn:i.indices[1][1]+1};if(e.endColumn>e.startColumn){const t={range:e,...a(i[1]),shouldBeInComments:!0};(t.text||t.hasSeparatorLine)&&n.push(t)}}}function a(e){const t=(e=e.trim()).startsWith("-");return{text:e=e.replace(i,""),hasSeparatorLine:t}}},4965:(e,t,n)=>{"use strict";n.r(t),n.d(t,{EditorWorkerHost:()=>r});class r{static{this.CHANNEL_NAME="editorWorkerHost"}static getChannel(e){return e.getChannel(r.CHANNEL_NAME)}static setChannel(e,t){e.setChannel(r.CHANNEL_NAME,t)}}},5109:(e,t,n)=>{"use strict";n.d(t,{e2:()=>o,sN:()=>i,v7:()=>c});var r=n(5259);function i(e,t){switch(typeof e){case"object":return null===e?s(349,t):Array.isArray(e)?(n=e,r=s(104579,r=t),n.reduce(((e,t)=>i(t,e)),r)):function(e,t){return t=s(181387,t),Object.keys(e).sort().reduce(((t,n)=>(t=o(n,t),i(e[n],t))),t)}(e,t);case"string":return o(e,t);case"boolean":return function(e,t){return s(e?433:863,t)}(e,t);case"number":return s(e,t);case"undefined":return s(937,t);default:return s(617,t)}var n,r}function s(e,t){return(t<<5)-t+e|0}function o(e,t){t=s(149417,t);for(let n=0,r=e.length;n<r;n++)t=s(e.charCodeAt(n),t);return t}function a(e,t,n=32){const r=n-t;return(e<<t|(~((1<<r)-1)&e)>>>r)>>>0}function l(e,t=0,n=e.byteLength,r=0){for(let i=0;i<n;i++)e[t+i]=r}function u(e,t=32){return e instanceof ArrayBuffer?Array.from(new Uint8Array(e)).map((e=>e.toString(16).padStart(2,"0"))).join(""):function(e,t,n="0"){for(;e.length<t;)e=n+e;return e}((e>>>0).toString(16),t/4)}class c{static{this._bigBlock32=new DataView(new ArrayBuffer(320))}constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const t=e.length;if(0===t)return;const n=this._buff;let i,s,o=this._buffLen,a=this._leftoverHighSurrogate;for(0!==a?(i=a,s=-1,a=0):(i=e.charCodeAt(0),s=0);;){let l=i;if(r.pc(i)){if(!(s+1<t)){a=i;break}{const t=e.charCodeAt(s+1);r.LJ(t)?(s++,l=r.z_(i,t)):l=65533}}else r.LJ(i)&&(l=65533);if(o=this._push(n,o,l),s++,!(s<t))break;i=e.charCodeAt(s)}this._buffLen=o,this._leftoverHighSurrogate=a}_push(e,t,n){return n<128?e[t++]=n:n<2048?(e[t++]=192|(1984&n)>>>6,e[t++]=128|(63&n)>>>0):n<65536?(e[t++]=224|(61440&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>0):(e[t++]=240|(1835008&n)>>>18,e[t++]=128|(258048&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>0),t>=64&&(this._step(),t-=64,this._totalLen+=64,e[0]=e[64],e[1]=e[65],e[2]=e[66]),t}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),u(this._h0)+u(this._h1)+u(this._h2)+u(this._h3)+u(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,l(this._buff,this._buffLen),this._buffLen>56&&(this._step(),l(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=c._bigBlock32,t=this._buffDV;for(let n=0;n<64;n+=4)e.setUint32(n,t.getUint32(n,!1),!1);for(let t=64;t<320;t+=4)e.setUint32(t,a(e.getUint32(t-12,!1)^e.getUint32(t-32,!1)^e.getUint32(t-56,!1)^e.getUint32(t-64,!1),1),!1);let n,r,i,s=this._h0,o=this._h1,l=this._h2,u=this._h3,h=this._h4;for(let t=0;t<80;t++)t<20?(n=o&l|~o&u,r=1518500249):t<40?(n=o^l^u,r=1859775393):t<60?(n=o&l|o&u|l&u,r=2400959708):(n=o^l^u,r=3395469782),i=a(s,5)+n+h+r+e.getUint32(4*t,!1)&4294967295,h=u,u=l,l=a(o,30),o=s,s=i;this._h0=this._h0+s&4294967295,this._h1=this._h1+o&4294967295,this._h2=this._h2+l&4294967295,this._h3=this._h3+u&4294967295,this._h4=this._h4+h&4294967295}}},5146:(e,t,n)=>{"use strict";n.d(t,{D7:()=>f,EM:()=>c,Qg:()=>l,cU:()=>s,dz:()=>i,iH:()=>u});const r=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout((()=>{if(e.stack){if(h.isErrorNoTelemetry(e))throw new h(e.message+"\n\n"+e.stack);throw new Error(e.message+"\n\n"+e.stack)}throw e}),0)}}emit(e){this.listeners.forEach((t=>{t(e)}))}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function i(e){var t;(t=e)instanceof a||t instanceof Error&&t.name===o&&t.message===o||r.onUnexpectedError(e)}function s(e){if(e instanceof Error){const{name:t,message:n}=e;return{$isError:!0,name:t,message:n,stack:e.stacktrace||e.stack,noTelemetry:h.isErrorNoTelemetry(e)}}return e}const o="Canceled";class a extends Error{constructor(){super(o),this.name=this.message}}function l(e){return e?new Error(`Illegal argument: ${e}`):new Error("Illegal argument")}function u(e){return e?new Error(`Illegal state: ${e}`):new Error("Illegal state")}class c extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}class h extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof h)return e;const t=new h;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return"CodeExpectedError"===e.name}}class f extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,f.prototype)}}},5149:(e,t,n)=>{"use strict";n.r(t),n.d(t,{KeyMod:()=>me,createMonacoBaseAPI:()=>pe});var r=n(2926),i=n(1069);class s{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const o=new s,a=new s,l=new s,u=new Array(230),c={},h=[],f=Object.create(null),d=Object.create(null),m=[],p=[];for(let e=0;e<=193;e++)m[e]=-1;for(let e=0;e<=132;e++)p[e]=-1;var g;!function(){const e="",t=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[1,1,"Hyper",0,e,0,e,e,e],[1,2,"Super",0,e,0,e,e,e],[1,3,"Fn",0,e,0,e,e,e],[1,4,"FnLock",0,e,0,e,e,e],[1,5,"Suspend",0,e,0,e,e,e],[1,6,"Resume",0,e,0,e,e,e],[1,7,"Turbo",0,e,0,e,e,e],[1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[1,9,"WakeUp",0,e,0,e,e,e],[0,10,"KeyA",31,"A",65,"VK_A",e,e],[0,11,"KeyB",32,"B",66,"VK_B",e,e],[0,12,"KeyC",33,"C",67,"VK_C",e,e],[0,13,"KeyD",34,"D",68,"VK_D",e,e],[0,14,"KeyE",35,"E",69,"VK_E",e,e],[0,15,"KeyF",36,"F",70,"VK_F",e,e],[0,16,"KeyG",37,"G",71,"VK_G",e,e],[0,17,"KeyH",38,"H",72,"VK_H",e,e],[0,18,"KeyI",39,"I",73,"VK_I",e,e],[0,19,"KeyJ",40,"J",74,"VK_J",e,e],[0,20,"KeyK",41,"K",75,"VK_K",e,e],[0,21,"KeyL",42,"L",76,"VK_L",e,e],[0,22,"KeyM",43,"M",77,"VK_M",e,e],[0,23,"KeyN",44,"N",78,"VK_N",e,e],[0,24,"KeyO",45,"O",79,"VK_O",e,e],[0,25,"KeyP",46,"P",80,"VK_P",e,e],[0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[0,27,"KeyR",48,"R",82,"VK_R",e,e],[0,28,"KeyS",49,"S",83,"VK_S",e,e],[0,29,"KeyT",50,"T",84,"VK_T",e,e],[0,30,"KeyU",51,"U",85,"VK_U",e,e],[0,31,"KeyV",52,"V",86,"VK_V",e,e],[0,32,"KeyW",53,"W",87,"VK_W",e,e],[0,33,"KeyX",54,"X",88,"VK_X",e,e],[0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[0,36,"Digit1",22,"1",49,"VK_1",e,e],[0,37,"Digit2",23,"2",50,"VK_2",e,e],[0,38,"Digit3",24,"3",51,"VK_3",e,e],[0,39,"Digit4",25,"4",52,"VK_4",e,e],[0,40,"Digit5",26,"5",53,"VK_5",e,e],[0,41,"Digit6",27,"6",54,"VK_6",e,e],[0,42,"Digit7",28,"7",55,"VK_7",e,e],[0,43,"Digit8",29,"8",56,"VK_8",e,e],[0,44,"Digit9",30,"9",57,"VK_9",e,e],[0,45,"Digit0",21,"0",48,"VK_0",e,e],[1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[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,e,0,e,e,e],[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",e,e],[1,64,"F1",59,"F1",112,"VK_F1",e,e],[1,65,"F2",60,"F2",113,"VK_F2",e,e],[1,66,"F3",61,"F3",114,"VK_F3",e,e],[1,67,"F4",62,"F4",115,"VK_F4",e,e],[1,68,"F5",63,"F5",116,"VK_F5",e,e],[1,69,"F6",64,"F6",117,"VK_F6",e,e],[1,70,"F7",65,"F7",118,"VK_F7",e,e],[1,71,"F8",66,"F8",119,"VK_F8",e,e],[1,72,"F9",67,"F9",120,"VK_F9",e,e],[1,73,"F10",68,"F10",121,"VK_F10",e,e],[1,74,"F11",69,"F11",122,"VK_F11",e,e],[1,75,"F12",70,"F12",123,"VK_F12",e,e],[1,76,"PrintScreen",0,e,0,e,e,e],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",e,e],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[1,80,"Home",14,"Home",36,"VK_HOME",e,e],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[1,83,"End",13,"End",35,"VK_END",e,e],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",e,e],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",e,e],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",e,e],[1,94,"NumpadEnter",3,e,0,e,e,e],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",e,e],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",e,e],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",e,e],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",e,e],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",e,e],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",e,e],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",e,e],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",e,e],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",e,e],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",e,e],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",e,e],[1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[1,108,"Power",0,e,0,e,e,e],[1,109,"NumpadEqual",0,e,0,e,e,e],[1,110,"F13",71,"F13",124,"VK_F13",e,e],[1,111,"F14",72,"F14",125,"VK_F14",e,e],[1,112,"F15",73,"F15",126,"VK_F15",e,e],[1,113,"F16",74,"F16",127,"VK_F16",e,e],[1,114,"F17",75,"F17",128,"VK_F17",e,e],[1,115,"F18",76,"F18",129,"VK_F18",e,e],[1,116,"F19",77,"F19",130,"VK_F19",e,e],[1,117,"F20",78,"F20",131,"VK_F20",e,e],[1,118,"F21",79,"F21",132,"VK_F21",e,e],[1,119,"F22",80,"F22",133,"VK_F22",e,e],[1,120,"F23",81,"F23",134,"VK_F23",e,e],[1,121,"F24",82,"F24",135,"VK_F24",e,e],[1,122,"Open",0,e,0,e,e,e],[1,123,"Help",0,e,0,e,e,e],[1,124,"Select",0,e,0,e,e,e],[1,125,"Again",0,e,0,e,e,e],[1,126,"Undo",0,e,0,e,e,e],[1,127,"Cut",0,e,0,e,e,e],[1,128,"Copy",0,e,0,e,e,e],[1,129,"Paste",0,e,0,e,e,e],[1,130,"Find",0,e,0,e,e,e],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",e,e],[1,136,"KanaMode",0,e,0,e,e,e],[0,137,"IntlYen",0,e,0,e,e,e],[1,138,"Convert",0,e,0,e,e,e],[1,139,"NonConvert",0,e,0,e,e,e],[1,140,"Lang1",0,e,0,e,e,e],[1,141,"Lang2",0,e,0,e,e,e],[1,142,"Lang3",0,e,0,e,e,e],[1,143,"Lang4",0,e,0,e,e,e],[1,144,"Lang5",0,e,0,e,e,e],[1,145,"Abort",0,e,0,e,e,e],[1,146,"Props",0,e,0,e,e,e],[1,147,"NumpadParenLeft",0,e,0,e,e,e],[1,148,"NumpadParenRight",0,e,0,e,e,e],[1,149,"NumpadBackspace",0,e,0,e,e,e],[1,150,"NumpadMemoryStore",0,e,0,e,e,e],[1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[1,152,"NumpadMemoryClear",0,e,0,e,e,e],[1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",e,e],[1,156,"NumpadClearEntry",0,e,0,e,e,e],[1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[1,0,e,6,"Alt",18,"VK_MENU",e,e],[1,0,e,57,"Meta",91,"VK_COMMAND",e,e],[1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[1,165,"BrightnessUp",0,e,0,e,e,e],[1,166,"BrightnessDown",0,e,0,e,e,e],[1,167,"MediaPlay",0,e,0,e,e,e],[1,168,"MediaRecord",0,e,0,e,e,e],[1,169,"MediaFastForward",0,e,0,e,e,e],[1,170,"MediaRewind",0,e,0,e,e,e],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",e,e],[1,174,"Eject",0,e,0,e,e,e],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[1,180,"SelectTask",0,e,0,e,e,e],[1,181,"LaunchScreenSaver",0,e,0,e,e,e],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[1,189,"ZoomToggle",0,e,0,e,e,e],[1,190,"MailReply",0,e,0,e,e,e],[1,191,"MailForward",0,e,0,e,e,e],[1,192,"MailSend",0,e,0,e,e,e],[1,0,e,114,"KeyInComposition",229,e,e,e],[1,0,e,116,"ABNT_C2",194,"VK_ABNT_C2",e,e],[1,0,e,96,"OEM_8",223,"VK_OEM_8",e,e],[1,0,e,0,e,0,"VK_KANA",e,e],[1,0,e,0,e,0,"VK_HANGUL",e,e],[1,0,e,0,e,0,"VK_JUNJA",e,e],[1,0,e,0,e,0,"VK_FINAL",e,e],[1,0,e,0,e,0,"VK_HANJA",e,e],[1,0,e,0,e,0,"VK_KANJI",e,e],[1,0,e,0,e,0,"VK_CONVERT",e,e],[1,0,e,0,e,0,"VK_NONCONVERT",e,e],[1,0,e,0,e,0,"VK_ACCEPT",e,e],[1,0,e,0,e,0,"VK_MODECHANGE",e,e],[1,0,e,0,e,0,"VK_SELECT",e,e],[1,0,e,0,e,0,"VK_PRINT",e,e],[1,0,e,0,e,0,"VK_EXECUTE",e,e],[1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[1,0,e,0,e,0,"VK_HELP",e,e],[1,0,e,0,e,0,"VK_APPS",e,e],[1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[1,0,e,0,e,0,"VK_PACKET",e,e],[1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[1,0,e,0,e,0,"VK_ATTN",e,e],[1,0,e,0,e,0,"VK_CRSEL",e,e],[1,0,e,0,e,0,"VK_EXSEL",e,e],[1,0,e,0,e,0,"VK_EREOF",e,e],[1,0,e,0,e,0,"VK_PLAY",e,e],[1,0,e,0,e,0,"VK_ZOOM",e,e],[1,0,e,0,e,0,"VK_NONAME",e,e],[1,0,e,0,e,0,"VK_PA1",e,e],[1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]],n=[],r=[];for(const e of t){const[t,i,s,g,y,b,v,D,w]=e;if(r[i]||(r[i]=!0,h[i]=s,f[s]=i,d[s.toLowerCase()]=i,t&&(m[i]=g,0!==g&&3!==g&&5!==g&&4!==g&&6!==g&&57!==g&&(p[g]=i))),!n[g]){if(n[g]=!0,!y)throw new Error(`String representation missing for key code ${g} around scan code ${s}`);o.define(g,y),a.define(g,D||y),l.define(g,w||D||y)}b&&(u[b]=g),v&&(c[v]=g)}p[3]=46}(),function(e){e.toString=function(e){return o.keyCodeToStr(e)},e.fromString=function(e){return o.strToKeyCode(e)},e.toUserSettingsUS=function(e){return a.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return l.keyCodeToStr(e)},e.fromUserSettings=function(e){return a.strToKeyCode(e)||l.strToKeyCode(e)},e.toElectronAccelerator=function(e){if(e>=98&&e<=113)return null;switch(e){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return o.keyCodeToStr(e)}}(g||(g={}));var y,b,v,D,w,C,E,S,A,_,k,N,L,x,F,O,M,T,I,R,P,B,$,j,V,W,q,K,U,H,z,Y,G,Q,J,X,Z,ee,te,ne,re,ie,se,oe,ae,le,ue=n(8095),ce=n(3434),he=n(520),fe=n(9399),de=n(3641);!function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"}(y||(y={})),function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"}(b||(b={})),function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"}(v||(v={})),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.Snippet=27]="Snippet"}(D||(D={})),function(e){e[e.Deprecated=1]="Deprecated"}(w||(w={})),function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"}(C||(C={})),function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"}(E||(E={})),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"}(S||(S={})),function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(A||(A={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(_||(_={})),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"}(k||(k={})),function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.ariaRequired=5]="ariaRequired",e[e.autoClosingBrackets=6]="autoClosingBrackets",e[e.autoClosingComments=7]="autoClosingComments",e[e.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",e[e.autoClosingDelete=9]="autoClosingDelete",e[e.autoClosingOvertype=10]="autoClosingOvertype",e[e.autoClosingQuotes=11]="autoClosingQuotes",e[e.autoIndent=12]="autoIndent",e[e.automaticLayout=13]="automaticLayout",e[e.autoSurround=14]="autoSurround",e[e.bracketPairColorization=15]="bracketPairColorization",e[e.guides=16]="guides",e[e.codeLens=17]="codeLens",e[e.codeLensFontFamily=18]="codeLensFontFamily",e[e.codeLensFontSize=19]="codeLensFontSize",e[e.colorDecorators=20]="colorDecorators",e[e.colorDecoratorsLimit=21]="colorDecoratorsLimit",e[e.columnSelection=22]="columnSelection",e[e.comments=23]="comments",e[e.contextmenu=24]="contextmenu",e[e.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",e[e.cursorBlinking=26]="cursorBlinking",e[e.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",e[e.cursorStyle=28]="cursorStyle",e[e.cursorSurroundingLines=29]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",e[e.cursorWidth=31]="cursorWidth",e[e.disableLayerHinting=32]="disableLayerHinting",e[e.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",e[e.domReadOnly=34]="domReadOnly",e[e.dragAndDrop=35]="dragAndDrop",e[e.dropIntoEditor=36]="dropIntoEditor",e[e.emptySelectionClipboard=37]="emptySelectionClipboard",e[e.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",e[e.extraEditorClassName=39]="extraEditorClassName",e[e.fastScrollSensitivity=40]="fastScrollSensitivity",e[e.find=41]="find",e[e.fixedOverflowWidgets=42]="fixedOverflowWidgets",e[e.folding=43]="folding",e[e.foldingStrategy=44]="foldingStrategy",e[e.foldingHighlight=45]="foldingHighlight",e[e.foldingImportsByDefault=46]="foldingImportsByDefault",e[e.foldingMaximumRegions=47]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=49]="fontFamily",e[e.fontInfo=50]="fontInfo",e[e.fontLigatures=51]="fontLigatures",e[e.fontSize=52]="fontSize",e[e.fontWeight=53]="fontWeight",e[e.fontVariations=54]="fontVariations",e[e.formatOnPaste=55]="formatOnPaste",e[e.formatOnType=56]="formatOnType",e[e.glyphMargin=57]="glyphMargin",e[e.gotoLocation=58]="gotoLocation",e[e.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",e[e.hover=60]="hover",e[e.inDiffEditor=61]="inDiffEditor",e[e.inlineSuggest=62]="inlineSuggest",e[e.inlineEdit=63]="inlineEdit",e[e.letterSpacing=64]="letterSpacing",e[e.lightbulb=65]="lightbulb",e[e.lineDecorationsWidth=66]="lineDecorationsWidth",e[e.lineHeight=67]="lineHeight",e[e.lineNumbers=68]="lineNumbers",e[e.lineNumbersMinChars=69]="lineNumbersMinChars",e[e.linkedEditing=70]="linkedEditing",e[e.links=71]="links",e[e.matchBrackets=72]="matchBrackets",e[e.minimap=73]="minimap",e[e.mouseStyle=74]="mouseStyle",e[e.mouseWheelScrollSensitivity=75]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=76]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=77]="multiCursorMergeOverlapping",e[e.multiCursorModifier=78]="multiCursorModifier",e[e.multiCursorPaste=79]="multiCursorPaste",e[e.multiCursorLimit=80]="multiCursorLimit",e[e.occurrencesHighlight=81]="occurrencesHighlight",e[e.overviewRulerBorder=82]="overviewRulerBorder",e[e.overviewRulerLanes=83]="overviewRulerLanes",e[e.padding=84]="padding",e[e.pasteAs=85]="pasteAs",e[e.parameterHints=86]="parameterHints",e[e.peekWidgetDefaultFocus=87]="peekWidgetDefaultFocus",e[e.placeholder=88]="placeholder",e[e.definitionLinkOpensInPeek=89]="definitionLinkOpensInPeek",e[e.quickSuggestions=90]="quickSuggestions",e[e.quickSuggestionsDelay=91]="quickSuggestionsDelay",e[e.readOnly=92]="readOnly",e[e.readOnlyMessage=93]="readOnlyMessage",e[e.renameOnType=94]="renameOnType",e[e.renderControlCharacters=95]="renderControlCharacters",e[e.renderFinalNewline=96]="renderFinalNewline",e[e.renderLineHighlight=97]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=98]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=99]="renderValidationDecorations",e[e.renderWhitespace=100]="renderWhitespace",e[e.revealHorizontalRightPadding=101]="revealHorizontalRightPadding",e[e.roundedSelection=102]="roundedSelection",e[e.rulers=103]="rulers",e[e.scrollbar=104]="scrollbar",e[e.scrollBeyondLastColumn=105]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=106]="scrollBeyondLastLine",e[e.scrollPredominantAxis=107]="scrollPredominantAxis",e[e.selectionClipboard=108]="selectionClipboard",e[e.selectionHighlight=109]="selectionHighlight",e[e.selectOnLineNumbers=110]="selectOnLineNumbers",e[e.showFoldingControls=111]="showFoldingControls",e[e.showUnused=112]="showUnused",e[e.snippetSuggestions=113]="snippetSuggestions",e[e.smartSelect=114]="smartSelect",e[e.smoothScrolling=115]="smoothScrolling",e[e.stickyScroll=116]="stickyScroll",e[e.stickyTabStops=117]="stickyTabStops",e[e.stopRenderingLineAfter=118]="stopRenderingLineAfter",e[e.suggest=119]="suggest",e[e.suggestFontSize=120]="suggestFontSize",e[e.suggestLineHeight=121]="suggestLineHeight",e[e.suggestOnTriggerCharacters=122]="suggestOnTriggerCharacters",e[e.suggestSelection=123]="suggestSelection",e[e.tabCompletion=124]="tabCompletion",e[e.tabIndex=125]="tabIndex",e[e.unicodeHighlighting=126]="unicodeHighlighting",e[e.unusualLineTerminators=127]="unusualLineTerminators",e[e.useShadowDOM=128]="useShadowDOM",e[e.useTabStops=129]="useTabStops",e[e.wordBreak=130]="wordBreak",e[e.wordSegmenterLocales=131]="wordSegmenterLocales",e[e.wordSeparators=132]="wordSeparators",e[e.wordWrap=133]="wordWrap",e[e.wordWrapBreakAfterCharacters=134]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=135]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=136]="wordWrapColumn",e[e.wordWrapOverride1=137]="wordWrapOverride1",e[e.wordWrapOverride2=138]="wordWrapOverride2",e[e.wrappingIndent=139]="wrappingIndent",e[e.wrappingStrategy=140]="wrappingStrategy",e[e.showDeprecated=141]="showDeprecated",e[e.inlayHints=142]="inlayHints",e[e.editorClassName=143]="editorClassName",e[e.pixelRatio=144]="pixelRatio",e[e.tabFocusMode=145]="tabFocusMode",e[e.layoutInfo=146]="layoutInfo",e[e.wrappingInfo=147]="wrappingInfo",e[e.defaultColorDecorators=148]="defaultColorDecorators",e[e.colorDecoratorsActivatedOn=149]="colorDecoratorsActivatedOn",e[e.inlineCompletionsAccessibilityVerbose=150]="inlineCompletionsAccessibilityVerbose"}(N||(N={})),function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(L||(L={})),function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"}(x||(x={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}(F||(F={})),function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"}(O||(O={})),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(M||(M={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(T||(T={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(I||(I={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(R||(R={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(P||(P={})),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"}(B||(B={})),function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}($||($={})),function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"}(j||(j={})),function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"}(V||(V={})),function(e){e[e.Normal=1]="Normal",e[e.Underlined=2]="Underlined"}(W||(W={})),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"}(q||(q={})),function(e){e[e.AIGenerated=1]="AIGenerated"}(K||(K={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(U||(U={})),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"}(H||(H={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(z||(z={})),function(e){e[e.Word=0]="Word",e[e.Line=1]="Line",e[e.Suggest=2]="Suggest"}(Y||(Y={})),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"}(G||(G={})),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"}(Q||(Q={})),function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"}(J||(J={})),function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"}(X||(X={})),function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"}(Z||(Z={})),function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"}(ee||(ee={})),function(e){e.Off="off",e.OnCode="onCode",e.On="on"}(te||(te={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(ne||(ne={})),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"}(re||(re={})),function(e){e[e.Deprecated=1]="Deprecated"}(ie||(ie={})),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"}(se||(se={})),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"}(oe||(oe={})),function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"}(ae||(ae={})),function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"}(le||(le={}));class me{static{this.CtrlCmd=2048}static{this.Shift=1024}static{this.Alt=512}static{this.WinCtrl=256}static chord(e,t){return function(e,t){return(e|(65535&t)<<16>>>0)>>>0}(e,t)}}function pe(){return{editor:void 0,languages:void 0,CancellationTokenSource:r.Qi,Emitter:i.vl,KeyCode:B,KeyMod:me,Position:ce.y,Range:he.Q,Selection:fe.L,SelectionDirection:ee,MarkerSeverity:$,MarkerTag:j,Uri:ue.r,Token:de.ou}}},5170:(e,t,n)=>{"use strict";n.r(t),n.d(t,{UnicodeTextModelHighlighter:()=>l});var r=n(520),i=n(6),s=n(5259),o=n(5835),a=n(9025);class l{static computeUnicodeHighlights(e,t,n){const l=n?n.startLineNumber:1,c=n?n.endLineNumber:e.getLineCount(),h=new u(t),f=h.getCandidateCodePoints();let d;var m;d="allNonBasicAscii"===f?new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):new RegExp((m=Array.from(f),`[${s.bm(m.map((e=>String.fromCodePoint(e))).join(""))}]`),"g");const p=new i.W5(null,d),g=[];let y,b=!1,v=0,D=0,w=0;e:for(let t=l,n=c;t<=n;t++){const n=e.getLineContent(t),i=n.length;p.reset(0);do{if(y=p.next(n),y){let e=y.index,l=y.index+y[0].length;if(e>0){const t=n.charCodeAt(e-1);s.pc(t)&&e--}if(l+1<i){const e=n.charCodeAt(l-1);s.pc(e)&&l++}const u=n.substring(e,l);let c=(0,a.Th)(e+1,a.Ld,n,0);c&&c.endColumn<=e+1&&(c=null);const f=h.shouldHighlightNonBasicASCII(u,c?c.word:null);if(0!==f){3===f?v++:2===f?D++:1===f?w++:(0,o.xb)(f);const n=1e3;if(g.length>=n){b=!0;break e}g.push(new r.Q(t,e+1,t,l+1))}}}while(y)}return{ranges:g,hasMore:b,ambiguousCharacterCount:v,invisibleCharacterCount:D,nonBasicAsciiCharacterCount:w}}static computeUnicodeHighlightReason(e,t){const n=new u(t);switch(n.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{const r=e.codePointAt(0),i=n.ambiguousCharacters.getPrimaryConfusable(r),o=s.tl.getLocales().filter((e=>!s.tl.getInstance(new Set([...t.allowedLocales,e])).isAmbiguous(r)));return{kind:0,confusableWith:String.fromCodePoint(i),notAmbiguousInLocales:o}}case 1:return{kind:2}}}}class u{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=s.tl.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const e=new Set;if(this.options.invisibleCharacters)for(const t of s.y_.codePoints)c(String.fromCodePoint(t))||e.add(t);if(this.options.ambiguousCharacters)for(const t of this.ambiguousCharacters.getConfusableCodePoints())e.add(t);for(const t of this.allowedCodePoints)e.delete(t);return e}shouldHighlightNonBasicASCII(e,t){const n=e.codePointAt(0);if(this.allowedCodePoints.has(n))return 0;if(this.options.nonBasicASCII)return 1;let r=!1,i=!1;if(t)for(const e of t){const t=e.codePointAt(0),n=s.aC(e);r=r||n,n||this.ambiguousCharacters.isAmbiguous(t)||s.y_.isInvisibleCharacter(t)||(i=!0)}return!r&&i?0:this.options.invisibleCharacters&&!c(e)&&s.y_.isInvisibleCharacter(n)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(n)?3:0}}function c(e){return" "===e||"\n"===e||"\t"===e}},5259:(e,t,n)=>{"use strict";n.d(t,{$X:()=>O,AV:()=>s,E_:()=>N,HG:()=>f,LJ:()=>C,LU:()=>R,NB:()=>l,OS:()=>u,Q_:()=>v,Ss:()=>T,UD:()=>m,Wv:()=>b,Z5:()=>S,_J:()=>F,aC:()=>x,bm:()=>a,eY:()=>c,jy:()=>o,km:()=>_,lT:()=>d,ne:()=>M,ns:()=>D,pc:()=>w,r_:()=>I,tk:()=>P,tl:()=>j,uz:()=>h,y_:()=>V,z_:()=>E});var r=n(3715),i=n(315);function s(e){return!e||"string"!=typeof e||0===e.trim().length}function o(e){return e.replace(/[<>"'&]/g,(e=>{switch(e){case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";case"'":return"&apos;";case"&":return"&amp;"}return e}))}function a(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function l(e,t){if(!e||!t)return e;const n=t.length;if(0===n||0===e.length)return e;let r=0;for(;e.indexOf(t,r)===r;)r+=n;return e.substring(r)}function u(e,t,n={}){if(!e)throw new Error("Cannot create regex from empty string");t||(e=a(e)),n.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));let r="";return n.global&&(r+="g"),n.matchCase||(r+="i"),n.multiline&&(r+="m"),n.unicode&&(r+="u"),new RegExp(e,r)}function c(e){return"^"!==e.source&&"^$"!==e.source&&"$"!==e.source&&"^\\s*$"!==e.source&&!(!e.exec("")||0!==e.lastIndex)}function h(e){return e.split(/\r\n|\r|\n/)}function f(e){for(let t=0,n=e.length;t<n;t++){const n=e.charCodeAt(t);if(32!==n&&9!==n)return t}return-1}function d(e,t=e.length-1){for(let n=t;n>=0;n--){const t=e.charCodeAt(n);if(32!==t&&9!==t)return n}return-1}function m(e,t){return e<t?-1:e>t?1:0}function p(e,t,n=0,r=e.length,i=0,s=t.length){for(;n<r&&i<s;n++,i++){const r=e.charCodeAt(n),s=t.charCodeAt(i);if(r<s)return-1;if(r>s)return 1}const o=r-n,a=s-i;return o<a?-1:o>a?1:0}function g(e,t,n=0,r=e.length,i=0,s=t.length){for(;n<r&&i<s;n++,i++){let o=e.charCodeAt(n),a=t.charCodeAt(i);if(o===a)continue;if(o>=128||a>=128)return p(e.toLowerCase(),t.toLowerCase(),n,r,i,s);y(o)&&(o-=32),y(a)&&(a-=32);const l=o-a;if(0!==l)return l}const o=r-n,a=s-i;return o<a?-1:o>a?1:0}function y(e){return e>=97&&e<=122}function b(e){return e>=65&&e<=90}function v(e,t){return e.length===t.length&&0===g(e,t)}function D(e,t){const n=t.length;return!(t.length>e.length)&&0===g(e,t,0,n)}function w(e){return 55296<=e&&e<=56319}function C(e){return 56320<=e&&e<=57343}function E(e,t){return t-56320+(e-55296<<10)+65536}function S(e,t,n){const r=e.charCodeAt(n);if(w(r)&&n+1<t){const t=e.charCodeAt(n+1);if(C(t))return E(r,t)}return r}class A{get offset(){return this._offset}constructor(e,t=0){this._str=e,this._len=e.length,this._offset=t}setOffset(e){this._offset=e}prevCodePoint(){const e=function(e,t){const n=e.charCodeAt(t-1);if(C(n)&&t>1){const r=e.charCodeAt(t-2);if(w(r))return E(r,n)}return n}(this._str,this._offset);return this._offset-=e>=65536?2:1,e}nextCodePoint(){const e=S(this._str,this._len,this._offset);return this._offset+=e>=65536?2:1,e}eol(){return this._offset>=this._len}}class _{get offset(){return this._iterator.offset}constructor(e,t=0){this._iterator=new A(e,t)}nextGraphemeLength(){const e=$.getInstance(),t=this._iterator,n=t.offset;let r=e.getGraphemeBreakType(t.nextCodePoint());for(;!t.eol();){const n=t.offset,i=e.getGraphemeBreakType(t.nextCodePoint());if(B(r,i)){t.setOffset(n);break}r=i}return t.offset-n}prevGraphemeLength(){const e=$.getInstance(),t=this._iterator,n=t.offset;let r=e.getGraphemeBreakType(t.prevCodePoint());for(;t.offset>0;){const n=t.offset,i=e.getGraphemeBreakType(t.prevCodePoint());if(B(i,r)){t.setOffset(n);break}r=i}return n-t.offset}eol(){return this._iterator.eol()}}let k;function N(e){return k||(k=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDC7\uFDF0-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE35\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDD23\uDE80-\uDEA9\uDEAD-\uDF45\uDF51-\uDF81\uDF86-\uDFF6]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD4B-\uDFFF]|\uD83B[\uDC00-\uDEBB])/),k.test(e)}const L=/^[\t\n\r\x20-\x7E]*$/;function x(e){return L.test(e)}const F=/[\u2028\u2029]/;function O(e){return F.test(e)}function M(e){return e>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function T(e){return e>=127462&&e<=127487||8986===e||8987===e||9200===e||9203===e||e>=9728&&e<=10175||11088===e||11093===e||e>=127744&&e<=128591||e>=128640&&e<=128764||e>=128992&&e<=129008||e>=129280&&e<=129535||e>=129648&&e<=129782}const I=String.fromCharCode(65279);function R(e){return!!(e&&e.length>0&&65279===e.charCodeAt(0))}function P(e){return(e%=52)<26?String.fromCharCode(97+e):String.fromCharCode(65+e-26)}function B(e,t){return 0===e?5!==t&&7!==t:!(2===e&&3===t||4!==e&&2!==e&&3!==e&&4!==t&&2!==t&&3!==t&&(8===e&&(8===t||9===t||11===t||12===t)||!(11!==e&&9!==e||9!==t&&10!==t)||(12===e||10===e)&&10===t||5===t||13===t||7===t||1===e||13===e&&14===t||6===e&&6===t))}class ${static{this._INSTANCE=null}static getInstance(){return $._INSTANCE||($._INSTANCE=new $),$._INSTANCE}constructor(){this._data=JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}getGraphemeBreakType(e){if(e<32)return 10===e?3:13===e?2:4;if(e<127)return 0;const t=this._data,n=t.length/3;let r=1;for(;r<=n;)if(e<t[3*r])r*=2;else{if(!(e>t[3*r+1]))return t[3*r+2];r=2*r+1}return 0}}class j{static{this.ambiguousCharacterData=new i.d((()=>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,8218,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,8242,96,1370,96,1523,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,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,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,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,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,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,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,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,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,71922,67,71913,67,65315,67,8557,67,8450,67,8493,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,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,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,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,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,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,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,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,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,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,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,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,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,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,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,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,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,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,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,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,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,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,71919,87,71910,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,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,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,66293,90,71909,90,65338,90,8484,90,8488,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,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,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,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,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,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,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,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,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,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,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,65283,35,65292,44,65307,59],"ko":[8211,45,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,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,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,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,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,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,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[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,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,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,65283,35,65307,59]}')))}static{this.cache=new r.o5({getCacheKey:JSON.stringify},(e=>{function t(e){const t=new Map;for(let n=0;n<e.length;n+=2)t.set(e[n],e[n+1]);return t}function n(e,t){if(!e)return t;const n=new Map;for(const[r,i]of e)t.has(r)&&n.set(r,i);return n}const r=this.ambiguousCharacterData.value;let i,s=e.filter((e=>!e.startsWith("_")&&e in r));0===s.length&&(s=["_default"]);for(const e of s)i=n(i,t(r[e]));const o=function(e,t){const n=new Map(e);for(const[e,r]of t)n.set(e,r);return n}(t(r._common),i);return new j(o)}))}static getInstance(e){return j.cache.get(Array.from(e))}static{this._locales=new i.d((()=>Object.keys(j.ambiguousCharacterData.value).filter((e=>!e.startsWith("_")))))}static getLocales(){return j._locales.value}constructor(e){this.confusableDictionary=e}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}class V{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,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,12288,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]")}static{this._data=void 0}static getData(){return this._data||(this._data=new Set(V.getRawData())),this._data}static isInvisibleCharacter(e){return V.getData().has(e)}static get codePoints(){return V.getData()}}},5459:(e,t,n)=>{"use strict";function r(){return globalThis._VSCODE_NLS_LANGUAGE}n.d(t,{i8:()=>r,kg:()=>s});const i="pseudo"===r()||"undefined"!=typeof document&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function s(e,t,...n){return function(e,t){let n;return n=0===t.length?e:e.replace(/\{(\d+)\}/g,((e,n)=>{const r=n[0],i=t[r];let s=e;return"string"==typeof i?s=i:"number"!=typeof i&&"boolean"!=typeof i&&null!=i||(s=String(i)),s})),i&&(n="["+n.replace(/[aouei]/g,"$&$&")+"]"),n}("number"==typeof e?function(e,t){const n=globalThis._VSCODE_NLS_MESSAGES?.[e];if("string"!=typeof n){if("string"==typeof t)return t;throw new Error(`!!! NLS MISSING: ${e} !!!`)}return n}(e,t):t,n)}},5835:(e,t,n)=>{"use strict";n.d(t,{Ft:()=>o,Xo:()=>a,ok:()=>i,xb:()=>s});var r=n(5146);function i(e,t){if(!e)throw new Error(t?`Assertion failed (${t})`:"Assertion Failed")}function s(e,t="Unreachable"){throw new Error(t)}function o(e){e()||(e(),(0,r.dz)(new r.D7("Assertion Failed")))}function a(e,t){let n=0;for(;n<e.length-1;){if(!t(e[n],e[n+1]))return!1;n++}return!0}},5863:(e,t,n)=>{"use strict";n.d(t,{V:()=>i});var r=n(237);class i{constructor(e){const t=(0,r.W)(e);this._defaultValue=t,this._asciiMap=i._createAsciiMap(t),this._map=new Map}static _createAsciiMap(e){const t=new Uint8Array(256);return t.fill(e),t}set(e,t){const n=(0,r.W)(t);e>=0&&e<256?this._asciiMap[e]=n:this._map.set(e,n)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}},6078:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SimpleWorkerClient:()=>v,SimpleWorkerServer:()=>C,create:()=>E,logOnceWebWorkerWarning:()=>f});var r=n(5146),i=n(1069),s=n(714),o=n(6339),a=n(7622),l=n(5259);const u="default",c="$initialize";let h=!1;function f(e){a.HZ&&(h||(h=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/microsoft/monaco-editor#faq")),console.warn(e.message))}class d{constructor(e,t,n,r,i){this.vsWorker=e,this.req=t,this.channel=n,this.method=r,this.args=i,this.type=0}}class m{constructor(e,t,n,r){this.vsWorker=e,this.seq=t,this.res=n,this.err=r,this.type=1}}class p{constructor(e,t,n,r,i){this.vsWorker=e,this.req=t,this.channel=n,this.eventName=r,this.arg=i,this.type=2}}class g{constructor(e,t,n){this.vsWorker=e,this.req=t,this.event=n,this.type=3}}class y{constructor(e,t){this.vsWorker=e,this.req=t,this.type=4}}class b{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}sendMessage(e,t,n){const r=String(++this._lastSentReq);return new Promise(((i,s)=>{this._pendingReplies[r]={resolve:i,reject:s},this._send(new d(this._workerId,r,e,t,n))}))}listen(e,t,n){let r=null;const s=new i.vl({onWillAddFirstListener:()=>{r=String(++this._lastSentReq),this._pendingEmitters.set(r,s),this._send(new p(this._workerId,r,e,t,n))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(r),this._send(new y(this._workerId,r)),r=null}});return s.event}handleMessage(e){e&&e.vsWorker&&(-1!==this._workerId&&e.vsWorker!==this._workerId||this._handleMessage(e))}createProxyToRemoteChannel(e,t){const n={get:(n,r)=>("string"!=typeof r||n[r]||(w(r)?n[r]=t=>this.listen(e,r,t):D(r)?n[r]=this.listen(e,r,void 0):36===r.charCodeAt(0)&&(n[r]=async(...n)=>(await(t?.()),this.sendMessage(e,r,n)))),n[r])};return new Proxy(Object.create(null),n)}_handleMessage(e){switch(e.type){case 1:return this._handleReplyMessage(e);case 0:return this._handleRequestMessage(e);case 2:return this._handleSubscribeEventMessage(e);case 3:return this._handleEventMessage(e);case 4:return this._handleUnsubscribeEventMessage(e)}}_handleReplyMessage(e){if(!this._pendingReplies[e.seq])return void console.warn("Got reply to unknown seq");const t=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let n=e.err;return e.err.$isError&&(n=new Error,n.name=e.err.name,n.message=e.err.message,n.stack=e.err.stack),void t.reject(n)}t.resolve(e.res)}_handleRequestMessage(e){const t=e.req;this._handler.handleMessage(e.channel,e.method,e.args).then((e=>{this._send(new m(this._workerId,t,e,void 0))}),(e=>{e.detail instanceof Error&&(e.detail=(0,r.cU)(e.detail)),this._send(new m(this._workerId,t,void 0,(0,r.cU)(e)))}))}_handleSubscribeEventMessage(e){const t=e.req,n=this._handler.handleEvent(e.channel,e.eventName,e.arg)((e=>{this._send(new g(this._workerId,t,e))}));this._pendingEvents.set(t,n)}_handleEventMessage(e){this._pendingEmitters.has(e.req)?this._pendingEmitters.get(e.req).fire(e.event):console.warn("Got event for unknown req")}_handleUnsubscribeEventMessage(e){this._pendingEvents.has(e.req)?(this._pendingEvents.get(e.req).dispose(),this._pendingEvents.delete(e.req)):console.warn("Got unsubscribe for unknown req")}_send(e){const t=[];if(0===e.type)for(let n=0;n<e.args.length;n++)e.args[n]instanceof ArrayBuffer&&t.push(e.args[n]);else 1===e.type&&e.res instanceof ArrayBuffer&&t.push(e.res);this._handler.sendMessage(e,t)}}class v extends s.jG{constructor(e,t){super(),this._localChannels=new Map,this._worker=this._register(e.create({amdModuleId:"vs/base/common/worker/simpleWorker",esmModuleLocation:t.esmModuleLocation,label:t.label},(e=>{this._protocol.handleMessage(e)}),(e=>{(0,r.dz)(e)}))),this._protocol=new b({sendMessage:(e,t)=>{this._worker.postMessage(e,t)},handleMessage:(e,t,n)=>this._handleMessage(e,t,n),handleEvent:(e,t,n)=>this._handleEvent(e,t,n)}),this._protocol.setWorkerId(this._worker.getId());let n=null;const i=globalThis.require;void 0!==i&&"function"==typeof i.getConfig?n=i.getConfig():void 0!==globalThis.requirejs&&(n=globalThis.requirejs.s.contexts._.config),this._onModuleLoaded=this._protocol.sendMessage(u,c,[this._worker.getId(),JSON.parse(JSON.stringify(n)),t.amdModuleId]),this.proxy=this._protocol.createProxyToRemoteChannel(u,(async()=>{await this._onModuleLoaded})),this._onModuleLoaded.catch((e=>{this._onError("Worker failed to load "+t.amdModuleId,e)}))}_handleMessage(e,t,n){const r=this._localChannels.get(e);if(!r)return Promise.reject(new Error(`Missing channel ${e} on main thread`));if("function"!=typeof r[t])return Promise.reject(new Error(`Missing method ${t} on main thread channel ${e}`));try{return Promise.resolve(r[t].apply(r,n))}catch(e){return Promise.reject(e)}}_handleEvent(e,t,n){const r=this._localChannels.get(e);if(!r)throw new Error(`Missing channel ${e} on main thread`);if(w(t)){const i=r[t].call(r,n);if("function"!=typeof i)throw new Error(`Missing dynamic event ${t} on main thread channel ${e}.`);return i}if(D(t)){const n=r[t];if("function"!=typeof n)throw new Error(`Missing event ${t} on main thread channel ${e}.`);return n}throw new Error(`Malformed event name ${t}`)}setChannel(e,t){this._localChannels.set(e,t)}_onError(e,t){console.error(e),console.info(t)}}function D(e){return"o"===e[0]&&"n"===e[1]&&l.Wv(e.charCodeAt(2))}function w(e){return/^onDynamic/.test(e)&&l.Wv(e.charCodeAt(9))}class C{constructor(e,t){this._localChannels=new Map,this._remoteChannels=new Map,this._requestHandlerFactory=t,this._requestHandler=null,this._protocol=new b({sendMessage:(t,n)=>{e(t,n)},handleMessage:(e,t,n)=>this._handleMessage(e,t,n),handleEvent:(e,t,n)=>this._handleEvent(e,t,n)})}onmessage(e){this._protocol.handleMessage(e)}_handleMessage(e,t,n){if(e===u&&t===c)return this.initialize(n[0],n[1],n[2]);const r=e===u?this._requestHandler:this._localChannels.get(e);if(!r)return Promise.reject(new Error(`Missing channel ${e} on worker thread`));if("function"!=typeof r[t])return Promise.reject(new Error(`Missing method ${t} on worker thread channel ${e}`));try{return Promise.resolve(r[t].apply(r,n))}catch(e){return Promise.reject(e)}}_handleEvent(e,t,n){const r=e===u?this._requestHandler:this._localChannels.get(e);if(!r)throw new Error(`Missing channel ${e} on worker thread`);if(w(t)){const e=r[t].call(r,n);if("function"!=typeof e)throw new Error(`Missing dynamic event ${t} on request handler.`);return e}if(D(t)){const e=r[t];if("function"!=typeof e)throw new Error(`Missing event ${t} on request handler.`);return e}throw new Error(`Malformed event name ${t}`)}getChannel(e){if(!this._remoteChannels.has(e)){const t=this._protocol.createProxyToRemoteChannel(e);this._remoteChannels.set(e,t)}return this._remoteChannels.get(e)}async initialize(e,t,r){if(this._protocol.setWorkerId(e),!this._requestHandlerFactory){t&&(void 0!==t.baseUrl&&delete t.baseUrl,void 0!==t.paths&&void 0!==t.paths.vs&&delete t.paths.vs,void 0!==t.trustedTypesPolicy&&delete t.trustedTypesPolicy,t.catchError=!0,globalThis.require.config(t));{const e=o.zl.asBrowserUri(`${r}.js`).toString(!0);return n(2373)(`${e}`).then((e=>{if(this._requestHandler=e.create(this),!this._requestHandler)throw new Error("No RequestHandler!")}))}}this._requestHandler=this._requestHandlerFactory(this)}}function E(e){return new C(e,null)}},6339:(e,t,n)=>{"use strict";n.d(t,{ny:()=>r,v$:()=>u,zl:()=>f});var r,i=n(5146),s=n(7622),o=n(5259),a=n(8095),l=n(2194);function u(e,t){return a.r.isUri(e)?(0,o.Q_)(e.scheme,t):(0,o.ns)(e,t+":")}!function(e){e.inMemory="inmemory",e.vscode="vscode",e.internal="private",e.walkThrough="walkThrough",e.walkThroughSnippet="walkThroughSnippet",e.http="http",e.https="https",e.file="file",e.mailto="mailto",e.untitled="untitled",e.data="data",e.command="command",e.vscodeRemote="vscode-remote",e.vscodeRemoteResource="vscode-remote-resource",e.vscodeManagedRemoteResource="vscode-managed-remote-resource",e.vscodeUserData="vscode-userdata",e.vscodeCustomEditor="vscode-custom-editor",e.vscodeNotebookCell="vscode-notebook-cell",e.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",e.vscodeNotebookCellMetadataDiff="vscode-notebook-cell-metadata-diff",e.vscodeNotebookCellOutput="vscode-notebook-cell-output",e.vscodeNotebookCellOutputDiff="vscode-notebook-cell-output-diff",e.vscodeNotebookMetadata="vscode-notebook-metadata",e.vscodeInteractiveInput="vscode-interactive-input",e.vscodeSettings="vscode-settings",e.vscodeWorkspaceTrust="vscode-workspace-trust",e.vscodeTerminal="vscode-terminal",e.vscodeChatCodeBlock="vscode-chat-code-block",e.vscodeChatCodeCompareBlock="vscode-chat-code-compare-block",e.vscodeChatSesssion="vscode-chat-editor",e.webviewPanel="webview-panel",e.vscodeWebview="vscode-webview",e.extension="extension",e.vscodeFileResource="vscode-file",e.tmp="tmp",e.vsls="vsls",e.vscodeSourceControl="vscode-scm",e.commentsInput="comment",e.codeSetting="code-setting",e.outputChannel="output"}(r||(r={}));const c=new class{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._serverRootPath="/"}setPreferredWebSchema(e){this._preferredWebSchema=e}get _remoteResourcesPath(){return l.SA.join(this._serverRootPath,r.vscodeRemoteResource)}rewrite(e){if(this._delegate)try{return this._delegate(e)}catch(t){return i.dz(t),e}const t=e.authority;let n=this._hosts[t];n&&-1!==n.indexOf(":")&&-1===n.indexOf("[")&&(n=`[${n}]`);const o=this._ports[t],l=this._connectionTokens[t];let u=`path=${encodeURIComponent(e.path)}`;return"string"==typeof l&&(u+=`&tkn=${encodeURIComponent(l)}`),a.r.from({scheme:s.HZ?this._preferredWebSchema:r.vscodeRemoteResource,authority:`${n}:${o}`,path:this._remoteResourcesPath,query:u})}};class h{static{this.FALLBACK_AUTHORITY="vscode-app"}asBrowserUri(e){const t=this.toUri(e);return this.uriToBrowserUri(t)}uriToBrowserUri(e){return e.scheme===r.vscodeRemote?c.rewrite(e):e.scheme!==r.file||!s.ib&&s.lg!==`${r.vscodeFileResource}://${h.FALLBACK_AUTHORITY}`?e:e.with({scheme:r.vscodeFileResource,authority:e.authority||h.FALLBACK_AUTHORITY,query:null,fragment:null})}toUri(e,t){if(a.r.isUri(e))return e;if(globalThis._VSCODE_FILE_ROOT){const t=globalThis._VSCODE_FILE_ROOT;if(/^\w[\w\d+.-]*:\/\//.test(t))return a.r.joinPath(a.r.parse(t,!0),e);const n=l.fj(t,e);return a.r.file(n)}return a.r.parse(t.toUrl(e))}}const f=new h;var d;!function(e){const t=new Map([["1",{"Cross-Origin-Opener-Policy":"same-origin"}],["2",{"Cross-Origin-Embedder-Policy":"require-corp"}],["3",{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}]]);e.CoopAndCoep=Object.freeze(t.get("3"));const n="vscode-coi";e.getHeadersFromQuery=function(e){let r;"string"==typeof e?r=new URL(e).searchParams:e instanceof URL?r=e.searchParams:a.r.isUri(e)&&(r=new URL(e.toString(!0)).searchParams);const i=r?.get(n);if(i)return t.get(i)},e.addSearchParam=function(e,t,r){if(!globalThis.crossOriginIsolated)return;const i=t&&r?"3":r?"2":"1";e instanceof URLSearchParams?e.set(n,i):e[n]=i}}(d||(d={}))},6378:(e,t,n)=>{"use strict";function r(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}n.d(t,{Q1:()=>a,bU:()=>i,hB:()=>s});class i{constructor(e,t,n,i=1){this._rgbaBrand=void 0,this.r=0|Math.min(255,Math.max(0,e)),this.g=0|Math.min(255,Math.max(0,t)),this.b=0|Math.min(255,Math.max(0,n)),this.a=r(Math.max(Math.min(1,i),0),3)}static equals(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a}}class s{constructor(e,t,n,i){this._hslaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=r(Math.max(Math.min(1,t),0),3),this.l=r(Math.max(Math.min(1,n),0),3),this.a=r(Math.max(Math.min(1,i),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.l===t.l&&e.a===t.a}static fromRGBA(e){const t=e.r/255,n=e.g/255,r=e.b/255,i=e.a,o=Math.max(t,n,r),a=Math.min(t,n,r);let l=0,u=0;const c=(a+o)/2,h=o-a;if(h>0){switch(u=Math.min(c<=.5?h/(2*c):h/(2-2*c),1),o){case t:l=(n-r)/h+(n<r?6:0);break;case n:l=(r-t)/h+2;break;case r:l=(t-n)/h+4}l*=60,l=Math.round(l)}return new s(l,u,c,i)}static _hue2rgb(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}static toRGBA(e){const t=e.h/360,{s:n,l:r,a:o}=e;let a,l,u;if(0===n)a=l=u=r;else{const e=r<.5?r*(1+n):r+n-r*n,i=2*r-e;a=s._hue2rgb(i,e,t+1/3),l=s._hue2rgb(i,e,t),u=s._hue2rgb(i,e,t-1/3)}return new i(Math.round(255*a),Math.round(255*l),Math.round(255*u),o)}}class o{constructor(e,t,n,i){this._hsvaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=r(Math.max(Math.min(1,t),0),3),this.v=r(Math.max(Math.min(1,n),0),3),this.a=r(Math.max(Math.min(1,i),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a}static fromRGBA(e){const t=e.r/255,n=e.g/255,r=e.b/255,i=Math.max(t,n,r),s=i-Math.min(t,n,r),a=0===i?0:s/i;let l;return l=0===s?0:i===t?((n-r)/s%6+6)%6:i===n?(r-t)/s+2:(t-n)/s+4,new o(Math.round(60*l),a,i,e.a)}static toRGBA(e){const{h:t,s:n,v:r,a:s}=e,o=r*n,a=o*(1-Math.abs(t/60%2-1)),l=r-o;let[u,c,h]=[0,0,0];return t<60?(u=o,c=a):t<120?(u=a,c=o):t<180?(c=o,h=a):t<240?(c=a,h=o):t<300?(u=a,h=o):t<=360&&(u=o,h=a),u=Math.round(255*(u+l)),c=Math.round(255*(c+l)),h=Math.round(255*(h+l)),new i(u,c,h,s)}}class a{static fromHex(e){return a.Format.CSS.parseHex(e)||a.red}static equals(e,t){return!e&&!t||!(!e||!t)&&e.equals(t)}get hsla(){return this._hsla?this._hsla:s.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:o.fromRGBA(this.rgba)}constructor(e){if(!e)throw new Error("Color needs a value");if(e instanceof i)this.rgba=e;else if(e instanceof s)this._hsla=e,this.rgba=s.toRGBA(e);else{if(!(e instanceof o))throw new Error("Invalid color ctor argument");this._hsva=e,this.rgba=o.toRGBA(e)}}equals(e){return!!e&&i.equals(this.rgba,e.rgba)&&s.equals(this.hsla,e.hsla)&&o.equals(this.hsva,e.hsva)}getRelativeLuminance(){return r(.2126*a._relativeLuminanceForComponent(this.rgba.r)+.7152*a._relativeLuminanceForComponent(this.rgba.g)+.0722*a._relativeLuminanceForComponent(this.rgba.b),4)}static _relativeLuminanceForComponent(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}isLighter(){return(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3>=128}isLighterThan(e){return this.getRelativeLuminance()>e.getRelativeLuminance()}isDarkerThan(e){return this.getRelativeLuminance()<e.getRelativeLuminance()}lighten(e){return new a(new s(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*e,this.hsla.a))}darken(e){return new a(new s(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*e,this.hsla.a))}transparent(e){const{r:t,g:n,b:r,a:s}=this.rgba;return new a(new i(t,n,r,s*e))}isTransparent(){return 0===this.rgba.a}isOpaque(){return 1===this.rgba.a}opposite(){return new a(new i(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}makeOpaque(e){if(this.isOpaque()||1!==e.rgba.a)return this;const{r:t,g:n,b:r,a:s}=this.rgba;return new a(new i(e.rgba.r-s*(e.rgba.r-t),e.rgba.g-s*(e.rgba.g-n),e.rgba.b-s*(e.rgba.b-r),1))}toString(){return this._toString||(this._toString=a.Format.CSS.format(this)),this._toString}static getLighterColor(e,t,n){if(e.isLighterThan(t))return e;n=n||.5;const r=e.getRelativeLuminance(),i=t.getRelativeLuminance();return n=n*(i-r)/i,e.lighten(n)}static getDarkerColor(e,t,n){if(e.isDarkerThan(t))return e;n=n||.5;const r=e.getRelativeLuminance();return n=n*(r-t.getRelativeLuminance())/r,e.darken(n)}static{this.white=new a(new i(255,255,255,1))}static{this.black=new a(new i(0,0,0,1))}static{this.red=new a(new i(255,0,0,1))}static{this.blue=new a(new i(0,0,255,1))}static{this.green=new a(new i(0,255,0,1))}static{this.cyan=new a(new i(0,255,255,1))}static{this.lightgrey=new a(new i(211,211,211,1))}static{this.transparent=new a(new i(0,0,0,0))}}!function(e){let t;!function(t){let n;!function(t){function n(e){const t=e.toString(16);return 2!==t.length?"0"+t:t}function r(e){switch(e){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:case 65:return 10;case 98:case 66:return 11;case 99:case 67:return 12;case 100:case 68:return 13;case 101:case 69:return 14;case 102:case 70:return 15}return 0}t.formatRGB=function(t){return 1===t.rgba.a?`rgb(${t.rgba.r}, ${t.rgba.g}, ${t.rgba.b})`:e.Format.CSS.formatRGBA(t)},t.formatRGBA=function(e){return`rgba(${e.rgba.r}, ${e.rgba.g}, ${e.rgba.b}, ${+e.rgba.a.toFixed(2)})`},t.formatHSL=function(t){return 1===t.hsla.a?`hsl(${t.hsla.h}, ${(100*t.hsla.s).toFixed(2)}%, ${(100*t.hsla.l).toFixed(2)}%)`:e.Format.CSS.formatHSLA(t)},t.formatHSLA=function(e){return`hsla(${e.hsla.h}, ${(100*e.hsla.s).toFixed(2)}%, ${(100*e.hsla.l).toFixed(2)}%, ${e.hsla.a.toFixed(2)})`},t.formatHex=function(e){return`#${n(e.rgba.r)}${n(e.rgba.g)}${n(e.rgba.b)}`},t.formatHexA=function(t,r=!1){return r&&1===t.rgba.a?e.Format.CSS.formatHex(t):`#${n(t.rgba.r)}${n(t.rgba.g)}${n(t.rgba.b)}${n(Math.round(255*t.rgba.a))}`},t.format=function(t){return t.isOpaque()?e.Format.CSS.formatHex(t):e.Format.CSS.formatRGBA(t)},t.parseHex=function(t){const n=t.length;if(0===n)return null;if(35!==t.charCodeAt(0))return null;if(7===n){const n=16*r(t.charCodeAt(1))+r(t.charCodeAt(2)),s=16*r(t.charCodeAt(3))+r(t.charCodeAt(4)),o=16*r(t.charCodeAt(5))+r(t.charCodeAt(6));return new e(new i(n,s,o,1))}if(9===n){const n=16*r(t.charCodeAt(1))+r(t.charCodeAt(2)),s=16*r(t.charCodeAt(3))+r(t.charCodeAt(4)),o=16*r(t.charCodeAt(5))+r(t.charCodeAt(6)),a=16*r(t.charCodeAt(7))+r(t.charCodeAt(8));return new e(new i(n,s,o,a/255))}if(4===n){const n=r(t.charCodeAt(1)),s=r(t.charCodeAt(2)),o=r(t.charCodeAt(3));return new e(new i(16*n+n,16*s+s,16*o+o))}if(5===n){const n=r(t.charCodeAt(1)),s=r(t.charCodeAt(2)),o=r(t.charCodeAt(3)),a=r(t.charCodeAt(4));return new e(new i(16*n+n,16*s+s,16*o+o,(16*a+a)/255))}return null}}(n=t.CSS||(t.CSS={}))}(t=e.Format||(e.Format={}))}(a||(a={}))},6399:(e,t,n)=>{var r={"./editorBaseApi":[5149],"./editorBaseApi.js":[5149],"./editorSimpleWorker":[4571],"./editorSimpleWorker.js":[4571],"./editorWorker":[8479,479],"./editorWorker.js":[8479,479],"./editorWorkerHost":[4965],"./editorWorkerHost.js":[4965],"./findSectionHeaders":[4628],"./findSectionHeaders.js":[4628],"./getIconClasses":[7043,65,43],"./getIconClasses.js":[7043,65,43],"./languageFeatureDebounce":[9344,195,344],"./languageFeatureDebounce.js":[9344,195,344],"./languageFeatures":[1829,829],"./languageFeatures.js":[1829,829],"./languageFeaturesService":[330,491,306],"./languageFeaturesService.js":[330,491,306],"./languageService":[9992,65,491,992],"./languageService.js":[9992,65,491,992],"./languagesAssociations":[4685,65,491,66],"./languagesAssociations.js":[4685,65,491,66],"./languagesRegistry":[7970,65,491,970],"./languagesRegistry.js":[7970,65,491,970],"./markerDecorations":[9299,299],"./markerDecorations.js":[9299,299],"./markerDecorationsService":[3892,862,728],"./markerDecorationsService.js":[3892,862,728],"./model":[7087,87],"./model.js":[7087,87],"./modelService":[1100,65,862,100,549],"./modelService.js":[1100,65,862,100,549],"./resolverService":[7931,931],"./resolverService.js":[7931,931],"./semanticTokensDto":[1685,685],"./semanticTokensDto.js":[1685,685],"./semanticTokensProviderStyling":[3007,195,7,996],"./semanticTokensProviderStyling.js":[3007,195,7,996],"./semanticTokensStyling":[697,78],"./semanticTokensStyling.js":[697,78],"./semanticTokensStylingService":[923,195,7,923],"./semanticTokensStylingService.js":[923,195,7,923],"./textModelSync/textModelSync.impl":[9212],"./textModelSync/textModelSync.impl.js":[9212],"./textModelSync/textModelSync.protocol":[6179,179],"./textModelSync/textModelSync.protocol.js":[6179,179],"./textResourceConfiguration":[7277,277],"./textResourceConfiguration.js":[7277,277],"./treeSitterParserService":[2513,513],"./treeSitterParserService.js":[2513,513],"./treeViewsDnd":[3116,116],"./treeViewsDnd.js":[3116,116],"./treeViewsDndService":[1173,173],"./treeViewsDndService.js":[1173,173],"./unicodeTextModelHighlighter":[5170],"./unicodeTextModelHighlighter.js":[5170]};function i(e){if(!n.o(r,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],i=t[0];return Promise.all(t.slice(1).map(n.e)).then((()=>n(i)))}i.keys=()=>Object.keys(r),i.id=6399,e.exports=i},7340:(e,t,n)=>{"use strict";n.d(t,{w:()=>i});class r{static{this.Undefined=new r(void 0)}constructor(e){this.element=e,this.next=r.Undefined,this.prev=r.Undefined}}class i{constructor(){this._first=r.Undefined,this._last=r.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===r.Undefined}clear(){let e=this._first;for(;e!==r.Undefined;){const t=e.next;e.prev=r.Undefined,e.next=r.Undefined,e=t}this._first=r.Undefined,this._last=r.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const n=new r(e);if(this._first===r.Undefined)this._first=n,this._last=n;else if(t){const e=this._last;this._last=n,n.prev=e,e.next=n}else{const e=this._first;this._first=n,n.next=e,e.prev=n}this._size+=1;let i=!1;return()=>{i||(i=!0,this._remove(n))}}shift(){if(this._first!==r.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==r.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==r.Undefined&&e.next!==r.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===r.Undefined&&e.next===r.Undefined?(this._first=r.Undefined,this._last=r.Undefined):e.next===r.Undefined?(this._last=this._last.prev,this._last.next=r.Undefined):e.prev===r.Undefined&&(this._first=this._first.next,this._first.prev=r.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==r.Undefined;)yield e.element,e=e.next}}},7436:(e,t,n)=>{"use strict";n.d(t,{n:()=>a});var r=n(6078),i=n(4571),s=n(4965);let o=!1;function a(e){if(o)return;o=!0;const t=new r.SimpleWorkerServer((e=>{globalThis.postMessage(e)}),(t=>new i.EditorSimpleWorker(s.EditorWorkerHost.getChannel(t),e)));globalThis.onmessage=e=>{t.onmessage(e.data)}}globalThis.onmessage=e=>{o||a(null)}},7622:(e,t,n)=>{"use strict";n.d(t,{H8:()=>B,HZ:()=>L,OS:()=>T,UP:()=>V,_p:()=>M,cm:()=>P,gm:()=>$,ib:()=>N,j9:()=>k,lg:()=>x,nr:()=>j,uF:()=>A,zx:()=>_});var r=n(5459);const i="en";let s,o,a=!1,l=!1,u=!1,c=!1,h=!1,f=!1,d=!1,m=!1,p=!1,g=!1,y=null,b=null,v=null;const D=globalThis;let w;void 0!==D.vscode&&void 0!==D.vscode.process?w=D.vscode.process:"undefined"!=typeof process&&"string"==typeof process?.versions?.node&&(w=process);const C="string"==typeof w?.versions?.electron,E=C&&"renderer"===w?.type;if("object"==typeof w){a="win32"===w.platform,l="darwin"===w.platform,u="linux"===w.platform,c=u&&!!w.env.SNAP&&!!w.env.SNAP_REVISION,d=C,p=!!w.env.CI||!!w.env.BUILD_ARTIFACTSTAGINGDIRECTORY,s=i,y=i;const e=w.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e);s=t.userLocale,b=t.osLocale,y=t.resolvedLanguage||i,v=t.languagePack?.translationsConfigFile}catch(e){}h=!0}else"object"!=typeof navigator||E?console.error("Unable to resolve platform."):(o=navigator.userAgent,a=o.indexOf("Windows")>=0,l=o.indexOf("Macintosh")>=0,m=(o.indexOf("Macintosh")>=0||o.indexOf("iPad")>=0||o.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,u=o.indexOf("Linux")>=0,o?.indexOf("Mobi")>=0,f=!0,y=r.i8()||i,s=navigator.language.toLowerCase(),b=s);let S=0;l?S=1:a?S=3:u&&(S=2);const A=a,_=l,k=u,N=h,L=f,x=f&&"function"==typeof D.importScripts?D.origin:void 0,F=o,O="function"==typeof D.postMessage&&!D.importScripts,M=(()=>{if(O){const e=[];D.addEventListener("message",(t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let n=0,r=e.length;n<r;n++){const r=e[n];if(r.id===t.data.vscodeScheduleAsyncWork)return e.splice(n,1),void r.callback()}}));let t=0;return n=>{const r=++t;e.push({id:r,callback:n}),D.postMessage({vscodeScheduleAsyncWork:r},"*")}}return e=>setTimeout(e)})(),T=l||m?2:a?1:3;let I=!0,R=!1;function P(){if(!R){R=!0;const e=new Uint8Array(2);e[0]=1,e[1]=2;const t=new Uint16Array(e.buffer);I=513===t[0]}return I}const B=!!(F&&F.indexOf("Chrome")>=0),$=!!(F&&F.indexOf("Firefox")>=0),j=!!(!B&&F&&F.indexOf("Safari")>=0),V=!!(F&&F.indexOf("Edg/")>=0);F&&F.indexOf("Android")},7840:(e,t,n)=>{"use strict";function r(e,t,n=(e,t)=>e===t){if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(let r=0,i=e.length;r<i;r++)if(!n(e[r],t[r]))return!1;return!0}function*i(e,t){let n,r;for(const i of e)void 0!==r&&t(r,i)?n.push(i):(n&&(yield n),n=[i]),r=i;n&&(yield n)}function s(e,t){for(let n=0;n<=e.length;n++)t(0===n?void 0:e[n-1],n===e.length?void 0:e[n])}function o(e,t){for(let n=0;n<e.length;n++)t(0===n?void 0:e[n-1],e[n],n+1===e.length?void 0:e[n+1])}function a(e,t=e=>e){const n=new Set;return e.filter((e=>{const r=t(e);return!n.has(r)&&(n.add(r),!0)}))}function l(e,t){return e.length>0?e[0]:t}function u(e,t,n){const r=e.slice(0,t),i=e.slice(t);return r.concat(n,i)}function c(e,t){for(const n of t)e.push(n)}var h;function f(e,t){return(n,r)=>t(e(n),e(r))}n.d(t,{E4:()=>c,Fy:()=>l,Hw:()=>m,U9:()=>d,VE:()=>f,aI:()=>r,c1:()=>g,dM:()=>a,j3:()=>p,kj:()=>o,n:()=>i,nK:()=>u,pN:()=>s}),function(e){e.isLessThan=function(e){return e<0},e.isLessThanOrEqual=function(e){return e<=0},e.isGreaterThan=function(e){return e>0},e.isNeitherLessOrGreaterThan=function(e){return 0===e},e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0}(h||(h={}));const d=(e,t)=>e-t;function m(e){return(t,n)=>-e(t,n)}class p{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t<this.items.length&&e(this.items[t]);)t++;const n=t===this.firstIdx?null:this.items.slice(this.firstIdx,t);return this.firstIdx=t,n}takeFromEndWhile(e){let t=this.lastIdx;for(;t>=0&&e(this.items[t]);)t--;const n=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,n}peek(){if(0!==this.length)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}class g{static{this.empty=new g((e=>{}))}constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate((t=>(e.push(t),!0))),e}filter(e){return new g((t=>this.iterate((n=>!e(n)||t(n)))))}map(e){return new g((t=>this.iterate((n=>t(e(n))))))}findLast(e){let t;return this.iterate((n=>(e(n)&&(t=n),!0))),t}findLastMaxBy(e){let t,n=!0;return this.iterate((r=>((n||h.isGreaterThan(e(r,t)))&&(n=!1,t=r),!0))),t}}},7911:(e,t,n)=>{"use strict";n.d(t,{vb:()=>l,uC:()=>u,Qg:()=>a,$6:()=>c}),n(2926);var r=n(5146),i=n(1069),s=n(714),o=n(7622);function a(e){return!!e&&"function"==typeof e.then}Symbol("MicrotaskDelay");class l{constructor(){this.disposable=void 0,this.isDisposed=!1}cancel(){this.disposable?.dispose(),this.disposable=void 0}cancelAndSet(e,t,n=globalThis){if(this.isDisposed)throw new r.D7("Calling 'cancelAndSet' on a disposed IntervalTimer");this.cancel();const i=n.setInterval((()=>{e()}),t);this.disposable=(0,s.s)((()=>{n.clearInterval(i),this.disposable=void 0}))}dispose(){this.cancel(),this.isDisposed=!0}}class u{constructor(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(e=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)}get delay(){return this.timeout}set delay(e){this.timeout=e}isScheduled(){return-1!==this.timeoutToken}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){this.runner?.()}}let c,h;var f;h="function"!=typeof globalThis.requestIdleCallback||"function"!=typeof globalThis.cancelIdleCallback?(e,t)=>{(0,o._p)((()=>{if(n)return;const e=Date.now()+15,r={didTimeout:!0,timeRemaining:()=>Math.max(0,e-Date.now())};t(Object.freeze(r))}));let n=!1;return{dispose(){n||(n=!0)}}}:(e,t,n)=>{const r=e.requestIdleCallback(t,"number"==typeof n?{timeout:n}:void 0);let i=!1;return{dispose(){i||(i=!0,e.cancelIdleCallback(r))}}},c=e=>h(globalThis,e),function(e){e.settled=async function(e){let t;const n=await Promise.all(e.map((e=>e.then((e=>e),(e=>{t||(t=e)})))));if(void 0!==t)throw t;return n},e.withAsyncBody=function(e){return new Promise((async(t,n)=>{try{await e(t,n)}catch(e){n(e)}}))}}(f||(f={}));class d{static fromArray(e){return new d((t=>{t.emitMany(e)}))}static fromPromise(e){return new d((async t=>{t.emitMany(await e)}))}static fromPromises(e){return new d((async t=>{await Promise.all(e.map((async e=>t.emitOne(await e))))}))}static merge(e){return new d((async t=>{await Promise.all(e.map((async e=>{for await(const n of e)t.emitOne(n)})))}))}static{this.EMPTY=d.fromArray([])}constructor(e,t){this._state=0,this._results=[],this._error=null,this._onReturn=t,this._onStateChanged=new i.vl,queueMicrotask((async()=>{const t={emitOne:e=>this.emitOne(e),emitMany:e=>this.emitMany(e),reject:e=>this.reject(e)};try{await Promise.resolve(e(t)),this.resolve()}catch(e){this.reject(e)}finally{t.emitOne=void 0,t.emitMany=void 0,t.reject=void 0}}))}[Symbol.asyncIterator](){let e=0;return{next:async()=>{for(;;){if(2===this._state)throw this._error;if(e<this._results.length)return{done:!1,value:this._results[e++]};if(1===this._state)return{done:!0,value:void 0};await i.Jh.toPromise(this._onStateChanged.event)}},return:async()=>(this._onReturn?.(),{done:!0,value:void 0})}}static map(e,t){return new d((async n=>{for await(const r of e)n.emitOne(t(r))}))}map(e){return d.map(this,e)}static filter(e,t){return new d((async n=>{for await(const r of e)t(r)&&n.emitOne(r)}))}filter(e){return d.filter(this,e)}static coalesce(e){return d.filter(e,(e=>!!e))}coalesce(){return d.coalesce(this)}static async toPromise(e){const t=[];for await(const n of e)t.push(n);return t}toPromise(){return d.toPromise(this)}emitOne(e){0===this._state&&(this._results.push(e),this._onStateChanged.fire())}emitMany(e){0===this._state&&(this._results=this._results.concat(e),this._onStateChanged.fire())}resolve(){0===this._state&&(this._state=1,this._onStateChanged.fire())}reject(e){0===this._state&&(this._state=2,this._error=e,this._onStateChanged.fire())}}},8095:(e,t,n)=>{"use strict";n.d(t,{I:()=>y,r:()=>h});var r=n(2194),i=n(7622);const s=/^\w[\w\d+.-]*$/,o=/^\//,a=/^\/\//,l="",u="/",c=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class h{static isUri(e){return e instanceof h||!!e&&"string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"string"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString}constructor(e,t,n,r,i,c=!1){"object"==typeof e?(this.scheme=e.scheme||l,this.authority=e.authority||l,this.path=e.path||l,this.query=e.query||l,this.fragment=e.fragment||l):(this.scheme=function(e,t){return e||t?e:"file"}(e,c),this.authority=t||l,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==u&&(t=u+t):t=u}return t}(this.scheme,n||l),this.query=r||l,this.fragment=i||l,function(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&&!s.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!o.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(a.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 ("//")')}(this,c))}get fsPath(){return y(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:r,query:i,fragment:s}=e;return void 0===t?t=this.scheme:null===t&&(t=l),void 0===n?n=this.authority:null===n&&(n=l),void 0===r?r=this.path:null===r&&(r=l),void 0===i?i=this.query:null===i&&(i=l),void 0===s?s=this.fragment:null===s&&(s=l),t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&s===this.fragment?this:new d(t,n,r,i,s)}static parse(e,t=!1){const n=c.exec(e);return n?new d(n[2]||l,w(n[4]||l),w(n[5]||l),w(n[7]||l),w(n[9]||l),t):new d(l,l,l,l,l)}static file(e){let t=l;if(i.uF&&(e=e.replace(/\\/g,u)),e[0]===u&&e[1]===u){const n=e.indexOf(u,2);-1===n?(t=e.substring(2),e=u):(t=e.substring(2,n),e=e.substring(n)||u)}return new d("file",t,e,l,l)}static from(e,t){return new d(e.scheme,e.authority,e.path,e.query,e.fragment,t)}static joinPath(e,...t){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let n;return n=i.uF&&"file"===e.scheme?h.file(r.IN.join(y(e,!0),...t)).path:r.SA.join(e.path,...t),e.with({path:n})}toString(e=!1){return b(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof h)return e;{const t=new d(e);return t._formatted=e.external??null,t._fsPath=e._sep===f?e.fsPath??null:null,t}}return e}}const f=i.uF?1:void 0;class d extends h{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=y(this,!1)),this._fsPath}toString(e=!1){return e?b(this,!0):(this._formatted||(this._formatted=b(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=f),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}const m={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 p(e,t,n){let r,i=-1;for(let s=0;s<e.length;s++){const o=e.charCodeAt(s);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o||n&&91===o||n&&93===o||n&&58===o)-1!==i&&(r+=encodeURIComponent(e.substring(i,s)),i=-1),void 0!==r&&(r+=e.charAt(s));else{void 0===r&&(r=e.substr(0,s));const t=m[o];void 0!==t?(-1!==i&&(r+=encodeURIComponent(e.substring(i,s)),i=-1),r+=t):-1===i&&(i=s)}}return-1!==i&&(r+=encodeURIComponent(e.substring(i))),void 0!==r?r:e}function g(e){let t;for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);35===r||63===r?(void 0===t&&(t=e.substr(0,n)),t+=m[r]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function y(e,t){let n;return n=e.authority&&e.path.length>1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,i.uF&&(n=n.replace(/\//g,"\\")),n}function b(e,t){const n=t?g:p;let r="",{scheme:i,authority:s,path:o,query:a,fragment:l}=e;if(i&&(r+=i,r+=":"),(s||"file"===i)&&(r+=u,r+=u),s){let e=s.indexOf("@");if(-1!==e){const t=s.substr(0,e);s=s.substr(e+1),e=t.lastIndexOf(":"),-1===e?r+=n(t,!1,!1):(r+=n(t.substr(0,e),!1,!1),r+=":",r+=n(t.substr(e+1),!1,!0)),r+="@"}s=s.toLowerCase(),e=s.lastIndexOf(":"),-1===e?r+=n(s,!1,!0):(r+=n(s.substr(0,e),!1,!0),r+=s.substr(e))}if(o){if(o.length>=3&&47===o.charCodeAt(0)&&58===o.charCodeAt(2)){const e=o.charCodeAt(1);e>=65&&e<=90&&(o=`/${String.fromCharCode(e+32)}:${o.substr(3)}`)}else if(o.length>=2&&58===o.charCodeAt(1)){const e=o.charCodeAt(0);e>=65&&e<=90&&(o=`${String.fromCharCode(e+32)}:${o.substr(2)}`)}r+=n(o,!0,!1)}return a&&(r+="?",r+=n(a,!1,!1)),l&&(r+="#",r+=t?l:p(l,!1,!1)),r}function v(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+v(e.substr(3)):e}}const D=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function w(e){return e.match(D)?e.replace(D,(e=>v(e))):e}},8860:(e,t,n)=>{"use strict";function r(e){return"string"==typeof e}function i(e){return!("object"!=typeof e||null===e||Array.isArray(e)||e instanceof RegExp||e instanceof Date)}function s(e){return void 0===e}function o(e){return s(e)||null===e}n.d(t,{Gv:()=>i,Kg:()=>r,b0:()=>s,z:()=>o})},9025:(e,t,n)=>{"use strict";n.d(t,{Io:()=>o,Ld:()=>s,Th:()=>l});var r=n(2875),i=n(7340);const s=function(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(const n of"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?")e.indexOf(n)>=0||(t+="\\"+n);return t+="\\s]+)",new RegExp(t,"g")}();function o(e){let t=s;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 a=new i.w;function l(e,t,n,i,s){if(t=o(t),s||(s=r.f.first(a)),n.length>s.maxLen){let r=e-s.maxLen/2;return r<0?r=0:i+=r,l(e,t,n=n.substring(r,e+s.maxLen/2),i,s)}const c=Date.now(),h=e-1-i;let f=-1,d=null;for(let e=1;!(Date.now()-c>=s.timeBudget);e++){const r=h-s.windowSize*e;t.lastIndex=Math.max(0,r);const i=u(t,n,h,f);if(!i&&d)break;if(d=i,r<=0)break;f=r}if(d){const e={word:d[0],startColumn:i+1+d.index,endColumn:i+1+d.index+d[0].length};return t.lastIndex=0,e}return null}function u(e,t,n,r){let i;for(;i=e.exec(t);){const t=i.index||0;if(t<=n&&e.lastIndex>=n)return i;if(r>0&&t>r)return null}return null}a.unshift({maxLen:1e3,windowSize:15,timeBudget:150})},9212:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MirrorModel:()=>y,STOP_SYNC_MODEL_DELTA_TIME_MS:()=>m,WorkerTextModelSyncClient:()=>p,WorkerTextModelSyncServer:()=>g});var r=n(7911),i=n(714),s=n(8095),o=n(3434),a=n(520),l=n(9025),u=n(5259),c=(n(7840),n(237));class h{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=(0,c.j)(e);const n=this.values,r=this.prefixSum,i=t.length;return 0!==i&&(this.values=new Uint32Array(n.length+i),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e),e+i),this.values.set(t,e),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(e,t){return e=(0,c.j)(e),t=(0,c.j)(t),this.values[e]!==t&&(this.values[e]=t,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)}removeValues(e,t){e=(0,c.j)(e),t=(0,c.j)(t);const n=this.values,r=this.prefixSum;if(e>=n.length)return!1;const i=n.length-e;return t>=i&&(t=i),0!==t&&(this.values=new Uint32Array(n.length-t),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return 0===this.values.length?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=(0,c.j)(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;0===t&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(let n=t;n<=e;n++)this.prefixSum[n]=this.prefixSum[n-1]+this.values[n];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let t=0,n=this.values.length-1,r=0,i=0,s=0;for(;t<=n;)if(r=t+(n-t)/2|0,i=this.prefixSum[r],s=i-this.values[r],e<s)n=r-1;else{if(!(e>=i))break;t=r+1}return new f(r,e-s)}}class f{constructor(e,t){this.index=e,this.remainder=t,this._prefixSumIndexOfResultBrand=void 0,this.index=e,this.remainder=t}}class d{constructor(e,t,n,r){this._uri=e,this._lines=t,this._eol=n,this._versionId=r,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return null===this._cachedTextValue&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);const t=e.changes;for(const e of t)this._acceptDeleteRange(e.range),this._acceptInsertText(new o.y(e.range.startLineNumber,e.range.startColumn),e.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const e=this._eol.length,t=this._lines.length,n=new Uint32Array(t);for(let r=0;r<t;r++)n[r]=this._lines[r].length+e;this._lineStarts=new h(n)}}_setLineText(e,t){this._lines[e]=t,this._lineStarts&&this._lineStarts.setValue(e,this._lines[e].length+this._eol.length)}_acceptDeleteRange(e){if(e.startLineNumber!==e.endLineNumber)this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.endLineNumber-1].substring(e.endColumn-1)),this._lines.splice(e.startLineNumber,e.endLineNumber-e.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(e.startLineNumber,e.endLineNumber-e.startLineNumber);else{if(e.startColumn===e.endColumn)return;this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.startLineNumber-1].substring(e.endColumn-1))}}_acceptInsertText(e,t){if(0===t.length)return;const n=(0,u.uz)(t);if(1===n.length)return void this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+n[0]+this._lines[e.lineNumber-1].substring(e.column-1));n[n.length-1]+=this._lines[e.lineNumber-1].substring(e.column-1),this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+n[0]);const r=new Uint32Array(n.length-1);for(let t=1;t<n.length;t++)this._lines.splice(e.lineNumber+t-1,0,n[t]),r[t-1]=n[t].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,r)}}const m=6e4;class p extends i.jG{constructor(e,t,n=!1){if(super(),this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),this._proxy=e,this._modelService=t,!n){const e=new r.vb;e.cancelAndSet((()=>this._checkStopModelSync()),Math.round(m/2)),this._register(e)}}dispose(){for(const e in this._syncedModels)(0,i.AS)(this._syncedModels[e]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),super.dispose()}ensureSyncedResources(e,t=!1){for(const n of e){const e=n.toString();this._syncedModels[e]||this._beginModelSync(n,t),this._syncedModels[e]&&(this._syncedModelsLastUsedTime[e]=(new Date).getTime())}}_checkStopModelSync(){const e=(new Date).getTime(),t=[];for(const n in this._syncedModelsLastUsedTime)e-this._syncedModelsLastUsedTime[n]>m&&t.push(n);for(const e of t)this._stopModelSync(e)}_beginModelSync(e,t){const n=this._modelService.getModel(e);if(!n)return;if(!t&&n.isTooLargeForSyncing())return;const r=e.toString();this._proxy.$acceptNewModel({url:n.uri.toString(),lines:n.getLinesContent(),EOL:n.getEOL(),versionId:n.getVersionId()});const s=new i.Cm;s.add(n.onDidChangeContent((e=>{this._proxy.$acceptModelChanged(r.toString(),e)}))),s.add(n.onWillDispose((()=>{this._stopModelSync(r)}))),s.add((0,i.s)((()=>{this._proxy.$acceptRemovedModel(r)}))),this._syncedModels[r]=s}_stopModelSync(e){const t=this._syncedModels[e];delete this._syncedModels[e],delete this._syncedModelsLastUsedTime[e],(0,i.AS)(t)}}class g{constructor(){this._models=Object.create(null)}getModel(e){return this._models[e]}getModels(){const e=[];return Object.keys(this._models).forEach((t=>e.push(this._models[t]))),e}$acceptNewModel(e){this._models[e.url]=new y(s.r.parse(e.url),e.lines,e.EOL,e.versionId)}$acceptModelChanged(e,t){this._models[e]&&this._models[e].onEvents(t)}$acceptRemovedModel(e){this._models[e]&&delete this._models[e]}}class y extends d{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(e){const t=[];for(let n=0;n<this._lines.length;n++){const r=this._lines[n],i=this.offsetAt(new o.y(n+1,1)),s=r.matchAll(e);for(const e of s)(e.index||0===e.index)&&(e.index=e.index+i),t.push(e)}return t}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(e){return this._lines[e-1]}getWordAtPosition(e,t){const n=(0,l.Th)(e.column,(0,l.Io)(t),this._lines[e.lineNumber-1],0);return n?new a.Q(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn):null}words(e){const t=this._lines,n=this._wordenize.bind(this);let r=0,i="",s=0,o=[];return{*[Symbol.iterator](){for(;;)if(s<o.length){const e=i.substring(o[s].start,o[s].end);s+=1,yield e}else{if(!(r<t.length))break;i=t[r],o=n(i,e),s=0,r+=1}}}}getLineWords(e,t){const n=this._lines[e-1],r=this._wordenize(n,t),i=[];for(const e of r)i.push({word:n.substring(e.start,e.end),startColumn:e.start+1,endColumn:e.end+1});return i}_wordenize(e,t){const n=[];let r;for(t.lastIndex=0;(r=t.exec(e))&&0!==r[0].length;)n.push({start:r.index,end:r.index+r[0].length});return n}getValueInRange(e){if((e=this._validateRange(e)).startLineNumber===e.endLineNumber)return this._lines[e.startLineNumber-1].substring(e.startColumn-1,e.endColumn-1);const t=this._eol,n=e.startLineNumber-1,r=e.endLineNumber-1,i=[];i.push(this._lines[n].substring(e.startColumn-1));for(let e=n+1;e<r;e++)i.push(this._lines[e]);return i.push(this._lines[r].substring(0,e.endColumn-1)),i.join(t)}offsetAt(e){return e=this._validatePosition(e),this._ensureLineStarts(),this._lineStarts.getPrefixSum(e.lineNumber-2)+(e.column-1)}positionAt(e){e=Math.floor(e),e=Math.max(0,e),this._ensureLineStarts();const t=this._lineStarts.getIndexOf(e),n=this._lines[t.index].length;return{lineNumber:1+t.index,column:1+Math.min(t.remainder,n)}}_validateRange(e){const t=this._validatePosition({lineNumber:e.startLineNumber,column:e.startColumn}),n=this._validatePosition({lineNumber:e.endLineNumber,column:e.endColumn});return t.lineNumber!==e.startLineNumber||t.column!==e.startColumn||n.lineNumber!==e.endLineNumber||n.column!==e.endColumn?{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:n.lineNumber,endColumn:n.column}:e}_validatePosition(e){if(!o.y.isIPosition(e))throw new Error("bad position");let{lineNumber:t,column:n}=e,r=!1;if(t<1)t=1,n=1,r=!0;else if(t>this._lines.length)t=this._lines.length,n=this._lines[t-1].length+1,r=!0;else{const e=this._lines[t-1].length+1;n<1?(n=1,r=!0):n>e&&(n=e,r=!0)}return r?{lineNumber:t,column:n}:e}}},9223:(e,t,n)=>{"use strict";var r,i;n.d(t,{cO:()=>c,db:()=>h,fT:()=>o,qK:()=>u});class s{constructor(e,t){this.uri=e,this.value=t}}class o{static{this.defaultToKey=e=>e.toString()}constructor(e,t){if(this[r]="ResourceMap",e instanceof o)this.map=new Map(e.map),this.toKey=t??o.defaultToKey;else if(function(e){return Array.isArray(e)}(e)){this.map=new Map,this.toKey=t??o.defaultToKey;for(const[t,n]of e)this.set(t,n)}else this.map=new Map,this.toKey=e??o.defaultToKey}set(e,t){return this.map.set(this.toKey(e),new s(e,t)),this}get(e){return this.map.get(this.toKey(e))?.value}has(e){return this.map.has(this.toKey(e))}get size(){return this.map.size}clear(){this.map.clear()}delete(e){return this.map.delete(this.toKey(e))}forEach(e,t){void 0!==t&&(e=e.bind(t));for(const[t,n]of this.map)e(n.value,n.uri,this)}*values(){for(const e of this.map.values())yield e.value}*keys(){for(const e of this.map.values())yield e.uri}*entries(){for(const e of this.map.values())yield[e.uri,e.value]}*[(r=Symbol.toStringTag,Symbol.iterator)](){for(const[,e]of this.map)yield[e.uri,e.value]}}class a{constructor(){this[i]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(e){return this._map.has(e)}get(e,t=0){const n=this._map.get(e);if(n)return 0!==t&&this.touch(n,t),n.value}set(e,t,n=0){let r=this._map.get(e);if(r)r.value=t,0!==n&&this.touch(r,n);else{switch(r={key:e,value:t,next:void 0,previous:void 0},n){case 0:case 2:default:this.addItemLast(r);break;case 1:this.addItemFirst(r)}this._map.set(e,r),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const n=this._state;let r=this._head;for(;r;){if(t?e.bind(t)(r.value,r.key,this):e(r.value,r.key,this),this._state!==n)throw new Error("LinkedMap got modified during iteration.");r=r.next}}keys(){const e=this,t=this._state;let n=this._head;const r={[Symbol.iterator]:()=>r,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:n.key,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return r}values(){const e=this,t=this._state;let n=this._head;const r={[Symbol.iterator]:()=>r,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:n.value,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return r}entries(){const e=this,t=this._state;let n=this._head;const r={[Symbol.iterator]:()=>r,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:[n.key,n.value],done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return r}[(i=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._head,n=this.size;for(;t&&n>e;)this._map.delete(t.key),t=t.next,n--;this._head=t,this._size=n,t&&(t.previous=void 0),this._state++}trimNew(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._tail,n=this.size;for(;t&&n>e;)this._map.delete(t.key),t=t.previous,n--;this._tail=t,this._size=n,t&&(t.next=void 0),this._state++}addItemFirst(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,n=e.previous;if(!t||!n)throw new Error("Invalid list");t.previous=n,n.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(1===t||2===t)if(1===t){if(e===this._head)return;const t=e.next,n=e.previous;e===this._tail?(n.next=void 0,this._tail=n):(t.previous=n,n.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(2===t){if(e===this._tail)return;const t=e.next,n=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=n,n.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}toJSON(){const e=[];return this.forEach(((t,n)=>{e.push([n,t])})),e}fromJSON(e){this.clear();for(const[t,n]of e)this.set(t,n)}}class l extends a{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get(e,t=2){return super.get(e,t)}peek(e){return super.get(e,0)}set(e,t){return super.set(e,t,2),this}checkTrim(){this.size>this._limit&&this.trim(Math.round(this._limit*this._ratio))}}class u extends l{constructor(e,t=1){super(e,t)}trim(e){this.trimOld(e)}set(e,t){return super.set(e,t),this.checkTrim(),this}}class c{constructor(e){if(this._m1=new Map,this._m2=new Map,e)for(const[t,n]of e)this.set(t,n)}clear(){this._m1.clear(),this._m2.clear()}set(e,t){this._m1.set(e,t),this._m2.set(t,e)}get(e){return this._m1.get(e)}getKey(e){return this._m2.get(e)}delete(e){const t=this._m1.get(e);return void 0!==t&&(this._m1.delete(e),this._m2.delete(t),!0)}keys(){return this._m1.keys()}values(){return this._m1.values()}}class h{constructor(){this.map=new Map}add(e,t){let n=this.map.get(e);n||(n=new Set,this.map.set(e,n)),n.add(t)}delete(e,t){const n=this.map.get(e);n&&(n.delete(t),0===n.size&&this.map.delete(e))}forEach(e,t){const n=this.map.get(e);n&&n.forEach(t)}get(e){return this.map.get(e)||new Set}}},9398:(e,t,n)=>{"use strict";n.d(t,{W:()=>s});var r=n(3434),i=n(520);class s{static{this.zero=new s(0,0)}static betweenPositions(e,t){return e.lineNumber===t.lineNumber?new s(0,t.column-e.column):new s(t.lineNumber-e.lineNumber,t.column-1)}static ofRange(e){return s.betweenPositions(e.getStartPosition(),e.getEndPosition())}static ofText(e){let t=0,n=0;for(const r of e)"\n"===r?(t++,n=0):n++;return new s(t,n)}constructor(e,t){this.lineCount=e,this.columnCount=t}isGreaterThanOrEqualTo(e){return this.lineCount!==e.lineCount?this.lineCount>e.lineCount:this.columnCount>=e.columnCount}createRange(e){return 0===this.lineCount?new i.Q(e.lineNumber,e.column,e.lineNumber,e.column+this.columnCount):new i.Q(e.lineNumber,e.column,e.lineNumber+this.lineCount,this.columnCount+1)}addToPosition(e){return 0===this.lineCount?new r.y(e.lineNumber,e.column+this.columnCount):new r.y(e.lineNumber+this.lineCount,this.columnCount+1)}toString(){return`${this.lineCount},${this.columnCount}`}}},9399:(e,t,n)=>{"use strict";n.d(t,{L:()=>s});var r=n(3434),i=n(520);class s extends i.Q{constructor(e,t,n,r){super(e,t,n,r),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=n,this.positionColumn=r}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return s.selectionsEqual(this,e)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,t){return 0===this.getDirection()?new s(this.startLineNumber,this.startColumn,e,t):new s(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new r.y(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new r.y(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,t){return 0===this.getDirection()?new s(e,t,this.endLineNumber,this.endColumn):new s(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new s(e.lineNumber,e.column,t.lineNumber,t.column)}static fromRange(e,t){return 0===t?new s(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new s(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new s(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n++)if(!this.selectionsEqual(e[n],t[n]))return!1;return!0}static isISelection(e){return e&&"number"==typeof e.selectionStartLineNumber&&"number"==typeof e.selectionStartColumn&&"number"==typeof e.positionLineNumber&&"number"==typeof e.positionColumn}static createWithDirection(e,t,n,r,i){return 0===i?new s(e,t,n,r):new s(n,r,e,t)}}},9874:(e,t,n)=>{"use strict";n.d(t,{M:()=>a,S:()=>l});var r=n(5146),i=n(1729),s=n(520),o=n(404);class a{static fromRangeInclusive(e){return new a(e.startLineNumber,e.endLineNumber+1)}static joinMany(e){if(0===e.length)return[];let t=new l(e[0].slice());for(let n=1;n<e.length;n++)t=t.getUnion(new l(e[n].slice()));return t.ranges}static join(e){if(0===e.length)throw new r.D7("lineRanges cannot be empty");let t=e[0].startLineNumber,n=e[0].endLineNumberExclusive;for(let r=1;r<e.length;r++)t=Math.min(t,e[r].startLineNumber),n=Math.max(n,e[r].endLineNumberExclusive);return new a(t,n)}static ofLength(e,t){return new a(e,e+t)}static deserialize(e){return new a(e[0],e[1])}constructor(e,t){if(e>t)throw new r.D7(`startLineNumber ${e} cannot be after endLineNumberExclusive ${t}`);this.startLineNumber=e,this.endLineNumberExclusive=t}contains(e){return this.startLineNumber<=e&&e<this.endLineNumberExclusive}get isEmpty(){return this.startLineNumber===this.endLineNumberExclusive}delta(e){return new a(this.startLineNumber+e,this.endLineNumberExclusive+e)}deltaLength(e){return new a(this.startLineNumber,this.endLineNumberExclusive+e)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(e){return new a(Math.min(this.startLineNumber,e.startLineNumber),Math.max(this.endLineNumberExclusive,e.endLineNumberExclusive))}toString(){return`[${this.startLineNumber},${this.endLineNumberExclusive})`}intersect(e){const t=Math.max(this.startLineNumber,e.startLineNumber),n=Math.min(this.endLineNumberExclusive,e.endLineNumberExclusive);if(t<=n)return new a(t,n)}intersectsStrict(e){return this.startLineNumber<e.endLineNumberExclusive&&e.startLineNumber<this.endLineNumberExclusive}overlapOrTouch(e){return this.startLineNumber<=e.endLineNumberExclusive&&e.startLineNumber<=this.endLineNumberExclusive}equals(e){return this.startLineNumber===e.startLineNumber&&this.endLineNumberExclusive===e.endLineNumberExclusive}toInclusiveRange(){return this.isEmpty?null:new s.Q(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new s.Q(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(e){const t=[];for(let n=this.startLineNumber;n<this.endLineNumberExclusive;n++)t.push(e(n));return t}forEach(e){for(let t=this.startLineNumber;t<this.endLineNumberExclusive;t++)e(t)}serialize(){return[this.startLineNumber,this.endLineNumberExclusive]}includes(e){return this.startLineNumber<=e&&e<this.endLineNumberExclusive}toOffsetRange(){return new i.L(this.startLineNumber-1,this.endLineNumberExclusive-1)}}class l{constructor(e=[]){this._normalizedRanges=e}get ranges(){return this._normalizedRanges}addRange(e){if(0===e.length)return;const t=(0,o.hw)(this._normalizedRanges,(t=>t.endLineNumberExclusive>=e.startLineNumber)),n=(0,o.iM)(this._normalizedRanges,(t=>t.startLineNumber<=e.endLineNumberExclusive))+1;if(t===n)this._normalizedRanges.splice(t,0,e);else if(t===n-1){const n=this._normalizedRanges[t];this._normalizedRanges[t]=n.join(e)}else{const r=this._normalizedRanges[t].join(this._normalizedRanges[n-1]).join(e);this._normalizedRanges.splice(t,n-t,r)}}contains(e){const t=(0,o.lx)(this._normalizedRanges,(t=>t.startLineNumber<=e));return!!t&&t.endLineNumberExclusive>e}intersects(e){const t=(0,o.lx)(this._normalizedRanges,(t=>t.startLineNumber<e.endLineNumberExclusive));return!!t&&t.endLineNumberExclusive>e.startLineNumber}getUnion(e){if(0===this._normalizedRanges.length)return e;if(0===e._normalizedRanges.length)return this;const t=[];let n=0,r=0,i=null;for(;n<this._normalizedRanges.length||r<e._normalizedRanges.length;){let s=null;if(n<this._normalizedRanges.length&&r<e._normalizedRanges.length){const t=this._normalizedRanges[n],i=e._normalizedRanges[r];t.startLineNumber<i.startLineNumber?(s=t,n++):(s=i,r++)}else n<this._normalizedRanges.length?(s=this._normalizedRanges[n],n++):(s=e._normalizedRanges[r],r++);null===i?i=s:i.endLineNumberExclusive>=s.startLineNumber?i=new a(i.startLineNumber,Math.max(i.endLineNumberExclusive,s.endLineNumberExclusive)):(t.push(i),i=s)}return null!==i&&t.push(i),new l(t)}subtractFrom(e){const t=(0,o.hw)(this._normalizedRanges,(t=>t.endLineNumberExclusive>=e.startLineNumber)),n=(0,o.iM)(this._normalizedRanges,(t=>t.startLineNumber<=e.endLineNumberExclusive))+1;if(t===n)return new l([e]);const r=[];let i=e.startLineNumber;for(let e=t;e<n;e++){const t=this._normalizedRanges[e];t.startLineNumber>i&&r.push(new a(i,t.startLineNumber)),i=t.endLineNumberExclusive}return i<e.endLineNumberExclusive&&r.push(new a(i,e.endLineNumberExclusive)),new l(r)}toString(){return this._normalizedRanges.map((e=>e.toString())).join(", ")}getIntersection(e){const t=[];let n=0,r=0;for(;n<this._normalizedRanges.length&&r<e._normalizedRanges.length;){const i=this._normalizedRanges[n],s=e._normalizedRanges[r],o=i.intersect(s);o&&!o.isEmpty&&t.push(o),i.endLineNumberExclusive<s.endLineNumberExclusive?n++:r++}return new l(t)}getWithDelta(e){return new l(this._normalizedRanges.map((t=>t.delta(e))))}}}},r={};function i(e){var t=r[e];if(void 0!==t)return t.exports;var s=r[e]={exports:{}};return n[e](s,s.exports,i),s.exports}i.m=n,i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce(((t,n)=>(i.f[n](e,t),t)),[])),i.u=e=>e+".bundle.js",i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="@journeyapps-labs/reactor-mod-editor:",i.l=(n,r,s,o)=>{if(e[n])e[n].push(r);else{var a,l;if(void 0!==s)for(var u=document.getElementsByTagName("script"),c=0;c<u.length;c++){var h=u[c];if(h.getAttribute("src")==n||h.getAttribute("data-webpack")==t+s){a=h;break}}a||(l=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,i.nc&&a.setAttribute("nonce",i.nc),a.setAttribute("data-webpack",t+s),a.src=n),e[n]=[r];var f=(t,r)=>{a.onerror=a.onload=null,clearTimeout(d);var i=e[n];if(delete e[n],a.parentNode&&a.parentNode.removeChild(a),i&&i.forEach((e=>e(r))),t)return t(r)},d=setTimeout(f.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=f.bind(null,a.onerror),a.onload=f.bind(null,a.onload),l&&document.head.appendChild(a)}},i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;i.g.importScripts&&(e=i.g.location+"");var t=i.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),i.p=e})(),(()=>{var e={10:0,548:0};i.f.j=(t,n)=>{var r=i.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var s=new Promise(((n,i)=>r=e[t]=[n,i]));n.push(r[2]=s);var o=i.p+i.u(t),a=new Error;i.l(o,(n=>{if(i.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var s=n&&("load"===n.type?"missing":n.type),o=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+s+": "+o+")",a.name="ChunkLoadError",a.type=s,a.request=o,r[1](a)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,s,[o,a,l]=n,u=0;if(o.some((t=>0!==e[t]))){for(r in a)i.o(a,r)&&(i.m[r]=a[r]);l&&l(i)}for(t&&t(n);u<o.length;u++)s=o[u],i.o(e,s)&&e[s]&&e[s][0](),e[s]=0},n=self.webpackChunk_journeyapps_labs_reactor_mod_editor=self.webpackChunk_journeyapps_labs_reactor_mod_editor||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),(()=>{"use strict";var e={};i.r(e),i.d(e,{__parsePrettierYamlConfig:()=>xa,default:()=>Fa,languages:()=>bo,options:()=>Do,parsers:()=>wo,printers:()=>La});var t,n,r=i(7436);class s{constructor(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){const t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(e,t){for(const t of e)if(s.isIncremental(t)){const e=u(t.range),n=this.offsetAt(e.start),r=this.offsetAt(e.end);this._content=this._content.substring(0,n)+t.text+this._content.substring(r,this._content.length);const i=Math.max(e.start.line,0),s=Math.max(e.end.line,0);let o=this._lineOffsets;const l=a(t.text,!1,n);if(s-i===l.length)for(let e=0,t=l.length;e<t;e++)o[e+i+1]=l[e];else l.length<1e4?o.splice(i+1,s-i,...l):this._lineOffsets=o=o.slice(0,i+1).concat(l,o.slice(s+1));const c=t.text.length-(r-n);if(0!==c)for(let e=i+1+l.length,t=o.length;e<t;e++)o[e]=o[e]+c}else{if(!s.isFull(t))throw new Error("Unknown change event received");this._content=t.text,this._lineOffsets=void 0}this._version=t}getLineOffsets(){return void 0===this._lineOffsets&&(this._lineOffsets=a(this._content,!0)),this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);const t=this.getLineOffsets();let n=0,r=t.length;if(0===r)return{line:0,character:e};for(;n<r;){const i=Math.floor((n+r)/2);t[i]>e?r=i:n=i+1}const i=n-1;return{line:i,character:(e=this.ensureBeforeEOL(e,t[i]))-t[i]}}offsetAt(e){const t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;const n=t[e.line];if(e.character<=0)return n;const r=e.line+1<t.length?t[e.line+1]:this._content.length,i=Math.min(n+e.character,r);return this.ensureBeforeEOL(i,n)}ensureBeforeEOL(e,t){for(;e>t&&l(this._content.charCodeAt(e-1));)e--;return e}get lineCount(){return this.getLineOffsets().length}static isIncremental(e){const t=e;return null!=t&&"string"==typeof t.text&&void 0!==t.range&&(void 0===t.rangeLength||"number"==typeof t.rangeLength)}static isFull(e){const t=e;return null!=t&&"string"==typeof t.text&&void 0===t.range&&void 0===t.rangeLength}}function o(e,t){if(e.length<=1)return e;const n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);o(r,t),o(i,t);let s=0,a=0,l=0;for(;s<r.length&&a<i.length;){const n=t(r[s],i[a]);e[l++]=n<=0?r[s++]:i[a++]}for(;s<r.length;)e[l++]=r[s++];for(;a<i.length;)e[l++]=i[a++];return e}function a(e,t,n=0){const r=t?[n]:[];for(let t=0;t<e.length;t++){const i=e.charCodeAt(t);l(i)&&(13===i&&t+1<e.length&&10===e.charCodeAt(t+1)&&t++,r.push(n+t+1))}return r}function l(e){return 13===e||10===e}function u(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 c(e){const t=u(e.range);return t!==e.range?{newText:e.newText,range:t}:e}function h(e){return 32===e||9===e}function f(e){return 10===e||13===e}function d(e){return e>=48&&e<=57}!function(e){e.create=function(e,t,n,r){return new s(e,t,n,r)},e.update=function(e,t,n){if(e instanceof s)return e.update(t,n),e;throw new Error("TextDocument.update: document must be created by TextDocument.create")},e.applyEdits=function(e,t){const n=e.getText(),r=o(t.map(c),((e,t)=>{const n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n}));let i=0;const s=[];for(const t of r){const r=e.offsetAt(t.range.start);if(r<i)throw new Error("Overlapping edit");r>i&&s.push(n.substring(i,r)),t.newText.length&&s.push(t.newText),i=e.offsetAt(t.range.end)}return s.push(n.substr(i)),s.join("")}}(t||(t={})),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"}(n||(n={})),new Array(20).fill(0).map(((e,t)=>" ".repeat(t)));const m=200;var p,g,y;function b(e,t,n=p.DEFAULT){const r=function(e,t=!1){const n=e.length;let r=0,i="",s=0,o=16,a=0,l=0,u=0,c=0,m=0;function p(t,n){let i=0,s=0;for(;i<t||!n;){let t=e.charCodeAt(r);if(t>=48&&t<=57)s=16*s+t-48;else if(t>=65&&t<=70)s=16*s+t-65+10;else{if(!(t>=97&&t<=102))break;s=16*s+t-97+10}r++,i++}return i<t&&(s=-1),s}function g(){if(i="",m=0,s=r,l=a,c=u,r>=n)return s=n,o=17;let t=e.charCodeAt(r);if(h(t)){do{r++,i+=String.fromCharCode(t),t=e.charCodeAt(r)}while(h(t));return o=15}if(f(t))return r++,i+=String.fromCharCode(t),13===t&&10===e.charCodeAt(r)&&(r++,i+="\n"),a++,u=r,o=14;switch(t){case 123:return r++,o=1;case 125:return r++,o=2;case 91:return r++,o=3;case 93:return r++,o=4;case 58:return r++,o=6;case 44:return r++,o=5;case 34:return r++,i=function(){let t="",i=r;for(;;){if(r>=n){t+=e.substring(i,r),m=2;break}const s=e.charCodeAt(r);if(34===s){t+=e.substring(i,r),r++;break}if(92!==s){if(s>=0&&s<=31){if(f(s)){t+=e.substring(i,r),m=2;break}m=6}r++}else{if(t+=e.substring(i,r),r++,r>=n){m=2;break}switch(e.charCodeAt(r++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:const e=p(4,!0);e>=0?t+=String.fromCharCode(e):m=4;break;default:m=5}i=r}}return t}(),o=10;case 47:const l=r-1;if(47===e.charCodeAt(r+1)){for(r+=2;r<n&&!f(e.charCodeAt(r));)r++;return i=e.substring(l,r),o=12}if(42===e.charCodeAt(r+1)){r+=2;const t=n-1;let s=!1;for(;r<t;){const t=e.charCodeAt(r);if(42===t&&47===e.charCodeAt(r+1)){r+=2,s=!0;break}r++,f(t)&&(13===t&&10===e.charCodeAt(r)&&r++,a++,u=r)}return s||(r++,m=1),i=e.substring(l,r),o=13}return i+=String.fromCharCode(t),r++,o=16;case 45:if(i+=String.fromCharCode(t),r++,r===n||!d(e.charCodeAt(r)))return o=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return i+=function(){let t=r;if(48===e.charCodeAt(r))r++;else for(r++;r<e.length&&d(e.charCodeAt(r));)r++;if(r<e.length&&46===e.charCodeAt(r)){if(r++,!(r<e.length&&d(e.charCodeAt(r))))return m=3,e.substring(t,r);for(r++;r<e.length&&d(e.charCodeAt(r));)r++}let n=r;if(r<e.length&&(69===e.charCodeAt(r)||101===e.charCodeAt(r)))if(r++,(r<e.length&&43===e.charCodeAt(r)||45===e.charCodeAt(r))&&r++,r<e.length&&d(e.charCodeAt(r))){for(r++;r<e.length&&d(e.charCodeAt(r));)r++;n=r}else m=3;return e.substring(t,n)}(),o=11;default:for(;r<n&&y(t);)r++,t=e.charCodeAt(r);if(s!==r){switch(i=e.substring(s,r),i){case"true":return o=8;case"false":return o=9;case"null":return o=7}return o=16}return i+=String.fromCharCode(t),r++,o=16}}function y(e){if(h(e)||f(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}return{setPosition:function(e){r=e,i="",s=0,o=16,m=0},getPosition:()=>r,scan:t?function(){let e;do{e=g()}while(e>=12&&e<=15);return e}:g,getToken:()=>o,getTokenValue:()=>i,getTokenOffset:()=>s,getTokenLength:()=>r-s,getTokenStartLine:()=>l,getTokenStartCharacter:()=>s-c,getTokenError:()=>m}}(e,!1),i=[];let s=0;function o(e){return e?t=>0===s&&e(t,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function a(e){return e?t=>0===s&&e(t,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),(()=>i.slice())):()=>!0}function l(e){return e?()=>{s>0?s++:!1===e(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),(()=>i.slice()))&&(s=1)}:()=>!0}function u(e){return e?()=>{s>0&&s--,0===s&&e(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter())}:()=>!0}const c=l(t.onObjectBegin),m=a(t.onObjectProperty),g=u(t.onObjectEnd),y=l(t.onArrayBegin),b=u(t.onArrayEnd),v=a(t.onLiteralValue),D=o(t.onSeparator),w=(E=t.onComment)?()=>0===s&&E(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0,C=o(t.onError);var E;const S=n&&n.disallowComments,A=n&&n.allowTrailingComma;function _(){for(;;){const e=r.scan();switch(r.getTokenError()){case 4:k(14);break;case 5:k(15);break;case 3:k(13);break;case 1:S||k(11);break;case 2:k(12);break;case 6:k(16)}switch(e){case 12:case 13:S?k(10):w();break;case 16:k(1);break;case 15:case 14:break;default:return e}}}function k(e,t=[],n=[]){if(C(e),t.length+n.length>0){let e=r.getToken();for(;17!==e;){if(-1!==t.indexOf(e)){_();break}if(-1!==n.indexOf(e))break;e=_()}}}function N(e){const t=r.getTokenValue();return e?v(t):(m(t),i.push(t)),_(),!0}return _(),17===r.getToken()?!!n.allowEmptyContent||(k(4,[],[]),!1):function e(){switch(r.getToken()){case 3:return function(){y(),_();let t=!0,n=!1;for(;4!==r.getToken()&&17!==r.getToken();){if(5===r.getToken()){if(n||k(4,[],[]),D(","),_(),4===r.getToken()&&A)break}else n&&k(6,[],[]);t?(i.push(0),t=!1):i[i.length-1]++,e()||k(4,[],[4,5]),n=!0}return b(),t||i.pop(),4!==r.getToken()?k(8,[4],[]):_(),!0}();case 1:return function(){c(),_();let t=!1;for(;2!==r.getToken()&&17!==r.getToken();){if(5===r.getToken()){if(t||k(4,[],[]),D(","),_(),2===r.getToken()&&A)break}else t&&k(6,[],[]);(10!==r.getToken()?(k(3,[],[2,5]),0):(N(!1),6===r.getToken()?(D(":"),_(),e()||k(4,[],[2,5])):k(5,[],[2,5]),i.pop(),1))||k(4,[],[2,5]),t=!0}return g(),2!==r.getToken()?k(7,[2],[]):_(),!0}();case 10:return N(!0);default:return function(){switch(r.getToken()){case 11:const e=r.getTokenValue();let t=Number(e);isNaN(t)&&(k(2),t=0),v(t);break;case 7:v(null);break;case 8:v(!0);break;case 9:v(!1);break;default:return!1}return _(),!0}()}}()?(17!==r.getToken()&&k(9,[],[]),!0):(k(4,[],[]),!1)}new Array(m).fill(0).map(((e,t)=>"\n"+" ".repeat(t))),new Array(m).fill(0).map(((e,t)=>"\r"+" ".repeat(t))),new Array(m).fill(0).map(((e,t)=>"\r\n"+" ".repeat(t))),new Array(m).fill(0).map(((e,t)=>"\n"+"\t".repeat(t))),new Array(m).fill(0).map(((e,t)=>"\r"+"\t".repeat(t))),new Array(m).fill(0).map(((e,t)=>"\r\n"+"\t".repeat(t))),function(e){e.DEFAULT={allowTrailingComma:!1}}(p||(p={})),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"}(g||(g={})),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"}(y||(y={}));const v=function e(t,n,r=!1){if(function(e,t,n=!1){return t>=e.offset&&t<e.offset+e.length||n&&t===e.offset+e.length}(t,n,r)){const i=t.children;if(Array.isArray(i))for(let t=0;t<i.length&&i[t].offset<=n;t++){const s=e(i[t],n,r);if(s)return s}return t}},D=function e(t){switch(t.type){case"array":return t.children.map(e);case"object":const n=Object.create(null);for(let r of t.children){const t=r.children[1];t&&(n[r.children[0].value]=e(t))}return n;case"null":case"string":case"number":case"boolean":return t.value;default:return}};var w,C;!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"}(w||(w={})),(()=>{var e={470:e=>{function t(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,r="",i=0,s=-1,o=0,a=0;a<=e.length;++a){if(a<e.length)n=e.charCodeAt(a);else{if(47===n)break;n=47}if(47===n){if(s===a-1||1===o);else if(s!==a-1&&2===o){if(r.length<2||2!==i||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2))if(r.length>2){var l=r.lastIndexOf("/");if(l!==r.length-1){-1===l?(r="",i=0):i=(r=r.slice(0,l)).length-1-r.lastIndexOf("/"),s=a,o=0;continue}}else if(2===r.length||1===r.length){r="",i=0,s=a,o=0;continue}t&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+e.slice(s+1,a):r=e.slice(s+1,a),i=a-s-1;s=a,o=0}else 46===n&&-1!==o?++o:o=-1}return r}var r={resolve:function(){for(var e,r="",i=!1,s=arguments.length-1;s>=-1&&!i;s--){var o;s>=0?o=arguments[s]:(void 0===e&&(e=process.cwd()),o=e),t(o),0!==o.length&&(r=o+"/"+r,i=47===o.charCodeAt(0))}return r=n(r,!i),i?r.length>0?"/"+r:"/":r.length>0?r:"."},normalize:function(e){if(t(e),0===e.length)return".";var r=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return 0!==(e=n(e,!r)).length||r||(e="."),e.length>0&&i&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,n=0;n<arguments.length;++n){var i=arguments[n];t(i),i.length>0&&(void 0===e?e=i:e+="/"+i)}return void 0===e?".":r.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n)return"";if((e=r.resolve(e))===(n=r.resolve(n)))return"";for(var i=1;i<e.length&&47===e.charCodeAt(i);++i);for(var s=e.length,o=s-i,a=1;a<n.length&&47===n.charCodeAt(a);++a);for(var l=n.length-a,u=o<l?o:l,c=-1,h=0;h<=u;++h){if(h===u){if(l>u){if(47===n.charCodeAt(a+h))return n.slice(a+h+1);if(0===h)return n.slice(a+h)}else o>u&&(47===e.charCodeAt(i+h)?c=h:0===h&&(c=0));break}var f=e.charCodeAt(i+h);if(f!==n.charCodeAt(a+h))break;47===f&&(c=h)}var d="";for(h=i+c+1;h<=s;++h)h!==s&&47!==e.charCodeAt(h)||(0===d.length?d+="..":d+="/..");return d.length>0?d+n.slice(a+c):(a+=c,47===n.charCodeAt(a)&&++a,n.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),r=47===n,i=-1,s=!0,o=e.length-1;o>=1;--o)if(47===(n=e.charCodeAt(o))){if(!s){i=o;break}}else s=!1;return-1===i?r?"/":".":r&&1===i?"//":e.slice(0,i)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');t(e);var r,i=0,s=-1,o=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var a=n.length-1,l=-1;for(r=e.length-1;r>=0;--r){var u=e.charCodeAt(r);if(47===u){if(!o){i=r+1;break}}else-1===l&&(o=!1,l=r+1),a>=0&&(u===n.charCodeAt(a)?-1==--a&&(s=r):(a=-1,s=l))}return i===s?s=l:-1===s&&(s=e.length),e.slice(i,s)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!o){i=r+1;break}}else-1===s&&(o=!1,s=r+1);return-1===s?"":e.slice(i,s)},extname:function(e){t(e);for(var n=-1,r=0,i=-1,s=!0,o=0,a=e.length-1;a>=0;--a){var l=e.charCodeAt(a);if(47!==l)-1===i&&(s=!1,i=a+1),46===l?-1===n?n=a:1!==o&&(o=1):-1!==n&&(o=-1);else if(!s){r=a+1;break}}return-1===n||-1===i||0===o||1===o&&n===i-1&&n===r+1?"":e.slice(n,i)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+"/"+r:r}(0,e)},parse:function(e){t(e);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;var r,i=e.charCodeAt(0),s=47===i;s?(n.root="/",r=1):r=0;for(var o=-1,a=0,l=-1,u=!0,c=e.length-1,h=0;c>=r;--c)if(47!==(i=e.charCodeAt(c)))-1===l&&(u=!1,l=c+1),46===i?-1===o?o=c:1!==h&&(h=1):-1!==o&&(h=-1);else if(!u){a=c+1;break}return-1===o||-1===l||0===h||1===h&&o===l-1&&o===a+1?-1!==l&&(n.base=n.name=0===a&&s?e.slice(1,l):e.slice(a,l)):(0===a&&s?(n.name=e.slice(1,o),n.base=e.slice(1,l)):(n.name=e.slice(a,o),n.base=e.slice(a,l)),n.ext=e.slice(o,l)),a>0?n.dir=e.slice(0,a-1):s&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};r.posix=r,e.exports=r}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var s=t[r]={exports:{}};return e[r](s,s.exports,n),s.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};(()=>{let e;if(n.r(r),n.d(r,{URI:()=>c,Utils:()=>S}),"object"==typeof process)e="win32"===process.platform;else if("object"==typeof navigator){let t=navigator.userAgent;e=t.indexOf("Windows")>=0}const t=/^\w[\w\d+.-]*$/,i=/^\//,s=/^\/\//;function o(e,n){if(!e.scheme&&n)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!t.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!i.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(s.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 ("//")')}const a="",l="/",u=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class c{static isUri(e){return e instanceof c||!!e&&"string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"string"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString}scheme;authority;path;query;fragment;constructor(e,t,n,r,i,s=!1){"object"==typeof e?(this.scheme=e.scheme||a,this.authority=e.authority||a,this.path=e.path||a,this.query=e.query||a,this.fragment=e.fragment||a):(this.scheme=function(e,t){return e||t?e:"file"}(e,s),this.authority=t||a,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==l&&(t=l+t):t=l}return t}(this.scheme,n||a),this.query=r||a,this.fragment=i||a,o(this,s))}get fsPath(){return g(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:r,query:i,fragment:s}=e;return void 0===t?t=this.scheme:null===t&&(t=a),void 0===n?n=this.authority:null===n&&(n=a),void 0===r?r=this.path:null===r&&(r=a),void 0===i?i=this.query:null===i&&(i=a),void 0===s?s=this.fragment:null===s&&(s=a),t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&s===this.fragment?this:new f(t,n,r,i,s)}static parse(e,t=!1){const n=u.exec(e);return n?new f(n[2]||a,D(n[4]||a),D(n[5]||a),D(n[7]||a),D(n[9]||a),t):new f(a,a,a,a,a)}static file(t){let n=a;if(e&&(t=t.replace(/\\/g,l)),t[0]===l&&t[1]===l){const e=t.indexOf(l,2);-1===e?(n=t.substring(2),t=l):(n=t.substring(2,e),t=t.substring(e)||l)}return new f("file",n,t,a,a)}static from(e){const t=new f(e.scheme,e.authority,e.path,e.query,e.fragment);return o(t,!0),t}toString(e=!1){return y(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof c)return e;{const t=new f(e);return t._formatted=e.external,t._fsPath=e._sep===h?e.fsPath:null,t}}return e}}const h=e?1:void 0;class f extends c{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=g(this,!1)),this._fsPath}toString(e=!1){return e?y(this,!0):(this._formatted||(this._formatted=y(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=h),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}const d={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 m(e,t,n){let r,i=-1;for(let s=0;s<e.length;s++){const o=e.charCodeAt(s);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o||n&&91===o||n&&93===o||n&&58===o)-1!==i&&(r+=encodeURIComponent(e.substring(i,s)),i=-1),void 0!==r&&(r+=e.charAt(s));else{void 0===r&&(r=e.substr(0,s));const t=d[o];void 0!==t?(-1!==i&&(r+=encodeURIComponent(e.substring(i,s)),i=-1),r+=t):-1===i&&(i=s)}}return-1!==i&&(r+=encodeURIComponent(e.substring(i))),void 0!==r?r:e}function p(e){let t;for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);35===r||63===r?(void 0===t&&(t=e.substr(0,n)),t+=d[r]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function g(t,n){let r;return r=t.authority&&t.path.length>1&&"file"===t.scheme?`//${t.authority}${t.path}`:47===t.path.charCodeAt(0)&&(t.path.charCodeAt(1)>=65&&t.path.charCodeAt(1)<=90||t.path.charCodeAt(1)>=97&&t.path.charCodeAt(1)<=122)&&58===t.path.charCodeAt(2)?n?t.path.substr(1):t.path[1].toLowerCase()+t.path.substr(2):t.path,e&&(r=r.replace(/\//g,"\\")),r}function y(e,t){const n=t?p:m;let r="",{scheme:i,authority:s,path:o,query:a,fragment:u}=e;if(i&&(r+=i,r+=":"),(s||"file"===i)&&(r+=l,r+=l),s){let e=s.indexOf("@");if(-1!==e){const t=s.substr(0,e);s=s.substr(e+1),e=t.lastIndexOf(":"),-1===e?r+=n(t,!1,!1):(r+=n(t.substr(0,e),!1,!1),r+=":",r+=n(t.substr(e+1),!1,!0)),r+="@"}s=s.toLowerCase(),e=s.lastIndexOf(":"),-1===e?r+=n(s,!1,!0):(r+=n(s.substr(0,e),!1,!0),r+=s.substr(e))}if(o){if(o.length>=3&&47===o.charCodeAt(0)&&58===o.charCodeAt(2)){const e=o.charCodeAt(1);e>=65&&e<=90&&(o=`/${String.fromCharCode(e+32)}:${o.substr(3)}`)}else if(o.length>=2&&58===o.charCodeAt(1)){const e=o.charCodeAt(0);e>=65&&e<=90&&(o=`${String.fromCharCode(e+32)}:${o.substr(2)}`)}r+=n(o,!0,!1)}return a&&(r+="?",r+=n(a,!1,!1)),u&&(r+="#",r+=t?u:m(u,!1,!1)),r}function b(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+b(e.substr(3)):e}}const v=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function D(e){return e.match(v)?e.replace(v,(e=>b(e))):e}var w=n(470);const C=w.posix||w,E="/";var S;!function(e){e.joinPath=function(e,...t){return e.with({path:C.join(e.path,...t)})},e.resolvePath=function(e,...t){let n=e.path,r=!1;n[0]!==E&&(n=E+n,r=!0);let i=C.resolve(n,...t);return r&&i[0]===E&&!e.authority&&(i=i.substring(1)),e.with({path:i})},e.dirname=function(e){if(0===e.path.length||e.path===E)return e;let t=C.dirname(e.path);return 1===t.length&&46===t.charCodeAt(0)&&(t=""),e.with({path:t})},e.basename=function(e){return C.basename(e.path)},e.extname=function(e){return C.extname(e.path)}}(S||(S={}))})(),C=r})();const{URI:E,Utils:S}=C;var A,_,k,N,L,x,F,O,M,T,I,R,P,B,$,j,V,W,q,K,U,H,z,Y,G,Q,J,X,Z,ee,te,ne,re,ie,se,oe,ae,le,ue,ce,he,fe,de,me,pe,ge,ye,be,ve,De,we,Ce,Ee,Se,Ae,_e,ke,Ne,Le,xe,Fe,Oe,Me,Te,Ie,Re,Pe,Be,$e,je,Ve,We,qe,Ke,Ue,He,ze,Ye,Ge,Qe,Je,Xe;!function(e){e.is=function(e){return"string"==typeof e}}(A||(A={})),(_||(_={})).is=function(e){return"string"==typeof e},function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647,e.is=function(t){return"number"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}}(k||(k={})),function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647,e.is=function(t){return"number"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}}(N||(N={})),(Qe=L||(L={})).create=function(e,t){return e===Number.MAX_VALUE&&(e=N.MAX_VALUE),t===Number.MAX_VALUE&&(t=N.MAX_VALUE),{line:e,character:t}},Qe.is=function(e){let t=e;return Xe.objectLiteral(t)&&Xe.uinteger(t.line)&&Xe.uinteger(t.character)},(Ge=x||(x={})).create=function(e,t,n,r){if(Xe.uinteger(e)&&Xe.uinteger(t)&&Xe.uinteger(n)&&Xe.uinteger(r))return{start:L.create(e,t),end:L.create(n,r)};if(L.is(e)&&L.is(t))return{start:e,end:t};throw new Error(`Range#create called with invalid arguments[${e}, ${t}, ${n}, ${r}]`)},Ge.is=function(e){let t=e;return Xe.objectLiteral(t)&&L.is(t.start)&&L.is(t.end)},function(e){e.create=function(e,t){return{uri:e,range:t}},e.is=function(e){let t=e;return Xe.objectLiteral(t)&&x.is(t.range)&&(Xe.string(t.uri)||Xe.undefined(t.uri))}}(F||(F={})),function(e){e.create=function(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}},e.is=function(e){let t=e;return Xe.objectLiteral(t)&&x.is(t.targetRange)&&Xe.string(t.targetUri)&&x.is(t.targetSelectionRange)&&(x.is(t.originSelectionRange)||Xe.undefined(t.originSelectionRange))}}(O||(O={})),function(e){e.create=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},e.is=function(e){const t=e;return Xe.objectLiteral(t)&&Xe.numberRange(t.red,0,1)&&Xe.numberRange(t.green,0,1)&&Xe.numberRange(t.blue,0,1)&&Xe.numberRange(t.alpha,0,1)}}(M||(M={})),function(e){e.create=function(e,t){return{range:e,color:t}},e.is=function(e){const t=e;return Xe.objectLiteral(t)&&x.is(t.range)&&M.is(t.color)}}(T||(T={})),function(e){e.create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},e.is=function(e){const t=e;return Xe.objectLiteral(t)&&Xe.string(t.label)&&(Xe.undefined(t.textEdit)||K.is(t))&&(Xe.undefined(t.additionalTextEdits)||Xe.typedArray(t.additionalTextEdits,K.is))}}(I||(I={})),function(e){e.Comment="comment",e.Imports="imports",e.Region="region"}(R||(R={})),function(e){e.create=function(e,t,n,r,i,s){const o={startLine:e,endLine:t};return Xe.defined(n)&&(o.startCharacter=n),Xe.defined(r)&&(o.endCharacter=r),Xe.defined(i)&&(o.kind=i),Xe.defined(s)&&(o.collapsedText=s),o},e.is=function(e){const t=e;return Xe.objectLiteral(t)&&Xe.uinteger(t.startLine)&&Xe.uinteger(t.startLine)&&(Xe.undefined(t.startCharacter)||Xe.uinteger(t.startCharacter))&&(Xe.undefined(t.endCharacter)||Xe.uinteger(t.endCharacter))&&(Xe.undefined(t.kind)||Xe.string(t.kind))}}(P||(P={})),function(e){e.create=function(e,t){return{location:e,message:t}},e.is=function(e){let t=e;return Xe.defined(t)&&F.is(t.location)&&Xe.string(t.message)}}(B||(B={})),function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4}($||($={})),function(e){e.Unnecessary=1,e.Deprecated=2}(j||(j={})),function(e){e.is=function(e){const t=e;return Xe.objectLiteral(t)&&Xe.string(t.href)}}(V||(V={})),function(e){e.create=function(e,t,n,r,i,s){let o={range:e,message:t};return Xe.defined(n)&&(o.severity=n),Xe.defined(r)&&(o.code=r),Xe.defined(i)&&(o.source=i),Xe.defined(s)&&(o.relatedInformation=s),o},e.is=function(e){var t;let n=e;return Xe.defined(n)&&x.is(n.range)&&Xe.string(n.message)&&(Xe.number(n.severity)||Xe.undefined(n.severity))&&(Xe.integer(n.code)||Xe.string(n.code)||Xe.undefined(n.code))&&(Xe.undefined(n.codeDescription)||Xe.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(Xe.string(n.source)||Xe.undefined(n.source))&&(Xe.undefined(n.relatedInformation)||Xe.typedArray(n.relatedInformation,B.is))}}(W||(W={})),function(e){e.create=function(e,t,...n){let r={title:e,command:t};return Xe.defined(n)&&n.length>0&&(r.arguments=n),r},e.is=function(e){let t=e;return Xe.defined(t)&&Xe.string(t.title)&&Xe.string(t.command)}}(q||(q={})),function(e){e.replace=function(e,t){return{range:e,newText:t}},e.insert=function(e,t){return{range:{start:e,end:e},newText:t}},e.del=function(e){return{range:e,newText:""}},e.is=function(e){const t=e;return Xe.objectLiteral(t)&&Xe.string(t.newText)&&x.is(t.range)}}(K||(K={})),function(e){e.create=function(e,t,n){const r={label:e};return void 0!==t&&(r.needsConfirmation=t),void 0!==n&&(r.description=n),r},e.is=function(e){const t=e;return Xe.objectLiteral(t)&&Xe.string(t.label)&&(Xe.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(Xe.string(t.description)||void 0===t.description)}}(U||(U={})),function(e){e.is=function(e){const t=e;return Xe.string(t)}}(H||(H={})),function(e){e.replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},e.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},e.del=function(e,t){return{range:e,newText:"",annotationId:t}},e.is=function(e){const t=e;return K.is(t)&&(U.is(t.annotationId)||H.is(t.annotationId))}}(z||(z={})),function(e){e.create=function(e,t){return{textDocument:e,edits:t}},e.is=function(e){let t=e;return Xe.defined(t)&&te.is(t.textDocument)&&Array.isArray(t.edits)}}(Y||(Y={})),function(e){e.create=function(e,t,n){let r={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},e.is=function(e){let t=e;return t&&"create"===t.kind&&Xe.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||Xe.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Xe.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||H.is(t.annotationId))}}(G||(G={})),function(e){e.create=function(e,t,n,r){let i={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(i.options=n),void 0!==r&&(i.annotationId=r),i},e.is=function(e){let t=e;return t&&"rename"===t.kind&&Xe.string(t.oldUri)&&Xe.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||Xe.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Xe.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||H.is(t.annotationId))}}(Q||(Q={})),function(e){e.create=function(e,t,n){let r={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},e.is=function(e){let t=e;return t&&"delete"===t.kind&&Xe.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||Xe.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||Xe.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||H.is(t.annotationId))}}(J||(J={})),function(e){e.is=function(e){let t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((e=>Xe.string(e.kind)?G.is(e)||Q.is(e)||J.is(e):Y.is(e))))}}(X||(X={})),function(e){e.create=function(e){return{uri:e}},e.is=function(e){let t=e;return Xe.defined(t)&&Xe.string(t.uri)}}(Z||(Z={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){let t=e;return Xe.defined(t)&&Xe.string(t.uri)&&Xe.integer(t.version)}}(ee||(ee={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){let t=e;return Xe.defined(t)&&Xe.string(t.uri)&&(null===t.version||Xe.integer(t.version))}}(te||(te={})),function(e){e.create=function(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}},e.is=function(e){let t=e;return Xe.defined(t)&&Xe.string(t.uri)&&Xe.string(t.languageId)&&Xe.integer(t.version)&&Xe.string(t.text)}}(ne||(ne={})),function(e){e.PlainText="plaintext",e.Markdown="markdown",e.is=function(t){const n=t;return n===e.PlainText||n===e.Markdown}}(re||(re={})),function(e){e.is=function(e){const t=e;return Xe.objectLiteral(e)&&re.is(t.kind)&&Xe.string(t.value)}}(ie||(ie={})),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}(se||(se={})),function(e){e.PlainText=1,e.Snippet=2}(oe||(oe={})),function(e){e.Deprecated=1}(ae||(ae={})),function(e){e.create=function(e,t,n){return{newText:e,insert:t,replace:n}},e.is=function(e){const t=e;return t&&Xe.string(t.newText)&&x.is(t.insert)&&x.is(t.replace)}}(le||(le={})),function(e){e.asIs=1,e.adjustIndentation=2}(ue||(ue={})),function(e){e.is=function(e){const t=e;return t&&(Xe.string(t.detail)||void 0===t.detail)&&(Xe.string(t.description)||void 0===t.description)}}(ce||(ce={})),function(e){e.create=function(e){return{label:e}}}(he||(he={})),function(e){e.create=function(e,t){return{items:e||[],isIncomplete:!!t}}}(fe||(fe={})),function(e){e.fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},e.is=function(e){const t=e;return Xe.string(t)||Xe.objectLiteral(t)&&Xe.string(t.language)&&Xe.string(t.value)}}(de||(de={})),function(e){e.is=function(e){let t=e;return!!t&&Xe.objectLiteral(t)&&(ie.is(t.contents)||de.is(t.contents)||Xe.typedArray(t.contents,de.is))&&(void 0===e.range||x.is(e.range))}}(me||(me={})),function(e){e.create=function(e,t){return t?{label:e,documentation:t}:{label:e}}}(pe||(pe={})),function(e){e.create=function(e,t,...n){let r={label:e};return Xe.defined(t)&&(r.documentation=t),Xe.defined(n)?r.parameters=n:r.parameters=[],r}}(ge||(ge={})),function(e){e.Text=1,e.Read=2,e.Write=3}(ye||(ye={})),function(e){e.create=function(e,t){let n={range:e};return Xe.number(t)&&(n.kind=t),n}}(be||(be={})),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}(ve||(ve={})),function(e){e.Deprecated=1}(De||(De={})),function(e){e.create=function(e,t,n,r,i){let s={name:e,kind:t,location:{uri:r,range:n}};return i&&(s.containerName=i),s}}(we||(we={})),function(e){e.create=function(e,t,n,r){return void 0!==r?{name:e,kind:t,location:{uri:n,range:r}}:{name:e,kind:t,location:{uri:n}}}}(Ce||(Ce={})),function(e){e.create=function(e,t,n,r,i,s){let o={name:e,detail:t,kind:n,range:r,selectionRange:i};return void 0!==s&&(o.children=s),o},e.is=function(e){let t=e;return t&&Xe.string(t.name)&&Xe.number(t.kind)&&x.is(t.range)&&x.is(t.selectionRange)&&(void 0===t.detail||Xe.string(t.detail))&&(void 0===t.deprecated||Xe.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))}}(Ee||(Ee={})),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"}(Se||(Se={})),function(e){e.Invoked=1,e.Automatic=2}(Ae||(Ae={})),function(e){e.create=function(e,t,n){let r={diagnostics:e};return null!=t&&(r.only=t),null!=n&&(r.triggerKind=n),r},e.is=function(e){let t=e;return Xe.defined(t)&&Xe.typedArray(t.diagnostics,W.is)&&(void 0===t.only||Xe.typedArray(t.only,Xe.string))&&(void 0===t.triggerKind||t.triggerKind===Ae.Invoked||t.triggerKind===Ae.Automatic)}}(_e||(_e={})),function(e){e.create=function(e,t,n){let r={title:e},i=!0;return"string"==typeof t?(i=!1,r.kind=t):q.is(t)?r.command=t:r.edit=t,i&&void 0!==n&&(r.kind=n),r},e.is=function(e){let t=e;return t&&Xe.string(t.title)&&(void 0===t.diagnostics||Xe.typedArray(t.diagnostics,W.is))&&(void 0===t.kind||Xe.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||q.is(t.command))&&(void 0===t.isPreferred||Xe.boolean(t.isPreferred))&&(void 0===t.edit||X.is(t.edit))}}(ke||(ke={})),function(e){e.create=function(e,t){let n={range:e};return Xe.defined(t)&&(n.data=t),n},e.is=function(e){let t=e;return Xe.defined(t)&&x.is(t.range)&&(Xe.undefined(t.command)||q.is(t.command))}}(Ne||(Ne={})),function(e){e.create=function(e,t){return{tabSize:e,insertSpaces:t}},e.is=function(e){let t=e;return Xe.defined(t)&&Xe.uinteger(t.tabSize)&&Xe.boolean(t.insertSpaces)}}(Le||(Le={})),function(e){e.create=function(e,t,n){return{range:e,target:t,data:n}},e.is=function(e){let t=e;return Xe.defined(t)&&x.is(t.range)&&(Xe.undefined(t.target)||Xe.string(t.target))}}(xe||(xe={})),function(e){e.create=function(e,t){return{range:e,parent:t}},e.is=function(t){let n=t;return Xe.objectLiteral(n)&&x.is(n.range)&&(void 0===n.parent||e.is(n.parent))}}(Fe||(Fe={})),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"}(Oe||(Oe={})),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"}(Me||(Me={})),function(e){e.is=function(e){const t=e;return Xe.objectLiteral(t)&&(void 0===t.resultId||"string"==typeof t.resultId)&&Array.isArray(t.data)&&(0===t.data.length||"number"==typeof t.data[0])}}(Te||(Te={})),function(e){e.create=function(e,t){return{range:e,text:t}},e.is=function(e){const t=e;return null!=t&&x.is(t.range)&&Xe.string(t.text)}}(Ie||(Ie={})),function(e){e.create=function(e,t,n){return{range:e,variableName:t,caseSensitiveLookup:n}},e.is=function(e){const t=e;return null!=t&&x.is(t.range)&&Xe.boolean(t.caseSensitiveLookup)&&(Xe.string(t.variableName)||void 0===t.variableName)}}(Re||(Re={})),function(e){e.create=function(e,t){return{range:e,expression:t}},e.is=function(e){const t=e;return null!=t&&x.is(t.range)&&(Xe.string(t.expression)||void 0===t.expression)}}(Pe||(Pe={})),function(e){e.create=function(e,t){return{frameId:e,stoppedLocation:t}},e.is=function(e){const t=e;return Xe.defined(t)&&x.is(e.stoppedLocation)}}(Be||(Be={})),function(e){e.Type=1,e.Parameter=2,e.is=function(e){return 1===e||2===e}}($e||($e={})),function(e){e.create=function(e){return{value:e}},e.is=function(e){const t=e;return Xe.objectLiteral(t)&&(void 0===t.tooltip||Xe.string(t.tooltip)||ie.is(t.tooltip))&&(void 0===t.location||F.is(t.location))&&(void 0===t.command||q.is(t.command))}}(je||(je={})),function(e){e.create=function(e,t,n){const r={position:e,label:t};return void 0!==n&&(r.kind=n),r},e.is=function(e){const t=e;return Xe.objectLiteral(t)&&L.is(t.position)&&(Xe.string(t.label)||Xe.typedArray(t.label,je.is))&&(void 0===t.kind||$e.is(t.kind))&&void 0===t.textEdits||Xe.typedArray(t.textEdits,K.is)&&(void 0===t.tooltip||Xe.string(t.tooltip)||ie.is(t.tooltip))&&(void 0===t.paddingLeft||Xe.boolean(t.paddingLeft))&&(void 0===t.paddingRight||Xe.boolean(t.paddingRight))}}(Ve||(Ve={})),function(e){e.createSnippet=function(e){return{kind:"snippet",value:e}}}(We||(We={})),function(e){e.create=function(e,t,n,r){return{insertText:e,filterText:t,range:n,command:r}}}(qe||(qe={})),function(e){e.create=function(e){return{items:e}}}(Ke||(Ke={})),function(e){e.Invoked=0,e.Automatic=1}(Ue||(Ue={})),function(e){e.create=function(e,t){return{range:e,text:t}}}(He||(He={})),function(e){e.create=function(e,t){return{triggerKind:e,selectedCompletionInfo:t}}}(ze||(ze={})),function(e){e.is=function(e){const t=e;return Xe.objectLiteral(t)&&_.is(t.uri)&&Xe.string(t.name)}}(Ye||(Ye={})),function(e){function t(e,n){if(e.length<=1)return e;const r=e.length/2|0,i=e.slice(0,r),s=e.slice(r);t(i,n),t(s,n);let o=0,a=0,l=0;for(;o<i.length&&a<s.length;){let t=n(i[o],s[a]);e[l++]=t<=0?i[o++]:s[a++]}for(;o<i.length;)e[l++]=i[o++];for(;a<s.length;)e[l++]=s[a++];return e}e.create=function(e,t,n,r){return new Ze(e,t,n,r)},e.is=function(e){let t=e;return!!(Xe.defined(t)&&Xe.string(t.uri)&&(Xe.undefined(t.languageId)||Xe.string(t.languageId))&&Xe.uinteger(t.lineCount)&&Xe.func(t.getText)&&Xe.func(t.positionAt)&&Xe.func(t.offsetAt))},e.applyEdits=function(e,n){let r=e.getText(),i=t(n,((e,t)=>{let n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),s=r.length;for(let t=i.length-1;t>=0;t--){let n=i[t],o=e.offsetAt(n.range.start),a=e.offsetAt(n.range.end);if(!(a<=s))throw new Error("Overlapping edit");r=r.substring(0,o)+n.newText+r.substring(a,r.length),s=o}return r}}(Je||(Je={}));class Ze{constructor(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0}getLineOffsets(){if(void 0===this._lineOffsets){let e=[],t=this._content,n=!0;for(let r=0;r<t.length;r++){n&&(e.push(r),n=!1);let i=t.charAt(r);n="\r"===i||"\n"===i,"\r"===i&&r+1<t.length&&"\n"===t.charAt(r+1)&&r++}n&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return L.create(0,e);for(;n<r;){let i=Math.floor((n+r)/2);t[i]>e?r=i:n=i+1}let i=n-1;return L.create(i,e-t[i])}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let n=t[e.line],r=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,r),n)}get lineCount(){return this.getLineOffsets().length}}!function(e){const t=Object.prototype.toString;e.defined=function(e){return void 0!==e},e.undefined=function(e){return void 0===e},e.boolean=function(e){return!0===e||!1===e},e.string=function(e){return"[object String]"===t.call(e)},e.number=function(e){return"[object Number]"===t.call(e)},e.numberRange=function(e,n,r){return"[object Number]"===t.call(e)&&n<=e&&e<=r},e.integer=function(e){return"[object Number]"===t.call(e)&&-2147483648<=e&&e<=2147483647},e.uinteger=function(e){return"[object Number]"===t.call(e)&&0<=e&&e<=2147483647},e.func=function(e){return"[object Function]"===t.call(e)},e.objectLiteral=function(e){return null!==e&&"object"==typeof e},e.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)}}(Xe||(Xe={}));const et=Symbol.for("yaml.alias"),tt=Symbol.for("yaml.document"),nt=Symbol.for("yaml.map"),rt=Symbol.for("yaml.pair"),it=Symbol.for("yaml.scalar"),st=Symbol.for("yaml.seq"),ot=Symbol.for("yaml.node.type"),at=e=>!!e&&"object"==typeof e&&e[ot]===et,lt=e=>!!e&&"object"==typeof e&&e[ot]===tt,ut=e=>!!e&&"object"==typeof e&&e[ot]===nt,ct=e=>!!e&&"object"==typeof e&&e[ot]===rt,ht=e=>!!e&&"object"==typeof e&&e[ot]===it,ft=e=>!!e&&"object"==typeof e&&e[ot]===st;function dt(e){if(e&&"object"==typeof e)switch(e[ot]){case nt:case st:return!0}return!1}function mt(e){if(e&&"object"==typeof e)switch(e[ot]){case et:case nt:case it:case st:return!0}return!1}const pt=Symbol("break visit"),gt=Symbol("skip children"),yt=Symbol("remove node");function bt(e,t){const n=Ct(t);lt(e)?vt(null,e.contents,n,Object.freeze([e]))===yt&&(e.contents=null):vt(null,e,n,Object.freeze([]))}function vt(e,t,n,r){const i=Et(e,t,n,r);if(mt(i)||ct(i))return St(e,r,i),vt(e,i,n,r);if("symbol"!=typeof i)if(dt(t)){r=Object.freeze(r.concat(t));for(let e=0;e<t.items.length;++e){const i=vt(e,t.items[e],n,r);if("number"==typeof i)e=i-1;else{if(i===pt)return pt;i===yt&&(t.items.splice(e,1),e-=1)}}}else if(ct(t)){r=Object.freeze(r.concat(t));const e=vt("key",t.key,n,r);if(e===pt)return pt;e===yt&&(t.key=null);const i=vt("value",t.value,n,r);if(i===pt)return pt;i===yt&&(t.value=null)}return i}async function Dt(e,t){const n=Ct(t);lt(e)?await wt(null,e.contents,n,Object.freeze([e]))===yt&&(e.contents=null):await wt(null,e,n,Object.freeze([]))}async function wt(e,t,n,r){const i=await Et(e,t,n,r);if(mt(i)||ct(i))return St(e,r,i),wt(e,i,n,r);if("symbol"!=typeof i)if(dt(t)){r=Object.freeze(r.concat(t));for(let e=0;e<t.items.length;++e){const i=await wt(e,t.items[e],n,r);if("number"==typeof i)e=i-1;else{if(i===pt)return pt;i===yt&&(t.items.splice(e,1),e-=1)}}}else if(ct(t)){r=Object.freeze(r.concat(t));const e=await wt("key",t.key,n,r);if(e===pt)return pt;e===yt&&(t.key=null);const i=await wt("value",t.value,n,r);if(i===pt)return pt;i===yt&&(t.value=null)}return i}function Ct(e){return"object"==typeof e&&(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 Et(e,t,n,r){return"function"==typeof n?n(e,t,r):ut(t)?n.Map?.(e,t,r):ft(t)?n.Seq?.(e,t,r):ct(t)?n.Pair?.(e,t,r):ht(t)?n.Scalar?.(e,t,r):at(t)?n.Alias?.(e,t,r):void 0}function St(e,t,n){const r=t[t.length-1];if(dt(r))r.items[e]=n;else if(ct(r))"key"===e?r.key=n:r.value=n;else{if(!lt(r)){const e=at(r)?"alias":"scalar";throw new Error(`Cannot replace node with ${e} parent`)}r.contents=n}}bt.BREAK=pt,bt.SKIP=gt,bt.REMOVE=yt,Dt.BREAK=pt,Dt.SKIP=gt,Dt.REMOVE=yt;const At={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},_t=e=>e.replace(/[!,[\]{}]/g,(e=>At[e]));class kt{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},kt.defaultYaml,e),this.tags=Object.assign({},kt.defaultTags,t)}clone(){const e=new kt(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){const e=new kt(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:kt.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},kt.defaultTags)}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:kt.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},kt.defaultTags),this.atNextDocument=!1);const n=e.trim().split(/[ \t]+/),r=n.shift();switch(r){case"%TAG":{if(2!==n.length&&(t(0,"%TAG directive should contain exactly two parts"),n.length<2))return!1;const[e,r]=n;return this.tags[e]=r,!0}case"%YAML":{if(this.yaml.explicit=!0,1!==n.length)return t(0,"%YAML directive should contain exactly one part"),!1;const[e]=n;return"1.1"===e||"1.2"===e?(this.yaml.version=e,!0):(t(6,`Unsupported YAML version ${e}`,/^\d+\.\d+$/.test(e)),!1)}default:return t(0,`Unknown directive ${r}`,!0),!1}}tagName(e,t){if("!"===e)return"!";if("!"!==e[0])return t(`Not a valid tag: ${e}`),null;if("<"===e[1]){const n=e.slice(2,-1);return"!"===n||"!!"===n?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(">"!==e[e.length-1]&&t("Verbatim tags must end with a >"),n)}const[,n,r]=e.match(/^(.*!)([^!]*)$/s);r||t(`The ${e} tag has no suffix`);const i=this.tags[n];if(i)try{return i+decodeURIComponent(r)}catch(e){return t(String(e)),null}return"!"===n?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(const[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+_t(e.substring(n.length));return"!"===e[0]?e:`!<${e}>`}toString(e){const t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],n=Object.entries(this.tags);let r;if(e&&n.length>0&&mt(e.contents)){const t={};bt(e.contents,((e,n)=>{mt(n)&&n.tag&&(t[n.tag]=!0)})),r=Object.keys(t)}else r=[];for(const[i,s]of n)"!!"===i&&"tag:yaml.org,2002:"===s||e&&!r.some((e=>e.startsWith(s)))||t.push(`%TAG ${i} ${s}`);return t.join("\n")}}function Nt(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const t=JSON.stringify(e);throw new Error(`Anchor must not contain whitespace or control characters: ${t}`)}return!0}function Lt(e){const t=new Set;return bt(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function xt(e,t){for(let n=1;;++n){const r=`${e}${n}`;if(!t.has(r))return r}}function Ft(e,t,n,r){if(r&&"object"==typeof r)if(Array.isArray(r))for(let t=0,n=r.length;t<n;++t){const n=r[t],i=Ft(e,r,String(t),n);void 0===i?delete r[t]:i!==n&&(r[t]=i)}else if(r instanceof Map)for(const t of Array.from(r.keys())){const n=r.get(t),i=Ft(e,r,t,n);void 0===i?r.delete(t):i!==n&&r.set(t,i)}else if(r instanceof Set)for(const t of Array.from(r)){const n=Ft(e,r,t,t);void 0===n?r.delete(t):n!==t&&(r.delete(t),r.add(n))}else for(const[t,n]of Object.entries(r)){const i=Ft(e,r,t,n);void 0===i?delete r[t]:i!==n&&(r[t]=i)}return e.call(t,n,r)}function Ot(e,t,n){if(Array.isArray(e))return e.map(((e,t)=>Ot(e,String(t),n)));if(e&&"function"==typeof e.toJSON){if(!n||!ht(r=e)&&!dt(r)||!r.anchor)return e.toJSON(t,n);const i={aliasCount:0,count:1,res:void 0};n.anchors.set(e,i),n.onCreate=e=>{i.res=e,delete n.onCreate};const s=e.toJSON(t,n);return n.onCreate&&n.onCreate(s),s}var r;return"bigint"!=typeof e||n?.keep?e:Number(e)}kt.defaultYaml={explicit:!1,version:"1.2"},kt.defaultTags={"!!":"tag:yaml.org,2002:"};class Mt{constructor(e){Object.defineProperty(this,ot,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:n,onAnchor:r,reviver:i}={}){if(!lt(e))throw new TypeError("A document argument is required");const s={anchors:new Map,doc:e,keep:!0,mapAsMap:!0===t,mapKeyWarned:!1,maxAliasCount:"number"==typeof n?n:100},o=Ot(this,"",s);if("function"==typeof r)for(const{count:e,res:t}of s.anchors.values())r(t,e);return"function"==typeof i?Ft(i,{"":o},"",o):o}}class Tt extends Mt{constructor(e){super(et),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e){let t;return bt(e,{Node:(e,n)=>{if(n===this)return bt.BREAK;n.anchor===this.source&&(t=n)}}),t}toJSON(e,t){if(!t)return{source:this.source};const{anchors:n,doc:r,maxAliasCount:i}=t,s=this.resolve(r);if(!s){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(e)}let o=n.get(s);if(o||(Ot(s,null,t),o=n.get(s)),!o||void 0===o.res)throw new ReferenceError("This should not happen: Alias anchor was not resolved?");if(i>=0&&(o.count+=1,0===o.aliasCount&&(o.aliasCount=It(r,s,n)),o.count*o.aliasCount>i))throw new ReferenceError("Excessive alias count indicates a resource exhaustion attack");return o.res}toString(e,t,n){const r=`*${this.source}`;if(e){if(Nt(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(e)}if(e.implicitKey)return`${r} `}return r}}function It(e,t,n){if(at(t)){const r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}if(dt(t)){let r=0;for(const i of t.items){const t=It(e,i,n);t>r&&(r=t)}return r}if(ct(t)){const r=It(e,t.key,n),i=It(e,t.value,n);return Math.max(r,i)}return 1}const Rt=e=>!e||"function"!=typeof e&&"object"!=typeof e;class Pt extends Mt{constructor(e){super(it),this.value=e}toJSON(e,t){return t?.keep?this.value:Ot(this.value,e,t)}toString(){return String(this.value)}}function Bt(e,t,n){if(lt(e)&&(e=e.contents),mt(e))return e;if(ct(e)){const t=n.schema[nt].createNode?.(n.schema,null,n);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||"undefined"!=typeof BigInt&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:r,onAnchor:i,onTagObj:s,schema:o,sourceObjects:a}=n;let l;if(r&&e&&"object"==typeof e){if(l=a.get(e),l)return l.anchor||(l.anchor=i(e)),new Tt(l.anchor);l={anchor:null,node:null},a.set(e,l)}t?.startsWith("!!")&&(t="tag:yaml.org,2002:"+t.slice(2));let u=function(e,t,n){if(t){const e=n.filter((e=>e.tag===t)),r=e.find((e=>!e.format))??e[0];if(!r)throw new Error(`Tag ${t} not found`);return r}return n.find((t=>t.identify?.(e)&&!t.format))}(e,t,o.tags);if(!u){if(e&&"function"==typeof e.toJSON&&(e=e.toJSON()),!e||"object"!=typeof e){const t=new Pt(e);return l&&(l.node=t),t}u=e instanceof Map?o[nt]:Symbol.iterator in Object(e)?o[st]:o[nt]}s&&(s(u),delete n.onTagObj);const c=u?.createNode?u.createNode(n.schema,e,n):"function"==typeof u?.nodeClass?.from?u.nodeClass.from(n.schema,e,n):new Pt(e);return t?c.tag=t:u.default||(c.tag=u.tag),l&&(l.node=c),c}function $t(e,t,n){let r=n;for(let e=t.length-1;e>=0;--e){const n=t[e];if("number"==typeof n&&Number.isInteger(n)&&n>=0){const e=[];e[n]=r,r=e}else r=new Map([[n,r]])}return Bt(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}Pt.BLOCK_FOLDED="BLOCK_FOLDED",Pt.BLOCK_LITERAL="BLOCK_LITERAL",Pt.PLAIN="PLAIN",Pt.QUOTE_DOUBLE="QUOTE_DOUBLE",Pt.QUOTE_SINGLE="QUOTE_SINGLE";const jt=e=>null==e||"object"==typeof e&&!!e[Symbol.iterator]().next().done;class Vt extends Mt{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map((t=>mt(t)||ct(t)?t.clone(e):t)),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(jt(e))this.add(t);else{const[n,...r]=e,i=this.get(n,!0);if(dt(i))i.addIn(r,t);else{if(void 0!==i||!this.schema)throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`);this.set(n,$t(this.schema,r,t))}}}deleteIn(e){const[t,...n]=e;if(0===n.length)return this.delete(t);const r=this.get(t,!0);if(dt(r))return r.deleteIn(n);throw new Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){const[n,...r]=e,i=this.get(n,!0);return 0===r.length?!t&&ht(i)?i.value:i:dt(i)?i.getIn(r,t):void 0}hasAllNullValues(e){return this.items.every((t=>{if(!ct(t))return!1;const n=t.value;return null==n||e&&ht(n)&&null==n.value&&!n.commentBefore&&!n.comment&&!n.tag}))}hasIn(e){const[t,...n]=e;if(0===n.length)return this.has(t);const r=this.get(t,!0);return!!dt(r)&&r.hasIn(n)}setIn(e,t){const[n,...r]=e;if(0===r.length)this.set(n,t);else{const e=this.get(n,!0);if(dt(e))e.setIn(r,t);else{if(void 0!==e||!this.schema)throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`);this.set(n,$t(this.schema,r,t))}}}}const Wt=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function qt(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const Kt=(e,t,n)=>e.endsWith("\n")?qt(n,t):n.includes("\n")?"\n"+qt(n,t):(e.endsWith(" ")?"":" ")+n,Ut="flow",Ht="block",zt="quoted";function Yt(e,t,n="flow",{indentAtStart:r,lineWidth:i=80,minContentWidth:s=20,onFold:o,onOverflow:a}={}){if(!i||i<0)return e;i<s&&(s=0);const l=Math.max(1+s,1+i-t.length);if(e.length<=l)return e;const u=[],c={};let h,f,d=i-t.length;"number"==typeof r&&(r>i-Math.max(2,s)?u.push(0):d=i-r);let m=!1,p=-1,g=-1,y=-1;n===Ht&&(p=Gt(e,p,t.length),-1!==p&&(d=p+l));for(let r;r=e[p+=1];){if(n===zt&&"\\"===r){switch(g=p,e[p+1]){case"x":p+=3;break;case"u":p+=5;break;case"U":p+=9;break;default:p+=1}y=p}if("\n"===r)n===Ht&&(p=Gt(e,p,t.length)),d=p+t.length+l,h=void 0;else{if(" "===r&&f&&" "!==f&&"\n"!==f&&"\t"!==f){const t=e[p+1];t&&" "!==t&&"\n"!==t&&"\t"!==t&&(h=p)}if(p>=d)if(h)u.push(h),d=h+l,h=void 0;else if(n===zt){for(;" "===f||"\t"===f;)f=r,r=e[p+=1],m=!0;const t=p>y+1?p-2:g-1;if(c[t])return e;u.push(t),c[t]=!0,d=t+l,h=void 0}else m=!0}f=r}if(m&&a&&a(),0===u.length)return e;o&&o();let b=e.slice(0,u[0]);for(let r=0;r<u.length;++r){const i=u[r],s=u[r+1]||e.length;0===i?b=`\n${t}${e.slice(0,s)}`:(n===zt&&c[i]&&(b+=`${e[i]}\\`),b+=`\n${t}${e.slice(i+1,s)}`)}return b}function Gt(e,t,n){let r=t,i=t+1,s=e[i];for(;" "===s||"\t"===s;)if(t<i+n)s=e[++t];else{do{s=e[++t]}while(s&&"\n"!==s);r=t,i=t+1,s=e[i]}return r}const Qt=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),Jt=e=>/^(%|---|\.\.\.)/m.test(e);function Xt(e,t){const n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;const{implicitKey:r}=t,i=t.options.doubleQuotedMinMultiLineLength,s=t.indent||(Jt(e)?" ":"");let o="",a=0;for(let e=0,t=n[e];t;t=n[++e])if(" "===t&&"\\"===n[e+1]&&"n"===n[e+2]&&(o+=n.slice(a,e)+"\\ ",e+=1,a=e,t="\\"),"\\"===t)switch(n[e+1]){case"u":{o+=n.slice(a,e);const t=n.substr(e+2,4);switch(t){case"0000":o+="\\0";break;case"0007":o+="\\a";break;case"000b":o+="\\v";break;case"001b":o+="\\e";break;case"0085":o+="\\N";break;case"00a0":o+="\\_";break;case"2028":o+="\\L";break;case"2029":o+="\\P";break;default:"00"===t.substr(0,2)?o+="\\x"+t.substr(2):o+=n.substr(e,6)}e+=5,a=e+1}break;case"n":if(r||'"'===n[e+2]||n.length<i)e+=1;else{for(o+=n.slice(a,e)+"\n\n";"\\"===n[e+2]&&"n"===n[e+3]&&'"'!==n[e+4];)o+="\n",e+=2;o+=s," "===n[e+2]&&(o+="\\"),e+=1,a=e+1}break;default:e+=1}return o=a?o+n.slice(a):n,r?o:Yt(o,s,zt,Qt(t,!1))}function Zt(e,t){if(!1===t.options.singleQuote||t.implicitKey&&e.includes("\n")||/[ \t]\n|\n[ \t]/.test(e))return Xt(e,t);const n=t.indent||(Jt(e)?" ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&\n${n}`)+"'";return t.implicitKey?r:Yt(r,n,Ut,Qt(t,!1))}function en(e,t){const{singleQuote:n}=t.options;let r;if(!1===n)r=Xt;else{const t=e.includes('"'),i=e.includes("'");r=t&&!i?Zt:i&&!t?Xt:n?Zt:Xt}return r(e,t)}let tn;try{tn=new RegExp("(^|(?<!\n))\n+(?!\n|$)","g")}catch{tn=/\n+(?!\n|$)/g}function nn({comment:e,type:t,value:n},r,i,s){const{blockQuote:o,commentString:a,lineWidth:l}=r.options;if(!o||/\n[\t ]+$/.test(n)||/^\s*$/.test(n))return en(n,r);const u=r.indent||(r.forceBlockIndent||Jt(n)?" ":""),c="literal"===o||"folded"!==o&&t!==Pt.BLOCK_FOLDED&&(t===Pt.BLOCK_LITERAL||!function(e,t,n){if(!t||t<0)return!1;const r=t-n,i=e.length;if(i<=r)return!1;for(let t=0,n=0;t<i;++t)if("\n"===e[t]){if(t-n>r)return!0;if(n=t+1,i-n<=r)return!1}return!0}(n,l,u.length));if(!n)return c?"|\n":">\n";let h,f;for(f=n.length;f>0;--f){const e=n[f-1];if("\n"!==e&&"\t"!==e&&" "!==e)break}let d=n.substring(f);const m=d.indexOf("\n");-1===m?h="-":n===d||m!==d.length-1?(h="+",s&&s()):h="",d&&(n=n.slice(0,-d.length),"\n"===d[d.length-1]&&(d=d.slice(0,-1)),d=d.replace(tn,`$&${u}`));let p,g=!1,y=-1;for(p=0;p<n.length;++p){const e=n[p];if(" "===e)g=!0;else{if("\n"!==e)break;y=p}}let b=n.substring(0,y<p?y+1:p);b&&(n=n.substring(b.length),b=b.replace(/\n+/g,`$&${u}`));let v=(g?u?"2":"1":"")+h;if(e&&(v+=" "+a(e.replace(/ ?[\r\n]+/g," ")),i&&i()),!c){const e=n.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${u}`);let i=!1;const s=Qt(r,!0);"folded"!==o&&t!==Pt.BLOCK_FOLDED&&(s.onOverflow=()=>{i=!0});const a=Yt(`${b}${e}${d}`,u,Ht,s);if(!i)return`>${v}\n${u}${a}`}return`|${v}\n${u}${b}${n=n.replace(/\n+/g,`$&${u}`)}${d}`}function rn(e,t,n,r){const{implicitKey:i,inFlow:s}=t,o="string"==typeof e.value?e:Object.assign({},e,{value:String(e.value)});let{type:a}=e;a!==Pt.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(a=Pt.QUOTE_DOUBLE);const l=e=>{switch(e){case Pt.BLOCK_FOLDED:case Pt.BLOCK_LITERAL:return i||s?en(o.value,t):nn(o,t,n,r);case Pt.QUOTE_DOUBLE:return Xt(o.value,t);case Pt.QUOTE_SINGLE:return Zt(o.value,t);case Pt.PLAIN:return function(e,t,n,r){const{type:i,value:s}=e,{actualString:o,implicitKey:a,indent:l,indentStep:u,inFlow:c}=t;if(a&&s.includes("\n")||c&&/[[\]{},]/.test(s))return en(s,t);if(!s||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(s))return a||c||!s.includes("\n")?en(s,t):nn(e,t,n,r);if(!a&&!c&&i!==Pt.PLAIN&&s.includes("\n"))return nn(e,t,n,r);if(Jt(s)){if(""===l)return t.forceBlockIndent=!0,nn(e,t,n,r);if(a&&l===u)return en(s,t)}const h=s.replace(/\n+/g,`$&\n${l}`);if(o){const e=e=>e.default&&"tag:yaml.org,2002:str"!==e.tag&&e.test?.test(h),{compat:n,tags:r}=t.doc.schema;if(r.some(e)||n?.some(e))return en(s,t)}return a?h:Yt(h,l,Ut,Qt(t,!1))}(o,t,n,r);default:return null}};let u=l(a);if(null===u){const{defaultKeyType:e,defaultStringType:n}=t.options,r=i&&e||n;if(u=l(r),null===u)throw new Error(`Unsupported default string type ${r}`)}return u}function sn(e,t){const n=Object.assign({blockQuote:!0,commentString:Wt,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:"number"==typeof n.indent?" ".repeat(n.indent):" ",inFlow:r,options:n}}function on(e,t,n,r){if(ct(e))return e.toString(t,n,r);if(at(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 i;const s=mt(e)?e:t.doc.createNode(e,{onTagObj:e=>i=e});i||(i=function(e,t){if(t.tag){const n=e.filter((e=>e.tag===t.tag));if(n.length>0)return n.find((e=>e.format===t.format))??n[0]}let n,r;if(ht(t)){r=t.value;let i=e.filter((e=>e.identify?.(r)));if(i.length>1){const e=i.filter((e=>e.test));e.length>0&&(i=e)}n=i.find((e=>e.format===t.format))??i.find((e=>!e.format))}else r=t,n=e.find((e=>e.nodeClass&&r instanceof e.nodeClass));if(!n)throw new Error(`Tag not resolved for ${r?.constructor?.name??typeof r} value`);return n}(t.doc.schema.tags,s));const o=function(e,t,{anchors:n,doc:r}){if(!r.directives)return"";const i=[],s=(ht(e)||dt(e))&&e.anchor;s&&Nt(s)&&(n.add(s),i.push(`&${s}`));const o=e.tag?e.tag:t.default?null:t.tag;return o&&i.push(r.directives.tagString(o)),i.join(" ")}(s,i,t);o.length>0&&(t.indentAtStart=(t.indentAtStart??0)+o.length+1);const a="function"==typeof i.stringify?i.stringify(s,t,n,r):ht(s)?rn(s,t,n,r):s.toString(t,n,r);return o?ht(s)||"{"===a[0]||"["===a[0]?`${o} ${a}`:`${o}\n${t.indent}${a}`:a}function an(e,t){"debug"!==e&&"warn"!==e||("undefined"!=typeof process&&process.emitWarning?process.emitWarning(t):console.warn(t))}const ln="<<",un={identify:e=>e===ln||"symbol"==typeof e&&e.description===ln,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new Pt(Symbol(ln)),{addToJSMap:cn}),stringify:()=>ln};function cn(e,t,n){if(n=e&&at(n)?n.resolve(e.doc):n,ft(n))for(const r of n.items)hn(e,t,r);else if(Array.isArray(n))for(const r of n)hn(e,t,r);else hn(e,t,n)}function hn(e,t,n){const r=e&&at(n)?n.resolve(e.doc):n;if(!ut(r))throw new Error("Merge sources must be maps or map aliases");const i=r.toJSON(null,e,Map);for(const[e,n]of i)t instanceof Map?t.has(e)||t.set(e,n):t instanceof Set?t.add(e):Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{value:n,writable:!0,enumerable:!0,configurable:!0});return t}function fn(e,t,{key:n,value:r}){if(mt(n)&&n.addToJSMap)n.addToJSMap(e,t,r);else if(((e,t)=>(un.identify(t)||ht(t)&&(!t.type||t.type===Pt.PLAIN)&&un.identify(t.value))&&e?.doc.schema.tags.some((e=>e.tag===un.tag&&e.default)))(e,n))cn(e,t,r);else{const i=Ot(n,"",e);if(t instanceof Map)t.set(i,Ot(r,i,e));else if(t instanceof Set)t.add(i);else{const s=function(e,t,n){if(null===t)return"";if("object"!=typeof t)return String(t);if(mt(e)&&n?.doc){const t=sn(n.doc,{});t.anchors=new Set;for(const e of n.anchors.keys())t.anchors.add(e.anchor);t.inFlow=!0,t.inStringifyKey=!0;const r=e.toString(t);if(!n.mapKeyWarned){let e=JSON.stringify(r);e.length>40&&(e=e.substring(0,36)+'..."'),an(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return r}return JSON.stringify(t)}(n,i,e),o=Ot(r,s,e);s in t?Object.defineProperty(t,s,{value:o,writable:!0,enumerable:!0,configurable:!0}):t[s]=o}}return t}function dn(e,t,n){const r=Bt(e,void 0,n),i=Bt(t,void 0,n);return new mn(r,i)}class mn{constructor(e,t=null){Object.defineProperty(this,ot,{value:rt}),this.key=e,this.value=t}clone(e){let{key:t,value:n}=this;return mt(t)&&(t=t.clone(e)),mt(n)&&(n=n.clone(e)),new mn(t,n)}toJSON(e,t){return fn(t,t?.mapAsMap?new Map:{},this)}toString(e,t,n){return e?.doc?function({key:e,value:t},n,r,i){const{allNullValues:s,doc:o,indent:a,indentStep:l,options:{commentString:u,indentSeq:c,simpleKeys:h}}=n;let f=mt(e)&&e.comment||null;if(h){if(f)throw new Error("With simple keys, key nodes cannot have comments");if(dt(e)||!mt(e)&&"object"==typeof e)throw new Error("With simple keys, collection cannot be used as a key value")}let d=!h&&(!e||f&&null==t&&!n.inFlow||dt(e)||(ht(e)?e.type===Pt.BLOCK_FOLDED||e.type===Pt.BLOCK_LITERAL:"object"==typeof e));n=Object.assign({},n,{allNullValues:!1,implicitKey:!d&&(h||!s),indent:a+l});let m,p,g,y=!1,b=!1,v=on(e,n,(()=>y=!0),(()=>b=!0));if(!d&&!n.inFlow&&v.length>1024){if(h)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");d=!0}if(n.inFlow){if(s||null==t)return y&&r&&r(),""===v?"?":d?`? ${v}`:v}else if(s&&!h||null==t&&d)return v=`? ${v}`,f&&!y?v+=Kt(v,n.indent,u(f)):b&&i&&i(),v;y&&(f=null),d?(f&&(v+=Kt(v,n.indent,u(f))),v=`? ${v}\n${a}:`):(v=`${v}:`,f&&(v+=Kt(v,n.indent,u(f)))),mt(t)?(m=!!t.spaceBefore,p=t.commentBefore,g=t.comment):(m=!1,p=null,g=null,t&&"object"==typeof t&&(t=o.createNode(t))),n.implicitKey=!1,d||f||!ht(t)||(n.indentAtStart=v.length+1),b=!1,c||!(l.length>=2)||n.inFlow||d||!ft(t)||t.flow||t.tag||t.anchor||(n.indent=n.indent.substring(2));let D=!1;const w=on(t,n,(()=>D=!0),(()=>b=!0));let C=" ";if(f||m||p)C=m?"\n":"",p&&(C+=`\n${qt(u(p),n.indent)}`),""!==w||n.inFlow?C+=`\n${n.indent}`:"\n"===C&&(C="\n\n");else if(!d&&dt(t)){const e=w[0],r=w.indexOf("\n"),i=-1!==r,s=n.inFlow??t.flow??0===t.items.length;if(i||!s){let t=!1;if(i&&("&"===e||"!"===e)){let n=w.indexOf(" ");"&"===e&&-1!==n&&n<r&&"!"===w[n+1]&&(n=w.indexOf(" ",n+1)),(-1===n||r<n)&&(t=!0)}t||(C=`\n${n.indent}`)}}else""!==w&&"\n"!==w[0]||(C="");return v+=C+w,n.inFlow?D&&r&&r():g&&!D?v+=Kt(v,n.indent,u(g)):b&&i&&i(),v}(this,e,t,n):JSON.stringify(this)}}function pn(e,t,n){return(t.inFlow??e.flow?yn:gn)(e,t,n)}function gn({comment:e,items:t},n,{blockItemPrefix:r,flowChars:i,itemIndent:s,onChompKeep:o,onComment:a}){const{indent:l,options:{commentString:u}}=n,c=Object.assign({},n,{indent:s,type:null});let h=!1;const f=[];for(let e=0;e<t.length;++e){const i=t[e];let o=null;if(mt(i))!h&&i.spaceBefore&&f.push(""),bn(n,f,i.commentBefore,h),i.comment&&(o=i.comment);else if(ct(i)){const e=mt(i.key)?i.key:null;e&&(!h&&e.spaceBefore&&f.push(""),bn(n,f,e.commentBefore,h))}h=!1;let a=on(i,c,(()=>o=null),(()=>h=!0));o&&(a+=Kt(a,s,u(o))),h&&o&&(h=!1),f.push(r+a)}let d;if(0===f.length)d=i.start+i.end;else{d=f[0];for(let e=1;e<f.length;++e){const t=f[e];d+=t?`\n${l}${t}`:"\n"}}return e?(d+="\n"+qt(u(e),l),a&&a()):h&&o&&o(),d}function yn({items:e},t,{flowChars:n,itemIndent:r}){const{indent:i,indentStep:s,flowCollectionPadding:o,options:{commentString:a}}=t;r+=s;const l=Object.assign({},t,{indent:r,inFlow:!0,type:null});let u=!1,c=0;const h=[];for(let n=0;n<e.length;++n){const i=e[n];let s=null;if(mt(i))i.spaceBefore&&h.push(""),bn(t,h,i.commentBefore,!1),i.comment&&(s=i.comment);else if(ct(i)){const e=mt(i.key)?i.key:null;e&&(e.spaceBefore&&h.push(""),bn(t,h,e.commentBefore,!1),e.comment&&(u=!0));const n=mt(i.value)?i.value:null;n?(n.comment&&(s=n.comment),n.commentBefore&&(u=!0)):null==i.value&&e?.comment&&(s=e.comment)}s&&(u=!0);let o=on(i,l,(()=>s=null));n<e.length-1&&(o+=","),s&&(o+=Kt(o,r,a(s))),!u&&(h.length>c||o.includes("\n"))&&(u=!0),h.push(o),c=h.length}const{start:f,end:d}=n;if(0===h.length)return f+d;if(!u){const e=h.reduce(((e,t)=>e+t.length+2),2);u=t.options.lineWidth>0&&e>t.options.lineWidth}if(u){let e=f;for(const t of h)e+=t?`\n${s}${i}${t}`:"\n";return`${e}\n${i}${d}`}return`${f}${o}${h.join(" ")}${o}${d}`}function bn({indent:e,options:{commentString:t}},n,r,i){if(r&&i&&(r=r.replace(/^\n+/,"")),r){const i=qt(t(r),e);n.push(i.trimStart())}}function vn(e,t){const n=ht(t)?t.value:t;for(const r of e)if(ct(r)){if(r.key===t||r.key===n)return r;if(ht(r.key)&&r.key.value===n)return r}}class Dn extends Vt{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(nt,e),this.items=[]}static from(e,t,n){const{keepUndefined:r,replacer:i}=n,s=new this(e),o=(e,o)=>{if("function"==typeof i)o=i.call(t,e,o);else if(Array.isArray(i)&&!i.includes(e))return;(void 0!==o||r)&&s.items.push(dn(e,o,n))};if(t instanceof Map)for(const[e,n]of t)o(e,n);else if(t&&"object"==typeof t)for(const e of Object.keys(t))o(e,t[e]);return"function"==typeof e.sortMapEntries&&s.items.sort(e.sortMapEntries),s}add(e,t){let n;n=ct(e)?e:e&&"object"==typeof e&&"key"in e?new mn(e.key,e.value):new mn(e,e?.value);const r=vn(this.items,n.key),i=this.schema?.sortMapEntries;if(r){if(!t)throw new Error(`Key ${n.key} already set`);ht(r.value)&&Rt(n.value)?r.value.value=n.value:r.value=n.value}else if(i){const e=this.items.findIndex((e=>i(n,e)<0));-1===e?this.items.push(n):this.items.splice(e,0,n)}else this.items.push(n)}delete(e){const t=vn(this.items,e);return!!t&&this.items.splice(this.items.indexOf(t),1).length>0}get(e,t){const n=vn(this.items,e),r=n?.value;return(!t&&ht(r)?r.value:r)??void 0}has(e){return!!vn(this.items,e)}set(e,t){this.add(new mn(e,t),!0)}toJSON(e,t,n){const r=n?new n:t?.mapAsMap?new Map:{};t?.onCreate&&t.onCreate(r);for(const e of this.items)fn(t,r,e);return r}toString(e,t,n){if(!e)return JSON.stringify(this);for(const e of this.items)if(!ct(e))throw new Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),pn(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:n,onComment:t})}}const wn={collection:"map",default:!0,nodeClass:Dn,tag:"tag:yaml.org,2002:map",resolve:(e,t)=>(ut(e)||t("Expected a mapping for this tag"),e),createNode:(e,t,n)=>Dn.from(e,t,n)};class Cn extends Vt{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(st,e),this.items=[]}add(e){this.items.push(e)}delete(e){const t=En(e);return"number"==typeof t&&this.items.splice(t,1).length>0}get(e,t){const n=En(e);if("number"!=typeof n)return;const r=this.items[n];return!t&&ht(r)?r.value:r}has(e){const t=En(e);return"number"==typeof t&&t<this.items.length}set(e,t){const n=En(e);if("number"!=typeof n)throw new Error(`Expected a valid index, not ${e}.`);const r=this.items[n];ht(r)&&Rt(t)?r.value=t:this.items[n]=t}toJSON(e,t){const n=[];t?.onCreate&&t.onCreate(n);let r=0;for(const e of this.items)n.push(Ot(e,String(r++),t));return n}toString(e,t,n){return e?pn(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:n,onComment:t}):JSON.stringify(this)}static from(e,t,n){const{replacer:r}=n,i=new this(e);if(t&&Symbol.iterator in Object(t)){let e=0;for(let s of t){if("function"==typeof r){const n=t instanceof Set?s:String(e++);s=r.call(t,n,s)}i.items.push(Bt(s,void 0,n))}}return i}}function En(e){let t=ht(e)?e.value:e;return t&&"string"==typeof t&&(t=Number(t)),"number"==typeof t&&Number.isInteger(t)&&t>=0?t:null}const Sn={collection:"seq",default:!0,nodeClass:Cn,tag:"tag:yaml.org,2002:seq",resolve:(e,t)=>(ft(e)||t("Expected a sequence for this tag"),e),createNode:(e,t,n)=>Cn.from(e,t,n)},An={identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:(e,t,n,r)=>rn(e,t=Object.assign({actualString:!0},t),n,r)},_n={identify:e=>null==e,createNode:()=>new Pt(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new Pt(null),stringify:({source:e},t)=>"string"==typeof e&&_n.test.test(e)?e:t.options.nullStr},kn={identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new Pt("t"===e[0]||"T"===e[0]),stringify:({source:e,value:t},n)=>e&&kn.test.test(e)&&t===("t"===e[0]||"T"===e[0])?e:t?n.options.trueStr:n.options.falseStr};function Nn({format:e,minFractionDigits:t,tag:n,value:r}){if("bigint"==typeof r)return String(r);const i="number"==typeof r?r:Number(r);if(!isFinite(i))return isNaN(i)?".nan":i<0?"-.inf":".inf";let s=JSON.stringify(r);if(!e&&t&&(!n||"tag:yaml.org,2002:float"===n)&&/^\d/.test(s)){let e=s.indexOf(".");e<0&&(e=s.length,s+=".");let n=t-(s.length-e-1);for(;n-- >0;)s+="0"}return s}const Ln={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Nn},xn={identify:e=>"number"==typeof e,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():Nn(e)}},Fn={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new Pt(parseFloat(e)),n=e.indexOf(".");return-1!==n&&"0"===e[e.length-1]&&(t.minFractionDigits=e.length-n-1),t},stringify:Nn},On=e=>"bigint"==typeof e||Number.isInteger(e),Mn=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function Tn(e,t,n){const{value:r}=e;return On(r)&&r>=0?n+r.toString(t):Nn(e)}const In={identify:e=>On(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>Mn(e,2,8,n),stringify:e=>Tn(e,8,"0o")},Rn={identify:On,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>Mn(e,0,10,n),stringify:Nn},Pn={identify:e=>On(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>Mn(e,2,16,n),stringify:e=>Tn(e,16,"0x")},Bn=[wn,Sn,An,_n,kn,In,Rn,Pn,Ln,xn,Fn];function $n(e){return"bigint"==typeof e||Number.isInteger(e)}const jn=({value:e})=>JSON.stringify(e),Vn=[wn,Sn].concat([{identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:jn},{identify:e=>null==e,createNode:()=>new Pt(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:jn},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:e=>"true"===e,stringify:jn},{identify:$n,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})=>$n(e)?e.toString():JSON.stringify(e)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:jn}],{default:!0,tag:"",test:/^/,resolve:(e,t)=>(t(`Unresolved plain scalar ${JSON.stringify(e)}`),e)}),Wn={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if("function"==typeof Buffer)return Buffer.from(e,"base64");if("function"==typeof atob){const t=atob(e.replace(/[\n\r]/g,"")),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}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,i,s){const o=n;let a;if("function"==typeof Buffer)a=o instanceof Buffer?o.toString("base64"):Buffer.from(o.buffer).toString("base64");else{if("function"!=typeof btoa)throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");{let e="";for(let t=0;t<o.length;++t)e+=String.fromCharCode(o[t]);a=btoa(e)}}if(t||(t=Pt.BLOCK_LITERAL),t!==Pt.QUOTE_DOUBLE){const e=Math.max(r.options.lineWidth-r.indent.length,r.options.minContentWidth),n=Math.ceil(a.length/e),i=new Array(n);for(let t=0,r=0;t<n;++t,r+=e)i[t]=a.substr(r,e);a=i.join(t===Pt.BLOCK_LITERAL?"\n":" ")}return rn({comment:e,type:t,value:a},r,i,s)}};function qn(e,t){if(ft(e))for(let n=0;n<e.items.length;++n){let r=e.items[n];if(!ct(r)){if(ut(r)){r.items.length>1&&t("Each pair must have its own sequence indicator");const e=r.items[0]||new mn(new Pt(null));if(r.commentBefore&&(e.key.commentBefore=e.key.commentBefore?`${r.commentBefore}\n${e.key.commentBefore}`:r.commentBefore),r.comment){const t=e.value??e.key;t.comment=t.comment?`${r.comment}\n${t.comment}`:r.comment}r=e}e.items[n]=ct(r)?r:new mn(r)}}else t("Expected a sequence for this tag");return e}function Kn(e,t,n){const{replacer:r}=n,i=new Cn(e);i.tag="tag:yaml.org,2002:pairs";let s=0;if(t&&Symbol.iterator in Object(t))for(let e of t){let o,a;if("function"==typeof r&&(e=r.call(t,String(s++),e)),Array.isArray(e)){if(2!==e.length)throw new TypeError(`Expected [key, value] tuple: ${e}`);o=e[0],a=e[1]}else if(e&&e instanceof Object){const t=Object.keys(e);if(1!==t.length)throw new TypeError(`Expected tuple with one key, not ${t.length} keys`);o=t[0],a=e[o]}else o=e;i.items.push(dn(o,a,n))}return i}const Un={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:qn,createNode:Kn};class Hn extends Cn{constructor(){super(),this.add=Dn.prototype.add.bind(this),this.delete=Dn.prototype.delete.bind(this),this.get=Dn.prototype.get.bind(this),this.has=Dn.prototype.has.bind(this),this.set=Dn.prototype.set.bind(this),this.tag=Hn.tag}toJSON(e,t){if(!t)return super.toJSON(e);const n=new Map;t?.onCreate&&t.onCreate(n);for(const e of this.items){let r,i;if(ct(e)?(r=Ot(e.key,"",t),i=Ot(e.value,r,t)):r=Ot(e,"",t),n.has(r))throw new Error("Ordered maps must not include duplicate keys");n.set(r,i)}return n}static from(e,t,n){const r=Kn(e,t,n),i=new this;return i.items=r.items,i}}Hn.tag="tag:yaml.org,2002:omap";const zn={collection:"seq",identify:e=>e instanceof Map,nodeClass:Hn,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=qn(e,t),r=[];for(const{key:e}of n.items)ht(e)&&(r.includes(e.value)?t(`Ordered maps must not include duplicate keys: ${e.value}`):r.push(e.value));return Object.assign(new Hn,n)},createNode:(e,t,n)=>Hn.from(e,t,n)};function Yn({value:e,source:t},n){return t&&(e?Gn:Qn).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}const Gn={identify:e=>!0===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new Pt(!0),stringify:Yn},Qn={identify:e=>!1===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new Pt(!1),stringify:Yn},Jn={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Nn},Xn={identify:e=>"number"==typeof e,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():Nn(e)}},Zn={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new Pt(parseFloat(e.replace(/_/g,""))),n=e.indexOf(".");if(-1!==n){const r=e.substring(n+1).replace(/_/g,"");"0"===r[r.length-1]&&(t.minFractionDigits=r.length)}return t},stringify:Nn},er=e=>"bigint"==typeof e||Number.isInteger(e);function tr(e,t,n,{intAsBigInt:r}){const i=e[0];if("-"!==i&&"+"!==i||(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}`}const t=BigInt(e);return"-"===i?BigInt(-1)*t:t}const s=parseInt(e,n);return"-"===i?-1*s:s}function nr(e,t,n){const{value:r}=e;if(er(r)){const e=r.toString(t);return r<0?"-"+n+e.substr(1):n+e}return Nn(e)}const rr={identify:er,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>tr(e,2,2,n),stringify:e=>nr(e,2,"0b")},ir={identify:er,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>tr(e,1,8,n),stringify:e=>nr(e,8,"0")},sr={identify:er,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>tr(e,0,10,n),stringify:Nn},or={identify:er,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>tr(e,2,16,n),stringify:e=>nr(e,16,"0x")};class ar extends Dn{constructor(e){super(e),this.tag=ar.tag}add(e){let t;t=ct(e)?e:e&&"object"==typeof e&&"key"in e&&"value"in e&&null===e.value?new mn(e.key,null):new mn(e,null),vn(this.items,t.key)||this.items.push(t)}get(e,t){const n=vn(this.items,e);return!t&&ct(n)?ht(n.key)?n.key.value:n.key:n}set(e,t){if("boolean"!=typeof t)throw new Error("Expected boolean value for set(key, value) in a YAML set, not "+typeof t);const n=vn(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new mn(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,n);throw new Error("Set items must all have null values")}static from(e,t,n){const{replacer:r}=n,i=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t)"function"==typeof r&&(e=r.call(t,e,e)),i.items.push(dn(e,null,n));return i}}ar.tag="tag:yaml.org,2002:set";const lr={collection:"map",identify:e=>e instanceof Set,nodeClass:ar,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,n)=>ar.from(e,t,n),resolve(e,t){if(ut(e)){if(e.hasAllNullValues(!0))return Object.assign(new ar,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};function ur(e,t){const n=e[0],r="-"===n||"+"===n?e.substring(1):e,i=e=>t?BigInt(e):Number(e),s=r.replace(/_/g,"").split(":").reduce(((e,t)=>e*i(60)+i(t)),i(0));return"-"===n?i(-1)*s:s}function cr(e){let{value:t}=e,n=e=>e;if("bigint"==typeof t)n=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return Nn(e);let r="";t<0&&(r="-",t*=n(-1));const i=n(60),s=[t%i];return t<60?s.unshift(0):(t=(t-s[0])/i,s.unshift(t%i),t>=60&&(t=(t-s[0])/i,s.unshift(t))),r+s.map((e=>String(e).padStart(2,"0"))).join(":").replace(/000000\d*$/,"")}const hr={identify:e=>"bigint"==typeof e||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})=>ur(e,n),stringify:cr},fr={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>ur(e,!1),stringify:cr},dr={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(dr.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,n,r,i,s,o,a]=t.map(Number),l=t[7]?Number((t[7]+"00").substr(1,3)):0;let u=Date.UTC(n,r-1,i,s||0,o||0,a||0,l);const c=t[8];if(c&&"Z"!==c){let e=ur(c,!1);Math.abs(e)<30&&(e*=60),u-=6e4*e}return new Date(u)},stringify:({value:e})=>e.toISOString().replace(/(T00:00:00)?\.000Z$/,"")},mr=[wn,Sn,An,_n,Gn,Qn,rr,ir,sr,or,Jn,Xn,Zn,Wn,un,zn,Un,lr,hr,fr,dr],pr=new Map([["core",Bn],["failsafe",[wn,Sn,An]],["json",Vn],["yaml11",mr],["yaml-1.1",mr]]),gr={binary:Wn,bool:kn,float:Fn,floatExp:xn,floatNaN:Ln,floatTime:fr,int:Rn,intHex:Pn,intOct:In,intTime:hr,map:wn,merge:un,null:_n,omap:zn,pairs:Un,seq:Sn,set:lr,timestamp:dr},yr={"tag:yaml.org,2002:binary":Wn,"tag:yaml.org,2002:merge":un,"tag:yaml.org,2002:omap":zn,"tag:yaml.org,2002:pairs":Un,"tag:yaml.org,2002:set":lr,"tag:yaml.org,2002:timestamp":dr};function br(e,t,n){const r=pr.get(t);if(r&&!e)return n&&!r.includes(un)?r.concat(un):r.slice();let i=r;if(!i){if(!Array.isArray(e)){const e=Array.from(pr.keys()).filter((e=>"yaml11"!==e)).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}i=[]}if(Array.isArray(e))for(const t of e)i=i.concat(t);else"function"==typeof e&&(i=e(i.slice()));return n&&(i=i.concat(un)),i.reduce(((e,t)=>{const n="string"==typeof t?gr[t]:t;if(!n){const e=JSON.stringify(t),n=Object.keys(gr).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown custom tag ${e}; use one of ${n}`)}return e.includes(n)||e.push(n),e}),[])}const vr=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class Dr{constructor({compat:e,customTags:t,merge:n,resolveKnownTags:r,schema:i,sortMapEntries:s,toStringDefaults:o}){this.compat=Array.isArray(e)?br(e,"compat"):e?br(null,e):null,this.name="string"==typeof i&&i||"core",this.knownTags=r?yr:{},this.tags=br(t,this.name,n),this.toStringOptions=o??null,Object.defineProperty(this,nt,{value:wn}),Object.defineProperty(this,it,{value:An}),Object.defineProperty(this,st,{value:Sn}),this.sortMapEntries="function"==typeof s?s:!0===s?vr:null}clone(){const e=Object.create(Dr.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}}class wr{constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,ot,{value:tt});let r=null;"function"==typeof t||Array.isArray(t)?r=t:void 0===n&&t&&(n=t,t=void 0);const i=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},n);this.options=i;let{version:s}=i;n?._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(s=this.directives.yaml.version)):this.directives=new kt({version:s}),this.setSchema(s,n),this.contents=void 0===e?null:this.createNode(e,r,n)}clone(){const e=Object.create(wr.prototype,{[ot]:{value:tt}});return e.commentBefore=this.commentBefore,e.comment=this.comment,e.errors=this.errors.slice(),e.warnings=this.warnings.slice(),e.options=Object.assign({},this.options),this.directives&&(e.directives=this.directives.clone()),e.schema=this.schema.clone(),e.contents=mt(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){Cr(this.contents)&&this.contents.add(e)}addIn(e,t){Cr(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){const n=Lt(this);e.anchor=!t||n.has(t)?xt(t||"a",n):t}return new Tt(e.anchor)}createNode(e,t,n){let r;if("function"==typeof t)e=t.call({"":e},"",e),r=t;else if(Array.isArray(t)){const e=e=>"number"==typeof e||e instanceof String||e instanceof Number,n=t.filter(e).map(String);n.length>0&&(t=t.concat(n)),r=t}else void 0===n&&t&&(n=t,t=void 0);const{aliasDuplicateObjects:i,anchorPrefix:s,flow:o,keepUndefined:a,onTagObj:l,tag:u}=n??{},{onAnchor:c,setAnchors:h,sourceObjects:f}=function(e,t){const n=[],r=new Map;let i=null;return{onAnchor:r=>{n.push(r),i||(i=Lt(e));const s=xt(t,i);return i.add(s),s},setAnchors:()=>{for(const e of n){const t=r.get(e);if("object"!=typeof t||!t.anchor||!ht(t.node)&&!dt(t.node)){const t=new Error("Failed to resolve repeated object (this should not happen)");throw t.source=e,t}t.node.anchor=t.anchor}},sourceObjects:r}}(this,s||"a"),d=Bt(e,u,{aliasDuplicateObjects:i??!0,keepUndefined:a??!1,onAnchor:c,onTagObj:l,replacer:r,schema:this.schema,sourceObjects:f});return o&&dt(d)&&(d.flow=!0),h(),d}createPair(e,t,n={}){const r=this.createNode(e,null,n),i=this.createNode(t,null,n);return new mn(r,i)}delete(e){return!!Cr(this.contents)&&this.contents.delete(e)}deleteIn(e){return jt(e)?null!=this.contents&&(this.contents=null,!0):!!Cr(this.contents)&&this.contents.deleteIn(e)}get(e,t){return dt(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return jt(e)?!t&&ht(this.contents)?this.contents.value:this.contents:dt(this.contents)?this.contents.getIn(e,t):void 0}has(e){return!!dt(this.contents)&&this.contents.has(e)}hasIn(e){return jt(e)?void 0!==this.contents:!!dt(this.contents)&&this.contents.hasIn(e)}set(e,t){null==this.contents?this.contents=$t(this.schema,[e],t):Cr(this.contents)&&this.contents.set(e,t)}setIn(e,t){jt(e)?this.contents=t:null==this.contents?this.contents=$t(this.schema,Array.from(e),t):Cr(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){let n;switch("number"==typeof e&&(e=String(e)),e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new kt({version:"1.1"}),n={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new kt({version:e}),n={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,n=null;break;default:{const t=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else{if(!n)throw new Error("With a null YAML version, the { schema: Schema } option is required");this.schema=new Dr(Object.assign(n,t))}}toJS({json:e,jsonArg:t,mapAsMap:n,maxAliasCount:r,onAnchor:i,reviver:s}={}){const o={anchors:new Map,doc:this,keep:!e,mapAsMap:!0===n,mapKeyWarned:!1,maxAliasCount:"number"==typeof r?r:100},a=Ot(this.contents,t??"",o);if("function"==typeof i)for(const{count:e,res:t}of o.anchors.values())i(t,e);return"function"==typeof s?Ft(s,{"":a},"",a):a}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){const t=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${t}`)}return function(e,t){const n=[];let r=!0===t.directives;if(!1!==t.directives&&e.directives){const t=e.directives.toString(e);t?(n.push(t),r=!0):e.directives.docStart&&(r=!0)}r&&n.push("---");const i=sn(e,t),{commentString:s}=i.options;if(e.commentBefore){1!==n.length&&n.unshift("");const t=s(e.commentBefore);n.unshift(qt(t,""))}let o=!1,a=null;if(e.contents){if(mt(e.contents)){if(e.contents.spaceBefore&&r&&n.push(""),e.contents.commentBefore){const t=s(e.contents.commentBefore);n.push(qt(t,""))}i.forceBlockIndent=!!e.comment,a=e.contents.comment}const t=a?void 0:()=>o=!0;let l=on(e.contents,i,(()=>a=null),t);a&&(l+=Kt(l,"",s(a))),"|"!==l[0]&&">"!==l[0]||"---"!==n[n.length-1]?n.push(l):n[n.length-1]=`--- ${l}`}else n.push(on(e.contents,i));if(e.directives?.docEnd)if(e.comment){const t=s(e.comment);t.includes("\n")?(n.push("..."),n.push(qt(t,""))):n.push(`... ${t}`)}else n.push("...");else{let t=e.comment;t&&o&&(t=t.replace(/^\n+/,"")),t&&(o&&!a||""===n[n.length-1]||n.push(""),n.push(qt(s(t),"")))}return n.join("\n")+"\n"}(this,e)}}function Cr(e){if(dt(e))return!0;throw new Error("Expected a YAML collection as document contents")}class Er extends Error{constructor(e,t,n,r){super(),this.name=e,this.code=n,this.message=r,this.pos=t}}class Sr extends Er{constructor(e,t,n){super("YAMLParseError",e,t,n)}}class Ar extends Er{constructor(e,t,n){super("YAMLWarning",e,t,n)}}const _r=(e,t)=>n=>{if(-1===n.pos[0])return;n.linePos=n.pos.map((e=>t.linePos(e)));const{line:r,col:i}=n.linePos[0];n.message+=` at line ${r}, column ${i}`;let s=i-1,o=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,"");if(s>=60&&o.length>80){const e=Math.min(s-39,o.length-79);o="…"+o.substring(e),s-=e-1}if(o.length>80&&(o=o.substring(0,79)+"…"),r>1&&/^ *$/.test(o.substring(0,s))){let n=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);n.length>80&&(n=n.substring(0,79)+"…\n"),o=n+o}if(/[^ ]/.test(o)){let e=1;const t=n.linePos[1];t&&t.line===r&&t.col>i&&(e=Math.max(1,Math.min(t.col-i,80-s)));const a=" ".repeat(s)+"^".repeat(e);n.message+=`:\n\n${o}\n${a}\n`}};function kr(e,{flow:t,indicator:n,next:r,offset:i,onError:s,parentIndent:o,startOnNewline:a}){let l=!1,u=a,c=a,h="",f="",d=!1,m=!1,p=null,g=null,y=null,b=null,v=null,D=null,w=null;for(const i of e)switch(m&&("space"!==i.type&&"newline"!==i.type&&"comma"!==i.type&&s(i.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),m=!1),p&&(u&&"comment"!==i.type&&"newline"!==i.type&&s(p,"TAB_AS_INDENT","Tabs are not allowed as indentation"),p=null),i.type){case"space":t||"doc-start"===n&&"flow-collection"===r?.type||!i.source.includes("\t")||(p=i),c=!0;break;case"comment":{c||s(i,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const e=i.source.substring(1)||" ";h?h+=f+e:h=e,f="",u=!1;break}case"newline":u?h?h+=i.source:l=!0:f+=i.source,u=!0,d=!0,(g||y)&&(b=i),c=!0;break;case"anchor":g&&s(i,"MULTIPLE_ANCHORS","A node can have at most one anchor"),i.source.endsWith(":")&&s(i.offset+i.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),g=i,null===w&&(w=i.offset),u=!1,c=!1,m=!0;break;case"tag":y&&s(i,"MULTIPLE_TAGS","A node can have at most one tag"),y=i,null===w&&(w=i.offset),u=!1,c=!1,m=!0;break;case n:(g||y)&&s(i,"BAD_PROP_ORDER",`Anchors and tags must be after the ${i.source} indicator`),D&&s(i,"UNEXPECTED_TOKEN",`Unexpected ${i.source} in ${t??"collection"}`),D=i,u="seq-item-ind"===n||"explicit-key-ind"===n,c=!1;break;case"comma":if(t){v&&s(i,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),v=i,u=!1,c=!1;break}default:s(i,"UNEXPECTED_TOKEN",`Unexpected ${i.type} token`),u=!1,c=!1}const C=e[e.length-1],E=C?C.offset+C.source.length:i;return m&&r&&"space"!==r.type&&"newline"!==r.type&&"comma"!==r.type&&("scalar"!==r.type||""!==r.source)&&s(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),p&&(u&&p.indent<=o||"block-map"===r?.type||"block-seq"===r?.type)&&s(p,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:v,found:D,spaceBefore:l,comment:h,hasNewline:d,anchor:g,tag:y,newlineAfterProp:b,end:E,start:w??E}}function Nr(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes("\n"))return!0;if(e.end)for(const t of e.end)if("newline"===t.type)return!0;return!1;case"flow-collection":for(const t of e.items){for(const e of t.start)if("newline"===e.type)return!0;if(t.sep)for(const e of t.sep)if("newline"===e.type)return!0;if(Nr(t.key)||Nr(t.value))return!0}return!1;default:return!0}}function Lr(e,t,n){if("flow-collection"===t?.type){const r=t.end[0];r.indent!==e||"]"!==r.source&&"}"!==r.source||!Nr(t)||n(r,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function xr(e,t,n){const{uniqueKeys:r}=e.options;if(!1===r)return!1;const i="function"==typeof r?r:(e,t)=>e===t||ht(e)&&ht(t)&&e.value===t.value;return t.some((e=>i(e.key,n)))}const Fr="All mapping items must start at the same column";function Or(e,t,n,r){let i="";if(e){let s=!1,o="";for(const a of e){const{source:e,type:l}=a;switch(l){case"space":s=!0;break;case"comment":{n&&!s&&r(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const t=e.substring(1)||" ";i?i+=o+t:i=t,o="";break}case"newline":i&&(o+=e),s=!0;break;default:r(a,"UNEXPECTED_TOKEN",`Unexpected ${l} at node end`)}t+=e.length}}return{comment:i,offset:t}}const Mr="Block collections are not allowed within flow collections",Tr=e=>e&&("block-map"===e.type||"block-seq"===e.type);function Ir(e,t,n,r,i,s){const o="block-map"===n.type?function({composeNode:e,composeEmptyNode:t},n,r,i,s){const o=new(s?.nodeClass??Dn)(n.schema);n.atRoot&&(n.atRoot=!1);let a=r.offset,l=null;for(const s of r.items){const{start:u,key:c,sep:h,value:f}=s,d=kr(u,{indicator:"explicit-key-ind",next:c??h?.[0],offset:a,onError:i,parentIndent:r.indent,startOnNewline:!0}),m=!d.found;if(m){if(c&&("block-seq"===c.type?i(a,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in c&&c.indent!==r.indent&&i(a,"BAD_INDENT",Fr)),!d.anchor&&!d.tag&&!h){l=d.end,d.comment&&(o.comment?o.comment+="\n"+d.comment:o.comment=d.comment);continue}(d.newlineAfterProp||Nr(c))&&i(c??u[u.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else d.found?.indent!==r.indent&&i(a,"BAD_INDENT",Fr);n.atKey=!0;const p=d.end,g=c?e(n,c,d,i):t(n,p,u,null,d,i);n.schema.compat&&Lr(r.indent,c,i),n.atKey=!1,xr(n,o.items,g)&&i(p,"DUPLICATE_KEY","Map keys must be unique");const y=kr(h??[],{indicator:"map-value-ind",next:f,offset:g.range[2],onError:i,parentIndent:r.indent,startOnNewline:!c||"block-scalar"===c.type});if(a=y.end,y.found){m&&("block-map"!==f?.type||y.hasNewline||i(a,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&d.start<y.found.offset-1024&&i(g.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const l=f?e(n,f,y,i):t(n,a,h,null,y,i);n.schema.compat&&Lr(r.indent,f,i),a=l.range[2];const u=new mn(g,l);n.options.keepSourceTokens&&(u.srcToken=s),o.items.push(u)}else{m&&i(g.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),y.comment&&(g.comment?g.comment+="\n"+y.comment:g.comment=y.comment);const e=new mn(g);n.options.keepSourceTokens&&(e.srcToken=s),o.items.push(e)}}return l&&l<a&&i(l,"IMPOSSIBLE","Map comment with trailing content"),o.range=[r.offset,a,l??a],o}(e,t,n,r,s):"block-seq"===n.type?function({composeNode:e,composeEmptyNode:t},n,r,i,s){const o=new(s?.nodeClass??Cn)(n.schema);n.atRoot&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let a=r.offset,l=null;for(const{start:s,value:u}of r.items){const c=kr(s,{indicator:"seq-item-ind",next:u,offset:a,onError:i,parentIndent:r.indent,startOnNewline:!0});if(!c.found){if(!(c.anchor||c.tag||u)){l=c.end,c.comment&&(o.comment=c.comment);continue}u&&"block-seq"===u.type?i(c.end,"BAD_INDENT","All sequence items must start at the same column"):i(a,"MISSING_CHAR","Sequence item without - indicator")}const h=u?e(n,u,c,i):t(n,c.end,s,null,c,i);n.schema.compat&&Lr(r.indent,u,i),a=h.range[2],o.items.push(h)}return o.range=[r.offset,a,l??a],o}(e,t,n,r,s):function({composeNode:e,composeEmptyNode:t},n,r,i,s){const o="{"===r.start.source,a=o?"flow map":"flow sequence",l=new(s?.nodeClass??(o?Dn:Cn))(n.schema);l.flow=!0;const u=n.atRoot;u&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let c=r.offset+r.start.source.length;for(let s=0;s<r.items.length;++s){const u=r.items[s],{start:h,key:f,sep:d,value:m}=u,p=kr(h,{flow:a,indicator:"explicit-key-ind",next:f??d?.[0],offset:c,onError:i,parentIndent:r.indent,startOnNewline:!1});if(!p.found){if(!(p.anchor||p.tag||d||m)){0===s&&p.comma?i(p.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`):s<r.items.length-1&&i(p.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${a}`),p.comment&&(l.comment?l.comment+="\n"+p.comment:l.comment=p.comment),c=p.end;continue}!o&&n.options.strict&&Nr(f)&&i(f,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(0===s)p.comma&&i(p.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`);else if(p.comma||i(p.start,"MISSING_CHAR",`Missing , between ${a} items`),p.comment){let e="";e:for(const t of h)switch(t.type){case"comma":case"space":break;case"comment":e=t.source.substring(1);break e;default:break e}if(e){let t=l.items[l.items.length-1];ct(t)&&(t=t.value??t.key),t.comment?t.comment+="\n"+e:t.comment=e,p.comment=p.comment.substring(e.length+1)}}if(o||d||p.found){n.atKey=!0;const s=p.end,g=f?e(n,f,p,i):t(n,s,h,null,p,i);Tr(f)&&i(g.range,"BLOCK_IN_FLOW",Mr),n.atKey=!1;const y=kr(d??[],{flow:a,indicator:"map-value-ind",next:m,offset:g.range[2],onError:i,parentIndent:r.indent,startOnNewline:!1});if(y.found){if(!o&&!p.found&&n.options.strict){if(d)for(const e of d){if(e===y.found)break;if("newline"===e.type){i(e,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}p.start<y.found.offset-1024&&i(y.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else m&&("source"in m&&m.source&&":"===m.source[0]?i(m,"MISSING_CHAR",`Missing space after : in ${a}`):i(y.start,"MISSING_CHAR",`Missing , or : between ${a} items`));const b=m?e(n,m,y,i):y.found?t(n,y.end,d,null,y,i):null;b?Tr(m)&&i(b.range,"BLOCK_IN_FLOW",Mr):y.comment&&(g.comment?g.comment+="\n"+y.comment:g.comment=y.comment);const v=new mn(g,b);if(n.options.keepSourceTokens&&(v.srcToken=u),o){const e=l;xr(n,e.items,g)&&i(s,"DUPLICATE_KEY","Map keys must be unique"),e.items.push(v)}else{const e=new Dn(n.schema);e.flow=!0,e.items.push(v);const t=(b??g).range;e.range=[g.range[0],t[1],t[2]],l.items.push(e)}c=b?b.range[2]:y.end}else{const r=m?e(n,m,p,i):t(n,p.end,d,null,p,i);l.items.push(r),c=r.range[2],Tr(m)&&i(r.range,"BLOCK_IN_FLOW",Mr)}}const h=o?"}":"]",[f,...d]=r.end;let m=c;if(f&&f.source===h)m=f.offset+f.source.length;else{const e=a[0].toUpperCase()+a.substring(1);i(c,u?"MISSING_CHAR":"BAD_INDENT",u?`${e} must end with a ${h}`:`${e} in block collection must be sufficiently indented and end with a ${h}`),f&&1!==f.source.length&&d.unshift(f)}if(d.length>0){const e=Or(d,m,n.options.strict,i);e.comment&&(l.comment?l.comment+="\n"+e.comment:l.comment=e.comment),l.range=[r.offset,m,e.offset]}else l.range=[r.offset,m,m];return l}(e,t,n,r,s),a=o.constructor;return"!"===i||i===a.tagName?(o.tag=a.tagName,o):(i&&(o.tag=i),o)}function Rr(e){let t,n;try{t=new RegExp("(.*?)(?<![ \t])[ \t]*\r?\n","sy"),n=new RegExp("[ \t]*(.*?)(?:(?<![ \t])[ \t]*)?\r?\n","sy")}catch{t=/(.*?)[ \t]*\r?\n/sy,n=/[ \t]*(.*?)[ \t]*\r?\n/sy}let r=t.exec(e);if(!r)return e;let i=r[1],s=" ",o=t.lastIndex;for(n.lastIndex=o;r=n.exec(e);)""===r[1]?"\n"===s?i+=s:s="\n":(i+=s+r[1],s=" "),o=n.lastIndex;const a=/[ \t]*(.*)/sy;return a.lastIndex=o,r=a.exec(e),i+s+(r?.[1]??"")}function Pr(e,t){let n="",r=e[t+1];for(;!(" "!==r&&"\t"!==r&&"\n"!==r&&"\r"!==r||"\r"===r&&"\n"!==e[t+2]);)"\n"===r&&(n+="\n"),r=e[(t+=1)+1];return n||(n=" "),{fold:n,offset:t}}const Br={0:"\0",a:"",b:"\b",e:"",f:"\f",n:"\n",r:"\r",t:"\t",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\","\t":"\t"};function $r(e,t,n,r){const i=e.substr(t,n),s=i.length===n&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;if(isNaN(s)){const i=e.substr(t-2,n+2);return r(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${i}`),i}return String.fromCodePoint(s)}function jr(e,t,n,r){const{value:i,type:s,comment:o,range:a}="block-scalar"===t.type?function(e,t,n){const r=t.offset,i=function({offset:e,props:t},n,r){if("block-scalar-header"!==t[0].type)return r(t[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:i}=t[0],s=i[0];let o=0,a="",l=-1;for(let t=1;t<i.length;++t){const n=i[t];if(a||"-"!==n&&"+"!==n){const r=Number(n);!o&&r?o=r:-1===l&&(l=e+t)}else a=n}-1!==l&&r(l,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${i}`);let u=!1,c="",h=i.length;for(let e=1;e<t.length;++e){const i=t[e];switch(i.type){case"space":u=!0;case"newline":h+=i.source.length;break;case"comment":n&&!u&&r(i,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),h+=i.source.length,c=i.source.substring(1);break;case"error":r(i,"UNEXPECTED_TOKEN",i.message),h+=i.source.length;break;default:{r(i,"UNEXPECTED_TOKEN",`Unexpected token in block scalar header: ${i.type}`);const e=i.source;e&&"string"==typeof e&&(h+=e.length)}}}return{mode:s,indent:o,chomp:a,comment:c,length:h}}(t,e.options.strict,n);if(!i)return{value:"",type:null,comment:"",range:[r,r,r]};const s=">"===i.mode?Pt.BLOCK_FOLDED:Pt.BLOCK_LITERAL,o=t.source?function(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 e=1;e<t.length;e+=2)i.push([t[e],t[e+1]]);return i}(t.source):[];let a=o.length;for(let e=o.length-1;e>=0;--e){const t=o[e][1];if(""!==t&&"\r"!==t)break;a=e}if(0===a){const e="+"===i.chomp&&o.length>0?"\n".repeat(Math.max(1,o.length-1)):"";let n=r+i.length;return t.source&&(n+=t.source.length),{value:e,type:s,comment:i.comment,range:[r,n,n]}}let l=t.indent+i.indent,u=t.offset+i.length,c=0;for(let t=0;t<a;++t){const[r,s]=o[t];if(""!==s&&"\r"!==s){if(r.length<l){const e="Block scalars with more-indented leading empty lines must use an explicit indentation indicator";n(u+r.length,"MISSING_CHAR",e)}0===i.indent&&(l=r.length),c=t,0!==l||e.atRoot||n(u,"BAD_INDENT","Block scalar values in collections must be indented");break}0===i.indent&&r.length>l&&(l=r.length),u+=r.length+s.length+1}for(let e=o.length-1;e>=a;--e)o[e][0].length>l&&(a=e+1);let h="",f="",d=!1;for(let e=0;e<c;++e)h+=o[e][0].slice(l)+"\n";for(let e=c;e<a;++e){let[t,r]=o[e];u+=t.length+r.length+1;const a="\r"===r[r.length-1];if(a&&(r=r.slice(0,-1)),r&&t.length<l){const e="Block scalar lines must not be less indented than their "+(i.indent?"explicit indentation indicator":"first line");n(u-r.length-(a?2:1),"BAD_INDENT",e),t=""}s===Pt.BLOCK_LITERAL?(h+=f+t.slice(l)+r,f="\n"):t.length>l||"\t"===r[0]?(" "===f?f="\n":d||"\n"!==f||(f="\n\n"),h+=f+t.slice(l)+r,f="\n",d=!0):""===r?"\n"===f?h+="\n":f="\n":(h+=f+r,f=" ",d=!1)}switch(i.chomp){case"-":break;case"+":for(let e=a;e<o.length;++e)h+="\n"+o[e][0].slice(l);"\n"!==h[h.length-1]&&(h+="\n");break;default:h+="\n"}const m=r+i.length+t.source.length;return{value:h,type:s,comment:i.comment,range:[r,m,m]}}(e,t,r):function(e,t,n){const{offset:r,type:i,source:s,end:o}=e;let a,l;const u=(e,t,i)=>n(r+e,t,i);switch(i){case"scalar":a=Pt.PLAIN,l=function(e,t){let n="";switch(e[0]){case"\t":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]}`}return n&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${n}`),Rr(e)}(s,u);break;case"single-quoted-scalar":a=Pt.QUOTE_SINGLE,l=function(e,t){return"'"===e[e.length-1]&&1!==e.length||t(e.length,"MISSING_CHAR","Missing closing 'quote"),Rr(e.slice(1,-1)).replace(/''/g,"'")}(s,u);break;case"double-quoted-scalar":a=Pt.QUOTE_DOUBLE,l=function(e,t){let n="";for(let r=1;r<e.length-1;++r){const i=e[r];if("\r"!==i||"\n"!==e[r+1])if("\n"===i){const{fold:t,offset:i}=Pr(e,r);n+=t,r=i}else if("\\"===i){let i=e[++r];const s=Br[i];if(s)n+=s;else if("\n"===i)for(i=e[r+1];" "===i||"\t"===i;)i=e[1+ ++r];else if("\r"===i&&"\n"===e[r+1])for(i=e[1+ ++r];" "===i||"\t"===i;)i=e[1+ ++r];else if("x"===i||"u"===i||"U"===i){const s={x:2,u:4,U:8}[i];n+=$r(e,r+1,s,t),r+=s}else{const i=e.substr(r-1,2);t(r-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${i}`),n+=i}}else if(" "===i||"\t"===i){const t=r;let s=e[r+1];for(;" "===s||"\t"===s;)s=e[1+ ++r];"\n"===s||"\r"===s&&"\n"===e[r+2]||(n+=r>t?e.slice(t,r+1):i)}else n+=i}return'"'===e[e.length-1]&&1!==e.length||t(e.length,"MISSING_CHAR",'Missing closing "quote'),n}(s,u);break;default:return n(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${i}`),{value:"",type:null,comment:"",range:[r,r+s.length,r+s.length]}}const c=r+s.length,h=Or(o,c,t,n);return{value:l,type:a,comment:h.comment,range:[r,c,h.offset]}}(t,e.options.strict,r),l=n?e.directives.tagName(n.source,(e=>r(n,"TAG_RESOLVE_FAILED",e))):null;let u,c;u=e.options.stringKeys&&e.atKey?e.schema[it]:l?function(e,t,n,r,i){if("!"===n)return e[it];const s=[];for(const t of e.tags)if(!t.collection&&t.tag===n){if(!t.default||!t.test)return t;s.push(t)}for(const e of s)if(e.test?.test(t))return e;const o=e.knownTags[n];return o&&!o.collection?(e.tags.push(Object.assign({},o,{default:!1,test:void 0})),o):(i(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,"tag:yaml.org,2002:str"!==n),e[it])}(e.schema,i,l,n,r):"scalar"===t.type?function({atKey:e,directives:t,schema:n},r,i,s){const o=n.tags.find((t=>(!0===t.default||e&&"key"===t.default)&&t.test?.test(r)))||n[it];if(n.compat){const e=n.compat.find((e=>e.default&&e.test?.test(r)))??n[it];o.tag!==e.tag&&s(i,"TAG_RESOLVE_FAILED",`Value may be parsed as either ${t.tagString(o.tag)} or ${t.tagString(e.tag)}`,!0)}return o}(e,i,t,r):e.schema[it];try{const s=u.resolve(i,(e=>r(n??t,"TAG_RESOLVE_FAILED",e)),e.options);c=ht(s)?s:new Pt(s)}catch(e){const s=e instanceof Error?e.message:String(e);r(n??t,"TAG_RESOLVE_FAILED",s),c=new Pt(i)}return c.range=a,c.source=i,s&&(c.type=s),l&&(c.tag=l),u.format&&(c.format=u.format),o&&(c.comment=o),c}function Vr(e,t,n){if(t){null===n&&(n=t.length);for(let r=n-1;r>=0;--r){let n=t[r];switch(n.type){case"space":case"comment":case"newline":e-=n.source.length;continue}for(n=t[++r];"space"===n?.type;)e+=n.source.length,n=t[++r];break}}return e}const Wr={composeNode:qr,composeEmptyNode:Kr};function qr(e,t,n,r){const i=e.atKey,{spaceBefore:s,comment:o,anchor:a,tag:l}=n;let u,c=!0;switch(t.type){case"alias":u=function({options:e},{offset:t,source:n,end:r},i){const s=new Tt(n.substring(1));""===s.source&&i(t,"BAD_ALIAS","Alias cannot be an empty string"),s.source.endsWith(":")&&i(t+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const o=t+n.length,a=Or(r,o,e.strict,i);return s.range=[t,o,a.offset],a.comment&&(s.comment=a.comment),s}(e,t,r),(a||l)&&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":u=jr(e,t,l,r),a&&(u.anchor=a.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":u=function(e,t,n,r,i){const s=r.tag,o=s?t.directives.tagName(s.source,(e=>i(s,"TAG_RESOLVE_FAILED",e))):null;if("block-seq"===n.type){const{anchor:e,newlineAfterProp:t}=r,n=e&&s?e.offset>s.offset?e:s:e??s;n&&(!t||t.offset<n.offset)&&i(n,"MISSING_CHAR","Missing newline after block sequence props")}const a="block-map"===n.type?"map":"block-seq"===n.type?"seq":"{"===n.start.source?"map":"seq";if(!s||!o||"!"===o||o===Dn.tagName&&"map"===a||o===Cn.tagName&&"seq"===a)return Ir(e,t,n,i,o);let l=t.schema.tags.find((e=>e.tag===o&&e.collection===a));if(!l){const r=t.schema.knownTags[o];if(!r||r.collection!==a)return r?.collection?i(s,"BAD_COLLECTION_TYPE",`${r.tag} used for ${a} collection, but expects ${r.collection}`,!0):i(s,"TAG_RESOLVE_FAILED",`Unresolved tag: ${o}`,!0),Ir(e,t,n,i,o);t.schema.tags.push(Object.assign({},r,{default:!1})),l=r}const u=Ir(e,t,n,i,o,l),c=l.resolve?.(u,(e=>i(s,"TAG_RESOLVE_FAILED",e)),t.options)??u,h=mt(c)?c:new Pt(c);return h.range=u.range,h.tag=o,l?.format&&(h.format=l.format),h}(Wr,e,t,n,r),a&&(u.anchor=a.source.substring(1));break;default:r(t,"UNEXPECTED_TOKEN","error"===t.type?t.message:`Unsupported token (type: ${t.type})`),u=Kr(e,t.offset,void 0,null,n,r),c=!1}return a&&""===u.anchor&&r(a,"BAD_ALIAS","Anchor cannot be an empty string"),i&&e.options.stringKeys&&(!ht(u)||"string"!=typeof u.value||u.tag&&"tag:yaml.org,2002:str"!==u.tag)&&r(l??t,"NON_STRING_KEY","With stringKeys, all keys must be strings"),s&&(u.spaceBefore=!0),o&&("scalar"===t.type&&""===t.source?u.comment=o:u.commentBefore=o),e.options.keepSourceTokens&&c&&(u.srcToken=t),u}function Kr(e,t,n,r,{spaceBefore:i,comment:s,anchor:o,tag:a,end:l},u){const c=jr(e,{type:"scalar",offset:Vr(t,n,r),indent:-1,source:""},a,u);return o&&(c.anchor=o.source.substring(1),""===c.anchor&&u(o,"BAD_ALIAS","Anchor cannot be an empty string")),i&&(c.spaceBefore=!0),s&&(c.comment=s,c.range[2]=l),c}function Ur(e){if("number"==typeof e)return[e,e+1];if(Array.isArray(e))return 2===e.length?e:[e[0],e[1]];const{offset:t,source:n}=e;return[t,t+("string"==typeof n?n.length:1)]}function Hr(e){let t="",n=!1,r=!1;for(let i=0;i<e.length;++i){const s=e[i];switch(s[0]){case"#":t+=(""===t?"":r?"\n\n":"\n")+(s.substring(1)||" "),n=!0,r=!1;break;case"%":"#"!==e[i+1]?.[0]&&(i+=1),n=!1;break;default:n||(r=!0),n=!1}}return{comment:t,afterEmptyLine:r}}class zr{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(e,t,n,r)=>{const i=Ur(e);r?this.warnings.push(new Ar(i,t,n)):this.errors.push(new Sr(i,t,n))},this.directives=new kt({version:e.version||"1.2"}),this.options=e}decorate(e,t){const{comment:n,afterEmptyLine:r}=Hr(this.prelude);if(n){const i=e.contents;if(t)e.comment=e.comment?`${e.comment}\n${n}`:n;else if(r||e.directives.docStart||!i)e.commentBefore=n;else if(dt(i)&&!i.flow&&i.items.length>0){let e=i.items[0];ct(e)&&(e=e.key);const t=e.commentBefore;e.commentBefore=t?`${n}\n${t}`:n}else{const e=i.commentBefore;i.commentBefore=e?`${n}\n${e}`:n}}t?(Array.prototype.push.apply(e.errors,this.errors),Array.prototype.push.apply(e.warnings,this.warnings)):(e.errors=this.errors,e.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:Hr(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,n=-1){for(const t of e)yield*this.next(t);yield*this.end(t,n)}*next(e){switch(e.type){case"directive":this.directives.add(e.source,((t,n,r)=>{const i=Ur(e);i[0]+=t,this.onError(i,"BAD_DIRECTIVE",n,r)})),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{const t=function(e,t,{offset:n,start:r,value:i,end:s},o){const a=Object.assign({_directives:t},e),l=new wr(void 0,a),u={atKey:!1,atRoot:!0,directives:l.directives,options:l.options,schema:l.schema},c=kr(r,{indicator:"doc-start",next:i??s?.[0],offset:n,onError:o,parentIndent:0,startOnNewline:!0});c.found&&(l.directives.docStart=!0,!i||"block-map"!==i.type&&"block-seq"!==i.type||c.hasNewline||o(c.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),l.contents=i?qr(u,i,c,o):Kr(u,c.end,r,null,c,o);const h=l.contents.range[2],f=Or(s,h,!1,o);return f.comment&&(l.comment=f.comment),l.range=[n,h,f.offset],l}(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.docStart&&this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{const t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,n=new Sr(Ur(e),"UNEXPECTED_TOKEN",t);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case"doc-end":{if(!this.doc){const t="Unexpected doc-end without preceding document";this.errors.push(new Sr(Ur(e),"UNEXPECTED_TOKEN",t));break}this.doc.directives.docEnd=!0;const t=Or(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){const e=this.doc.comment;this.doc.comment=e?`${e}\n${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new Sr(Ur(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){const e=Object.assign({_directives:this.directives},this.options),n=new wr(void 0,e);this.atDirectives&&this.onError(t,"MISSING_CHAR","Missing directives-end indicator line"),n.range=[0,t,t],this.decorate(n,!1),yield n}}}const Yr=e=>"type"in e?Gr(e):Qr(e);function Gr(e){switch(e.type){case"block-scalar":{let t="";for(const n of e.props)t+=Gr(n);return t+e.source}case"block-map":case"block-seq":{let t="";for(const n of e.items)t+=Qr(n);return t}case"flow-collection":{let t=e.start.source;for(const n of e.items)t+=Qr(n);for(const n of e.end)t+=n.source;return t}case"document":{let t=Qr(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 Qr({start:e,key:t,sep:n,value:r}){let i="";for(const t of e)i+=t.source;if(t&&(i+=Gr(t)),n)for(const e of n)i+=e.source;return r&&(i+=Gr(r)),i}const Jr=Symbol("break visit"),Xr=Symbol("skip children"),Zr=Symbol("remove item");function ei(e,t){"type"in e&&"document"===e.type&&(e={start:e.start,value:e.value}),ti(Object.freeze([]),e,t)}function ti(e,t,n){let r=n(t,e);if("symbol"==typeof r)return r;for(const i of["key","value"]){const s=t[i];if(s&&"items"in s){for(let t=0;t<s.items.length;++t){const r=ti(Object.freeze(e.concat([[i,t]])),s.items[t],n);if("number"==typeof r)t=r-1;else{if(r===Jr)return Jr;r===Zr&&(s.items.splice(t,1),t-=1)}}"function"==typeof r&&"key"===i&&(r=r(t,e))}}return"function"==typeof r?r(t,e):r}ei.BREAK=Jr,ei.SKIP=Xr,ei.REMOVE=Zr,ei.itemAtPath=(e,t)=>{let n=e;for(const[e,r]of t){const t=n?.[e];if(!t||!("items"in t))return;n=t.items[r]}return n},ei.parentCollection=(e,t)=>{const n=ei.itemAtPath(e,t.slice(0,-1)),r=t[t.length-1][0],i=n?.[r];if(i&&"items"in i)return i;throw new Error("Parent collection not found")};const ni=e=>!!e&&("scalar"===e.type||"single-quoted-scalar"===e.type||"double-quoted-scalar"===e.type||"block-scalar"===e.type);function ri(e){switch(e){case void 0:case" ":case"\n":case"\r":case"\t":return!0;default:return!1}}const ii=new Set("0123456789ABCDEFabcdef"),si=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),oi=new Set(",[]{}"),ai=new Set(" ,[]{}\n\r\t"),li=e=>!e||ai.has(e);class ui{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(e,t=!1){if(e){if("string"!=typeof e)throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null}this.atEnd=!t;let n=this.next??"stream";for(;n&&(t||this.hasChars(1));)n=yield*this.parseNext(n)}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;" "===t||"\t"===t;)t=this.buffer[++e];return!t||"#"===t||"\n"===t||"\r"===t&&"\n"===this.buffer[e+1]}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let n=0;for(;" "===t;)t=this.buffer[++n+e];if("\r"===t){const t=this.buffer[n+e+1];if("\n"===t||!t&&!this.atEnd)return e+n+1}return"\n"===t||n>=this.indentNext||!t&&!this.atEnd?e+n:-1}if("-"===t||"."===t){const t=this.buffer.substr(e,3);if(("---"===t||"..."===t)&&ri(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;return("number"!=typeof e||-1!==e&&e<this.pos)&&(e=this.buffer.indexOf("\n",this.pos),this.lineEndPos=e),-1===e?this.atEnd?this.buffer.substring(this.pos):null:("\r"===this.buffer[e-1]&&(e-=1),this.buffer.substring(this.pos,e))}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=e,null}peek(e){return this.buffer.substr(this.pos,e)}*parseNext(e){switch(e){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 e=this.getLine();if(null===e)return this.setNext("stream");if("\ufeff"===e[0]&&(yield*this.pushCount(1),e=e.substring(1)),"%"===e[0]){let t=e.length,n=e.indexOf("#");for(;-1!==n;){const r=e[n-1];if(" "===r||"\t"===r){t=n-1;break}n=e.indexOf("#",n+1)}for(;;){const n=e[t-1];if(" "!==n&&"\t"!==n)break;t-=1}const r=(yield*this.pushCount(t))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-r),this.pushNewline(),"stream"}if(this.atLineEnd()){const t=yield*this.pushSpaces(!0);return yield*this.pushCount(e.length-t),yield*this.pushNewline(),"stream"}return yield"",yield*this.parseLineStart()}*parseLineStart(){const e=this.charAt(0);if(!e&&!this.atEnd)return this.setNext("line-start");if("-"===e||"."===e){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const e=this.peek(3);if(("---"===e||"..."===e)&&ri(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,"---"===e?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!ri(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if(("-"===e||"?"===e||":"===e)&&ri(t)){const e=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=e,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const e=this.getLine();if(null===e)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);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(li),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return t+=(yield*this.parseBlockScalarHeader()),t+=(yield*this.pushSpaces(!0)),yield*this.pushCount(e.length-t),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t,n=-1;do{e=yield*this.pushNewline(),e>0?(t=yield*this.pushSpaces(!1),this.indentValue=n=t):t=0,t+=(yield*this.pushSpaces(!0))}while(e+t>0);const r=this.getLine();if(null===r)return this.setNext("flow");if((-1!==n&&n<this.indentNext&&"#"!==r[0]||0===n&&(r.startsWith("---")||r.startsWith("..."))&&ri(r[3]))&&(n!==this.indentNext-1||1!==this.flowLevel||"]"!==r[0]&&"}"!==r[0]))return this.flowLevel=0,yield"",yield*this.parseLineStart();let i=0;for(;","===r[i];)i+=(yield*this.pushCount(1)),i+=(yield*this.pushSpaces(!0)),this.flowKey=!1;switch(i+=(yield*this.pushIndicators()),r[i]){case void 0:return"flow";case"#":return yield*this.pushCount(r.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(li),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const e=this.charAt(1);if(this.flowKey||ri(e)||","===e)return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){const e=this.charAt(0);let t=this.buffer.indexOf(e,this.pos+1);if("'"===e)for(;-1!==t&&"'"===this.buffer[t+1];)t=this.buffer.indexOf("'",t+2);else for(;-1!==t;){let e=0;for(;"\\"===this.buffer[t-1-e];)e+=1;if(e%2==0)break;t=this.buffer.indexOf('"',t+1)}const n=this.buffer.substring(0,t);let r=n.indexOf("\n",this.pos);if(-1!==r){for(;-1!==r;){const e=this.continueScalar(r+1);if(-1===e)break;r=n.indexOf("\n",e)}-1!==r&&(t=r-("\r"===n[r-1]?2:1))}if(-1===t){if(!this.atEnd)return this.setNext("quoted-scalar");t=this.buffer.length}return yield*this.pushToIndex(t+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let e=this.pos;for(;;){const t=this.buffer[++e];if("+"===t)this.blockScalarKeep=!0;else if(t>"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if("-"!==t)break}return yield*this.pushUntil((e=>ri(e)||"#"===e))}*parseBlockScalar(){let e,t=this.pos-1,n=0;e:for(let r=this.pos;e=this.buffer[r];++r)switch(e){case" ":n+=1;break;case"\n":t=r,n=0;break;case"\r":{const e=this.buffer[r+1];if(!e&&!this.atEnd)return this.setNext("block-scalar");if("\n"===e)break}default:break e}if(!e&&!this.atEnd)return this.setNext("block-scalar");if(n>=this.indentNext){-1===this.blockScalarIndent?this.indentNext=n:this.indentNext=this.blockScalarIndent+(0===this.indentNext?1:this.indentNext);do{const e=this.continueScalar(t+1);if(-1===e)break;t=this.buffer.indexOf("\n",e)}while(-1!==t);if(-1===t){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}let r=t+1;for(e=this.buffer[r];" "===e;)e=this.buffer[++r];if("\t"===e){for(;"\t"===e||" "===e||"\r"===e||"\n"===e;)e=this.buffer[++r];t=r-1}else if(!this.blockScalarKeep)for(;;){let e=t-1,r=this.buffer[e];"\r"===r&&(r=this.buffer[--e]);const i=e;for(;" "===r;)r=this.buffer[--e];if(!("\n"===r&&e>=this.pos&&e+1+n>i))break;t=e}return yield"",yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const e=this.flowLevel>0;let t,n=this.pos-1,r=this.pos-1;for(;t=this.buffer[++r];)if(":"===t){const t=this.buffer[r+1];if(ri(t)||e&&oi.has(t))break;n=r}else if(ri(t)){let i=this.buffer[r+1];if("\r"===t&&("\n"===i?(r+=1,t="\n",i=this.buffer[r+1]):n=r),"#"===i||e&&oi.has(i))break;if("\n"===t){const e=this.continueScalar(r+1);if(-1===e)break;r=Math.max(r,e-2)}}else{if(e&&oi.has(t))break;n=r}return t||this.atEnd?(yield"",yield*this.pushToIndex(n+1,!0),e?"flow":"doc"):this.setNext("plain-scalar")}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){const n=this.buffer.slice(this.pos,e);return n?(yield n,this.pos+=n.length,n.length):(t&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(li))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const e=this.flowLevel>0,t=this.charAt(1);if(ri(t)||e&&oi.has(t))return e?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 e=this.pos+2,t=this.buffer[e];for(;!ri(t)&&">"!==t;)t=this.buffer[++e];return yield*this.pushToIndex(">"===t?e+1:e,!1)}{let e=this.pos+1,t=this.buffer[e];for(;t;)if(si.has(t))t=this.buffer[++e];else{if("%"!==t||!ii.has(this.buffer[e+1])||!ii.has(this.buffer[e+2]))break;t=this.buffer[e+=3]}return yield*this.pushToIndex(e,!1)}}*pushNewline(){const e=this.buffer[this.pos];return"\n"===e?yield*this.pushCount(1):"\r"===e&&"\n"===this.charAt(1)?yield*this.pushCount(2):0}*pushSpaces(e){let t,n=this.pos-1;do{t=this.buffer[++n]}while(" "===t||e&&"\t"===t);const r=n-this.pos;return r>0&&(yield this.buffer.substr(this.pos,r),this.pos=n),r}*pushUntil(e){let t=this.pos,n=this.buffer[t];for(;!e(n);)n=this.buffer[++t];return yield*this.pushToIndex(t,!1)}}class ci{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,n=this.lineStarts.length;for(;t<n;){const r=t+n>>1;this.lineStarts[r]<e?t=r+1:n=r}return this.lineStarts[t]===e?{line:t+1,col:1}:0===t?{line:0,col:e}:{line:t,col:e-this.lineStarts[t-1]+1}}}}function hi(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function fi(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 di(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 mi(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 pi(e){if(0===e.length)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(;"space"===e[++t]?.type;);return e.splice(t,e.length)}function gi(e){if("flow-seq-start"===e.start.type)for(const t of e.items)!t.sep||t.value||hi(t.start,"explicit-key-ind")||hi(t.sep,"map-value-ind")||(t.key&&(t.value=t.key),delete t.key,di(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 yi{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new ui,this.onNewLine=e}*parse(e,t=!1){this.onNewLine&&0===this.offset&&this.onNewLine(0);for(const n of this.lexer.lex(e,t))yield*this.next(n);t||(yield*this.end())}*next(e){if(this.source=e,this.atScalar)return this.atScalar=!1,yield*this.step(),void(this.offset+=e.length);const t=function(e){switch(e){case"\ufeff":return"byte-order-mark";case"":return"doc-mode";case"":return"flow-error-end";case"":return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case"\n":case"\r\n":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"\t":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}(e);if(t)if("scalar"===t)this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=t,yield*this.step(),t){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case"space":this.atNewLine&&" "===e[0]&&(this.indent+=e.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=e.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=e.length}else{const t=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:t,source:e}),this.offset+=e.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 e=this.peek(1);if("doc-end"!==this.type||e&&"doc-end"===e.type){if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}else{for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source})}}peek(e){return this.stack[this.stack.length-e]}*pop(e){const t=e??this.stack.pop();if(t)if(0===this.stack.length)yield t;else{const e=this.peek(1);switch("block-scalar"===t.type?t.indent="indent"in e?e.indent:0:"flow-collection"===t.type&&"document"===e.type&&(t.indent=0),"flow-collection"===t.type&&gi(t),e.type){case"document":e.value=t;break;case"block-scalar":e.props.push(t);break;case"block-map":{const n=e.items[e.items.length-1];if(n.value)return e.items.push({start:[],key:t,sep:[]}),void(this.onKeyLine=!0);if(!n.sep)return Object.assign(n,{key:t,sep:[]}),void(this.onKeyLine=!n.explicitKey);n.value=t;break}case"block-seq":{const n=e.items[e.items.length-1];n.value?e.items.push({start:[],value:t}):n.value=t;break}case"flow-collection":{const n=e.items[e.items.length-1];return void(!n||n.value?e.items.push({start:[],key:t,sep:[]}):n.sep?n.value=t:Object.assign(n,{key:t,sep:[]}))}default:yield*this.pop(),yield*this.pop(t)}if(!("document"!==e.type&&"block-map"!==e.type&&"block-seq"!==e.type||"block-map"!==t.type&&"block-seq"!==t.type)){const n=t.items[t.items.length-1];n&&!n.sep&&!n.value&&n.start.length>0&&-1===fi(n.start)&&(0===t.indent||n.start.every((e=>"comment"!==e.type||e.indent<t.indent)))&&("document"===e.type?e.end=n.start:e.items.push({start:n.start}),t.items.splice(-1,1))}}else{const e="Tried to pop an empty stack";yield{type:"error",offset:this.offset,source:"",message:e}}}*stream(){switch(this.type){case"directive-line":return void(yield{type:"directive",offset:this.offset,source:this.source});case"byte-order-mark":case"space":case"comment":case"newline":return void(yield this.sourceToken);case"doc-mode":case"doc-start":{const e={type:"document",offset:this.offset,start:[]};return"doc-start"===this.type&&e.start.push(this.sourceToken),void this.stack.push(e)}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(e){if(e.value)return yield*this.lineEnd(e);switch(this.type){case"doc-start":return void(-1!==fi(e.start)?(yield*this.pop(),yield*this.step()):e.start.push(this.sourceToken));case"anchor":case"tag":case"space":case"comment":case"newline":return void e.start.push(this.sourceToken)}const t=this.startBlockValue(e);t?this.stack.push(t):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(e){if("map-value-ind"===this.type){const t=pi(mi(this.peek(2)));let n;e.end?(n=e.end,n.push(this.sourceToken),delete e.end):n=[this.sourceToken];const r={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:t,key:e,sep:n}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=r}else yield*this.lineEnd(e)}*blockScalar(e){switch(this.type){case"space":case"comment":case"newline":return void e.props.push(this.sourceToken);case"scalar":if(e.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let e=this.source.indexOf("\n")+1;for(;0!==e;)this.onNewLine(this.offset+e),e=this.source.indexOf("\n",e)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){const t=e.items[e.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,t.value){const n="end"in t.value?t.value.end:void 0,r=Array.isArray(n)?n[n.length-1]:void 0;"comment"===r?.type?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else{if(this.atIndentedComment(t.start,e.indent)){const n=e.items[e.items.length-2],r=n?.value?.end;if(Array.isArray(r))return Array.prototype.push.apply(r,t.start),r.push(this.sourceToken),void e.items.pop()}t.start.push(this.sourceToken)}return}if(this.indent>=e.indent){const n=!this.onKeyLine&&this.indent===e.indent,r=n&&(t.sep||t.explicitKey)&&"seq-item-ind"!==this.type;let i=[];if(r&&t.sep&&!t.value){const n=[];for(let r=0;r<t.sep.length;++r){const i=t.sep[r];switch(i.type){case"newline":n.push(r);break;case"space":break;case"comment":i.indent>e.indent&&(n.length=0);break;default:n.length=0}}n.length>=2&&(i=t.sep.splice(n[1]))}switch(this.type){case"anchor":case"tag":return void(r||t.value?(i.push(this.sourceToken),e.items.push({start:i}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken));case"explicit-key-ind":return t.sep||t.explicitKey?r||t.value?(i.push(this.sourceToken),e.items.push({start:i,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}):(t.start.push(this.sourceToken),t.explicitKey=!0),void(this.onKeyLine=!0);case"map-value-ind":if(t.explicitKey)if(t.sep)if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(hi(t.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(di(t.key)&&!hi(t.sep,"newline")){const e=pi(t.start),n=t.key,r=t.sep;r.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:n,sep:r}]})}else i.length>0?t.sep=t.sep.concat(i,this.sourceToken):t.sep.push(this.sourceToken);else if(hi(t.start,"newline"))Object.assign(t,{key:null,sep:[this.sourceToken]});else{const e=pi(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}else t.sep?t.value||r?e.items.push({start:i,key:null,sep:[this.sourceToken]}):hi(t.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return void(this.onKeyLine=!0);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const n=this.flowScalar(this.type);return void(r||t.value?(e.items.push({start:i,key:n,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(n):(Object.assign(t,{key:n,sep:[]}),this.onKeyLine=!0))}default:{const t=this.startBlockValue(e);if(t)return n&&"block-seq"!==t.type&&e.items.push({start:i}),void this.stack.push(t)}}}yield*this.pop(),yield*this.step()}*blockSequence(e){const t=e.items[e.items.length-1];switch(this.type){case"newline":if(t.value){const n="end"in t.value?t.value.end:void 0,r=Array.isArray(n)?n[n.length-1]:void 0;"comment"===r?.type?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){const n=e.items[e.items.length-2],r=n?.value?.end;if(Array.isArray(r))return Array.prototype.push.apply(r,t.start),r.push(this.sourceToken),void e.items.pop()}t.start.push(this.sourceToken)}return;case"anchor":case"tag":if(t.value||this.indent<=e.indent)break;return void t.start.push(this.sourceToken);case"seq-item-ind":if(this.indent!==e.indent)break;return void(t.value||hi(t.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken))}if(this.indent>e.indent){const t=this.startBlockValue(e);if(t)return void this.stack.push(t)}yield*this.pop(),yield*this.step()}*flowCollection(e){const t=e.items[e.items.length-1];if("flow-error-end"===this.type){let e;do{yield*this.pop(),e=this.peek(1)}while(e&&"flow-collection"===e.type)}else if(0===e.end.length){switch(this.type){case"comma":case"explicit-key-ind":return void(!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken));case"map-value-ind":return void(!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]}));case"space":case"comment":case"newline":case"anchor":case"tag":return void(!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken));case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const n=this.flowScalar(this.type);return void(!t||t.value?e.items.push({start:[],key:n,sep:[]}):t.sep?this.stack.push(n):Object.assign(t,{key:n,sep:[]}))}case"flow-map-end":case"flow-seq-end":return void e.end.push(this.sourceToken)}const n=this.startBlockValue(e);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{const t=this.peek(2);if("block-map"===t.type&&("map-value-ind"===this.type&&t.indent===e.indent||"newline"===this.type&&!t.items[t.items.length-1].sep))yield*this.pop(),yield*this.step();else if("map-value-ind"===this.type&&"flow-collection"!==t.type){const n=pi(mi(t));gi(e);const r=e.end.splice(1,e.end.length);r.push(this.sourceToken);const i={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:r}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=i}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf("\n")+1;for(;0!==e;)this.onNewLine(this.offset+e),e=this.source.indexOf("\n",e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){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 t=pi(mi(e));return t.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const t=pi(mi(e));return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return"comment"===this.type&&!(this.indent<=t)&&e.every((e=>"newline"===e.type||"space"===e.type))}*documentEnd(e){"doc-mode"!==this.type&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop()))}*lineEnd(e){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:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop())}}}function bi(e,t,n){let r;"function"==typeof t?r=t:void 0===n&&t&&"object"==typeof t&&(n=t);const i=function(e,t={}){const{lineCounter:n,prettyErrors:r}=function(e){const t=!1!==e.prettyErrors;return{lineCounter:e.lineCounter||t&&new ci||null,prettyErrors:t}}(t),i=new yi(n?.addNewLine),s=new zr(t);let o=null;for(const t of s.compose(i.parse(e),!0,e.length))if(o){if("silent"!==o.options.logLevel){o.errors.push(new Sr(t.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}else o=t;return r&&n&&(o.errors.forEach(_r(e,n)),o.warnings.forEach(_r(e,n))),o}(e,n);if(!i)return null;if(i.warnings.forEach((e=>an(i.options.logLevel,e))),i.errors.length>0){if("silent"!==i.options.logLevel)throw i.errors[0];i.errors=[]}return i.toJS(Object.assign({reviver:r},n))}var vi=i(3078),Di=Object.create,wi=Object.defineProperty,Ci=Object.getOwnPropertyDescriptor,Ei=Object.getOwnPropertyNames,Si=Object.getPrototypeOf,Ai=Object.prototype.hasOwnProperty,_i=e=>{throw TypeError(e)},ki=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ni=(e,t)=>{for(var n in t)wi(e,n,{get:t[n],enumerable:!0})},Li=(e,t,n)=>(n=null!=e?Di(Si(e)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of Ei(t))!Ai.call(e,n)&&undefined!==n&&wi(e,n,{get:()=>t[n],enumerable:!(r=Ci(t,n))||r.enumerable});return e})(!t&&e&&e.__esModule?n:wi(n,"default",{value:e,enumerable:!0}),e)),xi=(e,t,n)=>((e,t,n)=>t in e?wi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),Fi=(e,t,n)=>t.has(e)||_i("Cannot "+n),Oi=(e,t,n)=>(Fi(e,t,"read from private field"),n?n.call(e):t.get(e)),Mi=(e,t,n)=>t.has(e)?_i("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Ti=(e,t,n,r)=>(Fi(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Ii=(e,t,n)=>(Fi(e,t,"access private method"),n),Ri=ki((e=>{var t={ANCHOR:"&",COMMENT:"#",TAG:"!",DIRECTIVES_END:"-",DOCUMENT_END:"."},n={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"};function r(e){let t=[0],n=e.indexOf("\n");for(;-1!==n;)n+=1,t.push(n),n=e.indexOf("\n",n);return t}function i(e){let t,n;return"string"==typeof e?(t=r(e),n=e):(Array.isArray(e)&&(e=e[0]),e&&e.context&&(e.lineStarts||(e.lineStarts=r(e.context.src)),t=e.lineStarts,n=e.context.src)),{lineStarts:t,src:n}}function s(e,t){if("number"!=typeof e||e<0)return null;let{lineStarts:n,src:r}=i(t);if(!n||!r||e>r.length)return null;for(let t=0;t<n.length;++t){let r=n[t];if(e<r)return{line:t,col:e-n[t-1]+1};if(e===r)return{line:t+1,col:1}}let s=n.length;return{line:s,col:e-n[s-1]+1}}var o=class e{static copy(t){return new e(t.start,t.end)}constructor(e,t){this.start=e,this.end=t||e}isEmpty(){return"number"!=typeof this.start||!this.end||this.end<=this.start}setOrigRange(e,t){let{start:n,end:r}=this;if(0===e.length||r<=e[0])return this.origStart=n,this.origEnd=r,t;let i=t;for(;i<e.length&&!(e[i]>n);)++i;this.origStart=n+i;let s=i;for(;i<e.length&&!(e[i]>=r);)++i;return this.origEnd=r+i,s}},a=class e{static addStringTerminator(t,n,r){if("\n"===r[r.length-1])return r;let i=e.endOfWhiteSpace(t,n);return i>=t.length||"\n"===t[i]?r+"\n":r}static atDocumentBoundary(e,n,r){let i=e[n];if(!i)return!0;let s=e[n-1];if(s&&"\n"!==s)return!1;if(r){if(i!==r)return!1}else if(i!==t.DIRECTIVES_END&&i!==t.DOCUMENT_END)return!1;let o=e[n+1],a=e[n+2];if(o!==i||a!==i)return!1;let l=e[n+3];return!l||"\n"===l||"\t"===l||" "===l}static endOfIdentifier(e,t){let n=e[t],r="<"===n,i=r?["\n","\t"," ",">"]:["\n","\t"," ","[","]","{","}",","];for(;n&&-1===i.indexOf(n);)n=e[t+=1];return r&&">"===n&&(t+=1),t}static endOfIndent(e,t){let n=e[t];for(;" "===n;)n=e[t+=1];return t}static endOfLine(e,t){let n=e[t];for(;n&&"\n"!==n;)n=e[t+=1];return t}static endOfWhiteSpace(e,t){let n=e[t];for(;"\t"===n||" "===n;)n=e[t+=1];return t}static startOfLine(e,t){let n=e[t-1];if("\n"===n)return t;for(;n&&"\n"!==n;)n=e[t-=1];return t+1}static endOfBlockIndent(t,n,r){let i=e.endOfIndent(t,r);if(i>r+n)return i;{let n=e.endOfWhiteSpace(t,i),r=t[n];if(!r||"\n"===r)return n}return null}static atBlank(e,t,n){let r=e[t];return"\n"===r||"\t"===r||" "===r||n&&!r}static nextNodeIsIndented(e,t,n){return!(!e||t<0)&&(t>0||n&&"-"===e)}static normalizeOffset(t,n){let r=t[n];return r?"\n"!==r&&"\n"===t[n-1]?n-1:e.endOfWhiteSpace(t,n):n}static foldNewline(t,n,r){let i=0,s=!1,o="",a=t[n+1];for(;" "===a||"\t"===a||"\n"===a;){switch(a){case"\n":i=0,n+=1,o+="\n";break;case"\t":i<=r&&(s=!0),n=e.endOfWhiteSpace(t,n+2)-1;break;case" ":i+=1,n+=1}a=t[n+1]}return o||(o=" "),a&&i<=r&&(s=!0),{fold:o,offset:n,error:s}}constructor(e,t,n){Object.defineProperty(this,"context",{value:n||null,writable:!0}),this.error=null,this.range=null,this.valueRange=null,this.props=t||[],this.type=e,this.value=null}getPropValue(e,t,n){if(!this.context)return null;let{src:r}=this.context,i=this.props[e];return i&&r[i.start]===t?r.slice(i.start+(n?1:0),i.end):null}get anchor(){for(let e=0;e<this.props.length;++e){let n=this.getPropValue(e,t.ANCHOR,!0);if(null!=n)return n}return null}get comment(){let e=[];for(let n=0;n<this.props.length;++n){let r=this.getPropValue(n,t.COMMENT,!0);null!=r&&e.push(r)}return e.length>0?e.join("\n"):null}commentHasRequiredWhitespace(t){let{src:n}=this.context;if(this.header&&t===this.header.end||!this.valueRange)return!1;let{end:r}=this.valueRange;return t!==r||e.atBlank(n,r-1)}get hasComment(){if(this.context){let{src:e}=this.context;for(let n=0;n<this.props.length;++n)if(e[this.props[n].start]===t.COMMENT)return!0}return!1}get hasProps(){if(this.context){let{src:e}=this.context;for(let n=0;n<this.props.length;++n)if(e[this.props[n].start]!==t.COMMENT)return!0}return!1}get includesTrailingLines(){return!1}get jsonLike(){return-1!==[n.FLOW_MAP,n.FLOW_SEQ,n.QUOTE_DOUBLE,n.QUOTE_SINGLE].indexOf(this.type)}get rangeAsLinePos(){if(!this.range||!this.context)return;let e=s(this.range.start,this.context.root);return e?{start:e,end:s(this.range.end,this.context.root)}:void 0}get rawValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:t}=this.valueRange;return this.context.src.slice(e,t)}get tag(){for(let e=0;e<this.props.length;++e){let n=this.getPropValue(e,t.TAG,!1);if(null!=n){if("<"===n[1])return{verbatim:n.slice(2,-1)};{let[e,t,r]=n.match(/^(.*!)([^!]*)$/);return{handle:t,suffix:r}}}}return null}get valueRangeContainsNewline(){if(!this.valueRange||!this.context)return!1;let{start:e,end:t}=this.valueRange,{src:n}=this.context;for(let r=e;r<t;++r)if("\n"===n[r])return!0;return!1}parseComment(n){let{src:r}=this.context;if(r[n]===t.COMMENT){let t=e.endOfLine(r,n+1),i=new o(n,t);return this.props.push(i),t}return n}setOrigRanges(e,t){return this.range&&(t=this.range.setOrigRange(e,t)),this.valueRange&&this.valueRange.setOrigRange(e,t),this.props.forEach((n=>n.setOrigRange(e,t))),t}toString(){let{context:{src:t},range:n,value:r}=this;if(null!=r)return r;let i=t.slice(n.start,n.end);return e.addStringTerminator(t,n.end,i)}},l=class extends Error{constructor(e,t,n){if(!(n&&t instanceof a))throw new Error(`Invalid arguments for new ${e}`);super(),this.name=e,this.message=n,this.source=t}makePretty(){if(!this.source)return;this.nodeType=this.source.type;let e=this.source.context&&this.source.context.root;if("number"==typeof this.offset){this.range=new o(this.offset,this.offset+1);let t=e&&s(this.offset,e);if(t){let e={line:t.line,col:t.col+1};this.linePos={start:t,end:e}}delete this.offset}else this.range=this.source.range,this.linePos=this.source.rangeAsLinePos;if(this.linePos){let{line:t,col:n}=this.linePos.start;this.message+=` at line ${t}, column ${n}`;let r=e&&function({start:e,end:t},n,r=80){let s=function(e,t){let{lineStarts:n,src:r}=i(t);if(!n||!(e>=1)||e>n.length)return null;let s=n[e-1],o=n[e];for(;o&&o>s&&"\n"===r[o-1];)--o;return r.slice(s,o)}(e.line,n);if(!s)return null;let{col:o}=e;if(s.length>r)if(o<=r-10)s=s.substr(0,r-1)+"…";else{let e=Math.round(r/2);s.length>o+e&&(s=s.substr(0,o+e-1)+"…"),o-=s.length-r,s="…"+s.substr(1-r)}let a=1,l="";return t&&(t.line===e.line&&o+(t.col-e.col)<=r+1?a=t.col-e.col:(a=Math.min(s.length+1,r)-o,l="…")),`${s}\n${o>1?" ".repeat(o-1):""}${"^".repeat(a)}${l}`}(this.linePos,e);r&&(this.message+=`:\n\n${r}\n`)}delete this.source}},u=class extends l{constructor(e,t){super("YAMLSemanticError",e,t)}};e.Char=t,e.Node=a,e.PlainValue=class e extends a{static endOfLine(e,t,n){let r=e[t],i=t;for(;r&&"\n"!==r&&(!n||"["!==r&&"]"!==r&&"{"!==r&&"}"!==r&&","!==r);){let t=e[i+1];if(":"===r&&(!t||"\n"===t||"\t"===t||" "===t||n&&","===t)||(" "===r||"\t"===r)&&"#"===t)break;i+=1,r=t}return i}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:t}=this.valueRange,{src:n}=this.context,r=n[t-1];for(;e<t&&("\n"===r||"\t"===r||" "===r);)r=n[--t-1];let i="";for(let r=e;r<t;++r){let e=n[r];if("\n"===e){let{fold:e,offset:t}=a.foldNewline(n,r,-1);i+=e,r=t}else if(" "===e||"\t"===e){let s=r,o=n[r+1];for(;r<t&&(" "===o||"\t"===o);)r+=1,o=n[r+1];"\n"!==o&&(i+=r>s?n.slice(s,r+1):e)}else i+=e}let s=n[e];switch(s){case"\t":return{errors:[new u(this,"Plain value cannot start with a tab character")],str:i};case"@":case"`":return{errors:[new u(this,`Plain value cannot start with reserved character ${s}`)],str:i};default:return i}}parseBlockValue(t){let{indent:n,inFlow:r,src:i}=this.context,s=t,o=t;for(let t=i[s];"\n"===t&&!a.atDocumentBoundary(i,s+1);t=i[s]){let t=a.endOfBlockIndent(i,n,s+1);if(null===t||"#"===i[t])break;"\n"===i[t]?s=t:(o=e.endOfLine(i,t,r),s=o)}return this.valueRange.isEmpty()&&(this.valueRange.start=t),this.valueRange.end=o,o}parse(t,n){this.context=t;let{inFlow:r,src:i}=t,s=n,l=i[s];return l&&"#"!==l&&"\n"!==l&&(s=e.endOfLine(i,n,r)),this.valueRange=new o(n,s),s=a.endOfWhiteSpace(i,s),s=this.parseComment(s),(!this.hasComment||this.valueRange.isEmpty())&&(s=this.parseBlockValue(s)),s}},e.Range=o,e.Type=n,e.YAMLError=l,e.YAMLReferenceError=class extends l{constructor(e,t){super("YAMLReferenceError",e,t)}},e.YAMLSemanticError=u,e.YAMLSyntaxError=class extends l{constructor(e,t){super("YAMLSyntaxError",e,t)}},e.YAMLWarning=class extends l{constructor(e,t){super("YAMLWarning",e,t)}},e._defineProperty=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.defaultTagPrefix="tag:yaml.org,2002:",e.defaultTags={MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"}})),Pi=ki((e=>{var t=Ri(),n=class extends t.Node{constructor(){super(t.Type.BLANK_LINE)}get includesTrailingLines(){return!0}parse(e,n){return this.context=e,this.range=new t.Range(n,n+1),n+1}},r=class extends t.Node{constructor(e,t){super(e,t),this.node=null}get includesTrailingLines(){return!!this.node&&this.node.includesTrailingLines}parse(e,r){this.context=e;let{parseNode:i,src:s}=e,{atLineStart:o,lineStart:a}=e;!o&&this.type===t.Type.SEQ_ITEM&&(this.error=new t.YAMLSemanticError(this,"Sequence items must not have preceding content on the same line"));let l=o?r-a:e.indent,u=t.Node.endOfWhiteSpace(s,r+1),c=s[u],h="#"===c,f=[],d=null;for(;"\n"===c||"#"===c;){if("#"===c){let e=t.Node.endOfLine(s,u+1);f.push(new t.Range(u,e)),u=e}else o=!0,a=u+1,"\n"===s[t.Node.endOfWhiteSpace(s,a)]&&0===f.length&&(d=new n,a=d.parse({src:s},a)),u=t.Node.endOfIndent(s,a);c=s[u]}if(t.Node.nextNodeIsIndented(c,u-(a+l),this.type!==t.Type.SEQ_ITEM)?this.node=i({atLineStart:o,inCollection:!1,indent:l,lineStart:a,parent:this},u):c&&a>r+1&&(u=a-1),this.node){if(d){let t=e.parent.items||e.parent.contents;t&&t.push(d)}f.length&&Array.prototype.push.apply(this.props,f),u=this.node.range.end}else if(h){let e=f[0];this.props.push(e),u=e.end}else u=t.Node.endOfLine(s,r+1);let m=this.node?this.node.valueRange.end:u;return this.valueRange=new t.Range(r,m),u}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.node?this.node.setOrigRanges(e,t):t}toString(){let{context:{src:e},node:n,range:r,value:i}=this;if(null!=i)return i;let s=n?e.slice(r.start,n.range.start)+String(n):e.slice(r.start,r.end);return t.Node.addStringTerminator(e,r.end,s)}},i=class extends t.Node{constructor(){super(t.Type.COMMENT)}parse(e,n){this.context=e;let r=this.parseComment(n);return this.range=new t.Range(n,r),r}};function s(e){let n=e;for(;n instanceof r;)n=n.node;if(!(n instanceof o))return null;let i=n.items.length,s=-1;for(let e=i-1;e>=0;--e){let r=n.items[e];if(r.type===t.Type.COMMENT){let{indent:t,lineStart:n}=r.context;if(t>0&&r.range.start>=n+t)break;s=e}else{if(r.type!==t.Type.BLANK_LINE)break;s=e}}if(-1===s)return null;let a=n.items.splice(s,i-s),l=a[0].range.start;for(;n.range.end=l,n.valueRange&&n.valueRange.end>l&&(n.valueRange.end=l),n!==e;)n=n.context.parent;return a}var o=class e extends t.Node{static nextContentHasIndent(n,r,i){let s=t.Node.endOfLine(n,r)+1,o=n[r=t.Node.endOfWhiteSpace(n,s)];return!!o&&(r>=s+i||("#"===o||"\n"===o)&&e.nextContentHasIndent(n,r,i))}constructor(e){super(e.type===t.Type.SEQ_ITEM?t.Type.SEQ:t.Type.MAP);for(let t=e.props.length-1;t>=0;--t)if(e.props[t].start<e.context.lineStart){this.props=e.props.slice(0,t+1),e.props=e.props.slice(t+1);let n=e.props[0]||e.valueRange;e.range.start=n.start;break}this.items=[e];let n=s(e);n&&Array.prototype.push.apply(this.items,n)}get includesTrailingLines(){return this.items.length>0}parse(r,o){this.context=r;let{parseNode:a,src:l}=r,u=t.Node.startOfLine(l,o),c=this.items[0];c.context.parent=this,this.valueRange=t.Range.copy(c.valueRange);let h=c.range.start-c.context.lineStart,f=o;f=t.Node.normalizeOffset(l,f);let d=l[f],m=t.Node.endOfWhiteSpace(l,u)===f,p=!1;for(;d;){for(;"\n"===d||"#"===d;){if(m&&"\n"===d&&!p){let e=new n;if(f=e.parse({src:l},f),this.valueRange.end=f,f>=l.length){d=null;break}this.items.push(e),f-=1}else if("#"===d){if(f<u+h&&!e.nextContentHasIndent(l,f,h))return f;let t=new i;if(f=t.parse({indent:h,lineStart:u,src:l},f),this.items.push(t),this.valueRange.end=f,f>=l.length){d=null;break}}if(u=f+1,f=t.Node.endOfIndent(l,u),t.Node.atBlank(l,f)){let e=t.Node.endOfWhiteSpace(l,f),n=l[e];(!n||"\n"===n||"#"===n)&&(f=e)}d=l[f],m=!0}if(!d)break;if(f!==u+h&&(m||":"!==d)){if(f<u+h){u>o&&(f=u);break}if(!this.error){let e="All collection items must start at the same column";this.error=new t.YAMLSyntaxError(this,e)}}if(c.type===t.Type.SEQ_ITEM){if("-"!==d){u>o&&(f=u);break}}else if("-"===d&&!this.error){let e=l[f+1];if(!e||"\n"===e||"\t"===e||" "===e){let e="A collection cannot be both a mapping and a sequence";this.error=new t.YAMLSyntaxError(this,e)}}let r=a({atLineStart:m,inCollection:!0,indent:h,lineStart:u,parent:this},f);if(!r)return f;if(this.items.push(r),this.valueRange.end=r.valueRange.end,f=t.Node.normalizeOffset(l,r.range.end),d=l[f],m=!1,p=r.includesTrailingLines,d){let e=f-1,t=l[e];for(;" "===t||"\t"===t;)t=l[--e];"\n"===t&&(u=e+1,m=!0)}let g=s(r);g&&Array.prototype.push.apply(this.items,g)}return f}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.items.forEach((n=>{t=n.setOrigRanges(e,t)})),t}toString(){let{context:{src:e},items:n,range:r,value:i}=this;if(null!=i)return i;let s=e.slice(r.start,n[0].range.start)+String(n[0]);for(let e=1;e<n.length;++e){let t=n[e],{atLineStart:r,indent:i}=t.context;if(r)for(let e=0;e<i;++e)s+=" ";s+=String(t)}return t.Node.addStringTerminator(e,r.end,s)}},a=class extends t.Node{constructor(){super(t.Type.DIRECTIVE),this.name=null}get parameters(){let e=this.rawValue;return e?e.trim().split(/[ \t]+/):[]}parseName(e){let{src:t}=this.context,n=e,r=t[n];for(;r&&"\n"!==r&&"\t"!==r&&" "!==r;)r=t[n+=1];return this.name=t.slice(e,n),n}parseParameters(e){let{src:n}=this.context,r=e,i=n[r];for(;i&&"\n"!==i&&"#"!==i;)i=n[r+=1];return this.valueRange=new t.Range(e,r),r}parse(e,n){this.context=e;let r=this.parseName(n+1);return r=this.parseParameters(r),r=this.parseComment(r),this.range=new t.Range(n,r),r}},l=class e extends t.Node{static startCommentOrEndBlankLine(e,n){let r=t.Node.endOfWhiteSpace(e,n),i=e[r];return"#"===i||"\n"===i?r:n}constructor(){super(t.Type.DOCUMENT),this.directives=null,this.contents=null,this.directivesEndMarker=null,this.documentEndMarker=null}parseDirectives(r){let{src:s}=this.context;this.directives=[];let o=!0,l=!1,u=r;for(;!t.Node.atDocumentBoundary(s,u,t.Char.DIRECTIVES_END);)switch(u=e.startCommentOrEndBlankLine(s,u),s[u]){case"\n":if(o){let e=new n;u=e.parse({src:s},u),u<s.length&&this.directives.push(e)}else u+=1,o=!0;break;case"#":{let e=new i;u=e.parse({src:s},u),this.directives.push(e),o=!1}break;case"%":{let e=new a;u=e.parse({parent:this,src:s},u),this.directives.push(e),l=!0,o=!1}break;default:return l?this.error=new t.YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),u}return s[u]?(this.directivesEndMarker=new t.Range(u,u+3),u+3):(l?this.error=new t.YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),u)}parseContents(r){let{parseNode:o,src:a}=this.context;this.contents||(this.contents=[]);let l=r;for(;"-"===a[l-1];)l-=1;let u=t.Node.endOfWhiteSpace(a,r),c=l===r;for(this.valueRange=new t.Range(u);!t.Node.atDocumentBoundary(a,u,t.Char.DOCUMENT_END);){switch(a[u]){case"\n":if(c){let e=new n;u=e.parse({src:a},u),u<a.length&&this.contents.push(e)}else u+=1,c=!0;l=u;break;case"#":{let e=new i;u=e.parse({src:a},u),this.contents.push(e),c=!1}break;default:{let e=t.Node.endOfIndent(a,u),n=o({atLineStart:c,indent:-1,inFlow:!1,inCollection:!1,lineStart:l,parent:this},e);if(!n)return this.valueRange.end=e;this.contents.push(n),u=n.range.end,c=!1;let r=s(n);r&&Array.prototype.push.apply(this.contents,r)}}u=e.startCommentOrEndBlankLine(a,u)}if(this.valueRange.end=u,a[u]&&(this.documentEndMarker=new t.Range(u,u+3),u+=3,a[u])){if(u=t.Node.endOfWhiteSpace(a,u),"#"===a[u]){let e=new i;u=e.parse({src:a},u),this.contents.push(e)}switch(a[u]){case"\n":u+=1;break;case void 0:break;default:this.error=new t.YAMLSyntaxError(this,"Document end marker line cannot have a non-comment suffix")}}return u}parse(e,t){e.root=this,this.context=e;let{src:n}=e,r=65279===n.charCodeAt(t)?t+1:t;return r=this.parseDirectives(r),r=this.parseContents(r),r}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.directives.forEach((n=>{t=n.setOrigRanges(e,t)})),this.directivesEndMarker&&(t=this.directivesEndMarker.setOrigRange(e,t)),this.contents.forEach((n=>{t=n.setOrigRanges(e,t)})),this.documentEndMarker&&(t=this.documentEndMarker.setOrigRange(e,t)),t}toString(){let{contents:e,directives:n,value:r}=this;if(null!=r)return r;let i=n.join("");return e.length>0&&((n.length>0||e[0].type===t.Type.COMMENT)&&(i+="---\n"),i+=e.join("")),"\n"!==i[i.length-1]&&(i+="\n"),i}},u=class extends t.Node{parse(e,n){this.context=e;let{src:r}=e,i=t.Node.endOfIdentifier(r,n+1);return this.valueRange=new t.Range(n+1,i),i=t.Node.endOfWhiteSpace(r,i),i=this.parseComment(i),i}},c="KEEP",h="STRIP",f=class extends t.Node{constructor(e,t){super(e,t),this.blockIndent=null,this.chomping="CLIP",this.header=null}get includesTrailingLines(){return this.chomping===c}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:n}=this.valueRange,{indent:r,src:i}=this.context;if(this.valueRange.isEmpty())return"";let s=null,o=i[n-1];for(;"\n"===o||"\t"===o||" "===o;){if(n-=1,n<=e){if(this.chomping===c)break;return""}"\n"===o&&(s=n),o=i[n-1]}let a=n+1;s&&(this.chomping===c?(a=s,n=this.valueRange.end):n=s);let l=r+this.blockIndent,u=this.type===t.Type.BLOCK_FOLDED,f=!0,d="",m="",p=!1;for(let r=e;r<n;++r){for(let e=0;e<l&&" "===i[r];++e)r+=1;let e=i[r];if("\n"===e)"\n"===m?d+="\n":m="\n";else{let s=t.Node.endOfLine(i,r),o=i.slice(r,s);r=s,u&&(" "===e||"\t"===e)&&r<a?(" "===m?m="\n":!p&&!f&&"\n"===m&&(m="\n\n"),d+=m+o,m=s<n&&i[s]||"",p=!0):(d+=m+o,m=u&&r<a?" ":"\n",p=!1),f&&""!==o&&(f=!1)}}return this.chomping===h?d:d+"\n"}parseBlockHeader(e){let{src:n}=this.context,r=e+1,i="";for(;;){let s=n[r];switch(s){case"-":this.chomping=h;break;case"+":this.chomping=c;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":i+=s;break;default:return this.blockIndent=Number(i)||null,this.header=new t.Range(e,r),r}r+=1}}parseBlockValue(e){let{indent:n,src:r}=this.context,i=!!this.blockIndent,s=e,o=e,a=1;for(let e=r[s];"\n"===e&&(s+=1,!t.Node.atDocumentBoundary(r,s));e=r[s]){let e=t.Node.endOfBlockIndent(r,n,s);if(null===e)break;let l=r[e],u=e-(s+n);if(this.blockIndent){if(l&&"\n"!==l&&u<this.blockIndent){if("#"===r[e])break;if(!this.error){let e="Block scalars must not be less indented than their "+(i?"explicit indentation indicator":"first line");this.error=new t.YAMLSemanticError(this,e)}}}else if("\n"!==r[e]){if(u<a){let e="Block scalars with more-indented leading empty lines must use an explicit indentation indicator";this.error=new t.YAMLSemanticError(this,e)}this.blockIndent=u}else u>a&&(a=u);s="\n"===r[e]?e:o=t.Node.endOfLine(r,e)}return this.chomping!==c&&(s=r[o]?o+1:o),this.valueRange=new t.Range(e+1,s),s}parse(e,n){this.context=e;let{src:r}=e,i=this.parseBlockHeader(n);return i=t.Node.endOfWhiteSpace(r,i),i=this.parseComment(i),i=this.parseBlockValue(i),i}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.header?this.header.setOrigRange(e,t):t}},d=class extends t.Node{constructor(e,t){super(e,t),this.items=null}prevNodeIsJsonLike(e=this.items.length){let n=this.items[e-1];return!!n&&(n.jsonLike||n.type===t.Type.COMMENT&&this.prevNodeIsJsonLike(e-1))}parse(e,r){this.context=e;let{parseNode:s,src:o}=e,{indent:a,lineStart:l}=e,u=o[r];this.items=[{char:u,offset:r}];let c=t.Node.endOfWhiteSpace(o,r+1);for(u=o[c];u&&"]"!==u&&"}"!==u;){switch(u){case"\n":if(l=c+1,"\n"===o[t.Node.endOfWhiteSpace(o,l)]){let e=new n;l=e.parse({src:o},l),this.items.push(e)}if(c=t.Node.endOfIndent(o,l),c<=l+a&&(u=o[c],c<l+a||"]"!==u&&"}"!==u)){let e="Insufficient indentation in flow collection";this.error=new t.YAMLSemanticError(this,e)}break;case",":this.items.push({char:u,offset:c}),c+=1;break;case"#":{let e=new i;c=e.parse({src:o},c),this.items.push(e)}break;case"?":case":":{let e=o[c+1];if("\n"===e||"\t"===e||" "===e||","===e||":"===u&&this.prevNodeIsJsonLike()){this.items.push({char:u,offset:c}),c+=1;break}}default:{let e=s({atLineStart:!1,inCollection:!1,inFlow:!0,indent:-1,lineStart:l,parent:this},c);if(!e)return this.valueRange=new t.Range(r,c),c;this.items.push(e),c=t.Node.normalizeOffset(o,e.range.end)}}c=t.Node.endOfWhiteSpace(o,c),u=o[c]}return this.valueRange=new t.Range(r,c+1),u&&(this.items.push({char:u,offset:c}),c=t.Node.endOfWhiteSpace(o,c+1),c=this.parseComment(c)),c}setOrigRanges(e,n){return n=super.setOrigRanges(e,n),this.items.forEach((r=>{if(r instanceof t.Node)n=r.setOrigRanges(e,n);else if(0===e.length)r.origOffset=r.offset;else{let t=n;for(;t<e.length&&!(e[t]>r.offset);)++t;r.origOffset=r.offset+t,n=t}})),n}toString(){let{context:{src:e},items:n,range:r,value:i}=this;if(null!=i)return i;let s=n.filter((e=>e instanceof t.Node)),o="",a=r.start;return s.forEach((t=>{let n=e.slice(a,t.range.start);a=t.range.end,o+=n+String(t),"\n"===o[o.length-1]&&"\n"!==e[a-1]&&"\n"===e[a]&&(a+=1)})),o+=e.slice(a,r.end),t.Node.addStringTerminator(e,r.end,o)}},m=class e extends t.Node{static endOfQuote(e,t){let n=e[t];for(;n&&'"'!==n;)n=e[t+="\\"===n?2:1];return t+1}get strValue(){if(!this.valueRange||!this.context)return null;let e=[],{start:n,end:r}=this.valueRange,{indent:i,src:s}=this.context;'"'!==s[r-1]&&e.push(new t.YAMLSyntaxError(this,'Missing closing "quote'));let o="";for(let a=n+1;a<r-1;++a){let n=s[a];if("\n"===n){t.Node.atDocumentBoundary(s,a+1)&&e.push(new t.YAMLSemanticError(this,"Document boundary indicators are not allowed within string values"));let{fold:n,offset:r,error:l}=t.Node.foldNewline(s,a,i);o+=n,a=r,l&&e.push(new t.YAMLSemanticError(this,"Multi-line double-quoted string needs to be sufficiently indented"))}else if("\\"===n)switch(a+=1,s[a]){case"0":o+="\0";break;case"a":o+="";break;case"b":o+="\b";break;case"e":o+="";break;case"f":o+="\f";break;case"n":o+="\n";break;case"r":o+="\r";break;case"t":case"\t":o+="\t";break;case"v":o+="\v";break;case"N":o+="…";break;case"_":o+=" ";break;case"L":o+="\u2028";break;case"P":o+="\u2029";break;case" ":o+=" ";break;case'"':o+='"';break;case"/":o+="/";break;case"\\":o+="\\";break;case"x":o+=this.parseCharCode(a+1,2,e),a+=2;break;case"u":o+=this.parseCharCode(a+1,4,e),a+=4;break;case"U":o+=this.parseCharCode(a+1,8,e),a+=8;break;case"\n":for(;" "===s[a+1]||"\t"===s[a+1];)a+=1;break;default:e.push(new t.YAMLSyntaxError(this,`Invalid escape sequence ${s.substr(a-1,2)}`)),o+="\\"+s[a]}else if(" "===n||"\t"===n){let e=a,t=s[a+1];for(;" "===t||"\t"===t;)a+=1,t=s[a+1];"\n"!==t&&(o+=a>e?s.slice(e,a+1):n)}else o+=n}return e.length>0?{errors:e,str:o}:o}parseCharCode(e,n,r){let{src:i}=this.context,s=i.substr(e,n),o=s.length===n&&/^[0-9a-fA-F]+$/.test(s)?parseInt(s,16):NaN;return isNaN(o)?(r.push(new t.YAMLSyntaxError(this,`Invalid escape sequence ${i.substr(e-2,n+2)}`)),i.substr(e-2,n+2)):String.fromCodePoint(o)}parse(n,r){this.context=n;let{src:i}=n,s=e.endOfQuote(i,r+1);return this.valueRange=new t.Range(r,s),s=t.Node.endOfWhiteSpace(i,s),s=this.parseComment(s),s}},p=class e extends t.Node{static endOfQuote(e,t){let n=e[t];for(;n;)if("'"===n){if("'"!==e[t+1])break;n=e[t+=2]}else n=e[t+=1];return t+1}get strValue(){if(!this.valueRange||!this.context)return null;let e=[],{start:n,end:r}=this.valueRange,{indent:i,src:s}=this.context;"'"!==s[r-1]&&e.push(new t.YAMLSyntaxError(this,"Missing closing 'quote"));let o="";for(let a=n+1;a<r-1;++a){let n=s[a];if("\n"===n){t.Node.atDocumentBoundary(s,a+1)&&e.push(new t.YAMLSemanticError(this,"Document boundary indicators are not allowed within string values"));let{fold:n,offset:r,error:l}=t.Node.foldNewline(s,a,i);o+=n,a=r,l&&e.push(new t.YAMLSemanticError(this,"Multi-line single-quoted string needs to be sufficiently indented"))}else if("'"===n)o+=n,a+=1,"'"!==s[a]&&e.push(new t.YAMLSyntaxError(this,"Unescaped single quote? This should not happen."));else if(" "===n||"\t"===n){let e=a,t=s[a+1];for(;" "===t||"\t"===t;)a+=1,t=s[a+1];"\n"!==t&&(o+=a>e?s.slice(e,a+1):n)}else o+=n}return e.length>0?{errors:e,str:o}:o}parse(n,r){this.context=n;let{src:i}=n,s=e.endOfQuote(i,r+1);return this.valueRange=new t.Range(r,s),s=t.Node.endOfWhiteSpace(i,s),s=this.parseComment(s),s}},g=class e{static parseType(e,n,r){switch(e[n]){case"*":return t.Type.ALIAS;case">":return t.Type.BLOCK_FOLDED;case"|":return t.Type.BLOCK_LITERAL;case"{":return t.Type.FLOW_MAP;case"[":return t.Type.FLOW_SEQ;case"?":return!r&&t.Node.atBlank(e,n+1,!0)?t.Type.MAP_KEY:t.Type.PLAIN;case":":return!r&&t.Node.atBlank(e,n+1,!0)?t.Type.MAP_VALUE:t.Type.PLAIN;case"-":return!r&&t.Node.atBlank(e,n+1,!0)?t.Type.SEQ_ITEM:t.Type.PLAIN;case'"':return t.Type.QUOTE_DOUBLE;case"'":return t.Type.QUOTE_SINGLE;default:return t.Type.PLAIN}}constructor(n={},{atLineStart:i,inCollection:s,inFlow:a,indent:l,lineStart:c,parent:h}={}){t._defineProperty(this,"parseNode",((n,i)=>{if(t.Node.atDocumentBoundary(this.src,i))return null;let s=new e(this,n),{props:a,type:l,valueStart:c}=s.parseProps(i),h=function(e,n){switch(e){case t.Type.ALIAS:return new u(e,n);case t.Type.BLOCK_FOLDED:case t.Type.BLOCK_LITERAL:return new f(e,n);case t.Type.FLOW_MAP:case t.Type.FLOW_SEQ:return new d(e,n);case t.Type.MAP_KEY:case t.Type.MAP_VALUE:case t.Type.SEQ_ITEM:return new r(e,n);case t.Type.COMMENT:case t.Type.PLAIN:return new t.PlainValue(e,n);case t.Type.QUOTE_DOUBLE:return new m(e,n);case t.Type.QUOTE_SINGLE:return new p(e,n);default:return null}}(l,a),g=h.parse(s,c);if(h.range=new t.Range(i,g),g<=i&&(h.error=new Error("Node#parse consumed no characters"),h.error.parseEnd=g,h.error.source=h,h.range.end=i+1),s.nodeStartsCollection(h)){!h.error&&!s.atLineStart&&s.parent.type===t.Type.DOCUMENT&&(h.error=new t.YAMLSyntaxError(h,"Block collection must not have preceding content here (e.g. directives-end indicator)"));let n=new o(h);return g=n.parse(new e(s),g),n.range=new t.Range(i,g),n}return h})),this.atLineStart=i??(n.atLineStart||!1),this.inCollection=s??(n.inCollection||!1),this.inFlow=a??(n.inFlow||!1),this.indent=l??n.indent,this.lineStart=c??n.lineStart,this.parent=h??(n.parent||{}),this.root=n.root,this.src=n.src}nodeStartsCollection(e){let{inCollection:n,inFlow:i,src:s}=this;if(n||i)return!1;if(e instanceof r)return!0;let o=e.range.end;return"\n"!==s[o]&&"\n"!==s[o-1]&&(o=t.Node.endOfWhiteSpace(s,o),":"===s[o])}parseProps(n){let{inFlow:r,parent:i,src:s}=this,o=[],a=!1,l=s[n=this.atLineStart?t.Node.endOfIndent(s,n):t.Node.endOfWhiteSpace(s,n)];for(;l===t.Char.ANCHOR||l===t.Char.COMMENT||l===t.Char.TAG||"\n"===l;){if("\n"===l){let e,r=n;do{e=r+1,r=t.Node.endOfIndent(s,e)}while("\n"===s[r]);let o=r-(e+this.indent),l=i.type===t.Type.SEQ_ITEM&&i.context.atLineStart;if("#"!==s[r]&&!t.Node.nextNodeIsIndented(s[r],o,!l))break;this.atLineStart=!0,this.lineStart=e,a=!1,n=r}else if(l===t.Char.COMMENT){let e=t.Node.endOfLine(s,n+1);o.push(new t.Range(n,e)),n=e}else{let e=t.Node.endOfIdentifier(s,n+1);l===t.Char.TAG&&","===s[e]&&/^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(s.slice(n+1,e+13))&&(e=t.Node.endOfIdentifier(s,e+5)),o.push(new t.Range(n,e)),a=!0,n=t.Node.endOfWhiteSpace(s,e)}l=s[n]}return a&&":"===l&&t.Node.atBlank(s,n+1,!0)&&(n-=1),{props:o,type:e.parseType(s,n,r),valueStart:n}}};e.parse=function(e){let t=[];-1!==e.indexOf("\r")&&(e=e.replace(/\r\n?/g,((e,n)=>(e.length>1&&t.push(n),"\n"))));let n=[],r=0;do{let t=new l,i=new g({src:e});r=t.parse(i,r),n.push(t)}while(r<e.length);return n.setOrigRanges=()=>{if(0===t.length)return!1;for(let e=1;e<t.length;++e)t[e]-=e;let e=0;for(let r=0;r<n.length;++r)e=n[r].setOrigRanges(t,e);return t.splice(0,t.length),!0},n.toString=()=>n.join("...\n"),n}})),Bi=ki((e=>{var t=Ri();function n(e,t,n){return n?-1===n.indexOf("\n")?`${e} #${n}`:`${e}\n`+n.replace(/^/gm,`${t||""}#`):e}var r=class{};function i(e,t,n){if(Array.isArray(e))return e.map(((e,t)=>i(e,String(t),n)));if(e&&"function"==typeof e.toJSON){let r=n&&n.anchors&&n.anchors.get(e);r&&(n.onCreate=e=>{r.res=e,delete n.onCreate});let i=e.toJSON(t,n);return r&&n.onCreate&&n.onCreate(i),i}return n&&n.keep||"bigint"!=typeof e?e:Number(e)}var s=class extends r{constructor(e){super(),this.value=e}toJSON(e,t){return t&&t.keep?this.value:i(this.value,e,t)}toString(){return String(this.value)}};function o(e,t,n){let r=n;for(let e=t.length-1;e>=0;--e){let n=t[e];if(Number.isInteger(n)&&n>=0){let e=[];e[n]=r,r=e}else{let e={};Object.defineProperty(e,n,{value:r,writable:!0,enumerable:!0,configurable:!0}),r=e}}return e.createNode(r,!1)}var a=e=>null==e||"object"==typeof e&&e[Symbol.iterator]().next().done,l=class e extends r{constructor(e){super(),t._defineProperty(this,"items",[]),this.schema=e}addIn(t,n){if(a(t))this.add(n);else{let[r,...i]=t,s=this.get(r,!0);if(s instanceof e)s.addIn(i,n);else{if(void 0!==s||!this.schema)throw new Error(`Expected YAML collection at ${r}. Remaining path: ${i}`);this.set(r,o(this.schema,i,n))}}}deleteIn([t,...n]){if(0===n.length)return this.delete(t);let r=this.get(t,!0);if(r instanceof e)return r.deleteIn(n);throw new Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn([t,...n],r){let i=this.get(t,!0);return 0===n.length?!r&&i instanceof s?i.value:i:i instanceof e?i.getIn(n,r):void 0}hasAllNullValues(){return this.items.every((e=>{if(!e||"PAIR"!==e.type)return!1;let t=e.value;return null==t||t instanceof s&&null==t.value&&!t.commentBefore&&!t.comment&&!t.tag}))}hasIn([t,...n]){if(0===n.length)return this.has(t);let r=this.get(t,!0);return r instanceof e&&r.hasIn(n)}setIn([t,...n],r){if(0===n.length)this.set(t,r);else{let i=this.get(t,!0);if(i instanceof e)i.setIn(n,r);else{if(void 0!==i||!this.schema)throw new Error(`Expected YAML collection at ${t}. Remaining path: ${n}`);this.set(t,o(this.schema,n,r))}}}toJSON(){return null}toString(r,{blockItem:i,flowChars:s,isMap:o,itemIndent:a},l,u){let{indent:c,indentStep:h,stringify:f}=r,d=this.type===t.Type.FLOW_MAP||this.type===t.Type.FLOW_SEQ||r.inFlow;d&&(a+=h);let m=o&&this.hasAllNullValues();r=Object.assign({},r,{allNullValues:m,indent:a,inFlow:d,type:null});let p,g=!1,y=!1,b=this.items.reduce(((e,t,i)=>{let s;t&&(!g&&t.spaceBefore&&e.push({type:"comment",str:""}),t.commentBefore&&t.commentBefore.match(/^.*$/gm).forEach((t=>{e.push({type:"comment",str:`#${t}`})})),t.comment&&(s=t.comment),d&&(!g&&t.spaceBefore||t.commentBefore||t.comment||t.key&&(t.key.commentBefore||t.key.comment)||t.value&&(t.value.commentBefore||t.value.comment))&&(y=!0)),g=!1;let o=f(t,r,(()=>s=null),(()=>g=!0));return d&&!y&&o.includes("\n")&&(y=!0),d&&i<this.items.length-1&&(o+=","),o=n(o,a,s),g&&(s||d)&&(g=!1),e.push({type:"item",str:o}),e}),[]);if(0===b.length)p=s.start+s.end;else if(d){let{start:t,end:n}=s,r=b.map((e=>e.str));if(y||r.reduce(((e,t)=>e+t.length+2),2)>e.maxFlowStringSingleLineLength){p=t;for(let e of r)p+=e?`\n${h}${c}${e}`:"\n";p+=`\n${c}${n}`}else p=`${t} ${r.join(" ")} ${n}`}else{let e=b.map(i);p=e.shift();for(let t of e)p+=t?`\n${c}${t}`:"\n"}return this.comment?(p+="\n"+this.comment.replace(/^/gm,`${c}#`),l&&l()):g&&u&&u(),p}};function u(e){let t=e instanceof s?e.value:e;return t&&"string"==typeof t&&(t=Number(t)),Number.isInteger(t)&&t>=0?t:null}t._defineProperty(l,"maxFlowStringSingleLineLength",60);var c=class extends l{add(e){this.items.push(e)}delete(e){let t=u(e);return"number"==typeof t&&this.items.splice(t,1).length>0}get(e,t){let n=u(e);if("number"!=typeof n)return;let r=this.items[n];return!t&&r instanceof s?r.value:r}has(e){let t=u(e);return"number"==typeof t&&t<this.items.length}set(e,t){let n=u(e);if("number"!=typeof n)throw new Error(`Expected a valid index, not ${e}.`);this.items[n]=t}toJSON(e,t){let n=[];t&&t.onCreate&&t.onCreate(n);let r=0;for(let e of this.items)n.push(i(e,String(r++),t));return n}toString(e,t,n){return e?super.toString(e,{blockItem:e=>"comment"===e.type?e.str:`- ${e.str}`,flowChars:{start:"[",end:"]"},isMap:!1,itemIndent:(e.indent||"")+" "},t,n):JSON.stringify(this)}},h=class e extends r{constructor(t,n=null){super(),this.key=t,this.value=n,this.type=e.Type.PAIR}get commentBefore(){return this.key instanceof r?this.key.commentBefore:void 0}set commentBefore(e){if(null==this.key&&(this.key=new s(null)),!(this.key instanceof r))throw new Error("Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.");this.key.commentBefore=e}addToJSMap(e,t){let n=i(this.key,"",e);if(t instanceof Map){let r=i(this.value,n,e);t.set(n,r)}else if(t instanceof Set)t.add(n);else{let s=((e,t,n)=>null===t?"":"object"!=typeof t?String(t):e instanceof r&&n&&n.doc?e.toString({anchors:Object.create(null),doc:n.doc,indent:"",indentStep:n.indentStep,inFlow:!0,inStringifyKey:!0,stringify:n.stringify}):JSON.stringify(t))(this.key,n,e),o=i(this.value,s,e);s in t?Object.defineProperty(t,s,{value:o,writable:!0,enumerable:!0,configurable:!0}):t[s]=o}return t}toJSON(e,t){let n=t&&t.mapAsMap?new Map:{};return this.addToJSMap(t,n)}toString(e,i,o){if(!e||!e.doc)return JSON.stringify(this);let{indent:a,indentSeq:u,simpleKeys:h}=e.doc.options,{key:f,value:d}=this,m=f instanceof r&&f.comment;if(h){if(m)throw new Error("With simple keys, key nodes cannot have comments");if(f instanceof l)throw new Error("With simple keys, collection cannot be used as a key value")}let p=!h&&(!f||m||(f instanceof r?f instanceof l||f.type===t.Type.BLOCK_FOLDED||f.type===t.Type.BLOCK_LITERAL:"object"==typeof f)),{doc:g,indent:y,indentStep:b,stringify:v}=e;e=Object.assign({},e,{implicitKey:!p,indent:y+b});let D=!1,w=v(f,e,(()=>m=null),(()=>D=!0));if(w=n(w,e.indent,m),!p&&w.length>1024){if(h)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");p=!0}if(e.allNullValues&&!h)return this.comment?(w=n(w,e.indent,this.comment),i&&i()):D&&!m&&o&&o(),e.inFlow&&!p?w:`? ${w}`;w=p?`? ${w}\n${y}:`:`${w}:`,this.comment&&(w=n(w,e.indent,this.comment),i&&i());let C="",E=null;d instanceof r?(d.spaceBefore&&(C="\n"),d.commentBefore&&(C+=`\n${d.commentBefore.replace(/^/gm,`${e.indent}#`)}`),E=d.comment):d&&"object"==typeof d&&(d=g.schema.createNode(d,!0)),e.implicitKey=!1,!p&&!this.comment&&d instanceof s&&(e.indentAtStart=w.length+1),D=!1,!u&&a>=2&&!e.inFlow&&!p&&d instanceof c&&d.type!==t.Type.FLOW_SEQ&&!d.tag&&!g.anchors.getName(d)&&(e.indent=e.indent.substr(2));let S=v(d,e,(()=>E=null),(()=>D=!0)),A=" ";return C||this.comment?A=`${C}\n${e.indent}`:!p&&d instanceof l?(!("["===S[0]||"{"===S[0])||S.includes("\n"))&&(A=`\n${e.indent}`):"\n"===S[0]&&(A=""),D&&!E&&o&&o(),n(w+A+S,e.indent,E)}};t._defineProperty(h,"Type",{PAIR:"PAIR",MERGE_PAIR:"MERGE_PAIR"});var f=(e,t)=>{if(e instanceof d){let n=t.get(e.source);return n.count*n.aliasCount}if(e instanceof l){let n=0;for(let r of e.items){let e=f(r,t);e>n&&(n=e)}return n}if(e instanceof h){let n=f(e.key,t),r=f(e.value,t);return Math.max(n,r)}return 1},d=class e extends r{static stringify({range:e,source:t},{anchors:n,doc:r,implicitKey:i,inStringifyKey:s}){let o=Object.keys(n).find((e=>n[e]===t));if(!o&&s&&(o=r.anchors.getName(t)||r.anchors.newName()),o)return`*${o}${i?" ":""}`;let a=r.anchors.getName(t)?"Alias node must be after source node":"Source node not found for alias node";throw new Error(`${a} [${e}]`)}constructor(e){super(),this.source=e,this.type=t.Type.ALIAS}set tag(e){throw new Error("Alias nodes cannot have tags")}toJSON(e,n){if(!n)return i(this.source,e,n);let{anchors:r,maxAliasCount:s}=n,o=r.get(this.source);if(!o||void 0===o.res){let e="This should not happen: Alias anchor was not resolved?";throw this.cstNode?new t.YAMLReferenceError(this.cstNode,e):new ReferenceError(e)}if(s>=0&&(o.count+=1,0===o.aliasCount&&(o.aliasCount=f(this.source,r)),o.count*o.aliasCount>s)){let e="Excessive alias count indicates a resource exhaustion attack";throw this.cstNode?new t.YAMLReferenceError(this.cstNode,e):new ReferenceError(e)}return o.res}toString(t){return e.stringify(this,t)}};function m(e,t){let n=t instanceof s?t.value:t;for(let r of e)if(r instanceof h&&(r.key===t||r.key===n||r.key&&r.key.value===n))return r}t._defineProperty(d,"default",!0);var p=class extends l{add(e,t){e?e instanceof h||(e=new h(e.key||e,e.value)):e=new h(e);let n=m(this.items,e.key),r=this.schema&&this.schema.sortMapEntries;if(n){if(!t)throw new Error(`Key ${e.key} already set`);n.value=e.value}else if(r){let t=this.items.findIndex((t=>r(e,t)<0));-1===t?this.items.push(e):this.items.splice(t,0,e)}else this.items.push(e)}delete(e){let t=m(this.items,e);return!!t&&this.items.splice(this.items.indexOf(t),1).length>0}get(e,t){let n=m(this.items,e),r=n&&n.value;return!t&&r instanceof s?r.value:r}has(e){return!!m(this.items,e)}set(e,t){this.add(new h(e,t),!0)}toJSON(e,t,n){let r=n?new n:t&&t.mapAsMap?new Map:{};t&&t.onCreate&&t.onCreate(r);for(let e of this.items)e.addToJSMap(t,r);return r}toString(e,t,n){if(!e)return JSON.stringify(this);for(let e of this.items)if(!(e instanceof h))throw new Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return super.toString(e,{blockItem:e=>e.str,flowChars:{start:"{",end:"}"},isMap:!0,itemIndent:e.indent||""},t,n)}},g=class extends h{constructor(e){if(e instanceof h){let t=e.value;t instanceof c||(t=new c,t.items.push(e.value),t.range=e.value.range),super(e.key,t),this.range=e.range}else super(new s("<<"),new c);this.type=h.Type.MERGE_PAIR}addToJSMap(e,t){for(let{source:n}of this.value.items){if(!(n instanceof p))throw new Error("Merge sources must be maps");let r=n.toJSON(null,e,Map);for(let[e,n]of r)t instanceof Map?t.has(e)||t.set(e,n):t instanceof Set?t.add(e):Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{value:n,writable:!0,enumerable:!0,configurable:!0})}return t}toString(e,t){let n=this.value;if(n.items.length>1)return super.toString(e,t);this.value=n.items[0];let r=super.toString(e,t);return this.value=n,r}},y={defaultType:t.Type.BLOCK_LITERAL,lineWidth:76},b={defaultType:t.Type.PLAIN,doubleQuoted:{jsonEncoding:!1,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};function v(e,t,n){for(let{format:n,test:r,resolve:i}of t)if(r){let t=e.match(r);if(t){let e=i.apply(null,t);return e instanceof s||(e=new s(e)),n&&(e.format=n),e}}return n&&(e=n(e)),new s(e)}var D="flow",w="block",C="quoted",E=(e,t)=>{let n=e[t+1];for(;" "===n||"\t"===n;){do{n=e[t+=1]}while(n&&"\n"!==n);n=e[t+1]}return t};function S(e,t,n,{indentAtStart:r,lineWidth:i=80,minContentWidth:s=20,onFold:o,onOverflow:a}){if(!i||i<0)return e;let l=Math.max(1+s,1+i-t.length);if(e.length<=l)return e;let u=[],c={},h=i-t.length;"number"==typeof r&&(r>i-Math.max(2,s)?u.push(0):h=i-r);let f,d,m=!1,p=-1,g=-1,y=-1;n===w&&(p=E(e,p),-1!==p&&(h=p+l));for(let t;t=e[p+=1];){if(n===C&&"\\"===t){switch(g=p,e[p+1]){case"x":p+=3;break;case"u":p+=5;break;case"U":p+=9;break;default:p+=1}y=p}if("\n"===t)n===w&&(p=E(e,p)),h=p+l,f=void 0;else{if(" "===t&&d&&" "!==d&&"\n"!==d&&"\t"!==d){let t=e[p+1];t&&" "!==t&&"\n"!==t&&"\t"!==t&&(f=p)}if(p>=h)if(f)u.push(f),h=f+l,f=void 0;else if(n===C){for(;" "===d||"\t"===d;)d=t,t=e[p+=1],m=!0;let n=p>y+1?p-2:g-1;if(c[n])return e;u.push(n),c[n]=!0,h=n+l,f=void 0}else m=!0}d=t}if(m&&a&&a(),0===u.length)return e;o&&o();let b=e.slice(0,u[0]);for(let r=0;r<u.length;++r){let i=u[r],s=u[r+1]||e.length;0===i?b=`\n${t}${e.slice(0,s)}`:(n===C&&c[i]&&(b+=`${e[i]}\\`),b+=`\n${t}${e.slice(i+1,s)}`)}return b}var A=({indentAtStart:e})=>e?Object.assign({indentAtStart:e},b.fold):b.fold,_=e=>/^(%|---|\.\.\.)/m.test(e);function k(e,t){let{implicitKey:n}=t,{jsonEncoding:r,minMultiLineLength:i}=b.doubleQuoted,s=JSON.stringify(e);if(r)return s;let o=t.indent||(_(e)?" ":""),a="",l=0;for(let e=0,t=s[e];t;t=s[++e])if(" "===t&&"\\"===s[e+1]&&"n"===s[e+2]&&(a+=s.slice(l,e)+"\\ ",e+=1,l=e,t="\\"),"\\"===t)switch(s[e+1]){case"u":{a+=s.slice(l,e);let t=s.substr(e+2,4);switch(t){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:"00"===t.substr(0,2)?a+="\\x"+t.substr(2):a+=s.substr(e,6)}e+=5,l=e+1}break;case"n":if(n||'"'===s[e+2]||s.length<i)e+=1;else{for(a+=s.slice(l,e)+"\n\n";"\\"===s[e+2]&&"n"===s[e+3]&&'"'!==s[e+4];)a+="\n",e+=2;a+=o," "===s[e+2]&&(a+="\\"),e+=1,l=e+1}break;default:e+=1}return a=l?a+s.slice(l):s,n?a:S(a,o,C,A(t))}function N(e,t){if(t.implicitKey){if(/\n/.test(e))return k(e,t)}else if(/[ \t]\n|\n[ \t]/.test(e))return k(e,t);let n=t.indent||(_(e)?" ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&\n${n}`)+"'";return t.implicitKey?r:S(r,n,D,A(t))}function L({comment:e,type:n,value:r},i,s,o){if(/\n[\t ]+$/.test(r)||/^\s*$/.test(r))return k(r,i);let a=i.indent||(i.forceBlockIndent||_(r)?" ":""),l=a?"2":"1",u=n!==t.Type.BLOCK_FOLDED&&(n===t.Type.BLOCK_LITERAL||!function(e,t,n){if(!t||t<0)return!1;let r=t-n,i=e.length;if(i<=r)return!1;for(let t=0,n=0;t<i;++t)if("\n"===e[t]){if(t-n>r)return!0;if(n=t+1,i-n<=r)return!1}return!0}(r,b.fold.lineWidth,a.length)),c=u?"|":">";if(!r)return c+"\n";let h="",f="";if(r=r.replace(/[\n\t ]*$/,(e=>{let t=e.indexOf("\n");return-1===t?c+="-":(r===e||t!==e.length-1)&&(c+="+",o&&o()),f=e.replace(/\n$/,""),""})).replace(/^[\n ]*/,(e=>{-1!==e.indexOf(" ")&&(c+=l);let t=e.match(/ +$/);return t?(h=e.slice(0,-t[0].length),t[0]):(h=e,"")})),f&&(f=f.replace(/\n+(?!\n|$)/g,`$&${a}`)),h&&(h=h.replace(/\n+/g,`$&${a}`)),e&&(c+=" #"+e.replace(/ ?[\r\n]+/g," "),s&&s()),!r)return`${c}${l}\n${a}${f}`;if(u)return r=r.replace(/\n+/g,`$&${a}`),`${c}\n${a}${h}${r}${f}`;r=r.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${a}`);let d=S(`${h}${r}${f}`,a,w,b.fold);return`${c}\n${a}${d}`}function x(e,n){let r,i,s;switch(n.type){case t.Type.FLOW_MAP:r="}",i="flow map";break;case t.Type.FLOW_SEQ:r="]",i="flow sequence";break;default:return void e.push(new t.YAMLSemanticError(n,"Not a flow collection!?"))}for(let e=n.items.length-1;e>=0;--e){let r=n.items[e];if(!r||r.type!==t.Type.COMMENT){s=r;break}}if(s&&s.char!==r){let o,a=`Expected ${i} to end with ${r}`;"number"==typeof s.offset?(o=new t.YAMLSemanticError(n,a),o.offset=s.offset+1):(o=new t.YAMLSemanticError(s,a),s.range&&s.range.end&&(o.offset=s.range.end-s.range.start)),e.push(o)}}function F(e,n){let r=n.context.src[n.range.start-1];if("\n"!==r&&"\t"!==r&&" "!==r){let r="Comments must be separated from other tokens by white space characters";e.push(new t.YAMLSemanticError(n,r))}}function O(e,n){let r=String(n),i=r.substr(0,8)+"..."+r.substr(-8);return new t.YAMLSemanticError(e,`The "${i}" key is too long`)}function M(e,t){for(let{afterKey:n,before:r,comment:i}of t){let t=e.items[r];t?(n&&t.value&&(t=t.value),void 0===i?(n||!t.commentBefore)&&(t.spaceBefore=!0):t.commentBefore?t.commentBefore+="\n"+i:t.commentBefore=i):void 0!==i&&(e.comment?e.comment+="\n"+i:e.comment=i)}}function T(e,t){let n=t.strValue;return n?"string"==typeof n?n:(n.errors.forEach((n=>{n.source||(n.source=t),e.errors.push(n)})),n.str):""}function I(e,t,n){let{tags:r}=e.schema,i=[];for(let o of r)if(o.tag===n){if(!o.test){let n=o.resolve(e,t);return n instanceof l?n:new s(n)}i.push(o)}let o=T(e,t);return"string"==typeof o&&i.length>0?v(o,i,r.scalarFallback):null}function R(e,n){if(!n)return null;n.error&&e.errors.push(n.error);let{comments:r,hasAnchor:i,hasTag:s}=function(e,n){let r={before:[],after:[]},i=!1,s=!1,o=(e=>{if(!e)return!1;let{type:n}=e;return n===t.Type.MAP_KEY||n===t.Type.MAP_VALUE||n===t.Type.SEQ_ITEM})(n.context.parent)?n.context.parent.props.concat(n.props):n.props;for(let{start:a,end:l}of o)switch(n.context.src[a]){case t.Char.COMMENT:{if(!n.commentHasRequiredWhitespace(a)){let r="Comments must be separated from other tokens by white space characters";e.push(new t.YAMLSemanticError(n,r))}let{header:i,valueRange:s}=n;(s&&(a>s.start||i&&a>i.start)?r.after:r.before).push(n.context.src.slice(a+1,l));break}case t.Char.ANCHOR:if(i){let r="A node can have at most one anchor";e.push(new t.YAMLSemanticError(n,r))}i=!0;break;case t.Char.TAG:if(s){let r="A node can have at most one tag";e.push(new t.YAMLSemanticError(n,r))}s=!0}return{comments:r,hasAnchor:i,hasTag:s}}(e.errors,n);if(i){let{anchors:t}=e,r=n.anchor,i=t.getNode(r);i&&(t.map[t.newName(r)]=i),t.map[r]=n}if(n.type===t.Type.ALIAS&&(i||s)){let r="An alias node must not specify any properties";e.errors.push(new t.YAMLSemanticError(n,r))}let o=function(e,n){let{anchors:r,errors:i,schema:s}=e;if(n.type===t.Type.ALIAS){let e=n.rawValue,s=r.getNode(e);if(!s){let r=`Aliased anchor not found: ${e}`;return i.push(new t.YAMLReferenceError(n,r)),null}let o=new d(s);return r._cstAliases.push(o),o}let o=function(e,n){let{tag:r,type:i}=n,s=!1;if(r){let{handle:i,suffix:o,verbatim:a}=r;if(a){if("!"!==a&&"!!"!==a)return a;let r=`Verbatim tags aren't resolved, so ${a} is invalid.`;e.errors.push(new t.YAMLSemanticError(n,r))}else if("!"!==i||o)try{return function(e,n){let{handle:r,suffix:i}=n.tag,s=e.tagPrefixes.find((e=>e.handle===r));if(!s){let i=e.getDefaults().tagPrefixes;if(i&&(s=i.find((e=>e.handle===r))),!s)throw new t.YAMLSemanticError(n,`The ${r} tag handle is non-default and was not declared.`)}if(!i)throw new t.YAMLSemanticError(n,`The ${r} tag has no suffix.`);if("!"===r&&"1.0"===(e.version||e.options.version)){if("^"===i[0])return e.warnings.push(new t.YAMLWarning(n,"YAML 1.0 ^ tag expansion is not supported")),i;if(/[:/]/.test(i)){let e=i.match(/^([a-z0-9-]+)\/(.*)/i);return e?`tag:${e[1]}.yaml.org,2002:${e[2]}`:`tag:${i}`}}return s.prefix+decodeURIComponent(i)}(e,n)}catch(t){e.errors.push(t)}else s=!0}switch(i){case t.Type.BLOCK_FOLDED:case t.Type.BLOCK_LITERAL:case t.Type.QUOTE_DOUBLE:case t.Type.QUOTE_SINGLE:return t.defaultTags.STR;case t.Type.FLOW_MAP:case t.Type.MAP:return t.defaultTags.MAP;case t.Type.FLOW_SEQ:case t.Type.SEQ:return t.defaultTags.SEQ;case t.Type.PLAIN:return s?t.defaultTags.STR:null;default:return null}}(e,n);if(o)return function(e,n,r){try{let t=I(e,n,r);if(t)return r&&n.tag&&(t.tag=r),t}catch(t){return t.source||(t.source=n),e.errors.push(t),null}try{let i=function({type:e}){switch(e){case t.Type.FLOW_MAP:case t.Type.MAP:return t.defaultTags.MAP;case t.Type.FLOW_SEQ:case t.Type.SEQ:return t.defaultTags.SEQ;default:return t.defaultTags.STR}}(n);if(!i)throw new Error(`The tag ${r} is unavailable`);let s=`The tag ${r} is unavailable, falling back to ${i}`;e.warnings.push(new t.YAMLWarning(n,s));let o=I(e,n,i);return o.tag=r,o}catch(r){let i=new t.YAMLReferenceError(n,r.message);return i.stack=r.stack,e.errors.push(i),null}}(e,n,o);if(n.type!==t.Type.PLAIN){let e=`Failed to resolve ${n.type} node here`;return i.push(new t.YAMLSyntaxError(n,e)),null}try{return v(T(e,n),s.tags,s.tags.scalarFallback)}catch(e){return e.source||(e.source=n),i.push(e),null}}(e,n);if(o){o.range=[n.range.start,n.range.end],e.options.keepCstNodes&&(o.cstNode=n),e.options.keepNodeTypes&&(o.type=n.type);let t=r.before.join("\n");t&&(o.commentBefore=o.commentBefore?`${o.commentBefore}\n${t}`:t);let i=r.after.join("\n");i&&(o.comment=o.comment?`${o.comment}\n${i}`:i)}return n.resolved=o}function P(e,n){if(!(({context:{lineStart:e,node:n,src:r},props:i})=>{if(0===i.length)return!1;let{start:s}=i[0];if(n&&s>n.valueRange.start||r[s]!==t.Char.COMMENT)return!1;for(let t=e;t<s;++t)if("\n"===r[t])return!1;return!0})(e))return;let r=e.getPropValue(0,t.Char.COMMENT,!0),i=!1,s=n.value.commentBefore;if(s&&s.startsWith(r))n.value.commentBefore=s.substr(r.length+1),i=!0;else{let t=n.value.comment;!e.node&&t&&t.startsWith(r)&&(n.value.comment=t.substr(r.length+1),i=!0)}i&&(n.comment=r)}e.Alias=d,e.Collection=l,e.Merge=g,e.Node=r,e.Pair=h,e.Scalar=s,e.YAMLMap=p,e.YAMLSeq=c,e.addComment=n,e.binaryOptions=y,e.boolOptions={trueStr:"true",falseStr:"false"},e.findPair=m,e.intOptions={asBigInt:!1},e.isEmptyPath=a,e.nullOptions={nullStr:"null"},e.resolveMap=function(e,n){if(n.type!==t.Type.MAP&&n.type!==t.Type.FLOW_MAP){let r=`A ${n.type} node cannot be resolved as a mapping`;return e.errors.push(new t.YAMLSyntaxError(n,r)),null}let{comments:r,items:i}=n.type===t.Type.FLOW_MAP?function(e,n){let r,i=[],s=[],o=!1,a="{";for(let l=0;l<n.items.length;++l){let u=n.items[l];if("string"==typeof u.char){let{char:i,offset:c}=u;if("?"===i&&void 0===r&&!o){o=!0,a=":";continue}if(":"===i){if(void 0===r&&(r=null),":"===a){a=",";continue}}else if(o&&(void 0===r&&","!==i&&(r=null),o=!1),void 0!==r&&(s.push(new h(r)),r=void 0,","===i)){a=":";continue}if("}"===i){if(l===n.items.length-1)continue}else if(i===a){a=":";continue}let f=`Flow map contains an unexpected ${i}`,d=new t.YAMLSyntaxError(n,f);d.offset=c,e.errors.push(d)}else u.type===t.Type.BLANK_LINE?i.push({afterKey:!!r,before:s.length}):u.type===t.Type.COMMENT?(F(e.errors,u),i.push({afterKey:!!r,before:s.length,comment:u.comment})):void 0===r?(","===a&&e.errors.push(new t.YAMLSemanticError(u,"Separator , missing in flow map")),r=R(e,u)):(","!==a&&e.errors.push(new t.YAMLSemanticError(u,"Indicator : missing in flow map entry")),s.push(new h(r,R(e,u))),r=void 0,o=!1)}return x(e.errors,n),void 0!==r&&s.push(new h(r)),{comments:i,items:s}}(e,n):function(e,n){let r,i=[],s=[],o=null;for(let a=0;a<n.items.length;++a){let l=n.items[a];switch(l.type){case t.Type.BLANK_LINE:i.push({afterKey:!!r,before:s.length});break;case t.Type.COMMENT:i.push({afterKey:!!r,before:s.length,comment:l.comment});break;case t.Type.MAP_KEY:void 0!==r&&s.push(new h(r)),l.error&&e.errors.push(l.error),r=R(e,l.node),o=null;break;case t.Type.MAP_VALUE:{if(void 0===r&&(r=null),l.error&&e.errors.push(l.error),!l.context.atLineStart&&l.node&&l.node.type===t.Type.MAP&&!l.node.context.atLineStart){let n="Nested mappings are not allowed in compact mappings";e.errors.push(new t.YAMLSemanticError(l.node,n))}let i=l.node;if(!i&&l.props.length>0){i=new t.PlainValue(t.Type.PLAIN,[]),i.context={parent:l,src:l.context.src};let e=l.range.start+1;if(i.range={start:e,end:e},i.valueRange={start:e,end:e},"number"==typeof l.range.origStart){let e=l.range.origStart+1;i.range.origStart=i.range.origEnd=e,i.valueRange.origStart=i.valueRange.origEnd=e}}let a=new h(r,R(e,i));P(l,a),s.push(a),r&&"number"==typeof o&&l.range.start>o+1024&&e.errors.push(O(n,r)),r=void 0,o=null}break;default:void 0!==r&&s.push(new h(r)),r=R(e,l),o=l.range.start,l.error&&e.errors.push(l.error);e:for(let r=a+1;;++r){let i=n.items[r];switch(i&&i.type){case t.Type.BLANK_LINE:case t.Type.COMMENT:continue e;case t.Type.MAP_VALUE:break e;default:{let n="Implicit map keys need to be followed by map values";e.errors.push(new t.YAMLSemanticError(l,n));break e}}}if(l.valueRangeContainsNewline){let n="Implicit map keys need to be on a single line";e.errors.push(new t.YAMLSemanticError(l,n))}}}return void 0!==r&&s.push(new h(r)),{comments:i,items:s}}(e,n),s=new p;s.items=i,M(s,r);let o=!1;for(let r=0;r<i.length;++r){let{key:s}=i[r];if(s instanceof l&&(o=!0),e.schema.merge&&s&&"<<"===s.value){i[r]=new g(i[r]);let s=i[r].value.items,o=null;s.some((e=>{if(e instanceof d){let{type:n}=e.source;return n!==t.Type.MAP&&n!==t.Type.FLOW_MAP&&(o="Merge nodes aliases can only point to maps")}return o="Merge nodes can only have Alias nodes as values"})),o&&e.errors.push(new t.YAMLSemanticError(n,o))}else for(let o=r+1;o<i.length;++o){let{key:r}=i[o];if(s===r||s&&r&&Object.prototype.hasOwnProperty.call(s,"value")&&s.value===r.value){let r=`Map keys must be unique; "${s}" is repeated`;e.errors.push(new t.YAMLSemanticError(n,r));break}}}if(o&&!e.options.mapAsMap){let r="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";e.warnings.push(new t.YAMLWarning(n,r))}return n.resolved=s,s},e.resolveNode=R,e.resolveSeq=function(e,n){if(n.type!==t.Type.SEQ&&n.type!==t.Type.FLOW_SEQ){let r=`A ${n.type} node cannot be resolved as a sequence`;return e.errors.push(new t.YAMLSyntaxError(n,r)),null}let{comments:r,items:i}=n.type===t.Type.FLOW_SEQ?function(e,n){let r,i=[],s=[],o=!1,a=null,l="[",u=null;for(let c=0;c<n.items.length;++c){let f=n.items[c];if("string"==typeof f.char){let{char:i,offset:d}=f;if(":"!==i&&(o||void 0!==r)&&(o&&void 0===r&&(r=l?s.pop():null),s.push(new h(r)),o=!1,r=void 0,a=null),i===l)l=null;else if(l||"?"!==i){if("["!==l&&":"===i&&void 0===r){if(","===l){if(r=s.pop(),r instanceof h){let r="Chaining flow sequence pairs is invalid",i=new t.YAMLSemanticError(n,r);i.offset=d,e.errors.push(i)}if(!o&&"number"==typeof a){let i=f.range?f.range.start:f.offset;i>a+1024&&e.errors.push(O(n,r));let{src:s}=u.context;for(let n=a;n<i;++n)if("\n"===s[n]){let n="Implicit keys of flow sequence pairs need to be on a single line";e.errors.push(new t.YAMLSemanticError(u,n));break}}}else r=null;a=null,o=!1,l=null}else if("["===l||"]"!==i||c<n.items.length-1){let r=`Flow sequence contains an unexpected ${i}`,s=new t.YAMLSyntaxError(n,r);s.offset=d,e.errors.push(s)}}else o=!0}else if(f.type===t.Type.BLANK_LINE)i.push({before:s.length});else if(f.type===t.Type.COMMENT)F(e.errors,f),i.push({comment:f.comment,before:s.length});else{if(l){let n=`Expected a ${l} in flow sequence`;e.errors.push(new t.YAMLSemanticError(f,n))}let n=R(e,f);void 0===r?(s.push(n),u=f):(s.push(new h(r,n)),r=void 0),a=f.range.start,l=","}}return x(e.errors,n),void 0!==r&&s.push(new h(r)),{comments:i,items:s}}(e,n):function(e,n){let r=[],i=[];for(let s=0;s<n.items.length;++s){let o=n.items[s];switch(o.type){case t.Type.BLANK_LINE:r.push({before:i.length});break;case t.Type.COMMENT:r.push({comment:o.comment,before:i.length});break;case t.Type.SEQ_ITEM:if(o.error&&e.errors.push(o.error),i.push(R(e,o.node)),o.hasProps){let n="Sequence items cannot have tags or anchors before the - indicator";e.errors.push(new t.YAMLSemanticError(o,n))}break;default:o.error&&e.errors.push(o.error),e.errors.push(new t.YAMLSyntaxError(o,`Unexpected ${o.type} node in sequence`))}}return{comments:r,items:i}}(e,n),s=new c;if(s.items=i,M(s,r),!e.options.mapAsMap&&i.some((e=>e instanceof h&&e.key instanceof l))){let r="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";e.warnings.push(new t.YAMLWarning(n,r))}return n.resolved=s,s},e.resolveString=T,e.strOptions=b,e.stringifyNumber=function({format:e,minFractionDigits:t,tag:n,value:r}){if("bigint"==typeof r)return String(r);if(!isFinite(r))return isNaN(r)?".nan":r<0?"-.inf":".inf";let i=JSON.stringify(r);if(!e&&t&&(!n||"tag:yaml.org,2002:float"===n)&&/^\d/.test(i)){let e=i.indexOf(".");e<0&&(e=i.length,i+=".");let n=t-(i.length-e-1);for(;n-- >0;)i+="0"}return i},e.stringifyString=function(e,n,r,i){let{defaultType:s}=b,{implicitKey:o,inFlow:a}=n,{type:l,value:u}=e;"string"!=typeof u&&(u=String(u),e=Object.assign({},e,{value:u}));let c=s=>{switch(s){case t.Type.BLOCK_FOLDED:case t.Type.BLOCK_LITERAL:return L(e,n,r,i);case t.Type.QUOTE_DOUBLE:return k(u,n);case t.Type.QUOTE_SINGLE:return N(u,n);case t.Type.PLAIN:return function(e,n,r,i){let{comment:s,type:o,value:a}=e,{actualString:l,implicitKey:u,indent:c,inFlow:h}=n;if(u&&/[\n[\]{},]/.test(a)||h&&/[[\]{},]/.test(a))return k(a,n);if(!a||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a))return u||h||-1===a.indexOf("\n")?-1!==a.indexOf('"')&&-1===a.indexOf("'")?N(a,n):k(a,n):L(e,n,r,i);if(!u&&!h&&o!==t.Type.PLAIN&&-1!==a.indexOf("\n"))return L(e,n,r,i);if(""===c&&_(a))return n.forceBlockIndent=!0,L(e,n,r,i);let f=a.replace(/\n+/g,`$&\n${c}`);if(l){let{tags:e}=n.doc.schema;if("string"!=typeof v(f,e,e.scalarFallback).value)return k(a,n)}let d=u?f:S(f,c,D,A(n));return!s||h||-1===d.indexOf("\n")&&-1===s.indexOf("\n")?d:(r&&r(),function(e,t,n){return n?`#${n.replace(/[\s\S]^/gm,`$&${t}#`)}\n${t}${e}`:e}(d,c,s))}(e,n,r,i);default:return null}};(l!==t.Type.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(u)||(o||a)&&(l===t.Type.BLOCK_FOLDED||l===t.Type.BLOCK_LITERAL))&&(l=t.Type.QUOTE_DOUBLE);let h=c(l);if(null===h&&(h=c(s),null===h))throw new Error(`Unsupported default string type ${s}`);return h},e.toJSON=i})),$i=ki((e=>{var t=Ri(),n=Bi(),r={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve:(e,r)=>{let i=n.resolveString(e,r);if("function"==typeof Buffer)return Buffer.from(i,"base64");if("function"==typeof atob){let e=atob(i.replace(/[\n\r]/g,"")),t=new Uint8Array(e.length);for(let n=0;n<e.length;++n)t[n]=e.charCodeAt(n);return t}{let n="This environment does not support reading binary tags; either Buffer or atob is required";return e.errors.push(new t.YAMLReferenceError(r,n)),null}},options:n.binaryOptions,stringify:({comment:e,type:r,value:i},s,o,a)=>{let l;if("function"==typeof Buffer)l=i instanceof Buffer?i.toString("base64"):Buffer.from(i.buffer).toString("base64");else{if("function"!=typeof btoa)throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");{let e="";for(let t=0;t<i.length;++t)e+=String.fromCharCode(i[t]);l=btoa(e)}}if(r||(r=n.binaryOptions.defaultType),r===t.Type.QUOTE_DOUBLE)i=l;else{let{lineWidth:e}=n.binaryOptions,s=Math.ceil(l.length/e),o=new Array(s);for(let t=0,n=0;t<s;++t,n+=e)o[t]=l.substr(n,e);i=o.join(r===t.Type.BLOCK_LITERAL?"\n":" ")}return n.stringifyString({comment:e,type:r,value:i},s,o,a)}};function i(e,r){let i=n.resolveSeq(e,r);for(let e=0;e<i.items.length;++e){let s=i.items[e];if(!(s instanceof n.Pair)){if(s instanceof n.YAMLMap){if(s.items.length>1){let e="Each pair must have its own sequence indicator";throw new t.YAMLSemanticError(r,e)}let e=s.items[0]||new n.Pair;s.commentBefore&&(e.commentBefore=e.commentBefore?`${s.commentBefore}\n${e.commentBefore}`:s.commentBefore),s.comment&&(e.comment=e.comment?`${s.comment}\n${e.comment}`:s.comment),s=e}i.items[e]=s instanceof n.Pair?s:new n.Pair(s)}}return i}function s(e,t,r){let i=new n.YAMLSeq(e);i.tag="tag:yaml.org,2002:pairs";for(let n of t){let t,s;if(Array.isArray(n)){if(2!==n.length)throw new TypeError(`Expected [key, value] tuple: ${n}`);t=n[0],s=n[1]}else if(n&&n instanceof Object){let e=Object.keys(n);if(1!==e.length)throw new TypeError(`Expected { key: value } tuple: ${n}`);t=e[0],s=n[t]}else t=n;let o=e.createPair(t,s,r);i.items.push(o)}return i}var o={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:i,createNode:s},a=class e extends n.YAMLSeq{constructor(){super(),t._defineProperty(this,"add",n.YAMLMap.prototype.add.bind(this)),t._defineProperty(this,"delete",n.YAMLMap.prototype.delete.bind(this)),t._defineProperty(this,"get",n.YAMLMap.prototype.get.bind(this)),t._defineProperty(this,"has",n.YAMLMap.prototype.has.bind(this)),t._defineProperty(this,"set",n.YAMLMap.prototype.set.bind(this)),this.tag=e.tag}toJSON(e,t){let r=new Map;t&&t.onCreate&&t.onCreate(r);for(let e of this.items){let i,s;if(e instanceof n.Pair?(i=n.toJSON(e.key,"",t),s=n.toJSON(e.value,i,t)):i=n.toJSON(e,"",t),r.has(i))throw new Error("Ordered maps must not include duplicate keys");r.set(i,s)}return r}};t._defineProperty(a,"tag","tag:yaml.org,2002:omap");var l={identify:e=>e instanceof Map,nodeClass:a,default:!1,tag:"tag:yaml.org,2002:omap",resolve:function(e,r){let s=i(e,r),o=[];for(let{key:e}of s.items)if(e instanceof n.Scalar){if(o.includes(e.value)){let e="Ordered maps must not include duplicate keys";throw new t.YAMLSemanticError(r,e)}o.push(e.value)}return Object.assign(new a,s)},createNode:function(e,t,n){let r=s(e,t,n),i=new a;return i.items=r.items,i}},u=class e extends n.YAMLMap{constructor(){super(),this.tag=e.tag}add(e){let t=e instanceof n.Pair?e:new n.Pair(e);n.findPair(this.items,t.key)||this.items.push(t)}get(e,t){let r=n.findPair(this.items,e);return!t&&r instanceof n.Pair?r.key instanceof n.Scalar?r.key.value:r.key:r}set(e,t){if("boolean"!=typeof t)throw new Error("Expected boolean value for set(key, value) in a YAML set, not "+typeof t);let r=n.findPair(this.items,e);r&&!t?this.items.splice(this.items.indexOf(r),1):!r&&t&&this.items.push(new n.Pair(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues())return super.toString(e,t,n);throw new Error("Set items must all have null values")}};t._defineProperty(u,"tag","tag:yaml.org,2002:set");var c={identify:e=>e instanceof Set,nodeClass:u,default:!1,tag:"tag:yaml.org,2002:set",resolve:function(e,r){let i=n.resolveMap(e,r);if(!i.hasAllNullValues())throw new t.YAMLSemanticError(r,"Set items must all have null values");return Object.assign(new u,i)},createNode:function(e,t,n){let r=new u;for(let i of t)r.items.push(e.createPair(i,null,n));return r}},h=(e,t)=>{let n=t.split(":").reduce(((e,t)=>60*e+Number(t)),0);return"-"===e?-n:n},f=({value:e})=>{if(isNaN(e)||!isFinite(e))return n.stringifyNumber(e);let t="";e<0&&(t="-",e=Math.abs(e));let r=[e%60];return e<60?r.unshift(0):(e=Math.round((e-r[0])/60),r.unshift(e%60),e>=60&&(e=Math.round((e-r[0])/60),r.unshift(e))),t+r.map((e=>e<10?"0"+String(e):String(e))).join(":").replace(/000000\d*$/,"")},d={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:(e,t,n)=>h(t,n.replace(/_/g,"")),stringify:f},m={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:(e,t,n)=>h(t,n.replace(/_/g,"")),stringify:f},p={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,t,n,r,i,s,o,a,l)=>{a&&(a=(a+"00").substr(1,3));let u=Date.UTC(t,n-1,r,i||0,s||0,o||0,a||0);if(l&&"Z"!==l){let e=h(l[0],l.slice(1));Math.abs(e)<30&&(e*=60),u-=6e4*e}return new Date(u)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};function g(e){let t={};return e?typeof YAML_SILENCE_DEPRECATION_WARNINGS<"u"?!YAML_SILENCE_DEPRECATION_WARNINGS:!t.YAML_SILENCE_DEPRECATION_WARNINGS:typeof YAML_SILENCE_WARNINGS<"u"?!YAML_SILENCE_WARNINGS:!t.YAML_SILENCE_WARNINGS}function y(e,t){g(!1)&&console.warn(t?`${t}: ${e}`:e)}var b={};e.binary=r,e.floatTime=m,e.intTime=d,e.omap=l,e.pairs=o,e.set=c,e.timestamp=p,e.warn=y,e.warnFileDeprecation=function(e){g(!0)&&y(`The endpoint 'yaml/${e.replace(/.*yaml[/\\]/i,"").replace(/\.js$/,"").replace(/\\/g,"/")}' will be removed in a future release.`,"DeprecationWarning")},e.warnOptionDeprecation=function(e,t){if(!b[e]&&g(!0)){b[e]=!0;let n=`The option '${e}' will be removed in a future release`;n+=t?`, use '${t}' instead.`:".",y(n,"DeprecationWarning")}}})),ji=ki((e=>{var t=Ri(),n=Bi(),r=$i(),i={createNode:function(e,t,r){let i=new n.YAMLMap(e);if(t instanceof Map)for(let[n,s]of t)i.items.push(e.createPair(n,s,r));else if(t&&"object"==typeof t)for(let n of Object.keys(t))i.items.push(e.createPair(n,t[n],r));return"function"==typeof e.sortMapEntries&&i.items.sort(e.sortMapEntries),i},default:!0,nodeClass:n.YAMLMap,tag:"tag:yaml.org,2002:map",resolve:n.resolveMap},s={createNode:function(e,t,r){let i=new n.YAMLSeq(e);if(t&&t[Symbol.iterator])for(let n of t){let t=e.createNode(n,r.wrapScalars,null,r);i.items.push(t)}return i},default:!0,nodeClass:n.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve:n.resolveSeq},o={identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:n.resolveString,stringify:(e,t,r,i)=>(t=Object.assign({actualString:!0},t),n.stringifyString(e,t,r,i)),options:n.strOptions},a=[i,s,o],l=e=>"bigint"==typeof e||Number.isInteger(e),u=(e,t,r)=>n.intOptions.asBigInt?BigInt(e):parseInt(t,r);function c(e,t,r){let{value:i}=e;return l(i)&&i>=0?r+i.toString(t):n.stringifyNumber(e)}var h={identify:e=>null==e,createNode:(e,t,r)=>r.wrapScalars?new n.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:n.nullOptions,stringify:()=>n.nullOptions.nullStr},f={identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>"t"===e[0]||"T"===e[0],options:n.boolOptions,stringify:({value:e})=>e?n.boolOptions.trueStr:n.boolOptions.falseStr},d={identify:e=>l(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:(e,t)=>u(e,t,8),options:n.intOptions,stringify:e=>c(e,8,"0o")},m={identify:l,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:e=>u(e,e,10),options:n.intOptions,stringify:n.stringifyNumber},p={identify:e=>l(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:(e,t)=>u(e,t,16),options:n.intOptions,stringify:e=>c(e,16,"0x")},g={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(e,t)=>t?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:n.stringifyNumber},y={identify:e=>"number"==typeof e,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:({value:e})=>Number(e).toExponential()},b={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.([0-9]+)|[0-9]+\.([0-9]*))$/,resolve(e,t,r){let i=t||r,s=new n.Scalar(parseFloat(e));return i&&"0"===i[i.length-1]&&(s.minFractionDigits=i.length),s},stringify:n.stringifyNumber},v=a.concat([h,f,d,m,p,g,y,b]),D=e=>"bigint"==typeof e||Number.isInteger(e),w=({value:e})=>JSON.stringify(e),C=[i,s,{identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:n.resolveString,stringify:w},{identify:e=>null==e,createNode:(e,t,r)=>r.wrapScalars?new n.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:w},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>"true"===e,stringify:w},{identify:D,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:e=>n.intOptions.asBigInt?BigInt(e):parseInt(e,10),stringify:({value:e})=>D(e)?e.toString():JSON.stringify(e)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:w}];C.scalarFallback=e=>{throw new SyntaxError(`Unresolved plain scalar ${JSON.stringify(e)}`)};var E=({value:e})=>e?n.boolOptions.trueStr:n.boolOptions.falseStr,S=e=>"bigint"==typeof e||Number.isInteger(e);function A(e,t,r){let i=t.replace(/_/g,"");if(n.intOptions.asBigInt){switch(r){case 2:i=`0b${i}`;break;case 8:i=`0o${i}`;break;case 16:i=`0x${i}`}let t=BigInt(i);return"-"===e?BigInt(-1)*t:t}let s=parseInt(i,r);return"-"===e?-1*s:s}function _(e,t,r){let{value:i}=e;if(S(i)){let e=i.toString(t);return i<0?"-"+r+e.substr(1):r+e}return n.stringifyNumber(e)}var k=a.concat([{identify:e=>null==e,createNode:(e,t,r)=>r.wrapScalars?new n.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:n.nullOptions,stringify:()=>n.nullOptions.nullStr},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>!0,options:n.boolOptions,stringify:E},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>!1,options:n.boolOptions,stringify:E},{identify:S,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^([-+]?)0b([0-1_]+)$/,resolve:(e,t,n)=>A(t,n,2),stringify:e=>_(e,2,"0b")},{identify:S,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^([-+]?)0([0-7_]+)$/,resolve:(e,t,n)=>A(t,n,8),stringify:e=>_(e,8,"0")},{identify:S,default:!0,tag:"tag:yaml.org,2002:int",test:/^([-+]?)([0-9][0-9_]*)$/,resolve:(e,t,n)=>A(t,n,10),stringify:n.stringifyNumber},{identify:S,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^([-+]?)0x([0-9a-fA-F_]+)$/,resolve:(e,t,n)=>A(t,n,16),stringify:e=>_(e,16,"0x")},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(e,t)=>t?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:n.stringifyNumber},{identify:e=>"number"==typeof e,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:({value:e})=>Number(e).toExponential()},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve(e,t){let r=new n.Scalar(parseFloat(e.replace(/_/g,"")));if(t){let e=t.replace(/_/g,"");"0"===e[e.length-1]&&(r.minFractionDigits=e.length)}return r},stringify:n.stringifyNumber}],r.binary,r.omap,r.pairs,r.set,r.intTime,r.floatTime,r.timestamp),N={core:v,failsafe:a,json:C,yaml11:k},L={binary:r.binary,bool:f,float:b,floatExp:y,floatNaN:g,floatTime:r.floatTime,int:m,intHex:p,intOct:d,intTime:r.intTime,map:i,null:h,omap:r.omap,pairs:r.pairs,seq:s,set:r.set,timestamp:r.timestamp};var x=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0,F=class e{constructor({customTags:e,merge:t,schema:n,sortMapEntries:i,tags:s}){this.merge=!!t,this.name=n,this.sortMapEntries=!0===i?x:i||null,!e&&s&&r.warnOptionDeprecation("tags","customTags"),this.tags=function(e,t,n,r){let i=e[r.replace(/\W/g,"")];if(!i){let t=Object.keys(e).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown schema "${r}"; use one of ${t}`)}if(Array.isArray(n))for(let e of n)i=i.concat(e);else"function"==typeof n&&(i=n(i.slice()));for(let e=0;e<i.length;++e){let n=i[e];if("string"==typeof n){let r=t[n];if(!r){let e=Object.keys(t).map((e=>JSON.stringify(e))).join(", ");throw new Error(`Unknown custom tag "${n}"; use one of ${e}`)}i[e]=r}}return i}(N,L,e||s,n)}createNode(t,r,o,a){let l={defaultPrefix:e.defaultPrefix,schema:this,wrapScalars:r};return function(e,t,r){if(e instanceof n.Node)return e;let{defaultPrefix:o,onTagObj:a,prevObjects:l,schema:u,wrapScalars:c}=r;t&&t.startsWith("!!")&&(t=o+t.slice(2));let h=function(e,t,n){if(t){let e=n.filter((e=>e.tag===t)),r=e.find((e=>!e.format))||e[0];if(!r)throw new Error(`Tag ${t} not found`);return r}return n.find((t=>(t.identify&&t.identify(e)||t.class&&e instanceof t.class)&&!t.format))}(e,t,u.tags);if(!h){if("function"==typeof e.toJSON&&(e=e.toJSON()),!e||"object"!=typeof e)return c?new n.Scalar(e):e;h=e instanceof Map?i:e[Symbol.iterator]?s:i}a&&(a(h),delete r.onTagObj);let f={value:void 0,node:void 0};if(e&&"object"==typeof e&&l){let t=l.get(e);if(t){let e=new n.Alias(t);return r.aliasNodes.push(e),e}f.value=e,l.set(e,f)}return f.node=h.createNode?h.createNode(r.schema,e,r):c?new n.Scalar(e):e,t&&f.node instanceof n.Node&&(f.node.tag=t),f.node}(t,o,a?Object.assign(a,l):l)}createPair(e,t,r){r||(r={wrapScalars:!0});let i=this.createNode(e,r.wrapScalars,null,r),s=this.createNode(t,r.wrapScalars,null,r);return new n.Pair(i,s)}};t._defineProperty(F,"defaultPrefix",t.defaultTagPrefix),t._defineProperty(F,"defaultTags",t.defaultTags),e.Schema=F})),Vi=ki((e=>{var t=Ri(),n=Bi(),r=ji(),i={get binary(){return n.binaryOptions},set binary(e){Object.assign(n.binaryOptions,e)},get bool(){return n.boolOptions},set bool(e){Object.assign(n.boolOptions,e)},get int(){return n.intOptions},set int(e){Object.assign(n.intOptions,e)},get null(){return n.nullOptions},set null(e){Object.assign(n.nullOptions,e)},get str(){return n.strOptions},set str(e){Object.assign(n.strOptions,e)}},s={"1.0":{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:t.defaultTagPrefix},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:t.defaultTagPrefix}]},1.2:{schema:"core",merge:!1,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:t.defaultTagPrefix}]}};function o(e,t){if("1.0"===(e.version||e.options.version)){let e=t.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);if(e)return"!"+e[1];let n=t.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return n?`!${n[1]}/${n[2]}`:`!${t.replace(/^tag:/,"")}`}let n=e.tagPrefixes.find((e=>0===t.indexOf(e.prefix)));if(!n){let r=e.getDefaults().tagPrefixes;n=r&&r.find((e=>0===t.indexOf(e.prefix)))}if(!n)return"!"===t[0]?t:`!<${t}>`;let r=t.substr(n.prefix.length).replace(/[!,[\]{}]/g,(e=>({"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"}[e])));return n.handle+r}function a(e,t,r,i){let s,{anchors:a,schema:l}=t.doc;if(!(e instanceof n.Node)){let t={aliasNodes:[],onTagObj:e=>s=e,prevObjects:new Map};e=l.createNode(e,!0,null,t);for(let e of t.aliasNodes){e.source=e.source.node;let t=a.getName(e.source);t||(t=a.newName(),a.map[t]=e.source)}}if(e instanceof n.Pair)return e.toString(t,r,i);s||(s=function(e,t){if(t instanceof n.Alias)return n.Alias;if(t.tag){let n=e.filter((e=>e.tag===t.tag));if(n.length>0)return n.find((e=>e.format===t.format))||n[0]}let r,i;if(t instanceof n.Scalar){i=t.value;let n=e.filter((e=>e.identify&&e.identify(i)||e.class&&i instanceof e.class));r=n.find((e=>e.format===t.format))||n.find((e=>!e.format))}else i=t,r=e.find((e=>e.nodeClass&&i instanceof e.nodeClass));if(!r){let e=i&&i.constructor?i.constructor.name:typeof i;throw new Error(`Tag not resolved for ${e} value`)}return r}(l.tags,e));let u=function(e,t,{anchors:n,doc:r}){let i=[],s=r.anchors.getName(e);return s&&(n[s]=e,i.push(`&${s}`)),e.tag?i.push(o(r,e.tag)):t.default||i.push(o(r,t.tag)),i.join(" ")}(e,s,t);u.length>0&&(t.indentAtStart=(t.indentAtStart||0)+u.length+1);let c="function"==typeof s.stringify?s.stringify(e,t,r,i):e instanceof n.Scalar?n.stringifyString(e,t,r,i):e.toString(t,r,i);return u?e instanceof n.Scalar||"{"===c[0]||"["===c[0]?`${u} ${c}`:`${u}\n${t.indent}${c}`:c}var l=class e{static validAnchorNode(e){return e instanceof n.Scalar||e instanceof n.YAMLSeq||e instanceof n.YAMLMap}constructor(e){t._defineProperty(this,"map",Object.create(null)),this.prefix=e}createAlias(e,t){return this.setAnchor(e,t),new n.Alias(e)}createMergePair(...e){let t=new n.Merge;return t.value.items=e.map((e=>{if(e instanceof n.Alias){if(e.source instanceof n.YAMLMap)return e}else if(e instanceof n.YAMLMap)return this.createAlias(e);throw new Error("Merge sources must be Map nodes or their Aliases")})),t}getName(e){let{map:t}=this;return Object.keys(t).find((n=>t[n]===e))}getNames(){return Object.keys(this.map)}getNode(e){return this.map[e]}newName(e){e||(e=this.prefix);let t=Object.keys(this.map);for(let n=1;;++n){let r=`${e}${n}`;if(!t.includes(r))return r}}resolveNodes(){let{map:e,_cstAliases:t}=this;Object.keys(e).forEach((t=>{e[t]=e[t].resolved})),t.forEach((e=>{e.source=e.source.resolved})),delete this._cstAliases}setAnchor(t,n){if(null!=t&&!e.validAnchorNode(t))throw new Error("Anchors may only be set for Scalar, Seq and Map nodes");if(n&&/[\x00-\x19\s,[\]{}]/.test(n))throw new Error("Anchor names must not contain whitespace or control characters");let{map:r}=this,i=t&&Object.keys(r).find((e=>r[e]===t));if(i){if(!n)return i;i!==n&&(delete r[i],r[n]=t)}else{if(!n){if(!t)return null;n=this.newName()}r[n]=t}return n}},u=(e,t)=>{if(e&&"object"==typeof e){let{tag:r}=e;e instanceof n.Collection?(r&&(t[r]=!0),e.items.forEach((e=>u(e,t)))):e instanceof n.Pair?(u(e.key,t),u(e.value,t)):e instanceof n.Scalar&&r&&(t[r]=!0)}return t};function c({tagPrefixes:e},n){let[r,i]=n.parameters;if(!r||!i){let e="Insufficient parameters given for %TAG directive";throw new t.YAMLSemanticError(n,e)}if(e.some((e=>e.handle===r))){let e="The %TAG directive must only be given at most once per handle in the same document.";throw new t.YAMLSemanticError(n,e)}return{handle:r,prefix:i}}function h(e,n){let[r]=n.parameters;if("YAML:1.0"===n.name&&(r="1.0"),!r){let e="Insufficient parameters given for %YAML directive";throw new t.YAMLSemanticError(n,e)}if(!s[r]){let i=`Document will be parsed as YAML ${e.version||e.options.version} rather than YAML ${r}`;e.warnings.push(new t.YAMLWarning(n,i))}return r}function f(e){if(e instanceof n.Collection)return!0;throw new Error("Expected a YAML collection as document contents")}var d=class e{constructor(e){this.anchors=new l(e.anchorPrefix),this.commentBefore=null,this.comment=null,this.contents=null,this.directivesEndMarker=null,this.errors=[],this.options=e,this.schema=null,this.tagPrefixes=[],this.version=null,this.warnings=[]}add(e){return f(this.contents),this.contents.add(e)}addIn(e,t){f(this.contents),this.contents.addIn(e,t)}delete(e){return f(this.contents),this.contents.delete(e)}deleteIn(e){return n.isEmptyPath(e)?null!=this.contents&&(this.contents=null,!0):(f(this.contents),this.contents.deleteIn(e))}getDefaults(){return e.defaults[this.version]||e.defaults[this.options.version]||{}}get(e,t){return this.contents instanceof n.Collection?this.contents.get(e,t):void 0}getIn(e,t){return n.isEmptyPath(e)?!t&&this.contents instanceof n.Scalar?this.contents.value:this.contents:this.contents instanceof n.Collection?this.contents.getIn(e,t):void 0}has(e){return this.contents instanceof n.Collection&&this.contents.has(e)}hasIn(e){return n.isEmptyPath(e)?void 0!==this.contents:this.contents instanceof n.Collection&&this.contents.hasIn(e)}set(e,t){f(this.contents),this.contents.set(e,t)}setIn(e,t){n.isEmptyPath(e)?this.contents=t:(f(this.contents),this.contents.setIn(e,t))}setSchema(e,t){if(!e&&!t&&this.schema)return;"number"==typeof e&&(e=e.toFixed(1)),"1.0"===e||"1.1"===e||"1.2"===e?(this.version?this.version=e:this.options.version=e,delete this.options.schema):e&&"string"==typeof e&&(this.options.schema=e),Array.isArray(t)&&(this.options.customTags=t);let n=Object.assign({},this.getDefaults(),this.options);this.schema=new r.Schema(n)}parse(e,r){this.options.keepCstNodes&&(this.cstNode=e),this.options.keepNodeTypes&&(this.type="DOCUMENT");let{directives:i=[],contents:s=[],directivesEndMarker:o,error:a,valueRange:l}=e;if(a&&(a.source||(a.source=this),this.errors.push(a)),function(e,n,r){let i=[],s=!1;for(let r of n){let{comment:n,name:o}=r;switch(o){case"TAG":try{e.tagPrefixes.push(c(e,r))}catch(t){e.errors.push(t)}s=!0;break;case"YAML":case"YAML:1.0":if(e.version){let n="The %YAML directive must only be given at most once per document.";e.errors.push(new t.YAMLSemanticError(r,n))}try{e.version=h(e,r)}catch(t){e.errors.push(t)}s=!0;break;default:if(o){let n=`YAML only supports %TAG and %YAML directives, and not %${o}`;e.warnings.push(new t.YAMLWarning(r,n))}}n&&i.push(n)}if(r&&!s&&"1.1"===(e.version||r.version||e.options.version)){let t=({handle:e,prefix:t})=>({handle:e,prefix:t});e.tagPrefixes=r.tagPrefixes.map(t),e.version=r.version}e.commentBefore=i.join("\n")||null}(this,i,r),o&&(this.directivesEndMarker=!0),this.range=l?[l.start,l.end]:null,this.setSchema(),this.anchors._cstAliases=[],function(e,r){let i,s={before:[],after:[]},o=!1;for(let a of r)if(a.valueRange){if(void 0!==i){let n="Document contains trailing content not separated by a ... or --- line";e.errors.push(new t.YAMLSyntaxError(a,n));break}let r=n.resolveNode(e,a);o&&(r.spaceBefore=!0,o=!1),i=r}else null!==a.comment?(void 0===i?s.before:s.after).push(a.comment):a.type===t.Type.BLANK_LINE&&(o=!0,void 0===i&&s.before.length>0&&!e.commentBefore&&(e.commentBefore=s.before.join("\n"),s.before=[]));if(e.contents=i||null,i){let t=s.before.join("\n");if(t){let e=i instanceof n.Collection&&i.items[0]?i.items[0]:i;e.commentBefore=e.commentBefore?`${t}\n${e.commentBefore}`:t}e.comment=s.after.join("\n")||null}else e.comment=s.before.concat(s.after).join("\n")||null}(this,s),this.anchors.resolveNodes(),this.options.prettyErrors){for(let e of this.errors)e instanceof t.YAMLError&&e.makePretty();for(let e of this.warnings)e instanceof t.YAMLError&&e.makePretty()}return this}listNonDefaultTags(){return(e=>Object.keys(u(e,{})))(this.contents).filter((e=>0!==e.indexOf(r.Schema.defaultPrefix)))}setTagPrefix(e,t){if("!"!==e[0]||"!"!==e[e.length-1])throw new Error("Handle must start and end with !");if(t){let n=this.tagPrefixes.find((t=>t.handle===e));n?n.prefix=t:this.tagPrefixes.push({handle:e,prefix:t})}else this.tagPrefixes=this.tagPrefixes.filter((t=>t.handle!==e))}toJSON(e,t){let{keepBlobsInJSON:r,mapAsMap:i,maxAliasCount:s}=this.options,o=r&&("string"!=typeof e||!(this.contents instanceof n.Scalar)),l={doc:this,indentStep:" ",keep:o,mapAsMap:o&&!!i,maxAliasCount:s,stringify:a},u=Object.keys(this.anchors.map);u.length>0&&(l.anchors=new Map(u.map((e=>[this.anchors.map[e],{alias:[],aliasCount:0,count:1}]))));let c=n.toJSON(this.contents,e,l);if("function"==typeof t&&l.anchors)for(let{count:e,res:n}of l.anchors.values())t(n,e);return c}toString(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");let e=this.options.indent;if(!Number.isInteger(e)||e<=0){let t=JSON.stringify(e);throw new Error(`"indent" option must be a positive integer, not ${t}`)}this.setSchema();let t=[],r=!1;if(this.version){let e="%YAML 1.2";"yaml-1.1"===this.schema.name&&("1.0"===this.version?e="%YAML:1.0":"1.1"===this.version&&(e="%YAML 1.1")),t.push(e),r=!0}let i=this.listNonDefaultTags();this.tagPrefixes.forEach((({handle:e,prefix:n})=>{i.some((e=>0===e.indexOf(n)))&&(t.push(`%TAG ${e} ${n}`),r=!0)})),(r||this.directivesEndMarker)&&t.push("---"),this.commentBefore&&((r||!this.directivesEndMarker)&&t.unshift(""),t.unshift(this.commentBefore.replace(/^/gm,"#")));let s={anchors:Object.create(null),doc:this,indent:"",indentStep:" ".repeat(e),stringify:a},o=!1,l=null;if(this.contents){this.contents instanceof n.Node&&(this.contents.spaceBefore&&(r||this.directivesEndMarker)&&t.push(""),this.contents.commentBefore&&t.push(this.contents.commentBefore.replace(/^/gm,"#")),s.forceBlockIndent=!!this.comment,l=this.contents.comment);let e=l?null:()=>o=!0,i=a(this.contents,s,(()=>l=null),e);t.push(n.addComment(i,"",l))}else void 0!==this.contents&&t.push(a(this.contents,s));return this.comment&&((!o||l)&&""!==t[t.length-1]&&t.push(""),t.push(this.comment.replace(/^/gm,"#"))),t.join("\n")+"\n"}};t._defineProperty(d,"defaults",s),e.Document=d,e.defaultOptions={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"},e.scalarOptions=i})),Wi=ki((e=>{var t=Pi(),n=Vi(),r=ji(),i=Ri(),s=$i();Bi();var o=class extends n.Document{constructor(e){super(Object.assign({},n.defaultOptions,e))}};function a(e,n){let r=t.parse(e),s=new o(n).parse(r[0]);if(r.length>1){let e="Source contains multiple documents; please use YAML.parseAllDocuments()";s.errors.unshift(new i.YAMLSemanticError(r[1],e))}return s}var l={createNode:function(e,t=!0,i){void 0===i&&"string"==typeof t&&(i=t,t=!0);let s=Object.assign({},n.Document.defaults[n.defaultOptions.version],n.defaultOptions);return new r.Schema(s).createNode(e,t,i)},defaultOptions:n.defaultOptions,Document:o,parse:function(e,t){let n=a(e,t);if(n.warnings.forEach((e=>s.warn(e))),n.errors.length>0)throw n.errors[0];return n.toJSON()},parseAllDocuments:function(e,n){let r,i=[];for(let s of t.parse(e)){let e=new o(n);e.parse(s,r),i.push(e),r=e}return i},parseCST:t.parse,parseDocument:a,scalarOptions:n.scalarOptions,stringify:function(e,t){let n=new o(t);return n.contents=e,String(n)}};e.YAML=l})),qi=ki(((e,t)=>{t.exports=Wi().YAML})),Ki=ki((e=>{var t=Bi(),n=Ri();e.findPair=t.findPair,e.parseMap=t.resolveMap,e.parseSeq=t.resolveSeq,e.stringifyNumber=t.stringifyNumber,e.stringifyString=t.stringifyString,e.toJSON=t.toJSON,e.Type=n.Type,e.YAMLError=n.YAMLError,e.YAMLReferenceError=n.YAMLReferenceError,e.YAMLSemanticError=n.YAMLSemanticError,e.YAMLSyntaxError=n.YAMLSyntaxError,e.YAMLWarning=n.YAMLWarning})),Ui={};Ni(Ui,{__parsePrettierYamlConfig:()=>xa,languages:()=>bo,options:()=>Do,parsers:()=>wo,printers:()=>La});var Hi=(e,t,n,r)=>{if(!e||null!=t)return t.replaceAll?t.replaceAll(n,r):n.global?t.replace(n,r):t.split(n).join(r)},zi="string",Yi="array",Gi="cursor",Qi="indent",Ji="align",Xi="trim",Zi="group",es="fill",ts="if-break",ns="indent-if-break",rs="line-suffix",is="line-suffix-boundary",ss="line",os="label",as="break-parent",ls=new Set([Gi,Qi,Ji,Xi,Zi,es,ts,ns,rs,is,ss,os,as]),us=(e,t,n)=>{if(!e||null!=t)return Array.isArray(t)||"string"==typeof t?t[n<0?t.length+n:n]:t.at(n)},cs=function(e){if("string"==typeof e)return zi;if(Array.isArray(e))return Yi;if(!e)return;let{type:t}=e;return ls.has(t)?t:void 0};var hs=class extends Error{name="InvalidDocError";constructor(e){super(function(e){let t=null===e?"null":typeof e;if("string"!==t&&"object"!==t)return`Unexpected doc '${t}', \nExpected it to be 'string' or 'object'.`;if(cs(e))throw new Error("doc is valid.");let n=Object.prototype.toString.call(e);if("[object Object]"!==n)return`Unexpected doc '${n}'.`;let r=(e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e))([...ls].map((e=>`'${e}'`)));return`Unexpected doc.type '${e.type}'.\nExpected it to be ${r}.`}(e)),this.doc=e}};var fs=()=>{},ds=fs,ms=fs,ps=fs;function gs(e,t){return ds(t),{type:Ji,contents:t,n:e}}function ys(e,t={}){return ds(e),ms(t.expandedStates,!0),{type:Zi,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function bs(e){return gs(Number.NEGATIVE_INFINITY,e)}function vs(e){return gs({type:"root"},e)}function Ds(e,t){return ys(e[0],{...t,expandedStates:e})}function ws(e){return ps(e),{type:es,parts:e}}function Cs(e,t="",n={}){return ds(e),""!==t&&ds(t),{type:ts,breakContents:e,flatContents:t,groupId:n.groupId}}var Es={type:as},Ss={type:ss},As={type:ss,soft:!0},_s=[{type:ss,hard:!0},Es],ks=[{type:ss,hard:!0,literal:!0},Es];function Ns(e,t){ds(e),ms(t);let n=[];for(let r=0;r<t.length;r++)0!==r&&n.push(e),n.push(t[r]);return n}function Ls(e){return(t,n,r)=>{let i=!(null==r||!r.backwards);if(!1===n)return!1;let{length:s}=t,o=n;for(;o>=0&&o<s;){let n=t.charAt(o);if(e instanceof RegExp){if(!e.test(n))return o}else if(!e.includes(n))return o;i?o--:o++}return(-1===o||o===s)&&o}}Ls(/\s/u);var xs=Ls(" \t");Ls(",; \t"),Ls(/[^\n\r]/u);var Fs=function(e,t,n){let r=!(null==n||!n.backwards);if(!1===t)return!1;let i=e.charAt(t);if(r){if("\r"===e.charAt(t-1)&&"\n"===i)return t-2;if("\n"===i||"\r"===i||"\u2028"===i||"\u2029"===i)return t-1}else{if("\r"===i&&"\n"===e.charAt(t+1))return t+2;if("\n"===i||"\r"===i||"\u2028"===i||"\u2029"===i)return t+1}return t},Os=function(e,t){let n=t-1;return n=xs(e,n,{backwards:!0}),n=Fs(e,n,{backwards:!0}),n=xs(e,n,{backwards:!0}),n!==Fs(e,n,{backwards:!0})},Ms=class extends Error{name="UnexpectedNodeError";constructor(e,t,n="type"){super(`Unexpected ${t} node ${n}: ${JSON.stringify(e[n])}.`),this.node=e}};function Ts(e,t){let{node:n}=e;if("root"===n.type&&t.filepath&&/(?:[/\\]|^)\.(?:prettier|stylelint|lintstaged)rc$/u.test(t.filepath))return async e=>{let n=await e(t.originalText,{parser:"json"});return n?[n,_s]:void 0}}Ts.getVisitorKeys=()=>[];var Is=Ts,Rs=null;function Ps(e){if(null!==Rs&&(Rs.property,1)){let e=Rs;return Rs=Ps.prototype=null,e}return Rs=Ps.prototype=e??Object.create(null),new Ps}for(let e=0;e<=10;e++)Ps();var Bs=Object.fromEntries(Object.entries({root:["children"],document:["head","body","children"],documentHead:["children"],documentBody:["children"],directive:[],alias:[],blockLiteral:[],blockFolded:["children"],plain:["children"],quoteSingle:[],quoteDouble:[],mapping:["children"],mappingItem:["key","value","children"],mappingKey:["content","children"],mappingValue:["content","children"],sequence:["children"],sequenceItem:["content","children"],flowMapping:["children"],flowMappingItem:["key","value","children"],flowSequence:["children"],flowSequenceItem:["content","children"],comment:[],tag:[],anchor:[]}).map((([e,t])=>[e,[...t,"anchor","tag","indicatorComment","leadingComments","middleComments","trailingComment","endComments"]]))),$s=function(e,t="type"){return function(e){Ps(e)}(e),function(n){let r=n[t],i=e[r];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${r}'.`),{node:n});return i}}(Bs);function js(e){return e.position.start.offset}var Vs=/^\s*#[^\S\n]*@(?:noformat|noprettier)\s*?(?:\n|$)/u,Ws=/^\s*#[^\S\n]*@(?:format|prettier)\s*?(?:\n|$)/u,qs=/^\s*@(?:format|prettier)\s*$/u,Ks=function(e){return Array.isArray(e)&&e.length>0};function Us(e,t){return"string"==typeof(null==e?void 0:e.type)&&(!t||t.includes(e.type))}function Hs(e,t,n){return t("children"in e?{...e,children:e.children.map((n=>Hs(n,t,e)))}:e,n)}function zs(e,t,n){Object.defineProperty(e,t,{get:n,enumerable:!1})}function Ys(e){let{node:t}=e;switch(t.type){case"tag":case"anchor":case"comment":return!1}let n=e.stack.length;for(let t=1;t<n;t++){let n=e.stack[t],r=e.stack[t-1];if(Array.isArray(r)&&"number"==typeof n&&n!==r.length-1)return!1}return!0}function Gs(e){return Ks(e.children)?Gs(us(!1,e.children,-1)):e}function Qs(e){return"prettier-ignore"===e.value.trim()}function Js(e){return!Ks(e.children)&&!function(e){return Xs(e)||Zs(e)||eo(e)||to(e)||no(e)}(e)}function Xs(e){return Ks(null==e?void 0:e.leadingComments)}function Zs(e){return Ks(null==e?void 0:e.middleComments)}function eo(e){return null==e?void 0:e.indicatorComment}function to(e){return null==e?void 0:e.trailingComment}function no(e){return Ks(null==e?void 0:e.endComments)}function ro(e){let t,n=[];for(let r of e.split(/( +)/u))" "!==r?" "===t?n.push(r):n.push((n.pop()||"")+r):void 0===t&&n.unshift(""),t=r;return" "===t&&n.push((n.pop()||"")+" "),""===n[0]&&(n.shift(),n.unshift(" "+(n.shift()||""))),n}function io(e){if(!e)return!0;switch(e.type){case"plain":case"quoteDouble":case"quoteSingle":case"alias":case"flowMapping":case"flowSequence":return!0;default:return!1}}var so=new WeakMap;function oo(e,t){let n,{node:r,root:i}=e;return so.has(i)?n=so.get(i):(n=new Set,so.set(i,n)),n.has(r.position.end.line)||(n.add(r.position.end.line),!function(e,t){let n=0,r=t.length;for(let i=e.position.end.offset-1;i<r;i++){let e=t[i];if("\n"===e&&n++,1===n&&/\S/u.test(e))return!1;if(2===n)return!0}return!1}(r,t)||ao(e.parent))?"":As}function ao(e){return no(e)&&!Us(e,["documentHead","documentBody","flowMapping","flowSequence"])}function lo(e,t){return gs(" ".repeat(e),t)}function uo(e,t,n){return e.map((({isLast:r,node:i,next:s})=>[n(),r?"":[",",Ss,i.position.start.line!==s.position.start.line?oo(e,t.originalText):""]]),"children")}function co(e,t){if(!e)return!0;switch(e.type){case"plain":case"quoteSingle":case"quoteDouble":break;case"alias":return!0;default:return!1}if("preserve"===t.proseWrap)return e.position.start.line===e.position.end.line;if(/\\$/mu.test(t.originalText.slice(e.position.start.offset,e.position.end.offset)))return!1;switch(t.proseWrap){case"never":return!e.value.includes("\n");case"always":return!/[\n ]/u.test(e.value);default:return!1}}function ho(e){switch(e.type){case"document":zs(e,"head",(()=>e.children[0])),zs(e,"body",(()=>e.children[1]));break;case"documentBody":case"sequenceItem":case"flowSequenceItem":case"mappingKey":case"mappingValue":zs(e,"content",(()=>e.children[0]));break;case"mappingItem":case"flowMappingItem":zs(e,"key",(()=>e.children[0])),zs(e,"value",(()=>e.children[1]))}return e}function fo(e,t){return to(e)||t&&(t.head.children.length>0||no(t.head))}function mo(e,t,n){let r=function(e,t,n){let r=t.split("\n").map(((e,t,n)=>0===t&&t===n.length-1?e:0!==t&&t!==n.length-1?e.trim():0===t?e.trimEnd():e.trimStart()));return"preserve"===n.proseWrap?r.map((e=>0===e.length?[]:[e])):r.map((e=>0===e.length?[]:ro(e))).reduce(((t,n,i)=>0!==i&&r[i-1].length>0&&n.length>0&&("quoteDouble"!==e||!us(!1,us(!1,t,-1),-1).endsWith("\\"))?[...t.slice(0,-1),[...us(!1,t,-1),...n]]:[...t,n]),[]).map((e=>"never"===n.proseWrap?[e.join(" ")]:e))}(e,t,n);return Ns(_s,r.map((e=>ws(Ns(Ss,e)))))}function po(e,t){if(Us(e))switch(e.type){case"comment":if(function(e){return qs.test(e)}(e.value))return null;break;case"quoteDouble":case"quoteSingle":t.type="quote"}}po.ignoredProperties=new Set(["position"]);var go={preprocess:function(e){return Hs(e,ho)},embed:Is,print:function(e,t,n){let{node:r}=e,i=[];"mappingValue"!==r.type&&Xs(r)&&i.push([Ns(_s,e.map(n,"leadingComments")),_s]);let{tag:s,anchor:o}=r;s&&i.push(n("tag")),s&&o&&i.push(" "),o&&i.push(n("anchor"));let a="";return Us(r,["mapping","sequence","comment","directive","mappingItem","sequenceItem"])&&!Ys(e)&&(a=oo(e,t.originalText)),(s||o)&&(Us(r,["sequence","mapping"])&&!Zs(r)?i.push(_s):i.push(" ")),Zs(r)&&i.push([1===r.middleComments.length?"":_s,Ns(_s,e.map(n,"middleComments")),_s]),function(e){let{node:t}=e;if("documentBody"===t.type){let t=e.parent.head;return no(t)&&Qs(us(!1,t.endComments,-1))}return Xs(t)&&Qs(us(!1,t.leadingComments,-1))}(e)?i.push(function(e,t=ks){return function(e,t){if("string"==typeof e)return t(e);let n=new Map;return function e(r){if(n.has(r))return n.get(r);let i=function(n){switch(cs(n)){case Yi:return t(n.map(e));case es:return t({...n,parts:n.parts.map(e)});case ts:return t({...n,breakContents:e(n.breakContents),flatContents:e(n.flatContents)});case Zi:{let{expandedStates:r,contents:i}=n;return r?(r=r.map(e),i=r[0]):i=e(i),t({...n,contents:i,expandedStates:r})}case Ji:case Qi:case ns:case os:case rs:return t({...n,contents:e(n.contents)});case zi:case Gi:case Xi:case is:case ss:case as:return t(n);default:throw new hs(n)}}(r);return n.set(r,i),i}(e)}(e,(e=>"string"==typeof e?Ns(t,e.split("\n")):e))}(t.originalText.slice(r.position.start.offset,r.position.end.offset).trimEnd())):i.push(ys(function(e,t,n){let{node:r}=e;switch(r.type){case"root":{let t=[];e.each((({node:e,next:r,isFirst:i})=>{i||t.push(_s),t.push(n()),fo(e,r)?(t.push(_s,"..."),to(e)&&t.push(" ",n("trailingComment"))):r&&!to(r.head)&&t.push(_s,"---")}),"children");let i=Gs(r);return(!Us(i,["blockLiteral","blockFolded"])||"keep"!==i.chomping)&&t.push(_s),t}case"document":{let i=[];return"head"===function(e,t){let n=e.node;if(e.isFirst&&/---(?:\s|$)/u.test(t.originalText.slice(js(n),js(n)+4))||n.head.children.length>0||no(n.head)||to(n.head))return"head";let r=e.next;return!fo(n,r)&&!!r&&"root"}(e,t)&&((r.head.children.length>0||r.head.endComments.length>0)&&i.push(n("head")),to(r.head)?i.push(["---"," ",n(["head","trailingComment"])]):i.push("---")),function(e){return e.body.children.length>0||no(e.body)}(r)&&i.push(n("body")),Ns(_s,i)}case"documentHead":return Ns(_s,[...e.map(n,"children"),...e.map(n,"endComments")]);case"documentBody":{let{children:t,endComments:i}=r,s="";if(t.length>0&&i.length>0){let e=Gs(r);Us(e,["blockFolded","blockLiteral"])?"keep"!==e.chomping&&(s=[_s,_s]):s=_s}return[Ns(_s,e.map(n,"children")),s,Ns(_s,e.map(n,"endComments"))]}case"directive":return["%",Ns(" ",[r.name,...r.parameters])];case"comment":return["#",r.value];case"alias":return["*",r.value];case"tag":return t.originalText.slice(r.position.start.offset,r.position.end.offset);case"anchor":return["&",r.value];case"plain":return mo(r.type,t.originalText.slice(r.position.start.offset,r.position.end.offset),t);case"quoteDouble":case"quoteSingle":{let e="'",n='"',i=t.originalText.slice(r.position.start.offset+1,r.position.end.offset-1);if("quoteSingle"===r.type&&i.includes("\\")||"quoteDouble"===r.type&&/\\[^"]/u.test(i)){let s="quoteDouble"===r.type?n:e;return[s,mo(r.type,i,t),s]}if(i.includes(n))return[e,mo(r.type,"quoteDouble"===r.type?Hi(!1,Hi(!1,i,String.raw`\"`,n),"'",e.repeat(2)):i,t),e];if(i.includes(e))return[n,mo(r.type,"quoteSingle"===r.type?Hi(!1,i,"''",e):i,t),n];let s=t.singleQuote?e:n;return[s,mo(r.type,i,t),s]}case"blockFolded":case"blockLiteral":return function(e,t,n){let{node:r}=e,i=e.ancestors.filter((e=>"sequence"===e.type||"mapping"===e.type)).length,s=Ys(e),o=["blockFolded"===r.type?">":"|"];null!==r.indent&&o.push(r.indent.toString()),"clip"!==r.chomping&&o.push("keep"===r.chomping?"+":"-"),eo(r)&&o.push(" ",n("indicatorComment"));let a=function(e,{parentIndent:t,isLastDescendant:n,options:r}){let i,s=e.position.start.line===e.position.end.line?"":r.originalText.slice(e.position.start.offset,e.position.end.offset).match(/^[^\n]*\n(.*)$/su)[1];if(null===e.indent){let e=s.match(/^(?<leadingSpace> *)[^\n\r ]/mu);i=e?e.groups.leadingSpace.length:Number.POSITIVE_INFINITY}else i=e.indent-1+t;let o=s.split("\n").map((e=>e.slice(i)));return"preserve"===r.proseWrap||"blockLiteral"===e.type?a(o.map((e=>0===e.length?[]:[e]))):a(o.map((e=>0===e.length?[]:ro(e))).reduce(((e,t,n)=>0!==n&&o[n-1].length>0&&t.length>0&&!/^\s/u.test(t[0])&&!/^\s|\s$/u.test(us(!1,e,-1))?[...e.slice(0,-1),[...us(!1,e,-1),...t]]:[...e,t]),[]).map((e=>e.reduce(((e,t)=>e.length>0&&/\s$/u.test(us(!1,e,-1))?[...e.slice(0,-1),us(!1,e,-1)+" "+t]:[...e,t]),[]))).map((e=>"never"===r.proseWrap?[e.join(" ")]:e)));function a(t){if("keep"===e.chomping)return 0===us(!1,t,-1).length?t.slice(0,-1):t;let r=0;for(let e=t.length-1;e>=0&&0===t[e].length;e--)r++;return 0===r?t:r>=2&&!n?t.slice(0,-(r-1)):t.slice(0,-r)}}(r,{parentIndent:i,isLastDescendant:s,options:t}),l=[];for(let[e,t]of a.entries())0===e&&l.push(_s),l.push(ws(Ns(Ss,t))),e!==a.length-1?l.push(0===t.length?_s:vs(ks)):"keep"===r.chomping&&s&&l.push(bs(0===t.length?_s:ks));return null===r.indent?o.push(function(e){return gs(-1,e)}(lo(t.tabWidth,l))):o.push(bs(lo(r.indent-1+i,l))),o}(e,t,n);case"mapping":case"sequence":return Ns(_s,e.map(n,"children"));case"sequenceItem":return["- ",lo(2,r.content?n("content"):"")];case"mappingKey":case"mappingValue":return r.content?n("content"):"";case"mappingItem":case"flowMappingItem":return function(e,t,n){var r;let{node:i,parent:s}=e,{key:o,value:a}=i,l=Js(o),u=Js(a);if(l&&u)return": ";let c=n("key"),h=function(e){var t;return"alias"===(null==(t=e.key.content)?void 0:t.type)}(i)?" ":"";if(u)return"flowMappingItem"===i.type&&"flowMapping"===s.type?c:"mappingItem"===i.type&&co(o.content,t)&&!to(o.content)&&"tag:yaml.org,2002:set"!==(null==(r=s.tag)?void 0:r.value)?[c,h,":"]:["? ",lo(2,c)];let f=n("value");if(l)return[": ",lo(2,f)];if(Xs(a)||!io(o.content))return["? ",lo(2,c),_s,...e.map((()=>[n(),_s]),"value","leadingComments"),": ",lo(2,f)];if(function(e){if(!e)return!0;switch(e.type){case"plain":case"quoteDouble":case"quoteSingle":return e.position.start.line===e.position.end.line;case"alias":return!0;default:return!1}}(o.content)&&!Xs(o.content)&&!Zs(o.content)&&!to(o.content)&&!no(o)&&!Xs(a.content)&&!Zs(a.content)&&!no(a)&&co(a.content,t))return[c,h,": ",f];let d=Symbol("mappingKey"),m=ys([Cs("? "),ys(lo(2,c),{id:d})]),p=[_s,": ",lo(2,f)],g=[h,":"];no(a)&&a.content&&Us(a.content,["flowMapping","flowSequence"])&&0===a.content.children.length?g.push(" "):Xs(a.content)||no(a)&&a.content&&!Us(a.content,["mapping","sequence"])||"mapping"===s.type&&to(o.content)&&io(a.content)||Us(a.content,["mapping","sequence"])&&null===a.content.tag&&null===a.content.anchor?g.push(_s):a.content?g.push(Ss):to(a)&&g.push(" "),g.push(f);let y=lo(t.tabWidth,g);return!co(o.content,t)||Xs(o.content)||Zs(o.content)||no(o)?Ds([[m,Cs(p,y,{groupId:d})]]):Ds([[c,y]])}(e,t,n);case"flowMapping":case"flowSequence":return function(e,t,n){let{node:r}=e,i="flowMapping"===r.type,s=i?"{":"[",o=i?"}":"]",a=As;i&&r.children.length>0&&t.bracketSpacing&&(a=Ss);let l=us(!1,r.children,-1),u="flowMappingItem"===(null==l?void 0:l.type)&&Js(l.key)&&Js(l.value);return[s,lo(t.tabWidth,[a,uo(e,t,n),"none"===t.trailingComma?"":Cs(","),no(r)?[_s,Ns(_s,e.map(n,"endComments"))]:""]),u?"":a,o]}(e,t,n);case"flowSequenceItem":return n("content");default:throw new Ms(r,"YAML")}}(e,t,n))),to(r)&&!Us(r,["document","documentHead"])&&i.push(function(e){return ds(e),{type:rs,contents:e}}(["mappingValue"!==r.type||r.content?" ":"","mappingKey"===e.parent.type&&"mapping"===e.getParentNode(2).type&&io(r)?"":Es,n("trailingComment")])),ao(r)&&i.push(lo("sequenceItem"===r.type?2:0,[_s,Ns(_s,e.map((({node:e})=>[Os(t.originalText,js(e))?_s:"",n()]),"endComments"))])),i.push(a),i},massageAstNode:po,insertPragma:function(e){return`# @format\n\n${e}`},getVisitorKeys:$s},yo=go,bo=[{name:"YAML",type:"data",extensions:[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yaml.sed",".yml.mysql"],tmScope:"source.yaml",aceMode:"yaml",aliases:["yml"],codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",filenames:[".clang-format",".clang-tidy",".clangd",".gemrc","CITATION.cff","glide.lock","pixi.lock",".prettierrc",".stylelintrc",".lintstagedrc"],parsers:["yaml"],vscodeLanguageIds:["yaml","ansible","dockercompose","github-actions-workflow","home-assistant"],linguistLanguageId:407}],vo={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},Do={bracketSpacing:vo.bracketSpacing,singleQuote:vo.singleQuote,proseWrap:vo.proseWrap},wo={};Ni(wo,{yaml:()=>Na});var Co,Eo,So,Ao,_o,ko,No,Lo,xo,Fo=Li(qi(),1),Oo=Li(Ki(),1),Mo=(Oo.default.findPair,Oo.default.toJSON,Oo.default.parseMap,Oo.default.parseSeq,Oo.default.stringifyNumber,Oo.default.stringifyString,Oo.default.Type,Oo.default.YAMLError,Oo.default.YAMLReferenceError,Oo.default.YAMLSemanticError);function To(e,t=null){"children"in e&&e.children.forEach((t=>To(t,e))),"anchor"in e&&e.anchor&&To(e.anchor,e),"tag"in e&&e.tag&&To(e.tag,e),"leadingComments"in e&&e.leadingComments.forEach((t=>To(t,e))),"middleComments"in e&&e.middleComments.forEach((t=>To(t,e))),"indicatorComment"in e&&e.indicatorComment&&To(e.indicatorComment,e),"trailingComment"in e&&e.trailingComment&&To(e.trailingComment,e),"endComments"in e&&e.endComments.forEach((t=>To(t,e))),Object.defineProperty(e,"_parent",{value:t,enumerable:!1})}function Io(e){return`${e.line}:${e.column}`}function Ro(e){To(e);let t=function(e){let t=Array.from(new Array(e.position.end.line),(()=>({})));for(let n of e.comments)t[n.position.start.line-1].comment=n;return Po(t,e),t}(e),n=e.children.slice();e.comments.sort(((e,t)=>e.position.start.offset-t.position.end.offset)).filter((e=>!e._parent)).forEach((e=>{for(;n.length>1&&e.position.start.line>n[0].position.end.line;)n.shift();!function(e,t,n){let r=e.position.start.line,{trailingAttachableNode:i}=t[r-1];if(i){if(i.trailingComment)throw new Error(`Unexpected multiple trailing comment at ${Io(e.position.start)}`);return To(e,i),void(i.trailingComment=e)}for(let i=r;i>=n.position.start.line;i--){let n,{trailingNode:s}=t[i-1];if(s)n=s;else{if(i===r||!t[i-1].comment)continue;n=t[i-1].comment._parent}if(("sequence"===n.type||"mapping"===n.type)&&(n=n.children[0]),"mappingItem"===n.type){let[e,t]=n.children;n=$o(e)?e:t}for(;;){if(Bo(n,e))return To(e,n),void n.endComments.push(e);if(!n._parent)break;n=n._parent}break}for(let i=r+1;i<=n.position.end.line;i++){let{leadingAttachableNode:n}=t[i-1];if(n)return To(e,n),void n.leadingComments.push(e)}let s=n.children[1];To(e,s),s.endComments.push(e)}(e,t,n[0])}))}function Po(e,t){if(t.position.start.offset!==t.position.end.offset){if("leadingComments"in t){let{start:n}=t.position,{leadingAttachableNode:r}=e[n.line-1];(!r||n.column<r.position.start.column)&&(e[n.line-1].leadingAttachableNode=t)}if("trailingComment"in t&&t.position.end.column>1&&"document"!==t.type&&"documentHead"!==t.type){let{end:n}=t.position,{trailingAttachableNode:r}=e[n.line-1];(!r||n.column>=r.position.end.column)&&(e[n.line-1].trailingAttachableNode=t)}if("root"!==t.type&&"document"!==t.type&&"documentHead"!==t.type&&"documentBody"!==t.type){let{start:n,end:r}=t.position,i=[r.line].concat(n.line===r.line?[]:n.line);for(let n of i){let i=e[n-1].trailingNode;(!i||r.column>=i.position.end.column)&&(e[n-1].trailingNode=t)}}"children"in t&&t.children.forEach((t=>{Po(e,t)}))}}function Bo(e,t){if(e.position.start.offset<t.position.start.offset&&e.position.end.offset>t.position.end.offset)switch(e.type){case"flowMapping":case"flowSequence":return 0===e.children.length||t.position.start.line>e.children[e.children.length-1].position.end.line}if(t.position.end.offset<e.position.end.offset)return!1;switch(e.type){case"sequenceItem":return t.position.start.column>e.position.start.column;case"mappingKey":case"mappingValue":return t.position.start.column>e._parent.position.start.column&&(0===e.children.length||1===e.children.length&&"blockFolded"!==e.children[0].type&&"blockLiteral"!==e.children[0].type)&&("mappingValue"===e.type||$o(e));default:return!1}}function $o(e){return e.position.start!==e.position.end&&(0===e.children.length||e.position.start.offset!==e.children[0].position.start.offset)}function jo(e,t){return{type:e,position:t}}function Vo(e){switch(e.type){case"DOCUMENT":for(let t=e.contents.length-1;t>=0;t--)"BLANK_LINE"===e.contents[t].type?e.contents.splice(t,1):Vo(e.contents[t]);for(let t=e.directives.length-1;t>=0;t--)"BLANK_LINE"===e.directives[t].type&&e.directives.splice(t,1);break;case"FLOW_MAP":case"FLOW_SEQ":case"MAP":case"SEQ":for(let t=e.items.length-1;t>=0;t--){let n=e.items[t];"char"in n||("BLANK_LINE"===n.type?e.items.splice(t,1):Vo(n))}break;case"MAP_KEY":case"MAP_VALUE":case"SEQ_ITEM":e.node&&Vo(e.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(e.type)}`)}}function Wo(e,t){return{start:e,end:t}}function qo(e){return{start:e,end:e}}function Ko(e,t){return{...jo("anchor",e),value:t}}function Uo(e,t){return{...jo("comment",e),value:t}}function Ho(e,t){return{...jo("tag",e),value:t}}function zo(e,t,n=()=>!1){let r=e.cstNode,i=[],s=null,o=null,a=null;for(let l of r.props){let u=t.text[l.origStart];switch(u){case Co.Tag:s=s||l,o=Ho(t.transformRange(l),e.tag);break;case Co.Anchor:s=s||l,a=Ko(t.transformRange(l),r.anchor);break;case Co.Comment:{let e=Uo(t.transformRange(l),t.text.slice(l.origStart+1,l.origEnd));t.comments.push(e),!n(e)&&s&&s.origEnd<=l.origStart&&l.origEnd<=r.valueRange.origStart&&i.push(e);break}default:throw new Error(`Unexpected leading character ${JSON.stringify(u)}`)}}return function(e,t,n){return{anchor:t,tag:e,middleComments:n}}(o,a,i)}function Yo(e=null){return{trailingComment:e}}function Go(){return{leadingComments:[],...Yo()}}function Qo(e,t){let n=e.cstNode,r="CLIP"===n.chomping?0:1,i=n.header.origEnd-n.header.origStart-1-r!=0,s=t.transformRange({origStart:n.header.origStart,origEnd:n.valueRange.origEnd}),o=null,a=zo(e,t,(e=>{if(!(s.start.offset<e.position.start.offset&&e.position.end.offset<s.end.offset))return!1;if(o)throw new Error(`Unexpected multiple indicator comments at ${Io(e.position.start)}`);return o=e,!0}));return function(e,t,n,r,i,s){return{...jo("blockValue",e),leadingComments:[],...t,chomping:n,indent:r,value:i,indicatorComment:s}}(s,a,So[n.chomping],i?n.blockIndent:null,n.strValue,o)}function Jo(e,t){for(let n of e.props){let e=t.text[n.origStart];if(e!==Co.Comment)throw new Error(`Unexpected leading character ${JSON.stringify(e)}`);t.comments.push(Uo(t.transformRange(n),t.text.slice(n.origStart+1,n.origEnd)))}}function Xo(e=[]){return{endComments:e}}function Zo(e,t,n){return{...jo("documentBody",e),...Xo(n),children:t?[t]:[]}}function ea(e){return e[e.length-1]}function ta(e,t){let n=e.match(t);return n?n.index:-1}function na(e,t){let{createDocumentHeadWithTrailingComment:n,documentHeadEndMarkerPoint:r}=function(e,t){let n=e.cstNode,{directives:r,comments:i,endComments:s}=function(e,t){let n=[],r=[],i=[],s=!1;for(let o=e.directives.length-1;o>=0;o--){let a=t.transformNode(e.directives[o]);"comment"===a.type?s?r.unshift(a):i.unshift(a):(s=!0,n.unshift(a))}return{directives:n,comments:r,endComments:i}}(n,t),{position:o,endMarkerPoint:a}=function(e,t,n){let r=ta(n.text.slice(0,e.valueRange.origStart),/---\s*$/);r>0&&!/[\r\n]/.test(n.text[r-1])&&(r=-1);let i=-1===r?{origStart:e.valueRange.origStart,origEnd:e.valueRange.origStart}:{origStart:r,origEnd:r+3};return 0!==t.length&&(i.origStart=t[0].position.start.offset),{position:n.transformRange(i),endMarkerPoint:-1===r?null:n.transformOffset(r)}}(n,r,t);return t.comments.push(...i,...s),{createDocumentHeadWithTrailingComment:e=>(e&&t.comments.push(e),function(e,t,n,r){return{...jo("documentHead",e),...Xo(n),...Yo(r),children:t}}(o,r,s,e)),documentHeadEndMarkerPoint:a}}(e,t),{documentBody:i,documentEndPoint:s,documentTrailingComment:o,documentHeadTrailingComment:a}=function(e,t,n){let r=e.cstNode,{comments:i,endComments:s,documentTrailingComment:o,documentHeadTrailingComment:a}=function(e,t,n){let r=[],i=[],s=[],o=!1;for(let a=e.contents.length-1;a>=0;a--){let l=e.contents[a];if("COMMENT"===l.type){let a=t.transformNode(l);n&&n.line===a.position.start.line?s.unshift(a):o?r.unshift(a):a.position.start.offset>=e.valueRange.origEnd?i.unshift(a):r.unshift(a)}else o=!0}if(i.length>1)throw new Error(`Unexpected multiple document trailing comments at ${Io(i[1].position.start)}`);if(s.length>1)throw new Error(`Unexpected multiple documentHead trailing comments at ${Io(s[1].position.start)}`);return{comments:r,endComments:[],documentTrailingComment:ea(i)||null,documentHeadTrailingComment:ea(s)||null}}(r,t,n),l=t.transformNode(e.contents),{position:u,documentEndPoint:c}=function(e,t,n){let r=ta(n.text.slice(e.valueRange.origEnd),/^\.\.\./),i=-1===r?e.valueRange.origEnd:Math.max(0,e.valueRange.origEnd-1);"\r"===n.text[i-1]&&i--;let s=n.transformRange({origStart:null!==t?t.position.start.offset:i,origEnd:i});return{position:s,documentEndPoint:-1===r?s.end:n.transformOffset(e.valueRange.origEnd+3)}}(r,l,t);return t.comments.push(...i,...s),{documentBody:Zo(u,l,s),documentEndPoint:c,documentTrailingComment:o,documentHeadTrailingComment:a}}(e,t,r),l=n(a);return o&&t.comments.push(o),function(e,t,n,r){return{...jo("document",e),...Yo(r),children:[t,n]}}(Wo(l.position.start,s),l,i,o)}function ra(e,t,n){return{...jo("flowCollection",e),...Go(),...Xo(),...t,children:n}}function ia(e,t,n){return{...jo("flowMappingItem",e),leadingComments:[],children:[t,n]}}function sa(e,t){let n=[];for(let r of e)r&&"type"in r&&"COMMENT"===r.type?t.comments.push(t.transformNode(r)):n.push(r);return n}function oa(e){let[t,n]=["?",":"].map((t=>{let n=e.find((e=>"char"in e&&e.char===t));return n?{origStart:n.origOffset,origEnd:n.origOffset+1}:null}));return{additionalKeyRange:t,additionalValueRange:n}}function aa(e,t){let n=t;return t=>e.slice(n,n=t)}function la(e){let t=[],n=aa(e,1),r=!1;for(let i=1;i<e.length-1;i++){let s=e[i];"char"in s&&","===s.char?(t.push(n(i)),n(i+1),r=!1):r=!0}return r&&t.push(n(e.length-1)),t}function ua(e,t){return{...jo("mappingKey",e),...Yo(),...Xo(),children:t?[t]:[]}}function ca(e,t){return{...jo("mappingValue",e),...Go(),...Xo(),children:t?[t]:[]}}function ha(e,t,n,r,i){let s=t.transformNode(e.key),o=t.transformNode(e.value),a=s||r?ua(t.transformRange({origStart:r?r.origStart:s.position.start.offset,origEnd:s?s.position.end.offset:r.origStart+1}),s):null,l=o||i?ca(t.transformRange({origStart:i?i.origStart:o.position.start.offset,origEnd:o?o.position.end.offset:i.origStart+1}),o):null;return n(Wo(a?a.position.start:l.position.start,l?l.position.end:a.position.end),a||ua(qo(l.position.start),null),l||ca(qo(a.position.end),null))}function fa(e,t,n){return{...jo("mappingItem",e),leadingComments:[],children:[t,n]}}function da(e,t,n){for(let r=t;r>=0;r--)if(n.test(e[r]))return r;return-1}function ma(e,t){let n=e.cstNode;return function(e,t,n){return{...jo("quoteValue",e),...t,...Go(),value:n}}(t.transformRange(n.valueRange),t.transformContent(e),n.strValue)}function pa(e,t){if(null===e||void 0===e.type&&null===e.value)return null;switch(e.type){case"ALIAS":return function(e,t){let n=e.cstNode;return function(e,t,n){return{...jo("alias",e),...Go(),...t,value:n}}(t.transformRange({origStart:n.valueRange.origStart-1,origEnd:n.valueRange.origEnd}),t.transformContent(e),n.rawValue)}(e,t);case"BLOCK_FOLDED":return function(e,t){return function(e){return{...e,type:"blockFolded"}}(Qo(e,t))}(e,t);case"BLOCK_LITERAL":return function(e,t){return function(e){return{...e,type:"blockLiteral"}}(Qo(e,t))}(e,t);case"COMMENT":return function(e,t){return Uo(t.transformRange(e.range),e.comment)}(e,t);case"DIRECTIVE":return function(e,t){return Jo(e,t),function(e,t,n){return{...jo("directive",e),...Go(),name:t,parameters:n}}(t.transformRange(e.range),e.name,e.parameters)}(e,t);case"DOCUMENT":return na(e,t);case"FLOW_MAP":return function(e,t){let n=sa(e.cstNode.items,t),r=la(n),i=e.items.map(((e,n)=>{let i=r[n],{additionalKeyRange:s,additionalValueRange:o}=oa(i);return ha(e,t,ia,s,o)})),s=n[0],o=ea(n);return function(e,t,n){return{...ra(e,t,n),type:"flowMapping"}}(t.transformRange({origStart:s.origOffset,origEnd:o.origOffset+1}),t.transformContent(e),i)}(e,t);case"FLOW_SEQ":return function(e,t){let n=sa(e.cstNode.items,t),r=la(n),i=e.items.map(((e,n)=>{if("PAIR"!==e.type){let n=t.transformNode(e);return function(e,t){return{...jo("flowSequenceItem",e),children:[t]}}(Wo(n.position.start,n.position.end),n)}{let i=r[n],{additionalKeyRange:s,additionalValueRange:o}=oa(i);return ha(e,t,ia,s,o)}})),s=n[0],o=ea(n);return function(e,t,n){return{...ra(e,t,n),type:"flowSequence"}}(t.transformRange({origStart:s.origOffset,origEnd:o.origOffset+1}),t.transformContent(e),i)}(e,t);case"MAP":return function(e,t){let n=e.cstNode;n.items.filter((e=>"MAP_KEY"===e.type||"MAP_VALUE"===e.type)).forEach((e=>Jo(e,t)));let r=function(e){let t=[],n=aa(e,0),r=!1;for(let i=0;i<e.length;i++)"MAP_VALUE"!==e[i].type?(r&&t.push(n(i)),r=!0):(t.push(n(i+1)),r=!1);return r&&t.push(n(1/0)),t}(sa(n.items,t)),i=e.items.map(((e,n)=>{let i=r[n],[s,o]="MAP_VALUE"===i[0].type?[null,i[0].range]:[i[0].range,1===i.length?null:i[1].range];return ha(e,t,fa,s,o)}));return function(e,t,n){return{...jo("mapping",e),leadingComments:[],...t,children:n}}(Wo(i[0].position.start,ea(i).position.end),t.transformContent(e),i)}(e,t);case"PLAIN":return function(e,t){let n=e.cstNode;return function(e,t,n){return{...jo("plain",e),...Go(),...t,value:n}}(t.transformRange({origStart:n.valueRange.origStart,origEnd:da(t.text,n.valueRange.origEnd-1,/\S/)+1}),t.transformContent(e),n.strValue)}(e,t);case"QUOTE_DOUBLE":return function(e,t){return function(e){return{...e,type:"quoteDouble"}}(ma(e,t))}(e,t);case"QUOTE_SINGLE":return function(e,t){return function(e){return{...e,type:"quoteSingle"}}(ma(e,t))}(e,t);case"SEQ":return function(e,t){let n=sa(e.cstNode.items,t).map(((n,r)=>{Jo(n,t);let i=t.transformNode(e.items[r]);return function(e,t){return{...jo("sequenceItem",e),...Go(),...Xo(),children:t?[t]:[]}}(Wo(t.transformOffset(n.valueRange.origStart),null===i?t.transformOffset(n.valueRange.origStart+1):i.position.end),i)}));return function(e,t,n){return{...jo("sequence",e),leadingComments:[],...Xo(),...t,children:n}}(Wo(n[0].position.start,ea(n).position.end),t.transformContent(e),n)}(e,t);default:throw new Error(`Unexpected node type ${e.type}`)}}Oo.default.YAMLSyntaxError,Oo.default.YAMLWarning,(Eo=Co||(Co={})).Tag="!",Eo.Anchor="&",Eo.Comment="#",function(e){e.CLIP="clip",e.STRIP="strip",e.KEEP="keep"}(So||(So={})),_o=new WeakMap,ko=new WeakMap,No=new WeakSet,Lo=function(e){if(!Ao){let[e]=Oi(this,_o),t=Object.getPrototypeOf(Object.getPrototypeOf(e));Ao=Object.getOwnPropertyDescriptor(t,"rangeAsLinePos").get}Oi(this,ko)??Ti(this,ko,{root:{context:{src:this.text}}});let{start:{line:t,col:n},end:{line:r,col:i}}=Ao.call({range:{start:Ii(this,No,xo).call(this,e.origStart),end:Ii(this,No,xo).call(this,e.origEnd)},context:Oi(this,ko)});return{start:{offset:e.origStart,line:t,column:n},end:{offset:e.origEnd,line:r,column:i}}},xo=function(e){return e<0?0:e>this.text.length?this.text.length:e};var ga=class{constructor(e,t){Mi(this,No),xi(this,"text"),xi(this,"comments",[]),Mi(this,_o),Mi(this,ko),this.text=t,Ti(this,_o,e)}setOrigRanges(){if(!Oi(this,_o).setOrigRanges())for(let e of Oi(this,_o))e.setOrigRanges([],0)}transformOffset(e){return Ii(this,No,Lo).call(this,{origStart:e,origEnd:e}).start}transformRange(e){let{start:t,end:n}=Ii(this,No,Lo).call(this,e);return Wo(t,n)}transformNode(e){return pa(e,this)}transformContent(e){return zo(e,this)}};function ya(e,t){let n=e.source.range||e.source.valueRange;return function(e,t,n){let r=new SyntaxError(e);return r.name="YAMLSyntaxError",r.source=t,r.position=n,r}(e.message,t.text,t.transformRange(n))}function ba(e){if("children"in e){if(1===e.children.length){let t=e.children[0];if("plain"===t.type&&null===t.tag&&null===t.anchor&&""===t.value)return e.children.splice(0,1),e}e.children.forEach(ba)}return e}function va(e,t,n,r){let i=t(e);return t=>{r(i,t)&&n(e,i=t)}}function Da(e){if(null===e||!("children"in e))return;let t=e.children;if(t.forEach(Da),"document"===e.type){let[t,n]=e.children;t.position.start.offset===t.position.end.offset?t.position.start=t.position.end=n.position.start:n.position.start.offset===n.position.end.offset&&(n.position.start=n.position.end=t.position.end)}let n=va(e.position,wa,Ca,Aa),r=va(e.position,Ea,Sa,_a);"endComments"in e&&0!==e.endComments.length&&(n(e.endComments[0].position.start),r(ea(e.endComments).position.end));let i=t.filter((e=>null!==e));if(0!==i.length){let e=i[0],t=ea(i);n(e.position.start),r(t.position.end),"leadingComments"in e&&0!==e.leadingComments.length&&n(e.leadingComments[0].position.start),"tag"in e&&e.tag&&n(e.tag.position.start),"anchor"in e&&e.anchor&&n(e.anchor.position.start),"trailingComment"in t&&t.trailingComment&&r(t.trailingComment.position.end)}}function wa(e){return e.start}function Ca(e,t){e.start=t}function Ea(e){return e.end}function Sa(e,t){e.end=t}function Aa(e,t){return t.offset<e.offset}function _a(e,t){return t.offset>e.offset}function ka(e){let t=Fo.default.parseCST(e),n=new ga(t,e);n.setOrigRanges();let r=t.map((e=>new Fo.default.Document({merge:!1,keepCstNodes:!0}).parse(e)));for(let e of r)for(let t of e.errors)if(!(t instanceof Mo&&'Map keys must be unique; "<<" is repeated'===t.message))throw ya(t,n);r.forEach((e=>Vo(e.cstNode)));let i=function(e,t,n){return{...jo("root",e),children:t,comments:n}}(n.transformRange({origStart:0,origEnd:e.length}),r.map((e=>n.transformNode(e))),n.comments);return Ro(i),Da(i),ba(i),i}var Na={astFormat:"yaml",parse:function(e){try{let t=ka(e);return delete t.comments,t}catch(e){throw null!=e&&e.position?function(e,t){let n=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(n,t)}(e.message,{loc:e.position,cause:e}):e}},hasPragma:function(e){return Ws.test(e)},hasIgnorePragma:function(e){return Vs.test(e)},locStart:js,locEnd:function(e){return e.position.end.offset}},La={yaml:yo},xa=Li(qi(),1).default.parse,Fa=Ui,Oa=Object.create,Ma=Object.defineProperty,Ta=Object.getOwnPropertyDescriptor,Ia=Object.getOwnPropertyNames,Ra=Object.getPrototypeOf,Pa=Object.prototype.hasOwnProperty,Ba=e=>{throw TypeError(e)},$a=(e,t)=>{for(var n in t)Ma(e,n,{get:t[n],enumerable:!0})},ja=(e,t,n)=>(((e,t)=>{t.has(e)||Ba("Cannot access private method")})(e,t),n),Va=((e,t)=>()=>(t||(e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=/\r\n|[\n\r\u2028\u2029]/;e.codeFrameColumns=function(e,n,r={}){let i=new Proxy({},{get:()=>e=>e}),s=e.split(t),{start:o,end:a,markerLines:l}=function(e,t,n){let r=Object.assign({column:0,line:-1},e.start),i=Object.assign({},r,e.end),{linesAbove:s=2,linesBelow:o=3}=n||{},a=r.line,l=r.column,u=i.line,c=i.column,h=Math.max(a-(s+1),0),f=Math.min(t.length,u+o);-1===a&&(h=0),-1===u&&(f=t.length);let d=u-a,m={};if(d)for(let e=0;e<=d;e++){let n=e+a;if(l)if(0===e){let e=t[n-1].length;m[n]=[l,e-l+1]}else if(e===d)m[n]=[0,c];else{let r=t[n-e].length;m[n]=[0,r]}else m[n]=!0}else m[a]=l===c?!l||[l,0]:[l,c-l];return{start:h,end:f,markerLines:m}}(n,s,r),u=n.start&&"number"==typeof n.start.column,c=String(a).length,h=e.split(t,a).slice(o,a).map(((e,t)=>{let n=o+1+t,s=` ${` ${n}`.slice(-c)} |`,a=l[n],u=!l[n+1];if(a){let t="";if(Array.isArray(a)){let n=e.slice(0,Math.max(a[0]-1,0)).replace(/[^\t]/g," "),o=a[1]||1;t=["\n ",i.gutter(s.replace(/\d/g," "))," ",n,i.marker("^").repeat(o)].join(""),u&&r.message&&(t+=" "+i.message(r.message))}return[i.marker(">"),i.gutter(s),e.length>0?` ${e}`:"",t].join("")}return` ${i.gutter(s)}${e.length>0?` ${e}`:""}`})).join("\n");return r.message&&!u&&(h=`${" ".repeat(c+1)}${r.message}\n${h}`),h}})((t={exports:{}}).exports),t.exports))();$a({},{__debug:()=>jh,check:()=>Ih,doc:()=>hh,format:()=>Th,formatWithCursor:()=>Mh,getSupportInfo:()=>$h,util:()=>gh,version:()=>ph});var Wa=(e,t,n,r)=>{if(!e||null!=t)return t.replaceAll?t.replaceAll(n,r):n.global?t.replace(n,r):t.split(n).join(r)},qa=class{diff(e,t,n={}){let r;"function"==typeof n?(r=n,n={}):"callback"in n&&(r=n.callback);let i=this.castInput(e,n),s=this.castInput(t,n),o=this.removeEmpty(this.tokenize(i,n)),a=this.removeEmpty(this.tokenize(s,n));return this.diffWithOptionsObj(o,a,n,r)}diffWithOptionsObj(e,t,n,r){var i;let s=e=>(e=this.postProcess(e,n),r?void setTimeout((function(){r(e)}),0):e),o=t.length,a=e.length,l=1,u=o+a;null!=n.maxEditLength&&(u=Math.min(u,n.maxEditLength));let c=null!==(i=n.timeout)&&void 0!==i?i:1/0,h=Date.now()+c,f=[{oldPos:-1,lastComponent:void 0}],d=this.extractCommon(f[0],t,e,0,n);if(f[0].oldPos+1>=a&&d+1>=o)return s(this.buildValues(f[0].lastComponent,t,e));let m=-1/0,p=1/0,g=()=>{for(let r=Math.max(m,-l);r<=Math.min(p,l);r+=2){let i,l=f[r-1],u=f[r+1];l&&(f[r-1]=void 0);let c=!1;if(u){let e=u.oldPos-r;c=u&&0<=e&&e<o}let h=l&&l.oldPos+1<a;if(c||h){if(i=!h||c&&l.oldPos<u.oldPos?this.addToPath(u,!0,!1,0,n):this.addToPath(l,!1,!0,1,n),d=this.extractCommon(i,t,e,r,n),i.oldPos+1>=a&&d+1>=o)return s(this.buildValues(i.lastComponent,t,e))||!0;f[r]=i,i.oldPos+1>=a&&(p=Math.min(p,r-1)),d+1>=o&&(m=Math.max(m,r+1))}else f[r]=void 0}l++};if(r)!function e(){setTimeout((function(){if(l>u||Date.now()>h)return r(void 0);g()||e()}),0)}();else for(;l<=u&&Date.now()<=h;){let e=g();if(e)return e}}addToPath(e,t,n,r,i){let s=e.lastComponent;return s&&!i.oneChangePerToken&&s.added===t&&s.removed===n?{oldPos:e.oldPos+r,lastComponent:{count:s.count+1,added:t,removed:n,previousComponent:s.previousComponent}}:{oldPos:e.oldPos+r,lastComponent:{count:1,added:t,removed:n,previousComponent:s}}}extractCommon(e,t,n,r,i){let s=t.length,o=n.length,a=e.oldPos,l=a-r,u=0;for(;l+1<s&&a+1<o&&this.equals(n[a+1],t[l+1],i);)l++,a++,u++,i.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return u&&!i.oneChangePerToken&&(e.lastComponent={count:u,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=a,l}equals(e,t,n){return n.comparator?n.comparator(e,t):e===t||!!n.ignoreCase&&e.toLowerCase()===t.toLowerCase()}removeEmpty(e){let t=[];for(let n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t}castInput(e,t){return e}tokenize(e,t){return Array.from(e)}join(e){return e.join("")}postProcess(e,t){return e}get useLongestToken(){return!1}buildValues(e,t,n){let r,i=[];for(;e;)i.push(e),r=e.previousComponent,delete e.previousComponent,e=r;i.reverse();let s=i.length,o=0,a=0,l=0;for(;o<s;o++){let e=i[o];if(e.removed)e.value=this.join(n.slice(l,l+e.count)),l+=e.count;else{if(!e.added&&this.useLongestToken){let r=t.slice(a,a+e.count);r=r.map((function(e,t){let r=n[l+t];return r.length>e.length?r:e})),e.value=this.join(r)}else e.value=this.join(t.slice(a,a+e.count));a+=e.count,e.added||(l+=e.count)}}return i}},Ka=new class extends qa{tokenize(e){return e.slice()}join(e){return e}removeEmpty(e){return e}};function Ua(e){switch(e){case"cr":return"\r";case"crlf":return"\r\n";default:return"\n"}}function Ha(e,t){let n;switch(t){case"\n":n=/\n/gu;break;case"\r":n=/\r/gu;break;case"\r\n":n=/\r\n/gu;break;default:throw new Error(`Unexpected "eol" ${JSON.stringify(t)}.`)}let r=e.match(n);return r?r.length:0}var za="string",Ya="array",Ga="cursor",Qa="indent",Ja="align",Xa="trim",Za="group",el="fill",tl="if-break",nl="indent-if-break",rl="line-suffix",il="line-suffix-boundary",sl="line",ol="label",al="break-parent",ll=new Set([Ga,Qa,Ja,Xa,Za,el,tl,nl,rl,il,sl,ol,al]),ul=(e,t,n)=>{if(!e||null!=t)return Array.isArray(t)||"string"==typeof t?t[n<0?t.length+n:n]:t.at(n)},cl=function(e){if("string"==typeof e)return za;if(Array.isArray(e))return Ya;if(!e)return;let{type:t}=e;return ll.has(t)?t:void 0};var hl=class extends Error{name="InvalidDocError";constructor(e){super(function(e){let t=null===e?"null":typeof e;if("string"!==t&&"object"!==t)return`Unexpected doc '${t}', \nExpected it to be 'string' or 'object'.`;if(cl(e))throw new Error("doc is valid.");let n=Object.prototype.toString.call(e);if("[object Object]"!==n)return`Unexpected doc '${n}'.`;let r=(e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e))([...ll].map((e=>`'${e}'`)));return`Unexpected doc.type '${e.type}'.\nExpected it to be ${r}.`}(e)),this.doc=e}},fl=hl,dl={},ml=function(e,t,n,r){let i=[e];for(;i.length>0;){let e=i.pop();if(e===dl){n(i.pop());continue}n&&i.push(e,dl);let s=cl(e);if(!s)throw new fl(e);if(!1!==(null==t?void 0:t(e)))switch(s){case Ya:case el:{let t=s===Ya?e:e.parts;for(let e=t.length-1;e>=0;--e)i.push(t[e]);break}case tl:i.push(e.flatContents,e.breakContents);break;case Za:if(r&&e.expandedStates)for(let t=e.expandedStates.length-1;t>=0;--t)i.push(e.expandedStates[t]);else i.push(e.contents);break;case Ja:case Qa:case nl:case ol:case rl:i.push(e.contents);break;case za:case Ga:case Xa:case il:case sl:case al:break;default:throw new fl(e)}}};function pl(e,t){if("string"==typeof e)return t(e);let n=new Map;return function e(r){if(n.has(r))return n.get(r);let i=function(n){switch(cl(n)){case Ya:return t(n.map(e));case el:return t({...n,parts:n.parts.map(e)});case tl:return t({...n,breakContents:e(n.breakContents),flatContents:e(n.flatContents)});case Za:{let{expandedStates:r,contents:i}=n;return r?(r=r.map(e),i=r[0]):i=e(i),t({...n,contents:i,expandedStates:r})}case Ja:case Qa:case nl:case ol:case rl:return t({...n,contents:e(n.contents)});case za:case Ga:case Xa:case il:case sl:case al:return t(n);default:throw new fl(n)}}(r);return n.set(r,i),i}(e)}function gl(e,t,n){let r=n,i=!1;return ml(e,(function(e){if(i)return!1;let n=t(e);void 0!==n&&(i=!0,r=n)})),r}function yl(e){if(e.type===Za&&e.break||e.type===sl&&e.hard||e.type===al)return!0}function bl(e){if(e.length>0){let t=ul(!1,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function vl(e){return e.type!==sl||e.hard?e.type===tl?e.flatContents:e:e.soft?"":" "}function Dl(e){for(e=[...e];e.length>=2&&ul(!1,e,-2).type===sl&&ul(!1,e,-1).type===al;)e.length-=2;if(e.length>0){let t=wl(ul(!1,e,-1));e[e.length-1]=t}return e}function wl(e){switch(cl(e)){case Qa:case nl:case Za:case rl:case ol:{let t=wl(e.contents);return{...e,contents:t}}case tl:return{...e,breakContents:wl(e.breakContents),flatContents:wl(e.flatContents)};case el:return{...e,parts:Dl(e.parts)};case Ya:return Dl(e);case za:return function(e){let t=e.length;for(;t>0&&("\r"===e[t-1]||"\n"===e[t-1]);)t--;return t<e.length?e.slice(0,t):e}(e);case Ja:case Ga:case Xa:case il:case sl:case al:break;default:throw new fl(e)}return e}function Cl(e){return wl(function(e){return pl(e,(e=>function(e){switch(cl(e)){case el:if(e.parts.every((e=>""===e)))return"";break;case Za:if(!(e.contents||e.id||e.break||e.expandedStates))return"";if(e.contents.type===Za&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case Ja:case Qa:case nl:case rl:if(!e.contents)return"";break;case tl:if(!e.flatContents&&!e.breakContents)return"";break;case Ya:{let t=[];for(let n of e){if(!n)continue;let[e,...r]=Array.isArray(n)?n:[n];"string"==typeof e&&"string"==typeof ul(!1,t,-1)?t[t.length-1]+=e:t.push(e),t.push(...r)}return 0===t.length?"":1===t.length?t[0]:t}case za:case Ga:case Xa:case il:case sl:case ol:case al:break;default:throw new fl(e)}return e}(e)))}(e))}function El(e){if(e.type===sl)return!0}function Sl(e,t){return e.type===ol?{...e,contents:t(e.contents)}:t(e)}var Al=()=>{},_l=Al,kl=Al,Nl=Al;function Ll(e){return _l(e),{type:Qa,contents:e}}function xl(e,t){return _l(t),{type:Ja,contents:t,n:e}}function Fl(e,t={}){return _l(e),kl(t.expandedStates,!0),{type:Za,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function Ol(e){return _l(e),{type:rl,contents:e}}var Ml={type:il},Tl={type:al},Il={type:Xa},Rl={type:sl,hard:!0},Pl={type:sl,hard:!0,literal:!0},Bl={type:sl},$l={type:sl,soft:!0},jl=[Rl,Tl],Vl=[Pl,Tl],Wl={type:Ga};function ql(e,t){_l(e),kl(t);let n=[];for(let r=0;r<t.length;r++)0!==r&&n.push(e),n.push(t[r]);return n}function Kl(e,t,n){_l(e);let r=e;if(t>0){for(let e=0;e<Math.floor(t/n);++e)r=Ll(r);r=xl(t%n,r),r=xl(Number.NEGATIVE_INFINITY,r)}return r}function Ul(e){var t;if(!e)return"";if(Array.isArray(e)){let t=[];for(let n of e)if(Array.isArray(n))t.push(...Ul(n));else{let e=Ul(n);""!==e&&t.push(e)}return t}return e.type===tl?{...e,breakContents:Ul(e.breakContents),flatContents:Ul(e.flatContents)}:e.type===Za?{...e,contents:Ul(e.contents),expandedStates:null==(t=e.expandedStates)?void 0:t.map(Ul)}:e.type===el?{type:"fill",parts:e.parts.map(Ul)}:e.contents?{...e,contents:Ul(e.contents)}:e}var Hl=e=>!(function(e){return 12288===e||e>=65281&&e<=65376||e>=65504&&e<=65510}(e)||function(e){return e>=4352&&e<=4447||8986===e||8987===e||9001===e||9002===e||e>=9193&&e<=9196||9200===e||9203===e||9725===e||9726===e||9748===e||9749===e||e>=9776&&e<=9783||e>=9800&&e<=9811||9855===e||e>=9866&&e<=9871||9875===e||9889===e||9898===e||9899===e||9917===e||9918===e||9924===e||9925===e||9934===e||9940===e||9962===e||9970===e||9971===e||9973===e||9978===e||9981===e||9989===e||9994===e||9995===e||10024===e||10060===e||10062===e||e>=10067&&e<=10069||10071===e||e>=10133&&e<=10135||10160===e||10175===e||11035===e||11036===e||11088===e||11093===e||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||94192===e||94193===e||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101631&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||110589===e||110590===e||e>=110592&&e<=110882||110898===e||e>=110928&&e<=110930||110933===e||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||126980===e||127183===e||127374===e||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||127568===e||127569===e||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||127988===e||e>=127992&&e<=128062||128064===e||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||128378===e||128405===e||128406===e||128420===e||e>=128507&&e<=128591||e>=128640&&e<=128709||128716===e||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||128747===e||128748===e||e>=128756&&e<=128764||e>=128992&&e<=129003||129008===e||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129673||e>=129679&&e<=129734||e>=129742&&e<=129756||e>=129759&&e<=129769||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}(e)),zl=/[^\x20-\x7F]/u,Yl=function(e){if(!e)return 0;if(!zl.test(e))return e.length;e=e.replace(/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\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?|[\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](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\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-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g," ");let t=0;for(let n of e){let e=n.codePointAt(0);e<=31||e>=127&&e<=159||e>=768&&e<=879||(t+=Hl(e)?1:2)}return t},Gl=Symbol("MODE_BREAK"),Ql=Symbol("MODE_FLAT"),Jl=Symbol("cursor"),Xl=Symbol("DOC_FILL_PRINTED_LENGTH");function Zl(e,t){return tu(e,{type:"indent"},t)}function eu(e,t,n){return t===Number.NEGATIVE_INFINITY?e.root||{value:"",length:0,queue:[]}:t<0?tu(e,{type:"dedent"},n):t?"root"===t.type?{...e,root:e}:tu(e,{type:"string"==typeof t?"stringAlign":"numberAlign",n:t},n):e}function tu(e,t,n){let r="dedent"===t.type?e.queue.slice(0,-1):[...e.queue,t],i="",s=0,o=0,a=0;for(let e of r)switch(e.type){case"indent":c(),n.useTabs?l(1):u(n.tabWidth);break;case"stringAlign":c(),i+=e.n,s+=e.n.length;break;case"numberAlign":o+=1,a+=e.n;break;default:throw new Error(`Unexpected type '${e.type}'`)}return h(),{...e,value:i,length:s,queue:r};function l(e){i+="\t".repeat(e),s+=n.tabWidth*e}function u(e){i+=" ".repeat(e),s+=e}function c(){n.useTabs?(o>0&&l(o),f()):h()}function h(){a>0&&u(a),f()}function f(){o=0,a=0}}function nu(e){let t=0,n=0,r=e.length;e:for(;r--;){let i=e[r];if(i!==Jl)for(let n=i.length-1;n>=0;n--){let s=i[n];if(" "!==s&&"\t"!==s){e[r]=i.slice(0,n+1);break e}t++}else n++}if(t>0||n>0)for(e.length=r+1;n-- >0;)e.push(Jl);return t}function ru(e,t,n,r,i,s){if(n===Number.POSITIVE_INFINITY)return!0;let o=t.length,a=[e],l=[];for(;n>=0;){if(0===a.length){if(0===o)return!0;a.push(t[--o]);continue}let{mode:e,doc:u}=a.pop(),c=cl(u);switch(c){case za:l.push(u),n-=Yl(u);break;case Ya:case el:{let t=c===Ya?u:u.parts,n=u[Xl]??0;for(let r=t.length-1;r>=n;r--)a.push({mode:e,doc:t[r]});break}case Qa:case Ja:case nl:case ol:a.push({mode:e,doc:u.contents});break;case Xa:n+=nu(l);break;case Za:{if(s&&u.break)return!1;let t=u.break?Gl:e,n=u.expandedStates&&t===Gl?ul(!1,u.expandedStates,-1):u.contents;a.push({mode:t,doc:n});break}case tl:{let t=(u.groupId?i[u.groupId]||Ql:e)===Gl?u.breakContents:u.flatContents;t&&a.push({mode:e,doc:t});break}case sl:if(e===Gl||u.hard)return!0;u.soft||(l.push(" "),n--);break;case rl:r=!0;break;case il:if(r)return!1}}return!1}function iu(e,t){let n={},r=t.printWidth,i=Ua(t.endOfLine),s=0,o=[{ind:{value:"",length:0,queue:[]},mode:Gl,doc:e}],a=[],l=!1,u=[],c=0;for(function(e){let t=new Set,n=[];ml(e,(function(e){if(e.type===al&&bl(n),e.type===Za){if(n.push(e),t.has(e))return!1;t.add(e)}}),(function(e){e.type===Za&&n.pop().break&&bl(n)}),!0)}(e);o.length>0;){let{ind:e,mode:h,doc:f}=o.pop();switch(cl(f)){case za:{let e="\n"!==i?Wa(!1,f,"\n",i):f;a.push(e),o.length>0&&(s+=Yl(e));break}case Ya:for(let t=f.length-1;t>=0;t--)o.push({ind:e,mode:h,doc:f[t]});break;case Ga:if(c>=2)throw new Error("There are too many 'cursor' in doc.");a.push(Jl),c++;break;case Qa:o.push({ind:Zl(e,t),mode:h,doc:f.contents});break;case Ja:o.push({ind:eu(e,f.n,t),mode:h,doc:f.contents});break;case Xa:s-=nu(a);break;case Za:switch(h){case Ql:if(!l){o.push({ind:e,mode:f.break?Gl:Ql,doc:f.contents});break}case Gl:{l=!1;let t={ind:e,mode:Ql,doc:f.contents},i=r-s,a=u.length>0;if(!f.break&&ru(t,o,i,a,n))o.push(t);else if(f.expandedStates){let t=ul(!1,f.expandedStates,-1);if(f.break){o.push({ind:e,mode:Gl,doc:t});break}for(let r=1;r<f.expandedStates.length+1;r++){if(r>=f.expandedStates.length){o.push({ind:e,mode:Gl,doc:t});break}{let t=f.expandedStates[r],s={ind:e,mode:Ql,doc:t};if(ru(s,o,i,a,n)){o.push(s);break}}}}else o.push({ind:e,mode:Gl,doc:f.contents});break}}f.id&&(n[f.id]=ul(!1,o,-1).mode);break;case el:{let t=r-s,i=f[Xl]??0,{parts:a}=f,l=a.length-i;if(0===l)break;let c=a[i+0],d=a[i+1],m={ind:e,mode:Ql,doc:c},p={ind:e,mode:Gl,doc:c},g=ru(m,[],t,u.length>0,n,!0);if(1===l){g?o.push(m):o.push(p);break}let y={ind:e,mode:Ql,doc:d},b={ind:e,mode:Gl,doc:d};if(2===l){g?o.push(y,m):o.push(b,p);break}let v=a[i+2],D={ind:e,mode:h,doc:{...f,[Xl]:i+2}};ru({ind:e,mode:Ql,doc:[c,d,v]},[],t,u.length>0,n,!0)?o.push(D,y,m):g?o.push(D,b,m):o.push(D,b,p);break}case tl:case nl:{let t=f.groupId?n[f.groupId]:h;if(t===Gl){let t=f.type===tl?f.breakContents:f.negate?f.contents:Ll(f.contents);t&&o.push({ind:e,mode:h,doc:t})}if(t===Ql){let t=f.type===tl?f.flatContents:f.negate?Ll(f.contents):f.contents;t&&o.push({ind:e,mode:h,doc:t})}break}case rl:u.push({ind:e,mode:h,doc:f.contents});break;case il:u.length>0&&o.push({ind:e,mode:h,doc:Rl});break;case sl:switch(h){case Ql:if(!f.hard){f.soft||(a.push(" "),s+=1);break}l=!0;case Gl:if(u.length>0){o.push({ind:e,mode:h,doc:f},...u.reverse()),u.length=0;break}f.literal?e.root?(a.push(i,e.root.value),s=e.root.length):(a.push(i),s=0):(s-=nu(a),a.push(i+e.value),s=e.length)}break;case ol:o.push({ind:e,mode:h,doc:f.contents});break;case al:break;default:throw new fl(f)}0===o.length&&u.length>0&&(o.push(...u.reverse()),u.length=0)}let h=a.indexOf(Jl);if(-1!==h){let e=a.indexOf(Jl,h+1);if(-1===e)return{formatted:a.filter((e=>e!==Jl)).join("")};let t=a.slice(0,h).join(""),n=a.slice(h+1,e).join("");return{formatted:t+n+a.slice(e+1).join(""),cursorNodeStart:t.length,cursorNodeText:n}}return{formatted:a.join("")}}var su,ou,au,lu=function(e,t,n=0){let r=0;for(let i=n;i<e.length;++i)"\t"===e[i]?r=r+t-r%t:r++;return r};su=new WeakSet,ou=function(e){let{stack:t}=this;for(let n=t.length-1;n>=0;n-=2)if(!Array.isArray(t[n])&&--e<0)return n;return-1},au=function*(){let{stack:e}=this;for(let t=e.length-3;t>=0;t-=2){let n=e[t];Array.isArray(n)||(yield n)}};var uu=class{constructor(e){((e,t)=>{t.has(e)?Ba("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,void 0)})(this,su),this.stack=[e]}get key(){let{stack:e,siblings:t}=this;return ul(!1,e,null===t?-2:-4)??null}get index(){return null===this.siblings?null:ul(!1,this.stack,-2)}get node(){return ul(!1,this.stack,-1)}get parent(){return this.getNode(1)}get grandparent(){return this.getNode(2)}get isInArray(){return null!==this.siblings}get siblings(){let{stack:e}=this,t=ul(!1,e,-3);return Array.isArray(t)?t:null}get next(){let{siblings:e}=this;return null===e?null:e[this.index+1]}get previous(){let{siblings:e}=this;return null===e?null:e[this.index-1]}get isFirst(){return 0===this.index}get isLast(){let{siblings:e,index:t}=this;return null!==e&&t===e.length-1}get isRoot(){return 1===this.stack.length}get root(){return this.stack[0]}get ancestors(){return[...ja(this,su,au).call(this)]}getName(){let{stack:e}=this,{length:t}=e;return t>1?ul(!1,e,-2):null}getValue(){return ul(!1,this.stack,-1)}getNode(e=0){let t=ja(this,su,ou).call(this,e);return-1===t?null:this.stack[t]}getParentNode(e=0){return this.getNode(e+1)}call(e,...t){let{stack:n}=this,{length:r}=n,i=ul(!1,n,-1);for(let e of t)i=i[e],n.push(e,i);try{return e(this)}finally{n.length=r}}callParent(e,t=0){let n=ja(this,su,ou).call(this,t+1),r=this.stack.splice(n+1);try{return e(this)}finally{this.stack.push(...r)}}each(e,...t){let{stack:n}=this,{length:r}=n,i=ul(!1,n,-1);for(let e of t)i=i[e],n.push(e,i);try{for(let t=0;t<i.length;++t)n.push(t,i[t]),e(this,t,i),n.length-=2}finally{n.length=r}}map(e,...t){let n=[];return this.each(((t,r,i)=>{n[r]=e(t,r,i)}),...t),n}match(...e){let t=this.stack.length-1,n=null,r=this.stack[t--];for(let i of e){if(void 0===r)return!1;let e=null;if("number"==typeof n&&(e=n,n=this.stack[t--],r=this.stack[t--]),i&&!i(r,n,e))return!1;n=this.stack[t--],r=this.stack[t--]}return!0}findAncestor(e){for(let t of ja(this,su,au).call(this))if(e(t))return t}hasAncestor(e){for(let t of ja(this,su,au).call(this))if(e(t))return!0;return!1}},cu=new Proxy((()=>{}),{get:()=>cu}),hu=cu;function*fu(e,t){let{getVisitorKeys:n,filter:r=()=>!0}=t,i=e=>function(e){return null!==e&&"object"==typeof e}(e)&&r(e);for(let t of n(e)){let n=e[t];if(Array.isArray(n))for(let e of n)i(e)&&(yield e);else i(n)&&(yield n)}}function du(e){return(t,n,r)=>{let i=!(null==r||!r.backwards);if(!1===n)return!1;let{length:s}=t,o=n;for(;o>=0&&o<s;){let n=t.charAt(o);if(e instanceof RegExp){if(!e.test(n))return o}else if(!e.includes(n))return o;i?o--:o++}return(-1===o||o===s)&&o}}var mu=du(/\s/u),pu=du(" \t"),gu=du(",; \t"),yu=du(/[^\n\r]/u),bu=function(e,t,n){let r=!(null==n||!n.backwards);if(!1===t)return!1;let i=e.charAt(t);if(r){if("\r"===e.charAt(t-1)&&"\n"===i)return t-2;if("\n"===i||"\r"===i||"\u2028"===i||"\u2029"===i)return t-1}else{if("\r"===i&&"\n"===e.charAt(t+1))return t+2;if("\n"===i||"\r"===i||"\u2028"===i||"\u2029"===i)return t+1}return t},vu=function(e,t,n={}){let r=pu(e,n.backwards?t-1:t,n);return r!==bu(e,r,n)},Du=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),wu=e=>Object.keys(e).filter((e=>!Du.has(e))),Cu=function(e){return e?t=>e(t,Du):wu};function Eu(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=function(e){let t=e.type||e.kind||"(unknown type)",n=String(e.name||e.id&&("object"==typeof e.id?e.id.name:e.id)||e.key&&("object"==typeof e.key?e.key.name:e.key)||e.value&&("object"==typeof e.value?"":String(e.value))||e.operator||"");return n.length>20&&(n=n.slice(0,19)+"…"),t+(n?" "+n:"")}(e)}function Su(e,t){t.leading=!0,t.trailing=!1,Eu(e,t)}function Au(e,t,n){t.leading=!1,t.trailing=!1,n&&(t.marker=n),Eu(e,t)}function _u(e,t){t.leading=!1,t.trailing=!0,Eu(e,t)}var ku=new WeakMap;function Nu(e,t){if(ku.has(e))return ku.get(e);let{printer:{getCommentChildNodes:n,canAttachComment:r,getVisitorKeys:i},locStart:s,locEnd:o}=t;if(!r)return[];let a=((null==n?void 0:n(e,t))??[...fu(e,{getVisitorKeys:Cu(i)})]).flatMap((e=>r(e)?[e]:Nu(e,t)));return a.sort(((e,t)=>s(e)-s(t)||o(e)-o(t))),ku.set(e,a),a}function Lu(e,t,n,r){let i,s,{locStart:o,locEnd:a}=n,l=o(t),u=a(t),c=Nu(e,n),h=0,f=c.length;for(;h<f;){let e=h+f>>1,r=c[e],d=o(r),m=a(r);if(d<=l&&u<=m)return Lu(r,t,n,r);if(m<=l)i=r,h=e+1;else{if(!(u<=d))throw new Error("Comment location overlaps with node location");s=r,f=e}}if("TemplateLiteral"===(null==r?void 0:r.type)){let{quasis:e}=r,o=Iu(e,t,n);i&&Iu(e,i,n)!==o&&(i=null),s&&Iu(e,s,n)!==o&&(s=null)}return{enclosingNode:r,precedingNode:i,followingNode:s}}var xu=()=>!1,Fu=e=>!/[\S\n\u2028\u2029]/u.test(e);function Ou(e,t,n,r){let{comment:i,precedingNode:s}=n[r],{locStart:o,locEnd:a}=t,l=o(i);if(s)for(let t=r-1;t>=0;t--){let{comment:r,precedingNode:i}=n[t];if(i!==s||!Fu(e.slice(a(r),l)))break;l=o(r)}return vu(e,l,{backwards:!0})}function Mu(e,t,n,r){let{comment:i,followingNode:s}=n[r],{locStart:o,locEnd:a}=t,l=a(i);if(s)for(let t=r+1;t<n.length;t++){let{comment:r,followingNode:i}=n[t];if(i!==s||!Fu(e.slice(l,o(r))))break;l=a(r)}return vu(e,l)}function Tu(e,t){var n,r;let i=e.length;if(0===i)return;let s,{precedingNode:o,followingNode:a}=e[0],l=t.locStart(a);for(s=i;s>0;--s){let{comment:i,precedingNode:u,followingNode:c}=e[s-1];hu.strictEqual(u,o),hu.strictEqual(c,a);let h=t.originalText.slice(t.locEnd(i),l);if(!((null==(r=(n=t.printer).isGap)?void 0:r.call(n,h,t))??/^[\s(]*$/u.test(h)))break;l=t.locStart(i)}for(let[t,{comment:n}]of e.entries())t<s?_u(o,n):Su(a,n);for(let e of[o,a])e.comments&&e.comments.length>1&&e.comments.sort(((e,n)=>t.locStart(e)-t.locStart(n)));e.length=0}function Iu(e,t,n){let r=n.locStart(t)-1;for(let t=1;t<e.length;++t)if(r<n.locStart(e[t]))return t-1;return 0}var Ru=function(e,t){let n=t-1;return n=pu(e,n,{backwards:!0}),n=bu(e,n,{backwards:!0}),n=pu(e,n,{backwards:!0}),n!==bu(e,n,{backwards:!0})};function Pu(e,t){return e.node.printed=!0,t.printer.printComment(e,t)}var Bu=class extends Error{name="ConfigError"},$u=class extends Error{name="UndefinedParserError"},ju={checkIgnorePragma:{category:"Special",type:"boolean",default:!1,description:"Check whether the file's first docblock comment contains '@noprettier' or '@noformat' to determine if it should be formatted.",cliCategory:"Other"},cursorOffset:{category:"Special",type:"int",default:-1,range:{start:-1,end:1/0,step:1},description:"Print (to stderr) where a cursor at the given position would move to after formatting.",cliCategory:"Editor"},endOfLine:{category:"Global",type:"choice",default:"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:"Maintain existing\n(mixed values within one file are normalised by looking at what's used after the first line)"}]},filepath:{category:"Special",type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:"Other",cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{category:"Special",type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:"Other"},parser:{category:"Global",type:"choice",default:void 0,description:"Which parser to use.",exception:e=>"string"==typeof e||"function"==typeof e,choices:[{value:"flow",description:"Flow"},{value:"babel",description:"JavaScript"},{value:"babel-flow",description:"Flow"},{value:"babel-ts",description:"TypeScript"},{value:"typescript",description:"TypeScript"},{value:"acorn",description:"JavaScript"},{value:"espree",description:"JavaScript"},{value:"meriyah",description:"JavaScript"},{value:"css",description:"CSS"},{value:"less",description:"Less"},{value:"scss",description:"SCSS"},{value:"json",description:"JSON"},{value:"json5",description:"JSON5"},{value:"jsonc",description:"JSON with Comments"},{value:"json-stringify",description:"JSON.stringify"},{value:"graphql",description:"GraphQL"},{value:"markdown",description:"Markdown"},{value:"mdx",description:"MDX"},{value:"vue",description:"Vue"},{value:"yaml",description:"YAML"},{value:"glimmer",description:"Ember / Handlebars"},{value:"html",description:"HTML"},{value:"angular",description:"Angular"},{value:"lwc",description:"Lightning Web Components"},{value:"mjml",description:"MJML"}]},plugins:{type:"path",array:!0,default:[{value:[]}],category:"Global",description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>"string"==typeof e||"object"==typeof e,cliName:"plugin",cliCategory:"Config"},printWidth:{category:"Global",type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{category:"Special",type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:"Format code ending at a given character offset (exclusive).\nThe range will extend forwards to the end of the selected statement.",cliCategory:"Editor"},rangeStart:{category:"Special",type:"int",default:0,range:{start:0,end:1/0,step:1},description:"Format code starting at a given character offset.\nThe range will extend backwards to the start of the first line containing the selected statement.",cliCategory:"Editor"},requirePragma:{category:"Special",type:"boolean",default:!1,description:"Require either '@prettier' or '@format' to be present in the file's first docblock comment in order for it to be formatted.",cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"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."}]}};function Vu({plugins:e=[],showDeprecated:t=!1}={}){let n=e.flatMap((e=>e.languages??[])),r=[];for(let i of function(e){let t=[];for(let[n,r]of Object.entries(e)){let e={name:n,...r};Array.isArray(e.default)&&(e.default=ul(!1,e.default,-1).value),t.push(e)}return t}(Object.assign({},...e.map((({options:e})=>e)),ju)))!t&&i.deprecated||(Array.isArray(i.choices)&&(t||(i.choices=i.choices.filter((e=>!e.deprecated))),"parser"===i.name&&(i.choices=[...i.choices,...Wu(i.choices,n,e)])),i.pluginDefaults=Object.fromEntries(e.filter((e=>{var t;return void 0!==(null==(t=e.defaultOptions)?void 0:t[i.name])})).map((e=>[e.name,e.defaultOptions[i.name]]))),r.push(i));return{languages:n,options:r}}function*Wu(e,t,n){let r=new Set(e.map((e=>e.value)));for(let e of t)if(e.parsers)for(let t of e.parsers)if(!r.has(t)){r.add(t);let i=n.find((e=>e.parsers&&Object.prototype.hasOwnProperty.call(e.parsers,t))),s=e.name;null!=i&&i.name&&(s+=` (plugin: ${i.name})`),yield{value:t,description:s}}}var qu,Ku,Uu,Hu,zu,Yu="windows"===(null==(qu=globalThis.Deno)?void 0:qu.build.os)||(null==(Uu=null==(Ku=globalThis.navigator)?void 0:Ku.platform)?void 0:Uu.startsWith("Win"))||(null==(zu=null==(Hu=globalThis.process)?void 0:Hu.platform)?void 0:zu.startsWith("win"))||!1;function Gu(e){if("file:"!==(e=e instanceof URL?e:new URL(e)).protocol)throw new TypeError(`URL must be a file URL: received "${e.protocol}"`);return e}function Qu(e,t){if(!t)return;let n=(e=>String(e).split(/[/\\]/u).pop())(t).toLowerCase();return e.find((({filenames:e})=>null==e?void 0:e.some((e=>e.toLowerCase()===n))))??e.find((({extensions:e})=>null==e?void 0:e.some((e=>n.endsWith(e)))))}function Ju(e,t){if(t){if(String(t).startsWith("file:"))try{t=function(e){return Yu?function(e){e=Gu(e);let t=decodeURIComponent(e.pathname.replace(/\//g,"\\").replace(/%(?![0-9A-Fa-f]{2})/g,"%25")).replace(/^\\*([A-Za-z]:)(\\|$)/,"$1\\");return""!==e.hostname&&(t=`\\\\${e.hostname}${t}`),t}(e):function(e){return e=Gu(e),decodeURIComponent(e.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}(e)}(t)}catch{return}if("string"==typeof t)return e.find((({isSupported:e})=>null==e?void 0:e({filepath:t})))}}var Xu=function(e,t){let n=((e,t)=>{if(!e||null!=t)return t.toReversed||!Array.isArray(t)?t.toReversed():[...t].reverse()})(!1,e.plugins).flatMap((e=>e.languages??[])),r=function(e,t){if(t)return e.find((({name:e})=>e.toLowerCase()===t))??e.find((({aliases:e})=>null==e?void 0:e.includes(t)))??e.find((({extensions:e})=>null==e?void 0:e.includes(`.${t}`)))}(n,t.language)??Qu(n,t.physicalFile)??Qu(n,t.file)??Ju(n,t.physicalFile)??Ju(n,t.file)??void t.physicalFile;return null==r?void 0:r.parsers[0]},Zu={key:e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(e){if(null===e||"object"!=typeof e)return JSON.stringify(e);if(Array.isArray(e))return`[${e.map((e=>Zu.value(e))).join(", ")}]`;let t=Object.keys(e);return 0===t.length?"{}":`{ ${t.map((t=>`${Zu.key(t)}: ${Zu.value(e[t])}`)).join(", ")} }`},pair:({key:e,value:t})=>Zu.value({[e]:t})},ec=new Proxy(String,{get:()=>ec}),tc=ec,nc=Symbol.for("vnopts.VALUE_NOT_EXIST"),rc=Symbol.for("vnopts.VALUE_UNCHANGED"),ic=" ".repeat(2);function sc(e,t,n,r){return[`Invalid ${tc.red(r.key(e))} value.`,`Expected ${tc.blue(n)},`,`but received ${t===nc?tc.gray("nothing"):tc.red(r.value(t))}.`].join(" ")}function oc({text:e,list:t},n){let r=[];return e&&r.push(`- ${tc.blue(e)}`),t&&r.push([`- ${tc.blue(t.title)}:`].concat(t.values.map((e=>oc(e,n-ic.length).replace(/^|\n/g,`$&${ic}`)))).join("\n")),ac(r,n)}function ac(e,t){if(1===e.length)return e[0];let[n,r]=e,[i,s]=e.map((e=>e.split("\n",1)[0].length));return i>t&&i>s?r:n}var lc=[],uc=[],cc=(e,t,{descriptor:n,logger:r,schemas:i})=>{let s=[`Ignored unknown option ${tc.yellow(n.pair({key:e,value:t}))}.`],o=Object.keys(i).sort().find((t=>function(e,t){if(e===t)return 0;let n=e;e.length>t.length&&(e=t,t=n);let r=e.length,i=t.length;for(;r>0&&e.charCodeAt(~-r)===t.charCodeAt(~-i);)r--,i--;let s=0;for(;s<r&&e.charCodeAt(s)===t.charCodeAt(s);)s++;if(r-=s,i-=s,0===r)return i;let o,a,l,u,c=0,h=0;for(;c<r;)uc[c]=e.charCodeAt(s+c),lc[c]=++c;for(;h<i;)for(o=t.charCodeAt(s+h),l=h++,a=h,c=0;c<r;c++)u=o===uc[c]?l:l+1,l=lc[c],a=lc[c]=l>a?u>a?a+1:u:u>l?l+1:u;return a}(e,t)<3));o&&s.push(`Did you mean ${tc.blue(n.key(o))}?`),r.warn(s.join(" "))},hc=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"],fc=class{static create(e){return function(e,t){let n=new e(t),r=Object.create(n);for(let e of hc)e in t&&(r[e]=dc(t[e],n,fc.prototype[e].length));return r}(this,e)}constructor(e){this.name=e.name}default(e){}expected(e){return"nothing"}validate(e,t){return!1}deprecated(e,t){return!1}forward(e,t){}redirect(e,t){}overlap(e,t,n){return e}preprocess(e,t){return e}postprocess(e,t){return rc}};function dc(e,t,n){return"function"==typeof e?(...r)=>e(...r.slice(0,n-1),t,...r.slice(n-1)):()=>e}var mc=class extends fc{constructor(e){super(e),this._sourceName=e.sourceName}expected(e){return e.schemas[this._sourceName].expected(e)}validate(e,t){return t.schemas[this._sourceName].validate(e,t)}redirect(e,t){return this._sourceName}},pc=class extends fc{expected(){return"anything"}validate(){return!0}},gc=class extends fc{constructor({valueSchema:e,name:t=e.name,...n}){super({...n,name:t}),this._valueSchema=e}expected(e){let{text:t,list:n}=e.normalizeExpectedResult(this._valueSchema.expected(e));return{text:t&&`an array of ${t}`,list:n&&{title:"an array of the following values",values:[{list:n}]}}}validate(e,t){if(!Array.isArray(e))return!1;let n=[];for(let r of e){let e=t.normalizeValidateResult(this._valueSchema.validate(r,t),r);!0!==e&&n.push(e.value)}return 0===n.length||{value:n}}deprecated(e,t){let n=[];for(let r of e){let e=t.normalizeDeprecatedResult(this._valueSchema.deprecated(r,t),r);!1!==e&&n.push(...e.map((({value:e})=>({value:[e]}))))}return n}forward(e,t){let n=[];for(let r of e){let e=t.normalizeForwardResult(this._valueSchema.forward(r,t),r);n.push(...e.map(yc))}return n}redirect(e,t){let n=[],r=[];for(let i of e){let e=t.normalizeRedirectResult(this._valueSchema.redirect(i,t),i);"remain"in e&&n.push(e.remain),r.push(...e.redirect.map(yc))}return 0===n.length?{redirect:r}:{redirect:r,remain:n}}overlap(e,t){return e.concat(t)}};function yc({from:e,to:t}){return{from:[e],to:t}}var bc=class extends fc{expected(){return"true or false"}validate(e){return"boolean"==typeof e}};function vc(e,t){let n=Object.create(null);for(let r of e){let e=r[t];if(n[e])throw new Error(`Duplicate ${t} ${JSON.stringify(e)}`);n[e]=r}return n}function Dc(e,t){if(e===t)return 0;let n=typeof e,r=typeof t,i=["undefined","object","boolean","number","string"];return n!==r?i.indexOf(n)-i.indexOf(r):"string"!==n?Number(e)-Number(t):e.localeCompare(t)}function wc(e){return void 0===e?{}:e}function Cc(e){if("string"==typeof e)return{text:e};let{text:t,list:n}=e;return function(e){if(!e)throw new Error("Unexpected `expected` result, there should be at least one field.")}(void 0!==(t||n)),n?{text:t,list:{title:n.title,values:n.values.map(Cc)}}:{text:t}}function Ec(e,t){return!0===e||(!1===e?{value:t}:e)}function Sc(e,t,n=!1){return!1!==e&&(!0===e?!!n||[{value:t}]:"value"in e?[e]:0!==e.length&&e)}function Ac(e,t){return"string"==typeof e||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function _c(e,t){return void 0===e?[]:Array.isArray(e)?e.map((e=>Ac(e,t))):[Ac(e,t)]}function kc(e,t){let n=_c("object"==typeof e&&"redirect"in e?e.redirect:e,t);return 0===n.length?{remain:t,redirect:n}:"object"==typeof e&&"remain"in e?{remain:e.remain,redirect:n}:{redirect:n}}var Nc,Lc=class extends fc{constructor(e){super(e),this._choices=function(e,t){let n=new Map;for(let r of e){let e=r[t];if(n.has(e))throw new Error(`Duplicate ${t} ${JSON.stringify(e)}`);n.set(e,r)}return n}(e.choices.map((e=>e&&"object"==typeof e?e:{value:e})),"value")}expected({descriptor:e}){let t=Array.from(this._choices.keys()).map((e=>this._choices.get(e))).filter((({hidden:e})=>!e)).map((e=>e.value)).sort(Dc).map(e.value),n=t.slice(0,-2),r=t.slice(-2);return{text:n.concat(r.join(" or ")).join(", "),list:{title:"one of the following values",values:t}}}validate(e){return this._choices.has(e)}deprecated(e){let t=this._choices.get(e);return!(!t||!t.deprecated)&&{value:e}}forward(e){let t=this._choices.get(e);return t?t.forward:void 0}redirect(e){let t=this._choices.get(e);return t?t.redirect:void 0}},xc=class extends fc{expected(){return"a number"}validate(e,t){return"number"==typeof e}},Fc=class extends xc{expected(){return"an integer"}validate(e,t){return!0===t.normalizeValidateResult(super.validate(e,t),e)&&(n=e)===Math.floor(n);var n}},Oc=class extends fc{expected(){return"a string"}validate(e){return"string"==typeof e}},Mc=Zu,Tc=cc,Ic=(e,t,n)=>{let{text:r,list:i}=n.normalizeExpectedResult(n.schemas[e].expected(n)),s=[];return r&&s.push(sc(e,t,r,n.descriptor)),i&&s.push([sc(e,t,i.title,n.descriptor)].concat(i.values.map((e=>oc(e,n.loggerPrintWidth)))).join("\n")),ac(s,n.loggerPrintWidth)},Rc=(e,t,{descriptor:n})=>{let r=[`${tc.yellow("string"==typeof e?n.key(e):n.pair(e))} is deprecated`];return t&&r.push(`we now treat it as ${tc.blue("string"==typeof t?n.key(t):n.pair(t))}`),r.join("; ")+"."},Pc=class{constructor(e,t){let{logger:n=console,loggerPrintWidth:r=80,descriptor:i=Mc,unknown:s=Tc,invalid:o=Ic,deprecated:a=Rc,missing:l=()=>!1,required:u=()=>!1,preprocess:c=e=>e,postprocess:h=()=>rc}=t||{};var f;this._utils={descriptor:i,logger:n||{warn:()=>{}},loggerPrintWidth:r,schemas:vc(e,"name"),normalizeDefaultResult:wc,normalizeExpectedResult:Cc,normalizeDeprecatedResult:Sc,normalizeForwardResult:_c,normalizeRedirectResult:kc,normalizeValidateResult:Ec},this._unknownHandler=s,this._invalidHandler=(f=o,(...e)=>{let t=f(...e);return"string"==typeof t?new Error(t):t}),this._deprecatedHandler=a,this._identifyMissing=(e,t)=>!(e in t)||l(e,t),this._identifyRequired=u,this._preprocess=c,this._postprocess=h,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=function(){let e=Object.create(null);return t=>{let n=JSON.stringify(t);return!!e[n]||(e[n]=!0,!1)}}()}normalize(e){let t={},n=[this._preprocess(e,this._utils)],r=()=>{for(;0!==n.length;){let e=n.shift(),r=this._applyNormalization(e,t);n.push(...r)}};r();for(let e of Object.keys(this._utils.schemas)){let r=this._utils.schemas[e];if(!(e in t)){let t=wc(r.default(this._utils));"value"in t&&n.push({[e]:t.value})}}r();for(let e of Object.keys(this._utils.schemas)){if(!(e in t))continue;let n=this._utils.schemas[e],r=t[e],i=n.postprocess(r,this._utils);i!==rc&&(this._applyValidation(i,e,n),t[e]=i)}return this._applyPostprocess(t),this._applyRequiredCheck(t),t}_applyNormalization(e,t){let n=[],{knownKeys:r,unknownKeys:i}=this._partitionOptionKeys(e);for(let i of r){let r=this._utils.schemas[i],s=r.preprocess(e[i],this._utils);this._applyValidation(s,i,r);let o=({from:e,to:t})=>{n.push("string"==typeof t?{[t]:e}:{[t.key]:t.value})},a=({value:e,redirectTo:t})=>{let n=Sc(r.deprecated(e,this._utils),s,!0);if(!1!==n)if(!0===n)this._hasDeprecationWarned(i)||this._utils.logger.warn(this._deprecatedHandler(i,t,this._utils));else for(let{value:e}of n){let n={key:i,value:e};if(!this._hasDeprecationWarned(n)){let r="string"==typeof t?{key:t,value:e}:t;this._utils.logger.warn(this._deprecatedHandler(n,r,this._utils))}}};_c(r.forward(s,this._utils),s).forEach(o);let l=kc(r.redirect(s,this._utils),s);if(l.redirect.forEach(o),"remain"in l){let e=l.remain;t[i]=i in t?r.overlap(t[i],e,this._utils):e,a({value:e})}for(let{from:e,to:t}of l.redirect)a({value:e,redirectTo:t})}for(let r of i){let i=e[r];this._applyUnknownHandler(r,i,t,((e,t)=>{n.push({[e]:t})}))}return n}_applyRequiredCheck(e){for(let t of Object.keys(this._utils.schemas))if(this._identifyMissing(t,e)&&this._identifyRequired(t))throw this._invalidHandler(t,nc,this._utils)}_partitionOptionKeys(e){let[t,n]=function(e,t){let n=[],r=[];for(let i of e)t(i)?n.push(i):r.push(i);return[n,r]}(Object.keys(e).filter((t=>!this._identifyMissing(t,e))),(e=>e in this._utils.schemas));return{knownKeys:t,unknownKeys:n}}_applyValidation(e,t,n){let r=Ec(n.validate(e,this._utils),e);if(!0!==r)throw this._invalidHandler(t,r.value,this._utils)}_applyUnknownHandler(e,t,n,r){let i=this._unknownHandler(e,t,this._utils);if(i)for(let e of Object.keys(i)){if(this._identifyMissing(e,i))continue;let t=i[e];e in this._utils.schemas?r(e,t):n[e]=t}}_applyPostprocess(e){let t=this._postprocess(e,this._utils);if(t!==rc){if(t.delete)for(let n of t.delete)delete e[n];if(t.override){let{knownKeys:n,unknownKeys:r}=this._partitionOptionKeys(t.override);for(let r of n){let n=t.override[r];this._applyValidation(n,r,this._utils.schemas[r]),e[r]=n}for(let n of r){let r=t.override[n];this._applyUnknownHandler(n,r,e,((t,n)=>{let r=this._utils.schemas[t];this._applyValidation(n,t,r),e[t]=n}))}}}}};function Bc(e,{isCLI:t,optionInfos:n,FlagSchema:r}){let i,{name:s}=e,o={name:s},a={};switch(e.type){case"int":i=Fc,t&&(o.preprocess=Number);break;case"string":case"path":i=Oc;break;case"choice":i=Lc,o.choices=e.choices.map((t=>null!=t&&t.redirect?{...t,redirect:{to:{key:e.name,value:t.redirect}}}:t));break;case"boolean":i=bc;break;case"flag":i=r,o.flags=n.flatMap((e=>[e.alias,e.description&&e.name,e.oppositeDescription&&`no-${e.name}`].filter(Boolean)));break;default:throw new Error(`Unexpected type ${e.type}`)}if(e.exception?o.validate=(t,n,r)=>e.exception(t)||n.validate(t,r):o.validate=(e,t,n)=>void 0===e||t.validate(e,n),e.redirect&&(a.redirect=t=>t?{to:"string"==typeof e.redirect?e.redirect:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(a.deprecated=!0),t&&!e.array){let e=o.preprocess||(e=>e);o.preprocess=(t,n,r)=>n.preprocess(e(Array.isArray(t)?ul(!1,t,-1):t),r)}return e.array?gc.create({...t?{preprocess:e=>Array.isArray(e)?e:[e]}:{},...a,valueSchema:i.create(o)}):i.create({...o,...a})}var $c=(e,t,n)=>{if(!e||null!=t){if(t.findLast)return t.findLast(n);for(let e=t.length-1;e>=0;e--){let r=t[e];if(n(r,e,t))return r}}};function jc(e,t){if(!t)throw new Error("parserName is required.");let n=$c(!1,e,(e=>e.parsers&&Object.prototype.hasOwnProperty.call(e.parsers,t)));if(n)return n;let r=`Couldn't resolve parser "${t}".`;throw r+=" Plugins must be explicitly added to the standalone bundle.",new Bu(r)}function Vc({plugins:e,parser:t}){return Wc(jc(e,t),t)}function Wc(e,t){let n=e.parsers[t];return"function"==typeof n?n():n}var qc,Kc,Uc={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null},Hc=async function(e,t={}){var n;let r={...e};if(!r.parser){if(!r.filepath)throw new $u("No parser and no file path given, couldn't infer a parser.");if(r.parser=Xu(r,{physicalFile:r.filepath}),!r.parser)throw new $u(`No parser could be inferred for file "${r.filepath}".`)}let i=Vu({plugins:e.plugins,showDeprecated:!0}).options,s={...Uc,...Object.fromEntries(i.filter((e=>void 0!==e.default)).map((e=>[e.name,e.default])))},o=jc(r.plugins,r.parser),a=await Wc(o,r.parser);r.astFormat=a.astFormat,r.locEnd=a.locEnd,r.locStart=a.locStart;let l=null!=(n=o.printers)&&n[a.astFormat]?o:function(e,t){if(!t)throw new Error("astFormat is required.");let n=$c(!1,e,(e=>e.printers&&Object.prototype.hasOwnProperty.call(e.printers,t)));if(n)return n;let r=`Couldn't find plugin for AST format "${t}".`;throw r+=" Plugins must be explicitly added to the standalone bundle.",new Bu(r)}(r.plugins,a.astFormat),u=await function(e,t){let n=e.printers[t];return"function"==typeof n?n():n}(l,a.astFormat);r.printer=u;let c={...s,...l.defaultOptions?Object.fromEntries(Object.entries(l.defaultOptions).filter((([,e])=>void 0!==e))):{}};for(let[e,t]of Object.entries(c))(null===r[e]||void 0===r[e])&&(r[e]=t);return"json"===r.parser&&(r.trailingComma="none"),function(e,t,{logger:n=!1,isCLI:r=!1,passThrough:i=!1,FlagSchema:s,descriptor:o}={}){if(r){if(!s)throw new Error("'FlagSchema' option is required.");if(!o)throw new Error("'descriptor' option is required.")}else o=Zu;let a=i?Array.isArray(i)?(e,t)=>i.includes(e)?{[e]:t}:void 0:(e,t)=>({[e]:t}):(e,t,n)=>{let{_:r,...i}=n.schemas;return cc(e,t,{...n,schemas:i})},l=function(e,{isCLI:t,FlagSchema:n}){let r=[];t&&r.push(pc.create({name:"_"}));for(let i of e)r.push(Bc(i,{isCLI:t,optionInfos:e,FlagSchema:n})),i.alias&&t&&r.push(mc.create({name:i.alias,sourceName:i.name}));return r}(t,{isCLI:r,FlagSchema:s}),u=new Pc(l,{logger:n,unknown:a,descriptor:o}),c=!1!==n;c&&Nc&&(u._hasDeprecationWarned=Nc);let h=u.normalize(e);return c&&(Nc=u._hasDeprecationWarned),h}(r,i,{passThrough:Object.keys(Uc),...t})},zc=(qc=Va(),Kc=null!=qc?Oa(Ra(qc)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of Ia(t))!Pa.call(e,n)&&void 0!==n&&Ma(e,n,{get:()=>t[n],enumerable:!(r=Ta(t,n))||r.enumerable});return e})(Ma(Kc,"default",{value:qc,enumerable:!0}),qc)),Yc=async function(e,t){let n,r=await Vc(t),i=r.preprocess?r.preprocess(e,t):e;t.originalText=i;try{n=await r.parse(i,t,t)}catch(t){!function(e,t){let{loc:n}=e;if(n){let r=(0,zc.codeFrameColumns)(t,n,{highlightCode:!0});throw e.message+="\n"+r,e.codeFrame=r,e}throw e}(t,e)}return{text:i,ast:n}};async function Gc(e,t){({ast:e}=await Jc(e,t));let n=new Map,r=new uu(e),i=()=>{},s=new Map;await async function(e,t,n,r,i){let{embeddedLanguageFormatting:s,printer:{embed:o,hasPrettierIgnore:a=()=>!1,getVisitorKeys:l}}=n;if(!o||"auto"!==s)return;if(o.length>2)throw new Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/plugins#optional-embed");let u=Cu(o.getVisitorKeys??l),c=[];!function t(){let{node:r}=e;if(null===r||"object"!=typeof r||a(e))return;for(let n of u(r))Array.isArray(r[n])?e.each(t,n):e.call(t,n);let s=o(e,n);if(s){if("function"==typeof s)return void c.push({print:s,node:r,pathStack:[...e.stack]});i.set(r,s)}}();let h=e.stack;for(let{print:r,node:s,pathStack:o}of c)try{e.stack=o;let a=await r(f,t,e,n);a&&i.set(s,a)}catch(e){if(globalThis.PRETTIER_DEBUG)throw e}function f(e,t){return async function(e,t,n,r){let i=await Hc({...n,...t,parentParser:n.parser,originalText:e,cursorOffset:void 0,rangeStart:void 0,rangeEnd:void 0},{passThrough:!0}),{ast:s}=await Yc(e,i);return Cl(await r(s,i))}(e,t,n,r)}e.stack=h}(r,a,t,Gc,s);let o=await Qc(r,t,a,void 0,s);if(function(e){let{[Symbol.for("comments")]:t,[Symbol.for("printedComments")]:n}=e;for(let e of t){if(!e.printed&&!n.has(e))throw new Error('Comment "'+e.value.trim()+'" was not printed. Please report this error!');delete e.printed}}(t),t.cursorOffset>=0){if(t.nodeAfterCursor&&!t.nodeBeforeCursor)return[Wl,o];if(t.nodeBeforeCursor&&!t.nodeAfterCursor)return[o,Wl]}return o;function a(e,t){return void 0===e||e===r?l(t):Array.isArray(e)?r.call((()=>l(t)),...e):r.call((()=>l(t)),e)}function l(e){i(r);let o=r.node;if(null==o)return"";let l=o&&"object"==typeof o&&void 0===e;if(l&&n.has(o))return n.get(o);let u=Qc(r,t,a,e,s);return l&&n.set(o,u),u}}function Qc(e,t,n,r,i){var s;let o,{node:a}=e,{printer:l}=t;switch(o=null!=(s=l.hasPrettierIgnore)&&s.call(l,e)?function(e,t){let{originalText:n,[Symbol.for("comments")]:r,locStart:i,locEnd:s,[Symbol.for("printedComments")]:o}=t,{node:a}=e,l=i(a),u=s(a);for(let e of r)i(e)>=l&&s(e)<=u&&o.add(e);return n.slice(l,u)}(e,t):i.has(a)?i.get(a):l.print(e,t,n,r),a){case t.cursorNode:o=Sl(o,(e=>[Wl,e,Wl]));break;case t.nodeBeforeCursor:o=Sl(o,(e=>[e,Wl]));break;case t.nodeAfterCursor:o=Sl(o,(e=>[Wl,e]))}return l.printComment&&(!l.willPrintOwnComments||!l.willPrintOwnComments(e,t))&&(o=function(e,t,n){let{leading:r,trailing:i}=function(e,t){let n=e.node;if(!n)return{};let r=t[Symbol.for("printedComments")];if(0===(n.comments||[]).filter((e=>!r.has(e))).length)return{leading:"",trailing:""};let i,s=[],o=[];return e.each((()=>{let n=e.node;if(null!=r&&r.has(n))return;let{leading:a,trailing:l}=n;a?s.push(function(e,t){var n;let r=e.node,i=[Pu(e,t)],{printer:s,originalText:o,locStart:a,locEnd:l}=t;if(null==(n=s.isBlockComment)?void 0:n.call(s,r)){let e=vu(o,l(r))?vu(o,a(r),{backwards:!0})?jl:Bl:" ";i.push(e)}else i.push(jl);let u=bu(o,pu(o,l(r)));return!1!==u&&vu(o,u)&&i.push(jl),i}(e,t)):l&&(i=function(e,t,n){var r;let i=e.node,s=Pu(e,t),{printer:o,originalText:a,locStart:l}=t,u=null==(r=o.isBlockComment)?void 0:r.call(o,i);if(null!=n&&n.hasLineSuffix&&(null==n||!n.isBlock)||vu(a,l(i),{backwards:!0})){let e=Ru(a,l(i));return{doc:Ol([jl,e?jl:"",s]),isBlock:u,hasLineSuffix:!0}}return!u||null!=n&&n.hasLineSuffix?{doc:[Ol([" ",s]),Tl],isBlock:u,hasLineSuffix:!0}:{doc:[" ",s],isBlock:u,hasLineSuffix:!1}}(e,t,i),o.push(i.doc))}),"comments"),{leading:s,trailing:o}}(e,n);return r||i?Sl(t,(e=>[r,e,i])):t}(e,o,t)),o}async function Jc(e,t){let n=e.comments??[];t[Symbol.for("comments")]=n,t[Symbol.for("printedComments")]=new Set,function(e,t){let{comments:n}=e;if(delete e.comments,!function(e){return Array.isArray(e)&&e.length>0}(n)||!t.printer.canAttachComment)return;let r=[],{printer:{experimentalFeatures:{avoidAstMutation:i=!1}={},handleComments:s={}},originalText:o}=t,{ownLine:a=xu,endOfLine:l=xu,remaining:u=xu}=s,c=n.map(((r,i)=>({...Lu(e,r,t),comment:r,text:o,options:t,ast:e,isLastComment:n.length-1===i})));for(let[e,t]of c.entries()){let n,{comment:s,precedingNode:o,enclosingNode:h,followingNode:f,text:d,options:m,ast:p,isLastComment:g}=t;if(i?n=[t]:(s.enclosingNode=h,s.precedingNode=o,s.followingNode=f,n=[s,d,m,p,g]),Ou(d,m,c,e))s.placement="ownLine",a(...n)||(f?Su(f,s):o?_u(o,s):Au(h||p,s));else if(Mu(d,m,c,e))s.placement="endOfLine",l(...n)||(o?_u(o,s):f?Su(f,s):Au(h||p,s));else if(s.placement="remaining",!u(...n))if(o&&f){let e=r.length;e>0&&r[e-1].followingNode!==f&&Tu(r,m),r.push(t)}else o?_u(o,s):f?Su(f,s):Au(h||p,s)}if(Tu(r,t),!i)for(let e of n)delete e.precedingNode,delete e.enclosingNode,delete e.followingNode}(e,t);let{printer:{preprocess:r}}=t;return{ast:e=r?await r(e,t):e,comments:n}}var Xc=function(e,t){let{cursorOffset:n,locStart:r,locEnd:i}=t,s=Cu(t.printer.getVisitorKeys),o=e=>r(e)<=n&&i(e)>=n,a=e,l=[e];for(let t of function*(e,t){let n=[e];for(let e=0;e<n.length;e++){let r=n[e];for(let e of fu(r,t))yield e,n.push(e)}}(e,{getVisitorKeys:s,filter:o}))l.push(t),a=t;if(function(e,t){return fu(e,t).next().done}(a,{getVisitorKeys:s}))return{cursorNode:a};let u,c,h=-1,f=Number.POSITIVE_INFINITY;for(;l.length>0&&(void 0===u||void 0===c);){a=l.pop();let e=void 0!==u,t=void 0!==c;for(let o of fu(a,{getVisitorKeys:s})){if(!e){let e=i(o);e<=n&&e>h&&(u=o,h=e)}if(!t){let e=r(o);e>=n&&e<f&&(c=o,f=e)}}}return{nodeBeforeCursor:u,nodeAfterCursor:c}};function Zc(e){let t=((e,t,n)=>{if(!e||null!=t){if(t.findLastIndex)return t.findLastIndex(n);for(let e=t.length-1;e>=0;e--)if(n(t[e],e,t))return e;return-1}})(!1,e,(e=>"Program"!==e.type&&"File"!==e.type));return-1===t?e:e.slice(0,t+1)}function eh(e,t,n,r,i=[],s){let{locStart:o,locEnd:a}=n,l=o(e),u=a(e);if(!(t>u||t<l||"rangeEnd"===s&&t===l||"rangeStart"===s&&t===u)){for(let o of Nu(e,n)){let a=eh(o,t,n,r,[e,...i],s);if(a)return a}if(!r||r(e,i[0]))return{node:e,parentNodes:i}}}var th=new Set(["JsonRoot","ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral","UnaryExpression","TemplateLiteral"]),nh=new Set(["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"]);function rh(e,t,n){if(!t)return!1;switch(e.parser){case"flow":case"hermes":case"babel":case"babel-flow":case"babel-ts":case"typescript":case"acorn":case"espree":case"meriyah":case"oxc":case"oxc-ts":case"__babel_estree":return function(e,t){return"DeclareExportDeclaration"!==t&&"TypeParameterDeclaration"!==e&&("Directive"===e||"TypeAlias"===e||"TSExportAssignment"===e||e.startsWith("Declare")||e.startsWith("TSDeclare")||e.endsWith("Statement")||e.endsWith("Declaration"))}(t.type,null==n?void 0:n.type);case"json":case"json5":case"jsonc":case"json-stringify":return th.has(t.type);case"graphql":return nh.has(t.kind);case"vue":return"root"!==t.tag}return!1}var ih=Symbol("cursor");async function sh(e,t,n=0){if(!e||0===e.trim().length)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:r,text:i}=await Yc(e,t);t.cursorOffset>=0&&(t={...t,...Xc(r,t)});let s=await Gc(r,t);n>0&&(s=Kl([jl,s],n,t.tabWidth));let o=iu(s,t);if(n>0){let e=o.formatted.trim();void 0!==o.cursorNodeStart&&(o.cursorNodeStart-=o.formatted.indexOf(e),o.cursorNodeStart<0&&(o.cursorNodeStart=0,o.cursorNodeText=o.cursorNodeText.trimStart()),o.cursorNodeStart+o.cursorNodeText.length>e.length&&(o.cursorNodeText=o.cursorNodeText.trimEnd())),o.formatted=e+Ua(t.endOfLine)}let a=t[Symbol.for("comments")];if(t.cursorOffset>=0){let e,n,r,s;if((t.cursorNode||t.nodeBeforeCursor||t.nodeAfterCursor)&&o.cursorNodeText)if(r=o.cursorNodeStart,s=o.cursorNodeText,t.cursorNode)e=t.locStart(t.cursorNode),n=i.slice(e,t.locEnd(t.cursorNode));else{if(!t.nodeBeforeCursor&&!t.nodeAfterCursor)throw new Error("Cursor location must contain at least one of cursorNode, nodeBeforeCursor, nodeAfterCursor");e=t.nodeBeforeCursor?t.locEnd(t.nodeBeforeCursor):0;let r=t.nodeAfterCursor?t.locStart(t.nodeAfterCursor):i.length;n=i.slice(e,r)}else e=0,n=i,r=0,s=o.formatted;let l=t.cursorOffset-e;if(n===s)return{formatted:o.formatted,cursorOffset:r+l,comments:a};let u=n.split("");u.splice(l,0,ih);let c=function(e,t){return Ka.diff(e,t,void 0)}(u,s.split("")),h=r;for(let e of c)if(e.removed){if(e.value.includes(ih))break}else h+=e.count;return{formatted:o.formatted,cursorOffset:h,comments:a}}return{formatted:o.formatted,cursorOffset:-1,comments:a}}function oh(e,t,n){return"number"!=typeof t||Number.isNaN(t)||t<0||t>e.length?n:t}function ah(e,t){let{cursorOffset:n,rangeStart:r,rangeEnd:i}=t;return n=oh(e,n,-1),r=oh(e,r,0),i=oh(e,i,e.length),{...t,cursorOffset:n,rangeStart:r,rangeEnd:i}}function lh(e,t){let{cursorOffset:n,rangeStart:r,rangeEnd:i,endOfLine:s}=ah(e,t),o="\ufeff"===e.charAt(0);if(o&&(e=e.slice(1),n--,r--,i--),"auto"===s&&(s=function(e){let t=e.indexOf("\r");return-1!==t?"\n"===e.charAt(t+1)?"crlf":"cr":"lf"}(e)),e.includes("\r")){let t=t=>Ha(e.slice(0,Math.max(t,0)),"\r\n");n-=t(n),r-=t(r),i-=t(i),e=function(e){return Wa(!1,e,/\r\n?/gu,"\n")}(e)}return{hasBOM:o,text:e,options:ah(e,{...t,cursorOffset:n,rangeStart:r,rangeEnd:i,endOfLine:s})}}async function uh(e,t){let n=await Vc(t);return!n.hasPragma||n.hasPragma(e)}async function ch(e,t){let n,{hasBOM:r,text:i,options:s}=lh(e,await Hc(t));return s.rangeStart>=s.rangeEnd&&""!==i||s.requirePragma&&!await uh(i,s)||s.checkIgnorePragma&&await async function(e,t){var n;let r=await Vc(t);return null==(n=r.hasIgnorePragma)?void 0:n.call(r,e)}(i,s)?{formatted:e,cursorOffset:t.cursorOffset,comments:[]}:(s.rangeStart>0||s.rangeEnd<i.length?n=await async function(e,t){let{ast:n,text:r}=await Yc(e,t),{rangeStart:i,rangeEnd:s}=function(e,t,n){let{rangeStart:r,rangeEnd:i,locStart:s,locEnd:o}=t;hu.ok(i>r);let a=e.slice(r,i).search(/\S/u),l=-1===a;if(!l)for(r+=a;i>r&&!/\S/u.test(e[i-1]);--i);let u,c,h=eh(n,r,t,((e,n)=>rh(t,e,n)),[],"rangeStart"),f=l?h:eh(n,i,t,(e=>rh(t,e)),[],"rangeEnd");if(!h||!f)return{rangeStart:0,rangeEnd:0};if((({parser:e})=>"json"===e||"json5"===e||"jsonc"===e||"json-stringify"===e)(t)){let e=function(e,t){let n=[e.node,...e.parentNodes],r=new Set([t.node,...t.parentNodes]);return n.find((e=>th.has(e.type)&&r.has(e)))}(h,f);u=e,c=e}else({startNode:u,endNode:c}=function(e,t,{locStart:n,locEnd:r}){let i=e.node,s=t.node;if(i===s)return{startNode:i,endNode:s};let o=n(e.node);for(let e of Zc(t.parentNodes)){if(!(n(e)>=o))break;s=e}let a=r(t.node);for(let t of Zc(e.parentNodes)){if(!(r(t)<=a))break;if(i=t,i===s)break}return{startNode:i,endNode:s}}(h,f,t));return{rangeStart:Math.min(s(u),s(c)),rangeEnd:Math.max(o(u),o(c))}}(r,t,n),o=r.slice(i,s),a=Math.min(i,r.lastIndexOf("\n",i)+1),l=r.slice(a,i).match(/^\s*/u)[0],u=lu(l,t.tabWidth),c=await sh(o,{...t,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:t.cursorOffset>i&&t.cursorOffset<=s?t.cursorOffset-i:-1,endOfLine:"lf"},u),h=c.formatted.trimEnd(),{cursorOffset:f}=t;f>s?f+=h.length-o.length:c.cursorOffset>=0&&(f=c.cursorOffset+i);let d=r.slice(0,i)+h+r.slice(s);if("lf"!==t.endOfLine){let e=Ua(t.endOfLine);f>=0&&"\r\n"===e&&(f+=Ha(d.slice(0,f),"\n")),d=Wa(!1,d,"\n",e)}return{formatted:d,cursorOffset:f,comments:c.comments}}(i,s):(!s.requirePragma&&s.insertPragma&&s.printer.insertPragma&&!await uh(i,s)&&(i=s.printer.insertPragma(i)),n=await sh(i,s)),r&&(n.formatted="\ufeff"+n.formatted,n.cursorOffset>=0&&n.cursorOffset++),n)}var hh={};$a(hh,{builders:()=>fh,printer:()=>dh,utils:()=>mh});var fh={join:ql,line:Bl,softline:$l,hardline:jl,literalline:Vl,group:Fl,conditionalGroup:function(e,t){return Fl(e[0],{...t,expandedStates:e})},fill:function(e){return Nl(e),{type:el,parts:e}},lineSuffix:Ol,lineSuffixBoundary:Ml,cursor:Wl,breakParent:Tl,ifBreak:function(e,t="",n={}){return _l(e),""!==t&&_l(t),{type:tl,breakContents:e,flatContents:t,groupId:n.groupId}},trim:Il,indent:Ll,indentIfBreak:function(e,t){return _l(e),{type:nl,contents:e,groupId:t.groupId,negate:t.negate}},align:xl,addAlignmentToDoc:Kl,markAsRoot:function(e){return xl({type:"root"},e)},dedentToRoot:function(e){return xl(Number.NEGATIVE_INFINITY,e)},dedent:function(e){return xl(-1,e)},hardlineWithoutBreakParent:Rl,literallineWithoutBreakParent:Pl,label:function(e,t){return _l(t),e?{type:ol,label:e,contents:t}:t},concat:e=>e},dh={printDocToString:iu},mh={willBreak:function(e){return gl(e,yl,!1)},traverseDoc:ml,findInDoc:gl,mapDoc:pl,removeLines:function(e){return pl(e,vl)},stripTrailingHardline:Cl,replaceEndOfLine:function(e,t=Vl){return pl(e,(e=>"string"==typeof e?ql(t,e.split("\n")):e))},canBreak:function(e){return gl(e,El,!1)}},ph="3.6.2",gh={};$a(gh,{addDanglingComment:()=>Au,addLeadingComment:()=>Su,addTrailingComment:()=>_u,getAlignmentSize:()=>lu,getIndentSize:()=>wh,getMaxContinuousCount:()=>Ch,getNextNonSpaceNonCommentCharacter:()=>Eh,getNextNonSpaceNonCommentCharacterIndex:()=>Lh,getPreferredQuote:()=>Ah,getStringWidth:()=>Yl,hasNewline:()=>vu,hasNewlineInRange:()=>_h,hasSpaces:()=>kh,isNextLineEmpty:()=>Fh,isNextLineEmptyAfterIndex:()=>Dh,isPreviousLineEmpty:()=>xh,makeString:()=>Nh,skip:()=>du,skipEverythingButNewLine:()=>yu,skipInlineComment:()=>yh,skipNewline:()=>bu,skipSpaces:()=>pu,skipToLineEnd:()=>gu,skipTrailingComment:()=>bh,skipWhitespace:()=>mu});var yh=function(e,t){if(!1===t)return!1;if("/"===e.charAt(t)&&"*"===e.charAt(t+1))for(let n=t+2;n<e.length;++n)if("*"===e.charAt(n)&&"/"===e.charAt(n+1))return n+2;return t},bh=function(e,t){return!1!==t&&("/"===e.charAt(t)&&"/"===e.charAt(t+1)?yu(e,t):t)},vh=function(e,t){let n=null,r=t;for(;r!==n;)n=r,r=pu(e,r),r=yh(e,r),r=bh(e,r),r=bu(e,r);return r},Dh=function(e,t){let n=null,r=t;for(;r!==n;)n=r,r=gu(e,r),r=yh(e,r),r=pu(e,r);return r=bh(e,r),r=bu(e,r),!1!==r&&vu(e,r)},wh=function(e,t){let n=e.lastIndexOf("\n");return-1===n?0:lu(e.slice(n+1).match(/^[\t ]*/u)[0],t)},Ch=function(e,t){let n=e.match(new RegExp(`(${function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(t)})+`,"gu"));return null===n?0:n.reduce(((e,n)=>Math.max(e,n.length/t.length)),0)},Eh=function(e,t){let n=vh(e,t);return!1===n?"":e.charAt(n)},Sh="'",Ah=function(e,t){let n=!0===t||t===Sh?Sh:'"',r=n===Sh?'"':Sh,i=0,s=0;for(let t of e)t===n?i++:t===r&&s++;return i>s?r:n},_h=function(e,t,n){for(let r=t;r<n;++r)if("\n"===e.charAt(r))return!0;return!1},kh=function(e,t,n={}){return pu(e,n.backwards?t-1:t,n)!==t},Nh=function(e,t,n){let r='"'===t?"'":'"',i=Wa(!1,e,/\\(.)|(["'])/gsu,((e,i,s)=>i===r?i:s===t?"\\"+s:s||(n&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(i)?i:"\\"+i)));return t+i+t};function Lh(e,t){return 2===arguments.length||"number"==typeof t?vh(e,t):function(e,t,n){return vh(e,n(t))}(...arguments)}function xh(e,t){return 2===arguments.length||"number"==typeof t?Ru(e,t):function(e,t,n){return Ru(e,n(t))}(...arguments)}function Fh(e,t){return 2===arguments.length||"number"==typeof t?Dh(e,t):function(e,t,n){return Dh(e,n(t))}(...arguments)}function Oh(e,t=1){return async(...n)=>{let r=n[t]??{},i=r.plugins??[];return n[t]={...r,plugins:Array.isArray(i)?i:Object.values(i)},e(...n)}}var Mh=Oh(ch);async function Th(e,t){let{formatted:n}=await Mh(e,{...t,cursorOffset:-1});return n}async function Ih(e,t){return await Th(e,t)===e}var Rh,Ph,Bh,$h=Oh(Vu,0),jh={parse:Oh((async function(e,t,n){let{text:r,options:i}=lh(e,await Hc(t)),s=await Yc(r,i);return n&&(n.preprocessForPrint&&(s.ast=await Jc(s.ast,i)),n.massage&&(s.ast=function(e,t){let{printer:{massageAstNode:n,getVisitorKeys:r}}=t;if(!n)return e;let i=Cu(r),s=n.ignoredProperties??new Set;return function e(t,r){if(null===t||"object"!=typeof t)return t;if(Array.isArray(t))return t.map((t=>e(t,r))).filter(Boolean);let o={},a=new Set(i(t));for(let n in t)!Object.prototype.hasOwnProperty.call(t,n)||s.has(n)||(a.has(n)?o[n]=e(t[n],t):o[n]=t[n]);let l=n(t,o,r);return null!==l?l??o:void 0}(e)}(s.ast,i))),s})),formatAST:Oh((async function(e,t){return t=await Hc(t),iu(await Gc(e,t),t)})),formatDoc:Oh((async function(e,t){let n=function(e){let t=Object.create(null),n=new Set;return function e(t,n,i){var s,o;if("string"==typeof t)return JSON.stringify(t);if(Array.isArray(t)){let n=t.map(e).filter(Boolean);return 1===n.length?n[0]:`[${n.join(", ")}]`}if(t.type===sl){let e=(null==(s=null==i?void 0:i[n+1])?void 0:s.type)===al;return t.literal?e?"literalline":"literallineWithoutBreakParent":t.hard?e?"hardline":"hardlineWithoutBreakParent":t.soft?"softline":"line"}if(t.type===al)return(null==(o=null==i?void 0:i[n-1])?void 0:o.type)===sl&&i[n-1].hard?void 0:"breakParent";if(t.type===Xa)return"trim";if(t.type===Qa)return"indent("+e(t.contents)+")";if(t.type===Ja)return t.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+e(t.contents)+")":t.n<0?"dedent("+e(t.contents)+")":"root"===t.n.type?"markAsRoot("+e(t.contents)+")":"align("+JSON.stringify(t.n)+", "+e(t.contents)+")";if(t.type===tl)return"ifBreak("+e(t.breakContents)+(t.flatContents?", "+e(t.flatContents):"")+(t.groupId?(t.flatContents?"":', ""')+`, { groupId: ${r(t.groupId)} }`:"")+")";if(t.type===nl){let n=[];t.negate&&n.push("negate: true"),t.groupId&&n.push(`groupId: ${r(t.groupId)}`);let i=n.length>0?`, { ${n.join(", ")} }`:"";return`indentIfBreak(${e(t.contents)}${i})`}if(t.type===Za){let n=[];t.break&&"propagated"!==t.break&&n.push("shouldBreak: true"),t.id&&n.push(`id: ${r(t.id)}`);let i=n.length>0?`, { ${n.join(", ")} }`:"";return t.expandedStates?`conditionalGroup([${t.expandedStates.map((t=>e(t))).join(",")}]${i})`:`group(${e(t.contents)}${i})`}if(t.type===el)return`fill([${t.parts.map((t=>e(t))).join(", ")}])`;if(t.type===rl)return"lineSuffix("+e(t.contents)+")";if(t.type===il)return"lineSuffixBoundary";if(t.type===ol)return`label(${JSON.stringify(t.label)}, ${e(t.contents)})`;if(t.type===Ga)return"cursor";throw new Error("Unknown doc type "+t.type)}(Ul(e));function r(e){if("symbol"!=typeof e)return JSON.stringify(String(e));if(e in t)return t[e];let r=e.description||"symbol";for(let i=0;;i++){let s=r+(i>0?` #${i}`:"");if(!n.has(s))return n.add(s),t[e]=`Symbol.for(${JSON.stringify(s)})`}}}(e),{formatted:r}=await ch(n,{...t,parser:"__js_expression"});return r})),printToDoc:Oh((async function(e,t){t=await Hc(t);let{ast:n}=await Yc(e,t);return t.cursorOffset>=0&&(t={...t,...Xc(n,t)}),Gc(n,t)})),printDocToString:Oh((async function(e,t){return iu(e,await Hc(t))}))};function Vh(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 Wh(e,t){var n=e.length-t.length;return n>0?e.lastIndexOf(t)===n:0===n&&e===t}function qh(e){return Vh(e,"(?i)")?new RegExp(e.substring(4),"i"):new RegExp(e)}function Kh(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(typeof e!=typeof t)return!1;if("object"!=typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;var n,r;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(!Kh(e[n],t[n]))return!1}else{var i=[];for(r in e)i.push(r);i.sort();var s=[];for(r in t)s.push(r);if(s.sort(),!Kh(i,s))return!1;for(n=0;n<i.length;n++)if(!Kh(e[i[n]],t[i[n]]))return!1}return!0}function Uh(e){return"number"==typeof e}function Hh(e){return"boolean"==typeof e}(Ph=Rh||(Rh={}))[Ph.Undefined=0]="Undefined",Ph[Ph.EnumValueMismatch=1]="EnumValueMismatch",Ph[Ph.Deprecated=2]="Deprecated",Ph[Ph.UnexpectedEndOfComment=257]="UnexpectedEndOfComment",Ph[Ph.UnexpectedEndOfString=258]="UnexpectedEndOfString",Ph[Ph.UnexpectedEndOfNumber=259]="UnexpectedEndOfNumber",Ph[Ph.InvalidUnicode=260]="InvalidUnicode",Ph[Ph.InvalidEscapeCharacter=261]="InvalidEscapeCharacter",Ph[Ph.InvalidCharacter=262]="InvalidCharacter",Ph[Ph.PropertyExpected=513]="PropertyExpected",Ph[Ph.CommaExpected=514]="CommaExpected",Ph[Ph.ColonExpected=515]="ColonExpected",Ph[Ph.ValueExpected=516]="ValueExpected",Ph[Ph.CommaOrCloseBacketExpected=517]="CommaOrCloseBacketExpected",Ph[Ph.CommaOrCloseBraceExpected=518]="CommaOrCloseBraceExpected",Ph[Ph.TrailingComma=519]="TrailingComma",Ph[Ph.DuplicateKey=520]="DuplicateKey",Ph[Ph.CommentNotPermitted=521]="CommentNotPermitted",Ph[Ph.SchemaResolveError=768]="SchemaResolveError",(Bh||(Bh={})).LATEST={textDocument:{completion:{completionItem:{documentationFormat:[re.Markdown,re.PlainText],commitCharactersSupport:!0}}}};var zh=(e,t,...n)=>0===n.length?t:t.replaceAll(/{(\d+)}/g,((e,[t])=>t in n?String(n[t]):e));function Yh(){return zh}var Gh,Qh,Jh,Xh=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Zh=Yh(),ef={"color-hex":{errorMessage:Zh("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:Zh("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:Zh("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:Zh("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:Zh("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,}))$/}},tf=function(){function e(e,t,n){void 0===n&&(n=0),this.offset=t,this.length=n,this.parent=e}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 nf(e){return Hh(e)?e?{}:{not:{}}:e}Xh((function(e,t){var n=Jh.call(this,e,t)||this;return n.type="null",n.value=null,n}),Jh=tf),function(e){Xh((function(t,n,r){var i=e.call(this,t,r)||this;return i.type="boolean",i.value=n,i}),e)}(tf),function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.type="array",r.items=[],r}Xh(t,e),Object.defineProperty(t.prototype,"children",{get:function(){return this.items},enumerable:!1,configurable:!0})}(tf),function(e){Xh((function(t,n){var r=e.call(this,t,n)||this;return r.type="number",r.isInteger=!0,r.value=Number.NaN,r}),e)}(tf),function(e){Xh((function(t,n,r){var i=e.call(this,t,n,r)||this;return i.type="string",i.value="",i}),e)}(tf),function(e){function t(t,n,r){var i=e.call(this,t,n)||this;return i.type="property",i.colonOffset=-1,i.keyNode=r,i}Xh(t,e),Object.defineProperty(t.prototype,"children",{get:function(){return this.valueNode?[this.keyNode,this.valueNode]:[this.keyNode]},enumerable:!1,configurable:!0})}(tf),function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.type="object",r.properties=[],r}Xh(t,e),Object.defineProperty(t.prototype,"children",{get:function(){return this.properties},enumerable:!1,configurable:!0})}(tf),(Qh=Gh||(Gh={}))[Qh.Key=0]="Key",Qh[Qh.Enum=1]="Enum";var rf=function(){function e(e,t){void 0===e&&(e=-1),this.focusOffset=e,this.exclude=t,this.schemas=[]}return e.prototype.add=function(e){this.schemas.push(e)},e.prototype.merge=function(e){Array.prototype.push.apply(this.schemas,e.schemas)},e.prototype.include=function(e){return(-1===this.focusOffset||function(e,t,n){return void 0===n&&(n=!1),t>=e.offset&&t<e.offset+e.length||n&&t===e.offset+e.length}(e,this.focusOffset))&&e!==this.exclude},e.prototype.newSub=function(){return new e(-1,this.exclude)},e}(),sf=function(){function e(){}return Object.defineProperty(e.prototype,"schemas",{get:function(){return[]},enumerable:!1,configurable:!0}),e.prototype.add=function(e){},e.prototype.merge=function(e){},e.prototype.include=function(e){return!0},e.prototype.newSub=function(){return this},e.instance=new e,e}(),of=function(){function e(){this.problems=[],this.propertiesMatches=0,this.propertiesValueMatches=0,this.primaryValueMatches=0,this.enumValueMatch=!1,this.enumValues=void 0}return e.prototype.hasProblems=function(){return!!this.problems.length},e.prototype.mergeAll=function(e){for(var t=0,n=e;t<n.length;t++){var r=n[t];this.merge(r)}},e.prototype.merge=function(e){this.problems=this.problems.concat(e.problems)},e.prototype.mergeEnumValues=function(e){if(!this.enumValueMatch&&!e.enumValueMatch&&this.enumValues&&e.enumValues){this.enumValues=this.enumValues.concat(e.enumValues);for(var t=0,n=this.problems;t<n.length;t++){var r=n[t];r.code===Rh.EnumValueMismatch&&(r.message=Zh("enumWarning","Value is not accepted. Valid values: {0}.",this.enumValues.map((function(e){return JSON.stringify(e)})).join(", ")))}}},e.prototype.mergePropertyMatch=function(e){this.merge(e),this.propertiesMatches++,(e.enumValueMatch||!e.hasProblems()&&e.propertiesMatches)&&this.propertiesValueMatches++,e.enumValueMatch&&e.enumValues&&1===e.enumValues.length&&this.primaryValueMatches++},e.prototype.compare=function(e){var t=this.hasProblems();return t!==e.hasProblems()?t?-1:1:this.enumValueMatch!==e.enumValueMatch?e.enumValueMatch?-1:1:this.primaryValueMatches!==e.primaryValueMatches?this.primaryValueMatches-e.primaryValueMatches:this.propertiesValueMatches!==e.propertiesValueMatches?this.propertiesValueMatches-e.propertiesValueMatches:this.propertiesMatches-e.propertiesMatches},e}();function af(e){return D(e)}function lf(e,t,n,r){if(e&&r.include(e)){var i=e;switch(i.type){case"object":!function(e,t,n,r){for(var i=Object.create(null),s=[],o=0,a=e.properties;o<a.length;o++)i[$=(g=a[o]).keyNode.value]=g.valueNode,s.push($);if(Array.isArray(t.required))for(var l=0,u=t.required;l<u.length;l++)if(!i[E=u[l]]){var c=e.parent&&"property"===e.parent.type&&e.parent.keyNode,h=c?{offset:c.offset,length:c.length}:{offset:e.offset,length:1};n.problems.push({location:h,message:Zh("MissingRequiredPropWarning",'Missing property "{0}".',E)})}var f=function(e){for(var t=s.indexOf(e);t>=0;)s.splice(t,1),t=s.indexOf(e)};if(t.properties)for(var d=0,m=Object.keys(t.properties);d<m.length;d++){f(E=m[d]);var p=t.properties[E];if(L=i[E])if(Hh(p))if(p)n.propertiesMatches++,n.propertiesValueMatches++;else{var g=L.parent;n.problems.push({location:{offset:g.keyNode.offset,length:g.keyNode.length},message:t.errorMessage||Zh("DisallowedExtraPropWarning","Property {0} is not allowed.",E)})}else lf(L,p,_=new of,r),n.mergePropertyMatch(_)}if(t.patternProperties)for(var y=0,b=Object.keys(t.patternProperties);y<b.length;y++)for(var v=b[y],D=qh(v),w=0,C=s.slice(0);w<C.length;w++){var E=C[w];D.test(E)&&(f(E),(L=i[E])&&(Hh(p=t.patternProperties[v])?p?(n.propertiesMatches++,n.propertiesValueMatches++):(g=L.parent,n.problems.push({location:{offset:g.keyNode.offset,length:g.keyNode.length},message:t.errorMessage||Zh("DisallowedExtraPropWarning","Property {0} is not allowed.",E)})):(lf(L,p,_=new of,r),n.mergePropertyMatch(_))))}if("object"==typeof t.additionalProperties){for(var S=0,A=s;S<A.length;S++)if(L=i[E=A[S]]){var _=new of;lf(L,t.additionalProperties,_,r),n.mergePropertyMatch(_)}}else if(!1===t.additionalProperties&&s.length>0)for(var k=0,N=s;k<N.length;k++){var L;(L=i[E=N[k]])&&(g=L.parent,n.problems.push({location:{offset:g.keyNode.offset,length:g.keyNode.length},message:t.errorMessage||Zh("DisallowedExtraPropWarning","Property {0} is not allowed.",E)}))}if(Uh(t.maxProperties)&&e.properties.length>t.maxProperties&&n.problems.push({location:{offset:e.offset,length:e.length},message:Zh("MaxPropWarning","Object has more properties than limit of {0}.",t.maxProperties)}),Uh(t.minProperties)&&e.properties.length<t.minProperties&&n.problems.push({location:{offset:e.offset,length:e.length},message:Zh("MinPropWarning","Object has fewer properties than the required number of {0}",t.minProperties)}),t.dependencies)for(var x=0,F=Object.keys(t.dependencies);x<F.length;x++)if(i[$=F[x]]){var O=t.dependencies[$];if(Array.isArray(O))for(var M=0,T=O;M<T.length;M++){var I=T[M];i[I]?n.propertiesValueMatches++:n.problems.push({location:{offset:e.offset,length:e.length},message:Zh("RequiredDependentPropWarning","Object is missing property {0} required by property {1}.",I,$)})}else(p=nf(O))&&(lf(e,p,_=new of,r),n.mergePropertyMatch(_))}var R=nf(t.propertyNames);if(R)for(var P=0,B=e.properties;P<B.length;P++){var $;($=B[P].keyNode)&&lf($,R,n,sf.instance)}}(i,t,n,r);break;case"array":!function(e,t,n,r){if(Array.isArray(t.items)){for(var i=t.items,s=0;s<i.length;s++){var o=nf(i[s]),a=new of;(f=e.items[s])?(lf(f,o,a,r),n.mergePropertyMatch(a)):e.items.length>=i.length&&n.propertiesValueMatches++}if(e.items.length>i.length)if("object"==typeof t.additionalItems)for(var l=i.length;l<e.items.length;l++)a=new of,lf(e.items[l],t.additionalItems,a,r),n.mergePropertyMatch(a);else!1===t.additionalItems&&n.problems.push({location:{offset:e.offset,length:e.length},message:Zh("additionalItemsWarning","Array has too many items according to schema. Expected {0} or fewer.",i.length)})}else{var u=nf(t.items);if(u)for(var c=0,h=e.items;c<h.length;c++){var f;lf(f=h[c],u,a=new of,r),n.mergePropertyMatch(a)}}var d=nf(t.contains);if(d&&(e.items.some((function(e){var t=new of;return lf(e,d,t,sf.instance),!t.hasProblems()}))||n.problems.push({location:{offset:e.offset,length:e.length},message:t.errorMessage||Zh("requiredItemMissingWarning","Array does not contain required item.")})),Uh(t.minItems)&&e.items.length<t.minItems&&n.problems.push({location:{offset:e.offset,length:e.length},message:Zh("minItemsWarning","Array has too few items. Expected {0} or more.",t.minItems)}),Uh(t.maxItems)&&e.items.length>t.maxItems&&n.problems.push({location:{offset:e.offset,length:e.length},message:Zh("maxItemsWarning","Array has too many items. Expected {0} or fewer.",t.maxItems)}),!0===t.uniqueItems){var m=af(e);m.some((function(e,t){return t!==m.lastIndexOf(e)}))&&n.problems.push({location:{offset:e.offset,length:e.length},message:Zh("uniqueItemsWarning","Array has duplicate items.")})}}(i,t,n,r);break;case"string":!function(e,t,n){if(Uh(t.minLength)&&e.value.length<t.minLength&&n.problems.push({location:{offset:e.offset,length:e.length},message:Zh("minLengthWarning","String is shorter than the minimum length of {0}.",t.minLength)}),Uh(t.maxLength)&&e.value.length>t.maxLength&&n.problems.push({location:{offset:e.offset,length:e.length},message:Zh("maxLengthWarning","String is longer than the maximum length of {0}.",t.maxLength)}),"string"==typeof t.pattern&&(qh(t.pattern).test(e.value)||n.problems.push({location:{offset:e.offset,length:e.length},message:t.patternErrorMessage||t.errorMessage||Zh("patternWarning",'String does not match the pattern of "{0}".',t.pattern)})),t.format)switch(t.format){case"uri":case"uri-reference":var r=void 0;if(e.value){var i=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/.exec(e.value);i?i[2]||"uri"!==t.format||(r=Zh("uriSchemeMissing","URI with a scheme is expected.")):r=Zh("uriMissing","URI is expected.")}else r=Zh("uriEmpty","URI expected.");r&&n.problems.push({location:{offset:e.offset,length:e.length},message:t.patternErrorMessage||t.errorMessage||Zh("uriFormatWarning","String is not a URI: {0}",r)});break;case"color-hex":case"date-time":case"date":case"time":case"email":var s=ef[t.format];e.value&&s.pattern.exec(e.value)||n.problems.push({location:{offset:e.offset,length:e.length},message:t.patternErrorMessage||t.errorMessage||s.errorMessage})}}(i,t,n);break;case"number":!function(e,t,n){var r=e.value;function i(e){var t,n=/^(-?\d+)(?:\.(\d+))?(?:e([-+]\d+))?$/.exec(e.toString());return n&&{value:Number(n[1]+(n[2]||"")),multiplier:((null===(t=n[2])||void 0===t?void 0:t.length)||0)-(parseInt(n[3])||0)}}if(Uh(t.multipleOf)){var s=-1;if(Number.isInteger(t.multipleOf))s=r%t.multipleOf;else{var o=i(t.multipleOf),a=i(r);if(o&&a){var l=Math.pow(10,Math.abs(a.multiplier-o.multiplier));a.multiplier<o.multiplier?a.value*=l:o.value*=l,s=a.value%o.value}}0!==s&&n.problems.push({location:{offset:e.offset,length:e.length},message:Zh("multipleOfWarning","Value is not divisible by {0}.",t.multipleOf)})}function u(e,t){return Uh(t)?t:Hh(t)&&t?e:void 0}function c(e,t){if(!Hh(t)||!t)return e}var h=u(t.minimum,t.exclusiveMinimum);Uh(h)&&r<=h&&n.problems.push({location:{offset:e.offset,length:e.length},message:Zh("exclusiveMinimumWarning","Value is below the exclusive minimum of {0}.",h)});var f=u(t.maximum,t.exclusiveMaximum);Uh(f)&&r>=f&&n.problems.push({location:{offset:e.offset,length:e.length},message:Zh("exclusiveMaximumWarning","Value is above the exclusive maximum of {0}.",f)});var d=c(t.minimum,t.exclusiveMinimum);Uh(d)&&r<d&&n.problems.push({location:{offset:e.offset,length:e.length},message:Zh("minimumWarning","Value is below the minimum of {0}.",d)});var m=c(t.maximum,t.exclusiveMaximum);Uh(m)&&r>m&&n.problems.push({location:{offset:e.offset,length:e.length},message:Zh("maximumWarning","Value is above the maximum of {0}.",m)})}(i,t,n);break;case"property":return lf(i.valueNode,t,n,r)}!function(){function e(e){return i.type===e||"integer"===e&&"number"===i.type&&i.isInteger}if(Array.isArray(t.type)?t.type.some(e)||n.problems.push({location:{offset:i.offset,length:i.length},message:t.errorMessage||Zh("typeArrayMismatchWarning","Incorrect type. Expected one of {0}.",t.type.join(", "))}):t.type&&(e(t.type)||n.problems.push({location:{offset:i.offset,length:i.length},message:t.errorMessage||Zh("typeMismatchWarning",'Incorrect type. Expected "{0}".',t.type)})),Array.isArray(t.allOf))for(var s=0,o=t.allOf;s<o.length;s++){var a=o[s];lf(i,nf(a),n,r)}var l=nf(t.not);if(l){var u=new of,c=r.newSub();lf(i,l,u,c),u.hasProblems()||n.problems.push({location:{offset:i.offset,length:i.length},message:Zh("notSchemaWarning","Matches a schema that is not allowed.")});for(var h=0,f=c.schemas;h<f.length;h++){var d=f[h];d.inverted=!d.inverted,r.add(d)}}var m=function(e,t){for(var s=[],o=void 0,a=0,l=e;a<l.length;a++){var u=nf(l[a]),c=new of,h=r.newSub();if(lf(i,u,c,h),c.hasProblems()||s.push(u),o)if(t||c.hasProblems()||o.validationResult.hasProblems()){var f=c.compare(o.validationResult);f>0?o={schema:u,validationResult:c,matchingSchemas:h}:0===f&&(o.matchingSchemas.merge(h),o.validationResult.mergeEnumValues(c))}else o.matchingSchemas.merge(h),o.validationResult.propertiesMatches+=c.propertiesMatches,o.validationResult.propertiesValueMatches+=c.propertiesValueMatches;else o={schema:u,validationResult:c,matchingSchemas:h}}return s.length>1&&t&&n.problems.push({location:{offset:i.offset,length:1},message:Zh("oneOfWarning","Matches multiple schemas when only one must validate.")}),o&&(n.merge(o.validationResult),n.propertiesMatches+=o.validationResult.propertiesMatches,n.propertiesValueMatches+=o.validationResult.propertiesValueMatches,r.merge(o.matchingSchemas)),s.length};Array.isArray(t.anyOf)&&m(t.anyOf,!1),Array.isArray(t.oneOf)&&m(t.oneOf,!0);var p,g,y,b,v,D,w=function(e){var t=new of,s=r.newSub();lf(i,nf(e),t,s),n.merge(t),n.propertiesMatches+=t.propertiesMatches,n.propertiesValueMatches+=t.propertiesValueMatches,r.merge(s)},C=nf(t.if);if(C&&(p=C,g=nf(t.then),y=nf(t.else),b=nf(p),v=new of,D=r.newSub(),lf(i,b,v,D),r.merge(D),v.hasProblems()?y&&w(y):g&&w(g)),Array.isArray(t.enum)){for(var E=af(i),S=!1,A=0,_=t.enum;A<_.length;A++)if(Kh(E,_[A])){S=!0;break}n.enumValues=t.enum,n.enumValueMatch=S,S||n.problems.push({location:{offset:i.offset,length:i.length},code:Rh.EnumValueMismatch,message:t.errorMessage||Zh("enumWarning","Value is not accepted. Valid values: {0}.",t.enum.map((function(e){return JSON.stringify(e)})).join(", "))})}(function(e){return void 0!==e})(t.const)&&(Kh(E=af(i),t.const)?n.enumValueMatch=!0:(n.problems.push({location:{offset:i.offset,length:i.length},code:Rh.EnumValueMismatch,message:t.errorMessage||Zh("constWarning","Value must be {0}.",JSON.stringify(t.const))}),n.enumValueMatch=!1),n.enumValues=[t.const]),t.deprecationMessage&&i.parent&&n.problems.push({location:{offset:i.parent.offset,length:i.parent.length},severity:$.Warning,message:t.deprecationMessage,code:Rh.Deprecated})}(),r.add({node:i,schema:t})}}function uf(e,t){if("string"!=typeof e)throw new TypeError("Expected a string");for(var n,r=String(e),i="",s=!!t&&!!t.extended,o=!!t&&!!t.globstar,a=!1,l=t&&"string"==typeof t.flags?t.flags:"",u=0,c=r.length;u<c;u++)switch(n=r[u]){case"/":case"$":case"^":case"+":case".":case"(":case")":case"=":case"!":case"|":i+="\\"+n;break;case"?":if(s){i+=".";break}case"[":case"]":if(s){i+=n;break}case"{":if(s){a=!0,i+="(";break}case"}":if(s){a=!1,i+=")";break}case",":if(a){i+="|";break}i+="\\"+n;break;case"*":for(var h=r[u-1],f=1;"*"===r[u+1];)f++,u++;var d=r[u+1];o?!(f>1)||"/"!==h&&void 0!==h&&"{"!==h&&","!==h||"/"!==d&&void 0!==d&&","!==d&&"}"!==d?i+="([^/]*)":("/"===d?u++:"/"===h&&i.endsWith("\\/")&&(i=i.substr(0,i.length-2)),i+="((?:[^/]*(?:/|$))*)"):i+=".*";break;default:i+=n}return l&&~l.indexOf("g")||(i="^"+i+"$"),new RegExp(i,l)}!function(){function e(e,t,n){void 0===t&&(t=[]),void 0===n&&(n=[]),this.root=e,this.syntaxErrors=t,this.comments=n}e.prototype.getNodeFromOffset=function(e,t){if(void 0===t&&(t=!1),this.root)return v(this.root,e,t)},e.prototype.visit=function(e){if(this.root){var t=function(n){var r=e(n),i=n.children;if(Array.isArray(i))for(var s=0;s<i.length&&r;s++)r=t(i[s]);return r};t(this.root)}},e.prototype.validate=function(e,t,n){if(void 0===n&&(n=$.Warning),this.root&&t){var r=new of;return lf(this.root,t,r,sf.instance),r.problems.map((function(t){var r,i=x.create(e.positionAt(t.location.offset),e.positionAt(t.location.offset+t.location.length));return W.create(i,t.message,null!==(r=t.severity)&&void 0!==r?r:n,t.code)}))}},e.prototype.getMatchingSchemas=function(e,t,n){void 0===t&&(t=-1);var r=new rf(t,n);return this.root&&e&&lf(this.root,e,new of,r),r.schemas}}();var cf=Yh(),hf=function(){function e(e,t){this.globWrappers=[];try{for(var n=0,r=e;n<r.length;n++){var i=r[n],s="!"!==i[0];s||(i=i.substring(1)),i.length>0&&("/"===i[0]&&(i=i.substring(1)),this.globWrappers.push({regexp:uf("**/"+i,{extended:!0,globstar:!0}),include:s}))}this.uris=t}catch(e){this.globWrappers.length=0,this.uris=[]}}return e.prototype.matchesPattern=function(e){for(var t=!1,n=0,r=this.globWrappers;n<r.length;n++){var i=r[n],s=i.regexp,o=i.include;s.test(e)&&(t=o)}return t},e.prototype.getURIs=function(){return this.uris},e}(),ff=function(){function e(e,t,n){this.service=e,this.url=t,this.dependencies={},n&&(this.unresolvedSchema=this.service.promise.resolve(new df(n)))}return e.prototype.getUnresolvedSchema=function(){return this.unresolvedSchema||(this.unresolvedSchema=this.service.loadSchema(this.url)),this.unresolvedSchema},e.prototype.getResolvedSchema=function(){var e=this;return this.resolvedSchema||(this.resolvedSchema=this.getUnresolvedSchema().then((function(t){return e.service.resolveSchemaContent(t,e.url,e.dependencies)}))),this.resolvedSchema},e.prototype.clearSchema=function(){this.resolvedSchema=void 0,this.unresolvedSchema=void 0,this.dependencies={}},e}(),df=function(){return function(e,t){void 0===t&&(t=[]),this.schema=e,this.errors=t}}(),mf=function(){function e(e,t){void 0===t&&(t=[]),this.schema=e,this.errors=t}return e.prototype.getSection=function(e){var t=this.getSectionRecursive(e,this.schema);if(t)return nf(t)},e.prototype.getSectionRecursive=function(e,t){if(!t||"boolean"==typeof t||0===e.length)return t;var n=e.shift();if(t.properties&&(t.properties[n],1))return this.getSectionRecursive(e,t.properties[n]);if(t.patternProperties)for(var r=0,i=Object.keys(t.patternProperties);r<i.length;r++){var s=i[r];if(qh(s).test(n))return this.getSectionRecursive(e,t.patternProperties[s])}else{if("object"==typeof t.additionalProperties)return this.getSectionRecursive(e,t.additionalProperties);if(n.match("[0-9]+"))if(Array.isArray(t.items)){var o=parseInt(n,10);if(!isNaN(o)&&t.items[o])return this.getSectionRecursive(e,t.items[o])}else if(t.items)return this.getSectionRecursive(e,t.items)}},e}(),pf=function(){function e(e,t,n){this.contextService=t,this.requestService=e,this.promiseConstructor=n||Promise,this.callOnDispose=[],this.contributionSchemas={},this.contributionAssociations=[],this.schemasById={},this.filePatternAssociations=[],this.registeredSchemasIds={}}return e.prototype.getRegisteredSchemaIds=function(e){return Object.keys(this.registeredSchemasIds).filter((function(t){var n=E.parse(t).scheme;return"schemaservice"!==n&&(!e||e(n))}))},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(e){var t=this;this.cachedSchemaForResource=void 0;for(var n=!1,r=[e=yf(e)],i=Object.keys(this.schemasById).map((function(e){return t.schemasById[e]}));r.length;)for(var s=r.pop(),o=0;o<i.length;o++){var a=i[o];a&&(a.url===s||a.dependencies[s])&&(a.url!==s&&r.push(a.url),a.clearSchema(),i[o]=void 0,n=!0)}return n},e.prototype.setSchemaContributions=function(e){if(e.schemas){var t=e.schemas;for(var n in t){var r=yf(n);this.contributionSchemas[r]=this.addSchemaHandle(r,t[n])}}if(Array.isArray(e.schemaAssociations))for(var i=0,s=e.schemaAssociations;i<s.length;i++){var o=s[i],a=o.uris.map(yf),l=this.addFilePatternAssociation(o.pattern,a);this.contributionAssociations.push(l)}},e.prototype.addSchemaHandle=function(e,t){var n=new ff(this,e,t);return this.schemasById[e]=n,n},e.prototype.getOrAddSchemaHandle=function(e,t){return this.schemasById[e]||this.addSchemaHandle(e,t)},e.prototype.addFilePatternAssociation=function(e,t){var n=new hf(e,t);return this.filePatternAssociations.push(n),n},e.prototype.registerExternalSchema=function(e,t,n){var r=yf(e);return this.registeredSchemasIds[r]=!0,this.cachedSchemaForResource=void 0,t&&this.addFilePatternAssociation(t,[e]),n?this.addSchemaHandle(r,n):this.getOrAddSchemaHandle(r)},e.prototype.clearExternalSchemas=function(){for(var e in this.schemasById={},this.filePatternAssociations=[],this.registeredSchemasIds={},this.cachedSchemaForResource=void 0,this.contributionSchemas)this.schemasById[e]=this.contributionSchemas[e],this.registeredSchemasIds[e]=!0;for(var t=0,n=this.contributionAssociations;t<n.length;t++){var r=n[t];this.filePatternAssociations.push(r)}},e.prototype.getResolvedSchema=function(e){var t=yf(e),n=this.schemasById[t];return n?n.getResolvedSchema():this.promise.resolve(void 0)},e.prototype.loadSchema=function(e){if(!this.requestService){var t=cf("json.schema.norequestservice","Unable to load schema from '{0}'. No schema request service available",bf(e));return this.promise.resolve(new df({},[t]))}return this.requestService(e).then((function(t){if(!t){var n=cf("json.schema.nocontent","Unable to load schema from '{0}': No content.",bf(e));return new df({},[n])}var r,i=[];r=function(e,t=[],n=p.DEFAULT){let r=null,i=[];const s=[];function o(e){Array.isArray(i)?i.push(e):null!==r&&(i[r]=e)}return b(e,{onObjectBegin:()=>{const e={};o(e),s.push(i),i=e,r=null},onObjectProperty:e=>{r=e},onObjectEnd:()=>{i=s.pop()},onArrayBegin:()=>{const e=[];o(e),s.push(i),i=e,r=null},onArrayEnd:()=>{i=s.pop()},onLiteralValue:o,onError:(e,n,r)=>{t.push({error:e,offset:n,length:r})}},n),i[0]}(t,i);var s=i.length?[cf("json.schema.invalidFormat","Unable to parse content from '{0}': Parse error at offset {1}.",bf(e),i[0].offset)]:[];return new df(r,s)}),(function(t){var n=t.toString(),r=t.toString().split("Error: ");return r.length>1&&(n=r[1]),Wh(n,".")&&(n=n.substr(0,n.length-1)),new df({},[cf("json.schema.nocontent","Unable to load schema from '{0}': {1}.",bf(e),n)])}))},e.prototype.resolveSchemaContent=function(e,t,n){var r=this,i=e.errors.slice(0),s=e.schema;if(s.$schema){var o=yf(s.$schema);if("http://json-schema.org/draft-03/schema"===o)return this.promise.resolve(new mf({},[cf("json.schema.draft03.notsupported","Draft-03 schemas are not supported.")]));"https://json-schema.org/draft/2019-09/schema"===o&&i.push(cf("json.schema.draft201909.notsupported","Draft 2019-09 schemas are not yet fully supported."))}var a=this.contextService,l=function(e,t,n,r){var s=r?decodeURIComponent(r):void 0,o=function(e,t){if(!t)return e;var n=e;return"/"===t[0]&&(t=t.substr(1)),t.split("/").some((function(e){return e=e.replace(/~1/g,"/").replace(/~0/g,"~"),!(n=n[e])})),n}(t,s);if(o)for(var a in o)o.hasOwnProperty(a)&&!e.hasOwnProperty(a)&&(e[a]=o[a]);else i.push(cf("json.schema.invalidref","$ref '{0}' in '{1}' can not be resolved.",s,n))},u=function(e,t,n,s,o){a&&!/^[A-Za-z][A-Za-z0-9+\-.+]*:\/\/.*/.test(t)&&(t=a.resolveRelativePath(t,s)),t=yf(t);var u=r.getOrAddSchemaHandle(t);return u.getUnresolvedSchema().then((function(r){if(o[t]=!0,r.errors.length){var s=n?t+"#"+n:t;i.push(cf("json.schema.problemloadingref","Problems loading reference '{0}': {1}",s,r.errors[0]))}return l(e,r.schema,t,n),c(e,r.schema,t,u.dependencies)}))},c=function(e,t,n,i){if(!e||"object"!=typeof e)return Promise.resolve(null);for(var s=[e],o=[],a=[],c=function(e){for(var r=[];e.$ref;){var o=e.$ref,c=o.split("#",2);if(delete e.$ref,c[0].length>0)return void a.push(u(e,c[0],c[1],n,i));-1===r.indexOf(o)&&(l(e,t,n,c[1]),r.push(o))}!function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e;n<r.length;n++){var i=r[n];"object"==typeof i&&s.push(i)}}(e.items,e.additionalItems,e.additionalProperties,e.not,e.contains,e.propertyNames,e.if,e.then,e.else),function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e;n<r.length;n++){var i=r[n];if("object"==typeof i)for(var o in i){var a=i[o];"object"==typeof a&&s.push(a)}}}(e.definitions,e.properties,e.patternProperties,e.dependencies),function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e;n<r.length;n++){var i=r[n];if(Array.isArray(i))for(var o=0,a=i;o<a.length;o++){var l=a[o];"object"==typeof l&&s.push(l)}}}(e.anyOf,e.allOf,e.oneOf,e.items)};s.length;){var h=s.pop();o.indexOf(h)>=0||(o.push(h),c(h))}return r.promise.all(a)};return c(s,s,t,n).then((function(e){return new mf(s,i)}))},e.prototype.getSchemaForResource=function(e,t){if(t&&t.root&&"object"===t.root.type){var n=t.root.properties.filter((function(e){return"$schema"===e.keyNode.value&&e.valueNode&&"string"===e.valueNode.type}));if(n.length>0){var r=n[0].valueNode;if(r&&"string"===r.type){var i=af(r);if(i&&Vh(i,".")&&this.contextService&&(i=this.contextService.resolveRelativePath(i,e)),i){var s=yf(i);return this.getOrAddSchemaHandle(s).getResolvedSchema()}}}}if(this.cachedSchemaForResource&&this.cachedSchemaForResource.resource===e)return this.cachedSchemaForResource.resolvedSchema;for(var o=Object.create(null),a=[],l=function(e){try{return E.parse(e).with({fragment:null,query:null}).toString()}catch(t){return e}}(e),u=0,c=this.filePatternAssociations;u<c.length;u++){var h=c[u];if(h.matchesPattern(l))for(var f=0,d=h.getURIs();f<d.length;f++){var m=d[f];o[m]||(a.push(m),o[m]=!0)}}var p=a.length>0?this.createCombinedSchema(e,a).getResolvedSchema():this.promise.resolve(void 0);return this.cachedSchemaForResource={resource:e,resolvedSchema:p},p},e.prototype.createCombinedSchema=function(e,t){if(1===t.length)return this.getOrAddSchemaHandle(t[0]);var n="schemaservice://combinedSchema/"+encodeURIComponent(e),r={allOf:t.map((function(e){return{$ref:e}}))};return this.addSchemaHandle(n,r)},e.prototype.getMatchingSchemas=function(e,t,n){if(n){var r=n.id||"schemaservice://untitled/matchingSchemas/"+gf++;return this.resolveSchemaContent(new df(n),r,{}).then((function(e){return t.getMatchingSchemas(e.schema).filter((function(e){return!e.inverted}))}))}return this.getSchemaForResource(e.uri,t).then((function(e){return e?t.getMatchingSchemas(e.schema).filter((function(e){return!e.inverted})):[]}))},e}(),gf=0;function yf(e){try{return E.parse(e).toString()}catch(t){return e}}function bf(e){try{var t=E.parse(e);if("file"===t.scheme)return t.fsPath}catch(e){}return e}function vf(e){try{return new RegExp(e,"u")}catch(t){return new RegExp(e)}}function Df(e,t){for(let n=++t;n<e.length;n++){const r=e.charAt(n);if(" "!==r&&"\t"!==r)return t;t++}return t}function wf(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(typeof e!=typeof t)return!1;if("object"!=typeof e)return!1;if(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(!wf(e[n],t[n]))return!1}else{const i=[];for(r in e)i.push(r);i.sort();const s=[];for(r in t)s.push(r);if(s.sort(),!wf(i,s))return!1;for(n=0;n<i.length;n++)if(!wf(e[i[n]],t[i[n]]))return!1}return!0}function Cf(e){return"number"==typeof e}function Ef(e){return void 0!==e}function Sf(e){return"boolean"==typeof e}function Af(e){return"string"==typeof e}function _f(e){const t=e.type&&e.closestTitle;return e.title?e.title:e.$id?kf(e.$id):e.$ref||e._$ref?kf(e.$ref||e._$ref):Array.isArray(e.type)?e.type.join(" | "):t?e.type.concat("(",e.closestTitle,")"):e.type||e.closestTitle}function kf(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 Nf(e,t){const n=E.parse(t);let r=vi.basename(n.fsPath);return vi.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 Lf(e){return"object"!==e.type&&!xf(e)}function xf(e){return!!(e.anyOf||e.allOf||e.oneOf)}var Ff=Yh(),Of=function(){function e(e,t){this.jsonSchemaService=e,this.promise=t,this.validationEnabled=!0}return e.prototype.configure=function(e){e&&(this.validationEnabled=!1!==e.validate,this.commentSeverity=e.allowComments?void 0:$.Error)},e.prototype.doValidation=function(e,t,n,r){var i=this;if(!this.validationEnabled)return this.promise.resolve([]);var s=[],o={},a=function(e){var t=e.range.start.line+" "+e.range.start.character+" "+e.message;o[t]||(o[t]=!0,s.push(e))},l=function(r){var o=(null==n?void 0:n.trailingCommas)?Rf(n.trailingCommas):$.Error,l=(null==n?void 0:n.comments)?Rf(n.comments):i.commentSeverity,u=(null==n?void 0:n.schemaValidation)?Rf(n.schemaValidation):$.Warning,c=(null==n?void 0:n.schemaRequest)?Rf(n.schemaRequest):$.Warning;if(r){if(r.errors.length&&t.root&&c){var h=t.root,f="object"===h.type?h.properties[0]:void 0;if(f&&"$schema"===f.keyNode.value){var d=f.valueNode||f,m=x.create(e.positionAt(d.offset),e.positionAt(d.offset+d.length));a(W.create(m,r.errors[0],c,Rh.SchemaResolveError))}else m=x.create(e.positionAt(h.offset),e.positionAt(h.offset+1)),a(W.create(m,r.errors[0],c,Rh.SchemaResolveError))}else if(u){var p=t.validate(e,r.schema,u);p&&p.forEach(a)}Tf(r.schema)&&(l=void 0),If(r.schema)&&(o=void 0)}for(var g=0,y=t.syntaxErrors;g<y.length;g++){var b=y[g];if(b.code===Rh.TrailingComma){if("number"!=typeof o)continue;b.severity=o}a(b)}if("number"==typeof l){var v=Ff("InvalidCommentToken","Comments are not permitted in JSON.");t.comments.forEach((function(e){a(W.create(e,v,l,Rh.CommentNotPermitted))}))}return s};if(r){var u=r.id||"schemaservice://untitled/"+Mf++;return this.jsonSchemaService.resolveSchemaContent(new df(r),u,{}).then((function(e){return l(e)}))}return this.jsonSchemaService.getSchemaForResource(e.uri,t).then((function(e){return l(e)}))},e}(),Mf=0;function Tf(e){if(e&&"object"==typeof e){if(Hh(e.allowComments))return e.allowComments;if(e.allOf)for(var t=0,n=e.allOf;t<n.length;t++){var r=Tf(n[t]);if(Hh(r))return r}}}function If(e){if(e&&"object"==typeof e){if(Hh(e.allowTrailingCommas))return e.allowTrailingCommas;var t=e;if(Hh(t.allowsTrailingCommas))return t.allowsTrailingCommas;if(e.allOf)for(var n=0,r=e.allOf;n<r.length;n++){var i=If(r[n]);if(Hh(i))return i}}}function Rf(e){switch(e){case"error":return $.Error;case"warning":return $.Warning;case"ignore":return}}function Pf(e){return e<48?0:e<=57?e-48:(e<97&&(e+=32),e>=97&&e<=102?e-97+10:0)}function Bf(e){if("#"===e[0])switch(e.length){case 4:return{red:17*Pf(e.charCodeAt(1))/255,green:17*Pf(e.charCodeAt(2))/255,blue:17*Pf(e.charCodeAt(3))/255,alpha:1};case 5:return{red:17*Pf(e.charCodeAt(1))/255,green:17*Pf(e.charCodeAt(2))/255,blue:17*Pf(e.charCodeAt(3))/255,alpha:17*Pf(e.charCodeAt(4))/255};case 7:return{red:(16*Pf(e.charCodeAt(1))+Pf(e.charCodeAt(2)))/255,green:(16*Pf(e.charCodeAt(3))+Pf(e.charCodeAt(4)))/255,blue:(16*Pf(e.charCodeAt(5))+Pf(e.charCodeAt(6)))/255,alpha:1};case 9:return{red:(16*Pf(e.charCodeAt(1))+Pf(e.charCodeAt(2)))/255,green:(16*Pf(e.charCodeAt(3))+Pf(e.charCodeAt(4)))/255,blue:(16*Pf(e.charCodeAt(5))+Pf(e.charCodeAt(6)))/255,alpha:(16*Pf(e.charCodeAt(7))+Pf(e.charCodeAt(8)))/255}}}var $f=function(){function e(e){this.schemaService=e}return e.prototype.findDocumentSymbols=function(e,t,n){var r=this;void 0===n&&(n={resultLimit:Number.MAX_VALUE});var i=t.root;if(!i)return[];var s=n.resultLimit||Number.MAX_VALUE,o=e.uri;if(("vscode://defaultsettings/keybindings.json"===o||Wh(o.toLowerCase(),"/user/keybindings.json"))&&"array"===i.type){for(var a=[],l=0,u=i.items;l<u.length;l++){var c=u[l];if("object"===c.type)for(var h=0,f=c.properties;h<f.length;h++){var d=f[h];if("key"===d.keyNode.value&&d.valueNode){var m=F.create(e.uri,jf(e,c));if(a.push({name:af(d.valueNode),kind:ve.Function,location:m}),--s<=0)return n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(o),a}}}return a}for(var p=[{node:i,containerName:""}],g=0,y=!1,b=[],v=function(t,n){"array"===t.type?t.items.forEach((function(e){e&&p.push({node:e,containerName:n})})):"object"===t.type&&t.properties.forEach((function(t){var i=t.valueNode;if(i)if(s>0){s--;var o=F.create(e.uri,jf(e,t)),a=n?n+"."+t.keyNode.value:t.keyNode.value;b.push({name:r.getKeyLabel(t),kind:r.getSymbolKind(i.type),location:o,containerName:n}),p.push({node:i,containerName:a})}else y=!0}))};g<p.length;){var D=p[g++];v(D.node,D.containerName)}return y&&n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(o),b},e.prototype.findDocumentSymbols2=function(e,t,n){var r=this;void 0===n&&(n={resultLimit:Number.MAX_VALUE});var i=t.root;if(!i)return[];var s=n.resultLimit||Number.MAX_VALUE,o=e.uri;if(("vscode://defaultsettings/keybindings.json"===o||Wh(o.toLowerCase(),"/user/keybindings.json"))&&"array"===i.type){for(var a=[],l=0,u=i.items;l<u.length;l++){var c=u[l];if("object"===c.type)for(var h=0,f=c.properties;h<f.length;h++){var d=f[h];if("key"===d.keyNode.value&&d.valueNode){var m=jf(e,c),p=jf(e,d.keyNode);if(a.push({name:af(d.valueNode),kind:ve.Function,range:m,selectionRange:p}),--s<=0)return n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(o),a}}}return a}for(var g=[],y=[{node:i,result:g}],b=0,v=!1,D=function(t,n){"array"===t.type?t.items.forEach((function(t,i){if(t)if(s>0){s--;var o=jf(e,t),a=o,l={name:String(i),kind:r.getSymbolKind(t.type),range:o,selectionRange:a,children:[]};n.push(l),y.push({result:l.children,node:t})}else v=!0})):"object"===t.type&&t.properties.forEach((function(t){var i=t.valueNode;if(i)if(s>0){s--;var o=jf(e,t),a=jf(e,t.keyNode),l=[],u={name:r.getKeyLabel(t),kind:r.getSymbolKind(i.type),range:o,selectionRange:a,children:l,detail:r.getDetail(i)};n.push(u),y.push({result:l,node:i})}else v=!0}))};b<y.length;){var w=y[b++];D(w.node,w.result)}return v&&n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(o),g},e.prototype.getSymbolKind=function(e){switch(e){case"object":return ve.Module;case"string":return ve.String;case"number":return ve.Number;case"array":return ve.Array;case"boolean":return ve.Boolean;default:return ve.Variable}},e.prototype.getKeyLabel=function(e){var t=e.keyNode.value;return t&&(t=t.replace(/[\n]/g,"↵")),t&&t.trim()?t:'"'+t+'"'},e.prototype.getDetail=function(e){if(e)return"boolean"===e.type||"number"===e.type||"null"===e.type||"string"===e.type?String(e.value):"array"===e.type?e.children.length?void 0:"[]":"object"===e.type?e.children.length?void 0:"{}":void 0},e.prototype.findDocumentColors=function(e,t,n){return this.schemaService.getSchemaForResource(e.uri,t).then((function(r){var i=[];if(r)for(var s=n&&"number"==typeof n.resultLimit?n.resultLimit:Number.MAX_VALUE,o={},a=0,l=t.getMatchingSchemas(r.schema);a<l.length;a++){var u=l[a];if(!u.inverted&&u.schema&&("color"===u.schema.format||"color-hex"===u.schema.format)&&u.node&&"string"===u.node.type){var c=String(u.node.offset);if(!o[c]){var h=Bf(af(u.node));if(h){var f=jf(e,u.node);i.push({color:h,range:f})}if(o[c]=!0,--s<=0)return n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(e.uri),i}}}return i}))},e.prototype.getColorPresentations=function(e,t,n,r){var i,s=[],o=Math.round(255*n.red),a=Math.round(255*n.green),l=Math.round(255*n.blue);function u(e){var t=e.toString(16);return 2!==t.length?"0"+t:t}return i=1===n.alpha?"#"+u(o)+u(a)+u(l):"#"+u(o)+u(a)+u(l)+u(Math.round(255*n.alpha)),s.push({label:i,textEdit:K.replace(r,JSON.stringify(i))}),s},e}();function jf(e,t){return x.create(e.positionAt(t.offset),e.positionAt(t.offset+t.length))}function Vf(e,t){var n=[];return t.visit((function(r){var i;if("property"===r.type&&"$ref"===r.keyNode.value&&"string"===(null===(i=r.valueNode)||void 0===i?void 0:i.type)){var s=r.valueNode.value,o=function(e,t){var n=function(e){return"#"===e?[]:"#"!==e[0]||"/"!==e[1]?null:e.substring(2).split(/\//).map(Kf)}(t);return n?qf(n,e.root):null}(t,s);if(o){var a=e.positionAt(o.offset);n.push({target:e.uri+"#"+(a.line+1)+","+(a.character+1),range:Wf(e,r.valueNode)})}}return!0})),Promise.resolve(n)}function Wf(e,t){return x.create(e.positionAt(t.offset+1),e.positionAt(t.offset+t.length-1))}function qf(e,t){if(!t)return null;if(0===e.length)return t;var n=e.shift();if(t&&"object"===t.type){var r=t.properties.find((function(e){return e.keyNode.value===n}));return r?qf(e,r.valueNode):null}if(t&&"array"===t.type&&n.match(/^(0|[1-9][0-9]*)$/)){var i=Number.parseInt(n),s=t.items[i];return s?qf(e,s):null}return null}function Kf(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function Uf(e,t){for(const n of t.documents)if(n.internalDocument&&n.internalDocument.range[0]<=e&&n.internalDocument.range[2]>=e)return n;return 1===t.documents.length?t.documents[0]:null}function Hf(e){const t=["mapping","scalar","sequence"];return e?e.filter((e=>{if("string"==typeof e){const n=e.split(" "),r=n[1]&&n[1].toLowerCase()||"scalar";return"map"!==r&&-1!==t.indexOf(r)}return!1})):[]}function zf(e,t){if(!t||!e)return!1;if(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 Yf,Gf,Qf=Yh(),Jf="Property {0} is not allowed.",Xf={"color-hex":{errorMessage:Qf("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:Qf("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:Qf("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:Qf("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:Qf("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:Qf("ipv4FormatWarning","String does not match IPv4 format."),pattern:/^((25[0-5]|(2[0-4]|1\d|[1-9]|)\d)\.?\b){4}$/},ipv6:{errorMessage:Qf("ipv6FormatWarning","String does not match IPv6 format."),pattern:/^([0-9a-f]|:){1,4}(:([0-9a-f]{0,4})*){1,7}$/i}},Zf="YAML",ed="yaml-schema: ";(Gf=Yf||(Yf={})).missingRequiredPropWarning="missingRequiredPropWarning",Gf.typeMismatchWarning="typeMismatchWarning",Gf.constWarning="constWarning";var td,nd={[Yf.missingRequiredPropWarning]:'Missing property "{0}".',[Yf.typeMismatchWarning]:'Incorrect type. Expected "{0}".',[Yf.constWarning]:"Value must be {0}."},rd=class{constructor(e,t,n,r){this.offset=n,this.length=r,this.parent=e,this.internalNode=t}getNodeFromOffsetEndInclusive(e){const t=[],n=r=>{if(e>=r.offset&&e<=r.offset+r.length){const i=r.children;for(let r=0;r<i.length&&i[r].offset<=e;r++){const e=n(i[r]);e&&t.push(e)}return r}return null},r=n(this);let i=Number.MAX_VALUE,s=null;for(const n of t){const t=n.length+n.offset-e+(e-n.offset);t<i&&(s=n,i=t)}return s||r}get children(){return[]}toString(){return"type: "+this.type+" ("+this.offset+"/"+this.length+")"+(this.parent?" parent: {"+this.parent.toString()+"}":"")}},id=class extends rd{constructor(e,t,n,r){super(e,t,n,r),this.type="null",this.value=null}},sd=class extends rd{constructor(e,t,n,r,i,s){super(e,t,i,s),this.type="boolean",this.value=n,this.source=r}},od=class extends rd{constructor(e,t,n,r){super(e,t,n,r),this.type="array",this.items=[]}get children(){return this.items}},ad=class extends rd{constructor(e,t,n,r){super(e,t,n,r),this.type="number",this.isInteger=!0,this.value=Number.NaN}},ld=class extends rd{constructor(e,t,n,r){super(e,t,n,r),this.type="string",this.value=""}},ud=class extends rd{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]}},cd=class extends rd{constructor(e,t,n,r){super(e,t,n,r),this.type="object",this.properties=[]}get children(){return this.properties}};function hd(e){if(void 0!==e)return Sf(e)?e?{}:{not:{}}:("object"!=typeof e&&(console.warn(`Wrong schema: ${JSON.stringify(e)}, it MUST be an Object or Boolean`),e={type:e}),e)}!function(e){e[e.Key=0]="Key",e[e.Enum=1]="Enum"}(td||(td={}));var fd=class e{constructor(e=-1,t=null){this.focusOffset=e,this.exclude=t,this.schemas=[]}add(e){this.schemas.push(e)}merge(e){this.schemas.push(...e.schemas)}include(e){return(-1===this.focusOffset||gd(e,this.focusOffset))&&e!==this.exclude}newSub(){return new e(-1,this.exclude)}},dd=class{constructor(){}get schemas(){return[]}add(e){}merge(e){}include(e){return!0}newSub(){return this}};dd.instance=new dd;var md=class{constructor(e){this.problems=[],this.propertiesMatches=0,this.propertiesValueMatches=0,this.primaryValueMatches=0,this.enumValueMatch=!1,this.enumValues=e?[]: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 e of this.problems)e.code===Rh.EnumValueMismatch&&(e.message=Qf("enumWarning","Value is not accepted. Valid values: {0}.",[...new Set(this.enumValues)].map((e=>JSON.stringify(e))).join(", ")))}}mergeWarningGeneric(e,t){var n,r,i;if(null==(n=this.problems)?void 0:n.length)for(const n of t){const t=this.problems.filter((e=>e.problemType===n));for(const s of t){const t=null==(r=e.problems)?void 0:r.find((e=>e.problemType===n&&s.location.offset===e.location.offset&&(n!==Yf.missingRequiredPropWarning||zf(e.problemArgs,s.problemArgs))));t&&((null==(i=t.problemArgs)?void 0:i.length)&&(t.problemArgs.filter((e=>!s.problemArgs.includes(e))).forEach((e=>s.problemArgs.push(e))),s.message=Cd(s.problemType,s.problemArgs)),this.mergeSources(t,s))}}}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(ed,"");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 pd(e){switch(e.type){case"array":return e.children.map(pd);case"object":{const t=Object.create(null);for(let n=0,r=e.children;n<r.length;n++){const e=r[n],i=e.children[1];i&&(t[e.children[0].value]=pd(i))}return t}case"null":case"string":case"number":return e.value;case"boolean":return e.source;default:return}}function gd(e,t,n=!1){return t>=e.offset&&t<=e.offset+e.length||n&&t===e.offset+e.length}function yd(e,t,n){if(void 0===n&&(n=!1),gd(e,t,n)){const r=e.children;if(Array.isArray(r))for(let e=0;e<r.length&&r[e].offset<=t;e++){const i=yd(r[e],t,n);if(i)return i}return e}}var bd=class{constructor(e,t=[],n=[]){this.root=e,this.syntaxErrors=t,this.comments=n}getNodeFromOffset(e,t=!1){if(this.root)return yd(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 i=n.children;if(Array.isArray(i))for(let e=0;e<i.length&&r;e++)r=t(i[e]);return r};t(this.root)}}validate(e,t){if(this.root&&t){const n=new md(this.isKubernetes);return vd(this.root,t,t,n,dd.instance,{isKubernetes:this.isKubernetes,disableAdditionalProperties:this.disableAdditionalProperties,uri:this.uri}),n.problems.map((t=>{const n=x.create(e.positionAt(t.location.offset),e.positionAt(t.location.offset+t.location.length)),r=W.create(n,t.message,t.severity,t.code?t.code:Rh.Undefined,t.source);return r.data={schemaUri:t.schemaUri,...t.data},r}))}return null}getMatchingSchemas(e,t=-1,n=null,r){const i=new fd(t,n);return this.root&&e&&vd(this.root,e,e,new md(this.isKubernetes),i,{isKubernetes:this.isKubernetes,disableAdditionalProperties:this.disableAdditionalProperties,uri:this.uri,callFromAutoComplete:r}),i.schemas}};function vd(e,t,n,r,i,s){const{isKubernetes:o,callFromAutoComplete:a}=s;if(e&&"object"==typeof t){switch(t.url||(t.url=n.url),t.closestTitle=t.title||n.closestTitle,e.type){case"object":!function(e,t,r,i){var a;const l=Object.create(null),u=[],c=[...e.properties];for(;c.length>0;){const e=c.pop(),t=e.keyNode.value;if("<<"===t&&e.valueNode)switch(e.valueNode.type){case"object":c.push(...e.valueNode.properties);break;case"array":e.valueNode.items.forEach((e=>{var t;e&&(t=e.properties,Symbol.iterator in Object(t))&&c.push(...e.properties)}))}else l[t]=e.valueNode,u.push(t)}if(Array.isArray(t.required))for(const i of t.required)if(void 0===l[i]){const s=e.parent&&"property"===e.parent.type&&e.parent.keyNode,o=s?{offset:s.offset,length:s.length}:{offset:e.offset,length:1};r.problems.push({location:o,severity:$.Warning,message:Cd(Yf.missingRequiredPropWarning,[i]),source:Dd(t,n),schemaUri:wd(t,n),problemArgs:[i],problemType:Yf.missingRequiredPropWarning})}const h=e=>{let t=u.indexOf(e);for(;t>=0;)u.splice(t,1),t=u.indexOf(e)};if(t.properties)for(const e of Object.keys(t.properties)){h(e);const u=t.properties[e],c=l[e];if(c)if(Sf(u))if(u)r.propertiesMatches++,r.propertiesValueMatches++;else{const i=c.parent;r.problems.push({location:{offset:i.keyNode.offset,length:i.keyNode.length},severity:$.Warning,message:t.errorMessage||Qf("DisallowedExtraPropWarning",Jf,e),source:Dd(t,n),schemaUri:wd(t,n)})}else{u.url=null!=(a=t.url)?a:n.url;const e=new md(o);vd(c,u,t,e,i,s),r.mergePropertyMatch(e),r.mergeEnumValues(e)}}if(t.patternProperties)for(const e of Object.keys(t.patternProperties)){const a=vf(e);for(const c of u.slice(0))if(a.test(c)){h(c);const a=l[c];if(a){const l=t.patternProperties[e];if(Sf(l))if(l)r.propertiesMatches++,r.propertiesValueMatches++;else{const e=a.parent;r.problems.push({location:{offset:e.keyNode.offset,length:e.keyNode.length},severity:$.Warning,message:t.errorMessage||Qf("DisallowedExtraPropWarning",Jf,c),source:Dd(t,n),schemaUri:wd(t,n)})}else{const e=new md(o);vd(a,l,t,e,i,s),r.mergePropertyMatch(e),r.mergeEnumValues(e)}}}}if("object"==typeof t.additionalProperties)for(const e of u){const n=l[e];if(n){const e=new md(o);vd(n,t.additionalProperties,t,e,i,s),r.mergePropertyMatch(e),r.mergeEnumValues(e)}}else if((!1===t.additionalProperties||"object"===t.type&&void 0===t.additionalProperties&&!0===s.disableAdditionalProperties)&&u.length>0){const e=t.properties&&Object.entries(t.properties).filter((([e,t])=>!(l[e]||t&&"object"==typeof t&&(t.doNotSuggest||t.deprecationMessage)))).map((([e])=>e));for(const i of u){const s=l[i];if(s){let o=null;"property"!==s.type?(o=s.parent,"object"===o.type&&(o=o.properties[0])):o=s;const a={location:{offset:o.keyNode.offset,length:o.keyNode.length},severity:$.Warning,code:Rh.PropertyExpected,message:t.errorMessage||Qf("DisallowedExtraPropWarning",Jf,i),source:Dd(t,n),schemaUri:wd(t,n)};(null==e?void 0:e.length)&&(a.data={properties:e}),r.problems.push(a)}}}if(Cf(t.maxProperties)&&e.properties.length>t.maxProperties&&r.problems.push({location:{offset:e.offset,length:e.length},severity:$.Warning,message:Qf("MaxPropWarning","Object has more properties than limit of {0}.",t.maxProperties),source:Dd(t,n),schemaUri:wd(t,n)}),Cf(t.minProperties)&&e.properties.length<t.minProperties&&r.problems.push({location:{offset:e.offset,length:e.length},severity:$.Warning,message:Qf("MinPropWarning","Object has fewer properties than the required number of {0}",t.minProperties),source:Dd(t,n),schemaUri:wd(t,n)}),t.dependencies)for(const a of Object.keys(t.dependencies))if(l[a]){const u=t.dependencies[a];if(Array.isArray(u))for(const i of u)l[i]?r.propertiesValueMatches++:r.problems.push({location:{offset:e.offset,length:e.length},severity:$.Warning,message:Qf("RequiredDependentPropWarning","Object is missing property {0} required by property {1}.",i,a),source:Dd(t,n),schemaUri:wd(t,n)});else{const n=hd(u);if(n){const a=new md(o);vd(e,n,t,a,i,s),r.mergePropertyMatch(a),r.mergeEnumValues(a)}}}const f=hd(t.propertyNames);if(f)for(const n of e.properties){const e=n.keyNode;e&&vd(e,f,t,r,dd.instance,s)}}(e,t,r,i);break;case"array":!function(e,t,r,i){if(Array.isArray(t.items)){const a=t.items;for(let n=0;n<a.length;n++){const l=hd(a[n]),u=new md(o),c=e.items[n];c?(vd(c,l,t,u,i,s),r.mergePropertyMatch(u),r.mergeEnumValues(u)):e.items.length>=a.length&&r.propertiesValueMatches++}if(e.items.length>a.length)if("object"==typeof t.additionalItems)for(let n=a.length;n<e.items.length;n++){const a=new md(o);vd(e.items[n],t.additionalItems,t,a,i,s),r.mergePropertyMatch(a),r.mergeEnumValues(a)}else!1===t.additionalItems&&r.problems.push({location:{offset:e.offset,length:e.length},severity:$.Warning,message:Qf("additionalItemsWarning","Array has too many items according to schema. Expected {0} or fewer.",a.length),source:Dd(t,n),schemaUri:wd(t,n)})}else{const n=hd(t.items);if(n){const a=new md(o);e.items.forEach((e=>{if(n.oneOf&&1===n.oneOf.length){const o={...hd(n.oneOf[0])};o.title=t.title,o.closestTitle=t.closestTitle,vd(e,o,t,a,i,s),r.mergePropertyMatch(a),r.mergeEnumValues(a)}else vd(e,n,t,a,i,s),r.mergePropertyMatch(a),r.mergeEnumValues(a)}))}}const a=hd(t.contains);if(a&&(e.items.some((e=>{const n=new md(o);return vd(e,a,t,n,dd.instance,s),!n.hasProblems()}))||r.problems.push({location:{offset:e.offset,length:e.length},severity:$.Warning,message:t.errorMessage||Qf("requiredItemMissingWarning","Array does not contain required item."),source:Dd(t,n),schemaUri:wd(t,n)})),Cf(t.minItems)&&e.items.length<t.minItems&&r.problems.push({location:{offset:e.offset,length:e.length},severity:$.Warning,message:Qf("minItemsWarning","Array has too few items. Expected {0} or more.",t.minItems),source:Dd(t,n),schemaUri:wd(t,n)}),Cf(t.maxItems)&&e.items.length>t.maxItems&&r.problems.push({location:{offset:e.offset,length:e.length},severity:$.Warning,message:Qf("maxItemsWarning","Array has too many items. Expected {0} or fewer.",t.maxItems),source:Dd(t,n),schemaUri:wd(t,n)}),!0===t.uniqueItems){const i=pd(e);i.some(((e,t)=>t!==i.lastIndexOf(e)))&&r.problems.push({location:{offset:e.offset,length:e.length},severity:$.Warning,message:Qf("uniqueItemsWarning","Array has duplicate items."),source:Dd(t,n),schemaUri:wd(t,n)})}}(e,t,r,i);break;case"string":!function(e,t,r){if(Cf(t.minLength)&&e.value.length<t.minLength&&r.problems.push({location:{offset:e.offset,length:e.length},severity:$.Warning,message:Qf("minLengthWarning","String is shorter than the minimum length of {0}.",t.minLength),source:Dd(t,n),schemaUri:wd(t,n)}),Cf(t.maxLength)&&e.value.length>t.maxLength&&r.problems.push({location:{offset:e.offset,length:e.length},severity:$.Warning,message:Qf("maxLengthWarning","String is longer than the maximum length of {0}.",t.maxLength),source:Dd(t,n),schemaUri:wd(t,n)}),Af(t.pattern)&&(vf(t.pattern).test(e.value)||r.problems.push({location:{offset:e.offset,length:e.length},severity:$.Warning,message:t.patternErrorMessage||t.errorMessage||Qf("patternWarning",'String does not match the pattern of "{0}".',t.pattern),source:Dd(t,n),schemaUri:wd(t,n)})),t.format)switch(t.format){case"uri":case"uri-reference":{let i;if(e.value)try{E.parse(e.value).scheme||"uri"!==t.format||(i=Qf("uriSchemeMissing","URI with a scheme is expected."))}catch(e){i=e.message}else i=Qf("uriEmpty","URI expected.");i&&r.problems.push({location:{offset:e.offset,length:e.length},severity:$.Warning,message:t.patternErrorMessage||t.errorMessage||Qf("uriFormatWarning","String is not a URI: {0}",i),source:Dd(t,n),schemaUri:wd(t,n)})}break;case"color-hex":case"date-time":case"date":case"time":case"email":case"ipv4":case"ipv6":{const i=Xf[t.format];e.value&&i.pattern.test(e.value)||r.problems.push({location:{offset:e.offset,length:e.length},severity:$.Warning,message:t.patternErrorMessage||t.errorMessage||i.errorMessage,source:Dd(t,n),schemaUri:wd(t,n)})}}}(e,t,r);break;case"number":!function(e,t,r){const i=e.value;function s(e,t){return Cf(t)?t:Sf(t)&&t?e:void 0}function o(e,t){if(!Sf(t)||!t)return e}Cf(t.multipleOf)&&0!==function(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=Math.max(n,r);return parseInt(e.toFixed(i).replace(".",""))%parseInt(t.toFixed(i).replace(".",""))/Math.pow(10,i)}(i,t.multipleOf)&&r.problems.push({location:{offset:e.offset,length:e.length},severity:$.Warning,message:Qf("multipleOfWarning","Value is not divisible by {0}.",t.multipleOf),source:Dd(t,n),schemaUri:wd(t,n)});const a=s(t.minimum,t.exclusiveMinimum);Cf(a)&&i<=a&&r.problems.push({location:{offset:e.offset,length:e.length},severity:$.Warning,message:Qf("exclusiveMinimumWarning","Value is below the exclusive minimum of {0}.",a),source:Dd(t,n),schemaUri:wd(t,n)});const l=s(t.maximum,t.exclusiveMaximum);Cf(l)&&i>=l&&r.problems.push({location:{offset:e.offset,length:e.length},severity:$.Warning,message:Qf("exclusiveMaximumWarning","Value is above the exclusive maximum of {0}.",l),source:Dd(t,n),schemaUri:wd(t,n)});const u=o(t.minimum,t.exclusiveMinimum);Cf(u)&&i<u&&r.problems.push({location:{offset:e.offset,length:e.length},severity:$.Warning,message:Qf("minimumWarning","Value is below the minimum of {0}.",u),source:Dd(t,n),schemaUri:wd(t,n)});const c=o(t.maximum,t.exclusiveMaximum);Cf(c)&&i>c&&r.problems.push({location:{offset:e.offset,length:e.length},severity:$.Warning,message:Qf("maximumWarning","Value is above the maximum of {0}.",c),source:Dd(t,n),schemaUri:wd(t,n)})}(e,t,r);break;case"property":return vd(e.valueNode,t,t,r,i,s)}!function(){function c(t){return e.type===t||"integer"===t&&"number"===e.type&&e.isInteger}if(Array.isArray(t.type))t.type.some(c)||r.problems.push({location:{offset:e.offset,length:e.length},severity:$.Warning,message:t.errorMessage||Qf("typeArrayMismatchWarning","Incorrect type. Expected one of {0}.",t.type.join(", ")),source:Dd(t,n),schemaUri:wd(t,n)});else if(t.type&&!c(t.type)){const i="object"===t.type?_f(t):t.type;r.problems.push({location:{offset:e.offset,length:e.length},severity:$.Warning,message:t.errorMessage||Cd(Yf.typeMismatchWarning,[i]),source:Dd(t,n),schemaUri:wd(t,n),problemType:Yf.typeMismatchWarning,problemArgs:[i]})}if(Array.isArray(t.allOf))for(const n of t.allOf)vd(e,hd(n),t,r,i,s);const h=hd(t.not);if(h){const a=new md(o),l=i.newSub();vd(e,h,t,a,l,s),a.hasProblems()||r.problems.push({location:{offset:e.offset,length:e.length},severity:$.Warning,message:Qf("notSchemaWarning","Matches a schema that is not allowed."),source:Dd(t,n),schemaUri:wd(t,n)});for(const e of l.schemas)e.inverted=!e.inverted,i.add(e)}const f=(c,h)=>{var f;const d=[],m=[],p=[];let g=null;for(const n of c){const r={...hd(n)},c=new md(o),f=i.newSub();vd(e,r,t,c,f,s),c.hasProblems()&&!a||(d.push(r),m.push(r),0===c.propertiesMatches&&p.push(r),r.format&&m.pop()),g=g?o?l(c,g,r,f):u(e,h,c,g,r,f):{schema:r,validationResult:c,matchingSchemas:f}}return m.length>1&&(m.length>1||0===p.length)&&h&&r.problems.push({location:{offset:e.offset,length:1},severity:$.Warning,message:Qf("oneOfWarning","Matches multiple schemas when only one must validate."),source:Dd(t,n),schemaUri:wd(t,n)}),null!==g&&(r.merge(g.validationResult),r.propertiesMatches+=g.validationResult.propertiesMatches,r.propertiesValueMatches+=g.validationResult.propertiesValueMatches,r.enumValueMatch=r.enumValueMatch||g.validationResult.enumValueMatch,(null==(f=g.validationResult.enumValues)?void 0:f.length)&&(r.enumValues=(r.enumValues||[]).concat(g.validationResult.enumValues)),i.merge(g.matchingSchemas)),d.length};Array.isArray(t.anyOf)&&f(t.anyOf,!1),Array.isArray(t.oneOf)&&f(t.oneOf,!0);const d=(t,n)=>{const a=new md(o),l=i.newSub();vd(e,hd(t),n,a,l,s),r.merge(a),r.propertiesMatches+=a.propertiesMatches,r.propertiesValueMatches+=a.propertiesValueMatches,i.merge(l)},m=hd(t.if);if(m&&((n,r,a,l)=>{const u=hd(n),c=new md(o),h=i.newSub();vd(e,u,r,c,h,s),i.merge(h);const{filePatternAssociation:f}=u;f&&(new Hd(f).matchesPattern(s.uri)||c.problems.push({location:{offset:e.offset,length:e.length},severity:$.Warning,message:Qf("ifFilePatternAssociation",`filePatternAssociation '${f}' does not match with doc uri '${s.uri}'.`),source:Dd(t,r),schemaUri:wd(t,r)})),c.hasProblems()?l&&d(l,r):a&&d(a,r)})(m,t,hd(t.then),hd(t.else)),Array.isArray(t.enum)){const i=pd(e);let s=!1;for(const n of t.enum)if(i===n||Ed(a,e,i,n)){s=!0;break}r.enumValues=t.enum,r.enumValueMatch=s,s||r.problems.push({location:{offset:e.offset,length:e.length},severity:$.Warning,code:Rh.EnumValueMismatch,message:t.errorMessage||Qf("enumWarning","Value is not accepted. Valid values: {0}.",t.enum.map((e=>JSON.stringify(e))).join(", ")),source:Dd(t,n),schemaUri:wd(t,n),data:{values:t.enum}})}if(Ef(t.const)){const i=pd(e);wf(i,t.const)||Ed(a,e,i,t.const)?r.enumValueMatch=!0:(r.problems.push({location:{offset:e.offset,length:e.length},severity:$.Warning,code:Rh.EnumValueMismatch,problemType:Yf.constWarning,message:t.errorMessage||Cd(Yf.constWarning,[JSON.stringify(t.const)]),source:Dd(t,n),schemaUri:wd(t,n),problemArgs:[JSON.stringify(t.const)],data:{values:[t.const]}}),r.enumValueMatch=!1),r.enumValues=[t.const]}t.deprecationMessage&&e.parent&&r.problems.push({location:{offset:e.parent.offset,length:e.parent.length},severity:$.Warning,message:t.deprecationMessage,source:Dd(t,n),schemaUri:wd(t,n)})}(),i.add({node:e,schema:t})}function l(e,t,n,r){const i=e.compareKubernetes(t.validationResult);return i>0?t={schema:n,validationResult:e,matchingSchemas:r}:0===i&&(t.matchingSchemas.merge(r),t.validationResult.mergeEnumValues(e)),t}function u(e,t,n,r,i,s){if(t||n.hasProblems()||r.validationResult.hasProblems()){const o=n.compareGeneric(r.validationResult);o>0||0===o&&t&&"object"===r.schema.type&&"null"!==e.type&&e.type!==r.schema.type?r={schema:i,validationResult:n,matchingSchemas:s}:0!==o&&(null!==e.value&&"null"!==e.type||0!==e.length)||function(e,t,n){e.matchingSchemas.merge(t),e.validationResult.mergeEnumValues(n),e.validationResult.mergeWarningGeneric(n,[Yf.missingRequiredPropWarning,Yf.typeMismatchWarning,Yf.constWarning])}(r,s,n)}else r.matchingSchemas.merge(s),r.validationResult.propertiesMatches+=n.propertiesMatches,r.validationResult.propertiesValueMatches+=n.propertiesValueMatches;return r}}function Dd(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 i=null!=(n=e.url)?n:t.url;if(i){const e=E.parse(i);"file"===e.scheme&&(r=e.fsPath),r=e.toString()}}if(r)return`${ed}${r}`}return Zf}function wd(e,t){var n;const r=null!=(n=e.url)?n:t.url;return r?[r]:[]}function Cd(e,t){return Qf(e,nd[e],t.join(" | "))}function Ed(e,t,n,r){return!!e&&(!(null!==n||0!==t.length)||Af(n)&&Af(r)&&r.startsWith(n))}var Sd=0,Ad=new Set;function _d(e,t,n,r){if(e||(Sd=0),!t)return null;if(ut(t))return function(e,t,n,r){let i;i=e.flow&&!e.range?function(e){let t=Number.MAX_SAFE_INTEGER,n=0;for(const r of e.items)ct(r)&&(mt(r.key)&&r.key.range&&r.key.range[0]<=t&&(t=r.key.range[0]),mt(r.value)&&r.value.range&&r.value.range[2]>=n&&(n=r.value.range[2]));return[t,n,n]}(e):e.range;const s=new cd(t,e,...Nd(i,r));for(const t of e.items)ct(t)&&s.properties.push(_d(s,t,n,r));return s}(t,e,n,r);if(ct(t))return function(e,t,n,r){const i=e.key,s=e.value,o=i.range[0];let a=i.range[1],l=i.range[2];s&&(a=s.range[1],l=s.range[2]);const u=new ud(t,e,...Nd([o,a,l],r));if(at(i)){const e=new ld(t,i,...kd(i.range));e.value=i.source,u.keyNode=e}else u.keyNode=_d(u,i,n,r);return u.valueNode=_d(u,s,n,r),u}(t,e,n,r);if(ft(t))return function(e,t,n,r){const i=new od(t,e,...kd(e.range));for(const t of e.items)if(mt(t)){const e=_d(i,t,n,r);e&&i.children.push(e)}return i}(t,e,n,r);if(ht(t))return function(e,t){if(null===e.value)return new id(t,e,...kd(e.range));switch(typeof e.value){case"string":{const n=new ld(t,e,...kd(e.range));return n.value=e.value,n}case"boolean":return new sd(t,e,e.value,e.source,...kd(e.range));case"number":{const n=new ad(t,e,...kd(e.range));return n.value=e.value,n.isInteger=Number.isInteger(n.value),n}default:{const n=new ld(t,e,...kd(e.range));return n.value=e.source,n}}}(t,e);if(at(t)&&!Ad.has(t)&&Sd<1e3){Ad.add(t);const i=function(e,t,n,r){Sd++;const i=e.resolve(n);if(i)return _d(t,i,n,r);{const n=new ld(t,e,...kd(e.range));return n.value=e.source,n}}(t,e,n,r);return Ad.delete(t),i}}function kd(e){return[e[0],e[1]-e[0]]}function Nd(e,t){const n=t.linePos(e[0]),r=t.linePos(e[1]),i=[e[0],e[1]-e[0]];return n.line===r.line||t.lineStarts.length===r.line&&1!==r.col||i[1]--,i}function Ld(e){return void 0!==e.start}function xd(e,t,n){let r=n(t,e);if("symbol"==typeof r)return r;for(const i of["key","value"]){const s=t[i];if(s&&"items"in s){for(let t=0;t<s.items.length;++t){const r=xd(Object.freeze(e.concat([[i,t]])),s.items[t],n);if("number"==typeof r)t=r-1;else{if(r===bt.BREAK)return bt.BREAK;r===bt.REMOVE&&(s.items.splice(t,1),t-=1)}}"function"==typeof r&&"key"===i&&(r=r(t,e))}}const i=t.sep;if(i)for(let t=0;t<i.length;++t){const r=xd(Object.freeze(e),i[t],n);if("number"==typeof r)t=r-1;else{if(r===bt.BREAK)return bt.BREAK;r===bt.REMOVE&&(i.items.splice(t,1),t-=1)}}return"function"==typeof r?r(t,e):r}var Fd=class e extends bd{constructor(e){super(null,[]),this.lineCounter=e}clone(){const t=new e(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("\n").forEach((e=>this._lineComments.push(`#${e}`))),bt(this.internalDocument,((e,t)=>{(null==t?void 0:t.commentBefore)&&(null==t?void 0:t.commentBefore.split("\n")).forEach((e=>this._lineComments.push(`#${e}`))),(null==t?void 0:t.comment)&&this._lineComments.push(`#${t.comment}`)})),this._internalDocument.comment&&this._lineComments.push(`#${this._internalDocument.comment}`)}updateFromInternalDocument(){this.root=_d(null,this._internalDocument.contents,this._internalDocument,this.lineCounter)}set internalDocument(e){this._internalDocument=e,this.updateFromInternalDocument()}get internalDocument(){return this._internalDocument}get lineComments(){return this._lineComments||this.collectLineComments(),this._lineComments}set lineComments(e){this._lineComments=e}get errors(){return this.internalDocument.errors.map(Td)}get warnings(){return this.internalDocument.warnings.map(Td)}getNodeFromPosition(e,t,n){const r=t.getPosition(e),i=t.getLineContent(r.line);if(0===i.trim().length)return[this.findClosestNode(e,t,n),!0];const s=i.substring(r.character).match(/^([ ]+)\n?$/),o=!!s,a=null==s?void 0:s[1].length;let l;return bt(this.internalDocument,((t,n)=>{if(!n)return;const r=n.range;return r?r[0]<=e&&r[1]>=e||o&&e+a===r[2]&&ht(n)&&null===n.value?void(l=n):bt.SKIP:void 0})),[l,!1]}findClosestNode(e,t,n){let r,i=this.internalDocument.range[2],s=this.internalDocument.range[0];bt(this.internalDocument,((t,n)=>{if(!n)return;const o=n.range;if(!o)return;const a=o[1]-e;s<=o[0]&&a<=0&&Math.abs(a)<=i&&(i=Math.abs(a),s=o[0],r=n)}));const o=t.getPosition(e),a=function(e,t){if(e.length<t)return 0;for(let n=0;n<t;n++){const t=e.charCodeAt(n);if(32!==t&&9!==t)return n}return t}(t.getLineContent(o.line),o.character);return ht(r)&&null===r.value||a===o.character&&(r=this.getProperParentByIndentation(a,r,t,"",n)),r}getProperParentByIndentation(e,t,n,r,i,s){if(!t)return this.internalDocument.contents;if(i=i||2,mt(t)&&t.range){const o=n.getPosition(t.range[0]),a=n.getLineContent(o.line);if((r=""===r?a.trim():r).startsWith("-")&&e===i&&r===a.trim()&&(o.character+=e),o.character>e&&o.character>0){const o=this.getParent(t);if(o)return this.getProperParentByIndentation(e,o,n,r,i,s)}else{if(!(o.character<e))return t;{const e=this.getParent(t);if(ct(e)&&mt(e.value))return e.value;if(ct(s)&&mt(s.value))return s.value}}}else if(ct(t)){s=t;const o=this.getParent(t);return this.getProperParentByIndentation(e,o,n,r,i,s)}return t}getParent(e){return function(e,t){let n;if(bt(e,((e,r,i)=>{if(r===t)return n=i[i.length-1],bt.BREAK})),!lt(n))return n}(this.internalDocument,e)}},Od=class{constructor(e,t){this.documents=e,this.tokens=t,this.errors=[],this.warnings=[]}},Md=new class{constructor(){this.cache=new Map}getYamlDocument(e,t,n=!1){return this.ensureCache(e,null!=t?t:$d,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 Od([],[]),parserOptions:$d});const i=this.cache.get(r);if(i.version!==e.version||t.customTags&&!zf(i.parserOptions.customTags,t.customTags)){let r=e.getText();n&&!/\S/.test(r)&&(r=`{${r}}`);const s=function(e,t=$d,n){var r;const i={strict:!1,customTags:Pd(t.customTags),version:null!=(r=t.yamlVersion)?r:$d.yamlVersion,keepSourceTokens:!0},s=new zr(i),o=new ci;let a=!1;if(n){const t=new Bd(n),r=t.getPosition(e.length);a=0===t.getLineContent(r.line).trim().length}const l=(a?new yi:new yi(o.addNewLine)).parse(e),u=Array.from(l),c=s.compose(u,!0,e.length),h=Array.from(c,(e=>function(e,t){const n=new Fd(t);return n.internalDocument=e,n}(e,o)));return new Od(h,u)}(r,t,e);i.document=s,i.version=e.version,i.parserOptions=t}}};function Td(e){return{message:e.message,location:{start:e.pos[0],end:e.pos[1],toLineEnd:!0},severity:1,code:Rh.Undefined}}var Id=class{constructor(e,t){this.tag=e,this.type=t}get collection(){return"mapping"===this.type?"map":"sequence"===this.type?"seq":void 0}resolve(e){return ut(e)&&"mapping"===this.type||ft(e)&&"sequence"===this.type||"string"==typeof e&&"scalar"===this.type?e:void 0}},Rd=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 Pd(e){const t=[],n=Hf(e);for(const e of n){const n=e.split(" "),r=n[0],i=n[1]&&n[1].toLowerCase()||"scalar";t.push(new Id(r,i))}return t.push(new Rd),t}var Bd=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(x.create(e-1,t,e-1,t+1)).charCodeAt(0)}getText(e){return this.doc.getText(e)}getPosition(e){return this.doc.positionAt(e)}},$d={customTags:[],yamlVersion:"1.2"};function jd(e){const t=e.match(/^#\s+yaml-language-server\s*:/g);return null!==t&&1===t.length}var Vd,Wd,qd=new class{compile(){return()=>!0}},Kd=Yh(),Ud=qd.compile(void 0);(Wd=Vd||(Vd={}))[Wd.delete=0]="delete",Wd[Wd.add=1]="add",Wd[Wd.deleteAll=2]="deleteAll";var Hd=class{constructor(e){try{this.patternRegExp=new RegExp(function(e){return e.replace(/[-\\{}+?|^$.,[\]()#\s]/g,"\\$&").replace(/[*]/g,".*")}(e)+"$")}catch(e){this.patternRegExp=null}this.schemas=[]}addSchema(e){this.schemas.push(e)}matchesPattern(e){return this.patternRegExp&&this.patternRegExp.test(e)}getSchemas(){return this.schemas}},zd=class extends pf{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 i={uri:r,fromStore:!1,usedForCurrentFile:!1};if(this.schemaUriToNameAndDescription.has(r)){const{name:e,description:t,versions:n}=this.schemaUriToNameAndDescription.get(r);i.name=e,i.description=t,i.fromStore=!0,i.versions=n}e.push(i)}return e}async resolveSchemaContent(e,t,n){const r=e.errors.slice(0);let i=e.schema;const s=this.contextService;if(!Ud(i)){const n=[];for(const e of Ud.errors)n.push(`${e.instancePath} : ${e.message}`);r.push(`Schema '${Nf(e.schema,t)}' is not valid:\n${n.join("\n")}`)}const o=(e,t,n,i)=>{const s=((e,t)=>{if(!t)return e;let n=e;return"/"===t[0]&&(t=t.substr(1)),t.split("/").some((e=>(n=n[e],!n))),n})(t,i);if(s)for(const t in s)Object.prototype.hasOwnProperty.call(s,t)&&!Object.prototype.hasOwnProperty.call(e,t)&&(e[t]=s[t]);else r.push(Kd("json.schema.invalidref","$ref '{0}' in '{1}' can not be resolved.",i,n))},a=(e,t,n,i,a)=>{s&&!/^\w+:\/\/.*/.test(t)&&(t=s.resolveRelativePath(t,i)),t=this.normalizeId(t);const u=this.getOrAddSchemaHandle(t);return u.getUnresolvedSchema().then((i=>{if(a[t]=!0,i.errors.length){const e=n?t+"#"+n:t;r.push(Kd("json.schema.problemloadingref","Problems loading reference '{0}': {1}",e,i.errors[0]))}return o(e,i.schema,t,n),e.url=t,l(e,i.schema,t,u.dependencies)}))},l=async(e,t,n,r)=>{if(!e||"object"!=typeof e)return null;const s=[e],l=new Set,u=[],c=e=>{const i=new Set;for(;e.$ref;){const s=decodeURIComponent(e.$ref),l=s.split("#",2);if(e._$ref=e.$ref,delete e.$ref,l[0].length>0)return void u.push(a(e,l[0],l[1],n,r));i.has(s)||(o(e,t,n,l[1]),i.add(s))}((...e)=>{for(const t of e)"object"==typeof t&&s.push(t)})(e.items,e.additionalItems,e.additionalProperties,e.not,e.contains,e.propertyNames,e.if,e.then,e.else),((...e)=>{for(const t of e)if("object"==typeof t)for(const e in t){const n=t[e];"object"==typeof n&&s.push(n)}})(e.definitions,e.properties,e.patternProperties,e.dependencies),((...e)=>{for(const t of e)if(Array.isArray(t))for(const e of t)"object"==typeof e&&s.push(e)})(e.anyOf,e.allOf,e.oneOf,e.items,e.schemaSequence)};if(n.indexOf("#")>0){const e=n.split("#",2);if(e[0].length>0&&e[1].length>0){const t={};await a(t,e[0],e[1],n,r);for(const e in i)"required"!==e&&Object.prototype.hasOwnProperty.call(i,e)&&!Object.prototype.hasOwnProperty.call(t,e)&&(t[e]=i[e]);i=t}}for(;s.length;){const e=s.pop();l.has(e)||(l.add(e),c(e))}return Promise.all(u)};return await l(i,i,t,n),new mf(i,r)}getSchemaForResource(e,t){const n=n=>{const r=super.createCombinedSchema(e,n);return r.getResolvedSchema().then((e=>(e.schema&&"object"==typeof e.schema&&(e.schema.url=r.url),e.schema&&e.schema.schemaSequence&&e.schema.schemaSequence[t.currentDocIndex]?new mf(e.schema.schemaSequence[t.currentDocIndex]):e)))},r=()=>{const t=Object.create(null),r=[];for(const n of this.filePatternAssociations)if(n.matchesPattern(e))for(const e of n.getURIs())t[e]||(r.push(e),t[e]=!0);if(r.length>0){const e=this.highestPrioritySchemas(r);return n(e)}return Promise.resolve(null)},i=(()=>{let n=function(e){if(e instanceof Fd){const t=e.lineComments.find((e=>jd(e)));if(null!=t){const e=t.match(/\$schema=\S+/g);if(null!==e&&e.length>=1)return e.length>=2&&console.log("Several $schema attributes have been found on the yaml-language-server modeline. The first one will be picked."),e[0].substring(8)}}}(t);if(void 0!==n){if(!n.startsWith("file:")&&!n.startsWith("http")){let t="";if(n.indexOf("#")>0){const e=n.split("#",2);n=e[0],t=e[1]}if(vi.isAbsolute(n))n=E.file(n).toString();else{const t=E.parse(e);n=E.file(vi.resolve(vi.parse(t.fsPath).dir,n)).toString()}t.length>0&&(n+="#"+t)}return n}})();return i?n([i]):this.customSchemaProvider?this.customSchemaProvider(e).then((e=>Array.isArray(e)?0===e.length?r():Promise.all(e.map((e=>this.resolveCustomSchema(e,t)))).then((e=>({errors:[],schema:{allOf:e.map((e=>e.schema))}})),(()=>r())):e?this.resolveCustomSchema(e,t):r())).then((e=>e),(()=>r())):r()}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((e=>{(this.schemaPriorityMapping.get(e)||[0]).forEach((r=>{r>t&&(t=r);let i=n.get(r);i?(i=i.concat(e),n.set(r,i)):n.set(r,[e])}))})),n.get(t)||[]}async resolveCustomSchema(e,t){const n=await this.loadSchema(e),r=await this.resolveSchemaContent(n,e,[]);return r.schema&&"object"==typeof r.schema&&(r.schema.url=e),r.schema&&r.schema.schemaSequence&&r.schema.schemaSequence[t.currentDocIndex]?new mf(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(Mm.Settings)),Promise.resolve(void 0)}async deleteSchemas(e){return e.schemas.forEach((e=>{this.deleteSchema(e)})),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);"object"==typeof n&&(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);"object"==typeof n&&delete n[e.key],await this.saveSchema(e.schema,t.schema)}}resolveJSONSchemaToSection(e,t){const n=t.split("/");let r=e;for(const e of n)""!==e&&(this.resolveNext(r,e),r=r[e]);return r}resolveNext(e,t){if(Array.isArray(e)&&isNaN(t))throw new Error("Expected a number after the array object");if("object"==typeof e&&"string"!=typeof t)throw new Error("Expected a string after the object")}normalizeId(e){try{return E.parse(e).toString()}catch(t){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&&void 0===n.schema)return t(e).then((t=>{if(!t){const t=Kd("json.schema.nocontent","Unable to load schema from '{0}': No content. {1}",Yd(e),n.errors);return new df({},[t])}try{const e=bi(t);return new df(e,[])}catch(t){const n=Kd("json.schema.invalidFormat","Unable to parse content from '{0}': {1}.",Yd(e),t);return new df({},[n])}}),(e=>{let t=e.toString();const n=e.toString().split("Error: ");return n.length>1&&(t=n[1]),new df({},[t])}));if(n.uri=e,this.schemaUriToNameAndDescription.has(e)){const{name:t,description:r,versions:i}=this.schemaUriToNameAndDescription.get(e);n.schema.title=null!=t?t:n.schema.title,n.schema.description=null!=r?r:n.schema.description,n.schema.versions=null!=i?i:n.schema.versions}return n}))}registerExternalSchema(e,t,n,r,i,s){return(r||i)&&this.schemaUriToNameAndDescription.set(e,{name:r,description:i,versions:s}),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 Yd(e){try{const t=E.parse(e);if("file"===t.scheme)return t.fsPath}catch(e){}return e}var Gd=class{constructor(e,t){this.telemetry=t,this.jsonDocumentSymbols=new $f(e),this.jsonDocumentSymbols.getKeyLabel=e=>{const t=e.keyNode.internalNode;let n="";return n=ut(t)?"{}":ft(t)?"[]":t.source,n}}findDocumentSymbols(e,t={resultLimit:Number.MAX_VALUE}){var n;let r=[];try{const n=Md.getYamlDocument(e);if(!n||0===n.documents.length)return null;for(const i of n.documents)i.root&&(r=r.concat(this.jsonDocumentSymbols.findDocumentSymbols(e,i,t)))}catch(e){null==(n=this.telemetry)||n.sendError("yaml.documentSymbols.error",e)}return r}findHierarchicalDocumentSymbols(e,t={resultLimit:Number.MAX_VALUE}){var n;let r=[];try{const n=Md.getYamlDocument(e);if(!n||0===n.documents.length)return null;for(const i of n.documents)i.root&&(r=r.concat(this.jsonDocumentSymbols.findDocumentSymbols2(e,i,t)))}catch(e){null==(n=this.telemetry)||n.sendError("yaml.hierarchicalDocumentSymbols.error",e)}return r}};function Qd(e,t){for(const n of e)n.isKubernetes=t}var Jd=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 r=Md.getYamlDocument(e),i=Uf(e.offsetAt(t),r);if(null===i)return Promise.resolve(void 0);Qd(r.documents,n);const s=r.documents.indexOf(i);return i.currentDocIndex=s,this.getHover(e,t,i)}catch(e){null==(r=this.telemetry)||r.sendError("yaml.hover.error",e)}}getHover(e,t,n){const r=e.offsetAt(t);let i=n.getNodeFromOffset(r);if(!i||("object"===i.type||"array"===i.type)&&r>i.offset+1&&r<i.offset+i.length-1)return Promise.resolve(null);const s=i;if("string"===i.type){const e=i.parent;if(e&&"property"===e.type&&e.keyNode===i&&(i=e.valueNode,!i))return Promise.resolve(null)}const o=x.create(e.positionAt(s.offset),e.positionAt(s.offset+s.length)),a=e=>e.replace(/\s\|\|\s*$/,"");return this.schemaService.getSchemaForResource(e.uri,n).then((e=>{if(e&&i&&!e.errors.length){const r=n.getMatchingSchemas(e.schema,i.offset);let s,l,u=[];const c=[],h=[];r.every((e=>((e.node===i||"property"===i.type&&i.valueNode===e.node)&&!e.inverted&&e.schema&&(s=s||e.schema.title||e.schema.closestTitle,l=l||e.schema.markdownDescription||this.toMarkdown(e.schema.description),e.schema.enum&&(u=e.schema.markdownEnumDescriptions?e.schema.markdownEnumDescriptions:e.schema.enumDescriptions?e.schema.enumDescriptions.map(this.toMarkdown,this):[],e.schema.enum.forEach(((e,t)=>{"string"!=typeof e&&(e=JSON.stringify(e)),h.some((t=>t.value===e))||h.push({value:e,description:u[t]})}))),e.schema.anyOf&&function(e,t,n){let r=0;for(const i of t)e===i.node&&i.schema!==n&&n.anyOf.forEach((e=>{i.schema.title===e.title&&i.schema.description===e.description&&i.schema.properties===e.properties&&r++}));return r===n.anyOf.length}(i,r,e.schema)&&(s="",l=e.schema.description?e.schema.description+"\n":"",e.schema.anyOf.forEach(((t,n)=>{s+=t.title||e.schema.closestTitle||"",l+=t.markdownDescription||this.toMarkdown(t.description)||"",n!==e.schema.anyOf.length-1&&(s+=" || ",l+=" || ")})),s=a(s),l=a(l)),e.schema.examples&&e.schema.examples.forEach((e=>{c.push(function(e,t,n){let r=null;if(Array.isArray(t)&&(r=t),"string"==typeof n&&(n=n.length),"number"==typeof n){const e=Math.round(n);n=e<1?void 0:e>8?{indent:8}:{indent:e}}if(void 0===e){const{keepUndefined:e}=n??t??{};if(!e)return}return lt(e)&&!r?e.toString(n):new wr(e,r,n).toString(n)}(e,null,2))}))),!0)));let f="";return s&&(f="#### "+this.toMarkdown(s)),l&&(f=Xd(f),f+=l),0!==h.length&&(f=Xd(f),f+="Allowed Values:\n\n",h.forEach((e=>{e.description?f+=`* \`${Zd(e.value)}\`: ${e.description}\n`:f+=`* \`${Zd(e.value)}\`\n`}))),0!==c.length&&c.forEach((e=>{f=Xd(f),f+="Example:\n\n",f+=`\`\`\`yaml\n${e}\`\`\`\n`})),f.length>0&&e.schema.url&&(f=Xd(f),f+=`Source: [${function(e){let t="JSON Schema";const n=e.url;if(n){const e=E.parse(n);t=vi.basename(e.fsPath)}else e.title&&(t=e.title);return t}(e.schema)}](${e.schema.url})`),t=f,{contents:{kind:re.Markdown,value:t},range:o}}var t;return null}))}toMarkdown(e){if(e){let t=e.replace(/([^\n\r])(\r?\n)([^\n\r])/gm,"$1\n\n$3");if(t=t.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&"),void 0!==this.indentation){const e=new RegExp(` {${this.indentation.length}}`,"g");t=t.replace(e,"&emsp;")}return t}}};function Xd(e){return 0===e.length?e:(e.endsWith("\n")||(e+="\n"),e+"\n")}function Zd(e){return-1!==e.indexOf("`")?"`` "+e+" ``":e}var em=class{validate(e,t){const n=[],r=new Set,i=new Set,s=new Map;bt(t.internalDocument,((e,n,o)=>{mt(n)&&((dt(n)||ht(n))&&n.anchor&&(r.add(n),s.set(n,o[o.length-1])),at(n)&&i.add(n.resolve(t.internalDocument)))}));for(const t of r)if(!i.has(t)){const r=this.getAnchorNode(s.get(t),t);if(r){const t=x.create(e.positionAt(r.offset),e.positionAt(r.offset+r.source.length)),i=W.create(t,`Unused anchor "${r.source}"`,$.Hint,0);i.tags=[j.Unnecessary],n.push(i)}}return n}getAnchorNode(e,t){if(e&&e.srcToken){const n=e.srcToken;if(Ld(n))return tm(n);if((e=>!!e&&"items"in e)(n))for(const e of n.items){if(t.srcToken!==e.value)continue;const n=tm(e);if(n)return n}}}};function tm(e){for(const t of e.start)if("anchor"===t.type)return t;if(e.sep&&Array.isArray(e.sep))for(const t of e.sep)if("anchor"===t.type)return t}var nm=class{constructor(e){this.forbidMapping="forbid"===e.flowMapping,this.forbidSequence="forbid"===e.flowSequence}validate(e,t){const n=[];return bt(t.internalDocument,((t,r)=>{var i,s;this.forbidMapping&&ut(r)&&"flow-collection"===(null==(i=r.srcToken)?void 0:i.type)&&n.push(W.create(this.getRangeOf(e,r.srcToken),"Flow style mapping is forbidden",$.Error,"flowMap")),this.forbidSequence&&ft(r)&&"flow-collection"===(null==(s=r.srcToken)?void 0:s.type)&&n.push(W.create(this.getRangeOf(e,r.srcToken),"Flow style sequence is forbidden",$.Error,"flowSeq"))})),n}getRangeOf(e,t){return x.create(e.positionAt(t.start.offset),e.positionAt(t.end.pop().offset))}},rm=class{validate(e,t){const n=[];return bt(t.internalDocument,((t,r)=>{if(ut(r))for(let t=1;t<r.items.length;t++)if(sm(r.items[t-1],r.items[t])>0){const i=im(e,r.items[t-1]);n.push(W.create(i,`Wrong ordering of key "${r.items[t-1].key}" in mapping`,$.Error,"mapKeyOrder"))}})),n}};function im(e,t){var n,r,i,s,o,a,l,u,c,h,f;const d=null!=(a=null!=(i=null==(n=null==t?void 0:t.srcToken.start[0])?void 0:n.offset)?i:null==(r=null==t?void 0:t.srcToken)?void 0:r.key.offset)?a:null==(o=null==(s=null==t?void 0:t.srcToken)?void 0:s.sep[0])?void 0:o.offset,m=(null==(l=null==t?void 0:t.srcToken)?void 0:l.value.offset)||(null==(c=null==(u=null==t?void 0:t.srcToken)?void 0:u.sep[0])?void 0:c.offset)||(null==(h=null==t?void 0:t.srcToken)?void 0:h.key.offset)||(null==(f=null==t?void 0:t.srcToken.start[t.srcToken.start.length-1])?void 0:f.offset);return x.create(e.positionAt(d),e.positionAt(m))}function sm(e,t){const n=String(t.key);return String(e.key).localeCompare(n)}var om,am=(e,t)=>{const n=t.positionAt(e.location.start),r={start:n,end:e.location.toLineEnd?L.create(n.line,new Bd(t).getLineLength(n.line)):t.positionAt(e.location.end)};return W.create(r,e.message,e.severity,e.code,Zf)},lm=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 Of(e,Promise)}configure(e){this.validators=[],e&&(this.validationEnabled=e.validate,this.customTags=e.customTags,this.disableAdditionalProperties=e.disableAdditionalProperties,this.yamlVersion=e.yamlVersion,"forbid"!==e.flowMapping&&"forbid"!==e.flowSequence||this.validators.push(new nm(e)),e.keyOrdering&&this.validators.push(new rm)),this.validators.push(new em)}async doValidation(e,t=!1){var n;if(!this.validationEnabled)return Promise.resolve([]);const r=[];try{const n=Md.getYamlDocument(e,{customTags:this.customTags,yamlVersion:this.yamlVersion},!0);let i=0;for(const s of n.documents){s.isKubernetes=t,s.currentDocIndex=i,s.disableAdditionalProperties=this.disableAdditionalProperties,s.uri=e.uri;const n=await this.jsonValidation.doValidation(e,s),o=s;o.errors.length>0&&r.push(...o.errors),o.warnings.length>0&&r.push(...o.warnings),r.push(...n),r.push(...this.runAdditionalValidators(e,s)),i++}}catch(e){null==(n=this.telemetry)||n.sendError("yaml.validation.error",e)}let i;const s=new Set,o=[];for(let n of r){if(t&&n.message===this.MATCHES_MULTIPLE)continue;if(Object.prototype.hasOwnProperty.call(n,"location")&&(n=am(n,e)),n.source||(n.source=Zf),i&&i.message===n.message&&i.range.end.line===n.range.start.line&&Math.abs(i.range.end.character-n.range.end.character)>=1){i.range.end=n.range.end;continue}i=n;const r=n.range.start.line+" "+n.range.start.character+" "+n.message;s.has(r)||(o.push(n),s.add(r))}return o}runAdditionalValidators(e,t){const n=[];for(const r of this.validators)n.push(...r.validate(e,t));return n}},um=class{constructor(){this.formatterEnabled=!0}configure(e){e&&(this.formatterEnabled=e.format)}async format(t,n={}){if(!this.formatterEnabled)return[];try{const r=t.getText(),i={parser:"yaml",plugins:[e],tabWidth:n.tabWidth||n.tabSize,singleQuote:n.singleQuote,bracketSpacing:n.bracketSpacing,proseWrap:"always"===n.proseWrap?"always":"never"===n.proseWrap?"never":"preserve",printWidth:n.printWidth},s=await Th(r,i);return[K.replace(x.create(L.create(0,0),t.positionAt(r.length)),s)]}catch(e){return[]}}},cm=class{constructor(e){this.telemetry=e}findLinks(e){var t;try{const t=Md.getYamlDocument(e),n=[];for(const r of t.documents)n.push(Vf(e,r));return Promise.all(n).then((e=>[].concat(...e)))}catch(e){null==(t=this.telemetry)||t.sendError("yaml.documentLink.error",e)}}};function hm(e,t){if(!e)return;const n=[],r=Md.getYamlDocument(e);for(const t of r.documents)r.documents.length>1&&n.push(fm(e,t.root)),t.visit((t=>{var r;if("object"===t.type&&"array"===(null==(r=t.parent)?void 0:r.type)&&n.push(fm(e,t)),"property"===t.type&&t.valueNode)switch(t.valueNode.type){case"array":case"object":n.push(fm(e,t));break;case"string":{const r=e.positionAt(t.offset),i=e.positionAt(t.valueNode.offset+t.valueNode.length);r.line!==i.line&&n.push(fm(e,t));break}default:return!0}return!0}));const i=t&&t.rangeLimit;return"number"!=typeof i||n.length<=i?n:(t&&t.onRangeLimitExceeded&&t.onRangeLimitExceeded(e.uri),n.slice(0,t.rangeLimit))}function fm(e,t){const n=e.positionAt(t.offset);let r=e.positionAt(t.offset+t.length);const i=e.getText(x.create(n,r)),s=i.length-i.trimRight().length;return s>0&&(r=e.positionAt(t.offset+t.length-s)),P.create(n.line,r.line,n.character,r.character)}(om||(om={})).JUMP_TO_SCHEMA="jumpToSchema";var dm=class{constructor(e){this.indentation=e}write(e){if("flow-collection"!==e.internalNode.srcToken.type)return null;const t=e.internalNode.srcToken,n="flow-map-start"===t.start.type?"block-map":"block-seq",r=e.parent.type,i={type:n,offset:t.offset,indent:t.indent,items:[]};for(const e of t.items)ei(e,(({key:e,sep:t,value:s})=>{if("block-map"===n){const n=[{type:"space",indent:0,offset:e.offset,source:this.indentation}];"property"===r&&n.unshift({type:"newline",indent:0,offset:e.offset,source:"\n"}),i.items.push({start:n,key:e,sep:t,value:s})}else"block-seq"===n&&i.items.push({start:[{type:"newline",indent:0,offset:s.offset,source:"\n"},{type:"space",indent:0,offset:s.offset,source:this.indentation},{type:"seq-item-ind",indent:0,offset:s.offset,source:"-"},{type:"space",indent:0,offset:s.offset,source:" "}],value:s});if("flow-collection"===s.type)return bt.SKIP}));return Yr(i)}},mm=structuredClone,pm=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.push(...this.getQuickFixForPropertyOrValueMismatch(t.context.diagnostics,e)),n}getJumpToSchemaActions(e){var t,n,r,i,s;if(null==(i=null==(r=null==(n=null==(t=this.clientCapabilities)?void 0:t.window)?void 0:n.showDocument)?void 0:r.support)||!i)return[];const o=new Map;for(const t of e){const e=(null==(s=t.data)?void 0:s.schemaUri)||[];for(const n of e)n&&(o.has(n)||o.set(n,[]),o.get(n).push(t))}const a=[];for(const e of o.keys()){const t=ke.create(`Jump to schema location (${vi.basename(e)})`,q.create("JumpToSchema",om.JUMP_TO_SCHEMA,e));t.diagnostics=o.get(e),a.push(t)}return a}getTabToSpaceConverting(e,t){const n=[],r=new Bd(t),i=[];for(const s of e)if("Using tabs can lead to unpredictable results"===s.message){if(i.includes(s.range.start.line))continue;const e=r.getLineContent(s.range.start.line);let o=0,a="";for(let t=s.range.start.character;t<=s.range.end.character&&"\t"===e.charAt(t);t++)o++,a+=this.indentation;i.push(s.range.start.line);let l=s.range;o!==s.range.end.character-s.range.start.character&&(l=x.create(s.range.start,L.create(s.range.end.line,s.range.start.character+o))),n.push(ke.create("Convert Tab to Spaces",ym(t.uri,[K.replace(l,a)]),Se.QuickFix))}if(0!==n.length){const e=[];for(let t=0;t<=r.getLineCount();t++){const n=r.getLineContent(t);let i=0,s="";for(let r=0;r<n.length;r++){const o=n.charAt(r);if(" "!==o&&"\t"!==o){0!==i&&(e.push(K.replace(x.create(t,r-i,t,r),s)),i=0,s="");break}" "!==o||0===i?"\t"===o&&(s+=this.indentation,i++):(e.push(K.replace(x.create(t,r-i,t,r),s)),i=0,s="")}0!==i&&e.push(K.replace(x.create(t,0,t,r.getLineLength(t)),s))}e.length>0&&n.push(ke.create("Convert all Tabs to Spaces",ym(t.uri,e),Se.QuickFix))}return n}getUnusedAnchorsDelete(e,t){const n=[],r=new Bd(t);for(const i of e)if(i.message.startsWith("Unused anchor")&&i.source===Zf){const e=x.create(i.range.start,i.range.end),s=r.getText(e),o=Df(r.getLineContent(e.end.line),e.end.character);e.end.character=o;const a=ke.create(`Delete unused anchor: ${s}`,ym(t.uri,[K.del(e)]),Se.QuickFix);a.diagnostics=[i],n.push(a)}return n}getConvertToBooleanActions(e,t){const n=[];for(const r of e)if('Incorrect type. Expected "boolean".'===r.message){const e=t.getText(r.range).toLocaleLowerCase();if('"true"'===e||'"false"'===e||"'true'"===e||"'false'"===e){const i=e.includes("true")?"true":"false";n.push(ke.create("Convert to boolean",ym(t.uri,[K.replace(r.range,i)]),Se.QuickFix))}}return n}getConvertToBlockStyleActions(e,t){const n=[];for(const r of e)if("flowMap"===r.code||"flowSeq"===r.code){const e=gm(t,r);if(ut(e.internalNode)||ft(e.internalNode)){const i=ut(e.internalNode)?"map":"sequence",s=new dm(this.indentation);n.push(ke.create(`Convert to block style ${i}`,ym(t.uri,[K.replace(r.range,s.write(e))]),Se.QuickFix))}}return n}getKeyOrderActions(e,t){var n,r,i,s,o,a,l,u,c,h,f,d,m,p;const g=[];for(const y of e)if("mapKeyOrder"===(null==y?void 0:y.code)){let e=gm(t,y);for(;e&&"object"!==e.type;)e=e.parent;if(e&&ut(e.internalNode)){const y=mm(e.internalNode);if(!("block-map"!==y.srcToken.type&&"flow-collection"!==y.srcToken.type||"block-map"!==e.internalNode.srcToken.type&&"flow-collection"!==e.internalNode.srcToken.type)){y.srcToken.items.sort(((e,t)=>e.key&&t.key&&ni(e.key)&&ni(t.key)?e.key.source.localeCompare(t.key.source):!e.key&&t.key?-1:e.key&&!t.key?1:e.key||t.key?void 0:0));for(let t=0;t<y.srcToken.items.length;t++){const g=y.srcToken.items[t],b=e.internalNode.srcToken.items[t];if(g.start=b.start,"alias"===(null==(n=g.value)?void 0:n.type)||"scalar"===(null==(r=g.value)?void 0:r.type)||"single-quoted-scalar"===(null==(i=g.value)?void 0:i.type)||"double-quoted-scalar"===(null==(s=g.value)?void 0:s.type)){const e=null!=(l=null==(a=null==(o=g.value)?void 0:o.end)?void 0:a.findIndex((e=>"newline"===e.type)))?l:-1;let t=null;"block-scalar"===(null==(u=b.value)?void 0:u.type)?t=null==(h=null==(c=b.value)?void 0:c.props)?void 0:h.find((e=>"newline"===e.type)):ni(b.value)&&(t=null==(d=null==(f=b.value)?void 0:f.end)?void 0:d.find((e=>"newline"===e.type))),t&&e<0&&(g.value.end=null!=(m=g.value.end)?m:[],g.value.end.push(t)),!t&&e>-1&&g.value.end.splice(e,1)}else"block-scalar"===(null==(p=g.value)?void 0:p.type)&&(g.value.props.find((e=>"newline"===e.type))||g.value.props.push({type:"newline",indent:0,offset:g.value.offset,source:"\n"}))}}const b=x.create(t.positionAt(e.offset),t.positionAt(e.offset+e.length));g.push(ke.create("Fix key order for this map",ym(t.uri,[K.replace(b,Yr(y.srcToken))]),Se.QuickFix))}}return g}getPossibleQuickFixValues(e){if("object"==typeof e.data)return e.code===Rh.EnumValueMismatch&&"values"in e.data&&Array.isArray(e.data.values)?e.data.values:e.code===Rh.PropertyExpected&&"properties"in e.data&&Array.isArray(e.data.properties)?e.data.properties:void 0}getQuickFixForPropertyOrValueMismatch(e,t){const n=[];for(const r of e){const e=this.getPossibleQuickFixValues(r);if(null==e?void 0:e.length)for(const i of e)n.push(ke.create(i,ym(t.uri,[K.replace(r.range,i)]),Se.QuickFix))}return n}};function gm(e,t){const n=Md.getYamlDocument(e),r=e.offsetAt(t.range.start);return Uf(r,n).getNodeFromOffset(r)}function ym(e,t){const n={};return n[e]=t,{changes:n}}function bm(e,t){const{position:n}=t,r=new Bd(e);if("\n"===t.ch){const e=r.getLineContent(n.line-1);if(e.trimRight().endsWith(":")){const i=r.getLineContent(n.line),s=i.substring(n.character,i.length),o=-1!==e.indexOf(" - ");if(0===s.trimRight().length){const r=n.character-(e.length-e.trimLeft().length);if(r===t.options.tabSize&&!o)return;const s=[];return i.length>0&&s.push(K.del(x.create(n,L.create(n.line,i.length-1)))),s.push(K.insert(n," ".repeat(t.options.tabSize+(o?2-r:0)))),s}if(o)return[K.insert(n," ".repeat(t.options.tabSize))]}if(e.trimRight().endsWith("|"))return[K.insert(n," ".repeat(t.options.tabSize))];if(e.includes(" - ")&&!e.includes(": "))return[K.insert(n,"- ")];if(e.includes(" - ")&&e.includes(": "))return[K.insert(n," ")]}}function vm(e){const t=new Map;return e?(e.url?e.url.startsWith("schemaservice://combinedSchema/")?Dm(e,t):t.set(e.url,e):Dm(e,t),t):t}function Dm(e,t){e.allOf&&wm(e.allOf,t),e.anyOf&&wm(e.anyOf,t),e.oneOf&&wm(e.oneOf,t)}function wm(e,t){for(const n of e)Sf(n)||!n.url||t.has(n.url)||t.set(n.url,n)}var Cm=class{constructor(e,t){this.schemaService=e,this.telemetry=t}async getCodeLens(e){var t;const n=[];try{const t=Md.getYamlDocument(e);let r=new Map;for(const n of t.documents){const t=await this.schemaService.getSchemaForResource(e.uri,n);(null==t?void 0:t.schema)&&(r=new Map([...vm(null==t?void 0:t.schema),...r]))}for(const e of r){const t=Ne.create(x.create(0,0,0,0));t.command={title:Nf(e[1],e[0]),command:om.JUMP_TO_SCHEMA,arguments:[e[0]]},n.push(t)}}catch(e){null==(t=this.telemetry)||t.sendError("yaml.codeLens.error",e)}return n}resolveCodeLens(e){return e}},Em=class{constructor(){this.spacesDiff=0,this.looksLikeAlignment=!1}};function Sm(e,t,n,r,i){let s;for(i.spacesDiff=0,i.looksLikeAlignment=!1,s=0;s<t&&s<r&&e.charCodeAt(s)===n.charCodeAt(s);s++);let o=0,a=0;for(let n=s;n<t;n++)32===e.charCodeAt(n)?o++:a++;let l=0,u=0;for(let e=s;e<r;e++)32===n.charCodeAt(e)?l++:u++;if(o>0&&a>0)return;if(l>0&&u>0)return;const c=Math.abs(a-u),h=Math.abs(o-l);if(0===c)return i.spacesDiff=h,void(h>0&&0<=l-1&&l-1<e.length&&l<n.length&&32!==n.charCodeAt(l)&&32===e.charCodeAt(l-1)&&44===e.charCodeAt(e.length-1)&&(i.looksLikeAlignment=!0));h%c==0&&(i.spacesDiff=h/c)}function Am(e,t,n,r,i=0,s=0){if(null!==e&&"object"==typeof e){const o=0===i&&r.shouldIndentWithTab||i>0?t+r.indentation:"";if(Array.isArray(e)){if(s+=1,0===e.length)return"";let a="";for(let l=0;l<e.length;l++){let u=e[l];"object"==typeof e[l]?(Array.isArray(e[l])||(u=_m(e[l],s)),a+=Am(u,t,n,r,i+=1,s)):a+="\n"+o+"- "+n(e[l])}return a}{const s=Object.keys(e);if(0===s.length)return"";let a=0===i&&r.newLineFirst||i>0?"\n":"",l=!0;for(let u=0;u<s.length;u++){const c=s[u];if(0===i&&r.existingProps.includes(c))continue;const h="object"==typeof e[c],f=h?":":": ",d=o+(h&&/^\s|-/.test(c)?r.indentation:""),m=l?"":"\n";0===i&&l&&!r.indentFirstObject?a+=m+t+c+f+Am(e[c],d,n,r,i+1,0):a+=m+o+c+f+Am(e[c],d,n,r,i+1,0),l=!1}return a}}return n(e)}function _m(e,t){const n={};for(let r=0;r<Object.keys(e).length;r++){const i=Object.keys(e)[r];0===r?n["- ".repeat(t)+i]=e[i]:n[" ".repeat(t)+i]=e[i]}return n}var km=Yh(),Nm=/[\\]+"/g,Lm=se.Class,xm="__",Fm=class{constructor(e,t={},n,r){this.schemaService=e,this.clientCapabilities=t,this.yamlDocument=n,this.telemetry=r,this.completionEnabled=!0,this.arrayPrefixIndentation="",this.isNumberExp=/^\d+$/}configure(e,t){var n;e&&(this.completionEnabled=e.completion),this.customTags=e.customTags,this.yamlVersion=e.yamlVersion,this.isSingleQuote=(null==(n=null==t?void 0:t.yamlFormatterSettings)?void 0:n.singleQuote)||!1,this.configuredIndentation=e.indentation,this.disableDefaultProperties=e.disableDefaultProperties,this.parentSkeletonSelectedFirst=e.parentSkeletonSelectedFirst}async doComplete(e,t,n=!1,r=!0){var i;const s=fe.create([],!1);if(!this.completionEnabled)return s;const o=this.yamlDocument.getYamlDocument(e,{customTags:this.customTags,yamlVersion:this.yamlVersion},!0),a=new Bd(e);if(this.configuredIndentation)this.indentation=this.configuredIndentation;else{const e=function(e,t,n){const r=Math.min(e.getLineCount(),1e4);let i=0,s=0,o="",a=0;const l=[2,4,6,8,3,5,7],u=[0,0,0,0,0,0,0,0,0],c=new Em;for(let t=1;t<=r;t++){const n=e.getLineLength(t),r=e.getLineContent(t),l=n<=65536;let h=!1,f=0,d=0,m=0;for(let i=0,s=n;i<s;i++){const n=l?r.charCodeAt(i):e.getLineCharCode(t,i);if(9===n)m++;else{if(32!==n){h=!0,f=i;break}d++}}if(!h)continue;if(m>0?i++:d>1&&s++,Sm(o,a,r,f,c),c.looksLikeAlignment&&2!==c.spacesDiff)continue;const p=c.spacesDiff;p<=8&&u[p]++,o=r,a=f}let h=n;i!==s&&(h=i<s);let f=2;if(h){let e=h?0:.1*r;l.forEach((t=>{const n=u[t];n>e&&(e=n,f=t)})),4===f&&u[4]>0&&u[2]>0&&u[2]>=u[4]/2&&(f=2)}return{insertSpaces:h,tabSize:f}}(a,0,!0);this.indentation=e.insertSpaces?" ".repeat(e.tabSize):"\t"}Qd(o.documents,n);for(const t of o.documents)t.uri=e.uri;const l=e.offsetAt(t),u=e.getText();if(":"===u.charAt(l-1))return Promise.resolve(s);let c=Uf(l,o);if(null===c)return Promise.resolve(s);c=c.clone();let[h,f]=c.getNodeFromPosition(l,a,this.indentation.length);const d=this.getCurrentWord(e,l);let m=a.getLineContent(t.line);const p=m.substring(t.character),g=/^[ ]+\n?$/.test(p);this.arrayPrefixIndentation="";let y=null;if(g){y=x.create(t,L.create(t.line,m.length));const e=0===m.trim().length,n=m.match(/^\s*(-)\s*$/);if(h&&ht(h)&&!e&&!n){const e=m.substring(0,t.character),n=e.match(/^[\s-]*([^:]+)?$/)||e.match(/:[ \t]((?!:[ \t]).*)$/);(null==n?void 0:n[1])&&(y=x.create(L.create(t.line,t.character-n[1].length),L.create(t.line,m.length)))}}else if(h&&ht(h)&&"null"===h.value){const t=e.positionAt(h.range[0]);t.character+=1;const n=e.positionAt(h.range[2]);n.character+=1,y=x.create(t,n)}else if(h&&ht(h)&&h.value){const t=e.positionAt(h.range[0]);y=x.create(t,e.positionAt(h.range[1]))}else if(h&&ht(h)&&null===h.value&&"-"===d)y=x.create(t,t),this.arrayPrefixIndentation=" ";else{let n=l-d.length;n>0&&'"'===u[n-1]&&n--,y=x.create(e.positionAt(n),t)}const b={},v={add:(e,t)=>{const n=!!e.parent;let r=e.label;if(!r)return void console.warn(`Ignoring CompletionItem without label: ${JSON.stringify(e)}`);if(Af(r)||(r=String(r)),r=r.replace(/[\n]/g,"↵"),r.length>60){const e=r.substr(0,57).trim()+"...";b[e]||(r=e)}if("regular expression"===e.label.toLowerCase()){const t=e.documentation.value.split(":");r=t.length>0?`${this.getQuote()}\\${JSON.parse(t[1])}${this.getQuote()}`:e.label,e.insertText=r,e.textEdit=K.replace(y,r)}else{let t=e.insertText.replace(/\${[0-9]+[:|](.*)}/g,((e,t)=>t)).replace(/\$([0-9]+)/g,"");const r=t.split(":");let i=r.length>1?r[1].trim():t;i&&/^(['\\"\\])$/.test(i)&&(i=`${this.getQuote()}\\${i}${this.getQuote()}`,t=r.length>1?r[0]+": "+i:i,e.insertText=t),e.insertText.endsWith("$1")&&!n&&(e.insertText=e.insertText.substr(0,e.insertText.length-2)),y&&y.start.line===y.end.line&&(e.textEdit=K.replace(y,e.insertText))}if(e.label=r,n)return void function(e){var t;if((null==(t=b[e.label])?void 0:t.label)===xm)return;const n=e.parent.schema,r=_f(n),i=n.markdownDescription||n.description;let o=s.items.find((e=>{var t;return(null==(t=e.parent)?void 0:t.schema)===n&&e.kind===Lm}));o&&o.parent.insertTexts.includes(e.insertText)||(o?o.parent.insertTexts.push(e.insertText):(o={...e,label:r,documentation:i,sortText:"_"+r,kind:Lm},o.label=o.label||e.label,o.parent.insertTexts=[e.insertText],s.items.push(o)))}(e);this.arrayPrefixIndentation&&this.updateCompletionText(e,this.arrayPrefixIndentation+e.insertText);const i=b[r],o=(null==i?void 0:i.label)!==xm&&(null==i?void 0:i.insertText)!==e.insertText;if(i){if(o){const n=this.mergeSimpleInsertTexts(r,i.insertText,e.insertText,t);n?this.updateCompletionText(i,n):(b[r]=e,s.items.push(e))}}else b[r]=e,s.items.push(e);i&&!i.documentation&&e.documentation&&(i.documentation=e.documentation)},error:e=>{var t;null==(t=this.telemetry)||t.sendError("yaml.completion.error",e)},log:e=>{console.log(e)},getNumberOfProposals:()=>s.items.length,result:s,proposed:b};this.customTags&&this.customTags.length>0&&this.getCustomTagValueCompletions(v),m.endsWith("\n")&&(m=m.substr(0,m.length-1));try{const n=await this.schemaService.getSchemaForResource(e.uri,c);if((!n||n.errors.length)&&0===t.line&&0===t.character&&!jd(m)){const e={kind:se.Text,label:"Inline schema",insertText:"# yaml-language-server: $schema=",insertTextFormat:oe.PlainText};s.items.push(e)}if(jd(m)||function(e,t){let n=!1;for(const r of e){if("document"===r.type)xd([],r,(e=>{var i;if(Ld(e)&&"comment"===(null==(i=e.value)?void 0:i.type)){if(r.offset<=t&&e.value.source.length+e.value.offset>=t)return n=!0,bt.BREAK}else if("comment"===e.type&&e.offset<=t&&e.offset+e.source.length>=t)return n=!0,bt.BREAK}));else if("comment"===r.type&&r.offset<=t&&r.source.length+r.offset>=t)return!0;if(n)break}return n}(o.tokens,l)){const e=m.indexOf("$schema=");return-1!==e&&e+8<=t.character&&this.schemaService.getAllSchemas().forEach((e=>{var t;const n={kind:se.Constant,label:null!=(t=e.name)?t:e.uri,detail:e.description,insertText:e.uri,insertTextFormat:oe.PlainText,insertTextMode:ue.asIs};s.items.push(n)})),s}if(!n||n.errors.length)return s;let i=null;if(!h)if(!c.internalDocument.contents||ht(c.internalDocument.contents)){const e=c.internalDocument.createNode({});e.range=[l,l+1,l+1],c.internalDocument.contents=e,c.updateFromInternalDocument(),h=e}else h=c.findClosestNode(l,a),f=!0;const p=h;if(h)if(0===m.length)h=c.internalDocument.contents;else{const n=c.getParent(h);if(n){if(ht(h)){if(h.value){if(ct(n)){if(n.value===h){if(m.trim().length>0&&m.indexOf(":")<0){const e=this.createTempObjNode(d,h,c),t=c.getParent(n);if(ft(c.internalDocument.contents)){const t=function(e,t){for(const[n,r]of e.items.entries())if(t===r)return n}(c.internalDocument.contents,n);"number"==typeof t&&(c.internalDocument.set(t,e),c.updateFromInternalDocument())}else t&&(ut(t)||ft(t))?(t.set(n.key,e),c.updateFromInternalDocument()):(c.internalDocument.set(n.key,e),c.updateFromInternalDocument());i=e.items[0],h=e}else if(0===m.trim().length){const e=c.getParent(n);e&&(h=e)}}else if(n.key===h){const e=c.getParent(n);i=n,e&&(h=e)}}else if(ft(n))if(m.trim().length>0){const e=this.createTempObjNode(d,h,c);n.delete(h),n.add(e),c.updateFromInternalDocument(),h=e}else h=n}else if(null===h.value)if(ct(n)){if(n.key===h)h=n;else if(mt(n.key)&&n.key.range){const r=c.getParent(n);if(f&&r&&ut(r)&&function(e){if(e.items.length>1)return!1;const t=e.items[0];return ht(t.key)&&ht(t.value)&&""===t.key.value&&!t.value.value}(r))h=r;else{const s=e.positionAt(n.key.range[0]);if(t.character>s.character&&t.line!==s.line){const e=this.createTempObjNode(d,h,c);r&&(ut(r)||ft(r))?(r.set(n.key,e),c.updateFromInternalDocument()):(c.internalDocument.set(n.key,e),c.updateFromInternalDocument()),i=e.items[0],h=e}else s.character===t.character&&r&&(h=r)}}}else if(ft(n))if("-"!==m.charAt(t.character-1)){const e=this.createTempObjNode(d,h,c);n.delete(h),n.add(e),c.updateFromInternalDocument(),h=e}else if("-"===m.charAt(t.character-1)){const e=this.createTempObjNode("",h,c);n.delete(h),n.add(e),c.updateFromInternalDocument(),h=e}else h=n}else if(ut(h)&&!f&&0===m.trim().length&&ft(n)){const e=a.getLineContent(t.line+1);a.getLineCount()!==t.line+1&&0!==e.trim().length||(h=n)}}else if(ht(h)){const e=this.createTempObjNode(d,h,c);c.internalDocument.contents=e,c.updateFromInternalDocument(),i=e.items[0],h=e}else if(ut(h))for(const e of h.items)mt(e.value)&&e.value.range&&e.value.range[0]===l+1&&(h=e.value);else if(ft(h)&&"-"!==m.charAt(t.character-1)){const e=this.createTempObjNode(d,h,c);e.items=[],c.updateFromInternalDocument();for(const t of h.items)ut(t)&&t.items.forEach((t=>{e.items.push(t)}));h=e}}if(h&&ut(h)){const e=h.items;for(const t of e)i&&i===t||ht(t.key)&&(b[t.key.value+""]=he.create(xm));this.addPropertyCompletions(n,c,h,p,"",v,a,y,r),!n&&d.length>0&&'"'!==u.charAt(l-d.length-1)&&v.add({kind:se.Property,label:d,insertText:this.getInsertTextForProperty(d,null,""),insertTextFormat:oe.Snippet})}const g={};this.getValueCompletions(n,c,h,l,e,v,g,r)}catch(e){null==(i=this.telemetry)||i.sendError("yaml.completion.error",e)}this.finalizeParentCompletion(s);const D=s.items.filter(((e,t,n)=>t===n.findIndex((t=>t.label===e.label&&t.insertText===e.insertText&&t.kind===e.kind))));return(null==D?void 0:D.length)>0&&(s.items=D),s}updateCompletionText(e,t){e.insertText=t,e.textEdit&&(e.textEdit.newText=t)}mergeSimpleInsertTexts(e,t,n,r){const i=e=>e.includes("\n"),s=e=>{const t=e.indexOf("\n");return t>0&&0===e.substring(t,e.length).trim().length};if(i(t)||i(n))return r&&s(t)&&!s(n)&&!n.startsWith("\n")?n:void 0;const o=this.getValuesFromInsertText(t),a=this.getValuesFromInsertText(n),l=Array.prototype.concat(o,a);return l.length?1===l.length?`${e}: \${1:${l[0]}}`:`${e}: \${1|${l.join(",")}|}`:void 0}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){e.items.forEach((e=>{if(this.isParentCompletionItem(e)){const t=e.parent.indent||"";let n=(e=>{let t=0;return e.map((e=>{const n=e.match(/\$([0-9]+)|\${[0-9]+:/g);if(!n)return e;const r=n.map((e=>+e.replace(/\${([0-9]+)[:|]/g,"$1").replace("$",""))).reduce(((e,t)=>t>e?t:e),0),i=e.replace(/\$([0-9]+)/g,((e,n)=>"$"+(+n+t))).replace(/\${([0-9]+)[:|]/g,((e,n)=>"${"+(+n+t)+":"));return t+=r,i}))})(e.parent.insertTexts).join(`\n${t}`);n.endsWith("$1")&&(n=n.substring(0,n.length-2)),e.insertText=this.arrayPrefixIndentation+n,e.textEdit&&(e.textEdit.newText=e.insertText);const r=n.replace(/\${[0-9]+[:|](.*)}/g,((e,t)=>t)).replace(/\$([0-9]+)/g,""),i=e.documentation?[e.documentation,"","----",""]:[];e.documentation={kind:re.Markdown,value:[...i,"```yaml",t+r,"```"].join("\n")},delete e.parent}}))}createTempObjNode(e,t,n){const r={};r[e]=null;const i=n.internalDocument.createNode(r);return i.range=t.range,i.items[0].key.range=t.range,i.items[0].value.range=t.range,i}addPropertyCompletions(e,t,n,r,i,s,o,a,l){var u,c,h;const f=t.getMatchingSchemas(e.schema,-1,null,l),d=o.getText(a),m=o.getLineContent(a.start.line),p=0===m.trim().length,g=-1!==m.indexOf(":"),y=0===m.trimLeft().indexOf("-"),b=t.getParent(n),v=f.find((e=>e.node.internalNode===r&&e.schema.properties)),D=f.filter((e=>e.schema.oneOf)).map((e=>e.schema.oneOf))[0];let w=!1;(null==D?void 0:D.length)<f.length&&(null==D||D.forEach(((e,t)=>{var n,r;(null==(n=f[t])?void 0:n.schema.oneOf)||(null==(r=f[t])?void 0:r.schema.properties)!==e.properties||(w=!0)})));for(const e of f){if((e.node.internalNode===n&&!v||e.node.internalNode===r&&!g||(null==(u=e.node.parent)?void 0:u.internalNode)===r&&!g)&&!e.inverted){this.collectDefaultSnippets(e.schema,i,s,{newLineFirst:!1,indentFirstObject:!1,shouldIndentWithTab:y});const t=e.schema.properties;if(t){const l=e.schema.maxProperties;if(void 0===l||void 0===n.items||n.items.length<l||n.items.length===l&&!p)for(const l in t)if(Object.prototype.hasOwnProperty.call(t,l)){const u=t[l];if("object"==typeof u&&!u.deprecationMessage&&!u.doNotSuggest){let t,f="";if(b&&ft(b)&&n.items.length<=1&&!p){const e=o.getText(),t=e.lastIndexOf("-",n.range[0]-1);if(t>=0){const r=a.end.character-a.start.character;f=" "+e.slice(t+1,n.range[1]-r)}}f+=this.arrayPrefixIndentation,"array"===u.type&&(t=n.items.find((e=>ht(e.key)&&e.key.range&&e.key.value===l&&ht(e.value)&&!e.value.value&&o.getPosition(e.key.range[2]).line===a.end.line-1)))&&t&&(Array.isArray(u.items)?this.addSchemaValueCompletions(u.items[0],i,s,{},"property"):"object"==typeof u.items&&"object"===u.items.type&&this.addArrayItemValueCompletion(u.items,i,s));let m=l;l.startsWith(d)&&g||(m=this.getInsertTextForProperty(l,u,i,f+this.indentation));const y=ht(r)&&null===r.value||ut(r)&&0===r.items.length,v=(null==(c=e.schema.required)?void 0:c.length)>0;this.parentSkeletonSelectedFirst&&y&&v||s.add({kind:se.Property,label:l,insertText:m,insertTextFormat:oe.Snippet,documentation:this.fromMarkup(u.markdownDescription)||u.description||""},w),(null==(h=e.schema.required)?void 0:h.includes(l))&&s.add({label:l,insertText:this.getInsertTextForProperty(l,u,i,f+this.indentation),insertTextFormat:oe.Snippet,documentation:this.fromMarkup(u.markdownDescription)||u.description||"",parent:{schema:e.schema,indent:f}})}}}if(b&&ft(b)&&Lf(e.schema)&&this.addSchemaValueCompletions(e.schema,i,s,{},"property",Array.isArray(b.items)),e.schema.propertyNames&&e.schema.additionalProperties&&"object"===e.schema.type){const t=hd(e.schema.propertyNames);if(!t.deprecationMessage&&!t.doNotSuggest){const e=t.title||"property";s.add({kind:se.Property,label:e,insertText:`\${1:${e}}: `,insertTextFormat:oe.Snippet,documentation:this.fromMarkup(t.markdownDescription)||t.description||""})}}}b&&e.node.internalNode===b&&e.schema.defaultSnippets&&(1===n.items.length?this.collectDefaultSnippets(e.schema,i,s,{newLineFirst:!1,indentFirstObject:!1,shouldIndentWithTab:!0},1):this.collectDefaultSnippets(e.schema,i,s,{newLineFirst:!1,indentFirstObject:!0,shouldIndentWithTab:!1},1))}}getValueCompletions(e,t,n,r,i,s,o,a){let l=null;if(n&&ht(n)&&(n=t.getParent(n)),n){if(ct(n)){const e=n.value;if(e&&e.range&&r>e.range[0]+e.range[2])return;l=ht(n.key)?n.key.value+"":null,n=t.getParent(n)}if(n&&(null!==l||ft(n))){const u="",c=t.getMatchingSchemas(e.schema,-1,null,a);for(const e of c)if(e.node.internalNode===n&&!e.inverted&&e.schema){if(e.schema.items&&(this.collectDefaultSnippets(e.schema,u,s,{newLineFirst:!1,indentFirstObject:!1,shouldIndentWithTab:!1}),ft(n)&&n.items))if(Array.isArray(e.schema.items)){const t=this.findItemAtOffset(n,i,r);t<e.schema.items.length&&this.addSchemaValueCompletions(e.schema.items[t],u,s,o,"value")}else"object"!=typeof e.schema.items||"object"!==e.schema.items.type&&!xf(e.schema.items)?this.addSchemaValueCompletions(e.schema.items,u,s,o,"value"):this.addSchemaValueCompletions(e.schema.items,u,s,o,"value",!0);if(e.schema.properties){const t=e.schema.properties[l];t&&this.addSchemaValueCompletions(t,u,s,o,"value")}e.schema.additionalProperties&&this.addSchemaValueCompletions(e.schema.additionalProperties,u,s,o,"value")}o.boolean&&(this.addBooleanValueCompletion(!0,u,s),this.addBooleanValueCompletion(!1,u,s)),o.null&&this.addNullValueCompletion(u,s)}}else this.addSchemaValueCompletions(e.schema,"",s,o,"value")}addArrayItemValueCompletion(e,t,n,r){const i=_f(e),s=`- ${this.getInsertTextForObject(e,t).insertText.trimLeft()}`,o=i?" type `"+i+"`":"",a=e.description?" ("+e.description+")":"",l=this.getDocumentationWithMarkdownText(`Create an item of an array${o}${a}`,s);n.add({kind:this.getSuggestionKind(e.type),label:"- (array item) "+(i||r),documentation:l,insertText:s,insertTextFormat:oe.Snippet})}getInsertTextForProperty(e,t,n,r=this.indentation){const i=this.getInsertTextForValue(e,"","string"),s=i+":";let o,a=0;if(t){let e=Array.isArray(t.type)?t.type[0]:t.type;if(e||(t.properties?e="object":t.items?e="array":t.anyOf&&(e="anyOf")),Array.isArray(t.defaultSnippets)){if(1===t.defaultSnippets.length){const e=t.defaultSnippets[0].body;Ef(e)&&(o=this.getInsertTextForSnippetValue(e,"",{newLineFirst:!0,indentFirstObject:!1,shouldIndentWithTab:!1},[],1),o.startsWith(" ")||o.startsWith("\n")||(o=" "+o))}a+=t.defaultSnippets.length}if(t.enum&&(o||1!==t.enum.length||(o=" "+this.getInsertTextForGuessedValue(t.enum[0],"",e)),a+=t.enum.length),t.const&&(o||(o=this.getInsertTextForGuessedValue(t.const,"",e),o=this.evaluateTab1Symbol(o),o=" "+o),a++),Ef(t.default)&&(o||(o=" "+this.getInsertTextForGuessedValue(t.default,"",e)),a++),Array.isArray(t.examples)&&t.examples.length&&(o||(o=" "+this.getInsertTextForGuessedValue(t.examples[0],"",e)),a+=t.examples.length),t.properties)return`${s}\n${this.getInsertTextForObject(t,n,r).insertText}`;if(t.items)return`${s}\n${r}- ${this.getInsertTextForArray(t.items,n,1,r).insertText}`;if(0===a)switch(e){case"boolean":case"string":case"anyOf":o=" $1";break;case"object":o=`\n${r}`;break;case"array":o=`\n${r}- `;break;case"number":case"integer":o=" ${1:0}";break;case"null":o=" ${1:null}";break;default:return i}}return(!o||a>1)&&(o=" $1"),s+o+n}getInsertTextForObject(e,t,n=this.indentation,r=1){let i="";return e.properties?(Object.keys(e.properties).forEach((s=>{const o=e.properties[s];let a=Array.isArray(o.type)?o.type[0]:o.type;if(a||(o.anyOf&&(a="anyOf"),o.properties&&(a="object"),o.items&&(a="array")),e.required&&e.required.indexOf(s)>-1)switch(a){case"boolean":case"string":case"number":case"integer":case"anyOf":{let e=o.default||o.const;e?("string"===a&&(e=this.convertToStringValue(e)),i+=`${n}${s}: \${${r++}:${e}}\n`):i+=`${n}${s}: $${r++}\n`;break}case"array":{const e=this.getInsertTextForArray(o.items,t,r++,n),a=e.insertText.split("\n");let l=e.insertText;if(a.length>1){for(let e=1;e<a.length;e++){const t=a[e];a[e]=` ${t}`}l=a.join("\n")}r=e.insertIndex,i+=`${n}${s}:\n${n}${this.indentation}- ${l}\n`}break;case"object":{const e=this.getInsertTextForObject(o,t,`${n}${this.indentation}`,r++);r=e.insertIndex,i+=`${n}${s}:\n${e.insertText}\n`}}else if(!this.disableDefaultProperties&&void 0!==o.default)switch(a){case"boolean":case"number":case"integer":i+=`${n}${"null"===s?this.getInsertTextForValue(s,"","string"):s}: \${${r++}:${o.default}}\n`;break;case"string":i+=`${n}${s}: \${${r++}:${this.convertToStringValue(o.default)}}\n`}})),0===i.trim().length&&(i=`${n}$${r++}\n`),i=i.trimRight()+t,{insertText:i,insertIndex:r}):(i=`${n}$${r++}\n`,{insertText:i,insertIndex:r})}getInsertTextForArray(e,t,n=1,r=this.indentation){let i="";if(!e)return i="$"+n++,{insertText:i,insertIndex:n};let s=Array.isArray(e.type)?e.type[0]:e.type;switch(s||(e.properties&&(s="object"),e.items&&(s="array")),e.type){case"boolean":i=`\${${n++}:false}`;break;case"number":case"integer":i=`\${${n++}:0}`;break;case"string":i=`\${${n++}}`;break;case"object":{const s=this.getInsertTextForObject(e,t,`${r} `,n++);i=s.insertText.trimLeft(),n=s.insertIndex}}return{insertText:i,insertIndex:n}}getInsertTextForGuessedValue(e,t,n){switch(typeof e){case"object":return null===e?"${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),"string"===n&&(r=this.convertToStringValue(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(null===e)return"null";switch(typeof e){case"object":{const n=this.indentation;return this.getInsertTemplateForValue(e,n,{index:1},t)}case"number":case"boolean":return this.getInsertTextForPlainText(e+t)}return"string"===(n=Array.isArray(n)?n[0]:n)&&(e=this.convertToStringValue(e)),this.getInsertTextForPlainText(e+t)}getInsertTemplateForValue(e,t,n,r){if(Array.isArray(e)){let r="\n";for(const i of e)r+=`${t}- \${${n.index++}:${i}}\n`;return r}if("object"==typeof e){let i="\n";for(const s in e)if(Object.prototype.hasOwnProperty.call(e,s)){const o=e[s];let a;i+=`${t}\${${n.index++}:${s}}:`,a="object"==typeof o?`${this.getInsertTemplateForValue(o,t+this.indentation,n,r)}`:` \${${n.index++}:${this.getInsertTextForPlainText(o+r)}}\n`,i+=`${a}`}return i}return this.getInsertTextForPlainText(e+r)}addSchemaValueCompletions(e,t,n,r,i,s){"object"==typeof e&&(this.addEnumValueCompletions(e,t,n,s),this.addDefaultValueCompletions(e,t,n),this.collectTypes(e,r),s&&"value"===i&&!xf(e)&&this.addArrayItemValueCompletion(e,t,n),Array.isArray(e.allOf)&&e.allOf.forEach((e=>this.addSchemaValueCompletions(e,t,n,r,i,s))),Array.isArray(e.anyOf)&&e.anyOf.forEach((e=>this.addSchemaValueCompletions(e,t,n,r,i,s))),Array.isArray(e.oneOf)&&e.oneOf.forEach((e=>this.addSchemaValueCompletions(e,t,n,r,i,s))))}collectTypes(e,t){if(Array.isArray(e.enum)||Ef(e.const))return;const n=e.type;Array.isArray(n)?n.forEach((function(e){return t[e]=!0})):n&&(t[n]=!0)}addDefaultValueCompletions(e,t,n,r=0){let i=!1;if(Ef(e.default)){let s,o=e.type,a=e.default;for(let e=r;e>0;e--)a=[a],o="array";s="object"==typeof a?"Default value":a.toString().replace(Nm,'"'),n.add({kind:this.getSuggestionKind(o),label:s,insertText:this.getInsertTextForValue(a,t,o),insertTextFormat:oe.Snippet,detail:km("json.suggest.default","Default value")}),i=!0}Array.isArray(e.examples)&&e.examples.forEach((s=>{let o=e.type,a=s;for(let e=r;e>0;e--)a=[a],o="array";n.add({kind:this.getSuggestionKind(o),label:this.getLabelForValue(a),insertText:this.getInsertTextForValue(a,t,o),insertTextFormat:oe.Snippet}),i=!0})),this.collectDefaultSnippets(e,t,n,{newLineFirst:!0,indentFirstObject:!0,shouldIndentWithTab:!0}),i||"object"!=typeof e.items||Array.isArray(e.items)||this.addDefaultValueCompletions(e.items,t,n,r+1)}addEnumValueCompletions(e,t,n,r){if(Ef(e.const)&&!r&&n.add({kind:this.getSuggestionKind(e.type),label:this.getLabelForValue(e.const),insertText:this.getInsertTextForValue(e.const,t,e.type),insertTextFormat:oe.Snippet,documentation:this.fromMarkup(e.markdownDescription)||e.description}),Array.isArray(e.enum))for(let r=0,i=e.enum.length;r<i;r++){const i=e.enum[r];let s=this.fromMarkup(e.markdownDescription)||e.description;e.markdownEnumDescriptions&&r<e.markdownEnumDescriptions.length&&this.doesSupportMarkdown()?s=this.fromMarkup(e.markdownEnumDescriptions[r]):e.enumDescriptions&&r<e.enumDescriptions.length&&(s=e.enumDescriptions[r]),n.add({kind:this.getSuggestionKind(e.type),label:this.getLabelForValue(i),insertText:this.getInsertTextForValue(i,t,e.type),insertTextFormat:oe.Snippet,documentation:s})}}getLabelForValue(e){return null===e?"null":Array.isArray(e)?JSON.stringify(e):""+e}collectDefaultSnippets(e,t,n,r,i=0){if(Array.isArray(e.defaultSnippets))for(const s of e.defaultSnippets){let o,a,l=e.type,u=s.body,c=s.label;if(Ef(u)){const a=s.type||e.type;if(0===i&&"array"===a){const e={};Object.keys(u).forEach(((t,n)=>{0!==n||t.startsWith("-")?e[` ${t}`]=u[t]:e[`- ${t}`]=u[t]})),u=e}const l=Object.keys(n.proposed).filter((e=>n.proposed[e].label===xm));if(o=this.getInsertTextForSnippetValue(u,t,r,l),""===o&&u)continue;c=c||this.getLabelForSnippetValue(u)}else if("string"==typeof s.bodyText){let e="",n="",r="";for(let t=i;t>0;t--)e=e+r+"[\n",n=n+"\n"+r+"]",r+=this.indentation,l="array";o=e+r+s.bodyText.split("\n").join("\n"+r)+n+t,c=c||o,a=o.replace(/[\n]/g,"")}n.add({kind:s.suggestionKind||this.getSuggestionKind(l),label:c,sortText:s.sortText||s.label,documentation:this.fromMarkup(s.markdownDescription)||s.description,insertText:o,insertTextFormat:oe.Snippet,filterText:a})}}getInsertTextForSnippetValue(e,t,n,r,i){return Am(e,"",(e=>{if("string"==typeof e){if("^"===e[0])return e.substr(1);if("true"===e||"false"===e)return`"${e}"`}return e}),{...n,indentation:this.indentation,existingProps:r},i)+t}addBooleanValueCompletion(e,t,n){n.add({kind:this.getSuggestionKind("boolean"),label:e?"true":"false",insertText:this.getInsertTextForValue(e,t,"boolean"),insertTextFormat:oe.Snippet,documentation:""})}addNullValueCompletion(e,t){t.add({kind:this.getSuggestionKind("null"),label:"null",insertText:"null"+e,insertTextFormat:oe.Snippet,documentation:""})}getLabelForSnippetValue(e){return JSON.stringify(e).replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1")}getCustomTagValueCompletions(e){Hf(this.customTags).forEach((t=>{const n=t.split(" ")[0];this.addCustomTagValueCompletion(e," ",n)}))}addCustomTagValueCompletion(e,t,n){e.add({kind:this.getSuggestionKind("string"),label:n,insertText:n+t,insertTextFormat:oe.Snippet,documentation:""})}getDocumentationWithMarkdownText(e,t){let n=e;return this.doesSupportMarkdown()&&(t=t.replace(/\${[0-9]+[:|](.*)}/g,((e,t)=>t)).replace(/\$([0-9]+)/g,""),n=this.fromMarkup(`${e}\n \`\`\`\n${t}\n\`\`\``)),n}getSuggestionKind(e){if(Array.isArray(e)){const t=e;e=t.length>0?t[0]:null}if(!e)return se.Value;switch(e){case"string":default:return se.Value;case"object":return se.Module;case"property":return se.Property}}getCurrentWord(e,t){let n=t-1;const r=e.getText();for(;n>=0&&-1===' \t\n\r\v":{[,]}'.indexOf(r.charAt(n));)n--;return r.substring(n+1,t)}fromMarkup(e){if(e&&this.doesSupportMarkdown())return{kind:re.Markdown,value:e}}doesSupportMarkdown(){if(void 0===this.supportsMarkdown){const e=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsMarkdown=e&&e.completionItem&&Array.isArray(e.completionItem.documentationFormat)&&-1!==e.completionItem.documentationFormat.indexOf(re.Markdown)}return this.supportsMarkdown}findItemAtOffset(e,t,n){for(let t=e.items.length-1;t>=0;t--){const r=e.items[t];if(mt(r)&&r.range){if(n>r.range[1])return t;if(n>=r.range[0])return t}}return 0}convertToStringValue(e){let t;if(t="string"==typeof e?["on","off","true","false","yes","no"].includes(e.toLowerCase())?`${this.getQuote()}${e}${this.getQuote()}`:e:""+e,0===t.length)return t;if("true"===t||"false"===t||"null"===t||this.isNumberExp.test(t))return`"${t}"`;-1!==t.indexOf('"')&&(t=t.replace(Nm,'"'));let n=!isNaN(parseInt(t))||"@"===t.charAt(0);if(!n){let e=t.indexOf(":",0);for(;e>0&&e<t.length;e=t.indexOf(":",e+1)){if(e===t.length-1){n=!0;break}const r=t.charAt(e+1);if("\t"===r||" "===r){n=!0;break}}}return n&&(t=`"${t}"`),t}getQuote(){return this.isSingleQuote?"'":'"'}evaluateTab1Symbol(e){return e.replace(/\$\{1:(.*)\}/,"$1")}isParentCompletionItem(e){return"parent"in e}};function Om(){}var Mm,Tm,Im=class{constructor(e){this.telemetry=e}getDefinition(e,t){var n;try{const n=Md.getYamlDocument(e),r=e.offsetAt(t.position),i=Uf(r,n);if(i){const[t]=i.getNodeFromPosition(r,new Bd(e));if(t&&at(t)){const n=t.resolve(i.internalDocument);if(n&&n.range){const t=x.create(e.positionAt(n.range[0]),e.positionAt(n.range[2])),r=x.create(e.positionAt(n.range[0]),e.positionAt(n.range[1]));return[O.create(e.uri,t,r)]}}}}catch(e){null==(n=this.telemetry)||n.sendError("yaml.definition.error",e)}}};function Rm(e,t){const n=Md.getYamlDocument(e);return t.map((t=>{const s=function(t){const s=e.offsetAt(t),o=[];for(const l of n.documents){let n,u;for(l.visit((e=>{const o=e.offset+e.length;if(o<s)return!0;if("\n"===i(o-1,o)&&o-1<s)return!0;let a=e.offset;if(a>s){const n=r(e,t);if(!n||n>s)return!0;a=n}return(!n||a>=n.offset)&&(n=e,u=a),!0}));n;){const t=null!=u?u:n.offset,r=n.offset+n.length,i={start:e.positionAt(t),end:e.positionAt(r)},l=(a=e.getText(i)).endsWith("\r\n")?a.substring(0,a.length-2):a.endsWith("\n")?a.substring(0,a.length-1):a,c=t+l.length;c>=s&&(i.end=e.positionAt(c));const h=(e,t)=>l.startsWith(e)&&l.endsWith(t||e);("string"===n.type&&(h("'")||h('"'))||"object"===n.type&&h("{","}")||"array"===n.type&&h("[","]"))&&o.push({start:e.positionAt(t+1),end:e.positionAt(r-1)}),o.push(i),n=n.parent,u=void 0}if(o.length>0)break}var a;return o.reverse()}(t);let o;for(const e of s)o=Fe.create(e,o);return null!=o?o:Fe.create({start:t,end:t})}));function r(t,n){var r;const s=e.positionAt(t.offset);if(s.line===n.line){if("array"===(null==(r=t.parent)?void 0:r.type)&&"- "===i(t.offset-2,t.offset))return t.offset-2;if("array"===t.type||"object"===t.type){const t={line:s.line,character:0};if(0===e.getText({start:t,end:s}).trim().length)return e.offsetAt(t)}}}function i(t,n){return e.getText({start:e.positionAt(t),end:e.positionAt(n)})}}async function Pm(e){const t=await fetch(e);if(t.ok)return t.text();throw new Error(`Schema request failed for ${e}`)}(Tm=Mm||(Mm={}))[Tm.SchemaStore=1]="SchemaStore",Tm[Tm.SchemaAssociation=2]="SchemaAssociation",Tm[Tm.Settings=3]="Settings";var Bm={send(){},sendError(e,t){console.error("monaco-yaml",e,t)},sendTrack(){}},$m={resolveRelativePath:(e,t)=>String(new URL(e,t))};self.onmessage=()=>{(0,r.n)(((e,n)=>Object.create(((e,{enableSchemaRequest:n,...r})=>{const i=function(e){const t=new zd(e.schemaRequestService,e.workspaceContext),n=new Fm(t,e.clientCapabilities,Md,e.telemetry),r=new Jd(t,e.telemetry),i=new Gd(t,e.telemetry),s=new lm(t,e.telemetry),o=new um,a=new pm(e.clientCapabilities),l=new Cm(t,e.telemetry),u=new cm(e.telemetry),c=new Im(e.telemetry);return new Om(t,e.yamlSettings,e.connection),{configure:i=>{t.clearExternalSchemas(),i.schemas&&(t.schemaPriorityMapping=new Map,i.schemas.forEach((e=>{const n=e.priority?e.priority:0;t.addSchemaPriority(e.uri,n),t.registerExternalSchema(e.uri,e.fileMatch,e.schema,e.name,e.description,e.versions)}))),s.configure(i),r.configure(i),n.configure(i,e.yamlSettings),o.configure(i),a.configure(i)},registerCustomSchemaProvider:e=>{t.registerCustomSchemaProvider(e)},findLinks:u.findLinks.bind(u),doComplete:n.doComplete.bind(n),doValidation:s.doValidation.bind(s),doHover:r.doHover.bind(r),findDocumentSymbols:i.findDocumentSymbols.bind(i),findDocumentSymbols2:i.findHierarchicalDocumentSymbols.bind(i),doDefinition:c.getDefinition.bind(c),resetSchema:e=>t.onResourceChange(e),doFormat:o.format.bind(o),doDocumentOnTypeFormatting:bm,addSchema:(e,n)=>t.saveSchema(e,n),deleteSchema:e=>t.deleteSchema(e),modifySchemaContent:e=>t.addContent(e),deleteSchemaContent:e=>t.deleteContent(e),deleteSchemasWhole:e=>t.deleteSchemas(e),getFoldingRanges:hm,getSelectionRanges:Rm,getCodeAction:(e,t)=>a.getCodeAction(e,t),getCodeLens:e=>l.getCodeLens(e),resolveCodeLens:e=>l.resolveCodeLens(e)}}({schemaRequestService:n?Pm:null,telemetry:Bm,workspaceContext:$m,clientCapabilities:{textDocument:{completion:{completionItem:{commitCharactersSupport:!0,documentationFormat:["markdown","plaintext"]}},moniker:{}}}}),s=n=>(r,...i)=>{const s=e.getMirrorModels();for(const e of s)if(String(e.uri)===r)return n(t.create(r,"yaml",e.version,e.getValue()),...i)};return i.configure(r),{doValidation:s((e=>i.doValidation(e,Boolean(r.isKubernetes)))),doComplete:s(((e,t)=>i.doComplete(e,t,Boolean(r.isKubernetes)))),doDefinition:s(((e,t)=>i.doDefinition(e,{position:t,textDocument:e}))),doDocumentOnTypeFormatting:s(((e,t,n,r)=>i.doDocumentOnTypeFormatting(e,{ch:n,options:r,position:t,textDocument:e}))),doHover:s(i.doHover),format:s(i.doFormat),resetSchema:i.resetSchema,findDocumentSymbols:s(i.findDocumentSymbols2),findLinks:s(i.findLinks),getCodeAction:s(((e,t,n)=>i.getCodeAction(e,{range:t,textDocument:e,context:n}))),getFoldingRanges:s((e=>i.getFoldingRanges(e,{lineFoldingOnly:!0}))),getSelectionRanges:s(i.getSelectionRanges)}})(e,n))))}})()})();