likec4 1.48.0 → 1.49.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 (113) hide show
  1. package/README.md +11 -1
  2. package/__app__/src/likec4.js +5595 -4127
  3. package/__app__/src/routes/index.js +3 -153
  4. package/__app__/src/routes/projects.js +21 -1087
  5. package/__app__/src/routes/single.js +1221 -16
  6. package/__app__/src/style.css +1 -1
  7. package/__app__/src/vendors.js +3507 -894
  8. package/__app__/src/webcomponent.js +1 -1
  9. package/config/schema.json +155 -143
  10. package/dist/THIRD-PARTY-LICENSES.md +1739 -0
  11. package/dist/_chunks/GraphvizBinaryAdapter.mjs +72 -0
  12. package/dist/_chunks/filenames.mjs +14 -0
  13. package/dist/_chunks/index.d.mts +224 -129
  14. package/dist/_chunks/index2.d.mts +2033 -1908
  15. package/dist/_chunks/libs/@chevrotain/gast.mjs +1 -3969
  16. package/dist/_chunks/libs/@chevrotain/regexp-to-ast.mjs +9 -785
  17. package/dist/_chunks/libs/@chevrotain/utils.mjs +1 -37
  18. package/dist/_chunks/libs/@hono/mcp.mjs +34 -0
  19. package/dist/_chunks/libs/@hono/node-server.mjs +1 -436
  20. package/dist/_chunks/libs/@logtape/logtape.d.mts +741 -0
  21. package/dist/_chunks/libs/@logtape/logtape.mjs +6 -1354
  22. package/dist/_chunks/libs/@lume/kiwi.mjs +1 -1355
  23. package/dist/_chunks/libs/@modelcontextprotocol/sdk.d.mts +14 -14
  24. package/dist/_chunks/libs/@modelcontextprotocol/sdk.mjs +12 -25105
  25. package/dist/_chunks/libs/@msgpack/msgpack.mjs +1 -1503
  26. package/dist/_chunks/libs/@nanostores/react.mjs +1 -30
  27. package/dist/_chunks/libs/@smithy/util-base64.mjs +1 -100
  28. package/dist/_chunks/libs/ajv.mjs +1 -777
  29. package/dist/_chunks/libs/atomically.mjs +1 -362
  30. package/dist/_chunks/libs/birpc.mjs +1 -201
  31. package/dist/_chunks/libs/chevrotain-allstar.mjs +2 -850
  32. package/dist/_chunks/libs/chevrotain.mjs +55 -6229
  33. package/dist/_chunks/libs/conf.mjs +1 -2258
  34. package/dist/_chunks/libs/defu.mjs +1 -42
  35. package/dist/_chunks/libs/esm-env.mjs +1 -5
  36. package/dist/_chunks/libs/eventemitter3.mjs +1 -243
  37. package/dist/_chunks/libs/fast-equals.mjs +1 -446
  38. package/dist/_chunks/libs/find-up-simple.mjs +1 -24
  39. package/dist/_chunks/libs/get-port.mjs +1 -107
  40. package/dist/_chunks/libs/is-docker.mjs +1 -26
  41. package/dist/_chunks/libs/is-error-instance.mjs +1 -26
  42. package/dist/_chunks/libs/is-inside-container.mjs +1 -20
  43. package/dist/_chunks/libs/is-plain-obj.mjs +1 -9
  44. package/dist/_chunks/libs/isexe.mjs +1 -127
  45. package/dist/_chunks/libs/json5.mjs +14 -959
  46. package/dist/_chunks/libs/khroma.mjs +1 -605
  47. package/dist/_chunks/libs/ky.mjs +2 -807
  48. package/dist/_chunks/libs/langium.d.mts +2880 -2844
  49. package/dist/_chunks/libs/langium.mjs +32 -20351
  50. package/dist/_chunks/libs/merge-error-cause.mjs +2 -746
  51. package/dist/_chunks/libs/nanostores.mjs +1 -198
  52. package/dist/_chunks/libs/p-limit.mjs +1 -120
  53. package/dist/_chunks/libs/p-queue.mjs +1 -449
  54. package/dist/_chunks/libs/package-manager-detector.mjs +1 -559
  55. package/dist/_chunks/libs/package-up.mjs +1 -10
  56. package/dist/_chunks/libs/parse-ms.mjs +1 -36
  57. package/dist/_chunks/libs/pathe.mjs +1 -0
  58. package/dist/_chunks/libs/picomatch.mjs +1 -1673
  59. package/dist/_chunks/libs/pretty-ms.mjs +1 -80
  60. package/dist/_chunks/libs/remeda.mjs +1 -690
  61. package/dist/_chunks/libs/safe-stringify.mjs +1 -21
  62. package/dist/_chunks/libs/strip-indent.mjs +1 -15
  63. package/dist/_chunks/libs/tinyrainbow.mjs +1 -88
  64. package/dist/_chunks/libs/ts-graphviz.mjs +4 -725
  65. package/dist/_chunks/libs/ufo.mjs +1 -240
  66. package/dist/_chunks/libs/which.mjs +1 -84
  67. package/dist/_chunks/libs/word-wrap.mjs +12 -43
  68. package/dist/_chunks/node.mjs +481 -0
  69. package/dist/_chunks/plugin.mjs +98 -772
  70. package/dist/_chunks/rolldown-runtime.mjs +1 -48
  71. package/dist/_chunks/sequence-view.mjs +1 -575
  72. package/dist/cli/index.mjs +127 -1846
  73. package/dist/config/index.d.mts +2 -2
  74. package/dist/config/index.mjs +1 -6
  75. package/dist/index.d.mts +148 -7
  76. package/dist/index.mjs +1 -21
  77. package/dist/model/builder.mjs +1 -3
  78. package/dist/model/index.d.mts +57 -3
  79. package/dist/model/index.mjs +1 -5
  80. package/dist/vite-plugin/index.d.mts +4 -3
  81. package/dist/vite-plugin/index.mjs +1 -22
  82. package/dist/vite-plugin/internal.d.mts +5 -5
  83. package/dist/vite-plugin/internal.mjs +1 -68
  84. package/package.json +60 -41
  85. package/react/{index.d.ts → index.d.mts} +112 -70
  86. package/react/{index.js → index.mjs} +21361 -22064
  87. package/react/package.json +2 -5
  88. package/vite-plugin-modules.d.ts +5 -5
  89. package/dist/_chunks/LikeC4.d.mts +0 -121
  90. package/dist/_chunks/LikeC4.mjs +0 -202
  91. package/dist/_chunks/config-app.prod.d.mts +0 -18
  92. package/dist/_chunks/config-app.prod.mjs +0 -188
  93. package/dist/_chunks/config-webcomponent.prod.mjs +0 -71
  94. package/dist/_chunks/define-config.mjs +0 -409
  95. package/dist/_chunks/index3.d.mts +0 -60
  96. package/dist/_chunks/index4.d.mts +0 -1
  97. package/dist/_chunks/libs/@smithy/is-array-buffer.mjs +0 -10
  98. package/dist/_chunks/libs/hono.mjs +0 -1829
  99. package/dist/_chunks/libs/nanoid.mjs +0 -29
  100. package/dist/_chunks/model.mjs +0 -12
  101. package/dist/_chunks/module.d.mts +0 -71
  102. package/dist/_chunks/module.mjs +0 -18657
  103. package/dist/_chunks/vite-build.mjs +0 -69
  104. package/dist/_chunks/vite-dev.mjs +0 -79
  105. package/dist/_chunks/vite-preview.mjs +0 -27
  106. package/dist/language/module.d.mts +0 -5
  107. package/dist/language/module.mjs +0 -20
  108. package/dist/vite/vite-build.d.mts +0 -26
  109. package/dist/vite/vite-build.mjs +0 -27
  110. package/dist/vite/vite-dev.d.mts +0 -34
  111. package/dist/vite/vite-dev.mjs +0 -29
  112. package/dist/vite/vite-preview.d.mts +0 -20
  113. package/dist/vite/vite-preview.mjs +0 -26
