@tailor-cms/ce-table-edit 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/index.cjs +2404 -0
- package/dist/index.js +2404 -0
- package/dist/style.css +30 -0
- package/package.json +42 -0
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,2404 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var import_style = require("./style.css");
|
|
3
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
4
|
+
const vue = require("vue");
|
|
5
|
+
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
6
|
+
function getDefaultExportFromCjs(x) {
|
|
7
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
8
|
+
}
|
|
9
|
+
function baseTimes$2(n, iteratee) {
|
|
10
|
+
var index = -1, result = Array(n);
|
|
11
|
+
while (++index < n) {
|
|
12
|
+
result[index] = iteratee(index);
|
|
13
|
+
}
|
|
14
|
+
return result;
|
|
15
|
+
}
|
|
16
|
+
var _baseTimes = baseTimes$2;
|
|
17
|
+
function identity$5(value) {
|
|
18
|
+
return value;
|
|
19
|
+
}
|
|
20
|
+
var identity_1 = identity$5;
|
|
21
|
+
var identity$4 = identity_1;
|
|
22
|
+
function castFunction$2(value) {
|
|
23
|
+
return typeof value == "function" ? value : identity$4;
|
|
24
|
+
}
|
|
25
|
+
var _castFunction = castFunction$2;
|
|
26
|
+
var reWhitespace = /\s/;
|
|
27
|
+
function trimmedEndIndex$1(string) {
|
|
28
|
+
var index = string.length;
|
|
29
|
+
while (index-- && reWhitespace.test(string.charAt(index))) {
|
|
30
|
+
}
|
|
31
|
+
return index;
|
|
32
|
+
}
|
|
33
|
+
var _trimmedEndIndex = trimmedEndIndex$1;
|
|
34
|
+
var trimmedEndIndex = _trimmedEndIndex;
|
|
35
|
+
var reTrimStart = /^\s+/;
|
|
36
|
+
function baseTrim$1(string) {
|
|
37
|
+
return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string;
|
|
38
|
+
}
|
|
39
|
+
var _baseTrim = baseTrim$1;
|
|
40
|
+
function isObject$8(value) {
|
|
41
|
+
var type2 = typeof value;
|
|
42
|
+
return value != null && (type2 == "object" || type2 == "function");
|
|
43
|
+
}
|
|
44
|
+
var isObject_1 = isObject$8;
|
|
45
|
+
var freeGlobal$1 = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
|
46
|
+
var _freeGlobal = freeGlobal$1;
|
|
47
|
+
var freeGlobal = _freeGlobal;
|
|
48
|
+
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
49
|
+
var root$8 = freeGlobal || freeSelf || Function("return this")();
|
|
50
|
+
var _root = root$8;
|
|
51
|
+
var root$7 = _root;
|
|
52
|
+
var Symbol$7 = root$7.Symbol;
|
|
53
|
+
var _Symbol = Symbol$7;
|
|
54
|
+
var Symbol$6 = _Symbol;
|
|
55
|
+
var objectProto$e = Object.prototype;
|
|
56
|
+
var hasOwnProperty$b = objectProto$e.hasOwnProperty;
|
|
57
|
+
var nativeObjectToString$1 = objectProto$e.toString;
|
|
58
|
+
var symToStringTag$1 = Symbol$6 ? Symbol$6.toStringTag : void 0;
|
|
59
|
+
function getRawTag$1(value) {
|
|
60
|
+
var isOwn = hasOwnProperty$b.call(value, symToStringTag$1), tag = value[symToStringTag$1];
|
|
61
|
+
try {
|
|
62
|
+
value[symToStringTag$1] = void 0;
|
|
63
|
+
var unmasked = true;
|
|
64
|
+
} catch (e) {
|
|
65
|
+
}
|
|
66
|
+
var result = nativeObjectToString$1.call(value);
|
|
67
|
+
if (unmasked) {
|
|
68
|
+
if (isOwn) {
|
|
69
|
+
value[symToStringTag$1] = tag;
|
|
70
|
+
} else {
|
|
71
|
+
delete value[symToStringTag$1];
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
return result;
|
|
75
|
+
}
|
|
76
|
+
var _getRawTag = getRawTag$1;
|
|
77
|
+
var objectProto$d = Object.prototype;
|
|
78
|
+
var nativeObjectToString = objectProto$d.toString;
|
|
79
|
+
function objectToString$1(value) {
|
|
80
|
+
return nativeObjectToString.call(value);
|
|
81
|
+
}
|
|
82
|
+
var _objectToString = objectToString$1;
|
|
83
|
+
var Symbol$5 = _Symbol, getRawTag = _getRawTag, objectToString = _objectToString;
|
|
84
|
+
var nullTag = "[object Null]", undefinedTag = "[object Undefined]";
|
|
85
|
+
var symToStringTag = Symbol$5 ? Symbol$5.toStringTag : void 0;
|
|
86
|
+
function baseGetTag$6(value) {
|
|
87
|
+
if (value == null) {
|
|
88
|
+
return value === void 0 ? undefinedTag : nullTag;
|
|
89
|
+
}
|
|
90
|
+
return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
|
|
91
|
+
}
|
|
92
|
+
var _baseGetTag = baseGetTag$6;
|
|
93
|
+
function isObjectLike$8(value) {
|
|
94
|
+
return value != null && typeof value == "object";
|
|
95
|
+
}
|
|
96
|
+
var isObjectLike_1 = isObjectLike$8;
|
|
97
|
+
var baseGetTag$5 = _baseGetTag, isObjectLike$7 = isObjectLike_1;
|
|
98
|
+
var symbolTag$3 = "[object Symbol]";
|
|
99
|
+
function isSymbol$5(value) {
|
|
100
|
+
return typeof value == "symbol" || isObjectLike$7(value) && baseGetTag$5(value) == symbolTag$3;
|
|
101
|
+
}
|
|
102
|
+
var isSymbol_1 = isSymbol$5;
|
|
103
|
+
var baseTrim = _baseTrim, isObject$7 = isObject_1, isSymbol$4 = isSymbol_1;
|
|
104
|
+
var NAN = 0 / 0;
|
|
105
|
+
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
|
106
|
+
var reIsBinary = /^0b[01]+$/i;
|
|
107
|
+
var reIsOctal = /^0o[0-7]+$/i;
|
|
108
|
+
var freeParseInt = parseInt;
|
|
109
|
+
function toNumber$1(value) {
|
|
110
|
+
if (typeof value == "number") {
|
|
111
|
+
return value;
|
|
112
|
+
}
|
|
113
|
+
if (isSymbol$4(value)) {
|
|
114
|
+
return NAN;
|
|
115
|
+
}
|
|
116
|
+
if (isObject$7(value)) {
|
|
117
|
+
var other = typeof value.valueOf == "function" ? value.valueOf() : value;
|
|
118
|
+
value = isObject$7(other) ? other + "" : other;
|
|
119
|
+
}
|
|
120
|
+
if (typeof value != "string") {
|
|
121
|
+
return value === 0 ? value : +value;
|
|
122
|
+
}
|
|
123
|
+
value = baseTrim(value);
|
|
124
|
+
var isBinary = reIsBinary.test(value);
|
|
125
|
+
return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;
|
|
126
|
+
}
|
|
127
|
+
var toNumber_1 = toNumber$1;
|
|
128
|
+
var toNumber = toNumber_1;
|
|
129
|
+
var INFINITY$2 = 1 / 0, MAX_INTEGER = 17976931348623157e292;
|
|
130
|
+
function toFinite$1(value) {
|
|
131
|
+
if (!value) {
|
|
132
|
+
return value === 0 ? value : 0;
|
|
133
|
+
}
|
|
134
|
+
value = toNumber(value);
|
|
135
|
+
if (value === INFINITY$2 || value === -INFINITY$2) {
|
|
136
|
+
var sign = value < 0 ? -1 : 1;
|
|
137
|
+
return sign * MAX_INTEGER;
|
|
138
|
+
}
|
|
139
|
+
return value === value ? value : 0;
|
|
140
|
+
}
|
|
141
|
+
var toFinite_1 = toFinite$1;
|
|
142
|
+
var toFinite = toFinite_1;
|
|
143
|
+
function toInteger$2(value) {
|
|
144
|
+
var result = toFinite(value), remainder = result % 1;
|
|
145
|
+
return result === result ? remainder ? result - remainder : result : 0;
|
|
146
|
+
}
|
|
147
|
+
var toInteger_1 = toInteger$2;
|
|
148
|
+
var baseTimes$1 = _baseTimes, castFunction$1 = _castFunction, toInteger$1 = toInteger_1;
|
|
149
|
+
var MAX_SAFE_INTEGER$2 = 9007199254740991;
|
|
150
|
+
var MAX_ARRAY_LENGTH = 4294967295;
|
|
151
|
+
var nativeMin = Math.min;
|
|
152
|
+
function times(n, iteratee) {
|
|
153
|
+
n = toInteger$1(n);
|
|
154
|
+
if (n < 1 || n > MAX_SAFE_INTEGER$2) {
|
|
155
|
+
return [];
|
|
156
|
+
}
|
|
157
|
+
var index = MAX_ARRAY_LENGTH, length = nativeMin(n, MAX_ARRAY_LENGTH);
|
|
158
|
+
iteratee = castFunction$1(iteratee);
|
|
159
|
+
n -= MAX_ARRAY_LENGTH;
|
|
160
|
+
var result = baseTimes$1(length, iteratee);
|
|
161
|
+
while (++index < n) {
|
|
162
|
+
iteratee(index);
|
|
163
|
+
}
|
|
164
|
+
return result;
|
|
165
|
+
}
|
|
166
|
+
var times_1 = times;
|
|
167
|
+
const times$1 = /* @__PURE__ */ getDefaultExportFromCjs(times_1);
|
|
168
|
+
const byteToHex = [];
|
|
169
|
+
for (let i = 0; i < 256; ++i) {
|
|
170
|
+
byteToHex.push((i + 256).toString(16).slice(1));
|
|
171
|
+
}
|
|
172
|
+
function unsafeStringify(arr, offset = 0) {
|
|
173
|
+
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();
|
|
174
|
+
}
|
|
175
|
+
let getRandomValues;
|
|
176
|
+
const rnds8 = new Uint8Array(16);
|
|
177
|
+
function rng() {
|
|
178
|
+
if (!getRandomValues) {
|
|
179
|
+
if (typeof crypto === "undefined" || !crypto.getRandomValues) {
|
|
180
|
+
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
181
|
+
}
|
|
182
|
+
getRandomValues = crypto.getRandomValues.bind(crypto);
|
|
183
|
+
}
|
|
184
|
+
return getRandomValues(rnds8);
|
|
185
|
+
}
|
|
186
|
+
const randomUUID = typeof crypto !== "undefined" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
|
187
|
+
const native = { randomUUID };
|
|
188
|
+
function v4(options, buf, offset) {
|
|
189
|
+
var _a;
|
|
190
|
+
if (native.randomUUID && !buf && !options) {
|
|
191
|
+
return native.randomUUID();
|
|
192
|
+
}
|
|
193
|
+
options = options || {};
|
|
194
|
+
const rnds = options.random ?? ((_a = options.rng) == null ? void 0 : _a.call(options)) ?? rng();
|
|
195
|
+
if (rnds.length < 16) {
|
|
196
|
+
throw new Error("Random bytes length must be >= 16");
|
|
197
|
+
}
|
|
198
|
+
rnds[6] = rnds[6] & 15 | 64;
|
|
199
|
+
rnds[8] = rnds[8] & 63 | 128;
|
|
200
|
+
if (buf) {
|
|
201
|
+
offset = offset || 0;
|
|
202
|
+
if (offset < 0 || offset + 16 > buf.length) {
|
|
203
|
+
throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`);
|
|
204
|
+
}
|
|
205
|
+
for (let i = 0; i < 16; ++i) {
|
|
206
|
+
buf[offset + i] = rnds[i];
|
|
207
|
+
}
|
|
208
|
+
return buf;
|
|
209
|
+
}
|
|
210
|
+
return unsafeStringify(rnds);
|
|
211
|
+
}
|
|
212
|
+
function listCacheClear$1() {
|
|
213
|
+
this.__data__ = [];
|
|
214
|
+
this.size = 0;
|
|
215
|
+
}
|
|
216
|
+
var _listCacheClear = listCacheClear$1;
|
|
217
|
+
function eq$4(value, other) {
|
|
218
|
+
return value === other || value !== value && other !== other;
|
|
219
|
+
}
|
|
220
|
+
var eq_1 = eq$4;
|
|
221
|
+
var eq$3 = eq_1;
|
|
222
|
+
function assocIndexOf$4(array, key) {
|
|
223
|
+
var length = array.length;
|
|
224
|
+
while (length--) {
|
|
225
|
+
if (eq$3(array[length][0], key)) {
|
|
226
|
+
return length;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
return -1;
|
|
230
|
+
}
|
|
231
|
+
var _assocIndexOf = assocIndexOf$4;
|
|
232
|
+
var assocIndexOf$3 = _assocIndexOf;
|
|
233
|
+
var arrayProto = Array.prototype;
|
|
234
|
+
var splice = arrayProto.splice;
|
|
235
|
+
function listCacheDelete$1(key) {
|
|
236
|
+
var data = this.__data__, index = assocIndexOf$3(data, key);
|
|
237
|
+
if (index < 0) {
|
|
238
|
+
return false;
|
|
239
|
+
}
|
|
240
|
+
var lastIndex = data.length - 1;
|
|
241
|
+
if (index == lastIndex) {
|
|
242
|
+
data.pop();
|
|
243
|
+
} else {
|
|
244
|
+
splice.call(data, index, 1);
|
|
245
|
+
}
|
|
246
|
+
--this.size;
|
|
247
|
+
return true;
|
|
248
|
+
}
|
|
249
|
+
var _listCacheDelete = listCacheDelete$1;
|
|
250
|
+
var assocIndexOf$2 = _assocIndexOf;
|
|
251
|
+
function listCacheGet$1(key) {
|
|
252
|
+
var data = this.__data__, index = assocIndexOf$2(data, key);
|
|
253
|
+
return index < 0 ? void 0 : data[index][1];
|
|
254
|
+
}
|
|
255
|
+
var _listCacheGet = listCacheGet$1;
|
|
256
|
+
var assocIndexOf$1 = _assocIndexOf;
|
|
257
|
+
function listCacheHas$1(key) {
|
|
258
|
+
return assocIndexOf$1(this.__data__, key) > -1;
|
|
259
|
+
}
|
|
260
|
+
var _listCacheHas = listCacheHas$1;
|
|
261
|
+
var assocIndexOf = _assocIndexOf;
|
|
262
|
+
function listCacheSet$1(key, value) {
|
|
263
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
264
|
+
if (index < 0) {
|
|
265
|
+
++this.size;
|
|
266
|
+
data.push([key, value]);
|
|
267
|
+
} else {
|
|
268
|
+
data[index][1] = value;
|
|
269
|
+
}
|
|
270
|
+
return this;
|
|
271
|
+
}
|
|
272
|
+
var _listCacheSet = listCacheSet$1;
|
|
273
|
+
var listCacheClear = _listCacheClear, listCacheDelete = _listCacheDelete, listCacheGet = _listCacheGet, listCacheHas = _listCacheHas, listCacheSet = _listCacheSet;
|
|
274
|
+
function ListCache$4(entries) {
|
|
275
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
276
|
+
this.clear();
|
|
277
|
+
while (++index < length) {
|
|
278
|
+
var entry = entries[index];
|
|
279
|
+
this.set(entry[0], entry[1]);
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
ListCache$4.prototype.clear = listCacheClear;
|
|
283
|
+
ListCache$4.prototype["delete"] = listCacheDelete;
|
|
284
|
+
ListCache$4.prototype.get = listCacheGet;
|
|
285
|
+
ListCache$4.prototype.has = listCacheHas;
|
|
286
|
+
ListCache$4.prototype.set = listCacheSet;
|
|
287
|
+
var _ListCache = ListCache$4;
|
|
288
|
+
var ListCache$3 = _ListCache;
|
|
289
|
+
function stackClear$1() {
|
|
290
|
+
this.__data__ = new ListCache$3();
|
|
291
|
+
this.size = 0;
|
|
292
|
+
}
|
|
293
|
+
var _stackClear = stackClear$1;
|
|
294
|
+
function stackDelete$1(key) {
|
|
295
|
+
var data = this.__data__, result = data["delete"](key);
|
|
296
|
+
this.size = data.size;
|
|
297
|
+
return result;
|
|
298
|
+
}
|
|
299
|
+
var _stackDelete = stackDelete$1;
|
|
300
|
+
function stackGet$1(key) {
|
|
301
|
+
return this.__data__.get(key);
|
|
302
|
+
}
|
|
303
|
+
var _stackGet = stackGet$1;
|
|
304
|
+
function stackHas$1(key) {
|
|
305
|
+
return this.__data__.has(key);
|
|
306
|
+
}
|
|
307
|
+
var _stackHas = stackHas$1;
|
|
308
|
+
var baseGetTag$4 = _baseGetTag, isObject$6 = isObject_1;
|
|
309
|
+
var asyncTag = "[object AsyncFunction]", funcTag$2 = "[object Function]", genTag$1 = "[object GeneratorFunction]", proxyTag = "[object Proxy]";
|
|
310
|
+
function isFunction$2(value) {
|
|
311
|
+
if (!isObject$6(value)) {
|
|
312
|
+
return false;
|
|
313
|
+
}
|
|
314
|
+
var tag = baseGetTag$4(value);
|
|
315
|
+
return tag == funcTag$2 || tag == genTag$1 || tag == asyncTag || tag == proxyTag;
|
|
316
|
+
}
|
|
317
|
+
var isFunction_1 = isFunction$2;
|
|
318
|
+
var root$6 = _root;
|
|
319
|
+
var coreJsData$1 = root$6["__core-js_shared__"];
|
|
320
|
+
var _coreJsData = coreJsData$1;
|
|
321
|
+
var coreJsData = _coreJsData;
|
|
322
|
+
var maskSrcKey = function() {
|
|
323
|
+
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
|
|
324
|
+
return uid ? "Symbol(src)_1." + uid : "";
|
|
325
|
+
}();
|
|
326
|
+
function isMasked$1(func) {
|
|
327
|
+
return !!maskSrcKey && maskSrcKey in func;
|
|
328
|
+
}
|
|
329
|
+
var _isMasked = isMasked$1;
|
|
330
|
+
var funcProto$1 = Function.prototype;
|
|
331
|
+
var funcToString$1 = funcProto$1.toString;
|
|
332
|
+
function toSource$2(func) {
|
|
333
|
+
if (func != null) {
|
|
334
|
+
try {
|
|
335
|
+
return funcToString$1.call(func);
|
|
336
|
+
} catch (e) {
|
|
337
|
+
}
|
|
338
|
+
try {
|
|
339
|
+
return func + "";
|
|
340
|
+
} catch (e) {
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
return "";
|
|
344
|
+
}
|
|
345
|
+
var _toSource = toSource$2;
|
|
346
|
+
var isFunction$1 = isFunction_1, isMasked = _isMasked, isObject$5 = isObject_1, toSource$1 = _toSource;
|
|
347
|
+
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
348
|
+
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
349
|
+
var funcProto = Function.prototype, objectProto$c = Object.prototype;
|
|
350
|
+
var funcToString = funcProto.toString;
|
|
351
|
+
var hasOwnProperty$a = objectProto$c.hasOwnProperty;
|
|
352
|
+
var reIsNative = RegExp(
|
|
353
|
+
"^" + funcToString.call(hasOwnProperty$a).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
354
|
+
);
|
|
355
|
+
function baseIsNative$1(value) {
|
|
356
|
+
if (!isObject$5(value) || isMasked(value)) {
|
|
357
|
+
return false;
|
|
358
|
+
}
|
|
359
|
+
var pattern = isFunction$1(value) ? reIsNative : reIsHostCtor;
|
|
360
|
+
return pattern.test(toSource$1(value));
|
|
361
|
+
}
|
|
362
|
+
var _baseIsNative = baseIsNative$1;
|
|
363
|
+
function getValue$1(object, key) {
|
|
364
|
+
return object == null ? void 0 : object[key];
|
|
365
|
+
}
|
|
366
|
+
var _getValue = getValue$1;
|
|
367
|
+
var baseIsNative = _baseIsNative, getValue = _getValue;
|
|
368
|
+
function getNative$7(object, key) {
|
|
369
|
+
var value = getValue(object, key);
|
|
370
|
+
return baseIsNative(value) ? value : void 0;
|
|
371
|
+
}
|
|
372
|
+
var _getNative = getNative$7;
|
|
373
|
+
var getNative$6 = _getNative, root$5 = _root;
|
|
374
|
+
var Map$3 = getNative$6(root$5, "Map");
|
|
375
|
+
var _Map = Map$3;
|
|
376
|
+
var getNative$5 = _getNative;
|
|
377
|
+
var nativeCreate$4 = getNative$5(Object, "create");
|
|
378
|
+
var _nativeCreate = nativeCreate$4;
|
|
379
|
+
var nativeCreate$3 = _nativeCreate;
|
|
380
|
+
function hashClear$1() {
|
|
381
|
+
this.__data__ = nativeCreate$3 ? nativeCreate$3(null) : {};
|
|
382
|
+
this.size = 0;
|
|
383
|
+
}
|
|
384
|
+
var _hashClear = hashClear$1;
|
|
385
|
+
function hashDelete$1(key) {
|
|
386
|
+
var result = this.has(key) && delete this.__data__[key];
|
|
387
|
+
this.size -= result ? 1 : 0;
|
|
388
|
+
return result;
|
|
389
|
+
}
|
|
390
|
+
var _hashDelete = hashDelete$1;
|
|
391
|
+
var nativeCreate$2 = _nativeCreate;
|
|
392
|
+
var HASH_UNDEFINED$2 = "__lodash_hash_undefined__";
|
|
393
|
+
var objectProto$b = Object.prototype;
|
|
394
|
+
var hasOwnProperty$9 = objectProto$b.hasOwnProperty;
|
|
395
|
+
function hashGet$1(key) {
|
|
396
|
+
var data = this.__data__;
|
|
397
|
+
if (nativeCreate$2) {
|
|
398
|
+
var result = data[key];
|
|
399
|
+
return result === HASH_UNDEFINED$2 ? void 0 : result;
|
|
400
|
+
}
|
|
401
|
+
return hasOwnProperty$9.call(data, key) ? data[key] : void 0;
|
|
402
|
+
}
|
|
403
|
+
var _hashGet = hashGet$1;
|
|
404
|
+
var nativeCreate$1 = _nativeCreate;
|
|
405
|
+
var objectProto$a = Object.prototype;
|
|
406
|
+
var hasOwnProperty$8 = objectProto$a.hasOwnProperty;
|
|
407
|
+
function hashHas$1(key) {
|
|
408
|
+
var data = this.__data__;
|
|
409
|
+
return nativeCreate$1 ? data[key] !== void 0 : hasOwnProperty$8.call(data, key);
|
|
410
|
+
}
|
|
411
|
+
var _hashHas = hashHas$1;
|
|
412
|
+
var nativeCreate = _nativeCreate;
|
|
413
|
+
var HASH_UNDEFINED$1 = "__lodash_hash_undefined__";
|
|
414
|
+
function hashSet$1(key, value) {
|
|
415
|
+
var data = this.__data__;
|
|
416
|
+
this.size += this.has(key) ? 0 : 1;
|
|
417
|
+
data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED$1 : value;
|
|
418
|
+
return this;
|
|
419
|
+
}
|
|
420
|
+
var _hashSet = hashSet$1;
|
|
421
|
+
var hashClear = _hashClear, hashDelete = _hashDelete, hashGet = _hashGet, hashHas = _hashHas, hashSet = _hashSet;
|
|
422
|
+
function Hash$1(entries) {
|
|
423
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
424
|
+
this.clear();
|
|
425
|
+
while (++index < length) {
|
|
426
|
+
var entry = entries[index];
|
|
427
|
+
this.set(entry[0], entry[1]);
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
Hash$1.prototype.clear = hashClear;
|
|
431
|
+
Hash$1.prototype["delete"] = hashDelete;
|
|
432
|
+
Hash$1.prototype.get = hashGet;
|
|
433
|
+
Hash$1.prototype.has = hashHas;
|
|
434
|
+
Hash$1.prototype.set = hashSet;
|
|
435
|
+
var _Hash = Hash$1;
|
|
436
|
+
var Hash = _Hash, ListCache$2 = _ListCache, Map$2 = _Map;
|
|
437
|
+
function mapCacheClear$1() {
|
|
438
|
+
this.size = 0;
|
|
439
|
+
this.__data__ = {
|
|
440
|
+
"hash": new Hash(),
|
|
441
|
+
"map": new (Map$2 || ListCache$2)(),
|
|
442
|
+
"string": new Hash()
|
|
443
|
+
};
|
|
444
|
+
}
|
|
445
|
+
var _mapCacheClear = mapCacheClear$1;
|
|
446
|
+
function isKeyable$1(value) {
|
|
447
|
+
var type2 = typeof value;
|
|
448
|
+
return type2 == "string" || type2 == "number" || type2 == "symbol" || type2 == "boolean" ? value !== "__proto__" : value === null;
|
|
449
|
+
}
|
|
450
|
+
var _isKeyable = isKeyable$1;
|
|
451
|
+
var isKeyable = _isKeyable;
|
|
452
|
+
function getMapData$4(map, key) {
|
|
453
|
+
var data = map.__data__;
|
|
454
|
+
return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
|
|
455
|
+
}
|
|
456
|
+
var _getMapData = getMapData$4;
|
|
457
|
+
var getMapData$3 = _getMapData;
|
|
458
|
+
function mapCacheDelete$1(key) {
|
|
459
|
+
var result = getMapData$3(this, key)["delete"](key);
|
|
460
|
+
this.size -= result ? 1 : 0;
|
|
461
|
+
return result;
|
|
462
|
+
}
|
|
463
|
+
var _mapCacheDelete = mapCacheDelete$1;
|
|
464
|
+
var getMapData$2 = _getMapData;
|
|
465
|
+
function mapCacheGet$1(key) {
|
|
466
|
+
return getMapData$2(this, key).get(key);
|
|
467
|
+
}
|
|
468
|
+
var _mapCacheGet = mapCacheGet$1;
|
|
469
|
+
var getMapData$1 = _getMapData;
|
|
470
|
+
function mapCacheHas$1(key) {
|
|
471
|
+
return getMapData$1(this, key).has(key);
|
|
472
|
+
}
|
|
473
|
+
var _mapCacheHas = mapCacheHas$1;
|
|
474
|
+
var getMapData = _getMapData;
|
|
475
|
+
function mapCacheSet$1(key, value) {
|
|
476
|
+
var data = getMapData(this, key), size2 = data.size;
|
|
477
|
+
data.set(key, value);
|
|
478
|
+
this.size += data.size == size2 ? 0 : 1;
|
|
479
|
+
return this;
|
|
480
|
+
}
|
|
481
|
+
var _mapCacheSet = mapCacheSet$1;
|
|
482
|
+
var mapCacheClear = _mapCacheClear, mapCacheDelete = _mapCacheDelete, mapCacheGet = _mapCacheGet, mapCacheHas = _mapCacheHas, mapCacheSet = _mapCacheSet;
|
|
483
|
+
function MapCache$3(entries) {
|
|
484
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
485
|
+
this.clear();
|
|
486
|
+
while (++index < length) {
|
|
487
|
+
var entry = entries[index];
|
|
488
|
+
this.set(entry[0], entry[1]);
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
MapCache$3.prototype.clear = mapCacheClear;
|
|
492
|
+
MapCache$3.prototype["delete"] = mapCacheDelete;
|
|
493
|
+
MapCache$3.prototype.get = mapCacheGet;
|
|
494
|
+
MapCache$3.prototype.has = mapCacheHas;
|
|
495
|
+
MapCache$3.prototype.set = mapCacheSet;
|
|
496
|
+
var _MapCache = MapCache$3;
|
|
497
|
+
var ListCache$1 = _ListCache, Map$1 = _Map, MapCache$2 = _MapCache;
|
|
498
|
+
var LARGE_ARRAY_SIZE = 200;
|
|
499
|
+
function stackSet$1(key, value) {
|
|
500
|
+
var data = this.__data__;
|
|
501
|
+
if (data instanceof ListCache$1) {
|
|
502
|
+
var pairs = data.__data__;
|
|
503
|
+
if (!Map$1 || pairs.length < LARGE_ARRAY_SIZE - 1) {
|
|
504
|
+
pairs.push([key, value]);
|
|
505
|
+
this.size = ++data.size;
|
|
506
|
+
return this;
|
|
507
|
+
}
|
|
508
|
+
data = this.__data__ = new MapCache$2(pairs);
|
|
509
|
+
}
|
|
510
|
+
data.set(key, value);
|
|
511
|
+
this.size = data.size;
|
|
512
|
+
return this;
|
|
513
|
+
}
|
|
514
|
+
var _stackSet = stackSet$1;
|
|
515
|
+
var ListCache = _ListCache, stackClear = _stackClear, stackDelete = _stackDelete, stackGet = _stackGet, stackHas = _stackHas, stackSet = _stackSet;
|
|
516
|
+
function Stack$3(entries) {
|
|
517
|
+
var data = this.__data__ = new ListCache(entries);
|
|
518
|
+
this.size = data.size;
|
|
519
|
+
}
|
|
520
|
+
Stack$3.prototype.clear = stackClear;
|
|
521
|
+
Stack$3.prototype["delete"] = stackDelete;
|
|
522
|
+
Stack$3.prototype.get = stackGet;
|
|
523
|
+
Stack$3.prototype.has = stackHas;
|
|
524
|
+
Stack$3.prototype.set = stackSet;
|
|
525
|
+
var _Stack = Stack$3;
|
|
526
|
+
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
527
|
+
function setCacheAdd$1(value) {
|
|
528
|
+
this.__data__.set(value, HASH_UNDEFINED);
|
|
529
|
+
return this;
|
|
530
|
+
}
|
|
531
|
+
var _setCacheAdd = setCacheAdd$1;
|
|
532
|
+
function setCacheHas$1(value) {
|
|
533
|
+
return this.__data__.has(value);
|
|
534
|
+
}
|
|
535
|
+
var _setCacheHas = setCacheHas$1;
|
|
536
|
+
var MapCache$1 = _MapCache, setCacheAdd = _setCacheAdd, setCacheHas = _setCacheHas;
|
|
537
|
+
function SetCache$1(values) {
|
|
538
|
+
var index = -1, length = values == null ? 0 : values.length;
|
|
539
|
+
this.__data__ = new MapCache$1();
|
|
540
|
+
while (++index < length) {
|
|
541
|
+
this.add(values[index]);
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
SetCache$1.prototype.add = SetCache$1.prototype.push = setCacheAdd;
|
|
545
|
+
SetCache$1.prototype.has = setCacheHas;
|
|
546
|
+
var _SetCache = SetCache$1;
|
|
547
|
+
function arraySome$1(array, predicate) {
|
|
548
|
+
var index = -1, length = array == null ? 0 : array.length;
|
|
549
|
+
while (++index < length) {
|
|
550
|
+
if (predicate(array[index], index, array)) {
|
|
551
|
+
return true;
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
return false;
|
|
555
|
+
}
|
|
556
|
+
var _arraySome = arraySome$1;
|
|
557
|
+
function cacheHas$1(cache, key) {
|
|
558
|
+
return cache.has(key);
|
|
559
|
+
}
|
|
560
|
+
var _cacheHas = cacheHas$1;
|
|
561
|
+
var SetCache = _SetCache, arraySome = _arraySome, cacheHas = _cacheHas;
|
|
562
|
+
var COMPARE_PARTIAL_FLAG$5 = 1, COMPARE_UNORDERED_FLAG$3 = 2;
|
|
563
|
+
function equalArrays$2(array, other, bitmask, customizer, equalFunc, stack) {
|
|
564
|
+
var isPartial = bitmask & COMPARE_PARTIAL_FLAG$5, arrLength = array.length, othLength = other.length;
|
|
565
|
+
if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
|
|
566
|
+
return false;
|
|
567
|
+
}
|
|
568
|
+
var arrStacked = stack.get(array);
|
|
569
|
+
var othStacked = stack.get(other);
|
|
570
|
+
if (arrStacked && othStacked) {
|
|
571
|
+
return arrStacked == other && othStacked == array;
|
|
572
|
+
}
|
|
573
|
+
var index = -1, result = true, seen = bitmask & COMPARE_UNORDERED_FLAG$3 ? new SetCache() : void 0;
|
|
574
|
+
stack.set(array, other);
|
|
575
|
+
stack.set(other, array);
|
|
576
|
+
while (++index < arrLength) {
|
|
577
|
+
var arrValue = array[index], othValue = other[index];
|
|
578
|
+
if (customizer) {
|
|
579
|
+
var compared = isPartial ? customizer(othValue, arrValue, index, other, array, stack) : customizer(arrValue, othValue, index, array, other, stack);
|
|
580
|
+
}
|
|
581
|
+
if (compared !== void 0) {
|
|
582
|
+
if (compared) {
|
|
583
|
+
continue;
|
|
584
|
+
}
|
|
585
|
+
result = false;
|
|
586
|
+
break;
|
|
587
|
+
}
|
|
588
|
+
if (seen) {
|
|
589
|
+
if (!arraySome(other, function(othValue2, othIndex) {
|
|
590
|
+
if (!cacheHas(seen, othIndex) && (arrValue === othValue2 || equalFunc(arrValue, othValue2, bitmask, customizer, stack))) {
|
|
591
|
+
return seen.push(othIndex);
|
|
592
|
+
}
|
|
593
|
+
})) {
|
|
594
|
+
result = false;
|
|
595
|
+
break;
|
|
596
|
+
}
|
|
597
|
+
} else if (!(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
|
|
598
|
+
result = false;
|
|
599
|
+
break;
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
stack["delete"](array);
|
|
603
|
+
stack["delete"](other);
|
|
604
|
+
return result;
|
|
605
|
+
}
|
|
606
|
+
var _equalArrays = equalArrays$2;
|
|
607
|
+
var root$4 = _root;
|
|
608
|
+
var Uint8Array$3 = root$4.Uint8Array;
|
|
609
|
+
var _Uint8Array = Uint8Array$3;
|
|
610
|
+
function mapToArray$1(map) {
|
|
611
|
+
var index = -1, result = Array(map.size);
|
|
612
|
+
map.forEach(function(value, key) {
|
|
613
|
+
result[++index] = [key, value];
|
|
614
|
+
});
|
|
615
|
+
return result;
|
|
616
|
+
}
|
|
617
|
+
var _mapToArray = mapToArray$1;
|
|
618
|
+
function setToArray$1(set) {
|
|
619
|
+
var index = -1, result = Array(set.size);
|
|
620
|
+
set.forEach(function(value) {
|
|
621
|
+
result[++index] = value;
|
|
622
|
+
});
|
|
623
|
+
return result;
|
|
624
|
+
}
|
|
625
|
+
var _setToArray = setToArray$1;
|
|
626
|
+
var Symbol$4 = _Symbol, Uint8Array$2 = _Uint8Array, eq$2 = eq_1, equalArrays$1 = _equalArrays, mapToArray = _mapToArray, setToArray = _setToArray;
|
|
627
|
+
var COMPARE_PARTIAL_FLAG$4 = 1, COMPARE_UNORDERED_FLAG$2 = 2;
|
|
628
|
+
var boolTag$3 = "[object Boolean]", dateTag$3 = "[object Date]", errorTag$2 = "[object Error]", mapTag$6 = "[object Map]", numberTag$3 = "[object Number]", regexpTag$3 = "[object RegExp]", setTag$6 = "[object Set]", stringTag$4 = "[object String]", symbolTag$2 = "[object Symbol]";
|
|
629
|
+
var arrayBufferTag$3 = "[object ArrayBuffer]", dataViewTag$4 = "[object DataView]";
|
|
630
|
+
var symbolProto$2 = Symbol$4 ? Symbol$4.prototype : void 0, symbolValueOf$1 = symbolProto$2 ? symbolProto$2.valueOf : void 0;
|
|
631
|
+
function equalByTag$1(object, other, tag, bitmask, customizer, equalFunc, stack) {
|
|
632
|
+
switch (tag) {
|
|
633
|
+
case dataViewTag$4:
|
|
634
|
+
if (object.byteLength != other.byteLength || object.byteOffset != other.byteOffset) {
|
|
635
|
+
return false;
|
|
636
|
+
}
|
|
637
|
+
object = object.buffer;
|
|
638
|
+
other = other.buffer;
|
|
639
|
+
case arrayBufferTag$3:
|
|
640
|
+
if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array$2(object), new Uint8Array$2(other))) {
|
|
641
|
+
return false;
|
|
642
|
+
}
|
|
643
|
+
return true;
|
|
644
|
+
case boolTag$3:
|
|
645
|
+
case dateTag$3:
|
|
646
|
+
case numberTag$3:
|
|
647
|
+
return eq$2(+object, +other);
|
|
648
|
+
case errorTag$2:
|
|
649
|
+
return object.name == other.name && object.message == other.message;
|
|
650
|
+
case regexpTag$3:
|
|
651
|
+
case stringTag$4:
|
|
652
|
+
return object == other + "";
|
|
653
|
+
case mapTag$6:
|
|
654
|
+
var convert = mapToArray;
|
|
655
|
+
case setTag$6:
|
|
656
|
+
var isPartial = bitmask & COMPARE_PARTIAL_FLAG$4;
|
|
657
|
+
convert || (convert = setToArray);
|
|
658
|
+
if (object.size != other.size && !isPartial) {
|
|
659
|
+
return false;
|
|
660
|
+
}
|
|
661
|
+
var stacked = stack.get(object);
|
|
662
|
+
if (stacked) {
|
|
663
|
+
return stacked == other;
|
|
664
|
+
}
|
|
665
|
+
bitmask |= COMPARE_UNORDERED_FLAG$2;
|
|
666
|
+
stack.set(object, other);
|
|
667
|
+
var result = equalArrays$1(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
|
|
668
|
+
stack["delete"](object);
|
|
669
|
+
return result;
|
|
670
|
+
case symbolTag$2:
|
|
671
|
+
if (symbolValueOf$1) {
|
|
672
|
+
return symbolValueOf$1.call(object) == symbolValueOf$1.call(other);
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
return false;
|
|
676
|
+
}
|
|
677
|
+
var _equalByTag = equalByTag$1;
|
|
678
|
+
function arrayPush$3(array, values) {
|
|
679
|
+
var index = -1, length = values.length, offset = array.length;
|
|
680
|
+
while (++index < length) {
|
|
681
|
+
array[offset + index] = values[index];
|
|
682
|
+
}
|
|
683
|
+
return array;
|
|
684
|
+
}
|
|
685
|
+
var _arrayPush = arrayPush$3;
|
|
686
|
+
var isArray$d = Array.isArray;
|
|
687
|
+
var isArray_1 = isArray$d;
|
|
688
|
+
var arrayPush$2 = _arrayPush, isArray$c = isArray_1;
|
|
689
|
+
function baseGetAllKeys$2(object, keysFunc, symbolsFunc) {
|
|
690
|
+
var result = keysFunc(object);
|
|
691
|
+
return isArray$c(object) ? result : arrayPush$2(result, symbolsFunc(object));
|
|
692
|
+
}
|
|
693
|
+
var _baseGetAllKeys = baseGetAllKeys$2;
|
|
694
|
+
function arrayFilter$1(array, predicate) {
|
|
695
|
+
var index = -1, length = array == null ? 0 : array.length, resIndex = 0, result = [];
|
|
696
|
+
while (++index < length) {
|
|
697
|
+
var value = array[index];
|
|
698
|
+
if (predicate(value, index, array)) {
|
|
699
|
+
result[resIndex++] = value;
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
return result;
|
|
703
|
+
}
|
|
704
|
+
var _arrayFilter = arrayFilter$1;
|
|
705
|
+
function stubArray$2() {
|
|
706
|
+
return [];
|
|
707
|
+
}
|
|
708
|
+
var stubArray_1 = stubArray$2;
|
|
709
|
+
var arrayFilter = _arrayFilter, stubArray$1 = stubArray_1;
|
|
710
|
+
var objectProto$9 = Object.prototype;
|
|
711
|
+
var propertyIsEnumerable$1 = objectProto$9.propertyIsEnumerable;
|
|
712
|
+
var nativeGetSymbols$1 = Object.getOwnPropertySymbols;
|
|
713
|
+
var getSymbols$3 = !nativeGetSymbols$1 ? stubArray$1 : function(object) {
|
|
714
|
+
if (object == null) {
|
|
715
|
+
return [];
|
|
716
|
+
}
|
|
717
|
+
object = Object(object);
|
|
718
|
+
return arrayFilter(nativeGetSymbols$1(object), function(symbol) {
|
|
719
|
+
return propertyIsEnumerable$1.call(object, symbol);
|
|
720
|
+
});
|
|
721
|
+
};
|
|
722
|
+
var _getSymbols = getSymbols$3;
|
|
723
|
+
var baseGetTag$3 = _baseGetTag, isObjectLike$6 = isObjectLike_1;
|
|
724
|
+
var argsTag$3 = "[object Arguments]";
|
|
725
|
+
function baseIsArguments$1(value) {
|
|
726
|
+
return isObjectLike$6(value) && baseGetTag$3(value) == argsTag$3;
|
|
727
|
+
}
|
|
728
|
+
var _baseIsArguments = baseIsArguments$1;
|
|
729
|
+
var baseIsArguments = _baseIsArguments, isObjectLike$5 = isObjectLike_1;
|
|
730
|
+
var objectProto$8 = Object.prototype;
|
|
731
|
+
var hasOwnProperty$7 = objectProto$8.hasOwnProperty;
|
|
732
|
+
var propertyIsEnumerable = objectProto$8.propertyIsEnumerable;
|
|
733
|
+
var isArguments$3 = baseIsArguments(function() {
|
|
734
|
+
return arguments;
|
|
735
|
+
}()) ? baseIsArguments : function(value) {
|
|
736
|
+
return isObjectLike$5(value) && hasOwnProperty$7.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
|
|
737
|
+
};
|
|
738
|
+
var isArguments_1 = isArguments$3;
|
|
739
|
+
var isBuffer$3 = { exports: {} };
|
|
740
|
+
function stubFalse() {
|
|
741
|
+
return false;
|
|
742
|
+
}
|
|
743
|
+
var stubFalse_1 = stubFalse;
|
|
744
|
+
isBuffer$3.exports;
|
|
745
|
+
(function(module2, exports2) {
|
|
746
|
+
var root2 = _root, stubFalse2 = stubFalse_1;
|
|
747
|
+
var freeExports = exports2 && !exports2.nodeType && exports2;
|
|
748
|
+
var freeModule = freeExports && true && module2 && !module2.nodeType && module2;
|
|
749
|
+
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
750
|
+
var Buffer = moduleExports ? root2.Buffer : void 0;
|
|
751
|
+
var nativeIsBuffer = Buffer ? Buffer.isBuffer : void 0;
|
|
752
|
+
var isBuffer2 = nativeIsBuffer || stubFalse2;
|
|
753
|
+
module2.exports = isBuffer2;
|
|
754
|
+
})(isBuffer$3, isBuffer$3.exports);
|
|
755
|
+
var isBufferExports = isBuffer$3.exports;
|
|
756
|
+
var MAX_SAFE_INTEGER$1 = 9007199254740991;
|
|
757
|
+
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
758
|
+
function isIndex$3(value, length) {
|
|
759
|
+
var type2 = typeof value;
|
|
760
|
+
length = length == null ? MAX_SAFE_INTEGER$1 : length;
|
|
761
|
+
return !!length && (type2 == "number" || type2 != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
|
|
762
|
+
}
|
|
763
|
+
var _isIndex = isIndex$3;
|
|
764
|
+
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
765
|
+
function isLength$3(value) {
|
|
766
|
+
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
767
|
+
}
|
|
768
|
+
var isLength_1 = isLength$3;
|
|
769
|
+
var baseGetTag$2 = _baseGetTag, isLength$2 = isLength_1, isObjectLike$4 = isObjectLike_1;
|
|
770
|
+
var argsTag$2 = "[object Arguments]", arrayTag$2 = "[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$3 = "[object Object]", regexpTag$2 = "[object RegExp]", setTag$5 = "[object Set]", stringTag$3 = "[object String]", weakMapTag$2 = "[object WeakMap]";
|
|
771
|
+
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]";
|
|
772
|
+
var typedArrayTags = {};
|
|
773
|
+
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;
|
|
774
|
+
typedArrayTags[argsTag$2] = typedArrayTags[arrayTag$2] = 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$3] = typedArrayTags[regexpTag$2] = typedArrayTags[setTag$5] = typedArrayTags[stringTag$3] = typedArrayTags[weakMapTag$2] = false;
|
|
775
|
+
function baseIsTypedArray$1(value) {
|
|
776
|
+
return isObjectLike$4(value) && isLength$2(value.length) && !!typedArrayTags[baseGetTag$2(value)];
|
|
777
|
+
}
|
|
778
|
+
var _baseIsTypedArray = baseIsTypedArray$1;
|
|
779
|
+
function baseUnary$4(func) {
|
|
780
|
+
return function(value) {
|
|
781
|
+
return func(value);
|
|
782
|
+
};
|
|
783
|
+
}
|
|
784
|
+
var _baseUnary = baseUnary$4;
|
|
785
|
+
var _nodeUtil = { exports: {} };
|
|
786
|
+
_nodeUtil.exports;
|
|
787
|
+
(function(module2, exports2) {
|
|
788
|
+
var freeGlobal2 = _freeGlobal;
|
|
789
|
+
var freeExports = exports2 && !exports2.nodeType && exports2;
|
|
790
|
+
var freeModule = freeExports && true && module2 && !module2.nodeType && module2;
|
|
791
|
+
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
792
|
+
var freeProcess = moduleExports && freeGlobal2.process;
|
|
793
|
+
var nodeUtil2 = function() {
|
|
794
|
+
try {
|
|
795
|
+
var types = freeModule && freeModule.require && freeModule.require("util").types;
|
|
796
|
+
if (types) {
|
|
797
|
+
return types;
|
|
798
|
+
}
|
|
799
|
+
return freeProcess && freeProcess.binding && freeProcess.binding("util");
|
|
800
|
+
} catch (e) {
|
|
801
|
+
}
|
|
802
|
+
}();
|
|
803
|
+
module2.exports = nodeUtil2;
|
|
804
|
+
})(_nodeUtil, _nodeUtil.exports);
|
|
805
|
+
var _nodeUtilExports = _nodeUtil.exports;
|
|
806
|
+
var baseIsTypedArray = _baseIsTypedArray, baseUnary$3 = _baseUnary, nodeUtil$2 = _nodeUtilExports;
|
|
807
|
+
var nodeIsTypedArray = nodeUtil$2 && nodeUtil$2.isTypedArray;
|
|
808
|
+
var isTypedArray$2 = nodeIsTypedArray ? baseUnary$3(nodeIsTypedArray) : baseIsTypedArray;
|
|
809
|
+
var isTypedArray_1 = isTypedArray$2;
|
|
810
|
+
var baseTimes = _baseTimes, isArguments$2 = isArguments_1, isArray$b = isArray_1, isBuffer$2 = isBufferExports, isIndex$2 = _isIndex, isTypedArray$1 = isTypedArray_1;
|
|
811
|
+
var objectProto$7 = Object.prototype;
|
|
812
|
+
var hasOwnProperty$6 = objectProto$7.hasOwnProperty;
|
|
813
|
+
function arrayLikeKeys$2(value, inherited) {
|
|
814
|
+
var isArr = isArray$b(value), isArg = !isArr && isArguments$2(value), isBuff = !isArr && !isArg && isBuffer$2(value), isType = !isArr && !isArg && !isBuff && isTypedArray$1(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
|
|
815
|
+
for (var key in value) {
|
|
816
|
+
if ((inherited || hasOwnProperty$6.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
817
|
+
(key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
818
|
+
isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
819
|
+
isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
|
|
820
|
+
isIndex$2(key, length)))) {
|
|
821
|
+
result.push(key);
|
|
822
|
+
}
|
|
823
|
+
}
|
|
824
|
+
return result;
|
|
825
|
+
}
|
|
826
|
+
var _arrayLikeKeys = arrayLikeKeys$2;
|
|
827
|
+
var objectProto$6 = Object.prototype;
|
|
828
|
+
function isPrototype$3(value) {
|
|
829
|
+
var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto$6;
|
|
830
|
+
return value === proto;
|
|
831
|
+
}
|
|
832
|
+
var _isPrototype = isPrototype$3;
|
|
833
|
+
function overArg$2(func, transform) {
|
|
834
|
+
return function(arg) {
|
|
835
|
+
return func(transform(arg));
|
|
836
|
+
};
|
|
837
|
+
}
|
|
838
|
+
var _overArg = overArg$2;
|
|
839
|
+
var overArg$1 = _overArg;
|
|
840
|
+
var nativeKeys$1 = overArg$1(Object.keys, Object);
|
|
841
|
+
var _nativeKeys = nativeKeys$1;
|
|
842
|
+
var isPrototype$2 = _isPrototype, nativeKeys = _nativeKeys;
|
|
843
|
+
var objectProto$5 = Object.prototype;
|
|
844
|
+
var hasOwnProperty$5 = objectProto$5.hasOwnProperty;
|
|
845
|
+
function baseKeys$2(object) {
|
|
846
|
+
if (!isPrototype$2(object)) {
|
|
847
|
+
return nativeKeys(object);
|
|
848
|
+
}
|
|
849
|
+
var result = [];
|
|
850
|
+
for (var key in Object(object)) {
|
|
851
|
+
if (hasOwnProperty$5.call(object, key) && key != "constructor") {
|
|
852
|
+
result.push(key);
|
|
853
|
+
}
|
|
854
|
+
}
|
|
855
|
+
return result;
|
|
856
|
+
}
|
|
857
|
+
var _baseKeys = baseKeys$2;
|
|
858
|
+
var isFunction = isFunction_1, isLength$1 = isLength_1;
|
|
859
|
+
function isArrayLike$7(value) {
|
|
860
|
+
return value != null && isLength$1(value.length) && !isFunction(value);
|
|
861
|
+
}
|
|
862
|
+
var isArrayLike_1 = isArrayLike$7;
|
|
863
|
+
var arrayLikeKeys$1 = _arrayLikeKeys, baseKeys$1 = _baseKeys, isArrayLike$6 = isArrayLike_1;
|
|
864
|
+
function keys$6(object) {
|
|
865
|
+
return isArrayLike$6(object) ? arrayLikeKeys$1(object) : baseKeys$1(object);
|
|
866
|
+
}
|
|
867
|
+
var keys_1 = keys$6;
|
|
868
|
+
var baseGetAllKeys$1 = _baseGetAllKeys, getSymbols$2 = _getSymbols, keys$5 = keys_1;
|
|
869
|
+
function getAllKeys$2(object) {
|
|
870
|
+
return baseGetAllKeys$1(object, keys$5, getSymbols$2);
|
|
871
|
+
}
|
|
872
|
+
var _getAllKeys = getAllKeys$2;
|
|
873
|
+
var getAllKeys$1 = _getAllKeys;
|
|
874
|
+
var COMPARE_PARTIAL_FLAG$3 = 1;
|
|
875
|
+
var objectProto$4 = Object.prototype;
|
|
876
|
+
var hasOwnProperty$4 = objectProto$4.hasOwnProperty;
|
|
877
|
+
function equalObjects$1(object, other, bitmask, customizer, equalFunc, stack) {
|
|
878
|
+
var isPartial = bitmask & COMPARE_PARTIAL_FLAG$3, objProps = getAllKeys$1(object), objLength = objProps.length, othProps = getAllKeys$1(other), othLength = othProps.length;
|
|
879
|
+
if (objLength != othLength && !isPartial) {
|
|
880
|
+
return false;
|
|
881
|
+
}
|
|
882
|
+
var index = objLength;
|
|
883
|
+
while (index--) {
|
|
884
|
+
var key = objProps[index];
|
|
885
|
+
if (!(isPartial ? key in other : hasOwnProperty$4.call(other, key))) {
|
|
886
|
+
return false;
|
|
887
|
+
}
|
|
888
|
+
}
|
|
889
|
+
var objStacked = stack.get(object);
|
|
890
|
+
var othStacked = stack.get(other);
|
|
891
|
+
if (objStacked && othStacked) {
|
|
892
|
+
return objStacked == other && othStacked == object;
|
|
893
|
+
}
|
|
894
|
+
var result = true;
|
|
895
|
+
stack.set(object, other);
|
|
896
|
+
stack.set(other, object);
|
|
897
|
+
var skipCtor = isPartial;
|
|
898
|
+
while (++index < objLength) {
|
|
899
|
+
key = objProps[index];
|
|
900
|
+
var objValue = object[key], othValue = other[key];
|
|
901
|
+
if (customizer) {
|
|
902
|
+
var compared = isPartial ? customizer(othValue, objValue, key, other, object, stack) : customizer(objValue, othValue, key, object, other, stack);
|
|
903
|
+
}
|
|
904
|
+
if (!(compared === void 0 ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) : compared)) {
|
|
905
|
+
result = false;
|
|
906
|
+
break;
|
|
907
|
+
}
|
|
908
|
+
skipCtor || (skipCtor = key == "constructor");
|
|
909
|
+
}
|
|
910
|
+
if (result && !skipCtor) {
|
|
911
|
+
var objCtor = object.constructor, othCtor = other.constructor;
|
|
912
|
+
if (objCtor != othCtor && ("constructor" in object && "constructor" in other) && !(typeof objCtor == "function" && objCtor instanceof objCtor && typeof othCtor == "function" && othCtor instanceof othCtor)) {
|
|
913
|
+
result = false;
|
|
914
|
+
}
|
|
915
|
+
}
|
|
916
|
+
stack["delete"](object);
|
|
917
|
+
stack["delete"](other);
|
|
918
|
+
return result;
|
|
919
|
+
}
|
|
920
|
+
var _equalObjects = equalObjects$1;
|
|
921
|
+
var getNative$4 = _getNative, root$3 = _root;
|
|
922
|
+
var DataView$1 = getNative$4(root$3, "DataView");
|
|
923
|
+
var _DataView = DataView$1;
|
|
924
|
+
var getNative$3 = _getNative, root$2 = _root;
|
|
925
|
+
var Promise$2 = getNative$3(root$2, "Promise");
|
|
926
|
+
var _Promise = Promise$2;
|
|
927
|
+
var getNative$2 = _getNative, root$1 = _root;
|
|
928
|
+
var Set$1 = getNative$2(root$1, "Set");
|
|
929
|
+
var _Set = Set$1;
|
|
930
|
+
var getNative$1 = _getNative, root = _root;
|
|
931
|
+
var WeakMap$1 = getNative$1(root, "WeakMap");
|
|
932
|
+
var _WeakMap = WeakMap$1;
|
|
933
|
+
var DataView = _DataView, Map = _Map, Promise$1 = _Promise, Set = _Set, WeakMap = _WeakMap, baseGetTag$1 = _baseGetTag, toSource = _toSource;
|
|
934
|
+
var mapTag$4 = "[object Map]", objectTag$2 = "[object Object]", promiseTag = "[object Promise]", setTag$4 = "[object Set]", weakMapTag$1 = "[object WeakMap]";
|
|
935
|
+
var dataViewTag$2 = "[object DataView]";
|
|
936
|
+
var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map), promiseCtorString = toSource(Promise$1), setCtorString = toSource(Set), weakMapCtorString = toSource(WeakMap);
|
|
937
|
+
var getTag$5 = baseGetTag$1;
|
|
938
|
+
if (DataView && getTag$5(new DataView(new ArrayBuffer(1))) != dataViewTag$2 || Map && getTag$5(new Map()) != mapTag$4 || Promise$1 && getTag$5(Promise$1.resolve()) != promiseTag || Set && getTag$5(new Set()) != setTag$4 || WeakMap && getTag$5(new WeakMap()) != weakMapTag$1) {
|
|
939
|
+
getTag$5 = function(value) {
|
|
940
|
+
var result = baseGetTag$1(value), Ctor = result == objectTag$2 ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : "";
|
|
941
|
+
if (ctorString) {
|
|
942
|
+
switch (ctorString) {
|
|
943
|
+
case dataViewCtorString:
|
|
944
|
+
return dataViewTag$2;
|
|
945
|
+
case mapCtorString:
|
|
946
|
+
return mapTag$4;
|
|
947
|
+
case promiseCtorString:
|
|
948
|
+
return promiseTag;
|
|
949
|
+
case setCtorString:
|
|
950
|
+
return setTag$4;
|
|
951
|
+
case weakMapCtorString:
|
|
952
|
+
return weakMapTag$1;
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
return result;
|
|
956
|
+
};
|
|
957
|
+
}
|
|
958
|
+
var _getTag = getTag$5;
|
|
959
|
+
var Stack$2 = _Stack, equalArrays = _equalArrays, equalByTag = _equalByTag, equalObjects = _equalObjects, getTag$4 = _getTag, isArray$a = isArray_1, isBuffer$1 = isBufferExports, isTypedArray = isTypedArray_1;
|
|
960
|
+
var COMPARE_PARTIAL_FLAG$2 = 1;
|
|
961
|
+
var argsTag$1 = "[object Arguments]", arrayTag$1 = "[object Array]", objectTag$1 = "[object Object]";
|
|
962
|
+
var objectProto$3 = Object.prototype;
|
|
963
|
+
var hasOwnProperty$3 = objectProto$3.hasOwnProperty;
|
|
964
|
+
function baseIsEqualDeep$1(object, other, bitmask, customizer, equalFunc, stack) {
|
|
965
|
+
var objIsArr = isArray$a(object), othIsArr = isArray$a(other), objTag = objIsArr ? arrayTag$1 : getTag$4(object), othTag = othIsArr ? arrayTag$1 : getTag$4(other);
|
|
966
|
+
objTag = objTag == argsTag$1 ? objectTag$1 : objTag;
|
|
967
|
+
othTag = othTag == argsTag$1 ? objectTag$1 : othTag;
|
|
968
|
+
var objIsObj = objTag == objectTag$1, othIsObj = othTag == objectTag$1, isSameTag = objTag == othTag;
|
|
969
|
+
if (isSameTag && isBuffer$1(object)) {
|
|
970
|
+
if (!isBuffer$1(other)) {
|
|
971
|
+
return false;
|
|
972
|
+
}
|
|
973
|
+
objIsArr = true;
|
|
974
|
+
objIsObj = false;
|
|
975
|
+
}
|
|
976
|
+
if (isSameTag && !objIsObj) {
|
|
977
|
+
stack || (stack = new Stack$2());
|
|
978
|
+
return objIsArr || isTypedArray(object) ? equalArrays(object, other, bitmask, customizer, equalFunc, stack) : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
|
|
979
|
+
}
|
|
980
|
+
if (!(bitmask & COMPARE_PARTIAL_FLAG$2)) {
|
|
981
|
+
var objIsWrapped = objIsObj && hasOwnProperty$3.call(object, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty$3.call(other, "__wrapped__");
|
|
982
|
+
if (objIsWrapped || othIsWrapped) {
|
|
983
|
+
var objUnwrapped = objIsWrapped ? object.value() : object, othUnwrapped = othIsWrapped ? other.value() : other;
|
|
984
|
+
stack || (stack = new Stack$2());
|
|
985
|
+
return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
|
|
986
|
+
}
|
|
987
|
+
}
|
|
988
|
+
if (!isSameTag) {
|
|
989
|
+
return false;
|
|
990
|
+
}
|
|
991
|
+
stack || (stack = new Stack$2());
|
|
992
|
+
return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
|
|
993
|
+
}
|
|
994
|
+
var _baseIsEqualDeep = baseIsEqualDeep$1;
|
|
995
|
+
var baseIsEqualDeep = _baseIsEqualDeep, isObjectLike$3 = isObjectLike_1;
|
|
996
|
+
function baseIsEqual$2(value, other, bitmask, customizer, stack) {
|
|
997
|
+
if (value === other) {
|
|
998
|
+
return true;
|
|
999
|
+
}
|
|
1000
|
+
if (value == null || other == null || !isObjectLike$3(value) && !isObjectLike$3(other)) {
|
|
1001
|
+
return value !== value && other !== other;
|
|
1002
|
+
}
|
|
1003
|
+
return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual$2, stack);
|
|
1004
|
+
}
|
|
1005
|
+
var _baseIsEqual = baseIsEqual$2;
|
|
1006
|
+
var Stack$1 = _Stack, baseIsEqual$1 = _baseIsEqual;
|
|
1007
|
+
var COMPARE_PARTIAL_FLAG$1 = 1, COMPARE_UNORDERED_FLAG$1 = 2;
|
|
1008
|
+
function baseIsMatch$1(object, source, matchData, customizer) {
|
|
1009
|
+
var index = matchData.length, length = index, noCustomizer = !customizer;
|
|
1010
|
+
if (object == null) {
|
|
1011
|
+
return !length;
|
|
1012
|
+
}
|
|
1013
|
+
object = Object(object);
|
|
1014
|
+
while (index--) {
|
|
1015
|
+
var data = matchData[index];
|
|
1016
|
+
if (noCustomizer && data[2] ? data[1] !== object[data[0]] : !(data[0] in object)) {
|
|
1017
|
+
return false;
|
|
1018
|
+
}
|
|
1019
|
+
}
|
|
1020
|
+
while (++index < length) {
|
|
1021
|
+
data = matchData[index];
|
|
1022
|
+
var key = data[0], objValue = object[key], srcValue = data[1];
|
|
1023
|
+
if (noCustomizer && data[2]) {
|
|
1024
|
+
if (objValue === void 0 && !(key in object)) {
|
|
1025
|
+
return false;
|
|
1026
|
+
}
|
|
1027
|
+
} else {
|
|
1028
|
+
var stack = new Stack$1();
|
|
1029
|
+
if (customizer) {
|
|
1030
|
+
var result = customizer(objValue, srcValue, key, object, source, stack);
|
|
1031
|
+
}
|
|
1032
|
+
if (!(result === void 0 ? baseIsEqual$1(srcValue, objValue, COMPARE_PARTIAL_FLAG$1 | COMPARE_UNORDERED_FLAG$1, customizer, stack) : result)) {
|
|
1033
|
+
return false;
|
|
1034
|
+
}
|
|
1035
|
+
}
|
|
1036
|
+
}
|
|
1037
|
+
return true;
|
|
1038
|
+
}
|
|
1039
|
+
var _baseIsMatch = baseIsMatch$1;
|
|
1040
|
+
var isObject$4 = isObject_1;
|
|
1041
|
+
function isStrictComparable$2(value) {
|
|
1042
|
+
return value === value && !isObject$4(value);
|
|
1043
|
+
}
|
|
1044
|
+
var _isStrictComparable = isStrictComparable$2;
|
|
1045
|
+
var isStrictComparable$1 = _isStrictComparable, keys$4 = keys_1;
|
|
1046
|
+
function getMatchData$1(object) {
|
|
1047
|
+
var result = keys$4(object), length = result.length;
|
|
1048
|
+
while (length--) {
|
|
1049
|
+
var key = result[length], value = object[key];
|
|
1050
|
+
result[length] = [key, value, isStrictComparable$1(value)];
|
|
1051
|
+
}
|
|
1052
|
+
return result;
|
|
1053
|
+
}
|
|
1054
|
+
var _getMatchData = getMatchData$1;
|
|
1055
|
+
function matchesStrictComparable$2(key, srcValue) {
|
|
1056
|
+
return function(object) {
|
|
1057
|
+
if (object == null) {
|
|
1058
|
+
return false;
|
|
1059
|
+
}
|
|
1060
|
+
return object[key] === srcValue && (srcValue !== void 0 || key in Object(object));
|
|
1061
|
+
};
|
|
1062
|
+
}
|
|
1063
|
+
var _matchesStrictComparable = matchesStrictComparable$2;
|
|
1064
|
+
var baseIsMatch = _baseIsMatch, getMatchData = _getMatchData, matchesStrictComparable$1 = _matchesStrictComparable;
|
|
1065
|
+
function baseMatches$1(source) {
|
|
1066
|
+
var matchData = getMatchData(source);
|
|
1067
|
+
if (matchData.length == 1 && matchData[0][2]) {
|
|
1068
|
+
return matchesStrictComparable$1(matchData[0][0], matchData[0][1]);
|
|
1069
|
+
}
|
|
1070
|
+
return function(object) {
|
|
1071
|
+
return object === source || baseIsMatch(object, source, matchData);
|
|
1072
|
+
};
|
|
1073
|
+
}
|
|
1074
|
+
var _baseMatches = baseMatches$1;
|
|
1075
|
+
var isArray$9 = isArray_1, isSymbol$3 = isSymbol_1;
|
|
1076
|
+
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/;
|
|
1077
|
+
function isKey$3(value, object) {
|
|
1078
|
+
if (isArray$9(value)) {
|
|
1079
|
+
return false;
|
|
1080
|
+
}
|
|
1081
|
+
var type2 = typeof value;
|
|
1082
|
+
if (type2 == "number" || type2 == "symbol" || type2 == "boolean" || value == null || isSymbol$3(value)) {
|
|
1083
|
+
return true;
|
|
1084
|
+
}
|
|
1085
|
+
return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object(object);
|
|
1086
|
+
}
|
|
1087
|
+
var _isKey = isKey$3;
|
|
1088
|
+
var MapCache = _MapCache;
|
|
1089
|
+
var FUNC_ERROR_TEXT = "Expected a function";
|
|
1090
|
+
function memoize$1(func, resolver) {
|
|
1091
|
+
if (typeof func != "function" || resolver != null && typeof resolver != "function") {
|
|
1092
|
+
throw new TypeError(FUNC_ERROR_TEXT);
|
|
1093
|
+
}
|
|
1094
|
+
var memoized = function() {
|
|
1095
|
+
var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache;
|
|
1096
|
+
if (cache.has(key)) {
|
|
1097
|
+
return cache.get(key);
|
|
1098
|
+
}
|
|
1099
|
+
var result = func.apply(this, args);
|
|
1100
|
+
memoized.cache = cache.set(key, result) || cache;
|
|
1101
|
+
return result;
|
|
1102
|
+
};
|
|
1103
|
+
memoized.cache = new (memoize$1.Cache || MapCache)();
|
|
1104
|
+
return memoized;
|
|
1105
|
+
}
|
|
1106
|
+
memoize$1.Cache = MapCache;
|
|
1107
|
+
var memoize_1 = memoize$1;
|
|
1108
|
+
var memoize = memoize_1;
|
|
1109
|
+
var MAX_MEMOIZE_SIZE = 500;
|
|
1110
|
+
function memoizeCapped$1(func) {
|
|
1111
|
+
var result = memoize(func, function(key) {
|
|
1112
|
+
if (cache.size === MAX_MEMOIZE_SIZE) {
|
|
1113
|
+
cache.clear();
|
|
1114
|
+
}
|
|
1115
|
+
return key;
|
|
1116
|
+
});
|
|
1117
|
+
var cache = result.cache;
|
|
1118
|
+
return result;
|
|
1119
|
+
}
|
|
1120
|
+
var _memoizeCapped = memoizeCapped$1;
|
|
1121
|
+
var memoizeCapped = _memoizeCapped;
|
|
1122
|
+
var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
|
|
1123
|
+
var reEscapeChar = /\\(\\)?/g;
|
|
1124
|
+
var stringToPath$1 = memoizeCapped(function(string) {
|
|
1125
|
+
var result = [];
|
|
1126
|
+
if (string.charCodeAt(0) === 46) {
|
|
1127
|
+
result.push("");
|
|
1128
|
+
}
|
|
1129
|
+
string.replace(rePropName, function(match, number, quote, subString) {
|
|
1130
|
+
result.push(quote ? subString.replace(reEscapeChar, "$1") : number || match);
|
|
1131
|
+
});
|
|
1132
|
+
return result;
|
|
1133
|
+
});
|
|
1134
|
+
var _stringToPath = stringToPath$1;
|
|
1135
|
+
function arrayMap$2(array, iteratee) {
|
|
1136
|
+
var index = -1, length = array == null ? 0 : array.length, result = Array(length);
|
|
1137
|
+
while (++index < length) {
|
|
1138
|
+
result[index] = iteratee(array[index], index, array);
|
|
1139
|
+
}
|
|
1140
|
+
return result;
|
|
1141
|
+
}
|
|
1142
|
+
var _arrayMap = arrayMap$2;
|
|
1143
|
+
var Symbol$3 = _Symbol, arrayMap$1 = _arrayMap, isArray$8 = isArray_1, isSymbol$2 = isSymbol_1;
|
|
1144
|
+
var INFINITY$1 = 1 / 0;
|
|
1145
|
+
var symbolProto$1 = Symbol$3 ? Symbol$3.prototype : void 0, symbolToString = symbolProto$1 ? symbolProto$1.toString : void 0;
|
|
1146
|
+
function baseToString$1(value) {
|
|
1147
|
+
if (typeof value == "string") {
|
|
1148
|
+
return value;
|
|
1149
|
+
}
|
|
1150
|
+
if (isArray$8(value)) {
|
|
1151
|
+
return arrayMap$1(value, baseToString$1) + "";
|
|
1152
|
+
}
|
|
1153
|
+
if (isSymbol$2(value)) {
|
|
1154
|
+
return symbolToString ? symbolToString.call(value) : "";
|
|
1155
|
+
}
|
|
1156
|
+
var result = value + "";
|
|
1157
|
+
return result == "0" && 1 / value == -INFINITY$1 ? "-0" : result;
|
|
1158
|
+
}
|
|
1159
|
+
var _baseToString = baseToString$1;
|
|
1160
|
+
var baseToString = _baseToString;
|
|
1161
|
+
function toString$1(value) {
|
|
1162
|
+
return value == null ? "" : baseToString(value);
|
|
1163
|
+
}
|
|
1164
|
+
var toString_1 = toString$1;
|
|
1165
|
+
var isArray$7 = isArray_1, isKey$2 = _isKey, stringToPath = _stringToPath, toString = toString_1;
|
|
1166
|
+
function castPath$2(value, object) {
|
|
1167
|
+
if (isArray$7(value)) {
|
|
1168
|
+
return value;
|
|
1169
|
+
}
|
|
1170
|
+
return isKey$2(value, object) ? [value] : stringToPath(toString(value));
|
|
1171
|
+
}
|
|
1172
|
+
var _castPath = castPath$2;
|
|
1173
|
+
var isSymbol$1 = isSymbol_1;
|
|
1174
|
+
var INFINITY = 1 / 0;
|
|
1175
|
+
function toKey$4(value) {
|
|
1176
|
+
if (typeof value == "string" || isSymbol$1(value)) {
|
|
1177
|
+
return value;
|
|
1178
|
+
}
|
|
1179
|
+
var result = value + "";
|
|
1180
|
+
return result == "0" && 1 / value == -INFINITY ? "-0" : result;
|
|
1181
|
+
}
|
|
1182
|
+
var _toKey = toKey$4;
|
|
1183
|
+
var castPath$1 = _castPath, toKey$3 = _toKey;
|
|
1184
|
+
function baseGet$3(object, path) {
|
|
1185
|
+
path = castPath$1(path, object);
|
|
1186
|
+
var index = 0, length = path.length;
|
|
1187
|
+
while (object != null && index < length) {
|
|
1188
|
+
object = object[toKey$3(path[index++])];
|
|
1189
|
+
}
|
|
1190
|
+
return index && index == length ? object : void 0;
|
|
1191
|
+
}
|
|
1192
|
+
var _baseGet = baseGet$3;
|
|
1193
|
+
var baseGet$2 = _baseGet;
|
|
1194
|
+
function get$1(object, path, defaultValue) {
|
|
1195
|
+
var result = object == null ? void 0 : baseGet$2(object, path);
|
|
1196
|
+
return result === void 0 ? defaultValue : result;
|
|
1197
|
+
}
|
|
1198
|
+
var get_1 = get$1;
|
|
1199
|
+
function baseHasIn$1(object, key) {
|
|
1200
|
+
return object != null && key in Object(object);
|
|
1201
|
+
}
|
|
1202
|
+
var _baseHasIn = baseHasIn$1;
|
|
1203
|
+
var castPath = _castPath, isArguments$1 = isArguments_1, isArray$6 = isArray_1, isIndex$1 = _isIndex, isLength = isLength_1, toKey$2 = _toKey;
|
|
1204
|
+
function hasPath$1(object, path, hasFunc) {
|
|
1205
|
+
path = castPath(path, object);
|
|
1206
|
+
var index = -1, length = path.length, result = false;
|
|
1207
|
+
while (++index < length) {
|
|
1208
|
+
var key = toKey$2(path[index]);
|
|
1209
|
+
if (!(result = object != null && hasFunc(object, key))) {
|
|
1210
|
+
break;
|
|
1211
|
+
}
|
|
1212
|
+
object = object[key];
|
|
1213
|
+
}
|
|
1214
|
+
if (result || ++index != length) {
|
|
1215
|
+
return result;
|
|
1216
|
+
}
|
|
1217
|
+
length = object == null ? 0 : object.length;
|
|
1218
|
+
return !!length && isLength(length) && isIndex$1(key, length) && (isArray$6(object) || isArguments$1(object));
|
|
1219
|
+
}
|
|
1220
|
+
var _hasPath = hasPath$1;
|
|
1221
|
+
var baseHasIn = _baseHasIn, hasPath = _hasPath;
|
|
1222
|
+
function hasIn$1(object, path) {
|
|
1223
|
+
return object != null && hasPath(object, path, baseHasIn);
|
|
1224
|
+
}
|
|
1225
|
+
var hasIn_1 = hasIn$1;
|
|
1226
|
+
var baseIsEqual = _baseIsEqual, get = get_1, hasIn = hasIn_1, isKey$1 = _isKey, isStrictComparable = _isStrictComparable, matchesStrictComparable = _matchesStrictComparable, toKey$1 = _toKey;
|
|
1227
|
+
var COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2;
|
|
1228
|
+
function baseMatchesProperty$1(path, srcValue) {
|
|
1229
|
+
if (isKey$1(path) && isStrictComparable(srcValue)) {
|
|
1230
|
+
return matchesStrictComparable(toKey$1(path), srcValue);
|
|
1231
|
+
}
|
|
1232
|
+
return function(object) {
|
|
1233
|
+
var objValue = get(object, path);
|
|
1234
|
+
return objValue === void 0 && objValue === srcValue ? hasIn(object, path) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
|
|
1235
|
+
};
|
|
1236
|
+
}
|
|
1237
|
+
var _baseMatchesProperty = baseMatchesProperty$1;
|
|
1238
|
+
function baseProperty$2(key) {
|
|
1239
|
+
return function(object) {
|
|
1240
|
+
return object == null ? void 0 : object[key];
|
|
1241
|
+
};
|
|
1242
|
+
}
|
|
1243
|
+
var _baseProperty = baseProperty$2;
|
|
1244
|
+
var baseGet$1 = _baseGet;
|
|
1245
|
+
function basePropertyDeep$1(path) {
|
|
1246
|
+
return function(object) {
|
|
1247
|
+
return baseGet$1(object, path);
|
|
1248
|
+
};
|
|
1249
|
+
}
|
|
1250
|
+
var _basePropertyDeep = basePropertyDeep$1;
|
|
1251
|
+
var baseProperty$1 = _baseProperty, basePropertyDeep = _basePropertyDeep, isKey = _isKey, toKey = _toKey;
|
|
1252
|
+
function property$1(path) {
|
|
1253
|
+
return isKey(path) ? baseProperty$1(toKey(path)) : basePropertyDeep(path);
|
|
1254
|
+
}
|
|
1255
|
+
var property_1 = property$1;
|
|
1256
|
+
var baseMatches = _baseMatches, baseMatchesProperty = _baseMatchesProperty, identity$3 = identity_1, isArray$5 = isArray_1, property = property_1;
|
|
1257
|
+
function baseIteratee$3(value) {
|
|
1258
|
+
if (typeof value == "function") {
|
|
1259
|
+
return value;
|
|
1260
|
+
}
|
|
1261
|
+
if (value == null) {
|
|
1262
|
+
return identity$3;
|
|
1263
|
+
}
|
|
1264
|
+
if (typeof value == "object") {
|
|
1265
|
+
return isArray$5(value) ? baseMatchesProperty(value[0], value[1]) : baseMatches(value);
|
|
1266
|
+
}
|
|
1267
|
+
return property(value);
|
|
1268
|
+
}
|
|
1269
|
+
var _baseIteratee = baseIteratee$3;
|
|
1270
|
+
var baseIteratee$2 = _baseIteratee, isArrayLike$5 = isArrayLike_1, keys$3 = keys_1;
|
|
1271
|
+
function createFind$1(findIndexFunc) {
|
|
1272
|
+
return function(collection, predicate, fromIndex) {
|
|
1273
|
+
var iterable = Object(collection);
|
|
1274
|
+
if (!isArrayLike$5(collection)) {
|
|
1275
|
+
var iteratee = baseIteratee$2(predicate);
|
|
1276
|
+
collection = keys$3(collection);
|
|
1277
|
+
predicate = function(key) {
|
|
1278
|
+
return iteratee(iterable[key], key, iterable);
|
|
1279
|
+
};
|
|
1280
|
+
}
|
|
1281
|
+
var index = findIndexFunc(collection, predicate, fromIndex);
|
|
1282
|
+
return index > -1 ? iterable[iteratee ? collection[index] : index] : void 0;
|
|
1283
|
+
};
|
|
1284
|
+
}
|
|
1285
|
+
var _createFind = createFind$1;
|
|
1286
|
+
function baseFindIndex$1(array, predicate, fromIndex, fromRight) {
|
|
1287
|
+
var length = array.length, index = fromIndex + (fromRight ? 1 : -1);
|
|
1288
|
+
while (fromRight ? index-- : ++index < length) {
|
|
1289
|
+
if (predicate(array[index], index, array)) {
|
|
1290
|
+
return index;
|
|
1291
|
+
}
|
|
1292
|
+
}
|
|
1293
|
+
return -1;
|
|
1294
|
+
}
|
|
1295
|
+
var _baseFindIndex = baseFindIndex$1;
|
|
1296
|
+
var baseFindIndex = _baseFindIndex, baseIteratee$1 = _baseIteratee, toInteger = toInteger_1;
|
|
1297
|
+
var nativeMax$1 = Math.max;
|
|
1298
|
+
function findIndex$1(array, predicate, fromIndex) {
|
|
1299
|
+
var length = array == null ? 0 : array.length;
|
|
1300
|
+
if (!length) {
|
|
1301
|
+
return -1;
|
|
1302
|
+
}
|
|
1303
|
+
var index = fromIndex == null ? 0 : toInteger(fromIndex);
|
|
1304
|
+
if (index < 0) {
|
|
1305
|
+
index = nativeMax$1(length + index, 0);
|
|
1306
|
+
}
|
|
1307
|
+
return baseFindIndex(array, baseIteratee$1(predicate), index);
|
|
1308
|
+
}
|
|
1309
|
+
var findIndex_1 = findIndex$1;
|
|
1310
|
+
var createFind = _createFind, findIndex = findIndex_1;
|
|
1311
|
+
var find = createFind(findIndex);
|
|
1312
|
+
var find_1 = find;
|
|
1313
|
+
const find$1 = /* @__PURE__ */ getDefaultExportFromCjs(find_1);
|
|
1314
|
+
function addCell$1(row, cell) {
|
|
1315
|
+
if (!row.cells)
|
|
1316
|
+
row.cells = {};
|
|
1317
|
+
row.cells[cell.id] = cell;
|
|
1318
|
+
return cell;
|
|
1319
|
+
}
|
|
1320
|
+
function addEmbed$1(embeds, cellId, tableId) {
|
|
1321
|
+
const embed = {
|
|
1322
|
+
id: cellId,
|
|
1323
|
+
type: "TIPTAP_HTML",
|
|
1324
|
+
embedded: true,
|
|
1325
|
+
data: { tableId, cellId }
|
|
1326
|
+
};
|
|
1327
|
+
embeds[cellId] = embed;
|
|
1328
|
+
return embed;
|
|
1329
|
+
}
|
|
1330
|
+
var Direction = /* @__PURE__ */ ((Direction2) => {
|
|
1331
|
+
Direction2[Direction2["Before"] = -1] = "Before";
|
|
1332
|
+
Direction2[Direction2["After"] = 1] = "After";
|
|
1333
|
+
return Direction2;
|
|
1334
|
+
})(Direction || {});
|
|
1335
|
+
var type = "TABLE";
|
|
1336
|
+
var name = "Table";
|
|
1337
|
+
var initState = () => {
|
|
1338
|
+
const tableId = v4();
|
|
1339
|
+
const embeds = {};
|
|
1340
|
+
const rows = {};
|
|
1341
|
+
times$1(2, (position) => {
|
|
1342
|
+
const rowId = v4();
|
|
1343
|
+
const row = { id: rowId, position, cells: {} };
|
|
1344
|
+
rows[rowId] = row;
|
|
1345
|
+
times$1(3, (position2) => {
|
|
1346
|
+
const cellId = v4();
|
|
1347
|
+
addCell$1(row, { id: cellId, position: position2, data: {} });
|
|
1348
|
+
addEmbed$1(embeds, cellId, tableId);
|
|
1349
|
+
});
|
|
1350
|
+
});
|
|
1351
|
+
return { tableId, embeds, rows };
|
|
1352
|
+
};
|
|
1353
|
+
var ui = {
|
|
1354
|
+
// Display icon, https://pictogrammers.com/library/mdi/
|
|
1355
|
+
icon: "mdi-table",
|
|
1356
|
+
// Does element support only full width or can be used within layouts
|
|
1357
|
+
// (e.g. 50/50 layout)
|
|
1358
|
+
forceFullWidth: true
|
|
1359
|
+
};
|
|
1360
|
+
var manifest$1 = {
|
|
1361
|
+
type,
|
|
1362
|
+
version: "1.0",
|
|
1363
|
+
name,
|
|
1364
|
+
ssr: false,
|
|
1365
|
+
isComposite: true,
|
|
1366
|
+
initState,
|
|
1367
|
+
ui
|
|
1368
|
+
};
|
|
1369
|
+
var src_default = manifest$1;
|
|
1370
|
+
function arrayEach$2(array, iteratee) {
|
|
1371
|
+
var index = -1, length = array == null ? 0 : array.length;
|
|
1372
|
+
while (++index < length) {
|
|
1373
|
+
if (iteratee(array[index], index, array) === false) {
|
|
1374
|
+
break;
|
|
1375
|
+
}
|
|
1376
|
+
}
|
|
1377
|
+
return array;
|
|
1378
|
+
}
|
|
1379
|
+
var _arrayEach = arrayEach$2;
|
|
1380
|
+
var getNative = _getNative;
|
|
1381
|
+
var defineProperty$2 = function() {
|
|
1382
|
+
try {
|
|
1383
|
+
var func = getNative(Object, "defineProperty");
|
|
1384
|
+
func({}, "", {});
|
|
1385
|
+
return func;
|
|
1386
|
+
} catch (e) {
|
|
1387
|
+
}
|
|
1388
|
+
}();
|
|
1389
|
+
var _defineProperty = defineProperty$2;
|
|
1390
|
+
var defineProperty$1 = _defineProperty;
|
|
1391
|
+
function baseAssignValue$2(object, key, value) {
|
|
1392
|
+
if (key == "__proto__" && defineProperty$1) {
|
|
1393
|
+
defineProperty$1(object, key, {
|
|
1394
|
+
"configurable": true,
|
|
1395
|
+
"enumerable": true,
|
|
1396
|
+
"value": value,
|
|
1397
|
+
"writable": true
|
|
1398
|
+
});
|
|
1399
|
+
} else {
|
|
1400
|
+
object[key] = value;
|
|
1401
|
+
}
|
|
1402
|
+
}
|
|
1403
|
+
var _baseAssignValue = baseAssignValue$2;
|
|
1404
|
+
var baseAssignValue$1 = _baseAssignValue, eq$1 = eq_1;
|
|
1405
|
+
var objectProto$2 = Object.prototype;
|
|
1406
|
+
var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
|
|
1407
|
+
function assignValue$2(object, key, value) {
|
|
1408
|
+
var objValue = object[key];
|
|
1409
|
+
if (!(hasOwnProperty$2.call(object, key) && eq$1(objValue, value)) || value === void 0 && !(key in object)) {
|
|
1410
|
+
baseAssignValue$1(object, key, value);
|
|
1411
|
+
}
|
|
1412
|
+
}
|
|
1413
|
+
var _assignValue = assignValue$2;
|
|
1414
|
+
var assignValue$1 = _assignValue, baseAssignValue = _baseAssignValue;
|
|
1415
|
+
function copyObject$4(source, props, object, customizer) {
|
|
1416
|
+
var isNew = !object;
|
|
1417
|
+
object || (object = {});
|
|
1418
|
+
var index = -1, length = props.length;
|
|
1419
|
+
while (++index < length) {
|
|
1420
|
+
var key = props[index];
|
|
1421
|
+
var newValue = customizer ? customizer(object[key], source[key], key, object, source) : void 0;
|
|
1422
|
+
if (newValue === void 0) {
|
|
1423
|
+
newValue = source[key];
|
|
1424
|
+
}
|
|
1425
|
+
if (isNew) {
|
|
1426
|
+
baseAssignValue(object, key, newValue);
|
|
1427
|
+
} else {
|
|
1428
|
+
assignValue$1(object, key, newValue);
|
|
1429
|
+
}
|
|
1430
|
+
}
|
|
1431
|
+
return object;
|
|
1432
|
+
}
|
|
1433
|
+
var _copyObject = copyObject$4;
|
|
1434
|
+
var copyObject$3 = _copyObject, keys$2 = keys_1;
|
|
1435
|
+
function baseAssign$1(object, source) {
|
|
1436
|
+
return object && copyObject$3(source, keys$2(source), object);
|
|
1437
|
+
}
|
|
1438
|
+
var _baseAssign = baseAssign$1;
|
|
1439
|
+
function nativeKeysIn$1(object) {
|
|
1440
|
+
var result = [];
|
|
1441
|
+
if (object != null) {
|
|
1442
|
+
for (var key in Object(object)) {
|
|
1443
|
+
result.push(key);
|
|
1444
|
+
}
|
|
1445
|
+
}
|
|
1446
|
+
return result;
|
|
1447
|
+
}
|
|
1448
|
+
var _nativeKeysIn = nativeKeysIn$1;
|
|
1449
|
+
var isObject$3 = isObject_1, isPrototype$1 = _isPrototype, nativeKeysIn = _nativeKeysIn;
|
|
1450
|
+
var objectProto$1 = Object.prototype;
|
|
1451
|
+
var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
|
|
1452
|
+
function baseKeysIn$1(object) {
|
|
1453
|
+
if (!isObject$3(object)) {
|
|
1454
|
+
return nativeKeysIn(object);
|
|
1455
|
+
}
|
|
1456
|
+
var isProto = isPrototype$1(object), result = [];
|
|
1457
|
+
for (var key in object) {
|
|
1458
|
+
if (!(key == "constructor" && (isProto || !hasOwnProperty$1.call(object, key)))) {
|
|
1459
|
+
result.push(key);
|
|
1460
|
+
}
|
|
1461
|
+
}
|
|
1462
|
+
return result;
|
|
1463
|
+
}
|
|
1464
|
+
var _baseKeysIn = baseKeysIn$1;
|
|
1465
|
+
var arrayLikeKeys = _arrayLikeKeys, baseKeysIn = _baseKeysIn, isArrayLike$4 = isArrayLike_1;
|
|
1466
|
+
function keysIn$3(object) {
|
|
1467
|
+
return isArrayLike$4(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
|
|
1468
|
+
}
|
|
1469
|
+
var keysIn_1 = keysIn$3;
|
|
1470
|
+
var copyObject$2 = _copyObject, keysIn$2 = keysIn_1;
|
|
1471
|
+
function baseAssignIn$1(object, source) {
|
|
1472
|
+
return object && copyObject$2(source, keysIn$2(source), object);
|
|
1473
|
+
}
|
|
1474
|
+
var _baseAssignIn = baseAssignIn$1;
|
|
1475
|
+
var _cloneBuffer = { exports: {} };
|
|
1476
|
+
_cloneBuffer.exports;
|
|
1477
|
+
(function(module2, exports2) {
|
|
1478
|
+
var root2 = _root;
|
|
1479
|
+
var freeExports = exports2 && !exports2.nodeType && exports2;
|
|
1480
|
+
var freeModule = freeExports && true && module2 && !module2.nodeType && module2;
|
|
1481
|
+
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
1482
|
+
var Buffer = moduleExports ? root2.Buffer : void 0, allocUnsafe = Buffer ? Buffer.allocUnsafe : void 0;
|
|
1483
|
+
function cloneBuffer2(buffer, isDeep) {
|
|
1484
|
+
if (isDeep) {
|
|
1485
|
+
return buffer.slice();
|
|
1486
|
+
}
|
|
1487
|
+
var length = buffer.length, result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
|
|
1488
|
+
buffer.copy(result);
|
|
1489
|
+
return result;
|
|
1490
|
+
}
|
|
1491
|
+
module2.exports = cloneBuffer2;
|
|
1492
|
+
})(_cloneBuffer, _cloneBuffer.exports);
|
|
1493
|
+
var _cloneBufferExports = _cloneBuffer.exports;
|
|
1494
|
+
function copyArray$1(source, array) {
|
|
1495
|
+
var index = -1, length = source.length;
|
|
1496
|
+
array || (array = Array(length));
|
|
1497
|
+
while (++index < length) {
|
|
1498
|
+
array[index] = source[index];
|
|
1499
|
+
}
|
|
1500
|
+
return array;
|
|
1501
|
+
}
|
|
1502
|
+
var _copyArray = copyArray$1;
|
|
1503
|
+
var copyObject$1 = _copyObject, getSymbols$1 = _getSymbols;
|
|
1504
|
+
function copySymbols$1(source, object) {
|
|
1505
|
+
return copyObject$1(source, getSymbols$1(source), object);
|
|
1506
|
+
}
|
|
1507
|
+
var _copySymbols = copySymbols$1;
|
|
1508
|
+
var overArg = _overArg;
|
|
1509
|
+
var getPrototype$2 = overArg(Object.getPrototypeOf, Object);
|
|
1510
|
+
var _getPrototype = getPrototype$2;
|
|
1511
|
+
var arrayPush$1 = _arrayPush, getPrototype$1 = _getPrototype, getSymbols = _getSymbols, stubArray = stubArray_1;
|
|
1512
|
+
var nativeGetSymbols = Object.getOwnPropertySymbols;
|
|
1513
|
+
var getSymbolsIn$2 = !nativeGetSymbols ? stubArray : function(object) {
|
|
1514
|
+
var result = [];
|
|
1515
|
+
while (object) {
|
|
1516
|
+
arrayPush$1(result, getSymbols(object));
|
|
1517
|
+
object = getPrototype$1(object);
|
|
1518
|
+
}
|
|
1519
|
+
return result;
|
|
1520
|
+
};
|
|
1521
|
+
var _getSymbolsIn = getSymbolsIn$2;
|
|
1522
|
+
var copyObject = _copyObject, getSymbolsIn$1 = _getSymbolsIn;
|
|
1523
|
+
function copySymbolsIn$1(source, object) {
|
|
1524
|
+
return copyObject(source, getSymbolsIn$1(source), object);
|
|
1525
|
+
}
|
|
1526
|
+
var _copySymbolsIn = copySymbolsIn$1;
|
|
1527
|
+
var baseGetAllKeys = _baseGetAllKeys, getSymbolsIn = _getSymbolsIn, keysIn$1 = keysIn_1;
|
|
1528
|
+
function getAllKeysIn$1(object) {
|
|
1529
|
+
return baseGetAllKeys(object, keysIn$1, getSymbolsIn);
|
|
1530
|
+
}
|
|
1531
|
+
var _getAllKeysIn = getAllKeysIn$1;
|
|
1532
|
+
var objectProto = Object.prototype;
|
|
1533
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
1534
|
+
function initCloneArray$1(array) {
|
|
1535
|
+
var length = array.length, result = new array.constructor(length);
|
|
1536
|
+
if (length && typeof array[0] == "string" && hasOwnProperty.call(array, "index")) {
|
|
1537
|
+
result.index = array.index;
|
|
1538
|
+
result.input = array.input;
|
|
1539
|
+
}
|
|
1540
|
+
return result;
|
|
1541
|
+
}
|
|
1542
|
+
var _initCloneArray = initCloneArray$1;
|
|
1543
|
+
var Uint8Array$1 = _Uint8Array;
|
|
1544
|
+
function cloneArrayBuffer$3(arrayBuffer) {
|
|
1545
|
+
var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
|
|
1546
|
+
new Uint8Array$1(result).set(new Uint8Array$1(arrayBuffer));
|
|
1547
|
+
return result;
|
|
1548
|
+
}
|
|
1549
|
+
var _cloneArrayBuffer = cloneArrayBuffer$3;
|
|
1550
|
+
var cloneArrayBuffer$2 = _cloneArrayBuffer;
|
|
1551
|
+
function cloneDataView$1(dataView, isDeep) {
|
|
1552
|
+
var buffer = isDeep ? cloneArrayBuffer$2(dataView.buffer) : dataView.buffer;
|
|
1553
|
+
return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
|
|
1554
|
+
}
|
|
1555
|
+
var _cloneDataView = cloneDataView$1;
|
|
1556
|
+
var reFlags = /\w*$/;
|
|
1557
|
+
function cloneRegExp$1(regexp) {
|
|
1558
|
+
var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
|
|
1559
|
+
result.lastIndex = regexp.lastIndex;
|
|
1560
|
+
return result;
|
|
1561
|
+
}
|
|
1562
|
+
var _cloneRegExp = cloneRegExp$1;
|
|
1563
|
+
var Symbol$2 = _Symbol;
|
|
1564
|
+
var symbolProto = Symbol$2 ? Symbol$2.prototype : void 0, symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
|
|
1565
|
+
function cloneSymbol$1(symbol) {
|
|
1566
|
+
return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
|
|
1567
|
+
}
|
|
1568
|
+
var _cloneSymbol = cloneSymbol$1;
|
|
1569
|
+
var cloneArrayBuffer$1 = _cloneArrayBuffer;
|
|
1570
|
+
function cloneTypedArray$1(typedArray, isDeep) {
|
|
1571
|
+
var buffer = isDeep ? cloneArrayBuffer$1(typedArray.buffer) : typedArray.buffer;
|
|
1572
|
+
return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
|
|
1573
|
+
}
|
|
1574
|
+
var _cloneTypedArray = cloneTypedArray$1;
|
|
1575
|
+
var cloneArrayBuffer = _cloneArrayBuffer, cloneDataView = _cloneDataView, cloneRegExp = _cloneRegExp, cloneSymbol = _cloneSymbol, cloneTypedArray = _cloneTypedArray;
|
|
1576
|
+
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$2 = "[object String]", symbolTag$1 = "[object Symbol]";
|
|
1577
|
+
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]";
|
|
1578
|
+
function initCloneByTag$1(object, tag, isDeep) {
|
|
1579
|
+
var Ctor = object.constructor;
|
|
1580
|
+
switch (tag) {
|
|
1581
|
+
case arrayBufferTag$1:
|
|
1582
|
+
return cloneArrayBuffer(object);
|
|
1583
|
+
case boolTag$1:
|
|
1584
|
+
case dateTag$1:
|
|
1585
|
+
return new Ctor(+object);
|
|
1586
|
+
case dataViewTag$1:
|
|
1587
|
+
return cloneDataView(object, isDeep);
|
|
1588
|
+
case float32Tag$1:
|
|
1589
|
+
case float64Tag$1:
|
|
1590
|
+
case int8Tag$1:
|
|
1591
|
+
case int16Tag$1:
|
|
1592
|
+
case int32Tag$1:
|
|
1593
|
+
case uint8Tag$1:
|
|
1594
|
+
case uint8ClampedTag$1:
|
|
1595
|
+
case uint16Tag$1:
|
|
1596
|
+
case uint32Tag$1:
|
|
1597
|
+
return cloneTypedArray(object, isDeep);
|
|
1598
|
+
case mapTag$3:
|
|
1599
|
+
return new Ctor();
|
|
1600
|
+
case numberTag$1:
|
|
1601
|
+
case stringTag$2:
|
|
1602
|
+
return new Ctor(object);
|
|
1603
|
+
case regexpTag$1:
|
|
1604
|
+
return cloneRegExp(object);
|
|
1605
|
+
case setTag$3:
|
|
1606
|
+
return new Ctor();
|
|
1607
|
+
case symbolTag$1:
|
|
1608
|
+
return cloneSymbol(object);
|
|
1609
|
+
}
|
|
1610
|
+
}
|
|
1611
|
+
var _initCloneByTag = initCloneByTag$1;
|
|
1612
|
+
var isObject$2 = isObject_1;
|
|
1613
|
+
var objectCreate = Object.create;
|
|
1614
|
+
var baseCreate$1 = function() {
|
|
1615
|
+
function object() {
|
|
1616
|
+
}
|
|
1617
|
+
return function(proto) {
|
|
1618
|
+
if (!isObject$2(proto)) {
|
|
1619
|
+
return {};
|
|
1620
|
+
}
|
|
1621
|
+
if (objectCreate) {
|
|
1622
|
+
return objectCreate(proto);
|
|
1623
|
+
}
|
|
1624
|
+
object.prototype = proto;
|
|
1625
|
+
var result = new object();
|
|
1626
|
+
object.prototype = void 0;
|
|
1627
|
+
return result;
|
|
1628
|
+
};
|
|
1629
|
+
}();
|
|
1630
|
+
var _baseCreate = baseCreate$1;
|
|
1631
|
+
var baseCreate = _baseCreate, getPrototype = _getPrototype, isPrototype = _isPrototype;
|
|
1632
|
+
function initCloneObject$1(object) {
|
|
1633
|
+
return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate(getPrototype(object)) : {};
|
|
1634
|
+
}
|
|
1635
|
+
var _initCloneObject = initCloneObject$1;
|
|
1636
|
+
var getTag$3 = _getTag, isObjectLike$2 = isObjectLike_1;
|
|
1637
|
+
var mapTag$2 = "[object Map]";
|
|
1638
|
+
function baseIsMap$1(value) {
|
|
1639
|
+
return isObjectLike$2(value) && getTag$3(value) == mapTag$2;
|
|
1640
|
+
}
|
|
1641
|
+
var _baseIsMap = baseIsMap$1;
|
|
1642
|
+
var baseIsMap = _baseIsMap, baseUnary$2 = _baseUnary, nodeUtil$1 = _nodeUtilExports;
|
|
1643
|
+
var nodeIsMap = nodeUtil$1 && nodeUtil$1.isMap;
|
|
1644
|
+
var isMap$1 = nodeIsMap ? baseUnary$2(nodeIsMap) : baseIsMap;
|
|
1645
|
+
var isMap_1 = isMap$1;
|
|
1646
|
+
var getTag$2 = _getTag, isObjectLike$1 = isObjectLike_1;
|
|
1647
|
+
var setTag$2 = "[object Set]";
|
|
1648
|
+
function baseIsSet$1(value) {
|
|
1649
|
+
return isObjectLike$1(value) && getTag$2(value) == setTag$2;
|
|
1650
|
+
}
|
|
1651
|
+
var _baseIsSet = baseIsSet$1;
|
|
1652
|
+
var baseIsSet = _baseIsSet, baseUnary$1 = _baseUnary, nodeUtil = _nodeUtilExports;
|
|
1653
|
+
var nodeIsSet = nodeUtil && nodeUtil.isSet;
|
|
1654
|
+
var isSet$1 = nodeIsSet ? baseUnary$1(nodeIsSet) : baseIsSet;
|
|
1655
|
+
var isSet_1 = isSet$1;
|
|
1656
|
+
var Stack = _Stack, arrayEach$1 = _arrayEach, assignValue = _assignValue, baseAssign = _baseAssign, baseAssignIn = _baseAssignIn, cloneBuffer = _cloneBufferExports, copyArray = _copyArray, copySymbols = _copySymbols, copySymbolsIn = _copySymbolsIn, getAllKeys = _getAllKeys, getAllKeysIn = _getAllKeysIn, getTag$1 = _getTag, initCloneArray = _initCloneArray, initCloneByTag = _initCloneByTag, initCloneObject = _initCloneObject, isArray$4 = isArray_1, isBuffer = isBufferExports, isMap = isMap_1, isObject$1 = isObject_1, isSet = isSet_1, keys$1 = keys_1, keysIn = keysIn_1;
|
|
1657
|
+
var CLONE_DEEP_FLAG$1 = 1, CLONE_FLAT_FLAG = 2, CLONE_SYMBOLS_FLAG$1 = 4;
|
|
1658
|
+
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$1 = "[object String]", symbolTag = "[object Symbol]", weakMapTag = "[object WeakMap]";
|
|
1659
|
+
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]";
|
|
1660
|
+
var cloneableTags = {};
|
|
1661
|
+
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$1] = cloneableTags[symbolTag] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
|
|
1662
|
+
cloneableTags[errorTag] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false;
|
|
1663
|
+
function baseClone$1(value, bitmask, customizer, key, object, stack) {
|
|
1664
|
+
var result, isDeep = bitmask & CLONE_DEEP_FLAG$1, isFlat = bitmask & CLONE_FLAT_FLAG, isFull = bitmask & CLONE_SYMBOLS_FLAG$1;
|
|
1665
|
+
if (customizer) {
|
|
1666
|
+
result = object ? customizer(value, key, object, stack) : customizer(value);
|
|
1667
|
+
}
|
|
1668
|
+
if (result !== void 0) {
|
|
1669
|
+
return result;
|
|
1670
|
+
}
|
|
1671
|
+
if (!isObject$1(value)) {
|
|
1672
|
+
return value;
|
|
1673
|
+
}
|
|
1674
|
+
var isArr = isArray$4(value);
|
|
1675
|
+
if (isArr) {
|
|
1676
|
+
result = initCloneArray(value);
|
|
1677
|
+
if (!isDeep) {
|
|
1678
|
+
return copyArray(value, result);
|
|
1679
|
+
}
|
|
1680
|
+
} else {
|
|
1681
|
+
var tag = getTag$1(value), isFunc = tag == funcTag || tag == genTag;
|
|
1682
|
+
if (isBuffer(value)) {
|
|
1683
|
+
return cloneBuffer(value, isDeep);
|
|
1684
|
+
}
|
|
1685
|
+
if (tag == objectTag || tag == argsTag || isFunc && !object) {
|
|
1686
|
+
result = isFlat || isFunc ? {} : initCloneObject(value);
|
|
1687
|
+
if (!isDeep) {
|
|
1688
|
+
return isFlat ? copySymbolsIn(value, baseAssignIn(result, value)) : copySymbols(value, baseAssign(result, value));
|
|
1689
|
+
}
|
|
1690
|
+
} else {
|
|
1691
|
+
if (!cloneableTags[tag]) {
|
|
1692
|
+
return object ? value : {};
|
|
1693
|
+
}
|
|
1694
|
+
result = initCloneByTag(value, tag, isDeep);
|
|
1695
|
+
}
|
|
1696
|
+
}
|
|
1697
|
+
stack || (stack = new Stack());
|
|
1698
|
+
var stacked = stack.get(value);
|
|
1699
|
+
if (stacked) {
|
|
1700
|
+
return stacked;
|
|
1701
|
+
}
|
|
1702
|
+
stack.set(value, result);
|
|
1703
|
+
if (isSet(value)) {
|
|
1704
|
+
value.forEach(function(subValue) {
|
|
1705
|
+
result.add(baseClone$1(subValue, bitmask, customizer, subValue, value, stack));
|
|
1706
|
+
});
|
|
1707
|
+
} else if (isMap(value)) {
|
|
1708
|
+
value.forEach(function(subValue, key2) {
|
|
1709
|
+
result.set(key2, baseClone$1(subValue, bitmask, customizer, key2, value, stack));
|
|
1710
|
+
});
|
|
1711
|
+
}
|
|
1712
|
+
var keysFunc = isFull ? isFlat ? getAllKeysIn : getAllKeys : isFlat ? keysIn : keys$1;
|
|
1713
|
+
var props = isArr ? void 0 : keysFunc(value);
|
|
1714
|
+
arrayEach$1(props || value, function(subValue, key2) {
|
|
1715
|
+
if (props) {
|
|
1716
|
+
key2 = subValue;
|
|
1717
|
+
subValue = value[key2];
|
|
1718
|
+
}
|
|
1719
|
+
assignValue(result, key2, baseClone$1(subValue, bitmask, customizer, key2, value, stack));
|
|
1720
|
+
});
|
|
1721
|
+
return result;
|
|
1722
|
+
}
|
|
1723
|
+
var _baseClone = baseClone$1;
|
|
1724
|
+
var baseClone = _baseClone;
|
|
1725
|
+
var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4;
|
|
1726
|
+
function cloneDeep(value) {
|
|
1727
|
+
return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
|
|
1728
|
+
}
|
|
1729
|
+
var cloneDeep_1 = cloneDeep;
|
|
1730
|
+
const cloneDeep$1 = /* @__PURE__ */ getDefaultExportFromCjs(cloneDeep_1);
|
|
1731
|
+
function head(array) {
|
|
1732
|
+
return array && array.length ? array[0] : void 0;
|
|
1733
|
+
}
|
|
1734
|
+
var head_1 = head;
|
|
1735
|
+
var first = head_1;
|
|
1736
|
+
const first$1 = /* @__PURE__ */ getDefaultExportFromCjs(first);
|
|
1737
|
+
function createBaseFor$1(fromRight) {
|
|
1738
|
+
return function(object, iteratee, keysFunc) {
|
|
1739
|
+
var index = -1, iterable = Object(object), props = keysFunc(object), length = props.length;
|
|
1740
|
+
while (length--) {
|
|
1741
|
+
var key = props[fromRight ? length : ++index];
|
|
1742
|
+
if (iteratee(iterable[key], key, iterable) === false) {
|
|
1743
|
+
break;
|
|
1744
|
+
}
|
|
1745
|
+
}
|
|
1746
|
+
return object;
|
|
1747
|
+
};
|
|
1748
|
+
}
|
|
1749
|
+
var _createBaseFor = createBaseFor$1;
|
|
1750
|
+
var createBaseFor = _createBaseFor;
|
|
1751
|
+
var baseFor$1 = createBaseFor();
|
|
1752
|
+
var _baseFor = baseFor$1;
|
|
1753
|
+
var baseFor = _baseFor, keys = keys_1;
|
|
1754
|
+
function baseForOwn$1(object, iteratee) {
|
|
1755
|
+
return object && baseFor(object, iteratee, keys);
|
|
1756
|
+
}
|
|
1757
|
+
var _baseForOwn = baseForOwn$1;
|
|
1758
|
+
var isArrayLike$3 = isArrayLike_1;
|
|
1759
|
+
function createBaseEach$1(eachFunc, fromRight) {
|
|
1760
|
+
return function(collection, iteratee) {
|
|
1761
|
+
if (collection == null) {
|
|
1762
|
+
return collection;
|
|
1763
|
+
}
|
|
1764
|
+
if (!isArrayLike$3(collection)) {
|
|
1765
|
+
return eachFunc(collection, iteratee);
|
|
1766
|
+
}
|
|
1767
|
+
var length = collection.length, index = fromRight ? length : -1, iterable = Object(collection);
|
|
1768
|
+
while (fromRight ? index-- : ++index < length) {
|
|
1769
|
+
if (iteratee(iterable[index], index, iterable) === false) {
|
|
1770
|
+
break;
|
|
1771
|
+
}
|
|
1772
|
+
}
|
|
1773
|
+
return collection;
|
|
1774
|
+
};
|
|
1775
|
+
}
|
|
1776
|
+
var _createBaseEach = createBaseEach$1;
|
|
1777
|
+
var baseForOwn = _baseForOwn, createBaseEach = _createBaseEach;
|
|
1778
|
+
var baseEach$2 = createBaseEach(baseForOwn);
|
|
1779
|
+
var _baseEach = baseEach$2;
|
|
1780
|
+
var arrayEach = _arrayEach, baseEach$1 = _baseEach, castFunction = _castFunction, isArray$3 = isArray_1;
|
|
1781
|
+
function forEach(collection, iteratee) {
|
|
1782
|
+
var func = isArray$3(collection) ? arrayEach : baseEach$1;
|
|
1783
|
+
return func(collection, castFunction(iteratee));
|
|
1784
|
+
}
|
|
1785
|
+
var forEach_1 = forEach;
|
|
1786
|
+
const forEach$1 = /* @__PURE__ */ getDefaultExportFromCjs(forEach_1);
|
|
1787
|
+
function last(array) {
|
|
1788
|
+
var length = array == null ? 0 : array.length;
|
|
1789
|
+
return length ? array[length - 1] : void 0;
|
|
1790
|
+
}
|
|
1791
|
+
var last_1 = last;
|
|
1792
|
+
const last$1 = /* @__PURE__ */ getDefaultExportFromCjs(last_1);
|
|
1793
|
+
var baseGetTag = _baseGetTag, isArray$2 = isArray_1, isObjectLike = isObjectLike_1;
|
|
1794
|
+
var stringTag = "[object String]";
|
|
1795
|
+
function isString$1(value) {
|
|
1796
|
+
return typeof value == "string" || !isArray$2(value) && isObjectLike(value) && baseGetTag(value) == stringTag;
|
|
1797
|
+
}
|
|
1798
|
+
var isString_1 = isString$1;
|
|
1799
|
+
var baseProperty = _baseProperty;
|
|
1800
|
+
var asciiSize$1 = baseProperty("length");
|
|
1801
|
+
var _asciiSize = asciiSize$1;
|
|
1802
|
+
var rsAstralRange$1 = "\\ud800-\\udfff", rsComboMarksRange$1 = "\\u0300-\\u036f", reComboHalfMarksRange$1 = "\\ufe20-\\ufe2f", rsComboSymbolsRange$1 = "\\u20d0-\\u20ff", rsComboRange$1 = rsComboMarksRange$1 + reComboHalfMarksRange$1 + rsComboSymbolsRange$1, rsVarRange$1 = "\\ufe0e\\ufe0f";
|
|
1803
|
+
var rsZWJ$1 = "\\u200d";
|
|
1804
|
+
var reHasUnicode = RegExp("[" + rsZWJ$1 + rsAstralRange$1 + rsComboRange$1 + rsVarRange$1 + "]");
|
|
1805
|
+
function hasUnicode$1(string) {
|
|
1806
|
+
return reHasUnicode.test(string);
|
|
1807
|
+
}
|
|
1808
|
+
var _hasUnicode = hasUnicode$1;
|
|
1809
|
+
var rsAstralRange = "\\ud800-\\udfff", rsComboMarksRange = "\\u0300-\\u036f", reComboHalfMarksRange = "\\ufe20-\\ufe2f", rsComboSymbolsRange = "\\u20d0-\\u20ff", rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange, rsVarRange = "\\ufe0e\\ufe0f";
|
|
1810
|
+
var rsAstral = "[" + rsAstralRange + "]", rsCombo = "[" + rsComboRange + "]", rsFitz = "\\ud83c[\\udffb-\\udfff]", rsModifier = "(?:" + rsCombo + "|" + rsFitz + ")", rsNonAstral = "[^" + rsAstralRange + "]", rsRegional = "(?:\\ud83c[\\udde6-\\uddff]){2}", rsSurrPair = "[\\ud800-\\udbff][\\udc00-\\udfff]", rsZWJ = "\\u200d";
|
|
1811
|
+
var reOptMod = rsModifier + "?", rsOptVar = "[" + rsVarRange + "]?", rsOptJoin = "(?:" + rsZWJ + "(?:" + [rsNonAstral, rsRegional, rsSurrPair].join("|") + ")" + rsOptVar + reOptMod + ")*", rsSeq = rsOptVar + reOptMod + rsOptJoin, rsSymbol = "(?:" + [rsNonAstral + rsCombo + "?", rsCombo, rsRegional, rsSurrPair, rsAstral].join("|") + ")";
|
|
1812
|
+
var reUnicode = RegExp(rsFitz + "(?=" + rsFitz + ")|" + rsSymbol + rsSeq, "g");
|
|
1813
|
+
function unicodeSize$1(string) {
|
|
1814
|
+
var result = reUnicode.lastIndex = 0;
|
|
1815
|
+
while (reUnicode.test(string)) {
|
|
1816
|
+
++result;
|
|
1817
|
+
}
|
|
1818
|
+
return result;
|
|
1819
|
+
}
|
|
1820
|
+
var _unicodeSize = unicodeSize$1;
|
|
1821
|
+
var asciiSize = _asciiSize, hasUnicode = _hasUnicode, unicodeSize = _unicodeSize;
|
|
1822
|
+
function stringSize$1(string) {
|
|
1823
|
+
return hasUnicode(string) ? unicodeSize(string) : asciiSize(string);
|
|
1824
|
+
}
|
|
1825
|
+
var _stringSize = stringSize$1;
|
|
1826
|
+
var baseKeys = _baseKeys, getTag = _getTag, isArrayLike$2 = isArrayLike_1, isString = isString_1, stringSize = _stringSize;
|
|
1827
|
+
var mapTag = "[object Map]", setTag = "[object Set]";
|
|
1828
|
+
function size(collection) {
|
|
1829
|
+
if (collection == null) {
|
|
1830
|
+
return 0;
|
|
1831
|
+
}
|
|
1832
|
+
if (isArrayLike$2(collection)) {
|
|
1833
|
+
return isString(collection) ? stringSize(collection) : collection.length;
|
|
1834
|
+
}
|
|
1835
|
+
var tag = getTag(collection);
|
|
1836
|
+
if (tag == mapTag || tag == setTag) {
|
|
1837
|
+
return collection.size;
|
|
1838
|
+
}
|
|
1839
|
+
return baseKeys(collection).length;
|
|
1840
|
+
}
|
|
1841
|
+
var size_1 = size;
|
|
1842
|
+
const size$1 = /* @__PURE__ */ getDefaultExportFromCjs(size_1);
|
|
1843
|
+
var Symbol$1 = _Symbol, isArguments = isArguments_1, isArray$1 = isArray_1;
|
|
1844
|
+
var spreadableSymbol = Symbol$1 ? Symbol$1.isConcatSpreadable : void 0;
|
|
1845
|
+
function isFlattenable$1(value) {
|
|
1846
|
+
return isArray$1(value) || isArguments(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);
|
|
1847
|
+
}
|
|
1848
|
+
var _isFlattenable = isFlattenable$1;
|
|
1849
|
+
var arrayPush = _arrayPush, isFlattenable = _isFlattenable;
|
|
1850
|
+
function baseFlatten$1(array, depth, predicate, isStrict, result) {
|
|
1851
|
+
var index = -1, length = array.length;
|
|
1852
|
+
predicate || (predicate = isFlattenable);
|
|
1853
|
+
result || (result = []);
|
|
1854
|
+
while (++index < length) {
|
|
1855
|
+
var value = array[index];
|
|
1856
|
+
if (depth > 0 && predicate(value)) {
|
|
1857
|
+
if (depth > 1) {
|
|
1858
|
+
baseFlatten$1(value, depth - 1, predicate, isStrict, result);
|
|
1859
|
+
} else {
|
|
1860
|
+
arrayPush(result, value);
|
|
1861
|
+
}
|
|
1862
|
+
} else if (!isStrict) {
|
|
1863
|
+
result[result.length] = value;
|
|
1864
|
+
}
|
|
1865
|
+
}
|
|
1866
|
+
return result;
|
|
1867
|
+
}
|
|
1868
|
+
var _baseFlatten = baseFlatten$1;
|
|
1869
|
+
var baseEach = _baseEach, isArrayLike$1 = isArrayLike_1;
|
|
1870
|
+
function baseMap$1(collection, iteratee) {
|
|
1871
|
+
var index = -1, result = isArrayLike$1(collection) ? Array(collection.length) : [];
|
|
1872
|
+
baseEach(collection, function(value, key, collection2) {
|
|
1873
|
+
result[++index] = iteratee(value, key, collection2);
|
|
1874
|
+
});
|
|
1875
|
+
return result;
|
|
1876
|
+
}
|
|
1877
|
+
var _baseMap = baseMap$1;
|
|
1878
|
+
function baseSortBy$1(array, comparer) {
|
|
1879
|
+
var length = array.length;
|
|
1880
|
+
array.sort(comparer);
|
|
1881
|
+
while (length--) {
|
|
1882
|
+
array[length] = array[length].value;
|
|
1883
|
+
}
|
|
1884
|
+
return array;
|
|
1885
|
+
}
|
|
1886
|
+
var _baseSortBy = baseSortBy$1;
|
|
1887
|
+
var isSymbol = isSymbol_1;
|
|
1888
|
+
function compareAscending$1(value, other) {
|
|
1889
|
+
if (value !== other) {
|
|
1890
|
+
var valIsDefined = value !== void 0, valIsNull = value === null, valIsReflexive = value === value, valIsSymbol = isSymbol(value);
|
|
1891
|
+
var othIsDefined = other !== void 0, othIsNull = other === null, othIsReflexive = other === other, othIsSymbol = isSymbol(other);
|
|
1892
|
+
if (!othIsNull && !othIsSymbol && !valIsSymbol && value > other || valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol || valIsNull && othIsDefined && othIsReflexive || !valIsDefined && othIsReflexive || !valIsReflexive) {
|
|
1893
|
+
return 1;
|
|
1894
|
+
}
|
|
1895
|
+
if (!valIsNull && !valIsSymbol && !othIsSymbol && value < other || othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol || othIsNull && valIsDefined && valIsReflexive || !othIsDefined && valIsReflexive || !othIsReflexive) {
|
|
1896
|
+
return -1;
|
|
1897
|
+
}
|
|
1898
|
+
}
|
|
1899
|
+
return 0;
|
|
1900
|
+
}
|
|
1901
|
+
var _compareAscending = compareAscending$1;
|
|
1902
|
+
var compareAscending = _compareAscending;
|
|
1903
|
+
function compareMultiple$1(object, other, orders) {
|
|
1904
|
+
var index = -1, objCriteria = object.criteria, othCriteria = other.criteria, length = objCriteria.length, ordersLength = orders.length;
|
|
1905
|
+
while (++index < length) {
|
|
1906
|
+
var result = compareAscending(objCriteria[index], othCriteria[index]);
|
|
1907
|
+
if (result) {
|
|
1908
|
+
if (index >= ordersLength) {
|
|
1909
|
+
return result;
|
|
1910
|
+
}
|
|
1911
|
+
var order = orders[index];
|
|
1912
|
+
return result * (order == "desc" ? -1 : 1);
|
|
1913
|
+
}
|
|
1914
|
+
}
|
|
1915
|
+
return object.index - other.index;
|
|
1916
|
+
}
|
|
1917
|
+
var _compareMultiple = compareMultiple$1;
|
|
1918
|
+
var arrayMap = _arrayMap, baseGet = _baseGet, baseIteratee = _baseIteratee, baseMap = _baseMap, baseSortBy = _baseSortBy, baseUnary = _baseUnary, compareMultiple = _compareMultiple, identity$2 = identity_1, isArray = isArray_1;
|
|
1919
|
+
function baseOrderBy$1(collection, iteratees, orders) {
|
|
1920
|
+
if (iteratees.length) {
|
|
1921
|
+
iteratees = arrayMap(iteratees, function(iteratee) {
|
|
1922
|
+
if (isArray(iteratee)) {
|
|
1923
|
+
return function(value) {
|
|
1924
|
+
return baseGet(value, iteratee.length === 1 ? iteratee[0] : iteratee);
|
|
1925
|
+
};
|
|
1926
|
+
}
|
|
1927
|
+
return iteratee;
|
|
1928
|
+
});
|
|
1929
|
+
} else {
|
|
1930
|
+
iteratees = [identity$2];
|
|
1931
|
+
}
|
|
1932
|
+
var index = -1;
|
|
1933
|
+
iteratees = arrayMap(iteratees, baseUnary(baseIteratee));
|
|
1934
|
+
var result = baseMap(collection, function(value, key, collection2) {
|
|
1935
|
+
var criteria = arrayMap(iteratees, function(iteratee) {
|
|
1936
|
+
return iteratee(value);
|
|
1937
|
+
});
|
|
1938
|
+
return { "criteria": criteria, "index": ++index, "value": value };
|
|
1939
|
+
});
|
|
1940
|
+
return baseSortBy(result, function(object, other) {
|
|
1941
|
+
return compareMultiple(object, other, orders);
|
|
1942
|
+
});
|
|
1943
|
+
}
|
|
1944
|
+
var _baseOrderBy = baseOrderBy$1;
|
|
1945
|
+
function apply$1(func, thisArg, args) {
|
|
1946
|
+
switch (args.length) {
|
|
1947
|
+
case 0:
|
|
1948
|
+
return func.call(thisArg);
|
|
1949
|
+
case 1:
|
|
1950
|
+
return func.call(thisArg, args[0]);
|
|
1951
|
+
case 2:
|
|
1952
|
+
return func.call(thisArg, args[0], args[1]);
|
|
1953
|
+
case 3:
|
|
1954
|
+
return func.call(thisArg, args[0], args[1], args[2]);
|
|
1955
|
+
}
|
|
1956
|
+
return func.apply(thisArg, args);
|
|
1957
|
+
}
|
|
1958
|
+
var _apply = apply$1;
|
|
1959
|
+
var apply = _apply;
|
|
1960
|
+
var nativeMax = Math.max;
|
|
1961
|
+
function overRest$1(func, start, transform) {
|
|
1962
|
+
start = nativeMax(start === void 0 ? func.length - 1 : start, 0);
|
|
1963
|
+
return function() {
|
|
1964
|
+
var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array(length);
|
|
1965
|
+
while (++index < length) {
|
|
1966
|
+
array[index] = args[start + index];
|
|
1967
|
+
}
|
|
1968
|
+
index = -1;
|
|
1969
|
+
var otherArgs = Array(start + 1);
|
|
1970
|
+
while (++index < start) {
|
|
1971
|
+
otherArgs[index] = args[index];
|
|
1972
|
+
}
|
|
1973
|
+
otherArgs[start] = transform(array);
|
|
1974
|
+
return apply(func, this, otherArgs);
|
|
1975
|
+
};
|
|
1976
|
+
}
|
|
1977
|
+
var _overRest = overRest$1;
|
|
1978
|
+
function constant$1(value) {
|
|
1979
|
+
return function() {
|
|
1980
|
+
return value;
|
|
1981
|
+
};
|
|
1982
|
+
}
|
|
1983
|
+
var constant_1 = constant$1;
|
|
1984
|
+
var constant = constant_1, defineProperty = _defineProperty, identity$1 = identity_1;
|
|
1985
|
+
var baseSetToString$1 = !defineProperty ? identity$1 : function(func, string) {
|
|
1986
|
+
return defineProperty(func, "toString", {
|
|
1987
|
+
"configurable": true,
|
|
1988
|
+
"enumerable": false,
|
|
1989
|
+
"value": constant(string),
|
|
1990
|
+
"writable": true
|
|
1991
|
+
});
|
|
1992
|
+
};
|
|
1993
|
+
var _baseSetToString = baseSetToString$1;
|
|
1994
|
+
var HOT_COUNT = 800, HOT_SPAN = 16;
|
|
1995
|
+
var nativeNow = Date.now;
|
|
1996
|
+
function shortOut$1(func) {
|
|
1997
|
+
var count = 0, lastCalled = 0;
|
|
1998
|
+
return function() {
|
|
1999
|
+
var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled);
|
|
2000
|
+
lastCalled = stamp;
|
|
2001
|
+
if (remaining > 0) {
|
|
2002
|
+
if (++count >= HOT_COUNT) {
|
|
2003
|
+
return arguments[0];
|
|
2004
|
+
}
|
|
2005
|
+
} else {
|
|
2006
|
+
count = 0;
|
|
2007
|
+
}
|
|
2008
|
+
return func.apply(void 0, arguments);
|
|
2009
|
+
};
|
|
2010
|
+
}
|
|
2011
|
+
var _shortOut = shortOut$1;
|
|
2012
|
+
var baseSetToString = _baseSetToString, shortOut = _shortOut;
|
|
2013
|
+
var setToString$1 = shortOut(baseSetToString);
|
|
2014
|
+
var _setToString = setToString$1;
|
|
2015
|
+
var identity = identity_1, overRest = _overRest, setToString = _setToString;
|
|
2016
|
+
function baseRest$1(func, start) {
|
|
2017
|
+
return setToString(overRest(func, start, identity), func + "");
|
|
2018
|
+
}
|
|
2019
|
+
var _baseRest = baseRest$1;
|
|
2020
|
+
var eq = eq_1, isArrayLike = isArrayLike_1, isIndex = _isIndex, isObject = isObject_1;
|
|
2021
|
+
function isIterateeCall$1(value, index, object) {
|
|
2022
|
+
if (!isObject(object)) {
|
|
2023
|
+
return false;
|
|
2024
|
+
}
|
|
2025
|
+
var type2 = typeof index;
|
|
2026
|
+
if (type2 == "number" ? isArrayLike(object) && isIndex(index, object.length) : type2 == "string" && index in object) {
|
|
2027
|
+
return eq(object[index], value);
|
|
2028
|
+
}
|
|
2029
|
+
return false;
|
|
2030
|
+
}
|
|
2031
|
+
var _isIterateeCall = isIterateeCall$1;
|
|
2032
|
+
var baseFlatten = _baseFlatten, baseOrderBy = _baseOrderBy, baseRest = _baseRest, isIterateeCall = _isIterateeCall;
|
|
2033
|
+
var sortBy = baseRest(function(collection, iteratees) {
|
|
2034
|
+
if (collection == null) {
|
|
2035
|
+
return [];
|
|
2036
|
+
}
|
|
2037
|
+
var length = iteratees.length;
|
|
2038
|
+
if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {
|
|
2039
|
+
iteratees = [];
|
|
2040
|
+
} else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {
|
|
2041
|
+
iteratees = [iteratees[0]];
|
|
2042
|
+
}
|
|
2043
|
+
return baseOrderBy(collection, baseFlatten(iteratees, 1), []);
|
|
2044
|
+
});
|
|
2045
|
+
var sortBy_1 = sortBy;
|
|
2046
|
+
const sortBy$1 = /* @__PURE__ */ getDefaultExportFromCjs(sortBy_1);
|
|
2047
|
+
function addCell(row, cell) {
|
|
2048
|
+
if (!row.cells)
|
|
2049
|
+
row.cells = {};
|
|
2050
|
+
row.cells[cell.id] = cell;
|
|
2051
|
+
return cell;
|
|
2052
|
+
}
|
|
2053
|
+
function removeCell(row, predicate = {}) {
|
|
2054
|
+
const cell = find$1(row.cells, predicate);
|
|
2055
|
+
if (!cell)
|
|
2056
|
+
return;
|
|
2057
|
+
delete row.cells[cell.id];
|
|
2058
|
+
return cell;
|
|
2059
|
+
}
|
|
2060
|
+
function addEmbed(embeds, cellId, tableId) {
|
|
2061
|
+
const embed = {
|
|
2062
|
+
id: cellId,
|
|
2063
|
+
type: "TIPTAP_HTML",
|
|
2064
|
+
embedded: true,
|
|
2065
|
+
data: { tableId, cellId }
|
|
2066
|
+
};
|
|
2067
|
+
embeds[cellId] = embed;
|
|
2068
|
+
return embed;
|
|
2069
|
+
}
|
|
2070
|
+
function removeEmbed(embeds, predicate = {}) {
|
|
2071
|
+
const embed = find$1(embeds, predicate);
|
|
2072
|
+
if (!embed)
|
|
2073
|
+
return;
|
|
2074
|
+
delete embeds[embed.id];
|
|
2075
|
+
return embed;
|
|
2076
|
+
}
|
|
2077
|
+
const _hoisted_1$1 = { class: "table-cell" };
|
|
2078
|
+
const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
|
|
2079
|
+
__name: "TableCell",
|
|
2080
|
+
props: {
|
|
2081
|
+
cell: {},
|
|
2082
|
+
table: {},
|
|
2083
|
+
isDisabled: { type: Boolean }
|
|
2084
|
+
},
|
|
2085
|
+
emits: ["save"],
|
|
2086
|
+
setup(__props, { emit }) {
|
|
2087
|
+
const props = __props;
|
|
2088
|
+
const save = (data) => {
|
|
2089
|
+
emit("save", { ...cloneDeep$1(props.cell), data });
|
|
2090
|
+
};
|
|
2091
|
+
return (_ctx, _cache) => {
|
|
2092
|
+
const _component_TailorContentElement = vue.resolveComponent("TailorContentElement");
|
|
2093
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$1, [
|
|
2094
|
+
vue.createVNode(_component_TailorContentElement, {
|
|
2095
|
+
element: _ctx.cell,
|
|
2096
|
+
"is-disabled": _ctx.isDisabled,
|
|
2097
|
+
parent: _ctx.table,
|
|
2098
|
+
onSave: save
|
|
2099
|
+
}, null, 8, ["element", "is-disabled", "parent"])
|
|
2100
|
+
]);
|
|
2101
|
+
};
|
|
2102
|
+
}
|
|
2103
|
+
});
|
|
2104
|
+
const TableCell_vue_vue_type_style_index_0_scoped_083fd0de_lang = "";
|
|
2105
|
+
const _export_sfc = (sfc, props) => {
|
|
2106
|
+
const target = sfc.__vccOpts || sfc;
|
|
2107
|
+
for (const [key, val] of props) {
|
|
2108
|
+
target[key] = val;
|
|
2109
|
+
}
|
|
2110
|
+
return target;
|
|
2111
|
+
};
|
|
2112
|
+
const TableCell = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-083fd0de"]]);
|
|
2113
|
+
const _hoisted_1 = { class: "text-subtitle-2" };
|
|
2114
|
+
const _hoisted_2 = { class: "body" };
|
|
2115
|
+
const MIN_ROWS = 1;
|
|
2116
|
+
const MIN_COLUMNS = 1;
|
|
2117
|
+
const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
2118
|
+
__name: "Edit",
|
|
2119
|
+
props: {
|
|
2120
|
+
element: {},
|
|
2121
|
+
embedElementConfig: {},
|
|
2122
|
+
isFocused: { type: Boolean },
|
|
2123
|
+
isDisabled: { type: Boolean }
|
|
2124
|
+
},
|
|
2125
|
+
emits: ["focus", "save"],
|
|
2126
|
+
setup(__props, { emit }) {
|
|
2127
|
+
const props = __props;
|
|
2128
|
+
const between = (pos1, pos2) => (pos2 + pos1) / 2;
|
|
2129
|
+
const limit = (anchor, direction) => anchor.position + direction;
|
|
2130
|
+
function sibling(arr, item, direction) {
|
|
2131
|
+
if (direction === Direction.Before) {
|
|
2132
|
+
return last$1(arr.filter((it) => it.position < item.position));
|
|
2133
|
+
}
|
|
2134
|
+
return first$1(arr.filter((it) => it.position > item.position));
|
|
2135
|
+
}
|
|
2136
|
+
function calculateInsertPosition(collection, anchor, direction) {
|
|
2137
|
+
const sorted = sortBy$1(collection, "position");
|
|
2138
|
+
const adjacent = sibling(sorted, anchor, direction);
|
|
2139
|
+
return between(
|
|
2140
|
+
anchor.position,
|
|
2141
|
+
adjacent && adjacent.position || limit(anchor, direction)
|
|
2142
|
+
);
|
|
2143
|
+
}
|
|
2144
|
+
function getFocusedItem(collection, current) {
|
|
2145
|
+
const sorted = sortBy$1(collection, "position");
|
|
2146
|
+
return sibling(sorted, current, Direction.Before) || sibling(sorted, current, Direction.After);
|
|
2147
|
+
}
|
|
2148
|
+
const bus = vue.inject("$elementBus");
|
|
2149
|
+
const elementData = vue.reactive(cloneDeep$1(props.element.data));
|
|
2150
|
+
const table = vue.computed(() => sortBy$1(elementData.rows, "position"));
|
|
2151
|
+
const rows = vue.computed(() => elementData.rows);
|
|
2152
|
+
const embeds = vue.computed(() => elementData.embeds);
|
|
2153
|
+
const cells = (row) => sortBy$1(row.cells, "position");
|
|
2154
|
+
const findRow = (cellId) => {
|
|
2155
|
+
return find$1(rows.value, (row) => !!row.cells[cellId]);
|
|
2156
|
+
};
|
|
2157
|
+
const focusElement = (cell) => {
|
|
2158
|
+
emit("focus", {}, { ...cell, type: "HTML" }, props.element);
|
|
2159
|
+
};
|
|
2160
|
+
const addRow = (cellId, direction = Direction.After) => {
|
|
2161
|
+
const row = findRow(cellId);
|
|
2162
|
+
if (!row)
|
|
2163
|
+
return;
|
|
2164
|
+
const element = cloneDeep$1(props.element);
|
|
2165
|
+
const { tableId, rows: rows2, embeds: embeds2 } = element.data;
|
|
2166
|
+
const position = calculateInsertPosition(rows2, row, direction);
|
|
2167
|
+
const newRow = { id: v4(), position, cells: {} };
|
|
2168
|
+
forEach$1(row.cells, ({ position: position2 }) => {
|
|
2169
|
+
const cellId2 = v4();
|
|
2170
|
+
addCell(newRow, { id: cellId2, position: position2, data: {} });
|
|
2171
|
+
addEmbed(embeds2, cellId2, tableId);
|
|
2172
|
+
});
|
|
2173
|
+
rows2[newRow.id] = newRow;
|
|
2174
|
+
emit("save", element.data);
|
|
2175
|
+
};
|
|
2176
|
+
const addColumn = (cellId, direction = Direction.After) => {
|
|
2177
|
+
const row = findRow(cellId);
|
|
2178
|
+
if (!row)
|
|
2179
|
+
return;
|
|
2180
|
+
const cell = row.cells[cellId];
|
|
2181
|
+
if (!cell)
|
|
2182
|
+
return;
|
|
2183
|
+
const element = cloneDeep$1(props.element);
|
|
2184
|
+
const { tableId, rows: rows2, embeds: embeds2 } = element.data;
|
|
2185
|
+
const position = calculateInsertPosition(row.cells, cell, direction);
|
|
2186
|
+
forEach$1(rows2, (row2) => {
|
|
2187
|
+
const cellId2 = v4();
|
|
2188
|
+
addCell(row2, { id: cellId2, position, data: {} });
|
|
2189
|
+
addEmbed(embeds2, cellId2, tableId);
|
|
2190
|
+
});
|
|
2191
|
+
emit("save", element.data);
|
|
2192
|
+
};
|
|
2193
|
+
const removeRow = (cellId) => {
|
|
2194
|
+
const row = findRow(cellId);
|
|
2195
|
+
if (!row || size$1(props.element.data.rows) <= MIN_ROWS)
|
|
2196
|
+
return;
|
|
2197
|
+
const element = cloneDeep$1(props.element);
|
|
2198
|
+
const { rows: rows2, embeds: embeds2 } = element.data;
|
|
2199
|
+
forEach$1(row.cells, (cell) => removeEmbed(embeds2, { id: cell.id }));
|
|
2200
|
+
delete rows2[row.id];
|
|
2201
|
+
const focusedRow = getFocusedItem(rows2, row);
|
|
2202
|
+
if (focusedRow) {
|
|
2203
|
+
const cell = first$1(cells(focusedRow));
|
|
2204
|
+
if (cell)
|
|
2205
|
+
focusElement(embeds2[cell.id]);
|
|
2206
|
+
}
|
|
2207
|
+
emit("save", { embeds: embeds2, rows: rows2 });
|
|
2208
|
+
};
|
|
2209
|
+
const removeColumn = (cellId) => {
|
|
2210
|
+
const row = findRow(cellId);
|
|
2211
|
+
if (!row || size$1(row.cells) <= MIN_COLUMNS)
|
|
2212
|
+
return;
|
|
2213
|
+
const cell = row.cells[cellId];
|
|
2214
|
+
if (!cell)
|
|
2215
|
+
return;
|
|
2216
|
+
const element = cloneDeep$1(props.element);
|
|
2217
|
+
const { rows: rows2, embeds: embeds2 } = element.data;
|
|
2218
|
+
forEach$1(rows2, (row2) => {
|
|
2219
|
+
const deletedCell = removeCell(row2, { position: cell.position });
|
|
2220
|
+
if (deletedCell)
|
|
2221
|
+
removeEmbed(embeds2, { id: deletedCell.id });
|
|
2222
|
+
});
|
|
2223
|
+
const focusedCell = getFocusedItem(row.cells, cell);
|
|
2224
|
+
if (focusedCell)
|
|
2225
|
+
focusElement(embeds2[focusedCell.id]);
|
|
2226
|
+
emit("save", { embeds: embeds2, rows: rows2 });
|
|
2227
|
+
};
|
|
2228
|
+
const saveCell = (element) => {
|
|
2229
|
+
elementData.embeds[element.id] = element;
|
|
2230
|
+
emit("save", elementData);
|
|
2231
|
+
};
|
|
2232
|
+
bus.on("addRowBefore", (id) => addRow(id, Direction.Before));
|
|
2233
|
+
bus.on("addRowAfter", (id) => addRow(id, Direction.After));
|
|
2234
|
+
bus.on("addColumnBefore", (id) => addColumn(id, Direction.Before));
|
|
2235
|
+
bus.on("addColumnAfter", (id) => addColumn(id, Direction.After));
|
|
2236
|
+
bus.on("removeRow", (id) => removeRow(id));
|
|
2237
|
+
bus.on("removeColumn", (id) => removeColumn(id));
|
|
2238
|
+
return (_ctx, _cache) => {
|
|
2239
|
+
const _component_VIcon = vue.resolveComponent("VIcon");
|
|
2240
|
+
const _component_VToolbar = vue.resolveComponent("VToolbar");
|
|
2241
|
+
const _component_VCard = vue.resolveComponent("VCard");
|
|
2242
|
+
return vue.openBlock(), vue.createBlock(_component_VCard, {
|
|
2243
|
+
class: "tce-table my-2",
|
|
2244
|
+
color: "grey-lighten-5"
|
|
2245
|
+
}, {
|
|
2246
|
+
default: vue.withCtx(() => [
|
|
2247
|
+
vue.createVNode(_component_VToolbar, {
|
|
2248
|
+
class: "px-4",
|
|
2249
|
+
color: "primary-darken-2",
|
|
2250
|
+
height: "36"
|
|
2251
|
+
}, {
|
|
2252
|
+
default: vue.withCtx(() => [
|
|
2253
|
+
vue.createVNode(_component_VIcon, {
|
|
2254
|
+
icon: vue.unref(src_default).ui.icon,
|
|
2255
|
+
color: "secondary-lighten-2",
|
|
2256
|
+
size: "18",
|
|
2257
|
+
start: ""
|
|
2258
|
+
}, null, 8, ["icon"]),
|
|
2259
|
+
vue.createElementVNode("span", _hoisted_1, vue.toDisplayString(vue.unref(src_default).name), 1)
|
|
2260
|
+
]),
|
|
2261
|
+
_: 1
|
|
2262
|
+
}),
|
|
2263
|
+
vue.createElementVNode("div", _hoisted_2, [
|
|
2264
|
+
vue.createElementVNode("div", {
|
|
2265
|
+
class: vue.normalizeClass([{ disabled: _ctx.isDisabled }, "table ma-4"])
|
|
2266
|
+
}, [
|
|
2267
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(table.value, (row) => {
|
|
2268
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
2269
|
+
key: row.id,
|
|
2270
|
+
class: "table-row"
|
|
2271
|
+
}, [
|
|
2272
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(cells(row), (cell) => {
|
|
2273
|
+
return vue.openBlock(), vue.createBlock(TableCell, {
|
|
2274
|
+
key: cell.id,
|
|
2275
|
+
cell: embeds.value[cell.id],
|
|
2276
|
+
"is-disabled": _ctx.isDisabled,
|
|
2277
|
+
table: _ctx.element,
|
|
2278
|
+
onSave: saveCell
|
|
2279
|
+
}, null, 8, ["cell", "is-disabled", "table"]);
|
|
2280
|
+
}), 128))
|
|
2281
|
+
]);
|
|
2282
|
+
}), 128))
|
|
2283
|
+
], 2)
|
|
2284
|
+
])
|
|
2285
|
+
]),
|
|
2286
|
+
_: 1
|
|
2287
|
+
});
|
|
2288
|
+
};
|
|
2289
|
+
}
|
|
2290
|
+
});
|
|
2291
|
+
const Edit_vue_vue_type_style_index_0_scoped_26c8921d_lang = "";
|
|
2292
|
+
const Edit = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-26c8921d"]]);
|
|
2293
|
+
const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
2294
|
+
__name: "SideToolbar",
|
|
2295
|
+
props: {
|
|
2296
|
+
element: {}
|
|
2297
|
+
},
|
|
2298
|
+
emits: ["save"],
|
|
2299
|
+
setup(__props) {
|
|
2300
|
+
return (_ctx, _cache) => {
|
|
2301
|
+
var _a;
|
|
2302
|
+
return vue.openBlock(), vue.createElementBlock("div", null, [
|
|
2303
|
+
vue.createElementVNode("p", null, "Edit element side toolbar " + vue.toDisplayString((_a = _ctx.element) == null ? void 0 : _a.id), 1)
|
|
2304
|
+
]);
|
|
2305
|
+
};
|
|
2306
|
+
}
|
|
2307
|
+
});
|
|
2308
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
2309
|
+
__name: "TopToolbar",
|
|
2310
|
+
props: {
|
|
2311
|
+
element: {}
|
|
2312
|
+
},
|
|
2313
|
+
setup(__props) {
|
|
2314
|
+
const props = __props;
|
|
2315
|
+
const elementBus = vue.inject("$elementBus");
|
|
2316
|
+
const actions = vue.computed(() => [
|
|
2317
|
+
{ name: "addRowBefore", label: "Add row before" },
|
|
2318
|
+
{ name: "addRowAfter", label: "Add row after" },
|
|
2319
|
+
{ name: "addColumnBefore", label: "Add column before" },
|
|
2320
|
+
{ name: "addColumnAfter", label: "Add column after" },
|
|
2321
|
+
{ name: "removeRow", label: "Delete row" },
|
|
2322
|
+
{ name: "removeColumn", label: "Delete column" }
|
|
2323
|
+
]);
|
|
2324
|
+
const trigger = (action) => {
|
|
2325
|
+
var _a;
|
|
2326
|
+
elementBus.emit(action, (_a = props.element) == null ? void 0 : _a.id);
|
|
2327
|
+
};
|
|
2328
|
+
return (_ctx, _cache) => {
|
|
2329
|
+
const _component_VIcon = vue.resolveComponent("VIcon");
|
|
2330
|
+
const _component_VBtn = vue.resolveComponent("VBtn");
|
|
2331
|
+
const _component_VListItemTitle = vue.resolveComponent("VListItemTitle");
|
|
2332
|
+
const _component_VListItem = vue.resolveComponent("VListItem");
|
|
2333
|
+
const _component_VList = vue.resolveComponent("VList");
|
|
2334
|
+
const _component_VMenu = vue.resolveComponent("VMenu");
|
|
2335
|
+
const _component_VToolbarItems = vue.resolveComponent("VToolbarItems");
|
|
2336
|
+
const _component_VToolbar = vue.resolveComponent("VToolbar");
|
|
2337
|
+
return vue.openBlock(), vue.createBlock(_component_VToolbar, {
|
|
2338
|
+
class: "tce-table-toolbar elevation-0",
|
|
2339
|
+
color: "transparent"
|
|
2340
|
+
}, {
|
|
2341
|
+
default: vue.withCtx(() => [
|
|
2342
|
+
vue.createVNode(_component_VToolbarItems, null, {
|
|
2343
|
+
default: vue.withCtx(() => [
|
|
2344
|
+
vue.createVNode(_component_VMenu, { bottom: "" }, {
|
|
2345
|
+
activator: vue.withCtx(({ props: activatorProps }) => [
|
|
2346
|
+
vue.createVNode(_component_VBtn, vue.mergeProps(activatorProps, { variant: "text" }), {
|
|
2347
|
+
default: vue.withCtx(() => [
|
|
2348
|
+
vue.createTextVNode(" Table options "),
|
|
2349
|
+
vue.createVNode(_component_VIcon, null, {
|
|
2350
|
+
default: vue.withCtx(() => [
|
|
2351
|
+
vue.createTextVNode("mdi-chevron-down")
|
|
2352
|
+
]),
|
|
2353
|
+
_: 1
|
|
2354
|
+
})
|
|
2355
|
+
]),
|
|
2356
|
+
_: 2
|
|
2357
|
+
}, 1040)
|
|
2358
|
+
]),
|
|
2359
|
+
default: vue.withCtx(() => [
|
|
2360
|
+
vue.createVNode(_component_VList, { class: "text-left" }, {
|
|
2361
|
+
default: vue.withCtx(() => [
|
|
2362
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(actions.value, (action) => {
|
|
2363
|
+
return vue.openBlock(), vue.createBlock(_component_VListItem, {
|
|
2364
|
+
key: action.name,
|
|
2365
|
+
onClick: ($event) => trigger(action.name)
|
|
2366
|
+
}, {
|
|
2367
|
+
default: vue.withCtx(() => [
|
|
2368
|
+
vue.createVNode(_component_VListItemTitle, null, {
|
|
2369
|
+
default: vue.withCtx(() => [
|
|
2370
|
+
vue.createTextVNode(vue.toDisplayString(action.label), 1)
|
|
2371
|
+
]),
|
|
2372
|
+
_: 2
|
|
2373
|
+
}, 1024)
|
|
2374
|
+
]),
|
|
2375
|
+
_: 2
|
|
2376
|
+
}, 1032, ["onClick"]);
|
|
2377
|
+
}), 128))
|
|
2378
|
+
]),
|
|
2379
|
+
_: 1
|
|
2380
|
+
})
|
|
2381
|
+
]),
|
|
2382
|
+
_: 1
|
|
2383
|
+
})
|
|
2384
|
+
]),
|
|
2385
|
+
_: 1
|
|
2386
|
+
})
|
|
2387
|
+
]),
|
|
2388
|
+
_: 1
|
|
2389
|
+
});
|
|
2390
|
+
};
|
|
2391
|
+
}
|
|
2392
|
+
});
|
|
2393
|
+
const TopToolbar_vue_vue_type_style_index_0_scoped_fb603823_lang = "";
|
|
2394
|
+
const TopToolbar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-fb603823"]]);
|
|
2395
|
+
const manifest = {
|
|
2396
|
+
...src_default,
|
|
2397
|
+
Edit,
|
|
2398
|
+
SideToolbar: _sfc_main$1,
|
|
2399
|
+
TopToolbar
|
|
2400
|
+
};
|
|
2401
|
+
exports.Edit = Edit;
|
|
2402
|
+
exports.SideToolbar = _sfc_main$1;
|
|
2403
|
+
exports.TopToolbar = TopToolbar;
|
|
2404
|
+
exports.default = manifest;
|