@tailor-cms/ce-modal-edit 0.0.2 → 0.1.0

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