@@ -1,3969 +1 @@
1
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.js
2
- /** Detect free variable `global` from Node.js. */
3
- var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
4
- var _freeGlobal_default = freeGlobal;
5
-
6
- //#endregion
7
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.js
8
- /** Detect free variable `self`. */
9
- var freeSelf = typeof self == "object" && self && self.Object === Object && self;
10
- /** Used as a reference to the global object. */
11
- var root = _freeGlobal_default || freeSelf || Function("return this")();
12
- var _root_default = root;
13
-
14
- //#endregion
15
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.js
16
- /** Built-in value references. */
17
- var Symbol = _root_default.Symbol;
18
- var _Symbol_default = Symbol;
19
-
20
- //#endregion
21
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.js
22
- /** Used for built-in method references. */
23
- var objectProto$3 = Object.prototype;
24
- /** Used to check objects for own properties. */
25
- var hasOwnProperty$11 = objectProto$3.hasOwnProperty;
26
- /**
27
- * Used to resolve the
28
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
29
- * of values.
30
- */
31
- var nativeObjectToString$1 = objectProto$3.toString;
32
- /** Built-in value references. */
33
- var symToStringTag$1 = _Symbol_default ? _Symbol_default.toStringTag : void 0;
34
- /**
35
- * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
36
- *
37
- * @private
38
- * @param {*} value The value to query.
39
- * @returns {string} Returns the raw `toStringTag`.
40
- */
41
- function getRawTag(value) {
42
- var isOwn = hasOwnProperty$11.call(value, symToStringTag$1), tag = value[symToStringTag$1];
43
- try {
44
- value[symToStringTag$1] = void 0;
45
- var unmasked = true;
46
- } catch (e) {}
47
- var result = nativeObjectToString$1.call(value);
48
- if (unmasked) if (isOwn) value[symToStringTag$1] = tag;
49
- else delete value[symToStringTag$1];
50
- return result;
51
- }
52
- var _getRawTag_default = getRawTag;
53
-
54
- //#endregion
55
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.js
56
- /**
57
- * Used to resolve the
58
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
59
- * of values.
60
- */
61
- var nativeObjectToString = Object.prototype.toString;
62
- /**
63
- * Converts `value` to a string using `Object.prototype.toString`.
64
- *
65
- * @private
66
- * @param {*} value The value to convert.
67
- * @returns {string} Returns the converted string.
68
- */
69
- function objectToString(value) {
70
- return nativeObjectToString.call(value);
71
- }
72
- var _objectToString_default = objectToString;
73
-
74
- //#endregion
75
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.js
76
- /** `Object#toString` result references. */
77
- var nullTag = "[object Null]", undefinedTag = "[object Undefined]";
78
- /** Built-in value references. */
79
- var symToStringTag = _Symbol_default ? _Symbol_default.toStringTag : void 0;
80
- /**
81
- * The base implementation of `getTag` without fallbacks for buggy environments.
82
- *
83
- * @private
84
- * @param {*} value The value to query.
85
- * @returns {string} Returns the `toStringTag`.
86
- */
87
- function baseGetTag(value) {
88
- if (value == null) return value === void 0 ? undefinedTag : nullTag;
89
- return symToStringTag && symToStringTag in Object(value) ? _getRawTag_default(value) : _objectToString_default(value);
90
- }
91
- var _baseGetTag_default = baseGetTag;
92
-
93
- //#endregion
94
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObjectLike.js
95
- /**
96
- * Checks if `value` is object-like. A value is object-like if it's not `null`
97
- * and has a `typeof` result of "object".
98
- *
99
- * @static
100
- * @memberOf _
101
- * @since 4.0.0
102
- * @category Lang
103
- * @param {*} value The value to check.
104
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
105
- * @example
106
- *
107
- * _.isObjectLike({});
108
- * // => true
109
- *
110
- * _.isObjectLike([1, 2, 3]);
111
- * // => true
112
- *
113
- * _.isObjectLike(_.noop);
114
- * // => false
115
- *
116
- * _.isObjectLike(null);
117
- * // => false
118
- */
119
- function isObjectLike(value) {
120
- return value != null && typeof value == "object";
121
- }
122
- var isObjectLike_default = isObjectLike;
123
-
124
- //#endregion
125
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSymbol.js
126
- /** `Object#toString` result references. */
127
- var symbolTag$1 = "[object Symbol]";
128
- /**
129
- * Checks if `value` is classified as a `Symbol` primitive or object.
130
- *
131
- * @static
132
- * @memberOf _
133
- * @since 4.0.0
134
- * @category Lang
135
- * @param {*} value The value to check.
136
- * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
137
- * @example
138
- *
139
- * _.isSymbol(Symbol.iterator);
140
- * // => true
141
- *
142
- * _.isSymbol('abc');
143
- * // => false
144
- */
145
- function isSymbol(value) {
146
- return typeof value == "symbol" || isObjectLike_default(value) && _baseGetTag_default(value) == symbolTag$1;
147
- }
148
- var isSymbol_default = isSymbol;
149
-
150
- //#endregion
151
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayMap.js
152
- /**
153
- * A specialized version of `_.map` for arrays without support for iteratee
154
- * shorthands.
155
- *
156
- * @private
157
- * @param {Array} [array] The array to iterate over.
158
- * @param {Function} iteratee The function invoked per iteration.
159
- * @returns {Array} Returns the new mapped array.
160
- */
161
- function arrayMap(array, iteratee) {
162
- var index = -1, length = array == null ? 0 : array.length, result = Array(length);
163
- while (++index < length) result[index] = iteratee(array[index], index, array);
164
- return result;
165
- }
166
- var _arrayMap_default = arrayMap;
167
-
168
- //#endregion
169
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArray.js
170
- /**
171
- * Checks if `value` is classified as an `Array` object.
172
- *
173
- * @static
174
- * @memberOf _
175
- * @since 0.1.0
176
- * @category Lang
177
- * @param {*} value The value to check.
178
- * @returns {boolean} Returns `true` if `value` is an array, else `false`.
179
- * @example
180
- *
181
- * _.isArray([1, 2, 3]);
182
- * // => true
183
- *
184
- * _.isArray(document.body.children);
185
- * // => false
186
- *
187
- * _.isArray('abc');
188
- * // => false
189
- *
190
- * _.isArray(_.noop);
191
- * // => false
192
- */
193
- var isArray = Array.isArray;
194
- var isArray_default = isArray;
195
-
196
- //#endregion
197
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseToString.js
198
- /** Used as references for various `Number` constants. */
199
- var INFINITY$2 = Infinity;
200
- /** Used to convert symbols to primitives and strings. */
201
- var symbolProto$1 = _Symbol_default ? _Symbol_default.prototype : void 0, symbolToString = symbolProto$1 ? symbolProto$1.toString : void 0;
202
- /**
203
- * The base implementation of `_.toString` which doesn't convert nullish
204
- * values to empty strings.
205
- *
206
- * @private
207
- * @param {*} value The value to process.
208
- * @returns {string} Returns the string.
209
- */
210
- function baseToString(value) {
211
- if (typeof value == "string") return value;
212
- if (isArray_default(value)) return _arrayMap_default(value, baseToString) + "";
213
- if (isSymbol_default(value)) return symbolToString ? symbolToString.call(value) : "";
214
- var result = value + "";
215
- return result == "0" && 1 / value == -INFINITY$2 ? "-0" : result;
216
- }
217
- var _baseToString_default = baseToString;
218
-
219
- //#endregion
220
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_trimmedEndIndex.js
221
- /** Used to match a single whitespace character. */
222
- var reWhitespace = /\s/;
223
- /**
224
- * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace
225
- * character of `string`.
226
- *
227
- * @private
228
- * @param {string} string The string to inspect.
229
- * @returns {number} Returns the index of the last non-whitespace character.
230
- */
231
- function trimmedEndIndex(string) {
232
- var index = string.length;
233
- while (index-- && reWhitespace.test(string.charAt(index)));
234
- return index;
235
- }
236
- var _trimmedEndIndex_default = trimmedEndIndex;
237
-
238
- //#endregion
239
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseTrim.js
240
- /** Used to match leading whitespace. */
241
- var reTrimStart = /^\s+/;
242
- /**
243
- * The base implementation of `_.trim`.
244
- *
245
- * @private
246
- * @param {string} string The string to trim.
247
- * @returns {string} Returns the trimmed string.
248
- */
249
- function baseTrim(string) {
250
- return string ? string.slice(0, _trimmedEndIndex_default(string) + 1).replace(reTrimStart, "") : string;
251
- }
252
- var _baseTrim_default = baseTrim;
253
-
254
- //#endregion
255
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.js
256
- /**
257
- * Checks if `value` is the
258
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
259
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
260
- *
261
- * @static
262
- * @memberOf _
263
- * @since 0.1.0
264
- * @category Lang
265
- * @param {*} value The value to check.
266
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
267
- * @example
268
- *
269
- * _.isObject({});
270
- * // => true
271
- *
272
- * _.isObject([1, 2, 3]);
273
- * // => true
274
- *
275
- * _.isObject(_.noop);
276
- * // => true
277
- *
278
- * _.isObject(null);
279
- * // => false
280
- */
281
- function isObject(value) {
282
- var type = typeof value;
283
- return value != null && (type == "object" || type == "function");
284
- }
285
- var isObject_default = isObject;
286
-
287
- //#endregion
288
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toNumber.js
289
- /** Used as references for various `Number` constants. */
290
- var NAN = NaN;
291
- /** Used to detect bad signed hexadecimal string values. */
292
- var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
293
- /** Used to detect binary string values. */
294
- var reIsBinary = /^0b[01]+$/i;
295
- /** Used to detect octal string values. */
296
- var reIsOctal = /^0o[0-7]+$/i;
297
- /** Built-in method references without a dependency on `root`. */
298
- var freeParseInt = parseInt;
299
- /**
300
- * Converts `value` to a number.
301
- *
302
- * @static
303
- * @memberOf _
304
- * @since 4.0.0
305
- * @category Lang
306
- * @param {*} value The value to process.
307
- * @returns {number} Returns the number.
308
- * @example
309
- *
310
- * _.toNumber(3.2);
311
- * // => 3.2
312
- *
313
- * _.toNumber(Number.MIN_VALUE);
314
- * // => 5e-324
315
- *
316
- * _.toNumber(Infinity);
317
- * // => Infinity
318
- *
319
- * _.toNumber('3.2');
320
- * // => 3.2
321
- */
322
- function toNumber(value) {
323
- if (typeof value == "number") return value;
324
- if (isSymbol_default(value)) return NAN;
325
- if (isObject_default(value)) {
326
- var other = typeof value.valueOf == "function" ? value.valueOf() : value;
327
- value = isObject_default(other) ? other + "" : other;
328
- }
329
- if (typeof value != "string") return value === 0 ? value : +value;
330
- value = _baseTrim_default(value);
331
- var isBinary = reIsBinary.test(value);
332
- return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;
333
- }
334
- var toNumber_default = toNumber;
335
-
336
- //#endregion
337
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toFinite.js
338
- /** Used as references for various `Number` constants. */
339
- var INFINITY$1 = Infinity, MAX_INTEGER = 17976931348623157e292;
340
- /**
341
- * Converts `value` to a finite number.
342
- *
343
- * @static
344
- * @memberOf _
345
- * @since 4.12.0
346
- * @category Lang
347
- * @param {*} value The value to convert.
348
- * @returns {number} Returns the converted number.
349
- * @example
350
- *
351
- * _.toFinite(3.2);
352
- * // => 3.2
353
- *
354
- * _.toFinite(Number.MIN_VALUE);
355
- * // => 5e-324
356
- *
357
- * _.toFinite(Infinity);
358
- * // => 1.7976931348623157e+308
359
- *
360
- * _.toFinite('3.2');
361
- * // => 3.2
362
- */
363
- function toFinite(value) {
364
- if (!value) return value === 0 ? value : 0;
365
- value = toNumber_default(value);
366
- if (value === INFINITY$1 || value === -INFINITY$1) return (value < 0 ? -1 : 1) * MAX_INTEGER;
367
- return value === value ? value : 0;
368
- }
369
- var toFinite_default = toFinite;
370
-
371
- //#endregion
372
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toInteger.js
373
- /**
374
- * Converts `value` to an integer.
375
- *
376
- * **Note:** This method is loosely based on
377
- * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).
378
- *
379
- * @static
380
- * @memberOf _
381
- * @since 4.0.0
382
- * @category Lang
383
- * @param {*} value The value to convert.
384
- * @returns {number} Returns the converted integer.
385
- * @example
386
- *
387
- * _.toInteger(3.2);
388
- * // => 3
389
- *
390
- * _.toInteger(Number.MIN_VALUE);
391
- * // => 0
392
- *
393
- * _.toInteger(Infinity);
394
- * // => 1.7976931348623157e+308
395
- *
396
- * _.toInteger('3.2');
397
- * // => 3
398
- */
399
- function toInteger(value) {
400
- var result = toFinite_default(value), remainder = result % 1;
401
- return result === result ? remainder ? result - remainder : result : 0;
402
- }
403
- var toInteger_default = toInteger;
404
-
405
- //#endregion
406
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/identity.js
407
- /**
408
- * This method returns the first argument it receives.
409
- *
410
- * @static
411
- * @since 0.1.0
412
- * @memberOf _
413
- * @category Util
414
- * @param {*} value Any value.
415
- * @returns {*} Returns `value`.
416
- * @example
417
- *
418
- * var object = { 'a': 1 };
419
- *
420
- * console.log(_.identity(object) === object);
421
- * // => true
422
- */
423
- function identity(value) {
424
- return value;
425
- }
426
- var identity_default = identity;
427
-
428
- //#endregion
429
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isFunction.js
430
- /** `Object#toString` result references. */
431
- var asyncTag = "[object AsyncFunction]", funcTag$1 = "[object Function]", genTag = "[object GeneratorFunction]", proxyTag = "[object Proxy]";
432
- /**
433
- * Checks if `value` is classified as a `Function` object.
434
- *
435
- * @static
436
- * @memberOf _
437
- * @since 0.1.0
438
- * @category Lang
439
- * @param {*} value The value to check.
440
- * @returns {boolean} Returns `true` if `value` is a function, else `false`.
441
- * @example
442
- *
443
- * _.isFunction(_);
444
- * // => true
445
- *
446
- * _.isFunction(/abc/);
447
- * // => false
448
- */
449
- function isFunction(value) {
450
- if (!isObject_default(value)) return false;
451
- var tag = _baseGetTag_default(value);
452
- return tag == funcTag$1 || tag == genTag || tag == asyncTag || tag == proxyTag;
453
- }
454
- var isFunction_default = isFunction;
455
-
456
- //#endregion
457
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_coreJsData.js
458
- /** Used to detect overreaching core-js shims. */
459
- var coreJsData = _root_default["__core-js_shared__"];
460
- var _coreJsData_default = coreJsData;
461
-
462
- //#endregion
463
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isMasked.js
464
- /** Used to detect methods masquerading as native. */
465
- var maskSrcKey = function() {
466
- var uid = /[^.]+$/.exec(_coreJsData_default && _coreJsData_default.keys && _coreJsData_default.keys.IE_PROTO || "");
467
- return uid ? "Symbol(src)_1." + uid : "";
468
- }();
469
- /**
470
- * Checks if `func` has its source masked.
471
- *
472
- * @private
473
- * @param {Function} func The function to check.
474
- * @returns {boolean} Returns `true` if `func` is masked, else `false`.
475
- */
476
- function isMasked(func) {
477
- return !!maskSrcKey && maskSrcKey in func;
478
- }
479
- var _isMasked_default = isMasked;
480
-
481
- //#endregion
482
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toSource.js
483
- /** Used to resolve the decompiled source of functions. */
484
- var funcToString$1 = Function.prototype.toString;
485
- /**
486
- * Converts `func` to its source code.
487
- *
488
- * @private
489
- * @param {Function} func The function to convert.
490
- * @returns {string} Returns the source code.
491
- */
492
- function toSource(func) {
493
- if (func != null) {
494
- try {
495
- return funcToString$1.call(func);
496
- } catch (e) {}
497
- try {
498
- return func + "";
499
- } catch (e) {}
500
- }
501
- return "";
502
- }
503
- var _toSource_default = toSource;
504
-
505
- //#endregion
506
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNative.js
507
- /**
508
- * Used to match `RegExp`
509
- * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
510
- */
511
- var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
512
- /** Used to detect host constructors (Safari). */
513
- var reIsHostCtor = /^\[object .+?Constructor\]$/;
514
- /** Used for built-in method references. */
515
- var funcProto = Function.prototype, objectProto$2 = Object.prototype;
516
- /** Used to resolve the decompiled source of functions. */
517
- var funcToString = funcProto.toString;
518
- /** Used to check objects for own properties. */
519
- var hasOwnProperty$10 = objectProto$2.hasOwnProperty;
520
- /** Used to detect if a method is native. */
521
- var reIsNative = RegExp("^" + funcToString.call(hasOwnProperty$10).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
522
- /**
523
- * The base implementation of `_.isNative` without bad shim checks.
524
- *
525
- * @private
526
- * @param {*} value The value to check.
527
- * @returns {boolean} Returns `true` if `value` is a native function,
528
- * else `false`.
529
- */
530
- function baseIsNative(value) {
531
- if (!isObject_default(value) || _isMasked_default(value)) return false;
532
- return (isFunction_default(value) ? reIsNative : reIsHostCtor).test(_toSource_default(value));
533
- }
534
- var _baseIsNative_default = baseIsNative;
535
-
536
- //#endregion
537
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getValue.js
538
- /**
539
- * Gets the value at `key` of `object`.
540
- *
541
- * @private
542
- * @param {Object} [object] The object to query.
543
- * @param {string} key The key of the property to get.
544
- * @returns {*} Returns the property value.
545
- */
546
- function getValue(object, key) {
547
- return object == null ? void 0 : object[key];
548
- }
549
- var _getValue_default = getValue;
550
-
551
- //#endregion
552
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getNative.js
553
- /**
554
- * Gets the native function at `key` of `object`.
555
- *
556
- * @private
557
- * @param {Object} object The object to query.
558
- * @param {string} key The key of the method to get.
559
- * @returns {*} Returns the function if it's native, else `undefined`.
560
- */
561
- function getNative(object, key) {
562
- var value = _getValue_default(object, key);
563
- return _baseIsNative_default(value) ? value : void 0;
564
- }
565
- var _getNative_default = getNative;
566
-
567
- //#endregion
568
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_WeakMap.js
569
- var WeakMap = _getNative_default(_root_default, "WeakMap");
570
- var _WeakMap_default = WeakMap;
571
-
572
- //#endregion
573
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_apply.js
574
- /**
575
- * A faster alternative to `Function#apply`, this function invokes `func`
576
- * with the `this` binding of `thisArg` and the arguments of `args`.
577
- *
578
- * @private
579
- * @param {Function} func The function to invoke.
580
- * @param {*} thisArg The `this` binding of `func`.
581
- * @param {Array} args The arguments to invoke `func` with.
582
- * @returns {*} Returns the result of `func`.
583
- */
584
- function apply(func, thisArg, args) {
585
- switch (args.length) {
586
- case 0: return func.call(thisArg);
587
- case 1: return func.call(thisArg, args[0]);
588
- case 2: return func.call(thisArg, args[0], args[1]);
589
- case 3: return func.call(thisArg, args[0], args[1], args[2]);
590
- }
591
- return func.apply(thisArg, args);
592
- }
593
- var _apply_default = apply;
594
-
595
- //#endregion
596
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_shortOut.js
597
- /** Used to detect hot functions by number of calls within a span of milliseconds. */
598
- var HOT_COUNT = 800, HOT_SPAN = 16;
599
- var nativeNow = Date.now;
600
- /**
601
- * Creates a function that'll short out and invoke `identity` instead
602
- * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
603
- * milliseconds.
604
- *
605
- * @private
606
- * @param {Function} func The function to restrict.
607
- * @returns {Function} Returns the new shortable function.
608
- */
609
- function shortOut(func) {
610
- var count = 0, lastCalled = 0;
611
- return function() {
612
- var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled);
613
- lastCalled = stamp;
614
- if (remaining > 0) {
615
- if (++count >= HOT_COUNT) return arguments[0];
616
- } else count = 0;
617
- return func.apply(void 0, arguments);
618
- };
619
- }
620
- var _shortOut_default = shortOut;
621
-
622
- //#endregion
623
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/constant.js
624
- /**
625
- * Creates a function that returns `value`.
626
- *
627
- * @static
628
- * @memberOf _
629
- * @since 2.4.0
630
- * @category Util
631
- * @param {*} value The value to return from the new function.
632
- * @returns {Function} Returns the new constant function.
633
- * @example
634
- *
635
- * var objects = _.times(2, _.constant({ 'a': 1 }));
636
- *
637
- * console.log(objects);
638
- * // => [{ 'a': 1 }, { 'a': 1 }]
639
- *
640
- * console.log(objects[0] === objects[1]);
641
- * // => true
642
- */
643
- function constant(value) {
644
- return function() {
645
- return value;
646
- };
647
- }
648
- var constant_default = constant;
649
-
650
- //#endregion
651
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_defineProperty.js
652
- var defineProperty = function() {
653
- try {
654
- var func = _getNative_default(Object, "defineProperty");
655
- func({}, "", {});
656
- return func;
657
- } catch (e) {}
658
- }();
659
- var _defineProperty_default = defineProperty;
660
-
661
- //#endregion
662
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseSetToString.js
663
- /**
664
- * The base implementation of `setToString` without support for hot loop shorting.
665
- *
666
- * @private
667
- * @param {Function} func The function to modify.
668
- * @param {Function} string The `toString` result.
669
- * @returns {Function} Returns `func`.
670
- */
671
- var baseSetToString = !_defineProperty_default ? identity_default : function(func, string) {
672
- return _defineProperty_default(func, "toString", {
673
- "configurable": true,
674
- "enumerable": false,
675
- "value": constant_default(string),
676
- "writable": true
677
- });
678
- };
679
- var _baseSetToString_default = baseSetToString;
680
-
681
- //#endregion
682
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setToString.js
683
- /**
684
- * Sets the `toString` method of `func` to return `string`.
685
- *
686
- * @private
687
- * @param {Function} func The function to modify.
688
- * @param {Function} string The `toString` result.
689
- * @returns {Function} Returns `func`.
690
- */
691
- var setToString = _shortOut_default(_baseSetToString_default);
692
- var _setToString_default = setToString;
693
-
694
- //#endregion
695
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayEach.js
696
- /**
697
- * A specialized version of `_.forEach` for arrays without support for
698
- * iteratee shorthands.
699
- *
700
- * @private
701
- * @param {Array} [array] The array to iterate over.
702
- * @param {Function} iteratee The function invoked per iteration.
703
- * @returns {Array} Returns `array`.
704
- */
705
- function arrayEach(array, iteratee) {
706
- var index = -1, length = array == null ? 0 : array.length;
707
- while (++index < length) if (iteratee(array[index], index, array) === false) break;
708
- return array;
709
- }
710
- var _arrayEach_default = arrayEach;
711
-
712
- //#endregion
713
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseFindIndex.js
714
- /**
715
- * The base implementation of `_.findIndex` and `_.findLastIndex` without
716
- * support for iteratee shorthands.
717
- *
718
- * @private
719
- * @param {Array} array The array to inspect.
720
- * @param {Function} predicate The function invoked per iteration.
721
- * @param {number} fromIndex The index to search from.
722
- * @param {boolean} [fromRight] Specify iterating from right to left.
723
- * @returns {number} Returns the index of the matched value, else `-1`.
724
- */
725
- function baseFindIndex(array, predicate, fromIndex, fromRight) {
726
- var length = array.length, index = fromIndex + (fromRight ? 1 : -1);
727
- while (fromRight ? index-- : ++index < length) if (predicate(array[index], index, array)) return index;
728
- return -1;
729
- }
730
- var _baseFindIndex_default = baseFindIndex;
731
-
732
- //#endregion
733
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNaN.js
734
- /**
735
- * The base implementation of `_.isNaN` without support for number objects.
736
- *
737
- * @private
738
- * @param {*} value The value to check.
739
- * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
740
- */
741
- function baseIsNaN(value) {
742
- return value !== value;
743
- }
744
- var _baseIsNaN_default = baseIsNaN;
745
-
746
- //#endregion
747
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_strictIndexOf.js
748
- /**
749
- * A specialized version of `_.indexOf` which performs strict equality
750
- * comparisons of values, i.e. `===`.
751
- *
752
- * @private
753
- * @param {Array} array The array to inspect.
754
- * @param {*} value The value to search for.
755
- * @param {number} fromIndex The index to search from.
756
- * @returns {number} Returns the index of the matched value, else `-1`.
757
- */
758
- function strictIndexOf(array, value, fromIndex) {
759
- var index = fromIndex - 1, length = array.length;
760
- while (++index < length) if (array[index] === value) return index;
761
- return -1;
762
- }
763
- var _strictIndexOf_default = strictIndexOf;
764
-
765
- //#endregion
766
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIndexOf.js
767
- /**
768
- * The base implementation of `_.indexOf` without `fromIndex` bounds checks.
769
- *
770
- * @private
771
- * @param {Array} array The array to inspect.
772
- * @param {*} value The value to search for.
773
- * @param {number} fromIndex The index to search from.
774
- * @returns {number} Returns the index of the matched value, else `-1`.
775
- */
776
- function baseIndexOf(array, value, fromIndex) {
777
- return value === value ? _strictIndexOf_default(array, value, fromIndex) : _baseFindIndex_default(array, _baseIsNaN_default, fromIndex);
778
- }
779
- var _baseIndexOf_default = baseIndexOf;
780
-
781
- //#endregion
782
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isIndex.js
783
- /** Used as references for various `Number` constants. */
784
- var MAX_SAFE_INTEGER$1 = 9007199254740991;
785
- /** Used to detect unsigned integer values. */
786
- var reIsUint = /^(?:0|[1-9]\d*)$/;
787
- /**
788
- * Checks if `value` is a valid array-like index.
789
- *
790
- * @private
791
- * @param {*} value The value to check.
792
- * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
793
- * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
794
- */
795
- function isIndex(value, length) {
796
- var type = typeof value;
797
- length = length == null ? MAX_SAFE_INTEGER$1 : length;
798
- return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && value > -1 && value % 1 == 0 && value < length;
799
- }
800
- var _isIndex_default = isIndex;
801
-
802
- //#endregion
803
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseAssignValue.js
804
- /**
805
- * The base implementation of `assignValue` and `assignMergeValue` without
806
- * value checks.
807
- *
808
- * @private
809
- * @param {Object} object The object to modify.
810
- * @param {string} key The key of the property to assign.
811
- * @param {*} value The value to assign.
812
- */
813
- function baseAssignValue(object, key, value) {
814
- if (key == "__proto__" && _defineProperty_default) _defineProperty_default(object, key, {
815
- "configurable": true,
816
- "enumerable": true,
817
- "value": value,
818
- "writable": true
819
- });
820
- else object[key] = value;
821
- }
822
- var _baseAssignValue_default = baseAssignValue;
823
-
824
- //#endregion
825
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/eq.js
826
- /**
827
- * Performs a
828
- * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
829
- * comparison between two values to determine if they are equivalent.
830
- *
831
- * @static
832
- * @memberOf _
833
- * @since 4.0.0
834
- * @category Lang
835
- * @param {*} value The value to compare.
836
- * @param {*} other The other value to compare.
837
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
838
- * @example
839
- *
840
- * var object = { 'a': 1 };
841
- * var other = { 'a': 1 };
842
- *
843
- * _.eq(object, object);
844
- * // => true
845
- *
846
- * _.eq(object, other);
847
- * // => false
848
- *
849
- * _.eq('a', 'a');
850
- * // => true
851
- *
852
- * _.eq('a', Object('a'));
853
- * // => false
854
- *
855
- * _.eq(NaN, NaN);
856
- * // => true
857
- */
858
- function eq(value, other) {
859
- return value === other || value !== value && other !== other;
860
- }
861
- var eq_default = eq;
862
-
863
- //#endregion
864
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assignValue.js
865
- /** Used to check objects for own properties. */
866
- var hasOwnProperty$9 = Object.prototype.hasOwnProperty;
867
- /**
868
- * Assigns `value` to `key` of `object` if the existing value is not equivalent
869
- * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
870
- * for equality comparisons.
871
- *
872
- * @private
873
- * @param {Object} object The object to modify.
874
- * @param {string} key The key of the property to assign.
875
- * @param {*} value The value to assign.
876
- */
877
- function assignValue(object, key, value) {
878
- var objValue = object[key];
879
- if (!(hasOwnProperty$9.call(object, key) && eq_default(objValue, value)) || value === void 0 && !(key in object)) _baseAssignValue_default(object, key, value);
880
- }
881
- var _assignValue_default = assignValue;
882
-
883
- //#endregion
884
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copyObject.js
885
- /**
886
- * Copies properties of `source` to `object`.
887
- *
888
- * @private
889
- * @param {Object} source The object to copy properties from.
890
- * @param {Array} props The property identifiers to copy.
891
- * @param {Object} [object={}] The object to copy properties to.
892
- * @param {Function} [customizer] The function to customize copied values.
893
- * @returns {Object} Returns `object`.
894
- */
895
- function copyObject(source, props, object, customizer) {
896
- var isNew = !object;
897
- object || (object = {});
898
- var index = -1, length = props.length;
899
- while (++index < length) {
900
- var key = props[index];
901
- var newValue = customizer ? customizer(object[key], source[key], key, object, source) : void 0;
902
- if (newValue === void 0) newValue = source[key];
903
- if (isNew) _baseAssignValue_default(object, key, newValue);
904
- else _assignValue_default(object, key, newValue);
905
- }
906
- return object;
907
- }
908
- var _copyObject_default = copyObject;
909
-
910
- //#endregion
911
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_overRest.js
912
- var nativeMax$1 = Math.max;
913
- /**
914
- * A specialized version of `baseRest` which transforms the rest array.
915
- *
916
- * @private
917
- * @param {Function} func The function to apply a rest parameter to.
918
- * @param {number} [start=func.length-1] The start position of the rest parameter.
919
- * @param {Function} transform The rest array transform.
920
- * @returns {Function} Returns the new function.
921
- */
922
- function overRest(func, start, transform) {
923
- start = nativeMax$1(start === void 0 ? func.length - 1 : start, 0);
924
- return function() {
925
- var args = arguments, index = -1, length = nativeMax$1(args.length - start, 0), array = Array(length);
926
- while (++index < length) array[index] = args[start + index];
927
- index = -1;
928
- var otherArgs = Array(start + 1);
929
- while (++index < start) otherArgs[index] = args[index];
930
- otherArgs[start] = transform(array);
931
- return _apply_default(func, this, otherArgs);
932
- };
933
- }
934
- var _overRest_default = overRest;
935
-
936
- //#endregion
937
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseRest.js
938
- /**
939
- * The base implementation of `_.rest` which doesn't validate or coerce arguments.
940
- *
941
- * @private
942
- * @param {Function} func The function to apply a rest parameter to.
943
- * @param {number} [start=func.length-1] The start position of the rest parameter.
944
- * @returns {Function} Returns the new function.
945
- */
946
- function baseRest(func, start) {
947
- return _setToString_default(_overRest_default(func, start, identity_default), func + "");
948
- }
949
- var _baseRest_default = baseRest;
950
-
951
- //#endregion
952
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isLength.js
953
- /** Used as references for various `Number` constants. */
954
- var MAX_SAFE_INTEGER = 9007199254740991;
955
- /**
956
- * Checks if `value` is a valid array-like length.
957
- *
958
- * **Note:** This method is loosely based on
959
- * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
960
- *
961
- * @static
962
- * @memberOf _
963
- * @since 4.0.0
964
- * @category Lang
965
- * @param {*} value The value to check.
966
- * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
967
- * @example
968
- *
969
- * _.isLength(3);
970
- * // => true
971
- *
972
- * _.isLength(Number.MIN_VALUE);
973
- * // => false
974
- *
975
- * _.isLength(Infinity);
976
- * // => false
977
- *
978
- * _.isLength('3');
979
- * // => false
980
- */
981
- function isLength(value) {
982
- return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
983
- }
984
- var isLength_default = isLength;
985
-
986
- //#endregion
987
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArrayLike.js
988
- /**
989
- * Checks if `value` is array-like. A value is considered array-like if it's
990
- * not a function and has a `value.length` that's an integer greater than or
991
- * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
992
- *
993
- * @static
994
- * @memberOf _
995
- * @since 4.0.0
996
- * @category Lang
997
- * @param {*} value The value to check.
998
- * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
999
- * @example
1000
- *
1001
- * _.isArrayLike([1, 2, 3]);
1002
- * // => true
1003
- *
1004
- * _.isArrayLike(document.body.children);
1005
- * // => true
1006
- *
1007
- * _.isArrayLike('abc');
1008
- * // => true
1009
- *
1010
- * _.isArrayLike(_.noop);
1011
- * // => false
1012
- */
1013
- function isArrayLike(value) {
1014
- return value != null && isLength_default(value.length) && !isFunction_default(value);
1015
- }
1016
- var isArrayLike_default = isArrayLike;
1017
-
1018
- //#endregion
1019
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isIterateeCall.js
1020
- /**
1021
- * Checks if the given arguments are from an iteratee call.
1022
- *
1023
- * @private
1024
- * @param {*} value The potential iteratee value argument.
1025
- * @param {*} index The potential iteratee index or key argument.
1026
- * @param {*} object The potential iteratee object argument.
1027
- * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
1028
- * else `false`.
1029
- */
1030
- function isIterateeCall(value, index, object) {
1031
- if (!isObject_default(object)) return false;
1032
- var type = typeof index;
1033
- if (type == "number" ? isArrayLike_default(object) && _isIndex_default(index, object.length) : type == "string" && index in object) return eq_default(object[index], value);
1034
- return false;
1035
- }
1036
- var _isIterateeCall_default = isIterateeCall;
1037
-
1038
- //#endregion
1039
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createAssigner.js
1040
- /**
1041
- * Creates a function like `_.assign`.
1042
- *
1043
- * @private
1044
- * @param {Function} assigner The function to assign values.
1045
- * @returns {Function} Returns the new assigner function.
1046
- */
1047
- function createAssigner(assigner) {
1048
- return _baseRest_default(function(object, sources) {
1049
- var index = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : void 0, guard = length > 2 ? sources[2] : void 0;
1050
- customizer = assigner.length > 3 && typeof customizer == "function" ? (length--, customizer) : void 0;
1051
- if (guard && _isIterateeCall_default(sources[0], sources[1], guard)) {
1052
- customizer = length < 3 ? void 0 : customizer;
1053
- length = 1;
1054
- }
1055
- object = Object(object);
1056
- while (++index < length) {
1057
- var source = sources[index];
1058
- if (source) assigner(object, source, index, customizer);
1059
- }
1060
- return object;
1061
- });
1062
- }
1063
- var _createAssigner_default = createAssigner;
1064
-
1065
- //#endregion
1066
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isPrototype.js
1067
- /** Used for built-in method references. */
1068
- var objectProto$1 = Object.prototype;
1069
- /**
1070
- * Checks if `value` is likely a prototype object.
1071
- *
1072
- * @private
1073
- * @param {*} value The value to check.
1074
- * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
1075
- */
1076
- function isPrototype(value) {
1077
- var Ctor = value && value.constructor;
1078
- return value === (typeof Ctor == "function" && Ctor.prototype || objectProto$1);
1079
- }
1080
- var _isPrototype_default = isPrototype;
1081
-
1082
- //#endregion
1083
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseTimes.js
1084
- /**
1085
- * The base implementation of `_.times` without support for iteratee shorthands
1086
- * or max array length checks.
1087
- *
1088
- * @private
1089
- * @param {number} n The number of times to invoke `iteratee`.
1090
- * @param {Function} iteratee The function invoked per iteration.
1091
- * @returns {Array} Returns the array of results.
1092
- */
1093
- function baseTimes(n, iteratee) {
1094
- var index = -1, result = Array(n);
1095
- while (++index < n) result[index] = iteratee(index);
1096
- return result;
1097
- }
1098
- var _baseTimes_default = baseTimes;
1099
-
1100
- //#endregion
1101
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsArguments.js
1102
- /** `Object#toString` result references. */
1103
- var argsTag$2 = "[object Arguments]";
1104
- /**
1105
- * The base implementation of `_.isArguments`.
1106
- *
1107
- * @private
1108
- * @param {*} value The value to check.
1109
- * @returns {boolean} Returns `true` if `value` is an `arguments` object,
1110
- */
1111
- function baseIsArguments(value) {
1112
- return isObjectLike_default(value) && _baseGetTag_default(value) == argsTag$2;
1113
- }
1114
- var _baseIsArguments_default = baseIsArguments;
1115
-
1116
- //#endregion
1117
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArguments.js
1118
- /** Used for built-in method references. */
1119
- var objectProto = Object.prototype;
1120
- /** Used to check objects for own properties. */
1121
- var hasOwnProperty$8 = objectProto.hasOwnProperty;
1122
- /** Built-in value references. */
1123
- var propertyIsEnumerable$1 = objectProto.propertyIsEnumerable;
1124
- /**
1125
- * Checks if `value` is likely an `arguments` object.
1126
- *
1127
- * @static
1128
- * @memberOf _
1129
- * @since 0.1.0
1130
- * @category Lang
1131
- * @param {*} value The value to check.
1132
- * @returns {boolean} Returns `true` if `value` is an `arguments` object,
1133
- * else `false`.
1134
- * @example
1135
- *
1136
- * _.isArguments(function() { return arguments; }());
1137
- * // => true
1138
- *
1139
- * _.isArguments([1, 2, 3]);
1140
- * // => false
1141
- */
1142
- var isArguments = _baseIsArguments_default(function() {
1143
- return arguments;
1144
- }()) ? _baseIsArguments_default : function(value) {
1145
- return isObjectLike_default(value) && hasOwnProperty$8.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
1146
- };
1147
- var isArguments_default = isArguments;
1148
-
1149
- //#endregion
1150
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/stubFalse.js
1151
- /**
1152
- * This method returns `false`.
1153
- *
1154
- * @static
1155
- * @memberOf _
1156
- * @since 4.13.0
1157
- * @category Util
1158
- * @returns {boolean} Returns `false`.
1159
- * @example
1160
- *
1161
- * _.times(2, _.stubFalse);
1162
- * // => [false, false]
1163
- */
1164
- function stubFalse() {
1165
- return false;
1166
- }
1167
- var stubFalse_default = stubFalse;
1168
-
1169
- //#endregion
1170
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isBuffer.js
1171
- /** Detect free variable `exports`. */
1172
- var freeExports$1 = typeof exports == "object" && exports && !exports.nodeType && exports;
1173
- /** Detect free variable `module`. */
1174
- var freeModule$1 = freeExports$1 && typeof module == "object" && module && !module.nodeType && module;
1175
- /** Built-in value references. */
1176
- var Buffer = freeModule$1 && freeModule$1.exports === freeExports$1 ? _root_default.Buffer : void 0;
1177
- /**
1178
- * Checks if `value` is a buffer.
1179
- *
1180
- * @static
1181
- * @memberOf _
1182
- * @since 4.3.0
1183
- * @category Lang
1184
- * @param {*} value The value to check.
1185
- * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
1186
- * @example
1187
- *
1188
- * _.isBuffer(new Buffer(2));
1189
- * // => true
1190
- *
1191
- * _.isBuffer(new Uint8Array(2));
1192
- * // => false
1193
- */
1194
- var isBuffer = (Buffer ? Buffer.isBuffer : void 0) || stubFalse_default;
1195
- var isBuffer_default = isBuffer;
1196
-
1197
- //#endregion
1198
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsTypedArray.js
1199
- /** `Object#toString` result references. */
1200
- var argsTag$1 = "[object Arguments]", arrayTag$1 = "[object Array]", boolTag$1 = "[object Boolean]", dateTag$1 = "[object Date]", errorTag$1 = "[object Error]", funcTag = "[object Function]", mapTag$2 = "[object Map]", numberTag$1 = "[object Number]", objectTag$2 = "[object Object]", regexpTag$2 = "[object RegExp]", setTag$2 = "[object Set]", stringTag$2 = "[object String]", weakMapTag$1 = "[object WeakMap]";
1201
- var arrayBufferTag$1 = "[object ArrayBuffer]", dataViewTag$2 = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]";
1202
- /** Used to identify `toStringTag` values of typed arrays. */
1203
- var typedArrayTags = {};
1204
- typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;
1205
- typedArrayTags[argsTag$1] = typedArrayTags[arrayTag$1] = typedArrayTags[arrayBufferTag$1] = typedArrayTags[boolTag$1] = typedArrayTags[dataViewTag$2] = typedArrayTags[dateTag$1] = typedArrayTags[errorTag$1] = typedArrayTags[funcTag] = typedArrayTags[mapTag$2] = typedArrayTags[numberTag$1] = typedArrayTags[objectTag$2] = typedArrayTags[regexpTag$2] = typedArrayTags[setTag$2] = typedArrayTags[stringTag$2] = typedArrayTags[weakMapTag$1] = false;
1206
- /**
1207
- * The base implementation of `_.isTypedArray` without Node.js optimizations.
1208
- *
1209
- * @private
1210
- * @param {*} value The value to check.
1211
- * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
1212
- */
1213
- function baseIsTypedArray(value) {
1214
- return isObjectLike_default(value) && isLength_default(value.length) && !!typedArrayTags[_baseGetTag_default(value)];
1215
- }
1216
- var _baseIsTypedArray_default = baseIsTypedArray;
1217
-
1218
- //#endregion
1219
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseUnary.js
1220
- /**
1221
- * The base implementation of `_.unary` without support for storing metadata.
1222
- *
1223
- * @private
1224
- * @param {Function} func The function to cap arguments for.
1225
- * @returns {Function} Returns the new capped function.
1226
- */
1227
- function baseUnary(func) {
1228
- return function(value) {
1229
- return func(value);
1230
- };
1231
- }
1232
- var _baseUnary_default = baseUnary;
1233
-
1234
- //#endregion
1235
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nodeUtil.js
1236
- /** Detect free variable `exports`. */
1237
- var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
1238
- /** Detect free variable `module`. */
1239
- var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
1240
- /** Detect free variable `process` from Node.js. */
1241
- var freeProcess = freeModule && freeModule.exports === freeExports && _freeGlobal_default.process;
1242
- /** Used to access faster Node.js helpers. */
1243
- var nodeUtil = function() {
1244
- try {
1245
- var types = freeModule && freeModule.require && freeModule.require("util").types;
1246
- if (types) return types;
1247
- return freeProcess && freeProcess.binding && freeProcess.binding("util");
1248
- } catch (e) {}
1249
- }();
1250
- var _nodeUtil_default = nodeUtil;
1251
-
1252
- //#endregion
1253
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isTypedArray.js
1254
- var nodeIsTypedArray = _nodeUtil_default && _nodeUtil_default.isTypedArray;
1255
- /**
1256
- * Checks if `value` is classified as a typed array.
1257
- *
1258
- * @static
1259
- * @memberOf _
1260
- * @since 3.0.0
1261
- * @category Lang
1262
- * @param {*} value The value to check.
1263
- * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
1264
- * @example
1265
- *
1266
- * _.isTypedArray(new Uint8Array);
1267
- * // => true
1268
- *
1269
- * _.isTypedArray([]);
1270
- * // => false
1271
- */
1272
- var isTypedArray = nodeIsTypedArray ? _baseUnary_default(nodeIsTypedArray) : _baseIsTypedArray_default;
1273
- var isTypedArray_default = isTypedArray;
1274
-
1275
- //#endregion
1276
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayLikeKeys.js
1277
- /** Used to check objects for own properties. */
1278
- var hasOwnProperty$7 = Object.prototype.hasOwnProperty;
1279
- /**
1280
- * Creates an array of the enumerable property names of the array-like `value`.
1281
- *
1282
- * @private
1283
- * @param {*} value The value to query.
1284
- * @param {boolean} inherited Specify returning inherited property names.
1285
- * @returns {Array} Returns the array of property names.
1286
- */
1287
- function arrayLikeKeys(value, inherited) {
1288
- var isArr = isArray_default(value), isArg = !isArr && isArguments_default(value), isBuff = !isArr && !isArg && isBuffer_default(value), isType = !isArr && !isArg && !isBuff && isTypedArray_default(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? _baseTimes_default(value.length, String) : [], length = result.length;
1289
- for (var key in value) if ((inherited || hasOwnProperty$7.call(value, key)) && !(skipIndexes && (key == "length" || isBuff && (key == "offset" || key == "parent") || isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || _isIndex_default(key, length)))) result.push(key);
1290
- return result;
1291
- }
1292
- var _arrayLikeKeys_default = arrayLikeKeys;
1293
-
1294
- //#endregion
1295
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_overArg.js
1296
- /**
1297
- * Creates a unary function that invokes `func` with its argument transformed.
1298
- *
1299
- * @private
1300
- * @param {Function} func The function to wrap.
1301
- * @param {Function} transform The argument transform.
1302
- * @returns {Function} Returns the new function.
1303
- */
1304
- function overArg(func, transform) {
1305
- return function(arg) {
1306
- return func(transform(arg));
1307
- };
1308
- }
1309
- var _overArg_default = overArg;
1310
-
1311
- //#endregion
1312
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeys.js
1313
- var nativeKeys = _overArg_default(Object.keys, Object);
1314
- var _nativeKeys_default = nativeKeys;
1315
-
1316
- //#endregion
1317
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseKeys.js
1318
- /** Used to check objects for own properties. */
1319
- var hasOwnProperty$6 = Object.prototype.hasOwnProperty;
1320
- /**
1321
- * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
1322
- *
1323
- * @private
1324
- * @param {Object} object The object to query.
1325
- * @returns {Array} Returns the array of property names.
1326
- */
1327
- function baseKeys(object) {
1328
- if (!_isPrototype_default(object)) return _nativeKeys_default(object);
1329
- var result = [];
1330
- for (var key in Object(object)) if (hasOwnProperty$6.call(object, key) && key != "constructor") result.push(key);
1331
- return result;
1332
- }
1333
- var _baseKeys_default = baseKeys;
1334
-
1335
- //#endregion
1336
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/keys.js
1337
- /**
1338
- * Creates an array of the own enumerable property names of `object`.
1339
- *
1340
- * **Note:** Non-object values are coerced to objects. See the
1341
- * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
1342
- * for more details.
1343
- *
1344
- * @static
1345
- * @since 0.1.0
1346
- * @memberOf _
1347
- * @category Object
1348
- * @param {Object} object The object to query.
1349
- * @returns {Array} Returns the array of property names.
1350
- * @example
1351
- *
1352
- * function Foo() {
1353
- * this.a = 1;
1354
- * this.b = 2;
1355
- * }
1356
- *
1357
- * Foo.prototype.c = 3;
1358
- *
1359
- * _.keys(new Foo);
1360
- * // => ['a', 'b'] (iteration order is not guaranteed)
1361
- *
1362
- * _.keys('hi');
1363
- * // => ['0', '1']
1364
- */
1365
- function keys(object) {
1366
- return isArrayLike_default(object) ? _arrayLikeKeys_default(object) : _baseKeys_default(object);
1367
- }
1368
- var keys_default = keys;
1369
-
1370
- //#endregion
1371
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/assign.js
1372
- /** Used to check objects for own properties. */
1373
- var hasOwnProperty$5 = Object.prototype.hasOwnProperty;
1374
- /**
1375
- * Assigns own enumerable string keyed properties of source objects to the
1376
- * destination object. Source objects are applied from left to right.
1377
- * Subsequent sources overwrite property assignments of previous sources.
1378
- *
1379
- * **Note:** This method mutates `object` and is loosely based on
1380
- * [`Object.assign`](https://mdn.io/Object/assign).
1381
- *
1382
- * @static
1383
- * @memberOf _
1384
- * @since 0.10.0
1385
- * @category Object
1386
- * @param {Object} object The destination object.
1387
- * @param {...Object} [sources] The source objects.
1388
- * @returns {Object} Returns `object`.
1389
- * @see _.assignIn
1390
- * @example
1391
- *
1392
- * function Foo() {
1393
- * this.a = 1;
1394
- * }
1395
- *
1396
- * function Bar() {
1397
- * this.c = 3;
1398
- * }
1399
- *
1400
- * Foo.prototype.b = 2;
1401
- * Bar.prototype.d = 4;
1402
- *
1403
- * _.assign({ 'a': 0 }, new Foo, new Bar);
1404
- * // => { 'a': 1, 'c': 3 }
1405
- */
1406
- var assign = _createAssigner_default(function(object, source) {
1407
- if (_isPrototype_default(source) || isArrayLike_default(source)) {
1408
- _copyObject_default(source, keys_default(source), object);
1409
- return;
1410
- }
1411
- for (var key in source) if (hasOwnProperty$5.call(source, key)) _assignValue_default(object, key, source[key]);
1412
- });
1413
- var assign_default = assign;
1414
-
1415
- //#endregion
1416
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeysIn.js
1417
- /**
1418
- * This function is like
1419
- * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
1420
- * except that it includes inherited enumerable properties.
1421
- *
1422
- * @private
1423
- * @param {Object} object The object to query.
1424
- * @returns {Array} Returns the array of property names.
1425
- */
1426
- function nativeKeysIn(object) {
1427
- var result = [];
1428
- if (object != null) for (var key in Object(object)) result.push(key);
1429
- return result;
1430
- }
1431
- var _nativeKeysIn_default = nativeKeysIn;
1432
-
1433
- //#endregion
1434
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseKeysIn.js
1435
- /** Used to check objects for own properties. */
1436
- var hasOwnProperty$4 = Object.prototype.hasOwnProperty;
1437
- /**
1438
- * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
1439
- *
1440
- * @private
1441
- * @param {Object} object The object to query.
1442
- * @returns {Array} Returns the array of property names.
1443
- */
1444
- function baseKeysIn(object) {
1445
- if (!isObject_default(object)) return _nativeKeysIn_default(object);
1446
- var isProto = _isPrototype_default(object), result = [];
1447
- for (var key in object) if (!(key == "constructor" && (isProto || !hasOwnProperty$4.call(object, key)))) result.push(key);
1448
- return result;
1449
- }
1450
- var _baseKeysIn_default = baseKeysIn;
1451
-
1452
- //#endregion
1453
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/keysIn.js
1454
- /**
1455
- * Creates an array of the own and inherited enumerable property names of `object`.
1456
- *
1457
- * **Note:** Non-object values are coerced to objects.
1458
- *
1459
- * @static
1460
- * @memberOf _
1461
- * @since 3.0.0
1462
- * @category Object
1463
- * @param {Object} object The object to query.
1464
- * @returns {Array} Returns the array of property names.
1465
- * @example
1466
- *
1467
- * function Foo() {
1468
- * this.a = 1;
1469
- * this.b = 2;
1470
- * }
1471
- *
1472
- * Foo.prototype.c = 3;
1473
- *
1474
- * _.keysIn(new Foo);
1475
- * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
1476
- */
1477
- function keysIn(object) {
1478
- return isArrayLike_default(object) ? _arrayLikeKeys_default(object, true) : _baseKeysIn_default(object);
1479
- }
1480
- var keysIn_default = keysIn;
1481
-
1482
- //#endregion
1483
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKey.js
1484
- /** Used to match property names within property paths. */
1485
- var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/;
1486
- /**
1487
- * Checks if `value` is a property name and not a property path.
1488
- *
1489
- * @private
1490
- * @param {*} value The value to check.
1491
- * @param {Object} [object] The object to query keys on.
1492
- * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
1493
- */
1494
- function isKey(value, object) {
1495
- if (isArray_default(value)) return false;
1496
- var type = typeof value;
1497
- if (type == "number" || type == "symbol" || type == "boolean" || value == null || isSymbol_default(value)) return true;
1498
- return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object(object);
1499
- }
1500
- var _isKey_default = isKey;
1501
-
1502
- //#endregion
1503
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeCreate.js
1504
- var nativeCreate = _getNative_default(Object, "create");
1505
- var _nativeCreate_default = nativeCreate;
1506
-
1507
- //#endregion
1508
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashClear.js
1509
- /**
1510
- * Removes all key-value entries from the hash.
1511
- *
1512
- * @private
1513
- * @name clear
1514
- * @memberOf Hash
1515
- */
1516
- function hashClear() {
1517
- this.__data__ = _nativeCreate_default ? _nativeCreate_default(null) : {};
1518
- this.size = 0;
1519
- }
1520
- var _hashClear_default = hashClear;
1521
-
1522
- //#endregion
1523
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashDelete.js
1524
- /**
1525
- * Removes `key` and its value from the hash.
1526
- *
1527
- * @private
1528
- * @name delete
1529
- * @memberOf Hash
1530
- * @param {Object} hash The hash to modify.
1531
- * @param {string} key The key of the value to remove.
1532
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1533
- */
1534
- function hashDelete(key) {
1535
- var result = this.has(key) && delete this.__data__[key];
1536
- this.size -= result ? 1 : 0;
1537
- return result;
1538
- }
1539
- var _hashDelete_default = hashDelete;
1540
-
1541
- //#endregion
1542
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashGet.js
1543
- /** Used to stand-in for `undefined` hash values. */
1544
- var HASH_UNDEFINED$2 = "__lodash_hash_undefined__";
1545
- /** Used to check objects for own properties. */
1546
- var hasOwnProperty$3 = Object.prototype.hasOwnProperty;
1547
- /**
1548
- * Gets the hash value for `key`.
1549
- *
1550
- * @private
1551
- * @name get
1552
- * @memberOf Hash
1553
- * @param {string} key The key of the value to get.
1554
- * @returns {*} Returns the entry value.
1555
- */
1556
- function hashGet(key) {
1557
- var data = this.__data__;
1558
- if (_nativeCreate_default) {
1559
- var result = data[key];
1560
- return result === HASH_UNDEFINED$2 ? void 0 : result;
1561
- }
1562
- return hasOwnProperty$3.call(data, key) ? data[key] : void 0;
1563
- }
1564
- var _hashGet_default = hashGet;
1565
-
1566
- //#endregion
1567
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashHas.js
1568
- /** Used to check objects for own properties. */
1569
- var hasOwnProperty$2 = Object.prototype.hasOwnProperty;
1570
- /**
1571
- * Checks if a hash value for `key` exists.
1572
- *
1573
- * @private
1574
- * @name has
1575
- * @memberOf Hash
1576
- * @param {string} key The key of the entry to check.
1577
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1578
- */
1579
- function hashHas(key) {
1580
- var data = this.__data__;
1581
- return _nativeCreate_default ? data[key] !== void 0 : hasOwnProperty$2.call(data, key);
1582
- }
1583
- var _hashHas_default = hashHas;
1584
-
1585
- //#endregion
1586
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashSet.js
1587
- /** Used to stand-in for `undefined` hash values. */
1588
- var HASH_UNDEFINED$1 = "__lodash_hash_undefined__";
1589
- /**
1590
- * Sets the hash `key` to `value`.
1591
- *
1592
- * @private
1593
- * @name set
1594
- * @memberOf Hash
1595
- * @param {string} key The key of the value to set.
1596
- * @param {*} value The value to set.
1597
- * @returns {Object} Returns the hash instance.
1598
- */
1599
- function hashSet(key, value) {
1600
- var data = this.__data__;
1601
- this.size += this.has(key) ? 0 : 1;
1602
- data[key] = _nativeCreate_default && value === void 0 ? HASH_UNDEFINED$1 : value;
1603
- return this;
1604
- }
1605
- var _hashSet_default = hashSet;
1606
-
1607
- //#endregion
1608
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Hash.js
1609
- /**
1610
- * Creates a hash object.
1611
- *
1612
- * @private
1613
- * @constructor
1614
- * @param {Array} [entries] The key-value pairs to cache.
1615
- */
1616
- function Hash(entries) {
1617
- var index = -1, length = entries == null ? 0 : entries.length;
1618
- this.clear();
1619
- while (++index < length) {
1620
- var entry = entries[index];
1621
- this.set(entry[0], entry[1]);
1622
- }
1623
- }
1624
- Hash.prototype.clear = _hashClear_default;
1625
- Hash.prototype["delete"] = _hashDelete_default;
1626
- Hash.prototype.get = _hashGet_default;
1627
- Hash.prototype.has = _hashHas_default;
1628
- Hash.prototype.set = _hashSet_default;
1629
- var _Hash_default = Hash;
1630
-
1631
- //#endregion
1632
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheClear.js
1633
- /**
1634
- * Removes all key-value entries from the list cache.
1635
- *
1636
- * @private
1637
- * @name clear
1638
- * @memberOf ListCache
1639
- */
1640
- function listCacheClear() {
1641
- this.__data__ = [];
1642
- this.size = 0;
1643
- }
1644
- var _listCacheClear_default = listCacheClear;
1645
-
1646
- //#endregion
1647
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assocIndexOf.js
1648
- /**
1649
- * Gets the index at which the `key` is found in `array` of key-value pairs.
1650
- *
1651
- * @private
1652
- * @param {Array} array The array to inspect.
1653
- * @param {*} key The key to search for.
1654
- * @returns {number} Returns the index of the matched value, else `-1`.
1655
- */
1656
- function assocIndexOf(array, key) {
1657
- var length = array.length;
1658
- while (length--) if (eq_default(array[length][0], key)) return length;
1659
- return -1;
1660
- }
1661
- var _assocIndexOf_default = assocIndexOf;
1662
-
1663
- //#endregion
1664
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheDelete.js
1665
- /** Built-in value references. */
1666
- var splice = Array.prototype.splice;
1667
- /**
1668
- * Removes `key` and its value from the list cache.
1669
- *
1670
- * @private
1671
- * @name delete
1672
- * @memberOf ListCache
1673
- * @param {string} key The key of the value to remove.
1674
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1675
- */
1676
- function listCacheDelete(key) {
1677
- var data = this.__data__, index = _assocIndexOf_default(data, key);
1678
- if (index < 0) return false;
1679
- if (index == data.length - 1) data.pop();
1680
- else splice.call(data, index, 1);
1681
- --this.size;
1682
- return true;
1683
- }
1684
- var _listCacheDelete_default = listCacheDelete;
1685
-
1686
- //#endregion
1687
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheGet.js
1688
- /**
1689
- * Gets the list cache value for `key`.
1690
- *
1691
- * @private
1692
- * @name get
1693
- * @memberOf ListCache
1694
- * @param {string} key The key of the value to get.
1695
- * @returns {*} Returns the entry value.
1696
- */
1697
- function listCacheGet(key) {
1698
- var data = this.__data__, index = _assocIndexOf_default(data, key);
1699
- return index < 0 ? void 0 : data[index][1];
1700
- }
1701
- var _listCacheGet_default = listCacheGet;
1702
-
1703
- //#endregion
1704
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheHas.js
1705
- /**
1706
- * Checks if a list cache value for `key` exists.
1707
- *
1708
- * @private
1709
- * @name has
1710
- * @memberOf ListCache
1711
- * @param {string} key The key of the entry to check.
1712
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1713
- */
1714
- function listCacheHas(key) {
1715
- return _assocIndexOf_default(this.__data__, key) > -1;
1716
- }
1717
- var _listCacheHas_default = listCacheHas;
1718
-
1719
- //#endregion
1720
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheSet.js
1721
- /**
1722
- * Sets the list cache `key` to `value`.
1723
- *
1724
- * @private
1725
- * @name set
1726
- * @memberOf ListCache
1727
- * @param {string} key The key of the value to set.
1728
- * @param {*} value The value to set.
1729
- * @returns {Object} Returns the list cache instance.
1730
- */
1731
- function listCacheSet(key, value) {
1732
- var data = this.__data__, index = _assocIndexOf_default(data, key);
1733
- if (index < 0) {
1734
- ++this.size;
1735
- data.push([key, value]);
1736
- } else data[index][1] = value;
1737
- return this;
1738
- }
1739
- var _listCacheSet_default = listCacheSet;
1740
-
1741
- //#endregion
1742
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_ListCache.js
1743
- /**
1744
- * Creates an list cache object.
1745
- *
1746
- * @private
1747
- * @constructor
1748
- * @param {Array} [entries] The key-value pairs to cache.
1749
- */
1750
- function ListCache(entries) {
1751
- var index = -1, length = entries == null ? 0 : entries.length;
1752
- this.clear();
1753
- while (++index < length) {
1754
- var entry = entries[index];
1755
- this.set(entry[0], entry[1]);
1756
- }
1757
- }
1758
- ListCache.prototype.clear = _listCacheClear_default;
1759
- ListCache.prototype["delete"] = _listCacheDelete_default;
1760
- ListCache.prototype.get = _listCacheGet_default;
1761
- ListCache.prototype.has = _listCacheHas_default;
1762
- ListCache.prototype.set = _listCacheSet_default;
1763
- var _ListCache_default = ListCache;
1764
-
1765
- //#endregion
1766
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Map.js
1767
- var Map = _getNative_default(_root_default, "Map");
1768
- var _Map_default = Map;
1769
-
1770
- //#endregion
1771
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheClear.js
1772
- /**
1773
- * Removes all key-value entries from the map.
1774
- *
1775
- * @private
1776
- * @name clear
1777
- * @memberOf MapCache
1778
- */
1779
- function mapCacheClear() {
1780
- this.size = 0;
1781
- this.__data__ = {
1782
- "hash": new _Hash_default(),
1783
- "map": new (_Map_default || _ListCache_default)(),
1784
- "string": new _Hash_default()
1785
- };
1786
- }
1787
- var _mapCacheClear_default = mapCacheClear;
1788
-
1789
- //#endregion
1790
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKeyable.js
1791
- /**
1792
- * Checks if `value` is suitable for use as unique object key.
1793
- *
1794
- * @private
1795
- * @param {*} value The value to check.
1796
- * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
1797
- */
1798
- function isKeyable(value) {
1799
- var type = typeof value;
1800
- return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
1801
- }
1802
- var _isKeyable_default = isKeyable;
1803
-
1804
- //#endregion
1805
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getMapData.js
1806
- /**
1807
- * Gets the data for `map`.
1808
- *
1809
- * @private
1810
- * @param {Object} map The map to query.
1811
- * @param {string} key The reference key.
1812
- * @returns {*} Returns the map data.
1813
- */
1814
- function getMapData(map, key) {
1815
- var data = map.__data__;
1816
- return _isKeyable_default(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
1817
- }
1818
- var _getMapData_default = getMapData;
1819
-
1820
- //#endregion
1821
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheDelete.js
1822
- /**
1823
- * Removes `key` and its value from the map.
1824
- *
1825
- * @private
1826
- * @name delete
1827
- * @memberOf MapCache
1828
- * @param {string} key The key of the value to remove.
1829
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1830
- */
1831
- function mapCacheDelete(key) {
1832
- var result = _getMapData_default(this, key)["delete"](key);
1833
- this.size -= result ? 1 : 0;
1834
- return result;
1835
- }
1836
- var _mapCacheDelete_default = mapCacheDelete;
1837
-
1838
- //#endregion
1839
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheGet.js
1840
- /**
1841
- * Gets the map value for `key`.
1842
- *
1843
- * @private
1844
- * @name get
1845
- * @memberOf MapCache
1846
- * @param {string} key The key of the value to get.
1847
- * @returns {*} Returns the entry value.
1848
- */
1849
- function mapCacheGet(key) {
1850
- return _getMapData_default(this, key).get(key);
1851
- }
1852
- var _mapCacheGet_default = mapCacheGet;
1853
-
1854
- //#endregion
1855
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheHas.js
1856
- /**
1857
- * Checks if a map value for `key` exists.
1858
- *
1859
- * @private
1860
- * @name has
1861
- * @memberOf MapCache
1862
- * @param {string} key The key of the entry to check.
1863
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1864
- */
1865
- function mapCacheHas(key) {
1866
- return _getMapData_default(this, key).has(key);
1867
- }
1868
- var _mapCacheHas_default = mapCacheHas;
1869
-
1870
- //#endregion
1871
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheSet.js
1872
- /**
1873
- * Sets the map `key` to `value`.
1874
- *
1875
- * @private
1876
- * @name set
1877
- * @memberOf MapCache
1878
- * @param {string} key The key of the value to set.
1879
- * @param {*} value The value to set.
1880
- * @returns {Object} Returns the map cache instance.
1881
- */
1882
- function mapCacheSet(key, value) {
1883
- var data = _getMapData_default(this, key), size = data.size;
1884
- data.set(key, value);
1885
- this.size += data.size == size ? 0 : 1;
1886
- return this;
1887
- }
1888
- var _mapCacheSet_default = mapCacheSet;
1889
-
1890
- //#endregion
1891
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_MapCache.js
1892
- /**
1893
- * Creates a map cache object to store key-value pairs.
1894
- *
1895
- * @private
1896
- * @constructor
1897
- * @param {Array} [entries] The key-value pairs to cache.
1898
- */
1899
- function MapCache(entries) {
1900
- var index = -1, length = entries == null ? 0 : entries.length;
1901
- this.clear();
1902
- while (++index < length) {
1903
- var entry = entries[index];
1904
- this.set(entry[0], entry[1]);
1905
- }
1906
- }
1907
- MapCache.prototype.clear = _mapCacheClear_default;
1908
- MapCache.prototype["delete"] = _mapCacheDelete_default;
1909
- MapCache.prototype.get = _mapCacheGet_default;
1910
- MapCache.prototype.has = _mapCacheHas_default;
1911
- MapCache.prototype.set = _mapCacheSet_default;
1912
- var _MapCache_default = MapCache;
1913
-
1914
- //#endregion
1915
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/memoize.js
1916
- /** Error message constants. */
1917
- var FUNC_ERROR_TEXT = "Expected a function";
1918
- /**
1919
- * Creates a function that memoizes the result of `func`. If `resolver` is
1920
- * provided, it determines the cache key for storing the result based on the
1921
- * arguments provided to the memoized function. By default, the first argument
1922
- * provided to the memoized function is used as the map cache key. The `func`
1923
- * is invoked with the `this` binding of the memoized function.
1924
- *
1925
- * **Note:** The cache is exposed as the `cache` property on the memoized
1926
- * function. Its creation may be customized by replacing the `_.memoize.Cache`
1927
- * constructor with one whose instances implement the
1928
- * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
1929
- * method interface of `clear`, `delete`, `get`, `has`, and `set`.
1930
- *
1931
- * @static
1932
- * @memberOf _
1933
- * @since 0.1.0
1934
- * @category Function
1935
- * @param {Function} func The function to have its output memoized.
1936
- * @param {Function} [resolver] The function to resolve the cache key.
1937
- * @returns {Function} Returns the new memoized function.
1938
- * @example
1939
- *
1940
- * var object = { 'a': 1, 'b': 2 };
1941
- * var other = { 'c': 3, 'd': 4 };
1942
- *
1943
- * var values = _.memoize(_.values);
1944
- * values(object);
1945
- * // => [1, 2]
1946
- *
1947
- * values(other);
1948
- * // => [3, 4]
1949
- *
1950
- * object.a = 2;
1951
- * values(object);
1952
- * // => [1, 2]
1953
- *
1954
- * // Modify the result cache.
1955
- * values.cache.set(object, ['a', 'b']);
1956
- * values(object);
1957
- * // => ['a', 'b']
1958
- *
1959
- * // Replace `_.memoize.Cache`.
1960
- * _.memoize.Cache = WeakMap;
1961
- */
1962
- function memoize(func, resolver) {
1963
- if (typeof func != "function" || resolver != null && typeof resolver != "function") throw new TypeError(FUNC_ERROR_TEXT);
1964
- var memoized = function() {
1965
- var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache;
1966
- if (cache.has(key)) return cache.get(key);
1967
- var result = func.apply(this, args);
1968
- memoized.cache = cache.set(key, result) || cache;
1969
- return result;
1970
- };
1971
- memoized.cache = new (memoize.Cache || _MapCache_default)();
1972
- return memoized;
1973
- }
1974
- memoize.Cache = _MapCache_default;
1975
- var memoize_default = memoize;
1976
-
1977
- //#endregion
1978
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_memoizeCapped.js
1979
- /** Used as the maximum memoize cache size. */
1980
- var MAX_MEMOIZE_SIZE = 500;
1981
- /**
1982
- * A specialized version of `_.memoize` which clears the memoized function's
1983
- * cache when it exceeds `MAX_MEMOIZE_SIZE`.
1984
- *
1985
- * @private
1986
- * @param {Function} func The function to have its output memoized.
1987
- * @returns {Function} Returns the new memoized function.
1988
- */
1989
- function memoizeCapped(func) {
1990
- var result = memoize_default(func, function(key) {
1991
- if (cache.size === MAX_MEMOIZE_SIZE) cache.clear();
1992
- return key;
1993
- });
1994
- var cache = result.cache;
1995
- return result;
1996
- }
1997
- var _memoizeCapped_default = memoizeCapped;
1998
-
1999
- //#endregion
2000
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stringToPath.js
2001
- /** Used to match property names within property paths. */
2002
- var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
2003
- /** Used to match backslashes in property paths. */
2004
- var reEscapeChar = /\\(\\)?/g;
2005
- /**
2006
- * Converts `string` to a property path array.
2007
- *
2008
- * @private
2009
- * @param {string} string The string to convert.
2010
- * @returns {Array} Returns the property path array.
2011
- */
2012
- var stringToPath = _memoizeCapped_default(function(string) {
2013
- var result = [];
2014
- if (string.charCodeAt(0) === 46) result.push("");
2015
- string.replace(rePropName, function(match, number, quote, subString) {
2016
- result.push(quote ? subString.replace(reEscapeChar, "$1") : number || match);
2017
- });
2018
- return result;
2019
- });
2020
- var _stringToPath_default = stringToPath;
2021
-
2022
- //#endregion
2023
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toString.js
2024
- /**
2025
- * Converts `value` to a string. An empty string is returned for `null`
2026
- * and `undefined` values. The sign of `-0` is preserved.
2027
- *
2028
- * @static
2029
- * @memberOf _
2030
- * @since 4.0.0
2031
- * @category Lang
2032
- * @param {*} value The value to convert.
2033
- * @returns {string} Returns the converted string.
2034
- * @example
2035
- *
2036
- * _.toString(null);
2037
- * // => ''
2038
- *
2039
- * _.toString(-0);
2040
- * // => '-0'
2041
- *
2042
- * _.toString([1, 2, 3]);
2043
- * // => '1,2,3'
2044
- */
2045
- function toString(value) {
2046
- return value == null ? "" : _baseToString_default(value);
2047
- }
2048
- var toString_default = toString;
2049
-
2050
- //#endregion
2051
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_castPath.js
2052
- /**
2053
- * Casts `value` to a path array if it's not one.
2054
- *
2055
- * @private
2056
- * @param {*} value The value to inspect.
2057
- * @param {Object} [object] The object to query keys on.
2058
- * @returns {Array} Returns the cast property path array.
2059
- */
2060
- function castPath(value, object) {
2061
- if (isArray_default(value)) return value;
2062
- return _isKey_default(value, object) ? [value] : _stringToPath_default(toString_default(value));
2063
- }
2064
- var _castPath_default = castPath;
2065
-
2066
- //#endregion
2067
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toKey.js
2068
- /** Used as references for various `Number` constants. */
2069
- var INFINITY = Infinity;
2070
- /**
2071
- * Converts `value` to a string key if it's not a string or symbol.
2072
- *
2073
- * @private
2074
- * @param {*} value The value to inspect.
2075
- * @returns {string|symbol} Returns the key.
2076
- */
2077
- function toKey(value) {
2078
- if (typeof value == "string" || isSymbol_default(value)) return value;
2079
- var result = value + "";
2080
- return result == "0" && 1 / value == -INFINITY ? "-0" : result;
2081
- }
2082
- var _toKey_default = toKey;
2083
-
2084
- //#endregion
2085
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGet.js
2086
- /**
2087
- * The base implementation of `_.get` without support for default values.
2088
- *
2089
- * @private
2090
- * @param {Object} object The object to query.
2091
- * @param {Array|string} path The path of the property to get.
2092
- * @returns {*} Returns the resolved value.
2093
- */
2094
- function baseGet(object, path) {
2095
- path = _castPath_default(path, object);
2096
- var index = 0, length = path.length;
2097
- while (object != null && index < length) object = object[_toKey_default(path[index++])];
2098
- return index && index == length ? object : void 0;
2099
- }
2100
- var _baseGet_default = baseGet;
2101
-
2102
- //#endregion
2103
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/get.js
2104
- /**
2105
- * Gets the value at `path` of `object`. If the resolved value is
2106
- * `undefined`, the `defaultValue` is returned in its place.
2107
- *
2108
- * @static
2109
- * @memberOf _
2110
- * @since 3.7.0
2111
- * @category Object
2112
- * @param {Object} object The object to query.
2113
- * @param {Array|string} path The path of the property to get.
2114
- * @param {*} [defaultValue] The value returned for `undefined` resolved values.
2115
- * @returns {*} Returns the resolved value.
2116
- * @example
2117
- *
2118
- * var object = { 'a': [{ 'b': { 'c': 3 } }] };
2119
- *
2120
- * _.get(object, 'a[0].b.c');
2121
- * // => 3
2122
- *
2123
- * _.get(object, ['a', '0', 'b', 'c']);
2124
- * // => 3
2125
- *
2126
- * _.get(object, 'a.b.c', 'default');
2127
- * // => 'default'
2128
- */
2129
- function get(object, path, defaultValue) {
2130
- var result = object == null ? void 0 : _baseGet_default(object, path);
2131
- return result === void 0 ? defaultValue : result;
2132
- }
2133
- var get_default = get;
2134
-
2135
- //#endregion
2136
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayPush.js
2137
- /**
2138
- * Appends the elements of `values` to `array`.
2139
- *
2140
- * @private
2141
- * @param {Array} array The array to modify.
2142
- * @param {Array} values The values to append.
2143
- * @returns {Array} Returns `array`.
2144
- */
2145
- function arrayPush(array, values) {
2146
- var index = -1, length = values.length, offset = array.length;
2147
- while (++index < length) array[offset + index] = values[index];
2148
- return array;
2149
- }
2150
- var _arrayPush_default = arrayPush;
2151
-
2152
- //#endregion
2153
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getPrototype.js
2154
- /** Built-in value references. */
2155
- var getPrototype = _overArg_default(Object.getPrototypeOf, Object);
2156
- var _getPrototype_default = getPrototype;
2157
-
2158
- //#endregion
2159
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackClear.js
2160
- /**
2161
- * Removes all key-value entries from the stack.
2162
- *
2163
- * @private
2164
- * @name clear
2165
- * @memberOf Stack
2166
- */
2167
- function stackClear() {
2168
- this.__data__ = new _ListCache_default();
2169
- this.size = 0;
2170
- }
2171
- var _stackClear_default = stackClear;
2172
-
2173
- //#endregion
2174
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackDelete.js
2175
- /**
2176
- * Removes `key` and its value from the stack.
2177
- *
2178
- * @private
2179
- * @name delete
2180
- * @memberOf Stack
2181
- * @param {string} key The key of the value to remove.
2182
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
2183
- */
2184
- function stackDelete(key) {
2185
- var data = this.__data__, result = data["delete"](key);
2186
- this.size = data.size;
2187
- return result;
2188
- }
2189
- var _stackDelete_default = stackDelete;
2190
-
2191
- //#endregion
2192
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackGet.js
2193
- /**
2194
- * Gets the stack value for `key`.
2195
- *
2196
- * @private
2197
- * @name get
2198
- * @memberOf Stack
2199
- * @param {string} key The key of the value to get.
2200
- * @returns {*} Returns the entry value.
2201
- */
2202
- function stackGet(key) {
2203
- return this.__data__.get(key);
2204
- }
2205
- var _stackGet_default = stackGet;
2206
-
2207
- //#endregion
2208
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackHas.js
2209
- /**
2210
- * Checks if a stack value for `key` exists.
2211
- *
2212
- * @private
2213
- * @name has
2214
- * @memberOf Stack
2215
- * @param {string} key The key of the entry to check.
2216
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
2217
- */
2218
- function stackHas(key) {
2219
- return this.__data__.has(key);
2220
- }
2221
- var _stackHas_default = stackHas;
2222
-
2223
- //#endregion
2224
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackSet.js
2225
- /** Used as the size to enable large array optimizations. */
2226
- var LARGE_ARRAY_SIZE = 200;
2227
- /**
2228
- * Sets the stack `key` to `value`.
2229
- *
2230
- * @private
2231
- * @name set
2232
- * @memberOf Stack
2233
- * @param {string} key The key of the value to set.
2234
- * @param {*} value The value to set.
2235
- * @returns {Object} Returns the stack cache instance.
2236
- */
2237
- function stackSet(key, value) {
2238
- var data = this.__data__;
2239
- if (data instanceof _ListCache_default) {
2240
- var pairs = data.__data__;
2241
- if (!_Map_default || pairs.length < LARGE_ARRAY_SIZE - 1) {
2242
- pairs.push([key, value]);
2243
- this.size = ++data.size;
2244
- return this;
2245
- }
2246
- data = this.__data__ = new _MapCache_default(pairs);
2247
- }
2248
- data.set(key, value);
2249
- this.size = data.size;
2250
- return this;
2251
- }
2252
- var _stackSet_default = stackSet;
2253
-
2254
- //#endregion
2255
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Stack.js
2256
- /**
2257
- * Creates a stack cache object to store key-value pairs.
2258
- *
2259
- * @private
2260
- * @constructor
2261
- * @param {Array} [entries] The key-value pairs to cache.
2262
- */
2263
- function Stack(entries) {
2264
- this.size = (this.__data__ = new _ListCache_default(entries)).size;
2265
- }
2266
- Stack.prototype.clear = _stackClear_default;
2267
- Stack.prototype["delete"] = _stackDelete_default;
2268
- Stack.prototype.get = _stackGet_default;
2269
- Stack.prototype.has = _stackHas_default;
2270
- Stack.prototype.set = _stackSet_default;
2271
- var _Stack_default = Stack;
2272
-
2273
- //#endregion
2274
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayFilter.js
2275
- /**
2276
- * A specialized version of `_.filter` for arrays without support for
2277
- * iteratee shorthands.
2278
- *
2279
- * @private
2280
- * @param {Array} [array] The array to iterate over.
2281
- * @param {Function} predicate The function invoked per iteration.
2282
- * @returns {Array} Returns the new filtered array.
2283
- */
2284
- function arrayFilter(array, predicate) {
2285
- var index = -1, length = array == null ? 0 : array.length, resIndex = 0, result = [];
2286
- while (++index < length) {
2287
- var value = array[index];
2288
- if (predicate(value, index, array)) result[resIndex++] = value;
2289
- }
2290
- return result;
2291
- }
2292
- var _arrayFilter_default = arrayFilter;
2293
-
2294
- //#endregion
2295
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/stubArray.js
2296
- /**
2297
- * This method returns a new empty array.
2298
- *
2299
- * @static
2300
- * @memberOf _
2301
- * @since 4.13.0
2302
- * @category Util
2303
- * @returns {Array} Returns the new empty array.
2304
- * @example
2305
- *
2306
- * var arrays = _.times(2, _.stubArray);
2307
- *
2308
- * console.log(arrays);
2309
- * // => [[], []]
2310
- *
2311
- * console.log(arrays[0] === arrays[1]);
2312
- * // => false
2313
- */
2314
- function stubArray() {
2315
- return [];
2316
- }
2317
- var stubArray_default = stubArray;
2318
-
2319
- //#endregion
2320
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getSymbols.js
2321
- /** Built-in value references. */
2322
- var propertyIsEnumerable = Object.prototype.propertyIsEnumerable;
2323
- var nativeGetSymbols = Object.getOwnPropertySymbols;
2324
- /**
2325
- * Creates an array of the own enumerable symbols of `object`.
2326
- *
2327
- * @private
2328
- * @param {Object} object The object to query.
2329
- * @returns {Array} Returns the array of symbols.
2330
- */
2331
- var getSymbols = !nativeGetSymbols ? stubArray_default : function(object) {
2332
- if (object == null) return [];
2333
- object = Object(object);
2334
- return _arrayFilter_default(nativeGetSymbols(object), function(symbol) {
2335
- return propertyIsEnumerable.call(object, symbol);
2336
- });
2337
- };
2338
- var _getSymbols_default = getSymbols;
2339
-
2340
- //#endregion
2341
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getSymbolsIn.js
2342
- /**
2343
- * Creates an array of the own and inherited enumerable symbols of `object`.
2344
- *
2345
- * @private
2346
- * @param {Object} object The object to query.
2347
- * @returns {Array} Returns the array of symbols.
2348
- */
2349
- var getSymbolsIn = !Object.getOwnPropertySymbols ? stubArray_default : function(object) {
2350
- var result = [];
2351
- while (object) {
2352
- _arrayPush_default(result, _getSymbols_default(object));
2353
- object = _getPrototype_default(object);
2354
- }
2355
- return result;
2356
- };
2357
- var _getSymbolsIn_default = getSymbolsIn;
2358
-
2359
- //#endregion
2360
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetAllKeys.js
2361
- /**
2362
- * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
2363
- * `keysFunc` and `symbolsFunc` to get the enumerable property names and
2364
- * symbols of `object`.
2365
- *
2366
- * @private
2367
- * @param {Object} object The object to query.
2368
- * @param {Function} keysFunc The function to get the keys of `object`.
2369
- * @param {Function} symbolsFunc The function to get the symbols of `object`.
2370
- * @returns {Array} Returns the array of property names and symbols.
2371
- */
2372
- function baseGetAllKeys(object, keysFunc, symbolsFunc) {
2373
- var result = keysFunc(object);
2374
- return isArray_default(object) ? result : _arrayPush_default(result, symbolsFunc(object));
2375
- }
2376
- var _baseGetAllKeys_default = baseGetAllKeys;
2377
-
2378
- //#endregion
2379
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getAllKeys.js
2380
- /**
2381
- * Creates an array of own enumerable property names and symbols of `object`.
2382
- *
2383
- * @private
2384
- * @param {Object} object The object to query.
2385
- * @returns {Array} Returns the array of property names and symbols.
2386
- */
2387
- function getAllKeys(object) {
2388
- return _baseGetAllKeys_default(object, keys_default, _getSymbols_default);
2389
- }
2390
- var _getAllKeys_default = getAllKeys;
2391
-
2392
- //#endregion
2393
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getAllKeysIn.js
2394
- /**
2395
- * Creates an array of own and inherited enumerable property names and
2396
- * symbols of `object`.
2397
- *
2398
- * @private
2399
- * @param {Object} object The object to query.
2400
- * @returns {Array} Returns the array of property names and symbols.
2401
- */
2402
- function getAllKeysIn(object) {
2403
- return _baseGetAllKeys_default(object, keysIn_default, _getSymbolsIn_default);
2404
- }
2405
- var _getAllKeysIn_default = getAllKeysIn;
2406
-
2407
- //#endregion
2408
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_DataView.js
2409
- var DataView = _getNative_default(_root_default, "DataView");
2410
- var _DataView_default = DataView;
2411
-
2412
- //#endregion
2413
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Promise.js
2414
- var Promise$1 = _getNative_default(_root_default, "Promise");
2415
- var _Promise_default = Promise$1;
2416
-
2417
- //#endregion
2418
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Set.js
2419
- var Set = _getNative_default(_root_default, "Set");
2420
- var _Set_default = Set;
2421
-
2422
- //#endregion
2423
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getTag.js
2424
- /** `Object#toString` result references. */
2425
- var mapTag$1 = "[object Map]", objectTag$1 = "[object Object]", promiseTag = "[object Promise]", setTag$1 = "[object Set]", weakMapTag = "[object WeakMap]";
2426
- var dataViewTag$1 = "[object DataView]";
2427
- /** Used to detect maps, sets, and weakmaps. */
2428
- var dataViewCtorString = _toSource_default(_DataView_default), mapCtorString = _toSource_default(_Map_default), promiseCtorString = _toSource_default(_Promise_default), setCtorString = _toSource_default(_Set_default), weakMapCtorString = _toSource_default(_WeakMap_default);
2429
- /**
2430
- * Gets the `toStringTag` of `value`.
2431
- *
2432
- * @private
2433
- * @param {*} value The value to query.
2434
- * @returns {string} Returns the `toStringTag`.
2435
- */
2436
- var getTag = _baseGetTag_default;
2437
- if (_DataView_default && getTag(new _DataView_default(/* @__PURE__ */ new ArrayBuffer(1))) != dataViewTag$1 || _Map_default && getTag(new _Map_default()) != mapTag$1 || _Promise_default && getTag(_Promise_default.resolve()) != promiseTag || _Set_default && getTag(new _Set_default()) != setTag$1 || _WeakMap_default && getTag(new _WeakMap_default()) != weakMapTag) getTag = function(value) {
2438
- var result = _baseGetTag_default(value), Ctor = result == objectTag$1 ? value.constructor : void 0, ctorString = Ctor ? _toSource_default(Ctor) : "";
2439
- if (ctorString) switch (ctorString) {
2440
- case dataViewCtorString: return dataViewTag$1;
2441
- case mapCtorString: return mapTag$1;
2442
- case promiseCtorString: return promiseTag;
2443
- case setCtorString: return setTag$1;
2444
- case weakMapCtorString: return weakMapTag;
2445
- }
2446
- return result;
2447
- };
2448
- var _getTag_default = getTag;
2449
-
2450
- //#endregion
2451
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Uint8Array.js
2452
- /** Built-in value references. */
2453
- var Uint8Array = _root_default.Uint8Array;
2454
- var _Uint8Array_default = Uint8Array;
2455
-
2456
- //#endregion
2457
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheAdd.js
2458
- /** Used to stand-in for `undefined` hash values. */
2459
- var HASH_UNDEFINED = "__lodash_hash_undefined__";
2460
- /**
2461
- * Adds `value` to the array cache.
2462
- *
2463
- * @private
2464
- * @name add
2465
- * @memberOf SetCache
2466
- * @alias push
2467
- * @param {*} value The value to cache.
2468
- * @returns {Object} Returns the cache instance.
2469
- */
2470
- function setCacheAdd(value) {
2471
- this.__data__.set(value, HASH_UNDEFINED);
2472
- return this;
2473
- }
2474
- var _setCacheAdd_default = setCacheAdd;
2475
-
2476
- //#endregion
2477
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheHas.js
2478
- /**
2479
- * Checks if `value` is in the array cache.
2480
- *
2481
- * @private
2482
- * @name has
2483
- * @memberOf SetCache
2484
- * @param {*} value The value to search for.
2485
- * @returns {number} Returns `true` if `value` is found, else `false`.
2486
- */
2487
- function setCacheHas(value) {
2488
- return this.__data__.has(value);
2489
- }
2490
- var _setCacheHas_default = setCacheHas;
2491
-
2492
- //#endregion
2493
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_SetCache.js
2494
- /**
2495
- *
2496
- * Creates an array cache object to store unique values.
2497
- *
2498
- * @private
2499
- * @constructor
2500
- * @param {Array} [values] The values to cache.
2501
- */
2502
- function SetCache(values) {
2503
- var index = -1, length = values == null ? 0 : values.length;
2504
- this.__data__ = new _MapCache_default();
2505
- while (++index < length) this.add(values[index]);
2506
- }
2507
- SetCache.prototype.add = SetCache.prototype.push = _setCacheAdd_default;
2508
- SetCache.prototype.has = _setCacheHas_default;
2509
- var _SetCache_default = SetCache;
2510
-
2511
- //#endregion
2512
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arraySome.js
2513
- /**
2514
- * A specialized version of `_.some` for arrays without support for iteratee
2515
- * shorthands.
2516
- *
2517
- * @private
2518
- * @param {Array} [array] The array to iterate over.
2519
- * @param {Function} predicate The function invoked per iteration.
2520
- * @returns {boolean} Returns `true` if any element passes the predicate check,
2521
- * else `false`.
2522
- */
2523
- function arraySome(array, predicate) {
2524
- var index = -1, length = array == null ? 0 : array.length;
2525
- while (++index < length) if (predicate(array[index], index, array)) return true;
2526
- return false;
2527
- }
2528
- var _arraySome_default = arraySome;
2529
-
2530
- //#endregion
2531
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cacheHas.js
2532
- /**
2533
- * Checks if a `cache` value for `key` exists.
2534
- *
2535
- * @private
2536
- * @param {Object} cache The cache to query.
2537
- * @param {string} key The key of the entry to check.
2538
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
2539
- */
2540
- function cacheHas(cache, key) {
2541
- return cache.has(key);
2542
- }
2543
- var _cacheHas_default = cacheHas;
2544
-
2545
- //#endregion
2546
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_equalArrays.js
2547
- /** Used to compose bitmasks for value comparisons. */
2548
- var COMPARE_PARTIAL_FLAG$5 = 1, COMPARE_UNORDERED_FLAG$3 = 2;
2549
- /**
2550
- * A specialized version of `baseIsEqualDeep` for arrays with support for
2551
- * partial deep comparisons.
2552
- *
2553
- * @private
2554
- * @param {Array} array The array to compare.
2555
- * @param {Array} other The other array to compare.
2556
- * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
2557
- * @param {Function} customizer The function to customize comparisons.
2558
- * @param {Function} equalFunc The function to determine equivalents of values.
2559
- * @param {Object} stack Tracks traversed `array` and `other` objects.
2560
- * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
2561
- */
2562
- function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
2563
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG$5, arrLength = array.length, othLength = other.length;
2564
- if (arrLength != othLength && !(isPartial && othLength > arrLength)) return false;
2565
- var arrStacked = stack.get(array);
2566
- var othStacked = stack.get(other);
2567
- if (arrStacked && othStacked) return arrStacked == other && othStacked == array;
2568
- var index = -1, result = true, seen = bitmask & COMPARE_UNORDERED_FLAG$3 ? new _SetCache_default() : void 0;
2569
- stack.set(array, other);
2570
- stack.set(other, array);
2571
- while (++index < arrLength) {
2572
- var arrValue = array[index], othValue = other[index];
2573
- if (customizer) var compared = isPartial ? customizer(othValue, arrValue, index, other, array, stack) : customizer(arrValue, othValue, index, array, other, stack);
2574
- if (compared !== void 0) {
2575
- if (compared) continue;
2576
- result = false;
2577
- break;
2578
- }
2579
- if (seen) {
2580
- if (!_arraySome_default(other, function(othValue, othIndex) {
2581
- if (!_cacheHas_default(seen, othIndex) && (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) return seen.push(othIndex);
2582
- })) {
2583
- result = false;
2584
- break;
2585
- }
2586
- } else if (!(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
2587
- result = false;
2588
- break;
2589
- }
2590
- }
2591
- stack["delete"](array);
2592
- stack["delete"](other);
2593
- return result;
2594
- }
2595
- var _equalArrays_default = equalArrays;
2596
-
2597
- //#endregion
2598
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapToArray.js
2599
- /**
2600
- * Converts `map` to its key-value pairs.
2601
- *
2602
- * @private
2603
- * @param {Object} map The map to convert.
2604
- * @returns {Array} Returns the key-value pairs.
2605
- */
2606
- function mapToArray(map) {
2607
- var index = -1, result = Array(map.size);
2608
- map.forEach(function(value, key) {
2609
- result[++index] = [key, value];
2610
- });
2611
- return result;
2612
- }
2613
- var _mapToArray_default = mapToArray;
2614
-
2615
- //#endregion
2616
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setToArray.js
2617
- /**
2618
- * Converts `set` to an array of its values.
2619
- *
2620
- * @private
2621
- * @param {Object} set The set to convert.
2622
- * @returns {Array} Returns the values.
2623
- */
2624
- function setToArray(set) {
2625
- var index = -1, result = Array(set.size);
2626
- set.forEach(function(value) {
2627
- result[++index] = value;
2628
- });
2629
- return result;
2630
- }
2631
- var _setToArray_default = setToArray;
2632
-
2633
- //#endregion
2634
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_equalByTag.js
2635
- /** Used to compose bitmasks for value comparisons. */
2636
- var COMPARE_PARTIAL_FLAG$4 = 1, COMPARE_UNORDERED_FLAG$2 = 2;
2637
- /** `Object#toString` result references. */
2638
- var boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", mapTag = "[object Map]", numberTag = "[object Number]", regexpTag$1 = "[object RegExp]", setTag = "[object Set]", stringTag$1 = "[object String]", symbolTag = "[object Symbol]";
2639
- var arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]";
2640
- /** Used to convert symbols to primitives and strings. */
2641
- var symbolProto = _Symbol_default ? _Symbol_default.prototype : void 0, symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
2642
- /**
2643
- * A specialized version of `baseIsEqualDeep` for comparing objects of
2644
- * the same `toStringTag`.
2645
- *
2646
- * **Note:** This function only supports comparing values with tags of
2647
- * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
2648
- *
2649
- * @private
2650
- * @param {Object} object The object to compare.
2651
- * @param {Object} other The other object to compare.
2652
- * @param {string} tag The `toStringTag` of the objects to compare.
2653
- * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
2654
- * @param {Function} customizer The function to customize comparisons.
2655
- * @param {Function} equalFunc The function to determine equivalents of values.
2656
- * @param {Object} stack Tracks traversed `object` and `other` objects.
2657
- * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
2658
- */
2659
- function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
2660
- switch (tag) {
2661
- case dataViewTag:
2662
- if (object.byteLength != other.byteLength || object.byteOffset != other.byteOffset) return false;
2663
- object = object.buffer;
2664
- other = other.buffer;
2665
- case arrayBufferTag:
2666
- if (object.byteLength != other.byteLength || !equalFunc(new _Uint8Array_default(object), new _Uint8Array_default(other))) return false;
2667
- return true;
2668
- case boolTag:
2669
- case dateTag:
2670
- case numberTag: return eq_default(+object, +other);
2671
- case errorTag: return object.name == other.name && object.message == other.message;
2672
- case regexpTag$1:
2673
- case stringTag$1: return object == other + "";
2674
- case mapTag: var convert = _mapToArray_default;
2675
- case setTag:
2676
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG$4;
2677
- convert || (convert = _setToArray_default);
2678
- if (object.size != other.size && !isPartial) return false;
2679
- var stacked = stack.get(object);
2680
- if (stacked) return stacked == other;
2681
- bitmask |= COMPARE_UNORDERED_FLAG$2;
2682
- stack.set(object, other);
2683
- var result = _equalArrays_default(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
2684
- stack["delete"](object);
2685
- return result;
2686
- case symbolTag: if (symbolValueOf) return symbolValueOf.call(object) == symbolValueOf.call(other);
2687
- }
2688
- return false;
2689
- }
2690
- var _equalByTag_default = equalByTag;
2691
-
2692
- //#endregion
2693
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_equalObjects.js
2694
- /** Used to compose bitmasks for value comparisons. */
2695
- var COMPARE_PARTIAL_FLAG$3 = 1;
2696
- /** Used to check objects for own properties. */
2697
- var hasOwnProperty$1 = Object.prototype.hasOwnProperty;
2698
- /**
2699
- * A specialized version of `baseIsEqualDeep` for objects with support for
2700
- * partial deep comparisons.
2701
- *
2702
- * @private
2703
- * @param {Object} object The object to compare.
2704
- * @param {Object} other The other object to compare.
2705
- * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
2706
- * @param {Function} customizer The function to customize comparisons.
2707
- * @param {Function} equalFunc The function to determine equivalents of values.
2708
- * @param {Object} stack Tracks traversed `object` and `other` objects.
2709
- * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
2710
- */
2711
- function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
2712
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG$3, objProps = _getAllKeys_default(object), objLength = objProps.length;
2713
- if (objLength != _getAllKeys_default(other).length && !isPartial) return false;
2714
- var index = objLength;
2715
- while (index--) {
2716
- var key = objProps[index];
2717
- if (!(isPartial ? key in other : hasOwnProperty$1.call(other, key))) return false;
2718
- }
2719
- var objStacked = stack.get(object);
2720
- var othStacked = stack.get(other);
2721
- if (objStacked && othStacked) return objStacked == other && othStacked == object;
2722
- var result = true;
2723
- stack.set(object, other);
2724
- stack.set(other, object);
2725
- var skipCtor = isPartial;
2726
- while (++index < objLength) {
2727
- key = objProps[index];
2728
- var objValue = object[key], othValue = other[key];
2729
- if (customizer) var compared = isPartial ? customizer(othValue, objValue, key, other, object, stack) : customizer(objValue, othValue, key, object, other, stack);
2730
- if (!(compared === void 0 ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) : compared)) {
2731
- result = false;
2732
- break;
2733
- }
2734
- skipCtor || (skipCtor = key == "constructor");
2735
- }
2736
- if (result && !skipCtor) {
2737
- var objCtor = object.constructor, othCtor = other.constructor;
2738
- if (objCtor != othCtor && "constructor" in object && "constructor" in other && !(typeof objCtor == "function" && objCtor instanceof objCtor && typeof othCtor == "function" && othCtor instanceof othCtor)) result = false;
2739
- }
2740
- stack["delete"](object);
2741
- stack["delete"](other);
2742
- return result;
2743
- }
2744
- var _equalObjects_default = equalObjects;
2745
-
2746
- //#endregion
2747
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsEqualDeep.js
2748
- /** Used to compose bitmasks for value comparisons. */
2749
- var COMPARE_PARTIAL_FLAG$2 = 1;
2750
- /** `Object#toString` result references. */
2751
- var argsTag = "[object Arguments]", arrayTag = "[object Array]", objectTag = "[object Object]";
2752
- /** Used to check objects for own properties. */
2753
- var hasOwnProperty = Object.prototype.hasOwnProperty;
2754
- /**
2755
- * A specialized version of `baseIsEqual` for arrays and objects which performs
2756
- * deep comparisons and tracks traversed objects enabling objects with circular
2757
- * references to be compared.
2758
- *
2759
- * @private
2760
- * @param {Object} object The object to compare.
2761
- * @param {Object} other The other object to compare.
2762
- * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
2763
- * @param {Function} customizer The function to customize comparisons.
2764
- * @param {Function} equalFunc The function to determine equivalents of values.
2765
- * @param {Object} [stack] Tracks traversed `object` and `other` objects.
2766
- * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
2767
- */
2768
- function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
2769
- var objIsArr = isArray_default(object), othIsArr = isArray_default(other), objTag = objIsArr ? arrayTag : _getTag_default(object), othTag = othIsArr ? arrayTag : _getTag_default(other);
2770
- objTag = objTag == argsTag ? objectTag : objTag;
2771
- othTag = othTag == argsTag ? objectTag : othTag;
2772
- var objIsObj = objTag == objectTag, othIsObj = othTag == objectTag, isSameTag = objTag == othTag;
2773
- if (isSameTag && isBuffer_default(object)) {
2774
- if (!isBuffer_default(other)) return false;
2775
- objIsArr = true;
2776
- objIsObj = false;
2777
- }
2778
- if (isSameTag && !objIsObj) {
2779
- stack || (stack = new _Stack_default());
2780
- return objIsArr || isTypedArray_default(object) ? _equalArrays_default(object, other, bitmask, customizer, equalFunc, stack) : _equalByTag_default(object, other, objTag, bitmask, customizer, equalFunc, stack);
2781
- }
2782
- if (!(bitmask & COMPARE_PARTIAL_FLAG$2)) {
2783
- var objIsWrapped = objIsObj && hasOwnProperty.call(object, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty.call(other, "__wrapped__");
2784
- if (objIsWrapped || othIsWrapped) {
2785
- var objUnwrapped = objIsWrapped ? object.value() : object, othUnwrapped = othIsWrapped ? other.value() : other;
2786
- stack || (stack = new _Stack_default());
2787
- return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
2788
- }
2789
- }
2790
- if (!isSameTag) return false;
2791
- stack || (stack = new _Stack_default());
2792
- return _equalObjects_default(object, other, bitmask, customizer, equalFunc, stack);
2793
- }
2794
- var _baseIsEqualDeep_default = baseIsEqualDeep;
2795
-
2796
- //#endregion
2797
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsEqual.js
2798
- /**
2799
- * The base implementation of `_.isEqual` which supports partial comparisons
2800
- * and tracks traversed objects.
2801
- *
2802
- * @private
2803
- * @param {*} value The value to compare.
2804
- * @param {*} other The other value to compare.
2805
- * @param {boolean} bitmask The bitmask flags.
2806
- * 1 - Unordered comparison
2807
- * 2 - Partial comparison
2808
- * @param {Function} [customizer] The function to customize comparisons.
2809
- * @param {Object} [stack] Tracks traversed `value` and `other` objects.
2810
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
2811
- */
2812
- function baseIsEqual(value, other, bitmask, customizer, stack) {
2813
- if (value === other) return true;
2814
- if (value == null || other == null || !isObjectLike_default(value) && !isObjectLike_default(other)) return value !== value && other !== other;
2815
- return _baseIsEqualDeep_default(value, other, bitmask, customizer, baseIsEqual, stack);
2816
- }
2817
- var _baseIsEqual_default = baseIsEqual;
2818
-
2819
- //#endregion
2820
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsMatch.js
2821
- /** Used to compose bitmasks for value comparisons. */
2822
- var COMPARE_PARTIAL_FLAG$1 = 1, COMPARE_UNORDERED_FLAG$1 = 2;
2823
- /**
2824
- * The base implementation of `_.isMatch` without support for iteratee shorthands.
2825
- *
2826
- * @private
2827
- * @param {Object} object The object to inspect.
2828
- * @param {Object} source The object of property values to match.
2829
- * @param {Array} matchData The property names, values, and compare flags to match.
2830
- * @param {Function} [customizer] The function to customize comparisons.
2831
- * @returns {boolean} Returns `true` if `object` is a match, else `false`.
2832
- */
2833
- function baseIsMatch(object, source, matchData, customizer) {
2834
- var index = matchData.length, length = index, noCustomizer = !customizer;
2835
- if (object == null) return !length;
2836
- object = Object(object);
2837
- while (index--) {
2838
- var data = matchData[index];
2839
- if (noCustomizer && data[2] ? data[1] !== object[data[0]] : !(data[0] in object)) return false;
2840
- }
2841
- while (++index < length) {
2842
- data = matchData[index];
2843
- var key = data[0], objValue = object[key], srcValue = data[1];
2844
- if (noCustomizer && data[2]) {
2845
- if (objValue === void 0 && !(key in object)) return false;
2846
- } else {
2847
- var stack = new _Stack_default();
2848
- if (customizer) var result = customizer(objValue, srcValue, key, object, source, stack);
2849
- if (!(result === void 0 ? _baseIsEqual_default(srcValue, objValue, COMPARE_PARTIAL_FLAG$1 | COMPARE_UNORDERED_FLAG$1, customizer, stack) : result)) return false;
2850
- }
2851
- }
2852
- return true;
2853
- }
2854
- var _baseIsMatch_default = baseIsMatch;
2855
-
2856
- //#endregion
2857
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isStrictComparable.js
2858
- /**
2859
- * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
2860
- *
2861
- * @private
2862
- * @param {*} value The value to check.
2863
- * @returns {boolean} Returns `true` if `value` if suitable for strict
2864
- * equality comparisons, else `false`.
2865
- */
2866
- function isStrictComparable(value) {
2867
- return value === value && !isObject_default(value);
2868
- }
2869
- var _isStrictComparable_default = isStrictComparable;
2870
-
2871
- //#endregion
2872
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getMatchData.js
2873
- /**
2874
- * Gets the property names, values, and compare flags of `object`.
2875
- *
2876
- * @private
2877
- * @param {Object} object The object to query.
2878
- * @returns {Array} Returns the match data of `object`.
2879
- */
2880
- function getMatchData(object) {
2881
- var result = keys_default(object), length = result.length;
2882
- while (length--) {
2883
- var key = result[length], value = object[key];
2884
- result[length] = [
2885
- key,
2886
- value,
2887
- _isStrictComparable_default(value)
2888
- ];
2889
- }
2890
- return result;
2891
- }
2892
- var _getMatchData_default = getMatchData;
2893
-
2894
- //#endregion
2895
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_matchesStrictComparable.js
2896
- /**
2897
- * A specialized version of `matchesProperty` for source values suitable
2898
- * for strict equality comparisons, i.e. `===`.
2899
- *
2900
- * @private
2901
- * @param {string} key The key of the property to get.
2902
- * @param {*} srcValue The value to match.
2903
- * @returns {Function} Returns the new spec function.
2904
- */
2905
- function matchesStrictComparable(key, srcValue) {
2906
- return function(object) {
2907
- if (object == null) return false;
2908
- return object[key] === srcValue && (srcValue !== void 0 || key in Object(object));
2909
- };
2910
- }
2911
- var _matchesStrictComparable_default = matchesStrictComparable;
2912
-
2913
- //#endregion
2914
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMatches.js
2915
- /**
2916
- * The base implementation of `_.matches` which doesn't clone `source`.
2917
- *
2918
- * @private
2919
- * @param {Object} source The object of property values to match.
2920
- * @returns {Function} Returns the new spec function.
2921
- */
2922
- function baseMatches(source) {
2923
- var matchData = _getMatchData_default(source);
2924
- if (matchData.length == 1 && matchData[0][2]) return _matchesStrictComparable_default(matchData[0][0], matchData[0][1]);
2925
- return function(object) {
2926
- return object === source || _baseIsMatch_default(object, source, matchData);
2927
- };
2928
- }
2929
- var _baseMatches_default = baseMatches;
2930
-
2931
- //#endregion
2932
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseHasIn.js
2933
- /**
2934
- * The base implementation of `_.hasIn` without support for deep paths.
2935
- *
2936
- * @private
2937
- * @param {Object} [object] The object to query.
2938
- * @param {Array|string} key The key to check.
2939
- * @returns {boolean} Returns `true` if `key` exists, else `false`.
2940
- */
2941
- function baseHasIn(object, key) {
2942
- return object != null && key in Object(object);
2943
- }
2944
- var _baseHasIn_default = baseHasIn;
2945
-
2946
- //#endregion
2947
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hasPath.js
2948
- /**
2949
- * Checks if `path` exists on `object`.
2950
- *
2951
- * @private
2952
- * @param {Object} object The object to query.
2953
- * @param {Array|string} path The path to check.
2954
- * @param {Function} hasFunc The function to check properties.
2955
- * @returns {boolean} Returns `true` if `path` exists, else `false`.
2956
- */
2957
- function hasPath(object, path, hasFunc) {
2958
- path = _castPath_default(path, object);
2959
- var index = -1, length = path.length, result = false;
2960
- while (++index < length) {
2961
- var key = _toKey_default(path[index]);
2962
- if (!(result = object != null && hasFunc(object, key))) break;
2963
- object = object[key];
2964
- }
2965
- if (result || ++index != length) return result;
2966
- length = object == null ? 0 : object.length;
2967
- return !!length && isLength_default(length) && _isIndex_default(key, length) && (isArray_default(object) || isArguments_default(object));
2968
- }
2969
- var _hasPath_default = hasPath;
2970
-
2971
- //#endregion
2972
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/hasIn.js
2973
- /**
2974
- * Checks if `path` is a direct or inherited property of `object`.
2975
- *
2976
- * @static
2977
- * @memberOf _
2978
- * @since 4.0.0
2979
- * @category Object
2980
- * @param {Object} object The object to query.
2981
- * @param {Array|string} path The path to check.
2982
- * @returns {boolean} Returns `true` if `path` exists, else `false`.
2983
- * @example
2984
- *
2985
- * var object = _.create({ 'a': _.create({ 'b': 2 }) });
2986
- *
2987
- * _.hasIn(object, 'a');
2988
- * // => true
2989
- *
2990
- * _.hasIn(object, 'a.b');
2991
- * // => true
2992
- *
2993
- * _.hasIn(object, ['a', 'b']);
2994
- * // => true
2995
- *
2996
- * _.hasIn(object, 'b');
2997
- * // => false
2998
- */
2999
- function hasIn(object, path) {
3000
- return object != null && _hasPath_default(object, path, _baseHasIn_default);
3001
- }
3002
- var hasIn_default = hasIn;
3003
-
3004
- //#endregion
3005
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMatchesProperty.js
3006
- /** Used to compose bitmasks for value comparisons. */
3007
- var COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2;
3008
- /**
3009
- * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
3010
- *
3011
- * @private
3012
- * @param {string} path The path of the property to get.
3013
- * @param {*} srcValue The value to match.
3014
- * @returns {Function} Returns the new spec function.
3015
- */
3016
- function baseMatchesProperty(path, srcValue) {
3017
- if (_isKey_default(path) && _isStrictComparable_default(srcValue)) return _matchesStrictComparable_default(_toKey_default(path), srcValue);
3018
- return function(object) {
3019
- var objValue = get_default(object, path);
3020
- return objValue === void 0 && objValue === srcValue ? hasIn_default(object, path) : _baseIsEqual_default(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
3021
- };
3022
- }
3023
- var _baseMatchesProperty_default = baseMatchesProperty;
3024
-
3025
- //#endregion
3026
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseProperty.js
3027
- /**
3028
- * The base implementation of `_.property` without support for deep paths.
3029
- *
3030
- * @private
3031
- * @param {string} key The key of the property to get.
3032
- * @returns {Function} Returns the new accessor function.
3033
- */
3034
- function baseProperty(key) {
3035
- return function(object) {
3036
- return object == null ? void 0 : object[key];
3037
- };
3038
- }
3039
- var _baseProperty_default = baseProperty;
3040
-
3041
- //#endregion
3042
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_basePropertyDeep.js
3043
- /**
3044
- * A specialized version of `baseProperty` which supports deep paths.
3045
- *
3046
- * @private
3047
- * @param {Array|string} path The path of the property to get.
3048
- * @returns {Function} Returns the new accessor function.
3049
- */
3050
- function basePropertyDeep(path) {
3051
- return function(object) {
3052
- return _baseGet_default(object, path);
3053
- };
3054
- }
3055
- var _basePropertyDeep_default = basePropertyDeep;
3056
-
3057
- //#endregion
3058
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/property.js
3059
- /**
3060
- * Creates a function that returns the value at `path` of a given object.
3061
- *
3062
- * @static
3063
- * @memberOf _
3064
- * @since 2.4.0
3065
- * @category Util
3066
- * @param {Array|string} path The path of the property to get.
3067
- * @returns {Function} Returns the new accessor function.
3068
- * @example
3069
- *
3070
- * var objects = [
3071
- * { 'a': { 'b': 2 } },
3072
- * { 'a': { 'b': 1 } }
3073
- * ];
3074
- *
3075
- * _.map(objects, _.property('a.b'));
3076
- * // => [2, 1]
3077
- *
3078
- * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
3079
- * // => [1, 2]
3080
- */
3081
- function property(path) {
3082
- return _isKey_default(path) ? _baseProperty_default(_toKey_default(path)) : _basePropertyDeep_default(path);
3083
- }
3084
- var property_default = property;
3085
-
3086
- //#endregion
3087
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIteratee.js
3088
- /**
3089
- * The base implementation of `_.iteratee`.
3090
- *
3091
- * @private
3092
- * @param {*} [value=_.identity] The value to convert to an iteratee.
3093
- * @returns {Function} Returns the iteratee.
3094
- */
3095
- function baseIteratee(value) {
3096
- if (typeof value == "function") return value;
3097
- if (value == null) return identity_default;
3098
- if (typeof value == "object") return isArray_default(value) ? _baseMatchesProperty_default(value[0], value[1]) : _baseMatches_default(value);
3099
- return property_default(value);
3100
- }
3101
- var _baseIteratee_default = baseIteratee;
3102
-
3103
- //#endregion
3104
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createBaseFor.js
3105
- /**
3106
- * Creates a base function for methods like `_.forIn` and `_.forOwn`.
3107
- *
3108
- * @private
3109
- * @param {boolean} [fromRight] Specify iterating from right to left.
3110
- * @returns {Function} Returns the new base function.
3111
- */
3112
- function createBaseFor(fromRight) {
3113
- return function(object, iteratee, keysFunc) {
3114
- var index = -1, iterable = Object(object), props = keysFunc(object), length = props.length;
3115
- while (length--) {
3116
- var key = props[fromRight ? length : ++index];
3117
- if (iteratee(iterable[key], key, iterable) === false) break;
3118
- }
3119
- return object;
3120
- };
3121
- }
3122
- var _createBaseFor_default = createBaseFor;
3123
-
3124
- //#endregion
3125
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseFor.js
3126
- /**
3127
- * The base implementation of `baseForOwn` which iterates over `object`
3128
- * properties returned by `keysFunc` and invokes `iteratee` for each property.
3129
- * Iteratee functions may exit iteration early by explicitly returning `false`.
3130
- *
3131
- * @private
3132
- * @param {Object} object The object to iterate over.
3133
- * @param {Function} iteratee The function invoked per iteration.
3134
- * @param {Function} keysFunc The function to get the keys of `object`.
3135
- * @returns {Object} Returns `object`.
3136
- */
3137
- var baseFor = _createBaseFor_default();
3138
- var _baseFor_default = baseFor;
3139
-
3140
- //#endregion
3141
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseForOwn.js
3142
- /**
3143
- * The base implementation of `_.forOwn` without support for iteratee shorthands.
3144
- *
3145
- * @private
3146
- * @param {Object} object The object to iterate over.
3147
- * @param {Function} iteratee The function invoked per iteration.
3148
- * @returns {Object} Returns `object`.
3149
- */
3150
- function baseForOwn(object, iteratee) {
3151
- return object && _baseFor_default(object, iteratee, keys_default);
3152
- }
3153
- var _baseForOwn_default = baseForOwn;
3154
-
3155
- //#endregion
3156
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createBaseEach.js
3157
- /**
3158
- * Creates a `baseEach` or `baseEachRight` function.
3159
- *
3160
- * @private
3161
- * @param {Function} eachFunc The function to iterate over a collection.
3162
- * @param {boolean} [fromRight] Specify iterating from right to left.
3163
- * @returns {Function} Returns the new base function.
3164
- */
3165
- function createBaseEach(eachFunc, fromRight) {
3166
- return function(collection, iteratee) {
3167
- if (collection == null) return collection;
3168
- if (!isArrayLike_default(collection)) return eachFunc(collection, iteratee);
3169
- var length = collection.length, index = fromRight ? length : -1, iterable = Object(collection);
3170
- while (fromRight ? index-- : ++index < length) if (iteratee(iterable[index], index, iterable) === false) break;
3171
- return collection;
3172
- };
3173
- }
3174
- var _createBaseEach_default = createBaseEach;
3175
-
3176
- //#endregion
3177
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseEach.js
3178
- /**
3179
- * The base implementation of `_.forEach` without support for iteratee shorthands.
3180
- *
3181
- * @private
3182
- * @param {Array|Object} collection The collection to iterate over.
3183
- * @param {Function} iteratee The function invoked per iteration.
3184
- * @returns {Array|Object} Returns `collection`.
3185
- */
3186
- var baseEach = _createBaseEach_default(_baseForOwn_default);
3187
- var _baseEach_default = baseEach;
3188
-
3189
- //#endregion
3190
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_castFunction.js
3191
- /**
3192
- * Casts `value` to `identity` if it's not a function.
3193
- *
3194
- * @private
3195
- * @param {*} value The value to inspect.
3196
- * @returns {Function} Returns cast function.
3197
- */
3198
- function castFunction(value) {
3199
- return typeof value == "function" ? value : identity_default;
3200
- }
3201
- var _castFunction_default = castFunction;
3202
-
3203
- //#endregion
3204
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/forEach.js
3205
- /**
3206
- * Iterates over elements of `collection` and invokes `iteratee` for each element.
3207
- * The iteratee is invoked with three arguments: (value, index|key, collection).
3208
- * Iteratee functions may exit iteration early by explicitly returning `false`.
3209
- *
3210
- * **Note:** As with other "Collections" methods, objects with a "length"
3211
- * property are iterated like arrays. To avoid this behavior use `_.forIn`
3212
- * or `_.forOwn` for object iteration.
3213
- *
3214
- * @static
3215
- * @memberOf _
3216
- * @since 0.1.0
3217
- * @alias each
3218
- * @category Collection
3219
- * @param {Array|Object} collection The collection to iterate over.
3220
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
3221
- * @returns {Array|Object} Returns `collection`.
3222
- * @see _.forEachRight
3223
- * @example
3224
- *
3225
- * _.forEach([1, 2], function(value) {
3226
- * console.log(value);
3227
- * });
3228
- * // => Logs `1` then `2`.
3229
- *
3230
- * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {
3231
- * console.log(key);
3232
- * });
3233
- * // => Logs 'a' then 'b' (iteration order is not guaranteed).
3234
- */
3235
- function forEach(collection, iteratee) {
3236
- return (isArray_default(collection) ? _arrayEach_default : _baseEach_default)(collection, _castFunction_default(iteratee));
3237
- }
3238
- var forEach_default = forEach;
3239
-
3240
- //#endregion
3241
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayEvery.js
3242
- /**
3243
- * A specialized version of `_.every` for arrays without support for
3244
- * iteratee shorthands.
3245
- *
3246
- * @private
3247
- * @param {Array} [array] The array to iterate over.
3248
- * @param {Function} predicate The function invoked per iteration.
3249
- * @returns {boolean} Returns `true` if all elements pass the predicate check,
3250
- * else `false`.
3251
- */
3252
- function arrayEvery(array, predicate) {
3253
- var index = -1, length = array == null ? 0 : array.length;
3254
- while (++index < length) if (!predicate(array[index], index, array)) return false;
3255
- return true;
3256
- }
3257
- var _arrayEvery_default = arrayEvery;
3258
-
3259
- //#endregion
3260
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseEvery.js
3261
- /**
3262
- * The base implementation of `_.every` without support for iteratee shorthands.
3263
- *
3264
- * @private
3265
- * @param {Array|Object} collection The collection to iterate over.
3266
- * @param {Function} predicate The function invoked per iteration.
3267
- * @returns {boolean} Returns `true` if all elements pass the predicate check,
3268
- * else `false`
3269
- */
3270
- function baseEvery(collection, predicate) {
3271
- var result = true;
3272
- _baseEach_default(collection, function(value, index, collection) {
3273
- result = !!predicate(value, index, collection);
3274
- return result;
3275
- });
3276
- return result;
3277
- }
3278
- var _baseEvery_default = baseEvery;
3279
-
3280
- //#endregion
3281
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/every.js
3282
- /**
3283
- * Checks if `predicate` returns truthy for **all** elements of `collection`.
3284
- * Iteration is stopped once `predicate` returns falsey. The predicate is
3285
- * invoked with three arguments: (value, index|key, collection).
3286
- *
3287
- * **Note:** This method returns `true` for
3288
- * [empty collections](https://en.wikipedia.org/wiki/Empty_set) because
3289
- * [everything is true](https://en.wikipedia.org/wiki/Vacuous_truth) of
3290
- * elements of empty collections.
3291
- *
3292
- * @static
3293
- * @memberOf _
3294
- * @since 0.1.0
3295
- * @category Collection
3296
- * @param {Array|Object} collection The collection to iterate over.
3297
- * @param {Function} [predicate=_.identity] The function invoked per iteration.
3298
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
3299
- * @returns {boolean} Returns `true` if all elements pass the predicate check,
3300
- * else `false`.
3301
- * @example
3302
- *
3303
- * _.every([true, 1, null, 'yes'], Boolean);
3304
- * // => false
3305
- *
3306
- * var users = [
3307
- * { 'user': 'barney', 'age': 36, 'active': false },
3308
- * { 'user': 'fred', 'age': 40, 'active': false }
3309
- * ];
3310
- *
3311
- * // The `_.matches` iteratee shorthand.
3312
- * _.every(users, { 'user': 'barney', 'active': false });
3313
- * // => false
3314
- *
3315
- * // The `_.matchesProperty` iteratee shorthand.
3316
- * _.every(users, ['active', false]);
3317
- * // => true
3318
- *
3319
- * // The `_.property` iteratee shorthand.
3320
- * _.every(users, 'active');
3321
- * // => false
3322
- */
3323
- function every(collection, predicate, guard) {
3324
- var func = isArray_default(collection) ? _arrayEvery_default : _baseEvery_default;
3325
- if (guard && _isIterateeCall_default(collection, predicate, guard)) predicate = void 0;
3326
- return func(collection, _baseIteratee_default(predicate, 3));
3327
- }
3328
- var every_default = every;
3329
-
3330
- //#endregion
3331
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMap.js
3332
- /**
3333
- * The base implementation of `_.map` without support for iteratee shorthands.
3334
- *
3335
- * @private
3336
- * @param {Array|Object} collection The collection to iterate over.
3337
- * @param {Function} iteratee The function invoked per iteration.
3338
- * @returns {Array} Returns the new mapped array.
3339
- */
3340
- function baseMap(collection, iteratee) {
3341
- var index = -1, result = isArrayLike_default(collection) ? Array(collection.length) : [];
3342
- _baseEach_default(collection, function(value, key, collection) {
3343
- result[++index] = iteratee(value, key, collection);
3344
- });
3345
- return result;
3346
- }
3347
- var _baseMap_default = baseMap;
3348
-
3349
- //#endregion
3350
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/map.js
3351
- /**
3352
- * Creates an array of values by running each element in `collection` thru
3353
- * `iteratee`. The iteratee is invoked with three arguments:
3354
- * (value, index|key, collection).
3355
- *
3356
- * Many lodash methods are guarded to work as iteratees for methods like
3357
- * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.
3358
- *
3359
- * The guarded methods are:
3360
- * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,
3361
- * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,
3362
- * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,
3363
- * `template`, `trim`, `trimEnd`, `trimStart`, and `words`
3364
- *
3365
- * @static
3366
- * @memberOf _
3367
- * @since 0.1.0
3368
- * @category Collection
3369
- * @param {Array|Object} collection The collection to iterate over.
3370
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
3371
- * @returns {Array} Returns the new mapped array.
3372
- * @example
3373
- *
3374
- * function square(n) {
3375
- * return n * n;
3376
- * }
3377
- *
3378
- * _.map([4, 8], square);
3379
- * // => [16, 64]
3380
- *
3381
- * _.map({ 'a': 4, 'b': 8 }, square);
3382
- * // => [16, 64] (iteration order is not guaranteed)
3383
- *
3384
- * var users = [
3385
- * { 'user': 'barney' },
3386
- * { 'user': 'fred' }
3387
- * ];
3388
- *
3389
- * // The `_.property` iteratee shorthand.
3390
- * _.map(users, 'user');
3391
- * // => ['barney', 'fred']
3392
- */
3393
- function map(collection, iteratee) {
3394
- return (isArray_default(collection) ? _arrayMap_default : _baseMap_default)(collection, _baseIteratee_default(iteratee, 3));
3395
- }
3396
- var map_default = map;
3397
-
3398
- //#endregion
3399
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isString.js
3400
- /** `Object#toString` result references. */
3401
- var stringTag = "[object String]";
3402
- /**
3403
- * Checks if `value` is classified as a `String` primitive or object.
3404
- *
3405
- * @static
3406
- * @since 0.1.0
3407
- * @memberOf _
3408
- * @category Lang
3409
- * @param {*} value The value to check.
3410
- * @returns {boolean} Returns `true` if `value` is a string, else `false`.
3411
- * @example
3412
- *
3413
- * _.isString('abc');
3414
- * // => true
3415
- *
3416
- * _.isString(1);
3417
- * // => false
3418
- */
3419
- function isString(value) {
3420
- return typeof value == "string" || !isArray_default(value) && isObjectLike_default(value) && _baseGetTag_default(value) == stringTag;
3421
- }
3422
- var isString_default = isString;
3423
-
3424
- //#endregion
3425
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseValues.js
3426
- /**
3427
- * The base implementation of `_.values` and `_.valuesIn` which creates an
3428
- * array of `object` property values corresponding to the property names
3429
- * of `props`.
3430
- *
3431
- * @private
3432
- * @param {Object} object The object to query.
3433
- * @param {Array} props The property names to get values for.
3434
- * @returns {Object} Returns the array of property values.
3435
- */
3436
- function baseValues(object, props) {
3437
- return _arrayMap_default(props, function(key) {
3438
- return object[key];
3439
- });
3440
- }
3441
- var _baseValues_default = baseValues;
3442
-
3443
- //#endregion
3444
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/values.js
3445
- /**
3446
- * Creates an array of the own enumerable string keyed property values of `object`.
3447
- *
3448
- * **Note:** Non-object values are coerced to objects.
3449
- *
3450
- * @static
3451
- * @since 0.1.0
3452
- * @memberOf _
3453
- * @category Object
3454
- * @param {Object} object The object to query.
3455
- * @returns {Array} Returns the array of property values.
3456
- * @example
3457
- *
3458
- * function Foo() {
3459
- * this.a = 1;
3460
- * this.b = 2;
3461
- * }
3462
- *
3463
- * Foo.prototype.c = 3;
3464
- *
3465
- * _.values(new Foo);
3466
- * // => [1, 2] (iteration order is not guaranteed)
3467
- *
3468
- * _.values('hi');
3469
- * // => ['h', 'i']
3470
- */
3471
- function values(object) {
3472
- return object == null ? [] : _baseValues_default(object, keys_default(object));
3473
- }
3474
- var values_default = values;
3475
-
3476
- //#endregion
3477
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/includes.js
3478
- var nativeMax = Math.max;
3479
- /**
3480
- * Checks if `value` is in `collection`. If `collection` is a string, it's
3481
- * checked for a substring of `value`, otherwise
3482
- * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
3483
- * is used for equality comparisons. If `fromIndex` is negative, it's used as
3484
- * the offset from the end of `collection`.
3485
- *
3486
- * @static
3487
- * @memberOf _
3488
- * @since 0.1.0
3489
- * @category Collection
3490
- * @param {Array|Object|string} collection The collection to inspect.
3491
- * @param {*} value The value to search for.
3492
- * @param {number} [fromIndex=0] The index to search from.
3493
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.
3494
- * @returns {boolean} Returns `true` if `value` is found, else `false`.
3495
- * @example
3496
- *
3497
- * _.includes([1, 2, 3], 1);
3498
- * // => true
3499
- *
3500
- * _.includes([1, 2, 3], 1, 2);
3501
- * // => false
3502
- *
3503
- * _.includes({ 'a': 1, 'b': 2 }, 1);
3504
- * // => true
3505
- *
3506
- * _.includes('abcd', 'bc');
3507
- * // => true
3508
- */
3509
- function includes(collection, value, fromIndex, guard) {
3510
- collection = isArrayLike_default(collection) ? collection : values_default(collection);
3511
- fromIndex = fromIndex && !guard ? toInteger_default(fromIndex) : 0;
3512
- var length = collection.length;
3513
- if (fromIndex < 0) fromIndex = nativeMax(length + fromIndex, 0);
3514
- return isString_default(collection) ? fromIndex <= length && collection.indexOf(value, fromIndex) > -1 : !!length && _baseIndexOf_default(collection, value, fromIndex) > -1;
3515
- }
3516
- var includes_default = includes;
3517
-
3518
- //#endregion
3519
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsRegExp.js
3520
- /** `Object#toString` result references. */
3521
- var regexpTag = "[object RegExp]";
3522
- /**
3523
- * The base implementation of `_.isRegExp` without Node.js optimizations.
3524
- *
3525
- * @private
3526
- * @param {*} value The value to check.
3527
- * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
3528
- */
3529
- function baseIsRegExp(value) {
3530
- return isObjectLike_default(value) && _baseGetTag_default(value) == regexpTag;
3531
- }
3532
- var _baseIsRegExp_default = baseIsRegExp;
3533
-
3534
- //#endregion
3535
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isRegExp.js
3536
- var nodeIsRegExp = _nodeUtil_default && _nodeUtil_default.isRegExp;
3537
- /**
3538
- * Checks if `value` is classified as a `RegExp` object.
3539
- *
3540
- * @static
3541
- * @memberOf _
3542
- * @since 0.1.0
3543
- * @category Lang
3544
- * @param {*} value The value to check.
3545
- * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
3546
- * @example
3547
- *
3548
- * _.isRegExp(/abc/);
3549
- * // => true
3550
- *
3551
- * _.isRegExp('/abc/');
3552
- * // => false
3553
- */
3554
- var isRegExp = nodeIsRegExp ? _baseUnary_default(nodeIsRegExp) : _baseIsRegExp_default;
3555
- var isRegExp_default = isRegExp;
3556
-
3557
- //#endregion
3558
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseSet.js
3559
- /**
3560
- * The base implementation of `_.set`.
3561
- *
3562
- * @private
3563
- * @param {Object} object The object to modify.
3564
- * @param {Array|string} path The path of the property to set.
3565
- * @param {*} value The value to set.
3566
- * @param {Function} [customizer] The function to customize path creation.
3567
- * @returns {Object} Returns `object`.
3568
- */
3569
- function baseSet(object, path, value, customizer) {
3570
- if (!isObject_default(object)) return object;
3571
- path = _castPath_default(path, object);
3572
- var index = -1, length = path.length, lastIndex = length - 1, nested = object;
3573
- while (nested != null && ++index < length) {
3574
- var key = _toKey_default(path[index]), newValue = value;
3575
- if (key === "__proto__" || key === "constructor" || key === "prototype") return object;
3576
- if (index != lastIndex) {
3577
- var objValue = nested[key];
3578
- newValue = customizer ? customizer(objValue, key, nested) : void 0;
3579
- if (newValue === void 0) newValue = isObject_default(objValue) ? objValue : _isIndex_default(path[index + 1]) ? [] : {};
3580
- }
3581
- _assignValue_default(nested, key, newValue);
3582
- nested = nested[key];
3583
- }
3584
- return object;
3585
- }
3586
- var _baseSet_default = baseSet;
3587
-
3588
- //#endregion
3589
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_basePickBy.js
3590
- /**
3591
- * The base implementation of `_.pickBy` without support for iteratee shorthands.
3592
- *
3593
- * @private
3594
- * @param {Object} object The source object.
3595
- * @param {string[]} paths The property paths to pick.
3596
- * @param {Function} predicate The function invoked per property.
3597
- * @returns {Object} Returns the new object.
3598
- */
3599
- function basePickBy(object, paths, predicate) {
3600
- var index = -1, length = paths.length, result = {};
3601
- while (++index < length) {
3602
- var path = paths[index], value = _baseGet_default(object, path);
3603
- if (predicate(value, path)) _baseSet_default(result, _castPath_default(path, object), value);
3604
- }
3605
- return result;
3606
- }
3607
- var _basePickBy_default = basePickBy;
3608
-
3609
- //#endregion
3610
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/pickBy.js
3611
- /**
3612
- * Creates an object composed of the `object` properties `predicate` returns
3613
- * truthy for. The predicate is invoked with two arguments: (value, key).
3614
- *
3615
- * @static
3616
- * @memberOf _
3617
- * @since 4.0.0
3618
- * @category Object
3619
- * @param {Object} object The source object.
3620
- * @param {Function} [predicate=_.identity] The function invoked per property.
3621
- * @returns {Object} Returns the new object.
3622
- * @example
3623
- *
3624
- * var object = { 'a': 1, 'b': '2', 'c': 3 };
3625
- *
3626
- * _.pickBy(object, _.isNumber);
3627
- * // => { 'a': 1, 'c': 3 }
3628
- */
3629
- function pickBy(object, predicate) {
3630
- if (object == null) return {};
3631
- var props = _arrayMap_default(_getAllKeysIn_default(object), function(prop) {
3632
- return [prop];
3633
- });
3634
- predicate = _baseIteratee_default(predicate);
3635
- return _basePickBy_default(object, props, function(value, path) {
3636
- return predicate(value, path[0]);
3637
- });
3638
- }
3639
- var pickBy_default = pickBy;
3640
-
3641
- //#endregion
3642
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseSome.js
3643
- /**
3644
- * The base implementation of `_.some` without support for iteratee shorthands.
3645
- *
3646
- * @private
3647
- * @param {Array|Object} collection The collection to iterate over.
3648
- * @param {Function} predicate The function invoked per iteration.
3649
- * @returns {boolean} Returns `true` if any element passes the predicate check,
3650
- * else `false`.
3651
- */
3652
- function baseSome(collection, predicate) {
3653
- var result;
3654
- _baseEach_default(collection, function(value, index, collection) {
3655
- result = predicate(value, index, collection);
3656
- return !result;
3657
- });
3658
- return !!result;
3659
- }
3660
- var _baseSome_default = baseSome;
3661
-
3662
- //#endregion
3663
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/some.js
3664
- /**
3665
- * Checks if `predicate` returns truthy for **any** element of `collection`.
3666
- * Iteration is stopped once `predicate` returns truthy. The predicate is
3667
- * invoked with three arguments: (value, index|key, collection).
3668
- *
3669
- * @static
3670
- * @memberOf _
3671
- * @since 0.1.0
3672
- * @category Collection
3673
- * @param {Array|Object} collection The collection to iterate over.
3674
- * @param {Function} [predicate=_.identity] The function invoked per iteration.
3675
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
3676
- * @returns {boolean} Returns `true` if any element passes the predicate check,
3677
- * else `false`.
3678
- * @example
3679
- *
3680
- * _.some([null, 0, 'yes', false], Boolean);
3681
- * // => true
3682
- *
3683
- * var users = [
3684
- * { 'user': 'barney', 'active': true },
3685
- * { 'user': 'fred', 'active': false }
3686
- * ];
3687
- *
3688
- * // The `_.matches` iteratee shorthand.
3689
- * _.some(users, { 'user': 'barney', 'active': false });
3690
- * // => false
3691
- *
3692
- * // The `_.matchesProperty` iteratee shorthand.
3693
- * _.some(users, ['active', false]);
3694
- * // => true
3695
- *
3696
- * // The `_.property` iteratee shorthand.
3697
- * _.some(users, 'active');
3698
- * // => true
3699
- */
3700
- function some(collection, predicate, guard) {
3701
- var func = isArray_default(collection) ? _arraySome_default : _baseSome_default;
3702
- if (guard && _isIterateeCall_default(collection, predicate, guard)) predicate = void 0;
3703
- return func(collection, _baseIteratee_default(predicate, 3));
3704
- }
3705
- var some_default = some;
3706
-
3707
- //#endregion
3708
- //#region ../../node_modules/.pnpm/@chevrotain+gast@11.0.3/node_modules/@chevrotain/gast/lib/src/model.js
3709
- function tokenLabel(tokType) {
3710
- if (hasTokenLabel(tokType)) return tokType.LABEL;
3711
- else return tokType.name;
3712
- }
3713
- function hasTokenLabel(obj) {
3714
- return isString_default(obj.LABEL) && obj.LABEL !== "";
3715
- }
3716
- var AbstractProduction = class {
3717
- get definition() {
3718
- return this._definition;
3719
- }
3720
- set definition(value) {
3721
- this._definition = value;
3722
- }
3723
- constructor(_definition) {
3724
- this._definition = _definition;
3725
- }
3726
- accept(visitor) {
3727
- visitor.visit(this);
3728
- forEach_default(this.definition, (prod) => {
3729
- prod.accept(visitor);
3730
- });
3731
- }
3732
- };
3733
- var NonTerminal = class extends AbstractProduction {
3734
- constructor(options) {
3735
- super([]);
3736
- this.idx = 1;
3737
- assign_default(this, pickBy_default(options, (v) => v !== void 0));
3738
- }
3739
- set definition(definition) {}
3740
- get definition() {
3741
- if (this.referencedRule !== void 0) return this.referencedRule.definition;
3742
- return [];
3743
- }
3744
- accept(visitor) {
3745
- visitor.visit(this);
3746
- }
3747
- };
3748
- var Rule = class extends AbstractProduction {
3749
- constructor(options) {
3750
- super(options.definition);
3751
- this.orgText = "";
3752
- assign_default(this, pickBy_default(options, (v) => v !== void 0));
3753
- }
3754
- };
3755
- var Alternative = class extends AbstractProduction {
3756
- constructor(options) {
3757
- super(options.definition);
3758
- this.ignoreAmbiguities = false;
3759
- assign_default(this, pickBy_default(options, (v) => v !== void 0));
3760
- }
3761
- };
3762
- var Option = class extends AbstractProduction {
3763
- constructor(options) {
3764
- super(options.definition);
3765
- this.idx = 1;
3766
- assign_default(this, pickBy_default(options, (v) => v !== void 0));
3767
- }
3768
- };
3769
- var RepetitionMandatory = class extends AbstractProduction {
3770
- constructor(options) {
3771
- super(options.definition);
3772
- this.idx = 1;
3773
- assign_default(this, pickBy_default(options, (v) => v !== void 0));
3774
- }
3775
- };
3776
- var RepetitionMandatoryWithSeparator = class extends AbstractProduction {
3777
- constructor(options) {
3778
- super(options.definition);
3779
- this.idx = 1;
3780
- assign_default(this, pickBy_default(options, (v) => v !== void 0));
3781
- }
3782
- };
3783
- var Repetition = class extends AbstractProduction {
3784
- constructor(options) {
3785
- super(options.definition);
3786
- this.idx = 1;
3787
- assign_default(this, pickBy_default(options, (v) => v !== void 0));
3788
- }
3789
- };
3790
- var RepetitionWithSeparator = class extends AbstractProduction {
3791
- constructor(options) {
3792
- super(options.definition);
3793
- this.idx = 1;
3794
- assign_default(this, pickBy_default(options, (v) => v !== void 0));
3795
- }
3796
- };
3797
- var Alternation = class extends AbstractProduction {
3798
- get definition() {
3799
- return this._definition;
3800
- }
3801
- set definition(value) {
3802
- this._definition = value;
3803
- }
3804
- constructor(options) {
3805
- super(options.definition);
3806
- this.idx = 1;
3807
- this.ignoreAmbiguities = false;
3808
- this.hasPredicates = false;
3809
- assign_default(this, pickBy_default(options, (v) => v !== void 0));
3810
- }
3811
- };
3812
- var Terminal = class {
3813
- constructor(options) {
3814
- this.idx = 1;
3815
- assign_default(this, pickBy_default(options, (v) => v !== void 0));
3816
- }
3817
- accept(visitor) {
3818
- visitor.visit(this);
3819
- }
3820
- };
3821
- function serializeGrammar(topRules) {
3822
- return map_default(topRules, serializeProduction);
3823
- }
3824
- function serializeProduction(node) {
3825
- function convertDefinition(definition) {
3826
- return map_default(definition, serializeProduction);
3827
- }
3828
- /* istanbul ignore else */
3829
- if (node instanceof NonTerminal) {
3830
- const serializedNonTerminal = {
3831
- type: "NonTerminal",
3832
- name: node.nonTerminalName,
3833
- idx: node.idx
3834
- };
3835
- if (isString_default(node.label)) serializedNonTerminal.label = node.label;
3836
- return serializedNonTerminal;
3837
- } else if (node instanceof Alternative) return {
3838
- type: "Alternative",
3839
- definition: convertDefinition(node.definition)
3840
- };
3841
- else if (node instanceof Option) return {
3842
- type: "Option",
3843
- idx: node.idx,
3844
- definition: convertDefinition(node.definition)
3845
- };
3846
- else if (node instanceof RepetitionMandatory) return {
3847
- type: "RepetitionMandatory",
3848
- idx: node.idx,
3849
- definition: convertDefinition(node.definition)
3850
- };
3851
- else if (node instanceof RepetitionMandatoryWithSeparator) return {
3852
- type: "RepetitionMandatoryWithSeparator",
3853
- idx: node.idx,
3854
- separator: serializeProduction(new Terminal({ terminalType: node.separator })),
3855
- definition: convertDefinition(node.definition)
3856
- };
3857
- else if (node instanceof RepetitionWithSeparator) return {
3858
- type: "RepetitionWithSeparator",
3859
- idx: node.idx,
3860
- separator: serializeProduction(new Terminal({ terminalType: node.separator })),
3861
- definition: convertDefinition(node.definition)
3862
- };
3863
- else if (node instanceof Repetition) return {
3864
- type: "Repetition",
3865
- idx: node.idx,
3866
- definition: convertDefinition(node.definition)
3867
- };
3868
- else if (node instanceof Alternation) return {
3869
- type: "Alternation",
3870
- idx: node.idx,
3871
- definition: convertDefinition(node.definition)
3872
- };
3873
- else if (node instanceof Terminal) {
3874
- const serializedTerminal = {
3875
- type: "Terminal",
3876
- name: node.terminalType.name,
3877
- label: tokenLabel(node.terminalType),
3878
- idx: node.idx
3879
- };
3880
- if (isString_default(node.label)) serializedTerminal.terminalLabel = node.label;
3881
- const pattern = node.terminalType.PATTERN;
3882
- if (node.terminalType.PATTERN) serializedTerminal.pattern = isRegExp_default(pattern) ? pattern.source : pattern;
3883
- return serializedTerminal;
3884
- } else if (node instanceof Rule) return {
3885
- type: "Rule",
3886
- name: node.name,
3887
- orgText: node.orgText,
3888
- definition: convertDefinition(node.definition)
3889
- };
3890
- else throw Error("non exhaustive match");
3891
- }
3892
-
3893
- //#endregion
3894
- //#region ../../node_modules/.pnpm/@chevrotain+gast@11.0.3/node_modules/@chevrotain/gast/lib/src/visitor.js
3895
- var GAstVisitor = class {
3896
- visit(node) {
3897
- const nodeAny = node;
3898
- switch (nodeAny.constructor) {
3899
- case NonTerminal: return this.visitNonTerminal(nodeAny);
3900
- case Alternative: return this.visitAlternative(nodeAny);
3901
- case Option: return this.visitOption(nodeAny);
3902
- case RepetitionMandatory: return this.visitRepetitionMandatory(nodeAny);
3903
- case RepetitionMandatoryWithSeparator: return this.visitRepetitionMandatoryWithSeparator(nodeAny);
3904
- case RepetitionWithSeparator: return this.visitRepetitionWithSeparator(nodeAny);
3905
- case Repetition: return this.visitRepetition(nodeAny);
3906
- case Alternation: return this.visitAlternation(nodeAny);
3907
- case Terminal: return this.visitTerminal(nodeAny);
3908
- case Rule: return this.visitRule(nodeAny);
3909
- default: throw Error("non exhaustive match");
3910
- }
3911
- }
3912
- /* c8 ignore next */
3913
- visitNonTerminal(node) {}
3914
- /* c8 ignore next */
3915
- visitAlternative(node) {}
3916
- /* c8 ignore next */
3917
- visitOption(node) {}
3918
- /* c8 ignore next */
3919
- visitRepetition(node) {}
3920
- /* c8 ignore next */
3921
- visitRepetitionMandatory(node) {}
3922
- /* c8 ignore next 3 */
3923
- visitRepetitionMandatoryWithSeparator(node) {}
3924
- /* c8 ignore next */
3925
- visitRepetitionWithSeparator(node) {}
3926
- /* c8 ignore next */
3927
- visitAlternation(node) {}
3928
- /* c8 ignore next */
3929
- visitTerminal(node) {}
3930
- /* c8 ignore next */
3931
- visitRule(node) {}
3932
- };
3933
-
3934
- //#endregion
3935
- //#region ../../node_modules/.pnpm/@chevrotain+gast@11.0.3/node_modules/@chevrotain/gast/lib/src/helpers.js
3936
- function isSequenceProd(prod) {
3937
- return prod instanceof Alternative || prod instanceof Option || prod instanceof Repetition || prod instanceof RepetitionMandatory || prod instanceof RepetitionMandatoryWithSeparator || prod instanceof RepetitionWithSeparator || prod instanceof Terminal || prod instanceof Rule;
3938
- }
3939
- function isOptionalProd(prod, alreadyVisited = []) {
3940
- if (prod instanceof Option || prod instanceof Repetition || prod instanceof RepetitionWithSeparator) return true;
3941
- if (prod instanceof Alternation) return some_default(prod.definition, (subProd) => {
3942
- return isOptionalProd(subProd, alreadyVisited);
3943
- });
3944
- else if (prod instanceof NonTerminal && includes_default(alreadyVisited, prod)) return false;
3945
- else if (prod instanceof AbstractProduction) {
3946
- if (prod instanceof NonTerminal) alreadyVisited.push(prod);
3947
- return every_default(prod.definition, (subProd) => {
3948
- return isOptionalProd(subProd, alreadyVisited);
3949
- });
3950
- } else return false;
3951
- }
3952
- function isBranchingProd(prod) {
3953
- return prod instanceof Alternation;
3954
- }
3955
- function getProductionDslName(prod) {
3956
- /* istanbul ignore else */
3957
- if (prod instanceof NonTerminal) return "SUBRULE";
3958
- else if (prod instanceof Option) return "OPTION";
3959
- else if (prod instanceof Alternation) return "OR";
3960
- else if (prod instanceof RepetitionMandatory) return "AT_LEAST_ONE";
3961
- else if (prod instanceof RepetitionMandatoryWithSeparator) return "AT_LEAST_ONE_SEP";
3962
- else if (prod instanceof RepetitionWithSeparator) return "MANY_SEP";
3963
- else if (prod instanceof Repetition) return "MANY";
3964
- else if (prod instanceof Terminal) return "CONSUME";
3965
- else throw Error("non exhaustive match");
3966
- }
3967
-
3968
- //#endregion
3969
- export { _isIterateeCall_default as $, _cacheHas_default as A, _Stack_default as B, map_default as C, _baseIteratee_default as D, _baseEach_default as E, _getAllKeysIn_default as F, keys_default as G, _arrayPush_default as H, _getAllKeys_default as I, _nodeUtil_default as J, _baseKeys_default as K, _getSymbolsIn_default as L, _Uint8Array_default as M, _getTag_default as N, _hasPath_default as O, _Set_default as P, _isPrototype_default as Q, _getSymbols_default as R, isString_default as S, forEach_default as T, keysIn_default as U, _getPrototype_default as V, assign_default as W, isBuffer_default as X, _baseUnary_default as Y, isArguments_default as Z, some_default as _, _Symbol_default as _t, GAstVisitor as a, _baseAssignValue_default as at, includes_default as b, NonTerminal as c, _arrayEach_default as ct, RepetitionMandatory as d, toInteger_default as dt, isArrayLike_default as et, RepetitionMandatoryWithSeparator as f, isObject_default as ft, serializeGrammar as g, isObjectLike_default as gt, Terminal as h, isSymbol_default as ht, isSequenceProd as i, eq_default as it, _SetCache_default as j, _setToArray_default as k, Option as l, isFunction_default as lt, Rule as m, _arrayMap_default as mt, isBranchingProd as n, _copyObject_default as nt, Alternation as o, _baseIndexOf_default as ot, RepetitionWithSeparator as p, isArray_default as pt, isTypedArray_default as q, isOptionalProd as r, _assignValue_default as rt, Alternative as s, _baseFindIndex_default as st, getProductionDslName as t, _baseRest_default as tt, Repetition as u, identity_default as ut, pickBy_default as v, _root_default as vt, every_default as w, values_default as x, isRegExp_default as y, _arrayFilter_default as z };
1
+ var freeGlobal=typeof global==`object`&&global&&global.Object===Object&&global,freeSelf=typeof self==`object`&&self&&self.Object===Object&&self,root=freeGlobal||freeSelf||Function(`return this`)(),Symbol=root.Symbol,objectProto$3=Object.prototype,hasOwnProperty$11=objectProto$3.hasOwnProperty,nativeObjectToString$1=objectProto$3.toString,symToStringTag$1=Symbol?Symbol.toStringTag:void 0;function getRawTag(e){var t=hasOwnProperty$11.call(e,symToStringTag$1),n=e[symToStringTag$1];try{e[symToStringTag$1]=void 0;var r=!0}catch{}var i=nativeObjectToString$1.call(e);return r&&(t?e[symToStringTag$1]=n:delete e[symToStringTag$1]),i}var nativeObjectToString=Object.prototype.toString;function objectToString(e){return nativeObjectToString.call(e)}var nullTag=`[object Null]`,undefinedTag=`[object Undefined]`,symToStringTag=Symbol?Symbol.toStringTag:void 0;function baseGetTag(e){return e==null?e===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(e)?getRawTag(e):objectToString(e)}function isObjectLike(e){return typeof e==`object`&&!!e}var symbolTag$1=`[object Symbol]`;function isSymbol(e){return typeof e==`symbol`||isObjectLike(e)&&baseGetTag(e)==symbolTag$1}function arrayMap(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var isArray=Array.isArray,INFINITY$2=1/0,symbolProto$1=Symbol?Symbol.prototype:void 0,symbolToString=symbolProto$1?symbolProto$1.toString:void 0;function baseToString(e){if(typeof e==`string`)return e;if(isArray(e))return arrayMap(e,baseToString)+``;if(isSymbol(e))return symbolToString?symbolToString.call(e):``;var t=e+``;return t==`0`&&1/e==-INFINITY$2?`-0`:t}var reWhitespace=/\s/;function trimmedEndIndex(e){for(var t=e.length;t--&&reWhitespace.test(e.charAt(t)););return t}var reTrimStart=/^\s+/;function baseTrim(e){return e&&e.slice(0,trimmedEndIndex(e)+1).replace(reTrimStart,``)}function isObject(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}var NAN=NaN,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt;function toNumber(e){if(typeof e==`number`)return e;if(isSymbol(e))return NAN;if(isObject(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=isObject(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=baseTrim(e);var n=reIsBinary.test(e);return n||reIsOctal.test(e)?freeParseInt(e.slice(2),n?2:8):reIsBadHex.test(e)?NAN:+e}var INFINITY$1=1/0,MAX_INTEGER=17976931348623157e292;function toFinite(e){return e?(e=toNumber(e),e===INFINITY$1||e===-INFINITY$1?(e<0?-1:1)*MAX_INTEGER:e===e?e:0):e===0?e:0}function toInteger(e){var t=toFinite(e),n=t%1;return t===t?n?t-n:t:0}function identity(e){return e}var asyncTag=`[object AsyncFunction]`,funcTag$1=`[object Function]`,genTag=`[object GeneratorFunction]`,proxyTag=`[object Proxy]`;function isFunction(e){if(!isObject(e))return!1;var t=baseGetTag(e);return t==funcTag$1||t==genTag||t==asyncTag||t==proxyTag}var coreJsData=root[`__core-js_shared__`],maskSrcKey=function(){var e=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function isMasked(e){return!!maskSrcKey&&maskSrcKey in e}var funcToString$1=Function.prototype.toString;function toSource(e){if(e!=null){try{return funcToString$1.call(e)}catch{}try{return e+``}catch{}}return``}var reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto=Function.prototype,objectProto$2=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$10=objectProto$2.hasOwnProperty,reIsNative=RegExp(`^`+funcToString.call(hasOwnProperty$10).replace(reRegExpChar,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function baseIsNative(e){return!isObject(e)||isMasked(e)?!1:(isFunction(e)?reIsNative:reIsHostCtor).test(toSource(e))}function getValue(e,t){return e?.[t]}function getNative(e,t){var n=getValue(e,t);return baseIsNative(n)?n:void 0}var WeakMap=getNative(root,`WeakMap`);function apply(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var HOT_COUNT=800,HOT_SPAN=16,nativeNow=Date.now;function shortOut(e){var t=0,n=0;return function(){var r=nativeNow(),i=HOT_SPAN-(r-n);if(n=r,i>0){if(++t>=HOT_COUNT)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function constant(e){return function(){return e}}var defineProperty=function(){try{var e=getNative(Object,`defineProperty`);return e({},``,{}),e}catch{}}(),setToString=shortOut(defineProperty?function(e,t){return defineProperty(e,`toString`,{configurable:!0,enumerable:!1,value:constant(t),writable:!0})}:identity);function arrayEach(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function baseFindIndex(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}function baseIsNaN(e){return e!==e}function strictIndexOf(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function baseIndexOf(e,t,n){return t===t?strictIndexOf(e,t,n):baseFindIndex(e,baseIsNaN,n)}var MAX_SAFE_INTEGER$1=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex(e,t){var n=typeof e;return t??=MAX_SAFE_INTEGER$1,!!t&&(n==`number`||n!=`symbol`&&reIsUint.test(e))&&e>-1&&e%1==0&&e<t}function baseAssignValue(e,t,n){t==`__proto__`&&defineProperty?defineProperty(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function eq(e,t){return e===t||e!==e&&t!==t}var hasOwnProperty$9=Object.prototype.hasOwnProperty;function assignValue(e,t,n){var r=e[t];(!(hasOwnProperty$9.call(e,t)&&eq(r,n))||n===void 0&&!(t in e))&&baseAssignValue(e,t,n)}function copyObject(e,t,n,r){var i=!n;n||={};for(var a=-1,o=t.length;++a<o;){var s=t[a],c=r?r(n[s],e[s],s,n,e):void 0;c===void 0&&(c=e[s]),i?baseAssignValue(n,s,c):assignValue(n,s,c)}return n}var nativeMax$1=Math.max;function overRest(e,t,n){return t=nativeMax$1(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=nativeMax$1(r.length-t,0),o=Array(a);++i<a;)o[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(o),apply(e,this,s)}}function baseRest(e,t){return setToString(overRest(e,t,identity),e+``)}var MAX_SAFE_INTEGER=9007199254740991;function isLength(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=MAX_SAFE_INTEGER}function isArrayLike(e){return e!=null&&isLength(e.length)&&!isFunction(e)}function isIterateeCall(e,t,n){if(!isObject(n))return!1;var r=typeof t;return(r==`number`?isArrayLike(n)&&isIndex(t,n.length):r==`string`&&t in n)?eq(n[t],e):!1}function createAssigner(e){return baseRest(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&typeof a==`function`?(i--,a):void 0,o&&isIterateeCall(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,a)}return t})}var objectProto$1=Object.prototype;function isPrototype(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||objectProto$1)}function baseTimes(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var argsTag$2=`[object Arguments]`;function baseIsArguments(e){return isObjectLike(e)&&baseGetTag(e)==argsTag$2}var objectProto=Object.prototype,hasOwnProperty$8=objectProto.hasOwnProperty,propertyIsEnumerable$1=objectProto.propertyIsEnumerable,isArguments=baseIsArguments(function(){return arguments}())?baseIsArguments:function(e){return isObjectLike(e)&&hasOwnProperty$8.call(e,`callee`)&&!propertyIsEnumerable$1.call(e,`callee`)};function stubFalse(){return!1}var freeExports$1=typeof exports==`object`&&exports&&!exports.nodeType&&exports,freeModule$1=freeExports$1&&typeof module==`object`&&module&&!module.nodeType&&module,Buffer=freeModule$1&&freeModule$1.exports===freeExports$1?root.Buffer:void 0,isBuffer=(Buffer?Buffer.isBuffer:void 0)||stubFalse,argsTag$1=`[object Arguments]`,arrayTag$1=`[object Array]`,boolTag$1=`[object Boolean]`,dateTag$1=`[object Date]`,errorTag$1=`[object Error]`,funcTag=`[object Function]`,mapTag$2=`[object Map]`,numberTag$1=`[object Number]`,objectTag$2=`[object Object]`,regexpTag$2=`[object RegExp]`,setTag$2=`[object Set]`,stringTag$2=`[object String]`,weakMapTag$1=`[object WeakMap]`,arrayBufferTag$1=`[object ArrayBuffer]`,dataViewTag$2=`[object DataView]`,float32Tag=`[object Float32Array]`,float64Tag=`[object Float64Array]`,int8Tag=`[object Int8Array]`,int16Tag=`[object Int16Array]`,int32Tag=`[object Int32Array]`,uint8Tag=`[object Uint8Array]`,uint8ClampedTag=`[object Uint8ClampedArray]`,uint16Tag=`[object Uint16Array]`,uint32Tag=`[object Uint32Array]`,typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=!0,typedArrayTags[argsTag$1]=typedArrayTags[arrayTag$1]=typedArrayTags[arrayBufferTag$1]=typedArrayTags[boolTag$1]=typedArrayTags[dataViewTag$2]=typedArrayTags[dateTag$1]=typedArrayTags[errorTag$1]=typedArrayTags[funcTag]=typedArrayTags[mapTag$2]=typedArrayTags[numberTag$1]=typedArrayTags[objectTag$2]=typedArrayTags[regexpTag$2]=typedArrayTags[setTag$2]=typedArrayTags[stringTag$2]=typedArrayTags[weakMapTag$1]=!1;function baseIsTypedArray(e){return isObjectLike(e)&&isLength(e.length)&&!!typedArrayTags[baseGetTag(e)]}function baseUnary(e){return function(t){return e(t)}}var freeExports=typeof exports==`object`&&exports&&!exports.nodeType&&exports,freeModule=freeExports&&typeof module==`object`&&module&&!module.nodeType&&module,freeProcess=freeModule&&freeModule.exports===freeExports&&freeGlobal.process,nodeUtil=function(){try{return freeModule&&freeModule.require&&freeModule.require(`util`).types||freeProcess&&freeProcess.binding&&freeProcess.binding(`util`)}catch{}}(),nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray,isTypedArray=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray,hasOwnProperty$7=Object.prototype.hasOwnProperty;function arrayLikeKeys(e,t){var n=isArray(e),r=!n&&isArguments(e),i=!n&&!r&&isBuffer(e),a=!n&&!r&&!i&&isTypedArray(e),o=n||r||i||a,s=o?baseTimes(e.length,String):[],c=s.length;for(var l in e)(t||hasOwnProperty$7.call(e,l))&&!(o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||isIndex(l,c)))&&s.push(l);return s}function overArg(e,t){return function(n){return e(t(n))}}var nativeKeys=overArg(Object.keys,Object),hasOwnProperty$6=Object.prototype.hasOwnProperty;function baseKeys(e){if(!isPrototype(e))return nativeKeys(e);var t=[];for(var n in Object(e))hasOwnProperty$6.call(e,n)&&n!=`constructor`&&t.push(n);return t}function keys(e){return isArrayLike(e)?arrayLikeKeys(e):baseKeys(e)}var hasOwnProperty$5=Object.prototype.hasOwnProperty,assign=createAssigner(function(e,t){if(isPrototype(t)||isArrayLike(t)){copyObject(t,keys(t),e);return}for(var n in t)hasOwnProperty$5.call(t,n)&&assignValue(e,n,t[n])});function nativeKeysIn(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var hasOwnProperty$4=Object.prototype.hasOwnProperty;function baseKeysIn(e){if(!isObject(e))return nativeKeysIn(e);var t=isPrototype(e),n=[];for(var r in e)r==`constructor`&&(t||!hasOwnProperty$4.call(e,r))||n.push(r);return n}function keysIn(e){return isArrayLike(e)?arrayLikeKeys(e,!0):baseKeysIn(e)}var reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/;function isKey(e,t){if(isArray(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||isSymbol(e)?!0:reIsPlainProp.test(e)||!reIsDeepProp.test(e)||t!=null&&e in Object(t)}var nativeCreate=getNative(Object,`create`);function hashClear(){this.__data__=nativeCreate?nativeCreate(null):{},this.size=0}function hashDelete(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var HASH_UNDEFINED$2=`__lodash_hash_undefined__`,hasOwnProperty$3=Object.prototype.hasOwnProperty;function hashGet(e){var t=this.__data__;if(nativeCreate){var n=t[e];return n===HASH_UNDEFINED$2?void 0:n}return hasOwnProperty$3.call(t,e)?t[e]:void 0}var hasOwnProperty$2=Object.prototype.hasOwnProperty;function hashHas(e){var t=this.__data__;return nativeCreate?t[e]!==void 0:hasOwnProperty$2.call(t,e)}var HASH_UNDEFINED$1=`__lodash_hash_undefined__`;function hashSet(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=nativeCreate&&t===void 0?HASH_UNDEFINED$1:t,this}function Hash(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Hash.prototype.clear=hashClear,Hash.prototype.delete=hashDelete,Hash.prototype.get=hashGet,Hash.prototype.has=hashHas,Hash.prototype.set=hashSet;function listCacheClear(){this.__data__=[],this.size=0}function assocIndexOf(e,t){for(var n=e.length;n--;)if(eq(e[n][0],t))return n;return-1}var splice=Array.prototype.splice;function listCacheDelete(e){var t=this.__data__,n=assocIndexOf(t,e);return n<0?!1:(n==t.length-1?t.pop():splice.call(t,n,1),--this.size,!0)}function listCacheGet(e){var t=this.__data__,n=assocIndexOf(t,e);return n<0?void 0:t[n][1]}function listCacheHas(e){return assocIndexOf(this.__data__,e)>-1}function listCacheSet(e,t){var n=this.__data__,r=assocIndexOf(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function ListCache(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ListCache.prototype.clear=listCacheClear,ListCache.prototype.delete=listCacheDelete,ListCache.prototype.get=listCacheGet,ListCache.prototype.has=listCacheHas,ListCache.prototype.set=listCacheSet;var Map=getNative(root,`Map`);function mapCacheClear(){this.size=0,this.__data__={hash:new Hash,map:new(Map||ListCache),string:new Hash}}function isKeyable(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function getMapData(e,t){var n=e.__data__;return isKeyable(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function mapCacheDelete(e){var t=getMapData(this,e).delete(e);return this.size-=t?1:0,t}function mapCacheGet(e){return getMapData(this,e).get(e)}function mapCacheHas(e){return getMapData(this,e).has(e)}function mapCacheSet(e,t){var n=getMapData(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function MapCache(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}MapCache.prototype.clear=mapCacheClear,MapCache.prototype.delete=mapCacheDelete,MapCache.prototype.get=mapCacheGet,MapCache.prototype.has=mapCacheHas,MapCache.prototype.set=mapCacheSet;var FUNC_ERROR_TEXT=`Expected a function`;function memoize(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(FUNC_ERROR_TEXT);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(memoize.Cache||MapCache),n}memoize.Cache=MapCache;var MAX_MEMOIZE_SIZE=500;function memoizeCapped(e){var t=memoize(e,function(e){return n.size===MAX_MEMOIZE_SIZE&&n.clear(),e}),n=t.cache;return t}var rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reEscapeChar=/\\(\\)?/g,stringToPath=memoizeCapped(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(rePropName,function(e,n,r,i){t.push(r?i.replace(reEscapeChar,`$1`):n||e)}),t});function toString(e){return e==null?``:baseToString(e)}function castPath(e,t){return isArray(e)?e:isKey(e,t)?[e]:stringToPath(toString(e))}var INFINITY=1/0;function toKey(e){if(typeof e==`string`||isSymbol(e))return e;var t=e+``;return t==`0`&&1/e==-INFINITY?`-0`:t}function baseGet(e,t){t=castPath(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[toKey(t[n++])];return n&&n==r?e:void 0}function get(e,t,n){var r=e==null?void 0:baseGet(e,t);return r===void 0?n:r}function arrayPush(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var getPrototype=overArg(Object.getPrototypeOf,Object);function stackClear(){this.__data__=new ListCache,this.size=0}function stackDelete(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function stackGet(e){return this.__data__.get(e)}function stackHas(e){return this.__data__.has(e)}var LARGE_ARRAY_SIZE=200;function stackSet(e,t){var n=this.__data__;if(n instanceof ListCache){var r=n.__data__;if(!Map||r.length<LARGE_ARRAY_SIZE-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new MapCache(r)}return n.set(e,t),this.size=n.size,this}function Stack(e){this.size=(this.__data__=new ListCache(e)).size}Stack.prototype.clear=stackClear,Stack.prototype.delete=stackDelete,Stack.prototype.get=stackGet,Stack.prototype.has=stackHas,Stack.prototype.set=stackSet;function arrayFilter(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function stubArray(){return[]}var propertyIsEnumerable=Object.prototype.propertyIsEnumerable,nativeGetSymbols=Object.getOwnPropertySymbols,getSymbols=nativeGetSymbols?function(e){return e==null?[]:(e=Object(e),arrayFilter(nativeGetSymbols(e),function(t){return propertyIsEnumerable.call(e,t)}))}:stubArray,getSymbolsIn=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)arrayPush(t,getSymbols(e)),e=getPrototype(e);return t}:stubArray;function baseGetAllKeys(e,t,n){var r=t(e);return isArray(e)?r:arrayPush(r,n(e))}function getAllKeys(e){return baseGetAllKeys(e,keys,getSymbols)}function getAllKeysIn(e){return baseGetAllKeys(e,keysIn,getSymbolsIn)}var DataView=getNative(root,`DataView`),Promise$1=getNative(root,`Promise`),Set=getNative(root,`Set`),mapTag$1=`[object Map]`,objectTag$1=`[object Object]`,promiseTag=`[object Promise]`,setTag$1=`[object Set]`,weakMapTag=`[object WeakMap]`,dataViewTag$1=`[object DataView]`,dataViewCtorString=toSource(DataView),mapCtorString=toSource(Map),promiseCtorString=toSource(Promise$1),setCtorString=toSource(Set),weakMapCtorString=toSource(WeakMap),getTag=baseGetTag;(DataView&&getTag(new DataView(new ArrayBuffer(1)))!=dataViewTag$1||Map&&getTag(new Map)!=mapTag$1||Promise$1&&getTag(Promise$1.resolve())!=promiseTag||Set&&getTag(new Set)!=setTag$1||WeakMap&&getTag(new WeakMap)!=weakMapTag)&&(getTag=function(e){var t=baseGetTag(e),n=t==objectTag$1?e.constructor:void 0,r=n?toSource(n):``;if(r)switch(r){case dataViewCtorString:return dataViewTag$1;case mapCtorString:return mapTag$1;case promiseCtorString:return promiseTag;case setCtorString:return setTag$1;case weakMapCtorString:return weakMapTag}return t});var _getTag_default=getTag,Uint8Array=root.Uint8Array,HASH_UNDEFINED=`__lodash_hash_undefined__`;function setCacheAdd(e){return this.__data__.set(e,HASH_UNDEFINED),this}function setCacheHas(e){return this.__data__.has(e)}function SetCache(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new MapCache;++t<n;)this.add(e[t])}SetCache.prototype.add=SetCache.prototype.push=setCacheAdd,SetCache.prototype.has=setCacheHas;function arraySome(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function cacheHas(e,t){return e.has(t)}var COMPARE_PARTIAL_FLAG$5=1,COMPARE_UNORDERED_FLAG$3=2;function equalArrays(e,t,n,r,i,a){var o=n&COMPARE_PARTIAL_FLAG$5,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var l=a.get(e),u=a.get(t);if(l&&u)return l==t&&u==e;var d=-1,f=!0,p=n&COMPARE_UNORDERED_FLAG$3?new SetCache:void 0;for(a.set(e,t),a.set(t,e);++d<s;){var m=e[d],h=t[d];if(r)var g=o?r(h,m,d,t,e,a):r(m,h,d,e,t,a);if(g!==void 0){if(g)continue;f=!1;break}if(p){if(!arraySome(t,function(e,t){if(!cacheHas(p,t)&&(m===e||i(m,e,n,r,a)))return p.push(t)})){f=!1;break}}else if(!(m===h||i(m,h,n,r,a))){f=!1;break}}return a.delete(e),a.delete(t),f}function mapToArray(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function setToArray(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var COMPARE_PARTIAL_FLAG$4=1,COMPARE_UNORDERED_FLAG$2=2,boolTag=`[object Boolean]`,dateTag=`[object Date]`,errorTag=`[object Error]`,mapTag=`[object Map]`,numberTag=`[object Number]`,regexpTag$1=`[object RegExp]`,setTag=`[object Set]`,stringTag$1=`[object String]`,symbolTag=`[object Symbol]`,arrayBufferTag=`[object ArrayBuffer]`,dataViewTag=`[object DataView]`,symbolProto=Symbol?Symbol.prototype:void 0,symbolValueOf=symbolProto?symbolProto.valueOf:void 0;function equalByTag(e,t,n,r,i,a,o){switch(n){case dataViewTag:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case arrayBufferTag:return!(e.byteLength!=t.byteLength||!a(new Uint8Array(e),new Uint8Array(t)));case boolTag:case dateTag:case numberTag:return eq(+e,+t);case errorTag:return e.name==t.name&&e.message==t.message;case regexpTag$1:case stringTag$1:return e==t+``;case mapTag:var s=mapToArray;case setTag:var c=r&COMPARE_PARTIAL_FLAG$4;if(s||=setToArray,e.size!=t.size&&!c)return!1;var l=o.get(e);if(l)return l==t;r|=COMPARE_UNORDERED_FLAG$2,o.set(e,t);var u=equalArrays(s(e),s(t),r,i,a,o);return o.delete(e),u;case symbolTag:if(symbolValueOf)return symbolValueOf.call(e)==symbolValueOf.call(t)}return!1}var COMPARE_PARTIAL_FLAG$3=1,hasOwnProperty$1=Object.prototype.hasOwnProperty;function equalObjects(e,t,n,r,i,a){var o=n&COMPARE_PARTIAL_FLAG$3,s=getAllKeys(e),c=s.length;if(c!=getAllKeys(t).length&&!o)return!1;for(var l=c;l--;){var u=s[l];if(!(o?u in t:hasOwnProperty$1.call(t,u)))return!1}var d=a.get(e),f=a.get(t);if(d&&f)return d==t&&f==e;var p=!0;a.set(e,t),a.set(t,e);for(var m=o;++l<c;){u=s[l];var h=e[u],g=t[u];if(r)var _=o?r(g,h,u,t,e,a):r(h,g,u,e,t,a);if(!(_===void 0?h===g||i(h,g,n,r,a):_)){p=!1;break}m||=u==`constructor`}if(p&&!m){var v=e.constructor,y=t.constructor;v!=y&&`constructor`in e&&`constructor`in t&&!(typeof v==`function`&&v instanceof v&&typeof y==`function`&&y instanceof y)&&(p=!1)}return a.delete(e),a.delete(t),p}var COMPARE_PARTIAL_FLAG$2=1,argsTag=`[object Arguments]`,arrayTag=`[object Array]`,objectTag=`[object Object]`,hasOwnProperty=Object.prototype.hasOwnProperty;function baseIsEqualDeep(e,t,n,r,i,a){var o=isArray(e),s=isArray(t),c=o?arrayTag:_getTag_default(e),l=s?arrayTag:_getTag_default(t);c=c==argsTag?objectTag:c,l=l==argsTag?objectTag:l;var u=c==objectTag,d=l==objectTag,f=c==l;if(f&&isBuffer(e)){if(!isBuffer(t))return!1;o=!0,u=!1}if(f&&!u)return a||=new Stack,o||isTypedArray(e)?equalArrays(e,t,n,r,i,a):equalByTag(e,t,c,n,r,i,a);if(!(n&COMPARE_PARTIAL_FLAG$2)){var p=u&&hasOwnProperty.call(e,`__wrapped__`),m=d&&hasOwnProperty.call(t,`__wrapped__`);if(p||m){var h=p?e.value():e,g=m?t.value():t;return a||=new Stack,i(h,g,n,r,a)}}return f?(a||=new Stack,equalObjects(e,t,n,r,i,a)):!1}function baseIsEqual(e,t,n,r,i){return e===t?!0:e==null||t==null||!isObjectLike(e)&&!isObjectLike(t)?e!==e&&t!==t:baseIsEqualDeep(e,t,n,r,baseIsEqual,i)}var COMPARE_PARTIAL_FLAG$1=1,COMPARE_UNORDERED_FLAG$1=2;function baseIsMatch(e,t,n,r){var i=n.length,a=i,o=!r;if(e==null)return!a;for(e=Object(e);i--;){var s=n[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){s=n[i];var c=s[0],l=e[c],u=s[1];if(o&&s[2]){if(l===void 0&&!(c in e))return!1}else{var d=new Stack;if(r)var f=r(l,u,c,e,t,d);if(!(f===void 0?baseIsEqual(u,l,COMPARE_PARTIAL_FLAG$1|COMPARE_UNORDERED_FLAG$1,r,d):f))return!1}}return!0}function isStrictComparable(e){return e===e&&!isObject(e)}function getMatchData(e){for(var t=keys(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,isStrictComparable(i)]}return t}function matchesStrictComparable(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function baseMatches(e){var t=getMatchData(e);return t.length==1&&t[0][2]?matchesStrictComparable(t[0][0],t[0][1]):function(n){return n===e||baseIsMatch(n,e,t)}}function baseHasIn(e,t){return e!=null&&t in Object(e)}function hasPath(e,t,n){t=castPath(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=toKey(t[r]);if(!(a=e!=null&&n(e,o)))break;e=e[o]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&isLength(i)&&isIndex(o,i)&&(isArray(e)||isArguments(e)))}function hasIn(e,t){return e!=null&&hasPath(e,t,baseHasIn)}var COMPARE_PARTIAL_FLAG=1,COMPARE_UNORDERED_FLAG=2;function baseMatchesProperty(e,t){return isKey(e)&&isStrictComparable(t)?matchesStrictComparable(toKey(e),t):function(n){var r=get(n,e);return r===void 0&&r===t?hasIn(n,e):baseIsEqual(t,r,COMPARE_PARTIAL_FLAG|COMPARE_UNORDERED_FLAG)}}function baseProperty(e){return function(t){return t?.[e]}}function basePropertyDeep(e){return function(t){return baseGet(t,e)}}function property(e){return isKey(e)?baseProperty(toKey(e)):basePropertyDeep(e)}function baseIteratee(e){return typeof e==`function`?e:e==null?identity:typeof e==`object`?isArray(e)?baseMatchesProperty(e[0],e[1]):baseMatches(e):property(e)}function createBaseFor(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}var baseFor=createBaseFor();function baseForOwn(e,t){return e&&baseFor(e,t,keys)}function createBaseEach(e,t){return function(n,r){if(n==null)return n;if(!isArrayLike(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}var baseEach=createBaseEach(baseForOwn);function castFunction(e){return typeof e==`function`?e:identity}function forEach(e,t){return(isArray(e)?arrayEach:baseEach)(e,castFunction(t))}function arrayEvery(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function baseEvery(e,t){var n=!0;return baseEach(e,function(e,r,i){return n=!!t(e,r,i),n}),n}function every(e,t,n){var r=isArray(e)?arrayEvery:baseEvery;return n&&isIterateeCall(e,t,n)&&(t=void 0),r(e,baseIteratee(t,3))}function baseMap(e,t){var n=-1,r=isArrayLike(e)?Array(e.length):[];return baseEach(e,function(e,i,a){r[++n]=t(e,i,a)}),r}function map(e,t){return(isArray(e)?arrayMap:baseMap)(e,baseIteratee(t,3))}var stringTag=`[object String]`;function isString(e){return typeof e==`string`||!isArray(e)&&isObjectLike(e)&&baseGetTag(e)==stringTag}function baseValues(e,t){return arrayMap(t,function(t){return e[t]})}function values(e){return e==null?[]:baseValues(e,keys(e))}var nativeMax=Math.max;function includes(e,t,n,r){e=isArrayLike(e)?e:values(e),n=n&&!r?toInteger(n):0;var i=e.length;return n<0&&(n=nativeMax(i+n,0)),isString(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&baseIndexOf(e,t,n)>-1}var regexpTag=`[object RegExp]`;function baseIsRegExp(e){return isObjectLike(e)&&baseGetTag(e)==regexpTag}var nodeIsRegExp=nodeUtil&&nodeUtil.isRegExp,isRegExp=nodeIsRegExp?baseUnary(nodeIsRegExp):baseIsRegExp;function baseSet(e,t,n,r){if(!isObject(e))return e;t=castPath(t,e);for(var i=-1,a=t.length,o=a-1,s=e;s!=null&&++i<a;){var c=toKey(t[i]),l=n;if(c===`__proto__`||c===`constructor`||c===`prototype`)return e;if(i!=o){var u=s[c];l=r?r(u,c,s):void 0,l===void 0&&(l=isObject(u)?u:isIndex(t[i+1])?[]:{})}assignValue(s,c,l),s=s[c]}return e}function basePickBy(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=baseGet(e,o);n(s,o)&&baseSet(a,castPath(o,e),s)}return a}function pickBy(e,t){if(e==null)return{};var n=arrayMap(getAllKeysIn(e),function(e){return[e]});return t=baseIteratee(t),basePickBy(e,n,function(e,n){return t(e,n[0])})}function baseSome(e,t){var n;return baseEach(e,function(e,r,i){return n=t(e,r,i),!n}),!!n}function some(e,t,n){var r=isArray(e)?arraySome:baseSome;return n&&isIterateeCall(e,t,n)&&(t=void 0),r(e,baseIteratee(t,3))}function tokenLabel(e){return hasTokenLabel(e)?e.LABEL:e.name}function hasTokenLabel(e){return isString(e.LABEL)&&e.LABEL!==``}var AbstractProduction=class{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){this._definition=e}accept(e){e.visit(this),forEach(this.definition,t=>{t.accept(e)})}},NonTerminal=class extends AbstractProduction{constructor(e){super([]),this.idx=1,assign(this,pickBy(e,e=>e!==void 0))}set definition(e){}get definition(){return this.referencedRule===void 0?[]:this.referencedRule.definition}accept(e){e.visit(this)}},Rule=class extends AbstractProduction{constructor(e){super(e.definition),this.orgText=``,assign(this,pickBy(e,e=>e!==void 0))}},Alternative=class extends AbstractProduction{constructor(e){super(e.definition),this.ignoreAmbiguities=!1,assign(this,pickBy(e,e=>e!==void 0))}},Option=class extends AbstractProduction{constructor(e){super(e.definition),this.idx=1,assign(this,pickBy(e,e=>e!==void 0))}},RepetitionMandatory=class extends AbstractProduction{constructor(e){super(e.definition),this.idx=1,assign(this,pickBy(e,e=>e!==void 0))}},RepetitionMandatoryWithSeparator=class extends AbstractProduction{constructor(e){super(e.definition),this.idx=1,assign(this,pickBy(e,e=>e!==void 0))}},Repetition=class extends AbstractProduction{constructor(e){super(e.definition),this.idx=1,assign(this,pickBy(e,e=>e!==void 0))}},RepetitionWithSeparator=class extends AbstractProduction{constructor(e){super(e.definition),this.idx=1,assign(this,pickBy(e,e=>e!==void 0))}},Alternation=class extends AbstractProduction{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){super(e.definition),this.idx=1,this.ignoreAmbiguities=!1,this.hasPredicates=!1,assign(this,pickBy(e,e=>e!==void 0))}},Terminal=class{constructor(e){this.idx=1,assign(this,pickBy(e,e=>e!==void 0))}accept(e){e.visit(this)}};function serializeGrammar(e){return map(e,serializeProduction)}function serializeProduction(e){function t(e){return map(e,serializeProduction)}if(e instanceof NonTerminal){let t={type:`NonTerminal`,name:e.nonTerminalName,idx:e.idx};return isString(e.label)&&(t.label=e.label),t}else if(e instanceof Alternative)return{type:`Alternative`,definition:t(e.definition)};else if(e instanceof Option)return{type:`Option`,idx:e.idx,definition:t(e.definition)};else if(e instanceof RepetitionMandatory)return{type:`RepetitionMandatory`,idx:e.idx,definition:t(e.definition)};else if(e instanceof RepetitionMandatoryWithSeparator)return{type:`RepetitionMandatoryWithSeparator`,idx:e.idx,separator:serializeProduction(new Terminal({terminalType:e.separator})),definition:t(e.definition)};else if(e instanceof RepetitionWithSeparator)return{type:`RepetitionWithSeparator`,idx:e.idx,separator:serializeProduction(new Terminal({terminalType:e.separator})),definition:t(e.definition)};else if(e instanceof Repetition)return{type:`Repetition`,idx:e.idx,definition:t(e.definition)};else if(e instanceof Alternation)return{type:`Alternation`,idx:e.idx,definition:t(e.definition)};else if(e instanceof Terminal){let t={type:`Terminal`,name:e.terminalType.name,label:tokenLabel(e.terminalType),idx:e.idx};isString(e.label)&&(t.terminalLabel=e.label);let n=e.terminalType.PATTERN;return e.terminalType.PATTERN&&(t.pattern=isRegExp(n)?n.source:n),t}else if(e instanceof Rule)return{type:`Rule`,name:e.name,orgText:e.orgText,definition:t(e.definition)};else throw Error(`non exhaustive match`)}var GAstVisitor=class{visit(e){let t=e;switch(t.constructor){case NonTerminal:return this.visitNonTerminal(t);case Alternative:return this.visitAlternative(t);case Option:return this.visitOption(t);case RepetitionMandatory:return this.visitRepetitionMandatory(t);case RepetitionMandatoryWithSeparator:return this.visitRepetitionMandatoryWithSeparator(t);case RepetitionWithSeparator:return this.visitRepetitionWithSeparator(t);case Repetition:return this.visitRepetition(t);case Alternation:return this.visitAlternation(t);case Terminal:return this.visitTerminal(t);case Rule:return this.visitRule(t);default:throw Error(`non exhaustive match`)}}visitNonTerminal(e){}visitAlternative(e){}visitOption(e){}visitRepetition(e){}visitRepetitionMandatory(e){}visitRepetitionMandatoryWithSeparator(e){}visitRepetitionWithSeparator(e){}visitAlternation(e){}visitTerminal(e){}visitRule(e){}};function isSequenceProd(e){return e instanceof Alternative||e instanceof Option||e instanceof Repetition||e instanceof RepetitionMandatory||e instanceof RepetitionMandatoryWithSeparator||e instanceof RepetitionWithSeparator||e instanceof Terminal||e instanceof Rule}function isOptionalProd(e,t=[]){return e instanceof Option||e instanceof Repetition||e instanceof RepetitionWithSeparator?!0:e instanceof Alternation?some(e.definition,e=>isOptionalProd(e,t)):e instanceof NonTerminal&&includes(t,e)?!1:e instanceof AbstractProduction?(e instanceof NonTerminal&&t.push(e),every(e.definition,e=>isOptionalProd(e,t))):!1}function isBranchingProd(e){return e instanceof Alternation}function getProductionDslName(e){if(e instanceof NonTerminal)return`SUBRULE`;if(e instanceof Option)return`OPTION`;if(e instanceof Alternation)return`OR`;if(e instanceof RepetitionMandatory)return`AT_LEAST_ONE`;if(e instanceof RepetitionMandatoryWithSeparator)return`AT_LEAST_ONE_SEP`;if(e instanceof RepetitionWithSeparator)return`MANY_SEP`;if(e instanceof Repetition)return`MANY`;if(e instanceof Terminal)return`CONSUME`;throw Error(`non exhaustive match`)}export{isIterateeCall as $,cacheHas as A,Stack as B,map as C,baseIteratee as D,baseEach as E,getAllKeysIn as F,keys as G,arrayPush as H,getAllKeys as I,nodeUtil as J,baseKeys as K,getSymbolsIn as L,Uint8Array as M,_getTag_default as N,hasPath as O,Set as P,isPrototype as Q,getSymbols as R,isString as S,forEach as T,keysIn as U,getPrototype as V,assign as W,isBuffer as X,baseUnary as Y,isArguments as Z,some as _,Symbol as _t,GAstVisitor as a,baseAssignValue as at,includes as b,NonTerminal as c,arrayEach as ct,RepetitionMandatory as d,toInteger as dt,isArrayLike as et,RepetitionMandatoryWithSeparator as f,isObject as ft,serializeGrammar as g,isObjectLike as gt,Terminal as h,isSymbol as ht,isSequenceProd as i,eq as it,SetCache as j,setToArray as k,Option as l,isFunction as lt,Rule as m,arrayMap as mt,isBranchingProd as n,copyObject as nt,Alternation as o,baseIndexOf as ot,RepetitionWithSeparator as p,isArray as pt,isTypedArray as q,isOptionalProd as r,assignValue as rt,Alternative as s,baseFindIndex as st,getProductionDslName as t,baseRest as tt,Repetition as u,identity as ut,pickBy as v,root as vt,every as w,values as x,isRegExp as y,arrayFilter as z};