@tailor-cms/ce-table-server 0.1.0 → 2.0.1

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.
package/dist/index.cjs CHANGED
@@ -1,1681 +1,19 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // src/index.ts
20
- var index_exports = {};
21
- __export(index_exports, {
22
- afterLoaded: () => afterLoaded,
23
- afterRetrieve: () => afterRetrieve,
24
- afterSave: () => afterSave,
25
- beforeDisplay: () => beforeDisplay,
26
- beforeSave: () => beforeSave,
27
- default: () => index_default,
28
- hookMap: () => hookMap,
29
- initState: () => initState,
30
- onUserInteraction: () => onUserInteraction,
31
- type: () => type
1
+ Object.defineProperties(exports, {
2
+ __esModule: { value: true },
3
+ [Symbol.toStringTag]: { value: "Module" }
32
4
  });
33
- module.exports = __toCommonJS(index_exports);
34
-
35
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.js
36
- var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
37
- var freeGlobal_default = freeGlobal;
38
-
39
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.js
40
- var freeSelf = typeof self == "object" && self && self.Object === Object && self;
41
- var root = freeGlobal_default || freeSelf || Function("return this")();
42
- var root_default = root;
43
-
44
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.js
45
- var Symbol2 = root_default.Symbol;
46
- var Symbol_default = Symbol2;
47
-
48
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.js
49
- var objectProto = Object.prototype;
50
- var hasOwnProperty = objectProto.hasOwnProperty;
51
- var nativeObjectToString = objectProto.toString;
52
- var symToStringTag = Symbol_default ? Symbol_default.toStringTag : void 0;
53
- function getRawTag(value) {
54
- var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag];
55
- try {
56
- value[symToStringTag] = void 0;
57
- var unmasked = true;
58
- } catch (e) {
59
- }
60
- var result = nativeObjectToString.call(value);
61
- if (unmasked) {
62
- if (isOwn) {
63
- value[symToStringTag] = tag;
64
- } else {
65
- delete value[symToStringTag];
66
- }
67
- }
68
- return result;
69
- }
70
- var getRawTag_default = getRawTag;
71
-
72
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.js
73
- var objectProto2 = Object.prototype;
74
- var nativeObjectToString2 = objectProto2.toString;
75
- function objectToString(value) {
76
- return nativeObjectToString2.call(value);
77
- }
78
- var objectToString_default = objectToString;
79
-
80
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.js
81
- var nullTag = "[object Null]";
82
- var undefinedTag = "[object Undefined]";
83
- var symToStringTag2 = Symbol_default ? Symbol_default.toStringTag : void 0;
84
- function baseGetTag(value) {
85
- if (value == null) {
86
- return value === void 0 ? undefinedTag : nullTag;
87
- }
88
- return symToStringTag2 && symToStringTag2 in Object(value) ? getRawTag_default(value) : objectToString_default(value);
89
- }
90
- var baseGetTag_default = baseGetTag;
91
-
92
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObjectLike.js
93
- function isObjectLike(value) {
94
- return value != null && typeof value == "object";
95
- }
96
- var isObjectLike_default = isObjectLike;
97
-
98
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSymbol.js
99
- var symbolTag = "[object Symbol]";
100
- function isSymbol(value) {
101
- return typeof value == "symbol" || isObjectLike_default(value) && baseGetTag_default(value) == symbolTag;
102
- }
103
- var isSymbol_default = isSymbol;
104
-
105
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayMap.js
106
- function arrayMap(array, iteratee) {
107
- var index = -1, length = array == null ? 0 : array.length, result = Array(length);
108
- while (++index < length) {
109
- result[index] = iteratee(array[index], index, array);
110
- }
111
- return result;
112
- }
113
- var arrayMap_default = arrayMap;
114
-
115
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArray.js
116
- var isArray = Array.isArray;
117
- var isArray_default = isArray;
118
-
119
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseToString.js
120
- var INFINITY = 1 / 0;
121
- var symbolProto = Symbol_default ? Symbol_default.prototype : void 0;
122
- var symbolToString = symbolProto ? symbolProto.toString : void 0;
123
- function baseToString(value) {
124
- if (typeof value == "string") {
125
- return value;
126
- }
127
- if (isArray_default(value)) {
128
- return arrayMap_default(value, baseToString) + "";
129
- }
130
- if (isSymbol_default(value)) {
131
- return symbolToString ? symbolToString.call(value) : "";
132
- }
133
- var result = value + "";
134
- return result == "0" && 1 / value == -INFINITY ? "-0" : result;
135
- }
136
- var baseToString_default = baseToString;
137
-
138
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_trimmedEndIndex.js
139
- var reWhitespace = /\s/;
140
- function trimmedEndIndex(string) {
141
- var index = string.length;
142
- while (index-- && reWhitespace.test(string.charAt(index))) {
143
- }
144
- return index;
145
- }
146
- var trimmedEndIndex_default = trimmedEndIndex;
147
-
148
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseTrim.js
149
- var reTrimStart = /^\s+/;
150
- function baseTrim(string) {
151
- return string ? string.slice(0, trimmedEndIndex_default(string) + 1).replace(reTrimStart, "") : string;
152
- }
153
- var baseTrim_default = baseTrim;
154
-
155
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.js
156
- function isObject(value) {
157
- var type2 = typeof value;
158
- return value != null && (type2 == "object" || type2 == "function");
159
- }
160
- var isObject_default = isObject;
161
-
162
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toNumber.js
163
- var NAN = 0 / 0;
164
- var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
165
- var reIsBinary = /^0b[01]+$/i;
166
- var reIsOctal = /^0o[0-7]+$/i;
167
- var freeParseInt = parseInt;
168
- function toNumber(value) {
169
- if (typeof value == "number") {
170
- return value;
171
- }
172
- if (isSymbol_default(value)) {
173
- return NAN;
174
- }
175
- if (isObject_default(value)) {
176
- var other = typeof value.valueOf == "function" ? value.valueOf() : value;
177
- value = isObject_default(other) ? other + "" : other;
178
- }
179
- if (typeof value != "string") {
180
- return value === 0 ? value : +value;
181
- }
182
- value = baseTrim_default(value);
183
- var isBinary = reIsBinary.test(value);
184
- return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;
185
- }
186
- var toNumber_default = toNumber;
187
-
188
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toFinite.js
189
- var INFINITY2 = 1 / 0;
190
- var MAX_INTEGER = 17976931348623157e292;
191
- function toFinite(value) {
192
- if (!value) {
193
- return value === 0 ? value : 0;
194
- }
195
- value = toNumber_default(value);
196
- if (value === INFINITY2 || value === -INFINITY2) {
197
- var sign = value < 0 ? -1 : 1;
198
- return sign * MAX_INTEGER;
199
- }
200
- return value === value ? value : 0;
201
- }
202
- var toFinite_default = toFinite;
203
-
204
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toInteger.js
205
- function toInteger(value) {
206
- var result = toFinite_default(value), remainder = result % 1;
207
- return result === result ? remainder ? result - remainder : result : 0;
208
- }
209
- var toInteger_default = toInteger;
210
-
211
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/identity.js
212
- function identity(value) {
213
- return value;
214
- }
215
- var identity_default = identity;
216
-
217
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isFunction.js
218
- var asyncTag = "[object AsyncFunction]";
219
- var funcTag = "[object Function]";
220
- var genTag = "[object GeneratorFunction]";
221
- var proxyTag = "[object Proxy]";
222
- function isFunction(value) {
223
- if (!isObject_default(value)) {
224
- return false;
225
- }
226
- var tag = baseGetTag_default(value);
227
- return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
228
- }
229
- var isFunction_default = isFunction;
230
-
231
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_coreJsData.js
232
- var coreJsData = root_default["__core-js_shared__"];
233
- var coreJsData_default = coreJsData;
234
-
235
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isMasked.js
236
- var maskSrcKey = function() {
237
- var uid = /[^.]+$/.exec(coreJsData_default && coreJsData_default.keys && coreJsData_default.keys.IE_PROTO || "");
238
- return uid ? "Symbol(src)_1." + uid : "";
239
- }();
240
- function isMasked(func) {
241
- return !!maskSrcKey && maskSrcKey in func;
242
- }
243
- var isMasked_default = isMasked;
244
-
245
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toSource.js
246
- var funcProto = Function.prototype;
247
- var funcToString = funcProto.toString;
248
- function toSource(func) {
249
- if (func != null) {
250
- try {
251
- return funcToString.call(func);
252
- } catch (e) {
253
- }
254
- try {
255
- return func + "";
256
- } catch (e) {
257
- }
258
- }
259
- return "";
260
- }
261
- var toSource_default = toSource;
262
-
263
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNative.js
264
- var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
265
- var reIsHostCtor = /^\[object .+?Constructor\]$/;
266
- var funcProto2 = Function.prototype;
267
- var objectProto3 = Object.prototype;
268
- var funcToString2 = funcProto2.toString;
269
- var hasOwnProperty2 = objectProto3.hasOwnProperty;
270
- var reIsNative = RegExp(
271
- "^" + funcToString2.call(hasOwnProperty2).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
272
- );
273
- function baseIsNative(value) {
274
- if (!isObject_default(value) || isMasked_default(value)) {
275
- return false;
276
- }
277
- var pattern = isFunction_default(value) ? reIsNative : reIsHostCtor;
278
- return pattern.test(toSource_default(value));
279
- }
280
- var baseIsNative_default = baseIsNative;
281
-
282
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getValue.js
283
- function getValue(object, key) {
284
- return object == null ? void 0 : object[key];
285
- }
286
- var getValue_default = getValue;
287
-
288
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getNative.js
289
- function getNative(object, key) {
290
- var value = getValue_default(object, key);
291
- return baseIsNative_default(value) ? value : void 0;
292
- }
293
- var getNative_default = getNative;
294
-
295
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_WeakMap.js
296
- var WeakMap = getNative_default(root_default, "WeakMap");
297
- var WeakMap_default = WeakMap;
298
-
299
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseFindIndex.js
300
- function baseFindIndex(array, predicate, fromIndex, fromRight) {
301
- var length = array.length, index = fromIndex + (fromRight ? 1 : -1);
302
- while (fromRight ? index-- : ++index < length) {
303
- if (predicate(array[index], index, array)) {
304
- return index;
305
- }
306
- }
307
- return -1;
308
- }
309
- var baseFindIndex_default = baseFindIndex;
310
-
311
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isIndex.js
312
- var MAX_SAFE_INTEGER = 9007199254740991;
313
- var reIsUint = /^(?:0|[1-9]\d*)$/;
314
- function isIndex(value, length) {
315
- var type2 = typeof value;
316
- length = length == null ? MAX_SAFE_INTEGER : length;
317
- return !!length && (type2 == "number" || type2 != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
318
- }
319
- var isIndex_default = isIndex;
320
-
321
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/eq.js
322
- function eq(value, other) {
323
- return value === other || value !== value && other !== other;
324
- }
325
- var eq_default = eq;
326
-
327
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isLength.js
328
- var MAX_SAFE_INTEGER2 = 9007199254740991;
329
- function isLength(value) {
330
- return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER2;
331
- }
332
- var isLength_default = isLength;
333
-
334
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArrayLike.js
335
- function isArrayLike(value) {
336
- return value != null && isLength_default(value.length) && !isFunction_default(value);
337
- }
338
- var isArrayLike_default = isArrayLike;
339
-
340
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isPrototype.js
341
- var objectProto4 = Object.prototype;
342
- function isPrototype(value) {
343
- var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto4;
344
- return value === proto;
345
- }
346
- var isPrototype_default = isPrototype;
347
-
348
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseTimes.js
349
- function baseTimes(n, iteratee) {
350
- var index = -1, result = Array(n);
351
- while (++index < n) {
352
- result[index] = iteratee(index);
353
- }
354
- return result;
355
- }
356
- var baseTimes_default = baseTimes;
357
-
358
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsArguments.js
359
- var argsTag = "[object Arguments]";
360
- function baseIsArguments(value) {
361
- return isObjectLike_default(value) && baseGetTag_default(value) == argsTag;
362
- }
363
- var baseIsArguments_default = baseIsArguments;
364
-
365
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArguments.js
366
- var objectProto5 = Object.prototype;
367
- var hasOwnProperty3 = objectProto5.hasOwnProperty;
368
- var propertyIsEnumerable = objectProto5.propertyIsEnumerable;
369
- var isArguments = baseIsArguments_default(/* @__PURE__ */ function() {
370
- return arguments;
371
- }()) ? baseIsArguments_default : function(value) {
372
- return isObjectLike_default(value) && hasOwnProperty3.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
373
- };
374
- var isArguments_default = isArguments;
375
-
376
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/stubFalse.js
377
- function stubFalse() {
378
- return false;
379
- }
380
- var stubFalse_default = stubFalse;
381
-
382
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isBuffer.js
383
- var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
384
- var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
385
- var moduleExports = freeModule && freeModule.exports === freeExports;
386
- var Buffer2 = moduleExports ? root_default.Buffer : void 0;
387
- var nativeIsBuffer = Buffer2 ? Buffer2.isBuffer : void 0;
388
- var isBuffer = nativeIsBuffer || stubFalse_default;
389
- var isBuffer_default = isBuffer;
390
-
391
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsTypedArray.js
392
- var argsTag2 = "[object Arguments]";
393
- var arrayTag = "[object Array]";
394
- var boolTag = "[object Boolean]";
395
- var dateTag = "[object Date]";
396
- var errorTag = "[object Error]";
397
- var funcTag2 = "[object Function]";
398
- var mapTag = "[object Map]";
399
- var numberTag = "[object Number]";
400
- var objectTag = "[object Object]";
401
- var regexpTag = "[object RegExp]";
402
- var setTag = "[object Set]";
403
- var stringTag = "[object String]";
404
- var weakMapTag = "[object WeakMap]";
405
- var arrayBufferTag = "[object ArrayBuffer]";
406
- var dataViewTag = "[object DataView]";
407
- var float32Tag = "[object Float32Array]";
408
- var float64Tag = "[object Float64Array]";
409
- var int8Tag = "[object Int8Array]";
410
- var int16Tag = "[object Int16Array]";
411
- var int32Tag = "[object Int32Array]";
412
- var uint8Tag = "[object Uint8Array]";
413
- var uint8ClampedTag = "[object Uint8ClampedArray]";
414
- var uint16Tag = "[object Uint16Array]";
415
- var uint32Tag = "[object Uint32Array]";
416
- var typedArrayTags = {};
417
- typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;
418
- typedArrayTags[argsTag2] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag2] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false;
419
- function baseIsTypedArray(value) {
420
- return isObjectLike_default(value) && isLength_default(value.length) && !!typedArrayTags[baseGetTag_default(value)];
421
- }
422
- var baseIsTypedArray_default = baseIsTypedArray;
423
-
424
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseUnary.js
425
- function baseUnary(func) {
426
- return function(value) {
427
- return func(value);
428
- };
429
- }
430
- var baseUnary_default = baseUnary;
431
-
432
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nodeUtil.js
433
- var freeExports2 = typeof exports == "object" && exports && !exports.nodeType && exports;
434
- var freeModule2 = freeExports2 && typeof module == "object" && module && !module.nodeType && module;
435
- var moduleExports2 = freeModule2 && freeModule2.exports === freeExports2;
436
- var freeProcess = moduleExports2 && freeGlobal_default.process;
437
- var nodeUtil = function() {
438
- try {
439
- var types = freeModule2 && freeModule2.require && freeModule2.require("util").types;
440
- if (types) {
441
- return types;
442
- }
443
- return freeProcess && freeProcess.binding && freeProcess.binding("util");
444
- } catch (e) {
445
- }
446
- }();
447
- var nodeUtil_default = nodeUtil;
448
-
449
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isTypedArray.js
450
- var nodeIsTypedArray = nodeUtil_default && nodeUtil_default.isTypedArray;
451
- var isTypedArray = nodeIsTypedArray ? baseUnary_default(nodeIsTypedArray) : baseIsTypedArray_default;
452
- var isTypedArray_default = isTypedArray;
453
-
454
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayLikeKeys.js
455
- var objectProto6 = Object.prototype;
456
- var hasOwnProperty4 = objectProto6.hasOwnProperty;
457
- function arrayLikeKeys(value, inherited) {
458
- 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;
459
- for (var key in value) {
460
- if ((inherited || hasOwnProperty4.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
461
- (key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
462
- isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
463
- isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
464
- isIndex_default(key, length)))) {
465
- result.push(key);
466
- }
467
- }
468
- return result;
469
- }
470
- var arrayLikeKeys_default = arrayLikeKeys;
471
-
472
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_overArg.js
473
- function overArg(func, transform) {
474
- return function(arg) {
475
- return func(transform(arg));
476
- };
477
- }
478
- var overArg_default = overArg;
479
-
480
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeys.js
481
- var nativeKeys = overArg_default(Object.keys, Object);
482
- var nativeKeys_default = nativeKeys;
483
-
484
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseKeys.js
485
- var objectProto7 = Object.prototype;
486
- var hasOwnProperty5 = objectProto7.hasOwnProperty;
487
- function baseKeys(object) {
488
- if (!isPrototype_default(object)) {
489
- return nativeKeys_default(object);
490
- }
491
- var result = [];
492
- for (var key in Object(object)) {
493
- if (hasOwnProperty5.call(object, key) && key != "constructor") {
494
- result.push(key);
495
- }
496
- }
497
- return result;
498
- }
499
- var baseKeys_default = baseKeys;
500
-
501
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/keys.js
502
- function keys(object) {
503
- return isArrayLike_default(object) ? arrayLikeKeys_default(object) : baseKeys_default(object);
504
- }
505
- var keys_default = keys;
506
-
507
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKey.js
508
- var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/;
509
- var reIsPlainProp = /^\w*$/;
510
- function isKey(value, object) {
511
- if (isArray_default(value)) {
512
- return false;
513
- }
514
- var type2 = typeof value;
515
- if (type2 == "number" || type2 == "symbol" || type2 == "boolean" || value == null || isSymbol_default(value)) {
516
- return true;
517
- }
518
- return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object(object);
519
- }
520
- var isKey_default = isKey;
521
-
522
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeCreate.js
523
- var nativeCreate = getNative_default(Object, "create");
524
- var nativeCreate_default = nativeCreate;
525
-
526
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashClear.js
527
- function hashClear() {
528
- this.__data__ = nativeCreate_default ? nativeCreate_default(null) : {};
529
- this.size = 0;
530
- }
531
- var hashClear_default = hashClear;
532
-
533
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashDelete.js
534
- function hashDelete(key) {
535
- var result = this.has(key) && delete this.__data__[key];
536
- this.size -= result ? 1 : 0;
537
- return result;
538
- }
539
- var hashDelete_default = hashDelete;
540
-
541
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashGet.js
542
- var HASH_UNDEFINED = "__lodash_hash_undefined__";
543
- var objectProto8 = Object.prototype;
544
- var hasOwnProperty6 = objectProto8.hasOwnProperty;
545
- function hashGet(key) {
546
- var data = this.__data__;
547
- if (nativeCreate_default) {
548
- var result = data[key];
549
- return result === HASH_UNDEFINED ? void 0 : result;
550
- }
551
- return hasOwnProperty6.call(data, key) ? data[key] : void 0;
552
- }
553
- var hashGet_default = hashGet;
554
-
555
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashHas.js
556
- var objectProto9 = Object.prototype;
557
- var hasOwnProperty7 = objectProto9.hasOwnProperty;
558
- function hashHas(key) {
559
- var data = this.__data__;
560
- return nativeCreate_default ? data[key] !== void 0 : hasOwnProperty7.call(data, key);
561
- }
562
- var hashHas_default = hashHas;
563
-
564
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashSet.js
565
- var HASH_UNDEFINED2 = "__lodash_hash_undefined__";
566
- function hashSet(key, value) {
567
- var data = this.__data__;
568
- this.size += this.has(key) ? 0 : 1;
569
- data[key] = nativeCreate_default && value === void 0 ? HASH_UNDEFINED2 : value;
570
- return this;
571
- }
572
- var hashSet_default = hashSet;
573
-
574
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Hash.js
575
- function Hash(entries) {
576
- var index = -1, length = entries == null ? 0 : entries.length;
577
- this.clear();
578
- while (++index < length) {
579
- var entry = entries[index];
580
- this.set(entry[0], entry[1]);
581
- }
582
- }
583
- Hash.prototype.clear = hashClear_default;
584
- Hash.prototype["delete"] = hashDelete_default;
585
- Hash.prototype.get = hashGet_default;
586
- Hash.prototype.has = hashHas_default;
587
- Hash.prototype.set = hashSet_default;
588
- var Hash_default = Hash;
589
-
590
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheClear.js
591
- function listCacheClear() {
592
- this.__data__ = [];
593
- this.size = 0;
594
- }
595
- var listCacheClear_default = listCacheClear;
596
-
597
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assocIndexOf.js
598
- function assocIndexOf(array, key) {
599
- var length = array.length;
600
- while (length--) {
601
- if (eq_default(array[length][0], key)) {
602
- return length;
603
- }
604
- }
605
- return -1;
606
- }
607
- var assocIndexOf_default = assocIndexOf;
608
-
609
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheDelete.js
610
- var arrayProto = Array.prototype;
611
- var splice = arrayProto.splice;
612
- function listCacheDelete(key) {
613
- var data = this.__data__, index = assocIndexOf_default(data, key);
614
- if (index < 0) {
615
- return false;
616
- }
617
- var lastIndex = data.length - 1;
618
- if (index == lastIndex) {
619
- data.pop();
620
- } else {
621
- splice.call(data, index, 1);
622
- }
623
- --this.size;
624
- return true;
625
- }
626
- var listCacheDelete_default = listCacheDelete;
627
-
628
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheGet.js
629
- function listCacheGet(key) {
630
- var data = this.__data__, index = assocIndexOf_default(data, key);
631
- return index < 0 ? void 0 : data[index][1];
632
- }
633
- var listCacheGet_default = listCacheGet;
634
-
635
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheHas.js
636
- function listCacheHas(key) {
637
- return assocIndexOf_default(this.__data__, key) > -1;
638
- }
639
- var listCacheHas_default = listCacheHas;
640
-
641
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheSet.js
642
- function listCacheSet(key, value) {
643
- var data = this.__data__, index = assocIndexOf_default(data, key);
644
- if (index < 0) {
645
- ++this.size;
646
- data.push([key, value]);
647
- } else {
648
- data[index][1] = value;
649
- }
650
- return this;
651
- }
652
- var listCacheSet_default = listCacheSet;
653
-
654
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_ListCache.js
655
- function ListCache(entries) {
656
- var index = -1, length = entries == null ? 0 : entries.length;
657
- this.clear();
658
- while (++index < length) {
659
- var entry = entries[index];
660
- this.set(entry[0], entry[1]);
661
- }
662
- }
663
- ListCache.prototype.clear = listCacheClear_default;
664
- ListCache.prototype["delete"] = listCacheDelete_default;
665
- ListCache.prototype.get = listCacheGet_default;
666
- ListCache.prototype.has = listCacheHas_default;
667
- ListCache.prototype.set = listCacheSet_default;
668
- var ListCache_default = ListCache;
669
-
670
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Map.js
671
- var Map2 = getNative_default(root_default, "Map");
672
- var Map_default = Map2;
673
-
674
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheClear.js
675
- function mapCacheClear() {
676
- this.size = 0;
677
- this.__data__ = {
678
- "hash": new Hash_default(),
679
- "map": new (Map_default || ListCache_default)(),
680
- "string": new Hash_default()
681
- };
682
- }
683
- var mapCacheClear_default = mapCacheClear;
684
-
685
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKeyable.js
686
- function isKeyable(value) {
687
- var type2 = typeof value;
688
- return type2 == "string" || type2 == "number" || type2 == "symbol" || type2 == "boolean" ? value !== "__proto__" : value === null;
689
- }
690
- var isKeyable_default = isKeyable;
691
-
692
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getMapData.js
693
- function getMapData(map, key) {
694
- var data = map.__data__;
695
- return isKeyable_default(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
696
- }
697
- var getMapData_default = getMapData;
698
-
699
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheDelete.js
700
- function mapCacheDelete(key) {
701
- var result = getMapData_default(this, key)["delete"](key);
702
- this.size -= result ? 1 : 0;
703
- return result;
704
- }
705
- var mapCacheDelete_default = mapCacheDelete;
706
-
707
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheGet.js
708
- function mapCacheGet(key) {
709
- return getMapData_default(this, key).get(key);
710
- }
711
- var mapCacheGet_default = mapCacheGet;
712
-
713
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheHas.js
714
- function mapCacheHas(key) {
715
- return getMapData_default(this, key).has(key);
716
- }
717
- var mapCacheHas_default = mapCacheHas;
718
-
719
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheSet.js
720
- function mapCacheSet(key, value) {
721
- var data = getMapData_default(this, key), size = data.size;
722
- data.set(key, value);
723
- this.size += data.size == size ? 0 : 1;
724
- return this;
725
- }
726
- var mapCacheSet_default = mapCacheSet;
727
-
728
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_MapCache.js
729
- function MapCache(entries) {
730
- var index = -1, length = entries == null ? 0 : entries.length;
731
- this.clear();
732
- while (++index < length) {
733
- var entry = entries[index];
734
- this.set(entry[0], entry[1]);
735
- }
736
- }
737
- MapCache.prototype.clear = mapCacheClear_default;
738
- MapCache.prototype["delete"] = mapCacheDelete_default;
739
- MapCache.prototype.get = mapCacheGet_default;
740
- MapCache.prototype.has = mapCacheHas_default;
741
- MapCache.prototype.set = mapCacheSet_default;
742
- var MapCache_default = MapCache;
743
-
744
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/memoize.js
745
- var FUNC_ERROR_TEXT = "Expected a function";
746
- function memoize(func, resolver) {
747
- if (typeof func != "function" || resolver != null && typeof resolver != "function") {
748
- throw new TypeError(FUNC_ERROR_TEXT);
749
- }
750
- var memoized = function() {
751
- var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache;
752
- if (cache.has(key)) {
753
- return cache.get(key);
754
- }
755
- var result = func.apply(this, args);
756
- memoized.cache = cache.set(key, result) || cache;
757
- return result;
758
- };
759
- memoized.cache = new (memoize.Cache || MapCache_default)();
760
- return memoized;
761
- }
762
- memoize.Cache = MapCache_default;
763
- var memoize_default = memoize;
764
-
765
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_memoizeCapped.js
766
- var MAX_MEMOIZE_SIZE = 500;
767
- function memoizeCapped(func) {
768
- var result = memoize_default(func, function(key) {
769
- if (cache.size === MAX_MEMOIZE_SIZE) {
770
- cache.clear();
771
- }
772
- return key;
773
- });
774
- var cache = result.cache;
775
- return result;
776
- }
777
- var memoizeCapped_default = memoizeCapped;
778
-
779
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stringToPath.js
780
- var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
781
- var reEscapeChar = /\\(\\)?/g;
782
- var stringToPath = memoizeCapped_default(function(string) {
783
- var result = [];
784
- if (string.charCodeAt(0) === 46) {
785
- result.push("");
786
- }
787
- string.replace(rePropName, function(match, number, quote, subString) {
788
- result.push(quote ? subString.replace(reEscapeChar, "$1") : number || match);
789
- });
790
- return result;
791
- });
792
- var stringToPath_default = stringToPath;
793
-
794
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toString.js
795
- function toString(value) {
796
- return value == null ? "" : baseToString_default(value);
797
- }
798
- var toString_default = toString;
799
-
800
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_castPath.js
801
- function castPath(value, object) {
802
- if (isArray_default(value)) {
803
- return value;
804
- }
805
- return isKey_default(value, object) ? [value] : stringToPath_default(toString_default(value));
806
- }
807
- var castPath_default = castPath;
808
-
809
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toKey.js
810
- var INFINITY3 = 1 / 0;
811
- function toKey(value) {
812
- if (typeof value == "string" || isSymbol_default(value)) {
813
- return value;
814
- }
815
- var result = value + "";
816
- return result == "0" && 1 / value == -INFINITY3 ? "-0" : result;
817
- }
818
- var toKey_default = toKey;
819
-
820
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGet.js
821
- function baseGet(object, path) {
822
- path = castPath_default(path, object);
823
- var index = 0, length = path.length;
824
- while (object != null && index < length) {
825
- object = object[toKey_default(path[index++])];
826
- }
827
- return index && index == length ? object : void 0;
828
- }
829
- var baseGet_default = baseGet;
830
-
831
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/get.js
832
- function get(object, path, defaultValue) {
833
- var result = object == null ? void 0 : baseGet_default(object, path);
834
- return result === void 0 ? defaultValue : result;
835
- }
836
- var get_default = get;
837
-
838
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayPush.js
839
- function arrayPush(array, values) {
840
- var index = -1, length = values.length, offset = array.length;
841
- while (++index < length) {
842
- array[offset + index] = values[index];
843
- }
844
- return array;
845
- }
846
- var arrayPush_default = arrayPush;
847
-
848
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackClear.js
849
- function stackClear() {
850
- this.__data__ = new ListCache_default();
851
- this.size = 0;
852
- }
853
- var stackClear_default = stackClear;
854
-
855
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackDelete.js
856
- function stackDelete(key) {
857
- var data = this.__data__, result = data["delete"](key);
858
- this.size = data.size;
859
- return result;
860
- }
861
- var stackDelete_default = stackDelete;
862
-
863
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackGet.js
864
- function stackGet(key) {
865
- return this.__data__.get(key);
866
- }
867
- var stackGet_default = stackGet;
868
-
869
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackHas.js
870
- function stackHas(key) {
871
- return this.__data__.has(key);
872
- }
873
- var stackHas_default = stackHas;
874
-
875
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackSet.js
876
- var LARGE_ARRAY_SIZE = 200;
877
- function stackSet(key, value) {
878
- var data = this.__data__;
879
- if (data instanceof ListCache_default) {
880
- var pairs = data.__data__;
881
- if (!Map_default || pairs.length < LARGE_ARRAY_SIZE - 1) {
882
- pairs.push([key, value]);
883
- this.size = ++data.size;
884
- return this;
885
- }
886
- data = this.__data__ = new MapCache_default(pairs);
887
- }
888
- data.set(key, value);
889
- this.size = data.size;
890
- return this;
891
- }
892
- var stackSet_default = stackSet;
893
-
894
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Stack.js
895
- function Stack(entries) {
896
- var data = this.__data__ = new ListCache_default(entries);
897
- this.size = data.size;
898
- }
899
- Stack.prototype.clear = stackClear_default;
900
- Stack.prototype["delete"] = stackDelete_default;
901
- Stack.prototype.get = stackGet_default;
902
- Stack.prototype.has = stackHas_default;
903
- Stack.prototype.set = stackSet_default;
904
- var Stack_default = Stack;
905
-
906
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayFilter.js
907
- function arrayFilter(array, predicate) {
908
- var index = -1, length = array == null ? 0 : array.length, resIndex = 0, result = [];
909
- while (++index < length) {
910
- var value = array[index];
911
- if (predicate(value, index, array)) {
912
- result[resIndex++] = value;
913
- }
914
- }
915
- return result;
916
- }
917
- var arrayFilter_default = arrayFilter;
918
-
919
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/stubArray.js
920
- function stubArray() {
921
- return [];
922
- }
923
- var stubArray_default = stubArray;
924
-
925
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getSymbols.js
926
- var objectProto10 = Object.prototype;
927
- var propertyIsEnumerable2 = objectProto10.propertyIsEnumerable;
928
- var nativeGetSymbols = Object.getOwnPropertySymbols;
929
- var getSymbols = !nativeGetSymbols ? stubArray_default : function(object) {
930
- if (object == null) {
931
- return [];
932
- }
933
- object = Object(object);
934
- return arrayFilter_default(nativeGetSymbols(object), function(symbol) {
935
- return propertyIsEnumerable2.call(object, symbol);
936
- });
937
- };
938
- var getSymbols_default = getSymbols;
939
-
940
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetAllKeys.js
941
- function baseGetAllKeys(object, keysFunc, symbolsFunc) {
942
- var result = keysFunc(object);
943
- return isArray_default(object) ? result : arrayPush_default(result, symbolsFunc(object));
944
- }
945
- var baseGetAllKeys_default = baseGetAllKeys;
946
-
947
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getAllKeys.js
948
- function getAllKeys(object) {
949
- return baseGetAllKeys_default(object, keys_default, getSymbols_default);
950
- }
951
- var getAllKeys_default = getAllKeys;
952
-
953
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_DataView.js
954
- var DataView = getNative_default(root_default, "DataView");
955
- var DataView_default = DataView;
956
-
957
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Promise.js
958
- var Promise2 = getNative_default(root_default, "Promise");
959
- var Promise_default = Promise2;
960
-
961
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Set.js
962
- var Set = getNative_default(root_default, "Set");
963
- var Set_default = Set;
964
-
965
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getTag.js
966
- var mapTag2 = "[object Map]";
967
- var objectTag2 = "[object Object]";
968
- var promiseTag = "[object Promise]";
969
- var setTag2 = "[object Set]";
970
- var weakMapTag2 = "[object WeakMap]";
971
- var dataViewTag2 = "[object DataView]";
972
- var dataViewCtorString = toSource_default(DataView_default);
973
- var mapCtorString = toSource_default(Map_default);
974
- var promiseCtorString = toSource_default(Promise_default);
975
- var setCtorString = toSource_default(Set_default);
976
- var weakMapCtorString = toSource_default(WeakMap_default);
977
- var getTag = baseGetTag_default;
978
- if (DataView_default && getTag(new DataView_default(new ArrayBuffer(1))) != dataViewTag2 || Map_default && getTag(new Map_default()) != mapTag2 || Promise_default && getTag(Promise_default.resolve()) != promiseTag || Set_default && getTag(new Set_default()) != setTag2 || WeakMap_default && getTag(new WeakMap_default()) != weakMapTag2) {
979
- getTag = function(value) {
980
- var result = baseGetTag_default(value), Ctor = result == objectTag2 ? value.constructor : void 0, ctorString = Ctor ? toSource_default(Ctor) : "";
981
- if (ctorString) {
982
- switch (ctorString) {
983
- case dataViewCtorString:
984
- return dataViewTag2;
985
- case mapCtorString:
986
- return mapTag2;
987
- case promiseCtorString:
988
- return promiseTag;
989
- case setCtorString:
990
- return setTag2;
991
- case weakMapCtorString:
992
- return weakMapTag2;
993
- }
994
- }
995
- return result;
996
- };
997
- }
998
- var getTag_default = getTag;
999
-
1000
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Uint8Array.js
1001
- var Uint8Array2 = root_default.Uint8Array;
1002
- var Uint8Array_default = Uint8Array2;
1003
-
1004
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheAdd.js
1005
- var HASH_UNDEFINED3 = "__lodash_hash_undefined__";
1006
- function setCacheAdd(value) {
1007
- this.__data__.set(value, HASH_UNDEFINED3);
1008
- return this;
1009
- }
1010
- var setCacheAdd_default = setCacheAdd;
1011
-
1012
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheHas.js
1013
- function setCacheHas(value) {
1014
- return this.__data__.has(value);
1015
- }
1016
- var setCacheHas_default = setCacheHas;
1017
-
1018
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_SetCache.js
1019
- function SetCache(values) {
1020
- var index = -1, length = values == null ? 0 : values.length;
1021
- this.__data__ = new MapCache_default();
1022
- while (++index < length) {
1023
- this.add(values[index]);
1024
- }
1025
- }
1026
- SetCache.prototype.add = SetCache.prototype.push = setCacheAdd_default;
1027
- SetCache.prototype.has = setCacheHas_default;
1028
- var SetCache_default = SetCache;
1029
-
1030
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arraySome.js
1031
- function arraySome(array, predicate) {
1032
- var index = -1, length = array == null ? 0 : array.length;
1033
- while (++index < length) {
1034
- if (predicate(array[index], index, array)) {
1035
- return true;
1036
- }
1037
- }
1038
- return false;
1039
- }
1040
- var arraySome_default = arraySome;
1041
-
1042
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cacheHas.js
1043
- function cacheHas(cache, key) {
1044
- return cache.has(key);
1045
- }
1046
- var cacheHas_default = cacheHas;
1047
-
1048
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_equalArrays.js
1049
- var COMPARE_PARTIAL_FLAG = 1;
1050
- var COMPARE_UNORDERED_FLAG = 2;
1051
- function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
1052
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG, arrLength = array.length, othLength = other.length;
1053
- if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
1054
- return false;
1055
- }
1056
- var arrStacked = stack.get(array);
1057
- var othStacked = stack.get(other);
1058
- if (arrStacked && othStacked) {
1059
- return arrStacked == other && othStacked == array;
1060
- }
1061
- var index = -1, result = true, seen = bitmask & COMPARE_UNORDERED_FLAG ? new SetCache_default() : void 0;
1062
- stack.set(array, other);
1063
- stack.set(other, array);
1064
- while (++index < arrLength) {
1065
- var arrValue = array[index], othValue = other[index];
1066
- if (customizer) {
1067
- var compared = isPartial ? customizer(othValue, arrValue, index, other, array, stack) : customizer(arrValue, othValue, index, array, other, stack);
1068
- }
1069
- if (compared !== void 0) {
1070
- if (compared) {
1071
- continue;
1072
- }
1073
- result = false;
1074
- break;
1075
- }
1076
- if (seen) {
1077
- if (!arraySome_default(other, function(othValue2, othIndex) {
1078
- if (!cacheHas_default(seen, othIndex) && (arrValue === othValue2 || equalFunc(arrValue, othValue2, bitmask, customizer, stack))) {
1079
- return seen.push(othIndex);
1080
- }
1081
- })) {
1082
- result = false;
1083
- break;
1084
- }
1085
- } else if (!(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
1086
- result = false;
1087
- break;
1088
- }
1089
- }
1090
- stack["delete"](array);
1091
- stack["delete"](other);
1092
- return result;
1093
- }
1094
- var equalArrays_default = equalArrays;
1095
-
1096
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapToArray.js
1097
- function mapToArray(map) {
1098
- var index = -1, result = Array(map.size);
1099
- map.forEach(function(value, key) {
1100
- result[++index] = [key, value];
1101
- });
1102
- return result;
1103
- }
1104
- var mapToArray_default = mapToArray;
1105
-
1106
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setToArray.js
1107
- function setToArray(set) {
1108
- var index = -1, result = Array(set.size);
1109
- set.forEach(function(value) {
1110
- result[++index] = value;
1111
- });
1112
- return result;
1113
- }
1114
- var setToArray_default = setToArray;
1115
-
1116
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_equalByTag.js
1117
- var COMPARE_PARTIAL_FLAG2 = 1;
1118
- var COMPARE_UNORDERED_FLAG2 = 2;
1119
- var boolTag2 = "[object Boolean]";
1120
- var dateTag2 = "[object Date]";
1121
- var errorTag2 = "[object Error]";
1122
- var mapTag3 = "[object Map]";
1123
- var numberTag2 = "[object Number]";
1124
- var regexpTag2 = "[object RegExp]";
1125
- var setTag3 = "[object Set]";
1126
- var stringTag2 = "[object String]";
1127
- var symbolTag2 = "[object Symbol]";
1128
- var arrayBufferTag2 = "[object ArrayBuffer]";
1129
- var dataViewTag3 = "[object DataView]";
1130
- var symbolProto2 = Symbol_default ? Symbol_default.prototype : void 0;
1131
- var symbolValueOf = symbolProto2 ? symbolProto2.valueOf : void 0;
1132
- function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
1133
- switch (tag) {
1134
- case dataViewTag3:
1135
- if (object.byteLength != other.byteLength || object.byteOffset != other.byteOffset) {
1136
- return false;
1137
- }
1138
- object = object.buffer;
1139
- other = other.buffer;
1140
- case arrayBufferTag2:
1141
- if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array_default(object), new Uint8Array_default(other))) {
1142
- return false;
1143
- }
1144
- return true;
1145
- case boolTag2:
1146
- case dateTag2:
1147
- case numberTag2:
1148
- return eq_default(+object, +other);
1149
- case errorTag2:
1150
- return object.name == other.name && object.message == other.message;
1151
- case regexpTag2:
1152
- case stringTag2:
1153
- return object == other + "";
1154
- case mapTag3:
1155
- var convert = mapToArray_default;
1156
- case setTag3:
1157
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG2;
1158
- convert || (convert = setToArray_default);
1159
- if (object.size != other.size && !isPartial) {
1160
- return false;
1161
- }
1162
- var stacked = stack.get(object);
1163
- if (stacked) {
1164
- return stacked == other;
1165
- }
1166
- bitmask |= COMPARE_UNORDERED_FLAG2;
1167
- stack.set(object, other);
1168
- var result = equalArrays_default(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
1169
- stack["delete"](object);
1170
- return result;
1171
- case symbolTag2:
1172
- if (symbolValueOf) {
1173
- return symbolValueOf.call(object) == symbolValueOf.call(other);
1174
- }
1175
- }
1176
- return false;
1177
- }
1178
- var equalByTag_default = equalByTag;
1179
-
1180
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_equalObjects.js
1181
- var COMPARE_PARTIAL_FLAG3 = 1;
1182
- var objectProto11 = Object.prototype;
1183
- var hasOwnProperty8 = objectProto11.hasOwnProperty;
1184
- function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
1185
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG3, objProps = getAllKeys_default(object), objLength = objProps.length, othProps = getAllKeys_default(other), othLength = othProps.length;
1186
- if (objLength != othLength && !isPartial) {
1187
- return false;
1188
- }
1189
- var index = objLength;
1190
- while (index--) {
1191
- var key = objProps[index];
1192
- if (!(isPartial ? key in other : hasOwnProperty8.call(other, key))) {
1193
- return false;
1194
- }
1195
- }
1196
- var objStacked = stack.get(object);
1197
- var othStacked = stack.get(other);
1198
- if (objStacked && othStacked) {
1199
- return objStacked == other && othStacked == object;
1200
- }
1201
- var result = true;
1202
- stack.set(object, other);
1203
- stack.set(other, object);
1204
- var skipCtor = isPartial;
1205
- while (++index < objLength) {
1206
- key = objProps[index];
1207
- var objValue = object[key], othValue = other[key];
1208
- if (customizer) {
1209
- var compared = isPartial ? customizer(othValue, objValue, key, other, object, stack) : customizer(objValue, othValue, key, object, other, stack);
1210
- }
1211
- if (!(compared === void 0 ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) : compared)) {
1212
- result = false;
1213
- break;
1214
- }
1215
- skipCtor || (skipCtor = key == "constructor");
1216
- }
1217
- if (result && !skipCtor) {
1218
- var objCtor = object.constructor, othCtor = other.constructor;
1219
- if (objCtor != othCtor && ("constructor" in object && "constructor" in other) && !(typeof objCtor == "function" && objCtor instanceof objCtor && typeof othCtor == "function" && othCtor instanceof othCtor)) {
1220
- result = false;
1221
- }
1222
- }
1223
- stack["delete"](object);
1224
- stack["delete"](other);
1225
- return result;
1226
- }
1227
- var equalObjects_default = equalObjects;
1228
-
1229
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsEqualDeep.js
1230
- var COMPARE_PARTIAL_FLAG4 = 1;
1231
- var argsTag3 = "[object Arguments]";
1232
- var arrayTag2 = "[object Array]";
1233
- var objectTag3 = "[object Object]";
1234
- var objectProto12 = Object.prototype;
1235
- var hasOwnProperty9 = objectProto12.hasOwnProperty;
1236
- function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
1237
- var objIsArr = isArray_default(object), othIsArr = isArray_default(other), objTag = objIsArr ? arrayTag2 : getTag_default(object), othTag = othIsArr ? arrayTag2 : getTag_default(other);
1238
- objTag = objTag == argsTag3 ? objectTag3 : objTag;
1239
- othTag = othTag == argsTag3 ? objectTag3 : othTag;
1240
- var objIsObj = objTag == objectTag3, othIsObj = othTag == objectTag3, isSameTag = objTag == othTag;
1241
- if (isSameTag && isBuffer_default(object)) {
1242
- if (!isBuffer_default(other)) {
1243
- return false;
1244
- }
1245
- objIsArr = true;
1246
- objIsObj = false;
1247
- }
1248
- if (isSameTag && !objIsObj) {
1249
- stack || (stack = new Stack_default());
1250
- return objIsArr || isTypedArray_default(object) ? equalArrays_default(object, other, bitmask, customizer, equalFunc, stack) : equalByTag_default(object, other, objTag, bitmask, customizer, equalFunc, stack);
1251
- }
1252
- if (!(bitmask & COMPARE_PARTIAL_FLAG4)) {
1253
- var objIsWrapped = objIsObj && hasOwnProperty9.call(object, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty9.call(other, "__wrapped__");
1254
- if (objIsWrapped || othIsWrapped) {
1255
- var objUnwrapped = objIsWrapped ? object.value() : object, othUnwrapped = othIsWrapped ? other.value() : other;
1256
- stack || (stack = new Stack_default());
1257
- return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
1258
- }
1259
- }
1260
- if (!isSameTag) {
1261
- return false;
1262
- }
1263
- stack || (stack = new Stack_default());
1264
- return equalObjects_default(object, other, bitmask, customizer, equalFunc, stack);
1265
- }
1266
- var baseIsEqualDeep_default = baseIsEqualDeep;
1267
-
1268
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsEqual.js
1269
- function baseIsEqual(value, other, bitmask, customizer, stack) {
1270
- if (value === other) {
1271
- return true;
1272
- }
1273
- if (value == null || other == null || !isObjectLike_default(value) && !isObjectLike_default(other)) {
1274
- return value !== value && other !== other;
1275
- }
1276
- return baseIsEqualDeep_default(value, other, bitmask, customizer, baseIsEqual, stack);
1277
- }
1278
- var baseIsEqual_default = baseIsEqual;
1279
-
1280
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsMatch.js
1281
- var COMPARE_PARTIAL_FLAG5 = 1;
1282
- var COMPARE_UNORDERED_FLAG3 = 2;
1283
- function baseIsMatch(object, source, matchData, customizer) {
1284
- var index = matchData.length, length = index, noCustomizer = !customizer;
1285
- if (object == null) {
1286
- return !length;
1287
- }
1288
- object = Object(object);
1289
- while (index--) {
1290
- var data = matchData[index];
1291
- if (noCustomizer && data[2] ? data[1] !== object[data[0]] : !(data[0] in object)) {
1292
- return false;
1293
- }
1294
- }
1295
- while (++index < length) {
1296
- data = matchData[index];
1297
- var key = data[0], objValue = object[key], srcValue = data[1];
1298
- if (noCustomizer && data[2]) {
1299
- if (objValue === void 0 && !(key in object)) {
1300
- return false;
1301
- }
1302
- } else {
1303
- var stack = new Stack_default();
1304
- if (customizer) {
1305
- var result = customizer(objValue, srcValue, key, object, source, stack);
1306
- }
1307
- if (!(result === void 0 ? baseIsEqual_default(srcValue, objValue, COMPARE_PARTIAL_FLAG5 | COMPARE_UNORDERED_FLAG3, customizer, stack) : result)) {
1308
- return false;
1309
- }
1310
- }
1311
- }
1312
- return true;
1313
- }
1314
- var baseIsMatch_default = baseIsMatch;
1315
-
1316
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isStrictComparable.js
1317
- function isStrictComparable(value) {
1318
- return value === value && !isObject_default(value);
1319
- }
1320
- var isStrictComparable_default = isStrictComparable;
1321
-
1322
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getMatchData.js
1323
- function getMatchData(object) {
1324
- var result = keys_default(object), length = result.length;
1325
- while (length--) {
1326
- var key = result[length], value = object[key];
1327
- result[length] = [key, value, isStrictComparable_default(value)];
1328
- }
1329
- return result;
1330
- }
1331
- var getMatchData_default = getMatchData;
1332
-
1333
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_matchesStrictComparable.js
1334
- function matchesStrictComparable(key, srcValue) {
1335
- return function(object) {
1336
- if (object == null) {
1337
- return false;
1338
- }
1339
- return object[key] === srcValue && (srcValue !== void 0 || key in Object(object));
1340
- };
1341
- }
1342
- var matchesStrictComparable_default = matchesStrictComparable;
1343
-
1344
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMatches.js
1345
- function baseMatches(source) {
1346
- var matchData = getMatchData_default(source);
1347
- if (matchData.length == 1 && matchData[0][2]) {
1348
- return matchesStrictComparable_default(matchData[0][0], matchData[0][1]);
1349
- }
1350
- return function(object) {
1351
- return object === source || baseIsMatch_default(object, source, matchData);
1352
- };
1353
- }
1354
- var baseMatches_default = baseMatches;
1355
-
1356
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseHasIn.js
1357
- function baseHasIn(object, key) {
1358
- return object != null && key in Object(object);
1359
- }
1360
- var baseHasIn_default = baseHasIn;
1361
-
1362
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hasPath.js
1363
- function hasPath(object, path, hasFunc) {
1364
- path = castPath_default(path, object);
1365
- var index = -1, length = path.length, result = false;
1366
- while (++index < length) {
1367
- var key = toKey_default(path[index]);
1368
- if (!(result = object != null && hasFunc(object, key))) {
1369
- break;
1370
- }
1371
- object = object[key];
1372
- }
1373
- if (result || ++index != length) {
1374
- return result;
1375
- }
1376
- length = object == null ? 0 : object.length;
1377
- return !!length && isLength_default(length) && isIndex_default(key, length) && (isArray_default(object) || isArguments_default(object));
1378
- }
1379
- var hasPath_default = hasPath;
1380
-
1381
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/hasIn.js
1382
- function hasIn(object, path) {
1383
- return object != null && hasPath_default(object, path, baseHasIn_default);
1384
- }
1385
- var hasIn_default = hasIn;
1386
-
1387
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMatchesProperty.js
1388
- var COMPARE_PARTIAL_FLAG6 = 1;
1389
- var COMPARE_UNORDERED_FLAG4 = 2;
1390
- function baseMatchesProperty(path, srcValue) {
1391
- if (isKey_default(path) && isStrictComparable_default(srcValue)) {
1392
- return matchesStrictComparable_default(toKey_default(path), srcValue);
1393
- }
1394
- return function(object) {
1395
- var objValue = get_default(object, path);
1396
- return objValue === void 0 && objValue === srcValue ? hasIn_default(object, path) : baseIsEqual_default(srcValue, objValue, COMPARE_PARTIAL_FLAG6 | COMPARE_UNORDERED_FLAG4);
1397
- };
1398
- }
1399
- var baseMatchesProperty_default = baseMatchesProperty;
1400
-
1401
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseProperty.js
1402
- function baseProperty(key) {
1403
- return function(object) {
1404
- return object == null ? void 0 : object[key];
1405
- };
1406
- }
1407
- var baseProperty_default = baseProperty;
1408
-
1409
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_basePropertyDeep.js
1410
- function basePropertyDeep(path) {
1411
- return function(object) {
1412
- return baseGet_default(object, path);
1413
- };
1414
- }
1415
- var basePropertyDeep_default = basePropertyDeep;
1416
-
1417
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/property.js
1418
- function property(path) {
1419
- return isKey_default(path) ? baseProperty_default(toKey_default(path)) : basePropertyDeep_default(path);
1420
- }
1421
- var property_default = property;
1422
-
1423
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIteratee.js
1424
- function baseIteratee(value) {
1425
- if (typeof value == "function") {
1426
- return value;
1427
- }
1428
- if (value == null) {
1429
- return identity_default;
1430
- }
1431
- if (typeof value == "object") {
1432
- return isArray_default(value) ? baseMatchesProperty_default(value[0], value[1]) : baseMatches_default(value);
1433
- }
1434
- return property_default(value);
1435
- }
1436
- var baseIteratee_default = baseIteratee;
1437
-
1438
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_castFunction.js
1439
- function castFunction(value) {
1440
- return typeof value == "function" ? value : identity_default;
1441
- }
1442
- var castFunction_default = castFunction;
1443
-
1444
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createFind.js
1445
- function createFind(findIndexFunc) {
1446
- return function(collection, predicate, fromIndex) {
1447
- var iterable = Object(collection);
1448
- if (!isArrayLike_default(collection)) {
1449
- var iteratee = baseIteratee_default(predicate, 3);
1450
- collection = keys_default(collection);
1451
- predicate = function(key) {
1452
- return iteratee(iterable[key], key, iterable);
1453
- };
1454
- }
1455
- var index = findIndexFunc(collection, predicate, fromIndex);
1456
- return index > -1 ? iterable[iteratee ? collection[index] : index] : void 0;
1457
- };
1458
- }
1459
- var createFind_default = createFind;
1460
-
1461
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/findIndex.js
1462
- var nativeMax = Math.max;
1463
- function findIndex(array, predicate, fromIndex) {
1464
- var length = array == null ? 0 : array.length;
1465
- if (!length) {
1466
- return -1;
1467
- }
1468
- var index = fromIndex == null ? 0 : toInteger_default(fromIndex);
1469
- if (index < 0) {
1470
- index = nativeMax(length + index, 0);
1471
- }
1472
- return baseFindIndex_default(array, baseIteratee_default(predicate, 3), index);
1473
- }
1474
- var findIndex_default = findIndex;
1475
-
1476
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/find.js
1477
- var find = createFind_default(findIndex_default);
1478
- var find_default = find;
1479
-
1480
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/times.js
1481
- var MAX_SAFE_INTEGER3 = 9007199254740991;
1482
- var MAX_ARRAY_LENGTH = 4294967295;
1483
- var nativeMin = Math.min;
1484
- function times(n, iteratee) {
1485
- n = toInteger_default(n);
1486
- if (n < 1 || n > MAX_SAFE_INTEGER3) {
1487
- return [];
1488
- }
1489
- var index = MAX_ARRAY_LENGTH, length = nativeMin(n, MAX_ARRAY_LENGTH);
1490
- iteratee = castFunction_default(iteratee);
1491
- n -= MAX_ARRAY_LENGTH;
1492
- var result = baseTimes_default(length, iteratee);
1493
- while (++index < n) {
1494
- iteratee(index);
1495
- }
1496
- return result;
1497
- }
1498
- var times_default = times;
1499
-
1500
- // ../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/esm/stringify.js
1501
- var byteToHex = [];
1502
- for (let i = 0; i < 256; ++i) {
1503
- byteToHex.push((i + 256).toString(16).slice(1));
1504
- }
1505
- function unsafeStringify(arr, offset = 0) {
1506
- return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
1507
- }
1508
-
1509
- // ../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/esm/rng.js
1510
- var import_crypto = require("crypto");
1511
- var rnds8Pool = new Uint8Array(256);
1512
- var poolPtr = rnds8Pool.length;
1513
- function rng() {
1514
- if (poolPtr > rnds8Pool.length - 16) {
1515
- (0, import_crypto.randomFillSync)(rnds8Pool);
1516
- poolPtr = 0;
1517
- }
1518
- return rnds8Pool.slice(poolPtr, poolPtr += 16);
1519
- }
1520
-
1521
- // ../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/esm/native.js
1522
- var import_crypto2 = require("crypto");
1523
- var native_default = { randomUUID: import_crypto2.randomUUID };
1524
-
1525
- // ../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/esm/v4.js
1526
- function v4(options, buf, offset) {
1527
- var _a;
1528
- if (native_default.randomUUID && !buf && !options) {
1529
- return native_default.randomUUID();
1530
- }
1531
- options = options || {};
1532
- const rnds = options.random ?? ((_a = options.rng) == null ? void 0 : _a.call(options)) ?? rng();
1533
- if (rnds.length < 16) {
1534
- throw new Error("Random bytes length must be >= 16");
1535
- }
1536
- rnds[6] = rnds[6] & 15 | 64;
1537
- rnds[8] = rnds[8] & 63 | 128;
1538
- if (buf) {
1539
- offset = offset || 0;
1540
- if (offset < 0 || offset + 16 > buf.length) {
1541
- throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`);
1542
- }
1543
- for (let i = 0; i < 16; ++i) {
1544
- buf[offset + i] = rnds[i];
1545
- }
1546
- return buf;
1547
- }
1548
- return unsafeStringify(rnds);
1549
- }
1550
- var v4_default = v4;
1551
-
1552
- // ../manifest/dist/index.js
1553
- var __defProp2 = Object.defineProperty;
1554
- var __export2 = (target, all) => {
1555
- for (var name2 in all)
1556
- __defProp2(target, name2, { get: all[name2], enumerable: true });
5
+ let _tailor_cms_ce_table_manifest = require("@tailor-cms/ce-table-manifest");
6
+ //#region src/index.ts
7
+ const hookMap = /* @__PURE__ */ new Map();
8
+ const serverModule = {
9
+ type: _tailor_cms_ce_table_manifest.type,
10
+ initState: _tailor_cms_ce_table_manifest.initState,
11
+ hookMap,
12
+ ai: _tailor_cms_ce_table_manifest.ai
1557
13
  };
1558
- var utils_exports = {};
1559
- __export2(utils_exports, {
1560
- addCell: () => addCell,
1561
- addEmbed: () => addEmbed,
1562
- removeCell: () => removeCell,
1563
- removeEmbed: () => removeEmbed
1564
- });
1565
- function addCell(row, cell) {
1566
- if (!row.cells) row.cells = {};
1567
- row.cells[cell.id] = cell;
1568
- return cell;
1569
- }
1570
- function removeCell(row, predicate = {}) {
1571
- const cell = find_default(row.cells, predicate);
1572
- if (!cell) return;
1573
- delete row.cells[cell.id];
1574
- return cell;
1575
- }
1576
- function addEmbed(embeds, cellId, tableId) {
1577
- const embed = {
1578
- id: cellId,
1579
- type: "JODIT_HTML",
1580
- embedded: true,
1581
- data: { tableId, cellId }
1582
- };
1583
- embeds[cellId] = embed;
1584
- return embed;
1585
- }
1586
- function removeEmbed(embeds, predicate = {}) {
1587
- const embed = find_default(embeds, predicate);
1588
- if (!embed) return;
1589
- delete embeds[embed.id];
1590
- return embed;
1591
- }
1592
- var type = "TABLE";
1593
- var initState = () => {
1594
- const tableId = v4_default();
1595
- const embeds = {};
1596
- const rows = {};
1597
- times_default(2, (position) => {
1598
- const rowId = v4_default();
1599
- const row = { id: rowId, position, cells: {} };
1600
- rows[rowId] = row;
1601
- times_default(3, (position2) => {
1602
- const cellId = v4_default();
1603
- addCell(row, { id: cellId, position: position2, data: {} });
1604
- addEmbed(embeds, cellId, tableId);
1605
- });
1606
- });
1607
- return { tableId, embeds, rows };
1608
- };
1609
-
1610
- // src/index.ts
1611
- var IS_CEK = process.env.CEK_RUNTIME;
1612
- var USER_STATE = {};
1613
- function beforeSave(element, _services) {
1614
- return element;
1615
- }
1616
- function afterSave(element, _services) {
1617
- return element;
1618
- }
1619
- function afterLoaded(element, _services, _runtime) {
1620
- return element;
1621
- }
1622
- function afterRetrieve(element, _services, _runtime) {
1623
- return element;
1624
- }
1625
- function beforeDisplay(_element, context) {
1626
- return { ...context, ...USER_STATE };
1627
- }
1628
- function onUserInteraction(_element, context, payload) {
1629
- if (IS_CEK) {
1630
- USER_STATE.interactionTimestamp = (/* @__PURE__ */ new Date()).getTime();
1631
- context.contextTimestamp = USER_STATE.interactionTimestamp;
1632
- Object.assign(USER_STATE, payload);
1633
- }
1634
- return { updateDisplayState: true };
1635
- }
1636
- var hookMap = new Map(
1637
- Object.entries({
1638
- beforeSave,
1639
- afterSave,
1640
- afterLoaded,
1641
- afterRetrieve,
1642
- onUserInteraction,
1643
- beforeDisplay
1644
- })
1645
- );
1646
- var index_default = {
1647
- type,
1648
- hookMap,
1649
- initState,
1650
- beforeSave,
1651
- afterSave,
1652
- afterLoaded,
1653
- afterRetrieve,
1654
- onUserInteraction,
1655
- beforeDisplay
1656
- };
1657
- // Annotate the CommonJS export names for ESM import in node:
1658
- 0 && (module.exports = {
1659
- afterLoaded,
1660
- afterRetrieve,
1661
- afterSave,
1662
- beforeDisplay,
1663
- beforeSave,
1664
- hookMap,
1665
- initState,
1666
- onUserInteraction,
1667
- type
1668
- });
1669
- /*! Bundled license information:
1670
-
1671
- lodash-es/lodash.js:
1672
- (**
1673
- * @license
1674
- * Lodash (Custom Build) <https://lodash.com/>
1675
- * Build: `lodash modularize exports="es" -o ./`
1676
- * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
1677
- * Released under MIT license <https://lodash.com/license>
1678
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
1679
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
1680
- *)
1681
- */
14
+ //#endregion
15
+ exports.ai = _tailor_cms_ce_table_manifest.ai;
16
+ exports.default = serverModule;
17
+ exports.hookMap = hookMap;
18
+ exports.initState = _tailor_cms_ce_table_manifest.initState;
19
+ exports.type = _tailor_cms_ce_table_manifest.type;