rwz-dev-proxy 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (136) hide show
  1. package/bin/rwz-dev-proxy.js +29 -0
  2. package/db.js +121 -0
  3. package/index.js +625 -0
  4. package/package.json +32 -0
  5. package/public/cdn/axios/dist/axios.min.js +3 -0
  6. package/public/cdn/element-plus/dist/index.css +1 -0
  7. package/public/cdn/element-plus/dist/index.full.js +72239 -0
  8. package/public/cdn/mockjs/dist/mock-min.js +10 -0
  9. package/public/cdn/monaco-editor/min/vs/_commonjsHelpers-CT9FvmAN.js +1 -0
  10. package/public/cdn/monaco-editor/min/vs/abap-D-t0cyap.js +1 -0
  11. package/public/cdn/monaco-editor/min/vs/apex-CcIm7xu6.js +1 -0
  12. package/public/cdn/monaco-editor/min/vs/assets/css.worker-HnVq6Ewq.js +93 -0
  13. package/public/cdn/monaco-editor/min/vs/assets/editor.worker-Be8ye1pW.js +26 -0
  14. package/public/cdn/monaco-editor/min/vs/assets/html.worker-B51mlPHg.js +470 -0
  15. package/public/cdn/monaco-editor/min/vs/assets/json.worker-DKiEKt88.js +58 -0
  16. package/public/cdn/monaco-editor/min/vs/assets/ts.worker-CMbG-7ft.js +67731 -0
  17. package/public/cdn/monaco-editor/min/vs/azcli-BA0tQDCg.js +1 -0
  18. package/public/cdn/monaco-editor/min/vs/basic-languages/monaco.contribution.js +1 -0
  19. package/public/cdn/monaco-editor/min/vs/bat-C397hTD6.js +1 -0
  20. package/public/cdn/monaco-editor/min/vs/bicep-DF5aW17k.js +2 -0
  21. package/public/cdn/monaco-editor/min/vs/cameligo-plsz8qhj.js +1 -0
  22. package/public/cdn/monaco-editor/min/vs/clojure-Y2auQMzK.js +1 -0
  23. package/public/cdn/monaco-editor/min/vs/coffee-Bu45yuWE.js +1 -0
  24. package/public/cdn/monaco-editor/min/vs/cpp-CkKPQIni.js +1 -0
  25. package/public/cdn/monaco-editor/min/vs/csharp-CX28MZyh.js +1 -0
  26. package/public/cdn/monaco-editor/min/vs/csp-D8uWnyxW.js +1 -0
  27. package/public/cdn/monaco-editor/min/vs/css-CaeNmE3S.js +3 -0
  28. package/public/cdn/monaco-editor/min/vs/cssMode-CjiAH6dQ.js +1 -0
  29. package/public/cdn/monaco-editor/min/vs/cypher-DVThT8BS.js +1 -0
  30. package/public/cdn/monaco-editor/min/vs/dart-CmGfCvrO.js +1 -0
  31. package/public/cdn/monaco-editor/min/vs/dockerfile-CZqqYdch.js +1 -0
  32. package/public/cdn/monaco-editor/min/vs/ecl-30fUercY.js +1 -0
  33. package/public/cdn/monaco-editor/min/vs/editor/editor.main.css +1 -0
  34. package/public/cdn/monaco-editor/min/vs/editor/editor.main.js +5 -0
  35. package/public/cdn/monaco-editor/min/vs/editor.api-CalNCsUg.js +903 -0
  36. package/public/cdn/monaco-editor/min/vs/elixir-xjPaIfzF.js +1 -0
  37. package/public/cdn/monaco-editor/min/vs/flow9-DqtmStfK.js +1 -0
  38. package/public/cdn/monaco-editor/min/vs/freemarker2-Cz_sV6Md.js +3 -0
  39. package/public/cdn/monaco-editor/min/vs/fsharp-BOMdg4U1.js +1 -0
  40. package/public/cdn/monaco-editor/min/vs/go-D_hbi-Jt.js +1 -0
  41. package/public/cdn/monaco-editor/min/vs/graphql-CKUU4kLG.js +1 -0
  42. package/public/cdn/monaco-editor/min/vs/handlebars-OwglfO-1.js +1 -0
  43. package/public/cdn/monaco-editor/min/vs/hcl-DTaboeZW.js +1 -0
  44. package/public/cdn/monaco-editor/min/vs/html-Pa1xEWsY.js +1 -0
  45. package/public/cdn/monaco-editor/min/vs/htmlMode-Bz67EXwp.js +1 -0
  46. package/public/cdn/monaco-editor/min/vs/ini-CsNwO04R.js +1 -0
  47. package/public/cdn/monaco-editor/min/vs/java-CI4ZMsH9.js +1 -0
  48. package/public/cdn/monaco-editor/min/vs/javascript-PczUCGdz.js +1 -0
  49. package/public/cdn/monaco-editor/min/vs/jsonMode-DULH5oaX.js +7 -0
  50. package/public/cdn/monaco-editor/min/vs/julia-BwzEvaQw.js +1 -0
  51. package/public/cdn/monaco-editor/min/vs/kotlin-IUYPiTV8.js +1 -0
  52. package/public/cdn/monaco-editor/min/vs/language/css/monaco.contribution.js +1 -0
  53. package/public/cdn/monaco-editor/min/vs/language/html/monaco.contribution.js +1 -0
  54. package/public/cdn/monaco-editor/min/vs/language/json/monaco.contribution.js +1 -0
  55. package/public/cdn/monaco-editor/min/vs/language/typescript/monaco.contribution.js +1 -0
  56. package/public/cdn/monaco-editor/min/vs/less-C0eDYdqa.js +2 -0
  57. package/public/cdn/monaco-editor/min/vs/lexon-iON-Kj97.js +1 -0
  58. package/public/cdn/monaco-editor/min/vs/liquid-DqKjdPGy.js +1 -0
  59. package/public/cdn/monaco-editor/min/vs/loader.js +1368 -0
  60. package/public/cdn/monaco-editor/min/vs/lspLanguageFeatures-kM9O9rjY.js +4 -0
  61. package/public/cdn/monaco-editor/min/vs/lua-DtygF91M.js +1 -0
  62. package/public/cdn/monaco-editor/min/vs/m3-CsR4AuFi.js +1 -0
  63. package/public/cdn/monaco-editor/min/vs/markdown-C_rD0bIw.js +1 -0
  64. package/public/cdn/monaco-editor/min/vs/mdx-DEWtB1K5.js +1 -0
  65. package/public/cdn/monaco-editor/min/vs/mips-CiYP61RB.js +1 -0
  66. package/public/cdn/monaco-editor/min/vs/monaco.contribution-D2OdxNBt.js +1 -0
  67. package/public/cdn/monaco-editor/min/vs/monaco.contribution-DO3azKX8.js +1 -0
  68. package/public/cdn/monaco-editor/min/vs/monaco.contribution-EcChJV6a.js +1 -0
  69. package/public/cdn/monaco-editor/min/vs/monaco.contribution-qLAYrEOP.js +1 -0
  70. package/public/cdn/monaco-editor/min/vs/msdax-C38-sJlp.js +1 -0
  71. package/public/cdn/monaco-editor/min/vs/mysql-CdtbpvbG.js +1 -0
  72. package/public/cdn/monaco-editor/min/vs/nls.messages-loader.js +1 -0
  73. package/public/cdn/monaco-editor/min/vs/nls.messages.cs.js.js +17 -0
  74. package/public/cdn/monaco-editor/min/vs/nls.messages.de.js.js +17 -0
  75. package/public/cdn/monaco-editor/min/vs/nls.messages.es.js.js +17 -0
  76. package/public/cdn/monaco-editor/min/vs/nls.messages.fr.js.js +15 -0
  77. package/public/cdn/monaco-editor/min/vs/nls.messages.it.js.js +15 -0
  78. package/public/cdn/monaco-editor/min/vs/nls.messages.ja.js.js +17 -0
  79. package/public/cdn/monaco-editor/min/vs/nls.messages.js.js +10 -0
  80. package/public/cdn/monaco-editor/min/vs/nls.messages.ko.js.js +25 -0
  81. package/public/cdn/monaco-editor/min/vs/nls.messages.pl.js.js +17 -0
  82. package/public/cdn/monaco-editor/min/vs/nls.messages.pt-br.js.js +6 -0
  83. package/public/cdn/monaco-editor/min/vs/nls.messages.ru.js.js +17 -0
  84. package/public/cdn/monaco-editor/min/vs/nls.messages.tr.js.js +15 -0
  85. package/public/cdn/monaco-editor/min/vs/nls.messages.zh-cn.js.js +17 -0
  86. package/public/cdn/monaco-editor/min/vs/nls.messages.zh-tw.js.js +15 -0
  87. package/public/cdn/monaco-editor/min/vs/objective-c-CntZFaHX.js +1 -0
  88. package/public/cdn/monaco-editor/min/vs/pascal-r6kuqfl_.js +1 -0
  89. package/public/cdn/monaco-editor/min/vs/pascaligo-BiXoTmXh.js +1 -0
  90. package/public/cdn/monaco-editor/min/vs/perl-DABw_TcH.js +1 -0
  91. package/public/cdn/monaco-editor/min/vs/pgsql-me_jFXeX.js +1 -0
  92. package/public/cdn/monaco-editor/min/vs/php-D_kh-9LK.js +1 -0
  93. package/public/cdn/monaco-editor/min/vs/pla-VfZjczW0.js +1 -0
  94. package/public/cdn/monaco-editor/min/vs/postiats-BBSzz8Pk.js +1 -0
  95. package/public/cdn/monaco-editor/min/vs/powerquery-Dt-g_2cc.js +1 -0
  96. package/public/cdn/monaco-editor/min/vs/powershell-B-7ap1zc.js +1 -0
  97. package/public/cdn/monaco-editor/min/vs/protobuf-BmtuEB1A.js +2 -0
  98. package/public/cdn/monaco-editor/min/vs/pug-BRpRNeEb.js +1 -0
  99. package/public/cdn/monaco-editor/min/vs/python-Cr0UkIbn.js +1 -0
  100. package/public/cdn/monaco-editor/min/vs/qsharp-BzsFaUU9.js +1 -0
  101. package/public/cdn/monaco-editor/min/vs/r-f8dDdrp4.js +1 -0
  102. package/public/cdn/monaco-editor/min/vs/razor-BYAHOTkz.js +1 -0
  103. package/public/cdn/monaco-editor/min/vs/redis-fvZQY4PI.js +1 -0
  104. package/public/cdn/monaco-editor/min/vs/redshift-45Et0LQi.js +1 -0
  105. package/public/cdn/monaco-editor/min/vs/restructuredtext-C7UUFKFD.js +1 -0
  106. package/public/cdn/monaco-editor/min/vs/ruby-CZO8zYTz.js +1 -0
  107. package/public/cdn/monaco-editor/min/vs/rust-Bfetafyc.js +1 -0
  108. package/public/cdn/monaco-editor/min/vs/sb-3GYllVck.js +1 -0
  109. package/public/cdn/monaco-editor/min/vs/scala-foMgrKo1.js +1 -0
  110. package/public/cdn/monaco-editor/min/vs/scheme-CHdMtr7p.js +1 -0
  111. package/public/cdn/monaco-editor/min/vs/scss-C1cmLt9V.js +3 -0
  112. package/public/cdn/monaco-editor/min/vs/shell-ClXCKCEW.js +1 -0
  113. package/public/cdn/monaco-editor/min/vs/solidity-MZ6ExpPy.js +1 -0
  114. package/public/cdn/monaco-editor/min/vs/sophia-DWkuSsPQ.js +1 -0
  115. package/public/cdn/monaco-editor/min/vs/sparql-AUGFYSyk.js +1 -0
  116. package/public/cdn/monaco-editor/min/vs/sql-32GpJSV2.js +1 -0
  117. package/public/cdn/monaco-editor/min/vs/st-CuDFIVZ_.js +1 -0
  118. package/public/cdn/monaco-editor/min/vs/swift-n-2HociN.js +3 -0
  119. package/public/cdn/monaco-editor/min/vs/systemverilog-Ch4vA8Yt.js +1 -0
  120. package/public/cdn/monaco-editor/min/vs/tcl-D74tq1nH.js +1 -0
  121. package/public/cdn/monaco-editor/min/vs/tsMode-CZz1Umrk.js +11 -0
  122. package/public/cdn/monaco-editor/min/vs/twig-C6taOxMV.js +1 -0
  123. package/public/cdn/monaco-editor/min/vs/typescript-DfOrAzoV.js +1 -0
  124. package/public/cdn/monaco-editor/min/vs/typespec-D-PIh9Xw.js +1 -0
  125. package/public/cdn/monaco-editor/min/vs/vb-Dyb2648j.js +1 -0
  126. package/public/cdn/monaco-editor/min/vs/wgsl-BhLXMOR0.js +298 -0
  127. package/public/cdn/monaco-editor/min/vs/workers-DcJshg-q.js +1 -0
  128. package/public/cdn/monaco-editor/min/vs/xml-CdsdnY8S.js +1 -0
  129. package/public/cdn/monaco-editor/min/vs/yaml-DYGvmE88.js +1 -0
  130. package/public/cdn/vue/vue.global.js +18410 -0
  131. package/public/index.html +429 -0
  132. package/public/manage.html +750 -0
  133. package/public/monaco-editor.html +54 -0
  134. package/public/stylesheets/style.css +8 -0
  135. package/views/error.ejs +3 -0
  136. package/views/index.ejs +11 -0
