@matdata/yasgui-graph-plugin 1.2.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +310 -301
- package/dist/yasgui-graph-plugin.cjs.css +103 -0
- package/dist/yasgui-graph-plugin.cjs.css.map +7 -0
- package/dist/yasgui-graph-plugin.cjs.js +456 -756
- package/dist/yasgui-graph-plugin.cjs.js.map +4 -4
- package/dist/yasgui-graph-plugin.css +117 -0
- package/dist/yasgui-graph-plugin.esm.css +103 -0
- package/dist/yasgui-graph-plugin.esm.css.map +7 -0
- package/dist/yasgui-graph-plugin.esm.js +451 -752
- package/dist/yasgui-graph-plugin.esm.js.map +4 -4
- package/dist/yasgui-graph-plugin.min.css +2 -0
- package/dist/yasgui-graph-plugin.min.css.map +7 -0
- package/dist/yasgui-graph-plugin.min.js +17 -17
- package/dist/yasgui-graph-plugin.min.js.map +4 -4
- package/package.json +22 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// src/prefixUtils.
|
|
1
|
+
// src/prefixUtils.ts
|
|
2
2
|
function extractPrefixes(yasr) {
|
|
3
3
|
const prefixMap = /* @__PURE__ */ new Map();
|
|
4
4
|
if (yasr && yasr.getPrefixes) {
|
|
@@ -25,8 +25,7 @@ function extractPrefixes(yasr) {
|
|
|
25
25
|
return prefixMap;
|
|
26
26
|
}
|
|
27
27
|
function applyPrefix(uri, prefixMap) {
|
|
28
|
-
if (!uri || typeof uri !== "string")
|
|
29
|
-
return uri;
|
|
28
|
+
if (!uri || typeof uri !== "string") return uri;
|
|
30
29
|
for (const [namespace, prefix] of prefixMap.entries()) {
|
|
31
30
|
if (uri.startsWith(namespace)) {
|
|
32
31
|
const localName = uri.substring(namespace.length);
|
|
@@ -36,19 +35,21 @@ function applyPrefix(uri, prefixMap) {
|
|
|
36
35
|
return uri;
|
|
37
36
|
}
|
|
38
37
|
function truncateLabel(text, maxLength = 50) {
|
|
39
|
-
if (!text || typeof text !== "string")
|
|
40
|
-
|
|
41
|
-
if (text.length <= maxLength)
|
|
42
|
-
return text;
|
|
38
|
+
if (!text || typeof text !== "string") return text;
|
|
39
|
+
if (text.length <= maxLength) return text;
|
|
43
40
|
return text.substring(0, maxLength - 3) + "...";
|
|
44
41
|
}
|
|
45
42
|
|
|
46
|
-
// src/networkConfig.
|
|
43
|
+
// src/networkConfig.ts
|
|
47
44
|
function getDefaultNetworkOptions(themeColors) {
|
|
48
45
|
return {
|
|
49
46
|
autoResize: true,
|
|
50
47
|
width: "100%",
|
|
51
48
|
height: "100%",
|
|
49
|
+
// Configure canvas background color based on theme
|
|
50
|
+
configure: {
|
|
51
|
+
enabled: false
|
|
52
|
+
},
|
|
52
53
|
physics: {
|
|
53
54
|
enabled: true,
|
|
54
55
|
stabilization: {
|
|
@@ -93,7 +94,8 @@ function getDefaultNetworkOptions(themeColors) {
|
|
|
93
94
|
},
|
|
94
95
|
smooth: {
|
|
95
96
|
enabled: true,
|
|
96
|
-
type: "dynamic"
|
|
97
|
+
type: "dynamic",
|
|
98
|
+
roundness: 0.5
|
|
97
99
|
},
|
|
98
100
|
font: {
|
|
99
101
|
size: 12,
|
|
@@ -110,7 +112,7 @@ function getDefaultNetworkOptions(themeColors) {
|
|
|
110
112
|
};
|
|
111
113
|
}
|
|
112
114
|
|
|
113
|
-
// src/parsers.
|
|
115
|
+
// src/parsers.ts
|
|
114
116
|
function parseConstructResults(yasrResults) {
|
|
115
117
|
const triples = [];
|
|
116
118
|
if (!yasrResults || !yasrResults.getBindings) {
|
|
@@ -136,7 +138,7 @@ function parseConstructResults(yasrResults) {
|
|
|
136
138
|
return triples;
|
|
137
139
|
}
|
|
138
140
|
|
|
139
|
-
// src/colorUtils.
|
|
141
|
+
// src/colorUtils.ts
|
|
140
142
|
function getNodeColor(node, triples, themeColors) {
|
|
141
143
|
if (node.uri && node.uri.startsWith("_:")) {
|
|
142
144
|
return themeColors.blankNode;
|
|
@@ -153,7 +155,7 @@ function getNodeColor(node, triples, themeColors) {
|
|
|
153
155
|
return themeColors.uri;
|
|
154
156
|
}
|
|
155
157
|
|
|
156
|
-
// src/transformers.
|
|
158
|
+
// src/transformers.ts
|
|
157
159
|
function createNodeMap(triples, prefixMap, themeColors) {
|
|
158
160
|
const nodeMap = /* @__PURE__ */ new Map();
|
|
159
161
|
let nodeId = 1;
|
|
@@ -175,7 +177,9 @@ function createNodeMap(triples, prefixMap, themeColors) {
|
|
|
175
177
|
if (!nodeMap.has(objValue)) {
|
|
176
178
|
const isLiteral = triple.object.type === "literal";
|
|
177
179
|
const isBlankNode = !isLiteral && objValue.startsWith("_:");
|
|
178
|
-
let label
|
|
180
|
+
let label;
|
|
181
|
+
let fullValue;
|
|
182
|
+
let title;
|
|
179
183
|
if (isLiteral) {
|
|
180
184
|
label = truncateLabel(objValue);
|
|
181
185
|
fullValue = objValue;
|
|
@@ -212,8 +216,7 @@ function createEdgesArray(triples, nodeMap, prefixMap) {
|
|
|
212
216
|
triples.forEach((triple) => {
|
|
213
217
|
const fromNode = nodeMap.get(triple.subject);
|
|
214
218
|
const toNode = nodeMap.get(triple.object.value);
|
|
215
|
-
if (!fromNode || !toNode)
|
|
216
|
-
return;
|
|
219
|
+
if (!fromNode || !toNode) return;
|
|
217
220
|
const edgeKey = `${fromNode.id}-${triple.predicate}-${toNode.id}`;
|
|
218
221
|
if (!edgeSet.has(edgeKey)) {
|
|
219
222
|
edgeSet.add(edgeKey);
|
|
@@ -249,9 +252,9 @@ var global$n = (
|
|
|
249
252
|
// eslint-disable-next-line es/no-global-this -- safe
|
|
250
253
|
check(typeof globalThis == "object" && globalThis) || check(typeof window == "object" && window) || // eslint-disable-next-line no-restricted-globals -- safe
|
|
251
254
|
check(typeof self == "object" && self) || check(typeof commonjsGlobal == "object" && commonjsGlobal) || // eslint-disable-next-line no-new-func -- fallback
|
|
252
|
-
/* @__PURE__ */ function() {
|
|
255
|
+
/* @__PURE__ */ (function() {
|
|
253
256
|
return this;
|
|
254
|
-
}() || commonjsGlobal || Function("return this")()
|
|
257
|
+
})() || commonjsGlobal || Function("return this")()
|
|
255
258
|
);
|
|
256
259
|
var fails$v = function(exec2) {
|
|
257
260
|
try {
|
|
@@ -262,8 +265,8 @@ var fails$v = function(exec2) {
|
|
|
262
265
|
};
|
|
263
266
|
var fails$u = fails$v;
|
|
264
267
|
var functionBindNative = !fails$u(function() {
|
|
265
|
-
var test2 = function() {
|
|
266
|
-
}.bind();
|
|
268
|
+
var test2 = (function() {
|
|
269
|
+
}).bind();
|
|
267
270
|
return typeof test2 != "function" || test2.hasOwnProperty("prototype");
|
|
268
271
|
});
|
|
269
272
|
var NATIVE_BIND$4 = functionBindNative;
|
|
@@ -291,8 +294,7 @@ var classofRaw$2 = function(it2) {
|
|
|
291
294
|
var classofRaw$1 = classofRaw$2;
|
|
292
295
|
var uncurryThis$w = functionUncurryThis;
|
|
293
296
|
var functionUncurryThisClause = function(fn) {
|
|
294
|
-
if (classofRaw$1(fn) === "Function")
|
|
295
|
-
return uncurryThis$w(fn);
|
|
297
|
+
if (classofRaw$1(fn) === "Function") return uncurryThis$w(fn);
|
|
296
298
|
};
|
|
297
299
|
var documentAll$2 = typeof document == "object" && document.all;
|
|
298
300
|
var IS_HTMLDDA = typeof documentAll$2 == "undefined" && documentAll$2 !== void 0;
|
|
@@ -351,8 +353,7 @@ var isNullOrUndefined$6 = function(it2) {
|
|
|
351
353
|
var isNullOrUndefined$5 = isNullOrUndefined$6;
|
|
352
354
|
var $TypeError$e = TypeError;
|
|
353
355
|
var requireObjectCoercible$5 = function(it2) {
|
|
354
|
-
if (isNullOrUndefined$5(it2))
|
|
355
|
-
throw new $TypeError$e("Can't call method on " + it2);
|
|
356
|
+
if (isNullOrUndefined$5(it2)) throw new $TypeError$e("Can't call method on " + it2);
|
|
356
357
|
return it2;
|
|
357
358
|
};
|
|
358
359
|
var IndexedObject$3 = indexedObject;
|
|
@@ -397,8 +398,7 @@ if (!version && userAgent$2) {
|
|
|
397
398
|
match = userAgent$2.match(/Edge\/(\d+)/);
|
|
398
399
|
if (!match || match[1] >= 74) {
|
|
399
400
|
match = userAgent$2.match(/Chrome\/(\d+)/);
|
|
400
|
-
if (match)
|
|
401
|
-
version = +match[1];
|
|
401
|
+
if (match) version = +match[1];
|
|
402
402
|
}
|
|
403
403
|
}
|
|
404
404
|
var engineV8Version = version;
|
|
@@ -407,7 +407,7 @@ var fails$r = fails$v;
|
|
|
407
407
|
var global$k = global$n;
|
|
408
408
|
var $String$4 = global$k.String;
|
|
409
409
|
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$r(function() {
|
|
410
|
-
var symbol2 = Symbol("symbol detection");
|
|
410
|
+
var symbol2 = /* @__PURE__ */ Symbol("symbol detection");
|
|
411
411
|
return !$String$4(symbol2) || !(Object(symbol2) instanceof Symbol) || // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
412
412
|
!Symbol.sham && V8_VERSION$2 && V8_VERSION$2 < 41;
|
|
413
413
|
});
|
|
@@ -436,8 +436,7 @@ var isCallable$d = isCallable$h;
|
|
|
436
436
|
var tryToString$4 = tryToString$5;
|
|
437
437
|
var $TypeError$d = TypeError;
|
|
438
438
|
var aCallable$7 = function(argument) {
|
|
439
|
-
if (isCallable$d(argument))
|
|
440
|
-
return argument;
|
|
439
|
+
if (isCallable$d(argument)) return argument;
|
|
441
440
|
throw new $TypeError$d(tryToString$4(argument) + " is not a function");
|
|
442
441
|
};
|
|
443
442
|
var aCallable$6 = aCallable$7;
|
|
@@ -452,12 +451,9 @@ var isObject$g = isObject$h;
|
|
|
452
451
|
var $TypeError$c = TypeError;
|
|
453
452
|
var ordinaryToPrimitive$1 = function(input, pref) {
|
|
454
453
|
var fn, val;
|
|
455
|
-
if (pref === "string" && isCallable$c(fn = input.toString) && !isObject$g(val = call$a(fn, input)))
|
|
456
|
-
|
|
457
|
-
if (isCallable$c(fn = input.
|
|
458
|
-
return val;
|
|
459
|
-
if (pref !== "string" && isCallable$c(fn = input.toString) && !isObject$g(val = call$a(fn, input)))
|
|
460
|
-
return val;
|
|
454
|
+
if (pref === "string" && isCallable$c(fn = input.toString) && !isObject$g(val = call$a(fn, input))) return val;
|
|
455
|
+
if (isCallable$c(fn = input.valueOf) && !isObject$g(val = call$a(fn, input))) return val;
|
|
456
|
+
if (pref !== "string" && isCallable$c(fn = input.toString) && !isObject$g(val = call$a(fn, input))) return val;
|
|
461
457
|
throw new $TypeError$c("Can't convert object to primitive value");
|
|
462
458
|
};
|
|
463
459
|
var shared$7 = { exports: {} };
|
|
@@ -529,20 +525,16 @@ var wellKnownSymbol$k = wellKnownSymbol$l;
|
|
|
529
525
|
var $TypeError$b = TypeError;
|
|
530
526
|
var TO_PRIMITIVE = wellKnownSymbol$k("toPrimitive");
|
|
531
527
|
var toPrimitive$6 = function(input, pref) {
|
|
532
|
-
if (!isObject$f(input) || isSymbol$4(input))
|
|
533
|
-
return input;
|
|
528
|
+
if (!isObject$f(input) || isSymbol$4(input)) return input;
|
|
534
529
|
var exoticToPrim = getMethod$2(input, TO_PRIMITIVE);
|
|
535
530
|
var result;
|
|
536
531
|
if (exoticToPrim) {
|
|
537
|
-
if (pref === void 0)
|
|
538
|
-
pref = "default";
|
|
532
|
+
if (pref === void 0) pref = "default";
|
|
539
533
|
result = call$9(exoticToPrim, input, pref);
|
|
540
|
-
if (!isObject$f(result) || isSymbol$4(result))
|
|
541
|
-
return result;
|
|
534
|
+
if (!isObject$f(result) || isSymbol$4(result)) return result;
|
|
542
535
|
throw new $TypeError$b("Can't convert object to primitive value");
|
|
543
536
|
}
|
|
544
|
-
if (pref === void 0)
|
|
545
|
-
pref = "number";
|
|
537
|
+
if (pref === void 0) pref = "number";
|
|
546
538
|
return ordinaryToPrimitive(input, pref);
|
|
547
539
|
};
|
|
548
540
|
var toPrimitive$5 = toPrimitive$6;
|
|
@@ -580,13 +572,11 @@ var $getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;
|
|
|
580
572
|
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$h ? $getOwnPropertyDescriptor$2 : function getOwnPropertyDescriptor(O, P) {
|
|
581
573
|
O = toIndexedObject$a(O);
|
|
582
574
|
P = toPropertyKey$3(P);
|
|
583
|
-
if (IE8_DOM_DEFINE$1)
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
if (hasOwn$h(O, P))
|
|
589
|
-
return createPropertyDescriptor$4(!call$8(propertyIsEnumerableModule$2.f, O, P), O[P]);
|
|
575
|
+
if (IE8_DOM_DEFINE$1) try {
|
|
576
|
+
return $getOwnPropertyDescriptor$2(O, P);
|
|
577
|
+
} catch (error) {
|
|
578
|
+
}
|
|
579
|
+
if (hasOwn$h(O, P)) return createPropertyDescriptor$4(!call$8(propertyIsEnumerableModule$2.f, O, P), O[P]);
|
|
590
580
|
};
|
|
591
581
|
var fails$p = fails$v;
|
|
592
582
|
var isCallable$b = isCallable$h;
|
|
@@ -626,8 +616,7 @@ var isObject$d = isObject$h;
|
|
|
626
616
|
var $String$2 = String;
|
|
627
617
|
var $TypeError$a = TypeError;
|
|
628
618
|
var anObject$9 = function(argument) {
|
|
629
|
-
if (isObject$d(argument))
|
|
630
|
-
return argument;
|
|
619
|
+
if (isObject$d(argument)) return argument;
|
|
631
620
|
throw new $TypeError$a($String$2(argument) + " is not an object");
|
|
632
621
|
};
|
|
633
622
|
var DESCRIPTORS$f = descriptors;
|
|
@@ -661,15 +650,12 @@ objectDefineProperty.f = DESCRIPTORS$f ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
|
|
|
661
650
|
anObject$8(O);
|
|
662
651
|
P = toPropertyKey$2(P);
|
|
663
652
|
anObject$8(Attributes);
|
|
664
|
-
if (IE8_DOM_DEFINE)
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
if ("
|
|
670
|
-
throw new $TypeError$9("Accessors not supported");
|
|
671
|
-
if ("value" in Attributes)
|
|
672
|
-
O[P] = Attributes.value;
|
|
653
|
+
if (IE8_DOM_DEFINE) try {
|
|
654
|
+
return $defineProperty$1(O, P, Attributes);
|
|
655
|
+
} catch (error) {
|
|
656
|
+
}
|
|
657
|
+
if ("get" in Attributes || "set" in Attributes) throw new $TypeError$9("Accessors not supported");
|
|
658
|
+
if ("value" in Attributes) O[P] = Attributes.value;
|
|
673
659
|
return O;
|
|
674
660
|
};
|
|
675
661
|
var DESCRIPTORS$e = descriptors;
|
|
@@ -723,23 +709,16 @@ var _export = function(options, source) {
|
|
|
723
709
|
FORCED2 = isForced(GLOBAL ? key : TARGET + (STATIC ? "." : "#") + key, options.forced);
|
|
724
710
|
USE_NATIVE = !FORCED2 && nativeSource && hasOwn$g(nativeSource, key);
|
|
725
711
|
targetProperty = target[key];
|
|
726
|
-
if (USE_NATIVE)
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
} else
|
|
731
|
-
nativeProperty = nativeSource[key];
|
|
712
|
+
if (USE_NATIVE) if (options.dontCallGetSet) {
|
|
713
|
+
descriptor = getOwnPropertyDescriptor$5(nativeSource, key);
|
|
714
|
+
nativeProperty = descriptor && descriptor.value;
|
|
715
|
+
} else nativeProperty = nativeSource[key];
|
|
732
716
|
sourceProperty = USE_NATIVE && nativeProperty ? nativeProperty : source[key];
|
|
733
|
-
if (USE_NATIVE && typeof targetProperty == typeof sourceProperty)
|
|
734
|
-
|
|
735
|
-
if (options.
|
|
736
|
-
|
|
737
|
-
else
|
|
738
|
-
resultProperty = wrapConstructor(sourceProperty);
|
|
739
|
-
else if (PROTO && isCallable$a(sourceProperty))
|
|
740
|
-
resultProperty = uncurryThis$q(sourceProperty);
|
|
741
|
-
else
|
|
742
|
-
resultProperty = sourceProperty;
|
|
717
|
+
if (USE_NATIVE && typeof targetProperty == typeof sourceProperty) continue;
|
|
718
|
+
if (options.bind && USE_NATIVE) resultProperty = bind$9(sourceProperty, global$f);
|
|
719
|
+
else if (options.wrap && USE_NATIVE) resultProperty = wrapConstructor(sourceProperty);
|
|
720
|
+
else if (PROTO && isCallable$a(sourceProperty)) resultProperty = uncurryThis$q(sourceProperty);
|
|
721
|
+
else resultProperty = sourceProperty;
|
|
743
722
|
if (options.sham || sourceProperty && sourceProperty.sham || targetProperty && targetProperty.sham) {
|
|
744
723
|
createNonEnumerableProperty$5(resultProperty, "sham", true);
|
|
745
724
|
}
|
|
@@ -792,17 +771,13 @@ var createMethod$5 = function(IS_INCLUDES) {
|
|
|
792
771
|
var length2 = lengthOfArrayLike$b(O);
|
|
793
772
|
var index = toAbsoluteIndex$4(fromIndex, length2);
|
|
794
773
|
var value;
|
|
795
|
-
if (IS_INCLUDES && el !== el)
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
for (; length2 > index; index++) {
|
|
803
|
-
if ((IS_INCLUDES || index in O) && O[index] === el)
|
|
804
|
-
return IS_INCLUDES || index || 0;
|
|
805
|
-
}
|
|
774
|
+
if (IS_INCLUDES && el !== el) while (length2 > index) {
|
|
775
|
+
value = O[index++];
|
|
776
|
+
if (value !== value) return true;
|
|
777
|
+
}
|
|
778
|
+
else for (; length2 > index; index++) {
|
|
779
|
+
if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
|
|
780
|
+
}
|
|
806
781
|
return !IS_INCLUDES && -1;
|
|
807
782
|
};
|
|
808
783
|
};
|
|
@@ -826,12 +801,10 @@ var objectKeysInternal = function(object2, names) {
|
|
|
826
801
|
var i = 0;
|
|
827
802
|
var result = [];
|
|
828
803
|
var key;
|
|
829
|
-
for (key in O)
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
~indexOf$4(result, key) || push$5(result, key);
|
|
834
|
-
}
|
|
804
|
+
for (key in O) !hasOwn$f(hiddenKeys$5, key) && hasOwn$f(O, key) && push$5(result, key);
|
|
805
|
+
while (names.length > i) if (hasOwn$f(O, key = names[i++])) {
|
|
806
|
+
~indexOf$4(result, key) || push$5(result, key);
|
|
807
|
+
}
|
|
835
808
|
return result;
|
|
836
809
|
};
|
|
837
810
|
var enumBugKeys$3 = [
|
|
@@ -871,11 +844,10 @@ var objectAssign = !$assign || fails$n(function() {
|
|
|
871
844
|
enumerable: false
|
|
872
845
|
});
|
|
873
846
|
}
|
|
874
|
-
}), { b: 2 })).b !== 1)
|
|
875
|
-
return true;
|
|
847
|
+
}), { b: 2 })).b !== 1) return true;
|
|
876
848
|
var A = {};
|
|
877
849
|
var B = {};
|
|
878
|
-
var symbol2 = Symbol("assign detection");
|
|
850
|
+
var symbol2 = /* @__PURE__ */ Symbol("assign detection");
|
|
879
851
|
var alphabet = "abcdefghijklmnopqrst";
|
|
880
852
|
A[symbol2] = 7;
|
|
881
853
|
alphabet.split("").forEach(function(chr) {
|
|
@@ -896,8 +868,7 @@ var objectAssign = !$assign || fails$n(function() {
|
|
|
896
868
|
var key;
|
|
897
869
|
while (length2 > j) {
|
|
898
870
|
key = keys4[j++];
|
|
899
|
-
if (!DESCRIPTORS$d || call$7(propertyIsEnumerable4, S, key))
|
|
900
|
-
T[key] = S[key];
|
|
871
|
+
if (!DESCRIPTORS$d || call$7(propertyIsEnumerable4, S, key)) T[key] = S[key];
|
|
901
872
|
}
|
|
902
873
|
}
|
|
903
874
|
return T;
|
|
@@ -929,8 +900,7 @@ var construct$1 = function(C, argsLength, args) {
|
|
|
929
900
|
if (!hasOwn$e(factories, argsLength)) {
|
|
930
901
|
var list = [];
|
|
931
902
|
var i = 0;
|
|
932
|
-
for (; i < argsLength; i++)
|
|
933
|
-
list[i] = "a[" + i + "]";
|
|
903
|
+
for (; i < argsLength; i++) list[i] = "a[" + i + "]";
|
|
934
904
|
factories[argsLength] = $Function("C,a", "return new C(" + join(list, ",") + ")");
|
|
935
905
|
}
|
|
936
906
|
return factories[argsLength](C, args);
|
|
@@ -943,8 +913,7 @@ var functionBind = NATIVE_BIND ? $Function.bind : function bind(that) {
|
|
|
943
913
|
var args = concat$5(partArgs, arraySlice$4(arguments));
|
|
944
914
|
return this instanceof boundFunction ? construct$1(F, args.length, args) : F.apply(that, args);
|
|
945
915
|
};
|
|
946
|
-
if (isObject$c(Prototype))
|
|
947
|
-
boundFunction.prototype = Prototype;
|
|
916
|
+
if (isObject$c(Prototype)) boundFunction.prototype = Prototype;
|
|
948
917
|
return boundFunction;
|
|
949
918
|
};
|
|
950
919
|
var $$L = _export;
|
|
@@ -1138,8 +1107,7 @@ function getShape(name) {
|
|
|
1138
1107
|
}
|
|
1139
1108
|
}
|
|
1140
1109
|
function styleInject(css, ref) {
|
|
1141
|
-
if (ref === void 0)
|
|
1142
|
-
ref = {};
|
|
1110
|
+
if (ref === void 0) ref = {};
|
|
1143
1111
|
var insertAt = ref.insertAt;
|
|
1144
1112
|
if (!css || typeof document === "undefined") {
|
|
1145
1113
|
return;
|
|
@@ -1766,8 +1734,7 @@ var componentEmitter = { exports: {} };
|
|
|
1766
1734
|
module.exports = Emitter2;
|
|
1767
1735
|
}
|
|
1768
1736
|
function Emitter2(obj) {
|
|
1769
|
-
if (obj)
|
|
1770
|
-
return mixin(obj);
|
|
1737
|
+
if (obj) return mixin(obj);
|
|
1771
1738
|
}
|
|
1772
1739
|
function mixin(obj) {
|
|
1773
1740
|
for (var key in Emitter2.prototype) {
|
|
@@ -1796,8 +1763,7 @@ var componentEmitter = { exports: {} };
|
|
|
1796
1763
|
return this;
|
|
1797
1764
|
}
|
|
1798
1765
|
var callbacks = this._callbacks["$" + event];
|
|
1799
|
-
if (!callbacks)
|
|
1800
|
-
return this;
|
|
1766
|
+
if (!callbacks) return this;
|
|
1801
1767
|
if (1 == arguments.length) {
|
|
1802
1768
|
delete this._callbacks["$" + event];
|
|
1803
1769
|
return this;
|
|
@@ -1846,8 +1812,7 @@ var isArray$c = Array.isArray || function isArray(argument) {
|
|
|
1846
1812
|
var $TypeError$8 = TypeError;
|
|
1847
1813
|
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
1848
1814
|
var doesNotExceedSafeInteger$3 = function(it2) {
|
|
1849
|
-
if (it2 > MAX_SAFE_INTEGER)
|
|
1850
|
-
throw $TypeError$8("Maximum allowed index exceeded");
|
|
1815
|
+
if (it2 > MAX_SAFE_INTEGER) throw $TypeError$8("Maximum allowed index exceeded");
|
|
1851
1816
|
return it2;
|
|
1852
1817
|
};
|
|
1853
1818
|
var toPropertyKey$1 = toPropertyKey$4;
|
|
@@ -1855,10 +1820,8 @@ var definePropertyModule$2 = objectDefineProperty;
|
|
|
1855
1820
|
var createPropertyDescriptor$2 = createPropertyDescriptor$5;
|
|
1856
1821
|
var createProperty$5 = function(object2, key, value) {
|
|
1857
1822
|
var propertyKey = toPropertyKey$1(key);
|
|
1858
|
-
if (propertyKey in object2)
|
|
1859
|
-
|
|
1860
|
-
else
|
|
1861
|
-
object2[propertyKey] = value;
|
|
1823
|
+
if (propertyKey in object2) definePropertyModule$2.f(object2, propertyKey, createPropertyDescriptor$2(0, value));
|
|
1824
|
+
else object2[propertyKey] = value;
|
|
1862
1825
|
};
|
|
1863
1826
|
var wellKnownSymbol$j = wellKnownSymbol$l;
|
|
1864
1827
|
var TO_STRING_TAG$3 = wellKnownSymbol$j("toStringTag");
|
|
@@ -1871,9 +1834,9 @@ var classofRaw = classofRaw$2;
|
|
|
1871
1834
|
var wellKnownSymbol$i = wellKnownSymbol$l;
|
|
1872
1835
|
var TO_STRING_TAG$2 = wellKnownSymbol$i("toStringTag");
|
|
1873
1836
|
var $Object$2 = Object;
|
|
1874
|
-
var CORRECT_ARGUMENTS = classofRaw(/* @__PURE__ */ function() {
|
|
1837
|
+
var CORRECT_ARGUMENTS = classofRaw(/* @__PURE__ */ (function() {
|
|
1875
1838
|
return arguments;
|
|
1876
|
-
}()) === "Arguments";
|
|
1839
|
+
})()) === "Arguments";
|
|
1877
1840
|
var tryGet = function(it2, key) {
|
|
1878
1841
|
try {
|
|
1879
1842
|
return it2[key];
|
|
@@ -1908,8 +1871,7 @@ var constructorRegExp = /^\s*(?:class|function)\b/;
|
|
|
1908
1871
|
var exec$2 = uncurryThis$k(constructorRegExp.exec);
|
|
1909
1872
|
var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
|
|
1910
1873
|
var isConstructorModern = function isConstructor(argument) {
|
|
1911
|
-
if (!isCallable$7(argument))
|
|
1912
|
-
return false;
|
|
1874
|
+
if (!isCallable$7(argument)) return false;
|
|
1913
1875
|
try {
|
|
1914
1876
|
construct(noop, empty, argument);
|
|
1915
1877
|
return true;
|
|
@@ -1918,8 +1880,7 @@ var isConstructorModern = function isConstructor(argument) {
|
|
|
1918
1880
|
}
|
|
1919
1881
|
};
|
|
1920
1882
|
var isConstructorLegacy = function isConstructor2(argument) {
|
|
1921
|
-
if (!isCallable$7(argument))
|
|
1922
|
-
return false;
|
|
1883
|
+
if (!isCallable$7(argument)) return false;
|
|
1923
1884
|
switch (classof$d(argument)) {
|
|
1924
1885
|
case "AsyncFunction":
|
|
1925
1886
|
case "GeneratorFunction":
|
|
@@ -1949,12 +1910,10 @@ var arraySpeciesConstructor$1 = function(originalArray) {
|
|
|
1949
1910
|
var C;
|
|
1950
1911
|
if (isArray$b(originalArray)) {
|
|
1951
1912
|
C = originalArray.constructor;
|
|
1952
|
-
if (isConstructor$1(C) && (C === $Array$2 || isArray$b(C.prototype)))
|
|
1953
|
-
C = void 0;
|
|
1913
|
+
if (isConstructor$1(C) && (C === $Array$2 || isArray$b(C.prototype))) C = void 0;
|
|
1954
1914
|
else if (isObject$b(C)) {
|
|
1955
1915
|
C = C[SPECIES$3];
|
|
1956
|
-
if (C === null)
|
|
1957
|
-
C = void 0;
|
|
1916
|
+
if (C === null) C = void 0;
|
|
1958
1917
|
}
|
|
1959
1918
|
}
|
|
1960
1919
|
return C === void 0 ? $Array$2 : C;
|
|
@@ -1996,8 +1955,7 @@ var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails$k(function() {
|
|
|
1996
1955
|
return array2.concat()[0] !== array2;
|
|
1997
1956
|
});
|
|
1998
1957
|
var isConcatSpreadable = function(O) {
|
|
1999
|
-
if (!isObject$a(O))
|
|
2000
|
-
return false;
|
|
1958
|
+
if (!isObject$a(O)) return false;
|
|
2001
1959
|
var spreadable = O[IS_CONCAT_SPREADABLE];
|
|
2002
1960
|
return spreadable !== void 0 ? !!spreadable : isArray$a(O);
|
|
2003
1961
|
};
|
|
@@ -2014,9 +1972,7 @@ $$K({ target: "Array", proto: true, arity: 1, forced: FORCED$8 }, {
|
|
|
2014
1972
|
if (isConcatSpreadable(E)) {
|
|
2015
1973
|
len = lengthOfArrayLike$a(E);
|
|
2016
1974
|
doesNotExceedSafeInteger$2(n + len);
|
|
2017
|
-
for (k = 0; k < len; k++, n++)
|
|
2018
|
-
if (k in E)
|
|
2019
|
-
createProperty$4(A, n, E[k]);
|
|
1975
|
+
for (k = 0; k < len; k++, n++) if (k in E) createProperty$4(A, n, E[k]);
|
|
2020
1976
|
} else {
|
|
2021
1977
|
doesNotExceedSafeInteger$2(n + 1);
|
|
2022
1978
|
createProperty$4(A, n++, E);
|
|
@@ -2029,8 +1985,7 @@ $$K({ target: "Array", proto: true, arity: 1, forced: FORCED$8 }, {
|
|
|
2029
1985
|
var classof$c = classof$e;
|
|
2030
1986
|
var $String$1 = String;
|
|
2031
1987
|
var toString$a = function(argument) {
|
|
2032
|
-
if (classof$c(argument) === "Symbol")
|
|
2033
|
-
throw new TypeError("Cannot convert a Symbol value to a string");
|
|
1988
|
+
if (classof$c(argument) === "Symbol") throw new TypeError("Cannot convert a Symbol value to a string");
|
|
2034
1989
|
return $String$1(argument);
|
|
2035
1990
|
};
|
|
2036
1991
|
var objectDefineProperties = {};
|
|
@@ -2047,8 +2002,7 @@ objectDefineProperties.f = DESCRIPTORS$c && !V8_PROTOTYPE_DEFINE_BUG ? Object.de
|
|
|
2047
2002
|
var length2 = keys4.length;
|
|
2048
2003
|
var index = 0;
|
|
2049
2004
|
var key;
|
|
2050
|
-
while (length2 > index)
|
|
2051
|
-
definePropertyModule$1.f(O, key = keys4[index++], props[key]);
|
|
2005
|
+
while (length2 > index) definePropertyModule$1.f(O, key = keys4[index++], props[key]);
|
|
2052
2006
|
return O;
|
|
2053
2007
|
};
|
|
2054
2008
|
var getBuiltIn$8 = getBuiltIn$b;
|
|
@@ -2104,8 +2058,7 @@ var NullProtoObject = function() {
|
|
|
2104
2058
|
}
|
|
2105
2059
|
NullProtoObject = typeof document != "undefined" ? document.domain && activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame() : NullProtoObjectViaActiveX(activeXDocument);
|
|
2106
2060
|
var length2 = enumBugKeys$1.length;
|
|
2107
|
-
while (length2--)
|
|
2108
|
-
delete NullProtoObject[PROTOTYPE$1][enumBugKeys$1[length2]];
|
|
2061
|
+
while (length2--) delete NullProtoObject[PROTOTYPE$1][enumBugKeys$1[length2]];
|
|
2109
2062
|
return NullProtoObject();
|
|
2110
2063
|
};
|
|
2111
2064
|
hiddenKeys$4[IE_PROTO$1] = true;
|
|
@@ -2116,8 +2069,7 @@ var objectCreate = Object.create || function create(O, Properties) {
|
|
|
2116
2069
|
result = new EmptyConstructor();
|
|
2117
2070
|
EmptyConstructor[PROTOTYPE$1] = null;
|
|
2118
2071
|
result[IE_PROTO$1] = O;
|
|
2119
|
-
} else
|
|
2120
|
-
result = NullProtoObject();
|
|
2072
|
+
} else result = NullProtoObject();
|
|
2121
2073
|
return Properties === void 0 ? result : definePropertiesModule$1.f(result, Properties);
|
|
2122
2074
|
};
|
|
2123
2075
|
var objectGetOwnPropertyNames = {};
|
|
@@ -2139,8 +2091,7 @@ var arraySliceSimple = function(O, start, end) {
|
|
|
2139
2091
|
var fin = toAbsoluteIndex$3(end === void 0 ? length2 : end, length2);
|
|
2140
2092
|
var result = $Array$1(max$2(fin - k, 0));
|
|
2141
2093
|
var n = 0;
|
|
2142
|
-
for (; k < fin; k++, n++)
|
|
2143
|
-
createProperty$3(result, n, O[k]);
|
|
2094
|
+
for (; k < fin; k++, n++) createProperty$3(result, n, O[k]);
|
|
2144
2095
|
result.length = n;
|
|
2145
2096
|
return result;
|
|
2146
2097
|
};
|
|
@@ -2161,10 +2112,8 @@ objectGetOwnPropertyNamesExternal.f = function getOwnPropertyNames2(it2) {
|
|
|
2161
2112
|
};
|
|
2162
2113
|
var createNonEnumerableProperty$4 = createNonEnumerableProperty$6;
|
|
2163
2114
|
var defineBuiltIn$5 = function(target, key, value, options) {
|
|
2164
|
-
if (options && options.enumerable)
|
|
2165
|
-
|
|
2166
|
-
else
|
|
2167
|
-
createNonEnumerableProperty$4(target, key, value);
|
|
2115
|
+
if (options && options.enumerable) target[key] = value;
|
|
2116
|
+
else createNonEnumerableProperty$4(target, key, value);
|
|
2168
2117
|
return target;
|
|
2169
2118
|
};
|
|
2170
2119
|
var defineProperty$d = objectDefineProperty;
|
|
@@ -2180,10 +2129,9 @@ var wrappedWellKnownSymbolModule$1 = wellKnownSymbolWrapped;
|
|
|
2180
2129
|
var defineProperty$c = objectDefineProperty.f;
|
|
2181
2130
|
var wellKnownSymbolDefine = function(NAME) {
|
|
2182
2131
|
var Symbol2 = path$p.Symbol || (path$p.Symbol = {});
|
|
2183
|
-
if (!hasOwn$d(Symbol2, NAME))
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
});
|
|
2132
|
+
if (!hasOwn$d(Symbol2, NAME)) defineProperty$c(Symbol2, NAME, {
|
|
2133
|
+
value: wrappedWellKnownSymbolModule$1.f(NAME)
|
|
2134
|
+
});
|
|
2187
2135
|
};
|
|
2188
2136
|
var call$6 = functionCall;
|
|
2189
2137
|
var getBuiltIn$7 = getBuiltIn$b;
|
|
@@ -2259,8 +2207,7 @@ if (NATIVE_WEAK_MAP$1 || shared$4.state) {
|
|
|
2259
2207
|
store.has = store.has;
|
|
2260
2208
|
store.set = store.set;
|
|
2261
2209
|
set$3 = function(it2, metadata) {
|
|
2262
|
-
if (store.has(it2))
|
|
2263
|
-
throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
|
|
2210
|
+
if (store.has(it2)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
|
|
2264
2211
|
metadata.facade = it2;
|
|
2265
2212
|
store.set(it2, metadata);
|
|
2266
2213
|
return metadata;
|
|
@@ -2275,8 +2222,7 @@ if (NATIVE_WEAK_MAP$1 || shared$4.state) {
|
|
|
2275
2222
|
STATE = sharedKey$2("state");
|
|
2276
2223
|
hiddenKeys$2[STATE] = true;
|
|
2277
2224
|
set$3 = function(it2, metadata) {
|
|
2278
|
-
if (hasOwn$b(it2, STATE))
|
|
2279
|
-
throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
|
|
2225
|
+
if (hasOwn$b(it2, STATE)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
|
|
2280
2226
|
metadata.facade = it2;
|
|
2281
2227
|
createNonEnumerableProperty$2(it2, STATE, metadata);
|
|
2282
2228
|
return metadata;
|
|
@@ -2321,33 +2267,33 @@ var createMethod$4 = function(TYPE) {
|
|
|
2321
2267
|
var create5 = specificCreate || arraySpeciesCreate$2;
|
|
2322
2268
|
var target = IS_MAP ? create5($this, length2) : IS_FILTER || IS_FILTER_REJECT ? create5($this, 0) : void 0;
|
|
2323
2269
|
var value, result;
|
|
2324
|
-
for (; length2 > index; index++)
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
if (
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
}
|
|
2270
|
+
for (; length2 > index; index++) if (NO_HOLES || index in self2) {
|
|
2271
|
+
value = self2[index];
|
|
2272
|
+
result = boundFunction(value, index, O);
|
|
2273
|
+
if (TYPE) {
|
|
2274
|
+
if (IS_MAP) target[index] = result;
|
|
2275
|
+
else if (result) switch (TYPE) {
|
|
2276
|
+
case 3:
|
|
2277
|
+
return true;
|
|
2278
|
+
// some
|
|
2279
|
+
case 5:
|
|
2280
|
+
return value;
|
|
2281
|
+
// find
|
|
2282
|
+
case 6:
|
|
2283
|
+
return index;
|
|
2284
|
+
// findIndex
|
|
2285
|
+
case 2:
|
|
2286
|
+
push$4(target, value);
|
|
2287
|
+
}
|
|
2288
|
+
else switch (TYPE) {
|
|
2289
|
+
case 4:
|
|
2290
|
+
return false;
|
|
2291
|
+
// every
|
|
2292
|
+
case 7:
|
|
2293
|
+
push$4(target, value);
|
|
2349
2294
|
}
|
|
2350
2295
|
}
|
|
2296
|
+
}
|
|
2351
2297
|
return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
|
|
2352
2298
|
};
|
|
2353
2299
|
};
|
|
@@ -2435,8 +2381,7 @@ var WellKnownSymbolsStore$1 = shared$3("wks");
|
|
|
2435
2381
|
var USE_SETTER = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;
|
|
2436
2382
|
var fallbackDefineProperty = function(O, P, Attributes) {
|
|
2437
2383
|
var ObjectPrototypeDescriptor = nativeGetOwnPropertyDescriptor$1(ObjectPrototype$1, P);
|
|
2438
|
-
if (ObjectPrototypeDescriptor)
|
|
2439
|
-
delete ObjectPrototype$1[P];
|
|
2384
|
+
if (ObjectPrototypeDescriptor) delete ObjectPrototype$1[P];
|
|
2440
2385
|
nativeDefineProperty(O, P, Attributes);
|
|
2441
2386
|
if (ObjectPrototypeDescriptor && O !== ObjectPrototype$1) {
|
|
2442
2387
|
nativeDefineProperty(ObjectPrototype$1, P, ObjectPrototypeDescriptor);
|
|
@@ -2456,24 +2401,20 @@ var wrap = function(tag, description) {
|
|
|
2456
2401
|
tag,
|
|
2457
2402
|
description
|
|
2458
2403
|
});
|
|
2459
|
-
if (!DESCRIPTORS$b)
|
|
2460
|
-
symbol2.description = description;
|
|
2404
|
+
if (!DESCRIPTORS$b) symbol2.description = description;
|
|
2461
2405
|
return symbol2;
|
|
2462
2406
|
};
|
|
2463
2407
|
var $defineProperty = function defineProperty3(O, P, Attributes) {
|
|
2464
|
-
if (O === ObjectPrototype$1)
|
|
2465
|
-
$defineProperty(ObjectPrototypeSymbols, P, Attributes);
|
|
2408
|
+
if (O === ObjectPrototype$1) $defineProperty(ObjectPrototypeSymbols, P, Attributes);
|
|
2466
2409
|
anObject$5(O);
|
|
2467
2410
|
var key = toPropertyKey(P);
|
|
2468
2411
|
anObject$5(Attributes);
|
|
2469
2412
|
if (hasOwn$a(AllSymbols, key)) {
|
|
2470
2413
|
if (!Attributes.enumerable) {
|
|
2471
|
-
if (!hasOwn$a(O, HIDDEN))
|
|
2472
|
-
nativeDefineProperty(O, HIDDEN, createPropertyDescriptor$1(1, {}));
|
|
2414
|
+
if (!hasOwn$a(O, HIDDEN)) nativeDefineProperty(O, HIDDEN, createPropertyDescriptor$1(1, {}));
|
|
2473
2415
|
O[HIDDEN][key] = true;
|
|
2474
2416
|
} else {
|
|
2475
|
-
if (hasOwn$a(O, HIDDEN) && O[HIDDEN][key])
|
|
2476
|
-
O[HIDDEN][key] = false;
|
|
2417
|
+
if (hasOwn$a(O, HIDDEN) && O[HIDDEN][key]) O[HIDDEN][key] = false;
|
|
2477
2418
|
Attributes = nativeObjectCreate(Attributes, { enumerable: createPropertyDescriptor$1(0, false) });
|
|
2478
2419
|
}
|
|
2479
2420
|
return setSymbolDescriptor(O, key, Attributes);
|
|
@@ -2485,8 +2426,7 @@ var $defineProperties = function defineProperties2(O, Properties) {
|
|
|
2485
2426
|
var properties = toIndexedObject$5(Properties);
|
|
2486
2427
|
var keys4 = objectKeys$1(properties).concat($getOwnPropertySymbols(properties));
|
|
2487
2428
|
$forEach$1(keys4, function(key) {
|
|
2488
|
-
if (!DESCRIPTORS$b || call$5($propertyIsEnumerable$1, properties, key))
|
|
2489
|
-
$defineProperty(O, key, properties[key]);
|
|
2429
|
+
if (!DESCRIPTORS$b || call$5($propertyIsEnumerable$1, properties, key)) $defineProperty(O, key, properties[key]);
|
|
2490
2430
|
});
|
|
2491
2431
|
return O;
|
|
2492
2432
|
};
|
|
@@ -2496,15 +2436,13 @@ var $create = function create2(O, Properties) {
|
|
|
2496
2436
|
var $propertyIsEnumerable$1 = function propertyIsEnumerable2(V) {
|
|
2497
2437
|
var P = toPropertyKey(V);
|
|
2498
2438
|
var enumerable = call$5(nativePropertyIsEnumerable, this, P);
|
|
2499
|
-
if (this === ObjectPrototype$1 && hasOwn$a(AllSymbols, P) && !hasOwn$a(ObjectPrototypeSymbols, P))
|
|
2500
|
-
return false;
|
|
2439
|
+
if (this === ObjectPrototype$1 && hasOwn$a(AllSymbols, P) && !hasOwn$a(ObjectPrototypeSymbols, P)) return false;
|
|
2501
2440
|
return enumerable || !hasOwn$a(this, P) || !hasOwn$a(AllSymbols, P) || hasOwn$a(this, HIDDEN) && this[HIDDEN][P] ? enumerable : true;
|
|
2502
2441
|
};
|
|
2503
2442
|
var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor2(O, P) {
|
|
2504
2443
|
var it2 = toIndexedObject$5(O);
|
|
2505
2444
|
var key = toPropertyKey(P);
|
|
2506
|
-
if (it2 === ObjectPrototype$1 && hasOwn$a(AllSymbols, key) && !hasOwn$a(ObjectPrototypeSymbols, key))
|
|
2507
|
-
return;
|
|
2445
|
+
if (it2 === ObjectPrototype$1 && hasOwn$a(AllSymbols, key) && !hasOwn$a(ObjectPrototypeSymbols, key)) return;
|
|
2508
2446
|
var descriptor = nativeGetOwnPropertyDescriptor$1(it2, key);
|
|
2509
2447
|
if (descriptor && hasOwn$a(AllSymbols, key) && !(hasOwn$a(it2, HIDDEN) && it2[HIDDEN][key])) {
|
|
2510
2448
|
descriptor.enumerable = true;
|
|
@@ -2515,8 +2453,7 @@ var $getOwnPropertyNames = function getOwnPropertyNames3(O) {
|
|
|
2515
2453
|
var names = nativeGetOwnPropertyNames(toIndexedObject$5(O));
|
|
2516
2454
|
var result = [];
|
|
2517
2455
|
$forEach$1(names, function(key) {
|
|
2518
|
-
if (!hasOwn$a(AllSymbols, key) && !hasOwn$a(hiddenKeys$1, key))
|
|
2519
|
-
push$3(result, key);
|
|
2456
|
+
if (!hasOwn$a(AllSymbols, key) && !hasOwn$a(hiddenKeys$1, key)) push$3(result, key);
|
|
2520
2457
|
});
|
|
2521
2458
|
return result;
|
|
2522
2459
|
};
|
|
@@ -2533,26 +2470,21 @@ var $getOwnPropertySymbols = function(O) {
|
|
|
2533
2470
|
};
|
|
2534
2471
|
if (!NATIVE_SYMBOL$3) {
|
|
2535
2472
|
$Symbol = function Symbol2() {
|
|
2536
|
-
if (isPrototypeOf$k(SymbolPrototype, this))
|
|
2537
|
-
throw new TypeError$1("Symbol is not a constructor");
|
|
2473
|
+
if (isPrototypeOf$k(SymbolPrototype, this)) throw new TypeError$1("Symbol is not a constructor");
|
|
2538
2474
|
var description = !arguments.length || arguments[0] === void 0 ? void 0 : $toString(arguments[0]);
|
|
2539
2475
|
var tag = uid$1(description);
|
|
2540
2476
|
var setter = function(value) {
|
|
2541
|
-
if (this === ObjectPrototype$1)
|
|
2542
|
-
|
|
2543
|
-
if (hasOwn$a(this, HIDDEN) && hasOwn$a(this[HIDDEN], tag))
|
|
2544
|
-
this[HIDDEN][tag] = false;
|
|
2477
|
+
if (this === ObjectPrototype$1) call$5(setter, ObjectPrototypeSymbols, value);
|
|
2478
|
+
if (hasOwn$a(this, HIDDEN) && hasOwn$a(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
|
|
2545
2479
|
var descriptor = createPropertyDescriptor$1(1, value);
|
|
2546
2480
|
try {
|
|
2547
2481
|
setSymbolDescriptor(this, tag, descriptor);
|
|
2548
2482
|
} catch (error) {
|
|
2549
|
-
if (!(error instanceof RangeError$1))
|
|
2550
|
-
throw error;
|
|
2483
|
+
if (!(error instanceof RangeError$1)) throw error;
|
|
2551
2484
|
fallbackDefineProperty(this, tag, descriptor);
|
|
2552
2485
|
}
|
|
2553
2486
|
};
|
|
2554
|
-
if (DESCRIPTORS$b && USE_SETTER)
|
|
2555
|
-
setSymbolDescriptor(ObjectPrototype$1, tag, { configurable: true, set: setter });
|
|
2487
|
+
if (DESCRIPTORS$b && USE_SETTER) setSymbolDescriptor(ObjectPrototype$1, tag, { configurable: true, set: setter });
|
|
2556
2488
|
return wrap(tag, description);
|
|
2557
2489
|
};
|
|
2558
2490
|
SymbolPrototype = $Symbol[PROTOTYPE];
|
|
@@ -2629,8 +2561,7 @@ var SymbolToStringRegistry$1 = shared$2("symbol-to-string-registry");
|
|
|
2629
2561
|
$$I({ target: "Symbol", stat: true, forced: !NATIVE_SYMBOL_REGISTRY$1 }, {
|
|
2630
2562
|
"for": function(key) {
|
|
2631
2563
|
var string2 = toString$8(key);
|
|
2632
|
-
if (hasOwn$9(StringToSymbolRegistry, string2))
|
|
2633
|
-
return StringToSymbolRegistry[string2];
|
|
2564
|
+
if (hasOwn$9(StringToSymbolRegistry, string2)) return StringToSymbolRegistry[string2];
|
|
2634
2565
|
var symbol2 = getBuiltIn$6("Symbol")(string2);
|
|
2635
2566
|
StringToSymbolRegistry[string2] = symbol2;
|
|
2636
2567
|
SymbolToStringRegistry$1[symbol2] = string2;
|
|
@@ -2646,10 +2577,8 @@ var NATIVE_SYMBOL_REGISTRY = symbolRegistryDetection;
|
|
|
2646
2577
|
var SymbolToStringRegistry = shared$1("symbol-to-string-registry");
|
|
2647
2578
|
$$H({ target: "Symbol", stat: true, forced: !NATIVE_SYMBOL_REGISTRY }, {
|
|
2648
2579
|
keyFor: function keyFor(sym) {
|
|
2649
|
-
if (!isSymbol$2(sym))
|
|
2650
|
-
|
|
2651
|
-
if (hasOwn$8(SymbolToStringRegistry, sym))
|
|
2652
|
-
return SymbolToStringRegistry[sym];
|
|
2580
|
+
if (!isSymbol$2(sym)) throw new TypeError(tryToString$3(sym) + " is not a symbol");
|
|
2581
|
+
if (hasOwn$8(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym];
|
|
2653
2582
|
}
|
|
2654
2583
|
});
|
|
2655
2584
|
var uncurryThis$h = functionUncurryThis;
|
|
@@ -2659,18 +2588,14 @@ var classof$9 = classofRaw$2;
|
|
|
2659
2588
|
var toString$7 = toString$a;
|
|
2660
2589
|
var push$2 = uncurryThis$h([].push);
|
|
2661
2590
|
var getJsonReplacerFunction = function(replacer) {
|
|
2662
|
-
if (isCallable$5(replacer))
|
|
2663
|
-
|
|
2664
|
-
if (!isArray$9(replacer))
|
|
2665
|
-
return;
|
|
2591
|
+
if (isCallable$5(replacer)) return replacer;
|
|
2592
|
+
if (!isArray$9(replacer)) return;
|
|
2666
2593
|
var rawLength = replacer.length;
|
|
2667
2594
|
var keys4 = [];
|
|
2668
2595
|
for (var i = 0; i < rawLength; i++) {
|
|
2669
2596
|
var element = replacer[i];
|
|
2670
|
-
if (typeof element == "string")
|
|
2671
|
-
|
|
2672
|
-
else if (typeof element == "number" || classof$9(element) === "Number" || classof$9(element) === "String")
|
|
2673
|
-
push$2(keys4, toString$7(element));
|
|
2597
|
+
if (typeof element == "string") push$2(keys4, element);
|
|
2598
|
+
else if (typeof element == "number" || classof$9(element) === "Number" || classof$9(element) === "String") push$2(keys4, toString$7(element));
|
|
2674
2599
|
}
|
|
2675
2600
|
var keysLength = keys4.length;
|
|
2676
2601
|
var root = true;
|
|
@@ -2679,11 +2604,8 @@ var getJsonReplacerFunction = function(replacer) {
|
|
|
2679
2604
|
root = false;
|
|
2680
2605
|
return value;
|
|
2681
2606
|
}
|
|
2682
|
-
if (isArray$9(this))
|
|
2683
|
-
|
|
2684
|
-
for (var j = 0; j < keysLength; j++)
|
|
2685
|
-
if (keys4[j] === key)
|
|
2686
|
-
return value;
|
|
2607
|
+
if (isArray$9(this)) return value;
|
|
2608
|
+
for (var j = 0; j < keysLength; j++) if (keys4[j] === key) return value;
|
|
2687
2609
|
};
|
|
2688
2610
|
};
|
|
2689
2611
|
var $$G = _export;
|
|
@@ -2717,13 +2639,10 @@ var ILL_FORMED_UNICODE = fails$i(function() {
|
|
|
2717
2639
|
var stringifyWithSymbolsFix = function(it2, replacer) {
|
|
2718
2640
|
var args = arraySlice$2(arguments);
|
|
2719
2641
|
var $replacer = getReplacerFunction(replacer);
|
|
2720
|
-
if (!isCallable$4($replacer) && (it2 === void 0 || isSymbol$1(it2)))
|
|
2721
|
-
return;
|
|
2642
|
+
if (!isCallable$4($replacer) && (it2 === void 0 || isSymbol$1(it2))) return;
|
|
2722
2643
|
args[1] = function(key, value) {
|
|
2723
|
-
if (isCallable$4($replacer))
|
|
2724
|
-
|
|
2725
|
-
if (!isSymbol$1(value))
|
|
2726
|
-
return value;
|
|
2644
|
+
if (isCallable$4($replacer)) value = call$4($replacer, this, $String(key), value);
|
|
2645
|
+
if (!isSymbol$1(value)) return value;
|
|
2727
2646
|
};
|
|
2728
2647
|
return apply$2($stringify, null, args);
|
|
2729
2648
|
};
|
|
@@ -2801,8 +2720,8 @@ var hasOwn$7 = hasOwnProperty_1;
|
|
|
2801
2720
|
var FunctionPrototype$1 = Function.prototype;
|
|
2802
2721
|
var getDescriptor = DESCRIPTORS$a && Object.getOwnPropertyDescriptor;
|
|
2803
2722
|
var EXISTS = hasOwn$7(FunctionPrototype$1, "name");
|
|
2804
|
-
var PROPER = EXISTS && function something() {
|
|
2805
|
-
}.name === "something";
|
|
2723
|
+
var PROPER = EXISTS && (function something() {
|
|
2724
|
+
}).name === "something";
|
|
2806
2725
|
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$a || DESCRIPTORS$a && getDescriptor(FunctionPrototype$1, "name").configurable);
|
|
2807
2726
|
var functionName = {
|
|
2808
2727
|
EXISTS,
|
|
@@ -2826,8 +2745,7 @@ var $Object$1 = Object;
|
|
|
2826
2745
|
var ObjectPrototype = $Object$1.prototype;
|
|
2827
2746
|
var objectGetPrototypeOf$1 = CORRECT_PROTOTYPE_GETTER$1 ? $Object$1.getPrototypeOf : function(O) {
|
|
2828
2747
|
var object2 = toObject$7(O);
|
|
2829
|
-
if (hasOwn$6(object2, IE_PROTO))
|
|
2830
|
-
return object2[IE_PROTO];
|
|
2748
|
+
if (hasOwn$6(object2, IE_PROTO)) return object2[IE_PROTO];
|
|
2831
2749
|
var constructor = object2.constructor;
|
|
2832
2750
|
if (isCallable$3(constructor) && object2 instanceof constructor) {
|
|
2833
2751
|
return constructor.prototype;
|
|
@@ -2848,22 +2766,18 @@ var PrototypeOfArrayIteratorPrototype;
|
|
|
2848
2766
|
var arrayIterator;
|
|
2849
2767
|
if ([].keys) {
|
|
2850
2768
|
arrayIterator = [].keys();
|
|
2851
|
-
if (!("next" in arrayIterator))
|
|
2852
|
-
BUGGY_SAFARI_ITERATORS$1 = true;
|
|
2769
|
+
if (!("next" in arrayIterator)) BUGGY_SAFARI_ITERATORS$1 = true;
|
|
2853
2770
|
else {
|
|
2854
2771
|
PrototypeOfArrayIteratorPrototype = getPrototypeOf$4(getPrototypeOf$4(arrayIterator));
|
|
2855
|
-
if (PrototypeOfArrayIteratorPrototype !== Object.prototype)
|
|
2856
|
-
IteratorPrototype$1 = PrototypeOfArrayIteratorPrototype;
|
|
2772
|
+
if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$1 = PrototypeOfArrayIteratorPrototype;
|
|
2857
2773
|
}
|
|
2858
2774
|
}
|
|
2859
2775
|
var NEW_ITERATOR_PROTOTYPE = !isObject$8(IteratorPrototype$1) || fails$f(function() {
|
|
2860
2776
|
var test2 = {};
|
|
2861
2777
|
return IteratorPrototype$1[ITERATOR$5].call(test2) !== test2;
|
|
2862
2778
|
});
|
|
2863
|
-
if (NEW_ITERATOR_PROTOTYPE)
|
|
2864
|
-
|
|
2865
|
-
else
|
|
2866
|
-
IteratorPrototype$1 = create$6(IteratorPrototype$1);
|
|
2779
|
+
if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$1 = {};
|
|
2780
|
+
else IteratorPrototype$1 = create$6(IteratorPrototype$1);
|
|
2867
2781
|
if (!isCallable$2(IteratorPrototype$1[ITERATOR$5])) {
|
|
2868
2782
|
defineBuiltIn$2(IteratorPrototype$1, ITERATOR$5, function() {
|
|
2869
2783
|
return this;
|
|
@@ -2912,10 +2826,8 @@ var returnThis = function() {
|
|
|
2912
2826
|
var iteratorDefine = function(Iterable, NAME, IteratorConstructor, next3, DEFAULT, IS_SET, FORCED2) {
|
|
2913
2827
|
createIteratorConstructor(IteratorConstructor, NAME, next3);
|
|
2914
2828
|
var getIterationMethod = function(KIND) {
|
|
2915
|
-
if (KIND === DEFAULT && defaultIterator)
|
|
2916
|
-
|
|
2917
|
-
if (!BUGGY_SAFARI_ITERATORS && KIND && KIND in IterablePrototype)
|
|
2918
|
-
return IterablePrototype[KIND];
|
|
2829
|
+
if (KIND === DEFAULT && defaultIterator) return defaultIterator;
|
|
2830
|
+
if (!BUGGY_SAFARI_ITERATORS && KIND && KIND in IterablePrototype) return IterablePrototype[KIND];
|
|
2919
2831
|
switch (KIND) {
|
|
2920
2832
|
case KEYS:
|
|
2921
2833
|
return function keys4() {
|
|
@@ -2962,14 +2874,12 @@ var iteratorDefine = function(Iterable, NAME, IteratorConstructor, next3, DEFAUL
|
|
|
2962
2874
|
keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
|
|
2963
2875
|
entries: getIterationMethod(ENTRIES)
|
|
2964
2876
|
};
|
|
2965
|
-
if (FORCED2)
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
defineBuiltIn$1(IterablePrototype, KEY, methods[KEY]);
|
|
2969
|
-
}
|
|
2877
|
+
if (FORCED2) for (KEY in methods) {
|
|
2878
|
+
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
|
2879
|
+
defineBuiltIn$1(IterablePrototype, KEY, methods[KEY]);
|
|
2970
2880
|
}
|
|
2971
|
-
|
|
2972
|
-
|
|
2881
|
+
}
|
|
2882
|
+
else $$E({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
|
2973
2883
|
}
|
|
2974
2884
|
if (FORCED2 && IterablePrototype[ITERATOR$4] !== defaultIterator) {
|
|
2975
2885
|
defineBuiltIn$1(IterablePrototype, ITERATOR$4, defaultIterator, { name: DEFAULT });
|
|
@@ -3100,17 +3010,14 @@ $$D({ target: "Array", proto: true, forced: !HAS_SPECIES_SUPPORT$3 }, {
|
|
|
3100
3010
|
Constructor = void 0;
|
|
3101
3011
|
} else if (isObject$7(Constructor)) {
|
|
3102
3012
|
Constructor = Constructor[SPECIES$1];
|
|
3103
|
-
if (Constructor === null)
|
|
3104
|
-
Constructor = void 0;
|
|
3013
|
+
if (Constructor === null) Constructor = void 0;
|
|
3105
3014
|
}
|
|
3106
3015
|
if (Constructor === $Array || Constructor === void 0) {
|
|
3107
3016
|
return nativeSlice(O, k, fin);
|
|
3108
3017
|
}
|
|
3109
3018
|
}
|
|
3110
3019
|
result = new (Constructor === void 0 ? $Array : Constructor)(max$1(fin - k, 0));
|
|
3111
|
-
for (n = 0; k < fin; k++, n++)
|
|
3112
|
-
if (k in O)
|
|
3113
|
-
createProperty$2(result, n, O[k]);
|
|
3020
|
+
for (n = 0; k < fin; k++, n++) if (k in O) createProperty$2(result, n, O[k]);
|
|
3114
3021
|
result.length = n;
|
|
3115
3022
|
return result;
|
|
3116
3023
|
}
|
|
@@ -3262,8 +3169,7 @@ var nativeReverse = uncurryThis$d([].reverse);
|
|
|
3262
3169
|
var test$1 = [1, 2];
|
|
3263
3170
|
$$w({ target: "Array", proto: true, forced: String(test$1) === String(test$1.reverse()) }, {
|
|
3264
3171
|
reverse: function reverse() {
|
|
3265
|
-
if (isArray$3(this))
|
|
3266
|
-
this.length = this.length;
|
|
3172
|
+
if (isArray$3(this)) this.length = this.length;
|
|
3267
3173
|
return nativeReverse(this);
|
|
3268
3174
|
}
|
|
3269
3175
|
});
|
|
@@ -3284,15 +3190,14 @@ var DESCRIPTORS$9 = descriptors;
|
|
|
3284
3190
|
var isArray$2 = isArray$c;
|
|
3285
3191
|
var $TypeError$7 = TypeError;
|
|
3286
3192
|
var getOwnPropertyDescriptor$4 = Object.getOwnPropertyDescriptor;
|
|
3287
|
-
var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS$9 && !function() {
|
|
3288
|
-
if (this !== void 0)
|
|
3289
|
-
return true;
|
|
3193
|
+
var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS$9 && !(function() {
|
|
3194
|
+
if (this !== void 0) return true;
|
|
3290
3195
|
try {
|
|
3291
3196
|
Object.defineProperty([], "length", { writable: false }).length = 1;
|
|
3292
3197
|
} catch (error) {
|
|
3293
3198
|
return error instanceof TypeError;
|
|
3294
3199
|
}
|
|
3295
|
-
}();
|
|
3200
|
+
})();
|
|
3296
3201
|
var arraySetLength = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function(O, length2) {
|
|
3297
3202
|
if (isArray$2(O) && !getOwnPropertyDescriptor$4(O, "length").writable) {
|
|
3298
3203
|
throw new $TypeError$7("Cannot set read only .length");
|
|
@@ -3304,8 +3209,7 @@ var arraySetLength = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function(O, length2) {
|
|
|
3304
3209
|
var tryToString$2 = tryToString$5;
|
|
3305
3210
|
var $TypeError$6 = TypeError;
|
|
3306
3211
|
var deletePropertyOrThrow$2 = function(O, P) {
|
|
3307
|
-
if (!delete O[P])
|
|
3308
|
-
throw new $TypeError$6("Cannot delete property " + tryToString$2(P) + " of " + tryToString$2(O));
|
|
3212
|
+
if (!delete O[P]) throw new $TypeError$6("Cannot delete property " + tryToString$2(P) + " of " + tryToString$2(O));
|
|
3309
3213
|
};
|
|
3310
3214
|
var $$v = _export;
|
|
3311
3215
|
var toObject$5 = toObject$d;
|
|
@@ -3341,29 +3245,23 @@ $$v({ target: "Array", proto: true, forced: !HAS_SPECIES_SUPPORT$1 }, {
|
|
|
3341
3245
|
A = arraySpeciesCreate$1(O, actualDeleteCount);
|
|
3342
3246
|
for (k = 0; k < actualDeleteCount; k++) {
|
|
3343
3247
|
from = actualStart + k;
|
|
3344
|
-
if (from in O)
|
|
3345
|
-
createProperty$1(A, k, O[from]);
|
|
3248
|
+
if (from in O) createProperty$1(A, k, O[from]);
|
|
3346
3249
|
}
|
|
3347
3250
|
A.length = actualDeleteCount;
|
|
3348
3251
|
if (insertCount < actualDeleteCount) {
|
|
3349
3252
|
for (k = actualStart; k < len - actualDeleteCount; k++) {
|
|
3350
3253
|
from = k + actualDeleteCount;
|
|
3351
3254
|
to = k + insertCount;
|
|
3352
|
-
if (from in O)
|
|
3353
|
-
|
|
3354
|
-
else
|
|
3355
|
-
deletePropertyOrThrow$1(O, to);
|
|
3255
|
+
if (from in O) O[to] = O[from];
|
|
3256
|
+
else deletePropertyOrThrow$1(O, to);
|
|
3356
3257
|
}
|
|
3357
|
-
for (k = len; k > len - actualDeleteCount + insertCount; k--)
|
|
3358
|
-
deletePropertyOrThrow$1(O, k - 1);
|
|
3258
|
+
for (k = len; k > len - actualDeleteCount + insertCount; k--) deletePropertyOrThrow$1(O, k - 1);
|
|
3359
3259
|
} else if (insertCount > actualDeleteCount) {
|
|
3360
3260
|
for (k = len - actualDeleteCount; k > actualStart; k--) {
|
|
3361
3261
|
from = k + actualDeleteCount - 1;
|
|
3362
3262
|
to = k + insertCount - 1;
|
|
3363
|
-
if (from in O)
|
|
3364
|
-
|
|
3365
|
-
else
|
|
3366
|
-
deletePropertyOrThrow$1(O, to);
|
|
3263
|
+
if (from in O) O[to] = O[from];
|
|
3264
|
+
else deletePropertyOrThrow$1(O, to);
|
|
3367
3265
|
}
|
|
3368
3266
|
}
|
|
3369
3267
|
for (k = 0; k < insertCount; k++) {
|
|
@@ -3455,8 +3353,7 @@ var ArrayPrototype$d = Array.prototype;
|
|
|
3455
3353
|
var StringPrototype = String.prototype;
|
|
3456
3354
|
var includes$2 = function(it2) {
|
|
3457
3355
|
var own = it2.includes;
|
|
3458
|
-
if (it2 === ArrayPrototype$d || isPrototypeOf$e(ArrayPrototype$d, it2) && own === ArrayPrototype$d.includes)
|
|
3459
|
-
return arrayMethod;
|
|
3356
|
+
if (it2 === ArrayPrototype$d || isPrototypeOf$e(ArrayPrototype$d, it2) && own === ArrayPrototype$d.includes) return arrayMethod;
|
|
3460
3357
|
if (typeof it2 == "string" || it2 === StringPrototype || isPrototypeOf$e(StringPrototype, it2) && own === StringPrototype.includes) {
|
|
3461
3358
|
return stringMethod;
|
|
3462
3359
|
}
|
|
@@ -3584,10 +3481,8 @@ var rtrim = RegExp("(^|[^" + whitespaces$2 + "])[" + whitespaces$2 + "]+$");
|
|
|
3584
3481
|
var createMethod$2 = function(TYPE) {
|
|
3585
3482
|
return function($this) {
|
|
3586
3483
|
var string2 = toString$5(requireObjectCoercible$1($this));
|
|
3587
|
-
if (TYPE & 1)
|
|
3588
|
-
|
|
3589
|
-
if (TYPE & 2)
|
|
3590
|
-
string2 = replace(string2, rtrim, "$1");
|
|
3484
|
+
if (TYPE & 1) string2 = replace(string2, ltrim, "");
|
|
3485
|
+
if (TYPE & 2) string2 = replace(string2, rtrim, "$1");
|
|
3591
3486
|
return string2;
|
|
3592
3487
|
};
|
|
3593
3488
|
};
|
|
@@ -3674,8 +3569,7 @@ var create$1 = create$2;
|
|
|
3674
3569
|
var _Object$create = /* @__PURE__ */ getDefaultExportFromCjs(create$1);
|
|
3675
3570
|
var path$f = path$u;
|
|
3676
3571
|
var apply$1 = functionApply;
|
|
3677
|
-
if (!path$f.JSON)
|
|
3678
|
-
path$f.JSON = { stringify: JSON.stringify };
|
|
3572
|
+
if (!path$f.JSON) path$f.JSON = { stringify: JSON.stringify };
|
|
3679
3573
|
var stringify$2 = function stringify(it2, replacer, space) {
|
|
3680
3574
|
return apply$1(path$f.JSON.stringify, null, arguments);
|
|
3681
3575
|
};
|
|
@@ -3686,8 +3580,7 @@ var _JSON$stringify = /* @__PURE__ */ getDefaultExportFromCjs(stringify2);
|
|
|
3686
3580
|
var engineIsBun = typeof Bun == "function" && Bun && typeof Bun.version == "string";
|
|
3687
3581
|
var $TypeError$4 = TypeError;
|
|
3688
3582
|
var validateArgumentsLength$1 = function(passed, required) {
|
|
3689
|
-
if (passed < required)
|
|
3690
|
-
throw new $TypeError$4("Not enough arguments");
|
|
3583
|
+
if (passed < required) throw new $TypeError$4("Not enough arguments");
|
|
3691
3584
|
return passed;
|
|
3692
3585
|
};
|
|
3693
3586
|
var global$8 = global$n;
|
|
@@ -3698,10 +3591,10 @@ var USER_AGENT = engineUserAgent;
|
|
|
3698
3591
|
var arraySlice$1 = arraySlice$5;
|
|
3699
3592
|
var validateArgumentsLength = validateArgumentsLength$1;
|
|
3700
3593
|
var Function$1 = global$8.Function;
|
|
3701
|
-
var WRAP = /MSIE .\./.test(USER_AGENT) || ENGINE_IS_BUN && function() {
|
|
3594
|
+
var WRAP = /MSIE .\./.test(USER_AGENT) || ENGINE_IS_BUN && (function() {
|
|
3702
3595
|
var version2 = global$8.Bun.version.split(".");
|
|
3703
3596
|
return version2.length < 3 || version2[0] === "0" && (version2[1] < 3 || version2[1] === "3" && version2[2] === "0");
|
|
3704
|
-
}();
|
|
3597
|
+
})();
|
|
3705
3598
|
var schedulersFix$2 = function(scheduler, hasTimeArg) {
|
|
3706
3599
|
var firstParamIndex = hasTimeArg ? 2 : 1;
|
|
3707
3600
|
return WRAP ? function(handler, timeout) {
|
|
@@ -3742,8 +3635,7 @@ var arrayFill = function fill(value) {
|
|
|
3742
3635
|
var index = toAbsoluteIndex(argumentsLength > 1 ? arguments[1] : void 0, length2);
|
|
3743
3636
|
var end = argumentsLength > 2 ? arguments[2] : void 0;
|
|
3744
3637
|
var endPos = end === void 0 ? length2 : toAbsoluteIndex(end, length2);
|
|
3745
|
-
while (endPos > index)
|
|
3746
|
-
O[index++] = value;
|
|
3638
|
+
while (endPos > index) O[index++] = value;
|
|
3747
3639
|
return O;
|
|
3748
3640
|
};
|
|
3749
3641
|
var $$k = _export;
|
|
@@ -3929,7 +3821,7 @@ function cleanTouchActions(actions) {
|
|
|
3929
3821
|
}
|
|
3930
3822
|
return TOUCH_ACTION_AUTO;
|
|
3931
3823
|
}
|
|
3932
|
-
var TouchAction = /* @__PURE__ */ function() {
|
|
3824
|
+
var TouchAction = /* @__PURE__ */ (function() {
|
|
3933
3825
|
function TouchAction2(manager, value) {
|
|
3934
3826
|
this.manager = manager;
|
|
3935
3827
|
this.set(value);
|
|
@@ -3987,7 +3879,7 @@ var TouchAction = /* @__PURE__ */ function() {
|
|
|
3987
3879
|
srcEvent.preventDefault();
|
|
3988
3880
|
};
|
|
3989
3881
|
return TouchAction2;
|
|
3990
|
-
}();
|
|
3882
|
+
})();
|
|
3991
3883
|
function hasParent(node, parent2) {
|
|
3992
3884
|
while (node) {
|
|
3993
3885
|
if (node === parent2) {
|
|
@@ -4195,7 +4087,7 @@ function getWindowForElement(element) {
|
|
|
4195
4087
|
var doc = element.ownerDocument || element;
|
|
4196
4088
|
return doc.defaultView || doc.parentWindow || window;
|
|
4197
4089
|
}
|
|
4198
|
-
var Input = /* @__PURE__ */ function() {
|
|
4090
|
+
var Input = /* @__PURE__ */ (function() {
|
|
4199
4091
|
function Input2(manager, callback) {
|
|
4200
4092
|
var self2 = this;
|
|
4201
4093
|
this.manager = manager;
|
|
@@ -4223,7 +4115,7 @@ var Input = /* @__PURE__ */ function() {
|
|
|
4223
4115
|
this.evWin && removeEventListeners(getWindowForElement(this.element), this.evWin, this.domHandler);
|
|
4224
4116
|
};
|
|
4225
4117
|
return Input2;
|
|
4226
|
-
}();
|
|
4118
|
+
})();
|
|
4227
4119
|
function inArray(src, find2, findByKey) {
|
|
4228
4120
|
if (src.indexOf && !findByKey) {
|
|
4229
4121
|
return src.indexOf(find2);
|
|
@@ -4258,7 +4150,7 @@ if (win.MSPointerEvent && !win.PointerEvent) {
|
|
|
4258
4150
|
POINTER_ELEMENT_EVENTS = "MSPointerDown";
|
|
4259
4151
|
POINTER_WINDOW_EVENTS = "MSPointerMove MSPointerUp MSPointerCancel";
|
|
4260
4152
|
}
|
|
4261
|
-
var PointerEventInput = /* @__PURE__ */ function(_Input) {
|
|
4153
|
+
var PointerEventInput = /* @__PURE__ */ (function(_Input) {
|
|
4262
4154
|
_inheritsLoose(PointerEventInput2, _Input);
|
|
4263
4155
|
function PointerEventInput2() {
|
|
4264
4156
|
var _this;
|
|
@@ -4301,7 +4193,7 @@ var PointerEventInput = /* @__PURE__ */ function(_Input) {
|
|
|
4301
4193
|
}
|
|
4302
4194
|
};
|
|
4303
4195
|
return PointerEventInput2;
|
|
4304
|
-
}(Input);
|
|
4196
|
+
})(Input);
|
|
4305
4197
|
function toArray(obj) {
|
|
4306
4198
|
return Array.prototype.slice.call(obj, 0);
|
|
4307
4199
|
}
|
|
@@ -4335,7 +4227,7 @@ var TOUCH_INPUT_MAP = {
|
|
|
4335
4227
|
touchcancel: INPUT_CANCEL
|
|
4336
4228
|
};
|
|
4337
4229
|
var TOUCH_TARGET_EVENTS = "touchstart touchmove touchend touchcancel";
|
|
4338
|
-
var TouchInput = /* @__PURE__ */ function(_Input) {
|
|
4230
|
+
var TouchInput = /* @__PURE__ */ (function(_Input) {
|
|
4339
4231
|
_inheritsLoose(TouchInput2, _Input);
|
|
4340
4232
|
function TouchInput2() {
|
|
4341
4233
|
var _this;
|
|
@@ -4359,7 +4251,7 @@ var TouchInput = /* @__PURE__ */ function(_Input) {
|
|
|
4359
4251
|
});
|
|
4360
4252
|
};
|
|
4361
4253
|
return TouchInput2;
|
|
4362
|
-
}(Input);
|
|
4254
|
+
})(Input);
|
|
4363
4255
|
function getTouches(ev, type) {
|
|
4364
4256
|
var allTouches = toArray(ev.touches);
|
|
4365
4257
|
var targetIds = this.targetIds;
|
|
@@ -4408,7 +4300,7 @@ var MOUSE_INPUT_MAP = {
|
|
|
4408
4300
|
};
|
|
4409
4301
|
var MOUSE_ELEMENT_EVENTS = "mousedown";
|
|
4410
4302
|
var MOUSE_WINDOW_EVENTS = "mousemove mouseup";
|
|
4411
|
-
var MouseInput = /* @__PURE__ */ function(_Input) {
|
|
4303
|
+
var MouseInput = /* @__PURE__ */ (function(_Input) {
|
|
4412
4304
|
_inheritsLoose(MouseInput2, _Input);
|
|
4413
4305
|
function MouseInput2() {
|
|
4414
4306
|
var _this;
|
|
@@ -4442,7 +4334,7 @@ var MouseInput = /* @__PURE__ */ function(_Input) {
|
|
|
4442
4334
|
});
|
|
4443
4335
|
};
|
|
4444
4336
|
return MouseInput2;
|
|
4445
|
-
}(Input);
|
|
4337
|
+
})(Input);
|
|
4446
4338
|
var DEDUP_TIMEOUT = 2500;
|
|
4447
4339
|
var DEDUP_DISTANCE = 25;
|
|
4448
4340
|
function setLastTouch(eventData) {
|
|
@@ -4484,8 +4376,8 @@ function isSyntheticEvent(eventData) {
|
|
|
4484
4376
|
}
|
|
4485
4377
|
return false;
|
|
4486
4378
|
}
|
|
4487
|
-
var TouchMouseInput = /* @__PURE__ */ function() {
|
|
4488
|
-
var TouchMouseInput2 = /* @__PURE__ */ function(_Input) {
|
|
4379
|
+
var TouchMouseInput = /* @__PURE__ */ (function() {
|
|
4380
|
+
var TouchMouseInput2 = /* @__PURE__ */ (function(_Input) {
|
|
4489
4381
|
_inheritsLoose(TouchMouseInput3, _Input);
|
|
4490
4382
|
function TouchMouseInput3(_manager, callback) {
|
|
4491
4383
|
var _this;
|
|
@@ -4515,9 +4407,9 @@ var TouchMouseInput = /* @__PURE__ */ function() {
|
|
|
4515
4407
|
this.mouse.destroy();
|
|
4516
4408
|
};
|
|
4517
4409
|
return TouchMouseInput3;
|
|
4518
|
-
}(Input);
|
|
4410
|
+
})(Input);
|
|
4519
4411
|
return TouchMouseInput2;
|
|
4520
|
-
}();
|
|
4412
|
+
})();
|
|
4521
4413
|
function createInputInstance(manager) {
|
|
4522
4414
|
var Type;
|
|
4523
4415
|
var inputClass = manager.options.inputClass;
|
|
@@ -4571,7 +4463,7 @@ function stateStr(state) {
|
|
|
4571
4463
|
}
|
|
4572
4464
|
return "";
|
|
4573
4465
|
}
|
|
4574
|
-
var Recognizer = /* @__PURE__ */ function() {
|
|
4466
|
+
var Recognizer = /* @__PURE__ */ (function() {
|
|
4575
4467
|
function Recognizer2(options) {
|
|
4576
4468
|
if (options === void 0) {
|
|
4577
4469
|
options = {};
|
|
@@ -4695,8 +4587,8 @@ var Recognizer = /* @__PURE__ */ function() {
|
|
|
4695
4587
|
_proto.reset = function reset() {
|
|
4696
4588
|
};
|
|
4697
4589
|
return Recognizer2;
|
|
4698
|
-
}();
|
|
4699
|
-
var TapRecognizer = /* @__PURE__ */ function(_Recognizer) {
|
|
4590
|
+
})();
|
|
4591
|
+
var TapRecognizer = /* @__PURE__ */ (function(_Recognizer) {
|
|
4700
4592
|
_inheritsLoose(TapRecognizer2, _Recognizer);
|
|
4701
4593
|
function TapRecognizer2(options) {
|
|
4702
4594
|
var _this;
|
|
@@ -4782,8 +4674,8 @@ var TapRecognizer = /* @__PURE__ */ function(_Recognizer) {
|
|
|
4782
4674
|
}
|
|
4783
4675
|
};
|
|
4784
4676
|
return TapRecognizer2;
|
|
4785
|
-
}(Recognizer);
|
|
4786
|
-
var AttrRecognizer = /* @__PURE__ */ function(_Recognizer) {
|
|
4677
|
+
})(Recognizer);
|
|
4678
|
+
var AttrRecognizer = /* @__PURE__ */ (function(_Recognizer) {
|
|
4787
4679
|
_inheritsLoose(AttrRecognizer2, _Recognizer);
|
|
4788
4680
|
function AttrRecognizer2(options) {
|
|
4789
4681
|
if (options === void 0) {
|
|
@@ -4816,7 +4708,7 @@ var AttrRecognizer = /* @__PURE__ */ function(_Recognizer) {
|
|
|
4816
4708
|
return STATE_FAILED;
|
|
4817
4709
|
};
|
|
4818
4710
|
return AttrRecognizer2;
|
|
4819
|
-
}(Recognizer);
|
|
4711
|
+
})(Recognizer);
|
|
4820
4712
|
function directionStr(direction) {
|
|
4821
4713
|
if (direction === DIRECTION_DOWN) {
|
|
4822
4714
|
return "down";
|
|
@@ -4829,7 +4721,7 @@ function directionStr(direction) {
|
|
|
4829
4721
|
}
|
|
4830
4722
|
return "";
|
|
4831
4723
|
}
|
|
4832
|
-
var PanRecognizer = /* @__PURE__ */ function(_AttrRecognizer) {
|
|
4724
|
+
var PanRecognizer = /* @__PURE__ */ (function(_AttrRecognizer) {
|
|
4833
4725
|
_inheritsLoose(PanRecognizer2, _AttrRecognizer);
|
|
4834
4726
|
function PanRecognizer2(options) {
|
|
4835
4727
|
var _this;
|
|
@@ -4893,8 +4785,8 @@ var PanRecognizer = /* @__PURE__ */ function(_AttrRecognizer) {
|
|
|
4893
4785
|
_AttrRecognizer.prototype.emit.call(this, input);
|
|
4894
4786
|
};
|
|
4895
4787
|
return PanRecognizer2;
|
|
4896
|
-
}(AttrRecognizer);
|
|
4897
|
-
var SwipeRecognizer = /* @__PURE__ */ function(_AttrRecognizer) {
|
|
4788
|
+
})(AttrRecognizer);
|
|
4789
|
+
var SwipeRecognizer = /* @__PURE__ */ (function(_AttrRecognizer) {
|
|
4898
4790
|
_inheritsLoose(SwipeRecognizer2, _AttrRecognizer);
|
|
4899
4791
|
function SwipeRecognizer2(options) {
|
|
4900
4792
|
if (options === void 0) {
|
|
@@ -4932,8 +4824,8 @@ var SwipeRecognizer = /* @__PURE__ */ function(_AttrRecognizer) {
|
|
|
4932
4824
|
this.manager.emit(this.options.event, input);
|
|
4933
4825
|
};
|
|
4934
4826
|
return SwipeRecognizer2;
|
|
4935
|
-
}(AttrRecognizer);
|
|
4936
|
-
var PinchRecognizer = /* @__PURE__ */ function(_AttrRecognizer) {
|
|
4827
|
+
})(AttrRecognizer);
|
|
4828
|
+
var PinchRecognizer = /* @__PURE__ */ (function(_AttrRecognizer) {
|
|
4937
4829
|
_inheritsLoose(PinchRecognizer2, _AttrRecognizer);
|
|
4938
4830
|
function PinchRecognizer2(options) {
|
|
4939
4831
|
if (options === void 0) {
|
|
@@ -4960,8 +4852,8 @@ var PinchRecognizer = /* @__PURE__ */ function(_AttrRecognizer) {
|
|
|
4960
4852
|
_AttrRecognizer.prototype.emit.call(this, input);
|
|
4961
4853
|
};
|
|
4962
4854
|
return PinchRecognizer2;
|
|
4963
|
-
}(AttrRecognizer);
|
|
4964
|
-
var RotateRecognizer = /* @__PURE__ */ function(_AttrRecognizer) {
|
|
4855
|
+
})(AttrRecognizer);
|
|
4856
|
+
var RotateRecognizer = /* @__PURE__ */ (function(_AttrRecognizer) {
|
|
4965
4857
|
_inheritsLoose(RotateRecognizer2, _AttrRecognizer);
|
|
4966
4858
|
function RotateRecognizer2(options) {
|
|
4967
4859
|
if (options === void 0) {
|
|
@@ -4981,8 +4873,8 @@ var RotateRecognizer = /* @__PURE__ */ function(_AttrRecognizer) {
|
|
|
4981
4873
|
return _AttrRecognizer.prototype.attrTest.call(this, input) && (Math.abs(input.rotation) > this.options.threshold || this.state & STATE_BEGAN);
|
|
4982
4874
|
};
|
|
4983
4875
|
return RotateRecognizer2;
|
|
4984
|
-
}(AttrRecognizer);
|
|
4985
|
-
var PressRecognizer = /* @__PURE__ */ function(_Recognizer) {
|
|
4876
|
+
})(AttrRecognizer);
|
|
4877
|
+
var PressRecognizer = /* @__PURE__ */ (function(_Recognizer) {
|
|
4986
4878
|
_inheritsLoose(PressRecognizer2, _Recognizer);
|
|
4987
4879
|
function PressRecognizer2(options) {
|
|
4988
4880
|
var _this;
|
|
@@ -5039,7 +4931,7 @@ var PressRecognizer = /* @__PURE__ */ function(_Recognizer) {
|
|
|
5039
4931
|
}
|
|
5040
4932
|
};
|
|
5041
4933
|
return PressRecognizer2;
|
|
5042
|
-
}(Recognizer);
|
|
4934
|
+
})(Recognizer);
|
|
5043
4935
|
var defaults = {
|
|
5044
4936
|
/**
|
|
5045
4937
|
* @private
|
|
@@ -5172,7 +5064,7 @@ function triggerDomEvent(event, data2) {
|
|
|
5172
5064
|
gestureEvent.gesture = data2;
|
|
5173
5065
|
data2.target.dispatchEvent(gestureEvent);
|
|
5174
5066
|
}
|
|
5175
|
-
var Manager = /* @__PURE__ */ function() {
|
|
5067
|
+
var Manager = /* @__PURE__ */ (function() {
|
|
5176
5068
|
function Manager2(element, options) {
|
|
5177
5069
|
var _this = this;
|
|
5178
5070
|
this.options = assign$1({}, defaults, options || {});
|
|
@@ -5328,7 +5220,7 @@ var Manager = /* @__PURE__ */ function() {
|
|
|
5328
5220
|
this.element = null;
|
|
5329
5221
|
};
|
|
5330
5222
|
return Manager2;
|
|
5331
|
-
}();
|
|
5223
|
+
})();
|
|
5332
5224
|
var SINGLE_TOUCH_INPUT_MAP = {
|
|
5333
5225
|
touchstart: INPUT_START,
|
|
5334
5226
|
touchmove: INPUT_MOVE,
|
|
@@ -5337,7 +5229,7 @@ var SINGLE_TOUCH_INPUT_MAP = {
|
|
|
5337
5229
|
};
|
|
5338
5230
|
var SINGLE_TOUCH_TARGET_EVENTS = "touchstart";
|
|
5339
5231
|
var SINGLE_TOUCH_WINDOW_EVENTS = "touchstart touchmove touchend touchcancel";
|
|
5340
|
-
var SingleTouchInput = /* @__PURE__ */ function(_Input) {
|
|
5232
|
+
var SingleTouchInput = /* @__PURE__ */ (function(_Input) {
|
|
5341
5233
|
_inheritsLoose(SingleTouchInput2, _Input);
|
|
5342
5234
|
function SingleTouchInput2() {
|
|
5343
5235
|
var _this;
|
|
@@ -5369,7 +5261,7 @@ var SingleTouchInput = /* @__PURE__ */ function(_Input) {
|
|
|
5369
5261
|
});
|
|
5370
5262
|
};
|
|
5371
5263
|
return SingleTouchInput2;
|
|
5372
|
-
}(Input);
|
|
5264
|
+
})(Input);
|
|
5373
5265
|
function normalizeSingleTouches(ev, type) {
|
|
5374
5266
|
var all = toArray(ev.touches);
|
|
5375
5267
|
var changed = toArray(ev.changedTouches);
|
|
@@ -5419,7 +5311,7 @@ function bindFn(fn, context) {
|
|
|
5419
5311
|
return fn.apply(context, arguments);
|
|
5420
5312
|
};
|
|
5421
5313
|
}
|
|
5422
|
-
var Hammer$2 = /* @__PURE__ */ function() {
|
|
5314
|
+
var Hammer$2 = /* @__PURE__ */ (function() {
|
|
5423
5315
|
var Hammer2 = (
|
|
5424
5316
|
/**
|
|
5425
5317
|
* @private
|
|
@@ -5493,7 +5385,7 @@ var Hammer$2 = /* @__PURE__ */ function() {
|
|
|
5493
5385
|
preset
|
|
5494
5386
|
});
|
|
5495
5387
|
return Hammer2;
|
|
5496
|
-
}();
|
|
5388
|
+
})();
|
|
5497
5389
|
Hammer$2.defaults;
|
|
5498
5390
|
var RealHammer = Hammer$2;
|
|
5499
5391
|
var DELETE = _Symbol$1("DELETE");
|
|
@@ -5524,8 +5416,7 @@ function deepObjectAssignNonentry() {
|
|
|
5524
5416
|
return a;
|
|
5525
5417
|
}
|
|
5526
5418
|
for (const prop of _Reflect$ownKeys(b)) {
|
|
5527
|
-
if (!Object.prototype.propertyIsEnumerable.call(b, prop))
|
|
5528
|
-
;
|
|
5419
|
+
if (!Object.prototype.propertyIsEnumerable.call(b, prop)) ;
|
|
5529
5420
|
else if (b[prop] === DELETE) {
|
|
5530
5421
|
delete a[prop];
|
|
5531
5422
|
} else if (a[prop] !== null && b[prop] !== null && typeof a[prop] === "object" && typeof b[prop] === "object" && !_Array$isArray(a[prop]) && !_Array$isArray(b[prop])) {
|
|
@@ -8058,10 +7949,8 @@ var Validator$1 = class Validator {
|
|
|
8058
7949
|
* @static
|
|
8059
7950
|
*/
|
|
8060
7951
|
static levenshteinDistance(a, b) {
|
|
8061
|
-
if (a.length === 0)
|
|
8062
|
-
|
|
8063
|
-
if (b.length === 0)
|
|
8064
|
-
return a.length;
|
|
7952
|
+
if (a.length === 0) return b.length;
|
|
7953
|
+
if (b.length === 0) return a.length;
|
|
8065
7954
|
const matrix = [];
|
|
8066
7955
|
let i;
|
|
8067
7956
|
for (i = 0; i <= b.length; i++) {
|
|
@@ -9363,8 +9252,7 @@ var CachedImage = class {
|
|
|
9363
9252
|
* Called when the image has been successfully loaded.
|
|
9364
9253
|
*/
|
|
9365
9254
|
init() {
|
|
9366
|
-
if (this.initialized())
|
|
9367
|
-
return;
|
|
9255
|
+
if (this.initialized()) return;
|
|
9368
9256
|
this.src = this.image.src;
|
|
9369
9257
|
const w = this.image.width;
|
|
9370
9258
|
const h = this.image.height;
|
|
@@ -9430,8 +9318,7 @@ var CachedImage = class {
|
|
|
9430
9318
|
* @param {number} height
|
|
9431
9319
|
*/
|
|
9432
9320
|
drawImageAtPosition(ctx, factor, left, top, width, height) {
|
|
9433
|
-
if (!this.initialized())
|
|
9434
|
-
return;
|
|
9321
|
+
if (!this.initialized()) return;
|
|
9435
9322
|
if (factor > 2) {
|
|
9436
9323
|
factor *= 0.5;
|
|
9437
9324
|
let iterations = 0;
|
|
@@ -9464,8 +9351,7 @@ var Images = class {
|
|
|
9464
9351
|
* @param {Image} imageToLoadBrokenUrlOn The image object
|
|
9465
9352
|
*/
|
|
9466
9353
|
_tryloadBrokenUrl(url, brokenUrl, imageToLoadBrokenUrlOn) {
|
|
9467
|
-
if (url === void 0 || imageToLoadBrokenUrlOn === void 0)
|
|
9468
|
-
return;
|
|
9354
|
+
if (url === void 0 || imageToLoadBrokenUrlOn === void 0) return;
|
|
9469
9355
|
if (brokenUrl === void 0) {
|
|
9470
9356
|
console.warn("No broken url image defined");
|
|
9471
9357
|
return;
|
|
@@ -9492,8 +9378,7 @@ var Images = class {
|
|
|
9492
9378
|
*/
|
|
9493
9379
|
load(url, brokenUrl) {
|
|
9494
9380
|
const cachedImage = this.images[url];
|
|
9495
|
-
if (cachedImage)
|
|
9496
|
-
return cachedImage;
|
|
9381
|
+
if (cachedImage) return cachedImage;
|
|
9497
9382
|
const img = new CachedImage();
|
|
9498
9383
|
this.images[url] = img;
|
|
9499
9384
|
img.image.onload = () => {
|
|
@@ -9529,8 +9414,7 @@ var fails$8 = fails$v;
|
|
|
9529
9414
|
var arrayBufferNonExtensible = fails$8(function() {
|
|
9530
9415
|
if (typeof ArrayBuffer == "function") {
|
|
9531
9416
|
var buffer = new ArrayBuffer(8);
|
|
9532
|
-
if (Object.isExtensible(buffer))
|
|
9533
|
-
Object.defineProperty(buffer, "a", { value: 8 });
|
|
9417
|
+
if (Object.isExtensible(buffer)) Object.defineProperty(buffer, "a", { value: 8 });
|
|
9534
9418
|
}
|
|
9535
9419
|
});
|
|
9536
9420
|
var fails$7 = fails$v;
|
|
@@ -9542,10 +9426,8 @@ var FAILS_ON_PRIMITIVES$1 = fails$7(function() {
|
|
|
9542
9426
|
$isExtensible(1);
|
|
9543
9427
|
});
|
|
9544
9428
|
var objectIsExtensible = FAILS_ON_PRIMITIVES$1 || ARRAY_BUFFER_NON_EXTENSIBLE ? function isExtensible(it2) {
|
|
9545
|
-
if (!isObject$4(it2))
|
|
9546
|
-
|
|
9547
|
-
if (ARRAY_BUFFER_NON_EXTENSIBLE && classof$5(it2) === "ArrayBuffer")
|
|
9548
|
-
return false;
|
|
9429
|
+
if (!isObject$4(it2)) return false;
|
|
9430
|
+
if (ARRAY_BUFFER_NON_EXTENSIBLE && classof$5(it2) === "ArrayBuffer") return false;
|
|
9549
9431
|
return $isExtensible ? $isExtensible(it2) : true;
|
|
9550
9432
|
} : $isExtensible;
|
|
9551
9433
|
var fails$6 = fails$v;
|
|
@@ -9575,30 +9457,24 @@ var setMetadata = function(it2) {
|
|
|
9575
9457
|
} });
|
|
9576
9458
|
};
|
|
9577
9459
|
var fastKey$1 = function(it2, create5) {
|
|
9578
|
-
if (!isObject$3(it2))
|
|
9579
|
-
return typeof it2 == "symbol" ? it2 : (typeof it2 == "string" ? "S" : "P") + it2;
|
|
9460
|
+
if (!isObject$3(it2)) return typeof it2 == "symbol" ? it2 : (typeof it2 == "string" ? "S" : "P") + it2;
|
|
9580
9461
|
if (!hasOwn$4(it2, METADATA$1)) {
|
|
9581
|
-
if (!isExtensible$1(it2))
|
|
9582
|
-
|
|
9583
|
-
if (!create5)
|
|
9584
|
-
return "E";
|
|
9462
|
+
if (!isExtensible$1(it2)) return "F";
|
|
9463
|
+
if (!create5) return "E";
|
|
9585
9464
|
setMetadata(it2);
|
|
9586
9465
|
}
|
|
9587
9466
|
return it2[METADATA$1].objectID;
|
|
9588
9467
|
};
|
|
9589
9468
|
var getWeakData$1 = function(it2, create5) {
|
|
9590
9469
|
if (!hasOwn$4(it2, METADATA$1)) {
|
|
9591
|
-
if (!isExtensible$1(it2))
|
|
9592
|
-
|
|
9593
|
-
if (!create5)
|
|
9594
|
-
return false;
|
|
9470
|
+
if (!isExtensible$1(it2)) return true;
|
|
9471
|
+
if (!create5) return false;
|
|
9595
9472
|
setMetadata(it2);
|
|
9596
9473
|
}
|
|
9597
9474
|
return it2[METADATA$1].weakData;
|
|
9598
9475
|
};
|
|
9599
9476
|
var onFreeze = function(it2) {
|
|
9600
|
-
if (FREEZING$1 && REQUIRED && isExtensible$1(it2) && !hasOwn$4(it2, METADATA$1))
|
|
9601
|
-
setMetadata(it2);
|
|
9477
|
+
if (FREEZING$1 && REQUIRED && isExtensible$1(it2) && !hasOwn$4(it2, METADATA$1)) setMetadata(it2);
|
|
9602
9478
|
return it2;
|
|
9603
9479
|
};
|
|
9604
9480
|
var enable = function() {
|
|
@@ -9647,8 +9523,7 @@ var Iterators = iterators;
|
|
|
9647
9523
|
var wellKnownSymbol$3 = wellKnownSymbol$l;
|
|
9648
9524
|
var ITERATOR$1 = wellKnownSymbol$3("iterator");
|
|
9649
9525
|
var getIteratorMethod$2 = function(it2) {
|
|
9650
|
-
if (!isNullOrUndefined$3(it2))
|
|
9651
|
-
return getMethod$1(it2, ITERATOR$1) || getMethod$1(it2, "@@iterator") || Iterators[classof$4(it2)];
|
|
9526
|
+
if (!isNullOrUndefined$3(it2)) return getMethod$1(it2, ITERATOR$1) || getMethod$1(it2, "@@iterator") || Iterators[classof$4(it2)];
|
|
9652
9527
|
};
|
|
9653
9528
|
var call$2 = functionCall;
|
|
9654
9529
|
var aCallable$3 = aCallable$7;
|
|
@@ -9658,8 +9533,7 @@ var getIteratorMethod$1 = getIteratorMethod$2;
|
|
|
9658
9533
|
var $TypeError$3 = TypeError;
|
|
9659
9534
|
var getIterator$7 = function(argument, usingIterator) {
|
|
9660
9535
|
var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
|
|
9661
|
-
if (aCallable$3(iteratorMethod))
|
|
9662
|
-
return anObject$3(call$2(iteratorMethod, argument));
|
|
9536
|
+
if (aCallable$3(iteratorMethod)) return anObject$3(call$2(iteratorMethod, argument));
|
|
9663
9537
|
throw new $TypeError$3(tryToString$1(argument) + " is not iterable");
|
|
9664
9538
|
};
|
|
9665
9539
|
var call$1 = functionCall;
|
|
@@ -9671,8 +9545,7 @@ var iteratorClose$1 = function(iterator2, kind, value) {
|
|
|
9671
9545
|
try {
|
|
9672
9546
|
innerResult = getMethod(iterator2, "return");
|
|
9673
9547
|
if (!innerResult) {
|
|
9674
|
-
if (kind === "throw")
|
|
9675
|
-
throw value;
|
|
9548
|
+
if (kind === "throw") throw value;
|
|
9676
9549
|
return value;
|
|
9677
9550
|
}
|
|
9678
9551
|
innerResult = call$1(innerResult, iterator2);
|
|
@@ -9680,10 +9553,8 @@ var iteratorClose$1 = function(iterator2, kind, value) {
|
|
|
9680
9553
|
innerError = true;
|
|
9681
9554
|
innerResult = error;
|
|
9682
9555
|
}
|
|
9683
|
-
if (kind === "throw")
|
|
9684
|
-
|
|
9685
|
-
if (innerError)
|
|
9686
|
-
throw innerResult;
|
|
9556
|
+
if (kind === "throw") throw value;
|
|
9557
|
+
if (innerError) throw innerResult;
|
|
9687
9558
|
anObject$2(innerResult);
|
|
9688
9559
|
return value;
|
|
9689
9560
|
};
|
|
@@ -9712,8 +9583,7 @@ var iterate$3 = function(iterable, unboundFunction, options) {
|
|
|
9712
9583
|
var fn = bind$2(unboundFunction, that);
|
|
9713
9584
|
var iterator2, iterFn, index, length2, result, next3, step;
|
|
9714
9585
|
var stop = function(condition) {
|
|
9715
|
-
if (iterator2)
|
|
9716
|
-
iteratorClose(iterator2, "normal", condition);
|
|
9586
|
+
if (iterator2) iteratorClose(iterator2, "normal", condition);
|
|
9717
9587
|
return new Result(true, condition);
|
|
9718
9588
|
};
|
|
9719
9589
|
var callFn = function(value) {
|
|
@@ -9729,13 +9599,11 @@ var iterate$3 = function(iterable, unboundFunction, options) {
|
|
|
9729
9599
|
iterator2 = iterable;
|
|
9730
9600
|
} else {
|
|
9731
9601
|
iterFn = getIteratorMethod(iterable);
|
|
9732
|
-
if (!iterFn)
|
|
9733
|
-
throw new $TypeError$2(tryToString(iterable) + " is not iterable");
|
|
9602
|
+
if (!iterFn) throw new $TypeError$2(tryToString(iterable) + " is not iterable");
|
|
9734
9603
|
if (isArrayIteratorMethod(iterFn)) {
|
|
9735
9604
|
for (index = 0, length2 = lengthOfArrayLike$4(iterable); length2 > index; index++) {
|
|
9736
9605
|
result = callFn(iterable[index]);
|
|
9737
|
-
if (result && isPrototypeOf$9(ResultPrototype, result))
|
|
9738
|
-
return result;
|
|
9606
|
+
if (result && isPrototypeOf$9(ResultPrototype, result)) return result;
|
|
9739
9607
|
}
|
|
9740
9608
|
return new Result(false);
|
|
9741
9609
|
}
|
|
@@ -9748,16 +9616,14 @@ var iterate$3 = function(iterable, unboundFunction, options) {
|
|
|
9748
9616
|
} catch (error) {
|
|
9749
9617
|
iteratorClose(iterator2, "throw", error);
|
|
9750
9618
|
}
|
|
9751
|
-
if (typeof result == "object" && result && isPrototypeOf$9(ResultPrototype, result))
|
|
9752
|
-
return result;
|
|
9619
|
+
if (typeof result == "object" && result && isPrototypeOf$9(ResultPrototype, result)) return result;
|
|
9753
9620
|
}
|
|
9754
9621
|
return new Result(false);
|
|
9755
9622
|
};
|
|
9756
9623
|
var isPrototypeOf$8 = objectIsPrototypeOf;
|
|
9757
9624
|
var $TypeError$1 = TypeError;
|
|
9758
9625
|
var anInstance$3 = function(it2, Prototype) {
|
|
9759
|
-
if (isPrototypeOf$8(Prototype, it2))
|
|
9760
|
-
return it2;
|
|
9626
|
+
if (isPrototypeOf$8(Prototype, it2)) return it2;
|
|
9761
9627
|
throw new $TypeError$1("Incorrect invocation");
|
|
9762
9628
|
};
|
|
9763
9629
|
var $$i = _export;
|
|
@@ -9796,8 +9662,7 @@ var collection$3 = function(CONSTRUCTOR_NAME, wrapper2, common) {
|
|
|
9796
9662
|
type: CONSTRUCTOR_NAME,
|
|
9797
9663
|
collection: new NativeConstructor()
|
|
9798
9664
|
});
|
|
9799
|
-
if (!isNullOrUndefined$2(iterable))
|
|
9800
|
-
iterate$2(iterable, target[ADDER], { that: target, AS_ENTRIES: IS_MAP });
|
|
9665
|
+
if (!isNullOrUndefined$2(iterable)) iterate$2(iterable, target[ADDER], { that: target, AS_ENTRIES: IS_MAP });
|
|
9801
9666
|
});
|
|
9802
9667
|
var Prototype = Constructor.prototype;
|
|
9803
9668
|
var getInternalState2 = internalStateGetterFor$2(CONSTRUCTOR_NAME);
|
|
@@ -9806,8 +9671,7 @@ var collection$3 = function(CONSTRUCTOR_NAME, wrapper2, common) {
|
|
|
9806
9671
|
if (KEY in NativePrototype && !(IS_WEAK && KEY === "clear")) {
|
|
9807
9672
|
createNonEnumerableProperty(Prototype, KEY, function(a, b) {
|
|
9808
9673
|
var collection2 = getInternalState2(this).collection;
|
|
9809
|
-
if (!IS_ADDER && IS_WEAK && !isObject$2(a))
|
|
9810
|
-
return KEY === "get" ? void 0 : false;
|
|
9674
|
+
if (!IS_ADDER && IS_WEAK && !isObject$2(a)) return KEY === "get" ? void 0 : false;
|
|
9811
9675
|
var result = collection2[KEY](a === 0 ? 0 : a, b);
|
|
9812
9676
|
return IS_ADDER ? this : result;
|
|
9813
9677
|
});
|
|
@@ -9823,17 +9687,14 @@ var collection$3 = function(CONSTRUCTOR_NAME, wrapper2, common) {
|
|
|
9823
9687
|
setToStringTag(Constructor, CONSTRUCTOR_NAME, false, true);
|
|
9824
9688
|
exported[CONSTRUCTOR_NAME] = Constructor;
|
|
9825
9689
|
$$i({ global: true, forced: true }, exported);
|
|
9826
|
-
if (!IS_WEAK)
|
|
9827
|
-
common.setStrong(Constructor, CONSTRUCTOR_NAME, IS_MAP);
|
|
9690
|
+
if (!IS_WEAK) common.setStrong(Constructor, CONSTRUCTOR_NAME, IS_MAP);
|
|
9828
9691
|
return Constructor;
|
|
9829
9692
|
};
|
|
9830
9693
|
var defineBuiltIn = defineBuiltIn$5;
|
|
9831
9694
|
var defineBuiltIns$3 = function(target, src, options) {
|
|
9832
9695
|
for (var key in src) {
|
|
9833
|
-
if (options && options.unsafe && target[key])
|
|
9834
|
-
|
|
9835
|
-
else
|
|
9836
|
-
defineBuiltIn(target, key, src[key], options);
|
|
9696
|
+
if (options && options.unsafe && target[key]) target[key] = src[key];
|
|
9697
|
+
else defineBuiltIn(target, key, src[key], options);
|
|
9837
9698
|
}
|
|
9838
9699
|
return target;
|
|
9839
9700
|
};
|
|
@@ -9879,10 +9740,8 @@ var collectionStrong$2 = {
|
|
|
9879
9740
|
last: void 0,
|
|
9880
9741
|
size: 0
|
|
9881
9742
|
});
|
|
9882
|
-
if (!DESCRIPTORS$4)
|
|
9883
|
-
|
|
9884
|
-
if (!isNullOrUndefined$1(iterable))
|
|
9885
|
-
iterate$1(iterable, that[ADDER], { that, AS_ENTRIES: IS_MAP });
|
|
9743
|
+
if (!DESCRIPTORS$4) that.size = 0;
|
|
9744
|
+
if (!isNullOrUndefined$1(iterable)) iterate$1(iterable, that[ADDER], { that, AS_ENTRIES: IS_MAP });
|
|
9886
9745
|
});
|
|
9887
9746
|
var Prototype = Constructor.prototype;
|
|
9888
9747
|
var getInternalState2 = internalStateGetterFor$1(CONSTRUCTOR_NAME);
|
|
@@ -9901,16 +9760,11 @@ var collectionStrong$2 = {
|
|
|
9901
9760
|
next: void 0,
|
|
9902
9761
|
removed: false
|
|
9903
9762
|
};
|
|
9904
|
-
if (!state.first)
|
|
9905
|
-
|
|
9906
|
-
if (
|
|
9907
|
-
|
|
9908
|
-
if (
|
|
9909
|
-
state.size++;
|
|
9910
|
-
else
|
|
9911
|
-
that.size++;
|
|
9912
|
-
if (index !== "F")
|
|
9913
|
-
state.index[index] = entry;
|
|
9763
|
+
if (!state.first) state.first = entry;
|
|
9764
|
+
if (previous) previous.next = entry;
|
|
9765
|
+
if (DESCRIPTORS$4) state.size++;
|
|
9766
|
+
else that.size++;
|
|
9767
|
+
if (index !== "F") state.index[index] = entry;
|
|
9914
9768
|
}
|
|
9915
9769
|
return that;
|
|
9916
9770
|
};
|
|
@@ -9918,11 +9772,9 @@ var collectionStrong$2 = {
|
|
|
9918
9772
|
var state = getInternalState2(that);
|
|
9919
9773
|
var index = fastKey(key);
|
|
9920
9774
|
var entry;
|
|
9921
|
-
if (index !== "F")
|
|
9922
|
-
return state.index[index];
|
|
9775
|
+
if (index !== "F") return state.index[index];
|
|
9923
9776
|
for (entry = state.first; entry; entry = entry.next) {
|
|
9924
|
-
if (entry.key === key)
|
|
9925
|
-
return entry;
|
|
9777
|
+
if (entry.key === key) return entry;
|
|
9926
9778
|
}
|
|
9927
9779
|
};
|
|
9928
9780
|
defineBuiltIns$2(Prototype, {
|
|
@@ -9936,16 +9788,13 @@ var collectionStrong$2 = {
|
|
|
9936
9788
|
var entry = state.first;
|
|
9937
9789
|
while (entry) {
|
|
9938
9790
|
entry.removed = true;
|
|
9939
|
-
if (entry.previous)
|
|
9940
|
-
entry.previous = entry.previous.next = void 0;
|
|
9791
|
+
if (entry.previous) entry.previous = entry.previous.next = void 0;
|
|
9941
9792
|
delete data2[entry.index];
|
|
9942
9793
|
entry = entry.next;
|
|
9943
9794
|
}
|
|
9944
9795
|
state.first = state.last = void 0;
|
|
9945
|
-
if (DESCRIPTORS$4)
|
|
9946
|
-
|
|
9947
|
-
else
|
|
9948
|
-
that.size = 0;
|
|
9796
|
+
if (DESCRIPTORS$4) state.size = 0;
|
|
9797
|
+
else that.size = 0;
|
|
9949
9798
|
},
|
|
9950
9799
|
// `{ Map, Set }.prototype.delete(key)` methods
|
|
9951
9800
|
// https://tc39.es/ecma262/#sec-map.prototype.delete
|
|
@@ -9959,18 +9808,12 @@ var collectionStrong$2 = {
|
|
|
9959
9808
|
var prev = entry.previous;
|
|
9960
9809
|
delete state.index[entry.index];
|
|
9961
9810
|
entry.removed = true;
|
|
9962
|
-
if (prev)
|
|
9963
|
-
|
|
9964
|
-
if (next3
|
|
9965
|
-
|
|
9966
|
-
if (state.
|
|
9967
|
-
|
|
9968
|
-
if (state.last === entry)
|
|
9969
|
-
state.last = prev;
|
|
9970
|
-
if (DESCRIPTORS$4)
|
|
9971
|
-
state.size--;
|
|
9972
|
-
else
|
|
9973
|
-
that.size--;
|
|
9811
|
+
if (prev) prev.next = next3;
|
|
9812
|
+
if (next3) next3.previous = prev;
|
|
9813
|
+
if (state.first === entry) state.first = next3;
|
|
9814
|
+
if (state.last === entry) state.last = prev;
|
|
9815
|
+
if (DESCRIPTORS$4) state.size--;
|
|
9816
|
+
else that.size--;
|
|
9974
9817
|
}
|
|
9975
9818
|
return !!entry;
|
|
9976
9819
|
},
|
|
@@ -9983,8 +9826,7 @@ var collectionStrong$2 = {
|
|
|
9983
9826
|
var entry;
|
|
9984
9827
|
while (entry = entry ? entry.next : state.first) {
|
|
9985
9828
|
boundFunction(entry.value, entry.key, this);
|
|
9986
|
-
while (entry && entry.removed)
|
|
9987
|
-
entry = entry.previous;
|
|
9829
|
+
while (entry && entry.removed) entry = entry.previous;
|
|
9988
9830
|
}
|
|
9989
9831
|
},
|
|
9990
9832
|
// `{ Map, Set}.prototype.has(key)` methods
|
|
@@ -10013,13 +9855,12 @@ var collectionStrong$2 = {
|
|
|
10013
9855
|
return define(this, value = value === 0 ? 0 : value, value);
|
|
10014
9856
|
}
|
|
10015
9857
|
});
|
|
10016
|
-
if (DESCRIPTORS$4)
|
|
10017
|
-
|
|
10018
|
-
|
|
10019
|
-
|
|
10020
|
-
|
|
10021
|
-
|
|
10022
|
-
});
|
|
9858
|
+
if (DESCRIPTORS$4) defineBuiltInAccessor(Prototype, "size", {
|
|
9859
|
+
configurable: true,
|
|
9860
|
+
get: function() {
|
|
9861
|
+
return getInternalState2(this).size;
|
|
9862
|
+
}
|
|
9863
|
+
});
|
|
10023
9864
|
return Constructor;
|
|
10024
9865
|
},
|
|
10025
9866
|
setStrong: function(Constructor, CONSTRUCTOR_NAME, IS_MAP) {
|
|
@@ -10038,16 +9879,13 @@ var collectionStrong$2 = {
|
|
|
10038
9879
|
var state = getInternalIteratorState(this);
|
|
10039
9880
|
var kind = state.kind;
|
|
10040
9881
|
var entry = state.last;
|
|
10041
|
-
while (entry && entry.removed)
|
|
10042
|
-
entry = entry.previous;
|
|
9882
|
+
while (entry && entry.removed) entry = entry.previous;
|
|
10043
9883
|
if (!state.target || !(state.last = entry = entry ? entry.next : state.state.first)) {
|
|
10044
9884
|
state.target = void 0;
|
|
10045
9885
|
return createIterResultObject$1(void 0, true);
|
|
10046
9886
|
}
|
|
10047
|
-
if (kind === "keys")
|
|
10048
|
-
|
|
10049
|
-
if (kind === "values")
|
|
10050
|
-
return createIterResultObject$1(entry.value, false);
|
|
9887
|
+
if (kind === "keys") return createIterResultObject$1(entry.key, false);
|
|
9888
|
+
if (kind === "values") return createIterResultObject$1(entry.value, false);
|
|
10051
9889
|
return createIterResultObject$1([entry.key, entry.value], false);
|
|
10052
9890
|
}, IS_MAP ? "entries" : "values", !IS_MAP, true);
|
|
10053
9891
|
setSpecies(CONSTRUCTOR_NAME);
|
|
@@ -10073,8 +9911,7 @@ var createMethod$1 = function(CONVERT_TO_STRING) {
|
|
|
10073
9911
|
var position = toIntegerOrInfinity(pos);
|
|
10074
9912
|
var size = S.length;
|
|
10075
9913
|
var first2, second;
|
|
10076
|
-
if (position < 0 || position >= size)
|
|
10077
|
-
return CONVERT_TO_STRING ? "" : void 0;
|
|
9914
|
+
if (position < 0 || position >= size) return CONVERT_TO_STRING ? "" : void 0;
|
|
10078
9915
|
first2 = charCodeAt(S, position);
|
|
10079
9916
|
return first2 < 55296 || first2 > 56319 || position + 1 === size || (second = charCodeAt(S, position + 1)) < 56320 || second > 57343 ? CONVERT_TO_STRING ? charAt$2(S, position) : first2 : CONVERT_TO_STRING ? stringSlice(S, position, position + 2) : (first2 - 55296 << 10) + (second - 56320) + 65536;
|
|
10080
9917
|
};
|
|
@@ -10106,8 +9943,7 @@ defineIterator(String, "String", function(iterated) {
|
|
|
10106
9943
|
var string2 = state.string;
|
|
10107
9944
|
var index = state.index;
|
|
10108
9945
|
var point;
|
|
10109
|
-
if (index >= string2.length)
|
|
10110
|
-
return createIterResultObject(void 0, true);
|
|
9946
|
+
if (index >= string2.length) return createIterResultObject(void 0, true);
|
|
10111
9947
|
point = charAt$1(string2, index);
|
|
10112
9948
|
state.index += point.length;
|
|
10113
9949
|
return createIterResultObject(point, false);
|
|
@@ -10535,8 +10371,7 @@ var Object$4 = path$9.Object;
|
|
|
10535
10371
|
var getOwnPropertyDescriptor$2 = getOwnPropertyDescriptor$3.exports = function getOwnPropertyDescriptor4(it2, key) {
|
|
10536
10372
|
return Object$4.getOwnPropertyDescriptor(it2, key);
|
|
10537
10373
|
};
|
|
10538
|
-
if (Object$4.getOwnPropertyDescriptor.sham)
|
|
10539
|
-
getOwnPropertyDescriptor$2.sham = true;
|
|
10374
|
+
if (Object$4.getOwnPropertyDescriptor.sham) getOwnPropertyDescriptor$2.sham = true;
|
|
10540
10375
|
var getOwnPropertyDescriptorExports = getOwnPropertyDescriptor$3.exports;
|
|
10541
10376
|
var parent$s = getOwnPropertyDescriptorExports;
|
|
10542
10377
|
var getOwnPropertyDescriptor$1 = parent$s;
|
|
@@ -10558,8 +10393,7 @@ $$d({ target: "Object", stat: true, sham: !DESCRIPTORS$2 }, {
|
|
|
10558
10393
|
var key, descriptor;
|
|
10559
10394
|
while (keys4.length > index) {
|
|
10560
10395
|
descriptor = getOwnPropertyDescriptor6(O, key = keys4[index++]);
|
|
10561
|
-
if (descriptor !== void 0)
|
|
10562
|
-
createProperty(result, key, descriptor);
|
|
10396
|
+
if (descriptor !== void 0) createProperty(result, key, descriptor);
|
|
10563
10397
|
}
|
|
10564
10398
|
return result;
|
|
10565
10399
|
}
|
|
@@ -10582,8 +10416,7 @@ var Object$3 = path$7.Object;
|
|
|
10582
10416
|
var defineProperties$2 = defineProperties$4.exports = function defineProperties3(T, D) {
|
|
10583
10417
|
return Object$3.defineProperties(T, D);
|
|
10584
10418
|
};
|
|
10585
|
-
if (Object$3.defineProperties.sham)
|
|
10586
|
-
defineProperties$2.sham = true;
|
|
10419
|
+
if (Object$3.defineProperties.sham) defineProperties$2.sham = true;
|
|
10587
10420
|
var definePropertiesExports = defineProperties$4.exports;
|
|
10588
10421
|
var parent$q = definePropertiesExports;
|
|
10589
10422
|
var defineProperties$1 = parent$q;
|
|
@@ -10601,8 +10434,7 @@ var Object$2 = path$6.Object;
|
|
|
10601
10434
|
var defineProperty$6 = defineProperty$8.exports = function defineProperty4(it2, key, desc) {
|
|
10602
10435
|
return Object$2.defineProperty(it2, key, desc);
|
|
10603
10436
|
};
|
|
10604
|
-
if (Object$2.defineProperty.sham)
|
|
10605
|
-
defineProperty$6.sham = true;
|
|
10437
|
+
if (Object$2.defineProperty.sham) defineProperty$6.sham = true;
|
|
10606
10438
|
var definePropertyExports = defineProperty$8.exports;
|
|
10607
10439
|
var parent$p = definePropertyExports;
|
|
10608
10440
|
var defineProperty$5 = parent$p;
|
|
@@ -10659,8 +10491,7 @@ var WellKnownSymbolsStore = shared("wks");
|
|
|
10659
10491
|
for (i = 0, symbolKeys = getOwnPropertyNames$4(Symbol$2), symbolKeysLength = symbolKeys.length; i < symbolKeysLength; i++) {
|
|
10660
10492
|
try {
|
|
10661
10493
|
symbolKey = symbolKeys[i];
|
|
10662
|
-
if (isSymbol(Symbol$2[symbolKey]))
|
|
10663
|
-
wellKnownSymbol(symbolKey);
|
|
10494
|
+
if (isSymbol(Symbol$2[symbolKey])) wellKnownSymbol(symbolKey);
|
|
10664
10495
|
} catch (error) {
|
|
10665
10496
|
}
|
|
10666
10497
|
}
|
|
@@ -10669,13 +10500,11 @@ var i;
|
|
|
10669
10500
|
var symbolKeys;
|
|
10670
10501
|
var symbolKeysLength;
|
|
10671
10502
|
var symbolIsWellKnown = function isWellKnownSymbol(value) {
|
|
10672
|
-
if ($isWellKnownSymbol && $isWellKnownSymbol(value))
|
|
10673
|
-
return true;
|
|
10503
|
+
if ($isWellKnownSymbol && $isWellKnownSymbol(value)) return true;
|
|
10674
10504
|
try {
|
|
10675
10505
|
var symbol2 = thisSymbolValue(value);
|
|
10676
10506
|
for (var j = 0, keys4 = getOwnPropertyNames$4(WellKnownSymbolsStore), keysLength = keys4.length; j < keysLength; j++) {
|
|
10677
|
-
if (WellKnownSymbolsStore[keys4[j]] == symbol2)
|
|
10678
|
-
return true;
|
|
10507
|
+
if (WellKnownSymbolsStore[keys4[j]] == symbol2) return true;
|
|
10679
10508
|
}
|
|
10680
10509
|
} catch (error) {
|
|
10681
10510
|
}
|
|
@@ -10739,13 +10568,11 @@ var toPrimitive$1 = parent$f;
|
|
|
10739
10568
|
var toPrimitive = toPrimitive$1;
|
|
10740
10569
|
var _Symbol$toPrimitive = /* @__PURE__ */ getDefaultExportFromCjs(toPrimitive);
|
|
10741
10570
|
function _toPrimitive(input, hint) {
|
|
10742
|
-
if (_typeof(input) !== "object" || input === null)
|
|
10743
|
-
return input;
|
|
10571
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
|
10744
10572
|
var prim = input[_Symbol$toPrimitive];
|
|
10745
10573
|
if (prim !== void 0) {
|
|
10746
10574
|
var res = prim.call(input, hint || "default");
|
|
10747
|
-
if (_typeof(res) !== "object")
|
|
10748
|
-
return res;
|
|
10575
|
+
if (_typeof(res) !== "object") return res;
|
|
10749
10576
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
10750
10577
|
}
|
|
10751
10578
|
return (hint === "string" ? String : Number)(input);
|
|
@@ -10781,22 +10608,20 @@ var createMethod = function(IS_RIGHT) {
|
|
|
10781
10608
|
var length2 = lengthOfArrayLike$3(O);
|
|
10782
10609
|
var index = IS_RIGHT ? length2 - 1 : 0;
|
|
10783
10610
|
var i = IS_RIGHT ? -1 : 1;
|
|
10784
|
-
if (argumentsLength < 2)
|
|
10785
|
-
|
|
10786
|
-
|
|
10787
|
-
memo = self2[index];
|
|
10788
|
-
index += i;
|
|
10789
|
-
break;
|
|
10790
|
-
}
|
|
10611
|
+
if (argumentsLength < 2) while (true) {
|
|
10612
|
+
if (index in self2) {
|
|
10613
|
+
memo = self2[index];
|
|
10791
10614
|
index += i;
|
|
10792
|
-
|
|
10793
|
-
throw new $TypeError("Reduce of empty array with no initial value");
|
|
10794
|
-
}
|
|
10615
|
+
break;
|
|
10795
10616
|
}
|
|
10796
|
-
|
|
10797
|
-
if (index
|
|
10798
|
-
|
|
10617
|
+
index += i;
|
|
10618
|
+
if (IS_RIGHT ? index < 0 : length2 <= index) {
|
|
10619
|
+
throw new $TypeError("Reduce of empty array with no initial value");
|
|
10799
10620
|
}
|
|
10621
|
+
}
|
|
10622
|
+
for (; IS_RIGHT ? index >= 0 : length2 > index; index += i) if (index in self2) {
|
|
10623
|
+
memo = callbackfn(memo, self2[index], index, O);
|
|
10624
|
+
}
|
|
10800
10625
|
return memo;
|
|
10801
10626
|
};
|
|
10802
10627
|
};
|
|
@@ -10931,8 +10756,7 @@ var insertionSort = function(array2, comparefn) {
|
|
|
10931
10756
|
while (j && comparefn(array2[j - 1], element) > 0) {
|
|
10932
10757
|
array2[j] = array2[--j];
|
|
10933
10758
|
}
|
|
10934
|
-
if (j !== i++)
|
|
10935
|
-
array2[j] = element;
|
|
10759
|
+
if (j !== i++) array2[j] = element;
|
|
10936
10760
|
}
|
|
10937
10761
|
return array2;
|
|
10938
10762
|
};
|
|
@@ -10980,14 +10804,10 @@ var FAILS_ON_NULL = fails$3(function() {
|
|
|
10980
10804
|
});
|
|
10981
10805
|
var STRICT_METHOD$1 = arrayMethodIsStrict$1("sort");
|
|
10982
10806
|
var STABLE_SORT = !fails$3(function() {
|
|
10983
|
-
if (V8)
|
|
10984
|
-
|
|
10985
|
-
if (
|
|
10986
|
-
|
|
10987
|
-
if (IE_OR_EDGE)
|
|
10988
|
-
return true;
|
|
10989
|
-
if (WEBKIT)
|
|
10990
|
-
return WEBKIT < 603;
|
|
10807
|
+
if (V8) return V8 < 70;
|
|
10808
|
+
if (FF && FF > 3) return;
|
|
10809
|
+
if (IE_OR_EDGE) return true;
|
|
10810
|
+
if (WEBKIT) return WEBKIT < 603;
|
|
10991
10811
|
var result = "";
|
|
10992
10812
|
var code, chr, value, index;
|
|
10993
10813
|
for (code = 65; code < 76; code++) {
|
|
@@ -11015,44 +10835,35 @@ var STABLE_SORT = !fails$3(function() {
|
|
|
11015
10835
|
});
|
|
11016
10836
|
for (index = 0; index < test.length; index++) {
|
|
11017
10837
|
chr = test[index].k.charAt(0);
|
|
11018
|
-
if (result.charAt(result.length - 1) !== chr)
|
|
11019
|
-
result += chr;
|
|
10838
|
+
if (result.charAt(result.length - 1) !== chr) result += chr;
|
|
11020
10839
|
}
|
|
11021
10840
|
return result !== "DGBEFHACIJK";
|
|
11022
10841
|
});
|
|
11023
10842
|
var FORCED$2 = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD$1 || !STABLE_SORT;
|
|
11024
10843
|
var getSortCompare = function(comparefn) {
|
|
11025
10844
|
return function(x, y) {
|
|
11026
|
-
if (y === void 0)
|
|
11027
|
-
|
|
11028
|
-
if (
|
|
11029
|
-
return 1;
|
|
11030
|
-
if (comparefn !== void 0)
|
|
11031
|
-
return +comparefn(x, y) || 0;
|
|
10845
|
+
if (y === void 0) return -1;
|
|
10846
|
+
if (x === void 0) return 1;
|
|
10847
|
+
if (comparefn !== void 0) return +comparefn(x, y) || 0;
|
|
11032
10848
|
return toString$1(x) > toString$1(y) ? 1 : -1;
|
|
11033
10849
|
};
|
|
11034
10850
|
};
|
|
11035
10851
|
$$4({ target: "Array", proto: true, forced: FORCED$2 }, {
|
|
11036
10852
|
sort: function sort(comparefn) {
|
|
11037
|
-
if (comparefn !== void 0)
|
|
11038
|
-
aCallable(comparefn);
|
|
10853
|
+
if (comparefn !== void 0) aCallable(comparefn);
|
|
11039
10854
|
var array2 = toObject(this);
|
|
11040
|
-
if (STABLE_SORT)
|
|
11041
|
-
return comparefn === void 0 ? nativeSort(array2) : nativeSort(array2, comparefn);
|
|
10855
|
+
if (STABLE_SORT) return comparefn === void 0 ? nativeSort(array2) : nativeSort(array2, comparefn);
|
|
11042
10856
|
var items = [];
|
|
11043
10857
|
var arrayLength = lengthOfArrayLike(array2);
|
|
11044
10858
|
var itemsLength, index;
|
|
11045
10859
|
for (index = 0; index < arrayLength; index++) {
|
|
11046
|
-
if (index in array2)
|
|
11047
|
-
push(items, array2[index]);
|
|
10860
|
+
if (index in array2) push(items, array2[index]);
|
|
11048
10861
|
}
|
|
11049
10862
|
internalSort(items, getSortCompare(comparefn));
|
|
11050
10863
|
itemsLength = lengthOfArrayLike(items);
|
|
11051
10864
|
index = 0;
|
|
11052
|
-
while (index < itemsLength)
|
|
11053
|
-
|
|
11054
|
-
while (index < arrayLength)
|
|
11055
|
-
deletePropertyOrThrow(array2, index++);
|
|
10865
|
+
while (index < itemsLength) array2[index] = items[index++];
|
|
10866
|
+
while (index < arrayLength) deletePropertyOrThrow(array2, index++);
|
|
11056
10867
|
return array2;
|
|
11057
10868
|
}
|
|
11058
10869
|
});
|
|
@@ -12525,8 +12336,7 @@ var LabelAccumulator = class {
|
|
|
12525
12336
|
};
|
|
12526
12337
|
}
|
|
12527
12338
|
let tmpText = text;
|
|
12528
|
-
if (text === void 0 || text === "")
|
|
12529
|
-
tmpText = " ";
|
|
12339
|
+
if (text === void 0 || text === "") tmpText = " ";
|
|
12530
12340
|
const result = this.measureText(tmpText, mod);
|
|
12531
12341
|
const block = _Object$assign({}, _valuesInstanceProperty(result));
|
|
12532
12342
|
block.text = text;
|
|
@@ -12544,8 +12354,7 @@ var LabelAccumulator = class {
|
|
|
12544
12354
|
*/
|
|
12545
12355
|
curWidth() {
|
|
12546
12356
|
const line = this.lines[this.current];
|
|
12547
|
-
if (line === void 0)
|
|
12548
|
-
return 0;
|
|
12357
|
+
if (line === void 0) return 0;
|
|
12549
12358
|
return line.width;
|
|
12550
12359
|
}
|
|
12551
12360
|
/**
|
|
@@ -12617,11 +12426,9 @@ var LabelAccumulator = class {
|
|
|
12617
12426
|
const tmpLines = [];
|
|
12618
12427
|
for (let k = 0; k < this.lines.length; k++) {
|
|
12619
12428
|
const line = this.lines[k];
|
|
12620
|
-
if (line.blocks.length === 0)
|
|
12621
|
-
continue;
|
|
12429
|
+
if (line.blocks.length === 0) continue;
|
|
12622
12430
|
if (k === this.lines.length - 1) {
|
|
12623
|
-
if (line.width === 0)
|
|
12624
|
-
continue;
|
|
12431
|
+
if (line.width === 0) continue;
|
|
12625
12432
|
}
|
|
12626
12433
|
const tmpLine = {};
|
|
12627
12434
|
_Object$assign(tmpLine, line);
|
|
@@ -12710,10 +12517,8 @@ var MarkupAccumulator = class {
|
|
|
12710
12517
|
* @private
|
|
12711
12518
|
*/
|
|
12712
12519
|
modName() {
|
|
12713
|
-
if (this.modStack.length === 0)
|
|
12714
|
-
|
|
12715
|
-
else if (this.modStack[0] === "mono")
|
|
12716
|
-
return "mono";
|
|
12520
|
+
if (this.modStack.length === 0) return "normal";
|
|
12521
|
+
else if (this.modStack[0] === "mono") return "mono";
|
|
12717
12522
|
else {
|
|
12718
12523
|
if (this.bold && this.ital) {
|
|
12719
12524
|
return "boldital";
|
|
@@ -12897,8 +12702,7 @@ var LabelSplitter = class {
|
|
|
12897
12702
|
this.selected = selected;
|
|
12898
12703
|
this.hover = hover;
|
|
12899
12704
|
const textWidth = (text, mod) => {
|
|
12900
|
-
if (text === void 0)
|
|
12901
|
-
return 0;
|
|
12705
|
+
if (text === void 0) return 0;
|
|
12902
12706
|
const values3 = this.parent.getFormattingValues(ctx, selected, hover, mod);
|
|
12903
12707
|
let width = 0;
|
|
12904
12708
|
if (text !== "") {
|
|
@@ -12940,8 +12744,7 @@ var LabelSplitter = class {
|
|
|
12940
12744
|
if (font.multi) {
|
|
12941
12745
|
for (let i = 0; i < lineCount; i++) {
|
|
12942
12746
|
const blocks = this.splitBlocks(nlLines[i], font.multi);
|
|
12943
|
-
if (blocks === void 0)
|
|
12944
|
-
continue;
|
|
12747
|
+
if (blocks === void 0) continue;
|
|
12945
12748
|
if (blocks.length === 0) {
|
|
12946
12749
|
this.lines.newLine("");
|
|
12947
12750
|
continue;
|
|
@@ -13094,8 +12897,7 @@ var LabelSplitter = class {
|
|
|
13094
12897
|
while (w < words.length) {
|
|
13095
12898
|
const pre = text === "" ? "" : " ";
|
|
13096
12899
|
const newText = text + pre + words[w];
|
|
13097
|
-
if (this.overMaxWidth(newText))
|
|
13098
|
-
break;
|
|
12900
|
+
if (this.overMaxWidth(newText)) break;
|
|
13099
12901
|
text = newText;
|
|
13100
12902
|
w++;
|
|
13101
12903
|
}
|
|
@@ -13110,8 +12912,7 @@ var LabelSplitter = class {
|
|
|
13110
12912
|
getLongestFitWord(words) {
|
|
13111
12913
|
let w = 0;
|
|
13112
12914
|
while (w < words.length) {
|
|
13113
|
-
if (this.overMaxWidth(_sliceInstanceProperty(words).call(words, 0, w)))
|
|
13114
|
-
break;
|
|
12915
|
+
if (this.overMaxWidth(_sliceInstanceProperty(words).call(words, 0, w))) break;
|
|
13115
12916
|
w++;
|
|
13116
12917
|
}
|
|
13117
12918
|
return w;
|
|
@@ -13239,8 +13040,7 @@ var Label = class _Label {
|
|
|
13239
13040
|
* @static
|
|
13240
13041
|
*/
|
|
13241
13042
|
static parseFontString(outOptions, inOptions) {
|
|
13242
|
-
if (!inOptions || typeof inOptions !== "string")
|
|
13243
|
-
return false;
|
|
13043
|
+
if (!inOptions || typeof inOptions !== "string") return false;
|
|
13244
13044
|
const newOptionsArray = inOptions.split(" ");
|
|
13245
13045
|
outOptions.size = +newOptionsArray[0].replace("px", "");
|
|
13246
13046
|
outOptions.face = newOptionsArray[1];
|
|
@@ -13343,10 +13143,8 @@ var Label = class _Label {
|
|
|
13343
13143
|
* @private
|
|
13344
13144
|
*/
|
|
13345
13145
|
addFontToPile(pile, options) {
|
|
13346
|
-
if (options === void 0)
|
|
13347
|
-
|
|
13348
|
-
if (options.font === void 0 || options.font === null)
|
|
13349
|
-
return;
|
|
13146
|
+
if (options === void 0) return;
|
|
13147
|
+
if (options.font === void 0 || options.font === null) return;
|
|
13350
13148
|
const item = options.font;
|
|
13351
13149
|
pile.push(item);
|
|
13352
13150
|
}
|
|
@@ -13365,10 +13163,8 @@ var Label = class _Label {
|
|
|
13365
13163
|
fontOptions = tmpShorthand;
|
|
13366
13164
|
}
|
|
13367
13165
|
forEach$1(fontOptions, (opt, name) => {
|
|
13368
|
-
if (opt === void 0)
|
|
13369
|
-
|
|
13370
|
-
if (Object.prototype.hasOwnProperty.call(ret, name))
|
|
13371
|
-
return;
|
|
13166
|
+
if (opt === void 0) return;
|
|
13167
|
+
if (Object.prototype.hasOwnProperty.call(ret, name)) return;
|
|
13372
13168
|
if (_indexOfInstanceProperty(multiFontStyle).call(multiFontStyle, name) !== -1) {
|
|
13373
13169
|
ret[name] = {};
|
|
13374
13170
|
} else {
|
|
@@ -13410,8 +13206,7 @@ var Label = class _Label {
|
|
|
13410
13206
|
const fontOptions = pile[n];
|
|
13411
13207
|
if (Object.prototype.hasOwnProperty.call(fontOptions, multiName)) {
|
|
13412
13208
|
multiFont = fontOptions[multiName];
|
|
13413
|
-
if (multiFont === void 0 || multiFont === null)
|
|
13414
|
-
continue;
|
|
13209
|
+
if (multiFont === void 0 || multiFont === null) continue;
|
|
13415
13210
|
const tmpShorthand = {};
|
|
13416
13211
|
if (_Label.parseFontString(tmpShorthand, multiFont)) {
|
|
13417
13212
|
multiFont = tmpShorthand;
|
|
@@ -13479,11 +13274,9 @@ var Label = class _Label {
|
|
|
13479
13274
|
*/
|
|
13480
13275
|
draw(ctx, x, y, selected, hover) {
|
|
13481
13276
|
let baseline = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : "middle";
|
|
13482
|
-
if (this.elementOptions.label === void 0)
|
|
13483
|
-
return;
|
|
13277
|
+
if (this.elementOptions.label === void 0) return;
|
|
13484
13278
|
let viewFontSize = this.fontOptions.size * this.body.view.scale;
|
|
13485
|
-
if (this.elementOptions.label && viewFontSize < this.elementOptions.scaling.label.drawThreshold - 1)
|
|
13486
|
-
return;
|
|
13279
|
+
if (this.elementOptions.label && viewFontSize < this.elementOptions.scaling.label.drawThreshold - 1) return;
|
|
13487
13280
|
if (viewFontSize >= this.elementOptions.scaling.label.maxVisible) {
|
|
13488
13281
|
viewFontSize = Number(this.elementOptions.scaling.label.maxVisible) / this.body.view.scale;
|
|
13489
13282
|
}
|
|
@@ -13686,8 +13479,7 @@ var Label = class _Label {
|
|
|
13686
13479
|
getFormattingValues(ctx, selected, hover, mod) {
|
|
13687
13480
|
const getValue = function(fontOptions, mod2, option) {
|
|
13688
13481
|
if (mod2 === "normal") {
|
|
13689
|
-
if (option === "mod")
|
|
13690
|
-
return "";
|
|
13482
|
+
if (option === "mod") return "";
|
|
13691
13483
|
return fontOptions[option];
|
|
13692
13484
|
}
|
|
13693
13485
|
if (fontOptions[mod2][option] !== void 0) {
|
|
@@ -13754,8 +13546,7 @@ var Label = class _Label {
|
|
|
13754
13546
|
* @private
|
|
13755
13547
|
*/
|
|
13756
13548
|
_processLabel(ctx, selected, hover) {
|
|
13757
|
-
if (this.labelDirty === false && !this.differentState(selected, hover))
|
|
13758
|
-
return;
|
|
13549
|
+
if (this.labelDirty === false && !this.differentState(selected, hover)) return;
|
|
13759
13550
|
const state = this._processLabelText(ctx, selected, hover, this.elementOptions.label);
|
|
13760
13551
|
if (this.fontOptions.minWdt > 0 && state.width < this.fontOptions.minWdt) {
|
|
13761
13552
|
state.width = this.fontOptions.minWdt;
|
|
@@ -15451,15 +15242,13 @@ var Node = class _Node {
|
|
|
15451
15242
|
*/
|
|
15452
15243
|
static updateGroupOptions(parentOptions, newOptions, groupList) {
|
|
15453
15244
|
var _context4;
|
|
15454
|
-
if (groupList === void 0)
|
|
15455
|
-
return;
|
|
15245
|
+
if (groupList === void 0) return;
|
|
15456
15246
|
const group = parentOptions.group;
|
|
15457
15247
|
if (newOptions !== void 0 && newOptions.group !== void 0 && group !== newOptions.group) {
|
|
15458
15248
|
throw new Error("updateGroupOptions: group values in options don't match.");
|
|
15459
15249
|
}
|
|
15460
15250
|
const hasGroup = typeof group === "number" || typeof group === "string" && group != "";
|
|
15461
|
-
if (!hasGroup)
|
|
15462
|
-
return;
|
|
15251
|
+
if (!hasGroup) return;
|
|
15463
15252
|
const groupObj = groupList.get(group);
|
|
15464
15253
|
if (groupObj.opacity !== void 0 && newOptions.opacity === void 0) {
|
|
15465
15254
|
if (!_Node.checkOpacity(groupObj.opacity)) {
|
|
@@ -16020,8 +15809,7 @@ var NodesHandler = class {
|
|
|
16020
15809
|
this.body.emitter.on("refresh", _bindInstanceProperty(_context3 = this.refresh).call(_context3, this));
|
|
16021
15810
|
this.body.emitter.on("destroy", () => {
|
|
16022
15811
|
forEach$1(this.nodesListeners, (callback, event) => {
|
|
16023
|
-
if (this.body.data.nodes)
|
|
16024
|
-
this.body.data.nodes.off(event, callback);
|
|
15812
|
+
if (this.body.data.nodes) this.body.data.nodes.off(event, callback);
|
|
16025
15813
|
});
|
|
16026
15814
|
delete this.body.functions.createNode;
|
|
16027
15815
|
delete this.nodesListeners.add;
|
|
@@ -16383,8 +16171,7 @@ $$1({ target: "Math", stat: true, arity: 2, forced: FORCED }, {
|
|
|
16383
16171
|
} else if (arg > 0) {
|
|
16384
16172
|
div = arg / larg;
|
|
16385
16173
|
sum += div * div;
|
|
16386
|
-
} else
|
|
16387
|
-
sum += arg;
|
|
16174
|
+
} else sum += arg;
|
|
16388
16175
|
}
|
|
16389
16176
|
return larg === Infinity ? Infinity : larg * sqrt(sum);
|
|
16390
16177
|
}
|
|
@@ -16769,6 +16556,7 @@ var EndPoints = class {
|
|
|
16769
16556
|
case "vee":
|
|
16770
16557
|
return Vee.draw(ctx, arrowData);
|
|
16771
16558
|
case "arrow":
|
|
16559
|
+
// fall-through
|
|
16772
16560
|
default:
|
|
16773
16561
|
return Arrow.draw(ctx, arrowData);
|
|
16774
16562
|
}
|
|
@@ -18443,8 +18231,7 @@ var Edge = class _Edge {
|
|
|
18443
18231
|
this.edgeType.toPoint = this.edgeType.to;
|
|
18444
18232
|
if (values3.fromArrow) {
|
|
18445
18233
|
arrowData.from = this.edgeType.getArrowData(ctx, "from", viaNode, this.selected, this.hover, values3);
|
|
18446
|
-
if (values3.arrowStrikethrough === false)
|
|
18447
|
-
this.edgeType.fromPoint = arrowData.from.core;
|
|
18234
|
+
if (values3.arrowStrikethrough === false) this.edgeType.fromPoint = arrowData.from.core;
|
|
18448
18235
|
if (values3.fromArrowSrc) {
|
|
18449
18236
|
arrowData.from.image = this.imagelist.load(values3.fromArrowSrc);
|
|
18450
18237
|
}
|
|
@@ -18457,8 +18244,7 @@ var Edge = class _Edge {
|
|
|
18457
18244
|
}
|
|
18458
18245
|
if (values3.toArrow) {
|
|
18459
18246
|
arrowData.to = this.edgeType.getArrowData(ctx, "to", viaNode, this.selected, this.hover, values3);
|
|
18460
|
-
if (values3.arrowStrikethrough === false)
|
|
18461
|
-
this.edgeType.toPoint = arrowData.to.core;
|
|
18247
|
+
if (values3.arrowStrikethrough === false) this.edgeType.toPoint = arrowData.to.core;
|
|
18462
18248
|
if (values3.toArrowSrc) {
|
|
18463
18249
|
arrowData.to.image = this.imagelist.load(values3.toArrowSrc);
|
|
18464
18250
|
}
|
|
@@ -18842,8 +18628,7 @@ var EdgesHandler = class {
|
|
|
18842
18628
|
this.body.emitter.on("refresh", _bindInstanceProperty(_context3 = this.refresh).call(_context3, this));
|
|
18843
18629
|
this.body.emitter.on("destroy", () => {
|
|
18844
18630
|
forEach$1(this.edgesListeners, (callback, event) => {
|
|
18845
|
-
if (this.body.data.edges)
|
|
18846
|
-
this.body.data.edges.off(event, callback);
|
|
18631
|
+
if (this.body.data.edges) this.body.data.edges.off(event, callback);
|
|
18847
18632
|
});
|
|
18848
18633
|
delete this.body.functions.createEdge;
|
|
18849
18634
|
delete this.edgesListeners.add;
|
|
@@ -18979,8 +18764,7 @@ var EdgesHandler = class {
|
|
|
18979
18764
|
*/
|
|
18980
18765
|
remove(ids) {
|
|
18981
18766
|
let emit = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true;
|
|
18982
|
-
if (ids.length === 0)
|
|
18983
|
-
return;
|
|
18767
|
+
if (ids.length === 0) return;
|
|
18984
18768
|
const edges = this.body.edges;
|
|
18985
18769
|
forEach$1(ids, (id2) => {
|
|
18986
18770
|
const edge = edges[id2];
|
|
@@ -20193,8 +19977,7 @@ var PhysicsEngine = class {
|
|
|
20193
19977
|
*/
|
|
20194
19978
|
physicsTick() {
|
|
20195
19979
|
this._startStabilizing();
|
|
20196
|
-
if (this.stabilized === true)
|
|
20197
|
-
return;
|
|
19980
|
+
if (this.stabilized === true) return;
|
|
20198
19981
|
if (this.adaptiveTimestep === true && this.adaptiveTimestepEnabled === true) {
|
|
20199
19982
|
const doAdaptive = this.adaptiveCounter % this.adaptiveInterval === 0;
|
|
20200
19983
|
if (doAdaptive) {
|
|
@@ -20213,8 +19996,7 @@ var PhysicsEngine = class {
|
|
|
20213
19996
|
this.timestep = this.options.timestep;
|
|
20214
19997
|
this.physicsStep();
|
|
20215
19998
|
}
|
|
20216
|
-
if (this.stabilized === true)
|
|
20217
|
-
this.revert();
|
|
19999
|
+
if (this.stabilized === true) this.revert();
|
|
20218
20000
|
this.stabilizationIterations++;
|
|
20219
20001
|
}
|
|
20220
20002
|
/**
|
|
@@ -20451,8 +20233,7 @@ var PhysicsEngine = class {
|
|
|
20451
20233
|
* @private
|
|
20452
20234
|
*/
|
|
20453
20235
|
_startStabilizing() {
|
|
20454
|
-
if (this.startedStabilization === true)
|
|
20455
|
-
return false;
|
|
20236
|
+
if (this.startedStabilization === true) return false;
|
|
20456
20237
|
this.body.emitter.emit("startStabilizing");
|
|
20457
20238
|
this.startedStabilization = true;
|
|
20458
20239
|
return true;
|
|
@@ -20703,8 +20484,7 @@ var Cluster = class extends Node {
|
|
|
20703
20484
|
forEach$1(this.edges, (parentClusterEdge) => {
|
|
20704
20485
|
var _context, _context2;
|
|
20705
20486
|
const index = _indexOfInstanceProperty(_context = parentClusterEdge.clusteringEdgeReplacingIds).call(_context, clusterEdge.id);
|
|
20706
|
-
if (index === -1)
|
|
20707
|
-
return;
|
|
20487
|
+
if (index === -1) return;
|
|
20708
20488
|
forEach$1(clusterEdge.clusteringEdgeReplacingIds, (srcId) => {
|
|
20709
20489
|
parentClusterEdge.clusteringEdgeReplacingIds.push(srcId);
|
|
20710
20490
|
this.body.edges[srcId].edgeReplacedById = parentClusterEdge.id;
|
|
@@ -20949,8 +20729,7 @@ var ClusterEngine = class {
|
|
|
20949
20729
|
return childNodesObj[childNode].id;
|
|
20950
20730
|
});
|
|
20951
20731
|
for (const childNodeKey in childNodesObj) {
|
|
20952
|
-
if (!Object.prototype.hasOwnProperty.call(childNodesObj, childNodeKey))
|
|
20953
|
-
continue;
|
|
20732
|
+
if (!Object.prototype.hasOwnProperty.call(childNodesObj, childNodeKey)) continue;
|
|
20954
20733
|
const childNode = childNodesObj[childNodeKey];
|
|
20955
20734
|
for (let y = 0; y < childNode.edges.length; y++) {
|
|
20956
20735
|
const childEdge = childNode.edges[y];
|
|
@@ -21282,8 +21061,7 @@ var ClusterEngine = class {
|
|
|
21282
21061
|
for (let j = 0; j < edge.clusteringEdgeReplacingIds.length; j++) {
|
|
21283
21062
|
const transferId = edge.clusteringEdgeReplacingIds[j];
|
|
21284
21063
|
const transferEdge = this.body.edges[transferId];
|
|
21285
|
-
if (transferEdge === void 0)
|
|
21286
|
-
continue;
|
|
21064
|
+
if (transferEdge === void 0) continue;
|
|
21287
21065
|
if (otherNode !== void 0) {
|
|
21288
21066
|
const otherCluster = this.body.nodes[otherNode.clusterId];
|
|
21289
21067
|
otherCluster.containedEdges[transferEdge.id] = transferEdge;
|
|
@@ -21346,15 +21124,13 @@ var ClusterEngine = class {
|
|
|
21346
21124
|
let node;
|
|
21347
21125
|
while (this.clusteredNodes[nodeId] !== void 0 && counter < max2) {
|
|
21348
21126
|
node = this.body.nodes[nodeId];
|
|
21349
|
-
if (node === void 0)
|
|
21350
|
-
return [];
|
|
21127
|
+
if (node === void 0) return [];
|
|
21351
21128
|
stack.push(node.id);
|
|
21352
21129
|
nodeId = this.clusteredNodes[nodeId].clusterId;
|
|
21353
21130
|
counter++;
|
|
21354
21131
|
}
|
|
21355
21132
|
node = this.body.nodes[nodeId];
|
|
21356
|
-
if (node === void 0)
|
|
21357
|
-
return [];
|
|
21133
|
+
if (node === void 0) return [];
|
|
21358
21134
|
stack.push(node.id);
|
|
21359
21135
|
_reverseInstanceProperty(stack).call(stack);
|
|
21360
21136
|
return stack;
|
|
@@ -21439,11 +21215,9 @@ var ClusterEngine = class {
|
|
|
21439
21215
|
let counter = 0;
|
|
21440
21216
|
while (IdsToHandle.length > 0 && counter < max2) {
|
|
21441
21217
|
const nextId = IdsToHandle.pop();
|
|
21442
|
-
if (nextId === void 0)
|
|
21443
|
-
continue;
|
|
21218
|
+
if (nextId === void 0) continue;
|
|
21444
21219
|
const nextEdge = this.body.edges[nextId];
|
|
21445
|
-
if (nextEdge === void 0)
|
|
21446
|
-
continue;
|
|
21220
|
+
if (nextEdge === void 0) continue;
|
|
21447
21221
|
counter++;
|
|
21448
21222
|
const replacingIds = nextEdge.clusteringEdgeReplacingIds;
|
|
21449
21223
|
if (replacingIds === void 0) {
|
|
@@ -21594,14 +21368,11 @@ var ClusterEngine = class {
|
|
|
21594
21368
|
* @private
|
|
21595
21369
|
*/
|
|
21596
21370
|
_getClusterNodeForNode(nodeId) {
|
|
21597
|
-
if (nodeId === void 0)
|
|
21598
|
-
return void 0;
|
|
21371
|
+
if (nodeId === void 0) return void 0;
|
|
21599
21372
|
const clusteredNode = this.clusteredNodes[nodeId];
|
|
21600
|
-
if (clusteredNode === void 0)
|
|
21601
|
-
return void 0;
|
|
21373
|
+
if (clusteredNode === void 0) return void 0;
|
|
21602
21374
|
const clusterId = clusteredNode.clusterId;
|
|
21603
|
-
if (clusterId === void 0)
|
|
21604
|
-
return void 0;
|
|
21375
|
+
if (clusterId === void 0) return void 0;
|
|
21605
21376
|
return this.body.nodes[clusterId];
|
|
21606
21377
|
}
|
|
21607
21378
|
/**
|
|
@@ -21643,8 +21414,7 @@ var ClusterEngine = class {
|
|
|
21643
21414
|
});
|
|
21644
21415
|
};
|
|
21645
21416
|
for (nodeId in this.clusteredNodes) {
|
|
21646
|
-
if (!Object.prototype.hasOwnProperty.call(this.clusteredNodes, nodeId))
|
|
21647
|
-
continue;
|
|
21417
|
+
if (!Object.prototype.hasOwnProperty.call(this.clusteredNodes, nodeId)) continue;
|
|
21648
21418
|
const node = this.body.nodes[nodeId];
|
|
21649
21419
|
if (node === void 0) {
|
|
21650
21420
|
deletedNodeIds.push(nodeId);
|
|
@@ -23987,25 +23757,21 @@ var findUncaughtFrozen = function(store, key) {
|
|
|
23987
23757
|
UncaughtFrozenStore.prototype = {
|
|
23988
23758
|
get: function(key) {
|
|
23989
23759
|
var entry = findUncaughtFrozen(this, key);
|
|
23990
|
-
if (entry)
|
|
23991
|
-
return entry[1];
|
|
23760
|
+
if (entry) return entry[1];
|
|
23992
23761
|
},
|
|
23993
23762
|
has: function(key) {
|
|
23994
23763
|
return !!findUncaughtFrozen(this, key);
|
|
23995
23764
|
},
|
|
23996
23765
|
set: function(key, value) {
|
|
23997
23766
|
var entry = findUncaughtFrozen(this, key);
|
|
23998
|
-
if (entry)
|
|
23999
|
-
|
|
24000
|
-
else
|
|
24001
|
-
this.entries.push([key, value]);
|
|
23767
|
+
if (entry) entry[1] = value;
|
|
23768
|
+
else this.entries.push([key, value]);
|
|
24002
23769
|
},
|
|
24003
23770
|
"delete": function(key) {
|
|
24004
23771
|
var index = findIndex(this.entries, function(it2) {
|
|
24005
23772
|
return it2[0] === key;
|
|
24006
23773
|
});
|
|
24007
|
-
if (~index)
|
|
24008
|
-
splice2(this.entries, index, 1);
|
|
23774
|
+
if (~index) splice2(this.entries, index, 1);
|
|
24009
23775
|
return !!~index;
|
|
24010
23776
|
}
|
|
24011
23777
|
};
|
|
@@ -24018,18 +23784,15 @@ var collectionWeak$1 = {
|
|
|
24018
23784
|
id: id++,
|
|
24019
23785
|
frozen: void 0
|
|
24020
23786
|
});
|
|
24021
|
-
if (!isNullOrUndefined(iterable))
|
|
24022
|
-
iterate(iterable, that[ADDER], { that, AS_ENTRIES: IS_MAP });
|
|
23787
|
+
if (!isNullOrUndefined(iterable)) iterate(iterable, that[ADDER], { that, AS_ENTRIES: IS_MAP });
|
|
24023
23788
|
});
|
|
24024
23789
|
var Prototype = Constructor.prototype;
|
|
24025
23790
|
var getInternalState2 = internalStateGetterFor(CONSTRUCTOR_NAME);
|
|
24026
23791
|
var define = function(that, key, value) {
|
|
24027
23792
|
var state = getInternalState2(that);
|
|
24028
23793
|
var data2 = getWeakData(anObject(key), true);
|
|
24029
|
-
if (data2 === true)
|
|
24030
|
-
|
|
24031
|
-
else
|
|
24032
|
-
data2[state.id] = value;
|
|
23794
|
+
if (data2 === true) uncaughtFrozenStore(state).set(key, value);
|
|
23795
|
+
else data2[state.id] = value;
|
|
24033
23796
|
return that;
|
|
24034
23797
|
};
|
|
24035
23798
|
defineBuiltIns$1(Prototype, {
|
|
@@ -24038,11 +23801,9 @@ var collectionWeak$1 = {
|
|
|
24038
23801
|
// https://tc39.es/ecma262/#sec-weakset.prototype.delete
|
|
24039
23802
|
"delete": function(key) {
|
|
24040
23803
|
var state = getInternalState2(this);
|
|
24041
|
-
if (!isObject$1(key))
|
|
24042
|
-
return false;
|
|
23804
|
+
if (!isObject$1(key)) return false;
|
|
24043
23805
|
var data2 = getWeakData(key);
|
|
24044
|
-
if (data2 === true)
|
|
24045
|
-
return uncaughtFrozenStore(state)["delete"](key);
|
|
23806
|
+
if (data2 === true) return uncaughtFrozenStore(state)["delete"](key);
|
|
24046
23807
|
return data2 && hasOwn2(data2, state.id) && delete data2[state.id];
|
|
24047
23808
|
},
|
|
24048
23809
|
// `{ WeakMap, WeakSet }.prototype.has(key)` methods
|
|
@@ -24050,11 +23811,9 @@ var collectionWeak$1 = {
|
|
|
24050
23811
|
// https://tc39.es/ecma262/#sec-weakset.prototype.has
|
|
24051
23812
|
has: function has2(key) {
|
|
24052
23813
|
var state = getInternalState2(this);
|
|
24053
|
-
if (!isObject$1(key))
|
|
24054
|
-
return false;
|
|
23814
|
+
if (!isObject$1(key)) return false;
|
|
24055
23815
|
var data2 = getWeakData(key);
|
|
24056
|
-
if (data2 === true)
|
|
24057
|
-
return uncaughtFrozenStore(state).has(key);
|
|
23816
|
+
if (data2 === true) return uncaughtFrozenStore(state).has(key);
|
|
24058
23817
|
return data2 && hasOwn2(data2, state.id);
|
|
24059
23818
|
}
|
|
24060
23819
|
});
|
|
@@ -24065,8 +23824,7 @@ var collectionWeak$1 = {
|
|
|
24065
23824
|
var state = getInternalState2(this);
|
|
24066
23825
|
if (isObject$1(key)) {
|
|
24067
23826
|
var data2 = getWeakData(key);
|
|
24068
|
-
if (data2 === true)
|
|
24069
|
-
return uncaughtFrozenStore(state).get(key);
|
|
23827
|
+
if (data2 === true) return uncaughtFrozenStore(state).get(key);
|
|
24070
23828
|
return data2 ? data2[state.id] : void 0;
|
|
24071
23829
|
}
|
|
24072
23830
|
},
|
|
@@ -24133,8 +23891,7 @@ if (NATIVE_WEAK_MAP) {
|
|
|
24133
23891
|
"delete": function(key) {
|
|
24134
23892
|
if (isObject(key) && !isExtensible2(key)) {
|
|
24135
23893
|
var state = enforceInternalState(this);
|
|
24136
|
-
if (!state.frozen)
|
|
24137
|
-
state.frozen = new InternalWeakMap();
|
|
23894
|
+
if (!state.frozen) state.frozen = new InternalWeakMap();
|
|
24138
23895
|
return nativeDelete(this, key) || state.frozen["delete"](key);
|
|
24139
23896
|
}
|
|
24140
23897
|
return nativeDelete(this, key);
|
|
@@ -24142,8 +23899,7 @@ if (NATIVE_WEAK_MAP) {
|
|
|
24142
23899
|
has: function has2(key) {
|
|
24143
23900
|
if (isObject(key) && !isExtensible2(key)) {
|
|
24144
23901
|
var state = enforceInternalState(this);
|
|
24145
|
-
if (!state.frozen)
|
|
24146
|
-
state.frozen = new InternalWeakMap();
|
|
23902
|
+
if (!state.frozen) state.frozen = new InternalWeakMap();
|
|
24147
23903
|
return nativeHas(this, key) || state.frozen.has(key);
|
|
24148
23904
|
}
|
|
24149
23905
|
return nativeHas(this, key);
|
|
@@ -24151,8 +23907,7 @@ if (NATIVE_WEAK_MAP) {
|
|
|
24151
23907
|
get: function get2(key) {
|
|
24152
23908
|
if (isObject(key) && !isExtensible2(key)) {
|
|
24153
23909
|
var state = enforceInternalState(this);
|
|
24154
|
-
if (!state.frozen)
|
|
24155
|
-
state.frozen = new InternalWeakMap();
|
|
23910
|
+
if (!state.frozen) state.frozen = new InternalWeakMap();
|
|
24156
23911
|
return nativeHas(this, key) ? nativeGet(this, key) : state.frozen.get(key);
|
|
24157
23912
|
}
|
|
24158
23913
|
return nativeGet(this, key);
|
|
@@ -24160,11 +23915,9 @@ if (NATIVE_WEAK_MAP) {
|
|
|
24160
23915
|
set: function set2(key, value) {
|
|
24161
23916
|
if (isObject(key) && !isExtensible2(key)) {
|
|
24162
23917
|
var state = enforceInternalState(this);
|
|
24163
|
-
if (!state.frozen)
|
|
24164
|
-
state.frozen = new InternalWeakMap();
|
|
23918
|
+
if (!state.frozen) state.frozen = new InternalWeakMap();
|
|
24165
23919
|
nativeHas(this, key) ? nativeSet(this, key, value) : state.frozen.set(key, value);
|
|
24166
|
-
} else
|
|
24167
|
-
nativeSet(this, key, value);
|
|
23920
|
+
} else nativeSet(this, key, value);
|
|
24168
23921
|
return this;
|
|
24169
23922
|
}
|
|
24170
23923
|
});
|
|
@@ -24173,16 +23926,12 @@ if (NATIVE_WEAK_MAP) {
|
|
|
24173
23926
|
set: function set2(key, value) {
|
|
24174
23927
|
var arrayIntegrityLevel;
|
|
24175
23928
|
if (isArray2(key)) {
|
|
24176
|
-
if (isFrozen(key))
|
|
24177
|
-
|
|
24178
|
-
else if (isSealed(key))
|
|
24179
|
-
arrayIntegrityLevel = SEALED;
|
|
23929
|
+
if (isFrozen(key)) arrayIntegrityLevel = FROZEN;
|
|
23930
|
+
else if (isSealed(key)) arrayIntegrityLevel = SEALED;
|
|
24180
23931
|
}
|
|
24181
23932
|
nativeSet(this, key, value);
|
|
24182
|
-
if (arrayIntegrityLevel === FROZEN)
|
|
24183
|
-
|
|
24184
|
-
if (arrayIntegrityLevel === SEALED)
|
|
24185
|
-
seal(key);
|
|
23933
|
+
if (arrayIntegrityLevel === FROZEN) freeze(key);
|
|
23934
|
+
if (arrayIntegrityLevel === SEALED) seal(key);
|
|
24186
23935
|
return this;
|
|
24187
23936
|
}
|
|
24188
23937
|
});
|
|
@@ -24198,19 +23947,14 @@ var weakMap$1 = parent$1;
|
|
|
24198
23947
|
var weakMap = weakMap$1;
|
|
24199
23948
|
var _WeakMap = /* @__PURE__ */ getDefaultExportFromCjs(weakMap);
|
|
24200
23949
|
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
24201
|
-
if (kind === "a" && !f)
|
|
24202
|
-
|
|
24203
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
24204
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
23950
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
23951
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
24205
23952
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
24206
23953
|
}
|
|
24207
23954
|
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
24208
|
-
if (kind === "m")
|
|
24209
|
-
|
|
24210
|
-
if (
|
|
24211
|
-
throw new TypeError("Private accessor was defined without a setter");
|
|
24212
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
24213
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
23955
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
23956
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
23957
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
24214
23958
|
return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
|
|
24215
23959
|
}
|
|
24216
23960
|
var _SingleTypeSelectionAccumulator_previousSelection;
|
|
@@ -24878,8 +24622,7 @@ var SelectionHandler = class {
|
|
|
24878
24622
|
*/
|
|
24879
24623
|
selectNodes(selection) {
|
|
24880
24624
|
let highlightEdges = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true;
|
|
24881
|
-
if (!selection || selection.length === void 0)
|
|
24882
|
-
throw "Selection must be an array with ids";
|
|
24625
|
+
if (!selection || selection.length === void 0) throw "Selection must be an array with ids";
|
|
24883
24626
|
this.setSelection({
|
|
24884
24627
|
nodes: selection
|
|
24885
24628
|
}, {
|
|
@@ -24892,8 +24635,7 @@ var SelectionHandler = class {
|
|
|
24892
24635
|
* selected nodes.
|
|
24893
24636
|
*/
|
|
24894
24637
|
selectEdges(selection) {
|
|
24895
|
-
if (!selection || selection.length === void 0)
|
|
24896
|
-
throw "Selection must be an array with ids";
|
|
24638
|
+
if (!selection || selection.length === void 0) throw "Selection must be an array with ids";
|
|
24897
24639
|
this.setSelection({
|
|
24898
24640
|
edges: selection
|
|
24899
24641
|
});
|
|
@@ -25339,8 +25081,7 @@ var HierarchicalStatus = class {
|
|
|
25339
25081
|
* @param {string|number} treeId
|
|
25340
25082
|
*/
|
|
25341
25083
|
setTreeIndex(node, treeId) {
|
|
25342
|
-
if (treeId === void 0)
|
|
25343
|
-
return;
|
|
25084
|
+
if (treeId === void 0) return;
|
|
25344
25085
|
if (this.trees[node.id] === void 0) {
|
|
25345
25086
|
this.trees[node.id] = treeId;
|
|
25346
25087
|
this.treeIndex = Math.max(treeId, this.treeIndex);
|
|
@@ -25992,8 +25733,7 @@ var LayoutEngine = class {
|
|
|
25992
25733
|
if (offset < 0) {
|
|
25993
25734
|
_this._shiftBlock(node2.id, offset);
|
|
25994
25735
|
stillShifting = true;
|
|
25995
|
-
if (centerParent === true)
|
|
25996
|
-
_this._centerParent(node2);
|
|
25736
|
+
if (centerParent === true) _this._centerParent(node2);
|
|
25997
25737
|
}
|
|
25998
25738
|
}
|
|
25999
25739
|
}
|
|
@@ -26123,8 +25863,7 @@ var LayoutEngine = class {
|
|
|
26123
25863
|
};
|
|
26124
25864
|
const centerAllParents = () => {
|
|
26125
25865
|
for (const nodeId in this.body.nodes) {
|
|
26126
|
-
if (Object.prototype.hasOwnProperty.call(this.body.nodes, nodeId))
|
|
26127
|
-
this._centerParent(this.body.nodes[nodeId]);
|
|
25866
|
+
if (Object.prototype.hasOwnProperty.call(this.body.nodes, nodeId)) this._centerParent(this.body.nodes[nodeId]);
|
|
26128
25867
|
}
|
|
26129
25868
|
};
|
|
26130
25869
|
const centerAllParentsBottomUp = () => {
|
|
@@ -26290,8 +26029,7 @@ var LayoutEngine = class {
|
|
|
26290
26029
|
* @private
|
|
26291
26030
|
*/
|
|
26292
26031
|
_validatePositionAndContinue(node, level, pos) {
|
|
26293
|
-
if (!this.hierarchical.isTree)
|
|
26294
|
-
return;
|
|
26032
|
+
if (!this.hierarchical.isTree) return;
|
|
26295
26033
|
if (this.lastNodeOnLevel[level] !== void 0) {
|
|
26296
26034
|
const previousPos = this.direction.getPosition(this.body.nodes[this.lastNodeOnLevel[level]]);
|
|
26297
26035
|
if (pos - previousPos < this.options.hierarchical.nodeSpacing) {
|
|
@@ -26387,8 +26125,7 @@ var LayoutEngine = class {
|
|
|
26387
26125
|
const hubSizes = this._getHubSizes();
|
|
26388
26126
|
for (let i = 0; i < hubSizes.length; ++i) {
|
|
26389
26127
|
const hubSize = hubSizes[i];
|
|
26390
|
-
if (hubSize === 0)
|
|
26391
|
-
break;
|
|
26128
|
+
if (hubSize === 0) break;
|
|
26392
26129
|
forEach$1(this.body.nodeIndices, (nodeId) => {
|
|
26393
26130
|
const node = this.body.nodes[nodeId];
|
|
26394
26131
|
if (hubSize === this._getActiveEdges(node).length) {
|
|
@@ -29725,13 +29462,11 @@ Network.prototype.destroy = function() {
|
|
|
29725
29462
|
delete this.configurator;
|
|
29726
29463
|
delete this.images;
|
|
29727
29464
|
for (const nodeId in this.body.nodes) {
|
|
29728
|
-
if (!Object.prototype.hasOwnProperty.call(this.body.nodes, nodeId))
|
|
29729
|
-
continue;
|
|
29465
|
+
if (!Object.prototype.hasOwnProperty.call(this.body.nodes, nodeId)) continue;
|
|
29730
29466
|
delete this.body.nodes[nodeId];
|
|
29731
29467
|
}
|
|
29732
29468
|
for (const edgeId in this.body.edges) {
|
|
29733
|
-
if (!Object.prototype.hasOwnProperty.call(this.body.edges, edgeId))
|
|
29734
|
-
continue;
|
|
29469
|
+
if (!Object.prototype.hasOwnProperty.call(this.body.edges, edgeId)) continue;
|
|
29735
29470
|
delete this.body.edges[edgeId];
|
|
29736
29471
|
}
|
|
29737
29472
|
recursiveDOMDelete(this.body.container);
|
|
@@ -29938,48 +29673,22 @@ Network.prototype.getOptionsFromConfigurator = function() {
|
|
|
29938
29673
|
return options;
|
|
29939
29674
|
};
|
|
29940
29675
|
|
|
29941
|
-
// src/themeUtils.
|
|
29676
|
+
// src/themeUtils.ts
|
|
29942
29677
|
function getCurrentTheme() {
|
|
29943
29678
|
return document.documentElement.getAttribute("data-theme") || "light";
|
|
29944
29679
|
}
|
|
29945
29680
|
function getThemeNodeColors(theme) {
|
|
29946
|
-
|
|
29947
|
-
return {
|
|
29948
|
-
uri: "#97C2FC",
|
|
29949
|
-
// Light blue for URIs
|
|
29950
|
-
literal: "#a6c8a6ff",
|
|
29951
|
-
// Light green for literals
|
|
29952
|
-
blankNode: "#888888",
|
|
29953
|
-
// Medium grey for blank nodes (darker than light mode)
|
|
29954
|
-
typeObject: "#e15b13ff",
|
|
29955
|
-
// Orange for rdf:type objects
|
|
29956
|
-
text: "#e0e0e0",
|
|
29957
|
-
// Light text for dark backgrounds
|
|
29958
|
-
edge: "#666666",
|
|
29959
|
-
// Darker edges
|
|
29960
|
-
edgeLabel: "#cccccc",
|
|
29961
|
-
// Lighter edge labels
|
|
29962
|
-
edgeLabelBackground: "rgba(30, 30, 30, 0.8)"
|
|
29963
|
-
// Dark semi-transparent background
|
|
29964
|
-
};
|
|
29965
|
-
}
|
|
29681
|
+
const styles = getComputedStyle(document.documentElement);
|
|
29966
29682
|
return {
|
|
29967
|
-
uri: "#97C2FC",
|
|
29968
|
-
|
|
29969
|
-
|
|
29970
|
-
|
|
29971
|
-
|
|
29972
|
-
|
|
29973
|
-
|
|
29974
|
-
|
|
29975
|
-
|
|
29976
|
-
// Black text
|
|
29977
|
-
edge: "#cccccc",
|
|
29978
|
-
// Light grey edges
|
|
29979
|
-
edgeLabel: "#666666",
|
|
29980
|
-
// Dark grey edge labels
|
|
29981
|
-
edgeLabelBackground: "rgba(255, 255, 255, 0.8)"
|
|
29982
|
-
// Light semi-transparent background
|
|
29683
|
+
uri: styles.getPropertyValue("--yasgui-graph-uri").trim() || "#97C2FC",
|
|
29684
|
+
literal: styles.getPropertyValue("--yasgui-graph-literal").trim() || "#a6c8a6ff",
|
|
29685
|
+
blankNode: styles.getPropertyValue("--yasgui-graph-blank-node").trim() || (theme === "dark" ? "#888888" : "#c5c5c5ff"),
|
|
29686
|
+
typeObject: styles.getPropertyValue("--yasgui-graph-type-object").trim() || "#e15b13ff",
|
|
29687
|
+
text: styles.getPropertyValue("--yasgui-graph-text").trim() || (theme === "dark" ? "#e0e0e0" : "#000000"),
|
|
29688
|
+
edge: styles.getPropertyValue("--yasgui-graph-edge").trim() || (theme === "dark" ? "#666666" : "#cccccc"),
|
|
29689
|
+
edgeLabel: styles.getPropertyValue("--yasgui-graph-edge-label").trim() || (theme === "dark" ? "#cccccc" : "#666666"),
|
|
29690
|
+
edgeLabelBackground: styles.getPropertyValue("--yasgui-graph-edge-label-bg").trim() || (theme === "dark" ? "rgba(30, 30, 30, 0.8)" : "rgba(255, 255, 255, 0.8)"),
|
|
29691
|
+
background: styles.getPropertyValue("--yasgui-graph-background").trim() || (theme === "dark" ? "#1e1e1e" : "#ffffff")
|
|
29983
29692
|
};
|
|
29984
29693
|
}
|
|
29985
29694
|
function watchThemeChanges(callback) {
|
|
@@ -29998,16 +29707,17 @@ function watchThemeChanges(callback) {
|
|
|
29998
29707
|
return observer;
|
|
29999
29708
|
}
|
|
30000
29709
|
|
|
30001
|
-
// src/GraphPlugin.
|
|
30002
|
-
function getVisNetwork() {
|
|
30003
|
-
return { Network, DataSet };
|
|
30004
|
-
}
|
|
29710
|
+
// src/GraphPlugin.ts
|
|
30005
29711
|
var GraphPlugin = class {
|
|
30006
29712
|
constructor(yasr) {
|
|
30007
29713
|
this.yasr = yasr;
|
|
30008
29714
|
this.network = null;
|
|
30009
29715
|
this.currentTheme = getCurrentTheme();
|
|
30010
29716
|
this.themeObserver = null;
|
|
29717
|
+
this.nodesDataSet = null;
|
|
29718
|
+
this.edgesDataSet = null;
|
|
29719
|
+
this.triples = null;
|
|
29720
|
+
this.prefixMap = null;
|
|
30011
29721
|
}
|
|
30012
29722
|
/**
|
|
30013
29723
|
* Plugin priority (higher = shown first in tabs)
|
|
@@ -30023,11 +29733,10 @@ var GraphPlugin = class {
|
|
|
30023
29733
|
}
|
|
30024
29734
|
/**
|
|
30025
29735
|
* Check if plugin can handle the current results
|
|
30026
|
-
* @returns
|
|
29736
|
+
* @returns True if results are from CONSTRUCT or DESCRIBE query
|
|
30027
29737
|
*/
|
|
30028
29738
|
canHandleResults() {
|
|
30029
|
-
if (!this.yasr || !this.yasr.results)
|
|
30030
|
-
return false;
|
|
29739
|
+
if (!this.yasr || !this.yasr.results) return false;
|
|
30031
29740
|
const results = this.yasr.results;
|
|
30032
29741
|
if (results.getBindings && typeof results.getBindings === "function") {
|
|
30033
29742
|
const bindings = results.getBindings();
|
|
@@ -30044,40 +29753,37 @@ var GraphPlugin = class {
|
|
|
30044
29753
|
draw() {
|
|
30045
29754
|
this.yasr.resultsEl.innerHTML = "";
|
|
30046
29755
|
try {
|
|
30047
|
-
|
|
30048
|
-
if (!triples || triples.length === 0) {
|
|
30049
|
-
|
|
29756
|
+
this.triples = parseConstructResults(this.yasr.results);
|
|
29757
|
+
if (!this.triples || this.triples.length === 0) {
|
|
29758
|
+
const emptyDiv = document.createElement("div");
|
|
29759
|
+
emptyDiv.className = "yasgui-graph-plugin-empty-state";
|
|
29760
|
+
emptyDiv.textContent = "No graph data to visualize";
|
|
29761
|
+
this.yasr.resultsEl.appendChild(emptyDiv);
|
|
30050
29762
|
return;
|
|
30051
29763
|
}
|
|
30052
|
-
|
|
29764
|
+
if (this.triples.length > 1e3) {
|
|
29765
|
+
console.warn("Large graph detected (>1000 triples). Rendering may be slow.");
|
|
29766
|
+
}
|
|
29767
|
+
this.prefixMap = extractPrefixes(this.yasr);
|
|
30053
29768
|
this.currentTheme = getCurrentTheme();
|
|
30054
29769
|
const themeColors = getThemeNodeColors(this.currentTheme);
|
|
30055
|
-
const { nodes, edges } = triplesToGraph(triples, prefixMap, themeColors);
|
|
29770
|
+
const { nodes, edges } = triplesToGraph(this.triples, this.prefixMap, themeColors);
|
|
30056
29771
|
const container = document.createElement("div");
|
|
29772
|
+
container.className = "yasgui-graph-plugin-container";
|
|
30057
29773
|
container.id = "yasgui-graph-plugin-container";
|
|
30058
|
-
container.style.width = "100%";
|
|
30059
|
-
container.style.minHeight = "500px";
|
|
30060
|
-
container.style.height = "100%";
|
|
30061
|
-
container.style.position = "relative";
|
|
30062
|
-
container.style.overflow = "hidden";
|
|
30063
29774
|
this.yasr.resultsEl.appendChild(container);
|
|
30064
|
-
|
|
30065
|
-
|
|
30066
|
-
const edgesDataSet = new DataSet2(edges);
|
|
29775
|
+
this.nodesDataSet = new DataSet(nodes);
|
|
29776
|
+
this.edgesDataSet = new DataSet(edges);
|
|
30067
29777
|
const options = getDefaultNetworkOptions(themeColors);
|
|
30068
|
-
this.
|
|
30069
|
-
this.edgesDataSet = edgesDataSet;
|
|
30070
|
-
this.triples = triples;
|
|
30071
|
-
this.prefixMap = prefixMap;
|
|
30072
|
-
this.network = new Network2(
|
|
29778
|
+
this.network = new Network(
|
|
30073
29779
|
container,
|
|
30074
|
-
{ nodes: nodesDataSet, edges: edgesDataSet },
|
|
29780
|
+
{ nodes: this.nodesDataSet, edges: this.edgesDataSet },
|
|
30075
29781
|
options
|
|
30076
29782
|
);
|
|
30077
|
-
this.
|
|
29783
|
+
this.applyCanvasBackground(themeColors.background);
|
|
30078
29784
|
this.network.on("stabilizationIterationsDone", () => {
|
|
30079
29785
|
this.network.setOptions({ physics: { enabled: true } });
|
|
30080
|
-
this.
|
|
29786
|
+
this.network.fit({ maxZoomLevel: 1e3 });
|
|
30081
29787
|
});
|
|
30082
29788
|
if (!this.themeObserver) {
|
|
30083
29789
|
this.themeObserver = watchThemeChanges((newTheme) => {
|
|
@@ -30085,43 +29791,28 @@ var GraphPlugin = class {
|
|
|
30085
29791
|
});
|
|
30086
29792
|
}
|
|
30087
29793
|
const controls = document.createElement("div");
|
|
30088
|
-
controls.
|
|
30089
|
-
controls.style.top = "10px";
|
|
30090
|
-
controls.style.right = "10px";
|
|
30091
|
-
controls.style.zIndex = "10000";
|
|
30092
|
-
controls.style.display = "flex";
|
|
30093
|
-
controls.style.gap = "10px";
|
|
30094
|
-
controls.style.pointerEvents = "auto";
|
|
29794
|
+
controls.className = "yasgui-graph-controls";
|
|
30095
29795
|
container.appendChild(controls);
|
|
30096
29796
|
const fitButton = document.createElement("button");
|
|
29797
|
+
fitButton.className = "yasgui-graph-button";
|
|
30097
29798
|
fitButton.textContent = "Zoom to Fit";
|
|
30098
|
-
fitButton.style.padding = "8px 12px";
|
|
30099
|
-
fitButton.style.background = "#4CAF50";
|
|
30100
|
-
fitButton.style.color = "white";
|
|
30101
|
-
fitButton.style.border = "none";
|
|
30102
|
-
fitButton.style.borderRadius = "4px";
|
|
30103
|
-
fitButton.style.cursor = "pointer";
|
|
30104
|
-
fitButton.style.fontSize = "14px";
|
|
30105
|
-
fitButton.style.boxShadow = "0 2px 4px rgba(0,0,0,0.2)";
|
|
30106
|
-
fitButton.onmouseover = () => fitButton.style.background = "#45a049";
|
|
30107
|
-
fitButton.onmouseout = () => fitButton.style.background = "#4CAF50";
|
|
30108
29799
|
fitButton.onclick = () => {
|
|
30109
29800
|
if (this.network) {
|
|
30110
|
-
this.network.fit({ animation: { duration: 300, easingFunction: "easeInOutQuad" } });
|
|
29801
|
+
this.network.fit({ maxZoomLevel: 1e3, animation: { duration: 300, easingFunction: "easeInOutQuad" } });
|
|
30111
29802
|
}
|
|
30112
29803
|
};
|
|
30113
29804
|
controls.appendChild(fitButton);
|
|
30114
|
-
if (triples.length > 1e3) {
|
|
30115
|
-
console.warn("Large graph detected (>1000 triples). Rendering may be slow.");
|
|
30116
|
-
}
|
|
30117
29805
|
} catch (error) {
|
|
30118
29806
|
console.error("Error rendering graph:", error);
|
|
30119
|
-
|
|
29807
|
+
const errorDiv = document.createElement("div");
|
|
29808
|
+
errorDiv.className = "yasgui-graph-plugin-error";
|
|
29809
|
+
errorDiv.textContent = "Error rendering graph. See console for details.";
|
|
29810
|
+
this.yasr.resultsEl.appendChild(errorDiv);
|
|
30120
29811
|
}
|
|
30121
29812
|
}
|
|
30122
29813
|
/**
|
|
30123
29814
|
* Apply theme to existing network
|
|
30124
|
-
* @param
|
|
29815
|
+
* @param newTheme - 'light' or 'dark'
|
|
30125
29816
|
*/
|
|
30126
29817
|
applyTheme(newTheme) {
|
|
30127
29818
|
if (!this.network || !this.nodesDataSet || !this.triples || !this.prefixMap) {
|
|
@@ -30136,17 +29827,25 @@ var GraphPlugin = class {
|
|
|
30136
29827
|
this.edgesDataSet.add(edges);
|
|
30137
29828
|
const options = getDefaultNetworkOptions(themeColors);
|
|
30138
29829
|
this.network.setOptions(options);
|
|
29830
|
+
this.applyCanvasBackground(themeColors.background);
|
|
29831
|
+
}
|
|
29832
|
+
/**
|
|
29833
|
+
* Apply background color to vis-network canvas using CSS custom property
|
|
29834
|
+
* @param color - Background color
|
|
29835
|
+
*/
|
|
29836
|
+
applyCanvasBackground(color) {
|
|
29837
|
+
if (this.network && this.network.body && this.network.body.container) {
|
|
29838
|
+
this.network.body.container.style.setProperty("--yasgui-graph-canvas-bg", color);
|
|
29839
|
+
}
|
|
30139
29840
|
}
|
|
30140
29841
|
/**
|
|
30141
29842
|
* Get icon for plugin tab
|
|
30142
|
-
* @returns
|
|
29843
|
+
* @returns Icon element
|
|
30143
29844
|
*/
|
|
30144
29845
|
getIcon() {
|
|
30145
29846
|
const icon = document.createElement("div");
|
|
29847
|
+
icon.className = "yasgui-graph-icon";
|
|
30146
29848
|
icon.setAttribute("aria-label", "Graph visualization");
|
|
30147
|
-
icon.style.display = "inline-flex";
|
|
30148
|
-
icon.style.alignItems = "center";
|
|
30149
|
-
icon.style.justifyContent = "center";
|
|
30150
29849
|
icon.innerHTML = `<svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
|
|
30151
29850
|
<circle cx="3" cy="3" r="2" />
|
|
30152
29851
|
<circle cx="13" cy="3" r="2" />
|
|
@@ -30173,13 +29872,13 @@ var GraphPlugin = class {
|
|
|
30173
29872
|
};
|
|
30174
29873
|
var GraphPlugin_default = GraphPlugin;
|
|
30175
29874
|
|
|
30176
|
-
// src/index.
|
|
29875
|
+
// src/index.ts
|
|
30177
29876
|
if (typeof window !== "undefined" && window.Yasgui && window.Yasgui.Yasr) {
|
|
30178
29877
|
window.Yasgui.Yasr.registerPlugin("Graph", GraphPlugin_default);
|
|
30179
29878
|
}
|
|
30180
|
-
var
|
|
29879
|
+
var index_default = GraphPlugin_default;
|
|
30181
29880
|
export {
|
|
30182
|
-
|
|
29881
|
+
index_default as default
|
|
30183
29882
|
};
|
|
30184
29883
|
/*! Bundled license information:
|
|
30185
29884
|
|