workerMain.js11606 lines · main
1/*!-----------------------------------------------------------
2 * Copyright (c) Microsoft Corporation. All rights reserved.
3 * Version: 0.37.0(20c3f8ff1e9176c954b34c052b2a84358d41a030)
4 * Released under the MIT license
5 * https://github.com/microsoft/vscode/blob/main/LICENSE.txt
6 *-----------------------------------------------------------*/ ;(function () {
7 var Y = [
8 'require',
9 'exports',
10 'vs/editor/common/core/range',
11 'vs/editor/common/core/position',
12 'vs/base/common/errors',
13 'vs/base/common/strings',
14 'vs/editor/common/core/offsetRange',
15 'vs/editor/common/diff/algorithms/diffAlgorithm',
16 'vs/base/common/platform',
17 'vs/base/common/event',
18 'vs/base/common/assert',
19 'vs/base/common/lifecycle',
20 'vs/base/common/objects',
21 'vs/base/common/uri',
22 'vs/base/common/functional',
23 'vs/base/common/iterator',
24 'vs/base/common/linkedList',
25 'vs/base/common/diff/diff',
26 'vs/base/common/types',
27 'vs/base/common/uint',
28 'vs/editor/common/core/characterClassifier',
29 'vs/editor/common/core/lineRange',
30 'vs/editor/common/core/wordHelper',
31 'vs/editor/common/diff/linesDiffComputer',
32 'vs/base/common/stopwatch',
33 'vs/nls',
34 'vs/base/common/arrays',
35 'vs/base/common/cache',
36 'vs/base/common/diff/diffChange',
37 'vs/base/common/keyCodes',
38 'vs/base/common/lazy',
39 'vs/base/common/hash',
40 'vs/base/common/codicons',
41 'vs/editor/common/core/selection',
42 'vs/editor/common/core/wordCharacterClassifier',
43 'vs/editor/common/diff/algorithms/joinSequenceDiffs',
44 'vs/editor/common/diff/algorithms/myersDiffAlgorithm',
45 'vs/editor/common/diff/algorithms/utils',
46 'vs/editor/common/diff/algorithms/dynamicProgrammingDiffing',
47 'vs/editor/common/diff/smartLinesDiffComputer',
48 'vs/editor/common/diff/standardLinesDiffComputer',
49 'vs/editor/common/diff/linesDiffComputers',
50 'vs/editor/common/languages/linkComputer',
51 'vs/editor/common/languages/supports/inplaceReplaceSupport',
52 'vs/editor/common/model',
53 'vs/editor/common/model/prefixSumComputer',
54 'vs/editor/common/model/mirrorTextModel',
55 'vs/editor/common/model/textModelSearch',
56 'vs/editor/common/services/unicodeTextModelHighlighter',
57 'vs/editor/common/standalone/standaloneEnums',
58 'vs/nls!vs/base/common/platform',
59 'vs/base/common/process',
60 'vs/base/common/path',
61 'vs/base/common/cancellation',
62 'vs/editor/common/tokenizationRegistry',
63 'vs/editor/common/languages',
64 'vs/editor/common/services/editorBaseApi',
65 'vs/nls!monaco-editor/base/common/worker/simpleWorker',
66 'vs/base/common/worker/simpleWorker',
67 'vs/editor/common/services/editorSimpleWorker',
68 ],
69 X = function (x) {
70 for (var n = [], R = 0, D = x.length; R < D; R++) n[R] = Y[x[R]]
71 return n
72 }
73 const Ee = this,
74 Re = typeof global == 'object' ? global : {}
75 var ae
76 ;(function (x) {
77 x.global = Ee
78 class n {
79 get isWindows() {
80 return this._detect(), this._isWindows
81 }
82 get isNode() {
83 return this._detect(), this._isNode
84 }
85 get isElectronRenderer() {
86 return this._detect(), this._isElectronRenderer
87 }
88 get isWebWorker() {
89 return this._detect(), this._isWebWorker
90 }
91 get isElectronNodeIntegrationWebWorker() {
92 return this._detect(), this._isElectronNodeIntegrationWebWorker
93 }
94 constructor() {
95 ;(this._detected = !1),
96 (this._isWindows = !1),
97 (this._isNode = !1),
98 (this._isElectronRenderer = !1),
99 (this._isWebWorker = !1),
100 (this._isElectronNodeIntegrationWebWorker = !1)
101 }
102 _detect() {
103 this._detected ||
104 ((this._detected = !0),
105 (this._isWindows = n._isWindows()),
106 (this._isNode = typeof module < 'u' && !!module.exports),
107 (this._isElectronRenderer =
108 typeof process < 'u' &&
109 typeof process.versions < 'u' &&
110 typeof process.versions.electron < 'u' &&
111 process.type === 'renderer'),
112 (this._isWebWorker = typeof x.global.importScripts == 'function'),
113 (this._isElectronNodeIntegrationWebWorker =
114 this._isWebWorker &&
115 typeof process < 'u' &&
116 typeof process.versions < 'u' &&
117 typeof process.versions.electron < 'u' &&
118 process.type === 'worker'))
119 }
120 static _isWindows() {
121 return typeof navigator < 'u' &&
122 navigator.userAgent &&
123 navigator.userAgent.indexOf('Windows') >= 0
124 ? !0
125 : typeof process < 'u'
126 ? process.platform === 'win32'
127 : !1
128 }
129 }
130 x.Environment = n
131 })(ae || (ae = {}))
132 var ae
133 ;(function (x) {
134 class n {
135 constructor(s, p, L) {
136 ;(this.type = s), (this.detail = p), (this.timestamp = L)
137 }
138 }
139 x.LoaderEvent = n
140 class R {
141 constructor(s) {
142 this._events = [new n(1, '', s)]
143 }
144 record(s, p) {
145 this._events.push(new n(s, p, x.Utilities.getHighPerformanceTimestamp()))
146 }
147 getEvents() {
148 return this._events
149 }
150 }
151 x.LoaderEventRecorder = R
152 class D {
153 record(s, p) {}
154 getEvents() {
155 return []
156 }
157 }
158 ;(D.INSTANCE = new D()), (x.NullLoaderEventRecorder = D)
159 })(ae || (ae = {}))
160 var ae
161 ;(function (x) {
162 class n {
163 static fileUriToFilePath(D, i) {
164 if (((i = decodeURI(i).replace(/%23/g, '#')), D)) {
165 if (/^file:\/\/\//.test(i)) return i.substr(8)
166 if (/^file:\/\//.test(i)) return i.substr(5)
167 } else if (/^file:\/\//.test(i)) return i.substr(7)
168 return i
169 }
170 static startsWith(D, i) {
171 return D.length >= i.length && D.substr(0, i.length) === i
172 }
173 static endsWith(D, i) {
174 return D.length >= i.length && D.substr(D.length - i.length) === i
175 }
176 static containsQueryString(D) {
177 return /^[^\#]*\?/gi.test(D)
178 }
179 static isAbsolutePath(D) {
180 return /^((http:\/\/)|(https:\/\/)|(file:\/\/)|(\/))/.test(D)
181 }
182 static forEachProperty(D, i) {
183 if (D) {
184 let s
185 for (s in D) D.hasOwnProperty(s) && i(s, D[s])
186 }
187 }
188 static isEmpty(D) {
189 let i = !0
190 return (
191 n.forEachProperty(D, () => {
192 i = !1
193 }),
194 i
195 )
196 }
197 static recursiveClone(D) {
198 if (
199 !D ||
200 typeof D != 'object' ||
201 D instanceof RegExp ||
202 (!Array.isArray(D) && Object.getPrototypeOf(D) !== Object.prototype)
203 )
204 return D
205 let i = Array.isArray(D) ? [] : {}
206 return (
207 n.forEachProperty(D, (s, p) => {
208 p && typeof p == 'object' ? (i[s] = n.recursiveClone(p)) : (i[s] = p)
209 }),
210 i
211 )
212 }
213 static generateAnonymousModule() {
214 return '===anonymous' + n.NEXT_ANONYMOUS_ID++ + '==='
215 }
216 static isAnonymousModule(D) {
217 return n.startsWith(D, '===anonymous')
218 }
219 static getHighPerformanceTimestamp() {
220 return (
221 this.PERFORMANCE_NOW_PROBED ||
222 ((this.PERFORMANCE_NOW_PROBED = !0),
223 (this.HAS_PERFORMANCE_NOW =
224 x.global.performance && typeof x.global.performance.now == 'function')),
225 this.HAS_PERFORMANCE_NOW ? x.global.performance.now() : Date.now()
226 )
227 }
228 }
229 ;(n.NEXT_ANONYMOUS_ID = 1),
230 (n.PERFORMANCE_NOW_PROBED = !1),
231 (n.HAS_PERFORMANCE_NOW = !1),
232 (x.Utilities = n)
233 })(ae || (ae = {}))
234 var ae
235 ;(function (x) {
236 function n(i) {
237 if (i instanceof Error) return i
238 const s = new Error(i.message || String(i) || 'Unknown Error')
239 return i.stack && (s.stack = i.stack), s
240 }
241 x.ensureError = n
242 class R {
243 static validateConfigurationOptions(s) {
244 function p(L) {
245 if (L.phase === 'loading') {
246 console.error('Loading "' + L.moduleId + '" failed'),
247 console.error(L),
248 console.error('Here are the modules that depend on it:'),
249 console.error(L.neededBy)
250 return
251 }
252 if (L.phase === 'factory') {
253 console.error('The factory function of "' + L.moduleId + '" has thrown an exception'),
254 console.error(L),
255 console.error('Here are the modules that depend on it:'),
256 console.error(L.neededBy)
257 return
258 }
259 }
260 if (
261 ((s = s || {}),
262 typeof s.baseUrl != 'string' && (s.baseUrl = ''),
263 typeof s.isBuild != 'boolean' && (s.isBuild = !1),
264 typeof s.paths != 'object' && (s.paths = {}),
265 typeof s.config != 'object' && (s.config = {}),
266 typeof s.catchError > 'u' && (s.catchError = !1),
267 typeof s.recordStats > 'u' && (s.recordStats = !1),
268 typeof s.urlArgs != 'string' && (s.urlArgs = ''),
269 typeof s.onError != 'function' && (s.onError = p),
270 Array.isArray(s.ignoreDuplicateModules) || (s.ignoreDuplicateModules = []),
271 s.baseUrl.length > 0 && (x.Utilities.endsWith(s.baseUrl, '/') || (s.baseUrl += '/')),
272 typeof s.cspNonce != 'string' && (s.cspNonce = ''),
273 typeof s.preferScriptTags > 'u' && (s.preferScriptTags = !1),
274 s.nodeCachedData &&
275 typeof s.nodeCachedData == 'object' &&
276 (typeof s.nodeCachedData.seed != 'string' && (s.nodeCachedData.seed = 'seed'),
277 (typeof s.nodeCachedData.writeDelay != 'number' || s.nodeCachedData.writeDelay < 0) &&
278 (s.nodeCachedData.writeDelay = 1e3 * 7),
279 !s.nodeCachedData.path || typeof s.nodeCachedData.path != 'string'))
280 ) {
281 const L = n(new Error("INVALID cached data configuration, 'path' MUST be set"))
282 ;(L.phase = 'configuration'), s.onError(L), (s.nodeCachedData = void 0)
283 }
284 return s
285 }
286 static mergeConfigurationOptions(s = null, p = null) {
287 let L = x.Utilities.recursiveClone(p || {})
288 return (
289 x.Utilities.forEachProperty(s, (h, a) => {
290 h === 'ignoreDuplicateModules' && typeof L.ignoreDuplicateModules < 'u'
291 ? (L.ignoreDuplicateModules = L.ignoreDuplicateModules.concat(a))
292 : h === 'paths' && typeof L.paths < 'u'
293 ? x.Utilities.forEachProperty(a, (w, e) => (L.paths[w] = e))
294 : h === 'config' && typeof L.config < 'u'
295 ? x.Utilities.forEachProperty(a, (w, e) => (L.config[w] = e))
296 : (L[h] = x.Utilities.recursiveClone(a))
297 }),
298 R.validateConfigurationOptions(L)
299 )
300 }
301 }
302 x.ConfigurationOptionsUtil = R
303 class D {
304 constructor(s, p) {
305 if (
306 ((this._env = s),
307 (this.options = R.mergeConfigurationOptions(p)),
308 this._createIgnoreDuplicateModulesMap(),
309 this._createSortedPathsRules(),
310 this.options.baseUrl === '' &&
311 this.options.nodeRequire &&
312 this.options.nodeRequire.main &&
313 this.options.nodeRequire.main.filename &&
314 this._env.isNode)
315 ) {
316 let L = this.options.nodeRequire.main.filename,
317 h = Math.max(L.lastIndexOf('/'), L.lastIndexOf('\\'))
318 this.options.baseUrl = L.substring(0, h + 1)
319 }
320 }
321 _createIgnoreDuplicateModulesMap() {
322 this.ignoreDuplicateModulesMap = {}
323 for (let s = 0; s < this.options.ignoreDuplicateModules.length; s++)
324 this.ignoreDuplicateModulesMap[this.options.ignoreDuplicateModules[s]] = !0
325 }
326 _createSortedPathsRules() {
327 ;(this.sortedPathsRules = []),
328 x.Utilities.forEachProperty(this.options.paths, (s, p) => {
329 Array.isArray(p)
330 ? this.sortedPathsRules.push({ from: s, to: p })
331 : this.sortedPathsRules.push({ from: s, to: [p] })
332 }),
333 this.sortedPathsRules.sort((s, p) => p.from.length - s.from.length)
334 }
335 cloneAndMerge(s) {
336 return new D(this._env, R.mergeConfigurationOptions(s, this.options))
337 }
338 getOptionsLiteral() {
339 return this.options
340 }
341 _applyPaths(s) {
342 let p
343 for (let L = 0, h = this.sortedPathsRules.length; L < h; L++)
344 if (((p = this.sortedPathsRules[L]), x.Utilities.startsWith(s, p.from))) {
345 let a = []
346 for (let w = 0, e = p.to.length; w < e; w++) a.push(p.to[w] + s.substr(p.from.length))
347 return a
348 }
349 return [s]
350 }
351 _addUrlArgsToUrl(s) {
352 return x.Utilities.containsQueryString(s)
353 ? s + '&' + this.options.urlArgs
354 : s + '?' + this.options.urlArgs
355 }
356 _addUrlArgsIfNecessaryToUrl(s) {
357 return this.options.urlArgs ? this._addUrlArgsToUrl(s) : s
358 }
359 _addUrlArgsIfNecessaryToUrls(s) {
360 if (this.options.urlArgs)
361 for (let p = 0, L = s.length; p < L; p++) s[p] = this._addUrlArgsToUrl(s[p])
362 return s
363 }
364 moduleIdToPaths(s) {
365 if (
366 this._env.isNode &&
367 this.options.amdModulesPattern instanceof RegExp &&
368 !this.options.amdModulesPattern.test(s)
369 )
370 return this.isBuild() ? ['empty:'] : ['node|' + s]
371 let p = s,
372 L
373 if (!x.Utilities.endsWith(p, '.js') && !x.Utilities.isAbsolutePath(p)) {
374 L = this._applyPaths(p)
375 for (let h = 0, a = L.length; h < a; h++)
376 (this.isBuild() && L[h] === 'empty:') ||
377 (x.Utilities.isAbsolutePath(L[h]) || (L[h] = this.options.baseUrl + L[h]),
378 !x.Utilities.endsWith(L[h], '.js') &&
379 !x.Utilities.containsQueryString(L[h]) &&
380 (L[h] = L[h] + '.js'))
381 } else
382 !x.Utilities.endsWith(p, '.js') && !x.Utilities.containsQueryString(p) && (p = p + '.js'),
383 (L = [p])
384 return this._addUrlArgsIfNecessaryToUrls(L)
385 }
386 requireToUrl(s) {
387 let p = s
388 return (
389 x.Utilities.isAbsolutePath(p) ||
390 ((p = this._applyPaths(p)[0]),
391 x.Utilities.isAbsolutePath(p) || (p = this.options.baseUrl + p)),
392 this._addUrlArgsIfNecessaryToUrl(p)
393 )
394 }
395 isBuild() {
396 return this.options.isBuild
397 }
398 shouldInvokeFactory(s) {
399 return !!(
400 !this.options.isBuild ||
401 x.Utilities.isAnonymousModule(s) ||
402 (this.options.buildForceInvokeFactory && this.options.buildForceInvokeFactory[s])
403 )
404 }
405 isDuplicateMessageIgnoredFor(s) {
406 return this.ignoreDuplicateModulesMap.hasOwnProperty(s)
407 }
408 getConfigForModule(s) {
409 if (this.options.config) return this.options.config[s]
410 }
411 shouldCatchError() {
412 return this.options.catchError
413 }
414 shouldRecordStats() {
415 return this.options.recordStats
416 }
417 onError(s) {
418 this.options.onError(s)
419 }
420 }
421 x.Configuration = D
422 })(ae || (ae = {}))
423 var ae
424 ;(function (x) {
425 class n {
426 constructor(a) {
427 ;(this._env = a), (this._scriptLoader = null), (this._callbackMap = {})
428 }
429 load(a, w, e, b) {
430 if (!this._scriptLoader)
431 if (this._env.isWebWorker) this._scriptLoader = new i()
432 else if (this._env.isElectronRenderer) {
433 const { preferScriptTags: v } = a.getConfig().getOptionsLiteral()
434 v ? (this._scriptLoader = new R()) : (this._scriptLoader = new s(this._env))
435 } else
436 this._env.isNode
437 ? (this._scriptLoader = new s(this._env))
438 : (this._scriptLoader = new R())
439 let f = { callback: e, errorback: b }
440 if (this._callbackMap.hasOwnProperty(w)) {
441 this._callbackMap[w].push(f)
442 return
443 }
444 ;(this._callbackMap[w] = [f]),
445 this._scriptLoader.load(
446 a,
447 w,
448 () => this.triggerCallback(w),
449 (v) => this.triggerErrorback(w, v)
450 )
451 }
452 triggerCallback(a) {
453 let w = this._callbackMap[a]
454 delete this._callbackMap[a]
455 for (let e = 0; e < w.length; e++) w[e].callback()
456 }
457 triggerErrorback(a, w) {
458 let e = this._callbackMap[a]
459 delete this._callbackMap[a]
460 for (let b = 0; b < e.length; b++) e[b].errorback(w)
461 }
462 }
463 class R {
464 attachListeners(a, w, e) {
465 let b = () => {
466 a.removeEventListener('load', f), a.removeEventListener('error', v)
467 },
468 f = (g) => {
469 b(), w()
470 },
471 v = (g) => {
472 b(), e(g)
473 }
474 a.addEventListener('load', f), a.addEventListener('error', v)
475 }
476 load(a, w, e, b) {
477 if (/^node\|/.test(w)) {
478 let f = a.getConfig().getOptionsLiteral(),
479 v = p(a.getRecorder(), f.nodeRequire || x.global.nodeRequire),
480 g = w.split('|'),
481 S = null
482 try {
483 S = v(g[1])
484 } catch (E) {
485 b(E)
486 return
487 }
488 a.enqueueDefineAnonymousModule([], () => S), e()
489 } else {
490 let f = document.createElement('script')
491 f.setAttribute('async', 'async'),
492 f.setAttribute('type', 'text/javascript'),
493 this.attachListeners(f, e, b)
494 const { trustedTypesPolicy: v } = a.getConfig().getOptionsLiteral()
495 v && (w = v.createScriptURL(w)), f.setAttribute('src', w)
496 const { cspNonce: g } = a.getConfig().getOptionsLiteral()
497 g && f.setAttribute('nonce', g), document.getElementsByTagName('head')[0].appendChild(f)
498 }
499 }
500 }
501 function D(h) {
502 const { trustedTypesPolicy: a } = h.getConfig().getOptionsLiteral()
503 try {
504 return (a ? self.eval(a.createScript('', 'true')) : new Function('true')).call(self), !0
505 } catch {
506 return !1
507 }
508 }
509 class i {
510 constructor() {
511 this._cachedCanUseEval = null
512 }
513 _canUseEval(a) {
514 return (
515 this._cachedCanUseEval === null && (this._cachedCanUseEval = D(a)), this._cachedCanUseEval
516 )
517 }
518 load(a, w, e, b) {
519 if (/^node\|/.test(w)) {
520 const f = a.getConfig().getOptionsLiteral(),
521 v = p(a.getRecorder(), f.nodeRequire || x.global.nodeRequire),
522 g = w.split('|')
523 let S = null
524 try {
525 S = v(g[1])
526 } catch (E) {
527 b(E)
528 return
529 }
530 a.enqueueDefineAnonymousModule([], function () {
531 return S
532 }),
533 e()
534 } else {
535 const { trustedTypesPolicy: f } = a.getConfig().getOptionsLiteral()
536 if (
537 !(
538 /^((http:)|(https:)|(file:))/.test(w) &&
539 w.substring(0, self.origin.length) !== self.origin
540 ) &&
541 this._canUseEval(a)
542 ) {
543 fetch(w)
544 .then((g) => {
545 if (g.status !== 200) throw new Error(g.statusText)
546 return g.text()
547 })
548 .then((g) => {
549 ;(g = `${g}
550//# sourceURL=${w}`),
551 (f ? self.eval(f.createScript('', g)) : new Function(g)).call(self),
552 e()
553 })
554 .then(void 0, b)
555 return
556 }
557 try {
558 f && (w = f.createScriptURL(w)), importScripts(w), e()
559 } catch (g) {
560 b(g)
561 }
562 }
563 }
564 }
565 class s {
566 constructor(a) {
567 ;(this._env = a), (this._didInitialize = !1), (this._didPatchNodeRequire = !1)
568 }
569 _init(a) {
570 this._didInitialize ||
571 ((this._didInitialize = !0),
572 (this._fs = a('fs')),
573 (this._vm = a('vm')),
574 (this._path = a('path')),
575 (this._crypto = a('crypto')))
576 }
577 _initNodeRequire(a, w) {
578 const { nodeCachedData: e } = w.getConfig().getOptionsLiteral()
579 if (!e || this._didPatchNodeRequire) return
580 this._didPatchNodeRequire = !0
581 const b = this,
582 f = a('module')
583 function v(g) {
584 const S = g.constructor
585 let E = function (_) {
586 try {
587 return g.require(_)
588 } finally {
589 }
590 }
591 return (
592 (E.resolve = function (_, d) {
593 return S._resolveFilename(_, g, !1, d)
594 }),
595 (E.resolve.paths = function (_) {
596 return S._resolveLookupPaths(_, g)
597 }),
598 (E.main = process.mainModule),
599 (E.extensions = S._extensions),
600 (E.cache = S._cache),
601 E
602 )
603 }
604 f.prototype._compile = function (g, S) {
605 const E = f.wrap(g.replace(/^#!.*/, '')),
606 y = w.getRecorder(),
607 _ = b._getCachedDataPath(e, S),
608 d = { filename: S }
609 let C
610 try {
611 const N = b._fs.readFileSync(_)
612 ;(C = N.slice(0, 16)), (d.cachedData = N.slice(16)), y.record(60, _)
613 } catch {
614 y.record(61, _)
615 }
616 const r = new b._vm.Script(E, d),
617 u = r.runInThisContext(d),
618 o = b._path.dirname(S),
619 c = v(this),
620 l = [this.exports, c, this, S, o, process, Re, Buffer],
621 m = u.apply(this.exports, l)
622 return (
623 b._handleCachedData(r, E, _, !d.cachedData, w), b._verifyCachedData(r, E, _, C, w), m
624 )
625 }
626 }
627 load(a, w, e, b) {
628 const f = a.getConfig().getOptionsLiteral(),
629 v = p(a.getRecorder(), f.nodeRequire || x.global.nodeRequire),
630 g =
631 f.nodeInstrumenter ||
632 function (E) {
633 return E
634 }
635 this._init(v), this._initNodeRequire(v, a)
636 let S = a.getRecorder()
637 if (/^node\|/.test(w)) {
638 let E = w.split('|'),
639 y = null
640 try {
641 y = v(E[1])
642 } catch (_) {
643 b(_)
644 return
645 }
646 a.enqueueDefineAnonymousModule([], () => y), e()
647 } else {
648 w = x.Utilities.fileUriToFilePath(this._env.isWindows, w)
649 const E = this._path.normalize(w),
650 y = this._getElectronRendererScriptPathOrUri(E),
651 _ = Boolean(f.nodeCachedData),
652 d = _ ? this._getCachedDataPath(f.nodeCachedData, w) : void 0
653 this._readSourceAndCachedData(E, d, S, (C, r, u, o) => {
654 if (C) {
655 b(C)
656 return
657 }
658 let c
659 r.charCodeAt(0) === s._BOM
660 ? (c = s._PREFIX + r.substring(1) + s._SUFFIX)
661 : (c = s._PREFIX + r + s._SUFFIX),
662 (c = g(c, E))
663 const l = { filename: y, cachedData: u },
664 m = this._createAndEvalScript(a, c, l, e, b)
665 this._handleCachedData(m, c, d, _ && !u, a), this._verifyCachedData(m, c, d, o, a)
666 })
667 }
668 }
669 _createAndEvalScript(a, w, e, b, f) {
670 const v = a.getRecorder()
671 v.record(31, e.filename)
672 const g = new this._vm.Script(w, e),
673 S = g.runInThisContext(e),
674 E = a.getGlobalAMDDefineFunc()
675 let y = !1
676 const _ = function () {
677 return (y = !0), E.apply(null, arguments)
678 }
679 return (
680 (_.amd = E.amd),
681 S.call(
682 x.global,
683 a.getGlobalAMDRequireFunc(),
684 _,
685 e.filename,
686 this._path.dirname(e.filename)
687 ),
688 v.record(32, e.filename),
689 y ? b() : f(new Error(`Didn't receive define call in ${e.filename}!`)),
690 g
691 )
692 }
693 _getElectronRendererScriptPathOrUri(a) {
694 if (!this._env.isElectronRenderer) return a
695 let w = a.match(/^([a-z])\:(.*)/i)
696 return w
697 ? `file:///${(w[1].toUpperCase() + ':' + w[2]).replace(/\\/g, '/')}`
698 : `file://${a}`
699 }
700 _getCachedDataPath(a, w) {
701 const e = this._crypto
702 .createHash('md5')
703 .update(w, 'utf8')
704 .update(a.seed, 'utf8')
705 .update(process.arch, '')
706 .digest('hex'),
707 b = this._path.basename(w).replace(/\.js$/, '')
708 return this._path.join(a.path, `${b}-${e}.code`)
709 }
710 _handleCachedData(a, w, e, b, f) {
711 a.cachedDataRejected
712 ? this._fs.unlink(e, (v) => {
713 f.getRecorder().record(62, e),
714 this._createAndWriteCachedData(a, w, e, f),
715 v && f.getConfig().onError(v)
716 })
717 : b && this._createAndWriteCachedData(a, w, e, f)
718 }
719 _createAndWriteCachedData(a, w, e, b) {
720 let f = Math.ceil(
721 b.getConfig().getOptionsLiteral().nodeCachedData.writeDelay * (1 + Math.random())
722 ),
723 v = -1,
724 g = 0,
725 S
726 const E = () => {
727 setTimeout(() => {
728 S || (S = this._crypto.createHash('md5').update(w, 'utf8').digest())
729 const y = a.createCachedData()
730 if (!(y.length === 0 || y.length === v || g >= 5)) {
731 if (y.length < v) {
732 E()
733 return
734 }
735 ;(v = y.length),
736 this._fs.writeFile(e, Buffer.concat([S, y]), (_) => {
737 _ && b.getConfig().onError(_), b.getRecorder().record(63, e), E()
738 })
739 }
740 }, f * Math.pow(4, g++))
741 }
742 E()
743 }
744 _readSourceAndCachedData(a, w, e, b) {
745 if (!w) this._fs.readFile(a, { encoding: 'utf8' }, b)
746 else {
747 let f,
748 v,
749 g,
750 S = 2
751 const E = (y) => {
752 y ? b(y) : --S === 0 && b(void 0, f, v, g)
753 }
754 this._fs.readFile(a, { encoding: 'utf8' }, (y, _) => {
755 ;(f = _), E(y)
756 }),
757 this._fs.readFile(w, (y, _) => {
758 !y && _ && _.length > 0
759 ? ((g = _.slice(0, 16)), (v = _.slice(16)), e.record(60, w))
760 : e.record(61, w),
761 E()
762 })
763 }
764 }
765 _verifyCachedData(a, w, e, b, f) {
766 !b ||
767 a.cachedDataRejected ||
768 setTimeout(() => {
769 const v = this._crypto.createHash('md5').update(w, 'utf8').digest()
770 b.equals(v) ||
771 (f
772 .getConfig()
773 .onError(
774 new Error(
775 `FAILED TO VERIFY CACHED DATA, deleting stale '${e}' now, but a RESTART IS REQUIRED`
776 )
777 ),
778 this._fs.unlink(e, (g) => {
779 g && f.getConfig().onError(g)
780 }))
781 }, Math.ceil(5e3 * (1 + Math.random())))
782 }
783 }
784 ;(s._BOM = 65279),
785 (s._PREFIX = '(function (require, define, __filename, __dirname) { '),
786 (s._SUFFIX = `
787});`)
788 function p(h, a) {
789 if (a.__$__isRecorded) return a
790 const w = function (b) {
791 h.record(33, b)
792 try {
793 return a(b)
794 } finally {
795 h.record(34, b)
796 }
797 }
798 return (w.__$__isRecorded = !0), w
799 }
800 x.ensureRecordedNodeRequire = p
801 function L(h) {
802 return new n(h)
803 }
804 x.createScriptLoader = L
805 })(ae || (ae = {}))
806 var ae
807 ;(function (x) {
808 class n {
809 constructor(h) {
810 let a = h.lastIndexOf('/')
811 a !== -1 ? (this.fromModulePath = h.substr(0, a + 1)) : (this.fromModulePath = '')
812 }
813 static _normalizeModuleId(h) {
814 let a = h,
815 w
816 for (w = /\/\.\//; w.test(a); ) a = a.replace(w, '/')
817 for (
818 a = a.replace(/^\.\//g, ''),
819 w = /\/(([^\/])|([^\/][^\/\.])|([^\/\.][^\/])|([^\/][^\/][^\/]+))\/\.\.\//;
820 w.test(a);
821
822 )
823 a = a.replace(w, '/')
824 return (
825 (a = a.replace(
826 /^(([^\/])|([^\/][^\/\.])|([^\/\.][^\/])|([^\/][^\/][^\/]+))\/\.\.\//,
827 ''
828 )),
829 a
830 )
831 }
832 resolveModule(h) {
833 let a = h
834 return (
835 x.Utilities.isAbsolutePath(a) ||
836 ((x.Utilities.startsWith(a, './') || x.Utilities.startsWith(a, '../')) &&
837 (a = n._normalizeModuleId(this.fromModulePath + a))),
838 a
839 )
840 }
841 }
842 ;(n.ROOT = new n('')), (x.ModuleIdResolver = n)
843 class R {
844 constructor(h, a, w, e, b, f) {
845 ;(this.id = h),
846 (this.strId = a),
847 (this.dependencies = w),
848 (this._callback = e),
849 (this._errorback = b),
850 (this.moduleIdResolver = f),
851 (this.exports = {}),
852 (this.error = null),
853 (this.exportsPassedIn = !1),
854 (this.unresolvedDependenciesCount = this.dependencies.length),
855 (this._isComplete = !1)
856 }
857 static _safeInvokeFunction(h, a) {
858 try {
859 return { returnedValue: h.apply(x.global, a), producedError: null }
860 } catch (w) {
861 return { returnedValue: null, producedError: w }
862 }
863 }
864 static _invokeFactory(h, a, w, e) {
865 return h.shouldInvokeFactory(a)
866 ? h.shouldCatchError()
867 ? this._safeInvokeFunction(w, e)
868 : { returnedValue: w.apply(x.global, e), producedError: null }
869 : { returnedValue: null, producedError: null }
870 }
871 complete(h, a, w, e) {
872 this._isComplete = !0
873 let b = null
874 if (this._callback)
875 if (typeof this._callback == 'function') {
876 h.record(21, this.strId)
877 let f = R._invokeFactory(a, this.strId, this._callback, w)
878 ;(b = f.producedError),
879 h.record(22, this.strId),
880 !b &&
881 typeof f.returnedValue < 'u' &&
882 (!this.exportsPassedIn || x.Utilities.isEmpty(this.exports)) &&
883 (this.exports = f.returnedValue)
884 } else this.exports = this._callback
885 if (b) {
886 let f = x.ensureError(b)
887 ;(f.phase = 'factory'),
888 (f.moduleId = this.strId),
889 (f.neededBy = e(this.id)),
890 (this.error = f),
891 a.onError(f)
892 }
893 ;(this.dependencies = null),
894 (this._callback = null),
895 (this._errorback = null),
896 (this.moduleIdResolver = null)
897 }
898 onDependencyError(h) {
899 return (
900 (this._isComplete = !0), (this.error = h), this._errorback ? (this._errorback(h), !0) : !1
901 )
902 }
903 isComplete() {
904 return this._isComplete
905 }
906 }
907 x.Module = R
908 class D {
909 constructor() {
910 ;(this._nextId = 0),
911 (this._strModuleIdToIntModuleId = new Map()),
912 (this._intModuleIdToStrModuleId = []),
913 this.getModuleId('exports'),
914 this.getModuleId('module'),
915 this.getModuleId('require')
916 }
917 getMaxModuleId() {
918 return this._nextId
919 }
920 getModuleId(h) {
921 let a = this._strModuleIdToIntModuleId.get(h)
922 return (
923 typeof a > 'u' &&
924 ((a = this._nextId++),
925 this._strModuleIdToIntModuleId.set(h, a),
926 (this._intModuleIdToStrModuleId[a] = h)),
927 a
928 )
929 }
930 getStrModuleId(h) {
931 return this._intModuleIdToStrModuleId[h]
932 }
933 }
934 class i {
935 constructor(h) {
936 this.id = h
937 }
938 }
939 ;(i.EXPORTS = new i(0)),
940 (i.MODULE = new i(1)),
941 (i.REQUIRE = new i(2)),
942 (x.RegularDependency = i)
943 class s {
944 constructor(h, a, w) {
945 ;(this.id = h), (this.pluginId = a), (this.pluginParam = w)
946 }
947 }
948 x.PluginDependency = s
949 class p {
950 constructor(h, a, w, e, b = 0) {
951 ;(this._env = h),
952 (this._scriptLoader = a),
953 (this._loaderAvailableTimestamp = b),
954 (this._defineFunc = w),
955 (this._requireFunc = e),
956 (this._moduleIdProvider = new D()),
957 (this._config = new x.Configuration(this._env)),
958 (this._hasDependencyCycle = !1),
959 (this._modules2 = []),
960 (this._knownModules2 = []),
961 (this._inverseDependencies2 = []),
962 (this._inversePluginDependencies2 = new Map()),
963 (this._currentAnonymousDefineCall = null),
964 (this._recorder = null),
965 (this._buildInfoPath = []),
966 (this._buildInfoDefineStack = []),
967 (this._buildInfoDependencies = [])
968 }
969 reset() {
970 return new p(
971 this._env,
972 this._scriptLoader,
973 this._defineFunc,
974 this._requireFunc,
975 this._loaderAvailableTimestamp
976 )
977 }
978 getGlobalAMDDefineFunc() {
979 return this._defineFunc
980 }
981 getGlobalAMDRequireFunc() {
982 return this._requireFunc
983 }
984 static _findRelevantLocationInStack(h, a) {
985 let w = (f) => f.replace(/\\/g, '/'),
986 e = w(h),
987 b = a.split(/\n/)
988 for (let f = 0; f < b.length; f++) {
989 let v = b[f].match(/(.*):(\d+):(\d+)\)?$/)
990 if (v) {
991 let g = v[1],
992 S = v[2],
993 E = v[3],
994 y = Math.max(g.lastIndexOf(' ') + 1, g.lastIndexOf('(') + 1)
995 if (((g = g.substr(y)), (g = w(g)), g === e)) {
996 let _ = { line: parseInt(S, 10), col: parseInt(E, 10) }
997 return _.line === 1 && (_.col -= 53), _
998 }
999 }
1000 }
1001 throw new Error('Could not correlate define call site for needle ' + h)
1002 }
1003 getBuildInfo() {
1004 if (!this._config.isBuild()) return null
1005 let h = [],
1006 a = 0
1007 for (let w = 0, e = this._modules2.length; w < e; w++) {
1008 let b = this._modules2[w]
1009 if (!b) continue
1010 let f = this._buildInfoPath[b.id] || null,
1011 v = this._buildInfoDefineStack[b.id] || null,
1012 g = this._buildInfoDependencies[b.id]
1013 h[a++] = {
1014 id: b.strId,
1015 path: f,
1016 defineLocation: f && v ? p._findRelevantLocationInStack(f, v) : null,
1017 dependencies: g,
1018 shim: null,
1019 exports: b.exports,
1020 }
1021 }
1022 return h
1023 }
1024 getRecorder() {
1025 return (
1026 this._recorder ||
1027 (this._config.shouldRecordStats()
1028 ? (this._recorder = new x.LoaderEventRecorder(this._loaderAvailableTimestamp))
1029 : (this._recorder = x.NullLoaderEventRecorder.INSTANCE)),
1030 this._recorder
1031 )
1032 }
1033 getLoaderEvents() {
1034 return this.getRecorder().getEvents()
1035 }
1036 enqueueDefineAnonymousModule(h, a) {
1037 if (this._currentAnonymousDefineCall !== null)
1038 throw new Error('Can only have one anonymous define call per script file')
1039 let w = null
1040 this._config.isBuild() && (w = new Error('StackLocation').stack || null),
1041 (this._currentAnonymousDefineCall = { stack: w, dependencies: h, callback: a })
1042 }
1043 defineModule(h, a, w, e, b, f = new n(h)) {
1044 let v = this._moduleIdProvider.getModuleId(h)
1045 if (this._modules2[v]) {
1046 this._config.isDuplicateMessageIgnoredFor(h) ||
1047 console.warn("Duplicate definition of module '" + h + "'")
1048 return
1049 }
1050 let g = new R(v, h, this._normalizeDependencies(a, f), w, e, f)
1051 ;(this._modules2[v] = g),
1052 this._config.isBuild() &&
1053 ((this._buildInfoDefineStack[v] = b),
1054 (this._buildInfoDependencies[v] = (g.dependencies || []).map((S) =>
1055 this._moduleIdProvider.getStrModuleId(S.id)
1056 ))),
1057 this._resolve(g)
1058 }
1059 _normalizeDependency(h, a) {
1060 if (h === 'exports') return i.EXPORTS
1061 if (h === 'module') return i.MODULE
1062 if (h === 'require') return i.REQUIRE
1063 let w = h.indexOf('!')
1064 if (w >= 0) {
1065 let e = a.resolveModule(h.substr(0, w)),
1066 b = a.resolveModule(h.substr(w + 1)),
1067 f = this._moduleIdProvider.getModuleId(e + '!' + b),
1068 v = this._moduleIdProvider.getModuleId(e)
1069 return new s(f, v, b)
1070 }
1071 return new i(this._moduleIdProvider.getModuleId(a.resolveModule(h)))
1072 }
1073 _normalizeDependencies(h, a) {
1074 let w = [],
1075 e = 0
1076 for (let b = 0, f = h.length; b < f; b++) w[e++] = this._normalizeDependency(h[b], a)
1077 return w
1078 }
1079 _relativeRequire(h, a, w, e) {
1080 if (typeof a == 'string') return this.synchronousRequire(a, h)
1081 this.defineModule(x.Utilities.generateAnonymousModule(), a, w, e, null, h)
1082 }
1083 synchronousRequire(h, a = new n(h)) {
1084 let w = this._normalizeDependency(h, a),
1085 e = this._modules2[w.id]
1086 if (!e)
1087 throw new Error(
1088 "Check dependency list! Synchronous require cannot resolve module '" +
1089 h +
1090 "'. This is the first mention of this module!"
1091 )
1092 if (!e.isComplete())
1093 throw new Error(
1094 "Check dependency list! Synchronous require cannot resolve module '" +
1095 h +
1096 "'. This module has not been resolved completely yet."
1097 )
1098 if (e.error) throw e.error
1099 return e.exports
1100 }
1101 configure(h, a) {
1102 let w = this._config.shouldRecordStats()
1103 a
1104 ? (this._config = new x.Configuration(this._env, h))
1105 : (this._config = this._config.cloneAndMerge(h)),
1106 this._config.shouldRecordStats() && !w && (this._recorder = null)
1107 }
1108 getConfig() {
1109 return this._config
1110 }
1111 _onLoad(h) {
1112 if (this._currentAnonymousDefineCall !== null) {
1113 let a = this._currentAnonymousDefineCall
1114 ;(this._currentAnonymousDefineCall = null),
1115 this.defineModule(
1116 this._moduleIdProvider.getStrModuleId(h),
1117 a.dependencies,
1118 a.callback,
1119 null,
1120 a.stack
1121 )
1122 }
1123 }
1124 _createLoadError(h, a) {
1125 let w = this._moduleIdProvider.getStrModuleId(h),
1126 e = (this._inverseDependencies2[h] || []).map((f) =>
1127 this._moduleIdProvider.getStrModuleId(f)
1128 )
1129 const b = x.ensureError(a)
1130 return (b.phase = 'loading'), (b.moduleId = w), (b.neededBy = e), b
1131 }
1132 _onLoadError(h, a) {
1133 const w = this._createLoadError(h, a)
1134 this._modules2[h] ||
1135 (this._modules2[h] = new R(
1136 h,
1137 this._moduleIdProvider.getStrModuleId(h),
1138 [],
1139 () => {},
1140 null,
1141 null
1142 ))
1143 let e = []
1144 for (let v = 0, g = this._moduleIdProvider.getMaxModuleId(); v < g; v++) e[v] = !1
1145 let b = !1,
1146 f = []
1147 for (f.push(h), e[h] = !0; f.length > 0; ) {
1148 let v = f.shift(),
1149 g = this._modules2[v]
1150 g && (b = g.onDependencyError(w) || b)
1151 let S = this._inverseDependencies2[v]
1152 if (S)
1153 for (let E = 0, y = S.length; E < y; E++) {
1154 let _ = S[E]
1155 e[_] || (f.push(_), (e[_] = !0))
1156 }
1157 }
1158 b || this._config.onError(w)
1159 }
1160 _hasDependencyPath(h, a) {
1161 let w = this._modules2[h]
1162 if (!w) return !1
1163 let e = []
1164 for (let f = 0, v = this._moduleIdProvider.getMaxModuleId(); f < v; f++) e[f] = !1
1165 let b = []
1166 for (b.push(w), e[h] = !0; b.length > 0; ) {
1167 let v = b.shift().dependencies
1168 if (v)
1169 for (let g = 0, S = v.length; g < S; g++) {
1170 let E = v[g]
1171 if (E.id === a) return !0
1172 let y = this._modules2[E.id]
1173 y && !e[E.id] && ((e[E.id] = !0), b.push(y))
1174 }
1175 }
1176 return !1
1177 }
1178 _findCyclePath(h, a, w) {
1179 if (h === a || w === 50) return [h]
1180 let e = this._modules2[h]
1181 if (!e) return null
1182 let b = e.dependencies
1183 if (b)
1184 for (let f = 0, v = b.length; f < v; f++) {
1185 let g = this._findCyclePath(b[f].id, a, w + 1)
1186 if (g !== null) return g.push(h), g
1187 }
1188 return null
1189 }
1190 _createRequire(h) {
1191 let a = (w, e, b) => this._relativeRequire(h, w, e, b)
1192 return (
1193 (a.toUrl = (w) => this._config.requireToUrl(h.resolveModule(w))),
1194 (a.getStats = () => this.getLoaderEvents()),
1195 (a.hasDependencyCycle = () => this._hasDependencyCycle),
1196 (a.config = (w, e = !1) => {
1197 this.configure(w, e)
1198 }),
1199 (a.__$__nodeRequire = x.global.nodeRequire),
1200 a
1201 )
1202 }
1203 _loadModule(h) {
1204 if (this._modules2[h] || this._knownModules2[h]) return
1205 this._knownModules2[h] = !0
1206 let a = this._moduleIdProvider.getStrModuleId(h),
1207 w = this._config.moduleIdToPaths(a),
1208 e = /^@[^\/]+\/[^\/]+$/
1209 this._env.isNode && (a.indexOf('/') === -1 || e.test(a)) && w.push('node|' + a)
1210 let b = -1,
1211 f = (v) => {
1212 if ((b++, b >= w.length)) this._onLoadError(h, v)
1213 else {
1214 let g = w[b],
1215 S = this.getRecorder()
1216 if (this._config.isBuild() && g === 'empty:') {
1217 ;(this._buildInfoPath[h] = g),
1218 this.defineModule(this._moduleIdProvider.getStrModuleId(h), [], null, null, null),
1219 this._onLoad(h)
1220 return
1221 }
1222 S.record(10, g),
1223 this._scriptLoader.load(
1224 this,
1225 g,
1226 () => {
1227 this._config.isBuild() && (this._buildInfoPath[h] = g),
1228 S.record(11, g),
1229 this._onLoad(h)
1230 },
1231 (E) => {
1232 S.record(12, g), f(E)
1233 }
1234 )
1235 }
1236 }
1237 f(null)
1238 }
1239 _loadPluginDependency(h, a) {
1240 if (this._modules2[a.id] || this._knownModules2[a.id]) return
1241 this._knownModules2[a.id] = !0
1242 let w = (e) => {
1243 this.defineModule(this._moduleIdProvider.getStrModuleId(a.id), [], e, null, null)
1244 }
1245 ;(w.error = (e) => {
1246 this._config.onError(this._createLoadError(a.id, e))
1247 }),
1248 h.load(a.pluginParam, this._createRequire(n.ROOT), w, this._config.getOptionsLiteral())
1249 }
1250 _resolve(h) {
1251 let a = h.dependencies
1252 if (a)
1253 for (let w = 0, e = a.length; w < e; w++) {
1254 let b = a[w]
1255 if (b === i.EXPORTS) {
1256 ;(h.exportsPassedIn = !0), h.unresolvedDependenciesCount--
1257 continue
1258 }
1259 if (b === i.MODULE) {
1260 h.unresolvedDependenciesCount--
1261 continue
1262 }
1263 if (b === i.REQUIRE) {
1264 h.unresolvedDependenciesCount--
1265 continue
1266 }
1267 let f = this._modules2[b.id]
1268 if (f && f.isComplete()) {
1269 if (f.error) {
1270 h.onDependencyError(f.error)
1271 return
1272 }
1273 h.unresolvedDependenciesCount--
1274 continue
1275 }
1276 if (this._hasDependencyPath(b.id, h.id)) {
1277 ;(this._hasDependencyCycle = !0),
1278 console.warn(
1279 "There is a dependency cycle between '" +
1280 this._moduleIdProvider.getStrModuleId(b.id) +
1281 "' and '" +
1282 this._moduleIdProvider.getStrModuleId(h.id) +
1283 "'. The cyclic path follows:"
1284 )
1285 let v = this._findCyclePath(b.id, h.id, 0) || []
1286 v.reverse(),
1287 v.push(b.id),
1288 console.warn(
1289 v.map((g) => this._moduleIdProvider.getStrModuleId(g)).join(` =>
1290`)
1291 ),
1292 h.unresolvedDependenciesCount--
1293 continue
1294 }
1295 if (
1296 ((this._inverseDependencies2[b.id] = this._inverseDependencies2[b.id] || []),
1297 this._inverseDependencies2[b.id].push(h.id),
1298 b instanceof s)
1299 ) {
1300 let v = this._modules2[b.pluginId]
1301 if (v && v.isComplete()) {
1302 this._loadPluginDependency(v.exports, b)
1303 continue
1304 }
1305 let g = this._inversePluginDependencies2.get(b.pluginId)
1306 g || ((g = []), this._inversePluginDependencies2.set(b.pluginId, g)),
1307 g.push(b),
1308 this._loadModule(b.pluginId)
1309 continue
1310 }
1311 this._loadModule(b.id)
1312 }
1313 h.unresolvedDependenciesCount === 0 && this._onModuleComplete(h)
1314 }
1315 _onModuleComplete(h) {
1316 let a = this.getRecorder()
1317 if (h.isComplete()) return
1318 let w = h.dependencies,
1319 e = []
1320 if (w)
1321 for (let g = 0, S = w.length; g < S; g++) {
1322 let E = w[g]
1323 if (E === i.EXPORTS) {
1324 e[g] = h.exports
1325 continue
1326 }
1327 if (E === i.MODULE) {
1328 e[g] = { id: h.strId, config: () => this._config.getConfigForModule(h.strId) }
1329 continue
1330 }
1331 if (E === i.REQUIRE) {
1332 e[g] = this._createRequire(h.moduleIdResolver)
1333 continue
1334 }
1335 let y = this._modules2[E.id]
1336 if (y) {
1337 e[g] = y.exports
1338 continue
1339 }
1340 e[g] = null
1341 }
1342 const b = (g) =>
1343 (this._inverseDependencies2[g] || []).map((S) => this._moduleIdProvider.getStrModuleId(S))
1344 h.complete(a, this._config, e, b)
1345 let f = this._inverseDependencies2[h.id]
1346 if (((this._inverseDependencies2[h.id] = null), f))
1347 for (let g = 0, S = f.length; g < S; g++) {
1348 let E = f[g],
1349 y = this._modules2[E]
1350 y.unresolvedDependenciesCount--,
1351 y.unresolvedDependenciesCount === 0 && this._onModuleComplete(y)
1352 }
1353 let v = this._inversePluginDependencies2.get(h.id)
1354 if (v) {
1355 this._inversePluginDependencies2.delete(h.id)
1356 for (let g = 0, S = v.length; g < S; g++) this._loadPluginDependency(h.exports, v[g])
1357 }
1358 }
1359 }
1360 x.ModuleManager = p
1361 })(ae || (ae = {}))
1362 var Q, ae
1363 ;(function (x) {
1364 const n = new x.Environment()
1365 let R = null
1366 const D = function (L, h, a) {
1367 typeof L != 'string' && ((a = h), (h = L), (L = null)),
1368 (typeof h != 'object' || !Array.isArray(h)) && ((a = h), (h = null)),
1369 h || (h = ['require', 'exports', 'module']),
1370 L ? R.defineModule(L, h, a, null, null) : R.enqueueDefineAnonymousModule(h, a)
1371 }
1372 D.amd = { jQuery: !0 }
1373 const i = function (L, h = !1) {
1374 R.configure(L, h)
1375 },
1376 s = function () {
1377 if (arguments.length === 1) {
1378 if (arguments[0] instanceof Object && !Array.isArray(arguments[0])) {
1379 i(arguments[0])
1380 return
1381 }
1382 if (typeof arguments[0] == 'string') return R.synchronousRequire(arguments[0])
1383 }
1384 if ((arguments.length === 2 || arguments.length === 3) && Array.isArray(arguments[0])) {
1385 R.defineModule(
1386 x.Utilities.generateAnonymousModule(),
1387 arguments[0],
1388 arguments[1],
1389 arguments[2],
1390 null
1391 )
1392 return
1393 }
1394 throw new Error('Unrecognized require call')
1395 }
1396 ;(s.config = i),
1397 (s.getConfig = function () {
1398 return R.getConfig().getOptionsLiteral()
1399 }),
1400 (s.reset = function () {
1401 R = R.reset()
1402 }),
1403 (s.getBuildInfo = function () {
1404 return R.getBuildInfo()
1405 }),
1406 (s.getStats = function () {
1407 return R.getLoaderEvents()
1408 }),
1409 (s.define = D)
1410 function p() {
1411 if (typeof x.global.require < 'u' || typeof require < 'u') {
1412 const L = x.global.require || require
1413 if (typeof L == 'function' && typeof L.resolve == 'function') {
1414 const h = x.ensureRecordedNodeRequire(R.getRecorder(), L)
1415 ;(x.global.nodeRequire = h), (s.nodeRequire = h), (s.__$__nodeRequire = h)
1416 }
1417 }
1418 n.isNode && !n.isElectronRenderer && !n.isElectronNodeIntegrationWebWorker
1419 ? (module.exports = s)
1420 : (n.isElectronRenderer || (x.global.define = D), (x.global.require = s))
1421 }
1422 ;(x.init = p),
1423 (typeof x.global.define != 'function' || !x.global.define.amd) &&
1424 ((R = new x.ModuleManager(
1425 n,
1426 x.createScriptLoader(n),
1427 D,
1428 s,
1429 x.Utilities.getHighPerformanceTimestamp()
1430 )),
1431 typeof x.global.require < 'u' &&
1432 typeof x.global.require != 'function' &&
1433 s.config(x.global.require),
1434 (Q = function () {
1435 return D.apply(null, arguments)
1436 }),
1437 (Q.amd = D.amd),
1438 typeof doNotInitLoader > 'u' && p())
1439 })(ae || (ae = {}))
1440 var be =
1441 (this && this.__awaiter) ||
1442 function (x, n, R, D) {
1443 function i(s) {
1444 return s instanceof R
1445 ? s
1446 : new R(function (p) {
1447 p(s)
1448 })
1449 }
1450 return new (R || (R = Promise))(function (s, p) {
1451 function L(w) {
1452 try {
1453 a(D.next(w))
1454 } catch (e) {
1455 p(e)
1456 }
1457 }
1458 function h(w) {
1459 try {
1460 a(D.throw(w))
1461 } catch (e) {
1462 p(e)
1463 }
1464 }
1465 function a(w) {
1466 w.done ? s(w.value) : i(w.value).then(L, h)
1467 }
1468 a((D = D.apply(x, n || [])).next())
1469 })
1470 }
1471 Q(Y[25], X([0, 1]), function (x, n) {
1472 'use strict'
1473 Object.defineProperty(n, '__esModule', { value: !0 }),
1474 (n.load =
1475 n.create =
1476 n.setPseudoTranslation =
1477 n.getConfiguredDefaultLocale =
1478 n.localize =
1479 void 0)
1480 let R =
1481 typeof document < 'u' &&
1482 document.location &&
1483 document.location.hash.indexOf('pseudo=true') >= 0
1484 const D = 'i-default'
1485 function i(v, g) {
1486 let S
1487 return (
1488 g.length === 0
1489 ? (S = v)
1490 : (S = v.replace(/\{(\d+)\}/g, (E, y) => {
1491 const _ = y[0],
1492 d = g[_]
1493 let C = E
1494 return (
1495 typeof d == 'string'
1496 ? (C = d)
1497 : (typeof d == 'number' || typeof d == 'boolean' || d === void 0 || d === null) &&
1498 (C = String(d)),
1499 C
1500 )
1501 })),
1502 R && (S = '\uFF3B' + S.replace(/[aouei]/g, '$&$&') + '\uFF3D'),
1503 S
1504 )
1505 }
1506 function s(v, g) {
1507 let S = v[g]
1508 return S || ((S = v['*']), S) ? S : null
1509 }
1510 function p(v) {
1511 return v.charAt(v.length - 1) === '/' ? v : v + '/'
1512 }
1513 function L(v, g, S) {
1514 return be(this, void 0, void 0, function* () {
1515 const E = p(v) + p(g) + 'vscode/' + p(S),
1516 y = yield fetch(E)
1517 if (y.ok) return yield y.json()
1518 throw new Error(`${y.status} - ${y.statusText}`)
1519 })
1520 }
1521 function h(v) {
1522 return function (g, S) {
1523 const E = Array.prototype.slice.call(arguments, 2)
1524 return i(v[g], E)
1525 }
1526 }
1527 function a(v, g, ...S) {
1528 return i(g, S)
1529 }
1530 n.localize = a
1531 function w(v) {}
1532 n.getConfiguredDefaultLocale = w
1533 function e(v) {
1534 R = v
1535 }
1536 n.setPseudoTranslation = e
1537 function b(v, g) {
1538 var S
1539 return {
1540 localize: h(g[v]),
1541 getConfiguredDefaultLocale:
1542 (S = g.getConfiguredDefaultLocale) !== null && S !== void 0 ? S : (E) => {},
1543 }
1544 }
1545 n.create = b
1546 function f(v, g, S, E) {
1547 var y
1548 const _ = (y = E['vs/nls']) !== null && y !== void 0 ? y : {}
1549 if (!v || v.length === 0)
1550 return S({
1551 localize: a,
1552 getConfiguredDefaultLocale: () => {
1553 var o
1554 return (o = _.availableLanguages) === null || o === void 0 ? void 0 : o['*']
1555 },
1556 })
1557 const d = _.availableLanguages ? s(_.availableLanguages, v) : null,
1558 C = d === null || d === D
1559 let r = '.nls'
1560 C || (r = r + '.' + d)
1561 const u = (o) => {
1562 Array.isArray(o) ? (o.localize = h(o)) : (o.localize = h(o[v])),
1563 (o.getConfiguredDefaultLocale = () => {
1564 var c
1565 return (c = _.availableLanguages) === null || c === void 0 ? void 0 : c['*']
1566 }),
1567 S(o)
1568 }
1569 typeof _.loadBundle == 'function'
1570 ? _.loadBundle(v, d, (o, c) => {
1571 o ? g([v + '.nls'], u) : u(c)
1572 })
1573 : _.translationServiceUrl && !C
1574 ? be(this, void 0, void 0, function* () {
1575 var o
1576 try {
1577 const c = yield L(_.translationServiceUrl, d, v)
1578 return u(c)
1579 } catch (c) {
1580 if (!d.includes('-')) return console.error(c), g([v + '.nls'], u)
1581 try {
1582 const l = d.split('-')[0],
1583 m = yield L(_.translationServiceUrl, l, v)
1584 return (
1585 ((o = _.availableLanguages) !== null && o !== void 0) ||
1586 (_.availableLanguages = {}),
1587 (_.availableLanguages['*'] = l),
1588 u(m)
1589 )
1590 } catch (l) {
1591 return console.error(l), g([v + '.nls'], u)
1592 }
1593 }
1594 })
1595 : g([v + r], u, (o) => {
1596 if (r === '.nls') {
1597 console.error('Failed trying to load default language strings', o)
1598 return
1599 }
1600 console.error(
1601 `Failed to load message bundle for language ${d}. Falling back to the default language:`,
1602 o
1603 ),
1604 g([v + '.nls'], u)
1605 })
1606 }
1607 n.load = f
1608 }),
1609 (function () {
1610 var x, n
1611 const R = globalThis.MonacoEnvironment,
1612 D = R && R.baseUrl ? R.baseUrl : '../../../',
1613 i =
1614 typeof ((x = self.trustedTypes) === null || x === void 0 ? void 0 : x.createPolicy) ==
1615 'function'
1616 ? (n = self.trustedTypes) === null || n === void 0
1617 ? void 0
1618 : n.createPolicy('amdLoader', {
1619 createScriptURL: (e) => e,
1620 createScript: (e, ...b) => {
1621 const f = b.slice(0, -1).join(','),
1622 v = b.pop().toString()
1623 return `(function anonymous(${f}) { ${v}
1624})`
1625 },
1626 })
1627 : void 0
1628 function s() {
1629 try {
1630 return (
1631 (i ? globalThis.eval(i.createScript('', 'true')) : new Function('true')).call(
1632 globalThis
1633 ),
1634 !0
1635 )
1636 } catch {
1637 return !1
1638 }
1639 }
1640 function p() {
1641 return new Promise((e, b) => {
1642 if (typeof globalThis.define == 'function' && globalThis.define.amd) return e()
1643 const f = D + 'vs/loader.js'
1644 if (
1645 !(
1646 /^((http:)|(https:)|(file:))/.test(f) &&
1647 f.substring(0, globalThis.origin.length) !== globalThis.origin
1648 ) &&
1649 s()
1650 ) {
1651 fetch(f)
1652 .then((g) => {
1653 if (g.status !== 200) throw new Error(g.statusText)
1654 return g.text()
1655 })
1656 .then((g) => {
1657 ;(g = `${g}
1658//# sourceURL=${f}`),
1659 (i ? globalThis.eval(i.createScript('', g)) : new Function(g)).call(globalThis),
1660 e()
1661 })
1662 .then(void 0, b)
1663 return
1664 }
1665 i ? importScripts(i.createScriptURL(f)) : importScripts(f), e()
1666 })
1667 }
1668 function L() {
1669 require.config({
1670 baseUrl: D,
1671 catchError: !0,
1672 trustedTypesPolicy: i,
1673 amdModulesPattern: /^vs\//,
1674 })
1675 }
1676 function h(e) {
1677 p().then(() => {
1678 L(),
1679 require([e], function (b) {
1680 setTimeout(function () {
1681 const f = b.create((v, g) => {
1682 globalThis.postMessage(v, g)
1683 }, null)
1684 for (globalThis.onmessage = (v) => f.onmessage(v.data, v.ports); w.length > 0; ) {
1685 const v = w.shift()
1686 f.onmessage(v.data, v.ports)
1687 }
1688 }, 0)
1689 })
1690 })
1691 }
1692 typeof globalThis.define == 'function' && globalThis.define.amd && L()
1693 let a = !0
1694 const w = []
1695 globalThis.onmessage = (e) => {
1696 if (!a) {
1697 w.push(e)
1698 return
1699 }
1700 ;(a = !1), h(e.data)
1701 }
1702 })(),
1703 Q(Y[26], X([0, 1]), function (x, n) {
1704 'use strict'
1705 Object.defineProperty(n, '__esModule', { value: !0 }),
1706 (n.CallbackIterable =
1707 n.ArrayQueue =
1708 n.findMinBy =
1709 n.findLastMaxBy =
1710 n.findMaxBy =
1711 n.numberComparator =
1712 n.compareBy =
1713 n.CompareResult =
1714 n.splice =
1715 n.insertInto =
1716 n.asArray =
1717 n.pushMany =
1718 n.pushToEnd =
1719 n.pushToStart =
1720 n.arrayInsert =
1721 n.range =
1722 n.firstOrDefault =
1723 n.lastIndex =
1724 n.findLast =
1725 n.distinct =
1726 n.isNonEmptyArray =
1727 n.isFalsyOrEmpty =
1728 n.coalesceInPlace =
1729 n.coalesce =
1730 n.groupBy =
1731 n.quickSelect =
1732 n.findFirstInSorted =
1733 n.binarySearch2 =
1734 n.binarySearch =
1735 n.removeFastWithoutKeepingOrder =
1736 n.equals =
1737 n.tail2 =
1738 n.tail =
1739 void 0)
1740 function R(F, U = 0) {
1741 return F[F.length - (1 + U)]
1742 }
1743 n.tail = R
1744 function D(F) {
1745 if (F.length === 0) throw new Error('Invalid tail call')
1746 return [F.slice(0, F.length - 1), F[F.length - 1]]
1747 }
1748 n.tail2 = D
1749 function i(F, U, T = (W, t) => W === t) {
1750 if (F === U) return !0
1751 if (!F || !U || F.length !== U.length) return !1
1752 for (let W = 0, t = F.length; W < t; W++) if (!T(F[W], U[W])) return !1
1753 return !0
1754 }
1755 n.equals = i
1756 function s(F, U) {
1757 const T = F.length - 1
1758 U < T && (F[U] = F[T]), F.pop()
1759 }
1760 n.removeFastWithoutKeepingOrder = s
1761 function p(F, U, T) {
1762 return L(F.length, (W) => T(F[W], U))
1763 }
1764 n.binarySearch = p
1765 function L(F, U) {
1766 let T = 0,
1767 W = F - 1
1768 for (; T <= W; ) {
1769 const t = ((T + W) / 2) | 0,
1770 te = U(t)
1771 if (te < 0) T = t + 1
1772 else if (te > 0) W = t - 1
1773 else return t
1774 }
1775 return -(T + 1)
1776 }
1777 n.binarySearch2 = L
1778 function h(F, U) {
1779 let T = 0,
1780 W = F.length
1781 if (W === 0) return 0
1782 for (; T < W; ) {
1783 const t = Math.floor((T + W) / 2)
1784 U(F[t]) ? (W = t) : (T = t + 1)
1785 }
1786 return T
1787 }
1788 n.findFirstInSorted = h
1789 function a(F, U, T) {
1790 if (((F = F | 0), F >= U.length)) throw new TypeError('invalid index')
1791 const W = U[Math.floor(U.length * Math.random())],
1792 t = [],
1793 te = [],
1794 ie = []
1795 for (const ue of U) {
1796 const de = T(ue, W)
1797 de < 0 ? t.push(ue) : de > 0 ? te.push(ue) : ie.push(ue)
1798 }
1799 return F < t.length
1800 ? a(F, t, T)
1801 : F < t.length + ie.length
1802 ? ie[0]
1803 : a(F - (t.length + ie.length), te, T)
1804 }
1805 n.quickSelect = a
1806 function w(F, U) {
1807 const T = []
1808 let W
1809 for (const t of F.slice(0).sort(U))
1810 !W || U(W[0], t) !== 0 ? ((W = [t]), T.push(W)) : W.push(t)
1811 return T
1812 }
1813 n.groupBy = w
1814 function e(F) {
1815 return F.filter((U) => !!U)
1816 }
1817 n.coalesce = e
1818 function b(F) {
1819 let U = 0
1820 for (let T = 0; T < F.length; T++) F[T] && ((F[U] = F[T]), (U += 1))
1821 F.length = U
1822 }
1823 n.coalesceInPlace = b
1824 function f(F) {
1825 return !Array.isArray(F) || F.length === 0
1826 }
1827 n.isFalsyOrEmpty = f
1828 function v(F) {
1829 return Array.isArray(F) && F.length > 0
1830 }
1831 n.isNonEmptyArray = v
1832 function g(F, U = (T) => T) {
1833 const T = new Set()
1834 return F.filter((W) => {
1835 const t = U(W)
1836 return T.has(t) ? !1 : (T.add(t), !0)
1837 })
1838 }
1839 n.distinct = g
1840 function S(F, U) {
1841 const T = E(F, U)
1842 if (T !== -1) return F[T]
1843 }
1844 n.findLast = S
1845 function E(F, U) {
1846 for (let T = F.length - 1; T >= 0; T--) {
1847 const W = F[T]
1848 if (U(W)) return T
1849 }
1850 return -1
1851 }
1852 n.lastIndex = E
1853 function y(F, U) {
1854 return F.length > 0 ? F[0] : U
1855 }
1856 n.firstOrDefault = y
1857 function _(F, U) {
1858 let T = typeof U == 'number' ? F : 0
1859 typeof U == 'number' ? (T = F) : ((T = 0), (U = F))
1860 const W = []
1861 if (T <= U) for (let t = T; t < U; t++) W.push(t)
1862 else for (let t = T; t > U; t--) W.push(t)
1863 return W
1864 }
1865 n.range = _
1866 function d(F, U, T) {
1867 const W = F.slice(0, U),
1868 t = F.slice(U)
1869 return W.concat(T, t)
1870 }
1871 n.arrayInsert = d
1872 function C(F, U) {
1873 const T = F.indexOf(U)
1874 T > -1 && (F.splice(T, 1), F.unshift(U))
1875 }
1876 n.pushToStart = C
1877 function r(F, U) {
1878 const T = F.indexOf(U)
1879 T > -1 && (F.splice(T, 1), F.push(U))
1880 }
1881 n.pushToEnd = r
1882 function u(F, U) {
1883 for (const T of U) F.push(T)
1884 }
1885 n.pushMany = u
1886 function o(F) {
1887 return Array.isArray(F) ? F : [F]
1888 }
1889 n.asArray = o
1890 function c(F, U, T) {
1891 const W = m(F, U),
1892 t = F.length,
1893 te = T.length
1894 F.length = t + te
1895 for (let ie = t - 1; ie >= W; ie--) F[ie + te] = F[ie]
1896 for (let ie = 0; ie < te; ie++) F[ie + W] = T[ie]
1897 }
1898 n.insertInto = c
1899 function l(F, U, T, W) {
1900 const t = m(F, U),
1901 te = F.splice(t, T)
1902 return c(F, t, W), te
1903 }
1904 n.splice = l
1905 function m(F, U) {
1906 return U < 0 ? Math.max(U + F.length, 0) : Math.min(U, F.length)
1907 }
1908 var N
1909 ;(function (F) {
1910 function U(t) {
1911 return t < 0
1912 }
1913 F.isLessThan = U
1914 function T(t) {
1915 return t > 0
1916 }
1917 F.isGreaterThan = T
1918 function W(t) {
1919 return t === 0
1920 }
1921 ;(F.isNeitherLessOrGreaterThan = W),
1922 (F.greaterThan = 1),
1923 (F.lessThan = -1),
1924 (F.neitherLessOrGreaterThan = 0)
1925 })((N = n.CompareResult || (n.CompareResult = {})))
1926 function A(F, U) {
1927 return (T, W) => U(F(T), F(W))
1928 }
1929 n.compareBy = A
1930 const M = (F, U) => F - U
1931 n.numberComparator = M
1932 function k(F, U) {
1933 if (F.length === 0) return
1934 let T = F[0]
1935 for (let W = 1; W < F.length; W++) {
1936 const t = F[W]
1937 U(t, T) > 0 && (T = t)
1938 }
1939 return T
1940 }
1941 n.findMaxBy = k
1942 function q(F, U) {
1943 if (F.length === 0) return
1944 let T = F[0]
1945 for (let W = 1; W < F.length; W++) {
1946 const t = F[W]
1947 U(t, T) >= 0 && (T = t)
1948 }
1949 return T
1950 }
1951 n.findLastMaxBy = q
1952 function I(F, U) {
1953 return k(F, (T, W) => -U(T, W))
1954 }
1955 n.findMinBy = I
1956 class B {
1957 constructor(U) {
1958 ;(this.items = U), (this.firstIdx = 0), (this.lastIdx = this.items.length - 1)
1959 }
1960 get length() {
1961 return this.lastIdx - this.firstIdx + 1
1962 }
1963 takeWhile(U) {
1964 let T = this.firstIdx
1965 for (; T < this.items.length && U(this.items[T]); ) T++
1966 const W = T === this.firstIdx ? null : this.items.slice(this.firstIdx, T)
1967 return (this.firstIdx = T), W
1968 }
1969 takeFromEndWhile(U) {
1970 let T = this.lastIdx
1971 for (; T >= 0 && U(this.items[T]); ) T--
1972 const W = T === this.lastIdx ? null : this.items.slice(T + 1, this.lastIdx + 1)
1973 return (this.lastIdx = T), W
1974 }
1975 peek() {
1976 if (this.length !== 0) return this.items[this.firstIdx]
1977 }
1978 dequeue() {
1979 const U = this.items[this.firstIdx]
1980 return this.firstIdx++, U
1981 }
1982 takeCount(U) {
1983 const T = this.items.slice(this.firstIdx, this.firstIdx + U)
1984 return (this.firstIdx += U), T
1985 }
1986 }
1987 n.ArrayQueue = B
1988 class H {
1989 constructor(U) {
1990 this.iterate = U
1991 }
1992 toArray() {
1993 const U = []
1994 return this.iterate((T) => (U.push(T), !0)), U
1995 }
1996 filter(U) {
1997 return new H((T) => this.iterate((W) => (U(W) ? T(W) : !0)))
1998 }
1999 map(U) {
2000 return new H((T) => this.iterate((W) => T(U(W))))
2001 }
2002 findLast(U) {
2003 let T
2004 return this.iterate((W) => (U(W) && (T = W), !0)), T
2005 }
2006 findLastMaxBy(U) {
2007 let T,
2008 W = !0
2009 return (
2010 this.iterate((t) => ((W || N.isGreaterThan(U(t, T))) && ((W = !1), (T = t)), !0)), T
2011 )
2012 }
2013 }
2014 ;(H.empty = new H((F) => {})), (n.CallbackIterable = H)
2015 }),
2016 Q(Y[27], X([0, 1]), function (x, n) {
2017 'use strict'
2018 Object.defineProperty(n, '__esModule', { value: !0 }),
2019 (n.CachedFunction = n.LRUCachedFunction = void 0)
2020 class R {
2021 constructor(s) {
2022 ;(this.fn = s), (this.lastCache = void 0), (this.lastArgKey = void 0)
2023 }
2024 get(s) {
2025 const p = JSON.stringify(s)
2026 return (
2027 this.lastArgKey !== p && ((this.lastArgKey = p), (this.lastCache = this.fn(s))),
2028 this.lastCache
2029 )
2030 }
2031 }
2032 n.LRUCachedFunction = R
2033 class D {
2034 get cachedValues() {
2035 return this._map
2036 }
2037 constructor(s) {
2038 ;(this.fn = s), (this._map = new Map())
2039 }
2040 get(s) {
2041 if (this._map.has(s)) return this._map.get(s)
2042 const p = this.fn(s)
2043 return this._map.set(s, p), p
2044 }
2045 }
2046 n.CachedFunction = D
2047 }),
2048 Q(Y[28], X([0, 1]), function (x, n) {
2049 'use strict'
2050 Object.defineProperty(n, '__esModule', { value: !0 }), (n.DiffChange = void 0)
2051 class R {
2052 constructor(i, s, p, L) {
2053 ;(this.originalStart = i),
2054 (this.originalLength = s),
2055 (this.modifiedStart = p),
2056 (this.modifiedLength = L)
2057 }
2058 getOriginalEnd() {
2059 return this.originalStart + this.originalLength
2060 }
2061 getModifiedEnd() {
2062 return this.modifiedStart + this.modifiedLength
2063 }
2064 }
2065 n.DiffChange = R
2066 }),
2067 Q(Y[4], X([0, 1]), function (x, n) {
2068 'use strict'
2069 Object.defineProperty(n, '__esModule', { value: !0 }),
2070 (n.BugIndicatingError =
2071 n.ErrorNoTelemetry =
2072 n.NotSupportedError =
2073 n.illegalState =
2074 n.illegalArgument =
2075 n.canceled =
2076 n.CancellationError =
2077 n.isCancellationError =
2078 n.transformErrorForSerialization =
2079 n.onUnexpectedExternalError =
2080 n.onUnexpectedError =
2081 n.errorHandler =
2082 n.ErrorHandler =
2083 void 0)
2084 class R {
2085 constructor() {
2086 ;(this.listeners = []),
2087 (this.unexpectedErrorHandler = function (S) {
2088 setTimeout(() => {
2089 throw S.stack
2090 ? f.isErrorNoTelemetry(S)
2091 ? new f(
2092 S.message +
2093 `
2094
2095` +
2096 S.stack
2097 )
2098 : new Error(
2099 S.message +
2100 `
2101
2102` +
2103 S.stack
2104 )
2105 : S
2106 }, 0)
2107 })
2108 }
2109 emit(S) {
2110 this.listeners.forEach((E) => {
2111 E(S)
2112 })
2113 }
2114 onUnexpectedError(S) {
2115 this.unexpectedErrorHandler(S), this.emit(S)
2116 }
2117 onUnexpectedExternalError(S) {
2118 this.unexpectedErrorHandler(S)
2119 }
2120 }
2121 ;(n.ErrorHandler = R), (n.errorHandler = new R())
2122 function D(g) {
2123 L(g) || n.errorHandler.onUnexpectedError(g)
2124 }
2125 n.onUnexpectedError = D
2126 function i(g) {
2127 L(g) || n.errorHandler.onUnexpectedExternalError(g)
2128 }
2129 n.onUnexpectedExternalError = i
2130 function s(g) {
2131 if (g instanceof Error) {
2132 const { name: S, message: E } = g,
2133 y = g.stacktrace || g.stack
2134 return {
2135 $isError: !0,
2136 name: S,
2137 message: E,
2138 stack: y,
2139 noTelemetry: f.isErrorNoTelemetry(g),
2140 }
2141 }
2142 return g
2143 }
2144 n.transformErrorForSerialization = s
2145 const p = 'Canceled'
2146 function L(g) {
2147 return g instanceof h ? !0 : g instanceof Error && g.name === p && g.message === p
2148 }
2149 n.isCancellationError = L
2150 class h extends Error {
2151 constructor() {
2152 super(p), (this.name = this.message)
2153 }
2154 }
2155 n.CancellationError = h
2156 function a() {
2157 const g = new Error(p)
2158 return (g.name = g.message), g
2159 }
2160 n.canceled = a
2161 function w(g) {
2162 return g ? new Error(`Illegal argument: ${g}`) : new Error('Illegal argument')
2163 }
2164 n.illegalArgument = w
2165 function e(g) {
2166 return g ? new Error(`Illegal state: ${g}`) : new Error('Illegal state')
2167 }
2168 n.illegalState = e
2169 class b extends Error {
2170 constructor(S) {
2171 super('NotSupported'), S && (this.message = S)
2172 }
2173 }
2174 n.NotSupportedError = b
2175 class f extends Error {
2176 constructor(S) {
2177 super(S), (this.name = 'CodeExpectedError')
2178 }
2179 static fromError(S) {
2180 if (S instanceof f) return S
2181 const E = new f()
2182 return (E.message = S.message), (E.stack = S.stack), E
2183 }
2184 static isErrorNoTelemetry(S) {
2185 return S.name === 'CodeExpectedError'
2186 }
2187 }
2188 n.ErrorNoTelemetry = f
2189 class v extends Error {
2190 constructor(S) {
2191 super(S || 'An unexpected bug occurred.'), Object.setPrototypeOf(this, v.prototype)
2192 debugger
2193 }
2194 }
2195 n.BugIndicatingError = v
2196 }),
2197 Q(Y[10], X([0, 1, 4]), function (x, n, R) {
2198 'use strict'
2199 Object.defineProperty(n, '__esModule', { value: !0 }),
2200 (n.checkAdjacentItems = n.assertFn = n.assertNever = n.ok = void 0)
2201 function D(L, h) {
2202 if (!L) throw new Error(h ? `Assertion failed (${h})` : 'Assertion Failed')
2203 }
2204 n.ok = D
2205 function i(L, h = 'Unreachable') {
2206 throw new Error(h)
2207 }
2208 n.assertNever = i
2209 function s(L) {
2210 if (!L()) {
2211 debugger
2212 L(), (0, R.onUnexpectedError)(new R.BugIndicatingError('Assertion Failed'))
2213 }
2214 }
2215 n.assertFn = s
2216 function p(L, h) {
2217 let a = 0
2218 for (; a < L.length - 1; ) {
2219 const w = L[a],
2220 e = L[a + 1]
2221 if (!h(w, e)) return !1
2222 a++
2223 }
2224 return !0
2225 }
2226 n.checkAdjacentItems = p
2227 }),
2228 Q(Y[14], X([0, 1]), function (x, n) {
2229 'use strict'
2230 Object.defineProperty(n, '__esModule', { value: !0 }), (n.once = void 0)
2231 function R(D) {
2232 const i = this
2233 let s = !1,
2234 p
2235 return function () {
2236 return s || ((s = !0), (p = D.apply(i, arguments))), p
2237 }
2238 }
2239 n.once = R
2240 }),
2241 Q(Y[15], X([0, 1]), function (x, n) {
2242 'use strict'
2243 Object.defineProperty(n, '__esModule', { value: !0 }), (n.Iterable = void 0)
2244 var R
2245 ;(function (D) {
2246 function i(d) {
2247 return d && typeof d == 'object' && typeof d[Symbol.iterator] == 'function'
2248 }
2249 D.is = i
2250 const s = Object.freeze([])
2251 function p() {
2252 return s
2253 }
2254 D.empty = p
2255 function* L(d) {
2256 yield d
2257 }
2258 D.single = L
2259 function h(d) {
2260 return i(d) ? d : L(d)
2261 }
2262 D.wrap = h
2263 function a(d) {
2264 return d || s
2265 }
2266 D.from = a
2267 function w(d) {
2268 return !d || d[Symbol.iterator]().next().done === !0
2269 }
2270 D.isEmpty = w
2271 function e(d) {
2272 return d[Symbol.iterator]().next().value
2273 }
2274 D.first = e
2275 function b(d, C) {
2276 for (const r of d) if (C(r)) return !0
2277 return !1
2278 }
2279 D.some = b
2280 function f(d, C) {
2281 for (const r of d) if (C(r)) return r
2282 }
2283 D.find = f
2284 function* v(d, C) {
2285 for (const r of d) C(r) && (yield r)
2286 }
2287 D.filter = v
2288 function* g(d, C) {
2289 let r = 0
2290 for (const u of d) yield C(u, r++)
2291 }
2292 D.map = g
2293 function* S(...d) {
2294 for (const C of d) for (const r of C) yield r
2295 }
2296 D.concat = S
2297 function E(d, C, r) {
2298 let u = r
2299 for (const o of d) u = C(u, o)
2300 return u
2301 }
2302 D.reduce = E
2303 function* y(d, C, r = d.length) {
2304 for (
2305 C < 0 && (C += d.length), r < 0 ? (r += d.length) : r > d.length && (r = d.length);
2306 C < r;
2307 C++
2308 )
2309 yield d[C]
2310 }
2311 D.slice = y
2312 function _(d, C = Number.POSITIVE_INFINITY) {
2313 const r = []
2314 if (C === 0) return [r, d]
2315 const u = d[Symbol.iterator]()
2316 for (let o = 0; o < C; o++) {
2317 const c = u.next()
2318 if (c.done) return [r, D.empty()]
2319 r.push(c.value)
2320 }
2321 return [
2322 r,
2323 {
2324 [Symbol.iterator]() {
2325 return u
2326 },
2327 },
2328 ]
2329 }
2330 D.consume = _
2331 })((R = n.Iterable || (n.Iterable = {})))
2332 }),
2333 Q(Y[29], X([0, 1]), function (x, n) {
2334 'use strict'
2335 Object.defineProperty(n, '__esModule', { value: !0 }),
2336 (n.KeyChord =
2337 n.KeyCodeUtils =
2338 n.IMMUTABLE_KEY_CODE_TO_CODE =
2339 n.IMMUTABLE_CODE_TO_KEY_CODE =
2340 n.NATIVE_WINDOWS_KEY_CODE_TO_KEY_CODE =
2341 n.EVENT_KEY_CODE_MAP =
2342 void 0)
2343 class R {
2344 constructor() {
2345 ;(this._keyCodeToStr = []), (this._strToKeyCode = Object.create(null))
2346 }
2347 define(b, f) {
2348 ;(this._keyCodeToStr[b] = f), (this._strToKeyCode[f.toLowerCase()] = b)
2349 }
2350 keyCodeToStr(b) {
2351 return this._keyCodeToStr[b]
2352 }
2353 strToKeyCode(b) {
2354 return this._strToKeyCode[b.toLowerCase()] || 0
2355 }
2356 }
2357 const D = new R(),
2358 i = new R(),
2359 s = new R()
2360 ;(n.EVENT_KEY_CODE_MAP = new Array(230)), (n.NATIVE_WINDOWS_KEY_CODE_TO_KEY_CODE = {})
2361 const p = [],
2362 L = Object.create(null),
2363 h = Object.create(null)
2364 ;(n.IMMUTABLE_CODE_TO_KEY_CODE = []), (n.IMMUTABLE_KEY_CODE_TO_CODE = [])
2365 for (let e = 0; e <= 193; e++) n.IMMUTABLE_CODE_TO_KEY_CODE[e] = -1
2366 for (let e = 0; e <= 127; e++) n.IMMUTABLE_KEY_CODE_TO_CODE[e] = -1
2367 ;(function () {
2368 const e = '',
2369 b = [
2370 [0, 1, 0, 'None', 0, 'unknown', 0, 'VK_UNKNOWN', e, e],
2371 [0, 1, 1, 'Hyper', 0, e, 0, e, e, e],
2372 [0, 1, 2, 'Super', 0, e, 0, e, e, e],
2373 [0, 1, 3, 'Fn', 0, e, 0, e, e, e],
2374 [0, 1, 4, 'FnLock', 0, e, 0, e, e, e],
2375 [0, 1, 5, 'Suspend', 0, e, 0, e, e, e],
2376 [0, 1, 6, 'Resume', 0, e, 0, e, e, e],
2377 [0, 1, 7, 'Turbo', 0, e, 0, e, e, e],
2378 [0, 1, 8, 'Sleep', 0, e, 0, 'VK_SLEEP', e, e],
2379 [0, 1, 9, 'WakeUp', 0, e, 0, e, e, e],
2380 [31, 0, 10, 'KeyA', 31, 'A', 65, 'VK_A', e, e],
2381 [32, 0, 11, 'KeyB', 32, 'B', 66, 'VK_B', e, e],
2382 [33, 0, 12, 'KeyC', 33, 'C', 67, 'VK_C', e, e],
2383 [34, 0, 13, 'KeyD', 34, 'D', 68, 'VK_D', e, e],
2384 [35, 0, 14, 'KeyE', 35, 'E', 69, 'VK_E', e, e],
2385 [36, 0, 15, 'KeyF', 36, 'F', 70, 'VK_F', e, e],
2386 [37, 0, 16, 'KeyG', 37, 'G', 71, 'VK_G', e, e],
2387 [38, 0, 17, 'KeyH', 38, 'H', 72, 'VK_H', e, e],
2388 [39, 0, 18, 'KeyI', 39, 'I', 73, 'VK_I', e, e],
2389 [40, 0, 19, 'KeyJ', 40, 'J', 74, 'VK_J', e, e],
2390 [41, 0, 20, 'KeyK', 41, 'K', 75, 'VK_K', e, e],
2391 [42, 0, 21, 'KeyL', 42, 'L', 76, 'VK_L', e, e],
2392 [43, 0, 22, 'KeyM', 43, 'M', 77, 'VK_M', e, e],
2393 [44, 0, 23, 'KeyN', 44, 'N', 78, 'VK_N', e, e],
2394 [45, 0, 24, 'KeyO', 45, 'O', 79, 'VK_O', e, e],
2395 [46, 0, 25, 'KeyP', 46, 'P', 80, 'VK_P', e, e],
2396 [47, 0, 26, 'KeyQ', 47, 'Q', 81, 'VK_Q', e, e],
2397 [48, 0, 27, 'KeyR', 48, 'R', 82, 'VK_R', e, e],
2398 [49, 0, 28, 'KeyS', 49, 'S', 83, 'VK_S', e, e],
2399 [50, 0, 29, 'KeyT', 50, 'T', 84, 'VK_T', e, e],
2400 [51, 0, 30, 'KeyU', 51, 'U', 85, 'VK_U', e, e],
2401 [52, 0, 31, 'KeyV', 52, 'V', 86, 'VK_V', e, e],
2402 [53, 0, 32, 'KeyW', 53, 'W', 87, 'VK_W', e, e],
2403 [54, 0, 33, 'KeyX', 54, 'X', 88, 'VK_X', e, e],
2404 [55, 0, 34, 'KeyY', 55, 'Y', 89, 'VK_Y', e, e],
2405 [56, 0, 35, 'KeyZ', 56, 'Z', 90, 'VK_Z', e, e],
2406 [22, 0, 36, 'Digit1', 22, '1', 49, 'VK_1', e, e],
2407 [23, 0, 37, 'Digit2', 23, '2', 50, 'VK_2', e, e],
2408 [24, 0, 38, 'Digit3', 24, '3', 51, 'VK_3', e, e],
2409 [25, 0, 39, 'Digit4', 25, '4', 52, 'VK_4', e, e],
2410 [26, 0, 40, 'Digit5', 26, '5', 53, 'VK_5', e, e],
2411 [27, 0, 41, 'Digit6', 27, '6', 54, 'VK_6', e, e],
2412 [28, 0, 42, 'Digit7', 28, '7', 55, 'VK_7', e, e],
2413 [29, 0, 43, 'Digit8', 29, '8', 56, 'VK_8', e, e],
2414 [30, 0, 44, 'Digit9', 30, '9', 57, 'VK_9', e, e],
2415 [21, 0, 45, 'Digit0', 21, '0', 48, 'VK_0', e, e],
2416 [3, 1, 46, 'Enter', 3, 'Enter', 13, 'VK_RETURN', e, e],
2417 [9, 1, 47, 'Escape', 9, 'Escape', 27, 'VK_ESCAPE', e, e],
2418 [1, 1, 48, 'Backspace', 1, 'Backspace', 8, 'VK_BACK', e, e],
2419 [2, 1, 49, 'Tab', 2, 'Tab', 9, 'VK_TAB', e, e],
2420 [10, 1, 50, 'Space', 10, 'Space', 32, 'VK_SPACE', e, e],
2421 [83, 0, 51, 'Minus', 83, '-', 189, 'VK_OEM_MINUS', '-', 'OEM_MINUS'],
2422 [81, 0, 52, 'Equal', 81, '=', 187, 'VK_OEM_PLUS', '=', 'OEM_PLUS'],
2423 [87, 0, 53, 'BracketLeft', 87, '[', 219, 'VK_OEM_4', '[', 'OEM_4'],
2424 [89, 0, 54, 'BracketRight', 89, ']', 221, 'VK_OEM_6', ']', 'OEM_6'],
2425 [88, 0, 55, 'Backslash', 88, '\\', 220, 'VK_OEM_5', '\\', 'OEM_5'],
2426 [0, 0, 56, 'IntlHash', 0, e, 0, e, e, e],
2427 [80, 0, 57, 'Semicolon', 80, ';', 186, 'VK_OEM_1', ';', 'OEM_1'],
2428 [90, 0, 58, 'Quote', 90, "'", 222, 'VK_OEM_7', "'", 'OEM_7'],
2429 [86, 0, 59, 'Backquote', 86, '`', 192, 'VK_OEM_3', '`', 'OEM_3'],
2430 [82, 0, 60, 'Comma', 82, ',', 188, 'VK_OEM_COMMA', ',', 'OEM_COMMA'],
2431 [84, 0, 61, 'Period', 84, '.', 190, 'VK_OEM_PERIOD', '.', 'OEM_PERIOD'],
2432 [85, 0, 62, 'Slash', 85, '/', 191, 'VK_OEM_2', '/', 'OEM_2'],
2433 [8, 1, 63, 'CapsLock', 8, 'CapsLock', 20, 'VK_CAPITAL', e, e],
2434 [59, 1, 64, 'F1', 59, 'F1', 112, 'VK_F1', e, e],
2435 [60, 1, 65, 'F2', 60, 'F2', 113, 'VK_F2', e, e],
2436 [61, 1, 66, 'F3', 61, 'F3', 114, 'VK_F3', e, e],
2437 [62, 1, 67, 'F4', 62, 'F4', 115, 'VK_F4', e, e],
2438 [63, 1, 68, 'F5', 63, 'F5', 116, 'VK_F5', e, e],
2439 [64, 1, 69, 'F6', 64, 'F6', 117, 'VK_F6', e, e],
2440 [65, 1, 70, 'F7', 65, 'F7', 118, 'VK_F7', e, e],
2441 [66, 1, 71, 'F8', 66, 'F8', 119, 'VK_F8', e, e],
2442 [67, 1, 72, 'F9', 67, 'F9', 120, 'VK_F9', e, e],
2443 [68, 1, 73, 'F10', 68, 'F10', 121, 'VK_F10', e, e],
2444 [69, 1, 74, 'F11', 69, 'F11', 122, 'VK_F11', e, e],
2445 [70, 1, 75, 'F12', 70, 'F12', 123, 'VK_F12', e, e],
2446 [0, 1, 76, 'PrintScreen', 0, e, 0, e, e, e],
2447 [79, 1, 77, 'ScrollLock', 79, 'ScrollLock', 145, 'VK_SCROLL', e, e],
2448 [7, 1, 78, 'Pause', 7, 'PauseBreak', 19, 'VK_PAUSE', e, e],
2449 [19, 1, 79, 'Insert', 19, 'Insert', 45, 'VK_INSERT', e, e],
2450 [14, 1, 80, 'Home', 14, 'Home', 36, 'VK_HOME', e, e],
2451 [11, 1, 81, 'PageUp', 11, 'PageUp', 33, 'VK_PRIOR', e, e],
2452 [20, 1, 82, 'Delete', 20, 'Delete', 46, 'VK_DELETE', e, e],
2453 [13, 1, 83, 'End', 13, 'End', 35, 'VK_END', e, e],
2454 [12, 1, 84, 'PageDown', 12, 'PageDown', 34, 'VK_NEXT', e, e],
2455 [17, 1, 85, 'ArrowRight', 17, 'RightArrow', 39, 'VK_RIGHT', 'Right', e],
2456 [15, 1, 86, 'ArrowLeft', 15, 'LeftArrow', 37, 'VK_LEFT', 'Left', e],
2457 [18, 1, 87, 'ArrowDown', 18, 'DownArrow', 40, 'VK_DOWN', 'Down', e],
2458 [16, 1, 88, 'ArrowUp', 16, 'UpArrow', 38, 'VK_UP', 'Up', e],
2459 [78, 1, 89, 'NumLock', 78, 'NumLock', 144, 'VK_NUMLOCK', e, e],
2460 [108, 1, 90, 'NumpadDivide', 108, 'NumPad_Divide', 111, 'VK_DIVIDE', e, e],
2461 [103, 1, 91, 'NumpadMultiply', 103, 'NumPad_Multiply', 106, 'VK_MULTIPLY', e, e],
2462 [106, 1, 92, 'NumpadSubtract', 106, 'NumPad_Subtract', 109, 'VK_SUBTRACT', e, e],
2463 [104, 1, 93, 'NumpadAdd', 104, 'NumPad_Add', 107, 'VK_ADD', e, e],
2464 [3, 1, 94, 'NumpadEnter', 3, e, 0, e, e, e],
2465 [94, 1, 95, 'Numpad1', 94, 'NumPad1', 97, 'VK_NUMPAD1', e, e],
2466 [95, 1, 96, 'Numpad2', 95, 'NumPad2', 98, 'VK_NUMPAD2', e, e],
2467 [96, 1, 97, 'Numpad3', 96, 'NumPad3', 99, 'VK_NUMPAD3', e, e],
2468 [97, 1, 98, 'Numpad4', 97, 'NumPad4', 100, 'VK_NUMPAD4', e, e],
2469 [98, 1, 99, 'Numpad5', 98, 'NumPad5', 101, 'VK_NUMPAD5', e, e],
2470 [99, 1, 100, 'Numpad6', 99, 'NumPad6', 102, 'VK_NUMPAD6', e, e],
2471 [100, 1, 101, 'Numpad7', 100, 'NumPad7', 103, 'VK_NUMPAD7', e, e],
2472 [101, 1, 102, 'Numpad8', 101, 'NumPad8', 104, 'VK_NUMPAD8', e, e],
2473 [102, 1, 103, 'Numpad9', 102, 'NumPad9', 105, 'VK_NUMPAD9', e, e],
2474 [93, 1, 104, 'Numpad0', 93, 'NumPad0', 96, 'VK_NUMPAD0', e, e],
2475 [107, 1, 105, 'NumpadDecimal', 107, 'NumPad_Decimal', 110, 'VK_DECIMAL', e, e],
2476 [92, 0, 106, 'IntlBackslash', 92, 'OEM_102', 226, 'VK_OEM_102', e, e],
2477 [58, 1, 107, 'ContextMenu', 58, 'ContextMenu', 93, e, e, e],
2478 [0, 1, 108, 'Power', 0, e, 0, e, e, e],
2479 [0, 1, 109, 'NumpadEqual', 0, e, 0, e, e, e],
2480 [71, 1, 110, 'F13', 71, 'F13', 124, 'VK_F13', e, e],
2481 [72, 1, 111, 'F14', 72, 'F14', 125, 'VK_F14', e, e],
2482 [73, 1, 112, 'F15', 73, 'F15', 126, 'VK_F15', e, e],
2483 [74, 1, 113, 'F16', 74, 'F16', 127, 'VK_F16', e, e],
2484 [75, 1, 114, 'F17', 75, 'F17', 128, 'VK_F17', e, e],
2485 [76, 1, 115, 'F18', 76, 'F18', 129, 'VK_F18', e, e],
2486 [77, 1, 116, 'F19', 77, 'F19', 130, 'VK_F19', e, e],
2487 [0, 1, 117, 'F20', 0, e, 0, 'VK_F20', e, e],
2488 [0, 1, 118, 'F21', 0, e, 0, 'VK_F21', e, e],
2489 [0, 1, 119, 'F22', 0, e, 0, 'VK_F22', e, e],
2490 [0, 1, 120, 'F23', 0, e, 0, 'VK_F23', e, e],
2491 [0, 1, 121, 'F24', 0, e, 0, 'VK_F24', e, e],
2492 [0, 1, 122, 'Open', 0, e, 0, e, e, e],
2493 [0, 1, 123, 'Help', 0, e, 0, e, e, e],
2494 [0, 1, 124, 'Select', 0, e, 0, e, e, e],
2495 [0, 1, 125, 'Again', 0, e, 0, e, e, e],
2496 [0, 1, 126, 'Undo', 0, e, 0, e, e, e],
2497 [0, 1, 127, 'Cut', 0, e, 0, e, e, e],
2498 [0, 1, 128, 'Copy', 0, e, 0, e, e, e],
2499 [0, 1, 129, 'Paste', 0, e, 0, e, e, e],
2500 [0, 1, 130, 'Find', 0, e, 0, e, e, e],
2501 [0, 1, 131, 'AudioVolumeMute', 112, 'AudioVolumeMute', 173, 'VK_VOLUME_MUTE', e, e],
2502 [0, 1, 132, 'AudioVolumeUp', 113, 'AudioVolumeUp', 175, 'VK_VOLUME_UP', e, e],
2503 [0, 1, 133, 'AudioVolumeDown', 114, 'AudioVolumeDown', 174, 'VK_VOLUME_DOWN', e, e],
2504 [105, 1, 134, 'NumpadComma', 105, 'NumPad_Separator', 108, 'VK_SEPARATOR', e, e],
2505 [110, 0, 135, 'IntlRo', 110, 'ABNT_C1', 193, 'VK_ABNT_C1', e, e],
2506 [0, 1, 136, 'KanaMode', 0, e, 0, e, e, e],
2507 [0, 0, 137, 'IntlYen', 0, e, 0, e, e, e],
2508 [0, 1, 138, 'Convert', 0, e, 0, e, e, e],
2509 [0, 1, 139, 'NonConvert', 0, e, 0, e, e, e],
2510 [0, 1, 140, 'Lang1', 0, e, 0, e, e, e],
2511 [0, 1, 141, 'Lang2', 0, e, 0, e, e, e],
2512 [0, 1, 142, 'Lang3', 0, e, 0, e, e, e],
2513 [0, 1, 143, 'Lang4', 0, e, 0, e, e, e],
2514 [0, 1, 144, 'Lang5', 0, e, 0, e, e, e],
2515 [0, 1, 145, 'Abort', 0, e, 0, e, e, e],
2516 [0, 1, 146, 'Props', 0, e, 0, e, e, e],
2517 [0, 1, 147, 'NumpadParenLeft', 0, e, 0, e, e, e],
2518 [0, 1, 148, 'NumpadParenRight', 0, e, 0, e, e, e],
2519 [0, 1, 149, 'NumpadBackspace', 0, e, 0, e, e, e],
2520 [0, 1, 150, 'NumpadMemoryStore', 0, e, 0, e, e, e],
2521 [0, 1, 151, 'NumpadMemoryRecall', 0, e, 0, e, e, e],
2522 [0, 1, 152, 'NumpadMemoryClear', 0, e, 0, e, e, e],
2523 [0, 1, 153, 'NumpadMemoryAdd', 0, e, 0, e, e, e],
2524 [0, 1, 154, 'NumpadMemorySubtract', 0, e, 0, e, e, e],
2525 [0, 1, 155, 'NumpadClear', 126, 'Clear', 12, 'VK_CLEAR', e, e],
2526 [0, 1, 156, 'NumpadClearEntry', 0, e, 0, e, e, e],
2527 [5, 1, 0, e, 5, 'Ctrl', 17, 'VK_CONTROL', e, e],
2528 [4, 1, 0, e, 4, 'Shift', 16, 'VK_SHIFT', e, e],
2529 [6, 1, 0, e, 6, 'Alt', 18, 'VK_MENU', e, e],
2530 [57, 1, 0, e, 57, 'Meta', 91, 'VK_COMMAND', e, e],
2531 [5, 1, 157, 'ControlLeft', 5, e, 0, 'VK_LCONTROL', e, e],
2532 [4, 1, 158, 'ShiftLeft', 4, e, 0, 'VK_LSHIFT', e, e],
2533 [6, 1, 159, 'AltLeft', 6, e, 0, 'VK_LMENU', e, e],
2534 [57, 1, 160, 'MetaLeft', 57, e, 0, 'VK_LWIN', e, e],
2535 [5, 1, 161, 'ControlRight', 5, e, 0, 'VK_RCONTROL', e, e],
2536 [4, 1, 162, 'ShiftRight', 4, e, 0, 'VK_RSHIFT', e, e],
2537 [6, 1, 163, 'AltRight', 6, e, 0, 'VK_RMENU', e, e],
2538 [57, 1, 164, 'MetaRight', 57, e, 0, 'VK_RWIN', e, e],
2539 [0, 1, 165, 'BrightnessUp', 0, e, 0, e, e, e],
2540 [0, 1, 166, 'BrightnessDown', 0, e, 0, e, e, e],
2541 [0, 1, 167, 'MediaPlay', 0, e, 0, e, e, e],
2542 [0, 1, 168, 'MediaRecord', 0, e, 0, e, e, e],
2543 [0, 1, 169, 'MediaFastForward', 0, e, 0, e, e, e],
2544 [0, 1, 170, 'MediaRewind', 0, e, 0, e, e, e],
2545 [
2546 114,
2547 1,
2548 171,
2549 'MediaTrackNext',
2550 119,
2551 'MediaTrackNext',
2552 176,
2553 'VK_MEDIA_NEXT_TRACK',
2554 e,
2555 e,
2556 ],
2557 [
2558 115,
2559 1,
2560 172,
2561 'MediaTrackPrevious',
2562 120,
2563 'MediaTrackPrevious',
2564 177,
2565 'VK_MEDIA_PREV_TRACK',
2566 e,
2567 e,
2568 ],
2569 [116, 1, 173, 'MediaStop', 121, 'MediaStop', 178, 'VK_MEDIA_STOP', e, e],
2570 [0, 1, 174, 'Eject', 0, e, 0, e, e, e],
2571 [
2572 117,
2573 1,
2574 175,
2575 'MediaPlayPause',
2576 122,
2577 'MediaPlayPause',
2578 179,
2579 'VK_MEDIA_PLAY_PAUSE',
2580 e,
2581 e,
2582 ],
2583 [
2584 0,
2585 1,
2586 176,
2587 'MediaSelect',
2588 123,
2589 'LaunchMediaPlayer',
2590 181,
2591 'VK_MEDIA_LAUNCH_MEDIA_SELECT',
2592 e,
2593 e,
2594 ],
2595 [0, 1, 177, 'LaunchMail', 124, 'LaunchMail', 180, 'VK_MEDIA_LAUNCH_MAIL', e, e],
2596 [0, 1, 178, 'LaunchApp2', 125, 'LaunchApp2', 183, 'VK_MEDIA_LAUNCH_APP2', e, e],
2597 [0, 1, 179, 'LaunchApp1', 0, e, 0, 'VK_MEDIA_LAUNCH_APP1', e, e],
2598 [0, 1, 180, 'SelectTask', 0, e, 0, e, e, e],
2599 [0, 1, 181, 'LaunchScreenSaver', 0, e, 0, e, e, e],
2600 [0, 1, 182, 'BrowserSearch', 115, 'BrowserSearch', 170, 'VK_BROWSER_SEARCH', e, e],
2601 [0, 1, 183, 'BrowserHome', 116, 'BrowserHome', 172, 'VK_BROWSER_HOME', e, e],
2602 [112, 1, 184, 'BrowserBack', 117, 'BrowserBack', 166, 'VK_BROWSER_BACK', e, e],
2603 [113, 1, 185, 'BrowserForward', 118, 'BrowserForward', 167, 'VK_BROWSER_FORWARD', e, e],
2604 [0, 1, 186, 'BrowserStop', 0, e, 0, 'VK_BROWSER_STOP', e, e],
2605 [0, 1, 187, 'BrowserRefresh', 0, e, 0, 'VK_BROWSER_REFRESH', e, e],
2606 [0, 1, 188, 'BrowserFavorites', 0, e, 0, 'VK_BROWSER_FAVORITES', e, e],
2607 [0, 1, 189, 'ZoomToggle', 0, e, 0, e, e, e],
2608 [0, 1, 190, 'MailReply', 0, e, 0, e, e, e],
2609 [0, 1, 191, 'MailForward', 0, e, 0, e, e, e],
2610 [0, 1, 192, 'MailSend', 0, e, 0, e, e, e],
2611 [109, 1, 0, e, 109, 'KeyInComposition', 229, e, e, e],
2612 [111, 1, 0, e, 111, 'ABNT_C2', 194, 'VK_ABNT_C2', e, e],
2613 [91, 1, 0, e, 91, 'OEM_8', 223, 'VK_OEM_8', e, e],
2614 [0, 1, 0, e, 0, e, 0, 'VK_KANA', e, e],
2615 [0, 1, 0, e, 0, e, 0, 'VK_HANGUL', e, e],
2616 [0, 1, 0, e, 0, e, 0, 'VK_JUNJA', e, e],
2617 [0, 1, 0, e, 0, e, 0, 'VK_FINAL', e, e],
2618 [0, 1, 0, e, 0, e, 0, 'VK_HANJA', e, e],
2619 [0, 1, 0, e, 0, e, 0, 'VK_KANJI', e, e],
2620 [0, 1, 0, e, 0, e, 0, 'VK_CONVERT', e, e],
2621 [0, 1, 0, e, 0, e, 0, 'VK_NONCONVERT', e, e],
2622 [0, 1, 0, e, 0, e, 0, 'VK_ACCEPT', e, e],
2623 [0, 1, 0, e, 0, e, 0, 'VK_MODECHANGE', e, e],
2624 [0, 1, 0, e, 0, e, 0, 'VK_SELECT', e, e],
2625 [0, 1, 0, e, 0, e, 0, 'VK_PRINT', e, e],
2626 [0, 1, 0, e, 0, e, 0, 'VK_EXECUTE', e, e],
2627 [0, 1, 0, e, 0, e, 0, 'VK_SNAPSHOT', e, e],
2628 [0, 1, 0, e, 0, e, 0, 'VK_HELP', e, e],
2629 [0, 1, 0, e, 0, e, 0, 'VK_APPS', e, e],
2630 [0, 1, 0, e, 0, e, 0, 'VK_PROCESSKEY', e, e],
2631 [0, 1, 0, e, 0, e, 0, 'VK_PACKET', e, e],
2632 [0, 1, 0, e, 0, e, 0, 'VK_DBE_SBCSCHAR', e, e],
2633 [0, 1, 0, e, 0, e, 0, 'VK_DBE_DBCSCHAR', e, e],
2634 [0, 1, 0, e, 0, e, 0, 'VK_ATTN', e, e],
2635 [0, 1, 0, e, 0, e, 0, 'VK_CRSEL', e, e],
2636 [0, 1, 0, e, 0, e, 0, 'VK_EXSEL', e, e],
2637 [0, 1, 0, e, 0, e, 0, 'VK_EREOF', e, e],
2638 [0, 1, 0, e, 0, e, 0, 'VK_PLAY', e, e],
2639 [0, 1, 0, e, 0, e, 0, 'VK_ZOOM', e, e],
2640 [0, 1, 0, e, 0, e, 0, 'VK_NONAME', e, e],
2641 [0, 1, 0, e, 0, e, 0, 'VK_PA1', e, e],
2642 [0, 1, 0, e, 0, e, 0, 'VK_OEM_CLEAR', e, e],
2643 ],
2644 f = [],
2645 v = []
2646 for (const g of b) {
2647 const [S, E, y, _, d, C, r, u, o, c] = g
2648 if (
2649 (v[y] ||
2650 ((v[y] = !0),
2651 (p[y] = _),
2652 (L[_] = y),
2653 (h[_.toLowerCase()] = y),
2654 E &&
2655 ((n.IMMUTABLE_CODE_TO_KEY_CODE[y] = d),
2656 d !== 0 &&
2657 d !== 3 &&
2658 d !== 5 &&
2659 d !== 4 &&
2660 d !== 6 &&
2661 d !== 57 &&
2662 (n.IMMUTABLE_KEY_CODE_TO_CODE[d] = y))),
2663 !f[d])
2664 ) {
2665 if (((f[d] = !0), !C))
2666 throw new Error(
2667 `String representation missing for key code ${d} around scan code ${_}`
2668 )
2669 D.define(d, C), i.define(d, o || C), s.define(d, c || o || C)
2670 }
2671 r && (n.EVENT_KEY_CODE_MAP[r] = d), u && (n.NATIVE_WINDOWS_KEY_CODE_TO_KEY_CODE[u] = d)
2672 }
2673 n.IMMUTABLE_KEY_CODE_TO_CODE[3] = 46
2674 })()
2675 var a
2676 ;(function (e) {
2677 function b(y) {
2678 return D.keyCodeToStr(y)
2679 }
2680 e.toString = b
2681 function f(y) {
2682 return D.strToKeyCode(y)
2683 }
2684 e.fromString = f
2685 function v(y) {
2686 return i.keyCodeToStr(y)
2687 }
2688 e.toUserSettingsUS = v
2689 function g(y) {
2690 return s.keyCodeToStr(y)
2691 }
2692 e.toUserSettingsGeneral = g
2693 function S(y) {
2694 return i.strToKeyCode(y) || s.strToKeyCode(y)
2695 }
2696 e.fromUserSettings = S
2697 function E(y) {
2698 if (y >= 93 && y <= 108) return null
2699 switch (y) {
2700 case 16:
2701 return 'Up'
2702 case 18:
2703 return 'Down'
2704 case 15:
2705 return 'Left'
2706 case 17:
2707 return 'Right'
2708 }
2709 return D.keyCodeToStr(y)
2710 }
2711 e.toElectronAccelerator = E
2712 })((a = n.KeyCodeUtils || (n.KeyCodeUtils = {})))
2713 function w(e, b) {
2714 const f = ((b & 65535) << 16) >>> 0
2715 return (e | f) >>> 0
2716 }
2717 n.KeyChord = w
2718 }),
2719 Q(Y[30], X([0, 1]), function (x, n) {
2720 'use strict'
2721 Object.defineProperty(n, '__esModule', { value: !0 }), (n.Lazy = void 0)
2722 class R {
2723 constructor(i) {
2724 ;(this.executor = i), (this._didRun = !1)
2725 }
2726 get value() {
2727 if (!this._didRun)
2728 try {
2729 this._value = this.executor()
2730 } catch (i) {
2731 this._error = i
2732 } finally {
2733 this._didRun = !0
2734 }
2735 if (this._error) throw this._error
2736 return this._value
2737 }
2738 get rawValue() {
2739 return this._value
2740 }
2741 }
2742 n.Lazy = R
2743 }),
2744 Q(Y[11], X([0, 1, 14, 15]), function (x, n, R, D) {
2745 'use strict'
2746 Object.defineProperty(n, '__esModule', { value: !0 }),
2747 (n.DisposableMap =
2748 n.ImmortalReference =
2749 n.SafeDisposable =
2750 n.RefCountedDisposable =
2751 n.MutableDisposable =
2752 n.Disposable =
2753 n.DisposableStore =
2754 n.toDisposable =
2755 n.combinedDisposable =
2756 n.dispose =
2757 n.isDisposable =
2758 n.markAsSingleton =
2759 n.setDisposableTracker =
2760 void 0)
2761 const i = !1
2762 let s = null
2763 function p(u) {
2764 s = u
2765 }
2766 if (((n.setDisposableTracker = p), i)) {
2767 const u = '__is_disposable_tracked__'
2768 p(
2769 new (class {
2770 trackDisposable(o) {
2771 const c = new Error('Potentially leaked disposable').stack
2772 setTimeout(() => {
2773 o[u] || console.log(c)
2774 }, 3e3)
2775 }
2776 setParent(o, c) {
2777 if (o && o !== E.None)
2778 try {
2779 o[u] = !0
2780 } catch {}
2781 }
2782 markAsDisposed(o) {
2783 if (o && o !== E.None)
2784 try {
2785 o[u] = !0
2786 } catch {}
2787 }
2788 markAsSingleton(o) {}
2789 })()
2790 )
2791 }
2792 function L(u) {
2793 return s?.trackDisposable(u), u
2794 }
2795 function h(u) {
2796 s?.markAsDisposed(u)
2797 }
2798 function a(u, o) {
2799 s?.setParent(u, o)
2800 }
2801 function w(u, o) {
2802 if (!!s) for (const c of u) s.setParent(c, o)
2803 }
2804 function e(u) {
2805 return s?.markAsSingleton(u), u
2806 }
2807 n.markAsSingleton = e
2808 function b(u) {
2809 return typeof u.dispose == 'function' && u.dispose.length === 0
2810 }
2811 n.isDisposable = b
2812 function f(u) {
2813 if (D.Iterable.is(u)) {
2814 const o = []
2815 for (const c of u)
2816 if (c)
2817 try {
2818 c.dispose()
2819 } catch (l) {
2820 o.push(l)
2821 }
2822 if (o.length === 1) throw o[0]
2823 if (o.length > 1)
2824 throw new AggregateError(o, 'Encountered errors while disposing of store')
2825 return Array.isArray(u) ? [] : u
2826 } else if (u) return u.dispose(), u
2827 }
2828 n.dispose = f
2829 function v(...u) {
2830 const o = g(() => f(u))
2831 return w(u, o), o
2832 }
2833 n.combinedDisposable = v
2834 function g(u) {
2835 const o = L({
2836 dispose: (0, R.once)(() => {
2837 h(o), u()
2838 }),
2839 })
2840 return o
2841 }
2842 n.toDisposable = g
2843 class S {
2844 constructor() {
2845 ;(this._toDispose = new Set()), (this._isDisposed = !1), L(this)
2846 }
2847 dispose() {
2848 this._isDisposed || (h(this), (this._isDisposed = !0), this.clear())
2849 }
2850 get isDisposed() {
2851 return this._isDisposed
2852 }
2853 clear() {
2854 if (this._toDispose.size !== 0)
2855 try {
2856 f(this._toDispose)
2857 } finally {
2858 this._toDispose.clear()
2859 }
2860 }
2861 add(o) {
2862 if (!o) return o
2863 if (o === this) throw new Error('Cannot register a disposable on itself!')
2864 return (
2865 a(o, this),
2866 this._isDisposed
2867 ? S.DISABLE_DISPOSED_WARNING ||
2868 console.warn(
2869 new Error(
2870 'Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!'
2871 ).stack
2872 )
2873 : this._toDispose.add(o),
2874 o
2875 )
2876 }
2877 }
2878 ;(S.DISABLE_DISPOSED_WARNING = !1), (n.DisposableStore = S)
2879 class E {
2880 constructor() {
2881 ;(this._store = new S()), L(this), a(this._store, this)
2882 }
2883 dispose() {
2884 h(this), this._store.dispose()
2885 }
2886 _register(o) {
2887 if (o === this) throw new Error('Cannot register a disposable on itself!')
2888 return this._store.add(o)
2889 }
2890 }
2891 ;(E.None = Object.freeze({ dispose() {} })), (n.Disposable = E)
2892 class y {
2893 constructor() {
2894 ;(this._isDisposed = !1), L(this)
2895 }
2896 get value() {
2897 return this._isDisposed ? void 0 : this._value
2898 }
2899 set value(o) {
2900 var c
2901 this._isDisposed ||
2902 o === this._value ||
2903 ((c = this._value) === null || c === void 0 || c.dispose(),
2904 o && a(o, this),
2905 (this._value = o))
2906 }
2907 clear() {
2908 this.value = void 0
2909 }
2910 dispose() {
2911 var o
2912 ;(this._isDisposed = !0),
2913 h(this),
2914 (o = this._value) === null || o === void 0 || o.dispose(),
2915 (this._value = void 0)
2916 }
2917 clearAndLeak() {
2918 const o = this._value
2919 return (this._value = void 0), o && a(o, null), o
2920 }
2921 }
2922 n.MutableDisposable = y
2923 class _ {
2924 constructor(o) {
2925 ;(this._disposable = o), (this._counter = 1)
2926 }
2927 acquire() {
2928 return this._counter++, this
2929 }
2930 release() {
2931 return --this._counter === 0 && this._disposable.dispose(), this
2932 }
2933 }
2934 n.RefCountedDisposable = _
2935 class d {
2936 constructor() {
2937 ;(this.dispose = () => {}), (this.unset = () => {}), (this.isset = () => !1), L(this)
2938 }
2939 set(o) {
2940 let c = o
2941 return (
2942 (this.unset = () => (c = void 0)),
2943 (this.isset = () => c !== void 0),
2944 (this.dispose = () => {
2945 c && (c(), (c = void 0), h(this))
2946 }),
2947 this
2948 )
2949 }
2950 }
2951 n.SafeDisposable = d
2952 class C {
2953 constructor(o) {
2954 this.object = o
2955 }
2956 dispose() {}
2957 }
2958 n.ImmortalReference = C
2959 class r {
2960 constructor() {
2961 ;(this._store = new Map()), (this._isDisposed = !1), L(this)
2962 }
2963 dispose() {
2964 h(this), (this._isDisposed = !0), this.clearAndDisposeAll()
2965 }
2966 clearAndDisposeAll() {
2967 if (!!this._store.size)
2968 try {
2969 f(this._store.values())
2970 } finally {
2971 this._store.clear()
2972 }
2973 }
2974 get(o) {
2975 return this._store.get(o)
2976 }
2977 set(o, c, l = !1) {
2978 var m
2979 this._isDisposed &&
2980 console.warn(
2981 new Error(
2982 'Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!'
2983 ).stack
2984 ),
2985 l || (m = this._store.get(o)) === null || m === void 0 || m.dispose(),
2986 this._store.set(o, c)
2987 }
2988 deleteAndDispose(o) {
2989 var c
2990 ;(c = this._store.get(o)) === null || c === void 0 || c.dispose(), this._store.delete(o)
2991 }
2992 [Symbol.iterator]() {
2993 return this._store[Symbol.iterator]()
2994 }
2995 }
2996 n.DisposableMap = r
2997 }),
2998 Q(Y[16], X([0, 1]), function (x, n) {
2999 'use strict'
3000 Object.defineProperty(n, '__esModule', { value: !0 }), (n.LinkedList = void 0)
3001 class R {
3002 constructor(s) {
3003 ;(this.element = s), (this.next = R.Undefined), (this.prev = R.Undefined)
3004 }
3005 }
3006 R.Undefined = new R(void 0)
3007 class D {
3008 constructor() {
3009 ;(this._first = R.Undefined), (this._last = R.Undefined), (this._size = 0)
3010 }
3011 get size() {
3012 return this._size
3013 }
3014 isEmpty() {
3015 return this._first === R.Undefined
3016 }
3017 clear() {
3018 let s = this._first
3019 for (; s !== R.Undefined; ) {
3020 const p = s.next
3021 ;(s.prev = R.Undefined), (s.next = R.Undefined), (s = p)
3022 }
3023 ;(this._first = R.Undefined), (this._last = R.Undefined), (this._size = 0)
3024 }
3025 unshift(s) {
3026 return this._insert(s, !1)
3027 }
3028 push(s) {
3029 return this._insert(s, !0)
3030 }
3031 _insert(s, p) {
3032 const L = new R(s)
3033 if (this._first === R.Undefined) (this._first = L), (this._last = L)
3034 else if (p) {
3035 const a = this._last
3036 ;(this._last = L), (L.prev = a), (a.next = L)
3037 } else {
3038 const a = this._first
3039 ;(this._first = L), (L.next = a), (a.prev = L)
3040 }
3041 this._size += 1
3042 let h = !1
3043 return () => {
3044 h || ((h = !0), this._remove(L))
3045 }
3046 }
3047 shift() {
3048 if (this._first !== R.Undefined) {
3049 const s = this._first.element
3050 return this._remove(this._first), s
3051 }
3052 }
3053 pop() {
3054 if (this._last !== R.Undefined) {
3055 const s = this._last.element
3056 return this._remove(this._last), s
3057 }
3058 }
3059 _remove(s) {
3060 if (s.prev !== R.Undefined && s.next !== R.Undefined) {
3061 const p = s.prev
3062 ;(p.next = s.next), (s.next.prev = p)
3063 } else s.prev === R.Undefined && s.next === R.Undefined ? ((this._first = R.Undefined), (this._last = R.Undefined)) : s.next === R.Undefined ? ((this._last = this._last.prev), (this._last.next = R.Undefined)) : s.prev === R.Undefined && ((this._first = this._first.next), (this._first.prev = R.Undefined))
3064 this._size -= 1
3065 }
3066 *[Symbol.iterator]() {
3067 let s = this._first
3068 for (; s !== R.Undefined; ) yield s.element, (s = s.next)
3069 }
3070 }
3071 n.LinkedList = D
3072 }),
3073 Q(Y[5], X([0, 1, 27, 30]), function (x, n, R, D) {
3074 'use strict'
3075 var i
3076 Object.defineProperty(n, '__esModule', { value: !0 }),
3077 (n.InvisibleCharacters =
3078 n.AmbiguousCharacters =
3079 n.noBreakWhitespace =
3080 n.getLeftDeleteOffset =
3081 n.singleLetterHash =
3082 n.containsUppercaseCharacter =
3083 n.startsWithUTF8BOM =
3084 n.UTF8_BOM_CHARACTER =
3085 n.isEmojiImprecise =
3086 n.isFullWidthCharacter =
3087 n.containsUnusualLineTerminators =
3088 n.UNUSUAL_LINE_TERMINATORS =
3089 n.isBasicASCII =
3090 n.containsRTL =
3091 n.getCharContainingOffset =
3092 n.prevCharLength =
3093 n.nextCharLength =
3094 n.GraphemeIterator =
3095 n.CodePointIterator =
3096 n.getNextCodePoint =
3097 n.computeCodePoint =
3098 n.isLowSurrogate =
3099 n.isHighSurrogate =
3100 n.commonSuffixLength =
3101 n.commonPrefixLength =
3102 n.startsWithIgnoreCase =
3103 n.equalsIgnoreCase =
3104 n.isUpperAsciiLetter =
3105 n.isLowerAsciiLetter =
3106 n.isAsciiDigit =
3107 n.compareSubstringIgnoreCase =
3108 n.compareIgnoreCase =
3109 n.compareSubstring =
3110 n.compare =
3111 n.lastNonWhitespaceIndex =
3112 n.getLeadingWhitespace =
3113 n.firstNonWhitespaceIndex =
3114 n.splitLines =
3115 n.regExpFlags =
3116 n.regExpLeadsToEndlessLoop =
3117 n.createRegExp =
3118 n.stripWildcards =
3119 n.convertSimple2RegExpPattern =
3120 n.rtrim =
3121 n.ltrim =
3122 n.trim =
3123 n.escapeRegExpCharacters =
3124 n.escape =
3125 n.format =
3126 n.isFalsyOrWhitespace =
3127 void 0)
3128 function s(P) {
3129 return !P || typeof P != 'string' ? !0 : P.trim().length === 0
3130 }
3131 n.isFalsyOrWhitespace = s
3132 const p = /{(\d+)}/g
3133 function L(P, ...O) {
3134 return O.length === 0
3135 ? P
3136 : P.replace(p, function (V, j) {
3137 const Z = parseInt(j, 10)
3138 return isNaN(Z) || Z < 0 || Z >= O.length ? V : O[Z]
3139 })
3140 }
3141 n.format = L
3142 function h(P) {
3143 return P.replace(/[<>&]/g, function (O) {
3144 switch (O) {
3145 case '<':
3146 return '&lt;'
3147 case '>':
3148 return '&gt;'
3149 case '&':
3150 return '&amp;'
3151 default:
3152 return O
3153 }
3154 })
3155 }
3156 n.escape = h
3157 function a(P) {
3158 return P.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g, '\\$&')
3159 }
3160 n.escapeRegExpCharacters = a
3161 function w(P, O = ' ') {
3162 const V = e(P, O)
3163 return b(V, O)
3164 }
3165 n.trim = w
3166 function e(P, O) {
3167 if (!P || !O) return P
3168 const V = O.length
3169 if (V === 0 || P.length === 0) return P
3170 let j = 0
3171 for (; P.indexOf(O, j) === j; ) j = j + V
3172 return P.substring(j)
3173 }
3174 n.ltrim = e
3175 function b(P, O) {
3176 if (!P || !O) return P
3177 const V = O.length,
3178 j = P.length
3179 if (V === 0 || j === 0) return P
3180 let Z = j,
3181 le = -1
3182 for (; (le = P.lastIndexOf(O, Z - 1)), !(le === -1 || le + V !== Z); ) {
3183 if (le === 0) return ''
3184 Z = le
3185 }
3186 return P.substring(0, Z)
3187 }
3188 n.rtrim = b
3189 function f(P) {
3190 return P.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g, '\\$&').replace(/[\*]/g, '.*')
3191 }
3192 n.convertSimple2RegExpPattern = f
3193 function v(P) {
3194 return P.replace(/\*/g, '')
3195 }
3196 n.stripWildcards = v
3197 function g(P, O, V = {}) {
3198 if (!P) throw new Error('Cannot create regex from empty string')
3199 O || (P = a(P)),
3200 V.wholeWord &&
3201 (/\B/.test(P.charAt(0)) || (P = '\\b' + P),
3202 /\B/.test(P.charAt(P.length - 1)) || (P = P + '\\b'))
3203 let j = ''
3204 return (
3205 V.global && (j += 'g'),
3206 V.matchCase || (j += 'i'),
3207 V.multiline && (j += 'm'),
3208 V.unicode && (j += 'u'),
3209 new RegExp(P, j)
3210 )
3211 }
3212 n.createRegExp = g
3213 function S(P) {
3214 return P.source === '^' || P.source === '^$' || P.source === '$' || P.source === '^\\s*$'
3215 ? !1
3216 : !!(P.exec('') && P.lastIndex === 0)
3217 }
3218 n.regExpLeadsToEndlessLoop = S
3219 function E(P) {
3220 return (
3221 (P.global ? 'g' : '') +
3222 (P.ignoreCase ? 'i' : '') +
3223 (P.multiline ? 'm' : '') +
3224 (P.unicode ? 'u' : '')
3225 )
3226 }
3227 n.regExpFlags = E
3228 function y(P) {
3229 return P.split(/\r\n|\r|\n/)
3230 }
3231 n.splitLines = y
3232 function _(P) {
3233 for (let O = 0, V = P.length; O < V; O++) {
3234 const j = P.charCodeAt(O)
3235 if (j !== 32 && j !== 9) return O
3236 }
3237 return -1
3238 }
3239 n.firstNonWhitespaceIndex = _
3240 function d(P, O = 0, V = P.length) {
3241 for (let j = O; j < V; j++) {
3242 const Z = P.charCodeAt(j)
3243 if (Z !== 32 && Z !== 9) return P.substring(O, j)
3244 }
3245 return P.substring(O, V)
3246 }
3247 n.getLeadingWhitespace = d
3248 function C(P, O = P.length - 1) {
3249 for (let V = O; V >= 0; V--) {
3250 const j = P.charCodeAt(V)
3251 if (j !== 32 && j !== 9) return V
3252 }
3253 return -1
3254 }
3255 n.lastNonWhitespaceIndex = C
3256 function r(P, O) {
3257 return P < O ? -1 : P > O ? 1 : 0
3258 }
3259 n.compare = r
3260 function u(P, O, V = 0, j = P.length, Z = 0, le = O.length) {
3261 for (; V < j && Z < le; V++, Z++) {
3262 const ve = P.charCodeAt(V),
3263 oe = O.charCodeAt(Z)
3264 if (ve < oe) return -1
3265 if (ve > oe) return 1
3266 }
3267 const he = j - V,
3268 ye = le - Z
3269 return he < ye ? -1 : he > ye ? 1 : 0
3270 }
3271 n.compareSubstring = u
3272 function o(P, O) {
3273 return c(P, O, 0, P.length, 0, O.length)
3274 }
3275 n.compareIgnoreCase = o
3276 function c(P, O, V = 0, j = P.length, Z = 0, le = O.length) {
3277 for (; V < j && Z < le; V++, Z++) {
3278 let ve = P.charCodeAt(V),
3279 oe = O.charCodeAt(Z)
3280 if (ve === oe) continue
3281 if (ve >= 128 || oe >= 128) return u(P.toLowerCase(), O.toLowerCase(), V, j, Z, le)
3282 m(ve) && (ve -= 32), m(oe) && (oe -= 32)
3283 const _e = ve - oe
3284 if (_e !== 0) return _e
3285 }
3286 const he = j - V,
3287 ye = le - Z
3288 return he < ye ? -1 : he > ye ? 1 : 0
3289 }
3290 n.compareSubstringIgnoreCase = c
3291 function l(P) {
3292 return P >= 48 && P <= 57
3293 }
3294 n.isAsciiDigit = l
3295 function m(P) {
3296 return P >= 97 && P <= 122
3297 }
3298 n.isLowerAsciiLetter = m
3299 function N(P) {
3300 return P >= 65 && P <= 90
3301 }
3302 n.isUpperAsciiLetter = N
3303 function A(P, O) {
3304 return P.length === O.length && c(P, O) === 0
3305 }
3306 n.equalsIgnoreCase = A
3307 function M(P, O) {
3308 const V = O.length
3309 return O.length > P.length ? !1 : c(P, O, 0, V) === 0
3310 }
3311 n.startsWithIgnoreCase = M
3312 function k(P, O) {
3313 const V = Math.min(P.length, O.length)
3314 let j
3315 for (j = 0; j < V; j++) if (P.charCodeAt(j) !== O.charCodeAt(j)) return j
3316 return V
3317 }
3318 n.commonPrefixLength = k
3319 function q(P, O) {
3320 const V = Math.min(P.length, O.length)
3321 let j
3322 const Z = P.length - 1,
3323 le = O.length - 1
3324 for (j = 0; j < V; j++) if (P.charCodeAt(Z - j) !== O.charCodeAt(le - j)) return j
3325 return V
3326 }
3327 n.commonSuffixLength = q
3328 function I(P) {
3329 return 55296 <= P && P <= 56319
3330 }
3331 n.isHighSurrogate = I
3332 function B(P) {
3333 return 56320 <= P && P <= 57343
3334 }
3335 n.isLowSurrogate = B
3336 function H(P, O) {
3337 return ((P - 55296) << 10) + (O - 56320) + 65536
3338 }
3339 n.computeCodePoint = H
3340 function F(P, O, V) {
3341 const j = P.charCodeAt(V)
3342 if (I(j) && V + 1 < O) {
3343 const Z = P.charCodeAt(V + 1)
3344 if (B(Z)) return H(j, Z)
3345 }
3346 return j
3347 }
3348 n.getNextCodePoint = F
3349 function U(P, O) {
3350 const V = P.charCodeAt(O - 1)
3351 if (B(V) && O > 1) {
3352 const j = P.charCodeAt(O - 2)
3353 if (I(j)) return H(j, V)
3354 }
3355 return V
3356 }
3357 class T {
3358 get offset() {
3359 return this._offset
3360 }
3361 constructor(O, V = 0) {
3362 ;(this._str = O), (this._len = O.length), (this._offset = V)
3363 }
3364 setOffset(O) {
3365 this._offset = O
3366 }
3367 prevCodePoint() {
3368 const O = U(this._str, this._offset)
3369 return (this._offset -= O >= 65536 ? 2 : 1), O
3370 }
3371 nextCodePoint() {
3372 const O = F(this._str, this._len, this._offset)
3373 return (this._offset += O >= 65536 ? 2 : 1), O
3374 }
3375 eol() {
3376 return this._offset >= this._len
3377 }
3378 }
3379 n.CodePointIterator = T
3380 class W {
3381 get offset() {
3382 return this._iterator.offset
3383 }
3384 constructor(O, V = 0) {
3385 this._iterator = new T(O, V)
3386 }
3387 nextGraphemeLength() {
3388 const O = ee.getInstance(),
3389 V = this._iterator,
3390 j = V.offset
3391 let Z = O.getGraphemeBreakType(V.nextCodePoint())
3392 for (; !V.eol(); ) {
3393 const le = V.offset,
3394 he = O.getGraphemeBreakType(V.nextCodePoint())
3395 if (K(Z, he)) {
3396 V.setOffset(le)
3397 break
3398 }
3399 Z = he
3400 }
3401 return V.offset - j
3402 }
3403 prevGraphemeLength() {
3404 const O = ee.getInstance(),
3405 V = this._iterator,
3406 j = V.offset
3407 let Z = O.getGraphemeBreakType(V.prevCodePoint())
3408 for (; V.offset > 0; ) {
3409 const le = V.offset,
3410 he = O.getGraphemeBreakType(V.prevCodePoint())
3411 if (K(he, Z)) {
3412 V.setOffset(le)
3413 break
3414 }
3415 Z = he
3416 }
3417 return j - V.offset
3418 }
3419 eol() {
3420 return this._iterator.eol()
3421 }
3422 }
3423 n.GraphemeIterator = W
3424 function t(P, O) {
3425 return new W(P, O).nextGraphemeLength()
3426 }
3427 n.nextCharLength = t
3428 function te(P, O) {
3429 return new W(P, O).prevGraphemeLength()
3430 }
3431 n.prevCharLength = te
3432 function ie(P, O) {
3433 O > 0 && B(P.charCodeAt(O)) && O--
3434 const V = O + t(P, O)
3435 return [V - te(P, V), V]
3436 }
3437 n.getCharContainingOffset = ie
3438 let ue
3439 function de() {
3440 return /(?:[\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])/
3441 }
3442 function Ce(P) {
3443 return ue || (ue = de()), ue.test(P)
3444 }
3445 n.containsRTL = Ce
3446 const re = /^[\t\n\r\x20-\x7E]*$/
3447 function se(P) {
3448 return re.test(P)
3449 }
3450 ;(n.isBasicASCII = se), (n.UNUSUAL_LINE_TERMINATORS = /[\u2028\u2029]/)
3451 function ge(P) {
3452 return n.UNUSUAL_LINE_TERMINATORS.test(P)
3453 }
3454 n.containsUnusualLineTerminators = ge
3455 function Le(P) {
3456 return (
3457 (P >= 11904 && P <= 55215) || (P >= 63744 && P <= 64255) || (P >= 65281 && P <= 65374)
3458 )
3459 }
3460 n.isFullWidthCharacter = Le
3461 function J(P) {
3462 return (
3463 (P >= 127462 && P <= 127487) ||
3464 P === 8986 ||
3465 P === 8987 ||
3466 P === 9200 ||
3467 P === 9203 ||
3468 (P >= 9728 && P <= 10175) ||
3469 P === 11088 ||
3470 P === 11093 ||
3471 (P >= 127744 && P <= 128591) ||
3472 (P >= 128640 && P <= 128764) ||
3473 (P >= 128992 && P <= 129008) ||
3474 (P >= 129280 && P <= 129535) ||
3475 (P >= 129648 && P <= 129782)
3476 )
3477 }
3478 ;(n.isEmojiImprecise = J), (n.UTF8_BOM_CHARACTER = String.fromCharCode(65279))
3479 function z(P) {
3480 return !!(P && P.length > 0 && P.charCodeAt(0) === 65279)
3481 }
3482 n.startsWithUTF8BOM = z
3483 function G(P, O = !1) {
3484 return P ? (O && (P = P.replace(/\\./g, '')), P.toLowerCase() !== P) : !1
3485 }
3486 n.containsUppercaseCharacter = G
3487 function $(P) {
3488 return (
3489 (P = P % (2 * 26)),
3490 P < 26 ? String.fromCharCode(97 + P) : String.fromCharCode(65 + P - 26)
3491 )
3492 }
3493 n.singleLetterHash = $
3494 function K(P, O) {
3495 return P === 0
3496 ? O !== 5 && O !== 7
3497 : P === 2 && O === 3
3498 ? !1
3499 : P === 4 || P === 2 || P === 3 || O === 4 || O === 2 || O === 3
3500 ? !0
3501 : !(
3502 (P === 8 && (O === 8 || O === 9 || O === 11 || O === 12)) ||
3503 ((P === 11 || P === 9) && (O === 9 || O === 10)) ||
3504 ((P === 12 || P === 10) && O === 10) ||
3505 O === 5 ||
3506 O === 13 ||
3507 O === 7 ||
3508 P === 1 ||
3509 (P === 13 && O === 14) ||
3510 (P === 6 && O === 6)
3511 )
3512 }
3513 class ee {
3514 static getInstance() {
3515 return ee._INSTANCE || (ee._INSTANCE = new ee()), ee._INSTANCE
3516 }
3517 constructor() {
3518 this._data = ne()
3519 }
3520 getGraphemeBreakType(O) {
3521 if (O < 32) return O === 10 ? 3 : O === 13 ? 2 : 4
3522 if (O < 127) return 0
3523 const V = this._data,
3524 j = V.length / 3
3525 let Z = 1
3526 for (; Z <= j; )
3527 if (O < V[3 * Z]) Z = 2 * Z
3528 else if (O > V[3 * Z + 1]) Z = 2 * Z + 1
3529 else return V[3 * Z + 2]
3530 return 0
3531 }
3532 }
3533 ee._INSTANCE = null
3534 function ne() {
3535 return JSON.parse(
3536 '[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]'
3537 )
3538 }
3539 function ce(P, O) {
3540 if (P === 0) return 0
3541 const V = Se(P, O)
3542 if (V !== void 0) return V
3543 const j = new T(O, P)
3544 return j.prevCodePoint(), j.offset
3545 }
3546 n.getLeftDeleteOffset = ce
3547 function Se(P, O) {
3548 const V = new T(O, P)
3549 let j = V.prevCodePoint()
3550 for (; we(j) || j === 65039 || j === 8419; ) {
3551 if (V.offset === 0) return
3552 j = V.prevCodePoint()
3553 }
3554 if (!J(j)) return
3555 let Z = V.offset
3556 return Z > 0 && V.prevCodePoint() === 8205 && (Z = V.offset), Z
3557 }
3558 function we(P) {
3559 return 127995 <= P && P <= 127999
3560 }
3561 n.noBreakWhitespace = '\xA0'
3562 class fe {
3563 static getInstance(O) {
3564 return fe.cache.get(Array.from(O))
3565 }
3566 static getLocales() {
3567 return fe._locales.value
3568 }
3569 constructor(O) {
3570 this.confusableDictionary = O
3571 }
3572 isAmbiguous(O) {
3573 return this.confusableDictionary.has(O)
3574 }
3575 getPrimaryConfusable(O) {
3576 return this.confusableDictionary.get(O)
3577 }
3578 getConfusableCodePoints() {
3579 return new Set(this.confusableDictionary.keys())
3580 }
3581 }
3582 ;(i = fe),
3583 (fe.ambiguousCharacterData = new D.Lazy(() =>
3584 JSON.parse(
3585 '{"_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]}'
3586 )
3587 )),
3588 (fe.cache = new R.LRUCachedFunction((P) => {
3589 function O(oe) {
3590 const _e = new Map()
3591 for (let pe = 0; pe < oe.length; pe += 2) _e.set(oe[pe], oe[pe + 1])
3592 return _e
3593 }
3594 function V(oe, _e) {
3595 const pe = new Map(oe)
3596 for (const [Ae, Ne] of _e) pe.set(Ae, Ne)
3597 return pe
3598 }
3599 function j(oe, _e) {
3600 if (!oe) return _e
3601 const pe = new Map()
3602 for (const [Ae, Ne] of oe) _e.has(Ae) && pe.set(Ae, Ne)
3603 return pe
3604 }
3605 const Z = i.ambiguousCharacterData.value
3606 let le = P.filter((oe) => !oe.startsWith('_') && oe in Z)
3607 le.length === 0 && (le = ['_default'])
3608 let he
3609 for (const oe of le) {
3610 const _e = O(Z[oe])
3611 he = j(he, _e)
3612 }
3613 const ye = O(Z._common),
3614 ve = V(ye, he)
3615 return new fe(ve)
3616 })),
3617 (fe._locales = new D.Lazy(() =>
3618 Object.keys(fe.ambiguousCharacterData.value).filter((P) => !P.startsWith('_'))
3619 )),
3620 (n.AmbiguousCharacters = fe)
3621 class me {
3622 static getRawData() {
3623 return JSON.parse(
3624 '[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]'
3625 )
3626 }
3627 static getData() {
3628 return this._data || (this._data = new Set(me.getRawData())), this._data
3629 }
3630 static isInvisibleCharacter(O) {
3631 return me.getData().has(O)
3632 }
3633 static get codePoints() {
3634 return me.getData()
3635 }
3636 }
3637 ;(me._data = void 0), (n.InvisibleCharacters = me)
3638 }),
3639 Q(Y[31], X([0, 1, 5]), function (x, n, R) {
3640 'use strict'
3641 Object.defineProperty(n, '__esModule', { value: !0 }),
3642 (n.StringSHA1 = n.toHexString = n.stringHash = n.numberHash = n.doHash = n.hash = void 0)
3643 function D(g) {
3644 return i(g, 0)
3645 }
3646 n.hash = D
3647 function i(g, S) {
3648 switch (typeof g) {
3649 case 'object':
3650 return g === null ? s(349, S) : Array.isArray(g) ? h(g, S) : a(g, S)
3651 case 'string':
3652 return L(g, S)
3653 case 'boolean':
3654 return p(g, S)
3655 case 'number':
3656 return s(g, S)
3657 case 'undefined':
3658 return s(937, S)
3659 default:
3660 return s(617, S)
3661 }
3662 }
3663 n.doHash = i
3664 function s(g, S) {
3665 return ((S << 5) - S + g) | 0
3666 }
3667 n.numberHash = s
3668 function p(g, S) {
3669 return s(g ? 433 : 863, S)
3670 }
3671 function L(g, S) {
3672 S = s(149417, S)
3673 for (let E = 0, y = g.length; E < y; E++) S = s(g.charCodeAt(E), S)
3674 return S
3675 }
3676 n.stringHash = L
3677 function h(g, S) {
3678 return (S = s(104579, S)), g.reduce((E, y) => i(y, E), S)
3679 }
3680 function a(g, S) {
3681 return (
3682 (S = s(181387, S)),
3683 Object.keys(g)
3684 .sort()
3685 .reduce((E, y) => ((E = L(y, E)), i(g[y], E)), S)
3686 )
3687 }
3688 function w(g, S, E = 32) {
3689 const y = E - S,
3690 _ = ~((1 << y) - 1)
3691 return ((g << S) | ((_ & g) >>> y)) >>> 0
3692 }
3693 function e(g, S = 0, E = g.byteLength, y = 0) {
3694 for (let _ = 0; _ < E; _++) g[S + _] = y
3695 }
3696 function b(g, S, E = '0') {
3697 for (; g.length < S; ) g = E + g
3698 return g
3699 }
3700 function f(g, S = 32) {
3701 return g instanceof ArrayBuffer
3702 ? Array.from(new Uint8Array(g))
3703 .map((E) => E.toString(16).padStart(2, '0'))
3704 .join('')
3705 : b((g >>> 0).toString(16), S / 4)
3706 }
3707 n.toHexString = f
3708 class v {
3709 constructor() {
3710 ;(this._h0 = 1732584193),
3711 (this._h1 = 4023233417),
3712 (this._h2 = 2562383102),
3713 (this._h3 = 271733878),
3714 (this._h4 = 3285377520),
3715 (this._buff = new Uint8Array(64 + 3)),
3716 (this._buffDV = new DataView(this._buff.buffer)),
3717 (this._buffLen = 0),
3718 (this._totalLen = 0),
3719 (this._leftoverHighSurrogate = 0),
3720 (this._finished = !1)
3721 }
3722 update(S) {
3723 const E = S.length
3724 if (E === 0) return
3725 const y = this._buff
3726 let _ = this._buffLen,
3727 d = this._leftoverHighSurrogate,
3728 C,
3729 r
3730 for (d !== 0 ? ((C = d), (r = -1), (d = 0)) : ((C = S.charCodeAt(0)), (r = 0)); ; ) {
3731 let u = C
3732 if (R.isHighSurrogate(C))
3733 if (r + 1 < E) {
3734 const o = S.charCodeAt(r + 1)
3735 R.isLowSurrogate(o) ? (r++, (u = R.computeCodePoint(C, o))) : (u = 65533)
3736 } else {
3737 d = C
3738 break
3739 }
3740 else R.isLowSurrogate(C) && (u = 65533)
3741 if (((_ = this._push(y, _, u)), r++, r < E)) C = S.charCodeAt(r)
3742 else break
3743 }
3744 ;(this._buffLen = _), (this._leftoverHighSurrogate = d)
3745 }
3746 _push(S, E, y) {
3747 return (
3748 y < 128
3749 ? (S[E++] = y)
3750 : y < 2048
3751 ? ((S[E++] = 192 | ((y & 1984) >>> 6)), (S[E++] = 128 | ((y & 63) >>> 0)))
3752 : y < 65536
3753 ? ((S[E++] = 224 | ((y & 61440) >>> 12)),
3754 (S[E++] = 128 | ((y & 4032) >>> 6)),
3755 (S[E++] = 128 | ((y & 63) >>> 0)))
3756 : ((S[E++] = 240 | ((y & 1835008) >>> 18)),
3757 (S[E++] = 128 | ((y & 258048) >>> 12)),
3758 (S[E++] = 128 | ((y & 4032) >>> 6)),
3759 (S[E++] = 128 | ((y & 63) >>> 0))),
3760 E >= 64 &&
3761 (this._step(),
3762 (E -= 64),
3763 (this._totalLen += 64),
3764 (S[0] = S[64 + 0]),
3765 (S[1] = S[64 + 1]),
3766 (S[2] = S[64 + 2])),
3767 E
3768 )
3769 }
3770 digest() {
3771 return (
3772 this._finished ||
3773 ((this._finished = !0),
3774 this._leftoverHighSurrogate &&
3775 ((this._leftoverHighSurrogate = 0),
3776 (this._buffLen = this._push(this._buff, this._buffLen, 65533))),
3777 (this._totalLen += this._buffLen),
3778 this._wrapUp()),
3779 f(this._h0) + f(this._h1) + f(this._h2) + f(this._h3) + f(this._h4)
3780 )
3781 }
3782 _wrapUp() {
3783 ;(this._buff[this._buffLen++] = 128),
3784 e(this._buff, this._buffLen),
3785 this._buffLen > 56 && (this._step(), e(this._buff))
3786 const S = 8 * this._totalLen
3787 this._buffDV.setUint32(56, Math.floor(S / 4294967296), !1),
3788 this._buffDV.setUint32(60, S % 4294967296, !1),
3789 this._step()
3790 }
3791 _step() {
3792 const S = v._bigBlock32,
3793 E = this._buffDV
3794 for (let l = 0; l < 64; l += 4) S.setUint32(l, E.getUint32(l, !1), !1)
3795 for (let l = 64; l < 320; l += 4)
3796 S.setUint32(
3797 l,
3798 w(
3799 S.getUint32(l - 12, !1) ^
3800 S.getUint32(l - 32, !1) ^
3801 S.getUint32(l - 56, !1) ^
3802 S.getUint32(l - 64, !1),
3803 1
3804 ),
3805 !1
3806 )
3807 let y = this._h0,
3808 _ = this._h1,
3809 d = this._h2,
3810 C = this._h3,
3811 r = this._h4,
3812 u,
3813 o,
3814 c
3815 for (let l = 0; l < 80; l++)
3816 l < 20
3817 ? ((u = (_ & d) | (~_ & C)), (o = 1518500249))
3818 : l < 40
3819 ? ((u = _ ^ d ^ C), (o = 1859775393))
3820 : l < 60
3821 ? ((u = (_ & d) | (_ & C) | (d & C)), (o = 2400959708))
3822 : ((u = _ ^ d ^ C), (o = 3395469782)),
3823 (c = (w(y, 5) + u + r + o + S.getUint32(l * 4, !1)) & 4294967295),
3824 (r = C),
3825 (C = d),
3826 (d = w(_, 30)),
3827 (_ = y),
3828 (y = c)
3829 ;(this._h0 = (this._h0 + y) & 4294967295),
3830 (this._h1 = (this._h1 + _) & 4294967295),
3831 (this._h2 = (this._h2 + d) & 4294967295),
3832 (this._h3 = (this._h3 + C) & 4294967295),
3833 (this._h4 = (this._h4 + r) & 4294967295)
3834 }
3835 }
3836 ;(v._bigBlock32 = new DataView(new ArrayBuffer(320))), (n.StringSHA1 = v)
3837 }),
3838 Q(Y[17], X([0, 1, 28, 31]), function (x, n, R, D) {
3839 'use strict'
3840 Object.defineProperty(n, '__esModule', { value: !0 }),
3841 (n.LcsDiff = n.stringDiff = n.StringDiffSequence = void 0)
3842 class i {
3843 constructor(e) {
3844 this.source = e
3845 }
3846 getElements() {
3847 const e = this.source,
3848 b = new Int32Array(e.length)
3849 for (let f = 0, v = e.length; f < v; f++) b[f] = e.charCodeAt(f)
3850 return b
3851 }
3852 }
3853 n.StringDiffSequence = i
3854 function s(w, e, b) {
3855 return new a(new i(w), new i(e)).ComputeDiff(b).changes
3856 }
3857 n.stringDiff = s
3858 class p {
3859 static Assert(e, b) {
3860 if (!e) throw new Error(b)
3861 }
3862 }
3863 class L {
3864 static Copy(e, b, f, v, g) {
3865 for (let S = 0; S < g; S++) f[v + S] = e[b + S]
3866 }
3867 static Copy2(e, b, f, v, g) {
3868 for (let S = 0; S < g; S++) f[v + S] = e[b + S]
3869 }
3870 }
3871 class h {
3872 constructor() {
3873 ;(this.m_changes = []),
3874 (this.m_originalStart = 1073741824),
3875 (this.m_modifiedStart = 1073741824),
3876 (this.m_originalCount = 0),
3877 (this.m_modifiedCount = 0)
3878 }
3879 MarkNextChange() {
3880 ;(this.m_originalCount > 0 || this.m_modifiedCount > 0) &&
3881 this.m_changes.push(
3882 new R.DiffChange(
3883 this.m_originalStart,
3884 this.m_originalCount,
3885 this.m_modifiedStart,
3886 this.m_modifiedCount
3887 )
3888 ),
3889 (this.m_originalCount = 0),
3890 (this.m_modifiedCount = 0),
3891 (this.m_originalStart = 1073741824),
3892 (this.m_modifiedStart = 1073741824)
3893 }
3894 AddOriginalElement(e, b) {
3895 ;(this.m_originalStart = Math.min(this.m_originalStart, e)),
3896 (this.m_modifiedStart = Math.min(this.m_modifiedStart, b)),
3897 this.m_originalCount++
3898 }
3899 AddModifiedElement(e, b) {
3900 ;(this.m_originalStart = Math.min(this.m_originalStart, e)),
3901 (this.m_modifiedStart = Math.min(this.m_modifiedStart, b)),
3902 this.m_modifiedCount++
3903 }
3904 getChanges() {
3905 return (
3906 (this.m_originalCount > 0 || this.m_modifiedCount > 0) && this.MarkNextChange(),
3907 this.m_changes
3908 )
3909 }
3910 getReverseChanges() {
3911 return (
3912 (this.m_originalCount > 0 || this.m_modifiedCount > 0) && this.MarkNextChange(),
3913 this.m_changes.reverse(),
3914 this.m_changes
3915 )
3916 }
3917 }
3918 class a {
3919 constructor(e, b, f = null) {
3920 ;(this.ContinueProcessingPredicate = f),
3921 (this._originalSequence = e),
3922 (this._modifiedSequence = b)
3923 const [v, g, S] = a._getElements(e),
3924 [E, y, _] = a._getElements(b)
3925 ;(this._hasStrings = S && _),
3926 (this._originalStringElements = v),
3927 (this._originalElementsOrHash = g),
3928 (this._modifiedStringElements = E),
3929 (this._modifiedElementsOrHash = y),
3930 (this.m_forwardHistory = []),
3931 (this.m_reverseHistory = [])
3932 }
3933 static _isStringArray(e) {
3934 return e.length > 0 && typeof e[0] == 'string'
3935 }
3936 static _getElements(e) {
3937 const b = e.getElements()
3938 if (a._isStringArray(b)) {
3939 const f = new Int32Array(b.length)
3940 for (let v = 0, g = b.length; v < g; v++) f[v] = (0, D.stringHash)(b[v], 0)
3941 return [b, f, !0]
3942 }
3943 return b instanceof Int32Array ? [[], b, !1] : [[], new Int32Array(b), !1]
3944 }
3945 ElementsAreEqual(e, b) {
3946 return this._originalElementsOrHash[e] !== this._modifiedElementsOrHash[b]
3947 ? !1
3948 : this._hasStrings
3949 ? this._originalStringElements[e] === this._modifiedStringElements[b]
3950 : !0
3951 }
3952 ElementsAreStrictEqual(e, b) {
3953 if (!this.ElementsAreEqual(e, b)) return !1
3954 const f = a._getStrictElement(this._originalSequence, e),
3955 v = a._getStrictElement(this._modifiedSequence, b)
3956 return f === v
3957 }
3958 static _getStrictElement(e, b) {
3959 return typeof e.getStrictElement == 'function' ? e.getStrictElement(b) : null
3960 }
3961 OriginalElementsAreEqual(e, b) {
3962 return this._originalElementsOrHash[e] !== this._originalElementsOrHash[b]
3963 ? !1
3964 : this._hasStrings
3965 ? this._originalStringElements[e] === this._originalStringElements[b]
3966 : !0
3967 }
3968 ModifiedElementsAreEqual(e, b) {
3969 return this._modifiedElementsOrHash[e] !== this._modifiedElementsOrHash[b]
3970 ? !1
3971 : this._hasStrings
3972 ? this._modifiedStringElements[e] === this._modifiedStringElements[b]
3973 : !0
3974 }
3975 ComputeDiff(e) {
3976 return this._ComputeDiff(
3977 0,
3978 this._originalElementsOrHash.length - 1,
3979 0,
3980 this._modifiedElementsOrHash.length - 1,
3981 e
3982 )
3983 }
3984 _ComputeDiff(e, b, f, v, g) {
3985 const S = [!1]
3986 let E = this.ComputeDiffRecursive(e, b, f, v, S)
3987 return g && (E = this.PrettifyChanges(E)), { quitEarly: S[0], changes: E }
3988 }
3989 ComputeDiffRecursive(e, b, f, v, g) {
3990 for (g[0] = !1; e <= b && f <= v && this.ElementsAreEqual(e, f); ) e++, f++
3991 for (; b >= e && v >= f && this.ElementsAreEqual(b, v); ) b--, v--
3992 if (e > b || f > v) {
3993 let C
3994 return (
3995 f <= v
3996 ? (p.Assert(e === b + 1, 'originalStart should only be one more than originalEnd'),
3997 (C = [new R.DiffChange(e, 0, f, v - f + 1)]))
3998 : e <= b
3999 ? (p.Assert(f === v + 1, 'modifiedStart should only be one more than modifiedEnd'),
4000 (C = [new R.DiffChange(e, b - e + 1, f, 0)]))
4001 : (p.Assert(e === b + 1, 'originalStart should only be one more than originalEnd'),
4002 p.Assert(f === v + 1, 'modifiedStart should only be one more than modifiedEnd'),
4003 (C = [])),
4004 C
4005 )
4006 }
4007 const S = [0],
4008 E = [0],
4009 y = this.ComputeRecursionPoint(e, b, f, v, S, E, g),
4010 _ = S[0],
4011 d = E[0]
4012 if (y !== null) return y
4013 if (!g[0]) {
4014 const C = this.ComputeDiffRecursive(e, _, f, d, g)
4015 let r = []
4016 return (
4017 g[0]
4018 ? (r = [new R.DiffChange(_ + 1, b - (_ + 1) + 1, d + 1, v - (d + 1) + 1)])
4019 : (r = this.ComputeDiffRecursive(_ + 1, b, d + 1, v, g)),
4020 this.ConcatenateChanges(C, r)
4021 )
4022 }
4023 return [new R.DiffChange(e, b - e + 1, f, v - f + 1)]
4024 }
4025 WALKTRACE(e, b, f, v, g, S, E, y, _, d, C, r, u, o, c, l, m, N) {
4026 let A = null,
4027 M = null,
4028 k = new h(),
4029 q = b,
4030 I = f,
4031 B = u[0] - l[0] - v,
4032 H = -1073741824,
4033 F = this.m_forwardHistory.length - 1
4034 do {
4035 const U = B + e
4036 U === q || (U < I && _[U - 1] < _[U + 1])
4037 ? ((C = _[U + 1]),
4038 (o = C - B - v),
4039 C < H && k.MarkNextChange(),
4040 (H = C),
4041 k.AddModifiedElement(C + 1, o),
4042 (B = U + 1 - e))
4043 : ((C = _[U - 1] + 1),
4044 (o = C - B - v),
4045 C < H && k.MarkNextChange(),
4046 (H = C - 1),
4047 k.AddOriginalElement(C, o + 1),
4048 (B = U - 1 - e)),
4049 F >= 0 && ((_ = this.m_forwardHistory[F]), (e = _[0]), (q = 1), (I = _.length - 1))
4050 } while (--F >= -1)
4051 if (((A = k.getReverseChanges()), N[0])) {
4052 let U = u[0] + 1,
4053 T = l[0] + 1
4054 if (A !== null && A.length > 0) {
4055 const W = A[A.length - 1]
4056 ;(U = Math.max(U, W.getOriginalEnd())), (T = Math.max(T, W.getModifiedEnd()))
4057 }
4058 M = [new R.DiffChange(U, r - U + 1, T, c - T + 1)]
4059 } else {
4060 ;(k = new h()),
4061 (q = S),
4062 (I = E),
4063 (B = u[0] - l[0] - y),
4064 (H = 1073741824),
4065 (F = m ? this.m_reverseHistory.length - 1 : this.m_reverseHistory.length - 2)
4066 do {
4067 const U = B + g
4068 U === q || (U < I && d[U - 1] >= d[U + 1])
4069 ? ((C = d[U + 1] - 1),
4070 (o = C - B - y),
4071 C > H && k.MarkNextChange(),
4072 (H = C + 1),
4073 k.AddOriginalElement(C + 1, o + 1),
4074 (B = U + 1 - g))
4075 : ((C = d[U - 1]),
4076 (o = C - B - y),
4077 C > H && k.MarkNextChange(),
4078 (H = C),
4079 k.AddModifiedElement(C + 1, o + 1),
4080 (B = U - 1 - g)),
4081 F >= 0 && ((d = this.m_reverseHistory[F]), (g = d[0]), (q = 1), (I = d.length - 1))
4082 } while (--F >= -1)
4083 M = k.getChanges()
4084 }
4085 return this.ConcatenateChanges(A, M)
4086 }
4087 ComputeRecursionPoint(e, b, f, v, g, S, E) {
4088 let y = 0,
4089 _ = 0,
4090 d = 0,
4091 C = 0,
4092 r = 0,
4093 u = 0
4094 e--,
4095 f--,
4096 (g[0] = 0),
4097 (S[0] = 0),
4098 (this.m_forwardHistory = []),
4099 (this.m_reverseHistory = [])
4100 const o = b - e + (v - f),
4101 c = o + 1,
4102 l = new Int32Array(c),
4103 m = new Int32Array(c),
4104 N = v - f,
4105 A = b - e,
4106 M = e - f,
4107 k = b - v,
4108 I = (A - N) % 2 === 0
4109 ;(l[N] = e), (m[A] = b), (E[0] = !1)
4110 for (let B = 1; B <= o / 2 + 1; B++) {
4111 let H = 0,
4112 F = 0
4113 ;(d = this.ClipDiagonalBound(N - B, B, N, c)),
4114 (C = this.ClipDiagonalBound(N + B, B, N, c))
4115 for (let T = d; T <= C; T += 2) {
4116 T === d || (T < C && l[T - 1] < l[T + 1]) ? (y = l[T + 1]) : (y = l[T - 1] + 1),
4117 (_ = y - (T - N) - M)
4118 const W = y
4119 for (; y < b && _ < v && this.ElementsAreEqual(y + 1, _ + 1); ) y++, _++
4120 if (
4121 ((l[T] = y),
4122 y + _ > H + F && ((H = y), (F = _)),
4123 !I && Math.abs(T - A) <= B - 1 && y >= m[T])
4124 )
4125 return (
4126 (g[0] = y),
4127 (S[0] = _),
4128 W <= m[T] && 1447 > 0 && B <= 1447 + 1
4129 ? this.WALKTRACE(N, d, C, M, A, r, u, k, l, m, y, b, g, _, v, S, I, E)
4130 : null
4131 )
4132 }
4133 const U = (H - e + (F - f) - B) / 2
4134 if (
4135 this.ContinueProcessingPredicate !== null &&
4136 !this.ContinueProcessingPredicate(H, U)
4137 )
4138 return (
4139 (E[0] = !0),
4140 (g[0] = H),
4141 (S[0] = F),
4142 U > 0 && 1447 > 0 && B <= 1447 + 1
4143 ? this.WALKTRACE(N, d, C, M, A, r, u, k, l, m, y, b, g, _, v, S, I, E)
4144 : (e++, f++, [new R.DiffChange(e, b - e + 1, f, v - f + 1)])
4145 )
4146 ;(r = this.ClipDiagonalBound(A - B, B, A, c)),
4147 (u = this.ClipDiagonalBound(A + B, B, A, c))
4148 for (let T = r; T <= u; T += 2) {
4149 T === r || (T < u && m[T - 1] >= m[T + 1]) ? (y = m[T + 1] - 1) : (y = m[T - 1]),
4150 (_ = y - (T - A) - k)
4151 const W = y
4152 for (; y > e && _ > f && this.ElementsAreEqual(y, _); ) y--, _--
4153 if (((m[T] = y), I && Math.abs(T - N) <= B && y <= l[T]))
4154 return (
4155 (g[0] = y),
4156 (S[0] = _),
4157 W >= l[T] && 1447 > 0 && B <= 1447 + 1
4158 ? this.WALKTRACE(N, d, C, M, A, r, u, k, l, m, y, b, g, _, v, S, I, E)
4159 : null
4160 )
4161 }
4162 if (B <= 1447) {
4163 let T = new Int32Array(C - d + 2)
4164 ;(T[0] = N - d + 1),
4165 L.Copy2(l, d, T, 1, C - d + 1),
4166 this.m_forwardHistory.push(T),
4167 (T = new Int32Array(u - r + 2)),
4168 (T[0] = A - r + 1),
4169 L.Copy2(m, r, T, 1, u - r + 1),
4170 this.m_reverseHistory.push(T)
4171 }
4172 }
4173 return this.WALKTRACE(N, d, C, M, A, r, u, k, l, m, y, b, g, _, v, S, I, E)
4174 }
4175 PrettifyChanges(e) {
4176 for (let b = 0; b < e.length; b++) {
4177 const f = e[b],
4178 v = b < e.length - 1 ? e[b + 1].originalStart : this._originalElementsOrHash.length,
4179 g = b < e.length - 1 ? e[b + 1].modifiedStart : this._modifiedElementsOrHash.length,
4180 S = f.originalLength > 0,
4181 E = f.modifiedLength > 0
4182 for (
4183 ;
4184 f.originalStart + f.originalLength < v &&
4185 f.modifiedStart + f.modifiedLength < g &&
4186 (!S ||
4187 this.OriginalElementsAreEqual(
4188 f.originalStart,
4189 f.originalStart + f.originalLength
4190 )) &&
4191 (!E ||
4192 this.ModifiedElementsAreEqual(f.modifiedStart, f.modifiedStart + f.modifiedLength));
4193
4194 ) {
4195 const _ = this.ElementsAreStrictEqual(f.originalStart, f.modifiedStart)
4196 if (
4197 this.ElementsAreStrictEqual(
4198 f.originalStart + f.originalLength,
4199 f.modifiedStart + f.modifiedLength
4200 ) &&
4201 !_
4202 )
4203 break
4204 f.originalStart++, f.modifiedStart++
4205 }
4206 const y = [null]
4207 if (b < e.length - 1 && this.ChangesOverlap(e[b], e[b + 1], y)) {
4208 ;(e[b] = y[0]), e.splice(b + 1, 1), b--
4209 continue
4210 }
4211 }
4212 for (let b = e.length - 1; b >= 0; b--) {
4213 const f = e[b]
4214 let v = 0,
4215 g = 0
4216 if (b > 0) {
4217 const C = e[b - 1]
4218 ;(v = C.originalStart + C.originalLength), (g = C.modifiedStart + C.modifiedLength)
4219 }
4220 const S = f.originalLength > 0,
4221 E = f.modifiedLength > 0
4222 let y = 0,
4223 _ = this._boundaryScore(
4224 f.originalStart,
4225 f.originalLength,
4226 f.modifiedStart,
4227 f.modifiedLength
4228 )
4229 for (let C = 1; ; C++) {
4230 const r = f.originalStart - C,
4231 u = f.modifiedStart - C
4232 if (
4233 r < v ||
4234 u < g ||
4235 (S && !this.OriginalElementsAreEqual(r, r + f.originalLength)) ||
4236 (E && !this.ModifiedElementsAreEqual(u, u + f.modifiedLength))
4237 )
4238 break
4239 const c =
4240 (r === v && u === g ? 5 : 0) +
4241 this._boundaryScore(r, f.originalLength, u, f.modifiedLength)
4242 c > _ && ((_ = c), (y = C))
4243 }
4244 ;(f.originalStart -= y), (f.modifiedStart -= y)
4245 const d = [null]
4246 if (b > 0 && this.ChangesOverlap(e[b - 1], e[b], d)) {
4247 ;(e[b - 1] = d[0]), e.splice(b, 1), b++
4248 continue
4249 }
4250 }
4251 if (this._hasStrings)
4252 for (let b = 1, f = e.length; b < f; b++) {
4253 const v = e[b - 1],
4254 g = e[b],
4255 S = g.originalStart - v.originalStart - v.originalLength,
4256 E = v.originalStart,
4257 y = g.originalStart + g.originalLength,
4258 _ = y - E,
4259 d = v.modifiedStart,
4260 C = g.modifiedStart + g.modifiedLength,
4261 r = C - d
4262 if (S < 5 && _ < 20 && r < 20) {
4263 const u = this._findBetterContiguousSequence(E, _, d, r, S)
4264 if (u) {
4265 const [o, c] = u
4266 ;(o !== v.originalStart + v.originalLength ||
4267 c !== v.modifiedStart + v.modifiedLength) &&
4268 ((v.originalLength = o - v.originalStart),
4269 (v.modifiedLength = c - v.modifiedStart),
4270 (g.originalStart = o + S),
4271 (g.modifiedStart = c + S),
4272 (g.originalLength = y - g.originalStart),
4273 (g.modifiedLength = C - g.modifiedStart))
4274 }
4275 }
4276 }
4277 return e
4278 }
4279 _findBetterContiguousSequence(e, b, f, v, g) {
4280 if (b < g || v < g) return null
4281 const S = e + b - g + 1,
4282 E = f + v - g + 1
4283 let y = 0,
4284 _ = 0,
4285 d = 0
4286 for (let C = e; C < S; C++)
4287 for (let r = f; r < E; r++) {
4288 const u = this._contiguousSequenceScore(C, r, g)
4289 u > 0 && u > y && ((y = u), (_ = C), (d = r))
4290 }
4291 return y > 0 ? [_, d] : null
4292 }
4293 _contiguousSequenceScore(e, b, f) {
4294 let v = 0
4295 for (let g = 0; g < f; g++) {
4296 if (!this.ElementsAreEqual(e + g, b + g)) return 0
4297 v += this._originalStringElements[e + g].length
4298 }
4299 return v
4300 }
4301 _OriginalIsBoundary(e) {
4302 return e <= 0 || e >= this._originalElementsOrHash.length - 1
4303 ? !0
4304 : this._hasStrings && /^\s*$/.test(this._originalStringElements[e])
4305 }
4306 _OriginalRegionIsBoundary(e, b) {
4307 if (this._OriginalIsBoundary(e) || this._OriginalIsBoundary(e - 1)) return !0
4308 if (b > 0) {
4309 const f = e + b
4310 if (this._OriginalIsBoundary(f - 1) || this._OriginalIsBoundary(f)) return !0
4311 }
4312 return !1
4313 }
4314 _ModifiedIsBoundary(e) {
4315 return e <= 0 || e >= this._modifiedElementsOrHash.length - 1
4316 ? !0
4317 : this._hasStrings && /^\s*$/.test(this._modifiedStringElements[e])
4318 }
4319 _ModifiedRegionIsBoundary(e, b) {
4320 if (this._ModifiedIsBoundary(e) || this._ModifiedIsBoundary(e - 1)) return !0
4321 if (b > 0) {
4322 const f = e + b
4323 if (this._ModifiedIsBoundary(f - 1) || this._ModifiedIsBoundary(f)) return !0
4324 }
4325 return !1
4326 }
4327 _boundaryScore(e, b, f, v) {
4328 const g = this._OriginalRegionIsBoundary(e, b) ? 1 : 0,
4329 S = this._ModifiedRegionIsBoundary(f, v) ? 1 : 0
4330 return g + S
4331 }
4332 ConcatenateChanges(e, b) {
4333 const f = []
4334 if (e.length === 0 || b.length === 0) return b.length > 0 ? b : e
4335 if (this.ChangesOverlap(e[e.length - 1], b[0], f)) {
4336 const v = new Array(e.length + b.length - 1)
4337 return (
4338 L.Copy(e, 0, v, 0, e.length - 1),
4339 (v[e.length - 1] = f[0]),
4340 L.Copy(b, 1, v, e.length, b.length - 1),
4341 v
4342 )
4343 } else {
4344 const v = new Array(e.length + b.length)
4345 return L.Copy(e, 0, v, 0, e.length), L.Copy(b, 0, v, e.length, b.length), v
4346 }
4347 }
4348 ChangesOverlap(e, b, f) {
4349 if (
4350 (p.Assert(
4351 e.originalStart <= b.originalStart,
4352 'Left change is not less than or equal to right change'
4353 ),
4354 p.Assert(
4355 e.modifiedStart <= b.modifiedStart,
4356 'Left change is not less than or equal to right change'
4357 ),
4358 e.originalStart + e.originalLength >= b.originalStart ||
4359 e.modifiedStart + e.modifiedLength >= b.modifiedStart)
4360 ) {
4361 const v = e.originalStart
4362 let g = e.originalLength
4363 const S = e.modifiedStart
4364 let E = e.modifiedLength
4365 return (
4366 e.originalStart + e.originalLength >= b.originalStart &&
4367 (g = b.originalStart + b.originalLength - e.originalStart),
4368 e.modifiedStart + e.modifiedLength >= b.modifiedStart &&
4369 (E = b.modifiedStart + b.modifiedLength - e.modifiedStart),
4370 (f[0] = new R.DiffChange(v, g, S, E)),
4371 !0
4372 )
4373 } else return (f[0] = null), !1
4374 }
4375 ClipDiagonalBound(e, b, f, v) {
4376 if (e >= 0 && e < v) return e
4377 const g = f,
4378 S = v - f - 1,
4379 E = b % 2 === 0
4380 if (e < 0) {
4381 const y = g % 2 === 0
4382 return E === y ? 0 : 1
4383 } else {
4384 const y = S % 2 === 0
4385 return E === y ? v - 1 : v - 2
4386 }
4387 }
4388 }
4389 n.LcsDiff = a
4390 }),
4391 Q(Y[18], X([0, 1]), function (x, n) {
4392 'use strict'
4393 Object.defineProperty(n, '__esModule', { value: !0 }),
4394 (n.withNullAsUndefined =
4395 n.validateConstraint =
4396 n.validateConstraints =
4397 n.isFunction =
4398 n.assertIsDefined =
4399 n.assertType =
4400 n.isUndefinedOrNull =
4401 n.isDefined =
4402 n.isUndefined =
4403 n.isBoolean =
4404 n.isIterable =
4405 n.isNumber =
4406 n.isTypedArray =
4407 n.isObject =
4408 n.isString =
4409 void 0)
4410 function R(E) {
4411 return typeof E == 'string'
4412 }
4413 n.isString = R
4414 function D(E) {
4415 return (
4416 typeof E == 'object' &&
4417 E !== null &&
4418 !Array.isArray(E) &&
4419 !(E instanceof RegExp) &&
4420 !(E instanceof Date)
4421 )
4422 }
4423 n.isObject = D
4424 function i(E) {
4425 const y = Object.getPrototypeOf(Uint8Array)
4426 return typeof E == 'object' && E instanceof y
4427 }
4428 n.isTypedArray = i
4429 function s(E) {
4430 return typeof E == 'number' && !isNaN(E)
4431 }
4432 n.isNumber = s
4433 function p(E) {
4434 return !!E && typeof E[Symbol.iterator] == 'function'
4435 }
4436 n.isIterable = p
4437 function L(E) {
4438 return E === !0 || E === !1
4439 }
4440 n.isBoolean = L
4441 function h(E) {
4442 return typeof E > 'u'
4443 }
4444 n.isUndefined = h
4445 function a(E) {
4446 return !w(E)
4447 }
4448 n.isDefined = a
4449 function w(E) {
4450 return h(E) || E === null
4451 }
4452 n.isUndefinedOrNull = w
4453 function e(E, y) {
4454 if (!E) throw new Error(y ? `Unexpected type, expected '${y}'` : 'Unexpected type')
4455 }
4456 n.assertType = e
4457 function b(E) {
4458 if (w(E)) throw new Error('Assertion Failed: argument is undefined or null')
4459 return E
4460 }
4461 n.assertIsDefined = b
4462 function f(E) {
4463 return typeof E == 'function'
4464 }
4465 n.isFunction = f
4466 function v(E, y) {
4467 const _ = Math.min(E.length, y.length)
4468 for (let d = 0; d < _; d++) g(E[d], y[d])
4469 }
4470 n.validateConstraints = v
4471 function g(E, y) {
4472 if (R(y)) {
4473 if (typeof E !== y) throw new Error(`argument does not match constraint: typeof ${y}`)
4474 } else if (f(y)) {
4475 try {
4476 if (E instanceof y) return
4477 } catch {}
4478 if ((!w(E) && E.constructor === y) || (y.length === 1 && y.call(void 0, E) === !0)) return
4479 throw new Error(
4480 'argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true'
4481 )
4482 }
4483 }
4484 n.validateConstraint = g
4485 function S(E) {
4486 return E === null ? void 0 : E
4487 }
4488 n.withNullAsUndefined = S
4489 }),
4490 Q(Y[32], X([0, 1, 18]), function (x, n, R) {
4491 'use strict'
4492 Object.defineProperty(n, '__esModule', { value: !0 }),
4493 (n.Codicon = n.getCodiconFontCharacters = void 0)
4494 const D = Object.create(null)
4495 function i(p, L) {
4496 if ((0, R.isString)(L)) {
4497 const h = D[L]
4498 if (h === void 0) throw new Error(`${p} references an unknown codicon: ${L}`)
4499 L = h
4500 }
4501 return (D[p] = L), { id: p }
4502 }
4503 function s() {
4504 return D
4505 }
4506 ;(n.getCodiconFontCharacters = s),
4507 (n.Codicon = {
4508 add: i('add', 6e4),
4509 plus: i('plus', 6e4),
4510 gistNew: i('gist-new', 6e4),
4511 repoCreate: i('repo-create', 6e4),
4512 lightbulb: i('lightbulb', 60001),
4513 lightBulb: i('light-bulb', 60001),
4514 repo: i('repo', 60002),
4515 repoDelete: i('repo-delete', 60002),
4516 gistFork: i('gist-fork', 60003),
4517 repoForked: i('repo-forked', 60003),
4518 gitPullRequest: i('git-pull-request', 60004),
4519 gitPullRequestAbandoned: i('git-pull-request-abandoned', 60004),
4520 recordKeys: i('record-keys', 60005),
4521 keyboard: i('keyboard', 60005),
4522 tag: i('tag', 60006),
4523 tagAdd: i('tag-add', 60006),
4524 tagRemove: i('tag-remove', 60006),
4525 person: i('person', 60007),
4526 personFollow: i('person-follow', 60007),
4527 personOutline: i('person-outline', 60007),
4528 personFilled: i('person-filled', 60007),
4529 gitBranch: i('git-branch', 60008),
4530 gitBranchCreate: i('git-branch-create', 60008),
4531 gitBranchDelete: i('git-branch-delete', 60008),
4532 sourceControl: i('source-control', 60008),
4533 mirror: i('mirror', 60009),
4534 mirrorPublic: i('mirror-public', 60009),
4535 star: i('star', 60010),
4536 starAdd: i('star-add', 60010),
4537 starDelete: i('star-delete', 60010),
4538 starEmpty: i('star-empty', 60010),
4539 comment: i('comment', 60011),
4540 commentAdd: i('comment-add', 60011),
4541 alert: i('alert', 60012),
4542 warning: i('warning', 60012),
4543 search: i('search', 60013),
4544 searchSave: i('search-save', 60013),
4545 logOut: i('log-out', 60014),
4546 signOut: i('sign-out', 60014),
4547 logIn: i('log-in', 60015),
4548 signIn: i('sign-in', 60015),
4549 eye: i('eye', 60016),
4550 eyeUnwatch: i('eye-unwatch', 60016),
4551 eyeWatch: i('eye-watch', 60016),
4552 circleFilled: i('circle-filled', 60017),
4553 primitiveDot: i('primitive-dot', 60017),
4554 closeDirty: i('close-dirty', 60017),
4555 debugBreakpoint: i('debug-breakpoint', 60017),
4556 debugBreakpointDisabled: i('debug-breakpoint-disabled', 60017),
4557 debugHint: i('debug-hint', 60017),
4558 primitiveSquare: i('primitive-square', 60018),
4559 edit: i('edit', 60019),
4560 pencil: i('pencil', 60019),
4561 info: i('info', 60020),
4562 issueOpened: i('issue-opened', 60020),
4563 gistPrivate: i('gist-private', 60021),
4564 gitForkPrivate: i('git-fork-private', 60021),
4565 lock: i('lock', 60021),
4566 mirrorPrivate: i('mirror-private', 60021),
4567 close: i('close', 60022),
4568 removeClose: i('remove-close', 60022),
4569 x: i('x', 60022),
4570 repoSync: i('repo-sync', 60023),
4571 sync: i('sync', 60023),
4572 clone: i('clone', 60024),
4573 desktopDownload: i('desktop-download', 60024),
4574 beaker: i('beaker', 60025),
4575 microscope: i('microscope', 60025),
4576 vm: i('vm', 60026),
4577 deviceDesktop: i('device-desktop', 60026),
4578 file: i('file', 60027),
4579 fileText: i('file-text', 60027),
4580 more: i('more', 60028),
4581 ellipsis: i('ellipsis', 60028),
4582 kebabHorizontal: i('kebab-horizontal', 60028),
4583 mailReply: i('mail-reply', 60029),
4584 reply: i('reply', 60029),
4585 organization: i('organization', 60030),
4586 organizationFilled: i('organization-filled', 60030),
4587 organizationOutline: i('organization-outline', 60030),
4588 newFile: i('new-file', 60031),
4589 fileAdd: i('file-add', 60031),
4590 newFolder: i('new-folder', 60032),
4591 fileDirectoryCreate: i('file-directory-create', 60032),
4592 trash: i('trash', 60033),
4593 trashcan: i('trashcan', 60033),
4594 history: i('history', 60034),
4595 clock: i('clock', 60034),
4596 folder: i('folder', 60035),
4597 fileDirectory: i('file-directory', 60035),
4598 symbolFolder: i('symbol-folder', 60035),
4599 logoGithub: i('logo-github', 60036),
4600 markGithub: i('mark-github', 60036),
4601 github: i('github', 60036),
4602 terminal: i('terminal', 60037),
4603 console: i('console', 60037),
4604 repl: i('repl', 60037),
4605 zap: i('zap', 60038),
4606 symbolEvent: i('symbol-event', 60038),
4607 error: i('error', 60039),
4608 stop: i('stop', 60039),
4609 variable: i('variable', 60040),
4610 symbolVariable: i('symbol-variable', 60040),
4611 array: i('array', 60042),
4612 symbolArray: i('symbol-array', 60042),
4613 symbolModule: i('symbol-module', 60043),
4614 symbolPackage: i('symbol-package', 60043),
4615 symbolNamespace: i('symbol-namespace', 60043),
4616 symbolObject: i('symbol-object', 60043),
4617 symbolMethod: i('symbol-method', 60044),
4618 symbolFunction: i('symbol-function', 60044),
4619 symbolConstructor: i('symbol-constructor', 60044),
4620 symbolBoolean: i('symbol-boolean', 60047),
4621 symbolNull: i('symbol-null', 60047),
4622 symbolNumeric: i('symbol-numeric', 60048),
4623 symbolNumber: i('symbol-number', 60048),
4624 symbolStructure: i('symbol-structure', 60049),
4625 symbolStruct: i('symbol-struct', 60049),
4626 symbolParameter: i('symbol-parameter', 60050),
4627 symbolTypeParameter: i('symbol-type-parameter', 60050),
4628 symbolKey: i('symbol-key', 60051),
4629 symbolText: i('symbol-text', 60051),
4630 symbolReference: i('symbol-reference', 60052),
4631 goToFile: i('go-to-file', 60052),
4632 symbolEnum: i('symbol-enum', 60053),
4633 symbolValue: i('symbol-value', 60053),
4634 symbolRuler: i('symbol-ruler', 60054),
4635 symbolUnit: i('symbol-unit', 60054),
4636 activateBreakpoints: i('activate-breakpoints', 60055),
4637 archive: i('archive', 60056),
4638 arrowBoth: i('arrow-both', 60057),
4639 arrowDown: i('arrow-down', 60058),
4640 arrowLeft: i('arrow-left', 60059),
4641 arrowRight: i('arrow-right', 60060),
4642 arrowSmallDown: i('arrow-small-down', 60061),
4643 arrowSmallLeft: i('arrow-small-left', 60062),
4644 arrowSmallRight: i('arrow-small-right', 60063),
4645 arrowSmallUp: i('arrow-small-up', 60064),
4646 arrowUp: i('arrow-up', 60065),
4647 bell: i('bell', 60066),
4648 bold: i('bold', 60067),
4649 book: i('book', 60068),
4650 bookmark: i('bookmark', 60069),
4651 debugBreakpointConditionalUnverified: i('debug-breakpoint-conditional-unverified', 60070),
4652 debugBreakpointConditional: i('debug-breakpoint-conditional', 60071),
4653 debugBreakpointConditionalDisabled: i('debug-breakpoint-conditional-disabled', 60071),
4654 debugBreakpointDataUnverified: i('debug-breakpoint-data-unverified', 60072),
4655 debugBreakpointData: i('debug-breakpoint-data', 60073),
4656 debugBreakpointDataDisabled: i('debug-breakpoint-data-disabled', 60073),
4657 debugBreakpointLogUnverified: i('debug-breakpoint-log-unverified', 60074),
4658 debugBreakpointLog: i('debug-breakpoint-log', 60075),
4659 debugBreakpointLogDisabled: i('debug-breakpoint-log-disabled', 60075),
4660 briefcase: i('briefcase', 60076),
4661 broadcast: i('broadcast', 60077),
4662 browser: i('browser', 60078),
4663 bug: i('bug', 60079),
4664 calendar: i('calendar', 60080),
4665 caseSensitive: i('case-sensitive', 60081),
4666 check: i('check', 60082),
4667 checklist: i('checklist', 60083),
4668 chevronDown: i('chevron-down', 60084),
4669 dropDownButton: i('drop-down-button', 60084),
4670 chevronLeft: i('chevron-left', 60085),
4671 chevronRight: i('chevron-right', 60086),
4672 chevronUp: i('chevron-up', 60087),
4673 chromeClose: i('chrome-close', 60088),
4674 chromeMaximize: i('chrome-maximize', 60089),
4675 chromeMinimize: i('chrome-minimize', 60090),
4676 chromeRestore: i('chrome-restore', 60091),
4677 circle: i('circle', 60092),
4678 circleOutline: i('circle-outline', 60092),
4679 debugBreakpointUnverified: i('debug-breakpoint-unverified', 60092),
4680 circleSlash: i('circle-slash', 60093),
4681 circuitBoard: i('circuit-board', 60094),
4682 clearAll: i('clear-all', 60095),
4683 clippy: i('clippy', 60096),
4684 closeAll: i('close-all', 60097),
4685 cloudDownload: i('cloud-download', 60098),
4686 cloudUpload: i('cloud-upload', 60099),
4687 code: i('code', 60100),
4688 collapseAll: i('collapse-all', 60101),
4689 colorMode: i('color-mode', 60102),
4690 commentDiscussion: i('comment-discussion', 60103),
4691 compareChanges: i('compare-changes', 60157),
4692 creditCard: i('credit-card', 60105),
4693 dash: i('dash', 60108),
4694 dashboard: i('dashboard', 60109),
4695 database: i('database', 60110),
4696 debugContinue: i('debug-continue', 60111),
4697 debugDisconnect: i('debug-disconnect', 60112),
4698 debugPause: i('debug-pause', 60113),
4699 debugRestart: i('debug-restart', 60114),
4700 debugStart: i('debug-start', 60115),
4701 debugStepInto: i('debug-step-into', 60116),
4702 debugStepOut: i('debug-step-out', 60117),
4703 debugStepOver: i('debug-step-over', 60118),
4704 debugStop: i('debug-stop', 60119),
4705 debug: i('debug', 60120),
4706 deviceCameraVideo: i('device-camera-video', 60121),
4707 deviceCamera: i('device-camera', 60122),
4708 deviceMobile: i('device-mobile', 60123),
4709 diffAdded: i('diff-added', 60124),
4710 diffIgnored: i('diff-ignored', 60125),
4711 diffModified: i('diff-modified', 60126),
4712 diffRemoved: i('diff-removed', 60127),
4713 diffRenamed: i('diff-renamed', 60128),
4714 diff: i('diff', 60129),
4715 discard: i('discard', 60130),
4716 editorLayout: i('editor-layout', 60131),
4717 emptyWindow: i('empty-window', 60132),
4718 exclude: i('exclude', 60133),
4719 extensions: i('extensions', 60134),
4720 eyeClosed: i('eye-closed', 60135),
4721 fileBinary: i('file-binary', 60136),
4722 fileCode: i('file-code', 60137),
4723 fileMedia: i('file-media', 60138),
4724 filePdf: i('file-pdf', 60139),
4725 fileSubmodule: i('file-submodule', 60140),
4726 fileSymlinkDirectory: i('file-symlink-directory', 60141),
4727 fileSymlinkFile: i('file-symlink-file', 60142),
4728 fileZip: i('file-zip', 60143),
4729 files: i('files', 60144),
4730 filter: i('filter', 60145),
4731 flame: i('flame', 60146),
4732 foldDown: i('fold-down', 60147),
4733 foldUp: i('fold-up', 60148),
4734 fold: i('fold', 60149),
4735 folderActive: i('folder-active', 60150),
4736 folderOpened: i('folder-opened', 60151),
4737 gear: i('gear', 60152),
4738 gift: i('gift', 60153),
4739 gistSecret: i('gist-secret', 60154),
4740 gist: i('gist', 60155),
4741 gitCommit: i('git-commit', 60156),
4742 gitCompare: i('git-compare', 60157),
4743 gitMerge: i('git-merge', 60158),
4744 githubAction: i('github-action', 60159),
4745 githubAlt: i('github-alt', 60160),
4746 globe: i('globe', 60161),
4747 grabber: i('grabber', 60162),
4748 graph: i('graph', 60163),
4749 gripper: i('gripper', 60164),
4750 heart: i('heart', 60165),
4751 home: i('home', 60166),
4752 horizontalRule: i('horizontal-rule', 60167),
4753 hubot: i('hubot', 60168),
4754 inbox: i('inbox', 60169),
4755 issueClosed: i('issue-closed', 60324),
4756 issueReopened: i('issue-reopened', 60171),
4757 issues: i('issues', 60172),
4758 italic: i('italic', 60173),
4759 jersey: i('jersey', 60174),
4760 json: i('json', 60175),
4761 bracket: i('bracket', 60175),
4762 kebabVertical: i('kebab-vertical', 60176),
4763 key: i('key', 60177),
4764 law: i('law', 60178),
4765 lightbulbAutofix: i('lightbulb-autofix', 60179),
4766 linkExternal: i('link-external', 60180),
4767 link: i('link', 60181),
4768 listOrdered: i('list-ordered', 60182),
4769 listUnordered: i('list-unordered', 60183),
4770 liveShare: i('live-share', 60184),
4771 loading: i('loading', 60185),
4772 location: i('location', 60186),
4773 mailRead: i('mail-read', 60187),
4774 mail: i('mail', 60188),
4775 markdown: i('markdown', 60189),
4776 megaphone: i('megaphone', 60190),
4777 mention: i('mention', 60191),
4778 milestone: i('milestone', 60192),
4779 mortarBoard: i('mortar-board', 60193),
4780 move: i('move', 60194),
4781 multipleWindows: i('multiple-windows', 60195),
4782 mute: i('mute', 60196),
4783 noNewline: i('no-newline', 60197),
4784 note: i('note', 60198),
4785 octoface: i('octoface', 60199),
4786 openPreview: i('open-preview', 60200),
4787 package_: i('package', 60201),
4788 paintcan: i('paintcan', 60202),
4789 pin: i('pin', 60203),
4790 play: i('play', 60204),
4791 run: i('run', 60204),
4792 plug: i('plug', 60205),
4793 preserveCase: i('preserve-case', 60206),
4794 preview: i('preview', 60207),
4795 project: i('project', 60208),
4796 pulse: i('pulse', 60209),
4797 question: i('question', 60210),
4798 quote: i('quote', 60211),
4799 radioTower: i('radio-tower', 60212),
4800 reactions: i('reactions', 60213),
4801 references: i('references', 60214),
4802 refresh: i('refresh', 60215),
4803 regex: i('regex', 60216),
4804 remoteExplorer: i('remote-explorer', 60217),
4805 remote: i('remote', 60218),
4806 remove: i('remove', 60219),
4807 replaceAll: i('replace-all', 60220),
4808 replace: i('replace', 60221),
4809 repoClone: i('repo-clone', 60222),
4810 repoForcePush: i('repo-force-push', 60223),
4811 repoPull: i('repo-pull', 60224),
4812 repoPush: i('repo-push', 60225),
4813 report: i('report', 60226),
4814 requestChanges: i('request-changes', 60227),
4815 rocket: i('rocket', 60228),
4816 rootFolderOpened: i('root-folder-opened', 60229),
4817 rootFolder: i('root-folder', 60230),
4818 rss: i('rss', 60231),
4819 ruby: i('ruby', 60232),
4820 saveAll: i('save-all', 60233),
4821 saveAs: i('save-as', 60234),
4822 save: i('save', 60235),
4823 screenFull: i('screen-full', 60236),
4824 screenNormal: i('screen-normal', 60237),
4825 searchStop: i('search-stop', 60238),
4826 server: i('server', 60240),
4827 settingsGear: i('settings-gear', 60241),
4828 settings: i('settings', 60242),
4829 shield: i('shield', 60243),
4830 smiley: i('smiley', 60244),
4831 sortPrecedence: i('sort-precedence', 60245),
4832 splitHorizontal: i('split-horizontal', 60246),
4833 splitVertical: i('split-vertical', 60247),
4834 squirrel: i('squirrel', 60248),
4835 starFull: i('star-full', 60249),
4836 starHalf: i('star-half', 60250),
4837 symbolClass: i('symbol-class', 60251),
4838 symbolColor: i('symbol-color', 60252),
4839 symbolCustomColor: i('symbol-customcolor', 60252),
4840 symbolConstant: i('symbol-constant', 60253),
4841 symbolEnumMember: i('symbol-enum-member', 60254),
4842 symbolField: i('symbol-field', 60255),
4843 symbolFile: i('symbol-file', 60256),
4844 symbolInterface: i('symbol-interface', 60257),
4845 symbolKeyword: i('symbol-keyword', 60258),
4846 symbolMisc: i('symbol-misc', 60259),
4847 symbolOperator: i('symbol-operator', 60260),
4848 symbolProperty: i('symbol-property', 60261),
4849 wrench: i('wrench', 60261),
4850 wrenchSubaction: i('wrench-subaction', 60261),
4851 symbolSnippet: i('symbol-snippet', 60262),
4852 tasklist: i('tasklist', 60263),
4853 telescope: i('telescope', 60264),
4854 textSize: i('text-size', 60265),
4855 threeBars: i('three-bars', 60266),
4856 thumbsdown: i('thumbsdown', 60267),
4857 thumbsup: i('thumbsup', 60268),
4858 tools: i('tools', 60269),
4859 triangleDown: i('triangle-down', 60270),
4860 triangleLeft: i('triangle-left', 60271),
4861 triangleRight: i('triangle-right', 60272),
4862 triangleUp: i('triangle-up', 60273),
4863 twitter: i('twitter', 60274),
4864 unfold: i('unfold', 60275),
4865 unlock: i('unlock', 60276),
4866 unmute: i('unmute', 60277),
4867 unverified: i('unverified', 60278),
4868 verified: i('verified', 60279),
4869 versions: i('versions', 60280),
4870 vmActive: i('vm-active', 60281),
4871 vmOutline: i('vm-outline', 60282),
4872 vmRunning: i('vm-running', 60283),
4873 watch: i('watch', 60284),
4874 whitespace: i('whitespace', 60285),
4875 wholeWord: i('whole-word', 60286),
4876 window: i('window', 60287),
4877 wordWrap: i('word-wrap', 60288),
4878 zoomIn: i('zoom-in', 60289),
4879 zoomOut: i('zoom-out', 60290),
4880 listFilter: i('list-filter', 60291),
4881 listFlat: i('list-flat', 60292),
4882 listSelection: i('list-selection', 60293),
4883 selection: i('selection', 60293),
4884 listTree: i('list-tree', 60294),
4885 debugBreakpointFunctionUnverified: i('debug-breakpoint-function-unverified', 60295),
4886 debugBreakpointFunction: i('debug-breakpoint-function', 60296),
4887 debugBreakpointFunctionDisabled: i('debug-breakpoint-function-disabled', 60296),
4888 debugStackframeActive: i('debug-stackframe-active', 60297),
4889 circleSmallFilled: i('circle-small-filled', 60298),
4890 debugStackframeDot: i('debug-stackframe-dot', 60298),
4891 debugStackframe: i('debug-stackframe', 60299),
4892 debugStackframeFocused: i('debug-stackframe-focused', 60299),
4893 debugBreakpointUnsupported: i('debug-breakpoint-unsupported', 60300),
4894 symbolString: i('symbol-string', 60301),
4895 debugReverseContinue: i('debug-reverse-continue', 60302),
4896 debugStepBack: i('debug-step-back', 60303),
4897 debugRestartFrame: i('debug-restart-frame', 60304),
4898 callIncoming: i('call-incoming', 60306),
4899 callOutgoing: i('call-outgoing', 60307),
4900 menu: i('menu', 60308),
4901 expandAll: i('expand-all', 60309),
4902 feedback: i('feedback', 60310),
4903 groupByRefType: i('group-by-ref-type', 60311),
4904 ungroupByRefType: i('ungroup-by-ref-type', 60312),
4905 account: i('account', 60313),
4906 bellDot: i('bell-dot', 60314),
4907 debugConsole: i('debug-console', 60315),
4908 library: i('library', 60316),
4909 output: i('output', 60317),
4910 runAll: i('run-all', 60318),
4911 syncIgnored: i('sync-ignored', 60319),
4912 pinned: i('pinned', 60320),
4913 githubInverted: i('github-inverted', 60321),
4914 debugAlt: i('debug-alt', 60305),
4915 serverProcess: i('server-process', 60322),
4916 serverEnvironment: i('server-environment', 60323),
4917 pass: i('pass', 60324),
4918 stopCircle: i('stop-circle', 60325),
4919 playCircle: i('play-circle', 60326),
4920 record: i('record', 60327),
4921 debugAltSmall: i('debug-alt-small', 60328),
4922 vmConnect: i('vm-connect', 60329),
4923 cloud: i('cloud', 60330),
4924 merge: i('merge', 60331),
4925 exportIcon: i('export', 60332),
4926 graphLeft: i('graph-left', 60333),
4927 magnet: i('magnet', 60334),
4928 notebook: i('notebook', 60335),
4929 redo: i('redo', 60336),
4930 checkAll: i('check-all', 60337),
4931 pinnedDirty: i('pinned-dirty', 60338),
4932 passFilled: i('pass-filled', 60339),
4933 circleLargeFilled: i('circle-large-filled', 60340),
4934 circleLarge: i('circle-large', 60341),
4935 circleLargeOutline: i('circle-large-outline', 60341),
4936 combine: i('combine', 60342),
4937 gather: i('gather', 60342),
4938 table: i('table', 60343),
4939 variableGroup: i('variable-group', 60344),
4940 typeHierarchy: i('type-hierarchy', 60345),
4941 typeHierarchySub: i('type-hierarchy-sub', 60346),
4942 typeHierarchySuper: i('type-hierarchy-super', 60347),
4943 gitPullRequestCreate: i('git-pull-request-create', 60348),
4944 runAbove: i('run-above', 60349),
4945 runBelow: i('run-below', 60350),
4946 notebookTemplate: i('notebook-template', 60351),
4947 debugRerun: i('debug-rerun', 60352),
4948 workspaceTrusted: i('workspace-trusted', 60353),
4949 workspaceUntrusted: i('workspace-untrusted', 60354),
4950 workspaceUnspecified: i('workspace-unspecified', 60355),
4951 terminalCmd: i('terminal-cmd', 60356),
4952 terminalDebian: i('terminal-debian', 60357),
4953 terminalLinux: i('terminal-linux', 60358),
4954 terminalPowershell: i('terminal-powershell', 60359),
4955 terminalTmux: i('terminal-tmux', 60360),
4956 terminalUbuntu: i('terminal-ubuntu', 60361),
4957 terminalBash: i('terminal-bash', 60362),
4958 arrowSwap: i('arrow-swap', 60363),
4959 copy: i('copy', 60364),
4960 personAdd: i('person-add', 60365),
4961 filterFilled: i('filter-filled', 60366),
4962 wand: i('wand', 60367),
4963 debugLineByLine: i('debug-line-by-line', 60368),
4964 inspect: i('inspect', 60369),
4965 layers: i('layers', 60370),
4966 layersDot: i('layers-dot', 60371),
4967 layersActive: i('layers-active', 60372),
4968 compass: i('compass', 60373),
4969 compassDot: i('compass-dot', 60374),
4970 compassActive: i('compass-active', 60375),
4971 azure: i('azure', 60376),
4972 issueDraft: i('issue-draft', 60377),
4973 gitPullRequestClosed: i('git-pull-request-closed', 60378),
4974 gitPullRequestDraft: i('git-pull-request-draft', 60379),
4975 debugAll: i('debug-all', 60380),
4976 debugCoverage: i('debug-coverage', 60381),
4977 runErrors: i('run-errors', 60382),
4978 folderLibrary: i('folder-library', 60383),
4979 debugContinueSmall: i('debug-continue-small', 60384),
4980 beakerStop: i('beaker-stop', 60385),
4981 graphLine: i('graph-line', 60386),
4982 graphScatter: i('graph-scatter', 60387),
4983 pieChart: i('pie-chart', 60388),
4984 bracketDot: i('bracket-dot', 60389),
4985 bracketError: i('bracket-error', 60390),
4986 lockSmall: i('lock-small', 60391),
4987 azureDevops: i('azure-devops', 60392),
4988 verifiedFilled: i('verified-filled', 60393),
4989 newLine: i('newline', 60394),
4990 layout: i('layout', 60395),
4991 layoutActivitybarLeft: i('layout-activitybar-left', 60396),
4992 layoutActivitybarRight: i('layout-activitybar-right', 60397),
4993 layoutPanelLeft: i('layout-panel-left', 60398),
4994 layoutPanelCenter: i('layout-panel-center', 60399),
4995 layoutPanelJustify: i('layout-panel-justify', 60400),
4996 layoutPanelRight: i('layout-panel-right', 60401),
4997 layoutPanel: i('layout-panel', 60402),
4998 layoutSidebarLeft: i('layout-sidebar-left', 60403),
4999 layoutSidebarRight: i('layout-sidebar-right', 60404),
5000 layoutStatusbar: i('layout-statusbar', 60405),
5001 layoutMenubar: i('layout-menubar', 60406),
5002 layoutCentered: i('layout-centered', 60407),
5003 layoutSidebarRightOff: i('layout-sidebar-right-off', 60416),
5004 layoutPanelOff: i('layout-panel-off', 60417),
5005 layoutSidebarLeftOff: i('layout-sidebar-left-off', 60418),
5006 target: i('target', 60408),
5007 indent: i('indent', 60409),
5008 recordSmall: i('record-small', 60410),
5009 errorSmall: i('error-small', 60411),
5010 arrowCircleDown: i('arrow-circle-down', 60412),
5011 arrowCircleLeft: i('arrow-circle-left', 60413),
5012 arrowCircleRight: i('arrow-circle-right', 60414),
5013 arrowCircleUp: i('arrow-circle-up', 60415),
5014 heartFilled: i('heart-filled', 60420),
5015 map: i('map', 60421),
5016 mapFilled: i('map-filled', 60422),
5017 circleSmall: i('circle-small', 60423),
5018 bellSlash: i('bell-slash', 60424),
5019 bellSlashDot: i('bell-slash-dot', 60425),
5020 commentUnresolved: i('comment-unresolved', 60426),
5021 gitPullRequestGoToChanges: i('git-pull-request-go-to-changes', 60427),
5022 gitPullRequestNewChanges: i('git-pull-request-new-changes', 60428),
5023 searchFuzzy: i('search-fuzzy', 60429),
5024 commentDraft: i('comment-draft', 60430),
5025 send: i('send', 60431),
5026 sparkle: i('sparkle', 60432),
5027 insert: i('insert', 60433),
5028 dialogError: i('dialog-error', 'error'),
5029 dialogWarning: i('dialog-warning', 'warning'),
5030 dialogInfo: i('dialog-info', 'info'),
5031 dialogClose: i('dialog-close', 'close'),
5032 treeItemExpanded: i('tree-item-expanded', 'chevron-down'),
5033 treeFilterOnTypeOn: i('tree-filter-on-type-on', 'list-filter'),
5034 treeFilterOnTypeOff: i('tree-filter-on-type-off', 'list-selection'),
5035 treeFilterClear: i('tree-filter-clear', 'close'),
5036 treeItemLoading: i('tree-item-loading', 'loading'),
5037 menuSelection: i('menu-selection', 'check'),
5038 menuSubmenu: i('menu-submenu', 'chevron-right'),
5039 menuBarMore: i('menubar-more', 'more'),
5040 scrollbarButtonLeft: i('scrollbar-button-left', 'triangle-left'),
5041 scrollbarButtonRight: i('scrollbar-button-right', 'triangle-right'),
5042 scrollbarButtonUp: i('scrollbar-button-up', 'triangle-up'),
5043 scrollbarButtonDown: i('scrollbar-button-down', 'triangle-down'),
5044 toolBarMore: i('toolbar-more', 'more'),
5045 quickInputBack: i('quick-input-back', 'arrow-left'),
5046 })
5047 }),
5048 Q(Y[12], X([0, 1, 18]), function (x, n, R) {
5049 'use strict'
5050 Object.defineProperty(n, '__esModule', { value: !0 }),
5051 (n.createProxyObject =
5052 n.getAllMethodNames =
5053 n.getAllPropertyNames =
5054 n.equals =
5055 n.mixin =
5056 n.cloneAndChange =
5057 n.deepFreeze =
5058 n.deepClone =
5059 void 0)
5060 function D(f) {
5061 if (!f || typeof f != 'object' || f instanceof RegExp) return f
5062 const v = Array.isArray(f) ? [] : {}
5063 return (
5064 Object.entries(f).forEach(([g, S]) => {
5065 v[g] = S && typeof S == 'object' ? D(S) : S
5066 }),
5067 v
5068 )
5069 }
5070 n.deepClone = D
5071 function i(f) {
5072 if (!f || typeof f != 'object') return f
5073 const v = [f]
5074 for (; v.length > 0; ) {
5075 const g = v.shift()
5076 Object.freeze(g)
5077 for (const S in g)
5078 if (s.call(g, S)) {
5079 const E = g[S]
5080 typeof E == 'object' && !Object.isFrozen(E) && !(0, R.isTypedArray)(E) && v.push(E)
5081 }
5082 }
5083 return f
5084 }
5085 n.deepFreeze = i
5086 const s = Object.prototype.hasOwnProperty
5087 function p(f, v) {
5088 return L(f, v, new Set())
5089 }
5090 n.cloneAndChange = p
5091 function L(f, v, g) {
5092 if ((0, R.isUndefinedOrNull)(f)) return f
5093 const S = v(f)
5094 if (typeof S < 'u') return S
5095 if (Array.isArray(f)) {
5096 const E = []
5097 for (const y of f) E.push(L(y, v, g))
5098 return E
5099 }
5100 if ((0, R.isObject)(f)) {
5101 if (g.has(f)) throw new Error('Cannot clone recursive data-structure')
5102 g.add(f)
5103 const E = {}
5104 for (const y in f) s.call(f, y) && (E[y] = L(f[y], v, g))
5105 return g.delete(f), E
5106 }
5107 return f
5108 }
5109 function h(f, v, g = !0) {
5110 return (0, R.isObject)(f)
5111 ? ((0, R.isObject)(v) &&
5112 Object.keys(v).forEach((S) => {
5113 S in f
5114 ? g &&
5115 ((0, R.isObject)(f[S]) && (0, R.isObject)(v[S])
5116 ? h(f[S], v[S], g)
5117 : (f[S] = v[S]))
5118 : (f[S] = v[S])
5119 }),
5120 f)
5121 : v
5122 }
5123 n.mixin = h
5124 function a(f, v) {
5125 if (f === v) return !0
5126 if (
5127 f == null ||
5128 v === null ||
5129 v === void 0 ||
5130 typeof f != typeof v ||
5131 typeof f != 'object' ||
5132 Array.isArray(f) !== Array.isArray(v)
5133 )
5134 return !1
5135 let g, S
5136 if (Array.isArray(f)) {
5137 if (f.length !== v.length) return !1
5138 for (g = 0; g < f.length; g++) if (!a(f[g], v[g])) return !1
5139 } else {
5140 const E = []
5141 for (S in f) E.push(S)
5142 E.sort()
5143 const y = []
5144 for (S in v) y.push(S)
5145 if ((y.sort(), !a(E, y))) return !1
5146 for (g = 0; g < E.length; g++) if (!a(f[E[g]], v[E[g]])) return !1
5147 }
5148 return !0
5149 }
5150 n.equals = a
5151 function w(f) {
5152 let v = [],
5153 g = Object.getPrototypeOf(f)
5154 for (; Object.prototype !== g; )
5155 (v = v.concat(Object.getOwnPropertyNames(g))), (g = Object.getPrototypeOf(g))
5156 return v
5157 }
5158 n.getAllPropertyNames = w
5159 function e(f) {
5160 const v = []
5161 for (const g of w(f)) typeof f[g] == 'function' && v.push(g)
5162 return v
5163 }
5164 n.getAllMethodNames = e
5165 function b(f, v) {
5166 const g = (E) =>
5167 function () {
5168 const y = Array.prototype.slice.call(arguments, 0)
5169 return v(E, y)
5170 },
5171 S = {}
5172 for (const E of f) S[E] = g(E)
5173 return S
5174 }
5175 n.createProxyObject = b
5176 }),
5177 Q(Y[19], X([0, 1]), function (x, n) {
5178 'use strict'
5179 Object.defineProperty(n, '__esModule', { value: !0 }), (n.toUint32 = n.toUint8 = void 0)
5180 function R(i) {
5181 return i < 0 ? 0 : i > 255 ? 255 : i | 0
5182 }
5183 n.toUint8 = R
5184 function D(i) {
5185 return i < 0 ? 0 : i > 4294967295 ? 4294967295 : i | 0
5186 }
5187 n.toUint32 = D
5188 }),
5189 Q(Y[20], X([0, 1, 19]), function (x, n, R) {
5190 'use strict'
5191 Object.defineProperty(n, '__esModule', { value: !0 }),
5192 (n.CharacterSet = n.CharacterClassifier = void 0)
5193 class D {
5194 constructor(p) {
5195 const L = (0, R.toUint8)(p)
5196 ;(this._defaultValue = L),
5197 (this._asciiMap = D._createAsciiMap(L)),
5198 (this._map = new Map())
5199 }
5200 static _createAsciiMap(p) {
5201 const L = new Uint8Array(256)
5202 return L.fill(p), L
5203 }
5204 set(p, L) {
5205 const h = (0, R.toUint8)(L)
5206 p >= 0 && p < 256 ? (this._asciiMap[p] = h) : this._map.set(p, h)
5207 }
5208 get(p) {
5209 return p >= 0 && p < 256 ? this._asciiMap[p] : this._map.get(p) || this._defaultValue
5210 }
5211 clear() {
5212 this._asciiMap.fill(this._defaultValue), this._map.clear()
5213 }
5214 }
5215 n.CharacterClassifier = D
5216 class i {
5217 constructor() {
5218 this._actual = new D(0)
5219 }
5220 add(p) {
5221 this._actual.set(p, 1)
5222 }
5223 has(p) {
5224 return this._actual.get(p) === 1
5225 }
5226 clear() {
5227 return this._actual.clear()
5228 }
5229 }
5230 n.CharacterSet = i
5231 }),
5232 Q(Y[21], X([0, 1, 4]), function (x, n, R) {
5233 'use strict'
5234 Object.defineProperty(n, '__esModule', { value: !0 }), (n.LineRange = void 0)
5235 class D {
5236 static joinMany(s) {
5237 if (s.length === 0) return []
5238 let p = s[0]
5239 for (let L = 1; L < s.length; L++) p = this.join(p, s[L])
5240 return p
5241 }
5242 static join(s, p) {
5243 if (s.length === 0) return p
5244 if (p.length === 0) return s
5245 const L = []
5246 let h = 0,
5247 a = 0,
5248 w = null
5249 for (; h < s.length || a < p.length; ) {
5250 let e = null
5251 if (h < s.length && a < p.length) {
5252 const b = s[h],
5253 f = p[a]
5254 b.startLineNumber < f.startLineNumber ? ((e = b), h++) : ((e = f), a++)
5255 } else h < s.length ? ((e = s[h]), h++) : ((e = p[a]), a++)
5256 w === null
5257 ? (w = e)
5258 : w.endLineNumberExclusive >= e.startLineNumber
5259 ? (w = new D(
5260 w.startLineNumber,
5261 Math.max(w.endLineNumberExclusive, e.endLineNumberExclusive)
5262 ))
5263 : (L.push(w), (w = e))
5264 }
5265 return w !== null && L.push(w), L
5266 }
5267 constructor(s, p) {
5268 if (s > p)
5269 throw new R.BugIndicatingError(
5270 `startLineNumber ${s} cannot be after endLineNumberExclusive ${p}`
5271 )
5272 ;(this.startLineNumber = s), (this.endLineNumberExclusive = p)
5273 }
5274 contains(s) {
5275 return this.startLineNumber <= s && s < this.endLineNumberExclusive
5276 }
5277 get isEmpty() {
5278 return this.startLineNumber === this.endLineNumberExclusive
5279 }
5280 delta(s) {
5281 return new D(this.startLineNumber + s, this.endLineNumberExclusive + s)
5282 }
5283 get length() {
5284 return this.endLineNumberExclusive - this.startLineNumber
5285 }
5286 join(s) {
5287 return new D(
5288 Math.min(this.startLineNumber, s.startLineNumber),
5289 Math.max(this.endLineNumberExclusive, s.endLineNumberExclusive)
5290 )
5291 }
5292 toString() {
5293 return `[${this.startLineNumber},${this.endLineNumberExclusive})`
5294 }
5295 intersect(s) {
5296 const p = Math.max(this.startLineNumber, s.startLineNumber),
5297 L = Math.min(this.endLineNumberExclusive, s.endLineNumberExclusive)
5298 if (p <= L) return new D(p, L)
5299 }
5300 overlapOrTouch(s) {
5301 return (
5302 this.startLineNumber <= s.endLineNumberExclusive &&
5303 s.startLineNumber <= this.endLineNumberExclusive
5304 )
5305 }
5306 equals(s) {
5307 return (
5308 this.startLineNumber === s.startLineNumber &&
5309 this.endLineNumberExclusive === s.endLineNumberExclusive
5310 )
5311 }
5312 }
5313 n.LineRange = D
5314 }),
5315 Q(Y[6], X([0, 1, 4]), function (x, n, R) {
5316 'use strict'
5317 Object.defineProperty(n, '__esModule', { value: !0 }), (n.OffsetRange = void 0)
5318 class D {
5319 static addRange(s, p) {
5320 let L = 0
5321 for (; L < p.length && p[L].endExclusive < s.start; ) L++
5322 let h = L
5323 for (; h < p.length && p[h].start <= s.endExclusive; ) h++
5324 if (L === h) p.splice(L, 0, s)
5325 else {
5326 const a = Math.min(s.start, p[L].start),
5327 w = Math.max(s.endExclusive, p[h - 1].endExclusive)
5328 p.splice(L, h - L, new D(a, w))
5329 }
5330 }
5331 static tryCreate(s, p) {
5332 if (!(s > p)) return new D(s, p)
5333 }
5334 constructor(s, p) {
5335 if (((this.start = s), (this.endExclusive = p), s > p))
5336 throw new R.BugIndicatingError(`Invalid range: ${this.toString()}`)
5337 }
5338 get isEmpty() {
5339 return this.start === this.endExclusive
5340 }
5341 delta(s) {
5342 return new D(this.start + s, this.endExclusive + s)
5343 }
5344 get length() {
5345 return this.endExclusive - this.start
5346 }
5347 toString() {
5348 return `[${this.start}, ${this.endExclusive})`
5349 }
5350 equals(s) {
5351 return this.start === s.start && this.endExclusive === s.endExclusive
5352 }
5353 containsRange(s) {
5354 return this.start <= s.start && s.endExclusive <= this.endExclusive
5355 }
5356 join(s) {
5357 return new D(Math.min(this.start, s.start), Math.max(this.endExclusive, s.endExclusive))
5358 }
5359 intersect(s) {
5360 const p = Math.max(this.start, s.start),
5361 L = Math.min(this.endExclusive, s.endExclusive)
5362 if (p <= L) return new D(p, L)
5363 }
5364 }
5365 n.OffsetRange = D
5366 }),
5367 Q(Y[3], X([0, 1]), function (x, n) {
5368 'use strict'
5369 Object.defineProperty(n, '__esModule', { value: !0 }), (n.Position = void 0)
5370 class R {
5371 constructor(i, s) {
5372 ;(this.lineNumber = i), (this.column = s)
5373 }
5374 with(i = this.lineNumber, s = this.column) {
5375 return i === this.lineNumber && s === this.column ? this : new R(i, s)
5376 }
5377 delta(i = 0, s = 0) {
5378 return this.with(this.lineNumber + i, this.column + s)
5379 }
5380 equals(i) {
5381 return R.equals(this, i)
5382 }
5383 static equals(i, s) {
5384 return !i && !s
5385 ? !0
5386 : !!i && !!s && i.lineNumber === s.lineNumber && i.column === s.column
5387 }
5388 isBefore(i) {
5389 return R.isBefore(this, i)
5390 }
5391 static isBefore(i, s) {
5392 return i.lineNumber < s.lineNumber
5393 ? !0
5394 : s.lineNumber < i.lineNumber
5395 ? !1
5396 : i.column < s.column
5397 }
5398 isBeforeOrEqual(i) {
5399 return R.isBeforeOrEqual(this, i)
5400 }
5401 static isBeforeOrEqual(i, s) {
5402 return i.lineNumber < s.lineNumber
5403 ? !0
5404 : s.lineNumber < i.lineNumber
5405 ? !1
5406 : i.column <= s.column
5407 }
5408 static compare(i, s) {
5409 const p = i.lineNumber | 0,
5410 L = s.lineNumber | 0
5411 if (p === L) {
5412 const h = i.column | 0,
5413 a = s.column | 0
5414 return h - a
5415 }
5416 return p - L
5417 }
5418 clone() {
5419 return new R(this.lineNumber, this.column)
5420 }
5421 toString() {
5422 return '(' + this.lineNumber + ',' + this.column + ')'
5423 }
5424 static lift(i) {
5425 return new R(i.lineNumber, i.column)
5426 }
5427 static isIPosition(i) {
5428 return i && typeof i.lineNumber == 'number' && typeof i.column == 'number'
5429 }
5430 }
5431 n.Position = R
5432 }),
5433 Q(Y[2], X([0, 1, 3]), function (x, n, R) {
5434 'use strict'
5435 Object.defineProperty(n, '__esModule', { value: !0 }), (n.Range = void 0)
5436 class D {
5437 constructor(s, p, L, h) {
5438 s > L || (s === L && p > h)
5439 ? ((this.startLineNumber = L),
5440 (this.startColumn = h),
5441 (this.endLineNumber = s),
5442 (this.endColumn = p))
5443 : ((this.startLineNumber = s),
5444 (this.startColumn = p),
5445 (this.endLineNumber = L),
5446 (this.endColumn = h))
5447 }
5448 isEmpty() {
5449 return D.isEmpty(this)
5450 }
5451 static isEmpty(s) {
5452 return s.startLineNumber === s.endLineNumber && s.startColumn === s.endColumn
5453 }
5454 containsPosition(s) {
5455 return D.containsPosition(this, s)
5456 }
5457 static containsPosition(s, p) {
5458 return !(
5459 p.lineNumber < s.startLineNumber ||
5460 p.lineNumber > s.endLineNumber ||
5461 (p.lineNumber === s.startLineNumber && p.column < s.startColumn) ||
5462 (p.lineNumber === s.endLineNumber && p.column > s.endColumn)
5463 )
5464 }
5465 static strictContainsPosition(s, p) {
5466 return !(
5467 p.lineNumber < s.startLineNumber ||
5468 p.lineNumber > s.endLineNumber ||
5469 (p.lineNumber === s.startLineNumber && p.column <= s.startColumn) ||
5470 (p.lineNumber === s.endLineNumber && p.column >= s.endColumn)
5471 )
5472 }
5473 containsRange(s) {
5474 return D.containsRange(this, s)
5475 }
5476 static containsRange(s, p) {
5477 return !(
5478 p.startLineNumber < s.startLineNumber ||
5479 p.endLineNumber < s.startLineNumber ||
5480 p.startLineNumber > s.endLineNumber ||
5481 p.endLineNumber > s.endLineNumber ||
5482 (p.startLineNumber === s.startLineNumber && p.startColumn < s.startColumn) ||
5483 (p.endLineNumber === s.endLineNumber && p.endColumn > s.endColumn)
5484 )
5485 }
5486 strictContainsRange(s) {
5487 return D.strictContainsRange(this, s)
5488 }
5489 static strictContainsRange(s, p) {
5490 return !(
5491 p.startLineNumber < s.startLineNumber ||
5492 p.endLineNumber < s.startLineNumber ||
5493 p.startLineNumber > s.endLineNumber ||
5494 p.endLineNumber > s.endLineNumber ||
5495 (p.startLineNumber === s.startLineNumber && p.startColumn <= s.startColumn) ||
5496 (p.endLineNumber === s.endLineNumber && p.endColumn >= s.endColumn)
5497 )
5498 }
5499 plusRange(s) {
5500 return D.plusRange(this, s)
5501 }
5502 static plusRange(s, p) {
5503 let L, h, a, w
5504 return (
5505 p.startLineNumber < s.startLineNumber
5506 ? ((L = p.startLineNumber), (h = p.startColumn))
5507 : p.startLineNumber === s.startLineNumber
5508 ? ((L = p.startLineNumber), (h = Math.min(p.startColumn, s.startColumn)))
5509 : ((L = s.startLineNumber), (h = s.startColumn)),
5510 p.endLineNumber > s.endLineNumber
5511 ? ((a = p.endLineNumber), (w = p.endColumn))
5512 : p.endLineNumber === s.endLineNumber
5513 ? ((a = p.endLineNumber), (w = Math.max(p.endColumn, s.endColumn)))
5514 : ((a = s.endLineNumber), (w = s.endColumn)),
5515 new D(L, h, a, w)
5516 )
5517 }
5518 intersectRanges(s) {
5519 return D.intersectRanges(this, s)
5520 }
5521 static intersectRanges(s, p) {
5522 let L = s.startLineNumber,
5523 h = s.startColumn,
5524 a = s.endLineNumber,
5525 w = s.endColumn
5526 const e = p.startLineNumber,
5527 b = p.startColumn,
5528 f = p.endLineNumber,
5529 v = p.endColumn
5530 return (
5531 L < e ? ((L = e), (h = b)) : L === e && (h = Math.max(h, b)),
5532 a > f ? ((a = f), (w = v)) : a === f && (w = Math.min(w, v)),
5533 L > a || (L === a && h > w) ? null : new D(L, h, a, w)
5534 )
5535 }
5536 equalsRange(s) {
5537 return D.equalsRange(this, s)
5538 }
5539 static equalsRange(s, p) {
5540 return !s && !p
5541 ? !0
5542 : !!s &&
5543 !!p &&
5544 s.startLineNumber === p.startLineNumber &&
5545 s.startColumn === p.startColumn &&
5546 s.endLineNumber === p.endLineNumber &&
5547 s.endColumn === p.endColumn
5548 }
5549 getEndPosition() {
5550 return D.getEndPosition(this)
5551 }
5552 static getEndPosition(s) {
5553 return new R.Position(s.endLineNumber, s.endColumn)
5554 }
5555 getStartPosition() {
5556 return D.getStartPosition(this)
5557 }
5558 static getStartPosition(s) {
5559 return new R.Position(s.startLineNumber, s.startColumn)
5560 }
5561 toString() {
5562 return (
5563 '[' +
5564 this.startLineNumber +
5565 ',' +
5566 this.startColumn +
5567 ' -> ' +
5568 this.endLineNumber +
5569 ',' +
5570 this.endColumn +
5571 ']'
5572 )
5573 }
5574 setEndPosition(s, p) {
5575 return new D(this.startLineNumber, this.startColumn, s, p)
5576 }
5577 setStartPosition(s, p) {
5578 return new D(s, p, this.endLineNumber, this.endColumn)
5579 }
5580 collapseToStart() {
5581 return D.collapseToStart(this)
5582 }
5583 static collapseToStart(s) {
5584 return new D(s.startLineNumber, s.startColumn, s.startLineNumber, s.startColumn)
5585 }
5586 collapseToEnd() {
5587 return D.collapseToEnd(this)
5588 }
5589 static collapseToEnd(s) {
5590 return new D(s.endLineNumber, s.endColumn, s.endLineNumber, s.endColumn)
5591 }
5592 delta(s) {
5593 return new D(
5594 this.startLineNumber + s,
5595 this.startColumn,
5596 this.endLineNumber + s,
5597 this.endColumn
5598 )
5599 }
5600 static fromPositions(s, p = s) {
5601 return new D(s.lineNumber, s.column, p.lineNumber, p.column)
5602 }
5603 static lift(s) {
5604 return s ? new D(s.startLineNumber, s.startColumn, s.endLineNumber, s.endColumn) : null
5605 }
5606 static isIRange(s) {
5607 return (
5608 s &&
5609 typeof s.startLineNumber == 'number' &&
5610 typeof s.startColumn == 'number' &&
5611 typeof s.endLineNumber == 'number' &&
5612 typeof s.endColumn == 'number'
5613 )
5614 }
5615 static areIntersectingOrTouching(s, p) {
5616 return !(
5617 s.endLineNumber < p.startLineNumber ||
5618 (s.endLineNumber === p.startLineNumber && s.endColumn < p.startColumn) ||
5619 p.endLineNumber < s.startLineNumber ||
5620 (p.endLineNumber === s.startLineNumber && p.endColumn < s.startColumn)
5621 )
5622 }
5623 static areIntersecting(s, p) {
5624 return !(
5625 s.endLineNumber < p.startLineNumber ||
5626 (s.endLineNumber === p.startLineNumber && s.endColumn <= p.startColumn) ||
5627 p.endLineNumber < s.startLineNumber ||
5628 (p.endLineNumber === s.startLineNumber && p.endColumn <= s.startColumn)
5629 )
5630 }
5631 static compareRangesUsingStarts(s, p) {
5632 if (s && p) {
5633 const a = s.startLineNumber | 0,
5634 w = p.startLineNumber | 0
5635 if (a === w) {
5636 const e = s.startColumn | 0,
5637 b = p.startColumn | 0
5638 if (e === b) {
5639 const f = s.endLineNumber | 0,
5640 v = p.endLineNumber | 0
5641 if (f === v) {
5642 const g = s.endColumn | 0,
5643 S = p.endColumn | 0
5644 return g - S
5645 }
5646 return f - v
5647 }
5648 return e - b
5649 }
5650 return a - w
5651 }
5652 return (s ? 1 : 0) - (p ? 1 : 0)
5653 }
5654 static compareRangesUsingEnds(s, p) {
5655 return s.endLineNumber === p.endLineNumber
5656 ? s.endColumn === p.endColumn
5657 ? s.startLineNumber === p.startLineNumber
5658 ? s.startColumn - p.startColumn
5659 : s.startLineNumber - p.startLineNumber
5660 : s.endColumn - p.endColumn
5661 : s.endLineNumber - p.endLineNumber
5662 }
5663 static spansMultipleLines(s) {
5664 return s.endLineNumber > s.startLineNumber
5665 }
5666 toJSON() {
5667 return this
5668 }
5669 }
5670 n.Range = D
5671 }),
5672 Q(Y[33], X([0, 1, 3, 2]), function (x, n, R, D) {
5673 'use strict'
5674 Object.defineProperty(n, '__esModule', { value: !0 }), (n.Selection = void 0)
5675 class i extends D.Range {
5676 constructor(p, L, h, a) {
5677 super(p, L, h, a),
5678 (this.selectionStartLineNumber = p),
5679 (this.selectionStartColumn = L),
5680 (this.positionLineNumber = h),
5681 (this.positionColumn = a)
5682 }
5683 toString() {
5684 return (
5685 '[' +
5686 this.selectionStartLineNumber +
5687 ',' +
5688 this.selectionStartColumn +
5689 ' -> ' +
5690 this.positionLineNumber +
5691 ',' +
5692 this.positionColumn +
5693 ']'
5694 )
5695 }
5696 equalsSelection(p) {
5697 return i.selectionsEqual(this, p)
5698 }
5699 static selectionsEqual(p, L) {
5700 return (
5701 p.selectionStartLineNumber === L.selectionStartLineNumber &&
5702 p.selectionStartColumn === L.selectionStartColumn &&
5703 p.positionLineNumber === L.positionLineNumber &&
5704 p.positionColumn === L.positionColumn
5705 )
5706 }
5707 getDirection() {
5708 return this.selectionStartLineNumber === this.startLineNumber &&
5709 this.selectionStartColumn === this.startColumn
5710 ? 0
5711 : 1
5712 }
5713 setEndPosition(p, L) {
5714 return this.getDirection() === 0
5715 ? new i(this.startLineNumber, this.startColumn, p, L)
5716 : new i(p, L, this.startLineNumber, this.startColumn)
5717 }
5718 getPosition() {
5719 return new R.Position(this.positionLineNumber, this.positionColumn)
5720 }
5721 getSelectionStart() {
5722 return new R.Position(this.selectionStartLineNumber, this.selectionStartColumn)
5723 }
5724 setStartPosition(p, L) {
5725 return this.getDirection() === 0
5726 ? new i(p, L, this.endLineNumber, this.endColumn)
5727 : new i(this.endLineNumber, this.endColumn, p, L)
5728 }
5729 static fromPositions(p, L = p) {
5730 return new i(p.lineNumber, p.column, L.lineNumber, L.column)
5731 }
5732 static fromRange(p, L) {
5733 return L === 0
5734 ? new i(p.startLineNumber, p.startColumn, p.endLineNumber, p.endColumn)
5735 : new i(p.endLineNumber, p.endColumn, p.startLineNumber, p.startColumn)
5736 }
5737 static liftSelection(p) {
5738 return new i(
5739 p.selectionStartLineNumber,
5740 p.selectionStartColumn,
5741 p.positionLineNumber,
5742 p.positionColumn
5743 )
5744 }
5745 static selectionsArrEqual(p, L) {
5746 if ((p && !L) || (!p && L)) return !1
5747 if (!p && !L) return !0
5748 if (p.length !== L.length) return !1
5749 for (let h = 0, a = p.length; h < a; h++) if (!this.selectionsEqual(p[h], L[h])) return !1
5750 return !0
5751 }
5752 static isISelection(p) {
5753 return (
5754 p &&
5755 typeof p.selectionStartLineNumber == 'number' &&
5756 typeof p.selectionStartColumn == 'number' &&
5757 typeof p.positionLineNumber == 'number' &&
5758 typeof p.positionColumn == 'number'
5759 )
5760 }
5761 static createWithDirection(p, L, h, a, w) {
5762 return w === 0 ? new i(p, L, h, a) : new i(h, a, p, L)
5763 }
5764 }
5765 n.Selection = i
5766 }),
5767 Q(Y[34], X([0, 1, 20]), function (x, n, R) {
5768 'use strict'
5769 Object.defineProperty(n, '__esModule', { value: !0 }),
5770 (n.getMapForWordSeparators = n.WordCharacterClassifier = void 0)
5771 class D extends R.CharacterClassifier {
5772 constructor(p) {
5773 super(0)
5774 for (let L = 0, h = p.length; L < h; L++) this.set(p.charCodeAt(L), 2)
5775 this.set(32, 1), this.set(9, 1)
5776 }
5777 }
5778 n.WordCharacterClassifier = D
5779 function i(s) {
5780 const p = {}
5781 return (L) => (p.hasOwnProperty(L) || (p[L] = s(L)), p[L])
5782 }
5783 n.getMapForWordSeparators = i((s) => new D(s))
5784 }),
5785 Q(Y[22], X([0, 1, 15, 16]), function (x, n, R, D) {
5786 'use strict'
5787 Object.defineProperty(n, '__esModule', { value: !0 }),
5788 (n.getWordAtText =
5789 n.ensureValidWordDefinition =
5790 n.DEFAULT_WORD_REGEXP =
5791 n.USUAL_WORD_SEPARATORS =
5792 void 0),
5793 (n.USUAL_WORD_SEPARATORS = '`~!@#$%^&*()-=+[{]}\\|;:\'",.<>/?')
5794 function i(a = '') {
5795 let w = '(-?\\d*\\.\\d\\w*)|([^'
5796 for (const e of n.USUAL_WORD_SEPARATORS) a.indexOf(e) >= 0 || (w += '\\' + e)
5797 return (w += '\\s]+)'), new RegExp(w, 'g')
5798 }
5799 n.DEFAULT_WORD_REGEXP = i()
5800 function s(a) {
5801 let w = n.DEFAULT_WORD_REGEXP
5802 if (a && a instanceof RegExp)
5803 if (a.global) w = a
5804 else {
5805 let e = 'g'
5806 a.ignoreCase && (e += 'i'),
5807 a.multiline && (e += 'm'),
5808 a.unicode && (e += 'u'),
5809 (w = new RegExp(a.source, e))
5810 }
5811 return (w.lastIndex = 0), w
5812 }
5813 n.ensureValidWordDefinition = s
5814 const p = new D.LinkedList()
5815 p.unshift({ maxLen: 1e3, windowSize: 15, timeBudget: 150 })
5816 function L(a, w, e, b, f) {
5817 if ((f || (f = R.Iterable.first(p)), e.length > f.maxLen)) {
5818 let y = a - f.maxLen / 2
5819 return (
5820 y < 0 ? (y = 0) : (b += y), (e = e.substring(y, a + f.maxLen / 2)), L(a, w, e, b, f)
5821 )
5822 }
5823 const v = Date.now(),
5824 g = a - 1 - b
5825 let S = -1,
5826 E = null
5827 for (let y = 1; !(Date.now() - v >= f.timeBudget); y++) {
5828 const _ = g - f.windowSize * y
5829 w.lastIndex = Math.max(0, _)
5830 const d = h(w, e, g, S)
5831 if ((!d && E) || ((E = d), _ <= 0)) break
5832 S = _
5833 }
5834 if (E) {
5835 const y = {
5836 word: E[0],
5837 startColumn: b + 1 + E.index,
5838 endColumn: b + 1 + E.index + E[0].length,
5839 }
5840 return (w.lastIndex = 0), y
5841 }
5842 return null
5843 }
5844 n.getWordAtText = L
5845 function h(a, w, e, b) {
5846 let f
5847 for (; (f = a.exec(w)); ) {
5848 const v = f.index || 0
5849 if (v <= e && a.lastIndex >= e) return f
5850 if (b > 0 && v > b) return null
5851 }
5852 return null
5853 }
5854 }),
5855 Q(Y[7], X([0, 1, 4, 6]), function (x, n, R, D) {
5856 'use strict'
5857 Object.defineProperty(n, '__esModule', { value: !0 }),
5858 (n.DateTimeout = n.InfiniteTimeout = n.SequenceDiff = n.DiffAlgorithmResult = void 0)
5859 class i {
5860 static trivial(a, w) {
5861 return new i([new s(new D.OffsetRange(0, a.length), new D.OffsetRange(0, w.length))], !1)
5862 }
5863 static trivialTimedOut(a, w) {
5864 return new i([new s(new D.OffsetRange(0, a.length), new D.OffsetRange(0, w.length))], !0)
5865 }
5866 constructor(a, w) {
5867 ;(this.diffs = a), (this.hitTimeout = w)
5868 }
5869 }
5870 n.DiffAlgorithmResult = i
5871 class s {
5872 constructor(a, w) {
5873 ;(this.seq1Range = a), (this.seq2Range = w)
5874 }
5875 reverse() {
5876 return new s(this.seq2Range, this.seq1Range)
5877 }
5878 toString() {
5879 return `${this.seq1Range} <-> ${this.seq2Range}`
5880 }
5881 join(a) {
5882 return new s(this.seq1Range.join(a.seq1Range), this.seq2Range.join(a.seq2Range))
5883 }
5884 }
5885 n.SequenceDiff = s
5886 class p {
5887 isValid() {
5888 return !0
5889 }
5890 }
5891 ;(p.instance = new p()), (n.InfiniteTimeout = p)
5892 class L {
5893 constructor(a) {
5894 if (((this.timeout = a), (this.startTime = Date.now()), (this.valid = !0), a <= 0))
5895 throw new R.BugIndicatingError('timeout must be positive')
5896 }
5897 isValid() {
5898 if (!(Date.now() - this.startTime < this.timeout) && this.valid) {
5899 this.valid = !1
5900 debugger
5901 }
5902 return this.valid
5903 }
5904 }
5905 n.DateTimeout = L
5906 }),
5907 Q(Y[35], X([0, 1, 6, 7]), function (x, n, R, D) {
5908 'use strict'
5909 Object.defineProperty(n, '__esModule', { value: !0 }),
5910 (n.shiftSequenceDiffs =
5911 n.joinSequenceDiffs =
5912 n.smoothenSequenceDiffs =
5913 n.optimizeSequenceDiffs =
5914 void 0)
5915 function i(a, w, e) {
5916 let b = e
5917 return (b = p(a, w, b)), (b = L(a, w, b)), b
5918 }
5919 n.optimizeSequenceDiffs = i
5920 function s(a, w, e) {
5921 const b = []
5922 for (const f of e) {
5923 const v = b[b.length - 1]
5924 if (!v) {
5925 b.push(f)
5926 continue
5927 }
5928 f.seq1Range.start - v.seq1Range.endExclusive <= 2 ||
5929 f.seq2Range.start - v.seq2Range.endExclusive <= 2
5930 ? (b[b.length - 1] = new D.SequenceDiff(
5931 v.seq1Range.join(f.seq1Range),
5932 v.seq2Range.join(f.seq2Range)
5933 ))
5934 : b.push(f)
5935 }
5936 return b
5937 }
5938 n.smoothenSequenceDiffs = s
5939 function p(a, w, e) {
5940 const b = []
5941 e.length > 0 && b.push(e[0])
5942 for (let f = 1; f < e.length; f++) {
5943 const v = b[b.length - 1],
5944 g = e[f]
5945 if (g.seq1Range.isEmpty) {
5946 let S = !0
5947 const E = g.seq1Range.start - v.seq1Range.endExclusive
5948 for (let y = 1; y <= E; y++)
5949 if (
5950 w.getElement(g.seq2Range.start - y) !== w.getElement(g.seq2Range.endExclusive - y)
5951 ) {
5952 S = !1
5953 break
5954 }
5955 if (S) {
5956 b[b.length - 1] = new D.SequenceDiff(
5957 v.seq1Range,
5958 new R.OffsetRange(v.seq2Range.start, g.seq2Range.endExclusive - E)
5959 )
5960 continue
5961 }
5962 }
5963 b.push(g)
5964 }
5965 return b
5966 }
5967 n.joinSequenceDiffs = p
5968 function L(a, w, e) {
5969 if (!a.getBoundaryScore || !w.getBoundaryScore) return e
5970 for (let b = 0; b < e.length; b++) {
5971 const f = e[b]
5972 if (f.seq1Range.isEmpty) {
5973 const v = b > 0 ? e[b - 1].seq2Range.endExclusive : -1,
5974 g = b + 1 < e.length ? e[b + 1].seq2Range.start : w.length
5975 e[b] = h(f, a, w, g, v)
5976 } else if (f.seq2Range.isEmpty) {
5977 const v = b > 0 ? e[b - 1].seq1Range.endExclusive : -1,
5978 g = b + 1 < e.length ? e[b + 1].seq1Range.start : a.length
5979 e[b] = h(f.reverse(), w, a, g, v).reverse()
5980 }
5981 }
5982 return e
5983 }
5984 n.shiftSequenceDiffs = L
5985 function h(a, w, e, b, f) {
5986 let g = 1
5987 for (
5988 ;
5989 a.seq2Range.start - g > f &&
5990 e.getElement(a.seq2Range.start - g) === e.getElement(a.seq2Range.endExclusive - g) &&
5991 g < 20;
5992
5993 )
5994 g++
5995 g--
5996 let S = 0
5997 for (
5998 ;
5999 a.seq2Range.start + S < b &&
6000 e.getElement(a.seq2Range.start + S) === e.getElement(a.seq2Range.endExclusive + S) &&
6001 S < 20;
6002
6003 )
6004 S++
6005 if (g === 0 && S === 0) return a
6006 let E = 0,
6007 y = -1
6008 for (let _ = -g; _ <= S; _++) {
6009 const d = a.seq2Range.start + _,
6010 C = a.seq2Range.endExclusive + _,
6011 r = a.seq1Range.start + _,
6012 u = w.getBoundaryScore(r) + e.getBoundaryScore(d) + e.getBoundaryScore(C)
6013 u > y && ((y = u), (E = _))
6014 }
6015 return E !== 0 ? new D.SequenceDiff(a.seq1Range.delta(E), a.seq2Range.delta(E)) : a
6016 }
6017 }),
6018 Q(Y[36], X([0, 1, 6, 7]), function (x, n, R, D) {
6019 'use strict'
6020 Object.defineProperty(n, '__esModule', { value: !0 }), (n.MyersDiffAlgorithm = void 0)
6021 class i {
6022 compute(a, w, e = D.InfiniteTimeout.instance) {
6023 if (a.length === 0 || w.length === 0) return D.DiffAlgorithmResult.trivial(a, w)
6024 function b(C, r) {
6025 for (; C < a.length && r < w.length && a.getElement(C) === w.getElement(r); ) C++, r++
6026 return C
6027 }
6028 let f = 0
6029 const v = new p()
6030 v.set(0, b(0, 0))
6031 const g = new L()
6032 g.set(0, v.get(0) === 0 ? null : new s(null, 0, 0, v.get(0)))
6033 let S = 0
6034 e: for (;;)
6035 for (f++, S = -f; S <= f; S += 2) {
6036 if (!e.isValid()) return D.DiffAlgorithmResult.trivialTimedOut(a, w)
6037 const C = S === f ? -1 : v.get(S + 1),
6038 r = S === -f ? -1 : v.get(S - 1) + 1,
6039 u = Math.min(Math.max(C, r), a.length),
6040 o = u - S,
6041 c = b(u, o)
6042 v.set(S, c)
6043 const l = u === C ? g.get(S + 1) : g.get(S - 1)
6044 if (
6045 (g.set(S, c !== u ? new s(l, u, o, c - u) : l),
6046 v.get(S) === a.length && v.get(S) - S === w.length)
6047 )
6048 break e
6049 }
6050 let E = g.get(S)
6051 const y = []
6052 let _ = a.length,
6053 d = w.length
6054 for (;;) {
6055 const C = E ? E.x + E.length : 0,
6056 r = E ? E.y + E.length : 0
6057 if (
6058 ((C !== _ || r !== d) &&
6059 y.push(new D.SequenceDiff(new R.OffsetRange(C, _), new R.OffsetRange(r, d))),
6060 !E)
6061 )
6062 break
6063 ;(_ = E.x), (d = E.y), (E = E.prev)
6064 }
6065 return y.reverse(), new D.DiffAlgorithmResult(y, !1)
6066 }
6067 }
6068 n.MyersDiffAlgorithm = i
6069 class s {
6070 constructor(a, w, e, b) {
6071 ;(this.prev = a), (this.x = w), (this.y = e), (this.length = b)
6072 }
6073 }
6074 class p {
6075 constructor() {
6076 ;(this.positiveArr = new Int32Array(10)), (this.negativeArr = new Int32Array(10))
6077 }
6078 get(a) {
6079 return a < 0 ? ((a = -a - 1), this.negativeArr[a]) : this.positiveArr[a]
6080 }
6081 set(a, w) {
6082 if (a < 0) {
6083 if (((a = -a - 1), a >= this.negativeArr.length)) {
6084 const e = this.negativeArr
6085 ;(this.negativeArr = new Int32Array(e.length * 2)), this.negativeArr.set(e)
6086 }
6087 this.negativeArr[a] = w
6088 } else {
6089 if (a >= this.positiveArr.length) {
6090 const e = this.positiveArr
6091 ;(this.positiveArr = new Int32Array(e.length * 2)), this.positiveArr.set(e)
6092 }
6093 this.positiveArr[a] = w
6094 }
6095 }
6096 }
6097 class L {
6098 constructor() {
6099 ;(this.positiveArr = []), (this.negativeArr = [])
6100 }
6101 get(a) {
6102 return a < 0 ? ((a = -a - 1), this.negativeArr[a]) : this.positiveArr[a]
6103 }
6104 set(a, w) {
6105 a < 0 ? ((a = -a - 1), (this.negativeArr[a] = w)) : (this.positiveArr[a] = w)
6106 }
6107 }
6108 }),
6109 Q(Y[37], X([0, 1]), function (x, n) {
6110 'use strict'
6111 Object.defineProperty(n, '__esModule', { value: !0 }), (n.Array2D = void 0)
6112 class R {
6113 constructor(i, s) {
6114 ;(this.width = i), (this.height = s), (this.array = []), (this.array = new Array(i * s))
6115 }
6116 get(i, s) {
6117 return this.array[i + s * this.width]
6118 }
6119 set(i, s, p) {
6120 this.array[i + s * this.width] = p
6121 }
6122 }
6123 n.Array2D = R
6124 }),
6125 Q(Y[38], X([0, 1, 6, 7, 37]), function (x, n, R, D, i) {
6126 'use strict'
6127 Object.defineProperty(n, '__esModule', { value: !0 }), (n.DynamicProgrammingDiffing = void 0)
6128 class s {
6129 compute(L, h, a = D.InfiniteTimeout.instance, w) {
6130 if (L.length === 0 || h.length === 0) return D.DiffAlgorithmResult.trivial(L, h)
6131 const e = new i.Array2D(L.length, h.length),
6132 b = new i.Array2D(L.length, h.length),
6133 f = new i.Array2D(L.length, h.length)
6134 for (let d = 0; d < L.length; d++)
6135 for (let C = 0; C < h.length; C++) {
6136 if (!a.isValid()) return D.DiffAlgorithmResult.trivialTimedOut(L, h)
6137 const r = d === 0 ? 0 : e.get(d - 1, C),
6138 u = C === 0 ? 0 : e.get(d, C - 1)
6139 let o
6140 L.getElement(d) === h.getElement(C)
6141 ? (d === 0 || C === 0 ? (o = 0) : (o = e.get(d - 1, C - 1)),
6142 d > 0 && C > 0 && b.get(d - 1, C - 1) === 3 && (o += f.get(d - 1, C - 1)),
6143 (o += w ? w(d, C) : 1))
6144 : (o = -1)
6145 const c = Math.max(r, u, o)
6146 if (c === o) {
6147 const l = d > 0 && C > 0 ? f.get(d - 1, C - 1) : 0
6148 f.set(d, C, l + 1), b.set(d, C, 3)
6149 } else
6150 c === r
6151 ? (f.set(d, C, 0), b.set(d, C, 1))
6152 : c === u && (f.set(d, C, 0), b.set(d, C, 2))
6153 e.set(d, C, c)
6154 }
6155 const v = []
6156 let g = L.length,
6157 S = h.length
6158 function E(d, C) {
6159 ;(d + 1 !== g || C + 1 !== S) &&
6160 v.push(new D.SequenceDiff(new R.OffsetRange(d + 1, g), new R.OffsetRange(C + 1, S))),
6161 (g = d),
6162 (S = C)
6163 }
6164 let y = L.length - 1,
6165 _ = h.length - 1
6166 for (; y >= 0 && _ >= 0; )
6167 b.get(y, _) === 3 ? (E(y, _), y--, _--) : b.get(y, _) === 1 ? y-- : _--
6168 return E(-1, -1), v.reverse(), new D.DiffAlgorithmResult(v, !1)
6169 }
6170 }
6171 n.DynamicProgrammingDiffing = s
6172 }),
6173 Q(Y[23], X([0, 1]), function (x, n) {
6174 'use strict'
6175 Object.defineProperty(n, '__esModule', { value: !0 }),
6176 (n.RangeMapping = n.LineRangeMapping = n.LinesDiff = void 0)
6177 class R {
6178 constructor(p, L) {
6179 ;(this.changes = p), (this.hitTimeout = L)
6180 }
6181 }
6182 n.LinesDiff = R
6183 class D {
6184 constructor(p, L, h) {
6185 ;(this.originalRange = p), (this.modifiedRange = L), (this.innerChanges = h)
6186 }
6187 toString() {
6188 return `{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`
6189 }
6190 }
6191 n.LineRangeMapping = D
6192 class i {
6193 constructor(p, L) {
6194 ;(this.originalRange = p), (this.modifiedRange = L)
6195 }
6196 toString() {
6197 return `{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`
6198 }
6199 }
6200 n.RangeMapping = i
6201 }),
6202 Q(Y[39], X([0, 1, 17, 23, 5, 2, 10, 21]), function (x, n, R, D, i, s, p, L) {
6203 'use strict'
6204 Object.defineProperty(n, '__esModule', { value: !0 }),
6205 (n.DiffComputer = n.SmartLinesDiffComputer = void 0)
6206 const h = 3
6207 class a {
6208 computeDiff(C, r, u) {
6209 var o
6210 const l = new S(C, r, {
6211 maxComputationTime: u.maxComputationTimeMs,
6212 shouldIgnoreTrimWhitespace: u.ignoreTrimWhitespace,
6213 shouldComputeCharChanges: !0,
6214 shouldMakePrettyDiff: !0,
6215 shouldPostProcessCharChanges: !0,
6216 }).computeDiff(),
6217 m = []
6218 let N = null
6219 for (const A of l.changes) {
6220 let M
6221 A.originalEndLineNumber === 0
6222 ? (M = new L.LineRange(A.originalStartLineNumber + 1, A.originalStartLineNumber + 1))
6223 : (M = new L.LineRange(A.originalStartLineNumber, A.originalEndLineNumber + 1))
6224 let k
6225 A.modifiedEndLineNumber === 0
6226 ? (k = new L.LineRange(A.modifiedStartLineNumber + 1, A.modifiedStartLineNumber + 1))
6227 : (k = new L.LineRange(A.modifiedStartLineNumber, A.modifiedEndLineNumber + 1))
6228 let q = new D.LineRangeMapping(
6229 M,
6230 k,
6231 (o = A.charChanges) === null || o === void 0
6232 ? void 0
6233 : o.map(
6234 (I) =>
6235 new D.RangeMapping(
6236 new s.Range(
6237 I.originalStartLineNumber,
6238 I.originalStartColumn,
6239 I.originalEndLineNumber,
6240 I.originalEndColumn
6241 ),
6242 new s.Range(
6243 I.modifiedStartLineNumber,
6244 I.modifiedStartColumn,
6245 I.modifiedEndLineNumber,
6246 I.modifiedEndColumn
6247 )
6248 )
6249 )
6250 )
6251 N &&
6252 (N.modifiedRange.endLineNumberExclusive === q.modifiedRange.startLineNumber ||
6253 N.originalRange.endLineNumberExclusive === q.originalRange.startLineNumber) &&
6254 ((q = new D.LineRangeMapping(
6255 N.originalRange.join(q.originalRange),
6256 N.modifiedRange.join(q.modifiedRange),
6257 N.innerChanges && q.innerChanges ? N.innerChanges.concat(q.innerChanges) : void 0
6258 )),
6259 m.pop()),
6260 m.push(q),
6261 (N = q)
6262 }
6263 return (
6264 (0, p.assertFn)(() =>
6265 (0, p.checkAdjacentItems)(
6266 m,
6267 (A, M) =>
6268 M.originalRange.startLineNumber - A.originalRange.endLineNumberExclusive ===
6269 M.modifiedRange.startLineNumber - A.modifiedRange.endLineNumberExclusive &&
6270 A.originalRange.endLineNumberExclusive < M.originalRange.startLineNumber &&
6271 A.modifiedRange.endLineNumberExclusive < M.modifiedRange.startLineNumber
6272 )
6273 ),
6274 new D.LinesDiff(m, l.quitEarly)
6275 )
6276 }
6277 }
6278 n.SmartLinesDiffComputer = a
6279 function w(d, C, r, u) {
6280 return new R.LcsDiff(d, C, r).ComputeDiff(u)
6281 }
6282 class e {
6283 constructor(C) {
6284 const r = [],
6285 u = []
6286 for (let o = 0, c = C.length; o < c; o++) (r[o] = E(C[o], 1)), (u[o] = y(C[o], 1))
6287 ;(this.lines = C), (this._startColumns = r), (this._endColumns = u)
6288 }
6289 getElements() {
6290 const C = []
6291 for (let r = 0, u = this.lines.length; r < u; r++)
6292 C[r] = this.lines[r].substring(this._startColumns[r] - 1, this._endColumns[r] - 1)
6293 return C
6294 }
6295 getStrictElement(C) {
6296 return this.lines[C]
6297 }
6298 getStartLineNumber(C) {
6299 return C + 1
6300 }
6301 getEndLineNumber(C) {
6302 return C + 1
6303 }
6304 createCharSequence(C, r, u) {
6305 const o = [],
6306 c = [],
6307 l = []
6308 let m = 0
6309 for (let N = r; N <= u; N++) {
6310 const A = this.lines[N],
6311 M = C ? this._startColumns[N] : 1,
6312 k = C ? this._endColumns[N] : A.length + 1
6313 for (let q = M; q < k; q++)
6314 (o[m] = A.charCodeAt(q - 1)), (c[m] = N + 1), (l[m] = q), m++
6315 !C && N < u && ((o[m] = 10), (c[m] = N + 1), (l[m] = A.length + 1), m++)
6316 }
6317 return new b(o, c, l)
6318 }
6319 }
6320 class b {
6321 constructor(C, r, u) {
6322 ;(this._charCodes = C), (this._lineNumbers = r), (this._columns = u)
6323 }
6324 toString() {
6325 return (
6326 '[' +
6327 this._charCodes
6328 .map(
6329 (C, r) =>
6330 (C === 10 ? '\\n' : String.fromCharCode(C)) +
6331 `-(${this._lineNumbers[r]},${this._columns[r]})`
6332 )
6333 .join(', ') +
6334 ']'
6335 )
6336 }
6337 _assertIndex(C, r) {
6338 if (C < 0 || C >= r.length) throw new Error('Illegal index')
6339 }
6340 getElements() {
6341 return this._charCodes
6342 }
6343 getStartLineNumber(C) {
6344 return C > 0 && C === this._lineNumbers.length
6345 ? this.getEndLineNumber(C - 1)
6346 : (this._assertIndex(C, this._lineNumbers), this._lineNumbers[C])
6347 }
6348 getEndLineNumber(C) {
6349 return C === -1
6350 ? this.getStartLineNumber(C + 1)
6351 : (this._assertIndex(C, this._lineNumbers),
6352 this._charCodes[C] === 10 ? this._lineNumbers[C] + 1 : this._lineNumbers[C])
6353 }
6354 getStartColumn(C) {
6355 return C > 0 && C === this._columns.length
6356 ? this.getEndColumn(C - 1)
6357 : (this._assertIndex(C, this._columns), this._columns[C])
6358 }
6359 getEndColumn(C) {
6360 return C === -1
6361 ? this.getStartColumn(C + 1)
6362 : (this._assertIndex(C, this._columns),
6363 this._charCodes[C] === 10 ? 1 : this._columns[C] + 1)
6364 }
6365 }
6366 class f {
6367 constructor(C, r, u, o, c, l, m, N) {
6368 ;(this.originalStartLineNumber = C),
6369 (this.originalStartColumn = r),
6370 (this.originalEndLineNumber = u),
6371 (this.originalEndColumn = o),
6372 (this.modifiedStartLineNumber = c),
6373 (this.modifiedStartColumn = l),
6374 (this.modifiedEndLineNumber = m),
6375 (this.modifiedEndColumn = N)
6376 }
6377 static createFromDiffChange(C, r, u) {
6378 const o = r.getStartLineNumber(C.originalStart),
6379 c = r.getStartColumn(C.originalStart),
6380 l = r.getEndLineNumber(C.originalStart + C.originalLength - 1),
6381 m = r.getEndColumn(C.originalStart + C.originalLength - 1),
6382 N = u.getStartLineNumber(C.modifiedStart),
6383 A = u.getStartColumn(C.modifiedStart),
6384 M = u.getEndLineNumber(C.modifiedStart + C.modifiedLength - 1),
6385 k = u.getEndColumn(C.modifiedStart + C.modifiedLength - 1)
6386 return new f(o, c, l, m, N, A, M, k)
6387 }
6388 }
6389 function v(d) {
6390 if (d.length <= 1) return d
6391 const C = [d[0]]
6392 let r = C[0]
6393 for (let u = 1, o = d.length; u < o; u++) {
6394 const c = d[u],
6395 l = c.originalStart - (r.originalStart + r.originalLength),
6396 m = c.modifiedStart - (r.modifiedStart + r.modifiedLength)
6397 Math.min(l, m) < h
6398 ? ((r.originalLength = c.originalStart + c.originalLength - r.originalStart),
6399 (r.modifiedLength = c.modifiedStart + c.modifiedLength - r.modifiedStart))
6400 : (C.push(c), (r = c))
6401 }
6402 return C
6403 }
6404 class g {
6405 constructor(C, r, u, o, c) {
6406 ;(this.originalStartLineNumber = C),
6407 (this.originalEndLineNumber = r),
6408 (this.modifiedStartLineNumber = u),
6409 (this.modifiedEndLineNumber = o),
6410 (this.charChanges = c)
6411 }
6412 static createFromDiffResult(C, r, u, o, c, l, m) {
6413 let N, A, M, k, q
6414 if (
6415 (r.originalLength === 0
6416 ? ((N = u.getStartLineNumber(r.originalStart) - 1), (A = 0))
6417 : ((N = u.getStartLineNumber(r.originalStart)),
6418 (A = u.getEndLineNumber(r.originalStart + r.originalLength - 1))),
6419 r.modifiedLength === 0
6420 ? ((M = o.getStartLineNumber(r.modifiedStart) - 1), (k = 0))
6421 : ((M = o.getStartLineNumber(r.modifiedStart)),
6422 (k = o.getEndLineNumber(r.modifiedStart + r.modifiedLength - 1))),
6423 l &&
6424 r.originalLength > 0 &&
6425 r.originalLength < 20 &&
6426 r.modifiedLength > 0 &&
6427 r.modifiedLength < 20 &&
6428 c())
6429 ) {
6430 const I = u.createCharSequence(
6431 C,
6432 r.originalStart,
6433 r.originalStart + r.originalLength - 1
6434 ),
6435 B = o.createCharSequence(C, r.modifiedStart, r.modifiedStart + r.modifiedLength - 1)
6436 if (I.getElements().length > 0 && B.getElements().length > 0) {
6437 let H = w(I, B, c, !0).changes
6438 m && (H = v(H)), (q = [])
6439 for (let F = 0, U = H.length; F < U; F++) q.push(f.createFromDiffChange(H[F], I, B))
6440 }
6441 }
6442 return new g(N, A, M, k, q)
6443 }
6444 }
6445 class S {
6446 constructor(C, r, u) {
6447 ;(this.shouldComputeCharChanges = u.shouldComputeCharChanges),
6448 (this.shouldPostProcessCharChanges = u.shouldPostProcessCharChanges),
6449 (this.shouldIgnoreTrimWhitespace = u.shouldIgnoreTrimWhitespace),
6450 (this.shouldMakePrettyDiff = u.shouldMakePrettyDiff),
6451 (this.originalLines = C),
6452 (this.modifiedLines = r),
6453 (this.original = new e(C)),
6454 (this.modified = new e(r)),
6455 (this.continueLineDiff = _(u.maxComputationTime)),
6456 (this.continueCharDiff = _(
6457 u.maxComputationTime === 0 ? 0 : Math.min(u.maxComputationTime, 5e3)
6458 ))
6459 }
6460 computeDiff() {
6461 if (this.original.lines.length === 1 && this.original.lines[0].length === 0)
6462 return this.modified.lines.length === 1 && this.modified.lines[0].length === 0
6463 ? { quitEarly: !1, changes: [] }
6464 : {
6465 quitEarly: !1,
6466 changes: [
6467 {
6468 originalStartLineNumber: 1,
6469 originalEndLineNumber: 1,
6470 modifiedStartLineNumber: 1,
6471 modifiedEndLineNumber: this.modified.lines.length,
6472 charChanges: void 0,
6473 },
6474 ],
6475 }
6476 if (this.modified.lines.length === 1 && this.modified.lines[0].length === 0)
6477 return {
6478 quitEarly: !1,
6479 changes: [
6480 {
6481 originalStartLineNumber: 1,
6482 originalEndLineNumber: this.original.lines.length,
6483 modifiedStartLineNumber: 1,
6484 modifiedEndLineNumber: 1,
6485 charChanges: void 0,
6486 },
6487 ],
6488 }
6489 const C = w(
6490 this.original,
6491 this.modified,
6492 this.continueLineDiff,
6493 this.shouldMakePrettyDiff
6494 ),
6495 r = C.changes,
6496 u = C.quitEarly
6497 if (this.shouldIgnoreTrimWhitespace) {
6498 const m = []
6499 for (let N = 0, A = r.length; N < A; N++)
6500 m.push(
6501 g.createFromDiffResult(
6502 this.shouldIgnoreTrimWhitespace,
6503 r[N],
6504 this.original,
6505 this.modified,
6506 this.continueCharDiff,
6507 this.shouldComputeCharChanges,
6508 this.shouldPostProcessCharChanges
6509 )
6510 )
6511 return { quitEarly: u, changes: m }
6512 }
6513 const o = []
6514 let c = 0,
6515 l = 0
6516 for (let m = -1, N = r.length; m < N; m++) {
6517 const A = m + 1 < N ? r[m + 1] : null,
6518 M = A ? A.originalStart : this.originalLines.length,
6519 k = A ? A.modifiedStart : this.modifiedLines.length
6520 for (; c < M && l < k; ) {
6521 const q = this.originalLines[c],
6522 I = this.modifiedLines[l]
6523 if (q !== I) {
6524 {
6525 let B = E(q, 1),
6526 H = E(I, 1)
6527 for (; B > 1 && H > 1; ) {
6528 const F = q.charCodeAt(B - 2),
6529 U = I.charCodeAt(H - 2)
6530 if (F !== U) break
6531 B--, H--
6532 }
6533 ;(B > 1 || H > 1) &&
6534 this._pushTrimWhitespaceCharChange(o, c + 1, 1, B, l + 1, 1, H)
6535 }
6536 {
6537 let B = y(q, 1),
6538 H = y(I, 1)
6539 const F = q.length + 1,
6540 U = I.length + 1
6541 for (; B < F && H < U; ) {
6542 const T = q.charCodeAt(B - 1),
6543 W = q.charCodeAt(H - 1)
6544 if (T !== W) break
6545 B++, H++
6546 }
6547 ;(B < F || H < U) &&
6548 this._pushTrimWhitespaceCharChange(o, c + 1, B, F, l + 1, H, U)
6549 }
6550 }
6551 c++, l++
6552 }
6553 A &&
6554 (o.push(
6555 g.createFromDiffResult(
6556 this.shouldIgnoreTrimWhitespace,
6557 A,
6558 this.original,
6559 this.modified,
6560 this.continueCharDiff,
6561 this.shouldComputeCharChanges,
6562 this.shouldPostProcessCharChanges
6563 )
6564 ),
6565 (c += A.originalLength),
6566 (l += A.modifiedLength))
6567 }
6568 return { quitEarly: u, changes: o }
6569 }
6570 _pushTrimWhitespaceCharChange(C, r, u, o, c, l, m) {
6571 if (this._mergeTrimWhitespaceCharChange(C, r, u, o, c, l, m)) return
6572 let N
6573 this.shouldComputeCharChanges && (N = [new f(r, u, r, o, c, l, c, m)]),
6574 C.push(new g(r, r, c, c, N))
6575 }
6576 _mergeTrimWhitespaceCharChange(C, r, u, o, c, l, m) {
6577 const N = C.length
6578 if (N === 0) return !1
6579 const A = C[N - 1]
6580 return A.originalEndLineNumber === 0 || A.modifiedEndLineNumber === 0
6581 ? !1
6582 : A.originalEndLineNumber === r && A.modifiedEndLineNumber === c
6583 ? (this.shouldComputeCharChanges &&
6584 A.charChanges &&
6585 A.charChanges.push(new f(r, u, r, o, c, l, c, m)),
6586 !0)
6587 : A.originalEndLineNumber + 1 === r && A.modifiedEndLineNumber + 1 === c
6588 ? ((A.originalEndLineNumber = r),
6589 (A.modifiedEndLineNumber = c),
6590 this.shouldComputeCharChanges &&
6591 A.charChanges &&
6592 A.charChanges.push(new f(r, u, r, o, c, l, c, m)),
6593 !0)
6594 : !1
6595 }
6596 }
6597 n.DiffComputer = S
6598 function E(d, C) {
6599 const r = i.firstNonWhitespaceIndex(d)
6600 return r === -1 ? C : r + 1
6601 }
6602 function y(d, C) {
6603 const r = i.lastNonWhitespaceIndex(d)
6604 return r === -1 ? C : r + 2
6605 }
6606 function _(d) {
6607 if (d === 0) return () => !0
6608 const C = Date.now()
6609 return () => Date.now() - C < d
6610 }
6611 }),
6612 Q(
6613 Y[40],
6614 X([0, 1, 10, 21, 6, 3, 2, 7, 38, 35, 36, 23]),
6615 function (x, n, R, D, i, s, p, L, h, a, w, e) {
6616 'use strict'
6617 Object.defineProperty(n, '__esModule', { value: !0 }),
6618 (n.LineSequence =
6619 n.getLineRangeMapping =
6620 n.lineRangeMappingFromRangeMappings =
6621 n.StandardLinesDiffComputer =
6622 void 0)
6623 class b {
6624 constructor() {
6625 ;(this.dynamicProgrammingDiffing = new h.DynamicProgrammingDiffing()),
6626 (this.myersDiffingAlgorithm = new w.MyersDiffAlgorithm())
6627 }
6628 computeDiff(m, N, A) {
6629 const M =
6630 A.maxComputationTimeMs === 0
6631 ? L.InfiniteTimeout.instance
6632 : new L.DateTimeout(A.maxComputationTimeMs),
6633 k = !A.ignoreTrimWhitespace,
6634 q = new Map()
6635 function I(re) {
6636 let se = q.get(re)
6637 return se === void 0 && ((se = q.size), q.set(re, se)), se
6638 }
6639 const B = m.map((re) => I(re.trim())),
6640 H = N.map((re) => I(re.trim())),
6641 F = new y(B, m),
6642 U = new y(H, N),
6643 T = (() =>
6644 F.length + U.length < 1500
6645 ? this.dynamicProgrammingDiffing.compute(F, U, M, (re, se) =>
6646 m[re] === N[se]
6647 ? N[se].length === 0
6648 ? 0.1
6649 : 1 + Math.log(1 + N[se].length)
6650 : 0.99
6651 )
6652 : this.myersDiffingAlgorithm.compute(F, U))()
6653 let W = T.diffs,
6654 t = T.hitTimeout
6655 W = (0, a.optimizeSequenceDiffs)(F, U, W)
6656 const te = [],
6657 ie = (re) => {
6658 if (!!k)
6659 for (let se = 0; se < re; se++) {
6660 const ge = ue + se,
6661 Le = de + se
6662 if (m[ge] !== N[Le]) {
6663 const J = this.refineDiff(
6664 m,
6665 N,
6666 new L.SequenceDiff(
6667 new i.OffsetRange(ge, ge + 1),
6668 new i.OffsetRange(Le, Le + 1)
6669 ),
6670 M,
6671 k
6672 )
6673 for (const z of J.mappings) te.push(z)
6674 J.hitTimeout && (t = !0)
6675 }
6676 }
6677 }
6678 let ue = 0,
6679 de = 0
6680 for (const re of W) {
6681 ;(0, R.assertFn)(() => re.seq1Range.start - ue === re.seq2Range.start - de)
6682 const se = re.seq1Range.start - ue
6683 ie(se), (ue = re.seq1Range.endExclusive), (de = re.seq2Range.endExclusive)
6684 const ge = this.refineDiff(m, N, re, M, k)
6685 ge.hitTimeout && (t = !0)
6686 for (const Le of ge.mappings) te.push(Le)
6687 }
6688 ie(m.length - ue)
6689 const Ce = g(te, m, N)
6690 return new e.LinesDiff(Ce, t)
6691 }
6692 refineDiff(m, N, A, M, k) {
6693 const q = new d(m, A.seq1Range, k),
6694 I = new d(N, A.seq2Range, k),
6695 B =
6696 q.length + I.length < 500
6697 ? this.dynamicProgrammingDiffing.compute(q, I, M)
6698 : this.myersDiffingAlgorithm.compute(q, I, M)
6699 let H = B.diffs
6700 return (
6701 (H = (0, a.optimizeSequenceDiffs)(q, I, H)),
6702 (H = f(q, I, H)),
6703 (H = (0, a.smoothenSequenceDiffs)(q, I, H)),
6704 {
6705 mappings: H.map(
6706 (U) =>
6707 new e.RangeMapping(q.translateRange(U.seq1Range), I.translateRange(U.seq2Range))
6708 ),
6709 hitTimeout: B.hitTimeout,
6710 }
6711 )
6712 }
6713 }
6714 n.StandardLinesDiffComputer = b
6715 function f(l, m, N) {
6716 const A = []
6717 let M
6718 function k() {
6719 if (!M) return
6720 const I = M.s1Range.length - M.deleted,
6721 B = M.s2Range.length - M.added
6722 Math.max(M.deleted, M.added) + (M.count - 1) > I &&
6723 A.push(new L.SequenceDiff(M.s1Range, M.s2Range)),
6724 (M = void 0)
6725 }
6726 for (const I of N) {
6727 let B = function (W, t) {
6728 var te, ie, ue, de
6729 if (!M || !M.s1Range.containsRange(W) || !M.s2Range.containsRange(t))
6730 if (M && !(M.s1Range.endExclusive < W.start && M.s2Range.endExclusive < t.start)) {
6731 const se = i.OffsetRange.tryCreate(M.s1Range.endExclusive, W.start),
6732 ge = i.OffsetRange.tryCreate(M.s2Range.endExclusive, t.start)
6733 ;(M.deleted += (te = se?.length) !== null && te !== void 0 ? te : 0),
6734 (M.added += (ie = ge?.length) !== null && ie !== void 0 ? ie : 0),
6735 (M.s1Range = M.s1Range.join(W)),
6736 (M.s2Range = M.s2Range.join(t))
6737 } else k(), (M = { added: 0, deleted: 0, count: 0, s1Range: W, s2Range: t })
6738 const Ce = W.intersect(I.seq1Range),
6739 re = t.intersect(I.seq2Range)
6740 M.count++,
6741 (M.deleted += (ue = Ce?.length) !== null && ue !== void 0 ? ue : 0),
6742 (M.added += (de = re?.length) !== null && de !== void 0 ? de : 0)
6743 }
6744 const H = l.findWordContaining(I.seq1Range.start - 1),
6745 F = m.findWordContaining(I.seq2Range.start - 1),
6746 U = l.findWordContaining(I.seq1Range.endExclusive),
6747 T = m.findWordContaining(I.seq2Range.endExclusive)
6748 H && U && F && T && H.equals(U) && F.equals(T)
6749 ? B(H, F)
6750 : (H && F && B(H, F), U && T && B(U, T))
6751 }
6752 return k(), v(N, A)
6753 }
6754 function v(l, m) {
6755 const N = []
6756 for (; l.length > 0 || m.length > 0; ) {
6757 const A = l[0],
6758 M = m[0]
6759 let k
6760 A && (!M || A.seq1Range.start < M.seq1Range.start) ? (k = l.shift()) : (k = m.shift()),
6761 N.length > 0 && N[N.length - 1].seq1Range.endExclusive >= k.seq1Range.start
6762 ? (N[N.length - 1] = N[N.length - 1].join(k))
6763 : N.push(k)
6764 }
6765 return N
6766 }
6767 function g(l, m, N) {
6768 const A = []
6769 for (const M of E(
6770 l.map((k) => S(k, m, N)),
6771 (k, q) =>
6772 k.originalRange.overlapOrTouch(q.originalRange) ||
6773 k.modifiedRange.overlapOrTouch(q.modifiedRange)
6774 )) {
6775 const k = M[0],
6776 q = M[M.length - 1]
6777 A.push(
6778 new e.LineRangeMapping(
6779 k.originalRange.join(q.originalRange),
6780 k.modifiedRange.join(q.modifiedRange),
6781 M.map((I) => I.innerChanges[0])
6782 )
6783 )
6784 }
6785 return (
6786 (0, R.assertFn)(() =>
6787 (0, R.checkAdjacentItems)(
6788 A,
6789 (M, k) =>
6790 k.originalRange.startLineNumber - M.originalRange.endLineNumberExclusive ===
6791 k.modifiedRange.startLineNumber - M.modifiedRange.endLineNumberExclusive &&
6792 M.originalRange.endLineNumberExclusive < k.originalRange.startLineNumber &&
6793 M.modifiedRange.endLineNumberExclusive < k.modifiedRange.startLineNumber
6794 )
6795 ),
6796 A
6797 )
6798 }
6799 n.lineRangeMappingFromRangeMappings = g
6800 function S(l, m, N) {
6801 let A = 0,
6802 M = 0
6803 l.modifiedRange.startColumn - 1 >= N[l.modifiedRange.startLineNumber - 1].length &&
6804 l.originalRange.startColumn - 1 >= m[l.originalRange.startLineNumber - 1].length &&
6805 (A = 1),
6806 l.modifiedRange.endColumn === 1 &&
6807 l.originalRange.endColumn === 1 &&
6808 l.originalRange.startLineNumber + A <= l.originalRange.endLineNumber &&
6809 l.modifiedRange.startLineNumber + A <= l.modifiedRange.endLineNumber &&
6810 (M = -1)
6811 const k = new D.LineRange(
6812 l.originalRange.startLineNumber + A,
6813 l.originalRange.endLineNumber + 1 + M
6814 ),
6815 q = new D.LineRange(
6816 l.modifiedRange.startLineNumber + A,
6817 l.modifiedRange.endLineNumber + 1 + M
6818 )
6819 return new e.LineRangeMapping(k, q, [l])
6820 }
6821 n.getLineRangeMapping = S
6822 function* E(l, m) {
6823 let N, A
6824 for (const M of l)
6825 A !== void 0 && m(A, M) ? N.push(M) : (N && (yield N), (N = [M])), (A = M)
6826 N && (yield N)
6827 }
6828 class y {
6829 constructor(m, N) {
6830 ;(this.trimmedHash = m), (this.lines = N)
6831 }
6832 getElement(m) {
6833 return this.trimmedHash[m]
6834 }
6835 get length() {
6836 return this.trimmedHash.length
6837 }
6838 getBoundaryScore(m) {
6839 const N = m === 0 ? 0 : _(this.lines[m - 1]),
6840 A = m === this.lines.length ? 0 : _(this.lines[m])
6841 return 1e3 - (N + A)
6842 }
6843 }
6844 n.LineSequence = y
6845 function _(l) {
6846 let m = 0
6847 for (; m < l.length && (l.charCodeAt(m) === 32 || l.charCodeAt(m) === 9); ) m++
6848 return m
6849 }
6850 class d {
6851 constructor(m, N, A) {
6852 ;(this.lines = m),
6853 (this.considerWhitespaceChanges = A),
6854 (this.elements = []),
6855 (this.firstCharOffsetByLineMinusOne = []),
6856 (this.offsetByLine = [])
6857 let M = !1
6858 N.start > 0 &&
6859 N.endExclusive >= m.length &&
6860 ((N = new i.OffsetRange(N.start - 1, N.endExclusive)), (M = !0)),
6861 (this.lineRange = N)
6862 for (let k = this.lineRange.start; k < this.lineRange.endExclusive; k++) {
6863 let q = m[k],
6864 I = 0
6865 if (M) (I = q.length), (q = ''), (M = !1)
6866 else if (!A) {
6867 const B = q.trimStart()
6868 ;(I = q.length - B.length), (q = B.trimEnd())
6869 }
6870 this.offsetByLine.push(I)
6871 for (let B = 0; B < q.length; B++) this.elements.push(q.charCodeAt(B))
6872 k < m.length - 1 &&
6873 (this.elements.push(
6874 `
6875`.charCodeAt(0)
6876 ),
6877 (this.firstCharOffsetByLineMinusOne[k - this.lineRange.start] =
6878 this.elements.length))
6879 }
6880 this.offsetByLine.push(0)
6881 }
6882 toString() {
6883 return `Slice: "${this.text}"`
6884 }
6885 get text() {
6886 return [...this.elements].map((m) => String.fromCharCode(m)).join('')
6887 }
6888 getElement(m) {
6889 return this.elements[m]
6890 }
6891 get length() {
6892 return this.elements.length
6893 }
6894 getBoundaryScore(m) {
6895 const N = o(m > 0 ? this.elements[m - 1] : -1),
6896 A = o(m < this.elements.length ? this.elements[m] : -1)
6897 if (N === 6 && A === 7) return 0
6898 let M = 0
6899 return N !== A && ((M += 10), A === 1 && (M += 1)), (M += u(N)), (M += u(A)), M
6900 }
6901 translateOffset(m) {
6902 if (this.lineRange.isEmpty) return new s.Position(this.lineRange.start + 1, 1)
6903 let N = 0,
6904 A = this.firstCharOffsetByLineMinusOne.length
6905 for (; N < A; ) {
6906 const k = Math.floor((N + A) / 2)
6907 this.firstCharOffsetByLineMinusOne[k] > m ? (A = k) : (N = k + 1)
6908 }
6909 const M = N === 0 ? 0 : this.firstCharOffsetByLineMinusOne[N - 1]
6910 return new s.Position(this.lineRange.start + N + 1, m - M + 1 + this.offsetByLine[N])
6911 }
6912 translateRange(m) {
6913 return p.Range.fromPositions(
6914 this.translateOffset(m.start),
6915 this.translateOffset(m.endExclusive)
6916 )
6917 }
6918 findWordContaining(m) {
6919 if (m < 0 || m >= this.elements.length || !C(this.elements[m])) return
6920 let N = m
6921 for (; N > 0 && C(this.elements[N - 1]); ) N--
6922 let A = m
6923 for (; A < this.elements.length && C(this.elements[A]); ) A++
6924 return new i.OffsetRange(N, A)
6925 }
6926 }
6927 function C(l) {
6928 return (l >= 97 && l <= 122) || (l >= 65 && l <= 90) || (l >= 48 && l <= 57)
6929 }
6930 const r = { [0]: 0, [1]: 0, [2]: 0, [3]: 10, [4]: 2, [5]: 3, [6]: 10, [7]: 10 }
6931 function u(l) {
6932 return r[l]
6933 }
6934 function o(l) {
6935 return l === 10
6936 ? 7
6937 : l === 13
6938 ? 6
6939 : c(l)
6940 ? 5
6941 : l >= 97 && l <= 122
6942 ? 0
6943 : l >= 65 && l <= 90
6944 ? 1
6945 : l >= 48 && l <= 57
6946 ? 2
6947 : l === -1
6948 ? 3
6949 : 4
6950 }
6951 function c(l) {
6952 return l === 32 || l === 9
6953 }
6954 }
6955 ),
6956 Q(Y[41], X([0, 1, 39, 40]), function (x, n, R, D) {
6957 'use strict'
6958 Object.defineProperty(n, '__esModule', { value: !0 }),
6959 (n.linesDiffComputers = void 0),
6960 (n.linesDiffComputers = {
6961 smart: new R.SmartLinesDiffComputer(),
6962 experimental: new D.StandardLinesDiffComputer(),
6963 })
6964 }),
6965 Q(Y[42], X([0, 1, 20]), function (x, n, R) {
6966 'use strict'
6967 Object.defineProperty(n, '__esModule', { value: !0 }),
6968 (n.computeLinks = n.LinkComputer = n.StateMachine = void 0)
6969 class D {
6970 constructor(b, f, v) {
6971 const g = new Uint8Array(b * f)
6972 for (let S = 0, E = b * f; S < E; S++) g[S] = v
6973 ;(this._data = g), (this.rows = b), (this.cols = f)
6974 }
6975 get(b, f) {
6976 return this._data[b * this.cols + f]
6977 }
6978 set(b, f, v) {
6979 this._data[b * this.cols + f] = v
6980 }
6981 }
6982 class i {
6983 constructor(b) {
6984 let f = 0,
6985 v = 0
6986 for (let S = 0, E = b.length; S < E; S++) {
6987 const [y, _, d] = b[S]
6988 _ > f && (f = _), y > v && (v = y), d > v && (v = d)
6989 }
6990 f++, v++
6991 const g = new D(v, f, 0)
6992 for (let S = 0, E = b.length; S < E; S++) {
6993 const [y, _, d] = b[S]
6994 g.set(y, _, d)
6995 }
6996 ;(this._states = g), (this._maxCharCode = f)
6997 }
6998 nextState(b, f) {
6999 return f < 0 || f >= this._maxCharCode ? 0 : this._states.get(b, f)
7000 }
7001 }
7002 n.StateMachine = i
7003 let s = null
7004 function p() {
7005 return (
7006 s === null &&
7007 (s = new i([
7008 [1, 104, 2],
7009 [1, 72, 2],
7010 [1, 102, 6],
7011 [1, 70, 6],
7012 [2, 116, 3],
7013 [2, 84, 3],
7014 [3, 116, 4],
7015 [3, 84, 4],
7016 [4, 112, 5],
7017 [4, 80, 5],
7018 [5, 115, 9],
7019 [5, 83, 9],
7020 [5, 58, 10],
7021 [6, 105, 7],
7022 [6, 73, 7],
7023 [7, 108, 8],
7024 [7, 76, 8],
7025 [8, 101, 9],
7026 [8, 69, 9],
7027 [9, 58, 10],
7028 [10, 47, 11],
7029 [11, 47, 12],
7030 ])),
7031 s
7032 )
7033 }
7034 let L = null
7035 function h() {
7036 if (L === null) {
7037 L = new R.CharacterClassifier(0)
7038 const e = ` <>'"\u3001\u3002\uFF61\uFF64\uFF0C\uFF0E\uFF1A\uFF1B\u2018\u3008\u300C\u300E\u3014\uFF08\uFF3B\uFF5B\uFF62\uFF63\uFF5D\uFF3D\uFF09\u3015\u300F\u300D\u3009\u2019\uFF40\uFF5E\u2026`
7039 for (let f = 0; f < e.length; f++) L.set(e.charCodeAt(f), 1)
7040 const b = '.,;:'
7041 for (let f = 0; f < b.length; f++) L.set(b.charCodeAt(f), 2)
7042 }
7043 return L
7044 }
7045 class a {
7046 static _createLink(b, f, v, g, S) {
7047 let E = S - 1
7048 do {
7049 const y = f.charCodeAt(E)
7050 if (b.get(y) !== 2) break
7051 E--
7052 } while (E > g)
7053 if (g > 0) {
7054 const y = f.charCodeAt(g - 1),
7055 _ = f.charCodeAt(E)
7056 ;((y === 40 && _ === 41) || (y === 91 && _ === 93) || (y === 123 && _ === 125)) && E--
7057 }
7058 return {
7059 range: { startLineNumber: v, startColumn: g + 1, endLineNumber: v, endColumn: E + 2 },
7060 url: f.substring(g, E + 1),
7061 }
7062 }
7063 static computeLinks(b, f = p()) {
7064 const v = h(),
7065 g = []
7066 for (let S = 1, E = b.getLineCount(); S <= E; S++) {
7067 const y = b.getLineContent(S),
7068 _ = y.length
7069 let d = 0,
7070 C = 0,
7071 r = 0,
7072 u = 1,
7073 o = !1,
7074 c = !1,
7075 l = !1,
7076 m = !1
7077 for (; d < _; ) {
7078 let N = !1
7079 const A = y.charCodeAt(d)
7080 if (u === 13) {
7081 let M
7082 switch (A) {
7083 case 40:
7084 ;(o = !0), (M = 0)
7085 break
7086 case 41:
7087 M = o ? 0 : 1
7088 break
7089 case 91:
7090 ;(l = !0), (c = !0), (M = 0)
7091 break
7092 case 93:
7093 ;(l = !1), (M = c ? 0 : 1)
7094 break
7095 case 123:
7096 ;(m = !0), (M = 0)
7097 break
7098 case 125:
7099 M = m ? 0 : 1
7100 break
7101 case 39:
7102 case 34:
7103 case 96:
7104 r === A ? (M = 1) : r === 39 || r === 34 || r === 96 ? (M = 0) : (M = 1)
7105 break
7106 case 42:
7107 M = r === 42 ? 1 : 0
7108 break
7109 case 124:
7110 M = r === 124 ? 1 : 0
7111 break
7112 case 32:
7113 M = l ? 0 : 1
7114 break
7115 default:
7116 M = v.get(A)
7117 }
7118 M === 1 && (g.push(a._createLink(v, y, S, C, d)), (N = !0))
7119 } else if (u === 12) {
7120 let M
7121 A === 91 ? ((c = !0), (M = 0)) : (M = v.get(A)), M === 1 ? (N = !0) : (u = 13)
7122 } else (u = f.nextState(u, A)), u === 0 && (N = !0)
7123 N && ((u = 1), (o = !1), (c = !1), (m = !1), (C = d + 1), (r = A)), d++
7124 }
7125 u === 13 && g.push(a._createLink(v, y, S, C, _))
7126 }
7127 return g
7128 }
7129 }
7130 n.LinkComputer = a
7131 function w(e) {
7132 return !e || typeof e.getLineCount != 'function' || typeof e.getLineContent != 'function'
7133 ? []
7134 : a.computeLinks(e)
7135 }
7136 n.computeLinks = w
7137 }),
7138 Q(Y[43], X([0, 1]), function (x, n) {
7139 'use strict'
7140 Object.defineProperty(n, '__esModule', { value: !0 }), (n.BasicInplaceReplace = void 0)
7141 class R {
7142 constructor() {
7143 this._defaultValueSet = [
7144 ['true', 'false'],
7145 ['True', 'False'],
7146 ['Private', 'Public', 'Friend', 'ReadOnly', 'Partial', 'Protected', 'WriteOnly'],
7147 ['public', 'protected', 'private'],
7148 ]
7149 }
7150 navigateValueSet(i, s, p, L, h) {
7151 if (i && s) {
7152 const a = this.doNavigateValueSet(s, h)
7153 if (a) return { range: i, value: a }
7154 }
7155 if (p && L) {
7156 const a = this.doNavigateValueSet(L, h)
7157 if (a) return { range: p, value: a }
7158 }
7159 return null
7160 }
7161 doNavigateValueSet(i, s) {
7162 const p = this.numberReplace(i, s)
7163 return p !== null ? p : this.textReplace(i, s)
7164 }
7165 numberReplace(i, s) {
7166 const p = Math.pow(10, i.length - (i.lastIndexOf('.') + 1))
7167 let L = Number(i)
7168 const h = parseFloat(i)
7169 return !isNaN(L) && !isNaN(h) && L === h
7170 ? L === 0 && !s
7171 ? null
7172 : ((L = Math.floor(L * p)), (L += s ? p : -p), String(L / p))
7173 : null
7174 }
7175 textReplace(i, s) {
7176 return this.valueSetsReplace(this._defaultValueSet, i, s)
7177 }
7178 valueSetsReplace(i, s, p) {
7179 let L = null
7180 for (let h = 0, a = i.length; L === null && h < a; h++)
7181 L = this.valueSetReplace(i[h], s, p)
7182 return L
7183 }
7184 valueSetReplace(i, s, p) {
7185 let L = i.indexOf(s)
7186 return L >= 0
7187 ? ((L += p ? 1 : -1), L < 0 ? (L = i.length - 1) : (L %= i.length), i[L])
7188 : null
7189 }
7190 }
7191 ;(R.INSTANCE = new R()), (n.BasicInplaceReplace = R)
7192 }),
7193 Q(Y[44], X([0, 1, 12]), function (x, n, R) {
7194 'use strict'
7195 Object.defineProperty(n, '__esModule', { value: !0 }),
7196 (n.shouldSynchronizeModel =
7197 n.ApplyEditsResult =
7198 n.SearchData =
7199 n.ValidAnnotatedEditOperation =
7200 n.isITextSnapshot =
7201 n.FindMatch =
7202 n.TextModelResolvedOptions =
7203 n.InjectedTextCursorStops =
7204 n.MinimapPosition =
7205 n.OverviewRulerLane =
7206 void 0)
7207 var D
7208 ;(function (f) {
7209 ;(f[(f.Left = 1)] = 'Left'),
7210 (f[(f.Center = 2)] = 'Center'),
7211 (f[(f.Right = 4)] = 'Right'),
7212 (f[(f.Full = 7)] = 'Full')
7213 })((D = n.OverviewRulerLane || (n.OverviewRulerLane = {})))
7214 var i
7215 ;(function (f) {
7216 ;(f[(f.Inline = 1)] = 'Inline'), (f[(f.Gutter = 2)] = 'Gutter')
7217 })((i = n.MinimapPosition || (n.MinimapPosition = {})))
7218 var s
7219 ;(function (f) {
7220 ;(f[(f.Both = 0)] = 'Both'),
7221 (f[(f.Right = 1)] = 'Right'),
7222 (f[(f.Left = 2)] = 'Left'),
7223 (f[(f.None = 3)] = 'None')
7224 })((s = n.InjectedTextCursorStops || (n.InjectedTextCursorStops = {})))
7225 class p {
7226 get originalIndentSize() {
7227 return this._indentSizeIsTabSize ? 'tabSize' : this.indentSize
7228 }
7229 constructor(v) {
7230 ;(this._textModelResolvedOptionsBrand = void 0),
7231 (this.tabSize = Math.max(1, v.tabSize | 0)),
7232 v.indentSize === 'tabSize'
7233 ? ((this.indentSize = this.tabSize), (this._indentSizeIsTabSize = !0))
7234 : ((this.indentSize = Math.max(1, v.indentSize | 0)),
7235 (this._indentSizeIsTabSize = !1)),
7236 (this.insertSpaces = Boolean(v.insertSpaces)),
7237 (this.defaultEOL = v.defaultEOL | 0),
7238 (this.trimAutoWhitespace = Boolean(v.trimAutoWhitespace)),
7239 (this.bracketPairColorizationOptions = v.bracketPairColorizationOptions)
7240 }
7241 equals(v) {
7242 return (
7243 this.tabSize === v.tabSize &&
7244 this._indentSizeIsTabSize === v._indentSizeIsTabSize &&
7245 this.indentSize === v.indentSize &&
7246 this.insertSpaces === v.insertSpaces &&
7247 this.defaultEOL === v.defaultEOL &&
7248 this.trimAutoWhitespace === v.trimAutoWhitespace &&
7249 (0, R.equals)(this.bracketPairColorizationOptions, v.bracketPairColorizationOptions)
7250 )
7251 }
7252 createChangeEvent(v) {
7253 return {
7254 tabSize: this.tabSize !== v.tabSize,
7255 indentSize: this.indentSize !== v.indentSize,
7256 insertSpaces: this.insertSpaces !== v.insertSpaces,
7257 trimAutoWhitespace: this.trimAutoWhitespace !== v.trimAutoWhitespace,
7258 }
7259 }
7260 }
7261 n.TextModelResolvedOptions = p
7262 class L {
7263 constructor(v, g) {
7264 ;(this._findMatchBrand = void 0), (this.range = v), (this.matches = g)
7265 }
7266 }
7267 n.FindMatch = L
7268 function h(f) {
7269 return f && typeof f.read == 'function'
7270 }
7271 n.isITextSnapshot = h
7272 class a {
7273 constructor(v, g, S, E, y, _) {
7274 ;(this.identifier = v),
7275 (this.range = g),
7276 (this.text = S),
7277 (this.forceMoveMarkers = E),
7278 (this.isAutoWhitespaceEdit = y),
7279 (this._isTracked = _)
7280 }
7281 }
7282 n.ValidAnnotatedEditOperation = a
7283 class w {
7284 constructor(v, g, S) {
7285 ;(this.regex = v), (this.wordSeparators = g), (this.simpleSearch = S)
7286 }
7287 }
7288 n.SearchData = w
7289 class e {
7290 constructor(v, g, S) {
7291 ;(this.reverseEdits = v), (this.changes = g), (this.trimAutoWhitespaceLineNumbers = S)
7292 }
7293 }
7294 n.ApplyEditsResult = e
7295 function b(f) {
7296 return !f.isTooLargeForSyncing() && !f.isForSimpleWidget
7297 }
7298 n.shouldSynchronizeModel = b
7299 }),
7300 Q(Y[45], X([0, 1, 26, 19]), function (x, n, R, D) {
7301 'use strict'
7302 Object.defineProperty(n, '__esModule', { value: !0 }),
7303 (n.PrefixSumIndexOfResult = n.ConstantTimePrefixSumComputer = n.PrefixSumComputer = void 0)
7304 class i {
7305 constructor(h) {
7306 ;(this.values = h),
7307 (this.prefixSum = new Uint32Array(h.length)),
7308 (this.prefixSumValidIndex = new Int32Array(1)),
7309 (this.prefixSumValidIndex[0] = -1)
7310 }
7311 insertValues(h, a) {
7312 h = (0, D.toUint32)(h)
7313 const w = this.values,
7314 e = this.prefixSum,
7315 b = a.length
7316 return b === 0
7317 ? !1
7318 : ((this.values = new Uint32Array(w.length + b)),
7319 this.values.set(w.subarray(0, h), 0),
7320 this.values.set(w.subarray(h), h + b),
7321 this.values.set(a, h),
7322 h - 1 < this.prefixSumValidIndex[0] && (this.prefixSumValidIndex[0] = h - 1),
7323 (this.prefixSum = new Uint32Array(this.values.length)),
7324 this.prefixSumValidIndex[0] >= 0 &&
7325 this.prefixSum.set(e.subarray(0, this.prefixSumValidIndex[0] + 1)),
7326 !0)
7327 }
7328 setValue(h, a) {
7329 return (
7330 (h = (0, D.toUint32)(h)),
7331 (a = (0, D.toUint32)(a)),
7332 this.values[h] === a
7333 ? !1
7334 : ((this.values[h] = a),
7335 h - 1 < this.prefixSumValidIndex[0] && (this.prefixSumValidIndex[0] = h - 1),
7336 !0)
7337 )
7338 }
7339 removeValues(h, a) {
7340 ;(h = (0, D.toUint32)(h)), (a = (0, D.toUint32)(a))
7341 const w = this.values,
7342 e = this.prefixSum
7343 if (h >= w.length) return !1
7344 const b = w.length - h
7345 return (
7346 a >= b && (a = b),
7347 a === 0
7348 ? !1
7349 : ((this.values = new Uint32Array(w.length - a)),
7350 this.values.set(w.subarray(0, h), 0),
7351 this.values.set(w.subarray(h + a), h),
7352 (this.prefixSum = new Uint32Array(this.values.length)),
7353 h - 1 < this.prefixSumValidIndex[0] && (this.prefixSumValidIndex[0] = h - 1),
7354 this.prefixSumValidIndex[0] >= 0 &&
7355 this.prefixSum.set(e.subarray(0, this.prefixSumValidIndex[0] + 1)),
7356 !0)
7357 )
7358 }
7359 getTotalSum() {
7360 return this.values.length === 0 ? 0 : this._getPrefixSum(this.values.length - 1)
7361 }
7362 getPrefixSum(h) {
7363 return h < 0 ? 0 : ((h = (0, D.toUint32)(h)), this._getPrefixSum(h))
7364 }
7365 _getPrefixSum(h) {
7366 if (h <= this.prefixSumValidIndex[0]) return this.prefixSum[h]
7367 let a = this.prefixSumValidIndex[0] + 1
7368 a === 0 && ((this.prefixSum[0] = this.values[0]), a++),
7369 h >= this.values.length && (h = this.values.length - 1)
7370 for (let w = a; w <= h; w++) this.prefixSum[w] = this.prefixSum[w - 1] + this.values[w]
7371 return (
7372 (this.prefixSumValidIndex[0] = Math.max(this.prefixSumValidIndex[0], h)),
7373 this.prefixSum[h]
7374 )
7375 }
7376 getIndexOf(h) {
7377 ;(h = Math.floor(h)), this.getTotalSum()
7378 let a = 0,
7379 w = this.values.length - 1,
7380 e = 0,
7381 b = 0,
7382 f = 0
7383 for (; a <= w; )
7384 if (
7385 ((e = (a + (w - a) / 2) | 0),
7386 (b = this.prefixSum[e]),
7387 (f = b - this.values[e]),
7388 h < f)
7389 )
7390 w = e - 1
7391 else if (h >= b) a = e + 1
7392 else break
7393 return new p(e, h - f)
7394 }
7395 }
7396 n.PrefixSumComputer = i
7397 class s {
7398 constructor(h) {
7399 ;(this._values = h),
7400 (this._isValid = !1),
7401 (this._validEndIndex = -1),
7402 (this._prefixSum = []),
7403 (this._indexBySum = [])
7404 }
7405 getTotalSum() {
7406 return this._ensureValid(), this._indexBySum.length
7407 }
7408 getPrefixSum(h) {
7409 return this._ensureValid(), h === 0 ? 0 : this._prefixSum[h - 1]
7410 }
7411 getIndexOf(h) {
7412 this._ensureValid()
7413 const a = this._indexBySum[h],
7414 w = a > 0 ? this._prefixSum[a - 1] : 0
7415 return new p(a, h - w)
7416 }
7417 removeValues(h, a) {
7418 this._values.splice(h, a), this._invalidate(h)
7419 }
7420 insertValues(h, a) {
7421 ;(this._values = (0, R.arrayInsert)(this._values, h, a)), this._invalidate(h)
7422 }
7423 _invalidate(h) {
7424 ;(this._isValid = !1), (this._validEndIndex = Math.min(this._validEndIndex, h - 1))
7425 }
7426 _ensureValid() {
7427 if (!this._isValid) {
7428 for (let h = this._validEndIndex + 1, a = this._values.length; h < a; h++) {
7429 const w = this._values[h],
7430 e = h > 0 ? this._prefixSum[h - 1] : 0
7431 this._prefixSum[h] = e + w
7432 for (let b = 0; b < w; b++) this._indexBySum[e + b] = h
7433 }
7434 ;(this._prefixSum.length = this._values.length),
7435 (this._indexBySum.length = this._prefixSum[this._prefixSum.length - 1]),
7436 (this._isValid = !0),
7437 (this._validEndIndex = this._values.length - 1)
7438 }
7439 }
7440 setValue(h, a) {
7441 this._values[h] !== a && ((this._values[h] = a), this._invalidate(h))
7442 }
7443 }
7444 n.ConstantTimePrefixSumComputer = s
7445 class p {
7446 constructor(h, a) {
7447 ;(this.index = h),
7448 (this.remainder = a),
7449 (this._prefixSumIndexOfResultBrand = void 0),
7450 (this.index = h),
7451 (this.remainder = a)
7452 }
7453 }
7454 n.PrefixSumIndexOfResult = p
7455 }),
7456 Q(Y[46], X([0, 1, 5, 3, 45]), function (x, n, R, D, i) {
7457 'use strict'
7458 Object.defineProperty(n, '__esModule', { value: !0 }), (n.MirrorTextModel = void 0)
7459 class s {
7460 constructor(L, h, a, w) {
7461 ;(this._uri = L),
7462 (this._lines = h),
7463 (this._eol = a),
7464 (this._versionId = w),
7465 (this._lineStarts = null),
7466 (this._cachedTextValue = null)
7467 }
7468 dispose() {
7469 this._lines.length = 0
7470 }
7471 get version() {
7472 return this._versionId
7473 }
7474 getText() {
7475 return (
7476 this._cachedTextValue === null && (this._cachedTextValue = this._lines.join(this._eol)),
7477 this._cachedTextValue
7478 )
7479 }
7480 onEvents(L) {
7481 L.eol && L.eol !== this._eol && ((this._eol = L.eol), (this._lineStarts = null))
7482 const h = L.changes
7483 for (const a of h)
7484 this._acceptDeleteRange(a.range),
7485 this._acceptInsertText(
7486 new D.Position(a.range.startLineNumber, a.range.startColumn),
7487 a.text
7488 )
7489 ;(this._versionId = L.versionId), (this._cachedTextValue = null)
7490 }
7491 _ensureLineStarts() {
7492 if (!this._lineStarts) {
7493 const L = this._eol.length,
7494 h = this._lines.length,
7495 a = new Uint32Array(h)
7496 for (let w = 0; w < h; w++) a[w] = this._lines[w].length + L
7497 this._lineStarts = new i.PrefixSumComputer(a)
7498 }
7499 }
7500 _setLineText(L, h) {
7501 ;(this._lines[L] = h),
7502 this._lineStarts &&
7503 this._lineStarts.setValue(L, this._lines[L].length + this._eol.length)
7504 }
7505 _acceptDeleteRange(L) {
7506 if (L.startLineNumber === L.endLineNumber) {
7507 if (L.startColumn === L.endColumn) return
7508 this._setLineText(
7509 L.startLineNumber - 1,
7510 this._lines[L.startLineNumber - 1].substring(0, L.startColumn - 1) +
7511 this._lines[L.startLineNumber - 1].substring(L.endColumn - 1)
7512 )
7513 return
7514 }
7515 this._setLineText(
7516 L.startLineNumber - 1,
7517 this._lines[L.startLineNumber - 1].substring(0, L.startColumn - 1) +
7518 this._lines[L.endLineNumber - 1].substring(L.endColumn - 1)
7519 ),
7520 this._lines.splice(L.startLineNumber, L.endLineNumber - L.startLineNumber),
7521 this._lineStarts &&
7522 this._lineStarts.removeValues(L.startLineNumber, L.endLineNumber - L.startLineNumber)
7523 }
7524 _acceptInsertText(L, h) {
7525 if (h.length === 0) return
7526 const a = (0, R.splitLines)(h)
7527 if (a.length === 1) {
7528 this._setLineText(
7529 L.lineNumber - 1,
7530 this._lines[L.lineNumber - 1].substring(0, L.column - 1) +
7531 a[0] +
7532 this._lines[L.lineNumber - 1].substring(L.column - 1)
7533 )
7534 return
7535 }
7536 ;(a[a.length - 1] += this._lines[L.lineNumber - 1].substring(L.column - 1)),
7537 this._setLineText(
7538 L.lineNumber - 1,
7539 this._lines[L.lineNumber - 1].substring(0, L.column - 1) + a[0]
7540 )
7541 const w = new Uint32Array(a.length - 1)
7542 for (let e = 1; e < a.length; e++)
7543 this._lines.splice(L.lineNumber + e - 1, 0, a[e]),
7544 (w[e - 1] = a[e].length + this._eol.length)
7545 this._lineStarts && this._lineStarts.insertValues(L.lineNumber, w)
7546 }
7547 }
7548 n.MirrorTextModel = s
7549 }),
7550 Q(Y[47], X([0, 1, 5, 34, 3, 2, 44]), function (x, n, R, D, i, s, p) {
7551 'use strict'
7552 Object.defineProperty(n, '__esModule', { value: !0 }),
7553 (n.Searcher =
7554 n.isValidMatch =
7555 n.TextModelSearch =
7556 n.createFindMatch =
7557 n.isMultilineRegexSource =
7558 n.SearchParams =
7559 void 0)
7560 const L = 999
7561 class h {
7562 constructor(y, _, d, C) {
7563 ;(this.searchString = y),
7564 (this.isRegex = _),
7565 (this.matchCase = d),
7566 (this.wordSeparators = C)
7567 }
7568 parseSearchRequest() {
7569 if (this.searchString === '') return null
7570 let y
7571 this.isRegex
7572 ? (y = a(this.searchString))
7573 : (y =
7574 this.searchString.indexOf(`
7575`) >= 0)
7576 let _ = null
7577 try {
7578 _ = R.createRegExp(this.searchString, this.isRegex, {
7579 matchCase: this.matchCase,
7580 wholeWord: !1,
7581 multiline: y,
7582 global: !0,
7583 unicode: !0,
7584 })
7585 } catch {
7586 return null
7587 }
7588 if (!_) return null
7589 let d = !this.isRegex && !y
7590 return (
7591 d &&
7592 this.searchString.toLowerCase() !== this.searchString.toUpperCase() &&
7593 (d = this.matchCase),
7594 new p.SearchData(
7595 _,
7596 this.wordSeparators ? (0, D.getMapForWordSeparators)(this.wordSeparators) : null,
7597 d ? this.searchString : null
7598 )
7599 )
7600 }
7601 }
7602 n.SearchParams = h
7603 function a(E) {
7604 if (!E || E.length === 0) return !1
7605 for (let y = 0, _ = E.length; y < _; y++) {
7606 const d = E.charCodeAt(y)
7607 if (d === 10) return !0
7608 if (d === 92) {
7609 if ((y++, y >= _)) break
7610 const C = E.charCodeAt(y)
7611 if (C === 110 || C === 114 || C === 87) return !0
7612 }
7613 }
7614 return !1
7615 }
7616 n.isMultilineRegexSource = a
7617 function w(E, y, _) {
7618 if (!_) return new p.FindMatch(E, null)
7619 const d = []
7620 for (let C = 0, r = y.length; C < r; C++) d[C] = y[C]
7621 return new p.FindMatch(E, d)
7622 }
7623 n.createFindMatch = w
7624 class e {
7625 constructor(y) {
7626 const _ = []
7627 let d = 0
7628 for (let C = 0, r = y.length; C < r; C++) y.charCodeAt(C) === 10 && (_[d++] = C)
7629 this._lineFeedsOffsets = _
7630 }
7631 findLineFeedCountBeforeOffset(y) {
7632 const _ = this._lineFeedsOffsets
7633 let d = 0,
7634 C = _.length - 1
7635 if (C === -1 || y <= _[0]) return 0
7636 for (; d < C; ) {
7637 const r = d + (((C - d) / 2) >> 0)
7638 _[r] >= y ? (C = r - 1) : _[r + 1] >= y ? ((d = r), (C = r)) : (d = r + 1)
7639 }
7640 return d + 1
7641 }
7642 }
7643 class b {
7644 static findMatches(y, _, d, C, r) {
7645 const u = _.parseSearchRequest()
7646 return u
7647 ? u.regex.multiline
7648 ? this._doFindMatchesMultiline(y, d, new S(u.wordSeparators, u.regex), C, r)
7649 : this._doFindMatchesLineByLine(y, d, u, C, r)
7650 : []
7651 }
7652 static _getMultilineMatchRange(y, _, d, C, r, u) {
7653 let o,
7654 c = 0
7655 C ? ((c = C.findLineFeedCountBeforeOffset(r)), (o = _ + r + c)) : (o = _ + r)
7656 let l
7657 if (C) {
7658 const M = C.findLineFeedCountBeforeOffset(r + u.length) - c
7659 l = o + u.length + M
7660 } else l = o + u.length
7661 const m = y.getPositionAt(o),
7662 N = y.getPositionAt(l)
7663 return new s.Range(m.lineNumber, m.column, N.lineNumber, N.column)
7664 }
7665 static _doFindMatchesMultiline(y, _, d, C, r) {
7666 const u = y.getOffsetAt(_.getStartPosition()),
7667 o = y.getValueInRange(_, 1),
7668 c =
7669 y.getEOL() ===
7670 `\r
7671`
7672 ? new e(o)
7673 : null,
7674 l = []
7675 let m = 0,
7676 N
7677 for (d.reset(0); (N = d.next(o)); )
7678 if (
7679 ((l[m++] = w(this._getMultilineMatchRange(y, u, o, c, N.index, N[0]), N, C)), m >= r)
7680 )
7681 return l
7682 return l
7683 }
7684 static _doFindMatchesLineByLine(y, _, d, C, r) {
7685 const u = []
7686 let o = 0
7687 if (_.startLineNumber === _.endLineNumber) {
7688 const l = y
7689 .getLineContent(_.startLineNumber)
7690 .substring(_.startColumn - 1, _.endColumn - 1)
7691 return (
7692 (o = this._findMatchesInLine(d, l, _.startLineNumber, _.startColumn - 1, o, u, C, r)),
7693 u
7694 )
7695 }
7696 const c = y.getLineContent(_.startLineNumber).substring(_.startColumn - 1)
7697 o = this._findMatchesInLine(d, c, _.startLineNumber, _.startColumn - 1, o, u, C, r)
7698 for (let l = _.startLineNumber + 1; l < _.endLineNumber && o < r; l++)
7699 o = this._findMatchesInLine(d, y.getLineContent(l), l, 0, o, u, C, r)
7700 if (o < r) {
7701 const l = y.getLineContent(_.endLineNumber).substring(0, _.endColumn - 1)
7702 o = this._findMatchesInLine(d, l, _.endLineNumber, 0, o, u, C, r)
7703 }
7704 return u
7705 }
7706 static _findMatchesInLine(y, _, d, C, r, u, o, c) {
7707 const l = y.wordSeparators
7708 if (!o && y.simpleSearch) {
7709 const A = y.simpleSearch,
7710 M = A.length,
7711 k = _.length
7712 let q = -M
7713 for (; (q = _.indexOf(A, q + M)) !== -1; )
7714 if (
7715 (!l || g(l, _, k, q, M)) &&
7716 ((u[r++] = new p.FindMatch(new s.Range(d, q + 1 + C, d, q + 1 + M + C), null)),
7717 r >= c)
7718 )
7719 return r
7720 return r
7721 }
7722 const m = new S(y.wordSeparators, y.regex)
7723 let N
7724 m.reset(0)
7725 do
7726 if (
7727 ((N = m.next(_)),
7728 N &&
7729 ((u[r++] = w(
7730 new s.Range(d, N.index + 1 + C, d, N.index + 1 + N[0].length + C),
7731 N,
7732 o
7733 )),
7734 r >= c))
7735 )
7736 return r
7737 while (N)
7738 return r
7739 }
7740 static findNextMatch(y, _, d, C) {
7741 const r = _.parseSearchRequest()
7742 if (!r) return null
7743 const u = new S(r.wordSeparators, r.regex)
7744 return r.regex.multiline
7745 ? this._doFindNextMatchMultiline(y, d, u, C)
7746 : this._doFindNextMatchLineByLine(y, d, u, C)
7747 }
7748 static _doFindNextMatchMultiline(y, _, d, C) {
7749 const r = new i.Position(_.lineNumber, 1),
7750 u = y.getOffsetAt(r),
7751 o = y.getLineCount(),
7752 c = y.getValueInRange(new s.Range(r.lineNumber, r.column, o, y.getLineMaxColumn(o)), 1),
7753 l =
7754 y.getEOL() ===
7755 `\r
7756`
7757 ? new e(c)
7758 : null
7759 d.reset(_.column - 1)
7760 const m = d.next(c)
7761 return m
7762 ? w(this._getMultilineMatchRange(y, u, c, l, m.index, m[0]), m, C)
7763 : _.lineNumber !== 1 || _.column !== 1
7764 ? this._doFindNextMatchMultiline(y, new i.Position(1, 1), d, C)
7765 : null
7766 }
7767 static _doFindNextMatchLineByLine(y, _, d, C) {
7768 const r = y.getLineCount(),
7769 u = _.lineNumber,
7770 o = y.getLineContent(u),
7771 c = this._findFirstMatchInLine(d, o, u, _.column, C)
7772 if (c) return c
7773 for (let l = 1; l <= r; l++) {
7774 const m = (u + l - 1) % r,
7775 N = y.getLineContent(m + 1),
7776 A = this._findFirstMatchInLine(d, N, m + 1, 1, C)
7777 if (A) return A
7778 }
7779 return null
7780 }
7781 static _findFirstMatchInLine(y, _, d, C, r) {
7782 y.reset(C - 1)
7783 const u = y.next(_)
7784 return u ? w(new s.Range(d, u.index + 1, d, u.index + 1 + u[0].length), u, r) : null
7785 }
7786 static findPreviousMatch(y, _, d, C) {
7787 const r = _.parseSearchRequest()
7788 if (!r) return null
7789 const u = new S(r.wordSeparators, r.regex)
7790 return r.regex.multiline
7791 ? this._doFindPreviousMatchMultiline(y, d, u, C)
7792 : this._doFindPreviousMatchLineByLine(y, d, u, C)
7793 }
7794 static _doFindPreviousMatchMultiline(y, _, d, C) {
7795 const r = this._doFindMatchesMultiline(
7796 y,
7797 new s.Range(1, 1, _.lineNumber, _.column),
7798 d,
7799 C,
7800 10 * L
7801 )
7802 if (r.length > 0) return r[r.length - 1]
7803 const u = y.getLineCount()
7804 return _.lineNumber !== u || _.column !== y.getLineMaxColumn(u)
7805 ? this._doFindPreviousMatchMultiline(y, new i.Position(u, y.getLineMaxColumn(u)), d, C)
7806 : null
7807 }
7808 static _doFindPreviousMatchLineByLine(y, _, d, C) {
7809 const r = y.getLineCount(),
7810 u = _.lineNumber,
7811 o = y.getLineContent(u).substring(0, _.column - 1),
7812 c = this._findLastMatchInLine(d, o, u, C)
7813 if (c) return c
7814 for (let l = 1; l <= r; l++) {
7815 const m = (r + u - l - 1) % r,
7816 N = y.getLineContent(m + 1),
7817 A = this._findLastMatchInLine(d, N, m + 1, C)
7818 if (A) return A
7819 }
7820 return null
7821 }
7822 static _findLastMatchInLine(y, _, d, C) {
7823 let r = null,
7824 u
7825 for (y.reset(0); (u = y.next(_)); )
7826 r = w(new s.Range(d, u.index + 1, d, u.index + 1 + u[0].length), u, C)
7827 return r
7828 }
7829 }
7830 n.TextModelSearch = b
7831 function f(E, y, _, d, C) {
7832 if (d === 0) return !0
7833 const r = y.charCodeAt(d - 1)
7834 if (E.get(r) !== 0 || r === 13 || r === 10) return !0
7835 if (C > 0) {
7836 const u = y.charCodeAt(d)
7837 if (E.get(u) !== 0) return !0
7838 }
7839 return !1
7840 }
7841 function v(E, y, _, d, C) {
7842 if (d + C === _) return !0
7843 const r = y.charCodeAt(d + C)
7844 if (E.get(r) !== 0 || r === 13 || r === 10) return !0
7845 if (C > 0) {
7846 const u = y.charCodeAt(d + C - 1)
7847 if (E.get(u) !== 0) return !0
7848 }
7849 return !1
7850 }
7851 function g(E, y, _, d, C) {
7852 return f(E, y, _, d, C) && v(E, y, _, d, C)
7853 }
7854 n.isValidMatch = g
7855 class S {
7856 constructor(y, _) {
7857 ;(this._wordSeparators = y),
7858 (this._searchRegex = _),
7859 (this._prevMatchStartIndex = -1),
7860 (this._prevMatchLength = 0)
7861 }
7862 reset(y) {
7863 ;(this._searchRegex.lastIndex = y),
7864 (this._prevMatchStartIndex = -1),
7865 (this._prevMatchLength = 0)
7866 }
7867 next(y) {
7868 const _ = y.length
7869 let d
7870 do {
7871 if (
7872 this._prevMatchStartIndex + this._prevMatchLength === _ ||
7873 ((d = this._searchRegex.exec(y)), !d)
7874 )
7875 return null
7876 const C = d.index,
7877 r = d[0].length
7878 if (C === this._prevMatchStartIndex && r === this._prevMatchLength) {
7879 if (r === 0) {
7880 R.getNextCodePoint(y, _, this._searchRegex.lastIndex) > 65535
7881 ? (this._searchRegex.lastIndex += 2)
7882 : (this._searchRegex.lastIndex += 1)
7883 continue
7884 }
7885 return null
7886 }
7887 if (
7888 ((this._prevMatchStartIndex = C),
7889 (this._prevMatchLength = r),
7890 !this._wordSeparators || g(this._wordSeparators, y, _, C, r))
7891 )
7892 return d
7893 } while (d)
7894 return null
7895 }
7896 }
7897 n.Searcher = S
7898 }),
7899 Q(Y[48], X([0, 1, 2, 47, 5, 10, 22]), function (x, n, R, D, i, s, p) {
7900 'use strict'
7901 Object.defineProperty(n, '__esModule', { value: !0 }),
7902 (n.UnicodeTextModelHighlighter = void 0)
7903 class L {
7904 static computeUnicodeHighlights(b, f, v) {
7905 const g = v ? v.startLineNumber : 1,
7906 S = v ? v.endLineNumber : b.getLineCount(),
7907 E = new a(f),
7908 y = E.getCandidateCodePoints()
7909 let _
7910 y === 'allNonBasicAscii'
7911 ? (_ = new RegExp('[^\\t\\n\\r\\x20-\\x7E]', 'g'))
7912 : (_ = new RegExp(`${h(Array.from(y))}`, 'g'))
7913 const d = new D.Searcher(null, _),
7914 C = []
7915 let r = !1,
7916 u,
7917 o = 0,
7918 c = 0,
7919 l = 0
7920 e: for (let m = g, N = S; m <= N; m++) {
7921 const A = b.getLineContent(m),
7922 M = A.length
7923 d.reset(0)
7924 do
7925 if (((u = d.next(A)), u)) {
7926 let k = u.index,
7927 q = u.index + u[0].length
7928 if (k > 0) {
7929 const F = A.charCodeAt(k - 1)
7930 i.isHighSurrogate(F) && k--
7931 }
7932 if (q + 1 < M) {
7933 const F = A.charCodeAt(q - 1)
7934 i.isHighSurrogate(F) && q++
7935 }
7936 const I = A.substring(k, q)
7937 let B = (0, p.getWordAtText)(k + 1, p.DEFAULT_WORD_REGEXP, A, 0)
7938 B && B.endColumn <= k + 1 && (B = null)
7939 const H = E.shouldHighlightNonBasicASCII(I, B ? B.word : null)
7940 if (H !== 0) {
7941 H === 3 ? o++ : H === 2 ? c++ : H === 1 ? l++ : (0, s.assertNever)(H)
7942 const F = 1e3
7943 if (C.length >= F) {
7944 r = !0
7945 break e
7946 }
7947 C.push(new R.Range(m, k + 1, m, q + 1))
7948 }
7949 }
7950 while (u)
7951 }
7952 return {
7953 ranges: C,
7954 hasMore: r,
7955 ambiguousCharacterCount: o,
7956 invisibleCharacterCount: c,
7957 nonBasicAsciiCharacterCount: l,
7958 }
7959 }
7960 static computeUnicodeHighlightReason(b, f) {
7961 const v = new a(f)
7962 switch (v.shouldHighlightNonBasicASCII(b, null)) {
7963 case 0:
7964 return null
7965 case 2:
7966 return { kind: 1 }
7967 case 3: {
7968 const S = b.codePointAt(0),
7969 E = v.ambiguousCharacters.getPrimaryConfusable(S),
7970 y = i.AmbiguousCharacters.getLocales().filter(
7971 (_) =>
7972 !i.AmbiguousCharacters.getInstance(
7973 new Set([...f.allowedLocales, _])
7974 ).isAmbiguous(S)
7975 )
7976 return { kind: 0, confusableWith: String.fromCodePoint(E), notAmbiguousInLocales: y }
7977 }
7978 case 1:
7979 return { kind: 2 }
7980 }
7981 }
7982 }
7983 n.UnicodeTextModelHighlighter = L
7984 function h(e, b) {
7985 return `[${i.escapeRegExpCharacters(e.map((v) => String.fromCodePoint(v)).join(''))}]`
7986 }
7987 class a {
7988 constructor(b) {
7989 ;(this.options = b),
7990 (this.allowedCodePoints = new Set(b.allowedCodePoints)),
7991 (this.ambiguousCharacters = i.AmbiguousCharacters.getInstance(
7992 new Set(b.allowedLocales)
7993 ))
7994 }
7995 getCandidateCodePoints() {
7996 if (this.options.nonBasicASCII) return 'allNonBasicAscii'
7997 const b = new Set()
7998 if (this.options.invisibleCharacters)
7999 for (const f of i.InvisibleCharacters.codePoints) w(String.fromCodePoint(f)) || b.add(f)
8000 if (this.options.ambiguousCharacters)
8001 for (const f of this.ambiguousCharacters.getConfusableCodePoints()) b.add(f)
8002 for (const f of this.allowedCodePoints) b.delete(f)
8003 return b
8004 }
8005 shouldHighlightNonBasicASCII(b, f) {
8006 const v = b.codePointAt(0)
8007 if (this.allowedCodePoints.has(v)) return 0
8008 if (this.options.nonBasicASCII) return 1
8009 let g = !1,
8010 S = !1
8011 if (f)
8012 for (const E of f) {
8013 const y = E.codePointAt(0),
8014 _ = i.isBasicASCII(E)
8015 ;(g = g || _),
8016 !_ &&
8017 !this.ambiguousCharacters.isAmbiguous(y) &&
8018 !i.InvisibleCharacters.isInvisibleCharacter(y) &&
8019 (S = !0)
8020 }
8021 return !g && S
8022 ? 0
8023 : this.options.invisibleCharacters &&
8024 !w(b) &&
8025 i.InvisibleCharacters.isInvisibleCharacter(v)
8026 ? 2
8027 : this.options.ambiguousCharacters && this.ambiguousCharacters.isAmbiguous(v)
8028 ? 3
8029 : 0
8030 }
8031 }
8032 function w(e) {
8033 return (
8034 e === ' ' ||
8035 e ===
8036 `
8037` ||
8038 e === ' '
8039 )
8040 }
8041 }),
8042 Q(Y[49], X([0, 1]), function (x, n) {
8043 'use strict'
8044 Object.defineProperty(n, '__esModule', { value: !0 }),
8045 (n.WrappingIndent =
8046 n.TrackedRangeStickiness =
8047 n.TextEditorCursorStyle =
8048 n.TextEditorCursorBlinkingStyle =
8049 n.SymbolTag =
8050 n.SymbolKind =
8051 n.SignatureHelpTriggerKind =
8052 n.SelectionDirection =
8053 n.ScrollbarVisibility =
8054 n.ScrollType =
8055 n.RenderMinimap =
8056 n.RenderLineNumbersType =
8057 n.PositionAffinity =
8058 n.OverviewRulerLane =
8059 n.OverlayWidgetPositionPreference =
8060 n.MouseTargetType =
8061 n.MinimapPosition =
8062 n.MarkerTag =
8063 n.MarkerSeverity =
8064 n.KeyCode =
8065 n.InlineCompletionTriggerKind =
8066 n.InlayHintKind =
8067 n.InjectedTextCursorStops =
8068 n.IndentAction =
8069 n.EndOfLineSequence =
8070 n.EndOfLinePreference =
8071 n.EditorOption =
8072 n.EditorAutoIndentStrategy =
8073 n.DocumentHighlightKind =
8074 n.DefaultEndOfLine =
8075 n.CursorChangeReason =
8076 n.ContentWidgetPositionPreference =
8077 n.CompletionTriggerKind =
8078 n.CompletionItemTag =
8079 n.CompletionItemKind =
8080 n.CompletionItemInsertTextRule =
8081 n.CodeActionTriggerType =
8082 n.AccessibilitySupport =
8083 void 0)
8084 var R
8085 ;(function (t) {
8086 ;(t[(t.Unknown = 0)] = 'Unknown'),
8087 (t[(t.Disabled = 1)] = 'Disabled'),
8088 (t[(t.Enabled = 2)] = 'Enabled')
8089 })((R = n.AccessibilitySupport || (n.AccessibilitySupport = {})))
8090 var D
8091 ;(function (t) {
8092 ;(t[(t.Invoke = 1)] = 'Invoke'), (t[(t.Auto = 2)] = 'Auto')
8093 })((D = n.CodeActionTriggerType || (n.CodeActionTriggerType = {})))
8094 var i
8095 ;(function (t) {
8096 ;(t[(t.None = 0)] = 'None'),
8097 (t[(t.KeepWhitespace = 1)] = 'KeepWhitespace'),
8098 (t[(t.InsertAsSnippet = 4)] = 'InsertAsSnippet')
8099 })((i = n.CompletionItemInsertTextRule || (n.CompletionItemInsertTextRule = {})))
8100 var s
8101 ;(function (t) {
8102 ;(t[(t.Method = 0)] = 'Method'),
8103 (t[(t.Function = 1)] = 'Function'),
8104 (t[(t.Constructor = 2)] = 'Constructor'),
8105 (t[(t.Field = 3)] = 'Field'),
8106 (t[(t.Variable = 4)] = 'Variable'),
8107 (t[(t.Class = 5)] = 'Class'),
8108 (t[(t.Struct = 6)] = 'Struct'),
8109 (t[(t.Interface = 7)] = 'Interface'),
8110 (t[(t.Module = 8)] = 'Module'),
8111 (t[(t.Property = 9)] = 'Property'),
8112 (t[(t.Event = 10)] = 'Event'),
8113 (t[(t.Operator = 11)] = 'Operator'),
8114 (t[(t.Unit = 12)] = 'Unit'),
8115 (t[(t.Value = 13)] = 'Value'),
8116 (t[(t.Constant = 14)] = 'Constant'),
8117 (t[(t.Enum = 15)] = 'Enum'),
8118 (t[(t.EnumMember = 16)] = 'EnumMember'),
8119 (t[(t.Keyword = 17)] = 'Keyword'),
8120 (t[(t.Text = 18)] = 'Text'),
8121 (t[(t.Color = 19)] = 'Color'),
8122 (t[(t.File = 20)] = 'File'),
8123 (t[(t.Reference = 21)] = 'Reference'),
8124 (t[(t.Customcolor = 22)] = 'Customcolor'),
8125 (t[(t.Folder = 23)] = 'Folder'),
8126 (t[(t.TypeParameter = 24)] = 'TypeParameter'),
8127 (t[(t.User = 25)] = 'User'),
8128 (t[(t.Issue = 26)] = 'Issue'),
8129 (t[(t.Snippet = 27)] = 'Snippet')
8130 })((s = n.CompletionItemKind || (n.CompletionItemKind = {})))
8131 var p
8132 ;(function (t) {
8133 t[(t.Deprecated = 1)] = 'Deprecated'
8134 })((p = n.CompletionItemTag || (n.CompletionItemTag = {})))
8135 var L
8136 ;(function (t) {
8137 ;(t[(t.Invoke = 0)] = 'Invoke'),
8138 (t[(t.TriggerCharacter = 1)] = 'TriggerCharacter'),
8139 (t[(t.TriggerForIncompleteCompletions = 2)] = 'TriggerForIncompleteCompletions')
8140 })((L = n.CompletionTriggerKind || (n.CompletionTriggerKind = {})))
8141 var h
8142 ;(function (t) {
8143 ;(t[(t.EXACT = 0)] = 'EXACT'), (t[(t.ABOVE = 1)] = 'ABOVE'), (t[(t.BELOW = 2)] = 'BELOW')
8144 })((h = n.ContentWidgetPositionPreference || (n.ContentWidgetPositionPreference = {})))
8145 var a
8146 ;(function (t) {
8147 ;(t[(t.NotSet = 0)] = 'NotSet'),
8148 (t[(t.ContentFlush = 1)] = 'ContentFlush'),
8149 (t[(t.RecoverFromMarkers = 2)] = 'RecoverFromMarkers'),
8150 (t[(t.Explicit = 3)] = 'Explicit'),
8151 (t[(t.Paste = 4)] = 'Paste'),
8152 (t[(t.Undo = 5)] = 'Undo'),
8153 (t[(t.Redo = 6)] = 'Redo')
8154 })((a = n.CursorChangeReason || (n.CursorChangeReason = {})))
8155 var w
8156 ;(function (t) {
8157 ;(t[(t.LF = 1)] = 'LF'), (t[(t.CRLF = 2)] = 'CRLF')
8158 })((w = n.DefaultEndOfLine || (n.DefaultEndOfLine = {})))
8159 var e
8160 ;(function (t) {
8161 ;(t[(t.Text = 0)] = 'Text'), (t[(t.Read = 1)] = 'Read'), (t[(t.Write = 2)] = 'Write')
8162 })((e = n.DocumentHighlightKind || (n.DocumentHighlightKind = {})))
8163 var b
8164 ;(function (t) {
8165 ;(t[(t.None = 0)] = 'None'),
8166 (t[(t.Keep = 1)] = 'Keep'),
8167 (t[(t.Brackets = 2)] = 'Brackets'),
8168 (t[(t.Advanced = 3)] = 'Advanced'),
8169 (t[(t.Full = 4)] = 'Full')
8170 })((b = n.EditorAutoIndentStrategy || (n.EditorAutoIndentStrategy = {})))
8171 var f
8172 ;(function (t) {
8173 ;(t[(t.acceptSuggestionOnCommitCharacter = 0)] = 'acceptSuggestionOnCommitCharacter'),
8174 (t[(t.acceptSuggestionOnEnter = 1)] = 'acceptSuggestionOnEnter'),
8175 (t[(t.accessibilitySupport = 2)] = 'accessibilitySupport'),
8176 (t[(t.accessibilityPageSize = 3)] = 'accessibilityPageSize'),
8177 (t[(t.ariaLabel = 4)] = 'ariaLabel'),
8178 (t[(t.autoClosingBrackets = 5)] = 'autoClosingBrackets'),
8179 (t[(t.screenReaderAnnounceInlineSuggestion = 6)] =
8180 'screenReaderAnnounceInlineSuggestion'),
8181 (t[(t.autoClosingDelete = 7)] = 'autoClosingDelete'),
8182 (t[(t.autoClosingOvertype = 8)] = 'autoClosingOvertype'),
8183 (t[(t.autoClosingQuotes = 9)] = 'autoClosingQuotes'),
8184 (t[(t.autoIndent = 10)] = 'autoIndent'),
8185 (t[(t.automaticLayout = 11)] = 'automaticLayout'),
8186 (t[(t.autoSurround = 12)] = 'autoSurround'),
8187 (t[(t.bracketPairColorization = 13)] = 'bracketPairColorization'),
8188 (t[(t.guides = 14)] = 'guides'),
8189 (t[(t.codeLens = 15)] = 'codeLens'),
8190 (t[(t.codeLensFontFamily = 16)] = 'codeLensFontFamily'),
8191 (t[(t.codeLensFontSize = 17)] = 'codeLensFontSize'),
8192 (t[(t.colorDecorators = 18)] = 'colorDecorators'),
8193 (t[(t.colorDecoratorsLimit = 19)] = 'colorDecoratorsLimit'),
8194 (t[(t.columnSelection = 20)] = 'columnSelection'),
8195 (t[(t.comments = 21)] = 'comments'),
8196 (t[(t.contextmenu = 22)] = 'contextmenu'),
8197 (t[(t.copyWithSyntaxHighlighting = 23)] = 'copyWithSyntaxHighlighting'),
8198 (t[(t.cursorBlinking = 24)] = 'cursorBlinking'),
8199 (t[(t.cursorSmoothCaretAnimation = 25)] = 'cursorSmoothCaretAnimation'),
8200 (t[(t.cursorStyle = 26)] = 'cursorStyle'),
8201 (t[(t.cursorSurroundingLines = 27)] = 'cursorSurroundingLines'),
8202 (t[(t.cursorSurroundingLinesStyle = 28)] = 'cursorSurroundingLinesStyle'),
8203 (t[(t.cursorWidth = 29)] = 'cursorWidth'),
8204 (t[(t.disableLayerHinting = 30)] = 'disableLayerHinting'),
8205 (t[(t.disableMonospaceOptimizations = 31)] = 'disableMonospaceOptimizations'),
8206 (t[(t.domReadOnly = 32)] = 'domReadOnly'),
8207 (t[(t.dragAndDrop = 33)] = 'dragAndDrop'),
8208 (t[(t.dropIntoEditor = 34)] = 'dropIntoEditor'),
8209 (t[(t.emptySelectionClipboard = 35)] = 'emptySelectionClipboard'),
8210 (t[(t.experimentalWhitespaceRendering = 36)] = 'experimentalWhitespaceRendering'),
8211 (t[(t.extraEditorClassName = 37)] = 'extraEditorClassName'),
8212 (t[(t.fastScrollSensitivity = 38)] = 'fastScrollSensitivity'),
8213 (t[(t.find = 39)] = 'find'),
8214 (t[(t.fixedOverflowWidgets = 40)] = 'fixedOverflowWidgets'),
8215 (t[(t.folding = 41)] = 'folding'),
8216 (t[(t.foldingStrategy = 42)] = 'foldingStrategy'),
8217 (t[(t.foldingHighlight = 43)] = 'foldingHighlight'),
8218 (t[(t.foldingImportsByDefault = 44)] = 'foldingImportsByDefault'),
8219 (t[(t.foldingMaximumRegions = 45)] = 'foldingMaximumRegions'),
8220 (t[(t.unfoldOnClickAfterEndOfLine = 46)] = 'unfoldOnClickAfterEndOfLine'),
8221 (t[(t.fontFamily = 47)] = 'fontFamily'),
8222 (t[(t.fontInfo = 48)] = 'fontInfo'),
8223 (t[(t.fontLigatures = 49)] = 'fontLigatures'),
8224 (t[(t.fontSize = 50)] = 'fontSize'),
8225 (t[(t.fontWeight = 51)] = 'fontWeight'),
8226 (t[(t.fontVariations = 52)] = 'fontVariations'),
8227 (t[(t.formatOnPaste = 53)] = 'formatOnPaste'),
8228 (t[(t.formatOnType = 54)] = 'formatOnType'),
8229 (t[(t.glyphMargin = 55)] = 'glyphMargin'),
8230 (t[(t.gotoLocation = 56)] = 'gotoLocation'),
8231 (t[(t.hideCursorInOverviewRuler = 57)] = 'hideCursorInOverviewRuler'),
8232 (t[(t.hover = 58)] = 'hover'),
8233 (t[(t.inDiffEditor = 59)] = 'inDiffEditor'),
8234 (t[(t.inlineSuggest = 60)] = 'inlineSuggest'),
8235 (t[(t.letterSpacing = 61)] = 'letterSpacing'),
8236 (t[(t.lightbulb = 62)] = 'lightbulb'),
8237 (t[(t.lineDecorationsWidth = 63)] = 'lineDecorationsWidth'),
8238 (t[(t.lineHeight = 64)] = 'lineHeight'),
8239 (t[(t.lineNumbers = 65)] = 'lineNumbers'),
8240 (t[(t.lineNumbersMinChars = 66)] = 'lineNumbersMinChars'),
8241 (t[(t.linkedEditing = 67)] = 'linkedEditing'),
8242 (t[(t.links = 68)] = 'links'),
8243 (t[(t.matchBrackets = 69)] = 'matchBrackets'),
8244 (t[(t.minimap = 70)] = 'minimap'),
8245 (t[(t.mouseStyle = 71)] = 'mouseStyle'),
8246 (t[(t.mouseWheelScrollSensitivity = 72)] = 'mouseWheelScrollSensitivity'),
8247 (t[(t.mouseWheelZoom = 73)] = 'mouseWheelZoom'),
8248 (t[(t.multiCursorMergeOverlapping = 74)] = 'multiCursorMergeOverlapping'),
8249 (t[(t.multiCursorModifier = 75)] = 'multiCursorModifier'),
8250 (t[(t.multiCursorPaste = 76)] = 'multiCursorPaste'),
8251 (t[(t.multiCursorLimit = 77)] = 'multiCursorLimit'),
8252 (t[(t.occurrencesHighlight = 78)] = 'occurrencesHighlight'),
8253 (t[(t.overviewRulerBorder = 79)] = 'overviewRulerBorder'),
8254 (t[(t.overviewRulerLanes = 80)] = 'overviewRulerLanes'),
8255 (t[(t.padding = 81)] = 'padding'),
8256 (t[(t.parameterHints = 82)] = 'parameterHints'),
8257 (t[(t.peekWidgetDefaultFocus = 83)] = 'peekWidgetDefaultFocus'),
8258 (t[(t.definitionLinkOpensInPeek = 84)] = 'definitionLinkOpensInPeek'),
8259 (t[(t.quickSuggestions = 85)] = 'quickSuggestions'),
8260 (t[(t.quickSuggestionsDelay = 86)] = 'quickSuggestionsDelay'),
8261 (t[(t.readOnly = 87)] = 'readOnly'),
8262 (t[(t.renameOnType = 88)] = 'renameOnType'),
8263 (t[(t.renderControlCharacters = 89)] = 'renderControlCharacters'),
8264 (t[(t.renderFinalNewline = 90)] = 'renderFinalNewline'),
8265 (t[(t.renderLineHighlight = 91)] = 'renderLineHighlight'),
8266 (t[(t.renderLineHighlightOnlyWhenFocus = 92)] = 'renderLineHighlightOnlyWhenFocus'),
8267 (t[(t.renderValidationDecorations = 93)] = 'renderValidationDecorations'),
8268 (t[(t.renderWhitespace = 94)] = 'renderWhitespace'),
8269 (t[(t.revealHorizontalRightPadding = 95)] = 'revealHorizontalRightPadding'),
8270 (t[(t.roundedSelection = 96)] = 'roundedSelection'),
8271 (t[(t.rulers = 97)] = 'rulers'),
8272 (t[(t.scrollbar = 98)] = 'scrollbar'),
8273 (t[(t.scrollBeyondLastColumn = 99)] = 'scrollBeyondLastColumn'),
8274 (t[(t.scrollBeyondLastLine = 100)] = 'scrollBeyondLastLine'),
8275 (t[(t.scrollPredominantAxis = 101)] = 'scrollPredominantAxis'),
8276 (t[(t.selectionClipboard = 102)] = 'selectionClipboard'),
8277 (t[(t.selectionHighlight = 103)] = 'selectionHighlight'),
8278 (t[(t.selectOnLineNumbers = 104)] = 'selectOnLineNumbers'),
8279 (t[(t.showFoldingControls = 105)] = 'showFoldingControls'),
8280 (t[(t.showUnused = 106)] = 'showUnused'),
8281 (t[(t.snippetSuggestions = 107)] = 'snippetSuggestions'),
8282 (t[(t.smartSelect = 108)] = 'smartSelect'),
8283 (t[(t.smoothScrolling = 109)] = 'smoothScrolling'),
8284 (t[(t.stickyScroll = 110)] = 'stickyScroll'),
8285 (t[(t.stickyTabStops = 111)] = 'stickyTabStops'),
8286 (t[(t.stopRenderingLineAfter = 112)] = 'stopRenderingLineAfter'),
8287 (t[(t.suggest = 113)] = 'suggest'),
8288 (t[(t.suggestFontSize = 114)] = 'suggestFontSize'),
8289 (t[(t.suggestLineHeight = 115)] = 'suggestLineHeight'),
8290 (t[(t.suggestOnTriggerCharacters = 116)] = 'suggestOnTriggerCharacters'),
8291 (t[(t.suggestSelection = 117)] = 'suggestSelection'),
8292 (t[(t.tabCompletion = 118)] = 'tabCompletion'),
8293 (t[(t.tabIndex = 119)] = 'tabIndex'),
8294 (t[(t.unicodeHighlighting = 120)] = 'unicodeHighlighting'),
8295 (t[(t.unusualLineTerminators = 121)] = 'unusualLineTerminators'),
8296 (t[(t.useShadowDOM = 122)] = 'useShadowDOM'),
8297 (t[(t.useTabStops = 123)] = 'useTabStops'),
8298 (t[(t.wordBreak = 124)] = 'wordBreak'),
8299 (t[(t.wordSeparators = 125)] = 'wordSeparators'),
8300 (t[(t.wordWrap = 126)] = 'wordWrap'),
8301 (t[(t.wordWrapBreakAfterCharacters = 127)] = 'wordWrapBreakAfterCharacters'),
8302 (t[(t.wordWrapBreakBeforeCharacters = 128)] = 'wordWrapBreakBeforeCharacters'),
8303 (t[(t.wordWrapColumn = 129)] = 'wordWrapColumn'),
8304 (t[(t.wordWrapOverride1 = 130)] = 'wordWrapOverride1'),
8305 (t[(t.wordWrapOverride2 = 131)] = 'wordWrapOverride2'),
8306 (t[(t.wrappingIndent = 132)] = 'wrappingIndent'),
8307 (t[(t.wrappingStrategy = 133)] = 'wrappingStrategy'),
8308 (t[(t.showDeprecated = 134)] = 'showDeprecated'),
8309 (t[(t.inlayHints = 135)] = 'inlayHints'),
8310 (t[(t.editorClassName = 136)] = 'editorClassName'),
8311 (t[(t.pixelRatio = 137)] = 'pixelRatio'),
8312 (t[(t.tabFocusMode = 138)] = 'tabFocusMode'),
8313 (t[(t.layoutInfo = 139)] = 'layoutInfo'),
8314 (t[(t.wrappingInfo = 140)] = 'wrappingInfo')
8315 })((f = n.EditorOption || (n.EditorOption = {})))
8316 var v
8317 ;(function (t) {
8318 ;(t[(t.TextDefined = 0)] = 'TextDefined'),
8319 (t[(t.LF = 1)] = 'LF'),
8320 (t[(t.CRLF = 2)] = 'CRLF')
8321 })((v = n.EndOfLinePreference || (n.EndOfLinePreference = {})))
8322 var g
8323 ;(function (t) {
8324 ;(t[(t.LF = 0)] = 'LF'), (t[(t.CRLF = 1)] = 'CRLF')
8325 })((g = n.EndOfLineSequence || (n.EndOfLineSequence = {})))
8326 var S
8327 ;(function (t) {
8328 ;(t[(t.None = 0)] = 'None'),
8329 (t[(t.Indent = 1)] = 'Indent'),
8330 (t[(t.IndentOutdent = 2)] = 'IndentOutdent'),
8331 (t[(t.Outdent = 3)] = 'Outdent')
8332 })((S = n.IndentAction || (n.IndentAction = {})))
8333 var E
8334 ;(function (t) {
8335 ;(t[(t.Both = 0)] = 'Both'),
8336 (t[(t.Right = 1)] = 'Right'),
8337 (t[(t.Left = 2)] = 'Left'),
8338 (t[(t.None = 3)] = 'None')
8339 })((E = n.InjectedTextCursorStops || (n.InjectedTextCursorStops = {})))
8340 var y
8341 ;(function (t) {
8342 ;(t[(t.Type = 1)] = 'Type'), (t[(t.Parameter = 2)] = 'Parameter')
8343 })((y = n.InlayHintKind || (n.InlayHintKind = {})))
8344 var _
8345 ;(function (t) {
8346 ;(t[(t.Automatic = 0)] = 'Automatic'), (t[(t.Explicit = 1)] = 'Explicit')
8347 })((_ = n.InlineCompletionTriggerKind || (n.InlineCompletionTriggerKind = {})))
8348 var d
8349 ;(function (t) {
8350 ;(t[(t.DependsOnKbLayout = -1)] = 'DependsOnKbLayout'),
8351 (t[(t.Unknown = 0)] = 'Unknown'),
8352 (t[(t.Backspace = 1)] = 'Backspace'),
8353 (t[(t.Tab = 2)] = 'Tab'),
8354 (t[(t.Enter = 3)] = 'Enter'),
8355 (t[(t.Shift = 4)] = 'Shift'),
8356 (t[(t.Ctrl = 5)] = 'Ctrl'),
8357 (t[(t.Alt = 6)] = 'Alt'),
8358 (t[(t.PauseBreak = 7)] = 'PauseBreak'),
8359 (t[(t.CapsLock = 8)] = 'CapsLock'),
8360 (t[(t.Escape = 9)] = 'Escape'),
8361 (t[(t.Space = 10)] = 'Space'),
8362 (t[(t.PageUp = 11)] = 'PageUp'),
8363 (t[(t.PageDown = 12)] = 'PageDown'),
8364 (t[(t.End = 13)] = 'End'),
8365 (t[(t.Home = 14)] = 'Home'),
8366 (t[(t.LeftArrow = 15)] = 'LeftArrow'),
8367 (t[(t.UpArrow = 16)] = 'UpArrow'),
8368 (t[(t.RightArrow = 17)] = 'RightArrow'),
8369 (t[(t.DownArrow = 18)] = 'DownArrow'),
8370 (t[(t.Insert = 19)] = 'Insert'),
8371 (t[(t.Delete = 20)] = 'Delete'),
8372 (t[(t.Digit0 = 21)] = 'Digit0'),
8373 (t[(t.Digit1 = 22)] = 'Digit1'),
8374 (t[(t.Digit2 = 23)] = 'Digit2'),
8375 (t[(t.Digit3 = 24)] = 'Digit3'),
8376 (t[(t.Digit4 = 25)] = 'Digit4'),
8377 (t[(t.Digit5 = 26)] = 'Digit5'),
8378 (t[(t.Digit6 = 27)] = 'Digit6'),
8379 (t[(t.Digit7 = 28)] = 'Digit7'),
8380 (t[(t.Digit8 = 29)] = 'Digit8'),
8381 (t[(t.Digit9 = 30)] = 'Digit9'),
8382 (t[(t.KeyA = 31)] = 'KeyA'),
8383 (t[(t.KeyB = 32)] = 'KeyB'),
8384 (t[(t.KeyC = 33)] = 'KeyC'),
8385 (t[(t.KeyD = 34)] = 'KeyD'),
8386 (t[(t.KeyE = 35)] = 'KeyE'),
8387 (t[(t.KeyF = 36)] = 'KeyF'),
8388 (t[(t.KeyG = 37)] = 'KeyG'),
8389 (t[(t.KeyH = 38)] = 'KeyH'),
8390 (t[(t.KeyI = 39)] = 'KeyI'),
8391 (t[(t.KeyJ = 40)] = 'KeyJ'),
8392 (t[(t.KeyK = 41)] = 'KeyK'),
8393 (t[(t.KeyL = 42)] = 'KeyL'),
8394 (t[(t.KeyM = 43)] = 'KeyM'),
8395 (t[(t.KeyN = 44)] = 'KeyN'),
8396 (t[(t.KeyO = 45)] = 'KeyO'),
8397 (t[(t.KeyP = 46)] = 'KeyP'),
8398 (t[(t.KeyQ = 47)] = 'KeyQ'),
8399 (t[(t.KeyR = 48)] = 'KeyR'),
8400 (t[(t.KeyS = 49)] = 'KeyS'),
8401 (t[(t.KeyT = 50)] = 'KeyT'),
8402 (t[(t.KeyU = 51)] = 'KeyU'),
8403 (t[(t.KeyV = 52)] = 'KeyV'),
8404 (t[(t.KeyW = 53)] = 'KeyW'),
8405 (t[(t.KeyX = 54)] = 'KeyX'),
8406 (t[(t.KeyY = 55)] = 'KeyY'),
8407 (t[(t.KeyZ = 56)] = 'KeyZ'),
8408 (t[(t.Meta = 57)] = 'Meta'),
8409 (t[(t.ContextMenu = 58)] = 'ContextMenu'),
8410 (t[(t.F1 = 59)] = 'F1'),
8411 (t[(t.F2 = 60)] = 'F2'),
8412 (t[(t.F3 = 61)] = 'F3'),
8413 (t[(t.F4 = 62)] = 'F4'),
8414 (t[(t.F5 = 63)] = 'F5'),
8415 (t[(t.F6 = 64)] = 'F6'),
8416 (t[(t.F7 = 65)] = 'F7'),
8417 (t[(t.F8 = 66)] = 'F8'),
8418 (t[(t.F9 = 67)] = 'F9'),
8419 (t[(t.F10 = 68)] = 'F10'),
8420 (t[(t.F11 = 69)] = 'F11'),
8421 (t[(t.F12 = 70)] = 'F12'),
8422 (t[(t.F13 = 71)] = 'F13'),
8423 (t[(t.F14 = 72)] = 'F14'),
8424 (t[(t.F15 = 73)] = 'F15'),
8425 (t[(t.F16 = 74)] = 'F16'),
8426 (t[(t.F17 = 75)] = 'F17'),
8427 (t[(t.F18 = 76)] = 'F18'),
8428 (t[(t.F19 = 77)] = 'F19'),
8429 (t[(t.NumLock = 78)] = 'NumLock'),
8430 (t[(t.ScrollLock = 79)] = 'ScrollLock'),
8431 (t[(t.Semicolon = 80)] = 'Semicolon'),
8432 (t[(t.Equal = 81)] = 'Equal'),
8433 (t[(t.Comma = 82)] = 'Comma'),
8434 (t[(t.Minus = 83)] = 'Minus'),
8435 (t[(t.Period = 84)] = 'Period'),
8436 (t[(t.Slash = 85)] = 'Slash'),
8437 (t[(t.Backquote = 86)] = 'Backquote'),
8438 (t[(t.BracketLeft = 87)] = 'BracketLeft'),
8439 (t[(t.Backslash = 88)] = 'Backslash'),
8440 (t[(t.BracketRight = 89)] = 'BracketRight'),
8441 (t[(t.Quote = 90)] = 'Quote'),
8442 (t[(t.OEM_8 = 91)] = 'OEM_8'),
8443 (t[(t.IntlBackslash = 92)] = 'IntlBackslash'),
8444 (t[(t.Numpad0 = 93)] = 'Numpad0'),
8445 (t[(t.Numpad1 = 94)] = 'Numpad1'),
8446 (t[(t.Numpad2 = 95)] = 'Numpad2'),
8447 (t[(t.Numpad3 = 96)] = 'Numpad3'),
8448 (t[(t.Numpad4 = 97)] = 'Numpad4'),
8449 (t[(t.Numpad5 = 98)] = 'Numpad5'),
8450 (t[(t.Numpad6 = 99)] = 'Numpad6'),
8451 (t[(t.Numpad7 = 100)] = 'Numpad7'),
8452 (t[(t.Numpad8 = 101)] = 'Numpad8'),
8453 (t[(t.Numpad9 = 102)] = 'Numpad9'),
8454 (t[(t.NumpadMultiply = 103)] = 'NumpadMultiply'),
8455 (t[(t.NumpadAdd = 104)] = 'NumpadAdd'),
8456 (t[(t.NUMPAD_SEPARATOR = 105)] = 'NUMPAD_SEPARATOR'),
8457 (t[(t.NumpadSubtract = 106)] = 'NumpadSubtract'),
8458 (t[(t.NumpadDecimal = 107)] = 'NumpadDecimal'),
8459 (t[(t.NumpadDivide = 108)] = 'NumpadDivide'),
8460 (t[(t.KEY_IN_COMPOSITION = 109)] = 'KEY_IN_COMPOSITION'),
8461 (t[(t.ABNT_C1 = 110)] = 'ABNT_C1'),
8462 (t[(t.ABNT_C2 = 111)] = 'ABNT_C2'),
8463 (t[(t.AudioVolumeMute = 112)] = 'AudioVolumeMute'),
8464 (t[(t.AudioVolumeUp = 113)] = 'AudioVolumeUp'),
8465 (t[(t.AudioVolumeDown = 114)] = 'AudioVolumeDown'),
8466 (t[(t.BrowserSearch = 115)] = 'BrowserSearch'),
8467 (t[(t.BrowserHome = 116)] = 'BrowserHome'),
8468 (t[(t.BrowserBack = 117)] = 'BrowserBack'),
8469 (t[(t.BrowserForward = 118)] = 'BrowserForward'),
8470 (t[(t.MediaTrackNext = 119)] = 'MediaTrackNext'),
8471 (t[(t.MediaTrackPrevious = 120)] = 'MediaTrackPrevious'),
8472 (t[(t.MediaStop = 121)] = 'MediaStop'),
8473 (t[(t.MediaPlayPause = 122)] = 'MediaPlayPause'),
8474 (t[(t.LaunchMediaPlayer = 123)] = 'LaunchMediaPlayer'),
8475 (t[(t.LaunchMail = 124)] = 'LaunchMail'),
8476 (t[(t.LaunchApp2 = 125)] = 'LaunchApp2'),
8477 (t[(t.Clear = 126)] = 'Clear'),
8478 (t[(t.MAX_VALUE = 127)] = 'MAX_VALUE')
8479 })((d = n.KeyCode || (n.KeyCode = {})))
8480 var C
8481 ;(function (t) {
8482 ;(t[(t.Hint = 1)] = 'Hint'),
8483 (t[(t.Info = 2)] = 'Info'),
8484 (t[(t.Warning = 4)] = 'Warning'),
8485 (t[(t.Error = 8)] = 'Error')
8486 })((C = n.MarkerSeverity || (n.MarkerSeverity = {})))
8487 var r
8488 ;(function (t) {
8489 ;(t[(t.Unnecessary = 1)] = 'Unnecessary'), (t[(t.Deprecated = 2)] = 'Deprecated')
8490 })((r = n.MarkerTag || (n.MarkerTag = {})))
8491 var u
8492 ;(function (t) {
8493 ;(t[(t.Inline = 1)] = 'Inline'), (t[(t.Gutter = 2)] = 'Gutter')
8494 })((u = n.MinimapPosition || (n.MinimapPosition = {})))
8495 var o
8496 ;(function (t) {
8497 ;(t[(t.UNKNOWN = 0)] = 'UNKNOWN'),
8498 (t[(t.TEXTAREA = 1)] = 'TEXTAREA'),
8499 (t[(t.GUTTER_GLYPH_MARGIN = 2)] = 'GUTTER_GLYPH_MARGIN'),
8500 (t[(t.GUTTER_LINE_NUMBERS = 3)] = 'GUTTER_LINE_NUMBERS'),
8501 (t[(t.GUTTER_LINE_DECORATIONS = 4)] = 'GUTTER_LINE_DECORATIONS'),
8502 (t[(t.GUTTER_VIEW_ZONE = 5)] = 'GUTTER_VIEW_ZONE'),
8503 (t[(t.CONTENT_TEXT = 6)] = 'CONTENT_TEXT'),
8504 (t[(t.CONTENT_EMPTY = 7)] = 'CONTENT_EMPTY'),
8505 (t[(t.CONTENT_VIEW_ZONE = 8)] = 'CONTENT_VIEW_ZONE'),
8506 (t[(t.CONTENT_WIDGET = 9)] = 'CONTENT_WIDGET'),
8507 (t[(t.OVERVIEW_RULER = 10)] = 'OVERVIEW_RULER'),
8508 (t[(t.SCROLLBAR = 11)] = 'SCROLLBAR'),
8509 (t[(t.OVERLAY_WIDGET = 12)] = 'OVERLAY_WIDGET'),
8510 (t[(t.OUTSIDE_EDITOR = 13)] = 'OUTSIDE_EDITOR')
8511 })((o = n.MouseTargetType || (n.MouseTargetType = {})))
8512 var c
8513 ;(function (t) {
8514 ;(t[(t.TOP_RIGHT_CORNER = 0)] = 'TOP_RIGHT_CORNER'),
8515 (t[(t.BOTTOM_RIGHT_CORNER = 1)] = 'BOTTOM_RIGHT_CORNER'),
8516 (t[(t.TOP_CENTER = 2)] = 'TOP_CENTER')
8517 })((c = n.OverlayWidgetPositionPreference || (n.OverlayWidgetPositionPreference = {})))
8518 var l
8519 ;(function (t) {
8520 ;(t[(t.Left = 1)] = 'Left'),
8521 (t[(t.Center = 2)] = 'Center'),
8522 (t[(t.Right = 4)] = 'Right'),
8523 (t[(t.Full = 7)] = 'Full')
8524 })((l = n.OverviewRulerLane || (n.OverviewRulerLane = {})))
8525 var m
8526 ;(function (t) {
8527 ;(t[(t.Left = 0)] = 'Left'),
8528 (t[(t.Right = 1)] = 'Right'),
8529 (t[(t.None = 2)] = 'None'),
8530 (t[(t.LeftOfInjectedText = 3)] = 'LeftOfInjectedText'),
8531 (t[(t.RightOfInjectedText = 4)] = 'RightOfInjectedText')
8532 })((m = n.PositionAffinity || (n.PositionAffinity = {})))
8533 var N
8534 ;(function (t) {
8535 ;(t[(t.Off = 0)] = 'Off'),
8536 (t[(t.On = 1)] = 'On'),
8537 (t[(t.Relative = 2)] = 'Relative'),
8538 (t[(t.Interval = 3)] = 'Interval'),
8539 (t[(t.Custom = 4)] = 'Custom')
8540 })((N = n.RenderLineNumbersType || (n.RenderLineNumbersType = {})))
8541 var A
8542 ;(function (t) {
8543 ;(t[(t.None = 0)] = 'None'), (t[(t.Text = 1)] = 'Text'), (t[(t.Blocks = 2)] = 'Blocks')
8544 })((A = n.RenderMinimap || (n.RenderMinimap = {})))
8545 var M
8546 ;(function (t) {
8547 ;(t[(t.Smooth = 0)] = 'Smooth'), (t[(t.Immediate = 1)] = 'Immediate')
8548 })((M = n.ScrollType || (n.ScrollType = {})))
8549 var k
8550 ;(function (t) {
8551 ;(t[(t.Auto = 1)] = 'Auto'),
8552 (t[(t.Hidden = 2)] = 'Hidden'),
8553 (t[(t.Visible = 3)] = 'Visible')
8554 })((k = n.ScrollbarVisibility || (n.ScrollbarVisibility = {})))
8555 var q
8556 ;(function (t) {
8557 ;(t[(t.LTR = 0)] = 'LTR'), (t[(t.RTL = 1)] = 'RTL')
8558 })((q = n.SelectionDirection || (n.SelectionDirection = {})))
8559 var I
8560 ;(function (t) {
8561 ;(t[(t.Invoke = 1)] = 'Invoke'),
8562 (t[(t.TriggerCharacter = 2)] = 'TriggerCharacter'),
8563 (t[(t.ContentChange = 3)] = 'ContentChange')
8564 })((I = n.SignatureHelpTriggerKind || (n.SignatureHelpTriggerKind = {})))
8565 var B
8566 ;(function (t) {
8567 ;(t[(t.File = 0)] = 'File'),
8568 (t[(t.Module = 1)] = 'Module'),
8569 (t[(t.Namespace = 2)] = 'Namespace'),
8570 (t[(t.Package = 3)] = 'Package'),
8571 (t[(t.Class = 4)] = 'Class'),
8572 (t[(t.Method = 5)] = 'Method'),
8573 (t[(t.Property = 6)] = 'Property'),
8574 (t[(t.Field = 7)] = 'Field'),
8575 (t[(t.Constructor = 8)] = 'Constructor'),
8576 (t[(t.Enum = 9)] = 'Enum'),
8577 (t[(t.Interface = 10)] = 'Interface'),
8578 (t[(t.Function = 11)] = 'Function'),
8579 (t[(t.Variable = 12)] = 'Variable'),
8580 (t[(t.Constant = 13)] = 'Constant'),
8581 (t[(t.String = 14)] = 'String'),
8582 (t[(t.Number = 15)] = 'Number'),
8583 (t[(t.Boolean = 16)] = 'Boolean'),
8584 (t[(t.Array = 17)] = 'Array'),
8585 (t[(t.Object = 18)] = 'Object'),
8586 (t[(t.Key = 19)] = 'Key'),
8587 (t[(t.Null = 20)] = 'Null'),
8588 (t[(t.EnumMember = 21)] = 'EnumMember'),
8589 (t[(t.Struct = 22)] = 'Struct'),
8590 (t[(t.Event = 23)] = 'Event'),
8591 (t[(t.Operator = 24)] = 'Operator'),
8592 (t[(t.TypeParameter = 25)] = 'TypeParameter')
8593 })((B = n.SymbolKind || (n.SymbolKind = {})))
8594 var H
8595 ;(function (t) {
8596 t[(t.Deprecated = 1)] = 'Deprecated'
8597 })((H = n.SymbolTag || (n.SymbolTag = {})))
8598 var F
8599 ;(function (t) {
8600 ;(t[(t.Hidden = 0)] = 'Hidden'),
8601 (t[(t.Blink = 1)] = 'Blink'),
8602 (t[(t.Smooth = 2)] = 'Smooth'),
8603 (t[(t.Phase = 3)] = 'Phase'),
8604 (t[(t.Expand = 4)] = 'Expand'),
8605 (t[(t.Solid = 5)] = 'Solid')
8606 })((F = n.TextEditorCursorBlinkingStyle || (n.TextEditorCursorBlinkingStyle = {})))
8607 var U
8608 ;(function (t) {
8609 ;(t[(t.Line = 1)] = 'Line'),
8610 (t[(t.Block = 2)] = 'Block'),
8611 (t[(t.Underline = 3)] = 'Underline'),
8612 (t[(t.LineThin = 4)] = 'LineThin'),
8613 (t[(t.BlockOutline = 5)] = 'BlockOutline'),
8614 (t[(t.UnderlineThin = 6)] = 'UnderlineThin')
8615 })((U = n.TextEditorCursorStyle || (n.TextEditorCursorStyle = {})))
8616 var T
8617 ;(function (t) {
8618 ;(t[(t.AlwaysGrowsWhenTypingAtEdges = 0)] = 'AlwaysGrowsWhenTypingAtEdges'),
8619 (t[(t.NeverGrowsWhenTypingAtEdges = 1)] = 'NeverGrowsWhenTypingAtEdges'),
8620 (t[(t.GrowsOnlyWhenTypingBefore = 2)] = 'GrowsOnlyWhenTypingBefore'),
8621 (t[(t.GrowsOnlyWhenTypingAfter = 3)] = 'GrowsOnlyWhenTypingAfter')
8622 })((T = n.TrackedRangeStickiness || (n.TrackedRangeStickiness = {})))
8623 var W
8624 ;(function (t) {
8625 ;(t[(t.None = 0)] = 'None'),
8626 (t[(t.Same = 1)] = 'Same'),
8627 (t[(t.Indent = 2)] = 'Indent'),
8628 (t[(t.DeepIndent = 3)] = 'DeepIndent')
8629 })((W = n.WrappingIndent || (n.WrappingIndent = {})))
8630 }),
8631 Q(Y[50], X([25, 57]), function (x, n) {
8632 return x.create('vs/base/common/platform', n)
8633 }),
8634 Q(Y[8], X([0, 1, 50]), function (x, n, R) {
8635 'use strict'
8636 var D
8637 Object.defineProperty(n, '__esModule', { value: !0 }),
8638 (n.isAndroid =
8639 n.isEdge =
8640 n.isSafari =
8641 n.isFirefox =
8642 n.isChrome =
8643 n.isLittleEndian =
8644 n.OS =
8645 n.setTimeout0 =
8646 n.setTimeout0IsFaster =
8647 n.language =
8648 n.userAgent =
8649 n.isMobile =
8650 n.isIOS =
8651 n.isWebWorker =
8652 n.isWeb =
8653 n.isNative =
8654 n.isLinux =
8655 n.isMacintosh =
8656 n.isWindows =
8657 n.globals =
8658 n.LANGUAGE_DEFAULT =
8659 void 0),
8660 (n.LANGUAGE_DEFAULT = 'en')
8661 let i = !1,
8662 s = !1,
8663 p = !1,
8664 L = !1,
8665 h = !1,
8666 a = !1,
8667 w = !1,
8668 e = !1,
8669 b = !1,
8670 f = !1,
8671 v,
8672 g = n.LANGUAGE_DEFAULT,
8673 S = n.LANGUAGE_DEFAULT,
8674 E,
8675 y
8676 n.globals = typeof self == 'object' ? self : typeof global == 'object' ? global : {}
8677 let _
8678 typeof n.globals.vscode < 'u' && typeof n.globals.vscode.process < 'u'
8679 ? (_ = n.globals.vscode.process)
8680 : typeof process < 'u' && (_ = process)
8681 const d =
8682 typeof ((D = _?.versions) === null || D === void 0 ? void 0 : D.electron) == 'string',
8683 C = d && _?.type === 'renderer'
8684 if (typeof navigator == 'object' && !C)
8685 (y = navigator.userAgent),
8686 (i = y.indexOf('Windows') >= 0),
8687 (s = y.indexOf('Macintosh') >= 0),
8688 (e =
8689 (y.indexOf('Macintosh') >= 0 || y.indexOf('iPad') >= 0 || y.indexOf('iPhone') >= 0) &&
8690 !!navigator.maxTouchPoints &&
8691 navigator.maxTouchPoints > 0),
8692 (p = y.indexOf('Linux') >= 0),
8693 (f = y?.indexOf('Mobi') >= 0),
8694 (a = !0),
8695 (v = R.getConfiguredDefaultLocale(R.localize(0, null)) || n.LANGUAGE_DEFAULT),
8696 (g = v),
8697 (S = navigator.language)
8698 else if (typeof _ == 'object') {
8699 ;(i = _.platform === 'win32'),
8700 (s = _.platform === 'darwin'),
8701 (p = _.platform === 'linux'),
8702 (L = p && !!_.env.SNAP && !!_.env.SNAP_REVISION),
8703 (w = d),
8704 (b = !!_.env.CI || !!_.env.BUILD_ARTIFACTSTAGINGDIRECTORY),
8705 (v = n.LANGUAGE_DEFAULT),
8706 (g = n.LANGUAGE_DEFAULT)
8707 const l = _.env.VSCODE_NLS_CONFIG
8708 if (l)
8709 try {
8710 const m = JSON.parse(l),
8711 N = m.availableLanguages['*']
8712 ;(v = m.locale),
8713 (S = m.osLocale),
8714 (g = N || n.LANGUAGE_DEFAULT),
8715 (E = m._translationsConfigFile)
8716 } catch {}
8717 h = !0
8718 } else console.error('Unable to resolve platform.')
8719 let r = 0
8720 s ? (r = 1) : i ? (r = 3) : p && (r = 2),
8721 (n.isWindows = i),
8722 (n.isMacintosh = s),
8723 (n.isLinux = p),
8724 (n.isNative = h),
8725 (n.isWeb = a),
8726 (n.isWebWorker = a && typeof n.globals.importScripts == 'function'),
8727 (n.isIOS = e),
8728 (n.isMobile = f),
8729 (n.userAgent = y),
8730 (n.language = g),
8731 (n.setTimeout0IsFaster =
8732 typeof n.globals.postMessage == 'function' && !n.globals.importScripts),
8733 (n.setTimeout0 = (() => {
8734 if (n.setTimeout0IsFaster) {
8735 const l = []
8736 n.globals.addEventListener('message', (N) => {
8737 if (N.data && N.data.vscodeScheduleAsyncWork)
8738 for (let A = 0, M = l.length; A < M; A++) {
8739 const k = l[A]
8740 if (k.id === N.data.vscodeScheduleAsyncWork) {
8741 l.splice(A, 1), k.callback()
8742 return
8743 }
8744 }
8745 })
8746 let m = 0
8747 return (N) => {
8748 const A = ++m
8749 l.push({ id: A, callback: N }),
8750 n.globals.postMessage({ vscodeScheduleAsyncWork: A }, '*')
8751 }
8752 }
8753 return (l) => setTimeout(l)
8754 })()),
8755 (n.OS = s || e ? 2 : i ? 1 : 3)
8756 let u = !0,
8757 o = !1
8758 function c() {
8759 if (!o) {
8760 o = !0
8761 const l = new Uint8Array(2)
8762 ;(l[0] = 1), (l[1] = 2), (u = new Uint16Array(l.buffer)[0] === (2 << 8) + 1)
8763 }
8764 return u
8765 }
8766 ;(n.isLittleEndian = c),
8767 (n.isChrome = !!(n.userAgent && n.userAgent.indexOf('Chrome') >= 0)),
8768 (n.isFirefox = !!(n.userAgent && n.userAgent.indexOf('Firefox') >= 0)),
8769 (n.isSafari = !!(!n.isChrome && n.userAgent && n.userAgent.indexOf('Safari') >= 0)),
8770 (n.isEdge = !!(n.userAgent && n.userAgent.indexOf('Edg/') >= 0)),
8771 (n.isAndroid = !!(n.userAgent && n.userAgent.indexOf('Android') >= 0))
8772 }),
8773 Q(Y[51], X([0, 1, 8]), function (x, n, R) {
8774 'use strict'
8775 Object.defineProperty(n, '__esModule', { value: !0 }), (n.platform = n.env = n.cwd = void 0)
8776 let D
8777 if (typeof R.globals.vscode < 'u' && typeof R.globals.vscode.process < 'u') {
8778 const i = R.globals.vscode.process
8779 D = {
8780 get platform() {
8781 return i.platform
8782 },
8783 get arch() {
8784 return i.arch
8785 },
8786 get env() {
8787 return i.env
8788 },
8789 cwd() {
8790 return i.cwd()
8791 },
8792 }
8793 } else
8794 typeof process < 'u'
8795 ? (D = {
8796 get platform() {
8797 return process.platform
8798 },
8799 get arch() {
8800 return process.arch
8801 },
8802 get env() {
8803 return process.env
8804 },
8805 cwd() {
8806 return process.env.VSCODE_CWD || process.cwd()
8807 },
8808 })
8809 : (D = {
8810 get platform() {
8811 return R.isWindows ? 'win32' : R.isMacintosh ? 'darwin' : 'linux'
8812 },
8813 get arch() {},
8814 get env() {
8815 return {}
8816 },
8817 cwd() {
8818 return '/'
8819 },
8820 })
8821 ;(n.cwd = D.cwd), (n.env = D.env), (n.platform = D.platform)
8822 }),
8823 Q(Y[52], X([0, 1, 51]), function (x, n, R) {
8824 'use strict'
8825 Object.defineProperty(n, '__esModule', { value: !0 }),
8826 (n.sep =
8827 n.extname =
8828 n.basename =
8829 n.dirname =
8830 n.relative =
8831 n.resolve =
8832 n.normalize =
8833 n.posix =
8834 n.win32 =
8835 void 0)
8836 const D = 65,
8837 i = 97,
8838 s = 90,
8839 p = 122,
8840 L = 46,
8841 h = 47,
8842 a = 92,
8843 w = 58,
8844 e = 63
8845 class b extends Error {
8846 constructor(u, o, c) {
8847 let l
8848 typeof o == 'string' && o.indexOf('not ') === 0
8849 ? ((l = 'must not be'), (o = o.replace(/^not /, '')))
8850 : (l = 'must be')
8851 const m = u.indexOf('.') !== -1 ? 'property' : 'argument'
8852 let N = `The "${u}" ${m} ${l} of type ${o}`
8853 ;(N += `. Received type ${typeof c}`), super(N), (this.code = 'ERR_INVALID_ARG_TYPE')
8854 }
8855 }
8856 function f(r, u) {
8857 if (r === null || typeof r != 'object') throw new b(u, 'Object', r)
8858 }
8859 function v(r, u) {
8860 if (typeof r != 'string') throw new b(u, 'string', r)
8861 }
8862 const g = R.platform === 'win32'
8863 function S(r) {
8864 return r === h || r === a
8865 }
8866 function E(r) {
8867 return r === h
8868 }
8869 function y(r) {
8870 return (r >= D && r <= s) || (r >= i && r <= p)
8871 }
8872 function _(r, u, o, c) {
8873 let l = '',
8874 m = 0,
8875 N = -1,
8876 A = 0,
8877 M = 0
8878 for (let k = 0; k <= r.length; ++k) {
8879 if (k < r.length) M = r.charCodeAt(k)
8880 else {
8881 if (c(M)) break
8882 M = h
8883 }
8884 if (c(M)) {
8885 if (!(N === k - 1 || A === 1))
8886 if (A === 2) {
8887 if (
8888 l.length < 2 ||
8889 m !== 2 ||
8890 l.charCodeAt(l.length - 1) !== L ||
8891 l.charCodeAt(l.length - 2) !== L
8892 ) {
8893 if (l.length > 2) {
8894 const q = l.lastIndexOf(o)
8895 q === -1
8896 ? ((l = ''), (m = 0))
8897 : ((l = l.slice(0, q)), (m = l.length - 1 - l.lastIndexOf(o))),
8898 (N = k),
8899 (A = 0)
8900 continue
8901 } else if (l.length !== 0) {
8902 ;(l = ''), (m = 0), (N = k), (A = 0)
8903 continue
8904 }
8905 }
8906 u && ((l += l.length > 0 ? `${o}..` : '..'), (m = 2))
8907 } else
8908 l.length > 0 ? (l += `${o}${r.slice(N + 1, k)}`) : (l = r.slice(N + 1, k)),
8909 (m = k - N - 1)
8910 ;(N = k), (A = 0)
8911 } else M === L && A !== -1 ? ++A : (A = -1)
8912 }
8913 return l
8914 }
8915 function d(r, u) {
8916 f(u, 'pathObject')
8917 const o = u.dir || u.root,
8918 c = u.base || `${u.name || ''}${u.ext || ''}`
8919 return o ? (o === u.root ? `${o}${c}` : `${o}${r}${c}`) : c
8920 }
8921 n.win32 = {
8922 resolve(...r) {
8923 let u = '',
8924 o = '',
8925 c = !1
8926 for (let l = r.length - 1; l >= -1; l--) {
8927 let m
8928 if (l >= 0) {
8929 if (((m = r[l]), v(m, 'path'), m.length === 0)) continue
8930 } else
8931 u.length === 0
8932 ? (m = R.cwd())
8933 : ((m = R.env[`=${u}`] || R.cwd()),
8934 (m === void 0 ||
8935 (m.slice(0, 2).toLowerCase() !== u.toLowerCase() && m.charCodeAt(2) === a)) &&
8936 (m = `${u}\\`))
8937 const N = m.length
8938 let A = 0,
8939 M = '',
8940 k = !1
8941 const q = m.charCodeAt(0)
8942 if (N === 1) S(q) && ((A = 1), (k = !0))
8943 else if (S(q))
8944 if (((k = !0), S(m.charCodeAt(1)))) {
8945 let I = 2,
8946 B = I
8947 for (; I < N && !S(m.charCodeAt(I)); ) I++
8948 if (I < N && I !== B) {
8949 const H = m.slice(B, I)
8950 for (B = I; I < N && S(m.charCodeAt(I)); ) I++
8951 if (I < N && I !== B) {
8952 for (B = I; I < N && !S(m.charCodeAt(I)); ) I++
8953 ;(I === N || I !== B) && ((M = `\\\\${H}\\${m.slice(B, I)}`), (A = I))
8954 }
8955 }
8956 } else A = 1
8957 else
8958 y(q) &&
8959 m.charCodeAt(1) === w &&
8960 ((M = m.slice(0, 2)), (A = 2), N > 2 && S(m.charCodeAt(2)) && ((k = !0), (A = 3)))
8961 if (M.length > 0)
8962 if (u.length > 0) {
8963 if (M.toLowerCase() !== u.toLowerCase()) continue
8964 } else u = M
8965 if (c) {
8966 if (u.length > 0) break
8967 } else if (((o = `${m.slice(A)}\\${o}`), (c = k), k && u.length > 0)) break
8968 }
8969 return (o = _(o, !c, '\\', S)), c ? `${u}\\${o}` : `${u}${o}` || '.'
8970 },
8971 normalize(r) {
8972 v(r, 'path')
8973 const u = r.length
8974 if (u === 0) return '.'
8975 let o = 0,
8976 c,
8977 l = !1
8978 const m = r.charCodeAt(0)
8979 if (u === 1) return E(m) ? '\\' : r
8980 if (S(m))
8981 if (((l = !0), S(r.charCodeAt(1)))) {
8982 let A = 2,
8983 M = A
8984 for (; A < u && !S(r.charCodeAt(A)); ) A++
8985 if (A < u && A !== M) {
8986 const k = r.slice(M, A)
8987 for (M = A; A < u && S(r.charCodeAt(A)); ) A++
8988 if (A < u && A !== M) {
8989 for (M = A; A < u && !S(r.charCodeAt(A)); ) A++
8990 if (A === u) return `\\\\${k}\\${r.slice(M)}\\`
8991 A !== M && ((c = `\\\\${k}\\${r.slice(M, A)}`), (o = A))
8992 }
8993 }
8994 } else o = 1
8995 else
8996 y(m) &&
8997 r.charCodeAt(1) === w &&
8998 ((c = r.slice(0, 2)), (o = 2), u > 2 && S(r.charCodeAt(2)) && ((l = !0), (o = 3)))
8999 let N = o < u ? _(r.slice(o), !l, '\\', S) : ''
9000 return (
9001 N.length === 0 && !l && (N = '.'),
9002 N.length > 0 && S(r.charCodeAt(u - 1)) && (N += '\\'),
9003 c === void 0 ? (l ? `\\${N}` : N) : l ? `${c}\\${N}` : `${c}${N}`
9004 )
9005 },
9006 isAbsolute(r) {
9007 v(r, 'path')
9008 const u = r.length
9009 if (u === 0) return !1
9010 const o = r.charCodeAt(0)
9011 return S(o) || (u > 2 && y(o) && r.charCodeAt(1) === w && S(r.charCodeAt(2)))
9012 },
9013 join(...r) {
9014 if (r.length === 0) return '.'
9015 let u, o
9016 for (let m = 0; m < r.length; ++m) {
9017 const N = r[m]
9018 v(N, 'path'), N.length > 0 && (u === void 0 ? (u = o = N) : (u += `\\${N}`))
9019 }
9020 if (u === void 0) return '.'
9021 let c = !0,
9022 l = 0
9023 if (typeof o == 'string' && S(o.charCodeAt(0))) {
9024 ++l
9025 const m = o.length
9026 m > 1 && S(o.charCodeAt(1)) && (++l, m > 2 && (S(o.charCodeAt(2)) ? ++l : (c = !1)))
9027 }
9028 if (c) {
9029 for (; l < u.length && S(u.charCodeAt(l)); ) l++
9030 l >= 2 && (u = `\\${u.slice(l)}`)
9031 }
9032 return n.win32.normalize(u)
9033 },
9034 relative(r, u) {
9035 if ((v(r, 'from'), v(u, 'to'), r === u)) return ''
9036 const o = n.win32.resolve(r),
9037 c = n.win32.resolve(u)
9038 if (o === c || ((r = o.toLowerCase()), (u = c.toLowerCase()), r === u)) return ''
9039 let l = 0
9040 for (; l < r.length && r.charCodeAt(l) === a; ) l++
9041 let m = r.length
9042 for (; m - 1 > l && r.charCodeAt(m - 1) === a; ) m--
9043 const N = m - l
9044 let A = 0
9045 for (; A < u.length && u.charCodeAt(A) === a; ) A++
9046 let M = u.length
9047 for (; M - 1 > A && u.charCodeAt(M - 1) === a; ) M--
9048 const k = M - A,
9049 q = N < k ? N : k
9050 let I = -1,
9051 B = 0
9052 for (; B < q; B++) {
9053 const F = r.charCodeAt(l + B)
9054 if (F !== u.charCodeAt(A + B)) break
9055 F === a && (I = B)
9056 }
9057 if (B !== q) {
9058 if (I === -1) return c
9059 } else {
9060 if (k > q) {
9061 if (u.charCodeAt(A + B) === a) return c.slice(A + B + 1)
9062 if (B === 2) return c.slice(A + B)
9063 }
9064 N > q && (r.charCodeAt(l + B) === a ? (I = B) : B === 2 && (I = 3)), I === -1 && (I = 0)
9065 }
9066 let H = ''
9067 for (B = l + I + 1; B <= m; ++B)
9068 (B === m || r.charCodeAt(B) === a) && (H += H.length === 0 ? '..' : '\\..')
9069 return (
9070 (A += I),
9071 H.length > 0 ? `${H}${c.slice(A, M)}` : (c.charCodeAt(A) === a && ++A, c.slice(A, M))
9072 )
9073 },
9074 toNamespacedPath(r) {
9075 if (typeof r != 'string' || r.length === 0) return r
9076 const u = n.win32.resolve(r)
9077 if (u.length <= 2) return r
9078 if (u.charCodeAt(0) === a) {
9079 if (u.charCodeAt(1) === a) {
9080 const o = u.charCodeAt(2)
9081 if (o !== e && o !== L) return `\\\\?\\UNC\\${u.slice(2)}`
9082 }
9083 } else if (y(u.charCodeAt(0)) && u.charCodeAt(1) === w && u.charCodeAt(2) === a)
9084 return `\\\\?\\${u}`
9085 return r
9086 },
9087 dirname(r) {
9088 v(r, 'path')
9089 const u = r.length
9090 if (u === 0) return '.'
9091 let o = -1,
9092 c = 0
9093 const l = r.charCodeAt(0)
9094 if (u === 1) return S(l) ? r : '.'
9095 if (S(l)) {
9096 if (((o = c = 1), S(r.charCodeAt(1)))) {
9097 let A = 2,
9098 M = A
9099 for (; A < u && !S(r.charCodeAt(A)); ) A++
9100 if (A < u && A !== M) {
9101 for (M = A; A < u && S(r.charCodeAt(A)); ) A++
9102 if (A < u && A !== M) {
9103 for (M = A; A < u && !S(r.charCodeAt(A)); ) A++
9104 if (A === u) return r
9105 A !== M && (o = c = A + 1)
9106 }
9107 }
9108 }
9109 } else
9110 y(l) && r.charCodeAt(1) === w && ((o = u > 2 && S(r.charCodeAt(2)) ? 3 : 2), (c = o))
9111 let m = -1,
9112 N = !0
9113 for (let A = u - 1; A >= c; --A)
9114 if (S(r.charCodeAt(A))) {
9115 if (!N) {
9116 m = A
9117 break
9118 }
9119 } else N = !1
9120 if (m === -1) {
9121 if (o === -1) return '.'
9122 m = o
9123 }
9124 return r.slice(0, m)
9125 },
9126 basename(r, u) {
9127 u !== void 0 && v(u, 'ext'), v(r, 'path')
9128 let o = 0,
9129 c = -1,
9130 l = !0,
9131 m
9132 if (
9133 (r.length >= 2 && y(r.charCodeAt(0)) && r.charCodeAt(1) === w && (o = 2),
9134 u !== void 0 && u.length > 0 && u.length <= r.length)
9135 ) {
9136 if (u === r) return ''
9137 let N = u.length - 1,
9138 A = -1
9139 for (m = r.length - 1; m >= o; --m) {
9140 const M = r.charCodeAt(m)
9141 if (S(M)) {
9142 if (!l) {
9143 o = m + 1
9144 break
9145 }
9146 } else
9147 A === -1 && ((l = !1), (A = m + 1)),
9148 N >= 0 && (M === u.charCodeAt(N) ? --N === -1 && (c = m) : ((N = -1), (c = A)))
9149 }
9150 return o === c ? (c = A) : c === -1 && (c = r.length), r.slice(o, c)
9151 }
9152 for (m = r.length - 1; m >= o; --m)
9153 if (S(r.charCodeAt(m))) {
9154 if (!l) {
9155 o = m + 1
9156 break
9157 }
9158 } else c === -1 && ((l = !1), (c = m + 1))
9159 return c === -1 ? '' : r.slice(o, c)
9160 },
9161 extname(r) {
9162 v(r, 'path')
9163 let u = 0,
9164 o = -1,
9165 c = 0,
9166 l = -1,
9167 m = !0,
9168 N = 0
9169 r.length >= 2 && r.charCodeAt(1) === w && y(r.charCodeAt(0)) && (u = c = 2)
9170 for (let A = r.length - 1; A >= u; --A) {
9171 const M = r.charCodeAt(A)
9172 if (S(M)) {
9173 if (!m) {
9174 c = A + 1
9175 break
9176 }
9177 continue
9178 }
9179 l === -1 && ((m = !1), (l = A + 1)),
9180 M === L ? (o === -1 ? (o = A) : N !== 1 && (N = 1)) : o !== -1 && (N = -1)
9181 }
9182 return o === -1 || l === -1 || N === 0 || (N === 1 && o === l - 1 && o === c + 1)
9183 ? ''
9184 : r.slice(o, l)
9185 },
9186 format: d.bind(null, '\\'),
9187 parse(r) {
9188 v(r, 'path')
9189 const u = { root: '', dir: '', base: '', ext: '', name: '' }
9190 if (r.length === 0) return u
9191 const o = r.length
9192 let c = 0,
9193 l = r.charCodeAt(0)
9194 if (o === 1) return S(l) ? ((u.root = u.dir = r), u) : ((u.base = u.name = r), u)
9195 if (S(l)) {
9196 if (((c = 1), S(r.charCodeAt(1)))) {
9197 let I = 2,
9198 B = I
9199 for (; I < o && !S(r.charCodeAt(I)); ) I++
9200 if (I < o && I !== B) {
9201 for (B = I; I < o && S(r.charCodeAt(I)); ) I++
9202 if (I < o && I !== B) {
9203 for (B = I; I < o && !S(r.charCodeAt(I)); ) I++
9204 I === o ? (c = I) : I !== B && (c = I + 1)
9205 }
9206 }
9207 }
9208 } else if (y(l) && r.charCodeAt(1) === w) {
9209 if (o <= 2) return (u.root = u.dir = r), u
9210 if (((c = 2), S(r.charCodeAt(2)))) {
9211 if (o === 3) return (u.root = u.dir = r), u
9212 c = 3
9213 }
9214 }
9215 c > 0 && (u.root = r.slice(0, c))
9216 let m = -1,
9217 N = c,
9218 A = -1,
9219 M = !0,
9220 k = r.length - 1,
9221 q = 0
9222 for (; k >= c; --k) {
9223 if (((l = r.charCodeAt(k)), S(l))) {
9224 if (!M) {
9225 N = k + 1
9226 break
9227 }
9228 continue
9229 }
9230 A === -1 && ((M = !1), (A = k + 1)),
9231 l === L ? (m === -1 ? (m = k) : q !== 1 && (q = 1)) : m !== -1 && (q = -1)
9232 }
9233 return (
9234 A !== -1 &&
9235 (m === -1 || q === 0 || (q === 1 && m === A - 1 && m === N + 1)
9236 ? (u.base = u.name = r.slice(N, A))
9237 : ((u.name = r.slice(N, m)), (u.base = r.slice(N, A)), (u.ext = r.slice(m, A)))),
9238 N > 0 && N !== c ? (u.dir = r.slice(0, N - 1)) : (u.dir = u.root),
9239 u
9240 )
9241 },
9242 sep: '\\',
9243 delimiter: ';',
9244 win32: null,
9245 posix: null,
9246 }
9247 const C = (() => {
9248 if (g) {
9249 const r = /\\/g
9250 return () => {
9251 const u = R.cwd().replace(r, '/')
9252 return u.slice(u.indexOf('/'))
9253 }
9254 }
9255 return () => R.cwd()
9256 })()
9257 ;(n.posix = {
9258 resolve(...r) {
9259 let u = '',
9260 o = !1
9261 for (let c = r.length - 1; c >= -1 && !o; c--) {
9262 const l = c >= 0 ? r[c] : C()
9263 v(l, 'path'), l.length !== 0 && ((u = `${l}/${u}`), (o = l.charCodeAt(0) === h))
9264 }
9265 return (u = _(u, !o, '/', E)), o ? `/${u}` : u.length > 0 ? u : '.'
9266 },
9267 normalize(r) {
9268 if ((v(r, 'path'), r.length === 0)) return '.'
9269 const u = r.charCodeAt(0) === h,
9270 o = r.charCodeAt(r.length - 1) === h
9271 return (
9272 (r = _(r, !u, '/', E)),
9273 r.length === 0 ? (u ? '/' : o ? './' : '.') : (o && (r += '/'), u ? `/${r}` : r)
9274 )
9275 },
9276 isAbsolute(r) {
9277 return v(r, 'path'), r.length > 0 && r.charCodeAt(0) === h
9278 },
9279 join(...r) {
9280 if (r.length === 0) return '.'
9281 let u
9282 for (let o = 0; o < r.length; ++o) {
9283 const c = r[o]
9284 v(c, 'path'), c.length > 0 && (u === void 0 ? (u = c) : (u += `/${c}`))
9285 }
9286 return u === void 0 ? '.' : n.posix.normalize(u)
9287 },
9288 relative(r, u) {
9289 if (
9290 (v(r, 'from'),
9291 v(u, 'to'),
9292 r === u || ((r = n.posix.resolve(r)), (u = n.posix.resolve(u)), r === u))
9293 )
9294 return ''
9295 const o = 1,
9296 c = r.length,
9297 l = c - o,
9298 m = 1,
9299 N = u.length - m,
9300 A = l < N ? l : N
9301 let M = -1,
9302 k = 0
9303 for (; k < A; k++) {
9304 const I = r.charCodeAt(o + k)
9305 if (I !== u.charCodeAt(m + k)) break
9306 I === h && (M = k)
9307 }
9308 if (k === A)
9309 if (N > A) {
9310 if (u.charCodeAt(m + k) === h) return u.slice(m + k + 1)
9311 if (k === 0) return u.slice(m + k)
9312 } else l > A && (r.charCodeAt(o + k) === h ? (M = k) : k === 0 && (M = 0))
9313 let q = ''
9314 for (k = o + M + 1; k <= c; ++k)
9315 (k === c || r.charCodeAt(k) === h) && (q += q.length === 0 ? '..' : '/..')
9316 return `${q}${u.slice(m + M)}`
9317 },
9318 toNamespacedPath(r) {
9319 return r
9320 },
9321 dirname(r) {
9322 if ((v(r, 'path'), r.length === 0)) return '.'
9323 const u = r.charCodeAt(0) === h
9324 let o = -1,
9325 c = !0
9326 for (let l = r.length - 1; l >= 1; --l)
9327 if (r.charCodeAt(l) === h) {
9328 if (!c) {
9329 o = l
9330 break
9331 }
9332 } else c = !1
9333 return o === -1 ? (u ? '/' : '.') : u && o === 1 ? '//' : r.slice(0, o)
9334 },
9335 basename(r, u) {
9336 u !== void 0 && v(u, 'ext'), v(r, 'path')
9337 let o = 0,
9338 c = -1,
9339 l = !0,
9340 m
9341 if (u !== void 0 && u.length > 0 && u.length <= r.length) {
9342 if (u === r) return ''
9343 let N = u.length - 1,
9344 A = -1
9345 for (m = r.length - 1; m >= 0; --m) {
9346 const M = r.charCodeAt(m)
9347 if (M === h) {
9348 if (!l) {
9349 o = m + 1
9350 break
9351 }
9352 } else
9353 A === -1 && ((l = !1), (A = m + 1)),
9354 N >= 0 && (M === u.charCodeAt(N) ? --N === -1 && (c = m) : ((N = -1), (c = A)))
9355 }
9356 return o === c ? (c = A) : c === -1 && (c = r.length), r.slice(o, c)
9357 }
9358 for (m = r.length - 1; m >= 0; --m)
9359 if (r.charCodeAt(m) === h) {
9360 if (!l) {
9361 o = m + 1
9362 break
9363 }
9364 } else c === -1 && ((l = !1), (c = m + 1))
9365 return c === -1 ? '' : r.slice(o, c)
9366 },
9367 extname(r) {
9368 v(r, 'path')
9369 let u = -1,
9370 o = 0,
9371 c = -1,
9372 l = !0,
9373 m = 0
9374 for (let N = r.length - 1; N >= 0; --N) {
9375 const A = r.charCodeAt(N)
9376 if (A === h) {
9377 if (!l) {
9378 o = N + 1
9379 break
9380 }
9381 continue
9382 }
9383 c === -1 && ((l = !1), (c = N + 1)),
9384 A === L ? (u === -1 ? (u = N) : m !== 1 && (m = 1)) : u !== -1 && (m = -1)
9385 }
9386 return u === -1 || c === -1 || m === 0 || (m === 1 && u === c - 1 && u === o + 1)
9387 ? ''
9388 : r.slice(u, c)
9389 },
9390 format: d.bind(null, '/'),
9391 parse(r) {
9392 v(r, 'path')
9393 const u = { root: '', dir: '', base: '', ext: '', name: '' }
9394 if (r.length === 0) return u
9395 const o = r.charCodeAt(0) === h
9396 let c
9397 o ? ((u.root = '/'), (c = 1)) : (c = 0)
9398 let l = -1,
9399 m = 0,
9400 N = -1,
9401 A = !0,
9402 M = r.length - 1,
9403 k = 0
9404 for (; M >= c; --M) {
9405 const q = r.charCodeAt(M)
9406 if (q === h) {
9407 if (!A) {
9408 m = M + 1
9409 break
9410 }
9411 continue
9412 }
9413 N === -1 && ((A = !1), (N = M + 1)),
9414 q === L ? (l === -1 ? (l = M) : k !== 1 && (k = 1)) : l !== -1 && (k = -1)
9415 }
9416 if (N !== -1) {
9417 const q = m === 0 && o ? 1 : m
9418 l === -1 || k === 0 || (k === 1 && l === N - 1 && l === m + 1)
9419 ? (u.base = u.name = r.slice(q, N))
9420 : ((u.name = r.slice(q, l)), (u.base = r.slice(q, N)), (u.ext = r.slice(l, N)))
9421 }
9422 return m > 0 ? (u.dir = r.slice(0, m - 1)) : o && (u.dir = '/'), u
9423 },
9424 sep: '/',
9425 delimiter: ':',
9426 win32: null,
9427 posix: null,
9428 }),
9429 (n.posix.win32 = n.win32.win32 = n.win32),
9430 (n.posix.posix = n.win32.posix = n.posix),
9431 (n.normalize = g ? n.win32.normalize : n.posix.normalize),
9432 (n.resolve = g ? n.win32.resolve : n.posix.resolve),
9433 (n.relative = g ? n.win32.relative : n.posix.relative),
9434 (n.dirname = g ? n.win32.dirname : n.posix.dirname),
9435 (n.basename = g ? n.win32.basename : n.posix.basename),
9436 (n.extname = g ? n.win32.extname : n.posix.extname),
9437 (n.sep = g ? n.win32.sep : n.posix.sep)
9438 }),
9439 Q(Y[24], X([0, 1, 8]), function (x, n, R) {
9440 'use strict'
9441 Object.defineProperty(n, '__esModule', { value: !0 }), (n.StopWatch = void 0)
9442 const D = R.globals.performance && typeof R.globals.performance.now == 'function'
9443 class i {
9444 static create(p = !0) {
9445 return new i(p)
9446 }
9447 constructor(p) {
9448 ;(this._highResolution = D && p), (this._startTime = this._now()), (this._stopTime = -1)
9449 }
9450 stop() {
9451 this._stopTime = this._now()
9452 }
9453 elapsed() {
9454 return this._stopTime !== -1
9455 ? this._stopTime - this._startTime
9456 : this._now() - this._startTime
9457 }
9458 _now() {
9459 return this._highResolution ? R.globals.performance.now() : Date.now()
9460 }
9461 }
9462 n.StopWatch = i
9463 }),
9464 Q(Y[9], X([0, 1, 4, 14, 11, 16, 24]), function (x, n, R, D, i, s, p) {
9465 'use strict'
9466 Object.defineProperty(n, '__esModule', { value: !0 }),
9467 (n.Relay =
9468 n.EventBufferer =
9469 n.EventMultiplexer =
9470 n.MicrotaskEmitter =
9471 n.DebounceEmitter =
9472 n.PauseableEmitter =
9473 n.EventDeliveryQueue =
9474 n.Emitter =
9475 n.EventProfiling =
9476 n.Event =
9477 void 0)
9478 const L = !1,
9479 h = !1
9480 var a
9481 ;(function (c) {
9482 c.None = () => i.Disposable.None
9483 function l(J) {
9484 if (h) {
9485 const { onDidAddListener: z } = J,
9486 G = f.create()
9487 let $ = 0
9488 J.onDidAddListener = () => {
9489 ++$ === 2 &&
9490 (console.warn(
9491 'snapshotted emitter LIKELY used public and SHOULD HAVE BEEN created with DisposableStore. snapshotted here'
9492 ),
9493 G.print()),
9494 z?.()
9495 }
9496 }
9497 }
9498 function m(J, z) {
9499 return F(J, () => {}, 0, void 0, !0, void 0, z)
9500 }
9501 c.defer = m
9502 function N(J) {
9503 return (z, G = null, $) => {
9504 let K = !1,
9505 ee
9506 return (
9507 (ee = J(
9508 (ne) => {
9509 if (!K) return ee ? ee.dispose() : (K = !0), z.call(G, ne)
9510 },
9511 null,
9512 $
9513 )),
9514 K && ee.dispose(),
9515 ee
9516 )
9517 }
9518 }
9519 c.once = N
9520 function A(J, z, G) {
9521 return H(($, K = null, ee) => J((ne) => $.call(K, z(ne)), null, ee), G)
9522 }
9523 c.map = A
9524 function M(J, z, G) {
9525 return H(
9526 ($, K = null, ee) =>
9527 J(
9528 (ne) => {
9529 z(ne), $.call(K, ne)
9530 },
9531 null,
9532 ee
9533 ),
9534 G
9535 )
9536 }
9537 c.forEach = M
9538 function k(J, z, G) {
9539 return H(($, K = null, ee) => J((ne) => z(ne) && $.call(K, ne), null, ee), G)
9540 }
9541 c.filter = k
9542 function q(J) {
9543 return J
9544 }
9545 c.signal = q
9546 function I(...J) {
9547 return (z, G = null, $) =>
9548 (0, i.combinedDisposable)(...J.map((K) => K((ee) => z.call(G, ee), null, $)))
9549 }
9550 c.any = I
9551 function B(J, z, G, $) {
9552 let K = G
9553 return A(J, (ee) => ((K = z(K, ee)), K), $)
9554 }
9555 c.reduce = B
9556 function H(J, z) {
9557 let G
9558 const $ = {
9559 onWillAddFirstListener() {
9560 G = J(K.fire, K)
9561 },
9562 onDidRemoveLastListener() {
9563 G?.dispose()
9564 },
9565 }
9566 z || l($)
9567 const K = new g($)
9568 return z?.add(K), K.event
9569 }
9570 function F(J, z, G = 100, $ = !1, K = !1, ee, ne) {
9571 let ce,
9572 Se,
9573 we,
9574 fe = 0,
9575 me
9576 const P = {
9577 leakWarningThreshold: ee,
9578 onWillAddFirstListener() {
9579 ce = J((V) => {
9580 fe++,
9581 (Se = z(Se, V)),
9582 $ && !we && (O.fire(Se), (Se = void 0)),
9583 (me = () => {
9584 const j = Se
9585 ;(Se = void 0), (we = void 0), (!$ || fe > 1) && O.fire(j), (fe = 0)
9586 }),
9587 typeof G == 'number'
9588 ? (clearTimeout(we), (we = setTimeout(me, G)))
9589 : we === void 0 && ((we = 0), queueMicrotask(me))
9590 })
9591 },
9592 onWillRemoveListener() {
9593 K && fe > 0 && me?.()
9594 },
9595 onDidRemoveLastListener() {
9596 ;(me = void 0), ce.dispose()
9597 },
9598 }
9599 ne || l(P)
9600 const O = new g(P)
9601 return ne?.add(O), O.event
9602 }
9603 c.debounce = F
9604 function U(J, z = 0, G) {
9605 return c.debounce(J, ($, K) => ($ ? ($.push(K), $) : [K]), z, void 0, !0, void 0, G)
9606 }
9607 c.accumulate = U
9608 function T(J, z = ($, K) => $ === K, G) {
9609 let $ = !0,
9610 K
9611 return k(
9612 J,
9613 (ee) => {
9614 const ne = $ || !z(ee, K)
9615 return ($ = !1), (K = ee), ne
9616 },
9617 G
9618 )
9619 }
9620 c.latch = T
9621 function W(J, z, G) {
9622 return [c.filter(J, z, G), c.filter(J, ($) => !z($), G)]
9623 }
9624 c.split = W
9625 function t(J, z = !1, G = []) {
9626 let $ = G.slice(),
9627 K = J((ce) => {
9628 $ ? $.push(ce) : ne.fire(ce)
9629 })
9630 const ee = () => {
9631 $?.forEach((ce) => ne.fire(ce)), ($ = null)
9632 },
9633 ne = new g({
9634 onWillAddFirstListener() {
9635 K || (K = J((ce) => ne.fire(ce)))
9636 },
9637 onDidAddFirstListener() {
9638 $ && (z ? setTimeout(ee) : ee())
9639 },
9640 onDidRemoveLastListener() {
9641 K && K.dispose(), (K = null)
9642 },
9643 })
9644 return ne.event
9645 }
9646 c.buffer = t
9647 class te {
9648 constructor(z) {
9649 ;(this.event = z), (this.disposables = new i.DisposableStore())
9650 }
9651 map(z) {
9652 return new te(A(this.event, z, this.disposables))
9653 }
9654 forEach(z) {
9655 return new te(M(this.event, z, this.disposables))
9656 }
9657 filter(z) {
9658 return new te(k(this.event, z, this.disposables))
9659 }
9660 reduce(z, G) {
9661 return new te(B(this.event, z, G, this.disposables))
9662 }
9663 latch() {
9664 return new te(T(this.event, void 0, this.disposables))
9665 }
9666 debounce(z, G = 100, $ = !1, K = !1, ee) {
9667 return new te(F(this.event, z, G, $, K, ee, this.disposables))
9668 }
9669 on(z, G, $) {
9670 return this.event(z, G, $)
9671 }
9672 once(z, G, $) {
9673 return N(this.event)(z, G, $)
9674 }
9675 dispose() {
9676 this.disposables.dispose()
9677 }
9678 }
9679 function ie(J) {
9680 return new te(J)
9681 }
9682 c.chain = ie
9683 function ue(J, z, G = ($) => $) {
9684 const $ = (...ce) => ne.fire(G(...ce)),
9685 K = () => J.on(z, $),
9686 ee = () => J.removeListener(z, $),
9687 ne = new g({ onWillAddFirstListener: K, onDidRemoveLastListener: ee })
9688 return ne.event
9689 }
9690 c.fromNodeEventEmitter = ue
9691 function de(J, z, G = ($) => $) {
9692 const $ = (...ce) => ne.fire(G(...ce)),
9693 K = () => J.addEventListener(z, $),
9694 ee = () => J.removeEventListener(z, $),
9695 ne = new g({ onWillAddFirstListener: K, onDidRemoveLastListener: ee })
9696 return ne.event
9697 }
9698 c.fromDOMEventEmitter = de
9699 function Ce(J) {
9700 return new Promise((z) => N(J)(z))
9701 }
9702 c.toPromise = Ce
9703 function re(J, z) {
9704 return z(void 0), J((G) => z(G))
9705 }
9706 c.runAndSubscribe = re
9707 function se(J, z) {
9708 let G = null
9709 function $(ee) {
9710 G?.dispose(), (G = new i.DisposableStore()), z(ee, G)
9711 }
9712 $(void 0)
9713 const K = J((ee) => $(ee))
9714 return (0, i.toDisposable)(() => {
9715 K.dispose(), G?.dispose()
9716 })
9717 }
9718 c.runAndSubscribeWithStore = se
9719 class ge {
9720 constructor(z, G) {
9721 ;(this.obs = z), (this._counter = 0), (this._hasChanged = !1)
9722 const $ = {
9723 onWillAddFirstListener: () => {
9724 z.addObserver(this)
9725 },
9726 onDidRemoveLastListener: () => {
9727 z.removeObserver(this)
9728 },
9729 }
9730 G || l($), (this.emitter = new g($)), G && G.add(this.emitter)
9731 }
9732 beginUpdate(z) {
9733 this._counter++
9734 }
9735 handleChange(z, G) {
9736 this._hasChanged = !0
9737 }
9738 endUpdate(z) {
9739 --this._counter === 0 &&
9740 this._hasChanged &&
9741 ((this._hasChanged = !1), this.emitter.fire(this.obs.get()))
9742 }
9743 }
9744 function Le(J, z) {
9745 return new ge(J, z).emitter.event
9746 }
9747 c.fromObservable = Le
9748 })((a = n.Event || (n.Event = {})))
9749 class w {
9750 constructor(l) {
9751 ;(this.listenerCount = 0),
9752 (this.invocationCount = 0),
9753 (this.elapsedOverall = 0),
9754 (this.durations = []),
9755 (this.name = `${l}_${w._idPool++}`),
9756 w.all.add(this)
9757 }
9758 start(l) {
9759 ;(this._stopWatch = new p.StopWatch(!0)), (this.listenerCount = l)
9760 }
9761 stop() {
9762 if (this._stopWatch) {
9763 const l = this._stopWatch.elapsed()
9764 this.durations.push(l),
9765 (this.elapsedOverall += l),
9766 (this.invocationCount += 1),
9767 (this._stopWatch = void 0)
9768 }
9769 }
9770 }
9771 ;(w.all = new Set()), (w._idPool = 0), (n.EventProfiling = w)
9772 let e = -1
9773 class b {
9774 constructor(l, m = Math.random().toString(18).slice(2, 5)) {
9775 ;(this.threshold = l), (this.name = m), (this._warnCountdown = 0)
9776 }
9777 dispose() {
9778 var l
9779 ;(l = this._stacks) === null || l === void 0 || l.clear()
9780 }
9781 check(l, m) {
9782 const N = this.threshold
9783 if (N <= 0 || m < N) return
9784 this._stacks || (this._stacks = new Map())
9785 const A = this._stacks.get(l.value) || 0
9786 if (
9787 (this._stacks.set(l.value, A + 1), (this._warnCountdown -= 1), this._warnCountdown <= 0)
9788 ) {
9789 this._warnCountdown = N * 0.5
9790 let M,
9791 k = 0
9792 for (const [q, I] of this._stacks) (!M || k < I) && ((M = q), (k = I))
9793 console.warn(
9794 `[${this.name}] potential listener LEAK detected, having ${m} listeners already. MOST frequent listener (${k}):`
9795 ),
9796 console.warn(M)
9797 }
9798 return () => {
9799 const M = this._stacks.get(l.value) || 0
9800 this._stacks.set(l.value, M - 1)
9801 }
9802 }
9803 }
9804 class f {
9805 static create() {
9806 var l
9807 return new f((l = new Error().stack) !== null && l !== void 0 ? l : '')
9808 }
9809 constructor(l) {
9810 this.value = l
9811 }
9812 print() {
9813 console.warn(
9814 this.value
9815 .split(
9816 `
9817`
9818 )
9819 .slice(2).join(`
9820`)
9821 )
9822 }
9823 }
9824 class v {
9825 constructor(l, m, N) {
9826 ;(this.callback = l),
9827 (this.callbackThis = m),
9828 (this.stack = N),
9829 (this.subscription = new i.SafeDisposable())
9830 }
9831 invoke(l) {
9832 this.callback.call(this.callbackThis, l)
9833 }
9834 }
9835 class g {
9836 constructor(l) {
9837 var m, N, A, M, k
9838 ;(this._disposed = !1),
9839 (this._options = l),
9840 (this._leakageMon =
9841 e > 0 ||
9842 ((m = this._options) === null || m === void 0 ? void 0 : m.leakWarningThreshold)
9843 ? new b(
9844 (A =
9845 (N = this._options) === null || N === void 0
9846 ? void 0
9847 : N.leakWarningThreshold) !== null && A !== void 0
9848 ? A
9849 : e
9850 )
9851 : void 0),
9852 (this._perfMon =
9853 !((M = this._options) === null || M === void 0) && M._profName
9854 ? new w(this._options._profName)
9855 : void 0),
9856 (this._deliveryQueue =
9857 (k = this._options) === null || k === void 0 ? void 0 : k.deliveryQueue)
9858 }
9859 dispose() {
9860 var l, m, N, A
9861 if (!this._disposed) {
9862 if (((this._disposed = !0), this._listeners)) {
9863 if (L) {
9864 const M = Array.from(this._listeners)
9865 queueMicrotask(() => {
9866 var k
9867 for (const q of M)
9868 q.subscription.isset() &&
9869 (q.subscription.unset(), (k = q.stack) === null || k === void 0 || k.print())
9870 })
9871 }
9872 this._listeners.clear()
9873 }
9874 ;(l = this._deliveryQueue) === null || l === void 0 || l.clear(this),
9875 (N =
9876 (m = this._options) === null || m === void 0
9877 ? void 0
9878 : m.onDidRemoveLastListener) === null ||
9879 N === void 0 ||
9880 N.call(m),
9881 (A = this._leakageMon) === null || A === void 0 || A.dispose()
9882 }
9883 }
9884 get event() {
9885 return (
9886 this._event ||
9887 (this._event = (l, m, N) => {
9888 var A, M, k
9889 if (
9890 (this._listeners || (this._listeners = new s.LinkedList()),
9891 this._leakageMon && this._listeners.size > this._leakageMon.threshold * 3)
9892 )
9893 return (
9894 console.warn(
9895 `[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far`
9896 ),
9897 i.Disposable.None
9898 )
9899 const q = this._listeners.isEmpty()
9900 q &&
9901 ((A = this._options) === null || A === void 0
9902 ? void 0
9903 : A.onWillAddFirstListener) &&
9904 this._options.onWillAddFirstListener(this)
9905 let I, B
9906 this._leakageMon &&
9907 this._listeners.size >= Math.ceil(this._leakageMon.threshold * 0.2) &&
9908 ((B = f.create()), (I = this._leakageMon.check(B, this._listeners.size + 1))),
9909 L && (B = B ?? f.create())
9910 const H = new v(l, m, B),
9911 F = this._listeners.push(H)
9912 q &&
9913 ((M = this._options) === null || M === void 0
9914 ? void 0
9915 : M.onDidAddFirstListener) &&
9916 this._options.onDidAddFirstListener(this),
9917 !((k = this._options) === null || k === void 0) &&
9918 k.onDidAddListener &&
9919 this._options.onDidAddListener(this, l, m)
9920 const U = H.subscription.set(() => {
9921 var T, W
9922 I?.(),
9923 this._disposed ||
9924 ((W =
9925 (T = this._options) === null || T === void 0
9926 ? void 0
9927 : T.onWillRemoveListener) === null ||
9928 W === void 0 ||
9929 W.call(T, this),
9930 F(),
9931 this._options &&
9932 this._options.onDidRemoveLastListener &&
9933 ((this._listeners && !this._listeners.isEmpty()) ||
9934 this._options.onDidRemoveLastListener(this)))
9935 })
9936 return N instanceof i.DisposableStore ? N.add(U) : Array.isArray(N) && N.push(U), U
9937 }),
9938 this._event
9939 )
9940 }
9941 fire(l) {
9942 var m, N, A
9943 if (this._listeners) {
9944 this._deliveryQueue ||
9945 (this._deliveryQueue = new E(
9946 (m = this._options) === null || m === void 0 ? void 0 : m.onListenerError
9947 ))
9948 for (const M of this._listeners) this._deliveryQueue.push(this, M, l)
9949 ;(N = this._perfMon) === null || N === void 0 || N.start(this._deliveryQueue.size),
9950 this._deliveryQueue.deliver(),
9951 (A = this._perfMon) === null || A === void 0 || A.stop()
9952 }
9953 }
9954 hasListeners() {
9955 return this._listeners ? !this._listeners.isEmpty() : !1
9956 }
9957 }
9958 n.Emitter = g
9959 class S {
9960 constructor(l = R.onUnexpectedError) {
9961 ;(this._onListenerError = l), (this._queue = new s.LinkedList())
9962 }
9963 get size() {
9964 return this._queue.size
9965 }
9966 push(l, m, N) {
9967 this._queue.push(new y(l, m, N))
9968 }
9969 clear(l) {
9970 const m = new s.LinkedList()
9971 for (const N of this._queue) N.emitter !== l && m.push(N)
9972 this._queue = m
9973 }
9974 deliver() {
9975 for (; this._queue.size > 0; ) {
9976 const l = this._queue.shift()
9977 try {
9978 l.listener.invoke(l.event)
9979 } catch (m) {
9980 this._onListenerError(m)
9981 }
9982 }
9983 }
9984 }
9985 n.EventDeliveryQueue = S
9986 class E extends S {
9987 clear(l) {
9988 this._queue.clear()
9989 }
9990 }
9991 class y {
9992 constructor(l, m, N) {
9993 ;(this.emitter = l), (this.listener = m), (this.event = N)
9994 }
9995 }
9996 class _ extends g {
9997 constructor(l) {
9998 super(l),
9999 (this._isPaused = 0),
10000 (this._eventQueue = new s.LinkedList()),
10001 (this._mergeFn = l?.merge)
10002 }
10003 pause() {
10004 this._isPaused++
10005 }
10006 resume() {
10007 if (this._isPaused !== 0 && --this._isPaused === 0)
10008 if (this._mergeFn) {
10009 if (this._eventQueue.size > 0) {
10010 const l = Array.from(this._eventQueue)
10011 this._eventQueue.clear(), super.fire(this._mergeFn(l))
10012 }
10013 } else
10014 for (; !this._isPaused && this._eventQueue.size !== 0; )
10015 super.fire(this._eventQueue.shift())
10016 }
10017 fire(l) {
10018 this._listeners && (this._isPaused !== 0 ? this._eventQueue.push(l) : super.fire(l))
10019 }
10020 }
10021 n.PauseableEmitter = _
10022 class d extends _ {
10023 constructor(l) {
10024 var m
10025 super(l), (this._delay = (m = l.delay) !== null && m !== void 0 ? m : 100)
10026 }
10027 fire(l) {
10028 this._handle ||
10029 (this.pause(),
10030 (this._handle = setTimeout(() => {
10031 ;(this._handle = void 0), this.resume()
10032 }, this._delay))),
10033 super.fire(l)
10034 }
10035 }
10036 n.DebounceEmitter = d
10037 class C extends g {
10038 constructor(l) {
10039 super(l), (this._queuedEvents = []), (this._mergeFn = l?.merge)
10040 }
10041 fire(l) {
10042 !this.hasListeners() ||
10043 (this._queuedEvents.push(l),
10044 this._queuedEvents.length === 1 &&
10045 queueMicrotask(() => {
10046 this._mergeFn
10047 ? super.fire(this._mergeFn(this._queuedEvents))
10048 : this._queuedEvents.forEach((m) => super.fire(m)),
10049 (this._queuedEvents = [])
10050 }))
10051 }
10052 }
10053 n.MicrotaskEmitter = C
10054 class r {
10055 constructor() {
10056 ;(this.hasListeners = !1),
10057 (this.events = []),
10058 (this.emitter = new g({
10059 onWillAddFirstListener: () => this.onFirstListenerAdd(),
10060 onDidRemoveLastListener: () => this.onLastListenerRemove(),
10061 }))
10062 }
10063 get event() {
10064 return this.emitter.event
10065 }
10066 add(l) {
10067 const m = { event: l, listener: null }
10068 this.events.push(m), this.hasListeners && this.hook(m)
10069 const N = () => {
10070 this.hasListeners && this.unhook(m)
10071 const A = this.events.indexOf(m)
10072 this.events.splice(A, 1)
10073 }
10074 return (0, i.toDisposable)((0, D.once)(N))
10075 }
10076 onFirstListenerAdd() {
10077 ;(this.hasListeners = !0), this.events.forEach((l) => this.hook(l))
10078 }
10079 onLastListenerRemove() {
10080 ;(this.hasListeners = !1), this.events.forEach((l) => this.unhook(l))
10081 }
10082 hook(l) {
10083 l.listener = l.event((m) => this.emitter.fire(m))
10084 }
10085 unhook(l) {
10086 l.listener && l.listener.dispose(), (l.listener = null)
10087 }
10088 dispose() {
10089 this.emitter.dispose()
10090 }
10091 }
10092 n.EventMultiplexer = r
10093 class u {
10094 constructor() {
10095 this.buffers = []
10096 }
10097 wrapEvent(l) {
10098 return (m, N, A) =>
10099 l(
10100 (M) => {
10101 const k = this.buffers[this.buffers.length - 1]
10102 k ? k.push(() => m.call(N, M)) : m.call(N, M)
10103 },
10104 void 0,
10105 A
10106 )
10107 }
10108 bufferEvents(l) {
10109 const m = []
10110 this.buffers.push(m)
10111 const N = l()
10112 return this.buffers.pop(), m.forEach((A) => A()), N
10113 }
10114 }
10115 n.EventBufferer = u
10116 class o {
10117 constructor() {
10118 ;(this.listening = !1),
10119 (this.inputEvent = a.None),
10120 (this.inputEventListener = i.Disposable.None),
10121 (this.emitter = new g({
10122 onDidAddFirstListener: () => {
10123 ;(this.listening = !0),
10124 (this.inputEventListener = this.inputEvent(this.emitter.fire, this.emitter))
10125 },
10126 onDidRemoveLastListener: () => {
10127 ;(this.listening = !1), this.inputEventListener.dispose()
10128 },
10129 })),
10130 (this.event = this.emitter.event)
10131 }
10132 set input(l) {
10133 ;(this.inputEvent = l),
10134 this.listening &&
10135 (this.inputEventListener.dispose(),
10136 (this.inputEventListener = l(this.emitter.fire, this.emitter)))
10137 }
10138 dispose() {
10139 this.inputEventListener.dispose(), this.emitter.dispose()
10140 }
10141 }
10142 n.Relay = o
10143 }),
10144 Q(Y[53], X([0, 1, 9]), function (x, n, R) {
10145 'use strict'
10146 Object.defineProperty(n, '__esModule', { value: !0 }),
10147 (n.CancellationTokenSource = n.CancellationToken = void 0)
10148 const D = Object.freeze(function (L, h) {
10149 const a = setTimeout(L.bind(h), 0)
10150 return {
10151 dispose() {
10152 clearTimeout(a)
10153 },
10154 }
10155 })
10156 var i
10157 ;(function (L) {
10158 function h(a) {
10159 return a === L.None || a === L.Cancelled || a instanceof s
10160 ? !0
10161 : !a || typeof a != 'object'
10162 ? !1
10163 : typeof a.isCancellationRequested == 'boolean' &&
10164 typeof a.onCancellationRequested == 'function'
10165 }
10166 ;(L.isCancellationToken = h),
10167 (L.None = Object.freeze({
10168 isCancellationRequested: !1,
10169 onCancellationRequested: R.Event.None,
10170 })),
10171 (L.Cancelled = Object.freeze({ isCancellationRequested: !0, onCancellationRequested: D }))
10172 })((i = n.CancellationToken || (n.CancellationToken = {})))
10173 class s {
10174 constructor() {
10175 ;(this._isCancelled = !1), (this._emitter = null)
10176 }
10177 cancel() {
10178 this._isCancelled ||
10179 ((this._isCancelled = !0),
10180 this._emitter && (this._emitter.fire(void 0), this.dispose()))
10181 }
10182 get isCancellationRequested() {
10183 return this._isCancelled
10184 }
10185 get onCancellationRequested() {
10186 return this._isCancelled
10187 ? D
10188 : (this._emitter || (this._emitter = new R.Emitter()), this._emitter.event)
10189 }
10190 dispose() {
10191 this._emitter && (this._emitter.dispose(), (this._emitter = null))
10192 }
10193 }
10194 class p {
10195 constructor(h) {
10196 ;(this._token = void 0),
10197 (this._parentListener = void 0),
10198 (this._parentListener = h && h.onCancellationRequested(this.cancel, this))
10199 }
10200 get token() {
10201 return this._token || (this._token = new s()), this._token
10202 }
10203 cancel() {
10204 this._token
10205 ? this._token instanceof s && this._token.cancel()
10206 : (this._token = i.Cancelled)
10207 }
10208 dispose(h = !1) {
10209 var a
10210 h && this.cancel(),
10211 (a = this._parentListener) === null || a === void 0 || a.dispose(),
10212 this._token ? this._token instanceof s && this._token.dispose() : (this._token = i.None)
10213 }
10214 }
10215 n.CancellationTokenSource = p
10216 }),
10217 Q(Y[13], X([0, 1, 52, 8]), function (x, n, R, D) {
10218 'use strict'
10219 Object.defineProperty(n, '__esModule', { value: !0 }), (n.uriToFsPath = n.URI = void 0)
10220 const i = /^\w[\w\d+.-]*$/,
10221 s = /^\//,
10222 p = /^\/\//
10223 function L(o, c) {
10224 if (!o.scheme && c)
10225 throw new Error(
10226 `[UriError]: Scheme is missing: {scheme: "", authority: "${o.authority}", path: "${o.path}", query: "${o.query}", fragment: "${o.fragment}"}`
10227 )
10228 if (o.scheme && !i.test(o.scheme))
10229 throw new Error('[UriError]: Scheme contains illegal characters.')
10230 if (o.path) {
10231 if (o.authority) {
10232 if (!s.test(o.path))
10233 throw new Error(
10234 '[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character'
10235 )
10236 } else if (p.test(o.path))
10237 throw new Error(
10238 '[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")'
10239 )
10240 }
10241 }
10242 function h(o, c) {
10243 return !o && !c ? 'file' : o
10244 }
10245 function a(o, c) {
10246 switch (o) {
10247 case 'https':
10248 case 'http':
10249 case 'file':
10250 c ? c[0] !== e && (c = e + c) : (c = e)
10251 break
10252 }
10253 return c
10254 }
10255 const w = '',
10256 e = '/',
10257 b = /^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/
10258 class f {
10259 static isUri(c) {
10260 return c instanceof f
10261 ? !0
10262 : c
10263 ? typeof c.authority == 'string' &&
10264 typeof c.fragment == 'string' &&
10265 typeof c.path == 'string' &&
10266 typeof c.query == 'string' &&
10267 typeof c.scheme == 'string' &&
10268 typeof c.fsPath == 'string' &&
10269 typeof c.with == 'function' &&
10270 typeof c.toString == 'function'
10271 : !1
10272 }
10273 constructor(c, l, m, N, A, M = !1) {
10274 typeof c == 'object'
10275 ? ((this.scheme = c.scheme || w),
10276 (this.authority = c.authority || w),
10277 (this.path = c.path || w),
10278 (this.query = c.query || w),
10279 (this.fragment = c.fragment || w))
10280 : ((this.scheme = h(c, M)),
10281 (this.authority = l || w),
10282 (this.path = a(this.scheme, m || w)),
10283 (this.query = N || w),
10284 (this.fragment = A || w),
10285 L(this, M))
10286 }
10287 get fsPath() {
10288 return _(this, !1)
10289 }
10290 with(c) {
10291 if (!c) return this
10292 let { scheme: l, authority: m, path: N, query: A, fragment: M } = c
10293 return (
10294 l === void 0 ? (l = this.scheme) : l === null && (l = w),
10295 m === void 0 ? (m = this.authority) : m === null && (m = w),
10296 N === void 0 ? (N = this.path) : N === null && (N = w),
10297 A === void 0 ? (A = this.query) : A === null && (A = w),
10298 M === void 0 ? (M = this.fragment) : M === null && (M = w),
10299 l === this.scheme &&
10300 m === this.authority &&
10301 N === this.path &&
10302 A === this.query &&
10303 M === this.fragment
10304 ? this
10305 : new g(l, m, N, A, M)
10306 )
10307 }
10308 static parse(c, l = !1) {
10309 const m = b.exec(c)
10310 return m
10311 ? new g(m[2] || w, u(m[4] || w), u(m[5] || w), u(m[7] || w), u(m[9] || w), l)
10312 : new g(w, w, w, w, w)
10313 }
10314 static file(c) {
10315 let l = w
10316 if ((D.isWindows && (c = c.replace(/\\/g, e)), c[0] === e && c[1] === e)) {
10317 const m = c.indexOf(e, 2)
10318 m === -1
10319 ? ((l = c.substring(2)), (c = e))
10320 : ((l = c.substring(2, m)), (c = c.substring(m) || e))
10321 }
10322 return new g('file', l, c, w, w)
10323 }
10324 static from(c) {
10325 const l = new g(c.scheme, c.authority, c.path, c.query, c.fragment)
10326 return L(l, !0), l
10327 }
10328 static joinPath(c, ...l) {
10329 if (!c.path) throw new Error('[UriError]: cannot call joinPath on URI without path')
10330 let m
10331 return (
10332 D.isWindows && c.scheme === 'file'
10333 ? (m = f.file(R.win32.join(_(c, !0), ...l)).path)
10334 : (m = R.posix.join(c.path, ...l)),
10335 c.with({ path: m })
10336 )
10337 }
10338 toString(c = !1) {
10339 return d(this, c)
10340 }
10341 toJSON() {
10342 return this
10343 }
10344 static revive(c) {
10345 if (c) {
10346 if (c instanceof f) return c
10347 {
10348 const l = new g(c)
10349 return (l._formatted = c.external), (l._fsPath = c._sep === v ? c.fsPath : null), l
10350 }
10351 } else return c
10352 }
10353 }
10354 n.URI = f
10355 const v = D.isWindows ? 1 : void 0
10356 class g extends f {
10357 constructor() {
10358 super(...arguments), (this._formatted = null), (this._fsPath = null)
10359 }
10360 get fsPath() {
10361 return this._fsPath || (this._fsPath = _(this, !1)), this._fsPath
10362 }
10363 toString(c = !1) {
10364 return c
10365 ? d(this, !0)
10366 : (this._formatted || (this._formatted = d(this, !1)), this._formatted)
10367 }
10368 toJSON() {
10369 const c = { $mid: 1 }
10370 return (
10371 this._fsPath && ((c.fsPath = this._fsPath), (c._sep = v)),
10372 this._formatted && (c.external = this._formatted),
10373 this.path && (c.path = this.path),
10374 this.scheme && (c.scheme = this.scheme),
10375 this.authority && (c.authority = this.authority),
10376 this.query && (c.query = this.query),
10377 this.fragment && (c.fragment = this.fragment),
10378 c
10379 )
10380 }
10381 }
10382 const S = {
10383 [58]: '%3A',
10384 [47]: '%2F',
10385 [63]: '%3F',
10386 [35]: '%23',
10387 [91]: '%5B',
10388 [93]: '%5D',
10389 [64]: '%40',
10390 [33]: '%21',
10391 [36]: '%24',
10392 [38]: '%26',
10393 [39]: '%27',
10394 [40]: '%28',
10395 [41]: '%29',
10396 [42]: '%2A',
10397 [43]: '%2B',
10398 [44]: '%2C',
10399 [59]: '%3B',
10400 [61]: '%3D',
10401 [32]: '%20',
10402 }
10403 function E(o, c, l) {
10404 let m,
10405 N = -1
10406 for (let A = 0; A < o.length; A++) {
10407 const M = o.charCodeAt(A)
10408 if (
10409 (M >= 97 && M <= 122) ||
10410 (M >= 65 && M <= 90) ||
10411 (M >= 48 && M <= 57) ||
10412 M === 45 ||
10413 M === 46 ||
10414 M === 95 ||
10415 M === 126 ||
10416 (c && M === 47) ||
10417 (l && M === 91) ||
10418 (l && M === 93) ||
10419 (l && M === 58)
10420 )
10421 N !== -1 && ((m += encodeURIComponent(o.substring(N, A))), (N = -1)),
10422 m !== void 0 && (m += o.charAt(A))
10423 else {
10424 m === void 0 && (m = o.substr(0, A))
10425 const k = S[M]
10426 k !== void 0
10427 ? (N !== -1 && ((m += encodeURIComponent(o.substring(N, A))), (N = -1)), (m += k))
10428 : N === -1 && (N = A)
10429 }
10430 }
10431 return N !== -1 && (m += encodeURIComponent(o.substring(N))), m !== void 0 ? m : o
10432 }
10433 function y(o) {
10434 let c
10435 for (let l = 0; l < o.length; l++) {
10436 const m = o.charCodeAt(l)
10437 m === 35 || m === 63
10438 ? (c === void 0 && (c = o.substr(0, l)), (c += S[m]))
10439 : c !== void 0 && (c += o[l])
10440 }
10441 return c !== void 0 ? c : o
10442 }
10443 function _(o, c) {
10444 let l
10445 return (
10446 o.authority && o.path.length > 1 && o.scheme === 'file'
10447 ? (l = `//${o.authority}${o.path}`)
10448 : o.path.charCodeAt(0) === 47 &&
10449 ((o.path.charCodeAt(1) >= 65 && o.path.charCodeAt(1) <= 90) ||
10450 (o.path.charCodeAt(1) >= 97 && o.path.charCodeAt(1) <= 122)) &&
10451 o.path.charCodeAt(2) === 58
10452 ? c
10453 ? (l = o.path.substr(1))
10454 : (l = o.path[1].toLowerCase() + o.path.substr(2))
10455 : (l = o.path),
10456 D.isWindows && (l = l.replace(/\//g, '\\')),
10457 l
10458 )
10459 }
10460 n.uriToFsPath = _
10461 function d(o, c) {
10462 const l = c ? y : E
10463 let m = '',
10464 { scheme: N, authority: A, path: M, query: k, fragment: q } = o
10465 if ((N && ((m += N), (m += ':')), (A || N === 'file') && ((m += e), (m += e)), A)) {
10466 let I = A.indexOf('@')
10467 if (I !== -1) {
10468 const B = A.substr(0, I)
10469 ;(A = A.substr(I + 1)),
10470 (I = B.lastIndexOf(':')),
10471 I === -1
10472 ? (m += l(B, !1, !1))
10473 : ((m += l(B.substr(0, I), !1, !1)), (m += ':'), (m += l(B.substr(I + 1), !1, !0))),
10474 (m += '@')
10475 }
10476 ;(A = A.toLowerCase()),
10477 (I = A.lastIndexOf(':')),
10478 I === -1 ? (m += l(A, !1, !0)) : ((m += l(A.substr(0, I), !1, !0)), (m += A.substr(I)))
10479 }
10480 if (M) {
10481 if (M.length >= 3 && M.charCodeAt(0) === 47 && M.charCodeAt(2) === 58) {
10482 const I = M.charCodeAt(1)
10483 I >= 65 && I <= 90 && (M = `/${String.fromCharCode(I + 32)}:${M.substr(3)}`)
10484 } else if (M.length >= 2 && M.charCodeAt(1) === 58) {
10485 const I = M.charCodeAt(0)
10486 I >= 65 && I <= 90 && (M = `${String.fromCharCode(I + 32)}:${M.substr(2)}`)
10487 }
10488 m += l(M, !0, !1)
10489 }
10490 return (
10491 k && ((m += '?'), (m += l(k, !1, !1))), q && ((m += '#'), (m += c ? q : E(q, !1, !1))), m
10492 )
10493 }
10494 function C(o) {
10495 try {
10496 return decodeURIComponent(o)
10497 } catch {
10498 return o.length > 3 ? o.substr(0, 3) + C(o.substr(3)) : o
10499 }
10500 }
10501 const r = /(%[0-9A-Za-z][0-9A-Za-z])+/g
10502 function u(o) {
10503 return o.match(r) ? o.replace(r, (c) => C(c)) : o
10504 }
10505 }),
10506 Q(Y[58], X([0, 1, 4, 9, 11, 12, 8, 5]), function (x, n, R, D, i, s, p, L) {
10507 'use strict'
10508 Object.defineProperty(n, '__esModule', { value: !0 }),
10509 (n.create =
10510 n.SimpleWorkerServer =
10511 n.SimpleWorkerClient =
10512 n.logOnceWebWorkerWarning =
10513 void 0)
10514 const h = '$initialize'
10515 let a = !1
10516 function w(u) {
10517 !p.isWeb ||
10518 (a ||
10519 ((a = !0),
10520 console.warn(
10521 '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'
10522 )),
10523 console.warn(u.message))
10524 }
10525 n.logOnceWebWorkerWarning = w
10526 class e {
10527 constructor(o, c, l, m) {
10528 ;(this.vsWorker = o), (this.req = c), (this.method = l), (this.args = m), (this.type = 0)
10529 }
10530 }
10531 class b {
10532 constructor(o, c, l, m) {
10533 ;(this.vsWorker = o), (this.seq = c), (this.res = l), (this.err = m), (this.type = 1)
10534 }
10535 }
10536 class f {
10537 constructor(o, c, l, m) {
10538 ;(this.vsWorker = o),
10539 (this.req = c),
10540 (this.eventName = l),
10541 (this.arg = m),
10542 (this.type = 2)
10543 }
10544 }
10545 class v {
10546 constructor(o, c, l) {
10547 ;(this.vsWorker = o), (this.req = c), (this.event = l), (this.type = 3)
10548 }
10549 }
10550 class g {
10551 constructor(o, c) {
10552 ;(this.vsWorker = o), (this.req = c), (this.type = 4)
10553 }
10554 }
10555 class S {
10556 constructor(o) {
10557 ;(this._workerId = -1),
10558 (this._handler = o),
10559 (this._lastSentReq = 0),
10560 (this._pendingReplies = Object.create(null)),
10561 (this._pendingEmitters = new Map()),
10562 (this._pendingEvents = new Map())
10563 }
10564 setWorkerId(o) {
10565 this._workerId = o
10566 }
10567 sendMessage(o, c) {
10568 const l = String(++this._lastSentReq)
10569 return new Promise((m, N) => {
10570 ;(this._pendingReplies[l] = { resolve: m, reject: N }),
10571 this._send(new e(this._workerId, l, o, c))
10572 })
10573 }
10574 listen(o, c) {
10575 let l = null
10576 const m = new D.Emitter({
10577 onWillAddFirstListener: () => {
10578 ;(l = String(++this._lastSentReq)),
10579 this._pendingEmitters.set(l, m),
10580 this._send(new f(this._workerId, l, o, c))
10581 },
10582 onDidRemoveLastListener: () => {
10583 this._pendingEmitters.delete(l), this._send(new g(this._workerId, l)), (l = null)
10584 },
10585 })
10586 return m.event
10587 }
10588 handleMessage(o) {
10589 !o ||
10590 !o.vsWorker ||
10591 (this._workerId !== -1 && o.vsWorker !== this._workerId) ||
10592 this._handleMessage(o)
10593 }
10594 _handleMessage(o) {
10595 switch (o.type) {
10596 case 1:
10597 return this._handleReplyMessage(o)
10598 case 0:
10599 return this._handleRequestMessage(o)
10600 case 2:
10601 return this._handleSubscribeEventMessage(o)
10602 case 3:
10603 return this._handleEventMessage(o)
10604 case 4:
10605 return this._handleUnsubscribeEventMessage(o)
10606 }
10607 }
10608 _handleReplyMessage(o) {
10609 if (!this._pendingReplies[o.seq]) {
10610 console.warn('Got reply to unknown seq')
10611 return
10612 }
10613 const c = this._pendingReplies[o.seq]
10614 if ((delete this._pendingReplies[o.seq], o.err)) {
10615 let l = o.err
10616 o.err.$isError &&
10617 ((l = new Error()),
10618 (l.name = o.err.name),
10619 (l.message = o.err.message),
10620 (l.stack = o.err.stack)),
10621 c.reject(l)
10622 return
10623 }
10624 c.resolve(o.res)
10625 }
10626 _handleRequestMessage(o) {
10627 const c = o.req
10628 this._handler.handleMessage(o.method, o.args).then(
10629 (m) => {
10630 this._send(new b(this._workerId, c, m, void 0))
10631 },
10632 (m) => {
10633 m.detail instanceof Error &&
10634 (m.detail = (0, R.transformErrorForSerialization)(m.detail)),
10635 this._send(
10636 new b(this._workerId, c, void 0, (0, R.transformErrorForSerialization)(m))
10637 )
10638 }
10639 )
10640 }
10641 _handleSubscribeEventMessage(o) {
10642 const c = o.req,
10643 l = this._handler.handleEvent(
10644 o.eventName,
10645 o.arg
10646 )((m) => {
10647 this._send(new v(this._workerId, c, m))
10648 })
10649 this._pendingEvents.set(c, l)
10650 }
10651 _handleEventMessage(o) {
10652 if (!this._pendingEmitters.has(o.req)) {
10653 console.warn('Got event for unknown req')
10654 return
10655 }
10656 this._pendingEmitters.get(o.req).fire(o.event)
10657 }
10658 _handleUnsubscribeEventMessage(o) {
10659 if (!this._pendingEvents.has(o.req)) {
10660 console.warn('Got unsubscribe for unknown req')
10661 return
10662 }
10663 this._pendingEvents.get(o.req).dispose(), this._pendingEvents.delete(o.req)
10664 }
10665 _send(o) {
10666 const c = []
10667 if (o.type === 0)
10668 for (let l = 0; l < o.args.length; l++)
10669 o.args[l] instanceof ArrayBuffer && c.push(o.args[l])
10670 else o.type === 1 && o.res instanceof ArrayBuffer && c.push(o.res)
10671 this._handler.sendMessage(o, c)
10672 }
10673 }
10674 class E extends i.Disposable {
10675 constructor(o, c, l) {
10676 super()
10677 let m = null
10678 ;(this._worker = this._register(
10679 o.create(
10680 'vs/base/common/worker/simpleWorker',
10681 (I) => {
10682 this._protocol.handleMessage(I)
10683 },
10684 (I) => {
10685 m?.(I)
10686 }
10687 )
10688 )),
10689 (this._protocol = new S({
10690 sendMessage: (I, B) => {
10691 this._worker.postMessage(I, B)
10692 },
10693 handleMessage: (I, B) => {
10694 if (typeof l[I] != 'function')
10695 return Promise.reject(new Error('Missing method ' + I + ' on main thread host.'))
10696 try {
10697 return Promise.resolve(l[I].apply(l, B))
10698 } catch (H) {
10699 return Promise.reject(H)
10700 }
10701 },
10702 handleEvent: (I, B) => {
10703 if (_(I)) {
10704 const H = l[I].call(l, B)
10705 if (typeof H != 'function')
10706 throw new Error(`Missing dynamic event ${I} on main thread host.`)
10707 return H
10708 }
10709 if (y(I)) {
10710 const H = l[I]
10711 if (typeof H != 'function')
10712 throw new Error(`Missing event ${I} on main thread host.`)
10713 return H
10714 }
10715 throw new Error(`Malformed event name ${I}`)
10716 },
10717 })),
10718 this._protocol.setWorkerId(this._worker.getId())
10719 let N = null
10720 const A = globalThis.require
10721 typeof A < 'u' && typeof A.getConfig == 'function'
10722 ? (N = A.getConfig())
10723 : typeof globalThis.requirejs < 'u' && (N = globalThis.requirejs.s.contexts._.config)
10724 const M = (0, s.getAllMethodNames)(l)
10725 this._onModuleLoaded = this._protocol.sendMessage(h, [
10726 this._worker.getId(),
10727 JSON.parse(JSON.stringify(N)),
10728 c,
10729 M,
10730 ])
10731 const k = (I, B) => this._request(I, B),
10732 q = (I, B) => this._protocol.listen(I, B)
10733 this._lazyProxy = new Promise((I, B) => {
10734 ;(m = B),
10735 this._onModuleLoaded.then(
10736 (H) => {
10737 I(d(H, k, q))
10738 },
10739 (H) => {
10740 B(H), this._onError('Worker failed to load ' + c, H)
10741 }
10742 )
10743 })
10744 }
10745 getProxyObject() {
10746 return this._lazyProxy
10747 }
10748 _request(o, c) {
10749 return new Promise((l, m) => {
10750 this._onModuleLoaded.then(() => {
10751 this._protocol.sendMessage(o, c).then(l, m)
10752 }, m)
10753 })
10754 }
10755 _onError(o, c) {
10756 console.error(o), console.info(c)
10757 }
10758 }
10759 n.SimpleWorkerClient = E
10760 function y(u) {
10761 return u[0] === 'o' && u[1] === 'n' && L.isUpperAsciiLetter(u.charCodeAt(2))
10762 }
10763 function _(u) {
10764 return /^onDynamic/.test(u) && L.isUpperAsciiLetter(u.charCodeAt(9))
10765 }
10766 function d(u, o, c) {
10767 const l = (A) =>
10768 function () {
10769 const M = Array.prototype.slice.call(arguments, 0)
10770 return o(A, M)
10771 },
10772 m = (A) =>
10773 function (M) {
10774 return c(A, M)
10775 },
10776 N = {}
10777 for (const A of u) {
10778 if (_(A)) {
10779 N[A] = m(A)
10780 continue
10781 }
10782 if (y(A)) {
10783 N[A] = c(A, void 0)
10784 continue
10785 }
10786 N[A] = l(A)
10787 }
10788 return N
10789 }
10790 class C {
10791 constructor(o, c) {
10792 ;(this._requestHandlerFactory = c),
10793 (this._requestHandler = null),
10794 (this._protocol = new S({
10795 sendMessage: (l, m) => {
10796 o(l, m)
10797 },
10798 handleMessage: (l, m) => this._handleMessage(l, m),
10799 handleEvent: (l, m) => this._handleEvent(l, m),
10800 }))
10801 }
10802 onmessage(o) {
10803 this._protocol.handleMessage(o)
10804 }
10805 _handleMessage(o, c) {
10806 if (o === h) return this.initialize(c[0], c[1], c[2], c[3])
10807 if (!this._requestHandler || typeof this._requestHandler[o] != 'function')
10808 return Promise.reject(new Error('Missing requestHandler or method: ' + o))
10809 try {
10810 return Promise.resolve(this._requestHandler[o].apply(this._requestHandler, c))
10811 } catch (l) {
10812 return Promise.reject(l)
10813 }
10814 }
10815 _handleEvent(o, c) {
10816 if (!this._requestHandler) throw new Error('Missing requestHandler')
10817 if (_(o)) {
10818 const l = this._requestHandler[o].call(this._requestHandler, c)
10819 if (typeof l != 'function')
10820 throw new Error(`Missing dynamic event ${o} on request handler.`)
10821 return l
10822 }
10823 if (y(o)) {
10824 const l = this._requestHandler[o]
10825 if (typeof l != 'function') throw new Error(`Missing event ${o} on request handler.`)
10826 return l
10827 }
10828 throw new Error(`Malformed event name ${o}`)
10829 }
10830 initialize(o, c, l, m) {
10831 this._protocol.setWorkerId(o)
10832 const M = d(
10833 m,
10834 (k, q) => this._protocol.sendMessage(k, q),
10835 (k, q) => this._protocol.listen(k, q)
10836 )
10837 return this._requestHandlerFactory
10838 ? ((this._requestHandler = this._requestHandlerFactory(M)),
10839 Promise.resolve((0, s.getAllMethodNames)(this._requestHandler)))
10840 : (c &&
10841 (typeof c.baseUrl < 'u' && delete c.baseUrl,
10842 typeof c.paths < 'u' && typeof c.paths.vs < 'u' && delete c.paths.vs,
10843 typeof c.trustedTypesPolicy !== void 0 && delete c.trustedTypesPolicy,
10844 (c.catchError = !0),
10845 globalThis.require.config(c)),
10846 new Promise((k, q) => {
10847 ;(globalThis.require || x)(
10848 [l],
10849 (B) => {
10850 if (((this._requestHandler = B.create(M)), !this._requestHandler)) {
10851 q(new Error('No RequestHandler!'))
10852 return
10853 }
10854 k((0, s.getAllMethodNames)(this._requestHandler))
10855 },
10856 q
10857 )
10858 }))
10859 }
10860 }
10861 n.SimpleWorkerServer = C
10862 function r(u) {
10863 return new C(u, null)
10864 }
10865 n.create = r
10866 }),
10867 Q(Y[54], X([0, 1, 9, 11]), function (x, n, R, D) {
10868 'use strict'
10869 Object.defineProperty(n, '__esModule', { value: !0 }), (n.TokenizationRegistry = void 0)
10870 class i {
10871 constructor() {
10872 ;(this._tokenizationSupports = new Map()),
10873 (this._factories = new Map()),
10874 (this._onDidChange = new R.Emitter()),
10875 (this.onDidChange = this._onDidChange.event),
10876 (this._colorMap = null)
10877 }
10878 handleChange(L) {
10879 this._onDidChange.fire({ changedLanguages: L, changedColorMap: !1 })
10880 }
10881 register(L, h) {
10882 return (
10883 this._tokenizationSupports.set(L, h),
10884 this.handleChange([L]),
10885 (0, D.toDisposable)(() => {
10886 this._tokenizationSupports.get(L) === h &&
10887 (this._tokenizationSupports.delete(L), this.handleChange([L]))
10888 })
10889 )
10890 }
10891 get(L) {
10892 return this._tokenizationSupports.get(L) || null
10893 }
10894 registerFactory(L, h) {
10895 var a
10896 ;(a = this._factories.get(L)) === null || a === void 0 || a.dispose()
10897 const w = new s(this, L, h)
10898 return (
10899 this._factories.set(L, w),
10900 (0, D.toDisposable)(() => {
10901 const e = this._factories.get(L)
10902 !e || e !== w || (this._factories.delete(L), e.dispose())
10903 })
10904 )
10905 }
10906 getOrCreate(L) {
10907 return be(this, void 0, void 0, function* () {
10908 const h = this.get(L)
10909 if (h) return h
10910 const a = this._factories.get(L)
10911 return !a || a.isResolved ? null : (yield a.resolve(), this.get(L))
10912 })
10913 }
10914 isResolved(L) {
10915 if (this.get(L)) return !0
10916 const a = this._factories.get(L)
10917 return !!(!a || a.isResolved)
10918 }
10919 setColorMap(L) {
10920 ;(this._colorMap = L),
10921 this._onDidChange.fire({
10922 changedLanguages: Array.from(this._tokenizationSupports.keys()),
10923 changedColorMap: !0,
10924 })
10925 }
10926 getColorMap() {
10927 return this._colorMap
10928 }
10929 getDefaultBackground() {
10930 return this._colorMap && this._colorMap.length > 2 ? this._colorMap[2] : null
10931 }
10932 }
10933 n.TokenizationRegistry = i
10934 class s extends D.Disposable {
10935 get isResolved() {
10936 return this._isResolved
10937 }
10938 constructor(L, h, a) {
10939 super(),
10940 (this._registry = L),
10941 (this._languageId = h),
10942 (this._factory = a),
10943 (this._isDisposed = !1),
10944 (this._resolvePromise = null),
10945 (this._isResolved = !1)
10946 }
10947 dispose() {
10948 ;(this._isDisposed = !0), super.dispose()
10949 }
10950 resolve() {
10951 return be(this, void 0, void 0, function* () {
10952 return (
10953 this._resolvePromise || (this._resolvePromise = this._create()), this._resolvePromise
10954 )
10955 })
10956 }
10957 _create() {
10958 return be(this, void 0, void 0, function* () {
10959 const L = yield this._factory.tokenizationSupport
10960 ;(this._isResolved = !0),
10961 L && !this._isDisposed && this._register(this._registry.register(this._languageId, L))
10962 })
10963 }
10964 }
10965 }),
10966 Q(Y[55], X([0, 1, 32, 13, 2, 54]), function (x, n, R, D, i, s) {
10967 'use strict'
10968 Object.defineProperty(n, '__esModule', { value: !0 }),
10969 (n.TokenizationRegistry =
10970 n.LazyTokenizationSupport =
10971 n.InlayHintKind =
10972 n.Command =
10973 n.FoldingRangeKind =
10974 n.SymbolKinds =
10975 n.isLocationLink =
10976 n.DocumentHighlightKind =
10977 n.SignatureHelpTriggerKind =
10978 n.InlineCompletionTriggerKind =
10979 n.CompletionItemKinds =
10980 n.EncodedTokenizationResult =
10981 n.TokenizationResult =
10982 n.Token =
10983 void 0)
10984 class p {
10985 constructor(d, C, r) {
10986 ;(this.offset = d), (this.type = C), (this.language = r), (this._tokenBrand = void 0)
10987 }
10988 toString() {
10989 return '(' + this.offset + ', ' + this.type + ')'
10990 }
10991 }
10992 n.Token = p
10993 class L {
10994 constructor(d, C) {
10995 ;(this.tokens = d), (this.endState = C), (this._tokenizationResultBrand = void 0)
10996 }
10997 }
10998 n.TokenizationResult = L
10999 class h {
11000 constructor(d, C) {
11001 ;(this.tokens = d), (this.endState = C), (this._encodedTokenizationResultBrand = void 0)
11002 }
11003 }
11004 n.EncodedTokenizationResult = h
11005 var a
11006 ;(function (_) {
11007 const d = new Map()
11008 d.set(0, R.Codicon.symbolMethod),
11009 d.set(1, R.Codicon.symbolFunction),
11010 d.set(2, R.Codicon.symbolConstructor),
11011 d.set(3, R.Codicon.symbolField),
11012 d.set(4, R.Codicon.symbolVariable),
11013 d.set(5, R.Codicon.symbolClass),
11014 d.set(6, R.Codicon.symbolStruct),
11015 d.set(7, R.Codicon.symbolInterface),
11016 d.set(8, R.Codicon.symbolModule),
11017 d.set(9, R.Codicon.symbolProperty),
11018 d.set(10, R.Codicon.symbolEvent),
11019 d.set(11, R.Codicon.symbolOperator),
11020 d.set(12, R.Codicon.symbolUnit),
11021 d.set(13, R.Codicon.symbolValue),
11022 d.set(15, R.Codicon.symbolEnum),
11023 d.set(14, R.Codicon.symbolConstant),
11024 d.set(15, R.Codicon.symbolEnum),
11025 d.set(16, R.Codicon.symbolEnumMember),
11026 d.set(17, R.Codicon.symbolKeyword),
11027 d.set(27, R.Codicon.symbolSnippet),
11028 d.set(18, R.Codicon.symbolText),
11029 d.set(19, R.Codicon.symbolColor),
11030 d.set(20, R.Codicon.symbolFile),
11031 d.set(21, R.Codicon.symbolReference),
11032 d.set(22, R.Codicon.symbolCustomColor),
11033 d.set(23, R.Codicon.symbolFolder),
11034 d.set(24, R.Codicon.symbolTypeParameter),
11035 d.set(25, R.Codicon.account),
11036 d.set(26, R.Codicon.issues)
11037 function C(o) {
11038 let c = d.get(o)
11039 return (
11040 c ||
11041 (console.info('No codicon found for CompletionItemKind ' + o),
11042 (c = R.Codicon.symbolProperty)),
11043 c
11044 )
11045 }
11046 _.toIcon = C
11047 const r = new Map()
11048 r.set('method', 0),
11049 r.set('function', 1),
11050 r.set('constructor', 2),
11051 r.set('field', 3),
11052 r.set('variable', 4),
11053 r.set('class', 5),
11054 r.set('struct', 6),
11055 r.set('interface', 7),
11056 r.set('module', 8),
11057 r.set('property', 9),
11058 r.set('event', 10),
11059 r.set('operator', 11),
11060 r.set('unit', 12),
11061 r.set('value', 13),
11062 r.set('constant', 14),
11063 r.set('enum', 15),
11064 r.set('enum-member', 16),
11065 r.set('enumMember', 16),
11066 r.set('keyword', 17),
11067 r.set('snippet', 27),
11068 r.set('text', 18),
11069 r.set('color', 19),
11070 r.set('file', 20),
11071 r.set('reference', 21),
11072 r.set('customcolor', 22),
11073 r.set('folder', 23),
11074 r.set('type-parameter', 24),
11075 r.set('typeParameter', 24),
11076 r.set('account', 25),
11077 r.set('issue', 26)
11078 function u(o, c) {
11079 let l = r.get(o)
11080 return typeof l > 'u' && !c && (l = 9), l
11081 }
11082 _.fromString = u
11083 })((a = n.CompletionItemKinds || (n.CompletionItemKinds = {})))
11084 var w
11085 ;(function (_) {
11086 ;(_[(_.Automatic = 0)] = 'Automatic'), (_[(_.Explicit = 1)] = 'Explicit')
11087 })((w = n.InlineCompletionTriggerKind || (n.InlineCompletionTriggerKind = {})))
11088 var e
11089 ;(function (_) {
11090 ;(_[(_.Invoke = 1)] = 'Invoke'),
11091 (_[(_.TriggerCharacter = 2)] = 'TriggerCharacter'),
11092 (_[(_.ContentChange = 3)] = 'ContentChange')
11093 })((e = n.SignatureHelpTriggerKind || (n.SignatureHelpTriggerKind = {})))
11094 var b
11095 ;(function (_) {
11096 ;(_[(_.Text = 0)] = 'Text'), (_[(_.Read = 1)] = 'Read'), (_[(_.Write = 2)] = 'Write')
11097 })((b = n.DocumentHighlightKind || (n.DocumentHighlightKind = {})))
11098 function f(_) {
11099 return (
11100 _ &&
11101 D.URI.isUri(_.uri) &&
11102 i.Range.isIRange(_.range) &&
11103 (i.Range.isIRange(_.originSelectionRange) || i.Range.isIRange(_.targetSelectionRange))
11104 )
11105 }
11106 n.isLocationLink = f
11107 var v
11108 ;(function (_) {
11109 const d = new Map()
11110 d.set(0, R.Codicon.symbolFile),
11111 d.set(1, R.Codicon.symbolModule),
11112 d.set(2, R.Codicon.symbolNamespace),
11113 d.set(3, R.Codicon.symbolPackage),
11114 d.set(4, R.Codicon.symbolClass),
11115 d.set(5, R.Codicon.symbolMethod),
11116 d.set(6, R.Codicon.symbolProperty),
11117 d.set(7, R.Codicon.symbolField),
11118 d.set(8, R.Codicon.symbolConstructor),
11119 d.set(9, R.Codicon.symbolEnum),
11120 d.set(10, R.Codicon.symbolInterface),
11121 d.set(11, R.Codicon.symbolFunction),
11122 d.set(12, R.Codicon.symbolVariable),
11123 d.set(13, R.Codicon.symbolConstant),
11124 d.set(14, R.Codicon.symbolString),
11125 d.set(15, R.Codicon.symbolNumber),
11126 d.set(16, R.Codicon.symbolBoolean),
11127 d.set(17, R.Codicon.symbolArray),
11128 d.set(18, R.Codicon.symbolObject),
11129 d.set(19, R.Codicon.symbolKey),
11130 d.set(20, R.Codicon.symbolNull),
11131 d.set(21, R.Codicon.symbolEnumMember),
11132 d.set(22, R.Codicon.symbolStruct),
11133 d.set(23, R.Codicon.symbolEvent),
11134 d.set(24, R.Codicon.symbolOperator),
11135 d.set(25, R.Codicon.symbolTypeParameter)
11136 function C(r) {
11137 let u = d.get(r)
11138 return (
11139 u ||
11140 (console.info('No codicon found for SymbolKind ' + r),
11141 (u = R.Codicon.symbolProperty)),
11142 u
11143 )
11144 }
11145 _.toIcon = C
11146 })((v = n.SymbolKinds || (n.SymbolKinds = {})))
11147 class g {
11148 static fromValue(d) {
11149 switch (d) {
11150 case 'comment':
11151 return g.Comment
11152 case 'imports':
11153 return g.Imports
11154 case 'region':
11155 return g.Region
11156 }
11157 return new g(d)
11158 }
11159 constructor(d) {
11160 this.value = d
11161 }
11162 }
11163 ;(g.Comment = new g('comment')),
11164 (g.Imports = new g('imports')),
11165 (g.Region = new g('region')),
11166 (n.FoldingRangeKind = g)
11167 var S
11168 ;(function (_) {
11169 function d(C) {
11170 return !C || typeof C != 'object'
11171 ? !1
11172 : typeof C.id == 'string' && typeof C.title == 'string'
11173 }
11174 _.is = d
11175 })((S = n.Command || (n.Command = {})))
11176 var E
11177 ;(function (_) {
11178 ;(_[(_.Type = 1)] = 'Type'), (_[(_.Parameter = 2)] = 'Parameter')
11179 })((E = n.InlayHintKind || (n.InlayHintKind = {})))
11180 class y {
11181 constructor(d) {
11182 ;(this.createSupport = d), (this._tokenizationSupport = null)
11183 }
11184 dispose() {
11185 this._tokenizationSupport &&
11186 this._tokenizationSupport.then((d) => {
11187 d && d.dispose()
11188 })
11189 }
11190 get tokenizationSupport() {
11191 return (
11192 this._tokenizationSupport || (this._tokenizationSupport = this.createSupport()),
11193 this._tokenizationSupport
11194 )
11195 }
11196 }
11197 ;(n.LazyTokenizationSupport = y), (n.TokenizationRegistry = new s.TokenizationRegistry())
11198 }),
11199 Q(
11200 Y[56],
11201 X([0, 1, 53, 9, 29, 13, 3, 2, 33, 55, 49]),
11202 function (x, n, R, D, i, s, p, L, h, a, w) {
11203 'use strict'
11204 Object.defineProperty(n, '__esModule', { value: !0 }),
11205 (n.createMonacoBaseAPI = n.KeyMod = void 0)
11206 class e {
11207 static chord(v, g) {
11208 return (0, i.KeyChord)(v, g)
11209 }
11210 }
11211 ;(e.CtrlCmd = 2048), (e.Shift = 1024), (e.Alt = 512), (e.WinCtrl = 256), (n.KeyMod = e)
11212 function b() {
11213 return {
11214 editor: void 0,
11215 languages: void 0,
11216 CancellationTokenSource: R.CancellationTokenSource,
11217 Emitter: D.Emitter,
11218 KeyCode: w.KeyCode,
11219 KeyMod: e,
11220 Position: p.Position,
11221 Range: L.Range,
11222 Selection: h.Selection,
11223 SelectionDirection: w.SelectionDirection,
11224 MarkerSeverity: w.MarkerSeverity,
11225 MarkerTag: w.MarkerTag,
11226 Uri: s.URI,
11227 Token: a.Token,
11228 }
11229 }
11230 n.createMonacoBaseAPI = b
11231 }
11232 ),
11233 Q(
11234 Y[59],
11235 X([0, 1, 17, 13, 3, 2, 46, 22, 42, 43, 56, 24, 48, 41, 12]),
11236 function (x, n, R, D, i, s, p, L, h, a, w, e, b, f, v) {
11237 'use strict'
11238 Object.defineProperty(n, '__esModule', { value: !0 }),
11239 (n.create = n.EditorSimpleWorker = void 0)
11240 class g extends p.MirrorTextModel {
11241 get uri() {
11242 return this._uri
11243 }
11244 get eol() {
11245 return this._eol
11246 }
11247 getValue() {
11248 return this.getText()
11249 }
11250 getLinesContent() {
11251 return this._lines.slice(0)
11252 }
11253 getLineCount() {
11254 return this._lines.length
11255 }
11256 getLineContent(_) {
11257 return this._lines[_ - 1]
11258 }
11259 getWordAtPosition(_, d) {
11260 const C = (0, L.getWordAtText)(
11261 _.column,
11262 (0, L.ensureValidWordDefinition)(d),
11263 this._lines[_.lineNumber - 1],
11264 0
11265 )
11266 return C ? new s.Range(_.lineNumber, C.startColumn, _.lineNumber, C.endColumn) : null
11267 }
11268 words(_) {
11269 const d = this._lines,
11270 C = this._wordenize.bind(this)
11271 let r = 0,
11272 u = '',
11273 o = 0,
11274 c = []
11275 return {
11276 *[Symbol.iterator]() {
11277 for (;;)
11278 if (o < c.length) {
11279 const l = u.substring(c[o].start, c[o].end)
11280 ;(o += 1), yield l
11281 } else if (r < d.length) (u = d[r]), (c = C(u, _)), (o = 0), (r += 1)
11282 else break
11283 },
11284 }
11285 }
11286 getLineWords(_, d) {
11287 const C = this._lines[_ - 1],
11288 r = this._wordenize(C, d),
11289 u = []
11290 for (const o of r)
11291 u.push({
11292 word: C.substring(o.start, o.end),
11293 startColumn: o.start + 1,
11294 endColumn: o.end + 1,
11295 })
11296 return u
11297 }
11298 _wordenize(_, d) {
11299 const C = []
11300 let r
11301 for (d.lastIndex = 0; (r = d.exec(_)) && r[0].length !== 0; )
11302 C.push({ start: r.index, end: r.index + r[0].length })
11303 return C
11304 }
11305 getValueInRange(_) {
11306 if (((_ = this._validateRange(_)), _.startLineNumber === _.endLineNumber))
11307 return this._lines[_.startLineNumber - 1].substring(
11308 _.startColumn - 1,
11309 _.endColumn - 1
11310 )
11311 const d = this._eol,
11312 C = _.startLineNumber - 1,
11313 r = _.endLineNumber - 1,
11314 u = []
11315 u.push(this._lines[C].substring(_.startColumn - 1))
11316 for (let o = C + 1; o < r; o++) u.push(this._lines[o])
11317 return u.push(this._lines[r].substring(0, _.endColumn - 1)), u.join(d)
11318 }
11319 offsetAt(_) {
11320 return (
11321 (_ = this._validatePosition(_)),
11322 this._ensureLineStarts(),
11323 this._lineStarts.getPrefixSum(_.lineNumber - 2) + (_.column - 1)
11324 )
11325 }
11326 positionAt(_) {
11327 ;(_ = Math.floor(_)), (_ = Math.max(0, _)), this._ensureLineStarts()
11328 const d = this._lineStarts.getIndexOf(_),
11329 C = this._lines[d.index].length
11330 return { lineNumber: 1 + d.index, column: 1 + Math.min(d.remainder, C) }
11331 }
11332 _validateRange(_) {
11333 const d = this._validatePosition({
11334 lineNumber: _.startLineNumber,
11335 column: _.startColumn,
11336 }),
11337 C = this._validatePosition({ lineNumber: _.endLineNumber, column: _.endColumn })
11338 return d.lineNumber !== _.startLineNumber ||
11339 d.column !== _.startColumn ||
11340 C.lineNumber !== _.endLineNumber ||
11341 C.column !== _.endColumn
11342 ? {
11343 startLineNumber: d.lineNumber,
11344 startColumn: d.column,
11345 endLineNumber: C.lineNumber,
11346 endColumn: C.column,
11347 }
11348 : _
11349 }
11350 _validatePosition(_) {
11351 if (!i.Position.isIPosition(_)) throw new Error('bad position')
11352 let { lineNumber: d, column: C } = _,
11353 r = !1
11354 if (d < 1) (d = 1), (C = 1), (r = !0)
11355 else if (d > this._lines.length)
11356 (d = this._lines.length), (C = this._lines[d - 1].length + 1), (r = !0)
11357 else {
11358 const u = this._lines[d - 1].length + 1
11359 C < 1 ? ((C = 1), (r = !0)) : C > u && ((C = u), (r = !0))
11360 }
11361 return r ? { lineNumber: d, column: C } : _
11362 }
11363 }
11364 class S {
11365 constructor(_, d) {
11366 ;(this._host = _),
11367 (this._models = Object.create(null)),
11368 (this._foreignModuleFactory = d),
11369 (this._foreignModule = null)
11370 }
11371 dispose() {
11372 this._models = Object.create(null)
11373 }
11374 _getModel(_) {
11375 return this._models[_]
11376 }
11377 _getModels() {
11378 const _ = []
11379 return Object.keys(this._models).forEach((d) => _.push(this._models[d])), _
11380 }
11381 acceptNewModel(_) {
11382 this._models[_.url] = new g(D.URI.parse(_.url), _.lines, _.EOL, _.versionId)
11383 }
11384 acceptModelChanged(_, d) {
11385 if (!this._models[_]) return
11386 this._models[_].onEvents(d)
11387 }
11388 acceptRemovedModel(_) {
11389 !this._models[_] || delete this._models[_]
11390 }
11391 computeUnicodeHighlights(_, d, C) {
11392 return be(this, void 0, void 0, function* () {
11393 const r = this._getModel(_)
11394 return r
11395 ? b.UnicodeTextModelHighlighter.computeUnicodeHighlights(r, d, C)
11396 : {
11397 ranges: [],
11398 hasMore: !1,
11399 ambiguousCharacterCount: 0,
11400 invisibleCharacterCount: 0,
11401 nonBasicAsciiCharacterCount: 0,
11402 }
11403 })
11404 }
11405 computeDiff(_, d, C, r) {
11406 return be(this, void 0, void 0, function* () {
11407 const u = this._getModel(_),
11408 o = this._getModel(d)
11409 return !u || !o ? null : S.computeDiff(u, o, C, r)
11410 })
11411 }
11412 static computeDiff(_, d, C, r) {
11413 const u =
11414 r === 'experimental'
11415 ? f.linesDiffComputers.experimental
11416 : f.linesDiffComputers.smart,
11417 o = _.getLinesContent(),
11418 c = d.getLinesContent(),
11419 l = u.computeDiff(o, c, C)
11420 return {
11421 identical: l.changes.length > 0 ? !1 : this._modelsAreIdentical(_, d),
11422 quitEarly: l.hitTimeout,
11423 changes: l.changes.map((N) => {
11424 var A
11425 return [
11426 N.originalRange.startLineNumber,
11427 N.originalRange.endLineNumberExclusive,
11428 N.modifiedRange.startLineNumber,
11429 N.modifiedRange.endLineNumberExclusive,
11430 (A = N.innerChanges) === null || A === void 0
11431 ? void 0
11432 : A.map((M) => [
11433 M.originalRange.startLineNumber,
11434 M.originalRange.startColumn,
11435 M.originalRange.endLineNumber,
11436 M.originalRange.endColumn,
11437 M.modifiedRange.startLineNumber,
11438 M.modifiedRange.startColumn,
11439 M.modifiedRange.endLineNumber,
11440 M.modifiedRange.endColumn,
11441 ]),
11442 ]
11443 }),
11444 }
11445 }
11446 static _modelsAreIdentical(_, d) {
11447 const C = _.getLineCount(),
11448 r = d.getLineCount()
11449 if (C !== r) return !1
11450 for (let u = 1; u <= C; u++) {
11451 const o = _.getLineContent(u),
11452 c = d.getLineContent(u)
11453 if (o !== c) return !1
11454 }
11455 return !0
11456 }
11457 computeMoreMinimalEdits(_, d, C) {
11458 return be(this, void 0, void 0, function* () {
11459 const r = this._getModel(_)
11460 if (!r) return d
11461 const u = []
11462 let o
11463 d = d.slice(0).sort((c, l) => {
11464 if (c.range && l.range) return s.Range.compareRangesUsingStarts(c.range, l.range)
11465 const m = c.range ? 0 : 1,
11466 N = l.range ? 0 : 1
11467 return m - N
11468 })
11469 for (let { range: c, text: l, eol: m } of d) {
11470 if ((typeof m == 'number' && (o = m), s.Range.isEmpty(c) && !l)) continue
11471 const N = r.getValueInRange(c)
11472 if (((l = l.replace(/\r\n|\n|\r/g, r.eol)), N === l)) continue
11473 if (Math.max(l.length, N.length) > S._diffLimit) {
11474 u.push({ range: c, text: l })
11475 continue
11476 }
11477 const A = (0, R.stringDiff)(N, l, C),
11478 M = r.offsetAt(s.Range.lift(c).getStartPosition())
11479 for (const k of A) {
11480 const q = r.positionAt(M + k.originalStart),
11481 I = r.positionAt(M + k.originalStart + k.originalLength),
11482 B = {
11483 text: l.substr(k.modifiedStart, k.modifiedLength),
11484 range: {
11485 startLineNumber: q.lineNumber,
11486 startColumn: q.column,
11487 endLineNumber: I.lineNumber,
11488 endColumn: I.column,
11489 },
11490 }
11491 r.getValueInRange(B.range) !== B.text && u.push(B)
11492 }
11493 }
11494 return (
11495 typeof o == 'number' &&
11496 u.push({
11497 eol: o,
11498 text: '',
11499 range: { startLineNumber: 0, startColumn: 0, endLineNumber: 0, endColumn: 0 },
11500 }),
11501 u
11502 )
11503 })
11504 }
11505 computeLinks(_) {
11506 return be(this, void 0, void 0, function* () {
11507 const d = this._getModel(_)
11508 return d ? (0, h.computeLinks)(d) : null
11509 })
11510 }
11511 textualSuggest(_, d, C, r) {
11512 return be(this, void 0, void 0, function* () {
11513 const u = new e.StopWatch(!0),
11514 o = new RegExp(C, r),
11515 c = new Set()
11516 e: for (const l of _) {
11517 const m = this._getModel(l)
11518 if (!!m) {
11519 for (const N of m.words(o))
11520 if (!(N === d || !isNaN(Number(N))) && (c.add(N), c.size > S._suggestionsLimit))
11521 break e
11522 }
11523 }
11524 return { words: Array.from(c), duration: u.elapsed() }
11525 })
11526 }
11527 computeWordRanges(_, d, C, r) {
11528 return be(this, void 0, void 0, function* () {
11529 const u = this._getModel(_)
11530 if (!u) return Object.create(null)
11531 const o = new RegExp(C, r),
11532 c = Object.create(null)
11533 for (let l = d.startLineNumber; l < d.endLineNumber; l++) {
11534 const m = u.getLineWords(l, o)
11535 for (const N of m) {
11536 if (!isNaN(Number(N.word))) continue
11537 let A = c[N.word]
11538 A || ((A = []), (c[N.word] = A)),
11539 A.push({
11540 startLineNumber: l,
11541 startColumn: N.startColumn,
11542 endLineNumber: l,
11543 endColumn: N.endColumn,
11544 })
11545 }
11546 }
11547 return c
11548 })
11549 }
11550 navigateValueSet(_, d, C, r, u) {
11551 return be(this, void 0, void 0, function* () {
11552 const o = this._getModel(_)
11553 if (!o) return null
11554 const c = new RegExp(r, u)
11555 d.startColumn === d.endColumn &&
11556 (d = {
11557 startLineNumber: d.startLineNumber,
11558 startColumn: d.startColumn,
11559 endLineNumber: d.endLineNumber,
11560 endColumn: d.endColumn + 1,
11561 })
11562 const l = o.getValueInRange(d),
11563 m = o.getWordAtPosition({ lineNumber: d.startLineNumber, column: d.startColumn }, c)
11564 if (!m) return null
11565 const N = o.getValueInRange(m)
11566 return a.BasicInplaceReplace.INSTANCE.navigateValueSet(d, l, m, N, C)
11567 })
11568 }
11569 loadForeignModule(_, d, C) {
11570 const r = (c, l) => this._host.fhr(c, l),
11571 o = { host: (0, v.createProxyObject)(C, r), getMirrorModels: () => this._getModels() }
11572 return this._foreignModuleFactory
11573 ? ((this._foreignModule = this._foreignModuleFactory(o, d)),
11574 Promise.resolve((0, v.getAllMethodNames)(this._foreignModule)))
11575 : new Promise((c, l) => {
11576 x(
11577 [_],
11578 (m) => {
11579 ;(this._foreignModule = m.create(o, d)),
11580 c((0, v.getAllMethodNames)(this._foreignModule))
11581 },
11582 l
11583 )
11584 })
11585 }
11586 fmr(_, d) {
11587 if (!this._foreignModule || typeof this._foreignModule[_] != 'function')
11588 return Promise.reject(new Error('Missing requestHandler or method: ' + _))
11589 try {
11590 return Promise.resolve(this._foreignModule[_].apply(this._foreignModule, d))
11591 } catch (C) {
11592 return Promise.reject(C)
11593 }
11594 }
11595 }
11596 ;(S._diffLimit = 1e5), (S._suggestionsLimit = 1e4), (n.EditorSimpleWorker = S)
11597 function E(y) {
11598 return new S(y, null)
11599 }
11600 ;(n.create = E),
11601 typeof importScripts == 'function' && (globalThis.monaco = (0, w.createMonacoBaseAPI)())
11602 }
11603 )
11604}).call(this)
11605
11606//# sourceMappingURL=../../../../min-maps/vs/base/worker/workerMain.js.map