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