@zipify/wysiwyg 2.0.0-3 → 2.0.0-4

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/wysiwyg.mjs CHANGED
@@ -4319,11 +4319,11 @@ class Plugin {
4319
4319
  return state[this.key];
4320
4320
  }
4321
4321
  }
4322
- const keys$3 = /* @__PURE__ */ Object.create(null);
4322
+ const keys$5 = /* @__PURE__ */ Object.create(null);
4323
4323
  function createKey(name) {
4324
- if (name in keys$3)
4325
- return name + "$" + ++keys$3[name];
4326
- keys$3[name] = 0;
4324
+ if (name in keys$5)
4325
+ return name + "$" + ++keys$5[name];
4326
+ keys$5[name] = 0;
4327
4327
  return name + "$";
4328
4328
  }
4329
4329
  class PluginKey {
@@ -14479,6 +14479,975 @@ function findMarkByType(list, typeOrName) {
14479
14479
  const name = typeof typeOrName === "string" ? typeOrName : typeOrName.name;
14480
14480
  return list.find((mark) => mark.type.name === name);
14481
14481
  }
14482
+ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
14483
+ function listCacheClear$2() {
14484
+ this.__data__ = [];
14485
+ this.size = 0;
14486
+ }
14487
+ var _listCacheClear = listCacheClear$2;
14488
+ function eq$4(value, other) {
14489
+ return value === other || value !== value && other !== other;
14490
+ }
14491
+ var eq_1 = eq$4;
14492
+ var eq$3 = eq_1;
14493
+ function assocIndexOf$5(array, key) {
14494
+ var length = array.length;
14495
+ while (length--) {
14496
+ if (eq$3(array[length][0], key)) {
14497
+ return length;
14498
+ }
14499
+ }
14500
+ return -1;
14501
+ }
14502
+ var _assocIndexOf = assocIndexOf$5;
14503
+ var assocIndexOf$4 = _assocIndexOf;
14504
+ var arrayProto$1 = Array.prototype;
14505
+ var splice$2 = arrayProto$1.splice;
14506
+ function listCacheDelete$2(key) {
14507
+ var data2 = this.__data__, index = assocIndexOf$4(data2, key);
14508
+ if (index < 0) {
14509
+ return false;
14510
+ }
14511
+ var lastIndex = data2.length - 1;
14512
+ if (index == lastIndex) {
14513
+ data2.pop();
14514
+ } else {
14515
+ splice$2.call(data2, index, 1);
14516
+ }
14517
+ --this.size;
14518
+ return true;
14519
+ }
14520
+ var _listCacheDelete = listCacheDelete$2;
14521
+ var assocIndexOf$3 = _assocIndexOf;
14522
+ function listCacheGet$2(key) {
14523
+ var data2 = this.__data__, index = assocIndexOf$3(data2, key);
14524
+ return index < 0 ? void 0 : data2[index][1];
14525
+ }
14526
+ var _listCacheGet = listCacheGet$2;
14527
+ var assocIndexOf$2 = _assocIndexOf;
14528
+ function listCacheHas$2(key) {
14529
+ return assocIndexOf$2(this.__data__, key) > -1;
14530
+ }
14531
+ var _listCacheHas = listCacheHas$2;
14532
+ var assocIndexOf$1 = _assocIndexOf;
14533
+ function listCacheSet$2(key, value) {
14534
+ var data2 = this.__data__, index = assocIndexOf$1(data2, key);
14535
+ if (index < 0) {
14536
+ ++this.size;
14537
+ data2.push([key, value]);
14538
+ } else {
14539
+ data2[index][1] = value;
14540
+ }
14541
+ return this;
14542
+ }
14543
+ var _listCacheSet = listCacheSet$2;
14544
+ var listCacheClear$1 = _listCacheClear, listCacheDelete$1 = _listCacheDelete, listCacheGet$1 = _listCacheGet, listCacheHas$1 = _listCacheHas, listCacheSet$1 = _listCacheSet;
14545
+ function ListCache$5(entries) {
14546
+ var index = -1, length = entries == null ? 0 : entries.length;
14547
+ this.clear();
14548
+ while (++index < length) {
14549
+ var entry = entries[index];
14550
+ this.set(entry[0], entry[1]);
14551
+ }
14552
+ }
14553
+ ListCache$5.prototype.clear = listCacheClear$1;
14554
+ ListCache$5.prototype["delete"] = listCacheDelete$1;
14555
+ ListCache$5.prototype.get = listCacheGet$1;
14556
+ ListCache$5.prototype.has = listCacheHas$1;
14557
+ ListCache$5.prototype.set = listCacheSet$1;
14558
+ var _ListCache = ListCache$5;
14559
+ var ListCache$4 = _ListCache;
14560
+ function stackClear$1() {
14561
+ this.__data__ = new ListCache$4();
14562
+ this.size = 0;
14563
+ }
14564
+ var _stackClear = stackClear$1;
14565
+ function stackDelete$1(key) {
14566
+ var data2 = this.__data__, result = data2["delete"](key);
14567
+ this.size = data2.size;
14568
+ return result;
14569
+ }
14570
+ var _stackDelete = stackDelete$1;
14571
+ function stackGet$1(key) {
14572
+ return this.__data__.get(key);
14573
+ }
14574
+ var _stackGet = stackGet$1;
14575
+ function stackHas$1(key) {
14576
+ return this.__data__.has(key);
14577
+ }
14578
+ var _stackHas = stackHas$1;
14579
+ var freeGlobal$4 = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
14580
+ var _freeGlobal = freeGlobal$4;
14581
+ var freeGlobal$3 = _freeGlobal;
14582
+ var freeSelf$3 = typeof self == "object" && self && self.Object === Object && self;
14583
+ var root$b = freeGlobal$3 || freeSelf$3 || Function("return this")();
14584
+ var _root = root$b;
14585
+ var root$a = _root;
14586
+ var Symbol$7 = root$a.Symbol;
14587
+ var _Symbol = Symbol$7;
14588
+ var Symbol$6 = _Symbol;
14589
+ var objectProto$h = Object.prototype;
14590
+ var hasOwnProperty$d = objectProto$h.hasOwnProperty;
14591
+ var nativeObjectToString$1 = objectProto$h.toString;
14592
+ var symToStringTag$1 = Symbol$6 ? Symbol$6.toStringTag : void 0;
14593
+ function getRawTag$1(value) {
14594
+ var isOwn = hasOwnProperty$d.call(value, symToStringTag$1), tag = value[symToStringTag$1];
14595
+ try {
14596
+ value[symToStringTag$1] = void 0;
14597
+ var unmasked = true;
14598
+ } catch (e) {
14599
+ }
14600
+ var result = nativeObjectToString$1.call(value);
14601
+ if (unmasked) {
14602
+ if (isOwn) {
14603
+ value[symToStringTag$1] = tag;
14604
+ } else {
14605
+ delete value[symToStringTag$1];
14606
+ }
14607
+ }
14608
+ return result;
14609
+ }
14610
+ var _getRawTag = getRawTag$1;
14611
+ var objectProto$g = Object.prototype;
14612
+ var nativeObjectToString = objectProto$g.toString;
14613
+ function objectToString$5(value) {
14614
+ return nativeObjectToString.call(value);
14615
+ }
14616
+ var _objectToString = objectToString$5;
14617
+ var Symbol$5 = _Symbol, getRawTag = _getRawTag, objectToString$4 = _objectToString;
14618
+ var nullTag = "[object Null]", undefinedTag = "[object Undefined]";
14619
+ var symToStringTag = Symbol$5 ? Symbol$5.toStringTag : void 0;
14620
+ function baseGetTag$4(value) {
14621
+ if (value == null) {
14622
+ return value === void 0 ? undefinedTag : nullTag;
14623
+ }
14624
+ return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString$4(value);
14625
+ }
14626
+ var _baseGetTag = baseGetTag$4;
14627
+ function isObject$l(value) {
14628
+ var type = typeof value;
14629
+ return value != null && (type == "object" || type == "function");
14630
+ }
14631
+ var isObject_1 = isObject$l;
14632
+ var baseGetTag$3 = _baseGetTag, isObject$k = isObject_1;
14633
+ var asyncTag = "[object AsyncFunction]", funcTag$3 = "[object Function]", genTag$2 = "[object GeneratorFunction]", proxyTag = "[object Proxy]";
14634
+ function isFunction$3(value) {
14635
+ if (!isObject$k(value)) {
14636
+ return false;
14637
+ }
14638
+ var tag = baseGetTag$3(value);
14639
+ return tag == funcTag$3 || tag == genTag$2 || tag == asyncTag || tag == proxyTag;
14640
+ }
14641
+ var isFunction_1 = isFunction$3;
14642
+ var root$9 = _root;
14643
+ var coreJsData$2 = root$9["__core-js_shared__"];
14644
+ var _coreJsData = coreJsData$2;
14645
+ var coreJsData$1 = _coreJsData;
14646
+ var maskSrcKey$1 = function() {
14647
+ var uid2 = /[^.]+$/.exec(coreJsData$1 && coreJsData$1.keys && coreJsData$1.keys.IE_PROTO || "");
14648
+ return uid2 ? "Symbol(src)_1." + uid2 : "";
14649
+ }();
14650
+ function isMasked$2(func) {
14651
+ return !!maskSrcKey$1 && maskSrcKey$1 in func;
14652
+ }
14653
+ var _isMasked = isMasked$2;
14654
+ var funcProto$2 = Function.prototype;
14655
+ var funcToString$2 = funcProto$2.toString;
14656
+ function toSource$3(func) {
14657
+ if (func != null) {
14658
+ try {
14659
+ return funcToString$2.call(func);
14660
+ } catch (e) {
14661
+ }
14662
+ try {
14663
+ return func + "";
14664
+ } catch (e) {
14665
+ }
14666
+ }
14667
+ return "";
14668
+ }
14669
+ var _toSource = toSource$3;
14670
+ var isFunction$2 = isFunction_1, isMasked$1 = _isMasked, isObject$j = isObject_1, toSource$2 = _toSource;
14671
+ var reRegExpChar$1 = /[\\^$.*+?()[\]{}|]/g;
14672
+ var reIsHostCtor$1 = /^\[object .+?Constructor\]$/;
14673
+ var funcProto$1 = Function.prototype, objectProto$f = Object.prototype;
14674
+ var funcToString$1 = funcProto$1.toString;
14675
+ var hasOwnProperty$c = objectProto$f.hasOwnProperty;
14676
+ var reIsNative$1 = RegExp(
14677
+ "^" + funcToString$1.call(hasOwnProperty$c).replace(reRegExpChar$1, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
14678
+ );
14679
+ function baseIsNative$2(value) {
14680
+ if (!isObject$j(value) || isMasked$1(value)) {
14681
+ return false;
14682
+ }
14683
+ var pattern = isFunction$2(value) ? reIsNative$1 : reIsHostCtor$1;
14684
+ return pattern.test(toSource$2(value));
14685
+ }
14686
+ var _baseIsNative = baseIsNative$2;
14687
+ function getValue$2(object, key) {
14688
+ return object == null ? void 0 : object[key];
14689
+ }
14690
+ var _getValue = getValue$2;
14691
+ var baseIsNative$1 = _baseIsNative, getValue$1 = _getValue;
14692
+ function getNative$8(object, key) {
14693
+ var value = getValue$1(object, key);
14694
+ return baseIsNative$1(value) ? value : void 0;
14695
+ }
14696
+ var _getNative = getNative$8;
14697
+ var getNative$7 = _getNative, root$8 = _root;
14698
+ var Map$5 = getNative$7(root$8, "Map");
14699
+ var _Map = Map$5;
14700
+ var getNative$6 = _getNative;
14701
+ var nativeCreate$5 = getNative$6(Object, "create");
14702
+ var _nativeCreate = nativeCreate$5;
14703
+ var nativeCreate$4 = _nativeCreate;
14704
+ function hashClear$2() {
14705
+ this.__data__ = nativeCreate$4 ? nativeCreate$4(null) : {};
14706
+ this.size = 0;
14707
+ }
14708
+ var _hashClear = hashClear$2;
14709
+ function hashDelete$2(key) {
14710
+ var result = this.has(key) && delete this.__data__[key];
14711
+ this.size -= result ? 1 : 0;
14712
+ return result;
14713
+ }
14714
+ var _hashDelete = hashDelete$2;
14715
+ var nativeCreate$3 = _nativeCreate;
14716
+ var HASH_UNDEFINED$3 = "__lodash_hash_undefined__";
14717
+ var objectProto$e = Object.prototype;
14718
+ var hasOwnProperty$b = objectProto$e.hasOwnProperty;
14719
+ function hashGet$2(key) {
14720
+ var data2 = this.__data__;
14721
+ if (nativeCreate$3) {
14722
+ var result = data2[key];
14723
+ return result === HASH_UNDEFINED$3 ? void 0 : result;
14724
+ }
14725
+ return hasOwnProperty$b.call(data2, key) ? data2[key] : void 0;
14726
+ }
14727
+ var _hashGet = hashGet$2;
14728
+ var nativeCreate$2 = _nativeCreate;
14729
+ var objectProto$d = Object.prototype;
14730
+ var hasOwnProperty$a = objectProto$d.hasOwnProperty;
14731
+ function hashHas$2(key) {
14732
+ var data2 = this.__data__;
14733
+ return nativeCreate$2 ? data2[key] !== void 0 : hasOwnProperty$a.call(data2, key);
14734
+ }
14735
+ var _hashHas = hashHas$2;
14736
+ var nativeCreate$1 = _nativeCreate;
14737
+ var HASH_UNDEFINED$2 = "__lodash_hash_undefined__";
14738
+ function hashSet$2(key, value) {
14739
+ var data2 = this.__data__;
14740
+ this.size += this.has(key) ? 0 : 1;
14741
+ data2[key] = nativeCreate$1 && value === void 0 ? HASH_UNDEFINED$2 : value;
14742
+ return this;
14743
+ }
14744
+ var _hashSet = hashSet$2;
14745
+ var hashClear$1 = _hashClear, hashDelete$1 = _hashDelete, hashGet$1 = _hashGet, hashHas$1 = _hashHas, hashSet$1 = _hashSet;
14746
+ function Hash$2(entries) {
14747
+ var index = -1, length = entries == null ? 0 : entries.length;
14748
+ this.clear();
14749
+ while (++index < length) {
14750
+ var entry = entries[index];
14751
+ this.set(entry[0], entry[1]);
14752
+ }
14753
+ }
14754
+ Hash$2.prototype.clear = hashClear$1;
14755
+ Hash$2.prototype["delete"] = hashDelete$1;
14756
+ Hash$2.prototype.get = hashGet$1;
14757
+ Hash$2.prototype.has = hashHas$1;
14758
+ Hash$2.prototype.set = hashSet$1;
14759
+ var _Hash = Hash$2;
14760
+ var Hash$1 = _Hash, ListCache$3 = _ListCache, Map$4 = _Map;
14761
+ function mapCacheClear$2() {
14762
+ this.size = 0;
14763
+ this.__data__ = {
14764
+ "hash": new Hash$1(),
14765
+ "map": new (Map$4 || ListCache$3)(),
14766
+ "string": new Hash$1()
14767
+ };
14768
+ }
14769
+ var _mapCacheClear = mapCacheClear$2;
14770
+ function isKeyable$2(value) {
14771
+ var type = typeof value;
14772
+ return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
14773
+ }
14774
+ var _isKeyable = isKeyable$2;
14775
+ var isKeyable$1 = _isKeyable;
14776
+ function getMapData$5(map2, key) {
14777
+ var data2 = map2.__data__;
14778
+ return isKeyable$1(key) ? data2[typeof key == "string" ? "string" : "hash"] : data2.map;
14779
+ }
14780
+ var _getMapData = getMapData$5;
14781
+ var getMapData$4 = _getMapData;
14782
+ function mapCacheDelete$2(key) {
14783
+ var result = getMapData$4(this, key)["delete"](key);
14784
+ this.size -= result ? 1 : 0;
14785
+ return result;
14786
+ }
14787
+ var _mapCacheDelete = mapCacheDelete$2;
14788
+ var getMapData$3 = _getMapData;
14789
+ function mapCacheGet$2(key) {
14790
+ return getMapData$3(this, key).get(key);
14791
+ }
14792
+ var _mapCacheGet = mapCacheGet$2;
14793
+ var getMapData$2 = _getMapData;
14794
+ function mapCacheHas$2(key) {
14795
+ return getMapData$2(this, key).has(key);
14796
+ }
14797
+ var _mapCacheHas = mapCacheHas$2;
14798
+ var getMapData$1 = _getMapData;
14799
+ function mapCacheSet$2(key, value) {
14800
+ var data2 = getMapData$1(this, key), size2 = data2.size;
14801
+ data2.set(key, value);
14802
+ this.size += data2.size == size2 ? 0 : 1;
14803
+ return this;
14804
+ }
14805
+ var _mapCacheSet = mapCacheSet$2;
14806
+ var mapCacheClear$1 = _mapCacheClear, mapCacheDelete$1 = _mapCacheDelete, mapCacheGet$1 = _mapCacheGet, mapCacheHas$1 = _mapCacheHas, mapCacheSet$1 = _mapCacheSet;
14807
+ function MapCache$3(entries) {
14808
+ var index = -1, length = entries == null ? 0 : entries.length;
14809
+ this.clear();
14810
+ while (++index < length) {
14811
+ var entry = entries[index];
14812
+ this.set(entry[0], entry[1]);
14813
+ }
14814
+ }
14815
+ MapCache$3.prototype.clear = mapCacheClear$1;
14816
+ MapCache$3.prototype["delete"] = mapCacheDelete$1;
14817
+ MapCache$3.prototype.get = mapCacheGet$1;
14818
+ MapCache$3.prototype.has = mapCacheHas$1;
14819
+ MapCache$3.prototype.set = mapCacheSet$1;
14820
+ var _MapCache = MapCache$3;
14821
+ var ListCache$2 = _ListCache, Map$3 = _Map, MapCache$2 = _MapCache;
14822
+ var LARGE_ARRAY_SIZE = 200;
14823
+ function stackSet$1(key, value) {
14824
+ var data2 = this.__data__;
14825
+ if (data2 instanceof ListCache$2) {
14826
+ var pairs = data2.__data__;
14827
+ if (!Map$3 || pairs.length < LARGE_ARRAY_SIZE - 1) {
14828
+ pairs.push([key, value]);
14829
+ this.size = ++data2.size;
14830
+ return this;
14831
+ }
14832
+ data2 = this.__data__ = new MapCache$2(pairs);
14833
+ }
14834
+ data2.set(key, value);
14835
+ this.size = data2.size;
14836
+ return this;
14837
+ }
14838
+ var _stackSet = stackSet$1;
14839
+ var ListCache$1 = _ListCache, stackClear = _stackClear, stackDelete = _stackDelete, stackGet = _stackGet, stackHas = _stackHas, stackSet = _stackSet;
14840
+ function Stack$2(entries) {
14841
+ var data2 = this.__data__ = new ListCache$1(entries);
14842
+ this.size = data2.size;
14843
+ }
14844
+ Stack$2.prototype.clear = stackClear;
14845
+ Stack$2.prototype["delete"] = stackDelete;
14846
+ Stack$2.prototype.get = stackGet;
14847
+ Stack$2.prototype.has = stackHas;
14848
+ Stack$2.prototype.set = stackSet;
14849
+ var _Stack = Stack$2;
14850
+ function arrayEach$1(array, iteratee) {
14851
+ var index = -1, length = array == null ? 0 : array.length;
14852
+ while (++index < length) {
14853
+ if (iteratee(array[index], index, array) === false) {
14854
+ break;
14855
+ }
14856
+ }
14857
+ return array;
14858
+ }
14859
+ var _arrayEach = arrayEach$1;
14860
+ var getNative$5 = _getNative;
14861
+ var defineProperty$9 = function() {
14862
+ try {
14863
+ var func = getNative$5(Object, "defineProperty");
14864
+ func({}, "", {});
14865
+ return func;
14866
+ } catch (e) {
14867
+ }
14868
+ }();
14869
+ var _defineProperty = defineProperty$9;
14870
+ var defineProperty$8 = _defineProperty;
14871
+ function baseAssignValue$2(object, key, value) {
14872
+ if (key == "__proto__" && defineProperty$8) {
14873
+ defineProperty$8(object, key, {
14874
+ "configurable": true,
14875
+ "enumerable": true,
14876
+ "value": value,
14877
+ "writable": true
14878
+ });
14879
+ } else {
14880
+ object[key] = value;
14881
+ }
14882
+ }
14883
+ var _baseAssignValue = baseAssignValue$2;
14884
+ var baseAssignValue$1 = _baseAssignValue, eq$2 = eq_1;
14885
+ var objectProto$c = Object.prototype;
14886
+ var hasOwnProperty$9 = objectProto$c.hasOwnProperty;
14887
+ function assignValue$2(object, key, value) {
14888
+ var objValue = object[key];
14889
+ if (!(hasOwnProperty$9.call(object, key) && eq$2(objValue, value)) || value === void 0 && !(key in object)) {
14890
+ baseAssignValue$1(object, key, value);
14891
+ }
14892
+ }
14893
+ var _assignValue = assignValue$2;
14894
+ var assignValue$1 = _assignValue, baseAssignValue = _baseAssignValue;
14895
+ function copyObject$4(source, props, object, customizer) {
14896
+ var isNew = !object;
14897
+ object || (object = {});
14898
+ var index = -1, length = props.length;
14899
+ while (++index < length) {
14900
+ var key = props[index];
14901
+ var newValue = customizer ? customizer(object[key], source[key], key, object, source) : void 0;
14902
+ if (newValue === void 0) {
14903
+ newValue = source[key];
14904
+ }
14905
+ if (isNew) {
14906
+ baseAssignValue(object, key, newValue);
14907
+ } else {
14908
+ assignValue$1(object, key, newValue);
14909
+ }
14910
+ }
14911
+ return object;
14912
+ }
14913
+ var _copyObject = copyObject$4;
14914
+ function baseTimes$1(n, iteratee) {
14915
+ var index = -1, result = Array(n);
14916
+ while (++index < n) {
14917
+ result[index] = iteratee(index);
14918
+ }
14919
+ return result;
14920
+ }
14921
+ var _baseTimes = baseTimes$1;
14922
+ function isObjectLike$8(value) {
14923
+ return value != null && typeof value == "object";
14924
+ }
14925
+ var isObjectLike_1 = isObjectLike$8;
14926
+ var baseGetTag$2 = _baseGetTag, isObjectLike$7 = isObjectLike_1;
14927
+ var argsTag$3 = "[object Arguments]";
14928
+ function baseIsArguments$1(value) {
14929
+ return isObjectLike$7(value) && baseGetTag$2(value) == argsTag$3;
14930
+ }
14931
+ var _baseIsArguments = baseIsArguments$1;
14932
+ var baseIsArguments = _baseIsArguments, isObjectLike$6 = isObjectLike_1;
14933
+ var objectProto$b = Object.prototype;
14934
+ var hasOwnProperty$8 = objectProto$b.hasOwnProperty;
14935
+ var propertyIsEnumerable$1 = objectProto$b.propertyIsEnumerable;
14936
+ var isArguments$1 = baseIsArguments(function() {
14937
+ return arguments;
14938
+ }()) ? baseIsArguments : function(value) {
14939
+ return isObjectLike$6(value) && hasOwnProperty$8.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
14940
+ };
14941
+ var isArguments_1 = isArguments$1;
14942
+ var isArray$6 = Array.isArray;
14943
+ var isArray_1 = isArray$6;
14944
+ var isBuffer$3 = { exports: {} };
14945
+ function stubFalse() {
14946
+ return false;
14947
+ }
14948
+ var stubFalse_1 = stubFalse;
14949
+ (function(module, exports) {
14950
+ var root2 = _root, stubFalse2 = stubFalse_1;
14951
+ var freeExports = exports && !exports.nodeType && exports;
14952
+ var freeModule = freeExports && true && module && !module.nodeType && module;
14953
+ var moduleExports = freeModule && freeModule.exports === freeExports;
14954
+ var Buffer2 = moduleExports ? root2.Buffer : void 0;
14955
+ var nativeIsBuffer = Buffer2 ? Buffer2.isBuffer : void 0;
14956
+ var isBuffer2 = nativeIsBuffer || stubFalse2;
14957
+ module.exports = isBuffer2;
14958
+ })(isBuffer$3, isBuffer$3.exports);
14959
+ var MAX_SAFE_INTEGER$1 = 9007199254740991;
14960
+ var reIsUint = /^(?:0|[1-9]\d*)$/;
14961
+ function isIndex$1(value, length) {
14962
+ var type = typeof value;
14963
+ length = length == null ? MAX_SAFE_INTEGER$1 : length;
14964
+ return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
14965
+ }
14966
+ var _isIndex = isIndex$1;
14967
+ var MAX_SAFE_INTEGER = 9007199254740991;
14968
+ function isLength$2(value) {
14969
+ return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
14970
+ }
14971
+ var isLength_1 = isLength$2;
14972
+ var baseGetTag$1 = _baseGetTag, isLength$1 = isLength_1, isObjectLike$5 = isObjectLike_1;
14973
+ var argsTag$2 = "[object Arguments]", arrayTag$2 = "[object Array]", boolTag$3 = "[object Boolean]", dateTag$3 = "[object Date]", errorTag$2 = "[object Error]", funcTag$2 = "[object Function]", mapTag$5 = "[object Map]", numberTag$3 = "[object Number]", objectTag$3 = "[object Object]", regexpTag$3 = "[object RegExp]", setTag$5 = "[object Set]", stringTag$3 = "[object String]", weakMapTag$2 = "[object WeakMap]";
14974
+ var arrayBufferTag$3 = "[object ArrayBuffer]", dataViewTag$4 = "[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]";
14975
+ var typedArrayTags = {};
14976
+ 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;
14977
+ typedArrayTags[argsTag$2] = typedArrayTags[arrayTag$2] = typedArrayTags[arrayBufferTag$3] = typedArrayTags[boolTag$3] = typedArrayTags[dataViewTag$4] = typedArrayTags[dateTag$3] = typedArrayTags[errorTag$2] = typedArrayTags[funcTag$2] = typedArrayTags[mapTag$5] = typedArrayTags[numberTag$3] = typedArrayTags[objectTag$3] = typedArrayTags[regexpTag$3] = typedArrayTags[setTag$5] = typedArrayTags[stringTag$3] = typedArrayTags[weakMapTag$2] = false;
14978
+ function baseIsTypedArray$1(value) {
14979
+ return isObjectLike$5(value) && isLength$1(value.length) && !!typedArrayTags[baseGetTag$1(value)];
14980
+ }
14981
+ var _baseIsTypedArray = baseIsTypedArray$1;
14982
+ function baseUnary$3(func) {
14983
+ return function(value) {
14984
+ return func(value);
14985
+ };
14986
+ }
14987
+ var _baseUnary = baseUnary$3;
14988
+ var _nodeUtil = { exports: {} };
14989
+ (function(module, exports) {
14990
+ var freeGlobal2 = _freeGlobal;
14991
+ var freeExports = exports && !exports.nodeType && exports;
14992
+ var freeModule = freeExports && true && module && !module.nodeType && module;
14993
+ var moduleExports = freeModule && freeModule.exports === freeExports;
14994
+ var freeProcess = moduleExports && freeGlobal2.process;
14995
+ var nodeUtil2 = function() {
14996
+ try {
14997
+ var types = freeModule && freeModule.require && freeModule.require("util").types;
14998
+ if (types) {
14999
+ return types;
15000
+ }
15001
+ return freeProcess && freeProcess.binding && freeProcess.binding("util");
15002
+ } catch (e) {
15003
+ }
15004
+ }();
15005
+ module.exports = nodeUtil2;
15006
+ })(_nodeUtil, _nodeUtil.exports);
15007
+ var baseIsTypedArray = _baseIsTypedArray, baseUnary$2 = _baseUnary, nodeUtil$2 = _nodeUtil.exports;
15008
+ var nodeIsTypedArray = nodeUtil$2 && nodeUtil$2.isTypedArray;
15009
+ var isTypedArray$2 = nodeIsTypedArray ? baseUnary$2(nodeIsTypedArray) : baseIsTypedArray;
15010
+ var isTypedArray_1 = isTypedArray$2;
15011
+ var baseTimes = _baseTimes, isArguments = isArguments_1, isArray$5 = isArray_1, isBuffer$2 = isBuffer$3.exports, isIndex = _isIndex, isTypedArray$1 = isTypedArray_1;
15012
+ var objectProto$a = Object.prototype;
15013
+ var hasOwnProperty$7 = objectProto$a.hasOwnProperty;
15014
+ function arrayLikeKeys$2(value, inherited) {
15015
+ var isArr = isArray$5(value), isArg = !isArr && isArguments(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;
15016
+ for (var key in value) {
15017
+ if ((inherited || hasOwnProperty$7.call(value, key)) && !(skipIndexes && (key == "length" || isBuff && (key == "offset" || key == "parent") || isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || isIndex(key, length)))) {
15018
+ result.push(key);
15019
+ }
15020
+ }
15021
+ return result;
15022
+ }
15023
+ var _arrayLikeKeys = arrayLikeKeys$2;
15024
+ var objectProto$9 = Object.prototype;
15025
+ function isPrototype$3(value) {
15026
+ var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto$9;
15027
+ return value === proto;
15028
+ }
15029
+ var _isPrototype = isPrototype$3;
15030
+ function overArg$2(func, transform) {
15031
+ return function(arg) {
15032
+ return func(transform(arg));
15033
+ };
15034
+ }
15035
+ var _overArg = overArg$2;
15036
+ var overArg$1 = _overArg;
15037
+ var nativeKeys$1 = overArg$1(Object.keys, Object);
15038
+ var _nativeKeys = nativeKeys$1;
15039
+ var isPrototype$2 = _isPrototype, nativeKeys = _nativeKeys;
15040
+ var objectProto$8 = Object.prototype;
15041
+ var hasOwnProperty$6 = objectProto$8.hasOwnProperty;
15042
+ function baseKeys$1(object) {
15043
+ if (!isPrototype$2(object)) {
15044
+ return nativeKeys(object);
15045
+ }
15046
+ var result = [];
15047
+ for (var key in Object(object)) {
15048
+ if (hasOwnProperty$6.call(object, key) && key != "constructor") {
15049
+ result.push(key);
15050
+ }
15051
+ }
15052
+ return result;
15053
+ }
15054
+ var _baseKeys = baseKeys$1;
15055
+ var isFunction$1 = isFunction_1, isLength = isLength_1;
15056
+ function isArrayLike$2(value) {
15057
+ return value != null && isLength(value.length) && !isFunction$1(value);
15058
+ }
15059
+ var isArrayLike_1 = isArrayLike$2;
15060
+ var arrayLikeKeys$1 = _arrayLikeKeys, baseKeys = _baseKeys, isArrayLike$1 = isArrayLike_1;
15061
+ function keys$4(object) {
15062
+ return isArrayLike$1(object) ? arrayLikeKeys$1(object) : baseKeys(object);
15063
+ }
15064
+ var keys_1 = keys$4;
15065
+ var copyObject$3 = _copyObject, keys$3 = keys_1;
15066
+ function baseAssign$1(object, source) {
15067
+ return object && copyObject$3(source, keys$3(source), object);
15068
+ }
15069
+ var _baseAssign = baseAssign$1;
15070
+ function nativeKeysIn$1(object) {
15071
+ var result = [];
15072
+ if (object != null) {
15073
+ for (var key in Object(object)) {
15074
+ result.push(key);
15075
+ }
15076
+ }
15077
+ return result;
15078
+ }
15079
+ var _nativeKeysIn = nativeKeysIn$1;
15080
+ var isObject$i = isObject_1, isPrototype$1 = _isPrototype, nativeKeysIn = _nativeKeysIn;
15081
+ var objectProto$7 = Object.prototype;
15082
+ var hasOwnProperty$5 = objectProto$7.hasOwnProperty;
15083
+ function baseKeysIn$1(object) {
15084
+ if (!isObject$i(object)) {
15085
+ return nativeKeysIn(object);
15086
+ }
15087
+ var isProto = isPrototype$1(object), result = [];
15088
+ for (var key in object) {
15089
+ if (!(key == "constructor" && (isProto || !hasOwnProperty$5.call(object, key)))) {
15090
+ result.push(key);
15091
+ }
15092
+ }
15093
+ return result;
15094
+ }
15095
+ var _baseKeysIn = baseKeysIn$1;
15096
+ var arrayLikeKeys = _arrayLikeKeys, baseKeysIn = _baseKeysIn, isArrayLike = isArrayLike_1;
15097
+ function keysIn$3(object) {
15098
+ return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
15099
+ }
15100
+ var keysIn_1 = keysIn$3;
15101
+ var copyObject$2 = _copyObject, keysIn$2 = keysIn_1;
15102
+ function baseAssignIn$1(object, source) {
15103
+ return object && copyObject$2(source, keysIn$2(source), object);
15104
+ }
15105
+ var _baseAssignIn = baseAssignIn$1;
15106
+ var _cloneBuffer = { exports: {} };
15107
+ (function(module, exports) {
15108
+ var root2 = _root;
15109
+ var freeExports = exports && !exports.nodeType && exports;
15110
+ var freeModule = freeExports && true && module && !module.nodeType && module;
15111
+ var moduleExports = freeModule && freeModule.exports === freeExports;
15112
+ var Buffer2 = moduleExports ? root2.Buffer : void 0, allocUnsafe = Buffer2 ? Buffer2.allocUnsafe : void 0;
15113
+ function cloneBuffer2(buffer, isDeep) {
15114
+ if (isDeep) {
15115
+ return buffer.slice();
15116
+ }
15117
+ var length = buffer.length, result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
15118
+ buffer.copy(result);
15119
+ return result;
15120
+ }
15121
+ module.exports = cloneBuffer2;
15122
+ })(_cloneBuffer, _cloneBuffer.exports);
15123
+ function copyArray$1(source, array) {
15124
+ var index = -1, length = source.length;
15125
+ array || (array = Array(length));
15126
+ while (++index < length) {
15127
+ array[index] = source[index];
15128
+ }
15129
+ return array;
15130
+ }
15131
+ var _copyArray = copyArray$1;
15132
+ function arrayFilter$1(array, predicate) {
15133
+ var index = -1, length = array == null ? 0 : array.length, resIndex = 0, result = [];
15134
+ while (++index < length) {
15135
+ var value = array[index];
15136
+ if (predicate(value, index, array)) {
15137
+ result[resIndex++] = value;
15138
+ }
15139
+ }
15140
+ return result;
15141
+ }
15142
+ var _arrayFilter = arrayFilter$1;
15143
+ function stubArray$2() {
15144
+ return [];
15145
+ }
15146
+ var stubArray_1 = stubArray$2;
15147
+ var arrayFilter = _arrayFilter, stubArray$1 = stubArray_1;
15148
+ var objectProto$6 = Object.prototype;
15149
+ var propertyIsEnumerable = objectProto$6.propertyIsEnumerable;
15150
+ var nativeGetSymbols$1 = Object.getOwnPropertySymbols;
15151
+ var getSymbols$3 = !nativeGetSymbols$1 ? stubArray$1 : function(object) {
15152
+ if (object == null) {
15153
+ return [];
15154
+ }
15155
+ object = Object(object);
15156
+ return arrayFilter(nativeGetSymbols$1(object), function(symbol) {
15157
+ return propertyIsEnumerable.call(object, symbol);
15158
+ });
15159
+ };
15160
+ var _getSymbols = getSymbols$3;
15161
+ var copyObject$1 = _copyObject, getSymbols$2 = _getSymbols;
15162
+ function copySymbols$1(source, object) {
15163
+ return copyObject$1(source, getSymbols$2(source), object);
15164
+ }
15165
+ var _copySymbols = copySymbols$1;
15166
+ function arrayPush$2(array, values2) {
15167
+ var index = -1, length = values2.length, offset2 = array.length;
15168
+ while (++index < length) {
15169
+ array[offset2 + index] = values2[index];
15170
+ }
15171
+ return array;
15172
+ }
15173
+ var _arrayPush = arrayPush$2;
15174
+ var overArg = _overArg;
15175
+ var getPrototype$2 = overArg(Object.getPrototypeOf, Object);
15176
+ var _getPrototype = getPrototype$2;
15177
+ var arrayPush$1 = _arrayPush, getPrototype$1 = _getPrototype, getSymbols$1 = _getSymbols, stubArray = stubArray_1;
15178
+ var nativeGetSymbols = Object.getOwnPropertySymbols;
15179
+ var getSymbolsIn$2 = !nativeGetSymbols ? stubArray : function(object) {
15180
+ var result = [];
15181
+ while (object) {
15182
+ arrayPush$1(result, getSymbols$1(object));
15183
+ object = getPrototype$1(object);
15184
+ }
15185
+ return result;
15186
+ };
15187
+ var _getSymbolsIn = getSymbolsIn$2;
15188
+ var copyObject = _copyObject, getSymbolsIn$1 = _getSymbolsIn;
15189
+ function copySymbolsIn$1(source, object) {
15190
+ return copyObject(source, getSymbolsIn$1(source), object);
15191
+ }
15192
+ var _copySymbolsIn = copySymbolsIn$1;
15193
+ var arrayPush = _arrayPush, isArray$4 = isArray_1;
15194
+ function baseGetAllKeys$2(object, keysFunc, symbolsFunc) {
15195
+ var result = keysFunc(object);
15196
+ return isArray$4(object) ? result : arrayPush(result, symbolsFunc(object));
15197
+ }
15198
+ var _baseGetAllKeys = baseGetAllKeys$2;
15199
+ var baseGetAllKeys$1 = _baseGetAllKeys, getSymbols = _getSymbols, keys$2 = keys_1;
15200
+ function getAllKeys$2(object) {
15201
+ return baseGetAllKeys$1(object, keys$2, getSymbols);
15202
+ }
15203
+ var _getAllKeys = getAllKeys$2;
15204
+ var baseGetAllKeys = _baseGetAllKeys, getSymbolsIn = _getSymbolsIn, keysIn$1 = keysIn_1;
15205
+ function getAllKeysIn$1(object) {
15206
+ return baseGetAllKeys(object, keysIn$1, getSymbolsIn);
15207
+ }
15208
+ var _getAllKeysIn = getAllKeysIn$1;
15209
+ var getNative$4 = _getNative, root$7 = _root;
15210
+ var DataView$1 = getNative$4(root$7, "DataView");
15211
+ var _DataView = DataView$1;
15212
+ var getNative$3 = _getNative, root$6 = _root;
15213
+ var Promise$2 = getNative$3(root$6, "Promise");
15214
+ var _Promise = Promise$2;
15215
+ var getNative$2 = _getNative, root$5 = _root;
15216
+ var Set$2 = getNative$2(root$5, "Set");
15217
+ var _Set = Set$2;
15218
+ var getNative$1 = _getNative, root$4 = _root;
15219
+ var WeakMap$4 = getNative$1(root$4, "WeakMap");
15220
+ var _WeakMap = WeakMap$4;
15221
+ var DataView = _DataView, Map$2 = _Map, Promise$1 = _Promise, Set$1 = _Set, WeakMap$3 = _WeakMap, baseGetTag = _baseGetTag, toSource$1 = _toSource;
15222
+ var mapTag$4 = "[object Map]", objectTag$2 = "[object Object]", promiseTag = "[object Promise]", setTag$4 = "[object Set]", weakMapTag$1 = "[object WeakMap]";
15223
+ var dataViewTag$3 = "[object DataView]";
15224
+ var dataViewCtorString = toSource$1(DataView), mapCtorString = toSource$1(Map$2), promiseCtorString = toSource$1(Promise$1), setCtorString = toSource$1(Set$1), weakMapCtorString = toSource$1(WeakMap$3);
15225
+ var getTag$4 = baseGetTag;
15226
+ if (DataView && getTag$4(new DataView(new ArrayBuffer(1))) != dataViewTag$3 || Map$2 && getTag$4(new Map$2()) != mapTag$4 || Promise$1 && getTag$4(Promise$1.resolve()) != promiseTag || Set$1 && getTag$4(new Set$1()) != setTag$4 || WeakMap$3 && getTag$4(new WeakMap$3()) != weakMapTag$1) {
15227
+ getTag$4 = function(value) {
15228
+ var result = baseGetTag(value), Ctor = result == objectTag$2 ? value.constructor : void 0, ctorString = Ctor ? toSource$1(Ctor) : "";
15229
+ if (ctorString) {
15230
+ switch (ctorString) {
15231
+ case dataViewCtorString:
15232
+ return dataViewTag$3;
15233
+ case mapCtorString:
15234
+ return mapTag$4;
15235
+ case promiseCtorString:
15236
+ return promiseTag;
15237
+ case setCtorString:
15238
+ return setTag$4;
15239
+ case weakMapCtorString:
15240
+ return weakMapTag$1;
15241
+ }
15242
+ }
15243
+ return result;
15244
+ };
15245
+ }
15246
+ var _getTag = getTag$4;
15247
+ var objectProto$5 = Object.prototype;
15248
+ var hasOwnProperty$4 = objectProto$5.hasOwnProperty;
15249
+ function initCloneArray$1(array) {
15250
+ var length = array.length, result = new array.constructor(length);
15251
+ if (length && typeof array[0] == "string" && hasOwnProperty$4.call(array, "index")) {
15252
+ result.index = array.index;
15253
+ result.input = array.input;
15254
+ }
15255
+ return result;
15256
+ }
15257
+ var _initCloneArray = initCloneArray$1;
15258
+ var root$3 = _root;
15259
+ var Uint8Array$2 = root$3.Uint8Array;
15260
+ var _Uint8Array = Uint8Array$2;
15261
+ var Uint8Array$1 = _Uint8Array;
15262
+ function cloneArrayBuffer$3(arrayBuffer) {
15263
+ var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
15264
+ new Uint8Array$1(result).set(new Uint8Array$1(arrayBuffer));
15265
+ return result;
15266
+ }
15267
+ var _cloneArrayBuffer = cloneArrayBuffer$3;
15268
+ var cloneArrayBuffer$2 = _cloneArrayBuffer;
15269
+ function cloneDataView$1(dataView, isDeep) {
15270
+ var buffer = isDeep ? cloneArrayBuffer$2(dataView.buffer) : dataView.buffer;
15271
+ return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
15272
+ }
15273
+ var _cloneDataView = cloneDataView$1;
15274
+ var reFlags = /\w*$/;
15275
+ function cloneRegExp$1(regexp) {
15276
+ var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
15277
+ result.lastIndex = regexp.lastIndex;
15278
+ return result;
15279
+ }
15280
+ var _cloneRegExp = cloneRegExp$1;
15281
+ var Symbol$4 = _Symbol;
15282
+ var symbolProto$1 = Symbol$4 ? Symbol$4.prototype : void 0, symbolValueOf$1 = symbolProto$1 ? symbolProto$1.valueOf : void 0;
15283
+ function cloneSymbol$1(symbol) {
15284
+ return symbolValueOf$1 ? Object(symbolValueOf$1.call(symbol)) : {};
15285
+ }
15286
+ var _cloneSymbol = cloneSymbol$1;
15287
+ var cloneArrayBuffer$1 = _cloneArrayBuffer;
15288
+ function cloneTypedArray$1(typedArray, isDeep) {
15289
+ var buffer = isDeep ? cloneArrayBuffer$1(typedArray.buffer) : typedArray.buffer;
15290
+ return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
15291
+ }
15292
+ var _cloneTypedArray = cloneTypedArray$1;
15293
+ var cloneArrayBuffer = _cloneArrayBuffer, cloneDataView = _cloneDataView, cloneRegExp = _cloneRegExp, cloneSymbol = _cloneSymbol, cloneTypedArray = _cloneTypedArray;
15294
+ var boolTag$2 = "[object Boolean]", dateTag$2 = "[object Date]", mapTag$3 = "[object Map]", numberTag$2 = "[object Number]", regexpTag$2 = "[object RegExp]", setTag$3 = "[object Set]", stringTag$2 = "[object String]", symbolTag$4 = "[object Symbol]";
15295
+ var arrayBufferTag$2 = "[object ArrayBuffer]", dataViewTag$2 = "[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]";
15296
+ function initCloneByTag$1(object, tag, isDeep) {
15297
+ var Ctor = object.constructor;
15298
+ switch (tag) {
15299
+ case arrayBufferTag$2:
15300
+ return cloneArrayBuffer(object);
15301
+ case boolTag$2:
15302
+ case dateTag$2:
15303
+ return new Ctor(+object);
15304
+ case dataViewTag$2:
15305
+ return cloneDataView(object, isDeep);
15306
+ case float32Tag$1:
15307
+ case float64Tag$1:
15308
+ case int8Tag$1:
15309
+ case int16Tag$1:
15310
+ case int32Tag$1:
15311
+ case uint8Tag$1:
15312
+ case uint8ClampedTag$1:
15313
+ case uint16Tag$1:
15314
+ case uint32Tag$1:
15315
+ return cloneTypedArray(object, isDeep);
15316
+ case mapTag$3:
15317
+ return new Ctor();
15318
+ case numberTag$2:
15319
+ case stringTag$2:
15320
+ return new Ctor(object);
15321
+ case regexpTag$2:
15322
+ return cloneRegExp(object);
15323
+ case setTag$3:
15324
+ return new Ctor();
15325
+ case symbolTag$4:
15326
+ return cloneSymbol(object);
15327
+ }
15328
+ }
15329
+ var _initCloneByTag = initCloneByTag$1;
15330
+ var isObject$h = isObject_1;
15331
+ var objectCreate$1 = Object.create;
15332
+ var baseCreate$1 = function() {
15333
+ function object() {
15334
+ }
15335
+ return function(proto) {
15336
+ if (!isObject$h(proto)) {
15337
+ return {};
15338
+ }
15339
+ if (objectCreate$1) {
15340
+ return objectCreate$1(proto);
15341
+ }
15342
+ object.prototype = proto;
15343
+ var result = new object();
15344
+ object.prototype = void 0;
15345
+ return result;
15346
+ };
15347
+ }();
15348
+ var _baseCreate = baseCreate$1;
15349
+ var baseCreate = _baseCreate, getPrototype = _getPrototype, isPrototype = _isPrototype;
15350
+ function initCloneObject$1(object) {
15351
+ return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate(getPrototype(object)) : {};
15352
+ }
15353
+ var _initCloneObject = initCloneObject$1;
15354
+ var getTag$3 = _getTag, isObjectLike$4 = isObjectLike_1;
15355
+ var mapTag$2 = "[object Map]";
15356
+ function baseIsMap$1(value) {
15357
+ return isObjectLike$4(value) && getTag$3(value) == mapTag$2;
15358
+ }
15359
+ var _baseIsMap = baseIsMap$1;
15360
+ var baseIsMap = _baseIsMap, baseUnary$1 = _baseUnary, nodeUtil$1 = _nodeUtil.exports;
15361
+ var nodeIsMap = nodeUtil$1 && nodeUtil$1.isMap;
15362
+ var isMap$1 = nodeIsMap ? baseUnary$1(nodeIsMap) : baseIsMap;
15363
+ var isMap_1 = isMap$1;
15364
+ var getTag$2 = _getTag, isObjectLike$3 = isObjectLike_1;
15365
+ var setTag$2 = "[object Set]";
15366
+ function baseIsSet$1(value) {
15367
+ return isObjectLike$3(value) && getTag$2(value) == setTag$2;
15368
+ }
15369
+ var _baseIsSet = baseIsSet$1;
15370
+ var baseIsSet = _baseIsSet, baseUnary = _baseUnary, nodeUtil = _nodeUtil.exports;
15371
+ var nodeIsSet = nodeUtil && nodeUtil.isSet;
15372
+ var isSet$1 = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
15373
+ var isSet_1 = isSet$1;
15374
+ var Stack$1 = _Stack, arrayEach = _arrayEach, assignValue = _assignValue, baseAssign = _baseAssign, baseAssignIn = _baseAssignIn, cloneBuffer = _cloneBuffer.exports, copyArray = _copyArray, copySymbols = _copySymbols, copySymbolsIn = _copySymbolsIn, getAllKeys$1 = _getAllKeys, getAllKeysIn = _getAllKeysIn, getTag$1 = _getTag, initCloneArray = _initCloneArray, initCloneByTag = _initCloneByTag, initCloneObject = _initCloneObject, isArray$3 = isArray_1, isBuffer$1 = isBuffer$3.exports, isMap = isMap_1, isObject$g = isObject_1, isSet = isSet_1, keys$1 = keys_1, keysIn = keysIn_1;
15375
+ var CLONE_DEEP_FLAG$1 = 1, CLONE_FLAT_FLAG = 2, CLONE_SYMBOLS_FLAG$1 = 4;
15376
+ var argsTag$1 = "[object Arguments]", arrayTag$1 = "[object Array]", boolTag$1 = "[object Boolean]", dateTag$1 = "[object Date]", errorTag$1 = "[object Error]", funcTag$1 = "[object Function]", genTag$1 = "[object GeneratorFunction]", mapTag$1 = "[object Map]", numberTag$1 = "[object Number]", objectTag$1 = "[object Object]", regexpTag$1 = "[object RegExp]", setTag$1 = "[object Set]", stringTag$1 = "[object String]", symbolTag$3 = "[object Symbol]", weakMapTag = "[object WeakMap]";
15377
+ var arrayBufferTag$1 = "[object ArrayBuffer]", dataViewTag$1 = "[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]";
15378
+ var cloneableTags = {};
15379
+ cloneableTags[argsTag$1] = cloneableTags[arrayTag$1] = cloneableTags[arrayBufferTag$1] = cloneableTags[dataViewTag$1] = cloneableTags[boolTag$1] = cloneableTags[dateTag$1] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag$1] = cloneableTags[numberTag$1] = cloneableTags[objectTag$1] = cloneableTags[regexpTag$1] = cloneableTags[setTag$1] = cloneableTags[stringTag$1] = cloneableTags[symbolTag$3] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
15380
+ cloneableTags[errorTag$1] = cloneableTags[funcTag$1] = cloneableTags[weakMapTag] = false;
15381
+ function baseClone$1(value, bitmask, customizer, key, object, stack) {
15382
+ var result, isDeep = bitmask & CLONE_DEEP_FLAG$1, isFlat = bitmask & CLONE_FLAT_FLAG, isFull = bitmask & CLONE_SYMBOLS_FLAG$1;
15383
+ if (customizer) {
15384
+ result = object ? customizer(value, key, object, stack) : customizer(value);
15385
+ }
15386
+ if (result !== void 0) {
15387
+ return result;
15388
+ }
15389
+ if (!isObject$g(value)) {
15390
+ return value;
15391
+ }
15392
+ var isArr = isArray$3(value);
15393
+ if (isArr) {
15394
+ result = initCloneArray(value);
15395
+ if (!isDeep) {
15396
+ return copyArray(value, result);
15397
+ }
15398
+ } else {
15399
+ var tag = getTag$1(value), isFunc = tag == funcTag$1 || tag == genTag$1;
15400
+ if (isBuffer$1(value)) {
15401
+ return cloneBuffer(value, isDeep);
15402
+ }
15403
+ if (tag == objectTag$1 || tag == argsTag$1 || isFunc && !object) {
15404
+ result = isFlat || isFunc ? {} : initCloneObject(value);
15405
+ if (!isDeep) {
15406
+ return isFlat ? copySymbolsIn(value, baseAssignIn(result, value)) : copySymbols(value, baseAssign(result, value));
15407
+ }
15408
+ } else {
15409
+ if (!cloneableTags[tag]) {
15410
+ return object ? value : {};
15411
+ }
15412
+ result = initCloneByTag(value, tag, isDeep);
15413
+ }
15414
+ }
15415
+ stack || (stack = new Stack$1());
15416
+ var stacked = stack.get(value);
15417
+ if (stacked) {
15418
+ return stacked;
15419
+ }
15420
+ stack.set(value, result);
15421
+ if (isSet(value)) {
15422
+ value.forEach(function(subValue) {
15423
+ result.add(baseClone$1(subValue, bitmask, customizer, subValue, value, stack));
15424
+ });
15425
+ } else if (isMap(value)) {
15426
+ value.forEach(function(subValue, key2) {
15427
+ result.set(key2, baseClone$1(subValue, bitmask, customizer, key2, value, stack));
15428
+ });
15429
+ }
15430
+ var keysFunc = isFull ? isFlat ? getAllKeysIn : getAllKeys$1 : isFlat ? keysIn : keys$1;
15431
+ var props = isArr ? void 0 : keysFunc(value);
15432
+ arrayEach(props || value, function(subValue, key2) {
15433
+ if (props) {
15434
+ key2 = subValue;
15435
+ subValue = value[key2];
15436
+ }
15437
+ assignValue(result, key2, baseClone$1(subValue, bitmask, customizer, key2, value, stack));
15438
+ });
15439
+ return result;
15440
+ }
15441
+ var _baseClone = baseClone$1;
15442
+ var baseClone = _baseClone;
15443
+ var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4;
15444
+ function cloneDeep(value) {
15445
+ return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
15446
+ }
15447
+ var cloneDeep_1 = cloneDeep;
15448
+ function copyMark(mark) {
15449
+ return mark.type.create(cloneDeep_1(mark.attrs));
15450
+ }
14482
15451
  var render$D = function __render__6() {
14483
15452
  var _vm = this;
14484
15453
  var _h = _vm.$createElement;
@@ -14556,7 +15525,6 @@ function __vue2_injectStyles$D(context) {
14556
15525
  const Icon = /* @__PURE__ */ function() {
14557
15526
  return __component__$D.exports;
14558
15527
  }();
14559
- var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
14560
15528
  var check = function(it) {
14561
15529
  return it && it.Math == Math && it;
14562
15530
  };
@@ -14627,9 +15595,9 @@ var toObject$6 = function(argument) {
14627
15595
  };
14628
15596
  var uncurryThis$p = functionUncurryThis;
14629
15597
  var toObject$5 = toObject$6;
14630
- var hasOwnProperty$a = uncurryThis$p({}.hasOwnProperty);
15598
+ var hasOwnProperty$3 = uncurryThis$p({}.hasOwnProperty);
14631
15599
  var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
14632
- return hasOwnProperty$a(toObject$5(it), key);
15600
+ return hasOwnProperty$3(toObject$5(it), key);
14633
15601
  };
14634
15602
  var uncurryThis$o = functionUncurryThis;
14635
15603
  var id$2 = 0;
@@ -14686,14 +15654,14 @@ var uid$2 = uid$3;
14686
15654
  var NATIVE_SYMBOL = nativeSymbol;
14687
15655
  var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
14688
15656
  var WellKnownSymbolsStore = shared$3("wks");
14689
- var Symbol$6 = global$f.Symbol;
14690
- var symbolFor = Symbol$6 && Symbol$6["for"];
14691
- var createWellKnownSymbol = USE_SYMBOL_AS_UID$1 ? Symbol$6 : Symbol$6 && Symbol$6.withoutSetter || uid$2;
15657
+ var Symbol$3 = global$f.Symbol;
15658
+ var symbolFor = Symbol$3 && Symbol$3["for"];
15659
+ var createWellKnownSymbol = USE_SYMBOL_AS_UID$1 ? Symbol$3 : Symbol$3 && Symbol$3.withoutSetter || uid$2;
14692
15660
  var wellKnownSymbol$f = function(name) {
14693
15661
  if (!hasOwn$a(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == "string")) {
14694
15662
  var description = "Symbol." + name;
14695
- if (NATIVE_SYMBOL && hasOwn$a(Symbol$6, name)) {
14696
- WellKnownSymbolsStore[name] = Symbol$6[name];
15663
+ if (NATIVE_SYMBOL && hasOwn$a(Symbol$3, name)) {
15664
+ WellKnownSymbolsStore[name] = Symbol$3[name];
14697
15665
  } else if (USE_SYMBOL_AS_UID$1 && symbolFor) {
14698
15666
  WellKnownSymbolsStore[name] = symbolFor(description);
14699
15667
  } else {
@@ -14715,13 +15683,13 @@ var descriptors = !fails$l(function() {
14715
15683
  } })[1] != 7;
14716
15684
  });
14717
15685
  var isCallable$i = isCallable$k;
14718
- var isObject$i = function(it) {
15686
+ var isObject$f = function(it) {
14719
15687
  return typeof it == "object" ? it !== null : isCallable$i(it);
14720
15688
  };
14721
15689
  var global$e = global$k;
14722
- var isObject$h = isObject$i;
15690
+ var isObject$e = isObject$f;
14723
15691
  var document$1 = global$e.document;
14724
- var EXISTS$1 = isObject$h(document$1) && isObject$h(document$1.createElement);
15692
+ var EXISTS$1 = isObject$e(document$1) && isObject$e(document$1.createElement);
14725
15693
  var documentCreateElement$2 = function(it) {
14726
15694
  return EXISTS$1 ? document$1.createElement(it) : {};
14727
15695
  };
@@ -14744,11 +15712,11 @@ var v8PrototypeDefineBug = DESCRIPTORS$9 && fails$j(function() {
14744
15712
  writable: false
14745
15713
  }).prototype != 42;
14746
15714
  });
14747
- var isObject$g = isObject$i;
15715
+ var isObject$d = isObject$f;
14748
15716
  var $String$3 = String;
14749
15717
  var $TypeError$a = TypeError;
14750
15718
  var anObject$d = function(argument) {
14751
- if (isObject$g(argument))
15719
+ if (isObject$d(argument))
14752
15720
  return argument;
14753
15721
  throw $TypeError$a($String$3(argument) + " is not an object");
14754
15722
  };
@@ -14793,20 +15761,20 @@ var getMethod$5 = function(V, P) {
14793
15761
  };
14794
15762
  var call$c = functionCall;
14795
15763
  var isCallable$f = isCallable$k;
14796
- var isObject$f = isObject$i;
15764
+ var isObject$c = isObject$f;
14797
15765
  var $TypeError$8 = TypeError;
14798
15766
  var ordinaryToPrimitive$1 = function(input, pref) {
14799
15767
  var fn2, val;
14800
- if (pref === "string" && isCallable$f(fn2 = input.toString) && !isObject$f(val = call$c(fn2, input)))
15768
+ if (pref === "string" && isCallable$f(fn2 = input.toString) && !isObject$c(val = call$c(fn2, input)))
14801
15769
  return val;
14802
- if (isCallable$f(fn2 = input.valueOf) && !isObject$f(val = call$c(fn2, input)))
15770
+ if (isCallable$f(fn2 = input.valueOf) && !isObject$c(val = call$c(fn2, input)))
14803
15771
  return val;
14804
- if (pref !== "string" && isCallable$f(fn2 = input.toString) && !isObject$f(val = call$c(fn2, input)))
15772
+ if (pref !== "string" && isCallable$f(fn2 = input.toString) && !isObject$c(val = call$c(fn2, input)))
14805
15773
  return val;
14806
15774
  throw $TypeError$8("Can't convert object to primitive value");
14807
15775
  };
14808
15776
  var call$b = functionCall;
14809
- var isObject$e = isObject$i;
15777
+ var isObject$b = isObject$f;
14810
15778
  var isSymbol$3 = isSymbol$4;
14811
15779
  var getMethod$4 = getMethod$5;
14812
15780
  var ordinaryToPrimitive = ordinaryToPrimitive$1;
@@ -14814,7 +15782,7 @@ var wellKnownSymbol$d = wellKnownSymbol$f;
14814
15782
  var $TypeError$7 = TypeError;
14815
15783
  var TO_PRIMITIVE = wellKnownSymbol$d("toPrimitive");
14816
15784
  var toPrimitive$1 = function(input, pref) {
14817
- if (!isObject$e(input) || isSymbol$3(input))
15785
+ if (!isObject$b(input) || isSymbol$3(input))
14818
15786
  return input;
14819
15787
  var exoticToPrim = getMethod$4(input, TO_PRIMITIVE);
14820
15788
  var result;
@@ -14822,7 +15790,7 @@ var toPrimitive$1 = function(input, pref) {
14822
15790
  if (pref === void 0)
14823
15791
  pref = "default";
14824
15792
  result = call$b(exoticToPrim, input, pref);
14825
- if (!isObject$e(result) || isSymbol$3(result))
15793
+ if (!isObject$b(result) || isSymbol$3(result))
14826
15794
  return result;
14827
15795
  throw $TypeError$7("Can't convert object to primitive value");
14828
15796
  }
@@ -14905,8 +15873,8 @@ var inspectSource$3 = store$1.inspectSource;
14905
15873
  var global$d = global$k;
14906
15874
  var isCallable$d = isCallable$k;
14907
15875
  var inspectSource$2 = inspectSource$3;
14908
- var WeakMap$4 = global$d.WeakMap;
14909
- var nativeWeakMap = isCallable$d(WeakMap$4) && /native code/.test(inspectSource$2(WeakMap$4));
15876
+ var WeakMap$2 = global$d.WeakMap;
15877
+ var nativeWeakMap = isCallable$d(WeakMap$2) && /native code/.test(inspectSource$2(WeakMap$2));
14910
15878
  var createPropertyDescriptor$4 = function(bitmap, value) {
14911
15879
  return {
14912
15880
  enumerable: !(bitmap & 1),
@@ -14926,15 +15894,15 @@ var createNonEnumerableProperty$6 = DESCRIPTORS$6 ? function(object, key, value)
14926
15894
  };
14927
15895
  var shared$2 = shared$4.exports;
14928
15896
  var uid$1 = uid$3;
14929
- var keys$2 = shared$2("keys");
15897
+ var keys = shared$2("keys");
14930
15898
  var sharedKey$3 = function(key) {
14931
- return keys$2[key] || (keys$2[key] = uid$1(key));
15899
+ return keys[key] || (keys[key] = uid$1(key));
14932
15900
  };
14933
15901
  var hiddenKeys$5 = {};
14934
15902
  var NATIVE_WEAK_MAP$1 = nativeWeakMap;
14935
15903
  var global$c = global$k;
14936
15904
  var uncurryThis$l = functionUncurryThis;
14937
- var isObject$d = isObject$i;
15905
+ var isObject$a = isObject$f;
14938
15906
  var createNonEnumerableProperty$5 = createNonEnumerableProperty$6;
14939
15907
  var hasOwn$8 = hasOwnProperty_1;
14940
15908
  var shared$1 = sharedStore;
@@ -14942,7 +15910,7 @@ var sharedKey$2 = sharedKey$3;
14942
15910
  var hiddenKeys$4 = hiddenKeys$5;
14943
15911
  var OBJECT_ALREADY_INITIALIZED = "Object already initialized";
14944
15912
  var TypeError$1 = global$c.TypeError;
14945
- var WeakMap$3 = global$c.WeakMap;
15913
+ var WeakMap$1 = global$c.WeakMap;
14946
15914
  var set, get, has;
14947
15915
  var enforce = function(it) {
14948
15916
  return has(it) ? get(it) : set(it, {});
@@ -14950,14 +15918,14 @@ var enforce = function(it) {
14950
15918
  var getterFor = function(TYPE) {
14951
15919
  return function(it) {
14952
15920
  var state;
14953
- if (!isObject$d(it) || (state = get(it)).type !== TYPE) {
15921
+ if (!isObject$a(it) || (state = get(it)).type !== TYPE) {
14954
15922
  throw TypeError$1("Incompatible receiver, " + TYPE + " required");
14955
15923
  }
14956
15924
  return state;
14957
15925
  };
14958
15926
  };
14959
15927
  if (NATIVE_WEAK_MAP$1 || shared$1.state) {
14960
- var store = shared$1.state || (shared$1.state = new WeakMap$3());
15928
+ var store = shared$1.state || (shared$1.state = new WeakMap$1());
14961
15929
  var wmget = uncurryThis$l(store.get);
14962
15930
  var wmhas = uncurryThis$l(store.has);
14963
15931
  var wmset = uncurryThis$l(store.set);
@@ -15110,12 +16078,12 @@ var classof$a = TO_STRING_TAG_SUPPORT$2 ? classofRaw : function(it) {
15110
16078
  };
15111
16079
  var TO_STRING_TAG_SUPPORT$1 = toStringTagSupport;
15112
16080
  var classof$9 = classof$a;
15113
- var objectToString$5 = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString2() {
16081
+ var objectToString$3 = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString2() {
15114
16082
  return "[object " + classof$9(this) + "]";
15115
16083
  };
15116
16084
  var TO_STRING_TAG_SUPPORT = toStringTagSupport;
15117
16085
  var defineBuiltIn$6 = defineBuiltIn$7;
15118
- var toString$8 = objectToString$5;
16086
+ var toString$8 = objectToString$3;
15119
16087
  if (!TO_STRING_TAG_SUPPORT) {
15120
16088
  defineBuiltIn$6(Object.prototype, "toString", toString$8, { unsafe: true });
15121
16089
  }
@@ -15197,7 +16165,7 @@ var lengthOfArrayLike$5 = function(obj) {
15197
16165
  return toLength$2(obj.length);
15198
16166
  };
15199
16167
  var classof$7 = classofRaw$1;
15200
- var isArray$5 = Array.isArray || function isArray(argument) {
16168
+ var isArray$2 = Array.isArray || function isArray(argument) {
15201
16169
  return classof$7(argument) == "Array";
15202
16170
  };
15203
16171
  var uncurryThis$h = functionUncurryThis;
@@ -15245,19 +16213,19 @@ var isConstructor$1 = !construct || fails$g(function() {
15245
16213
  called = true;
15246
16214
  }) || called;
15247
16215
  }) ? isConstructorLegacy : isConstructorModern;
15248
- var isArray$4 = isArray$5;
16216
+ var isArray$1 = isArray$2;
15249
16217
  var isConstructor3 = isConstructor$1;
15250
- var isObject$c = isObject$i;
16218
+ var isObject$9 = isObject$f;
15251
16219
  var wellKnownSymbol$b = wellKnownSymbol$f;
15252
16220
  var SPECIES$2 = wellKnownSymbol$b("species");
15253
16221
  var $Array$1 = Array;
15254
16222
  var arraySpeciesConstructor$1 = function(originalArray) {
15255
16223
  var C;
15256
- if (isArray$4(originalArray)) {
16224
+ if (isArray$1(originalArray)) {
15257
16225
  C = originalArray.constructor;
15258
- if (isConstructor3(C) && (C === $Array$1 || isArray$4(C.prototype)))
16226
+ if (isConstructor3(C) && (C === $Array$1 || isArray$1(C.prototype)))
15259
16227
  C = void 0;
15260
- else if (isObject$c(C)) {
16228
+ else if (isObject$9(C)) {
15261
16229
  C = C[SPECIES$2];
15262
16230
  if (C === null)
15263
16231
  C = void 0;
@@ -15374,7 +16342,7 @@ var objectPropertyIsEnumerable = {};
15374
16342
  var $propertyIsEnumerable = {}.propertyIsEnumerable;
15375
16343
  var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
15376
16344
  var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
15377
- objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
16345
+ objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable2(V) {
15378
16346
  var descriptor = getOwnPropertyDescriptor$1(this, V);
15379
16347
  return !!descriptor && descriptor.enumerable;
15380
16348
  } : $propertyIsEnumerable;
@@ -15591,8 +16559,8 @@ var toString$5 = toString$7;
15591
16559
  var trim = stringTrim.trim;
15592
16560
  var whitespaces = whitespaces$2;
15593
16561
  var $parseInt$1 = global$9.parseInt;
15594
- var Symbol$5 = global$9.Symbol;
15595
- var ITERATOR$6 = Symbol$5 && Symbol$5.iterator;
16562
+ var Symbol$2 = global$9.Symbol;
16563
+ var ITERATOR$6 = Symbol$2 && Symbol$2.iterator;
15596
16564
  var hex = /^[+-]?0x/i;
15597
16565
  var exec$1 = uncurryThis$c(hex.exec);
15598
16566
  var FORCED = $parseInt$1(whitespaces + "08") !== 8 || $parseInt$1(whitespaces + "0x16") !== 22 || ITERATOR$6 && !fails$d(function() {
@@ -15609,7 +16577,7 @@ $$7({ global: true, forced: parseInt != $parseInt }, {
15609
16577
  });
15610
16578
  var internalObjectKeys = objectKeysInternal;
15611
16579
  var enumBugKeys$1 = enumBugKeys$3;
15612
- var objectKeys$2 = Object.keys || function keys(O) {
16580
+ var objectKeys$2 = Object.keys || function keys2(O) {
15613
16581
  return internalObjectKeys(O, enumBugKeys$1);
15614
16582
  };
15615
16583
  var DESCRIPTORS$3 = descriptors;
@@ -16148,7 +17116,7 @@ var arrayBufferNonExtensible = fails$8(function() {
16148
17116
  }
16149
17117
  });
16150
17118
  var fails$7 = fails$o;
16151
- var isObject$b = isObject$i;
17119
+ var isObject$8 = isObject$f;
16152
17120
  var classof$3 = classofRaw$1;
16153
17121
  var ARRAY_BUFFER_NON_EXTENSIBLE = arrayBufferNonExtensible;
16154
17122
  var $isExtensible = Object.isExtensible;
@@ -16156,7 +17124,7 @@ var FAILS_ON_PRIMITIVES = fails$7(function() {
16156
17124
  $isExtensible(1);
16157
17125
  });
16158
17126
  var objectIsExtensible = FAILS_ON_PRIMITIVES || ARRAY_BUFFER_NON_EXTENSIBLE ? function isExtensible(it) {
16159
- if (!isObject$b(it))
17127
+ if (!isObject$8(it))
16160
17128
  return false;
16161
17129
  if (ARRAY_BUFFER_NON_EXTENSIBLE && classof$3(it) == "ArrayBuffer")
16162
17130
  return false;
@@ -16169,7 +17137,7 @@ var freezing = !fails$6(function() {
16169
17137
  var $$3 = _export;
16170
17138
  var uncurryThis$8 = functionUncurryThis;
16171
17139
  var hiddenKeys = hiddenKeys$5;
16172
- var isObject$a = isObject$i;
17140
+ var isObject$7 = isObject$f;
16173
17141
  var hasOwn$1 = hasOwnProperty_1;
16174
17142
  var defineProperty$1 = objectDefineProperty.f;
16175
17143
  var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
@@ -16187,7 +17155,7 @@ var setMetadata = function(it) {
16187
17155
  } });
16188
17156
  };
16189
17157
  var fastKey = function(it, create3) {
16190
- if (!isObject$a(it))
17158
+ if (!isObject$7(it))
16191
17159
  return typeof it == "symbol" ? it : (typeof it == "string" ? "S" : "P") + it;
16192
17160
  if (!hasOwn$1(it, METADATA)) {
16193
17161
  if (!isExtensible$1(it))
@@ -16407,11 +17375,11 @@ var checkCorrectnessOfIteration$1 = function(exec2, SKIP_CLOSING) {
16407
17375
  return ITERATION_SUPPORT;
16408
17376
  };
16409
17377
  var isCallable$3 = isCallable$k;
16410
- var isObject$9 = isObject$i;
17378
+ var isObject$6 = isObject$f;
16411
17379
  var setPrototypeOf = objectSetPrototypeOf;
16412
17380
  var inheritIfRequired$1 = function($this, dummy, Wrapper) {
16413
17381
  var NewTarget, NewTargetPrototype;
16414
- if (setPrototypeOf && isCallable$3(NewTarget = dummy.constructor) && NewTarget !== Wrapper && isObject$9(NewTargetPrototype = NewTarget.prototype) && NewTargetPrototype !== Wrapper.prototype)
17382
+ if (setPrototypeOf && isCallable$3(NewTarget = dummy.constructor) && NewTarget !== Wrapper && isObject$6(NewTargetPrototype = NewTarget.prototype) && NewTargetPrototype !== Wrapper.prototype)
16415
17383
  setPrototypeOf($this, NewTargetPrototype);
16416
17384
  return $this;
16417
17385
  };
@@ -16424,7 +17392,7 @@ var InternalMetadataModule$1 = internalMetadata.exports;
16424
17392
  var iterate$1 = iterate$2;
16425
17393
  var anInstance$1 = anInstance$2;
16426
17394
  var isCallable$2 = isCallable$k;
16427
- var isObject$8 = isObject$i;
17395
+ var isObject$5 = isObject$f;
16428
17396
  var fails$5 = fails$o;
16429
17397
  var checkCorrectnessOfIteration = checkCorrectnessOfIteration$1;
16430
17398
  var setToStringTag = setToStringTag$3;
@@ -16446,11 +17414,11 @@ var collection$1 = function(CONSTRUCTOR_NAME, wrapper2, common) {
16446
17414
  uncurriedNativeMethod(this, value === 0 ? 0 : value);
16447
17415
  return this;
16448
17416
  } : KEY == "delete" ? function(key) {
16449
- return IS_WEAK && !isObject$8(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key);
17417
+ return IS_WEAK && !isObject$5(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key);
16450
17418
  } : KEY == "get" ? function get4(key) {
16451
- return IS_WEAK && !isObject$8(key) ? void 0 : uncurriedNativeMethod(this, key === 0 ? 0 : key);
17419
+ return IS_WEAK && !isObject$5(key) ? void 0 : uncurriedNativeMethod(this, key === 0 ? 0 : key);
16452
17420
  } : KEY == "has" ? function has2(key) {
16453
- return IS_WEAK && !isObject$8(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key);
17421
+ return IS_WEAK && !isObject$5(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key);
16454
17422
  } : function set2(key, value) {
16455
17423
  uncurriedNativeMethod(this, key === 0 ? 0 : key, value);
16456
17424
  return this;
@@ -16514,7 +17482,7 @@ var uncurryThis$6 = functionUncurryThis;
16514
17482
  var defineBuiltIns$1 = defineBuiltIns$2;
16515
17483
  var getWeakData = internalMetadata.exports.getWeakData;
16516
17484
  var anObject$4 = anObject$d;
16517
- var isObject$7 = isObject$i;
17485
+ var isObject$4 = isObject$f;
16518
17486
  var anInstance = anInstance$2;
16519
17487
  var iterate = iterate$2;
16520
17488
  var ArrayIterationModule = arrayIteration;
@@ -16524,7 +17492,7 @@ var setInternalState = InternalStateModule.set;
16524
17492
  var internalStateGetterFor = InternalStateModule.getterFor;
16525
17493
  var find$1 = ArrayIterationModule.find;
16526
17494
  var findIndex = ArrayIterationModule.findIndex;
16527
- var splice$2 = uncurryThis$6([].splice);
17495
+ var splice$1 = uncurryThis$6([].splice);
16528
17496
  var id = 0;
16529
17497
  var uncaughtFrozenStore = function(store) {
16530
17498
  return store.frozen || (store.frozen = new UncaughtFrozenStore());
@@ -16558,7 +17526,7 @@ UncaughtFrozenStore.prototype = {
16558
17526
  return it[0] === key;
16559
17527
  });
16560
17528
  if (~index)
16561
- splice$2(this.entries, index, 1);
17529
+ splice$1(this.entries, index, 1);
16562
17530
  return !!~index;
16563
17531
  }
16564
17532
  };
@@ -16588,7 +17556,7 @@ var collectionWeak$1 = {
16588
17556
  defineBuiltIns$1(Prototype, {
16589
17557
  "delete": function(key) {
16590
17558
  var state = getInternalState2(this);
16591
- if (!isObject$7(key))
17559
+ if (!isObject$4(key))
16592
17560
  return false;
16593
17561
  var data2 = getWeakData(key);
16594
17562
  if (data2 === true)
@@ -16597,7 +17565,7 @@ var collectionWeak$1 = {
16597
17565
  },
16598
17566
  has: function has2(key) {
16599
17567
  var state = getInternalState2(this);
16600
- if (!isObject$7(key))
17568
+ if (!isObject$4(key))
16601
17569
  return false;
16602
17570
  var data2 = getWeakData(key);
16603
17571
  if (data2 === true)
@@ -16608,7 +17576,7 @@ var collectionWeak$1 = {
16608
17576
  defineBuiltIns$1(Prototype, IS_MAP ? {
16609
17577
  get: function get4(key) {
16610
17578
  var state = getInternalState2(this);
16611
- if (isObject$7(key)) {
17579
+ if (isObject$4(key)) {
16612
17580
  var data2 = getWeakData(key);
16613
17581
  if (data2 === true)
16614
17582
  return uncaughtFrozenStore(state).get(key);
@@ -16632,7 +17600,7 @@ var defineBuiltIns = defineBuiltIns$2;
16632
17600
  var InternalMetadataModule = internalMetadata.exports;
16633
17601
  var collection = collection$1;
16634
17602
  var collectionWeak = collectionWeak$1;
16635
- var isObject$6 = isObject$i;
17603
+ var isObject$3 = isObject$f;
16636
17604
  var isExtensible2 = objectIsExtensible;
16637
17605
  var enforceInternalState = internalState.enforce;
16638
17606
  var NATIVE_WEAK_MAP = nativeWeakMap;
@@ -16654,7 +17622,7 @@ if (NATIVE_WEAK_MAP && IS_IE11) {
16654
17622
  var nativeSet = uncurryThis$5(WeakMapPrototype.set);
16655
17623
  defineBuiltIns(WeakMapPrototype, {
16656
17624
  "delete": function(key) {
16657
- if (isObject$6(key) && !isExtensible2(key)) {
17625
+ if (isObject$3(key) && !isExtensible2(key)) {
16658
17626
  var state = enforceInternalState(this);
16659
17627
  if (!state.frozen)
16660
17628
  state.frozen = new InternalWeakMap();
@@ -16663,7 +17631,7 @@ if (NATIVE_WEAK_MAP && IS_IE11) {
16663
17631
  return nativeDelete(this, key);
16664
17632
  },
16665
17633
  has: function has2(key) {
16666
- if (isObject$6(key) && !isExtensible2(key)) {
17634
+ if (isObject$3(key) && !isExtensible2(key)) {
16667
17635
  var state = enforceInternalState(this);
16668
17636
  if (!state.frozen)
16669
17637
  state.frozen = new InternalWeakMap();
@@ -16672,7 +17640,7 @@ if (NATIVE_WEAK_MAP && IS_IE11) {
16672
17640
  return nativeHas(this, key);
16673
17641
  },
16674
17642
  get: function get4(key) {
16675
- if (isObject$6(key) && !isExtensible2(key)) {
17643
+ if (isObject$3(key) && !isExtensible2(key)) {
16676
17644
  var state = enforceInternalState(this);
16677
17645
  if (!state.frozen)
16678
17646
  state.frozen = new InternalWeakMap();
@@ -16681,7 +17649,7 @@ if (NATIVE_WEAK_MAP && IS_IE11) {
16681
17649
  return nativeGet(this, key);
16682
17650
  },
16683
17651
  set: function set2(key, value) {
16684
- if (isObject$6(key) && !isExtensible2(key)) {
17652
+ if (isObject$3(key) && !isExtensible2(key)) {
16685
17653
  var state = enforceInternalState(this);
16686
17654
  if (!state.frozen)
16687
17655
  state.frozen = new InternalWeakMap();
@@ -16735,14 +17703,14 @@ var reIsBadHex$1 = /^[-+]0x[0-9a-f]+$/i;
16735
17703
  var reIsBinary$1 = /^0b[01]+$/i;
16736
17704
  var reIsOctal$1 = /^0o[0-7]+$/i;
16737
17705
  var freeParseInt$1 = parseInt;
16738
- var freeGlobal$4 = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
16739
- var freeSelf$3 = typeof self == "object" && self && self.Object === Object && self;
16740
- var root$b = freeGlobal$4 || freeSelf$3 || Function("return this")();
16741
- var objectProto$e = Object.prototype;
16742
- var objectToString$4 = objectProto$e.toString;
17706
+ var freeGlobal$2 = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
17707
+ var freeSelf$2 = typeof self == "object" && self && self.Object === Object && self;
17708
+ var root$2 = freeGlobal$2 || freeSelf$2 || Function("return this")();
17709
+ var objectProto$4 = Object.prototype;
17710
+ var objectToString$2 = objectProto$4.toString;
16743
17711
  var nativeMax$1 = Math.max, nativeMin$1 = Math.min;
16744
17712
  var now$1 = function() {
16745
- return root$b.Date.now();
17713
+ return root$2.Date.now();
16746
17714
  };
16747
17715
  function debounce$1(func, wait, options) {
16748
17716
  var lastArgs, lastThis, maxWait, result, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true;
@@ -16750,7 +17718,7 @@ function debounce$1(func, wait, options) {
16750
17718
  throw new TypeError(FUNC_ERROR_TEXT$2);
16751
17719
  }
16752
17720
  wait = toNumber$1(wait) || 0;
16753
- if (isObject$5(options)) {
17721
+ if (isObject$2(options)) {
16754
17722
  leading = !!options.leading;
16755
17723
  maxing = "maxWait" in options;
16756
17724
  maxWait = maxing ? nativeMax$1(toNumber$1(options.maxWait) || 0, wait) : maxWait;
@@ -16829,7 +17797,7 @@ function throttle(func, wait, options) {
16829
17797
  if (typeof func != "function") {
16830
17798
  throw new TypeError(FUNC_ERROR_TEXT$2);
16831
17799
  }
16832
- if (isObject$5(options)) {
17800
+ if (isObject$2(options)) {
16833
17801
  leading = "leading" in options ? !!options.leading : leading;
16834
17802
  trailing = "trailing" in options ? !!options.trailing : trailing;
16835
17803
  }
@@ -16839,15 +17807,15 @@ function throttle(func, wait, options) {
16839
17807
  "trailing": trailing
16840
17808
  });
16841
17809
  }
16842
- function isObject$5(value) {
17810
+ function isObject$2(value) {
16843
17811
  var type = typeof value;
16844
17812
  return !!value && (type == "object" || type == "function");
16845
17813
  }
16846
- function isObjectLike$6(value) {
17814
+ function isObjectLike$2(value) {
16847
17815
  return !!value && typeof value == "object";
16848
17816
  }
16849
17817
  function isSymbol$1(value) {
16850
- return typeof value == "symbol" || isObjectLike$6(value) && objectToString$4.call(value) == symbolTag$2;
17818
+ return typeof value == "symbol" || isObjectLike$2(value) && objectToString$2.call(value) == symbolTag$2;
16851
17819
  }
16852
17820
  function toNumber$1(value) {
16853
17821
  if (typeof value == "number") {
@@ -16856,9 +17824,9 @@ function toNumber$1(value) {
16856
17824
  if (isSymbol$1(value)) {
16857
17825
  return NAN$1;
16858
17826
  }
16859
- if (isObject$5(value)) {
17827
+ if (isObject$2(value)) {
16860
17828
  var other = typeof value.valueOf == "function" ? value.valueOf() : value;
16861
- value = isObject$5(other) ? other + "" : other;
17829
+ value = isObject$2(other) ? other + "" : other;
16862
17830
  }
16863
17831
  if (typeof value != "string") {
16864
17832
  return value === 0 ? value : +value;
@@ -16876,14 +17844,14 @@ var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
16876
17844
  var reIsBinary = /^0b[01]+$/i;
16877
17845
  var reIsOctal = /^0o[0-7]+$/i;
16878
17846
  var freeParseInt = parseInt;
16879
- var freeGlobal$3 = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
16880
- var freeSelf$2 = typeof self == "object" && self && self.Object === Object && self;
16881
- var root$a = freeGlobal$3 || freeSelf$2 || Function("return this")();
16882
- var objectProto$d = Object.prototype;
16883
- var objectToString$3 = objectProto$d.toString;
17847
+ var freeGlobal$1 = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
17848
+ var freeSelf$1 = typeof self == "object" && self && self.Object === Object && self;
17849
+ var root$1 = freeGlobal$1 || freeSelf$1 || Function("return this")();
17850
+ var objectProto$3 = Object.prototype;
17851
+ var objectToString$1 = objectProto$3.toString;
16884
17852
  var nativeMax = Math.max, nativeMin = Math.min;
16885
17853
  var now = function() {
16886
- return root$a.Date.now();
17854
+ return root$1.Date.now();
16887
17855
  };
16888
17856
  function debounce(func, wait, options) {
16889
17857
  var lastArgs, lastThis, maxWait, result, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true;
@@ -16891,7 +17859,7 @@ function debounce(func, wait, options) {
16891
17859
  throw new TypeError(FUNC_ERROR_TEXT$1);
16892
17860
  }
16893
17861
  wait = toNumber(wait) || 0;
16894
- if (isObject$4(options)) {
17862
+ if (isObject$1(options)) {
16895
17863
  leading = !!options.leading;
16896
17864
  maxing = "maxWait" in options;
16897
17865
  maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
@@ -16965,15 +17933,15 @@ function debounce(func, wait, options) {
16965
17933
  debounced.flush = flush;
16966
17934
  return debounced;
16967
17935
  }
16968
- function isObject$4(value) {
17936
+ function isObject$1(value) {
16969
17937
  var type = typeof value;
16970
17938
  return !!value && (type == "object" || type == "function");
16971
17939
  }
16972
- function isObjectLike$5(value) {
17940
+ function isObjectLike$1(value) {
16973
17941
  return !!value && typeof value == "object";
16974
17942
  }
16975
17943
  function isSymbol(value) {
16976
- return typeof value == "symbol" || isObjectLike$5(value) && objectToString$3.call(value) == symbolTag$1;
17944
+ return typeof value == "symbol" || isObjectLike$1(value) && objectToString$1.call(value) == symbolTag$1;
16977
17945
  }
16978
17946
  function toNumber(value) {
16979
17947
  if (typeof value == "number") {
@@ -16982,9 +17950,9 @@ function toNumber(value) {
16982
17950
  if (isSymbol(value)) {
16983
17951
  return NAN;
16984
17952
  }
16985
- if (isObject$4(value)) {
17953
+ if (isObject$1(value)) {
16986
17954
  var other = typeof value.valueOf == "function" ? value.valueOf() : value;
16987
- value = isObject$4(other) ? other + "" : other;
17955
+ value = isObject$1(other) ? other + "" : other;
16988
17956
  }
16989
17957
  if (typeof value != "string") {
16990
17958
  return value === 0 ? value : +value;
@@ -16995,14 +17963,14 @@ function toNumber(value) {
16995
17963
  }
16996
17964
  var lodash_debounce = debounce;
16997
17965
  var FUNC_ERROR_TEXT = "Expected a function";
16998
- var HASH_UNDEFINED$3 = "__lodash_hash_undefined__";
16999
- var funcTag$2 = "[object Function]", genTag$1 = "[object GeneratorFunction]";
17000
- var reRegExpChar$1 = /[\\^$.*+?()[\]{}|]/g;
17001
- var reIsHostCtor$1 = /^\[object .+?Constructor\]$/;
17002
- var freeGlobal$2 = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
17003
- var freeSelf$1 = typeof self == "object" && self && self.Object === Object && self;
17004
- var root$9 = freeGlobal$2 || freeSelf$1 || Function("return this")();
17005
- function getValue$2(object, key) {
17966
+ var HASH_UNDEFINED$1 = "__lodash_hash_undefined__";
17967
+ var funcTag = "[object Function]", genTag = "[object GeneratorFunction]";
17968
+ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
17969
+ var reIsHostCtor = /^\[object .+?Constructor\]$/;
17970
+ var freeGlobal = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
17971
+ var freeSelf = typeof self == "object" && self && self.Object === Object && self;
17972
+ var root = freeGlobal || freeSelf || Function("return this")();
17973
+ function getValue(object, key) {
17006
17974
  return object == null ? void 0 : object[key];
17007
17975
  }
17008
17976
  function isHostObject(value) {
@@ -17015,21 +17983,21 @@ function isHostObject(value) {
17015
17983
  }
17016
17984
  return result;
17017
17985
  }
17018
- var arrayProto$1 = Array.prototype, funcProto$2 = Function.prototype, objectProto$c = Object.prototype;
17019
- var coreJsData$2 = root$9["__core-js_shared__"];
17020
- var maskSrcKey$1 = function() {
17021
- var uid2 = /[^.]+$/.exec(coreJsData$2 && coreJsData$2.keys && coreJsData$2.keys.IE_PROTO || "");
17986
+ var arrayProto = Array.prototype, funcProto = Function.prototype, objectProto$2 = Object.prototype;
17987
+ var coreJsData = root["__core-js_shared__"];
17988
+ var maskSrcKey = function() {
17989
+ var uid2 = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
17022
17990
  return uid2 ? "Symbol(src)_1." + uid2 : "";
17023
17991
  }();
17024
- var funcToString$2 = funcProto$2.toString;
17025
- var hasOwnProperty$9 = objectProto$c.hasOwnProperty;
17026
- var objectToString$2 = objectProto$c.toString;
17027
- var reIsNative$1 = RegExp(
17028
- "^" + funcToString$2.call(hasOwnProperty$9).replace(reRegExpChar$1, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
17992
+ var funcToString = funcProto.toString;
17993
+ var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
17994
+ var objectToString = objectProto$2.toString;
17995
+ var reIsNative = RegExp(
17996
+ "^" + funcToString.call(hasOwnProperty$2).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
17029
17997
  );
17030
- var splice$1 = arrayProto$1.splice;
17031
- var Map$5 = getNative$7(root$9, "Map"), nativeCreate$5 = getNative$7(Object, "create");
17032
- function Hash$2(entries) {
17998
+ var splice = arrayProto.splice;
17999
+ var Map$1 = getNative(root, "Map"), nativeCreate = getNative(Object, "create");
18000
+ function Hash(entries) {
17033
18001
  var index = -1, length = entries ? entries.length : 0;
17034
18002
  this.clear();
17035
18003
  while (++index < length) {
@@ -17037,35 +18005,35 @@ function Hash$2(entries) {
17037
18005
  this.set(entry[0], entry[1]);
17038
18006
  }
17039
18007
  }
17040
- function hashClear$2() {
17041
- this.__data__ = nativeCreate$5 ? nativeCreate$5(null) : {};
18008
+ function hashClear() {
18009
+ this.__data__ = nativeCreate ? nativeCreate(null) : {};
17042
18010
  }
17043
- function hashDelete$2(key) {
18011
+ function hashDelete(key) {
17044
18012
  return this.has(key) && delete this.__data__[key];
17045
18013
  }
17046
- function hashGet$2(key) {
18014
+ function hashGet(key) {
17047
18015
  var data2 = this.__data__;
17048
- if (nativeCreate$5) {
18016
+ if (nativeCreate) {
17049
18017
  var result = data2[key];
17050
- return result === HASH_UNDEFINED$3 ? void 0 : result;
18018
+ return result === HASH_UNDEFINED$1 ? void 0 : result;
17051
18019
  }
17052
- return hasOwnProperty$9.call(data2, key) ? data2[key] : void 0;
18020
+ return hasOwnProperty$2.call(data2, key) ? data2[key] : void 0;
17053
18021
  }
17054
- function hashHas$2(key) {
18022
+ function hashHas(key) {
17055
18023
  var data2 = this.__data__;
17056
- return nativeCreate$5 ? data2[key] !== void 0 : hasOwnProperty$9.call(data2, key);
18024
+ return nativeCreate ? data2[key] !== void 0 : hasOwnProperty$2.call(data2, key);
17057
18025
  }
17058
- function hashSet$2(key, value) {
18026
+ function hashSet(key, value) {
17059
18027
  var data2 = this.__data__;
17060
- data2[key] = nativeCreate$5 && value === void 0 ? HASH_UNDEFINED$3 : value;
18028
+ data2[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED$1 : value;
17061
18029
  return this;
17062
18030
  }
17063
- Hash$2.prototype.clear = hashClear$2;
17064
- Hash$2.prototype["delete"] = hashDelete$2;
17065
- Hash$2.prototype.get = hashGet$2;
17066
- Hash$2.prototype.has = hashHas$2;
17067
- Hash$2.prototype.set = hashSet$2;
17068
- function ListCache$5(entries) {
18031
+ Hash.prototype.clear = hashClear;
18032
+ Hash.prototype["delete"] = hashDelete;
18033
+ Hash.prototype.get = hashGet;
18034
+ Hash.prototype.has = hashHas;
18035
+ Hash.prototype.set = hashSet;
18036
+ function ListCache(entries) {
17069
18037
  var index = -1, length = entries ? entries.length : 0;
17070
18038
  this.clear();
17071
18039
  while (++index < length) {
@@ -17073,11 +18041,11 @@ function ListCache$5(entries) {
17073
18041
  this.set(entry[0], entry[1]);
17074
18042
  }
17075
18043
  }
17076
- function listCacheClear$2() {
18044
+ function listCacheClear() {
17077
18045
  this.__data__ = [];
17078
18046
  }
17079
- function listCacheDelete$2(key) {
17080
- var data2 = this.__data__, index = assocIndexOf$5(data2, key);
18047
+ function listCacheDelete(key) {
18048
+ var data2 = this.__data__, index = assocIndexOf(data2, key);
17081
18049
  if (index < 0) {
17082
18050
  return false;
17083
18051
  }
@@ -17085,19 +18053,19 @@ function listCacheDelete$2(key) {
17085
18053
  if (index == lastIndex) {
17086
18054
  data2.pop();
17087
18055
  } else {
17088
- splice$1.call(data2, index, 1);
18056
+ splice.call(data2, index, 1);
17089
18057
  }
17090
18058
  return true;
17091
18059
  }
17092
- function listCacheGet$2(key) {
17093
- var data2 = this.__data__, index = assocIndexOf$5(data2, key);
18060
+ function listCacheGet(key) {
18061
+ var data2 = this.__data__, index = assocIndexOf(data2, key);
17094
18062
  return index < 0 ? void 0 : data2[index][1];
17095
18063
  }
17096
- function listCacheHas$2(key) {
17097
- return assocIndexOf$5(this.__data__, key) > -1;
18064
+ function listCacheHas(key) {
18065
+ return assocIndexOf(this.__data__, key) > -1;
17098
18066
  }
17099
- function listCacheSet$2(key, value) {
17100
- var data2 = this.__data__, index = assocIndexOf$5(data2, key);
18067
+ function listCacheSet(key, value) {
18068
+ var data2 = this.__data__, index = assocIndexOf(data2, key);
17101
18069
  if (index < 0) {
17102
18070
  data2.push([key, value]);
17103
18071
  } else {
@@ -17105,12 +18073,12 @@ function listCacheSet$2(key, value) {
17105
18073
  }
17106
18074
  return this;
17107
18075
  }
17108
- ListCache$5.prototype.clear = listCacheClear$2;
17109
- ListCache$5.prototype["delete"] = listCacheDelete$2;
17110
- ListCache$5.prototype.get = listCacheGet$2;
17111
- ListCache$5.prototype.has = listCacheHas$2;
17112
- ListCache$5.prototype.set = listCacheSet$2;
17113
- function MapCache$3(entries) {
18076
+ ListCache.prototype.clear = listCacheClear;
18077
+ ListCache.prototype["delete"] = listCacheDelete;
18078
+ ListCache.prototype.get = listCacheGet;
18079
+ ListCache.prototype.has = listCacheHas;
18080
+ ListCache.prototype.set = listCacheSet;
18081
+ function MapCache$1(entries) {
17114
18082
  var index = -1, length = entries ? entries.length : 0;
17115
18083
  this.clear();
17116
18084
  while (++index < length) {
@@ -17118,66 +18086,66 @@ function MapCache$3(entries) {
17118
18086
  this.set(entry[0], entry[1]);
17119
18087
  }
17120
18088
  }
17121
- function mapCacheClear$2() {
18089
+ function mapCacheClear() {
17122
18090
  this.__data__ = {
17123
- "hash": new Hash$2(),
17124
- "map": new (Map$5 || ListCache$5)(),
17125
- "string": new Hash$2()
18091
+ "hash": new Hash(),
18092
+ "map": new (Map$1 || ListCache)(),
18093
+ "string": new Hash()
17126
18094
  };
17127
18095
  }
17128
- function mapCacheDelete$2(key) {
17129
- return getMapData$5(this, key)["delete"](key);
18096
+ function mapCacheDelete(key) {
18097
+ return getMapData(this, key)["delete"](key);
17130
18098
  }
17131
- function mapCacheGet$2(key) {
17132
- return getMapData$5(this, key).get(key);
18099
+ function mapCacheGet(key) {
18100
+ return getMapData(this, key).get(key);
17133
18101
  }
17134
- function mapCacheHas$2(key) {
17135
- return getMapData$5(this, key).has(key);
18102
+ function mapCacheHas(key) {
18103
+ return getMapData(this, key).has(key);
17136
18104
  }
17137
- function mapCacheSet$2(key, value) {
17138
- getMapData$5(this, key).set(key, value);
18105
+ function mapCacheSet(key, value) {
18106
+ getMapData(this, key).set(key, value);
17139
18107
  return this;
17140
18108
  }
17141
- MapCache$3.prototype.clear = mapCacheClear$2;
17142
- MapCache$3.prototype["delete"] = mapCacheDelete$2;
17143
- MapCache$3.prototype.get = mapCacheGet$2;
17144
- MapCache$3.prototype.has = mapCacheHas$2;
17145
- MapCache$3.prototype.set = mapCacheSet$2;
17146
- function assocIndexOf$5(array, key) {
18109
+ MapCache$1.prototype.clear = mapCacheClear;
18110
+ MapCache$1.prototype["delete"] = mapCacheDelete;
18111
+ MapCache$1.prototype.get = mapCacheGet;
18112
+ MapCache$1.prototype.has = mapCacheHas;
18113
+ MapCache$1.prototype.set = mapCacheSet;
18114
+ function assocIndexOf(array, key) {
17147
18115
  var length = array.length;
17148
18116
  while (length--) {
17149
- if (eq$3(array[length][0], key)) {
18117
+ if (eq$1(array[length][0], key)) {
17150
18118
  return length;
17151
18119
  }
17152
18120
  }
17153
18121
  return -1;
17154
18122
  }
17155
- function baseIsNative$2(value) {
17156
- if (!isObject$3(value) || isMasked$2(value)) {
18123
+ function baseIsNative(value) {
18124
+ if (!isObject(value) || isMasked(value)) {
17157
18125
  return false;
17158
18126
  }
17159
- var pattern = isFunction$3(value) || isHostObject(value) ? reIsNative$1 : reIsHostCtor$1;
17160
- return pattern.test(toSource$3(value));
18127
+ var pattern = isFunction(value) || isHostObject(value) ? reIsNative : reIsHostCtor;
18128
+ return pattern.test(toSource(value));
17161
18129
  }
17162
- function getMapData$5(map2, key) {
18130
+ function getMapData(map2, key) {
17163
18131
  var data2 = map2.__data__;
17164
- return isKeyable$2(key) ? data2[typeof key == "string" ? "string" : "hash"] : data2.map;
18132
+ return isKeyable(key) ? data2[typeof key == "string" ? "string" : "hash"] : data2.map;
17165
18133
  }
17166
- function getNative$7(object, key) {
17167
- var value = getValue$2(object, key);
17168
- return baseIsNative$2(value) ? value : void 0;
18134
+ function getNative(object, key) {
18135
+ var value = getValue(object, key);
18136
+ return baseIsNative(value) ? value : void 0;
17169
18137
  }
17170
- function isKeyable$2(value) {
18138
+ function isKeyable(value) {
17171
18139
  var type = typeof value;
17172
18140
  return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
17173
18141
  }
17174
- function isMasked$2(func) {
17175
- return !!maskSrcKey$1 && maskSrcKey$1 in func;
18142
+ function isMasked(func) {
18143
+ return !!maskSrcKey && maskSrcKey in func;
17176
18144
  }
17177
- function toSource$3(func) {
18145
+ function toSource(func) {
17178
18146
  if (func != null) {
17179
18147
  try {
17180
- return funcToString$2.call(func);
18148
+ return funcToString.call(func);
17181
18149
  } catch (e) {
17182
18150
  }
17183
18151
  try {
@@ -17200,18 +18168,18 @@ function memoize(func, resolver) {
17200
18168
  memoized.cache = cache2.set(key, result);
17201
18169
  return result;
17202
18170
  };
17203
- memoized.cache = new (memoize.Cache || MapCache$3)();
18171
+ memoized.cache = new (memoize.Cache || MapCache$1)();
17204
18172
  return memoized;
17205
18173
  }
17206
- memoize.Cache = MapCache$3;
17207
- function eq$3(value, other) {
18174
+ memoize.Cache = MapCache$1;
18175
+ function eq$1(value, other) {
17208
18176
  return value === other || value !== value && other !== other;
17209
18177
  }
17210
- function isFunction$3(value) {
17211
- var tag = isObject$3(value) ? objectToString$2.call(value) : "";
17212
- return tag == funcTag$2 || tag == genTag$1;
18178
+ function isFunction(value) {
18179
+ var tag = isObject(value) ? objectToString.call(value) : "";
18180
+ return tag == funcTag || tag == genTag;
17213
18181
  }
17214
- function isObject$3(value) {
18182
+ function isObject(value) {
17215
18183
  var type = typeof value;
17216
18184
  return !!value && (type == "object" || type == "function");
17217
18185
  }
@@ -19725,430 +20693,63 @@ moveTextDecorationToChildren_fn = function(blockEl) {
19725
20693
  for (const childNode of blockEl.childNodes) {
19726
20694
  const textEl = __privateMethod(this, _wrapTextNode, wrapTextNode_fn).call(this, blockEl, childNode);
19727
20695
  const textDecoration = __privateMethod(this, _parseTextDecoration, parseTextDecoration_fn).call(this, textEl);
19728
- const mergedDecoration = {
19729
- underline: textDecoration.underline || blockDecoration.underline,
19730
- line_through: textDecoration.line_through || blockDecoration.line_through
19731
- };
19732
- textEl.style.removeProperty("text-decoration-line");
19733
- textEl.style.removeProperty("text-decoration");
19734
- textEl.style.textDecoration = Object.entries(mergedDecoration).filter(([, value]) => value).map(([name]) => name.replace("_", "-")).join(" ");
19735
- }
19736
- };
19737
- _parseTextDecoration = new WeakSet();
19738
- parseTextDecoration_fn = function(element) {
19739
- const { textDecoration, textDecorationLine } = element.style;
19740
- const decoration = textDecoration || textDecorationLine || "";
19741
- return {
19742
- none: decoration.includes("none"),
19743
- underline: decoration.includes("underline"),
19744
- line_through: decoration.includes("line-through")
19745
- };
19746
- };
19747
- _normalizeBlockBackgroundColor = new WeakSet();
19748
- normalizeBlockBackgroundColor_fn = function() {
19749
- const blockEls = this.dom.querySelectorAll('[style*="background-color"]:where(p, h1, h2, h3, h4, li)');
19750
- for (const blockEl of blockEls) {
19751
- __privateMethod(this, _moveBackgroundColorToChildren, moveBackgroundColorToChildren_fn).call(this, blockEl);
19752
- }
19753
- };
19754
- _moveBackgroundColorToChildren = new WeakSet();
19755
- moveBackgroundColorToChildren_fn = function(blockEl) {
19756
- const blockColor = blockEl.style.backgroundColor;
19757
- blockEl.style.removeProperty("background-color");
19758
- if (!blockEl.style.cssText)
19759
- blockEl.removeAttribute("style");
19760
- for (const childNode of blockEl.childNodes) {
19761
- const textEl = __privateMethod(this, _wrapTextNode, wrapTextNode_fn).call(this, blockEl, childNode);
19762
- const color = textEl.style.backgroundColor || blockColor;
19763
- textEl.style.backgroundColor = color;
19764
- }
19765
- };
19766
- _wrapTextNode = new WeakSet();
19767
- wrapTextNode_fn = function(parent, node) {
19768
- if (node.nodeType !== __privateGet(this, _Node, Node_get).TEXT_NODE)
19769
- return node;
19770
- const span = this.dom.createElement("span");
19771
- span.append(node.cloneNode());
19772
- parent.replaceChild(span, node);
19773
- return span;
19774
- };
19775
- __publicField(HtmlNormalizer, "BLOCK_NODE_NAMES", ["P", "H1", "H2", "H3", "H4"]);
19776
- __publicField(HtmlNormalizer, "BLOCK_STYLES", [
19777
- "text-align",
19778
- "line-height",
19779
- "margin",
19780
- "margin-top",
19781
- "margin-bottom",
19782
- "margin-left",
19783
- "margin-right"
19784
- ]);
19785
- function listCacheClear$1() {
19786
- this.__data__ = [];
19787
- this.size = 0;
19788
- }
19789
- var _listCacheClear = listCacheClear$1;
19790
- function eq$2(value, other) {
19791
- return value === other || value !== value && other !== other;
19792
- }
19793
- var eq_1 = eq$2;
19794
- var eq$1 = eq_1;
19795
- function assocIndexOf$4(array, key) {
19796
- var length = array.length;
19797
- while (length--) {
19798
- if (eq$1(array[length][0], key)) {
19799
- return length;
19800
- }
19801
- }
19802
- return -1;
19803
- }
19804
- var _assocIndexOf = assocIndexOf$4;
19805
- var assocIndexOf$3 = _assocIndexOf;
19806
- var arrayProto = Array.prototype;
19807
- var splice = arrayProto.splice;
19808
- function listCacheDelete$1(key) {
19809
- var data2 = this.__data__, index = assocIndexOf$3(data2, key);
19810
- if (index < 0) {
19811
- return false;
19812
- }
19813
- var lastIndex = data2.length - 1;
19814
- if (index == lastIndex) {
19815
- data2.pop();
19816
- } else {
19817
- splice.call(data2, index, 1);
19818
- }
19819
- --this.size;
19820
- return true;
19821
- }
19822
- var _listCacheDelete = listCacheDelete$1;
19823
- var assocIndexOf$2 = _assocIndexOf;
19824
- function listCacheGet$1(key) {
19825
- var data2 = this.__data__, index = assocIndexOf$2(data2, key);
19826
- return index < 0 ? void 0 : data2[index][1];
19827
- }
19828
- var _listCacheGet = listCacheGet$1;
19829
- var assocIndexOf$1 = _assocIndexOf;
19830
- function listCacheHas$1(key) {
19831
- return assocIndexOf$1(this.__data__, key) > -1;
19832
- }
19833
- var _listCacheHas = listCacheHas$1;
19834
- var assocIndexOf = _assocIndexOf;
19835
- function listCacheSet$1(key, value) {
19836
- var data2 = this.__data__, index = assocIndexOf(data2, key);
19837
- if (index < 0) {
19838
- ++this.size;
19839
- data2.push([key, value]);
19840
- } else {
19841
- data2[index][1] = value;
19842
- }
19843
- return this;
19844
- }
19845
- var _listCacheSet = listCacheSet$1;
19846
- var listCacheClear = _listCacheClear, listCacheDelete = _listCacheDelete, listCacheGet = _listCacheGet, listCacheHas = _listCacheHas, listCacheSet = _listCacheSet;
19847
- function ListCache$4(entries) {
19848
- var index = -1, length = entries == null ? 0 : entries.length;
19849
- this.clear();
19850
- while (++index < length) {
19851
- var entry = entries[index];
19852
- this.set(entry[0], entry[1]);
19853
- }
19854
- }
19855
- ListCache$4.prototype.clear = listCacheClear;
19856
- ListCache$4.prototype["delete"] = listCacheDelete;
19857
- ListCache$4.prototype.get = listCacheGet;
19858
- ListCache$4.prototype.has = listCacheHas;
19859
- ListCache$4.prototype.set = listCacheSet;
19860
- var _ListCache = ListCache$4;
19861
- var ListCache$3 = _ListCache;
19862
- function stackClear$1() {
19863
- this.__data__ = new ListCache$3();
19864
- this.size = 0;
19865
- }
19866
- var _stackClear = stackClear$1;
19867
- function stackDelete$1(key) {
19868
- var data2 = this.__data__, result = data2["delete"](key);
19869
- this.size = data2.size;
19870
- return result;
19871
- }
19872
- var _stackDelete = stackDelete$1;
19873
- function stackGet$1(key) {
19874
- return this.__data__.get(key);
19875
- }
19876
- var _stackGet = stackGet$1;
19877
- function stackHas$1(key) {
19878
- return this.__data__.has(key);
19879
- }
19880
- var _stackHas = stackHas$1;
19881
- var freeGlobal$1 = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
19882
- var _freeGlobal = freeGlobal$1;
19883
- var freeGlobal = _freeGlobal;
19884
- var freeSelf = typeof self == "object" && self && self.Object === Object && self;
19885
- var root$8 = freeGlobal || freeSelf || Function("return this")();
19886
- var _root = root$8;
19887
- var root$7 = _root;
19888
- var Symbol$4 = root$7.Symbol;
19889
- var _Symbol = Symbol$4;
19890
- var Symbol$3 = _Symbol;
19891
- var objectProto$b = Object.prototype;
19892
- var hasOwnProperty$8 = objectProto$b.hasOwnProperty;
19893
- var nativeObjectToString$1 = objectProto$b.toString;
19894
- var symToStringTag$1 = Symbol$3 ? Symbol$3.toStringTag : void 0;
19895
- function getRawTag$1(value) {
19896
- var isOwn = hasOwnProperty$8.call(value, symToStringTag$1), tag = value[symToStringTag$1];
19897
- try {
19898
- value[symToStringTag$1] = void 0;
19899
- var unmasked = true;
19900
- } catch (e) {
19901
- }
19902
- var result = nativeObjectToString$1.call(value);
19903
- if (unmasked) {
19904
- if (isOwn) {
19905
- value[symToStringTag$1] = tag;
19906
- } else {
19907
- delete value[symToStringTag$1];
19908
- }
19909
- }
19910
- return result;
19911
- }
19912
- var _getRawTag = getRawTag$1;
19913
- var objectProto$a = Object.prototype;
19914
- var nativeObjectToString = objectProto$a.toString;
19915
- function objectToString$1(value) {
19916
- return nativeObjectToString.call(value);
19917
- }
19918
- var _objectToString = objectToString$1;
19919
- var Symbol$2 = _Symbol, getRawTag = _getRawTag, objectToString = _objectToString;
19920
- var nullTag = "[object Null]", undefinedTag = "[object Undefined]";
19921
- var symToStringTag = Symbol$2 ? Symbol$2.toStringTag : void 0;
19922
- function baseGetTag$4(value) {
19923
- if (value == null) {
19924
- return value === void 0 ? undefinedTag : nullTag;
19925
- }
19926
- return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
19927
- }
19928
- var _baseGetTag = baseGetTag$4;
19929
- function isObject$2(value) {
19930
- var type = typeof value;
19931
- return value != null && (type == "object" || type == "function");
19932
- }
19933
- var isObject_1 = isObject$2;
19934
- var baseGetTag$3 = _baseGetTag, isObject$1 = isObject_1;
19935
- var asyncTag = "[object AsyncFunction]", funcTag$1 = "[object Function]", genTag = "[object GeneratorFunction]", proxyTag = "[object Proxy]";
19936
- function isFunction$2(value) {
19937
- if (!isObject$1(value)) {
19938
- return false;
19939
- }
19940
- var tag = baseGetTag$3(value);
19941
- return tag == funcTag$1 || tag == genTag || tag == asyncTag || tag == proxyTag;
19942
- }
19943
- var isFunction_1 = isFunction$2;
19944
- var root$6 = _root;
19945
- var coreJsData$1 = root$6["__core-js_shared__"];
19946
- var _coreJsData = coreJsData$1;
19947
- var coreJsData = _coreJsData;
19948
- var maskSrcKey = function() {
19949
- var uid2 = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
19950
- return uid2 ? "Symbol(src)_1." + uid2 : "";
19951
- }();
19952
- function isMasked$1(func) {
19953
- return !!maskSrcKey && maskSrcKey in func;
19954
- }
19955
- var _isMasked = isMasked$1;
19956
- var funcProto$1 = Function.prototype;
19957
- var funcToString$1 = funcProto$1.toString;
19958
- function toSource$2(func) {
19959
- if (func != null) {
19960
- try {
19961
- return funcToString$1.call(func);
19962
- } catch (e) {
19963
- }
19964
- try {
19965
- return func + "";
19966
- } catch (e) {
19967
- }
19968
- }
19969
- return "";
19970
- }
19971
- var _toSource = toSource$2;
19972
- var isFunction$1 = isFunction_1, isMasked = _isMasked, isObject = isObject_1, toSource$1 = _toSource;
19973
- var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
19974
- var reIsHostCtor = /^\[object .+?Constructor\]$/;
19975
- var funcProto = Function.prototype, objectProto$9 = Object.prototype;
19976
- var funcToString = funcProto.toString;
19977
- var hasOwnProperty$7 = objectProto$9.hasOwnProperty;
19978
- var reIsNative = RegExp(
19979
- "^" + funcToString.call(hasOwnProperty$7).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
19980
- );
19981
- function baseIsNative$1(value) {
19982
- if (!isObject(value) || isMasked(value)) {
19983
- return false;
19984
- }
19985
- var pattern = isFunction$1(value) ? reIsNative : reIsHostCtor;
19986
- return pattern.test(toSource$1(value));
19987
- }
19988
- var _baseIsNative = baseIsNative$1;
19989
- function getValue$1(object, key) {
19990
- return object == null ? void 0 : object[key];
19991
- }
19992
- var _getValue = getValue$1;
19993
- var baseIsNative = _baseIsNative, getValue = _getValue;
19994
- function getNative$6(object, key) {
19995
- var value = getValue(object, key);
19996
- return baseIsNative(value) ? value : void 0;
19997
- }
19998
- var _getNative = getNative$6;
19999
- var getNative$5 = _getNative, root$5 = _root;
20000
- var Map$4 = getNative$5(root$5, "Map");
20001
- var _Map = Map$4;
20002
- var getNative$4 = _getNative;
20003
- var nativeCreate$4 = getNative$4(Object, "create");
20004
- var _nativeCreate = nativeCreate$4;
20005
- var nativeCreate$3 = _nativeCreate;
20006
- function hashClear$1() {
20007
- this.__data__ = nativeCreate$3 ? nativeCreate$3(null) : {};
20008
- this.size = 0;
20009
- }
20010
- var _hashClear = hashClear$1;
20011
- function hashDelete$1(key) {
20012
- var result = this.has(key) && delete this.__data__[key];
20013
- this.size -= result ? 1 : 0;
20014
- return result;
20015
- }
20016
- var _hashDelete = hashDelete$1;
20017
- var nativeCreate$2 = _nativeCreate;
20018
- var HASH_UNDEFINED$2 = "__lodash_hash_undefined__";
20019
- var objectProto$8 = Object.prototype;
20020
- var hasOwnProperty$6 = objectProto$8.hasOwnProperty;
20021
- function hashGet$1(key) {
20022
- var data2 = this.__data__;
20023
- if (nativeCreate$2) {
20024
- var result = data2[key];
20025
- return result === HASH_UNDEFINED$2 ? void 0 : result;
20026
- }
20027
- return hasOwnProperty$6.call(data2, key) ? data2[key] : void 0;
20028
- }
20029
- var _hashGet = hashGet$1;
20030
- var nativeCreate$1 = _nativeCreate;
20031
- var objectProto$7 = Object.prototype;
20032
- var hasOwnProperty$5 = objectProto$7.hasOwnProperty;
20033
- function hashHas$1(key) {
20034
- var data2 = this.__data__;
20035
- return nativeCreate$1 ? data2[key] !== void 0 : hasOwnProperty$5.call(data2, key);
20036
- }
20037
- var _hashHas = hashHas$1;
20038
- var nativeCreate = _nativeCreate;
20039
- var HASH_UNDEFINED$1 = "__lodash_hash_undefined__";
20040
- function hashSet$1(key, value) {
20041
- var data2 = this.__data__;
20042
- this.size += this.has(key) ? 0 : 1;
20043
- data2[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED$1 : value;
20044
- return this;
20045
- }
20046
- var _hashSet = hashSet$1;
20047
- var hashClear = _hashClear, hashDelete = _hashDelete, hashGet = _hashGet, hashHas = _hashHas, hashSet = _hashSet;
20048
- function Hash$1(entries) {
20049
- var index = -1, length = entries == null ? 0 : entries.length;
20050
- this.clear();
20051
- while (++index < length) {
20052
- var entry = entries[index];
20053
- this.set(entry[0], entry[1]);
20696
+ const mergedDecoration = {
20697
+ underline: textDecoration.underline || blockDecoration.underline,
20698
+ line_through: textDecoration.line_through || blockDecoration.line_through
20699
+ };
20700
+ textEl.style.removeProperty("text-decoration-line");
20701
+ textEl.style.removeProperty("text-decoration");
20702
+ textEl.style.textDecoration = Object.entries(mergedDecoration).filter(([, value]) => value).map(([name]) => name.replace("_", "-")).join(" ");
20054
20703
  }
20055
- }
20056
- Hash$1.prototype.clear = hashClear;
20057
- Hash$1.prototype["delete"] = hashDelete;
20058
- Hash$1.prototype.get = hashGet;
20059
- Hash$1.prototype.has = hashHas;
20060
- Hash$1.prototype.set = hashSet;
20061
- var _Hash = Hash$1;
20062
- var Hash = _Hash, ListCache$2 = _ListCache, Map$3 = _Map;
20063
- function mapCacheClear$1() {
20064
- this.size = 0;
20065
- this.__data__ = {
20066
- "hash": new Hash(),
20067
- "map": new (Map$3 || ListCache$2)(),
20068
- "string": new Hash()
20704
+ };
20705
+ _parseTextDecoration = new WeakSet();
20706
+ parseTextDecoration_fn = function(element) {
20707
+ const { textDecoration, textDecorationLine } = element.style;
20708
+ const decoration = textDecoration || textDecorationLine || "";
20709
+ return {
20710
+ none: decoration.includes("none"),
20711
+ underline: decoration.includes("underline"),
20712
+ line_through: decoration.includes("line-through")
20069
20713
  };
20070
- }
20071
- var _mapCacheClear = mapCacheClear$1;
20072
- function isKeyable$1(value) {
20073
- var type = typeof value;
20074
- return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
20075
- }
20076
- var _isKeyable = isKeyable$1;
20077
- var isKeyable = _isKeyable;
20078
- function getMapData$4(map2, key) {
20079
- var data2 = map2.__data__;
20080
- return isKeyable(key) ? data2[typeof key == "string" ? "string" : "hash"] : data2.map;
20081
- }
20082
- var _getMapData = getMapData$4;
20083
- var getMapData$3 = _getMapData;
20084
- function mapCacheDelete$1(key) {
20085
- var result = getMapData$3(this, key)["delete"](key);
20086
- this.size -= result ? 1 : 0;
20087
- return result;
20088
- }
20089
- var _mapCacheDelete = mapCacheDelete$1;
20090
- var getMapData$2 = _getMapData;
20091
- function mapCacheGet$1(key) {
20092
- return getMapData$2(this, key).get(key);
20093
- }
20094
- var _mapCacheGet = mapCacheGet$1;
20095
- var getMapData$1 = _getMapData;
20096
- function mapCacheHas$1(key) {
20097
- return getMapData$1(this, key).has(key);
20098
- }
20099
- var _mapCacheHas = mapCacheHas$1;
20100
- var getMapData = _getMapData;
20101
- function mapCacheSet$1(key, value) {
20102
- var data2 = getMapData(this, key), size2 = data2.size;
20103
- data2.set(key, value);
20104
- this.size += data2.size == size2 ? 0 : 1;
20105
- return this;
20106
- }
20107
- var _mapCacheSet = mapCacheSet$1;
20108
- var mapCacheClear = _mapCacheClear, mapCacheDelete = _mapCacheDelete, mapCacheGet = _mapCacheGet, mapCacheHas = _mapCacheHas, mapCacheSet = _mapCacheSet;
20109
- function MapCache$2(entries) {
20110
- var index = -1, length = entries == null ? 0 : entries.length;
20111
- this.clear();
20112
- while (++index < length) {
20113
- var entry = entries[index];
20114
- this.set(entry[0], entry[1]);
20714
+ };
20715
+ _normalizeBlockBackgroundColor = new WeakSet();
20716
+ normalizeBlockBackgroundColor_fn = function() {
20717
+ const blockEls = this.dom.querySelectorAll('[style*="background-color"]:where(p, h1, h2, h3, h4, li)');
20718
+ for (const blockEl of blockEls) {
20719
+ __privateMethod(this, _moveBackgroundColorToChildren, moveBackgroundColorToChildren_fn).call(this, blockEl);
20115
20720
  }
20116
- }
20117
- MapCache$2.prototype.clear = mapCacheClear;
20118
- MapCache$2.prototype["delete"] = mapCacheDelete;
20119
- MapCache$2.prototype.get = mapCacheGet;
20120
- MapCache$2.prototype.has = mapCacheHas;
20121
- MapCache$2.prototype.set = mapCacheSet;
20122
- var _MapCache = MapCache$2;
20123
- var ListCache$1 = _ListCache, Map$2 = _Map, MapCache$1 = _MapCache;
20124
- var LARGE_ARRAY_SIZE = 200;
20125
- function stackSet$1(key, value) {
20126
- var data2 = this.__data__;
20127
- if (data2 instanceof ListCache$1) {
20128
- var pairs = data2.__data__;
20129
- if (!Map$2 || pairs.length < LARGE_ARRAY_SIZE - 1) {
20130
- pairs.push([key, value]);
20131
- this.size = ++data2.size;
20132
- return this;
20133
- }
20134
- data2 = this.__data__ = new MapCache$1(pairs);
20721
+ };
20722
+ _moveBackgroundColorToChildren = new WeakSet();
20723
+ moveBackgroundColorToChildren_fn = function(blockEl) {
20724
+ const blockColor = blockEl.style.backgroundColor;
20725
+ blockEl.style.removeProperty("background-color");
20726
+ if (!blockEl.style.cssText)
20727
+ blockEl.removeAttribute("style");
20728
+ for (const childNode of blockEl.childNodes) {
20729
+ const textEl = __privateMethod(this, _wrapTextNode, wrapTextNode_fn).call(this, blockEl, childNode);
20730
+ const color = textEl.style.backgroundColor || blockColor;
20731
+ textEl.style.backgroundColor = color;
20135
20732
  }
20136
- data2.set(key, value);
20137
- this.size = data2.size;
20138
- return this;
20139
- }
20140
- var _stackSet = stackSet$1;
20141
- var ListCache = _ListCache, stackClear = _stackClear, stackDelete = _stackDelete, stackGet = _stackGet, stackHas = _stackHas, stackSet = _stackSet;
20142
- function Stack$1(entries) {
20143
- var data2 = this.__data__ = new ListCache(entries);
20144
- this.size = data2.size;
20145
- }
20146
- Stack$1.prototype.clear = stackClear;
20147
- Stack$1.prototype["delete"] = stackDelete;
20148
- Stack$1.prototype.get = stackGet;
20149
- Stack$1.prototype.has = stackHas;
20150
- Stack$1.prototype.set = stackSet;
20151
- var _Stack = Stack$1;
20733
+ };
20734
+ _wrapTextNode = new WeakSet();
20735
+ wrapTextNode_fn = function(parent, node) {
20736
+ if (node.nodeType !== __privateGet(this, _Node, Node_get).TEXT_NODE)
20737
+ return node;
20738
+ const span = this.dom.createElement("span");
20739
+ span.append(node.cloneNode());
20740
+ parent.replaceChild(span, node);
20741
+ return span;
20742
+ };
20743
+ __publicField(HtmlNormalizer, "BLOCK_NODE_NAMES", ["P", "H1", "H2", "H3", "H4"]);
20744
+ __publicField(HtmlNormalizer, "BLOCK_STYLES", [
20745
+ "text-align",
20746
+ "line-height",
20747
+ "margin",
20748
+ "margin-top",
20749
+ "margin-bottom",
20750
+ "margin-left",
20751
+ "margin-right"
20752
+ ]);
20152
20753
  var HASH_UNDEFINED = "__lodash_hash_undefined__";
20153
20754
  function setCacheAdd$1(value) {
20154
20755
  this.__data__.set(value, HASH_UNDEFINED);
@@ -20230,9 +20831,6 @@ function equalArrays$2(array, other, bitmask, customizer, equalFunc, stack) {
20230
20831
  return result;
20231
20832
  }
20232
20833
  var _equalArrays = equalArrays$2;
20233
- var root$4 = _root;
20234
- var Uint8Array$1 = root$4.Uint8Array;
20235
- var _Uint8Array = Uint8Array$1;
20236
20834
  function mapToArray$1(map2) {
20237
20835
  var index = -1, result = Array(map2.size);
20238
20836
  map2.forEach(function(value, key) {
@@ -20251,34 +20849,34 @@ function setToArray$1(set2) {
20251
20849
  var _setToArray = setToArray$1;
20252
20850
  var Symbol$1 = _Symbol, Uint8Array2 = _Uint8Array, eq = eq_1, equalArrays$1 = _equalArrays, mapToArray = _mapToArray, setToArray = _setToArray;
20253
20851
  var COMPARE_PARTIAL_FLAG$2 = 1, COMPARE_UNORDERED_FLAG = 2;
20254
- var boolTag$1 = "[object Boolean]", dateTag$1 = "[object Date]", errorTag$1 = "[object Error]", mapTag$2 = "[object Map]", numberTag$1 = "[object Number]", regexpTag$1 = "[object RegExp]", setTag$2 = "[object Set]", stringTag$1 = "[object String]", symbolTag = "[object Symbol]";
20255
- var arrayBufferTag$1 = "[object ArrayBuffer]", dataViewTag$2 = "[object DataView]";
20852
+ var boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", mapTag = "[object Map]", numberTag = "[object Number]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", symbolTag = "[object Symbol]";
20853
+ var arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]";
20256
20854
  var symbolProto = Symbol$1 ? Symbol$1.prototype : void 0, symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
20257
20855
  function equalByTag$1(object, other, tag, bitmask, customizer, equalFunc, stack) {
20258
20856
  switch (tag) {
20259
- case dataViewTag$2:
20857
+ case dataViewTag:
20260
20858
  if (object.byteLength != other.byteLength || object.byteOffset != other.byteOffset) {
20261
20859
  return false;
20262
20860
  }
20263
20861
  object = object.buffer;
20264
20862
  other = other.buffer;
20265
- case arrayBufferTag$1:
20863
+ case arrayBufferTag:
20266
20864
  if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array2(object), new Uint8Array2(other))) {
20267
20865
  return false;
20268
20866
  }
20269
20867
  return true;
20270
- case boolTag$1:
20271
- case dateTag$1:
20272
- case numberTag$1:
20868
+ case boolTag:
20869
+ case dateTag:
20870
+ case numberTag:
20273
20871
  return eq(+object, +other);
20274
- case errorTag$1:
20872
+ case errorTag:
20275
20873
  return object.name == other.name && object.message == other.message;
20276
- case regexpTag$1:
20277
- case stringTag$1:
20874
+ case regexpTag:
20875
+ case stringTag:
20278
20876
  return object == other + "";
20279
- case mapTag$2:
20877
+ case mapTag:
20280
20878
  var convert = mapToArray;
20281
- case setTag$2:
20879
+ case setTag:
20282
20880
  var isPartial = bitmask & COMPARE_PARTIAL_FLAG$2;
20283
20881
  convert || (convert = setToArray);
20284
20882
  if (object.size != other.size && !isPartial) {
@@ -20301,205 +20899,6 @@ function equalByTag$1(object, other, tag, bitmask, customizer, equalFunc, stack)
20301
20899
  return false;
20302
20900
  }
20303
20901
  var _equalByTag = equalByTag$1;
20304
- function arrayPush$1(array, values2) {
20305
- var index = -1, length = values2.length, offset2 = array.length;
20306
- while (++index < length) {
20307
- array[offset2 + index] = values2[index];
20308
- }
20309
- return array;
20310
- }
20311
- var _arrayPush = arrayPush$1;
20312
- var isArray$3 = Array.isArray;
20313
- var isArray_1 = isArray$3;
20314
- var arrayPush = _arrayPush, isArray$2 = isArray_1;
20315
- function baseGetAllKeys$1(object, keysFunc, symbolsFunc) {
20316
- var result = keysFunc(object);
20317
- return isArray$2(object) ? result : arrayPush(result, symbolsFunc(object));
20318
- }
20319
- var _baseGetAllKeys = baseGetAllKeys$1;
20320
- function arrayFilter$1(array, predicate) {
20321
- var index = -1, length = array == null ? 0 : array.length, resIndex = 0, result = [];
20322
- while (++index < length) {
20323
- var value = array[index];
20324
- if (predicate(value, index, array)) {
20325
- result[resIndex++] = value;
20326
- }
20327
- }
20328
- return result;
20329
- }
20330
- var _arrayFilter = arrayFilter$1;
20331
- function stubArray$1() {
20332
- return [];
20333
- }
20334
- var stubArray_1 = stubArray$1;
20335
- var arrayFilter = _arrayFilter, stubArray = stubArray_1;
20336
- var objectProto$6 = Object.prototype;
20337
- var propertyIsEnumerable$1 = objectProto$6.propertyIsEnumerable;
20338
- var nativeGetSymbols = Object.getOwnPropertySymbols;
20339
- var getSymbols$1 = !nativeGetSymbols ? stubArray : function(object) {
20340
- if (object == null) {
20341
- return [];
20342
- }
20343
- object = Object(object);
20344
- return arrayFilter(nativeGetSymbols(object), function(symbol) {
20345
- return propertyIsEnumerable$1.call(object, symbol);
20346
- });
20347
- };
20348
- var _getSymbols = getSymbols$1;
20349
- function baseTimes$1(n, iteratee) {
20350
- var index = -1, result = Array(n);
20351
- while (++index < n) {
20352
- result[index] = iteratee(index);
20353
- }
20354
- return result;
20355
- }
20356
- var _baseTimes = baseTimes$1;
20357
- function isObjectLike$4(value) {
20358
- return value != null && typeof value == "object";
20359
- }
20360
- var isObjectLike_1 = isObjectLike$4;
20361
- var baseGetTag$2 = _baseGetTag, isObjectLike$3 = isObjectLike_1;
20362
- var argsTag$2 = "[object Arguments]";
20363
- function baseIsArguments$1(value) {
20364
- return isObjectLike$3(value) && baseGetTag$2(value) == argsTag$2;
20365
- }
20366
- var _baseIsArguments = baseIsArguments$1;
20367
- var baseIsArguments = _baseIsArguments, isObjectLike$2 = isObjectLike_1;
20368
- var objectProto$5 = Object.prototype;
20369
- var hasOwnProperty$4 = objectProto$5.hasOwnProperty;
20370
- var propertyIsEnumerable2 = objectProto$5.propertyIsEnumerable;
20371
- var isArguments$1 = baseIsArguments(function() {
20372
- return arguments;
20373
- }()) ? baseIsArguments : function(value) {
20374
- return isObjectLike$2(value) && hasOwnProperty$4.call(value, "callee") && !propertyIsEnumerable2.call(value, "callee");
20375
- };
20376
- var isArguments_1 = isArguments$1;
20377
- var isBuffer$2 = { exports: {} };
20378
- function stubFalse() {
20379
- return false;
20380
- }
20381
- var stubFalse_1 = stubFalse;
20382
- (function(module, exports) {
20383
- var root2 = _root, stubFalse2 = stubFalse_1;
20384
- var freeExports = exports && !exports.nodeType && exports;
20385
- var freeModule = freeExports && true && module && !module.nodeType && module;
20386
- var moduleExports = freeModule && freeModule.exports === freeExports;
20387
- var Buffer2 = moduleExports ? root2.Buffer : void 0;
20388
- var nativeIsBuffer = Buffer2 ? Buffer2.isBuffer : void 0;
20389
- var isBuffer2 = nativeIsBuffer || stubFalse2;
20390
- module.exports = isBuffer2;
20391
- })(isBuffer$2, isBuffer$2.exports);
20392
- var MAX_SAFE_INTEGER$1 = 9007199254740991;
20393
- var reIsUint = /^(?:0|[1-9]\d*)$/;
20394
- function isIndex$1(value, length) {
20395
- var type = typeof value;
20396
- length = length == null ? MAX_SAFE_INTEGER$1 : length;
20397
- return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
20398
- }
20399
- var _isIndex = isIndex$1;
20400
- var MAX_SAFE_INTEGER = 9007199254740991;
20401
- function isLength$2(value) {
20402
- return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
20403
- }
20404
- var isLength_1 = isLength$2;
20405
- var baseGetTag$1 = _baseGetTag, isLength$1 = isLength_1, isObjectLike$1 = isObjectLike_1;
20406
- var argsTag$1 = "[object Arguments]", arrayTag$1 = "[object Array]", boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", funcTag = "[object Function]", mapTag$1 = "[object Map]", numberTag = "[object Number]", objectTag$2 = "[object Object]", regexpTag = "[object RegExp]", setTag$1 = "[object Set]", stringTag = "[object String]", weakMapTag$1 = "[object WeakMap]";
20407
- var arrayBufferTag = "[object ArrayBuffer]", dataViewTag$1 = "[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]";
20408
- var typedArrayTags = {};
20409
- typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;
20410
- typedArrayTags[argsTag$1] = typedArrayTags[arrayTag$1] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag$1] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag$1] = typedArrayTags[numberTag] = typedArrayTags[objectTag$2] = typedArrayTags[regexpTag] = typedArrayTags[setTag$1] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag$1] = false;
20411
- function baseIsTypedArray$1(value) {
20412
- return isObjectLike$1(value) && isLength$1(value.length) && !!typedArrayTags[baseGetTag$1(value)];
20413
- }
20414
- var _baseIsTypedArray = baseIsTypedArray$1;
20415
- function baseUnary$1(func) {
20416
- return function(value) {
20417
- return func(value);
20418
- };
20419
- }
20420
- var _baseUnary = baseUnary$1;
20421
- var _nodeUtil = { exports: {} };
20422
- (function(module, exports) {
20423
- var freeGlobal2 = _freeGlobal;
20424
- var freeExports = exports && !exports.nodeType && exports;
20425
- var freeModule = freeExports && true && module && !module.nodeType && module;
20426
- var moduleExports = freeModule && freeModule.exports === freeExports;
20427
- var freeProcess = moduleExports && freeGlobal2.process;
20428
- var nodeUtil2 = function() {
20429
- try {
20430
- var types = freeModule && freeModule.require && freeModule.require("util").types;
20431
- if (types) {
20432
- return types;
20433
- }
20434
- return freeProcess && freeProcess.binding && freeProcess.binding("util");
20435
- } catch (e) {
20436
- }
20437
- }();
20438
- module.exports = nodeUtil2;
20439
- })(_nodeUtil, _nodeUtil.exports);
20440
- var baseIsTypedArray = _baseIsTypedArray, baseUnary = _baseUnary, nodeUtil = _nodeUtil.exports;
20441
- var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
20442
- var isTypedArray$2 = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
20443
- var isTypedArray_1 = isTypedArray$2;
20444
- var baseTimes = _baseTimes, isArguments = isArguments_1, isArray$1 = isArray_1, isBuffer$1 = isBuffer$2.exports, isIndex = _isIndex, isTypedArray$1 = isTypedArray_1;
20445
- var objectProto$4 = Object.prototype;
20446
- var hasOwnProperty$3 = objectProto$4.hasOwnProperty;
20447
- function arrayLikeKeys$1(value, inherited) {
20448
- var isArr = isArray$1(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer$1(value), isType = !isArr && !isArg && !isBuff && isTypedArray$1(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
20449
- for (var key in value) {
20450
- if ((inherited || hasOwnProperty$3.call(value, key)) && !(skipIndexes && (key == "length" || isBuff && (key == "offset" || key == "parent") || isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || isIndex(key, length)))) {
20451
- result.push(key);
20452
- }
20453
- }
20454
- return result;
20455
- }
20456
- var _arrayLikeKeys = arrayLikeKeys$1;
20457
- var objectProto$3 = Object.prototype;
20458
- function isPrototype$1(value) {
20459
- var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto$3;
20460
- return value === proto;
20461
- }
20462
- var _isPrototype = isPrototype$1;
20463
- function overArg$1(func, transform) {
20464
- return function(arg) {
20465
- return func(transform(arg));
20466
- };
20467
- }
20468
- var _overArg = overArg$1;
20469
- var overArg = _overArg;
20470
- var nativeKeys$1 = overArg(Object.keys, Object);
20471
- var _nativeKeys = nativeKeys$1;
20472
- var isPrototype = _isPrototype, nativeKeys = _nativeKeys;
20473
- var objectProto$2 = Object.prototype;
20474
- var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
20475
- function baseKeys$1(object) {
20476
- if (!isPrototype(object)) {
20477
- return nativeKeys(object);
20478
- }
20479
- var result = [];
20480
- for (var key in Object(object)) {
20481
- if (hasOwnProperty$2.call(object, key) && key != "constructor") {
20482
- result.push(key);
20483
- }
20484
- }
20485
- return result;
20486
- }
20487
- var _baseKeys = baseKeys$1;
20488
- var isFunction = isFunction_1, isLength = isLength_1;
20489
- function isArrayLike$1(value) {
20490
- return value != null && isLength(value.length) && !isFunction(value);
20491
- }
20492
- var isArrayLike_1 = isArrayLike$1;
20493
- var arrayLikeKeys = _arrayLikeKeys, baseKeys = _baseKeys, isArrayLike = isArrayLike_1;
20494
- function keys$1(object) {
20495
- return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
20496
- }
20497
- var keys_1 = keys$1;
20498
- var baseGetAllKeys = _baseGetAllKeys, getSymbols = _getSymbols, keys2 = keys_1;
20499
- function getAllKeys$1(object) {
20500
- return baseGetAllKeys(object, keys2, getSymbols);
20501
- }
20502
- var _getAllKeys = getAllKeys$1;
20503
20902
  var getAllKeys = _getAllKeys;
20504
20903
  var COMPARE_PARTIAL_FLAG$1 = 1;
20505
20904
  var objectProto$1 = Object.prototype;
@@ -20537,56 +20936,18 @@ function equalObjects$1(object, other, bitmask, customizer, equalFunc, stack) {
20537
20936
  }
20538
20937
  skipCtor || (skipCtor = key == "constructor");
20539
20938
  }
20540
- if (result && !skipCtor) {
20541
- var objCtor = object.constructor, othCtor = other.constructor;
20542
- if (objCtor != othCtor && ("constructor" in object && "constructor" in other) && !(typeof objCtor == "function" && objCtor instanceof objCtor && typeof othCtor == "function" && othCtor instanceof othCtor)) {
20543
- result = false;
20544
- }
20545
- }
20546
- stack["delete"](object);
20547
- stack["delete"](other);
20548
- return result;
20549
- }
20550
- var _equalObjects = equalObjects$1;
20551
- var getNative$3 = _getNative, root$3 = _root;
20552
- var DataView$1 = getNative$3(root$3, "DataView");
20553
- var _DataView = DataView$1;
20554
- var getNative$2 = _getNative, root$2 = _root;
20555
- var Promise$2 = getNative$2(root$2, "Promise");
20556
- var _Promise = Promise$2;
20557
- var getNative$1 = _getNative, root$1 = _root;
20558
- var Set$2 = getNative$1(root$1, "Set");
20559
- var _Set = Set$2;
20560
- var getNative = _getNative, root = _root;
20561
- var WeakMap$2 = getNative(root, "WeakMap");
20562
- var _WeakMap = WeakMap$2;
20563
- var DataView = _DataView, Map$1 = _Map, Promise$1 = _Promise, Set$1 = _Set, WeakMap$1 = _WeakMap, baseGetTag = _baseGetTag, toSource = _toSource;
20564
- var mapTag = "[object Map]", objectTag$1 = "[object Object]", promiseTag = "[object Promise]", setTag = "[object Set]", weakMapTag = "[object WeakMap]";
20565
- var dataViewTag = "[object DataView]";
20566
- var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map$1), promiseCtorString = toSource(Promise$1), setCtorString = toSource(Set$1), weakMapCtorString = toSource(WeakMap$1);
20567
- var getTag$1 = baseGetTag;
20568
- if (DataView && getTag$1(new DataView(new ArrayBuffer(1))) != dataViewTag || Map$1 && getTag$1(new Map$1()) != mapTag || Promise$1 && getTag$1(Promise$1.resolve()) != promiseTag || Set$1 && getTag$1(new Set$1()) != setTag || WeakMap$1 && getTag$1(new WeakMap$1()) != weakMapTag) {
20569
- getTag$1 = function(value) {
20570
- var result = baseGetTag(value), Ctor = result == objectTag$1 ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : "";
20571
- if (ctorString) {
20572
- switch (ctorString) {
20573
- case dataViewCtorString:
20574
- return dataViewTag;
20575
- case mapCtorString:
20576
- return mapTag;
20577
- case promiseCtorString:
20578
- return promiseTag;
20579
- case setCtorString:
20580
- return setTag;
20581
- case weakMapCtorString:
20582
- return weakMapTag;
20583
- }
20939
+ if (result && !skipCtor) {
20940
+ var objCtor = object.constructor, othCtor = other.constructor;
20941
+ if (objCtor != othCtor && ("constructor" in object && "constructor" in other) && !(typeof objCtor == "function" && objCtor instanceof objCtor && typeof othCtor == "function" && othCtor instanceof othCtor)) {
20942
+ result = false;
20584
20943
  }
20585
- return result;
20586
- };
20944
+ }
20945
+ stack["delete"](object);
20946
+ stack["delete"](other);
20947
+ return result;
20587
20948
  }
20588
- var _getTag = getTag$1;
20589
- var Stack = _Stack, equalArrays = _equalArrays, equalByTag = _equalByTag, equalObjects = _equalObjects, getTag = _getTag, isArray2 = isArray_1, isBuffer = isBuffer$2.exports, isTypedArray = isTypedArray_1;
20949
+ var _equalObjects = equalObjects$1;
20950
+ var Stack = _Stack, equalArrays = _equalArrays, equalByTag = _equalByTag, equalObjects = _equalObjects, getTag = _getTag, isArray2 = isArray_1, isBuffer = isBuffer$3.exports, isTypedArray = isTypedArray_1;
20590
20951
  var COMPARE_PARTIAL_FLAG = 1;
20591
20952
  var argsTag = "[object Arguments]", arrayTag = "[object Array]", objectTag = "[object Object]";
20592
20953
  var objectProto = Object.prototype;
@@ -24784,6 +25145,125 @@ const LineHeight = Extension.create({
24784
25145
  };
24785
25146
  }
24786
25147
  });
25148
+ class RemoveNodeMarkStep extends Step {
25149
+ static fromJSON(schema, json) {
25150
+ if (typeof json.pos != "number") {
25151
+ throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");
25152
+ }
25153
+ return new RemoveNodeMarkStep(json.pos, schema.markFromJSON(json.mark));
25154
+ }
25155
+ constructor(pos, mark) {
25156
+ super();
25157
+ this.pos = pos;
25158
+ this.mark = mark;
25159
+ }
25160
+ apply(doc2) {
25161
+ const node = doc2.nodeAt(this.pos);
25162
+ if (!node)
25163
+ return StepResult.fail("No node at mark step's position");
25164
+ const updated = node.type.create(node.attrs, null, this.mark.removeFromSet(node.marks));
25165
+ const slice2 = new Slice(Fragment.from(updated), 0, node.isLeaf ? 0 : 1);
25166
+ return StepResult.fromReplace(doc2, this.pos, this.pos + 1, slice2);
25167
+ }
25168
+ invert(doc2) {
25169
+ const node = doc2.nodeAt(this.pos);
25170
+ if (!node || !this.mark.isInSet(node.marks))
25171
+ return this;
25172
+ return new AddNodeMarkStep(this.pos, this.mark);
25173
+ }
25174
+ map(mapping) {
25175
+ const pos = mapping.mapResult(this.pos, 1);
25176
+ return pos.deletedAfter ? null : new RemoveNodeMarkStep(pos.pos, this.mark);
25177
+ }
25178
+ toJSON() {
25179
+ return { stepType: "removeNodeMark", pos: this.pos, mark: this.mark.toJSON() };
25180
+ }
25181
+ }
25182
+ Step.jsonID("removeNodeMark", RemoveNodeMarkStep);
25183
+ class AddNodeMarkStep extends Step {
25184
+ static fromJSON(schema, json) {
25185
+ if (typeof json.pos != "number") {
25186
+ throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");
25187
+ }
25188
+ return new AddNodeMarkStep(json.pos, schema.markFromJSON(json.mark));
25189
+ }
25190
+ constructor(pos, mark) {
25191
+ super();
25192
+ this.pos = pos;
25193
+ this.mark = mark;
25194
+ }
25195
+ apply(doc2) {
25196
+ const node = doc2.nodeAt(this.pos);
25197
+ if (!node)
25198
+ return StepResult.fail("No node at mark step's position");
25199
+ const updated = node.type.create(node.attrs, null, this.mark.addToSet(node.marks));
25200
+ const slice2 = new Slice(Fragment.from(updated), 0, node.isLeaf ? 0 : 1);
25201
+ return StepResult.fromReplace(doc2, this.pos, this.pos + 1, slice2);
25202
+ }
25203
+ invert(doc2) {
25204
+ const node = doc2.nodeAt(this.pos);
25205
+ if (node) {
25206
+ const newSet = this.mark.addToSet(node.marks);
25207
+ if (newSet.length === node.marks.length) {
25208
+ for (const mark of node.marks) {
25209
+ if (!mark.isInSet(newSet)) {
25210
+ return new AddNodeMarkStep(this.pos, mark);
25211
+ }
25212
+ }
25213
+ return new AddNodeMarkStep(this.pos, this.mark);
25214
+ }
25215
+ }
25216
+ return new RemoveNodeMarkStep(this.pos, this.mark);
25217
+ }
25218
+ map(mapping) {
25219
+ const pos = mapping.mapResult(this.pos, 1);
25220
+ return pos.deletedAfter ? null : new AddNodeMarkStep(pos.pos, this.mark);
25221
+ }
25222
+ toJSON() {
25223
+ return { stepType: "addNodeMark", pos: this.pos, mark: this.mark.toJSON() };
25224
+ }
25225
+ }
25226
+ Step.jsonID("addNodeMark", AddNodeMarkStep);
25227
+ class AttrStep extends Step {
25228
+ static fromJSON(schema, json) {
25229
+ if (typeof json.pos != "number" || typeof json.attr != "string") {
25230
+ throw new RangeError("Invalid input for AttrStep.fromJSON");
25231
+ }
25232
+ return new AttrStep(json.pos, json.attr, json.value);
25233
+ }
25234
+ constructor(pos, attr, value) {
25235
+ super();
25236
+ this.pos = pos;
25237
+ this.attr = attr;
25238
+ this.value = value;
25239
+ }
25240
+ apply(doc2) {
25241
+ const node = doc2.nodeAt(this.pos);
25242
+ if (!node)
25243
+ return StepResult.fail("No node at attribute step's position");
25244
+ const attrs = /* @__PURE__ */ Object.create(null);
25245
+ for (let name in node.attrs)
25246
+ attrs[name] = node.attrs[name];
25247
+ attrs[this.attr] = this.value;
25248
+ const updated = node.type.create(attrs, null, node.marks);
25249
+ const slice2 = new Slice(Fragment.from(updated), 0, node.isLeaf ? 0 : 1);
25250
+ return StepResult.fromReplace(doc2, this.pos, this.pos + 1, slice2);
25251
+ }
25252
+ getMap() {
25253
+ return StepMap.empty;
25254
+ }
25255
+ invert(doc2) {
25256
+ return new AttrStep(this.pos, this.attr, doc2.nodeAt(this.pos).attrs[this.attr]);
25257
+ }
25258
+ map(mapping) {
25259
+ let pos = mapping.mapResult(this.pos, 1);
25260
+ return pos.deletedAfter ? null : new AttrStep(pos.pos, this.attr, this.value);
25261
+ }
25262
+ toJSON() {
25263
+ return { stepType: "attr", pos: this.pos, attr: this.attr, value: this.value };
25264
+ }
25265
+ }
25266
+ Step.jsonID("attr", AttrStep);
24787
25267
  const ListItem$1 = Node.create({
24788
25268
  name: "listItem",
24789
25269
  addOptions() {
@@ -24886,15 +25366,28 @@ const List = Node.create({
24886
25366
  applyList: createCommand(({ commands: commands2, chain }, type) => {
24887
25367
  const currentType = unref(commands2.getListType());
24888
25368
  if (currentType === type) {
24889
- commands2.applyDefaultPreset();
25369
+ commands2.removeList();
24890
25370
  return;
24891
25371
  }
24892
- return chain().applyDefaultPreset()._addList(type).run();
25372
+ return chain().applyDefaultPreset().toggleList(NodeTypes.LIST, NodeTypes.LIST_ITEM).setBlockAttributes("bullet", { type }).run();
24893
25373
  }),
24894
- _addList: createCommand(({ chain }, type) => {
24895
- return chain().toggleList(NodeTypes.LIST, NodeTypes.LIST_ITEM).setBlockAttributes("bullet", { type }).run();
24896
- }),
24897
- removeList: createCommand(({ commands: commands2 }) => {
25374
+ removeList: createCommand(({ commands: commands2, state }) => {
25375
+ const { tr, doc: doc2, selection } = state;
25376
+ const from2 = selection.$from.start();
25377
+ const to = selection.$to.end();
25378
+ doc2.nodesBetween(from2, to, (node, position, parent) => {
25379
+ if ([NodeTypes.LIST, NodeTypes.LIST_ITEM].includes(node.type.name))
25380
+ return;
25381
+ if (parent.type.name !== NodeTypes.LIST_ITEM)
25382
+ return false;
25383
+ const addingMarks = parent.marks.filter(function(mark) {
25384
+ return !mark.type.isInSet(node.marks);
25385
+ });
25386
+ for (const mark of addingMarks) {
25387
+ tr.step(new AddNodeMarkStep(position, copyMark(mark)));
25388
+ }
25389
+ return false;
25390
+ });
24898
25391
  commands2.liftListItem(NodeTypes.LIST_ITEM);
24899
25392
  })
24900
25393
  };
@@ -26629,125 +27122,6 @@ const History = Extension.create({
26629
27122
  };
26630
27123
  }
26631
27124
  });
26632
- class RemoveNodeMarkStep extends Step {
26633
- static fromJSON(schema, json) {
26634
- if (typeof json.pos != "number") {
26635
- throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");
26636
- }
26637
- return new RemoveNodeMarkStep(json.pos, schema.markFromJSON(json.mark));
26638
- }
26639
- constructor(pos, mark) {
26640
- super();
26641
- this.pos = pos;
26642
- this.mark = mark;
26643
- }
26644
- apply(doc2) {
26645
- const node = doc2.nodeAt(this.pos);
26646
- if (!node)
26647
- return StepResult.fail("No node at mark step's position");
26648
- const updated = node.type.create(node.attrs, null, this.mark.removeFromSet(node.marks));
26649
- const slice2 = new Slice(Fragment.from(updated), 0, node.isLeaf ? 0 : 1);
26650
- return StepResult.fromReplace(doc2, this.pos, this.pos + 1, slice2);
26651
- }
26652
- invert(doc2) {
26653
- const node = doc2.nodeAt(this.pos);
26654
- if (!node || !this.mark.isInSet(node.marks))
26655
- return this;
26656
- return new AddNodeMarkStep(this.pos, this.mark);
26657
- }
26658
- map(mapping) {
26659
- const pos = mapping.mapResult(this.pos, 1);
26660
- return pos.deletedAfter ? null : new RemoveNodeMarkStep(pos.pos, this.mark);
26661
- }
26662
- toJSON() {
26663
- return { stepType: "removeNodeMark", pos: this.pos, mark: this.mark.toJSON() };
26664
- }
26665
- }
26666
- Step.jsonID("removeNodeMark", RemoveNodeMarkStep);
26667
- class AddNodeMarkStep extends Step {
26668
- static fromJSON(schema, json) {
26669
- if (typeof json.pos != "number") {
26670
- throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");
26671
- }
26672
- return new AddNodeMarkStep(json.pos, schema.markFromJSON(json.mark));
26673
- }
26674
- constructor(pos, mark) {
26675
- super();
26676
- this.pos = pos;
26677
- this.mark = mark;
26678
- }
26679
- apply(doc2) {
26680
- const node = doc2.nodeAt(this.pos);
26681
- if (!node)
26682
- return StepResult.fail("No node at mark step's position");
26683
- const updated = node.type.create(node.attrs, null, this.mark.addToSet(node.marks));
26684
- const slice2 = new Slice(Fragment.from(updated), 0, node.isLeaf ? 0 : 1);
26685
- return StepResult.fromReplace(doc2, this.pos, this.pos + 1, slice2);
26686
- }
26687
- invert(doc2) {
26688
- const node = doc2.nodeAt(this.pos);
26689
- if (node) {
26690
- const newSet = this.mark.addToSet(node.marks);
26691
- if (newSet.length === node.marks.length) {
26692
- for (const mark of node.marks) {
26693
- if (!mark.isInSet(newSet)) {
26694
- return new AddNodeMarkStep(this.pos, mark);
26695
- }
26696
- }
26697
- return new AddNodeMarkStep(this.pos, this.mark);
26698
- }
26699
- }
26700
- return new RemoveNodeMarkStep(this.pos, this.mark);
26701
- }
26702
- map(mapping) {
26703
- const pos = mapping.mapResult(this.pos, 1);
26704
- return pos.deletedAfter ? null : new AddNodeMarkStep(pos.pos, this.mark);
26705
- }
26706
- toJSON() {
26707
- return { stepType: "addNodeMark", pos: this.pos, mark: this.mark.toJSON() };
26708
- }
26709
- }
26710
- Step.jsonID("addNodeMark", AddNodeMarkStep);
26711
- class AttrStep extends Step {
26712
- static fromJSON(schema, json) {
26713
- if (typeof json.pos != "number" || typeof json.attr != "string") {
26714
- throw new RangeError("Invalid input for AttrStep.fromJSON");
26715
- }
26716
- return new AttrStep(json.pos, json.attr, json.value);
26717
- }
26718
- constructor(pos, attr, value) {
26719
- super();
26720
- this.pos = pos;
26721
- this.attr = attr;
26722
- this.value = value;
26723
- }
26724
- apply(doc2) {
26725
- const node = doc2.nodeAt(this.pos);
26726
- if (!node)
26727
- return StepResult.fail("No node at attribute step's position");
26728
- const attrs = /* @__PURE__ */ Object.create(null);
26729
- for (let name in node.attrs)
26730
- attrs[name] = node.attrs[name];
26731
- attrs[this.attr] = this.value;
26732
- const updated = node.type.create(attrs, null, node.marks);
26733
- const slice2 = new Slice(Fragment.from(updated), 0, node.isLeaf ? 0 : 1);
26734
- return StepResult.fromReplace(doc2, this.pos, this.pos + 1, slice2);
26735
- }
26736
- getMap() {
26737
- return StepMap.empty;
26738
- }
26739
- invert(doc2) {
26740
- return new AttrStep(this.pos, this.attr, doc2.nodeAt(this.pos).attrs[this.attr]);
26741
- }
26742
- map(mapping) {
26743
- let pos = mapping.mapResult(this.pos, 1);
26744
- return pos.deletedAfter ? null : new AttrStep(pos.pos, this.attr, this.value);
26745
- }
26746
- toJSON() {
26747
- return { stepType: "attr", pos: this.pos, attr: this.attr, value: this.value };
26748
- }
26749
- }
26750
- Step.jsonID("attr", AttrStep);
26751
27125
  const NodeProcessor = Extension.create({
26752
27126
  name: "node_processor",
26753
27127
  addCommands() {