@tailor-cms/ce-modal-edit 0.1.1 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Edit.vue.d.ts +4 -3
- package/dist/components/TopToolbar.vue.d.ts +2 -1
- package/dist/index.cjs +2216 -851
- package/dist/index.css +1 -1
- package/dist/index.js +2211 -852
- package/package.json +16 -10
package/dist/index.js
CHANGED
|
@@ -1,66 +1,70 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
for (let i = 0; i < 256; ++i)
|
|
5
|
-
byteToHex.push((i + 256).toString(16).slice(1));
|
|
6
|
-
}
|
|
1
|
+
import { computed, createBlock, createCommentVNode, createElementVNode, createTextVNode, createVNode, defineComponent, inject, openBlock, ref, resolveComponent, toDisplayString, unref, watch, withCtx } from "vue";
|
|
2
|
+
import './index.css';//#region ../../node_modules/.pnpm/uuid@14.0.0/node_modules/uuid/dist/stringify.js
|
|
3
|
+
var byteToHex = [];
|
|
4
|
+
for (let i = 0; i < 256; ++i) byteToHex.push((i + 256).toString(16).slice(1));
|
|
7
5
|
function unsafeStringify(arr, offset = 0) {
|
|
8
|
-
|
|
6
|
+
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();
|
|
9
7
|
}
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
//#endregion
|
|
9
|
+
//#region ../../node_modules/.pnpm/uuid@14.0.0/node_modules/uuid/dist/rng.js
|
|
10
|
+
var rnds8 = new Uint8Array(16);
|
|
12
11
|
function rng() {
|
|
13
|
-
|
|
14
|
-
if (typeof crypto === "undefined" || !crypto.getRandomValues) {
|
|
15
|
-
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
16
|
-
}
|
|
17
|
-
getRandomValues = crypto.getRandomValues.bind(crypto);
|
|
18
|
-
}
|
|
19
|
-
return getRandomValues(rnds8);
|
|
12
|
+
return crypto.getRandomValues(rnds8);
|
|
20
13
|
}
|
|
21
|
-
|
|
22
|
-
|
|
14
|
+
//#endregion
|
|
15
|
+
//#region ../../node_modules/.pnpm/uuid@14.0.0/node_modules/uuid/dist/v4.js
|
|
23
16
|
function v4(options, buf, offset) {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
17
|
+
if (!buf && !options && crypto.randomUUID) return crypto.randomUUID();
|
|
18
|
+
return _v4(options, buf, offset);
|
|
19
|
+
}
|
|
20
|
+
function _v4(options, buf, offset) {
|
|
21
|
+
options = options || {};
|
|
22
|
+
const rnds = options.random ?? options.rng?.() ?? rng();
|
|
23
|
+
if (rnds.length < 16) throw new Error("Random bytes length must be >= 16");
|
|
24
|
+
rnds[6] = rnds[6] & 15 | 64;
|
|
25
|
+
rnds[8] = rnds[8] & 63 | 128;
|
|
26
|
+
if (buf) {
|
|
27
|
+
offset = offset || 0;
|
|
28
|
+
if (offset < 0 || offset + 16 > buf.length) throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`);
|
|
29
|
+
for (let i = 0; i < 16; ++i) buf[offset + i] = rnds[i];
|
|
30
|
+
return buf;
|
|
31
|
+
}
|
|
32
|
+
return unsafeStringify(rnds);
|
|
33
|
+
}
|
|
34
|
+
//#endregion
|
|
35
|
+
//#region ../manifest/dist/index.mjs
|
|
36
36
|
var type = "MODAL";
|
|
37
37
|
var name = "Modal";
|
|
38
38
|
var initState = () => ({
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
title: null,
|
|
40
|
+
embeds: {}
|
|
41
41
|
});
|
|
42
|
-
var
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
42
|
+
var manifest$1 = {
|
|
43
|
+
type,
|
|
44
|
+
version: "1.0",
|
|
45
|
+
name,
|
|
46
|
+
ssr: false,
|
|
47
|
+
isComposite: true,
|
|
48
|
+
initState,
|
|
49
|
+
ui: {
|
|
50
|
+
icon: "mdi-window-restore",
|
|
51
|
+
forceFullWidth: false
|
|
52
|
+
},
|
|
53
|
+
ai: {
|
|
54
|
+
Schema: {
|
|
55
|
+
type: "json_schema",
|
|
56
|
+
name: "ce_modal",
|
|
57
|
+
schema: {
|
|
58
|
+
type: "object",
|
|
59
|
+
properties: {
|
|
60
|
+
title: { type: "string" },
|
|
61
|
+
content: { type: "string" }
|
|
62
|
+
},
|
|
63
|
+
required: ["title", "content"],
|
|
64
|
+
additionalProperties: false
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
getPrompt: () => `
|
|
64
68
|
Generate a modal content element as an object with the following
|
|
65
69
|
properties:
|
|
66
70
|
{
|
|
@@ -72,1014 +76,2369 @@ var ai = {
|
|
|
72
76
|
- 'content' is the text to be displayed in the modal. Create few
|
|
73
77
|
paragraphs about the topic.
|
|
74
78
|
`,
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
79
|
+
processResponse: (val) => {
|
|
80
|
+
const embedId = v4();
|
|
81
|
+
const embed = {
|
|
82
|
+
id: embedId,
|
|
83
|
+
data: { content: val.content },
|
|
84
|
+
embedded: true,
|
|
85
|
+
position: 1,
|
|
86
|
+
type: "TIPTAP_HTML"
|
|
87
|
+
};
|
|
88
|
+
return {
|
|
89
|
+
title: val.title,
|
|
90
|
+
embeds: { [embedId]: embed }
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
}
|
|
89
94
|
};
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
name,
|
|
94
|
-
ssr: false,
|
|
95
|
-
isComposite: true,
|
|
96
|
-
initState,
|
|
97
|
-
ui,
|
|
98
|
-
ai
|
|
99
|
-
};
|
|
100
|
-
var index_default = manifest$1;
|
|
95
|
+
//#endregion
|
|
96
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js
|
|
97
|
+
/** Detect free variable `global` from Node.js. */
|
|
101
98
|
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
|
99
|
+
//#endregion
|
|
100
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_root.js
|
|
101
|
+
/** Detect free variable `self`. */
|
|
102
102
|
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
103
|
+
/** Used as a reference to the global object. */
|
|
103
104
|
var root = freeGlobal || freeSelf || Function("return this")();
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
var
|
|
108
|
-
|
|
105
|
+
//#endregion
|
|
106
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js
|
|
107
|
+
/** Built-in value references. */
|
|
108
|
+
var Symbol = root.Symbol;
|
|
109
|
+
//#endregion
|
|
110
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.js
|
|
111
|
+
/** Used for built-in method references. */
|
|
112
|
+
var objectProto$3 = Object.prototype;
|
|
113
|
+
/** Used to check objects for own properties. */
|
|
114
|
+
var hasOwnProperty$10 = objectProto$3.hasOwnProperty;
|
|
115
|
+
/**
|
|
116
|
+
* Used to resolve the
|
|
117
|
+
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
118
|
+
* of values.
|
|
119
|
+
*/
|
|
120
|
+
var nativeObjectToString$1 = objectProto$3.toString;
|
|
121
|
+
/** Built-in value references. */
|
|
122
|
+
var symToStringTag$1 = Symbol ? Symbol.toStringTag : void 0;
|
|
123
|
+
/**
|
|
124
|
+
* A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
|
|
125
|
+
*
|
|
126
|
+
* @private
|
|
127
|
+
* @param {*} value The value to query.
|
|
128
|
+
* @returns {string} Returns the raw `toStringTag`.
|
|
129
|
+
*/
|
|
109
130
|
function getRawTag(value) {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
var nativeObjectToString =
|
|
131
|
+
var isOwn = hasOwnProperty$10.call(value, symToStringTag$1), tag = value[symToStringTag$1];
|
|
132
|
+
try {
|
|
133
|
+
value[symToStringTag$1] = void 0;
|
|
134
|
+
var unmasked = true;
|
|
135
|
+
} catch (e) {}
|
|
136
|
+
var result = nativeObjectToString$1.call(value);
|
|
137
|
+
if (unmasked) if (isOwn) value[symToStringTag$1] = tag;
|
|
138
|
+
else delete value[symToStringTag$1];
|
|
139
|
+
return result;
|
|
140
|
+
}
|
|
141
|
+
//#endregion
|
|
142
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js
|
|
143
|
+
/**
|
|
144
|
+
* Used to resolve the
|
|
145
|
+
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
146
|
+
* of values.
|
|
147
|
+
*/
|
|
148
|
+
var nativeObjectToString = Object.prototype.toString;
|
|
149
|
+
/**
|
|
150
|
+
* Converts `value` to a string using `Object.prototype.toString`.
|
|
151
|
+
*
|
|
152
|
+
* @private
|
|
153
|
+
* @param {*} value The value to convert.
|
|
154
|
+
* @returns {string} Returns the converted string.
|
|
155
|
+
*/
|
|
128
156
|
function objectToString(value) {
|
|
129
|
-
|
|
157
|
+
return nativeObjectToString.call(value);
|
|
130
158
|
}
|
|
159
|
+
//#endregion
|
|
160
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js
|
|
161
|
+
/** `Object#toString` result references. */
|
|
131
162
|
var nullTag = "[object Null]", undefinedTag = "[object Undefined]";
|
|
132
|
-
|
|
163
|
+
/** Built-in value references. */
|
|
164
|
+
var symToStringTag = Symbol ? Symbol.toStringTag : void 0;
|
|
165
|
+
/**
|
|
166
|
+
* The base implementation of `getTag` without fallbacks for buggy environments.
|
|
167
|
+
*
|
|
168
|
+
* @private
|
|
169
|
+
* @param {*} value The value to query.
|
|
170
|
+
* @returns {string} Returns the `toStringTag`.
|
|
171
|
+
*/
|
|
133
172
|
function baseGetTag(value) {
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
173
|
+
if (value == null) return value === void 0 ? undefinedTag : nullTag;
|
|
174
|
+
return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
|
|
175
|
+
}
|
|
176
|
+
//#endregion
|
|
177
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js
|
|
178
|
+
/**
|
|
179
|
+
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
180
|
+
* and has a `typeof` result of "object".
|
|
181
|
+
*
|
|
182
|
+
* @static
|
|
183
|
+
* @memberOf _
|
|
184
|
+
* @since 4.0.0
|
|
185
|
+
* @category Lang
|
|
186
|
+
* @param {*} value The value to check.
|
|
187
|
+
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
188
|
+
* @example
|
|
189
|
+
*
|
|
190
|
+
* _.isObjectLike({});
|
|
191
|
+
* // => true
|
|
192
|
+
*
|
|
193
|
+
* _.isObjectLike([1, 2, 3]);
|
|
194
|
+
* // => true
|
|
195
|
+
*
|
|
196
|
+
* _.isObjectLike(_.noop);
|
|
197
|
+
* // => false
|
|
198
|
+
*
|
|
199
|
+
* _.isObjectLike(null);
|
|
200
|
+
* // => false
|
|
201
|
+
*/
|
|
139
202
|
function isObjectLike(value) {
|
|
140
|
-
|
|
203
|
+
return value != null && typeof value == "object";
|
|
141
204
|
}
|
|
205
|
+
//#endregion
|
|
206
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js
|
|
207
|
+
/** `Object#toString` result references. */
|
|
142
208
|
var symbolTag$2 = "[object Symbol]";
|
|
209
|
+
/**
|
|
210
|
+
* Checks if `value` is classified as a `Symbol` primitive or object.
|
|
211
|
+
*
|
|
212
|
+
* @static
|
|
213
|
+
* @memberOf _
|
|
214
|
+
* @since 4.0.0
|
|
215
|
+
* @category Lang
|
|
216
|
+
* @param {*} value The value to check.
|
|
217
|
+
* @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
|
|
218
|
+
* @example
|
|
219
|
+
*
|
|
220
|
+
* _.isSymbol(Symbol.iterator);
|
|
221
|
+
* // => true
|
|
222
|
+
*
|
|
223
|
+
* _.isSymbol('abc');
|
|
224
|
+
* // => false
|
|
225
|
+
*/
|
|
143
226
|
function isSymbol(value) {
|
|
144
|
-
|
|
145
|
-
}
|
|
227
|
+
return typeof value == "symbol" || isObjectLike(value) && baseGetTag(value) == symbolTag$2;
|
|
228
|
+
}
|
|
229
|
+
//#endregion
|
|
230
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArray.js
|
|
231
|
+
/**
|
|
232
|
+
* Checks if `value` is classified as an `Array` object.
|
|
233
|
+
*
|
|
234
|
+
* @static
|
|
235
|
+
* @memberOf _
|
|
236
|
+
* @since 0.1.0
|
|
237
|
+
* @category Lang
|
|
238
|
+
* @param {*} value The value to check.
|
|
239
|
+
* @returns {boolean} Returns `true` if `value` is an array, else `false`.
|
|
240
|
+
* @example
|
|
241
|
+
*
|
|
242
|
+
* _.isArray([1, 2, 3]);
|
|
243
|
+
* // => true
|
|
244
|
+
*
|
|
245
|
+
* _.isArray(document.body.children);
|
|
246
|
+
* // => false
|
|
247
|
+
*
|
|
248
|
+
* _.isArray('abc');
|
|
249
|
+
* // => false
|
|
250
|
+
*
|
|
251
|
+
* _.isArray(_.noop);
|
|
252
|
+
* // => false
|
|
253
|
+
*/
|
|
146
254
|
var isArray = Array.isArray;
|
|
255
|
+
//#endregion
|
|
256
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_trimmedEndIndex.js
|
|
257
|
+
/** Used to match a single whitespace character. */
|
|
147
258
|
var reWhitespace = /\s/;
|
|
259
|
+
/**
|
|
260
|
+
* Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace
|
|
261
|
+
* character of `string`.
|
|
262
|
+
*
|
|
263
|
+
* @private
|
|
264
|
+
* @param {string} string The string to inspect.
|
|
265
|
+
* @returns {number} Returns the index of the last non-whitespace character.
|
|
266
|
+
*/
|
|
148
267
|
function trimmedEndIndex(string) {
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
return index;
|
|
268
|
+
var index = string.length;
|
|
269
|
+
while (index-- && reWhitespace.test(string.charAt(index)));
|
|
270
|
+
return index;
|
|
153
271
|
}
|
|
272
|
+
//#endregion
|
|
273
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseTrim.js
|
|
274
|
+
/** Used to match leading whitespace. */
|
|
154
275
|
var reTrimStart = /^\s+/;
|
|
276
|
+
/**
|
|
277
|
+
* The base implementation of `_.trim`.
|
|
278
|
+
*
|
|
279
|
+
* @private
|
|
280
|
+
* @param {string} string The string to trim.
|
|
281
|
+
* @returns {string} Returns the trimmed string.
|
|
282
|
+
*/
|
|
155
283
|
function baseTrim(string) {
|
|
156
|
-
|
|
157
|
-
}
|
|
284
|
+
return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string;
|
|
285
|
+
}
|
|
286
|
+
//#endregion
|
|
287
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isObject.js
|
|
288
|
+
/**
|
|
289
|
+
* Checks if `value` is the
|
|
290
|
+
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
|
|
291
|
+
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
|
292
|
+
*
|
|
293
|
+
* @static
|
|
294
|
+
* @memberOf _
|
|
295
|
+
* @since 0.1.0
|
|
296
|
+
* @category Lang
|
|
297
|
+
* @param {*} value The value to check.
|
|
298
|
+
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
|
299
|
+
* @example
|
|
300
|
+
*
|
|
301
|
+
* _.isObject({});
|
|
302
|
+
* // => true
|
|
303
|
+
*
|
|
304
|
+
* _.isObject([1, 2, 3]);
|
|
305
|
+
* // => true
|
|
306
|
+
*
|
|
307
|
+
* _.isObject(_.noop);
|
|
308
|
+
* // => true
|
|
309
|
+
*
|
|
310
|
+
* _.isObject(null);
|
|
311
|
+
* // => false
|
|
312
|
+
*/
|
|
158
313
|
function isObject(value) {
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
}
|
|
162
|
-
|
|
314
|
+
var type = typeof value;
|
|
315
|
+
return value != null && (type == "object" || type == "function");
|
|
316
|
+
}
|
|
317
|
+
//#endregion
|
|
318
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/toNumber.js
|
|
319
|
+
/** Used as references for various `Number` constants. */
|
|
320
|
+
var NAN = NaN;
|
|
321
|
+
/** Used to detect bad signed hexadecimal string values. */
|
|
163
322
|
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
|
323
|
+
/** Used to detect binary string values. */
|
|
164
324
|
var reIsBinary = /^0b[01]+$/i;
|
|
325
|
+
/** Used to detect octal string values. */
|
|
165
326
|
var reIsOctal = /^0o[0-7]+$/i;
|
|
327
|
+
/** Built-in method references without a dependency on `root`. */
|
|
166
328
|
var freeParseInt = parseInt;
|
|
329
|
+
/**
|
|
330
|
+
* Converts `value` to a number.
|
|
331
|
+
*
|
|
332
|
+
* @static
|
|
333
|
+
* @memberOf _
|
|
334
|
+
* @since 4.0.0
|
|
335
|
+
* @category Lang
|
|
336
|
+
* @param {*} value The value to process.
|
|
337
|
+
* @returns {number} Returns the number.
|
|
338
|
+
* @example
|
|
339
|
+
*
|
|
340
|
+
* _.toNumber(3.2);
|
|
341
|
+
* // => 3.2
|
|
342
|
+
*
|
|
343
|
+
* _.toNumber(Number.MIN_VALUE);
|
|
344
|
+
* // => 5e-324
|
|
345
|
+
*
|
|
346
|
+
* _.toNumber(Infinity);
|
|
347
|
+
* // => Infinity
|
|
348
|
+
*
|
|
349
|
+
* _.toNumber('3.2');
|
|
350
|
+
* // => 3.2
|
|
351
|
+
*/
|
|
167
352
|
function toNumber(value) {
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
var isBinary = reIsBinary.test(value);
|
|
183
|
-
return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;
|
|
184
|
-
}
|
|
353
|
+
if (typeof value == "number") return value;
|
|
354
|
+
if (isSymbol(value)) return NAN;
|
|
355
|
+
if (isObject(value)) {
|
|
356
|
+
var other = typeof value.valueOf == "function" ? value.valueOf() : value;
|
|
357
|
+
value = isObject(other) ? other + "" : other;
|
|
358
|
+
}
|
|
359
|
+
if (typeof value != "string") return value === 0 ? value : +value;
|
|
360
|
+
value = baseTrim(value);
|
|
361
|
+
var isBinary = reIsBinary.test(value);
|
|
362
|
+
return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;
|
|
363
|
+
}
|
|
364
|
+
//#endregion
|
|
365
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js
|
|
366
|
+
/** `Object#toString` result references. */
|
|
185
367
|
var asyncTag = "[object AsyncFunction]", funcTag$2 = "[object Function]", genTag$1 = "[object GeneratorFunction]", proxyTag = "[object Proxy]";
|
|
368
|
+
/**
|
|
369
|
+
* Checks if `value` is classified as a `Function` object.
|
|
370
|
+
*
|
|
371
|
+
* @static
|
|
372
|
+
* @memberOf _
|
|
373
|
+
* @since 0.1.0
|
|
374
|
+
* @category Lang
|
|
375
|
+
* @param {*} value The value to check.
|
|
376
|
+
* @returns {boolean} Returns `true` if `value` is a function, else `false`.
|
|
377
|
+
* @example
|
|
378
|
+
*
|
|
379
|
+
* _.isFunction(_);
|
|
380
|
+
* // => true
|
|
381
|
+
*
|
|
382
|
+
* _.isFunction(/abc/);
|
|
383
|
+
* // => false
|
|
384
|
+
*/
|
|
186
385
|
function isFunction(value) {
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
var tag = baseGetTag(value);
|
|
191
|
-
return tag == funcTag$2 || tag == genTag$1 || tag == asyncTag || tag == proxyTag;
|
|
386
|
+
if (!isObject(value)) return false;
|
|
387
|
+
var tag = baseGetTag(value);
|
|
388
|
+
return tag == funcTag$2 || tag == genTag$1 || tag == asyncTag || tag == proxyTag;
|
|
192
389
|
}
|
|
390
|
+
//#endregion
|
|
391
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.js
|
|
392
|
+
/** Used to detect overreaching core-js shims. */
|
|
193
393
|
var coreJsData = root["__core-js_shared__"];
|
|
394
|
+
//#endregion
|
|
395
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.js
|
|
396
|
+
/** Used to detect methods masquerading as native. */
|
|
194
397
|
var maskSrcKey = function() {
|
|
195
|
-
|
|
196
|
-
|
|
398
|
+
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
|
|
399
|
+
return uid ? "Symbol(src)_1." + uid : "";
|
|
197
400
|
}();
|
|
401
|
+
/**
|
|
402
|
+
* Checks if `func` has its source masked.
|
|
403
|
+
*
|
|
404
|
+
* @private
|
|
405
|
+
* @param {Function} func The function to check.
|
|
406
|
+
* @returns {boolean} Returns `true` if `func` is masked, else `false`.
|
|
407
|
+
*/
|
|
198
408
|
function isMasked(func) {
|
|
199
|
-
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
|
|
409
|
+
return !!maskSrcKey && maskSrcKey in func;
|
|
410
|
+
}
|
|
411
|
+
//#endregion
|
|
412
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js
|
|
413
|
+
/** Used to resolve the decompiled source of functions. */
|
|
414
|
+
var funcToString$1 = Function.prototype.toString;
|
|
415
|
+
/**
|
|
416
|
+
* Converts `func` to its source code.
|
|
417
|
+
*
|
|
418
|
+
* @private
|
|
419
|
+
* @param {Function} func The function to convert.
|
|
420
|
+
* @returns {string} Returns the source code.
|
|
421
|
+
*/
|
|
203
422
|
function toSource(func) {
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
423
|
+
if (func != null) {
|
|
424
|
+
try {
|
|
425
|
+
return funcToString$1.call(func);
|
|
426
|
+
} catch (e) {}
|
|
427
|
+
try {
|
|
428
|
+
return func + "";
|
|
429
|
+
} catch (e) {}
|
|
430
|
+
}
|
|
431
|
+
return "";
|
|
432
|
+
}
|
|
433
|
+
//#endregion
|
|
434
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js
|
|
435
|
+
/**
|
|
436
|
+
* Used to match `RegExp`
|
|
437
|
+
* [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
|
|
438
|
+
*/
|
|
216
439
|
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
440
|
+
/** Used to detect host constructors (Safari). */
|
|
217
441
|
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
218
|
-
|
|
442
|
+
/** Used for built-in method references. */
|
|
443
|
+
var funcProto = Function.prototype, objectProto$2 = Object.prototype;
|
|
444
|
+
/** Used to resolve the decompiled source of functions. */
|
|
219
445
|
var funcToString = funcProto.toString;
|
|
220
|
-
|
|
221
|
-
var
|
|
222
|
-
|
|
223
|
-
);
|
|
446
|
+
/** Used to check objects for own properties. */
|
|
447
|
+
var hasOwnProperty$9 = objectProto$2.hasOwnProperty;
|
|
448
|
+
/** Used to detect if a method is native. */
|
|
449
|
+
var reIsNative = RegExp("^" + funcToString.call(hasOwnProperty$9).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
|
|
450
|
+
/**
|
|
451
|
+
* The base implementation of `_.isNative` without bad shim checks.
|
|
452
|
+
*
|
|
453
|
+
* @private
|
|
454
|
+
* @param {*} value The value to check.
|
|
455
|
+
* @returns {boolean} Returns `true` if `value` is a native function,
|
|
456
|
+
* else `false`.
|
|
457
|
+
*/
|
|
224
458
|
function baseIsNative(value) {
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
459
|
+
if (!isObject(value) || isMasked(value)) return false;
|
|
460
|
+
return (isFunction(value) ? reIsNative : reIsHostCtor).test(toSource(value));
|
|
461
|
+
}
|
|
462
|
+
//#endregion
|
|
463
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js
|
|
464
|
+
/**
|
|
465
|
+
* Gets the value at `key` of `object`.
|
|
466
|
+
*
|
|
467
|
+
* @private
|
|
468
|
+
* @param {Object} [object] The object to query.
|
|
469
|
+
* @param {string} key The key of the property to get.
|
|
470
|
+
* @returns {*} Returns the property value.
|
|
471
|
+
*/
|
|
231
472
|
function getValue(object, key) {
|
|
232
|
-
|
|
233
|
-
}
|
|
473
|
+
return object == null ? void 0 : object[key];
|
|
474
|
+
}
|
|
475
|
+
//#endregion
|
|
476
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getNative.js
|
|
477
|
+
/**
|
|
478
|
+
* Gets the native function at `key` of `object`.
|
|
479
|
+
*
|
|
480
|
+
* @private
|
|
481
|
+
* @param {Object} object The object to query.
|
|
482
|
+
* @param {string} key The key of the method to get.
|
|
483
|
+
* @returns {*} Returns the function if it's native, else `undefined`.
|
|
484
|
+
*/
|
|
234
485
|
function getNative(object, key) {
|
|
235
|
-
|
|
236
|
-
|
|
486
|
+
var value = getValue(object, key);
|
|
487
|
+
return baseIsNative(value) ? value : void 0;
|
|
237
488
|
}
|
|
489
|
+
//#endregion
|
|
490
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_WeakMap.js
|
|
238
491
|
var WeakMap = getNative(root, "WeakMap");
|
|
492
|
+
//#endregion
|
|
493
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseCreate.js
|
|
494
|
+
/** Built-in value references. */
|
|
239
495
|
var objectCreate = Object.create;
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
496
|
+
/**
|
|
497
|
+
* The base implementation of `_.create` without support for assigning
|
|
498
|
+
* properties to the created object.
|
|
499
|
+
*
|
|
500
|
+
* @private
|
|
501
|
+
* @param {Object} proto The object to inherit from.
|
|
502
|
+
* @returns {Object} Returns the new object.
|
|
503
|
+
*/
|
|
504
|
+
var baseCreate = function() {
|
|
505
|
+
function object() {}
|
|
506
|
+
return function(proto) {
|
|
507
|
+
if (!isObject(proto)) return {};
|
|
508
|
+
if (objectCreate) return objectCreate(proto);
|
|
509
|
+
object.prototype = proto;
|
|
510
|
+
var result = new object();
|
|
511
|
+
object.prototype = void 0;
|
|
512
|
+
return result;
|
|
513
|
+
};
|
|
255
514
|
}();
|
|
515
|
+
//#endregion
|
|
516
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copyArray.js
|
|
517
|
+
/**
|
|
518
|
+
* Copies the values of `source` to `array`.
|
|
519
|
+
*
|
|
520
|
+
* @private
|
|
521
|
+
* @param {Array} source The array to copy values from.
|
|
522
|
+
* @param {Array} [array=[]] The array to copy values to.
|
|
523
|
+
* @returns {Array} Returns `array`.
|
|
524
|
+
*/
|
|
525
|
+
function copyArray(source, array) {
|
|
526
|
+
var index = -1, length = source.length;
|
|
527
|
+
array || (array = Array(length));
|
|
528
|
+
while (++index < length) array[index] = source[index];
|
|
529
|
+
return array;
|
|
530
|
+
}
|
|
531
|
+
//#endregion
|
|
532
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.js
|
|
256
533
|
var defineProperty = function() {
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
}
|
|
534
|
+
try {
|
|
535
|
+
var func = getNative(Object, "defineProperty");
|
|
536
|
+
func({}, "", {});
|
|
537
|
+
return func;
|
|
538
|
+
} catch (e) {}
|
|
263
539
|
}();
|
|
540
|
+
//#endregion
|
|
541
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayEach.js
|
|
542
|
+
/**
|
|
543
|
+
* A specialized version of `_.forEach` for arrays without support for
|
|
544
|
+
* iteratee shorthands.
|
|
545
|
+
*
|
|
546
|
+
* @private
|
|
547
|
+
* @param {Array} [array] The array to iterate over.
|
|
548
|
+
* @param {Function} iteratee The function invoked per iteration.
|
|
549
|
+
* @returns {Array} Returns `array`.
|
|
550
|
+
*/
|
|
264
551
|
function arrayEach(array, iteratee) {
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
break;
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
return array;
|
|
552
|
+
var index = -1, length = array == null ? 0 : array.length;
|
|
553
|
+
while (++index < length) if (iteratee(array[index], index, array) === false) break;
|
|
554
|
+
return array;
|
|
272
555
|
}
|
|
556
|
+
//#endregion
|
|
557
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isIndex.js
|
|
558
|
+
/** Used as references for various `Number` constants. */
|
|
273
559
|
var MAX_SAFE_INTEGER$1 = 9007199254740991;
|
|
560
|
+
/** Used to detect unsigned integer values. */
|
|
274
561
|
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
562
|
+
/**
|
|
563
|
+
* Checks if `value` is a valid array-like index.
|
|
564
|
+
*
|
|
565
|
+
* @private
|
|
566
|
+
* @param {*} value The value to check.
|
|
567
|
+
* @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
|
|
568
|
+
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
|
|
569
|
+
*/
|
|
275
570
|
function isIndex(value, length) {
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
}
|
|
571
|
+
var type = typeof value;
|
|
572
|
+
length = length == null ? MAX_SAFE_INTEGER$1 : length;
|
|
573
|
+
return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && value > -1 && value % 1 == 0 && value < length;
|
|
574
|
+
}
|
|
575
|
+
//#endregion
|
|
576
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignValue.js
|
|
577
|
+
/**
|
|
578
|
+
* The base implementation of `assignValue` and `assignMergeValue` without
|
|
579
|
+
* value checks.
|
|
580
|
+
*
|
|
581
|
+
* @private
|
|
582
|
+
* @param {Object} object The object to modify.
|
|
583
|
+
* @param {string} key The key of the property to assign.
|
|
584
|
+
* @param {*} value The value to assign.
|
|
585
|
+
*/
|
|
280
586
|
function baseAssignValue(object, key, value) {
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
587
|
+
if (key == "__proto__" && defineProperty) defineProperty(object, key, {
|
|
588
|
+
"configurable": true,
|
|
589
|
+
"enumerable": true,
|
|
590
|
+
"value": value,
|
|
591
|
+
"writable": true
|
|
592
|
+
});
|
|
593
|
+
else object[key] = value;
|
|
594
|
+
}
|
|
595
|
+
//#endregion
|
|
596
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/eq.js
|
|
597
|
+
/**
|
|
598
|
+
* Performs a
|
|
599
|
+
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
600
|
+
* comparison between two values to determine if they are equivalent.
|
|
601
|
+
*
|
|
602
|
+
* @static
|
|
603
|
+
* @memberOf _
|
|
604
|
+
* @since 4.0.0
|
|
605
|
+
* @category Lang
|
|
606
|
+
* @param {*} value The value to compare.
|
|
607
|
+
* @param {*} other The other value to compare.
|
|
608
|
+
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
|
|
609
|
+
* @example
|
|
610
|
+
*
|
|
611
|
+
* var object = { 'a': 1 };
|
|
612
|
+
* var other = { 'a': 1 };
|
|
613
|
+
*
|
|
614
|
+
* _.eq(object, object);
|
|
615
|
+
* // => true
|
|
616
|
+
*
|
|
617
|
+
* _.eq(object, other);
|
|
618
|
+
* // => false
|
|
619
|
+
*
|
|
620
|
+
* _.eq('a', 'a');
|
|
621
|
+
* // => true
|
|
622
|
+
*
|
|
623
|
+
* _.eq('a', Object('a'));
|
|
624
|
+
* // => false
|
|
625
|
+
*
|
|
626
|
+
* _.eq(NaN, NaN);
|
|
627
|
+
* // => true
|
|
628
|
+
*/
|
|
292
629
|
function eq(value, other) {
|
|
293
|
-
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
|
|
630
|
+
return value === other || value !== value && other !== other;
|
|
631
|
+
}
|
|
632
|
+
//#endregion
|
|
633
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_assignValue.js
|
|
634
|
+
/** Used to check objects for own properties. */
|
|
635
|
+
var hasOwnProperty$8 = Object.prototype.hasOwnProperty;
|
|
636
|
+
/**
|
|
637
|
+
* Assigns `value` to `key` of `object` if the existing value is not equivalent
|
|
638
|
+
* using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
639
|
+
* for equality comparisons.
|
|
640
|
+
*
|
|
641
|
+
* @private
|
|
642
|
+
* @param {Object} object The object to modify.
|
|
643
|
+
* @param {string} key The key of the property to assign.
|
|
644
|
+
* @param {*} value The value to assign.
|
|
645
|
+
*/
|
|
297
646
|
function assignValue(object, key, value) {
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
647
|
+
var objValue = object[key];
|
|
648
|
+
if (!(hasOwnProperty$8.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) baseAssignValue(object, key, value);
|
|
649
|
+
}
|
|
650
|
+
//#endregion
|
|
651
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copyObject.js
|
|
652
|
+
/**
|
|
653
|
+
* Copies properties of `source` to `object`.
|
|
654
|
+
*
|
|
655
|
+
* @private
|
|
656
|
+
* @param {Object} source The object to copy properties from.
|
|
657
|
+
* @param {Array} props The property identifiers to copy.
|
|
658
|
+
* @param {Object} [object={}] The object to copy properties to.
|
|
659
|
+
* @param {Function} [customizer] The function to customize copied values.
|
|
660
|
+
* @returns {Object} Returns `object`.
|
|
661
|
+
*/
|
|
662
|
+
function copyObject(source, props, object, customizer) {
|
|
663
|
+
var isNew = !object;
|
|
664
|
+
object || (object = {});
|
|
665
|
+
var index = -1, length = props.length;
|
|
666
|
+
while (++index < length) {
|
|
667
|
+
var key = props[index];
|
|
668
|
+
var newValue = customizer ? customizer(object[key], source[key], key, object, source) : void 0;
|
|
669
|
+
if (newValue === void 0) newValue = source[key];
|
|
670
|
+
if (isNew) baseAssignValue(object, key, newValue);
|
|
671
|
+
else assignValue(object, key, newValue);
|
|
672
|
+
}
|
|
673
|
+
return object;
|
|
674
|
+
}
|
|
675
|
+
//#endregion
|
|
676
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isLength.js
|
|
677
|
+
/** Used as references for various `Number` constants. */
|
|
303
678
|
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
679
|
+
/**
|
|
680
|
+
* Checks if `value` is a valid array-like length.
|
|
681
|
+
*
|
|
682
|
+
* **Note:** This method is loosely based on
|
|
683
|
+
* [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
|
|
684
|
+
*
|
|
685
|
+
* @static
|
|
686
|
+
* @memberOf _
|
|
687
|
+
* @since 4.0.0
|
|
688
|
+
* @category Lang
|
|
689
|
+
* @param {*} value The value to check.
|
|
690
|
+
* @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
|
|
691
|
+
* @example
|
|
692
|
+
*
|
|
693
|
+
* _.isLength(3);
|
|
694
|
+
* // => true
|
|
695
|
+
*
|
|
696
|
+
* _.isLength(Number.MIN_VALUE);
|
|
697
|
+
* // => false
|
|
698
|
+
*
|
|
699
|
+
* _.isLength(Infinity);
|
|
700
|
+
* // => false
|
|
701
|
+
*
|
|
702
|
+
* _.isLength('3');
|
|
703
|
+
* // => false
|
|
704
|
+
*/
|
|
304
705
|
function isLength(value) {
|
|
305
|
-
|
|
306
|
-
}
|
|
706
|
+
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
707
|
+
}
|
|
708
|
+
//#endregion
|
|
709
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js
|
|
710
|
+
/**
|
|
711
|
+
* Checks if `value` is array-like. A value is considered array-like if it's
|
|
712
|
+
* not a function and has a `value.length` that's an integer greater than or
|
|
713
|
+
* equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
|
|
714
|
+
*
|
|
715
|
+
* @static
|
|
716
|
+
* @memberOf _
|
|
717
|
+
* @since 4.0.0
|
|
718
|
+
* @category Lang
|
|
719
|
+
* @param {*} value The value to check.
|
|
720
|
+
* @returns {boolean} Returns `true` if `value` is array-like, else `false`.
|
|
721
|
+
* @example
|
|
722
|
+
*
|
|
723
|
+
* _.isArrayLike([1, 2, 3]);
|
|
724
|
+
* // => true
|
|
725
|
+
*
|
|
726
|
+
* _.isArrayLike(document.body.children);
|
|
727
|
+
* // => true
|
|
728
|
+
*
|
|
729
|
+
* _.isArrayLike('abc');
|
|
730
|
+
* // => true
|
|
731
|
+
*
|
|
732
|
+
* _.isArrayLike(_.noop);
|
|
733
|
+
* // => false
|
|
734
|
+
*/
|
|
307
735
|
function isArrayLike(value) {
|
|
308
|
-
|
|
736
|
+
return value != null && isLength(value.length) && !isFunction(value);
|
|
309
737
|
}
|
|
310
|
-
|
|
738
|
+
//#endregion
|
|
739
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.js
|
|
740
|
+
/** Used for built-in method references. */
|
|
741
|
+
var objectProto$1 = Object.prototype;
|
|
742
|
+
/**
|
|
743
|
+
* Checks if `value` is likely a prototype object.
|
|
744
|
+
*
|
|
745
|
+
* @private
|
|
746
|
+
* @param {*} value The value to check.
|
|
747
|
+
* @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
|
|
748
|
+
*/
|
|
311
749
|
function isPrototype(value) {
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
}
|
|
750
|
+
var Ctor = value && value.constructor;
|
|
751
|
+
return value === (typeof Ctor == "function" && Ctor.prototype || objectProto$1);
|
|
752
|
+
}
|
|
753
|
+
//#endregion
|
|
754
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.js
|
|
755
|
+
/**
|
|
756
|
+
* The base implementation of `_.times` without support for iteratee shorthands
|
|
757
|
+
* or max array length checks.
|
|
758
|
+
*
|
|
759
|
+
* @private
|
|
760
|
+
* @param {number} n The number of times to invoke `iteratee`.
|
|
761
|
+
* @param {Function} iteratee The function invoked per iteration.
|
|
762
|
+
* @returns {Array} Returns the array of results.
|
|
763
|
+
*/
|
|
315
764
|
function baseTimes(n, iteratee) {
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
}
|
|
320
|
-
return result;
|
|
765
|
+
var index = -1, result = Array(n);
|
|
766
|
+
while (++index < n) result[index] = iteratee(index);
|
|
767
|
+
return result;
|
|
321
768
|
}
|
|
769
|
+
//#endregion
|
|
770
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.js
|
|
771
|
+
/** `Object#toString` result references. */
|
|
322
772
|
var argsTag$2 = "[object Arguments]";
|
|
773
|
+
/**
|
|
774
|
+
* The base implementation of `_.isArguments`.
|
|
775
|
+
*
|
|
776
|
+
* @private
|
|
777
|
+
* @param {*} value The value to check.
|
|
778
|
+
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
|
|
779
|
+
*/
|
|
323
780
|
function baseIsArguments(value) {
|
|
324
|
-
|
|
781
|
+
return isObjectLike(value) && baseGetTag(value) == argsTag$2;
|
|
325
782
|
}
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
var
|
|
330
|
-
|
|
783
|
+
//#endregion
|
|
784
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArguments.js
|
|
785
|
+
/** Used for built-in method references. */
|
|
786
|
+
var objectProto = Object.prototype;
|
|
787
|
+
/** Used to check objects for own properties. */
|
|
788
|
+
var hasOwnProperty$7 = objectProto.hasOwnProperty;
|
|
789
|
+
/** Built-in value references. */
|
|
790
|
+
var propertyIsEnumerable$1 = objectProto.propertyIsEnumerable;
|
|
791
|
+
/**
|
|
792
|
+
* Checks if `value` is likely an `arguments` object.
|
|
793
|
+
*
|
|
794
|
+
* @static
|
|
795
|
+
* @memberOf _
|
|
796
|
+
* @since 0.1.0
|
|
797
|
+
* @category Lang
|
|
798
|
+
* @param {*} value The value to check.
|
|
799
|
+
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
|
|
800
|
+
* else `false`.
|
|
801
|
+
* @example
|
|
802
|
+
*
|
|
803
|
+
* _.isArguments(function() { return arguments; }());
|
|
804
|
+
* // => true
|
|
805
|
+
*
|
|
806
|
+
* _.isArguments([1, 2, 3]);
|
|
807
|
+
* // => false
|
|
808
|
+
*/
|
|
809
|
+
var isArguments = baseIsArguments(function() {
|
|
810
|
+
return arguments;
|
|
331
811
|
}()) ? baseIsArguments : function(value) {
|
|
332
|
-
|
|
812
|
+
return isObjectLike(value) && hasOwnProperty$7.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
|
|
333
813
|
};
|
|
814
|
+
//#endregion
|
|
815
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.js
|
|
816
|
+
/**
|
|
817
|
+
* This method returns `false`.
|
|
818
|
+
*
|
|
819
|
+
* @static
|
|
820
|
+
* @memberOf _
|
|
821
|
+
* @since 4.13.0
|
|
822
|
+
* @category Util
|
|
823
|
+
* @returns {boolean} Returns `false`.
|
|
824
|
+
* @example
|
|
825
|
+
*
|
|
826
|
+
* _.times(2, _.stubFalse);
|
|
827
|
+
* // => [false, false]
|
|
828
|
+
*/
|
|
334
829
|
function stubFalse() {
|
|
335
|
-
|
|
830
|
+
return false;
|
|
336
831
|
}
|
|
832
|
+
//#endregion
|
|
833
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.js
|
|
834
|
+
/** Detect free variable `exports`. */
|
|
337
835
|
var freeExports$2 = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
836
|
+
/** Detect free variable `module`. */
|
|
338
837
|
var freeModule$2 = freeExports$2 && typeof module == "object" && module && !module.nodeType && module;
|
|
339
|
-
|
|
340
|
-
var Buffer$1 =
|
|
341
|
-
|
|
342
|
-
|
|
838
|
+
/** Built-in value references. */
|
|
839
|
+
var Buffer$1 = freeModule$2 && freeModule$2.exports === freeExports$2 ? root.Buffer : void 0;
|
|
840
|
+
/**
|
|
841
|
+
* Checks if `value` is a buffer.
|
|
842
|
+
*
|
|
843
|
+
* @static
|
|
844
|
+
* @memberOf _
|
|
845
|
+
* @since 4.3.0
|
|
846
|
+
* @category Lang
|
|
847
|
+
* @param {*} value The value to check.
|
|
848
|
+
* @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
|
|
849
|
+
* @example
|
|
850
|
+
*
|
|
851
|
+
* _.isBuffer(new Buffer(2));
|
|
852
|
+
* // => true
|
|
853
|
+
*
|
|
854
|
+
* _.isBuffer(new Uint8Array(2));
|
|
855
|
+
* // => false
|
|
856
|
+
*/
|
|
857
|
+
var isBuffer = (Buffer$1 ? Buffer$1.isBuffer : void 0) || stubFalse;
|
|
858
|
+
//#endregion
|
|
859
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.js
|
|
860
|
+
/** `Object#toString` result references. */
|
|
343
861
|
var argsTag$1 = "[object Arguments]", arrayTag$1 = "[object Array]", boolTag$2 = "[object Boolean]", dateTag$2 = "[object Date]", errorTag$1 = "[object Error]", funcTag$1 = "[object Function]", mapTag$5 = "[object Map]", numberTag$2 = "[object Number]", objectTag$2 = "[object Object]", regexpTag$2 = "[object RegExp]", setTag$5 = "[object Set]", stringTag$2 = "[object String]", weakMapTag$2 = "[object WeakMap]";
|
|
344
862
|
var arrayBufferTag$2 = "[object ArrayBuffer]", dataViewTag$3 = "[object DataView]", float32Tag$2 = "[object Float32Array]", float64Tag$2 = "[object Float64Array]", int8Tag$2 = "[object Int8Array]", int16Tag$2 = "[object Int16Array]", int32Tag$2 = "[object Int32Array]", uint8Tag$2 = "[object Uint8Array]", uint8ClampedTag$2 = "[object Uint8ClampedArray]", uint16Tag$2 = "[object Uint16Array]", uint32Tag$2 = "[object Uint32Array]";
|
|
863
|
+
/** Used to identify `toStringTag` values of typed arrays. */
|
|
345
864
|
var typedArrayTags = {};
|
|
346
865
|
typedArrayTags[float32Tag$2] = typedArrayTags[float64Tag$2] = typedArrayTags[int8Tag$2] = typedArrayTags[int16Tag$2] = typedArrayTags[int32Tag$2] = typedArrayTags[uint8Tag$2] = typedArrayTags[uint8ClampedTag$2] = typedArrayTags[uint16Tag$2] = typedArrayTags[uint32Tag$2] = true;
|
|
347
866
|
typedArrayTags[argsTag$1] = typedArrayTags[arrayTag$1] = typedArrayTags[arrayBufferTag$2] = typedArrayTags[boolTag$2] = typedArrayTags[dataViewTag$3] = typedArrayTags[dateTag$2] = typedArrayTags[errorTag$1] = typedArrayTags[funcTag$1] = typedArrayTags[mapTag$5] = typedArrayTags[numberTag$2] = typedArrayTags[objectTag$2] = typedArrayTags[regexpTag$2] = typedArrayTags[setTag$5] = typedArrayTags[stringTag$2] = typedArrayTags[weakMapTag$2] = false;
|
|
867
|
+
/**
|
|
868
|
+
* The base implementation of `_.isTypedArray` without Node.js optimizations.
|
|
869
|
+
*
|
|
870
|
+
* @private
|
|
871
|
+
* @param {*} value The value to check.
|
|
872
|
+
* @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
|
|
873
|
+
*/
|
|
348
874
|
function baseIsTypedArray(value) {
|
|
349
|
-
|
|
350
|
-
}
|
|
875
|
+
return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
|
|
876
|
+
}
|
|
877
|
+
//#endregion
|
|
878
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js
|
|
879
|
+
/**
|
|
880
|
+
* The base implementation of `_.unary` without support for storing metadata.
|
|
881
|
+
*
|
|
882
|
+
* @private
|
|
883
|
+
* @param {Function} func The function to cap arguments for.
|
|
884
|
+
* @returns {Function} Returns the new capped function.
|
|
885
|
+
*/
|
|
351
886
|
function baseUnary(func) {
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
887
|
+
return function(value) {
|
|
888
|
+
return func(value);
|
|
889
|
+
};
|
|
355
890
|
}
|
|
891
|
+
//#endregion
|
|
892
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.js
|
|
893
|
+
/** Detect free variable `exports`. */
|
|
356
894
|
var freeExports$1 = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
895
|
+
/** Detect free variable `module`. */
|
|
357
896
|
var freeModule$1 = freeExports$1 && typeof module == "object" && module && !module.nodeType && module;
|
|
358
|
-
|
|
359
|
-
var freeProcess =
|
|
897
|
+
/** Detect free variable `process` from Node.js. */
|
|
898
|
+
var freeProcess = freeModule$1 && freeModule$1.exports === freeExports$1 && freeGlobal.process;
|
|
899
|
+
/** Used to access faster Node.js helpers. */
|
|
360
900
|
var nodeUtil = function() {
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
return freeProcess && freeProcess.binding && freeProcess.binding("util");
|
|
367
|
-
} catch (e) {
|
|
368
|
-
}
|
|
901
|
+
try {
|
|
902
|
+
var types = freeModule$1 && freeModule$1.require && freeModule$1.require("util").types;
|
|
903
|
+
if (types) return types;
|
|
904
|
+
return freeProcess && freeProcess.binding && freeProcess.binding("util");
|
|
905
|
+
} catch (e) {}
|
|
369
906
|
}();
|
|
907
|
+
//#endregion
|
|
908
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.js
|
|
370
909
|
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
|
910
|
+
/**
|
|
911
|
+
* Checks if `value` is classified as a typed array.
|
|
912
|
+
*
|
|
913
|
+
* @static
|
|
914
|
+
* @memberOf _
|
|
915
|
+
* @since 3.0.0
|
|
916
|
+
* @category Lang
|
|
917
|
+
* @param {*} value The value to check.
|
|
918
|
+
* @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
|
|
919
|
+
* @example
|
|
920
|
+
*
|
|
921
|
+
* _.isTypedArray(new Uint8Array);
|
|
922
|
+
* // => true
|
|
923
|
+
*
|
|
924
|
+
* _.isTypedArray([]);
|
|
925
|
+
* // => false
|
|
926
|
+
*/
|
|
371
927
|
var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
|
372
|
-
|
|
373
|
-
|
|
928
|
+
//#endregion
|
|
929
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayLikeKeys.js
|
|
930
|
+
/** Used to check objects for own properties. */
|
|
931
|
+
var hasOwnProperty$6 = Object.prototype.hasOwnProperty;
|
|
932
|
+
/**
|
|
933
|
+
* Creates an array of the enumerable property names of the array-like `value`.
|
|
934
|
+
*
|
|
935
|
+
* @private
|
|
936
|
+
* @param {*} value The value to query.
|
|
937
|
+
* @param {boolean} inherited Specify returning inherited property names.
|
|
938
|
+
* @returns {Array} Returns the array of property names.
|
|
939
|
+
*/
|
|
374
940
|
function arrayLikeKeys(value, inherited) {
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
}
|
|
941
|
+
var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
|
|
942
|
+
for (var key in value) if ((inherited || hasOwnProperty$6.call(value, key)) && !(skipIndexes && (key == "length" || isBuff && (key == "offset" || key == "parent") || isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || isIndex(key, length)))) result.push(key);
|
|
943
|
+
return result;
|
|
944
|
+
}
|
|
945
|
+
//#endregion
|
|
946
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_overArg.js
|
|
947
|
+
/**
|
|
948
|
+
* Creates a unary function that invokes `func` with its argument transformed.
|
|
949
|
+
*
|
|
950
|
+
* @private
|
|
951
|
+
* @param {Function} func The function to wrap.
|
|
952
|
+
* @param {Function} transform The argument transform.
|
|
953
|
+
* @returns {Function} Returns the new function.
|
|
954
|
+
*/
|
|
387
955
|
function overArg(func, transform) {
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
956
|
+
return function(arg) {
|
|
957
|
+
return func(transform(arg));
|
|
958
|
+
};
|
|
391
959
|
}
|
|
960
|
+
//#endregion
|
|
961
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeys.js
|
|
392
962
|
var nativeKeys = overArg(Object.keys, Object);
|
|
393
|
-
|
|
394
|
-
|
|
963
|
+
//#endregion
|
|
964
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseKeys.js
|
|
965
|
+
/** Used to check objects for own properties. */
|
|
966
|
+
var hasOwnProperty$5 = Object.prototype.hasOwnProperty;
|
|
967
|
+
/**
|
|
968
|
+
* The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
|
|
969
|
+
*
|
|
970
|
+
* @private
|
|
971
|
+
* @param {Object} object The object to query.
|
|
972
|
+
* @returns {Array} Returns the array of property names.
|
|
973
|
+
*/
|
|
395
974
|
function baseKeys(object) {
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
975
|
+
if (!isPrototype(object)) return nativeKeys(object);
|
|
976
|
+
var result = [];
|
|
977
|
+
for (var key in Object(object)) if (hasOwnProperty$5.call(object, key) && key != "constructor") result.push(key);
|
|
978
|
+
return result;
|
|
979
|
+
}
|
|
980
|
+
//#endregion
|
|
981
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/keys.js
|
|
982
|
+
/**
|
|
983
|
+
* Creates an array of the own enumerable property names of `object`.
|
|
984
|
+
*
|
|
985
|
+
* **Note:** Non-object values are coerced to objects. See the
|
|
986
|
+
* [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
|
|
987
|
+
* for more details.
|
|
988
|
+
*
|
|
989
|
+
* @static
|
|
990
|
+
* @since 0.1.0
|
|
991
|
+
* @memberOf _
|
|
992
|
+
* @category Object
|
|
993
|
+
* @param {Object} object The object to query.
|
|
994
|
+
* @returns {Array} Returns the array of property names.
|
|
995
|
+
* @example
|
|
996
|
+
*
|
|
997
|
+
* function Foo() {
|
|
998
|
+
* this.a = 1;
|
|
999
|
+
* this.b = 2;
|
|
1000
|
+
* }
|
|
1001
|
+
*
|
|
1002
|
+
* Foo.prototype.c = 3;
|
|
1003
|
+
*
|
|
1004
|
+
* _.keys(new Foo);
|
|
1005
|
+
* // => ['a', 'b'] (iteration order is not guaranteed)
|
|
1006
|
+
*
|
|
1007
|
+
* _.keys('hi');
|
|
1008
|
+
* // => ['0', '1']
|
|
1009
|
+
*/
|
|
407
1010
|
function keys(object) {
|
|
408
|
-
|
|
409
|
-
}
|
|
1011
|
+
return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
|
|
1012
|
+
}
|
|
1013
|
+
//#endregion
|
|
1014
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeysIn.js
|
|
1015
|
+
/**
|
|
1016
|
+
* This function is like
|
|
1017
|
+
* [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
|
|
1018
|
+
* except that it includes inherited enumerable properties.
|
|
1019
|
+
*
|
|
1020
|
+
* @private
|
|
1021
|
+
* @param {Object} object The object to query.
|
|
1022
|
+
* @returns {Array} Returns the array of property names.
|
|
1023
|
+
*/
|
|
1024
|
+
function nativeKeysIn(object) {
|
|
1025
|
+
var result = [];
|
|
1026
|
+
if (object != null) for (var key in Object(object)) result.push(key);
|
|
1027
|
+
return result;
|
|
1028
|
+
}
|
|
1029
|
+
//#endregion
|
|
1030
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseKeysIn.js
|
|
1031
|
+
/** Used to check objects for own properties. */
|
|
1032
|
+
var hasOwnProperty$4 = Object.prototype.hasOwnProperty;
|
|
1033
|
+
/**
|
|
1034
|
+
* The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
|
|
1035
|
+
*
|
|
1036
|
+
* @private
|
|
1037
|
+
* @param {Object} object The object to query.
|
|
1038
|
+
* @returns {Array} Returns the array of property names.
|
|
1039
|
+
*/
|
|
1040
|
+
function baseKeysIn(object) {
|
|
1041
|
+
if (!isObject(object)) return nativeKeysIn(object);
|
|
1042
|
+
var isProto = isPrototype(object), result = [];
|
|
1043
|
+
for (var key in object) if (!(key == "constructor" && (isProto || !hasOwnProperty$4.call(object, key)))) result.push(key);
|
|
1044
|
+
return result;
|
|
1045
|
+
}
|
|
1046
|
+
//#endregion
|
|
1047
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/keysIn.js
|
|
1048
|
+
/**
|
|
1049
|
+
* Creates an array of the own and inherited enumerable property names of `object`.
|
|
1050
|
+
*
|
|
1051
|
+
* **Note:** Non-object values are coerced to objects.
|
|
1052
|
+
*
|
|
1053
|
+
* @static
|
|
1054
|
+
* @memberOf _
|
|
1055
|
+
* @since 3.0.0
|
|
1056
|
+
* @category Object
|
|
1057
|
+
* @param {Object} object The object to query.
|
|
1058
|
+
* @returns {Array} Returns the array of property names.
|
|
1059
|
+
* @example
|
|
1060
|
+
*
|
|
1061
|
+
* function Foo() {
|
|
1062
|
+
* this.a = 1;
|
|
1063
|
+
* this.b = 2;
|
|
1064
|
+
* }
|
|
1065
|
+
*
|
|
1066
|
+
* Foo.prototype.c = 3;
|
|
1067
|
+
*
|
|
1068
|
+
* _.keysIn(new Foo);
|
|
1069
|
+
* // => ['a', 'b', 'c'] (iteration order is not guaranteed)
|
|
1070
|
+
*/
|
|
1071
|
+
function keysIn(object) {
|
|
1072
|
+
return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
|
|
1073
|
+
}
|
|
1074
|
+
//#endregion
|
|
1075
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.js
|
|
410
1076
|
var nativeCreate = getNative(Object, "create");
|
|
1077
|
+
//#endregion
|
|
1078
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashClear.js
|
|
1079
|
+
/**
|
|
1080
|
+
* Removes all key-value entries from the hash.
|
|
1081
|
+
*
|
|
1082
|
+
* @private
|
|
1083
|
+
* @name clear
|
|
1084
|
+
* @memberOf Hash
|
|
1085
|
+
*/
|
|
411
1086
|
function hashClear() {
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
}
|
|
1087
|
+
this.__data__ = nativeCreate ? nativeCreate(null) : {};
|
|
1088
|
+
this.size = 0;
|
|
1089
|
+
}
|
|
1090
|
+
//#endregion
|
|
1091
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.js
|
|
1092
|
+
/**
|
|
1093
|
+
* Removes `key` and its value from the hash.
|
|
1094
|
+
*
|
|
1095
|
+
* @private
|
|
1096
|
+
* @name delete
|
|
1097
|
+
* @memberOf Hash
|
|
1098
|
+
* @param {Object} hash The hash to modify.
|
|
1099
|
+
* @param {string} key The key of the value to remove.
|
|
1100
|
+
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
1101
|
+
*/
|
|
415
1102
|
function hashDelete(key) {
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
1103
|
+
var result = this.has(key) && delete this.__data__[key];
|
|
1104
|
+
this.size -= result ? 1 : 0;
|
|
1105
|
+
return result;
|
|
419
1106
|
}
|
|
1107
|
+
//#endregion
|
|
1108
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.js
|
|
1109
|
+
/** Used to stand-in for `undefined` hash values. */
|
|
420
1110
|
var HASH_UNDEFINED$1 = "__lodash_hash_undefined__";
|
|
421
|
-
|
|
422
|
-
var hasOwnProperty$3 =
|
|
1111
|
+
/** Used to check objects for own properties. */
|
|
1112
|
+
var hasOwnProperty$3 = Object.prototype.hasOwnProperty;
|
|
1113
|
+
/**
|
|
1114
|
+
* Gets the hash value for `key`.
|
|
1115
|
+
*
|
|
1116
|
+
* @private
|
|
1117
|
+
* @name get
|
|
1118
|
+
* @memberOf Hash
|
|
1119
|
+
* @param {string} key The key of the value to get.
|
|
1120
|
+
* @returns {*} Returns the entry value.
|
|
1121
|
+
*/
|
|
423
1122
|
function hashGet(key) {
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
|
|
1123
|
+
var data = this.__data__;
|
|
1124
|
+
if (nativeCreate) {
|
|
1125
|
+
var result = data[key];
|
|
1126
|
+
return result === HASH_UNDEFINED$1 ? void 0 : result;
|
|
1127
|
+
}
|
|
1128
|
+
return hasOwnProperty$3.call(data, key) ? data[key] : void 0;
|
|
1129
|
+
}
|
|
1130
|
+
//#endregion
|
|
1131
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.js
|
|
1132
|
+
/** Used to check objects for own properties. */
|
|
1133
|
+
var hasOwnProperty$2 = Object.prototype.hasOwnProperty;
|
|
1134
|
+
/**
|
|
1135
|
+
* Checks if a hash value for `key` exists.
|
|
1136
|
+
*
|
|
1137
|
+
* @private
|
|
1138
|
+
* @name has
|
|
1139
|
+
* @memberOf Hash
|
|
1140
|
+
* @param {string} key The key of the entry to check.
|
|
1141
|
+
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
1142
|
+
*/
|
|
433
1143
|
function hashHas(key) {
|
|
434
|
-
|
|
435
|
-
|
|
1144
|
+
var data = this.__data__;
|
|
1145
|
+
return nativeCreate ? data[key] !== void 0 : hasOwnProperty$2.call(data, key);
|
|
436
1146
|
}
|
|
1147
|
+
//#endregion
|
|
1148
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.js
|
|
1149
|
+
/** Used to stand-in for `undefined` hash values. */
|
|
437
1150
|
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
1151
|
+
/**
|
|
1152
|
+
* Sets the hash `key` to `value`.
|
|
1153
|
+
*
|
|
1154
|
+
* @private
|
|
1155
|
+
* @name set
|
|
1156
|
+
* @memberOf Hash
|
|
1157
|
+
* @param {string} key The key of the value to set.
|
|
1158
|
+
* @param {*} value The value to set.
|
|
1159
|
+
* @returns {Object} Returns the hash instance.
|
|
1160
|
+
*/
|
|
438
1161
|
function hashSet(key, value) {
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
}
|
|
1162
|
+
var data = this.__data__;
|
|
1163
|
+
this.size += this.has(key) ? 0 : 1;
|
|
1164
|
+
data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED : value;
|
|
1165
|
+
return this;
|
|
1166
|
+
}
|
|
1167
|
+
//#endregion
|
|
1168
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Hash.js
|
|
1169
|
+
/**
|
|
1170
|
+
* Creates a hash object.
|
|
1171
|
+
*
|
|
1172
|
+
* @private
|
|
1173
|
+
* @constructor
|
|
1174
|
+
* @param {Array} [entries] The key-value pairs to cache.
|
|
1175
|
+
*/
|
|
444
1176
|
function Hash(entries) {
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
1177
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
1178
|
+
this.clear();
|
|
1179
|
+
while (++index < length) {
|
|
1180
|
+
var entry = entries[index];
|
|
1181
|
+
this.set(entry[0], entry[1]);
|
|
1182
|
+
}
|
|
451
1183
|
}
|
|
452
1184
|
Hash.prototype.clear = hashClear;
|
|
453
1185
|
Hash.prototype["delete"] = hashDelete;
|
|
454
1186
|
Hash.prototype.get = hashGet;
|
|
455
1187
|
Hash.prototype.has = hashHas;
|
|
456
1188
|
Hash.prototype.set = hashSet;
|
|
1189
|
+
//#endregion
|
|
1190
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.js
|
|
1191
|
+
/**
|
|
1192
|
+
* Removes all key-value entries from the list cache.
|
|
1193
|
+
*
|
|
1194
|
+
* @private
|
|
1195
|
+
* @name clear
|
|
1196
|
+
* @memberOf ListCache
|
|
1197
|
+
*/
|
|
457
1198
|
function listCacheClear() {
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
}
|
|
1199
|
+
this.__data__ = [];
|
|
1200
|
+
this.size = 0;
|
|
1201
|
+
}
|
|
1202
|
+
//#endregion
|
|
1203
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.js
|
|
1204
|
+
/**
|
|
1205
|
+
* Gets the index at which the `key` is found in `array` of key-value pairs.
|
|
1206
|
+
*
|
|
1207
|
+
* @private
|
|
1208
|
+
* @param {Array} array The array to inspect.
|
|
1209
|
+
* @param {*} key The key to search for.
|
|
1210
|
+
* @returns {number} Returns the index of the matched value, else `-1`.
|
|
1211
|
+
*/
|
|
461
1212
|
function assocIndexOf(array, key) {
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
1213
|
+
var length = array.length;
|
|
1214
|
+
while (length--) if (eq(array[length][0], key)) return length;
|
|
1215
|
+
return -1;
|
|
1216
|
+
}
|
|
1217
|
+
//#endregion
|
|
1218
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.js
|
|
1219
|
+
/** Built-in value references. */
|
|
1220
|
+
var splice = Array.prototype.splice;
|
|
1221
|
+
/**
|
|
1222
|
+
* Removes `key` and its value from the list cache.
|
|
1223
|
+
*
|
|
1224
|
+
* @private
|
|
1225
|
+
* @name delete
|
|
1226
|
+
* @memberOf ListCache
|
|
1227
|
+
* @param {string} key The key of the value to remove.
|
|
1228
|
+
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
1229
|
+
*/
|
|
472
1230
|
function listCacheDelete(key) {
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
1231
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
1232
|
+
if (index < 0) return false;
|
|
1233
|
+
if (index == data.length - 1) data.pop();
|
|
1234
|
+
else splice.call(data, index, 1);
|
|
1235
|
+
--this.size;
|
|
1236
|
+
return true;
|
|
1237
|
+
}
|
|
1238
|
+
//#endregion
|
|
1239
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.js
|
|
1240
|
+
/**
|
|
1241
|
+
* Gets the list cache value for `key`.
|
|
1242
|
+
*
|
|
1243
|
+
* @private
|
|
1244
|
+
* @name get
|
|
1245
|
+
* @memberOf ListCache
|
|
1246
|
+
* @param {string} key The key of the value to get.
|
|
1247
|
+
* @returns {*} Returns the entry value.
|
|
1248
|
+
*/
|
|
486
1249
|
function listCacheGet(key) {
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
}
|
|
1250
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
1251
|
+
return index < 0 ? void 0 : data[index][1];
|
|
1252
|
+
}
|
|
1253
|
+
//#endregion
|
|
1254
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.js
|
|
1255
|
+
/**
|
|
1256
|
+
* Checks if a list cache value for `key` exists.
|
|
1257
|
+
*
|
|
1258
|
+
* @private
|
|
1259
|
+
* @name has
|
|
1260
|
+
* @memberOf ListCache
|
|
1261
|
+
* @param {string} key The key of the entry to check.
|
|
1262
|
+
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
1263
|
+
*/
|
|
490
1264
|
function listCacheHas(key) {
|
|
491
|
-
|
|
492
|
-
}
|
|
1265
|
+
return assocIndexOf(this.__data__, key) > -1;
|
|
1266
|
+
}
|
|
1267
|
+
//#endregion
|
|
1268
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.js
|
|
1269
|
+
/**
|
|
1270
|
+
* Sets the list cache `key` to `value`.
|
|
1271
|
+
*
|
|
1272
|
+
* @private
|
|
1273
|
+
* @name set
|
|
1274
|
+
* @memberOf ListCache
|
|
1275
|
+
* @param {string} key The key of the value to set.
|
|
1276
|
+
* @param {*} value The value to set.
|
|
1277
|
+
* @returns {Object} Returns the list cache instance.
|
|
1278
|
+
*/
|
|
493
1279
|
function listCacheSet(key, value) {
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
1280
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
1281
|
+
if (index < 0) {
|
|
1282
|
+
++this.size;
|
|
1283
|
+
data.push([key, value]);
|
|
1284
|
+
} else data[index][1] = value;
|
|
1285
|
+
return this;
|
|
1286
|
+
}
|
|
1287
|
+
//#endregion
|
|
1288
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.js
|
|
1289
|
+
/**
|
|
1290
|
+
* Creates an list cache object.
|
|
1291
|
+
*
|
|
1292
|
+
* @private
|
|
1293
|
+
* @constructor
|
|
1294
|
+
* @param {Array} [entries] The key-value pairs to cache.
|
|
1295
|
+
*/
|
|
503
1296
|
function ListCache(entries) {
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
1297
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
1298
|
+
this.clear();
|
|
1299
|
+
while (++index < length) {
|
|
1300
|
+
var entry = entries[index];
|
|
1301
|
+
this.set(entry[0], entry[1]);
|
|
1302
|
+
}
|
|
510
1303
|
}
|
|
511
1304
|
ListCache.prototype.clear = listCacheClear;
|
|
512
1305
|
ListCache.prototype["delete"] = listCacheDelete;
|
|
513
1306
|
ListCache.prototype.get = listCacheGet;
|
|
514
1307
|
ListCache.prototype.has = listCacheHas;
|
|
515
1308
|
ListCache.prototype.set = listCacheSet;
|
|
1309
|
+
//#endregion
|
|
1310
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Map.js
|
|
516
1311
|
var Map = getNative(root, "Map");
|
|
1312
|
+
//#endregion
|
|
1313
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.js
|
|
1314
|
+
/**
|
|
1315
|
+
* Removes all key-value entries from the map.
|
|
1316
|
+
*
|
|
1317
|
+
* @private
|
|
1318
|
+
* @name clear
|
|
1319
|
+
* @memberOf MapCache
|
|
1320
|
+
*/
|
|
517
1321
|
function mapCacheClear() {
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
}
|
|
1322
|
+
this.size = 0;
|
|
1323
|
+
this.__data__ = {
|
|
1324
|
+
"hash": new Hash(),
|
|
1325
|
+
"map": new (Map || ListCache)(),
|
|
1326
|
+
"string": new Hash()
|
|
1327
|
+
};
|
|
1328
|
+
}
|
|
1329
|
+
//#endregion
|
|
1330
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.js
|
|
1331
|
+
/**
|
|
1332
|
+
* Checks if `value` is suitable for use as unique object key.
|
|
1333
|
+
*
|
|
1334
|
+
* @private
|
|
1335
|
+
* @param {*} value The value to check.
|
|
1336
|
+
* @returns {boolean} Returns `true` if `value` is suitable, else `false`.
|
|
1337
|
+
*/
|
|
525
1338
|
function isKeyable(value) {
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
}
|
|
1339
|
+
var type = typeof value;
|
|
1340
|
+
return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
|
|
1341
|
+
}
|
|
1342
|
+
//#endregion
|
|
1343
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.js
|
|
1344
|
+
/**
|
|
1345
|
+
* Gets the data for `map`.
|
|
1346
|
+
*
|
|
1347
|
+
* @private
|
|
1348
|
+
* @param {Object} map The map to query.
|
|
1349
|
+
* @param {string} key The reference key.
|
|
1350
|
+
* @returns {*} Returns the map data.
|
|
1351
|
+
*/
|
|
529
1352
|
function getMapData(map, key) {
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
}
|
|
1353
|
+
var data = map.__data__;
|
|
1354
|
+
return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
|
|
1355
|
+
}
|
|
1356
|
+
//#endregion
|
|
1357
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.js
|
|
1358
|
+
/**
|
|
1359
|
+
* Removes `key` and its value from the map.
|
|
1360
|
+
*
|
|
1361
|
+
* @private
|
|
1362
|
+
* @name delete
|
|
1363
|
+
* @memberOf MapCache
|
|
1364
|
+
* @param {string} key The key of the value to remove.
|
|
1365
|
+
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
1366
|
+
*/
|
|
533
1367
|
function mapCacheDelete(key) {
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
}
|
|
1368
|
+
var result = getMapData(this, key)["delete"](key);
|
|
1369
|
+
this.size -= result ? 1 : 0;
|
|
1370
|
+
return result;
|
|
1371
|
+
}
|
|
1372
|
+
//#endregion
|
|
1373
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.js
|
|
1374
|
+
/**
|
|
1375
|
+
* Gets the map value for `key`.
|
|
1376
|
+
*
|
|
1377
|
+
* @private
|
|
1378
|
+
* @name get
|
|
1379
|
+
* @memberOf MapCache
|
|
1380
|
+
* @param {string} key The key of the value to get.
|
|
1381
|
+
* @returns {*} Returns the entry value.
|
|
1382
|
+
*/
|
|
538
1383
|
function mapCacheGet(key) {
|
|
539
|
-
|
|
540
|
-
}
|
|
1384
|
+
return getMapData(this, key).get(key);
|
|
1385
|
+
}
|
|
1386
|
+
//#endregion
|
|
1387
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.js
|
|
1388
|
+
/**
|
|
1389
|
+
* Checks if a map value for `key` exists.
|
|
1390
|
+
*
|
|
1391
|
+
* @private
|
|
1392
|
+
* @name has
|
|
1393
|
+
* @memberOf MapCache
|
|
1394
|
+
* @param {string} key The key of the entry to check.
|
|
1395
|
+
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
1396
|
+
*/
|
|
541
1397
|
function mapCacheHas(key) {
|
|
542
|
-
|
|
543
|
-
}
|
|
1398
|
+
return getMapData(this, key).has(key);
|
|
1399
|
+
}
|
|
1400
|
+
//#endregion
|
|
1401
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.js
|
|
1402
|
+
/**
|
|
1403
|
+
* Sets the map `key` to `value`.
|
|
1404
|
+
*
|
|
1405
|
+
* @private
|
|
1406
|
+
* @name set
|
|
1407
|
+
* @memberOf MapCache
|
|
1408
|
+
* @param {string} key The key of the value to set.
|
|
1409
|
+
* @param {*} value The value to set.
|
|
1410
|
+
* @returns {Object} Returns the map cache instance.
|
|
1411
|
+
*/
|
|
544
1412
|
function mapCacheSet(key, value) {
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
}
|
|
1413
|
+
var data = getMapData(this, key), size = data.size;
|
|
1414
|
+
data.set(key, value);
|
|
1415
|
+
this.size += data.size == size ? 0 : 1;
|
|
1416
|
+
return this;
|
|
1417
|
+
}
|
|
1418
|
+
//#endregion
|
|
1419
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.js
|
|
1420
|
+
/**
|
|
1421
|
+
* Creates a map cache object to store key-value pairs.
|
|
1422
|
+
*
|
|
1423
|
+
* @private
|
|
1424
|
+
* @constructor
|
|
1425
|
+
* @param {Array} [entries] The key-value pairs to cache.
|
|
1426
|
+
*/
|
|
550
1427
|
function MapCache(entries) {
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
1428
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
1429
|
+
this.clear();
|
|
1430
|
+
while (++index < length) {
|
|
1431
|
+
var entry = entries[index];
|
|
1432
|
+
this.set(entry[0], entry[1]);
|
|
1433
|
+
}
|
|
557
1434
|
}
|
|
558
1435
|
MapCache.prototype.clear = mapCacheClear;
|
|
559
1436
|
MapCache.prototype["delete"] = mapCacheDelete;
|
|
560
1437
|
MapCache.prototype.get = mapCacheGet;
|
|
561
1438
|
MapCache.prototype.has = mapCacheHas;
|
|
562
1439
|
MapCache.prototype.set = mapCacheSet;
|
|
1440
|
+
//#endregion
|
|
1441
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayPush.js
|
|
1442
|
+
/**
|
|
1443
|
+
* Appends the elements of `values` to `array`.
|
|
1444
|
+
*
|
|
1445
|
+
* @private
|
|
1446
|
+
* @param {Array} array The array to modify.
|
|
1447
|
+
* @param {Array} values The values to append.
|
|
1448
|
+
* @returns {Array} Returns `array`.
|
|
1449
|
+
*/
|
|
563
1450
|
function arrayPush(array, values) {
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
}
|
|
568
|
-
return array;
|
|
1451
|
+
var index = -1, length = values.length, offset = array.length;
|
|
1452
|
+
while (++index < length) array[offset + index] = values[index];
|
|
1453
|
+
return array;
|
|
569
1454
|
}
|
|
1455
|
+
//#endregion
|
|
1456
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getPrototype.js
|
|
1457
|
+
/** Built-in value references. */
|
|
570
1458
|
var getPrototype = overArg(Object.getPrototypeOf, Object);
|
|
1459
|
+
//#endregion
|
|
1460
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackClear.js
|
|
1461
|
+
/**
|
|
1462
|
+
* Removes all key-value entries from the stack.
|
|
1463
|
+
*
|
|
1464
|
+
* @private
|
|
1465
|
+
* @name clear
|
|
1466
|
+
* @memberOf Stack
|
|
1467
|
+
*/
|
|
571
1468
|
function stackClear() {
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
}
|
|
1469
|
+
this.__data__ = new ListCache();
|
|
1470
|
+
this.size = 0;
|
|
1471
|
+
}
|
|
1472
|
+
//#endregion
|
|
1473
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackDelete.js
|
|
1474
|
+
/**
|
|
1475
|
+
* Removes `key` and its value from the stack.
|
|
1476
|
+
*
|
|
1477
|
+
* @private
|
|
1478
|
+
* @name delete
|
|
1479
|
+
* @memberOf Stack
|
|
1480
|
+
* @param {string} key The key of the value to remove.
|
|
1481
|
+
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
1482
|
+
*/
|
|
575
1483
|
function stackDelete(key) {
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
}
|
|
1484
|
+
var data = this.__data__, result = data["delete"](key);
|
|
1485
|
+
this.size = data.size;
|
|
1486
|
+
return result;
|
|
1487
|
+
}
|
|
1488
|
+
//#endregion
|
|
1489
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackGet.js
|
|
1490
|
+
/**
|
|
1491
|
+
* Gets the stack value for `key`.
|
|
1492
|
+
*
|
|
1493
|
+
* @private
|
|
1494
|
+
* @name get
|
|
1495
|
+
* @memberOf Stack
|
|
1496
|
+
* @param {string} key The key of the value to get.
|
|
1497
|
+
* @returns {*} Returns the entry value.
|
|
1498
|
+
*/
|
|
580
1499
|
function stackGet(key) {
|
|
581
|
-
|
|
582
|
-
}
|
|
1500
|
+
return this.__data__.get(key);
|
|
1501
|
+
}
|
|
1502
|
+
//#endregion
|
|
1503
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackHas.js
|
|
1504
|
+
/**
|
|
1505
|
+
* Checks if a stack value for `key` exists.
|
|
1506
|
+
*
|
|
1507
|
+
* @private
|
|
1508
|
+
* @name has
|
|
1509
|
+
* @memberOf Stack
|
|
1510
|
+
* @param {string} key The key of the entry to check.
|
|
1511
|
+
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
1512
|
+
*/
|
|
583
1513
|
function stackHas(key) {
|
|
584
|
-
|
|
1514
|
+
return this.__data__.has(key);
|
|
585
1515
|
}
|
|
1516
|
+
//#endregion
|
|
1517
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackSet.js
|
|
1518
|
+
/** Used as the size to enable large array optimizations. */
|
|
586
1519
|
var LARGE_ARRAY_SIZE = 200;
|
|
1520
|
+
/**
|
|
1521
|
+
* Sets the stack `key` to `value`.
|
|
1522
|
+
*
|
|
1523
|
+
* @private
|
|
1524
|
+
* @name set
|
|
1525
|
+
* @memberOf Stack
|
|
1526
|
+
* @param {string} key The key of the value to set.
|
|
1527
|
+
* @param {*} value The value to set.
|
|
1528
|
+
* @returns {Object} Returns the stack cache instance.
|
|
1529
|
+
*/
|
|
587
1530
|
function stackSet(key, value) {
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
}
|
|
1531
|
+
var data = this.__data__;
|
|
1532
|
+
if (data instanceof ListCache) {
|
|
1533
|
+
var pairs = data.__data__;
|
|
1534
|
+
if (!Map || pairs.length < LARGE_ARRAY_SIZE - 1) {
|
|
1535
|
+
pairs.push([key, value]);
|
|
1536
|
+
this.size = ++data.size;
|
|
1537
|
+
return this;
|
|
1538
|
+
}
|
|
1539
|
+
data = this.__data__ = new MapCache(pairs);
|
|
1540
|
+
}
|
|
1541
|
+
data.set(key, value);
|
|
1542
|
+
this.size = data.size;
|
|
1543
|
+
return this;
|
|
1544
|
+
}
|
|
1545
|
+
//#endregion
|
|
1546
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Stack.js
|
|
1547
|
+
/**
|
|
1548
|
+
* Creates a stack cache object to store key-value pairs.
|
|
1549
|
+
*
|
|
1550
|
+
* @private
|
|
1551
|
+
* @constructor
|
|
1552
|
+
* @param {Array} [entries] The key-value pairs to cache.
|
|
1553
|
+
*/
|
|
602
1554
|
function Stack(entries) {
|
|
603
|
-
|
|
604
|
-
|
|
1555
|
+
var data = this.__data__ = new ListCache(entries);
|
|
1556
|
+
this.size = data.size;
|
|
605
1557
|
}
|
|
606
1558
|
Stack.prototype.clear = stackClear;
|
|
607
1559
|
Stack.prototype["delete"] = stackDelete;
|
|
608
1560
|
Stack.prototype.get = stackGet;
|
|
609
1561
|
Stack.prototype.has = stackHas;
|
|
610
1562
|
Stack.prototype.set = stackSet;
|
|
1563
|
+
//#endregion
|
|
1564
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseAssign.js
|
|
1565
|
+
/**
|
|
1566
|
+
* The base implementation of `_.assign` without support for multiple sources
|
|
1567
|
+
* or `customizer` functions.
|
|
1568
|
+
*
|
|
1569
|
+
* @private
|
|
1570
|
+
* @param {Object} object The destination object.
|
|
1571
|
+
* @param {Object} source The source object.
|
|
1572
|
+
* @returns {Object} Returns `object`.
|
|
1573
|
+
*/
|
|
1574
|
+
function baseAssign(object, source) {
|
|
1575
|
+
return object && copyObject(source, keys(source), object);
|
|
1576
|
+
}
|
|
1577
|
+
//#endregion
|
|
1578
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignIn.js
|
|
1579
|
+
/**
|
|
1580
|
+
* The base implementation of `_.assignIn` without support for multiple sources
|
|
1581
|
+
* or `customizer` functions.
|
|
1582
|
+
*
|
|
1583
|
+
* @private
|
|
1584
|
+
* @param {Object} object The destination object.
|
|
1585
|
+
* @param {Object} source The source object.
|
|
1586
|
+
* @returns {Object} Returns `object`.
|
|
1587
|
+
*/
|
|
1588
|
+
function baseAssignIn(object, source) {
|
|
1589
|
+
return object && copyObject(source, keysIn(source), object);
|
|
1590
|
+
}
|
|
1591
|
+
//#endregion
|
|
1592
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneBuffer.js
|
|
1593
|
+
/** Detect free variable `exports`. */
|
|
611
1594
|
var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
1595
|
+
/** Detect free variable `module`. */
|
|
612
1596
|
var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
|
|
613
|
-
|
|
614
|
-
var Buffer =
|
|
615
|
-
|
|
1597
|
+
/** Built-in value references. */
|
|
1598
|
+
var Buffer = freeModule && freeModule.exports === freeExports ? root.Buffer : void 0, allocUnsafe = Buffer ? Buffer.allocUnsafe : void 0;
|
|
1599
|
+
/**
|
|
1600
|
+
* Creates a clone of `buffer`.
|
|
1601
|
+
*
|
|
1602
|
+
* @private
|
|
1603
|
+
* @param {Buffer} buffer The buffer to clone.
|
|
1604
|
+
* @param {boolean} [isDeep] Specify a deep clone.
|
|
1605
|
+
* @returns {Buffer} Returns the cloned buffer.
|
|
1606
|
+
*/
|
|
616
1607
|
function cloneBuffer(buffer, isDeep) {
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
1608
|
+
if (isDeep) return buffer.slice();
|
|
1609
|
+
var length = buffer.length, result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
|
|
1610
|
+
buffer.copy(result);
|
|
1611
|
+
return result;
|
|
1612
|
+
}
|
|
1613
|
+
//#endregion
|
|
1614
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayFilter.js
|
|
1615
|
+
/**
|
|
1616
|
+
* A specialized version of `_.filter` for arrays without support for
|
|
1617
|
+
* iteratee shorthands.
|
|
1618
|
+
*
|
|
1619
|
+
* @private
|
|
1620
|
+
* @param {Array} [array] The array to iterate over.
|
|
1621
|
+
* @param {Function} predicate The function invoked per iteration.
|
|
1622
|
+
* @returns {Array} Returns the new filtered array.
|
|
1623
|
+
*/
|
|
621
1624
|
function arrayFilter(array, predicate) {
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
1625
|
+
var index = -1, length = array == null ? 0 : array.length, resIndex = 0, result = [];
|
|
1626
|
+
while (++index < length) {
|
|
1627
|
+
var value = array[index];
|
|
1628
|
+
if (predicate(value, index, array)) result[resIndex++] = value;
|
|
1629
|
+
}
|
|
1630
|
+
return result;
|
|
1631
|
+
}
|
|
1632
|
+
//#endregion
|
|
1633
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/stubArray.js
|
|
1634
|
+
/**
|
|
1635
|
+
* This method returns a new empty array.
|
|
1636
|
+
*
|
|
1637
|
+
* @static
|
|
1638
|
+
* @memberOf _
|
|
1639
|
+
* @since 4.13.0
|
|
1640
|
+
* @category Util
|
|
1641
|
+
* @returns {Array} Returns the new empty array.
|
|
1642
|
+
* @example
|
|
1643
|
+
*
|
|
1644
|
+
* var arrays = _.times(2, _.stubArray);
|
|
1645
|
+
*
|
|
1646
|
+
* console.log(arrays);
|
|
1647
|
+
* // => [[], []]
|
|
1648
|
+
*
|
|
1649
|
+
* console.log(arrays[0] === arrays[1]);
|
|
1650
|
+
* // => false
|
|
1651
|
+
*/
|
|
631
1652
|
function stubArray() {
|
|
632
|
-
|
|
1653
|
+
return [];
|
|
633
1654
|
}
|
|
634
|
-
|
|
635
|
-
|
|
1655
|
+
//#endregion
|
|
1656
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getSymbols.js
|
|
1657
|
+
/** Built-in value references. */
|
|
1658
|
+
var propertyIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
636
1659
|
var nativeGetSymbols = Object.getOwnPropertySymbols;
|
|
1660
|
+
/**
|
|
1661
|
+
* Creates an array of the own enumerable symbols of `object`.
|
|
1662
|
+
*
|
|
1663
|
+
* @private
|
|
1664
|
+
* @param {Object} object The object to query.
|
|
1665
|
+
* @returns {Array} Returns the array of symbols.
|
|
1666
|
+
*/
|
|
637
1667
|
var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
1668
|
+
if (object == null) return [];
|
|
1669
|
+
object = Object(object);
|
|
1670
|
+
return arrayFilter(nativeGetSymbols(object), function(symbol) {
|
|
1671
|
+
return propertyIsEnumerable.call(object, symbol);
|
|
1672
|
+
});
|
|
1673
|
+
};
|
|
1674
|
+
//#endregion
|
|
1675
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copySymbols.js
|
|
1676
|
+
/**
|
|
1677
|
+
* Copies own symbols of `source` to `object`.
|
|
1678
|
+
*
|
|
1679
|
+
* @private
|
|
1680
|
+
* @param {Object} source The object to copy symbols from.
|
|
1681
|
+
* @param {Object} [object={}] The object to copy symbols to.
|
|
1682
|
+
* @returns {Object} Returns `object`.
|
|
1683
|
+
*/
|
|
1684
|
+
function copySymbols(source, object) {
|
|
1685
|
+
return copyObject(source, getSymbols(source), object);
|
|
1686
|
+
}
|
|
1687
|
+
//#endregion
|
|
1688
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getSymbolsIn.js
|
|
1689
|
+
/**
|
|
1690
|
+
* Creates an array of the own and inherited enumerable symbols of `object`.
|
|
1691
|
+
*
|
|
1692
|
+
* @private
|
|
1693
|
+
* @param {Object} object The object to query.
|
|
1694
|
+
* @returns {Array} Returns the array of symbols.
|
|
1695
|
+
*/
|
|
1696
|
+
var getSymbolsIn = !Object.getOwnPropertySymbols ? stubArray : function(object) {
|
|
1697
|
+
var result = [];
|
|
1698
|
+
while (object) {
|
|
1699
|
+
arrayPush(result, getSymbols(object));
|
|
1700
|
+
object = getPrototype(object);
|
|
1701
|
+
}
|
|
1702
|
+
return result;
|
|
645
1703
|
};
|
|
1704
|
+
//#endregion
|
|
1705
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copySymbolsIn.js
|
|
1706
|
+
/**
|
|
1707
|
+
* Copies own and inherited symbols of `source` to `object`.
|
|
1708
|
+
*
|
|
1709
|
+
* @private
|
|
1710
|
+
* @param {Object} source The object to copy symbols from.
|
|
1711
|
+
* @param {Object} [object={}] The object to copy symbols to.
|
|
1712
|
+
* @returns {Object} Returns `object`.
|
|
1713
|
+
*/
|
|
1714
|
+
function copySymbolsIn(source, object) {
|
|
1715
|
+
return copyObject(source, getSymbolsIn(source), object);
|
|
1716
|
+
}
|
|
1717
|
+
//#endregion
|
|
1718
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGetAllKeys.js
|
|
1719
|
+
/**
|
|
1720
|
+
* The base implementation of `getAllKeys` and `getAllKeysIn` which uses
|
|
1721
|
+
* `keysFunc` and `symbolsFunc` to get the enumerable property names and
|
|
1722
|
+
* symbols of `object`.
|
|
1723
|
+
*
|
|
1724
|
+
* @private
|
|
1725
|
+
* @param {Object} object The object to query.
|
|
1726
|
+
* @param {Function} keysFunc The function to get the keys of `object`.
|
|
1727
|
+
* @param {Function} symbolsFunc The function to get the symbols of `object`.
|
|
1728
|
+
* @returns {Array} Returns the array of property names and symbols.
|
|
1729
|
+
*/
|
|
646
1730
|
function baseGetAllKeys(object, keysFunc, symbolsFunc) {
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
}
|
|
1731
|
+
var result = keysFunc(object);
|
|
1732
|
+
return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
|
|
1733
|
+
}
|
|
1734
|
+
//#endregion
|
|
1735
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeys.js
|
|
1736
|
+
/**
|
|
1737
|
+
* Creates an array of own enumerable property names and symbols of `object`.
|
|
1738
|
+
*
|
|
1739
|
+
* @private
|
|
1740
|
+
* @param {Object} object The object to query.
|
|
1741
|
+
* @returns {Array} Returns the array of property names and symbols.
|
|
1742
|
+
*/
|
|
650
1743
|
function getAllKeys(object) {
|
|
651
|
-
|
|
652
|
-
}
|
|
1744
|
+
return baseGetAllKeys(object, keys, getSymbols);
|
|
1745
|
+
}
|
|
1746
|
+
//#endregion
|
|
1747
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeysIn.js
|
|
1748
|
+
/**
|
|
1749
|
+
* Creates an array of own and inherited enumerable property names and
|
|
1750
|
+
* symbols of `object`.
|
|
1751
|
+
*
|
|
1752
|
+
* @private
|
|
1753
|
+
* @param {Object} object The object to query.
|
|
1754
|
+
* @returns {Array} Returns the array of property names and symbols.
|
|
1755
|
+
*/
|
|
1756
|
+
function getAllKeysIn(object) {
|
|
1757
|
+
return baseGetAllKeys(object, keysIn, getSymbolsIn);
|
|
1758
|
+
}
|
|
1759
|
+
//#endregion
|
|
1760
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_DataView.js
|
|
653
1761
|
var DataView = getNative(root, "DataView");
|
|
1762
|
+
//#endregion
|
|
1763
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Promise.js
|
|
654
1764
|
var Promise$1 = getNative(root, "Promise");
|
|
1765
|
+
//#endregion
|
|
1766
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Set.js
|
|
655
1767
|
var Set = getNative(root, "Set");
|
|
1768
|
+
//#endregion
|
|
1769
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getTag.js
|
|
1770
|
+
/** `Object#toString` result references. */
|
|
656
1771
|
var mapTag$4 = "[object Map]", objectTag$1 = "[object Object]", promiseTag = "[object Promise]", setTag$4 = "[object Set]", weakMapTag$1 = "[object WeakMap]";
|
|
657
1772
|
var dataViewTag$2 = "[object DataView]";
|
|
1773
|
+
/** Used to detect maps, sets, and weakmaps. */
|
|
658
1774
|
var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map), promiseCtorString = toSource(Promise$1), setCtorString = toSource(Set), weakMapCtorString = toSource(WeakMap);
|
|
1775
|
+
/**
|
|
1776
|
+
* Gets the `toStringTag` of `value`.
|
|
1777
|
+
*
|
|
1778
|
+
* @private
|
|
1779
|
+
* @param {*} value The value to query.
|
|
1780
|
+
* @returns {string} Returns the `toStringTag`.
|
|
1781
|
+
*/
|
|
659
1782
|
var getTag = baseGetTag;
|
|
660
|
-
if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag$2 || Map && getTag(new Map()) != mapTag$4 || Promise$1 && getTag(Promise$1.resolve()) != promiseTag || Set && getTag(new Set()) != setTag$4 || WeakMap && getTag(new WeakMap()) != weakMapTag$1) {
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
1783
|
+
if (DataView && getTag(new DataView(/* @__PURE__ */ new ArrayBuffer(1))) != dataViewTag$2 || Map && getTag(new Map()) != mapTag$4 || Promise$1 && getTag(Promise$1.resolve()) != promiseTag || Set && getTag(new Set()) != setTag$4 || WeakMap && getTag(new WeakMap()) != weakMapTag$1) getTag = function(value) {
|
|
1784
|
+
var result = baseGetTag(value), Ctor = result == objectTag$1 ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : "";
|
|
1785
|
+
if (ctorString) switch (ctorString) {
|
|
1786
|
+
case dataViewCtorString: return dataViewTag$2;
|
|
1787
|
+
case mapCtorString: return mapTag$4;
|
|
1788
|
+
case promiseCtorString: return promiseTag;
|
|
1789
|
+
case setCtorString: return setTag$4;
|
|
1790
|
+
case weakMapCtorString: return weakMapTag$1;
|
|
1791
|
+
}
|
|
1792
|
+
return result;
|
|
1793
|
+
};
|
|
1794
|
+
var _getTag_default = getTag;
|
|
1795
|
+
//#endregion
|
|
1796
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_initCloneArray.js
|
|
1797
|
+
/** Used to check objects for own properties. */
|
|
1798
|
+
var hasOwnProperty$1 = Object.prototype.hasOwnProperty;
|
|
1799
|
+
/**
|
|
1800
|
+
* Initializes an array clone.
|
|
1801
|
+
*
|
|
1802
|
+
* @private
|
|
1803
|
+
* @param {Array} array The array to clone.
|
|
1804
|
+
* @returns {Array} Returns the initialized clone.
|
|
1805
|
+
*/
|
|
682
1806
|
function initCloneArray(array) {
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
}
|
|
1807
|
+
var length = array.length, result = new array.constructor(length);
|
|
1808
|
+
if (length && typeof array[0] == "string" && hasOwnProperty$1.call(array, "index")) {
|
|
1809
|
+
result.index = array.index;
|
|
1810
|
+
result.input = array.input;
|
|
1811
|
+
}
|
|
1812
|
+
return result;
|
|
1813
|
+
}
|
|
1814
|
+
//#endregion
|
|
1815
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Uint8Array.js
|
|
1816
|
+
/** Built-in value references. */
|
|
690
1817
|
var Uint8Array$1 = root.Uint8Array;
|
|
1818
|
+
//#endregion
|
|
1819
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneArrayBuffer.js
|
|
1820
|
+
/**
|
|
1821
|
+
* Creates a clone of `arrayBuffer`.
|
|
1822
|
+
*
|
|
1823
|
+
* @private
|
|
1824
|
+
* @param {ArrayBuffer} arrayBuffer The array buffer to clone.
|
|
1825
|
+
* @returns {ArrayBuffer} Returns the cloned array buffer.
|
|
1826
|
+
*/
|
|
691
1827
|
function cloneArrayBuffer(arrayBuffer) {
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
}
|
|
1828
|
+
var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
|
|
1829
|
+
new Uint8Array$1(result).set(new Uint8Array$1(arrayBuffer));
|
|
1830
|
+
return result;
|
|
1831
|
+
}
|
|
1832
|
+
//#endregion
|
|
1833
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneDataView.js
|
|
1834
|
+
/**
|
|
1835
|
+
* Creates a clone of `dataView`.
|
|
1836
|
+
*
|
|
1837
|
+
* @private
|
|
1838
|
+
* @param {Object} dataView The data view to clone.
|
|
1839
|
+
* @param {boolean} [isDeep] Specify a deep clone.
|
|
1840
|
+
* @returns {Object} Returns the cloned data view.
|
|
1841
|
+
*/
|
|
696
1842
|
function cloneDataView(dataView, isDeep) {
|
|
697
|
-
|
|
698
|
-
|
|
1843
|
+
var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
|
|
1844
|
+
return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
|
|
699
1845
|
}
|
|
1846
|
+
//#endregion
|
|
1847
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneRegExp.js
|
|
1848
|
+
/** Used to match `RegExp` flags from their coerced string values. */
|
|
700
1849
|
var reFlags = /\w*$/;
|
|
1850
|
+
/**
|
|
1851
|
+
* Creates a clone of `regexp`.
|
|
1852
|
+
*
|
|
1853
|
+
* @private
|
|
1854
|
+
* @param {Object} regexp The regexp to clone.
|
|
1855
|
+
* @returns {Object} Returns the cloned regexp.
|
|
1856
|
+
*/
|
|
701
1857
|
function cloneRegExp(regexp) {
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
}
|
|
706
|
-
|
|
1858
|
+
var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
|
|
1859
|
+
result.lastIndex = regexp.lastIndex;
|
|
1860
|
+
return result;
|
|
1861
|
+
}
|
|
1862
|
+
//#endregion
|
|
1863
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneSymbol.js
|
|
1864
|
+
/** Used to convert symbols to primitives and strings. */
|
|
1865
|
+
var symbolProto = Symbol ? Symbol.prototype : void 0, symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
|
|
1866
|
+
/**
|
|
1867
|
+
* Creates a clone of the `symbol` object.
|
|
1868
|
+
*
|
|
1869
|
+
* @private
|
|
1870
|
+
* @param {Object} symbol The symbol object to clone.
|
|
1871
|
+
* @returns {Object} Returns the cloned symbol object.
|
|
1872
|
+
*/
|
|
707
1873
|
function cloneSymbol(symbol) {
|
|
708
|
-
|
|
709
|
-
}
|
|
1874
|
+
return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
|
|
1875
|
+
}
|
|
1876
|
+
//#endregion
|
|
1877
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneTypedArray.js
|
|
1878
|
+
/**
|
|
1879
|
+
* Creates a clone of `typedArray`.
|
|
1880
|
+
*
|
|
1881
|
+
* @private
|
|
1882
|
+
* @param {Object} typedArray The typed array to clone.
|
|
1883
|
+
* @param {boolean} [isDeep] Specify a deep clone.
|
|
1884
|
+
* @returns {Object} Returns the cloned typed array.
|
|
1885
|
+
*/
|
|
710
1886
|
function cloneTypedArray(typedArray, isDeep) {
|
|
711
|
-
|
|
712
|
-
|
|
1887
|
+
var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
|
|
1888
|
+
return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
|
|
713
1889
|
}
|
|
1890
|
+
//#endregion
|
|
1891
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_initCloneByTag.js
|
|
1892
|
+
/** `Object#toString` result references. */
|
|
714
1893
|
var boolTag$1 = "[object Boolean]", dateTag$1 = "[object Date]", mapTag$3 = "[object Map]", numberTag$1 = "[object Number]", regexpTag$1 = "[object RegExp]", setTag$3 = "[object Set]", stringTag$1 = "[object String]", symbolTag$1 = "[object Symbol]";
|
|
715
1894
|
var arrayBufferTag$1 = "[object ArrayBuffer]", dataViewTag$1 = "[object DataView]", float32Tag$1 = "[object Float32Array]", float64Tag$1 = "[object Float64Array]", int8Tag$1 = "[object Int8Array]", int16Tag$1 = "[object Int16Array]", int32Tag$1 = "[object Int32Array]", uint8Tag$1 = "[object Uint8Array]", uint8ClampedTag$1 = "[object Uint8ClampedArray]", uint16Tag$1 = "[object Uint16Array]", uint32Tag$1 = "[object Uint32Array]";
|
|
1895
|
+
/**
|
|
1896
|
+
* Initializes an object clone based on its `toStringTag`.
|
|
1897
|
+
*
|
|
1898
|
+
* **Note:** This function only supports cloning values with tags of
|
|
1899
|
+
* `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.
|
|
1900
|
+
*
|
|
1901
|
+
* @private
|
|
1902
|
+
* @param {Object} object The object to clone.
|
|
1903
|
+
* @param {string} tag The `toStringTag` of the object to clone.
|
|
1904
|
+
* @param {boolean} [isDeep] Specify a deep clone.
|
|
1905
|
+
* @returns {Object} Returns the initialized clone.
|
|
1906
|
+
*/
|
|
716
1907
|
function initCloneByTag(object, tag, isDeep) {
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
1908
|
+
var Ctor = object.constructor;
|
|
1909
|
+
switch (tag) {
|
|
1910
|
+
case arrayBufferTag$1: return cloneArrayBuffer(object);
|
|
1911
|
+
case boolTag$1:
|
|
1912
|
+
case dateTag$1: return new Ctor(+object);
|
|
1913
|
+
case dataViewTag$1: return cloneDataView(object, isDeep);
|
|
1914
|
+
case float32Tag$1:
|
|
1915
|
+
case float64Tag$1:
|
|
1916
|
+
case int8Tag$1:
|
|
1917
|
+
case int16Tag$1:
|
|
1918
|
+
case int32Tag$1:
|
|
1919
|
+
case uint8Tag$1:
|
|
1920
|
+
case uint8ClampedTag$1:
|
|
1921
|
+
case uint16Tag$1:
|
|
1922
|
+
case uint32Tag$1: return cloneTypedArray(object, isDeep);
|
|
1923
|
+
case mapTag$3: return new Ctor();
|
|
1924
|
+
case numberTag$1:
|
|
1925
|
+
case stringTag$1: return new Ctor(object);
|
|
1926
|
+
case regexpTag$1: return cloneRegExp(object);
|
|
1927
|
+
case setTag$3: return new Ctor();
|
|
1928
|
+
case symbolTag$1: return cloneSymbol(object);
|
|
1929
|
+
}
|
|
1930
|
+
}
|
|
1931
|
+
//#endregion
|
|
1932
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_initCloneObject.js
|
|
1933
|
+
/**
|
|
1934
|
+
* Initializes an object clone.
|
|
1935
|
+
*
|
|
1936
|
+
* @private
|
|
1937
|
+
* @param {Object} object The object to clone.
|
|
1938
|
+
* @returns {Object} Returns the initialized clone.
|
|
1939
|
+
*/
|
|
749
1940
|
function initCloneObject(object) {
|
|
750
|
-
|
|
1941
|
+
return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate(getPrototype(object)) : {};
|
|
751
1942
|
}
|
|
1943
|
+
//#endregion
|
|
1944
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMap.js
|
|
1945
|
+
/** `Object#toString` result references. */
|
|
752
1946
|
var mapTag$2 = "[object Map]";
|
|
1947
|
+
/**
|
|
1948
|
+
* The base implementation of `_.isMap` without Node.js optimizations.
|
|
1949
|
+
*
|
|
1950
|
+
* @private
|
|
1951
|
+
* @param {*} value The value to check.
|
|
1952
|
+
* @returns {boolean} Returns `true` if `value` is a map, else `false`.
|
|
1953
|
+
*/
|
|
753
1954
|
function baseIsMap(value) {
|
|
754
|
-
|
|
1955
|
+
return isObjectLike(value) && _getTag_default(value) == mapTag$2;
|
|
755
1956
|
}
|
|
1957
|
+
//#endregion
|
|
1958
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isMap.js
|
|
756
1959
|
var nodeIsMap = nodeUtil && nodeUtil.isMap;
|
|
1960
|
+
/**
|
|
1961
|
+
* Checks if `value` is classified as a `Map` object.
|
|
1962
|
+
*
|
|
1963
|
+
* @static
|
|
1964
|
+
* @memberOf _
|
|
1965
|
+
* @since 4.3.0
|
|
1966
|
+
* @category Lang
|
|
1967
|
+
* @param {*} value The value to check.
|
|
1968
|
+
* @returns {boolean} Returns `true` if `value` is a map, else `false`.
|
|
1969
|
+
* @example
|
|
1970
|
+
*
|
|
1971
|
+
* _.isMap(new Map);
|
|
1972
|
+
* // => true
|
|
1973
|
+
*
|
|
1974
|
+
* _.isMap(new WeakMap);
|
|
1975
|
+
* // => false
|
|
1976
|
+
*/
|
|
757
1977
|
var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;
|
|
1978
|
+
//#endregion
|
|
1979
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsSet.js
|
|
1980
|
+
/** `Object#toString` result references. */
|
|
758
1981
|
var setTag$2 = "[object Set]";
|
|
1982
|
+
/**
|
|
1983
|
+
* The base implementation of `_.isSet` without Node.js optimizations.
|
|
1984
|
+
*
|
|
1985
|
+
* @private
|
|
1986
|
+
* @param {*} value The value to check.
|
|
1987
|
+
* @returns {boolean} Returns `true` if `value` is a set, else `false`.
|
|
1988
|
+
*/
|
|
759
1989
|
function baseIsSet(value) {
|
|
760
|
-
|
|
1990
|
+
return isObjectLike(value) && _getTag_default(value) == setTag$2;
|
|
761
1991
|
}
|
|
1992
|
+
//#endregion
|
|
1993
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isSet.js
|
|
762
1994
|
var nodeIsSet = nodeUtil && nodeUtil.isSet;
|
|
1995
|
+
/**
|
|
1996
|
+
* Checks if `value` is classified as a `Set` object.
|
|
1997
|
+
*
|
|
1998
|
+
* @static
|
|
1999
|
+
* @memberOf _
|
|
2000
|
+
* @since 4.3.0
|
|
2001
|
+
* @category Lang
|
|
2002
|
+
* @param {*} value The value to check.
|
|
2003
|
+
* @returns {boolean} Returns `true` if `value` is a set, else `false`.
|
|
2004
|
+
* @example
|
|
2005
|
+
*
|
|
2006
|
+
* _.isSet(new Set);
|
|
2007
|
+
* // => true
|
|
2008
|
+
*
|
|
2009
|
+
* _.isSet(new WeakSet);
|
|
2010
|
+
* // => false
|
|
2011
|
+
*/
|
|
763
2012
|
var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
|
|
2013
|
+
//#endregion
|
|
2014
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseClone.js
|
|
2015
|
+
/** Used to compose bitmasks for cloning. */
|
|
2016
|
+
var CLONE_DEEP_FLAG$1 = 1, CLONE_FLAT_FLAG = 2, CLONE_SYMBOLS_FLAG$1 = 4;
|
|
2017
|
+
/** `Object#toString` result references. */
|
|
764
2018
|
var argsTag = "[object Arguments]", arrayTag = "[object Array]", boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", mapTag$1 = "[object Map]", numberTag = "[object Number]", objectTag = "[object Object]", regexpTag = "[object RegExp]", setTag$1 = "[object Set]", stringTag = "[object String]", symbolTag = "[object Symbol]", weakMapTag = "[object WeakMap]";
|
|
765
2019
|
var arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[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]";
|
|
2020
|
+
/** Used to identify `toStringTag` values supported by `_.clone`. */
|
|
766
2021
|
var cloneableTags = {};
|
|
767
2022
|
cloneableTags[argsTag] = cloneableTags[arrayTag] = cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] = cloneableTags[boolTag] = cloneableTags[dateTag] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag$1] = cloneableTags[numberTag] = cloneableTags[objectTag] = cloneableTags[regexpTag] = cloneableTags[setTag$1] = cloneableTags[stringTag] = cloneableTags[symbolTag] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
|
|
768
2023
|
cloneableTags[errorTag] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false;
|
|
2024
|
+
/**
|
|
2025
|
+
* The base implementation of `_.clone` and `_.cloneDeep` which tracks
|
|
2026
|
+
* traversed objects.
|
|
2027
|
+
*
|
|
2028
|
+
* @private
|
|
2029
|
+
* @param {*} value The value to clone.
|
|
2030
|
+
* @param {boolean} bitmask The bitmask flags.
|
|
2031
|
+
* 1 - Deep clone
|
|
2032
|
+
* 2 - Flatten inherited properties
|
|
2033
|
+
* 4 - Clone symbols
|
|
2034
|
+
* @param {Function} [customizer] The function to customize cloning.
|
|
2035
|
+
* @param {string} [key] The key of `value`.
|
|
2036
|
+
* @param {Object} [object] The parent object of `value`.
|
|
2037
|
+
* @param {Object} [stack] Tracks traversed objects and their clone counterparts.
|
|
2038
|
+
* @returns {*} Returns the cloned value.
|
|
2039
|
+
*/
|
|
769
2040
|
function baseClone(value, bitmask, customizer, key, object, stack) {
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
if (props) {
|
|
813
|
-
key2 = subValue;
|
|
814
|
-
subValue = value[key2];
|
|
815
|
-
}
|
|
816
|
-
assignValue(result, key2, baseClone(subValue, bitmask, customizer, key2, value, stack));
|
|
817
|
-
});
|
|
818
|
-
return result;
|
|
819
|
-
}
|
|
2041
|
+
var result, isDeep = bitmask & CLONE_DEEP_FLAG$1, isFlat = bitmask & CLONE_FLAT_FLAG, isFull = bitmask & CLONE_SYMBOLS_FLAG$1;
|
|
2042
|
+
if (customizer) result = object ? customizer(value, key, object, stack) : customizer(value);
|
|
2043
|
+
if (result !== void 0) return result;
|
|
2044
|
+
if (!isObject(value)) return value;
|
|
2045
|
+
var isArr = isArray(value);
|
|
2046
|
+
if (isArr) {
|
|
2047
|
+
result = initCloneArray(value);
|
|
2048
|
+
if (!isDeep) return copyArray(value, result);
|
|
2049
|
+
} else {
|
|
2050
|
+
var tag = _getTag_default(value), isFunc = tag == funcTag || tag == genTag;
|
|
2051
|
+
if (isBuffer(value)) return cloneBuffer(value, isDeep);
|
|
2052
|
+
if (tag == objectTag || tag == argsTag || isFunc && !object) {
|
|
2053
|
+
result = isFlat || isFunc ? {} : initCloneObject(value);
|
|
2054
|
+
if (!isDeep) return isFlat ? copySymbolsIn(value, baseAssignIn(result, value)) : copySymbols(value, baseAssign(result, value));
|
|
2055
|
+
} else {
|
|
2056
|
+
if (!cloneableTags[tag]) return object ? value : {};
|
|
2057
|
+
result = initCloneByTag(value, tag, isDeep);
|
|
2058
|
+
}
|
|
2059
|
+
}
|
|
2060
|
+
stack || (stack = new Stack());
|
|
2061
|
+
var stacked = stack.get(value);
|
|
2062
|
+
if (stacked) return stacked;
|
|
2063
|
+
stack.set(value, result);
|
|
2064
|
+
if (isSet(value)) value.forEach(function(subValue) {
|
|
2065
|
+
result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
|
|
2066
|
+
});
|
|
2067
|
+
else if (isMap(value)) value.forEach(function(subValue, key) {
|
|
2068
|
+
result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));
|
|
2069
|
+
});
|
|
2070
|
+
var props = isArr ? void 0 : (isFull ? isFlat ? getAllKeysIn : getAllKeys : isFlat ? keysIn : keys)(value);
|
|
2071
|
+
arrayEach(props || value, function(subValue, key) {
|
|
2072
|
+
if (props) {
|
|
2073
|
+
key = subValue;
|
|
2074
|
+
subValue = value[key];
|
|
2075
|
+
}
|
|
2076
|
+
assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));
|
|
2077
|
+
});
|
|
2078
|
+
return result;
|
|
2079
|
+
}
|
|
2080
|
+
//#endregion
|
|
2081
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/cloneDeep.js
|
|
2082
|
+
/** Used to compose bitmasks for cloning. */
|
|
820
2083
|
var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4;
|
|
2084
|
+
/**
|
|
2085
|
+
* This method is like `_.clone` except that it recursively clones `value`.
|
|
2086
|
+
*
|
|
2087
|
+
* @static
|
|
2088
|
+
* @memberOf _
|
|
2089
|
+
* @since 1.0.0
|
|
2090
|
+
* @category Lang
|
|
2091
|
+
* @param {*} value The value to recursively clone.
|
|
2092
|
+
* @returns {*} Returns the deep cloned value.
|
|
2093
|
+
* @see _.clone
|
|
2094
|
+
* @example
|
|
2095
|
+
*
|
|
2096
|
+
* var objects = [{ 'a': 1 }, { 'b': 2 }];
|
|
2097
|
+
*
|
|
2098
|
+
* var deep = _.cloneDeep(objects);
|
|
2099
|
+
* console.log(deep[0] === objects[0]);
|
|
2100
|
+
* // => false
|
|
2101
|
+
*/
|
|
821
2102
|
function cloneDeep(value) {
|
|
822
|
-
|
|
823
|
-
}
|
|
2103
|
+
return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
|
|
2104
|
+
}
|
|
2105
|
+
//#endregion
|
|
2106
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/now.js
|
|
2107
|
+
/**
|
|
2108
|
+
* Gets the timestamp of the number of milliseconds that have elapsed since
|
|
2109
|
+
* the Unix epoch (1 January 1970 00:00:00 UTC).
|
|
2110
|
+
*
|
|
2111
|
+
* @static
|
|
2112
|
+
* @memberOf _
|
|
2113
|
+
* @since 2.4.0
|
|
2114
|
+
* @category Date
|
|
2115
|
+
* @returns {number} Returns the timestamp.
|
|
2116
|
+
* @example
|
|
2117
|
+
*
|
|
2118
|
+
* _.defer(function(stamp) {
|
|
2119
|
+
* console.log(_.now() - stamp);
|
|
2120
|
+
* }, _.now());
|
|
2121
|
+
* // => Logs the number of milliseconds it took for the deferred invocation.
|
|
2122
|
+
*/
|
|
824
2123
|
var now = function() {
|
|
825
|
-
|
|
2124
|
+
return root.Date.now();
|
|
826
2125
|
};
|
|
2126
|
+
//#endregion
|
|
2127
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/debounce.js
|
|
2128
|
+
/** Error message constants. */
|
|
827
2129
|
var FUNC_ERROR_TEXT = "Expected a function";
|
|
828
2130
|
var nativeMax = Math.max, nativeMin = Math.min;
|
|
2131
|
+
/**
|
|
2132
|
+
* Creates a debounced function that delays invoking `func` until after `wait`
|
|
2133
|
+
* milliseconds have elapsed since the last time the debounced function was
|
|
2134
|
+
* invoked. The debounced function comes with a `cancel` method to cancel
|
|
2135
|
+
* delayed `func` invocations and a `flush` method to immediately invoke them.
|
|
2136
|
+
* Provide `options` to indicate whether `func` should be invoked on the
|
|
2137
|
+
* leading and/or trailing edge of the `wait` timeout. The `func` is invoked
|
|
2138
|
+
* with the last arguments provided to the debounced function. Subsequent
|
|
2139
|
+
* calls to the debounced function return the result of the last `func`
|
|
2140
|
+
* invocation.
|
|
2141
|
+
*
|
|
2142
|
+
* **Note:** If `leading` and `trailing` options are `true`, `func` is
|
|
2143
|
+
* invoked on the trailing edge of the timeout only if the debounced function
|
|
2144
|
+
* is invoked more than once during the `wait` timeout.
|
|
2145
|
+
*
|
|
2146
|
+
* If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
|
|
2147
|
+
* until to the next tick, similar to `setTimeout` with a timeout of `0`.
|
|
2148
|
+
*
|
|
2149
|
+
* See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
|
|
2150
|
+
* for details over the differences between `_.debounce` and `_.throttle`.
|
|
2151
|
+
*
|
|
2152
|
+
* @static
|
|
2153
|
+
* @memberOf _
|
|
2154
|
+
* @since 0.1.0
|
|
2155
|
+
* @category Function
|
|
2156
|
+
* @param {Function} func The function to debounce.
|
|
2157
|
+
* @param {number} [wait=0] The number of milliseconds to delay.
|
|
2158
|
+
* @param {Object} [options={}] The options object.
|
|
2159
|
+
* @param {boolean} [options.leading=false]
|
|
2160
|
+
* Specify invoking on the leading edge of the timeout.
|
|
2161
|
+
* @param {number} [options.maxWait]
|
|
2162
|
+
* The maximum time `func` is allowed to be delayed before it's invoked.
|
|
2163
|
+
* @param {boolean} [options.trailing=true]
|
|
2164
|
+
* Specify invoking on the trailing edge of the timeout.
|
|
2165
|
+
* @returns {Function} Returns the new debounced function.
|
|
2166
|
+
* @example
|
|
2167
|
+
*
|
|
2168
|
+
* // Avoid costly calculations while the window size is in flux.
|
|
2169
|
+
* jQuery(window).on('resize', _.debounce(calculateLayout, 150));
|
|
2170
|
+
*
|
|
2171
|
+
* // Invoke `sendMail` when clicked, debouncing subsequent calls.
|
|
2172
|
+
* jQuery(element).on('click', _.debounce(sendMail, 300, {
|
|
2173
|
+
* 'leading': true,
|
|
2174
|
+
* 'trailing': false
|
|
2175
|
+
* }));
|
|
2176
|
+
*
|
|
2177
|
+
* // Ensure `batchLog` is invoked once after 1 second of debounced calls.
|
|
2178
|
+
* var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
|
|
2179
|
+
* var source = new EventSource('/stream');
|
|
2180
|
+
* jQuery(source).on('message', debounced);
|
|
2181
|
+
*
|
|
2182
|
+
* // Cancel the trailing debounced invocation.
|
|
2183
|
+
* jQuery(window).on('popstate', debounced.cancel);
|
|
2184
|
+
*/
|
|
829
2185
|
function debounce(func, wait, options) {
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
if (timerId === void 0) {
|
|
902
|
-
timerId = setTimeout(timerExpired, wait);
|
|
903
|
-
}
|
|
904
|
-
return result;
|
|
905
|
-
}
|
|
906
|
-
debounced.cancel = cancel;
|
|
907
|
-
debounced.flush = flush;
|
|
908
|
-
return debounced;
|
|
909
|
-
}
|
|
2186
|
+
var lastArgs, lastThis, maxWait, result, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true;
|
|
2187
|
+
if (typeof func != "function") throw new TypeError(FUNC_ERROR_TEXT);
|
|
2188
|
+
wait = toNumber(wait) || 0;
|
|
2189
|
+
if (isObject(options)) {
|
|
2190
|
+
leading = !!options.leading;
|
|
2191
|
+
maxing = "maxWait" in options;
|
|
2192
|
+
maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
|
|
2193
|
+
trailing = "trailing" in options ? !!options.trailing : trailing;
|
|
2194
|
+
}
|
|
2195
|
+
function invokeFunc(time) {
|
|
2196
|
+
var args = lastArgs, thisArg = lastThis;
|
|
2197
|
+
lastArgs = lastThis = void 0;
|
|
2198
|
+
lastInvokeTime = time;
|
|
2199
|
+
result = func.apply(thisArg, args);
|
|
2200
|
+
return result;
|
|
2201
|
+
}
|
|
2202
|
+
function leadingEdge(time) {
|
|
2203
|
+
lastInvokeTime = time;
|
|
2204
|
+
timerId = setTimeout(timerExpired, wait);
|
|
2205
|
+
return leading ? invokeFunc(time) : result;
|
|
2206
|
+
}
|
|
2207
|
+
function remainingWait(time) {
|
|
2208
|
+
var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime, timeWaiting = wait - timeSinceLastCall;
|
|
2209
|
+
return maxing ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke) : timeWaiting;
|
|
2210
|
+
}
|
|
2211
|
+
function shouldInvoke(time) {
|
|
2212
|
+
var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime;
|
|
2213
|
+
return lastCallTime === void 0 || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait;
|
|
2214
|
+
}
|
|
2215
|
+
function timerExpired() {
|
|
2216
|
+
var time = now();
|
|
2217
|
+
if (shouldInvoke(time)) return trailingEdge(time);
|
|
2218
|
+
timerId = setTimeout(timerExpired, remainingWait(time));
|
|
2219
|
+
}
|
|
2220
|
+
function trailingEdge(time) {
|
|
2221
|
+
timerId = void 0;
|
|
2222
|
+
if (trailing && lastArgs) return invokeFunc(time);
|
|
2223
|
+
lastArgs = lastThis = void 0;
|
|
2224
|
+
return result;
|
|
2225
|
+
}
|
|
2226
|
+
function cancel() {
|
|
2227
|
+
if (timerId !== void 0) clearTimeout(timerId);
|
|
2228
|
+
lastInvokeTime = 0;
|
|
2229
|
+
lastArgs = lastCallTime = lastThis = timerId = void 0;
|
|
2230
|
+
}
|
|
2231
|
+
function flush() {
|
|
2232
|
+
return timerId === void 0 ? result : trailingEdge(now());
|
|
2233
|
+
}
|
|
2234
|
+
function debounced() {
|
|
2235
|
+
var time = now(), isInvoking = shouldInvoke(time);
|
|
2236
|
+
lastArgs = arguments;
|
|
2237
|
+
lastThis = this;
|
|
2238
|
+
lastCallTime = time;
|
|
2239
|
+
if (isInvoking) {
|
|
2240
|
+
if (timerId === void 0) return leadingEdge(lastCallTime);
|
|
2241
|
+
if (maxing) {
|
|
2242
|
+
clearTimeout(timerId);
|
|
2243
|
+
timerId = setTimeout(timerExpired, wait);
|
|
2244
|
+
return invokeFunc(lastCallTime);
|
|
2245
|
+
}
|
|
2246
|
+
}
|
|
2247
|
+
if (timerId === void 0) timerId = setTimeout(timerExpired, wait);
|
|
2248
|
+
return result;
|
|
2249
|
+
}
|
|
2250
|
+
debounced.cancel = cancel;
|
|
2251
|
+
debounced.flush = flush;
|
|
2252
|
+
return debounced;
|
|
2253
|
+
}
|
|
2254
|
+
//#endregion
|
|
2255
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isEmpty.js
|
|
2256
|
+
/** `Object#toString` result references. */
|
|
910
2257
|
var mapTag = "[object Map]", setTag = "[object Set]";
|
|
911
|
-
|
|
912
|
-
var hasOwnProperty =
|
|
2258
|
+
/** Used to check objects for own properties. */
|
|
2259
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
2260
|
+
/**
|
|
2261
|
+
* Checks if `value` is an empty object, collection, map, or set.
|
|
2262
|
+
*
|
|
2263
|
+
* Objects are considered empty if they have no own enumerable string keyed
|
|
2264
|
+
* properties.
|
|
2265
|
+
*
|
|
2266
|
+
* Array-like values such as `arguments` objects, arrays, buffers, strings, or
|
|
2267
|
+
* jQuery-like collections are considered empty if they have a `length` of `0`.
|
|
2268
|
+
* Similarly, maps and sets are considered empty if they have a `size` of `0`.
|
|
2269
|
+
*
|
|
2270
|
+
* @static
|
|
2271
|
+
* @memberOf _
|
|
2272
|
+
* @since 0.1.0
|
|
2273
|
+
* @category Lang
|
|
2274
|
+
* @param {*} value The value to check.
|
|
2275
|
+
* @returns {boolean} Returns `true` if `value` is empty, else `false`.
|
|
2276
|
+
* @example
|
|
2277
|
+
*
|
|
2278
|
+
* _.isEmpty(null);
|
|
2279
|
+
* // => true
|
|
2280
|
+
*
|
|
2281
|
+
* _.isEmpty(true);
|
|
2282
|
+
* // => true
|
|
2283
|
+
*
|
|
2284
|
+
* _.isEmpty(1);
|
|
2285
|
+
* // => true
|
|
2286
|
+
*
|
|
2287
|
+
* _.isEmpty([1, 2, 3]);
|
|
2288
|
+
* // => false
|
|
2289
|
+
*
|
|
2290
|
+
* _.isEmpty({ 'a': 1 });
|
|
2291
|
+
* // => false
|
|
2292
|
+
*/
|
|
913
2293
|
function isEmpty(value) {
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
}
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
__: [2]
|
|
1004
|
-
})) : createCommentVNode("", true),
|
|
1005
|
-
createVNode(_component_TailorEmbeddedContainer, {
|
|
1006
|
-
"allowed-element-config": _ctx.embedElementConfig,
|
|
1007
|
-
container: _ctx.element.data,
|
|
1008
|
-
"is-disabled": _ctx.isReadonly,
|
|
1009
|
-
onDelete: _cache[0] || (_cache[0] = ($event) => deleteEmbed($event)),
|
|
1010
|
-
onSave: _cache[1] || (_cache[1] = ($event) => saveEmbed($event.embeds))
|
|
1011
|
-
}, null, 8, ["allowed-element-config", "container", "is-disabled"])
|
|
1012
|
-
])
|
|
1013
|
-
]),
|
|
1014
|
-
_: 1
|
|
1015
|
-
});
|
|
1016
|
-
};
|
|
1017
|
-
}
|
|
2294
|
+
if (value == null) return true;
|
|
2295
|
+
if (isArrayLike(value) && (isArray(value) || typeof value == "string" || typeof value.splice == "function" || isBuffer(value) || isTypedArray(value) || isArguments(value))) return !value.length;
|
|
2296
|
+
var tag = _getTag_default(value);
|
|
2297
|
+
if (tag == mapTag || tag == setTag) return !value.size;
|
|
2298
|
+
if (isPrototype(value)) return !baseKeys(value).length;
|
|
2299
|
+
for (var key in value) if (hasOwnProperty.call(value, key)) return false;
|
|
2300
|
+
return true;
|
|
2301
|
+
}
|
|
2302
|
+
//#endregion
|
|
2303
|
+
//#region src/components/Edit.vue?vue&type=script&setup=true&lang.ts
|
|
2304
|
+
var _hoisted_1 = { class: "text-title-small" };
|
|
2305
|
+
var _hoisted_2 = { class: "pa-6 text-center" };
|
|
2306
|
+
var Edit_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
2307
|
+
__name: "Edit",
|
|
2308
|
+
props: {
|
|
2309
|
+
element: {},
|
|
2310
|
+
embedElementConfig: {},
|
|
2311
|
+
isDragged: { type: Boolean },
|
|
2312
|
+
isFocused: { type: Boolean },
|
|
2313
|
+
isReadonly: { type: Boolean }
|
|
2314
|
+
},
|
|
2315
|
+
emits: ["save"],
|
|
2316
|
+
setup(__props, { emit: __emit }) {
|
|
2317
|
+
const emit = __emit;
|
|
2318
|
+
const props = __props;
|
|
2319
|
+
const elementBus = inject("$elementBus");
|
|
2320
|
+
const saveEmbed = (embeds) => {
|
|
2321
|
+
const data = cloneDeep(props.element.data);
|
|
2322
|
+
data.embeds = embeds;
|
|
2323
|
+
emit("save", data);
|
|
2324
|
+
};
|
|
2325
|
+
const deleteEmbed = (embed) => {
|
|
2326
|
+
const data = cloneDeep(props.element.data);
|
|
2327
|
+
delete data.embeds[embed.id];
|
|
2328
|
+
emit("save", data);
|
|
2329
|
+
};
|
|
2330
|
+
const hasElements = computed(() => !isEmpty(props.element.data.embeds));
|
|
2331
|
+
elementBus.on("title", (title) => {
|
|
2332
|
+
emit("save", {
|
|
2333
|
+
...props.element.data,
|
|
2334
|
+
title
|
|
2335
|
+
});
|
|
2336
|
+
});
|
|
2337
|
+
return (_ctx, _cache) => {
|
|
2338
|
+
const _component_VIcon = resolveComponent("VIcon");
|
|
2339
|
+
const _component_VToolbar = resolveComponent("VToolbar");
|
|
2340
|
+
const _component_VAlert = resolveComponent("VAlert");
|
|
2341
|
+
const _component_TailorEmbeddedContainer = resolveComponent("TailorEmbeddedContainer");
|
|
2342
|
+
const _component_VCard = resolveComponent("VCard");
|
|
2343
|
+
return openBlock(), createBlock(_component_VCard, {
|
|
2344
|
+
class: "tce-modal my-2",
|
|
2345
|
+
color: "grey-lighten-5"
|
|
2346
|
+
}, {
|
|
2347
|
+
default: withCtx(() => [createVNode(_component_VToolbar, {
|
|
2348
|
+
class: "px-4",
|
|
2349
|
+
color: "primary-darken-2",
|
|
2350
|
+
height: "36"
|
|
2351
|
+
}, {
|
|
2352
|
+
default: withCtx(() => [createVNode(_component_VIcon, {
|
|
2353
|
+
icon: unref(manifest$1).ui.icon,
|
|
2354
|
+
color: "secondary-lighten-2",
|
|
2355
|
+
size: "18",
|
|
2356
|
+
start: ""
|
|
2357
|
+
}, null, 8, ["icon"]), createElementVNode("span", _hoisted_1, toDisplayString(unref(manifest$1).name), 1)]),
|
|
2358
|
+
_: 1
|
|
2359
|
+
}), createElementVNode("div", _hoisted_2, [!hasElements.value ? (openBlock(), createBlock(_component_VAlert, {
|
|
2360
|
+
key: 0,
|
|
2361
|
+
color: "primary-darken-1",
|
|
2362
|
+
icon: "mdi-information-outline",
|
|
2363
|
+
variant: "tonal",
|
|
2364
|
+
prominent: ""
|
|
2365
|
+
}, {
|
|
2366
|
+
default: withCtx(() => [..._cache[2] || (_cache[2] = [createTextVNode(" Click the button below to add content element. ", -1)])]),
|
|
2367
|
+
_: 1
|
|
2368
|
+
})) : createCommentVNode("", true), createVNode(_component_TailorEmbeddedContainer, {
|
|
2369
|
+
"allowed-element-config": __props.embedElementConfig,
|
|
2370
|
+
container: __props.element.data,
|
|
2371
|
+
"is-readonly": __props.isReadonly,
|
|
2372
|
+
onDelete: _cache[0] || (_cache[0] = ($event) => deleteEmbed($event)),
|
|
2373
|
+
onSave: _cache[1] || (_cache[1] = ($event) => saveEmbed($event.embeds))
|
|
2374
|
+
}, null, 8, [
|
|
2375
|
+
"allowed-element-config",
|
|
2376
|
+
"container",
|
|
2377
|
+
"is-readonly"
|
|
2378
|
+
])])]),
|
|
2379
|
+
_: 1
|
|
2380
|
+
});
|
|
2381
|
+
};
|
|
2382
|
+
}
|
|
1018
2383
|
});
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
2384
|
+
//#endregion
|
|
2385
|
+
//#region \0plugin-vue:export-helper
|
|
2386
|
+
var _plugin_vue_export_helper_default = (sfc, props) => {
|
|
2387
|
+
const target = sfc.__vccOpts || sfc;
|
|
2388
|
+
for (const [key, val] of props) target[key] = val;
|
|
2389
|
+
return target;
|
|
1025
2390
|
};
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
]),
|
|
1071
|
-
_: 1
|
|
1072
|
-
}, 512);
|
|
1073
|
-
};
|
|
1074
|
-
}
|
|
2391
|
+
//#endregion
|
|
2392
|
+
//#region src/components/Edit.vue
|
|
2393
|
+
var Edit_default = /* @__PURE__ */ _plugin_vue_export_helper_default(Edit_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-26a760fe"]]);
|
|
2394
|
+
//#endregion
|
|
2395
|
+
//#region src/components/TopToolbar.vue
|
|
2396
|
+
var TopToolbar_default = /* @__PURE__ */ defineComponent({
|
|
2397
|
+
__name: "TopToolbar",
|
|
2398
|
+
props: { element: {} },
|
|
2399
|
+
setup(__props) {
|
|
2400
|
+
const props = __props;
|
|
2401
|
+
const elementBus = inject("$elementBus");
|
|
2402
|
+
const form = ref();
|
|
2403
|
+
const title = ref(props.element.data.title);
|
|
2404
|
+
watch(title, debounce(async () => {
|
|
2405
|
+
if (!form.value) return;
|
|
2406
|
+
const { valid } = await form.value.validate();
|
|
2407
|
+
if (valid) return elementBus.emit("title", title.value);
|
|
2408
|
+
}, 500));
|
|
2409
|
+
return (_ctx, _cache) => {
|
|
2410
|
+
const _component_VTextField = resolveComponent("VTextField");
|
|
2411
|
+
const _component_VToolbarItems = resolveComponent("VToolbarItems");
|
|
2412
|
+
const _component_VForm = resolveComponent("VForm");
|
|
2413
|
+
return openBlock(), createBlock(_component_VForm, {
|
|
2414
|
+
ref_key: "form",
|
|
2415
|
+
ref: form,
|
|
2416
|
+
"validate-on": "submit"
|
|
2417
|
+
}, {
|
|
2418
|
+
default: withCtx(() => [createVNode(_component_VToolbarItems, { class: "ga-2" }, {
|
|
2419
|
+
default: withCtx(() => [createVNode(_component_VTextField, {
|
|
2420
|
+
modelValue: title.value,
|
|
2421
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => title.value = $event),
|
|
2422
|
+
class: "required ml-2",
|
|
2423
|
+
"hide-details": "auto",
|
|
2424
|
+
label: "Button label",
|
|
2425
|
+
"min-width": "200",
|
|
2426
|
+
"prepend-inner-icon": "mdi-gesture-tap-button",
|
|
2427
|
+
variant: "outlined"
|
|
2428
|
+
}, null, 8, ["modelValue"])]),
|
|
2429
|
+
_: 1
|
|
2430
|
+
})]),
|
|
2431
|
+
_: 1
|
|
2432
|
+
}, 512);
|
|
2433
|
+
};
|
|
2434
|
+
}
|
|
1075
2435
|
});
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
Edit,
|
|
1083
|
-
_sfc_main as TopToolbar,
|
|
1084
|
-
manifest as default
|
|
2436
|
+
//#endregion
|
|
2437
|
+
//#region src/index.ts
|
|
2438
|
+
var manifest = {
|
|
2439
|
+
...manifest$1,
|
|
2440
|
+
Edit: Edit_default,
|
|
2441
|
+
TopToolbar: TopToolbar_default
|
|
1085
2442
|
};
|
|
2443
|
+
//#endregion
|
|
2444
|
+
export { Edit_default as Edit, TopToolbar_default as TopToolbar, manifest as default };
|