@@ -0,0 +1,1368 @@
1
+ 'use strict';
2
+ /*!-----------------------------------------------------------
3
+ * Copyright (c) Microsoft Corporation. All rights reserved.
4
+ * Version: 0.42.0-dev-20230906(e7d7a5b072e74702a912a4c855a3bda21a7757e7)
5
+ * Released under the MIT license
6
+ * https://github.com/microsoft/vscode/blob/main/LICENSE.txt
7
+ *-----------------------------------------------------------*/ const _amdLoaderGlobal = this,
8
+ _commonjsGlobal = typeof global == 'object' ? global : {};
9
+ var AMDLoader;
10
+ (function (u) {
11
+ u.global = _amdLoaderGlobal;
12
+ class y {
13
+ get isWindows() {
14
+ return this._detect(), this._isWindows;
15
+ }
16
+ get isNode() {
17
+ return this._detect(), this._isNode;
18
+ }
19
+ get isElectronRenderer() {
20
+ return this._detect(), this._isElectronRenderer;
21
+ }
22
+ get isWebWorker() {
23
+ return this._detect(), this._isWebWorker;
24
+ }
25
+ get isElectronNodeIntegrationWebWorker() {
26
+ return this._detect(), this._isElectronNodeIntegrationWebWorker;
27
+ }
28
+ constructor() {
29
+ (this._detected = !1),
30
+ (this._isWindows = !1),
31
+ (this._isNode = !1),
32
+ (this._isElectronRenderer = !1),
33
+ (this._isWebWorker = !1),
34
+ (this._isElectronNodeIntegrationWebWorker = !1);
35
+ }
36
+ _detect() {
37
+ this._detected ||
38
+ ((this._detected = !0),
39
+ (this._isWindows = y._isWindows()),
40
+ (this._isNode = typeof module < 'u' && !!module.exports),
41
+ (this._isElectronRenderer =
42
+ typeof process < 'u' &&
43
+ typeof process.versions < 'u' &&
44
+ typeof process.versions.electron < 'u' &&
45
+ process.type === 'renderer'),
46
+ (this._isWebWorker = typeof u.global.importScripts == 'function'),
47
+ (this._isElectronNodeIntegrationWebWorker =
48
+ this._isWebWorker &&
49
+ typeof process < 'u' &&
50
+ typeof process.versions < 'u' &&
51
+ typeof process.versions.electron < 'u' &&
52
+ process.type === 'worker'));
53
+ }
54
+ static _isWindows() {
55
+ return typeof navigator < 'u' &&
56
+ navigator.userAgent &&
57
+ navigator.userAgent.indexOf('Windows') >= 0
58
+ ? !0
59
+ : typeof process < 'u'
60
+ ? process.platform === 'win32'
61
+ : !1;
62
+ }
63
+ }
64
+ u.Environment = y;
65
+ })(AMDLoader || (AMDLoader = {}));
66
+ var AMDLoader;
67
+ (function (u) {
68
+ class y {
69
+ constructor(r, c, a) {
70
+ (this.type = r), (this.detail = c), (this.timestamp = a);
71
+ }
72
+ }
73
+ u.LoaderEvent = y;
74
+ class m {
75
+ constructor(r) {
76
+ this._events = [new y(1, '', r)];
77
+ }
78
+ record(r, c) {
79
+ this._events.push(new y(r, c, u.Utilities.getHighPerformanceTimestamp()));
80
+ }
81
+ getEvents() {
82
+ return this._events;
83
+ }
84
+ }
85
+ u.LoaderEventRecorder = m;
86
+ class p {
87
+ record(r, c) {}
88
+ getEvents() {
89
+ return [];
90
+ }
91
+ }
92
+ (p.INSTANCE = new p()), (u.NullLoaderEventRecorder = p);
93
+ })(AMDLoader || (AMDLoader = {}));
94
+ var AMDLoader;
95
+ (function (u) {
96
+ class y {
97
+ static fileUriToFilePath(p, h) {
98
+ if (((h = decodeURI(h).replace(/%23/g, '#')), p)) {
99
+ if (/^file:\/\/\//.test(h)) return h.substr(8);
100
+ if (/^file:\/\//.test(h)) return h.substr(5);
101
+ } else if (/^file:\/\//.test(h)) return h.substr(7);
102
+ return h;
103
+ }
104
+ static startsWith(p, h) {
105
+ return p.length >= h.length && p.substr(0, h.length) === h;
106
+ }
107
+ static endsWith(p, h) {
108
+ return p.length >= h.length && p.substr(p.length - h.length) === h;
109
+ }
110
+ static containsQueryString(p) {
111
+ return /^[^\#]*\?/gi.test(p);
112
+ }
113
+ static isAbsolutePath(p) {
114
+ return /^((http:\/\/)|(https:\/\/)|(file:\/\/)|(\/))/.test(p);
115
+ }
116
+ static forEachProperty(p, h) {
117
+ if (p) {
118
+ let r;
119
+ for (r in p) p.hasOwnProperty(r) && h(r, p[r]);
120
+ }
121
+ }
122
+ static isEmpty(p) {
123
+ let h = !0;
124
+ return (
125
+ y.forEachProperty(p, () => {
126
+ h = !1;
127
+ }),
128
+ h
129
+ );
130
+ }
131
+ static recursiveClone(p) {
132
+ if (
133
+ !p ||
134
+ typeof p != 'object' ||
135
+ p instanceof RegExp ||
136
+ (!Array.isArray(p) && Object.getPrototypeOf(p) !== Object.prototype)
137
+ )
138
+ return p;
139
+ let h = Array.isArray(p) ? [] : {};
140
+ return (
141
+ y.forEachProperty(p, (r, c) => {
142
+ c && typeof c == 'object' ? (h[r] = y.recursiveClone(c)) : (h[r] = c);
143
+ }),
144
+ h
145
+ );
146
+ }
147
+ static generateAnonymousModule() {
148
+ return '===anonymous' + y.NEXT_ANONYMOUS_ID++ + '===';
149
+ }
150
+ static isAnonymousModule(p) {
151
+ return y.startsWith(p, '===anonymous');
152
+ }
153
+ static getHighPerformanceTimestamp() {
154
+ return (
155
+ this.PERFORMANCE_NOW_PROBED ||
156
+ ((this.PERFORMANCE_NOW_PROBED = !0),
157
+ (this.HAS_PERFORMANCE_NOW =
158
+ u.global.performance && typeof u.global.performance.now == 'function')),
159
+ this.HAS_PERFORMANCE_NOW ? u.global.performance.now() : Date.now()
160
+ );
161
+ }
162
+ }
163
+ (y.NEXT_ANONYMOUS_ID = 1),
164
+ (y.PERFORMANCE_NOW_PROBED = !1),
165
+ (y.HAS_PERFORMANCE_NOW = !1),
166
+ (u.Utilities = y);
167
+ })(AMDLoader || (AMDLoader = {}));
168
+ var AMDLoader;
169
+ (function (u) {
170
+ function y(h) {
171
+ if (h instanceof Error) return h;
172
+ const r = new Error(h.message || String(h) || 'Unknown Error');
173
+ return h.stack && (r.stack = h.stack), r;
174
+ }
175
+ u.ensureError = y;
176
+ class m {
177
+ static validateConfigurationOptions(r) {
178
+ function c(a) {
179
+ if (a.phase === 'loading') {
180
+ console.error('Loading "' + a.moduleId + '" failed'),
181
+ console.error(a),
182
+ console.error('Here are the modules that depend on it:'),
183
+ console.error(a.neededBy);
184
+ return;
185
+ }
186
+ if (a.phase === 'factory') {
187
+ console.error('The factory function of "' + a.moduleId + '" has thrown an exception'),
188
+ console.error(a),
189
+ console.error('Here are the modules that depend on it:'),
190
+ console.error(a.neededBy);
191
+ return;
192
+ }
193
+ }
194
+ if (
195
+ ((r = r || {}),
196
+ typeof r.baseUrl != 'string' && (r.baseUrl = ''),
197
+ typeof r.isBuild != 'boolean' && (r.isBuild = !1),
198
+ typeof r.paths != 'object' && (r.paths = {}),
199
+ typeof r.config != 'object' && (r.config = {}),
200
+ typeof r.catchError > 'u' && (r.catchError = !1),
201
+ typeof r.recordStats > 'u' && (r.recordStats = !1),
202
+ typeof r.urlArgs != 'string' && (r.urlArgs = ''),
203
+ typeof r.onError != 'function' && (r.onError = c),
204
+ Array.isArray(r.ignoreDuplicateModules) || (r.ignoreDuplicateModules = []),
205
+ r.baseUrl.length > 0 && (u.Utilities.endsWith(r.baseUrl, '/') || (r.baseUrl += '/')),
206
+ typeof r.cspNonce != 'string' && (r.cspNonce = ''),
207
+ typeof r.preferScriptTags > 'u' && (r.preferScriptTags = !1),
208
+ r.nodeCachedData &&
209
+ typeof r.nodeCachedData == 'object' &&
210
+ (typeof r.nodeCachedData.seed != 'string' && (r.nodeCachedData.seed = 'seed'),
211
+ (typeof r.nodeCachedData.writeDelay != 'number' || r.nodeCachedData.writeDelay < 0) &&
212
+ (r.nodeCachedData.writeDelay = 1e3 * 7),
213
+ !r.nodeCachedData.path || typeof r.nodeCachedData.path != 'string'))
214
+ ) {
215
+ const a = y(new Error("INVALID cached data configuration, 'path' MUST be set"));
216
+ (a.phase = 'configuration'), r.onError(a), (r.nodeCachedData = void 0);
217
+ }
218
+ return r;
219
+ }
220
+ static mergeConfigurationOptions(r = null, c = null) {
221
+ let a = u.Utilities.recursiveClone(c || {});
222
+ return (
223
+ u.Utilities.forEachProperty(r, (t, e) => {
224
+ t === 'ignoreDuplicateModules' && typeof a.ignoreDuplicateModules < 'u'
225
+ ? (a.ignoreDuplicateModules = a.ignoreDuplicateModules.concat(e))
226
+ : t === 'paths' && typeof a.paths < 'u'
227
+ ? u.Utilities.forEachProperty(e, (i, s) => (a.paths[i] = s))
228
+ : t === 'config' && typeof a.config < 'u'
229
+ ? u.Utilities.forEachProperty(e, (i, s) => (a.config[i] = s))
230
+ : (a[t] = u.Utilities.recursiveClone(e));
231
+ }),
232
+ m.validateConfigurationOptions(a)
233
+ );
234
+ }
235
+ }
236
+ u.ConfigurationOptionsUtil = m;
237
+ class p {
238
+ constructor(r, c) {
239
+ if (
240
+ ((this._env = r),
241
+ (this.options = m.mergeConfigurationOptions(c)),
242
+ this._createIgnoreDuplicateModulesMap(),
243
+ this._createSortedPathsRules(),
244
+ this.options.baseUrl === '' &&
245
+ this.options.nodeRequire &&
246
+ this.options.nodeRequire.main &&
247
+ this.options.nodeRequire.main.filename &&
248
+ this._env.isNode)
249
+ ) {
250
+ let a = this.options.nodeRequire.main.filename,
251
+ t = Math.max(a.lastIndexOf('/'), a.lastIndexOf('\\'));
252
+ this.options.baseUrl = a.substring(0, t + 1);
253
+ }
254
+ }
255
+ _createIgnoreDuplicateModulesMap() {
256
+ this.ignoreDuplicateModulesMap = {};
257
+ for (let r = 0; r < this.options.ignoreDuplicateModules.length; r++)
258
+ this.ignoreDuplicateModulesMap[this.options.ignoreDuplicateModules[r]] = !0;
259
+ }
260
+ _createSortedPathsRules() {
261
+ (this.sortedPathsRules = []),
262
+ u.Utilities.forEachProperty(this.options.paths, (r, c) => {
263
+ Array.isArray(c)
264
+ ? this.sortedPathsRules.push({ from: r, to: c })
265
+ : this.sortedPathsRules.push({ from: r, to: [c] });
266
+ }),
267
+ this.sortedPathsRules.sort((r, c) => c.from.length - r.from.length);
268
+ }
269
+ cloneAndMerge(r) {
270
+ return new p(this._env, m.mergeConfigurationOptions(r, this.options));
271
+ }
272
+ getOptionsLiteral() {
273
+ return this.options;
274
+ }
275
+ _applyPaths(r) {
276
+ let c;
277
+ for (let a = 0, t = this.sortedPathsRules.length; a < t; a++)
278
+ if (((c = this.sortedPathsRules[a]), u.Utilities.startsWith(r, c.from))) {
279
+ let e = [];
280
+ for (let i = 0, s = c.to.length; i < s; i++) e.push(c.to[i] + r.substr(c.from.length));
281
+ return e;
282
+ }
283
+ return [r];
284
+ }
285
+ _addUrlArgsToUrl(r) {
286
+ return u.Utilities.containsQueryString(r)
287
+ ? r + '&' + this.options.urlArgs
288
+ : r + '?' + this.options.urlArgs;
289
+ }
290
+ _addUrlArgsIfNecessaryToUrl(r) {
291
+ return this.options.urlArgs ? this._addUrlArgsToUrl(r) : r;
292
+ }
293
+ _addUrlArgsIfNecessaryToUrls(r) {
294
+ if (this.options.urlArgs)
295
+ for (let c = 0, a = r.length; c < a; c++) r[c] = this._addUrlArgsToUrl(r[c]);
296
+ return r;
297
+ }
298
+ moduleIdToPaths(r) {
299
+ if (
300
+ this._env.isNode &&
301
+ this.options.amdModulesPattern instanceof RegExp &&
302
+ !this.options.amdModulesPattern.test(r)
303
+ )
304
+ return this.isBuild() ? ['empty:'] : ['node|' + r];
305
+ let c = r,
306
+ a;
307
+ if (!u.Utilities.endsWith(c, '.js') && !u.Utilities.isAbsolutePath(c)) {
308
+ a = this._applyPaths(c);
309
+ for (let t = 0, e = a.length; t < e; t++)
310
+ (this.isBuild() && a[t] === 'empty:') ||
311
+ (u.Utilities.isAbsolutePath(a[t]) || (a[t] = this.options.baseUrl + a[t]),
312
+ !u.Utilities.endsWith(a[t], '.js') &&
313
+ !u.Utilities.containsQueryString(a[t]) &&
314
+ (a[t] = a[t] + '.js'));
315
+ } else
316
+ !u.Utilities.endsWith(c, '.js') && !u.Utilities.containsQueryString(c) && (c = c + '.js'),
317
+ (a = [c]);
318
+ return this._addUrlArgsIfNecessaryToUrls(a);
319
+ }
320
+ requireToUrl(r) {
321
+ let c = r;
322
+ return (
323
+ u.Utilities.isAbsolutePath(c) ||
324
+ ((c = this._applyPaths(c)[0]),
325
+ u.Utilities.isAbsolutePath(c) || (c = this.options.baseUrl + c)),
326
+ this._addUrlArgsIfNecessaryToUrl(c)
327
+ );
328
+ }
329
+ isBuild() {
330
+ return this.options.isBuild;
331
+ }
332
+ shouldInvokeFactory(r) {
333
+ return !!(
334
+ !this.options.isBuild ||
335
+ u.Utilities.isAnonymousModule(r) ||
336
+ (this.options.buildForceInvokeFactory && this.options.buildForceInvokeFactory[r])
337
+ );
338
+ }
339
+ isDuplicateMessageIgnoredFor(r) {
340
+ return this.ignoreDuplicateModulesMap.hasOwnProperty(r);
341
+ }
342
+ getConfigForModule(r) {
343
+ if (this.options.config) return this.options.config[r];
344
+ }
345
+ shouldCatchError() {
346
+ return this.options.catchError;
347
+ }
348
+ shouldRecordStats() {
349
+ return this.options.recordStats;
350
+ }
351
+ onError(r) {
352
+ this.options.onError(r);
353
+ }
354
+ }
355
+ u.Configuration = p;
356
+ })(AMDLoader || (AMDLoader = {}));
357
+ var AMDLoader;
358
+ (function (u) {
359
+ class y {
360
+ constructor(e) {
361
+ (this._env = e), (this._scriptLoader = null), (this._callbackMap = {});
362
+ }
363
+ load(e, i, s, n) {
364
+ if (!this._scriptLoader)
365
+ if (this._env.isWebWorker) this._scriptLoader = new h();
366
+ else if (this._env.isElectronRenderer) {
367
+ const { preferScriptTags: d } = e.getConfig().getOptionsLiteral();
368
+ d ? (this._scriptLoader = new m()) : (this._scriptLoader = new r(this._env));
369
+ } else
370
+ this._env.isNode
371
+ ? (this._scriptLoader = new r(this._env))
372
+ : (this._scriptLoader = new m());
373
+ let l = { callback: s, errorback: n };
374
+ if (this._callbackMap.hasOwnProperty(i)) {
375
+ this._callbackMap[i].push(l);
376
+ return;
377
+ }
378
+ (this._callbackMap[i] = [l]),
379
+ this._scriptLoader.load(
380
+ e,
381
+ i,
382
+ () => this.triggerCallback(i),
383
+ (d) => this.triggerErrorback(i, d)
384
+ );
385
+ }
386
+ triggerCallback(e) {
387
+ let i = this._callbackMap[e];
388
+ delete this._callbackMap[e];
389
+ for (let s = 0; s < i.length; s++) i[s].callback();
390
+ }
391
+ triggerErrorback(e, i) {
392
+ let s = this._callbackMap[e];
393
+ delete this._callbackMap[e];
394
+ for (let n = 0; n < s.length; n++) s[n].errorback(i);
395
+ }
396
+ }
397
+ class m {
398
+ attachListeners(e, i, s) {
399
+ let n = () => {
400
+ e.removeEventListener('load', l), e.removeEventListener('error', d);
401
+ },
402
+ l = (o) => {
403
+ n(), i();
404
+ },
405
+ d = (o) => {
406
+ n(), s(o);
407
+ };
408
+ e.addEventListener('load', l), e.addEventListener('error', d);
409
+ }
410
+ load(e, i, s, n) {
411
+ if (/^node\|/.test(i)) {
412
+ let l = e.getConfig().getOptionsLiteral(),
413
+ d = c(e.getRecorder(), l.nodeRequire || u.global.nodeRequire),
414
+ o = i.split('|'),
415
+ _ = null;
416
+ try {
417
+ _ = d(o[1]);
418
+ } catch (f) {
419
+ n(f);
420
+ return;
421
+ }
422
+ e.enqueueDefineAnonymousModule([], () => _), s();
423
+ } else {
424
+ let l = document.createElement('script');
425
+ l.setAttribute('async', 'async'),
426
+ l.setAttribute('type', 'text/javascript'),
427
+ this.attachListeners(l, s, n);
428
+ const { trustedTypesPolicy: d } = e.getConfig().getOptionsLiteral();
429
+ d && (i = d.createScriptURL(i)), l.setAttribute('src', i);
430
+ const { cspNonce: o } = e.getConfig().getOptionsLiteral();
431
+ o && l.setAttribute('nonce', o), document.getElementsByTagName('head')[0].appendChild(l);
432
+ }
433
+ }
434
+ }
435
+ function p(t) {
436
+ const { trustedTypesPolicy: e } = t.getConfig().getOptionsLiteral();
437
+ try {
438
+ return (e ? self.eval(e.createScript('', 'true')) : new Function('true')).call(self), !0;
439
+ } catch {
440
+ return !1;
441
+ }
442
+ }
443
+ class h {
444
+ constructor() {
445
+ this._cachedCanUseEval = null;
446
+ }
447
+ _canUseEval(e) {
448
+ return (
449
+ this._cachedCanUseEval === null && (this._cachedCanUseEval = p(e)), this._cachedCanUseEval
450
+ );
451
+ }
452
+ load(e, i, s, n) {
453
+ if (/^node\|/.test(i)) {
454
+ const l = e.getConfig().getOptionsLiteral(),
455
+ d = c(e.getRecorder(), l.nodeRequire || u.global.nodeRequire),
456
+ o = i.split('|');
457
+ let _ = null;
458
+ try {
459
+ _ = d(o[1]);
460
+ } catch (f) {
461
+ n(f);
462
+ return;
463
+ }
464
+ e.enqueueDefineAnonymousModule([], function () {
465
+ return _;
466
+ }),
467
+ s();
468
+ } else {
469
+ const { trustedTypesPolicy: l } = e.getConfig().getOptionsLiteral();
470
+ if (
471
+ !(
472
+ /^((http:)|(https:)|(file:))/.test(i) &&
473
+ i.substring(0, self.origin.length) !== self.origin
474
+ ) &&
475
+ this._canUseEval(e)
476
+ ) {
477
+ fetch(i)
478
+ .then((o) => {
479
+ if (o.status !== 200) throw new Error(o.statusText);
480
+ return o.text();
481
+ })
482
+ .then((o) => {
483
+ (o = `${o}
484
+ //# sourceURL=${i}`),
485
+ (l ? self.eval(l.createScript('', o)) : new Function(o)).call(self),
486
+ s();
487
+ })
488
+ .then(void 0, n);
489
+ return;
490
+ }
491
+ try {
492
+ l && (i = l.createScriptURL(i)), importScripts(i), s();
493
+ } catch (o) {
494
+ n(o);
495
+ }
496
+ }
497
+ }
498
+ }
499
+ class r {
500
+ constructor(e) {
501
+ (this._env = e), (this._didInitialize = !1), (this._didPatchNodeRequire = !1);
502
+ }
503
+ _init(e) {
504
+ this._didInitialize ||
505
+ ((this._didInitialize = !0),
506
+ (this._fs = e('fs')),
507
+ (this._vm = e('vm')),
508
+ (this._path = e('path')),
509
+ (this._crypto = e('crypto')));
510
+ }
511
+ _initNodeRequire(e, i) {
512
+ const { nodeCachedData: s } = i.getConfig().getOptionsLiteral();
513
+ if (!s || this._didPatchNodeRequire) return;
514
+ this._didPatchNodeRequire = !0;
515
+ const n = this,
516
+ l = e('module');
517
+ function d(o) {
518
+ const _ = o.constructor;
519
+ let f = function (v) {
520
+ try {
521
+ return o.require(v);
522
+ } finally {
523
+ }
524
+ };
525
+ return (
526
+ (f.resolve = function (v, E) {
527
+ return _._resolveFilename(v, o, !1, E);
528
+ }),
529
+ (f.resolve.paths = function (v) {
530
+ return _._resolveLookupPaths(v, o);
531
+ }),
532
+ (f.main = process.mainModule),
533
+ (f.extensions = _._extensions),
534
+ (f.cache = _._cache),
535
+ f
536
+ );
537
+ }
538
+ l.prototype._compile = function (o, _) {
539
+ const f = l.wrap(o.replace(/^#!.*/, '')),
540
+ g = i.getRecorder(),
541
+ v = n._getCachedDataPath(s, _),
542
+ E = { filename: _ };
543
+ let I;
544
+ try {
545
+ const D = n._fs.readFileSync(v);
546
+ (I = D.slice(0, 16)), (E.cachedData = D.slice(16)), g.record(60, v);
547
+ } catch {
548
+ g.record(61, v);
549
+ }
550
+ const C = new n._vm.Script(f, E),
551
+ P = C.runInThisContext(E),
552
+ w = n._path.dirname(_),
553
+ R = d(this),
554
+ U = [this.exports, R, this, _, w, process, _commonjsGlobal, Buffer],
555
+ b = P.apply(this.exports, U);
556
+ return (
557
+ n._handleCachedData(C, f, v, !E.cachedData, i), n._verifyCachedData(C, f, v, I, i), b
558
+ );
559
+ };
560
+ }
561
+ load(e, i, s, n) {
562
+ const l = e.getConfig().getOptionsLiteral(),
563
+ d = c(e.getRecorder(), l.nodeRequire || u.global.nodeRequire),
564
+ o =
565
+ l.nodeInstrumenter ||
566
+ function (f) {
567
+ return f;
568
+ };
569
+ this._init(d), this._initNodeRequire(d, e);
570
+ let _ = e.getRecorder();
571
+ if (/^node\|/.test(i)) {
572
+ let f = i.split('|'),
573
+ g = null;
574
+ try {
575
+ g = d(f[1]);
576
+ } catch (v) {
577
+ n(v);
578
+ return;
579
+ }
580
+ e.enqueueDefineAnonymousModule([], () => g), s();
581
+ } else {
582
+ i = u.Utilities.fileUriToFilePath(this._env.isWindows, i);
583
+ const f = this._path.normalize(i),
584
+ g = this._getElectronRendererScriptPathOrUri(f),
585
+ v = !!l.nodeCachedData,
586
+ E = v ? this._getCachedDataPath(l.nodeCachedData, i) : void 0;
587
+ this._readSourceAndCachedData(f, E, _, (I, C, P, w) => {
588
+ if (I) {
589
+ n(I);
590
+ return;
591
+ }
592
+ let R;
593
+ C.charCodeAt(0) === r._BOM
594
+ ? (R = r._PREFIX + C.substring(1) + r._SUFFIX)
595
+ : (R = r._PREFIX + C + r._SUFFIX),
596
+ (R = o(R, f));
597
+ const U = { filename: g, cachedData: P },
598
+ b = this._createAndEvalScript(e, R, U, s, n);
599
+ this._handleCachedData(b, R, E, v && !P, e), this._verifyCachedData(b, R, E, w, e);
600
+ });
601
+ }
602
+ }
603
+ _createAndEvalScript(e, i, s, n, l) {
604
+ const d = e.getRecorder();
605
+ d.record(31, s.filename);
606
+ const o = new this._vm.Script(i, s),
607
+ _ = o.runInThisContext(s),
608
+ f = e.getGlobalAMDDefineFunc();
609
+ let g = !1;
610
+ const v = function () {
611
+ return (g = !0), f.apply(null, arguments);
612
+ };
613
+ return (
614
+ (v.amd = f.amd),
615
+ _.call(
616
+ u.global,
617
+ e.getGlobalAMDRequireFunc(),
618
+ v,
619
+ s.filename,
620
+ this._path.dirname(s.filename)
621
+ ),
622
+ d.record(32, s.filename),
623
+ g ? n() : l(new Error(`Didn't receive define call in ${s.filename}!`)),
624
+ o
625
+ );
626
+ }
627
+ _getElectronRendererScriptPathOrUri(e) {
628
+ if (!this._env.isElectronRenderer) return e;
629
+ let i = e.match(/^([a-z])\:(.*)/i);
630
+ return i ? `file:///${(i[1].toUpperCase() + ':' + i[2]).replace(/\\/g, '/')}` : `file://${e}`;
631
+ }
632
+ _getCachedDataPath(e, i) {
633
+ const s = this._crypto
634
+ .createHash('md5')
635
+ .update(i, 'utf8')
636
+ .update(e.seed, 'utf8')
637
+ .update(process.arch, '')
638
+ .digest('hex'),
639
+ n = this._path.basename(i).replace(/\.js$/, '');
640
+ return this._path.join(e.path, `${n}-${s}.code`);
641
+ }
642
+ _handleCachedData(e, i, s, n, l) {
643
+ e.cachedDataRejected
644
+ ? this._fs.unlink(s, (d) => {
645
+ l.getRecorder().record(62, s),
646
+ this._createAndWriteCachedData(e, i, s, l),
647
+ d && l.getConfig().onError(d);
648
+ })
649
+ : n && this._createAndWriteCachedData(e, i, s, l);
650
+ }
651
+ _createAndWriteCachedData(e, i, s, n) {
652
+ let l = Math.ceil(
653
+ n.getConfig().getOptionsLiteral().nodeCachedData.writeDelay * (1 + Math.random())
654
+ ),
655
+ d = -1,
656
+ o = 0,
657
+ _;
658
+ const f = () => {
659
+ setTimeout(() => {
660
+ _ || (_ = this._crypto.createHash('md5').update(i, 'utf8').digest());
661
+ const g = e.createCachedData();
662
+ if (!(g.length === 0 || g.length === d || o >= 5)) {
663
+ if (g.length < d) {
664
+ f();
665
+ return;
666
+ }
667
+ (d = g.length),
668
+ this._fs.writeFile(s, Buffer.concat([_, g]), (v) => {
669
+ v && n.getConfig().onError(v), n.getRecorder().record(63, s), f();
670
+ });
671
+ }
672
+ }, l * Math.pow(4, o++));
673
+ };
674
+ f();
675
+ }
676
+ _readSourceAndCachedData(e, i, s, n) {
677
+ if (!i) this._fs.readFile(e, { encoding: 'utf8' }, n);
678
+ else {
679
+ let l,
680
+ d,
681
+ o,
682
+ _ = 2;
683
+ const f = (g) => {
684
+ g ? n(g) : --_ === 0 && n(void 0, l, d, o);
685
+ };
686
+ this._fs.readFile(e, { encoding: 'utf8' }, (g, v) => {
687
+ (l = v), f(g);
688
+ }),
689
+ this._fs.readFile(i, (g, v) => {
690
+ !g && v && v.length > 0
691
+ ? ((o = v.slice(0, 16)), (d = v.slice(16)), s.record(60, i))
692
+ : s.record(61, i),
693
+ f();
694
+ });
695
+ }
696
+ }
697
+ _verifyCachedData(e, i, s, n, l) {
698
+ n &&
699
+ (e.cachedDataRejected ||
700
+ setTimeout(() => {
701
+ const d = this._crypto.createHash('md5').update(i, 'utf8').digest();
702
+ n.equals(d) ||
703
+ (l
704
+ .getConfig()
705
+ .onError(
706
+ new Error(
707
+ `FAILED TO VERIFY CACHED DATA, deleting stale '${s}' now, but a RESTART IS REQUIRED`
708
+ )
709
+ ),
710
+ this._fs.unlink(s, (o) => {
711
+ o && l.getConfig().onError(o);
712
+ }));
713
+ }, Math.ceil(5e3 * (1 + Math.random()))));
714
+ }
715
+ }
716
+ (r._BOM = 65279),
717
+ (r._PREFIX = '(function (require, define, __filename, __dirname) { '),
718
+ (r._SUFFIX = `
719
+ });`);
720
+ function c(t, e) {
721
+ if (e.__$__isRecorded) return e;
722
+ const i = function (n) {
723
+ t.record(33, n);
724
+ try {
725
+ return e(n);
726
+ } finally {
727
+ t.record(34, n);
728
+ }
729
+ };
730
+ return (i.__$__isRecorded = !0), i;
731
+ }
732
+ u.ensureRecordedNodeRequire = c;
733
+ function a(t) {
734
+ return new y(t);
735
+ }
736
+ u.createScriptLoader = a;
737
+ })(AMDLoader || (AMDLoader = {}));
738
+ var AMDLoader;
739
+ (function (u) {
740
+ class y {
741
+ constructor(t) {
742
+ let e = t.lastIndexOf('/');
743
+ e !== -1 ? (this.fromModulePath = t.substr(0, e + 1)) : (this.fromModulePath = '');
744
+ }
745
+ static _normalizeModuleId(t) {
746
+ let e = t,
747
+ i;
748
+ for (i = /\/\.\//; i.test(e); ) e = e.replace(i, '/');
749
+ for (
750
+ e = e.replace(/^\.\//g, ''),
751
+ i = /\/(([^\/])|([^\/][^\/\.])|([^\/\.][^\/])|([^\/][^\/][^\/]+))\/\.\.\//;
752
+ i.test(e);
753
+
754
+ )
755
+ e = e.replace(i, '/');
756
+ return (
757
+ (e = e.replace(/^(([^\/])|([^\/][^\/\.])|([^\/\.][^\/])|([^\/][^\/][^\/]+))\/\.\.\//, '')),
758
+ e
759
+ );
760
+ }
761
+ resolveModule(t) {
762
+ let e = t;
763
+ return (
764
+ u.Utilities.isAbsolutePath(e) ||
765
+ ((u.Utilities.startsWith(e, './') || u.Utilities.startsWith(e, '../')) &&
766
+ (e = y._normalizeModuleId(this.fromModulePath + e))),
767
+ e
768
+ );
769
+ }
770
+ }
771
+ (y.ROOT = new y('')), (u.ModuleIdResolver = y);
772
+ class m {
773
+ constructor(t, e, i, s, n, l) {
774
+ (this.id = t),
775
+ (this.strId = e),
776
+ (this.dependencies = i),
777
+ (this._callback = s),
778
+ (this._errorback = n),
779
+ (this.moduleIdResolver = l),
780
+ (this.exports = {}),
781
+ (this.error = null),
782
+ (this.exportsPassedIn = !1),
783
+ (this.unresolvedDependenciesCount = this.dependencies.length),
784
+ (this._isComplete = !1);
785
+ }
786
+ static _safeInvokeFunction(t, e) {
787
+ try {
788
+ return { returnedValue: t.apply(u.global, e), producedError: null };
789
+ } catch (i) {
790
+ return { returnedValue: null, producedError: i };
791
+ }
792
+ }
793
+ static _invokeFactory(t, e, i, s) {
794
+ return t.shouldInvokeFactory(e)
795
+ ? t.shouldCatchError()
796
+ ? this._safeInvokeFunction(i, s)
797
+ : { returnedValue: i.apply(u.global, s), producedError: null }
798
+ : { returnedValue: null, producedError: null };
799
+ }
800
+ complete(t, e, i, s) {
801
+ this._isComplete = !0;
802
+ let n = null;
803
+ if (this._callback)
804
+ if (typeof this._callback == 'function') {
805
+ t.record(21, this.strId);
806
+ let l = m._invokeFactory(e, this.strId, this._callback, i);
807
+ (n = l.producedError),
808
+ t.record(22, this.strId),
809
+ !n &&
810
+ typeof l.returnedValue < 'u' &&
811
+ (!this.exportsPassedIn || u.Utilities.isEmpty(this.exports)) &&
812
+ (this.exports = l.returnedValue);
813
+ } else this.exports = this._callback;
814
+ if (n) {
815
+ let l = u.ensureError(n);
816
+ (l.phase = 'factory'),
817
+ (l.moduleId = this.strId),
818
+ (l.neededBy = s(this.id)),
819
+ (this.error = l),
820
+ e.onError(l);
821
+ }
822
+ (this.dependencies = null),
823
+ (this._callback = null),
824
+ (this._errorback = null),
825
+ (this.moduleIdResolver = null);
826
+ }
827
+ onDependencyError(t) {
828
+ return (
829
+ (this._isComplete = !0), (this.error = t), this._errorback ? (this._errorback(t), !0) : !1
830
+ );
831
+ }
832
+ isComplete() {
833
+ return this._isComplete;
834
+ }
835
+ }
836
+ u.Module = m;
837
+ class p {
838
+ constructor() {
839
+ (this._nextId = 0),
840
+ (this._strModuleIdToIntModuleId = new Map()),
841
+ (this._intModuleIdToStrModuleId = []),
842
+ this.getModuleId('exports'),
843
+ this.getModuleId('module'),
844
+ this.getModuleId('require');
845
+ }
846
+ getMaxModuleId() {
847
+ return this._nextId;
848
+ }
849
+ getModuleId(t) {
850
+ let e = this._strModuleIdToIntModuleId.get(t);
851
+ return (
852
+ typeof e > 'u' &&
853
+ ((e = this._nextId++),
854
+ this._strModuleIdToIntModuleId.set(t, e),
855
+ (this._intModuleIdToStrModuleId[e] = t)),
856
+ e
857
+ );
858
+ }
859
+ getStrModuleId(t) {
860
+ return this._intModuleIdToStrModuleId[t];
861
+ }
862
+ }
863
+ class h {
864
+ constructor(t) {
865
+ this.id = t;
866
+ }
867
+ }
868
+ (h.EXPORTS = new h(0)), (h.MODULE = new h(1)), (h.REQUIRE = new h(2)), (u.RegularDependency = h);
869
+ class r {
870
+ constructor(t, e, i) {
871
+ (this.id = t), (this.pluginId = e), (this.pluginParam = i);
872
+ }
873
+ }
874
+ u.PluginDependency = r;
875
+ class c {
876
+ constructor(t, e, i, s, n = 0) {
877
+ (this._env = t),
878
+ (this._scriptLoader = e),
879
+ (this._loaderAvailableTimestamp = n),
880
+ (this._defineFunc = i),
881
+ (this._requireFunc = s),
882
+ (this._moduleIdProvider = new p()),
883
+ (this._config = new u.Configuration(this._env)),
884
+ (this._hasDependencyCycle = !1),
885
+ (this._modules2 = []),
886
+ (this._knownModules2 = []),
887
+ (this._inverseDependencies2 = []),
888
+ (this._inversePluginDependencies2 = new Map()),
889
+ (this._currentAnonymousDefineCall = null),
890
+ (this._recorder = null),
891
+ (this._buildInfoPath = []),
892
+ (this._buildInfoDefineStack = []),
893
+ (this._buildInfoDependencies = []),
894
+ (this._requireFunc.moduleManager = this);
895
+ }
896
+ reset() {
897
+ return new c(
898
+ this._env,
899
+ this._scriptLoader,
900
+ this._defineFunc,
901
+ this._requireFunc,
902
+ this._loaderAvailableTimestamp
903
+ );
904
+ }
905
+ getGlobalAMDDefineFunc() {
906
+ return this._defineFunc;
907
+ }
908
+ getGlobalAMDRequireFunc() {
909
+ return this._requireFunc;
910
+ }
911
+ static _findRelevantLocationInStack(t, e) {
912
+ let i = (l) => l.replace(/\\/g, '/'),
913
+ s = i(t),
914
+ n = e.split(/\n/);
915
+ for (let l = 0; l < n.length; l++) {
916
+ let d = n[l].match(/(.*):(\d+):(\d+)\)?$/);
917
+ if (d) {
918
+ let o = d[1],
919
+ _ = d[2],
920
+ f = d[3],
921
+ g = Math.max(o.lastIndexOf(' ') + 1, o.lastIndexOf('(') + 1);
922
+ if (((o = o.substr(g)), (o = i(o)), o === s)) {
923
+ let v = { line: parseInt(_, 10), col: parseInt(f, 10) };
924
+ return v.line === 1 && (v.col -= 53), v;
925
+ }
926
+ }
927
+ }
928
+ throw new Error('Could not correlate define call site for needle ' + t);
929
+ }
930
+ getBuildInfo() {
931
+ if (!this._config.isBuild()) return null;
932
+ let t = [],
933
+ e = 0;
934
+ for (let i = 0, s = this._modules2.length; i < s; i++) {
935
+ let n = this._modules2[i];
936
+ if (!n) continue;
937
+ let l = this._buildInfoPath[n.id] || null,
938
+ d = this._buildInfoDefineStack[n.id] || null,
939
+ o = this._buildInfoDependencies[n.id];
940
+ t[e++] = {
941
+ id: n.strId,
942
+ path: l,
943
+ defineLocation: l && d ? c._findRelevantLocationInStack(l, d) : null,
944
+ dependencies: o,
945
+ shim: null,
946
+ exports: n.exports
947
+ };
948
+ }
949
+ return t;
950
+ }
951
+ getRecorder() {
952
+ return (
953
+ this._recorder ||
954
+ (this._config.shouldRecordStats()
955
+ ? (this._recorder = new u.LoaderEventRecorder(this._loaderAvailableTimestamp))
956
+ : (this._recorder = u.NullLoaderEventRecorder.INSTANCE)),
957
+ this._recorder
958
+ );
959
+ }
960
+ getLoaderEvents() {
961
+ return this.getRecorder().getEvents();
962
+ }
963
+ enqueueDefineAnonymousModule(t, e) {
964
+ if (this._currentAnonymousDefineCall !== null)
965
+ throw new Error('Can only have one anonymous define call per script file');
966
+ let i = null;
967
+ this._config.isBuild() && (i = new Error('StackLocation').stack || null),
968
+ (this._currentAnonymousDefineCall = { stack: i, dependencies: t, callback: e });
969
+ }
970
+ defineModule(t, e, i, s, n, l = new y(t)) {
971
+ let d = this._moduleIdProvider.getModuleId(t);
972
+ if (this._modules2[d]) {
973
+ this._config.isDuplicateMessageIgnoredFor(t) ||
974
+ console.warn("Duplicate definition of module '" + t + "'");
975
+ return;
976
+ }
977
+ let o = new m(d, t, this._normalizeDependencies(e, l), i, s, l);
978
+ (this._modules2[d] = o),
979
+ this._config.isBuild() &&
980
+ ((this._buildInfoDefineStack[d] = n),
981
+ (this._buildInfoDependencies[d] = (o.dependencies || []).map((_) =>
982
+ this._moduleIdProvider.getStrModuleId(_.id)
983
+ ))),
984
+ this._resolve(o);
985
+ }
986
+ _normalizeDependency(t, e) {
987
+ if (t === 'exports') return h.EXPORTS;
988
+ if (t === 'module') return h.MODULE;
989
+ if (t === 'require') return h.REQUIRE;
990
+ let i = t.indexOf('!');
991
+ if (i >= 0) {
992
+ let s = e.resolveModule(t.substr(0, i)),
993
+ n = e.resolveModule(t.substr(i + 1)),
994
+ l = this._moduleIdProvider.getModuleId(s + '!' + n),
995
+ d = this._moduleIdProvider.getModuleId(s);
996
+ return new r(l, d, n);
997
+ }
998
+ return new h(this._moduleIdProvider.getModuleId(e.resolveModule(t)));
999
+ }
1000
+ _normalizeDependencies(t, e) {
1001
+ let i = [],
1002
+ s = 0;
1003
+ for (let n = 0, l = t.length; n < l; n++) i[s++] = this._normalizeDependency(t[n], e);
1004
+ return i;
1005
+ }
1006
+ _relativeRequire(t, e, i, s) {
1007
+ if (typeof e == 'string') return this.synchronousRequire(e, t);
1008
+ this.defineModule(u.Utilities.generateAnonymousModule(), e, i, s, null, t);
1009
+ }
1010
+ synchronousRequire(t, e = new y(t)) {
1011
+ let i = this._normalizeDependency(t, e),
1012
+ s = this._modules2[i.id];
1013
+ if (!s)
1014
+ throw new Error(
1015
+ "Check dependency list! Synchronous require cannot resolve module '" +
1016
+ t +
1017
+ "'. This is the first mention of this module!"
1018
+ );
1019
+ if (!s.isComplete())
1020
+ throw new Error(
1021
+ "Check dependency list! Synchronous require cannot resolve module '" +
1022
+ t +
1023
+ "'. This module has not been resolved completely yet."
1024
+ );
1025
+ if (s.error) throw s.error;
1026
+ return s.exports;
1027
+ }
1028
+ configure(t, e) {
1029
+ let i = this._config.shouldRecordStats();
1030
+ e
1031
+ ? (this._config = new u.Configuration(this._env, t))
1032
+ : (this._config = this._config.cloneAndMerge(t)),
1033
+ this._config.shouldRecordStats() && !i && (this._recorder = null);
1034
+ }
1035
+ getConfig() {
1036
+ return this._config;
1037
+ }
1038
+ _onLoad(t) {
1039
+ if (this._currentAnonymousDefineCall !== null) {
1040
+ let e = this._currentAnonymousDefineCall;
1041
+ (this._currentAnonymousDefineCall = null),
1042
+ this.defineModule(
1043
+ this._moduleIdProvider.getStrModuleId(t),
1044
+ e.dependencies,
1045
+ e.callback,
1046
+ null,
1047
+ e.stack
1048
+ );
1049
+ }
1050
+ }
1051
+ _createLoadError(t, e) {
1052
+ let i = this._moduleIdProvider.getStrModuleId(t),
1053
+ s = (this._inverseDependencies2[t] || []).map((l) =>
1054
+ this._moduleIdProvider.getStrModuleId(l)
1055
+ );
1056
+ const n = u.ensureError(e);
1057
+ return (n.phase = 'loading'), (n.moduleId = i), (n.neededBy = s), n;
1058
+ }
1059
+ _onLoadError(t, e) {
1060
+ const i = this._createLoadError(t, e);
1061
+ this._modules2[t] ||
1062
+ (this._modules2[t] = new m(
1063
+ t,
1064
+ this._moduleIdProvider.getStrModuleId(t),
1065
+ [],
1066
+ () => {},
1067
+ null,
1068
+ null
1069
+ ));
1070
+ let s = [];
1071
+ for (let d = 0, o = this._moduleIdProvider.getMaxModuleId(); d < o; d++) s[d] = !1;
1072
+ let n = !1,
1073
+ l = [];
1074
+ for (l.push(t), s[t] = !0; l.length > 0; ) {
1075
+ let d = l.shift(),
1076
+ o = this._modules2[d];
1077
+ o && (n = o.onDependencyError(i) || n);
1078
+ let _ = this._inverseDependencies2[d];
1079
+ if (_)
1080
+ for (let f = 0, g = _.length; f < g; f++) {
1081
+ let v = _[f];
1082
+ s[v] || (l.push(v), (s[v] = !0));
1083
+ }
1084
+ }
1085
+ n || this._config.onError(i);
1086
+ }
1087
+ _hasDependencyPath(t, e) {
1088
+ let i = this._modules2[t];
1089
+ if (!i) return !1;
1090
+ let s = [];
1091
+ for (let l = 0, d = this._moduleIdProvider.getMaxModuleId(); l < d; l++) s[l] = !1;
1092
+ let n = [];
1093
+ for (n.push(i), s[t] = !0; n.length > 0; ) {
1094
+ let d = n.shift().dependencies;
1095
+ if (d)
1096
+ for (let o = 0, _ = d.length; o < _; o++) {
1097
+ let f = d[o];
1098
+ if (f.id === e) return !0;
1099
+ let g = this._modules2[f.id];
1100
+ g && !s[f.id] && ((s[f.id] = !0), n.push(g));
1101
+ }
1102
+ }
1103
+ return !1;
1104
+ }
1105
+ _findCyclePath(t, e, i) {
1106
+ if (t === e || i === 50) return [t];
1107
+ let s = this._modules2[t];
1108
+ if (!s) return null;
1109
+ let n = s.dependencies;
1110
+ if (n)
1111
+ for (let l = 0, d = n.length; l < d; l++) {
1112
+ let o = this._findCyclePath(n[l].id, e, i + 1);
1113
+ if (o !== null) return o.push(t), o;
1114
+ }
1115
+ return null;
1116
+ }
1117
+ _createRequire(t) {
1118
+ let e = (i, s, n) => this._relativeRequire(t, i, s, n);
1119
+ return (
1120
+ (e.toUrl = (i) => this._config.requireToUrl(t.resolveModule(i))),
1121
+ (e.getStats = () => this.getLoaderEvents()),
1122
+ (e.hasDependencyCycle = () => this._hasDependencyCycle),
1123
+ (e.config = (i, s = !1) => {
1124
+ this.configure(i, s);
1125
+ }),
1126
+ (e.__$__nodeRequire = u.global.nodeRequire),
1127
+ e
1128
+ );
1129
+ }
1130
+ _loadModule(t) {
1131
+ if (this._modules2[t] || this._knownModules2[t]) return;
1132
+ this._knownModules2[t] = !0;
1133
+ let e = this._moduleIdProvider.getStrModuleId(t),
1134
+ i = this._config.moduleIdToPaths(e),
1135
+ s = /^@[^\/]+\/[^\/]+$/;
1136
+ this._env.isNode && (e.indexOf('/') === -1 || s.test(e)) && i.push('node|' + e);
1137
+ let n = -1,
1138
+ l = (d) => {
1139
+ if ((n++, n >= i.length)) this._onLoadError(t, d);
1140
+ else {
1141
+ let o = i[n],
1142
+ _ = this.getRecorder();
1143
+ if (this._config.isBuild() && o === 'empty:') {
1144
+ (this._buildInfoPath[t] = o),
1145
+ this.defineModule(this._moduleIdProvider.getStrModuleId(t), [], null, null, null),
1146
+ this._onLoad(t);
1147
+ return;
1148
+ }
1149
+ _.record(10, o),
1150
+ this._scriptLoader.load(
1151
+ this,
1152
+ o,
1153
+ () => {
1154
+ this._config.isBuild() && (this._buildInfoPath[t] = o),
1155
+ _.record(11, o),
1156
+ this._onLoad(t);
1157
+ },
1158
+ (f) => {
1159
+ _.record(12, o), l(f);
1160
+ }
1161
+ );
1162
+ }
1163
+ };
1164
+ l(null);
1165
+ }
1166
+ _loadPluginDependency(t, e) {
1167
+ if (this._modules2[e.id] || this._knownModules2[e.id]) return;
1168
+ this._knownModules2[e.id] = !0;
1169
+ let i = (s) => {
1170
+ this.defineModule(this._moduleIdProvider.getStrModuleId(e.id), [], s, null, null);
1171
+ };
1172
+ (i.error = (s) => {
1173
+ this._config.onError(this._createLoadError(e.id, s));
1174
+ }),
1175
+ t.load(e.pluginParam, this._createRequire(y.ROOT), i, this._config.getOptionsLiteral());
1176
+ }
1177
+ _resolve(t) {
1178
+ let e = t.dependencies;
1179
+ if (e)
1180
+ for (let i = 0, s = e.length; i < s; i++) {
1181
+ let n = e[i];
1182
+ if (n === h.EXPORTS) {
1183
+ (t.exportsPassedIn = !0), t.unresolvedDependenciesCount--;
1184
+ continue;
1185
+ }
1186
+ if (n === h.MODULE) {
1187
+ t.unresolvedDependenciesCount--;
1188
+ continue;
1189
+ }
1190
+ if (n === h.REQUIRE) {
1191
+ t.unresolvedDependenciesCount--;
1192
+ continue;
1193
+ }
1194
+ let l = this._modules2[n.id];
1195
+ if (l && l.isComplete()) {
1196
+ if (l.error) {
1197
+ t.onDependencyError(l.error);
1198
+ return;
1199
+ }
1200
+ t.unresolvedDependenciesCount--;
1201
+ continue;
1202
+ }
1203
+ if (this._hasDependencyPath(n.id, t.id)) {
1204
+ (this._hasDependencyCycle = !0),
1205
+ console.warn(
1206
+ "There is a dependency cycle between '" +
1207
+ this._moduleIdProvider.getStrModuleId(n.id) +
1208
+ "' and '" +
1209
+ this._moduleIdProvider.getStrModuleId(t.id) +
1210
+ "'. The cyclic path follows:"
1211
+ );
1212
+ let d = this._findCyclePath(n.id, t.id, 0) || [];
1213
+ d.reverse(),
1214
+ d.push(n.id),
1215
+ console.warn(
1216
+ d.map((o) => this._moduleIdProvider.getStrModuleId(o)).join(` =>
1217
+ `)
1218
+ ),
1219
+ t.unresolvedDependenciesCount--;
1220
+ continue;
1221
+ }
1222
+ if (
1223
+ ((this._inverseDependencies2[n.id] = this._inverseDependencies2[n.id] || []),
1224
+ this._inverseDependencies2[n.id].push(t.id),
1225
+ n instanceof r)
1226
+ ) {
1227
+ let d = this._modules2[n.pluginId];
1228
+ if (d && d.isComplete()) {
1229
+ this._loadPluginDependency(d.exports, n);
1230
+ continue;
1231
+ }
1232
+ let o = this._inversePluginDependencies2.get(n.pluginId);
1233
+ o || ((o = []), this._inversePluginDependencies2.set(n.pluginId, o)),
1234
+ o.push(n),
1235
+ this._loadModule(n.pluginId);
1236
+ continue;
1237
+ }
1238
+ this._loadModule(n.id);
1239
+ }
1240
+ t.unresolvedDependenciesCount === 0 && this._onModuleComplete(t);
1241
+ }
1242
+ _onModuleComplete(t) {
1243
+ let e = this.getRecorder();
1244
+ if (t.isComplete()) return;
1245
+ let i = t.dependencies,
1246
+ s = [];
1247
+ if (i)
1248
+ for (let o = 0, _ = i.length; o < _; o++) {
1249
+ let f = i[o];
1250
+ if (f === h.EXPORTS) {
1251
+ s[o] = t.exports;
1252
+ continue;
1253
+ }
1254
+ if (f === h.MODULE) {
1255
+ s[o] = { id: t.strId, config: () => this._config.getConfigForModule(t.strId) };
1256
+ continue;
1257
+ }
1258
+ if (f === h.REQUIRE) {
1259
+ s[o] = this._createRequire(t.moduleIdResolver);
1260
+ continue;
1261
+ }
1262
+ let g = this._modules2[f.id];
1263
+ if (g) {
1264
+ s[o] = g.exports;
1265
+ continue;
1266
+ }
1267
+ s[o] = null;
1268
+ }
1269
+ const n = (o) =>
1270
+ (this._inverseDependencies2[o] || []).map((_) => this._moduleIdProvider.getStrModuleId(_));
1271
+ t.complete(e, this._config, s, n);
1272
+ let l = this._inverseDependencies2[t.id];
1273
+ if (((this._inverseDependencies2[t.id] = null), l))
1274
+ for (let o = 0, _ = l.length; o < _; o++) {
1275
+ let f = l[o],
1276
+ g = this._modules2[f];
1277
+ g.unresolvedDependenciesCount--,
1278
+ g.unresolvedDependenciesCount === 0 && this._onModuleComplete(g);
1279
+ }
1280
+ let d = this._inversePluginDependencies2.get(t.id);
1281
+ if (d) {
1282
+ this._inversePluginDependencies2.delete(t.id);
1283
+ for (let o = 0, _ = d.length; o < _; o++) this._loadPluginDependency(t.exports, d[o]);
1284
+ }
1285
+ }
1286
+ }
1287
+ u.ModuleManager = c;
1288
+ })(AMDLoader || (AMDLoader = {}));
1289
+ var define, AMDLoader;
1290
+ (function (u) {
1291
+ const y = new u.Environment();
1292
+ let m = null;
1293
+ const p = function (a, t, e) {
1294
+ typeof a != 'string' && ((e = t), (t = a), (a = null)),
1295
+ (typeof t != 'object' || !Array.isArray(t)) && ((e = t), (t = null)),
1296
+ t || (t = ['require', 'exports', 'module']),
1297
+ a ? m.defineModule(a, t, e, null, null) : m.enqueueDefineAnonymousModule(t, e);
1298
+ };
1299
+ p.amd = { jQuery: !0 };
1300
+ const h = function (a, t = !1) {
1301
+ m.configure(a, t);
1302
+ },
1303
+ r = function () {
1304
+ if (arguments.length === 1) {
1305
+ if (arguments[0] instanceof Object && !Array.isArray(arguments[0])) {
1306
+ h(arguments[0]);
1307
+ return;
1308
+ }
1309
+ if (typeof arguments[0] == 'string') return m.synchronousRequire(arguments[0]);
1310
+ }
1311
+ if ((arguments.length === 2 || arguments.length === 3) && Array.isArray(arguments[0])) {
1312
+ m.defineModule(
1313
+ u.Utilities.generateAnonymousModule(),
1314
+ arguments[0],
1315
+ arguments[1],
1316
+ arguments[2],
1317
+ null
1318
+ );
1319
+ return;
1320
+ }
1321
+ throw new Error('Unrecognized require call');
1322
+ };
1323
+ (r.config = h),
1324
+ (r.getConfig = function () {
1325
+ return m.getConfig().getOptionsLiteral();
1326
+ }),
1327
+ (r.reset = function () {
1328
+ m = m.reset();
1329
+ }),
1330
+ (r.getBuildInfo = function () {
1331
+ return m.getBuildInfo();
1332
+ }),
1333
+ (r.getStats = function () {
1334
+ return m.getLoaderEvents();
1335
+ }),
1336
+ (r.define = p);
1337
+ function c() {
1338
+ if (typeof u.global.require < 'u' || typeof require < 'u') {
1339
+ const a = u.global.require || require;
1340
+ if (typeof a == 'function' && typeof a.resolve == 'function') {
1341
+ const t = u.ensureRecordedNodeRequire(m.getRecorder(), a);
1342
+ (u.global.nodeRequire = t), (r.nodeRequire = t), (r.__$__nodeRequire = t);
1343
+ }
1344
+ }
1345
+ y.isNode && !y.isElectronRenderer && !y.isElectronNodeIntegrationWebWorker
1346
+ ? (module.exports = r)
1347
+ : (y.isElectronRenderer || (u.global.define = p), (u.global.require = r));
1348
+ }
1349
+ (u.init = c),
1350
+ (typeof u.global.define != 'function' || !u.global.define.amd) &&
1351
+ ((m = new u.ModuleManager(
1352
+ y,
1353
+ u.createScriptLoader(y),
1354
+ p,
1355
+ r,
1356
+ u.Utilities.getHighPerformanceTimestamp()
1357
+ )),
1358
+ typeof u.global.require < 'u' &&
1359
+ typeof u.global.require != 'function' &&
1360
+ r.config(u.global.require),
1361
+ (define = function () {
1362
+ return p.apply(null, arguments);
1363
+ }),
1364
+ (define.amd = p.amd),
1365
+ typeof doNotInitLoader > 'u' && c());
1366
+ })(AMDLoader || (AMDLoader = {}));
1367
+
1368
+ //# sourceMappingURL=../../min-maps/vs/loader.js.map