@tailor-cms/ce-modal-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/dist/index.js ADDED
@@ -0,0 +1,1320 @@
1
+ import "./style.css";
2
+ import { defineComponent, inject, reactive, computed, resolveComponent, openBlock, createBlock, withCtx, createVNode, unref, createElementVNode, toDisplayString, createTextVNode, createCommentVNode, ref, watch } from "vue";
3
+ var type = "CE_MODAL";
4
+ var name = "Modal";
5
+ var initState = () => ({
6
+ title: null,
7
+ embeds: {}
8
+ });
9
+ var ui = {
10
+ // Display icon, https://pictogrammers.com/library/mdi/
11
+ icon: "mdi-window-restore",
12
+ // Does element support only full width or can be used within layouts
13
+ // (e.g. 50/50 layout)
14
+ forceFullWidth: false
15
+ };
16
+ var manifest$1 = {
17
+ type,
18
+ version: "1.0",
19
+ name,
20
+ ssr: false,
21
+ isComposite: true,
22
+ initState,
23
+ ui
24
+ };
25
+ var src_default = manifest$1;
26
+ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
27
+ function getDefaultExportFromCjs(x) {
28
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
29
+ }
30
+ function listCacheClear$1() {
31
+ this.__data__ = [];
32
+ this.size = 0;
33
+ }
34
+ var _listCacheClear = listCacheClear$1;
35
+ function eq$2(value, other) {
36
+ return value === other || value !== value && other !== other;
37
+ }
38
+ var eq_1 = eq$2;
39
+ var eq$1 = eq_1;
40
+ function assocIndexOf$4(array, key) {
41
+ var length = array.length;
42
+ while (length--) {
43
+ if (eq$1(array[length][0], key)) {
44
+ return length;
45
+ }
46
+ }
47
+ return -1;
48
+ }
49
+ var _assocIndexOf = assocIndexOf$4;
50
+ var assocIndexOf$3 = _assocIndexOf;
51
+ var arrayProto = Array.prototype;
52
+ var splice = arrayProto.splice;
53
+ function listCacheDelete$1(key) {
54
+ var data = this.__data__, index = assocIndexOf$3(data, key);
55
+ if (index < 0) {
56
+ return false;
57
+ }
58
+ var lastIndex = data.length - 1;
59
+ if (index == lastIndex) {
60
+ data.pop();
61
+ } else {
62
+ splice.call(data, index, 1);
63
+ }
64
+ --this.size;
65
+ return true;
66
+ }
67
+ var _listCacheDelete = listCacheDelete$1;
68
+ var assocIndexOf$2 = _assocIndexOf;
69
+ function listCacheGet$1(key) {
70
+ var data = this.__data__, index = assocIndexOf$2(data, key);
71
+ return index < 0 ? void 0 : data[index][1];
72
+ }
73
+ var _listCacheGet = listCacheGet$1;
74
+ var assocIndexOf$1 = _assocIndexOf;
75
+ function listCacheHas$1(key) {
76
+ return assocIndexOf$1(this.__data__, key) > -1;
77
+ }
78
+ var _listCacheHas = listCacheHas$1;
79
+ var assocIndexOf = _assocIndexOf;
80
+ function listCacheSet$1(key, value) {
81
+ var data = this.__data__, index = assocIndexOf(data, key);
82
+ if (index < 0) {
83
+ ++this.size;
84
+ data.push([key, value]);
85
+ } else {
86
+ data[index][1] = value;
87
+ }
88
+ return this;
89
+ }
90
+ var _listCacheSet = listCacheSet$1;
91
+ var listCacheClear = _listCacheClear, listCacheDelete = _listCacheDelete, listCacheGet = _listCacheGet, listCacheHas = _listCacheHas, listCacheSet = _listCacheSet;
92
+ function ListCache$4(entries) {
93
+ var index = -1, length = entries == null ? 0 : entries.length;
94
+ this.clear();
95
+ while (++index < length) {
96
+ var entry = entries[index];
97
+ this.set(entry[0], entry[1]);
98
+ }
99
+ }
100
+ ListCache$4.prototype.clear = listCacheClear;
101
+ ListCache$4.prototype["delete"] = listCacheDelete;
102
+ ListCache$4.prototype.get = listCacheGet;
103
+ ListCache$4.prototype.has = listCacheHas;
104
+ ListCache$4.prototype.set = listCacheSet;
105
+ var _ListCache = ListCache$4;
106
+ var ListCache$3 = _ListCache;
107
+ function stackClear$1() {
108
+ this.__data__ = new ListCache$3();
109
+ this.size = 0;
110
+ }
111
+ var _stackClear = stackClear$1;
112
+ function stackDelete$1(key) {
113
+ var data = this.__data__, result = data["delete"](key);
114
+ this.size = data.size;
115
+ return result;
116
+ }
117
+ var _stackDelete = stackDelete$1;
118
+ function stackGet$1(key) {
119
+ return this.__data__.get(key);
120
+ }
121
+ var _stackGet = stackGet$1;
122
+ function stackHas$1(key) {
123
+ return this.__data__.has(key);
124
+ }
125
+ var _stackHas = stackHas$1;
126
+ var freeGlobal$1 = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
127
+ var _freeGlobal = freeGlobal$1;
128
+ var freeGlobal = _freeGlobal;
129
+ var freeSelf = typeof self == "object" && self && self.Object === Object && self;
130
+ var root$9 = freeGlobal || freeSelf || Function("return this")();
131
+ var _root = root$9;
132
+ var root$8 = _root;
133
+ var Symbol$4 = root$8.Symbol;
134
+ var _Symbol = Symbol$4;
135
+ var Symbol$3 = _Symbol;
136
+ var objectProto$d = Object.prototype;
137
+ var hasOwnProperty$a = objectProto$d.hasOwnProperty;
138
+ var nativeObjectToString$1 = objectProto$d.toString;
139
+ var symToStringTag$1 = Symbol$3 ? Symbol$3.toStringTag : void 0;
140
+ function getRawTag$1(value) {
141
+ var isOwn = hasOwnProperty$a.call(value, symToStringTag$1), tag = value[symToStringTag$1];
142
+ try {
143
+ value[symToStringTag$1] = void 0;
144
+ var unmasked = true;
145
+ } catch (e) {
146
+ }
147
+ var result = nativeObjectToString$1.call(value);
148
+ if (unmasked) {
149
+ if (isOwn) {
150
+ value[symToStringTag$1] = tag;
151
+ } else {
152
+ delete value[symToStringTag$1];
153
+ }
154
+ }
155
+ return result;
156
+ }
157
+ var _getRawTag = getRawTag$1;
158
+ var objectProto$c = Object.prototype;
159
+ var nativeObjectToString = objectProto$c.toString;
160
+ function objectToString$1(value) {
161
+ return nativeObjectToString.call(value);
162
+ }
163
+ var _objectToString = objectToString$1;
164
+ var Symbol$2 = _Symbol, getRawTag = _getRawTag, objectToString = _objectToString;
165
+ var nullTag = "[object Null]", undefinedTag = "[object Undefined]";
166
+ var symToStringTag = Symbol$2 ? Symbol$2.toStringTag : void 0;
167
+ function baseGetTag$5(value) {
168
+ if (value == null) {
169
+ return value === void 0 ? undefinedTag : nullTag;
170
+ }
171
+ return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
172
+ }
173
+ var _baseGetTag = baseGetTag$5;
174
+ function isObject$7(value) {
175
+ var type2 = typeof value;
176
+ return value != null && (type2 == "object" || type2 == "function");
177
+ }
178
+ var isObject_1 = isObject$7;
179
+ var baseGetTag$4 = _baseGetTag, isObject$6 = isObject_1;
180
+ var asyncTag = "[object AsyncFunction]", funcTag$2 = "[object Function]", genTag$1 = "[object GeneratorFunction]", proxyTag = "[object Proxy]";
181
+ function isFunction$2(value) {
182
+ if (!isObject$6(value)) {
183
+ return false;
184
+ }
185
+ var tag = baseGetTag$4(value);
186
+ return tag == funcTag$2 || tag == genTag$1 || tag == asyncTag || tag == proxyTag;
187
+ }
188
+ var isFunction_1 = isFunction$2;
189
+ var root$7 = _root;
190
+ var coreJsData$1 = root$7["__core-js_shared__"];
191
+ var _coreJsData = coreJsData$1;
192
+ var coreJsData = _coreJsData;
193
+ var maskSrcKey = function() {
194
+ var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
195
+ return uid ? "Symbol(src)_1." + uid : "";
196
+ }();
197
+ function isMasked$1(func) {
198
+ return !!maskSrcKey && maskSrcKey in func;
199
+ }
200
+ var _isMasked = isMasked$1;
201
+ var funcProto$1 = Function.prototype;
202
+ var funcToString$1 = funcProto$1.toString;
203
+ function toSource$2(func) {
204
+ if (func != null) {
205
+ try {
206
+ return funcToString$1.call(func);
207
+ } catch (e) {
208
+ }
209
+ try {
210
+ return func + "";
211
+ } catch (e) {
212
+ }
213
+ }
214
+ return "";
215
+ }
216
+ var _toSource = toSource$2;
217
+ var isFunction$1 = isFunction_1, isMasked = _isMasked, isObject$5 = isObject_1, toSource$1 = _toSource;
218
+ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
219
+ var reIsHostCtor = /^\[object .+?Constructor\]$/;
220
+ var funcProto = Function.prototype, objectProto$b = Object.prototype;
221
+ var funcToString = funcProto.toString;
222
+ var hasOwnProperty$9 = objectProto$b.hasOwnProperty;
223
+ var reIsNative = RegExp(
224
+ "^" + funcToString.call(hasOwnProperty$9).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
225
+ );
226
+ function baseIsNative$1(value) {
227
+ if (!isObject$5(value) || isMasked(value)) {
228
+ return false;
229
+ }
230
+ var pattern = isFunction$1(value) ? reIsNative : reIsHostCtor;
231
+ return pattern.test(toSource$1(value));
232
+ }
233
+ var _baseIsNative = baseIsNative$1;
234
+ function getValue$1(object, key) {
235
+ return object == null ? void 0 : object[key];
236
+ }
237
+ var _getValue = getValue$1;
238
+ var baseIsNative = _baseIsNative, getValue = _getValue;
239
+ function getNative$7(object, key) {
240
+ var value = getValue(object, key);
241
+ return baseIsNative(value) ? value : void 0;
242
+ }
243
+ var _getNative = getNative$7;
244
+ var getNative$6 = _getNative, root$6 = _root;
245
+ var Map$3 = getNative$6(root$6, "Map");
246
+ var _Map = Map$3;
247
+ var getNative$5 = _getNative;
248
+ var nativeCreate$4 = getNative$5(Object, "create");
249
+ var _nativeCreate = nativeCreate$4;
250
+ var nativeCreate$3 = _nativeCreate;
251
+ function hashClear$1() {
252
+ this.__data__ = nativeCreate$3 ? nativeCreate$3(null) : {};
253
+ this.size = 0;
254
+ }
255
+ var _hashClear = hashClear$1;
256
+ function hashDelete$1(key) {
257
+ var result = this.has(key) && delete this.__data__[key];
258
+ this.size -= result ? 1 : 0;
259
+ return result;
260
+ }
261
+ var _hashDelete = hashDelete$1;
262
+ var nativeCreate$2 = _nativeCreate;
263
+ var HASH_UNDEFINED$1 = "__lodash_hash_undefined__";
264
+ var objectProto$a = Object.prototype;
265
+ var hasOwnProperty$8 = objectProto$a.hasOwnProperty;
266
+ function hashGet$1(key) {
267
+ var data = this.__data__;
268
+ if (nativeCreate$2) {
269
+ var result = data[key];
270
+ return result === HASH_UNDEFINED$1 ? void 0 : result;
271
+ }
272
+ return hasOwnProperty$8.call(data, key) ? data[key] : void 0;
273
+ }
274
+ var _hashGet = hashGet$1;
275
+ var nativeCreate$1 = _nativeCreate;
276
+ var objectProto$9 = Object.prototype;
277
+ var hasOwnProperty$7 = objectProto$9.hasOwnProperty;
278
+ function hashHas$1(key) {
279
+ var data = this.__data__;
280
+ return nativeCreate$1 ? data[key] !== void 0 : hasOwnProperty$7.call(data, key);
281
+ }
282
+ var _hashHas = hashHas$1;
283
+ var nativeCreate = _nativeCreate;
284
+ var HASH_UNDEFINED = "__lodash_hash_undefined__";
285
+ function hashSet$1(key, value) {
286
+ var data = this.__data__;
287
+ this.size += this.has(key) ? 0 : 1;
288
+ data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED : value;
289
+ return this;
290
+ }
291
+ var _hashSet = hashSet$1;
292
+ var hashClear = _hashClear, hashDelete = _hashDelete, hashGet = _hashGet, hashHas = _hashHas, hashSet = _hashSet;
293
+ function Hash$1(entries) {
294
+ var index = -1, length = entries == null ? 0 : entries.length;
295
+ this.clear();
296
+ while (++index < length) {
297
+ var entry = entries[index];
298
+ this.set(entry[0], entry[1]);
299
+ }
300
+ }
301
+ Hash$1.prototype.clear = hashClear;
302
+ Hash$1.prototype["delete"] = hashDelete;
303
+ Hash$1.prototype.get = hashGet;
304
+ Hash$1.prototype.has = hashHas;
305
+ Hash$1.prototype.set = hashSet;
306
+ var _Hash = Hash$1;
307
+ var Hash = _Hash, ListCache$2 = _ListCache, Map$2 = _Map;
308
+ function mapCacheClear$1() {
309
+ this.size = 0;
310
+ this.__data__ = {
311
+ "hash": new Hash(),
312
+ "map": new (Map$2 || ListCache$2)(),
313
+ "string": new Hash()
314
+ };
315
+ }
316
+ var _mapCacheClear = mapCacheClear$1;
317
+ function isKeyable$1(value) {
318
+ var type2 = typeof value;
319
+ return type2 == "string" || type2 == "number" || type2 == "symbol" || type2 == "boolean" ? value !== "__proto__" : value === null;
320
+ }
321
+ var _isKeyable = isKeyable$1;
322
+ var isKeyable = _isKeyable;
323
+ function getMapData$4(map, key) {
324
+ var data = map.__data__;
325
+ return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
326
+ }
327
+ var _getMapData = getMapData$4;
328
+ var getMapData$3 = _getMapData;
329
+ function mapCacheDelete$1(key) {
330
+ var result = getMapData$3(this, key)["delete"](key);
331
+ this.size -= result ? 1 : 0;
332
+ return result;
333
+ }
334
+ var _mapCacheDelete = mapCacheDelete$1;
335
+ var getMapData$2 = _getMapData;
336
+ function mapCacheGet$1(key) {
337
+ return getMapData$2(this, key).get(key);
338
+ }
339
+ var _mapCacheGet = mapCacheGet$1;
340
+ var getMapData$1 = _getMapData;
341
+ function mapCacheHas$1(key) {
342
+ return getMapData$1(this, key).has(key);
343
+ }
344
+ var _mapCacheHas = mapCacheHas$1;
345
+ var getMapData = _getMapData;
346
+ function mapCacheSet$1(key, value) {
347
+ var data = getMapData(this, key), size = data.size;
348
+ data.set(key, value);
349
+ this.size += data.size == size ? 0 : 1;
350
+ return this;
351
+ }
352
+ var _mapCacheSet = mapCacheSet$1;
353
+ var mapCacheClear = _mapCacheClear, mapCacheDelete = _mapCacheDelete, mapCacheGet = _mapCacheGet, mapCacheHas = _mapCacheHas, mapCacheSet = _mapCacheSet;
354
+ function MapCache$1(entries) {
355
+ var index = -1, length = entries == null ? 0 : entries.length;
356
+ this.clear();
357
+ while (++index < length) {
358
+ var entry = entries[index];
359
+ this.set(entry[0], entry[1]);
360
+ }
361
+ }
362
+ MapCache$1.prototype.clear = mapCacheClear;
363
+ MapCache$1.prototype["delete"] = mapCacheDelete;
364
+ MapCache$1.prototype.get = mapCacheGet;
365
+ MapCache$1.prototype.has = mapCacheHas;
366
+ MapCache$1.prototype.set = mapCacheSet;
367
+ var _MapCache = MapCache$1;
368
+ var ListCache$1 = _ListCache, Map$1 = _Map, MapCache = _MapCache;
369
+ var LARGE_ARRAY_SIZE = 200;
370
+ function stackSet$1(key, value) {
371
+ var data = this.__data__;
372
+ if (data instanceof ListCache$1) {
373
+ var pairs = data.__data__;
374
+ if (!Map$1 || pairs.length < LARGE_ARRAY_SIZE - 1) {
375
+ pairs.push([key, value]);
376
+ this.size = ++data.size;
377
+ return this;
378
+ }
379
+ data = this.__data__ = new MapCache(pairs);
380
+ }
381
+ data.set(key, value);
382
+ this.size = data.size;
383
+ return this;
384
+ }
385
+ var _stackSet = stackSet$1;
386
+ var ListCache = _ListCache, stackClear = _stackClear, stackDelete = _stackDelete, stackGet = _stackGet, stackHas = _stackHas, stackSet = _stackSet;
387
+ function Stack$1(entries) {
388
+ var data = this.__data__ = new ListCache(entries);
389
+ this.size = data.size;
390
+ }
391
+ Stack$1.prototype.clear = stackClear;
392
+ Stack$1.prototype["delete"] = stackDelete;
393
+ Stack$1.prototype.get = stackGet;
394
+ Stack$1.prototype.has = stackHas;
395
+ Stack$1.prototype.set = stackSet;
396
+ var _Stack = Stack$1;
397
+ function arrayEach$1(array, iteratee) {
398
+ var index = -1, length = array == null ? 0 : array.length;
399
+ while (++index < length) {
400
+ if (iteratee(array[index], index, array) === false) {
401
+ break;
402
+ }
403
+ }
404
+ return array;
405
+ }
406
+ var _arrayEach = arrayEach$1;
407
+ var getNative$4 = _getNative;
408
+ var defineProperty$1 = function() {
409
+ try {
410
+ var func = getNative$4(Object, "defineProperty");
411
+ func({}, "", {});
412
+ return func;
413
+ } catch (e) {
414
+ }
415
+ }();
416
+ var _defineProperty = defineProperty$1;
417
+ var defineProperty = _defineProperty;
418
+ function baseAssignValue$2(object, key, value) {
419
+ if (key == "__proto__" && defineProperty) {
420
+ defineProperty(object, key, {
421
+ "configurable": true,
422
+ "enumerable": true,
423
+ "value": value,
424
+ "writable": true
425
+ });
426
+ } else {
427
+ object[key] = value;
428
+ }
429
+ }
430
+ var _baseAssignValue = baseAssignValue$2;
431
+ var baseAssignValue$1 = _baseAssignValue, eq = eq_1;
432
+ var objectProto$8 = Object.prototype;
433
+ var hasOwnProperty$6 = objectProto$8.hasOwnProperty;
434
+ function assignValue$2(object, key, value) {
435
+ var objValue = object[key];
436
+ if (!(hasOwnProperty$6.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) {
437
+ baseAssignValue$1(object, key, value);
438
+ }
439
+ }
440
+ var _assignValue = assignValue$2;
441
+ var assignValue$1 = _assignValue, baseAssignValue = _baseAssignValue;
442
+ function copyObject$4(source, props, object, customizer) {
443
+ var isNew = !object;
444
+ object || (object = {});
445
+ var index = -1, length = props.length;
446
+ while (++index < length) {
447
+ var key = props[index];
448
+ var newValue = customizer ? customizer(object[key], source[key], key, object, source) : void 0;
449
+ if (newValue === void 0) {
450
+ newValue = source[key];
451
+ }
452
+ if (isNew) {
453
+ baseAssignValue(object, key, newValue);
454
+ } else {
455
+ assignValue$1(object, key, newValue);
456
+ }
457
+ }
458
+ return object;
459
+ }
460
+ var _copyObject = copyObject$4;
461
+ function baseTimes$1(n, iteratee) {
462
+ var index = -1, result = Array(n);
463
+ while (++index < n) {
464
+ result[index] = iteratee(index);
465
+ }
466
+ return result;
467
+ }
468
+ var _baseTimes = baseTimes$1;
469
+ function isObjectLike$6(value) {
470
+ return value != null && typeof value == "object";
471
+ }
472
+ var isObjectLike_1 = isObjectLike$6;
473
+ var baseGetTag$3 = _baseGetTag, isObjectLike$5 = isObjectLike_1;
474
+ var argsTag$2 = "[object Arguments]";
475
+ function baseIsArguments$1(value) {
476
+ return isObjectLike$5(value) && baseGetTag$3(value) == argsTag$2;
477
+ }
478
+ var _baseIsArguments = baseIsArguments$1;
479
+ var baseIsArguments = _baseIsArguments, isObjectLike$4 = isObjectLike_1;
480
+ var objectProto$7 = Object.prototype;
481
+ var hasOwnProperty$5 = objectProto$7.hasOwnProperty;
482
+ var propertyIsEnumerable$1 = objectProto$7.propertyIsEnumerable;
483
+ var isArguments$2 = baseIsArguments(function() {
484
+ return arguments;
485
+ }()) ? baseIsArguments : function(value) {
486
+ return isObjectLike$4(value) && hasOwnProperty$5.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
487
+ };
488
+ var isArguments_1 = isArguments$2;
489
+ var isArray$4 = Array.isArray;
490
+ var isArray_1 = isArray$4;
491
+ var isBuffer$3 = { exports: {} };
492
+ function stubFalse() {
493
+ return false;
494
+ }
495
+ var stubFalse_1 = stubFalse;
496
+ isBuffer$3.exports;
497
+ (function(module, exports) {
498
+ var root2 = _root, stubFalse2 = stubFalse_1;
499
+ var freeExports = exports && !exports.nodeType && exports;
500
+ var freeModule = freeExports && true && module && !module.nodeType && module;
501
+ var moduleExports = freeModule && freeModule.exports === freeExports;
502
+ var Buffer = moduleExports ? root2.Buffer : void 0;
503
+ var nativeIsBuffer = Buffer ? Buffer.isBuffer : void 0;
504
+ var isBuffer2 = nativeIsBuffer || stubFalse2;
505
+ module.exports = isBuffer2;
506
+ })(isBuffer$3, isBuffer$3.exports);
507
+ var isBufferExports = isBuffer$3.exports;
508
+ var MAX_SAFE_INTEGER$1 = 9007199254740991;
509
+ var reIsUint = /^(?:0|[1-9]\d*)$/;
510
+ function isIndex$1(value, length) {
511
+ var type2 = typeof value;
512
+ length = length == null ? MAX_SAFE_INTEGER$1 : length;
513
+ return !!length && (type2 == "number" || type2 != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
514
+ }
515
+ var _isIndex = isIndex$1;
516
+ var MAX_SAFE_INTEGER = 9007199254740991;
517
+ function isLength$2(value) {
518
+ return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
519
+ }
520
+ var isLength_1 = isLength$2;
521
+ var baseGetTag$2 = _baseGetTag, isLength$1 = isLength_1, isObjectLike$3 = isObjectLike_1;
522
+ var argsTag$1 = "[object Arguments]", arrayTag$1 = "[object Array]", boolTag$2 = "[object Boolean]", dateTag$2 = "[object Date]", errorTag$1 = "[object Error]", funcTag$1 = "[object Function]", mapTag$5 = "[object Map]", numberTag$2 = "[object Number]", objectTag$2 = "[object Object]", regexpTag$2 = "[object RegExp]", setTag$5 = "[object Set]", stringTag$2 = "[object String]", weakMapTag$2 = "[object WeakMap]";
523
+ 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]";
524
+ var typedArrayTags = {};
525
+ 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;
526
+ typedArrayTags[argsTag$1] = typedArrayTags[arrayTag$1] = typedArrayTags[arrayBufferTag$2] = typedArrayTags[boolTag$2] = typedArrayTags[dataViewTag$3] = typedArrayTags[dateTag$2] = typedArrayTags[errorTag$1] = typedArrayTags[funcTag$1] = typedArrayTags[mapTag$5] = typedArrayTags[numberTag$2] = typedArrayTags[objectTag$2] = typedArrayTags[regexpTag$2] = typedArrayTags[setTag$5] = typedArrayTags[stringTag$2] = typedArrayTags[weakMapTag$2] = false;
527
+ function baseIsTypedArray$1(value) {
528
+ return isObjectLike$3(value) && isLength$1(value.length) && !!typedArrayTags[baseGetTag$2(value)];
529
+ }
530
+ var _baseIsTypedArray = baseIsTypedArray$1;
531
+ function baseUnary$3(func) {
532
+ return function(value) {
533
+ return func(value);
534
+ };
535
+ }
536
+ var _baseUnary = baseUnary$3;
537
+ var _nodeUtil = { exports: {} };
538
+ _nodeUtil.exports;
539
+ (function(module, exports) {
540
+ var freeGlobal2 = _freeGlobal;
541
+ var freeExports = exports && !exports.nodeType && exports;
542
+ var freeModule = freeExports && true && module && !module.nodeType && module;
543
+ var moduleExports = freeModule && freeModule.exports === freeExports;
544
+ var freeProcess = moduleExports && freeGlobal2.process;
545
+ var nodeUtil2 = function() {
546
+ try {
547
+ var types = freeModule && freeModule.require && freeModule.require("util").types;
548
+ if (types) {
549
+ return types;
550
+ }
551
+ return freeProcess && freeProcess.binding && freeProcess.binding("util");
552
+ } catch (e) {
553
+ }
554
+ }();
555
+ module.exports = nodeUtil2;
556
+ })(_nodeUtil, _nodeUtil.exports);
557
+ var _nodeUtilExports = _nodeUtil.exports;
558
+ var baseIsTypedArray = _baseIsTypedArray, baseUnary$2 = _baseUnary, nodeUtil$2 = _nodeUtilExports;
559
+ var nodeIsTypedArray = nodeUtil$2 && nodeUtil$2.isTypedArray;
560
+ var isTypedArray$2 = nodeIsTypedArray ? baseUnary$2(nodeIsTypedArray) : baseIsTypedArray;
561
+ var isTypedArray_1 = isTypedArray$2;
562
+ var baseTimes = _baseTimes, isArguments$1 = isArguments_1, isArray$3 = isArray_1, isBuffer$2 = isBufferExports, isIndex = _isIndex, isTypedArray$1 = isTypedArray_1;
563
+ var objectProto$6 = Object.prototype;
564
+ var hasOwnProperty$4 = objectProto$6.hasOwnProperty;
565
+ function arrayLikeKeys$2(value, inherited) {
566
+ var isArr = isArray$3(value), isArg = !isArr && isArguments$1(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;
567
+ for (var key in value) {
568
+ if ((inherited || hasOwnProperty$4.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
569
+ (key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
570
+ isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
571
+ isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
572
+ isIndex(key, length)))) {
573
+ result.push(key);
574
+ }
575
+ }
576
+ return result;
577
+ }
578
+ var _arrayLikeKeys = arrayLikeKeys$2;
579
+ var objectProto$5 = Object.prototype;
580
+ function isPrototype$4(value) {
581
+ var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto$5;
582
+ return value === proto;
583
+ }
584
+ var _isPrototype = isPrototype$4;
585
+ function overArg$2(func, transform) {
586
+ return function(arg) {
587
+ return func(transform(arg));
588
+ };
589
+ }
590
+ var _overArg = overArg$2;
591
+ var overArg$1 = _overArg;
592
+ var nativeKeys$1 = overArg$1(Object.keys, Object);
593
+ var _nativeKeys = nativeKeys$1;
594
+ var isPrototype$3 = _isPrototype, nativeKeys = _nativeKeys;
595
+ var objectProto$4 = Object.prototype;
596
+ var hasOwnProperty$3 = objectProto$4.hasOwnProperty;
597
+ function baseKeys$2(object) {
598
+ if (!isPrototype$3(object)) {
599
+ return nativeKeys(object);
600
+ }
601
+ var result = [];
602
+ for (var key in Object(object)) {
603
+ if (hasOwnProperty$3.call(object, key) && key != "constructor") {
604
+ result.push(key);
605
+ }
606
+ }
607
+ return result;
608
+ }
609
+ var _baseKeys = baseKeys$2;
610
+ var isFunction = isFunction_1, isLength = isLength_1;
611
+ function isArrayLike$3(value) {
612
+ return value != null && isLength(value.length) && !isFunction(value);
613
+ }
614
+ var isArrayLike_1 = isArrayLike$3;
615
+ var arrayLikeKeys$1 = _arrayLikeKeys, baseKeys$1 = _baseKeys, isArrayLike$2 = isArrayLike_1;
616
+ function keys$3(object) {
617
+ return isArrayLike$2(object) ? arrayLikeKeys$1(object) : baseKeys$1(object);
618
+ }
619
+ var keys_1 = keys$3;
620
+ var copyObject$3 = _copyObject, keys$2 = keys_1;
621
+ function baseAssign$1(object, source) {
622
+ return object && copyObject$3(source, keys$2(source), object);
623
+ }
624
+ var _baseAssign = baseAssign$1;
625
+ function nativeKeysIn$1(object) {
626
+ var result = [];
627
+ if (object != null) {
628
+ for (var key in Object(object)) {
629
+ result.push(key);
630
+ }
631
+ }
632
+ return result;
633
+ }
634
+ var _nativeKeysIn = nativeKeysIn$1;
635
+ var isObject$4 = isObject_1, isPrototype$2 = _isPrototype, nativeKeysIn = _nativeKeysIn;
636
+ var objectProto$3 = Object.prototype;
637
+ var hasOwnProperty$2 = objectProto$3.hasOwnProperty;
638
+ function baseKeysIn$1(object) {
639
+ if (!isObject$4(object)) {
640
+ return nativeKeysIn(object);
641
+ }
642
+ var isProto = isPrototype$2(object), result = [];
643
+ for (var key in object) {
644
+ if (!(key == "constructor" && (isProto || !hasOwnProperty$2.call(object, key)))) {
645
+ result.push(key);
646
+ }
647
+ }
648
+ return result;
649
+ }
650
+ var _baseKeysIn = baseKeysIn$1;
651
+ var arrayLikeKeys = _arrayLikeKeys, baseKeysIn = _baseKeysIn, isArrayLike$1 = isArrayLike_1;
652
+ function keysIn$3(object) {
653
+ return isArrayLike$1(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
654
+ }
655
+ var keysIn_1 = keysIn$3;
656
+ var copyObject$2 = _copyObject, keysIn$2 = keysIn_1;
657
+ function baseAssignIn$1(object, source) {
658
+ return object && copyObject$2(source, keysIn$2(source), object);
659
+ }
660
+ var _baseAssignIn = baseAssignIn$1;
661
+ var _cloneBuffer = { exports: {} };
662
+ _cloneBuffer.exports;
663
+ (function(module, exports) {
664
+ var root2 = _root;
665
+ var freeExports = exports && !exports.nodeType && exports;
666
+ var freeModule = freeExports && true && module && !module.nodeType && module;
667
+ var moduleExports = freeModule && freeModule.exports === freeExports;
668
+ var Buffer = moduleExports ? root2.Buffer : void 0, allocUnsafe = Buffer ? Buffer.allocUnsafe : void 0;
669
+ function cloneBuffer2(buffer, isDeep) {
670
+ if (isDeep) {
671
+ return buffer.slice();
672
+ }
673
+ var length = buffer.length, result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
674
+ buffer.copy(result);
675
+ return result;
676
+ }
677
+ module.exports = cloneBuffer2;
678
+ })(_cloneBuffer, _cloneBuffer.exports);
679
+ var _cloneBufferExports = _cloneBuffer.exports;
680
+ function copyArray$1(source, array) {
681
+ var index = -1, length = source.length;
682
+ array || (array = Array(length));
683
+ while (++index < length) {
684
+ array[index] = source[index];
685
+ }
686
+ return array;
687
+ }
688
+ var _copyArray = copyArray$1;
689
+ function arrayFilter$1(array, predicate) {
690
+ var index = -1, length = array == null ? 0 : array.length, resIndex = 0, result = [];
691
+ while (++index < length) {
692
+ var value = array[index];
693
+ if (predicate(value, index, array)) {
694
+ result[resIndex++] = value;
695
+ }
696
+ }
697
+ return result;
698
+ }
699
+ var _arrayFilter = arrayFilter$1;
700
+ function stubArray$2() {
701
+ return [];
702
+ }
703
+ var stubArray_1 = stubArray$2;
704
+ var arrayFilter = _arrayFilter, stubArray$1 = stubArray_1;
705
+ var objectProto$2 = Object.prototype;
706
+ var propertyIsEnumerable = objectProto$2.propertyIsEnumerable;
707
+ var nativeGetSymbols$1 = Object.getOwnPropertySymbols;
708
+ var getSymbols$3 = !nativeGetSymbols$1 ? stubArray$1 : function(object) {
709
+ if (object == null) {
710
+ return [];
711
+ }
712
+ object = Object(object);
713
+ return arrayFilter(nativeGetSymbols$1(object), function(symbol) {
714
+ return propertyIsEnumerable.call(object, symbol);
715
+ });
716
+ };
717
+ var _getSymbols = getSymbols$3;
718
+ var copyObject$1 = _copyObject, getSymbols$2 = _getSymbols;
719
+ function copySymbols$1(source, object) {
720
+ return copyObject$1(source, getSymbols$2(source), object);
721
+ }
722
+ var _copySymbols = copySymbols$1;
723
+ function arrayPush$2(array, values) {
724
+ var index = -1, length = values.length, offset = array.length;
725
+ while (++index < length) {
726
+ array[offset + index] = values[index];
727
+ }
728
+ return array;
729
+ }
730
+ var _arrayPush = arrayPush$2;
731
+ var overArg = _overArg;
732
+ var getPrototype$2 = overArg(Object.getPrototypeOf, Object);
733
+ var _getPrototype = getPrototype$2;
734
+ var arrayPush$1 = _arrayPush, getPrototype$1 = _getPrototype, getSymbols$1 = _getSymbols, stubArray = stubArray_1;
735
+ var nativeGetSymbols = Object.getOwnPropertySymbols;
736
+ var getSymbolsIn$2 = !nativeGetSymbols ? stubArray : function(object) {
737
+ var result = [];
738
+ while (object) {
739
+ arrayPush$1(result, getSymbols$1(object));
740
+ object = getPrototype$1(object);
741
+ }
742
+ return result;
743
+ };
744
+ var _getSymbolsIn = getSymbolsIn$2;
745
+ var copyObject = _copyObject, getSymbolsIn$1 = _getSymbolsIn;
746
+ function copySymbolsIn$1(source, object) {
747
+ return copyObject(source, getSymbolsIn$1(source), object);
748
+ }
749
+ var _copySymbolsIn = copySymbolsIn$1;
750
+ var arrayPush = _arrayPush, isArray$2 = isArray_1;
751
+ function baseGetAllKeys$2(object, keysFunc, symbolsFunc) {
752
+ var result = keysFunc(object);
753
+ return isArray$2(object) ? result : arrayPush(result, symbolsFunc(object));
754
+ }
755
+ var _baseGetAllKeys = baseGetAllKeys$2;
756
+ var baseGetAllKeys$1 = _baseGetAllKeys, getSymbols = _getSymbols, keys$1 = keys_1;
757
+ function getAllKeys$1(object) {
758
+ return baseGetAllKeys$1(object, keys$1, getSymbols);
759
+ }
760
+ var _getAllKeys = getAllKeys$1;
761
+ var baseGetAllKeys = _baseGetAllKeys, getSymbolsIn = _getSymbolsIn, keysIn$1 = keysIn_1;
762
+ function getAllKeysIn$1(object) {
763
+ return baseGetAllKeys(object, keysIn$1, getSymbolsIn);
764
+ }
765
+ var _getAllKeysIn = getAllKeysIn$1;
766
+ var getNative$3 = _getNative, root$5 = _root;
767
+ var DataView$1 = getNative$3(root$5, "DataView");
768
+ var _DataView = DataView$1;
769
+ var getNative$2 = _getNative, root$4 = _root;
770
+ var Promise$2 = getNative$2(root$4, "Promise");
771
+ var _Promise = Promise$2;
772
+ var getNative$1 = _getNative, root$3 = _root;
773
+ var Set$1 = getNative$1(root$3, "Set");
774
+ var _Set = Set$1;
775
+ var getNative = _getNative, root$2 = _root;
776
+ var WeakMap$1 = getNative(root$2, "WeakMap");
777
+ var _WeakMap = WeakMap$1;
778
+ var DataView = _DataView, Map = _Map, Promise$1 = _Promise, Set = _Set, WeakMap = _WeakMap, baseGetTag$1 = _baseGetTag, toSource = _toSource;
779
+ var mapTag$4 = "[object Map]", objectTag$1 = "[object Object]", promiseTag = "[object Promise]", setTag$4 = "[object Set]", weakMapTag$1 = "[object WeakMap]";
780
+ var dataViewTag$2 = "[object DataView]";
781
+ var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map), promiseCtorString = toSource(Promise$1), setCtorString = toSource(Set), weakMapCtorString = toSource(WeakMap);
782
+ var getTag$4 = baseGetTag$1;
783
+ if (DataView && getTag$4(new DataView(new ArrayBuffer(1))) != dataViewTag$2 || Map && getTag$4(new Map()) != mapTag$4 || Promise$1 && getTag$4(Promise$1.resolve()) != promiseTag || Set && getTag$4(new Set()) != setTag$4 || WeakMap && getTag$4(new WeakMap()) != weakMapTag$1) {
784
+ getTag$4 = function(value) {
785
+ var result = baseGetTag$1(value), Ctor = result == objectTag$1 ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : "";
786
+ if (ctorString) {
787
+ switch (ctorString) {
788
+ case dataViewCtorString:
789
+ return dataViewTag$2;
790
+ case mapCtorString:
791
+ return mapTag$4;
792
+ case promiseCtorString:
793
+ return promiseTag;
794
+ case setCtorString:
795
+ return setTag$4;
796
+ case weakMapCtorString:
797
+ return weakMapTag$1;
798
+ }
799
+ }
800
+ return result;
801
+ };
802
+ }
803
+ var _getTag = getTag$4;
804
+ var objectProto$1 = Object.prototype;
805
+ var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
806
+ function initCloneArray$1(array) {
807
+ var length = array.length, result = new array.constructor(length);
808
+ if (length && typeof array[0] == "string" && hasOwnProperty$1.call(array, "index")) {
809
+ result.index = array.index;
810
+ result.input = array.input;
811
+ }
812
+ return result;
813
+ }
814
+ var _initCloneArray = initCloneArray$1;
815
+ var root$1 = _root;
816
+ var Uint8Array$1 = root$1.Uint8Array;
817
+ var _Uint8Array = Uint8Array$1;
818
+ var Uint8Array = _Uint8Array;
819
+ function cloneArrayBuffer$3(arrayBuffer) {
820
+ var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
821
+ new Uint8Array(result).set(new Uint8Array(arrayBuffer));
822
+ return result;
823
+ }
824
+ var _cloneArrayBuffer = cloneArrayBuffer$3;
825
+ var cloneArrayBuffer$2 = _cloneArrayBuffer;
826
+ function cloneDataView$1(dataView, isDeep) {
827
+ var buffer = isDeep ? cloneArrayBuffer$2(dataView.buffer) : dataView.buffer;
828
+ return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
829
+ }
830
+ var _cloneDataView = cloneDataView$1;
831
+ var reFlags = /\w*$/;
832
+ function cloneRegExp$1(regexp) {
833
+ var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
834
+ result.lastIndex = regexp.lastIndex;
835
+ return result;
836
+ }
837
+ var _cloneRegExp = cloneRegExp$1;
838
+ var Symbol$1 = _Symbol;
839
+ var symbolProto = Symbol$1 ? Symbol$1.prototype : void 0, symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
840
+ function cloneSymbol$1(symbol) {
841
+ return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
842
+ }
843
+ var _cloneSymbol = cloneSymbol$1;
844
+ var cloneArrayBuffer$1 = _cloneArrayBuffer;
845
+ function cloneTypedArray$1(typedArray, isDeep) {
846
+ var buffer = isDeep ? cloneArrayBuffer$1(typedArray.buffer) : typedArray.buffer;
847
+ return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
848
+ }
849
+ var _cloneTypedArray = cloneTypedArray$1;
850
+ var cloneArrayBuffer = _cloneArrayBuffer, cloneDataView = _cloneDataView, cloneRegExp = _cloneRegExp, cloneSymbol = _cloneSymbol, cloneTypedArray = _cloneTypedArray;
851
+ var boolTag$1 = "[object Boolean]", dateTag$1 = "[object Date]", mapTag$3 = "[object Map]", numberTag$1 = "[object Number]", regexpTag$1 = "[object RegExp]", setTag$3 = "[object Set]", stringTag$1 = "[object String]", symbolTag$2 = "[object Symbol]";
852
+ 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]";
853
+ function initCloneByTag$1(object, tag, isDeep) {
854
+ var Ctor = object.constructor;
855
+ switch (tag) {
856
+ case arrayBufferTag$1:
857
+ return cloneArrayBuffer(object);
858
+ case boolTag$1:
859
+ case dateTag$1:
860
+ return new Ctor(+object);
861
+ case dataViewTag$1:
862
+ return cloneDataView(object, isDeep);
863
+ case float32Tag$1:
864
+ case float64Tag$1:
865
+ case int8Tag$1:
866
+ case int16Tag$1:
867
+ case int32Tag$1:
868
+ case uint8Tag$1:
869
+ case uint8ClampedTag$1:
870
+ case uint16Tag$1:
871
+ case uint32Tag$1:
872
+ return cloneTypedArray(object, isDeep);
873
+ case mapTag$3:
874
+ return new Ctor();
875
+ case numberTag$1:
876
+ case stringTag$1:
877
+ return new Ctor(object);
878
+ case regexpTag$1:
879
+ return cloneRegExp(object);
880
+ case setTag$3:
881
+ return new Ctor();
882
+ case symbolTag$2:
883
+ return cloneSymbol(object);
884
+ }
885
+ }
886
+ var _initCloneByTag = initCloneByTag$1;
887
+ var isObject$3 = isObject_1;
888
+ var objectCreate = Object.create;
889
+ var baseCreate$1 = function() {
890
+ function object() {
891
+ }
892
+ return function(proto) {
893
+ if (!isObject$3(proto)) {
894
+ return {};
895
+ }
896
+ if (objectCreate) {
897
+ return objectCreate(proto);
898
+ }
899
+ object.prototype = proto;
900
+ var result = new object();
901
+ object.prototype = void 0;
902
+ return result;
903
+ };
904
+ }();
905
+ var _baseCreate = baseCreate$1;
906
+ var baseCreate = _baseCreate, getPrototype = _getPrototype, isPrototype$1 = _isPrototype;
907
+ function initCloneObject$1(object) {
908
+ return typeof object.constructor == "function" && !isPrototype$1(object) ? baseCreate(getPrototype(object)) : {};
909
+ }
910
+ var _initCloneObject = initCloneObject$1;
911
+ var getTag$3 = _getTag, isObjectLike$2 = isObjectLike_1;
912
+ var mapTag$2 = "[object Map]";
913
+ function baseIsMap$1(value) {
914
+ return isObjectLike$2(value) && getTag$3(value) == mapTag$2;
915
+ }
916
+ var _baseIsMap = baseIsMap$1;
917
+ var baseIsMap = _baseIsMap, baseUnary$1 = _baseUnary, nodeUtil$1 = _nodeUtilExports;
918
+ var nodeIsMap = nodeUtil$1 && nodeUtil$1.isMap;
919
+ var isMap$1 = nodeIsMap ? baseUnary$1(nodeIsMap) : baseIsMap;
920
+ var isMap_1 = isMap$1;
921
+ var getTag$2 = _getTag, isObjectLike$1 = isObjectLike_1;
922
+ var setTag$2 = "[object Set]";
923
+ function baseIsSet$1(value) {
924
+ return isObjectLike$1(value) && getTag$2(value) == setTag$2;
925
+ }
926
+ var _baseIsSet = baseIsSet$1;
927
+ var baseIsSet = _baseIsSet, baseUnary = _baseUnary, nodeUtil = _nodeUtilExports;
928
+ var nodeIsSet = nodeUtil && nodeUtil.isSet;
929
+ var isSet$1 = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
930
+ var isSet_1 = isSet$1;
931
+ var Stack = _Stack, arrayEach = _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$1 = isArray_1, isBuffer$1 = isBufferExports, isMap = isMap_1, isObject$2 = isObject_1, isSet = isSet_1, keys = keys_1, keysIn = keysIn_1;
932
+ var CLONE_DEEP_FLAG$1 = 1, CLONE_FLAT_FLAG = 2, CLONE_SYMBOLS_FLAG$1 = 4;
933
+ var argsTag = "[object Arguments]", arrayTag = "[object Array]", boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", mapTag$1 = "[object Map]", numberTag = "[object Number]", objectTag = "[object Object]", regexpTag = "[object RegExp]", setTag$1 = "[object Set]", stringTag = "[object String]", symbolTag$1 = "[object Symbol]", weakMapTag = "[object WeakMap]";
934
+ 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]";
935
+ var cloneableTags = {};
936
+ cloneableTags[argsTag] = cloneableTags[arrayTag] = cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] = cloneableTags[boolTag] = cloneableTags[dateTag] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag$1] = cloneableTags[numberTag] = cloneableTags[objectTag] = cloneableTags[regexpTag] = cloneableTags[setTag$1] = cloneableTags[stringTag] = cloneableTags[symbolTag$1] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
937
+ cloneableTags[errorTag] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false;
938
+ function baseClone$1(value, bitmask, customizer, key, object, stack) {
939
+ var result, isDeep = bitmask & CLONE_DEEP_FLAG$1, isFlat = bitmask & CLONE_FLAT_FLAG, isFull = bitmask & CLONE_SYMBOLS_FLAG$1;
940
+ if (customizer) {
941
+ result = object ? customizer(value, key, object, stack) : customizer(value);
942
+ }
943
+ if (result !== void 0) {
944
+ return result;
945
+ }
946
+ if (!isObject$2(value)) {
947
+ return value;
948
+ }
949
+ var isArr = isArray$1(value);
950
+ if (isArr) {
951
+ result = initCloneArray(value);
952
+ if (!isDeep) {
953
+ return copyArray(value, result);
954
+ }
955
+ } else {
956
+ var tag = getTag$1(value), isFunc = tag == funcTag || tag == genTag;
957
+ if (isBuffer$1(value)) {
958
+ return cloneBuffer(value, isDeep);
959
+ }
960
+ if (tag == objectTag || tag == argsTag || isFunc && !object) {
961
+ result = isFlat || isFunc ? {} : initCloneObject(value);
962
+ if (!isDeep) {
963
+ return isFlat ? copySymbolsIn(value, baseAssignIn(result, value)) : copySymbols(value, baseAssign(result, value));
964
+ }
965
+ } else {
966
+ if (!cloneableTags[tag]) {
967
+ return object ? value : {};
968
+ }
969
+ result = initCloneByTag(value, tag, isDeep);
970
+ }
971
+ }
972
+ stack || (stack = new Stack());
973
+ var stacked = stack.get(value);
974
+ if (stacked) {
975
+ return stacked;
976
+ }
977
+ stack.set(value, result);
978
+ if (isSet(value)) {
979
+ value.forEach(function(subValue) {
980
+ result.add(baseClone$1(subValue, bitmask, customizer, subValue, value, stack));
981
+ });
982
+ } else if (isMap(value)) {
983
+ value.forEach(function(subValue, key2) {
984
+ result.set(key2, baseClone$1(subValue, bitmask, customizer, key2, value, stack));
985
+ });
986
+ }
987
+ var keysFunc = isFull ? isFlat ? getAllKeysIn : getAllKeys : isFlat ? keysIn : keys;
988
+ var props = isArr ? void 0 : keysFunc(value);
989
+ arrayEach(props || value, function(subValue, key2) {
990
+ if (props) {
991
+ key2 = subValue;
992
+ subValue = value[key2];
993
+ }
994
+ assignValue(result, key2, baseClone$1(subValue, bitmask, customizer, key2, value, stack));
995
+ });
996
+ return result;
997
+ }
998
+ var _baseClone = baseClone$1;
999
+ var baseClone = _baseClone;
1000
+ var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4;
1001
+ function cloneDeep(value) {
1002
+ return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
1003
+ }
1004
+ var cloneDeep_1 = cloneDeep;
1005
+ const cloneDeep$1 = /* @__PURE__ */ getDefaultExportFromCjs(cloneDeep_1);
1006
+ var baseKeys = _baseKeys, getTag = _getTag, isArguments = isArguments_1, isArray = isArray_1, isArrayLike = isArrayLike_1, isBuffer = isBufferExports, isPrototype = _isPrototype, isTypedArray = isTypedArray_1;
1007
+ var mapTag = "[object Map]", setTag = "[object Set]";
1008
+ var objectProto = Object.prototype;
1009
+ var hasOwnProperty = objectProto.hasOwnProperty;
1010
+ function isEmpty(value) {
1011
+ if (value == null) {
1012
+ return true;
1013
+ }
1014
+ if (isArrayLike(value) && (isArray(value) || typeof value == "string" || typeof value.splice == "function" || isBuffer(value) || isTypedArray(value) || isArguments(value))) {
1015
+ return !value.length;
1016
+ }
1017
+ var tag = getTag(value);
1018
+ if (tag == mapTag || tag == setTag) {
1019
+ return !value.size;
1020
+ }
1021
+ if (isPrototype(value)) {
1022
+ return !baseKeys(value).length;
1023
+ }
1024
+ for (var key in value) {
1025
+ if (hasOwnProperty.call(value, key)) {
1026
+ return false;
1027
+ }
1028
+ }
1029
+ return true;
1030
+ }
1031
+ var isEmpty_1 = isEmpty;
1032
+ const isEmpty$1 = /* @__PURE__ */ getDefaultExportFromCjs(isEmpty_1);
1033
+ const _hoisted_1 = { class: "text-subtitle-2" };
1034
+ const _hoisted_2 = { class: "pa-6 text-center" };
1035
+ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
1036
+ __name: "Edit",
1037
+ props: {
1038
+ element: {},
1039
+ embedElementConfig: {},
1040
+ isFocused: { type: Boolean },
1041
+ isDisabled: { type: Boolean }
1042
+ },
1043
+ emits: ["save"],
1044
+ setup(__props, { emit }) {
1045
+ const props = __props;
1046
+ const elementBus = inject("$elementBus");
1047
+ const elementData = reactive(cloneDeep$1(props.element.data));
1048
+ const saveEmbed = (embeds) => {
1049
+ elementData.embeds = embeds;
1050
+ emit("save", elementData);
1051
+ };
1052
+ const deleteEmbed = (embed) => {
1053
+ delete elementData.embeds[embed.id];
1054
+ emit("save", elementData);
1055
+ };
1056
+ const hasElements = computed(() => !isEmpty$1(props.element.data.embeds));
1057
+ elementBus.on("title", (title) => {
1058
+ elementData.title = title;
1059
+ emit("save", elementData);
1060
+ });
1061
+ return (_ctx, _cache) => {
1062
+ const _component_VIcon = resolveComponent("VIcon");
1063
+ const _component_VToolbar = resolveComponent("VToolbar");
1064
+ const _component_VAlert = resolveComponent("VAlert");
1065
+ const _component_TailorEmbeddedContainer = resolveComponent("TailorEmbeddedContainer");
1066
+ const _component_VCard = resolveComponent("VCard");
1067
+ return openBlock(), createBlock(_component_VCard, {
1068
+ class: "tce-modal my-2",
1069
+ color: "grey-lighten-5"
1070
+ }, {
1071
+ default: withCtx(() => [
1072
+ createVNode(_component_VToolbar, {
1073
+ class: "px-4",
1074
+ color: "primary-darken-3",
1075
+ height: "36"
1076
+ }, {
1077
+ default: withCtx(() => [
1078
+ createVNode(_component_VIcon, {
1079
+ icon: unref(src_default).ui.icon,
1080
+ color: "secondary-lighten-2",
1081
+ size: "18",
1082
+ start: ""
1083
+ }, null, 8, ["icon"]),
1084
+ createElementVNode("span", _hoisted_1, toDisplayString(unref(src_default).name), 1)
1085
+ ]),
1086
+ _: 1
1087
+ }),
1088
+ createElementVNode("div", _hoisted_2, [
1089
+ !hasElements.value ? (openBlock(), createBlock(_component_VAlert, {
1090
+ key: 0,
1091
+ color: "primary-darken-2",
1092
+ icon: "mdi-information-variant",
1093
+ variant: "tonal",
1094
+ prominent: ""
1095
+ }, {
1096
+ default: withCtx(() => [
1097
+ createTextVNode(" Click the button below to add content element. ")
1098
+ ]),
1099
+ _: 1
1100
+ })) : createCommentVNode("", true),
1101
+ createVNode(_component_TailorEmbeddedContainer, {
1102
+ "allowed-element-config": _ctx.embedElementConfig,
1103
+ container: _ctx.element.data,
1104
+ "is-disabled": _ctx.isDisabled,
1105
+ onDelete: _cache[0] || (_cache[0] = ($event) => deleteEmbed($event)),
1106
+ onSave: _cache[1] || (_cache[1] = ($event) => saveEmbed($event.embeds))
1107
+ }, null, 8, ["allowed-element-config", "container", "is-disabled"])
1108
+ ])
1109
+ ]),
1110
+ _: 1
1111
+ });
1112
+ };
1113
+ }
1114
+ });
1115
+ const Edit_vue_vue_type_style_index_0_scoped_7e66c9a0_lang = "";
1116
+ const _export_sfc = (sfc, props) => {
1117
+ const target = sfc.__vccOpts || sfc;
1118
+ for (const [key, val] of props) {
1119
+ target[key] = val;
1120
+ }
1121
+ return target;
1122
+ };
1123
+ const Edit = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-7e66c9a0"]]);
1124
+ var root = _root;
1125
+ var now$1 = function() {
1126
+ return root.Date.now();
1127
+ };
1128
+ var now_1 = now$1;
1129
+ var reWhitespace = /\s/;
1130
+ function trimmedEndIndex$1(string) {
1131
+ var index = string.length;
1132
+ while (index-- && reWhitespace.test(string.charAt(index))) {
1133
+ }
1134
+ return index;
1135
+ }
1136
+ var _trimmedEndIndex = trimmedEndIndex$1;
1137
+ var trimmedEndIndex = _trimmedEndIndex;
1138
+ var reTrimStart = /^\s+/;
1139
+ function baseTrim$1(string) {
1140
+ return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string;
1141
+ }
1142
+ var _baseTrim = baseTrim$1;
1143
+ var baseGetTag = _baseGetTag, isObjectLike = isObjectLike_1;
1144
+ var symbolTag = "[object Symbol]";
1145
+ function isSymbol$1(value) {
1146
+ return typeof value == "symbol" || isObjectLike(value) && baseGetTag(value) == symbolTag;
1147
+ }
1148
+ var isSymbol_1 = isSymbol$1;
1149
+ var baseTrim = _baseTrim, isObject$1 = isObject_1, isSymbol = isSymbol_1;
1150
+ var NAN = 0 / 0;
1151
+ var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
1152
+ var reIsBinary = /^0b[01]+$/i;
1153
+ var reIsOctal = /^0o[0-7]+$/i;
1154
+ var freeParseInt = parseInt;
1155
+ function toNumber$1(value) {
1156
+ if (typeof value == "number") {
1157
+ return value;
1158
+ }
1159
+ if (isSymbol(value)) {
1160
+ return NAN;
1161
+ }
1162
+ if (isObject$1(value)) {
1163
+ var other = typeof value.valueOf == "function" ? value.valueOf() : value;
1164
+ value = isObject$1(other) ? other + "" : other;
1165
+ }
1166
+ if (typeof value != "string") {
1167
+ return value === 0 ? value : +value;
1168
+ }
1169
+ value = baseTrim(value);
1170
+ var isBinary = reIsBinary.test(value);
1171
+ return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;
1172
+ }
1173
+ var toNumber_1 = toNumber$1;
1174
+ var isObject = isObject_1, now = now_1, toNumber = toNumber_1;
1175
+ var FUNC_ERROR_TEXT = "Expected a function";
1176
+ var nativeMax = Math.max, nativeMin = Math.min;
1177
+ function debounce(func, wait, options) {
1178
+ var lastArgs, lastThis, maxWait, result, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true;
1179
+ if (typeof func != "function") {
1180
+ throw new TypeError(FUNC_ERROR_TEXT);
1181
+ }
1182
+ wait = toNumber(wait) || 0;
1183
+ if (isObject(options)) {
1184
+ leading = !!options.leading;
1185
+ maxing = "maxWait" in options;
1186
+ maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
1187
+ trailing = "trailing" in options ? !!options.trailing : trailing;
1188
+ }
1189
+ function invokeFunc(time) {
1190
+ var args = lastArgs, thisArg = lastThis;
1191
+ lastArgs = lastThis = void 0;
1192
+ lastInvokeTime = time;
1193
+ result = func.apply(thisArg, args);
1194
+ return result;
1195
+ }
1196
+ function leadingEdge(time) {
1197
+ lastInvokeTime = time;
1198
+ timerId = setTimeout(timerExpired, wait);
1199
+ return leading ? invokeFunc(time) : result;
1200
+ }
1201
+ function remainingWait(time) {
1202
+ var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime, timeWaiting = wait - timeSinceLastCall;
1203
+ return maxing ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke) : timeWaiting;
1204
+ }
1205
+ function shouldInvoke(time) {
1206
+ var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime;
1207
+ return lastCallTime === void 0 || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait;
1208
+ }
1209
+ function timerExpired() {
1210
+ var time = now();
1211
+ if (shouldInvoke(time)) {
1212
+ return trailingEdge(time);
1213
+ }
1214
+ timerId = setTimeout(timerExpired, remainingWait(time));
1215
+ }
1216
+ function trailingEdge(time) {
1217
+ timerId = void 0;
1218
+ if (trailing && lastArgs) {
1219
+ return invokeFunc(time);
1220
+ }
1221
+ lastArgs = lastThis = void 0;
1222
+ return result;
1223
+ }
1224
+ function cancel() {
1225
+ if (timerId !== void 0) {
1226
+ clearTimeout(timerId);
1227
+ }
1228
+ lastInvokeTime = 0;
1229
+ lastArgs = lastCallTime = lastThis = timerId = void 0;
1230
+ }
1231
+ function flush() {
1232
+ return timerId === void 0 ? result : trailingEdge(now());
1233
+ }
1234
+ function debounced() {
1235
+ var time = now(), isInvoking = shouldInvoke(time);
1236
+ lastArgs = arguments;
1237
+ lastThis = this;
1238
+ lastCallTime = time;
1239
+ if (isInvoking) {
1240
+ if (timerId === void 0) {
1241
+ return leadingEdge(lastCallTime);
1242
+ }
1243
+ if (maxing) {
1244
+ clearTimeout(timerId);
1245
+ timerId = setTimeout(timerExpired, wait);
1246
+ return invokeFunc(lastCallTime);
1247
+ }
1248
+ }
1249
+ if (timerId === void 0) {
1250
+ timerId = setTimeout(timerExpired, wait);
1251
+ }
1252
+ return result;
1253
+ }
1254
+ debounced.cancel = cancel;
1255
+ debounced.flush = flush;
1256
+ return debounced;
1257
+ }
1258
+ var debounce_1 = debounce;
1259
+ const debounce$1 = /* @__PURE__ */ getDefaultExportFromCjs(debounce_1);
1260
+ const _sfc_main = /* @__PURE__ */ defineComponent({
1261
+ __name: "TopToolbar",
1262
+ props: {
1263
+ element: {}
1264
+ },
1265
+ setup(__props) {
1266
+ const props = __props;
1267
+ const elementBus = inject("$elementBus");
1268
+ const form = ref();
1269
+ const title = ref(props.element.data.title);
1270
+ watch(
1271
+ title,
1272
+ debounce$1(async () => {
1273
+ if (!form.value)
1274
+ return;
1275
+ const { valid } = await form.value.validate();
1276
+ if (valid)
1277
+ return elementBus.emit("title", title.value);
1278
+ }, 500)
1279
+ );
1280
+ return (_ctx, _cache) => {
1281
+ const _component_VTextField = resolveComponent("VTextField");
1282
+ const _component_VToolbarItems = resolveComponent("VToolbarItems");
1283
+ const _component_VForm = resolveComponent("VForm");
1284
+ return openBlock(), createBlock(_component_VForm, {
1285
+ ref_key: "form",
1286
+ ref: form,
1287
+ "validate-on": "submit"
1288
+ }, {
1289
+ default: withCtx(() => [
1290
+ createVNode(_component_VToolbarItems, { class: "ga-2" }, {
1291
+ default: withCtx(() => [
1292
+ createVNode(_component_VTextField, {
1293
+ modelValue: title.value,
1294
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => title.value = $event),
1295
+ class: "required ml-2",
1296
+ "hide-details": "auto",
1297
+ label: "Button label",
1298
+ "min-width": "200",
1299
+ "prepend-inner-icon": "mdi-gesture-tap-button",
1300
+ variant: "outlined"
1301
+ }, null, 8, ["modelValue"])
1302
+ ]),
1303
+ _: 1
1304
+ })
1305
+ ]),
1306
+ _: 1
1307
+ }, 512);
1308
+ };
1309
+ }
1310
+ });
1311
+ const manifest = {
1312
+ ...src_default,
1313
+ Edit,
1314
+ TopToolbar: _sfc_main
1315
+ };
1316
+ export {
1317
+ Edit,
1318
+ _sfc_main as TopToolbar,
1319
+ manifest as default
1320
+ };